BaseApiPaymentMethodRequest Class
Abstract class used to send information about a payment method to a gateway adapter during a service call.
BaseApiPaymentMethodRequest is the base class for SaleApiPaymentMethodRequest and AuthApiPaymentMethodRequest.
The following are constructors for BaseApiPaymentMethodRequest.
-
BaseApiPaymentMethodRequest(address, id, saveForFuture)
Constructs a payment method. This constructor is intended for test usage and throws an exception if used outside of the Apex test context.
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.
-
The payment method’s address.
-
ID of the payment method request.
-
ID of the payment method type.
-
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.
-
Maintains the integrity of lists of type
BaseApiPaymentMethodRequestby 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
BaseApiPaymentMethodRequestby determining the uniqueness of the external object records in a list. -
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