@keystrokehq/paystack 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/add-products-to-page.cjs +3 -3
- package/dist/actions/add-products-to-page.cjs.map +1 -1
- package/dist/actions/add-products-to-page.d.cts +3 -3
- package/dist/actions/add-products-to-page.d.mts +3 -3
- package/dist/actions/add-products-to-page.mjs +3 -3
- package/dist/actions/add-products-to-page.mjs.map +1 -1
- package/dist/actions/add-products-to-storefront.cjs +1 -1
- package/dist/actions/add-products-to-storefront.cjs.map +1 -1
- package/dist/actions/add-products-to-storefront.d.cts +1 -1
- package/dist/actions/add-products-to-storefront.d.mts +1 -1
- package/dist/actions/add-products-to-storefront.mjs +1 -1
- package/dist/actions/add-products-to-storefront.mjs.map +1 -1
- package/dist/actions/add-split-code-to-virtual-terminal.cjs +3 -3
- package/dist/actions/add-split-code-to-virtual-terminal.cjs.map +1 -1
- package/dist/actions/add-split-code-to-virtual-terminal.d.cts +3 -3
- package/dist/actions/add-split-code-to-virtual-terminal.d.mts +3 -3
- package/dist/actions/add-split-code-to-virtual-terminal.mjs +3 -3
- package/dist/actions/add-split-code-to-virtual-terminal.mjs.map +1 -1
- package/dist/actions/add-subaccount-to-split.cjs +3 -3
- package/dist/actions/add-subaccount-to-split.cjs.map +1 -1
- package/dist/actions/add-subaccount-to-split.d.cts +3 -3
- package/dist/actions/add-subaccount-to-split.d.mts +3 -3
- package/dist/actions/add-subaccount-to-split.mjs +3 -3
- package/dist/actions/add-subaccount-to-split.mjs.map +1 -1
- package/dist/actions/archive-payment-request.cjs +1 -1
- package/dist/actions/archive-payment-request.cjs.map +1 -1
- package/dist/actions/archive-payment-request.d.cts +1 -1
- package/dist/actions/archive-payment-request.d.mts +1 -1
- package/dist/actions/archive-payment-request.mjs +1 -1
- package/dist/actions/archive-payment-request.mjs.map +1 -1
- package/dist/actions/assign-destination-to-virtual-terminal.cjs +3 -3
- package/dist/actions/assign-destination-to-virtual-terminal.cjs.map +1 -1
- package/dist/actions/assign-destination-to-virtual-terminal.d.cts +4 -3
- package/dist/actions/assign-destination-to-virtual-terminal.d.mts +4 -3
- package/dist/actions/assign-destination-to-virtual-terminal.mjs +3 -3
- package/dist/actions/assign-destination-to-virtual-terminal.mjs.map +1 -1
- package/dist/actions/check-pending-charge.cjs +5 -5
- package/dist/actions/check-pending-charge.cjs.map +1 -1
- package/dist/actions/check-pending-charge.d.cts +5 -5
- package/dist/actions/check-pending-charge.d.mts +5 -5
- package/dist/actions/check-pending-charge.mjs +5 -5
- package/dist/actions/check-pending-charge.mjs.map +1 -1
- package/dist/actions/check-slug-availability.cjs +1 -1
- package/dist/actions/check-slug-availability.cjs.map +1 -1
- package/dist/actions/check-slug-availability.d.cts +1 -1
- package/dist/actions/check-slug-availability.d.mts +1 -1
- package/dist/actions/check-slug-availability.mjs +1 -1
- package/dist/actions/check-slug-availability.mjs.map +1 -1
- package/dist/actions/create-bulk-transfer-recipient.cjs +5 -5
- package/dist/actions/create-bulk-transfer-recipient.cjs.map +1 -1
- package/dist/actions/create-bulk-transfer-recipient.d.cts +6 -5
- package/dist/actions/create-bulk-transfer-recipient.d.cts.map +1 -1
- package/dist/actions/create-bulk-transfer-recipient.d.mts +6 -5
- package/dist/actions/create-bulk-transfer-recipient.d.mts.map +1 -1
- package/dist/actions/create-bulk-transfer-recipient.mjs +5 -5
- package/dist/actions/create-bulk-transfer-recipient.mjs.map +1 -1
- package/dist/actions/create-charge.cjs +8 -8
- package/dist/actions/create-charge.cjs.map +1 -1
- package/dist/actions/create-charge.d.cts +8 -8
- package/dist/actions/create-charge.d.mts +8 -8
- package/dist/actions/create-charge.mjs +8 -8
- package/dist/actions/create-charge.mjs.map +1 -1
- package/dist/actions/create-customer.cjs +2 -2
- package/dist/actions/create-customer.cjs.map +1 -1
- package/dist/actions/create-customer.d.cts +2 -2
- package/dist/actions/create-customer.d.mts +2 -2
- package/dist/actions/create-customer.mjs +2 -2
- package/dist/actions/create-customer.mjs.map +1 -1
- package/dist/actions/create-payment-page.cjs +2 -2
- package/dist/actions/create-payment-page.cjs.map +1 -1
- package/dist/actions/create-payment-page.d.cts +4 -4
- package/dist/actions/create-payment-page.d.mts +4 -4
- package/dist/actions/create-payment-page.mjs +2 -2
- package/dist/actions/create-payment-page.mjs.map +1 -1
- package/dist/actions/create-payment-request.cjs +4 -4
- package/dist/actions/create-payment-request.cjs.map +1 -1
- package/dist/actions/create-payment-request.d.cts +6 -4
- package/dist/actions/create-payment-request.d.mts +6 -4
- package/dist/actions/create-payment-request.mjs +4 -4
- package/dist/actions/create-payment-request.mjs.map +1 -1
- package/dist/actions/create-plan.cjs +2 -2
- package/dist/actions/create-plan.cjs.map +1 -1
- package/dist/actions/create-plan.d.cts +2 -2
- package/dist/actions/create-plan.d.mts +2 -2
- package/dist/actions/create-plan.mjs +2 -2
- package/dist/actions/create-plan.mjs.map +1 -1
- package/dist/actions/create-refund.cjs +11 -11
- package/dist/actions/create-refund.cjs.map +1 -1
- package/dist/actions/create-refund.d.cts +13 -13
- package/dist/actions/create-refund.d.mts +13 -13
- package/dist/actions/create-refund.mjs +11 -11
- package/dist/actions/create-refund.mjs.map +1 -1
- package/dist/actions/create-split.cjs +4 -4
- package/dist/actions/create-split.cjs.map +1 -1
- package/dist/actions/create-split.d.cts +7 -6
- package/dist/actions/create-split.d.mts +7 -6
- package/dist/actions/create-split.mjs +4 -4
- package/dist/actions/create-split.mjs.map +1 -1
- package/dist/actions/create-storefront.cjs +7 -7
- package/dist/actions/create-storefront.cjs.map +1 -1
- package/dist/actions/create-storefront.d.cts +9 -9
- package/dist/actions/create-storefront.d.mts +9 -9
- package/dist/actions/create-storefront.mjs +7 -7
- package/dist/actions/create-storefront.mjs.map +1 -1
- package/dist/actions/create-subaccount.cjs +2 -2
- package/dist/actions/create-subaccount.cjs.map +1 -1
- package/dist/actions/create-subaccount.d.cts +2 -2
- package/dist/actions/create-subaccount.d.mts +2 -2
- package/dist/actions/create-subaccount.mjs +2 -2
- package/dist/actions/create-subaccount.mjs.map +1 -1
- package/dist/actions/create-transfer-recipient.cjs +3 -3
- package/dist/actions/create-transfer-recipient.cjs.map +1 -1
- package/dist/actions/create-transfer-recipient.d.cts +3 -3
- package/dist/actions/create-transfer-recipient.d.mts +3 -3
- package/dist/actions/create-transfer-recipient.mjs +3 -3
- package/dist/actions/create-transfer-recipient.mjs.map +1 -1
- package/dist/actions/create-virtual-terminal.cjs +7 -7
- package/dist/actions/create-virtual-terminal.cjs.map +1 -1
- package/dist/actions/create-virtual-terminal.d.cts +9 -8
- package/dist/actions/create-virtual-terminal.d.cts.map +1 -1
- package/dist/actions/create-virtual-terminal.d.mts +9 -8
- package/dist/actions/create-virtual-terminal.d.mts.map +1 -1
- package/dist/actions/create-virtual-terminal.mjs +7 -7
- package/dist/actions/create-virtual-terminal.mjs.map +1 -1
- package/dist/actions/deactivate-authorization.cjs +1 -1
- package/dist/actions/deactivate-authorization.cjs.map +1 -1
- package/dist/actions/deactivate-authorization.d.cts +1 -1
- package/dist/actions/deactivate-authorization.d.mts +1 -1
- package/dist/actions/deactivate-authorization.mjs +1 -1
- package/dist/actions/deactivate-authorization.mjs.map +1 -1
- package/dist/actions/deactivate-virtual-terminal.cjs +1 -1
- package/dist/actions/deactivate-virtual-terminal.cjs.map +1 -1
- package/dist/actions/deactivate-virtual-terminal.d.cts +1 -1
- package/dist/actions/deactivate-virtual-terminal.d.mts +1 -1
- package/dist/actions/deactivate-virtual-terminal.mjs +1 -1
- package/dist/actions/deactivate-virtual-terminal.mjs.map +1 -1
- package/dist/actions/delete-product.cjs +1 -1
- package/dist/actions/delete-product.cjs.map +1 -1
- package/dist/actions/delete-product.d.cts +1 -1
- package/dist/actions/delete-product.d.mts +1 -1
- package/dist/actions/delete-product.mjs +1 -1
- package/dist/actions/delete-product.mjs.map +1 -1
- package/dist/actions/delete-storefront.cjs +1 -1
- package/dist/actions/delete-storefront.cjs.map +1 -1
- package/dist/actions/delete-storefront.d.cts +1 -1
- package/dist/actions/delete-storefront.d.mts +1 -1
- package/dist/actions/delete-storefront.mjs +1 -1
- package/dist/actions/delete-storefront.mjs.map +1 -1
- package/dist/actions/delete-transfer-recipient.cjs +1 -1
- package/dist/actions/delete-transfer-recipient.cjs.map +1 -1
- package/dist/actions/delete-transfer-recipient.d.cts +1 -1
- package/dist/actions/delete-transfer-recipient.d.mts +1 -1
- package/dist/actions/delete-transfer-recipient.mjs +1 -1
- package/dist/actions/delete-transfer-recipient.mjs.map +1 -1
- package/dist/actions/disable-otp-for-transfers.cjs +1 -1
- package/dist/actions/disable-otp-for-transfers.cjs.map +1 -1
- package/dist/actions/disable-otp-for-transfers.d.cts +1 -1
- package/dist/actions/disable-otp-for-transfers.d.mts +1 -1
- package/dist/actions/disable-otp-for-transfers.mjs +1 -1
- package/dist/actions/disable-otp-for-transfers.mjs.map +1 -1
- package/dist/actions/disable-subscription.cjs +2 -2
- package/dist/actions/disable-subscription.cjs.map +1 -1
- package/dist/actions/disable-subscription.d.cts +2 -2
- package/dist/actions/disable-subscription.d.mts +2 -2
- package/dist/actions/disable-subscription.mjs +2 -2
- package/dist/actions/disable-subscription.mjs.map +1 -1
- package/dist/actions/duplicate-storefront.cjs +2 -2
- package/dist/actions/duplicate-storefront.cjs.map +1 -1
- package/dist/actions/duplicate-storefront.d.cts +2 -2
- package/dist/actions/duplicate-storefront.d.mts +2 -2
- package/dist/actions/duplicate-storefront.mjs +2 -2
- package/dist/actions/duplicate-storefront.mjs.map +1 -1
- package/dist/actions/enable-otp-requirement-for-transfers.cjs +1 -1
- package/dist/actions/enable-otp-requirement-for-transfers.cjs.map +1 -1
- package/dist/actions/enable-otp-requirement-for-transfers.d.cts +1 -1
- package/dist/actions/enable-otp-requirement-for-transfers.d.mts +1 -1
- package/dist/actions/enable-otp-requirement-for-transfers.mjs +1 -1
- package/dist/actions/enable-otp-requirement-for-transfers.mjs.map +1 -1
- package/dist/actions/export-transactions.cjs +2 -2
- package/dist/actions/export-transactions.cjs.map +1 -1
- package/dist/actions/export-transactions.d.cts +2 -2
- package/dist/actions/export-transactions.d.mts +2 -2
- package/dist/actions/export-transactions.mjs +2 -2
- package/dist/actions/export-transactions.mjs.map +1 -1
- package/dist/actions/fetch-balance-ledger.cjs +3 -3
- package/dist/actions/fetch-balance-ledger.cjs.map +1 -1
- package/dist/actions/fetch-balance-ledger.d.cts +3 -3
- package/dist/actions/fetch-balance-ledger.d.mts +3 -3
- package/dist/actions/fetch-balance-ledger.mjs +3 -3
- package/dist/actions/fetch-balance-ledger.mjs.map +1 -1
- package/dist/actions/fetch-balance.cjs +2 -2
- package/dist/actions/fetch-balance.cjs.map +1 -1
- package/dist/actions/fetch-balance.d.cts +2 -2
- package/dist/actions/fetch-balance.d.mts +2 -2
- package/dist/actions/fetch-balance.mjs +2 -2
- package/dist/actions/fetch-balance.mjs.map +1 -1
- package/dist/actions/fetch-bulk-charge-batch.cjs +2 -2
- package/dist/actions/fetch-bulk-charge-batch.cjs.map +1 -1
- package/dist/actions/fetch-bulk-charge-batch.d.cts +2 -2
- package/dist/actions/fetch-bulk-charge-batch.d.mts +2 -2
- package/dist/actions/fetch-bulk-charge-batch.mjs +2 -2
- package/dist/actions/fetch-bulk-charge-batch.mjs.map +1 -1
- package/dist/actions/fetch-customer.cjs +9 -9
- package/dist/actions/fetch-customer.cjs.map +1 -1
- package/dist/actions/fetch-customer.d.cts +10 -10
- package/dist/actions/fetch-customer.d.mts +10 -10
- package/dist/actions/fetch-customer.mjs +9 -9
- package/dist/actions/fetch-customer.mjs.map +1 -1
- package/dist/actions/fetch-mandate-authorizations.cjs +5 -5
- package/dist/actions/fetch-mandate-authorizations.cjs.map +1 -1
- package/dist/actions/fetch-mandate-authorizations.d.cts +5 -5
- package/dist/actions/fetch-mandate-authorizations.d.mts +5 -5
- package/dist/actions/fetch-mandate-authorizations.mjs +5 -5
- package/dist/actions/fetch-mandate-authorizations.mjs.map +1 -1
- package/dist/actions/fetch-payment-page.cjs +2 -2
- package/dist/actions/fetch-payment-page.cjs.map +1 -1
- package/dist/actions/fetch-payment-page.d.cts +2 -2
- package/dist/actions/fetch-payment-page.d.mts +2 -2
- package/dist/actions/fetch-payment-page.mjs +2 -2
- package/dist/actions/fetch-payment-page.mjs.map +1 -1
- package/dist/actions/fetch-payment-request.cjs +7 -7
- package/dist/actions/fetch-payment-request.cjs.map +1 -1
- package/dist/actions/fetch-payment-request.d.cts +7 -7
- package/dist/actions/fetch-payment-request.d.mts +7 -7
- package/dist/actions/fetch-payment-request.mjs +7 -7
- package/dist/actions/fetch-payment-request.mjs.map +1 -1
- package/dist/actions/fetch-payment-session-timeout.cjs +2 -2
- package/dist/actions/fetch-payment-session-timeout.cjs.map +1 -1
- package/dist/actions/fetch-payment-session-timeout.d.cts +2 -2
- package/dist/actions/fetch-payment-session-timeout.d.mts +2 -2
- package/dist/actions/fetch-payment-session-timeout.mjs +2 -2
- package/dist/actions/fetch-payment-session-timeout.mjs.map +1 -1
- package/dist/actions/fetch-plan.cjs +5 -5
- package/dist/actions/fetch-plan.cjs.map +1 -1
- package/dist/actions/fetch-plan.d.cts +5 -5
- package/dist/actions/fetch-plan.d.mts +5 -5
- package/dist/actions/fetch-plan.mjs +5 -5
- package/dist/actions/fetch-plan.mjs.map +1 -1
- package/dist/actions/fetch-product-orders.cjs +11 -11
- package/dist/actions/fetch-product-orders.cjs.map +1 -1
- package/dist/actions/fetch-product-orders.d.cts +11 -11
- package/dist/actions/fetch-product-orders.d.mts +11 -11
- package/dist/actions/fetch-product-orders.mjs +11 -11
- package/dist/actions/fetch-product-orders.mjs.map +1 -1
- package/dist/actions/fetch-product.cjs +8 -8
- package/dist/actions/fetch-product.cjs.map +1 -1
- package/dist/actions/fetch-product.d.cts +8 -8
- package/dist/actions/fetch-product.d.mts +8 -8
- package/dist/actions/fetch-product.mjs +8 -8
- package/dist/actions/fetch-product.mjs.map +1 -1
- package/dist/actions/fetch-refund.cjs +3 -3
- package/dist/actions/fetch-refund.cjs.map +1 -1
- package/dist/actions/fetch-refund.d.cts +3 -3
- package/dist/actions/fetch-refund.d.mts +3 -3
- package/dist/actions/fetch-refund.mjs +3 -3
- package/dist/actions/fetch-refund.mjs.map +1 -1
- package/dist/actions/fetch-split.cjs +3 -3
- package/dist/actions/fetch-split.cjs.map +1 -1
- package/dist/actions/fetch-split.d.cts +3 -3
- package/dist/actions/fetch-split.d.mts +3 -3
- package/dist/actions/fetch-split.mjs +3 -3
- package/dist/actions/fetch-split.mjs.map +1 -1
- package/dist/actions/fetch-storefront-orders.cjs +11 -11
- package/dist/actions/fetch-storefront-orders.cjs.map +1 -1
- package/dist/actions/fetch-storefront-orders.d.cts +11 -11
- package/dist/actions/fetch-storefront-orders.d.mts +11 -11
- package/dist/actions/fetch-storefront-orders.mjs +11 -11
- package/dist/actions/fetch-storefront-orders.mjs.map +1 -1
- package/dist/actions/fetch-storefront.cjs +8 -8
- package/dist/actions/fetch-storefront.cjs.map +1 -1
- package/dist/actions/fetch-storefront.d.cts +8 -8
- package/dist/actions/fetch-storefront.d.mts +8 -8
- package/dist/actions/fetch-storefront.mjs +8 -8
- package/dist/actions/fetch-storefront.mjs.map +1 -1
- package/dist/actions/fetch-subaccount.cjs +2 -2
- package/dist/actions/fetch-subaccount.cjs.map +1 -1
- package/dist/actions/fetch-subaccount.d.cts +2 -2
- package/dist/actions/fetch-subaccount.d.mts +2 -2
- package/dist/actions/fetch-subaccount.mjs +2 -2
- package/dist/actions/fetch-subaccount.mjs.map +1 -1
- package/dist/actions/fetch-subscription.cjs +13 -13
- package/dist/actions/fetch-subscription.cjs.map +1 -1
- package/dist/actions/fetch-subscription.d.cts +13 -13
- package/dist/actions/fetch-subscription.d.mts +13 -13
- package/dist/actions/fetch-subscription.mjs +13 -13
- package/dist/actions/fetch-subscription.mjs.map +1 -1
- package/dist/actions/fetch-transaction-timeline.cjs +4 -4
- package/dist/actions/fetch-transaction-timeline.cjs.map +1 -1
- package/dist/actions/fetch-transaction-timeline.d.cts +4 -4
- package/dist/actions/fetch-transaction-timeline.d.mts +4 -4
- package/dist/actions/fetch-transaction-timeline.mjs +4 -4
- package/dist/actions/fetch-transaction-timeline.mjs.map +1 -1
- package/dist/actions/fetch-transaction.cjs +16 -16
- package/dist/actions/fetch-transaction.cjs.map +1 -1
- package/dist/actions/fetch-transaction.d.cts +17 -17
- package/dist/actions/fetch-transaction.d.mts +17 -17
- package/dist/actions/fetch-transaction.mjs +16 -16
- package/dist/actions/fetch-transaction.mjs.map +1 -1
- package/dist/actions/fetch-transfer-recipient.cjs +3 -3
- package/dist/actions/fetch-transfer-recipient.cjs.map +1 -1
- package/dist/actions/fetch-transfer-recipient.d.cts +3 -3
- package/dist/actions/fetch-transfer-recipient.d.mts +3 -3
- package/dist/actions/fetch-transfer-recipient.mjs +3 -3
- package/dist/actions/fetch-transfer-recipient.mjs.map +1 -1
- package/dist/actions/fetch-virtual-terminal.cjs +4 -4
- package/dist/actions/fetch-virtual-terminal.cjs.map +1 -1
- package/dist/actions/fetch-virtual-terminal.d.cts +4 -4
- package/dist/actions/fetch-virtual-terminal.d.mts +4 -4
- package/dist/actions/fetch-virtual-terminal.mjs +4 -4
- package/dist/actions/fetch-virtual-terminal.mjs.map +1 -1
- package/dist/actions/finalize-payment-request.cjs +7 -7
- package/dist/actions/finalize-payment-request.cjs.map +1 -1
- package/dist/actions/finalize-payment-request.d.cts +7 -7
- package/dist/actions/finalize-payment-request.d.mts +7 -7
- package/dist/actions/finalize-payment-request.mjs +7 -7
- package/dist/actions/finalize-payment-request.mjs.map +1 -1
- package/dist/actions/generate-update-subscription-link.cjs +2 -2
- package/dist/actions/generate-update-subscription-link.cjs.map +1 -1
- package/dist/actions/generate-update-subscription-link.d.cts +2 -2
- package/dist/actions/generate-update-subscription-link.d.mts +2 -2
- package/dist/actions/generate-update-subscription-link.mjs +2 -2
- package/dist/actions/generate-update-subscription-link.mjs.map +1 -1
- package/dist/actions/get-payment-request-totals.cjs +3 -3
- package/dist/actions/get-payment-request-totals.cjs.map +1 -1
- package/dist/actions/get-payment-request-totals.d.cts +5 -5
- package/dist/actions/get-payment-request-totals.d.mts +5 -5
- package/dist/actions/get-payment-request-totals.mjs +3 -3
- package/dist/actions/get-payment-request-totals.mjs.map +1 -1
- package/dist/actions/get-transaction-totals.cjs +3 -3
- package/dist/actions/get-transaction-totals.cjs.map +1 -1
- package/dist/actions/get-transaction-totals.d.cts +4 -4
- package/dist/actions/get-transaction-totals.d.mts +4 -4
- package/dist/actions/get-transaction-totals.mjs +3 -3
- package/dist/actions/get-transaction-totals.mjs.map +1 -1
- package/dist/actions/initialize-authorization.cjs +2 -2
- package/dist/actions/initialize-authorization.cjs.map +1 -1
- package/dist/actions/initialize-authorization.d.cts +2 -2
- package/dist/actions/initialize-authorization.d.mts +2 -2
- package/dist/actions/initialize-authorization.mjs +2 -2
- package/dist/actions/initialize-authorization.mjs.map +1 -1
- package/dist/actions/initialize-transaction.cjs +3 -3
- package/dist/actions/initialize-transaction.cjs.map +1 -1
- package/dist/actions/initialize-transaction.d.cts +8 -7
- package/dist/actions/initialize-transaction.d.cts.map +1 -1
- package/dist/actions/initialize-transaction.d.mts +8 -7
- package/dist/actions/initialize-transaction.d.mts.map +1 -1
- package/dist/actions/initialize-transaction.mjs +3 -3
- package/dist/actions/initialize-transaction.mjs.map +1 -1
- package/dist/actions/initiate-bulk-charge.cjs +3 -3
- package/dist/actions/initiate-bulk-charge.cjs.map +1 -1
- package/dist/actions/initiate-bulk-charge.d.cts +4 -3
- package/dist/actions/initiate-bulk-charge.d.cts.map +1 -1
- package/dist/actions/initiate-bulk-charge.d.mts +4 -3
- package/dist/actions/initiate-bulk-charge.d.mts.map +1 -1
- package/dist/actions/initiate-bulk-charge.mjs +3 -3
- package/dist/actions/initiate-bulk-charge.mjs.map +1 -1
- package/dist/actions/list-banks.cjs +3 -3
- package/dist/actions/list-banks.cjs.map +1 -1
- package/dist/actions/list-banks.d.cts +3 -3
- package/dist/actions/list-banks.d.mts +3 -3
- package/dist/actions/list-banks.mjs +3 -3
- package/dist/actions/list-banks.mjs.map +1 -1
- package/dist/actions/list-bulk-charge-batches.cjs +4 -4
- package/dist/actions/list-bulk-charge-batches.cjs.map +1 -1
- package/dist/actions/list-bulk-charge-batches.d.cts +4 -4
- package/dist/actions/list-bulk-charge-batches.d.mts +4 -4
- package/dist/actions/list-bulk-charge-batches.mjs +4 -4
- package/dist/actions/list-bulk-charge-batches.mjs.map +1 -1
- package/dist/actions/list-charges-in-batch.cjs +8 -8
- package/dist/actions/list-charges-in-batch.cjs.map +1 -1
- package/dist/actions/list-charges-in-batch.d.cts +8 -8
- package/dist/actions/list-charges-in-batch.d.mts +8 -8
- package/dist/actions/list-charges-in-batch.mjs +8 -8
- package/dist/actions/list-charges-in-batch.mjs.map +1 -1
- package/dist/actions/list-countries.cjs +2 -2
- package/dist/actions/list-countries.cjs.map +1 -1
- package/dist/actions/list-countries.d.cts +2 -2
- package/dist/actions/list-countries.d.mts +2 -2
- package/dist/actions/list-countries.mjs +2 -2
- package/dist/actions/list-countries.mjs.map +1 -1
- package/dist/actions/list-customers.cjs +3 -3
- package/dist/actions/list-customers.cjs.map +1 -1
- package/dist/actions/list-customers.d.cts +3 -3
- package/dist/actions/list-customers.d.mts +3 -3
- package/dist/actions/list-customers.mjs +3 -3
- package/dist/actions/list-customers.mjs.map +1 -1
- package/dist/actions/list-disputes.cjs +18 -18
- package/dist/actions/list-disputes.cjs.map +1 -1
- package/dist/actions/list-disputes.d.cts +16 -16
- package/dist/actions/list-disputes.d.mts +16 -16
- package/dist/actions/list-disputes.mjs +18 -18
- package/dist/actions/list-disputes.mjs.map +1 -1
- package/dist/actions/list-domains.cjs +2 -2
- package/dist/actions/list-domains.cjs.map +1 -1
- package/dist/actions/list-domains.d.cts +2 -2
- package/dist/actions/list-domains.d.mts +2 -2
- package/dist/actions/list-domains.mjs +2 -2
- package/dist/actions/list-domains.mjs.map +1 -1
- package/dist/actions/list-mandate-authorizations.cjs +5 -5
- package/dist/actions/list-mandate-authorizations.cjs.map +1 -1
- package/dist/actions/list-mandate-authorizations.d.cts +5 -5
- package/dist/actions/list-mandate-authorizations.d.mts +5 -5
- package/dist/actions/list-mandate-authorizations.mjs +5 -5
- package/dist/actions/list-mandate-authorizations.mjs.map +1 -1
- package/dist/actions/list-orders.cjs +3 -3
- package/dist/actions/list-orders.cjs.map +1 -1
- package/dist/actions/list-orders.d.cts +3 -3
- package/dist/actions/list-orders.d.mts +3 -3
- package/dist/actions/list-orders.mjs +3 -3
- package/dist/actions/list-orders.mjs.map +1 -1
- package/dist/actions/list-payment-pages.cjs +3 -3
- package/dist/actions/list-payment-pages.cjs.map +1 -1
- package/dist/actions/list-payment-pages.d.cts +3 -3
- package/dist/actions/list-payment-pages.d.mts +3 -3
- package/dist/actions/list-payment-pages.mjs +3 -3
- package/dist/actions/list-payment-pages.mjs.map +1 -1
- package/dist/actions/list-payment-requests.cjs +8 -8
- package/dist/actions/list-payment-requests.cjs.map +1 -1
- package/dist/actions/list-payment-requests.d.cts +8 -8
- package/dist/actions/list-payment-requests.d.mts +8 -8
- package/dist/actions/list-payment-requests.mjs +8 -8
- package/dist/actions/list-payment-requests.mjs.map +1 -1
- package/dist/actions/list-plans.cjs +5 -5
- package/dist/actions/list-plans.cjs.map +1 -1
- package/dist/actions/list-plans.d.cts +5 -5
- package/dist/actions/list-plans.d.mts +5 -5
- package/dist/actions/list-plans.mjs +5 -5
- package/dist/actions/list-plans.mjs.map +1 -1
- package/dist/actions/list-products.cjs +8 -8
- package/dist/actions/list-products.cjs.map +1 -1
- package/dist/actions/list-products.d.cts +8 -8
- package/dist/actions/list-products.d.mts +8 -8
- package/dist/actions/list-products.mjs +8 -8
- package/dist/actions/list-products.mjs.map +1 -1
- package/dist/actions/list-refunds.cjs +8 -8
- package/dist/actions/list-refunds.cjs.map +1 -1
- package/dist/actions/list-refunds.d.cts +8 -8
- package/dist/actions/list-refunds.d.mts +8 -8
- package/dist/actions/list-refunds.mjs +8 -8
- package/dist/actions/list-refunds.mjs.map +1 -1
- package/dist/actions/list-settlements.cjs +3 -3
- package/dist/actions/list-settlements.cjs.map +1 -1
- package/dist/actions/list-settlements.d.cts +3 -3
- package/dist/actions/list-settlements.d.mts +3 -3
- package/dist/actions/list-settlements.mjs +3 -3
- package/dist/actions/list-settlements.mjs.map +1 -1
- package/dist/actions/list-splits.cjs +4 -4
- package/dist/actions/list-splits.cjs.map +1 -1
- package/dist/actions/list-splits.d.cts +4 -4
- package/dist/actions/list-splits.d.mts +4 -4
- package/dist/actions/list-splits.mjs +4 -4
- package/dist/actions/list-splits.mjs.map +1 -1
- package/dist/actions/list-states-avs.cjs +2 -2
- package/dist/actions/list-states-avs.cjs.map +1 -1
- package/dist/actions/list-states-avs.d.cts +2 -2
- package/dist/actions/list-states-avs.d.mts +2 -2
- package/dist/actions/list-states-avs.mjs +2 -2
- package/dist/actions/list-states-avs.mjs.map +1 -1
- package/dist/actions/list-storefront-products.cjs +8 -8
- package/dist/actions/list-storefront-products.cjs.map +1 -1
- package/dist/actions/list-storefront-products.d.cts +8 -8
- package/dist/actions/list-storefront-products.d.mts +8 -8
- package/dist/actions/list-storefront-products.mjs +8 -8
- package/dist/actions/list-storefront-products.mjs.map +1 -1
- package/dist/actions/list-storefronts.cjs +8 -8
- package/dist/actions/list-storefronts.cjs.map +1 -1
- package/dist/actions/list-storefronts.d.cts +8 -8
- package/dist/actions/list-storefronts.d.mts +8 -8
- package/dist/actions/list-storefronts.mjs +8 -8
- package/dist/actions/list-storefronts.mjs.map +1 -1
- package/dist/actions/list-subaccounts.cjs +3 -3
- package/dist/actions/list-subaccounts.cjs.map +1 -1
- package/dist/actions/list-subaccounts.d.cts +3 -3
- package/dist/actions/list-subaccounts.d.mts +3 -3
- package/dist/actions/list-subaccounts.mjs +3 -3
- package/dist/actions/list-subaccounts.mjs.map +1 -1
- package/dist/actions/list-subscriptions.cjs +12 -12
- package/dist/actions/list-subscriptions.cjs.map +1 -1
- package/dist/actions/list-subscriptions.d.cts +12 -12
- package/dist/actions/list-subscriptions.d.mts +12 -12
- package/dist/actions/list-subscriptions.mjs +12 -12
- package/dist/actions/list-subscriptions.mjs.map +1 -1
- package/dist/actions/list-transactions.cjs +17 -17
- package/dist/actions/list-transactions.cjs.map +1 -1
- package/dist/actions/list-transactions.d.cts +17 -17
- package/dist/actions/list-transactions.d.mts +17 -17
- package/dist/actions/list-transactions.mjs +17 -17
- package/dist/actions/list-transactions.mjs.map +1 -1
- package/dist/actions/list-transfer-recipients.cjs +3 -3
- package/dist/actions/list-transfer-recipients.cjs.map +1 -1
- package/dist/actions/list-transfer-recipients.d.cts +3 -3
- package/dist/actions/list-transfer-recipients.d.mts +3 -3
- package/dist/actions/list-transfer-recipients.mjs +3 -3
- package/dist/actions/list-transfer-recipients.mjs.map +1 -1
- package/dist/actions/list-transfers.cjs +4 -4
- package/dist/actions/list-transfers.cjs.map +1 -1
- package/dist/actions/list-transfers.d.cts +4 -4
- package/dist/actions/list-transfers.d.mts +4 -4
- package/dist/actions/list-transfers.mjs +4 -4
- package/dist/actions/list-transfers.mjs.map +1 -1
- package/dist/actions/list-virtual-terminals.cjs +4 -4
- package/dist/actions/list-virtual-terminals.cjs.map +1 -1
- package/dist/actions/list-virtual-terminals.d.cts +4 -4
- package/dist/actions/list-virtual-terminals.d.mts +4 -4
- package/dist/actions/list-virtual-terminals.mjs +4 -4
- package/dist/actions/list-virtual-terminals.mjs.map +1 -1
- package/dist/actions/pause-bulk-charge.cjs +1 -1
- package/dist/actions/pause-bulk-charge.cjs.map +1 -1
- package/dist/actions/pause-bulk-charge.d.cts +1 -1
- package/dist/actions/pause-bulk-charge.d.mts +1 -1
- package/dist/actions/pause-bulk-charge.mjs +1 -1
- package/dist/actions/pause-bulk-charge.mjs.map +1 -1
- package/dist/actions/publish-storefront.cjs +2 -2
- package/dist/actions/publish-storefront.cjs.map +1 -1
- package/dist/actions/publish-storefront.d.cts +2 -2
- package/dist/actions/publish-storefront.d.mts +2 -2
- package/dist/actions/publish-storefront.mjs +2 -2
- package/dist/actions/publish-storefront.mjs.map +1 -1
- package/dist/actions/remove-subaccount-from-split.cjs +1 -1
- package/dist/actions/remove-subaccount-from-split.cjs.map +1 -1
- package/dist/actions/remove-subaccount-from-split.d.cts +1 -1
- package/dist/actions/remove-subaccount-from-split.d.mts +1 -1
- package/dist/actions/remove-subaccount-from-split.mjs +1 -1
- package/dist/actions/remove-subaccount-from-split.mjs.map +1 -1
- package/dist/actions/resend-otp-for-transfer.cjs +1 -1
- package/dist/actions/resend-otp-for-transfer.cjs.map +1 -1
- package/dist/actions/resend-otp-for-transfer.d.cts +1 -1
- package/dist/actions/resend-otp-for-transfer.d.mts +1 -1
- package/dist/actions/resend-otp-for-transfer.mjs +1 -1
- package/dist/actions/resend-otp-for-transfer.mjs.map +1 -1
- package/dist/actions/resolve-card-bin.cjs +2 -2
- package/dist/actions/resolve-card-bin.cjs.map +1 -1
- package/dist/actions/resolve-card-bin.d.cts +2 -2
- package/dist/actions/resolve-card-bin.d.mts +2 -2
- package/dist/actions/resolve-card-bin.mjs +2 -2
- package/dist/actions/resolve-card-bin.mjs.map +1 -1
- package/dist/actions/resume-bulk-charge-batch.cjs +1 -1
- package/dist/actions/resume-bulk-charge-batch.cjs.map +1 -1
- package/dist/actions/resume-bulk-charge-batch.d.cts +1 -1
- package/dist/actions/resume-bulk-charge-batch.d.mts +1 -1
- package/dist/actions/resume-bulk-charge-batch.mjs +1 -1
- package/dist/actions/resume-bulk-charge-batch.mjs.map +1 -1
- package/dist/actions/send-payment-request-notification.cjs +1 -1
- package/dist/actions/send-payment-request-notification.cjs.map +1 -1
- package/dist/actions/send-payment-request-notification.d.cts +1 -1
- package/dist/actions/send-payment-request-notification.d.mts +1 -1
- package/dist/actions/send-payment-request-notification.mjs +1 -1
- package/dist/actions/send-payment-request-notification.mjs.map +1 -1
- package/dist/actions/send-subscription-update-link.cjs +2 -2
- package/dist/actions/send-subscription-update-link.cjs.map +1 -1
- package/dist/actions/send-subscription-update-link.d.cts +2 -2
- package/dist/actions/send-subscription-update-link.d.mts +2 -2
- package/dist/actions/send-subscription-update-link.mjs +2 -2
- package/dist/actions/send-subscription-update-link.mjs.map +1 -1
- package/dist/actions/set-risk-action.cjs +5 -5
- package/dist/actions/set-risk-action.cjs.map +1 -1
- package/dist/actions/set-risk-action.d.cts +5 -5
- package/dist/actions/set-risk-action.d.mts +5 -5
- package/dist/actions/set-risk-action.mjs +5 -5
- package/dist/actions/set-risk-action.mjs.map +1 -1
- package/dist/actions/submit-phone.cjs +5 -5
- package/dist/actions/submit-phone.cjs.map +1 -1
- package/dist/actions/submit-phone.d.cts +5 -5
- package/dist/actions/submit-phone.d.mts +5 -5
- package/dist/actions/submit-phone.mjs +5 -5
- package/dist/actions/submit-phone.mjs.map +1 -1
- package/dist/actions/trigger-direct-debit-activation-charge.cjs +1 -1
- package/dist/actions/trigger-direct-debit-activation-charge.cjs.map +1 -1
- package/dist/actions/trigger-direct-debit-activation-charge.d.cts +1 -1
- package/dist/actions/trigger-direct-debit-activation-charge.d.mts +1 -1
- package/dist/actions/trigger-direct-debit-activation-charge.mjs +1 -1
- package/dist/actions/trigger-direct-debit-activation-charge.mjs.map +1 -1
- package/dist/actions/unassign-destination-from-virtual-terminal.cjs +1 -1
- package/dist/actions/unassign-destination-from-virtual-terminal.cjs.map +1 -1
- package/dist/actions/unassign-destination-from-virtual-terminal.d.cts +1 -1
- package/dist/actions/unassign-destination-from-virtual-terminal.d.mts +1 -1
- package/dist/actions/unassign-destination-from-virtual-terminal.mjs +1 -1
- package/dist/actions/unassign-destination-from-virtual-terminal.mjs.map +1 -1
- package/dist/actions/unregister-apple-pay-domain.cjs +2 -2
- package/dist/actions/unregister-apple-pay-domain.cjs.map +1 -1
- package/dist/actions/unregister-apple-pay-domain.d.cts +2 -2
- package/dist/actions/unregister-apple-pay-domain.d.mts +2 -2
- package/dist/actions/unregister-apple-pay-domain.mjs +2 -2
- package/dist/actions/unregister-apple-pay-domain.mjs.map +1 -1
- package/dist/actions/update-customer.cjs +4 -4
- package/dist/actions/update-customer.cjs.map +1 -1
- package/dist/actions/update-customer.d.cts +4 -4
- package/dist/actions/update-customer.d.mts +4 -4
- package/dist/actions/update-customer.mjs +4 -4
- package/dist/actions/update-customer.mjs.map +1 -1
- package/dist/actions/update-payment-page.cjs +2 -2
- package/dist/actions/update-payment-page.cjs.map +1 -1
- package/dist/actions/update-payment-page.d.cts +2 -2
- package/dist/actions/update-payment-page.d.mts +2 -2
- package/dist/actions/update-payment-page.mjs +2 -2
- package/dist/actions/update-payment-page.mjs.map +1 -1
- package/dist/actions/update-payment-request.cjs +5 -5
- package/dist/actions/update-payment-request.cjs.map +1 -1
- package/dist/actions/update-payment-request.d.cts +7 -5
- package/dist/actions/update-payment-request.d.mts +7 -5
- package/dist/actions/update-payment-request.mjs +5 -5
- package/dist/actions/update-payment-request.mjs.map +1 -1
- package/dist/actions/update-payment-session-timeout.cjs +2 -2
- package/dist/actions/update-payment-session-timeout.cjs.map +1 -1
- package/dist/actions/update-payment-session-timeout.d.cts +2 -2
- package/dist/actions/update-payment-session-timeout.d.mts +2 -2
- package/dist/actions/update-payment-session-timeout.mjs +2 -2
- package/dist/actions/update-payment-session-timeout.mjs.map +1 -1
- package/dist/actions/update-plan.cjs +1 -1
- package/dist/actions/update-plan.cjs.map +1 -1
- package/dist/actions/update-plan.d.cts +1 -1
- package/dist/actions/update-plan.d.mts +1 -1
- package/dist/actions/update-plan.mjs +1 -1
- package/dist/actions/update-plan.mjs.map +1 -1
- package/dist/actions/update-product.cjs +8 -8
- package/dist/actions/update-product.cjs.map +1 -1
- package/dist/actions/update-product.d.cts +9 -9
- package/dist/actions/update-product.d.mts +9 -9
- package/dist/actions/update-product.mjs +8 -8
- package/dist/actions/update-product.mjs.map +1 -1
- package/dist/actions/update-split.cjs +3 -3
- package/dist/actions/update-split.cjs.map +1 -1
- package/dist/actions/update-split.d.cts +3 -3
- package/dist/actions/update-split.d.mts +3 -3
- package/dist/actions/update-split.mjs +3 -3
- package/dist/actions/update-split.mjs.map +1 -1
- package/dist/actions/update-storefront.cjs +1 -1
- package/dist/actions/update-storefront.cjs.map +1 -1
- package/dist/actions/update-storefront.d.cts +1 -1
- package/dist/actions/update-storefront.d.mts +1 -1
- package/dist/actions/update-storefront.mjs +1 -1
- package/dist/actions/update-storefront.mjs.map +1 -1
- package/dist/actions/update-subaccount.cjs +2 -2
- package/dist/actions/update-subaccount.cjs.map +1 -1
- package/dist/actions/update-subaccount.d.cts +2 -2
- package/dist/actions/update-subaccount.d.mts +2 -2
- package/dist/actions/update-subaccount.mjs +2 -2
- package/dist/actions/update-subaccount.mjs.map +1 -1
- package/dist/actions/update-transfer-recipient.cjs +3 -3
- package/dist/actions/update-transfer-recipient.cjs.map +1 -1
- package/dist/actions/update-transfer-recipient.d.cts +3 -3
- package/dist/actions/update-transfer-recipient.d.mts +3 -3
- package/dist/actions/update-transfer-recipient.mjs +3 -3
- package/dist/actions/update-transfer-recipient.mjs.map +1 -1
- package/dist/actions/validate-bank-account.cjs +2 -2
- package/dist/actions/validate-bank-account.cjs.map +1 -1
- package/dist/actions/validate-bank-account.d.cts +2 -2
- package/dist/actions/validate-bank-account.d.mts +2 -2
- package/dist/actions/validate-bank-account.mjs +2 -2
- package/dist/actions/validate-bank-account.mjs.map +1 -1
- package/dist/actions/validate-customer.cjs +1 -1
- package/dist/actions/validate-customer.cjs.map +1 -1
- package/dist/actions/validate-customer.d.cts +1 -1
- package/dist/actions/validate-customer.d.mts +1 -1
- package/dist/actions/validate-customer.mjs +1 -1
- package/dist/actions/validate-customer.mjs.map +1 -1
- package/dist/actions/validate-order.cjs +13 -13
- package/dist/actions/validate-order.cjs.map +1 -1
- package/dist/actions/validate-order.d.cts +13 -13
- package/dist/actions/validate-order.d.mts +13 -13
- package/dist/actions/validate-order.mjs +13 -13
- package/dist/actions/validate-order.mjs.map +1 -1
- package/dist/actions/verify-payment-request.cjs +10 -10
- package/dist/actions/verify-payment-request.cjs.map +1 -1
- package/dist/actions/verify-payment-request.d.cts +10 -10
- package/dist/actions/verify-payment-request.d.mts +10 -10
- package/dist/actions/verify-payment-request.mjs +10 -10
- package/dist/actions/verify-payment-request.mjs.map +1 -1
- package/dist/actions/verify-storefront-slug.cjs +1 -1
- package/dist/actions/verify-storefront-slug.cjs.map +1 -1
- package/dist/actions/verify-storefront-slug.d.cts +1 -1
- package/dist/actions/verify-storefront-slug.d.mts +1 -1
- package/dist/actions/verify-storefront-slug.mjs +1 -1
- package/dist/actions/verify-storefront-slug.mjs.map +1 -1
- package/dist/actions/verify-transaction.cjs +17 -17
- package/dist/actions/verify-transaction.cjs.map +1 -1
- package/dist/actions/verify-transaction.d.cts +17 -17
- package/dist/actions/verify-transaction.d.mts +17 -17
- package/dist/actions/verify-transaction.mjs +17 -17
- package/dist/actions/verify-transaction.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -14,7 +14,7 @@ const PaystackFetchProductOrders_OrderItemSchema = z.object({
|
|
|
14
14
|
order_id: z.string().describe("Unique order ID").nullable(),
|
|
15
15
|
quantity: z.number().int().describe("Total quantity of the product").nullable(),
|
|
16
16
|
refunded: z.boolean().describe("Whether the order has been refunded").nullable(),
|
|
17
|
-
shipping: z.
|
|
17
|
+
shipping: z.record(z.string(), z.unknown()).describe("Shipping details").nullable().optional(),
|
|
18
18
|
is_viewed: z.number().int().describe("View status of the order (0 or 1)").nullable(),
|
|
19
19
|
last_name: z.string().describe("Customer's last name").nullable(),
|
|
20
20
|
created_at: z.string().describe("ISO 8601 timestamp when the order was created").nullable(),
|
|
@@ -22,21 +22,21 @@ const PaystackFetchProductOrders_OrderItemSchema = z.object({
|
|
|
22
22
|
is_shipped: z.boolean().describe("Whether the order has been shipped").nullable(),
|
|
23
23
|
order_code: z.string().describe("Unique order code").nullable(),
|
|
24
24
|
product_id: z.number().int().describe("Product ID").nullable(),
|
|
25
|
-
variant_id: z.union([z.number().int(), z.
|
|
25
|
+
variant_id: z.union([z.number().int(), z.record(z.string(), z.unknown())]).nullable().optional(),
|
|
26
26
|
amount_paid: z.number().int().describe("Amount paid in smallest currency unit").nullable(),
|
|
27
27
|
transaction: z.number().int().describe("Transaction ID associated with the order").nullable(),
|
|
28
28
|
product_code: z.string().describe("Unique product code").nullable(),
|
|
29
29
|
product_name: z.string().describe("Name of the product").nullable(),
|
|
30
|
-
shipping_fee: z.
|
|
31
|
-
variant_code: z.union([z.string(), z.
|
|
30
|
+
shipping_fee: z.record(z.string(), z.unknown()).describe("Shipping fee details").nullable().optional(),
|
|
31
|
+
variant_code: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),
|
|
32
32
|
customer_name: z.string().describe("Full customer name").nullable(),
|
|
33
|
-
delivery_note: z.
|
|
33
|
+
delivery_note: z.record(z.string(), z.unknown()).describe("Delivery note for the order").nullable().optional(),
|
|
34
34
|
quantity_sold: z.number().int().describe("Quantity of product sold in this order").nullable(),
|
|
35
|
-
variant_price: z.union([z.number().int(), z.
|
|
36
|
-
shipping_method: z.
|
|
35
|
+
variant_price: z.union([z.number().int(), z.record(z.string(), z.unknown())]).nullable().optional(),
|
|
36
|
+
shipping_method: z.record(z.string(), z.unknown()).describe("Shipping method details").nullable().optional(),
|
|
37
37
|
storefront_slug: z.string().describe("Storefront slug where the product was sold").nullable(),
|
|
38
|
-
shipping_address: z.
|
|
39
|
-
}).describe("Individual order details for a product.");
|
|
38
|
+
shipping_address: z.record(z.string(), z.unknown()).describe("Shipping address details").nullable().optional()
|
|
39
|
+
}).passthrough().describe("Individual order details for a product.");
|
|
40
40
|
const PaystackFetchProductOrders_OrderMetaSchema = z.object({
|
|
41
41
|
total: z.number().int().describe("Total number of orders for the product").nullable(),
|
|
42
42
|
perPage: z.number().int().describe("Number of orders per page").nullable(),
|
|
@@ -44,7 +44,7 @@ const PaystackFetchProductOrders_OrderMetaSchema = z.object({
|
|
|
44
44
|
skipped: z.number().int().describe("Number of skipped records").nullable(),
|
|
45
45
|
pageCount: z.number().int().describe("Total number of pages").nullable(),
|
|
46
46
|
quantity_sold: z.number().int().describe("Total quantity of product sold across all orders (null if no orders)").nullable().optional()
|
|
47
|
-
}).describe("Metadata about the product orders.");
|
|
47
|
+
}).passthrough().describe("Metadata about the product orders.");
|
|
48
48
|
const paystackFetchProductOrders = action("PAYSTACK_FETCH_PRODUCT_ORDERS", {
|
|
49
49
|
slug: "paystack-fetch-product-orders",
|
|
50
50
|
name: "Fetch Product Orders",
|
|
@@ -55,7 +55,7 @@ const paystackFetchProductOrders = action("PAYSTACK_FETCH_PRODUCT_ORDERS", {
|
|
|
55
55
|
meta: PaystackFetchProductOrders_OrderMetaSchema.nullable(),
|
|
56
56
|
status: z.boolean().describe("Status of the API request").nullable(),
|
|
57
57
|
message: z.string().describe("Response message from the API").nullable()
|
|
58
|
-
}).describe("Response containing all orders for a particular product.")
|
|
58
|
+
}).passthrough().describe("Response containing all orders for a particular product.")
|
|
59
59
|
});
|
|
60
60
|
//#endregion
|
|
61
61
|
export { paystackFetchProductOrders };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-product-orders.mjs","names":[],"sources":["../../src/actions/fetch-product-orders.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaystackFetchProductOrdersInput = z.object({\n id: z.number().int().describe(\"The unique identifier of the product\"),\n}).describe(\"Request to fetch all orders for a particular product.\");\nconst PaystackFetchProductOrders_OrderItemSchema = z.object({\n email: z.string().describe(\"Customer's email address\").nullable(),\n phone: z.string().describe(\"Customer's phone number\").nullable(),\n price: z.number().int().describe(\"Product price in smallest currency unit (kobo, pesewas, or cents)\").nullable(),\n amount: z.number().int().describe(\"Total order amount in smallest currency unit\").nullable(),\n status: z.string().describe(\"Order status (e.g., pending, completed, refunded)\").nullable(),\n paid_at: z.string().describe(\"ISO 8601 timestamp when payment was made\").nullable(),\n currency: z.string().describe(\"Currency code (e.g., NGN, USD, GHS)\").nullable(),\n customer: z.number().int().describe(\"Customer ID who placed the order\").nullable(),\n order_id: z.string().describe(\"Unique order ID\").nullable(),\n quantity: z.number().int().describe(\"Total quantity of the product\").nullable(),\n refunded: z.boolean().describe(\"Whether the order has been refunded\").nullable(),\n shipping: z.
|
|
1
|
+
{"version":3,"file":"fetch-product-orders.mjs","names":[],"sources":["../../src/actions/fetch-product-orders.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaystackFetchProductOrdersInput = z.object({\n id: z.number().int().describe(\"The unique identifier of the product\"),\n}).describe(\"Request to fetch all orders for a particular product.\");\nconst PaystackFetchProductOrders_OrderItemSchema = z.object({\n email: z.string().describe(\"Customer's email address\").nullable(),\n phone: z.string().describe(\"Customer's phone number\").nullable(),\n price: z.number().int().describe(\"Product price in smallest currency unit (kobo, pesewas, or cents)\").nullable(),\n amount: z.number().int().describe(\"Total order amount in smallest currency unit\").nullable(),\n status: z.string().describe(\"Order status (e.g., pending, completed, refunded)\").nullable(),\n paid_at: z.string().describe(\"ISO 8601 timestamp when payment was made\").nullable(),\n currency: z.string().describe(\"Currency code (e.g., NGN, USD, GHS)\").nullable(),\n customer: z.number().int().describe(\"Customer ID who placed the order\").nullable(),\n order_id: z.string().describe(\"Unique order ID\").nullable(),\n quantity: z.number().int().describe(\"Total quantity of the product\").nullable(),\n refunded: z.boolean().describe(\"Whether the order has been refunded\").nullable(),\n shipping: z.record(z.string(), z.unknown()).describe(\"Shipping details\").nullable().optional(),\n is_viewed: z.number().int().describe(\"View status of the order (0 or 1)\").nullable(),\n last_name: z.string().describe(\"Customer's last name\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the order was created\").nullable(),\n first_name: z.string().describe(\"Customer's first name\").nullable(),\n is_shipped: z.boolean().describe(\"Whether the order has been shipped\").nullable(),\n order_code: z.string().describe(\"Unique order code\").nullable(),\n product_id: z.number().int().describe(\"Product ID\").nullable(),\n variant_id: z.union([z.number().int(), z.record(z.string(), z.unknown())]).nullable().optional(),\n amount_paid: z.number().int().describe(\"Amount paid in smallest currency unit\").nullable(),\n transaction: z.number().int().describe(\"Transaction ID associated with the order\").nullable(),\n product_code: z.string().describe(\"Unique product code\").nullable(),\n product_name: z.string().describe(\"Name of the product\").nullable(),\n shipping_fee: z.record(z.string(), z.unknown()).describe(\"Shipping fee details\").nullable().optional(),\n variant_code: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n customer_name: z.string().describe(\"Full customer name\").nullable(),\n delivery_note: z.record(z.string(), z.unknown()).describe(\"Delivery note for the order\").nullable().optional(),\n quantity_sold: z.number().int().describe(\"Quantity of product sold in this order\").nullable(),\n variant_price: z.union([z.number().int(), z.record(z.string(), z.unknown())]).nullable().optional(),\n shipping_method: z.record(z.string(), z.unknown()).describe(\"Shipping method details\").nullable().optional(),\n storefront_slug: z.string().describe(\"Storefront slug where the product was sold\").nullable(),\n shipping_address: z.record(z.string(), z.unknown()).describe(\"Shipping address details\").nullable().optional(),\n}).passthrough().describe(\"Individual order details for a product.\");\nconst PaystackFetchProductOrders_OrderMetaSchema = z.object({\n total: z.number().int().describe(\"Total number of orders for the product\").nullable(),\n perPage: z.number().int().describe(\"Number of orders per page\").nullable(),\n revenue: z.number().int().describe(\"Total revenue generated from the product in smallest currency unit (null if no orders)\").nullable().optional(),\n skipped: z.number().int().describe(\"Number of skipped records\").nullable(),\n pageCount: z.number().int().describe(\"Total number of pages\").nullable(),\n quantity_sold: z.number().int().describe(\"Total quantity of product sold across all orders (null if no orders)\").nullable().optional(),\n}).passthrough().describe(\"Metadata about the product orders.\");\nexport const PaystackFetchProductOrdersOutput = z.object({\n data: z.array(PaystackFetchProductOrders_OrderItemSchema).describe(\"List of orders for the product\"),\n meta: PaystackFetchProductOrders_OrderMetaSchema.nullable(),\n status: z.boolean().describe(\"Status of the API request\").nullable(),\n message: z.string().describe(\"Response message from the API\").nullable(),\n}).passthrough().describe(\"Response containing all orders for a particular product.\");\n\nexport const paystackFetchProductOrders = action(\"PAYSTACK_FETCH_PRODUCT_ORDERS\", {\n slug: \"paystack-fetch-product-orders\",\n name: \"Fetch Product Orders\",\n description: \"Tool to fetch all orders for a particular product on your Paystack integration. Use when you need to retrieve order history and details for a specific product by its ID.\",\n input: PaystackFetchProductOrdersInput,\n output: PaystackFetchProductOrdersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkC,EAAE,OAAO,EACtD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,EACtE,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,6CAA6C,EAAE,OAAO;CAC1D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAChE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC/D,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CAC/G,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAC3F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC1F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAClF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC9E,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACjF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CAC1D,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC9E,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC/E,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,C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AAC,SAAS;CACjJ,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACzE,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CACvE,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAQ9D,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZ8C,EAAE,OAAO;EACvD,MAAM,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,gCAAgC;EACnG,MAAM,2CAA2C,SAAS;EAC1D,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EACnE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAOhB;AACV,CAAC"}
|
|
@@ -4,15 +4,15 @@ let zod = require("zod");
|
|
|
4
4
|
const PaystackFetchProductInput = zod.z.object({ id: zod.z.number().int().describe("The unique identifier of the product") }).describe("Request model for fetching product details.");
|
|
5
5
|
const PaystackFetchProduct_ShippingFieldsSchema = zod.z.object({
|
|
6
6
|
delivery_note: zod.z.string().describe("Delivery note instructions").nullable().optional(),
|
|
7
|
-
shipping_fees: zod.z.array(zod.z.
|
|
7
|
+
shipping_fees: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("List of shipping fees").nullable().optional(),
|
|
8
8
|
shipping_address: zod.z.string().describe("Shipping address field").nullable().optional()
|
|
9
|
-
}).describe("Shipping fields for the product.");
|
|
9
|
+
}).passthrough().describe("Shipping fields for the product.");
|
|
10
10
|
const PaystackFetchProduct_FetchProductDataSchema = zod.z.object({
|
|
11
11
|
id: zod.z.string().describe("The unique identifier of the product").nullable(),
|
|
12
12
|
name: zod.z.string().describe("Name of the product").nullable(),
|
|
13
13
|
slug: zod.z.string().describe("URL slug for the product").nullable(),
|
|
14
14
|
type: zod.z.string().describe("Type of the product").nullable(),
|
|
15
|
-
files: zod.z.array(zod.z.
|
|
15
|
+
files: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("List of files associated with the product").nullable().optional(),
|
|
16
16
|
price: zod.z.number().int().describe("Price of the product in kobo (or lowest currency unit)").nullable(),
|
|
17
17
|
active: zod.z.boolean().describe("Whether the product is active").nullable(),
|
|
18
18
|
domain: zod.z.string().describe("The domain (test or live)").nullable(),
|
|
@@ -20,10 +20,10 @@ const PaystackFetchProduct_FetchProductDataSchema = zod.z.object({
|
|
|
20
20
|
features: zod.z.union([
|
|
21
21
|
zod.z.string(),
|
|
22
22
|
zod.z.array(zod.z.string()),
|
|
23
|
-
zod.z.
|
|
23
|
+
zod.z.record(zod.z.string(), zod.z.unknown())
|
|
24
24
|
]).nullable().optional(),
|
|
25
25
|
in_stock: zod.z.boolean().describe("Whether the product is in stock").nullable(),
|
|
26
|
-
metadata: zod.z.
|
|
26
|
+
metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional metadata for the product").nullable().optional(),
|
|
27
27
|
quantity: zod.z.number().int().describe("Available quantity of the product").nullable(),
|
|
28
28
|
createdAt: zod.z.string().describe("ISO 8601 timestamp when the product was created").nullable(),
|
|
29
29
|
file_path: zod.z.string().describe("File path for the product").nullable().optional(),
|
|
@@ -37,7 +37,7 @@ const PaystackFetchProduct_FetchProductDataSchema = zod.z.object({
|
|
|
37
37
|
product_code: zod.z.string().describe("Unique product code").nullable(),
|
|
38
38
|
redirect_url: zod.z.string().describe("URL to redirect to after purchase").nullable().optional(),
|
|
39
39
|
quantity_sold: zod.z.number().int().describe("Number of units sold").nullable().optional(),
|
|
40
|
-
digital_assets: zod.z.array(zod.z.
|
|
40
|
+
digital_assets: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("List of digital assets associated with the product").nullable().optional(),
|
|
41
41
|
low_stock_alert: zod.z.boolean().describe("Whether low stock alerts are enabled").nullable(),
|
|
42
42
|
shipping_fields: PaystackFetchProduct_ShippingFieldsSchema.nullable().optional(),
|
|
43
43
|
stock_threshold: zod.z.number().int().describe("Stock threshold for low stock alerts").nullable().optional(),
|
|
@@ -45,12 +45,12 @@ const PaystackFetchProduct_FetchProductDataSchema = zod.z.object({
|
|
|
45
45
|
maximum_orderable: zod.z.number().int().describe("Maximum quantity that can be ordered").nullable().optional(),
|
|
46
46
|
minimum_orderable: zod.z.number().int().describe("Minimum quantity that can be ordered").nullable(),
|
|
47
47
|
notification_emails: zod.z.string().describe("Email addresses for notifications").nullable().optional()
|
|
48
|
-
}).describe("Product data returned by Paystack API.");
|
|
48
|
+
}).passthrough().describe("Product data returned by Paystack API.");
|
|
49
49
|
const PaystackFetchProductOutput = zod.z.object({
|
|
50
50
|
data: PaystackFetchProduct_FetchProductDataSchema.nullable(),
|
|
51
51
|
status: zod.z.boolean().describe("Status of the API request").nullable(),
|
|
52
52
|
message: zod.z.string().describe("Response message from the API").nullable()
|
|
53
|
-
}).describe("Response model for fetching product details.");
|
|
53
|
+
}).passthrough().describe("Response model for fetching product details.");
|
|
54
54
|
const paystackFetchProduct = require_action.action("PAYSTACK_FETCH_PRODUCT", {
|
|
55
55
|
slug: "paystack-fetch-product",
|
|
56
56
|
name: "Fetch Product",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-product.cjs","names":["z","action"],"sources":["../../src/actions/fetch-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaystackFetchProductInput = z.object({\n id: z.number().int().describe(\"The unique identifier of the product\"),\n}).describe(\"Request model for fetching product details.\");\nconst PaystackFetchProduct_ShippingFieldsSchema = z.object({\n delivery_note: z.string().describe(\"Delivery note instructions\").nullable().optional(),\n shipping_fees: z.array(z.
|
|
1
|
+
{"version":3,"file":"fetch-product.cjs","names":["z","action"],"sources":["../../src/actions/fetch-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaystackFetchProductInput = z.object({\n id: z.number().int().describe(\"The unique identifier of the product\"),\n}).describe(\"Request model for fetching product details.\");\nconst PaystackFetchProduct_ShippingFieldsSchema = z.object({\n delivery_note: z.string().describe(\"Delivery note instructions\").nullable().optional(),\n shipping_fees: z.array(z.record(z.string(), z.unknown())).describe(\"List of shipping fees\").nullable().optional(),\n shipping_address: z.string().describe(\"Shipping address field\").nullable().optional(),\n}).passthrough().describe(\"Shipping fields for the product.\");\nconst PaystackFetchProduct_FetchProductDataSchema = z.object({\n id: z.string().describe(\"The unique identifier of the product\").nullable(),\n name: z.string().describe(\"Name of the product\").nullable(),\n slug: z.string().describe(\"URL slug for the product\").nullable(),\n type: z.string().describe(\"Type of the product\").nullable(),\n files: z.array(z.record(z.string(), z.unknown())).describe(\"List of files associated with the product\").nullable().optional(),\n price: z.number().int().describe(\"Price of the product in kobo (or lowest currency unit)\").nullable(),\n active: z.boolean().describe(\"Whether the product is active\").nullable(),\n domain: z.string().describe(\"The domain (test or live)\").nullable(),\n currency: z.string().describe(\"Currency code (e.g., NGN)\").nullable(),\n features: z.union([z.string(), z.array(z.string()), z.record(z.string(), z.unknown())]).nullable().optional(),\n in_stock: z.boolean().describe(\"Whether the product is in stock\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata for the product\").nullable().optional(),\n quantity: z.number().int().describe(\"Available quantity of the product\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the product was created\").nullable(),\n file_path: z.string().describe(\"File path for the product\").nullable().optional(),\n unlimited: z.boolean().describe(\"Whether the product has unlimited quantity\").nullable(),\n updatedAt: z.string().describe(\"ISO 8601 timestamp when the product was last updated\").nullable(),\n expires_in: z.union([z.string(), z.number().int()]).nullable().optional(),\n split_code: z.string().describe(\"Split code for transaction splitting\").nullable().optional(),\n description: z.string().describe(\"Description of the product\").nullable(),\n integration: z.number().int().describe(\"The integration ID\").nullable(),\n is_shippable: z.boolean().describe(\"Whether the product requires shipping\").nullable(),\n product_code: z.string().describe(\"Unique product code\").nullable(),\n redirect_url: z.string().describe(\"URL to redirect to after purchase\").nullable().optional(),\n quantity_sold: z.number().int().describe(\"Number of units sold\").nullable().optional(),\n digital_assets: z.array(z.record(z.string(), z.unknown())).describe(\"List of digital assets associated with the product\").nullable().optional(),\n low_stock_alert: z.boolean().describe(\"Whether low stock alerts are enabled\").nullable(),\n shipping_fields: PaystackFetchProduct_ShippingFieldsSchema.nullable().optional(),\n stock_threshold: z.number().int().describe(\"Stock threshold for low stock alerts\").nullable().optional(),\n success_message: z.string().describe(\"Success message to display after purchase\").nullable().optional(),\n maximum_orderable: z.number().int().describe(\"Maximum quantity that can be ordered\").nullable().optional(),\n minimum_orderable: z.number().int().describe(\"Minimum quantity that can be ordered\").nullable(),\n notification_emails: z.string().describe(\"Email addresses for notifications\").nullable().optional(),\n}).passthrough().describe(\"Product data returned by Paystack API.\");\nexport const PaystackFetchProductOutput = z.object({\n data: PaystackFetchProduct_FetchProductDataSchema.nullable(),\n status: z.boolean().describe(\"Status of the API request\").nullable(),\n message: z.string().describe(\"Response message from the API\").nullable(),\n}).passthrough().describe(\"Response model for fetching product details.\");\n\nexport const paystackFetchProduct = action(\"PAYSTACK_FETCH_PRODUCT\", {\n slug: \"paystack-fetch-product\",\n name: \"Fetch Product\",\n description: \"Tool to get details of a product on your integration. Use when you need to retrieve product information by its ID.\",\n input: PaystackFetchProductInput,\n output: PaystackFetchProductOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,EACtE,CAAC,CAAC,CAAC,SAAS,6C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CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC9F,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAClE,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAM,4CAA4C,SAAS;CAC3D,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACnE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;AACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAExE,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -10,14 +10,14 @@ declare const PaystackFetchProductOutput: z.ZodObject<{
|
|
|
10
10
|
name: z.ZodNullable<z.ZodString>;
|
|
11
11
|
slug: z.ZodNullable<z.ZodString>;
|
|
12
12
|
type: z.ZodNullable<z.ZodString>;
|
|
13
|
-
files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.
|
|
13
|
+
files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
14
14
|
price: z.ZodNullable<z.ZodNumber>;
|
|
15
15
|
active: z.ZodNullable<z.ZodBoolean>;
|
|
16
16
|
domain: z.ZodNullable<z.ZodString>;
|
|
17
17
|
currency: z.ZodNullable<z.ZodString>;
|
|
18
|
-
features: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.
|
|
18
|
+
features: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
|
|
19
19
|
in_stock: z.ZodNullable<z.ZodBoolean>;
|
|
20
|
-
metadata: z.ZodOptional<z.ZodNullable<z.
|
|
20
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
21
21
|
quantity: z.ZodNullable<z.ZodNumber>;
|
|
22
22
|
createdAt: z.ZodNullable<z.ZodString>;
|
|
23
23
|
file_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -31,22 +31,22 @@ declare const PaystackFetchProductOutput: z.ZodObject<{
|
|
|
31
31
|
product_code: z.ZodNullable<z.ZodString>;
|
|
32
32
|
redirect_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
33
|
quantity_sold: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
34
|
-
digital_assets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.
|
|
34
|
+
digital_assets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
35
35
|
low_stock_alert: z.ZodNullable<z.ZodBoolean>;
|
|
36
36
|
shipping_fields: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
37
37
|
delivery_note: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
-
shipping_fees: z.ZodOptional<z.ZodNullable<z.ZodArray<z.
|
|
38
|
+
shipping_fees: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
39
39
|
shipping_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
-
}, z.core.$
|
|
40
|
+
}, z.core.$loose>>>;
|
|
41
41
|
stock_threshold: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
42
42
|
success_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
43
|
maximum_orderable: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
44
44
|
minimum_orderable: z.ZodNullable<z.ZodNumber>;
|
|
45
45
|
notification_emails: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
|
-
}, z.core.$
|
|
46
|
+
}, z.core.$loose>>;
|
|
47
47
|
status: z.ZodNullable<z.ZodBoolean>;
|
|
48
48
|
message: z.ZodNullable<z.ZodString>;
|
|
49
|
-
}, z.core.$
|
|
49
|
+
}, z.core.$loose>;
|
|
50
50
|
declare const paystackFetchProduct: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
51
51
|
id: number;
|
|
52
52
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -10,14 +10,14 @@ declare const PaystackFetchProductOutput: z.ZodObject<{
|
|
|
10
10
|
name: z.ZodNullable<z.ZodString>;
|
|
11
11
|
slug: z.ZodNullable<z.ZodString>;
|
|
12
12
|
type: z.ZodNullable<z.ZodString>;
|
|
13
|
-
files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.
|
|
13
|
+
files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
14
14
|
price: z.ZodNullable<z.ZodNumber>;
|
|
15
15
|
active: z.ZodNullable<z.ZodBoolean>;
|
|
16
16
|
domain: z.ZodNullable<z.ZodString>;
|
|
17
17
|
currency: z.ZodNullable<z.ZodString>;
|
|
18
|
-
features: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.
|
|
18
|
+
features: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
|
|
19
19
|
in_stock: z.ZodNullable<z.ZodBoolean>;
|
|
20
|
-
metadata: z.ZodOptional<z.ZodNullable<z.
|
|
20
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
21
21
|
quantity: z.ZodNullable<z.ZodNumber>;
|
|
22
22
|
createdAt: z.ZodNullable<z.ZodString>;
|
|
23
23
|
file_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -31,22 +31,22 @@ declare const PaystackFetchProductOutput: z.ZodObject<{
|
|
|
31
31
|
product_code: z.ZodNullable<z.ZodString>;
|
|
32
32
|
redirect_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
33
|
quantity_sold: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
34
|
-
digital_assets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.
|
|
34
|
+
digital_assets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
35
35
|
low_stock_alert: z.ZodNullable<z.ZodBoolean>;
|
|
36
36
|
shipping_fields: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
37
37
|
delivery_note: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
-
shipping_fees: z.ZodOptional<z.ZodNullable<z.ZodArray<z.
|
|
38
|
+
shipping_fees: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
39
39
|
shipping_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
-
}, z.core.$
|
|
40
|
+
}, z.core.$loose>>>;
|
|
41
41
|
stock_threshold: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
42
42
|
success_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
43
|
maximum_orderable: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
44
44
|
minimum_orderable: z.ZodNullable<z.ZodNumber>;
|
|
45
45
|
notification_emails: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
|
-
}, z.core.$
|
|
46
|
+
}, z.core.$loose>>;
|
|
47
47
|
status: z.ZodNullable<z.ZodBoolean>;
|
|
48
48
|
message: z.ZodNullable<z.ZodString>;
|
|
49
|
-
}, z.core.$
|
|
49
|
+
}, z.core.$loose>;
|
|
50
50
|
declare const paystackFetchProduct: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
51
51
|
id: number;
|
|
52
52
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -4,15 +4,15 @@ import { z } from "zod";
|
|
|
4
4
|
const PaystackFetchProductInput = z.object({ id: z.number().int().describe("The unique identifier of the product") }).describe("Request model for fetching product details.");
|
|
5
5
|
const PaystackFetchProduct_ShippingFieldsSchema = z.object({
|
|
6
6
|
delivery_note: z.string().describe("Delivery note instructions").nullable().optional(),
|
|
7
|
-
shipping_fees: z.array(z.
|
|
7
|
+
shipping_fees: z.array(z.record(z.string(), z.unknown())).describe("List of shipping fees").nullable().optional(),
|
|
8
8
|
shipping_address: z.string().describe("Shipping address field").nullable().optional()
|
|
9
|
-
}).describe("Shipping fields for the product.");
|
|
9
|
+
}).passthrough().describe("Shipping fields for the product.");
|
|
10
10
|
const PaystackFetchProduct_FetchProductDataSchema = z.object({
|
|
11
11
|
id: z.string().describe("The unique identifier of the product").nullable(),
|
|
12
12
|
name: z.string().describe("Name of the product").nullable(),
|
|
13
13
|
slug: z.string().describe("URL slug for the product").nullable(),
|
|
14
14
|
type: z.string().describe("Type of the product").nullable(),
|
|
15
|
-
files: z.array(z.
|
|
15
|
+
files: z.array(z.record(z.string(), z.unknown())).describe("List of files associated with the product").nullable().optional(),
|
|
16
16
|
price: z.number().int().describe("Price of the product in kobo (or lowest currency unit)").nullable(),
|
|
17
17
|
active: z.boolean().describe("Whether the product is active").nullable(),
|
|
18
18
|
domain: z.string().describe("The domain (test or live)").nullable(),
|
|
@@ -20,10 +20,10 @@ const PaystackFetchProduct_FetchProductDataSchema = z.object({
|
|
|
20
20
|
features: z.union([
|
|
21
21
|
z.string(),
|
|
22
22
|
z.array(z.string()),
|
|
23
|
-
z.
|
|
23
|
+
z.record(z.string(), z.unknown())
|
|
24
24
|
]).nullable().optional(),
|
|
25
25
|
in_stock: z.boolean().describe("Whether the product is in stock").nullable(),
|
|
26
|
-
metadata: z.
|
|
26
|
+
metadata: z.record(z.string(), z.unknown()).describe("Additional metadata for the product").nullable().optional(),
|
|
27
27
|
quantity: z.number().int().describe("Available quantity of the product").nullable(),
|
|
28
28
|
createdAt: z.string().describe("ISO 8601 timestamp when the product was created").nullable(),
|
|
29
29
|
file_path: z.string().describe("File path for the product").nullable().optional(),
|
|
@@ -37,7 +37,7 @@ const PaystackFetchProduct_FetchProductDataSchema = z.object({
|
|
|
37
37
|
product_code: z.string().describe("Unique product code").nullable(),
|
|
38
38
|
redirect_url: z.string().describe("URL to redirect to after purchase").nullable().optional(),
|
|
39
39
|
quantity_sold: z.number().int().describe("Number of units sold").nullable().optional(),
|
|
40
|
-
digital_assets: z.array(z.
|
|
40
|
+
digital_assets: z.array(z.record(z.string(), z.unknown())).describe("List of digital assets associated with the product").nullable().optional(),
|
|
41
41
|
low_stock_alert: z.boolean().describe("Whether low stock alerts are enabled").nullable(),
|
|
42
42
|
shipping_fields: PaystackFetchProduct_ShippingFieldsSchema.nullable().optional(),
|
|
43
43
|
stock_threshold: z.number().int().describe("Stock threshold for low stock alerts").nullable().optional(),
|
|
@@ -45,7 +45,7 @@ const PaystackFetchProduct_FetchProductDataSchema = z.object({
|
|
|
45
45
|
maximum_orderable: z.number().int().describe("Maximum quantity that can be ordered").nullable().optional(),
|
|
46
46
|
minimum_orderable: z.number().int().describe("Minimum quantity that can be ordered").nullable(),
|
|
47
47
|
notification_emails: z.string().describe("Email addresses for notifications").nullable().optional()
|
|
48
|
-
}).describe("Product data returned by Paystack API.");
|
|
48
|
+
}).passthrough().describe("Product data returned by Paystack API.");
|
|
49
49
|
const paystackFetchProduct = action("PAYSTACK_FETCH_PRODUCT", {
|
|
50
50
|
slug: "paystack-fetch-product",
|
|
51
51
|
name: "Fetch Product",
|
|
@@ -55,7 +55,7 @@ const paystackFetchProduct = action("PAYSTACK_FETCH_PRODUCT", {
|
|
|
55
55
|
data: PaystackFetchProduct_FetchProductDataSchema.nullable(),
|
|
56
56
|
status: z.boolean().describe("Status of the API request").nullable(),
|
|
57
57
|
message: z.string().describe("Response message from the API").nullable()
|
|
58
|
-
}).describe("Response model for fetching product details.")
|
|
58
|
+
}).passthrough().describe("Response model for fetching product details.")
|
|
59
59
|
});
|
|
60
60
|
//#endregion
|
|
61
61
|
export { paystackFetchProduct };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-product.mjs","names":[],"sources":["../../src/actions/fetch-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaystackFetchProductInput = z.object({\n id: z.number().int().describe(\"The unique identifier of the product\"),\n}).describe(\"Request model for fetching product details.\");\nconst PaystackFetchProduct_ShippingFieldsSchema = z.object({\n delivery_note: z.string().describe(\"Delivery note instructions\").nullable().optional(),\n shipping_fees: z.array(z.
|
|
1
|
+
{"version":3,"file":"fetch-product.mjs","names":[],"sources":["../../src/actions/fetch-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaystackFetchProductInput = z.object({\n id: z.number().int().describe(\"The unique identifier of the product\"),\n}).describe(\"Request model for fetching product details.\");\nconst PaystackFetchProduct_ShippingFieldsSchema = z.object({\n delivery_note: z.string().describe(\"Delivery note instructions\").nullable().optional(),\n shipping_fees: z.array(z.record(z.string(), z.unknown())).describe(\"List of shipping fees\").nullable().optional(),\n shipping_address: z.string().describe(\"Shipping address field\").nullable().optional(),\n}).passthrough().describe(\"Shipping fields for the product.\");\nconst PaystackFetchProduct_FetchProductDataSchema = z.object({\n id: z.string().describe(\"The unique identifier of the product\").nullable(),\n name: z.string().describe(\"Name of the product\").nullable(),\n slug: z.string().describe(\"URL slug for the product\").nullable(),\n type: z.string().describe(\"Type of the product\").nullable(),\n files: z.array(z.record(z.string(), z.unknown())).describe(\"List of files associated with the product\").nullable().optional(),\n price: z.number().int().describe(\"Price of the product in kobo (or lowest currency unit)\").nullable(),\n active: z.boolean().describe(\"Whether the product is active\").nullable(),\n domain: z.string().describe(\"The domain (test or live)\").nullable(),\n currency: z.string().describe(\"Currency code (e.g., NGN)\").nullable(),\n features: z.union([z.string(), z.array(z.string()), z.record(z.string(), z.unknown())]).nullable().optional(),\n in_stock: z.boolean().describe(\"Whether the product is in stock\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata for the product\").nullable().optional(),\n quantity: z.number().int().describe(\"Available quantity of the product\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the product was created\").nullable(),\n file_path: z.string().describe(\"File path for the product\").nullable().optional(),\n unlimited: z.boolean().describe(\"Whether the product has unlimited quantity\").nullable(),\n updatedAt: z.string().describe(\"ISO 8601 timestamp when the product was last updated\").nullable(),\n expires_in: z.union([z.string(), z.number().int()]).nullable().optional(),\n split_code: z.string().describe(\"Split code for transaction splitting\").nullable().optional(),\n description: z.string().describe(\"Description of the product\").nullable(),\n integration: z.number().int().describe(\"The integration ID\").nullable(),\n is_shippable: z.boolean().describe(\"Whether the product requires shipping\").nullable(),\n product_code: z.string().describe(\"Unique product code\").nullable(),\n redirect_url: z.string().describe(\"URL to redirect to after purchase\").nullable().optional(),\n quantity_sold: z.number().int().describe(\"Number of units sold\").nullable().optional(),\n digital_assets: z.array(z.record(z.string(), z.unknown())).describe(\"List of digital assets associated with the product\").nullable().optional(),\n low_stock_alert: z.boolean().describe(\"Whether low stock alerts are enabled\").nullable(),\n shipping_fields: PaystackFetchProduct_ShippingFieldsSchema.nullable().optional(),\n stock_threshold: z.number().int().describe(\"Stock threshold for low stock alerts\").nullable().optional(),\n success_message: z.string().describe(\"Success message to display after purchase\").nullable().optional(),\n maximum_orderable: z.number().int().describe(\"Maximum quantity that can be ordered\").nullable().optional(),\n minimum_orderable: z.number().int().describe(\"Minimum quantity that can be ordered\").nullable(),\n notification_emails: z.string().describe(\"Email addresses for notifications\").nullable().optional(),\n}).passthrough().describe(\"Product data returned by Paystack API.\");\nexport const PaystackFetchProductOutput = z.object({\n data: PaystackFetchProduct_FetchProductDataSchema.nullable(),\n status: z.boolean().describe(\"Status of the API request\").nullable(),\n message: z.string().describe(\"Response message from the API\").nullable(),\n}).passthrough().describe(\"Response model for fetching product details.\");\n\nexport const paystackFetchProduct = action(\"PAYSTACK_FETCH_PRODUCT\", {\n slug: \"paystack-fetch-product\",\n name: \"Fetch Product\",\n description: \"Tool to get details of a product on your integration. Use when you need to retrieve product information by its ID.\",\n input: PaystackFetchProductInput,\n output: PaystackFetchProductOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO,EAChD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,EACtE,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAM,4CAA4C,EAAE,OAAO;CACzD,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,eAAe,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAAkC;AAC5D,MAAM,8CAA8C,EAAE,OAAO;CAC3D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACzE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,MAAM,EAAE,OAAO,CAAC,CAA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S;CACtG,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC9F,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAOlE,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXwC,EAAE,OAAO;EACjD,MAAM,4CAA4C,SAAS;EAC3D,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EACnE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAOhB;AACV,CAAC"}
|
|
@@ -12,7 +12,7 @@ const PaystackFetchRefund_RefundCustomerSchema = zod.z.object({
|
|
|
12
12
|
risk_action: zod.z.string().describe("Risk action status for the customer").nullable().optional(),
|
|
13
13
|
customer_code: zod.z.string().describe("Unique customer code").nullable().optional(),
|
|
14
14
|
international_format_phone: zod.z.string().describe("Phone number in international format").nullable().optional()
|
|
15
|
-
}).describe("Customer details associated with the refund.");
|
|
15
|
+
}).passthrough().describe("Customer details associated with the refund.");
|
|
16
16
|
const PaystackFetchRefund_FetchRefundDataSchema = zod.z.object({
|
|
17
17
|
id: zod.z.number().int().describe("Unique refund ID").nullable(),
|
|
18
18
|
amount: zod.z.number().int().describe("Refund amount in subunit (kobo for NGN, cents for USD, etc.)").nullable(),
|
|
@@ -40,12 +40,12 @@ const PaystackFetchRefund_FetchRefundDataSchema = zod.z.object({
|
|
|
40
40
|
transaction_amount: zod.z.number().int().describe("Original transaction amount in subunit").nullable(),
|
|
41
41
|
transaction_reference: zod.z.string().describe("Reference of the original transaction").nullable(),
|
|
42
42
|
collect_account_number: zod.z.boolean().describe("Whether account number collection is required").nullable().optional()
|
|
43
|
-
}).describe("Refund details returned by the API.");
|
|
43
|
+
}).passthrough().describe("Refund details returned by the API.");
|
|
44
44
|
const PaystackFetchRefundOutput = zod.z.object({
|
|
45
45
|
data: PaystackFetchRefund_FetchRefundDataSchema.nullable(),
|
|
46
46
|
status: zod.z.boolean().describe("Whether the API request was successful").nullable(),
|
|
47
47
|
message: zod.z.string().describe("Response message from the API").nullable()
|
|
48
|
-
}).describe("Response containing refund details.");
|
|
48
|
+
}).passthrough().describe("Response containing refund details.");
|
|
49
49
|
const paystackFetchRefund = require_action.action("PAYSTACK_FETCH_REFUND", {
|
|
50
50
|
slug: "paystack-fetch-refund",
|
|
51
51
|
name: "Fetch Refund",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-refund.cjs","names":["z","action"],"sources":["../../src/actions/fetch-refund.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaystackFetchRefundInput = 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.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.object({\n id: z.number().int().describe(\"Unique refund ID\").nullable(),\n amount: z.number().int().describe(\"Refund amount in subunit (kobo for NGN, cents for USD, etc.)\").nullable(),\n domain: z.string().describe(\"Domain (test or live)\").nullable(),\n reason: z.string().describe(\"Reason for the refund\").nullable(),\n status: z.string().describe(\"Refund status (e.g., 'pending', 'processed', 'failed')\").nullable(),\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)\").nullable(),\n customer: PaystackFetchRefund_RefundCustomerSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the refund was created\").nullable(),\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\").nullable(),\n refund_type: z.string().describe(\"Type of refund\").nullable(),\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\").nullable(),\n transaction: z.number().int().describe(\"Transaction ID that was refunded\").nullable(),\n initiated_by: z.string().describe(\"Who initiated the refund\").nullable(),\n customer_note: z.string().describe(\"Note sent to the customer explaining the refund\").nullable(),\n merchant_note: z.string().describe(\"Internal merchant note about the refund\").nullable(),\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)\").nullable(),\n refund_channel: z.string().describe(\"Channel through which the refund was processed\").nullable(),\n deducted_amount: z.number().int().describe(\"Amount actually deducted from merchant balance in subunit\").nullable(),\n transaction_amount: z.number().int().describe(\"Original transaction amount in subunit\").nullable(),\n transaction_reference: z.string().describe(\"Reference of the original transaction\").nullable(),\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.object({\n data: PaystackFetchRefund_FetchRefundDataSchema.nullable(),\n status: z.boolean().describe(\"Whether the API request was successful\").nullable(),\n message: z.string().describe(\"Response message from the API\").nullable(),\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 timestamps.\",\n input: PaystackFetchRefundInput,\n output: PaystackFetchRefundOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,EACxE,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,4BAA4BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,SAAS,8CAA8C;
|
|
1
|
+
{"version":3,"file":"fetch-refund.cjs","names":["z","action"],"sources":["../../src/actions/fetch-refund.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaystackFetchRefundInput = 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.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}).passthrough().describe(\"Customer details associated with the refund.\");\nconst PaystackFetchRefund_FetchRefundDataSchema = z.object({\n id: z.number().int().describe(\"Unique refund ID\").nullable(),\n amount: z.number().int().describe(\"Refund amount in subunit (kobo for NGN, cents for USD, etc.)\").nullable(),\n domain: z.string().describe(\"Domain (test or live)\").nullable(),\n reason: z.string().describe(\"Reason for the refund\").nullable(),\n status: z.string().describe(\"Refund status (e.g., 'pending', 'processed', 'failed')\").nullable(),\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)\").nullable(),\n customer: PaystackFetchRefund_RefundCustomerSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the refund was created\").nullable(),\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\").nullable(),\n refund_type: z.string().describe(\"Type of refund\").nullable(),\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\").nullable(),\n transaction: z.number().int().describe(\"Transaction ID that was refunded\").nullable(),\n initiated_by: z.string().describe(\"Who initiated the refund\").nullable(),\n customer_note: z.string().describe(\"Note sent to the customer explaining the refund\").nullable(),\n merchant_note: z.string().describe(\"Internal merchant note about the refund\").nullable(),\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)\").nullable(),\n refund_channel: z.string().describe(\"Channel through which the refund was processed\").nullable(),\n deducted_amount: z.number().int().describe(\"Amount actually deducted from merchant balance in subunit\").nullable(),\n transaction_amount: z.number().int().describe(\"Original transaction amount in subunit\").nullable(),\n transaction_reference: z.string().describe(\"Reference of the original transaction\").nullable(),\n collect_account_number: z.boolean().describe(\"Whether account number collection is required\").nullable().optional(),\n}).passthrough().describe(\"Refund details returned by the API.\");\nexport const PaystackFetchRefundOutput = z.object({\n data: PaystackFetchRefund_FetchRefundDataSchema.nullable(),\n status: z.boolean().describe(\"Whether the API request was successful\").nullable(),\n message: z.string().describe(\"Response message from the API\").nullable(),\n}).passthrough().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 timestamps.\",\n input: PaystackFetchRefundInput,\n output: PaystackFetchRefundOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,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AASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;AACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAE/D,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -23,7 +23,7 @@ declare const PaystackFetchRefundOutput: z.ZodObject<{
|
|
|
23
23
|
risk_action: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
24
|
customer_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
25
|
international_format_phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
-
}, z.core.$
|
|
26
|
+
}, z.core.$loose>>;
|
|
27
27
|
createdAt: z.ZodNullable<z.ZodString>;
|
|
28
28
|
session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
29
|
settlement: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
@@ -42,10 +42,10 @@ declare const PaystackFetchRefundOutput: z.ZodObject<{
|
|
|
42
42
|
transaction_amount: z.ZodNullable<z.ZodNumber>;
|
|
43
43
|
transaction_reference: z.ZodNullable<z.ZodString>;
|
|
44
44
|
collect_account_number: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
45
|
-
}, z.core.$
|
|
45
|
+
}, z.core.$loose>>;
|
|
46
46
|
status: z.ZodNullable<z.ZodBoolean>;
|
|
47
47
|
message: z.ZodNullable<z.ZodString>;
|
|
48
|
-
}, z.core.$
|
|
48
|
+
}, z.core.$loose>;
|
|
49
49
|
declare const paystackFetchRefund: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
50
50
|
id: number;
|
|
51
51
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -23,7 +23,7 @@ declare const PaystackFetchRefundOutput: z.ZodObject<{
|
|
|
23
23
|
risk_action: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
24
|
customer_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
25
|
international_format_phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
-
}, z.core.$
|
|
26
|
+
}, z.core.$loose>>;
|
|
27
27
|
createdAt: z.ZodNullable<z.ZodString>;
|
|
28
28
|
session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
29
|
settlement: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
@@ -42,10 +42,10 @@ declare const PaystackFetchRefundOutput: z.ZodObject<{
|
|
|
42
42
|
transaction_amount: z.ZodNullable<z.ZodNumber>;
|
|
43
43
|
transaction_reference: z.ZodNullable<z.ZodString>;
|
|
44
44
|
collect_account_number: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
45
|
-
}, z.core.$
|
|
45
|
+
}, z.core.$loose>>;
|
|
46
46
|
status: z.ZodNullable<z.ZodBoolean>;
|
|
47
47
|
message: z.ZodNullable<z.ZodString>;
|
|
48
|
-
}, z.core.$
|
|
48
|
+
}, z.core.$loose>;
|
|
49
49
|
declare const paystackFetchRefund: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
50
50
|
id: number;
|
|
51
51
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -12,7 +12,7 @@ const PaystackFetchRefund_RefundCustomerSchema = z.object({
|
|
|
12
12
|
risk_action: z.string().describe("Risk action status for the customer").nullable().optional(),
|
|
13
13
|
customer_code: z.string().describe("Unique customer code").nullable().optional(),
|
|
14
14
|
international_format_phone: z.string().describe("Phone number in international format").nullable().optional()
|
|
15
|
-
}).describe("Customer details associated with the refund.");
|
|
15
|
+
}).passthrough().describe("Customer details associated with the refund.");
|
|
16
16
|
const PaystackFetchRefund_FetchRefundDataSchema = z.object({
|
|
17
17
|
id: z.number().int().describe("Unique refund ID").nullable(),
|
|
18
18
|
amount: z.number().int().describe("Refund amount in subunit (kobo for NGN, cents for USD, etc.)").nullable(),
|
|
@@ -40,7 +40,7 @@ const PaystackFetchRefund_FetchRefundDataSchema = z.object({
|
|
|
40
40
|
transaction_amount: z.number().int().describe("Original transaction amount in subunit").nullable(),
|
|
41
41
|
transaction_reference: z.string().describe("Reference of the original transaction").nullable(),
|
|
42
42
|
collect_account_number: z.boolean().describe("Whether account number collection is required").nullable().optional()
|
|
43
|
-
}).describe("Refund details returned by the API.");
|
|
43
|
+
}).passthrough().describe("Refund details returned by the API.");
|
|
44
44
|
const paystackFetchRefund = action("PAYSTACK_FETCH_REFUND", {
|
|
45
45
|
slug: "paystack-fetch-refund",
|
|
46
46
|
name: "Fetch Refund",
|
|
@@ -50,7 +50,7 @@ const paystackFetchRefund = action("PAYSTACK_FETCH_REFUND", {
|
|
|
50
50
|
data: PaystackFetchRefund_FetchRefundDataSchema.nullable(),
|
|
51
51
|
status: z.boolean().describe("Whether the API request was successful").nullable(),
|
|
52
52
|
message: z.string().describe("Response message from the API").nullable()
|
|
53
|
-
}).describe("Response containing refund details.")
|
|
53
|
+
}).passthrough().describe("Response containing refund details.")
|
|
54
54
|
});
|
|
55
55
|
//#endregion
|
|
56
56
|
export { paystackFetchRefund };
|
|
@@ -1 +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.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.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.object({\n id: z.number().int().describe(\"Unique refund ID\").nullable(),\n amount: z.number().int().describe(\"Refund amount in subunit (kobo for NGN, cents for USD, etc.)\").nullable(),\n domain: z.string().describe(\"Domain (test or live)\").nullable(),\n reason: z.string().describe(\"Reason for the refund\").nullable(),\n status: z.string().describe(\"Refund status (e.g., 'pending', 'processed', 'failed')\").nullable(),\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)\").nullable(),\n customer: PaystackFetchRefund_RefundCustomerSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the refund was created\").nullable(),\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\").nullable(),\n refund_type: z.string().describe(\"Type of refund\").nullable(),\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\").nullable(),\n transaction: z.number().int().describe(\"Transaction ID that was refunded\").nullable(),\n initiated_by: z.string().describe(\"Who initiated the refund\").nullable(),\n customer_note: z.string().describe(\"Note sent to the customer explaining the refund\").nullable(),\n merchant_note: z.string().describe(\"Internal merchant note about the refund\").nullable(),\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)\").nullable(),\n refund_channel: z.string().describe(\"Channel through which the refund was processed\").nullable(),\n deducted_amount: z.number().int().describe(\"Amount actually deducted from merchant balance in subunit\").nullable(),\n transaction_amount: z.number().int().describe(\"Original transaction amount in subunit\").nullable(),\n transaction_reference: z.string().describe(\"Reference of the original transaction\").nullable(),\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.object({\n data: PaystackFetchRefund_FetchRefundDataSchema.nullable(),\n status: z.boolean().describe(\"Whether the API request was successful\").nullable(),\n message: z.string().describe(\"Response message from the API\").nullable(),\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 timestamps.\",\n input: PaystackFetchRefundInput,\n output: PaystackFetchRefundOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO,EAC/C,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,EACxE,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,2CAA2C,EAAE,OAAO;CACxD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,4BAA4B,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,SAAS,8CAA8C;
|
|
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.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.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}).passthrough().describe(\"Customer details associated with the refund.\");\nconst PaystackFetchRefund_FetchRefundDataSchema = z.object({\n id: z.number().int().describe(\"Unique refund ID\").nullable(),\n amount: z.number().int().describe(\"Refund amount in subunit (kobo for NGN, cents for USD, etc.)\").nullable(),\n domain: z.string().describe(\"Domain (test or live)\").nullable(),\n reason: z.string().describe(\"Reason for the refund\").nullable(),\n status: z.string().describe(\"Refund status (e.g., 'pending', 'processed', 'failed')\").nullable(),\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)\").nullable(),\n customer: PaystackFetchRefund_RefundCustomerSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the refund was created\").nullable(),\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\").nullable(),\n refund_type: z.string().describe(\"Type of refund\").nullable(),\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\").nullable(),\n transaction: z.number().int().describe(\"Transaction ID that was refunded\").nullable(),\n initiated_by: z.string().describe(\"Who initiated the refund\").nullable(),\n customer_note: z.string().describe(\"Note sent to the customer explaining the refund\").nullable(),\n merchant_note: z.string().describe(\"Internal merchant note about the refund\").nullable(),\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)\").nullable(),\n refund_channel: z.string().describe(\"Channel through which the refund was processed\").nullable(),\n deducted_amount: z.number().int().describe(\"Amount actually deducted from merchant balance in subunit\").nullable(),\n transaction_amount: z.number().int().describe(\"Original transaction amount in subunit\").nullable(),\n transaction_reference: z.string().describe(\"Reference of the original transaction\").nullable(),\n collect_account_number: z.boolean().describe(\"Whether account number collection is required\").nullable().optional(),\n}).passthrough().describe(\"Refund details returned by the API.\");\nexport const PaystackFetchRefundOutput = z.object({\n data: PaystackFetchRefund_FetchRefundDataSchema.nullable(),\n status: z.boolean().describe(\"Whether the API request was successful\").nullable(),\n message: z.string().describe(\"Response message from the API\").nullable(),\n}).passthrough().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 timestamps.\",\n input: PaystackFetchRefundInput,\n output: PaystackFetchRefundOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO,EAC/C,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,EACxE,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,2CAA2C,EAAE,OAAO;CACxD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,4BAA4B,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,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