@tirdad/sdk 2.1.46 → 2.1.48
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/esm/funcs/commitments-get-commitment-billing-terms.d.ts +17 -0
- package/esm/funcs/commitments-get-commitment-billing-terms.d.ts.map +1 -0
- package/esm/funcs/commitments-get-commitment-billing-terms.js +91 -0
- package/esm/funcs/commitments-get-commitment-billing-terms.js.map +1 -0
- package/esm/funcs/commitments-list-commitment-instalments.d.ts +17 -0
- package/esm/funcs/commitments-list-commitment-instalments.d.ts.map +1 -0
- package/esm/funcs/commitments-list-commitment-instalments.js +96 -0
- package/esm/funcs/commitments-list-commitment-instalments.js.map +1 -0
- package/esm/funcs/commitments-preview-commitment-billing-terms.d.ts +17 -0
- package/esm/funcs/commitments-preview-commitment-billing-terms.d.ts.map +1 -0
- package/esm/funcs/commitments-preview-commitment-billing-terms.js +93 -0
- package/esm/funcs/commitments-preview-commitment-billing-terms.js.map +1 -0
- package/esm/funcs/commitments-replace-commitment-billing-terms.d.ts +17 -0
- package/esm/funcs/commitments-replace-commitment-billing-terms.d.ts.map +1 -0
- package/esm/funcs/commitments-replace-commitment-billing-terms.js +93 -0
- package/esm/funcs/commitments-replace-commitment-billing-terms.js.map +1 -0
- package/esm/funcs/commitments-terminate-commitment.d.ts +1 -1
- package/esm/funcs/commitments-terminate-commitment.js +1 -1
- package/esm/funcs/commitments-trigger-commitment-instalment.d.ts +17 -0
- package/esm/funcs/commitments-trigger-commitment-instalment.d.ts.map +1 -0
- package/esm/funcs/commitments-trigger-commitment-instalment.js +98 -0
- package/esm/funcs/commitments-trigger-commitment-instalment.js.map +1 -0
- package/esm/funcs/events-get-usage-analytics.d.ts +5 -0
- package/esm/funcs/events-get-usage-analytics.d.ts.map +1 -1
- package/esm/funcs/events-get-usage-analytics.js +5 -0
- package/esm/funcs/events-get-usage-analytics.js.map +1 -1
- package/esm/funcs/prices-get-price-history.d.ts +17 -0
- package/esm/funcs/prices-get-price-history.d.ts.map +1 -0
- package/esm/funcs/prices-get-price-history.js +91 -0
- package/esm/funcs/prices-get-price-history.js.map +1 -0
- package/esm/funcs/subscriptions-get-subscription-line-item-history.d.ts +17 -0
- package/esm/funcs/subscriptions-get-subscription-line-item-history.d.ts.map +1 -0
- package/esm/funcs/subscriptions-get-subscription-line-item-history.js +91 -0
- package/esm/funcs/subscriptions-get-subscription-line-item-history.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-billing-instalment-cancelled.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-billing-instalment-cancelled.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-billing-instalment-cancelled.js +69 -0
- package/esm/funcs/webhook-events-post-webhook-events-billing-instalment-cancelled.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-billing-instalment-created.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-billing-instalment-created.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-billing-instalment-created.js +69 -0
- package/esm/funcs/webhook-events-post-webhook-events-billing-instalment-created.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-billing-instalment-invoiced.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-billing-instalment-invoiced.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-billing-instalment-invoiced.js +69 -0
- package/esm/funcs/webhook-events-post-webhook-events-billing-instalment-invoiced.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-billing-instalment-updated.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-billing-instalment-updated.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-billing-instalment-updated.js +69 -0
- package/esm/funcs/webhook-events-post-webhook-events-billing-instalment-updated.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-billing-terms-created.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-billing-terms-created.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-billing-terms-created.js +69 -0
- package/esm/funcs/webhook-events-post-webhook-events-billing-terms-created.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-billing-terms-updated.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-billing-terms-updated.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-billing-terms-updated.js +69 -0
- package/esm/funcs/webhook-events-post-webhook-events-billing-terms-updated.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-payment-attempt-failed.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-payment-attempt-failed.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-payment-attempt-failed.js +69 -0
- package/esm/funcs/webhook-events-post-webhook-events-payment-attempt-failed.js.map +1 -0
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.d.ts.map +1 -1
- package/esm/lib/config.js +10 -2
- package/esm/lib/config.js.map +1 -1
- package/esm/sdk/commitments.d.ts +36 -1
- package/esm/sdk/commitments.d.ts.map +1 -1
- package/esm/sdk/commitments.js +51 -1
- package/esm/sdk/commitments.js.map +1 -1
- package/esm/sdk/events.d.ts +5 -0
- package/esm/sdk/events.d.ts.map +1 -1
- package/esm/sdk/events.js +5 -0
- package/esm/sdk/events.js.map +1 -1
- package/esm/sdk/models/billing-term-input.d.ts +67 -0
- package/esm/sdk/models/billing-term-input.d.ts.map +1 -0
- package/esm/sdk/models/billing-term-input.js +43 -0
- package/esm/sdk/models/billing-term-input.js.map +1 -0
- package/esm/sdk/models/billing-term-kind.d.ts +12 -0
- package/esm/sdk/models/billing-term-kind.d.ts.map +1 -0
- package/esm/sdk/models/billing-term-kind.js +13 -0
- package/esm/sdk/models/billing-term-kind.js.map +1 -0
- package/esm/sdk/models/billing-term-owner-type.d.ts +9 -0
- package/esm/sdk/models/billing-term-owner-type.d.ts.map +1 -0
- package/esm/sdk/models/billing-term-owner-type.js +10 -0
- package/esm/sdk/models/billing-term-owner-type.js.map +1 -0
- package/esm/sdk/models/billing-term-split.d.ts +12 -0
- package/esm/sdk/models/billing-term-split.d.ts.map +1 -0
- package/esm/sdk/models/billing-term-split.js +13 -0
- package/esm/sdk/models/billing-term-split.js.map +1 -0
- package/esm/sdk/models/billing-term-value-type.d.ts +19 -0
- package/esm/sdk/models/billing-term-value-type.d.ts.map +1 -0
- package/esm/sdk/models/billing-term-value-type.js +17 -0
- package/esm/sdk/models/billing-term-value-type.js.map +1 -0
- package/esm/sdk/models/billing-terms-response.d.ts +13 -0
- package/esm/sdk/models/billing-terms-response.d.ts.map +1 -0
- package/esm/sdk/models/billing-terms-response.js +22 -0
- package/esm/sdk/models/billing-terms-response.js.map +1 -0
- package/esm/sdk/models/billingterm-instalment.d.ts +43 -0
- package/esm/sdk/models/billingterm-instalment.d.ts.map +1 -0
- package/esm/sdk/models/billingterm-instalment.js +68 -0
- package/esm/sdk/models/billingterm-instalment.js.map +1 -0
- package/esm/sdk/models/billingterm-term.d.ts +57 -0
- package/esm/sdk/models/billingterm-term.d.ts.map +1 -0
- package/esm/sdk/models/billingterm-term.js +65 -0
- package/esm/sdk/models/billingterm-term.js.map +1 -0
- package/esm/sdk/models/cancellation-fee-input.d.ts +18 -0
- package/esm/sdk/models/cancellation-fee-input.d.ts.map +1 -0
- package/esm/sdk/models/cancellation-fee-input.js +14 -0
- package/esm/sdk/models/cancellation-fee-input.js.map +1 -0
- package/esm/sdk/models/cancellation-fee-type.d.ts +16 -0
- package/esm/sdk/models/cancellation-fee-type.d.ts.map +1 -0
- package/esm/sdk/models/cancellation-fee-type.js +14 -0
- package/esm/sdk/models/cancellation-fee-type.js.map +1 -0
- package/esm/sdk/models/commitment-response.d.ts +9 -1
- package/esm/sdk/models/commitment-response.d.ts.map +1 -1
- package/esm/sdk/models/commitment-response.js +7 -1
- package/esm/sdk/models/commitment-response.js.map +1 -1
- package/esm/sdk/models/create-commitment-request.d.ts +12 -0
- package/esm/sdk/models/create-commitment-request.d.ts.map +1 -1
- package/esm/sdk/models/create-commitment-request.js +6 -0
- package/esm/sdk/models/create-commitment-request.js.map +1 -1
- package/esm/sdk/models/get-commitment-billing-terms-op.d.ts +15 -0
- package/esm/sdk/models/get-commitment-billing-terms-op.d.ts.map +1 -0
- package/esm/sdk/models/get-commitment-billing-terms-op.js +12 -0
- package/esm/sdk/models/get-commitment-billing-terms-op.js.map +1 -0
- package/esm/sdk/models/get-price-history-op.d.ts +15 -0
- package/esm/sdk/models/get-price-history-op.d.ts.map +1 -0
- package/esm/sdk/models/get-price-history-op.js +12 -0
- package/esm/sdk/models/get-price-history-op.js.map +1 -0
- package/esm/sdk/models/get-subscription-line-item-history-op.d.ts +15 -0
- package/esm/sdk/models/get-subscription-line-item-history-op.d.ts.map +1 -0
- package/esm/sdk/models/get-subscription-line-item-history-op.js +12 -0
- package/esm/sdk/models/get-subscription-line-item-history-op.js.map +1 -0
- package/esm/sdk/models/get-subscription-v2-op.d.ts +1 -1
- package/esm/sdk/models/grouped-invoicing-child-request.d.ts +3 -0
- package/esm/sdk/models/grouped-invoicing-child-request.d.ts.map +1 -1
- package/esm/sdk/models/grouped-invoicing-child-request.js +3 -0
- package/esm/sdk/models/grouped-invoicing-child-request.js.map +1 -1
- package/esm/sdk/models/index.d.ts +28 -0
- package/esm/sdk/models/index.d.ts.map +1 -1
- package/esm/sdk/models/index.js +28 -0
- package/esm/sdk/models/index.js.map +1 -1
- package/esm/sdk/models/instalment-bill-trigger.d.ts +12 -0
- package/esm/sdk/models/instalment-bill-trigger.d.ts.map +1 -0
- package/esm/sdk/models/instalment-bill-trigger.js +13 -0
- package/esm/sdk/models/instalment-bill-trigger.js.map +1 -0
- package/esm/sdk/models/instalment-delivery.d.ts +12 -0
- package/esm/sdk/models/instalment-delivery.d.ts.map +1 -0
- package/esm/sdk/models/instalment-delivery.js +13 -0
- package/esm/sdk/models/instalment-delivery.js.map +1 -0
- package/esm/sdk/models/instalment-kind.d.ts +10 -0
- package/esm/sdk/models/instalment-kind.d.ts.map +1 -0
- package/esm/sdk/models/instalment-kind.js +11 -0
- package/esm/sdk/models/instalment-kind.js.map +1 -0
- package/esm/sdk/models/instalment-status.d.ts +11 -0
- package/esm/sdk/models/instalment-status.d.ts.map +1 -0
- package/esm/sdk/models/instalment-status.js +12 -0
- package/esm/sdk/models/instalment-status.js.map +1 -0
- package/esm/sdk/models/invoice-billing-reason.d.ts +2 -0
- package/esm/sdk/models/invoice-billing-reason.d.ts.map +1 -1
- package/esm/sdk/models/invoice-billing-reason.js +2 -0
- package/esm/sdk/models/invoice-billing-reason.js.map +1 -1
- package/esm/sdk/models/invoice-line-item-response.d.ts +4 -0
- package/esm/sdk/models/invoice-line-item-response.d.ts.map +1 -1
- package/esm/sdk/models/invoice-line-item-response.js +2 -0
- package/esm/sdk/models/invoice-line-item-response.js.map +1 -1
- package/esm/sdk/models/list-commitment-instalments-op.d.ts +20 -0
- package/esm/sdk/models/list-commitment-instalments-op.d.ts.map +1 -0
- package/esm/sdk/models/list-commitment-instalments-op.js +13 -0
- package/esm/sdk/models/list-commitment-instalments-op.js.map +1 -0
- package/esm/sdk/models/list-instalments-response.d.ts +11 -0
- package/esm/sdk/models/list-instalments-response.d.ts.map +1 -0
- package/esm/sdk/models/list-instalments-response.js +15 -0
- package/esm/sdk/models/list-instalments-response.js.map +1 -0
- package/esm/sdk/models/payment-attempt-response.d.ts +1 -0
- package/esm/sdk/models/payment-attempt-response.d.ts.map +1 -1
- package/esm/sdk/models/payment-attempt-response.js +2 -0
- package/esm/sdk/models/payment-attempt-response.js.map +1 -1
- package/esm/sdk/models/preview-commitment-billing-terms-op.d.ts +21 -0
- package/esm/sdk/models/preview-commitment-billing-terms-op.d.ts.map +1 -0
- package/esm/sdk/models/preview-commitment-billing-terms-op.js +14 -0
- package/esm/sdk/models/preview-commitment-billing-terms-op.js.map +1 -0
- package/esm/sdk/models/replace-billing-terms-request.d.ts +13 -0
- package/esm/sdk/models/replace-billing-terms-request.d.ts.map +1 -0
- package/esm/sdk/models/replace-billing-terms-request.js +18 -0
- package/esm/sdk/models/replace-billing-terms-request.js.map +1 -0
- package/esm/sdk/models/replace-commitment-billing-terms-op.d.ts +21 -0
- package/esm/sdk/models/replace-commitment-billing-terms-op.d.ts.map +1 -0
- package/esm/sdk/models/replace-commitment-billing-terms-op.js +14 -0
- package/esm/sdk/models/replace-commitment-billing-terms-op.js.map +1 -0
- package/esm/sdk/models/subscription-response-v2.d.ts +5 -0
- package/esm/sdk/models/subscription-response-v2.d.ts.map +1 -1
- package/esm/sdk/models/subscription-response-v2.js +2 -0
- package/esm/sdk/models/subscription-response-v2.js.map +1 -1
- package/esm/sdk/models/subscription-response.d.ts +5 -0
- package/esm/sdk/models/subscription-response.d.ts.map +1 -1
- package/esm/sdk/models/subscription-response.js +2 -0
- package/esm/sdk/models/subscription-response.js.map +1 -1
- package/esm/sdk/models/terminate-commitment-request.d.ts +6 -2
- package/esm/sdk/models/terminate-commitment-request.d.ts.map +1 -1
- package/esm/sdk/models/terminate-commitment-request.js +2 -1
- package/esm/sdk/models/terminate-commitment-request.js.map +1 -1
- package/esm/sdk/models/trigger-commitment-instalment-op.d.ts +26 -0
- package/esm/sdk/models/trigger-commitment-instalment-op.d.ts.map +1 -0
- package/esm/sdk/models/trigger-commitment-instalment-op.js +20 -0
- package/esm/sdk/models/trigger-commitment-instalment-op.js.map +1 -0
- package/esm/sdk/models/trigger-instalment-request.d.ts +15 -0
- package/esm/sdk/models/trigger-instalment-request.d.ts.map +1 -0
- package/esm/sdk/models/trigger-instalment-request.js +17 -0
- package/esm/sdk/models/trigger-instalment-request.js.map +1 -0
- package/esm/sdk/models/update-commitment-request.d.ts +5 -0
- package/esm/sdk/models/update-commitment-request.d.ts.map +1 -1
- package/esm/sdk/models/update-commitment-request.js +2 -0
- package/esm/sdk/models/update-commitment-request.js.map +1 -1
- package/esm/sdk/models/update-subscription-request.d.ts +3 -0
- package/esm/sdk/models/update-subscription-request.d.ts.map +1 -1
- package/esm/sdk/models/update-subscription-request.js +3 -0
- package/esm/sdk/models/update-subscription-request.js.map +1 -1
- package/esm/sdk/models/webhook-dto-billing-instalment-webhook-payload.d.ts +13 -0
- package/esm/sdk/models/webhook-dto-billing-instalment-webhook-payload.d.ts.map +1 -0
- package/esm/sdk/models/webhook-dto-billing-instalment-webhook-payload.js +22 -0
- package/esm/sdk/models/webhook-dto-billing-instalment-webhook-payload.js.map +1 -0
- package/esm/sdk/models/webhook-dto-billing-terms-webhook-payload.d.ts +16 -0
- package/esm/sdk/models/webhook-dto-billing-terms-webhook-payload.d.ts.map +1 -0
- package/esm/sdk/models/webhook-dto-billing-terms-webhook-payload.js +28 -0
- package/esm/sdk/models/webhook-dto-billing-terms-webhook-payload.js.map +1 -0
- package/esm/sdk/models/webhook-dto-invoice-line-item.d.ts +1 -0
- package/esm/sdk/models/webhook-dto-invoice-line-item.d.ts.map +1 -1
- package/esm/sdk/models/webhook-dto-invoice-line-item.js +2 -0
- package/esm/sdk/models/webhook-dto-invoice-line-item.js.map +1 -1
- package/esm/sdk/models/webhook-dto-payment-attempt-webhook-payload.d.ts +17 -0
- package/esm/sdk/models/webhook-dto-payment-attempt-webhook-payload.d.ts.map +1 -0
- package/esm/sdk/models/webhook-dto-payment-attempt-webhook-payload.js +27 -0
- package/esm/sdk/models/webhook-dto-payment-attempt-webhook-payload.js.map +1 -0
- package/esm/sdk/models/webhook-dto-payment-attempt.d.ts +17 -0
- package/esm/sdk/models/webhook-dto-payment-attempt.d.ts.map +1 -0
- package/esm/sdk/models/webhook-dto-payment-attempt.js +27 -0
- package/esm/sdk/models/webhook-dto-payment-attempt.js.map +1 -0
- package/esm/sdk/models/webhook-event-name.d.ts +7 -0
- package/esm/sdk/models/webhook-event-name.d.ts.map +1 -1
- package/esm/sdk/models/webhook-event-name.js +7 -0
- package/esm/sdk/models/webhook-event-name.js.map +1 -1
- package/esm/sdk/prices.d.ts +7 -0
- package/esm/sdk/prices.d.ts.map +1 -1
- package/esm/sdk/prices.js +10 -0
- package/esm/sdk/prices.js.map +1 -1
- package/esm/sdk/subscriptions.d.ts +7 -0
- package/esm/sdk/subscriptions.d.ts.map +1 -1
- package/esm/sdk/subscriptions.js +10 -0
- package/esm/sdk/subscriptions.js.map +1 -1
- package/esm/sdk/webhook-events.d.ts +49 -0
- package/esm/sdk/webhook-events.d.ts.map +1 -1
- package/esm/sdk/webhook-events.js +70 -0
- package/esm/sdk/webhook-events.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/commitments-get-commitment-billing-terms.ts +182 -0
- package/src/funcs/commitments-list-commitment-instalments.ts +191 -0
- package/src/funcs/commitments-preview-commitment-billing-terms.ts +192 -0
- package/src/funcs/commitments-replace-commitment-billing-terms.ts +190 -0
- package/src/funcs/commitments-terminate-commitment.ts +1 -1
- package/src/funcs/commitments-trigger-commitment-instalment.ts +197 -0
- package/src/funcs/events-get-usage-analytics.ts +5 -0
- package/src/funcs/prices-get-price-history.ts +181 -0
- package/src/funcs/subscriptions-get-subscription-line-item-history.ts +185 -0
- package/src/funcs/webhook-events-post-webhook-events-billing-instalment-cancelled.ts +144 -0
- package/src/funcs/webhook-events-post-webhook-events-billing-instalment-created.ts +144 -0
- package/src/funcs/webhook-events-post-webhook-events-billing-instalment-invoiced.ts +144 -0
- package/src/funcs/webhook-events-post-webhook-events-billing-instalment-updated.ts +144 -0
- package/src/funcs/webhook-events-post-webhook-events-billing-terms-created.ts +144 -0
- package/src/funcs/webhook-events-post-webhook-events-billing-terms-updated.ts +144 -0
- package/src/funcs/webhook-events-post-webhook-events-payment-attempt-failed.ts +144 -0
- package/src/lib/config.ts +10 -2
- package/src/sdk/commitments.ts +101 -1
- package/src/sdk/events.ts +5 -0
- package/src/sdk/models/billing-term-input.ts +127 -0
- package/src/sdk/models/billing-term-kind.ts +24 -0
- package/src/sdk/models/billing-term-owner-type.ts +16 -0
- package/src/sdk/models/billing-term-split.ts +24 -0
- package/src/sdk/models/billing-term-value-type.ts +31 -0
- package/src/sdk/models/billing-terms-response.ts +49 -0
- package/src/sdk/models/billingterm-instalment.ts +128 -0
- package/src/sdk/models/billingterm-term.ts +143 -0
- package/src/sdk/models/cancellation-fee-input.ts +40 -0
- package/src/sdk/models/cancellation-fee-type.ts +23 -0
- package/src/sdk/models/commitment-response.ts +22 -2
- package/src/sdk/models/create-commitment-request.ts +23 -0
- package/src/sdk/models/get-commitment-billing-terms-op.ts +35 -0
- package/src/sdk/models/get-price-history-op.ts +33 -0
- package/src/sdk/models/get-subscription-line-item-history-op.ts +36 -0
- package/src/sdk/models/get-subscription-v2-op.ts +1 -1
- package/src/sdk/models/grouped-invoicing-child-request.ts +8 -0
- package/src/sdk/models/index.ts +28 -0
- package/src/sdk/models/instalment-bill-trigger.ts +24 -0
- package/src/sdk/models/instalment-delivery.ts +24 -0
- package/src/sdk/models/instalment-kind.ts +19 -0
- package/src/sdk/models/instalment-status.ts +20 -0
- package/src/sdk/models/invoice-billing-reason.ts +2 -0
- package/src/sdk/models/invoice-line-item-response.ts +6 -0
- package/src/sdk/models/list-commitment-instalments-op.ts +41 -0
- package/src/sdk/models/list-instalments-response.ts +35 -0
- package/src/sdk/models/payment-attempt-response.ts +3 -0
- package/src/sdk/models/preview-commitment-billing-terms-op.ts +46 -0
- package/src/sdk/models/replace-billing-terms-request.ts +43 -0
- package/src/sdk/models/replace-commitment-billing-terms-op.ts +46 -0
- package/src/sdk/models/subscription-response-v2.ts +9 -0
- package/src/sdk/models/subscription-response.ts +9 -0
- package/src/sdk/models/terminate-commitment-request.ts +11 -3
- package/src/sdk/models/trigger-commitment-instalment-op.ts +60 -0
- package/src/sdk/models/trigger-instalment-request.ts +41 -0
- package/src/sdk/models/update-commitment-request.ts +7 -0
- package/src/sdk/models/update-subscription-request.ts +8 -0
- package/src/sdk/models/webhook-dto-billing-instalment-webhook-payload.ts +53 -0
- package/src/sdk/models/webhook-dto-billing-terms-webhook-payload.ts +61 -0
- package/src/sdk/models/webhook-dto-invoice-line-item.ts +3 -0
- package/src/sdk/models/webhook-dto-payment-attempt-webhook-payload.ts +61 -0
- package/src/sdk/models/webhook-dto-payment-attempt.ts +52 -0
- package/src/sdk/models/webhook-event-name.ts +7 -0
- package/src/sdk/prices.ts +18 -0
- package/src/sdk/subscriptions.ts +18 -0
- package/src/sdk/webhook-events.ts +112 -0
|
@@ -9,6 +9,11 @@ import {
|
|
|
9
9
|
ActiveWindow$Outbound,
|
|
10
10
|
ActiveWindow$outboundSchema,
|
|
11
11
|
} from "./active-window.js";
|
|
12
|
+
import {
|
|
13
|
+
BillingTermInput,
|
|
14
|
+
BillingTermInput$Outbound,
|
|
15
|
+
BillingTermInput$outboundSchema,
|
|
16
|
+
} from "./billing-term-input.js";
|
|
12
17
|
import {
|
|
13
18
|
CommitmentCollectionMethod,
|
|
14
19
|
CommitmentCollectionMethod$outboundSchema,
|
|
@@ -31,9 +36,17 @@ import {
|
|
|
31
36
|
CommitmentType,
|
|
32
37
|
CommitmentType$outboundSchema,
|
|
33
38
|
} from "./commitment-type.js";
|
|
39
|
+
import {
|
|
40
|
+
InstalmentDelivery,
|
|
41
|
+
InstalmentDelivery$outboundSchema,
|
|
42
|
+
} from "./instalment-delivery.js";
|
|
34
43
|
|
|
35
44
|
export type CreateCommitmentRequest = {
|
|
36
45
|
activeWindows?: Array<ActiveWindow> | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* BillingTerms apply only to collection_method billing_terms, which requires at least one.
|
|
48
|
+
*/
|
|
49
|
+
billingTerms?: Array<BillingTermInput> | undefined;
|
|
37
50
|
/**
|
|
38
51
|
* default false
|
|
39
52
|
*/
|
|
@@ -45,6 +58,7 @@ export type CreateCommitmentRequest = {
|
|
|
45
58
|
*/
|
|
46
59
|
endDate?: Date | undefined;
|
|
47
60
|
idempotencyKey?: string | undefined;
|
|
61
|
+
instalmentInvoicing?: InstalmentDelivery | undefined;
|
|
48
62
|
invoiceDescription?: string | undefined;
|
|
49
63
|
invoiceLabel?: string | undefined;
|
|
50
64
|
measurement: CommitmentMeasurement;
|
|
@@ -53,6 +67,9 @@ export type CreateCommitmentRequest = {
|
|
|
53
67
|
overagePrice?: CommitmentPriceInput | undefined;
|
|
54
68
|
priority?: number | undefined;
|
|
55
69
|
scope: CommitmentScopeInput;
|
|
70
|
+
/**
|
|
71
|
+
* StartDate and EndDate within a second after a billing period edge are taken as that edge.
|
|
72
|
+
*/
|
|
56
73
|
startDate: Date;
|
|
57
74
|
/**
|
|
58
75
|
* SubscriptionID is required on POST /commitments and set server-side on inline commitments.
|
|
@@ -66,11 +83,13 @@ export type CreateCommitmentRequest = {
|
|
|
66
83
|
/** @internal */
|
|
67
84
|
export type CreateCommitmentRequest$Outbound = {
|
|
68
85
|
active_windows?: Array<ActiveWindow$Outbound> | undefined;
|
|
86
|
+
billing_terms?: Array<BillingTermInput$Outbound> | undefined;
|
|
69
87
|
binding?: boolean | undefined;
|
|
70
88
|
collection_method?: string | undefined;
|
|
71
89
|
committed_price?: CommitmentPriceInput$Outbound | undefined;
|
|
72
90
|
end_date?: string | undefined;
|
|
73
91
|
idempotency_key?: string | undefined;
|
|
92
|
+
instalment_invoicing?: string | undefined;
|
|
74
93
|
invoice_description?: string | undefined;
|
|
75
94
|
invoice_label?: string | undefined;
|
|
76
95
|
measurement: string;
|
|
@@ -93,11 +112,13 @@ export const CreateCommitmentRequest$outboundSchema: z.ZodMiniType<
|
|
|
93
112
|
> = z.pipe(
|
|
94
113
|
z.object({
|
|
95
114
|
activeWindows: z.optional(z.array(ActiveWindow$outboundSchema)),
|
|
115
|
+
billingTerms: z.optional(z.array(BillingTermInput$outboundSchema)),
|
|
96
116
|
binding: z.optional(z.boolean()),
|
|
97
117
|
collectionMethod: z.optional(CommitmentCollectionMethod$outboundSchema),
|
|
98
118
|
committedPrice: z.optional(CommitmentPriceInput$outboundSchema),
|
|
99
119
|
endDate: z.optional(z.pipe(z.date(), z.transform(v => v.toISOString()))),
|
|
100
120
|
idempotencyKey: z.optional(z.string()),
|
|
121
|
+
instalmentInvoicing: z.optional(InstalmentDelivery$outboundSchema),
|
|
101
122
|
invoiceDescription: z.optional(z.string()),
|
|
102
123
|
invoiceLabel: z.optional(z.string()),
|
|
103
124
|
measurement: CommitmentMeasurement$outboundSchema,
|
|
@@ -115,10 +136,12 @@ export const CreateCommitmentRequest$outboundSchema: z.ZodMiniType<
|
|
|
115
136
|
z.transform((v) => {
|
|
116
137
|
return remap$(v, {
|
|
117
138
|
activeWindows: "active_windows",
|
|
139
|
+
billingTerms: "billing_terms",
|
|
118
140
|
collectionMethod: "collection_method",
|
|
119
141
|
committedPrice: "committed_price",
|
|
120
142
|
endDate: "end_date",
|
|
121
143
|
idempotencyKey: "idempotency_key",
|
|
144
|
+
instalmentInvoicing: "instalment_invoicing",
|
|
122
145
|
invoiceDescription: "invoice_description",
|
|
123
146
|
invoiceLabel: "invoice_label",
|
|
124
147
|
overagePrice: "overage_price",
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
|
|
7
|
+
export type GetCommitmentBillingTermsRequest = {
|
|
8
|
+
/**
|
|
9
|
+
* Commitment ID
|
|
10
|
+
*/
|
|
11
|
+
id: string;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export type GetCommitmentBillingTermsRequest$Outbound = {
|
|
16
|
+
id: string;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const GetCommitmentBillingTermsRequest$outboundSchema: z.ZodMiniType<
|
|
21
|
+
GetCommitmentBillingTermsRequest$Outbound,
|
|
22
|
+
GetCommitmentBillingTermsRequest
|
|
23
|
+
> = z.object({
|
|
24
|
+
id: z.string(),
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
export function getCommitmentBillingTermsRequestToJSON(
|
|
28
|
+
getCommitmentBillingTermsRequest: GetCommitmentBillingTermsRequest,
|
|
29
|
+
): string {
|
|
30
|
+
return JSON.stringify(
|
|
31
|
+
GetCommitmentBillingTermsRequest$outboundSchema.parse(
|
|
32
|
+
getCommitmentBillingTermsRequest,
|
|
33
|
+
),
|
|
34
|
+
);
|
|
35
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
|
|
7
|
+
export type GetPriceHistoryRequest = {
|
|
8
|
+
/**
|
|
9
|
+
* Price ID
|
|
10
|
+
*/
|
|
11
|
+
id: string;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export type GetPriceHistoryRequest$Outbound = {
|
|
16
|
+
id: string;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const GetPriceHistoryRequest$outboundSchema: z.ZodMiniType<
|
|
21
|
+
GetPriceHistoryRequest$Outbound,
|
|
22
|
+
GetPriceHistoryRequest
|
|
23
|
+
> = z.object({
|
|
24
|
+
id: z.string(),
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
export function getPriceHistoryRequestToJSON(
|
|
28
|
+
getPriceHistoryRequest: GetPriceHistoryRequest,
|
|
29
|
+
): string {
|
|
30
|
+
return JSON.stringify(
|
|
31
|
+
GetPriceHistoryRequest$outboundSchema.parse(getPriceHistoryRequest),
|
|
32
|
+
);
|
|
33
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
|
|
7
|
+
export type GetSubscriptionLineItemHistoryRequest = {
|
|
8
|
+
/**
|
|
9
|
+
* Line item ID
|
|
10
|
+
*/
|
|
11
|
+
id: string;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export type GetSubscriptionLineItemHistoryRequest$Outbound = {
|
|
16
|
+
id: string;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const GetSubscriptionLineItemHistoryRequest$outboundSchema:
|
|
21
|
+
z.ZodMiniType<
|
|
22
|
+
GetSubscriptionLineItemHistoryRequest$Outbound,
|
|
23
|
+
GetSubscriptionLineItemHistoryRequest
|
|
24
|
+
> = z.object({
|
|
25
|
+
id: z.string(),
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export function getSubscriptionLineItemHistoryRequestToJSON(
|
|
29
|
+
getSubscriptionLineItemHistoryRequest: GetSubscriptionLineItemHistoryRequest,
|
|
30
|
+
): string {
|
|
31
|
+
return JSON.stringify(
|
|
32
|
+
GetSubscriptionLineItemHistoryRequest$outboundSchema.parse(
|
|
33
|
+
getSubscriptionLineItemHistoryRequest,
|
|
34
|
+
),
|
|
35
|
+
);
|
|
36
|
+
}
|
|
@@ -10,7 +10,7 @@ export type GetSubscriptionV2Request = {
|
|
|
10
10
|
*/
|
|
11
11
|
id: string;
|
|
12
12
|
/**
|
|
13
|
-
* Comma-separated list of fields to expand (e.g., 'subscription_line_items,prices,plan')
|
|
13
|
+
* Comma-separated list of fields to expand (e.g., 'subscription_line_items,prices,plan,commitments')
|
|
14
14
|
*/
|
|
15
15
|
expand?: string | undefined;
|
|
16
16
|
};
|
|
@@ -43,6 +43,10 @@ import {
|
|
|
43
43
|
OverrideLineItemRequest$Outbound,
|
|
44
44
|
OverrideLineItemRequest$outboundSchema,
|
|
45
45
|
} from "./override-line-item-request.js";
|
|
46
|
+
import {
|
|
47
|
+
ProrationBehavior,
|
|
48
|
+
ProrationBehavior$outboundSchema,
|
|
49
|
+
} from "./proration-behavior.js";
|
|
46
50
|
import {
|
|
47
51
|
SubscriptionCouponInput,
|
|
48
52
|
SubscriptionCouponInput$Outbound,
|
|
@@ -90,6 +94,7 @@ export type GroupedInvoicingChildRequest = {
|
|
|
90
94
|
overrideLineItems?: Array<OverrideLineItemRequest> | undefined;
|
|
91
95
|
phases?: Array<SubscriptionPhaseCreateRequest> | undefined;
|
|
92
96
|
planId: string;
|
|
97
|
+
prorationBehavior?: ProrationBehavior | undefined;
|
|
93
98
|
/**
|
|
94
99
|
* SubscriptionCoupons is the preferred way to attach coupons at creation.
|
|
95
100
|
*
|
|
@@ -131,6 +136,7 @@ export type GroupedInvoicingChildRequest$Outbound = {
|
|
|
131
136
|
override_line_items?: Array<OverrideLineItemRequest$Outbound> | undefined;
|
|
132
137
|
phases?: Array<SubscriptionPhaseCreateRequest$Outbound> | undefined;
|
|
133
138
|
plan_id: string;
|
|
139
|
+
proration_behavior?: string | undefined;
|
|
134
140
|
subscription_coupons?: Array<SubscriptionCouponInput$Outbound> | undefined;
|
|
135
141
|
subscription_entitlement_grants?:
|
|
136
142
|
| Array<CreateSubscriptionEntitlementGrantRequest$Outbound>
|
|
@@ -168,6 +174,7 @@ export const GroupedInvoicingChildRequest$outboundSchema: z.ZodMiniType<
|
|
|
168
174
|
),
|
|
169
175
|
phases: z.optional(z.array(SubscriptionPhaseCreateRequest$outboundSchema)),
|
|
170
176
|
planId: z.string(),
|
|
177
|
+
prorationBehavior: z.optional(ProrationBehavior$outboundSchema),
|
|
171
178
|
subscriptionCoupons: z.optional(
|
|
172
179
|
z.array(SubscriptionCouponInput$outboundSchema),
|
|
173
180
|
),
|
|
@@ -191,6 +198,7 @@ export const GroupedInvoicingChildRequest$outboundSchema: z.ZodMiniType<
|
|
|
191
198
|
overrideEntitlements: "override_entitlements",
|
|
192
199
|
overrideLineItems: "override_line_items",
|
|
193
200
|
planId: "plan_id",
|
|
201
|
+
prorationBehavior: "proration_behavior",
|
|
194
202
|
subscriptionCoupons: "subscription_coupons",
|
|
195
203
|
subscriptionEntitlementGrants: "subscription_entitlement_grants",
|
|
196
204
|
taxRateOverrides: "tax_rate_overrides",
|
package/src/sdk/models/index.ts
CHANGED
|
@@ -69,7 +69,15 @@ export * from "./billing-period-behaviour.js";
|
|
|
69
69
|
export * from "./billing-period-config.js";
|
|
70
70
|
export * from "./billing-period-info.js";
|
|
71
71
|
export * from "./billing-period.js";
|
|
72
|
+
export * from "./billing-term-input.js";
|
|
73
|
+
export * from "./billing-term-kind.js";
|
|
74
|
+
export * from "./billing-term-owner-type.js";
|
|
75
|
+
export * from "./billing-term-split.js";
|
|
76
|
+
export * from "./billing-term-value-type.js";
|
|
77
|
+
export * from "./billing-terms-response.js";
|
|
72
78
|
export * from "./billing-tier.js";
|
|
79
|
+
export * from "./billingterm-instalment.js";
|
|
80
|
+
export * from "./billingterm-term.js";
|
|
73
81
|
export * from "./bucket-summary.js";
|
|
74
82
|
export * from "./bucket.js";
|
|
75
83
|
export * from "./bulk-ingest-event-request.js";
|
|
@@ -82,6 +90,8 @@ export * from "./cancel-subscription-op.js";
|
|
|
82
90
|
export * from "./cancel-subscription-request.js";
|
|
83
91
|
export * from "./cancel-subscription-response.js";
|
|
84
92
|
export * from "./cancel-subscription-schedule-op.js";
|
|
93
|
+
export * from "./cancellation-fee-input.js";
|
|
94
|
+
export * from "./cancellation-fee-type.js";
|
|
85
95
|
export * from "./cancellation-type.js";
|
|
86
96
|
export * from "./changed-addon-association-action.js";
|
|
87
97
|
export * from "./changed-addon-association.js";
|
|
@@ -317,6 +327,7 @@ export * from "./get-addon-op.js";
|
|
|
317
327
|
export * from "./get-alert-settings-op.js";
|
|
318
328
|
export * from "./get-analytics-view-op.js";
|
|
319
329
|
export * from "./get-checkout-session-op.js";
|
|
330
|
+
export * from "./get-commitment-billing-terms-op.js";
|
|
320
331
|
export * from "./get-commitment-op.js";
|
|
321
332
|
export * from "./get-contract-op.js";
|
|
322
333
|
export * from "./get-cost-analytics-request.js";
|
|
@@ -355,6 +366,7 @@ export * from "./get-plan-entitlements-op.js";
|
|
|
355
366
|
export * from "./get-plan-op.js";
|
|
356
367
|
export * from "./get-preview-invoice-request.js";
|
|
357
368
|
export * from "./get-price-by-lookup-key-op.js";
|
|
369
|
+
export * from "./get-price-history-op.js";
|
|
358
370
|
export * from "./get-price-op.js";
|
|
359
371
|
export * from "./get-price-unit-by-code-op.js";
|
|
360
372
|
export * from "./get-price-unit-op.js";
|
|
@@ -364,6 +376,7 @@ export * from "./get-refund-op.js";
|
|
|
364
376
|
export * from "./get-scheduled-task-op.js";
|
|
365
377
|
export * from "./get-subscription-addon-associations-op.js";
|
|
366
378
|
export * from "./get-subscription-entitlements-op.js";
|
|
379
|
+
export * from "./get-subscription-line-item-history-op.js";
|
|
367
380
|
export * from "./get-subscription-op.js";
|
|
368
381
|
export * from "./get-subscription-schedule-op.js";
|
|
369
382
|
export * from "./get-subscription-upcoming-grants-op.js";
|
|
@@ -402,6 +415,10 @@ export * from "./improvement-direction.js";
|
|
|
402
415
|
export * from "./ingest-event-request.js";
|
|
403
416
|
export * from "./inheritance-action.js";
|
|
404
417
|
export * from "./inline-fx-rate.js";
|
|
418
|
+
export * from "./instalment-bill-trigger.js";
|
|
419
|
+
export * from "./instalment-delivery.js";
|
|
420
|
+
export * from "./instalment-kind.js";
|
|
421
|
+
export * from "./instalment-status.js";
|
|
405
422
|
export * from "./integration-config-entry.js";
|
|
406
423
|
export * from "./integration-config-response.js";
|
|
407
424
|
export * from "./integration-entity-type.js";
|
|
@@ -444,6 +461,7 @@ export * from "./list-alert-settings-response.js";
|
|
|
444
461
|
export * from "./list-all-subscription-schedules-op.js";
|
|
445
462
|
export * from "./list-analytics-views-op.js";
|
|
446
463
|
export * from "./list-api-keys-op.js";
|
|
464
|
+
export * from "./list-commitment-instalments-op.js";
|
|
447
465
|
export * from "./list-commitments-response.js";
|
|
448
466
|
export * from "./list-contracts-response.js";
|
|
449
467
|
export * from "./list-costsheet-response.js";
|
|
@@ -459,6 +477,7 @@ export * from "./list-entity-integration-mappings-response.js";
|
|
|
459
477
|
export * from "./list-features-response.js";
|
|
460
478
|
export * from "./list-fx-rates-response.js";
|
|
461
479
|
export * from "./list-groups-response.js";
|
|
480
|
+
export * from "./list-instalments-response.js";
|
|
462
481
|
export * from "./list-invoices-response.js";
|
|
463
482
|
export * from "./list-journal-entries-response.js";
|
|
464
483
|
export * from "./list-payments-op.js";
|
|
@@ -543,6 +562,7 @@ export * from "./pob-filter.js";
|
|
|
543
562
|
export * from "./point-bucket.js";
|
|
544
563
|
export * from "./poll-self-billing-checkout-op.js";
|
|
545
564
|
export * from "./portal-session-response.js";
|
|
565
|
+
export * from "./preview-commitment-billing-terms-op.js";
|
|
546
566
|
export * from "./preview-subscription-change-op.js";
|
|
547
567
|
export * from "./preview-subscription-modify-op.js";
|
|
548
568
|
export * from "./preview-subscription-plan-change-v2-op.js";
|
|
@@ -586,6 +606,8 @@ export * from "./rejected-event-reason.js";
|
|
|
586
606
|
export * from "./remove-addon-ref.js";
|
|
587
607
|
export * from "./remove-addon-request.js";
|
|
588
608
|
export * from "./remove-user-op.js";
|
|
609
|
+
export * from "./replace-billing-terms-request.js";
|
|
610
|
+
export * from "./replace-commitment-billing-terms-op.js";
|
|
589
611
|
export * from "./report-catalog-entry.js";
|
|
590
612
|
export * from "./report-catalog-response.js";
|
|
591
613
|
export * from "./report-category.js";
|
|
@@ -743,8 +765,10 @@ export * from "./transaction-reason.js";
|
|
|
743
765
|
export * from "./transaction-status.js";
|
|
744
766
|
export * from "./transaction-type.js";
|
|
745
767
|
export * from "./trial-end-action.js";
|
|
768
|
+
export * from "./trigger-commitment-instalment-op.js";
|
|
746
769
|
export * from "./trigger-force-run-request.js";
|
|
747
770
|
export * from "./trigger-force-run-response.js";
|
|
771
|
+
export * from "./trigger-instalment-request.js";
|
|
748
772
|
export * from "./trigger-invoice-comms-webhook-op.js";
|
|
749
773
|
export * from "./trigger-scheduled-task-run-op.js";
|
|
750
774
|
export * from "./update-addon-op.js";
|
|
@@ -842,6 +866,8 @@ export * from "./waterfall-request.js";
|
|
|
842
866
|
export * from "./waterfall-response.js";
|
|
843
867
|
export * from "./waterfall-row.js";
|
|
844
868
|
export * from "./webhook-dto-alert-webhook-payload.js";
|
|
869
|
+
export * from "./webhook-dto-billing-instalment-webhook-payload.js";
|
|
870
|
+
export * from "./webhook-dto-billing-terms-webhook-payload.js";
|
|
845
871
|
export * from "./webhook-dto-checkout-session-webhook-payload.js";
|
|
846
872
|
export * from "./webhook-dto-checkout-session.js";
|
|
847
873
|
export * from "./webhook-dto-commitment-webhook-payload.js";
|
|
@@ -861,6 +887,8 @@ export * from "./webhook-dto-invoice-sync-webhook-payload.js";
|
|
|
861
887
|
export * from "./webhook-dto-invoice-webhook-payload.js";
|
|
862
888
|
export * from "./webhook-dto-invoice.js";
|
|
863
889
|
export * from "./webhook-dto-meter.js";
|
|
890
|
+
export * from "./webhook-dto-payment-attempt-webhook-payload.js";
|
|
891
|
+
export * from "./webhook-dto-payment-attempt.js";
|
|
864
892
|
export * from "./webhook-dto-payment-webhook-payload.js";
|
|
865
893
|
export * from "./webhook-dto-payment.js";
|
|
866
894
|
export * from "./webhook-dto-plan.js";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import * as openEnums from "../../types/enums.js";
|
|
7
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
8
|
+
|
|
9
|
+
export const InstalmentBillTrigger = {
|
|
10
|
+
Date: "date",
|
|
11
|
+
Manual: "manual",
|
|
12
|
+
} as const;
|
|
13
|
+
export type InstalmentBillTrigger = OpenEnum<typeof InstalmentBillTrigger>;
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const InstalmentBillTrigger$inboundSchema: z.ZodMiniType<
|
|
17
|
+
InstalmentBillTrigger,
|
|
18
|
+
unknown
|
|
19
|
+
> = openEnums.inboundSchema(InstalmentBillTrigger);
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const InstalmentBillTrigger$outboundSchema: z.ZodMiniType<
|
|
22
|
+
string,
|
|
23
|
+
InstalmentBillTrigger
|
|
24
|
+
> = openEnums.outboundSchema(InstalmentBillTrigger);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import * as openEnums from "../../types/enums.js";
|
|
7
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
8
|
+
|
|
9
|
+
export const InstalmentDelivery = {
|
|
10
|
+
SubscriptionInvoice: "subscription_invoice",
|
|
11
|
+
SeparateInvoice: "separate_invoice",
|
|
12
|
+
} as const;
|
|
13
|
+
export type InstalmentDelivery = OpenEnum<typeof InstalmentDelivery>;
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const InstalmentDelivery$inboundSchema: z.ZodMiniType<
|
|
17
|
+
InstalmentDelivery,
|
|
18
|
+
unknown
|
|
19
|
+
> = openEnums.inboundSchema(InstalmentDelivery);
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const InstalmentDelivery$outboundSchema: z.ZodMiniType<
|
|
22
|
+
string,
|
|
23
|
+
InstalmentDelivery
|
|
24
|
+
> = openEnums.outboundSchema(InstalmentDelivery);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import * as openEnums from "../../types/enums.js";
|
|
7
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
8
|
+
|
|
9
|
+
export const InstalmentKind = {
|
|
10
|
+
Instalment: "instalment",
|
|
11
|
+
Settlement: "settlement",
|
|
12
|
+
} as const;
|
|
13
|
+
export type InstalmentKind = OpenEnum<typeof InstalmentKind>;
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const InstalmentKind$inboundSchema: z.ZodMiniType<
|
|
17
|
+
InstalmentKind,
|
|
18
|
+
unknown
|
|
19
|
+
> = openEnums.inboundSchema(InstalmentKind);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import * as openEnums from "../../types/enums.js";
|
|
7
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
8
|
+
|
|
9
|
+
export const InstalmentStatus = {
|
|
10
|
+
Scheduled: "scheduled",
|
|
11
|
+
Invoiced: "invoiced",
|
|
12
|
+
Cancelled: "cancelled",
|
|
13
|
+
} as const;
|
|
14
|
+
export type InstalmentStatus = OpenEnum<typeof InstalmentStatus>;
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const InstalmentStatus$inboundSchema: z.ZodMiniType<
|
|
18
|
+
InstalmentStatus,
|
|
19
|
+
unknown
|
|
20
|
+
> = openEnums.inboundSchema(InstalmentStatus);
|
|
@@ -17,6 +17,8 @@ export const InvoiceBillingReason = {
|
|
|
17
17
|
WalletAutoTopup: "WALLET_AUTO_TOPUP",
|
|
18
18
|
SubscriptionPaused: "SUBSCRIPTION_PAUSED",
|
|
19
19
|
SubscriptionResume: "SUBSCRIPTION_RESUME",
|
|
20
|
+
BillingTerms: "BILLING_TERMS",
|
|
21
|
+
CommitmentTermination: "COMMITMENT_TERMINATION",
|
|
20
22
|
} as const;
|
|
21
23
|
export type InvoiceBillingReason = ClosedEnum<typeof InvoiceBillingReason>;
|
|
22
24
|
|
|
@@ -36,6 +36,10 @@ export type InvoiceLineItemResponse = {
|
|
|
36
36
|
*/
|
|
37
37
|
adjustedEntitlementQuantity?: string | undefined;
|
|
38
38
|
amount?: string | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* billing_instalment_id links this line item to the billing instalment it bills.
|
|
41
|
+
*/
|
|
42
|
+
billingInstalmentId?: string | undefined;
|
|
39
43
|
/**
|
|
40
44
|
* commitment_id links this line item to the commitment it bills.
|
|
41
45
|
*/
|
|
@@ -111,6 +115,7 @@ export const InvoiceLineItemResponse$inboundSchema: z.ZodMiniType<
|
|
|
111
115
|
z.object({
|
|
112
116
|
adjusted_entitlement_quantity: types.optional(types.string()),
|
|
113
117
|
amount: types.optional(types.string()),
|
|
118
|
+
billing_instalment_id: types.optional(types.string()),
|
|
114
119
|
commitment_id: types.optional(types.string()),
|
|
115
120
|
commitment_info: types.optional(CommitmentInfo$inboundSchema),
|
|
116
121
|
created_at: types.optional(types.date()),
|
|
@@ -153,6 +158,7 @@ export const InvoiceLineItemResponse$inboundSchema: z.ZodMiniType<
|
|
|
153
158
|
z.transform((v) => {
|
|
154
159
|
return remap$(v, {
|
|
155
160
|
"adjusted_entitlement_quantity": "adjustedEntitlementQuantity",
|
|
161
|
+
"billing_instalment_id": "billingInstalmentId",
|
|
156
162
|
"commitment_id": "commitmentId",
|
|
157
163
|
"commitment_info": "commitmentInfo",
|
|
158
164
|
"created_at": "createdAt",
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
|
|
7
|
+
export type ListCommitmentInstalmentsRequest = {
|
|
8
|
+
/**
|
|
9
|
+
* Commitment ID
|
|
10
|
+
*/
|
|
11
|
+
id: string;
|
|
12
|
+
/**
|
|
13
|
+
* Only instalments in these statuses (scheduled, invoiced, cancelled)
|
|
14
|
+
*/
|
|
15
|
+
status?: Array<string> | undefined;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export type ListCommitmentInstalmentsRequest$Outbound = {
|
|
20
|
+
id: string;
|
|
21
|
+
status?: Array<string> | undefined;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const ListCommitmentInstalmentsRequest$outboundSchema: z.ZodMiniType<
|
|
26
|
+
ListCommitmentInstalmentsRequest$Outbound,
|
|
27
|
+
ListCommitmentInstalmentsRequest
|
|
28
|
+
> = z.object({
|
|
29
|
+
id: z.string(),
|
|
30
|
+
status: z.optional(z.array(z.string())),
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export function listCommitmentInstalmentsRequestToJSON(
|
|
34
|
+
listCommitmentInstalmentsRequest: ListCommitmentInstalmentsRequest,
|
|
35
|
+
): string {
|
|
36
|
+
return JSON.stringify(
|
|
37
|
+
ListCommitmentInstalmentsRequest$outboundSchema.parse(
|
|
38
|
+
listCommitmentInstalmentsRequest,
|
|
39
|
+
),
|
|
40
|
+
);
|
|
41
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import * as types from "../../types/primitives.js";
|
|
9
|
+
import {
|
|
10
|
+
BillingtermInstalment,
|
|
11
|
+
BillingtermInstalment$inboundSchema,
|
|
12
|
+
} from "./billingterm-instalment.js";
|
|
13
|
+
import { SDKValidationError } from "./sdk-validation-error.js";
|
|
14
|
+
|
|
15
|
+
export type ListInstalmentsResponse = {
|
|
16
|
+
items?: Array<BillingtermInstalment> | undefined;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const ListInstalmentsResponse$inboundSchema: z.ZodMiniType<
|
|
21
|
+
ListInstalmentsResponse,
|
|
22
|
+
unknown
|
|
23
|
+
> = z.object({
|
|
24
|
+
items: types.optional(z.array(BillingtermInstalment$inboundSchema)),
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
export function listInstalmentsResponseFromJSON(
|
|
28
|
+
jsonString: string,
|
|
29
|
+
): SafeParseResult<ListInstalmentsResponse, SDKValidationError> {
|
|
30
|
+
return safeParse(
|
|
31
|
+
jsonString,
|
|
32
|
+
(x) => ListInstalmentsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
33
|
+
`Failed to parse 'ListInstalmentsResponse' from JSON`,
|
|
34
|
+
);
|
|
35
|
+
}
|
|
@@ -14,6 +14,7 @@ export type PaymentAttemptResponse = {
|
|
|
14
14
|
createdAt?: Date | undefined;
|
|
15
15
|
createdBy?: string | undefined;
|
|
16
16
|
errorMessage?: string | undefined;
|
|
17
|
+
gatewayAttemptId?: string | undefined;
|
|
17
18
|
id?: string | undefined;
|
|
18
19
|
metadata?: { [k: string]: string } | undefined;
|
|
19
20
|
paymentId?: string | undefined;
|
|
@@ -32,6 +33,7 @@ export const PaymentAttemptResponse$inboundSchema: z.ZodMiniType<
|
|
|
32
33
|
created_at: types.optional(types.date()),
|
|
33
34
|
created_by: types.optional(types.string()),
|
|
34
35
|
error_message: types.optional(types.string()),
|
|
36
|
+
gateway_attempt_id: types.optional(types.string()),
|
|
35
37
|
id: types.optional(types.string()),
|
|
36
38
|
metadata: types.optional(z.record(z.string(), types.string())),
|
|
37
39
|
payment_id: types.optional(types.string()),
|
|
@@ -45,6 +47,7 @@ export const PaymentAttemptResponse$inboundSchema: z.ZodMiniType<
|
|
|
45
47
|
"created_at": "createdAt",
|
|
46
48
|
"created_by": "createdBy",
|
|
47
49
|
"error_message": "errorMessage",
|
|
50
|
+
"gateway_attempt_id": "gatewayAttemptId",
|
|
48
51
|
"payment_id": "paymentId",
|
|
49
52
|
"tenant_id": "tenantId",
|
|
50
53
|
"updated_at": "updatedAt",
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import {
|
|
7
|
+
ReplaceBillingTermsRequest,
|
|
8
|
+
ReplaceBillingTermsRequest$Outbound,
|
|
9
|
+
ReplaceBillingTermsRequest$outboundSchema,
|
|
10
|
+
} from "./replace-billing-terms-request.js";
|
|
11
|
+
|
|
12
|
+
export type PreviewCommitmentBillingTermsRequest = {
|
|
13
|
+
/**
|
|
14
|
+
* Commitment ID
|
|
15
|
+
*/
|
|
16
|
+
id: string;
|
|
17
|
+
/**
|
|
18
|
+
* Billing terms
|
|
19
|
+
*/
|
|
20
|
+
body: ReplaceBillingTermsRequest;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export type PreviewCommitmentBillingTermsRequest$Outbound = {
|
|
25
|
+
id: string;
|
|
26
|
+
body: ReplaceBillingTermsRequest$Outbound;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export const PreviewCommitmentBillingTermsRequest$outboundSchema: z.ZodMiniType<
|
|
31
|
+
PreviewCommitmentBillingTermsRequest$Outbound,
|
|
32
|
+
PreviewCommitmentBillingTermsRequest
|
|
33
|
+
> = z.object({
|
|
34
|
+
id: z.string(),
|
|
35
|
+
body: ReplaceBillingTermsRequest$outboundSchema,
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
export function previewCommitmentBillingTermsRequestToJSON(
|
|
39
|
+
previewCommitmentBillingTermsRequest: PreviewCommitmentBillingTermsRequest,
|
|
40
|
+
): string {
|
|
41
|
+
return JSON.stringify(
|
|
42
|
+
PreviewCommitmentBillingTermsRequest$outboundSchema.parse(
|
|
43
|
+
previewCommitmentBillingTermsRequest,
|
|
44
|
+
),
|
|
45
|
+
);
|
|
46
|
+
}
|