@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":"create-an-order.cjs","names":["z","action"],"sources":["../../src/actions/create-an-order.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayCreateAnOrderInput = z.object({\n notes: z.
|
|
1
|
+
{"version":3,"file":"create-an-order.cjs","names":["z","action"],"sources":["../../src/actions/create-an-order.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayCreateAnOrderInput = z.object({\n notes: z.record(z.string(), z.unknown()).describe(\"Key-value pairs for additional information (max 15 pairs)\").optional(),\n amount: z.number().int().describe(\"Amount for which the order is created, in currency subunits. For INR, 1 rupee = 100 paise. E.g., ₹500.00 = 50000 paise.\"),\n receipt: z.string().describe(\"Receipt number for internal reference (max 40 characters)\").optional(),\n currency: z.string().describe(\"ISO 4217 currency code (uppercase, 3 letters)\"),\n partial_payment: z.boolean().default(false).describe(\"Whether to enable partial payments for this order\").optional(),\n}).describe(\"Request model for creating a Razorpay order.\");\nexport const RazorpayCreateAnOrderOutput = z.object({\n id: z.string().describe(\"Unique identifier for the order\").nullable(),\n notes: z.record(z.string(), z.unknown()).describe(\"Additional information\").nullable().optional(),\n amount: z.number().int().describe(\"Order amount in currency subunits\").nullable(),\n entity: z.string().describe(\"Entity type\").nullable(),\n status: z.string().describe(\"Order status (created, attempted, or paid)\").nullable(),\n receipt: z.string().describe(\"Receipt number\").nullable().optional(),\n attempts: z.number().int().describe(\"Number of payment attempts for this order\").nullable(),\n currency: z.string().describe(\"Currency code\").nullable(),\n amount_due: z.number().int().describe(\"Amount remaining to be paid\").nullable(),\n created_at: z.number().int().describe(\"Unix timestamp of order creation\").nullable(),\n amount_paid: z.number().int().describe(\"Amount paid against the order\").nullable(),\n}).passthrough().describe(\"Response model for a created Razorpay order.\");\n\nexport const razorpayCreateAnOrder = action(\"RAZORPAY_CREATE_AN_ORDER\", {\n slug: \"razorpay-create-an-order\",\n name: \"Create an Order\",\n description: \"Tool to create a Razorpay order with specified amount and currency. Use when you need to initiate a payment order before collecting payment from a customer. Amount and currency are mandatory parameters; receipt and notes are optional for internal tracking.\",\n input: RazorpayCreateAnOrderInput,\n output: RazorpayCreateAnOrderOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,OAAOA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACxH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,S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,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACnF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;AACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAExE,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { z } from "zod";
|
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-an-order.d.ts
|
|
4
4
|
declare const RazorpayCreateAnOrderInput: z.ZodObject<{
|
|
5
|
-
notes: z.ZodOptional<z.
|
|
5
|
+
notes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
6
6
|
amount: z.ZodNumber;
|
|
7
7
|
receipt: z.ZodOptional<z.ZodString>;
|
|
8
8
|
currency: z.ZodString;
|
|
@@ -10,7 +10,7 @@ declare const RazorpayCreateAnOrderInput: z.ZodObject<{
|
|
|
10
10
|
}, z.core.$strip>;
|
|
11
11
|
declare const RazorpayCreateAnOrderOutput: z.ZodObject<{
|
|
12
12
|
id: z.ZodNullable<z.ZodString>;
|
|
13
|
-
notes: z.ZodOptional<z.ZodNullable<z.
|
|
13
|
+
notes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
14
14
|
amount: z.ZodNullable<z.ZodNumber>;
|
|
15
15
|
entity: z.ZodNullable<z.ZodString>;
|
|
16
16
|
status: z.ZodNullable<z.ZodString>;
|
|
@@ -20,11 +20,11 @@ declare const RazorpayCreateAnOrderOutput: z.ZodObject<{
|
|
|
20
20
|
amount_due: z.ZodNullable<z.ZodNumber>;
|
|
21
21
|
created_at: z.ZodNullable<z.ZodNumber>;
|
|
22
22
|
amount_paid: z.ZodNullable<z.ZodNumber>;
|
|
23
|
-
}, z.core.$
|
|
23
|
+
}, z.core.$loose>;
|
|
24
24
|
declare const razorpayCreateAnOrder: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
25
25
|
amount: number;
|
|
26
26
|
currency: string;
|
|
27
|
-
notes?: Record<string,
|
|
27
|
+
notes?: Record<string, unknown> | undefined;
|
|
28
28
|
receipt?: string | undefined;
|
|
29
29
|
partial_payment?: boolean | undefined;
|
|
30
30
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -2,7 +2,7 @@ import { z } from "zod";
|
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-an-order.d.ts
|
|
4
4
|
declare const RazorpayCreateAnOrderInput: z.ZodObject<{
|
|
5
|
-
notes: z.ZodOptional<z.
|
|
5
|
+
notes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
6
6
|
amount: z.ZodNumber;
|
|
7
7
|
receipt: z.ZodOptional<z.ZodString>;
|
|
8
8
|
currency: z.ZodString;
|
|
@@ -10,7 +10,7 @@ declare const RazorpayCreateAnOrderInput: z.ZodObject<{
|
|
|
10
10
|
}, z.core.$strip>;
|
|
11
11
|
declare const RazorpayCreateAnOrderOutput: z.ZodObject<{
|
|
12
12
|
id: z.ZodNullable<z.ZodString>;
|
|
13
|
-
notes: z.ZodOptional<z.ZodNullable<z.
|
|
13
|
+
notes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
14
14
|
amount: z.ZodNullable<z.ZodNumber>;
|
|
15
15
|
entity: z.ZodNullable<z.ZodString>;
|
|
16
16
|
status: z.ZodNullable<z.ZodString>;
|
|
@@ -20,11 +20,11 @@ declare const RazorpayCreateAnOrderOutput: z.ZodObject<{
|
|
|
20
20
|
amount_due: z.ZodNullable<z.ZodNumber>;
|
|
21
21
|
created_at: z.ZodNullable<z.ZodNumber>;
|
|
22
22
|
amount_paid: z.ZodNullable<z.ZodNumber>;
|
|
23
|
-
}, z.core.$
|
|
23
|
+
}, z.core.$loose>;
|
|
24
24
|
declare const razorpayCreateAnOrder: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
25
25
|
amount: number;
|
|
26
26
|
currency: string;
|
|
27
|
-
notes?: Record<string,
|
|
27
|
+
notes?: Record<string, unknown> | undefined;
|
|
28
28
|
receipt?: string | undefined;
|
|
29
29
|
partial_payment?: boolean | undefined;
|
|
30
30
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -5,7 +5,7 @@ const razorpayCreateAnOrder = action("RAZORPAY_CREATE_AN_ORDER", {
|
|
|
5
5
|
name: "Create an Order",
|
|
6
6
|
description: "Tool to create a Razorpay order with specified amount and currency. Use when you need to initiate a payment order before collecting payment from a customer. Amount and currency are mandatory parameters; receipt and notes are optional for internal tracking.",
|
|
7
7
|
input: z.object({
|
|
8
|
-
notes: z.
|
|
8
|
+
notes: z.record(z.string(), z.unknown()).describe("Key-value pairs for additional information (max 15 pairs)").optional(),
|
|
9
9
|
amount: z.number().int().describe("Amount for which the order is created, in currency subunits. For INR, 1 rupee = 100 paise. E.g., ₹500.00 = 50000 paise."),
|
|
10
10
|
receipt: z.string().describe("Receipt number for internal reference (max 40 characters)").optional(),
|
|
11
11
|
currency: z.string().describe("ISO 4217 currency code (uppercase, 3 letters)"),
|
|
@@ -13,7 +13,7 @@ const razorpayCreateAnOrder = action("RAZORPAY_CREATE_AN_ORDER", {
|
|
|
13
13
|
}).describe("Request model for creating a Razorpay order."),
|
|
14
14
|
output: z.object({
|
|
15
15
|
id: z.string().describe("Unique identifier for the order").nullable(),
|
|
16
|
-
notes: z.
|
|
16
|
+
notes: z.record(z.string(), z.unknown()).describe("Additional information").nullable().optional(),
|
|
17
17
|
amount: z.number().int().describe("Order amount in currency subunits").nullable(),
|
|
18
18
|
entity: z.string().describe("Entity type").nullable(),
|
|
19
19
|
status: z.string().describe("Order status (created, attempted, or paid)").nullable(),
|
|
@@ -23,7 +23,7 @@ const razorpayCreateAnOrder = action("RAZORPAY_CREATE_AN_ORDER", {
|
|
|
23
23
|
amount_due: z.number().int().describe("Amount remaining to be paid").nullable(),
|
|
24
24
|
created_at: z.number().int().describe("Unix timestamp of order creation").nullable(),
|
|
25
25
|
amount_paid: z.number().int().describe("Amount paid against the order").nullable()
|
|
26
|
-
}).describe("Response model for a created Razorpay order.")
|
|
26
|
+
}).passthrough().describe("Response model for a created Razorpay order.")
|
|
27
27
|
});
|
|
28
28
|
//#endregion
|
|
29
29
|
export { razorpayCreateAnOrder };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-an-order.mjs","names":[],"sources":["../../src/actions/create-an-order.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayCreateAnOrderInput = z.object({\n notes: z.
|
|
1
|
+
{"version":3,"file":"create-an-order.mjs","names":[],"sources":["../../src/actions/create-an-order.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayCreateAnOrderInput = z.object({\n notes: z.record(z.string(), z.unknown()).describe(\"Key-value pairs for additional information (max 15 pairs)\").optional(),\n amount: z.number().int().describe(\"Amount for which the order is created, in currency subunits. For INR, 1 rupee = 100 paise. E.g., ₹500.00 = 50000 paise.\"),\n receipt: z.string().describe(\"Receipt number for internal reference (max 40 characters)\").optional(),\n currency: z.string().describe(\"ISO 4217 currency code (uppercase, 3 letters)\"),\n partial_payment: z.boolean().default(false).describe(\"Whether to enable partial payments for this order\").optional(),\n}).describe(\"Request model for creating a Razorpay order.\");\nexport const RazorpayCreateAnOrderOutput = z.object({\n id: z.string().describe(\"Unique identifier for the order\").nullable(),\n notes: z.record(z.string(), z.unknown()).describe(\"Additional information\").nullable().optional(),\n amount: z.number().int().describe(\"Order amount in currency subunits\").nullable(),\n entity: z.string().describe(\"Entity type\").nullable(),\n status: z.string().describe(\"Order status (created, attempted, or paid)\").nullable(),\n receipt: z.string().describe(\"Receipt number\").nullable().optional(),\n attempts: z.number().int().describe(\"Number of payment attempts for this order\").nullable(),\n currency: z.string().describe(\"Currency code\").nullable(),\n amount_due: z.number().int().describe(\"Amount remaining to be paid\").nullable(),\n created_at: z.number().int().describe(\"Unix timestamp of order creation\").nullable(),\n amount_paid: z.number().int().describe(\"Amount paid against the order\").nullable(),\n}).passthrough().describe(\"Response model for a created Razorpay order.\");\n\nexport const razorpayCreateAnOrder = action(\"RAZORPAY_CREATE_AN_ORDER\", {\n slug: \"razorpay-create-an-order\",\n name: \"Create an Order\",\n description: \"Tool to create a Razorpay order with specified amount and currency. Use when you need to initiate a payment order before collecting payment from a customer. Amount and currency are mandatory parameters; receipt and notes are optional for internal tracking.\",\n input: RazorpayCreateAnOrderInput,\n output: RazorpayCreateAnOrderOutput,\n});\n"],"mappings":";;AAyBA,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAzBwC,EAAE,OAAO;EACjD,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;EACxH,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yHAAyH;EAC3J,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;EACnG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;EAC7E,iBAAiB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACrH,CAAC,CAAC,CAAC,SAAS,8CAmBH;CACP,QAnByC,EAAE,OAAO;EAClD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EACpE,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAChF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;EACpD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACnF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnE,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EAC1F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;EACxD,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EAC9E,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EACnF,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAOhB;AACV,CAAC"}
|
|
@@ -9,7 +9,7 @@ const RazorpayCreateContactInput = zod.z.object({
|
|
|
9
9
|
"customer"
|
|
10
10
|
]).describe("Type of contact - employee, vendor, or customer"),
|
|
11
11
|
email: zod.z.string().describe("Email address of the contact").optional(),
|
|
12
|
-
notes: zod.z.
|
|
12
|
+
notes: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Key-value pairs for storing additional information about the contact").optional(),
|
|
13
13
|
contact: zod.z.string().describe("Phone number of the contact").optional(),
|
|
14
14
|
reference_id: zod.z.string().describe("A unique reference identifier for the contact in your system").optional()
|
|
15
15
|
}).describe("Request model for creating a contact in RazorpayX.");
|
|
@@ -18,14 +18,14 @@ const RazorpayCreateContactOutput = zod.z.object({
|
|
|
18
18
|
name: zod.z.string().describe("Name of the contact").nullable(),
|
|
19
19
|
type: zod.z.string().describe("Type of contact").nullable(),
|
|
20
20
|
email: zod.z.string().describe("Email address of the contact").nullable().optional(),
|
|
21
|
-
notes: zod.z.union([zod.z.
|
|
21
|
+
notes: zod.z.union([zod.z.record(zod.z.string(), zod.z.unknown()), zod.z.array(zod.z.unknown())]).nullable().optional(),
|
|
22
22
|
active: zod.z.boolean().describe("Whether the contact is active").nullable(),
|
|
23
23
|
entity: zod.z.string().describe("Entity type").nullable(),
|
|
24
24
|
contact: zod.z.string().describe("Phone number of the contact").nullable().optional(),
|
|
25
25
|
batch_id: zod.z.string().describe("Batch identifier if the contact was created in a batch").nullable().optional(),
|
|
26
26
|
created_at: zod.z.number().int().describe("Unix timestamp of contact creation").nullable(),
|
|
27
27
|
reference_id: zod.z.string().describe("Reference identifier for the contact").nullable().optional()
|
|
28
|
-
}).describe("Response model for a created RazorpayX contact.");
|
|
28
|
+
}).passthrough().describe("Response model for a created RazorpayX contact.");
|
|
29
29
|
const razorpayCreateContact = require_action.action("RAZORPAY_CREATE_CONTACT", {
|
|
30
30
|
slug: "razorpay-create-contact",
|
|
31
31
|
name: "Create Contact",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-contact.cjs","names":["z","action"],"sources":["../../src/actions/create-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayCreateContactInput = z.object({\n name: z.string().describe(\"Name of the contact\"),\n type: z.enum([\"employee\", \"vendor\", \"customer\"]).describe(\"Type of contact - employee, vendor, or customer\"),\n email: z.string().describe(\"Email address of the contact\").optional(),\n notes: z.
|
|
1
|
+
{"version":3,"file":"create-contact.cjs","names":["z","action"],"sources":["../../src/actions/create-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayCreateContactInput = z.object({\n name: z.string().describe(\"Name of the contact\"),\n type: z.enum([\"employee\", \"vendor\", \"customer\"]).describe(\"Type of contact - employee, vendor, or customer\"),\n email: z.string().describe(\"Email address of the contact\").optional(),\n notes: z.record(z.string(), z.unknown()).describe(\"Key-value pairs for storing additional information about the contact\").optional(),\n contact: z.string().describe(\"Phone number of the contact\").optional(),\n reference_id: z.string().describe(\"A unique reference identifier for the contact in your system\").optional(),\n}).describe(\"Request model for creating a contact in RazorpayX.\");\nexport const RazorpayCreateContactOutput = z.object({\n id: z.string().describe(\"Unique identifier for the contact\").nullable(),\n name: z.string().describe(\"Name of the contact\").nullable(),\n type: z.string().describe(\"Type of contact\").nullable(),\n email: z.string().describe(\"Email address of the contact\").nullable().optional(),\n notes: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]).nullable().optional(),\n active: z.boolean().describe(\"Whether the contact is active\").nullable(),\n entity: z.string().describe(\"Entity type\").nullable(),\n contact: z.string().describe(\"Phone number of the contact\").nullable().optional(),\n batch_id: z.string().describe(\"Batch identifier if the contact was created in a batch\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp of contact creation\").nullable(),\n reference_id: z.string().describe(\"Reference identifier for the contact\").nullable().optional(),\n}).passthrough().describe(\"Response model for a created RazorpayX contact.\");\n\nexport const razorpayCreateContact = action(\"RAZORPAY_CREATE_CONTACT\", {\n slug: \"razorpay-create-contact\",\n name: \"Create Contact\",\n description: \"Tool to create a contact for payouts in RazorpayX. Use when you need to add a new contact (employee, vendor, or customer) for making payouts.\",\n input: RazorpayCreateContactInput,\n output: RazorpayCreateContactOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC/C,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAY;EAAU;CAAU,CAAC,CAAC,CAAC,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AC,CAAC,SAAS;CAChF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACrF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAE3E,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -9,7 +9,7 @@ declare const RazorpayCreateContactInput: z.ZodObject<{
|
|
|
9
9
|
vendor: "vendor";
|
|
10
10
|
}>;
|
|
11
11
|
email: z.ZodOptional<z.ZodString>;
|
|
12
|
-
notes: z.ZodOptional<z.
|
|
12
|
+
notes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
13
13
|
contact: z.ZodOptional<z.ZodString>;
|
|
14
14
|
reference_id: z.ZodOptional<z.ZodString>;
|
|
15
15
|
}, z.core.$strip>;
|
|
@@ -18,19 +18,19 @@ declare const RazorpayCreateContactOutput: z.ZodObject<{
|
|
|
18
18
|
name: z.ZodNullable<z.ZodString>;
|
|
19
19
|
type: z.ZodNullable<z.ZodString>;
|
|
20
20
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
-
notes: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.
|
|
21
|
+
notes: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>>>;
|
|
22
22
|
active: z.ZodNullable<z.ZodBoolean>;
|
|
23
23
|
entity: z.ZodNullable<z.ZodString>;
|
|
24
24
|
contact: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
25
|
batch_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
26
|
created_at: z.ZodNullable<z.ZodNumber>;
|
|
27
27
|
reference_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
-
}, z.core.$
|
|
28
|
+
}, z.core.$loose>;
|
|
29
29
|
declare const razorpayCreateContact: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
30
30
|
name: string;
|
|
31
31
|
type: "customer" | "employee" | "vendor";
|
|
32
32
|
email?: string | undefined;
|
|
33
|
-
notes?: Record<string,
|
|
33
|
+
notes?: Record<string, unknown> | undefined;
|
|
34
34
|
contact?: string | undefined;
|
|
35
35
|
reference_id?: string | undefined;
|
|
36
36
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -9,7 +9,7 @@ declare const RazorpayCreateContactInput: z.ZodObject<{
|
|
|
9
9
|
vendor: "vendor";
|
|
10
10
|
}>;
|
|
11
11
|
email: z.ZodOptional<z.ZodString>;
|
|
12
|
-
notes: z.ZodOptional<z.
|
|
12
|
+
notes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
13
13
|
contact: z.ZodOptional<z.ZodString>;
|
|
14
14
|
reference_id: z.ZodOptional<z.ZodString>;
|
|
15
15
|
}, z.core.$strip>;
|
|
@@ -18,19 +18,19 @@ declare const RazorpayCreateContactOutput: z.ZodObject<{
|
|
|
18
18
|
name: z.ZodNullable<z.ZodString>;
|
|
19
19
|
type: z.ZodNullable<z.ZodString>;
|
|
20
20
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
-
notes: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.
|
|
21
|
+
notes: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>>>;
|
|
22
22
|
active: z.ZodNullable<z.ZodBoolean>;
|
|
23
23
|
entity: z.ZodNullable<z.ZodString>;
|
|
24
24
|
contact: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
25
|
batch_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
26
|
created_at: z.ZodNullable<z.ZodNumber>;
|
|
27
27
|
reference_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
-
}, z.core.$
|
|
28
|
+
}, z.core.$loose>;
|
|
29
29
|
declare const razorpayCreateContact: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
30
30
|
name: string;
|
|
31
31
|
type: "customer" | "employee" | "vendor";
|
|
32
32
|
email?: string | undefined;
|
|
33
|
-
notes?: Record<string,
|
|
33
|
+
notes?: Record<string, unknown> | undefined;
|
|
34
34
|
contact?: string | undefined;
|
|
35
35
|
reference_id?: string | undefined;
|
|
36
36
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -12,7 +12,7 @@ const razorpayCreateContact = action("RAZORPAY_CREATE_CONTACT", {
|
|
|
12
12
|
"customer"
|
|
13
13
|
]).describe("Type of contact - employee, vendor, or customer"),
|
|
14
14
|
email: z.string().describe("Email address of the contact").optional(),
|
|
15
|
-
notes: z.
|
|
15
|
+
notes: z.record(z.string(), z.unknown()).describe("Key-value pairs for storing additional information about the contact").optional(),
|
|
16
16
|
contact: z.string().describe("Phone number of the contact").optional(),
|
|
17
17
|
reference_id: z.string().describe("A unique reference identifier for the contact in your system").optional()
|
|
18
18
|
}).describe("Request model for creating a contact in RazorpayX."),
|
|
@@ -21,14 +21,14 @@ const razorpayCreateContact = action("RAZORPAY_CREATE_CONTACT", {
|
|
|
21
21
|
name: z.string().describe("Name of the contact").nullable(),
|
|
22
22
|
type: z.string().describe("Type of contact").nullable(),
|
|
23
23
|
email: z.string().describe("Email address of the contact").nullable().optional(),
|
|
24
|
-
notes: z.union([z.
|
|
24
|
+
notes: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]).nullable().optional(),
|
|
25
25
|
active: z.boolean().describe("Whether the contact is active").nullable(),
|
|
26
26
|
entity: z.string().describe("Entity type").nullable(),
|
|
27
27
|
contact: z.string().describe("Phone number of the contact").nullable().optional(),
|
|
28
28
|
batch_id: z.string().describe("Batch identifier if the contact was created in a batch").nullable().optional(),
|
|
29
29
|
created_at: z.number().int().describe("Unix timestamp of contact creation").nullable(),
|
|
30
30
|
reference_id: z.string().describe("Reference identifier for the contact").nullable().optional()
|
|
31
|
-
}).describe("Response model for a created RazorpayX contact.")
|
|
31
|
+
}).passthrough().describe("Response model for a created RazorpayX contact.")
|
|
32
32
|
});
|
|
33
33
|
//#endregion
|
|
34
34
|
export { razorpayCreateContact };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-contact.mjs","names":[],"sources":["../../src/actions/create-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayCreateContactInput = z.object({\n name: z.string().describe(\"Name of the contact\"),\n type: z.enum([\"employee\", \"vendor\", \"customer\"]).describe(\"Type of contact - employee, vendor, or customer\"),\n email: z.string().describe(\"Email address of the contact\").optional(),\n notes: z.
|
|
1
|
+
{"version":3,"file":"create-contact.mjs","names":[],"sources":["../../src/actions/create-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayCreateContactInput = z.object({\n name: z.string().describe(\"Name of the contact\"),\n type: z.enum([\"employee\", \"vendor\", \"customer\"]).describe(\"Type of contact - employee, vendor, or customer\"),\n email: z.string().describe(\"Email address of the contact\").optional(),\n notes: z.record(z.string(), z.unknown()).describe(\"Key-value pairs for storing additional information about the contact\").optional(),\n contact: z.string().describe(\"Phone number of the contact\").optional(),\n reference_id: z.string().describe(\"A unique reference identifier for the contact in your system\").optional(),\n}).describe(\"Request model for creating a contact in RazorpayX.\");\nexport const RazorpayCreateContactOutput = z.object({\n id: z.string().describe(\"Unique identifier for the contact\").nullable(),\n name: z.string().describe(\"Name of the contact\").nullable(),\n type: z.string().describe(\"Type of contact\").nullable(),\n email: z.string().describe(\"Email address of the contact\").nullable().optional(),\n notes: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]).nullable().optional(),\n active: z.boolean().describe(\"Whether the contact is active\").nullable(),\n entity: z.string().describe(\"Entity type\").nullable(),\n contact: z.string().describe(\"Phone number of the contact\").nullable().optional(),\n batch_id: z.string().describe(\"Batch identifier if the contact was created in a batch\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp of contact creation\").nullable(),\n reference_id: z.string().describe(\"Reference identifier for the contact\").nullable().optional(),\n}).passthrough().describe(\"Response model for a created RazorpayX contact.\");\n\nexport const razorpayCreateContact = action(\"RAZORPAY_CREATE_CONTACT\", {\n slug: \"razorpay-create-contact\",\n name: \"Create Contact\",\n description: \"Tool to create a contact for payouts in RazorpayX. Use when you need to add a new contact (employee, vendor, or customer) for making payouts.\",\n input: RazorpayCreateContactInput,\n output: RazorpayCreateContactOutput,\n});\n"],"mappings":";;AA0BA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA1BwC,EAAE,OAAO;EACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;EAC/C,MAAM,EAAE,KAAK;GAAC;GAAY;GAAU;EAAU,CAAC,CAAC,CAAC,SAAS,iDAAiD;EAC3G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EACpE,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;EACnI,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;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name of the customer").optional(),
|
|
6
6
|
email: zod.z.string().describe("The email address of the customer").optional(),
|
|
7
7
|
gstin: zod.z.string().describe("The GST identification number of the customer (India-specific)").optional(),
|
|
8
|
-
notes: zod.z.
|
|
8
|
+
notes: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom key-value pairs for storing additional information about the customer").optional(),
|
|
9
9
|
contact: zod.z.string().describe("The contact number of the customer").optional()
|
|
10
10
|
}).describe("Request model for creating a new customer.");
|
|
11
11
|
const RazorpayCreateCustomerOutput = zod.z.object({
|
|
@@ -13,11 +13,11 @@ const RazorpayCreateCustomerOutput = zod.z.object({
|
|
|
13
13
|
name: zod.z.string().describe("The name of the customer.").nullable().optional(),
|
|
14
14
|
email: zod.z.string().describe("The email address of the customer.").nullable().optional(),
|
|
15
15
|
gstin: zod.z.string().describe("The GST identification number of the customer (India-specific).").nullable().optional(),
|
|
16
|
-
notes: zod.z.union([zod.z.
|
|
16
|
+
notes: zod.z.union([zod.z.record(zod.z.string(), zod.z.unknown()), zod.z.array(zod.z.unknown())]).nullable().optional(),
|
|
17
17
|
entity: zod.z.string().describe("String representing the object's type. Always 'customer' for this endpoint.").nullable(),
|
|
18
18
|
contact: zod.z.string().describe("The contact number of the customer.").nullable().optional(),
|
|
19
19
|
created_at: zod.z.number().int().describe("Unix timestamp when the customer was created.").nullable().optional()
|
|
20
|
-
}).describe("Response model containing the created customer details.");
|
|
20
|
+
}).passthrough().describe("Response model containing the created customer details.");
|
|
21
21
|
const razorpayCreateCustomer = require_action.action("RAZORPAY_CREATE_CUSTOMER", {
|
|
22
22
|
slug: "razorpay-create-customer",
|
|
23
23
|
name: "Create Customer",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-customer.cjs","names":["z","action"],"sources":["../../src/actions/create-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayCreateCustomerInput = z.object({\n name: z.string().describe(\"The name of the customer\").optional(),\n email: z.string().describe(\"The email address of the customer\").optional(),\n gstin: z.string().describe(\"The GST identification number of the customer (India-specific)\").optional(),\n notes: z.
|
|
1
|
+
{"version":3,"file":"create-customer.cjs","names":["z","action"],"sources":["../../src/actions/create-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayCreateCustomerInput = z.object({\n name: z.string().describe(\"The name of the customer\").optional(),\n email: z.string().describe(\"The email address of the customer\").optional(),\n gstin: z.string().describe(\"The GST identification number of the customer (India-specific)\").optional(),\n notes: z.record(z.string(), z.unknown()).describe(\"Custom key-value pairs for storing additional information about the customer\").optional(),\n contact: z.string().describe(\"The contact number of the customer\").optional(),\n}).describe(\"Request model for creating a new customer.\");\nexport const RazorpayCreateCustomerOutput = z.object({\n id: z.string().describe(\"Unique identifier for the customer object. This customer_id can be used for future transactions.\").nullable(),\n name: z.string().describe(\"The name of the customer.\").nullable().optional(),\n email: z.string().describe(\"The email address of the customer.\").nullable().optional(),\n gstin: z.string().describe(\"The GST identification number of the customer (India-specific).\").nullable().optional(),\n notes: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]).nullable().optional(),\n entity: z.string().describe(\"String representing the object's type. Always 'customer' for this endpoint.\").nullable(),\n contact: z.string().describe(\"The contact number of the customer.\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the customer was created.\").nullable().optional(),\n}).passthrough().describe(\"Response model containing the created customer details.\");\n\nexport const razorpayCreateCustomer = action(\"RAZORPAY_CREATE_CUSTOMER\", {\n slug: \"razorpay-create-customer\",\n name: \"Create Customer\",\n description: \"Tool to create a new customer in Razorpay. Use when you need to register a customer for recurring payments or saved cards. Returns a customer_id that can be used for future transactions.\",\n input: RazorpayCreateCustomerInput,\n output: RazorpayCreateCustomerOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS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,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AAEnF,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -5,7 +5,7 @@ declare const RazorpayCreateCustomerInput: z.ZodObject<{
|
|
|
5
5
|
name: z.ZodOptional<z.ZodString>;
|
|
6
6
|
email: z.ZodOptional<z.ZodString>;
|
|
7
7
|
gstin: z.ZodOptional<z.ZodString>;
|
|
8
|
-
notes: z.ZodOptional<z.
|
|
8
|
+
notes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
9
9
|
contact: z.ZodOptional<z.ZodString>;
|
|
10
10
|
}, z.core.$strip>;
|
|
11
11
|
declare const RazorpayCreateCustomerOutput: z.ZodObject<{
|
|
@@ -13,16 +13,16 @@ declare const RazorpayCreateCustomerOutput: z.ZodObject<{
|
|
|
13
13
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
14
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
15
|
gstin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
-
notes: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.
|
|
16
|
+
notes: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>>>;
|
|
17
17
|
entity: z.ZodNullable<z.ZodString>;
|
|
18
18
|
contact: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
19
|
created_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20
|
-
}, z.core.$
|
|
20
|
+
}, z.core.$loose>;
|
|
21
21
|
declare const razorpayCreateCustomer: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
22
22
|
name?: string | undefined;
|
|
23
23
|
email?: string | undefined;
|
|
24
24
|
gstin?: string | undefined;
|
|
25
|
-
notes?: Record<string,
|
|
25
|
+
notes?: Record<string, unknown> | undefined;
|
|
26
26
|
contact?: string | undefined;
|
|
27
27
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
28
28
|
//#endregion
|
|
@@ -5,7 +5,7 @@ declare const RazorpayCreateCustomerInput: z.ZodObject<{
|
|
|
5
5
|
name: z.ZodOptional<z.ZodString>;
|
|
6
6
|
email: z.ZodOptional<z.ZodString>;
|
|
7
7
|
gstin: z.ZodOptional<z.ZodString>;
|
|
8
|
-
notes: z.ZodOptional<z.
|
|
8
|
+
notes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
9
9
|
contact: z.ZodOptional<z.ZodString>;
|
|
10
10
|
}, z.core.$strip>;
|
|
11
11
|
declare const RazorpayCreateCustomerOutput: z.ZodObject<{
|
|
@@ -13,16 +13,16 @@ declare const RazorpayCreateCustomerOutput: z.ZodObject<{
|
|
|
13
13
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
14
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
15
|
gstin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
-
notes: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.
|
|
16
|
+
notes: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>>>;
|
|
17
17
|
entity: z.ZodNullable<z.ZodString>;
|
|
18
18
|
contact: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
19
|
created_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20
|
-
}, z.core.$
|
|
20
|
+
}, z.core.$loose>;
|
|
21
21
|
declare const razorpayCreateCustomer: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
22
22
|
name?: string | undefined;
|
|
23
23
|
email?: string | undefined;
|
|
24
24
|
gstin?: string | undefined;
|
|
25
|
-
notes?: Record<string,
|
|
25
|
+
notes?: Record<string, unknown> | undefined;
|
|
26
26
|
contact?: string | undefined;
|
|
27
27
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
28
28
|
//#endregion
|
|
@@ -8,7 +8,7 @@ const razorpayCreateCustomer = action("RAZORPAY_CREATE_CUSTOMER", {
|
|
|
8
8
|
name: z.string().describe("The name of the customer").optional(),
|
|
9
9
|
email: z.string().describe("The email address of the customer").optional(),
|
|
10
10
|
gstin: z.string().describe("The GST identification number of the customer (India-specific)").optional(),
|
|
11
|
-
notes: z.
|
|
11
|
+
notes: z.record(z.string(), z.unknown()).describe("Custom key-value pairs for storing additional information about the customer").optional(),
|
|
12
12
|
contact: z.string().describe("The contact number of the customer").optional()
|
|
13
13
|
}).describe("Request model for creating a new customer."),
|
|
14
14
|
output: z.object({
|
|
@@ -16,11 +16,11 @@ const razorpayCreateCustomer = action("RAZORPAY_CREATE_CUSTOMER", {
|
|
|
16
16
|
name: z.string().describe("The name of the customer.").nullable().optional(),
|
|
17
17
|
email: z.string().describe("The email address of the customer.").nullable().optional(),
|
|
18
18
|
gstin: z.string().describe("The GST identification number of the customer (India-specific).").nullable().optional(),
|
|
19
|
-
notes: z.union([z.
|
|
19
|
+
notes: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]).nullable().optional(),
|
|
20
20
|
entity: z.string().describe("String representing the object's type. Always 'customer' for this endpoint.").nullable(),
|
|
21
21
|
contact: z.string().describe("The contact number of the customer.").nullable().optional(),
|
|
22
22
|
created_at: z.number().int().describe("Unix timestamp when the customer was created.").nullable().optional()
|
|
23
|
-
}).describe("Response model containing the created customer details.")
|
|
23
|
+
}).passthrough().describe("Response model containing the created customer details.")
|
|
24
24
|
});
|
|
25
25
|
//#endregion
|
|
26
26
|
export { razorpayCreateCustomer };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-customer.mjs","names":[],"sources":["../../src/actions/create-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayCreateCustomerInput = z.object({\n name: z.string().describe(\"The name of the customer\").optional(),\n email: z.string().describe(\"The email address of the customer\").optional(),\n gstin: z.string().describe(\"The GST identification number of the customer (India-specific)\").optional(),\n notes: z.
|
|
1
|
+
{"version":3,"file":"create-customer.mjs","names":[],"sources":["../../src/actions/create-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayCreateCustomerInput = z.object({\n name: z.string().describe(\"The name of the customer\").optional(),\n email: z.string().describe(\"The email address of the customer\").optional(),\n gstin: z.string().describe(\"The GST identification number of the customer (India-specific)\").optional(),\n notes: z.record(z.string(), z.unknown()).describe(\"Custom key-value pairs for storing additional information about the customer\").optional(),\n contact: z.string().describe(\"The contact number of the customer\").optional(),\n}).describe(\"Request model for creating a new customer.\");\nexport const RazorpayCreateCustomerOutput = z.object({\n id: z.string().describe(\"Unique identifier for the customer object. This customer_id can be used for future transactions.\").nullable(),\n name: z.string().describe(\"The name of the customer.\").nullable().optional(),\n email: z.string().describe(\"The email address of the customer.\").nullable().optional(),\n gstin: z.string().describe(\"The GST identification number of the customer (India-specific).\").nullable().optional(),\n notes: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]).nullable().optional(),\n entity: z.string().describe(\"String representing the object's type. Always 'customer' for this endpoint.\").nullable(),\n contact: z.string().describe(\"The contact number of the customer.\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the customer was created.\").nullable().optional(),\n}).passthrough().describe(\"Response model containing the created customer details.\");\n\nexport const razorpayCreateCustomer = action(\"RAZORPAY_CREATE_CUSTOMER\", {\n slug: \"razorpay-create-customer\",\n name: \"Create Customer\",\n description: \"Tool to create a new customer in Razorpay. Use when you need to register a customer for recurring payments or saved cards. Returns a customer_id that can be used for future transactions.\",\n input: RazorpayCreateCustomerInput,\n output: RazorpayCreateCustomerOutput,\n});\n"],"mappings":";;AAsBA,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAtByC,EAAE,OAAO;EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EAC/D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EACzE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EACtG,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;EAC3I,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC9E,CAAC,CAAC,CAAC,SAAS,4CAgBH;CACP,QAhB0C,EAAE,OAAO;EACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;EACrI,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClH,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;EACpH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAOhB;AACV,CAAC"}
|
|
@@ -3,7 +3,7 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/create-invoice.ts
|
|
4
4
|
const RazorpayCreateInvoiceInput = zod.z.object({
|
|
5
5
|
type: zod.z.string().describe("Type of invoice: 'invoice' or 'link'").optional(),
|
|
6
|
-
notes: zod.z.
|
|
6
|
+
notes: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Key-value pairs for additional information").optional(),
|
|
7
7
|
terms: zod.z.string().describe("Terms and conditions text").optional(),
|
|
8
8
|
amount: zod.z.number().int().describe("Total invoice amount in smallest currency unit. If not provided, calculated from line_items").optional(),
|
|
9
9
|
tax_id: zod.z.string().describe("Tax ID for the entire invoice").optional(),
|
|
@@ -14,7 +14,7 @@ const RazorpayCreateInvoiceInput = zod.z.object({
|
|
|
14
14
|
name: zod.z.string().describe("Name of the customer"),
|
|
15
15
|
email: zod.z.string().describe("Email address of the customer"),
|
|
16
16
|
gstin: zod.z.string().describe("GST identification number").optional(),
|
|
17
|
-
notes: zod.z.
|
|
17
|
+
notes: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Key-value pairs for additional customer metadata").optional(),
|
|
18
18
|
contact: zod.z.string().describe("Phone number of the customer (10 digits for India)"),
|
|
19
19
|
billing_address: zod.z.object({
|
|
20
20
|
city: zod.z.string().describe("City").optional(),
|
|
@@ -53,7 +53,7 @@ const RazorpayCreateInvoiceInput = zod.z.object({
|
|
|
53
53
|
description: zod.z.string().describe("Description of the item").optional(),
|
|
54
54
|
unit_amount: zod.z.number().int().describe("Unit price in smallest currency unit").optional(),
|
|
55
55
|
tax_inclusive: zod.z.boolean().describe("Whether amount includes tax").optional()
|
|
56
|
-
}).describe("Individual line item for invoice.")).describe("Array of line items (products/services) included in the invoice. At least one line item is required"),
|
|
56
|
+
}).passthrough().describe("Individual line item for invoice.")).describe("Array of line items (products/services) included in the invoice. At least one line item is required"),
|
|
57
57
|
payment_id: zod.z.string().describe("Pre-associate a payment ID").optional(),
|
|
58
58
|
sms_notify: zod.z.number().int().describe("Send SMS notification (1=yes, 0=no)").optional(),
|
|
59
59
|
billing_end: zod.z.number().int().describe("Billing period end as Unix timestamp").optional(),
|
|
@@ -71,7 +71,7 @@ const RazorpayCreateInvoice_TaxDetailSchema = zod.z.object({
|
|
|
71
71
|
rate: zod.z.number().int().describe("Tax rate in basis points").nullable().optional(),
|
|
72
72
|
amount: zod.z.number().int().describe("Tax amount in currency subunit").nullable().optional(),
|
|
73
73
|
tax_id: zod.z.string().describe("Tax ID").nullable().optional()
|
|
74
|
-
}).describe("Tax detail for a line item.");
|
|
74
|
+
}).passthrough().describe("Tax detail for a line item.");
|
|
75
75
|
const RazorpayCreateInvoice_LineItemSchema = zod.z.object({
|
|
76
76
|
id: zod.z.string().describe("Line item ID").nullable().optional(),
|
|
77
77
|
name: zod.z.string().describe("Item name").nullable().optional(),
|
|
@@ -94,7 +94,7 @@ const RazorpayCreateInvoice_LineItemSchema = zod.z.object({
|
|
|
94
94
|
gross_amount: zod.z.number().int().describe("Gross amount before tax").nullable().optional(),
|
|
95
95
|
tax_inclusive: zod.z.boolean().describe("Whether tax is included in the amount").nullable().optional(),
|
|
96
96
|
taxable_amount: zod.z.number().int().describe("Taxable amount").nullable().optional()
|
|
97
|
-
}).describe("Individual line item in an invoice.");
|
|
97
|
+
}).passthrough().describe("Individual line item in an invoice.");
|
|
98
98
|
const RazorpayCreateInvoice_AddressSchema = zod.z.object({
|
|
99
99
|
city: zod.z.string().describe("City").nullable().optional(),
|
|
100
100
|
line1: zod.z.string().describe("Address line 1").nullable().optional(),
|
|
@@ -102,7 +102,7 @@ const RazorpayCreateInvoice_AddressSchema = zod.z.object({
|
|
|
102
102
|
state: zod.z.string().describe("State").nullable().optional(),
|
|
103
103
|
country: zod.z.string().describe("Country").nullable().optional(),
|
|
104
104
|
zipcode: zod.z.string().describe("Postal/ZIP code").nullable().optional()
|
|
105
|
-
}).describe("Address details for billing or shipping.");
|
|
105
|
+
}).passthrough().describe("Address details for billing or shipping.");
|
|
106
106
|
const RazorpayCreateInvoice_CustomerDetailsSchema = zod.z.object({
|
|
107
107
|
id: zod.z.string().describe("Customer ID").nullable().optional(),
|
|
108
108
|
name: zod.z.string().describe("Customer name").nullable().optional(),
|
|
@@ -111,12 +111,12 @@ const RazorpayCreateInvoice_CustomerDetailsSchema = zod.z.object({
|
|
|
111
111
|
contact: zod.z.string().describe("Customer contact number").nullable().optional(),
|
|
112
112
|
billing_address: RazorpayCreateInvoice_AddressSchema.nullable().optional(),
|
|
113
113
|
shipping_address: RazorpayCreateInvoice_AddressSchema.nullable().optional()
|
|
114
|
-
}).describe("Customer details associated with the invoice.");
|
|
114
|
+
}).passthrough().describe("Customer details associated with the invoice.");
|
|
115
115
|
const RazorpayCreateInvoiceOutput = zod.z.object({
|
|
116
116
|
id: zod.z.string().describe("Unique invoice identifier").nullable(),
|
|
117
117
|
date: zod.z.number().int().describe("Invoice date as Unix timestamp").nullable().optional(),
|
|
118
118
|
type: zod.z.string().describe("Invoice type").nullable().optional(),
|
|
119
|
-
notes: zod.z.union([zod.z.
|
|
119
|
+
notes: zod.z.union([zod.z.record(zod.z.string(), zod.z.unknown()), zod.z.array(zod.z.unknown())]).nullable().optional(),
|
|
120
120
|
terms: zod.z.string().describe("Terms and conditions").nullable().optional(),
|
|
121
121
|
amount: zod.z.number().int().describe("Total invoice amount in currency subunit").nullable(),
|
|
122
122
|
entity: zod.z.string().describe("Entity type, always 'invoice'").nullable(),
|
|
@@ -153,7 +153,7 @@ const RazorpayCreateInvoiceOutput = zod.z.object({
|
|
|
153
153
|
subscription_id: zod.z.string().describe("Associated subscription ID").nullable().optional(),
|
|
154
154
|
customer_details: RazorpayCreateInvoice_CustomerDetailsSchema.nullable().optional(),
|
|
155
155
|
group_taxes_discounts: zod.z.boolean().describe("Whether taxes and discounts are grouped").nullable().optional()
|
|
156
|
-
}).describe("Response model for creating an invoice.\nReturns complete invoice details including customer information, line items, amounts, and payment status.");
|
|
156
|
+
}).passthrough().describe("Response model for creating an invoice.\nReturns complete invoice details including customer information, line items, amounts, and payment status.");
|
|
157
157
|
const razorpayCreateInvoice = require_action.action("RAZORPAY_CREATE_INVOICE", {
|
|
158
158
|
slug: "razorpay-create-invoice",
|
|
159
159
|
name: "Create an Invoice",
|