@otr-app/shared-backend-generated-client 2.4.29 → 2.4.31
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/angular/model/billingSubscriptionModel.ts +1 -0
- package/dist/angular/model/createBillingSubscriptionRequest.ts +1 -0
- package/dist/typescript/model/BillingSubscriptionModel.d.ts +1 -0
- package/dist/typescript/model/CreateBillingSubscriptionRequest.d.ts +1 -0
- package/dist/typescript-fetch/models/BillingSubscriptionModel.d.ts +6 -0
- package/dist/typescript-fetch/models/BillingSubscriptionModel.js +2 -0
- package/dist/typescript-fetch/models/CreateBillingSubscriptionRequest.d.ts +6 -0
- package/dist/typescript-fetch/models/CreateBillingSubscriptionRequest.js +2 -0
- package/package.json +1 -1
|
@@ -22,6 +22,7 @@ export interface BillingSubscriptionModel {
|
|
|
22
22
|
productName?: string;
|
|
23
23
|
startAt?: string;
|
|
24
24
|
status?: BillingSubscriptionModel.StatusEnum;
|
|
25
|
+
trialEndAt?: string;
|
|
25
26
|
upcomingInvoicePreview?: BillingUpcomingInvoiceModel;
|
|
26
27
|
}
|
|
27
28
|
export namespace BillingSubscriptionModel {
|
|
@@ -19,6 +19,7 @@ export interface BillingSubscriptionModel {
|
|
|
19
19
|
"productName"?: string;
|
|
20
20
|
"startAt"?: string;
|
|
21
21
|
"status"?: BillingSubscriptionModel.StatusEnum;
|
|
22
|
+
"trialEndAt"?: string;
|
|
22
23
|
"upcomingInvoicePreview"?: models.BillingUpcomingInvoiceModel;
|
|
23
24
|
}
|
|
24
25
|
export declare namespace BillingSubscriptionModel {
|
|
@@ -64,6 +64,12 @@ export interface BillingSubscriptionModel {
|
|
|
64
64
|
* @memberof BillingSubscriptionModel
|
|
65
65
|
*/
|
|
66
66
|
status?: BillingSubscriptionModelStatusEnum;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {Date}
|
|
70
|
+
* @memberof BillingSubscriptionModel
|
|
71
|
+
*/
|
|
72
|
+
trialEndAt?: Date;
|
|
67
73
|
/**
|
|
68
74
|
*
|
|
69
75
|
* @type {BillingUpcomingInvoiceModel}
|
|
@@ -29,6 +29,7 @@ export function BillingSubscriptionModelFromJSONTyped(json, ignoreDiscriminator)
|
|
|
29
29
|
'productName': !exists(json, 'productName') ? undefined : json['productName'],
|
|
30
30
|
'startAt': !exists(json, 'startAt') ? undefined : (new Date(json['startAt'])),
|
|
31
31
|
'status': !exists(json, 'status') ? undefined : json['status'],
|
|
32
|
+
'trialEndAt': !exists(json, 'trialEndAt') ? undefined : (new Date(json['trialEndAt'])),
|
|
32
33
|
'upcomingInvoicePreview': !exists(json, 'upcomingInvoicePreview') ? undefined : BillingUpcomingInvoiceModelFromJSON(json['upcomingInvoicePreview']),
|
|
33
34
|
};
|
|
34
35
|
}
|
|
@@ -48,6 +49,7 @@ export function BillingSubscriptionModelToJSON(value) {
|
|
|
48
49
|
'productName': value.productName,
|
|
49
50
|
'startAt': value.startAt === undefined ? undefined : (value.startAt.toISOString()),
|
|
50
51
|
'status': value.status,
|
|
52
|
+
'trialEndAt': value.trialEndAt === undefined ? undefined : (value.trialEndAt.toISOString()),
|
|
51
53
|
'upcomingInvoicePreview': BillingUpcomingInvoiceModelToJSON(value.upcomingInvoicePreview),
|
|
52
54
|
};
|
|
53
55
|
}
|
|
@@ -40,6 +40,12 @@ export interface CreateBillingSubscriptionRequest {
|
|
|
40
40
|
* @memberof CreateBillingSubscriptionRequest
|
|
41
41
|
*/
|
|
42
42
|
productId?: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Date}
|
|
46
|
+
* @memberof CreateBillingSubscriptionRequest
|
|
47
|
+
*/
|
|
48
|
+
trialEndDate?: Date;
|
|
43
49
|
}
|
|
44
50
|
export declare function CreateBillingSubscriptionRequestFromJSON(json: any): CreateBillingSubscriptionRequest;
|
|
45
51
|
export declare function CreateBillingSubscriptionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateBillingSubscriptionRequest;
|
|
@@ -25,6 +25,7 @@ export function CreateBillingSubscriptionRequestFromJSONTyped(json, ignoreDiscri
|
|
|
25
25
|
'guardian': !exists(json, 'guardian') ? undefined : SubscriptionGuardianModelFromJSON(json['guardian']),
|
|
26
26
|
'priceIds': !exists(json, 'priceIds') ? undefined : json['priceIds'],
|
|
27
27
|
'productId': !exists(json, 'productId') ? undefined : json['productId'],
|
|
28
|
+
'trialEndDate': !exists(json, 'trialEndDate') ? undefined : (new Date(json['trialEndDate'])),
|
|
28
29
|
};
|
|
29
30
|
}
|
|
30
31
|
export function CreateBillingSubscriptionRequestToJSON(value) {
|
|
@@ -39,5 +40,6 @@ export function CreateBillingSubscriptionRequestToJSON(value) {
|
|
|
39
40
|
'guardian': SubscriptionGuardianModelToJSON(value.guardian),
|
|
40
41
|
'priceIds': value.priceIds,
|
|
41
42
|
'productId': value.productId,
|
|
43
|
+
'trialEndDate': value.trialEndDate === undefined ? undefined : (value.trialEndDate.toISOString().substr(0, 10)),
|
|
42
44
|
};
|
|
43
45
|
}
|