new module:api/CustomerAccountApi(apiClientopt)
This class subject to change without prior notice, Please dont use this class directly.
Constructs a new CustomerAccountApi.Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
apiClient |
module:ApiClient |
<optional> |
Optional API client implementation to use, default to module:ApiClient#instance if unspecified. |
Methods
-
getCustomerAccount(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, id_customer_account, id_customer, opts, callback)
-
Get Customer Account The Get Customer Account API is used to retrieve the details of a customer account based on the id.
Parameters:
Name Type Description channelString The channel through which the API is invoked.
client_keyString The unique identifier assigned by EBPP to the client.
productmodule:models/String The product identifier corresponding to the API.
timestampString The timestamp for the moment when the API request is created.
idempotent_request_keyString The unique token that clients can generate and maintain in order to identify an API request.
requestor_typemodule:models/String Type of the requestor of the API.
id_customer_accountString The unique identifier assigned by EBPP to the Customer Account.
id_customerString The unique identifier assigned by EBPP to the customer.
optsObject Optional parameters
Properties
Name Type Description requestorString The identifier for the requestor of the API. If the requestor_type is <b>system</b>, requestor is optional.
x_opay_headersString Intended for the future use.
callbackmodule:api/CustomerAccountApi~getCustomerAccountCallback The callback function, accepting three arguments: error, data, response data is of type: module:models/CustomerAccountResponse
-
renewCustomerAccount(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, id_customer_account, id_customer, renew_customer_account_request, opts, callback)
-
Renew Customer Account This API is used to renew a customer account. The API migrates all the pending payments and active payment setups from the original customer account to the new one.
Parameters:
Name Type Description channelString The channel through which the API is invoked.
client_keyString The unique identifier assigned by EBPP to the client.
productmodule:models/String The product identifier corresponding to the API.
timestampString The timestamp for the moment when the API request is created.
idempotent_request_keyString The unique token that clients can generate and maintain in order to identify an API request.
requestor_typemodule:models/String Type of the requestor of the API.
id_customer_accountString The unique identifier assigned by EBPP to the Customer Account.
id_customerString The unique identifier assigned by EBPP to the customer.
renew_customer_account_requestmodule:models/RenewCustomerAccountRequest JSON containing all the attributes of the Customer account to be renewed.
optsObject Optional parameters
Properties
Name Type Description requestorString The identifier for the requestor of the API. If the requestor_type is <b>system</b>, requestor is optional.
x_opay_headersString Intended for the future use.
callbackmodule:api/CustomerAccountApi~renewCustomerAccountCallback The callback function, accepting three arguments: error, data, response data is of type: module:models/CustomerAccountResponse
-
retrieveCustomerAccounts(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, id_customer, opts, callback)
-
Retrieve Customer Accounts The API is used to retrieve all the customer accounts associated with a customer. The accounts can be filtered using the account number, status. The API responds with the first page of the list of customerAccounts matching the criteria.
Parameters:
Name Type Description channelString The channel through which the API is invoked.
client_keyString The unique identifier assigned by EBPP to the client.
productmodule:models/String The product identifier corresponding to the API.
timestampString The timestamp for the moment when the API request is created.
idempotent_request_keyString The unique token that clients can generate and maintain in order to identify an API request.
requestor_typemodule:models/String Type of the requestor of the API.
id_customerString The unique identifier assigned by EBPP to the customer.
optsObject Optional parameters
Properties
Name Type Description requestorString The identifier for the requestor of the API. If the requestor_type is <b>system</b>, requestor is optional.
x_opay_headersString Intended for the future use.
page_sizeString The maximum number of objects returned in the query.
account_numberString The Account Number to get details of.
statusArray.<module:models/String> The status of the customer's account in EBPP. This can take multiple values in the format key=value1&key=value2....
callbackmodule:api/CustomerAccountApi~retrieveCustomerAccountsCallback The callback function, accepting three arguments: error, data, response data is of type: module:models/CustomerAccountsResponse
-
retrieveCustomerAccountsPage(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, id_customer, query_id, opts, callback)
-
Retrieve Customer Accounts Pagination This API is used to paginate through the list of customer Accounts returned in the Retrieve Customer Accounts API.
Parameters:
Name Type Description channelString The channel through which the API is invoked.
client_keyString The unique identifier assigned by EBPP to the client.
productmodule:models/String The product identifier corresponding to the API.
timestampString The timestamp for the moment when the API request is created.
idempotent_request_keyString The unique token that clients can generate and maintain in order to identify an API request.
requestor_typemodule:models/String Type of the requestor of the API.
id_customerString The unique identifier assigned by EBPP to the customer.
query_idString query id of the Retrieve/Search Accounts lookup.
optsObject Optional parameters
Properties
Name Type Description requestorString The identifier for the requestor of the API. If the requestor_type is <b>system</b>, requestor is optional.
x_opay_headersString Intended for the future use.
page_sizeString The maximum number of objects returned in the query.
from_indexString To fetch the next set of objects that start after this object
to_indexString To fetch the previous set of objects that end at this object
callbackmodule:api/CustomerAccountApi~retrieveCustomerAccountsPageCallback The callback function, accepting three arguments: error, data, response data is of type: module:models/CustomerAccountsResponse
Type Definitions
-
getCustomerAccountCallback(error, data, response)
-
Callback function to receive the result of the getCustomerAccount operation.
Parameters:
Name Type Description errorString Error message, if any.
datamodule:models/CustomerAccountResponse The data returned by the service call.
responseString The complete HTTP response.
-
renewCustomerAccountCallback(error, data, response)
-
Callback function to receive the result of the renewCustomerAccount operation.
Parameters:
Name Type Description errorString Error message, if any.
datamodule:models/CustomerAccountResponse The data returned by the service call.
responseString The complete HTTP response.
-
retrieveCustomerAccountsCallback(error, data, response)
-
Callback function to receive the result of the retrieveCustomerAccounts operation.
Parameters:
Name Type Description errorString Error message, if any.
datamodule:models/CustomerAccountsResponse The data returned by the service call.
responseString The complete HTTP response.
-
retrieveCustomerAccountsPageCallback(error, data, response)
-
Callback function to receive the result of the retrieveCustomerAccountsPage operation.
Parameters:
Name Type Description errorString Error message, if any.
datamodule:models/CustomerAccountsResponse The data returned by the service call.
responseString The complete HTTP response.