@keystrokehq/razorpay 0.1.2 → 0.1.4
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/actions/cancel-invoice.cjs +6 -6
- package/dist/actions/cancel-invoice.cjs.map +1 -1
- package/dist/actions/cancel-invoice.d.cts +7 -7
- package/dist/actions/cancel-invoice.d.mts +7 -7
- package/dist/actions/cancel-invoice.mjs +6 -6
- package/dist/actions/cancel-invoice.mjs.map +1 -1
- package/dist/actions/cancel-payment-link.cjs +5 -5
- package/dist/actions/cancel-payment-link.cjs.map +1 -1
- package/dist/actions/cancel-payment-link.d.cts +5 -5
- package/dist/actions/cancel-payment-link.d.mts +5 -5
- package/dist/actions/cancel-payment-link.mjs +5 -5
- package/dist/actions/cancel-payment-link.mjs.map +1 -1
- package/dist/actions/create-an-order.cjs +3 -3
- package/dist/actions/create-an-order.cjs.map +1 -1
- package/dist/actions/create-an-order.d.cts +4 -4
- package/dist/actions/create-an-order.d.mts +4 -4
- package/dist/actions/create-an-order.mjs +3 -3
- package/dist/actions/create-an-order.mjs.map +1 -1
- package/dist/actions/create-contact.cjs +3 -3
- package/dist/actions/create-contact.cjs.map +1 -1
- package/dist/actions/create-contact.d.cts +4 -4
- package/dist/actions/create-contact.d.mts +4 -4
- package/dist/actions/create-contact.mjs +3 -3
- package/dist/actions/create-contact.mjs.map +1 -1
- package/dist/actions/create-customer.cjs +3 -3
- package/dist/actions/create-customer.cjs.map +1 -1
- package/dist/actions/create-customer.d.cts +4 -4
- package/dist/actions/create-customer.d.mts +4 -4
- package/dist/actions/create-customer.mjs +3 -3
- package/dist/actions/create-customer.mjs.map +1 -1
- package/dist/actions/create-invoice.cjs +9 -9
- package/dist/actions/create-invoice.cjs.map +1 -1
- package/dist/actions/create-invoice.d.cts +13 -12
- package/dist/actions/create-invoice.d.cts.map +1 -1
- package/dist/actions/create-invoice.d.mts +13 -12
- package/dist/actions/create-invoice.d.mts.map +1 -1
- package/dist/actions/create-invoice.mjs +9 -9
- package/dist/actions/create-invoice.mjs.map +1 -1
- package/dist/actions/create-item.cjs +1 -1
- package/dist/actions/create-item.cjs.map +1 -1
- package/dist/actions/create-item.d.cts +1 -1
- package/dist/actions/create-item.d.mts +1 -1
- package/dist/actions/create-item.mjs +1 -1
- package/dist/actions/create-item.mjs.map +1 -1
- package/dist/actions/create-payment-link.cjs +4 -4
- package/dist/actions/create-payment-link.cjs.map +1 -1
- package/dist/actions/create-payment-link.d.cts +5 -5
- package/dist/actions/create-payment-link.d.mts +5 -5
- package/dist/actions/create-payment-link.mjs +4 -4
- 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 +1 -1
- package/dist/actions/delete-invoice.d.mts +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 +1 -1
- package/dist/actions/delete-item.d.mts +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 +6 -6
- package/dist/actions/fetch-a-payment-link.d.mts +6 -6
- 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 +3 -3
- package/dist/actions/fetch-all-customers.cjs.map +1 -1
- package/dist/actions/fetch-all-customers.d.cts +3 -3
- package/dist/actions/fetch-all-customers.d.mts +3 -3
- package/dist/actions/fetch-all-customers.mjs +3 -3
- package/dist/actions/fetch-all-customers.mjs.map +1 -1
- package/dist/actions/fetch-all-invoices.cjs +7 -7
- package/dist/actions/fetch-all-invoices.cjs.map +1 -1
- package/dist/actions/fetch-all-invoices.d.cts +8 -8
- package/dist/actions/fetch-all-invoices.d.mts +8 -8
- package/dist/actions/fetch-all-invoices.mjs +7 -7
- package/dist/actions/fetch-all-invoices.mjs.map +1 -1
- package/dist/actions/fetch-all-payment-links.cjs +4 -4
- package/dist/actions/fetch-all-payment-links.cjs.map +1 -1
- package/dist/actions/fetch-all-payment-links.d.cts +4 -4
- package/dist/actions/fetch-all-payment-links.d.mts +4 -4
- package/dist/actions/fetch-all-payment-links.mjs +4 -4
- package/dist/actions/fetch-all-payment-links.mjs.map +1 -1
- package/dist/actions/fetch-all-payments.cjs +3 -3
- package/dist/actions/fetch-all-payments.cjs.map +1 -1
- package/dist/actions/fetch-all-payments.d.cts +3 -3
- package/dist/actions/fetch-all-payments.d.mts +3 -3
- package/dist/actions/fetch-all-payments.mjs +3 -3
- 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 +3 -3
- package/dist/actions/fetch-all-refunds-for-a-payment.d.mts +3 -3
- 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 +6 -6
- package/dist/actions/fetch-invoice-by-id.cjs.map +1 -1
- package/dist/actions/fetch-invoice-by-id.d.cts +7 -7
- package/dist/actions/fetch-invoice-by-id.d.mts +7 -7
- package/dist/actions/fetch-invoice-by-id.mjs +6 -6
- package/dist/actions/fetch-invoice-by-id.mjs.map +1 -1
- package/dist/actions/fetch-orders-by-id.cjs +2 -2
- package/dist/actions/fetch-orders-by-id.cjs.map +1 -1
- package/dist/actions/fetch-orders-by-id.d.cts +2 -2
- package/dist/actions/fetch-orders-by-id.d.mts +2 -2
- package/dist/actions/fetch-orders-by-id.mjs +2 -2
- package/dist/actions/fetch-orders-by-id.mjs.map +1 -1
- package/dist/actions/fetch-orders.cjs +3 -3
- package/dist/actions/fetch-orders.cjs.map +1 -1
- package/dist/actions/fetch-orders.d.cts +3 -3
- package/dist/actions/fetch-orders.d.mts +3 -3
- package/dist/actions/fetch-orders.mjs +3 -3
- package/dist/actions/fetch-orders.mjs.map +1 -1
- package/dist/actions/fetch-payments-by-order.cjs +4 -4
- package/dist/actions/fetch-payments-by-order.cjs.map +1 -1
- package/dist/actions/fetch-payments-by-order.d.cts +4 -4
- package/dist/actions/fetch-payments-by-order.d.mts +4 -4
- package/dist/actions/fetch-payments-by-order.mjs +4 -4
- 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 +3 -3
- package/dist/actions/fetch-refunds.d.mts +3 -3
- package/dist/actions/fetch-refunds.mjs +3 -3
- package/dist/actions/fetch-refunds.mjs.map +1 -1
- package/dist/actions/get-contact.cjs +2 -2
- package/dist/actions/get-contact.cjs.map +1 -1
- package/dist/actions/get-contact.d.cts +2 -2
- package/dist/actions/get-contact.d.mts +2 -2
- package/dist/actions/get-contact.mjs +2 -2
- package/dist/actions/get-contact.mjs.map +1 -1
- package/dist/actions/get-customer.cjs +2 -2
- package/dist/actions/get-customer.cjs.map +1 -1
- package/dist/actions/get-customer.d.cts +2 -2
- package/dist/actions/get-customer.d.mts +2 -2
- package/dist/actions/get-customer.mjs +2 -2
- package/dist/actions/get-customer.mjs.map +1 -1
- package/dist/actions/get-fund-account.cjs +5 -5
- package/dist/actions/get-fund-account.cjs.map +1 -1
- package/dist/actions/get-fund-account.d.cts +5 -5
- package/dist/actions/get-fund-account.d.mts +5 -5
- package/dist/actions/get-fund-account.mjs +5 -5
- package/dist/actions/get-fund-account.mjs.map +1 -1
- package/dist/actions/get-item.cjs +1 -1
- package/dist/actions/get-item.cjs.map +1 -1
- package/dist/actions/get-item.d.cts +1 -1
- package/dist/actions/get-item.d.mts +1 -1
- package/dist/actions/get-item.mjs +1 -1
- 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 +2 -2
- package/dist/actions/get-settlement-recon.d.mts +2 -2
- 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 +2 -2
- package/dist/actions/get-transfer-reversals.d.mts +2 -2
- 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 +6 -6
- package/dist/actions/issue-an-invoice.cjs.map +1 -1
- package/dist/actions/issue-an-invoice.d.cts +7 -7
- package/dist/actions/issue-an-invoice.d.mts +7 -7
- package/dist/actions/issue-an-invoice.mjs +6 -6
- package/dist/actions/issue-an-invoice.mjs.map +1 -1
- package/dist/actions/list-customer-tokens.cjs +4 -4
- package/dist/actions/list-customer-tokens.cjs.map +1 -1
- package/dist/actions/list-customer-tokens.d.cts +4 -4
- package/dist/actions/list-customer-tokens.d.mts +4 -4
- package/dist/actions/list-customer-tokens.mjs +4 -4
- 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 +3 -3
- package/dist/actions/list-disputes.d.mts +3 -3
- 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 +5 -5
- package/dist/actions/list-fund-accounts.d.mts +5 -5
- 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 +6 -6
- package/dist/actions/list-fund-validations.d.mts +6 -6
- 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 +2 -2
- package/dist/actions/list-items.d.mts +2 -2
- package/dist/actions/list-items.mjs +2 -2
- package/dist/actions/list-items.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 +3 -3
- package/dist/actions/notify-payment-link.d.mts +3 -3
- 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 +3 -3
- package/dist/actions/send-or-resend-notification.d.mts +3 -3
- 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 +3 -3
- package/dist/actions/update-contact.cjs.map +1 -1
- package/dist/actions/update-contact.d.cts +4 -4
- package/dist/actions/update-contact.d.mts +4 -4
- package/dist/actions/update-contact.mjs +3 -3
- package/dist/actions/update-contact.mjs.map +1 -1
- package/dist/actions/update-customer.cjs +2 -2
- package/dist/actions/update-customer.cjs.map +1 -1
- package/dist/actions/update-customer.d.cts +2 -2
- package/dist/actions/update-customer.d.mts +2 -2
- package/dist/actions/update-customer.mjs +2 -2
- package/dist/actions/update-customer.mjs.map +1 -1
- package/dist/actions/update-invoice.cjs +9 -9
- package/dist/actions/update-invoice.cjs.map +1 -1
- package/dist/actions/update-invoice.d.cts +13 -12
- package/dist/actions/update-invoice.d.mts +13 -12
- package/dist/actions/update-invoice.mjs +9 -9
- package/dist/actions/update-invoice.mjs.map +1 -1
- package/dist/actions/update-item.cjs +1 -1
- package/dist/actions/update-item.cjs.map +1 -1
- package/dist/actions/update-item.d.cts +1 -1
- package/dist/actions/update-item.d.mts +1 -1
- package/dist/actions/update-item.mjs +1 -1
- package/dist/actions/update-item.mjs.map +1 -1
- package/dist/actions/update-order.cjs +3 -3
- package/dist/actions/update-order.cjs.map +1 -1
- package/dist/actions/update-order.d.cts +4 -4
- package/dist/actions/update-order.d.mts +4 -4
- package/dist/actions/update-order.mjs +3 -3
- package/dist/actions/update-order.mjs.map +1 -1
- package/dist/actions/update-payment-link.cjs +7 -7
- package/dist/actions/update-payment-link.cjs.map +1 -1
- package/dist/actions/update-payment-link.d.cts +8 -8
- package/dist/actions/update-payment-link.d.mts +8 -8
- package/dist/actions/update-payment-link.mjs +7 -7
- package/dist/actions/update-payment-link.mjs.map +1 -1
- package/dist/catalog.cjs +2 -2
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +2 -2
- package/dist/catalog.d.mts +2 -2
- package/dist/catalog.mjs +2 -2
- package/dist/catalog.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-all-invoices.mjs","names":[],"sources":["../../src/actions/fetch-all-invoices.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayFetchAllInvoicesInput = z.object({\n to: z.number().int().describe(\"Unix timestamp (in seconds) before which the invoices were created. Use for date range filtering.\").optional(),\n from: z.number().int().describe(\"Unix timestamp (in seconds) after which the invoices were created. Use for date range filtering.\").optional(),\n skip: z.number().int().describe(\"Number of invoices to skip from the beginning of the result set. Use for pagination. Default is 0.\").optional(),\n type: z.string().describe(\"Entity type filter. Use 'invoice' to filter by invoice type.\").optional(),\n count: z.number().int().describe(\"Number of invoices to fetch per request. Default is 10 if not specified. Maximum is 100.\").optional(),\n receipt: z.string().describe(\"The unique receipt number that you entered for internal purposes. Use to filter invoices by receipt.\").optional(),\n payment_id: z.string().describe(\"The unique identifier of the payment made by the customer against the invoice. Use to filter invoices by specific payment.\").optional(),\n customer_id: z.string().describe(\"The unique identifier of the customer. Use to filter invoices for a specific customer.\").optional(),\n}).describe(\"Request model for fetching all invoices with pagination and filtering support.\");\nconst RazorpayFetchAllInvoices_TaxDetailSchema = z.object({\n name: z.string().describe(\"Tax name\").nullable().optional(),\n rate: z.number().int().describe(\"Tax rate in basis points\").nullable().optional(),\n amount: z.number().int().describe(\"Tax amount in currency subunit\").nullable().optional(),\n tax_id: z.string().describe(\"Tax ID\").nullable().optional(),\n}).describe(\"Tax detail for a line item.\");\nconst RazorpayFetchAllInvoices_LineItemSchema = z.object({\n id: z.string().describe(\"Line item ID\").nullable().optional(),\n name: z.string().describe(\"Item name\").nullable().optional(),\n type: z.string().describe(\"Line item type\").nullable().optional(),\n unit: z.string().describe(\"Unit of measurement\").nullable().optional(),\n taxes: z.array(RazorpayFetchAllInvoices_TaxDetailSchema).describe(\"List of tax details\").nullable().optional(),\n amount: z.number().int().describe(\"Item amount in currency subunit\").nullable().optional(),\n ref_id: z.string().describe(\"Reference ID for the item\").nullable().optional(),\n item_id: z.string().describe(\"Reference to item entity\").nullable().optional(),\n currency: z.string().describe(\"Currency code\").nullable().optional(),\n hsn_code: z.string().describe(\"HSN code for the item\").nullable().optional(),\n quantity: z.number().int().describe(\"Quantity of items\").nullable().optional(),\n ref_type: z.string().describe(\"Reference type\").nullable().optional(),\n sac_code: z.string().describe(\"SAC code for the item\").nullable().optional(),\n tax_rate: z.number().int().describe(\"Tax rate in basis points\").nullable().optional(),\n net_amount: z.number().int().describe(\"Net amount after tax\").nullable().optional(),\n tax_amount: z.number().int().describe(\"Tax amount\").nullable().optional(),\n description: z.string().describe(\"Item description\").nullable().optional(),\n unit_amount: z.number().int().describe(\"Unit price in currency subunit\").nullable().optional(),\n gross_amount: z.number().int().describe(\"Gross amount before tax\").nullable().optional(),\n tax_inclusive: z.boolean().describe(\"Whether tax is included in the amount\").nullable().optional(),\n taxable_amount: z.number().int().describe(\"Taxable amount\").nullable().optional(),\n}).describe(\"Individual line item in an invoice.\");\nconst RazorpayFetchAllInvoices_AddressSchema = z.object({\n city: z.string().describe(\"City\").nullable().optional(),\n line1: z.string().describe(\"Address line 1\").nullable().optional(),\n line2: z.string().describe(\"Address line 2\").nullable().optional(),\n state: z.string().describe(\"State\").nullable().optional(),\n country: z.string().describe(\"Country\").nullable().optional(),\n zipcode: z.string().describe(\"Postal/ZIP code\").nullable().optional(),\n}).describe(\"Address details for billing or shipping.\");\nconst RazorpayFetchAllInvoices_CustomerDetailsSchema = z.object({\n id: z.string().describe(\"Customer ID\").nullable().optional(),\n name: z.string().describe(\"Customer name\").nullable().optional(),\n email: z.string().describe(\"Customer email address\").nullable().optional(),\n gstin: z.string().describe(\"Customer GSTIN\").nullable().optional(),\n contact: z.string().describe(\"Customer contact number\").nullable().optional(),\n billing_address: RazorpayFetchAllInvoices_AddressSchema.nullable().optional(),\n shipping_address: RazorpayFetchAllInvoices_AddressSchema.nullable().optional(),\n}).describe(\"Customer details associated with the invoice.\");\nconst RazorpayFetchAllInvoices_InvoiceSchema = z.object({\n id: z.string().describe(\"Unique invoice identifier\").nullable(),\n date: z.number().int().describe(\"Invoice date as Unix timestamp\").nullable().optional(),\n type: z.string().describe(\"Invoice type\").nullable().optional(),\n notes: z.union([z.object({}), z.array(z.unknown())]).nullable().optional(),\n terms: z.string().describe(\"Terms and conditions\").nullable().optional(),\n amount: z.number().int().describe(\"Total invoice amount in currency subunit\").nullable().optional(),\n entity: z.string().describe(\"Entity type, always 'invoice'\").nullable(),\n status: z.string().describe(\"Invoice status (draft, issued, paid, etc.)\").nullable(),\n comment: z.string().describe(\"Comment on the invoice\").nullable().optional(),\n paid_at: z.number().int().describe(\"Unix timestamp when the invoice was paid\").nullable().optional(),\n receipt: z.string().describe(\"Internal reference number\").nullable().optional(),\n currency: z.string().describe(\"Three-letter ISO currency code\").nullable(),\n order_id: z.string().describe(\"Associated order ID\").nullable().optional(),\n expire_by: z.number().int().describe(\"Unix timestamp when the invoice expires\").nullable().optional(),\n issued_at: z.number().int().describe(\"Unix timestamp when the invoice was issued\").nullable().optional(),\n short_url: z.string().describe(\"Short URL for the invoice payment page\").nullable().optional(),\n view_less: z.boolean().describe(\"Whether to show a compact view\").nullable().optional(),\n amount_due: z.number().int().describe(\"Amount due in currency subunit\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the invoice was created\").nullable(),\n expired_at: z.number().int().describe(\"Unix timestamp when the invoice expired\").nullable().optional(),\n line_items: z.array(RazorpayFetchAllInvoices_LineItemSchema).describe(\"List of invoice line items\").nullable().optional(),\n payment_id: z.string().describe(\"Associated payment ID\").nullable().optional(),\n sms_status: z.string().describe(\"SMS notification status\").nullable().optional(),\n tax_amount: z.number().int().describe(\"Total tax amount in currency subunit\").nullable().optional(),\n amount_paid: z.number().int().describe(\"Amount paid so far in currency subunit\").nullable().optional(),\n billing_end: z.number().int().describe(\"Billing period end as Unix timestamp\").nullable().optional(),\n customer_id: z.string().describe(\"Associated customer ID\").nullable().optional(),\n description: z.string().describe(\"Invoice description\").nullable().optional(),\n cancelled_at: z.number().int().describe(\"Unix timestamp when the invoice was cancelled\").nullable().optional(),\n email_status: z.string().describe(\"Email notification status\").nullable().optional(),\n gross_amount: z.number().int().describe(\"Gross amount before tax in currency subunit\").nullable().optional(),\n billing_start: z.number().int().describe(\"Billing period start as Unix timestamp\").nullable().optional(),\n invoice_number: z.string().describe(\"Invoice number\").nullable().optional(),\n taxable_amount: z.number().int().describe(\"Taxable amount in currency subunit\").nullable().optional(),\n currency_symbol: z.string().describe(\"Currency symbol for display\").nullable().optional(),\n idempotency_key: z.string().describe(\"Idempotency key\").nullable().optional(),\n partial_payment: z.boolean().describe(\"Whether partial payments are allowed\").nullable().optional(),\n subscription_id: z.string().describe(\"Associated subscription ID\").nullable().optional(),\n customer_details: RazorpayFetchAllInvoices_CustomerDetailsSchema.nullable().optional(),\n group_taxes_discounts: z.boolean().describe(\"Whether taxes and discounts are grouped\").nullable().optional(),\n}).describe(\"Represents a single invoice object.\");\nexport const RazorpayFetchAllInvoicesOutput = z.object({\n count: z.number().int().describe(\"Number of invoices returned in this response.\").nullable(),\n items: z.array(RazorpayFetchAllInvoices_InvoiceSchema).describe(\"List of invoice objects matching the query criteria.\"),\n entity: z.string().describe(\"Type of entity returned, typically 'collection' for list responses.\").nullable(),\n}).describe(\"Response containing the list of invoices.\");\n\nexport const razorpayFetchAllInvoices = action(\"RAZORPAY_FETCH_ALL_INVOICES\", {\n slug: \"razorpay-fetch-all-invoices\",\n name: \"Fetch All Invoices\",\n description: \"Tool to fetch all invoices with pagination and filtering support. Use when you need to retrieve a list of invoices, optionally filtered by payment ID, customer ID, receipt, or date range.\",\n input: RazorpayFetchAllInvoicesInput,\n output: RazorpayFetchAllInvoicesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO;CACpD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;CAC5I,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CAC7I,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAC/I,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACnG,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CACtI,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CAC9I,YAAY,EAAE,OAAO,CA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,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,kBAAkB,+CAA+C,SAAS,CAAC,CAAC,SAAS;CACrF,uBAAuB,EAAE,QAAQ,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,SAAS,qCAAqC;AAOjD,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,+CAA+C,CAAC,CAAC,SAAS;EAC3F,OAAO,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,sDAAsD;EACtH,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC9G,CAAC,CAAC,CAAC,SAAS,2CAOF;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"fetch-all-invoices.mjs","names":[],"sources":["../../src/actions/fetch-all-invoices.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayFetchAllInvoicesInput = z.object({\n to: z.number().int().describe(\"Unix timestamp (in seconds) before which the invoices were created. Use for date range filtering.\").optional(),\n from: z.number().int().describe(\"Unix timestamp (in seconds) after which the invoices were created. Use for date range filtering.\").optional(),\n skip: z.number().int().describe(\"Number of invoices to skip from the beginning of the result set. Use for pagination. Default is 0.\").optional(),\n type: z.string().describe(\"Entity type filter. Use 'invoice' to filter by invoice type.\").optional(),\n count: z.number().int().describe(\"Number of invoices to fetch per request. Default is 10 if not specified. Maximum is 100.\").optional(),\n receipt: z.string().describe(\"The unique receipt number that you entered for internal purposes. Use to filter invoices by receipt.\").optional(),\n payment_id: z.string().describe(\"The unique identifier of the payment made by the customer against the invoice. Use to filter invoices by specific payment.\").optional(),\n customer_id: z.string().describe(\"The unique identifier of the customer. Use to filter invoices for a specific customer.\").optional(),\n}).describe(\"Request model for fetching all invoices with pagination and filtering support.\");\nconst RazorpayFetchAllInvoices_TaxDetailSchema = z.object({\n name: z.string().describe(\"Tax name\").nullable().optional(),\n rate: z.number().int().describe(\"Tax rate in basis points\").nullable().optional(),\n amount: z.number().int().describe(\"Tax amount in currency subunit\").nullable().optional(),\n tax_id: z.string().describe(\"Tax ID\").nullable().optional(),\n}).passthrough().describe(\"Tax detail for a line item.\");\nconst RazorpayFetchAllInvoices_LineItemSchema = z.object({\n id: z.string().describe(\"Line item ID\").nullable().optional(),\n name: z.string().describe(\"Item name\").nullable().optional(),\n type: z.string().describe(\"Line item type\").nullable().optional(),\n unit: z.string().describe(\"Unit of measurement\").nullable().optional(),\n taxes: z.array(RazorpayFetchAllInvoices_TaxDetailSchema).describe(\"List of tax details\").nullable().optional(),\n amount: z.number().int().describe(\"Item amount in currency subunit\").nullable().optional(),\n ref_id: z.string().describe(\"Reference ID for the item\").nullable().optional(),\n item_id: z.string().describe(\"Reference to item entity\").nullable().optional(),\n currency: z.string().describe(\"Currency code\").nullable().optional(),\n hsn_code: z.string().describe(\"HSN code for the item\").nullable().optional(),\n quantity: z.number().int().describe(\"Quantity of items\").nullable().optional(),\n ref_type: z.string().describe(\"Reference type\").nullable().optional(),\n sac_code: z.string().describe(\"SAC code for the item\").nullable().optional(),\n tax_rate: z.number().int().describe(\"Tax rate in basis points\").nullable().optional(),\n net_amount: z.number().int().describe(\"Net amount after tax\").nullable().optional(),\n tax_amount: z.number().int().describe(\"Tax amount\").nullable().optional(),\n description: z.string().describe(\"Item description\").nullable().optional(),\n unit_amount: z.number().int().describe(\"Unit price in currency subunit\").nullable().optional(),\n gross_amount: z.number().int().describe(\"Gross amount before tax\").nullable().optional(),\n tax_inclusive: z.boolean().describe(\"Whether tax is included in the amount\").nullable().optional(),\n taxable_amount: z.number().int().describe(\"Taxable amount\").nullable().optional(),\n}).passthrough().describe(\"Individual line item in an invoice.\");\nconst RazorpayFetchAllInvoices_AddressSchema = z.object({\n city: z.string().describe(\"City\").nullable().optional(),\n line1: z.string().describe(\"Address line 1\").nullable().optional(),\n line2: z.string().describe(\"Address line 2\").nullable().optional(),\n state: z.string().describe(\"State\").nullable().optional(),\n country: z.string().describe(\"Country\").nullable().optional(),\n zipcode: z.string().describe(\"Postal/ZIP code\").nullable().optional(),\n}).passthrough().describe(\"Address details for billing or shipping.\");\nconst RazorpayFetchAllInvoices_CustomerDetailsSchema = z.object({\n id: z.string().describe(\"Customer ID\").nullable().optional(),\n name: z.string().describe(\"Customer name\").nullable().optional(),\n email: z.string().describe(\"Customer email address\").nullable().optional(),\n gstin: z.string().describe(\"Customer GSTIN\").nullable().optional(),\n contact: z.string().describe(\"Customer contact number\").nullable().optional(),\n billing_address: RazorpayFetchAllInvoices_AddressSchema.nullable().optional(),\n shipping_address: RazorpayFetchAllInvoices_AddressSchema.nullable().optional(),\n}).passthrough().describe(\"Customer details associated with the invoice.\");\nconst RazorpayFetchAllInvoices_InvoiceSchema = z.object({\n id: z.string().describe(\"Unique invoice identifier\").nullable(),\n date: z.number().int().describe(\"Invoice date as Unix timestamp\").nullable().optional(),\n type: z.string().describe(\"Invoice type\").nullable().optional(),\n notes: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]).nullable().optional(),\n terms: z.string().describe(\"Terms and conditions\").nullable().optional(),\n amount: z.number().int().describe(\"Total invoice amount in currency subunit\").nullable().optional(),\n entity: z.string().describe(\"Entity type, always 'invoice'\").nullable(),\n status: z.string().describe(\"Invoice status (draft, issued, paid, etc.)\").nullable(),\n comment: z.string().describe(\"Comment on the invoice\").nullable().optional(),\n paid_at: z.number().int().describe(\"Unix timestamp when the invoice was paid\").nullable().optional(),\n receipt: z.string().describe(\"Internal reference number\").nullable().optional(),\n currency: z.string().describe(\"Three-letter ISO currency code\").nullable(),\n order_id: z.string().describe(\"Associated order ID\").nullable().optional(),\n expire_by: z.number().int().describe(\"Unix timestamp when the invoice expires\").nullable().optional(),\n issued_at: z.number().int().describe(\"Unix timestamp when the invoice was issued\").nullable().optional(),\n short_url: z.string().describe(\"Short URL for the invoice payment page\").nullable().optional(),\n view_less: z.boolean().describe(\"Whether to show a compact view\").nullable().optional(),\n amount_due: z.number().int().describe(\"Amount due in currency subunit\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the invoice was created\").nullable(),\n expired_at: z.number().int().describe(\"Unix timestamp when the invoice expired\").nullable().optional(),\n line_items: z.array(RazorpayFetchAllInvoices_LineItemSchema).describe(\"List of invoice line items\").nullable().optional(),\n payment_id: z.string().describe(\"Associated payment ID\").nullable().optional(),\n sms_status: z.string().describe(\"SMS notification status\").nullable().optional(),\n tax_amount: z.number().int().describe(\"Total tax amount in currency subunit\").nullable().optional(),\n amount_paid: z.number().int().describe(\"Amount paid so far in currency subunit\").nullable().optional(),\n billing_end: z.number().int().describe(\"Billing period end as Unix timestamp\").nullable().optional(),\n customer_id: z.string().describe(\"Associated customer ID\").nullable().optional(),\n description: z.string().describe(\"Invoice description\").nullable().optional(),\n cancelled_at: z.number().int().describe(\"Unix timestamp when the invoice was cancelled\").nullable().optional(),\n email_status: z.string().describe(\"Email notification status\").nullable().optional(),\n gross_amount: z.number().int().describe(\"Gross amount before tax in currency subunit\").nullable().optional(),\n billing_start: z.number().int().describe(\"Billing period start as Unix timestamp\").nullable().optional(),\n invoice_number: z.string().describe(\"Invoice number\").nullable().optional(),\n taxable_amount: z.number().int().describe(\"Taxable amount in currency subunit\").nullable().optional(),\n currency_symbol: z.string().describe(\"Currency symbol for display\").nullable().optional(),\n idempotency_key: z.string().describe(\"Idempotency key\").nullable().optional(),\n partial_payment: z.boolean().describe(\"Whether partial payments are allowed\").nullable().optional(),\n subscription_id: z.string().describe(\"Associated subscription ID\").nullable().optional(),\n customer_details: RazorpayFetchAllInvoices_CustomerDetailsSchema.nullable().optional(),\n group_taxes_discounts: z.boolean().describe(\"Whether taxes and discounts are grouped\").nullable().optional(),\n}).passthrough().describe(\"Represents a single invoice object.\");\nexport const RazorpayFetchAllInvoicesOutput = z.object({\n count: z.number().int().describe(\"Number of invoices returned in this response.\").nullable(),\n items: z.array(RazorpayFetchAllInvoices_InvoiceSchema).describe(\"List of invoice objects matching the query criteria.\"),\n entity: z.string().describe(\"Type of entity returned, typically 'collection' for list responses.\").nullable(),\n}).passthrough().describe(\"Response containing the list of invoices.\");\n\nexport const razorpayFetchAllInvoices = action(\"RAZORPAY_FETCH_ALL_INVOICES\", {\n slug: \"razorpay-fetch-all-invoices\",\n name: \"Fetch All Invoices\",\n description: \"Tool to fetch all invoices with pagination and filtering support. Use when you need to retrieve a list of invoices, optionally filtered by payment ID, customer ID, receipt, or date range.\",\n input: RazorpayFetchAllInvoicesInput,\n output: RazorpayFetchAllInvoicesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO;CACpD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;CAC5I,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CAC7I,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAC/I,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACnG,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CACtI,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CAC9I,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4HAA4H,CAAC,CAAC,SAAS;CACvK,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;AACtI,CAAC,CAAC,CAAC,SAAS,gFAAgF;AAC5F,MAAM,2CAA2C,EAAE,OAAO;CACxD,MA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SAAS;CACrF,uBAAuB,EAAE,QAAQ,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAO/D,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,+CAA+C,CAAC,CAAC,SAAS;EAC3F,OAAO,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,sDAAsD;EACtH,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC9G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAOhB;AACV,CAAC"}
|
|
@@ -12,12 +12,12 @@ const RazorpayFetchAllPaymentLinksInput = zod.z.object({
|
|
|
12
12
|
const RazorpayFetchAllPaymentLinks_NotifySchema = zod.z.object({
|
|
13
13
|
sms: zod.z.boolean().describe("Whether SMS notifications are enabled.").nullable().optional(),
|
|
14
14
|
email: zod.z.boolean().describe("Whether email notifications are enabled.").nullable().optional()
|
|
15
|
-
}).describe("Notification settings for the payment link.");
|
|
15
|
+
}).passthrough().describe("Notification settings for the payment link.");
|
|
16
16
|
const RazorpayFetchAllPaymentLinks_CustomerSchema = zod.z.object({
|
|
17
17
|
name: zod.z.string().describe("Name of the customer.").nullable().optional(),
|
|
18
18
|
email: zod.z.string().describe("Email address of the customer.").nullable().optional(),
|
|
19
19
|
contact: zod.z.string().describe("Contact number of the customer.").nullable().optional()
|
|
20
|
-
}).describe("Customer details associated with the payment link.");
|
|
20
|
+
}).passthrough().describe("Customer details associated with the payment link.");
|
|
21
21
|
const RazorpayFetchAllPaymentLinks_PaymentLinkSchema = zod.z.object({
|
|
22
22
|
id: zod.z.string().describe("Unique identifier for the payment link.").nullable(),
|
|
23
23
|
amount: zod.z.number().int().describe("Amount to be paid in the smallest currency unit (e.g., paise for INR).").nullable(),
|
|
@@ -37,8 +37,8 @@ const RazorpayFetchAllPaymentLinks_PaymentLinkSchema = zod.z.object({
|
|
|
37
37
|
accept_partial: zod.z.boolean().describe("Whether partial payments are accepted.").nullable().optional(),
|
|
38
38
|
reminder_enable: zod.z.boolean().describe("Whether payment reminders are enabled for this link.").nullable().optional(),
|
|
39
39
|
first_min_partial_amount: zod.z.number().int().describe("Minimum amount for the first partial payment.").nullable().optional()
|
|
40
|
-
}).describe("Represents a single payment link object.");
|
|
41
|
-
const RazorpayFetchAllPaymentLinksOutput = zod.z.object({ payment_links: zod.z.array(RazorpayFetchAllPaymentLinks_PaymentLinkSchema).describe("List of payment link objects matching the query criteria.") }).describe("Response containing the list of payment links.");
|
|
40
|
+
}).passthrough().describe("Represents a single payment link object.");
|
|
41
|
+
const RazorpayFetchAllPaymentLinksOutput = zod.z.object({ payment_links: zod.z.array(RazorpayFetchAllPaymentLinks_PaymentLinkSchema).describe("List of payment link objects matching the query criteria.") }).passthrough().describe("Response containing the list of payment links.");
|
|
42
42
|
const razorpayFetchAllPaymentLinks = require_action.action("RAZORPAY_FETCH_ALL_PAYMENT_LINKS", {
|
|
43
43
|
slug: "razorpay-fetch-all-payment-links",
|
|
44
44
|
name: "Fetch All Payment Links",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-all-payment-links.cjs","names":["z","action"],"sources":["../../src/actions/fetch-all-payment-links.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayFetchAllPaymentLinksInput = z.object({\n to: z.number().int().describe(\"Unix timestamp (in seconds) before which the payment links were created. Use for date range filtering.\").optional(),\n from: z.number().int().describe(\"Unix timestamp (in seconds) after which the payment links were created. Use for date range filtering.\").optional(),\n skip: z.number().int().describe(\"Number of payment links to skip from the beginning of the result set. Use for pagination. Default is 0.\").optional(),\n count: z.number().int().describe(\"Number of payment links to fetch per request. Default is 10 if not specified. Maximum is typically 100.\").optional(),\n payment_id: z.string().describe(\"Unique identifier of the payment associated with the Payment Link. Use to filter payment links by payment ID.\").optional(),\n reference_id: z.string().describe(\"The unique reference number entered while creating the Payment Link. Use to filter payment links by your custom reference.\").optional(),\n}).describe(\"Request model for fetching all payment links with pagination and filtering.\");\nconst RazorpayFetchAllPaymentLinks_NotifySchema = z.object({\n sms: z.boolean().describe(\"Whether SMS notifications are enabled.\").nullable().optional(),\n email: z.boolean().describe(\"Whether email notifications are enabled.\").nullable().optional(),\n}).describe(\"Notification settings for the payment link.\");\nconst RazorpayFetchAllPaymentLinks_CustomerSchema = z.object({\n name: z.string().describe(\"Name of the customer.\").nullable().optional(),\n email: z.string().describe(\"Email address of the customer.\").nullable().optional(),\n contact: z.string().describe(\"Contact number of the customer.\").nullable().optional(),\n}).describe(\"Customer details associated with the payment link.\");\nconst RazorpayFetchAllPaymentLinks_PaymentLinkSchema = z.object({\n id: z.string().describe(\"Unique identifier for the payment link.\").nullable(),\n amount: z.number().int().describe(\"Amount to be paid in the smallest currency unit (e.g., paise for INR).\").nullable(),\n notify: RazorpayFetchAllPaymentLinks_NotifySchema.nullable().optional(),\n status: z.string().describe(\"Current status of the payment link (e.g., created, paid, cancelled, expired).\").nullable(),\n user_id: z.string().describe(\"Unique identifier of the user who created the payment link.\").nullable().optional(),\n currency: z.string().describe(\"Three-letter ISO currency code (e.g., INR, USD).\").nullable(),\n customer: RazorpayFetchAllPaymentLinks_CustomerSchema.nullable().optional(),\n expire_by: z.number().int().describe(\"Unix timestamp when the payment link will expire.\").nullable().optional(),\n short_url: z.string().describe(\"Short shareable URL for the payment link.\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the payment link was created.\").nullable(),\n expired_at: z.number().int().describe(\"Unix timestamp when the payment link expired.\").nullable().optional(),\n amount_paid: z.number().int().describe(\"Amount paid so far if partial payments are enabled.\").nullable().optional(),\n description: z.string().describe(\"Description of the payment link.\").nullable().optional(),\n cancelled_at: z.number().int().describe(\"Unix timestamp when the payment link was cancelled.\").nullable().optional(),\n reference_id: z.string().describe(\"The unique reference number entered while creating the Payment Link.\").nullable().optional(),\n accept_partial: z.boolean().describe(\"Whether partial payments are accepted.\").nullable().optional(),\n reminder_enable: z.boolean().describe(\"Whether payment reminders are enabled for this link.\").nullable().optional(),\n first_min_partial_amount: z.number().int().describe(\"Minimum amount for the first partial payment.\").nullable().optional(),\n}).describe(\"Represents a single payment link object.\");\nexport const RazorpayFetchAllPaymentLinksOutput = z.object({\n payment_links: z.array(RazorpayFetchAllPaymentLinks_PaymentLinkSchema).describe(\"List of payment link objects matching the query criteria.\"),\n}).describe(\"Response containing the list of payment links.\");\n\nexport const razorpayFetchAllPaymentLinks = action(\"RAZORPAY_FETCH_ALL_PAYMENT_LINKS\", {\n slug: \"razorpay-fetch-all-payment-links\",\n name: \"Fetch All Payment Links\",\n description: \"Tool to fetch all payment links with pagination and filtering support. Use when you need to retrieve a list of payment links, optionally filtered by payment ID, reference ID, or date range.\",\n input: RazorpayFetchAllPaymentLinksInput,\n output: RazorpayFetchAllPaymentLinksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS;CACjJ,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;CAClJ,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;CACpJ,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;CACrJ,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;CAC1J,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4HAA4H,CAAC,CAAC,SAAS;AAC3K,CAAC,CAAC,CAAC,SAAS,6EAA6E;AACzF,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,KAAKA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,SAAS,6CAA6C;
|
|
1
|
+
{"version":3,"file":"fetch-all-payment-links.cjs","names":["z","action"],"sources":["../../src/actions/fetch-all-payment-links.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayFetchAllPaymentLinksInput = z.object({\n to: z.number().int().describe(\"Unix timestamp (in seconds) before which the payment links were created. Use for date range filtering.\").optional(),\n from: z.number().int().describe(\"Unix timestamp (in seconds) after which the payment links were created. Use for date range filtering.\").optional(),\n skip: z.number().int().describe(\"Number of payment links to skip from the beginning of the result set. Use for pagination. Default is 0.\").optional(),\n count: z.number().int().describe(\"Number of payment links to fetch per request. Default is 10 if not specified. Maximum is typically 100.\").optional(),\n payment_id: z.string().describe(\"Unique identifier of the payment associated with the Payment Link. Use to filter payment links by payment ID.\").optional(),\n reference_id: z.string().describe(\"The unique reference number entered while creating the Payment Link. Use to filter payment links by your custom reference.\").optional(),\n}).describe(\"Request model for fetching all payment links with pagination and filtering.\");\nconst RazorpayFetchAllPaymentLinks_NotifySchema = z.object({\n sms: z.boolean().describe(\"Whether SMS notifications are enabled.\").nullable().optional(),\n email: z.boolean().describe(\"Whether email notifications are enabled.\").nullable().optional(),\n}).passthrough().describe(\"Notification settings for the payment link.\");\nconst RazorpayFetchAllPaymentLinks_CustomerSchema = z.object({\n name: z.string().describe(\"Name of the customer.\").nullable().optional(),\n email: z.string().describe(\"Email address of the customer.\").nullable().optional(),\n contact: z.string().describe(\"Contact number of the customer.\").nullable().optional(),\n}).passthrough().describe(\"Customer details associated with the payment link.\");\nconst RazorpayFetchAllPaymentLinks_PaymentLinkSchema = z.object({\n id: z.string().describe(\"Unique identifier for the payment link.\").nullable(),\n amount: z.number().int().describe(\"Amount to be paid in the smallest currency unit (e.g., paise for INR).\").nullable(),\n notify: RazorpayFetchAllPaymentLinks_NotifySchema.nullable().optional(),\n status: z.string().describe(\"Current status of the payment link (e.g., created, paid, cancelled, expired).\").nullable(),\n user_id: z.string().describe(\"Unique identifier of the user who created the payment link.\").nullable().optional(),\n currency: z.string().describe(\"Three-letter ISO currency code (e.g., INR, USD).\").nullable(),\n customer: RazorpayFetchAllPaymentLinks_CustomerSchema.nullable().optional(),\n expire_by: z.number().int().describe(\"Unix timestamp when the payment link will expire.\").nullable().optional(),\n short_url: z.string().describe(\"Short shareable URL for the payment link.\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the payment link was created.\").nullable(),\n expired_at: z.number().int().describe(\"Unix timestamp when the payment link expired.\").nullable().optional(),\n amount_paid: z.number().int().describe(\"Amount paid so far if partial payments are enabled.\").nullable().optional(),\n description: z.string().describe(\"Description of the payment link.\").nullable().optional(),\n cancelled_at: z.number().int().describe(\"Unix timestamp when the payment link was cancelled.\").nullable().optional(),\n reference_id: z.string().describe(\"The unique reference number entered while creating the Payment Link.\").nullable().optional(),\n accept_partial: z.boolean().describe(\"Whether partial payments are accepted.\").nullable().optional(),\n reminder_enable: z.boolean().describe(\"Whether payment reminders are enabled for this link.\").nullable().optional(),\n first_min_partial_amount: z.number().int().describe(\"Minimum amount for the first partial payment.\").nullable().optional(),\n}).passthrough().describe(\"Represents a single payment link object.\");\nexport const RazorpayFetchAllPaymentLinksOutput = z.object({\n payment_links: z.array(RazorpayFetchAllPaymentLinks_PaymentLinkSchema).describe(\"List of payment link objects matching the query criteria.\"),\n}).passthrough().describe(\"Response containing the list of payment links.\");\n\nexport const razorpayFetchAllPaymentLinks = action(\"RAZORPAY_FETCH_ALL_PAYMENT_LINKS\", {\n slug: \"razorpay-fetch-all-payment-links\",\n name: \"Fetch All Payment Links\",\n description: \"Tool to fetch all payment links with pagination and filtering support. Use when you need to retrieve a list of payment links, optionally filtered by payment ID, reference ID, or date range.\",\n input: RazorpayFetchAllPaymentLinksInput,\n output: RazorpayFetchAllPaymentLinksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS;CACjJ,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;CAClJ,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;CACpJ,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;CACrJ,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;CAC1J,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4HAA4H,CAAC,CAAC,SAAS;AAC3K,CAAC,CAAC,CAAC,SAAS,6EAA6E;AACzF,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,KAAKA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AACvE,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;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
notify: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
17
17
|
sms: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
18
18
|
email: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
19
|
-
}, z.core.$
|
|
19
|
+
}, z.core.$loose>>>;
|
|
20
20
|
status: z.ZodNullable<z.ZodString>;
|
|
21
21
|
user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
22
|
currency: z.ZodNullable<z.ZodString>;
|
|
@@ -24,7 +24,7 @@ declare const RazorpayFetchAllPaymentLinksOutput: z.ZodObject<{
|
|
|
24
24
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
25
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
26
|
contact: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
-
}, z.core.$
|
|
27
|
+
}, z.core.$loose>>>;
|
|
28
28
|
expire_by: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
29
29
|
short_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
30
|
created_at: z.ZodNullable<z.ZodNumber>;
|
|
@@ -36,8 +36,8 @@ declare const RazorpayFetchAllPaymentLinksOutput: z.ZodObject<{
|
|
|
36
36
|
accept_partial: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
37
37
|
reminder_enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
38
38
|
first_min_partial_amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
39
|
-
}, z.core.$
|
|
40
|
-
}, z.core.$
|
|
39
|
+
}, z.core.$loose>>;
|
|
40
|
+
}, z.core.$loose>;
|
|
41
41
|
declare const razorpayFetchAllPaymentLinks: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
42
42
|
to?: number | undefined;
|
|
43
43
|
from?: number | undefined;
|
|
@@ -16,7 +16,7 @@ declare const RazorpayFetchAllPaymentLinksOutput: z.ZodObject<{
|
|
|
16
16
|
notify: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
17
17
|
sms: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
18
18
|
email: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
19
|
-
}, z.core.$
|
|
19
|
+
}, z.core.$loose>>>;
|
|
20
20
|
status: z.ZodNullable<z.ZodString>;
|
|
21
21
|
user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
22
|
currency: z.ZodNullable<z.ZodString>;
|
|
@@ -24,7 +24,7 @@ declare const RazorpayFetchAllPaymentLinksOutput: z.ZodObject<{
|
|
|
24
24
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
25
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
26
|
contact: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
-
}, z.core.$
|
|
27
|
+
}, z.core.$loose>>>;
|
|
28
28
|
expire_by: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
29
29
|
short_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
30
|
created_at: z.ZodNullable<z.ZodNumber>;
|
|
@@ -36,8 +36,8 @@ declare const RazorpayFetchAllPaymentLinksOutput: z.ZodObject<{
|
|
|
36
36
|
accept_partial: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
37
37
|
reminder_enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
38
38
|
first_min_partial_amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
39
|
-
}, z.core.$
|
|
40
|
-
}, z.core.$
|
|
39
|
+
}, z.core.$loose>>;
|
|
40
|
+
}, z.core.$loose>;
|
|
41
41
|
declare const razorpayFetchAllPaymentLinks: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
42
42
|
to?: number | undefined;
|
|
43
43
|
from?: number | undefined;
|
|
@@ -12,12 +12,12 @@ const RazorpayFetchAllPaymentLinksInput = z.object({
|
|
|
12
12
|
const RazorpayFetchAllPaymentLinks_NotifySchema = z.object({
|
|
13
13
|
sms: z.boolean().describe("Whether SMS notifications are enabled.").nullable().optional(),
|
|
14
14
|
email: z.boolean().describe("Whether email notifications are enabled.").nullable().optional()
|
|
15
|
-
}).describe("Notification settings for the payment link.");
|
|
15
|
+
}).passthrough().describe("Notification settings for the payment link.");
|
|
16
16
|
const RazorpayFetchAllPaymentLinks_CustomerSchema = z.object({
|
|
17
17
|
name: z.string().describe("Name of the customer.").nullable().optional(),
|
|
18
18
|
email: z.string().describe("Email address of the customer.").nullable().optional(),
|
|
19
19
|
contact: z.string().describe("Contact number of the customer.").nullable().optional()
|
|
20
|
-
}).describe("Customer details associated with the payment link.");
|
|
20
|
+
}).passthrough().describe("Customer details associated with the payment link.");
|
|
21
21
|
const RazorpayFetchAllPaymentLinks_PaymentLinkSchema = z.object({
|
|
22
22
|
id: z.string().describe("Unique identifier for the payment link.").nullable(),
|
|
23
23
|
amount: z.number().int().describe("Amount to be paid in the smallest currency unit (e.g., paise for INR).").nullable(),
|
|
@@ -37,13 +37,13 @@ const RazorpayFetchAllPaymentLinks_PaymentLinkSchema = z.object({
|
|
|
37
37
|
accept_partial: z.boolean().describe("Whether partial payments are accepted.").nullable().optional(),
|
|
38
38
|
reminder_enable: z.boolean().describe("Whether payment reminders are enabled for this link.").nullable().optional(),
|
|
39
39
|
first_min_partial_amount: z.number().int().describe("Minimum amount for the first partial payment.").nullable().optional()
|
|
40
|
-
}).describe("Represents a single payment link object.");
|
|
40
|
+
}).passthrough().describe("Represents a single payment link object.");
|
|
41
41
|
const razorpayFetchAllPaymentLinks = action("RAZORPAY_FETCH_ALL_PAYMENT_LINKS", {
|
|
42
42
|
slug: "razorpay-fetch-all-payment-links",
|
|
43
43
|
name: "Fetch All Payment Links",
|
|
44
44
|
description: "Tool to fetch all payment links with pagination and filtering support. Use when you need to retrieve a list of payment links, optionally filtered by payment ID, reference ID, or date range.",
|
|
45
45
|
input: RazorpayFetchAllPaymentLinksInput,
|
|
46
|
-
output: z.object({ payment_links: z.array(RazorpayFetchAllPaymentLinks_PaymentLinkSchema).describe("List of payment link objects matching the query criteria.") }).describe("Response containing the list of payment links.")
|
|
46
|
+
output: z.object({ payment_links: z.array(RazorpayFetchAllPaymentLinks_PaymentLinkSchema).describe("List of payment link objects matching the query criteria.") }).passthrough().describe("Response containing the list of payment links.")
|
|
47
47
|
});
|
|
48
48
|
//#endregion
|
|
49
49
|
export { razorpayFetchAllPaymentLinks };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-all-payment-links.mjs","names":[],"sources":["../../src/actions/fetch-all-payment-links.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayFetchAllPaymentLinksInput = z.object({\n to: z.number().int().describe(\"Unix timestamp (in seconds) before which the payment links were created. Use for date range filtering.\").optional(),\n from: z.number().int().describe(\"Unix timestamp (in seconds) after which the payment links were created. Use for date range filtering.\").optional(),\n skip: z.number().int().describe(\"Number of payment links to skip from the beginning of the result set. Use for pagination. Default is 0.\").optional(),\n count: z.number().int().describe(\"Number of payment links to fetch per request. Default is 10 if not specified. Maximum is typically 100.\").optional(),\n payment_id: z.string().describe(\"Unique identifier of the payment associated with the Payment Link. Use to filter payment links by payment ID.\").optional(),\n reference_id: z.string().describe(\"The unique reference number entered while creating the Payment Link. Use to filter payment links by your custom reference.\").optional(),\n}).describe(\"Request model for fetching all payment links with pagination and filtering.\");\nconst RazorpayFetchAllPaymentLinks_NotifySchema = z.object({\n sms: z.boolean().describe(\"Whether SMS notifications are enabled.\").nullable().optional(),\n email: z.boolean().describe(\"Whether email notifications are enabled.\").nullable().optional(),\n}).describe(\"Notification settings for the payment link.\");\nconst RazorpayFetchAllPaymentLinks_CustomerSchema = z.object({\n name: z.string().describe(\"Name of the customer.\").nullable().optional(),\n email: z.string().describe(\"Email address of the customer.\").nullable().optional(),\n contact: z.string().describe(\"Contact number of the customer.\").nullable().optional(),\n}).describe(\"Customer details associated with the payment link.\");\nconst RazorpayFetchAllPaymentLinks_PaymentLinkSchema = z.object({\n id: z.string().describe(\"Unique identifier for the payment link.\").nullable(),\n amount: z.number().int().describe(\"Amount to be paid in the smallest currency unit (e.g., paise for INR).\").nullable(),\n notify: RazorpayFetchAllPaymentLinks_NotifySchema.nullable().optional(),\n status: z.string().describe(\"Current status of the payment link (e.g., created, paid, cancelled, expired).\").nullable(),\n user_id: z.string().describe(\"Unique identifier of the user who created the payment link.\").nullable().optional(),\n currency: z.string().describe(\"Three-letter ISO currency code (e.g., INR, USD).\").nullable(),\n customer: RazorpayFetchAllPaymentLinks_CustomerSchema.nullable().optional(),\n expire_by: z.number().int().describe(\"Unix timestamp when the payment link will expire.\").nullable().optional(),\n short_url: z.string().describe(\"Short shareable URL for the payment link.\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the payment link was created.\").nullable(),\n expired_at: z.number().int().describe(\"Unix timestamp when the payment link expired.\").nullable().optional(),\n amount_paid: z.number().int().describe(\"Amount paid so far if partial payments are enabled.\").nullable().optional(),\n description: z.string().describe(\"Description of the payment link.\").nullable().optional(),\n cancelled_at: z.number().int().describe(\"Unix timestamp when the payment link was cancelled.\").nullable().optional(),\n reference_id: z.string().describe(\"The unique reference number entered while creating the Payment Link.\").nullable().optional(),\n accept_partial: z.boolean().describe(\"Whether partial payments are accepted.\").nullable().optional(),\n reminder_enable: z.boolean().describe(\"Whether payment reminders are enabled for this link.\").nullable().optional(),\n first_min_partial_amount: z.number().int().describe(\"Minimum amount for the first partial payment.\").nullable().optional(),\n}).describe(\"Represents a single payment link object.\");\nexport const RazorpayFetchAllPaymentLinksOutput = z.object({\n payment_links: z.array(RazorpayFetchAllPaymentLinks_PaymentLinkSchema).describe(\"List of payment link objects matching the query criteria.\"),\n}).describe(\"Response containing the list of payment links.\");\n\nexport const razorpayFetchAllPaymentLinks = action(\"RAZORPAY_FETCH_ALL_PAYMENT_LINKS\", {\n slug: \"razorpay-fetch-all-payment-links\",\n name: \"Fetch All Payment Links\",\n description: \"Tool to fetch all payment links with pagination and filtering support. Use when you need to retrieve a list of payment links, optionally filtered by payment ID, reference ID, or date range.\",\n input: RazorpayFetchAllPaymentLinksInput,\n output: RazorpayFetchAllPaymentLinksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoC,EAAE,OAAO;CACxD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS;CACjJ,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;CAClJ,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;CACpJ,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;CACrJ,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;CAC1J,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,4HAA4H,CAAC,CAAC,SAAS;AAC3K,CAAC,CAAC,CAAC,SAAS,6EAA6E;AACzF,MAAM,4CAA4C,EAAE,OAAO;CACzD,KAAK,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,SAAS,6CAA6C;
|
|
1
|
+
{"version":3,"file":"fetch-all-payment-links.mjs","names":[],"sources":["../../src/actions/fetch-all-payment-links.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayFetchAllPaymentLinksInput = z.object({\n to: z.number().int().describe(\"Unix timestamp (in seconds) before which the payment links were created. Use for date range filtering.\").optional(),\n from: z.number().int().describe(\"Unix timestamp (in seconds) after which the payment links were created. Use for date range filtering.\").optional(),\n skip: z.number().int().describe(\"Number of payment links to skip from the beginning of the result set. Use for pagination. Default is 0.\").optional(),\n count: z.number().int().describe(\"Number of payment links to fetch per request. Default is 10 if not specified. Maximum is typically 100.\").optional(),\n payment_id: z.string().describe(\"Unique identifier of the payment associated with the Payment Link. Use to filter payment links by payment ID.\").optional(),\n reference_id: z.string().describe(\"The unique reference number entered while creating the Payment Link. Use to filter payment links by your custom reference.\").optional(),\n}).describe(\"Request model for fetching all payment links with pagination and filtering.\");\nconst RazorpayFetchAllPaymentLinks_NotifySchema = z.object({\n sms: z.boolean().describe(\"Whether SMS notifications are enabled.\").nullable().optional(),\n email: z.boolean().describe(\"Whether email notifications are enabled.\").nullable().optional(),\n}).passthrough().describe(\"Notification settings for the payment link.\");\nconst RazorpayFetchAllPaymentLinks_CustomerSchema = z.object({\n name: z.string().describe(\"Name of the customer.\").nullable().optional(),\n email: z.string().describe(\"Email address of the customer.\").nullable().optional(),\n contact: z.string().describe(\"Contact number of the customer.\").nullable().optional(),\n}).passthrough().describe(\"Customer details associated with the payment link.\");\nconst RazorpayFetchAllPaymentLinks_PaymentLinkSchema = z.object({\n id: z.string().describe(\"Unique identifier for the payment link.\").nullable(),\n amount: z.number().int().describe(\"Amount to be paid in the smallest currency unit (e.g., paise for INR).\").nullable(),\n notify: RazorpayFetchAllPaymentLinks_NotifySchema.nullable().optional(),\n status: z.string().describe(\"Current status of the payment link (e.g., created, paid, cancelled, expired).\").nullable(),\n user_id: z.string().describe(\"Unique identifier of the user who created the payment link.\").nullable().optional(),\n currency: z.string().describe(\"Three-letter ISO currency code (e.g., INR, USD).\").nullable(),\n customer: RazorpayFetchAllPaymentLinks_CustomerSchema.nullable().optional(),\n expire_by: z.number().int().describe(\"Unix timestamp when the payment link will expire.\").nullable().optional(),\n short_url: z.string().describe(\"Short shareable URL for the payment link.\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the payment link was created.\").nullable(),\n expired_at: z.number().int().describe(\"Unix timestamp when the payment link expired.\").nullable().optional(),\n amount_paid: z.number().int().describe(\"Amount paid so far if partial payments are enabled.\").nullable().optional(),\n description: z.string().describe(\"Description of the payment link.\").nullable().optional(),\n cancelled_at: z.number().int().describe(\"Unix timestamp when the payment link was cancelled.\").nullable().optional(),\n reference_id: z.string().describe(\"The unique reference number entered while creating the Payment Link.\").nullable().optional(),\n accept_partial: z.boolean().describe(\"Whether partial payments are accepted.\").nullable().optional(),\n reminder_enable: z.boolean().describe(\"Whether payment reminders are enabled for this link.\").nullable().optional(),\n first_min_partial_amount: z.number().int().describe(\"Minimum amount for the first partial payment.\").nullable().optional(),\n}).passthrough().describe(\"Represents a single payment link object.\");\nexport const RazorpayFetchAllPaymentLinksOutput = z.object({\n payment_links: z.array(RazorpayFetchAllPaymentLinks_PaymentLinkSchema).describe(\"List of payment link objects matching the query criteria.\"),\n}).passthrough().describe(\"Response containing the list of payment links.\");\n\nexport const razorpayFetchAllPaymentLinks = action(\"RAZORPAY_FETCH_ALL_PAYMENT_LINKS\", {\n slug: \"razorpay-fetch-all-payment-links\",\n name: \"Fetch All Payment Links\",\n description: \"Tool to fetch all payment links with pagination and filtering support. Use when you need to retrieve a list of payment links, optionally filtered by payment ID, reference ID, or date range.\",\n input: RazorpayFetchAllPaymentLinksInput,\n output: RazorpayFetchAllPaymentLinksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoC,EAAE,OAAO;CACxD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS;CACjJ,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;CAClJ,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;CACpJ,OAAO,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AY,CAAC,CAAC,SAAS,0CAA0C;AAKpE,MAAa,+BAA+B,OAAO,oCAAoC;CACrF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATgD,EAAE,OAAO,EACzD,eAAe,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,2DAA2D,EAC7I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAOhB;AACV,CAAC"}
|
|
@@ -7,7 +7,7 @@ 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
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(),
|
|
@@ -39,12 +39,12 @@ const RazorpayFetchAllPayments_PaymentItemSchema = zod.z.object({
|
|
|
39
39
|
refund_status: zod.z.string().describe("Refund status. Values: null, partial, full.").nullable().optional(),
|
|
40
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
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
46
|
entity: zod.z.string().describe("String representing the collection type. Always 'collection'.").nullable()
|
|
47
|
-
}).describe("Response model containing a collection of payment objects with pagination metadata.");
|
|
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 = 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}).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}).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}).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,SAAS,8DAA8D;
|
|
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,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAA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AAAA,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"}
|
|
@@ -37,14 +37,14 @@ declare const RazorpayFetchAllPaymentsOutput: z.ZodObject<{
|
|
|
37
37
|
error_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
38
|
acquirer_data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
39
39
|
bank_transaction_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
-
}, z.core.$
|
|
40
|
+
}, z.core.$loose>>>;
|
|
41
41
|
international: z.ZodNullable<z.ZodBoolean>;
|
|
42
42
|
refund_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
43
|
amount_refunded: z.ZodNullable<z.ZodNumber>;
|
|
44
44
|
error_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
|
-
}, z.core.$
|
|
45
|
+
}, z.core.$loose>>;
|
|
46
46
|
entity: z.ZodNullable<z.ZodString>;
|
|
47
|
-
}, z.core.$
|
|
47
|
+
}, z.core.$loose>;
|
|
48
48
|
declare const razorpayFetchAllPayments: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
49
49
|
to?: number | undefined;
|
|
50
50
|
from?: number | undefined;
|
|
@@ -37,14 +37,14 @@ declare const RazorpayFetchAllPaymentsOutput: z.ZodObject<{
|
|
|
37
37
|
error_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
38
|
acquirer_data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
39
39
|
bank_transaction_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
-
}, z.core.$
|
|
40
|
+
}, z.core.$loose>>>;
|
|
41
41
|
international: z.ZodNullable<z.ZodBoolean>;
|
|
42
42
|
refund_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
43
|
amount_refunded: z.ZodNullable<z.ZodNumber>;
|
|
44
44
|
error_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
|
-
}, z.core.$
|
|
45
|
+
}, z.core.$loose>>;
|
|
46
46
|
entity: z.ZodNullable<z.ZodString>;
|
|
47
|
-
}, z.core.$
|
|
47
|
+
}, z.core.$loose>;
|
|
48
48
|
declare const razorpayFetchAllPayments: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
49
49
|
to?: number | undefined;
|
|
50
50
|
from?: number | undefined;
|
|
@@ -7,7 +7,7 @@ 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
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(),
|
|
@@ -39,7 +39,7 @@ const RazorpayFetchAllPayments_PaymentItemSchema = z.object({
|
|
|
39
39
|
refund_status: z.string().describe("Refund status. Values: null, partial, full.").nullable().optional(),
|
|
40
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",
|
|
@@ -49,7 +49,7 @@ const razorpayFetchAllPayments = action("RAZORPAY_FETCH_ALL_PAYMENTS", {
|
|
|
49
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
51
|
entity: z.string().describe("String representing the collection type. Always 'collection'.").nullable()
|
|
52
|
-
}).describe("Response model containing a collection of payment objects with pagination metadata.")
|
|
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 = 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}).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}).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}).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,SAAS,8DAA8D;
|
|
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,qBAA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,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAClG,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oEAAoE;AAO9F,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 = 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}).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}).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}).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,SAAS,6BAA6B;
|
|
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,CAA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<z.ZodObject<{
|
|
25
25
|
arn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
-
}, z.core.$
|
|
26
|
+
}, z.core.$loose>>>;
|
|
27
27
|
speed_processed: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
28
|
speed_requested: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
-
}, z.core.$
|
|
29
|
+
}, z.core.$loose>>>>;
|
|
30
30
|
entity: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
-
}, z.core.$
|
|
31
|
+
}, z.core.$loose>;
|
|
32
32
|
declare const razorpayFetchAllRefundsForAPayment: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
33
33
|
payment_id: string;
|
|
34
34
|
skip?: number | undefined;
|
|
@@ -23,12 +23,12 @@ declare const RazorpayFetchAllRefundsForAPaymentOutput: z.ZodObject<{
|
|
|
23
23
|
payment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
24
|
acquirer_data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
25
25
|
arn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
-
}, z.core.$
|
|
26
|
+
}, z.core.$loose>>>;
|
|
27
27
|
speed_processed: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
28
|
speed_requested: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
-
}, z.core.$
|
|
29
|
+
}, z.core.$loose>>>>;
|
|
30
30
|
entity: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
-
}, z.core.$
|
|
31
|
+
}, z.core.$loose>;
|
|
32
32
|
declare const razorpayFetchAllRefundsForAPayment: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
33
33
|
payment_id: string;
|
|
34
34
|
skip?: number | undefined;
|