@lcdp/api-react-rest-client 2.14.4 → 2.14.5-develop.18877023431

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lcdp/api-react-rest-client",
3
- "version": "2.14.4",
3
+ "version": "2.14.5-develop.18877023431",
4
4
  "scripts": {
5
5
  "build": "tsc"
6
6
  },
@@ -41,11 +41,17 @@ export interface Subscription {
41
41
  */
42
42
  status: SubscriptionStatus;
43
43
  /**
44
- *
44
+ * Date of the scheduled start, only present if subscription status is FUTURE
45
+ * @type {Date}
46
+ * @memberof Subscription
47
+ */
48
+ startDate?: Date;
49
+ /**
50
+ * Will be null if subscription is in the future
45
51
  * @type {Date}
46
52
  * @memberof Subscription
47
53
  */
48
- startedAt: Date;
54
+ startedAt: Date | null;
49
55
  /**
50
56
  *
51
57
  * @type {Date}
@@ -45,6 +45,7 @@ function SubscriptionFromJSONTyped(json, ignoreDiscriminator) {
45
45
  'familyName': json['familyName'],
46
46
  'name': json['name'],
47
47
  'status': (json['status'] === null || json['status'] === undefined) ? json['status'] : (0, SubscriptionStatus_1.SubscriptionStatusFromJSON)(json['status']),
48
+ 'startDate': (json['startDate'] === null || json['startDate'] === undefined) ? json['startDate'] : new Date(json['startDate']),
48
49
  'startedAt': (json['startedAt'] === null || json['startedAt'] === undefined) ? json['startedAt'] : new Date(json['startedAt']),
49
50
  'nextBillingAt': (json['nextBillingAt'] === null || json['nextBillingAt'] === undefined) ? json['nextBillingAt'] : new Date(json['nextBillingAt']),
50
51
  'currentTermEnd': (json['currentTermEnd'] === null || json['currentTermEnd'] === undefined) ? json['currentTermEnd'] : new Date(json['currentTermEnd']),
@@ -62,7 +63,8 @@ function SubscriptionToJSON(value) {
62
63
  'familyName': value['familyName'],
63
64
  'name': value['name'],
64
65
  'status': (0, SubscriptionStatus_1.SubscriptionStatusToJSON)(value['status']),
65
- 'startedAt': (value['startedAt'] === null || value['startedAt'] === undefined) ? value['startedAt'] : (value['startedAt']).toISOString(),
66
+ 'startDate': (value['startDate'] === null || value['startDate'] === undefined) ? value['startDate'] : (value['startDate']).toISOString(),
67
+ 'startedAt': (value['startedAt'] === null || value['startedAt'] === undefined) ? value['startedAt'] : value['startedAt'].toISOString(),
66
68
  'nextBillingAt': (value['nextBillingAt'] === null || value['nextBillingAt'] === undefined) ? value['nextBillingAt'] : (value['nextBillingAt']).toISOString(),
67
69
  'currentTermEnd': (value['currentTermEnd'] === null || value['currentTermEnd'] === undefined) ? value['currentTermEnd'] : (value['currentTermEnd']).toISOString(),
68
70
  'trialStart': (value['trialStart'] === null || value['trialStart'] === undefined) ? value['trialStart'] : (value['trialStart']).toISOString(),