@tirdad/sdk 2.1.43 → 2.1.44
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-create-commitment.d.ts +17 -0
- package/esm/funcs/commitments-create-commitment.d.ts.map +1 -0
- package/esm/funcs/commitments-create-commitment.js +83 -0
- package/esm/funcs/commitments-create-commitment.js.map +1 -0
- package/esm/funcs/commitments-get-commitment.d.ts +17 -0
- package/esm/funcs/commitments-get-commitment.d.ts.map +1 -0
- package/esm/funcs/commitments-get-commitment.js +91 -0
- package/esm/funcs/commitments-get-commitment.js.map +1 -0
- package/esm/funcs/commitments-preview-commitment.d.ts +17 -0
- package/esm/funcs/commitments-preview-commitment.d.ts.map +1 -0
- package/esm/funcs/commitments-preview-commitment.js +83 -0
- package/esm/funcs/commitments-preview-commitment.js.map +1 -0
- package/esm/funcs/commitments-query-commitment.d.ts +17 -0
- package/esm/funcs/commitments-query-commitment.d.ts.map +1 -0
- package/esm/funcs/commitments-query-commitment.js +83 -0
- package/esm/funcs/commitments-query-commitment.js.map +1 -0
- package/esm/funcs/commitments-terminate-commitment.d.ts +17 -0
- package/esm/funcs/commitments-terminate-commitment.d.ts.map +1 -0
- package/esm/funcs/commitments-terminate-commitment.js +93 -0
- package/esm/funcs/commitments-terminate-commitment.js.map +1 -0
- package/esm/funcs/commitments-update-commitment.d.ts +17 -0
- package/esm/funcs/commitments-update-commitment.d.ts.map +1 -0
- package/esm/funcs/commitments-update-commitment.js +93 -0
- package/esm/funcs/commitments-update-commitment.js.map +1 -0
- package/esm/funcs/events-delete-events.d.ts +17 -0
- package/esm/funcs/events-delete-events.d.ts.map +1 -0
- package/esm/funcs/events-delete-events.js +86 -0
- package/esm/funcs/events-delete-events.js.map +1 -0
- package/esm/funcs/self-billing-get-self-billing-summary.d.ts +1 -1
- package/esm/funcs/self-billing-get-self-billing-summary.js +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-commitment-created.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-commitment-created.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-commitment-created.js +69 -0
- package/esm/funcs/webhook-events-post-webhook-events-commitment-created.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-commitment-terminated.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-commitment-terminated.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-commitment-terminated.js +69 -0
- package/esm/funcs/webhook-events-post-webhook-events-commitment-terminated.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-commitment-updated.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-commitment-updated.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-commitment-updated.js +69 -0
- package/esm/funcs/webhook-events-post-webhook-events-commitment-updated.js.map +1 -0
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/sdk/commitments.d.ts +47 -0
- package/esm/sdk/commitments.d.ts.map +1 -0
- package/esm/sdk/commitments.js +68 -0
- package/esm/sdk/commitments.js.map +1 -0
- package/esm/sdk/events.d.ts +7 -0
- package/esm/sdk/events.d.ts.map +1 -1
- package/esm/sdk/events.js +10 -0
- package/esm/sdk/events.js.map +1 -1
- package/esm/sdk/models/active-window.d.ts +20 -0
- package/esm/sdk/models/active-window.d.ts.map +1 -0
- package/esm/sdk/models/active-window.js +24 -0
- package/esm/sdk/models/active-window.js.map +1 -0
- package/esm/sdk/models/commitment-collection-method.d.ts +12 -0
- package/esm/sdk/models/commitment-collection-method.d.ts.map +1 -0
- package/esm/sdk/models/commitment-collection-method.js +13 -0
- package/esm/sdk/models/commitment-collection-method.js.map +1 -0
- package/esm/sdk/models/commitment-early-termination.d.ts +11 -0
- package/esm/sdk/models/commitment-early-termination.d.ts.map +1 -0
- package/esm/sdk/models/commitment-early-termination.js +12 -0
- package/esm/sdk/models/commitment-early-termination.js.map +1 -0
- package/esm/sdk/models/commitment-filter.d.ts +60 -0
- package/esm/sdk/models/commitment-filter.d.ts.map +1 -0
- package/esm/sdk/models/commitment-filter.js +51 -0
- package/esm/sdk/models/commitment-filter.js.map +1 -0
- package/esm/sdk/models/commitment-measurement.d.ts +12 -0
- package/esm/sdk/models/commitment-measurement.d.ts.map +1 -0
- package/esm/sdk/models/commitment-measurement.js +13 -0
- package/esm/sdk/models/commitment-measurement.js.map +1 -0
- package/esm/sdk/models/commitment-price-input.d.ts +24 -0
- package/esm/sdk/models/commitment-price-input.d.ts.map +1 -0
- package/esm/sdk/models/commitment-price-input.js +27 -0
- package/esm/sdk/models/commitment-price-input.js.map +1 -0
- package/esm/sdk/models/commitment-response.d.ts +56 -0
- package/esm/sdk/models/commitment-response.d.ts.map +1 -0
- package/esm/sdk/models/commitment-response.js +88 -0
- package/esm/sdk/models/commitment-response.js.map +1 -0
- package/esm/sdk/models/commitment-scope-input.d.ts +18 -0
- package/esm/sdk/models/commitment-scope-input.d.ts.map +1 -0
- package/esm/sdk/models/commitment-scope-input.js +20 -0
- package/esm/sdk/models/commitment-scope-input.js.map +1 -0
- package/esm/sdk/models/commitment-scope-type.d.ts +14 -0
- package/esm/sdk/models/commitment-scope-type.d.ts.map +1 -0
- package/esm/sdk/models/commitment-scope-type.js +15 -0
- package/esm/sdk/models/commitment-scope-type.js.map +1 -0
- package/esm/sdk/models/commitment-status.d.ts +13 -0
- package/esm/sdk/models/commitment-status.d.ts.map +1 -0
- package/esm/sdk/models/commitment-status.js +14 -0
- package/esm/sdk/models/commitment-status.js.map +1 -0
- package/esm/sdk/models/commitment-usage-breakdown.d.ts +33 -0
- package/esm/sdk/models/commitment-usage-breakdown.d.ts.map +1 -0
- package/esm/sdk/models/commitment-usage-breakdown.js +37 -0
- package/esm/sdk/models/commitment-usage-breakdown.js.map +1 -0
- package/esm/sdk/models/commitment-usage-value.d.ts +11 -0
- package/esm/sdk/models/commitment-usage-value.d.ts.map +1 -0
- package/esm/sdk/models/commitment-usage-value.js +15 -0
- package/esm/sdk/models/commitment-usage-value.js.map +1 -0
- package/esm/sdk/models/create-commitment-request.d.ts +64 -0
- package/esm/sdk/models/create-commitment-request.d.ts.map +1 -0
- package/esm/sdk/models/create-commitment-request.js +50 -0
- package/esm/sdk/models/create-commitment-request.js.map +1 -0
- package/esm/sdk/models/create-entitlement-request.d.ts +3 -0
- package/esm/sdk/models/create-entitlement-request.d.ts.map +1 -1
- package/esm/sdk/models/create-entitlement-request.js.map +1 -1
- package/esm/sdk/models/create-price-tier.d.ts +3 -0
- package/esm/sdk/models/create-price-tier.d.ts.map +1 -1
- package/esm/sdk/models/create-price-tier.js +3 -0
- package/esm/sdk/models/create-price-tier.js.map +1 -1
- package/esm/sdk/models/create-subscription-request.d.ts +9 -0
- package/esm/sdk/models/create-subscription-request.d.ts.map +1 -1
- package/esm/sdk/models/create-subscription-request.js +2 -0
- package/esm/sdk/models/create-subscription-request.js.map +1 -1
- package/esm/sdk/models/delete-events-op.d.ts +14 -0
- package/esm/sdk/models/delete-events-op.d.ts.map +1 -0
- package/esm/sdk/models/delete-events-op.js +21 -0
- package/esm/sdk/models/delete-events-op.js.map +1 -0
- package/esm/sdk/models/delete-events-request.d.ts +38 -0
- package/esm/sdk/models/delete-events-request.d.ts.map +1 -0
- package/esm/sdk/models/delete-events-request.js +27 -0
- package/esm/sdk/models/delete-events-request.js.map +1 -0
- package/esm/sdk/models/delete-events-response.d.ts +11 -0
- package/esm/sdk/models/delete-events-response.d.ts.map +1 -0
- package/esm/sdk/models/delete-events-response.js +21 -0
- package/esm/sdk/models/delete-events-response.js.map +1 -0
- package/esm/sdk/models/get-commitment-op.d.ts +15 -0
- package/esm/sdk/models/get-commitment-op.d.ts.map +1 -0
- package/esm/sdk/models/get-commitment-op.js +12 -0
- package/esm/sdk/models/get-commitment-op.js.map +1 -0
- package/esm/sdk/models/get-usage-by-subscription-response.d.ts +5 -0
- package/esm/sdk/models/get-usage-by-subscription-response.d.ts.map +1 -1
- package/esm/sdk/models/get-usage-by-subscription-response.js +2 -0
- package/esm/sdk/models/get-usage-by-subscription-response.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/invoice-filter.d.ts +10 -0
- package/esm/sdk/models/invoice-filter.d.ts.map +1 -1
- package/esm/sdk/models/invoice-filter.js +4 -0
- package/esm/sdk/models/invoice-filter.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/invoice-sync-settings.d.ts +2 -0
- package/esm/sdk/models/invoice-sync-settings.d.ts.map +1 -1
- package/esm/sdk/models/invoice-sync-settings.js +3 -0
- package/esm/sdk/models/invoice-sync-settings.js.map +1 -1
- package/esm/sdk/models/list-commitments-response.d.ts +13 -0
- package/esm/sdk/models/list-commitments-response.d.ts.map +1 -0
- package/esm/sdk/models/list-commitments-response.js +17 -0
- package/esm/sdk/models/list-commitments-response.js.map +1 -0
- package/esm/sdk/models/price-price-tier.d.ts +2 -0
- package/esm/sdk/models/price-price-tier.d.ts.map +1 -1
- package/esm/sdk/models/price-price-tier.js +3 -0
- package/esm/sdk/models/price-price-tier.js.map +1 -1
- package/esm/sdk/models/price-transform-quantity.d.ts +5 -0
- package/esm/sdk/models/price-transform-quantity.d.ts.map +1 -1
- package/esm/sdk/models/price-transform-quantity.js +15 -1
- package/esm/sdk/models/price-transform-quantity.js.map +1 -1
- package/esm/sdk/models/report-query-request.d.ts +2 -0
- package/esm/sdk/models/report-query-request.d.ts.map +1 -1
- package/esm/sdk/models/report-query-request.js +1 -0
- package/esm/sdk/models/report-query-request.js.map +1 -1
- package/esm/sdk/models/scheduled-task-entity-type.d.ts +1 -0
- package/esm/sdk/models/scheduled-task-entity-type.d.ts.map +1 -1
- package/esm/sdk/models/scheduled-task-entity-type.js +1 -0
- package/esm/sdk/models/scheduled-task-entity-type.js.map +1 -1
- package/esm/sdk/models/self-billing-charge-response.d.ts +45 -0
- package/esm/sdk/models/self-billing-charge-response.d.ts.map +1 -0
- package/esm/sdk/models/self-billing-charge-response.js +63 -0
- package/esm/sdk/models/self-billing-charge-response.js.map +1 -0
- package/esm/sdk/models/self-billing-plan-response.d.ts +14 -0
- package/esm/sdk/models/self-billing-plan-response.d.ts.map +1 -0
- package/esm/sdk/models/self-billing-plan-response.js +18 -0
- package/esm/sdk/models/self-billing-plan-response.js.map +1 -0
- package/esm/sdk/models/self-billing-summary-response.d.ts +2 -0
- package/esm/sdk/models/self-billing-summary-response.d.ts.map +1 -1
- package/esm/sdk/models/self-billing-summary-response.js +2 -0
- package/esm/sdk/models/self-billing-summary-response.js.map +1 -1
- package/esm/sdk/models/subscription-line-item-response.d.ts +5 -0
- package/esm/sdk/models/subscription-line-item-response.d.ts.map +1 -1
- package/esm/sdk/models/subscription-line-item-response.js +4 -0
- package/esm/sdk/models/subscription-line-item-response.js.map +1 -1
- package/esm/sdk/models/subscription-subscription-line-item.d.ts +5 -0
- package/esm/sdk/models/subscription-subscription-line-item.d.ts.map +1 -1
- package/esm/sdk/models/subscription-subscription-line-item.js +4 -0
- package/esm/sdk/models/subscription-subscription-line-item.js.map +1 -1
- package/esm/sdk/models/terminate-commitment-op.d.ts +21 -0
- package/esm/sdk/models/terminate-commitment-op.d.ts.map +1 -0
- package/esm/sdk/models/terminate-commitment-op.js +14 -0
- package/esm/sdk/models/terminate-commitment-op.js.map +1 -0
- package/esm/sdk/models/terminate-commitment-request.d.ts +14 -0
- package/esm/sdk/models/terminate-commitment-request.d.ts.map +1 -0
- package/esm/sdk/models/terminate-commitment-request.js +19 -0
- package/esm/sdk/models/terminate-commitment-request.js.map +1 -0
- package/esm/sdk/models/trigger-force-run-request.d.ts +5 -0
- package/esm/sdk/models/trigger-force-run-request.d.ts.map +1 -1
- package/esm/sdk/models/trigger-force-run-request.js +2 -0
- package/esm/sdk/models/trigger-force-run-request.js.map +1 -1
- package/esm/sdk/models/update-commitment-op.d.ts +21 -0
- package/esm/sdk/models/update-commitment-op.d.ts.map +1 -0
- package/esm/sdk/models/update-commitment-op.js +14 -0
- package/esm/sdk/models/update-commitment-op.js.map +1 -0
- package/esm/sdk/models/update-commitment-request.d.ts +22 -0
- package/esm/sdk/models/update-commitment-request.d.ts.map +1 -0
- package/esm/sdk/models/update-commitment-request.js +21 -0
- package/esm/sdk/models/update-commitment-request.js.map +1 -0
- package/esm/sdk/models/update-entitlement-request.d.ts +3 -0
- package/esm/sdk/models/update-entitlement-request.d.ts.map +1 -1
- package/esm/sdk/models/update-entitlement-request.js.map +1 -1
- package/esm/sdk/models/webhook-dto-commitment-webhook-payload.d.ts +13 -0
- package/esm/sdk/models/webhook-dto-commitment-webhook-payload.d.ts.map +1 -0
- package/esm/sdk/models/webhook-dto-commitment-webhook-payload.js +22 -0
- package/esm/sdk/models/webhook-dto-commitment-webhook-payload.js.map +1 -0
- package/esm/sdk/models/webhook-event-name.d.ts +3 -0
- package/esm/sdk/models/webhook-event-name.d.ts.map +1 -1
- package/esm/sdk/models/webhook-event-name.js +3 -0
- package/esm/sdk/models/webhook-event-name.js.map +1 -1
- package/esm/sdk/models/zoho-pay-pal-payment-method.d.ts +10 -0
- package/esm/sdk/models/zoho-pay-pal-payment-method.d.ts.map +1 -0
- package/esm/sdk/models/zoho-pay-pal-payment-method.js +11 -0
- package/esm/sdk/models/zoho-pay-pal-payment-method.js.map +1 -0
- package/esm/sdk/models/zoho-payment-gateway-settings.d.ts +14 -0
- package/esm/sdk/models/zoho-payment-gateway-settings.d.ts.map +1 -0
- package/esm/sdk/models/zoho-payment-gateway-settings.js +23 -0
- package/esm/sdk/models/zoho-payment-gateway-settings.js.map +1 -0
- package/esm/sdk/models/zoho-payment-gateway.d.ts +15 -0
- package/esm/sdk/models/zoho-payment-gateway.d.ts.map +1 -0
- package/esm/sdk/models/zoho-payment-gateway.js +16 -0
- package/esm/sdk/models/zoho-payment-gateway.js.map +1 -0
- package/esm/sdk/sdk.d.ts +3 -0
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +5 -0
- package/esm/sdk/sdk.js.map +1 -1
- package/esm/sdk/self-billing.d.ts +1 -1
- package/esm/sdk/self-billing.js +1 -1
- package/esm/sdk/webhook-events.d.ts +21 -0
- package/esm/sdk/webhook-events.d.ts.map +1 -1
- package/esm/sdk/webhook-events.js +30 -0
- package/esm/sdk/webhook-events.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/commitments-create-commitment.ts +172 -0
- package/src/funcs/commitments-get-commitment.ts +181 -0
- package/src/funcs/commitments-preview-commitment.ts +172 -0
- package/src/funcs/commitments-query-commitment.ts +172 -0
- package/src/funcs/commitments-terminate-commitment.ts +187 -0
- package/src/funcs/commitments-update-commitment.ts +187 -0
- package/src/funcs/events-delete-events.ts +175 -0
- package/src/funcs/self-billing-get-self-billing-summary.ts +1 -1
- package/src/funcs/webhook-events-post-webhook-events-commitment-created.ts +144 -0
- package/src/funcs/webhook-events-post-webhook-events-commitment-terminated.ts +144 -0
- package/src/funcs/webhook-events-post-webhook-events-commitment-updated.ts +144 -0
- package/src/lib/config.ts +2 -2
- package/src/sdk/commitments.ts +121 -0
- package/src/sdk/events.ts +18 -0
- package/src/sdk/models/active-window.ts +54 -0
- package/src/sdk/models/commitment-collection-method.ts +26 -0
- package/src/sdk/models/commitment-early-termination.ts +22 -0
- package/src/sdk/models/commitment-filter.ts +127 -0
- package/src/sdk/models/commitment-measurement.ts +24 -0
- package/src/sdk/models/commitment-price-input.ts +64 -0
- package/src/sdk/models/commitment-response.ts +164 -0
- package/src/sdk/models/commitment-scope-input.ts +49 -0
- package/src/sdk/models/commitment-scope-type.ts +26 -0
- package/src/sdk/models/commitment-status.ts +25 -0
- package/src/sdk/models/commitment-usage-breakdown.ts +86 -0
- package/src/sdk/models/commitment-usage-value.ts +33 -0
- package/src/sdk/models/create-commitment-request.ts +134 -0
- package/src/sdk/models/create-entitlement-request.ts +3 -0
- package/src/sdk/models/create-price-tier.ts +9 -0
- package/src/sdk/models/create-subscription-request.ts +14 -0
- package/src/sdk/models/delete-events-op.ts +45 -0
- package/src/sdk/models/delete-events-request.ts +74 -0
- package/src/sdk/models/delete-events-response.ts +42 -0
- package/src/sdk/models/get-commitment-op.ts +33 -0
- package/src/sdk/models/get-usage-by-subscription-response.ts +11 -0
- package/src/sdk/models/index.ts +28 -0
- package/src/sdk/models/invoice-filter.ts +14 -0
- package/src/sdk/models/invoice-line-item-response.ts +6 -0
- package/src/sdk/models/invoice-sync-settings.ts +7 -0
- package/src/sdk/models/list-commitments-response.ts +41 -0
- package/src/sdk/models/price-price-tier.ts +7 -0
- package/src/sdk/models/price-transform-quantity.ts +33 -1
- package/src/sdk/models/report-query-request.ts +3 -0
- package/src/sdk/models/scheduled-task-entity-type.ts +1 -0
- package/src/sdk/models/self-billing-charge-response.ts +124 -0
- package/src/sdk/models/self-billing-plan-response.ts +41 -0
- package/src/sdk/models/self-billing-summary-response.ts +6 -0
- package/src/sdk/models/subscription-line-item-response.ts +9 -0
- package/src/sdk/models/subscription-subscription-line-item.ts +9 -0
- package/src/sdk/models/terminate-commitment-op.ts +46 -0
- package/src/sdk/models/terminate-commitment-request.ts +44 -0
- package/src/sdk/models/trigger-force-run-request.ts +7 -0
- package/src/sdk/models/update-commitment-op.ts +46 -0
- package/src/sdk/models/update-commitment-request.ts +48 -0
- package/src/sdk/models/update-entitlement-request.ts +3 -0
- package/src/sdk/models/webhook-dto-commitment-webhook-payload.ts +50 -0
- package/src/sdk/models/webhook-event-name.ts +3 -0
- package/src/sdk/models/zoho-pay-pal-payment-method.ts +19 -0
- package/src/sdk/models/zoho-payment-gateway-settings.ts +53 -0
- package/src/sdk/models/zoho-payment-gateway.ts +24 -0
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/self-billing.ts +1 -1
- package/src/sdk/webhook-events.ts +48 -0
package/src/sdk/models/index.ts
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
export * from "./activate-draft-subscription-request.js";
|
|
6
6
|
export * from "./activate-subscription-op.js";
|
|
7
|
+
export * from "./active-window.js";
|
|
7
8
|
export * from "./activity-actor.js";
|
|
8
9
|
export * from "./activity-entity.js";
|
|
9
10
|
export * from "./activity-pagination.js";
|
|
@@ -106,8 +107,19 @@ export * from "./collection-method.js";
|
|
|
106
107
|
export * from "./column-role.js";
|
|
107
108
|
export * from "./column-type.js";
|
|
108
109
|
export * from "./commitment-bucket-request.js";
|
|
110
|
+
export * from "./commitment-collection-method.js";
|
|
111
|
+
export * from "./commitment-early-termination.js";
|
|
112
|
+
export * from "./commitment-filter.js";
|
|
109
113
|
export * from "./commitment-info.js";
|
|
114
|
+
export * from "./commitment-measurement.js";
|
|
115
|
+
export * from "./commitment-price-input.js";
|
|
116
|
+
export * from "./commitment-response.js";
|
|
117
|
+
export * from "./commitment-scope-input.js";
|
|
118
|
+
export * from "./commitment-scope-type.js";
|
|
119
|
+
export * from "./commitment-status.js";
|
|
110
120
|
export * from "./commitment-type.js";
|
|
121
|
+
export * from "./commitment-usage-breakdown.js";
|
|
122
|
+
export * from "./commitment-usage-value.js";
|
|
111
123
|
export * from "./configuration-details.js";
|
|
112
124
|
export * from "./cost-analytic-item.js";
|
|
113
125
|
export * from "./cost-point.js";
|
|
@@ -130,6 +142,7 @@ export * from "./create-bulk-entitlement-response.js";
|
|
|
130
142
|
export * from "./create-bulk-price-request.js";
|
|
131
143
|
export * from "./create-bulk-price-response.js";
|
|
132
144
|
export * from "./create-checkout-session-request.js";
|
|
145
|
+
export * from "./create-commitment-request.js";
|
|
133
146
|
export * from "./create-costsheet-request.js";
|
|
134
147
|
export * from "./create-costsheet-response.js";
|
|
135
148
|
export * from "./create-coupon-request.js";
|
|
@@ -205,6 +218,9 @@ export * from "./delete-credit-grant-op.js";
|
|
|
205
218
|
export * from "./delete-credit-grant-request.js";
|
|
206
219
|
export * from "./delete-customer-op.js";
|
|
207
220
|
export * from "./delete-entitlement-op.js";
|
|
221
|
+
export * from "./delete-events-op.js";
|
|
222
|
+
export * from "./delete-events-request.js";
|
|
223
|
+
export * from "./delete-events-response.js";
|
|
208
224
|
export * from "./delete-feature-op.js";
|
|
209
225
|
export * from "./delete-fx-rate-op.js";
|
|
210
226
|
export * from "./delete-group-op.js";
|
|
@@ -289,6 +305,7 @@ export * from "./get-addon-op.js";
|
|
|
289
305
|
export * from "./get-alert-settings-op.js";
|
|
290
306
|
export * from "./get-analytics-view-op.js";
|
|
291
307
|
export * from "./get-checkout-session-op.js";
|
|
308
|
+
export * from "./get-commitment-op.js";
|
|
292
309
|
export * from "./get-cost-analytics-request.js";
|
|
293
310
|
export * from "./get-costsheet-op.js";
|
|
294
311
|
export * from "./get-costsheet-response.js";
|
|
@@ -404,6 +421,7 @@ export * from "./list-alert-settings-response.js";
|
|
|
404
421
|
export * from "./list-all-subscription-schedules-op.js";
|
|
405
422
|
export * from "./list-analytics-views-op.js";
|
|
406
423
|
export * from "./list-api-keys-op.js";
|
|
424
|
+
export * from "./list-commitments-response.js";
|
|
407
425
|
export * from "./list-costsheet-response.js";
|
|
408
426
|
export * from "./list-coupon-associations-op.js";
|
|
409
427
|
export * from "./list-coupon-associations-response.js";
|
|
@@ -578,9 +596,11 @@ export * from "./secret-provider.js";
|
|
|
578
596
|
export * from "./secret-response.js";
|
|
579
597
|
export * from "./secret-type.js";
|
|
580
598
|
export * from "./security.js";
|
|
599
|
+
export * from "./self-billing-charge-response.js";
|
|
581
600
|
export * from "./self-billing-checkout-request.js";
|
|
582
601
|
export * from "./self-billing-checkout-response.js";
|
|
583
602
|
export * from "./self-billing-invoice.js";
|
|
603
|
+
export * from "./self-billing-plan-response.js";
|
|
584
604
|
export * from "./self-billing-portal-response.js";
|
|
585
605
|
export * from "./self-billing-status-response.js";
|
|
586
606
|
export * from "./self-billing-summary-response.js";
|
|
@@ -667,6 +687,8 @@ export * from "./tax-treatment.js";
|
|
|
667
687
|
export * from "./tenant-billing-details.js";
|
|
668
688
|
export * from "./tenant-internal-status.js";
|
|
669
689
|
export * from "./tenant-response.js";
|
|
690
|
+
export * from "./terminate-commitment-op.js";
|
|
691
|
+
export * from "./terminate-commitment-request.js";
|
|
670
692
|
export * from "./terminate-wallet-op.js";
|
|
671
693
|
export * from "./time-of-day-bucket.js";
|
|
672
694
|
export * from "./time-range-filter.js";
|
|
@@ -688,6 +710,8 @@ export * from "./update-addon-request.js";
|
|
|
688
710
|
export * from "./update-alert-settings-op.js";
|
|
689
711
|
export * from "./update-alert-settings-request.js";
|
|
690
712
|
export * from "./update-analytics-view-op.js";
|
|
713
|
+
export * from "./update-commitment-op.js";
|
|
714
|
+
export * from "./update-commitment-request.js";
|
|
691
715
|
export * from "./update-costsheet-op.js";
|
|
692
716
|
export * from "./update-costsheet-request.js";
|
|
693
717
|
export * from "./update-costsheet-response.js";
|
|
@@ -772,6 +796,7 @@ export * from "./wallet-type.js";
|
|
|
772
796
|
export * from "./webhook-dto-alert-webhook-payload.js";
|
|
773
797
|
export * from "./webhook-dto-checkout-session-webhook-payload.js";
|
|
774
798
|
export * from "./webhook-dto-checkout-session.js";
|
|
799
|
+
export * from "./webhook-dto-commitment-webhook-payload.js";
|
|
775
800
|
export * from "./webhook-dto-communication-webhook-payload.js";
|
|
776
801
|
export * from "./webhook-dto-coupon-application.js";
|
|
777
802
|
export * from "./webhook-dto-coupon-association.js";
|
|
@@ -815,3 +840,6 @@ export * from "./webhook-event-name.js";
|
|
|
815
840
|
export * from "./window-size.js";
|
|
816
841
|
export * from "./workflow-execution-dto.js";
|
|
817
842
|
export * from "./workflow-execution-filter.js";
|
|
843
|
+
export * from "./zoho-pay-pal-payment-method.js";
|
|
844
|
+
export * from "./zoho-payment-gateway-settings.js";
|
|
845
|
+
export * from "./zoho-payment-gateway.js";
|
|
@@ -105,6 +105,10 @@ export type InvoiceFilter = {
|
|
|
105
105
|
* Multiple statuses can be specified to include invoices with any of the listed payment states
|
|
106
106
|
*/
|
|
107
107
|
paymentStatus?: Array<PaymentStatus> | undefined;
|
|
108
|
+
/**
|
|
109
|
+
* period_end_gt filters invoices with period_end > value
|
|
110
|
+
*/
|
|
111
|
+
periodEndGt?: string | undefined;
|
|
108
112
|
/**
|
|
109
113
|
* period_end_gte filters invoices with period_end >= value
|
|
110
114
|
*/
|
|
@@ -117,6 +121,10 @@ export type InvoiceFilter = {
|
|
|
117
121
|
* period_start_gte filters invoices with period_start >= value
|
|
118
122
|
*/
|
|
119
123
|
periodStartGte?: string | undefined;
|
|
124
|
+
/**
|
|
125
|
+
* period_start_lt filters invoices with period_start < value
|
|
126
|
+
*/
|
|
127
|
+
periodStartLt?: string | undefined;
|
|
120
128
|
/**
|
|
121
129
|
* period_start_lte filters invoices with period_start <= value
|
|
122
130
|
*/
|
|
@@ -169,9 +177,11 @@ export type InvoiceFilter$Outbound = {
|
|
|
169
177
|
offset?: number | undefined;
|
|
170
178
|
order?: string | undefined;
|
|
171
179
|
payment_status?: Array<string> | undefined;
|
|
180
|
+
period_end_gt?: string | undefined;
|
|
172
181
|
period_end_gte?: string | undefined;
|
|
173
182
|
period_end_lte?: string | undefined;
|
|
174
183
|
period_start_gte?: string | undefined;
|
|
184
|
+
period_start_lt?: string | undefined;
|
|
175
185
|
period_start_lte?: string | undefined;
|
|
176
186
|
skip_line_items?: boolean | undefined;
|
|
177
187
|
sort?: Array<SortCondition$Outbound> | undefined;
|
|
@@ -207,9 +217,11 @@ export const InvoiceFilter$outboundSchema: z.ZodMiniType<
|
|
|
207
217
|
offset: z.optional(z.int()),
|
|
208
218
|
order: z.optional(InvoiceFilterOrder$outboundSchema),
|
|
209
219
|
paymentStatus: z.optional(z.array(PaymentStatus$outboundSchema)),
|
|
220
|
+
periodEndGt: z.optional(z.string()),
|
|
210
221
|
periodEndGte: z.optional(z.string()),
|
|
211
222
|
periodEndLte: z.optional(z.string()),
|
|
212
223
|
periodStartGte: z.optional(z.string()),
|
|
224
|
+
periodStartLt: z.optional(z.string()),
|
|
213
225
|
periodStartLte: z.optional(z.string()),
|
|
214
226
|
skipLineItems: z.optional(z.boolean()),
|
|
215
227
|
sort: z.optional(z.array(SortCondition$outboundSchema)),
|
|
@@ -234,9 +246,11 @@ export const InvoiceFilter$outboundSchema: z.ZodMiniType<
|
|
|
234
246
|
invoiceStatus: "invoice_status",
|
|
235
247
|
invoiceType: "invoice_type",
|
|
236
248
|
paymentStatus: "payment_status",
|
|
249
|
+
periodEndGt: "period_end_gt",
|
|
237
250
|
periodEndGte: "period_end_gte",
|
|
238
251
|
periodEndLte: "period_end_lte",
|
|
239
252
|
periodStartGte: "period_start_gte",
|
|
253
|
+
periodStartLt: "period_start_lt",
|
|
240
254
|
periodStartLte: "period_start_lte",
|
|
241
255
|
skipLineItems: "skip_line_items",
|
|
242
256
|
startTime: "start_time",
|
|
@@ -36,6 +36,10 @@ export type InvoiceLineItemResponse = {
|
|
|
36
36
|
*/
|
|
37
37
|
adjustedEntitlementQuantity?: string | undefined;
|
|
38
38
|
amount?: string | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* commitment_id links this line item to the commitment it bills.
|
|
41
|
+
*/
|
|
42
|
+
commitmentId?: string | undefined;
|
|
39
43
|
commitmentInfo?: CommitmentInfo | undefined;
|
|
40
44
|
createdAt?: Date | undefined;
|
|
41
45
|
createdBy?: string | undefined;
|
|
@@ -107,6 +111,7 @@ export const InvoiceLineItemResponse$inboundSchema: z.ZodMiniType<
|
|
|
107
111
|
z.object({
|
|
108
112
|
adjusted_entitlement_quantity: types.optional(types.string()),
|
|
109
113
|
amount: types.optional(types.string()),
|
|
114
|
+
commitment_id: types.optional(types.string()),
|
|
110
115
|
commitment_info: types.optional(CommitmentInfo$inboundSchema),
|
|
111
116
|
created_at: types.optional(types.date()),
|
|
112
117
|
created_by: types.optional(types.string()),
|
|
@@ -148,6 +153,7 @@ export const InvoiceLineItemResponse$inboundSchema: z.ZodMiniType<
|
|
|
148
153
|
z.transform((v) => {
|
|
149
154
|
return remap$(v, {
|
|
150
155
|
"adjusted_entitlement_quantity": "adjustedEntitlementQuantity",
|
|
156
|
+
"commitment_id": "commitmentId",
|
|
151
157
|
"commitment_info": "commitmentInfo",
|
|
152
158
|
"created_at": "createdAt",
|
|
153
159
|
"created_by": "createdBy",
|
|
@@ -24,6 +24,10 @@ import {
|
|
|
24
24
|
ServicePeriodCustomFields,
|
|
25
25
|
ServicePeriodCustomFields$inboundSchema,
|
|
26
26
|
} from "./service-period-custom-fields.js";
|
|
27
|
+
import {
|
|
28
|
+
ZohoPaymentGatewaySettings,
|
|
29
|
+
ZohoPaymentGatewaySettings$inboundSchema,
|
|
30
|
+
} from "./zoho-payment-gateway-settings.js";
|
|
27
31
|
|
|
28
32
|
export type InvoiceSyncSettings = {
|
|
29
33
|
/**
|
|
@@ -45,6 +49,7 @@ export type InvoiceSyncSettings = {
|
|
|
45
49
|
*/
|
|
46
50
|
metadataCustomFields?: Array<MetadataCustomField> | undefined;
|
|
47
51
|
normalizeFixedTo?: BillingPeriod | undefined;
|
|
52
|
+
paymentGateways?: ZohoPaymentGatewaySettings | undefined;
|
|
48
53
|
/**
|
|
49
54
|
* Zoho payment modes are merchant-editable free strings with no id, so this is passed
|
|
50
55
|
*
|
|
@@ -76,6 +81,7 @@ export const InvoiceSyncSettings$inboundSchema: z.ZodMiniType<
|
|
|
76
81
|
z.array(MetadataCustomField$inboundSchema),
|
|
77
82
|
),
|
|
78
83
|
normalize_fixed_to: types.optional(BillingPeriod$inboundSchema),
|
|
84
|
+
payment_gateways: types.optional(ZohoPaymentGatewaySettings$inboundSchema),
|
|
79
85
|
payment_mode: types.optional(types.string()),
|
|
80
86
|
service_period_custom_fields: types.optional(
|
|
81
87
|
ServicePeriodCustomFields$inboundSchema,
|
|
@@ -88,6 +94,7 @@ export const InvoiceSyncSettings$inboundSchema: z.ZodMiniType<
|
|
|
88
94
|
"global_custom_fields": "globalCustomFields",
|
|
89
95
|
"metadata_custom_fields": "metadataCustomFields",
|
|
90
96
|
"normalize_fixed_to": "normalizeFixedTo",
|
|
97
|
+
"payment_gateways": "paymentGateways",
|
|
91
98
|
"payment_mode": "paymentMode",
|
|
92
99
|
"service_period_custom_fields": "servicePeriodCustomFields",
|
|
93
100
|
"submit_for_approval": "submitForApproval",
|
|
@@ -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
|
+
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
|
+
CommitmentResponse,
|
|
11
|
+
CommitmentResponse$inboundSchema,
|
|
12
|
+
} from "./commitment-response.js";
|
|
13
|
+
import {
|
|
14
|
+
PaginationResponse,
|
|
15
|
+
PaginationResponse$inboundSchema,
|
|
16
|
+
} from "./pagination-response.js";
|
|
17
|
+
import { SDKValidationError } from "./sdk-validation-error.js";
|
|
18
|
+
|
|
19
|
+
export type ListCommitmentsResponse = {
|
|
20
|
+
items?: Array<CommitmentResponse> | undefined;
|
|
21
|
+
pagination?: PaginationResponse | undefined;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const ListCommitmentsResponse$inboundSchema: z.ZodMiniType<
|
|
26
|
+
ListCommitmentsResponse,
|
|
27
|
+
unknown
|
|
28
|
+
> = z.object({
|
|
29
|
+
items: types.optional(z.array(CommitmentResponse$inboundSchema)),
|
|
30
|
+
pagination: types.optional(PaginationResponse$inboundSchema),
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export function listCommitmentsResponseFromJSON(
|
|
34
|
+
jsonString: string,
|
|
35
|
+
): SafeParseResult<ListCommitmentsResponse, SDKValidationError> {
|
|
36
|
+
return safeParse(
|
|
37
|
+
jsonString,
|
|
38
|
+
(x) => ListCommitmentsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
39
|
+
`Failed to parse 'ListCommitmentsResponse' from JSON`,
|
|
40
|
+
);
|
|
41
|
+
}
|
|
@@ -7,6 +7,10 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import * as types from "../../types/primitives.js";
|
|
10
|
+
import {
|
|
11
|
+
PriceTransformQuantity,
|
|
12
|
+
PriceTransformQuantity$inboundSchema,
|
|
13
|
+
} from "./price-transform-quantity.js";
|
|
10
14
|
import { SDKValidationError } from "./sdk-validation-error.js";
|
|
11
15
|
|
|
12
16
|
export type PricePriceTier = {
|
|
@@ -17,6 +21,7 @@ export type PricePriceTier = {
|
|
|
17
21
|
* Applied on top of unit_amount*quantity. Useful for cases like "2.7$ + 5c"
|
|
18
22
|
*/
|
|
19
23
|
flatAmount?: string | undefined;
|
|
24
|
+
transformQuantity?: PriceTransformQuantity | undefined;
|
|
20
25
|
/**
|
|
21
26
|
* unit_amount is the amount per unit for the given tier
|
|
22
27
|
*/
|
|
@@ -39,12 +44,14 @@ export const PricePriceTier$inboundSchema: z.ZodMiniType<
|
|
|
39
44
|
> = z.pipe(
|
|
40
45
|
z.object({
|
|
41
46
|
flat_amount: types.optional(types.string()),
|
|
47
|
+
transform_quantity: types.optional(PriceTransformQuantity$inboundSchema),
|
|
42
48
|
unit_amount: types.optional(types.string()),
|
|
43
49
|
up_to: types.optional(types.number()),
|
|
44
50
|
}),
|
|
45
51
|
z.transform((v) => {
|
|
46
52
|
return remap$(v, {
|
|
47
53
|
"flat_amount": "flatAmount",
|
|
54
|
+
"transform_quantity": "transformQuantity",
|
|
48
55
|
"unit_amount": "unitAmount",
|
|
49
56
|
"up_to": "upTo",
|
|
50
57
|
});
|
|
@@ -4,7 +4,15 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import {
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as types from "../../types/primitives.js";
|
|
10
|
+
import {
|
|
11
|
+
RoundType,
|
|
12
|
+
RoundType$inboundSchema,
|
|
13
|
+
RoundType$outboundSchema,
|
|
14
|
+
} from "./round-type.js";
|
|
15
|
+
import { SDKValidationError } from "./sdk-validation-error.js";
|
|
8
16
|
|
|
9
17
|
export type PriceTransformQuantity = {
|
|
10
18
|
/**
|
|
@@ -14,6 +22,21 @@ export type PriceTransformQuantity = {
|
|
|
14
22
|
round?: RoundType | undefined;
|
|
15
23
|
};
|
|
16
24
|
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const PriceTransformQuantity$inboundSchema: z.ZodMiniType<
|
|
27
|
+
PriceTransformQuantity,
|
|
28
|
+
unknown
|
|
29
|
+
> = z.pipe(
|
|
30
|
+
z.object({
|
|
31
|
+
divide_by: types.optional(types.number()),
|
|
32
|
+
round: types.optional(RoundType$inboundSchema),
|
|
33
|
+
}),
|
|
34
|
+
z.transform((v) => {
|
|
35
|
+
return remap$(v, {
|
|
36
|
+
"divide_by": "divideBy",
|
|
37
|
+
});
|
|
38
|
+
}),
|
|
39
|
+
);
|
|
17
40
|
/** @internal */
|
|
18
41
|
export type PriceTransformQuantity$Outbound = {
|
|
19
42
|
divide_by?: number | undefined;
|
|
@@ -43,3 +66,12 @@ export function priceTransformQuantityToJSON(
|
|
|
43
66
|
PriceTransformQuantity$outboundSchema.parse(priceTransformQuantity),
|
|
44
67
|
);
|
|
45
68
|
}
|
|
69
|
+
export function priceTransformQuantityFromJSON(
|
|
70
|
+
jsonString: string,
|
|
71
|
+
): SafeParseResult<PriceTransformQuantity, SDKValidationError> {
|
|
72
|
+
return safeParse(
|
|
73
|
+
jsonString,
|
|
74
|
+
(x) => PriceTransformQuantity$inboundSchema.parse(JSON.parse(x)),
|
|
75
|
+
`Failed to parse 'PriceTransformQuantity' from JSON`,
|
|
76
|
+
);
|
|
77
|
+
}
|
|
@@ -48,6 +48,7 @@ export type ReportQueryRequest = {
|
|
|
48
48
|
filters?: Array<ReportFilter> | undefined;
|
|
49
49
|
grain?: ReportQueryRequestGrain | undefined;
|
|
50
50
|
limit?: number | undefined;
|
|
51
|
+
offset?: number | undefined;
|
|
51
52
|
range: string;
|
|
52
53
|
shape: ReportQueryRequestShape;
|
|
53
54
|
sort?: Array<ReportSort> | undefined;
|
|
@@ -76,6 +77,7 @@ export type ReportQueryRequest$Outbound = {
|
|
|
76
77
|
filters?: Array<ReportFilter$Outbound> | undefined;
|
|
77
78
|
grain?: string | undefined;
|
|
78
79
|
limit?: number | undefined;
|
|
80
|
+
offset?: number | undefined;
|
|
79
81
|
range: string;
|
|
80
82
|
shape: string;
|
|
81
83
|
sort?: Array<ReportSort$Outbound> | undefined;
|
|
@@ -92,6 +94,7 @@ export const ReportQueryRequest$outboundSchema: z.ZodMiniType<
|
|
|
92
94
|
filters: z.optional(z.array(ReportFilter$outboundSchema)),
|
|
93
95
|
grain: z.optional(ReportQueryRequestGrain$outboundSchema),
|
|
94
96
|
limit: z.optional(z.int()),
|
|
97
|
+
offset: z.optional(z.int()),
|
|
95
98
|
range: z.string(),
|
|
96
99
|
shape: ReportQueryRequestShape$outboundSchema,
|
|
97
100
|
sort: z.optional(z.array(ReportSort$outboundSchema)),
|
|
@@ -11,6 +11,7 @@ export const ScheduledTaskEntityType = {
|
|
|
11
11
|
Invoice: "invoice",
|
|
12
12
|
CreditTopups: "credit_topups",
|
|
13
13
|
WalletDebits: "wallet_debits",
|
|
14
|
+
WalletLedger: "wallet_ledger",
|
|
14
15
|
CreditUsage: "credit_usage",
|
|
15
16
|
UsageAnalytics: "usage_analytics",
|
|
16
17
|
RevenueFacts: "revenue_facts",
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as types from "../../types/primitives.js";
|
|
10
|
+
import { BillingModel, BillingModel$inboundSchema } from "./billing-model.js";
|
|
11
|
+
import {
|
|
12
|
+
BillingPeriod,
|
|
13
|
+
BillingPeriod$inboundSchema,
|
|
14
|
+
} from "./billing-period.js";
|
|
15
|
+
import { BillingTier, BillingTier$inboundSchema } from "./billing-tier.js";
|
|
16
|
+
import {
|
|
17
|
+
InvoiceCadence,
|
|
18
|
+
InvoiceCadence$inboundSchema,
|
|
19
|
+
} from "./invoice-cadence.js";
|
|
20
|
+
import {
|
|
21
|
+
PricePriceTier,
|
|
22
|
+
PricePriceTier$inboundSchema,
|
|
23
|
+
} from "./price-price-tier.js";
|
|
24
|
+
import {
|
|
25
|
+
PriceTransformQuantity,
|
|
26
|
+
PriceTransformQuantity$inboundSchema,
|
|
27
|
+
} from "./price-transform-quantity.js";
|
|
28
|
+
import { PriceType, PriceType$inboundSchema } from "./price-type.js";
|
|
29
|
+
import {
|
|
30
|
+
PriceUnitType,
|
|
31
|
+
PriceUnitType$inboundSchema,
|
|
32
|
+
} from "./price-unit-type.js";
|
|
33
|
+
import { SDKValidationError } from "./sdk-validation-error.js";
|
|
34
|
+
import { WindowSize, WindowSize$inboundSchema } from "./window-size.js";
|
|
35
|
+
|
|
36
|
+
export type SelfBillingChargeResponse = {
|
|
37
|
+
/**
|
|
38
|
+
* Amount is a unit rate; tiered charges use tiers instead.
|
|
39
|
+
*/
|
|
40
|
+
amount?: string | undefined;
|
|
41
|
+
billingModel?: BillingModel | undefined;
|
|
42
|
+
billingPeriod?: BillingPeriod | undefined;
|
|
43
|
+
billingPeriodCount?: number | undefined;
|
|
44
|
+
bucketSize?: WindowSize | undefined;
|
|
45
|
+
currency?: string | undefined;
|
|
46
|
+
displayName?: string | undefined;
|
|
47
|
+
invoiceCadence?: InvoiceCadence | undefined;
|
|
48
|
+
lineItemId?: string | undefined;
|
|
49
|
+
meterDisplayName?: string | undefined;
|
|
50
|
+
meterId?: string | undefined;
|
|
51
|
+
priceId?: string | undefined;
|
|
52
|
+
priceUnit?: string | undefined;
|
|
53
|
+
priceUnitAmount?: string | undefined;
|
|
54
|
+
priceUnitTiers?: Array<PricePriceTier> | undefined;
|
|
55
|
+
priceUnitType?: PriceUnitType | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* Quantity is the configured quantity; metered usage is returned in summary.usage.
|
|
58
|
+
*/
|
|
59
|
+
quantity?: string | undefined;
|
|
60
|
+
tierMode?: BillingTier | undefined;
|
|
61
|
+
tiers?: Array<PricePriceTier> | undefined;
|
|
62
|
+
transformQuantity?: PriceTransformQuantity | undefined;
|
|
63
|
+
type?: PriceType | undefined;
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
/** @internal */
|
|
67
|
+
export const SelfBillingChargeResponse$inboundSchema: z.ZodMiniType<
|
|
68
|
+
SelfBillingChargeResponse,
|
|
69
|
+
unknown
|
|
70
|
+
> = z.pipe(
|
|
71
|
+
z.object({
|
|
72
|
+
amount: types.optional(types.string()),
|
|
73
|
+
billing_model: types.optional(BillingModel$inboundSchema),
|
|
74
|
+
billing_period: types.optional(BillingPeriod$inboundSchema),
|
|
75
|
+
billing_period_count: types.optional(types.number()),
|
|
76
|
+
bucket_size: types.optional(WindowSize$inboundSchema),
|
|
77
|
+
currency: types.optional(types.string()),
|
|
78
|
+
display_name: types.optional(types.string()),
|
|
79
|
+
invoice_cadence: types.optional(InvoiceCadence$inboundSchema),
|
|
80
|
+
line_item_id: types.optional(types.string()),
|
|
81
|
+
meter_display_name: types.optional(types.string()),
|
|
82
|
+
meter_id: types.optional(types.string()),
|
|
83
|
+
price_id: types.optional(types.string()),
|
|
84
|
+
price_unit: types.optional(types.string()),
|
|
85
|
+
price_unit_amount: types.optional(types.string()),
|
|
86
|
+
price_unit_tiers: types.optional(z.array(PricePriceTier$inboundSchema)),
|
|
87
|
+
price_unit_type: types.optional(PriceUnitType$inboundSchema),
|
|
88
|
+
quantity: types.optional(types.string()),
|
|
89
|
+
tier_mode: types.optional(BillingTier$inboundSchema),
|
|
90
|
+
tiers: types.optional(z.array(PricePriceTier$inboundSchema)),
|
|
91
|
+
transform_quantity: types.optional(PriceTransformQuantity$inboundSchema),
|
|
92
|
+
type: types.optional(PriceType$inboundSchema),
|
|
93
|
+
}),
|
|
94
|
+
z.transform((v) => {
|
|
95
|
+
return remap$(v, {
|
|
96
|
+
"billing_model": "billingModel",
|
|
97
|
+
"billing_period": "billingPeriod",
|
|
98
|
+
"billing_period_count": "billingPeriodCount",
|
|
99
|
+
"bucket_size": "bucketSize",
|
|
100
|
+
"display_name": "displayName",
|
|
101
|
+
"invoice_cadence": "invoiceCadence",
|
|
102
|
+
"line_item_id": "lineItemId",
|
|
103
|
+
"meter_display_name": "meterDisplayName",
|
|
104
|
+
"meter_id": "meterId",
|
|
105
|
+
"price_id": "priceId",
|
|
106
|
+
"price_unit": "priceUnit",
|
|
107
|
+
"price_unit_amount": "priceUnitAmount",
|
|
108
|
+
"price_unit_tiers": "priceUnitTiers",
|
|
109
|
+
"price_unit_type": "priceUnitType",
|
|
110
|
+
"tier_mode": "tierMode",
|
|
111
|
+
"transform_quantity": "transformQuantity",
|
|
112
|
+
});
|
|
113
|
+
}),
|
|
114
|
+
);
|
|
115
|
+
|
|
116
|
+
export function selfBillingChargeResponseFromJSON(
|
|
117
|
+
jsonString: string,
|
|
118
|
+
): SafeParseResult<SelfBillingChargeResponse, SDKValidationError> {
|
|
119
|
+
return safeParse(
|
|
120
|
+
jsonString,
|
|
121
|
+
(x) => SelfBillingChargeResponse$inboundSchema.parse(JSON.parse(x)),
|
|
122
|
+
`Failed to parse 'SelfBillingChargeResponse' from JSON`,
|
|
123
|
+
);
|
|
124
|
+
}
|
|
@@ -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
|
+
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 { SDKValidationError } from "./sdk-validation-error.js";
|
|
10
|
+
import {
|
|
11
|
+
SelfBillingChargeResponse,
|
|
12
|
+
SelfBillingChargeResponse$inboundSchema,
|
|
13
|
+
} from "./self-billing-charge-response.js";
|
|
14
|
+
|
|
15
|
+
export type SelfBillingPlanResponse = {
|
|
16
|
+
charges?: Array<SelfBillingChargeResponse> | undefined;
|
|
17
|
+
description?: string | undefined;
|
|
18
|
+
id?: string | undefined;
|
|
19
|
+
name?: string | undefined;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const SelfBillingPlanResponse$inboundSchema: z.ZodMiniType<
|
|
24
|
+
SelfBillingPlanResponse,
|
|
25
|
+
unknown
|
|
26
|
+
> = z.object({
|
|
27
|
+
charges: types.optional(z.array(SelfBillingChargeResponse$inboundSchema)),
|
|
28
|
+
description: types.optional(types.string()),
|
|
29
|
+
id: types.optional(types.string()),
|
|
30
|
+
name: types.optional(types.string()),
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export function selfBillingPlanResponseFromJSON(
|
|
34
|
+
jsonString: string,
|
|
35
|
+
): SafeParseResult<SelfBillingPlanResponse, SDKValidationError> {
|
|
36
|
+
return safeParse(
|
|
37
|
+
jsonString,
|
|
38
|
+
(x) => SelfBillingPlanResponse$inboundSchema.parse(JSON.parse(x)),
|
|
39
|
+
`Failed to parse 'SelfBillingPlanResponse' from JSON`,
|
|
40
|
+
);
|
|
41
|
+
}
|
|
@@ -16,6 +16,10 @@ import {
|
|
|
16
16
|
SelfBillingInvoice,
|
|
17
17
|
SelfBillingInvoice$inboundSchema,
|
|
18
18
|
} from "./self-billing-invoice.js";
|
|
19
|
+
import {
|
|
20
|
+
SelfBillingPlanResponse,
|
|
21
|
+
SelfBillingPlanResponse$inboundSchema,
|
|
22
|
+
} from "./self-billing-plan-response.js";
|
|
19
23
|
import {
|
|
20
24
|
SubscriptionStatus,
|
|
21
25
|
SubscriptionStatus$inboundSchema,
|
|
@@ -27,6 +31,7 @@ import {
|
|
|
27
31
|
|
|
28
32
|
export type SelfBillingSummaryResponse = {
|
|
29
33
|
invoices?: Array<SelfBillingInvoice> | undefined;
|
|
34
|
+
plan?: SelfBillingPlanResponse | undefined;
|
|
30
35
|
status?: TenantInternalStatus | undefined;
|
|
31
36
|
subscriptionStatus?: SubscriptionStatus | undefined;
|
|
32
37
|
trialEndsAt?: Date | undefined;
|
|
@@ -40,6 +45,7 @@ export const SelfBillingSummaryResponse$inboundSchema: z.ZodMiniType<
|
|
|
40
45
|
> = z.pipe(
|
|
41
46
|
z.object({
|
|
42
47
|
invoices: types.optional(z.array(SelfBillingInvoice$inboundSchema)),
|
|
48
|
+
plan: types.optional(SelfBillingPlanResponse$inboundSchema),
|
|
43
49
|
status: types.optional(TenantInternalStatus$inboundSchema),
|
|
44
50
|
subscription_status: types.optional(SubscriptionStatus$inboundSchema),
|
|
45
51
|
trial_ends_at: types.optional(types.date()),
|
|
@@ -70,6 +70,10 @@ export type SubscriptionLineItemResponse = {
|
|
|
70
70
|
meterDisplayName?: string | undefined;
|
|
71
71
|
meterId?: string | undefined;
|
|
72
72
|
planDisplayName?: string | undefined;
|
|
73
|
+
/**
|
|
74
|
+
* Version lineage, set by the service when a line item is replaced by a new version
|
|
75
|
+
*/
|
|
76
|
+
predecessorLineItemId?: string | undefined;
|
|
73
77
|
price?: PriceResponse | undefined;
|
|
74
78
|
priceId?: string | undefined;
|
|
75
79
|
priceType?: PriceType | undefined;
|
|
@@ -80,6 +84,7 @@ export type SubscriptionLineItemResponse = {
|
|
|
80
84
|
status?: Status | undefined;
|
|
81
85
|
subscriptionId?: string | undefined;
|
|
82
86
|
subscriptionPhaseId?: string | undefined;
|
|
87
|
+
successorLineItemId?: string | undefined;
|
|
83
88
|
tenantId?: string | undefined;
|
|
84
89
|
updatedAt?: Date | undefined;
|
|
85
90
|
updatedBy?: string | undefined;
|
|
@@ -120,6 +125,7 @@ export const SubscriptionLineItemResponse$inboundSchema: z.ZodMiniType<
|
|
|
120
125
|
meter_display_name: types.optional(types.string()),
|
|
121
126
|
meter_id: types.optional(types.string()),
|
|
122
127
|
plan_display_name: types.optional(types.string()),
|
|
128
|
+
predecessor_line_item_id: types.optional(types.string()),
|
|
123
129
|
price: types.optional(PriceResponse$inboundSchema),
|
|
124
130
|
price_id: types.optional(types.string()),
|
|
125
131
|
price_type: types.optional(PriceType$inboundSchema),
|
|
@@ -130,6 +136,7 @@ export const SubscriptionLineItemResponse$inboundSchema: z.ZodMiniType<
|
|
|
130
136
|
status: types.optional(Status$inboundSchema),
|
|
131
137
|
subscription_id: types.optional(types.string()),
|
|
132
138
|
subscription_phase_id: types.optional(types.string()),
|
|
139
|
+
successor_line_item_id: types.optional(types.string()),
|
|
133
140
|
tenant_id: types.optional(types.string()),
|
|
134
141
|
updated_at: types.optional(types.date()),
|
|
135
142
|
updated_by: types.optional(types.string()),
|
|
@@ -159,6 +166,7 @@ export const SubscriptionLineItemResponse$inboundSchema: z.ZodMiniType<
|
|
|
159
166
|
"meter_display_name": "meterDisplayName",
|
|
160
167
|
"meter_id": "meterId",
|
|
161
168
|
"plan_display_name": "planDisplayName",
|
|
169
|
+
"predecessor_line_item_id": "predecessorLineItemId",
|
|
162
170
|
"price_id": "priceId",
|
|
163
171
|
"price_type": "priceType",
|
|
164
172
|
"price_unit": "priceUnit",
|
|
@@ -166,6 +174,7 @@ export const SubscriptionLineItemResponse$inboundSchema: z.ZodMiniType<
|
|
|
166
174
|
"start_date": "startDate",
|
|
167
175
|
"subscription_id": "subscriptionId",
|
|
168
176
|
"subscription_phase_id": "subscriptionPhaseId",
|
|
177
|
+
"successor_line_item_id": "successorLineItemId",
|
|
169
178
|
"tenant_id": "tenantId",
|
|
170
179
|
"updated_at": "updatedAt",
|
|
171
180
|
"updated_by": "updatedBy",
|
|
@@ -67,6 +67,10 @@ export type SubscriptionSubscriptionLineItem = {
|
|
|
67
67
|
meterDisplayName?: string | undefined;
|
|
68
68
|
meterId?: string | undefined;
|
|
69
69
|
planDisplayName?: string | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* Version lineage, set by the service when a line item is replaced by a new version
|
|
72
|
+
*/
|
|
73
|
+
predecessorLineItemId?: string | undefined;
|
|
70
74
|
price?: PricePrice | undefined;
|
|
71
75
|
priceId?: string | undefined;
|
|
72
76
|
priceType?: PriceType | undefined;
|
|
@@ -77,6 +81,7 @@ export type SubscriptionSubscriptionLineItem = {
|
|
|
77
81
|
status?: Status | undefined;
|
|
78
82
|
subscriptionId?: string | undefined;
|
|
79
83
|
subscriptionPhaseId?: string | undefined;
|
|
84
|
+
successorLineItemId?: string | undefined;
|
|
80
85
|
tenantId?: string | undefined;
|
|
81
86
|
updatedAt?: Date | undefined;
|
|
82
87
|
updatedBy?: string | undefined;
|
|
@@ -117,6 +122,7 @@ export const SubscriptionSubscriptionLineItem$inboundSchema: z.ZodMiniType<
|
|
|
117
122
|
meter_display_name: types.optional(types.string()),
|
|
118
123
|
meter_id: types.optional(types.string()),
|
|
119
124
|
plan_display_name: types.optional(types.string()),
|
|
125
|
+
predecessor_line_item_id: types.optional(types.string()),
|
|
120
126
|
price: types.optional(PricePrice$inboundSchema),
|
|
121
127
|
price_id: types.optional(types.string()),
|
|
122
128
|
price_type: types.optional(PriceType$inboundSchema),
|
|
@@ -127,6 +133,7 @@ export const SubscriptionSubscriptionLineItem$inboundSchema: z.ZodMiniType<
|
|
|
127
133
|
status: types.optional(Status$inboundSchema),
|
|
128
134
|
subscription_id: types.optional(types.string()),
|
|
129
135
|
subscription_phase_id: types.optional(types.string()),
|
|
136
|
+
successor_line_item_id: types.optional(types.string()),
|
|
130
137
|
tenant_id: types.optional(types.string()),
|
|
131
138
|
updated_at: types.optional(types.date()),
|
|
132
139
|
updated_by: types.optional(types.string()),
|
|
@@ -156,6 +163,7 @@ export const SubscriptionSubscriptionLineItem$inboundSchema: z.ZodMiniType<
|
|
|
156
163
|
"meter_display_name": "meterDisplayName",
|
|
157
164
|
"meter_id": "meterId",
|
|
158
165
|
"plan_display_name": "planDisplayName",
|
|
166
|
+
"predecessor_line_item_id": "predecessorLineItemId",
|
|
159
167
|
"price_id": "priceId",
|
|
160
168
|
"price_type": "priceType",
|
|
161
169
|
"price_unit": "priceUnit",
|
|
@@ -163,6 +171,7 @@ export const SubscriptionSubscriptionLineItem$inboundSchema: z.ZodMiniType<
|
|
|
163
171
|
"start_date": "startDate",
|
|
164
172
|
"subscription_id": "subscriptionId",
|
|
165
173
|
"subscription_phase_id": "subscriptionPhaseId",
|
|
174
|
+
"successor_line_item_id": "successorLineItemId",
|
|
166
175
|
"tenant_id": "tenantId",
|
|
167
176
|
"updated_at": "updatedAt",
|
|
168
177
|
"updated_by": "updatedBy",
|