orb-billing 4.73.0 → 5.0.0
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/CHANGELOG.md +37 -0
- package/README.md +18 -30
- package/index.d.mts +148 -14
- package/index.d.ts +148 -14
- package/index.d.ts.map +1 -1
- package/index.js +0 -3
- package/index.js.map +1 -1
- package/index.mjs +3 -6
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/alerts.d.ts +20 -88
- package/resources/alerts.d.ts.map +1 -1
- package/resources/alerts.js.map +1 -1
- package/resources/alerts.mjs.map +1 -1
- package/resources/beta/beta.d.ts +9 -7313
- package/resources/beta/beta.d.ts.map +1 -1
- package/resources/beta/beta.js.map +1 -1
- package/resources/beta/beta.mjs.map +1 -1
- package/resources/beta/external-plan-id.d.ts +7 -7074
- package/resources/beta/external-plan-id.d.ts.map +1 -1
- package/resources/beta/external-plan-id.js.map +1 -1
- package/resources/beta/external-plan-id.mjs.map +1 -1
- package/resources/credit-notes.d.ts +9 -163
- package/resources/credit-notes.d.ts.map +1 -1
- package/resources/credit-notes.js +3 -6
- package/resources/credit-notes.js.map +1 -1
- package/resources/credit-notes.mjs +2 -4
- package/resources/credit-notes.mjs.map +1 -1
- package/resources/customers/balance-transactions.d.ts +5 -32
- package/resources/customers/balance-transactions.d.ts.map +1 -1
- package/resources/customers/balance-transactions.js.map +1 -1
- package/resources/customers/balance-transactions.mjs.map +1 -1
- package/resources/customers/costs.d.ts +3 -81
- package/resources/customers/costs.d.ts.map +1 -1
- package/resources/customers/credits/credits.d.ts +4 -4
- package/resources/customers/credits/credits.d.ts.map +1 -1
- package/resources/customers/credits/credits.js.map +1 -1
- package/resources/customers/credits/credits.mjs.map +1 -1
- package/resources/customers/credits/index.d.ts +2 -2
- package/resources/customers/credits/index.d.ts.map +1 -1
- package/resources/customers/credits/index.js.map +1 -1
- package/resources/customers/credits/index.mjs.map +1 -1
- package/resources/customers/credits/ledger.d.ts +171 -962
- package/resources/customers/credits/ledger.d.ts.map +1 -1
- package/resources/customers/credits/ledger.js.map +1 -1
- package/resources/customers/credits/ledger.mjs.map +1 -1
- package/resources/customers/credits/top-ups.d.ts +37 -117
- package/resources/customers/credits/top-ups.d.ts.map +1 -1
- package/resources/customers/credits/top-ups.js.map +1 -1
- package/resources/customers/credits/top-ups.mjs.map +1 -1
- package/resources/customers/customers.d.ts +72 -678
- package/resources/customers/customers.d.ts.map +1 -1
- package/resources/customers/customers.js.map +1 -1
- package/resources/customers/customers.mjs.map +1 -1
- package/resources/customers/index.d.ts +1 -1
- package/resources/customers/index.d.ts.map +1 -1
- package/resources/customers/index.js.map +1 -1
- package/resources/customers/index.mjs.map +1 -1
- package/resources/events/events.d.ts +3 -3
- package/resources/events/events.d.ts.map +1 -1
- package/resources/index.d.ts +7 -7
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -4
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -3
- package/resources/index.mjs.map +1 -1
- package/resources/invoice-line-items.d.ts +6 -395
- package/resources/invoice-line-items.d.ts.map +1 -1
- package/resources/invoice-line-items.js.map +1 -1
- package/resources/invoice-line-items.mjs.map +1 -1
- package/resources/invoices.d.ts +30 -1700
- package/resources/invoices.d.ts.map +1 -1
- package/resources/invoices.js +3 -6
- package/resources/invoices.js.map +1 -1
- package/resources/invoices.mjs +2 -4
- package/resources/invoices.mjs.map +1 -1
- package/resources/plans/plans.d.ts +7 -3801
- package/resources/plans/plans.d.ts.map +1 -1
- package/resources/plans/plans.js.map +1 -1
- package/resources/plans/plans.mjs.map +1 -1
- package/resources/prices/external-price-id.d.ts +3 -3
- package/resources/prices/external-price-id.d.ts.map +1 -1
- package/resources/prices/index.d.ts +1 -1
- package/resources/prices/index.d.ts.map +1 -1
- package/resources/prices/index.js +1 -2
- package/resources/prices/index.js.map +1 -1
- package/resources/prices/index.mjs +1 -1
- package/resources/prices/index.mjs.map +1 -1
- package/resources/prices/prices.d.ts +347 -9373
- package/resources/prices/prices.d.ts.map +1 -1
- package/resources/prices/prices.js +39 -20
- package/resources/prices/prices.js.map +1 -1
- package/resources/prices/prices.mjs +38 -18
- package/resources/prices/prices.mjs.map +1 -1
- package/resources/shared.d.ts +7269 -9
- package/resources/shared.d.ts.map +1 -1
- package/resources/shared.js +11 -0
- package/resources/shared.js.map +1 -1
- package/resources/shared.mjs +7 -1
- package/resources/shared.mjs.map +1 -1
- package/resources/subscription-changes.d.ts +138 -2158
- package/resources/subscription-changes.d.ts.map +1 -1
- package/resources/subscription-changes.js.map +1 -1
- package/resources/subscription-changes.mjs.map +1 -1
- package/resources/subscriptions.d.ts +2722 -26580
- package/resources/subscriptions.d.ts.map +1 -1
- package/resources/subscriptions.js +7 -1
- package/resources/subscriptions.js.map +1 -1
- package/resources/subscriptions.mjs +7 -1
- package/resources/subscriptions.mjs.map +1 -1
- package/src/index.ts +221 -40
- package/src/resources/alerts.ts +20 -94
- package/src/resources/beta/beta.ts +124 -8892
- package/src/resources/beta/external-plan-id.ts +118 -8593
- package/src/resources/credit-notes.ts +10 -217
- package/src/resources/customers/balance-transactions.ts +5 -36
- package/src/resources/customers/costs.ts +3 -101
- package/src/resources/customers/credits/credits.ts +18 -0
- package/src/resources/customers/credits/index.ts +9 -0
- package/src/resources/customers/credits/ledger.ts +212 -1435
- package/src/resources/customers/credits/top-ups.ts +41 -132
- package/src/resources/customers/customers.ts +162 -1454
- package/src/resources/customers/index.ts +8 -0
- package/src/resources/events/events.ts +3 -3
- package/src/resources/index.ts +43 -21
- package/src/resources/invoice-line-items.ts +10 -501
- package/src/resources/invoices.ts +60 -2394
- package/src/resources/plans/plans.ts +38 -4588
- package/src/resources/prices/external-price-id.ts +3 -3
- package/src/resources/prices/index.ts +2 -2
- package/src/resources/prices/prices.ts +501 -11811
- package/src/resources/shared.ts +9582 -22
- package/src/resources/subscription-changes.ts +171 -2670
- package/src/resources/subscriptions.ts +3175 -31993
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
|
@@ -449,6 +449,12 @@ class Subscriptions extends resource_1.APIResource {
|
|
|
449
449
|
priceIntervals(subscriptionId, body, options) {
|
|
450
450
|
return this._client.post(`/subscriptions/${subscriptionId}/price_intervals`, { body, ...options });
|
|
451
451
|
}
|
|
452
|
+
/**
|
|
453
|
+
* Redeem a coupon effective at a given time.
|
|
454
|
+
*/
|
|
455
|
+
redeemCoupon(subscriptionId, body, options) {
|
|
456
|
+
return this._client.post(`/subscriptions/${subscriptionId}/redeem_coupon`, { body, ...options });
|
|
457
|
+
}
|
|
452
458
|
/**
|
|
453
459
|
* This endpoint can be used to change an existing subscription's plan. It returns
|
|
454
460
|
* the serialized updated subscription object.
|
|
@@ -670,7 +676,7 @@ class Subscriptions extends resource_1.APIResource {
|
|
|
670
676
|
}
|
|
671
677
|
/**
|
|
672
678
|
* This endpoint can be used to unschedule any pending plan changes on an existing
|
|
673
|
-
* subscription.
|
|
679
|
+
* subscription. When called, all upcoming plan changes will be unscheduled.
|
|
674
680
|
*/
|
|
675
681
|
unschedulePendingPlanChanges(subscriptionId, options) {
|
|
676
682
|
return this._client.post(`/subscriptions/${subscriptionId}/unschedule_pending_plan_changes`, options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptions.js","sourceRoot":"","sources":["../src/resources/subscriptions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAC1C,qCAA2C;
|
|
1
|
+
{"version":3,"file":"subscriptions.js","sourceRoot":"","sources":["../src/resources/subscriptions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAC1C,qCAA2C;AAO3C,iDAAsD;AAEtD,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,cAAc,wCAAwC,EAAE;YACjG,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,4BAA4B,CAC1B,cAAsB,EACtB,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,cAAc,kCAAkC,EAAE,OAAO,CAAC,CAAC;IACxG,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,sBAAsB,CACpB,cAAsB,EACtB,IAA8C,EAC9C,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,cAAc,4BAA4B,EAAE;YACrF,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,WAAW,CACT,cAAsB,EACtB,IAAmC,EACnC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,cAAc,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClG,CAAC;CACF;AA/hCD,sCA+hCC;AAED,MAAa,iBAAkB,SAAQ,iBAAkB;CAAG;AAA5D,8CAA4D;AAE5D,MAAa,sCAAuC,SAAQ,iBAAuC;CAAG;AAAtG,wFAAsG;AAkuItG,aAAa,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;AACpD,aAAa,CAAC,sCAAsC,GAAG,sCAAsC,CAAC"}
|
|
@@ -446,6 +446,12 @@ export class Subscriptions extends APIResource {
|
|
|
446
446
|
priceIntervals(subscriptionId, body, options) {
|
|
447
447
|
return this._client.post(`/subscriptions/${subscriptionId}/price_intervals`, { body, ...options });
|
|
448
448
|
}
|
|
449
|
+
/**
|
|
450
|
+
* Redeem a coupon effective at a given time.
|
|
451
|
+
*/
|
|
452
|
+
redeemCoupon(subscriptionId, body, options) {
|
|
453
|
+
return this._client.post(`/subscriptions/${subscriptionId}/redeem_coupon`, { body, ...options });
|
|
454
|
+
}
|
|
449
455
|
/**
|
|
450
456
|
* This endpoint can be used to change an existing subscription's plan. It returns
|
|
451
457
|
* the serialized updated subscription object.
|
|
@@ -667,7 +673,7 @@ export class Subscriptions extends APIResource {
|
|
|
667
673
|
}
|
|
668
674
|
/**
|
|
669
675
|
* This endpoint can be used to unschedule any pending plan changes on an existing
|
|
670
|
-
* subscription.
|
|
676
|
+
* subscription. When called, all upcoming plan changes will be unscheduled.
|
|
671
677
|
*/
|
|
672
678
|
unschedulePendingPlanChanges(subscriptionId, options) {
|
|
673
679
|
return this._client.post(`/subscriptions/${subscriptionId}/unschedule_pending_plan_changes`, options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptions.mjs","sourceRoot":"","sources":["../src/resources/subscriptions.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;
|
|
1
|
+
{"version":3,"file":"subscriptions.mjs","sourceRoot":"","sources":["../src/resources/subscriptions.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;OAOpB,EAAE,IAAI,EAAmB;AAEhC,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiQG;IACH,MAAM,CACJ,IAA8B,EAC9B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAA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;IACH,sBAAsB,CACpB,cAAsB,EACtB,IAA8C,EAC9C,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,cAAc,4BAA4B,EAAE;YACrF,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,WAAW,CACT,cAAsB,EACtB,IAAmC,EACnC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,cAAc,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClG,CAAC;CACF;AAED,MAAM,OAAO,iBAAkB,SAAQ,IAAkB;CAAG;AAE5D,MAAM,OAAO,sCAAuC,SAAQ,IAAuC;CAAG;AAkuItG,aAAa,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;AACpD,aAAa,CAAC,sCAAsC,GAAG,sCAAsC,CAAC"}
|
package/src/index.ts
CHANGED
|
@@ -19,21 +19,15 @@ import {
|
|
|
19
19
|
AlertUpdateParams,
|
|
20
20
|
Alerts,
|
|
21
21
|
AlertsPage,
|
|
22
|
+
Threshold,
|
|
22
23
|
} from './resources/alerts';
|
|
23
|
-
import {
|
|
24
|
-
CreditNote,
|
|
25
|
-
CreditNoteCreateParams,
|
|
26
|
-
CreditNoteListParams,
|
|
27
|
-
CreditNotes,
|
|
28
|
-
CreditNotesPage,
|
|
29
|
-
} from './resources/credit-notes';
|
|
24
|
+
import { CreditNoteCreateParams, CreditNoteListParams, CreditNotes } from './resources/credit-notes';
|
|
30
25
|
import {
|
|
31
26
|
InvoiceLineItemCreateParams,
|
|
32
27
|
InvoiceLineItemCreateResponse,
|
|
33
28
|
InvoiceLineItems,
|
|
34
29
|
} from './resources/invoice-line-items';
|
|
35
30
|
import {
|
|
36
|
-
Invoice,
|
|
37
31
|
InvoiceCreateParams,
|
|
38
32
|
InvoiceFetchUpcomingParams,
|
|
39
33
|
InvoiceFetchUpcomingResponse,
|
|
@@ -42,7 +36,6 @@ import {
|
|
|
42
36
|
InvoiceMarkPaidParams,
|
|
43
37
|
InvoiceUpdateParams,
|
|
44
38
|
Invoices,
|
|
45
|
-
InvoicesPage,
|
|
46
39
|
} from './resources/invoices';
|
|
47
40
|
import {
|
|
48
41
|
Item,
|
|
@@ -61,6 +54,7 @@ import {
|
|
|
61
54
|
Metrics,
|
|
62
55
|
} from './resources/metrics';
|
|
63
56
|
import {
|
|
57
|
+
MutatedSubscription,
|
|
64
58
|
SubscriptionChangeApplyParams,
|
|
65
59
|
SubscriptionChangeApplyResponse,
|
|
66
60
|
SubscriptionChangeCancelResponse,
|
|
@@ -68,11 +62,38 @@ import {
|
|
|
68
62
|
SubscriptionChanges,
|
|
69
63
|
} from './resources/subscription-changes';
|
|
70
64
|
import {
|
|
65
|
+
DiscountOverride,
|
|
66
|
+
NewSubscriptionBPSPrice,
|
|
67
|
+
NewSubscriptionBulkBPSPrice,
|
|
68
|
+
NewSubscriptionBulkPrice,
|
|
69
|
+
NewSubscriptionBulkWithProrationPrice,
|
|
70
|
+
NewSubscriptionCumulativeGroupedBulkPrice,
|
|
71
|
+
NewSubscriptionGroupedAllocationPrice,
|
|
72
|
+
NewSubscriptionGroupedTieredPackagePrice,
|
|
73
|
+
NewSubscriptionGroupedTieredPrice,
|
|
74
|
+
NewSubscriptionGroupedWithMeteredMinimumPrice,
|
|
75
|
+
NewSubscriptionGroupedWithProratedMinimumPrice,
|
|
76
|
+
NewSubscriptionMatrixPrice,
|
|
77
|
+
NewSubscriptionMatrixWithAllocationPrice,
|
|
78
|
+
NewSubscriptionMatrixWithDisplayNamePrice,
|
|
79
|
+
NewSubscriptionMaxGroupTieredPackagePrice,
|
|
80
|
+
NewSubscriptionPackagePrice,
|
|
81
|
+
NewSubscriptionPackageWithAllocationPrice,
|
|
82
|
+
NewSubscriptionScalableMatrixWithTieredPricingPrice,
|
|
83
|
+
NewSubscriptionScalableMatrixWithUnitPricingPrice,
|
|
84
|
+
NewSubscriptionThresholdTotalAmountPrice,
|
|
85
|
+
NewSubscriptionTierWithProrationPrice,
|
|
86
|
+
NewSubscriptionTieredBPSPrice,
|
|
87
|
+
NewSubscriptionTieredPackagePrice,
|
|
88
|
+
NewSubscriptionTieredPackageWithMinimumPrice,
|
|
89
|
+
NewSubscriptionTieredPrice,
|
|
90
|
+
NewSubscriptionTieredWithMinimumPrice,
|
|
91
|
+
NewSubscriptionUnitPrice,
|
|
92
|
+
NewSubscriptionUnitWithPercentPrice,
|
|
93
|
+
NewSubscriptionUnitWithProrationPrice,
|
|
71
94
|
Subscription,
|
|
72
95
|
SubscriptionCancelParams,
|
|
73
|
-
SubscriptionCancelResponse,
|
|
74
96
|
SubscriptionCreateParams,
|
|
75
|
-
SubscriptionCreateResponse,
|
|
76
97
|
SubscriptionFetchCostsParams,
|
|
77
98
|
SubscriptionFetchCostsResponse,
|
|
78
99
|
SubscriptionFetchScheduleParams,
|
|
@@ -81,20 +102,13 @@ import {
|
|
|
81
102
|
SubscriptionFetchUsageParams,
|
|
82
103
|
SubscriptionListParams,
|
|
83
104
|
SubscriptionPriceIntervalsParams,
|
|
84
|
-
|
|
105
|
+
SubscriptionRedeemCouponParams,
|
|
85
106
|
SubscriptionSchedulePlanChangeParams,
|
|
86
|
-
SubscriptionSchedulePlanChangeResponse,
|
|
87
107
|
SubscriptionTriggerPhaseParams,
|
|
88
|
-
SubscriptionTriggerPhaseResponse,
|
|
89
|
-
SubscriptionUnscheduleCancellationResponse,
|
|
90
108
|
SubscriptionUnscheduleFixedFeeQuantityUpdatesParams,
|
|
91
|
-
SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse,
|
|
92
|
-
SubscriptionUnschedulePendingPlanChangesResponse,
|
|
93
109
|
SubscriptionUpdateFixedFeeQuantityParams,
|
|
94
|
-
SubscriptionUpdateFixedFeeQuantityResponse,
|
|
95
110
|
SubscriptionUpdateParams,
|
|
96
111
|
SubscriptionUpdateTrialParams,
|
|
97
|
-
SubscriptionUpdateTrialResponse,
|
|
98
112
|
SubscriptionUsage,
|
|
99
113
|
Subscriptions,
|
|
100
114
|
SubscriptionsPage,
|
|
@@ -115,13 +129,21 @@ import {
|
|
|
115
129
|
CouponsPage,
|
|
116
130
|
} from './resources/coupons/coupons';
|
|
117
131
|
import {
|
|
132
|
+
AccountingProviderConfig,
|
|
133
|
+
AddressInput,
|
|
118
134
|
Customer,
|
|
119
135
|
CustomerCreateParams,
|
|
136
|
+
CustomerHierarchyConfig,
|
|
120
137
|
CustomerListParams,
|
|
121
138
|
CustomerUpdateByExternalIDParams,
|
|
122
139
|
CustomerUpdateParams,
|
|
123
140
|
Customers,
|
|
124
141
|
CustomersPage,
|
|
142
|
+
NewAccountingSyncConfiguration,
|
|
143
|
+
NewAvalaraTaxConfiguration,
|
|
144
|
+
NewReportingConfiguration,
|
|
145
|
+
NewSphereConfiguration,
|
|
146
|
+
NewTaxJarConfiguration,
|
|
125
147
|
} from './resources/customers/customers';
|
|
126
148
|
import {
|
|
127
149
|
DimensionalPriceGroup,
|
|
@@ -150,16 +172,16 @@ import {
|
|
|
150
172
|
} from './resources/plans/plans';
|
|
151
173
|
import {
|
|
152
174
|
EvaluatePriceGroup,
|
|
153
|
-
Price,
|
|
154
175
|
PriceCreateParams,
|
|
155
176
|
PriceEvaluateMultipleParams,
|
|
156
177
|
PriceEvaluateMultipleResponse,
|
|
157
178
|
PriceEvaluateParams,
|
|
179
|
+
PriceEvaluatePreviewEventsParams,
|
|
180
|
+
PriceEvaluatePreviewEventsResponse,
|
|
158
181
|
PriceEvaluateResponse,
|
|
159
182
|
PriceListParams,
|
|
160
183
|
PriceUpdateParams,
|
|
161
184
|
Prices,
|
|
162
|
-
PricesPage,
|
|
163
185
|
} from './resources/prices/prices';
|
|
164
186
|
|
|
165
187
|
export interface ClientOptions {
|
|
@@ -361,13 +383,11 @@ Orb.Beta = Beta;
|
|
|
361
383
|
Orb.Coupons = Coupons;
|
|
362
384
|
Orb.CouponsPage = CouponsPage;
|
|
363
385
|
Orb.CreditNotes = CreditNotes;
|
|
364
|
-
Orb.CreditNotesPage = CreditNotesPage;
|
|
365
386
|
Orb.Customers = Customers;
|
|
366
387
|
Orb.CustomersPage = CustomersPage;
|
|
367
388
|
Orb.Events = Events;
|
|
368
389
|
Orb.InvoiceLineItems = InvoiceLineItems;
|
|
369
390
|
Orb.Invoices = Invoices;
|
|
370
|
-
Orb.InvoicesPage = InvoicesPage;
|
|
371
391
|
Orb.Items = Items;
|
|
372
392
|
Orb.ItemsPage = ItemsPage;
|
|
373
393
|
Orb.Metrics = Metrics;
|
|
@@ -375,7 +395,6 @@ Orb.BillableMetricsPage = BillableMetricsPage;
|
|
|
375
395
|
Orb.Plans = Plans;
|
|
376
396
|
Orb.PlansPage = PlansPage;
|
|
377
397
|
Orb.Prices = Prices;
|
|
378
|
-
Orb.PricesPage = PricesPage;
|
|
379
398
|
Orb.SubscriptionsPage = SubscriptionsPage;
|
|
380
399
|
Orb.SubscriptionFetchScheduleResponsesPage = SubscriptionFetchScheduleResponsesPage;
|
|
381
400
|
Orb.Alerts = Alerts;
|
|
@@ -408,15 +427,21 @@ export declare namespace Orb {
|
|
|
408
427
|
|
|
409
428
|
export {
|
|
410
429
|
CreditNotes as CreditNotes,
|
|
411
|
-
type CreditNote as CreditNote,
|
|
412
|
-
CreditNotesPage as CreditNotesPage,
|
|
413
430
|
type CreditNoteCreateParams as CreditNoteCreateParams,
|
|
414
431
|
type CreditNoteListParams as CreditNoteListParams,
|
|
415
432
|
};
|
|
416
433
|
|
|
417
434
|
export {
|
|
418
435
|
Customers as Customers,
|
|
436
|
+
type AccountingProviderConfig as AccountingProviderConfig,
|
|
437
|
+
type AddressInput as AddressInput,
|
|
419
438
|
type Customer as Customer,
|
|
439
|
+
type CustomerHierarchyConfig as CustomerHierarchyConfig,
|
|
440
|
+
type NewAccountingSyncConfiguration as NewAccountingSyncConfiguration,
|
|
441
|
+
type NewAvalaraTaxConfiguration as NewAvalaraTaxConfiguration,
|
|
442
|
+
type NewReportingConfiguration as NewReportingConfiguration,
|
|
443
|
+
type NewSphereConfiguration as NewSphereConfiguration,
|
|
444
|
+
type NewTaxJarConfiguration as NewTaxJarConfiguration,
|
|
420
445
|
CustomersPage as CustomersPage,
|
|
421
446
|
type CustomerCreateParams as CustomerCreateParams,
|
|
422
447
|
type CustomerUpdateParams as CustomerUpdateParams,
|
|
@@ -443,9 +468,7 @@ export declare namespace Orb {
|
|
|
443
468
|
|
|
444
469
|
export {
|
|
445
470
|
Invoices as Invoices,
|
|
446
|
-
type Invoice as Invoice,
|
|
447
471
|
type InvoiceFetchUpcomingResponse as InvoiceFetchUpcomingResponse,
|
|
448
|
-
InvoicesPage as InvoicesPage,
|
|
449
472
|
type InvoiceCreateParams as InvoiceCreateParams,
|
|
450
473
|
type InvoiceUpdateParams as InvoiceUpdateParams,
|
|
451
474
|
type InvoiceListParams as InvoiceListParams,
|
|
@@ -484,33 +507,52 @@ export declare namespace Orb {
|
|
|
484
507
|
export {
|
|
485
508
|
Prices as Prices,
|
|
486
509
|
type EvaluatePriceGroup as EvaluatePriceGroup,
|
|
487
|
-
type Price as Price,
|
|
488
510
|
type PriceEvaluateResponse as PriceEvaluateResponse,
|
|
489
511
|
type PriceEvaluateMultipleResponse as PriceEvaluateMultipleResponse,
|
|
490
|
-
|
|
512
|
+
type PriceEvaluatePreviewEventsResponse as PriceEvaluatePreviewEventsResponse,
|
|
491
513
|
type PriceCreateParams as PriceCreateParams,
|
|
492
514
|
type PriceUpdateParams as PriceUpdateParams,
|
|
493
515
|
type PriceListParams as PriceListParams,
|
|
494
516
|
type PriceEvaluateParams as PriceEvaluateParams,
|
|
495
517
|
type PriceEvaluateMultipleParams as PriceEvaluateMultipleParams,
|
|
518
|
+
type PriceEvaluatePreviewEventsParams as PriceEvaluatePreviewEventsParams,
|
|
496
519
|
};
|
|
497
520
|
|
|
498
521
|
export {
|
|
499
522
|
type Subscriptions as Subscriptions,
|
|
523
|
+
type DiscountOverride as DiscountOverride,
|
|
524
|
+
type NewSubscriptionBPSPrice as NewSubscriptionBPSPrice,
|
|
525
|
+
type NewSubscriptionBulkBPSPrice as NewSubscriptionBulkBPSPrice,
|
|
526
|
+
type NewSubscriptionBulkPrice as NewSubscriptionBulkPrice,
|
|
527
|
+
type NewSubscriptionBulkWithProrationPrice as NewSubscriptionBulkWithProrationPrice,
|
|
528
|
+
type NewSubscriptionCumulativeGroupedBulkPrice as NewSubscriptionCumulativeGroupedBulkPrice,
|
|
529
|
+
type NewSubscriptionGroupedAllocationPrice as NewSubscriptionGroupedAllocationPrice,
|
|
530
|
+
type NewSubscriptionGroupedTieredPackagePrice as NewSubscriptionGroupedTieredPackagePrice,
|
|
531
|
+
type NewSubscriptionGroupedTieredPrice as NewSubscriptionGroupedTieredPrice,
|
|
532
|
+
type NewSubscriptionGroupedWithMeteredMinimumPrice as NewSubscriptionGroupedWithMeteredMinimumPrice,
|
|
533
|
+
type NewSubscriptionGroupedWithProratedMinimumPrice as NewSubscriptionGroupedWithProratedMinimumPrice,
|
|
534
|
+
type NewSubscriptionMatrixPrice as NewSubscriptionMatrixPrice,
|
|
535
|
+
type NewSubscriptionMatrixWithAllocationPrice as NewSubscriptionMatrixWithAllocationPrice,
|
|
536
|
+
type NewSubscriptionMatrixWithDisplayNamePrice as NewSubscriptionMatrixWithDisplayNamePrice,
|
|
537
|
+
type NewSubscriptionMaxGroupTieredPackagePrice as NewSubscriptionMaxGroupTieredPackagePrice,
|
|
538
|
+
type NewSubscriptionPackagePrice as NewSubscriptionPackagePrice,
|
|
539
|
+
type NewSubscriptionPackageWithAllocationPrice as NewSubscriptionPackageWithAllocationPrice,
|
|
540
|
+
type NewSubscriptionScalableMatrixWithTieredPricingPrice as NewSubscriptionScalableMatrixWithTieredPricingPrice,
|
|
541
|
+
type NewSubscriptionScalableMatrixWithUnitPricingPrice as NewSubscriptionScalableMatrixWithUnitPricingPrice,
|
|
542
|
+
type NewSubscriptionThresholdTotalAmountPrice as NewSubscriptionThresholdTotalAmountPrice,
|
|
543
|
+
type NewSubscriptionTierWithProrationPrice as NewSubscriptionTierWithProrationPrice,
|
|
544
|
+
type NewSubscriptionTieredBPSPrice as NewSubscriptionTieredBPSPrice,
|
|
545
|
+
type NewSubscriptionTieredPackagePrice as NewSubscriptionTieredPackagePrice,
|
|
546
|
+
type NewSubscriptionTieredPackageWithMinimumPrice as NewSubscriptionTieredPackageWithMinimumPrice,
|
|
547
|
+
type NewSubscriptionTieredPrice as NewSubscriptionTieredPrice,
|
|
548
|
+
type NewSubscriptionTieredWithMinimumPrice as NewSubscriptionTieredWithMinimumPrice,
|
|
549
|
+
type NewSubscriptionUnitPrice as NewSubscriptionUnitPrice,
|
|
550
|
+
type NewSubscriptionUnitWithPercentPrice as NewSubscriptionUnitWithPercentPrice,
|
|
551
|
+
type NewSubscriptionUnitWithProrationPrice as NewSubscriptionUnitWithProrationPrice,
|
|
500
552
|
type Subscription as Subscription,
|
|
501
553
|
type SubscriptionUsage as SubscriptionUsage,
|
|
502
|
-
type SubscriptionCreateResponse as SubscriptionCreateResponse,
|
|
503
|
-
type SubscriptionCancelResponse as SubscriptionCancelResponse,
|
|
504
554
|
type SubscriptionFetchCostsResponse as SubscriptionFetchCostsResponse,
|
|
505
555
|
type SubscriptionFetchScheduleResponse as SubscriptionFetchScheduleResponse,
|
|
506
|
-
type SubscriptionPriceIntervalsResponse as SubscriptionPriceIntervalsResponse,
|
|
507
|
-
type SubscriptionSchedulePlanChangeResponse as SubscriptionSchedulePlanChangeResponse,
|
|
508
|
-
type SubscriptionTriggerPhaseResponse as SubscriptionTriggerPhaseResponse,
|
|
509
|
-
type SubscriptionUnscheduleCancellationResponse as SubscriptionUnscheduleCancellationResponse,
|
|
510
|
-
type SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse as SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse,
|
|
511
|
-
type SubscriptionUnschedulePendingPlanChangesResponse as SubscriptionUnschedulePendingPlanChangesResponse,
|
|
512
|
-
type SubscriptionUpdateFixedFeeQuantityResponse as SubscriptionUpdateFixedFeeQuantityResponse,
|
|
513
|
-
type SubscriptionUpdateTrialResponse as SubscriptionUpdateTrialResponse,
|
|
514
556
|
SubscriptionsPage as SubscriptionsPage,
|
|
515
557
|
SubscriptionFetchScheduleResponsesPage as SubscriptionFetchScheduleResponsesPage,
|
|
516
558
|
type SubscriptionCreateParams as SubscriptionCreateParams,
|
|
@@ -521,6 +563,7 @@ export declare namespace Orb {
|
|
|
521
563
|
type SubscriptionFetchScheduleParams as SubscriptionFetchScheduleParams,
|
|
522
564
|
type SubscriptionFetchUsageParams as SubscriptionFetchUsageParams,
|
|
523
565
|
type SubscriptionPriceIntervalsParams as SubscriptionPriceIntervalsParams,
|
|
566
|
+
type SubscriptionRedeemCouponParams as SubscriptionRedeemCouponParams,
|
|
524
567
|
type SubscriptionSchedulePlanChangeParams as SubscriptionSchedulePlanChangeParams,
|
|
525
568
|
type SubscriptionTriggerPhaseParams as SubscriptionTriggerPhaseParams,
|
|
526
569
|
type SubscriptionUnscheduleFixedFeeQuantityUpdatesParams as SubscriptionUnscheduleFixedFeeQuantityUpdatesParams,
|
|
@@ -531,6 +574,7 @@ export declare namespace Orb {
|
|
|
531
574
|
export {
|
|
532
575
|
Alerts as Alerts,
|
|
533
576
|
type Alert as Alert,
|
|
577
|
+
type Threshold as Threshold,
|
|
534
578
|
AlertsPage as AlertsPage,
|
|
535
579
|
type AlertUpdateParams as AlertUpdateParams,
|
|
536
580
|
type AlertListParams as AlertListParams,
|
|
@@ -551,20 +595,157 @@ export declare namespace Orb {
|
|
|
551
595
|
|
|
552
596
|
export {
|
|
553
597
|
SubscriptionChanges as SubscriptionChanges,
|
|
598
|
+
type MutatedSubscription as MutatedSubscription,
|
|
554
599
|
type SubscriptionChangeRetrieveResponse as SubscriptionChangeRetrieveResponse,
|
|
555
600
|
type SubscriptionChangeApplyResponse as SubscriptionChangeApplyResponse,
|
|
556
601
|
type SubscriptionChangeCancelResponse as SubscriptionChangeCancelResponse,
|
|
557
602
|
type SubscriptionChangeApplyParams as SubscriptionChangeApplyParams,
|
|
558
603
|
};
|
|
559
604
|
|
|
605
|
+
export type Address = API.Address;
|
|
606
|
+
export type AdjustmentInterval = API.AdjustmentInterval;
|
|
607
|
+
export type AggregatedCost = API.AggregatedCost;
|
|
608
|
+
export type Allocation = API.Allocation;
|
|
560
609
|
export type AmountDiscount = API.AmountDiscount;
|
|
610
|
+
export type AmountDiscountInterval = API.AmountDiscountInterval;
|
|
611
|
+
export type BillableMetricTiny = API.BillableMetricTiny;
|
|
612
|
+
export type BillingCycleAnchorConfiguration = API.BillingCycleAnchorConfiguration;
|
|
613
|
+
export type BillingCycleConfiguration = API.BillingCycleConfiguration;
|
|
561
614
|
export type BillingCycleRelativeDate = API.BillingCycleRelativeDate;
|
|
615
|
+
export type BPSConfig = API.BPSConfig;
|
|
616
|
+
export type BPSTier = API.BPSTier;
|
|
617
|
+
export type BulkBPSConfig = API.BulkBPSConfig;
|
|
618
|
+
export type BulkBPSTier = API.BulkBPSTier;
|
|
619
|
+
export type BulkConfig = API.BulkConfig;
|
|
620
|
+
export type BulkTier = API.BulkTier;
|
|
621
|
+
export type ChangedSubscriptionResources = API.ChangedSubscriptionResources;
|
|
622
|
+
export type ConversionRateTier = API.ConversionRateTier;
|
|
623
|
+
export type ConversionRateTieredConfig = API.ConversionRateTieredConfig;
|
|
624
|
+
export type ConversionRateUnitConfig = API.ConversionRateUnitConfig;
|
|
625
|
+
export type CouponRedemption = API.CouponRedemption;
|
|
626
|
+
export type CreditNote = API.CreditNote;
|
|
627
|
+
export type CreditNoteTiny = API.CreditNoteTiny;
|
|
628
|
+
export type CustomExpiration = API.CustomExpiration;
|
|
629
|
+
export type CustomerMinified = API.CustomerMinified;
|
|
630
|
+
export type CustomerTaxID = API.CustomerTaxID;
|
|
631
|
+
export type DimensionalPriceConfiguration = API.DimensionalPriceConfiguration;
|
|
562
632
|
export type Discount = API.Discount;
|
|
633
|
+
export type FixedFeeQuantityScheduleEntry = API.FixedFeeQuantityScheduleEntry;
|
|
634
|
+
export type FixedFeeQuantityTransition = API.FixedFeeQuantityTransition;
|
|
635
|
+
export type Invoice = API.Invoice;
|
|
563
636
|
export type InvoiceLevelDiscount = API.InvoiceLevelDiscount;
|
|
637
|
+
export type InvoiceTiny = API.InvoiceTiny;
|
|
638
|
+
export type ItemSlim = API.ItemSlim;
|
|
639
|
+
export type MatrixConfig = API.MatrixConfig;
|
|
640
|
+
export type MatrixSubLineItem = API.MatrixSubLineItem;
|
|
641
|
+
export type MatrixValue = API.MatrixValue;
|
|
642
|
+
export type MatrixWithAllocationConfig = API.MatrixWithAllocationConfig;
|
|
643
|
+
export type Maximum = API.Maximum;
|
|
644
|
+
export type MaximumInterval = API.MaximumInterval;
|
|
645
|
+
export type Minimum = API.Minimum;
|
|
646
|
+
export type MinimumInterval = API.MinimumInterval;
|
|
647
|
+
export type MonetaryAmountDiscountAdjustment = API.MonetaryAmountDiscountAdjustment;
|
|
648
|
+
export type MonetaryMaximumAdjustment = API.MonetaryMaximumAdjustment;
|
|
649
|
+
export type MonetaryMinimumAdjustment = API.MonetaryMinimumAdjustment;
|
|
650
|
+
export type MonetaryPercentageDiscountAdjustment = API.MonetaryPercentageDiscountAdjustment;
|
|
651
|
+
export type MonetaryUsageDiscountAdjustment = API.MonetaryUsageDiscountAdjustment;
|
|
652
|
+
export type NewAllocationPrice = API.NewAllocationPrice;
|
|
653
|
+
export type NewAmountDiscount = API.NewAmountDiscount;
|
|
654
|
+
export type NewBillingCycleConfiguration = API.NewBillingCycleConfiguration;
|
|
655
|
+
export type NewDimensionalPriceConfiguration = API.NewDimensionalPriceConfiguration;
|
|
656
|
+
export type NewFloatingBPSPrice = API.NewFloatingBPSPrice;
|
|
657
|
+
export type NewFloatingBulkBPSPrice = API.NewFloatingBulkBPSPrice;
|
|
658
|
+
export type NewFloatingBulkPrice = API.NewFloatingBulkPrice;
|
|
659
|
+
export type NewFloatingBulkWithProrationPrice = API.NewFloatingBulkWithProrationPrice;
|
|
660
|
+
export type NewFloatingCumulativeGroupedBulkPrice = API.NewFloatingCumulativeGroupedBulkPrice;
|
|
661
|
+
export type NewFloatingGroupedAllocationPrice = API.NewFloatingGroupedAllocationPrice;
|
|
662
|
+
export type NewFloatingGroupedTieredPackagePrice = API.NewFloatingGroupedTieredPackagePrice;
|
|
663
|
+
export type NewFloatingGroupedTieredPrice = API.NewFloatingGroupedTieredPrice;
|
|
664
|
+
export type NewFloatingGroupedWithMeteredMinimumPrice = API.NewFloatingGroupedWithMeteredMinimumPrice;
|
|
665
|
+
export type NewFloatingGroupedWithProratedMinimumPrice = API.NewFloatingGroupedWithProratedMinimumPrice;
|
|
666
|
+
export type NewFloatingMatrixPrice = API.NewFloatingMatrixPrice;
|
|
667
|
+
export type NewFloatingMatrixWithAllocationPrice = API.NewFloatingMatrixWithAllocationPrice;
|
|
668
|
+
export type NewFloatingMatrixWithDisplayNamePrice = API.NewFloatingMatrixWithDisplayNamePrice;
|
|
669
|
+
export type NewFloatingMaxGroupTieredPackagePrice = API.NewFloatingMaxGroupTieredPackagePrice;
|
|
670
|
+
export type NewFloatingPackagePrice = API.NewFloatingPackagePrice;
|
|
671
|
+
export type NewFloatingPackageWithAllocationPrice = API.NewFloatingPackageWithAllocationPrice;
|
|
672
|
+
export type NewFloatingScalableMatrixWithTieredPricingPrice =
|
|
673
|
+
API.NewFloatingScalableMatrixWithTieredPricingPrice;
|
|
674
|
+
export type NewFloatingScalableMatrixWithUnitPricingPrice =
|
|
675
|
+
API.NewFloatingScalableMatrixWithUnitPricingPrice;
|
|
676
|
+
export type NewFloatingThresholdTotalAmountPrice = API.NewFloatingThresholdTotalAmountPrice;
|
|
677
|
+
export type NewFloatingTieredBPSPrice = API.NewFloatingTieredBPSPrice;
|
|
678
|
+
export type NewFloatingTieredPackagePrice = API.NewFloatingTieredPackagePrice;
|
|
679
|
+
export type NewFloatingTieredPackageWithMinimumPrice = API.NewFloatingTieredPackageWithMinimumPrice;
|
|
680
|
+
export type NewFloatingTieredPrice = API.NewFloatingTieredPrice;
|
|
681
|
+
export type NewFloatingTieredWithMinimumPrice = API.NewFloatingTieredWithMinimumPrice;
|
|
682
|
+
export type NewFloatingTieredWithProrationPrice = API.NewFloatingTieredWithProrationPrice;
|
|
683
|
+
export type NewFloatingUnitPrice = API.NewFloatingUnitPrice;
|
|
684
|
+
export type NewFloatingUnitWithPercentPrice = API.NewFloatingUnitWithPercentPrice;
|
|
685
|
+
export type NewFloatingUnitWithProrationPrice = API.NewFloatingUnitWithProrationPrice;
|
|
686
|
+
export type NewMaximum = API.NewMaximum;
|
|
687
|
+
export type NewMinimum = API.NewMinimum;
|
|
688
|
+
export type NewPercentageDiscount = API.NewPercentageDiscount;
|
|
689
|
+
export type NewPlanBPSPrice = API.NewPlanBPSPrice;
|
|
690
|
+
export type NewPlanBulkBPSPrice = API.NewPlanBulkBPSPrice;
|
|
691
|
+
export type NewPlanBulkPrice = API.NewPlanBulkPrice;
|
|
692
|
+
export type NewPlanBulkWithProrationPrice = API.NewPlanBulkWithProrationPrice;
|
|
693
|
+
export type NewPlanCumulativeGroupedBulkPrice = API.NewPlanCumulativeGroupedBulkPrice;
|
|
694
|
+
export type NewPlanGroupedAllocationPrice = API.NewPlanGroupedAllocationPrice;
|
|
695
|
+
export type NewPlanGroupedTieredPackagePrice = API.NewPlanGroupedTieredPackagePrice;
|
|
696
|
+
export type NewPlanGroupedTieredPrice = API.NewPlanGroupedTieredPrice;
|
|
697
|
+
export type NewPlanGroupedWithMeteredMinimumPrice = API.NewPlanGroupedWithMeteredMinimumPrice;
|
|
698
|
+
export type NewPlanGroupedWithProratedMinimumPrice = API.NewPlanGroupedWithProratedMinimumPrice;
|
|
699
|
+
export type NewPlanMatrixPrice = API.NewPlanMatrixPrice;
|
|
700
|
+
export type NewPlanMatrixWithAllocationPrice = API.NewPlanMatrixWithAllocationPrice;
|
|
701
|
+
export type NewPlanMatrixWithDisplayNamePrice = API.NewPlanMatrixWithDisplayNamePrice;
|
|
702
|
+
export type NewPlanMaxGroupTieredPackagePrice = API.NewPlanMaxGroupTieredPackagePrice;
|
|
703
|
+
export type NewPlanPackagePrice = API.NewPlanPackagePrice;
|
|
704
|
+
export type NewPlanPackageWithAllocationPrice = API.NewPlanPackageWithAllocationPrice;
|
|
705
|
+
export type NewPlanScalableMatrixWithTieredPricingPrice = API.NewPlanScalableMatrixWithTieredPricingPrice;
|
|
706
|
+
export type NewPlanScalableMatrixWithUnitPricingPrice = API.NewPlanScalableMatrixWithUnitPricingPrice;
|
|
707
|
+
export type NewPlanThresholdTotalAmountPrice = API.NewPlanThresholdTotalAmountPrice;
|
|
708
|
+
export type NewPlanTierWithProrationPrice = API.NewPlanTierWithProrationPrice;
|
|
709
|
+
export type NewPlanTieredBPSPrice = API.NewPlanTieredBPSPrice;
|
|
710
|
+
export type NewPlanTieredPackagePrice = API.NewPlanTieredPackagePrice;
|
|
711
|
+
export type NewPlanTieredPackageWithMinimumPrice = API.NewPlanTieredPackageWithMinimumPrice;
|
|
712
|
+
export type NewPlanTieredPrice = API.NewPlanTieredPrice;
|
|
713
|
+
export type NewPlanTieredWithMinimumPrice = API.NewPlanTieredWithMinimumPrice;
|
|
714
|
+
export type NewPlanUnitPrice = API.NewPlanUnitPrice;
|
|
715
|
+
export type NewPlanUnitWithPercentPrice = API.NewPlanUnitWithPercentPrice;
|
|
716
|
+
export type NewPlanUnitWithProrationPrice = API.NewPlanUnitWithProrationPrice;
|
|
717
|
+
export type NewUsageDiscount = API.NewUsageDiscount;
|
|
718
|
+
export type OtherSubLineItem = API.OtherSubLineItem;
|
|
719
|
+
export type PackageConfig = API.PackageConfig;
|
|
564
720
|
export type PaginationMetadata = API.PaginationMetadata;
|
|
721
|
+
export type PerPriceCost = API.PerPriceCost;
|
|
565
722
|
export type PercentageDiscount = API.PercentageDiscount;
|
|
723
|
+
export type PercentageDiscountInterval = API.PercentageDiscountInterval;
|
|
724
|
+
export type PlanPhaseAmountDiscountAdjustment = API.PlanPhaseAmountDiscountAdjustment;
|
|
725
|
+
export type PlanPhaseMaximumAdjustment = API.PlanPhaseMaximumAdjustment;
|
|
726
|
+
export type PlanPhaseMinimumAdjustment = API.PlanPhaseMinimumAdjustment;
|
|
727
|
+
export type PlanPhasePercentageDiscountAdjustment = API.PlanPhasePercentageDiscountAdjustment;
|
|
728
|
+
export type PlanPhaseUsageDiscountAdjustment = API.PlanPhaseUsageDiscountAdjustment;
|
|
729
|
+
export type Price = API.Price;
|
|
730
|
+
export type PriceInterval = API.PriceInterval;
|
|
731
|
+
export type SubLineItemGrouping = API.SubLineItemGrouping;
|
|
732
|
+
export type SubLineItemMatrixConfig = API.SubLineItemMatrixConfig;
|
|
733
|
+
export type SubscriptionChangeMinified = API.SubscriptionChangeMinified;
|
|
734
|
+
export type SubscriptionMinified = API.SubscriptionMinified;
|
|
735
|
+
export type SubscriptionTrialInfo = API.SubscriptionTrialInfo;
|
|
736
|
+
export type TaxAmount = API.TaxAmount;
|
|
737
|
+
export type Tier = API.Tier;
|
|
738
|
+
export type TierConfig = API.TierConfig;
|
|
739
|
+
export type TierSubLineItem = API.TierSubLineItem;
|
|
740
|
+
export type TieredBPSConfig = API.TieredBPSConfig;
|
|
741
|
+
export type TieredConfig = API.TieredConfig;
|
|
742
|
+
export type TieredConversionRateConfig = API.TieredConversionRateConfig;
|
|
743
|
+
export type TransformPriceFilter = API.TransformPriceFilter;
|
|
566
744
|
export type TrialDiscount = API.TrialDiscount;
|
|
745
|
+
export type UnitConfig = API.UnitConfig;
|
|
746
|
+
export type UnitConversionRateConfig = API.UnitConversionRateConfig;
|
|
567
747
|
export type UsageDiscount = API.UsageDiscount;
|
|
748
|
+
export type UsageDiscountInterval = API.UsageDiscountInterval;
|
|
568
749
|
}
|
|
569
750
|
|
|
570
751
|
export { toFile, fileFromPath } from './uploads';
|