@lcdp/api-react-rest-client 2.14.3-LDS-4747-chargebee.18197926017 → 2.14.3-LDS-4747-chargebee.18225761899

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.
Files changed (46) hide show
  1. package/package.json +1 -1
  2. package/subscription/src/apis/SearchSubscriptionsApi.d.ts +29 -0
  3. package/subscription/src/apis/{SearchSubscriptionPlanFeatureApi.js → SearchSubscriptionsApi.js} +19 -13
  4. package/subscription/src/apis/index.d.ts +1 -5
  5. package/subscription/src/apis/index.js +1 -5
  6. package/subscription/src/models/Subscription.d.ts +6 -38
  7. package/subscription/src/models/Subscription.js +6 -19
  8. package/subscription/src/models/index.d.ts +0 -14
  9. package/subscription/src/models/index.js +0 -14
  10. package/subscription/src/apis/ManageSubscriptionApi.d.ts +0 -56
  11. package/subscription/src/apis/ManageSubscriptionApi.js +0 -315
  12. package/subscription/src/apis/ManageSubscriptionPlanApi.d.ts +0 -30
  13. package/subscription/src/apis/ManageSubscriptionPlanApi.js +0 -164
  14. package/subscription/src/apis/SearchSubscriptionApi.d.ts +0 -53
  15. package/subscription/src/apis/SearchSubscriptionApi.js +0 -208
  16. package/subscription/src/apis/SearchSubscriptionPlanApi.d.ts +0 -49
  17. package/subscription/src/apis/SearchSubscriptionPlanApi.js +0 -249
  18. package/subscription/src/apis/SearchSubscriptionPlanFeatureApi.d.ts +0 -26
  19. package/subscription/src/models/HttpLink.d.ts +0 -31
  20. package/subscription/src/models/HttpLink.js +0 -47
  21. package/subscription/src/models/PaginatedObject.d.ts +0 -32
  22. package/subscription/src/models/PaginatedObject.js +0 -48
  23. package/subscription/src/models/PaginatedSubscriptions.d.ts +0 -39
  24. package/subscription/src/models/PaginatedSubscriptions.js +0 -51
  25. package/subscription/src/models/PagingMetadata.d.ts +0 -49
  26. package/subscription/src/models/PagingMetadata.js +0 -55
  27. package/subscription/src/models/RestError.d.ts +0 -103
  28. package/subscription/src/models/RestError.js +0 -113
  29. package/subscription/src/models/SubscriberLink.d.ts +0 -37
  30. package/subscription/src/models/SubscriberLink.js +0 -49
  31. package/subscription/src/models/SubscriptionCreationParameters.d.ts +0 -44
  32. package/subscription/src/models/SubscriptionCreationParameters.js +0 -56
  33. package/subscription/src/models/SubscriptionPlan.d.ts +0 -69
  34. package/subscription/src/models/SubscriptionPlan.js +0 -59
  35. package/subscription/src/models/SubscriptionPlanFeature.d.ts +0 -44
  36. package/subscription/src/models/SubscriptionPlanFeature.js +0 -50
  37. package/subscription/src/models/SubscriptionPlanFeatureId.d.ts +0 -26
  38. package/subscription/src/models/SubscriptionPlanFeatureId.js +0 -49
  39. package/subscription/src/models/SubscriptionPlanId.d.ts +0 -25
  40. package/subscription/src/models/SubscriptionPlanId.js +0 -48
  41. package/subscription/src/models/SubscriptionPlanLink.d.ts +0 -38
  42. package/subscription/src/models/SubscriptionPlanLink.js +0 -50
  43. package/subscription/src/models/SubscriptionPlanUpdateParameters.d.ts +0 -62
  44. package/subscription/src/models/SubscriptionPlanUpdateParameters.js +0 -56
  45. package/subscription/src/models/SubscriptionUpdateParameters.d.ts +0 -62
  46. package/subscription/src/models/SubscriptionUpdateParameters.js +0 -57
@@ -1,69 +0,0 @@
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;
@@ -1,59 +0,0 @@
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;
@@ -1,44 +0,0 @@
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;
@@ -1,50 +0,0 @@
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;
@@ -1,26 +0,0 @@
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;
@@ -1,49 +0,0 @@
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;
@@ -1,25 +0,0 @@
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;
@@ -1,48 +0,0 @@
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;
@@ -1,38 +0,0 @@
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;
@@ -1,50 +0,0 @@
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;
@@ -1,62 +0,0 @@
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 SubscriptionPlanUpdateParameters
17
- */
18
- export interface SubscriptionPlanUpdateParameters {
19
- /**
20
- *
21
- * @type {string}
22
- * @memberof SubscriptionPlanUpdateParameters
23
- */
24
- name?: string;
25
- /**
26
- *
27
- * @type {string}
28
- * @memberof SubscriptionPlanUpdateParameters
29
- */
30
- description?: string;
31
- /**
32
- *
33
- * @type {number}
34
- * @memberof SubscriptionPlanUpdateParameters
35
- */
36
- price?: number;
37
- /**
38
- *
39
- * @type {Array<SubscriptionPlanFeatureId>}
40
- * @memberof SubscriptionPlanUpdateParameters
41
- */
42
- features?: Array<SubscriptionPlanFeatureId>;
43
- /**
44
- *
45
- * @type {boolean}
46
- * @memberof SubscriptionPlanUpdateParameters
47
- */
48
- active?: boolean;
49
- /**
50
- *
51
- * @type {number}
52
- * @memberof SubscriptionPlanUpdateParameters
53
- */
54
- position?: number;
55
- }
56
- /**
57
- * Check if a given object implements the SubscriptionPlanUpdateParameters interface.
58
- */
59
- export declare function instanceOfSubscriptionPlanUpdateParameters(value: object): value is SubscriptionPlanUpdateParameters;
60
- export declare function SubscriptionPlanUpdateParametersFromJSON(json: any): SubscriptionPlanUpdateParameters;
61
- export declare function SubscriptionPlanUpdateParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionPlanUpdateParameters;
62
- export declare function SubscriptionPlanUpdateParametersToJSON(value?: SubscriptionPlanUpdateParameters | null): any;
@@ -1,56 +0,0 @@
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.SubscriptionPlanUpdateParametersToJSON = exports.SubscriptionPlanUpdateParametersFromJSONTyped = exports.SubscriptionPlanUpdateParametersFromJSON = exports.instanceOfSubscriptionPlanUpdateParameters = void 0;
17
- var SubscriptionPlanFeatureId_1 = require("./SubscriptionPlanFeatureId");
18
- /**
19
- * Check if a given object implements the SubscriptionPlanUpdateParameters interface.
20
- */
21
- function instanceOfSubscriptionPlanUpdateParameters(value) {
22
- return true;
23
- }
24
- exports.instanceOfSubscriptionPlanUpdateParameters = instanceOfSubscriptionPlanUpdateParameters;
25
- function SubscriptionPlanUpdateParametersFromJSON(json) {
26
- return SubscriptionPlanUpdateParametersFromJSONTyped(json, false);
27
- }
28
- exports.SubscriptionPlanUpdateParametersFromJSON = SubscriptionPlanUpdateParametersFromJSON;
29
- function SubscriptionPlanUpdateParametersFromJSONTyped(json, ignoreDiscriminator) {
30
- if (json == null) {
31
- return json;
32
- }
33
- return {
34
- 'name': json['name'],
35
- 'description': json['description'],
36
- 'price': json['price'],
37
- 'features': (json['features'] === null || json['features'] === undefined) ? json['features'] : json['features'].map(SubscriptionPlanFeatureId_1.SubscriptionPlanFeatureIdFromJSON),
38
- 'active': json['active'],
39
- 'position': json['position'],
40
- };
41
- }
42
- exports.SubscriptionPlanUpdateParametersFromJSONTyped = SubscriptionPlanUpdateParametersFromJSONTyped;
43
- function SubscriptionPlanUpdateParametersToJSON(value) {
44
- if (value == null) {
45
- return value;
46
- }
47
- return {
48
- 'name': value['name'],
49
- 'description': value['description'],
50
- 'price': value['price'],
51
- 'features': (value['features'] === null || value['features'] === undefined) ? value['features'] : value['features'].map(SubscriptionPlanFeatureId_1.SubscriptionPlanFeatureIdToJSON),
52
- 'active': value['active'],
53
- 'position': value['position'],
54
- };
55
- }
56
- exports.SubscriptionPlanUpdateParametersToJSON = SubscriptionPlanUpdateParametersToJSON;
@@ -1,62 +0,0 @@
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 SubscriptionUpdateParameters
17
- */
18
- export interface SubscriptionUpdateParameters {
19
- /**
20
- *
21
- * @type {SubscriptionPlanId}
22
- * @memberof SubscriptionUpdateParameters
23
- */
24
- planId?: SubscriptionPlanId;
25
- /**
26
- *
27
- * @type {number}
28
- * @memberof SubscriptionUpdateParameters
29
- */
30
- billingPrice?: number;
31
- /**
32
- *
33
- * @type {Date}
34
- * @memberof SubscriptionUpdateParameters
35
- */
36
- validFrom?: Date;
37
- /**
38
- *
39
- * @type {Date}
40
- * @memberof SubscriptionUpdateParameters
41
- */
42
- validTo?: Date | null;
43
- /**
44
- *
45
- * @type {Date}
46
- * @memberof SubscriptionUpdateParameters
47
- */
48
- nextBillingDate?: Date | null;
49
- /**
50
- *
51
- * @type {boolean}
52
- * @memberof SubscriptionUpdateParameters
53
- */
54
- isTrial?: boolean;
55
- }
56
- /**
57
- * Check if a given object implements the SubscriptionUpdateParameters interface.
58
- */
59
- export declare function instanceOfSubscriptionUpdateParameters(value: object): value is SubscriptionUpdateParameters;
60
- export declare function SubscriptionUpdateParametersFromJSON(json: any): SubscriptionUpdateParameters;
61
- export declare function SubscriptionUpdateParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionUpdateParameters;
62
- export declare function SubscriptionUpdateParametersToJSON(value?: SubscriptionUpdateParameters | null): any;