@lcdp/api-react-rest-client 2.14.3-LDS-4997-apimonolithfront-afficher-la-da.18535749255 → 2.14.3-LDS-4974-retours-chargebee.18685676739
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
|
@@ -21,25 +21,31 @@ export interface Subscription {
|
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof Subscription
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
familyId: string;
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
* @type {string}
|
|
28
28
|
* @memberof Subscription
|
|
29
29
|
*/
|
|
30
|
-
|
|
30
|
+
familyName: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof Subscription
|
|
35
|
+
*/
|
|
36
|
+
name: string;
|
|
31
37
|
/**
|
|
32
38
|
*
|
|
33
39
|
* @type {SubscriptionStatus}
|
|
34
40
|
* @memberof Subscription
|
|
35
41
|
*/
|
|
36
|
-
status
|
|
42
|
+
status: SubscriptionStatus;
|
|
37
43
|
/**
|
|
38
44
|
*
|
|
39
45
|
* @type {Date}
|
|
40
46
|
* @memberof Subscription
|
|
41
47
|
*/
|
|
42
|
-
startedAt
|
|
48
|
+
startedAt: Date;
|
|
43
49
|
/**
|
|
44
50
|
*
|
|
45
51
|
* @type {Date}
|
|
@@ -19,6 +19,16 @@ var SubscriptionStatus_1 = require("./SubscriptionStatus");
|
|
|
19
19
|
* Check if a given object implements the Subscription interface.
|
|
20
20
|
*/
|
|
21
21
|
function instanceOfSubscription(value) {
|
|
22
|
+
if (!('familyId' in value) || value['familyId'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('familyName' in value) || value['familyName'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('startedAt' in value) || value['startedAt'] === undefined)
|
|
31
|
+
return false;
|
|
22
32
|
return true;
|
|
23
33
|
}
|
|
24
34
|
exports.instanceOfSubscription = instanceOfSubscription;
|
|
@@ -31,7 +41,8 @@ function SubscriptionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
41
|
return json;
|
|
32
42
|
}
|
|
33
43
|
return {
|
|
34
|
-
'
|
|
44
|
+
'familyId': json['familyId'],
|
|
45
|
+
'familyName': json['familyName'],
|
|
35
46
|
'name': json['name'],
|
|
36
47
|
'status': (json['status'] === null || json['status'] === undefined) ? json['status'] : (0, SubscriptionStatus_1.SubscriptionStatusFromJSON)(json['status']),
|
|
37
48
|
'startedAt': (json['startedAt'] === null || json['startedAt'] === undefined) ? json['startedAt'] : new Date(json['startedAt']),
|
|
@@ -46,7 +57,8 @@ function SubscriptionToJSON(value) {
|
|
|
46
57
|
return value;
|
|
47
58
|
}
|
|
48
59
|
return {
|
|
49
|
-
'
|
|
60
|
+
'familyId': value['familyId'],
|
|
61
|
+
'familyName': value['familyName'],
|
|
50
62
|
'name': value['name'],
|
|
51
63
|
'status': (0, SubscriptionStatus_1.SubscriptionStatusToJSON)(value['status']),
|
|
52
64
|
'startedAt': (value['startedAt'] === null || value['startedAt'] === undefined) ? value['startedAt'] : (value['startedAt']).toISOString(),
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* - PAUSED: The subscription is paused. The subscription will not renew while in this state.
|
|
19
19
|
* - CANCELLED: The subscription has been canceled and is no longer in service.
|
|
20
20
|
* - TRANSFERRED: The subscription has been transferred to another business entity within the organization.
|
|
21
|
-
* - _UNKNOWN: Indicates unexpected value for this enum.
|
|
21
|
+
* - _UNKNOWN: Indicates unexpected value for this enum.
|
|
22
22
|
*
|
|
23
23
|
* @export
|
|
24
24
|
*/
|
|
@@ -23,7 +23,7 @@ exports.SubscriptionStatusToJSON = exports.SubscriptionStatusFromJSONTyped = exp
|
|
|
23
23
|
* - PAUSED: The subscription is paused. The subscription will not renew while in this state.
|
|
24
24
|
* - CANCELLED: The subscription has been canceled and is no longer in service.
|
|
25
25
|
* - TRANSFERRED: The subscription has been transferred to another business entity within the organization.
|
|
26
|
-
* - _UNKNOWN: Indicates unexpected value for this enum.
|
|
26
|
+
* - _UNKNOWN: Indicates unexpected value for this enum.
|
|
27
27
|
*
|
|
28
28
|
* @export
|
|
29
29
|
*/
|