Package model
Class AdditionalBuyerCharges
- java.lang.Object
-
- model.AdditionalBuyerCharges
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class AdditionalBuyerCharges extends Object
Object detailing any [Buyer Charges](/guides/payments/buyer-charges) that got included in the `Authorization`.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAdditionalBuyerCharges.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CONVENIENCE_AMOUNTstatic StringSERIALIZED_NAME_RENT_SURCHARGE_AMOUNT
-
Constructor Summary
Constructors Constructor Description AdditionalBuyerCharges()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AdditionalBuyerChargesconvenienceAmount(BigDecimal convenienceAmount)booleanequals(Object o)static AdditionalBuyerChargesfromJson(String jsonString)Create an instance of AdditionalBuyerCharges given an JSON stringBigDecimalgetConvenienceAmount()Include the convenience fee the merchant is charging the buyer for the transaction when creating a `Transfer` or an `Authorization`.BigDecimalgetRentSurchargeAmount()Include the rent surcharge the merchant is charging the buyer for the transaction when creating a `Transfer` or an `Authorization`.inthashCode()AdditionalBuyerChargesrentSurchargeAmount(BigDecimal rentSurchargeAmount)voidsetConvenienceAmount(BigDecimal convenienceAmount)voidsetRentSurchargeAmount(BigDecimal rentSurchargeAmount)StringtoJson()Convert an instance of AdditionalBuyerCharges to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_CONVENIENCE_AMOUNT
public static final String SERIALIZED_NAME_CONVENIENCE_AMOUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RENT_SURCHARGE_AMOUNT
public static final String SERIALIZED_NAME_RENT_SURCHARGE_AMOUNT
- See Also:
- Constant Field Values
-
-
Method Detail
-
convenienceAmount
public AdditionalBuyerCharges convenienceAmount(BigDecimal convenienceAmount)
-
getConvenienceAmount
@Nullable public BigDecimal getConvenienceAmount()
Include the convenience fee the merchant is charging the buyer for the transaction when creating a `Transfer` or an `Authorization`.- Returns:
- convenienceAmount
-
setConvenienceAmount
public void setConvenienceAmount(BigDecimal convenienceAmount)
-
rentSurchargeAmount
public AdditionalBuyerCharges rentSurchargeAmount(BigDecimal rentSurchargeAmount)
-
getRentSurchargeAmount
@Nullable public BigDecimal getRentSurchargeAmount()
Include the rent surcharge the merchant is charging the buyer for the transaction when creating a `Transfer` or an `Authorization`.- Returns:
- rentSurchargeAmount
-
setRentSurchargeAmount
public void setRentSurchargeAmount(BigDecimal rentSurchargeAmount)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to AdditionalBuyerCharges
-
fromJson
public static AdditionalBuyerCharges fromJson(String jsonString) throws IOException
Create an instance of AdditionalBuyerCharges given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AdditionalBuyerCharges
- Throws:
IOException- if the JSON string is invalid with respect to AdditionalBuyerCharges
-
toJson
public String toJson()
Convert an instance of AdditionalBuyerCharges to an JSON string- Returns:
- JSON string
-
-