@channelpayments/node-sdk 1.131.0 → 1.135.0

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 (53) hide show
  1. package/dist/cjs/models/CreateMerchantAccountDto.d.ts +155 -0
  2. package/dist/cjs/models/CreateMerchantAccountDto.js +124 -0
  3. package/dist/cjs/models/CreateMerchantAccountDtoCFee.d.ts +40 -0
  4. package/dist/cjs/models/CreateMerchantAccountDtoCFee.js +57 -0
  5. package/dist/cjs/models/CreateMerchantAccountWithoutMerchantIdDto.d.ts +3 -3
  6. package/dist/cjs/models/CreateMerchantAccountWithoutMerchantIdDto.js +3 -3
  7. package/dist/cjs/models/CreateMerchantDto.d.ts +3 -3
  8. package/dist/cjs/models/CreateMerchantDto.js +3 -3
  9. package/dist/cjs/models/MerchantAccountEntity.d.ts +166 -0
  10. package/dist/cjs/models/MerchantAccountEntity.js +139 -0
  11. package/dist/cjs/models/MerchantAccountEntityCFee.d.ts +40 -0
  12. package/dist/cjs/models/MerchantAccountEntityCFee.js +57 -0
  13. package/dist/cjs/models/MerchantAccountServiceEntity.d.ts +3 -3
  14. package/dist/cjs/models/MerchantAccountServiceEntity.js +3 -3
  15. package/dist/cjs/models/UpdateMerchantAccountDto.d.ts +136 -0
  16. package/dist/cjs/models/UpdateMerchantAccountDto.js +111 -0
  17. package/dist/cjs/models/UpdateMerchantDto.d.ts +3 -3
  18. package/dist/cjs/models/UpdateMerchantDto.js +3 -3
  19. package/dist/{mjs/models/CreateMerchantDtoAddress.d.ts → cjs/models/UpdateMerchantDtoAddress.d.ts} +15 -15
  20. package/dist/cjs/models/{CreateMerchantDtoAddress.js → UpdateMerchantDtoAddress.js} +11 -11
  21. package/dist/cjs/models/index.d.ts +6 -3
  22. package/dist/cjs/models/index.js +6 -3
  23. package/dist/cjs/runtime.js +1 -1
  24. package/dist/mjs/models/CreateMerchantAccountDto.d.ts +155 -0
  25. package/dist/mjs/models/CreateMerchantAccountDto.js +117 -0
  26. package/dist/mjs/models/CreateMerchantAccountDtoCFee.d.ts +40 -0
  27. package/dist/mjs/models/{MerchantAccountServiceEntityCFee.js → CreateMerchantAccountDtoCFee.js} +7 -7
  28. package/dist/mjs/models/CreateMerchantAccountWithoutMerchantIdDto.d.ts +3 -3
  29. package/dist/mjs/models/CreateMerchantAccountWithoutMerchantIdDto.js +3 -3
  30. package/dist/mjs/models/CreateMerchantDto.d.ts +3 -3
  31. package/dist/mjs/models/CreateMerchantDto.js +3 -3
  32. package/dist/mjs/models/MerchantAccountEntity.d.ts +166 -0
  33. package/dist/mjs/models/MerchantAccountEntity.js +132 -0
  34. package/dist/mjs/models/MerchantAccountEntityCFee.d.ts +40 -0
  35. package/dist/mjs/models/{CreateMerchantAccountWithoutMerchantIdDtoCFee.js → MerchantAccountEntityCFee.js} +7 -7
  36. package/dist/mjs/models/MerchantAccountServiceEntity.d.ts +3 -3
  37. package/dist/mjs/models/MerchantAccountServiceEntity.js +3 -3
  38. package/dist/mjs/models/UpdateMerchantAccountDto.d.ts +136 -0
  39. package/dist/mjs/models/UpdateMerchantAccountDto.js +104 -0
  40. package/dist/mjs/models/UpdateMerchantDto.d.ts +3 -3
  41. package/dist/mjs/models/UpdateMerchantDto.js +3 -3
  42. package/dist/{cjs/models/CreateMerchantDtoAddress.d.ts → mjs/models/UpdateMerchantDtoAddress.d.ts} +15 -15
  43. package/dist/mjs/models/{CreateMerchantDtoAddress.js → UpdateMerchantDtoAddress.js} +6 -6
  44. package/dist/mjs/models/index.d.ts +6 -3
  45. package/dist/mjs/models/index.js +6 -3
  46. package/dist/mjs/runtime.js +1 -1
  47. package/package.json +1 -1
  48. package/dist/cjs/models/CreateMerchantAccountWithoutMerchantIdDtoCFee.d.ts +0 -40
  49. package/dist/cjs/models/CreateMerchantAccountWithoutMerchantIdDtoCFee.js +0 -57
  50. package/dist/cjs/models/MerchantAccountServiceEntityCFee.d.ts +0 -40
  51. package/dist/cjs/models/MerchantAccountServiceEntityCFee.js +0 -57
  52. package/dist/mjs/models/CreateMerchantAccountWithoutMerchantIdDtoCFee.d.ts +0 -40
  53. package/dist/mjs/models/MerchantAccountServiceEntityCFee.d.ts +0 -40
@@ -0,0 +1,155 @@
1
+ /**
2
+ * Channel Payments API
3
+ *
4
+ * NOTE: This class is auto generated. Do not edit the class manually.
5
+ *
6
+ */
7
+ import type { CreateMerchantAccountDtoCFee } from './CreateMerchantAccountDtoCFee';
8
+ import type { CreateMerchantConnectorWithoutMerchantAccountIdDto } from './CreateMerchantConnectorWithoutMerchantAccountIdDto';
9
+ /**
10
+ *
11
+ * @export
12
+ * @interface CreateMerchantAccountDto
13
+ */
14
+ export interface CreateMerchantAccountDto {
15
+ /**
16
+ * The associated merchant ID
17
+ * @type {string}
18
+ * @memberof CreateMerchantAccountDto
19
+ */
20
+ merchantId: string;
21
+ /**
22
+ * The issued MID (Merchant ID)
23
+ * @type {string}
24
+ * @memberof CreateMerchantAccountDto
25
+ */
26
+ issuedMid: string;
27
+ /**
28
+ * The payment method
29
+ * @type {string}
30
+ * @memberof CreateMerchantAccountDto
31
+ */
32
+ method: CreateMerchantAccountDtoMethodEnum;
33
+ /**
34
+ * The payment service provider
35
+ * @type {string}
36
+ * @memberof CreateMerchantAccountDto
37
+ */
38
+ psp: CreateMerchantAccountDtoPspEnum;
39
+ /**
40
+ *
41
+ * @type {CreateMerchantAccountDtoCFee}
42
+ * @memberof CreateMerchantAccountDto
43
+ */
44
+ cFee: CreateMerchantAccountDtoCFee;
45
+ /**
46
+ * The accepted card types
47
+ * @type {Array<string>}
48
+ * @memberof CreateMerchantAccountDto
49
+ */
50
+ cardTypes?: Array<CreateMerchantAccountDtoCardTypesEnum>;
51
+ /**
52
+ * The accepted card schemes
53
+ * @type {Array<string>}
54
+ * @memberof CreateMerchantAccountDto
55
+ */
56
+ cardSchemes?: Array<CreateMerchantAccountDtoCardSchemesEnum>;
57
+ /**
58
+ * The accepted currencies
59
+ * @type {Array<string>}
60
+ * @memberof CreateMerchantAccountDto
61
+ */
62
+ currencies?: Array<CreateMerchantAccountDtoCurrenciesEnum>;
63
+ /**
64
+ * The list of merchant connectors
65
+ * @type {Array<CreateMerchantConnectorWithoutMerchantAccountIdDto>}
66
+ * @memberof CreateMerchantAccountDto
67
+ */
68
+ connectors: Array<CreateMerchantConnectorWithoutMerchantAccountIdDto>;
69
+ /**
70
+ * The MCC (Merchant Category Code)
71
+ * @type {string}
72
+ * @memberof CreateMerchantAccountDto
73
+ */
74
+ mcc?: string;
75
+ /**
76
+ * The BIN (Bank Identification Number)
77
+ * @type {string}
78
+ * @memberof CreateMerchantAccountDto
79
+ */
80
+ bin?: string;
81
+ /**
82
+ * The chain or franchise information associated with the merchant
83
+ * @type {string}
84
+ * @memberof CreateMerchantAccountDto
85
+ */
86
+ chain?: string;
87
+ /**
88
+ * The store information associated with the merchant
89
+ * @type {string}
90
+ * @memberof CreateMerchantAccountDto
91
+ */
92
+ store?: string;
93
+ /**
94
+ * The agent information associated with the merchant
95
+ * @type {string}
96
+ * @memberof CreateMerchantAccountDto
97
+ */
98
+ agent?: string;
99
+ }
100
+ /**
101
+ * @export
102
+ */
103
+ export declare const CreateMerchantAccountDtoMethodEnum: {
104
+ readonly Card: "CARD";
105
+ readonly Ach: "ACH";
106
+ };
107
+ export type CreateMerchantAccountDtoMethodEnum = typeof CreateMerchantAccountDtoMethodEnum[keyof typeof CreateMerchantAccountDtoMethodEnum];
108
+ /**
109
+ * @export
110
+ */
111
+ export declare const CreateMerchantAccountDtoPspEnum: {
112
+ readonly Tsys: "TSYS";
113
+ readonly Nashville: "NASHVILLE";
114
+ readonly North: "NORTH";
115
+ readonly ChannelPayments: "CHANNEL_PAYMENTS";
116
+ };
117
+ export type CreateMerchantAccountDtoPspEnum = typeof CreateMerchantAccountDtoPspEnum[keyof typeof CreateMerchantAccountDtoPspEnum];
118
+ /**
119
+ * @export
120
+ */
121
+ export declare const CreateMerchantAccountDtoCardTypesEnum: {
122
+ readonly Credit: "CREDIT";
123
+ readonly Debit: "DEBIT";
124
+ readonly Prepaid: "PREPAID";
125
+ };
126
+ export type CreateMerchantAccountDtoCardTypesEnum = typeof CreateMerchantAccountDtoCardTypesEnum[keyof typeof CreateMerchantAccountDtoCardTypesEnum];
127
+ /**
128
+ * @export
129
+ */
130
+ export declare const CreateMerchantAccountDtoCardSchemesEnum: {
131
+ readonly Visa: "VISA";
132
+ readonly Mastercard: "MASTERCARD";
133
+ readonly Amex: "AMEX";
134
+ readonly Discover: "DISCOVER";
135
+ readonly Jcb: "JCB";
136
+ readonly DinersClub: "DINERS_CLUB";
137
+ readonly Maestro: "MAESTRO";
138
+ };
139
+ export type CreateMerchantAccountDtoCardSchemesEnum = typeof CreateMerchantAccountDtoCardSchemesEnum[keyof typeof CreateMerchantAccountDtoCardSchemesEnum];
140
+ /**
141
+ * @export
142
+ */
143
+ export declare const CreateMerchantAccountDtoCurrenciesEnum: {
144
+ readonly Usd: "USD";
145
+ readonly Aud: "AUD";
146
+ readonly Cad: "CAD";
147
+ };
148
+ export type CreateMerchantAccountDtoCurrenciesEnum = typeof CreateMerchantAccountDtoCurrenciesEnum[keyof typeof CreateMerchantAccountDtoCurrenciesEnum];
149
+ /**
150
+ * Check if a given object implements the CreateMerchantAccountDto interface.
151
+ */
152
+ export declare function instanceOfCreateMerchantAccountDto(value: object): boolean;
153
+ export declare function CreateMerchantAccountDtoFromJSON(json: any): CreateMerchantAccountDto;
154
+ export declare function CreateMerchantAccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateMerchantAccountDto;
155
+ export declare function CreateMerchantAccountDtoToJSON(value?: CreateMerchantAccountDto | null): any;
@@ -0,0 +1,124 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Channel Payments API
6
+ *
7
+ * NOTE: This class is auto generated. Do not edit the class manually.
8
+ *
9
+ */
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ exports.CreateMerchantAccountDtoToJSON = exports.CreateMerchantAccountDtoFromJSONTyped = exports.CreateMerchantAccountDtoFromJSON = exports.instanceOfCreateMerchantAccountDto = exports.CreateMerchantAccountDtoCurrenciesEnum = exports.CreateMerchantAccountDtoCardSchemesEnum = exports.CreateMerchantAccountDtoCardTypesEnum = exports.CreateMerchantAccountDtoPspEnum = exports.CreateMerchantAccountDtoMethodEnum = void 0;
12
+ const runtime_1 = require("../runtime");
13
+ const CreateMerchantAccountDtoCFee_1 = require("./CreateMerchantAccountDtoCFee");
14
+ const CreateMerchantConnectorWithoutMerchantAccountIdDto_1 = require("./CreateMerchantConnectorWithoutMerchantAccountIdDto");
15
+ /**
16
+ * @export
17
+ */
18
+ exports.CreateMerchantAccountDtoMethodEnum = {
19
+ Card: 'CARD',
20
+ Ach: 'ACH'
21
+ };
22
+ /**
23
+ * @export
24
+ */
25
+ exports.CreateMerchantAccountDtoPspEnum = {
26
+ Tsys: 'TSYS',
27
+ Nashville: 'NASHVILLE',
28
+ North: 'NORTH',
29
+ ChannelPayments: 'CHANNEL_PAYMENTS'
30
+ };
31
+ /**
32
+ * @export
33
+ */
34
+ exports.CreateMerchantAccountDtoCardTypesEnum = {
35
+ Credit: 'CREDIT',
36
+ Debit: 'DEBIT',
37
+ Prepaid: 'PREPAID'
38
+ };
39
+ /**
40
+ * @export
41
+ */
42
+ exports.CreateMerchantAccountDtoCardSchemesEnum = {
43
+ Visa: 'VISA',
44
+ Mastercard: 'MASTERCARD',
45
+ Amex: 'AMEX',
46
+ Discover: 'DISCOVER',
47
+ Jcb: 'JCB',
48
+ DinersClub: 'DINERS_CLUB',
49
+ Maestro: 'MAESTRO'
50
+ };
51
+ /**
52
+ * @export
53
+ */
54
+ exports.CreateMerchantAccountDtoCurrenciesEnum = {
55
+ Usd: 'USD',
56
+ Aud: 'AUD',
57
+ Cad: 'CAD'
58
+ };
59
+ /**
60
+ * Check if a given object implements the CreateMerchantAccountDto interface.
61
+ */
62
+ function instanceOfCreateMerchantAccountDto(value) {
63
+ let isInstance = true;
64
+ isInstance = isInstance && "merchantId" in value;
65
+ isInstance = isInstance && "issuedMid" in value;
66
+ isInstance = isInstance && "method" in value;
67
+ isInstance = isInstance && "psp" in value;
68
+ isInstance = isInstance && "cFee" in value;
69
+ isInstance = isInstance && "connectors" in value;
70
+ return isInstance;
71
+ }
72
+ exports.instanceOfCreateMerchantAccountDto = instanceOfCreateMerchantAccountDto;
73
+ function CreateMerchantAccountDtoFromJSON(json) {
74
+ return CreateMerchantAccountDtoFromJSONTyped(json, false);
75
+ }
76
+ exports.CreateMerchantAccountDtoFromJSON = CreateMerchantAccountDtoFromJSON;
77
+ function CreateMerchantAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
78
+ if ((json === undefined) || (json === null)) {
79
+ return json;
80
+ }
81
+ const typed = {
82
+ 'merchantId': json['merchantId'],
83
+ 'issuedMid': json['issuedMid'],
84
+ 'method': json['method'],
85
+ 'psp': json['psp'],
86
+ 'cFee': (0, CreateMerchantAccountDtoCFee_1.CreateMerchantAccountDtoCFeeFromJSON)(json['cFee']),
87
+ 'cardTypes': !(0, runtime_1.exists)(json, 'cardTypes') ? undefined : json['cardTypes'],
88
+ 'cardSchemes': !(0, runtime_1.exists)(json, 'cardSchemes') ? undefined : json['cardSchemes'],
89
+ 'currencies': !(0, runtime_1.exists)(json, 'currencies') ? undefined : json['currencies'],
90
+ 'connectors': (json['connectors'].map(CreateMerchantConnectorWithoutMerchantAccountIdDto_1.CreateMerchantConnectorWithoutMerchantAccountIdDtoFromJSON)),
91
+ 'mcc': !(0, runtime_1.exists)(json, 'mcc') ? undefined : json['mcc'],
92
+ 'bin': !(0, runtime_1.exists)(json, 'bin') ? undefined : json['bin'],
93
+ 'chain': !(0, runtime_1.exists)(json, 'chain') ? undefined : json['chain'],
94
+ 'store': !(0, runtime_1.exists)(json, 'store') ? undefined : json['store'],
95
+ 'agent': !(0, runtime_1.exists)(json, 'agent') ? undefined : json['agent'],
96
+ };
97
+ return (0, runtime_1.removeNullUndefined)(typed);
98
+ }
99
+ exports.CreateMerchantAccountDtoFromJSONTyped = CreateMerchantAccountDtoFromJSONTyped;
100
+ function CreateMerchantAccountDtoToJSON(value) {
101
+ if (value === undefined) {
102
+ return undefined;
103
+ }
104
+ if (value === null) {
105
+ return null;
106
+ }
107
+ return {
108
+ 'merchantId': value.merchantId,
109
+ 'issuedMid': value.issuedMid,
110
+ 'method': value.method,
111
+ 'psp': value.psp,
112
+ 'cFee': (0, CreateMerchantAccountDtoCFee_1.CreateMerchantAccountDtoCFeeToJSON)(value.cFee),
113
+ 'cardTypes': value.cardTypes,
114
+ 'cardSchemes': value.cardSchemes,
115
+ 'currencies': value.currencies,
116
+ 'connectors': (value.connectors.map(CreateMerchantConnectorWithoutMerchantAccountIdDto_1.CreateMerchantConnectorWithoutMerchantAccountIdDtoToJSON)),
117
+ 'mcc': value.mcc,
118
+ 'bin': value.bin,
119
+ 'chain': value.chain,
120
+ 'store': value.store,
121
+ 'agent': value.agent,
122
+ };
123
+ }
124
+ exports.CreateMerchantAccountDtoToJSON = CreateMerchantAccountDtoToJSON;
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Channel Payments API
3
+ *
4
+ * NOTE: This class is auto generated. Do not edit the class manually.
5
+ *
6
+ */
7
+ /**
8
+ * The CFee details
9
+ * @export
10
+ * @interface CreateMerchantAccountDtoCFee
11
+ */
12
+ export interface CreateMerchantAccountDtoCFee {
13
+ /**
14
+ * The type of the cFee.
15
+ * @type {string}
16
+ * @memberof CreateMerchantAccountDtoCFee
17
+ */
18
+ type: CreateMerchantAccountDtoCFeeTypeEnum;
19
+ /**
20
+ * The rate of the cFee as an integer.
21
+ * @type {number}
22
+ * @memberof CreateMerchantAccountDtoCFee
23
+ */
24
+ rate: number;
25
+ }
26
+ /**
27
+ * @export
28
+ */
29
+ export declare const CreateMerchantAccountDtoCFeeTypeEnum: {
30
+ readonly Percentage: "PERCENTAGE";
31
+ readonly Fixed: "FIXED";
32
+ };
33
+ export type CreateMerchantAccountDtoCFeeTypeEnum = typeof CreateMerchantAccountDtoCFeeTypeEnum[keyof typeof CreateMerchantAccountDtoCFeeTypeEnum];
34
+ /**
35
+ * Check if a given object implements the CreateMerchantAccountDtoCFee interface.
36
+ */
37
+ export declare function instanceOfCreateMerchantAccountDtoCFee(value: object): boolean;
38
+ export declare function CreateMerchantAccountDtoCFeeFromJSON(json: any): CreateMerchantAccountDtoCFee;
39
+ export declare function CreateMerchantAccountDtoCFeeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateMerchantAccountDtoCFee;
40
+ export declare function CreateMerchantAccountDtoCFeeToJSON(value?: CreateMerchantAccountDtoCFee | null): any;
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Channel Payments API
6
+ *
7
+ * NOTE: This class is auto generated. Do not edit the class manually.
8
+ *
9
+ */
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ exports.CreateMerchantAccountDtoCFeeToJSON = exports.CreateMerchantAccountDtoCFeeFromJSONTyped = exports.CreateMerchantAccountDtoCFeeFromJSON = exports.instanceOfCreateMerchantAccountDtoCFee = exports.CreateMerchantAccountDtoCFeeTypeEnum = void 0;
12
+ const runtime_1 = require("../runtime");
13
+ /**
14
+ * @export
15
+ */
16
+ exports.CreateMerchantAccountDtoCFeeTypeEnum = {
17
+ Percentage: 'PERCENTAGE',
18
+ Fixed: 'FIXED'
19
+ };
20
+ /**
21
+ * Check if a given object implements the CreateMerchantAccountDtoCFee interface.
22
+ */
23
+ function instanceOfCreateMerchantAccountDtoCFee(value) {
24
+ let isInstance = true;
25
+ isInstance = isInstance && "type" in value;
26
+ isInstance = isInstance && "rate" in value;
27
+ return isInstance;
28
+ }
29
+ exports.instanceOfCreateMerchantAccountDtoCFee = instanceOfCreateMerchantAccountDtoCFee;
30
+ function CreateMerchantAccountDtoCFeeFromJSON(json) {
31
+ return CreateMerchantAccountDtoCFeeFromJSONTyped(json, false);
32
+ }
33
+ exports.CreateMerchantAccountDtoCFeeFromJSON = CreateMerchantAccountDtoCFeeFromJSON;
34
+ function CreateMerchantAccountDtoCFeeFromJSONTyped(json, ignoreDiscriminator) {
35
+ if ((json === undefined) || (json === null)) {
36
+ return json;
37
+ }
38
+ const typed = {
39
+ 'type': json['type'],
40
+ 'rate': json['rate'],
41
+ };
42
+ return (0, runtime_1.removeNullUndefined)(typed);
43
+ }
44
+ exports.CreateMerchantAccountDtoCFeeFromJSONTyped = CreateMerchantAccountDtoCFeeFromJSONTyped;
45
+ function CreateMerchantAccountDtoCFeeToJSON(value) {
46
+ if (value === undefined) {
47
+ return undefined;
48
+ }
49
+ if (value === null) {
50
+ return null;
51
+ }
52
+ return {
53
+ 'type': value.type,
54
+ 'rate': value.rate,
55
+ };
56
+ }
57
+ exports.CreateMerchantAccountDtoCFeeToJSON = CreateMerchantAccountDtoCFeeToJSON;
@@ -4,7 +4,7 @@
4
4
  * NOTE: This class is auto generated. Do not edit the class manually.
5
5
  *
6
6
  */
7
- import type { CreateMerchantAccountWithoutMerchantIdDtoCFee } from './CreateMerchantAccountWithoutMerchantIdDtoCFee';
7
+ import type { CreateMerchantAccountDtoCFee } from './CreateMerchantAccountDtoCFee';
8
8
  import type { CreateMerchantConnectorWithoutMerchantAccountIdDto } from './CreateMerchantConnectorWithoutMerchantAccountIdDto';
9
9
  /**
10
10
  *
@@ -32,10 +32,10 @@ export interface CreateMerchantAccountWithoutMerchantIdDto {
32
32
  psp: CreateMerchantAccountWithoutMerchantIdDtoPspEnum;
33
33
  /**
34
34
  *
35
- * @type {CreateMerchantAccountWithoutMerchantIdDtoCFee}
35
+ * @type {CreateMerchantAccountDtoCFee}
36
36
  * @memberof CreateMerchantAccountWithoutMerchantIdDto
37
37
  */
38
- cFee: CreateMerchantAccountWithoutMerchantIdDtoCFee;
38
+ cFee: CreateMerchantAccountDtoCFee;
39
39
  /**
40
40
  * The accepted card types
41
41
  * @type {Array<string>}
@@ -10,7 +10,7 @@
10
10
  Object.defineProperty(exports, "__esModule", { value: true });
11
11
  exports.CreateMerchantAccountWithoutMerchantIdDtoToJSON = exports.CreateMerchantAccountWithoutMerchantIdDtoFromJSONTyped = exports.CreateMerchantAccountWithoutMerchantIdDtoFromJSON = exports.instanceOfCreateMerchantAccountWithoutMerchantIdDto = exports.CreateMerchantAccountWithoutMerchantIdDtoCurrenciesEnum = exports.CreateMerchantAccountWithoutMerchantIdDtoCardSchemesEnum = exports.CreateMerchantAccountWithoutMerchantIdDtoCardTypesEnum = exports.CreateMerchantAccountWithoutMerchantIdDtoPspEnum = exports.CreateMerchantAccountWithoutMerchantIdDtoMethodEnum = void 0;
12
12
  const runtime_1 = require("../runtime");
13
- const CreateMerchantAccountWithoutMerchantIdDtoCFee_1 = require("./CreateMerchantAccountWithoutMerchantIdDtoCFee");
13
+ const CreateMerchantAccountDtoCFee_1 = require("./CreateMerchantAccountDtoCFee");
14
14
  const CreateMerchantConnectorWithoutMerchantAccountIdDto_1 = require("./CreateMerchantConnectorWithoutMerchantAccountIdDto");
15
15
  /**
16
16
  * @export
@@ -81,7 +81,7 @@ function CreateMerchantAccountWithoutMerchantIdDtoFromJSONTyped(json, ignoreDisc
81
81
  'issuedMid': json['issuedMid'],
82
82
  'method': json['method'],
83
83
  'psp': json['psp'],
84
- 'cFee': (0, CreateMerchantAccountWithoutMerchantIdDtoCFee_1.CreateMerchantAccountWithoutMerchantIdDtoCFeeFromJSON)(json['cFee']),
84
+ 'cFee': (0, CreateMerchantAccountDtoCFee_1.CreateMerchantAccountDtoCFeeFromJSON)(json['cFee']),
85
85
  'cardTypes': !(0, runtime_1.exists)(json, 'cardTypes') ? undefined : json['cardTypes'],
86
86
  'cardSchemes': !(0, runtime_1.exists)(json, 'cardSchemes') ? undefined : json['cardSchemes'],
87
87
  'currencies': !(0, runtime_1.exists)(json, 'currencies') ? undefined : json['currencies'],
@@ -106,7 +106,7 @@ function CreateMerchantAccountWithoutMerchantIdDtoToJSON(value) {
106
106
  'issuedMid': value.issuedMid,
107
107
  'method': value.method,
108
108
  'psp': value.psp,
109
- 'cFee': (0, CreateMerchantAccountWithoutMerchantIdDtoCFee_1.CreateMerchantAccountWithoutMerchantIdDtoCFeeToJSON)(value.cFee),
109
+ 'cFee': (0, CreateMerchantAccountDtoCFee_1.CreateMerchantAccountDtoCFeeToJSON)(value.cFee),
110
110
  'cardTypes': value.cardTypes,
111
111
  'cardSchemes': value.cardSchemes,
112
112
  'currencies': value.currencies,
@@ -5,7 +5,7 @@
5
5
  *
6
6
  */
7
7
  import type { CreateMerchantAccountWithoutMerchantIdDto } from './CreateMerchantAccountWithoutMerchantIdDto';
8
- import type { CreateMerchantDtoAddress } from './CreateMerchantDtoAddress';
8
+ import type { UpdateMerchantDtoAddress } from './UpdateMerchantDtoAddress';
9
9
  /**
10
10
  *
11
11
  * @export
@@ -32,10 +32,10 @@ export interface CreateMerchantDto {
32
32
  phoneNumber: string;
33
33
  /**
34
34
  *
35
- * @type {CreateMerchantDtoAddress}
35
+ * @type {UpdateMerchantDtoAddress}
36
36
  * @memberof CreateMerchantDto
37
37
  */
38
- address: CreateMerchantDtoAddress;
38
+ address: UpdateMerchantDtoAddress;
39
39
  /**
40
40
  * The website URL of the merchant.
41
41
  * @type {string}
@@ -11,7 +11,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
11
11
  exports.CreateMerchantDtoToJSON = exports.CreateMerchantDtoFromJSONTyped = exports.CreateMerchantDtoFromJSON = exports.instanceOfCreateMerchantDto = void 0;
12
12
  const runtime_1 = require("../runtime");
13
13
  const CreateMerchantAccountWithoutMerchantIdDto_1 = require("./CreateMerchantAccountWithoutMerchantIdDto");
14
- const CreateMerchantDtoAddress_1 = require("./CreateMerchantDtoAddress");
14
+ const UpdateMerchantDtoAddress_1 = require("./UpdateMerchantDtoAddress");
15
15
  /**
16
16
  * Check if a given object implements the CreateMerchantDto interface.
17
17
  */
@@ -36,7 +36,7 @@ function CreateMerchantDtoFromJSONTyped(json, ignoreDiscriminator) {
36
36
  'name': json['name'],
37
37
  'email': json['email'],
38
38
  'phoneNumber': json['phoneNumber'],
39
- 'address': (0, CreateMerchantDtoAddress_1.CreateMerchantDtoAddressFromJSON)(json['address']),
39
+ 'address': (0, UpdateMerchantDtoAddress_1.UpdateMerchantDtoAddressFromJSON)(json['address']),
40
40
  'website': !(0, runtime_1.exists)(json, 'website') ? undefined : json['website'],
41
41
  'parentMerchantId': !(0, runtime_1.exists)(json, 'parentMerchantId') ? undefined : json['parentMerchantId'],
42
42
  'merchantAccounts': !(0, runtime_1.exists)(json, 'merchantAccounts') ? undefined : (json['merchantAccounts'].map(CreateMerchantAccountWithoutMerchantIdDto_1.CreateMerchantAccountWithoutMerchantIdDtoFromJSON)),
@@ -55,7 +55,7 @@ function CreateMerchantDtoToJSON(value) {
55
55
  'name': value.name,
56
56
  'email': value.email,
57
57
  'phoneNumber': value.phoneNumber,
58
- 'address': (0, CreateMerchantDtoAddress_1.CreateMerchantDtoAddressToJSON)(value.address),
58
+ 'address': (0, UpdateMerchantDtoAddress_1.UpdateMerchantDtoAddressToJSON)(value.address),
59
59
  'website': value.website,
60
60
  'parentMerchantId': value.parentMerchantId,
61
61
  'merchantAccounts': value.merchantAccounts === undefined ? undefined : (value.merchantAccounts.map(CreateMerchantAccountWithoutMerchantIdDto_1.CreateMerchantAccountWithoutMerchantIdDtoToJSON)),
@@ -0,0 +1,166 @@
1
+ /**
2
+ * Channel Payments API
3
+ *
4
+ * NOTE: This class is auto generated. Do not edit the class manually.
5
+ *
6
+ */
7
+ import type { MerchantAccountEntityCFee } from './MerchantAccountEntityCFee';
8
+ import type { MerchantConnectorServiceEntity } from './MerchantConnectorServiceEntity';
9
+ /**
10
+ *
11
+ * @export
12
+ * @interface MerchantAccountEntity
13
+ */
14
+ export interface MerchantAccountEntity {
15
+ /**
16
+ * The alphanumeric ID of the merchant account.
17
+ * @type {string}
18
+ * @memberof MerchantAccountEntity
19
+ */
20
+ merchantAccountId: string;
21
+ /**
22
+ * The associated merchant ID.
23
+ * @type {string}
24
+ * @memberof MerchantAccountEntity
25
+ */
26
+ merchantId?: string;
27
+ /**
28
+ * The issued MID (Merchant ID).
29
+ * @type {string}
30
+ * @memberof MerchantAccountEntity
31
+ */
32
+ issuedMid: string;
33
+ /**
34
+ * The payment service provider.
35
+ * @type {string}
36
+ * @memberof MerchantAccountEntity
37
+ */
38
+ psp: MerchantAccountEntityPspEnum;
39
+ /**
40
+ *
41
+ * @type {MerchantAccountEntityCFee}
42
+ * @memberof MerchantAccountEntity
43
+ */
44
+ cFee: MerchantAccountEntityCFee;
45
+ /**
46
+ * The date the merchant was created.
47
+ * @type {Date}
48
+ * @memberof MerchantAccountEntity
49
+ */
50
+ createdAt: Date;
51
+ /**
52
+ * The date the merchant was last updated.
53
+ * @type {Date}
54
+ * @memberof MerchantAccountEntity
55
+ */
56
+ updatedAt: Date;
57
+ /**
58
+ * The payment method.
59
+ * @type {string}
60
+ * @memberof MerchantAccountEntity
61
+ */
62
+ method: MerchantAccountEntityMethodEnum;
63
+ /**
64
+ * The status of the merchant account.
65
+ * @type {string}
66
+ * @memberof MerchantAccountEntity
67
+ */
68
+ status: MerchantAccountEntityStatusEnum;
69
+ /**
70
+ * The card schemes.
71
+ * @type {Array<string>}
72
+ * @memberof MerchantAccountEntity
73
+ */
74
+ cardSchemes: Array<MerchantAccountEntityCardSchemesEnum>;
75
+ /**
76
+ * The accepted currencies.
77
+ * @type {Array<string>}
78
+ * @memberof MerchantAccountEntity
79
+ */
80
+ currencies: Array<MerchantAccountEntityCurrenciesEnum>;
81
+ /**
82
+ * The accepted card types.
83
+ * @type {Array<string>}
84
+ * @memberof MerchantAccountEntity
85
+ */
86
+ cardTypes: Array<MerchantAccountEntityCardTypesEnum>;
87
+ /**
88
+ * The name of the merchant account.
89
+ * @type {string}
90
+ * @memberof MerchantAccountEntity
91
+ */
92
+ name?: string;
93
+ /**
94
+ * The connectors.
95
+ * @type {Array<MerchantConnectorServiceEntity>}
96
+ * @memberof MerchantAccountEntity
97
+ */
98
+ connectors?: Array<MerchantConnectorServiceEntity>;
99
+ }
100
+ /**
101
+ * @export
102
+ */
103
+ export declare const MerchantAccountEntityPspEnum: {
104
+ readonly Tsys: "TSYS";
105
+ readonly Nashville: "NASHVILLE";
106
+ readonly North: "NORTH";
107
+ readonly ChannelPayments: "CHANNEL_PAYMENTS";
108
+ };
109
+ export type MerchantAccountEntityPspEnum = typeof MerchantAccountEntityPspEnum[keyof typeof MerchantAccountEntityPspEnum];
110
+ /**
111
+ * @export
112
+ */
113
+ export declare const MerchantAccountEntityMethodEnum: {
114
+ readonly Card: "CARD";
115
+ readonly Ach: "ACH";
116
+ };
117
+ export type MerchantAccountEntityMethodEnum = typeof MerchantAccountEntityMethodEnum[keyof typeof MerchantAccountEntityMethodEnum];
118
+ /**
119
+ * @export
120
+ */
121
+ export declare const MerchantAccountEntityStatusEnum: {
122
+ readonly Pending: "PENDING";
123
+ readonly Active: "ACTIVE";
124
+ readonly Inactive: "INACTIVE";
125
+ readonly Suspended: "SUSPENDED";
126
+ readonly Closed: "CLOSED";
127
+ };
128
+ export type MerchantAccountEntityStatusEnum = typeof MerchantAccountEntityStatusEnum[keyof typeof MerchantAccountEntityStatusEnum];
129
+ /**
130
+ * @export
131
+ */
132
+ export declare const MerchantAccountEntityCardSchemesEnum: {
133
+ readonly Visa: "VISA";
134
+ readonly Mastercard: "MASTERCARD";
135
+ readonly Amex: "AMEX";
136
+ readonly Discover: "DISCOVER";
137
+ readonly Jcb: "JCB";
138
+ readonly DinersClub: "DINERS_CLUB";
139
+ readonly Maestro: "MAESTRO";
140
+ };
141
+ export type MerchantAccountEntityCardSchemesEnum = typeof MerchantAccountEntityCardSchemesEnum[keyof typeof MerchantAccountEntityCardSchemesEnum];
142
+ /**
143
+ * @export
144
+ */
145
+ export declare const MerchantAccountEntityCurrenciesEnum: {
146
+ readonly Usd: "USD";
147
+ readonly Aud: "AUD";
148
+ readonly Cad: "CAD";
149
+ };
150
+ export type MerchantAccountEntityCurrenciesEnum = typeof MerchantAccountEntityCurrenciesEnum[keyof typeof MerchantAccountEntityCurrenciesEnum];
151
+ /**
152
+ * @export
153
+ */
154
+ export declare const MerchantAccountEntityCardTypesEnum: {
155
+ readonly Credit: "CREDIT";
156
+ readonly Debit: "DEBIT";
157
+ readonly Prepaid: "PREPAID";
158
+ };
159
+ export type MerchantAccountEntityCardTypesEnum = typeof MerchantAccountEntityCardTypesEnum[keyof typeof MerchantAccountEntityCardTypesEnum];
160
+ /**
161
+ * Check if a given object implements the MerchantAccountEntity interface.
162
+ */
163
+ export declare function instanceOfMerchantAccountEntity(value: object): boolean;
164
+ export declare function MerchantAccountEntityFromJSON(json: any): MerchantAccountEntity;
165
+ export declare function MerchantAccountEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): MerchantAccountEntity;
166
+ export declare function MerchantAccountEntityToJSON(value?: MerchantAccountEntity | null): any;