Service class to execute CRUD operations on the Payment Method object.
Method Summary
Modifier and Type | Method and Description |
---|---|
PaymentMethodService | getInstance() |
PaymentMethodService | getInstance(String version) |
void | getApiResponse() |
List<PaymentMethod> | get(SearchRequest sr) |
List<PaymentMethod> | mutate(List |
void | getContactPaymentMethods(Set |
void | mapPaymentMethod(EPayTransaction.PaymentMethod paymentMethodWrapper ) |
Method Detail
This class supports the following methods:
global static PaymentMethodService getInstance()
Get Instance of PaymentMethodService.
global static PaymentMethodService getInstance(String version)
Get Instance of PaymentMethodVersionedService.
Parameters
Name | Type | Description |
---|---|---|
version | String | undefined |
global PaymentMethodService ()
PaymentMethodService Constructor that should not be called directly.
global static void getApiResponse()
global virtual List<PaymentMethod> get(SearchRequest sr)
Get list of PaymentMethod objects using the SearchRequest object as criteria
Parameters
Name | Type | Description |
---|---|---|
sr | SearchRequest | SearchRequest |
global virtual List<PaymentMethod> mutate(List<PaymentMethod> methods)
Update list of PaymentMethod objects
Parameters
Name | Type | Description |
---|---|---|
methods | List<PaymentMethod> | List |
global PaymentMethod[] getContactPaymentMethods(Set<Id> contactIds)
Parameters
Name | Type | Description |
---|---|---|
contactIds | Set<Id> | undefined |
global virtual PaymentMethod mapPaymentMethod(EPayTransaction.PaymentMethod paymentMethodWrapper )
Parameters
Name | Type | Description |
---|---|---|
paymentMethodWrapper | EPayTransaction.PaymentMethod | undefined |