@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.
@@ -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 {
@@ -17,5 +17,6 @@ export interface CreateBillingSubscriptionRequest {
17
17
  guardian?: SubscriptionGuardianModel;
18
18
  priceIds?: Array<string>;
19
19
  productId?: string;
20
+ trialEndDate?: string;
20
21
  }
21
22
 
@@ -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 {
@@ -15,4 +15,5 @@ export interface CreateBillingSubscriptionRequest {
15
15
  "guardian"?: models.SubscriptionGuardianModel;
16
16
  "priceIds"?: Array<string>;
17
17
  "productId"?: string;
18
+ "trialEndDate"?: string;
18
19
  }
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@otr-app/shared-backend-generated-client",
3
- "version": "2.4.29",
3
+ "version": "2.4.31",
4
4
  "main": "dist/otrBackendService.min.js",
5
5
  "files": [
6
6
  "/dist"