@lcdp/api-react-rest-client 2.14.7-LDS-5179-monolith-pouvoir-relancer-trans.19887756697 → 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, 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;
@@ -65,10 +64,8 @@ export declare const GetLeviesOrderByEnum: {
65
64
  readonly TAG_DESC: "TAG:desc";
66
65
  readonly STATUS_ASC: "STATUS:asc";
67
66
  readonly STATUS_DESC: "STATUS: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";
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,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'];
@@ -286,10 +283,8 @@ exports.GetLeviesOrderByEnum = {
286
283
  TAG_DESC: 'TAG:desc',
287
284
  STATUS_ASC: 'STATUS:asc',
288
285
  STATUS_DESC: 'STATUS: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',
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
  };
@@ -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.19887756697",
3
+ "version": "2.14.7-develop.19662905954",
4
4
  "scripts": {
5
5
  "build": "tsc"
6
6
  },
@@ -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;