@cakemail-org/ui-components-v2 2.2.68 → 2.2.69
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/cjs/index.js
CHANGED
|
@@ -9607,11 +9607,12 @@ var emptyAccountAddress = {
|
|
|
9607
9607
|
|
|
9608
9608
|
var CustomerModel = /** @class */ (function () {
|
|
9609
9609
|
function CustomerModel(_a) {
|
|
9610
|
-
var id = _a.id, language = _a.language, profile = _a.profile, subscriptions = _a.subscriptions;
|
|
9610
|
+
var id = _a.id, language = _a.language, profile = _a.profile, subscriptions = _a.subscriptions, contract = _a.contract;
|
|
9611
9611
|
this.id = id;
|
|
9612
9612
|
this.language = language;
|
|
9613
9613
|
this.profile = profile;
|
|
9614
9614
|
this.subscriptions = subscriptions;
|
|
9615
|
+
this.contract = contract;
|
|
9615
9616
|
}
|
|
9616
9617
|
CustomerModel.prototype.toJson = function () {
|
|
9617
9618
|
return modelToJson(this);
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { TStripeSubscription } from "./types";
|
|
1
|
+
import { TContract, TStripeSubscription } from "./types";
|
|
2
2
|
export declare class CustomerModel {
|
|
3
3
|
readonly id: string;
|
|
4
4
|
readonly language: string;
|
|
5
5
|
readonly profile: any;
|
|
6
6
|
readonly subscriptions: TStripeSubscription[];
|
|
7
|
-
|
|
7
|
+
readonly contract: TContract;
|
|
8
|
+
constructor({ id, language, profile, subscriptions, contract }: CustomerModel);
|
|
8
9
|
toJson(): any;
|
|
9
10
|
set<T extends keyof this>(property: T, value: this[T]): void;
|
|
10
11
|
}
|
|
@@ -1,4 +1,21 @@
|
|
|
1
1
|
import { TAccountLimits } from "../account/types";
|
|
2
|
+
export type TContract = {
|
|
3
|
+
active: boolean;
|
|
4
|
+
currency: string;
|
|
5
|
+
metadata: {
|
|
6
|
+
active: boolean;
|
|
7
|
+
added: string;
|
|
8
|
+
category: "growth" | "free" | "premium";
|
|
9
|
+
id: string;
|
|
10
|
+
type: string;
|
|
11
|
+
updated: string;
|
|
12
|
+
usage_limits: TAccountLimits;
|
|
13
|
+
uuid: string;
|
|
14
|
+
};
|
|
15
|
+
name: string;
|
|
16
|
+
product: string;
|
|
17
|
+
unit_amount: number;
|
|
18
|
+
};
|
|
2
19
|
export type TStripeSubscription = {
|
|
3
20
|
currentPeriodEnd: number;
|
|
4
21
|
id: string;
|
package/dist/esm/index.js
CHANGED
|
@@ -9587,11 +9587,12 @@ var emptyAccountAddress = {
|
|
|
9587
9587
|
|
|
9588
9588
|
var CustomerModel = /** @class */ (function () {
|
|
9589
9589
|
function CustomerModel(_a) {
|
|
9590
|
-
var id = _a.id, language = _a.language, profile = _a.profile, subscriptions = _a.subscriptions;
|
|
9590
|
+
var id = _a.id, language = _a.language, profile = _a.profile, subscriptions = _a.subscriptions, contract = _a.contract;
|
|
9591
9591
|
this.id = id;
|
|
9592
9592
|
this.language = language;
|
|
9593
9593
|
this.profile = profile;
|
|
9594
9594
|
this.subscriptions = subscriptions;
|
|
9595
|
+
this.contract = contract;
|
|
9595
9596
|
}
|
|
9596
9597
|
CustomerModel.prototype.toJson = function () {
|
|
9597
9598
|
return modelToJson(this);
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { TStripeSubscription } from "./types";
|
|
1
|
+
import { TContract, TStripeSubscription } from "./types";
|
|
2
2
|
export declare class CustomerModel {
|
|
3
3
|
readonly id: string;
|
|
4
4
|
readonly language: string;
|
|
5
5
|
readonly profile: any;
|
|
6
6
|
readonly subscriptions: TStripeSubscription[];
|
|
7
|
-
|
|
7
|
+
readonly contract: TContract;
|
|
8
|
+
constructor({ id, language, profile, subscriptions, contract }: CustomerModel);
|
|
8
9
|
toJson(): any;
|
|
9
10
|
set<T extends keyof this>(property: T, value: this[T]): void;
|
|
10
11
|
}
|
|
@@ -1,4 +1,21 @@
|
|
|
1
1
|
import { TAccountLimits } from "../account/types";
|
|
2
|
+
export type TContract = {
|
|
3
|
+
active: boolean;
|
|
4
|
+
currency: string;
|
|
5
|
+
metadata: {
|
|
6
|
+
active: boolean;
|
|
7
|
+
added: string;
|
|
8
|
+
category: "growth" | "free" | "premium";
|
|
9
|
+
id: string;
|
|
10
|
+
type: string;
|
|
11
|
+
updated: string;
|
|
12
|
+
usage_limits: TAccountLimits;
|
|
13
|
+
uuid: string;
|
|
14
|
+
};
|
|
15
|
+
name: string;
|
|
16
|
+
product: string;
|
|
17
|
+
unit_amount: number;
|
|
18
|
+
};
|
|
2
19
|
export type TStripeSubscription = {
|
|
3
20
|
currentPeriodEnd: number;
|
|
4
21
|
id: string;
|