@flexprice/sdk 2.1.5 → 2.1.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/create-price-request.md +1 -1
- package/docs/sdk/models/create-subscription-request.md +1 -2
- package/docs/sdk/models/invoice-billing-reason.md +1 -1
- package/docs/sdk/models/price-price.md +42 -42
- package/docs/sdk/models/price-response.md +47 -47
- package/docs/sdk/models/subscription-filter.md +1 -0
- package/docs/sdk/models/subscription-line-item-response.md +0 -1
- package/docs/sdk/models/subscription-price-create-request.md +1 -1
- package/docs/sdk/models/subscription-subscription-line-item.md +0 -1
- package/docs/sdk/models/window-size.md +2 -2
- package/docs/sdks/subscriptions/README.md +0 -226
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/sdk/models/create-price-request.d.ts +2 -2
- package/esm/sdk/models/create-price-request.d.ts.map +1 -1
- package/esm/sdk/models/create-price-request.js +2 -2
- package/esm/sdk/models/create-price-request.js.map +1 -1
- package/esm/sdk/models/create-subscription-request.d.ts +8 -4
- package/esm/sdk/models/create-subscription-request.d.ts.map +1 -1
- package/esm/sdk/models/create-subscription-request.js +2 -4
- package/esm/sdk/models/create-subscription-request.js.map +1 -1
- package/esm/sdk/models/index.d.ts +0 -7
- package/esm/sdk/models/index.d.ts.map +1 -1
- package/esm/sdk/models/index.js +0 -7
- package/esm/sdk/models/index.js.map +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/pause-mode.d.ts +0 -2
- package/esm/sdk/models/pause-mode.d.ts.map +1 -1
- package/esm/sdk/models/pause-mode.js +0 -2
- package/esm/sdk/models/pause-mode.js.map +1 -1
- package/esm/sdk/models/price-price.d.ts +2 -2
- package/esm/sdk/models/price-price.d.ts.map +1 -1
- package/esm/sdk/models/price-price.js +2 -2
- package/esm/sdk/models/price-price.js.map +1 -1
- package/esm/sdk/models/price-response.d.ts +2 -2
- package/esm/sdk/models/price-response.d.ts.map +1 -1
- package/esm/sdk/models/price-response.js +2 -2
- package/esm/sdk/models/price-response.js.map +1 -1
- package/esm/sdk/models/resume-mode.d.ts +0 -2
- package/esm/sdk/models/resume-mode.d.ts.map +1 -1
- package/esm/sdk/models/resume-mode.js +0 -2
- package/esm/sdk/models/resume-mode.js.map +1 -1
- package/esm/sdk/models/subscription-filter.d.ts +8 -0
- package/esm/sdk/models/subscription-filter.d.ts.map +1 -1
- package/esm/sdk/models/subscription-filter.js +2 -0
- package/esm/sdk/models/subscription-filter.js.map +1 -1
- package/esm/sdk/models/subscription-line-item-response.d.ts +0 -1
- package/esm/sdk/models/subscription-line-item-response.d.ts.map +1 -1
- package/esm/sdk/models/subscription-line-item-response.js +0 -2
- package/esm/sdk/models/subscription-line-item-response.js.map +1 -1
- package/esm/sdk/models/subscription-price-create-request.d.ts +2 -2
- package/esm/sdk/models/subscription-price-create-request.d.ts.map +1 -1
- package/esm/sdk/models/subscription-price-create-request.js +2 -2
- package/esm/sdk/models/subscription-price-create-request.js.map +1 -1
- package/esm/sdk/models/subscription-subscription-line-item.d.ts +0 -1
- package/esm/sdk/models/subscription-subscription-line-item.d.ts.map +1 -1
- package/esm/sdk/models/subscription-subscription-line-item.js +0 -2
- package/esm/sdk/models/subscription-subscription-line-item.js.map +1 -1
- package/esm/sdk/models/window-size.d.ts +1 -1
- package/esm/sdk/models/window-size.js +1 -1
- package/esm/sdk/models/window-size.js.map +1 -1
- package/esm/sdk/subscriptions.d.ts +0 -21
- package/esm/sdk/subscriptions.d.ts.map +1 -1
- package/esm/sdk/subscriptions.js +0 -30
- package/esm/sdk/subscriptions.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/sdk/models/create-price-request.ts +4 -4
- package/src/sdk/models/create-subscription-request.ts +10 -8
- package/src/sdk/models/index.ts +0 -7
- package/src/sdk/models/invoice-billing-reason.ts +1 -0
- package/src/sdk/models/pause-mode.ts +0 -3
- package/src/sdk/models/price-price.ts +4 -4
- package/src/sdk/models/price-response.ts +4 -4
- package/src/sdk/models/resume-mode.ts +0 -3
- package/src/sdk/models/subscription-filter.ts +12 -0
- package/src/sdk/models/subscription-line-item-response.ts +0 -3
- package/src/sdk/models/subscription-price-create-request.ts +4 -4
- package/src/sdk/models/subscription-subscription-line-item.ts +0 -3
- package/src/sdk/models/window-size.ts +1 -1
- package/src/sdk/subscriptions.ts +0 -58
- package/docs/sdk/models/list-subscription-pauses-request.md +0 -17
- package/docs/sdk/models/list-subscription-pauses-response.md +0 -18
- package/docs/sdk/models/pause-subscription-request-request.md +0 -21
- package/docs/sdk/models/pause-subscription-request.md +0 -25
- package/docs/sdk/models/resume-subscription-request-request.md +0 -21
- package/docs/sdk/models/resume-subscription-request.md +0 -21
- package/docs/sdk/models/subscription-pause-response.md +0 -35
- package/esm/funcs/subscriptions-list-subscription-pauses.d.ts +0 -17
- package/esm/funcs/subscriptions-list-subscription-pauses.d.ts.map +0 -1
- package/esm/funcs/subscriptions-list-subscription-pauses.js +0 -91
- package/esm/funcs/subscriptions-list-subscription-pauses.js.map +0 -1
- package/esm/funcs/subscriptions-pause-subscription.d.ts +0 -17
- package/esm/funcs/subscriptions-pause-subscription.d.ts.map +0 -1
- package/esm/funcs/subscriptions-pause-subscription.js +0 -93
- package/esm/funcs/subscriptions-pause-subscription.js.map +0 -1
- package/esm/funcs/subscriptions-resume-subscription.d.ts +0 -17
- package/esm/funcs/subscriptions-resume-subscription.d.ts.map +0 -1
- package/esm/funcs/subscriptions-resume-subscription.js +0 -93
- package/esm/funcs/subscriptions-resume-subscription.js.map +0 -1
- package/esm/sdk/models/list-subscription-pauses-op.d.ts +0 -15
- package/esm/sdk/models/list-subscription-pauses-op.d.ts.map +0 -1
- package/esm/sdk/models/list-subscription-pauses-op.js +0 -12
- package/esm/sdk/models/list-subscription-pauses-op.js.map +0 -1
- package/esm/sdk/models/list-subscription-pauses-response.d.ts +0 -27
- package/esm/sdk/models/list-subscription-pauses-response.d.ts.map +0 -1
- package/esm/sdk/models/list-subscription-pauses-response.js +0 -16
- package/esm/sdk/models/list-subscription-pauses-response.js.map +0 -1
- package/esm/sdk/models/pause-subscription-op.d.ts +0 -21
- package/esm/sdk/models/pause-subscription-op.d.ts.map +0 -1
- package/esm/sdk/models/pause-subscription-op.js +0 -14
- package/esm/sdk/models/pause-subscription-op.js.map +0 -1
- package/esm/sdk/models/pause-subscription-request.d.ts +0 -74
- package/esm/sdk/models/pause-subscription-request.d.ts.map +0 -1
- package/esm/sdk/models/pause-subscription-request.js +0 -28
- package/esm/sdk/models/pause-subscription-request.js.map +0 -1
- package/esm/sdk/models/resume-subscription-op.d.ts +0 -21
- package/esm/sdk/models/resume-subscription-op.d.ts.map +0 -1
- package/esm/sdk/models/resume-subscription-op.js +0 -14
- package/esm/sdk/models/resume-subscription-op.js.map +0 -1
- package/esm/sdk/models/resume-subscription-request.d.ts +0 -38
- package/esm/sdk/models/resume-subscription-request.d.ts.map +0 -1
- package/esm/sdk/models/resume-subscription-request.js +0 -21
- package/esm/sdk/models/resume-subscription-request.js.map +0 -1
- package/esm/sdk/models/subscription-pause-response.d.ts +0 -64
- package/esm/sdk/models/subscription-pause-response.d.ts.map +0 -1
- package/esm/sdk/models/subscription-pause-response.js +0 -55
- package/esm/sdk/models/subscription-pause-response.js.map +0 -1
- package/src/funcs/subscriptions-list-subscription-pauses.ts +0 -182
- package/src/funcs/subscriptions-pause-subscription.ts +0 -187
- package/src/funcs/subscriptions-resume-subscription.ts +0 -187
- package/src/sdk/models/list-subscription-pauses-op.ts +0 -35
- package/src/sdk/models/list-subscription-pauses-response.ts +0 -52
- package/src/sdk/models/pause-subscription-op.ts +0 -46
- package/src/sdk/models/pause-subscription-request.ts +0 -106
- package/src/sdk/models/resume-subscription-op.ts +0 -46
- package/src/sdk/models/resume-subscription-request.ts +0 -63
- package/src/sdk/models/subscription-pause-response.ts +0 -123
|
@@ -44,5 +44,5 @@ let value: CreatePriceRequest = {
|
|
|
44
44
|
| `tierMode` | [models.BillingTier](../../sdk/models/billing-tier.md) | :heavy_minus_sign: | N/A |
|
|
45
45
|
| `tiers` | [models.CreatePriceTier](../../sdk/models/create-price-tier.md)[] | :heavy_minus_sign: | N/A |
|
|
46
46
|
| `transformQuantity` | [models.PriceTransformQuantity](../../sdk/models/price-transform-quantity.md) | :heavy_minus_sign: | N/A |
|
|
47
|
-
| `
|
|
47
|
+
| `trialPeriodDays` | *number* | :heavy_minus_sign: | N/A |
|
|
48
48
|
| `type` | [models.PriceType](../../sdk/models/price-type.md) | :heavy_check_mark: | N/A |
|
|
@@ -50,5 +50,4 @@ let value: CreateSubscriptionRequest = {
|
|
|
50
50
|
| `startDate` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A |
|
|
51
51
|
| `subscriptionStatus` | [models.SubscriptionStatus](../../sdk/models/subscription-status.md) | :heavy_minus_sign: | N/A |
|
|
52
52
|
| `taxRateOverrides` | [models.TaxRateOverride](../../sdk/models/tax-rate-override.md)[] | :heavy_minus_sign: | tax_rate_overrides is the tax rate overrides to be applied to the subscription |
|
|
53
|
-
| `
|
|
54
|
-
| `trialStart` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A |
|
|
53
|
+
| `trialPeriodDays` | *number* | :heavy_minus_sign: | TrialPeriodDays: nil = inherit trial length from plan recurring-fixed prices (must be uniform).<br/>0 = explicitly no trial (overrides catalog). >0 = override duration in days. |
|
|
@@ -11,5 +11,5 @@ let value: InvoiceBillingReason = "SUBSCRIPTION_CYCLE";
|
|
|
11
11
|
## Values
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
"SUBSCRIPTION_CREATE" | "SUBSCRIPTION_CYCLE" | "SUBSCRIPTION_UPDATE" | "PRORATION" | "MANUAL"
|
|
14
|
+
"SUBSCRIPTION_CREATE" | "SUBSCRIPTION_CYCLE" | "SUBSCRIPTION_UPDATE" | "SUBSCRIPTION_TRIAL_END" | "PRORATION" | "MANUAL"
|
|
15
15
|
```
|
|
@@ -10,45 +10,45 @@ let value: PricePrice = {};
|
|
|
10
10
|
|
|
11
11
|
## Fields
|
|
12
12
|
|
|
13
|
-
| Field
|
|
14
|
-
|
|
|
15
|
-
| `amount`
|
|
16
|
-
| `billingCadence`
|
|
17
|
-
| `billingModel`
|
|
18
|
-
| `billingPeriod`
|
|
19
|
-
| `billingPeriodCount`
|
|
20
|
-
| `conversionRate`
|
|
21
|
-
| `createdAt`
|
|
22
|
-
| `createdBy`
|
|
23
|
-
| `currency`
|
|
24
|
-
| `description`
|
|
25
|
-
| `displayAmount`
|
|
26
|
-
| `displayName`
|
|
27
|
-
| `displayPriceUnitAmount`
|
|
28
|
-
| `endDate`
|
|
29
|
-
| `entityId`
|
|
30
|
-
| `entityType`
|
|
31
|
-
| `environmentId`
|
|
32
|
-
| `groupId`
|
|
33
|
-
| `id`
|
|
34
|
-
| `invoiceCadence`
|
|
35
|
-
| `lookupKey`
|
|
36
|
-
| `metadata`
|
|
37
|
-
| `meterId`
|
|
38
|
-
| `minQuantity`
|
|
39
|
-
| `parentPriceId`
|
|
40
|
-
| `priceUnit`
|
|
41
|
-
| `priceUnitAmount`
|
|
42
|
-
| `priceUnitId`
|
|
43
|
-
| `priceUnitTiers`
|
|
44
|
-
| `priceUnitType`
|
|
45
|
-
| `startDate`
|
|
46
|
-
| `status`
|
|
47
|
-
| `tenantId`
|
|
48
|
-
| `tierMode`
|
|
49
|
-
| `tiers`
|
|
50
|
-
| `transformQuantity`
|
|
51
|
-
| `
|
|
52
|
-
| `type`
|
|
53
|
-
| `updatedAt`
|
|
54
|
-
| `updatedBy`
|
|
13
|
+
| Field | Type | Required | Description |
|
|
14
|
+
| ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
|
|
15
|
+
| `amount` | *string* | :heavy_minus_sign: | Amount stored in main currency units (e.g., dollars, not cents)<br/>For USD: 12.50 means $12.50 |
|
|
16
|
+
| `billingCadence` | [models.BillingCadence](../../sdk/models/billing-cadence.md) | :heavy_minus_sign: | N/A |
|
|
17
|
+
| `billingModel` | [models.BillingModel](../../sdk/models/billing-model.md) | :heavy_minus_sign: | N/A |
|
|
18
|
+
| `billingPeriod` | [models.BillingPeriod](../../sdk/models/billing-period.md) | :heavy_minus_sign: | N/A |
|
|
19
|
+
| `billingPeriodCount` | *number* | :heavy_minus_sign: | BillingPeriodCount is the count of the billing period ex 1, 3, 6, 12 |
|
|
20
|
+
| `conversionRate` | *string* | :heavy_minus_sign: | ConversionRate is the conversion rate of the price unit to the fiat currency |
|
|
21
|
+
| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A |
|
|
22
|
+
| `createdBy` | *string* | :heavy_minus_sign: | N/A |
|
|
23
|
+
| `currency` | *string* | :heavy_minus_sign: | Currency 3 digit ISO currency code in lowercase ex usd, eur, gbp |
|
|
24
|
+
| `description` | *string* | :heavy_minus_sign: | Description of the price |
|
|
25
|
+
| `displayAmount` | *string* | :heavy_minus_sign: | DisplayAmount is the formatted amount with currency symbol<br/>For USD: $12.50 |
|
|
26
|
+
| `displayName` | *string* | :heavy_minus_sign: | DisplayName is the name of the price |
|
|
27
|
+
| `displayPriceUnitAmount` | *string* | :heavy_minus_sign: | DisplayPriceUnitAmount is the formatted amount of the price unit |
|
|
28
|
+
| `endDate` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | EndDate is the end date of the price |
|
|
29
|
+
| `entityId` | *string* | :heavy_minus_sign: | EntityID holds the value of the "entity_id" field. |
|
|
30
|
+
| `entityType` | [models.PriceEntityType](../../sdk/models/price-entity-type.md) | :heavy_minus_sign: | N/A |
|
|
31
|
+
| `environmentId` | *string* | :heavy_minus_sign: | EnvironmentID is the environment identifier for the price |
|
|
32
|
+
| `groupId` | *string* | :heavy_minus_sign: | GroupID references the group this price belongs to |
|
|
33
|
+
| `id` | *string* | :heavy_minus_sign: | ID uuid identifier for the price |
|
|
34
|
+
| `invoiceCadence` | [models.InvoiceCadence](../../sdk/models/invoice-cadence.md) | :heavy_minus_sign: | N/A |
|
|
35
|
+
| `lookupKey` | *string* | :heavy_minus_sign: | LookupKey used for looking up the price in the database |
|
|
36
|
+
| `metadata` | Record<string, *string*> | :heavy_minus_sign: | N/A |
|
|
37
|
+
| `meterId` | *string* | :heavy_minus_sign: | MeterID is the id of the meter for usage based pricing |
|
|
38
|
+
| `minQuantity` | *string* | :heavy_minus_sign: | MinQuantity is the minimum quantity of the price |
|
|
39
|
+
| `parentPriceId` | *string* | :heavy_minus_sign: | ParentPriceID references the root price (always set for price lineage tracking) |
|
|
40
|
+
| `priceUnit` | *string* | :heavy_minus_sign: | PriceUnit is the code of the price unit (e.g., 'btc', 'eth') |
|
|
41
|
+
| `priceUnitAmount` | *string* | :heavy_minus_sign: | PriceUnitAmount is the amount of the price unit |
|
|
42
|
+
| `priceUnitId` | *string* | :heavy_minus_sign: | PriceUnitID is the id of the price unit (for CUSTOM type) |
|
|
43
|
+
| `priceUnitTiers` | [models.PricePriceTier](../../sdk/models/price-price-tier.md)[] | :heavy_minus_sign: | PriceUnitTiers are the tiers for the price unit when BillingModel is TIERED |
|
|
44
|
+
| `priceUnitType` | [models.PriceUnitType](../../sdk/models/price-unit-type.md) | :heavy_minus_sign: | N/A |
|
|
45
|
+
| `startDate` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | StartDate is the start date of the price |
|
|
46
|
+
| `status` | [models.Status](../../sdk/models/status.md) | :heavy_minus_sign: | N/A |
|
|
47
|
+
| `tenantId` | *string* | :heavy_minus_sign: | N/A |
|
|
48
|
+
| `tierMode` | [models.BillingTier](../../sdk/models/billing-tier.md) | :heavy_minus_sign: | N/A |
|
|
49
|
+
| `tiers` | [models.PricePriceTier](../../sdk/models/price-price-tier.md)[] | :heavy_minus_sign: | N/A |
|
|
50
|
+
| `transformQuantity` | [models.PriceJSONBTransformQuantity](../../sdk/models/price-jsonb-transform-quantity.md) | :heavy_minus_sign: | N/A |
|
|
51
|
+
| `trialPeriodDays` | *number* | :heavy_minus_sign: | TrialPeriodDays is the number of days for the trial period<br/>Note: This is only applicable for recurring prices (BILLING_CADENCE_RECURRING) |
|
|
52
|
+
| `type` | [models.PriceType](../../sdk/models/price-type.md) | :heavy_minus_sign: | N/A |
|
|
53
|
+
| `updatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A |
|
|
54
|
+
| `updatedBy` | *string* | :heavy_minus_sign: | N/A |
|
|
@@ -38,50 +38,50 @@ let value: PriceResponse = {
|
|
|
38
38
|
|
|
39
39
|
## Fields
|
|
40
40
|
|
|
41
|
-
| Field
|
|
42
|
-
|
|
|
43
|
-
| `addon`
|
|
44
|
-
| `amount`
|
|
45
|
-
| `billingCadence`
|
|
46
|
-
| `billingModel`
|
|
47
|
-
| `billingPeriod`
|
|
48
|
-
| `billingPeriodCount`
|
|
49
|
-
| `conversionRate`
|
|
50
|
-
| `createdAt`
|
|
51
|
-
| `createdBy`
|
|
52
|
-
| `currency`
|
|
53
|
-
| `description`
|
|
54
|
-
| `displayAmount`
|
|
55
|
-
| `displayName`
|
|
56
|
-
| `displayPriceUnitAmount`
|
|
57
|
-
| `endDate`
|
|
58
|
-
| `entityId`
|
|
59
|
-
| `entityType`
|
|
60
|
-
| `environmentId`
|
|
61
|
-
| `group`
|
|
62
|
-
| `groupId`
|
|
63
|
-
| `id`
|
|
64
|
-
| `invoiceCadence`
|
|
65
|
-
| `lookupKey`
|
|
66
|
-
| `metadata`
|
|
67
|
-
| `meter`
|
|
68
|
-
| `meterId`
|
|
69
|
-
| `minQuantity`
|
|
70
|
-
| `parentPriceId`
|
|
71
|
-
| `plan`
|
|
72
|
-
| `priceUnit`
|
|
73
|
-
| `priceUnitAmount`
|
|
74
|
-
| `priceUnitId`
|
|
75
|
-
| `priceUnitTiers`
|
|
76
|
-
| `priceUnitType`
|
|
77
|
-
| `pricingUnit`
|
|
78
|
-
| `startDate`
|
|
79
|
-
| `status`
|
|
80
|
-
| `tenantId`
|
|
81
|
-
| `tierMode`
|
|
82
|
-
| `tiers`
|
|
83
|
-
| `transformQuantity`
|
|
84
|
-
| `
|
|
85
|
-
| `type`
|
|
86
|
-
| `updatedAt`
|
|
87
|
-
| `updatedBy`
|
|
41
|
+
| Field | Type | Required | Description |
|
|
42
|
+
| ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
|
|
43
|
+
| `addon` | [models.AddonResponse](../../sdk/models/addon-response.md) | :heavy_minus_sign: | N/A |
|
|
44
|
+
| `amount` | *string* | :heavy_minus_sign: | Amount stored in main currency units (e.g., dollars, not cents)<br/>For USD: 12.50 means $12.50 |
|
|
45
|
+
| `billingCadence` | [models.BillingCadence](../../sdk/models/billing-cadence.md) | :heavy_minus_sign: | N/A |
|
|
46
|
+
| `billingModel` | [models.BillingModel](../../sdk/models/billing-model.md) | :heavy_minus_sign: | N/A |
|
|
47
|
+
| `billingPeriod` | [models.BillingPeriod](../../sdk/models/billing-period.md) | :heavy_minus_sign: | N/A |
|
|
48
|
+
| `billingPeriodCount` | *number* | :heavy_minus_sign: | BillingPeriodCount is the count of the billing period ex 1, 3, 6, 12 |
|
|
49
|
+
| `conversionRate` | *string* | :heavy_minus_sign: | ConversionRate is the conversion rate of the price unit to the fiat currency |
|
|
50
|
+
| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A |
|
|
51
|
+
| `createdBy` | *string* | :heavy_minus_sign: | N/A |
|
|
52
|
+
| `currency` | *string* | :heavy_minus_sign: | Currency 3 digit ISO currency code in lowercase ex usd, eur, gbp |
|
|
53
|
+
| `description` | *string* | :heavy_minus_sign: | Description of the price |
|
|
54
|
+
| `displayAmount` | *string* | :heavy_minus_sign: | DisplayAmount is the formatted amount with currency symbol<br/>For USD: $12.50 |
|
|
55
|
+
| `displayName` | *string* | :heavy_minus_sign: | DisplayName is the name of the price |
|
|
56
|
+
| `displayPriceUnitAmount` | *string* | :heavy_minus_sign: | DisplayPriceUnitAmount is the formatted amount of the price unit |
|
|
57
|
+
| `endDate` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | EndDate is the end date of the price |
|
|
58
|
+
| `entityId` | *string* | :heavy_minus_sign: | EntityID holds the value of the "entity_id" field. |
|
|
59
|
+
| `entityType` | [models.PriceEntityType](../../sdk/models/price-entity-type.md) | :heavy_minus_sign: | N/A |
|
|
60
|
+
| `environmentId` | *string* | :heavy_minus_sign: | EnvironmentID is the environment identifier for the price |
|
|
61
|
+
| `group` | [models.GroupResponse](../../sdk/models/group-response.md) | :heavy_minus_sign: | N/A |
|
|
62
|
+
| `groupId` | *string* | :heavy_minus_sign: | GroupID references the group this price belongs to |
|
|
63
|
+
| `id` | *string* | :heavy_minus_sign: | ID uuid identifier for the price |
|
|
64
|
+
| `invoiceCadence` | [models.InvoiceCadence](../../sdk/models/invoice-cadence.md) | :heavy_minus_sign: | N/A |
|
|
65
|
+
| `lookupKey` | *string* | :heavy_minus_sign: | LookupKey used for looking up the price in the database |
|
|
66
|
+
| `metadata` | Record<string, *string*> | :heavy_minus_sign: | N/A |
|
|
67
|
+
| `meter` | [models.MeterResponse](../../sdk/models/meter-response.md) | :heavy_minus_sign: | N/A |
|
|
68
|
+
| `meterId` | *string* | :heavy_minus_sign: | MeterID is the id of the meter for usage based pricing |
|
|
69
|
+
| `minQuantity` | *string* | :heavy_minus_sign: | MinQuantity is the minimum quantity of the price |
|
|
70
|
+
| `parentPriceId` | *string* | :heavy_minus_sign: | ParentPriceID references the root price (always set for price lineage tracking) |
|
|
71
|
+
| `plan` | [models.PlanResponse](../../sdk/models/plan-response.md) | :heavy_minus_sign: | N/A |
|
|
72
|
+
| `priceUnit` | *string* | :heavy_minus_sign: | PriceUnit is the code of the price unit (e.g., 'btc', 'eth') |
|
|
73
|
+
| `priceUnitAmount` | *string* | :heavy_minus_sign: | PriceUnitAmount is the amount of the price unit |
|
|
74
|
+
| `priceUnitId` | *string* | :heavy_minus_sign: | PriceUnitID is the id of the price unit (for CUSTOM type) |
|
|
75
|
+
| `priceUnitTiers` | [models.PricePriceTier](../../sdk/models/price-price-tier.md)[] | :heavy_minus_sign: | PriceUnitTiers are the tiers for the price unit when BillingModel is TIERED |
|
|
76
|
+
| `priceUnitType` | [models.PriceUnitType](../../sdk/models/price-unit-type.md) | :heavy_minus_sign: | N/A |
|
|
77
|
+
| `pricingUnit` | [models.PriceUnitResponse](../../sdk/models/price-unit-response.md) | :heavy_minus_sign: | N/A |
|
|
78
|
+
| `startDate` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | StartDate is the start date of the price |
|
|
79
|
+
| `status` | [models.Status](../../sdk/models/status.md) | :heavy_minus_sign: | N/A |
|
|
80
|
+
| `tenantId` | *string* | :heavy_minus_sign: | N/A |
|
|
81
|
+
| `tierMode` | [models.BillingTier](../../sdk/models/billing-tier.md) | :heavy_minus_sign: | N/A |
|
|
82
|
+
| `tiers` | [models.PricePriceTier](../../sdk/models/price-price-tier.md)[] | :heavy_minus_sign: | N/A |
|
|
83
|
+
| `transformQuantity` | [models.PriceJSONBTransformQuantity](../../sdk/models/price-jsonb-transform-quantity.md) | :heavy_minus_sign: | N/A |
|
|
84
|
+
| `trialPeriodDays` | *number* | :heavy_minus_sign: | TrialPeriodDays is the number of days for the trial period<br/>Note: This is only applicable for recurring prices (BILLING_CADENCE_RECURRING) |
|
|
85
|
+
| `type` | [models.PriceType](../../sdk/models/price-type.md) | :heavy_minus_sign: | N/A |
|
|
86
|
+
| `updatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A |
|
|
87
|
+
| `updatedBy` | *string* | :heavy_minus_sign: | N/A |
|
|
@@ -34,4 +34,5 @@ let value: SubscriptionFilter = {};
|
|
|
34
34
|
| `subscriptionIds` | *string*[] | :heavy_minus_sign: | N/A |
|
|
35
35
|
| `subscriptionStatus` | [models.SubscriptionStatus](../../sdk/models/subscription-status.md)[] | :heavy_minus_sign: | SubscriptionStatus filters by subscription status |
|
|
36
36
|
| `subscriptionType` | [models.SubscriptionType](../../sdk/models/subscription-type.md)[] | :heavy_minus_sign: | SubscriptionType filters by subscription type |
|
|
37
|
+
| `trialEndDueLte` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | TrialEndDueLTE, when set, restricts to subscriptions with trial_end not nil and trial_end <= trial_end_due_lte.<br/>Use with subscription_status trialing for trial-end cron processing. |
|
|
37
38
|
| `withLineItems` | *boolean* | :heavy_minus_sign: | WithLineItems includes line items in the response |
|
|
@@ -78,6 +78,5 @@ let value: SubscriptionLineItemResponse = {
|
|
|
78
78
|
| `subscriptionId` | *string* | :heavy_minus_sign: | N/A |
|
|
79
79
|
| `subscriptionPhaseId` | *string* | :heavy_minus_sign: | N/A |
|
|
80
80
|
| `tenantId` | *string* | :heavy_minus_sign: | N/A |
|
|
81
|
-
| `trialPeriod` | *number* | :heavy_minus_sign: | N/A |
|
|
82
81
|
| `updatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A |
|
|
83
82
|
| `updatedBy` | *string* | :heavy_minus_sign: | N/A |
|
|
@@ -37,5 +37,5 @@ let value: SubscriptionPriceCreateRequest = {
|
|
|
37
37
|
| `tierMode` | [models.BillingTier](../../sdk/models/billing-tier.md) | :heavy_minus_sign: | N/A |
|
|
38
38
|
| `tiers` | [models.CreatePriceTier](../../sdk/models/create-price-tier.md)[] | :heavy_minus_sign: | N/A |
|
|
39
39
|
| `transformQuantity` | [models.PriceTransformQuantity](../../sdk/models/price-transform-quantity.md) | :heavy_minus_sign: | N/A |
|
|
40
|
-
| `
|
|
40
|
+
| `trialPeriodDays` | *number* | :heavy_minus_sign: | N/A |
|
|
41
41
|
| `type` | [models.PriceType](../../sdk/models/price-type.md) | :heavy_check_mark: | N/A |
|
|
@@ -48,6 +48,5 @@ let value: SubscriptionSubscriptionLineItem = {};
|
|
|
48
48
|
| `subscriptionId` | *string* | :heavy_minus_sign: | N/A |
|
|
49
49
|
| `subscriptionPhaseId` | *string* | :heavy_minus_sign: | N/A |
|
|
50
50
|
| `tenantId` | *string* | :heavy_minus_sign: | N/A |
|
|
51
|
-
| `trialPeriod` | *number* | :heavy_minus_sign: | N/A |
|
|
52
51
|
| `updatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A |
|
|
53
52
|
| `updatedBy` | *string* | :heavy_minus_sign: | N/A |
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
```typescript
|
|
6
6
|
import { WindowSize } from "@flexprice/sdk/sdk/models";
|
|
7
7
|
|
|
8
|
-
let value: WindowSize = "
|
|
8
|
+
let value: WindowSize = "12HOUR";
|
|
9
9
|
|
|
10
10
|
// Open enum: unrecognized values are captured as Unrecognized<string>
|
|
11
11
|
```
|
|
@@ -13,5 +13,5 @@ let value: WindowSize = "6HOUR";
|
|
|
13
13
|
## Values
|
|
14
14
|
|
|
15
15
|
```typescript
|
|
16
|
-
"
|
|
16
|
+
"MINUTE" | "15MIN" | "30MIN" | "HOUR" | "3HOUR" | "6HOUR" | "12HOUR" | "DAY" | "WEEK" | "MONTH" | Unrecognized<string>
|
|
17
17
|
```
|