@keystrokehq/razorpay 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/cancel-invoice.cjs +105 -0
- package/dist/actions/cancel-invoice.cjs.map +1 -0
- package/dist/actions/cancel-invoice.d.cts +9 -0
- package/dist/actions/cancel-invoice.d.cts.map +1 -0
- package/dist/actions/cancel-invoice.d.mts +9 -0
- package/dist/actions/cancel-invoice.d.mts.map +1 -0
- package/dist/actions/cancel-invoice.mjs +104 -0
- package/dist/actions/cancel-invoice.mjs.map +1 -0
- package/dist/actions/cancel-payment-link.cjs +42 -0
- package/dist/actions/cancel-payment-link.cjs.map +1 -0
- package/dist/actions/cancel-payment-link.d.cts +9 -0
- package/dist/actions/cancel-payment-link.d.cts.map +1 -0
- package/dist/actions/cancel-payment-link.d.mts +9 -0
- package/dist/actions/cancel-payment-link.d.mts.map +1 -0
- package/dist/actions/cancel-payment-link.mjs +39 -0
- package/dist/actions/cancel-payment-link.mjs.map +1 -0
- package/dist/actions/create-an-order.cjs +34 -0
- package/dist/actions/create-an-order.cjs.map +1 -0
- package/dist/actions/create-an-order.d.cts +9 -0
- package/dist/actions/create-an-order.d.cts.map +1 -0
- package/dist/actions/create-an-order.d.mts +9 -0
- package/dist/actions/create-an-order.d.mts.map +1 -0
- package/dist/actions/create-an-order.mjs +31 -0
- package/dist/actions/create-an-order.mjs.map +1 -0
- package/dist/actions/create-contact.cjs +39 -0
- package/dist/actions/create-contact.cjs.map +1 -0
- package/dist/actions/create-contact.d.cts +9 -0
- package/dist/actions/create-contact.d.cts.map +1 -0
- package/dist/actions/create-contact.d.mts +9 -0
- package/dist/actions/create-contact.d.mts.map +1 -0
- package/dist/actions/create-contact.mjs +36 -0
- package/dist/actions/create-contact.mjs.map +1 -0
- package/dist/actions/create-customer.cjs +31 -0
- package/dist/actions/create-customer.cjs.map +1 -0
- package/dist/actions/create-customer.d.cts +9 -0
- package/dist/actions/create-customer.d.cts.map +1 -0
- package/dist/actions/create-customer.d.mts +9 -0
- package/dist/actions/create-customer.d.mts.map +1 -0
- package/dist/actions/create-customer.mjs +28 -0
- package/dist/actions/create-customer.mjs.map +1 -0
- package/dist/actions/create-invoice.cjs +167 -0
- package/dist/actions/create-invoice.cjs.map +1 -0
- package/dist/actions/create-invoice.d.cts +9 -0
- package/dist/actions/create-invoice.d.cts.map +1 -0
- package/dist/actions/create-invoice.d.mts +9 -0
- package/dist/actions/create-invoice.d.mts.map +1 -0
- package/dist/actions/create-invoice.mjs +166 -0
- package/dist/actions/create-invoice.mjs.map +1 -0
- package/dist/actions/create-item.cjs +37 -0
- package/dist/actions/create-item.cjs.map +1 -0
- package/dist/actions/create-item.d.cts +9 -0
- package/dist/actions/create-item.d.cts.map +1 -0
- package/dist/actions/create-item.d.mts +9 -0
- package/dist/actions/create-item.d.mts.map +1 -0
- package/dist/actions/create-item.mjs +34 -0
- package/dist/actions/create-item.mjs.map +1 -0
- package/dist/actions/create-payment-link.cjs +72 -0
- package/dist/actions/create-payment-link.cjs.map +1 -0
- package/dist/actions/create-payment-link.d.cts +9 -0
- package/dist/actions/create-payment-link.d.cts.map +1 -0
- package/dist/actions/create-payment-link.d.mts +9 -0
- package/dist/actions/create-payment-link.d.mts.map +1 -0
- package/dist/actions/create-payment-link.mjs +71 -0
- package/dist/actions/create-payment-link.mjs.map +1 -0
- package/dist/actions/delete-invoice.cjs +16 -0
- package/dist/actions/delete-invoice.cjs.map +1 -0
- package/dist/actions/delete-invoice.d.cts +9 -0
- package/dist/actions/delete-invoice.d.cts.map +1 -0
- package/dist/actions/delete-invoice.d.mts +9 -0
- package/dist/actions/delete-invoice.d.mts.map +1 -0
- package/dist/actions/delete-invoice.mjs +13 -0
- package/dist/actions/delete-invoice.mjs.map +1 -0
- package/dist/actions/delete-item.cjs +16 -0
- package/dist/actions/delete-item.cjs.map +1 -0
- package/dist/actions/delete-item.d.cts +9 -0
- package/dist/actions/delete-item.d.cts.map +1 -0
- package/dist/actions/delete-item.d.mts +9 -0
- package/dist/actions/delete-item.d.mts.map +1 -0
- package/dist/actions/delete-item.mjs +13 -0
- package/dist/actions/delete-item.mjs.map +1 -0
- package/dist/actions/fetch-a-payment-link.cjs +54 -0
- package/dist/actions/fetch-a-payment-link.cjs.map +1 -0
- package/dist/actions/fetch-a-payment-link.d.cts +9 -0
- package/dist/actions/fetch-a-payment-link.d.cts.map +1 -0
- package/dist/actions/fetch-a-payment-link.d.mts +9 -0
- package/dist/actions/fetch-a-payment-link.d.mts.map +1 -0
- package/dist/actions/fetch-a-payment-link.mjs +53 -0
- package/dist/actions/fetch-a-payment-link.mjs.map +1 -0
- package/dist/actions/fetch-all-customers.cjs +33 -0
- package/dist/actions/fetch-all-customers.cjs.map +1 -0
- package/dist/actions/fetch-all-customers.d.cts +9 -0
- package/dist/actions/fetch-all-customers.d.cts.map +1 -0
- package/dist/actions/fetch-all-customers.d.mts +9 -0
- package/dist/actions/fetch-all-customers.d.mts.map +1 -0
- package/dist/actions/fetch-all-customers.mjs +32 -0
- package/dist/actions/fetch-all-customers.mjs.map +1 -0
- package/dist/actions/fetch-all-invoices.cjs +117 -0
- package/dist/actions/fetch-all-invoices.cjs.map +1 -0
- package/dist/actions/fetch-all-invoices.d.cts +9 -0
- package/dist/actions/fetch-all-invoices.d.cts.map +1 -0
- package/dist/actions/fetch-all-invoices.d.mts +9 -0
- package/dist/actions/fetch-all-invoices.d.mts.map +1 -0
- package/dist/actions/fetch-all-invoices.mjs +116 -0
- package/dist/actions/fetch-all-invoices.mjs.map +1 -0
- package/dist/actions/fetch-all-payment-links.cjs +52 -0
- package/dist/actions/fetch-all-payment-links.cjs.map +1 -0
- package/dist/actions/fetch-all-payment-links.d.cts +9 -0
- package/dist/actions/fetch-all-payment-links.d.cts.map +1 -0
- package/dist/actions/fetch-all-payment-links.d.mts +9 -0
- package/dist/actions/fetch-all-payment-links.d.mts.map +1 -0
- package/dist/actions/fetch-all-payment-links.mjs +51 -0
- package/dist/actions/fetch-all-payment-links.mjs.map +1 -0
- package/dist/actions/fetch-all-payments.cjs +58 -0
- package/dist/actions/fetch-all-payments.cjs.map +1 -0
- package/dist/actions/fetch-all-payments.d.cts +9 -0
- package/dist/actions/fetch-all-payments.d.cts.map +1 -0
- package/dist/actions/fetch-all-payments.d.mts +9 -0
- package/dist/actions/fetch-all-payments.d.mts.map +1 -0
- package/dist/actions/fetch-all-payments.mjs +57 -0
- package/dist/actions/fetch-all-payments.mjs.map +1 -0
- package/dist/actions/fetch-all-refunds-for-a-payment.cjs +42 -0
- package/dist/actions/fetch-all-refunds-for-a-payment.cjs.map +1 -0
- package/dist/actions/fetch-all-refunds-for-a-payment.d.cts +9 -0
- package/dist/actions/fetch-all-refunds-for-a-payment.d.cts.map +1 -0
- package/dist/actions/fetch-all-refunds-for-a-payment.d.mts +9 -0
- package/dist/actions/fetch-all-refunds-for-a-payment.d.mts.map +1 -0
- package/dist/actions/fetch-all-refunds-for-a-payment.mjs +41 -0
- package/dist/actions/fetch-all-refunds-for-a-payment.mjs.map +1 -0
- package/dist/actions/fetch-invoice-by-id.cjs +103 -0
- package/dist/actions/fetch-invoice-by-id.cjs.map +1 -0
- package/dist/actions/fetch-invoice-by-id.d.cts +9 -0
- package/dist/actions/fetch-invoice-by-id.d.cts.map +1 -0
- package/dist/actions/fetch-invoice-by-id.d.mts +9 -0
- package/dist/actions/fetch-invoice-by-id.d.mts.map +1 -0
- package/dist/actions/fetch-invoice-by-id.mjs +102 -0
- package/dist/actions/fetch-invoice-by-id.mjs.map +1 -0
- package/dist/actions/fetch-orders-by-id.cjs +29 -0
- package/dist/actions/fetch-orders-by-id.cjs.map +1 -0
- package/dist/actions/fetch-orders-by-id.d.cts +9 -0
- package/dist/actions/fetch-orders-by-id.d.cts.map +1 -0
- package/dist/actions/fetch-orders-by-id.d.mts +9 -0
- package/dist/actions/fetch-orders-by-id.d.mts.map +1 -0
- package/dist/actions/fetch-orders-by-id.mjs +26 -0
- package/dist/actions/fetch-orders-by-id.mjs.map +1 -0
- package/dist/actions/fetch-orders.cjs +41 -0
- package/dist/actions/fetch-orders.cjs.map +1 -0
- package/dist/actions/fetch-orders.d.cts +9 -0
- package/dist/actions/fetch-orders.d.cts.map +1 -0
- package/dist/actions/fetch-orders.d.mts +9 -0
- package/dist/actions/fetch-orders.d.mts.map +1 -0
- package/dist/actions/fetch-orders.mjs +40 -0
- package/dist/actions/fetch-orders.mjs.map +1 -0
- package/dist/actions/fetch-payments-by-order.cjs +53 -0
- package/dist/actions/fetch-payments-by-order.cjs.map +1 -0
- package/dist/actions/fetch-payments-by-order.d.cts +9 -0
- package/dist/actions/fetch-payments-by-order.d.cts.map +1 -0
- package/dist/actions/fetch-payments-by-order.d.mts +9 -0
- package/dist/actions/fetch-payments-by-order.d.mts.map +1 -0
- package/dist/actions/fetch-payments-by-order.mjs +52 -0
- package/dist/actions/fetch-payments-by-order.mjs.map +1 -0
- package/dist/actions/fetch-refunds.cjs +41 -0
- package/dist/actions/fetch-refunds.cjs.map +1 -0
- package/dist/actions/fetch-refunds.d.cts +9 -0
- package/dist/actions/fetch-refunds.d.cts.map +1 -0
- package/dist/actions/fetch-refunds.d.mts +9 -0
- package/dist/actions/fetch-refunds.d.mts.map +1 -0
- package/dist/actions/fetch-refunds.mjs +40 -0
- package/dist/actions/fetch-refunds.mjs.map +1 -0
- package/dist/actions/get-contact.cjs +28 -0
- package/dist/actions/get-contact.cjs.map +1 -0
- package/dist/actions/get-contact.d.cts +9 -0
- package/dist/actions/get-contact.d.cts.map +1 -0
- package/dist/actions/get-contact.d.mts +9 -0
- package/dist/actions/get-contact.d.mts.map +1 -0
- package/dist/actions/get-contact.mjs +25 -0
- package/dist/actions/get-contact.mjs.map +1 -0
- package/dist/actions/get-customer.cjs +25 -0
- package/dist/actions/get-customer.cjs.map +1 -0
- package/dist/actions/get-customer.d.cts +9 -0
- package/dist/actions/get-customer.d.cts.map +1 -0
- package/dist/actions/get-customer.d.mts +9 -0
- package/dist/actions/get-customer.d.mts.map +1 -0
- package/dist/actions/get-customer.mjs +22 -0
- package/dist/actions/get-customer.mjs.map +1 -0
- package/dist/actions/get-fund-account.cjs +44 -0
- package/dist/actions/get-fund-account.cjs.map +1 -0
- package/dist/actions/get-fund-account.d.cts +9 -0
- package/dist/actions/get-fund-account.d.cts.map +1 -0
- package/dist/actions/get-fund-account.d.mts +9 -0
- package/dist/actions/get-fund-account.d.mts.map +1 -0
- package/dist/actions/get-fund-account.mjs +43 -0
- package/dist/actions/get-fund-account.mjs.map +1 -0
- package/dist/actions/get-item.cjs +33 -0
- package/dist/actions/get-item.cjs.map +1 -0
- package/dist/actions/get-item.d.cts +9 -0
- package/dist/actions/get-item.d.cts.map +1 -0
- package/dist/actions/get-item.d.mts +9 -0
- package/dist/actions/get-item.d.mts.map +1 -0
- package/dist/actions/get-item.mjs +30 -0
- package/dist/actions/get-item.mjs.map +1 -0
- package/dist/actions/get-settlement-recon.cjs +36 -0
- package/dist/actions/get-settlement-recon.cjs.map +1 -0
- package/dist/actions/get-settlement-recon.d.cts +9 -0
- package/dist/actions/get-settlement-recon.d.cts.map +1 -0
- package/dist/actions/get-settlement-recon.d.mts +9 -0
- package/dist/actions/get-settlement-recon.d.mts.map +1 -0
- package/dist/actions/get-settlement-recon.mjs +35 -0
- package/dist/actions/get-settlement-recon.mjs.map +1 -0
- package/dist/actions/get-transfer-reversals.cjs +40 -0
- package/dist/actions/get-transfer-reversals.cjs.map +1 -0
- package/dist/actions/get-transfer-reversals.d.cts +9 -0
- package/dist/actions/get-transfer-reversals.d.cts.map +1 -0
- package/dist/actions/get-transfer-reversals.d.mts +9 -0
- package/dist/actions/get-transfer-reversals.d.mts.map +1 -0
- package/dist/actions/get-transfer-reversals.mjs +39 -0
- package/dist/actions/get-transfer-reversals.mjs.map +1 -0
- package/dist/actions/index.cjs +85 -0
- package/dist/actions/index.d.cts +43 -0
- package/dist/actions/index.d.mts +43 -0
- package/dist/actions/index.mjs +43 -0
- package/dist/actions/issue-an-invoice.cjs +103 -0
- package/dist/actions/issue-an-invoice.cjs.map +1 -0
- package/dist/actions/issue-an-invoice.d.cts +9 -0
- package/dist/actions/issue-an-invoice.d.cts.map +1 -0
- package/dist/actions/issue-an-invoice.d.mts +9 -0
- package/dist/actions/issue-an-invoice.d.mts.map +1 -0
- package/dist/actions/issue-an-invoice.mjs +102 -0
- package/dist/actions/issue-an-invoice.mjs.map +1 -0
- package/dist/actions/list-customer-tokens.cjs +51 -0
- package/dist/actions/list-customer-tokens.cjs.map +1 -0
- package/dist/actions/list-customer-tokens.d.cts +9 -0
- package/dist/actions/list-customer-tokens.d.cts.map +1 -0
- package/dist/actions/list-customer-tokens.d.mts +9 -0
- package/dist/actions/list-customer-tokens.d.mts.map +1 -0
- package/dist/actions/list-customer-tokens.mjs +50 -0
- package/dist/actions/list-customer-tokens.mjs.map +1 -0
- package/dist/actions/list-disputes.cjs +56 -0
- package/dist/actions/list-disputes.cjs.map +1 -0
- package/dist/actions/list-disputes.d.cts +9 -0
- package/dist/actions/list-disputes.d.cts.map +1 -0
- package/dist/actions/list-disputes.d.mts +9 -0
- package/dist/actions/list-disputes.d.mts.map +1 -0
- package/dist/actions/list-disputes.mjs +55 -0
- package/dist/actions/list-disputes.mjs.map +1 -0
- package/dist/actions/list-fund-accounts.cjs +50 -0
- package/dist/actions/list-fund-accounts.cjs.map +1 -0
- package/dist/actions/list-fund-accounts.d.cts +9 -0
- package/dist/actions/list-fund-accounts.d.cts.map +1 -0
- package/dist/actions/list-fund-accounts.d.mts +9 -0
- package/dist/actions/list-fund-accounts.d.mts.map +1 -0
- package/dist/actions/list-fund-accounts.mjs +49 -0
- package/dist/actions/list-fund-accounts.mjs.map +1 -0
- package/dist/actions/list-fund-validations.cjs +57 -0
- package/dist/actions/list-fund-validations.cjs.map +1 -0
- package/dist/actions/list-fund-validations.d.cts +9 -0
- package/dist/actions/list-fund-validations.d.cts.map +1 -0
- package/dist/actions/list-fund-validations.d.mts +9 -0
- package/dist/actions/list-fund-validations.d.mts.map +1 -0
- package/dist/actions/list-fund-validations.mjs +56 -0
- package/dist/actions/list-fund-validations.mjs.map +1 -0
- package/dist/actions/list-items.cjs +44 -0
- package/dist/actions/list-items.cjs.map +1 -0
- package/dist/actions/list-items.d.cts +9 -0
- package/dist/actions/list-items.d.cts.map +1 -0
- package/dist/actions/list-items.d.mts +9 -0
- package/dist/actions/list-items.d.mts.map +1 -0
- package/dist/actions/list-items.mjs +43 -0
- package/dist/actions/list-items.mjs.map +1 -0
- package/dist/actions/list-payment-downtimes.cjs +16 -0
- package/dist/actions/list-payment-downtimes.cjs.map +1 -0
- package/dist/actions/list-payment-downtimes.d.cts +9 -0
- package/dist/actions/list-payment-downtimes.d.cts.map +1 -0
- package/dist/actions/list-payment-downtimes.d.mts +9 -0
- package/dist/actions/list-payment-downtimes.d.mts.map +1 -0
- package/dist/actions/list-payment-downtimes.mjs +13 -0
- package/dist/actions/list-payment-downtimes.mjs.map +1 -0
- package/dist/actions/notify-payment-link.cjs +19 -0
- package/dist/actions/notify-payment-link.cjs.map +1 -0
- package/dist/actions/notify-payment-link.d.cts +9 -0
- package/dist/actions/notify-payment-link.d.cts.map +1 -0
- package/dist/actions/notify-payment-link.d.mts +9 -0
- package/dist/actions/notify-payment-link.d.mts.map +1 -0
- package/dist/actions/notify-payment-link.mjs +16 -0
- package/dist/actions/notify-payment-link.mjs.map +1 -0
- package/dist/actions/send-or-resend-notification.cjs +19 -0
- package/dist/actions/send-or-resend-notification.cjs.map +1 -0
- package/dist/actions/send-or-resend-notification.d.cts +9 -0
- package/dist/actions/send-or-resend-notification.d.cts.map +1 -0
- package/dist/actions/send-or-resend-notification.d.mts +9 -0
- package/dist/actions/send-or-resend-notification.d.mts.map +1 -0
- package/dist/actions/send-or-resend-notification.mjs +16 -0
- package/dist/actions/send-or-resend-notification.mjs.map +1 -0
- package/dist/actions/update-contact.cjs +40 -0
- package/dist/actions/update-contact.cjs.map +1 -0
- package/dist/actions/update-contact.d.cts +9 -0
- package/dist/actions/update-contact.d.cts.map +1 -0
- package/dist/actions/update-contact.d.mts +9 -0
- package/dist/actions/update-contact.d.mts.map +1 -0
- package/dist/actions/update-contact.mjs +37 -0
- package/dist/actions/update-contact.mjs.map +1 -0
- package/dist/actions/update-customer.cjs +30 -0
- package/dist/actions/update-customer.cjs.map +1 -0
- package/dist/actions/update-customer.d.cts +9 -0
- package/dist/actions/update-customer.d.cts.map +1 -0
- package/dist/actions/update-customer.d.mts +9 -0
- package/dist/actions/update-customer.d.mts.map +1 -0
- package/dist/actions/update-customer.mjs +27 -0
- package/dist/actions/update-customer.mjs.map +1 -0
- package/dist/actions/update-invoice.cjs +170 -0
- package/dist/actions/update-invoice.cjs.map +1 -0
- package/dist/actions/update-invoice.d.cts +9 -0
- package/dist/actions/update-invoice.d.cts.map +1 -0
- package/dist/actions/update-invoice.d.mts +9 -0
- package/dist/actions/update-invoice.d.mts.map +1 -0
- package/dist/actions/update-invoice.mjs +169 -0
- package/dist/actions/update-invoice.mjs.map +1 -0
- package/dist/actions/update-item.cjs +38 -0
- package/dist/actions/update-item.cjs.map +1 -0
- package/dist/actions/update-item.d.cts +9 -0
- package/dist/actions/update-item.d.cts.map +1 -0
- package/dist/actions/update-item.d.mts +9 -0
- package/dist/actions/update-item.d.mts.map +1 -0
- package/dist/actions/update-item.mjs +35 -0
- package/dist/actions/update-item.mjs.map +1 -0
- package/dist/actions/update-order.cjs +32 -0
- package/dist/actions/update-order.cjs.map +1 -0
- package/dist/actions/update-order.d.cts +9 -0
- package/dist/actions/update-order.d.cts.map +1 -0
- package/dist/actions/update-order.d.mts +9 -0
- package/dist/actions/update-order.d.mts.map +1 -0
- package/dist/actions/update-order.mjs +29 -0
- package/dist/actions/update-order.mjs.map +1 -0
- package/dist/actions/update-payment-link.cjs +60 -0
- package/dist/actions/update-payment-link.cjs.map +1 -0
- package/dist/actions/update-payment-link.d.cts +9 -0
- package/dist/actions/update-payment-link.d.cts.map +1 -0
- package/dist/actions/update-payment-link.d.mts +9 -0
- package/dist/actions/update-payment-link.d.mts.map +1 -0
- package/dist/actions/update-payment-link.mjs +59 -0
- package/dist/actions/update-payment-link.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +90 -0
- package/dist/index.d.cts +45 -0
- package/dist/index.d.mts +45 -0
- package/dist/index.mjs +46 -0
- package/package.json +49 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/list-customer-tokens.ts
|
|
4
|
+
const RazorpayListCustomerTokensInput = zod.z.object({ customer_id: zod.z.string().describe("Unique identifier of the customer whose tokens are to be retrieved. Format: cust_<14 alphanumeric characters>") }).describe("Request parameters for listing customer tokens.");
|
|
5
|
+
const RazorpayListCustomerTokens_CardDetailsSchema = zod.z.object({
|
|
6
|
+
emi: zod.z.boolean().describe("Indicates if the card supports EMI (Equated Monthly Installment)").nullable().optional(),
|
|
7
|
+
name: zod.z.string().describe("Name on the card").nullable().optional(),
|
|
8
|
+
type: zod.z.string().describe("Card type (e.g., credit, debit, prepaid)").nullable().optional(),
|
|
9
|
+
last4: zod.z.string().describe("Last 4 digits of the card number").nullable().optional(),
|
|
10
|
+
issuer: zod.z.string().describe("Issuing bank or institution name").nullable().optional(),
|
|
11
|
+
network: zod.z.string().describe("Card network (e.g., Visa, MasterCard, RuPay, etc.)").nullable().optional(),
|
|
12
|
+
sub_type: zod.z.string().describe("Card sub-type (e.g., consumer, business)").nullable().optional(),
|
|
13
|
+
expiry_year: zod.z.number().int().describe("Card expiry year (4-digit format)").nullable().optional(),
|
|
14
|
+
expiry_month: zod.z.number().int().describe("Card expiry month (1-12)").nullable().optional(),
|
|
15
|
+
international: zod.z.boolean().describe("Indicates if the card is an international card").nullable().optional()
|
|
16
|
+
}).describe("Card details associated with a token.");
|
|
17
|
+
const RazorpayListCustomerTokens_TokenSchema = zod.z.object({
|
|
18
|
+
id: zod.z.string().describe("Unique identifier for the token. Format: token_<14 alphanumeric characters>"),
|
|
19
|
+
mrn: zod.z.string().describe("Mandate Reference Number for emandate/nach tokens").nullable().optional(),
|
|
20
|
+
bank: zod.z.string().describe("Bank name for emandate/nach tokens").nullable().optional(),
|
|
21
|
+
card: RazorpayListCustomerTokens_CardDetailsSchema.nullable().optional(),
|
|
22
|
+
entity: zod.z.string().describe("Entity type, always 'token'"),
|
|
23
|
+
method: zod.z.string().describe("Payment method (e.g., card, emandate, nach, upi)"),
|
|
24
|
+
status: zod.z.string().describe("Status of the token (e.g., active, expired, rejected, suspended)").nullable().optional(),
|
|
25
|
+
used_at: zod.z.number().int().describe("Unix timestamp when the token was last used").nullable().optional(),
|
|
26
|
+
auth_type: zod.z.string().describe("Authentication type used (e.g., 3ds, otp, etc.)").nullable().optional(),
|
|
27
|
+
recurring: zod.z.boolean().describe("Indicates if the token can be used for recurring payments").nullable().optional(),
|
|
28
|
+
created_at: zod.z.number().int().describe("Unix timestamp when the token was created"),
|
|
29
|
+
error_code: zod.z.string().describe("Error code if the token creation failed").nullable().optional(),
|
|
30
|
+
expired_at: zod.z.number().int().describe("Unix timestamp when the token expired").nullable().optional(),
|
|
31
|
+
max_amount: zod.z.number().int().describe("Maximum amount that can be charged using this token (in paise)").nullable().optional(),
|
|
32
|
+
error_description: zod.z.string().describe("Error description if the token creation failed").nullable().optional(),
|
|
33
|
+
recurring_details: zod.z.object({}).describe("Details about recurring payment configuration").nullable().optional(),
|
|
34
|
+
compliant_with_tokenisation_guidelines: zod.z.boolean().describe("Indicates if the token is compliant with RBI tokenisation guidelines").nullable().optional()
|
|
35
|
+
}).describe("A single token (saved payment method) object.");
|
|
36
|
+
const RazorpayListCustomerTokensOutput = zod.z.object({
|
|
37
|
+
count: zod.z.number().int().describe("Number of tokens returned in this response"),
|
|
38
|
+
items: zod.z.array(RazorpayListCustomerTokens_TokenSchema).describe("Array of token objects associated with the customer"),
|
|
39
|
+
entity: zod.z.string().describe("Entity type for the collection, typically 'collection'")
|
|
40
|
+
}).describe("Response schema for listing customer tokens.");
|
|
41
|
+
const razorpayListCustomerTokens = require_action.action("RAZORPAY_LIST_CUSTOMER_TOKENS", {
|
|
42
|
+
slug: "razorpay-list-customer-tokens",
|
|
43
|
+
name: "List Customer Tokens",
|
|
44
|
+
description: "Tool to retrieve all tokens (saved payment methods) for a customer. Use when you need to fetch the list of saved payment methods associated with a specific customer ID.",
|
|
45
|
+
input: RazorpayListCustomerTokensInput,
|
|
46
|
+
output: RazorpayListCustomerTokensOutput
|
|
47
|
+
});
|
|
48
|
+
//#endregion
|
|
49
|
+
exports.razorpayListCustomerTokens = razorpayListCustomerTokens;
|
|
50
|
+
|
|
51
|
+
//# sourceMappingURL=list-customer-tokens.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-customer-tokens.cjs","names":["z","action"],"sources":["../../src/actions/list-customer-tokens.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayListCustomerTokensInput: z.ZodTypeAny = z.object({\n customer_id: z.string().describe(\"Unique identifier of the customer whose tokens are to be retrieved. Format: cust_<14 alphanumeric characters>\"),\n}).describe(\"Request parameters for listing customer tokens.\");\nconst RazorpayListCustomerTokens_CardDetailsSchema: z.ZodTypeAny = z.object({\n emi: z.boolean().describe(\"Indicates if the card supports EMI (Equated Monthly Installment)\").nullable().optional(),\n name: z.string().describe(\"Name on the card\").nullable().optional(),\n type: z.string().describe(\"Card type (e.g., credit, debit, prepaid)\").nullable().optional(),\n last4: z.string().describe(\"Last 4 digits of the card number\").nullable().optional(),\n issuer: z.string().describe(\"Issuing bank or institution name\").nullable().optional(),\n network: z.string().describe(\"Card network (e.g., Visa, MasterCard, RuPay, etc.)\").nullable().optional(),\n sub_type: z.string().describe(\"Card sub-type (e.g., consumer, business)\").nullable().optional(),\n expiry_year: z.number().int().describe(\"Card expiry year (4-digit format)\").nullable().optional(),\n expiry_month: z.number().int().describe(\"Card expiry month (1-12)\").nullable().optional(),\n international: z.boolean().describe(\"Indicates if the card is an international card\").nullable().optional(),\n}).describe(\"Card details associated with a token.\");\nconst RazorpayListCustomerTokens_TokenSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the token. Format: token_<14 alphanumeric characters>\"),\n mrn: z.string().describe(\"Mandate Reference Number for emandate/nach tokens\").nullable().optional(),\n bank: z.string().describe(\"Bank name for emandate/nach tokens\").nullable().optional(),\n card: RazorpayListCustomerTokens_CardDetailsSchema.nullable().optional(),\n entity: z.string().describe(\"Entity type, always 'token'\"),\n method: z.string().describe(\"Payment method (e.g., card, emandate, nach, upi)\"),\n status: z.string().describe(\"Status of the token (e.g., active, expired, rejected, suspended)\").nullable().optional(),\n used_at: z.number().int().describe(\"Unix timestamp when the token was last used\").nullable().optional(),\n auth_type: z.string().describe(\"Authentication type used (e.g., 3ds, otp, etc.)\").nullable().optional(),\n recurring: z.boolean().describe(\"Indicates if the token can be used for recurring payments\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the token was created\"),\n error_code: z.string().describe(\"Error code if the token creation failed\").nullable().optional(),\n expired_at: z.number().int().describe(\"Unix timestamp when the token expired\").nullable().optional(),\n max_amount: z.number().int().describe(\"Maximum amount that can be charged using this token (in paise)\").nullable().optional(),\n error_description: z.string().describe(\"Error description if the token creation failed\").nullable().optional(),\n recurring_details: z.object({}).describe(\"Details about recurring payment configuration\").nullable().optional(),\n compliant_with_tokenisation_guidelines: z.boolean().describe(\"Indicates if the token is compliant with RBI tokenisation guidelines\").nullable().optional(),\n}).describe(\"A single token (saved payment method) object.\");\nexport const RazorpayListCustomerTokensOutput: z.ZodTypeAny = z.object({\n count: z.number().int().describe(\"Number of tokens returned in this response\"),\n items: z.array(RazorpayListCustomerTokens_TokenSchema).describe(\"Array of token objects associated with the customer\"),\n entity: z.string().describe(\"Entity type for the collection, typically 'collection'\"),\n}).describe(\"Response schema for listing customer tokens.\");\n\nexport const razorpayListCustomerTokens = action(\"RAZORPAY_LIST_CUSTOMER_TOKENS\", {\n slug: \"razorpay-list-customer-tokens\",\n name: \"List Customer Tokens\",\n description: \"Tool to retrieve all tokens (saved payment methods) for a customer. Use when you need to fetch the list of saved payment methods associated with a specific customer ID.\",\n input: RazorpayListCustomerTokensInput,\n output: RazorpayListCustomerTokensOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgDA,IAAAA,EAAE,OAAO,EACpE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G,EAClJ,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,+CAA6DA,IAAAA,EAAE,OAAO;CAC1E,KAAKA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,OA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OA,IAAAA,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,qDAAqD;CACrH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;AACtF,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAE1D,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-customer-tokens.d.ts
|
|
4
|
+
declare const RazorpayListCustomerTokensInput: z.ZodTypeAny;
|
|
5
|
+
declare const RazorpayListCustomerTokensOutput: z.ZodTypeAny;
|
|
6
|
+
declare const razorpayListCustomerTokens: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { razorpayListCustomerTokens };
|
|
9
|
+
//# sourceMappingURL=list-customer-tokens.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-customer-tokens.d.cts","names":[],"sources":["../../src/actions/list-customer-tokens.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAEc;AAAA,cAgCjD,gCAAA,EAAkC,CAAA,CAAE,UAIU;AAAA,cAE9C,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-customer-tokens.d.ts
|
|
4
|
+
declare const RazorpayListCustomerTokensInput: z.ZodTypeAny;
|
|
5
|
+
declare const RazorpayListCustomerTokensOutput: z.ZodTypeAny;
|
|
6
|
+
declare const razorpayListCustomerTokens: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { razorpayListCustomerTokens };
|
|
9
|
+
//# sourceMappingURL=list-customer-tokens.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-customer-tokens.d.mts","names":[],"sources":["../../src/actions/list-customer-tokens.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAEc;AAAA,cAgCjD,gCAAA,EAAkC,CAAA,CAAE,UAIU;AAAA,cAE9C,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/list-customer-tokens.ts
|
|
4
|
+
const RazorpayListCustomerTokensInput = z.object({ customer_id: z.string().describe("Unique identifier of the customer whose tokens are to be retrieved. Format: cust_<14 alphanumeric characters>") }).describe("Request parameters for listing customer tokens.");
|
|
5
|
+
const RazorpayListCustomerTokens_CardDetailsSchema = z.object({
|
|
6
|
+
emi: z.boolean().describe("Indicates if the card supports EMI (Equated Monthly Installment)").nullable().optional(),
|
|
7
|
+
name: z.string().describe("Name on the card").nullable().optional(),
|
|
8
|
+
type: z.string().describe("Card type (e.g., credit, debit, prepaid)").nullable().optional(),
|
|
9
|
+
last4: z.string().describe("Last 4 digits of the card number").nullable().optional(),
|
|
10
|
+
issuer: z.string().describe("Issuing bank or institution name").nullable().optional(),
|
|
11
|
+
network: z.string().describe("Card network (e.g., Visa, MasterCard, RuPay, etc.)").nullable().optional(),
|
|
12
|
+
sub_type: z.string().describe("Card sub-type (e.g., consumer, business)").nullable().optional(),
|
|
13
|
+
expiry_year: z.number().int().describe("Card expiry year (4-digit format)").nullable().optional(),
|
|
14
|
+
expiry_month: z.number().int().describe("Card expiry month (1-12)").nullable().optional(),
|
|
15
|
+
international: z.boolean().describe("Indicates if the card is an international card").nullable().optional()
|
|
16
|
+
}).describe("Card details associated with a token.");
|
|
17
|
+
const RazorpayListCustomerTokens_TokenSchema = z.object({
|
|
18
|
+
id: z.string().describe("Unique identifier for the token. Format: token_<14 alphanumeric characters>"),
|
|
19
|
+
mrn: z.string().describe("Mandate Reference Number for emandate/nach tokens").nullable().optional(),
|
|
20
|
+
bank: z.string().describe("Bank name for emandate/nach tokens").nullable().optional(),
|
|
21
|
+
card: RazorpayListCustomerTokens_CardDetailsSchema.nullable().optional(),
|
|
22
|
+
entity: z.string().describe("Entity type, always 'token'"),
|
|
23
|
+
method: z.string().describe("Payment method (e.g., card, emandate, nach, upi)"),
|
|
24
|
+
status: z.string().describe("Status of the token (e.g., active, expired, rejected, suspended)").nullable().optional(),
|
|
25
|
+
used_at: z.number().int().describe("Unix timestamp when the token was last used").nullable().optional(),
|
|
26
|
+
auth_type: z.string().describe("Authentication type used (e.g., 3ds, otp, etc.)").nullable().optional(),
|
|
27
|
+
recurring: z.boolean().describe("Indicates if the token can be used for recurring payments").nullable().optional(),
|
|
28
|
+
created_at: z.number().int().describe("Unix timestamp when the token was created"),
|
|
29
|
+
error_code: z.string().describe("Error code if the token creation failed").nullable().optional(),
|
|
30
|
+
expired_at: z.number().int().describe("Unix timestamp when the token expired").nullable().optional(),
|
|
31
|
+
max_amount: z.number().int().describe("Maximum amount that can be charged using this token (in paise)").nullable().optional(),
|
|
32
|
+
error_description: z.string().describe("Error description if the token creation failed").nullable().optional(),
|
|
33
|
+
recurring_details: z.object({}).describe("Details about recurring payment configuration").nullable().optional(),
|
|
34
|
+
compliant_with_tokenisation_guidelines: z.boolean().describe("Indicates if the token is compliant with RBI tokenisation guidelines").nullable().optional()
|
|
35
|
+
}).describe("A single token (saved payment method) object.");
|
|
36
|
+
const razorpayListCustomerTokens = action("RAZORPAY_LIST_CUSTOMER_TOKENS", {
|
|
37
|
+
slug: "razorpay-list-customer-tokens",
|
|
38
|
+
name: "List Customer Tokens",
|
|
39
|
+
description: "Tool to retrieve all tokens (saved payment methods) for a customer. Use when you need to fetch the list of saved payment methods associated with a specific customer ID.",
|
|
40
|
+
input: RazorpayListCustomerTokensInput,
|
|
41
|
+
output: z.object({
|
|
42
|
+
count: z.number().int().describe("Number of tokens returned in this response"),
|
|
43
|
+
items: z.array(RazorpayListCustomerTokens_TokenSchema).describe("Array of token objects associated with the customer"),
|
|
44
|
+
entity: z.string().describe("Entity type for the collection, typically 'collection'")
|
|
45
|
+
}).describe("Response schema for listing customer tokens.")
|
|
46
|
+
});
|
|
47
|
+
//#endregion
|
|
48
|
+
export { razorpayListCustomerTokens };
|
|
49
|
+
|
|
50
|
+
//# sourceMappingURL=list-customer-tokens.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-customer-tokens.mjs","names":[],"sources":["../../src/actions/list-customer-tokens.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayListCustomerTokensInput: z.ZodTypeAny = z.object({\n customer_id: z.string().describe(\"Unique identifier of the customer whose tokens are to be retrieved. Format: cust_<14 alphanumeric characters>\"),\n}).describe(\"Request parameters for listing customer tokens.\");\nconst RazorpayListCustomerTokens_CardDetailsSchema: z.ZodTypeAny = z.object({\n emi: z.boolean().describe(\"Indicates if the card supports EMI (Equated Monthly Installment)\").nullable().optional(),\n name: z.string().describe(\"Name on the card\").nullable().optional(),\n type: z.string().describe(\"Card type (e.g., credit, debit, prepaid)\").nullable().optional(),\n last4: z.string().describe(\"Last 4 digits of the card number\").nullable().optional(),\n issuer: z.string().describe(\"Issuing bank or institution name\").nullable().optional(),\n network: z.string().describe(\"Card network (e.g., Visa, MasterCard, RuPay, etc.)\").nullable().optional(),\n sub_type: z.string().describe(\"Card sub-type (e.g., consumer, business)\").nullable().optional(),\n expiry_year: z.number().int().describe(\"Card expiry year (4-digit format)\").nullable().optional(),\n expiry_month: z.number().int().describe(\"Card expiry month (1-12)\").nullable().optional(),\n international: z.boolean().describe(\"Indicates if the card is an international card\").nullable().optional(),\n}).describe(\"Card details associated with a token.\");\nconst RazorpayListCustomerTokens_TokenSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the token. Format: token_<14 alphanumeric characters>\"),\n mrn: z.string().describe(\"Mandate Reference Number for emandate/nach tokens\").nullable().optional(),\n bank: z.string().describe(\"Bank name for emandate/nach tokens\").nullable().optional(),\n card: RazorpayListCustomerTokens_CardDetailsSchema.nullable().optional(),\n entity: z.string().describe(\"Entity type, always 'token'\"),\n method: z.string().describe(\"Payment method (e.g., card, emandate, nach, upi)\"),\n status: z.string().describe(\"Status of the token (e.g., active, expired, rejected, suspended)\").nullable().optional(),\n used_at: z.number().int().describe(\"Unix timestamp when the token was last used\").nullable().optional(),\n auth_type: z.string().describe(\"Authentication type used (e.g., 3ds, otp, etc.)\").nullable().optional(),\n recurring: z.boolean().describe(\"Indicates if the token can be used for recurring payments\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the token was created\"),\n error_code: z.string().describe(\"Error code if the token creation failed\").nullable().optional(),\n expired_at: z.number().int().describe(\"Unix timestamp when the token expired\").nullable().optional(),\n max_amount: z.number().int().describe(\"Maximum amount that can be charged using this token (in paise)\").nullable().optional(),\n error_description: z.string().describe(\"Error description if the token creation failed\").nullable().optional(),\n recurring_details: z.object({}).describe(\"Details about recurring payment configuration\").nullable().optional(),\n compliant_with_tokenisation_guidelines: z.boolean().describe(\"Indicates if the token is compliant with RBI tokenisation guidelines\").nullable().optional(),\n}).describe(\"A single token (saved payment method) object.\");\nexport const RazorpayListCustomerTokensOutput: z.ZodTypeAny = z.object({\n count: z.number().int().describe(\"Number of tokens returned in this response\"),\n items: z.array(RazorpayListCustomerTokens_TokenSchema).describe(\"Array of token objects associated with the customer\"),\n entity: z.string().describe(\"Entity type for the collection, typically 'collection'\"),\n}).describe(\"Response schema for listing customer tokens.\");\n\nexport const razorpayListCustomerTokens = action(\"RAZORPAY_LIST_CUSTOMER_TOKENS\", {\n slug: \"razorpay-list-customer-tokens\",\n name: \"List Customer Tokens\",\n description: \"Tool to retrieve all tokens (saved payment methods) for a customer. Use when you need to fetch the list of saved payment methods associated with a specific customer ID.\",\n input: RazorpayListCustomerTokensInput,\n output: RazorpayListCustomerTokensOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgD,EAAE,OAAO,EACpE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G,EAClJ,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,+CAA6D,EAAE,OAAO;CAC1E,KAAK,EAAE,QAAQ,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,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,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,mBAAmB,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,wCAAwC,EAAE,QAAQ,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3J,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAO3D,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAX4D,EAAE,OAAO;EACrE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C;EAC7E,OAAO,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,qDAAqD;EACrH,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;CACtF,CAAC,CAAC,CAAC,SAAS,8CAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/list-disputes.ts
|
|
4
|
+
const RazorpayListDisputesInput = zod.z.object({
|
|
5
|
+
to: zod.z.number().int().describe("Unix timestamp to retrieve disputes created before this time").optional(),
|
|
6
|
+
from: zod.z.number().int().describe("Unix timestamp to retrieve disputes created after this time").optional(),
|
|
7
|
+
skip: zod.z.number().int().describe("Number of records to skip for pagination (offset, defaults to 0)").optional(),
|
|
8
|
+
count: zod.z.number().int().describe("Number of dispute records to retrieve (defaults to 10)").optional()
|
|
9
|
+
}).describe("Request parameters for listing disputes.");
|
|
10
|
+
const RazorpayListDisputes_DisputeEvidenceSchema = zod.z.object({
|
|
11
|
+
amount: zod.z.number().int().describe("Amount claimed in evidence").nullable().optional(),
|
|
12
|
+
others: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Additional custom evidence types").nullable().optional(),
|
|
13
|
+
summary: zod.z.string().describe("Summary of the evidence").nullable().optional(),
|
|
14
|
+
submitted_at: zod.z.number().int().describe("Unix timestamp when evidence was submitted").nullable().optional(),
|
|
15
|
+
billing_proof: zod.z.array(zod.z.string()).describe("Invoice or billing document IDs").nullable().optional(),
|
|
16
|
+
shipping_proof: zod.z.array(zod.z.string()).describe("Document IDs proving shipment").nullable().optional(),
|
|
17
|
+
dispute_evidence: zod.z.array(zod.z.string()).describe("General dispute evidence document IDs").nullable().optional(),
|
|
18
|
+
proof_of_service: zod.z.array(zod.z.string()).describe("Proof of service delivery document IDs").nullable().optional(),
|
|
19
|
+
cancellation_proof: zod.z.array(zod.z.string()).describe("Proof of cancellation document IDs").nullable().optional(),
|
|
20
|
+
explanation_letter: zod.z.array(zod.z.string()).describe("Explanation letter document IDs").nullable().optional(),
|
|
21
|
+
access_activity_log: zod.z.array(zod.z.string()).describe("Access activity log document IDs").nullable().optional(),
|
|
22
|
+
refund_confirmation: zod.z.array(zod.z.string()).describe("Refund confirmation document IDs").nullable().optional(),
|
|
23
|
+
terms_and_conditions: zod.z.array(zod.z.string()).describe("Terms and conditions document IDs").nullable().optional(),
|
|
24
|
+
customer_communication: zod.z.array(zod.z.string()).describe("Customer communication document IDs").nullable().optional(),
|
|
25
|
+
refund_cancellation_policy: zod.z.array(zod.z.string()).describe("Refund/cancellation policy document IDs").nullable().optional()
|
|
26
|
+
}).describe("Evidence submitted for the dispute.");
|
|
27
|
+
const RazorpayListDisputes_DisputeSchema = zod.z.object({
|
|
28
|
+
id: zod.z.string().describe("Unique dispute identifier (format: disp_xxxxx)").nullable().optional(),
|
|
29
|
+
phase: zod.z.string().describe("Dispute phase (e.g., chargeback, pre-arbitration, arbitration)").nullable().optional(),
|
|
30
|
+
amount: zod.z.number().int().describe("Dispute amount in paise (smallest currency unit)").nullable().optional(),
|
|
31
|
+
entity: zod.z.string().describe("Entity type, always 'dispute'").nullable().optional(),
|
|
32
|
+
status: zod.z.string().describe("Dispute status: open, under_review, won, lost, or closed").nullable().optional(),
|
|
33
|
+
currency: zod.z.string().describe("Three-letter ISO currency code (e.g., INR, USD)").nullable().optional(),
|
|
34
|
+
evidence: RazorpayListDisputes_DisputeEvidenceSchema.nullable().optional(),
|
|
35
|
+
created_at: zod.z.number().int().describe("Unix timestamp when dispute was created").nullable().optional(),
|
|
36
|
+
payment_id: zod.z.string().describe("Associated payment ID").nullable().optional(),
|
|
37
|
+
respond_by: zod.z.number().int().describe("Unix timestamp deadline to respond to the dispute").nullable().optional(),
|
|
38
|
+
reason_code: zod.z.string().describe("Reason code for the dispute (e.g., chargeback, fraud)").nullable().optional(),
|
|
39
|
+
amount_deducted: zod.z.number().int().describe("Amount deducted from merchant account in paise").nullable().optional()
|
|
40
|
+
}).describe("Individual dispute object.");
|
|
41
|
+
const RazorpayListDisputesOutput = zod.z.object({
|
|
42
|
+
count: zod.z.number().int().describe("Number of disputes returned in this response").nullable().optional(),
|
|
43
|
+
items: zod.z.array(RazorpayListDisputes_DisputeSchema).describe("Array of dispute objects matching the filter criteria").nullable().optional(),
|
|
44
|
+
entity: zod.z.string().describe("Entity type, always 'collection'").nullable().optional()
|
|
45
|
+
}).describe("Response schema for listing disputes.");
|
|
46
|
+
const razorpayListDisputes = require_action.action("RAZORPAY_LIST_DISPUTES", {
|
|
47
|
+
slug: "razorpay-list-disputes",
|
|
48
|
+
name: "List Disputes",
|
|
49
|
+
description: "Tool to retrieve a list of all disputes with pagination support. Use when you need to view chargebacks, fraud claims, or other payment disputes. Supports filtering by date range and pagination for efficient retrieval of dispute records.",
|
|
50
|
+
input: RazorpayListDisputesInput,
|
|
51
|
+
output: RazorpayListDisputesOutput
|
|
52
|
+
});
|
|
53
|
+
//#endregion
|
|
54
|
+
exports.razorpayListDisputes = razorpayListDisputes;
|
|
55
|
+
|
|
56
|
+
//# sourceMappingURL=list-disputes.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-disputes.cjs","names":["z","action"],"sources":["../../src/actions/list-disputes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayListDisputesInput: z.ZodTypeAny = z.object({\n to: z.number().int().describe(\"Unix timestamp to retrieve disputes created before this time\").optional(),\n from: z.number().int().describe(\"Unix timestamp to retrieve disputes created after this time\").optional(),\n skip: z.number().int().describe(\"Number of records to skip for pagination (offset, defaults to 0)\").optional(),\n count: z.number().int().describe(\"Number of dispute records to retrieve (defaults to 10)\").optional(),\n}).describe(\"Request parameters for listing disputes.\");\nconst RazorpayListDisputes_DisputeEvidenceSchema: z.ZodTypeAny = z.object({\n amount: z.number().int().describe(\"Amount claimed in evidence\").nullable().optional(),\n others: z.array(z.record(z.string(), z.unknown())).describe(\"Additional custom evidence types\").nullable().optional(),\n summary: z.string().describe(\"Summary of the evidence\").nullable().optional(),\n submitted_at: z.number().int().describe(\"Unix timestamp when evidence was submitted\").nullable().optional(),\n billing_proof: z.array(z.string()).describe(\"Invoice or billing document IDs\").nullable().optional(),\n shipping_proof: z.array(z.string()).describe(\"Document IDs proving shipment\").nullable().optional(),\n dispute_evidence: z.array(z.string()).describe(\"General dispute evidence document IDs\").nullable().optional(),\n proof_of_service: z.array(z.string()).describe(\"Proof of service delivery document IDs\").nullable().optional(),\n cancellation_proof: z.array(z.string()).describe(\"Proof of cancellation document IDs\").nullable().optional(),\n explanation_letter: z.array(z.string()).describe(\"Explanation letter document IDs\").nullable().optional(),\n access_activity_log: z.array(z.string()).describe(\"Access activity log document IDs\").nullable().optional(),\n refund_confirmation: z.array(z.string()).describe(\"Refund confirmation document IDs\").nullable().optional(),\n terms_and_conditions: z.array(z.string()).describe(\"Terms and conditions document IDs\").nullable().optional(),\n customer_communication: z.array(z.string()).describe(\"Customer communication document IDs\").nullable().optional(),\n refund_cancellation_policy: z.array(z.string()).describe(\"Refund/cancellation policy document IDs\").nullable().optional(),\n}).describe(\"Evidence submitted for the dispute.\");\nconst RazorpayListDisputes_DisputeSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique dispute identifier (format: disp_xxxxx)\").nullable().optional(),\n phase: z.string().describe(\"Dispute phase (e.g., chargeback, pre-arbitration, arbitration)\").nullable().optional(),\n amount: z.number().int().describe(\"Dispute amount in paise (smallest currency unit)\").nullable().optional(),\n entity: z.string().describe(\"Entity type, always 'dispute'\").nullable().optional(),\n status: z.string().describe(\"Dispute status: open, under_review, won, lost, or closed\").nullable().optional(),\n currency: z.string().describe(\"Three-letter ISO currency code (e.g., INR, USD)\").nullable().optional(),\n evidence: RazorpayListDisputes_DisputeEvidenceSchema.nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when dispute was created\").nullable().optional(),\n payment_id: z.string().describe(\"Associated payment ID\").nullable().optional(),\n respond_by: z.number().int().describe(\"Unix timestamp deadline to respond to the dispute\").nullable().optional(),\n reason_code: z.string().describe(\"Reason code for the dispute (e.g., chargeback, fraud)\").nullable().optional(),\n amount_deducted: z.number().int().describe(\"Amount deducted from merchant account in paise\").nullable().optional(),\n}).describe(\"Individual dispute object.\");\nexport const RazorpayListDisputesOutput: z.ZodTypeAny = z.object({\n count: z.number().int().describe(\"Number of disputes returned in this response\").nullable().optional(),\n items: z.array(RazorpayListDisputes_DisputeSchema).describe(\"Array of dispute objects matching the filter criteria\").nullable().optional(),\n entity: z.string().describe(\"Entity type, always 'collection'\").nullable().optional(),\n}).describe(\"Response schema for listing disputes.\");\n\nexport const razorpayListDisputes = action(\"RAZORPAY_LIST_DISPUTES\", {\n slug: \"razorpay-list-disputes\",\n name: \"List Disputes\",\n description: \"Tool to retrieve a list of all disputes with pagination support. Use when you need to view chargebacks, fraud claims, or other payment disputes. Supports filtering by date range and pagination for efficient retrieval of dispute records.\",\n input: RazorpayListDisputesInput,\n output: RazorpayListDisputesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4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AAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,OAAOA,IAAAA,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzI,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,SAAS,uCAAuC;AAEnD,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-disputes.d.ts
|
|
4
|
+
declare const RazorpayListDisputesInput: z.ZodTypeAny;
|
|
5
|
+
declare const RazorpayListDisputesOutput: z.ZodTypeAny;
|
|
6
|
+
declare const razorpayListDisputes: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { razorpayListDisputes };
|
|
9
|
+
//# sourceMappingURL=list-disputes.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-disputes.d.cts","names":[],"sources":["../../src/actions/list-disputes.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAKa;AAAA,cAgC1C,0BAAA,EAA4B,CAAA,CAAE,UAIS;AAAA,cAEvC,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-disputes.d.ts
|
|
4
|
+
declare const RazorpayListDisputesInput: z.ZodTypeAny;
|
|
5
|
+
declare const RazorpayListDisputesOutput: z.ZodTypeAny;
|
|
6
|
+
declare const razorpayListDisputes: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { razorpayListDisputes };
|
|
9
|
+
//# sourceMappingURL=list-disputes.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-disputes.d.mts","names":[],"sources":["../../src/actions/list-disputes.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAKa;AAAA,cAgC1C,0BAAA,EAA4B,CAAA,CAAE,UAIS;AAAA,cAEvC,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/list-disputes.ts
|
|
4
|
+
const RazorpayListDisputesInput = z.object({
|
|
5
|
+
to: z.number().int().describe("Unix timestamp to retrieve disputes created before this time").optional(),
|
|
6
|
+
from: z.number().int().describe("Unix timestamp to retrieve disputes created after this time").optional(),
|
|
7
|
+
skip: z.number().int().describe("Number of records to skip for pagination (offset, defaults to 0)").optional(),
|
|
8
|
+
count: z.number().int().describe("Number of dispute records to retrieve (defaults to 10)").optional()
|
|
9
|
+
}).describe("Request parameters for listing disputes.");
|
|
10
|
+
const RazorpayListDisputes_DisputeEvidenceSchema = z.object({
|
|
11
|
+
amount: z.number().int().describe("Amount claimed in evidence").nullable().optional(),
|
|
12
|
+
others: z.array(z.record(z.string(), z.unknown())).describe("Additional custom evidence types").nullable().optional(),
|
|
13
|
+
summary: z.string().describe("Summary of the evidence").nullable().optional(),
|
|
14
|
+
submitted_at: z.number().int().describe("Unix timestamp when evidence was submitted").nullable().optional(),
|
|
15
|
+
billing_proof: z.array(z.string()).describe("Invoice or billing document IDs").nullable().optional(),
|
|
16
|
+
shipping_proof: z.array(z.string()).describe("Document IDs proving shipment").nullable().optional(),
|
|
17
|
+
dispute_evidence: z.array(z.string()).describe("General dispute evidence document IDs").nullable().optional(),
|
|
18
|
+
proof_of_service: z.array(z.string()).describe("Proof of service delivery document IDs").nullable().optional(),
|
|
19
|
+
cancellation_proof: z.array(z.string()).describe("Proof of cancellation document IDs").nullable().optional(),
|
|
20
|
+
explanation_letter: z.array(z.string()).describe("Explanation letter document IDs").nullable().optional(),
|
|
21
|
+
access_activity_log: z.array(z.string()).describe("Access activity log document IDs").nullable().optional(),
|
|
22
|
+
refund_confirmation: z.array(z.string()).describe("Refund confirmation document IDs").nullable().optional(),
|
|
23
|
+
terms_and_conditions: z.array(z.string()).describe("Terms and conditions document IDs").nullable().optional(),
|
|
24
|
+
customer_communication: z.array(z.string()).describe("Customer communication document IDs").nullable().optional(),
|
|
25
|
+
refund_cancellation_policy: z.array(z.string()).describe("Refund/cancellation policy document IDs").nullable().optional()
|
|
26
|
+
}).describe("Evidence submitted for the dispute.");
|
|
27
|
+
const RazorpayListDisputes_DisputeSchema = z.object({
|
|
28
|
+
id: z.string().describe("Unique dispute identifier (format: disp_xxxxx)").nullable().optional(),
|
|
29
|
+
phase: z.string().describe("Dispute phase (e.g., chargeback, pre-arbitration, arbitration)").nullable().optional(),
|
|
30
|
+
amount: z.number().int().describe("Dispute amount in paise (smallest currency unit)").nullable().optional(),
|
|
31
|
+
entity: z.string().describe("Entity type, always 'dispute'").nullable().optional(),
|
|
32
|
+
status: z.string().describe("Dispute status: open, under_review, won, lost, or closed").nullable().optional(),
|
|
33
|
+
currency: z.string().describe("Three-letter ISO currency code (e.g., INR, USD)").nullable().optional(),
|
|
34
|
+
evidence: RazorpayListDisputes_DisputeEvidenceSchema.nullable().optional(),
|
|
35
|
+
created_at: z.number().int().describe("Unix timestamp when dispute was created").nullable().optional(),
|
|
36
|
+
payment_id: z.string().describe("Associated payment ID").nullable().optional(),
|
|
37
|
+
respond_by: z.number().int().describe("Unix timestamp deadline to respond to the dispute").nullable().optional(),
|
|
38
|
+
reason_code: z.string().describe("Reason code for the dispute (e.g., chargeback, fraud)").nullable().optional(),
|
|
39
|
+
amount_deducted: z.number().int().describe("Amount deducted from merchant account in paise").nullable().optional()
|
|
40
|
+
}).describe("Individual dispute object.");
|
|
41
|
+
const razorpayListDisputes = action("RAZORPAY_LIST_DISPUTES", {
|
|
42
|
+
slug: "razorpay-list-disputes",
|
|
43
|
+
name: "List Disputes",
|
|
44
|
+
description: "Tool to retrieve a list of all disputes with pagination support. Use when you need to view chargebacks, fraud claims, or other payment disputes. Supports filtering by date range and pagination for efficient retrieval of dispute records.",
|
|
45
|
+
input: RazorpayListDisputesInput,
|
|
46
|
+
output: z.object({
|
|
47
|
+
count: z.number().int().describe("Number of disputes returned in this response").nullable().optional(),
|
|
48
|
+
items: z.array(RazorpayListDisputes_DisputeSchema).describe("Array of dispute objects matching the filter criteria").nullable().optional(),
|
|
49
|
+
entity: z.string().describe("Entity type, always 'collection'").nullable().optional()
|
|
50
|
+
}).describe("Response schema for listing disputes.")
|
|
51
|
+
});
|
|
52
|
+
//#endregion
|
|
53
|
+
export { razorpayListDisputes };
|
|
54
|
+
|
|
55
|
+
//# sourceMappingURL=list-disputes.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-disputes.mjs","names":[],"sources":["../../src/actions/list-disputes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayListDisputesInput: z.ZodTypeAny = z.object({\n to: z.number().int().describe(\"Unix timestamp to retrieve disputes created before this time\").optional(),\n from: z.number().int().describe(\"Unix timestamp to retrieve disputes created after this time\").optional(),\n skip: z.number().int().describe(\"Number of records to skip for pagination (offset, defaults to 0)\").optional(),\n count: z.number().int().describe(\"Number of dispute records to retrieve (defaults to 10)\").optional(),\n}).describe(\"Request parameters for listing disputes.\");\nconst RazorpayListDisputes_DisputeEvidenceSchema: z.ZodTypeAny = z.object({\n amount: z.number().int().describe(\"Amount claimed in evidence\").nullable().optional(),\n others: z.array(z.record(z.string(), z.unknown())).describe(\"Additional custom evidence types\").nullable().optional(),\n summary: z.string().describe(\"Summary of the evidence\").nullable().optional(),\n submitted_at: z.number().int().describe(\"Unix timestamp when evidence was submitted\").nullable().optional(),\n billing_proof: z.array(z.string()).describe(\"Invoice or billing document IDs\").nullable().optional(),\n shipping_proof: z.array(z.string()).describe(\"Document IDs proving shipment\").nullable().optional(),\n dispute_evidence: z.array(z.string()).describe(\"General dispute evidence document IDs\").nullable().optional(),\n proof_of_service: z.array(z.string()).describe(\"Proof of service delivery document IDs\").nullable().optional(),\n cancellation_proof: z.array(z.string()).describe(\"Proof of cancellation document IDs\").nullable().optional(),\n explanation_letter: z.array(z.string()).describe(\"Explanation letter document IDs\").nullable().optional(),\n access_activity_log: z.array(z.string()).describe(\"Access activity log document IDs\").nullable().optional(),\n refund_confirmation: z.array(z.string()).describe(\"Refund confirmation document IDs\").nullable().optional(),\n terms_and_conditions: z.array(z.string()).describe(\"Terms and conditions document IDs\").nullable().optional(),\n customer_communication: z.array(z.string()).describe(\"Customer communication document IDs\").nullable().optional(),\n refund_cancellation_policy: z.array(z.string()).describe(\"Refund/cancellation policy document IDs\").nullable().optional(),\n}).describe(\"Evidence submitted for the dispute.\");\nconst RazorpayListDisputes_DisputeSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique dispute identifier (format: disp_xxxxx)\").nullable().optional(),\n phase: z.string().describe(\"Dispute phase (e.g., chargeback, pre-arbitration, arbitration)\").nullable().optional(),\n amount: z.number().int().describe(\"Dispute amount in paise (smallest currency unit)\").nullable().optional(),\n entity: z.string().describe(\"Entity type, always 'dispute'\").nullable().optional(),\n status: z.string().describe(\"Dispute status: open, under_review, won, lost, or closed\").nullable().optional(),\n currency: z.string().describe(\"Three-letter ISO currency code (e.g., INR, USD)\").nullable().optional(),\n evidence: RazorpayListDisputes_DisputeEvidenceSchema.nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when dispute was created\").nullable().optional(),\n payment_id: z.string().describe(\"Associated payment ID\").nullable().optional(),\n respond_by: z.number().int().describe(\"Unix timestamp deadline to respond to the dispute\").nullable().optional(),\n reason_code: z.string().describe(\"Reason code for the dispute (e.g., chargeback, fraud)\").nullable().optional(),\n amount_deducted: z.number().int().describe(\"Amount deducted from merchant account in paise\").nullable().optional(),\n}).describe(\"Individual dispute object.\");\nexport const RazorpayListDisputesOutput: z.ZodTypeAny = z.object({\n count: z.number().int().describe(\"Number of disputes returned in this response\").nullable().optional(),\n items: z.array(RazorpayListDisputes_DisputeSchema).describe(\"Array of dispute objects matching the filter criteria\").nullable().optional(),\n entity: z.string().describe(\"Entity type, always 'collection'\").nullable().optional(),\n}).describe(\"Response schema for listing disputes.\");\n\nexport const razorpayListDisputes = action(\"RAZORPAY_LIST_DISPUTES\", {\n slug: \"razorpay-list-disputes\",\n name: \"List Disputes\",\n description: \"Tool to retrieve a list of all disputes with pagination support. Use when you need to view chargebacks, fraud claims, or other payment disputes. Supports filtering by date range and pagination for efficient retrieval of dispute records.\",\n input: RazorpayListDisputesInput,\n output: RazorpayListDisputesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0C,EAAE,OAAO;CAC9D,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACvG,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACxG,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC7G,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wDAAwD,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AAC,CAAC,SAAS;CACrG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnH,CAAC,CAAC,CAAC,SAAS,4BAA4B;AAOxC,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXsD,EAAE,OAAO;EAC/D,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,OAAO,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzI,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,CAAC,CAAC,CAAC,SAAS,uCAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/list-fund-accounts.ts
|
|
4
|
+
const RazorpayListFundAccountsInput = zod.z.object({
|
|
5
|
+
skip: zod.z.number().int().describe("Number of fund accounts to skip for pagination. Use with count to navigate through pages.").optional(),
|
|
6
|
+
count: zod.z.number().int().describe("Number of fund accounts to retrieve per page. Maximum 100 accounts per request.").optional(),
|
|
7
|
+
contact_id: zod.z.string().describe("Filter fund accounts by contact ID. Returns only fund accounts associated with the specified contact.").optional(),
|
|
8
|
+
account_type: zod.z.string().describe("Filter fund accounts by account type (e.g., 'bank_account', 'vpa', 'card', 'wallet').").optional()
|
|
9
|
+
}).describe("Request parameters for listing fund accounts with pagination support.");
|
|
10
|
+
const RazorpayListFundAccounts_VPASchema = zod.z.object({ address: zod.z.string().describe("UPI VPA address (e.g., user@okaxis).").nullable().optional() }).describe("Virtual Payment Address details for a fund account.");
|
|
11
|
+
const RazorpayListFundAccounts_CardSchema = zod.z.object({
|
|
12
|
+
name: zod.z.string().describe("Name of the cardholder.").nullable().optional(),
|
|
13
|
+
last4: zod.z.string().describe("Last 4 digits of the card number.").nullable().optional(),
|
|
14
|
+
network: zod.z.string().describe("Card network (e.g., Visa, Mastercard).").nullable().optional()
|
|
15
|
+
}).describe("Card details for a fund account.");
|
|
16
|
+
const RazorpayListFundAccounts_BankAccountSchema = zod.z.object({
|
|
17
|
+
ifsc: zod.z.string().describe("IFSC code of the bank branch.").nullable().optional(),
|
|
18
|
+
name: zod.z.string().describe("Name of the account holder.").nullable().optional(),
|
|
19
|
+
notes: zod.z.union([zod.z.record(zod.z.string(), zod.z.unknown()), zod.z.array(zod.z.unknown())]).nullable().optional(),
|
|
20
|
+
bank_name: zod.z.string().describe("Name of the bank.").nullable().optional(),
|
|
21
|
+
account_number: zod.z.string().describe("Bank account number.").nullable().optional()
|
|
22
|
+
}).describe("Bank account details for a fund account.");
|
|
23
|
+
const RazorpayListFundAccounts_FundAccountSchema = zod.z.object({
|
|
24
|
+
id: zod.z.string().describe("Unique identifier for the fund account.").nullable().optional(),
|
|
25
|
+
vpa: RazorpayListFundAccounts_VPASchema.nullable().optional(),
|
|
26
|
+
card: RazorpayListFundAccounts_CardSchema.nullable().optional(),
|
|
27
|
+
active: zod.z.boolean().describe("Whether the fund account is currently active.").nullable().optional(),
|
|
28
|
+
entity: zod.z.string().describe("Entity type, always 'fund_account' for fund account objects.").nullable().optional(),
|
|
29
|
+
batch_id: zod.z.string().describe("Batch identifier if the fund account was created in a batch.").nullable().optional(),
|
|
30
|
+
contact_id: zod.z.string().describe("Unique identifier of the contact associated with this fund account.").nullable().optional(),
|
|
31
|
+
created_at: zod.z.number().int().describe("Unix timestamp when the fund account was created.").nullable().optional(),
|
|
32
|
+
account_type: zod.z.string().describe("Type of account (bank_account, vpa, card, wallet).").nullable().optional(),
|
|
33
|
+
bank_account: RazorpayListFundAccounts_BankAccountSchema.nullable().optional()
|
|
34
|
+
}).describe("Represents an individual fund account in the Razorpay system.");
|
|
35
|
+
const RazorpayListFundAccountsOutput = zod.z.object({
|
|
36
|
+
count: zod.z.number().int().describe("Number of fund accounts returned in this response.").nullable().optional(),
|
|
37
|
+
items: zod.z.array(RazorpayListFundAccounts_FundAccountSchema).describe("Array of fund account objects returned by the API.").nullable().optional(),
|
|
38
|
+
entity: zod.z.string().describe("Entity type, typically 'collection' for list responses.").nullable().optional()
|
|
39
|
+
}).describe("Response schema for listing fund accounts.");
|
|
40
|
+
const razorpayListFundAccounts = require_action.action("RAZORPAY_LIST_FUND_ACCOUNTS", {
|
|
41
|
+
slug: "razorpay-list-fund-accounts",
|
|
42
|
+
name: "List Fund Accounts",
|
|
43
|
+
description: "Tool to retrieve a list of all fund accounts from RazorpayX with pagination support. Use when you need to fetch payout destinations, view beneficiary accounts, or manage fund account records. Supports filtering by contact and account type for efficient retrieval.",
|
|
44
|
+
input: RazorpayListFundAccountsInput,
|
|
45
|
+
output: RazorpayListFundAccountsOutput
|
|
46
|
+
});
|
|
47
|
+
//#endregion
|
|
48
|
+
exports.razorpayListFundAccounts = razorpayListFundAccounts;
|
|
49
|
+
|
|
50
|
+
//# sourceMappingURL=list-fund-accounts.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-fund-accounts.cjs","names":["z","action"],"sources":["../../src/actions/list-fund-accounts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayListFundAccountsInput: z.ZodTypeAny = z.object({\n skip: z.number().int().describe(\"Number of fund accounts to skip for pagination. Use with count to navigate through pages.\").optional(),\n count: z.number().int().describe(\"Number of fund accounts to retrieve per page. Maximum 100 accounts per request.\").optional(),\n contact_id: z.string().describe(\"Filter fund accounts by contact ID. Returns only fund accounts associated with the specified contact.\").optional(),\n account_type: z.string().describe(\"Filter fund accounts by account type (e.g., 'bank_account', 'vpa', 'card', 'wallet').\").optional(),\n}).describe(\"Request parameters for listing fund accounts with pagination support.\");\nconst RazorpayListFundAccounts_VPASchema: z.ZodTypeAny = z.object({\n address: z.string().describe(\"UPI VPA address (e.g., user@okaxis).\").nullable().optional(),\n}).describe(\"Virtual Payment Address details for a fund account.\");\nconst RazorpayListFundAccounts_CardSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the cardholder.\").nullable().optional(),\n last4: z.string().describe(\"Last 4 digits of the card number.\").nullable().optional(),\n network: z.string().describe(\"Card network (e.g., Visa, Mastercard).\").nullable().optional(),\n}).describe(\"Card details for a fund account.\");\nconst RazorpayListFundAccounts_BankAccountSchema: z.ZodTypeAny = z.object({\n ifsc: z.string().describe(\"IFSC code of the bank branch.\").nullable().optional(),\n name: z.string().describe(\"Name of the account holder.\").nullable().optional(),\n notes: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]).nullable().optional(),\n bank_name: z.string().describe(\"Name of the bank.\").nullable().optional(),\n account_number: z.string().describe(\"Bank account number.\").nullable().optional(),\n}).describe(\"Bank account details for a fund account.\");\nconst RazorpayListFundAccounts_FundAccountSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the fund account.\").nullable().optional(),\n vpa: RazorpayListFundAccounts_VPASchema.nullable().optional(),\n card: RazorpayListFundAccounts_CardSchema.nullable().optional(),\n active: z.boolean().describe(\"Whether the fund account is currently active.\").nullable().optional(),\n entity: z.string().describe(\"Entity type, always 'fund_account' for fund account objects.\").nullable().optional(),\n batch_id: z.string().describe(\"Batch identifier if the fund account was created in a batch.\").nullable().optional(),\n contact_id: z.string().describe(\"Unique identifier of the contact associated with this fund account.\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the fund account was created.\").nullable().optional(),\n account_type: z.string().describe(\"Type of account (bank_account, vpa, card, wallet).\").nullable().optional(),\n bank_account: RazorpayListFundAccounts_BankAccountSchema.nullable().optional(),\n}).describe(\"Represents an individual fund account in the Razorpay system.\");\nexport const RazorpayListFundAccountsOutput: z.ZodTypeAny = z.object({\n count: z.number().int().describe(\"Number of fund accounts returned in this response.\").nullable().optional(),\n items: z.array(RazorpayListFundAccounts_FundAccountSchema).describe(\"Array of fund account objects returned by the API.\").nullable().optional(),\n entity: z.string().describe(\"Entity type, typically 'collection' for list responses.\").nullable().optional(),\n}).describe(\"Response schema for listing fund accounts.\");\n\nexport const razorpayListFundAccounts = action(\"RAZORPAY_LIST_FUND_ACCOUNTS\", {\n slug: \"razorpay-list-fund-accounts\",\n name: \"List Fund Accounts\",\n description: \"Tool to retrieve a list of all fund accounts from RazorpayX with pagination support. Use when you need to fetch payout destinations, view beneficiary accounts, or manage fund account records. Supports filtering by contact and account type for efficient retrieval.\",\n input: RazorpayListFundAccountsInput,\n output: RazorpayListFundAccountsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CACtI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CAC7H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;CAClJ,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;AACtI,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAM,qCAAmDA,IAAAA,EAAE,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,CAAC,SAAS,4CAA4C;AAExD,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-fund-accounts.d.ts
|
|
4
|
+
declare const RazorpayListFundAccountsInput: z.ZodTypeAny;
|
|
5
|
+
declare const RazorpayListFundAccountsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const razorpayListFundAccounts: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { razorpayListFundAccounts };
|
|
9
|
+
//# sourceMappingURL=list-fund-accounts.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-fund-accounts.d.cts","names":[],"sources":["../../src/actions/list-fund-accounts.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAKsC;AAAA,cA4BvE,8BAAA,EAAgC,CAAA,CAAE,UAIU;AAAA,cAE5C,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-fund-accounts.d.ts
|
|
4
|
+
declare const RazorpayListFundAccountsInput: z.ZodTypeAny;
|
|
5
|
+
declare const RazorpayListFundAccountsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const razorpayListFundAccounts: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { razorpayListFundAccounts };
|
|
9
|
+
//# sourceMappingURL=list-fund-accounts.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-fund-accounts.d.mts","names":[],"sources":["../../src/actions/list-fund-accounts.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAKsC;AAAA,cA4BvE,8BAAA,EAAgC,CAAA,CAAE,UAIU;AAAA,cAE5C,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/list-fund-accounts.ts
|
|
4
|
+
const RazorpayListFundAccountsInput = z.object({
|
|
5
|
+
skip: z.number().int().describe("Number of fund accounts to skip for pagination. Use with count to navigate through pages.").optional(),
|
|
6
|
+
count: z.number().int().describe("Number of fund accounts to retrieve per page. Maximum 100 accounts per request.").optional(),
|
|
7
|
+
contact_id: z.string().describe("Filter fund accounts by contact ID. Returns only fund accounts associated with the specified contact.").optional(),
|
|
8
|
+
account_type: z.string().describe("Filter fund accounts by account type (e.g., 'bank_account', 'vpa', 'card', 'wallet').").optional()
|
|
9
|
+
}).describe("Request parameters for listing fund accounts with pagination support.");
|
|
10
|
+
const RazorpayListFundAccounts_VPASchema = z.object({ address: z.string().describe("UPI VPA address (e.g., user@okaxis).").nullable().optional() }).describe("Virtual Payment Address details for a fund account.");
|
|
11
|
+
const RazorpayListFundAccounts_CardSchema = z.object({
|
|
12
|
+
name: z.string().describe("Name of the cardholder.").nullable().optional(),
|
|
13
|
+
last4: z.string().describe("Last 4 digits of the card number.").nullable().optional(),
|
|
14
|
+
network: z.string().describe("Card network (e.g., Visa, Mastercard).").nullable().optional()
|
|
15
|
+
}).describe("Card details for a fund account.");
|
|
16
|
+
const RazorpayListFundAccounts_BankAccountSchema = z.object({
|
|
17
|
+
ifsc: z.string().describe("IFSC code of the bank branch.").nullable().optional(),
|
|
18
|
+
name: z.string().describe("Name of the account holder.").nullable().optional(),
|
|
19
|
+
notes: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]).nullable().optional(),
|
|
20
|
+
bank_name: z.string().describe("Name of the bank.").nullable().optional(),
|
|
21
|
+
account_number: z.string().describe("Bank account number.").nullable().optional()
|
|
22
|
+
}).describe("Bank account details for a fund account.");
|
|
23
|
+
const RazorpayListFundAccounts_FundAccountSchema = z.object({
|
|
24
|
+
id: z.string().describe("Unique identifier for the fund account.").nullable().optional(),
|
|
25
|
+
vpa: RazorpayListFundAccounts_VPASchema.nullable().optional(),
|
|
26
|
+
card: RazorpayListFundAccounts_CardSchema.nullable().optional(),
|
|
27
|
+
active: z.boolean().describe("Whether the fund account is currently active.").nullable().optional(),
|
|
28
|
+
entity: z.string().describe("Entity type, always 'fund_account' for fund account objects.").nullable().optional(),
|
|
29
|
+
batch_id: z.string().describe("Batch identifier if the fund account was created in a batch.").nullable().optional(),
|
|
30
|
+
contact_id: z.string().describe("Unique identifier of the contact associated with this fund account.").nullable().optional(),
|
|
31
|
+
created_at: z.number().int().describe("Unix timestamp when the fund account was created.").nullable().optional(),
|
|
32
|
+
account_type: z.string().describe("Type of account (bank_account, vpa, card, wallet).").nullable().optional(),
|
|
33
|
+
bank_account: RazorpayListFundAccounts_BankAccountSchema.nullable().optional()
|
|
34
|
+
}).describe("Represents an individual fund account in the Razorpay system.");
|
|
35
|
+
const razorpayListFundAccounts = action("RAZORPAY_LIST_FUND_ACCOUNTS", {
|
|
36
|
+
slug: "razorpay-list-fund-accounts",
|
|
37
|
+
name: "List Fund Accounts",
|
|
38
|
+
description: "Tool to retrieve a list of all fund accounts from RazorpayX with pagination support. Use when you need to fetch payout destinations, view beneficiary accounts, or manage fund account records. Supports filtering by contact and account type for efficient retrieval.",
|
|
39
|
+
input: RazorpayListFundAccountsInput,
|
|
40
|
+
output: z.object({
|
|
41
|
+
count: z.number().int().describe("Number of fund accounts returned in this response.").nullable().optional(),
|
|
42
|
+
items: z.array(RazorpayListFundAccounts_FundAccountSchema).describe("Array of fund account objects returned by the API.").nullable().optional(),
|
|
43
|
+
entity: z.string().describe("Entity type, typically 'collection' for list responses.").nullable().optional()
|
|
44
|
+
}).describe("Response schema for listing fund accounts.")
|
|
45
|
+
});
|
|
46
|
+
//#endregion
|
|
47
|
+
export { razorpayListFundAccounts };
|
|
48
|
+
|
|
49
|
+
//# sourceMappingURL=list-fund-accounts.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-fund-accounts.mjs","names":[],"sources":["../../src/actions/list-fund-accounts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayListFundAccountsInput: z.ZodTypeAny = z.object({\n skip: z.number().int().describe(\"Number of fund accounts to skip for pagination. Use with count to navigate through pages.\").optional(),\n count: z.number().int().describe(\"Number of fund accounts to retrieve per page. Maximum 100 accounts per request.\").optional(),\n contact_id: z.string().describe(\"Filter fund accounts by contact ID. Returns only fund accounts associated with the specified contact.\").optional(),\n account_type: z.string().describe(\"Filter fund accounts by account type (e.g., 'bank_account', 'vpa', 'card', 'wallet').\").optional(),\n}).describe(\"Request parameters for listing fund accounts with pagination support.\");\nconst RazorpayListFundAccounts_VPASchema: z.ZodTypeAny = z.object({\n address: z.string().describe(\"UPI VPA address (e.g., user@okaxis).\").nullable().optional(),\n}).describe(\"Virtual Payment Address details for a fund account.\");\nconst RazorpayListFundAccounts_CardSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the cardholder.\").nullable().optional(),\n last4: z.string().describe(\"Last 4 digits of the card number.\").nullable().optional(),\n network: z.string().describe(\"Card network (e.g., Visa, Mastercard).\").nullable().optional(),\n}).describe(\"Card details for a fund account.\");\nconst RazorpayListFundAccounts_BankAccountSchema: z.ZodTypeAny = z.object({\n ifsc: z.string().describe(\"IFSC code of the bank branch.\").nullable().optional(),\n name: z.string().describe(\"Name of the account holder.\").nullable().optional(),\n notes: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]).nullable().optional(),\n bank_name: z.string().describe(\"Name of the bank.\").nullable().optional(),\n account_number: z.string().describe(\"Bank account number.\").nullable().optional(),\n}).describe(\"Bank account details for a fund account.\");\nconst RazorpayListFundAccounts_FundAccountSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the fund account.\").nullable().optional(),\n vpa: RazorpayListFundAccounts_VPASchema.nullable().optional(),\n card: RazorpayListFundAccounts_CardSchema.nullable().optional(),\n active: z.boolean().describe(\"Whether the fund account is currently active.\").nullable().optional(),\n entity: z.string().describe(\"Entity type, always 'fund_account' for fund account objects.\").nullable().optional(),\n batch_id: z.string().describe(\"Batch identifier if the fund account was created in a batch.\").nullable().optional(),\n contact_id: z.string().describe(\"Unique identifier of the contact associated with this fund account.\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the fund account was created.\").nullable().optional(),\n account_type: z.string().describe(\"Type of account (bank_account, vpa, card, wallet).\").nullable().optional(),\n bank_account: RazorpayListFundAccounts_BankAccountSchema.nullable().optional(),\n}).describe(\"Represents an individual fund account in the Razorpay system.\");\nexport const RazorpayListFundAccountsOutput: z.ZodTypeAny = z.object({\n count: z.number().int().describe(\"Number of fund accounts returned in this response.\").nullable().optional(),\n items: z.array(RazorpayListFundAccounts_FundAccountSchema).describe(\"Array of fund account objects returned by the API.\").nullable().optional(),\n entity: z.string().describe(\"Entity type, typically 'collection' for list responses.\").nullable().optional(),\n}).describe(\"Response schema for listing fund accounts.\");\n\nexport const razorpayListFundAccounts = action(\"RAZORPAY_LIST_FUND_ACCOUNTS\", {\n slug: \"razorpay-list-fund-accounts\",\n name: \"List Fund Accounts\",\n description: \"Tool to retrieve a list of all fund accounts from RazorpayX with pagination support. Use when you need to fetch payout destinations, view beneficiary accounts, or manage fund account records. Supports filtering by contact and account type for efficient retrieval.\",\n input: RazorpayListFundAccountsInput,\n output: RazorpayListFund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AC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3G,OAAO,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9I,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,CAAC,CAAC,CAAC,SAAS,4CAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/list-fund-validations.ts
|
|
4
|
+
const RazorpayListFundValidationsInput = zod.z.object({
|
|
5
|
+
to: zod.z.number().int().describe("Unix timestamp (in seconds) to filter validations created before this time. Use for date range filtering.").optional(),
|
|
6
|
+
from: zod.z.number().int().describe("Unix timestamp (in seconds) to filter validations created after this time. Use for date range filtering.").optional(),
|
|
7
|
+
skip: zod.z.number().int().describe("Number of validation transactions to skip for pagination. Use with count to navigate through pages. Default is 0.").optional(),
|
|
8
|
+
count: zod.z.number().int().describe("Number of validation transactions to retrieve per page. Default is 10. Maximum is 100.").optional()
|
|
9
|
+
}).describe("Request parameters for listing fund account validation transactions with pagination and filtering support.");
|
|
10
|
+
const RazorpayListFundValidations_ValidationResultsSchema = zod.z.object({
|
|
11
|
+
account_status: zod.z.string().describe("Status of the account validation (e.g., active, invalid).").nullable().optional(),
|
|
12
|
+
registered_name: zod.z.string().describe("Name registered with the bank for this account.").nullable().optional()
|
|
13
|
+
}).describe("Results of the fund account validation process.");
|
|
14
|
+
const RazorpayListFundValidations_BankAccountDetailsSchema = zod.z.object({
|
|
15
|
+
ifsc: zod.z.string().describe("IFSC code of the bank branch.").nullable().optional(),
|
|
16
|
+
name: zod.z.string().describe("Name of the account holder.").nullable().optional(),
|
|
17
|
+
bank_name: zod.z.string().describe("Name of the bank.").nullable().optional(),
|
|
18
|
+
account_number: zod.z.string().describe("Bank account number.").nullable().optional()
|
|
19
|
+
}).describe("Bank account details in a fund account validation.");
|
|
20
|
+
const RazorpayListFundValidations_FundAccountInValidationSchema = zod.z.object({
|
|
21
|
+
id: zod.z.string().describe("Unique identifier for the fund account.").nullable().optional(),
|
|
22
|
+
active: zod.z.boolean().describe("Whether the fund account is currently active.").nullable().optional(),
|
|
23
|
+
entity: zod.z.string().describe("Entity type, always 'fund_account' for fund account objects.").nullable().optional(),
|
|
24
|
+
batch_id: zod.z.string().describe("Batch identifier if the fund account was created in a batch.").nullable().optional(),
|
|
25
|
+
contact_id: zod.z.string().describe("Unique identifier of the contact associated with this fund account.").nullable().optional(),
|
|
26
|
+
created_at: zod.z.number().int().describe("Unix timestamp when the fund account was created.").nullable().optional(),
|
|
27
|
+
account_type: zod.z.string().describe("Type of account (bank_account, vpa, card, wallet).").nullable().optional(),
|
|
28
|
+
bank_account: RazorpayListFundValidations_BankAccountDetailsSchema.nullable().optional()
|
|
29
|
+
}).describe("Fund account details embedded in a validation transaction.");
|
|
30
|
+
const RazorpayListFundValidations_FundValidationSchema = zod.z.object({
|
|
31
|
+
id: zod.z.string().describe("Unique identifier for the validation transaction.").nullable().optional(),
|
|
32
|
+
utr: zod.z.string().describe("Unique Transaction Reference number for the validation transaction.").nullable().optional(),
|
|
33
|
+
notes: zod.z.object({}).describe("Key-value pairs for additional information about the validation.").nullable().optional(),
|
|
34
|
+
amount: zod.z.number().int().describe("Amount used for validation in the smallest currency unit (e.g., paise for INR).").nullable().optional(),
|
|
35
|
+
entity: zod.z.string().describe("Entity type, always 'fund_account.validation' for validation objects.").nullable().optional(),
|
|
36
|
+
status: zod.z.string().describe("Status of the validation (e.g., created, completed, failed).").nullable().optional(),
|
|
37
|
+
results: RazorpayListFundValidations_ValidationResultsSchema.nullable().optional(),
|
|
38
|
+
currency: zod.z.string().describe("Three-letter ISO currency code (e.g., INR).").nullable().optional(),
|
|
39
|
+
created_at: zod.z.number().int().describe("Unix timestamp when the validation transaction was created.").nullable().optional(),
|
|
40
|
+
fund_account: RazorpayListFundValidations_FundAccountInValidationSchema.nullable().optional()
|
|
41
|
+
}).describe("Represents a single fund account validation transaction.");
|
|
42
|
+
const RazorpayListFundValidationsOutput = zod.z.object({
|
|
43
|
+
count: zod.z.number().int().describe("Number of validation transactions returned in this response.").nullable().optional(),
|
|
44
|
+
items: zod.z.array(RazorpayListFundValidations_FundValidationSchema).describe("Array of fund account validation objects returned by the API.").nullable().optional(),
|
|
45
|
+
entity: zod.z.string().describe("Entity type, always 'collection' for list responses.").nullable().optional()
|
|
46
|
+
}).describe("Response schema for listing fund account validation transactions.");
|
|
47
|
+
const razorpayListFundValidations = require_action.action("RAZORPAY_LIST_FUND_VALIDATIONS", {
|
|
48
|
+
slug: "razorpay-list-fund-validations",
|
|
49
|
+
name: "List Fund Validations",
|
|
50
|
+
description: "Tool to fetch all fund account validation transactions from RazorpayX with pagination support. Use when you need to retrieve validation records, check account verification status, or monitor validation transactions.",
|
|
51
|
+
input: RazorpayListFundValidationsInput,
|
|
52
|
+
output: RazorpayListFundValidationsOutput
|
|
53
|
+
});
|
|
54
|
+
//#endregion
|
|
55
|
+
exports.razorpayListFundValidations = razorpayListFundValidations;
|
|
56
|
+
|
|
57
|
+
//# sourceMappingURL=list-fund-validations.cjs.map
|