@lcdp/api-react-rest-client 2.14.7-LDS-5179-monolith-pouvoir-relancer-trans.19889823323 → 2.14.7-develop.19662905954

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.
@@ -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, ManualCheckEnum, PaginatedLevies, TransactionStatus } from '../models/index';
13
+ import type { Levy, LevyPaymentStatus, LevyStatus, PaginatedLevies } from '../models/index';
14
14
  export interface GetLeviesRequest {
15
15
  q?: string;
16
16
  createdAtGte?: Date;
@@ -18,9 +18,8 @@ export interface GetLeviesRequest {
18
18
  idEq?: Array<number>;
19
19
  debitedUserEq?: Array<number>;
20
20
  debitedFundsEq?: number;
21
- payinStEq?: Array<TransactionStatus>;
22
- transferStEq?: Array<TransactionStatus>;
23
- manualCheckEq?: Array<ManualCheckEnum>;
21
+ paymentStEq?: Array<LevyPaymentStatus>;
22
+ stEq?: Array<LevyStatus>;
24
23
  orderBy?: GetLeviesOrderByEnum;
25
24
  p?: number;
26
25
  pp?: number;
@@ -63,12 +62,10 @@ export declare const GetLeviesOrderByEnum: {
63
62
  readonly FEES_DESC: "FEES:desc";
64
63
  readonly TAG_ASC: "TAG:asc";
65
64
  readonly TAG_DESC: "TAG: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";
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";
72
69
  readonly CREATED_AT_ASC: "CREATED_AT:asc";
73
70
  readonly CREATED_AT_DESC: "CREATED_AT:desc";
74
71
  };
@@ -104,14 +104,11 @@ var SearchLevyApi = /** @class */ (function (_super) {
104
104
  if (requestParameters['debitedFundsEq'] != null) {
105
105
  queryParameters['debitedFunds[eq]'] = requestParameters['debitedFundsEq'];
106
106
  }
107
- if (requestParameters['payinStEq'] != null) {
108
- queryParameters['payinSt[eq]'] = requestParameters['payinStEq'];
107
+ if (requestParameters['paymentStEq'] != null) {
108
+ queryParameters['paymentSt[eq]'] = requestParameters['paymentStEq'];
109
109
  }
110
- if (requestParameters['transferStEq'] != null) {
111
- queryParameters['transferSt[eq]'] = requestParameters['transferStEq'];
112
- }
113
- if (requestParameters['manualCheckEq'] != null) {
114
- queryParameters['manualCheck[eq]'] = requestParameters['manualCheckEq'];
110
+ if (requestParameters['stEq'] != null) {
111
+ queryParameters['st[eq]'] = requestParameters['stEq'];
115
112
  }
116
113
  if (requestParameters['orderBy'] != null) {
117
114
  queryParameters['orderBy'] = requestParameters['orderBy'];
@@ -284,12 +281,10 @@ exports.GetLeviesOrderByEnum = {
284
281
  FEES_DESC: 'FEES:desc',
285
282
  TAG_ASC: 'TAG:asc',
286
283
  TAG_DESC: 'TAG: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',
284
+ STATUS_ASC: 'STATUS:asc',
285
+ STATUS_DESC: 'STATUS:desc',
286
+ PAYMENT_STATUS_ASC: 'PAYMENT_STATUS:asc',
287
+ PAYMENT_STATUS_DESC: 'PAYMENT_STATUS:desc',
293
288
  CREATED_AT_ASC: 'CREATED_AT:asc',
294
289
  CREATED_AT_DESC: 'CREATED_AT:desc'
295
290
  };
@@ -10,8 +10,8 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { UserLink } from './UserLink';
13
- import type { Transaction } from './Transaction';
14
- import type { ManualCheckEnum } from './ManualCheckEnum';
13
+ import type { LevyStatus } from './LevyStatus';
14
+ import type { LevyPayment } from './LevyPayment';
15
15
  /**
16
16
  *
17
17
  * @export
@@ -38,22 +38,16 @@ export interface Levy {
38
38
  creditedUser: UserLink;
39
39
  /**
40
40
  *
41
- * @type {Transaction}
41
+ * @type {LevyPayment}
42
42
  * @memberof Levy
43
43
  */
44
- payin?: Transaction | null;
44
+ payment: LevyPayment;
45
45
  /**
46
46
  *
47
- * @type {Transaction}
47
+ * @type {LevyStatus}
48
48
  * @memberof Levy
49
49
  */
50
- transfer?: Transaction | null;
51
- /**
52
- *
53
- * @type {ManualCheckEnum}
54
- * @memberof Levy
55
- */
56
- manualCheck?: ManualCheckEnum;
50
+ status: LevyStatus;
57
51
  /**
58
52
  * Comment about Levy
59
53
  * @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 Transaction_1 = require("./Transaction");
19
- var ManualCheckEnum_1 = require("./ManualCheckEnum");
18
+ var LevyStatus_1 = require("./LevyStatus");
19
+ var LevyPayment_1 = require("./LevyPayment");
20
20
  /**
21
21
  * Check if a given object implements the Levy interface.
22
22
  */
@@ -27,6 +27,10 @@ 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;
30
34
  if (!('fees' in value) || value['fees'] === undefined)
31
35
  return false;
32
36
  if (!('debitedFunds' in value) || value['debitedFunds'] === undefined)
@@ -46,9 +50,8 @@ function LevyFromJSONTyped(json, ignoreDiscriminator) {
46
50
  'id': json['id'],
47
51
  'debitedUser': (json['debitedUser'] === null || json['debitedUser'] === undefined) ? json['debitedUser'] : (0, UserLink_1.UserLinkFromJSON)(json['debitedUser']),
48
52
  'creditedUser': (json['creditedUser'] === null || json['creditedUser'] === undefined) ? json['creditedUser'] : (0, UserLink_1.UserLinkFromJSON)(json['creditedUser']),
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']),
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']),
52
55
  'comment': json['comment'],
53
56
  'tag': json['tag'],
54
57
  'fees': json['fees'],
@@ -65,9 +68,8 @@ function LevyToJSON(value) {
65
68
  'id': value['id'],
66
69
  'debitedUser': (0, UserLink_1.UserLinkToJSON)(value['debitedUser']),
67
70
  'creditedUser': (0, UserLink_1.UserLinkToJSON)(value['creditedUser']),
68
- 'payin': (0, Transaction_1.TransactionToJSON)(value['payin']),
69
- 'transfer': (0, Transaction_1.TransactionToJSON)(value['transfer']),
70
- 'manualCheck': (0, ManualCheckEnum_1.ManualCheckEnumToJSON)(value['manualCheck']),
71
+ 'payment': (0, LevyPayment_1.LevyPaymentToJSON)(value['payment']),
72
+ 'status': (0, LevyStatus_1.LevyStatusToJSON)(value['status']),
71
73
  'comment': value['comment'],
72
74
  'tag': value['tag'],
73
75
  '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 { ManualCheckEnum } from './ManualCheckEnum';
12
+ import type { LevyStatus } from './LevyStatus';
13
13
  /**
14
14
  *
15
15
  * @export
@@ -42,10 +42,10 @@ export interface LevyCreationParameters {
42
42
  tag: string;
43
43
  /**
44
44
  *
45
- * @type {ManualCheckEnum}
45
+ * @type {LevyStatus}
46
46
  * @memberof LevyCreationParameters
47
47
  */
48
- manualCheck: ManualCheckEnum;
48
+ status: LevyStatus;
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 ManualCheckEnum_1 = require("./ManualCheckEnum");
17
+ var LevyStatus_1 = require("./LevyStatus");
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 (!('manualCheck' in value) || value['manualCheck'] === undefined)
30
+ if (!('status' in value) || value['status'] === 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
- 'manualCheck': (json['manualCheck'] === null || json['manualCheck'] === undefined) ? json['manualCheck'] : (0, ManualCheckEnum_1.ManualCheckEnumFromJSON)(json['manualCheck']),
48
+ 'status': (json['status'] === null || json['status'] === undefined) ? json['status'] : (0, LevyStatus_1.LevyStatusFromJSON)(json['status']),
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
- 'manualCheck': (0, ManualCheckEnum_1.ManualCheckEnumToJSON)(value['manualCheck']),
62
+ 'status': (0, LevyStatus_1.LevyStatusToJSON)(value['status']),
63
63
  'comment': value['comment'],
64
64
  };
65
65
  }
@@ -0,0 +1,38 @@
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;
@@ -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 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;
@@ -0,0 +1,25 @@
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;
@@ -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 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;
@@ -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
+ * 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;
@@ -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.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;
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { ManualCheckEnum } from './ManualCheckEnum';
12
+ import type { LevyStatus } from './LevyStatus';
13
13
  /**
14
14
  *
15
15
  * @export
@@ -18,10 +18,10 @@ import type { ManualCheckEnum } from './ManualCheckEnum';
18
18
  export interface LevyUpdateParameters {
19
19
  /**
20
20
  *
21
- * @type {ManualCheckEnum}
21
+ * @type {LevyStatus}
22
22
  * @memberof LevyUpdateParameters
23
23
  */
24
- manualCheck?: ManualCheckEnum;
24
+ status?: LevyStatus;
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 ManualCheckEnum_1 = require("./ManualCheckEnum");
17
+ var LevyStatus_1 = require("./LevyStatus");
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
- 'manualCheck': (json['manualCheck'] === null || json['manualCheck'] === undefined) ? json['manualCheck'] : (0, ManualCheckEnum_1.ManualCheckEnumFromJSON)(json['manualCheck']),
34
+ 'status': (json['status'] === null || json['status'] === undefined) ? json['status'] : (0, LevyStatus_1.LevyStatusFromJSON)(json['status']),
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
- 'manualCheck': (0, ManualCheckEnum_1.ManualCheckEnumToJSON)(value['manualCheck']),
44
+ 'status': (0, LevyStatus_1.LevyStatusToJSON)(value['status']),
45
45
  'comment': value['comment'],
46
46
  };
47
47
  }
@@ -9,7 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { TransactionStatus } from './TransactionStatus';
13
12
  import type { TransactionMangopayTarget } from './TransactionMangopayTarget';
14
13
  /**
15
14
  *
@@ -22,13 +21,13 @@ export interface Transaction {
22
21
  * @type {TransactionMangopayTarget}
23
22
  * @memberof Transaction
24
23
  */
25
- mangopayTarget: TransactionMangopayTarget;
24
+ mangopayTarget?: TransactionMangopayTarget;
26
25
  /**
27
- *
28
- * @type {TransactionStatus}
26
+ * Status of this transaction. FAILED transaction can be retried.
27
+ * @type {string}
29
28
  * @memberof Transaction
30
29
  */
31
- status: TransactionStatus;
30
+ status?: TransactionStatusEnum;
32
31
  /**
33
32
  * Code obtained when transaction occurs
34
33
  * @type {string}
@@ -48,6 +47,16 @@ export interface Transaction {
48
47
  */
49
48
  executionDate?: Date;
50
49
  }
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];
51
60
  /**
52
61
  * Check if a given object implements the Transaction interface.
53
62
  */
@@ -13,17 +13,21 @@
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 = void 0;
17
- var TransactionStatus_1 = require("./TransactionStatus");
16
+ exports.TransactionToJSON = exports.TransactionFromJSONTyped = exports.TransactionFromJSON = exports.instanceOfTransaction = exports.TransactionStatusEnum = void 0;
18
17
  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
+ };
19
27
  /**
20
28
  * Check if a given object implements the Transaction interface.
21
29
  */
22
30
  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;
27
31
  return true;
28
32
  }
29
33
  exports.instanceOfTransaction = instanceOfTransaction;
@@ -37,7 +41,7 @@ function TransactionFromJSONTyped(json, ignoreDiscriminator) {
37
41
  }
38
42
  return {
39
43
  'mangopayTarget': (json['mangopayTarget'] === null || json['mangopayTarget'] === undefined) ? json['mangopayTarget'] : (0, TransactionMangopayTarget_1.TransactionMangopayTargetFromJSON)(json['mangopayTarget']),
40
- 'status': (json['status'] === null || json['status'] === undefined) ? json['status'] : (0, TransactionStatus_1.TransactionStatusFromJSON)(json['status']),
44
+ 'status': json['status'],
41
45
  'executionCode': json['executionCode'],
42
46
  'executionMessage': json['executionMessage'],
43
47
  'executionDate': (json['executionDate'] === null || json['executionDate'] === undefined) ? json['executionDate'] : new Date(json['executionDate']),
@@ -50,7 +54,7 @@ function TransactionToJSON(value) {
50
54
  }
51
55
  return {
52
56
  'mangopayTarget': (0, TransactionMangopayTarget_1.TransactionMangopayTargetToJSON)(value['mangopayTarget']),
53
- 'status': (0, TransactionStatus_1.TransactionStatusToJSON)(value['status']),
57
+ 'status': value['status'],
54
58
  'executionCode': value['executionCode'],
55
59
  'executionMessage': value['executionMessage'],
56
60
  'executionDate': (value['executionDate'] === null || value['executionDate'] === undefined) ? value['executionDate'] : (value['executionDate']).toISOString(),
@@ -1,8 +1,10 @@
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';
4
7
  export * from './LevyUpdateParameters';
5
- export * from './ManualCheckEnum';
6
8
  export * from './OrderLink';
7
9
  export * from './OrderPayment';
8
10
  export * from './OrderPaymentDeposit';
@@ -14,7 +16,6 @@ export * from './PaginatedOrderPayments';
14
16
  export * from './PagingMetadata';
15
17
  export * from './Transaction';
16
18
  export * from './TransactionMangopayTarget';
17
- export * from './TransactionStatus';
18
19
  export * from './UserLink';
19
20
  export * from './UserLinkAllOfCompany';
20
21
  export * from './Wallet';
@@ -19,8 +19,10 @@ 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);
22
25
  __exportStar(require("./LevyUpdateParameters"), exports);
23
- __exportStar(require("./ManualCheckEnum"), exports);
24
26
  __exportStar(require("./OrderLink"), exports);
25
27
  __exportStar(require("./OrderPayment"), exports);
26
28
  __exportStar(require("./OrderPaymentDeposit"), exports);
@@ -32,7 +34,6 @@ __exportStar(require("./PaginatedOrderPayments"), exports);
32
34
  __exportStar(require("./PagingMetadata"), exports);
33
35
  __exportStar(require("./Transaction"), exports);
34
36
  __exportStar(require("./TransactionMangopayTarget"), exports);
35
- __exportStar(require("./TransactionStatus"), exports);
36
37
  __exportStar(require("./UserLink"), exports);
37
38
  __exportStar(require("./UserLinkAllOfCompany"), exports);
38
39
  __exportStar(require("./Wallet"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lcdp/api-react-rest-client",
3
- "version": "2.14.7-LDS-5179-monolith-pouvoir-relancer-trans.19889823323",
3
+ "version": "2.14.7-develop.19662905954",
4
4
  "scripts": {
5
5
  "build": "tsc"
6
6
  },
@@ -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
- * 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;
@@ -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.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;
@@ -1,26 +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
- * 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;
@@ -1,49 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * lcdp-monolith-service
6
- * This is the REST API of LCDP 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;