BaseApiPaymentMethodRequest Class

Abstract class used to send information about a payment method to a gateway adapter during a service call.

CommercePayments

BaseApiPaymentMethodRequest is the base class for SaleApiPaymentMethodRequest and AuthApiPaymentMethodRequest.

The following are constructors for BaseApiPaymentMethodRequest.

Constructs a payment method. This constructor is intended for test usage and throws an exception if used outside of the Apex test context.

global BaseApiPaymentMethodRequest(commercepayments.AddressRequest address, String id, Boolean saveForFuture)

  • address:

    Type: commercepayments.AddressRequest

    Sends

    data related on address request to a gateway adapter during a service call.

  • id:

    Type: String

  • saveForFuture:

    Type: Boolean

    Indicates whether Salesforce saves the payment method for future use.

The following are properties for BaseApiPaymentMethodRequest.

  • address

    The payment method’s address.

  • id

    ID of the payment method request.

  • idType

    ID of the payment method type.

  • saveForFuture

    Indicates whether the payment method is saved as a record in Salesforce for future use.

The payment method’s address.

global commercepayments.AddressRequest address {get; set;}

Type: AddressRequest

ID of the payment method request.

global String id {get; set;}

Type: String

ID of the payment method type.

public commercepayments.PaymentMethodIdType idType {get; set;}

Type: commercepayments.PaymentMethodIdType

Indicates whether the payment method is saved as a record in Salesforce for future use.

global Boolean saveForFuture {get; set;}

Type: Boolean

The following are methods for BaseApiPaymentMethodRequest.

  • equals(obj)

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

  • hashCode()

    Maintains the integrity of lists of type BaseApiPaymentMethodRequest by determining the uniqueness of the external object records in a list.

  • toString()

    Converts a date to a string.

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

global Boolean equals(Object obj)

  • obj:

    Type:

    Object External object whose key is to be validated.

Type: Boolean

Maintains the integrity of lists of type BaseApiPaymentMethodRequest by determining the uniqueness of the external object records in a list.

global Integer hashCode()

Type: Integer

Converts a date to a string.

global String toString()

Type: String