@keystrokehq/razorpay 0.1.0 → 0.1.3
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/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/cancel-invoice.cjs +6 -6
- package/dist/actions/cancel-invoice.cjs.map +1 -1
- package/dist/actions/cancel-invoice.d.cts +99 -3
- package/dist/actions/cancel-invoice.d.cts.map +1 -1
- package/dist/actions/cancel-invoice.d.mts +99 -3
- package/dist/actions/cancel-invoice.d.mts.map +1 -1
- package/dist/actions/cancel-invoice.mjs +6 -6
- package/dist/actions/cancel-invoice.mjs.map +1 -1
- package/dist/actions/cancel-payment-link.cjs +14 -14
- package/dist/actions/cancel-payment-link.cjs.map +1 -1
- package/dist/actions/cancel-payment-link.d.cts +33 -3
- package/dist/actions/cancel-payment-link.d.cts.map +1 -1
- package/dist/actions/cancel-payment-link.d.mts +33 -3
- package/dist/actions/cancel-payment-link.d.mts.map +1 -1
- package/dist/actions/cancel-payment-link.mjs +14 -14
- package/dist/actions/cancel-payment-link.mjs.map +1 -1
- package/dist/actions/create-an-order.cjs +12 -12
- package/dist/actions/create-an-order.cjs.map +1 -1
- package/dist/actions/create-an-order.d.cts +27 -3
- package/dist/actions/create-an-order.d.cts.map +1 -1
- package/dist/actions/create-an-order.d.mts +27 -3
- package/dist/actions/create-an-order.d.mts.map +1 -1
- package/dist/actions/create-an-order.mjs +12 -12
- package/dist/actions/create-an-order.mjs.map +1 -1
- package/dist/actions/create-contact.cjs +9 -9
- package/dist/actions/create-contact.cjs.map +1 -1
- package/dist/actions/create-contact.d.cts +33 -3
- package/dist/actions/create-contact.d.cts.map +1 -1
- package/dist/actions/create-contact.d.mts +33 -3
- package/dist/actions/create-contact.d.mts.map +1 -1
- package/dist/actions/create-contact.mjs +9 -9
- package/dist/actions/create-contact.mjs.map +1 -1
- package/dist/actions/create-customer.cjs +5 -5
- package/dist/actions/create-customer.cjs.map +1 -1
- package/dist/actions/create-customer.d.cts +24 -3
- package/dist/actions/create-customer.d.cts.map +1 -1
- package/dist/actions/create-customer.d.mts +24 -3
- package/dist/actions/create-customer.d.mts.map +1 -1
- package/dist/actions/create-customer.mjs +5 -5
- package/dist/actions/create-customer.mjs.map +1 -1
- package/dist/actions/create-invoice.cjs +15 -15
- package/dist/actions/create-invoice.cjs.map +1 -1
- package/dist/actions/create-invoice.d.cts +222 -3
- package/dist/actions/create-invoice.d.cts.map +1 -1
- package/dist/actions/create-invoice.d.mts +222 -3
- package/dist/actions/create-invoice.d.mts.map +1 -1
- package/dist/actions/create-invoice.mjs +15 -15
- package/dist/actions/create-invoice.mjs.map +1 -1
- package/dist/actions/create-item.cjs +7 -7
- package/dist/actions/create-item.cjs.map +1 -1
- package/dist/actions/create-item.d.cts +29 -3
- package/dist/actions/create-item.d.cts.map +1 -1
- package/dist/actions/create-item.d.mts +29 -3
- package/dist/actions/create-item.d.mts.map +1 -1
- package/dist/actions/create-item.mjs +7 -7
- package/dist/actions/create-item.mjs.map +1 -1
- package/dist/actions/create-payment-link.cjs +10 -10
- package/dist/actions/create-payment-link.cjs.map +1 -1
- package/dist/actions/create-payment-link.d.cts +76 -3
- package/dist/actions/create-payment-link.d.cts.map +1 -1
- package/dist/actions/create-payment-link.d.mts +76 -3
- package/dist/actions/create-payment-link.d.mts.map +1 -1
- package/dist/actions/create-payment-link.mjs +10 -10
- package/dist/actions/create-payment-link.mjs.map +1 -1
- package/dist/actions/delete-invoice.cjs +1 -1
- package/dist/actions/delete-invoice.cjs.map +1 -1
- package/dist/actions/delete-invoice.d.cts +9 -3
- package/dist/actions/delete-invoice.d.cts.map +1 -1
- package/dist/actions/delete-invoice.d.mts +9 -3
- package/dist/actions/delete-invoice.d.mts.map +1 -1
- package/dist/actions/delete-invoice.mjs +1 -1
- package/dist/actions/delete-invoice.mjs.map +1 -1
- package/dist/actions/delete-item.cjs +1 -1
- package/dist/actions/delete-item.cjs.map +1 -1
- package/dist/actions/delete-item.d.cts +9 -3
- package/dist/actions/delete-item.d.cts.map +1 -1
- package/dist/actions/delete-item.d.mts +9 -3
- package/dist/actions/delete-item.d.mts.map +1 -1
- package/dist/actions/delete-item.mjs +1 -1
- package/dist/actions/delete-item.mjs.map +1 -1
- package/dist/actions/fetch-a-payment-link.cjs +6 -6
- package/dist/actions/fetch-a-payment-link.cjs.map +1 -1
- package/dist/actions/fetch-a-payment-link.d.cts +43 -3
- package/dist/actions/fetch-a-payment-link.d.cts.map +1 -1
- package/dist/actions/fetch-a-payment-link.d.mts +43 -3
- package/dist/actions/fetch-a-payment-link.d.mts.map +1 -1
- package/dist/actions/fetch-a-payment-link.mjs +6 -6
- package/dist/actions/fetch-a-payment-link.mjs.map +1 -1
- package/dist/actions/fetch-all-customers.cjs +9 -9
- package/dist/actions/fetch-all-customers.cjs.map +1 -1
- package/dist/actions/fetch-all-customers.d.cts +22 -3
- package/dist/actions/fetch-all-customers.d.cts.map +1 -1
- package/dist/actions/fetch-all-customers.d.mts +22 -3
- package/dist/actions/fetch-all-customers.d.mts.map +1 -1
- package/dist/actions/fetch-all-customers.mjs +9 -9
- package/dist/actions/fetch-all-customers.mjs.map +1 -1
- package/dist/actions/fetch-all-invoices.cjs +14 -14
- package/dist/actions/fetch-all-invoices.cjs.map +1 -1
- package/dist/actions/fetch-all-invoices.d.cts +115 -3
- package/dist/actions/fetch-all-invoices.d.cts.map +1 -1
- package/dist/actions/fetch-all-invoices.d.mts +115 -3
- package/dist/actions/fetch-all-invoices.d.mts.map +1 -1
- package/dist/actions/fetch-all-invoices.mjs +14 -14
- package/dist/actions/fetch-all-invoices.mjs.map +1 -1
- package/dist/actions/fetch-all-payment-links.cjs +9 -9
- package/dist/actions/fetch-all-payment-links.cjs.map +1 -1
- package/dist/actions/fetch-all-payment-links.d.cts +45 -3
- package/dist/actions/fetch-all-payment-links.d.cts.map +1 -1
- package/dist/actions/fetch-all-payment-links.d.mts +45 -3
- package/dist/actions/fetch-all-payment-links.d.mts.map +1 -1
- package/dist/actions/fetch-all-payment-links.mjs +9 -9
- package/dist/actions/fetch-all-payment-links.mjs.map +1 -1
- package/dist/actions/fetch-all-payments.cjs +15 -15
- package/dist/actions/fetch-all-payments.cjs.map +1 -1
- package/dist/actions/fetch-all-payments.d.cts +50 -3
- package/dist/actions/fetch-all-payments.d.cts.map +1 -1
- package/dist/actions/fetch-all-payments.d.mts +50 -3
- package/dist/actions/fetch-all-payments.d.mts.map +1 -1
- package/dist/actions/fetch-all-payments.mjs +15 -15
- package/dist/actions/fetch-all-payments.mjs.map +1 -1
- package/dist/actions/fetch-all-refunds-for-a-payment.cjs +3 -3
- package/dist/actions/fetch-all-refunds-for-a-payment.cjs.map +1 -1
- package/dist/actions/fetch-all-refunds-for-a-payment.d.cts +35 -3
- package/dist/actions/fetch-all-refunds-for-a-payment.d.cts.map +1 -1
- package/dist/actions/fetch-all-refunds-for-a-payment.d.mts +35 -3
- package/dist/actions/fetch-all-refunds-for-a-payment.d.mts.map +1 -1
- package/dist/actions/fetch-all-refunds-for-a-payment.mjs +3 -3
- package/dist/actions/fetch-all-refunds-for-a-payment.mjs.map +1 -1
- package/dist/actions/fetch-invoice-by-id.cjs +12 -12
- package/dist/actions/fetch-invoice-by-id.cjs.map +1 -1
- package/dist/actions/fetch-invoice-by-id.d.cts +97 -3
- package/dist/actions/fetch-invoice-by-id.d.cts.map +1 -1
- package/dist/actions/fetch-invoice-by-id.d.mts +97 -3
- package/dist/actions/fetch-invoice-by-id.d.mts.map +1 -1
- package/dist/actions/fetch-invoice-by-id.mjs +12 -12
- package/dist/actions/fetch-invoice-by-id.mjs.map +1 -1
- package/dist/actions/fetch-orders-by-id.cjs +10 -10
- package/dist/actions/fetch-orders-by-id.cjs.map +1 -1
- package/dist/actions/fetch-orders-by-id.d.cts +20 -3
- package/dist/actions/fetch-orders-by-id.d.cts.map +1 -1
- package/dist/actions/fetch-orders-by-id.d.mts +20 -3
- package/dist/actions/fetch-orders-by-id.d.mts.map +1 -1
- package/dist/actions/fetch-orders-by-id.mjs +10 -10
- package/dist/actions/fetch-orders-by-id.mjs.map +1 -1
- package/dist/actions/fetch-orders.cjs +13 -13
- package/dist/actions/fetch-orders.cjs.map +1 -1
- package/dist/actions/fetch-orders.d.cts +34 -3
- package/dist/actions/fetch-orders.d.cts.map +1 -1
- package/dist/actions/fetch-orders.d.mts +34 -3
- package/dist/actions/fetch-orders.d.mts.map +1 -1
- package/dist/actions/fetch-orders.mjs +13 -13
- package/dist/actions/fetch-orders.mjs.map +1 -1
- package/dist/actions/fetch-payments-by-order.cjs +11 -11
- package/dist/actions/fetch-payments-by-order.cjs.map +1 -1
- package/dist/actions/fetch-payments-by-order.d.cts +43 -3
- package/dist/actions/fetch-payments-by-order.d.cts.map +1 -1
- package/dist/actions/fetch-payments-by-order.d.mts +43 -3
- package/dist/actions/fetch-payments-by-order.d.mts.map +1 -1
- package/dist/actions/fetch-payments-by-order.mjs +11 -11
- package/dist/actions/fetch-payments-by-order.mjs.map +1 -1
- package/dist/actions/fetch-refunds.cjs +3 -3
- package/dist/actions/fetch-refunds.cjs.map +1 -1
- package/dist/actions/fetch-refunds.d.cts +33 -3
- package/dist/actions/fetch-refunds.d.cts.map +1 -1
- package/dist/actions/fetch-refunds.d.mts +33 -3
- package/dist/actions/fetch-refunds.d.mts.map +1 -1
- package/dist/actions/fetch-refunds.mjs +3 -3
- package/dist/actions/fetch-refunds.mjs.map +1 -1
- package/dist/actions/get-contact.cjs +8 -8
- package/dist/actions/get-contact.cjs.map +1 -1
- package/dist/actions/get-contact.d.cts +19 -3
- package/dist/actions/get-contact.d.cts.map +1 -1
- package/dist/actions/get-contact.d.mts +19 -3
- package/dist/actions/get-contact.d.mts.map +1 -1
- package/dist/actions/get-contact.mjs +8 -8
- package/dist/actions/get-contact.mjs.map +1 -1
- package/dist/actions/get-customer.cjs +4 -4
- package/dist/actions/get-customer.cjs.map +1 -1
- package/dist/actions/get-customer.d.cts +16 -3
- package/dist/actions/get-customer.d.cts.map +1 -1
- package/dist/actions/get-customer.d.mts +16 -3
- package/dist/actions/get-customer.d.mts.map +1 -1
- package/dist/actions/get-customer.mjs +4 -4
- package/dist/actions/get-customer.mjs.map +1 -1
- package/dist/actions/get-fund-account.cjs +11 -11
- package/dist/actions/get-fund-account.cjs.map +1 -1
- package/dist/actions/get-fund-account.d.cts +32 -3
- package/dist/actions/get-fund-account.d.cts.map +1 -1
- package/dist/actions/get-fund-account.d.mts +32 -3
- package/dist/actions/get-fund-account.d.mts.map +1 -1
- package/dist/actions/get-fund-account.mjs +11 -11
- package/dist/actions/get-fund-account.mjs.map +1 -1
- package/dist/actions/get-item.cjs +10 -10
- package/dist/actions/get-item.cjs.map +1 -1
- package/dist/actions/get-item.d.cts +24 -3
- package/dist/actions/get-item.d.cts.map +1 -1
- package/dist/actions/get-item.d.mts +24 -3
- package/dist/actions/get-item.d.mts.map +1 -1
- package/dist/actions/get-item.mjs +10 -10
- package/dist/actions/get-item.mjs.map +1 -1
- package/dist/actions/get-settlement-recon.cjs +2 -2
- package/dist/actions/get-settlement-recon.cjs.map +1 -1
- package/dist/actions/get-settlement-recon.d.cts +28 -3
- package/dist/actions/get-settlement-recon.d.cts.map +1 -1
- package/dist/actions/get-settlement-recon.d.mts +28 -3
- package/dist/actions/get-settlement-recon.d.mts.map +1 -1
- package/dist/actions/get-settlement-recon.mjs +2 -2
- package/dist/actions/get-settlement-recon.mjs.map +1 -1
- package/dist/actions/get-transfer-reversals.cjs +2 -2
- package/dist/actions/get-transfer-reversals.cjs.map +1 -1
- package/dist/actions/get-transfer-reversals.d.cts +32 -3
- package/dist/actions/get-transfer-reversals.d.cts.map +1 -1
- package/dist/actions/get-transfer-reversals.d.mts +32 -3
- package/dist/actions/get-transfer-reversals.d.mts.map +1 -1
- package/dist/actions/get-transfer-reversals.mjs +2 -2
- package/dist/actions/get-transfer-reversals.mjs.map +1 -1
- package/dist/actions/issue-an-invoice.cjs +12 -12
- package/dist/actions/issue-an-invoice.cjs.map +1 -1
- package/dist/actions/issue-an-invoice.d.cts +97 -3
- package/dist/actions/issue-an-invoice.d.cts.map +1 -1
- package/dist/actions/issue-an-invoice.d.mts +97 -3
- package/dist/actions/issue-an-invoice.d.mts.map +1 -1
- package/dist/actions/issue-an-invoice.mjs +12 -12
- package/dist/actions/issue-an-invoice.mjs.map +1 -1
- package/dist/actions/list-customer-tokens.cjs +10 -10
- package/dist/actions/list-customer-tokens.cjs.map +1 -1
- package/dist/actions/list-customer-tokens.d.cts +40 -3
- package/dist/actions/list-customer-tokens.d.cts.map +1 -1
- package/dist/actions/list-customer-tokens.d.mts +40 -3
- package/dist/actions/list-customer-tokens.d.mts.map +1 -1
- package/dist/actions/list-customer-tokens.mjs +10 -10
- package/dist/actions/list-customer-tokens.mjs.map +1 -1
- package/dist/actions/list-disputes.cjs +3 -3
- package/dist/actions/list-disputes.cjs.map +1 -1
- package/dist/actions/list-disputes.d.cts +46 -3
- package/dist/actions/list-disputes.d.cts.map +1 -1
- package/dist/actions/list-disputes.d.mts +46 -3
- package/dist/actions/list-disputes.d.mts.map +1 -1
- package/dist/actions/list-disputes.mjs +3 -3
- package/dist/actions/list-disputes.mjs.map +1 -1
- package/dist/actions/list-fund-accounts.cjs +5 -5
- package/dist/actions/list-fund-accounts.cjs.map +1 -1
- package/dist/actions/list-fund-accounts.d.cts +40 -3
- package/dist/actions/list-fund-accounts.d.cts.map +1 -1
- package/dist/actions/list-fund-accounts.d.mts +40 -3
- package/dist/actions/list-fund-accounts.d.mts.map +1 -1
- package/dist/actions/list-fund-accounts.mjs +5 -5
- package/dist/actions/list-fund-accounts.mjs.map +1 -1
- package/dist/actions/list-fund-validations.cjs +6 -6
- package/dist/actions/list-fund-validations.cjs.map +1 -1
- package/dist/actions/list-fund-validations.d.cts +45 -3
- package/dist/actions/list-fund-validations.d.cts.map +1 -1
- package/dist/actions/list-fund-validations.d.mts +45 -3
- package/dist/actions/list-fund-validations.d.mts.map +1 -1
- package/dist/actions/list-fund-validations.mjs +6 -6
- package/dist/actions/list-fund-validations.mjs.map +1 -1
- package/dist/actions/list-items.cjs +2 -2
- package/dist/actions/list-items.cjs.map +1 -1
- package/dist/actions/list-items.d.cts +36 -3
- package/dist/actions/list-items.d.cts.map +1 -1
- package/dist/actions/list-items.d.mts +36 -3
- package/dist/actions/list-items.d.mts.map +1 -1
- package/dist/actions/list-items.mjs +2 -2
- package/dist/actions/list-items.mjs.map +1 -1
- package/dist/actions/list-payment-downtimes.cjs.map +1 -1
- package/dist/actions/list-payment-downtimes.d.cts +3 -3
- package/dist/actions/list-payment-downtimes.d.cts.map +1 -1
- package/dist/actions/list-payment-downtimes.d.mts +3 -3
- package/dist/actions/list-payment-downtimes.d.mts.map +1 -1
- package/dist/actions/list-payment-downtimes.mjs.map +1 -1
- package/dist/actions/notify-payment-link.cjs +1 -1
- package/dist/actions/notify-payment-link.cjs.map +1 -1
- package/dist/actions/notify-payment-link.d.cts +14 -3
- package/dist/actions/notify-payment-link.d.cts.map +1 -1
- package/dist/actions/notify-payment-link.d.mts +14 -3
- package/dist/actions/notify-payment-link.d.mts.map +1 -1
- package/dist/actions/notify-payment-link.mjs +1 -1
- package/dist/actions/notify-payment-link.mjs.map +1 -1
- package/dist/actions/send-or-resend-notification.cjs +1 -1
- package/dist/actions/send-or-resend-notification.cjs.map +1 -1
- package/dist/actions/send-or-resend-notification.d.cts +14 -3
- package/dist/actions/send-or-resend-notification.d.cts.map +1 -1
- package/dist/actions/send-or-resend-notification.d.mts +14 -3
- package/dist/actions/send-or-resend-notification.d.mts.map +1 -1
- package/dist/actions/send-or-resend-notification.mjs +1 -1
- package/dist/actions/send-or-resend-notification.mjs.map +1 -1
- package/dist/actions/update-contact.cjs +9 -9
- package/dist/actions/update-contact.cjs.map +1 -1
- package/dist/actions/update-contact.d.cts +35 -3
- package/dist/actions/update-contact.d.cts.map +1 -1
- package/dist/actions/update-contact.d.mts +35 -3
- package/dist/actions/update-contact.d.mts.map +1 -1
- package/dist/actions/update-contact.mjs +9 -9
- package/dist/actions/update-contact.mjs.map +1 -1
- package/dist/actions/update-customer.cjs +8 -8
- package/dist/actions/update-customer.cjs.map +1 -1
- package/dist/actions/update-customer.d.cts +22 -3
- package/dist/actions/update-customer.d.cts.map +1 -1
- package/dist/actions/update-customer.d.mts +22 -3
- package/dist/actions/update-customer.d.mts.map +1 -1
- package/dist/actions/update-customer.mjs +8 -8
- package/dist/actions/update-customer.mjs.map +1 -1
- package/dist/actions/update-invoice.cjs +14 -14
- package/dist/actions/update-invoice.cjs.map +1 -1
- package/dist/actions/update-invoice.d.cts +228 -3
- package/dist/actions/update-invoice.d.cts.map +1 -1
- package/dist/actions/update-invoice.d.mts +228 -3
- package/dist/actions/update-invoice.d.mts.map +1 -1
- package/dist/actions/update-invoice.mjs +14 -14
- package/dist/actions/update-invoice.mjs.map +1 -1
- package/dist/actions/update-item.cjs +10 -10
- package/dist/actions/update-item.cjs.map +1 -1
- package/dist/actions/update-item.d.cts +30 -3
- package/dist/actions/update-item.d.cts.map +1 -1
- package/dist/actions/update-item.d.mts +30 -3
- package/dist/actions/update-item.d.mts.map +1 -1
- package/dist/actions/update-item.mjs +10 -10
- package/dist/actions/update-item.mjs.map +1 -1
- package/dist/actions/update-order.cjs +12 -12
- package/dist/actions/update-order.cjs.map +1 -1
- package/dist/actions/update-order.d.cts +22 -3
- package/dist/actions/update-order.d.cts.map +1 -1
- package/dist/actions/update-order.d.mts +22 -3
- package/dist/actions/update-order.d.mts.map +1 -1
- package/dist/actions/update-order.mjs +12 -12
- package/dist/actions/update-order.mjs.map +1 -1
- package/dist/actions/update-payment-link.cjs +12 -12
- package/dist/actions/update-payment-link.cjs.map +1 -1
- package/dist/actions/update-payment-link.d.cts +52 -3
- package/dist/actions/update-payment-link.d.cts.map +1 -1
- package/dist/actions/update-payment-link.d.mts +52 -3
- package/dist/actions/update-payment-link.d.mts.map +1 -1
- package/dist/actions/update-payment-link.mjs +12 -12
- package/dist/actions/update-payment-link.mjs.map +1 -1
- package/dist/catalog.cjs +13 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +12 -0
- package/dist/catalog.d.mts +12 -0
- package/dist/catalog.mjs +13 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -7,26 +7,26 @@ const RazorpayFetchAllPaymentsInput = zod.z.object({
|
|
|
7
7
|
skip: zod.z.number().int().describe("Number of payments to skip for pagination. Use this to paginate through results.").optional(),
|
|
8
8
|
count: zod.z.number().int().describe("Number of payments to fetch. Default is 10, maximum is 100.").optional()
|
|
9
9
|
}).describe("Request model for fetching all payments with pagination and time filtering.");
|
|
10
|
-
const RazorpayFetchAllPayments_AcquirerDataSchema = zod.z.object({ bank_transaction_id: zod.z.string().describe("Bank transaction identifier from the payment processor.").nullable().optional() }).describe("Acquirer data containing bank/processor transaction details.");
|
|
10
|
+
const RazorpayFetchAllPayments_AcquirerDataSchema = zod.z.object({ bank_transaction_id: zod.z.string().describe("Bank transaction identifier from the payment processor.").nullable().optional() }).passthrough().describe("Acquirer data containing bank/processor transaction details.");
|
|
11
11
|
const RazorpayFetchAllPayments_PaymentItemSchema = zod.z.object({
|
|
12
|
-
id: zod.z.string().describe("Unique identifier for the payment."),
|
|
12
|
+
id: zod.z.string().describe("Unique identifier for the payment.").nullable(),
|
|
13
13
|
fee: zod.z.number().int().describe("Transaction fee charged in smallest currency unit.").nullable().optional(),
|
|
14
14
|
tax: zod.z.number().int().describe("Tax component of the transaction fee in smallest currency unit.").nullable().optional(),
|
|
15
15
|
vpa: zod.z.string().describe("Virtual Payment Address for UPI payments.").nullable().optional(),
|
|
16
16
|
bank: zod.z.string().describe("Bank code for netbanking payments.").nullable().optional(),
|
|
17
17
|
email: zod.z.string().describe("Customer email address.").nullable().optional(),
|
|
18
18
|
notes: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom key-value metadata associated with the payment.").nullable().optional(),
|
|
19
|
-
amount: zod.z.number().int().describe("Payment amount in smallest currency unit (paise for INR, cents for USD)."),
|
|
20
|
-
entity: zod.z.string().describe("String representing the object type. Always 'payment'."),
|
|
21
|
-
method: zod.z.string().describe("Payment method used. Values: card, netbanking, wallet, emi, upi, cardless_emi, paylater, bank_transfer, offline, qr_code, emandate, nach, recurring, third_party, cheque, dd."),
|
|
22
|
-
status: zod.z.string().describe("Payment status. Values: created, authorized, captured, refunded, failed, pending."),
|
|
19
|
+
amount: zod.z.number().int().describe("Payment amount in smallest currency unit (paise for INR, cents for USD).").nullable(),
|
|
20
|
+
entity: zod.z.string().describe("String representing the object type. Always 'payment'.").nullable(),
|
|
21
|
+
method: zod.z.string().describe("Payment method used. Values: card, netbanking, wallet, emi, upi, cardless_emi, paylater, bank_transfer, offline, qr_code, emandate, nach, recurring, third_party, cheque, dd.").nullable(),
|
|
22
|
+
status: zod.z.string().describe("Payment status. Values: created, authorized, captured, refunded, failed, pending.").nullable(),
|
|
23
23
|
wallet: zod.z.string().describe("Wallet provider name for wallet payments.").nullable().optional(),
|
|
24
24
|
card_id: zod.z.string().describe("Card identifier for card payments.").nullable().optional(),
|
|
25
25
|
contact: zod.z.string().describe("Customer phone number.").nullable().optional(),
|
|
26
|
-
captured: zod.z.boolean().describe("Indicates if the payment has been captured."),
|
|
27
|
-
currency: zod.z.string().describe("Three-letter ISO currency code (e.g., INR, USD)."),
|
|
26
|
+
captured: zod.z.boolean().describe("Indicates if the payment has been captured.").nullable(),
|
|
27
|
+
currency: zod.z.string().describe("Three-letter ISO currency code (e.g., INR, USD).").nullable(),
|
|
28
28
|
order_id: zod.z.string().describe("Identifier of the order associated with this payment.").nullable().optional(),
|
|
29
|
-
created_at: zod.z.number().int().describe("Unix timestamp (in seconds) of payment creation."),
|
|
29
|
+
created_at: zod.z.number().int().describe("Unix timestamp (in seconds) of payment creation.").nullable(),
|
|
30
30
|
error_code: zod.z.string().describe("Error code for failed payments.").nullable().optional(),
|
|
31
31
|
error_step: zod.z.string().describe("Step at which the error occurred.").nullable().optional(),
|
|
32
32
|
invoice_id: zod.z.string().describe("Identifier of the invoice linked to this payment.").nullable().optional(),
|
|
@@ -35,16 +35,16 @@ const RazorpayFetchAllPayments_PaymentItemSchema = zod.z.object({
|
|
|
35
35
|
error_reason: zod.z.string().describe("Reason for the payment failure.").nullable().optional(),
|
|
36
36
|
error_source: zod.z.string().describe("Source of the error (customer, business, or bank).").nullable().optional(),
|
|
37
37
|
acquirer_data: RazorpayFetchAllPayments_AcquirerDataSchema.nullable().optional(),
|
|
38
|
-
international: zod.z.boolean().describe("Indicates if this is an international (cross-border) payment."),
|
|
38
|
+
international: zod.z.boolean().describe("Indicates if this is an international (cross-border) payment.").nullable(),
|
|
39
39
|
refund_status: zod.z.string().describe("Refund status. Values: null, partial, full.").nullable().optional(),
|
|
40
|
-
amount_refunded: zod.z.number().int().describe("Amount refunded in smallest currency unit."),
|
|
40
|
+
amount_refunded: zod.z.number().int().describe("Amount refunded in smallest currency unit.").nullable(),
|
|
41
41
|
error_description: zod.z.string().describe("Human-readable error message for failed payments.").nullable().optional()
|
|
42
|
-
}).describe("Detailed model representing a single payment object from Razorpay.");
|
|
42
|
+
}).passthrough().describe("Detailed model representing a single payment object from Razorpay.");
|
|
43
43
|
const RazorpayFetchAllPaymentsOutput = zod.z.object({
|
|
44
|
-
count: zod.z.number().int().describe("Number of payment items returned in this response."),
|
|
44
|
+
count: zod.z.number().int().describe("Number of payment items returned in this response.").nullable(),
|
|
45
45
|
items: zod.z.array(RazorpayFetchAllPayments_PaymentItemSchema).describe("Array of payment objects, with the most recent appearing first."),
|
|
46
|
-
entity: zod.z.string().describe("String representing the collection type. Always 'collection'.")
|
|
47
|
-
}).describe("Response model containing a collection of payment objects with pagination metadata.");
|
|
46
|
+
entity: zod.z.string().describe("String representing the collection type. Always 'collection'.").nullable()
|
|
47
|
+
}).passthrough().describe("Response model containing a collection of payment objects with pagination metadata.");
|
|
48
48
|
const razorpayFetchAllPayments = require_action.action("RAZORPAY_FETCH_ALL_PAYMENTS", {
|
|
49
49
|
slug: "razorpay-fetch-all-payments",
|
|
50
50
|
name: "Fetch All Payments",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-all-payments.cjs","names":["z","action"],"sources":["../../src/actions/fetch-all-payments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayFetchAllPaymentsInput
|
|
1
|
+
{"version":3,"file":"fetch-all-payments.cjs","names":["z","action"],"sources":["../../src/actions/fetch-all-payments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayFetchAllPaymentsInput = z.object({\n to: z.number().int().describe(\"Unix timestamp (in seconds) until which to fetch payments. Filters payments created on or before this timestamp.\").optional(),\n from: z.number().int().describe(\"Unix timestamp (in seconds) from which to fetch payments. Filters payments created on or after this timestamp.\").optional(),\n skip: z.number().int().describe(\"Number of payments to skip for pagination. Use this to paginate through results.\").optional(),\n count: z.number().int().describe(\"Number of payments to fetch. Default is 10, maximum is 100.\").optional(),\n}).describe(\"Request model for fetching all payments with pagination and time filtering.\");\nconst RazorpayFetchAllPayments_AcquirerDataSchema = z.object({\n bank_transaction_id: z.string().describe(\"Bank transaction identifier from the payment processor.\").nullable().optional(),\n}).passthrough().describe(\"Acquirer data containing bank/processor transaction details.\");\nconst RazorpayFetchAllPayments_PaymentItemSchema = z.object({\n id: z.string().describe(\"Unique identifier for the payment.\").nullable(),\n fee: z.number().int().describe(\"Transaction fee charged in smallest currency unit.\").nullable().optional(),\n tax: z.number().int().describe(\"Tax component of the transaction fee in smallest currency unit.\").nullable().optional(),\n vpa: z.string().describe(\"Virtual Payment Address for UPI payments.\").nullable().optional(),\n bank: z.string().describe(\"Bank code for netbanking payments.\").nullable().optional(),\n email: z.string().describe(\"Customer email address.\").nullable().optional(),\n notes: z.record(z.string(), z.unknown()).describe(\"Custom key-value metadata associated with the payment.\").nullable().optional(),\n amount: z.number().int().describe(\"Payment amount in smallest currency unit (paise for INR, cents for USD).\").nullable(),\n entity: z.string().describe(\"String representing the object type. Always 'payment'.\").nullable(),\n method: z.string().describe(\"Payment method used. Values: card, netbanking, wallet, emi, upi, cardless_emi, paylater, bank_transfer, offline, qr_code, emandate, nach, recurring, third_party, cheque, dd.\").nullable(),\n status: z.string().describe(\"Payment status. Values: created, authorized, captured, refunded, failed, pending.\").nullable(),\n wallet: z.string().describe(\"Wallet provider name for wallet payments.\").nullable().optional(),\n card_id: z.string().describe(\"Card identifier for card payments.\").nullable().optional(),\n contact: z.string().describe(\"Customer phone number.\").nullable().optional(),\n captured: z.boolean().describe(\"Indicates if the payment has been captured.\").nullable(),\n currency: z.string().describe(\"Three-letter ISO currency code (e.g., INR, USD).\").nullable(),\n order_id: z.string().describe(\"Identifier of the order associated with this payment.\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp (in seconds) of payment creation.\").nullable(),\n error_code: z.string().describe(\"Error code for failed payments.\").nullable().optional(),\n error_step: z.string().describe(\"Step at which the error occurred.\").nullable().optional(),\n invoice_id: z.string().describe(\"Identifier of the invoice linked to this payment.\").nullable().optional(),\n customer_id: z.string().describe(\"Identifier of the customer associated with this payment.\").nullable().optional(),\n description: z.string().describe(\"Description provided during payment creation.\").nullable().optional(),\n error_reason: z.string().describe(\"Reason for the payment failure.\").nullable().optional(),\n error_source: z.string().describe(\"Source of the error (customer, business, or bank).\").nullable().optional(),\n acquirer_data: RazorpayFetchAllPayments_AcquirerDataSchema.nullable().optional(),\n international: z.boolean().describe(\"Indicates if this is an international (cross-border) payment.\").nullable(),\n refund_status: z.string().describe(\"Refund status. Values: null, partial, full.\").nullable().optional(),\n amount_refunded: z.number().int().describe(\"Amount refunded in smallest currency unit.\").nullable(),\n error_description: z.string().describe(\"Human-readable error message for failed payments.\").nullable().optional(),\n}).passthrough().describe(\"Detailed model representing a single payment object from Razorpay.\");\nexport const RazorpayFetchAllPaymentsOutput = z.object({\n count: z.number().int().describe(\"Number of payment items returned in this response.\").nullable(),\n items: z.array(RazorpayFetchAllPayments_PaymentItemSchema).describe(\"Array of payment objects, with the most recent appearing first.\"),\n entity: z.string().describe(\"String representing the collection type. Always 'collection'.\").nullable(),\n}).passthrough().describe(\"Response model containing a collection of payment objects with pagination metadata.\");\n\nexport const razorpayFetchAllPayments = action(\"RAZORPAY_FETCH_ALL_PAYMENTS\", {\n slug: \"razorpay-fetch-all-payments\",\n name: \"Fetch All Payments\",\n description: \"Tool to retrieve all payments from your Razorpay account with pagination and time filtering support. Use when you need to list payments, audit transactions, or analyze payment history. Returns payments in descending order by creation time (newest first).\",\n input: RazorpayFetchAllPaymentsInput,\n output: RazorpayFetchAllPaymentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;CAC3J,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS;CAC3J,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CAC7H,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,SAAS,6EAA6E;AACzF,MAAM,8CAA8CA,IAAAA,EAAE,OAAO,EAC3D,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC1H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8DAA8D;AACxF,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACvE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,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AiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAClG,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oEAAoE;AAC9F,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAChG,OAAOA,IAAAA,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,iEAAiE;CACrI,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;AACxG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qFAAqF;AAE/G,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,56 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/fetch-all-payments.d.ts
|
|
4
|
-
declare const RazorpayFetchAllPaymentsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RazorpayFetchAllPaymentsInput: z.ZodObject<{
|
|
5
|
+
to: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
from: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
skip: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
declare const RazorpayFetchAllPaymentsOutput: z.ZodObject<{
|
|
11
|
+
count: z.ZodNullable<z.ZodNumber>;
|
|
12
|
+
items: z.ZodArray<z.ZodObject<{
|
|
13
|
+
id: z.ZodNullable<z.ZodString>;
|
|
14
|
+
fee: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
15
|
+
tax: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
16
|
+
vpa: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
bank: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
notes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
20
|
+
amount: z.ZodNullable<z.ZodNumber>;
|
|
21
|
+
entity: z.ZodNullable<z.ZodString>;
|
|
22
|
+
method: z.ZodNullable<z.ZodString>;
|
|
23
|
+
status: z.ZodNullable<z.ZodString>;
|
|
24
|
+
wallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
card_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
contact: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
captured: z.ZodNullable<z.ZodBoolean>;
|
|
28
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
29
|
+
order_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
+
created_at: z.ZodNullable<z.ZodNumber>;
|
|
31
|
+
error_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
|
+
error_step: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
|
+
invoice_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
+
customer_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
+
error_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
error_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
acquirer_data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
39
|
+
bank_transaction_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
+
}, z.core.$loose>>>;
|
|
41
|
+
international: z.ZodNullable<z.ZodBoolean>;
|
|
42
|
+
refund_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
+
amount_refunded: z.ZodNullable<z.ZodNumber>;
|
|
44
|
+
error_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
|
+
}, z.core.$loose>>;
|
|
46
|
+
entity: z.ZodNullable<z.ZodString>;
|
|
47
|
+
}, z.core.$loose>;
|
|
48
|
+
declare const razorpayFetchAllPayments: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
49
|
+
to?: number | undefined;
|
|
50
|
+
from?: number | undefined;
|
|
51
|
+
skip?: number | undefined;
|
|
52
|
+
count?: number | undefined;
|
|
53
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
54
|
//#endregion
|
|
8
55
|
export { razorpayFetchAllPayments };
|
|
9
56
|
//# sourceMappingURL=fetch-all-payments.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-all-payments.d.cts","names":[],"sources":["../../src/actions/fetch-all-payments.ts"],"mappings":";;;cAIa,6BAAA,
|
|
1
|
+
{"version":3,"file":"fetch-all-payments.d.cts","names":[],"sources":["../../src/actions/fetch-all-payments.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;cAyC7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAM9B,wBAAA,gCAAwB,wBAAA"}
|
|
@@ -1,9 +1,56 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/fetch-all-payments.d.ts
|
|
4
|
-
declare const RazorpayFetchAllPaymentsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RazorpayFetchAllPaymentsInput: z.ZodObject<{
|
|
5
|
+
to: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
from: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
skip: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
declare const RazorpayFetchAllPaymentsOutput: z.ZodObject<{
|
|
11
|
+
count: z.ZodNullable<z.ZodNumber>;
|
|
12
|
+
items: z.ZodArray<z.ZodObject<{
|
|
13
|
+
id: z.ZodNullable<z.ZodString>;
|
|
14
|
+
fee: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
15
|
+
tax: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
16
|
+
vpa: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
bank: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
notes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
20
|
+
amount: z.ZodNullable<z.ZodNumber>;
|
|
21
|
+
entity: z.ZodNullable<z.ZodString>;
|
|
22
|
+
method: z.ZodNullable<z.ZodString>;
|
|
23
|
+
status: z.ZodNullable<z.ZodString>;
|
|
24
|
+
wallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
card_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
contact: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
captured: z.ZodNullable<z.ZodBoolean>;
|
|
28
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
29
|
+
order_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
+
created_at: z.ZodNullable<z.ZodNumber>;
|
|
31
|
+
error_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
|
+
error_step: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
|
+
invoice_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
+
customer_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
+
error_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
error_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
acquirer_data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
39
|
+
bank_transaction_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
+
}, z.core.$loose>>>;
|
|
41
|
+
international: z.ZodNullable<z.ZodBoolean>;
|
|
42
|
+
refund_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
+
amount_refunded: z.ZodNullable<z.ZodNumber>;
|
|
44
|
+
error_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
|
+
}, z.core.$loose>>;
|
|
46
|
+
entity: z.ZodNullable<z.ZodString>;
|
|
47
|
+
}, z.core.$loose>;
|
|
48
|
+
declare const razorpayFetchAllPayments: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
49
|
+
to?: number | undefined;
|
|
50
|
+
from?: number | undefined;
|
|
51
|
+
skip?: number | undefined;
|
|
52
|
+
count?: number | undefined;
|
|
53
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
54
|
//#endregion
|
|
8
55
|
export { razorpayFetchAllPayments };
|
|
9
56
|
//# sourceMappingURL=fetch-all-payments.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-all-payments.d.mts","names":[],"sources":["../../src/actions/fetch-all-payments.ts"],"mappings":";;;cAIa,6BAAA,
|
|
1
|
+
{"version":3,"file":"fetch-all-payments.d.mts","names":[],"sources":["../../src/actions/fetch-all-payments.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;cAyC7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAM9B,wBAAA,gCAAwB,wBAAA"}
|
|
@@ -7,26 +7,26 @@ const RazorpayFetchAllPaymentsInput = z.object({
|
|
|
7
7
|
skip: z.number().int().describe("Number of payments to skip for pagination. Use this to paginate through results.").optional(),
|
|
8
8
|
count: z.number().int().describe("Number of payments to fetch. Default is 10, maximum is 100.").optional()
|
|
9
9
|
}).describe("Request model for fetching all payments with pagination and time filtering.");
|
|
10
|
-
const RazorpayFetchAllPayments_AcquirerDataSchema = z.object({ bank_transaction_id: z.string().describe("Bank transaction identifier from the payment processor.").nullable().optional() }).describe("Acquirer data containing bank/processor transaction details.");
|
|
10
|
+
const RazorpayFetchAllPayments_AcquirerDataSchema = z.object({ bank_transaction_id: z.string().describe("Bank transaction identifier from the payment processor.").nullable().optional() }).passthrough().describe("Acquirer data containing bank/processor transaction details.");
|
|
11
11
|
const RazorpayFetchAllPayments_PaymentItemSchema = z.object({
|
|
12
|
-
id: z.string().describe("Unique identifier for the payment."),
|
|
12
|
+
id: z.string().describe("Unique identifier for the payment.").nullable(),
|
|
13
13
|
fee: z.number().int().describe("Transaction fee charged in smallest currency unit.").nullable().optional(),
|
|
14
14
|
tax: z.number().int().describe("Tax component of the transaction fee in smallest currency unit.").nullable().optional(),
|
|
15
15
|
vpa: z.string().describe("Virtual Payment Address for UPI payments.").nullable().optional(),
|
|
16
16
|
bank: z.string().describe("Bank code for netbanking payments.").nullable().optional(),
|
|
17
17
|
email: z.string().describe("Customer email address.").nullable().optional(),
|
|
18
18
|
notes: z.record(z.string(), z.unknown()).describe("Custom key-value metadata associated with the payment.").nullable().optional(),
|
|
19
|
-
amount: z.number().int().describe("Payment amount in smallest currency unit (paise for INR, cents for USD)."),
|
|
20
|
-
entity: z.string().describe("String representing the object type. Always 'payment'."),
|
|
21
|
-
method: z.string().describe("Payment method used. Values: card, netbanking, wallet, emi, upi, cardless_emi, paylater, bank_transfer, offline, qr_code, emandate, nach, recurring, third_party, cheque, dd."),
|
|
22
|
-
status: z.string().describe("Payment status. Values: created, authorized, captured, refunded, failed, pending."),
|
|
19
|
+
amount: z.number().int().describe("Payment amount in smallest currency unit (paise for INR, cents for USD).").nullable(),
|
|
20
|
+
entity: z.string().describe("String representing the object type. Always 'payment'.").nullable(),
|
|
21
|
+
method: z.string().describe("Payment method used. Values: card, netbanking, wallet, emi, upi, cardless_emi, paylater, bank_transfer, offline, qr_code, emandate, nach, recurring, third_party, cheque, dd.").nullable(),
|
|
22
|
+
status: z.string().describe("Payment status. Values: created, authorized, captured, refunded, failed, pending.").nullable(),
|
|
23
23
|
wallet: z.string().describe("Wallet provider name for wallet payments.").nullable().optional(),
|
|
24
24
|
card_id: z.string().describe("Card identifier for card payments.").nullable().optional(),
|
|
25
25
|
contact: z.string().describe("Customer phone number.").nullable().optional(),
|
|
26
|
-
captured: z.boolean().describe("Indicates if the payment has been captured."),
|
|
27
|
-
currency: z.string().describe("Three-letter ISO currency code (e.g., INR, USD)."),
|
|
26
|
+
captured: z.boolean().describe("Indicates if the payment has been captured.").nullable(),
|
|
27
|
+
currency: z.string().describe("Three-letter ISO currency code (e.g., INR, USD).").nullable(),
|
|
28
28
|
order_id: z.string().describe("Identifier of the order associated with this payment.").nullable().optional(),
|
|
29
|
-
created_at: z.number().int().describe("Unix timestamp (in seconds) of payment creation."),
|
|
29
|
+
created_at: z.number().int().describe("Unix timestamp (in seconds) of payment creation.").nullable(),
|
|
30
30
|
error_code: z.string().describe("Error code for failed payments.").nullable().optional(),
|
|
31
31
|
error_step: z.string().describe("Step at which the error occurred.").nullable().optional(),
|
|
32
32
|
invoice_id: z.string().describe("Identifier of the invoice linked to this payment.").nullable().optional(),
|
|
@@ -35,21 +35,21 @@ const RazorpayFetchAllPayments_PaymentItemSchema = z.object({
|
|
|
35
35
|
error_reason: z.string().describe("Reason for the payment failure.").nullable().optional(),
|
|
36
36
|
error_source: z.string().describe("Source of the error (customer, business, or bank).").nullable().optional(),
|
|
37
37
|
acquirer_data: RazorpayFetchAllPayments_AcquirerDataSchema.nullable().optional(),
|
|
38
|
-
international: z.boolean().describe("Indicates if this is an international (cross-border) payment."),
|
|
38
|
+
international: z.boolean().describe("Indicates if this is an international (cross-border) payment.").nullable(),
|
|
39
39
|
refund_status: z.string().describe("Refund status. Values: null, partial, full.").nullable().optional(),
|
|
40
|
-
amount_refunded: z.number().int().describe("Amount refunded in smallest currency unit."),
|
|
40
|
+
amount_refunded: z.number().int().describe("Amount refunded in smallest currency unit.").nullable(),
|
|
41
41
|
error_description: z.string().describe("Human-readable error message for failed payments.").nullable().optional()
|
|
42
|
-
}).describe("Detailed model representing a single payment object from Razorpay.");
|
|
42
|
+
}).passthrough().describe("Detailed model representing a single payment object from Razorpay.");
|
|
43
43
|
const razorpayFetchAllPayments = action("RAZORPAY_FETCH_ALL_PAYMENTS", {
|
|
44
44
|
slug: "razorpay-fetch-all-payments",
|
|
45
45
|
name: "Fetch All Payments",
|
|
46
46
|
description: "Tool to retrieve all payments from your Razorpay account with pagination and time filtering support. Use when you need to list payments, audit transactions, or analyze payment history. Returns payments in descending order by creation time (newest first).",
|
|
47
47
|
input: RazorpayFetchAllPaymentsInput,
|
|
48
48
|
output: z.object({
|
|
49
|
-
count: z.number().int().describe("Number of payment items returned in this response."),
|
|
49
|
+
count: z.number().int().describe("Number of payment items returned in this response.").nullable(),
|
|
50
50
|
items: z.array(RazorpayFetchAllPayments_PaymentItemSchema).describe("Array of payment objects, with the most recent appearing first."),
|
|
51
|
-
entity: z.string().describe("String representing the collection type. Always 'collection'.")
|
|
52
|
-
}).describe("Response model containing a collection of payment objects with pagination metadata.")
|
|
51
|
+
entity: z.string().describe("String representing the collection type. Always 'collection'.").nullable()
|
|
52
|
+
}).passthrough().describe("Response model containing a collection of payment objects with pagination metadata.")
|
|
53
53
|
});
|
|
54
54
|
//#endregion
|
|
55
55
|
export { razorpayFetchAllPayments };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-all-payments.mjs","names":[],"sources":["../../src/actions/fetch-all-payments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayFetchAllPaymentsInput
|
|
1
|
+
{"version":3,"file":"fetch-all-payments.mjs","names":[],"sources":["../../src/actions/fetch-all-payments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayFetchAllPaymentsInput = z.object({\n to: z.number().int().describe(\"Unix timestamp (in seconds) until which to fetch payments. Filters payments created on or before this timestamp.\").optional(),\n from: z.number().int().describe(\"Unix timestamp (in seconds) from which to fetch payments. Filters payments created on or after this timestamp.\").optional(),\n skip: z.number().int().describe(\"Number of payments to skip for pagination. Use this to paginate through results.\").optional(),\n count: z.number().int().describe(\"Number of payments to fetch. Default is 10, maximum is 100.\").optional(),\n}).describe(\"Request model for fetching all payments with pagination and time filtering.\");\nconst RazorpayFetchAllPayments_AcquirerDataSchema = z.object({\n bank_transaction_id: z.string().describe(\"Bank transaction identifier from the payment processor.\").nullable().optional(),\n}).passthrough().describe(\"Acquirer data containing bank/processor transaction details.\");\nconst RazorpayFetchAllPayments_PaymentItemSchema = z.object({\n id: z.string().describe(\"Unique identifier for the payment.\").nullable(),\n fee: z.number().int().describe(\"Transaction fee charged in smallest currency unit.\").nullable().optional(),\n tax: z.number().int().describe(\"Tax component of the transaction fee in smallest currency unit.\").nullable().optional(),\n vpa: z.string().describe(\"Virtual Payment Address for UPI payments.\").nullable().optional(),\n bank: z.string().describe(\"Bank code for netbanking payments.\").nullable().optional(),\n email: z.string().describe(\"Customer email address.\").nullable().optional(),\n notes: z.record(z.string(), z.unknown()).describe(\"Custom key-value metadata associated with the payment.\").nullable().optional(),\n amount: z.number().int().describe(\"Payment amount in smallest currency unit (paise for INR, cents for USD).\").nullable(),\n entity: z.string().describe(\"String representing the object type. Always 'payment'.\").nullable(),\n method: z.string().describe(\"Payment method used. Values: card, netbanking, wallet, emi, upi, cardless_emi, paylater, bank_transfer, offline, qr_code, emandate, nach, recurring, third_party, cheque, dd.\").nullable(),\n status: z.string().describe(\"Payment status. Values: created, authorized, captured, refunded, failed, pending.\").nullable(),\n wallet: z.string().describe(\"Wallet provider name for wallet payments.\").nullable().optional(),\n card_id: z.string().describe(\"Card identifier for card payments.\").nullable().optional(),\n contact: z.string().describe(\"Customer phone number.\").nullable().optional(),\n captured: z.boolean().describe(\"Indicates if the payment has been captured.\").nullable(),\n currency: z.string().describe(\"Three-letter ISO currency code (e.g., INR, USD).\").nullable(),\n order_id: z.string().describe(\"Identifier of the order associated with this payment.\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp (in seconds) of payment creation.\").nullable(),\n error_code: z.string().describe(\"Error code for failed payments.\").nullable().optional(),\n error_step: z.string().describe(\"Step at which the error occurred.\").nullable().optional(),\n invoice_id: z.string().describe(\"Identifier of the invoice linked to this payment.\").nullable().optional(),\n customer_id: z.string().describe(\"Identifier of the customer associated with this payment.\").nullable().optional(),\n description: z.string().describe(\"Description provided during payment creation.\").nullable().optional(),\n error_reason: z.string().describe(\"Reason for the payment failure.\").nullable().optional(),\n error_source: z.string().describe(\"Source of the error (customer, business, or bank).\").nullable().optional(),\n acquirer_data: RazorpayFetchAllPayments_AcquirerDataSchema.nullable().optional(),\n international: z.boolean().describe(\"Indicates if this is an international (cross-border) payment.\").nullable(),\n refund_status: z.string().describe(\"Refund status. Values: null, partial, full.\").nullable().optional(),\n amount_refunded: z.number().int().describe(\"Amount refunded in smallest currency unit.\").nullable(),\n error_description: z.string().describe(\"Human-readable error message for failed payments.\").nullable().optional(),\n}).passthrough().describe(\"Detailed model representing a single payment object from Razorpay.\");\nexport const RazorpayFetchAllPaymentsOutput = z.object({\n count: z.number().int().describe(\"Number of payment items returned in this response.\").nullable(),\n items: z.array(RazorpayFetchAllPayments_PaymentItemSchema).describe(\"Array of payment objects, with the most recent appearing first.\"),\n entity: z.string().describe(\"String representing the collection type. Always 'collection'.\").nullable(),\n}).passthrough().describe(\"Response model containing a collection of payment objects with pagination metadata.\");\n\nexport const razorpayFetchAllPayments = action(\"RAZORPAY_FETCH_ALL_PAYMENTS\", {\n slug: \"razorpay-fetch-all-payments\",\n name: \"Fetch All Payments\",\n description: \"Tool to retrieve all payments from your Razorpay account with pagination and time filtering support. Use when you need to list payments, audit transactions, or analyze payment history. Returns payments in descending order by creation time (newest first).\",\n input: RazorpayFetchAllPaymentsInput,\n output: RazorpayFetchAllPaymentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO;CACpD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;CAC3J,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS;CAC3J,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CAC7H,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,SAAS,6EAA6E;AACzF,MAAM,8CAA8C,EAAE,OAAO,EAC3D,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC1H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8DAA8D;AACxF,MAAM,6CAA6C,EAAE,OAAO;CAC1D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACvE,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAA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9F,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAX4C,EAAE,OAAO;EACrD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;EAChG,OAAO,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,iEAAiE;EACrI,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACxG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qFAOhB;AACV,CAAC"}
|
|
@@ -8,7 +8,7 @@ const RazorpayFetchAllRefundsForAPaymentInput = zod.z.object({
|
|
|
8
8
|
to_timestamp: zod.z.number().int().describe("Unix timestamp before which the refunds were created. Filter refunds created on or before this time.").optional(),
|
|
9
9
|
from_timestamp: zod.z.number().int().describe("Unix timestamp after which the refunds were created. Filter refunds created on or after this time.").optional()
|
|
10
10
|
}).describe("Request parameters for fetching all refunds for a specific payment.");
|
|
11
|
-
const RazorpayFetchAllRefundsForAPayment_AcquirerDataSchema = zod.z.object({ arn: zod.z.string().describe("Acquirer Reference Number (ARN) from the bank.").nullable().optional() }).describe("Acquirer data for a refund.");
|
|
11
|
+
const RazorpayFetchAllRefundsForAPayment_AcquirerDataSchema = zod.z.object({ arn: zod.z.string().describe("Acquirer Reference Number (ARN) from the bank.").nullable().optional() }).passthrough().describe("Acquirer data for a refund.");
|
|
12
12
|
const RazorpayFetchAllRefundsForAPayment_RefundSchema = zod.z.object({
|
|
13
13
|
id: zod.z.string().describe("Unique identifier for the refund.").nullable().optional(),
|
|
14
14
|
notes: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Key-value pairs for custom data associated with the refund.").nullable().optional(),
|
|
@@ -23,12 +23,12 @@ const RazorpayFetchAllRefundsForAPayment_RefundSchema = zod.z.object({
|
|
|
23
23
|
acquirer_data: RazorpayFetchAllRefundsForAPayment_AcquirerDataSchema.nullable().optional(),
|
|
24
24
|
speed_processed: zod.z.string().describe("Actual speed at which the refund was processed (e.g., 'normal', 'instant', 'optimum').").nullable().optional(),
|
|
25
25
|
speed_requested: zod.z.string().describe("Speed requested for the refund processing (e.g., 'normal', 'instant', 'optimum').").nullable().optional()
|
|
26
|
-
}).describe("Represents an individual refund in the Razorpay system.");
|
|
26
|
+
}).passthrough().describe("Represents an individual refund in the Razorpay system.");
|
|
27
27
|
const RazorpayFetchAllRefundsForAPaymentOutput = zod.z.object({
|
|
28
28
|
count: zod.z.number().int().describe("Number of refunds returned in this response.").nullable().optional(),
|
|
29
29
|
items: zod.z.array(RazorpayFetchAllRefundsForAPayment_RefundSchema).describe("Array of refund objects for the specified payment.").nullable().optional(),
|
|
30
30
|
entity: zod.z.string().describe("Entity type, typically 'collection' for list responses.").nullable().optional()
|
|
31
|
-
}).describe("Response schema for fetching all refunds for a specific payment.");
|
|
31
|
+
}).passthrough().describe("Response schema for fetching all refunds for a specific payment.");
|
|
32
32
|
const razorpayFetchAllRefundsForAPayment = require_action.action("RAZORPAY_FETCH_ALL_REFUNDS_FOR_A_PAYMENT", {
|
|
33
33
|
slug: "razorpay-fetch-all-refunds-for-a-payment",
|
|
34
34
|
name: "Fetch all refunds for a payment",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-all-refunds-for-a-payment.cjs","names":["z","action"],"sources":["../../src/actions/fetch-all-refunds-for-a-payment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayFetchAllRefundsForAPaymentInput
|
|
1
|
+
{"version":3,"file":"fetch-all-refunds-for-a-payment.cjs","names":["z","action"],"sources":["../../src/actions/fetch-all-refunds-for-a-payment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayFetchAllRefundsForAPaymentInput = z.object({\n skip: z.number().int().describe(\"Number of refunds to skip for pagination. Use with count to navigate through pages.\").optional(),\n count: z.number().int().describe(\"Number of refunds to fetch. Default is 10.\").optional(),\n payment_id: z.string().describe(\"The unique identifier of the payment for which to fetch refunds.\"),\n to_timestamp: z.number().int().describe(\"Unix timestamp before which the refunds were created. Filter refunds created on or before this time.\").optional(),\n from_timestamp: z.number().int().describe(\"Unix timestamp after which the refunds were created. Filter refunds created on or after this time.\").optional(),\n}).describe(\"Request parameters for fetching all refunds for a specific payment.\");\nconst RazorpayFetchAllRefundsForAPayment_AcquirerDataSchema = z.object({\n arn: z.string().describe(\"Acquirer Reference Number (ARN) from the bank.\").nullable().optional(),\n}).passthrough().describe(\"Acquirer data for a refund.\");\nconst RazorpayFetchAllRefundsForAPayment_RefundSchema = z.object({\n id: z.string().describe(\"Unique identifier for the refund.\").nullable().optional(),\n notes: z.record(z.string(), z.unknown()).describe(\"Key-value pairs for custom data associated with the refund.\").nullable().optional(),\n amount: z.number().int().describe(\"Refund amount in currency subunits (e.g., paise for INR). For example, 10000 means ₹100.00.\").nullable().optional(),\n entity: z.string().describe(\"Entity type, always 'refund' for refund objects.\").nullable().optional(),\n status: z.string().describe(\"Current status of the refund (e.g., 'processed', 'pending', 'failed').\").nullable().optional(),\n receipt: z.string().describe(\"Optional receipt identifier for the refund.\").nullable().optional(),\n batch_id: z.string().describe(\"Batch processing identifier, typically null for individual refunds.\").nullable().optional(),\n currency: z.string().describe(\"Three-letter ISO currency code (e.g., INR, USD).\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the refund was created.\").nullable().optional(),\n payment_id: z.string().describe(\"Unique identifier of the payment that was refunded.\").nullable().optional(),\n acquirer_data: RazorpayFetchAllRefundsForAPayment_AcquirerDataSchema.nullable().optional(),\n speed_processed: z.string().describe(\"Actual speed at which the refund was processed (e.g., 'normal', 'instant', 'optimum').\").nullable().optional(),\n speed_requested: z.string().describe(\"Speed requested for the refund processing (e.g., 'normal', 'instant', 'optimum').\").nullable().optional(),\n}).passthrough().describe(\"Represents an individual refund in the Razorpay system.\");\nexport const RazorpayFetchAllRefundsForAPaymentOutput = z.object({\n count: z.number().int().describe(\"Number of refunds returned in this response.\").nullable().optional(),\n items: z.array(RazorpayFetchAllRefundsForAPayment_RefundSchema).describe(\"Array of refund objects for the specified payment.\").nullable().optional(),\n entity: z.string().describe(\"Entity type, typically 'collection' for list responses.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for fetching all refunds for a specific payment.\");\n\nexport const razorpayFetchAllRefundsForAPayment = action(\"RAZORPAY_FETCH_ALL_REFUNDS_FOR_A_PAYMENT\", {\n slug: \"razorpay-fetch-all-refunds-for-a-payment\",\n name: \"Fetch all refunds for a payment\",\n description: \"Tool to retrieve all refunds for a specific payment using the Razorpay API. Use when you need to check refund status, track refund history, or list all refunds associated with a particular payment.\",\n input: RazorpayFetchAllRefundsForAPaymentInput,\n output: RazorpayFetchAllRefundsForAPaymentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0CAA0CA,IAAAA,EAAE,OAAO;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CAChI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACxF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;CAClG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CACzJ,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;AAC3J,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAM,wDAAwDA,IAAAA,EAAE,OAAO,EACrE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACjG,CAAC,CAAC,CAAC,YAAY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AAS,CAAC,CAAC,SAAS;CACnJ,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AACnF,MAAa,2CAA2CA,IAAAA,EAAE,OAAO;CAC/D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,OAAOA,IAAAA,EAAE,MAAM,+CAA+C,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnJ,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kEAAkE;AAE5F,MAAa,qCAAqCC,eAAAA,OAAO,4CAA4C;CACnG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,41 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/fetch-all-refunds-for-a-payment.d.ts
|
|
4
|
-
declare const RazorpayFetchAllRefundsForAPaymentInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RazorpayFetchAllRefundsForAPaymentInput: z.ZodObject<{
|
|
5
|
+
skip: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
payment_id: z.ZodString;
|
|
8
|
+
to_timestamp: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
from_timestamp: z.ZodOptional<z.ZodNumber>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
declare const RazorpayFetchAllRefundsForAPaymentOutput: z.ZodObject<{
|
|
12
|
+
count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
13
|
+
items: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
14
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
notes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
16
|
+
amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
17
|
+
entity: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
receipt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
batch_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
|
+
payment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
acquirer_data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
25
|
+
arn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
}, z.core.$loose>>>;
|
|
27
|
+
speed_processed: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
speed_requested: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
}, z.core.$loose>>>>;
|
|
30
|
+
entity: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
+
}, z.core.$loose>;
|
|
32
|
+
declare const razorpayFetchAllRefundsForAPayment: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
33
|
+
payment_id: string;
|
|
34
|
+
skip?: number | undefined;
|
|
35
|
+
count?: number | undefined;
|
|
36
|
+
to_timestamp?: number | undefined;
|
|
37
|
+
from_timestamp?: number | undefined;
|
|
38
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
39
|
//#endregion
|
|
8
40
|
export { razorpayFetchAllRefundsForAPayment };
|
|
9
41
|
//# sourceMappingURL=fetch-all-refunds-for-a-payment.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-all-refunds-for-a-payment.d.cts","names":[],"sources":["../../src/actions/fetch-all-refunds-for-a-payment.ts"],"mappings":";;;cAIa,uCAAA,
|
|
1
|
+
{"version":3,"file":"fetch-all-refunds-for-a-payment.d.cts","names":[],"sources":["../../src/actions/fetch-all-refunds-for-a-payment.ts"],"mappings":";;;cAIa,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;cAyBvC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAMxC,kCAAA,gCAAkC,wBAAA"}
|
|
@@ -1,9 +1,41 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/fetch-all-refunds-for-a-payment.d.ts
|
|
4
|
-
declare const RazorpayFetchAllRefundsForAPaymentInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RazorpayFetchAllRefundsForAPaymentInput: z.ZodObject<{
|
|
5
|
+
skip: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
payment_id: z.ZodString;
|
|
8
|
+
to_timestamp: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
from_timestamp: z.ZodOptional<z.ZodNumber>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
declare const RazorpayFetchAllRefundsForAPaymentOutput: z.ZodObject<{
|
|
12
|
+
count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
13
|
+
items: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
14
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
notes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
16
|
+
amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
17
|
+
entity: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
receipt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
batch_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
|
+
payment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
acquirer_data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
25
|
+
arn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
}, z.core.$loose>>>;
|
|
27
|
+
speed_processed: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
speed_requested: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
}, z.core.$loose>>>>;
|
|
30
|
+
entity: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
+
}, z.core.$loose>;
|
|
32
|
+
declare const razorpayFetchAllRefundsForAPayment: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
33
|
+
payment_id: string;
|
|
34
|
+
skip?: number | undefined;
|
|
35
|
+
count?: number | undefined;
|
|
36
|
+
to_timestamp?: number | undefined;
|
|
37
|
+
from_timestamp?: number | undefined;
|
|
38
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
39
|
//#endregion
|
|
8
40
|
export { razorpayFetchAllRefundsForAPayment };
|
|
9
41
|
//# sourceMappingURL=fetch-all-refunds-for-a-payment.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-all-refunds-for-a-payment.d.mts","names":[],"sources":["../../src/actions/fetch-all-refunds-for-a-payment.ts"],"mappings":";;;cAIa,uCAAA,
|
|
1
|
+
{"version":3,"file":"fetch-all-refunds-for-a-payment.d.mts","names":[],"sources":["../../src/actions/fetch-all-refunds-for-a-payment.ts"],"mappings":";;;cAIa,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;cAyBvC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAMxC,kCAAA,gCAAkC,wBAAA"}
|
|
@@ -8,7 +8,7 @@ const RazorpayFetchAllRefundsForAPaymentInput = z.object({
|
|
|
8
8
|
to_timestamp: z.number().int().describe("Unix timestamp before which the refunds were created. Filter refunds created on or before this time.").optional(),
|
|
9
9
|
from_timestamp: z.number().int().describe("Unix timestamp after which the refunds were created. Filter refunds created on or after this time.").optional()
|
|
10
10
|
}).describe("Request parameters for fetching all refunds for a specific payment.");
|
|
11
|
-
const RazorpayFetchAllRefundsForAPayment_AcquirerDataSchema = z.object({ arn: z.string().describe("Acquirer Reference Number (ARN) from the bank.").nullable().optional() }).describe("Acquirer data for a refund.");
|
|
11
|
+
const RazorpayFetchAllRefundsForAPayment_AcquirerDataSchema = z.object({ arn: z.string().describe("Acquirer Reference Number (ARN) from the bank.").nullable().optional() }).passthrough().describe("Acquirer data for a refund.");
|
|
12
12
|
const RazorpayFetchAllRefundsForAPayment_RefundSchema = z.object({
|
|
13
13
|
id: z.string().describe("Unique identifier for the refund.").nullable().optional(),
|
|
14
14
|
notes: z.record(z.string(), z.unknown()).describe("Key-value pairs for custom data associated with the refund.").nullable().optional(),
|
|
@@ -23,7 +23,7 @@ const RazorpayFetchAllRefundsForAPayment_RefundSchema = z.object({
|
|
|
23
23
|
acquirer_data: RazorpayFetchAllRefundsForAPayment_AcquirerDataSchema.nullable().optional(),
|
|
24
24
|
speed_processed: z.string().describe("Actual speed at which the refund was processed (e.g., 'normal', 'instant', 'optimum').").nullable().optional(),
|
|
25
25
|
speed_requested: z.string().describe("Speed requested for the refund processing (e.g., 'normal', 'instant', 'optimum').").nullable().optional()
|
|
26
|
-
}).describe("Represents an individual refund in the Razorpay system.");
|
|
26
|
+
}).passthrough().describe("Represents an individual refund in the Razorpay system.");
|
|
27
27
|
const razorpayFetchAllRefundsForAPayment = action("RAZORPAY_FETCH_ALL_REFUNDS_FOR_A_PAYMENT", {
|
|
28
28
|
slug: "razorpay-fetch-all-refunds-for-a-payment",
|
|
29
29
|
name: "Fetch all refunds for a payment",
|
|
@@ -33,7 +33,7 @@ const razorpayFetchAllRefundsForAPayment = action("RAZORPAY_FETCH_ALL_REFUNDS_FO
|
|
|
33
33
|
count: z.number().int().describe("Number of refunds returned in this response.").nullable().optional(),
|
|
34
34
|
items: z.array(RazorpayFetchAllRefundsForAPayment_RefundSchema).describe("Array of refund objects for the specified payment.").nullable().optional(),
|
|
35
35
|
entity: z.string().describe("Entity type, typically 'collection' for list responses.").nullable().optional()
|
|
36
|
-
}).describe("Response schema for fetching all refunds for a specific payment.")
|
|
36
|
+
}).passthrough().describe("Response schema for fetching all refunds for a specific payment.")
|
|
37
37
|
});
|
|
38
38
|
//#endregion
|
|
39
39
|
export { razorpayFetchAllRefundsForAPayment };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-all-refunds-for-a-payment.mjs","names":[],"sources":["../../src/actions/fetch-all-refunds-for-a-payment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayFetchAllRefundsForAPaymentInput
|
|
1
|
+
{"version":3,"file":"fetch-all-refunds-for-a-payment.mjs","names":[],"sources":["../../src/actions/fetch-all-refunds-for-a-payment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayFetchAllRefundsForAPaymentInput = z.object({\n skip: z.number().int().describe(\"Number of refunds to skip for pagination. Use with count to navigate through pages.\").optional(),\n count: z.number().int().describe(\"Number of refunds to fetch. Default is 10.\").optional(),\n payment_id: z.string().describe(\"The unique identifier of the payment for which to fetch refunds.\"),\n to_timestamp: z.number().int().describe(\"Unix timestamp before which the refunds were created. Filter refunds created on or before this time.\").optional(),\n from_timestamp: z.number().int().describe(\"Unix timestamp after which the refunds were created. Filter refunds created on or after this time.\").optional(),\n}).describe(\"Request parameters for fetching all refunds for a specific payment.\");\nconst RazorpayFetchAllRefundsForAPayment_AcquirerDataSchema = z.object({\n arn: z.string().describe(\"Acquirer Reference Number (ARN) from the bank.\").nullable().optional(),\n}).passthrough().describe(\"Acquirer data for a refund.\");\nconst RazorpayFetchAllRefundsForAPayment_RefundSchema = z.object({\n id: z.string().describe(\"Unique identifier for the refund.\").nullable().optional(),\n notes: z.record(z.string(), z.unknown()).describe(\"Key-value pairs for custom data associated with the refund.\").nullable().optional(),\n amount: z.number().int().describe(\"Refund amount in currency subunits (e.g., paise for INR). For example, 10000 means ₹100.00.\").nullable().optional(),\n entity: z.string().describe(\"Entity type, always 'refund' for refund objects.\").nullable().optional(),\n status: z.string().describe(\"Current status of the refund (e.g., 'processed', 'pending', 'failed').\").nullable().optional(),\n receipt: z.string().describe(\"Optional receipt identifier for the refund.\").nullable().optional(),\n batch_id: z.string().describe(\"Batch processing identifier, typically null for individual refunds.\").nullable().optional(),\n currency: z.string().describe(\"Three-letter ISO currency code (e.g., INR, USD).\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the refund was created.\").nullable().optional(),\n payment_id: z.string().describe(\"Unique identifier of the payment that was refunded.\").nullable().optional(),\n acquirer_data: RazorpayFetchAllRefundsForAPayment_AcquirerDataSchema.nullable().optional(),\n speed_processed: z.string().describe(\"Actual speed at which the refund was processed (e.g., 'normal', 'instant', 'optimum').\").nullable().optional(),\n speed_requested: z.string().describe(\"Speed requested for the refund processing (e.g., 'normal', 'instant', 'optimum').\").nullable().optional(),\n}).passthrough().describe(\"Represents an individual refund in the Razorpay system.\");\nexport const RazorpayFetchAllRefundsForAPaymentOutput = z.object({\n count: z.number().int().describe(\"Number of refunds returned in this response.\").nullable().optional(),\n items: z.array(RazorpayFetchAllRefundsForAPayment_RefundSchema).describe(\"Array of refund objects for the specified payment.\").nullable().optional(),\n entity: z.string().describe(\"Entity type, typically 'collection' for list responses.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for fetching all refunds for a specific payment.\");\n\nexport const razorpayFetchAllRefundsForAPayment = action(\"RAZORPAY_FETCH_ALL_REFUNDS_FOR_A_PAYMENT\", {\n slug: \"razorpay-fetch-all-refunds-for-a-payment\",\n name: \"Fetch all refunds for a payment\",\n description: \"Tool to retrieve all refunds for a specific payment using the Razorpay API. Use when you need to check refund status, track refund history, or list all refunds associated with a particular payment.\",\n input: RazorpayFetchAllRefundsForAPaymentInput,\n output: RazorpayFetchAllRefundsForAPaymentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0CAA0C,EAAE,OAAO;CAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CAChI,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACxF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;CAClG,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CACzJ,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;AAC3J,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAM,wDAAwD,EAAE,OAAO,EACrE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6BAA6B;AACvD,MAAM,kDAAkD,EAA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