@flexprice/sdk 2.1.48-dev.4 → 2.1.48-dev.6
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 +15 -14
- package/docs/sdk/models/billingterm-term.md +25 -24
- package/docs/sdk/models/create-commitment-request.md +1 -1
- package/docs/sdk/models/get-subscription-v2-request.md +4 -4
- package/docs/sdk/models/invoice-billing-reason.md +1 -1
- 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-instalment-request.md +3 -3
- package/docs/sdk/models/update-commitment-request.md +7 -6
- package/docs/sdks/commitments/README.md +1 -1
- package/docs/sdks/subscriptions/README.md +1 -1
- package/docs/sdks/webhookevents/README.md +3 -3
- package/esm/funcs/commitments-trigger-commitment-instalment.d.ts +1 -1
- package/esm/funcs/commitments-trigger-commitment-instalment.js +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-billing-instalment-created.d.ts +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-billing-instalment-created.js +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-billing-terms-created.d.ts +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-billing-terms-created.js +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-billing-terms-updated.d.ts +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-billing-terms-updated.js +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/sdk/commitments.d.ts +1 -1
- package/esm/sdk/commitments.js +1 -1
- package/esm/sdk/models/billing-term-input.d.ts +11 -5
- package/esm/sdk/models/billing-term-input.d.ts.map +1 -1
- package/esm/sdk/models/billing-term-input.js +3 -0
- package/esm/sdk/models/billing-term-input.js.map +1 -1
- package/esm/sdk/models/billingterm-term.d.ts +3 -1
- package/esm/sdk/models/billingterm-term.d.ts.map +1 -1
- package/esm/sdk/models/billingterm-term.js +3 -0
- package/esm/sdk/models/billingterm-term.js.map +1 -1
- package/esm/sdk/models/create-commitment-request.d.ts +1 -1
- package/esm/sdk/models/get-subscription-v2-op.d.ts +1 -1
- package/esm/sdk/models/invoice-billing-reason.d.ts +1 -0
- package/esm/sdk/models/invoice-billing-reason.d.ts.map +1 -1
- package/esm/sdk/models/invoice-billing-reason.js +1 -0
- package/esm/sdk/models/invoice-billing-reason.js.map +1 -1
- 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 +1 -1
- package/esm/sdk/models/trigger-instalment-request.d.ts +1 -1
- 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/webhook-events.d.ts +3 -3
- package/esm/sdk/webhook-events.js +3 -3
- package/jsr.json +1 -1
- package/package.json +2 -2
- package/src/funcs/commitments-trigger-commitment-instalment.ts +1 -1
- package/src/funcs/webhook-events-post-webhook-events-billing-instalment-created.ts +1 -1
- package/src/funcs/webhook-events-post-webhook-events-billing-terms-created.ts +1 -1
- package/src/funcs/webhook-events-post-webhook-events-billing-terms-updated.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/sdk/commitments.ts +1 -1
- package/src/sdk/models/billing-term-input.ts +16 -5
- package/src/sdk/models/billingterm-term.ts +8 -1
- package/src/sdk/models/create-commitment-request.ts +1 -1
- package/src/sdk/models/get-subscription-v2-op.ts +1 -1
- package/src/sdk/models/invoice-billing-reason.ts +1 -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 +1 -1
- package/src/sdk/models/trigger-instalment-request.ts +1 -1
- package/src/sdk/models/update-commitment-request.ts +7 -0
- package/src/sdk/webhook-events.ts +3 -3
|
@@ -13,17 +13,18 @@ let value: BillingTermInput = {
|
|
|
13
13
|
|
|
14
14
|
## Fields
|
|
15
15
|
|
|
16
|
-
| Field
|
|
17
|
-
|
|
|
18
|
-
| `billOn`
|
|
19
|
-
| `billTrigger`
|
|
20
|
-
| `endDate`
|
|
21
|
-
| `
|
|
22
|
-
| `
|
|
23
|
-
| `
|
|
24
|
-
| `
|
|
25
|
-
| `
|
|
26
|
-
| `
|
|
27
|
-
| `
|
|
28
|
-
| `
|
|
29
|
-
| `
|
|
16
|
+
| Field | Type | Required | Description |
|
|
17
|
+
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
18
|
+
| `billOn` | *string* | :heavy_minus_sign: | BillOn defaults to the commitment start, or on an edit to the start of the billing period holding now (the<br/>commitment start once its term has ended). A manual term omits it and waits at the commitment end. |
|
|
19
|
+
| `billTrigger` | [models.InstalmentBillTrigger](../../sdk/models/instalment-bill-trigger.md) | :heavy_minus_sign: | N/A |
|
|
20
|
+
| `endDate` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A |
|
|
21
|
+
| `instalmentInvoicing` | [models.InstalmentDelivery](../../sdk/models/instalment-delivery.md) | :heavy_minus_sign: | N/A |
|
|
22
|
+
| `invoiceCadence` | [models.InvoiceCadence](../../sdk/models/invoice-cadence.md) | :heavy_minus_sign: | N/A |
|
|
23
|
+
| `invoiceLabel` | *string* | :heavy_minus_sign: | InvoiceLabel names the term's instalments, "Instalment {n} of {of}" by default. {n} and {of} count only the<br/>commitment's instalments whose labels use them. |
|
|
24
|
+
| `kind` | [models.BillingTermKind](../../sdk/models/billing-term-kind.md) | :heavy_check_mark: | N/A |
|
|
25
|
+
| `metadata` | Record<string, *string*> | :heavy_minus_sign: | N/A |
|
|
26
|
+
| `periodCount` | *number* | :heavy_minus_sign: | N/A |
|
|
27
|
+
| `split` | [models.BillingTermSplit](../../sdk/models/billing-term-split.md) | :heavy_minus_sign: | N/A |
|
|
28
|
+
| `startDate` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | StartDate and EndDate are edges of the periods the term steps on: billing periods, or anniversary ones when it is<br/>invoiced separately; by default, the period holding the commitment start (now, on an edit) to the commitment end. |
|
|
29
|
+
| `value` | *string* | :heavy_minus_sign: | N/A |
|
|
30
|
+
| `valueType` | [models.BillingTermValueType](../../sdk/models/billing-term-value-type.md) | :heavy_check_mark: | fixed or remainder; percentage is reserved and rejected as not supported yet |
|
|
@@ -10,27 +10,28 @@ let value: BillingtermTerm = {};
|
|
|
10
10
|
|
|
11
11
|
## Fields
|
|
12
12
|
|
|
13
|
-
| Field
|
|
14
|
-
|
|
|
15
|
-
| `billOn`
|
|
16
|
-
| `billTrigger`
|
|
17
|
-
| `createdAt`
|
|
18
|
-
| `createdBy`
|
|
19
|
-
| `endDate`
|
|
20
|
-
| `environmentId`
|
|
21
|
-
| `id`
|
|
22
|
-
| `
|
|
23
|
-
| `
|
|
24
|
-
| `
|
|
25
|
-
| `
|
|
26
|
-
| `
|
|
27
|
-
| `
|
|
28
|
-
| `
|
|
29
|
-
| `
|
|
30
|
-
| `
|
|
31
|
-
| `
|
|
32
|
-
| `
|
|
33
|
-
| `
|
|
34
|
-
| `
|
|
35
|
-
| `
|
|
36
|
-
| `
|
|
13
|
+
| Field | Type | Required | Description |
|
|
14
|
+
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
15
|
+
| `billOn` | *string* | :heavy_minus_sign: | N/A |
|
|
16
|
+
| `billTrigger` | [models.InstalmentBillTrigger](../../sdk/models/instalment-bill-trigger.md) | :heavy_minus_sign: | N/A |
|
|
17
|
+
| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A |
|
|
18
|
+
| `createdBy` | *string* | :heavy_minus_sign: | N/A |
|
|
19
|
+
| `endDate` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A |
|
|
20
|
+
| `environmentId` | *string* | :heavy_minus_sign: | N/A |
|
|
21
|
+
| `id` | *string* | :heavy_minus_sign: | N/A |
|
|
22
|
+
| `instalmentInvoicing` | [models.InstalmentDelivery](../../sdk/models/instalment-delivery.md) | :heavy_minus_sign: | N/A |
|
|
23
|
+
| `invoiceCadence` | [models.InvoiceCadence](../../sdk/models/invoice-cadence.md) | :heavy_minus_sign: | N/A |
|
|
24
|
+
| `invoiceLabel` | *string* | :heavy_minus_sign: | InvoiceLabel names its instalments on the invoice, after the owner's label. It may use {n} and {of}, which number<br/>the owner's instalments whose labels use them. |
|
|
25
|
+
| `kind` | [models.BillingTermKind](../../sdk/models/billing-term-kind.md) | :heavy_minus_sign: | N/A |
|
|
26
|
+
| `metadata` | Record<string, *string*> | :heavy_minus_sign: | N/A |
|
|
27
|
+
| `ownerId` | *string* | :heavy_minus_sign: | N/A |
|
|
28
|
+
| `ownerType` | [models.BillingTermOwnerType](../../sdk/models/billing-term-owner-type.md) | :heavy_minus_sign: | N/A |
|
|
29
|
+
| `periodCount` | *number* | :heavy_minus_sign: | N/A |
|
|
30
|
+
| `split` | [models.BillingTermSplit](../../sdk/models/billing-term-split.md) | :heavy_minus_sign: | N/A |
|
|
31
|
+
| `startDate` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Recurring terms. |
|
|
32
|
+
| `status` | [models.Status](../../sdk/models/status.md) | :heavy_minus_sign: | N/A |
|
|
33
|
+
| `tenantId` | *string* | :heavy_minus_sign: | N/A |
|
|
34
|
+
| `updatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A |
|
|
35
|
+
| `updatedBy` | *string* | :heavy_minus_sign: | N/A |
|
|
36
|
+
| `value` | *string* | :heavy_minus_sign: | Value is the amount of a fixed term, per instalment on a recurring one; it is nil for a remainder term. |
|
|
37
|
+
| `valueType` | [models.BillingTermValueType](../../sdk/models/billing-term-value-type.md) | :heavy_minus_sign: | fixed or remainder; percentage is reserved and rejected as not supported yet |
|
|
@@ -36,7 +36,7 @@ let value: CreateCommitmentRequest = {
|
|
|
36
36
|
| `overagePrice` | [models.CommitmentPriceInput](../../sdk/models/commitment-price-input.md) | :heavy_minus_sign: | N/A |
|
|
37
37
|
| `priority` | *number* | :heavy_minus_sign: | N/A |
|
|
38
38
|
| `scope` | [models.CommitmentScopeInput](../../sdk/models/commitment-scope-input.md) | :heavy_check_mark: | N/A |
|
|
39
|
-
| `startDate` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | StartDate and EndDate
|
|
39
|
+
| `startDate` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | StartDate and EndDate within a second after a billing period edge are taken as that edge. |
|
|
40
40
|
| `subscriptionId` | *string* | :heavy_minus_sign: | SubscriptionID is required on POST /commitments and set server-side on inline commitments. |
|
|
41
41
|
| `timezone` | *string* | :heavy_minus_sign: | N/A |
|
|
42
42
|
| `type` | [models.CommitmentType](../../sdk/models/commitment-type.md) | :heavy_check_mark: | N/A |
|
|
@@ -12,7 +12,7 @@ let value: GetSubscriptionV2Request = {
|
|
|
12
12
|
|
|
13
13
|
## Fields
|
|
14
14
|
|
|
15
|
-
| Field
|
|
16
|
-
|
|
|
17
|
-
| `id`
|
|
18
|
-
| `expand`
|
|
15
|
+
| Field | Type | Required | Description |
|
|
16
|
+
| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- |
|
|
17
|
+
| `id` | *string* | :heavy_check_mark: | Subscription ID |
|
|
18
|
+
| `expand` | *string* | :heavy_minus_sign: | Comma-separated list of fields to expand (e.g., 'subscription_line_items,prices,plan,commitments') |
|
|
@@ -11,5 +11,5 @@ let value: InvoiceBillingReason = "SUBSCRIPTION_TRIAL_END";
|
|
|
11
11
|
## Values
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
"SUBSCRIPTION_CREATE" | "SUBSCRIPTION_CYCLE" | "SUBSCRIPTION_UPDATE" | "SUBSCRIPTION_TRIAL_END" | "SUBSCRIPTION_TRIAL_START" | "PRORATION" | "MANUAL" | "AUTO_INVOICE_THRESHOLD" | "WALLET_AUTO_TOPUP" | "SUBSCRIPTION_PAUSED" | "SUBSCRIPTION_RESUME" | "BILLING_TERMS"
|
|
14
|
+
"SUBSCRIPTION_CREATE" | "SUBSCRIPTION_CYCLE" | "SUBSCRIPTION_UPDATE" | "SUBSCRIPTION_TRIAL_END" | "SUBSCRIPTION_TRIAL_START" | "PRORATION" | "MANUAL" | "AUTO_INVOICE_THRESHOLD" | "WALLET_AUTO_TOPUP" | "SUBSCRIPTION_PAUSED" | "SUBSCRIPTION_RESUME" | "BILLING_TERMS" | "COMMITMENT_TERMINATION"
|
|
15
15
|
```
|
|
@@ -95,6 +95,7 @@ let value: SubscriptionResponseV2 = {
|
|
|
95
95
|
| `collectionMethod` | *string* | :heavy_minus_sign: | CollectionMethod determines how invoices are collected |
|
|
96
96
|
| `commitmentAmount` | *string* | :heavy_minus_sign: | CommitmentAmount is the minimum amount a customer commits to paying for a billing period |
|
|
97
97
|
| `commitmentDuration` | [models.BillingPeriod](../../sdk/models/billing-period.md) | :heavy_minus_sign: | N/A |
|
|
98
|
+
| `commitments` | [models.CommitmentResponse](../../sdk/models/commitment-response.md)[] | :heavy_minus_sign: | Commitments are included when "commitments" is in expand parameter |
|
|
98
99
|
| `couponAssociations` | [models.CouponAssociationResponse](../../sdk/models/coupon-association-response.md)[] | :heavy_minus_sign: | CouponAssociations are included when "coupon_associations" is in expand parameter |
|
|
99
100
|
| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A |
|
|
100
101
|
| `createdBy` | *string* | :heavy_minus_sign: | N/A |
|
|
@@ -133,6 +133,7 @@ let value: SubscriptionResponse = {
|
|
|
133
133
|
| `collectionMethod` | *string* | :heavy_minus_sign: | CollectionMethod determines how invoices are collected |
|
|
134
134
|
| `commitmentAmount` | *string* | :heavy_minus_sign: | CommitmentAmount is the minimum amount a customer commits to paying for a billing period |
|
|
135
135
|
| `commitmentDuration` | [models.BillingPeriod](../../sdk/models/billing-period.md) | :heavy_minus_sign: | N/A |
|
|
136
|
+
| `commitments` | [models.CommitmentResponse](../../sdk/models/commitment-response.md)[] | :heavy_minus_sign: | Commitments are the commitments created with the subscription; set on create only. |
|
|
136
137
|
| `couponAssociations` | [models.CouponAssociationResponse](../../sdk/models/coupon-association-response.md)[] | :heavy_minus_sign: | CouponAssociations are the coupon associations for this subscription |
|
|
137
138
|
| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A |
|
|
138
139
|
| `createdBy` | *string* | :heavy_minus_sign: | N/A |
|
|
@@ -10,7 +10,7 @@ let value: TerminateCommitmentRequest = {};
|
|
|
10
10
|
|
|
11
11
|
## Fields
|
|
12
12
|
|
|
13
|
-
| Field
|
|
14
|
-
|
|
|
15
|
-
| `cancellationFee`
|
|
16
|
-
| `effectiveAt`
|
|
13
|
+
| Field | Type | Required | Description |
|
|
14
|
+
| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- |
|
|
15
|
+
| `cancellationFee` | [models.CancellationFeeInput](../../sdk/models/cancellation-fee-input.md) | :heavy_minus_sign: | N/A |
|
|
16
|
+
| `effectiveAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | EffectiveAt defaults to now; within a second after a billing period edge it is taken as that edge. |
|
|
@@ -10,6 +10,6 @@ let value: TriggerInstalmentRequest = {};
|
|
|
10
10
|
|
|
11
11
|
## Fields
|
|
12
12
|
|
|
13
|
-
| Field
|
|
14
|
-
|
|
|
15
|
-
| `billOn`
|
|
13
|
+
| Field | Type | Required | Description |
|
|
14
|
+
| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
|
|
15
|
+
| `billOn` | *string* | :heavy_minus_sign: | BillOn within a second after a billing period edge is taken as that edge. |
|
|
@@ -10,9 +10,10 @@ let value: UpdateCommitmentRequest = {};
|
|
|
10
10
|
|
|
11
11
|
## Fields
|
|
12
12
|
|
|
13
|
-
| Field
|
|
14
|
-
|
|
|
15
|
-
| `
|
|
16
|
-
| `
|
|
17
|
-
| `
|
|
18
|
-
| `
|
|
13
|
+
| Field | Type | Required | Description |
|
|
14
|
+
| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
|
|
15
|
+
| `endDate` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | EndDate can't be changed yet; terminate the commitment to end it. |
|
|
16
|
+
| `invoiceDescription` | *string* | :heavy_minus_sign: | N/A |
|
|
17
|
+
| `invoiceLabel` | *string* | :heavy_minus_sign: | N/A |
|
|
18
|
+
| `metadata` | Record<string, *string*> | :heavy_minus_sign: | N/A |
|
|
19
|
+
| `name` | *string* | :heavy_minus_sign: | N/A |
|
|
@@ -711,7 +711,7 @@ run();
|
|
|
711
711
|
|
|
712
712
|
## triggerCommitmentInstalment
|
|
713
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 the commitment's
|
|
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
715
|
|
|
716
716
|
### Example Usage
|
|
717
717
|
|
|
@@ -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. |
|
|
@@ -147,7 +147,7 @@ run();
|
|
|
147
147
|
|
|
148
148
|
## postWebhookEventsBillingInstalmentCreated
|
|
149
149
|
|
|
150
|
-
Fired when a billing instalment is
|
|
150
|
+
Fired when a billing instalment is scheduled for an entity (like a commitment). Doc-only for parsing.
|
|
151
151
|
|
|
152
152
|
### Example Usage
|
|
153
153
|
|
|
@@ -351,7 +351,7 @@ run();
|
|
|
351
351
|
|
|
352
352
|
## postWebhookEventsBillingTermsCreated
|
|
353
353
|
|
|
354
|
-
Fired when billing terms are saved
|
|
354
|
+
Fired when billing terms are saved against an entity (like a commitment). Doc-only for parsing.
|
|
355
355
|
|
|
356
356
|
### Example Usage
|
|
357
357
|
|
|
@@ -419,7 +419,7 @@ run();
|
|
|
419
419
|
|
|
420
420
|
## postWebhookEventsBillingTermsUpdated
|
|
421
421
|
|
|
422
|
-
Fired when an
|
|
422
|
+
Fired when an entity's (like a commitment's) billing terms are replaced. Doc-only for parsing.
|
|
423
423
|
|
|
424
424
|
### Example Usage
|
|
425
425
|
|
|
@@ -11,7 +11,7 @@ import { Result } from "../types/fp.js";
|
|
|
11
11
|
* Trigger instalment
|
|
12
12
|
*
|
|
13
13
|
* @remarks
|
|
14
|
-
* 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 the commitment's
|
|
14
|
+
* 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.
|
|
15
15
|
*/
|
|
16
16
|
export declare function commitmentsTriggerCommitmentInstalment(client: FlexpriceCore, id: string, instalmentId: string, body?: models.TriggerInstalmentRequest | undefined, options?: RequestOptions): APIPromise<Result<models.BillingtermInstalment, models.ErrorsErrorResponse | FlexPriceError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
17
17
|
//# sourceMappingURL=commitments-trigger-commitment-instalment.d.ts.map
|
|
@@ -15,7 +15,7 @@ import { APIPromise } from "../types/async.js";
|
|
|
15
15
|
* Trigger instalment
|
|
16
16
|
*
|
|
17
17
|
* @remarks
|
|
18
|
-
* 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 the commitment's
|
|
18
|
+
* 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.
|
|
19
19
|
*/
|
|
20
20
|
export function commitmentsTriggerCommitmentInstalment(client, id, instalmentId, body, options) {
|
|
21
21
|
return new APIPromise($do(client, id, instalmentId, body, options));
|
|
@@ -11,7 +11,7 @@ import { Result } from "../types/fp.js";
|
|
|
11
11
|
* billing_instalment.created
|
|
12
12
|
*
|
|
13
13
|
* @remarks
|
|
14
|
-
* Fired when a billing instalment is
|
|
14
|
+
* Fired when a billing instalment is scheduled for an entity (like a commitment). Doc-only for parsing.
|
|
15
15
|
*/
|
|
16
16
|
export declare function webhookEventsPostWebhookEventsBillingInstalmentCreated(client: FlexpriceCore, options?: RequestOptions): APIPromise<Result<models.WebhookDtoBillingInstalmentWebhookPayload, FlexPriceError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
17
17
|
//# sourceMappingURL=webhook-events-post-webhook-events-billing-instalment-created.d.ts.map
|
|
@@ -12,7 +12,7 @@ import { APIPromise } from "../types/async.js";
|
|
|
12
12
|
* billing_instalment.created
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
* Fired when a billing instalment is
|
|
15
|
+
* Fired when a billing instalment is scheduled for an entity (like a commitment). Doc-only for parsing.
|
|
16
16
|
*/
|
|
17
17
|
export function webhookEventsPostWebhookEventsBillingInstalmentCreated(client, options) {
|
|
18
18
|
return new APIPromise($do(client, options));
|
|
@@ -11,7 +11,7 @@ import { Result } from "../types/fp.js";
|
|
|
11
11
|
* billing_terms.created
|
|
12
12
|
*
|
|
13
13
|
* @remarks
|
|
14
|
-
* Fired when billing terms are saved
|
|
14
|
+
* Fired when billing terms are saved against an entity (like a commitment). Doc-only for parsing.
|
|
15
15
|
*/
|
|
16
16
|
export declare function webhookEventsPostWebhookEventsBillingTermsCreated(client: FlexpriceCore, options?: RequestOptions): APIPromise<Result<models.WebhookDtoBillingTermsWebhookPayload, FlexPriceError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
17
17
|
//# sourceMappingURL=webhook-events-post-webhook-events-billing-terms-created.d.ts.map
|
|
@@ -12,7 +12,7 @@ import { APIPromise } from "../types/async.js";
|
|
|
12
12
|
* billing_terms.created
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
* Fired when billing terms are saved
|
|
15
|
+
* Fired when billing terms are saved against an entity (like a commitment). Doc-only for parsing.
|
|
16
16
|
*/
|
|
17
17
|
export function webhookEventsPostWebhookEventsBillingTermsCreated(client, options) {
|
|
18
18
|
return new APIPromise($do(client, options));
|
|
@@ -11,7 +11,7 @@ import { Result } from "../types/fp.js";
|
|
|
11
11
|
* billing_terms.updated
|
|
12
12
|
*
|
|
13
13
|
* @remarks
|
|
14
|
-
* Fired when an
|
|
14
|
+
* Fired when an entity's (like a commitment's) billing terms are replaced. Doc-only for parsing.
|
|
15
15
|
*/
|
|
16
16
|
export declare function webhookEventsPostWebhookEventsBillingTermsUpdated(client: FlexpriceCore, options?: RequestOptions): APIPromise<Result<models.WebhookDtoBillingTermsWebhookPayload, FlexPriceError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
17
17
|
//# sourceMappingURL=webhook-events-post-webhook-events-billing-terms-updated.d.ts.map
|
|
@@ -12,7 +12,7 @@ import { APIPromise } from "../types/async.js";
|
|
|
12
12
|
* billing_terms.updated
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
* Fired when an
|
|
15
|
+
* Fired when an entity's (like a commitment's) billing terms are replaced. Doc-only for parsing.
|
|
16
16
|
*/
|
|
17
17
|
export function webhookEventsPostWebhookEventsBillingTermsUpdated(client, options) {
|
|
18
18
|
return new APIPromise($do(client, options));
|
package/esm/lib/config.d.ts
CHANGED
|
@@ -35,8 +35,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
35
35
|
export declare const SDK_METADATA: {
|
|
36
36
|
readonly language: "typescript";
|
|
37
37
|
readonly openapiDocVersion: "1.0";
|
|
38
|
-
readonly sdkVersion: "2.1.48-dev.
|
|
38
|
+
readonly sdkVersion: "2.1.48-dev.6";
|
|
39
39
|
readonly genVersion: "2.956.1";
|
|
40
|
-
readonly userAgent: "speakeasy-sdk/typescript 2.1.48-dev.
|
|
40
|
+
readonly userAgent: "speakeasy-sdk/typescript 2.1.48-dev.6 2.956.1 1.0 @flexprice/sdk";
|
|
41
41
|
};
|
|
42
42
|
//# sourceMappingURL=config.d.ts.map
|
package/esm/lib/config.js
CHANGED
|
@@ -39,8 +39,8 @@ export function serverURLFromOptions(options) {
|
|
|
39
39
|
export const SDK_METADATA = {
|
|
40
40
|
language: "typescript",
|
|
41
41
|
openapiDocVersion: "1.0",
|
|
42
|
-
sdkVersion: "2.1.48-dev.
|
|
42
|
+
sdkVersion: "2.1.48-dev.6",
|
|
43
43
|
genVersion: "2.956.1",
|
|
44
|
-
userAgent: "speakeasy-sdk/typescript 2.1.48-dev.
|
|
44
|
+
userAgent: "speakeasy-sdk/typescript 2.1.48-dev.6 2.956.1 1.0 @flexprice/sdk",
|
|
45
45
|
};
|
|
46
46
|
//# sourceMappingURL=config.js.map
|
package/esm/sdk/commitments.d.ts
CHANGED
|
@@ -68,7 +68,7 @@ export declare class Commitments extends ClientSDK {
|
|
|
68
68
|
* Trigger instalment
|
|
69
69
|
*
|
|
70
70
|
* @remarks
|
|
71
|
-
* 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 the commitment's
|
|
71
|
+
* 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.
|
|
72
72
|
*/
|
|
73
73
|
triggerCommitmentInstalment(id: string, instalmentId: string, body?: models.TriggerInstalmentRequest | undefined, options?: RequestOptions): Promise<models.BillingtermInstalment>;
|
|
74
74
|
/**
|
package/esm/sdk/commitments.js
CHANGED
|
@@ -100,7 +100,7 @@ export class Commitments extends ClientSDK {
|
|
|
100
100
|
* Trigger instalment
|
|
101
101
|
*
|
|
102
102
|
* @remarks
|
|
103
|
-
* 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 the commitment's
|
|
103
|
+
* 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.
|
|
104
104
|
*/
|
|
105
105
|
async triggerCommitmentInstalment(id, instalmentId, body, options) {
|
|
106
106
|
return unwrapAsync(commitmentsTriggerCommitmentInstalment(this, id, instalmentId, body, options));
|