@keystrokehq/paystack 0.1.0
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/README.md +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/add-products-to-page.cjs +64 -0
- package/dist/actions/add-products-to-page.cjs.map +1 -0
- package/dist/actions/add-products-to-page.d.cts +9 -0
- package/dist/actions/add-products-to-page.d.cts.map +1 -0
- package/dist/actions/add-products-to-page.d.mts +9 -0
- package/dist/actions/add-products-to-page.d.mts.map +1 -0
- package/dist/actions/add-products-to-page.mjs +63 -0
- package/dist/actions/add-products-to-page.mjs.map +1 -0
- package/dist/actions/add-products-to-storefront.cjs +23 -0
- package/dist/actions/add-products-to-storefront.cjs.map +1 -0
- package/dist/actions/add-products-to-storefront.d.cts +9 -0
- package/dist/actions/add-products-to-storefront.d.cts.map +1 -0
- package/dist/actions/add-products-to-storefront.d.mts +9 -0
- package/dist/actions/add-products-to-storefront.d.mts.map +1 -0
- package/dist/actions/add-products-to-storefront.mjs +20 -0
- package/dist/actions/add-products-to-storefront.mjs.map +1 -0
- package/dist/actions/add-split-code-to-virtual-terminal.cjs +44 -0
- package/dist/actions/add-split-code-to-virtual-terminal.cjs.map +1 -0
- package/dist/actions/add-split-code-to-virtual-terminal.d.cts +9 -0
- package/dist/actions/add-split-code-to-virtual-terminal.d.cts.map +1 -0
- package/dist/actions/add-split-code-to-virtual-terminal.d.mts +9 -0
- package/dist/actions/add-split-code-to-virtual-terminal.d.mts.map +1 -0
- package/dist/actions/add-split-code-to-virtual-terminal.mjs +43 -0
- package/dist/actions/add-split-code-to-virtual-terminal.mjs.map +1 -0
- package/dist/actions/add-subaccount-to-split.cjs +45 -0
- package/dist/actions/add-subaccount-to-split.cjs.map +1 -0
- package/dist/actions/add-subaccount-to-split.d.cts +9 -0
- package/dist/actions/add-subaccount-to-split.d.cts.map +1 -0
- package/dist/actions/add-subaccount-to-split.d.mts +9 -0
- package/dist/actions/add-subaccount-to-split.d.mts.map +1 -0
- package/dist/actions/add-subaccount-to-split.mjs +44 -0
- package/dist/actions/add-subaccount-to-split.mjs.map +1 -0
- package/dist/actions/archive-payment-request.cjs +19 -0
- package/dist/actions/archive-payment-request.cjs.map +1 -0
- package/dist/actions/archive-payment-request.d.cts +9 -0
- package/dist/actions/archive-payment-request.d.cts.map +1 -0
- package/dist/actions/archive-payment-request.d.mts +9 -0
- package/dist/actions/archive-payment-request.d.mts.map +1 -0
- package/dist/actions/archive-payment-request.mjs +16 -0
- package/dist/actions/archive-payment-request.mjs.map +1 -0
- package/dist/actions/assign-destination-to-virtual-terminal.cjs +35 -0
- package/dist/actions/assign-destination-to-virtual-terminal.cjs.map +1 -0
- package/dist/actions/assign-destination-to-virtual-terminal.d.cts +9 -0
- package/dist/actions/assign-destination-to-virtual-terminal.d.cts.map +1 -0
- package/dist/actions/assign-destination-to-virtual-terminal.d.mts +9 -0
- package/dist/actions/assign-destination-to-virtual-terminal.d.mts.map +1 -0
- package/dist/actions/assign-destination-to-virtual-terminal.mjs +34 -0
- package/dist/actions/assign-destination-to-virtual-terminal.mjs.map +1 -0
- package/dist/actions/check-pending-charge.cjs +58 -0
- package/dist/actions/check-pending-charge.cjs.map +1 -0
- package/dist/actions/check-pending-charge.d.cts +9 -0
- package/dist/actions/check-pending-charge.d.cts.map +1 -0
- package/dist/actions/check-pending-charge.d.mts +9 -0
- package/dist/actions/check-pending-charge.d.mts.map +1 -0
- package/dist/actions/check-pending-charge.mjs +57 -0
- package/dist/actions/check-pending-charge.mjs.map +1 -0
- package/dist/actions/check-slug-availability.cjs +19 -0
- package/dist/actions/check-slug-availability.cjs.map +1 -0
- package/dist/actions/check-slug-availability.d.cts +9 -0
- package/dist/actions/check-slug-availability.d.cts.map +1 -0
- package/dist/actions/check-slug-availability.d.mts +9 -0
- package/dist/actions/check-slug-availability.d.mts.map +1 -0
- package/dist/actions/check-slug-availability.mjs +16 -0
- package/dist/actions/check-slug-availability.mjs.map +1 -0
- package/dist/actions/create-bulk-transfer-recipient.cjs +55 -0
- package/dist/actions/create-bulk-transfer-recipient.cjs.map +1 -0
- package/dist/actions/create-bulk-transfer-recipient.d.cts +9 -0
- package/dist/actions/create-bulk-transfer-recipient.d.cts.map +1 -0
- package/dist/actions/create-bulk-transfer-recipient.d.mts +9 -0
- package/dist/actions/create-bulk-transfer-recipient.d.mts.map +1 -0
- package/dist/actions/create-bulk-transfer-recipient.mjs +54 -0
- package/dist/actions/create-bulk-transfer-recipient.mjs.map +1 -0
- package/dist/actions/create-charge.cjs +124 -0
- package/dist/actions/create-charge.cjs.map +1 -0
- package/dist/actions/create-charge.d.cts +9 -0
- package/dist/actions/create-charge.d.cts.map +1 -0
- package/dist/actions/create-charge.d.mts +9 -0
- package/dist/actions/create-charge.d.mts.map +1 -0
- package/dist/actions/create-charge.mjs +123 -0
- package/dist/actions/create-charge.mjs.map +1 -0
- package/dist/actions/create-customer.cjs +45 -0
- package/dist/actions/create-customer.cjs.map +1 -0
- package/dist/actions/create-customer.d.cts +9 -0
- package/dist/actions/create-customer.d.cts.map +1 -0
- package/dist/actions/create-customer.d.mts +9 -0
- package/dist/actions/create-customer.d.mts.map +1 -0
- package/dist/actions/create-customer.mjs +44 -0
- package/dist/actions/create-customer.mjs.map +1 -0
- package/dist/actions/create-payment-page.cjs +62 -0
- package/dist/actions/create-payment-page.cjs.map +1 -0
- package/dist/actions/create-payment-page.d.cts +9 -0
- package/dist/actions/create-payment-page.d.cts.map +1 -0
- package/dist/actions/create-payment-page.d.mts +9 -0
- package/dist/actions/create-payment-page.d.mts.map +1 -0
- package/dist/actions/create-payment-page.mjs +61 -0
- package/dist/actions/create-payment-page.mjs.map +1 -0
- package/dist/actions/create-payment-request.cjs +68 -0
- package/dist/actions/create-payment-request.cjs.map +1 -0
- package/dist/actions/create-payment-request.d.cts +9 -0
- package/dist/actions/create-payment-request.d.cts.map +1 -0
- package/dist/actions/create-payment-request.d.mts +9 -0
- package/dist/actions/create-payment-request.d.mts.map +1 -0
- package/dist/actions/create-payment-request.mjs +67 -0
- package/dist/actions/create-payment-request.mjs.map +1 -0
- package/dist/actions/create-plan.cjs +53 -0
- package/dist/actions/create-plan.cjs.map +1 -0
- package/dist/actions/create-plan.d.cts +9 -0
- package/dist/actions/create-plan.d.cts.map +1 -0
- package/dist/actions/create-plan.d.mts +9 -0
- package/dist/actions/create-plan.d.mts.map +1 -0
- package/dist/actions/create-plan.mjs +52 -0
- package/dist/actions/create-plan.mjs.map +1 -0
- package/dist/actions/create-refund.cjs +68 -0
- package/dist/actions/create-refund.cjs.map +1 -0
- package/dist/actions/create-refund.d.cts +9 -0
- package/dist/actions/create-refund.d.cts.map +1 -0
- package/dist/actions/create-refund.d.mts +9 -0
- package/dist/actions/create-refund.d.mts.map +1 -0
- package/dist/actions/create-refund.mjs +67 -0
- package/dist/actions/create-refund.mjs.map +1 -0
- package/dist/actions/create-split.cjs +62 -0
- package/dist/actions/create-split.cjs.map +1 -0
- package/dist/actions/create-split.d.cts +9 -0
- package/dist/actions/create-split.d.cts.map +1 -0
- package/dist/actions/create-split.d.mts +9 -0
- package/dist/actions/create-split.d.mts.map +1 -0
- package/dist/actions/create-split.mjs +61 -0
- package/dist/actions/create-split.mjs.map +1 -0
- package/dist/actions/create-storefront.cjs +55 -0
- package/dist/actions/create-storefront.cjs.map +1 -0
- package/dist/actions/create-storefront.d.cts +9 -0
- package/dist/actions/create-storefront.d.cts.map +1 -0
- package/dist/actions/create-storefront.d.mts +9 -0
- package/dist/actions/create-storefront.d.mts.map +1 -0
- package/dist/actions/create-storefront.mjs +54 -0
- package/dist/actions/create-storefront.mjs.map +1 -0
- package/dist/actions/create-subaccount.cjs +56 -0
- package/dist/actions/create-subaccount.cjs.map +1 -0
- package/dist/actions/create-subaccount.d.cts +9 -0
- package/dist/actions/create-subaccount.d.cts.map +1 -0
- package/dist/actions/create-subaccount.d.mts +9 -0
- package/dist/actions/create-subaccount.d.mts.map +1 -0
- package/dist/actions/create-subaccount.mjs +55 -0
- package/dist/actions/create-subaccount.mjs.map +1 -0
- package/dist/actions/create-transfer-recipient.cjs +60 -0
- package/dist/actions/create-transfer-recipient.cjs.map +1 -0
- package/dist/actions/create-transfer-recipient.d.cts +9 -0
- package/dist/actions/create-transfer-recipient.d.cts.map +1 -0
- package/dist/actions/create-transfer-recipient.d.mts +9 -0
- package/dist/actions/create-transfer-recipient.d.mts.map +1 -0
- package/dist/actions/create-transfer-recipient.mjs +59 -0
- package/dist/actions/create-transfer-recipient.mjs.map +1 -0
- package/dist/actions/create-virtual-terminal.cjs +44 -0
- package/dist/actions/create-virtual-terminal.cjs.map +1 -0
- package/dist/actions/create-virtual-terminal.d.cts +9 -0
- package/dist/actions/create-virtual-terminal.d.cts.map +1 -0
- package/dist/actions/create-virtual-terminal.d.mts +9 -0
- package/dist/actions/create-virtual-terminal.d.mts.map +1 -0
- package/dist/actions/create-virtual-terminal.mjs +43 -0
- package/dist/actions/create-virtual-terminal.mjs.map +1 -0
- package/dist/actions/deactivate-authorization.cjs +19 -0
- package/dist/actions/deactivate-authorization.cjs.map +1 -0
- package/dist/actions/deactivate-authorization.d.cts +9 -0
- package/dist/actions/deactivate-authorization.d.cts.map +1 -0
- package/dist/actions/deactivate-authorization.d.mts +9 -0
- package/dist/actions/deactivate-authorization.d.mts.map +1 -0
- package/dist/actions/deactivate-authorization.mjs +16 -0
- package/dist/actions/deactivate-authorization.mjs.map +1 -0
- package/dist/actions/deactivate-virtual-terminal.cjs +19 -0
- package/dist/actions/deactivate-virtual-terminal.cjs.map +1 -0
- package/dist/actions/deactivate-virtual-terminal.d.cts +9 -0
- package/dist/actions/deactivate-virtual-terminal.d.cts.map +1 -0
- package/dist/actions/deactivate-virtual-terminal.d.mts +9 -0
- package/dist/actions/deactivate-virtual-terminal.d.mts.map +1 -0
- package/dist/actions/deactivate-virtual-terminal.mjs +16 -0
- package/dist/actions/deactivate-virtual-terminal.mjs.map +1 -0
- package/dist/actions/delete-product.cjs +19 -0
- package/dist/actions/delete-product.cjs.map +1 -0
- package/dist/actions/delete-product.d.cts +9 -0
- package/dist/actions/delete-product.d.cts.map +1 -0
- package/dist/actions/delete-product.d.mts +9 -0
- package/dist/actions/delete-product.d.mts.map +1 -0
- package/dist/actions/delete-product.mjs +16 -0
- package/dist/actions/delete-product.mjs.map +1 -0
- package/dist/actions/delete-storefront.cjs +19 -0
- package/dist/actions/delete-storefront.cjs.map +1 -0
- package/dist/actions/delete-storefront.d.cts +9 -0
- package/dist/actions/delete-storefront.d.cts.map +1 -0
- package/dist/actions/delete-storefront.d.mts +9 -0
- package/dist/actions/delete-storefront.d.mts.map +1 -0
- package/dist/actions/delete-storefront.mjs +16 -0
- package/dist/actions/delete-storefront.mjs.map +1 -0
- package/dist/actions/delete-transfer-recipient.cjs +19 -0
- package/dist/actions/delete-transfer-recipient.cjs.map +1 -0
- package/dist/actions/delete-transfer-recipient.d.cts +9 -0
- package/dist/actions/delete-transfer-recipient.d.cts.map +1 -0
- package/dist/actions/delete-transfer-recipient.d.mts +9 -0
- package/dist/actions/delete-transfer-recipient.d.mts.map +1 -0
- package/dist/actions/delete-transfer-recipient.mjs +16 -0
- package/dist/actions/delete-transfer-recipient.mjs.map +1 -0
- package/dist/actions/disable-otp-for-transfers.cjs +19 -0
- package/dist/actions/disable-otp-for-transfers.cjs.map +1 -0
- package/dist/actions/disable-otp-for-transfers.d.cts +9 -0
- package/dist/actions/disable-otp-for-transfers.d.cts.map +1 -0
- package/dist/actions/disable-otp-for-transfers.d.mts +9 -0
- package/dist/actions/disable-otp-for-transfers.d.mts.map +1 -0
- package/dist/actions/disable-otp-for-transfers.mjs +16 -0
- package/dist/actions/disable-otp-for-transfers.mjs.map +1 -0
- package/dist/actions/disable-subscription.cjs +24 -0
- package/dist/actions/disable-subscription.cjs.map +1 -0
- package/dist/actions/disable-subscription.d.cts +9 -0
- package/dist/actions/disable-subscription.d.cts.map +1 -0
- package/dist/actions/disable-subscription.d.mts +9 -0
- package/dist/actions/disable-subscription.d.mts.map +1 -0
- package/dist/actions/disable-subscription.mjs +23 -0
- package/dist/actions/disable-subscription.mjs.map +1 -0
- package/dist/actions/duplicate-storefront.cjs +29 -0
- package/dist/actions/duplicate-storefront.cjs.map +1 -0
- package/dist/actions/duplicate-storefront.d.cts +9 -0
- package/dist/actions/duplicate-storefront.d.cts.map +1 -0
- package/dist/actions/duplicate-storefront.d.mts +9 -0
- package/dist/actions/duplicate-storefront.d.mts.map +1 -0
- package/dist/actions/duplicate-storefront.mjs +28 -0
- package/dist/actions/duplicate-storefront.mjs.map +1 -0
- package/dist/actions/enable-otp-requirement-for-transfers.cjs +19 -0
- package/dist/actions/enable-otp-requirement-for-transfers.cjs.map +1 -0
- package/dist/actions/enable-otp-requirement-for-transfers.d.cts +9 -0
- package/dist/actions/enable-otp-requirement-for-transfers.d.cts.map +1 -0
- package/dist/actions/enable-otp-requirement-for-transfers.d.mts +9 -0
- package/dist/actions/enable-otp-requirement-for-transfers.d.mts.map +1 -0
- package/dist/actions/enable-otp-requirement-for-transfers.mjs +16 -0
- package/dist/actions/enable-otp-requirement-for-transfers.mjs.map +1 -0
- package/dist/actions/export-transactions.cjs +37 -0
- package/dist/actions/export-transactions.cjs.map +1 -0
- package/dist/actions/export-transactions.d.cts +9 -0
- package/dist/actions/export-transactions.d.cts.map +1 -0
- package/dist/actions/export-transactions.d.mts +9 -0
- package/dist/actions/export-transactions.d.mts.map +1 -0
- package/dist/actions/export-transactions.mjs +36 -0
- package/dist/actions/export-transactions.mjs.map +1 -0
- package/dist/actions/fetch-balance-ledger.cjs +46 -0
- package/dist/actions/fetch-balance-ledger.cjs.map +1 -0
- package/dist/actions/fetch-balance-ledger.d.cts +9 -0
- package/dist/actions/fetch-balance-ledger.d.cts.map +1 -0
- package/dist/actions/fetch-balance-ledger.d.mts +9 -0
- package/dist/actions/fetch-balance-ledger.d.mts.map +1 -0
- package/dist/actions/fetch-balance-ledger.mjs +45 -0
- package/dist/actions/fetch-balance-ledger.mjs.map +1 -0
- package/dist/actions/fetch-balance.cjs +24 -0
- package/dist/actions/fetch-balance.cjs.map +1 -0
- package/dist/actions/fetch-balance.d.cts +9 -0
- package/dist/actions/fetch-balance.d.cts.map +1 -0
- package/dist/actions/fetch-balance.d.mts +9 -0
- package/dist/actions/fetch-balance.d.mts.map +1 -0
- package/dist/actions/fetch-balance.mjs +23 -0
- package/dist/actions/fetch-balance.mjs.map +1 -0
- package/dist/actions/fetch-bulk-charge-batch.cjs +32 -0
- package/dist/actions/fetch-bulk-charge-batch.cjs.map +1 -0
- package/dist/actions/fetch-bulk-charge-batch.d.cts +9 -0
- package/dist/actions/fetch-bulk-charge-batch.d.cts.map +1 -0
- package/dist/actions/fetch-bulk-charge-batch.d.mts +9 -0
- package/dist/actions/fetch-bulk-charge-batch.d.mts.map +1 -0
- package/dist/actions/fetch-bulk-charge-batch.mjs +31 -0
- package/dist/actions/fetch-bulk-charge-batch.mjs.map +1 -0
- package/dist/actions/fetch-customer.cjs +93 -0
- package/dist/actions/fetch-customer.cjs.map +1 -0
- package/dist/actions/fetch-customer.d.cts +9 -0
- package/dist/actions/fetch-customer.d.cts.map +1 -0
- package/dist/actions/fetch-customer.d.mts +9 -0
- package/dist/actions/fetch-customer.d.mts.map +1 -0
- package/dist/actions/fetch-customer.mjs +92 -0
- package/dist/actions/fetch-customer.mjs.map +1 -0
- package/dist/actions/fetch-mandate-authorizations.cjs +50 -0
- package/dist/actions/fetch-mandate-authorizations.cjs.map +1 -0
- package/dist/actions/fetch-mandate-authorizations.d.cts +9 -0
- package/dist/actions/fetch-mandate-authorizations.d.cts.map +1 -0
- package/dist/actions/fetch-mandate-authorizations.d.mts +9 -0
- package/dist/actions/fetch-mandate-authorizations.d.mts.map +1 -0
- package/dist/actions/fetch-mandate-authorizations.mjs +49 -0
- package/dist/actions/fetch-mandate-authorizations.mjs.map +1 -0
- package/dist/actions/fetch-payment-page.cjs +43 -0
- package/dist/actions/fetch-payment-page.cjs.map +1 -0
- package/dist/actions/fetch-payment-page.d.cts +9 -0
- package/dist/actions/fetch-payment-page.d.cts.map +1 -0
- package/dist/actions/fetch-payment-page.d.mts +9 -0
- package/dist/actions/fetch-payment-page.d.mts.map +1 -0
- package/dist/actions/fetch-payment-page.mjs +42 -0
- package/dist/actions/fetch-payment-page.mjs.map +1 -0
- package/dist/actions/fetch-payment-request.cjs +73 -0
- package/dist/actions/fetch-payment-request.cjs.map +1 -0
- package/dist/actions/fetch-payment-request.d.cts +9 -0
- package/dist/actions/fetch-payment-request.d.cts.map +1 -0
- package/dist/actions/fetch-payment-request.d.mts +9 -0
- package/dist/actions/fetch-payment-request.d.mts.map +1 -0
- package/dist/actions/fetch-payment-request.mjs +72 -0
- package/dist/actions/fetch-payment-request.mjs.map +1 -0
- package/dist/actions/fetch-payment-session-timeout.cjs +21 -0
- package/dist/actions/fetch-payment-session-timeout.cjs.map +1 -0
- package/dist/actions/fetch-payment-session-timeout.d.cts +9 -0
- package/dist/actions/fetch-payment-session-timeout.d.cts.map +1 -0
- package/dist/actions/fetch-payment-session-timeout.d.mts +9 -0
- package/dist/actions/fetch-payment-session-timeout.d.mts.map +1 -0
- package/dist/actions/fetch-payment-session-timeout.mjs +20 -0
- package/dist/actions/fetch-payment-session-timeout.mjs.map +1 -0
- package/dist/actions/fetch-plan.cjs +65 -0
- package/dist/actions/fetch-plan.cjs.map +1 -0
- package/dist/actions/fetch-plan.d.cts +9 -0
- package/dist/actions/fetch-plan.d.cts.map +1 -0
- package/dist/actions/fetch-plan.d.mts +9 -0
- package/dist/actions/fetch-plan.d.mts.map +1 -0
- package/dist/actions/fetch-plan.mjs +64 -0
- package/dist/actions/fetch-plan.mjs.map +1 -0
- package/dist/actions/fetch-product-orders.cjs +64 -0
- package/dist/actions/fetch-product-orders.cjs.map +1 -0
- package/dist/actions/fetch-product-orders.d.cts +9 -0
- package/dist/actions/fetch-product-orders.d.cts.map +1 -0
- package/dist/actions/fetch-product-orders.d.mts +9 -0
- package/dist/actions/fetch-product-orders.d.mts.map +1 -0
- package/dist/actions/fetch-product-orders.mjs +63 -0
- package/dist/actions/fetch-product-orders.mjs.map +1 -0
- package/dist/actions/fetch-product.cjs +64 -0
- package/dist/actions/fetch-product.cjs.map +1 -0
- package/dist/actions/fetch-product.d.cts +9 -0
- package/dist/actions/fetch-product.d.cts.map +1 -0
- package/dist/actions/fetch-product.d.mts +9 -0
- package/dist/actions/fetch-product.d.mts.map +1 -0
- package/dist/actions/fetch-product.mjs +63 -0
- package/dist/actions/fetch-product.mjs.map +1 -0
- package/dist/actions/fetch-refund.cjs +59 -0
- package/dist/actions/fetch-refund.cjs.map +1 -0
- package/dist/actions/fetch-refund.d.cts +9 -0
- package/dist/actions/fetch-refund.d.cts.map +1 -0
- package/dist/actions/fetch-refund.d.mts +9 -0
- package/dist/actions/fetch-refund.d.mts.map +1 -0
- package/dist/actions/fetch-refund.mjs +58 -0
- package/dist/actions/fetch-refund.mjs.map +1 -0
- package/dist/actions/fetch-split.cjs +41 -0
- package/dist/actions/fetch-split.cjs.map +1 -0
- package/dist/actions/fetch-split.d.cts +9 -0
- package/dist/actions/fetch-split.d.cts.map +1 -0
- package/dist/actions/fetch-split.d.mts +9 -0
- package/dist/actions/fetch-split.d.mts.map +1 -0
- package/dist/actions/fetch-split.mjs +40 -0
- package/dist/actions/fetch-split.mjs.map +1 -0
- package/dist/actions/fetch-storefront-orders.cjs +69 -0
- package/dist/actions/fetch-storefront-orders.cjs.map +1 -0
- package/dist/actions/fetch-storefront-orders.d.cts +9 -0
- package/dist/actions/fetch-storefront-orders.d.cts.map +1 -0
- package/dist/actions/fetch-storefront-orders.d.mts +9 -0
- package/dist/actions/fetch-storefront-orders.d.mts.map +1 -0
- package/dist/actions/fetch-storefront-orders.mjs +68 -0
- package/dist/actions/fetch-storefront-orders.mjs.map +1 -0
- package/dist/actions/fetch-storefront.cjs +53 -0
- package/dist/actions/fetch-storefront.cjs.map +1 -0
- package/dist/actions/fetch-storefront.d.cts +9 -0
- package/dist/actions/fetch-storefront.d.cts.map +1 -0
- package/dist/actions/fetch-storefront.d.mts +9 -0
- package/dist/actions/fetch-storefront.d.mts.map +1 -0
- package/dist/actions/fetch-storefront.mjs +52 -0
- package/dist/actions/fetch-storefront.mjs.map +1 -0
- package/dist/actions/fetch-subaccount.cjs +46 -0
- package/dist/actions/fetch-subaccount.cjs.map +1 -0
- package/dist/actions/fetch-subaccount.d.cts +9 -0
- package/dist/actions/fetch-subaccount.d.cts.map +1 -0
- package/dist/actions/fetch-subaccount.d.mts +9 -0
- package/dist/actions/fetch-subaccount.d.mts.map +1 -0
- package/dist/actions/fetch-subaccount.mjs +45 -0
- package/dist/actions/fetch-subaccount.mjs.map +1 -0
- package/dist/actions/fetch-subscription.cjs +81 -0
- package/dist/actions/fetch-subscription.cjs.map +1 -0
- package/dist/actions/fetch-subscription.d.cts +9 -0
- package/dist/actions/fetch-subscription.d.cts.map +1 -0
- package/dist/actions/fetch-subscription.d.mts +9 -0
- package/dist/actions/fetch-subscription.d.mts.map +1 -0
- package/dist/actions/fetch-subscription.mjs +80 -0
- package/dist/actions/fetch-subscription.mjs.map +1 -0
- package/dist/actions/fetch-transaction-timeline.cjs +35 -0
- package/dist/actions/fetch-transaction-timeline.cjs.map +1 -0
- package/dist/actions/fetch-transaction-timeline.d.cts +9 -0
- package/dist/actions/fetch-transaction-timeline.d.cts.map +1 -0
- package/dist/actions/fetch-transaction-timeline.d.mts +9 -0
- package/dist/actions/fetch-transaction-timeline.d.mts.map +1 -0
- package/dist/actions/fetch-transaction-timeline.mjs +34 -0
- package/dist/actions/fetch-transaction-timeline.mjs.map +1 -0
- package/dist/actions/fetch-transaction.cjs +95 -0
- package/dist/actions/fetch-transaction.cjs.map +1 -0
- package/dist/actions/fetch-transaction.d.cts +9 -0
- package/dist/actions/fetch-transaction.d.cts.map +1 -0
- package/dist/actions/fetch-transaction.d.mts +9 -0
- package/dist/actions/fetch-transaction.d.mts.map +1 -0
- package/dist/actions/fetch-transaction.mjs +94 -0
- package/dist/actions/fetch-transaction.mjs.map +1 -0
- package/dist/actions/fetch-transfer-recipient.cjs +45 -0
- package/dist/actions/fetch-transfer-recipient.cjs.map +1 -0
- package/dist/actions/fetch-transfer-recipient.d.cts +9 -0
- package/dist/actions/fetch-transfer-recipient.d.cts.map +1 -0
- package/dist/actions/fetch-transfer-recipient.d.mts +9 -0
- package/dist/actions/fetch-transfer-recipient.d.mts.map +1 -0
- package/dist/actions/fetch-transfer-recipient.mjs +44 -0
- package/dist/actions/fetch-transfer-recipient.mjs.map +1 -0
- package/dist/actions/fetch-virtual-terminal.cjs +37 -0
- package/dist/actions/fetch-virtual-terminal.cjs.map +1 -0
- package/dist/actions/fetch-virtual-terminal.d.cts +9 -0
- package/dist/actions/fetch-virtual-terminal.d.cts.map +1 -0
- package/dist/actions/fetch-virtual-terminal.d.mts +9 -0
- package/dist/actions/fetch-virtual-terminal.d.mts.map +1 -0
- package/dist/actions/fetch-virtual-terminal.mjs +36 -0
- package/dist/actions/fetch-virtual-terminal.mjs.map +1 -0
- package/dist/actions/finalize-payment-request.cjs +74 -0
- package/dist/actions/finalize-payment-request.cjs.map +1 -0
- package/dist/actions/finalize-payment-request.d.cts +9 -0
- package/dist/actions/finalize-payment-request.d.cts.map +1 -0
- package/dist/actions/finalize-payment-request.d.mts +9 -0
- package/dist/actions/finalize-payment-request.d.mts.map +1 -0
- package/dist/actions/finalize-payment-request.mjs +73 -0
- package/dist/actions/finalize-payment-request.mjs.map +1 -0
- package/dist/actions/generate-update-subscription-link.cjs +21 -0
- package/dist/actions/generate-update-subscription-link.cjs.map +1 -0
- package/dist/actions/generate-update-subscription-link.d.cts +9 -0
- package/dist/actions/generate-update-subscription-link.d.cts.map +1 -0
- package/dist/actions/generate-update-subscription-link.d.mts +9 -0
- package/dist/actions/generate-update-subscription-link.d.mts.map +1 -0
- package/dist/actions/generate-update-subscription-link.mjs +20 -0
- package/dist/actions/generate-update-subscription-link.mjs.map +1 -0
- package/dist/actions/get-payment-request-totals.cjs +29 -0
- package/dist/actions/get-payment-request-totals.cjs.map +1 -0
- package/dist/actions/get-payment-request-totals.d.cts +9 -0
- package/dist/actions/get-payment-request-totals.d.cts.map +1 -0
- package/dist/actions/get-payment-request-totals.d.mts +9 -0
- package/dist/actions/get-payment-request-totals.d.mts.map +1 -0
- package/dist/actions/get-payment-request-totals.mjs +28 -0
- package/dist/actions/get-payment-request-totals.mjs.map +1 -0
- package/dist/actions/get-transaction-totals.cjs +34 -0
- package/dist/actions/get-transaction-totals.cjs.map +1 -0
- package/dist/actions/get-transaction-totals.d.cts +9 -0
- package/dist/actions/get-transaction-totals.d.cts.map +1 -0
- package/dist/actions/get-transaction-totals.d.mts +9 -0
- package/dist/actions/get-transaction-totals.d.mts.map +1 -0
- package/dist/actions/get-transaction-totals.mjs +33 -0
- package/dist/actions/get-transaction-totals.mjs.map +1 -0
- package/dist/actions/index.cjs +225 -0
- package/dist/actions/index.d.cts +113 -0
- package/dist/actions/index.d.mts +113 -0
- package/dist/actions/index.mjs +113 -0
- package/dist/actions/initialize-authorization.cjs +38 -0
- package/dist/actions/initialize-authorization.cjs.map +1 -0
- package/dist/actions/initialize-authorization.d.cts +9 -0
- package/dist/actions/initialize-authorization.d.cts.map +1 -0
- package/dist/actions/initialize-authorization.d.mts +9 -0
- package/dist/actions/initialize-authorization.d.mts.map +1 -0
- package/dist/actions/initialize-authorization.mjs +37 -0
- package/dist/actions/initialize-authorization.mjs.map +1 -0
- package/dist/actions/initialize-transaction.cjs +76 -0
- package/dist/actions/initialize-transaction.cjs.map +1 -0
- package/dist/actions/initialize-transaction.d.cts +9 -0
- package/dist/actions/initialize-transaction.d.cts.map +1 -0
- package/dist/actions/initialize-transaction.d.mts +9 -0
- package/dist/actions/initialize-transaction.d.mts.map +1 -0
- package/dist/actions/initialize-transaction.mjs +75 -0
- package/dist/actions/initialize-transaction.mjs.map +1 -0
- package/dist/actions/initiate-bulk-charge.cjs +39 -0
- package/dist/actions/initiate-bulk-charge.cjs.map +1 -0
- package/dist/actions/initiate-bulk-charge.d.cts +9 -0
- package/dist/actions/initiate-bulk-charge.d.cts.map +1 -0
- package/dist/actions/initiate-bulk-charge.d.mts +9 -0
- package/dist/actions/initiate-bulk-charge.d.mts.map +1 -0
- package/dist/actions/initiate-bulk-charge.mjs +38 -0
- package/dist/actions/initiate-bulk-charge.mjs.map +1 -0
- package/dist/actions/list-banks.cjs +74 -0
- package/dist/actions/list-banks.cjs.map +1 -0
- package/dist/actions/list-banks.d.cts +9 -0
- package/dist/actions/list-banks.d.cts.map +1 -0
- package/dist/actions/list-banks.d.mts +9 -0
- package/dist/actions/list-banks.d.mts.map +1 -0
- package/dist/actions/list-banks.mjs +73 -0
- package/dist/actions/list-banks.mjs.map +1 -0
- package/dist/actions/list-bulk-charge-batches.cjs +51 -0
- package/dist/actions/list-bulk-charge-batches.cjs.map +1 -0
- package/dist/actions/list-bulk-charge-batches.d.cts +9 -0
- package/dist/actions/list-bulk-charge-batches.d.cts.map +1 -0
- package/dist/actions/list-bulk-charge-batches.d.mts +9 -0
- package/dist/actions/list-bulk-charge-batches.d.mts.map +1 -0
- package/dist/actions/list-bulk-charge-batches.mjs +50 -0
- package/dist/actions/list-bulk-charge-batches.mjs.map +1 -0
- package/dist/actions/list-charges-in-batch.cjs +93 -0
- package/dist/actions/list-charges-in-batch.cjs.map +1 -0
- package/dist/actions/list-charges-in-batch.d.cts +9 -0
- package/dist/actions/list-charges-in-batch.d.cts.map +1 -0
- package/dist/actions/list-charges-in-batch.d.mts +9 -0
- package/dist/actions/list-charges-in-batch.d.mts.map +1 -0
- package/dist/actions/list-charges-in-batch.mjs +92 -0
- package/dist/actions/list-charges-in-batch.mjs.map +1 -0
- package/dist/actions/list-countries.cjs +31 -0
- package/dist/actions/list-countries.cjs.map +1 -0
- package/dist/actions/list-countries.d.cts +9 -0
- package/dist/actions/list-countries.d.cts.map +1 -0
- package/dist/actions/list-countries.d.mts +9 -0
- package/dist/actions/list-countries.d.mts.map +1 -0
- package/dist/actions/list-countries.mjs +30 -0
- package/dist/actions/list-countries.mjs.map +1 -0
- package/dist/actions/list-customers.cjs +50 -0
- package/dist/actions/list-customers.cjs.map +1 -0
- package/dist/actions/list-customers.d.cts +9 -0
- package/dist/actions/list-customers.d.cts.map +1 -0
- package/dist/actions/list-customers.d.mts +9 -0
- package/dist/actions/list-customers.d.mts.map +1 -0
- package/dist/actions/list-customers.mjs +49 -0
- package/dist/actions/list-customers.mjs.map +1 -0
- package/dist/actions/list-disputes.cjs +99 -0
- package/dist/actions/list-disputes.cjs.map +1 -0
- package/dist/actions/list-disputes.d.cts +9 -0
- package/dist/actions/list-disputes.d.cts.map +1 -0
- package/dist/actions/list-disputes.d.mts +9 -0
- package/dist/actions/list-disputes.d.mts.map +1 -0
- package/dist/actions/list-disputes.mjs +98 -0
- package/dist/actions/list-disputes.mjs.map +1 -0
- package/dist/actions/list-domains.cjs +25 -0
- package/dist/actions/list-domains.cjs.map +1 -0
- package/dist/actions/list-domains.d.cts +9 -0
- package/dist/actions/list-domains.d.cts.map +1 -0
- package/dist/actions/list-domains.d.mts +9 -0
- package/dist/actions/list-domains.d.mts.map +1 -0
- package/dist/actions/list-domains.mjs +24 -0
- package/dist/actions/list-domains.mjs.map +1 -0
- package/dist/actions/list-mandate-authorizations.cjs +58 -0
- package/dist/actions/list-mandate-authorizations.cjs.map +1 -0
- package/dist/actions/list-mandate-authorizations.d.cts +9 -0
- package/dist/actions/list-mandate-authorizations.d.cts.map +1 -0
- package/dist/actions/list-mandate-authorizations.d.mts +9 -0
- package/dist/actions/list-mandate-authorizations.d.mts.map +1 -0
- package/dist/actions/list-mandate-authorizations.mjs +57 -0
- package/dist/actions/list-mandate-authorizations.mjs.map +1 -0
- package/dist/actions/list-orders.cjs +62 -0
- package/dist/actions/list-orders.cjs.map +1 -0
- package/dist/actions/list-orders.d.cts +9 -0
- package/dist/actions/list-orders.d.cts.map +1 -0
- package/dist/actions/list-orders.d.mts +9 -0
- package/dist/actions/list-orders.d.mts.map +1 -0
- package/dist/actions/list-orders.mjs +61 -0
- package/dist/actions/list-orders.mjs.map +1 -0
- package/dist/actions/list-payment-pages.cjs +57 -0
- package/dist/actions/list-payment-pages.cjs.map +1 -0
- package/dist/actions/list-payment-pages.d.cts +9 -0
- package/dist/actions/list-payment-pages.d.cts.map +1 -0
- package/dist/actions/list-payment-pages.d.mts +9 -0
- package/dist/actions/list-payment-pages.d.mts.map +1 -0
- package/dist/actions/list-payment-pages.mjs +56 -0
- package/dist/actions/list-payment-pages.mjs.map +1 -0
- package/dist/actions/list-payment-requests.cjs +94 -0
- package/dist/actions/list-payment-requests.cjs.map +1 -0
- package/dist/actions/list-payment-requests.d.cts +9 -0
- package/dist/actions/list-payment-requests.d.cts.map +1 -0
- package/dist/actions/list-payment-requests.d.mts +9 -0
- package/dist/actions/list-payment-requests.d.mts.map +1 -0
- package/dist/actions/list-payment-requests.mjs +93 -0
- package/dist/actions/list-payment-requests.mjs.map +1 -0
- package/dist/actions/list-plans.cjs +68 -0
- package/dist/actions/list-plans.cjs.map +1 -0
- package/dist/actions/list-plans.d.cts +9 -0
- package/dist/actions/list-plans.d.cts.map +1 -0
- package/dist/actions/list-plans.d.mts +9 -0
- package/dist/actions/list-plans.d.mts.map +1 -0
- package/dist/actions/list-plans.mjs +67 -0
- package/dist/actions/list-plans.mjs.map +1 -0
- package/dist/actions/list-products.cjs +66 -0
- package/dist/actions/list-products.cjs.map +1 -0
- package/dist/actions/list-products.d.cts +9 -0
- package/dist/actions/list-products.d.cts.map +1 -0
- package/dist/actions/list-products.d.mts +9 -0
- package/dist/actions/list-products.d.mts.map +1 -0
- package/dist/actions/list-products.mjs +65 -0
- package/dist/actions/list-products.mjs.map +1 -0
- package/dist/actions/list-refunds.cjs +74 -0
- package/dist/actions/list-refunds.cjs.map +1 -0
- package/dist/actions/list-refunds.d.cts +9 -0
- package/dist/actions/list-refunds.d.cts.map +1 -0
- package/dist/actions/list-refunds.d.mts +9 -0
- package/dist/actions/list-refunds.d.mts.map +1 -0
- package/dist/actions/list-refunds.mjs +73 -0
- package/dist/actions/list-refunds.mjs.map +1 -0
- package/dist/actions/list-settlements.cjs +47 -0
- package/dist/actions/list-settlements.cjs.map +1 -0
- package/dist/actions/list-settlements.d.cts +9 -0
- package/dist/actions/list-settlements.d.cts.map +1 -0
- package/dist/actions/list-settlements.d.mts +9 -0
- package/dist/actions/list-settlements.d.mts.map +1 -0
- package/dist/actions/list-settlements.mjs +46 -0
- package/dist/actions/list-settlements.mjs.map +1 -0
- package/dist/actions/list-splits.cjs +57 -0
- package/dist/actions/list-splits.cjs.map +1 -0
- package/dist/actions/list-splits.d.cts +9 -0
- package/dist/actions/list-splits.d.cts.map +1 -0
- package/dist/actions/list-splits.d.mts +9 -0
- package/dist/actions/list-splits.d.mts.map +1 -0
- package/dist/actions/list-splits.mjs +56 -0
- package/dist/actions/list-splits.mjs.map +1 -0
- package/dist/actions/list-states-avs.cjs +25 -0
- package/dist/actions/list-states-avs.cjs.map +1 -0
- package/dist/actions/list-states-avs.d.cts +9 -0
- package/dist/actions/list-states-avs.d.cts.map +1 -0
- package/dist/actions/list-states-avs.d.mts +9 -0
- package/dist/actions/list-states-avs.d.mts.map +1 -0
- package/dist/actions/list-states-avs.mjs +24 -0
- package/dist/actions/list-states-avs.mjs.map +1 -0
- package/dist/actions/list-storefront-products.cjs +65 -0
- package/dist/actions/list-storefront-products.cjs.map +1 -0
- package/dist/actions/list-storefront-products.d.cts +9 -0
- package/dist/actions/list-storefront-products.d.cts.map +1 -0
- package/dist/actions/list-storefront-products.d.mts +9 -0
- package/dist/actions/list-storefront-products.d.mts.map +1 -0
- package/dist/actions/list-storefront-products.mjs +64 -0
- package/dist/actions/list-storefront-products.mjs.map +1 -0
- package/dist/actions/list-storefronts.cjs +45 -0
- package/dist/actions/list-storefronts.cjs.map +1 -0
- package/dist/actions/list-storefronts.d.cts +9 -0
- package/dist/actions/list-storefronts.d.cts.map +1 -0
- package/dist/actions/list-storefronts.d.mts +9 -0
- package/dist/actions/list-storefronts.d.mts.map +1 -0
- package/dist/actions/list-storefronts.mjs +44 -0
- package/dist/actions/list-storefronts.mjs.map +1 -0
- package/dist/actions/list-subaccounts.cjs +49 -0
- package/dist/actions/list-subaccounts.cjs.map +1 -0
- package/dist/actions/list-subaccounts.d.cts +9 -0
- package/dist/actions/list-subaccounts.d.cts.map +1 -0
- package/dist/actions/list-subaccounts.d.mts +9 -0
- package/dist/actions/list-subaccounts.d.mts.map +1 -0
- package/dist/actions/list-subaccounts.mjs +48 -0
- package/dist/actions/list-subaccounts.mjs.map +1 -0
- package/dist/actions/list-subscriptions.cjs +99 -0
- package/dist/actions/list-subscriptions.cjs.map +1 -0
- package/dist/actions/list-subscriptions.d.cts +9 -0
- package/dist/actions/list-subscriptions.d.cts.map +1 -0
- package/dist/actions/list-subscriptions.d.mts +9 -0
- package/dist/actions/list-subscriptions.d.mts.map +1 -0
- package/dist/actions/list-subscriptions.mjs +98 -0
- package/dist/actions/list-subscriptions.mjs.map +1 -0
- package/dist/actions/list-transactions.cjs +127 -0
- package/dist/actions/list-transactions.cjs.map +1 -0
- package/dist/actions/list-transactions.d.cts +9 -0
- package/dist/actions/list-transactions.d.cts.map +1 -0
- package/dist/actions/list-transactions.d.mts +9 -0
- package/dist/actions/list-transactions.d.mts.map +1 -0
- package/dist/actions/list-transactions.mjs +126 -0
- package/dist/actions/list-transactions.mjs.map +1 -0
- package/dist/actions/list-transfer-recipients.cjs +51 -0
- package/dist/actions/list-transfer-recipients.cjs.map +1 -0
- package/dist/actions/list-transfer-recipients.d.cts +9 -0
- package/dist/actions/list-transfer-recipients.d.cts.map +1 -0
- package/dist/actions/list-transfer-recipients.d.mts +9 -0
- package/dist/actions/list-transfer-recipients.d.mts.map +1 -0
- package/dist/actions/list-transfer-recipients.mjs +50 -0
- package/dist/actions/list-transfer-recipients.mjs.map +1 -0
- package/dist/actions/list-transfers.cjs +87 -0
- package/dist/actions/list-transfers.cjs.map +1 -0
- package/dist/actions/list-transfers.d.cts +9 -0
- package/dist/actions/list-transfers.d.cts.map +1 -0
- package/dist/actions/list-transfers.d.mts +9 -0
- package/dist/actions/list-transfers.d.mts.map +1 -0
- package/dist/actions/list-transfers.mjs +86 -0
- package/dist/actions/list-transfers.mjs.map +1 -0
- package/dist/actions/list-virtual-terminals.cjs +44 -0
- package/dist/actions/list-virtual-terminals.cjs.map +1 -0
- package/dist/actions/list-virtual-terminals.d.cts +9 -0
- package/dist/actions/list-virtual-terminals.d.cts.map +1 -0
- package/dist/actions/list-virtual-terminals.d.mts +9 -0
- package/dist/actions/list-virtual-terminals.d.mts.map +1 -0
- package/dist/actions/list-virtual-terminals.mjs +43 -0
- package/dist/actions/list-virtual-terminals.mjs.map +1 -0
- package/dist/actions/pause-bulk-charge.cjs +19 -0
- package/dist/actions/pause-bulk-charge.cjs.map +1 -0
- package/dist/actions/pause-bulk-charge.d.cts +9 -0
- package/dist/actions/pause-bulk-charge.d.cts.map +1 -0
- package/dist/actions/pause-bulk-charge.d.mts +9 -0
- package/dist/actions/pause-bulk-charge.d.mts.map +1 -0
- package/dist/actions/pause-bulk-charge.mjs +16 -0
- package/dist/actions/pause-bulk-charge.mjs.map +1 -0
- package/dist/actions/publish-storefront.cjs +26 -0
- package/dist/actions/publish-storefront.cjs.map +1 -0
- package/dist/actions/publish-storefront.d.cts +9 -0
- package/dist/actions/publish-storefront.d.cts.map +1 -0
- package/dist/actions/publish-storefront.d.mts +9 -0
- package/dist/actions/publish-storefront.d.mts.map +1 -0
- package/dist/actions/publish-storefront.mjs +25 -0
- package/dist/actions/publish-storefront.mjs.map +1 -0
- package/dist/actions/remove-subaccount-from-split.cjs +23 -0
- package/dist/actions/remove-subaccount-from-split.cjs.map +1 -0
- package/dist/actions/remove-subaccount-from-split.d.cts +9 -0
- package/dist/actions/remove-subaccount-from-split.d.cts.map +1 -0
- package/dist/actions/remove-subaccount-from-split.d.mts +9 -0
- package/dist/actions/remove-subaccount-from-split.d.mts.map +1 -0
- package/dist/actions/remove-subaccount-from-split.mjs +20 -0
- package/dist/actions/remove-subaccount-from-split.mjs.map +1 -0
- package/dist/actions/resend-otp-for-transfer.cjs +22 -0
- package/dist/actions/resend-otp-for-transfer.cjs.map +1 -0
- package/dist/actions/resend-otp-for-transfer.d.cts +9 -0
- package/dist/actions/resend-otp-for-transfer.d.cts.map +1 -0
- package/dist/actions/resend-otp-for-transfer.d.mts +9 -0
- package/dist/actions/resend-otp-for-transfer.d.mts.map +1 -0
- package/dist/actions/resend-otp-for-transfer.mjs +19 -0
- package/dist/actions/resend-otp-for-transfer.mjs.map +1 -0
- package/dist/actions/resolve-card-bin.cjs +31 -0
- package/dist/actions/resolve-card-bin.cjs.map +1 -0
- package/dist/actions/resolve-card-bin.d.cts +9 -0
- package/dist/actions/resolve-card-bin.d.cts.map +1 -0
- package/dist/actions/resolve-card-bin.d.mts +9 -0
- package/dist/actions/resolve-card-bin.d.mts.map +1 -0
- package/dist/actions/resolve-card-bin.mjs +30 -0
- package/dist/actions/resolve-card-bin.mjs.map +1 -0
- package/dist/actions/resume-bulk-charge-batch.cjs +19 -0
- package/dist/actions/resume-bulk-charge-batch.cjs.map +1 -0
- package/dist/actions/resume-bulk-charge-batch.d.cts +9 -0
- package/dist/actions/resume-bulk-charge-batch.d.cts.map +1 -0
- package/dist/actions/resume-bulk-charge-batch.d.mts +9 -0
- package/dist/actions/resume-bulk-charge-batch.d.mts.map +1 -0
- package/dist/actions/resume-bulk-charge-batch.mjs +16 -0
- package/dist/actions/resume-bulk-charge-batch.mjs.map +1 -0
- package/dist/actions/send-payment-request-notification.cjs +19 -0
- package/dist/actions/send-payment-request-notification.cjs.map +1 -0
- package/dist/actions/send-payment-request-notification.d.cts +9 -0
- package/dist/actions/send-payment-request-notification.d.cts.map +1 -0
- package/dist/actions/send-payment-request-notification.d.mts +9 -0
- package/dist/actions/send-payment-request-notification.d.mts.map +1 -0
- package/dist/actions/send-payment-request-notification.mjs +16 -0
- package/dist/actions/send-payment-request-notification.mjs.map +1 -0
- package/dist/actions/send-subscription-update-link.cjs +21 -0
- package/dist/actions/send-subscription-update-link.cjs.map +1 -0
- package/dist/actions/send-subscription-update-link.d.cts +9 -0
- package/dist/actions/send-subscription-update-link.d.cts.map +1 -0
- package/dist/actions/send-subscription-update-link.d.mts +9 -0
- package/dist/actions/send-subscription-update-link.d.mts.map +1 -0
- package/dist/actions/send-subscription-update-link.mjs +20 -0
- package/dist/actions/send-subscription-update-link.mjs.map +1 -0
- package/dist/actions/set-risk-action.cjs +84 -0
- package/dist/actions/set-risk-action.cjs.map +1 -0
- package/dist/actions/set-risk-action.d.cts +9 -0
- package/dist/actions/set-risk-action.d.cts.map +1 -0
- package/dist/actions/set-risk-action.d.mts +9 -0
- package/dist/actions/set-risk-action.d.mts.map +1 -0
- package/dist/actions/set-risk-action.mjs +83 -0
- package/dist/actions/set-risk-action.mjs.map +1 -0
- package/dist/actions/submit-phone.cjs +62 -0
- package/dist/actions/submit-phone.cjs.map +1 -0
- package/dist/actions/submit-phone.d.cts +9 -0
- package/dist/actions/submit-phone.d.cts.map +1 -0
- package/dist/actions/submit-phone.d.mts +9 -0
- package/dist/actions/submit-phone.d.mts.map +1 -0
- package/dist/actions/submit-phone.mjs +61 -0
- package/dist/actions/submit-phone.mjs.map +1 -0
- package/dist/actions/trigger-direct-debit-activation-charge.cjs +22 -0
- package/dist/actions/trigger-direct-debit-activation-charge.cjs.map +1 -0
- package/dist/actions/trigger-direct-debit-activation-charge.d.cts +9 -0
- package/dist/actions/trigger-direct-debit-activation-charge.d.cts.map +1 -0
- package/dist/actions/trigger-direct-debit-activation-charge.d.mts +9 -0
- package/dist/actions/trigger-direct-debit-activation-charge.d.mts.map +1 -0
- package/dist/actions/trigger-direct-debit-activation-charge.mjs +19 -0
- package/dist/actions/trigger-direct-debit-activation-charge.mjs.map +1 -0
- package/dist/actions/unassign-destination-from-virtual-terminal.cjs +22 -0
- package/dist/actions/unassign-destination-from-virtual-terminal.cjs.map +1 -0
- package/dist/actions/unassign-destination-from-virtual-terminal.d.cts +9 -0
- package/dist/actions/unassign-destination-from-virtual-terminal.d.cts.map +1 -0
- package/dist/actions/unassign-destination-from-virtual-terminal.d.mts +9 -0
- package/dist/actions/unassign-destination-from-virtual-terminal.d.mts.map +1 -0
- package/dist/actions/unassign-destination-from-virtual-terminal.mjs +19 -0
- package/dist/actions/unassign-destination-from-virtual-terminal.mjs.map +1 -0
- package/dist/actions/unregister-apple-pay-domain.cjs +20 -0
- package/dist/actions/unregister-apple-pay-domain.cjs.map +1 -0
- package/dist/actions/unregister-apple-pay-domain.d.cts +9 -0
- package/dist/actions/unregister-apple-pay-domain.d.cts.map +1 -0
- package/dist/actions/unregister-apple-pay-domain.d.mts +9 -0
- package/dist/actions/unregister-apple-pay-domain.d.mts.map +1 -0
- package/dist/actions/unregister-apple-pay-domain.mjs +17 -0
- package/dist/actions/unregister-apple-pay-domain.mjs.map +1 -0
- package/dist/actions/update-customer.cjs +42 -0
- package/dist/actions/update-customer.cjs.map +1 -0
- package/dist/actions/update-customer.d.cts +9 -0
- package/dist/actions/update-customer.d.cts.map +1 -0
- package/dist/actions/update-customer.d.mts +9 -0
- package/dist/actions/update-customer.d.mts.map +1 -0
- package/dist/actions/update-customer.mjs +41 -0
- package/dist/actions/update-customer.mjs.map +1 -0
- package/dist/actions/update-payment-page.cjs +50 -0
- package/dist/actions/update-payment-page.cjs.map +1 -0
- package/dist/actions/update-payment-page.d.cts +9 -0
- package/dist/actions/update-payment-page.d.cts.map +1 -0
- package/dist/actions/update-payment-page.d.mts +9 -0
- package/dist/actions/update-payment-page.d.mts.map +1 -0
- package/dist/actions/update-payment-page.mjs +49 -0
- package/dist/actions/update-payment-page.mjs.map +1 -0
- package/dist/actions/update-payment-request.cjs +82 -0
- package/dist/actions/update-payment-request.cjs.map +1 -0
- package/dist/actions/update-payment-request.d.cts +9 -0
- package/dist/actions/update-payment-request.d.cts.map +1 -0
- package/dist/actions/update-payment-request.d.mts +9 -0
- package/dist/actions/update-payment-request.d.mts.map +1 -0
- package/dist/actions/update-payment-request.mjs +81 -0
- package/dist/actions/update-payment-request.mjs.map +1 -0
- package/dist/actions/update-payment-session-timeout.cjs +21 -0
- package/dist/actions/update-payment-session-timeout.cjs.map +1 -0
- package/dist/actions/update-payment-session-timeout.d.cts +9 -0
- package/dist/actions/update-payment-session-timeout.d.cts.map +1 -0
- package/dist/actions/update-payment-session-timeout.d.mts +9 -0
- package/dist/actions/update-payment-session-timeout.d.mts.map +1 -0
- package/dist/actions/update-payment-session-timeout.mjs +20 -0
- package/dist/actions/update-payment-session-timeout.mjs.map +1 -0
- package/dist/actions/update-plan.cjs +40 -0
- package/dist/actions/update-plan.cjs.map +1 -0
- package/dist/actions/update-plan.d.cts +9 -0
- package/dist/actions/update-plan.d.cts.map +1 -0
- package/dist/actions/update-plan.d.mts +9 -0
- package/dist/actions/update-plan.d.mts.map +1 -0
- package/dist/actions/update-plan.mjs +37 -0
- package/dist/actions/update-plan.mjs.map +1 -0
- package/dist/actions/update-product.cjs +78 -0
- package/dist/actions/update-product.cjs.map +1 -0
- package/dist/actions/update-product.d.cts +9 -0
- package/dist/actions/update-product.d.cts.map +1 -0
- package/dist/actions/update-product.d.mts +9 -0
- package/dist/actions/update-product.d.mts.map +1 -0
- package/dist/actions/update-product.mjs +77 -0
- package/dist/actions/update-product.mjs.map +1 -0
- package/dist/actions/update-split.cjs +52 -0
- package/dist/actions/update-split.cjs.map +1 -0
- package/dist/actions/update-split.d.cts +9 -0
- package/dist/actions/update-split.d.cts.map +1 -0
- package/dist/actions/update-split.d.mts +9 -0
- package/dist/actions/update-split.d.mts.map +1 -0
- package/dist/actions/update-split.mjs +51 -0
- package/dist/actions/update-split.mjs.map +1 -0
- package/dist/actions/update-storefront.cjs +24 -0
- package/dist/actions/update-storefront.cjs.map +1 -0
- package/dist/actions/update-storefront.d.cts +9 -0
- package/dist/actions/update-storefront.d.cts.map +1 -0
- package/dist/actions/update-storefront.d.mts +9 -0
- package/dist/actions/update-storefront.d.mts.map +1 -0
- package/dist/actions/update-storefront.mjs +21 -0
- package/dist/actions/update-storefront.mjs.map +1 -0
- package/dist/actions/update-subaccount.cjs +58 -0
- package/dist/actions/update-subaccount.cjs.map +1 -0
- package/dist/actions/update-subaccount.d.cts +9 -0
- package/dist/actions/update-subaccount.d.cts.map +1 -0
- package/dist/actions/update-subaccount.d.mts +9 -0
- package/dist/actions/update-subaccount.d.mts.map +1 -0
- package/dist/actions/update-subaccount.mjs +57 -0
- package/dist/actions/update-subaccount.mjs.map +1 -0
- package/dist/actions/update-transfer-recipient.cjs +47 -0
- package/dist/actions/update-transfer-recipient.cjs.map +1 -0
- package/dist/actions/update-transfer-recipient.d.cts +9 -0
- package/dist/actions/update-transfer-recipient.d.cts.map +1 -0
- package/dist/actions/update-transfer-recipient.d.mts +9 -0
- package/dist/actions/update-transfer-recipient.d.mts.map +1 -0
- package/dist/actions/update-transfer-recipient.mjs +46 -0
- package/dist/actions/update-transfer-recipient.mjs.map +1 -0
- package/dist/actions/validate-bank-account.cjs +41 -0
- package/dist/actions/validate-bank-account.cjs.map +1 -0
- package/dist/actions/validate-bank-account.d.cts +9 -0
- package/dist/actions/validate-bank-account.d.cts.map +1 -0
- package/dist/actions/validate-bank-account.d.mts +9 -0
- package/dist/actions/validate-bank-account.d.mts.map +1 -0
- package/dist/actions/validate-bank-account.mjs +40 -0
- package/dist/actions/validate-bank-account.mjs.map +1 -0
- package/dist/actions/validate-customer.cjs +30 -0
- package/dist/actions/validate-customer.cjs.map +1 -0
- package/dist/actions/validate-customer.d.cts +9 -0
- package/dist/actions/validate-customer.d.cts.map +1 -0
- package/dist/actions/validate-customer.d.mts +9 -0
- package/dist/actions/validate-customer.d.mts.map +1 -0
- package/dist/actions/validate-customer.mjs +27 -0
- package/dist/actions/validate-customer.mjs.map +1 -0
- package/dist/actions/validate-order.cjs +65 -0
- package/dist/actions/validate-order.cjs.map +1 -0
- package/dist/actions/validate-order.d.cts +9 -0
- package/dist/actions/validate-order.d.cts.map +1 -0
- package/dist/actions/validate-order.d.mts +9 -0
- package/dist/actions/validate-order.d.mts.map +1 -0
- package/dist/actions/validate-order.mjs +64 -0
- package/dist/actions/validate-order.mjs.map +1 -0
- package/dist/actions/verify-payment-request.cjs +63 -0
- package/dist/actions/verify-payment-request.cjs.map +1 -0
- package/dist/actions/verify-payment-request.d.cts +9 -0
- package/dist/actions/verify-payment-request.d.cts.map +1 -0
- package/dist/actions/verify-payment-request.d.mts +9 -0
- package/dist/actions/verify-payment-request.d.mts.map +1 -0
- package/dist/actions/verify-payment-request.mjs +62 -0
- package/dist/actions/verify-payment-request.mjs.map +1 -0
- package/dist/actions/verify-storefront-slug.cjs +20 -0
- package/dist/actions/verify-storefront-slug.cjs.map +1 -0
- package/dist/actions/verify-storefront-slug.d.cts +9 -0
- package/dist/actions/verify-storefront-slug.d.cts.map +1 -0
- package/dist/actions/verify-storefront-slug.d.mts +9 -0
- package/dist/actions/verify-storefront-slug.d.mts.map +1 -0
- package/dist/actions/verify-storefront-slug.mjs +17 -0
- package/dist/actions/verify-storefront-slug.mjs.map +1 -0
- package/dist/actions/verify-transaction.cjs +105 -0
- package/dist/actions/verify-transaction.cjs.map +1 -0
- package/dist/actions/verify-transaction.d.cts +9 -0
- package/dist/actions/verify-transaction.d.cts.map +1 -0
- package/dist/actions/verify-transaction.d.mts +9 -0
- package/dist/actions/verify-transaction.d.mts.map +1 -0
- package/dist/actions/verify-transaction.mjs +104 -0
- package/dist/actions/verify-transaction.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +230 -0
- package/dist/index.d.cts +115 -0
- package/dist/index.d.mts +115 -0
- package/dist/index.mjs +116 -0
- package/package.json +49 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/fetch-refund.ts
|
|
4
|
+
const PaystackFetchRefundInput = z.object({ id: z.number().int().describe("The identifier of the refund to fetch.") }).describe("Request model for fetching details of a refund.");
|
|
5
|
+
const PaystackFetchRefund_RefundCustomerSchema = z.object({
|
|
6
|
+
id: z.number().int().describe("Customer ID").nullable().optional(),
|
|
7
|
+
email: z.string().describe("Customer's email address").nullable().optional(),
|
|
8
|
+
phone: z.string().describe("Customer's phone number").nullable().optional(),
|
|
9
|
+
metadata: z.string().describe("Customer metadata").nullable().optional(),
|
|
10
|
+
last_name: z.string().describe("Customer's last name").nullable().optional(),
|
|
11
|
+
first_name: z.string().describe("Customer's first name").nullable().optional(),
|
|
12
|
+
risk_action: z.string().describe("Risk action status for the customer").nullable().optional(),
|
|
13
|
+
customer_code: z.string().describe("Unique customer code").nullable().optional(),
|
|
14
|
+
international_format_phone: z.string().describe("Phone number in international format").nullable().optional()
|
|
15
|
+
}).describe("Customer details associated with the refund.");
|
|
16
|
+
const PaystackFetchRefund_FetchRefundDataSchema = z.object({
|
|
17
|
+
id: z.number().int().describe("Unique refund ID"),
|
|
18
|
+
amount: z.number().int().describe("Refund amount in subunit (kobo for NGN, cents for USD, etc.)"),
|
|
19
|
+
domain: z.string().describe("Domain (test or live)"),
|
|
20
|
+
reason: z.string().describe("Reason for the refund"),
|
|
21
|
+
status: z.string().describe("Refund status (e.g., 'pending', 'processed', 'failed')"),
|
|
22
|
+
dispute: z.union([z.string(), z.number().int()]).nullable().optional(),
|
|
23
|
+
currency: z.string().describe("Currency code (e.g., NGN, USD, GHS, ZAR, KES)"),
|
|
24
|
+
customer: PaystackFetchRefund_RefundCustomerSchema.nullable(),
|
|
25
|
+
createdAt: z.string().describe("ISO 8601 timestamp when the refund was created"),
|
|
26
|
+
session_id: z.string().describe("Session ID if applicable").nullable().optional(),
|
|
27
|
+
settlement: z.union([z.string(), z.number().int()]).nullable().optional(),
|
|
28
|
+
integration: z.number().int().describe("Integration ID"),
|
|
29
|
+
refund_type: z.string().describe("Type of refund"),
|
|
30
|
+
refunded_at: z.string().describe("Timestamp when refund was completed").nullable().optional(),
|
|
31
|
+
refunded_by: z.string().describe("Email of user who initiated the refund"),
|
|
32
|
+
transaction: z.number().int().describe("Transaction ID that was refunded"),
|
|
33
|
+
initiated_by: z.string().describe("Who initiated the refund"),
|
|
34
|
+
customer_note: z.string().describe("Note sent to the customer explaining the refund"),
|
|
35
|
+
merchant_note: z.string().describe("Internal merchant note about the refund"),
|
|
36
|
+
bank_reference: z.string().describe("Bank reference for the refund").nullable().optional(),
|
|
37
|
+
fully_deducted: z.number().int().describe("Whether the refund amount was fully deducted (1 for yes, 0 for no)"),
|
|
38
|
+
refund_channel: z.string().describe("Channel through which the refund was processed"),
|
|
39
|
+
deducted_amount: z.number().int().describe("Amount actually deducted from merchant balance in subunit"),
|
|
40
|
+
transaction_amount: z.number().int().describe("Original transaction amount in subunit"),
|
|
41
|
+
transaction_reference: z.string().describe("Reference of the original transaction"),
|
|
42
|
+
collect_account_number: z.boolean().describe("Whether account number collection is required").nullable().optional()
|
|
43
|
+
}).describe("Refund details returned by the API.");
|
|
44
|
+
const paystackFetchRefund = action("PAYSTACK_FETCH_REFUND", {
|
|
45
|
+
slug: "paystack-fetch-refund",
|
|
46
|
+
name: "Fetch Refund",
|
|
47
|
+
description: "Tool to get details of a refund on your integration. Use when you need to retrieve comprehensive information about a specific refund, including status, amount, customer details, and timestamps.",
|
|
48
|
+
input: PaystackFetchRefundInput,
|
|
49
|
+
output: z.object({
|
|
50
|
+
data: PaystackFetchRefund_FetchRefundDataSchema.nullable(),
|
|
51
|
+
status: z.boolean().describe("Whether the API request was successful"),
|
|
52
|
+
message: z.string().describe("Response message from the API")
|
|
53
|
+
}).describe("Response containing refund details.")
|
|
54
|
+
});
|
|
55
|
+
//#endregion
|
|
56
|
+
export { paystackFetchRefund };
|
|
57
|
+
|
|
58
|
+
//# sourceMappingURL=fetch-refund.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetch-refund.mjs","names":[],"sources":["../../src/actions/fetch-refund.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaystackFetchRefundInput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"The identifier of the refund to fetch.\"),\n}).describe(\"Request model for fetching details of a refund.\");\nconst PaystackFetchRefund_RefundCustomerSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Customer ID\").nullable().optional(),\n email: z.string().describe(\"Customer's email address\").nullable().optional(),\n phone: z.string().describe(\"Customer's phone number\").nullable().optional(),\n metadata: z.string().describe(\"Customer metadata\").nullable().optional(),\n last_name: z.string().describe(\"Customer's last name\").nullable().optional(),\n first_name: z.string().describe(\"Customer's first name\").nullable().optional(),\n risk_action: z.string().describe(\"Risk action status for the customer\").nullable().optional(),\n customer_code: z.string().describe(\"Unique customer code\").nullable().optional(),\n international_format_phone: z.string().describe(\"Phone number in international format\").nullable().optional(),\n}).describe(\"Customer details associated with the refund.\");\nconst PaystackFetchRefund_FetchRefundDataSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique refund ID\"),\n amount: z.number().int().describe(\"Refund amount in subunit (kobo for NGN, cents for USD, etc.)\"),\n domain: z.string().describe(\"Domain (test or live)\"),\n reason: z.string().describe(\"Reason for the refund\"),\n status: z.string().describe(\"Refund status (e.g., 'pending', 'processed', 'failed')\"),\n dispute: z.union([z.string(), z.number().int()]).nullable().optional(),\n currency: z.string().describe(\"Currency code (e.g., NGN, USD, GHS, ZAR, KES)\"),\n customer: PaystackFetchRefund_RefundCustomerSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the refund was created\"),\n session_id: z.string().describe(\"Session ID if applicable\").nullable().optional(),\n settlement: z.union([z.string(), z.number().int()]).nullable().optional(),\n integration: z.number().int().describe(\"Integration ID\"),\n refund_type: z.string().describe(\"Type of refund\"),\n refunded_at: z.string().describe(\"Timestamp when refund was completed\").nullable().optional(),\n refunded_by: z.string().describe(\"Email of user who initiated the refund\"),\n transaction: z.number().int().describe(\"Transaction ID that was refunded\"),\n initiated_by: z.string().describe(\"Who initiated the refund\"),\n customer_note: z.string().describe(\"Note sent to the customer explaining the refund\"),\n merchant_note: z.string().describe(\"Internal merchant note about the refund\"),\n bank_reference: z.string().describe(\"Bank reference for the refund\").nullable().optional(),\n fully_deducted: z.number().int().describe(\"Whether the refund amount was fully deducted (1 for yes, 0 for no)\"),\n refund_channel: z.string().describe(\"Channel through which the refund was processed\"),\n deducted_amount: z.number().int().describe(\"Amount actually deducted from merchant balance in subunit\"),\n transaction_amount: z.number().int().describe(\"Original transaction amount in subunit\"),\n transaction_reference: z.string().describe(\"Reference of the original transaction\"),\n collect_account_number: z.boolean().describe(\"Whether account number collection is required\").nullable().optional(),\n}).describe(\"Refund details returned by the API.\");\nexport const PaystackFetchRefundOutput: z.ZodTypeAny = z.object({\n data: PaystackFetchRefund_FetchRefundDataSchema.nullable(),\n status: z.boolean().describe(\"Whether the API request was successful\"),\n message: z.string().describe(\"Response message from the API\"),\n}).describe(\"Response containing refund details.\");\n\nexport const paystackFetchRefund = action(\"PAYSTACK_FETCH_REFUND\", {\n slug: \"paystack-fetch-refund\",\n name: \"Fetch Refund\",\n description: \"Tool to get details of a refund on your integration. Use when you need to retrieve comprehensive information about a specific refund, including status, amount, customer details, and timest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B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oEAAoE;CAC9G,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CACpF,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D;CACtG,oBAAoB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC;CACtF,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAClF,wBAAwB,EAAE,QAAQ,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,SAAS,qCAAqC;AAOjD,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXqD,EAAE,OAAO;EAC9D,MAAM,0CAA0C,SAAS;EACzD,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC;EACrE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CAC9D,CAAC,CAAC,CAAC,SAAS,qCAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/fetch-split.ts
|
|
4
|
+
const PaystackFetchSplitInput = zod.z.object({ id: zod.z.number().int().describe("The ID of the split configuration to fetch") }).describe("Request model for fetching split configuration details.");
|
|
5
|
+
const PaystackFetchSplit_SplitSubaccountSchema = zod.z.object({
|
|
6
|
+
share: zod.z.number().int().describe("Share percentage or amount for the subaccount").nullable().optional(),
|
|
7
|
+
subaccount: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Subaccount details object").nullable().optional()
|
|
8
|
+
}).describe("Subaccount details within a split configuration.");
|
|
9
|
+
const PaystackFetchSplit_FetchSplitDataSchema = zod.z.object({
|
|
10
|
+
id: zod.z.string().describe("Unique identifier of the split configuration"),
|
|
11
|
+
name: zod.z.string().describe("Name of the split configuration"),
|
|
12
|
+
type: zod.z.string().describe("Type of split (e.g., percentage, flat)"),
|
|
13
|
+
active: zod.z.boolean().describe("Whether the split configuration is active"),
|
|
14
|
+
domain: zod.z.string().describe("Domain (test or live)"),
|
|
15
|
+
currency: zod.z.string().describe("Currency code for the split"),
|
|
16
|
+
createdAt: zod.z.string().describe("ISO 8601 timestamp when the split was created"),
|
|
17
|
+
updatedAt: zod.z.string().describe("ISO 8601 timestamp when the split was last updated"),
|
|
18
|
+
is_dynamic: zod.z.boolean().describe("Whether the split configuration is dynamic"),
|
|
19
|
+
split_code: zod.z.string().describe("Unique split code identifier"),
|
|
20
|
+
bearer_type: zod.z.string().describe("Bearer type for the split (who bears the charges)"),
|
|
21
|
+
integration: zod.z.number().int().describe("Integration ID"),
|
|
22
|
+
subaccounts: zod.z.array(PaystackFetchSplit_SplitSubaccountSchema).describe("List of subaccounts in the split configuration"),
|
|
23
|
+
bearer_subaccount: zod.z.number().int().describe("Bearer subaccount ID if applicable").nullable().optional(),
|
|
24
|
+
total_subaccounts: zod.z.number().int().describe("Total number of subaccounts in the split")
|
|
25
|
+
}).describe("Split configuration data returned by Paystack API.");
|
|
26
|
+
const PaystackFetchSplitOutput = zod.z.object({
|
|
27
|
+
data: PaystackFetchSplit_FetchSplitDataSchema.nullable(),
|
|
28
|
+
status: zod.z.boolean().describe("Status of the API request"),
|
|
29
|
+
message: zod.z.string().describe("Response message from the API")
|
|
30
|
+
}).describe("Response model for fetching split configuration details.");
|
|
31
|
+
const paystackFetchSplit = require_action.action("PAYSTACK_FETCH_SPLIT", {
|
|
32
|
+
slug: "paystack-fetch-split",
|
|
33
|
+
name: "Fetch Split",
|
|
34
|
+
description: "Tool to get details of a split configuration for a transaction. Use when you need to retrieve split payment configuration information by its ID.",
|
|
35
|
+
input: PaystackFetchSplitInput,
|
|
36
|
+
output: PaystackFetchSplitOutput
|
|
37
|
+
});
|
|
38
|
+
//#endregion
|
|
39
|
+
exports.paystackFetchSplit = paystackFetchSplit;
|
|
40
|
+
|
|
41
|
+
//# sourceMappingURL=fetch-split.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetch-split.cjs","names":["z","action"],"sources":["../../src/actions/fetch-split.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaystackFetchSplitInput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"The ID of the split configuration to fetch\"),\n}).describe(\"Request model for fetching split configuration details.\");\nconst PaystackFetchSplit_SplitSubaccountSchema: z.ZodTypeAny = z.object({\n share: z.number().int().describe(\"Share percentage or amount for the subaccount\").nullable().optional(),\n subaccount: z.record(z.string(), z.unknown()).describe(\"Subaccount details object\").nullable().optional(),\n}).describe(\"Subaccount details within a split configuration.\");\nconst PaystackFetchSplit_FetchSplitDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the split configuration\"),\n name: z.string().describe(\"Name of the split configuration\"),\n type: z.string().describe(\"Type of split (e.g., percentage, flat)\"),\n active: z.boolean().describe(\"Whether the split configuration is active\"),\n domain: z.string().describe(\"Domain (test or live)\"),\n currency: z.string().describe(\"Currency code for the split\"),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the split was created\"),\n updatedAt: z.string().describe(\"ISO 8601 timestamp when the split was last updated\"),\n is_dynamic: z.boolean().describe(\"Whether the split configuration is dynamic\"),\n split_code: z.string().describe(\"Unique split code identifier\"),\n bearer_type: z.string().describe(\"Bearer type for the split (who bears the charges)\"),\n integration: z.number().int().describe(\"Integration ID\"),\n subaccounts: z.array(PaystackFetchSplit_SplitSubaccountSchema).describe(\"List of subaccounts in the split configuration\"),\n bearer_subaccount: z.number().int().describe(\"Bearer subaccount ID if applicable\").nullable().optional(),\n total_subaccounts: z.number().int().describe(\"Total number of subaccounts in the split\"),\n}).describe(\"Split configuration data returned by Paystack API.\");\nexport const PaystackFetchSplitOutput: z.ZodTypeAny = z.object({\n data: PaystackFetchSplit_FetchSplitDataSchema.nullable(),\n status: z.boolean().describe(\"Status of the API request\"),\n message: z.string().describe(\"Response message from the API\"),\n}).describe(\"Response model for fetching split configuration details.\");\n\nexport const paystackFetchSplit = action(\"PAYSTACK_FETCH_SPLIT\", {\n slug: \"paystack-fetch-split\",\n name: \"Fetch Split\",\n description: \"Tool to get details of a split configuration for a transaction. Use when you need to retrieve split payment configuration information by its ID.\",\n input: PaystackFetchSplitInput,\n output: PaystackFetchSplitOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO,EAC5D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,EAC5E,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,2CAAyDA,IAAAA,EAAE,OAAO;CACtE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,0CAAwDA,IAAAA,EAAE,OAAO;CACrE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CACtE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CAC3D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CAClE,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C;CACxE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACnD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS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declare const paystackFetchSplit: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { paystackFetchSplit };
|
|
9
|
+
//# sourceMappingURL=fetch-split.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetch-split.d.cts","names":[],"sources":["../../src/actions/fetch-split.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAE8B;AAAA,cAsBzD,wBAAA,EAA0B,CAAA,CAAE,UAI8B;AAAA,cAE1D,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/fetch-split.d.ts
|
|
4
|
+
declare const PaystackFetchSplitInput: z.ZodTypeAny;
|
|
5
|
+
declare const PaystackFetchSplitOutput: z.ZodTypeAny;
|
|
6
|
+
declare const paystackFetchSplit: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { paystackFetchSplit };
|
|
9
|
+
//# sourceMappingURL=fetch-split.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetch-split.d.mts","names":[],"sources":["../../src/actions/fetch-split.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAE8B;AAAA,cAsBzD,wBAAA,EAA0B,CAAA,CAAE,UAI8B;AAAA,cAE1D,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/fetch-split.ts
|
|
4
|
+
const PaystackFetchSplitInput = z.object({ id: z.number().int().describe("The ID of the split configuration to fetch") }).describe("Request model for fetching split configuration details.");
|
|
5
|
+
const PaystackFetchSplit_SplitSubaccountSchema = z.object({
|
|
6
|
+
share: z.number().int().describe("Share percentage or amount for the subaccount").nullable().optional(),
|
|
7
|
+
subaccount: z.record(z.string(), z.unknown()).describe("Subaccount details object").nullable().optional()
|
|
8
|
+
}).describe("Subaccount details within a split configuration.");
|
|
9
|
+
const PaystackFetchSplit_FetchSplitDataSchema = z.object({
|
|
10
|
+
id: z.string().describe("Unique identifier of the split configuration"),
|
|
11
|
+
name: z.string().describe("Name of the split configuration"),
|
|
12
|
+
type: z.string().describe("Type of split (e.g., percentage, flat)"),
|
|
13
|
+
active: z.boolean().describe("Whether the split configuration is active"),
|
|
14
|
+
domain: z.string().describe("Domain (test or live)"),
|
|
15
|
+
currency: z.string().describe("Currency code for the split"),
|
|
16
|
+
createdAt: z.string().describe("ISO 8601 timestamp when the split was created"),
|
|
17
|
+
updatedAt: z.string().describe("ISO 8601 timestamp when the split was last updated"),
|
|
18
|
+
is_dynamic: z.boolean().describe("Whether the split configuration is dynamic"),
|
|
19
|
+
split_code: z.string().describe("Unique split code identifier"),
|
|
20
|
+
bearer_type: z.string().describe("Bearer type for the split (who bears the charges)"),
|
|
21
|
+
integration: z.number().int().describe("Integration ID"),
|
|
22
|
+
subaccounts: z.array(PaystackFetchSplit_SplitSubaccountSchema).describe("List of subaccounts in the split configuration"),
|
|
23
|
+
bearer_subaccount: z.number().int().describe("Bearer subaccount ID if applicable").nullable().optional(),
|
|
24
|
+
total_subaccounts: z.number().int().describe("Total number of subaccounts in the split")
|
|
25
|
+
}).describe("Split configuration data returned by Paystack API.");
|
|
26
|
+
const paystackFetchSplit = action("PAYSTACK_FETCH_SPLIT", {
|
|
27
|
+
slug: "paystack-fetch-split",
|
|
28
|
+
name: "Fetch Split",
|
|
29
|
+
description: "Tool to get details of a split configuration for a transaction. Use when you need to retrieve split payment configuration information by its ID.",
|
|
30
|
+
input: PaystackFetchSplitInput,
|
|
31
|
+
output: z.object({
|
|
32
|
+
data: PaystackFetchSplit_FetchSplitDataSchema.nullable(),
|
|
33
|
+
status: z.boolean().describe("Status of the API request"),
|
|
34
|
+
message: z.string().describe("Response message from the API")
|
|
35
|
+
}).describe("Response model for fetching split configuration details.")
|
|
36
|
+
});
|
|
37
|
+
//#endregion
|
|
38
|
+
export { paystackFetchSplit };
|
|
39
|
+
|
|
40
|
+
//# sourceMappingURL=fetch-split.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetch-split.mjs","names":[],"sources":["../../src/actions/fetch-split.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaystackFetchSplitInput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"The ID of the split configuration to fetch\"),\n}).describe(\"Request model for fetching split configuration details.\");\nconst PaystackFetchSplit_SplitSubaccountSchema: z.ZodTypeAny = z.object({\n share: z.number().int().describe(\"Share percentage or amount for the subaccount\").nullable().optional(),\n subaccount: z.record(z.string(), z.unknown()).describe(\"Subaccount details object\").nullable().optional(),\n}).describe(\"Subaccount details within a split configuration.\");\nconst PaystackFetchSplit_FetchSplitDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the split configuration\"),\n name: z.string().describe(\"Name of the split configuration\"),\n type: z.string().describe(\"Type of split (e.g., percentage, flat)\"),\n active: z.boolean().describe(\"Whether the split configuration is active\"),\n domain: z.string().describe(\"Domain (test or live)\"),\n currency: z.string().describe(\"Currency code for the split\"),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the split was created\"),\n updatedAt: z.string().describe(\"ISO 8601 timestamp when the split was last updated\"),\n is_dynamic: z.boolean().describe(\"Whether the split configuration is dynamic\"),\n split_code: z.string().describe(\"Unique split code identifier\"),\n bearer_type: z.string().describe(\"Bearer type for the split (who bears the charges)\"),\n integration: z.number().int().describe(\"Integration ID\"),\n subaccounts: z.array(PaystackFetchSplit_SplitSubaccountSchema).describe(\"List of subaccounts in the split configuration\"),\n bearer_subaccount: z.number().int().describe(\"Bearer subaccount ID if applicable\").nullable().optional(),\n total_subaccounts: z.number().int().describe(\"Total number of subaccounts in the split\"),\n}).describe(\"Split configuration data returned by Paystack API.\");\nexport const PaystackFetchSplitOutput: z.ZodTypeAny = z.object({\n data: PaystackFetchSplit_FetchSplitDataSchema.nullable(),\n status: z.boolean().describe(\"Status of the API request\"),\n message: z.string().describe(\"Response message from the API\"),\n}).describe(\"Response model for fetching split configuration details.\");\n\nexport const paystackFetchSplit = action(\"PAYSTACK_FETCH_SPLIT\", {\n slug: \"paystack-fetch-split\",\n name: \"Fetch Split\",\n description: \"Tool to get details of a split configuration for a transaction. Use when you need to retrieve split payment configuration information by its ID.\",\n input: PaystackFetchSplitInput,\n output: PaystackFetchSplitOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwC,EAAE,OAAO,EAC5D,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,EAC5E,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,2CAAyD,EAAE,OAAO;CACtE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,0CAAwD,EAAE,OAAO;CACrE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CACtE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CAC3D,M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orefrontOrdersInput = zod.z.object({
|
|
5
|
+
id: zod.z.number().int().describe("The unique identifier of the Storefront"),
|
|
6
|
+
page: zod.z.number().int().describe("The page number to retrieve (for pagination)").optional(),
|
|
7
|
+
perPage: zod.z.number().int().describe("The number of records to return per page").optional()
|
|
8
|
+
}).describe("Request to fetch orders from a storefront.");
|
|
9
|
+
const PaystackFetchStorefrontOrders_StorefrontOrderItemSchema = zod.z.object({
|
|
10
|
+
email: zod.z.string().describe("Customer's email address"),
|
|
11
|
+
phone: zod.z.string().describe("Customer's phone number").nullable().optional(),
|
|
12
|
+
price: zod.z.number().int().describe("Product price in smallest currency unit (kobo, pesewas, or cents)").nullable().optional(),
|
|
13
|
+
amount: zod.z.number().int().describe("Total order amount in smallest currency unit"),
|
|
14
|
+
status: zod.z.string().describe("Order status (e.g., pending, completed, refunded)"),
|
|
15
|
+
paid_at: zod.z.string().describe("ISO 8601 timestamp when payment was made").nullable().optional(),
|
|
16
|
+
currency: zod.z.string().describe("Currency code (e.g., NGN, USD, GHS)"),
|
|
17
|
+
customer: zod.z.number().int().describe("Customer ID who placed the order"),
|
|
18
|
+
order_id: zod.z.string().describe("Unique order ID"),
|
|
19
|
+
quantity: zod.z.number().int().describe("Total quantity of the product").nullable().optional(),
|
|
20
|
+
refunded: zod.z.boolean().describe("Whether the order has been refunded"),
|
|
21
|
+
shipping: zod.z.object({}).describe("Shipping details").nullable().optional(),
|
|
22
|
+
is_viewed: zod.z.number().int().describe("View status of the order (0 or 1)").nullable().optional(),
|
|
23
|
+
last_name: zod.z.string().describe("Customer's last name").nullable().optional(),
|
|
24
|
+
created_at: zod.z.string().describe("ISO 8601 timestamp when the order was created"),
|
|
25
|
+
first_name: zod.z.string().describe("Customer's first name").nullable().optional(),
|
|
26
|
+
is_shipped: zod.z.boolean().describe("Whether the order has been shipped").nullable().optional(),
|
|
27
|
+
order_code: zod.z.string().describe("Unique order code"),
|
|
28
|
+
product_id: zod.z.number().int().describe("Product ID").nullable().optional(),
|
|
29
|
+
variant_id: zod.z.union([zod.z.number().int(), zod.z.object({})]).nullable().optional(),
|
|
30
|
+
amount_paid: zod.z.number().int().describe("Amount paid in smallest currency unit").nullable().optional(),
|
|
31
|
+
transaction: zod.z.number().int().describe("Transaction ID associated with the order").nullable().optional(),
|
|
32
|
+
product_code: zod.z.string().describe("Unique product code").nullable().optional(),
|
|
33
|
+
product_name: zod.z.string().describe("Name of the product").nullable().optional(),
|
|
34
|
+
shipping_fee: zod.z.object({}).describe("Shipping fee details").nullable().optional(),
|
|
35
|
+
variant_code: zod.z.union([zod.z.string(), zod.z.object({})]).nullable().optional(),
|
|
36
|
+
customer_name: zod.z.string().describe("Full customer name").nullable().optional(),
|
|
37
|
+
delivery_note: zod.z.object({}).describe("Delivery note for the order").nullable().optional(),
|
|
38
|
+
quantity_sold: zod.z.number().int().describe("Quantity of product sold in this order").nullable().optional(),
|
|
39
|
+
variant_price: zod.z.union([zod.z.number().int(), zod.z.object({})]).nullable().optional(),
|
|
40
|
+
shipping_method: zod.z.object({}).describe("Shipping method details").nullable().optional(),
|
|
41
|
+
storefront_slug: zod.z.string().describe("Storefront slug where the product was sold").nullable().optional(),
|
|
42
|
+
shipping_address: zod.z.object({}).describe("Shipping address details").nullable().optional()
|
|
43
|
+
}).describe("Individual order details from a storefront.");
|
|
44
|
+
const PaystackFetchStorefrontOrders_StorefrontOrderMetaSchema = zod.z.object({
|
|
45
|
+
page: zod.z.number().int().describe("Current page number").nullable().optional(),
|
|
46
|
+
total: zod.z.number().int().describe("Total number of orders in the storefront").nullable().optional(),
|
|
47
|
+
perPage: zod.z.number().int().describe("Number of orders per page").nullable().optional(),
|
|
48
|
+
revenue: zod.z.number().int().describe("Total revenue generated from the storefront in smallest currency unit").nullable().optional(),
|
|
49
|
+
skipped: zod.z.number().int().describe("Number of skipped records").nullable().optional(),
|
|
50
|
+
pageCount: zod.z.number().int().describe("Total number of pages").nullable().optional(),
|
|
51
|
+
quantity_sold: zod.z.number().int().describe("Total quantity of products sold across all orders").nullable().optional()
|
|
52
|
+
}).describe("Metadata about the storefront orders.");
|
|
53
|
+
const PaystackFetchStorefrontOrdersOutput = zod.z.object({
|
|
54
|
+
data: zod.z.array(PaystackFetchStorefrontOrders_StorefrontOrderItemSchema).describe("List of orders in the storefront"),
|
|
55
|
+
meta: PaystackFetchStorefrontOrders_StorefrontOrderMetaSchema.nullable().optional(),
|
|
56
|
+
status: zod.z.boolean().describe("Status of the API request"),
|
|
57
|
+
message: zod.z.string().describe("Response message from the API")
|
|
58
|
+
}).describe("Response containing storefront orders.");
|
|
59
|
+
const paystackFetchStorefrontOrders = require_action.action("PAYSTACK_FETCH_STOREFRONT_ORDERS", {
|
|
60
|
+
slug: "paystack-fetch-storefront-orders",
|
|
61
|
+
name: "Fetch Storefront Orders",
|
|
62
|
+
description: "Tool to fetch all orders in a Paystack storefront. Use when you need to retrieve order information for a specific storefront using its ID.",
|
|
63
|
+
input: PaystackFetchStorefrontOrdersInput,
|
|
64
|
+
output: PaystackFetchStorefrontOrdersOutput
|
|
65
|
+
});
|
|
66
|
+
//#endregion
|
|
67
|
+
exports.paystackFetchStorefrontOrders = paystackFetchStorefrontOrders;
|
|
68
|
+
|
|
69
|
+
//# sourceMappingURL=fetch-storefront-orders.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetch-storefront-orders.cjs","names":["z","action"],"sources":["../../src/actions/fetch-storefront-orders.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaystackFetchStorefrontOrdersInput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"The unique identifier of the Storefront\"),\n page: z.number().int().describe(\"The page number to retrieve (for pagination)\").optional(),\n perPage: z.number().int().describe(\"The number of records to return per page\").optional(),\n}).describe(\"Request to fetch orders from a storefront.\");\nconst PaystackFetchStorefrontOrders_StorefrontOrderItemSchema: z.ZodTypeAny = z.object({\n email: z.string().describe(\"Customer's email address\"),\n phone: z.string().describe(\"Customer's phone number\").nullable().optional(),\n price: z.number().int().describe(\"Product price in smallest currency unit (kobo, pesewas, or cents)\").nullable().optional(),\n amount: z.number().int().describe(\"Total order amount in smallest currency unit\"),\n status: z.string().describe(\"Order status (e.g., pending, completed, refunded)\"),\n paid_at: z.string().describe(\"ISO 8601 timestamp when payment was made\").nullable().optional(),\n currency: z.string().describe(\"Currency code (e.g., NGN, USD, GHS)\"),\n customer: z.number().int().describe(\"Customer ID who placed the order\"),\n order_id: z.string().describe(\"Unique order ID\"),\n quantity: z.number().int().describe(\"Total quantity of the product\").nullable().optional(),\n refunded: z.boolean().describe(\"Whether the order has been refunded\"),\n shipping: z.object({}).describe(\"Shipping details\").nullable().optional(),\n is_viewed: z.number().int().describe(\"View status of the order (0 or 1)\").nullable().optional(),\n last_name: z.string().describe(\"Customer's last name\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the order was created\"),\n first_name: z.string().describe(\"Customer's first name\").nullable().optional(),\n is_shipped: z.boolean().describe(\"Whether the order has been shipped\").nullable().optional(),\n order_code: z.string().describe(\"Unique order code\"),\n product_id: z.number().int().describe(\"Product ID\").nullable().optional(),\n variant_id: z.union([z.number().int(), z.object({})]).nullable().optional(),\n amount_paid: z.number().int().describe(\"Amount paid in smallest currency unit\").nullable().optional(),\n transaction: z.number().int().describe(\"Transaction ID associated with the order\").nullable().optional(),\n product_code: z.string().describe(\"Unique product code\").nullable().optional(),\n product_name: z.string().describe(\"Name of the product\").nullable().optional(),\n shipping_fee: z.object({}).describe(\"Shipping fee details\").nullable().optional(),\n variant_code: z.union([z.string(), z.object({})]).nullable().optional(),\n customer_name: z.string().describe(\"Full customer name\").nullable().optional(),\n delivery_note: z.object({}).describe(\"Delivery note for the order\").nullable().optional(),\n quantity_sold: z.number().int().describe(\"Quantity of product sold in this order\").nullable().optional(),\n variant_price: z.union([z.number().int(), z.object({})]).nullable().optional(),\n shipping_method: z.object({}).describe(\"Shipping method details\").nullable().optional(),\n storefront_slug: z.string().describe(\"Storefront slug where the product was sold\").nullable().optional(),\n shipping_address: z.object({}).describe(\"Shipping address details\").nullable().optional(),\n}).describe(\"Individual order details from a storefront.\");\nconst PaystackFetchStorefrontOrders_StorefrontOrderMetaSchema: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Current page number\").nullable().optional(),\n total: z.number().int().describe(\"Total number of orders in the storefront\").nullable().optional(),\n perPage: z.number().int().describe(\"Number of orders per page\").nullable().optional(),\n revenue: z.number().int().describe(\"Total revenue generated from the storefront in smallest currency unit\").nullable().optional(),\n skipped: z.number().int().describe(\"Number of skipped records\").nullable().optional(),\n pageCount: z.number().int().describe(\"Total number of pages\").nullable().optional(),\n quantity_sold: z.number().int().describe(\"Total quantity of products sold across all orders\").nullable().optional(),\n}).describe(\"Metadata about the storefront orders.\");\nexport const PaystackFetchStorefrontOrdersOutput: z.ZodTypeAny = z.object({\n data: z.array(PaystackFetchStorefrontOrders_StorefrontOrderItemSchema).describe(\"List of orders in the storefront\"),\n meta: PaystackFetchStorefrontOrders_StorefrontOrderMetaSchema.nullable().optional(),\n status: z.boolean().describe(\"Status of the API request\"),\n message: z.string().describe(\"Response message from the API\"),\n}).describe(\"Response containing storefront orders.\");\n\nexport const paystackFetchStorefrontOrders = action(\"PAYSTACK_FETCH_STOREFRONT_ORDERS\", {\n slug: \"paystack-fetch-storefront-orders\",\n name: \"Fetch Storefront Orders\",\n description: \"Tool to fetch all orders in a Paystack storefront. Use when you need to retrieve order information for a specific storefront using its ID.\",\n input: PaystackFetchStorefrontOrdersInput,\n output: PaystackFetchStorefrontOrdersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAmDA,IAAAA,EAAE,OAAO;CACvE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACzF,SAASA,IAAAA,EAA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SAAS;CACjG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChI,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAa,sCAAoDA,IAAAA,EAAE,OAAO;CACxE,MAAMA,IAAAA,EAAE,MAAM,uDAAuD,CAAC,CAAC,SAAS,kCAAkC;CAClH,MAAM,wDAAwD,SAAS,CAAC,CAAC,SAAS;CAClF,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2BAA2B;CACxD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;AAC9D,CAAC,CAAC,CAAC,SAAS,wCAAwC;AAEpD,MAAa,gCAAgCC,eAAAA,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/fetch-storefront-orders.d.ts
|
|
4
|
+
declare const PaystackFetchStorefrontOrdersInput: z.ZodTypeAny;
|
|
5
|
+
declare const PaystackFetchStorefrontOrdersOutput: z.ZodTypeAny;
|
|
6
|
+
declare const paystackFetchStorefrontOrders: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { paystackFetchStorefrontOrders };
|
|
9
|
+
//# sourceMappingURL=fetch-storefront-orders.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetch-storefront-orders.d.cts","names":[],"sources":["../../src/actions/fetch-storefront-orders.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAIM;AAAA,cA6C5C,mCAAA,EAAqC,CAAA,CAAE,UAKC;AAAA,cAExC,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/fetch-storefront-orders.d.ts
|
|
4
|
+
declare const PaystackFetchStorefrontOrdersInput: z.ZodTypeAny;
|
|
5
|
+
declare const PaystackFetchStorefrontOrdersOutput: z.ZodTypeAny;
|
|
6
|
+
declare const paystackFetchStorefrontOrders: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { paystackFetchStorefrontOrders };
|
|
9
|
+
//# sourceMappingURL=fetch-storefront-orders.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetch-storefront-orders.d.mts","names":[],"sources":["../../src/actions/fetch-storefront-orders.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAIM;AAAA,cA6C5C,mCAAA,EAAqC,CAAA,CAAE,UAKC;AAAA,cAExC,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/fetch-storefront-orders.ts
|
|
4
|
+
const PaystackFetchStorefrontOrdersInput = z.object({
|
|
5
|
+
id: z.number().int().describe("The unique identifier of the Storefront"),
|
|
6
|
+
page: z.number().int().describe("The page number to retrieve (for pagination)").optional(),
|
|
7
|
+
perPage: z.number().int().describe("The number of records to return per page").optional()
|
|
8
|
+
}).describe("Request to fetch orders from a storefront.");
|
|
9
|
+
const PaystackFetchStorefrontOrders_StorefrontOrderItemSchema = z.object({
|
|
10
|
+
email: z.string().describe("Customer's email address"),
|
|
11
|
+
phone: z.string().describe("Customer's phone number").nullable().optional(),
|
|
12
|
+
price: z.number().int().describe("Product price in smallest currency unit (kobo, pesewas, or cents)").nullable().optional(),
|
|
13
|
+
amount: z.number().int().describe("Total order amount in smallest currency unit"),
|
|
14
|
+
status: z.string().describe("Order status (e.g., pending, completed, refunded)"),
|
|
15
|
+
paid_at: z.string().describe("ISO 8601 timestamp when payment was made").nullable().optional(),
|
|
16
|
+
currency: z.string().describe("Currency code (e.g., NGN, USD, GHS)"),
|
|
17
|
+
customer: z.number().int().describe("Customer ID who placed the order"),
|
|
18
|
+
order_id: z.string().describe("Unique order ID"),
|
|
19
|
+
quantity: z.number().int().describe("Total quantity of the product").nullable().optional(),
|
|
20
|
+
refunded: z.boolean().describe("Whether the order has been refunded"),
|
|
21
|
+
shipping: z.object({}).describe("Shipping details").nullable().optional(),
|
|
22
|
+
is_viewed: z.number().int().describe("View status of the order (0 or 1)").nullable().optional(),
|
|
23
|
+
last_name: z.string().describe("Customer's last name").nullable().optional(),
|
|
24
|
+
created_at: z.string().describe("ISO 8601 timestamp when the order was created"),
|
|
25
|
+
first_name: z.string().describe("Customer's first name").nullable().optional(),
|
|
26
|
+
is_shipped: z.boolean().describe("Whether the order has been shipped").nullable().optional(),
|
|
27
|
+
order_code: z.string().describe("Unique order code"),
|
|
28
|
+
product_id: z.number().int().describe("Product ID").nullable().optional(),
|
|
29
|
+
variant_id: z.union([z.number().int(), z.object({})]).nullable().optional(),
|
|
30
|
+
amount_paid: z.number().int().describe("Amount paid in smallest currency unit").nullable().optional(),
|
|
31
|
+
transaction: z.number().int().describe("Transaction ID associated with the order").nullable().optional(),
|
|
32
|
+
product_code: z.string().describe("Unique product code").nullable().optional(),
|
|
33
|
+
product_name: z.string().describe("Name of the product").nullable().optional(),
|
|
34
|
+
shipping_fee: z.object({}).describe("Shipping fee details").nullable().optional(),
|
|
35
|
+
variant_code: z.union([z.string(), z.object({})]).nullable().optional(),
|
|
36
|
+
customer_name: z.string().describe("Full customer name").nullable().optional(),
|
|
37
|
+
delivery_note: z.object({}).describe("Delivery note for the order").nullable().optional(),
|
|
38
|
+
quantity_sold: z.number().int().describe("Quantity of product sold in this order").nullable().optional(),
|
|
39
|
+
variant_price: z.union([z.number().int(), z.object({})]).nullable().optional(),
|
|
40
|
+
shipping_method: z.object({}).describe("Shipping method details").nullable().optional(),
|
|
41
|
+
storefront_slug: z.string().describe("Storefront slug where the product was sold").nullable().optional(),
|
|
42
|
+
shipping_address: z.object({}).describe("Shipping address details").nullable().optional()
|
|
43
|
+
}).describe("Individual order details from a storefront.");
|
|
44
|
+
const PaystackFetchStorefrontOrders_StorefrontOrderMetaSchema = z.object({
|
|
45
|
+
page: z.number().int().describe("Current page number").nullable().optional(),
|
|
46
|
+
total: z.number().int().describe("Total number of orders in the storefront").nullable().optional(),
|
|
47
|
+
perPage: z.number().int().describe("Number of orders per page").nullable().optional(),
|
|
48
|
+
revenue: z.number().int().describe("Total revenue generated from the storefront in smallest currency unit").nullable().optional(),
|
|
49
|
+
skipped: z.number().int().describe("Number of skipped records").nullable().optional(),
|
|
50
|
+
pageCount: z.number().int().describe("Total number of pages").nullable().optional(),
|
|
51
|
+
quantity_sold: z.number().int().describe("Total quantity of products sold across all orders").nullable().optional()
|
|
52
|
+
}).describe("Metadata about the storefront orders.");
|
|
53
|
+
const paystackFetchStorefrontOrders = action("PAYSTACK_FETCH_STOREFRONT_ORDERS", {
|
|
54
|
+
slug: "paystack-fetch-storefront-orders",
|
|
55
|
+
name: "Fetch Storefront Orders",
|
|
56
|
+
description: "Tool to fetch all orders in a Paystack storefront. Use when you need to retrieve order information for a specific storefront using its ID.",
|
|
57
|
+
input: PaystackFetchStorefrontOrdersInput,
|
|
58
|
+
output: z.object({
|
|
59
|
+
data: z.array(PaystackFetchStorefrontOrders_StorefrontOrderItemSchema).describe("List of orders in the storefront"),
|
|
60
|
+
meta: PaystackFetchStorefrontOrders_StorefrontOrderMetaSchema.nullable().optional(),
|
|
61
|
+
status: z.boolean().describe("Status of the API request"),
|
|
62
|
+
message: z.string().describe("Response message from the API")
|
|
63
|
+
}).describe("Response containing storefront orders.")
|
|
64
|
+
});
|
|
65
|
+
//#endregion
|
|
66
|
+
export { paystackFetchStorefrontOrders };
|
|
67
|
+
|
|
68
|
+
//# sourceMappingURL=fetch-storefront-orders.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetch-storefront-orders.mjs","names":[],"sources":["../../src/actions/fetch-storefront-orders.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaystackFetchStorefrontOrdersInput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"The unique identifier of the Storefront\"),\n page: z.number().int().describe(\"The page number to retrieve (for pagination)\").optional(),\n perPage: z.number().int().describe(\"The number of records to return per page\").optional(),\n}).describe(\"Request to fetch orders from a storefront.\");\nconst PaystackFetchStorefrontOrders_StorefrontOrderItemSchema: z.ZodTypeAny = z.object({\n email: z.string().describe(\"Customer's email address\"),\n phone: z.string().describe(\"Customer's phone number\").nullable().optional(),\n price: z.number().int().describe(\"Product price in smallest currency unit (kobo, pesewas, or cents)\").nullable().optional(),\n amount: z.number().int().describe(\"Total order amount in smallest currency unit\"),\n status: z.string().describe(\"Order status (e.g., pending, completed, refunded)\"),\n paid_at: z.string().describe(\"ISO 8601 timestamp when payment was made\").nullable().optional(),\n currency: z.string().describe(\"Currency code (e.g., NGN, USD, GHS)\"),\n customer: z.number().int().describe(\"Customer ID who placed the order\"),\n order_id: z.string().describe(\"Unique order ID\"),\n quantity: z.number().int().describe(\"Total quantity of the product\").nullable().optional(),\n refunded: z.boolean().describe(\"Whether the order has been refunded\"),\n shipping: z.object({}).describe(\"Shipping details\").nullable().optional(),\n is_viewed: z.number().int().describe(\"View status of the order (0 or 1)\").nullable().optional(),\n last_name: z.string().describe(\"Customer's last name\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the order was created\"),\n first_name: z.string().describe(\"Customer's first name\").nullable().optional(),\n is_shipped: z.boolean().describe(\"Whether the order has been shipped\").nullable().optional(),\n order_code: z.string().describe(\"Unique order code\"),\n product_id: z.number().int().describe(\"Product ID\").nullable().optional(),\n variant_id: z.union([z.number().int(), z.object({})]).nullable().optional(),\n amount_paid: z.number().int().describe(\"Amount paid in smallest currency unit\").nullable().optional(),\n transaction: z.number().int().describe(\"Transaction ID associated with the order\").nullable().optional(),\n product_code: z.string().describe(\"Unique product code\").nullable().optional(),\n product_name: z.string().describe(\"Name of the product\").nullable().optional(),\n shipping_fee: z.object({}).describe(\"Shipping fee details\").nullable().optional(),\n variant_code: z.union([z.string(), z.object({})]).nullable().optional(),\n customer_name: z.string().describe(\"Full customer name\").nullable().optional(),\n delivery_note: z.object({}).describe(\"Delivery note for the order\").nullable().optional(),\n quantity_sold: z.number().int().describe(\"Quantity of product sold in this order\").nullable().optional(),\n variant_price: z.union([z.number().int(), z.object({})]).nullable().optional(),\n shipping_method: z.object({}).describe(\"Shipping method details\").nullable().optional(),\n storefront_slug: z.string().describe(\"Storefront slug where the product was sold\").nullable().optional(),\n shipping_address: z.object({}).describe(\"Shipping address details\").nullable().optional(),\n}).describe(\"Individual order details from a storefront.\");\nconst PaystackFetchStorefrontOrders_StorefrontOrderMetaSchema: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Current page number\").nullable().optional(),\n total: z.number().int().describe(\"Total number of orders in the storefront\").nullable().optional(),\n perPage: z.number().int().describe(\"Number of orders per page\").nullable().optional(),\n revenue: z.number().int().describe(\"Total revenue generated from the storefront in smallest currency unit\").nullable().optional(),\n skipped: z.number().int().describe(\"Number of skipped records\").nullable().optional(),\n pageCount: z.number().int().describe(\"Total number of pages\").nullable().optional(),\n quantity_sold: z.number().int().describe(\"Total quantity of products sold across all orders\").nullable().optional(),\n}).describe(\"Metadata about the storefront orders.\");\nexport const PaystackFetchStorefrontOrdersOutput: z.ZodTypeAny = z.object({\n data: z.array(PaystackFetchStorefrontOrders_StorefrontOrderItemSchema).describe(\"List of orders in the storefront\"),\n meta: PaystackFetchStorefrontOrders_StorefrontOrderMetaSchema.nullable().optional(),\n status: z.boolean().describe(\"Status of the API request\"),\n message: z.string().describe(\"Response message from the API\"),\n}).describe(\"Response containing storefront orders.\");\n\nexport const paystackFetchStorefrontOrders = action(\"PAYSTACK_FETCH_STOREFRONT_ORDERS\", {\n slug: \"paystack-fetch-storefront-orders\",\n name: \"Fetch Storefront Orders\",\n description: \"Tool to fetch all orders in a Paystack storefront. Use when you need to retrieve order information for a specific storefront using its ID.\",\n input: PaystackFetchStorefrontOrdersInput,\n output: PaystackFetchStorefrontOrdersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAmD,EAAE,OAAO;CACvE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC;CACvE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACzF,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAM,0DAA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S,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,SAAS,uCAAuC;AAQnD,MAAa,gCAAgC,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZ+D,EAAE,OAAO;EACxE,MAAM,EAAE,MAAM,uDAAuD,CAAC,CAAC,SAAS,kCAAkC;EAClH,MAAM,wDAAwD,SAAS,CAAC,CAAC,SAAS;EAClF,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,2BAA2B;EACxD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CAC9D,CAAC,CAAC,CAAC,SAAS,wCAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/fetch-storefront.ts
|
|
4
|
+
const PaystackFetchStorefrontInput = zod.z.object({ id: zod.z.number().int().describe("The unique identifier of the Storefront to fetch") }).describe("Request to fetch storefront details by ID.");
|
|
5
|
+
const PaystackFetchStorefront_FetchStorefrontDataSchema = zod.z.object({
|
|
6
|
+
id: zod.z.string().describe("Unique storefront identifier"),
|
|
7
|
+
name: zod.z.string().describe("Name of the storefront"),
|
|
8
|
+
slug: zod.z.string().describe("Unique slug to access the storefront"),
|
|
9
|
+
domain: zod.z.string().describe("Domain where the storefront is accessible"),
|
|
10
|
+
status: zod.z.string().describe("Status of the storefront"),
|
|
11
|
+
contacts: zod.z.array(zod.z.object({})).describe("Contact information").nullable().optional(),
|
|
12
|
+
currency: zod.z.string().describe("Currency for product prices"),
|
|
13
|
+
metadata: zod.z.object({}).describe("Additional metadata for the storefront").nullable().optional(),
|
|
14
|
+
products: zod.z.array(zod.z.object({})).describe("Products in the storefront").nullable().optional(),
|
|
15
|
+
createdAt: zod.z.string().describe("Timestamp when the storefront was created"),
|
|
16
|
+
shippable: zod.z.boolean().describe("Whether the storefront supports shipping"),
|
|
17
|
+
updatedAt: zod.z.string().describe("Timestamp when the storefront was last updated"),
|
|
18
|
+
description: zod.z.string().describe("Description of the storefront").nullable().optional(),
|
|
19
|
+
integration: zod.z.number().int().describe("Integration ID"),
|
|
20
|
+
redirect_url: zod.z.string().describe("URL to redirect after successful purchase").nullable().optional(),
|
|
21
|
+
social_media: zod.z.array(zod.z.object({})).describe("Social media links").nullable().optional(),
|
|
22
|
+
delivery_note: zod.z.string().describe("Delivery note for the storefront"),
|
|
23
|
+
shipping_fees: zod.z.array(zod.z.object({})).describe("Shipping fee configurations").nullable().optional(),
|
|
24
|
+
success_message: zod.z.string().describe("Success message after purchase").nullable().optional(),
|
|
25
|
+
welcome_message: zod.z.string().describe("Welcome message for the storefront").nullable().optional(),
|
|
26
|
+
background_color: zod.z.string().describe("Background color of the storefront"),
|
|
27
|
+
digital_product_expiry: zod.z.number().int().describe("Expiry time for digital products in seconds").nullable().optional()
|
|
28
|
+
}).describe("Storefront details returned by the API.");
|
|
29
|
+
const PaystackFetchStorefront_FetchStorefrontMetaSchema = zod.z.object({
|
|
30
|
+
page: zod.z.number().int().describe("Current page number"),
|
|
31
|
+
total: zod.z.number().int().describe("Total items"),
|
|
32
|
+
perPage: zod.z.number().int().describe("Items per page"),
|
|
33
|
+
skipped: zod.z.number().int().describe("Number of items skipped"),
|
|
34
|
+
pageCount: zod.z.number().int().describe("Total number of pages"),
|
|
35
|
+
product_count: zod.z.number().int().describe("Number of products in the storefront")
|
|
36
|
+
}).describe("Metadata for the storefront fetch response.");
|
|
37
|
+
const PaystackFetchStorefrontOutput = zod.z.object({
|
|
38
|
+
data: PaystackFetchStorefront_FetchStorefrontDataSchema.nullable(),
|
|
39
|
+
meta: PaystackFetchStorefront_FetchStorefrontMetaSchema.nullable(),
|
|
40
|
+
status: zod.z.boolean().describe("Indicates if the request was successful"),
|
|
41
|
+
message: zod.z.string().describe("Response message from the API")
|
|
42
|
+
}).describe("Response containing storefront details.");
|
|
43
|
+
const paystackFetchStorefront = require_action.action("PAYSTACK_FETCH_STOREFRONT", {
|
|
44
|
+
slug: "paystack-fetch-storefront",
|
|
45
|
+
name: "Fetch Storefront",
|
|
46
|
+
description: "Tool to get the details of a previously created Storefront. Use when you need to retrieve information about a specific storefront including its products, contacts, and configuration.",
|
|
47
|
+
input: PaystackFetchStorefrontInput,
|
|
48
|
+
output: PaystackFetchStorefrontOutput
|
|
49
|
+
});
|
|
50
|
+
//#endregion
|
|
51
|
+
exports.paystackFetchStorefront = paystackFetchStorefront;
|
|
52
|
+
|
|
53
|
+
//# sourceMappingURL=fetch-storefront.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetch-storefront.cjs","names":["z","action"],"sources":["../../src/actions/fetch-storefront.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaystackFetchStorefrontInput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"The unique identifier of the Storefront to fetch\"),\n}).describe(\"Request to fetch storefront details by ID.\");\nconst PaystackFetchStorefront_FetchStorefrontDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique storefront identifier\"),\n name: z.string().describe(\"Name of the storefront\"),\n slug: z.string().describe(\"Unique slug to access the storefront\"),\n domain: z.string().describe(\"Domain where the storefront is accessible\"),\n status: z.string().describe(\"Status of the storefront\"),\n contacts: z.array(z.object({})).describe(\"Contact information\").nullable().optional(),\n currency: z.string().describe(\"Currency for product prices\"),\n metadata: z.object({}).describe(\"Additional metadata for the storefront\").nullable().optional(),\n products: z.array(z.object({})).describe(\"Products in the storefront\").nullable().optional(),\n createdAt: z.string().describe(\"Timestamp when the storefront was created\"),\n shippable: z.boolean().describe(\"Whether the storefront supports shipping\"),\n updatedAt: z.string().describe(\"Timestamp when the storefront was last updated\"),\n description: z.string().describe(\"Description of the storefront\").nullable().optional(),\n integration: z.number().int().describe(\"Integration ID\"),\n redirect_url: z.string().describe(\"URL to redirect after successful purchase\").nullable().optional(),\n social_media: z.array(z.object({})).describe(\"Social media links\").nullable().optional(),\n delivery_note: z.string().describe(\"Delivery note for the storefront\"),\n shipping_fees: z.array(z.object({})).describe(\"Shipping fee configurations\").nullable().optional(),\n success_message: z.string().describe(\"Success message after purchase\").nullable().optional(),\n welcome_message: z.string().describe(\"Welcome message for the storefront\").nullable().optional(),\n background_color: z.string().describe(\"Background color of the storefront\"),\n digital_product_expiry: z.number().int().describe(\"Expiry time for digital products in seconds\").nullable().optional(),\n}).describe(\"Storefront details returned by the API.\");\nconst PaystackFetchStorefront_FetchStorefrontMetaSchema: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Current page number\"),\n total: z.number().int().describe(\"Total items\"),\n perPage: z.number().int().describe(\"Items per page\"),\n skipped: z.number().int().describe(\"Number of items skipped\"),\n pageCount: z.number().int().describe(\"Total number of pages\"),\n product_count: z.number().int().describe(\"Number of products in the storefront\"),\n}).describe(\"Metadata for the storefront fetch response.\");\nexport const PaystackFetchStorefrontOutput: z.ZodTypeAny = z.object({\n data: PaystackFetchStorefront_FetchStorefrontDataSchema.nullable(),\n meta: PaystackFetchStorefront_FetchStorefrontMetaSchema.nullable(),\n status: z.boolean().describe(\"Indicates if the request was successful\"),\n message: z.string().describe(\"Response message from the API\"),\n}).describe(\"Response containing storefront details.\");\n\nexport const paystackFetchStorefront = action(\"PAYSTACK_FETCH_STOREFRONT\", {\n slug: \"paystack-fetch-storefront\",\n name: \"Fetch Storefront\",\n description: \"Tool to get the details of a previously created Storefront. Use when you need to retrieve information about a specific storefront including its products, contacts, and configuration.\",\n input: PaystackFetchStorefrontInput,\n output: PaystackFetchStorefrontOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6CA,IAAAA,EAAE,OAAO,EACjE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,EAClF,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAM,oDAAkEA,IAAAA,EAAE,O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6C;AACzD,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,MAAM,kDAAkD,SAAS;CACjE,MAAM,kDAAkD,SAAS;CACjE,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yCAAyC;CACtE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;AAC9D,CAAC,CAAC,CAAC,SAAS,yCAAyC;AAErD,MAAa,0BAA0BC,eAAAA,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/fetch-storefront.d.ts
|
|
4
|
+
declare const PaystackFetchStorefrontInput: z.ZodTypeAny;
|
|
5
|
+
declare const PaystackFetchStorefrontOutput: z.ZodTypeAny;
|
|
6
|
+
declare const paystackFetchStorefront: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { paystackFetchStorefront };
|
|
9
|
+
//# sourceMappingURL=fetch-storefront.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetch-storefront.d.cts","names":[],"sources":["../../src/actions/fetch-storefront.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAEY;AAAA,cAiC5C,6BAAA,EAA+B,CAAA,CAAE,UAKQ;AAAA,cAEzC,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/fetch-storefront.d.ts
|
|
4
|
+
declare const PaystackFetchStorefrontInput: z.ZodTypeAny;
|
|
5
|
+
declare const PaystackFetchStorefrontOutput: z.ZodTypeAny;
|
|
6
|
+
declare const paystackFetchStorefront: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { paystackFetchStorefront };
|
|
9
|
+
//# sourceMappingURL=fetch-storefront.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetch-storefront.d.mts","names":[],"sources":["../../src/actions/fetch-storefront.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAEY;AAAA,cAiC5C,6BAAA,EAA+B,CAAA,CAAE,UAKQ;AAAA,cAEzC,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/fetch-storefront.ts
|
|
4
|
+
const PaystackFetchStorefrontInput = z.object({ id: z.number().int().describe("The unique identifier of the Storefront to fetch") }).describe("Request to fetch storefront details by ID.");
|
|
5
|
+
const PaystackFetchStorefront_FetchStorefrontDataSchema = z.object({
|
|
6
|
+
id: z.string().describe("Unique storefront identifier"),
|
|
7
|
+
name: z.string().describe("Name of the storefront"),
|
|
8
|
+
slug: z.string().describe("Unique slug to access the storefront"),
|
|
9
|
+
domain: z.string().describe("Domain where the storefront is accessible"),
|
|
10
|
+
status: z.string().describe("Status of the storefront"),
|
|
11
|
+
contacts: z.array(z.object({})).describe("Contact information").nullable().optional(),
|
|
12
|
+
currency: z.string().describe("Currency for product prices"),
|
|
13
|
+
metadata: z.object({}).describe("Additional metadata for the storefront").nullable().optional(),
|
|
14
|
+
products: z.array(z.object({})).describe("Products in the storefront").nullable().optional(),
|
|
15
|
+
createdAt: z.string().describe("Timestamp when the storefront was created"),
|
|
16
|
+
shippable: z.boolean().describe("Whether the storefront supports shipping"),
|
|
17
|
+
updatedAt: z.string().describe("Timestamp when the storefront was last updated"),
|
|
18
|
+
description: z.string().describe("Description of the storefront").nullable().optional(),
|
|
19
|
+
integration: z.number().int().describe("Integration ID"),
|
|
20
|
+
redirect_url: z.string().describe("URL to redirect after successful purchase").nullable().optional(),
|
|
21
|
+
social_media: z.array(z.object({})).describe("Social media links").nullable().optional(),
|
|
22
|
+
delivery_note: z.string().describe("Delivery note for the storefront"),
|
|
23
|
+
shipping_fees: z.array(z.object({})).describe("Shipping fee configurations").nullable().optional(),
|
|
24
|
+
success_message: z.string().describe("Success message after purchase").nullable().optional(),
|
|
25
|
+
welcome_message: z.string().describe("Welcome message for the storefront").nullable().optional(),
|
|
26
|
+
background_color: z.string().describe("Background color of the storefront"),
|
|
27
|
+
digital_product_expiry: z.number().int().describe("Expiry time for digital products in seconds").nullable().optional()
|
|
28
|
+
}).describe("Storefront details returned by the API.");
|
|
29
|
+
const PaystackFetchStorefront_FetchStorefrontMetaSchema = z.object({
|
|
30
|
+
page: z.number().int().describe("Current page number"),
|
|
31
|
+
total: z.number().int().describe("Total items"),
|
|
32
|
+
perPage: z.number().int().describe("Items per page"),
|
|
33
|
+
skipped: z.number().int().describe("Number of items skipped"),
|
|
34
|
+
pageCount: z.number().int().describe("Total number of pages"),
|
|
35
|
+
product_count: z.number().int().describe("Number of products in the storefront")
|
|
36
|
+
}).describe("Metadata for the storefront fetch response.");
|
|
37
|
+
const paystackFetchStorefront = action("PAYSTACK_FETCH_STOREFRONT", {
|
|
38
|
+
slug: "paystack-fetch-storefront",
|
|
39
|
+
name: "Fetch Storefront",
|
|
40
|
+
description: "Tool to get the details of a previously created Storefront. Use when you need to retrieve information about a specific storefront including its products, contacts, and configuration.",
|
|
41
|
+
input: PaystackFetchStorefrontInput,
|
|
42
|
+
output: z.object({
|
|
43
|
+
data: PaystackFetchStorefront_FetchStorefrontDataSchema.nullable(),
|
|
44
|
+
meta: PaystackFetchStorefront_FetchStorefrontMetaSchema.nullable(),
|
|
45
|
+
status: z.boolean().describe("Indicates if the request was successful"),
|
|
46
|
+
message: z.string().describe("Response message from the API")
|
|
47
|
+
}).describe("Response containing storefront details.")
|
|
48
|
+
});
|
|
49
|
+
//#endregion
|
|
50
|
+
export { paystackFetchStorefront };
|
|
51
|
+
|
|
52
|
+
//# sourceMappingURL=fetch-storefront.mjs.map
|