@stigg/js-client-sdk 3.29.0 → 3.31.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/models.d.ts CHANGED
@@ -123,6 +123,8 @@ export declare type Coupon = {
123
123
  name: string;
124
124
  description?: string | null;
125
125
  discountValue: number;
126
+ percentOff?: number | null;
127
+ amountsOff?: Money[] | null;
126
128
  metadata?: Metadata | null;
127
129
  };
128
130
  export declare type Product = {
@@ -492,6 +494,7 @@ export interface SubscriptionPreviewV2 {
492
494
  }
493
495
  export declare type EstimateSubscription = {
494
496
  customerId: string;
497
+ payingCustomerId?: string;
495
498
  resourceId?: string;
496
499
  planId: string;
497
500
  addons?: SubscriptionEstimationAddon[];
@@ -513,6 +516,7 @@ export declare type EstimateSubscriptionUpdate = {
513
516
  };
514
517
  export declare type PreviewSubscription = {
515
518
  customerId: string;
519
+ payingCustomerId?: string;
516
520
  planId: string;
517
521
  resourceId?: string;
518
522
  addons?: SubscriptionEstimationAddon[];
@@ -123,6 +123,8 @@ export declare type Coupon = {
123
123
  name: string;
124
124
  description?: string | null;
125
125
  discountValue: number;
126
+ percentOff?: number | null;
127
+ amountsOff?: Money[] | null;
126
128
  metadata?: Metadata | null;
127
129
  };
128
130
  export declare type Product = {
@@ -492,6 +494,7 @@ export interface SubscriptionPreviewV2 {
492
494
  }
493
495
  export declare type EstimateSubscription = {
494
496
  customerId: string;
497
+ payingCustomerId?: string;
495
498
  resourceId?: string;
496
499
  planId: string;
497
500
  addons?: SubscriptionEstimationAddon[];
@@ -513,6 +516,7 @@ export declare type EstimateSubscriptionUpdate = {
513
516
  };
514
517
  export declare type PreviewSubscription = {
515
518
  customerId: string;
519
+ payingCustomerId?: string;
516
520
  planId: string;
517
521
  resourceId?: string;
518
522
  addons?: SubscriptionEstimationAddon[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stigg/js-client-sdk",
3
- "version": "3.29.0",
3
+ "version": "3.31.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": "2.157.1",
31
+ "@stigg/api-client-js": "2.199.0",
32
32
  "cross-fetch": "^3.1.6",
33
33
  "dayjs": "^1.11.13",
34
34
  "fetch-retry": "^5.0.6",