public class WebstoreClient extends AmazonPayClient
connectionManager, payConfiguration, requestSigner| Constructor and Description |
|---|
WebstoreClient(PayConfiguration payConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
AmazonPayResponse |
cancelCharge(String chargeId,
org.json.JSONObject payload)
The cancelCharge operation is used to cancel Charges.
|
AmazonPayResponse |
cancelCharge(String chargeId,
org.json.JSONObject payload,
Map<String,String> header)
The cancelCharge operation is used to cancel Charges.
|
AmazonPayResponse |
cancelReportSchedule(String reportScheduleId) |
AmazonPayResponse |
cancelReportSchedule(String reportScheduleId,
Map<String,String> header)
The cancelReportSchedule operation is used to cancel the report schedule with the given reportScheduleId.
|
AmazonPayResponse |
captureCharge(String chargeId,
org.json.JSONObject payload)
The CaptureCharge operation is used to create a charges for a buyer
and pass the Id as part of button click.
|
AmazonPayResponse |
captureCharge(String chargeId,
org.json.JSONObject payload,
Map<String,String> header)
The CaptureCharge operation is used to create a charges for a buyer
and pass the Id as part of button click.
|
AmazonPayResponse |
closeChargePermission(String chargePermissionId,
org.json.JSONObject payload)
The CloseChargePermission operation Moves the Charge Permission to a Closed state.
|
AmazonPayResponse |
closeChargePermission(String chargePermissionId,
org.json.JSONObject payload,
Map<String,String> header)
The CloseChargePermission operation Moves the Charge Permission to a Closed state.
|
AmazonPayResponse |
completeCheckoutSession(String checkoutSessionId,
org.json.JSONObject payload)
The CompleteCheckoutSession operation is used to confirm completion of a checkout session.
|
AmazonPayResponse |
completeCheckoutSession(String checkoutSessionId,
org.json.JSONObject payload,
Map<String,String> header)
The CompleteCheckoutSession operation is used to confirm completion of a checkout session
|
AmazonPayResponse |
contestDispute(String disputeId,
org.json.JSONObject payload)
The contestDispute operation is used by the partner, on behalf of the merchant, to formally contest a dispute
managed by Amazon, requiring the submission of necessary evidence files within the specified
Dispute Window (11 days for Chargeback, 7 days for A-Z Claims).
|
AmazonPayResponse |
contestDispute(String disputeId,
org.json.JSONObject payload,
Map<String,String> header)
The contestDispute operation is used by the partner, on behalf of the merchant, to formally contest a dispute
managed by Amazon, requiring the submission of necessary evidence files within the specified
Dispute Window (11 days for Chargeback, 7 days for A-Z Claims).
|
String |
convertQueryParamters(Map<String,List<String>> parameters) |
AmazonPayResponse |
createCharge(org.json.JSONObject payload)
The CreateCharge operation is used to create a charges for a buyer
and pass the Id as part of button click.
|
AmazonPayResponse |
createCharge(org.json.JSONObject payload,
Map<String,String> header)
The CreateCharge operation is used to create a charges for a buyer
and pass the Id as part of button click.
|
AmazonPayResponse |
createCheckoutSession(org.json.JSONObject payload)
The CreateCheckoutSession operation is used to create a CheckoutSession for a buyer
and pass the Id as part of button click.
|
AmazonPayResponse |
createCheckoutSession(org.json.JSONObject payload,
Map<String,String> header)
The CreateCheckoutSession operation is used to create a CheckoutSession for a buyer
and pass the Id as part of button click.
|
AmazonPayResponse |
createDispute(org.json.JSONObject payload,
Map<String,String> header)
The createDispute operation is used to notify Amazon of a newly created chargeback dispute by a buyer on a
transaction processed by the PSP (Payment Service Provider), ensuring the dispute is properly accounted for in
the Amazon Pay systems.
|
AmazonPayResponse |
createRefund(org.json.JSONObject payload)
The CreateRefund operation is used to create a refund for a buyer
and pass the Id as part of button click.
|
AmazonPayResponse |
createRefund(org.json.JSONObject payload,
Map<String,String> header)
The CreateRefund operation is used to create a refund for a buyer
and pass the Id as part of button click.
|
AmazonPayResponse |
createReport(org.json.JSONObject payload,
Map<String,String> header)
The createReport operation is used to submit a request to generate a report based on the reportType and date range specified.
|
AmazonPayResponse |
createReportSchedule(org.json.JSONObject payload,
Map<String,String> header)
The createReport operation is used to create a report schedule for the given reportType.
|
AmazonPayResponse |
finalizeCheckoutSession(String checkoutSessionId,
org.json.JSONObject payload)
The finalizeCheckoutSession operation enables Pay to validate payment critical attributes and also update book-keeping attributes present in merchantMetadata.
|
AmazonPayResponse |
finalizeCheckoutSession(String checkoutSessionId,
org.json.JSONObject payload,
Map<String,String> header)
The finalizeCheckoutSession operation enables Pay to validate payment critical attributes and also update book-keeping attributes present in merchantMetadata
|
AmazonPayResponse |
getBuyer(String buyerToken)
Get Buyer details can include buyer ID, name, email address, postal code, and country code
when used with the Amazon.Pay.renderButton 'SignIn' productType and corresponding signInScopes.
|
AmazonPayResponse |
getBuyer(String buyerToken,
Map<String,String> header)
Get Buyer details can include buyer ID, name, email address, postal code, and country code
when used with the Amazon.Pay.renderButton 'SignIn' productType and corresponding signInScopes.
|
AmazonPayResponse |
getCharge(String chargeId)
The getCharge operation is used to get charges details that contain
|
AmazonPayResponse |
getCharge(String chargeId,
Map<String,String> header)
The getCharge operation is used to get charges details that contain
|
AmazonPayResponse |
getChargePermission(String chargePermissionId)
The GetChargePermission operation is used to get the complete details of ChargePermission.
|
AmazonPayResponse |
getChargePermission(String chargePermissionId,
Map<String,String> header)
The GetChargePermission operation is used to get the complete details of ChargePermission.
|
AmazonPayResponse |
getCheckoutSession(String checkoutSessionId)
The GetCheckoutSession operation is used to get checkout session details that contain
all session associated details.
|
AmazonPayResponse |
getCheckoutSession(String checkoutSessionId,
Map<String,String> header)
The GetCheckoutSession operation is used to get checkout session details that contain
all session associated details.
|
AmazonPayResponse |
getDisbursements(Map<String,List<String>> queryParameters,
Map<String,String> header)
The getDisbursements operation is used to receive disbursement details based on a date range of the settlement date specified in the request.
|
AmazonPayResponse |
getRefund(String refundId)
The getRefund operation is used to get refund details that contain
|
AmazonPayResponse |
getRefund(String refundId,
Map<String,String> header)
The getRefund operation is used to get refund details that contain
|
AmazonPayResponse |
getReportById(String reportId) |
AmazonPayResponse |
getReportById(String reportId,
Map<String,String> header)
The getReportById operation is used to get report details for the given reportId.
|
AmazonPayResponse |
getReportDocument(String reportDocumentId) |
AmazonPayResponse |
getReportDocument(String reportDocumentId,
Map<String,String> header)
The getReportDocument operation is used to return the pre-signed S3 URL for the report.
|
AmazonPayResponse |
getReports() |
AmazonPayResponse |
getReports(Map<String,List<String>> queryParameters) |
AmazonPayResponse |
getReports(Map<String,List<String>> queryParameters,
Map<String,String> header)
The getReports operation is used to get report details for the reports that match the filters that you specify.
|
AmazonPayResponse |
getReportScheduleById(String reportScheduleId) |
AmazonPayResponse |
getReportScheduleById(String reportScheduleId,
Map<String,String> header)
The getReportScheduleById operation is used to get report schedule details that match the given ID.
|
AmazonPayResponse |
getReportSchedules() |
AmazonPayResponse |
getReportSchedules(String reportTypes) |
AmazonPayResponse |
getReportSchedules(String reportTypes,
Map<String,String> header)
The getReportSchedules operation is used to return the pre-signed S3 URL for the report.
|
AmazonPayResponse |
updateCharge(String chargeId,
org.json.JSONObject payload)
The updateCharge operation is used to update the charge status of any PSP (Payment Service Provider) processed payment method (PPM) transactions.
|
AmazonPayResponse |
updateCharge(String chargeId,
org.json.JSONObject payload,
Map<String,String> header)
The updateCharge operation is used to update the charge status of any PSP (Payment Service Provider) processed payment method (PPM) transactions.
|
AmazonPayResponse |
updateChargePermission(String chargePermissionId,
org.json.JSONObject payload)
The UpdateChargePermission operation is used to update the metadata of the ChargePermission.
|
AmazonPayResponse |
updateChargePermission(String chargePermissionId,
org.json.JSONObject payload,
Map<String,String> header)
The UpdateChargePermission operation is used to update the metadata of the ChargePermission.
|
AmazonPayResponse |
updateCheckoutSession(String checkoutSessionId,
org.json.JSONObject payload)
The UpdateCheckoutSession operation is used to update payment details for a session.
|
AmazonPayResponse |
updateCheckoutSession(String checkoutSessionId,
org.json.JSONObject payload,
Map<String,String> header)
The UpdateCheckoutSession operation is used to update payment details for a session.
|
AmazonPayResponse |
updateDispute(String disputeId,
org.json.JSONObject payload)
The updateDispute operation is used to notify Amazon of the closure status of a chargeback dispute initiated by a
buyer for orders processed by a partner PSP (Payment Service Provider), ensuring proper accounting within
the Amazon systems.
|
AmazonPayResponse |
updateDispute(String disputeId,
org.json.JSONObject payload,
Map<String,String> header)
The updateDispute operation is used to notify Amazon of the closure status of a chargeback dispute initiated by a
buyer for orders processed by a partner PSP (Payment Service Provider), ensuring proper accounting within
the Amazon systems.
|
AmazonPayResponse |
uploadFile(org.json.JSONObject payload)
The uploadFile operation is utilised by PSPs (Payment Service Provider) to upload file-based evidence when a
merchant contests a dispute, providing the necessary reference ID to the evidence file as part of
the Update Dispute API process.
|
AmazonPayResponse |
uploadFile(org.json.JSONObject payload,
Map<String,String> header)
The uploadFile operation is utilised by PSPs (Payment Service Provider) to upload file-based evidence when a
merchant contests a dispute, providing the necessary reference ID to the evidence file as part of
the Update Dispute API process.
|
callAPI, deleteAmazonPayAccount, deleteAmazonPayAccount, deliveryTracker, deliveryTracker, generateButtonSignature, generateButtonSignature, getAuthorizationToken, getClosableHttpClientWithConnectionPool, getClosableHttpClientWithPoolAndProxy, getPoolStats, registerAmazonPayAccount, registerAmazonPayAccount, updateAmazonPayAccount, updateAmazonPayAccountpublic WebstoreClient(PayConfiguration payConfiguration) throws AmazonPayClientException
AmazonPayClientExceptionpublic AmazonPayResponse getBuyer(String buyerToken, Map<String,String> header) throws AmazonPayClientException
buyerToken - Buyer Tokenheader - Map<String, String> containining key-value pair of required headers (e.g., keys such as x-amz-pay-idempotency-key, x-amz-pay-authtoken)AmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse getBuyer(String buyerToken) throws AmazonPayClientException
buyerToken - Buyer TokenAmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse createCheckoutSession(org.json.JSONObject payload, Map<String,String> header) throws AmazonPayClientException
payload - JSONObject request bodyheader - Map<String, String> containining key-value pair of required headers (e.g., keys such as x-amz-pay-idempotency-key, x-amz-pay-authtoken)AmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse createCheckoutSession(org.json.JSONObject payload) throws AmazonPayClientException
payload - JSONObject request bodyAmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse getCheckoutSession(String checkoutSessionId, Map<String,String> header) throws AmazonPayClientException
checkoutSessionId - Checkout Session ID provided by Checkout v2 serviceheader - Map<String, String> containining key-value pair of required headers (e.g., keys such as x-amz-pay-idempotency-key, x-amz-pay-authtoken)AmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse getCheckoutSession(String checkoutSessionId) throws AmazonPayClientException
checkoutSessionId - Checkout Session ID provided by Checkout v2 serviceAmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse updateCheckoutSession(String checkoutSessionId, org.json.JSONObject payload, Map<String,String> header) throws AmazonPayClientException
checkoutSessionId - Checkout Session ID provided by Checkout v2 servicepayload - JSONObject request bodyheader - Map<String, String> containining key-value pair of required headers (e.g., keys such as x-amz-pay-idempotency-key, x-amz-pay-authtoken)AmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse updateCheckoutSession(String checkoutSessionId, org.json.JSONObject payload) throws AmazonPayClientException
checkoutSessionId - Checkout Session ID provided by Checkout v2 servicepayload - JSONObject request bodyAmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse completeCheckoutSession(String checkoutSessionId, org.json.JSONObject payload, Map<String,String> header) throws AmazonPayClientException
checkoutSessionId - Checkout Session ID provided by Checkout v2 servicepayload - JSONObject request bodyheader - Map<String, String> containining key-value pair of required headers (e.g., keys such as x-amz-pay-idempotency-key, x-amz-pay-authtoken)AmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse completeCheckoutSession(String checkoutSessionId, org.json.JSONObject payload) throws AmazonPayClientException
checkoutSessionId - Checkout Session ID provided by Checkout v2 servicepayload - JSONObject request bodyAmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse getChargePermission(String chargePermissionId, Map<String,String> header) throws AmazonPayClientException
chargePermissionId - Charge Permission ID provided by Checkout v2 serviceheader - Map<String, String> containining key-value pair of required headers (e.g., keys such as x-amz-pay-idempotency-key, x-amz-pay-authtoken)AmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse getChargePermission(String chargePermissionId) throws AmazonPayClientException
chargePermissionId - Charge Permission ID provided by Checkout v2 serviceAmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse updateChargePermission(String chargePermissionId, org.json.JSONObject payload, Map<String,String> header) throws AmazonPayClientException
chargePermissionId - Charge Permission ID provided by Checkout v2 servicepayload - JSONObject request bodyheader - Map<String, String> containining key-value pair of required headers (e.g., keys such as x-amz-pay-idempotency-key, x-amz-pay-authtoken)AmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse updateChargePermission(String chargePermissionId, org.json.JSONObject payload) throws AmazonPayClientException
chargePermissionId - Charge Permission ID provided by Checkout v2 servicepayload - JSONObject request bodyAmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse closeChargePermission(String chargePermissionId, org.json.JSONObject payload, Map<String,String> header) throws AmazonPayClientException
chargePermissionId - Charge Permission ID provided by Checkout v2 servicepayload - JSONObject request bodyheader - Map<String, String> containining key-value pair of required headers (e.g., keys such as x-amz-pay-idempotency-key, x-amz-pay-authtoken)AmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse closeChargePermission(String chargePermissionId, org.json.JSONObject payload) throws AmazonPayClientException
chargePermissionId - Charge Permission ID provided by Checkout v2 servicepayload - JSONObject request bodyAmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse createCharge(org.json.JSONObject payload, Map<String,String> header) throws AmazonPayClientException
payload - JSONObject request bodyheader - Map<String, String> containining key-value pair of required headers (e.g., keys such as x-amz-pay-idempotency-key, x-amz-pay-authtoken)AmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse createCharge(org.json.JSONObject payload) throws AmazonPayClientException
payload - JSONObject request bodyAmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse getCharge(String chargeId, Map<String,String> header) throws AmazonPayClientException
chargeId - Charge ID provided by Checkout v2 serviceheader - Map<String, String> containining key-value pair of required headers (e.g., keys such as x-amz-pay-idempotency-key, x-amz-pay-authtoken)AmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse getCharge(String chargeId) throws AmazonPayClientException
chargeId - Charge ID provided by Checkout v2 serviceAmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse updateCharge(String chargeId, org.json.JSONObject payload, Map<String,String> header) throws AmazonPayClientException
chargeId - Charge ID provided by Checkout v2 service.payload - JSONObject request body.header - Map<String, String> containining key-value pair of required headers (e.g., keys such as x-amz-pay-idempotency-key, x-amz-pay-authtoken).AmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issue.public AmazonPayResponse updateCharge(String chargeId, org.json.JSONObject payload) throws AmazonPayClientException
chargeId - Charge ID provided by Checkout v2 service.payload - JSONObject request body.AmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issue.public AmazonPayResponse captureCharge(String chargeId, org.json.JSONObject payload, Map<String,String> header) throws AmazonPayClientException
chargeId - Charge ID provided by Checkout v2 servicepayload - JSONObject request bodyheader - Map<String, String> containining key-value pair of required headers (e.g., keys such as x-amz-pay-idempotency-key, x-amz-pay-authtoken)AmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse captureCharge(String chargeId, org.json.JSONObject payload) throws AmazonPayClientException
chargeId - Charge ID provided by Checkout v2 servicepayload - JSONObject request bodyAmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse cancelCharge(String chargeId, org.json.JSONObject payload, Map<String,String> header) throws AmazonPayClientException
chargeId - Charge ID provided by Checkout v2 servicepayload - JSONObject request bodyheader - Map<String, String> containining key-value pair of required headers (e.g., keys such as x-amz-pay-idempotency-key, x-amz-pay-authtoken)AmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse cancelCharge(String chargeId, org.json.JSONObject payload) throws AmazonPayClientException
chargeId - Charge ID provided by Checkout v2 servicepayload - JSONObject request bodyAmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse createRefund(org.json.JSONObject payload, Map<String,String> header) throws AmazonPayClientException
payload - JSONObject request bodyheader - Map<String, String> containining key-value pair of required headers (e.g., keys such as x-amz-pay-idempotency-key, x-amz-pay-authtoken)AmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse createRefund(org.json.JSONObject payload) throws AmazonPayClientException
payload - JSONObject request bodyAmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse getRefund(String refundId, Map<String,String> header) throws AmazonPayClientException
refundId - Refund ID provided by Checkout v2 serviceheader - Map<String, String> containining key-value pair of required headers (e.g., keys such as x-amz-pay-idempotency-key, x-amz-pay-authtoken)AmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse getRefund(String refundId) throws AmazonPayClientException
refundId - Refund ID provided by Checkout v2 serviceAmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse getReports(Map<String,List<String>> queryParameters, Map<String,String> header) throws AmazonPayClientException
queryParameters - Request Paramters as part of filters to be provided optionally while calling API (e.g., reportTypes, processingStatus etc.)header - Map<String, String> containing key-value pair of required headers (e.g., keys such as x-amz-pay-idempotency-key, x-amz-pay-authtoken)AmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse getReports(Map<String,List<String>> queryParameters) throws AmazonPayClientException
AmazonPayClientExceptionpublic AmazonPayResponse getReports() throws AmazonPayClientException
AmazonPayClientExceptionpublic AmazonPayResponse getReportById(String reportId, Map<String,String> header) throws AmazonPayClientException
reportId - Report ID provided while calling the APIheader - Map<String, String> containing key-value pair of required headers (e.g., keys such as x-amz-pay-idempotency-key, x-amz-pay-authtoken)AmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse getReportById(String reportId) throws AmazonPayClientException
AmazonPayClientExceptionpublic AmazonPayResponse getReportDocument(String reportDocumentId, Map<String,String> header) throws AmazonPayClientException
reportDocumentId - Report Document ID provided while calling the APIheader - Map<String, String> containing key-value pair of required headers (e.g., keys such as x-amz-pay-idempotency-key, x-amz-pay-authtoken)AmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse getReportDocument(String reportDocumentId) throws AmazonPayClientException
AmazonPayClientExceptionpublic AmazonPayResponse getReportSchedules(String reportTypes, Map<String,String> header) throws AmazonPayClientException
reportTypes - Report Types provided while calling the API comma-seperated list of ReportTypeheader - Map<String, String> containing key-value pair of required headers (e.g., keys such as x-amz-pay-idempotency-key, x-amz-pay-authtoken)AmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse getReportSchedules(String reportTypes) throws AmazonPayClientException
AmazonPayClientExceptionpublic AmazonPayResponse getReportSchedules() throws AmazonPayClientException
AmazonPayClientExceptionpublic AmazonPayResponse getReportScheduleById(String reportScheduleId, Map<String,String> header) throws AmazonPayClientException
reportScheduleId - Report Schedule ID provided while calling the APIheader - Map<String, String> containing key-value pair of required headers (e.g., keys such as x-amz-pay-idempotency-key, x-amz-pay-authtoken)AmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse getReportScheduleById(String reportScheduleId) throws AmazonPayClientException
AmazonPayClientExceptionpublic AmazonPayResponse createReport(org.json.JSONObject payload, Map<String,String> header) throws AmazonPayClientException
payload - JSONObject request bodyheader - Map<String, String> containing key-value pair of required headers (e.g., keys such as x-amz-pay-idempotency-key, x-amz-pay-authtoken)AmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse createReportSchedule(org.json.JSONObject payload, Map<String,String> header) throws AmazonPayClientException
payload - JSONObject request bodyheader - Map<String, String> containing key-value pair of required headers (e.g., keys such as x-amz-pay-idempotency-key, x-amz-pay-authtoken)AmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse cancelReportSchedule(String reportScheduleId, Map<String,String> header) throws AmazonPayClientException
reportScheduleId - Report Schedule ID provided while calling the APIheader - Map<String, String> containing key-value pair of required headers (e.g., keys such as x-amz-pay-idempotency-key, x-amz-pay-authtoken)AmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse cancelReportSchedule(String reportScheduleId) throws AmazonPayClientException
AmazonPayClientExceptionpublic AmazonPayResponse getDisbursements(Map<String,List<String>> queryParameters, Map<String,String> header) throws AmazonPayClientException
queryParameters - Query Parameters to be provided while calling API (e.g., startTime, endTime, pageSize, etc.)header - Map<String, String> containing key-value pair of headers (e.g., keys such as x-amz-pay-idempotency-key, x-amz-pay-date)AmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issue.public AmazonPayResponse finalizeCheckoutSession(String checkoutSessionId, org.json.JSONObject payload, Map<String,String> header) throws AmazonPayClientException
checkoutSessionId - Checkout Session ID provided by Checkout v2 servicepayload - JSONObject request bodyheader - Map<String, String> containining key-value pair of required headers (e.g., keys such as x-amz-pay-idempotency-key, x-amz-pay-authtoken)AmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse finalizeCheckoutSession(String checkoutSessionId, org.json.JSONObject payload) throws AmazonPayClientException
checkoutSessionId - Checkout Session ID provided by Checkout v2 servicepayload - JSONObject request bodyAmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic String convertQueryParamters(Map<String,List<String>> parameters) throws AmazonPayClientException
AmazonPayClientExceptionpublic AmazonPayResponse createDispute(org.json.JSONObject payload, Map<String,String> header) throws AmazonPayClientException
payload - JSONObject request bodyheader - Map<String, String> containing key-value pair of required headers (e.g., keys such as x-amz-pay-idempotency-key, x-amz-pay-authtoken, x-amz-pay-date)AmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse updateDispute(String disputeId, org.json.JSONObject payload, Map<String,String> header) throws AmazonPayClientException
disputeId - Dispute ID provided while calling the APIpayload - JSONObject request bodyheader - Map<String, String> containing key-value pair of required headers (e.g., keys such as x-amz-pay-authtoken, x-amz-pay-date)AmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse updateDispute(String disputeId, org.json.JSONObject payload) throws AmazonPayClientException
disputeId - Dispute ID provided while calling the APIpayload - JSONObject request bodyAmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse contestDispute(String disputeId, org.json.JSONObject payload, Map<String,String> header) throws AmazonPayClientException
disputeId - Dispute ID provided while calling the APIpayload - JSONObject request bodyheader - Map<String, String> containing key-value pair of required headers (e.g., keys such as x-amz-pay-authtoken, x-amz-pay-date)AmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse contestDispute(String disputeId, org.json.JSONObject payload) throws AmazonPayClientException
disputeId - Dispute ID provided while calling the APIpayload - JSONObject request bodyAmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse uploadFile(org.json.JSONObject payload, Map<String,String> header) throws AmazonPayClientException
payload - JSONObject request bodyheader - Map<String, String> containing key-value pair of required headers (e.g., keys such as x-amz-pay-idempotency-key, x-amz-pay-authtoken, x-amz-pay-date)AmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse uploadFile(org.json.JSONObject payload) throws AmazonPayClientException
payload - JSONObject request bodyAmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issueCopyright © 2025. All rights reserved.