@lcdp/api-react-rest-client 2.14.3 → 2.14.4

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 (83) hide show
  1. package/chargebee-hook/index.d.ts +1 -0
  2. package/chargebee-hook/index.js +17 -0
  3. package/chargebee-hook/src/apis/ChargebeeHookApi.d.ts +31 -0
  4. package/chargebee-hook/src/apis/ChargebeeHookApi.js +134 -0
  5. package/chargebee-hook/src/apis/index.d.ts +1 -0
  6. package/chargebee-hook/src/apis/index.js +19 -0
  7. package/chargebee-hook/src/index.d.ts +3 -0
  8. package/chargebee-hook/src/index.js +21 -0
  9. package/chargebee-hook/src/models/HookRequest.d.ts +85 -0
  10. package/chargebee-hook/src/models/HookRequest.js +67 -0
  11. package/{subscription → chargebee-hook}/src/models/RestError.d.ts +1 -1
  12. package/{subscription → chargebee-hook}/src/models/RestError.js +1 -1
  13. package/chargebee-hook/src/models/index.d.ts +2 -0
  14. package/chargebee-hook/src/models/index.js +20 -0
  15. package/chargebee-hook/src/runtime.d.ts +190 -0
  16. package/chargebee-hook/src/runtime.js +598 -0
  17. package/invoice/src/apis/SearchInvoiceApi.d.ts +2 -2
  18. package/invoice/src/apis/SearchInvoiceApi.js +2 -2
  19. package/invoice/src/models/InvoiceType.d.ts +0 -1
  20. package/invoice/src/models/InvoiceType.js +0 -1
  21. package/notification/src/models/NotificationTypeId.d.ts +1 -2
  22. package/notification/src/models/NotificationTypeId.js +1 -2
  23. package/package.json +1 -1
  24. package/rfx/src/apis/ManageRffApi.d.ts +29 -0
  25. package/{subscription/src/apis/ManageSubscriptionPlanApi.js → rfx/src/apis/ManageRffApi.js} +21 -39
  26. package/rfx/src/apis/index.d.ts +1 -0
  27. package/rfx/src/apis/index.js +1 -0
  28. package/rfx/src/models/RffCreationParameters.d.ts +37 -0
  29. package/rfx/src/models/RffCreationParameters.js +51 -0
  30. package/rfx/src/models/index.d.ts +1 -0
  31. package/rfx/src/models/index.js +1 -0
  32. package/subscription/src/apis/SearchSubscriptionsApi.d.ts +29 -0
  33. package/subscription/src/apis/{SearchSubscriptionPlanFeatureApi.js → SearchSubscriptionsApi.js} +19 -13
  34. package/subscription/src/apis/index.d.ts +1 -5
  35. package/subscription/src/apis/index.js +1 -5
  36. package/subscription/src/models/Subscription.d.ts +23 -18
  37. package/subscription/src/models/Subscription.js +29 -19
  38. package/subscription/src/models/SubscriptionStatus.d.ts +39 -0
  39. package/subscription/src/models/SubscriptionStatus.js +62 -0
  40. package/subscription/src/models/index.d.ts +1 -14
  41. package/subscription/src/models/index.js +1 -14
  42. package/third-party/src/models/ThirdPartyLinkCreationParameters.d.ts +5 -2
  43. package/third-party/src/models/ThirdPartyLinkCreationParameters.js +5 -2
  44. package/user/src/models/NotificationTypeId.d.ts +1 -2
  45. package/user/src/models/NotificationTypeId.js +1 -2
  46. package/user/src/models/OffisanteStatus.d.ts +3 -1
  47. package/user/src/models/OffisanteStatus.js +4 -2
  48. package/user/src/models/User.d.ts +8 -0
  49. package/user/src/models/User.js +2 -0
  50. package/subscription/src/apis/ManageSubscriptionApi.d.ts +0 -56
  51. package/subscription/src/apis/ManageSubscriptionApi.js +0 -315
  52. package/subscription/src/apis/ManageSubscriptionPlanApi.d.ts +0 -30
  53. package/subscription/src/apis/SearchSubscriptionApi.d.ts +0 -53
  54. package/subscription/src/apis/SearchSubscriptionApi.js +0 -208
  55. package/subscription/src/apis/SearchSubscriptionPlanApi.d.ts +0 -49
  56. package/subscription/src/apis/SearchSubscriptionPlanApi.js +0 -249
  57. package/subscription/src/apis/SearchSubscriptionPlanFeatureApi.d.ts +0 -26
  58. package/subscription/src/models/HttpLink.d.ts +0 -31
  59. package/subscription/src/models/HttpLink.js +0 -47
  60. package/subscription/src/models/PaginatedObject.d.ts +0 -32
  61. package/subscription/src/models/PaginatedObject.js +0 -48
  62. package/subscription/src/models/PaginatedSubscriptions.d.ts +0 -39
  63. package/subscription/src/models/PaginatedSubscriptions.js +0 -51
  64. package/subscription/src/models/PagingMetadata.d.ts +0 -49
  65. package/subscription/src/models/PagingMetadata.js +0 -55
  66. package/subscription/src/models/SubscriberLink.d.ts +0 -37
  67. package/subscription/src/models/SubscriberLink.js +0 -49
  68. package/subscription/src/models/SubscriptionCreationParameters.d.ts +0 -44
  69. package/subscription/src/models/SubscriptionCreationParameters.js +0 -56
  70. package/subscription/src/models/SubscriptionPlan.d.ts +0 -69
  71. package/subscription/src/models/SubscriptionPlan.js +0 -59
  72. package/subscription/src/models/SubscriptionPlanFeature.d.ts +0 -44
  73. package/subscription/src/models/SubscriptionPlanFeature.js +0 -50
  74. package/subscription/src/models/SubscriptionPlanFeatureId.d.ts +0 -26
  75. package/subscription/src/models/SubscriptionPlanFeatureId.js +0 -49
  76. package/subscription/src/models/SubscriptionPlanId.d.ts +0 -25
  77. package/subscription/src/models/SubscriptionPlanId.js +0 -48
  78. package/subscription/src/models/SubscriptionPlanLink.d.ts +0 -38
  79. package/subscription/src/models/SubscriptionPlanLink.js +0 -50
  80. package/subscription/src/models/SubscriptionPlanUpdateParameters.d.ts +0 -62
  81. package/subscription/src/models/SubscriptionPlanUpdateParameters.js +0 -56
  82. package/subscription/src/models/SubscriptionUpdateParameters.d.ts +0 -62
  83. package/subscription/src/models/SubscriptionUpdateParameters.js +0 -57
@@ -1,32 +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 { PagingMetadata } from './PagingMetadata';
13
- /**
14
- * An object which is not complete (only a specific page is available)
15
- * @export
16
- * @interface PaginatedObject
17
- */
18
- export interface PaginatedObject {
19
- /**
20
- *
21
- * @type {PagingMetadata}
22
- * @memberof PaginatedObject
23
- */
24
- metadata: PagingMetadata;
25
- }
26
- /**
27
- * Check if a given object implements the PaginatedObject interface.
28
- */
29
- export declare function instanceOfPaginatedObject(value: object): value is PaginatedObject;
30
- export declare function PaginatedObjectFromJSON(json: any): PaginatedObject;
31
- export declare function PaginatedObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedObject;
32
- export declare function PaginatedObjectToJSON(value?: PaginatedObject | 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.PaginatedObjectToJSON = exports.PaginatedObjectFromJSONTyped = exports.PaginatedObjectFromJSON = exports.instanceOfPaginatedObject = void 0;
17
- var PagingMetadata_1 = require("./PagingMetadata");
18
- /**
19
- * Check if a given object implements the PaginatedObject interface.
20
- */
21
- function instanceOfPaginatedObject(value) {
22
- if (!('metadata' in value) || value['metadata'] === undefined)
23
- return false;
24
- return true;
25
- }
26
- exports.instanceOfPaginatedObject = instanceOfPaginatedObject;
27
- function PaginatedObjectFromJSON(json) {
28
- return PaginatedObjectFromJSONTyped(json, false);
29
- }
30
- exports.PaginatedObjectFromJSON = PaginatedObjectFromJSON;
31
- function PaginatedObjectFromJSONTyped(json, ignoreDiscriminator) {
32
- if (json == null) {
33
- return json;
34
- }
35
- return {
36
- 'metadata': (json['metadata'] === null || json['metadata'] === undefined) ? json['metadata'] : (0, PagingMetadata_1.PagingMetadataFromJSON)(json['metadata']),
37
- };
38
- }
39
- exports.PaginatedObjectFromJSONTyped = PaginatedObjectFromJSONTyped;
40
- function PaginatedObjectToJSON(value) {
41
- if (value == null) {
42
- return value;
43
- }
44
- return {
45
- 'metadata': (0, PagingMetadata_1.PagingMetadataToJSON)(value['metadata']),
46
- };
47
- }
48
- exports.PaginatedObjectToJSON = PaginatedObjectToJSON;
@@ -1,39 +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 { PagingMetadata } from './PagingMetadata';
13
- import type { Subscription } from './Subscription';
14
- /**
15
- *
16
- * @export
17
- * @interface PaginatedSubscriptions
18
- */
19
- export interface PaginatedSubscriptions {
20
- /**
21
- *
22
- * @type {PagingMetadata}
23
- * @memberof PaginatedSubscriptions
24
- */
25
- metadata: PagingMetadata;
26
- /**
27
- *
28
- * @type {Array<Subscription>}
29
- * @memberof PaginatedSubscriptions
30
- */
31
- records?: Array<Subscription>;
32
- }
33
- /**
34
- * Check if a given object implements the PaginatedSubscriptions interface.
35
- */
36
- export declare function instanceOfPaginatedSubscriptions(value: object): value is PaginatedSubscriptions;
37
- export declare function PaginatedSubscriptionsFromJSON(json: any): PaginatedSubscriptions;
38
- export declare function PaginatedSubscriptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedSubscriptions;
39
- export declare function PaginatedSubscriptionsToJSON(value?: PaginatedSubscriptions | null): any;
@@ -1,51 +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.PaginatedSubscriptionsToJSON = exports.PaginatedSubscriptionsFromJSONTyped = exports.PaginatedSubscriptionsFromJSON = exports.instanceOfPaginatedSubscriptions = void 0;
17
- var PagingMetadata_1 = require("./PagingMetadata");
18
- var Subscription_1 = require("./Subscription");
19
- /**
20
- * Check if a given object implements the PaginatedSubscriptions interface.
21
- */
22
- function instanceOfPaginatedSubscriptions(value) {
23
- if (!('metadata' in value) || value['metadata'] === undefined)
24
- return false;
25
- return true;
26
- }
27
- exports.instanceOfPaginatedSubscriptions = instanceOfPaginatedSubscriptions;
28
- function PaginatedSubscriptionsFromJSON(json) {
29
- return PaginatedSubscriptionsFromJSONTyped(json, false);
30
- }
31
- exports.PaginatedSubscriptionsFromJSON = PaginatedSubscriptionsFromJSON;
32
- function PaginatedSubscriptionsFromJSONTyped(json, ignoreDiscriminator) {
33
- if (json == null) {
34
- return json;
35
- }
36
- return {
37
- 'metadata': (json['metadata'] === null || json['metadata'] === undefined) ? json['metadata'] : (0, PagingMetadata_1.PagingMetadataFromJSON)(json['metadata']),
38
- 'records': (json['records'] === null || json['records'] === undefined) ? json['records'] : json['records'].map(Subscription_1.SubscriptionFromJSON),
39
- };
40
- }
41
- exports.PaginatedSubscriptionsFromJSONTyped = PaginatedSubscriptionsFromJSONTyped;
42
- function PaginatedSubscriptionsToJSON(value) {
43
- if (value == null) {
44
- return value;
45
- }
46
- return {
47
- 'metadata': (0, PagingMetadata_1.PagingMetadataToJSON)(value['metadata']),
48
- 'records': (value['records'] === null || value['records'] === undefined) ? value['records'] : value['records'].map(Subscription_1.SubscriptionToJSON),
49
- };
50
- }
51
- exports.PaginatedSubscriptionsToJSON = PaginatedSubscriptionsToJSON;
@@ -1,49 +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
- * All information about current and available pages
14
- * @export
15
- * @interface PagingMetadata
16
- */
17
- export interface PagingMetadata {
18
- /**
19
- * Current page requested. Start at 0. May not be present if user do not request specific page.
20
- * @type {number}
21
- * @memberof PagingMetadata
22
- */
23
- page?: number;
24
- /**
25
- * Number of item per page. 0 means that you only required metadata. May not be present if user do not request specific perPage.
26
- * @type {number}
27
- * @memberof PagingMetadata
28
- */
29
- perPage?: number;
30
- /**
31
- * Total number of item visible by the client in the request
32
- * @type {number}
33
- * @memberof PagingMetadata
34
- */
35
- totalVisible: number;
36
- /**
37
- * Total number of item found in database
38
- * @type {number}
39
- * @memberof PagingMetadata
40
- */
41
- totalFound: number;
42
- }
43
- /**
44
- * Check if a given object implements the PagingMetadata interface.
45
- */
46
- export declare function instanceOfPagingMetadata(value: object): value is PagingMetadata;
47
- export declare function PagingMetadataFromJSON(json: any): PagingMetadata;
48
- export declare function PagingMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PagingMetadata;
49
- export declare function PagingMetadataToJSON(value?: PagingMetadata | null): any;
@@ -1,55 +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.PagingMetadataToJSON = exports.PagingMetadataFromJSONTyped = exports.PagingMetadataFromJSON = exports.instanceOfPagingMetadata = void 0;
17
- /**
18
- * Check if a given object implements the PagingMetadata interface.
19
- */
20
- function instanceOfPagingMetadata(value) {
21
- if (!('totalVisible' in value) || value['totalVisible'] === undefined)
22
- return false;
23
- if (!('totalFound' in value) || value['totalFound'] === undefined)
24
- return false;
25
- return true;
26
- }
27
- exports.instanceOfPagingMetadata = instanceOfPagingMetadata;
28
- function PagingMetadataFromJSON(json) {
29
- return PagingMetadataFromJSONTyped(json, false);
30
- }
31
- exports.PagingMetadataFromJSON = PagingMetadataFromJSON;
32
- function PagingMetadataFromJSONTyped(json, ignoreDiscriminator) {
33
- if (json == null) {
34
- return json;
35
- }
36
- return {
37
- 'page': json['page'],
38
- 'perPage': json['perPage'],
39
- 'totalVisible': json['totalVisible'],
40
- 'totalFound': json['totalFound'],
41
- };
42
- }
43
- exports.PagingMetadataFromJSONTyped = PagingMetadataFromJSONTyped;
44
- function PagingMetadataToJSON(value) {
45
- if (value == null) {
46
- return value;
47
- }
48
- return {
49
- 'page': value['page'],
50
- 'perPage': value['perPage'],
51
- 'totalVisible': value['totalVisible'],
52
- 'totalFound': value['totalFound'],
53
- };
54
- }
55
- exports.PagingMetadataToJSON = PagingMetadataToJSON;
@@ -1,37 +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
- * Subscriber link
14
- * @export
15
- * @interface SubscriberLink
16
- */
17
- export interface SubscriberLink {
18
- /**
19
- * Any URL that is using http or https protocol
20
- * @type {string}
21
- * @memberof SubscriberLink
22
- */
23
- href: string;
24
- /**
25
- * User id
26
- * @type {number}
27
- * @memberof SubscriberLink
28
- */
29
- id?: number;
30
- }
31
- /**
32
- * Check if a given object implements the SubscriberLink interface.
33
- */
34
- export declare function instanceOfSubscriberLink(value: object): value is SubscriberLink;
35
- export declare function SubscriberLinkFromJSON(json: any): SubscriberLink;
36
- export declare function SubscriberLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriberLink;
37
- export declare function SubscriberLinkToJSON(value?: SubscriberLink | 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.SubscriberLinkToJSON = exports.SubscriberLinkFromJSONTyped = exports.SubscriberLinkFromJSON = exports.instanceOfSubscriberLink = void 0;
17
- /**
18
- * Check if a given object implements the SubscriberLink interface.
19
- */
20
- function instanceOfSubscriberLink(value) {
21
- if (!('href' in value) || value['href'] === undefined)
22
- return false;
23
- return true;
24
- }
25
- exports.instanceOfSubscriberLink = instanceOfSubscriberLink;
26
- function SubscriberLinkFromJSON(json) {
27
- return SubscriberLinkFromJSONTyped(json, false);
28
- }
29
- exports.SubscriberLinkFromJSON = SubscriberLinkFromJSON;
30
- function SubscriberLinkFromJSONTyped(json, ignoreDiscriminator) {
31
- if (json == null) {
32
- return json;
33
- }
34
- return {
35
- 'href': json['href'],
36
- 'id': json['id'],
37
- };
38
- }
39
- exports.SubscriberLinkFromJSONTyped = SubscriberLinkFromJSONTyped;
40
- function SubscriberLinkToJSON(value) {
41
- if (value == null) {
42
- return value;
43
- }
44
- return {
45
- 'href': value['href'],
46
- 'id': value['id'],
47
- };
48
- }
49
- exports.SubscriberLinkToJSON = SubscriberLinkToJSON;
@@ -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 { 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;
@@ -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.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;
@@ -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;