@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.
Files changed (83) hide show
  1. package/invoice/src/apis/SearchInvoiceApi.d.ts +2 -2
  2. package/invoice/src/apis/SearchInvoiceApi.js +2 -2
  3. package/invoice/src/models/InvoiceType.d.ts +1 -0
  4. package/invoice/src/models/InvoiceType.js +1 -0
  5. package/notification/src/models/NotificationTypeId.d.ts +2 -1
  6. package/notification/src/models/NotificationTypeId.js +2 -1
  7. package/package.json +1 -1
  8. package/rfx/src/apis/index.d.ts +0 -1
  9. package/rfx/src/apis/index.js +0 -1
  10. package/rfx/src/models/index.d.ts +0 -1
  11. package/rfx/src/models/index.js +0 -1
  12. package/subscription/src/apis/ManageSubscriptionApi.d.ts +56 -0
  13. package/subscription/src/apis/ManageSubscriptionApi.js +315 -0
  14. package/subscription/src/apis/ManageSubscriptionPlanApi.d.ts +30 -0
  15. package/{rfx/src/apis/ManageRffApi.js → subscription/src/apis/ManageSubscriptionPlanApi.js} +39 -21
  16. package/subscription/src/apis/SearchSubscriptionApi.d.ts +53 -0
  17. package/subscription/src/apis/SearchSubscriptionApi.js +208 -0
  18. package/subscription/src/apis/SearchSubscriptionPlanApi.d.ts +49 -0
  19. package/subscription/src/apis/SearchSubscriptionPlanApi.js +249 -0
  20. package/subscription/src/apis/SearchSubscriptionPlanFeatureApi.d.ts +26 -0
  21. package/subscription/src/apis/{SearchSubscriptionsApi.js → SearchSubscriptionPlanFeatureApi.js} +13 -19
  22. package/subscription/src/apis/index.d.ts +5 -1
  23. package/subscription/src/apis/index.js +5 -1
  24. package/subscription/src/models/HttpLink.d.ts +31 -0
  25. package/subscription/src/models/HttpLink.js +47 -0
  26. package/subscription/src/models/PaginatedObject.d.ts +32 -0
  27. package/subscription/src/models/PaginatedObject.js +48 -0
  28. package/subscription/src/models/PaginatedSubscriptions.d.ts +39 -0
  29. package/subscription/src/models/PaginatedSubscriptions.js +51 -0
  30. package/subscription/src/models/PagingMetadata.d.ts +49 -0
  31. package/subscription/src/models/PagingMetadata.js +55 -0
  32. package/{chargebee-hook → subscription}/src/models/RestError.d.ts +1 -1
  33. package/{chargebee-hook → subscription}/src/models/RestError.js +1 -1
  34. package/subscription/src/models/SubscriberLink.d.ts +37 -0
  35. package/subscription/src/models/SubscriberLink.js +49 -0
  36. package/subscription/src/models/Subscription.d.ts +18 -23
  37. package/subscription/src/models/Subscription.js +19 -29
  38. package/subscription/src/models/SubscriptionCreationParameters.d.ts +44 -0
  39. package/subscription/src/models/SubscriptionCreationParameters.js +56 -0
  40. package/subscription/src/models/SubscriptionPlan.d.ts +69 -0
  41. package/subscription/src/models/SubscriptionPlan.js +59 -0
  42. package/subscription/src/models/SubscriptionPlanFeature.d.ts +44 -0
  43. package/subscription/src/models/SubscriptionPlanFeature.js +50 -0
  44. package/subscription/src/models/SubscriptionPlanFeatureId.d.ts +26 -0
  45. package/subscription/src/models/SubscriptionPlanFeatureId.js +49 -0
  46. package/subscription/src/models/SubscriptionPlanId.d.ts +25 -0
  47. package/subscription/src/models/SubscriptionPlanId.js +48 -0
  48. package/subscription/src/models/SubscriptionPlanLink.d.ts +38 -0
  49. package/subscription/src/models/SubscriptionPlanLink.js +50 -0
  50. package/subscription/src/models/SubscriptionPlanUpdateParameters.d.ts +62 -0
  51. package/subscription/src/models/SubscriptionPlanUpdateParameters.js +56 -0
  52. package/subscription/src/models/SubscriptionUpdateParameters.d.ts +62 -0
  53. package/subscription/src/models/SubscriptionUpdateParameters.js +57 -0
  54. package/subscription/src/models/index.d.ts +14 -1
  55. package/subscription/src/models/index.js +14 -1
  56. package/third-party/src/models/ThirdPartyLinkCreationParameters.d.ts +2 -5
  57. package/third-party/src/models/ThirdPartyLinkCreationParameters.js +2 -5
  58. package/user/src/models/NotificationTypeId.d.ts +2 -1
  59. package/user/src/models/NotificationTypeId.js +2 -1
  60. package/user/src/models/OffisanteStatus.d.ts +1 -3
  61. package/user/src/models/OffisanteStatus.js +2 -4
  62. package/user/src/models/User.d.ts +0 -8
  63. package/user/src/models/User.js +0 -2
  64. package/chargebee-hook/index.d.ts +0 -1
  65. package/chargebee-hook/index.js +0 -17
  66. package/chargebee-hook/src/apis/ChargebeeHookApi.d.ts +0 -31
  67. package/chargebee-hook/src/apis/ChargebeeHookApi.js +0 -134
  68. package/chargebee-hook/src/apis/index.d.ts +0 -1
  69. package/chargebee-hook/src/apis/index.js +0 -19
  70. package/chargebee-hook/src/index.d.ts +0 -3
  71. package/chargebee-hook/src/index.js +0 -21
  72. package/chargebee-hook/src/models/HookRequest.d.ts +0 -85
  73. package/chargebee-hook/src/models/HookRequest.js +0 -67
  74. package/chargebee-hook/src/models/index.d.ts +0 -2
  75. package/chargebee-hook/src/models/index.js +0 -20
  76. package/chargebee-hook/src/runtime.d.ts +0 -190
  77. package/chargebee-hook/src/runtime.js +0 -598
  78. package/rfx/src/apis/ManageRffApi.d.ts +0 -29
  79. package/rfx/src/models/RffCreationParameters.d.ts +0 -37
  80. package/rfx/src/models/RffCreationParameters.js +0 -51
  81. package/subscription/src/apis/SearchSubscriptionsApi.d.ts +0 -29
  82. package/subscription/src/models/SubscriptionStatus.d.ts +0 -39
  83. 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 SubscriptionStatus_1 = require("./SubscriptionStatus");
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
- 'familyId': json['familyId'],
45
- 'familyName': json['familyName'],
46
- 'name': json['name'],
47
- 'status': (json['status'] === null || json['status'] === undefined) ? json['status'] : (0, SubscriptionStatus_1.SubscriptionStatusFromJSON)(json['status']),
48
- 'startedAt': (json['startedAt'] === null || json['startedAt'] === undefined) ? json['startedAt'] : new Date(json['startedAt']),
49
- 'nextBillingAt': (json['nextBillingAt'] === null || json['nextBillingAt'] === undefined) ? json['nextBillingAt'] : new Date(json['nextBillingAt']),
50
- 'currentTermEnd': (json['currentTermEnd'] === null || json['currentTermEnd'] === undefined) ? json['currentTermEnd'] : new Date(json['currentTermEnd']),
51
- 'trialStart': (json['trialStart'] === null || json['trialStart'] === undefined) ? json['trialStart'] : new Date(json['trialStart']),
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
- 'familyId': value['familyId'],
62
- 'familyName': value['familyName'],
63
- 'name': value['name'],
64
- 'status': (0, SubscriptionStatus_1.SubscriptionStatusToJSON)(value['status']),
65
- 'startedAt': (value['startedAt'] === null || value['startedAt'] === undefined) ? value['startedAt'] : (value['startedAt']).toISOString(),
66
- 'nextBillingAt': (value['nextBillingAt'] === null || value['nextBillingAt'] === undefined) ? value['nextBillingAt'] : (value['nextBillingAt']).toISOString(),
67
- 'currentTermEnd': (value['currentTermEnd'] === null || value['currentTermEnd'] === undefined) ? value['currentTermEnd'] : (value['currentTermEnd']).toISOString(),
68
- 'trialStart': (value['trialStart'] === null || value['trialStart'] === undefined) ? value['trialStart'] : (value['trialStart']).toISOString(),
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;