Package model

Class 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`.
    • Constructor Detail

      • AdditionalBuyerCharges

        public AdditionalBuyerCharges()
    • Method Detail

      • 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)
      • 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)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonObject

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Validates 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