Package model

Class CardPresentDetails

java.lang.Object
model.CardPresentDetails

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-06-24T13:03:18.088665-07:00[America/Los_Angeles]") public class CardPresentDetails extends Object
Details needed to process card present transactions.
  • Field Details

  • Constructor Details

    • CardPresentDetails

      public CardPresentDetails()
  • Method Details

    • approvalCode

      public CardPresentDetails approvalCode(String approvalCode)
    • getApprovalCode

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

      public void setApprovalCode(String approvalCode)
    • brand

      public CardPresentDetails brand(String brand)
    • getBrand

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

      public void setBrand(String brand)
    • emvData

    • getEmvData

      @Nullable public CardPresentDetailsEmvData getEmvData()
      Get emvData
      Returns:
      emvData
    • setEmvData

      public void setEmvData(CardPresentDetailsEmvData emvData)
    • entryMode

      public CardPresentDetails entryMode(String entryMode)
    • getEntryMode

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

      public void setEntryMode(String entryMode)
    • maskedAccountNumber

      public CardPresentDetails maskedAccountNumber(String maskedAccountNumber)
    • getMaskedAccountNumber

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

      public void setMaskedAccountNumber(String maskedAccountNumber)
    • name

      public CardPresentDetails name(String name)
    • getName

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

      public void setName(String name)
    • paymentType

      public CardPresentDetails paymentType(String paymentType)
    • 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)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString 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