@keystrokehq/razorpay 0.1.4 → 0.1.6
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 +1 -0
- package/dist/actions/cancel-invoice.cjs.map +1 -1
- package/dist/actions/cancel-invoice.d.cts +3 -3
- package/dist/actions/cancel-invoice.d.cts.map +1 -1
- package/dist/actions/cancel-invoice.d.mts +3 -3
- package/dist/actions/cancel-invoice.d.mts.map +1 -1
- package/dist/actions/cancel-invoice.mjs +1 -0
- package/dist/actions/cancel-invoice.mjs.map +1 -1
- package/dist/actions/cancel-payment-link.cjs +1 -0
- package/dist/actions/cancel-payment-link.cjs.map +1 -1
- package/dist/actions/cancel-payment-link.d.cts +3 -3
- package/dist/actions/cancel-payment-link.d.cts.map +1 -1
- package/dist/actions/cancel-payment-link.d.mts +3 -3
- package/dist/actions/cancel-payment-link.d.mts.map +1 -1
- package/dist/actions/cancel-payment-link.mjs +1 -0
- package/dist/actions/cancel-payment-link.mjs.map +1 -1
- package/dist/actions/create-an-order.cjs +1 -0
- package/dist/actions/create-an-order.cjs.map +1 -1
- package/dist/actions/create-an-order.d.cts +3 -7
- package/dist/actions/create-an-order.d.cts.map +1 -1
- package/dist/actions/create-an-order.d.mts +3 -7
- package/dist/actions/create-an-order.d.mts.map +1 -1
- package/dist/actions/create-an-order.mjs +1 -0
- package/dist/actions/create-an-order.mjs.map +1 -1
- package/dist/actions/create-contact.cjs +1 -0
- package/dist/actions/create-contact.cjs.map +1 -1
- package/dist/actions/create-contact.d.cts +3 -8
- package/dist/actions/create-contact.d.cts.map +1 -1
- package/dist/actions/create-contact.d.mts +3 -8
- package/dist/actions/create-contact.d.mts.map +1 -1
- package/dist/actions/create-contact.mjs +1 -0
- package/dist/actions/create-contact.mjs.map +1 -1
- package/dist/actions/create-customer.cjs +1 -0
- package/dist/actions/create-customer.cjs.map +1 -1
- package/dist/actions/create-customer.d.cts +3 -7
- package/dist/actions/create-customer.d.cts.map +1 -1
- package/dist/actions/create-customer.d.mts +3 -7
- package/dist/actions/create-customer.d.mts.map +1 -1
- package/dist/actions/create-customer.mjs +1 -0
- package/dist/actions/create-customer.mjs.map +1 -1
- package/dist/actions/create-invoice.cjs +1 -0
- package/dist/actions/create-invoice.cjs.map +1 -1
- package/dist/actions/create-invoice.d.cts +3 -66
- package/dist/actions/create-invoice.d.cts.map +1 -1
- package/dist/actions/create-invoice.d.mts +3 -66
- package/dist/actions/create-invoice.d.mts.map +1 -1
- package/dist/actions/create-invoice.mjs +1 -0
- package/dist/actions/create-invoice.mjs.map +1 -1
- package/dist/actions/create-item.cjs +1 -0
- package/dist/actions/create-item.cjs.map +1 -1
- package/dist/actions/create-item.d.cts +3 -6
- package/dist/actions/create-item.d.cts.map +1 -1
- package/dist/actions/create-item.d.mts +3 -6
- package/dist/actions/create-item.d.mts.map +1 -1
- package/dist/actions/create-item.mjs +1 -0
- package/dist/actions/create-item.mjs.map +1 -1
- package/dist/actions/create-payment-link.cjs +1 -0
- package/dist/actions/create-payment-link.cjs.map +1 -1
- package/dist/actions/create-payment-link.d.cts +3 -20
- package/dist/actions/create-payment-link.d.cts.map +1 -1
- package/dist/actions/create-payment-link.d.mts +3 -20
- package/dist/actions/create-payment-link.d.mts.map +1 -1
- package/dist/actions/create-payment-link.mjs +1 -0
- package/dist/actions/create-payment-link.mjs.map +1 -1
- package/dist/actions/delete-invoice.cjs +1 -0
- package/dist/actions/delete-invoice.cjs.map +1 -1
- package/dist/actions/delete-invoice.d.cts +3 -3
- package/dist/actions/delete-invoice.d.cts.map +1 -1
- package/dist/actions/delete-invoice.d.mts +3 -3
- package/dist/actions/delete-invoice.d.mts.map +1 -1
- package/dist/actions/delete-invoice.mjs +1 -0
- package/dist/actions/delete-invoice.mjs.map +1 -1
- package/dist/actions/delete-item.cjs +1 -0
- package/dist/actions/delete-item.cjs.map +1 -1
- package/dist/actions/delete-item.d.cts +3 -3
- package/dist/actions/delete-item.d.cts.map +1 -1
- package/dist/actions/delete-item.d.mts +3 -3
- package/dist/actions/delete-item.d.mts.map +1 -1
- package/dist/actions/delete-item.mjs +1 -0
- package/dist/actions/delete-item.mjs.map +1 -1
- package/dist/actions/fetch-a-payment-link.cjs +1 -0
- package/dist/actions/fetch-a-payment-link.cjs.map +1 -1
- package/dist/actions/fetch-a-payment-link.d.cts +3 -3
- package/dist/actions/fetch-a-payment-link.d.cts.map +1 -1
- package/dist/actions/fetch-a-payment-link.d.mts +3 -3
- package/dist/actions/fetch-a-payment-link.d.mts.map +1 -1
- package/dist/actions/fetch-a-payment-link.mjs +1 -0
- package/dist/actions/fetch-a-payment-link.mjs.map +1 -1
- package/dist/actions/fetch-all-customers.cjs +1 -0
- package/dist/actions/fetch-all-customers.cjs.map +1 -1
- package/dist/actions/fetch-all-customers.d.cts +3 -4
- package/dist/actions/fetch-all-customers.d.cts.map +1 -1
- package/dist/actions/fetch-all-customers.d.mts +3 -4
- package/dist/actions/fetch-all-customers.d.mts.map +1 -1
- package/dist/actions/fetch-all-customers.mjs +1 -0
- package/dist/actions/fetch-all-customers.mjs.map +1 -1
- package/dist/actions/fetch-all-invoices.cjs +1 -0
- package/dist/actions/fetch-all-invoices.cjs.map +1 -1
- package/dist/actions/fetch-all-invoices.d.cts +3 -10
- package/dist/actions/fetch-all-invoices.d.cts.map +1 -1
- package/dist/actions/fetch-all-invoices.d.mts +3 -10
- package/dist/actions/fetch-all-invoices.d.mts.map +1 -1
- package/dist/actions/fetch-all-invoices.mjs +1 -0
- package/dist/actions/fetch-all-invoices.mjs.map +1 -1
- package/dist/actions/fetch-all-payment-links.cjs +1 -0
- package/dist/actions/fetch-all-payment-links.cjs.map +1 -1
- package/dist/actions/fetch-all-payment-links.d.cts +3 -8
- package/dist/actions/fetch-all-payment-links.d.cts.map +1 -1
- package/dist/actions/fetch-all-payment-links.d.mts +3 -8
- package/dist/actions/fetch-all-payment-links.d.mts.map +1 -1
- package/dist/actions/fetch-all-payment-links.mjs +1 -0
- package/dist/actions/fetch-all-payment-links.mjs.map +1 -1
- package/dist/actions/fetch-all-payments.cjs +1 -0
- package/dist/actions/fetch-all-payments.cjs.map +1 -1
- package/dist/actions/fetch-all-payments.d.cts +3 -6
- package/dist/actions/fetch-all-payments.d.cts.map +1 -1
- package/dist/actions/fetch-all-payments.d.mts +3 -6
- package/dist/actions/fetch-all-payments.d.mts.map +1 -1
- package/dist/actions/fetch-all-payments.mjs +1 -0
- package/dist/actions/fetch-all-payments.mjs.map +1 -1
- package/dist/actions/fetch-all-refunds-for-a-payment.cjs +1 -0
- package/dist/actions/fetch-all-refunds-for-a-payment.cjs.map +1 -1
- package/dist/actions/fetch-all-refunds-for-a-payment.d.cts +3 -7
- 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 +3 -7
- package/dist/actions/fetch-all-refunds-for-a-payment.d.mts.map +1 -1
- package/dist/actions/fetch-all-refunds-for-a-payment.mjs +1 -0
- package/dist/actions/fetch-all-refunds-for-a-payment.mjs.map +1 -1
- package/dist/actions/fetch-invoice-by-id.cjs +1 -0
- package/dist/actions/fetch-invoice-by-id.cjs.map +1 -1
- package/dist/actions/fetch-invoice-by-id.d.cts +3 -3
- package/dist/actions/fetch-invoice-by-id.d.cts.map +1 -1
- package/dist/actions/fetch-invoice-by-id.d.mts +3 -3
- package/dist/actions/fetch-invoice-by-id.d.mts.map +1 -1
- package/dist/actions/fetch-invoice-by-id.mjs +1 -0
- package/dist/actions/fetch-invoice-by-id.mjs.map +1 -1
- package/dist/actions/fetch-orders-by-id.cjs +1 -0
- package/dist/actions/fetch-orders-by-id.cjs.map +1 -1
- package/dist/actions/fetch-orders-by-id.d.cts +3 -3
- package/dist/actions/fetch-orders-by-id.d.cts.map +1 -1
- package/dist/actions/fetch-orders-by-id.d.mts +3 -3
- package/dist/actions/fetch-orders-by-id.d.mts.map +1 -1
- package/dist/actions/fetch-orders-by-id.mjs +1 -0
- package/dist/actions/fetch-orders-by-id.mjs.map +1 -1
- package/dist/actions/fetch-orders.cjs +1 -0
- package/dist/actions/fetch-orders.cjs.map +1 -1
- package/dist/actions/fetch-orders.d.cts +3 -8
- package/dist/actions/fetch-orders.d.cts.map +1 -1
- package/dist/actions/fetch-orders.d.mts +3 -8
- package/dist/actions/fetch-orders.d.mts.map +1 -1
- package/dist/actions/fetch-orders.mjs +1 -0
- package/dist/actions/fetch-orders.mjs.map +1 -1
- package/dist/actions/fetch-payments-by-order.cjs +1 -0
- package/dist/actions/fetch-payments-by-order.cjs.map +1 -1
- package/dist/actions/fetch-payments-by-order.d.cts +3 -3
- package/dist/actions/fetch-payments-by-order.d.cts.map +1 -1
- package/dist/actions/fetch-payments-by-order.d.mts +3 -3
- package/dist/actions/fetch-payments-by-order.d.mts.map +1 -1
- package/dist/actions/fetch-payments-by-order.mjs +1 -0
- package/dist/actions/fetch-payments-by-order.mjs.map +1 -1
- package/dist/actions/fetch-refunds.cjs +1 -0
- package/dist/actions/fetch-refunds.cjs.map +1 -1
- package/dist/actions/fetch-refunds.d.cts +3 -6
- package/dist/actions/fetch-refunds.d.cts.map +1 -1
- package/dist/actions/fetch-refunds.d.mts +3 -6
- package/dist/actions/fetch-refunds.d.mts.map +1 -1
- package/dist/actions/fetch-refunds.mjs +1 -0
- package/dist/actions/fetch-refunds.mjs.map +1 -1
- package/dist/actions/get-contact.cjs +1 -0
- package/dist/actions/get-contact.cjs.map +1 -1
- package/dist/actions/get-contact.d.cts +3 -3
- package/dist/actions/get-contact.d.cts.map +1 -1
- package/dist/actions/get-contact.d.mts +3 -3
- package/dist/actions/get-contact.d.mts.map +1 -1
- package/dist/actions/get-contact.mjs +1 -0
- package/dist/actions/get-contact.mjs.map +1 -1
- package/dist/actions/get-customer.cjs +1 -0
- package/dist/actions/get-customer.cjs.map +1 -1
- package/dist/actions/get-customer.d.cts +3 -3
- package/dist/actions/get-customer.d.cts.map +1 -1
- package/dist/actions/get-customer.d.mts +3 -3
- package/dist/actions/get-customer.d.mts.map +1 -1
- package/dist/actions/get-customer.mjs +1 -0
- package/dist/actions/get-customer.mjs.map +1 -1
- package/dist/actions/get-fund-account.cjs +1 -0
- package/dist/actions/get-fund-account.cjs.map +1 -1
- package/dist/actions/get-fund-account.d.cts +3 -3
- package/dist/actions/get-fund-account.d.cts.map +1 -1
- package/dist/actions/get-fund-account.d.mts +3 -3
- package/dist/actions/get-fund-account.d.mts.map +1 -1
- package/dist/actions/get-fund-account.mjs +1 -0
- package/dist/actions/get-fund-account.mjs.map +1 -1
- package/dist/actions/get-item.cjs +1 -0
- package/dist/actions/get-item.cjs.map +1 -1
- package/dist/actions/get-item.d.cts +3 -3
- package/dist/actions/get-item.d.cts.map +1 -1
- package/dist/actions/get-item.d.mts +3 -3
- package/dist/actions/get-item.d.mts.map +1 -1
- package/dist/actions/get-item.mjs +1 -0
- package/dist/actions/get-item.mjs.map +1 -1
- package/dist/actions/get-settlement-recon.cjs +1 -0
- package/dist/actions/get-settlement-recon.cjs.map +1 -1
- package/dist/actions/get-settlement-recon.d.cts +3 -7
- package/dist/actions/get-settlement-recon.d.cts.map +1 -1
- package/dist/actions/get-settlement-recon.d.mts +3 -7
- package/dist/actions/get-settlement-recon.d.mts.map +1 -1
- package/dist/actions/get-settlement-recon.mjs +1 -0
- package/dist/actions/get-settlement-recon.mjs.map +1 -1
- package/dist/actions/get-transfer-reversals.cjs +1 -0
- package/dist/actions/get-transfer-reversals.cjs.map +1 -1
- package/dist/actions/get-transfer-reversals.d.cts +3 -7
- package/dist/actions/get-transfer-reversals.d.cts.map +1 -1
- package/dist/actions/get-transfer-reversals.d.mts +3 -7
- package/dist/actions/get-transfer-reversals.d.mts.map +1 -1
- package/dist/actions/get-transfer-reversals.mjs +1 -0
- package/dist/actions/get-transfer-reversals.mjs.map +1 -1
- package/dist/actions/issue-an-invoice.cjs +1 -0
- package/dist/actions/issue-an-invoice.cjs.map +1 -1
- package/dist/actions/issue-an-invoice.d.cts +3 -3
- package/dist/actions/issue-an-invoice.d.cts.map +1 -1
- package/dist/actions/issue-an-invoice.d.mts +3 -3
- package/dist/actions/issue-an-invoice.d.mts.map +1 -1
- package/dist/actions/issue-an-invoice.mjs +1 -0
- package/dist/actions/issue-an-invoice.mjs.map +1 -1
- package/dist/actions/list-customer-tokens.cjs +1 -0
- package/dist/actions/list-customer-tokens.cjs.map +1 -1
- package/dist/actions/list-customer-tokens.d.cts +3 -3
- package/dist/actions/list-customer-tokens.d.cts.map +1 -1
- package/dist/actions/list-customer-tokens.d.mts +3 -3
- package/dist/actions/list-customer-tokens.d.mts.map +1 -1
- package/dist/actions/list-customer-tokens.mjs +1 -0
- package/dist/actions/list-customer-tokens.mjs.map +1 -1
- package/dist/actions/list-disputes.cjs +1 -0
- package/dist/actions/list-disputes.cjs.map +1 -1
- package/dist/actions/list-disputes.d.cts +3 -6
- package/dist/actions/list-disputes.d.cts.map +1 -1
- package/dist/actions/list-disputes.d.mts +3 -6
- package/dist/actions/list-disputes.d.mts.map +1 -1
- package/dist/actions/list-disputes.mjs +1 -0
- package/dist/actions/list-disputes.mjs.map +1 -1
- package/dist/actions/list-fund-accounts.cjs +1 -0
- package/dist/actions/list-fund-accounts.cjs.map +1 -1
- package/dist/actions/list-fund-accounts.d.cts +3 -6
- package/dist/actions/list-fund-accounts.d.cts.map +1 -1
- package/dist/actions/list-fund-accounts.d.mts +3 -6
- package/dist/actions/list-fund-accounts.d.mts.map +1 -1
- package/dist/actions/list-fund-accounts.mjs +1 -0
- package/dist/actions/list-fund-accounts.mjs.map +1 -1
- package/dist/actions/list-fund-validations.cjs +1 -0
- package/dist/actions/list-fund-validations.cjs.map +1 -1
- package/dist/actions/list-fund-validations.d.cts +3 -6
- package/dist/actions/list-fund-validations.d.cts.map +1 -1
- package/dist/actions/list-fund-validations.d.mts +3 -6
- package/dist/actions/list-fund-validations.d.mts.map +1 -1
- package/dist/actions/list-fund-validations.mjs +1 -0
- package/dist/actions/list-fund-validations.mjs.map +1 -1
- package/dist/actions/list-items.cjs +1 -0
- package/dist/actions/list-items.cjs.map +1 -1
- package/dist/actions/list-items.d.cts +3 -7
- package/dist/actions/list-items.d.cts.map +1 -1
- package/dist/actions/list-items.d.mts +3 -7
- package/dist/actions/list-items.d.mts.map +1 -1
- package/dist/actions/list-items.mjs +1 -0
- package/dist/actions/list-items.mjs.map +1 -1
- package/dist/actions/list-payment-downtimes.cjs +1 -0
- package/dist/actions/list-payment-downtimes.cjs.map +1 -1
- package/dist/actions/list-payment-downtimes.d.cts +3 -1
- package/dist/actions/list-payment-downtimes.d.cts.map +1 -1
- package/dist/actions/list-payment-downtimes.d.mts +3 -1
- package/dist/actions/list-payment-downtimes.d.mts.map +1 -1
- package/dist/actions/list-payment-downtimes.mjs +1 -0
- package/dist/actions/list-payment-downtimes.mjs.map +1 -1
- package/dist/actions/notify-payment-link.cjs +1 -0
- package/dist/actions/notify-payment-link.cjs.map +1 -1
- package/dist/actions/notify-payment-link.d.cts +3 -4
- package/dist/actions/notify-payment-link.d.cts.map +1 -1
- package/dist/actions/notify-payment-link.d.mts +3 -4
- package/dist/actions/notify-payment-link.d.mts.map +1 -1
- package/dist/actions/notify-payment-link.mjs +1 -0
- package/dist/actions/notify-payment-link.mjs.map +1 -1
- package/dist/actions/send-or-resend-notification.cjs +1 -0
- package/dist/actions/send-or-resend-notification.cjs.map +1 -1
- package/dist/actions/send-or-resend-notification.d.cts +3 -4
- package/dist/actions/send-or-resend-notification.d.cts.map +1 -1
- package/dist/actions/send-or-resend-notification.d.mts +3 -4
- package/dist/actions/send-or-resend-notification.d.mts.map +1 -1
- package/dist/actions/send-or-resend-notification.mjs +1 -0
- package/dist/actions/send-or-resend-notification.mjs.map +1 -1
- package/dist/actions/update-contact.cjs +1 -0
- package/dist/actions/update-contact.cjs.map +1 -1
- package/dist/actions/update-contact.d.cts +3 -9
- package/dist/actions/update-contact.d.cts.map +1 -1
- package/dist/actions/update-contact.d.mts +3 -9
- package/dist/actions/update-contact.d.mts.map +1 -1
- package/dist/actions/update-contact.mjs +1 -0
- package/dist/actions/update-contact.mjs.map +1 -1
- package/dist/actions/update-customer.cjs +1 -0
- package/dist/actions/update-customer.cjs.map +1 -1
- package/dist/actions/update-customer.d.cts +3 -6
- package/dist/actions/update-customer.d.cts.map +1 -1
- package/dist/actions/update-customer.d.mts +3 -6
- package/dist/actions/update-customer.d.mts.map +1 -1
- package/dist/actions/update-customer.mjs +1 -0
- package/dist/actions/update-customer.mjs.map +1 -1
- package/dist/actions/update-invoice.cjs +1 -0
- package/dist/actions/update-invoice.cjs.map +1 -1
- package/dist/actions/update-invoice.d.cts +3 -69
- package/dist/actions/update-invoice.d.cts.map +1 -1
- package/dist/actions/update-invoice.d.mts +3 -69
- package/dist/actions/update-invoice.d.mts.map +1 -1
- package/dist/actions/update-invoice.mjs +1 -0
- package/dist/actions/update-invoice.mjs.map +1 -1
- package/dist/actions/update-item.cjs +1 -0
- package/dist/actions/update-item.cjs.map +1 -1
- package/dist/actions/update-item.d.cts +3 -6
- package/dist/actions/update-item.d.cts.map +1 -1
- package/dist/actions/update-item.d.mts +3 -6
- package/dist/actions/update-item.d.mts.map +1 -1
- package/dist/actions/update-item.mjs +1 -0
- package/dist/actions/update-item.mjs.map +1 -1
- package/dist/actions/update-order.cjs +1 -0
- package/dist/actions/update-order.cjs.map +1 -1
- package/dist/actions/update-order.d.cts +3 -4
- package/dist/actions/update-order.d.cts.map +1 -1
- package/dist/actions/update-order.d.mts +3 -4
- package/dist/actions/update-order.d.mts.map +1 -1
- package/dist/actions/update-order.mjs +1 -0
- package/dist/actions/update-order.mjs.map +1 -1
- package/dist/actions/update-payment-link.cjs +1 -0
- package/dist/actions/update-payment-link.cjs.map +1 -1
- package/dist/actions/update-payment-link.d.cts +3 -8
- package/dist/actions/update-payment-link.d.cts.map +1 -1
- package/dist/actions/update-payment-link.d.mts +3 -8
- package/dist/actions/update-payment-link.d.mts.map +1 -1
- package/dist/actions/update-payment-link.mjs +1 -0
- package/dist/actions/update-payment-link.mjs.map +1 -1
- package/dist/app.cjs +9 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +8 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +8 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +6 -2
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { razorpay } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/fetch-all-payments.d.ts
|
|
@@ -45,12 +47,7 @@ declare const RazorpayFetchAllPaymentsOutput: z.ZodObject<{
|
|
|
45
47
|
}, z.core.$loose>>;
|
|
46
48
|
entity: z.ZodNullable<z.ZodString>;
|
|
47
49
|
}, z.core.$loose>;
|
|
48
|
-
declare const razorpayFetchAllPayments:
|
|
49
|
-
to?: number | undefined;
|
|
50
|
-
from?: number | undefined;
|
|
51
|
-
skip?: number | undefined;
|
|
52
|
-
count?: number | undefined;
|
|
53
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
50
|
+
declare const razorpayFetchAllPayments: AppAction<typeof RazorpayFetchAllPaymentsInput, typeof RazorpayFetchAllPaymentsOutput, typeof razorpay.credential>;
|
|
54
51
|
//#endregion
|
|
55
52
|
export { razorpayFetchAllPayments };
|
|
56
53
|
//# sourceMappingURL=fetch-all-payments.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-all-payments.d.mts","names":[],"sources":["../../src/actions/fetch-all-payments.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetch-all-payments.d.mts","names":[],"sources":["../../src/actions/fetch-all-payments.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;cAyC7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAM9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-all-payments.mjs","names":[],"sources":["../../src/actions/fetch-all-payments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayFetchAllPaymentsInput = z.object({\n to: z.number().int().describe(\"Unix timestamp (in seconds) until which to fetch payments. Filters payments created on or before this timestamp.\").optional(),\n from: z.number().int().describe(\"Unix timestamp (in seconds) from which to fetch payments. Filters payments created on or after this timestamp.\").optional(),\n skip: z.number().int().describe(\"Number of payments to skip for pagination. Use this to paginate through results.\").optional(),\n count: z.number().int().describe(\"Number of payments to fetch. Default is 10, maximum is 100.\").optional(),\n}).describe(\"Request model for fetching all payments with pagination and time filtering.\");\nconst RazorpayFetchAllPayments_AcquirerDataSchema = z.object({\n bank_transaction_id: z.string().describe(\"Bank transaction identifier from the payment processor.\").nullable().optional(),\n}).passthrough().describe(\"Acquirer data containing bank/processor transaction details.\");\nconst RazorpayFetchAllPayments_PaymentItemSchema = z.object({\n id: z.string().describe(\"Unique identifier for the payment.\").nullable(),\n fee: z.number().int().describe(\"Transaction fee charged in smallest currency unit.\").nullable().optional(),\n tax: z.number().int().describe(\"Tax component of the transaction fee in smallest currency unit.\").nullable().optional(),\n vpa: z.string().describe(\"Virtual Payment Address for UPI payments.\").nullable().optional(),\n bank: z.string().describe(\"Bank code for netbanking payments.\").nullable().optional(),\n email: z.string().describe(\"Customer email address.\").nullable().optional(),\n notes: z.record(z.string(), z.unknown()).describe(\"Custom key-value metadata associated with the payment.\").nullable().optional(),\n amount: z.number().int().describe(\"Payment amount in smallest currency unit (paise for INR, cents for USD).\").nullable(),\n entity: z.string().describe(\"String representing the object type. Always 'payment'.\").nullable(),\n method: z.string().describe(\"Payment method used. Values: card, netbanking, wallet, emi, upi, cardless_emi, paylater, bank_transfer, offline, qr_code, emandate, nach, recurring, third_party, cheque, dd.\").nullable(),\n status: z.string().describe(\"Payment status. Values: created, authorized, captured, refunded, failed, pending.\").nullable(),\n wallet: z.string().describe(\"Wallet provider name for wallet payments.\").nullable().optional(),\n card_id: z.string().describe(\"Card identifier for card payments.\").nullable().optional(),\n contact: z.string().describe(\"Customer phone number.\").nullable().optional(),\n captured: z.boolean().describe(\"Indicates if the payment has been captured.\").nullable(),\n currency: z.string().describe(\"Three-letter ISO currency code (e.g., INR, USD).\").nullable(),\n order_id: z.string().describe(\"Identifier of the order associated with this payment.\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp (in seconds) of payment creation.\").nullable(),\n error_code: z.string().describe(\"Error code for failed payments.\").nullable().optional(),\n error_step: z.string().describe(\"Step at which the error occurred.\").nullable().optional(),\n invoice_id: z.string().describe(\"Identifier of the invoice linked to this payment.\").nullable().optional(),\n customer_id: z.string().describe(\"Identifier of the customer associated with this payment.\").nullable().optional(),\n description: z.string().describe(\"Description provided during payment creation.\").nullable().optional(),\n error_reason: z.string().describe(\"Reason for the payment failure.\").nullable().optional(),\n error_source: z.string().describe(\"Source of the error (customer, business, or bank).\").nullable().optional(),\n acquirer_data: RazorpayFetchAllPayments_AcquirerDataSchema.nullable().optional(),\n international: z.boolean().describe(\"Indicates if this is an international (cross-border) payment.\").nullable(),\n refund_status: z.string().describe(\"Refund status. Values: null, partial, full.\").nullable().optional(),\n amount_refunded: z.number().int().describe(\"Amount refunded in smallest currency unit.\").nullable(),\n error_description: z.string().describe(\"Human-readable error message for failed payments.\").nullable().optional(),\n}).passthrough().describe(\"Detailed model representing a single payment object from Razorpay.\");\nexport const RazorpayFetchAllPaymentsOutput = z.object({\n count: z.number().int().describe(\"Number of payment items returned in this response.\").nullable(),\n items: z.array(RazorpayFetchAllPayments_PaymentItemSchema).describe(\"Array of payment objects, with the most recent appearing first.\"),\n entity: z.string().describe(\"String representing the collection type. Always 'collection'.\").nullable(),\n}).passthrough().describe(\"Response model containing a collection of payment objects with pagination metadata.\");\n\nexport const razorpayFetchAllPayments = action(\"RAZORPAY_FETCH_ALL_PAYMENTS\", {\n slug: \"razorpay-fetch-all-payments\",\n name: \"Fetch All Payments\",\n description: \"Tool to retrieve all payments from your Razorpay account with pagination and time filtering support. Use when you need to list payments, audit transactions, or analyze payment history. Returns payments in descending order by creation time (newest first).\",\n input: RazorpayFetchAllPaymentsInput,\n output: RazorpayFetchAllPaymentsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetch-all-payments.mjs","names":[],"sources":["../../src/actions/fetch-all-payments.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { razorpay } from \"../app\";\n\nexport const RazorpayFetchAllPaymentsInput = z.object({\n to: z.number().int().describe(\"Unix timestamp (in seconds) until which to fetch payments. Filters payments created on or before this timestamp.\").optional(),\n from: z.number().int().describe(\"Unix timestamp (in seconds) from which to fetch payments. Filters payments created on or after this timestamp.\").optional(),\n skip: z.number().int().describe(\"Number of payments to skip for pagination. Use this to paginate through results.\").optional(),\n count: z.number().int().describe(\"Number of payments to fetch. Default is 10, maximum is 100.\").optional(),\n}).describe(\"Request model for fetching all payments with pagination and time filtering.\");\nconst RazorpayFetchAllPayments_AcquirerDataSchema = z.object({\n bank_transaction_id: z.string().describe(\"Bank transaction identifier from the payment processor.\").nullable().optional(),\n}).passthrough().describe(\"Acquirer data containing bank/processor transaction details.\");\nconst RazorpayFetchAllPayments_PaymentItemSchema = z.object({\n id: z.string().describe(\"Unique identifier for the payment.\").nullable(),\n fee: z.number().int().describe(\"Transaction fee charged in smallest currency unit.\").nullable().optional(),\n tax: z.number().int().describe(\"Tax component of the transaction fee in smallest currency unit.\").nullable().optional(),\n vpa: z.string().describe(\"Virtual Payment Address for UPI payments.\").nullable().optional(),\n bank: z.string().describe(\"Bank code for netbanking payments.\").nullable().optional(),\n email: z.string().describe(\"Customer email address.\").nullable().optional(),\n notes: z.record(z.string(), z.unknown()).describe(\"Custom key-value metadata associated with the payment.\").nullable().optional(),\n amount: z.number().int().describe(\"Payment amount in smallest currency unit (paise for INR, cents for USD).\").nullable(),\n entity: z.string().describe(\"String representing the object type. Always 'payment'.\").nullable(),\n method: z.string().describe(\"Payment method used. Values: card, netbanking, wallet, emi, upi, cardless_emi, paylater, bank_transfer, offline, qr_code, emandate, nach, recurring, third_party, cheque, dd.\").nullable(),\n status: z.string().describe(\"Payment status. Values: created, authorized, captured, refunded, failed, pending.\").nullable(),\n wallet: z.string().describe(\"Wallet provider name for wallet payments.\").nullable().optional(),\n card_id: z.string().describe(\"Card identifier for card payments.\").nullable().optional(),\n contact: z.string().describe(\"Customer phone number.\").nullable().optional(),\n captured: z.boolean().describe(\"Indicates if the payment has been captured.\").nullable(),\n currency: z.string().describe(\"Three-letter ISO currency code (e.g., INR, USD).\").nullable(),\n order_id: z.string().describe(\"Identifier of the order associated with this payment.\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp (in seconds) of payment creation.\").nullable(),\n error_code: z.string().describe(\"Error code for failed payments.\").nullable().optional(),\n error_step: z.string().describe(\"Step at which the error occurred.\").nullable().optional(),\n invoice_id: z.string().describe(\"Identifier of the invoice linked to this payment.\").nullable().optional(),\n customer_id: z.string().describe(\"Identifier of the customer associated with this payment.\").nullable().optional(),\n description: z.string().describe(\"Description provided during payment creation.\").nullable().optional(),\n error_reason: z.string().describe(\"Reason for the payment failure.\").nullable().optional(),\n error_source: z.string().describe(\"Source of the error (customer, business, or bank).\").nullable().optional(),\n acquirer_data: RazorpayFetchAllPayments_AcquirerDataSchema.nullable().optional(),\n international: z.boolean().describe(\"Indicates if this is an international (cross-border) payment.\").nullable(),\n refund_status: z.string().describe(\"Refund status. Values: null, partial, full.\").nullable().optional(),\n amount_refunded: z.number().int().describe(\"Amount refunded in smallest currency unit.\").nullable(),\n error_description: z.string().describe(\"Human-readable error message for failed payments.\").nullable().optional(),\n}).passthrough().describe(\"Detailed model representing a single payment object from Razorpay.\");\nexport const RazorpayFetchAllPaymentsOutput = z.object({\n count: z.number().int().describe(\"Number of payment items returned in this response.\").nullable(),\n items: z.array(RazorpayFetchAllPayments_PaymentItemSchema).describe(\"Array of payment objects, with the most recent appearing first.\"),\n entity: z.string().describe(\"String representing the collection type. Always 'collection'.\").nullable(),\n}).passthrough().describe(\"Response model containing a collection of payment objects with pagination metadata.\");\n\nexport const razorpayFetchAllPayments: AppAction<\n typeof RazorpayFetchAllPaymentsInput,\n typeof RazorpayFetchAllPaymentsOutput,\n typeof razorpay.credential\n> = action(\"RAZORPAY_FETCH_ALL_PAYMENTS\", {\n slug: \"razorpay-fetch-all-payments\",\n name: \"Fetch All Payments\",\n description: \"Tool to retrieve all payments from your Razorpay account with pagination and time filtering support. Use when you need to list payments, audit transactions, or analyze payment history. Returns payments in descending order by creation time (newest first).\",\n input: RazorpayFetchAllPaymentsInput,\n output: RazorpayFetchAllPaymentsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgC,EAAE,OAAO;CACpD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;CAC3J,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS;CAC3J,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CAC7H,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,SAAS,6EAA6E;AACzF,MAAM,8CAA8C,EAAE,OAAO,EAC3D,qBAAqB,EAAE,OA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,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAClG,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oEAAoE;AAO9F,MAAa,2BAIT,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAf4C,EAAE,OAAO;EACrD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;EAChG,OAAO,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,iEAAiE;EACrI,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACxG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qFAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-all-refunds-for-a-payment.cjs","names":["z","action"],"sources":["../../src/actions/fetch-all-refunds-for-a-payment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayFetchAllRefundsForAPaymentInput = z.object({\n skip: z.number().int().describe(\"Number of refunds to skip for pagination. Use with count to navigate through pages.\").optional(),\n count: z.number().int().describe(\"Number of refunds to fetch. Default is 10.\").optional(),\n payment_id: z.string().describe(\"The unique identifier of the payment for which to fetch refunds.\"),\n to_timestamp: z.number().int().describe(\"Unix timestamp before which the refunds were created. Filter refunds created on or before this time.\").optional(),\n from_timestamp: z.number().int().describe(\"Unix timestamp after which the refunds were created. Filter refunds created on or after this time.\").optional(),\n}).describe(\"Request parameters for fetching all refunds for a specific payment.\");\nconst RazorpayFetchAllRefundsForAPayment_AcquirerDataSchema = z.object({\n arn: z.string().describe(\"Acquirer Reference Number (ARN) from the bank.\").nullable().optional(),\n}).passthrough().describe(\"Acquirer data for a refund.\");\nconst RazorpayFetchAllRefundsForAPayment_RefundSchema = z.object({\n id: z.string().describe(\"Unique identifier for the refund.\").nullable().optional(),\n notes: z.record(z.string(), z.unknown()).describe(\"Key-value pairs for custom data associated with the refund.\").nullable().optional(),\n amount: z.number().int().describe(\"Refund amount in currency subunits (e.g., paise for INR). For example, 10000 means ₹100.00.\").nullable().optional(),\n entity: z.string().describe(\"Entity type, always 'refund' for refund objects.\").nullable().optional(),\n status: z.string().describe(\"Current status of the refund (e.g., 'processed', 'pending', 'failed').\").nullable().optional(),\n receipt: z.string().describe(\"Optional receipt identifier for the refund.\").nullable().optional(),\n batch_id: z.string().describe(\"Batch processing identifier, typically null for individual refunds.\").nullable().optional(),\n currency: z.string().describe(\"Three-letter ISO currency code (e.g., INR, USD).\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the refund was created.\").nullable().optional(),\n payment_id: z.string().describe(\"Unique identifier of the payment that was refunded.\").nullable().optional(),\n acquirer_data: RazorpayFetchAllRefundsForAPayment_AcquirerDataSchema.nullable().optional(),\n speed_processed: z.string().describe(\"Actual speed at which the refund was processed (e.g., 'normal', 'instant', 'optimum').\").nullable().optional(),\n speed_requested: z.string().describe(\"Speed requested for the refund processing (e.g., 'normal', 'instant', 'optimum').\").nullable().optional(),\n}).passthrough().describe(\"Represents an individual refund in the Razorpay system.\");\nexport const RazorpayFetchAllRefundsForAPaymentOutput = z.object({\n count: z.number().int().describe(\"Number of refunds returned in this response.\").nullable().optional(),\n items: z.array(RazorpayFetchAllRefundsForAPayment_RefundSchema).describe(\"Array of refund objects for the specified payment.\").nullable().optional(),\n entity: z.string().describe(\"Entity type, typically 'collection' for list responses.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for fetching all refunds for a specific payment.\");\n\nexport const razorpayFetchAllRefundsForAPayment = action(\"RAZORPAY_FETCH_ALL_REFUNDS_FOR_A_PAYMENT\", {\n slug: \"razorpay-fetch-all-refunds-for-a-payment\",\n name: \"Fetch all refunds for a payment\",\n description: \"Tool to retrieve all refunds for a specific payment using the Razorpay API. Use when you need to check refund status, track refund history, or list all refunds associated with a particular payment.\",\n input: RazorpayFetchAllRefundsForAPaymentInput,\n output: RazorpayFetchAllRefundsForAPaymentOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetch-all-refunds-for-a-payment.cjs","names":["z","action"],"sources":["../../src/actions/fetch-all-refunds-for-a-payment.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { razorpay } from \"../app\";\n\nexport const RazorpayFetchAllRefundsForAPaymentInput = z.object({\n skip: z.number().int().describe(\"Number of refunds to skip for pagination. Use with count to navigate through pages.\").optional(),\n count: z.number().int().describe(\"Number of refunds to fetch. Default is 10.\").optional(),\n payment_id: z.string().describe(\"The unique identifier of the payment for which to fetch refunds.\"),\n to_timestamp: z.number().int().describe(\"Unix timestamp before which the refunds were created. Filter refunds created on or before this time.\").optional(),\n from_timestamp: z.number().int().describe(\"Unix timestamp after which the refunds were created. Filter refunds created on or after this time.\").optional(),\n}).describe(\"Request parameters for fetching all refunds for a specific payment.\");\nconst RazorpayFetchAllRefundsForAPayment_AcquirerDataSchema = z.object({\n arn: z.string().describe(\"Acquirer Reference Number (ARN) from the bank.\").nullable().optional(),\n}).passthrough().describe(\"Acquirer data for a refund.\");\nconst RazorpayFetchAllRefundsForAPayment_RefundSchema = z.object({\n id: z.string().describe(\"Unique identifier for the refund.\").nullable().optional(),\n notes: z.record(z.string(), z.unknown()).describe(\"Key-value pairs for custom data associated with the refund.\").nullable().optional(),\n amount: z.number().int().describe(\"Refund amount in currency subunits (e.g., paise for INR). For example, 10000 means ₹100.00.\").nullable().optional(),\n entity: z.string().describe(\"Entity type, always 'refund' for refund objects.\").nullable().optional(),\n status: z.string().describe(\"Current status of the refund (e.g., 'processed', 'pending', 'failed').\").nullable().optional(),\n receipt: z.string().describe(\"Optional receipt identifier for the refund.\").nullable().optional(),\n batch_id: z.string().describe(\"Batch processing identifier, typically null for individual refunds.\").nullable().optional(),\n currency: z.string().describe(\"Three-letter ISO currency code (e.g., INR, USD).\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the refund was created.\").nullable().optional(),\n payment_id: z.string().describe(\"Unique identifier of the payment that was refunded.\").nullable().optional(),\n acquirer_data: RazorpayFetchAllRefundsForAPayment_AcquirerDataSchema.nullable().optional(),\n speed_processed: z.string().describe(\"Actual speed at which the refund was processed (e.g., 'normal', 'instant', 'optimum').\").nullable().optional(),\n speed_requested: z.string().describe(\"Speed requested for the refund processing (e.g., 'normal', 'instant', 'optimum').\").nullable().optional(),\n}).passthrough().describe(\"Represents an individual refund in the Razorpay system.\");\nexport const RazorpayFetchAllRefundsForAPaymentOutput = z.object({\n count: z.number().int().describe(\"Number of refunds returned in this response.\").nullable().optional(),\n items: z.array(RazorpayFetchAllRefundsForAPayment_RefundSchema).describe(\"Array of refund objects for the specified payment.\").nullable().optional(),\n entity: z.string().describe(\"Entity type, typically 'collection' for list responses.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for fetching all refunds for a specific payment.\");\n\nexport const razorpayFetchAllRefundsForAPayment: AppAction<\n typeof RazorpayFetchAllRefundsForAPaymentInput,\n typeof RazorpayFetchAllRefundsForAPaymentOutput,\n typeof razorpay.credential\n> = action(\"RAZORPAY_FETCH_ALL_REFUNDS_FOR_A_PAYMENT\", {\n slug: \"razorpay-fetch-all-refunds-for-a-payment\",\n name: \"Fetch all refunds for a payment\",\n description: \"Tool to retrieve all refunds for a specific payment using the Razorpay API. Use when you need to check refund status, track refund history, or list all refunds associated with a particular payment.\",\n input: RazorpayFetchAllRefundsForAPaymentInput,\n output: RazorpayFetchAllRefundsForAPaymentOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0CAA0CA,IAAAA,EAAE,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SAAS,kEAAkE;AAE5F,MAAa,qCAITC,eAAAA,OAAO,4CAA4C;CACrD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { razorpay } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/fetch-all-refunds-for-a-payment.d.ts
|
|
@@ -29,13 +31,7 @@ declare const RazorpayFetchAllRefundsForAPaymentOutput: z.ZodObject<{
|
|
|
29
31
|
}, z.core.$loose>>>>;
|
|
30
32
|
entity: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
33
|
}, z.core.$loose>;
|
|
32
|
-
declare const razorpayFetchAllRefundsForAPayment:
|
|
33
|
-
payment_id: string;
|
|
34
|
-
skip?: number | undefined;
|
|
35
|
-
count?: number | undefined;
|
|
36
|
-
to_timestamp?: number | undefined;
|
|
37
|
-
from_timestamp?: number | undefined;
|
|
38
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
34
|
+
declare const razorpayFetchAllRefundsForAPayment: AppAction<typeof RazorpayFetchAllRefundsForAPaymentInput, typeof RazorpayFetchAllRefundsForAPaymentOutput, typeof razorpay.credential>;
|
|
39
35
|
//#endregion
|
|
40
36
|
export { razorpayFetchAllRefundsForAPayment };
|
|
41
37
|
//# sourceMappingURL=fetch-all-refunds-for-a-payment.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-all-refunds-for-a-payment.d.cts","names":[],"sources":["../../src/actions/fetch-all-refunds-for-a-payment.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetch-all-refunds-for-a-payment.d.cts","names":[],"sources":["../../src/actions/fetch-all-refunds-for-a-payment.ts"],"mappings":";;;;;cAMa,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;cAyBvC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAMxC,kCAAA,EAAoC,SAAA,QACxC,uCAAA,SACA,wCAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { razorpay } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/fetch-all-refunds-for-a-payment.d.ts
|
|
@@ -29,13 +31,7 @@ declare const RazorpayFetchAllRefundsForAPaymentOutput: z.ZodObject<{
|
|
|
29
31
|
}, z.core.$loose>>>>;
|
|
30
32
|
entity: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
33
|
}, z.core.$loose>;
|
|
32
|
-
declare const razorpayFetchAllRefundsForAPayment:
|
|
33
|
-
payment_id: string;
|
|
34
|
-
skip?: number | undefined;
|
|
35
|
-
count?: number | undefined;
|
|
36
|
-
to_timestamp?: number | undefined;
|
|
37
|
-
from_timestamp?: number | undefined;
|
|
38
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
34
|
+
declare const razorpayFetchAllRefundsForAPayment: AppAction<typeof RazorpayFetchAllRefundsForAPaymentInput, typeof RazorpayFetchAllRefundsForAPaymentOutput, typeof razorpay.credential>;
|
|
39
35
|
//#endregion
|
|
40
36
|
export { razorpayFetchAllRefundsForAPayment };
|
|
41
37
|
//# sourceMappingURL=fetch-all-refunds-for-a-payment.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-all-refunds-for-a-payment.d.mts","names":[],"sources":["../../src/actions/fetch-all-refunds-for-a-payment.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetch-all-refunds-for-a-payment.d.mts","names":[],"sources":["../../src/actions/fetch-all-refunds-for-a-payment.ts"],"mappings":";;;;;cAMa,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;cAyBvC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAMxC,kCAAA,EAAoC,SAAA,QACxC,uCAAA,SACA,wCAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-all-refunds-for-a-payment.mjs","names":[],"sources":["../../src/actions/fetch-all-refunds-for-a-payment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayFetchAllRefundsForAPaymentInput = z.object({\n skip: z.number().int().describe(\"Number of refunds to skip for pagination. Use with count to navigate through pages.\").optional(),\n count: z.number().int().describe(\"Number of refunds to fetch. Default is 10.\").optional(),\n payment_id: z.string().describe(\"The unique identifier of the payment for which to fetch refunds.\"),\n to_timestamp: z.number().int().describe(\"Unix timestamp before which the refunds were created. Filter refunds created on or before this time.\").optional(),\n from_timestamp: z.number().int().describe(\"Unix timestamp after which the refunds were created. Filter refunds created on or after this time.\").optional(),\n}).describe(\"Request parameters for fetching all refunds for a specific payment.\");\nconst RazorpayFetchAllRefundsForAPayment_AcquirerDataSchema = z.object({\n arn: z.string().describe(\"Acquirer Reference Number (ARN) from the bank.\").nullable().optional(),\n}).passthrough().describe(\"Acquirer data for a refund.\");\nconst RazorpayFetchAllRefundsForAPayment_RefundSchema = z.object({\n id: z.string().describe(\"Unique identifier for the refund.\").nullable().optional(),\n notes: z.record(z.string(), z.unknown()).describe(\"Key-value pairs for custom data associated with the refund.\").nullable().optional(),\n amount: z.number().int().describe(\"Refund amount in currency subunits (e.g., paise for INR). For example, 10000 means ₹100.00.\").nullable().optional(),\n entity: z.string().describe(\"Entity type, always 'refund' for refund objects.\").nullable().optional(),\n status: z.string().describe(\"Current status of the refund (e.g., 'processed', 'pending', 'failed').\").nullable().optional(),\n receipt: z.string().describe(\"Optional receipt identifier for the refund.\").nullable().optional(),\n batch_id: z.string().describe(\"Batch processing identifier, typically null for individual refunds.\").nullable().optional(),\n currency: z.string().describe(\"Three-letter ISO currency code (e.g., INR, USD).\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the refund was created.\").nullable().optional(),\n payment_id: z.string().describe(\"Unique identifier of the payment that was refunded.\").nullable().optional(),\n acquirer_data: RazorpayFetchAllRefundsForAPayment_AcquirerDataSchema.nullable().optional(),\n speed_processed: z.string().describe(\"Actual speed at which the refund was processed (e.g., 'normal', 'instant', 'optimum').\").nullable().optional(),\n speed_requested: z.string().describe(\"Speed requested for the refund processing (e.g., 'normal', 'instant', 'optimum').\").nullable().optional(),\n}).passthrough().describe(\"Represents an individual refund in the Razorpay system.\");\nexport const RazorpayFetchAllRefundsForAPaymentOutput = z.object({\n count: z.number().int().describe(\"Number of refunds returned in this response.\").nullable().optional(),\n items: z.array(RazorpayFetchAllRefundsForAPayment_RefundSchema).describe(\"Array of refund objects for the specified payment.\").nullable().optional(),\n entity: z.string().describe(\"Entity type, typically 'collection' for list responses.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for fetching all refunds for a specific payment.\");\n\nexport const razorpayFetchAllRefundsForAPayment = action(\"RAZORPAY_FETCH_ALL_REFUNDS_FOR_A_PAYMENT\", {\n slug: \"razorpay-fetch-all-refunds-for-a-payment\",\n name: \"Fetch all refunds for a payment\",\n description: \"Tool to retrieve all refunds for a specific payment using the Razorpay API. Use when you need to check refund status, track refund history, or list all refunds associated with a particular payment.\",\n input: RazorpayFetchAllRefundsForAPaymentInput,\n output: RazorpayFetchAllRefundsForAPaymentOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetch-all-refunds-for-a-payment.mjs","names":[],"sources":["../../src/actions/fetch-all-refunds-for-a-payment.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { razorpay } from \"../app\";\n\nexport const RazorpayFetchAllRefundsForAPaymentInput = z.object({\n skip: z.number().int().describe(\"Number of refunds to skip for pagination. Use with count to navigate through pages.\").optional(),\n count: z.number().int().describe(\"Number of refunds to fetch. Default is 10.\").optional(),\n payment_id: z.string().describe(\"The unique identifier of the payment for which to fetch refunds.\"),\n to_timestamp: z.number().int().describe(\"Unix timestamp before which the refunds were created. Filter refunds created on or before this time.\").optional(),\n from_timestamp: z.number().int().describe(\"Unix timestamp after which the refunds were created. Filter refunds created on or after this time.\").optional(),\n}).describe(\"Request parameters for fetching all refunds for a specific payment.\");\nconst RazorpayFetchAllRefundsForAPayment_AcquirerDataSchema = z.object({\n arn: z.string().describe(\"Acquirer Reference Number (ARN) from the bank.\").nullable().optional(),\n}).passthrough().describe(\"Acquirer data for a refund.\");\nconst RazorpayFetchAllRefundsForAPayment_RefundSchema = z.object({\n id: z.string().describe(\"Unique identifier for the refund.\").nullable().optional(),\n notes: z.record(z.string(), z.unknown()).describe(\"Key-value pairs for custom data associated with the refund.\").nullable().optional(),\n amount: z.number().int().describe(\"Refund amount in currency subunits (e.g., paise for INR). For example, 10000 means ₹100.00.\").nullable().optional(),\n entity: z.string().describe(\"Entity type, always 'refund' for refund objects.\").nullable().optional(),\n status: z.string().describe(\"Current status of the refund (e.g., 'processed', 'pending', 'failed').\").nullable().optional(),\n receipt: z.string().describe(\"Optional receipt identifier for the refund.\").nullable().optional(),\n batch_id: z.string().describe(\"Batch processing identifier, typically null for individual refunds.\").nullable().optional(),\n currency: z.string().describe(\"Three-letter ISO currency code (e.g., INR, USD).\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the refund was created.\").nullable().optional(),\n payment_id: z.string().describe(\"Unique identifier of the payment that was refunded.\").nullable().optional(),\n acquirer_data: RazorpayFetchAllRefundsForAPayment_AcquirerDataSchema.nullable().optional(),\n speed_processed: z.string().describe(\"Actual speed at which the refund was processed (e.g., 'normal', 'instant', 'optimum').\").nullable().optional(),\n speed_requested: z.string().describe(\"Speed requested for the refund processing (e.g., 'normal', 'instant', 'optimum').\").nullable().optional(),\n}).passthrough().describe(\"Represents an individual refund in the Razorpay system.\");\nexport const RazorpayFetchAllRefundsForAPaymentOutput = z.object({\n count: z.number().int().describe(\"Number of refunds returned in this response.\").nullable().optional(),\n items: z.array(RazorpayFetchAllRefundsForAPayment_RefundSchema).describe(\"Array of refund objects for the specified payment.\").nullable().optional(),\n entity: z.string().describe(\"Entity type, typically 'collection' for list responses.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for fetching all refunds for a specific payment.\");\n\nexport const razorpayFetchAllRefundsForAPayment: AppAction<\n typeof RazorpayFetchAllRefundsForAPaymentInput,\n typeof RazorpayFetchAllRefundsForAPaymentOutput,\n typeof razorpay.credential\n> = action(\"RAZORPAY_FETCH_ALL_REFUNDS_FOR_A_PAYMENT\", {\n slug: \"razorpay-fetch-all-refunds-for-a-payment\",\n name: \"Fetch all refunds for a payment\",\n description: \"Tool to retrieve all refunds for a specific payment using the Razorpay API. Use when you need to check refund status, track refund history, or list all refunds associated with a particular payment.\",\n input: RazorpayFetchAllRefundsForAPaymentInput,\n output: RazorpayFetchAllRefundsForAPaymentOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0CAA0C,EAAE,OAAO;CAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CAChI,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACxF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;CAClG,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CACzJ,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;AAC3J,CAAC,CAAC,CAAC,SAAS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AAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnJ,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AAOnF,MAAa,qCAIT,OAAO,4CAA4C;CACrD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAfsD,EAAE,OAAO;EAC/D,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,OAAO,EAAE,MAAM,+CAA+C,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnJ,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kEAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-invoice-by-id.cjs","names":["z","action"],"sources":["../../src/actions/fetch-invoice-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayFetchInvoiceByIdInput = z.object({\n invoice_id: z.string().describe(\"The unique identifier of the invoice to retrieve\"),\n}).describe(\"Request model for fetching a specific invoice by ID.\");\nconst RazorpayFetchInvoiceById_TaxDetailSchema = z.object({\n name: z.string().describe(\"Tax name\").nullable().optional(),\n rate: z.number().int().describe(\"Tax rate in basis points\").nullable().optional(),\n amount: z.number().int().describe(\"Tax amount in currency subunit\").nullable().optional(),\n tax_id: z.string().describe(\"Tax ID\").nullable().optional(),\n}).passthrough().describe(\"Tax detail for a line item.\");\nconst RazorpayFetchInvoiceById_LineItemSchema = z.object({\n id: z.string().describe(\"Line item ID\").nullable().optional(),\n name: z.string().describe(\"Item name\").nullable().optional(),\n type: z.string().describe(\"Line item type\").nullable().optional(),\n unit: z.string().describe(\"Unit of measurement\").nullable().optional(),\n taxes: z.array(RazorpayFetchInvoiceById_TaxDetailSchema).describe(\"List of tax details\").nullable().optional(),\n amount: z.number().int().describe(\"Item amount in currency subunit\").nullable().optional(),\n ref_id: z.string().describe(\"Reference ID for the item\").nullable().optional(),\n item_id: z.string().describe(\"Reference to item entity\").nullable().optional(),\n currency: z.string().describe(\"Currency code\").nullable().optional(),\n hsn_code: z.string().describe(\"HSN code for the item\").nullable().optional(),\n quantity: z.number().int().describe(\"Quantity of items\").nullable().optional(),\n ref_type: z.string().describe(\"Reference type\").nullable().optional(),\n sac_code: z.string().describe(\"SAC code for the item\").nullable().optional(),\n tax_rate: z.number().int().describe(\"Tax rate in basis points\").nullable().optional(),\n net_amount: z.number().int().describe(\"Net amount after tax\").nullable().optional(),\n tax_amount: z.number().int().describe(\"Tax amount\").nullable().optional(),\n description: z.string().describe(\"Item description\").nullable().optional(),\n unit_amount: z.number().int().describe(\"Unit price in currency subunit\").nullable().optional(),\n gross_amount: z.number().int().describe(\"Gross amount before tax\").nullable().optional(),\n tax_inclusive: z.boolean().describe(\"Whether tax is included in the amount\").nullable().optional(),\n taxable_amount: z.number().int().describe(\"Taxable amount\").nullable().optional(),\n}).passthrough().describe(\"Individual line item in an invoice.\");\nconst RazorpayFetchInvoiceById_AddressSchema = z.object({\n city: z.string().describe(\"City\").nullable().optional(),\n line1: z.string().describe(\"Address line 1\").nullable().optional(),\n line2: z.string().describe(\"Address line 2\").nullable().optional(),\n state: z.string().describe(\"State\").nullable().optional(),\n country: z.string().describe(\"Country\").nullable().optional(),\n zipcode: z.string().describe(\"Postal/ZIP code\").nullable().optional(),\n}).passthrough().describe(\"Address details for billing or shipping.\");\nconst RazorpayFetchInvoiceById_CustomerDetailsSchema = z.object({\n id: z.string().describe(\"Customer ID\").nullable().optional(),\n name: z.string().describe(\"Customer name\").nullable().optional(),\n email: z.string().describe(\"Customer email address\").nullable().optional(),\n gstin: z.string().describe(\"Customer GSTIN\").nullable().optional(),\n contact: z.string().describe(\"Customer contact number\").nullable().optional(),\n billing_address: RazorpayFetchInvoiceById_AddressSchema.nullable().optional(),\n shipping_address: RazorpayFetchInvoiceById_AddressSchema.nullable().optional(),\n}).passthrough().describe(\"Customer details associated with the invoice.\");\nexport const RazorpayFetchInvoiceByIdOutput = z.object({\n id: z.string().describe(\"Unique invoice identifier\").nullable(),\n date: z.number().int().describe(\"Invoice date as Unix timestamp\").nullable().optional(),\n type: z.string().describe(\"Invoice type\").nullable().optional(),\n notes: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]).nullable().optional(),\n terms: z.string().describe(\"Terms and conditions\").nullable().optional(),\n amount: z.number().int().describe(\"Total invoice amount in currency subunit\").nullable(),\n entity: z.string().describe(\"Entity type, always 'invoice'\").nullable(),\n status: z.string().describe(\"Invoice status (draft, issued, paid, etc.)\").nullable(),\n comment: z.string().describe(\"Comment on the invoice\").nullable().optional(),\n paid_at: z.number().int().describe(\"Unix timestamp when the invoice was paid\").nullable().optional(),\n receipt: z.string().describe(\"Internal reference number\").nullable().optional(),\n currency: z.string().describe(\"Three-letter ISO currency code\").nullable(),\n order_id: z.string().describe(\"Associated order ID\").nullable().optional(),\n expire_by: z.number().int().describe(\"Unix timestamp when the invoice expires\").nullable().optional(),\n issued_at: z.number().int().describe(\"Unix timestamp when the invoice was issued\").nullable().optional(),\n short_url: z.string().describe(\"Short URL for the invoice payment page\").nullable().optional(),\n view_less: z.boolean().describe(\"Whether to show a compact view\").nullable().optional(),\n amount_due: z.number().int().describe(\"Amount due in currency subunit\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the invoice was created\").nullable(),\n expired_at: z.number().int().describe(\"Unix timestamp when the invoice expired\").nullable().optional(),\n line_items: z.array(RazorpayFetchInvoiceById_LineItemSchema).describe(\"List of invoice line items\").nullable().optional(),\n payment_id: z.string().describe(\"Associated payment ID\").nullable().optional(),\n sms_status: z.string().describe(\"SMS notification status\").nullable().optional(),\n tax_amount: z.number().int().describe(\"Total tax amount in currency subunit\").nullable().optional(),\n amount_paid: z.number().int().describe(\"Amount paid so far in currency subunit\").nullable().optional(),\n billing_end: z.number().int().describe(\"Billing period end as Unix timestamp\").nullable().optional(),\n customer_id: z.string().describe(\"Associated customer ID\").nullable().optional(),\n description: z.string().describe(\"Invoice description\").nullable().optional(),\n cancelled_at: z.number().int().describe(\"Unix timestamp when the invoice was cancelled\").nullable().optional(),\n email_status: z.string().describe(\"Email notification status\").nullable().optional(),\n gross_amount: z.number().int().describe(\"Gross amount before tax in currency subunit\").nullable().optional(),\n billing_start: z.number().int().describe(\"Billing period start as Unix timestamp\").nullable().optional(),\n invoice_number: z.string().describe(\"Invoice number\").nullable().optional(),\n taxable_amount: z.number().int().describe(\"Taxable amount in currency subunit\").nullable().optional(),\n currency_symbol: z.string().describe(\"Currency symbol for display\").nullable().optional(),\n idempotency_key: z.string().describe(\"Idempotency key\").nullable().optional(),\n partial_payment: z.boolean().describe(\"Whether partial payments are allowed\").nullable().optional(),\n subscription_id: z.string().describe(\"Associated subscription ID\").nullable().optional(),\n customer_details: RazorpayFetchInvoiceById_CustomerDetailsSchema.nullable().optional(),\n group_taxes_discounts: z.boolean().describe(\"Whether taxes and discounts are grouped\").nullable().optional(),\n}).passthrough().describe(\"Response model for fetching a specific invoice.\\nReturns complete invoice details including customer information and line items.\");\n\nexport const razorpayFetchInvoiceById = action(\"RAZORPAY_FETCH_INVOICE_BY_ID\", {\n slug: \"razorpay-fetch-invoice-by-id\",\n name: \"Fetch Invoice by ID\",\n description: \"Tool to fetch a specific invoice by its ID from Razorpay. Use when you need to retrieve complete details of an invoice including customer information, line items, amounts, and payment status.\",\n input: RazorpayFetchInvoiceByIdInput,\n output: RazorpayFetchInvoiceByIdOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,YA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6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,iBAAiBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,kBAAkB,+CAA+C,SAAS,CAAC,CAAC,SAAS;CACrF,uBAAuBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kIAAkI;AAE5J,MAAa,2BAA2BC,eAAAA,OAAO,gCAAgC;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"fetch-invoice-by-id.cjs","names":["z","action"],"sources":["../../src/actions/fetch-invoice-by-id.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { razorpay } from \"../app\";\n\nexport const RazorpayFetchInvoiceByIdInput = z.object({\n invoice_id: z.string().describe(\"The unique identifier of the invoice to retrieve\"),\n}).describe(\"Request model for fetching a specific invoice by ID.\");\nconst RazorpayFetchInvoiceById_TaxDetailSchema = z.object({\n name: z.string().describe(\"Tax name\").nullable().optional(),\n rate: z.number().int().describe(\"Tax rate in basis points\").nullable().optional(),\n amount: z.number().int().describe(\"Tax amount in currency subunit\").nullable().optional(),\n tax_id: z.string().describe(\"Tax ID\").nullable().optional(),\n}).passthrough().describe(\"Tax detail for a line item.\");\nconst RazorpayFetchInvoiceById_LineItemSchema = z.object({\n id: z.string().describe(\"Line item ID\").nullable().optional(),\n name: z.string().describe(\"Item name\").nullable().optional(),\n type: z.string().describe(\"Line item type\").nullable().optional(),\n unit: z.string().describe(\"Unit of measurement\").nullable().optional(),\n taxes: z.array(RazorpayFetchInvoiceById_TaxDetailSchema).describe(\"List of tax details\").nullable().optional(),\n amount: z.number().int().describe(\"Item amount in currency subunit\").nullable().optional(),\n ref_id: z.string().describe(\"Reference ID for the item\").nullable().optional(),\n item_id: z.string().describe(\"Reference to item entity\").nullable().optional(),\n currency: z.string().describe(\"Currency code\").nullable().optional(),\n hsn_code: z.string().describe(\"HSN code for the item\").nullable().optional(),\n quantity: z.number().int().describe(\"Quantity of items\").nullable().optional(),\n ref_type: z.string().describe(\"Reference type\").nullable().optional(),\n sac_code: z.string().describe(\"SAC code for the item\").nullable().optional(),\n tax_rate: z.number().int().describe(\"Tax rate in basis points\").nullable().optional(),\n net_amount: z.number().int().describe(\"Net amount after tax\").nullable().optional(),\n tax_amount: z.number().int().describe(\"Tax amount\").nullable().optional(),\n description: z.string().describe(\"Item description\").nullable().optional(),\n unit_amount: z.number().int().describe(\"Unit price in currency subunit\").nullable().optional(),\n gross_amount: z.number().int().describe(\"Gross amount before tax\").nullable().optional(),\n tax_inclusive: z.boolean().describe(\"Whether tax is included in the amount\").nullable().optional(),\n taxable_amount: z.number().int().describe(\"Taxable amount\").nullable().optional(),\n}).passthrough().describe(\"Individual line item in an invoice.\");\nconst RazorpayFetchInvoiceById_AddressSchema = z.object({\n city: z.string().describe(\"City\").nullable().optional(),\n line1: z.string().describe(\"Address line 1\").nullable().optional(),\n line2: z.string().describe(\"Address line 2\").nullable().optional(),\n state: z.string().describe(\"State\").nullable().optional(),\n country: z.string().describe(\"Country\").nullable().optional(),\n zipcode: z.string().describe(\"Postal/ZIP code\").nullable().optional(),\n}).passthrough().describe(\"Address details for billing or shipping.\");\nconst RazorpayFetchInvoiceById_CustomerDetailsSchema = z.object({\n id: z.string().describe(\"Customer ID\").nullable().optional(),\n name: z.string().describe(\"Customer name\").nullable().optional(),\n email: z.string().describe(\"Customer email address\").nullable().optional(),\n gstin: z.string().describe(\"Customer GSTIN\").nullable().optional(),\n contact: z.string().describe(\"Customer contact number\").nullable().optional(),\n billing_address: RazorpayFetchInvoiceById_AddressSchema.nullable().optional(),\n shipping_address: RazorpayFetchInvoiceById_AddressSchema.nullable().optional(),\n}).passthrough().describe(\"Customer details associated with the invoice.\");\nexport const RazorpayFetchInvoiceByIdOutput = z.object({\n id: z.string().describe(\"Unique invoice identifier\").nullable(),\n date: z.number().int().describe(\"Invoice date as Unix timestamp\").nullable().optional(),\n type: z.string().describe(\"Invoice type\").nullable().optional(),\n notes: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]).nullable().optional(),\n terms: z.string().describe(\"Terms and conditions\").nullable().optional(),\n amount: z.number().int().describe(\"Total invoice amount in currency subunit\").nullable(),\n entity: z.string().describe(\"Entity type, always 'invoice'\").nullable(),\n status: z.string().describe(\"Invoice status (draft, issued, paid, etc.)\").nullable(),\n comment: z.string().describe(\"Comment on the invoice\").nullable().optional(),\n paid_at: z.number().int().describe(\"Unix timestamp when the invoice was paid\").nullable().optional(),\n receipt: z.string().describe(\"Internal reference number\").nullable().optional(),\n currency: z.string().describe(\"Three-letter ISO currency code\").nullable(),\n order_id: z.string().describe(\"Associated order ID\").nullable().optional(),\n expire_by: z.number().int().describe(\"Unix timestamp when the invoice expires\").nullable().optional(),\n issued_at: z.number().int().describe(\"Unix timestamp when the invoice was issued\").nullable().optional(),\n short_url: z.string().describe(\"Short URL for the invoice payment page\").nullable().optional(),\n view_less: z.boolean().describe(\"Whether to show a compact view\").nullable().optional(),\n amount_due: z.number().int().describe(\"Amount due in currency subunit\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the invoice was created\").nullable(),\n expired_at: z.number().int().describe(\"Unix timestamp when the invoice expired\").nullable().optional(),\n line_items: z.array(RazorpayFetchInvoiceById_LineItemSchema).describe(\"List of invoice line items\").nullable().optional(),\n payment_id: z.string().describe(\"Associated payment ID\").nullable().optional(),\n sms_status: z.string().describe(\"SMS notification status\").nullable().optional(),\n tax_amount: z.number().int().describe(\"Total tax amount in currency subunit\").nullable().optional(),\n amount_paid: z.number().int().describe(\"Amount paid so far in currency subunit\").nullable().optional(),\n billing_end: z.number().int().describe(\"Billing period end as Unix timestamp\").nullable().optional(),\n customer_id: z.string().describe(\"Associated customer ID\").nullable().optional(),\n description: z.string().describe(\"Invoice description\").nullable().optional(),\n cancelled_at: z.number().int().describe(\"Unix timestamp when the invoice was cancelled\").nullable().optional(),\n email_status: z.string().describe(\"Email notification status\").nullable().optional(),\n gross_amount: z.number().int().describe(\"Gross amount before tax in currency subunit\").nullable().optional(),\n billing_start: z.number().int().describe(\"Billing period start as Unix timestamp\").nullable().optional(),\n invoice_number: z.string().describe(\"Invoice number\").nullable().optional(),\n taxable_amount: z.number().int().describe(\"Taxable amount in currency subunit\").nullable().optional(),\n currency_symbol: z.string().describe(\"Currency symbol for display\").nullable().optional(),\n idempotency_key: z.string().describe(\"Idempotency key\").nullable().optional(),\n partial_payment: z.boolean().describe(\"Whether partial payments are allowed\").nullable().optional(),\n subscription_id: z.string().describe(\"Associated subscription ID\").nullable().optional(),\n customer_details: RazorpayFetchInvoiceById_CustomerDetailsSchema.nullable().optional(),\n group_taxes_discounts: z.boolean().describe(\"Whether taxes and discounts are grouped\").nullable().optional(),\n}).passthrough().describe(\"Response model for fetching a specific invoice.\\nReturns complete invoice details including customer information and line items.\");\n\nexport const razorpayFetchInvoiceById: AppAction<\n typeof RazorpayFetchInvoiceByIdInput,\n typeof RazorpayFetchInvoiceByIdOutput,\n typeof razorpay.credential\n> = action(\"RAZORPAY_FETCH_INVOICE_BY_ID\", {\n slug: \"razorpay-fetch-invoice-by-id\",\n name: \"Fetch Invoice by ID\",\n description: \"Tool to fetch a specific invoice by its ID from Razorpay. Use when you need to retrieve complete details of an invoice including customer information, line items, amounts, and payment status.\",\n input: RazorpayFetchInvoiceByIdInput,\n output: RazorpayFetchInvoiceByIdOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,EACpF,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,UAAU,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6BAA6B;AACvD,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,S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AS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,kBAAkB,+CAA+C,SAAS,CAAC,CAAC,SAAS;CACrF,uBAAuBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kIAAkI;AAE5J,MAAa,2BAITC,eAAAA,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { razorpay } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/fetch-invoice-by-id.d.ts
|
|
@@ -95,9 +97,7 @@ declare const RazorpayFetchInvoiceByIdOutput: z.ZodObject<{
|
|
|
95
97
|
}, z.core.$loose>>>;
|
|
96
98
|
group_taxes_discounts: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
97
99
|
}, z.core.$loose>;
|
|
98
|
-
declare const razorpayFetchInvoiceById:
|
|
99
|
-
invoice_id: string;
|
|
100
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
100
|
+
declare const razorpayFetchInvoiceById: AppAction<typeof RazorpayFetchInvoiceByIdInput, typeof RazorpayFetchInvoiceByIdOutput, typeof razorpay.credential>;
|
|
101
101
|
//#endregion
|
|
102
102
|
export { razorpayFetchInvoiceById };
|
|
103
103
|
//# sourceMappingURL=fetch-invoice-by-id.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-invoice-by-id.d.cts","names":[],"sources":["../../src/actions/fetch-invoice-by-id.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetch-invoice-by-id.d.cts","names":[],"sources":["../../src/actions/fetch-invoice-by-id.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAiD7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA2C9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { razorpay } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/fetch-invoice-by-id.d.ts
|
|
@@ -95,9 +97,7 @@ declare const RazorpayFetchInvoiceByIdOutput: z.ZodObject<{
|
|
|
95
97
|
}, z.core.$loose>>>;
|
|
96
98
|
group_taxes_discounts: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
97
99
|
}, z.core.$loose>;
|
|
98
|
-
declare const razorpayFetchInvoiceById:
|
|
99
|
-
invoice_id: string;
|
|
100
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
100
|
+
declare const razorpayFetchInvoiceById: AppAction<typeof RazorpayFetchInvoiceByIdInput, typeof RazorpayFetchInvoiceByIdOutput, typeof razorpay.credential>;
|
|
101
101
|
//#endregion
|
|
102
102
|
export { razorpayFetchInvoiceById };
|
|
103
103
|
//# sourceMappingURL=fetch-invoice-by-id.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-invoice-by-id.d.mts","names":[],"sources":["../../src/actions/fetch-invoice-by-id.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetch-invoice-by-id.d.mts","names":[],"sources":["../../src/actions/fetch-invoice-by-id.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAiD7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA2C9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-invoice-by-id.mjs","names":[],"sources":["../../src/actions/fetch-invoice-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayFetchInvoiceByIdInput = z.object({\n invoice_id: z.string().describe(\"The unique identifier of the invoice to retrieve\"),\n}).describe(\"Request model for fetching a specific invoice by ID.\");\nconst RazorpayFetchInvoiceById_TaxDetailSchema = z.object({\n name: z.string().describe(\"Tax name\").nullable().optional(),\n rate: z.number().int().describe(\"Tax rate in basis points\").nullable().optional(),\n amount: z.number().int().describe(\"Tax amount in currency subunit\").nullable().optional(),\n tax_id: z.string().describe(\"Tax ID\").nullable().optional(),\n}).passthrough().describe(\"Tax detail for a line item.\");\nconst RazorpayFetchInvoiceById_LineItemSchema = z.object({\n id: z.string().describe(\"Line item ID\").nullable().optional(),\n name: z.string().describe(\"Item name\").nullable().optional(),\n type: z.string().describe(\"Line item type\").nullable().optional(),\n unit: z.string().describe(\"Unit of measurement\").nullable().optional(),\n taxes: z.array(RazorpayFetchInvoiceById_TaxDetailSchema).describe(\"List of tax details\").nullable().optional(),\n amount: z.number().int().describe(\"Item amount in currency subunit\").nullable().optional(),\n ref_id: z.string().describe(\"Reference ID for the item\").nullable().optional(),\n item_id: z.string().describe(\"Reference to item entity\").nullable().optional(),\n currency: z.string().describe(\"Currency code\").nullable().optional(),\n hsn_code: z.string().describe(\"HSN code for the item\").nullable().optional(),\n quantity: z.number().int().describe(\"Quantity of items\").nullable().optional(),\n ref_type: z.string().describe(\"Reference type\").nullable().optional(),\n sac_code: z.string().describe(\"SAC code for the item\").nullable().optional(),\n tax_rate: z.number().int().describe(\"Tax rate in basis points\").nullable().optional(),\n net_amount: z.number().int().describe(\"Net amount after tax\").nullable().optional(),\n tax_amount: z.number().int().describe(\"Tax amount\").nullable().optional(),\n description: z.string().describe(\"Item description\").nullable().optional(),\n unit_amount: z.number().int().describe(\"Unit price in currency subunit\").nullable().optional(),\n gross_amount: z.number().int().describe(\"Gross amount before tax\").nullable().optional(),\n tax_inclusive: z.boolean().describe(\"Whether tax is included in the amount\").nullable().optional(),\n taxable_amount: z.number().int().describe(\"Taxable amount\").nullable().optional(),\n}).passthrough().describe(\"Individual line item in an invoice.\");\nconst RazorpayFetchInvoiceById_AddressSchema = z.object({\n city: z.string().describe(\"City\").nullable().optional(),\n line1: z.string().describe(\"Address line 1\").nullable().optional(),\n line2: z.string().describe(\"Address line 2\").nullable().optional(),\n state: z.string().describe(\"State\").nullable().optional(),\n country: z.string().describe(\"Country\").nullable().optional(),\n zipcode: z.string().describe(\"Postal/ZIP code\").nullable().optional(),\n}).passthrough().describe(\"Address details for billing or shipping.\");\nconst RazorpayFetchInvoiceById_CustomerDetailsSchema = z.object({\n id: z.string().describe(\"Customer ID\").nullable().optional(),\n name: z.string().describe(\"Customer name\").nullable().optional(),\n email: z.string().describe(\"Customer email address\").nullable().optional(),\n gstin: z.string().describe(\"Customer GSTIN\").nullable().optional(),\n contact: z.string().describe(\"Customer contact number\").nullable().optional(),\n billing_address: RazorpayFetchInvoiceById_AddressSchema.nullable().optional(),\n shipping_address: RazorpayFetchInvoiceById_AddressSchema.nullable().optional(),\n}).passthrough().describe(\"Customer details associated with the invoice.\");\nexport const RazorpayFetchInvoiceByIdOutput = z.object({\n id: z.string().describe(\"Unique invoice identifier\").nullable(),\n date: z.number().int().describe(\"Invoice date as Unix timestamp\").nullable().optional(),\n type: z.string().describe(\"Invoice type\").nullable().optional(),\n notes: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]).nullable().optional(),\n terms: z.string().describe(\"Terms and conditions\").nullable().optional(),\n amount: z.number().int().describe(\"Total invoice amount in currency subunit\").nullable(),\n entity: z.string().describe(\"Entity type, always 'invoice'\").nullable(),\n status: z.string().describe(\"Invoice status (draft, issued, paid, etc.)\").nullable(),\n comment: z.string().describe(\"Comment on the invoice\").nullable().optional(),\n paid_at: z.number().int().describe(\"Unix timestamp when the invoice was paid\").nullable().optional(),\n receipt: z.string().describe(\"Internal reference number\").nullable().optional(),\n currency: z.string().describe(\"Three-letter ISO currency code\").nullable(),\n order_id: z.string().describe(\"Associated order ID\").nullable().optional(),\n expire_by: z.number().int().describe(\"Unix timestamp when the invoice expires\").nullable().optional(),\n issued_at: z.number().int().describe(\"Unix timestamp when the invoice was issued\").nullable().optional(),\n short_url: z.string().describe(\"Short URL for the invoice payment page\").nullable().optional(),\n view_less: z.boolean().describe(\"Whether to show a compact view\").nullable().optional(),\n amount_due: z.number().int().describe(\"Amount due in currency subunit\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the invoice was created\").nullable(),\n expired_at: z.number().int().describe(\"Unix timestamp when the invoice expired\").nullable().optional(),\n line_items: z.array(RazorpayFetchInvoiceById_LineItemSchema).describe(\"List of invoice line items\").nullable().optional(),\n payment_id: z.string().describe(\"Associated payment ID\").nullable().optional(),\n sms_status: z.string().describe(\"SMS notification status\").nullable().optional(),\n tax_amount: z.number().int().describe(\"Total tax amount in currency subunit\").nullable().optional(),\n amount_paid: z.number().int().describe(\"Amount paid so far in currency subunit\").nullable().optional(),\n billing_end: z.number().int().describe(\"Billing period end as Unix timestamp\").nullable().optional(),\n customer_id: z.string().describe(\"Associated customer ID\").nullable().optional(),\n description: z.string().describe(\"Invoice description\").nullable().optional(),\n cancelled_at: z.number().int().describe(\"Unix timestamp when the invoice was cancelled\").nullable().optional(),\n email_status: z.string().describe(\"Email notification status\").nullable().optional(),\n gross_amount: z.number().int().describe(\"Gross amount before tax in currency subunit\").nullable().optional(),\n billing_start: z.number().int().describe(\"Billing period start as Unix timestamp\").nullable().optional(),\n invoice_number: z.string().describe(\"Invoice number\").nullable().optional(),\n taxable_amount: z.number().int().describe(\"Taxable amount in currency subunit\").nullable().optional(),\n currency_symbol: z.string().describe(\"Currency symbol for display\").nullable().optional(),\n idempotency_key: z.string().describe(\"Idempotency key\").nullable().optional(),\n partial_payment: z.boolean().describe(\"Whether partial payments are allowed\").nullable().optional(),\n subscription_id: z.string().describe(\"Associated subscription ID\").nullable().optional(),\n customer_details: RazorpayFetchInvoiceById_CustomerDetailsSchema.nullable().optional(),\n group_taxes_discounts: z.boolean().describe(\"Whether taxes and discounts are grouped\").nullable().optional(),\n}).passthrough().describe(\"Response model for fetching a specific invoice.\\nReturns complete invoice details including customer information and line items.\");\n\nexport const razorpayFetchInvoiceById = action(\"RAZORPAY_FETCH_INVOICE_BY_ID\", {\n slug: \"razorpay-fetch-invoice-by-id\",\n name: \"Fetch Invoice by ID\",\n description: \"Tool to fetch a specific invoice by its ID from Razorpay. Use when you need to retrieve complete details of an invoice including customer information, line items, amounts, and payment status.\",\n input: RazorpayFetchInvoiceByIdInput,\n output: RazorpayFetchInvoiceByIdOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO,EACpD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,EACpF,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,2CAA2C,EAAE,OAAO;CACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,UAAU,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CA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invoice-by-id.mjs","names":[],"sources":["../../src/actions/fetch-invoice-by-id.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { razorpay } from \"../app\";\n\nexport const RazorpayFetchInvoiceByIdInput = z.object({\n invoice_id: z.string().describe(\"The unique identifier of the invoice to retrieve\"),\n}).describe(\"Request model for fetching a specific invoice by ID.\");\nconst RazorpayFetchInvoiceById_TaxDetailSchema = z.object({\n name: z.string().describe(\"Tax name\").nullable().optional(),\n rate: z.number().int().describe(\"Tax rate in basis points\").nullable().optional(),\n amount: z.number().int().describe(\"Tax amount in currency subunit\").nullable().optional(),\n tax_id: z.string().describe(\"Tax ID\").nullable().optional(),\n}).passthrough().describe(\"Tax detail for a line item.\");\nconst RazorpayFetchInvoiceById_LineItemSchema = z.object({\n id: z.string().describe(\"Line item ID\").nullable().optional(),\n name: z.string().describe(\"Item name\").nullable().optional(),\n type: z.string().describe(\"Line item type\").nullable().optional(),\n unit: z.string().describe(\"Unit of measurement\").nullable().optional(),\n taxes: z.array(RazorpayFetchInvoiceById_TaxDetailSchema).describe(\"List of tax details\").nullable().optional(),\n amount: z.number().int().describe(\"Item amount in currency subunit\").nullable().optional(),\n ref_id: z.string().describe(\"Reference ID for the item\").nullable().optional(),\n item_id: z.string().describe(\"Reference to item entity\").nullable().optional(),\n currency: z.string().describe(\"Currency code\").nullable().optional(),\n hsn_code: z.string().describe(\"HSN code for the item\").nullable().optional(),\n quantity: z.number().int().describe(\"Quantity of items\").nullable().optional(),\n ref_type: z.string().describe(\"Reference type\").nullable().optional(),\n sac_code: z.string().describe(\"SAC code for the item\").nullable().optional(),\n tax_rate: z.number().int().describe(\"Tax rate in basis points\").nullable().optional(),\n net_amount: z.number().int().describe(\"Net amount after tax\").nullable().optional(),\n tax_amount: z.number().int().describe(\"Tax amount\").nullable().optional(),\n description: z.string().describe(\"Item description\").nullable().optional(),\n unit_amount: z.number().int().describe(\"Unit price in currency subunit\").nullable().optional(),\n gross_amount: z.number().int().describe(\"Gross amount before tax\").nullable().optional(),\n tax_inclusive: z.boolean().describe(\"Whether tax is included in the amount\").nullable().optional(),\n taxable_amount: z.number().int().describe(\"Taxable amount\").nullable().optional(),\n}).passthrough().describe(\"Individual line item in an invoice.\");\nconst RazorpayFetchInvoiceById_AddressSchema = z.object({\n city: z.string().describe(\"City\").nullable().optional(),\n line1: z.string().describe(\"Address line 1\").nullable().optional(),\n line2: z.string().describe(\"Address line 2\").nullable().optional(),\n state: z.string().describe(\"State\").nullable().optional(),\n country: z.string().describe(\"Country\").nullable().optional(),\n zipcode: z.string().describe(\"Postal/ZIP code\").nullable().optional(),\n}).passthrough().describe(\"Address details for billing or shipping.\");\nconst RazorpayFetchInvoiceById_CustomerDetailsSchema = z.object({\n id: z.string().describe(\"Customer ID\").nullable().optional(),\n name: z.string().describe(\"Customer name\").nullable().optional(),\n email: z.string().describe(\"Customer email address\").nullable().optional(),\n gstin: z.string().describe(\"Customer GSTIN\").nullable().optional(),\n contact: z.string().describe(\"Customer contact number\").nullable().optional(),\n billing_address: RazorpayFetchInvoiceById_AddressSchema.nullable().optional(),\n shipping_address: RazorpayFetchInvoiceById_AddressSchema.nullable().optional(),\n}).passthrough().describe(\"Customer details associated with the invoice.\");\nexport const RazorpayFetchInvoiceByIdOutput = z.object({\n id: z.string().describe(\"Unique invoice identifier\").nullable(),\n date: z.number().int().describe(\"Invoice date as Unix timestamp\").nullable().optional(),\n type: z.string().describe(\"Invoice type\").nullable().optional(),\n notes: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]).nullable().optional(),\n terms: z.string().describe(\"Terms and conditions\").nullable().optional(),\n amount: z.number().int().describe(\"Total invoice amount in currency subunit\").nullable(),\n entity: z.string().describe(\"Entity type, always 'invoice'\").nullable(),\n status: z.string().describe(\"Invoice status (draft, issued, paid, etc.)\").nullable(),\n comment: z.string().describe(\"Comment on the invoice\").nullable().optional(),\n paid_at: z.number().int().describe(\"Unix timestamp when the invoice was paid\").nullable().optional(),\n receipt: z.string().describe(\"Internal reference number\").nullable().optional(),\n currency: z.string().describe(\"Three-letter ISO currency code\").nullable(),\n order_id: z.string().describe(\"Associated order ID\").nullable().optional(),\n expire_by: z.number().int().describe(\"Unix timestamp when the invoice expires\").nullable().optional(),\n issued_at: z.number().int().describe(\"Unix timestamp when the invoice was issued\").nullable().optional(),\n short_url: z.string().describe(\"Short URL for the invoice payment page\").nullable().optional(),\n view_less: z.boolean().describe(\"Whether to show a compact view\").nullable().optional(),\n amount_due: z.number().int().describe(\"Amount due in currency subunit\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the invoice was created\").nullable(),\n expired_at: z.number().int().describe(\"Unix timestamp when the invoice expired\").nullable().optional(),\n line_items: z.array(RazorpayFetchInvoiceById_LineItemSchema).describe(\"List of invoice line items\").nullable().optional(),\n payment_id: z.string().describe(\"Associated payment ID\").nullable().optional(),\n sms_status: z.string().describe(\"SMS notification status\").nullable().optional(),\n tax_amount: z.number().int().describe(\"Total tax amount in currency subunit\").nullable().optional(),\n amount_paid: z.number().int().describe(\"Amount paid so far in currency subunit\").nullable().optional(),\n billing_end: z.number().int().describe(\"Billing period end as Unix timestamp\").nullable().optional(),\n customer_id: z.string().describe(\"Associated customer ID\").nullable().optional(),\n description: z.string().describe(\"Invoice description\").nullable().optional(),\n cancelled_at: z.number().int().describe(\"Unix timestamp when the invoice was cancelled\").nullable().optional(),\n email_status: z.string().describe(\"Email notification status\").nullable().optional(),\n gross_amount: z.number().int().describe(\"Gross amount before tax in currency subunit\").nullable().optional(),\n billing_start: z.number().int().describe(\"Billing period start as Unix timestamp\").nullable().optional(),\n invoice_number: z.string().describe(\"Invoice number\").nullable().optional(),\n taxable_amount: z.number().int().describe(\"Taxable amount in currency subunit\").nullable().optional(),\n currency_symbol: z.string().describe(\"Currency symbol for display\").nullable().optional(),\n idempotency_key: z.string().describe(\"Idempotency key\").nullable().optional(),\n partial_payment: z.boolean().describe(\"Whether partial payments are allowed\").nullable().optional(),\n subscription_id: z.string().describe(\"Associated subscription ID\").nullable().optional(),\n customer_details: RazorpayFetchInvoiceById_CustomerDetailsSchema.nullable().optional(),\n group_taxes_discounts: z.boolean().describe(\"Whether taxes and discounts are grouped\").nullable().optional(),\n}).passthrough().describe(\"Response model for fetching a specific invoice.\\nReturns complete invoice details including customer information and line items.\");\n\nexport const razorpayFetchInvoiceById: AppAction<\n typeof RazorpayFetchInvoiceByIdInput,\n typeof RazorpayFetchInvoiceByIdOutput,\n typeof razorpay.credential\n> = action(\"RAZORPAY_FETCH_INVOICE_BY_ID\", {\n slug: \"razorpay-fetch-invoice-by-id\",\n name: \"Fetch Invoice by ID\",\n description: \"Tool to fetch a specific invoice by its ID from Razorpay. Use when you need to retrieve complete details of an invoice including customer information, line items, amounts, and payment status.\",\n input: RazorpayFetchInvoiceByIdInput,\n output: RazorpayFetchInvoiceByIdOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgC,EAAE,OAAO,EACpD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,EACpF,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,2CAA2C,EAAE,OAAO;CACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,UAAU,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6BAA6B;AACvD,MAAM,0CAA0C,EAAE,OAAO;CACvD,IAAI,EAA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ACnF,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3G,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1E,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5E,iBAAiB,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvF,kBAAkB,+CAA+C,SAAS,CAAC,CAAC,SAAS;EACrF,uBAAuB,EAAE,QAAQ,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kIAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-orders-by-id.cjs","names":["z","action"],"sources":["../../src/actions/fetch-orders-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayFetchOrdersByIdInput = z.object({\n order_id: z.string().describe(\"The unique identifier of the order to retrieve\"),\n}).describe(\"Request model for fetching a specific order by its ID.\");\nexport const RazorpayFetchOrdersByIdOutput = z.object({\n id: z.string().describe(\"Unique order identifier\").nullable(),\n notes: z.record(z.string(), z.unknown()).describe(\"Key-value pairs for storing additional information about the order\").nullable().optional(),\n amount: z.number().int().describe(\"Order amount in subunits (paise for INR). For example, 50000 paise = ₹500.00\").nullable(),\n entity: z.string().describe(\"Entity type, always 'order' for order objects\").nullable(),\n status: z.string().describe(\"Current status of the order (e.g., 'created', 'attempted', 'paid')\").nullable(),\n receipt: z.string().describe(\"Your system's order reference ID for internal tracking\").nullable().optional(),\n attempts: z.number().int().describe(\"Number of payment attempts made for this order\").nullable(),\n currency: z.string().describe(\"Three-letter ISO currency code (e.g., 'INR', 'USD')\").nullable(),\n offer_id: z.string().describe(\"The offer ID associated with this order, if any\").nullable().optional(),\n amount_due: z.number().int().describe(\"Remaining balance to be paid for this order in subunits\").nullable(),\n created_at: z.number().int().describe(\"Unix timestamp indicating when the order was created\").nullable(),\n amount_paid: z.number().int().describe(\"Amount already paid toward this order in subunits\").nullable().optional(),\n}).passthrough().describe(\"Response model containing details of a Razorpay order.\");\n\nexport const razorpayFetchOrdersById = action(\"RAZORPAY_FETCH_ORDERS_BY_ID\", {\n slug: \"razorpay-fetch-orders-by-id\",\n name: \"Fetch Order by ID\",\n description: \"Tool to fetch details of a specific Razorpay order using its order ID. Use when you need to retrieve order information, check order status, or verify payment details.\",\n input: RazorpayFetchOrdersByIdInput,\n output: RazorpayFetchOrdersByIdOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetch-orders-by-id.cjs","names":["z","action"],"sources":["../../src/actions/fetch-orders-by-id.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { razorpay } from \"../app\";\n\nexport const RazorpayFetchOrdersByIdInput = z.object({\n order_id: z.string().describe(\"The unique identifier of the order to retrieve\"),\n}).describe(\"Request model for fetching a specific order by its ID.\");\nexport const RazorpayFetchOrdersByIdOutput = z.object({\n id: z.string().describe(\"Unique order identifier\").nullable(),\n notes: z.record(z.string(), z.unknown()).describe(\"Key-value pairs for storing additional information about the order\").nullable().optional(),\n amount: z.number().int().describe(\"Order amount in subunits (paise for INR). For example, 50000 paise = ₹500.00\").nullable(),\n entity: z.string().describe(\"Entity type, always 'order' for order objects\").nullable(),\n status: z.string().describe(\"Current status of the order (e.g., 'created', 'attempted', 'paid')\").nullable(),\n receipt: z.string().describe(\"Your system's order reference ID for internal tracking\").nullable().optional(),\n attempts: z.number().int().describe(\"Number of payment attempts made for this order\").nullable(),\n currency: z.string().describe(\"Three-letter ISO currency code (e.g., 'INR', 'USD')\").nullable(),\n offer_id: z.string().describe(\"The offer ID associated with this order, if any\").nullable().optional(),\n amount_due: z.number().int().describe(\"Remaining balance to be paid for this order in subunits\").nullable(),\n created_at: z.number().int().describe(\"Unix timestamp indicating when the order was created\").nullable(),\n amount_paid: z.number().int().describe(\"Amount already paid toward this order in subunits\").nullable().optional(),\n}).passthrough().describe(\"Response model containing details of a Razorpay order.\");\n\nexport const razorpayFetchOrdersById: AppAction<\n typeof RazorpayFetchOrdersByIdInput,\n typeof RazorpayFetchOrdersByIdOutput,\n typeof razorpay.credential\n> = action(\"RAZORPAY_FETCH_ORDERS_BY_ID\", {\n slug: \"razorpay-fetch-orders-by-id\",\n name: \"Fetch Order by ID\",\n description: \"Tool to fetch details of a specific Razorpay order using its order ID. Use when you need to retrieve order information, check order status, or verify payment details.\",\n input: RazorpayFetchOrdersByIdInput,\n output: RazorpayFetchOrdersByIdOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,EAChF,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,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AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { razorpay } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/fetch-orders-by-id.d.ts
|
|
@@ -18,9 +20,7 @@ declare const RazorpayFetchOrdersByIdOutput: z.ZodObject<{
|
|
|
18
20
|
created_at: z.ZodNullable<z.ZodNumber>;
|
|
19
21
|
amount_paid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20
22
|
}, z.core.$loose>;
|
|
21
|
-
declare const razorpayFetchOrdersById:
|
|
22
|
-
order_id: string;
|
|
23
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
23
|
+
declare const razorpayFetchOrdersById: AppAction<typeof RazorpayFetchOrdersByIdInput, typeof RazorpayFetchOrdersByIdOutput, typeof razorpay.credential>;
|
|
24
24
|
//#endregion
|
|
25
25
|
export { razorpayFetchOrdersById };
|
|
26
26
|
//# sourceMappingURL=fetch-orders-by-id.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-orders-by-id.d.cts","names":[],"sources":["../../src/actions/fetch-orders-by-id.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetch-orders-by-id.d.cts","names":[],"sources":["../../src/actions/fetch-orders-by-id.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAG5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAe7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { razorpay } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/fetch-orders-by-id.d.ts
|
|
@@ -18,9 +20,7 @@ declare const RazorpayFetchOrdersByIdOutput: z.ZodObject<{
|
|
|
18
20
|
created_at: z.ZodNullable<z.ZodNumber>;
|
|
19
21
|
amount_paid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20
22
|
}, z.core.$loose>;
|
|
21
|
-
declare const razorpayFetchOrdersById:
|
|
22
|
-
order_id: string;
|
|
23
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
23
|
+
declare const razorpayFetchOrdersById: AppAction<typeof RazorpayFetchOrdersByIdInput, typeof RazorpayFetchOrdersByIdOutput, typeof razorpay.credential>;
|
|
24
24
|
//#endregion
|
|
25
25
|
export { razorpayFetchOrdersById };
|
|
26
26
|
//# sourceMappingURL=fetch-orders-by-id.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-orders-by-id.d.mts","names":[],"sources":["../../src/actions/fetch-orders-by-id.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetch-orders-by-id.d.mts","names":[],"sources":["../../src/actions/fetch-orders-by-id.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAG5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAe7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-orders-by-id.mjs","names":[],"sources":["../../src/actions/fetch-orders-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayFetchOrdersByIdInput = z.object({\n order_id: z.string().describe(\"The unique identifier of the order to retrieve\"),\n}).describe(\"Request model for fetching a specific order by its ID.\");\nexport const RazorpayFetchOrdersByIdOutput = z.object({\n id: z.string().describe(\"Unique order identifier\").nullable(),\n notes: z.record(z.string(), z.unknown()).describe(\"Key-value pairs for storing additional information about the order\").nullable().optional(),\n amount: z.number().int().describe(\"Order amount in subunits (paise for INR). For example, 50000 paise = ₹500.00\").nullable(),\n entity: z.string().describe(\"Entity type, always 'order' for order objects\").nullable(),\n status: z.string().describe(\"Current status of the order (e.g., 'created', 'attempted', 'paid')\").nullable(),\n receipt: z.string().describe(\"Your system's order reference ID for internal tracking\").nullable().optional(),\n attempts: z.number().int().describe(\"Number of payment attempts made for this order\").nullable(),\n currency: z.string().describe(\"Three-letter ISO currency code (e.g., 'INR', 'USD')\").nullable(),\n offer_id: z.string().describe(\"The offer ID associated with this order, if any\").nullable().optional(),\n amount_due: z.number().int().describe(\"Remaining balance to be paid for this order in subunits\").nullable(),\n created_at: z.number().int().describe(\"Unix timestamp indicating when the order was created\").nullable(),\n amount_paid: z.number().int().describe(\"Amount already paid toward this order in subunits\").nullable().optional(),\n}).passthrough().describe(\"Response model containing details of a Razorpay order.\");\n\nexport const razorpayFetchOrdersById = action(\"RAZORPAY_FETCH_ORDERS_BY_ID\", {\n slug: \"razorpay-fetch-orders-by-id\",\n name: \"Fetch Order by ID\",\n description: \"Tool to fetch details of a specific Razorpay order using its order ID. Use when you need to retrieve order information, check order status, or verify payment details.\",\n input: RazorpayFetchOrdersByIdInput,\n output: RazorpayFetchOrdersByIdOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetch-orders-by-id.mjs","names":[],"sources":["../../src/actions/fetch-orders-by-id.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { razorpay } from \"../app\";\n\nexport const RazorpayFetchOrdersByIdInput = z.object({\n order_id: z.string().describe(\"The unique identifier of the order to retrieve\"),\n}).describe(\"Request model for fetching a specific order by its ID.\");\nexport const RazorpayFetchOrdersByIdOutput = z.object({\n id: z.string().describe(\"Unique order identifier\").nullable(),\n notes: z.record(z.string(), z.unknown()).describe(\"Key-value pairs for storing additional information about the order\").nullable().optional(),\n amount: z.number().int().describe(\"Order amount in subunits (paise for INR). For example, 50000 paise = ₹500.00\").nullable(),\n entity: z.string().describe(\"Entity type, always 'order' for order objects\").nullable(),\n status: z.string().describe(\"Current status of the order (e.g., 'created', 'attempted', 'paid')\").nullable(),\n receipt: z.string().describe(\"Your system's order reference ID for internal tracking\").nullable().optional(),\n attempts: z.number().int().describe(\"Number of payment attempts made for this order\").nullable(),\n currency: z.string().describe(\"Three-letter ISO currency code (e.g., 'INR', 'USD')\").nullable(),\n offer_id: z.string().describe(\"The offer ID associated with this order, if any\").nullable().optional(),\n amount_due: z.number().int().describe(\"Remaining balance to be paid for this order in subunits\").nullable(),\n created_at: z.number().int().describe(\"Unix timestamp indicating when the order was created\").nullable(),\n amount_paid: z.number().int().describe(\"Amount already paid toward this order in subunits\").nullable().optional(),\n}).passthrough().describe(\"Response model containing details of a Razorpay order.\");\n\nexport const razorpayFetchOrdersById: AppAction<\n typeof RazorpayFetchOrdersByIdInput,\n typeof RazorpayFetchOrdersByIdOutput,\n typeof razorpay.credential\n> = action(\"RAZORPAY_FETCH_ORDERS_BY_ID\", {\n slug: \"razorpay-fetch-orders-by-id\",\n name: \"Fetch Order by ID\",\n description: \"Tool to fetch details of a specific Razorpay order using its order ID. Use when you need to retrieve order information, check order status, or verify payment details.\",\n input: RazorpayFetchOrdersByIdInput,\n output: RazorpayFetchOrdersByIdOutput,\n});\n"],"mappings":";;;AAwBA,MAAa,0BAIT,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA1B0C,EAAE,OAAO,EACnD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,EAChF,CAAC,CAAC,CAAC,SAAS,wDAwBH;CACP,QAxB2C,EAAE,OAAO;EACpD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;EAC5D,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5I,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;EAC3H,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EACtF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;EAC3G,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3G,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EAC/F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;EAC9F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;EAC1G,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EACvG,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-orders.cjs","names":["z","action"],"sources":["../../src/actions/fetch-orders.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayFetchOrdersInput = z.object({\n skip: z.number().int().default(0).describe(\"Number of orders to skip for pagination (default: 0)\").optional(),\n count: z.number().int().default(10).describe(\"Number of orders to fetch (default: 10, max: 100)\").optional(),\n receipt: z.string().describe(\"Filter orders by specific receipt reference number\").optional(),\n authorized: z.number().int().describe(\"Filter orders by authorization status. Set to 1 for authorized orders, 0 for unauthorized orders\").optional(),\n to_timestamp: z.number().int().describe(\"Unix timestamp to fetch orders created before this time\").optional(),\n from_timestamp: z.number().int().describe(\"Unix timestamp to fetch orders created after this time\").optional(),\n}).describe(\"Request model for fetching all orders with pagination and filtering support.\");\nconst RazorpayFetchOrders_OrderItemSchema = z.object({\n id: z.string().describe(\"Unique order identifier\").nullable(),\n notes: z.record(z.string(), z.unknown()).describe(\"Key-value pairs for storing additional information about the order\").nullable().optional(),\n amount: z.number().int().describe(\"Order amount in subunits (paise for INR). For example, 50000 paise = ₹500.00\").nullable(),\n entity: z.string().describe(\"Entity type, always 'order' for order objects\").nullable(),\n status: z.string().describe(\"Current status of the order (e.g., 'created', 'attempted', 'paid')\").nullable(),\n receipt: z.string().describe(\"Your system's order reference ID for internal tracking\").nullable().optional(),\n attempts: z.number().int().describe(\"Number of payment attempts made for this order\").nullable(),\n currency: z.string().describe(\"Three-letter ISO currency code (e.g., 'INR', 'USD')\").nullable(),\n offer_id: z.string().describe(\"The offer ID associated with this order, if any\").nullable().optional(),\n amount_due: z.number().int().describe(\"Remaining balance to be paid for this order in subunits\").nullable(),\n created_at: z.number().int().describe(\"Unix timestamp indicating when the order was created\").nullable(),\n amount_paid: z.number().int().describe(\"Amount already paid toward this order in subunits\").nullable().optional(),\n}).passthrough().describe(\"Represents a single order in the Razorpay system.\");\nexport const RazorpayFetchOrdersOutput = z.object({\n count: z.number().int().describe(\"Number of order records in this response\").nullable(),\n items: z.array(RazorpayFetchOrders_OrderItemSchema).describe(\"List of order objects\"),\n entity: z.string().describe(\"Entity type, always 'collection'\").nullable(),\n}).passthrough().describe(\"Response model for fetching all orders.\");\n\nexport const razorpayFetchOrders = action(\"RAZORPAY_FETCH_ORDERS\", {\n slug: \"razorpay-fetch-orders\",\n name: \"Fetch All Orders\",\n description: \"Tool to retrieve a paginated list of all orders from Razorpay. Use when you need to fetch multiple orders, filter by date range, receipt, or authorization status.\",\n input: RazorpayFetchOrdersInput,\n output: RazorpayFetchOrdersOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetch-orders.cjs","names":["z","action"],"sources":["../../src/actions/fetch-orders.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { razorpay } from \"../app\";\n\nexport const RazorpayFetchOrdersInput = z.object({\n skip: z.number().int().default(0).describe(\"Number of orders to skip for pagination (default: 0)\").optional(),\n count: z.number().int().default(10).describe(\"Number of orders to fetch (default: 10, max: 100)\").optional(),\n receipt: z.string().describe(\"Filter orders by specific receipt reference number\").optional(),\n authorized: z.number().int().describe(\"Filter orders by authorization status. Set to 1 for authorized orders, 0 for unauthorized orders\").optional(),\n to_timestamp: z.number().int().describe(\"Unix timestamp to fetch orders created before this time\").optional(),\n from_timestamp: z.number().int().describe(\"Unix timestamp to fetch orders created after this time\").optional(),\n}).describe(\"Request model for fetching all orders with pagination and filtering support.\");\nconst RazorpayFetchOrders_OrderItemSchema = z.object({\n id: z.string().describe(\"Unique order identifier\").nullable(),\n notes: z.record(z.string(), z.unknown()).describe(\"Key-value pairs for storing additional information about the order\").nullable().optional(),\n amount: z.number().int().describe(\"Order amount in subunits (paise for INR). For example, 50000 paise = ₹500.00\").nullable(),\n entity: z.string().describe(\"Entity type, always 'order' for order objects\").nullable(),\n status: z.string().describe(\"Current status of the order (e.g., 'created', 'attempted', 'paid')\").nullable(),\n receipt: z.string().describe(\"Your system's order reference ID for internal tracking\").nullable().optional(),\n attempts: z.number().int().describe(\"Number of payment attempts made for this order\").nullable(),\n currency: z.string().describe(\"Three-letter ISO currency code (e.g., 'INR', 'USD')\").nullable(),\n offer_id: z.string().describe(\"The offer ID associated with this order, if any\").nullable().optional(),\n amount_due: z.number().int().describe(\"Remaining balance to be paid for this order in subunits\").nullable(),\n created_at: z.number().int().describe(\"Unix timestamp indicating when the order was created\").nullable(),\n amount_paid: z.number().int().describe(\"Amount already paid toward this order in subunits\").nullable().optional(),\n}).passthrough().describe(\"Represents a single order in the Razorpay system.\");\nexport const RazorpayFetchOrdersOutput = z.object({\n count: z.number().int().describe(\"Number of order records in this response\").nullable(),\n items: z.array(RazorpayFetchOrders_OrderItemSchema).describe(\"List of order objects\"),\n entity: z.string().describe(\"Entity type, always 'collection'\").nullable(),\n}).passthrough().describe(\"Response model for fetching all orders.\");\n\nexport const razorpayFetchOrders: AppAction<\n typeof RazorpayFetchOrdersInput,\n typeof RazorpayFetchOrdersOutput,\n typeof razorpay.credential\n> = action(\"RAZORPAY_FETCH_ORDERS\", {\n slug: \"razorpay-fetch-orders\",\n name: \"Fetch All Orders\",\n description: \"Tool to retrieve a paginated list of all orders from Razorpay. Use when you need to fetch multiple orders, filter by date range, receipt, or authorization status.\",\n input: RazorpayFetchOrdersInput,\n output: RazorpayFetchOrdersOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC5G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC3G,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC5F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CACnJ,cAAcA,IAAAA,EAAE,OAAO,CAAC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