@lcdp/api-react-rest-client 2.14.7-LDS-5179-monolith-pouvoir-relancer-trans.19862733987 → 2.14.7-LDS-5088-mangopay-consent.19864750165

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, LevyStatus, 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,8 +18,7 @@ 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>;
21
+ paymentStEq?: Array<LevyPaymentStatus>;
23
22
  stEq?: Array<LevyStatus>;
24
23
  orderBy?: GetLeviesOrderByEnum;
25
24
  p?: number;
@@ -104,11 +104,8 @@ 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'];
109
- }
110
- if (requestParameters['transferStEq'] != null) {
111
- queryParameters['transferSt[eq]'] = requestParameters['transferStEq'];
107
+ if (requestParameters['paymentStEq'] != null) {
108
+ queryParameters['paymentSt[eq]'] = requestParameters['paymentStEq'];
112
109
  }
113
110
  if (requestParameters['stEq'] != null) {
114
111
  queryParameters['st[eq]'] = requestParameters['stEq'];
@@ -11,7 +11,7 @@
11
11
  */
12
12
  import type { UserLink } from './UserLink';
13
13
  import type { LevyStatus } from './LevyStatus';
14
- import type { Transaction } from './Transaction';
14
+ import type { LevyPayment } from './LevyPayment';
15
15
  /**
16
16
  *
17
17
  * @export
@@ -38,16 +38,10 @@ 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;
45
- /**
46
- *
47
- * @type {Transaction}
48
- * @memberof Levy
49
- */
50
- transfer?: Transaction | null;
44
+ payment: LevyPayment;
51
45
  /**
52
46
  *
53
47
  * @type {LevyStatus}
@@ -16,7 +16,7 @@ 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
18
  var LevyStatus_1 = require("./LevyStatus");
19
- var Transaction_1 = require("./Transaction");
19
+ var LevyPayment_1 = require("./LevyPayment");
20
20
  /**
21
21
  * Check if a given object implements the Levy interface.
22
22
  */
@@ -27,6 +27,8 @@ 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;
30
32
  if (!('status' in value) || value['status'] === undefined)
31
33
  return false;
32
34
  if (!('fees' in value) || value['fees'] === undefined)
@@ -48,8 +50,7 @@ function LevyFromJSONTyped(json, ignoreDiscriminator) {
48
50
  'id': json['id'],
49
51
  'debitedUser': (json['debitedUser'] === null || json['debitedUser'] === undefined) ? json['debitedUser'] : (0, UserLink_1.UserLinkFromJSON)(json['debitedUser']),
50
52
  'creditedUser': (json['creditedUser'] === null || json['creditedUser'] === undefined) ? json['creditedUser'] : (0, UserLink_1.UserLinkFromJSON)(json['creditedUser']),
51
- 'payin': (json['payin'] === null || json['payin'] === undefined) ? json['payin'] : (0, Transaction_1.TransactionFromJSON)(json['payin']),
52
- 'transfer': (json['transfer'] === null || json['transfer'] === undefined) ? json['transfer'] : (0, Transaction_1.TransactionFromJSON)(json['transfer']),
53
+ 'payment': (json['payment'] === null || json['payment'] === undefined) ? json['payment'] : (0, LevyPayment_1.LevyPaymentFromJSON)(json['payment']),
53
54
  'status': (json['status'] === null || json['status'] === undefined) ? json['status'] : (0, LevyStatus_1.LevyStatusFromJSON)(json['status']),
54
55
  'comment': json['comment'],
55
56
  'tag': json['tag'],
@@ -67,8 +68,7 @@ function LevyToJSON(value) {
67
68
  'id': value['id'],
68
69
  'debitedUser': (0, UserLink_1.UserLinkToJSON)(value['debitedUser']),
69
70
  'creditedUser': (0, UserLink_1.UserLinkToJSON)(value['creditedUser']),
70
- 'payin': (0, Transaction_1.TransactionToJSON)(value['payin']),
71
- 'transfer': (0, Transaction_1.TransactionToJSON)(value['transfer']),
71
+ 'payment': (0, LevyPayment_1.LevyPaymentToJSON)(value['payment']),
72
72
  'status': (0, LevyStatus_1.LevyStatusToJSON)(value['status']),
73
73
  'comment': value['comment'],
74
74
  'tag': value['tag'],
@@ -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;
@@ -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,6 +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';
4
6
  export * from './LevyStatus';
5
7
  export * from './LevyUpdateParameters';
6
8
  export * from './OrderLink';
@@ -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,6 +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);
22
24
  __exportStar(require("./LevyStatus"), exports);
23
25
  __exportStar(require("./LevyUpdateParameters"), exports);
24
26
  __exportStar(require("./OrderLink"), 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.19862733987",
3
+ "version": "2.14.7-LDS-5088-mangopay-consent.19864750165",
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;
@@ -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,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;