BankPaymentMethodRequest Class

Sends data related to a bank payment method to a gateway adapter during a service call.

CommercePayments

Use the BankPaymentMethodRequest class to include bank payment details in a Tokenize request. The gateway adapter reads the fields from this class when constructing the tokenized JSON request for the payment gateway. You can create an instance of this class by calling bankPaymentMethod on the PaymentMethodTokenizationRequest class.

The following are properties for BankPaymentMethodRequest.

  • accountHolderFirstName

    The first name of the account holder for the bank payment method.

  • accountHolderLastName

    The last name of the account holder for the bank payment method.

  • accountHolderName

    The name of the account holder for the bank payment method.

  • accountHolderType

    The type of the account holder.

  • accountId

    Salesforce Payments account ID associated with the bank payment method.

  • accountNumber

    The unique account number for the bank account.

  • accountType

    The type for the bank account.

  • autoPay

    Indicates whether a token for recurring payments is being requested (true) or not (false). The token enables the payment method to be used for recurring payments.

  • bankCode

    The routing number is a unique nine-digit code that identifies the bank.

  • bankType

    The bank type associated with the bank payment method.

  • comments

    Additional details about the bank account.

  • email

    The email address of the bank account holder.

  • mandate

    Authorization from the account holder to debit their payment method.

  • nickName

    The nick name of the account holder.

  • standardEntryClassCode

    The three-letter code that identifies the type of electronic payment transaction being processed within the Automated Clearing House (ACH) network.

The first name of the account holder for the bank payment method.

public String accountHolderFirstName {get; set;}

Type: String

The last name of the account holder for the bank payment method.

public String accountHolderLastName {get; set;}

Type: String

The name of the account holder for the bank payment method.

public String accountHolderName {get; set;}

Type: String

The type of the account holder.

public commercepayments.AccountHolderType accountHolderType {get; set;}

Type: commercepayments.AccountHolderType

Salesforce Payments account ID associated with the bank payment method.

public String accountId {get; set;}

Type: String

The unique account number for the bank account.

public String accountNumber {get; set;}

Type: String

The type for the bank account.

public commercepayments.AccountType accountType {get; set;}

Type: commercepayments.AccountType

Indicates whether a token for recurring payments is being requested (true) or not (false). The token enables the payment method to be used for recurring payments.

public Boolean autoPay {get; set;}

Type: Boolean

The routing number is a unique nine-digit code that identifies the bank.

public String bankCode {get; set;}

Type: String

The bank type associated with the bank payment method.

public commercepayments.BankType bankType {get; set;}

Type: commercepayments.BankType

Additional details about the bank account.

public String comments {get; set;}

Type: String

The email address of the bank account holder.

public String email {get; set;}

Type: String

Authorization from the account holder to debit their payment method.

public String mandate {get; set;}

Type: String

The nick name of the account holder.

public String nickName {get; set;}

Type: String

The three-letter code that identifies the type of electronic payment transaction being processed within the Automated Clearing House (ACH) network.

public commercepayments.StandardEntryClassCode standardEntryClassCode {get; set;}

Type: commercepayments.StandardEntryClassCode

The following are methods for BankPaymentMethodRequest.

  • equals(obj)

    Maintains the integrity of lists of type BankPaymentMethodRequest by determining the equality of external objects in a list. This method is dynamic and based on the equals method in Java.

  • hashCode()

    Maintains the integrity of lists of type BankPaymentMethodRequest.

  • toString()

    Converts a date to a string.

Maintains the integrity of lists of type BankPaymentMethodRequest by determining the equality of external objects in a list. This method is dynamic and based on the equals method in Java.

public Boolean equals(Object obj)

  • obj:

    Type: Object External object whose key is to be validated.

Type: Boolean

Maintains the integrity of lists of type BankPaymentMethodRequest.

public Integer hashCode()

Type: Integer

Converts a date to a string.

public String toString()

Type: String