new module:api/RefundApi(apiClientopt)
This class subject to change without prior notice, Please dont use this class directly.
Constructs a new RefundApi.Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
apiClient |
module:ApiClient |
<optional> |
Optional API client implementation to use, default to module:ApiClient#instance if unspecified. |
Methods
-
createRefund(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, id_payment, id_customer, create_refund_request, opts, callback)
-
Create Refund This API is used to initiate a refund. Any payment made using EBPP can be refunded. Customer cannot initiate a refund request. In other words, the Create Refund request will fail if the associated requestor_type is customer.
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_paymentString The unique identifier assigned by EBPP to the payment.
id_customerString The unique identifier assigned by EBPP to the customer.
create_refund_requestmodule:models/CreateRefundRequest JSON containing all the fields required to refund a payment.
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.
trace_idString The unique reference that can be used for tracing and debugging an API call.
callbackmodule:api/RefundApi~createRefundCallback The callback function, accepting three arguments: error, data, response data is of type: module:models/RefundResponse
-
getRefund(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, id_refund, id_customer, opts, callback)
-
Get Refund The API is used to retrieve the details of a refund by 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_refundString The unique identifier assigned by EBPP to the refund.
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.
trace_idString The unique reference that can be used for tracing and debugging an API call.
callbackmodule:api/RefundApi~getRefundCallback The callback function, accepting three arguments: error, data, response data is of type: module:models/RefundResponse
-
retrieveRefunds(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, opts, callback)
-
Retrieve Refunds The API is used to retrieve the refunds made to a customer against payments processed through EBPP. Refunds can be filtered using the customer id, confirmation number of the payment being refunded or of the refund, status of the refund and others mentioned below. Scheduled refunds that are yet to be processed and all the refunds processed in the last six months are returned if date criteria is not specified. If the requestor_type is customer then the id_customer request parameter is mandatory. The results are sorted in descending order of the refund_date followed by the last_modified_time.
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.
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.
trace_idString The unique reference that can be used for tracing and debugging an API call.
id_customerString The unique identifier assigned by EBPP to the customer.
confirmation_numberString The confirmation number provided to the customer for the refund or for the corresponding successful payment.
statusArray.<module:models/String> The status of the refund. This can take multiple values in the format key=value1&key=value2....
from_dateString The date from which refunds, matching the criteria specified, need to be retrieved.
to_dateString The date upto which refunds, matching the criteria specified, need to be retrieved.
page_sizeString The maximum number of objects returned in the query.
query_idString query id of the Retrieve/Search Customers lookup.
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/RefundApi~retrieveRefundsCallback The callback function, accepting three arguments: error, data, response data is of type: module:models/RefundsResponse
Type Definitions
-
createRefundCallback(error, data, response)
-
Callback function to receive the result of the createRefund operation.
Parameters:
Name Type Description errorString Error message, if any.
datamodule:models/RefundResponse The data returned by the service call.
responseString The complete HTTP response.
-
getRefundCallback(error, data, response)
-
Callback function to receive the result of the getRefund operation.
Parameters:
Name Type Description errorString Error message, if any.
datamodule:models/RefundResponse The data returned by the service call.
responseString The complete HTTP response.
-
retrieveRefundsCallback(error, data, response)
-
Callback function to receive the result of the retrieveRefunds operation.
Parameters:
Name Type Description errorString Error message, if any.
datamodule:models/RefundsResponse The data returned by the service call.
responseString The complete HTTP response.