@lcdp/api-react-rest-client 3.0.2-develop.20104901356 → 3.0.2-develop.20373225077

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 (35) hide show
  1. package/banking-operation/src/apis/SearchLevyApi.d.ts +10 -7
  2. package/banking-operation/src/apis/SearchLevyApi.js +13 -8
  3. package/banking-operation/src/models/Levy.d.ts +12 -6
  4. package/banking-operation/src/models/Levy.js +8 -10
  5. package/banking-operation/src/models/LevyCreationParameters.d.ts +3 -3
  6. package/banking-operation/src/models/LevyCreationParameters.js +4 -4
  7. package/banking-operation/src/models/LevyUpdateParameters.d.ts +3 -3
  8. package/banking-operation/src/models/LevyUpdateParameters.js +3 -3
  9. package/banking-operation/src/models/ManualCheckEnum.d.ts +24 -0
  10. package/banking-operation/src/models/ManualCheckEnum.js +47 -0
  11. package/banking-operation/src/models/Transaction.d.ts +5 -14
  12. package/banking-operation/src/models/Transaction.js +8 -12
  13. package/banking-operation/src/models/TransactionStatus.d.ts +26 -0
  14. package/banking-operation/src/models/TransactionStatus.js +49 -0
  15. package/banking-operation/src/models/index.d.ts +2 -3
  16. package/banking-operation/src/models/index.js +2 -3
  17. package/package.json +1 -1
  18. package/third-party/src/models/ThirdPartyLinkCreationParameters.d.ts +1 -0
  19. package/third-party/src/models/ThirdPartyLinkCreationParameters.js +2 -1
  20. package/user/src/models/MangopayConsent.d.ts +24 -0
  21. package/user/src/models/MangopayConsent.js +47 -0
  22. package/user/src/models/User.d.ts +7 -0
  23. package/user/src/models/User.js +3 -0
  24. package/user/src/models/UserMangopayConsent.d.ts +38 -0
  25. package/user/src/models/UserMangopayConsent.js +48 -0
  26. package/user/src/models/UserUpdateParameters.d.ts +6 -0
  27. package/user/src/models/UserUpdateParameters.js +2 -0
  28. package/user/src/models/index.d.ts +2 -0
  29. package/user/src/models/index.js +2 -0
  30. package/banking-operation/src/models/LevyPayment.d.ts +0 -38
  31. package/banking-operation/src/models/LevyPayment.js +0 -48
  32. package/banking-operation/src/models/LevyPaymentStatus.d.ts +0 -25
  33. package/banking-operation/src/models/LevyPaymentStatus.js +0 -48
  34. package/banking-operation/src/models/LevyStatus.d.ts +0 -24
  35. package/banking-operation/src/models/LevyStatus.js +0 -47
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { Levy, LevyPaymentStatus, LevyStatus, PaginatedLevies } from '../models/index';
13
+ import type { Levy, ManualCheckEnum, PaginatedLevies, TransactionStatus } from '../models/index';
14
14
  export interface GetLeviesRequest {
15
15
  q?: string;
16
16
  createdAtGte?: Date;
@@ -18,8 +18,9 @@ export interface GetLeviesRequest {
18
18
  idEq?: Array<number>;
19
19
  debitedUserEq?: Array<number>;
20
20
  debitedFundsEq?: number;
21
- paymentStEq?: Array<LevyPaymentStatus>;
22
- stEq?: Array<LevyStatus>;
21
+ payinStEq?: Array<TransactionStatus>;
22
+ transferStEq?: Array<TransactionStatus>;
23
+ manualCheckEq?: Array<ManualCheckEnum>;
23
24
  orderBy?: GetLeviesOrderByEnum;
24
25
  p?: number;
25
26
  pp?: number;
@@ -62,10 +63,12 @@ export declare const GetLeviesOrderByEnum: {
62
63
  readonly FEES_DESC: "FEES:desc";
63
64
  readonly TAG_ASC: "TAG:asc";
64
65
  readonly TAG_DESC: "TAG:desc";
65
- readonly STATUS_ASC: "STATUS:asc";
66
- readonly STATUS_DESC: "STATUS:desc";
67
- readonly PAYMENT_STATUS_ASC: "PAYMENT_STATUS:asc";
68
- readonly PAYMENT_STATUS_DESC: "PAYMENT_STATUS:desc";
66
+ readonly MANUAL_CHECK_ASC: "MANUAL_CHECK:asc";
67
+ readonly MANUAL_CHECK_DESC: "MANUAL_CHECK:desc";
68
+ readonly PAYIN_STATUS_ASC: "PAYIN_STATUS:asc";
69
+ readonly PAYIN_STATUS_DESC: "PAYIN_STATUS:desc";
70
+ readonly TRANSFER_STATUS_ASC: "TRANSFER_STATUS:asc";
71
+ readonly TRANSFER_STATUS_DESC: "TRANSFER_STATUS:desc";
69
72
  readonly CREATED_AT_ASC: "CREATED_AT:asc";
70
73
  readonly CREATED_AT_DESC: "CREATED_AT:desc";
71
74
  };
@@ -104,11 +104,14 @@ var SearchLevyApi = /** @class */ (function (_super) {
104
104
  if (requestParameters['debitedFundsEq'] != null) {
105
105
  queryParameters['debitedFunds[eq]'] = requestParameters['debitedFundsEq'];
106
106
  }
107
- if (requestParameters['paymentStEq'] != null) {
108
- queryParameters['paymentSt[eq]'] = requestParameters['paymentStEq'];
107
+ if (requestParameters['payinStEq'] != null) {
108
+ queryParameters['payinSt[eq]'] = requestParameters['payinStEq'];
109
109
  }
110
- if (requestParameters['stEq'] != null) {
111
- queryParameters['st[eq]'] = requestParameters['stEq'];
110
+ if (requestParameters['transferStEq'] != null) {
111
+ queryParameters['transferSt[eq]'] = requestParameters['transferStEq'];
112
+ }
113
+ if (requestParameters['manualCheckEq'] != null) {
114
+ queryParameters['manualCheck[eq]'] = requestParameters['manualCheckEq'];
112
115
  }
113
116
  if (requestParameters['orderBy'] != null) {
114
117
  queryParameters['orderBy'] = requestParameters['orderBy'];
@@ -281,10 +284,12 @@ exports.GetLeviesOrderByEnum = {
281
284
  FEES_DESC: 'FEES:desc',
282
285
  TAG_ASC: 'TAG:asc',
283
286
  TAG_DESC: 'TAG:desc',
284
- STATUS_ASC: 'STATUS:asc',
285
- STATUS_DESC: 'STATUS:desc',
286
- PAYMENT_STATUS_ASC: 'PAYMENT_STATUS:asc',
287
- PAYMENT_STATUS_DESC: 'PAYMENT_STATUS:desc',
287
+ MANUAL_CHECK_ASC: 'MANUAL_CHECK:asc',
288
+ MANUAL_CHECK_DESC: 'MANUAL_CHECK:desc',
289
+ PAYIN_STATUS_ASC: 'PAYIN_STATUS:asc',
290
+ PAYIN_STATUS_DESC: 'PAYIN_STATUS:desc',
291
+ TRANSFER_STATUS_ASC: 'TRANSFER_STATUS:asc',
292
+ TRANSFER_STATUS_DESC: 'TRANSFER_STATUS:desc',
288
293
  CREATED_AT_ASC: 'CREATED_AT:asc',
289
294
  CREATED_AT_DESC: 'CREATED_AT:desc'
290
295
  };
@@ -10,8 +10,8 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { UserLink } from './UserLink';
13
- import type { LevyStatus } from './LevyStatus';
14
- import type { LevyPayment } from './LevyPayment';
13
+ import type { Transaction } from './Transaction';
14
+ import type { ManualCheckEnum } from './ManualCheckEnum';
15
15
  /**
16
16
  *
17
17
  * @export
@@ -38,16 +38,22 @@ export interface Levy {
38
38
  creditedUser: UserLink;
39
39
  /**
40
40
  *
41
- * @type {LevyPayment}
41
+ * @type {Transaction}
42
42
  * @memberof Levy
43
43
  */
44
- payment: LevyPayment;
44
+ payin?: Transaction | null;
45
45
  /**
46
46
  *
47
- * @type {LevyStatus}
47
+ * @type {Transaction}
48
48
  * @memberof Levy
49
49
  */
50
- status: LevyStatus;
50
+ transfer?: Transaction | null;
51
+ /**
52
+ *
53
+ * @type {ManualCheckEnum}
54
+ * @memberof Levy
55
+ */
56
+ manualCheck?: ManualCheckEnum;
51
57
  /**
52
58
  * Comment about Levy
53
59
  * @type {string}
@@ -15,8 +15,8 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.LevyToJSON = exports.LevyFromJSONTyped = exports.LevyFromJSON = exports.instanceOfLevy = void 0;
17
17
  var UserLink_1 = require("./UserLink");
18
- var LevyStatus_1 = require("./LevyStatus");
19
- var LevyPayment_1 = require("./LevyPayment");
18
+ var Transaction_1 = require("./Transaction");
19
+ var ManualCheckEnum_1 = require("./ManualCheckEnum");
20
20
  /**
21
21
  * Check if a given object implements the Levy interface.
22
22
  */
@@ -27,10 +27,6 @@ function instanceOfLevy(value) {
27
27
  return false;
28
28
  if (!('creditedUser' in value) || value['creditedUser'] === undefined)
29
29
  return false;
30
- if (!('payment' in value) || value['payment'] === undefined)
31
- return false;
32
- if (!('status' in value) || value['status'] === undefined)
33
- return false;
34
30
  if (!('fees' in value) || value['fees'] === undefined)
35
31
  return false;
36
32
  if (!('debitedFunds' in value) || value['debitedFunds'] === undefined)
@@ -50,8 +46,9 @@ function LevyFromJSONTyped(json, ignoreDiscriminator) {
50
46
  'id': json['id'],
51
47
  'debitedUser': (json['debitedUser'] === null || json['debitedUser'] === undefined) ? json['debitedUser'] : (0, UserLink_1.UserLinkFromJSON)(json['debitedUser']),
52
48
  'creditedUser': (json['creditedUser'] === null || json['creditedUser'] === undefined) ? json['creditedUser'] : (0, UserLink_1.UserLinkFromJSON)(json['creditedUser']),
53
- 'payment': (json['payment'] === null || json['payment'] === undefined) ? json['payment'] : (0, LevyPayment_1.LevyPaymentFromJSON)(json['payment']),
54
- 'status': (json['status'] === null || json['status'] === undefined) ? json['status'] : (0, LevyStatus_1.LevyStatusFromJSON)(json['status']),
49
+ 'payin': (json['payin'] === null || json['payin'] === undefined) ? json['payin'] : (0, Transaction_1.TransactionFromJSON)(json['payin']),
50
+ 'transfer': (json['transfer'] === null || json['transfer'] === undefined) ? json['transfer'] : (0, Transaction_1.TransactionFromJSON)(json['transfer']),
51
+ 'manualCheck': (json['manualCheck'] === null || json['manualCheck'] === undefined) ? json['manualCheck'] : (0, ManualCheckEnum_1.ManualCheckEnumFromJSON)(json['manualCheck']),
55
52
  'comment': json['comment'],
56
53
  'tag': json['tag'],
57
54
  'fees': json['fees'],
@@ -68,8 +65,9 @@ function LevyToJSON(value) {
68
65
  'id': value['id'],
69
66
  'debitedUser': (0, UserLink_1.UserLinkToJSON)(value['debitedUser']),
70
67
  'creditedUser': (0, UserLink_1.UserLinkToJSON)(value['creditedUser']),
71
- 'payment': (0, LevyPayment_1.LevyPaymentToJSON)(value['payment']),
72
- 'status': (0, LevyStatus_1.LevyStatusToJSON)(value['status']),
68
+ 'payin': (0, Transaction_1.TransactionToJSON)(value['payin']),
69
+ 'transfer': (0, Transaction_1.TransactionToJSON)(value['transfer']),
70
+ 'manualCheck': (0, ManualCheckEnum_1.ManualCheckEnumToJSON)(value['manualCheck']),
73
71
  'comment': value['comment'],
74
72
  'tag': value['tag'],
75
73
  'fees': value['fees'],
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { LevyStatus } from './LevyStatus';
12
+ import type { ManualCheckEnum } from './ManualCheckEnum';
13
13
  /**
14
14
  *
15
15
  * @export
@@ -42,10 +42,10 @@ export interface LevyCreationParameters {
42
42
  tag: string;
43
43
  /**
44
44
  *
45
- * @type {LevyStatus}
45
+ * @type {ManualCheckEnum}
46
46
  * @memberof LevyCreationParameters
47
47
  */
48
- status: LevyStatus;
48
+ manualCheck: ManualCheckEnum;
49
49
  /**
50
50
  *
51
51
  * @type {string}
@@ -14,7 +14,7 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.LevyCreationParametersToJSON = exports.LevyCreationParametersFromJSONTyped = exports.LevyCreationParametersFromJSON = exports.instanceOfLevyCreationParameters = void 0;
17
- var LevyStatus_1 = require("./LevyStatus");
17
+ var ManualCheckEnum_1 = require("./ManualCheckEnum");
18
18
  /**
19
19
  * Check if a given object implements the LevyCreationParameters interface.
20
20
  */
@@ -27,7 +27,7 @@ function instanceOfLevyCreationParameters(value) {
27
27
  return false;
28
28
  if (!('tag' in value) || value['tag'] === undefined)
29
29
  return false;
30
- if (!('status' in value) || value['status'] === undefined)
30
+ if (!('manualCheck' in value) || value['manualCheck'] === undefined)
31
31
  return false;
32
32
  return true;
33
33
  }
@@ -45,7 +45,7 @@ function LevyCreationParametersFromJSONTyped(json, ignoreDiscriminator) {
45
45
  'debitedFunds': json['debitedFunds'],
46
46
  'fees': json['fees'],
47
47
  'tag': json['tag'],
48
- 'status': (json['status'] === null || json['status'] === undefined) ? json['status'] : (0, LevyStatus_1.LevyStatusFromJSON)(json['status']),
48
+ 'manualCheck': (json['manualCheck'] === null || json['manualCheck'] === undefined) ? json['manualCheck'] : (0, ManualCheckEnum_1.ManualCheckEnumFromJSON)(json['manualCheck']),
49
49
  'comment': json['comment'],
50
50
  };
51
51
  }
@@ -59,7 +59,7 @@ function LevyCreationParametersToJSON(value) {
59
59
  'debitedFunds': value['debitedFunds'],
60
60
  'fees': value['fees'],
61
61
  'tag': value['tag'],
62
- 'status': (0, LevyStatus_1.LevyStatusToJSON)(value['status']),
62
+ 'manualCheck': (0, ManualCheckEnum_1.ManualCheckEnumToJSON)(value['manualCheck']),
63
63
  'comment': value['comment'],
64
64
  };
65
65
  }
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { LevyStatus } from './LevyStatus';
12
+ import type { ManualCheckEnum } from './ManualCheckEnum';
13
13
  /**
14
14
  *
15
15
  * @export
@@ -18,10 +18,10 @@ import type { LevyStatus } from './LevyStatus';
18
18
  export interface LevyUpdateParameters {
19
19
  /**
20
20
  *
21
- * @type {LevyStatus}
21
+ * @type {ManualCheckEnum}
22
22
  * @memberof LevyUpdateParameters
23
23
  */
24
- status?: LevyStatus;
24
+ manualCheck?: ManualCheckEnum;
25
25
  /**
26
26
  *
27
27
  * @type {string}
@@ -14,7 +14,7 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.LevyUpdateParametersToJSON = exports.LevyUpdateParametersFromJSONTyped = exports.LevyUpdateParametersFromJSON = exports.instanceOfLevyUpdateParameters = void 0;
17
- var LevyStatus_1 = require("./LevyStatus");
17
+ var ManualCheckEnum_1 = require("./ManualCheckEnum");
18
18
  /**
19
19
  * Check if a given object implements the LevyUpdateParameters interface.
20
20
  */
@@ -31,7 +31,7 @@ function LevyUpdateParametersFromJSONTyped(json, ignoreDiscriminator) {
31
31
  return json;
32
32
  }
33
33
  return {
34
- 'status': (json['status'] === null || json['status'] === undefined) ? json['status'] : (0, LevyStatus_1.LevyStatusFromJSON)(json['status']),
34
+ 'manualCheck': (json['manualCheck'] === null || json['manualCheck'] === undefined) ? json['manualCheck'] : (0, ManualCheckEnum_1.ManualCheckEnumFromJSON)(json['manualCheck']),
35
35
  'comment': json['comment'],
36
36
  };
37
37
  }
@@ -41,7 +41,7 @@ function LevyUpdateParametersToJSON(value) {
41
41
  return value;
42
42
  }
43
43
  return {
44
- 'status': (0, LevyStatus_1.LevyStatusToJSON)(value['status']),
44
+ 'manualCheck': (0, ManualCheckEnum_1.ManualCheckEnumToJSON)(value['manualCheck']),
45
45
  'comment': value['comment'],
46
46
  };
47
47
  }
@@ -0,0 +1,24 @@
1
+ /**
2
+ * lcdp-monolith-service
3
+ * This is the REST API of LCDP Levy
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
+ * DONE if operator have done manual processing of the levy, NOT_DONE if not
14
+ * @export
15
+ */
16
+ export declare const ManualCheckEnum: {
17
+ readonly DONE: "DONE";
18
+ readonly NOT_DONE: "NOT_DONE";
19
+ };
20
+ export declare type ManualCheckEnum = typeof ManualCheckEnum[keyof typeof ManualCheckEnum];
21
+ export declare function instanceOfManualCheckEnum(value: any): boolean;
22
+ export declare function ManualCheckEnumFromJSON(json: any): ManualCheckEnum;
23
+ export declare function ManualCheckEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ManualCheckEnum;
24
+ export declare function ManualCheckEnumToJSON(value?: ManualCheckEnum | null): any;
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * lcdp-monolith-service
6
+ * This is the REST API of LCDP Levy
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.ManualCheckEnumToJSON = exports.ManualCheckEnumFromJSONTyped = exports.ManualCheckEnumFromJSON = exports.instanceOfManualCheckEnum = exports.ManualCheckEnum = void 0;
17
+ /**
18
+ * DONE if operator have done manual processing of the levy, NOT_DONE if not
19
+ * @export
20
+ */
21
+ exports.ManualCheckEnum = {
22
+ DONE: 'DONE',
23
+ NOT_DONE: 'NOT_DONE'
24
+ };
25
+ function instanceOfManualCheckEnum(value) {
26
+ for (var key in exports.ManualCheckEnum) {
27
+ if (Object.prototype.hasOwnProperty.call(exports.ManualCheckEnum, key)) {
28
+ if (exports.ManualCheckEnum[key] === value) {
29
+ return true;
30
+ }
31
+ }
32
+ }
33
+ return false;
34
+ }
35
+ exports.instanceOfManualCheckEnum = instanceOfManualCheckEnum;
36
+ function ManualCheckEnumFromJSON(json) {
37
+ return ManualCheckEnumFromJSONTyped(json, false);
38
+ }
39
+ exports.ManualCheckEnumFromJSON = ManualCheckEnumFromJSON;
40
+ function ManualCheckEnumFromJSONTyped(json, ignoreDiscriminator) {
41
+ return json;
42
+ }
43
+ exports.ManualCheckEnumFromJSONTyped = ManualCheckEnumFromJSONTyped;
44
+ function ManualCheckEnumToJSON(value) {
45
+ return value;
46
+ }
47
+ exports.ManualCheckEnumToJSON = ManualCheckEnumToJSON;
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { TransactionStatus } from './TransactionStatus';
12
13
  import type { TransactionMangopayTarget } from './TransactionMangopayTarget';
13
14
  /**
14
15
  *
@@ -21,13 +22,13 @@ export interface Transaction {
21
22
  * @type {TransactionMangopayTarget}
22
23
  * @memberof Transaction
23
24
  */
24
- mangopayTarget?: TransactionMangopayTarget;
25
+ mangopayTarget: TransactionMangopayTarget;
25
26
  /**
26
- * Status of this transaction. FAILED transaction can be retried.
27
- * @type {string}
27
+ *
28
+ * @type {TransactionStatus}
28
29
  * @memberof Transaction
29
30
  */
30
- status?: TransactionStatusEnum;
31
+ status: TransactionStatus;
31
32
  /**
32
33
  * Code obtained when transaction occurs
33
34
  * @type {string}
@@ -47,16 +48,6 @@ export interface Transaction {
47
48
  */
48
49
  executionDate?: Date;
49
50
  }
50
- /**
51
- * @export
52
- */
53
- export declare const TransactionStatusEnum: {
54
- readonly CREATED: "CREATED";
55
- readonly SUCCEEDED: "SUCCEEDED";
56
- readonly FAILED: "FAILED";
57
- readonly UNKNOWN: "UNKNOWN";
58
- };
59
- export declare type TransactionStatusEnum = typeof TransactionStatusEnum[keyof typeof TransactionStatusEnum];
60
51
  /**
61
52
  * Check if a given object implements the Transaction interface.
62
53
  */
@@ -13,21 +13,17 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.TransactionToJSON = exports.TransactionFromJSONTyped = exports.TransactionFromJSON = exports.instanceOfTransaction = exports.TransactionStatusEnum = void 0;
16
+ exports.TransactionToJSON = exports.TransactionFromJSONTyped = exports.TransactionFromJSON = exports.instanceOfTransaction = void 0;
17
+ var TransactionStatus_1 = require("./TransactionStatus");
17
18
  var TransactionMangopayTarget_1 = require("./TransactionMangopayTarget");
18
- /**
19
- * @export
20
- */
21
- exports.TransactionStatusEnum = {
22
- CREATED: 'CREATED',
23
- SUCCEEDED: 'SUCCEEDED',
24
- FAILED: 'FAILED',
25
- UNKNOWN: 'UNKNOWN'
26
- };
27
19
  /**
28
20
  * Check if a given object implements the Transaction interface.
29
21
  */
30
22
  function instanceOfTransaction(value) {
23
+ if (!('mangopayTarget' in value) || value['mangopayTarget'] === undefined)
24
+ return false;
25
+ if (!('status' in value) || value['status'] === undefined)
26
+ return false;
31
27
  return true;
32
28
  }
33
29
  exports.instanceOfTransaction = instanceOfTransaction;
@@ -41,7 +37,7 @@ function TransactionFromJSONTyped(json, ignoreDiscriminator) {
41
37
  }
42
38
  return {
43
39
  'mangopayTarget': (json['mangopayTarget'] === null || json['mangopayTarget'] === undefined) ? json['mangopayTarget'] : (0, TransactionMangopayTarget_1.TransactionMangopayTargetFromJSON)(json['mangopayTarget']),
44
- 'status': json['status'],
40
+ 'status': (json['status'] === null || json['status'] === undefined) ? json['status'] : (0, TransactionStatus_1.TransactionStatusFromJSON)(json['status']),
45
41
  'executionCode': json['executionCode'],
46
42
  'executionMessage': json['executionMessage'],
47
43
  'executionDate': (json['executionDate'] === null || json['executionDate'] === undefined) ? json['executionDate'] : new Date(json['executionDate']),
@@ -54,7 +50,7 @@ function TransactionToJSON(value) {
54
50
  }
55
51
  return {
56
52
  'mangopayTarget': (0, TransactionMangopayTarget_1.TransactionMangopayTargetToJSON)(value['mangopayTarget']),
57
- 'status': value['status'],
53
+ 'status': (0, TransactionStatus_1.TransactionStatusToJSON)(value['status']),
58
54
  'executionCode': value['executionCode'],
59
55
  'executionMessage': value['executionMessage'],
60
56
  'executionDate': (value['executionDate'] === null || value['executionDate'] === undefined) ? value['executionDate'] : (value['executionDate']).toISOString(),
@@ -0,0 +1,26 @@
1
+ /**
2
+ * lcdp-monolith-service
3
+ * This is the REST API of LCDP Levy
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 this transaction. FAILED transaction can be retried.
14
+ * @export
15
+ */
16
+ export declare const TransactionStatus: {
17
+ readonly CREATED: "CREATED";
18
+ readonly SUCCEEDED: "SUCCEEDED";
19
+ readonly FAILED: "FAILED";
20
+ readonly UNKNOWN: "UNKNOWN";
21
+ };
22
+ export declare type TransactionStatus = typeof TransactionStatus[keyof typeof TransactionStatus];
23
+ export declare function instanceOfTransactionStatus(value: any): boolean;
24
+ export declare function TransactionStatusFromJSON(json: any): TransactionStatus;
25
+ export declare function TransactionStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionStatus;
26
+ export declare function TransactionStatusToJSON(value?: TransactionStatus | 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 Levy
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.TransactionStatusToJSON = exports.TransactionStatusFromJSONTyped = exports.TransactionStatusFromJSON = exports.instanceOfTransactionStatus = exports.TransactionStatus = void 0;
17
+ /**
18
+ * Status of this transaction. FAILED transaction can be retried.
19
+ * @export
20
+ */
21
+ exports.TransactionStatus = {
22
+ CREATED: 'CREATED',
23
+ SUCCEEDED: 'SUCCEEDED',
24
+ FAILED: 'FAILED',
25
+ UNKNOWN: 'UNKNOWN'
26
+ };
27
+ function instanceOfTransactionStatus(value) {
28
+ for (var key in exports.TransactionStatus) {
29
+ if (Object.prototype.hasOwnProperty.call(exports.TransactionStatus, key)) {
30
+ if (exports.TransactionStatus[key] === value) {
31
+ return true;
32
+ }
33
+ }
34
+ }
35
+ return false;
36
+ }
37
+ exports.instanceOfTransactionStatus = instanceOfTransactionStatus;
38
+ function TransactionStatusFromJSON(json) {
39
+ return TransactionStatusFromJSONTyped(json, false);
40
+ }
41
+ exports.TransactionStatusFromJSON = TransactionStatusFromJSON;
42
+ function TransactionStatusFromJSONTyped(json, ignoreDiscriminator) {
43
+ return json;
44
+ }
45
+ exports.TransactionStatusFromJSONTyped = TransactionStatusFromJSONTyped;
46
+ function TransactionStatusToJSON(value) {
47
+ return value;
48
+ }
49
+ exports.TransactionStatusToJSON = TransactionStatusToJSON;
@@ -1,10 +1,8 @@
1
1
  export * from './HttpLink';
2
2
  export * from './Levy';
3
3
  export * from './LevyCreationParameters';
4
- export * from './LevyPayment';
5
- export * from './LevyPaymentStatus';
6
- export * from './LevyStatus';
7
4
  export * from './LevyUpdateParameters';
5
+ export * from './ManualCheckEnum';
8
6
  export * from './OrderLink';
9
7
  export * from './OrderPayment';
10
8
  export * from './OrderPaymentDeposit';
@@ -16,6 +14,7 @@ export * from './PaginatedOrderPayments';
16
14
  export * from './PagingMetadata';
17
15
  export * from './Transaction';
18
16
  export * from './TransactionMangopayTarget';
17
+ export * from './TransactionStatus';
19
18
  export * from './UserLink';
20
19
  export * from './UserLinkAllOfCompany';
21
20
  export * from './Wallet';
@@ -19,10 +19,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
19
19
  __exportStar(require("./HttpLink"), exports);
20
20
  __exportStar(require("./Levy"), exports);
21
21
  __exportStar(require("./LevyCreationParameters"), exports);
22
- __exportStar(require("./LevyPayment"), exports);
23
- __exportStar(require("./LevyPaymentStatus"), exports);
24
- __exportStar(require("./LevyStatus"), exports);
25
22
  __exportStar(require("./LevyUpdateParameters"), exports);
23
+ __exportStar(require("./ManualCheckEnum"), exports);
26
24
  __exportStar(require("./OrderLink"), exports);
27
25
  __exportStar(require("./OrderPayment"), exports);
28
26
  __exportStar(require("./OrderPaymentDeposit"), exports);
@@ -34,6 +32,7 @@ __exportStar(require("./PaginatedOrderPayments"), exports);
34
32
  __exportStar(require("./PagingMetadata"), exports);
35
33
  __exportStar(require("./Transaction"), exports);
36
34
  __exportStar(require("./TransactionMangopayTarget"), exports);
35
+ __exportStar(require("./TransactionStatus"), exports);
37
36
  __exportStar(require("./UserLink"), exports);
38
37
  __exportStar(require("./UserLinkAllOfCompany"), exports);
39
38
  __exportStar(require("./Wallet"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lcdp/api-react-rest-client",
3
- "version": "3.0.2-develop.20104901356",
3
+ "version": "3.0.2-develop.20373225077",
4
4
  "scripts": {
5
5
  "build": "tsc"
6
6
  },
@@ -37,6 +37,7 @@ 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 PAYMENT_SERVICE_PROVIDERS_PROXY_CONSENT_PAGE: "PAYMENT_SERVICE_PROVIDERS_PROXY_CONSENT_PAGE";
40
41
  };
41
42
  export declare type ThirdPartyLinkCreationParametersSlugEnum = typeof ThirdPartyLinkCreationParametersSlugEnum[keyof typeof ThirdPartyLinkCreationParametersSlugEnum];
42
43
  /**
@@ -22,7 +22,8 @@ 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'
25
+ SUBSCRIPTIONS_USER_PORTAL: 'SUBSCRIPTIONS_USER_PORTAL',
26
+ PAYMENT_SERVICE_PROVIDERS_PROXY_CONSENT_PAGE: 'PAYMENT_SERVICE_PROVIDERS_PROXY_CONSENT_PAGE'
26
27
  };
27
28
  /**
28
29
  * Check if a given object implements the ThirdPartyLinkCreationParameters interface.
@@ -0,0 +1,24 @@
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
+ * PAYMENTS : Being able to create transfer on behalf of the user
14
+ *
15
+ * @export
16
+ */
17
+ export declare const MangopayConsent: {
18
+ readonly PAYMENTS: "PAYMENTS";
19
+ };
20
+ export declare type MangopayConsent = typeof MangopayConsent[keyof typeof MangopayConsent];
21
+ export declare function instanceOfMangopayConsent(value: any): boolean;
22
+ export declare function MangopayConsentFromJSON(json: any): MangopayConsent;
23
+ export declare function MangopayConsentFromJSONTyped(json: any, ignoreDiscriminator: boolean): MangopayConsent;
24
+ export declare function MangopayConsentToJSON(value?: MangopayConsent | null): any;
@@ -0,0 +1,47 @@
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.MangopayConsentToJSON = exports.MangopayConsentFromJSONTyped = exports.MangopayConsentFromJSON = exports.instanceOfMangopayConsent = exports.MangopayConsent = void 0;
17
+ /**
18
+ * PAYMENTS : Being able to create transfer on behalf of the user
19
+ *
20
+ * @export
21
+ */
22
+ exports.MangopayConsent = {
23
+ PAYMENTS: 'PAYMENTS'
24
+ };
25
+ function instanceOfMangopayConsent(value) {
26
+ for (var key in exports.MangopayConsent) {
27
+ if (Object.prototype.hasOwnProperty.call(exports.MangopayConsent, key)) {
28
+ if (exports.MangopayConsent[key] === value) {
29
+ return true;
30
+ }
31
+ }
32
+ }
33
+ return false;
34
+ }
35
+ exports.instanceOfMangopayConsent = instanceOfMangopayConsent;
36
+ function MangopayConsentFromJSON(json) {
37
+ return MangopayConsentFromJSONTyped(json, false);
38
+ }
39
+ exports.MangopayConsentFromJSON = MangopayConsentFromJSON;
40
+ function MangopayConsentFromJSONTyped(json, ignoreDiscriminator) {
41
+ return json;
42
+ }
43
+ exports.MangopayConsentFromJSONTyped = MangopayConsentFromJSONTyped;
44
+ function MangopayConsentToJSON(value) {
45
+ return value;
46
+ }
47
+ exports.MangopayConsentToJSON = MangopayConsentToJSON;
@@ -19,6 +19,7 @@ import type { HttpLink } from './HttpLink';
19
19
  import type { Gender } from './Gender';
20
20
  import type { ScaEnrollmentStatus } from './ScaEnrollmentStatus';
21
21
  import type { UserChargebeeTarget } from './UserChargebeeTarget';
22
+ import type { UserMangopayConsent } from './UserMangopayConsent';
22
23
  import type { UserThreads } from './UserThreads';
23
24
  import type { UserWallets } from './UserWallets';
24
25
  import type { UserRole } from './UserRole';
@@ -299,6 +300,12 @@ export interface User {
299
300
  * @memberof User
300
301
  */
301
302
  isMangopaySynced?: boolean;
303
+ /**
304
+ *
305
+ * @type {UserMangopayConsent}
306
+ * @memberof User
307
+ */
308
+ mangopayConsent?: UserMangopayConsent;
302
309
  /**
303
310
  * Last update date
304
311
  * @type {Date}
@@ -25,6 +25,7 @@ var HttpLink_1 = require("./HttpLink");
25
25
  var Gender_1 = require("./Gender");
26
26
  var ScaEnrollmentStatus_1 = require("./ScaEnrollmentStatus");
27
27
  var UserChargebeeTarget_1 = require("./UserChargebeeTarget");
28
+ var UserMangopayConsent_1 = require("./UserMangopayConsent");
28
29
  var UserThreads_1 = require("./UserThreads");
29
30
  var UserWallets_1 = require("./UserWallets");
30
31
  var UserRole_1 = require("./UserRole");
@@ -109,6 +110,7 @@ function UserFromJSONTyped(json, ignoreDiscriminator) {
109
110
  'customCommissions': (json['customCommissions'] === null || json['customCommissions'] === undefined) ? json['customCommissions'] : (0, HttpLink_1.HttpLinkFromJSON)(json['customCommissions']),
110
111
  'tags': json['tags'],
111
112
  'isMangopaySynced': json['isMangopaySynced'],
113
+ 'mangopayConsent': (json['mangopayConsent'] === null || json['mangopayConsent'] === undefined) ? json['mangopayConsent'] : (0, UserMangopayConsent_1.UserMangopayConsentFromJSON)(json['mangopayConsent']),
112
114
  'updatedAt': (json['updatedAt'] === null || json['updatedAt'] === undefined) ? json['updatedAt'] : new Date(json['updatedAt']),
113
115
  'createdAt': (json['createdAt'] === null || json['createdAt'] === undefined) ? json['createdAt'] : new Date(json['createdAt']),
114
116
  'journal': (json['journal'] === null || json['journal'] === undefined) ? json['journal'] : (0, UserJournal_1.UserJournalFromJSON)(json['journal']),
@@ -168,6 +170,7 @@ function UserToJSON(value) {
168
170
  'customCommissions': (0, HttpLink_1.HttpLinkToJSON)(value['customCommissions']),
169
171
  'tags': value['tags'],
170
172
  'isMangopaySynced': value['isMangopaySynced'],
173
+ 'mangopayConsent': (0, UserMangopayConsent_1.UserMangopayConsentToJSON)(value['mangopayConsent']),
171
174
  'updatedAt': (value['updatedAt'] === null || value['updatedAt'] === undefined) ? value['updatedAt'] : (value['updatedAt']).toISOString(),
172
175
  'createdAt': (value['createdAt'] === null || value['createdAt'] === undefined) ? value['createdAt'] : (value['createdAt']).toISOString(),
173
176
  'journal': (0, UserJournal_1.UserJournalToJSON)(value['journal']),
@@ -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 { MangopayConsent } from './MangopayConsent';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface UserMangopayConsent
17
+ */
18
+ export interface UserMangopayConsent {
19
+ /**
20
+ * Can user manage its mangopay consent
21
+ * @type {boolean}
22
+ * @memberof UserMangopayConsent
23
+ */
24
+ available?: boolean;
25
+ /**
26
+ *
27
+ * @type {Array<MangopayConsent>}
28
+ * @memberof UserMangopayConsent
29
+ */
30
+ errors?: Array<MangopayConsent>;
31
+ }
32
+ /**
33
+ * Check if a given object implements the UserMangopayConsent interface.
34
+ */
35
+ export declare function instanceOfUserMangopayConsent(value: object): value is UserMangopayConsent;
36
+ export declare function UserMangopayConsentFromJSON(json: any): UserMangopayConsent;
37
+ export declare function UserMangopayConsentFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserMangopayConsent;
38
+ export declare function UserMangopayConsentToJSON(value?: UserMangopayConsent | 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.UserMangopayConsentToJSON = exports.UserMangopayConsentFromJSONTyped = exports.UserMangopayConsentFromJSON = exports.instanceOfUserMangopayConsent = void 0;
17
+ var MangopayConsent_1 = require("./MangopayConsent");
18
+ /**
19
+ * Check if a given object implements the UserMangopayConsent interface.
20
+ */
21
+ function instanceOfUserMangopayConsent(value) {
22
+ return true;
23
+ }
24
+ exports.instanceOfUserMangopayConsent = instanceOfUserMangopayConsent;
25
+ function UserMangopayConsentFromJSON(json) {
26
+ return UserMangopayConsentFromJSONTyped(json, false);
27
+ }
28
+ exports.UserMangopayConsentFromJSON = UserMangopayConsentFromJSON;
29
+ function UserMangopayConsentFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'available': json['available'],
35
+ 'errors': (json['errors'] === null || json['errors'] === undefined) ? json['errors'] : json['errors'].map(MangopayConsent_1.MangopayConsentFromJSON),
36
+ };
37
+ }
38
+ exports.UserMangopayConsentFromJSONTyped = UserMangopayConsentFromJSONTyped;
39
+ function UserMangopayConsentToJSON(value) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'available': value['available'],
45
+ 'errors': (value['errors'] === null || value['errors'] === undefined) ? value['errors'] : value['errors'].map(MangopayConsent_1.MangopayConsentToJSON),
46
+ };
47
+ }
48
+ exports.UserMangopayConsentToJSON = UserMangopayConsentToJSON;
@@ -58,6 +58,12 @@ export interface UserUpdateParameters {
58
58
  * @memberof UserUpdateParameters
59
59
  */
60
60
  email?: string;
61
+ /**
62
+ * True if the user have unpaid invoice
63
+ * @type {boolean}
64
+ * @memberof UserUpdateParameters
65
+ */
66
+ haveUnpaid?: boolean;
61
67
  /**
62
68
  * User nickname
63
69
  * @type {string}
@@ -44,6 +44,7 @@ function UserUpdateParametersFromJSONTyped(json, ignoreDiscriminator) {
44
44
  'lastname': json['lastname'],
45
45
  'birthdate': (json['birthdate'] === null || json['birthdate'] === undefined) ? json['birthdate'] : new Date(json['birthdate']),
46
46
  'email': json['email'],
47
+ 'haveUnpaid': json['haveUnpaid'],
47
48
  'nickname': json['nickname'],
48
49
  'phone': json['phone'],
49
50
  'role': (json['role'] === null || json['role'] === undefined) ? json['role'] : (0, UserRole_1.UserRoleFromJSON)(json['role']),
@@ -74,6 +75,7 @@ function UserUpdateParametersToJSON(value) {
74
75
  'lastname': value['lastname'],
75
76
  'birthdate': (value['birthdate'] === null || value['birthdate'] === undefined) ? value['birthdate'] : (0, runtime_1.toDateISOString)(value['birthdate']),
76
77
  'email': value['email'],
78
+ 'haveUnpaid': value['haveUnpaid'],
77
79
  'nickname': value['nickname'],
78
80
  'phone': value['phone'],
79
81
  'role': (0, UserRole_1.UserRoleToJSON)(value['role']),
@@ -2,6 +2,7 @@ export * from './Address';
2
2
  export * from './Gender';
3
3
  export * from './HttpLink';
4
4
  export * from './KycLevel';
5
+ export * from './MangopayConsent';
5
6
  export * from './MyPasswordUpdateParameters';
6
7
  export * from './NotificationTypeId';
7
8
  export * from './NotificationTypeLink';
@@ -36,6 +37,7 @@ export * from './UserFeature';
36
37
  export * from './UserForbiddenSellerLink';
37
38
  export * from './UserJournal';
38
39
  export * from './UserJournalUpdateParameters';
40
+ export * from './UserMangopayConsent';
39
41
  export * from './UserMangopayTarget';
40
42
  export * from './UserRestrictedFeatureCreationParameter';
41
43
  export * from './UserRestrictedNotificationTypeCreationParameter';
@@ -20,6 +20,7 @@ __exportStar(require("./Address"), exports);
20
20
  __exportStar(require("./Gender"), exports);
21
21
  __exportStar(require("./HttpLink"), exports);
22
22
  __exportStar(require("./KycLevel"), exports);
23
+ __exportStar(require("./MangopayConsent"), exports);
23
24
  __exportStar(require("./MyPasswordUpdateParameters"), exports);
24
25
  __exportStar(require("./NotificationTypeId"), exports);
25
26
  __exportStar(require("./NotificationTypeLink"), exports);
@@ -54,6 +55,7 @@ __exportStar(require("./UserFeature"), exports);
54
55
  __exportStar(require("./UserForbiddenSellerLink"), exports);
55
56
  __exportStar(require("./UserJournal"), exports);
56
57
  __exportStar(require("./UserJournalUpdateParameters"), exports);
58
+ __exportStar(require("./UserMangopayConsent"), exports);
57
59
  __exportStar(require("./UserMangopayTarget"), exports);
58
60
  __exportStar(require("./UserRestrictedFeatureCreationParameter"), exports);
59
61
  __exportStar(require("./UserRestrictedNotificationTypeCreationParameter"), exports);
@@ -1,38 +0,0 @@
1
- /**
2
- * lcdp-monolith-service
3
- * This is the REST API of LCDP Levy
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 { LevyPaymentStatus } from './LevyPaymentStatus';
13
- /**
14
- *
15
- * @export
16
- * @interface LevyPayment
17
- */
18
- export interface LevyPayment {
19
- /**
20
- * Payment Id
21
- * @type {string}
22
- * @memberof LevyPayment
23
- */
24
- id?: string;
25
- /**
26
- *
27
- * @type {LevyPaymentStatus}
28
- * @memberof LevyPayment
29
- */
30
- status?: LevyPaymentStatus;
31
- }
32
- /**
33
- * Check if a given object implements the LevyPayment interface.
34
- */
35
- export declare function instanceOfLevyPayment(value: object): value is LevyPayment;
36
- export declare function LevyPaymentFromJSON(json: any): LevyPayment;
37
- export declare function LevyPaymentFromJSONTyped(json: any, ignoreDiscriminator: boolean): LevyPayment;
38
- export declare function LevyPaymentToJSON(value?: LevyPayment | 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 Levy
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.LevyPaymentToJSON = exports.LevyPaymentFromJSONTyped = exports.LevyPaymentFromJSON = exports.instanceOfLevyPayment = void 0;
17
- var LevyPaymentStatus_1 = require("./LevyPaymentStatus");
18
- /**
19
- * Check if a given object implements the LevyPayment interface.
20
- */
21
- function instanceOfLevyPayment(value) {
22
- return true;
23
- }
24
- exports.instanceOfLevyPayment = instanceOfLevyPayment;
25
- function LevyPaymentFromJSON(json) {
26
- return LevyPaymentFromJSONTyped(json, false);
27
- }
28
- exports.LevyPaymentFromJSON = LevyPaymentFromJSON;
29
- function LevyPaymentFromJSONTyped(json, ignoreDiscriminator) {
30
- if (json == null) {
31
- return json;
32
- }
33
- return {
34
- 'id': json['id'],
35
- 'status': (json['status'] === null || json['status'] === undefined) ? json['status'] : (0, LevyPaymentStatus_1.LevyPaymentStatusFromJSON)(json['status']),
36
- };
37
- }
38
- exports.LevyPaymentFromJSONTyped = LevyPaymentFromJSONTyped;
39
- function LevyPaymentToJSON(value) {
40
- if (value == null) {
41
- return value;
42
- }
43
- return {
44
- 'id': value['id'],
45
- 'status': (0, LevyPaymentStatus_1.LevyPaymentStatusToJSON)(value['status']),
46
- };
47
- }
48
- exports.LevyPaymentToJSON = LevyPaymentToJSON;
@@ -1,25 +0,0 @@
1
- /**
2
- * lcdp-monolith-service
3
- * This is the REST API of LCDP Levy
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
- * Payment status values
14
- * @export
15
- */
16
- export declare const LevyPaymentStatus: {
17
- readonly DONE: "DONE";
18
- readonly FAILED: "FAILED";
19
- readonly WAITING_FOR_PAYMENT: "WAITING_FOR_PAYMENT";
20
- };
21
- export declare type LevyPaymentStatus = typeof LevyPaymentStatus[keyof typeof LevyPaymentStatus];
22
- export declare function instanceOfLevyPaymentStatus(value: any): boolean;
23
- export declare function LevyPaymentStatusFromJSON(json: any): LevyPaymentStatus;
24
- export declare function LevyPaymentStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): LevyPaymentStatus;
25
- export declare function LevyPaymentStatusToJSON(value?: LevyPaymentStatus | 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 Levy
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.LevyPaymentStatusToJSON = exports.LevyPaymentStatusFromJSONTyped = exports.LevyPaymentStatusFromJSON = exports.instanceOfLevyPaymentStatus = exports.LevyPaymentStatus = void 0;
17
- /**
18
- * Payment status values
19
- * @export
20
- */
21
- exports.LevyPaymentStatus = {
22
- DONE: 'DONE',
23
- FAILED: 'FAILED',
24
- WAITING_FOR_PAYMENT: 'WAITING_FOR_PAYMENT'
25
- };
26
- function instanceOfLevyPaymentStatus(value) {
27
- for (var key in exports.LevyPaymentStatus) {
28
- if (Object.prototype.hasOwnProperty.call(exports.LevyPaymentStatus, key)) {
29
- if (exports.LevyPaymentStatus[key] === value) {
30
- return true;
31
- }
32
- }
33
- }
34
- return false;
35
- }
36
- exports.instanceOfLevyPaymentStatus = instanceOfLevyPaymentStatus;
37
- function LevyPaymentStatusFromJSON(json) {
38
- return LevyPaymentStatusFromJSONTyped(json, false);
39
- }
40
- exports.LevyPaymentStatusFromJSON = LevyPaymentStatusFromJSON;
41
- function LevyPaymentStatusFromJSONTyped(json, ignoreDiscriminator) {
42
- return json;
43
- }
44
- exports.LevyPaymentStatusFromJSONTyped = LevyPaymentStatusFromJSONTyped;
45
- function LevyPaymentStatusToJSON(value) {
46
- return value;
47
- }
48
- exports.LevyPaymentStatusToJSON = LevyPaymentStatusToJSON;
@@ -1,24 +0,0 @@
1
- /**
2
- * lcdp-monolith-service
3
- * This is the REST API of LCDP Levy
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
- * Levy status values
14
- * @export
15
- */
16
- export declare const LevyStatus: {
17
- readonly DONE: "DONE";
18
- readonly NOT_DONE: "NOT_DONE";
19
- };
20
- export declare type LevyStatus = typeof LevyStatus[keyof typeof LevyStatus];
21
- export declare function instanceOfLevyStatus(value: any): boolean;
22
- export declare function LevyStatusFromJSON(json: any): LevyStatus;
23
- export declare function LevyStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): LevyStatus;
24
- export declare function LevyStatusToJSON(value?: LevyStatus | null): any;
@@ -1,47 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * lcdp-monolith-service
6
- * This is the REST API of LCDP Levy
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.LevyStatusToJSON = exports.LevyStatusFromJSONTyped = exports.LevyStatusFromJSON = exports.instanceOfLevyStatus = exports.LevyStatus = void 0;
17
- /**
18
- * Levy status values
19
- * @export
20
- */
21
- exports.LevyStatus = {
22
- DONE: 'DONE',
23
- NOT_DONE: 'NOT_DONE'
24
- };
25
- function instanceOfLevyStatus(value) {
26
- for (var key in exports.LevyStatus) {
27
- if (Object.prototype.hasOwnProperty.call(exports.LevyStatus, key)) {
28
- if (exports.LevyStatus[key] === value) {
29
- return true;
30
- }
31
- }
32
- }
33
- return false;
34
- }
35
- exports.instanceOfLevyStatus = instanceOfLevyStatus;
36
- function LevyStatusFromJSON(json) {
37
- return LevyStatusFromJSONTyped(json, false);
38
- }
39
- exports.LevyStatusFromJSON = LevyStatusFromJSON;
40
- function LevyStatusFromJSONTyped(json, ignoreDiscriminator) {
41
- return json;
42
- }
43
- exports.LevyStatusFromJSONTyped = LevyStatusFromJSONTyped;
44
- function LevyStatusToJSON(value) {
45
- return value;
46
- }
47
- exports.LevyStatusToJSON = LevyStatusToJSON;