@stigg/js-client-sdk 2.20.0 → 2.21.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/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/models.d.ts +6 -0
- package/dist/src/models.d.ts +6 -0
- package/package.json +2 -2
package/dist/models.d.ts
CHANGED
|
@@ -386,6 +386,11 @@ export declare type SubscriptionPreviewTaxDetails = {
|
|
|
386
386
|
percentage: number;
|
|
387
387
|
inclusive: boolean;
|
|
388
388
|
};
|
|
389
|
+
export declare type SubscriptionPreviewCredits = {
|
|
390
|
+
initial: Money;
|
|
391
|
+
used: Money;
|
|
392
|
+
remaining: Money;
|
|
393
|
+
};
|
|
389
394
|
export interface SubscriptionPreview {
|
|
390
395
|
subTotal: Money;
|
|
391
396
|
totalExcludingTax: Money;
|
|
@@ -398,6 +403,7 @@ export interface SubscriptionPreview {
|
|
|
398
403
|
subscription?: SubscriptionPricePreview;
|
|
399
404
|
isPlanDowngrade?: boolean;
|
|
400
405
|
hasScheduledUpdates?: boolean;
|
|
406
|
+
credits?: SubscriptionPreviewCredits;
|
|
401
407
|
}
|
|
402
408
|
export declare type EstimateSubscription = {
|
|
403
409
|
customerId: string;
|
package/dist/src/models.d.ts
CHANGED
|
@@ -386,6 +386,11 @@ export declare type SubscriptionPreviewTaxDetails = {
|
|
|
386
386
|
percentage: number;
|
|
387
387
|
inclusive: boolean;
|
|
388
388
|
};
|
|
389
|
+
export declare type SubscriptionPreviewCredits = {
|
|
390
|
+
initial: Money;
|
|
391
|
+
used: Money;
|
|
392
|
+
remaining: Money;
|
|
393
|
+
};
|
|
389
394
|
export interface SubscriptionPreview {
|
|
390
395
|
subTotal: Money;
|
|
391
396
|
totalExcludingTax: Money;
|
|
@@ -398,6 +403,7 @@ export interface SubscriptionPreview {
|
|
|
398
403
|
subscription?: SubscriptionPricePreview;
|
|
399
404
|
isPlanDowngrade?: boolean;
|
|
400
405
|
hasScheduledUpdates?: boolean;
|
|
406
|
+
credits?: SubscriptionPreviewCredits;
|
|
401
407
|
}
|
|
402
408
|
export declare type EstimateSubscription = {
|
|
403
409
|
customerId: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stigg/js-client-sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.21.0",
|
|
4
4
|
"description": "Stigg client-side SDK for Browser",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@apollo/client": "^3.4.17",
|
|
30
30
|
"@sentry/browser": "^7.11.1",
|
|
31
|
-
"@stigg/api-client-js": "
|
|
31
|
+
"@stigg/api-client-js": "0.554.0",
|
|
32
32
|
"cross-fetch": "^3.1.6",
|
|
33
33
|
"fetch-retry": "^5.0.6",
|
|
34
34
|
"husky": "^7.0.4",
|