SaleApiPaymentMethodRequest Class
Sends data related to a card payment method to a gateway adapter during a sale service call.
This class holds information about a payment method that was used for a Sale request. SaleApiPaymentMethodRequest contains all the possible payment methods as fields, but only one value is populated for a given request. Gateway adapters use this class when constructing a sale request. The object of this class is obtained through the paymentMethod field on the SaleRequest object.
This code sample retrieves the SaleApiPaymentMethodRequest object from the SaleRequest class.
The following are constructors for SaleApiPaymentMethodRequest.
-
SaleApiPaymentMethodRequest(cardPaymentMethodRequest)
Sends data related to a card payment method to a gateway adapter during a sale service call.
-
Constructor for building a sale payment method request. This constructor is intended for test usage and throws an exception if used outside of the Apex test context.
Sends data related to a card payment method to a gateway adapter during a sale service call.
global SaleApiPaymentMethodRequest(commercepayments.CardPaymentMethodRequest cardPaymentMethodRequest)
- cardPaymentMethodRequest: Type: CardPaymentMethodRequest
Constructor for building a sale payment method request. This constructor is intended for test usage and throws an exception if used outside of the Apex test context.
global SaleApiPaymentMethodRequest()
The following are properties for SaleApiPaymentMethodRequest.
-
Contains details of the card used in a payment method.
-
Contains details of the standard entry class code used in a payment method.
Contains details of the card used in a payment method.
global commercepayments.CardPaymentMethodRequest cardPaymentMethod {get; set;}
Type: CardPaymentMethodRequest
Contains details of the standard entry class code used in a payment method.
public commercepayments.StandardEntryClassCode standardEntryClassCode {get; set;}
Type: commercepayments.StandardEntryClassCode
The following are methods for SaleApiPaymentMethodRequest.
-
Maintains the integrity of lists of type
SaleApiPaymentMethodRequestby determining the equality of external objects in a list. This method is dynamic and is based on the equals method in Java. -
Maintains the integrity of lists of type
SaleApiPaymentMethodRequestby determining the uniqueness of the external object records in a list. -
Converts a date to a string.
Maintains the integrity of lists of type SaleApiPaymentMethodRequest 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
Type: Boolean
Maintains the integrity of lists of type SaleApiPaymentMethodRequest 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