Class: AdminPaymentsResource
Hierarchy
default
Copy to Clipboard↳
AdminPaymentsResource
Copy to Clipboard
Methods
capturePayment
▸ capturePayment(id
Copy to Clipboard, customHeaders?
Copy to Clipboard): ResponsePromise
Copy to Clipboard<AdminPaymentRes
Copy to Clipboard>
Parameters
Name | Type |
---|---|
id Copy to Clipboard | string Copy to Clipboard |
customHeaders Copy to Clipboard | Record Copy to Clipboard<string Copy to Clipboard, any Copy to Clipboard> |
Returns
ResponsePromise
Copy to Clipboard<AdminPaymentRes
Copy to Clipboard>
Defined in
medusa-js/src/resources/admin/payments.ts:27
refundPayment
▸ refundPayment(id
Copy to Clipboard, payload
Copy to Clipboard, customHeaders?
Copy to Clipboard): ResponsePromise
Copy to Clipboard<AdminRefundRes
Copy to Clipboard>
Parameters
Name | Type |
---|---|
id Copy to Clipboard | string Copy to Clipboard |
payload Copy to Clipboard | AdminPostPaymentRefundsReq Copy to Clipboard |
customHeaders Copy to Clipboard | Record Copy to Clipboard<string Copy to Clipboard, any Copy to Clipboard> |
Returns
ResponsePromise
Copy to Clipboard<AdminRefundRes
Copy to Clipboard>
Defined in
medusa-js/src/resources/admin/payments.ts:35
retrieve
▸ retrieve(id
Copy to Clipboard, query?
Copy to Clipboard, customHeaders?
Copy to Clipboard): ResponsePromise
Copy to Clipboard<AdminPaymentRes
Copy to Clipboard>
Parameters
Name | Type |
---|---|
id Copy to Clipboard | string Copy to Clipboard |
query? Copy to Clipboard | GetPaymentsParams Copy to Clipboard |
customHeaders Copy to Clipboard | Record Copy to Clipboard<string Copy to Clipboard, any Copy to Clipboard> |
Returns
ResponsePromise
Copy to Clipboard<AdminPaymentRes
Copy to Clipboard>