Newer Version Available
AddressRequest Class
Namespace
Usage
Contains
information about the payment method’s address. Use this information in authorization, sale,
and tokenization requests. The payment gateway adapter uses information in an AddressRequest
object to construct a JSON request to send to the payment gateway.
The constructor of this class takes no arguments. For example:
CommercePayments.AddressRequest adr = new CommercePayments.AddressRequest();AddressRequest Constructors
The following are constructors for AddressRequest.
AddressRequest(street, city, state, country, postalCode)
Constructs a sample address. This constructor is intended for test
usage and throws an exception if used outside of the Apex test context.
Signature
global AddressRequest(String street, String city, String state, String country, String postalCode)
Parameters
- street
- Type: String
- Street for the payment method's address.
- city
- Type: String
- City for the payment method's address.
- state
- Type: String
- State for the payment method's address.
- country
- Type: String
- Country for the payment method's address.
- postalCode
- Type: String
- Postal code for the payment method's address.
AddressRequest Properties
The following are properties for AddressRequest.
AddressRequest Methods
The following are methods for AddressRequest.
equals(obj)
Maintains the integrity of lists of type AddressRequest by determining the equality of external
objects in a list. This method is dynamic and is based on the equals method in
Java.
Signature
global Boolean equals(Object obj)
Parameters
- obj
- Type: Object
- External object whose key is to be validated.
Return Value
Type: Boolean