@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,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;
@@ -0,0 +1,132 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Channel Payments API
5
+ *
6
+ * NOTE: This class is auto generated. Do not edit the class manually.
7
+ *
8
+ */
9
+ import { exists, removeNullUndefined } from '../runtime';
10
+ import { MerchantAccountEntityCFeeFromJSON, MerchantAccountEntityCFeeToJSON, } from './MerchantAccountEntityCFee';
11
+ import { MerchantConnectorServiceEntityFromJSON, MerchantConnectorServiceEntityToJSON, } from './MerchantConnectorServiceEntity';
12
+ /**
13
+ * @export
14
+ */
15
+ export const MerchantAccountEntityPspEnum = {
16
+ Tsys: 'TSYS',
17
+ Nashville: 'NASHVILLE',
18
+ North: 'NORTH',
19
+ ChannelPayments: 'CHANNEL_PAYMENTS'
20
+ };
21
+ /**
22
+ * @export
23
+ */
24
+ export const MerchantAccountEntityMethodEnum = {
25
+ Card: 'CARD',
26
+ Ach: 'ACH'
27
+ };
28
+ /**
29
+ * @export
30
+ */
31
+ export const MerchantAccountEntityStatusEnum = {
32
+ Pending: 'PENDING',
33
+ Active: 'ACTIVE',
34
+ Inactive: 'INACTIVE',
35
+ Suspended: 'SUSPENDED',
36
+ Closed: 'CLOSED'
37
+ };
38
+ /**
39
+ * @export
40
+ */
41
+ export const MerchantAccountEntityCardSchemesEnum = {
42
+ Visa: 'VISA',
43
+ Mastercard: 'MASTERCARD',
44
+ Amex: 'AMEX',
45
+ Discover: 'DISCOVER',
46
+ Jcb: 'JCB',
47
+ DinersClub: 'DINERS_CLUB',
48
+ Maestro: 'MAESTRO'
49
+ };
50
+ /**
51
+ * @export
52
+ */
53
+ export const MerchantAccountEntityCurrenciesEnum = {
54
+ Usd: 'USD',
55
+ Aud: 'AUD',
56
+ Cad: 'CAD'
57
+ };
58
+ /**
59
+ * @export
60
+ */
61
+ export const MerchantAccountEntityCardTypesEnum = {
62
+ Credit: 'CREDIT',
63
+ Debit: 'DEBIT',
64
+ Prepaid: 'PREPAID'
65
+ };
66
+ /**
67
+ * Check if a given object implements the MerchantAccountEntity interface.
68
+ */
69
+ export function instanceOfMerchantAccountEntity(value) {
70
+ let isInstance = true;
71
+ isInstance = isInstance && "merchantAccountId" in value;
72
+ isInstance = isInstance && "issuedMid" in value;
73
+ isInstance = isInstance && "psp" in value;
74
+ isInstance = isInstance && "cFee" in value;
75
+ isInstance = isInstance && "createdAt" in value;
76
+ isInstance = isInstance && "updatedAt" in value;
77
+ isInstance = isInstance && "method" in value;
78
+ isInstance = isInstance && "status" in value;
79
+ isInstance = isInstance && "cardSchemes" in value;
80
+ isInstance = isInstance && "currencies" in value;
81
+ isInstance = isInstance && "cardTypes" in value;
82
+ return isInstance;
83
+ }
84
+ export function MerchantAccountEntityFromJSON(json) {
85
+ return MerchantAccountEntityFromJSONTyped(json, false);
86
+ }
87
+ export function MerchantAccountEntityFromJSONTyped(json, ignoreDiscriminator) {
88
+ if ((json === undefined) || (json === null)) {
89
+ return json;
90
+ }
91
+ const typed = {
92
+ 'merchantAccountId': json['merchantAccountId'],
93
+ 'merchantId': !exists(json, 'merchantId') ? undefined : json['merchantId'],
94
+ 'issuedMid': json['issuedMid'],
95
+ 'psp': json['psp'],
96
+ 'cFee': MerchantAccountEntityCFeeFromJSON(json['cFee']),
97
+ 'createdAt': (new Date(json['createdAt'])),
98
+ 'updatedAt': (new Date(json['updatedAt'])),
99
+ 'method': json['method'],
100
+ 'status': json['status'],
101
+ 'cardSchemes': json['cardSchemes'],
102
+ 'currencies': json['currencies'],
103
+ 'cardTypes': json['cardTypes'],
104
+ 'name': !exists(json, 'name') ? undefined : json['name'],
105
+ 'connectors': !exists(json, 'connectors') ? undefined : (json['connectors'].map(MerchantConnectorServiceEntityFromJSON)),
106
+ };
107
+ return removeNullUndefined(typed);
108
+ }
109
+ export function MerchantAccountEntityToJSON(value) {
110
+ if (value === undefined) {
111
+ return undefined;
112
+ }
113
+ if (value === null) {
114
+ return null;
115
+ }
116
+ return {
117
+ 'merchantAccountId': value.merchantAccountId,
118
+ 'merchantId': value.merchantId,
119
+ 'issuedMid': value.issuedMid,
120
+ 'psp': value.psp,
121
+ 'cFee': MerchantAccountEntityCFeeToJSON(value.cFee),
122
+ 'createdAt': (value.createdAt.toISOString()),
123
+ 'updatedAt': (value.updatedAt.toISOString()),
124
+ 'method': value.method,
125
+ 'status': value.status,
126
+ 'cardSchemes': value.cardSchemes,
127
+ 'currencies': value.currencies,
128
+ 'cardTypes': value.cardTypes,
129
+ 'name': value.name,
130
+ 'connectors': value.connectors === undefined ? undefined : (value.connectors.map(MerchantConnectorServiceEntityToJSON)),
131
+ };
132
+ }
@@ -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 MerchantAccountEntityCFee
11
+ */
12
+ export interface MerchantAccountEntityCFee {
13
+ /**
14
+ * The type of the CFee.
15
+ * @type {string}
16
+ * @memberof MerchantAccountEntityCFee
17
+ */
18
+ type: MerchantAccountEntityCFeeTypeEnum;
19
+ /**
20
+ * The rate of the CFee as an integer.
21
+ * @type {number}
22
+ * @memberof MerchantAccountEntityCFee
23
+ */
24
+ rate: number;
25
+ }
26
+ /**
27
+ * @export
28
+ */
29
+ export declare const MerchantAccountEntityCFeeTypeEnum: {
30
+ readonly Percentage: "PERCENTAGE";
31
+ readonly Fixed: "FIXED";
32
+ };
33
+ export type MerchantAccountEntityCFeeTypeEnum = typeof MerchantAccountEntityCFeeTypeEnum[keyof typeof MerchantAccountEntityCFeeTypeEnum];
34
+ /**
35
+ * Check if a given object implements the MerchantAccountEntityCFee interface.
36
+ */
37
+ export declare function instanceOfMerchantAccountEntityCFee(value: object): boolean;
38
+ export declare function MerchantAccountEntityCFeeFromJSON(json: any): MerchantAccountEntityCFee;
39
+ export declare function MerchantAccountEntityCFeeFromJSONTyped(json: any, ignoreDiscriminator: boolean): MerchantAccountEntityCFee;
40
+ export declare function MerchantAccountEntityCFeeToJSON(value?: MerchantAccountEntityCFee | null): any;
@@ -10,23 +10,23 @@ import { removeNullUndefined } from '../runtime';
10
10
  /**
11
11
  * @export
12
12
  */
13
- export const CreateMerchantAccountWithoutMerchantIdDtoCFeeTypeEnum = {
13
+ export const MerchantAccountEntityCFeeTypeEnum = {
14
14
  Percentage: 'PERCENTAGE',
15
15
  Fixed: 'FIXED'
16
16
  };
17
17
  /**
18
- * Check if a given object implements the CreateMerchantAccountWithoutMerchantIdDtoCFee interface.
18
+ * Check if a given object implements the MerchantAccountEntityCFee interface.
19
19
  */
20
- export function instanceOfCreateMerchantAccountWithoutMerchantIdDtoCFee(value) {
20
+ export function instanceOfMerchantAccountEntityCFee(value) {
21
21
  let isInstance = true;
22
22
  isInstance = isInstance && "type" in value;
23
23
  isInstance = isInstance && "rate" in value;
24
24
  return isInstance;
25
25
  }
26
- export function CreateMerchantAccountWithoutMerchantIdDtoCFeeFromJSON(json) {
27
- return CreateMerchantAccountWithoutMerchantIdDtoCFeeFromJSONTyped(json, false);
26
+ export function MerchantAccountEntityCFeeFromJSON(json) {
27
+ return MerchantAccountEntityCFeeFromJSONTyped(json, false);
28
28
  }
29
- export function CreateMerchantAccountWithoutMerchantIdDtoCFeeFromJSONTyped(json, ignoreDiscriminator) {
29
+ export function MerchantAccountEntityCFeeFromJSONTyped(json, ignoreDiscriminator) {
30
30
  if ((json === undefined) || (json === null)) {
31
31
  return json;
32
32
  }
@@ -36,7 +36,7 @@ export function CreateMerchantAccountWithoutMerchantIdDtoCFeeFromJSONTyped(json,
36
36
  };
37
37
  return removeNullUndefined(typed);
38
38
  }
39
- export function CreateMerchantAccountWithoutMerchantIdDtoCFeeToJSON(value) {
39
+ export function MerchantAccountEntityCFeeToJSON(value) {
40
40
  if (value === undefined) {
41
41
  return undefined;
42
42
  }
@@ -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 { MerchantAccountServiceEntityCFee } from './MerchantAccountServiceEntityCFee';
7
+ import type { MerchantAccountEntityCFee } from './MerchantAccountEntityCFee';
8
8
  import type { MerchantConnectorServiceEntity } from './MerchantConnectorServiceEntity';
9
9
  /**
10
10
  *
@@ -38,10 +38,10 @@ export interface MerchantAccountServiceEntity {
38
38
  psp: MerchantAccountServiceEntityPspEnum;
39
39
  /**
40
40
  *
41
- * @type {MerchantAccountServiceEntityCFee}
41
+ * @type {MerchantAccountEntityCFee}
42
42
  * @memberof MerchantAccountServiceEntity
43
43
  */
44
- cFee: MerchantAccountServiceEntityCFee;
44
+ cFee: MerchantAccountEntityCFee;
45
45
  /**
46
46
  * The date the merchant was created.
47
47
  * @type {Date}
@@ -7,7 +7,7 @@
7
7
  *
8
8
  */
9
9
  import { exists, removeNullUndefined } from '../runtime';
10
- import { MerchantAccountServiceEntityCFeeFromJSON, MerchantAccountServiceEntityCFeeToJSON, } from './MerchantAccountServiceEntityCFee';
10
+ import { MerchantAccountEntityCFeeFromJSON, MerchantAccountEntityCFeeToJSON, } from './MerchantAccountEntityCFee';
11
11
  import { MerchantConnectorServiceEntityFromJSON, MerchantConnectorServiceEntityToJSON, } from './MerchantConnectorServiceEntity';
12
12
  /**
13
13
  * @export
@@ -93,7 +93,7 @@ export function MerchantAccountServiceEntityFromJSONTyped(json, ignoreDiscrimina
93
93
  'merchantId': !exists(json, 'merchantId') ? undefined : json['merchantId'],
94
94
  'issuedMid': json['issuedMid'],
95
95
  'psp': json['psp'],
96
- 'cFee': MerchantAccountServiceEntityCFeeFromJSON(json['cFee']),
96
+ 'cFee': MerchantAccountEntityCFeeFromJSON(json['cFee']),
97
97
  'createdAt': (new Date(json['createdAt'])),
98
98
  'updatedAt': (new Date(json['updatedAt'])),
99
99
  'method': json['method'],
@@ -118,7 +118,7 @@ export function MerchantAccountServiceEntityToJSON(value) {
118
118
  'merchantId': value.merchantId,
119
119
  'issuedMid': value.issuedMid,
120
120
  'psp': value.psp,
121
- 'cFee': MerchantAccountServiceEntityCFeeToJSON(value.cFee),
121
+ 'cFee': MerchantAccountEntityCFeeToJSON(value.cFee),
122
122
  'createdAt': (value.createdAt.toISOString()),
123
123
  'updatedAt': (value.updatedAt.toISOString()),
124
124
  'method': value.method,
@@ -0,0 +1,136 @@
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
+ /**
9
+ *
10
+ * @export
11
+ * @interface UpdateMerchantAccountDto
12
+ */
13
+ export interface UpdateMerchantAccountDto {
14
+ /**
15
+ * The payment method
16
+ * @type {string}
17
+ * @memberof UpdateMerchantAccountDto
18
+ */
19
+ method?: UpdateMerchantAccountDtoMethodEnum;
20
+ /**
21
+ * The payment service provider
22
+ * @type {string}
23
+ * @memberof UpdateMerchantAccountDto
24
+ */
25
+ psp?: UpdateMerchantAccountDtoPspEnum;
26
+ /**
27
+ *
28
+ * @type {CreateMerchantAccountDtoCFee}
29
+ * @memberof UpdateMerchantAccountDto
30
+ */
31
+ cFee?: CreateMerchantAccountDtoCFee;
32
+ /**
33
+ * The accepted card types
34
+ * @type {Array<string>}
35
+ * @memberof UpdateMerchantAccountDto
36
+ */
37
+ cardTypes?: Array<UpdateMerchantAccountDtoCardTypesEnum>;
38
+ /**
39
+ * The accepted card schemes
40
+ * @type {Array<string>}
41
+ * @memberof UpdateMerchantAccountDto
42
+ */
43
+ cardSchemes?: Array<UpdateMerchantAccountDtoCardSchemesEnum>;
44
+ /**
45
+ * The accepted currencies
46
+ * @type {Array<string>}
47
+ * @memberof UpdateMerchantAccountDto
48
+ */
49
+ currencies?: Array<UpdateMerchantAccountDtoCurrenciesEnum>;
50
+ /**
51
+ * The MCC (Merchant Category Code)
52
+ * @type {string}
53
+ * @memberof UpdateMerchantAccountDto
54
+ */
55
+ mcc?: string;
56
+ /**
57
+ * The BIN (Bank Identification Number)
58
+ * @type {string}
59
+ * @memberof UpdateMerchantAccountDto
60
+ */
61
+ bin?: string;
62
+ /**
63
+ * The chain or franchise information associated with the merchant
64
+ * @type {string}
65
+ * @memberof UpdateMerchantAccountDto
66
+ */
67
+ chain?: string;
68
+ /**
69
+ * The store information associated with the merchant
70
+ * @type {string}
71
+ * @memberof UpdateMerchantAccountDto
72
+ */
73
+ store?: string;
74
+ /**
75
+ * The agent information associated with the merchant
76
+ * @type {string}
77
+ * @memberof UpdateMerchantAccountDto
78
+ */
79
+ agent?: string;
80
+ }
81
+ /**
82
+ * @export
83
+ */
84
+ export declare const UpdateMerchantAccountDtoMethodEnum: {
85
+ readonly Card: "CARD";
86
+ readonly Ach: "ACH";
87
+ };
88
+ export type UpdateMerchantAccountDtoMethodEnum = typeof UpdateMerchantAccountDtoMethodEnum[keyof typeof UpdateMerchantAccountDtoMethodEnum];
89
+ /**
90
+ * @export
91
+ */
92
+ export declare const UpdateMerchantAccountDtoPspEnum: {
93
+ readonly Tsys: "TSYS";
94
+ readonly Nashville: "NASHVILLE";
95
+ readonly North: "NORTH";
96
+ readonly ChannelPayments: "CHANNEL_PAYMENTS";
97
+ };
98
+ export type UpdateMerchantAccountDtoPspEnum = typeof UpdateMerchantAccountDtoPspEnum[keyof typeof UpdateMerchantAccountDtoPspEnum];
99
+ /**
100
+ * @export
101
+ */
102
+ export declare const UpdateMerchantAccountDtoCardTypesEnum: {
103
+ readonly Credit: "CREDIT";
104
+ readonly Debit: "DEBIT";
105
+ readonly Prepaid: "PREPAID";
106
+ };
107
+ export type UpdateMerchantAccountDtoCardTypesEnum = typeof UpdateMerchantAccountDtoCardTypesEnum[keyof typeof UpdateMerchantAccountDtoCardTypesEnum];
108
+ /**
109
+ * @export
110
+ */
111
+ export declare const UpdateMerchantAccountDtoCardSchemesEnum: {
112
+ readonly Visa: "VISA";
113
+ readonly Mastercard: "MASTERCARD";
114
+ readonly Amex: "AMEX";
115
+ readonly Discover: "DISCOVER";
116
+ readonly Jcb: "JCB";
117
+ readonly DinersClub: "DINERS_CLUB";
118
+ readonly Maestro: "MAESTRO";
119
+ };
120
+ export type UpdateMerchantAccountDtoCardSchemesEnum = typeof UpdateMerchantAccountDtoCardSchemesEnum[keyof typeof UpdateMerchantAccountDtoCardSchemesEnum];
121
+ /**
122
+ * @export
123
+ */
124
+ export declare const UpdateMerchantAccountDtoCurrenciesEnum: {
125
+ readonly Usd: "USD";
126
+ readonly Aud: "AUD";
127
+ readonly Cad: "CAD";
128
+ };
129
+ export type UpdateMerchantAccountDtoCurrenciesEnum = typeof UpdateMerchantAccountDtoCurrenciesEnum[keyof typeof UpdateMerchantAccountDtoCurrenciesEnum];
130
+ /**
131
+ * Check if a given object implements the UpdateMerchantAccountDto interface.
132
+ */
133
+ export declare function instanceOfUpdateMerchantAccountDto(value: object): boolean;
134
+ export declare function UpdateMerchantAccountDtoFromJSON(json: any): UpdateMerchantAccountDto;
135
+ export declare function UpdateMerchantAccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateMerchantAccountDto;
136
+ export declare function UpdateMerchantAccountDtoToJSON(value?: UpdateMerchantAccountDto | null): any;
@@ -0,0 +1,104 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Channel Payments API
5
+ *
6
+ * NOTE: This class is auto generated. Do not edit the class manually.
7
+ *
8
+ */
9
+ import { exists, removeNullUndefined } from '../runtime';
10
+ import { CreateMerchantAccountDtoCFeeFromJSON, CreateMerchantAccountDtoCFeeToJSON, } from './CreateMerchantAccountDtoCFee';
11
+ /**
12
+ * @export
13
+ */
14
+ export const UpdateMerchantAccountDtoMethodEnum = {
15
+ Card: 'CARD',
16
+ Ach: 'ACH'
17
+ };
18
+ /**
19
+ * @export
20
+ */
21
+ export const UpdateMerchantAccountDtoPspEnum = {
22
+ Tsys: 'TSYS',
23
+ Nashville: 'NASHVILLE',
24
+ North: 'NORTH',
25
+ ChannelPayments: 'CHANNEL_PAYMENTS'
26
+ };
27
+ /**
28
+ * @export
29
+ */
30
+ export const UpdateMerchantAccountDtoCardTypesEnum = {
31
+ Credit: 'CREDIT',
32
+ Debit: 'DEBIT',
33
+ Prepaid: 'PREPAID'
34
+ };
35
+ /**
36
+ * @export
37
+ */
38
+ export const UpdateMerchantAccountDtoCardSchemesEnum = {
39
+ Visa: 'VISA',
40
+ Mastercard: 'MASTERCARD',
41
+ Amex: 'AMEX',
42
+ Discover: 'DISCOVER',
43
+ Jcb: 'JCB',
44
+ DinersClub: 'DINERS_CLUB',
45
+ Maestro: 'MAESTRO'
46
+ };
47
+ /**
48
+ * @export
49
+ */
50
+ export const UpdateMerchantAccountDtoCurrenciesEnum = {
51
+ Usd: 'USD',
52
+ Aud: 'AUD',
53
+ Cad: 'CAD'
54
+ };
55
+ /**
56
+ * Check if a given object implements the UpdateMerchantAccountDto interface.
57
+ */
58
+ export function instanceOfUpdateMerchantAccountDto(value) {
59
+ let isInstance = true;
60
+ return isInstance;
61
+ }
62
+ export function UpdateMerchantAccountDtoFromJSON(json) {
63
+ return UpdateMerchantAccountDtoFromJSONTyped(json, false);
64
+ }
65
+ export function UpdateMerchantAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
66
+ if ((json === undefined) || (json === null)) {
67
+ return json;
68
+ }
69
+ const typed = {
70
+ 'method': !exists(json, 'method') ? undefined : json['method'],
71
+ 'psp': !exists(json, 'psp') ? undefined : json['psp'],
72
+ 'cFee': !exists(json, 'cFee') ? undefined : CreateMerchantAccountDtoCFeeFromJSON(json['cFee']),
73
+ 'cardTypes': !exists(json, 'cardTypes') ? undefined : json['cardTypes'],
74
+ 'cardSchemes': !exists(json, 'cardSchemes') ? undefined : json['cardSchemes'],
75
+ 'currencies': !exists(json, 'currencies') ? undefined : json['currencies'],
76
+ 'mcc': !exists(json, 'mcc') ? undefined : json['mcc'],
77
+ 'bin': !exists(json, 'bin') ? undefined : json['bin'],
78
+ 'chain': !exists(json, 'chain') ? undefined : json['chain'],
79
+ 'store': !exists(json, 'store') ? undefined : json['store'],
80
+ 'agent': !exists(json, 'agent') ? undefined : json['agent'],
81
+ };
82
+ return removeNullUndefined(typed);
83
+ }
84
+ export function UpdateMerchantAccountDtoToJSON(value) {
85
+ if (value === undefined) {
86
+ return undefined;
87
+ }
88
+ if (value === null) {
89
+ return null;
90
+ }
91
+ return {
92
+ 'method': value.method,
93
+ 'psp': value.psp,
94
+ 'cFee': CreateMerchantAccountDtoCFeeToJSON(value.cFee),
95
+ 'cardTypes': value.cardTypes,
96
+ 'cardSchemes': value.cardSchemes,
97
+ 'currencies': value.currencies,
98
+ 'mcc': value.mcc,
99
+ 'bin': value.bin,
100
+ 'chain': value.chain,
101
+ 'store': value.store,
102
+ 'agent': value.agent,
103
+ };
104
+ }
@@ -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 { CreateMerchantDtoAddress } from './CreateMerchantDtoAddress';
7
+ import type { UpdateMerchantDtoAddress } from './UpdateMerchantDtoAddress';
8
8
  /**
9
9
  *
10
10
  * @export
@@ -31,10 +31,10 @@ export interface UpdateMerchantDto {
31
31
  phoneNumber?: string;
32
32
  /**
33
33
  *
34
- * @type {CreateMerchantDtoAddress}
34
+ * @type {UpdateMerchantDtoAddress}
35
35
  * @memberof UpdateMerchantDto
36
36
  */
37
- address?: CreateMerchantDtoAddress;
37
+ address?: UpdateMerchantDtoAddress;
38
38
  /**
39
39
  * The website URL of the merchant.
40
40
  * @type {string}