-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #90 from delias-silva/master
Add Taxes into Preference
- Loading branch information
Showing
5 changed files
with
68 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
src/main/java/com/mercadopago/resources/datastructures/preference/Tax.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package com.mercadopago.resources.datastructures.preference; | ||
|
||
/** | ||
* Mercado Pago MercadoPago | ||
* Preference Tax class | ||
* | ||
* Created by Danilo Elias on 26/08/2019. | ||
*/ | ||
public class Tax { | ||
|
||
private TaxType type = null; | ||
public enum TaxType { | ||
IVA, | ||
INC | ||
} | ||
private Float value = null; | ||
|
||
public TaxType getType() { | ||
return type; | ||
} | ||
|
||
public Float getValue() { | ||
return value; | ||
} | ||
|
||
public Tax setType(TaxType type) { | ||
this.type = type; | ||
return this; | ||
} | ||
|
||
public Tax setValue(Float value) { | ||
this.value = value; | ||
return this; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters