@channelpayments/node-sdk 1.197.0 → 1.200.1

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 (65) hide show
  1. package/dist/cjs/apis/ChannelPaymentsApi.d.ts +7 -6
  2. package/dist/cjs/apis/ChannelPaymentsApi.js +73 -18
  3. package/dist/cjs/models/AdminCreateMerchantCredentialsDto.d.ts +32 -0
  4. package/dist/cjs/models/AdminCreateMerchantCredentialsDto.js +49 -0
  5. package/dist/cjs/models/AdminMerchantSettingsDto.d.ts +63 -0
  6. package/dist/cjs/models/AdminMerchantSettingsDto.js +59 -0
  7. package/dist/cjs/models/CFeeEntity.d.ts +12 -0
  8. package/dist/cjs/models/CFeeEntity.js +4 -0
  9. package/dist/cjs/models/CreateCFeeDto.d.ts +13 -1
  10. package/dist/cjs/models/CreateCFeeDto.js +4 -0
  11. package/dist/cjs/models/CreateMerchantAccountDto.d.ts +187 -0
  12. package/dist/cjs/models/CreateMerchantAccountDto.js +139 -0
  13. package/dist/cjs/models/CreateMerchantAccountWithoutMerchantIdDto.d.ts +15 -3
  14. package/dist/cjs/models/CreateMerchantAccountWithoutMerchantIdDto.js +6 -2
  15. package/dist/cjs/models/CreateMerchantDto.d.ts +6 -6
  16. package/dist/cjs/models/CreateMerchantDto.js +2 -2
  17. package/dist/cjs/models/MerchantAccountEntity.d.ts +204 -0
  18. package/dist/cjs/models/MerchantAccountEntity.js +156 -0
  19. package/dist/cjs/models/MerchantAccountServiceEntity.d.ts +6 -0
  20. package/dist/cjs/models/MerchantAccountServiceEntity.js +2 -0
  21. package/dist/cjs/models/MerchantSettingsBaseDto.d.ts +7 -1
  22. package/dist/cjs/models/MerchantSettingsBaseDto.js +2 -0
  23. package/dist/cjs/models/MerchantSettingsDto.d.ts +1 -1
  24. package/dist/cjs/models/MerchantSettingsEntity.d.ts +6 -0
  25. package/dist/cjs/models/MerchantSettingsEntity.js +3 -0
  26. package/dist/cjs/models/UpdateMerchantAccountDto.d.ts +12 -16
  27. package/dist/cjs/models/UpdateMerchantAccountDto.js +5 -12
  28. package/dist/cjs/models/UpdateMerchantConnectorCredentialsDto.d.ts +38 -0
  29. package/dist/cjs/models/UpdateMerchantConnectorCredentialsDto.js +50 -0
  30. package/dist/cjs/models/index.d.ts +5 -0
  31. package/dist/cjs/models/index.js +5 -0
  32. package/dist/cjs/runtime.js +1 -1
  33. package/dist/mjs/apis/ChannelPaymentsApi.d.ts +7 -6
  34. package/dist/mjs/apis/ChannelPaymentsApi.js +71 -18
  35. package/dist/mjs/models/AdminCreateMerchantCredentialsDto.d.ts +32 -0
  36. package/dist/mjs/models/AdminCreateMerchantCredentialsDto.js +43 -0
  37. package/dist/mjs/models/AdminMerchantSettingsDto.d.ts +63 -0
  38. package/dist/mjs/models/AdminMerchantSettingsDto.js +53 -0
  39. package/dist/mjs/models/CFeeEntity.d.ts +12 -0
  40. package/dist/mjs/models/CFeeEntity.js +5 -1
  41. package/dist/mjs/models/CreateCFeeDto.d.ts +13 -1
  42. package/dist/mjs/models/CreateCFeeDto.js +5 -1
  43. package/dist/mjs/models/CreateMerchantAccountDto.d.ts +187 -0
  44. package/dist/mjs/models/CreateMerchantAccountDto.js +132 -0
  45. package/dist/mjs/models/CreateMerchantAccountWithoutMerchantIdDto.d.ts +15 -3
  46. package/dist/mjs/models/CreateMerchantAccountWithoutMerchantIdDto.js +6 -2
  47. package/dist/mjs/models/CreateMerchantDto.d.ts +6 -6
  48. package/dist/mjs/models/CreateMerchantDto.js +2 -2
  49. package/dist/mjs/models/MerchantAccountEntity.d.ts +204 -0
  50. package/dist/mjs/models/MerchantAccountEntity.js +149 -0
  51. package/dist/mjs/models/MerchantAccountServiceEntity.d.ts +6 -0
  52. package/dist/mjs/models/MerchantAccountServiceEntity.js +2 -0
  53. package/dist/mjs/models/MerchantSettingsBaseDto.d.ts +7 -1
  54. package/dist/mjs/models/MerchantSettingsBaseDto.js +2 -0
  55. package/dist/mjs/models/MerchantSettingsDto.d.ts +1 -1
  56. package/dist/mjs/models/MerchantSettingsEntity.d.ts +6 -0
  57. package/dist/mjs/models/MerchantSettingsEntity.js +3 -0
  58. package/dist/mjs/models/UpdateMerchantAccountDto.d.ts +12 -16
  59. package/dist/mjs/models/UpdateMerchantAccountDto.js +4 -11
  60. package/dist/mjs/models/UpdateMerchantConnectorCredentialsDto.d.ts +38 -0
  61. package/dist/mjs/models/UpdateMerchantConnectorCredentialsDto.js +44 -0
  62. package/dist/mjs/models/index.d.ts +5 -0
  63. package/dist/mjs/models/index.js +5 -0
  64. package/dist/mjs/runtime.js +1 -1
  65. package/package.json +9 -9
@@ -0,0 +1,204 @@
1
+ /**
2
+ * Channel Payments API
3
+ *
4
+ * NOTE: This class is auto generated. Do not edit the class manually.
5
+ *
6
+ */
7
+ import type { CFeeEntity } from './CFeeEntity';
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
+ * The CFee details.
41
+ * @type {CFeeEntity}
42
+ * @memberof MerchantAccountEntity
43
+ */
44
+ cFee: CFeeEntity;
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
+ * Specifies if default merchant account for a given payment method.
89
+ * @type {boolean}
90
+ * @memberof MerchantAccountEntity
91
+ */
92
+ isDefault?: boolean;
93
+ /**
94
+ * The name of the merchant account.
95
+ * @type {string}
96
+ * @memberof MerchantAccountEntity
97
+ */
98
+ name?: string;
99
+ /**
100
+ * The connectors.
101
+ * @type {Array<MerchantConnectorServiceEntity>}
102
+ * @memberof MerchantAccountEntity
103
+ */
104
+ connectors?: Array<MerchantConnectorServiceEntity>;
105
+ /**
106
+ * Transaction limit for this merchant account.
107
+ * @type {number}
108
+ * @memberof MerchantAccountEntity
109
+ */
110
+ transactionLimit?: number;
111
+ /**
112
+ * The date the merchant account was last polled for return notifications.
113
+ * @type {Date}
114
+ * @memberof MerchantAccountEntity
115
+ */
116
+ lastPolledAt?: Date;
117
+ /**
118
+ * Source of card data for this merchant account
119
+ * @type {string}
120
+ * @memberof MerchantAccountEntity
121
+ */
122
+ dataSource?: MerchantAccountEntityDataSourceEnum;
123
+ /**
124
+ * The merchant category code.
125
+ * @type {string}
126
+ * @memberof MerchantAccountEntity
127
+ */
128
+ mcc?: string;
129
+ }
130
+ /**
131
+ * @export
132
+ */
133
+ export declare const MerchantAccountEntityPspEnum: {
134
+ readonly Tsys: "TSYS";
135
+ readonly Nashville: "NASHVILLE";
136
+ readonly North: "NORTH";
137
+ readonly ChannelPayments: "CHANNEL_PAYMENTS";
138
+ };
139
+ export type MerchantAccountEntityPspEnum = typeof MerchantAccountEntityPspEnum[keyof typeof MerchantAccountEntityPspEnum];
140
+ /**
141
+ * @export
142
+ */
143
+ export declare const MerchantAccountEntityMethodEnum: {
144
+ readonly Card: "CARD";
145
+ readonly Ach: "ACH";
146
+ };
147
+ export type MerchantAccountEntityMethodEnum = typeof MerchantAccountEntityMethodEnum[keyof typeof MerchantAccountEntityMethodEnum];
148
+ /**
149
+ * @export
150
+ */
151
+ export declare const MerchantAccountEntityStatusEnum: {
152
+ readonly Pending: "PENDING";
153
+ readonly Active: "ACTIVE";
154
+ readonly Inactive: "INACTIVE";
155
+ readonly Suspended: "SUSPENDED";
156
+ readonly Closed: "CLOSED";
157
+ };
158
+ export type MerchantAccountEntityStatusEnum = typeof MerchantAccountEntityStatusEnum[keyof typeof MerchantAccountEntityStatusEnum];
159
+ /**
160
+ * @export
161
+ */
162
+ export declare const MerchantAccountEntityCardSchemesEnum: {
163
+ readonly Visa: "VISA";
164
+ readonly Mastercard: "MASTERCARD";
165
+ readonly Amex: "AMEX";
166
+ readonly Discover: "DISCOVER";
167
+ readonly Jcb: "JCB";
168
+ readonly DinersClub: "DINERS_CLUB";
169
+ readonly Maestro: "MAESTRO";
170
+ };
171
+ export type MerchantAccountEntityCardSchemesEnum = typeof MerchantAccountEntityCardSchemesEnum[keyof typeof MerchantAccountEntityCardSchemesEnum];
172
+ /**
173
+ * @export
174
+ */
175
+ export declare const MerchantAccountEntityCurrenciesEnum: {
176
+ readonly Usd: "USD";
177
+ readonly Aud: "AUD";
178
+ readonly Cad: "CAD";
179
+ };
180
+ export type MerchantAccountEntityCurrenciesEnum = typeof MerchantAccountEntityCurrenciesEnum[keyof typeof MerchantAccountEntityCurrenciesEnum];
181
+ /**
182
+ * @export
183
+ */
184
+ export declare const MerchantAccountEntityCardTypesEnum: {
185
+ readonly Credit: "CREDIT";
186
+ readonly Debit: "DEBIT";
187
+ readonly Prepaid: "PREPAID";
188
+ };
189
+ export type MerchantAccountEntityCardTypesEnum = typeof MerchantAccountEntityCardTypesEnum[keyof typeof MerchantAccountEntityCardTypesEnum];
190
+ /**
191
+ * @export
192
+ */
193
+ export declare const MerchantAccountEntityDataSourceEnum: {
194
+ readonly Moto: "MOTO";
195
+ readonly Internet: "INTERNET";
196
+ };
197
+ export type MerchantAccountEntityDataSourceEnum = typeof MerchantAccountEntityDataSourceEnum[keyof typeof MerchantAccountEntityDataSourceEnum];
198
+ /**
199
+ * Check if a given object implements the MerchantAccountEntity interface.
200
+ */
201
+ export declare function instanceOfMerchantAccountEntity(value: object): boolean;
202
+ export declare function MerchantAccountEntityFromJSON(json: any): MerchantAccountEntity;
203
+ export declare function MerchantAccountEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): MerchantAccountEntity;
204
+ export declare function MerchantAccountEntityToJSON(value?: MerchantAccountEntity | null): any;
@@ -0,0 +1,149 @@
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 { CFeeEntityFromJSON, CFeeEntityToJSON, } from './CFeeEntity';
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
+ * @export
68
+ */
69
+ export const MerchantAccountEntityDataSourceEnum = {
70
+ Moto: 'MOTO',
71
+ Internet: 'INTERNET'
72
+ };
73
+ /**
74
+ * Check if a given object implements the MerchantAccountEntity interface.
75
+ */
76
+ export function instanceOfMerchantAccountEntity(value) {
77
+ let isInstance = true;
78
+ isInstance = isInstance && "merchantAccountId" in value;
79
+ isInstance = isInstance && "issuedMid" in value;
80
+ isInstance = isInstance && "psp" in value;
81
+ isInstance = isInstance && "cFee" in value;
82
+ isInstance = isInstance && "createdAt" in value;
83
+ isInstance = isInstance && "updatedAt" in value;
84
+ isInstance = isInstance && "method" in value;
85
+ isInstance = isInstance && "status" in value;
86
+ isInstance = isInstance && "cardSchemes" in value;
87
+ isInstance = isInstance && "currencies" in value;
88
+ isInstance = isInstance && "cardTypes" in value;
89
+ return isInstance;
90
+ }
91
+ export function MerchantAccountEntityFromJSON(json) {
92
+ return MerchantAccountEntityFromJSONTyped(json, false);
93
+ }
94
+ export function MerchantAccountEntityFromJSONTyped(json, ignoreDiscriminator) {
95
+ if ((json === undefined) || (json === null)) {
96
+ return json;
97
+ }
98
+ const typed = {
99
+ 'merchantAccountId': json['merchantAccountId'],
100
+ 'merchantId': !exists(json, 'merchantId') ? undefined : json['merchantId'],
101
+ 'issuedMid': json['issuedMid'],
102
+ 'psp': json['psp'],
103
+ 'cFee': CFeeEntityFromJSON(json['cFee']),
104
+ 'createdAt': (new Date(json['createdAt'])),
105
+ 'updatedAt': (new Date(json['updatedAt'])),
106
+ 'method': json['method'],
107
+ 'status': json['status'],
108
+ 'cardSchemes': json['cardSchemes'],
109
+ 'currencies': json['currencies'],
110
+ 'cardTypes': json['cardTypes'],
111
+ 'isDefault': !exists(json, 'isDefault') ? undefined : json['isDefault'],
112
+ 'name': !exists(json, 'name') ? undefined : json['name'],
113
+ 'connectors': !exists(json, 'connectors') ? undefined : (json['connectors'].map(MerchantConnectorServiceEntityFromJSON)),
114
+ 'transactionLimit': !exists(json, 'transactionLimit') ? undefined : json['transactionLimit'],
115
+ 'lastPolledAt': !exists(json, 'lastPolledAt') ? undefined : (new Date(json['lastPolledAt'])),
116
+ 'dataSource': !exists(json, 'dataSource') ? undefined : json['dataSource'],
117
+ 'mcc': !exists(json, 'mcc') ? undefined : json['mcc'],
118
+ };
119
+ return removeNullUndefined(typed);
120
+ }
121
+ export function MerchantAccountEntityToJSON(value) {
122
+ if (value === undefined) {
123
+ return undefined;
124
+ }
125
+ if (value === null) {
126
+ return null;
127
+ }
128
+ return {
129
+ 'merchantAccountId': value.merchantAccountId,
130
+ 'merchantId': value.merchantId,
131
+ 'issuedMid': value.issuedMid,
132
+ 'psp': value.psp,
133
+ 'cFee': CFeeEntityToJSON(value.cFee),
134
+ 'createdAt': (value.createdAt.toISOString()),
135
+ 'updatedAt': (value.updatedAt.toISOString()),
136
+ 'method': value.method,
137
+ 'status': value.status,
138
+ 'cardSchemes': value.cardSchemes,
139
+ 'currencies': value.currencies,
140
+ 'cardTypes': value.cardTypes,
141
+ 'isDefault': value.isDefault,
142
+ 'name': value.name,
143
+ 'connectors': value.connectors === undefined ? undefined : (value.connectors.map(MerchantConnectorServiceEntityToJSON)),
144
+ 'transactionLimit': value.transactionLimit,
145
+ 'lastPolledAt': value.lastPolledAt === undefined ? undefined : (value.lastPolledAt.toISOString()),
146
+ 'dataSource': value.dataSource,
147
+ 'mcc': value.mcc,
148
+ };
149
+ }
@@ -102,6 +102,12 @@ export interface MerchantAccountServiceEntity {
102
102
  * @memberof MerchantAccountServiceEntity
103
103
  */
104
104
  connectors?: Array<MerchantConnectorServiceEntity>;
105
+ /**
106
+ * Transaction limit for this merchant account.
107
+ * @type {number}
108
+ * @memberof MerchantAccountServiceEntity
109
+ */
110
+ transactionLimit?: number;
105
111
  /**
106
112
  * The date the merchant account was last polled for return notifications.
107
113
  * @type {Date}
@@ -111,6 +111,7 @@ export function MerchantAccountServiceEntityFromJSONTyped(json, ignoreDiscrimina
111
111
  'isDefault': !exists(json, 'isDefault') ? undefined : json['isDefault'],
112
112
  'name': !exists(json, 'name') ? undefined : json['name'],
113
113
  'connectors': !exists(json, 'connectors') ? undefined : (json['connectors'].map(MerchantConnectorServiceEntityFromJSON)),
114
+ 'transactionLimit': !exists(json, 'transactionLimit') ? undefined : json['transactionLimit'],
114
115
  'lastPolledAt': !exists(json, 'lastPolledAt') ? undefined : (new Date(json['lastPolledAt'])),
115
116
  'dataSource': !exists(json, 'dataSource') ? undefined : json['dataSource'],
116
117
  'mcc': !exists(json, 'mcc') ? undefined : json['mcc'],
@@ -140,6 +141,7 @@ export function MerchantAccountServiceEntityToJSON(value) {
140
141
  'isDefault': value.isDefault,
141
142
  'name': value.name,
142
143
  'connectors': value.connectors === undefined ? undefined : (value.connectors.map(MerchantConnectorServiceEntityToJSON)),
144
+ 'transactionLimit': value.transactionLimit,
143
145
  'lastPolledAt': value.lastPolledAt === undefined ? undefined : (value.lastPolledAt.toISOString()),
144
146
  'dataSource': value.dataSource,
145
147
  'mcc': value.mcc,
@@ -36,11 +36,17 @@ export interface MerchantSettingsBaseDto {
36
36
  */
37
37
  isPartialAuthEnabled?: boolean;
38
38
  /**
39
- * Enable bill payment on this merchant
39
+ * Enable bill payment on this merchant.
40
40
  * @type {boolean}
41
41
  * @memberof MerchantSettingsBaseDto
42
42
  */
43
43
  isBillPaymentEnabled?: boolean;
44
+ /**
45
+ * Store card on decline option for this merchant.
46
+ * @type {boolean}
47
+ * @memberof MerchantSettingsBaseDto
48
+ */
49
+ storeOnCardDecline?: boolean;
44
50
  }
45
51
  /**
46
52
  * Check if a given object implements the MerchantSettingsBaseDto interface.
@@ -28,6 +28,7 @@ export function MerchantSettingsBaseDtoFromJSONTyped(json, ignoreDiscriminator)
28
28
  'isDebtRepaymentEnabled': !exists(json, 'isDebtRepaymentEnabled') ? undefined : json['isDebtRepaymentEnabled'],
29
29
  'isPartialAuthEnabled': !exists(json, 'isPartialAuthEnabled') ? undefined : json['isPartialAuthEnabled'],
30
30
  'isBillPaymentEnabled': !exists(json, 'isBillPaymentEnabled') ? undefined : json['isBillPaymentEnabled'],
31
+ 'storeOnCardDecline': !exists(json, 'storeOnCardDecline') ? undefined : json['storeOnCardDecline'],
31
32
  };
32
33
  return removeNullUndefined(typed);
33
34
  }
@@ -44,5 +45,6 @@ export function MerchantSettingsBaseDtoToJSON(value) {
44
45
  'isDebtRepaymentEnabled': value.isDebtRepaymentEnabled,
45
46
  'isPartialAuthEnabled': value.isPartialAuthEnabled,
46
47
  'isBillPaymentEnabled': value.isBillPaymentEnabled,
48
+ 'storeOnCardDecline': value.storeOnCardDecline,
47
49
  };
48
50
  }
@@ -18,7 +18,7 @@ export interface MerchantSettingsDto {
18
18
  */
19
19
  checkoutTheme?: MerchantThemeDto;
20
20
  /**
21
- * Enable bill payment on this merchant
21
+ * Enable bill payment on this merchant.
22
22
  * @type {boolean}
23
23
  * @memberof MerchantSettingsDto
24
24
  */
@@ -47,6 +47,12 @@ export interface MerchantSettingsEntity {
47
47
  * @memberof MerchantSettingsEntity
48
48
  */
49
49
  isBillPaymentEnabled: boolean;
50
+ /**
51
+ * Whether to store the card on decline for this merchant.
52
+ * @type {boolean}
53
+ * @memberof MerchantSettingsEntity
54
+ */
55
+ storeOnCardDecline: boolean;
50
56
  }
51
57
  /**
52
58
  * Check if a given object implements the MerchantSettingsEntity interface.
@@ -18,6 +18,7 @@ export function instanceOfMerchantSettingsEntity(value) {
18
18
  isInstance = isInstance && "isDebtRepaymentEnabled" in value;
19
19
  isInstance = isInstance && "isPartialAuthEnabled" in value;
20
20
  isInstance = isInstance && "isBillPaymentEnabled" in value;
21
+ isInstance = isInstance && "storeOnCardDecline" in value;
21
22
  return isInstance;
22
23
  }
23
24
  export function MerchantSettingsEntityFromJSON(json) {
@@ -34,6 +35,7 @@ export function MerchantSettingsEntityFromJSONTyped(json, ignoreDiscriminator) {
34
35
  'isDebtRepaymentEnabled': json['isDebtRepaymentEnabled'],
35
36
  'isPartialAuthEnabled': json['isPartialAuthEnabled'],
36
37
  'isBillPaymentEnabled': json['isBillPaymentEnabled'],
38
+ 'storeOnCardDecline': json['storeOnCardDecline'],
37
39
  };
38
40
  return removeNullUndefined(typed);
39
41
  }
@@ -51,5 +53,6 @@ export function MerchantSettingsEntityToJSON(value) {
51
53
  'isDebtRepaymentEnabled': value.isDebtRepaymentEnabled,
52
54
  'isPartialAuthEnabled': value.isPartialAuthEnabled,
53
55
  'isBillPaymentEnabled': value.isBillPaymentEnabled,
56
+ 'storeOnCardDecline': value.storeOnCardDecline,
54
57
  };
55
58
  }
@@ -11,12 +11,6 @@ import type { CreateCFeeDto } from './CreateCFeeDto';
11
11
  * @interface UpdateMerchantAccountDto
12
12
  */
13
13
  export interface UpdateMerchantAccountDto {
14
- /**
15
- * The payment service provider
16
- * @type {string}
17
- * @memberof UpdateMerchantAccountDto
18
- */
19
- psp?: UpdateMerchantAccountDtoPspEnum;
20
14
  /**
21
15
  * The CFee details
22
16
  * @type {CreateCFeeDto}
@@ -47,6 +41,12 @@ export interface UpdateMerchantAccountDto {
47
41
  * @memberof UpdateMerchantAccountDto
48
42
  */
49
43
  currencies?: Array<UpdateMerchantAccountDtoCurrenciesEnum>;
44
+ /**
45
+ * The associated merchant name
46
+ * @type {string}
47
+ * @memberof UpdateMerchantAccountDto
48
+ */
49
+ name?: string;
50
50
  /**
51
51
  * The MCC (Merchant Category Code)
52
52
  * @type {string}
@@ -83,6 +83,12 @@ export interface UpdateMerchantAccountDto {
83
83
  * @memberof UpdateMerchantAccountDto
84
84
  */
85
85
  isDefault?: boolean;
86
+ /**
87
+ * Transaction limit for this merchant.
88
+ * @type {number}
89
+ * @memberof UpdateMerchantAccountDto
90
+ */
91
+ transactionLimit?: number;
86
92
  /**
87
93
  * The date the merchant account was last polled for return notifications.
88
94
  * @type {string}
@@ -90,16 +96,6 @@ export interface UpdateMerchantAccountDto {
90
96
  */
91
97
  lastPolledAt?: string;
92
98
  }
93
- /**
94
- * @export
95
- */
96
- export declare const UpdateMerchantAccountDtoPspEnum: {
97
- readonly Tsys: "TSYS";
98
- readonly Nashville: "NASHVILLE";
99
- readonly North: "NORTH";
100
- readonly ChannelPayments: "CHANNEL_PAYMENTS";
101
- };
102
- export type UpdateMerchantAccountDtoPspEnum = typeof UpdateMerchantAccountDtoPspEnum[keyof typeof UpdateMerchantAccountDtoPspEnum];
103
99
  /**
104
100
  * @export
105
101
  */
@@ -8,15 +8,6 @@
8
8
  */
9
9
  import { exists, removeNullUndefined } from '../runtime';
10
10
  import { CreateCFeeDtoFromJSON, CreateCFeeDtoToJSON, } from './CreateCFeeDto';
11
- /**
12
- * @export
13
- */
14
- export const UpdateMerchantAccountDtoPspEnum = {
15
- Tsys: 'TSYS',
16
- Nashville: 'NASHVILLE',
17
- North: 'NORTH',
18
- ChannelPayments: 'CHANNEL_PAYMENTS'
19
- };
20
11
  /**
21
12
  * @export
22
13
  */
@@ -67,18 +58,19 @@ export function UpdateMerchantAccountDtoFromJSONTyped(json, ignoreDiscriminator)
67
58
  return json;
68
59
  }
69
60
  const typed = {
70
- 'psp': !exists(json, 'psp') ? undefined : json['psp'],
71
61
  'cFee': !exists(json, 'cFee') ? undefined : CreateCFeeDtoFromJSON(json['cFee']),
72
62
  'cardTypes': !exists(json, 'cardTypes') ? undefined : json['cardTypes'],
73
63
  'cardSchemes': !exists(json, 'cardSchemes') ? undefined : json['cardSchemes'],
74
64
  'dataSource': !exists(json, 'dataSource') ? undefined : json['dataSource'],
75
65
  'currencies': !exists(json, 'currencies') ? undefined : json['currencies'],
66
+ 'name': !exists(json, 'name') ? undefined : json['name'],
76
67
  'mcc': !exists(json, 'mcc') ? undefined : json['mcc'],
77
68
  'bin': !exists(json, 'bin') ? undefined : json['bin'],
78
69
  'chain': !exists(json, 'chain') ? undefined : json['chain'],
79
70
  'store': !exists(json, 'store') ? undefined : json['store'],
80
71
  'agent': !exists(json, 'agent') ? undefined : json['agent'],
81
72
  'isDefault': !exists(json, 'isDefault') ? undefined : json['isDefault'],
73
+ 'transactionLimit': !exists(json, 'transactionLimit') ? undefined : json['transactionLimit'],
82
74
  'lastPolledAt': !exists(json, 'lastPolledAt') ? undefined : json['lastPolledAt'],
83
75
  };
84
76
  return removeNullUndefined(typed);
@@ -91,18 +83,19 @@ export function UpdateMerchantAccountDtoToJSON(value) {
91
83
  return null;
92
84
  }
93
85
  return {
94
- 'psp': value.psp,
95
86
  'cFee': CreateCFeeDtoToJSON(value.cFee),
96
87
  'cardTypes': value.cardTypes,
97
88
  'cardSchemes': value.cardSchemes,
98
89
  'dataSource': value.dataSource,
99
90
  'currencies': value.currencies,
91
+ 'name': value.name,
100
92
  'mcc': value.mcc,
101
93
  'bin': value.bin,
102
94
  'chain': value.chain,
103
95
  'store': value.store,
104
96
  'agent': value.agent,
105
97
  'isDefault': value.isDefault,
98
+ 'transactionLimit': value.transactionLimit,
106
99
  'lastPolledAt': value.lastPolledAt,
107
100
  };
108
101
  }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Channel Payments API
3
+ *
4
+ * NOTE: This class is auto generated. Do not edit the class manually.
5
+ *
6
+ */
7
+ /**
8
+ *
9
+ * @export
10
+ * @interface UpdateMerchantConnectorCredentialsDto
11
+ */
12
+ export interface UpdateMerchantConnectorCredentialsDto {
13
+ /**
14
+ * The key or username for the connector account.
15
+ * @type {string}
16
+ * @memberof UpdateMerchantConnectorCredentialsDto
17
+ */
18
+ username?: string;
19
+ /**
20
+ * The secret or password for the connector account.
21
+ * @type {string}
22
+ * @memberof UpdateMerchantConnectorCredentialsDto
23
+ */
24
+ password?: string;
25
+ /**
26
+ * The associated merchant connector ID.
27
+ * @type {string}
28
+ * @memberof UpdateMerchantConnectorCredentialsDto
29
+ */
30
+ credentialsId: string;
31
+ }
32
+ /**
33
+ * Check if a given object implements the UpdateMerchantConnectorCredentialsDto interface.
34
+ */
35
+ export declare function instanceOfUpdateMerchantConnectorCredentialsDto(value: object): boolean;
36
+ export declare function UpdateMerchantConnectorCredentialsDtoFromJSON(json: any): UpdateMerchantConnectorCredentialsDto;
37
+ export declare function UpdateMerchantConnectorCredentialsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateMerchantConnectorCredentialsDto;
38
+ export declare function UpdateMerchantConnectorCredentialsDtoToJSON(value?: UpdateMerchantConnectorCredentialsDto | null): any;
@@ -0,0 +1,44 @@
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
+ /**
11
+ * Check if a given object implements the UpdateMerchantConnectorCredentialsDto interface.
12
+ */
13
+ export function instanceOfUpdateMerchantConnectorCredentialsDto(value) {
14
+ let isInstance = true;
15
+ isInstance = isInstance && "credentialsId" in value;
16
+ return isInstance;
17
+ }
18
+ export function UpdateMerchantConnectorCredentialsDtoFromJSON(json) {
19
+ return UpdateMerchantConnectorCredentialsDtoFromJSONTyped(json, false);
20
+ }
21
+ export function UpdateMerchantConnectorCredentialsDtoFromJSONTyped(json, ignoreDiscriminator) {
22
+ if ((json === undefined) || (json === null)) {
23
+ return json;
24
+ }
25
+ const typed = {
26
+ 'username': !exists(json, 'username') ? undefined : json['username'],
27
+ 'password': !exists(json, 'password') ? undefined : json['password'],
28
+ 'credentialsId': json['credentialsId'],
29
+ };
30
+ return removeNullUndefined(typed);
31
+ }
32
+ export function UpdateMerchantConnectorCredentialsDtoToJSON(value) {
33
+ if (value === undefined) {
34
+ return undefined;
35
+ }
36
+ if (value === null) {
37
+ return null;
38
+ }
39
+ return {
40
+ 'username': value.username,
41
+ 'password': value.password,
42
+ 'credentialsId': value.credentialsId,
43
+ };
44
+ }