Package model

Class UpdateAuthorizationRequest


  • @Generated("org.openapitools.codegen.languages.JavaClientCodegen")
    public class UpdateAuthorizationRequest
    extends Object
    UpdateAuthorizationRequest
    • Constructor Detail

      • UpdateAuthorizationRequest

        public UpdateAuthorizationRequest()
    • Method Detail

      • getAdditionalPurchaseData

        @Nullable
        public AdditionalPurchaseData getAdditionalPurchaseData()
        Get additionalPurchaseData
        Returns:
        additionalPurchaseData
      • setAdditionalPurchaseData

        public void setAdditionalPurchaseData​(AdditionalPurchaseData additionalPurchaseData)
      • getCaptureAmount

        @Nullable
        public Long getCaptureAmount()
        The amount of the `Authorization` you would like to capture in cents. Must be less than or equal to the `amount` of the `Authorization`.
        Returns:
        captureAmount
      • setCaptureAmount

        public void setCaptureAmount​(Long captureAmount)
      • getFee

        @Nullable
        public Long getFee()
        The amount of the `Authorization` you'd like to collect as your fee in cents. Defaults to zero (must be less than or equal to the `amount`).
        Returns:
        fee
      • setFee

        public void setFee​(Long fee)
      • getTags

        @Nullable
        public Map<String,​String> getTags()
        Key value pair for annotating custom meta data (e.g. order numbers).
        Returns:
        tags
      • getVoidMe

        @Nullable
        public Boolean getVoidMe()
        Set to **True** to void the `Authorization`.
        Returns:
        voidMe
      • setVoidMe

        public void setVoidMe​(Boolean voidMe)
      • 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 UpdateAuthorizationRequest
      • fromJson

        public static UpdateAuthorizationRequest fromJson​(String jsonString)
                                                   throws IOException
        Create an instance of UpdateAuthorizationRequest given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of UpdateAuthorizationRequest
        Throws:
        IOException - if the JSON string is invalid with respect to UpdateAuthorizationRequest
      • toJson

        public String toJson()
        Convert an instance of UpdateAuthorizationRequest to an JSON string
        Returns:
        JSON string