@keystrokehq/razorpay 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/cancel-invoice.cjs.map +1 -1
- package/dist/actions/cancel-invoice.d.cts +99 -3
- package/dist/actions/cancel-invoice.d.cts.map +1 -1
- package/dist/actions/cancel-invoice.d.mts +99 -3
- package/dist/actions/cancel-invoice.d.mts.map +1 -1
- package/dist/actions/cancel-invoice.mjs.map +1 -1
- package/dist/actions/cancel-payment-link.cjs +9 -9
- package/dist/actions/cancel-payment-link.cjs.map +1 -1
- package/dist/actions/cancel-payment-link.d.cts +33 -3
- package/dist/actions/cancel-payment-link.d.cts.map +1 -1
- package/dist/actions/cancel-payment-link.d.mts +33 -3
- package/dist/actions/cancel-payment-link.d.mts.map +1 -1
- package/dist/actions/cancel-payment-link.mjs +9 -9
- package/dist/actions/cancel-payment-link.mjs.map +1 -1
- package/dist/actions/create-an-order.cjs +9 -9
- package/dist/actions/create-an-order.cjs.map +1 -1
- package/dist/actions/create-an-order.d.cts +27 -3
- package/dist/actions/create-an-order.d.cts.map +1 -1
- package/dist/actions/create-an-order.d.mts +27 -3
- package/dist/actions/create-an-order.d.mts.map +1 -1
- package/dist/actions/create-an-order.mjs +9 -9
- package/dist/actions/create-an-order.mjs.map +1 -1
- package/dist/actions/create-contact.cjs +6 -6
- package/dist/actions/create-contact.cjs.map +1 -1
- package/dist/actions/create-contact.d.cts +33 -3
- package/dist/actions/create-contact.d.cts.map +1 -1
- package/dist/actions/create-contact.d.mts +33 -3
- package/dist/actions/create-contact.d.mts.map +1 -1
- package/dist/actions/create-contact.mjs +6 -6
- package/dist/actions/create-contact.mjs.map +1 -1
- package/dist/actions/create-customer.cjs +2 -2
- package/dist/actions/create-customer.cjs.map +1 -1
- package/dist/actions/create-customer.d.cts +24 -3
- package/dist/actions/create-customer.d.cts.map +1 -1
- package/dist/actions/create-customer.d.mts +24 -3
- package/dist/actions/create-customer.d.mts.map +1 -1
- package/dist/actions/create-customer.mjs +2 -2
- package/dist/actions/create-customer.mjs.map +1 -1
- package/dist/actions/create-invoice.cjs +6 -6
- package/dist/actions/create-invoice.cjs.map +1 -1
- package/dist/actions/create-invoice.d.cts +221 -3
- package/dist/actions/create-invoice.d.cts.map +1 -1
- package/dist/actions/create-invoice.d.mts +221 -3
- package/dist/actions/create-invoice.d.mts.map +1 -1
- package/dist/actions/create-invoice.mjs +6 -6
- package/dist/actions/create-invoice.mjs.map +1 -1
- package/dist/actions/create-item.cjs +6 -6
- package/dist/actions/create-item.cjs.map +1 -1
- package/dist/actions/create-item.d.cts +29 -3
- package/dist/actions/create-item.d.cts.map +1 -1
- package/dist/actions/create-item.d.mts +29 -3
- package/dist/actions/create-item.d.mts.map +1 -1
- package/dist/actions/create-item.mjs +6 -6
- package/dist/actions/create-item.mjs.map +1 -1
- package/dist/actions/create-payment-link.cjs +6 -6
- package/dist/actions/create-payment-link.cjs.map +1 -1
- package/dist/actions/create-payment-link.d.cts +76 -3
- package/dist/actions/create-payment-link.d.cts.map +1 -1
- package/dist/actions/create-payment-link.d.mts +76 -3
- package/dist/actions/create-payment-link.d.mts.map +1 -1
- package/dist/actions/create-payment-link.mjs +6 -6
- package/dist/actions/create-payment-link.mjs.map +1 -1
- package/dist/actions/delete-invoice.cjs.map +1 -1
- package/dist/actions/delete-invoice.d.cts +9 -3
- package/dist/actions/delete-invoice.d.cts.map +1 -1
- package/dist/actions/delete-invoice.d.mts +9 -3
- package/dist/actions/delete-invoice.d.mts.map +1 -1
- package/dist/actions/delete-invoice.mjs.map +1 -1
- package/dist/actions/delete-item.cjs.map +1 -1
- package/dist/actions/delete-item.d.cts +9 -3
- package/dist/actions/delete-item.d.cts.map +1 -1
- package/dist/actions/delete-item.d.mts +9 -3
- package/dist/actions/delete-item.d.mts.map +1 -1
- package/dist/actions/delete-item.mjs.map +1 -1
- package/dist/actions/fetch-a-payment-link.cjs.map +1 -1
- package/dist/actions/fetch-a-payment-link.d.cts +43 -3
- package/dist/actions/fetch-a-payment-link.d.cts.map +1 -1
- package/dist/actions/fetch-a-payment-link.d.mts +43 -3
- package/dist/actions/fetch-a-payment-link.d.mts.map +1 -1
- package/dist/actions/fetch-a-payment-link.mjs.map +1 -1
- package/dist/actions/fetch-all-customers.cjs +6 -6
- package/dist/actions/fetch-all-customers.cjs.map +1 -1
- package/dist/actions/fetch-all-customers.d.cts +22 -3
- package/dist/actions/fetch-all-customers.d.cts.map +1 -1
- package/dist/actions/fetch-all-customers.d.mts +22 -3
- package/dist/actions/fetch-all-customers.d.mts.map +1 -1
- package/dist/actions/fetch-all-customers.mjs +6 -6
- 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 +115 -3
- package/dist/actions/fetch-all-invoices.d.cts.map +1 -1
- package/dist/actions/fetch-all-invoices.d.mts +115 -3
- package/dist/actions/fetch-all-invoices.d.mts.map +1 -1
- package/dist/actions/fetch-all-invoices.mjs +7 -7
- package/dist/actions/fetch-all-invoices.mjs.map +1 -1
- package/dist/actions/fetch-all-payment-links.cjs +5 -5
- package/dist/actions/fetch-all-payment-links.cjs.map +1 -1
- package/dist/actions/fetch-all-payment-links.d.cts +45 -3
- package/dist/actions/fetch-all-payment-links.d.cts.map +1 -1
- package/dist/actions/fetch-all-payment-links.d.mts +45 -3
- package/dist/actions/fetch-all-payment-links.d.mts.map +1 -1
- package/dist/actions/fetch-all-payment-links.mjs +5 -5
- package/dist/actions/fetch-all-payment-links.mjs.map +1 -1
- package/dist/actions/fetch-all-payments.cjs +12 -12
- package/dist/actions/fetch-all-payments.cjs.map +1 -1
- package/dist/actions/fetch-all-payments.d.cts +50 -3
- package/dist/actions/fetch-all-payments.d.cts.map +1 -1
- package/dist/actions/fetch-all-payments.d.mts +50 -3
- package/dist/actions/fetch-all-payments.d.mts.map +1 -1
- package/dist/actions/fetch-all-payments.mjs +12 -12
- package/dist/actions/fetch-all-payments.mjs.map +1 -1
- package/dist/actions/fetch-all-refunds-for-a-payment.cjs.map +1 -1
- package/dist/actions/fetch-all-refunds-for-a-payment.d.cts +35 -3
- package/dist/actions/fetch-all-refunds-for-a-payment.d.cts.map +1 -1
- package/dist/actions/fetch-all-refunds-for-a-payment.d.mts +35 -3
- package/dist/actions/fetch-all-refunds-for-a-payment.d.mts.map +1 -1
- package/dist/actions/fetch-all-refunds-for-a-payment.mjs.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 +97 -3
- package/dist/actions/fetch-invoice-by-id.d.cts.map +1 -1
- package/dist/actions/fetch-invoice-by-id.d.mts +97 -3
- package/dist/actions/fetch-invoice-by-id.d.mts.map +1 -1
- package/dist/actions/fetch-invoice-by-id.mjs +6 -6
- package/dist/actions/fetch-invoice-by-id.mjs.map +1 -1
- package/dist/actions/fetch-orders-by-id.cjs +8 -8
- package/dist/actions/fetch-orders-by-id.cjs.map +1 -1
- package/dist/actions/fetch-orders-by-id.d.cts +20 -3
- package/dist/actions/fetch-orders-by-id.d.cts.map +1 -1
- package/dist/actions/fetch-orders-by-id.d.mts +20 -3
- package/dist/actions/fetch-orders-by-id.d.mts.map +1 -1
- package/dist/actions/fetch-orders-by-id.mjs +8 -8
- package/dist/actions/fetch-orders-by-id.mjs.map +1 -1
- package/dist/actions/fetch-orders.cjs +10 -10
- package/dist/actions/fetch-orders.cjs.map +1 -1
- package/dist/actions/fetch-orders.d.cts +34 -3
- package/dist/actions/fetch-orders.d.cts.map +1 -1
- package/dist/actions/fetch-orders.d.mts +34 -3
- package/dist/actions/fetch-orders.d.mts.map +1 -1
- package/dist/actions/fetch-orders.mjs +10 -10
- package/dist/actions/fetch-orders.mjs.map +1 -1
- package/dist/actions/fetch-payments-by-order.cjs +7 -7
- package/dist/actions/fetch-payments-by-order.cjs.map +1 -1
- package/dist/actions/fetch-payments-by-order.d.cts +43 -3
- package/dist/actions/fetch-payments-by-order.d.cts.map +1 -1
- package/dist/actions/fetch-payments-by-order.d.mts +43 -3
- package/dist/actions/fetch-payments-by-order.d.mts.map +1 -1
- package/dist/actions/fetch-payments-by-order.mjs +7 -7
- package/dist/actions/fetch-payments-by-order.mjs.map +1 -1
- package/dist/actions/fetch-refunds.cjs.map +1 -1
- package/dist/actions/fetch-refunds.d.cts +33 -3
- package/dist/actions/fetch-refunds.d.cts.map +1 -1
- package/dist/actions/fetch-refunds.d.mts +33 -3
- package/dist/actions/fetch-refunds.d.mts.map +1 -1
- package/dist/actions/fetch-refunds.mjs.map +1 -1
- package/dist/actions/get-contact.cjs +6 -6
- package/dist/actions/get-contact.cjs.map +1 -1
- package/dist/actions/get-contact.d.cts +19 -3
- package/dist/actions/get-contact.d.cts.map +1 -1
- package/dist/actions/get-contact.d.mts +19 -3
- package/dist/actions/get-contact.d.mts.map +1 -1
- package/dist/actions/get-contact.mjs +6 -6
- 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 +16 -3
- package/dist/actions/get-customer.d.cts.map +1 -1
- package/dist/actions/get-customer.d.mts +16 -3
- package/dist/actions/get-customer.d.mts.map +1 -1
- package/dist/actions/get-customer.mjs +2 -2
- package/dist/actions/get-customer.mjs.map +1 -1
- package/dist/actions/get-fund-account.cjs +6 -6
- package/dist/actions/get-fund-account.cjs.map +1 -1
- package/dist/actions/get-fund-account.d.cts +32 -3
- package/dist/actions/get-fund-account.d.cts.map +1 -1
- package/dist/actions/get-fund-account.d.mts +32 -3
- package/dist/actions/get-fund-account.d.mts.map +1 -1
- package/dist/actions/get-fund-account.mjs +6 -6
- package/dist/actions/get-fund-account.mjs.map +1 -1
- package/dist/actions/get-item.cjs +9 -9
- package/dist/actions/get-item.cjs.map +1 -1
- package/dist/actions/get-item.d.cts +24 -3
- package/dist/actions/get-item.d.cts.map +1 -1
- package/dist/actions/get-item.d.mts +24 -3
- package/dist/actions/get-item.d.mts.map +1 -1
- package/dist/actions/get-item.mjs +9 -9
- package/dist/actions/get-item.mjs.map +1 -1
- package/dist/actions/get-settlement-recon.cjs.map +1 -1
- package/dist/actions/get-settlement-recon.d.cts +28 -3
- package/dist/actions/get-settlement-recon.d.cts.map +1 -1
- package/dist/actions/get-settlement-recon.d.mts +28 -3
- package/dist/actions/get-settlement-recon.d.mts.map +1 -1
- package/dist/actions/get-settlement-recon.mjs.map +1 -1
- package/dist/actions/get-transfer-reversals.cjs.map +1 -1
- package/dist/actions/get-transfer-reversals.d.cts +32 -3
- package/dist/actions/get-transfer-reversals.d.cts.map +1 -1
- package/dist/actions/get-transfer-reversals.d.mts +32 -3
- package/dist/actions/get-transfer-reversals.d.mts.map +1 -1
- package/dist/actions/get-transfer-reversals.mjs.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 +97 -3
- package/dist/actions/issue-an-invoice.d.cts.map +1 -1
- package/dist/actions/issue-an-invoice.d.mts +97 -3
- package/dist/actions/issue-an-invoice.d.mts.map +1 -1
- package/dist/actions/issue-an-invoice.mjs +6 -6
- package/dist/actions/issue-an-invoice.mjs.map +1 -1
- package/dist/actions/list-customer-tokens.cjs +6 -6
- package/dist/actions/list-customer-tokens.cjs.map +1 -1
- package/dist/actions/list-customer-tokens.d.cts +40 -3
- package/dist/actions/list-customer-tokens.d.cts.map +1 -1
- package/dist/actions/list-customer-tokens.d.mts +40 -3
- package/dist/actions/list-customer-tokens.d.mts.map +1 -1
- package/dist/actions/list-customer-tokens.mjs +6 -6
- package/dist/actions/list-customer-tokens.mjs.map +1 -1
- package/dist/actions/list-disputes.cjs.map +1 -1
- package/dist/actions/list-disputes.d.cts +46 -3
- package/dist/actions/list-disputes.d.cts.map +1 -1
- package/dist/actions/list-disputes.d.mts +46 -3
- package/dist/actions/list-disputes.d.mts.map +1 -1
- package/dist/actions/list-disputes.mjs.map +1 -1
- package/dist/actions/list-fund-accounts.cjs.map +1 -1
- package/dist/actions/list-fund-accounts.d.cts +40 -3
- package/dist/actions/list-fund-accounts.d.cts.map +1 -1
- package/dist/actions/list-fund-accounts.d.mts +40 -3
- package/dist/actions/list-fund-accounts.d.mts.map +1 -1
- package/dist/actions/list-fund-accounts.mjs.map +1 -1
- package/dist/actions/list-fund-validations.cjs.map +1 -1
- package/dist/actions/list-fund-validations.d.cts +45 -3
- package/dist/actions/list-fund-validations.d.cts.map +1 -1
- package/dist/actions/list-fund-validations.d.mts +45 -3
- package/dist/actions/list-fund-validations.d.mts.map +1 -1
- package/dist/actions/list-fund-validations.mjs.map +1 -1
- package/dist/actions/list-items.cjs.map +1 -1
- package/dist/actions/list-items.d.cts +36 -3
- package/dist/actions/list-items.d.cts.map +1 -1
- package/dist/actions/list-items.d.mts +36 -3
- package/dist/actions/list-items.d.mts.map +1 -1
- package/dist/actions/list-items.mjs.map +1 -1
- package/dist/actions/list-payment-downtimes.cjs.map +1 -1
- package/dist/actions/list-payment-downtimes.d.cts +3 -3
- package/dist/actions/list-payment-downtimes.d.cts.map +1 -1
- package/dist/actions/list-payment-downtimes.d.mts +3 -3
- package/dist/actions/list-payment-downtimes.d.mts.map +1 -1
- package/dist/actions/list-payment-downtimes.mjs.map +1 -1
- package/dist/actions/notify-payment-link.cjs +1 -1
- package/dist/actions/notify-payment-link.cjs.map +1 -1
- package/dist/actions/notify-payment-link.d.cts +14 -3
- package/dist/actions/notify-payment-link.d.cts.map +1 -1
- package/dist/actions/notify-payment-link.d.mts +14 -3
- package/dist/actions/notify-payment-link.d.mts.map +1 -1
- package/dist/actions/notify-payment-link.mjs +1 -1
- package/dist/actions/notify-payment-link.mjs.map +1 -1
- package/dist/actions/send-or-resend-notification.cjs +1 -1
- package/dist/actions/send-or-resend-notification.cjs.map +1 -1
- package/dist/actions/send-or-resend-notification.d.cts +14 -3
- package/dist/actions/send-or-resend-notification.d.cts.map +1 -1
- package/dist/actions/send-or-resend-notification.d.mts +14 -3
- package/dist/actions/send-or-resend-notification.d.mts.map +1 -1
- package/dist/actions/send-or-resend-notification.mjs +1 -1
- package/dist/actions/send-or-resend-notification.mjs.map +1 -1
- package/dist/actions/update-contact.cjs +6 -6
- package/dist/actions/update-contact.cjs.map +1 -1
- package/dist/actions/update-contact.d.cts +35 -3
- package/dist/actions/update-contact.d.cts.map +1 -1
- package/dist/actions/update-contact.d.mts +35 -3
- package/dist/actions/update-contact.d.mts.map +1 -1
- package/dist/actions/update-contact.mjs +6 -6
- package/dist/actions/update-contact.mjs.map +1 -1
- package/dist/actions/update-customer.cjs +6 -6
- package/dist/actions/update-customer.cjs.map +1 -1
- package/dist/actions/update-customer.d.cts +22 -3
- package/dist/actions/update-customer.d.cts.map +1 -1
- package/dist/actions/update-customer.d.mts +22 -3
- package/dist/actions/update-customer.d.mts.map +1 -1
- package/dist/actions/update-customer.mjs +6 -6
- package/dist/actions/update-customer.mjs.map +1 -1
- package/dist/actions/update-invoice.cjs +5 -5
- package/dist/actions/update-invoice.cjs.map +1 -1
- package/dist/actions/update-invoice.d.cts +227 -3
- package/dist/actions/update-invoice.d.cts.map +1 -1
- package/dist/actions/update-invoice.d.mts +227 -3
- package/dist/actions/update-invoice.d.mts.map +1 -1
- package/dist/actions/update-invoice.mjs +5 -5
- package/dist/actions/update-invoice.mjs.map +1 -1
- package/dist/actions/update-item.cjs +9 -9
- package/dist/actions/update-item.cjs.map +1 -1
- package/dist/actions/update-item.d.cts +30 -3
- package/dist/actions/update-item.d.cts.map +1 -1
- package/dist/actions/update-item.d.mts +30 -3
- package/dist/actions/update-item.d.mts.map +1 -1
- package/dist/actions/update-item.mjs +9 -9
- package/dist/actions/update-item.mjs.map +1 -1
- package/dist/actions/update-order.cjs +9 -9
- package/dist/actions/update-order.cjs.map +1 -1
- package/dist/actions/update-order.d.cts +22 -3
- package/dist/actions/update-order.d.cts.map +1 -1
- package/dist/actions/update-order.d.mts +22 -3
- package/dist/actions/update-order.d.mts.map +1 -1
- package/dist/actions/update-order.mjs +9 -9
- package/dist/actions/update-order.mjs.map +1 -1
- package/dist/actions/update-payment-link.cjs +5 -5
- package/dist/actions/update-payment-link.cjs.map +1 -1
- package/dist/actions/update-payment-link.d.cts +52 -3
- package/dist/actions/update-payment-link.d.cts.map +1 -1
- package/dist/actions/update-payment-link.d.mts +52 -3
- package/dist/actions/update-payment-link.d.mts.map +1 -1
- package/dist/actions/update-payment-link.mjs +5 -5
- package/dist/actions/update-payment-link.mjs.map +1 -1
- package/dist/catalog.cjs +13 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +12 -0
- package/dist/catalog.d.mts +12 -0
- package/dist/catalog.mjs +13 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -6,30 +6,30 @@ const razorpayCancelPaymentLink = action("RAZORPAY_CANCEL_PAYMENT_LINK", {
|
|
|
6
6
|
description: "Tool to cancel a specific payment link. Use when you need to cancel an active payment link before it expires. The payment link cannot be used after cancellation.",
|
|
7
7
|
input: z.object({ plink_id: z.string().describe("The unique identifier of the payment link to cancel") }).describe("Request model for canceling a payment link."),
|
|
8
8
|
output: z.object({
|
|
9
|
-
id: z.string().describe("Unique identifier of the payment link"),
|
|
9
|
+
id: z.string().describe("Unique identifier of the payment link").nullable(),
|
|
10
10
|
notes: z.object({}).describe("Key-value pairs for storing additional information").nullable().optional(),
|
|
11
|
-
amount: z.number().int().describe("Amount to be paid in the smallest currency unit (e.g., paise for INR)"),
|
|
11
|
+
amount: z.number().int().describe("Amount to be paid in the smallest currency unit (e.g., paise for INR)").nullable(),
|
|
12
12
|
notify: z.object({}).describe("Notification preferences (email, sms)").nullable().optional(),
|
|
13
|
-
status: z.string().describe("Status of the payment link (e.g., created, partially_paid, paid, cancelled, expired)"),
|
|
13
|
+
status: z.string().describe("Status of the payment link (e.g., created, partially_paid, paid, cancelled, expired)").nullable(),
|
|
14
14
|
user_id: z.string().describe("Merchant's user ID").nullable().optional(),
|
|
15
|
-
currency: z.string().describe("ISO 4217 currency code (e.g., INR, USD)"),
|
|
15
|
+
currency: z.string().describe("ISO 4217 currency code (e.g., INR, USD)").nullable(),
|
|
16
16
|
customer: z.union([z.object({}), z.array(z.unknown())]).nullable().optional(),
|
|
17
17
|
payments: z.array(z.string()).describe("List of payment IDs associated with the payment link").nullable().optional(),
|
|
18
18
|
upi_link: z.boolean().describe("Whether this is a UPI payment link").nullable().optional(),
|
|
19
19
|
expire_by: z.number().int().describe("Unix timestamp when the payment link expires").nullable().optional(),
|
|
20
20
|
reminders: z.union([z.array(z.string()), z.object({})]).nullable().optional(),
|
|
21
|
-
short_url: z.string().describe("Shortened URL for the payment link"),
|
|
22
|
-
created_at: z.number().int().describe("Unix timestamp when the payment link was created"),
|
|
21
|
+
short_url: z.string().describe("Shortened URL for the payment link").nullable(),
|
|
22
|
+
created_at: z.number().int().describe("Unix timestamp when the payment link was created").nullable(),
|
|
23
23
|
expired_at: z.number().int().describe("Unix timestamp when the payment link expired").nullable().optional(),
|
|
24
24
|
updated_at: z.number().int().describe("Unix timestamp when the payment link was last updated").nullable().optional(),
|
|
25
|
-
amount_paid: z.number().int().describe("Amount already paid through this payment link"),
|
|
25
|
+
amount_paid: z.number().int().describe("Amount already paid through this payment link").nullable(),
|
|
26
26
|
description: z.string().describe("Description of the payment link").nullable().optional(),
|
|
27
27
|
callback_url: z.string().describe("URL to which callback is made after payment").nullable().optional(),
|
|
28
28
|
cancelled_at: z.number().int().describe("Unix timestamp when the payment link was cancelled").nullable().optional(),
|
|
29
29
|
reference_id: z.string().describe("Reference ID for the payment link").nullable().optional(),
|
|
30
|
-
accept_partial: z.boolean().describe("Whether partial payments are allowed"),
|
|
30
|
+
accept_partial: z.boolean().describe("Whether partial payments are allowed").nullable(),
|
|
31
31
|
callback_method: z.string().describe("HTTP method to be used for callback").nullable().optional(),
|
|
32
|
-
reminder_enable: z.boolean().describe("Whether payment reminders are enabled"),
|
|
32
|
+
reminder_enable: z.boolean().describe("Whether payment reminders are enabled").nullable(),
|
|
33
33
|
first_min_partial_amount: z.number().int().describe("Minimum amount of first partial payment in smallest currency unit").nullable().optional()
|
|
34
34
|
}).describe("Response model for cancel payment link operation.\n\nReturns the cancelled payment link object with updated status.")
|
|
35
35
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cancel-payment-link.mjs","names":[],"sources":["../../src/actions/cancel-payment-link.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayCancelPaymentLinkInput
|
|
1
|
+
{"version":3,"file":"cancel-payment-link.mjs","names":[],"sources":["../../src/actions/cancel-payment-link.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayCancelPaymentLinkInput = z.object({\n plink_id: z.string().describe(\"The unique identifier of the payment link to cancel\"),\n}).describe(\"Request model for canceling a payment link.\");\nexport const RazorpayCancelPaymentLinkOutput = z.object({\n id: z.string().describe(\"Unique identifier of the payment link\").nullable(),\n notes: z.object({}).describe(\"Key-value pairs for storing additional information\").nullable().optional(),\n amount: z.number().int().describe(\"Amount to be paid in the smallest currency unit (e.g., paise for INR)\").nullable(),\n notify: z.object({}).describe(\"Notification preferences (email, sms)\").nullable().optional(),\n status: z.string().describe(\"Status of the payment link (e.g., created, partially_paid, paid, cancelled, expired)\").nullable(),\n user_id: z.string().describe(\"Merchant's user ID\").nullable().optional(),\n currency: z.string().describe(\"ISO 4217 currency code (e.g., INR, USD)\").nullable(),\n customer: z.union([z.object({}), z.array(z.unknown())]).nullable().optional(),\n payments: z.array(z.string()).describe(\"List of payment IDs associated with the payment link\").nullable().optional(),\n upi_link: z.boolean().describe(\"Whether this is a UPI payment link\").nullable().optional(),\n expire_by: z.number().int().describe(\"Unix timestamp when the payment link expires\").nullable().optional(),\n reminders: z.union([z.array(z.string()), z.object({})]).nullable().optional(),\n short_url: z.string().describe(\"Shortened URL for the payment link\").nullable(),\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 updated_at: z.number().int().describe(\"Unix timestamp when the payment link was last updated\").nullable().optional(),\n amount_paid: z.number().int().describe(\"Amount already paid through this payment link\").nullable(),\n description: z.string().describe(\"Description of the payment link\").nullable().optional(),\n callback_url: z.string().describe(\"URL to which callback is made after payment\").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(\"Reference ID for the payment link\").nullable().optional(),\n accept_partial: z.boolean().describe(\"Whether partial payments are allowed\").nullable(),\n callback_method: z.string().describe(\"HTTP method to be used for callback\").nullable().optional(),\n reminder_enable: z.boolean().describe(\"Whether payment reminders are enabled\").nullable(),\n first_min_partial_amount: z.number().int().describe(\"Minimum amount of first partial payment in smallest currency unit\").nullable().optional(),\n}).describe(\"Response model for cancel payment link operation.\\n\\nReturns the cancelled payment link object with updated status.\");\n\nexport const razorpayCancelPaymentLink = action(\"RAZORPAY_CANCEL_PAYMENT_LINK\", {\n slug: \"razorpay-cancel-payment-link\",\n name: \"Cancel Payment Link\",\n description: \"Tool to cancel a specific payment link. Use when you need to cancel an active payment link before it expires. The payment link cannot be used after cancellation.\",\n input: RazorpayCancelPaymentLinkInput,\n output: RazorpayCancelPaymentLinkOutput,\n});\n"],"mappings":";;AAmCA,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnC4C,EAAE,OAAO,EACrD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,EACrF,CAAC,CAAC,CAAC,SAAS,6CAiCH;CACP,QAjC6C,EAAE,OAAO;EACtD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EAC1E,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;EACpH,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;EAC7H,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EAClF,UAAU,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5E,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnH,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzG,WAAW,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EAC9E,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EACnG,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1G,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnH,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EACjG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EACtF,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,iBAAiB,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EACxF,0BAA0B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/I,CAAC,CAAC,CAAC,SAAS,qHAOF;AACV,CAAC"}
|
|
@@ -9,17 +9,17 @@ const RazorpayCreateAnOrderInput = zod.z.object({
|
|
|
9
9
|
partial_payment: zod.z.boolean().default(false).describe("Whether to enable partial payments for this order").optional()
|
|
10
10
|
}).describe("Request model for creating a Razorpay order.");
|
|
11
11
|
const RazorpayCreateAnOrderOutput = zod.z.object({
|
|
12
|
-
id: zod.z.string().describe("Unique identifier for the order"),
|
|
12
|
+
id: zod.z.string().describe("Unique identifier for the order").nullable(),
|
|
13
13
|
notes: zod.z.object({}).describe("Additional information").nullable().optional(),
|
|
14
|
-
amount: zod.z.number().int().describe("Order amount in currency subunits"),
|
|
15
|
-
entity: zod.z.string().describe("Entity type"),
|
|
16
|
-
status: zod.z.string().describe("Order status (created, attempted, or paid)"),
|
|
14
|
+
amount: zod.z.number().int().describe("Order amount in currency subunits").nullable(),
|
|
15
|
+
entity: zod.z.string().describe("Entity type").nullable(),
|
|
16
|
+
status: zod.z.string().describe("Order status (created, attempted, or paid)").nullable(),
|
|
17
17
|
receipt: zod.z.string().describe("Receipt number").nullable().optional(),
|
|
18
|
-
attempts: zod.z.number().int().describe("Number of payment attempts for this order"),
|
|
19
|
-
currency: zod.z.string().describe("Currency code"),
|
|
20
|
-
amount_due: zod.z.number().int().describe("Amount remaining to be paid"),
|
|
21
|
-
created_at: zod.z.number().int().describe("Unix timestamp of order creation"),
|
|
22
|
-
amount_paid: zod.z.number().int().describe("Amount paid against the order")
|
|
18
|
+
attempts: zod.z.number().int().describe("Number of payment attempts for this order").nullable(),
|
|
19
|
+
currency: zod.z.string().describe("Currency code").nullable(),
|
|
20
|
+
amount_due: zod.z.number().int().describe("Amount remaining to be paid").nullable(),
|
|
21
|
+
created_at: zod.z.number().int().describe("Unix timestamp of order creation").nullable(),
|
|
22
|
+
amount_paid: zod.z.number().int().describe("Amount paid against the order").nullable()
|
|
23
23
|
}).describe("Response model for a created Razorpay order.");
|
|
24
24
|
const razorpayCreateAnOrder = require_action.action("RAZORPAY_CREATE_AN_ORDER", {
|
|
25
25
|
slug: "razorpay-create-an-order",
|
|
@@ -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
|
|
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.object({}).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.object({}).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}).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,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACnG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yHAAyH;CAC3J,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACnG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC7E,iBAAiBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;AACrH,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACpE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAChF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CACpD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACnF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC1F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;CACxD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAC9E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,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,SAAS,8CAA8C;AAE1D,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,33 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-an-order.d.ts
|
|
4
|
-
declare const RazorpayCreateAnOrderInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RazorpayCreateAnOrderInput: z.ZodObject<{
|
|
5
|
+
notes: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
6
|
+
amount: z.ZodNumber;
|
|
7
|
+
receipt: z.ZodOptional<z.ZodString>;
|
|
8
|
+
currency: z.ZodString;
|
|
9
|
+
partial_payment: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
declare const RazorpayCreateAnOrderOutput: z.ZodObject<{
|
|
12
|
+
id: z.ZodNullable<z.ZodString>;
|
|
13
|
+
notes: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
|
|
14
|
+
amount: z.ZodNullable<z.ZodNumber>;
|
|
15
|
+
entity: z.ZodNullable<z.ZodString>;
|
|
16
|
+
status: z.ZodNullable<z.ZodString>;
|
|
17
|
+
receipt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
attempts: z.ZodNullable<z.ZodNumber>;
|
|
19
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
20
|
+
amount_due: z.ZodNullable<z.ZodNumber>;
|
|
21
|
+
created_at: z.ZodNullable<z.ZodNumber>;
|
|
22
|
+
amount_paid: z.ZodNullable<z.ZodNumber>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
declare const razorpayCreateAnOrder: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
25
|
+
amount: number;
|
|
26
|
+
currency: string;
|
|
27
|
+
notes?: Record<string, never> | undefined;
|
|
28
|
+
receipt?: string | undefined;
|
|
29
|
+
partial_payment?: boolean | undefined;
|
|
30
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
31
|
//#endregion
|
|
8
32
|
export { razorpayCreateAnOrder };
|
|
9
33
|
//# sourceMappingURL=create-an-order.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-an-order.d.cts","names":[],"sources":["../../src/actions/create-an-order.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"create-an-order.d.cts","names":[],"sources":["../../src/actions/create-an-order.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;cAO1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAc3B,qBAAA,gCAAqB,wBAAA;;;UAMhC,MAAA"}
|
|
@@ -1,9 +1,33 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-an-order.d.ts
|
|
4
|
-
declare const RazorpayCreateAnOrderInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RazorpayCreateAnOrderInput: z.ZodObject<{
|
|
5
|
+
notes: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
6
|
+
amount: z.ZodNumber;
|
|
7
|
+
receipt: z.ZodOptional<z.ZodString>;
|
|
8
|
+
currency: z.ZodString;
|
|
9
|
+
partial_payment: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
declare const RazorpayCreateAnOrderOutput: z.ZodObject<{
|
|
12
|
+
id: z.ZodNullable<z.ZodString>;
|
|
13
|
+
notes: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
|
|
14
|
+
amount: z.ZodNullable<z.ZodNumber>;
|
|
15
|
+
entity: z.ZodNullable<z.ZodString>;
|
|
16
|
+
status: z.ZodNullable<z.ZodString>;
|
|
17
|
+
receipt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
attempts: z.ZodNullable<z.ZodNumber>;
|
|
19
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
20
|
+
amount_due: z.ZodNullable<z.ZodNumber>;
|
|
21
|
+
created_at: z.ZodNullable<z.ZodNumber>;
|
|
22
|
+
amount_paid: z.ZodNullable<z.ZodNumber>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
declare const razorpayCreateAnOrder: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
25
|
+
amount: number;
|
|
26
|
+
currency: string;
|
|
27
|
+
notes?: Record<string, never> | undefined;
|
|
28
|
+
receipt?: string | undefined;
|
|
29
|
+
partial_payment?: boolean | undefined;
|
|
30
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
31
|
//#endregion
|
|
8
32
|
export { razorpayCreateAnOrder };
|
|
9
33
|
//# sourceMappingURL=create-an-order.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-an-order.d.mts","names":[],"sources":["../../src/actions/create-an-order.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"create-an-order.d.mts","names":[],"sources":["../../src/actions/create-an-order.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;cAO1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAc3B,qBAAA,gCAAqB,wBAAA;;;UAMhC,MAAA"}
|
|
@@ -12,17 +12,17 @@ const razorpayCreateAnOrder = action("RAZORPAY_CREATE_AN_ORDER", {
|
|
|
12
12
|
partial_payment: z.boolean().default(false).describe("Whether to enable partial payments for this order").optional()
|
|
13
13
|
}).describe("Request model for creating a Razorpay order."),
|
|
14
14
|
output: z.object({
|
|
15
|
-
id: z.string().describe("Unique identifier for the order"),
|
|
15
|
+
id: z.string().describe("Unique identifier for the order").nullable(),
|
|
16
16
|
notes: z.object({}).describe("Additional information").nullable().optional(),
|
|
17
|
-
amount: z.number().int().describe("Order amount in currency subunits"),
|
|
18
|
-
entity: z.string().describe("Entity type"),
|
|
19
|
-
status: z.string().describe("Order status (created, attempted, or paid)"),
|
|
17
|
+
amount: z.number().int().describe("Order amount in currency subunits").nullable(),
|
|
18
|
+
entity: z.string().describe("Entity type").nullable(),
|
|
19
|
+
status: z.string().describe("Order status (created, attempted, or paid)").nullable(),
|
|
20
20
|
receipt: z.string().describe("Receipt number").nullable().optional(),
|
|
21
|
-
attempts: z.number().int().describe("Number of payment attempts for this order"),
|
|
22
|
-
currency: z.string().describe("Currency code"),
|
|
23
|
-
amount_due: z.number().int().describe("Amount remaining to be paid"),
|
|
24
|
-
created_at: z.number().int().describe("Unix timestamp of order creation"),
|
|
25
|
-
amount_paid: z.number().int().describe("Amount paid against the order")
|
|
21
|
+
attempts: z.number().int().describe("Number of payment attempts for this order").nullable(),
|
|
22
|
+
currency: z.string().describe("Currency code").nullable(),
|
|
23
|
+
amount_due: z.number().int().describe("Amount remaining to be paid").nullable(),
|
|
24
|
+
created_at: z.number().int().describe("Unix timestamp of order creation").nullable(),
|
|
25
|
+
amount_paid: z.number().int().describe("Amount paid against the order").nullable()
|
|
26
26
|
}).describe("Response model for a created Razorpay order.")
|
|
27
27
|
});
|
|
28
28
|
//#endregion
|
|
@@ -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
|
|
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.object({}).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.object({}).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}).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,CAAC,CAAC,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;EACnG,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,CAAC,CAAC,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3E,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,SAAS,8CAOF;AACV,CAAC"}
|
|
@@ -14,16 +14,16 @@ const RazorpayCreateContactInput = zod.z.object({
|
|
|
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.");
|
|
16
16
|
const RazorpayCreateContactOutput = zod.z.object({
|
|
17
|
-
id: zod.z.string().describe("Unique identifier for the contact"),
|
|
18
|
-
name: zod.z.string().describe("Name of the contact"),
|
|
19
|
-
type: zod.z.string().describe("Type of contact"),
|
|
17
|
+
id: zod.z.string().describe("Unique identifier for the contact").nullable(),
|
|
18
|
+
name: zod.z.string().describe("Name of the contact").nullable(),
|
|
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
21
|
notes: zod.z.union([zod.z.object({}), zod.z.array(zod.z.unknown())]).nullable().optional(),
|
|
22
|
-
active: zod.z.boolean().describe("Whether the contact is active"),
|
|
23
|
-
entity: zod.z.string().describe("Entity type"),
|
|
22
|
+
active: zod.z.boolean().describe("Whether the contact is active").nullable(),
|
|
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
|
-
created_at: zod.z.number().int().describe("Unix timestamp of contact creation"),
|
|
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
28
|
}).describe("Response model for a created RazorpayX contact.");
|
|
29
29
|
const razorpayCreateContact = require_action.action("RAZORPAY_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
|
|
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.object({}).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.object({}), 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}).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,SAAS,iDAAiD;CAC3G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACpE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAC9G,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACrE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACtE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CACtD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,OAAOA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,CAAC,CAAC,GAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACvE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CACpD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,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,SAAS,iDAAiD;AAE7D,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,39 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-contact.d.ts
|
|
4
|
-
declare const RazorpayCreateContactInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RazorpayCreateContactInput: z.ZodObject<{
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
type: z.ZodEnum<{
|
|
7
|
+
customer: "customer";
|
|
8
|
+
employee: "employee";
|
|
9
|
+
vendor: "vendor";
|
|
10
|
+
}>;
|
|
11
|
+
email: z.ZodOptional<z.ZodString>;
|
|
12
|
+
notes: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
13
|
+
contact: z.ZodOptional<z.ZodString>;
|
|
14
|
+
reference_id: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
declare const RazorpayCreateContactOutput: z.ZodObject<{
|
|
17
|
+
id: z.ZodNullable<z.ZodString>;
|
|
18
|
+
name: z.ZodNullable<z.ZodString>;
|
|
19
|
+
type: z.ZodNullable<z.ZodString>;
|
|
20
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
notes: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{}, z.core.$strip>, z.ZodArray<z.ZodUnknown>]>>>;
|
|
22
|
+
active: z.ZodNullable<z.ZodBoolean>;
|
|
23
|
+
entity: z.ZodNullable<z.ZodString>;
|
|
24
|
+
contact: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
batch_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
created_at: z.ZodNullable<z.ZodNumber>;
|
|
27
|
+
reference_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
declare const razorpayCreateContact: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
30
|
+
name: string;
|
|
31
|
+
type: "customer" | "employee" | "vendor";
|
|
32
|
+
email?: string | undefined;
|
|
33
|
+
notes?: Record<string, never> | undefined;
|
|
34
|
+
contact?: string | undefined;
|
|
35
|
+
reference_id?: string | undefined;
|
|
36
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
37
|
//#endregion
|
|
8
38
|
export { razorpayCreateContact };
|
|
9
39
|
//# sourceMappingURL=create-contact.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-contact.d.cts","names":[],"sources":["../../src/actions/create-contact.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"create-contact.d.cts","names":[],"sources":["../../src/actions/create-contact.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAQ1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAc3B,qBAAA,gCAAqB,wBAAA;;;;UAMhC,MAAA"}
|
|
@@ -1,9 +1,39 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-contact.d.ts
|
|
4
|
-
declare const RazorpayCreateContactInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RazorpayCreateContactInput: z.ZodObject<{
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
type: z.ZodEnum<{
|
|
7
|
+
customer: "customer";
|
|
8
|
+
employee: "employee";
|
|
9
|
+
vendor: "vendor";
|
|
10
|
+
}>;
|
|
11
|
+
email: z.ZodOptional<z.ZodString>;
|
|
12
|
+
notes: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
13
|
+
contact: z.ZodOptional<z.ZodString>;
|
|
14
|
+
reference_id: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
declare const RazorpayCreateContactOutput: z.ZodObject<{
|
|
17
|
+
id: z.ZodNullable<z.ZodString>;
|
|
18
|
+
name: z.ZodNullable<z.ZodString>;
|
|
19
|
+
type: z.ZodNullable<z.ZodString>;
|
|
20
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
notes: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{}, z.core.$strip>, z.ZodArray<z.ZodUnknown>]>>>;
|
|
22
|
+
active: z.ZodNullable<z.ZodBoolean>;
|
|
23
|
+
entity: z.ZodNullable<z.ZodString>;
|
|
24
|
+
contact: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
batch_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
created_at: z.ZodNullable<z.ZodNumber>;
|
|
27
|
+
reference_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
declare const razorpayCreateContact: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
30
|
+
name: string;
|
|
31
|
+
type: "customer" | "employee" | "vendor";
|
|
32
|
+
email?: string | undefined;
|
|
33
|
+
notes?: Record<string, never> | undefined;
|
|
34
|
+
contact?: string | undefined;
|
|
35
|
+
reference_id?: string | undefined;
|
|
36
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
37
|
//#endregion
|
|
8
38
|
export { razorpayCreateContact };
|
|
9
39
|
//# sourceMappingURL=create-contact.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-contact.d.mts","names":[],"sources":["../../src/actions/create-contact.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"create-contact.d.mts","names":[],"sources":["../../src/actions/create-contact.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAQ1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAc3B,qBAAA,gCAAqB,wBAAA;;;;UAMhC,MAAA"}
|
|
@@ -17,16 +17,16 @@ const razorpayCreateContact = action("RAZORPAY_CREATE_CONTACT", {
|
|
|
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."),
|
|
19
19
|
output: z.object({
|
|
20
|
-
id: z.string().describe("Unique identifier for the contact"),
|
|
21
|
-
name: z.string().describe("Name of the contact"),
|
|
22
|
-
type: z.string().describe("Type of contact"),
|
|
20
|
+
id: z.string().describe("Unique identifier for the contact").nullable(),
|
|
21
|
+
name: z.string().describe("Name of the contact").nullable(),
|
|
22
|
+
type: z.string().describe("Type of contact").nullable(),
|
|
23
23
|
email: z.string().describe("Email address of the contact").nullable().optional(),
|
|
24
24
|
notes: z.union([z.object({}), z.array(z.unknown())]).nullable().optional(),
|
|
25
|
-
active: z.boolean().describe("Whether the contact is active"),
|
|
26
|
-
entity: z.string().describe("Entity type"),
|
|
25
|
+
active: z.boolean().describe("Whether the contact is active").nullable(),
|
|
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
|
-
created_at: z.number().int().describe("Unix timestamp of contact creation"),
|
|
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
31
|
}).describe("Response model for a created RazorpayX contact.")
|
|
32
32
|
});
|
|
@@ -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
|
|
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.object({}).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.object({}), 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}).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,CAAC,CAAC,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;EAC9G,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EACrE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAC7G,CAAC,CAAC,CAAC,SAAS,oDAmBH;CACP,QAnByC,EAAE,OAAO;EAClD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EACtE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;EACtD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/E,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzE,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EACvE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;EACpD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5G,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EACrF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,CAAC,CAAC,CAAC,SAAS,iDAOF;AACV,CAAC"}
|
|
@@ -9,12 +9,12 @@ const RazorpayCreateCustomerInput = zod.z.object({
|
|
|
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({
|
|
12
|
-
id: zod.z.string().describe("Unique identifier for the customer object. This customer_id can be used for future transactions."),
|
|
12
|
+
id: zod.z.string().describe("Unique identifier for the customer object. This customer_id can be used for future transactions.").nullable(),
|
|
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
16
|
notes: zod.z.union([zod.z.object({}), zod.z.array(zod.z.unknown())]).nullable().optional(),
|
|
17
|
-
entity: zod.z.string().describe("String representing the object's type. Always 'customer' for this endpoint."),
|
|
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
20
|
}).describe("Response model containing the created customer details.");
|
|
@@ -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
|
|
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.object({}).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.object({}), 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}).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;CAC/D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACzE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACtG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CACtH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CACrI,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,OAAOA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,CAAC,CAAC,GAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACpH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,SAAS,yDAAyD;AAErE,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,30 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-customer.d.ts
|
|
4
|
-
declare const RazorpayCreateCustomerInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RazorpayCreateCustomerInput: z.ZodObject<{
|
|
5
|
+
name: z.ZodOptional<z.ZodString>;
|
|
6
|
+
email: z.ZodOptional<z.ZodString>;
|
|
7
|
+
gstin: z.ZodOptional<z.ZodString>;
|
|
8
|
+
notes: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
9
|
+
contact: z.ZodOptional<z.ZodString>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
declare const RazorpayCreateCustomerOutput: z.ZodObject<{
|
|
12
|
+
id: z.ZodNullable<z.ZodString>;
|
|
13
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
gstin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
notes: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{}, z.core.$strip>, z.ZodArray<z.ZodUnknown>]>>>;
|
|
17
|
+
entity: z.ZodNullable<z.ZodString>;
|
|
18
|
+
contact: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
declare const razorpayCreateCustomer: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
22
|
+
name?: string | undefined;
|
|
23
|
+
email?: string | undefined;
|
|
24
|
+
gstin?: string | undefined;
|
|
25
|
+
notes?: Record<string, never> | undefined;
|
|
26
|
+
contact?: string | undefined;
|
|
27
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
28
|
//#endregion
|
|
8
29
|
export { razorpayCreateCustomer };
|
|
9
30
|
//# sourceMappingURL=create-customer.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-customer.d.cts","names":[],"sources":["../../src/actions/create-customer.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"create-customer.d.cts","names":[],"sources":["../../src/actions/create-customer.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;cAO3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;cAW5B,sBAAA,gCAAsB,wBAAA;;;;UAMjC,MAAA"}
|
|
@@ -1,9 +1,30 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-customer.d.ts
|
|
4
|
-
declare const RazorpayCreateCustomerInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RazorpayCreateCustomerInput: z.ZodObject<{
|
|
5
|
+
name: z.ZodOptional<z.ZodString>;
|
|
6
|
+
email: z.ZodOptional<z.ZodString>;
|
|
7
|
+
gstin: z.ZodOptional<z.ZodString>;
|
|
8
|
+
notes: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
9
|
+
contact: z.ZodOptional<z.ZodString>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
declare const RazorpayCreateCustomerOutput: z.ZodObject<{
|
|
12
|
+
id: z.ZodNullable<z.ZodString>;
|
|
13
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
gstin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
notes: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{}, z.core.$strip>, z.ZodArray<z.ZodUnknown>]>>>;
|
|
17
|
+
entity: z.ZodNullable<z.ZodString>;
|
|
18
|
+
contact: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
declare const razorpayCreateCustomer: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
22
|
+
name?: string | undefined;
|
|
23
|
+
email?: string | undefined;
|
|
24
|
+
gstin?: string | undefined;
|
|
25
|
+
notes?: Record<string, never> | undefined;
|
|
26
|
+
contact?: string | undefined;
|
|
27
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
28
|
//#endregion
|
|
8
29
|
export { razorpayCreateCustomer };
|
|
9
30
|
//# sourceMappingURL=create-customer.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-customer.d.mts","names":[],"sources":["../../src/actions/create-customer.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"create-customer.d.mts","names":[],"sources":["../../src/actions/create-customer.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;cAO3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;cAW5B,sBAAA,gCAAsB,wBAAA;;;;UAMjC,MAAA"}
|
|
@@ -12,12 +12,12 @@ const razorpayCreateCustomer = action("RAZORPAY_CREATE_CUSTOMER", {
|
|
|
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({
|
|
15
|
-
id: z.string().describe("Unique identifier for the customer object. This customer_id can be used for future transactions."),
|
|
15
|
+
id: z.string().describe("Unique identifier for the customer object. This customer_id can be used for future transactions.").nullable(),
|
|
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
19
|
notes: z.union([z.object({}), z.array(z.unknown())]).nullable().optional(),
|
|
20
|
-
entity: z.string().describe("String representing the object's type. Always 'customer' for this endpoint."),
|
|
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
23
|
}).describe("Response model containing the created customer details.")
|