@flexprice/sdk 2.1.47 → 2.1.48-dev.10
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/docs/sdk/models/billing-term-input.md +30 -0
- package/docs/sdk/models/billing-term-kind.md +17 -0
- package/docs/sdk/models/billing-term-owner-type.md +15 -0
- package/docs/sdk/models/billing-term-split.md +17 -0
- package/docs/sdk/models/billing-term-value-type.md +19 -0
- package/docs/sdk/models/billing-terms-response.md +16 -0
- package/docs/sdk/models/billingterm-instalment.md +40 -0
- package/docs/sdk/models/billingterm-term.md +37 -0
- package/docs/sdk/models/cancellation-fee-input.md +19 -0
- package/docs/sdk/models/cancellation-fee-type.md +17 -0
- package/docs/sdk/models/commitment-response.md +3 -1
- package/docs/sdk/models/create-commitment-request.md +3 -1
- package/docs/sdk/models/get-commitment-billing-terms-request.md +17 -0
- package/docs/sdk/models/get-subscription-v2-request.md +4 -4
- package/docs/sdk/models/instalment-bill-trigger.md +17 -0
- package/docs/sdk/models/instalment-delivery.md +17 -0
- package/docs/sdk/models/instalment-kind.md +17 -0
- package/docs/sdk/models/instalment-status.md +17 -0
- package/docs/sdk/models/invoice-billing-reason.md +1 -1
- package/docs/sdk/models/invoice-line-item-response.md +1 -0
- package/docs/sdk/models/list-commitment-instalments-request.md +18 -0
- package/docs/sdk/models/list-instalments-response.md +15 -0
- package/docs/sdk/models/preview-commitment-billing-terms-request.md +21 -0
- package/docs/sdk/models/replace-billing-terms-request.md +17 -0
- package/docs/sdk/models/replace-commitment-billing-terms-request.md +21 -0
- package/docs/sdk/models/subscription-response-v2.md +1 -0
- package/docs/sdk/models/subscription-response.md +1 -0
- package/docs/sdk/models/terminate-commitment-request.md +4 -4
- package/docs/sdk/models/trigger-commitment-instalment-request.md +20 -0
- package/docs/sdk/models/trigger-instalment-request.md +15 -0
- package/docs/sdk/models/update-commitment-request.md +7 -6
- package/docs/sdk/models/webhook-dto-billing-instalment-webhook-payload.md +16 -0
- package/docs/sdk/models/webhook-dto-billing-terms-webhook-payload.md +18 -0
- package/docs/sdk/models/webhook-dto-invoice-line-item.md +1 -0
- package/docs/sdk/models/webhook-event-name.md +1 -1
- package/docs/sdks/commitments/README.md +384 -1
- package/docs/sdks/subscriptions/README.md +1 -1
- package/docs/sdks/webhookevents/README.md +414 -0
- 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/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/lib/config.d.ts +3 -3
- package/esm/lib/config.d.ts.map +1 -1
- package/esm/lib/config.js +3 -3
- 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/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-subscription-v2-op.d.ts +1 -1
- package/esm/sdk/models/index.d.ts +24 -0
- package/esm/sdk/models/index.d.ts.map +1 -1
- package/esm/sdk/models/index.js +24 -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/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/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-event-name.d.ts +6 -0
- package/esm/sdk/models/webhook-event-name.d.ts.map +1 -1
- package/esm/sdk/models/webhook-event-name.js +6 -0
- package/esm/sdk/models/webhook-event-name.js.map +1 -1
- package/esm/sdk/webhook-events.d.ts +42 -0
- package/esm/sdk/webhook-events.d.ts.map +1 -1
- package/esm/sdk/webhook-events.js +60 -0
- package/esm/sdk/webhook-events.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +3 -3
- 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/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/lib/config.ts +4 -3
- package/src/sdk/commitments.ts +101 -1
- 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-subscription-v2-op.ts +1 -1
- package/src/sdk/models/index.ts +24 -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/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/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-event-name.ts +6 -0
- package/src/sdk/webhook-events.ts +96 -0
|
@@ -9,6 +9,11 @@
|
|
|
9
9
|
* [queryCommitment](#querycommitment) - Query commitments
|
|
10
10
|
* [getCommitment](#getcommitment) - Get commitment
|
|
11
11
|
* [updateCommitment](#updatecommitment) - Update commitment
|
|
12
|
+
* [getCommitmentBillingTerms](#getcommitmentbillingterms) - Get billing terms
|
|
13
|
+
* [replaceCommitmentBillingTerms](#replacecommitmentbillingterms) - Edit billing terms
|
|
14
|
+
* [previewCommitmentBillingTerms](#previewcommitmentbillingterms) - Preview billing terms edit
|
|
15
|
+
* [listCommitmentInstalments](#listcommitmentinstalments) - List instalments
|
|
16
|
+
* [triggerCommitmentInstalment](#triggercommitmentinstalment) - Trigger instalment
|
|
12
17
|
* [terminateCommitment](#terminatecommitment) - Terminate commitment
|
|
13
18
|
|
|
14
19
|
## createCommitment
|
|
@@ -399,9 +404,387 @@ run();
|
|
|
399
404
|
| models.ErrorsErrorResponse | 500 | application/json |
|
|
400
405
|
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
401
406
|
|
|
407
|
+
## getCommitmentBillingTerms
|
|
408
|
+
|
|
409
|
+
Returns the commitment's current billing terms with its scheduled and invoiced instalments in billing order. Invoiced instalments may come from terms an edit replaced. Cancelled instalments are listed by the instalments endpoint.
|
|
410
|
+
|
|
411
|
+
### Example Usage
|
|
412
|
+
|
|
413
|
+
<!-- UsageSnippet language="typescript" operationID="getCommitmentBillingTerms" method="get" path="/commitments/{id}/billing-terms" -->
|
|
414
|
+
```typescript
|
|
415
|
+
import { Flexprice } from "@flexprice/sdk";
|
|
416
|
+
|
|
417
|
+
const flexprice = new Flexprice({
|
|
418
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
419
|
+
});
|
|
420
|
+
|
|
421
|
+
async function run() {
|
|
422
|
+
const result = await flexprice.commitments.getCommitmentBillingTerms("<id>");
|
|
423
|
+
|
|
424
|
+
console.log(result);
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
run();
|
|
428
|
+
```
|
|
429
|
+
|
|
430
|
+
### Standalone function
|
|
431
|
+
|
|
432
|
+
The standalone function version of this method:
|
|
433
|
+
|
|
434
|
+
```typescript
|
|
435
|
+
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
436
|
+
import { commitmentsGetCommitmentBillingTerms } from "@flexprice/sdk/funcs/commitments-get-commitment-billing-terms.js";
|
|
437
|
+
|
|
438
|
+
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
439
|
+
// You can create one instance of it to use across an application.
|
|
440
|
+
const flexprice = new FlexpriceCore({
|
|
441
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
442
|
+
});
|
|
443
|
+
|
|
444
|
+
async function run() {
|
|
445
|
+
const res = await commitmentsGetCommitmentBillingTerms(flexprice, "<id>");
|
|
446
|
+
if (res.ok) {
|
|
447
|
+
const { value: result } = res;
|
|
448
|
+
console.log(result);
|
|
449
|
+
} else {
|
|
450
|
+
console.log("commitmentsGetCommitmentBillingTerms failed:", res.error);
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
run();
|
|
455
|
+
```
|
|
456
|
+
|
|
457
|
+
### Parameters
|
|
458
|
+
|
|
459
|
+
| Parameter | Type | Required | Description |
|
|
460
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
461
|
+
| `id` | *string* | :heavy_check_mark: | Commitment ID |
|
|
462
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
463
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
464
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
465
|
+
|
|
466
|
+
### Response
|
|
467
|
+
|
|
468
|
+
**Promise\<[models.BillingTermsResponse](../../sdk/models/billing-terms-response.md)\>**
|
|
469
|
+
|
|
470
|
+
### Errors
|
|
471
|
+
|
|
472
|
+
| Error Type | Status Code | Content Type |
|
|
473
|
+
| -------------------------- | -------------------------- | -------------------------- |
|
|
474
|
+
| models.ErrorsErrorResponse | 400, 404 | application/json |
|
|
475
|
+
| models.ErrorsErrorResponse | 500 | application/json |
|
|
476
|
+
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
477
|
+
|
|
478
|
+
## replaceCommitmentBillingTerms
|
|
479
|
+
|
|
480
|
+
Replaces the whole set of billing terms of an active commitment. Its scheduled instalments are cancelled and the new terms generate instalments for what the invoiced ones leave of the commitment total; invoiced instalments and their invoices are kept. A term without bill_on or start_date starts at the billing period holding now, or at the commitment start once its term has ended. Returns the new terms with the scheduled and invoiced instalments in billing order.
|
|
481
|
+
|
|
482
|
+
### Example Usage
|
|
483
|
+
|
|
484
|
+
<!-- UsageSnippet language="typescript" operationID="replaceCommitmentBillingTerms" method="put" path="/commitments/{id}/billing-terms" -->
|
|
485
|
+
```typescript
|
|
486
|
+
import { Flexprice } from "@flexprice/sdk";
|
|
487
|
+
|
|
488
|
+
const flexprice = new Flexprice({
|
|
489
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
490
|
+
});
|
|
491
|
+
|
|
492
|
+
async function run() {
|
|
493
|
+
const result = await flexprice.commitments.replaceCommitmentBillingTerms("<id>", {
|
|
494
|
+
billingTerms: [],
|
|
495
|
+
});
|
|
496
|
+
|
|
497
|
+
console.log(result);
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
run();
|
|
501
|
+
```
|
|
502
|
+
|
|
503
|
+
### Standalone function
|
|
504
|
+
|
|
505
|
+
The standalone function version of this method:
|
|
506
|
+
|
|
507
|
+
```typescript
|
|
508
|
+
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
509
|
+
import { commitmentsReplaceCommitmentBillingTerms } from "@flexprice/sdk/funcs/commitments-replace-commitment-billing-terms.js";
|
|
510
|
+
|
|
511
|
+
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
512
|
+
// You can create one instance of it to use across an application.
|
|
513
|
+
const flexprice = new FlexpriceCore({
|
|
514
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
515
|
+
});
|
|
516
|
+
|
|
517
|
+
async function run() {
|
|
518
|
+
const res = await commitmentsReplaceCommitmentBillingTerms(flexprice, "<id>", {
|
|
519
|
+
billingTerms: [],
|
|
520
|
+
});
|
|
521
|
+
if (res.ok) {
|
|
522
|
+
const { value: result } = res;
|
|
523
|
+
console.log(result);
|
|
524
|
+
} else {
|
|
525
|
+
console.log("commitmentsReplaceCommitmentBillingTerms failed:", res.error);
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
run();
|
|
530
|
+
```
|
|
531
|
+
|
|
532
|
+
### Parameters
|
|
533
|
+
|
|
534
|
+
| Parameter | Type | Required | Description |
|
|
535
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
536
|
+
| `id` | *string* | :heavy_check_mark: | Commitment ID |
|
|
537
|
+
| `body` | [models.ReplaceBillingTermsRequest](../../sdk/models/replace-billing-terms-request.md) | :heavy_check_mark: | Billing terms |
|
|
538
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
539
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
540
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
541
|
+
|
|
542
|
+
### Response
|
|
543
|
+
|
|
544
|
+
**Promise\<[models.BillingTermsResponse](../../sdk/models/billing-terms-response.md)\>**
|
|
545
|
+
|
|
546
|
+
### Errors
|
|
547
|
+
|
|
548
|
+
| Error Type | Status Code | Content Type |
|
|
549
|
+
| -------------------------- | -------------------------- | -------------------------- |
|
|
550
|
+
| models.ErrorsErrorResponse | 400, 404 | application/json |
|
|
551
|
+
| models.ErrorsErrorResponse | 500 | application/json |
|
|
552
|
+
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
553
|
+
|
|
554
|
+
## previewCommitmentBillingTerms
|
|
555
|
+
|
|
556
|
+
Returns what editing the billing terms would produce, without saving anything: the new terms with the invoiced and new instalments in billing order.
|
|
557
|
+
|
|
558
|
+
### Example Usage
|
|
559
|
+
|
|
560
|
+
<!-- UsageSnippet language="typescript" operationID="previewCommitmentBillingTerms" method="post" path="/commitments/{id}/billing-terms/preview" -->
|
|
561
|
+
```typescript
|
|
562
|
+
import { Flexprice } from "@flexprice/sdk";
|
|
563
|
+
|
|
564
|
+
const flexprice = new Flexprice({
|
|
565
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
566
|
+
});
|
|
567
|
+
|
|
568
|
+
async function run() {
|
|
569
|
+
const result = await flexprice.commitments.previewCommitmentBillingTerms("<id>", {
|
|
570
|
+
billingTerms: [
|
|
571
|
+
{
|
|
572
|
+
kind: "once",
|
|
573
|
+
valueType: "fixed",
|
|
574
|
+
},
|
|
575
|
+
],
|
|
576
|
+
});
|
|
577
|
+
|
|
578
|
+
console.log(result);
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
run();
|
|
582
|
+
```
|
|
583
|
+
|
|
584
|
+
### Standalone function
|
|
585
|
+
|
|
586
|
+
The standalone function version of this method:
|
|
587
|
+
|
|
588
|
+
```typescript
|
|
589
|
+
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
590
|
+
import { commitmentsPreviewCommitmentBillingTerms } from "@flexprice/sdk/funcs/commitments-preview-commitment-billing-terms.js";
|
|
591
|
+
|
|
592
|
+
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
593
|
+
// You can create one instance of it to use across an application.
|
|
594
|
+
const flexprice = new FlexpriceCore({
|
|
595
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
596
|
+
});
|
|
597
|
+
|
|
598
|
+
async function run() {
|
|
599
|
+
const res = await commitmentsPreviewCommitmentBillingTerms(flexprice, "<id>", {
|
|
600
|
+
billingTerms: [
|
|
601
|
+
{
|
|
602
|
+
kind: "once",
|
|
603
|
+
valueType: "fixed",
|
|
604
|
+
},
|
|
605
|
+
],
|
|
606
|
+
});
|
|
607
|
+
if (res.ok) {
|
|
608
|
+
const { value: result } = res;
|
|
609
|
+
console.log(result);
|
|
610
|
+
} else {
|
|
611
|
+
console.log("commitmentsPreviewCommitmentBillingTerms failed:", res.error);
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
run();
|
|
616
|
+
```
|
|
617
|
+
|
|
618
|
+
### Parameters
|
|
619
|
+
|
|
620
|
+
| Parameter | Type | Required | Description |
|
|
621
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
622
|
+
| `id` | *string* | :heavy_check_mark: | Commitment ID |
|
|
623
|
+
| `body` | [models.ReplaceBillingTermsRequest](../../sdk/models/replace-billing-terms-request.md) | :heavy_check_mark: | Billing terms |
|
|
624
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
625
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
626
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
627
|
+
|
|
628
|
+
### Response
|
|
629
|
+
|
|
630
|
+
**Promise\<[models.BillingTermsResponse](../../sdk/models/billing-terms-response.md)\>**
|
|
631
|
+
|
|
632
|
+
### Errors
|
|
633
|
+
|
|
634
|
+
| Error Type | Status Code | Content Type |
|
|
635
|
+
| -------------------------- | -------------------------- | -------------------------- |
|
|
636
|
+
| models.ErrorsErrorResponse | 400, 404 | application/json |
|
|
637
|
+
| models.ErrorsErrorResponse | 500 | application/json |
|
|
638
|
+
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
639
|
+
|
|
640
|
+
## listCommitmentInstalments
|
|
641
|
+
|
|
642
|
+
Lists the instalments of the commitment in billing order. Without a status filter every instalment is listed, cancelled ones included.
|
|
643
|
+
|
|
644
|
+
### Example Usage
|
|
645
|
+
|
|
646
|
+
<!-- UsageSnippet language="typescript" operationID="listCommitmentInstalments" method="get" path="/commitments/{id}/instalments" -->
|
|
647
|
+
```typescript
|
|
648
|
+
import { Flexprice } from "@flexprice/sdk";
|
|
649
|
+
|
|
650
|
+
const flexprice = new Flexprice({
|
|
651
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
652
|
+
});
|
|
653
|
+
|
|
654
|
+
async function run() {
|
|
655
|
+
const result = await flexprice.commitments.listCommitmentInstalments("<id>");
|
|
656
|
+
|
|
657
|
+
console.log(result);
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
run();
|
|
661
|
+
```
|
|
662
|
+
|
|
663
|
+
### Standalone function
|
|
664
|
+
|
|
665
|
+
The standalone function version of this method:
|
|
666
|
+
|
|
667
|
+
```typescript
|
|
668
|
+
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
669
|
+
import { commitmentsListCommitmentInstalments } from "@flexprice/sdk/funcs/commitments-list-commitment-instalments.js";
|
|
670
|
+
|
|
671
|
+
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
672
|
+
// You can create one instance of it to use across an application.
|
|
673
|
+
const flexprice = new FlexpriceCore({
|
|
674
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
675
|
+
});
|
|
676
|
+
|
|
677
|
+
async function run() {
|
|
678
|
+
const res = await commitmentsListCommitmentInstalments(flexprice, "<id>");
|
|
679
|
+
if (res.ok) {
|
|
680
|
+
const { value: result } = res;
|
|
681
|
+
console.log(result);
|
|
682
|
+
} else {
|
|
683
|
+
console.log("commitmentsListCommitmentInstalments failed:", res.error);
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
run();
|
|
688
|
+
```
|
|
689
|
+
|
|
690
|
+
### Parameters
|
|
691
|
+
|
|
692
|
+
| Parameter | Type | Required | Description |
|
|
693
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
694
|
+
| `id` | *string* | :heavy_check_mark: | Commitment ID |
|
|
695
|
+
| `status` | *string*[] | :heavy_minus_sign: | Only instalments in these statuses (scheduled, invoiced, cancelled) |
|
|
696
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
697
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
698
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
699
|
+
|
|
700
|
+
### Response
|
|
701
|
+
|
|
702
|
+
**Promise\<[models.ListInstalmentsResponse](../../sdk/models/list-instalments-response.md)\>**
|
|
703
|
+
|
|
704
|
+
### Errors
|
|
705
|
+
|
|
706
|
+
| Error Type | Status Code | Content Type |
|
|
707
|
+
| -------------------------- | -------------------------- | -------------------------- |
|
|
708
|
+
| models.ErrorsErrorResponse | 400, 404 | application/json |
|
|
709
|
+
| models.ErrorsErrorResponse | 500 | application/json |
|
|
710
|
+
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
711
|
+
|
|
712
|
+
## triggerCommitmentInstalment
|
|
713
|
+
|
|
714
|
+
Bills a manual instalment of an active commitment on bill_on, now by default, which must fall within the commitment term. The instalment goes on the first subscription invoice at or after that date, or on its own invoice once due when its instalment_invoicing, the term's or else the commitment's, is separate_invoice. Either way it waits while the subscription is trialing or paused. Until it is triggered, a manual instalment waits at the end of the term, and bill_on can only move earlier; edit the billing terms to bill it later.
|
|
715
|
+
|
|
716
|
+
### Example Usage
|
|
717
|
+
|
|
718
|
+
<!-- UsageSnippet language="typescript" operationID="triggerCommitmentInstalment" method="post" path="/commitments/{id}/instalments/{instalment_id}/trigger" -->
|
|
719
|
+
```typescript
|
|
720
|
+
import { Flexprice } from "@flexprice/sdk";
|
|
721
|
+
|
|
722
|
+
const flexprice = new Flexprice({
|
|
723
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
724
|
+
});
|
|
725
|
+
|
|
726
|
+
async function run() {
|
|
727
|
+
const result = await flexprice.commitments.triggerCommitmentInstalment("<id>", "<id>");
|
|
728
|
+
|
|
729
|
+
console.log(result);
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
run();
|
|
733
|
+
```
|
|
734
|
+
|
|
735
|
+
### Standalone function
|
|
736
|
+
|
|
737
|
+
The standalone function version of this method:
|
|
738
|
+
|
|
739
|
+
```typescript
|
|
740
|
+
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
741
|
+
import { commitmentsTriggerCommitmentInstalment } from "@flexprice/sdk/funcs/commitments-trigger-commitment-instalment.js";
|
|
742
|
+
|
|
743
|
+
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
744
|
+
// You can create one instance of it to use across an application.
|
|
745
|
+
const flexprice = new FlexpriceCore({
|
|
746
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
747
|
+
});
|
|
748
|
+
|
|
749
|
+
async function run() {
|
|
750
|
+
const res = await commitmentsTriggerCommitmentInstalment(flexprice, "<id>", "<id>");
|
|
751
|
+
if (res.ok) {
|
|
752
|
+
const { value: result } = res;
|
|
753
|
+
console.log(result);
|
|
754
|
+
} else {
|
|
755
|
+
console.log("commitmentsTriggerCommitmentInstalment failed:", res.error);
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
run();
|
|
760
|
+
```
|
|
761
|
+
|
|
762
|
+
### Parameters
|
|
763
|
+
|
|
764
|
+
| Parameter | Type | Required | Description |
|
|
765
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
766
|
+
| `id` | *string* | :heavy_check_mark: | Commitment ID |
|
|
767
|
+
| `instalmentId` | *string* | :heavy_check_mark: | Instalment ID |
|
|
768
|
+
| `body` | [models.TriggerInstalmentRequest](../../sdk/models/trigger-instalment-request.md) | :heavy_minus_sign: | Trigger request |
|
|
769
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
770
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
771
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
772
|
+
|
|
773
|
+
### Response
|
|
774
|
+
|
|
775
|
+
**Promise\<[models.BillingtermInstalment](../../sdk/models/billingterm-instalment.md)\>**
|
|
776
|
+
|
|
777
|
+
### Errors
|
|
778
|
+
|
|
779
|
+
| Error Type | Status Code | Content Type |
|
|
780
|
+
| -------------------------- | -------------------------- | -------------------------- |
|
|
781
|
+
| models.ErrorsErrorResponse | 400, 404 | application/json |
|
|
782
|
+
| models.ErrorsErrorResponse | 500 | application/json |
|
|
783
|
+
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
784
|
+
|
|
402
785
|
## terminateCommitment
|
|
403
786
|
|
|
404
|
-
Ends a commitment
|
|
787
|
+
Ends a commitment immediately. effective_at defaults to now and cannot be in the future. Under billing terms, its scheduled instalments are cancelled, and those already due by effective_at are billed together as one settlement; later instalments are not billed and nothing is refunded. The settlement and a fixed cancellation fee, when given, are billed together on one one-off invoice.
|
|
405
788
|
|
|
406
789
|
### Example Usage
|
|
407
790
|
|
|
@@ -2253,7 +2253,7 @@ run();
|
|
|
2253
2253
|
| Parameter | Type | Required | Description |
|
|
2254
2254
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
2255
2255
|
| `id` | *string* | :heavy_check_mark: | Subscription ID |
|
|
2256
|
-
| `expand` | *string* | :heavy_minus_sign: | Comma-separated list of fields to expand (e.g., 'subscription_line_items,prices,plan')
|
|
2256
|
+
| `expand` | *string* | :heavy_minus_sign: | Comma-separated list of fields to expand (e.g., 'subscription_line_items,prices,plan,commitments') |
|
|
2257
2257
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
2258
2258
|
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
2259
2259
|
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|