@otr-app/shared-backend-generated-client 2.4.29 → 2.4.30

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.
@@ -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
 
@@ -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
  }
@@ -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.30",
4
4
  "main": "dist/otrBackendService.min.js",
5
5
  "files": [
6
6
  "/dist"