@lcdp/api-react-rest-client 2.14.3-develop.18775084447 → 2.14.3
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/invoice/src/apis/SearchInvoiceApi.d.ts +2 -2
- package/invoice/src/apis/SearchInvoiceApi.js +2 -2
- package/invoice/src/models/InvoiceType.d.ts +1 -0
- package/invoice/src/models/InvoiceType.js +1 -0
- package/notification/src/models/NotificationTypeId.d.ts +2 -1
- package/notification/src/models/NotificationTypeId.js +2 -1
- package/package.json +1 -1
- package/rfx/src/apis/index.d.ts +0 -1
- package/rfx/src/apis/index.js +0 -1
- package/rfx/src/models/index.d.ts +0 -1
- package/rfx/src/models/index.js +0 -1
- package/subscription/src/apis/ManageSubscriptionApi.d.ts +56 -0
- package/subscription/src/apis/ManageSubscriptionApi.js +315 -0
- package/subscription/src/apis/ManageSubscriptionPlanApi.d.ts +30 -0
- package/{rfx/src/apis/ManageRffApi.js → subscription/src/apis/ManageSubscriptionPlanApi.js} +39 -21
- package/subscription/src/apis/SearchSubscriptionApi.d.ts +53 -0
- package/subscription/src/apis/SearchSubscriptionApi.js +208 -0
- package/subscription/src/apis/SearchSubscriptionPlanApi.d.ts +49 -0
- package/subscription/src/apis/SearchSubscriptionPlanApi.js +249 -0
- package/subscription/src/apis/SearchSubscriptionPlanFeatureApi.d.ts +26 -0
- package/subscription/src/apis/{SearchSubscriptionsApi.js → SearchSubscriptionPlanFeatureApi.js} +13 -19
- package/subscription/src/apis/index.d.ts +5 -1
- package/subscription/src/apis/index.js +5 -1
- package/subscription/src/models/HttpLink.d.ts +31 -0
- package/subscription/src/models/HttpLink.js +47 -0
- package/subscription/src/models/PaginatedObject.d.ts +32 -0
- package/subscription/src/models/PaginatedObject.js +48 -0
- package/subscription/src/models/PaginatedSubscriptions.d.ts +39 -0
- package/subscription/src/models/PaginatedSubscriptions.js +51 -0
- package/subscription/src/models/PagingMetadata.d.ts +49 -0
- package/subscription/src/models/PagingMetadata.js +55 -0
- package/{chargebee-hook → subscription}/src/models/RestError.d.ts +1 -1
- package/{chargebee-hook → subscription}/src/models/RestError.js +1 -1
- package/subscription/src/models/SubscriberLink.d.ts +37 -0
- package/subscription/src/models/SubscriberLink.js +49 -0
- package/subscription/src/models/Subscription.d.ts +18 -23
- package/subscription/src/models/Subscription.js +19 -29
- package/subscription/src/models/SubscriptionCreationParameters.d.ts +44 -0
- package/subscription/src/models/SubscriptionCreationParameters.js +56 -0
- package/subscription/src/models/SubscriptionPlan.d.ts +69 -0
- package/subscription/src/models/SubscriptionPlan.js +59 -0
- package/subscription/src/models/SubscriptionPlanFeature.d.ts +44 -0
- package/subscription/src/models/SubscriptionPlanFeature.js +50 -0
- package/subscription/src/models/SubscriptionPlanFeatureId.d.ts +26 -0
- package/subscription/src/models/SubscriptionPlanFeatureId.js +49 -0
- package/subscription/src/models/SubscriptionPlanId.d.ts +25 -0
- package/subscription/src/models/SubscriptionPlanId.js +48 -0
- package/subscription/src/models/SubscriptionPlanLink.d.ts +38 -0
- package/subscription/src/models/SubscriptionPlanLink.js +50 -0
- package/subscription/src/models/SubscriptionPlanUpdateParameters.d.ts +62 -0
- package/subscription/src/models/SubscriptionPlanUpdateParameters.js +56 -0
- package/subscription/src/models/SubscriptionUpdateParameters.d.ts +62 -0
- package/subscription/src/models/SubscriptionUpdateParameters.js +57 -0
- package/subscription/src/models/index.d.ts +14 -1
- package/subscription/src/models/index.js +14 -1
- package/third-party/src/models/ThirdPartyLinkCreationParameters.d.ts +2 -5
- package/third-party/src/models/ThirdPartyLinkCreationParameters.js +2 -5
- package/user/src/models/NotificationTypeId.d.ts +2 -1
- package/user/src/models/NotificationTypeId.js +2 -1
- package/user/src/models/OffisanteStatus.d.ts +1 -3
- package/user/src/models/OffisanteStatus.js +2 -4
- package/user/src/models/User.d.ts +0 -8
- package/user/src/models/User.js +0 -2
- package/chargebee-hook/index.d.ts +0 -1
- package/chargebee-hook/index.js +0 -17
- package/chargebee-hook/src/apis/ChargebeeHookApi.d.ts +0 -31
- package/chargebee-hook/src/apis/ChargebeeHookApi.js +0 -134
- package/chargebee-hook/src/apis/index.d.ts +0 -1
- package/chargebee-hook/src/apis/index.js +0 -19
- package/chargebee-hook/src/index.d.ts +0 -3
- package/chargebee-hook/src/index.js +0 -21
- package/chargebee-hook/src/models/HookRequest.d.ts +0 -85
- package/chargebee-hook/src/models/HookRequest.js +0 -67
- package/chargebee-hook/src/models/index.d.ts +0 -2
- package/chargebee-hook/src/models/index.js +0 -20
- package/chargebee-hook/src/runtime.d.ts +0 -190
- package/chargebee-hook/src/runtime.js +0 -598
- package/rfx/src/apis/ManageRffApi.d.ts +0 -29
- package/rfx/src/models/RffCreationParameters.d.ts +0 -37
- package/rfx/src/models/RffCreationParameters.js +0 -51
- package/subscription/src/apis/SearchSubscriptionsApi.d.ts +0 -29
- package/subscription/src/models/SubscriptionStatus.d.ts +0 -39
- package/subscription/src/models/SubscriptionStatus.js +0 -62
|
@@ -14,21 +14,13 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.SubscriptionToJSON = exports.SubscriptionFromJSONTyped = exports.SubscriptionFromJSON = exports.instanceOfSubscription = void 0;
|
|
17
|
-
var
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
var SubscriberLink_1 = require("./SubscriberLink");
|
|
19
|
+
var SubscriptionPlanLink_1 = require("./SubscriptionPlanLink");
|
|
18
20
|
/**
|
|
19
21
|
* Check if a given object implements the Subscription interface.
|
|
20
22
|
*/
|
|
21
23
|
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;
|
|
32
24
|
return true;
|
|
33
25
|
}
|
|
34
26
|
exports.instanceOfSubscription = instanceOfSubscription;
|
|
@@ -41,15 +33,14 @@ function SubscriptionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
33
|
return json;
|
|
42
34
|
}
|
|
43
35
|
return {
|
|
44
|
-
'
|
|
45
|
-
'
|
|
46
|
-
'
|
|
47
|
-
'
|
|
48
|
-
'
|
|
49
|
-
'
|
|
50
|
-
'
|
|
51
|
-
'
|
|
52
|
-
'trialEnd': (json['trialEnd'] === null || json['trialEnd'] === undefined) ? json['trialEnd'] : new Date(json['trialEnd']),
|
|
36
|
+
'id': json['id'],
|
|
37
|
+
'subscriber': (json['subscriber'] === null || json['subscriber'] === undefined) ? json['subscriber'] : (0, SubscriberLink_1.SubscriberLinkFromJSON)(json['subscriber']),
|
|
38
|
+
'plan': (json['plan'] === null || json['plan'] === undefined) ? json['plan'] : (0, SubscriptionPlanLink_1.SubscriptionPlanLinkFromJSON)(json['plan']),
|
|
39
|
+
'billingPrice': json['billingPrice'],
|
|
40
|
+
'validFrom': (json['validFrom'] === null || json['validFrom'] === undefined) ? json['validFrom'] : new Date(json['validFrom']),
|
|
41
|
+
'validTo': (json['validTo'] === null || json['validTo'] === undefined) ? json['validTo'] : new Date(json['validTo']),
|
|
42
|
+
'nextBillingDate': (json['nextBillingDate'] === null || json['nextBillingDate'] === undefined) ? json['nextBillingDate'] : new Date(json['nextBillingDate']),
|
|
43
|
+
'isTrial': json['isTrial'],
|
|
53
44
|
};
|
|
54
45
|
}
|
|
55
46
|
exports.SubscriptionFromJSONTyped = SubscriptionFromJSONTyped;
|
|
@@ -58,15 +49,14 @@ function SubscriptionToJSON(value) {
|
|
|
58
49
|
return value;
|
|
59
50
|
}
|
|
60
51
|
return {
|
|
61
|
-
'
|
|
62
|
-
'
|
|
63
|
-
'
|
|
64
|
-
'
|
|
65
|
-
'
|
|
66
|
-
'
|
|
67
|
-
'
|
|
68
|
-
'
|
|
69
|
-
'trialEnd': (value['trialEnd'] === null || value['trialEnd'] === undefined) ? value['trialEnd'] : (value['trialEnd']).toISOString(),
|
|
52
|
+
'id': value['id'],
|
|
53
|
+
'subscriber': (0, SubscriberLink_1.SubscriberLinkToJSON)(value['subscriber']),
|
|
54
|
+
'plan': (0, SubscriptionPlanLink_1.SubscriptionPlanLinkToJSON)(value['plan']),
|
|
55
|
+
'billingPrice': value['billingPrice'],
|
|
56
|
+
'validFrom': (value['validFrom'] === null || value['validFrom'] === undefined) ? value['validFrom'] : (0, runtime_1.toDateISOString)(value['validFrom']),
|
|
57
|
+
'validTo': (value['validTo'] === null || value['validTo'] === undefined) ? value['validTo'] : (0, runtime_1.toDateISOString)(value['validTo']),
|
|
58
|
+
'nextBillingDate': (value['nextBillingDate'] === null || value['nextBillingDate'] === undefined) ? value['nextBillingDate'] : (0, runtime_1.toDateISOString)(value['nextBillingDate']),
|
|
59
|
+
'isTrial': value['isTrial'],
|
|
70
60
|
};
|
|
71
61
|
}
|
|
72
62
|
exports.SubscriptionToJSON = SubscriptionToJSON;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-monolith-service
|
|
3
|
+
* This is the REST API of LCDP products
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { SubscriptionPlanId } from './SubscriptionPlanId';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SubscriptionCreationParameters
|
|
17
|
+
*/
|
|
18
|
+
export interface SubscriptionCreationParameters {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof SubscriptionCreationParameters
|
|
23
|
+
*/
|
|
24
|
+
subscriberId: number;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {SubscriptionPlanId}
|
|
28
|
+
* @memberof SubscriptionCreationParameters
|
|
29
|
+
*/
|
|
30
|
+
planId: SubscriptionPlanId;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {boolean}
|
|
34
|
+
* @memberof SubscriptionCreationParameters
|
|
35
|
+
*/
|
|
36
|
+
isTrial: boolean;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the SubscriptionCreationParameters interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfSubscriptionCreationParameters(value: object): value is SubscriptionCreationParameters;
|
|
42
|
+
export declare function SubscriptionCreationParametersFromJSON(json: any): SubscriptionCreationParameters;
|
|
43
|
+
export declare function SubscriptionCreationParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionCreationParameters;
|
|
44
|
+
export declare function SubscriptionCreationParametersToJSON(value?: SubscriptionCreationParameters | null): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-monolith-service
|
|
6
|
+
* This is the REST API of LCDP products
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SubscriptionCreationParametersToJSON = exports.SubscriptionCreationParametersFromJSONTyped = exports.SubscriptionCreationParametersFromJSON = exports.instanceOfSubscriptionCreationParameters = void 0;
|
|
17
|
+
var SubscriptionPlanId_1 = require("./SubscriptionPlanId");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the SubscriptionCreationParameters interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfSubscriptionCreationParameters(value) {
|
|
22
|
+
if (!('subscriberId' in value) || value['subscriberId'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('planId' in value) || value['planId'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('isTrial' in value) || value['isTrial'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
exports.instanceOfSubscriptionCreationParameters = instanceOfSubscriptionCreationParameters;
|
|
31
|
+
function SubscriptionCreationParametersFromJSON(json) {
|
|
32
|
+
return SubscriptionCreationParametersFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
exports.SubscriptionCreationParametersFromJSON = SubscriptionCreationParametersFromJSON;
|
|
35
|
+
function SubscriptionCreationParametersFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'subscriberId': json['subscriberId'],
|
|
41
|
+
'planId': (json['planId'] === null || json['planId'] === undefined) ? json['planId'] : (0, SubscriptionPlanId_1.SubscriptionPlanIdFromJSON)(json['planId']),
|
|
42
|
+
'isTrial': json['isTrial'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
exports.SubscriptionCreationParametersFromJSONTyped = SubscriptionCreationParametersFromJSONTyped;
|
|
46
|
+
function SubscriptionCreationParametersToJSON(value) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'subscriberId': value['subscriberId'],
|
|
52
|
+
'planId': (0, SubscriptionPlanId_1.SubscriptionPlanIdToJSON)(value['planId']),
|
|
53
|
+
'isTrial': value['isTrial'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
exports.SubscriptionCreationParametersToJSON = SubscriptionCreationParametersToJSON;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-monolith-service
|
|
3
|
+
* This is the REST API of LCDP products
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { SubscriptionPlanFeature } from './SubscriptionPlanFeature';
|
|
13
|
+
import type { SubscriptionPlanId } from './SubscriptionPlanId';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface SubscriptionPlan
|
|
18
|
+
*/
|
|
19
|
+
export interface SubscriptionPlan {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {SubscriptionPlanId}
|
|
23
|
+
* @memberof SubscriptionPlan
|
|
24
|
+
*/
|
|
25
|
+
id?: SubscriptionPlanId;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof SubscriptionPlan
|
|
30
|
+
*/
|
|
31
|
+
name?: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof SubscriptionPlan
|
|
36
|
+
*/
|
|
37
|
+
description?: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {number}
|
|
41
|
+
* @memberof SubscriptionPlan
|
|
42
|
+
*/
|
|
43
|
+
price?: number;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Array<SubscriptionPlanFeature>}
|
|
47
|
+
* @memberof SubscriptionPlan
|
|
48
|
+
*/
|
|
49
|
+
features?: Array<SubscriptionPlanFeature>;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {boolean}
|
|
53
|
+
* @memberof SubscriptionPlan
|
|
54
|
+
*/
|
|
55
|
+
active?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {number}
|
|
59
|
+
* @memberof SubscriptionPlan
|
|
60
|
+
*/
|
|
61
|
+
position?: number;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Check if a given object implements the SubscriptionPlan interface.
|
|
65
|
+
*/
|
|
66
|
+
export declare function instanceOfSubscriptionPlan(value: object): value is SubscriptionPlan;
|
|
67
|
+
export declare function SubscriptionPlanFromJSON(json: any): SubscriptionPlan;
|
|
68
|
+
export declare function SubscriptionPlanFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionPlan;
|
|
69
|
+
export declare function SubscriptionPlanToJSON(value?: SubscriptionPlan | null): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-monolith-service
|
|
6
|
+
* This is the REST API of LCDP products
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SubscriptionPlanToJSON = exports.SubscriptionPlanFromJSONTyped = exports.SubscriptionPlanFromJSON = exports.instanceOfSubscriptionPlan = void 0;
|
|
17
|
+
var SubscriptionPlanFeature_1 = require("./SubscriptionPlanFeature");
|
|
18
|
+
var SubscriptionPlanId_1 = require("./SubscriptionPlanId");
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the SubscriptionPlan interface.
|
|
21
|
+
*/
|
|
22
|
+
function instanceOfSubscriptionPlan(value) {
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfSubscriptionPlan = instanceOfSubscriptionPlan;
|
|
26
|
+
function SubscriptionPlanFromJSON(json) {
|
|
27
|
+
return SubscriptionPlanFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.SubscriptionPlanFromJSON = SubscriptionPlanFromJSON;
|
|
30
|
+
function SubscriptionPlanFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'id': (json['id'] === null || json['id'] === undefined) ? json['id'] : (0, SubscriptionPlanId_1.SubscriptionPlanIdFromJSON)(json['id']),
|
|
36
|
+
'name': json['name'],
|
|
37
|
+
'description': json['description'],
|
|
38
|
+
'price': json['price'],
|
|
39
|
+
'features': (json['features'] === null || json['features'] === undefined) ? json['features'] : json['features'].map(SubscriptionPlanFeature_1.SubscriptionPlanFeatureFromJSON),
|
|
40
|
+
'active': json['active'],
|
|
41
|
+
'position': json['position'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
exports.SubscriptionPlanFromJSONTyped = SubscriptionPlanFromJSONTyped;
|
|
45
|
+
function SubscriptionPlanToJSON(value) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'id': (0, SubscriptionPlanId_1.SubscriptionPlanIdToJSON)(value['id']),
|
|
51
|
+
'name': value['name'],
|
|
52
|
+
'description': value['description'],
|
|
53
|
+
'price': value['price'],
|
|
54
|
+
'features': (value['features'] === null || value['features'] === undefined) ? value['features'] : value['features'].map(SubscriptionPlanFeature_1.SubscriptionPlanFeatureToJSON),
|
|
55
|
+
'active': value['active'],
|
|
56
|
+
'position': value['position'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
exports.SubscriptionPlanToJSON = SubscriptionPlanToJSON;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-monolith-service
|
|
3
|
+
* This is the REST API of LCDP products
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { SubscriptionPlanFeatureId } from './SubscriptionPlanFeatureId';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SubscriptionPlanFeature
|
|
17
|
+
*/
|
|
18
|
+
export interface SubscriptionPlanFeature {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {SubscriptionPlanFeatureId}
|
|
22
|
+
* @memberof SubscriptionPlanFeature
|
|
23
|
+
*/
|
|
24
|
+
id?: SubscriptionPlanFeatureId;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof SubscriptionPlanFeature
|
|
29
|
+
*/
|
|
30
|
+
name?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof SubscriptionPlanFeature
|
|
35
|
+
*/
|
|
36
|
+
description?: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the SubscriptionPlanFeature interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfSubscriptionPlanFeature(value: object): value is SubscriptionPlanFeature;
|
|
42
|
+
export declare function SubscriptionPlanFeatureFromJSON(json: any): SubscriptionPlanFeature;
|
|
43
|
+
export declare function SubscriptionPlanFeatureFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionPlanFeature;
|
|
44
|
+
export declare function SubscriptionPlanFeatureToJSON(value?: SubscriptionPlanFeature | null): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-monolith-service
|
|
6
|
+
* This is the REST API of LCDP products
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SubscriptionPlanFeatureToJSON = exports.SubscriptionPlanFeatureFromJSONTyped = exports.SubscriptionPlanFeatureFromJSON = exports.instanceOfSubscriptionPlanFeature = void 0;
|
|
17
|
+
var SubscriptionPlanFeatureId_1 = require("./SubscriptionPlanFeatureId");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the SubscriptionPlanFeature interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfSubscriptionPlanFeature(value) {
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
exports.instanceOfSubscriptionPlanFeature = instanceOfSubscriptionPlanFeature;
|
|
25
|
+
function SubscriptionPlanFeatureFromJSON(json) {
|
|
26
|
+
return SubscriptionPlanFeatureFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
exports.SubscriptionPlanFeatureFromJSON = SubscriptionPlanFeatureFromJSON;
|
|
29
|
+
function SubscriptionPlanFeatureFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'id': (json['id'] === null || json['id'] === undefined) ? json['id'] : (0, SubscriptionPlanFeatureId_1.SubscriptionPlanFeatureIdFromJSON)(json['id']),
|
|
35
|
+
'name': json['name'],
|
|
36
|
+
'description': json['description'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
exports.SubscriptionPlanFeatureFromJSONTyped = SubscriptionPlanFeatureFromJSONTyped;
|
|
40
|
+
function SubscriptionPlanFeatureToJSON(value) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'id': (0, SubscriptionPlanFeatureId_1.SubscriptionPlanFeatureIdToJSON)(value['id']),
|
|
46
|
+
'name': value['name'],
|
|
47
|
+
'description': value['description'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
exports.SubscriptionPlanFeatureToJSON = SubscriptionPlanFeatureToJSON;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-monolith-service
|
|
3
|
+
* This is the REST API of LCDP products
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Id of the subscription plan feature. It is a machine name
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const SubscriptionPlanFeatureId: {
|
|
17
|
+
readonly UPDATE: "UPDATE";
|
|
18
|
+
readonly BUY: "BUY";
|
|
19
|
+
readonly SELL: "SELL";
|
|
20
|
+
readonly UNDERSTOCK: "UNDERSTOCK";
|
|
21
|
+
};
|
|
22
|
+
export declare type SubscriptionPlanFeatureId = typeof SubscriptionPlanFeatureId[keyof typeof SubscriptionPlanFeatureId];
|
|
23
|
+
export declare function instanceOfSubscriptionPlanFeatureId(value: any): boolean;
|
|
24
|
+
export declare function SubscriptionPlanFeatureIdFromJSON(json: any): SubscriptionPlanFeatureId;
|
|
25
|
+
export declare function SubscriptionPlanFeatureIdFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionPlanFeatureId;
|
|
26
|
+
export declare function SubscriptionPlanFeatureIdToJSON(value?: SubscriptionPlanFeatureId | null): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-monolith-service
|
|
6
|
+
* This is the REST API of LCDP products
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SubscriptionPlanFeatureIdToJSON = exports.SubscriptionPlanFeatureIdFromJSONTyped = exports.SubscriptionPlanFeatureIdFromJSON = exports.instanceOfSubscriptionPlanFeatureId = exports.SubscriptionPlanFeatureId = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Id of the subscription plan feature. It is a machine name
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
exports.SubscriptionPlanFeatureId = {
|
|
22
|
+
UPDATE: 'UPDATE',
|
|
23
|
+
BUY: 'BUY',
|
|
24
|
+
SELL: 'SELL',
|
|
25
|
+
UNDERSTOCK: 'UNDERSTOCK'
|
|
26
|
+
};
|
|
27
|
+
function instanceOfSubscriptionPlanFeatureId(value) {
|
|
28
|
+
for (var key in exports.SubscriptionPlanFeatureId) {
|
|
29
|
+
if (Object.prototype.hasOwnProperty.call(exports.SubscriptionPlanFeatureId, key)) {
|
|
30
|
+
if (exports.SubscriptionPlanFeatureId[key] === value) {
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
exports.instanceOfSubscriptionPlanFeatureId = instanceOfSubscriptionPlanFeatureId;
|
|
38
|
+
function SubscriptionPlanFeatureIdFromJSON(json) {
|
|
39
|
+
return SubscriptionPlanFeatureIdFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
exports.SubscriptionPlanFeatureIdFromJSON = SubscriptionPlanFeatureIdFromJSON;
|
|
42
|
+
function SubscriptionPlanFeatureIdFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
exports.SubscriptionPlanFeatureIdFromJSONTyped = SubscriptionPlanFeatureIdFromJSONTyped;
|
|
46
|
+
function SubscriptionPlanFeatureIdToJSON(value) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
exports.SubscriptionPlanFeatureIdToJSON = SubscriptionPlanFeatureIdToJSON;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-monolith-service
|
|
3
|
+
* This is the REST API of LCDP products
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Id of the subscription plan. It is a machine name
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const SubscriptionPlanId: {
|
|
17
|
+
readonly BLUE: "BLUE";
|
|
18
|
+
readonly ORANGE: "ORANGE";
|
|
19
|
+
readonly RED: "RED";
|
|
20
|
+
};
|
|
21
|
+
export declare type SubscriptionPlanId = typeof SubscriptionPlanId[keyof typeof SubscriptionPlanId];
|
|
22
|
+
export declare function instanceOfSubscriptionPlanId(value: any): boolean;
|
|
23
|
+
export declare function SubscriptionPlanIdFromJSON(json: any): SubscriptionPlanId;
|
|
24
|
+
export declare function SubscriptionPlanIdFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionPlanId;
|
|
25
|
+
export declare function SubscriptionPlanIdToJSON(value?: SubscriptionPlanId | null): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-monolith-service
|
|
6
|
+
* This is the REST API of LCDP products
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SubscriptionPlanIdToJSON = exports.SubscriptionPlanIdFromJSONTyped = exports.SubscriptionPlanIdFromJSON = exports.instanceOfSubscriptionPlanId = exports.SubscriptionPlanId = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Id of the subscription plan. It is a machine name
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
exports.SubscriptionPlanId = {
|
|
22
|
+
BLUE: 'BLUE',
|
|
23
|
+
ORANGE: 'ORANGE',
|
|
24
|
+
RED: 'RED'
|
|
25
|
+
};
|
|
26
|
+
function instanceOfSubscriptionPlanId(value) {
|
|
27
|
+
for (var key in exports.SubscriptionPlanId) {
|
|
28
|
+
if (Object.prototype.hasOwnProperty.call(exports.SubscriptionPlanId, key)) {
|
|
29
|
+
if (exports.SubscriptionPlanId[key] === value) {
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
exports.instanceOfSubscriptionPlanId = instanceOfSubscriptionPlanId;
|
|
37
|
+
function SubscriptionPlanIdFromJSON(json) {
|
|
38
|
+
return SubscriptionPlanIdFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
exports.SubscriptionPlanIdFromJSON = SubscriptionPlanIdFromJSON;
|
|
41
|
+
function SubscriptionPlanIdFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
exports.SubscriptionPlanIdFromJSONTyped = SubscriptionPlanIdFromJSONTyped;
|
|
45
|
+
function SubscriptionPlanIdToJSON(value) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
exports.SubscriptionPlanIdToJSON = SubscriptionPlanIdToJSON;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-monolith-service
|
|
3
|
+
* This is the REST API of LCDP products
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { SubscriptionPlanId } from './SubscriptionPlanId';
|
|
13
|
+
/**
|
|
14
|
+
* Subscription plan link
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SubscriptionPlanLink
|
|
17
|
+
*/
|
|
18
|
+
export interface SubscriptionPlanLink {
|
|
19
|
+
/**
|
|
20
|
+
* Any URL that is using http or https protocol
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof SubscriptionPlanLink
|
|
23
|
+
*/
|
|
24
|
+
href: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {SubscriptionPlanId}
|
|
28
|
+
* @memberof SubscriptionPlanLink
|
|
29
|
+
*/
|
|
30
|
+
id?: SubscriptionPlanId;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the SubscriptionPlanLink interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfSubscriptionPlanLink(value: object): value is SubscriptionPlanLink;
|
|
36
|
+
export declare function SubscriptionPlanLinkFromJSON(json: any): SubscriptionPlanLink;
|
|
37
|
+
export declare function SubscriptionPlanLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionPlanLink;
|
|
38
|
+
export declare function SubscriptionPlanLinkToJSON(value?: SubscriptionPlanLink | null): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-monolith-service
|
|
6
|
+
* This is the REST API of LCDP products
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SubscriptionPlanLinkToJSON = exports.SubscriptionPlanLinkFromJSONTyped = exports.SubscriptionPlanLinkFromJSON = exports.instanceOfSubscriptionPlanLink = void 0;
|
|
17
|
+
var SubscriptionPlanId_1 = require("./SubscriptionPlanId");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the SubscriptionPlanLink interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfSubscriptionPlanLink(value) {
|
|
22
|
+
if (!('href' in value) || value['href'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfSubscriptionPlanLink = instanceOfSubscriptionPlanLink;
|
|
27
|
+
function SubscriptionPlanLinkFromJSON(json) {
|
|
28
|
+
return SubscriptionPlanLinkFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.SubscriptionPlanLinkFromJSON = SubscriptionPlanLinkFromJSON;
|
|
31
|
+
function SubscriptionPlanLinkFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'href': json['href'],
|
|
37
|
+
'id': (json['id'] === null || json['id'] === undefined) ? json['id'] : (0, SubscriptionPlanId_1.SubscriptionPlanIdFromJSON)(json['id']),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
exports.SubscriptionPlanLinkFromJSONTyped = SubscriptionPlanLinkFromJSONTyped;
|
|
41
|
+
function SubscriptionPlanLinkToJSON(value) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'href': value['href'],
|
|
47
|
+
'id': (0, SubscriptionPlanId_1.SubscriptionPlanIdToJSON)(value['id']),
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
exports.SubscriptionPlanLinkToJSON = SubscriptionPlanLinkToJSON;
|