@keystrokehq/razorpay 0.1.0 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/cancel-invoice.cjs +6 -6
- package/dist/actions/cancel-invoice.cjs.map +1 -1
- package/dist/actions/cancel-invoice.d.cts +99 -3
- package/dist/actions/cancel-invoice.d.cts.map +1 -1
- package/dist/actions/cancel-invoice.d.mts +99 -3
- package/dist/actions/cancel-invoice.d.mts.map +1 -1
- package/dist/actions/cancel-invoice.mjs +6 -6
- package/dist/actions/cancel-invoice.mjs.map +1 -1
- package/dist/actions/cancel-payment-link.cjs +14 -14
- package/dist/actions/cancel-payment-link.cjs.map +1 -1
- package/dist/actions/cancel-payment-link.d.cts +33 -3
- package/dist/actions/cancel-payment-link.d.cts.map +1 -1
- package/dist/actions/cancel-payment-link.d.mts +33 -3
- package/dist/actions/cancel-payment-link.d.mts.map +1 -1
- package/dist/actions/cancel-payment-link.mjs +14 -14
- package/dist/actions/cancel-payment-link.mjs.map +1 -1
- package/dist/actions/create-an-order.cjs +12 -12
- package/dist/actions/create-an-order.cjs.map +1 -1
- package/dist/actions/create-an-order.d.cts +27 -3
- package/dist/actions/create-an-order.d.cts.map +1 -1
- package/dist/actions/create-an-order.d.mts +27 -3
- package/dist/actions/create-an-order.d.mts.map +1 -1
- package/dist/actions/create-an-order.mjs +12 -12
- package/dist/actions/create-an-order.mjs.map +1 -1
- package/dist/actions/create-contact.cjs +9 -9
- package/dist/actions/create-contact.cjs.map +1 -1
- package/dist/actions/create-contact.d.cts +33 -3
- package/dist/actions/create-contact.d.cts.map +1 -1
- package/dist/actions/create-contact.d.mts +33 -3
- package/dist/actions/create-contact.d.mts.map +1 -1
- package/dist/actions/create-contact.mjs +9 -9
- package/dist/actions/create-contact.mjs.map +1 -1
- package/dist/actions/create-customer.cjs +5 -5
- package/dist/actions/create-customer.cjs.map +1 -1
- package/dist/actions/create-customer.d.cts +24 -3
- package/dist/actions/create-customer.d.cts.map +1 -1
- package/dist/actions/create-customer.d.mts +24 -3
- package/dist/actions/create-customer.d.mts.map +1 -1
- package/dist/actions/create-customer.mjs +5 -5
- package/dist/actions/create-customer.mjs.map +1 -1
- package/dist/actions/create-invoice.cjs +15 -15
- package/dist/actions/create-invoice.cjs.map +1 -1
- package/dist/actions/create-invoice.d.cts +222 -3
- package/dist/actions/create-invoice.d.cts.map +1 -1
- package/dist/actions/create-invoice.d.mts +222 -3
- package/dist/actions/create-invoice.d.mts.map +1 -1
- package/dist/actions/create-invoice.mjs +15 -15
- package/dist/actions/create-invoice.mjs.map +1 -1
- package/dist/actions/create-item.cjs +7 -7
- package/dist/actions/create-item.cjs.map +1 -1
- package/dist/actions/create-item.d.cts +29 -3
- package/dist/actions/create-item.d.cts.map +1 -1
- package/dist/actions/create-item.d.mts +29 -3
- package/dist/actions/create-item.d.mts.map +1 -1
- package/dist/actions/create-item.mjs +7 -7
- package/dist/actions/create-item.mjs.map +1 -1
- package/dist/actions/create-payment-link.cjs +10 -10
- package/dist/actions/create-payment-link.cjs.map +1 -1
- package/dist/actions/create-payment-link.d.cts +76 -3
- package/dist/actions/create-payment-link.d.cts.map +1 -1
- package/dist/actions/create-payment-link.d.mts +76 -3
- package/dist/actions/create-payment-link.d.mts.map +1 -1
- package/dist/actions/create-payment-link.mjs +10 -10
- package/dist/actions/create-payment-link.mjs.map +1 -1
- package/dist/actions/delete-invoice.cjs +1 -1
- package/dist/actions/delete-invoice.cjs.map +1 -1
- package/dist/actions/delete-invoice.d.cts +9 -3
- package/dist/actions/delete-invoice.d.cts.map +1 -1
- package/dist/actions/delete-invoice.d.mts +9 -3
- package/dist/actions/delete-invoice.d.mts.map +1 -1
- package/dist/actions/delete-invoice.mjs +1 -1
- package/dist/actions/delete-invoice.mjs.map +1 -1
- package/dist/actions/delete-item.cjs +1 -1
- package/dist/actions/delete-item.cjs.map +1 -1
- package/dist/actions/delete-item.d.cts +9 -3
- package/dist/actions/delete-item.d.cts.map +1 -1
- package/dist/actions/delete-item.d.mts +9 -3
- package/dist/actions/delete-item.d.mts.map +1 -1
- package/dist/actions/delete-item.mjs +1 -1
- package/dist/actions/delete-item.mjs.map +1 -1
- package/dist/actions/fetch-a-payment-link.cjs +6 -6
- package/dist/actions/fetch-a-payment-link.cjs.map +1 -1
- package/dist/actions/fetch-a-payment-link.d.cts +43 -3
- package/dist/actions/fetch-a-payment-link.d.cts.map +1 -1
- package/dist/actions/fetch-a-payment-link.d.mts +43 -3
- package/dist/actions/fetch-a-payment-link.d.mts.map +1 -1
- package/dist/actions/fetch-a-payment-link.mjs +6 -6
- package/dist/actions/fetch-a-payment-link.mjs.map +1 -1
- package/dist/actions/fetch-all-customers.cjs +9 -9
- package/dist/actions/fetch-all-customers.cjs.map +1 -1
- package/dist/actions/fetch-all-customers.d.cts +22 -3
- package/dist/actions/fetch-all-customers.d.cts.map +1 -1
- package/dist/actions/fetch-all-customers.d.mts +22 -3
- package/dist/actions/fetch-all-customers.d.mts.map +1 -1
- package/dist/actions/fetch-all-customers.mjs +9 -9
- package/dist/actions/fetch-all-customers.mjs.map +1 -1
- package/dist/actions/fetch-all-invoices.cjs +14 -14
- package/dist/actions/fetch-all-invoices.cjs.map +1 -1
- package/dist/actions/fetch-all-invoices.d.cts +115 -3
- package/dist/actions/fetch-all-invoices.d.cts.map +1 -1
- package/dist/actions/fetch-all-invoices.d.mts +115 -3
- package/dist/actions/fetch-all-invoices.d.mts.map +1 -1
- package/dist/actions/fetch-all-invoices.mjs +14 -14
- package/dist/actions/fetch-all-invoices.mjs.map +1 -1
- package/dist/actions/fetch-all-payment-links.cjs +9 -9
- package/dist/actions/fetch-all-payment-links.cjs.map +1 -1
- package/dist/actions/fetch-all-payment-links.d.cts +45 -3
- package/dist/actions/fetch-all-payment-links.d.cts.map +1 -1
- package/dist/actions/fetch-all-payment-links.d.mts +45 -3
- package/dist/actions/fetch-all-payment-links.d.mts.map +1 -1
- package/dist/actions/fetch-all-payment-links.mjs +9 -9
- package/dist/actions/fetch-all-payment-links.mjs.map +1 -1
- package/dist/actions/fetch-all-payments.cjs +15 -15
- package/dist/actions/fetch-all-payments.cjs.map +1 -1
- package/dist/actions/fetch-all-payments.d.cts +50 -3
- package/dist/actions/fetch-all-payments.d.cts.map +1 -1
- package/dist/actions/fetch-all-payments.d.mts +50 -3
- package/dist/actions/fetch-all-payments.d.mts.map +1 -1
- package/dist/actions/fetch-all-payments.mjs +15 -15
- package/dist/actions/fetch-all-payments.mjs.map +1 -1
- package/dist/actions/fetch-all-refunds-for-a-payment.cjs +3 -3
- package/dist/actions/fetch-all-refunds-for-a-payment.cjs.map +1 -1
- package/dist/actions/fetch-all-refunds-for-a-payment.d.cts +35 -3
- package/dist/actions/fetch-all-refunds-for-a-payment.d.cts.map +1 -1
- package/dist/actions/fetch-all-refunds-for-a-payment.d.mts +35 -3
- package/dist/actions/fetch-all-refunds-for-a-payment.d.mts.map +1 -1
- package/dist/actions/fetch-all-refunds-for-a-payment.mjs +3 -3
- package/dist/actions/fetch-all-refunds-for-a-payment.mjs.map +1 -1
- package/dist/actions/fetch-invoice-by-id.cjs +12 -12
- package/dist/actions/fetch-invoice-by-id.cjs.map +1 -1
- package/dist/actions/fetch-invoice-by-id.d.cts +97 -3
- package/dist/actions/fetch-invoice-by-id.d.cts.map +1 -1
- package/dist/actions/fetch-invoice-by-id.d.mts +97 -3
- package/dist/actions/fetch-invoice-by-id.d.mts.map +1 -1
- package/dist/actions/fetch-invoice-by-id.mjs +12 -12
- package/dist/actions/fetch-invoice-by-id.mjs.map +1 -1
- package/dist/actions/fetch-orders-by-id.cjs +10 -10
- package/dist/actions/fetch-orders-by-id.cjs.map +1 -1
- package/dist/actions/fetch-orders-by-id.d.cts +20 -3
- package/dist/actions/fetch-orders-by-id.d.cts.map +1 -1
- package/dist/actions/fetch-orders-by-id.d.mts +20 -3
- package/dist/actions/fetch-orders-by-id.d.mts.map +1 -1
- package/dist/actions/fetch-orders-by-id.mjs +10 -10
- package/dist/actions/fetch-orders-by-id.mjs.map +1 -1
- package/dist/actions/fetch-orders.cjs +13 -13
- package/dist/actions/fetch-orders.cjs.map +1 -1
- package/dist/actions/fetch-orders.d.cts +34 -3
- package/dist/actions/fetch-orders.d.cts.map +1 -1
- package/dist/actions/fetch-orders.d.mts +34 -3
- package/dist/actions/fetch-orders.d.mts.map +1 -1
- package/dist/actions/fetch-orders.mjs +13 -13
- package/dist/actions/fetch-orders.mjs.map +1 -1
- package/dist/actions/fetch-payments-by-order.cjs +11 -11
- package/dist/actions/fetch-payments-by-order.cjs.map +1 -1
- package/dist/actions/fetch-payments-by-order.d.cts +43 -3
- package/dist/actions/fetch-payments-by-order.d.cts.map +1 -1
- package/dist/actions/fetch-payments-by-order.d.mts +43 -3
- package/dist/actions/fetch-payments-by-order.d.mts.map +1 -1
- package/dist/actions/fetch-payments-by-order.mjs +11 -11
- package/dist/actions/fetch-payments-by-order.mjs.map +1 -1
- package/dist/actions/fetch-refunds.cjs +3 -3
- package/dist/actions/fetch-refunds.cjs.map +1 -1
- package/dist/actions/fetch-refunds.d.cts +33 -3
- package/dist/actions/fetch-refunds.d.cts.map +1 -1
- package/dist/actions/fetch-refunds.d.mts +33 -3
- package/dist/actions/fetch-refunds.d.mts.map +1 -1
- package/dist/actions/fetch-refunds.mjs +3 -3
- package/dist/actions/fetch-refunds.mjs.map +1 -1
- package/dist/actions/get-contact.cjs +8 -8
- package/dist/actions/get-contact.cjs.map +1 -1
- package/dist/actions/get-contact.d.cts +19 -3
- package/dist/actions/get-contact.d.cts.map +1 -1
- package/dist/actions/get-contact.d.mts +19 -3
- package/dist/actions/get-contact.d.mts.map +1 -1
- package/dist/actions/get-contact.mjs +8 -8
- package/dist/actions/get-contact.mjs.map +1 -1
- package/dist/actions/get-customer.cjs +4 -4
- package/dist/actions/get-customer.cjs.map +1 -1
- package/dist/actions/get-customer.d.cts +16 -3
- package/dist/actions/get-customer.d.cts.map +1 -1
- package/dist/actions/get-customer.d.mts +16 -3
- package/dist/actions/get-customer.d.mts.map +1 -1
- package/dist/actions/get-customer.mjs +4 -4
- package/dist/actions/get-customer.mjs.map +1 -1
- package/dist/actions/get-fund-account.cjs +11 -11
- package/dist/actions/get-fund-account.cjs.map +1 -1
- package/dist/actions/get-fund-account.d.cts +32 -3
- package/dist/actions/get-fund-account.d.cts.map +1 -1
- package/dist/actions/get-fund-account.d.mts +32 -3
- package/dist/actions/get-fund-account.d.mts.map +1 -1
- package/dist/actions/get-fund-account.mjs +11 -11
- package/dist/actions/get-fund-account.mjs.map +1 -1
- package/dist/actions/get-item.cjs +10 -10
- package/dist/actions/get-item.cjs.map +1 -1
- package/dist/actions/get-item.d.cts +24 -3
- package/dist/actions/get-item.d.cts.map +1 -1
- package/dist/actions/get-item.d.mts +24 -3
- package/dist/actions/get-item.d.mts.map +1 -1
- package/dist/actions/get-item.mjs +10 -10
- package/dist/actions/get-item.mjs.map +1 -1
- package/dist/actions/get-settlement-recon.cjs +2 -2
- package/dist/actions/get-settlement-recon.cjs.map +1 -1
- package/dist/actions/get-settlement-recon.d.cts +28 -3
- package/dist/actions/get-settlement-recon.d.cts.map +1 -1
- package/dist/actions/get-settlement-recon.d.mts +28 -3
- package/dist/actions/get-settlement-recon.d.mts.map +1 -1
- package/dist/actions/get-settlement-recon.mjs +2 -2
- package/dist/actions/get-settlement-recon.mjs.map +1 -1
- package/dist/actions/get-transfer-reversals.cjs +2 -2
- package/dist/actions/get-transfer-reversals.cjs.map +1 -1
- package/dist/actions/get-transfer-reversals.d.cts +32 -3
- package/dist/actions/get-transfer-reversals.d.cts.map +1 -1
- package/dist/actions/get-transfer-reversals.d.mts +32 -3
- package/dist/actions/get-transfer-reversals.d.mts.map +1 -1
- package/dist/actions/get-transfer-reversals.mjs +2 -2
- package/dist/actions/get-transfer-reversals.mjs.map +1 -1
- package/dist/actions/issue-an-invoice.cjs +12 -12
- package/dist/actions/issue-an-invoice.cjs.map +1 -1
- package/dist/actions/issue-an-invoice.d.cts +97 -3
- package/dist/actions/issue-an-invoice.d.cts.map +1 -1
- package/dist/actions/issue-an-invoice.d.mts +97 -3
- package/dist/actions/issue-an-invoice.d.mts.map +1 -1
- package/dist/actions/issue-an-invoice.mjs +12 -12
- package/dist/actions/issue-an-invoice.mjs.map +1 -1
- package/dist/actions/list-customer-tokens.cjs +10 -10
- package/dist/actions/list-customer-tokens.cjs.map +1 -1
- package/dist/actions/list-customer-tokens.d.cts +40 -3
- package/dist/actions/list-customer-tokens.d.cts.map +1 -1
- package/dist/actions/list-customer-tokens.d.mts +40 -3
- package/dist/actions/list-customer-tokens.d.mts.map +1 -1
- package/dist/actions/list-customer-tokens.mjs +10 -10
- package/dist/actions/list-customer-tokens.mjs.map +1 -1
- package/dist/actions/list-disputes.cjs +3 -3
- package/dist/actions/list-disputes.cjs.map +1 -1
- package/dist/actions/list-disputes.d.cts +46 -3
- package/dist/actions/list-disputes.d.cts.map +1 -1
- package/dist/actions/list-disputes.d.mts +46 -3
- package/dist/actions/list-disputes.d.mts.map +1 -1
- package/dist/actions/list-disputes.mjs +3 -3
- package/dist/actions/list-disputes.mjs.map +1 -1
- package/dist/actions/list-fund-accounts.cjs +5 -5
- package/dist/actions/list-fund-accounts.cjs.map +1 -1
- package/dist/actions/list-fund-accounts.d.cts +40 -3
- package/dist/actions/list-fund-accounts.d.cts.map +1 -1
- package/dist/actions/list-fund-accounts.d.mts +40 -3
- package/dist/actions/list-fund-accounts.d.mts.map +1 -1
- package/dist/actions/list-fund-accounts.mjs +5 -5
- package/dist/actions/list-fund-accounts.mjs.map +1 -1
- package/dist/actions/list-fund-validations.cjs +6 -6
- package/dist/actions/list-fund-validations.cjs.map +1 -1
- package/dist/actions/list-fund-validations.d.cts +45 -3
- package/dist/actions/list-fund-validations.d.cts.map +1 -1
- package/dist/actions/list-fund-validations.d.mts +45 -3
- package/dist/actions/list-fund-validations.d.mts.map +1 -1
- package/dist/actions/list-fund-validations.mjs +6 -6
- package/dist/actions/list-fund-validations.mjs.map +1 -1
- package/dist/actions/list-items.cjs +2 -2
- package/dist/actions/list-items.cjs.map +1 -1
- package/dist/actions/list-items.d.cts +36 -3
- package/dist/actions/list-items.d.cts.map +1 -1
- package/dist/actions/list-items.d.mts +36 -3
- package/dist/actions/list-items.d.mts.map +1 -1
- package/dist/actions/list-items.mjs +2 -2
- package/dist/actions/list-items.mjs.map +1 -1
- package/dist/actions/list-payment-downtimes.cjs.map +1 -1
- package/dist/actions/list-payment-downtimes.d.cts +3 -3
- package/dist/actions/list-payment-downtimes.d.cts.map +1 -1
- package/dist/actions/list-payment-downtimes.d.mts +3 -3
- package/dist/actions/list-payment-downtimes.d.mts.map +1 -1
- package/dist/actions/list-payment-downtimes.mjs.map +1 -1
- package/dist/actions/notify-payment-link.cjs +1 -1
- package/dist/actions/notify-payment-link.cjs.map +1 -1
- package/dist/actions/notify-payment-link.d.cts +14 -3
- package/dist/actions/notify-payment-link.d.cts.map +1 -1
- package/dist/actions/notify-payment-link.d.mts +14 -3
- package/dist/actions/notify-payment-link.d.mts.map +1 -1
- package/dist/actions/notify-payment-link.mjs +1 -1
- package/dist/actions/notify-payment-link.mjs.map +1 -1
- package/dist/actions/send-or-resend-notification.cjs +1 -1
- package/dist/actions/send-or-resend-notification.cjs.map +1 -1
- package/dist/actions/send-or-resend-notification.d.cts +14 -3
- package/dist/actions/send-or-resend-notification.d.cts.map +1 -1
- package/dist/actions/send-or-resend-notification.d.mts +14 -3
- package/dist/actions/send-or-resend-notification.d.mts.map +1 -1
- package/dist/actions/send-or-resend-notification.mjs +1 -1
- package/dist/actions/send-or-resend-notification.mjs.map +1 -1
- package/dist/actions/update-contact.cjs +9 -9
- package/dist/actions/update-contact.cjs.map +1 -1
- package/dist/actions/update-contact.d.cts +35 -3
- package/dist/actions/update-contact.d.cts.map +1 -1
- package/dist/actions/update-contact.d.mts +35 -3
- package/dist/actions/update-contact.d.mts.map +1 -1
- package/dist/actions/update-contact.mjs +9 -9
- package/dist/actions/update-contact.mjs.map +1 -1
- package/dist/actions/update-customer.cjs +8 -8
- package/dist/actions/update-customer.cjs.map +1 -1
- package/dist/actions/update-customer.d.cts +22 -3
- package/dist/actions/update-customer.d.cts.map +1 -1
- package/dist/actions/update-customer.d.mts +22 -3
- package/dist/actions/update-customer.d.mts.map +1 -1
- package/dist/actions/update-customer.mjs +8 -8
- package/dist/actions/update-customer.mjs.map +1 -1
- package/dist/actions/update-invoice.cjs +14 -14
- package/dist/actions/update-invoice.cjs.map +1 -1
- package/dist/actions/update-invoice.d.cts +228 -3
- package/dist/actions/update-invoice.d.cts.map +1 -1
- package/dist/actions/update-invoice.d.mts +228 -3
- package/dist/actions/update-invoice.d.mts.map +1 -1
- package/dist/actions/update-invoice.mjs +14 -14
- package/dist/actions/update-invoice.mjs.map +1 -1
- package/dist/actions/update-item.cjs +10 -10
- package/dist/actions/update-item.cjs.map +1 -1
- package/dist/actions/update-item.d.cts +30 -3
- package/dist/actions/update-item.d.cts.map +1 -1
- package/dist/actions/update-item.d.mts +30 -3
- package/dist/actions/update-item.d.mts.map +1 -1
- package/dist/actions/update-item.mjs +10 -10
- package/dist/actions/update-item.mjs.map +1 -1
- package/dist/actions/update-order.cjs +12 -12
- package/dist/actions/update-order.cjs.map +1 -1
- package/dist/actions/update-order.d.cts +22 -3
- package/dist/actions/update-order.d.cts.map +1 -1
- package/dist/actions/update-order.d.mts +22 -3
- package/dist/actions/update-order.d.mts.map +1 -1
- package/dist/actions/update-order.mjs +12 -12
- package/dist/actions/update-order.mjs.map +1 -1
- package/dist/actions/update-payment-link.cjs +12 -12
- package/dist/actions/update-payment-link.cjs.map +1 -1
- package/dist/actions/update-payment-link.d.cts +52 -3
- package/dist/actions/update-payment-link.d.cts.map +1 -1
- package/dist/actions/update-payment-link.d.mts +52 -3
- package/dist/actions/update-payment-link.d.mts.map +1 -1
- package/dist/actions/update-payment-link.mjs +12 -12
- package/dist/actions/update-payment-link.mjs.map +1 -1
- package/dist/catalog.cjs +13 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +12 -0
- package/dist/catalog.d.mts +12 -0
- package/dist/catalog.mjs +13 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -2,7 +2,7 @@ import { action } from "../action.mjs";
|
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/actions/create-payment-link.ts
|
|
4
4
|
const RazorpayCreatePaymentLinkInput = z.object({
|
|
5
|
-
notes: z.
|
|
5
|
+
notes: z.record(z.string(), z.unknown()).describe("Key-value pairs for storing additional information").optional(),
|
|
6
6
|
amount: z.number().int().describe("Amount to be paid in currency subunits (e.g., paise for INR). For example, 100000 paise = 1000 INR"),
|
|
7
7
|
notify: z.object({
|
|
8
8
|
sms: z.boolean().describe("Whether to send SMS notifications to the customer").optional(),
|
|
@@ -31,39 +31,39 @@ const RazorpayCreatePaymentLinkInput = z.object({
|
|
|
31
31
|
const RazorpayCreatePaymentLink_NotifyResponseSchema = z.object({
|
|
32
32
|
sms: z.boolean().describe("SMS notification enabled").nullable().optional(),
|
|
33
33
|
email: z.boolean().describe("Email notification enabled").nullable().optional()
|
|
34
|
-
}).describe("Notification settings in the response.");
|
|
34
|
+
}).passthrough().describe("Notification settings in the response.");
|
|
35
35
|
const RazorpayCreatePaymentLink_CustomerResponseSchema = z.object({
|
|
36
36
|
name: z.string().describe("Name of the customer").nullable().optional(),
|
|
37
37
|
email: z.string().describe("Email address of the customer").nullable().optional(),
|
|
38
38
|
contact: z.string().describe("Phone number of the customer").nullable().optional()
|
|
39
|
-
}).describe("Customer details in the response.");
|
|
39
|
+
}).passthrough().describe("Customer details in the response.");
|
|
40
40
|
const razorpayCreatePaymentLink = action("RAZORPAY_CREATE_PAYMENT_LINK", {
|
|
41
41
|
slug: "razorpay-create-payment-link",
|
|
42
42
|
name: "Create Payment Link",
|
|
43
43
|
description: "Tool to create a payment link for collecting payments via a shareable URL. Use when you need to generate a payment link for a customer to complete payment online.",
|
|
44
44
|
input: RazorpayCreatePaymentLinkInput,
|
|
45
45
|
output: z.object({
|
|
46
|
-
id: z.string().describe("Unique identifier of the payment link"),
|
|
46
|
+
id: z.string().describe("Unique identifier of the payment link").nullable(),
|
|
47
47
|
notes: z.record(z.string(), z.unknown()).describe("Additional notes").nullable().optional(),
|
|
48
|
-
amount: z.number().int().describe("Amount in currency subunits"),
|
|
48
|
+
amount: z.number().int().describe("Amount in currency subunits").nullable(),
|
|
49
49
|
notify: RazorpayCreatePaymentLink_NotifyResponseSchema.nullable().optional(),
|
|
50
|
-
status: z.string().describe("Status of the payment link (e.g., created, issued)"),
|
|
50
|
+
status: z.string().describe("Status of the payment link (e.g., created, issued)").nullable(),
|
|
51
51
|
user_id: z.string().describe("User ID who created the link").nullable().optional(),
|
|
52
|
-
currency: z.string().describe("Currency code"),
|
|
52
|
+
currency: z.string().describe("Currency code").nullable(),
|
|
53
53
|
customer: RazorpayCreatePaymentLink_CustomerResponseSchema.nullable().optional(),
|
|
54
54
|
expire_by: z.number().int().describe("Unix timestamp of expiry").nullable().optional(),
|
|
55
55
|
reminders: z.array(z.string()).describe("List of reminder statuses").nullable().optional(),
|
|
56
56
|
short_url: z.string().describe("Short URL for the payment link").nullable().optional(),
|
|
57
|
-
created_at: z.number().int().describe("Unix timestamp of creation"),
|
|
57
|
+
created_at: z.number().int().describe("Unix timestamp of creation").nullable(),
|
|
58
58
|
expired_at: z.number().int().describe("Unix timestamp when expired").nullable().optional(),
|
|
59
|
-
amount_paid: z.number().int().describe("Amount paid so far"),
|
|
59
|
+
amount_paid: z.number().int().describe("Amount paid so far").nullable(),
|
|
60
60
|
description: z.string().describe("Description of the payment link").nullable().optional(),
|
|
61
61
|
callback_url: z.string().describe("Callback URL").nullable().optional(),
|
|
62
62
|
cancelled_at: z.number().int().describe("Unix timestamp when cancelled").nullable().optional(),
|
|
63
63
|
reference_id: z.string().describe("Reference ID").nullable().optional(),
|
|
64
64
|
callback_method: z.string().describe("Callback HTTP method").nullable().optional(),
|
|
65
65
|
reminder_enable: z.boolean().describe("Whether reminders are enabled").nullable().optional()
|
|
66
|
-
}).describe("Response schema for created payment link.")
|
|
66
|
+
}).passthrough().describe("Response schema for created payment link.")
|
|
67
67
|
});
|
|
68
68
|
//#endregion
|
|
69
69
|
export { razorpayCreatePaymentLink };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-payment-link.mjs","names":[],"sources":["../../src/actions/create-payment-link.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayCreatePaymentLinkInput
|
|
1
|
+
{"version":3,"file":"create-payment-link.mjs","names":[],"sources":["../../src/actions/create-payment-link.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayCreatePaymentLinkInput = z.object({\n notes: z.record(z.string(), z.unknown()).describe(\"Key-value pairs for storing additional information\").optional(),\n amount: z.number().int().describe(\"Amount to be paid in currency subunits (e.g., paise for INR). For example, 100000 paise = 1000 INR\"),\n notify: z.object({\n sms: z.boolean().describe(\"Whether to send SMS notifications to the customer\").optional(),\n email: z.boolean().describe(\"Whether to send email notifications to the customer\").optional(),\n}).describe(\"Notification preferences for the payment link.\").optional(),\n currency: z.enum([\"INR\", \"USD\", \"EUR\", \"GBP\", \"AED\", \"SGD\"]).describe(\"Currency code for the payment\"),\n customer: z.object({\n name: z.string().describe(\"Name of the customer\").optional(),\n email: z.string().describe(\"Email address of the customer\").optional(),\n contact: z.string().describe(\"Phone number of the customer in international format\").optional(),\n}).describe(\"Customer details for the payment link.\").optional(),\n expire_by: z.number().int().describe(\"Unix timestamp after which the payment link expires\").optional(),\n description: z.string().describe(\"Description of the payment link purpose\").optional(),\n callback_url: z.string().describe(\"URL to redirect customer after payment completion\").optional(),\n reference_id: z.string().describe(\"Reference ID for the payment link in your system\").optional(),\n callback_method: z.string().describe(\"HTTP method for callback (get or post)\").optional(),\n reminder_enable: z.boolean().describe(\"Whether to enable payment reminders\").optional(),\n}).describe(\"Request schema for creating a payment link.\");\nconst RazorpayCreatePaymentLink_NotifyResponseSchema = z.object({\n sms: z.boolean().describe(\"SMS notification enabled\").nullable().optional(),\n email: z.boolean().describe(\"Email notification enabled\").nullable().optional(),\n}).passthrough().describe(\"Notification settings in the response.\");\nconst RazorpayCreatePaymentLink_CustomerResponseSchema = z.object({\n name: z.string().describe(\"Name of the customer\").nullable().optional(),\n email: z.string().describe(\"Email address of the customer\").nullable().optional(),\n contact: z.string().describe(\"Phone number of the customer\").nullable().optional(),\n}).passthrough().describe(\"Customer details in the response.\");\nexport const RazorpayCreatePaymentLinkOutput = z.object({\n id: z.string().describe(\"Unique identifier of the payment link\").nullable(),\n notes: z.record(z.string(), z.unknown()).describe(\"Additional notes\").nullable().optional(),\n amount: z.number().int().describe(\"Amount in currency subunits\").nullable(),\n notify: RazorpayCreatePaymentLink_NotifyResponseSchema.nullable().optional(),\n status: z.string().describe(\"Status of the payment link (e.g., created, issued)\").nullable(),\n user_id: z.string().describe(\"User ID who created the link\").nullable().optional(),\n currency: z.string().describe(\"Currency code\").nullable(),\n customer: RazorpayCreatePaymentLink_CustomerResponseSchema.nullable().optional(),\n expire_by: z.number().int().describe(\"Unix timestamp of expiry\").nullable().optional(),\n reminders: z.array(z.string()).describe(\"List of reminder statuses\").nullable().optional(),\n short_url: z.string().describe(\"Short URL for the payment link\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp of creation\").nullable(),\n expired_at: z.number().int().describe(\"Unix timestamp when expired\").nullable().optional(),\n amount_paid: z.number().int().describe(\"Amount paid so far\").nullable(),\n description: z.string().describe(\"Description of the payment link\").nullable().optional(),\n callback_url: z.string().describe(\"Callback URL\").nullable().optional(),\n cancelled_at: z.number().int().describe(\"Unix timestamp when cancelled\").nullable().optional(),\n reference_id: z.string().describe(\"Reference ID\").nullable().optional(),\n callback_method: z.string().describe(\"Callback HTTP method\").nullable().optional(),\n reminder_enable: z.boolean().describe(\"Whether reminders are enabled\").nullable().optional(),\n}).passthrough().describe(\"Response schema for created payment link.\");\n\nexport const razorpayCreatePaymentLink = action(\"RAZORPAY_CREATE_PAYMENT_LINK\", {\n slug: \"razorpay-create-payment-link\",\n name: \"Create Payment Link\",\n description: \"Tool to create a payment link for collecting payments via a shareable URL. Use when you need to generate a payment link for a customer to complete payment online.\",\n input: RazorpayCreatePaymentLinkInput,\n output: RazorpayCreatePaymentLinkOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiC,EAAE,OAAO;CACrD,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACjH,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oGAAoG;CACtI,QAAQ,EAAE,OAAO;EACjB,KAAK,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EACxF,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC9F,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACrE,UAAU,EAAE,KAAK;EAAC;EAAO;EAAO;EAAO;EAAO;EAAO;CAAK,CAAC,CAAC,CAAC,SAAS,+BAA+B;CACrG,UAAU,EAAE,OAAO;EACnB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;EAC3D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EACrE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAChG,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC7D,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACrG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC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SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtE,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjF,iBAAiB,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAOhB;AACV,CAAC"}
|
|
@@ -2,7 +2,7 @@ const require_action = require("../action.cjs");
|
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/actions/delete-invoice.ts
|
|
4
4
|
const RazorpayDeleteInvoiceInput = zod.z.object({ invoice_id: zod.z.string().describe("The unique identifier of the invoice to delete.") }).describe("Request parameters to delete an invoice in Razorpay.");
|
|
5
|
-
const RazorpayDeleteInvoiceOutput = zod.z.object({ details: zod.z.array(zod.z.unknown()).describe("Empty list indicating successful deletion").nullable().optional() }).describe("Response for a successful invoice deletion. Returns an empty list when deletion is successful.");
|
|
5
|
+
const RazorpayDeleteInvoiceOutput = zod.z.object({ details: zod.z.array(zod.z.unknown()).describe("Empty list indicating successful deletion").nullable().optional() }).passthrough().describe("Response for a successful invoice deletion. Returns an empty list when deletion is successful.");
|
|
6
6
|
const razorpayDeleteInvoice = require_action.action("RAZORPAY_DELETE_INVOICE", {
|
|
7
7
|
slug: "razorpay-delete-invoice",
|
|
8
8
|
name: "Delete Invoice",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-invoice.cjs","names":["z","action"],"sources":["../../src/actions/delete-invoice.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayDeleteInvoiceInput
|
|
1
|
+
{"version":3,"file":"delete-invoice.cjs","names":["z","action"],"sources":["../../src/actions/delete-invoice.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayDeleteInvoiceInput = z.object({\n invoice_id: z.string().describe(\"The unique identifier of the invoice to delete.\"),\n}).describe(\"Request parameters to delete an invoice in Razorpay.\");\nexport const RazorpayDeleteInvoiceOutput = z.object({\n details: z.array(z.unknown()).describe(\"Empty list indicating successful deletion\").nullable().optional(),\n}).passthrough().describe(\"Response for a successful invoice deletion. Returns an empty list when deletion is successful.\");\n\nexport const razorpayDeleteInvoice = action(\"RAZORPAY_DELETE_INVOICE\", {\n slug: \"razorpay-delete-invoice\",\n name: \"Delete Invoice\",\n description: \"Tool to delete an invoice in Razorpay. Use when you need to permanently remove an invoice from the system. Note: Only invoices in 'draft' status can be deleted. Invoices in other statuses (issued, paid, cancelled) cannot be deleted.\",\n input: RazorpayDeleteInvoiceInput,\n output: RazorpayDeleteInvoiceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,EACnF,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gGAAgG;AAE1H,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/delete-invoice.d.ts
|
|
4
|
-
declare const RazorpayDeleteInvoiceInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RazorpayDeleteInvoiceInput: z.ZodObject<{
|
|
5
|
+
invoice_id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const RazorpayDeleteInvoiceOutput: z.ZodObject<{
|
|
8
|
+
details: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
|
|
9
|
+
}, z.core.$loose>;
|
|
10
|
+
declare const razorpayDeleteInvoice: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
11
|
+
invoice_id: string;
|
|
12
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
13
|
//#endregion
|
|
8
14
|
export { razorpayDeleteInvoice };
|
|
9
15
|
//# sourceMappingURL=delete-invoice.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-invoice.d.cts","names":[],"sources":["../../src/actions/delete-invoice.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"delete-invoice.d.cts","names":[],"sources":["../../src/actions/delete-invoice.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAG1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAI3B,qBAAA,gCAAqB,wBAAA"}
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/delete-invoice.d.ts
|
|
4
|
-
declare const RazorpayDeleteInvoiceInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RazorpayDeleteInvoiceInput: z.ZodObject<{
|
|
5
|
+
invoice_id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const RazorpayDeleteInvoiceOutput: z.ZodObject<{
|
|
8
|
+
details: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
|
|
9
|
+
}, z.core.$loose>;
|
|
10
|
+
declare const razorpayDeleteInvoice: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
11
|
+
invoice_id: string;
|
|
12
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
13
|
//#endregion
|
|
8
14
|
export { razorpayDeleteInvoice };
|
|
9
15
|
//# sourceMappingURL=delete-invoice.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-invoice.d.mts","names":[],"sources":["../../src/actions/delete-invoice.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"delete-invoice.d.mts","names":[],"sources":["../../src/actions/delete-invoice.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAG1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAI3B,qBAAA,gCAAqB,wBAAA"}
|
|
@@ -5,7 +5,7 @@ const razorpayDeleteInvoice = action("RAZORPAY_DELETE_INVOICE", {
|
|
|
5
5
|
name: "Delete Invoice",
|
|
6
6
|
description: "Tool to delete an invoice in Razorpay. Use when you need to permanently remove an invoice from the system. Note: Only invoices in 'draft' status can be deleted. Invoices in other statuses (issued, paid, cancelled) cannot be deleted.",
|
|
7
7
|
input: z.object({ invoice_id: z.string().describe("The unique identifier of the invoice to delete.") }).describe("Request parameters to delete an invoice in Razorpay."),
|
|
8
|
-
output: z.object({ details: z.array(z.unknown()).describe("Empty list indicating successful deletion").nullable().optional() }).describe("Response for a successful invoice deletion. Returns an empty list when deletion is successful.")
|
|
8
|
+
output: z.object({ details: z.array(z.unknown()).describe("Empty list indicating successful deletion").nullable().optional() }).passthrough().describe("Response for a successful invoice deletion. Returns an empty list when deletion is successful.")
|
|
9
9
|
});
|
|
10
10
|
//#endregion
|
|
11
11
|
export { razorpayDeleteInvoice };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-invoice.mjs","names":[],"sources":["../../src/actions/delete-invoice.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayDeleteInvoiceInput
|
|
1
|
+
{"version":3,"file":"delete-invoice.mjs","names":[],"sources":["../../src/actions/delete-invoice.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayDeleteInvoiceInput = z.object({\n invoice_id: z.string().describe(\"The unique identifier of the invoice to delete.\"),\n}).describe(\"Request parameters to delete an invoice in Razorpay.\");\nexport const RazorpayDeleteInvoiceOutput = z.object({\n details: z.array(z.unknown()).describe(\"Empty list indicating successful deletion\").nullable().optional(),\n}).passthrough().describe(\"Response for a successful invoice deletion. Returns an empty list when deletion is successful.\");\n\nexport const razorpayDeleteInvoice = action(\"RAZORPAY_DELETE_INVOICE\", {\n slug: \"razorpay-delete-invoice\",\n name: \"Delete Invoice\",\n description: \"Tool to delete an invoice in Razorpay. Use when you need to permanently remove an invoice from the system. Note: Only invoices in 'draft' status can be deleted. Invoices in other statuses (issued, paid, cancelled) cannot be deleted.\",\n input: RazorpayDeleteInvoiceInput,\n output: RazorpayDeleteInvoiceOutput,\n});\n"],"mappings":";;AAWA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAXwC,EAAE,OAAO,EACjD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,EACnF,CAAC,CAAC,CAAC,SAAS,sDASH;CACP,QATyC,EAAE,OAAO,EAClD,SAAS,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gGAOhB;AACV,CAAC"}
|
|
@@ -2,7 +2,7 @@ const require_action = require("../action.cjs");
|
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/actions/delete-item.ts
|
|
4
4
|
const RazorpayDeleteItemInput = zod.z.object({ item_id: zod.z.string().describe("The unique identifier of the item to delete. This is the ID returned when creating an item.") }).describe("Request model for deleting an item.");
|
|
5
|
-
const RazorpayDeleteItemOutput = zod.z.object({ success: zod.z.boolean().default(true).describe("Indicates successful deletion. Razorpay returns an empty array on successful deletion.").nullable().optional() }).describe("Response model for a deleted item.");
|
|
5
|
+
const RazorpayDeleteItemOutput = zod.z.object({ success: zod.z.boolean().default(true).describe("Indicates successful deletion. Razorpay returns an empty array on successful deletion.").nullable().optional() }).passthrough().describe("Response model for a deleted item.");
|
|
6
6
|
const razorpayDeleteItem = require_action.action("RAZORPAY_DELETE_ITEM", {
|
|
7
7
|
slug: "razorpay-delete-item",
|
|
8
8
|
name: "Delete item",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-item.cjs","names":["z","action"],"sources":["../../src/actions/delete-item.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayDeleteItemInput
|
|
1
|
+
{"version":3,"file":"delete-item.cjs","names":["z","action"],"sources":["../../src/actions/delete-item.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayDeleteItemInput = z.object({\n item_id: z.string().describe(\"The unique identifier of the item to delete. This is the ID returned when creating an item.\"),\n}).describe(\"Request model for deleting an item.\");\nexport const RazorpayDeleteItemOutput = z.object({\n success: z.boolean().default(true).describe(\"Indicates successful deletion. Razorpay returns an empty array on successful deletion.\").nullable().optional(),\n}).passthrough().describe(\"Response model for a deleted item.\");\n\nexport const razorpayDeleteItem = action(\"RAZORPAY_DELETE_ITEM\", {\n slug: \"razorpay-delete-item\",\n name: \"Delete item\",\n description: \"Tool to delete an existing item from Razorpay. Use when you need to permanently remove an item from the system. Items can only be deleted if they are not associated with any invoices.\",\n input: RazorpayDeleteItemInput,\n output: RazorpayDeleteItemOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F,EAC5H,CAAC,CAAC,CAAC,SAAS,qCAAqC;AACjD,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC5J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAE9D,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/delete-item.d.ts
|
|
4
|
-
declare const RazorpayDeleteItemInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RazorpayDeleteItemInput: z.ZodObject<{
|
|
5
|
+
item_id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const RazorpayDeleteItemOutput: z.ZodObject<{
|
|
8
|
+
success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
9
|
+
}, z.core.$loose>;
|
|
10
|
+
declare const razorpayDeleteItem: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
11
|
+
item_id: string;
|
|
12
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
13
|
//#endregion
|
|
8
14
|
export { razorpayDeleteItem };
|
|
9
15
|
//# sourceMappingURL=delete-item.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-item.d.cts","names":[],"sources":["../../src/actions/delete-item.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"delete-item.d.cts","names":[],"sources":["../../src/actions/delete-item.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAGvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAIxB,kBAAA,gCAAkB,wBAAA"}
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/delete-item.d.ts
|
|
4
|
-
declare const RazorpayDeleteItemInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RazorpayDeleteItemInput: z.ZodObject<{
|
|
5
|
+
item_id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const RazorpayDeleteItemOutput: z.ZodObject<{
|
|
8
|
+
success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
9
|
+
}, z.core.$loose>;
|
|
10
|
+
declare const razorpayDeleteItem: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
11
|
+
item_id: string;
|
|
12
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
13
|
//#endregion
|
|
8
14
|
export { razorpayDeleteItem };
|
|
9
15
|
//# sourceMappingURL=delete-item.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-item.d.mts","names":[],"sources":["../../src/actions/delete-item.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"delete-item.d.mts","names":[],"sources":["../../src/actions/delete-item.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAGvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAIxB,kBAAA,gCAAkB,wBAAA"}
|
|
@@ -5,7 +5,7 @@ const razorpayDeleteItem = action("RAZORPAY_DELETE_ITEM", {
|
|
|
5
5
|
name: "Delete item",
|
|
6
6
|
description: "Tool to delete an existing item from Razorpay. Use when you need to permanently remove an item from the system. Items can only be deleted if they are not associated with any invoices.",
|
|
7
7
|
input: z.object({ item_id: z.string().describe("The unique identifier of the item to delete. This is the ID returned when creating an item.") }).describe("Request model for deleting an item."),
|
|
8
|
-
output: z.object({ success: z.boolean().default(true).describe("Indicates successful deletion. Razorpay returns an empty array on successful deletion.").nullable().optional() }).describe("Response model for a deleted item.")
|
|
8
|
+
output: z.object({ success: z.boolean().default(true).describe("Indicates successful deletion. Razorpay returns an empty array on successful deletion.").nullable().optional() }).passthrough().describe("Response model for a deleted item.")
|
|
9
9
|
});
|
|
10
10
|
//#endregion
|
|
11
11
|
export { razorpayDeleteItem };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-item.mjs","names":[],"sources":["../../src/actions/delete-item.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayDeleteItemInput
|
|
1
|
+
{"version":3,"file":"delete-item.mjs","names":[],"sources":["../../src/actions/delete-item.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayDeleteItemInput = z.object({\n item_id: z.string().describe(\"The unique identifier of the item to delete. This is the ID returned when creating an item.\"),\n}).describe(\"Request model for deleting an item.\");\nexport const RazorpayDeleteItemOutput = z.object({\n success: z.boolean().default(true).describe(\"Indicates successful deletion. Razorpay returns an empty array on successful deletion.\").nullable().optional(),\n}).passthrough().describe(\"Response model for a deleted item.\");\n\nexport const razorpayDeleteItem = action(\"RAZORPAY_DELETE_ITEM\", {\n slug: \"razorpay-delete-item\",\n name: \"Delete item\",\n description: \"Tool to delete an existing item from Razorpay. Use when you need to permanently remove an item from the system. Items can only be deleted if they are not associated with any invoices.\",\n input: RazorpayDeleteItemInput,\n output: RazorpayDeleteItemOutput,\n});\n"],"mappings":";;AAWA,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAXqC,EAAE,OAAO,EAC9C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F,EAC5H,CAAC,CAAC,CAAC,SAAS,qCASH;CACP,QATsC,EAAE,OAAO,EAC/C,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC5J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAOhB;AACV,CAAC"}
|
|
@@ -5,15 +5,15 @@ const RazorpayFetchAPaymentLinkInput = zod.z.object({ plink_id: zod.z.string().d
|
|
|
5
5
|
const RazorpayFetchAPaymentLink_NotifySettingsSchema = zod.z.object({
|
|
6
6
|
sms: zod.z.boolean().describe("Whether SMS notifications are enabled.").nullable().optional(),
|
|
7
7
|
email: zod.z.boolean().describe("Whether email notifications are enabled.").nullable().optional()
|
|
8
|
-
}).describe("Notification settings for the payment link.");
|
|
8
|
+
}).passthrough().describe("Notification settings for the payment link.");
|
|
9
9
|
const RazorpayFetchAPaymentLink_CustomerDetailsSchema = zod.z.object({
|
|
10
10
|
name: zod.z.string().describe("Customer's name.").nullable().optional(),
|
|
11
11
|
email: zod.z.string().describe("Customer's email address.").nullable().optional(),
|
|
12
12
|
contact: zod.z.string().describe("Customer's contact number.").nullable().optional()
|
|
13
|
-
}).describe("Customer information associated with the payment link.");
|
|
13
|
+
}).passthrough().describe("Customer information associated with the payment link.");
|
|
14
14
|
const RazorpayFetchAPaymentLinkOutput = zod.z.object({
|
|
15
15
|
id: zod.z.string().describe("Unique identifier of the payment link.").nullable().optional(),
|
|
16
|
-
notes: zod.z.
|
|
16
|
+
notes: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Key-value pairs for storing additional information.").nullable().optional(),
|
|
17
17
|
amount: zod.z.number().int().describe("The amount to be paid in currency subunits (paise for INR).").nullable().optional(),
|
|
18
18
|
notify: RazorpayFetchAPaymentLink_NotifySettingsSchema.nullable().optional(),
|
|
19
19
|
source: zod.z.string().describe("Source from where the payment link was created.").nullable().optional(),
|
|
@@ -21,10 +21,10 @@ const RazorpayFetchAPaymentLinkOutput = zod.z.object({
|
|
|
21
21
|
user_id: zod.z.string().describe("Identifier of the user who created the payment link.").nullable().optional(),
|
|
22
22
|
currency: zod.z.string().describe("The currency of the payment link (e.g., INR, USD).").nullable().optional(),
|
|
23
23
|
customer: zod.z.union([RazorpayFetchAPaymentLink_CustomerDetailsSchema, zod.z.array(zod.z.unknown())]).nullable().optional(),
|
|
24
|
-
payments: zod.z.array(zod.z.
|
|
24
|
+
payments: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("List of payment objects associated with this payment link.").nullable().optional(),
|
|
25
25
|
upi_link: zod.z.boolean().describe("Whether this is a UPI-specific payment link.").nullable().optional(),
|
|
26
26
|
expire_by: zod.z.number().int().describe("Unix timestamp when the payment link expires.").nullable().optional(),
|
|
27
|
-
reminders: zod.z.union([zod.z.array(zod.z.
|
|
27
|
+
reminders: zod.z.union([zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())), zod.z.record(zod.z.string(), zod.z.unknown())]).nullable().optional(),
|
|
28
28
|
short_url: zod.z.string().describe("Short URL of the payment link for sharing.").nullable().optional(),
|
|
29
29
|
source_id: zod.z.string().describe("Identifier of the source entity.").nullable().optional(),
|
|
30
30
|
created_at: zod.z.number().int().describe("Unix timestamp when the payment link was created.").nullable().optional(),
|
|
@@ -40,7 +40,7 @@ const RazorpayFetchAPaymentLinkOutput = zod.z.object({
|
|
|
40
40
|
callback_method: zod.z.string().describe("HTTP method for the callback URL.").nullable().optional(),
|
|
41
41
|
reminder_enable: zod.z.boolean().describe("Whether payment reminders are enabled.").nullable().optional(),
|
|
42
42
|
first_min_partial_amount: zod.z.number().int().describe("Minimum amount for the first partial payment in currency subunits.").nullable().optional()
|
|
43
|
-
}).describe("Response model containing complete payment link details.");
|
|
43
|
+
}).passthrough().describe("Response model containing complete payment link details.");
|
|
44
44
|
const razorpayFetchAPaymentLink = require_action.action("RAZORPAY_FETCH_A_PAYMENT_LINK", {
|
|
45
45
|
slug: "razorpay-fetch-a-payment-link",
|
|
46
46
|
name: "Fetch a Payment Link",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-a-payment-link.cjs","names":["z","action"],"sources":["../../src/actions/fetch-a-payment-link.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayFetchAPaymentLinkInput
|
|
1
|
+
{"version":3,"file":"fetch-a-payment-link.cjs","names":["z","action"],"sources":["../../src/actions/fetch-a-payment-link.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayFetchAPaymentLinkInput = z.object({\n plink_id: z.string().describe(\"The unique identifier of the payment link to fetch.\"),\n}).describe(\"Request model for fetching a specific payment link by ID.\");\nconst RazorpayFetchAPaymentLink_NotifySettingsSchema = z.object({\n sms: z.boolean().describe(\"Whether SMS notifications are enabled.\").nullable().optional(),\n email: z.boolean().describe(\"Whether email notifications are enabled.\").nullable().optional(),\n}).passthrough().describe(\"Notification settings for the payment link.\");\nconst RazorpayFetchAPaymentLink_CustomerDetailsSchema = z.object({\n name: z.string().describe(\"Customer's name.\").nullable().optional(),\n email: z.string().describe(\"Customer's email address.\").nullable().optional(),\n contact: z.string().describe(\"Customer's contact number.\").nullable().optional(),\n}).passthrough().describe(\"Customer information associated with the payment link.\");\nexport const RazorpayFetchAPaymentLinkOutput = z.object({\n id: z.string().describe(\"Unique identifier of the payment link.\").nullable().optional(),\n notes: z.record(z.string(), z.unknown()).describe(\"Key-value pairs for storing additional information.\").nullable().optional(),\n amount: z.number().int().describe(\"The amount to be paid in currency subunits (paise for INR).\").nullable().optional(),\n notify: RazorpayFetchAPaymentLink_NotifySettingsSchema.nullable().optional(),\n source: z.string().describe(\"Source from where the payment link was created.\").nullable().optional(),\n status: z.string().describe(\"Current status of the payment link (e.g., created, paid, cancelled, expired).\").nullable().optional(),\n user_id: z.string().describe(\"Identifier of the user who created the payment link.\").nullable().optional(),\n currency: z.string().describe(\"The currency of the payment link (e.g., INR, USD).\").nullable().optional(),\n customer: z.union([RazorpayFetchAPaymentLink_CustomerDetailsSchema, z.array(z.unknown())]).nullable().optional(),\n payments: z.array(z.record(z.string(), z.unknown())).describe(\"List of payment objects associated with this payment link.\").nullable().optional(),\n upi_link: z.boolean().describe(\"Whether this is a UPI-specific 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.record(z.string(), z.unknown())), z.record(z.string(), z.unknown())]).nullable().optional(),\n short_url: z.string().describe(\"Short URL of the payment link for sharing.\").nullable().optional(),\n source_id: z.string().describe(\"Identifier of the source entity.\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the payment link was created.\").nullable().optional(),\n deleted_at: z.number().int().describe(\"Unix timestamp when the payment link was deleted.\").nullable().optional(),\n expired_at: z.number().int().describe(\"Unix timestamp when the payment link actually 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(\"The amount already paid against this payment link in currency subunits.\").nullable().optional(),\n description: z.string().describe(\"Description of the payment link purpose.\").nullable().optional(),\n callback_url: z.string().describe(\"URL to be called after payment completion.\").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 provided during payment link creation.\").nullable().optional(),\n accept_partial: z.boolean().describe(\"Whether partial payments are accepted for this payment link.\").nullable().optional(),\n callback_method: z.string().describe(\"HTTP method for the callback URL.\").nullable().optional(),\n reminder_enable: z.boolean().describe(\"Whether payment reminders are enabled.\").nullable().optional(),\n first_min_partial_amount: z.number().int().describe(\"Minimum amount for the first partial payment in currency subunits.\").nullable().optional(),\n}).passthrough().describe(\"Response model containing complete payment link details.\");\n\nexport const razorpayFetchAPaymentLink = action(\"RAZORPAY_FETCH_A_PAYMENT_LINK\", {\n slug: \"razorpay-fetch-a-payment-link\",\n name: \"Fetch a Payment Link\",\n description: \"Tool to retrieve details of a specific payment link by its ID. Use when you need to check the status, amount, customer details, or other attributes of an existing payment link.\",\n input: RazorpayFetchAPaymentLinkInput,\n output: RazorpayFetchAPaymentLinkOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,EACrF,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,iDAAiDA,IAAAA,EAAE,OAAO;CAC9D,KAAKA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AACvE,MAAM,kDAAkDA,IAAAA,EAAE,OAAO;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAAwD;AAClF,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,OAAOA,IAAAA,EAA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AAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,iBAAiBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,0BAA0BA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D;AAEpF,MAAa,4BAA4BC,eAAAA,OAAO,iCAAiC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,49 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/fetch-a-payment-link.d.ts
|
|
4
|
-
declare const RazorpayFetchAPaymentLinkInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RazorpayFetchAPaymentLinkInput: z.ZodObject<{
|
|
5
|
+
plink_id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const RazorpayFetchAPaymentLinkOutput: z.ZodObject<{
|
|
8
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
notes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
10
|
+
amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
11
|
+
notify: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
12
|
+
sms: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
13
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
14
|
+
}, z.core.$loose>>>;
|
|
15
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
customer: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
20
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
contact: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
}, z.core.$loose>, z.ZodArray<z.ZodUnknown>]>>>;
|
|
24
|
+
payments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
25
|
+
upi_link: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
26
|
+
expire_by: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
|
+
reminders: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
|
|
28
|
+
short_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
source_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
31
|
+
deleted_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
32
|
+
expired_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
33
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
34
|
+
amount_paid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
35
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
+
callback_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
cancelled_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
38
|
+
reference_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
accept_partial: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
40
|
+
callback_method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
reminder_enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
42
|
+
first_min_partial_amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
43
|
+
}, z.core.$loose>;
|
|
44
|
+
declare const razorpayFetchAPaymentLink: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
45
|
+
plink_id: string;
|
|
46
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
47
|
//#endregion
|
|
8
48
|
export { razorpayFetchAPaymentLink };
|
|
9
49
|
//# sourceMappingURL=fetch-a-payment-link.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-a-payment-link.d.cts","names":[],"sources":["../../src/actions/fetch-a-payment-link.ts"],"mappings":";;;cAIa,8BAAA,
|
|
1
|
+
{"version":3,"file":"fetch-a-payment-link.d.cts","names":[],"sources":["../../src/actions/fetch-a-payment-link.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAY9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA+B/B,yBAAA,gCAAyB,wBAAA"}
|
|
@@ -1,9 +1,49 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/fetch-a-payment-link.d.ts
|
|
4
|
-
declare const RazorpayFetchAPaymentLinkInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RazorpayFetchAPaymentLinkInput: z.ZodObject<{
|
|
5
|
+
plink_id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const RazorpayFetchAPaymentLinkOutput: z.ZodObject<{
|
|
8
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
notes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
10
|
+
amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
11
|
+
notify: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
12
|
+
sms: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
13
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
14
|
+
}, z.core.$loose>>>;
|
|
15
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
customer: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
20
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
contact: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
}, z.core.$loose>, z.ZodArray<z.ZodUnknown>]>>>;
|
|
24
|
+
payments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
25
|
+
upi_link: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
26
|
+
expire_by: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
|
+
reminders: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
|
|
28
|
+
short_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
source_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
31
|
+
deleted_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
32
|
+
expired_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
33
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
34
|
+
amount_paid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
35
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
+
callback_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
cancelled_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
38
|
+
reference_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
accept_partial: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
40
|
+
callback_method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
reminder_enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
42
|
+
first_min_partial_amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
43
|
+
}, z.core.$loose>;
|
|
44
|
+
declare const razorpayFetchAPaymentLink: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
45
|
+
plink_id: string;
|
|
46
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
47
|
//#endregion
|
|
8
48
|
export { razorpayFetchAPaymentLink };
|
|
9
49
|
//# sourceMappingURL=fetch-a-payment-link.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-a-payment-link.d.mts","names":[],"sources":["../../src/actions/fetch-a-payment-link.ts"],"mappings":";;;cAIa,8BAAA,
|
|
1
|
+
{"version":3,"file":"fetch-a-payment-link.d.mts","names":[],"sources":["../../src/actions/fetch-a-payment-link.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAY9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA+B/B,yBAAA,gCAAyB,wBAAA"}
|
|
@@ -5,12 +5,12 @@ const RazorpayFetchAPaymentLinkInput = z.object({ plink_id: z.string().describe(
|
|
|
5
5
|
const RazorpayFetchAPaymentLink_NotifySettingsSchema = z.object({
|
|
6
6
|
sms: z.boolean().describe("Whether SMS notifications are enabled.").nullable().optional(),
|
|
7
7
|
email: z.boolean().describe("Whether email notifications are enabled.").nullable().optional()
|
|
8
|
-
}).describe("Notification settings for the payment link.");
|
|
8
|
+
}).passthrough().describe("Notification settings for the payment link.");
|
|
9
9
|
const RazorpayFetchAPaymentLink_CustomerDetailsSchema = z.object({
|
|
10
10
|
name: z.string().describe("Customer's name.").nullable().optional(),
|
|
11
11
|
email: z.string().describe("Customer's email address.").nullable().optional(),
|
|
12
12
|
contact: z.string().describe("Customer's contact number.").nullable().optional()
|
|
13
|
-
}).describe("Customer information associated with the payment link.");
|
|
13
|
+
}).passthrough().describe("Customer information associated with the payment link.");
|
|
14
14
|
const razorpayFetchAPaymentLink = action("RAZORPAY_FETCH_A_PAYMENT_LINK", {
|
|
15
15
|
slug: "razorpay-fetch-a-payment-link",
|
|
16
16
|
name: "Fetch a Payment Link",
|
|
@@ -18,7 +18,7 @@ const razorpayFetchAPaymentLink = action("RAZORPAY_FETCH_A_PAYMENT_LINK", {
|
|
|
18
18
|
input: RazorpayFetchAPaymentLinkInput,
|
|
19
19
|
output: z.object({
|
|
20
20
|
id: z.string().describe("Unique identifier of the payment link.").nullable().optional(),
|
|
21
|
-
notes: z.
|
|
21
|
+
notes: z.record(z.string(), z.unknown()).describe("Key-value pairs for storing additional information.").nullable().optional(),
|
|
22
22
|
amount: z.number().int().describe("The amount to be paid in currency subunits (paise for INR).").nullable().optional(),
|
|
23
23
|
notify: RazorpayFetchAPaymentLink_NotifySettingsSchema.nullable().optional(),
|
|
24
24
|
source: z.string().describe("Source from where the payment link was created.").nullable().optional(),
|
|
@@ -26,10 +26,10 @@ const razorpayFetchAPaymentLink = action("RAZORPAY_FETCH_A_PAYMENT_LINK", {
|
|
|
26
26
|
user_id: z.string().describe("Identifier of the user who created the payment link.").nullable().optional(),
|
|
27
27
|
currency: z.string().describe("The currency of the payment link (e.g., INR, USD).").nullable().optional(),
|
|
28
28
|
customer: z.union([RazorpayFetchAPaymentLink_CustomerDetailsSchema, z.array(z.unknown())]).nullable().optional(),
|
|
29
|
-
payments: z.array(z.
|
|
29
|
+
payments: z.array(z.record(z.string(), z.unknown())).describe("List of payment objects associated with this payment link.").nullable().optional(),
|
|
30
30
|
upi_link: z.boolean().describe("Whether this is a UPI-specific payment link.").nullable().optional(),
|
|
31
31
|
expire_by: z.number().int().describe("Unix timestamp when the payment link expires.").nullable().optional(),
|
|
32
|
-
reminders: z.union([z.array(z.
|
|
32
|
+
reminders: z.union([z.array(z.record(z.string(), z.unknown())), z.record(z.string(), z.unknown())]).nullable().optional(),
|
|
33
33
|
short_url: z.string().describe("Short URL of the payment link for sharing.").nullable().optional(),
|
|
34
34
|
source_id: z.string().describe("Identifier of the source entity.").nullable().optional(),
|
|
35
35
|
created_at: z.number().int().describe("Unix timestamp when the payment link was created.").nullable().optional(),
|
|
@@ -45,7 +45,7 @@ const razorpayFetchAPaymentLink = action("RAZORPAY_FETCH_A_PAYMENT_LINK", {
|
|
|
45
45
|
callback_method: z.string().describe("HTTP method for the callback URL.").nullable().optional(),
|
|
46
46
|
reminder_enable: z.boolean().describe("Whether payment reminders are enabled.").nullable().optional(),
|
|
47
47
|
first_min_partial_amount: z.number().int().describe("Minimum amount for the first partial payment in currency subunits.").nullable().optional()
|
|
48
|
-
}).describe("Response model containing complete payment link details.")
|
|
48
|
+
}).passthrough().describe("Response model containing complete payment link details.")
|
|
49
49
|
});
|
|
50
50
|
//#endregion
|
|
51
51
|
export { razorpayFetchAPaymentLink };
|