@lcdp/api-react-rest-client 2.14.5 → 2.14.6-develop.18946323422

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.5",
3
+ "version": "2.14.6-develop.18946323422",
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(),
@@ -21,14 +21,6 @@ export interface UserJournal {
21
21
  * @memberof UserJournal
22
22
  */
23
23
  archivedSaleOfferPageViewAt?: Date;
24
- /**
25
- * Deadline indicating that the user with the ACTIVE status on Mangopay (ScaEnrollmentStatus) pre-SCA is not required to enroll.
26
- * If this user starts the enrollment, this date is removed.
27
- *
28
- * @type {Date}
29
- * @memberof UserJournal
30
- */
31
- scaGracePeriod?: Date;
32
24
  }
33
25
  /**
34
26
  * Check if a given object implements the UserJournal interface.
@@ -31,7 +31,6 @@ function UserJournalFromJSONTyped(json, ignoreDiscriminator) {
31
31
  }
32
32
  return {
33
33
  'archivedSaleOfferPageViewAt': (json['archivedSaleOfferPageViewAt'] === null || json['archivedSaleOfferPageViewAt'] === undefined) ? json['archivedSaleOfferPageViewAt'] : new Date(json['archivedSaleOfferPageViewAt']),
34
- 'scaGracePeriod': (json['scaGracePeriod'] === null || json['scaGracePeriod'] === undefined) ? json['scaGracePeriod'] : new Date(json['scaGracePeriod']),
35
34
  };
36
35
  }
37
36
  exports.UserJournalFromJSONTyped = UserJournalFromJSONTyped;
@@ -41,7 +40,6 @@ function UserJournalToJSON(value) {
41
40
  }
42
41
  return {
43
42
  'archivedSaleOfferPageViewAt': (value['archivedSaleOfferPageViewAt'] === null || value['archivedSaleOfferPageViewAt'] === undefined) ? value['archivedSaleOfferPageViewAt'] : (value['archivedSaleOfferPageViewAt']).toISOString(),
44
- 'scaGracePeriod': (value['scaGracePeriod'] === null || value['scaGracePeriod'] === undefined) ? value['scaGracePeriod'] : (value['scaGracePeriod']).toISOString(),
45
43
  };
46
44
  }
47
45
  exports.UserJournalToJSON = UserJournalToJSON;