@lcdp/api-react-rest-client 2.14.3-LDS-5033-monolith-proposal-user-portal-i.18779910469 → 2.14.3-develop.18489802587
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/package.json +1 -1
- package/subscription/src/models/Subscription.d.ts +3 -40
- package/subscription/src/models/Subscription.js +4 -27
- package/subscription/src/models/index.d.ts +0 -1
- package/subscription/src/models/index.js +0 -1
- package/third-party/src/models/ThirdPartyLinkCreationParameters.d.ts +0 -1
- package/third-party/src/models/ThirdPartyLinkCreationParameters.js +1 -2
- package/subscription/src/models/SubscriptionStatus.d.ts +0 -39
- package/subscription/src/models/SubscriptionStatus.js +0 -62
|
@@ -38,12 +38,12 @@ export declare class SearchInvoiceApi extends runtime.BaseAPI {
|
|
|
38
38
|
*/
|
|
39
39
|
getInvoice(requestParameters: GetInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.BlobWithMeta>;
|
|
40
40
|
/**
|
|
41
|
-
* Allow to get invoices. Currently, invoiceType supported values : - SERVICE - EXTERNAL
|
|
41
|
+
* Allow to get invoices. Currently, invoiceType supported values : - SERVICE - SUBSCRIPTION - EXTERNAL
|
|
42
42
|
* Get invoices for service
|
|
43
43
|
*/
|
|
44
44
|
getInvoicesRaw(requestParameters: GetInvoicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedInvoices | runtime.BlobWithMeta>>;
|
|
45
45
|
/**
|
|
46
|
-
* Allow to get invoices. Currently, invoiceType supported values : - SERVICE - EXTERNAL
|
|
46
|
+
* Allow to get invoices. Currently, invoiceType supported values : - SERVICE - SUBSCRIPTION - EXTERNAL
|
|
47
47
|
* Get invoices for service
|
|
48
48
|
*/
|
|
49
49
|
getInvoices(requestParameters: GetInvoicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedInvoices | runtime.BlobWithMeta>;
|
|
@@ -163,7 +163,7 @@ var SearchInvoiceApi = /** @class */ (function (_super) {
|
|
|
163
163
|
});
|
|
164
164
|
};
|
|
165
165
|
/**
|
|
166
|
-
* Allow to get invoices. Currently, invoiceType supported values : - SERVICE - EXTERNAL
|
|
166
|
+
* Allow to get invoices. Currently, invoiceType supported values : - SERVICE - SUBSCRIPTION - EXTERNAL
|
|
167
167
|
* Get invoices for service
|
|
168
168
|
*/
|
|
169
169
|
SearchInvoiceApi.prototype.getInvoicesRaw = function (requestParameters, initOverrides) {
|
|
@@ -247,7 +247,7 @@ var SearchInvoiceApi = /** @class */ (function (_super) {
|
|
|
247
247
|
});
|
|
248
248
|
};
|
|
249
249
|
/**
|
|
250
|
-
* Allow to get invoices. Currently, invoiceType supported values : - SERVICE - EXTERNAL
|
|
250
|
+
* Allow to get invoices. Currently, invoiceType supported values : - SERVICE - SUBSCRIPTION - EXTERNAL
|
|
251
251
|
* Get invoices for service
|
|
252
252
|
*/
|
|
253
253
|
SearchInvoiceApi.prototype.getInvoices = function (requestParameters, initOverrides) {
|
|
@@ -18,6 +18,7 @@ export declare const InvoiceType: {
|
|
|
18
18
|
readonly COMMISSION_SELLER: "COMMISSION_SELLER";
|
|
19
19
|
readonly COMMISSION_CREDIT_NOTE_BUYER: "COMMISSION_CREDIT_NOTE_BUYER";
|
|
20
20
|
readonly COMMISSION_CREDIT_NOTE_SELLER: "COMMISSION_CREDIT_NOTE_SELLER";
|
|
21
|
+
readonly SUBSCRIPTION: "SUBSCRIPTION";
|
|
21
22
|
readonly SERVICE: "SERVICE";
|
|
22
23
|
readonly ORDER_BUYER: "ORDER_BUYER";
|
|
23
24
|
readonly ORDER_SELLER: "ORDER_SELLER";
|
|
@@ -23,6 +23,7 @@ exports.InvoiceType = {
|
|
|
23
23
|
COMMISSION_SELLER: 'COMMISSION_SELLER',
|
|
24
24
|
COMMISSION_CREDIT_NOTE_BUYER: 'COMMISSION_CREDIT_NOTE_BUYER',
|
|
25
25
|
COMMISSION_CREDIT_NOTE_SELLER: 'COMMISSION_CREDIT_NOTE_SELLER',
|
|
26
|
+
SUBSCRIPTION: 'SUBSCRIPTION',
|
|
26
27
|
SERVICE: 'SERVICE',
|
|
27
28
|
ORDER_BUYER: 'ORDER_BUYER',
|
|
28
29
|
ORDER_SELLER: 'ORDER_SELLER',
|
package/package.json
CHANGED
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { SubscriptionStatus } from './SubscriptionStatus';
|
|
13
12
|
/**
|
|
14
13
|
*
|
|
15
14
|
* @export
|
|
@@ -21,55 +20,19 @@ export interface Subscription {
|
|
|
21
20
|
* @type {string}
|
|
22
21
|
* @memberof Subscription
|
|
23
22
|
*/
|
|
24
|
-
|
|
23
|
+
family?: string;
|
|
25
24
|
/**
|
|
26
25
|
*
|
|
27
26
|
* @type {string}
|
|
28
27
|
* @memberof Subscription
|
|
29
28
|
*/
|
|
30
|
-
|
|
29
|
+
name?: string;
|
|
31
30
|
/**
|
|
32
31
|
*
|
|
33
32
|
* @type {string}
|
|
34
33
|
* @memberof Subscription
|
|
35
34
|
*/
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {SubscriptionStatus}
|
|
40
|
-
* @memberof Subscription
|
|
41
|
-
*/
|
|
42
|
-
status: SubscriptionStatus;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {Date}
|
|
46
|
-
* @memberof Subscription
|
|
47
|
-
*/
|
|
48
|
-
startedAt: Date;
|
|
49
|
-
/**
|
|
50
|
-
*
|
|
51
|
-
* @type {Date}
|
|
52
|
-
* @memberof Subscription
|
|
53
|
-
*/
|
|
54
|
-
nextBillingAt?: Date;
|
|
55
|
-
/**
|
|
56
|
-
*
|
|
57
|
-
* @type {Date}
|
|
58
|
-
* @memberof Subscription
|
|
59
|
-
*/
|
|
60
|
-
currentTermEnd?: Date;
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @type {Date}
|
|
64
|
-
* @memberof Subscription
|
|
65
|
-
*/
|
|
66
|
-
trialStart?: Date;
|
|
67
|
-
/**
|
|
68
|
-
*
|
|
69
|
-
* @type {Date}
|
|
70
|
-
* @memberof Subscription
|
|
71
|
-
*/
|
|
72
|
-
trialEnd?: Date;
|
|
35
|
+
status?: string;
|
|
73
36
|
}
|
|
74
37
|
/**
|
|
75
38
|
* Check if a given object implements the Subscription interface.
|
|
@@ -14,21 +14,10 @@
|
|
|
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");
|
|
18
17
|
/**
|
|
19
18
|
* Check if a given object implements the Subscription interface.
|
|
20
19
|
*/
|
|
21
20
|
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
21
|
return true;
|
|
33
22
|
}
|
|
34
23
|
exports.instanceOfSubscription = instanceOfSubscription;
|
|
@@ -41,15 +30,9 @@ function SubscriptionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
30
|
return json;
|
|
42
31
|
}
|
|
43
32
|
return {
|
|
44
|
-
'
|
|
45
|
-
'familyName': json['familyName'],
|
|
33
|
+
'family': json['family'],
|
|
46
34
|
'name': json['name'],
|
|
47
|
-
'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']),
|
|
35
|
+
'status': json['status'],
|
|
53
36
|
};
|
|
54
37
|
}
|
|
55
38
|
exports.SubscriptionFromJSONTyped = SubscriptionFromJSONTyped;
|
|
@@ -58,15 +41,9 @@ function SubscriptionToJSON(value) {
|
|
|
58
41
|
return value;
|
|
59
42
|
}
|
|
60
43
|
return {
|
|
61
|
-
'
|
|
62
|
-
'familyName': value['familyName'],
|
|
44
|
+
'family': value['family'],
|
|
63
45
|
'name': value['name'],
|
|
64
|
-
'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(),
|
|
46
|
+
'status': value['status'],
|
|
70
47
|
};
|
|
71
48
|
}
|
|
72
49
|
exports.SubscriptionToJSON = SubscriptionToJSON;
|
|
@@ -37,7 +37,6 @@ export declare const ThirdPartyLinkCreationParametersSlugEnum: {
|
|
|
37
37
|
readonly SUBSCRIPTIONS_PHARMAIDE_USER_PRICING_PAGE: "SUBSCRIPTIONS_PHARMAIDE_USER_PRICING_PAGE";
|
|
38
38
|
readonly SUBSCRIPTIONS_LOGISTIC_USER_PRICING_PAGE: "SUBSCRIPTIONS_LOGISTIC_USER_PRICING_PAGE";
|
|
39
39
|
readonly SUBSCRIPTIONS_USER_PORTAL: "SUBSCRIPTIONS_USER_PORTAL";
|
|
40
|
-
readonly SUBSCRIPTIONS_USER_PORTAL_INVOICES: "SUBSCRIPTIONS_USER_PORTAL_INVOICES";
|
|
41
40
|
};
|
|
42
41
|
export declare type ThirdPartyLinkCreationParametersSlugEnum = typeof ThirdPartyLinkCreationParametersSlugEnum[keyof typeof ThirdPartyLinkCreationParametersSlugEnum];
|
|
43
42
|
/**
|
|
@@ -22,8 +22,7 @@ exports.ThirdPartyLinkCreationParametersSlugEnum = {
|
|
|
22
22
|
BADGES_LABORATORY_STATISTICS_DASHBOARD: 'BADGES_LABORATORY_STATISTICS_DASHBOARD',
|
|
23
23
|
SUBSCRIPTIONS_PHARMAIDE_USER_PRICING_PAGE: 'SUBSCRIPTIONS_PHARMAIDE_USER_PRICING_PAGE',
|
|
24
24
|
SUBSCRIPTIONS_LOGISTIC_USER_PRICING_PAGE: 'SUBSCRIPTIONS_LOGISTIC_USER_PRICING_PAGE',
|
|
25
|
-
SUBSCRIPTIONS_USER_PORTAL: 'SUBSCRIPTIONS_USER_PORTAL'
|
|
26
|
-
SUBSCRIPTIONS_USER_PORTAL_INVOICES: 'SUBSCRIPTIONS_USER_PORTAL_INVOICES'
|
|
25
|
+
SUBSCRIPTIONS_USER_PORTAL: 'SUBSCRIPTIONS_USER_PORTAL'
|
|
27
26
|
};
|
|
28
27
|
/**
|
|
29
28
|
* Check if a given object implements the ThirdPartyLinkCreationParameters interface.
|
|
@@ -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
|
-
/**
|
|
13
|
-
* Status of the subscription
|
|
14
|
-
* - FUTURE: The subscription is scheduled to start at a future date.
|
|
15
|
-
* - IN_TRIAL: The subscription is in trial.
|
|
16
|
-
* - ACTIVE: The subscription is active and will be charged for automatically based on the items in it.
|
|
17
|
-
* - NON_RENEWING: The subscription will be canceled at the end of the current term.
|
|
18
|
-
* - PAUSED: The subscription is paused. The subscription will not renew while in this state.
|
|
19
|
-
* - CANCELLED: The subscription has been canceled and is no longer in service.
|
|
20
|
-
* - TRANSFERRED: The subscription has been transferred to another business entity within the organization.
|
|
21
|
-
* - _UNKNOWN: Indicates unexpected value for this enum.
|
|
22
|
-
*
|
|
23
|
-
* @export
|
|
24
|
-
*/
|
|
25
|
-
export declare const SubscriptionStatus: {
|
|
26
|
-
readonly FUTURE: "FUTURE";
|
|
27
|
-
readonly IN_TRIAL: "IN_TRIAL";
|
|
28
|
-
readonly ACTIVE: "ACTIVE";
|
|
29
|
-
readonly NON_RENEWING: "NON_RENEWING";
|
|
30
|
-
readonly PAUSED: "PAUSED";
|
|
31
|
-
readonly CANCELLED: "CANCELLED";
|
|
32
|
-
readonly TRANSFERRED: "TRANSFERRED";
|
|
33
|
-
readonly UNKNOWN: "_UNKNOWN";
|
|
34
|
-
};
|
|
35
|
-
export declare type SubscriptionStatus = typeof SubscriptionStatus[keyof typeof SubscriptionStatus];
|
|
36
|
-
export declare function instanceOfSubscriptionStatus(value: any): boolean;
|
|
37
|
-
export declare function SubscriptionStatusFromJSON(json: any): SubscriptionStatus;
|
|
38
|
-
export declare function SubscriptionStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionStatus;
|
|
39
|
-
export declare function SubscriptionStatusToJSON(value?: SubscriptionStatus | null): any;
|
|
@@ -1,62 +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.SubscriptionStatusToJSON = exports.SubscriptionStatusFromJSONTyped = exports.SubscriptionStatusFromJSON = exports.instanceOfSubscriptionStatus = exports.SubscriptionStatus = void 0;
|
|
17
|
-
/**
|
|
18
|
-
* Status of the subscription
|
|
19
|
-
* - FUTURE: The subscription is scheduled to start at a future date.
|
|
20
|
-
* - IN_TRIAL: The subscription is in trial.
|
|
21
|
-
* - ACTIVE: The subscription is active and will be charged for automatically based on the items in it.
|
|
22
|
-
* - NON_RENEWING: The subscription will be canceled at the end of the current term.
|
|
23
|
-
* - PAUSED: The subscription is paused. The subscription will not renew while in this state.
|
|
24
|
-
* - CANCELLED: The subscription has been canceled and is no longer in service.
|
|
25
|
-
* - TRANSFERRED: The subscription has been transferred to another business entity within the organization.
|
|
26
|
-
* - _UNKNOWN: Indicates unexpected value for this enum.
|
|
27
|
-
*
|
|
28
|
-
* @export
|
|
29
|
-
*/
|
|
30
|
-
exports.SubscriptionStatus = {
|
|
31
|
-
FUTURE: 'FUTURE',
|
|
32
|
-
IN_TRIAL: 'IN_TRIAL',
|
|
33
|
-
ACTIVE: 'ACTIVE',
|
|
34
|
-
NON_RENEWING: 'NON_RENEWING',
|
|
35
|
-
PAUSED: 'PAUSED',
|
|
36
|
-
CANCELLED: 'CANCELLED',
|
|
37
|
-
TRANSFERRED: 'TRANSFERRED',
|
|
38
|
-
UNKNOWN: '_UNKNOWN'
|
|
39
|
-
};
|
|
40
|
-
function instanceOfSubscriptionStatus(value) {
|
|
41
|
-
for (var key in exports.SubscriptionStatus) {
|
|
42
|
-
if (Object.prototype.hasOwnProperty.call(exports.SubscriptionStatus, key)) {
|
|
43
|
-
if (exports.SubscriptionStatus[key] === value) {
|
|
44
|
-
return true;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
return false;
|
|
49
|
-
}
|
|
50
|
-
exports.instanceOfSubscriptionStatus = instanceOfSubscriptionStatus;
|
|
51
|
-
function SubscriptionStatusFromJSON(json) {
|
|
52
|
-
return SubscriptionStatusFromJSONTyped(json, false);
|
|
53
|
-
}
|
|
54
|
-
exports.SubscriptionStatusFromJSON = SubscriptionStatusFromJSON;
|
|
55
|
-
function SubscriptionStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
56
|
-
return json;
|
|
57
|
-
}
|
|
58
|
-
exports.SubscriptionStatusFromJSONTyped = SubscriptionStatusFromJSONTyped;
|
|
59
|
-
function SubscriptionStatusToJSON(value) {
|
|
60
|
-
return value;
|
|
61
|
-
}
|
|
62
|
-
exports.SubscriptionStatusToJSON = SubscriptionStatusToJSON;
|