Package model

Class CardPresentDetails


  • @Generated("org.openapitools.codegen.languages.JavaClientCodegen")
    public class CardPresentDetails
    extends Object
    Details needed to process card present transactions.
    • Constructor Detail

      • CardPresentDetails

        public CardPresentDetails()
    • Method Detail

      • getApprovalCode

        @Nullable
        public String getApprovalCode()
        Unique ID used to identify the approval of the `Transfer`.
        Returns:
        approvalCode
      • setApprovalCode

        public void setApprovalCode​(String approvalCode)
      • getBrand

        @Nullable
        public String getBrand()
        The brand of the card saved in the `Payment Instrument`.
        Returns:
        brand
      • setBrand

        public void setBrand​(String brand)
      • getEntryMode

        @Nullable
        public String getEntryMode()
        Details how the card was entered to process the transaction.
        Returns:
        entryMode
      • setEntryMode

        public void setEntryMode​(String entryMode)
      • getMaskedAccountNumber

        @Nullable
        public String getMaskedAccountNumber()
        Last four digits of the bank account number.
        Returns:
        maskedAccountNumber
      • setMaskedAccountNumber

        public void setMaskedAccountNumber​(String maskedAccountNumber)
      • getName

        @Nullable
        public String getName()
        The name of the bank account or card owner.
        Returns:
        name
      • setName

        public void setName​(String name)
      • getPaymentType

        @Nullable
        public String getPaymentType()
        The type of `Payment Instrument` used in the transaction (or the original payment).
        Returns:
        paymentType
      • setPaymentType

        public void setPaymentType​(String paymentType)
      • 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 CardPresentDetails
      • fromJson

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

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