@channelpayments/node-sdk 1.194.0 → 1.195.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 (59) hide show
  1. package/dist/cjs/models/CreateMerchantAccountWithoutMerchantIdDto.d.ts +14 -0
  2. package/dist/cjs/models/CreateMerchantAccountWithoutMerchantIdDto.js +10 -1
  3. package/dist/cjs/models/CreateMerchantConnectorWithoutMerchantAccountIdDto.d.ts +1 -1
  4. package/dist/cjs/models/CreateMerchantConnectorWithoutMerchantAccountIdDto.js +2 -2
  5. package/dist/cjs/models/CreateMerchantCredentialsDto.d.ts +0 -6
  6. package/dist/cjs/models/CreateMerchantCredentialsDto.js +0 -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/MerchantAccountServiceEntity.d.ts +20 -0
  10. package/dist/cjs/models/MerchantAccountServiceEntity.js +12 -1
  11. package/dist/cjs/models/MerchantConnectorServiceEntity.d.ts +2 -2
  12. package/dist/cjs/models/MerchantConnectorServiceEntity.js +2 -2
  13. package/dist/cjs/models/MerchantSettingsBaseDto.d.ts +51 -0
  14. package/dist/cjs/models/MerchantSettingsBaseDto.js +54 -0
  15. package/dist/cjs/models/MerchantSettingsDto.d.ts +2 -2
  16. package/dist/cjs/models/MerchantSettingsDto.js +2 -2
  17. package/dist/cjs/models/MerchantSettingsEntity.d.ts +18 -0
  18. package/dist/cjs/models/MerchantSettingsEntity.js +9 -0
  19. package/dist/cjs/models/UpdateMerchantAccountDto.d.ts +14 -0
  20. package/dist/cjs/models/UpdateMerchantAccountDto.js +10 -1
  21. package/dist/cjs/models/UpdateMerchantCredentialsDto.d.ts +4 -4
  22. package/dist/cjs/models/UpdateMerchantCredentialsDto.js +3 -2
  23. package/dist/cjs/models/index.d.ts +1 -2
  24. package/dist/cjs/models/index.js +1 -2
  25. package/dist/cjs/runtime.js +1 -1
  26. package/dist/mjs/models/CreateMerchantAccountWithoutMerchantIdDto.d.ts +14 -0
  27. package/dist/mjs/models/CreateMerchantAccountWithoutMerchantIdDto.js +9 -0
  28. package/dist/mjs/models/CreateMerchantConnectorWithoutMerchantAccountIdDto.d.ts +1 -1
  29. package/dist/mjs/models/CreateMerchantConnectorWithoutMerchantAccountIdDto.js +2 -2
  30. package/dist/mjs/models/CreateMerchantCredentialsDto.d.ts +0 -6
  31. package/dist/mjs/models/CreateMerchantCredentialsDto.js +0 -3
  32. package/dist/mjs/models/CreateMerchantDto.d.ts +3 -3
  33. package/dist/mjs/models/CreateMerchantDto.js +3 -3
  34. package/dist/mjs/models/MerchantAccountServiceEntity.d.ts +20 -0
  35. package/dist/mjs/models/MerchantAccountServiceEntity.js +11 -0
  36. package/dist/mjs/models/MerchantConnectorServiceEntity.d.ts +2 -2
  37. package/dist/mjs/models/MerchantConnectorServiceEntity.js +2 -2
  38. package/dist/mjs/models/MerchantSettingsBaseDto.d.ts +51 -0
  39. package/dist/mjs/models/MerchantSettingsBaseDto.js +48 -0
  40. package/dist/mjs/models/MerchantSettingsDto.d.ts +2 -2
  41. package/dist/mjs/models/MerchantSettingsDto.js +2 -2
  42. package/dist/mjs/models/MerchantSettingsEntity.d.ts +18 -0
  43. package/dist/mjs/models/MerchantSettingsEntity.js +9 -0
  44. package/dist/mjs/models/UpdateMerchantAccountDto.d.ts +14 -0
  45. package/dist/mjs/models/UpdateMerchantAccountDto.js +9 -0
  46. package/dist/mjs/models/UpdateMerchantCredentialsDto.d.ts +4 -4
  47. package/dist/mjs/models/UpdateMerchantCredentialsDto.js +4 -3
  48. package/dist/mjs/models/index.d.ts +1 -2
  49. package/dist/mjs/models/index.js +1 -2
  50. package/dist/mjs/runtime.js +1 -1
  51. package/package.json +1 -1
  52. package/dist/cjs/models/CreateMerchantAccountDto.d.ts +0 -161
  53. package/dist/cjs/models/CreateMerchantAccountDto.js +0 -126
  54. package/dist/cjs/models/MerchantAccountEntity.d.ts +0 -178
  55. package/dist/cjs/models/MerchantAccountEntity.js +0 -143
  56. package/dist/mjs/models/CreateMerchantAccountDto.d.ts +0 -161
  57. package/dist/mjs/models/CreateMerchantAccountDto.js +0 -119
  58. package/dist/mjs/models/MerchantAccountEntity.d.ts +0 -178
  59. package/dist/mjs/models/MerchantAccountEntity.js +0 -136
@@ -114,7 +114,7 @@ class BaseAPI {
114
114
  createFetchParams(context) {
115
115
  return __awaiter(this, void 0, void 0, function* () {
116
116
  Object.keys(context.headers).forEach(key => context.headers[key] === undefined ? delete context.headers[key] : {});
117
- context.headers['user-agent'] = "@channelpayments/node-sdk/v1.194.0";
117
+ context.headers['user-agent'] = "@channelpayments/node-sdk/v1.195.0";
118
118
  const token = this.generateAuthToken();
119
119
  context.headers['Authorization'] = `Bearer ${token}`;
120
120
  let url = this.url + context.path;
@@ -48,6 +48,12 @@ export interface CreateMerchantAccountWithoutMerchantIdDto {
48
48
  * @memberof CreateMerchantAccountWithoutMerchantIdDto
49
49
  */
50
50
  cardSchemes?: Array<CreateMerchantAccountWithoutMerchantIdDtoCardSchemesEnum>;
51
+ /**
52
+ * Source of card data for this merchant account
53
+ * @type {string}
54
+ * @memberof CreateMerchantAccountWithoutMerchantIdDto
55
+ */
56
+ dataSource?: CreateMerchantAccountWithoutMerchantIdDtoDataSourceEnum;
51
57
  /**
52
58
  * The accepted currencies
53
59
  * @type {Array<string>}
@@ -137,6 +143,14 @@ export declare const CreateMerchantAccountWithoutMerchantIdDtoCardSchemesEnum: {
137
143
  readonly Maestro: "MAESTRO";
138
144
  };
139
145
  export type CreateMerchantAccountWithoutMerchantIdDtoCardSchemesEnum = typeof CreateMerchantAccountWithoutMerchantIdDtoCardSchemesEnum[keyof typeof CreateMerchantAccountWithoutMerchantIdDtoCardSchemesEnum];
146
+ /**
147
+ * @export
148
+ */
149
+ export declare const CreateMerchantAccountWithoutMerchantIdDtoDataSourceEnum: {
150
+ readonly Moto: "MOTO";
151
+ readonly Internet: "INTERNET";
152
+ };
153
+ export type CreateMerchantAccountWithoutMerchantIdDtoDataSourceEnum = typeof CreateMerchantAccountWithoutMerchantIdDtoDataSourceEnum[keyof typeof CreateMerchantAccountWithoutMerchantIdDtoDataSourceEnum];
140
154
  /**
141
155
  * @export
142
156
  */
@@ -45,6 +45,13 @@ export const CreateMerchantAccountWithoutMerchantIdDtoCardSchemesEnum = {
45
45
  DinersClub: 'DINERS_CLUB',
46
46
  Maestro: 'MAESTRO'
47
47
  };
48
+ /**
49
+ * @export
50
+ */
51
+ export const CreateMerchantAccountWithoutMerchantIdDtoDataSourceEnum = {
52
+ Moto: 'MOTO',
53
+ Internet: 'INTERNET'
54
+ };
48
55
  /**
49
56
  * @export
50
57
  */
@@ -79,6 +86,7 @@ export function CreateMerchantAccountWithoutMerchantIdDtoFromJSONTyped(json, ign
79
86
  'cFee': CreateCFeeDtoFromJSON(json['cFee']),
80
87
  'cardTypes': !exists(json, 'cardTypes') ? undefined : json['cardTypes'],
81
88
  'cardSchemes': !exists(json, 'cardSchemes') ? undefined : json['cardSchemes'],
89
+ 'dataSource': !exists(json, 'dataSource') ? undefined : json['dataSource'],
82
90
  'currencies': !exists(json, 'currencies') ? undefined : json['currencies'],
83
91
  'connectors': (json['connectors'].map(CreateMerchantConnectorWithoutMerchantAccountIdDtoFromJSON)),
84
92
  'mcc': !exists(json, 'mcc') ? undefined : json['mcc'],
@@ -104,6 +112,7 @@ export function CreateMerchantAccountWithoutMerchantIdDtoToJSON(value) {
104
112
  'cFee': CreateCFeeDtoToJSON(value.cFee),
105
113
  'cardTypes': value.cardTypes,
106
114
  'cardSchemes': value.cardSchemes,
115
+ 'dataSource': value.dataSource,
107
116
  'currencies': value.currencies,
108
117
  'connectors': (value.connectors.map(CreateMerchantConnectorWithoutMerchantAccountIdDtoToJSON)),
109
118
  'mcc': value.mcc,
@@ -47,9 +47,9 @@ export interface CreateMerchantConnectorWithoutMerchantAccountIdDto {
47
47
  */
48
48
  export declare const CreateMerchantConnectorWithoutMerchantAccountIdDtoConnectorEnum: {
49
49
  readonly Epay: "EPAY";
50
- readonly Nmi: "NMI";
51
50
  readonly AuthorizeNet: "AUTHORIZE_NET";
52
51
  readonly ChannelPayments: "CHANNEL_PAYMENTS";
52
+ readonly Tsys: "TSYS";
53
53
  };
54
54
  export type CreateMerchantConnectorWithoutMerchantAccountIdDtoConnectorEnum = typeof CreateMerchantConnectorWithoutMerchantAccountIdDtoConnectorEnum[keyof typeof CreateMerchantConnectorWithoutMerchantAccountIdDtoConnectorEnum];
55
55
  /**
@@ -13,9 +13,9 @@ import { CreateMerchantConnectorCredentialsDtoFromJSON, CreateMerchantConnectorC
13
13
  */
14
14
  export const CreateMerchantConnectorWithoutMerchantAccountIdDtoConnectorEnum = {
15
15
  Epay: 'EPAY',
16
- Nmi: 'NMI',
17
16
  AuthorizeNet: 'AUTHORIZE_NET',
18
- ChannelPayments: 'CHANNEL_PAYMENTS'
17
+ ChannelPayments: 'CHANNEL_PAYMENTS',
18
+ Tsys: 'TSYS'
19
19
  };
20
20
  /**
21
21
  * @export
@@ -10,12 +10,6 @@
10
10
  * @interface CreateMerchantCredentialsDto
11
11
  */
12
12
  export interface CreateMerchantCredentialsDto {
13
- /**
14
- * The ID of the merchant.
15
- * @type {string}
16
- * @memberof CreateMerchantCredentialsDto
17
- */
18
- merchantId: string;
19
13
  /**
20
14
  * The given reference name.
21
15
  * @type {string}
@@ -12,7 +12,6 @@ import { removeNullUndefined } from '../runtime';
12
12
  */
13
13
  export function instanceOfCreateMerchantCredentialsDto(value) {
14
14
  let isInstance = true;
15
- isInstance = isInstance && "merchantId" in value;
16
15
  isInstance = isInstance && "credentialsName" in value;
17
16
  return isInstance;
18
17
  }
@@ -24,7 +23,6 @@ export function CreateMerchantCredentialsDtoFromJSONTyped(json, ignoreDiscrimina
24
23
  return json;
25
24
  }
26
25
  const typed = {
27
- 'merchantId': json['merchantId'],
28
26
  'credentialsName': json['credentialsName'],
29
27
  };
30
28
  return removeNullUndefined(typed);
@@ -37,7 +35,6 @@ export function CreateMerchantCredentialsDtoToJSON(value) {
37
35
  return null;
38
36
  }
39
37
  return {
40
- 'merchantId': value.merchantId,
41
38
  'credentialsName': value.credentialsName,
42
39
  };
43
40
  }
@@ -6,7 +6,7 @@
6
6
  */
7
7
  import type { CreateMerchantAccountWithoutMerchantIdDto } from './CreateMerchantAccountWithoutMerchantIdDto';
8
8
  import type { CreateMerchantAddressDto } from './CreateMerchantAddressDto';
9
- import type { MerchantSettingsDto } from './MerchantSettingsDto';
9
+ import type { MerchantSettingsBaseDto } from './MerchantSettingsBaseDto';
10
10
  /**
11
11
  *
12
12
  * @export
@@ -57,10 +57,10 @@ export interface CreateMerchantDto {
57
57
  merchantAccounts?: Array<CreateMerchantAccountWithoutMerchantIdDto>;
58
58
  /**
59
59
  * The merchant settings.
60
- * @type {MerchantSettingsDto}
60
+ * @type {MerchantSettingsBaseDto}
61
61
  * @memberof CreateMerchantDto
62
62
  */
63
- merchantSettings?: MerchantSettingsDto;
63
+ merchantSettings?: MerchantSettingsBaseDto;
64
64
  }
65
65
  /**
66
66
  * Check if a given object implements the CreateMerchantDto interface.
@@ -9,7 +9,7 @@
9
9
  import { exists, removeNullUndefined } from '../runtime';
10
10
  import { CreateMerchantAccountWithoutMerchantIdDtoFromJSON, CreateMerchantAccountWithoutMerchantIdDtoToJSON, } from './CreateMerchantAccountWithoutMerchantIdDto';
11
11
  import { CreateMerchantAddressDtoFromJSON, CreateMerchantAddressDtoToJSON, } from './CreateMerchantAddressDto';
12
- import { MerchantSettingsDtoFromJSON, MerchantSettingsDtoToJSON, } from './MerchantSettingsDto';
12
+ import { MerchantSettingsBaseDtoFromJSON, MerchantSettingsBaseDtoToJSON, } from './MerchantSettingsBaseDto';
13
13
  /**
14
14
  * Check if a given object implements the CreateMerchantDto interface.
15
15
  */
@@ -36,7 +36,7 @@ export function CreateMerchantDtoFromJSONTyped(json, ignoreDiscriminator) {
36
36
  'website': !exists(json, 'website') ? undefined : json['website'],
37
37
  'parentMerchantId': !exists(json, 'parentMerchantId') ? undefined : json['parentMerchantId'],
38
38
  'merchantAccounts': !exists(json, 'merchantAccounts') ? undefined : (json['merchantAccounts'].map(CreateMerchantAccountWithoutMerchantIdDtoFromJSON)),
39
- 'merchantSettings': !exists(json, 'merchantSettings') ? undefined : MerchantSettingsDtoFromJSON(json['merchantSettings']),
39
+ 'merchantSettings': !exists(json, 'merchantSettings') ? undefined : MerchantSettingsBaseDtoFromJSON(json['merchantSettings']),
40
40
  };
41
41
  return removeNullUndefined(typed);
42
42
  }
@@ -55,6 +55,6 @@ export function CreateMerchantDtoToJSON(value) {
55
55
  'website': value.website,
56
56
  'parentMerchantId': value.parentMerchantId,
57
57
  'merchantAccounts': value.merchantAccounts === undefined ? undefined : (value.merchantAccounts.map(CreateMerchantAccountWithoutMerchantIdDtoToJSON)),
58
- 'merchantSettings': MerchantSettingsDtoToJSON(value.merchantSettings),
58
+ 'merchantSettings': MerchantSettingsBaseDtoToJSON(value.merchantSettings),
59
59
  };
60
60
  }
@@ -108,6 +108,18 @@ export interface MerchantAccountServiceEntity {
108
108
  * @memberof MerchantAccountServiceEntity
109
109
  */
110
110
  lastPolledAt?: Date;
111
+ /**
112
+ * Source of card data for this merchant account
113
+ * @type {string}
114
+ * @memberof MerchantAccountServiceEntity
115
+ */
116
+ dataSource?: MerchantAccountServiceEntityDataSourceEnum;
117
+ /**
118
+ * The merchant category code.
119
+ * @type {string}
120
+ * @memberof MerchantAccountServiceEntity
121
+ */
122
+ mcc?: string;
111
123
  }
112
124
  /**
113
125
  * @export
@@ -169,6 +181,14 @@ export declare const MerchantAccountServiceEntityCardTypesEnum: {
169
181
  readonly Prepaid: "PREPAID";
170
182
  };
171
183
  export type MerchantAccountServiceEntityCardTypesEnum = typeof MerchantAccountServiceEntityCardTypesEnum[keyof typeof MerchantAccountServiceEntityCardTypesEnum];
184
+ /**
185
+ * @export
186
+ */
187
+ export declare const MerchantAccountServiceEntityDataSourceEnum: {
188
+ readonly Moto: "MOTO";
189
+ readonly Internet: "INTERNET";
190
+ };
191
+ export type MerchantAccountServiceEntityDataSourceEnum = typeof MerchantAccountServiceEntityDataSourceEnum[keyof typeof MerchantAccountServiceEntityDataSourceEnum];
172
192
  /**
173
193
  * Check if a given object implements the MerchantAccountServiceEntity interface.
174
194
  */
@@ -63,6 +63,13 @@ export const MerchantAccountServiceEntityCardTypesEnum = {
63
63
  Debit: 'DEBIT',
64
64
  Prepaid: 'PREPAID'
65
65
  };
66
+ /**
67
+ * @export
68
+ */
69
+ export const MerchantAccountServiceEntityDataSourceEnum = {
70
+ Moto: 'MOTO',
71
+ Internet: 'INTERNET'
72
+ };
66
73
  /**
67
74
  * Check if a given object implements the MerchantAccountServiceEntity interface.
68
75
  */
@@ -105,6 +112,8 @@ export function MerchantAccountServiceEntityFromJSONTyped(json, ignoreDiscrimina
105
112
  'name': !exists(json, 'name') ? undefined : json['name'],
106
113
  'connectors': !exists(json, 'connectors') ? undefined : (json['connectors'].map(MerchantConnectorServiceEntityFromJSON)),
107
114
  'lastPolledAt': !exists(json, 'lastPolledAt') ? undefined : (new Date(json['lastPolledAt'])),
115
+ 'dataSource': !exists(json, 'dataSource') ? undefined : json['dataSource'],
116
+ 'mcc': !exists(json, 'mcc') ? undefined : json['mcc'],
108
117
  };
109
118
  return removeNullUndefined(typed);
110
119
  }
@@ -132,5 +141,7 @@ export function MerchantAccountServiceEntityToJSON(value) {
132
141
  'name': value.name,
133
142
  'connectors': value.connectors === undefined ? undefined : (value.connectors.map(MerchantConnectorServiceEntityToJSON)),
134
143
  'lastPolledAt': value.lastPolledAt === undefined ? undefined : (value.lastPolledAt.toISOString()),
144
+ 'dataSource': value.dataSource,
145
+ 'mcc': value.mcc,
135
146
  };
136
147
  }
@@ -29,7 +29,7 @@ export interface MerchantConnectorServiceEntity {
29
29
  */
30
30
  merchantAccountId: string;
31
31
  /**
32
- * The name of the connector.
32
+ * The payment processor connector (e.g., TSYS, ePay, Authorize.net)
33
33
  * @type {string}
34
34
  * @memberof MerchantConnectorServiceEntity
35
35
  */
@@ -64,9 +64,9 @@ export interface MerchantConnectorServiceEntity {
64
64
  */
65
65
  export declare const MerchantConnectorServiceEntityConnectorEnum: {
66
66
  readonly Epay: "EPAY";
67
- readonly Nmi: "NMI";
68
67
  readonly AuthorizeNet: "AUTHORIZE_NET";
69
68
  readonly ChannelPayments: "CHANNEL_PAYMENTS";
69
+ readonly Tsys: "TSYS";
70
70
  };
71
71
  export type MerchantConnectorServiceEntityConnectorEnum = typeof MerchantConnectorServiceEntityConnectorEnum[keyof typeof MerchantConnectorServiceEntityConnectorEnum];
72
72
  /**
@@ -12,9 +12,9 @@ import { exists, removeNullUndefined } from '../runtime';
12
12
  */
13
13
  export const MerchantConnectorServiceEntityConnectorEnum = {
14
14
  Epay: 'EPAY',
15
- Nmi: 'NMI',
16
15
  AuthorizeNet: 'AUTHORIZE_NET',
17
- ChannelPayments: 'CHANNEL_PAYMENTS'
16
+ ChannelPayments: 'CHANNEL_PAYMENTS',
17
+ Tsys: 'TSYS'
18
18
  };
19
19
  /**
20
20
  * @export
@@ -0,0 +1,51 @@
1
+ /**
2
+ * Channel Payments API
3
+ *
4
+ * NOTE: This class is auto generated. Do not edit the class manually.
5
+ *
6
+ */
7
+ import type { MerchantThemeDto } from './MerchantThemeDto';
8
+ /**
9
+ *
10
+ * @export
11
+ * @interface MerchantSettingsBaseDto
12
+ */
13
+ export interface MerchantSettingsBaseDto {
14
+ /**
15
+ * The custom theme for hosted checkout.
16
+ * @type {MerchantThemeDto}
17
+ * @memberof MerchantSettingsBaseDto
18
+ */
19
+ checkoutTheme?: MerchantThemeDto;
20
+ /**
21
+ * Enable or disable split card fee transactions.
22
+ * @type {boolean}
23
+ * @memberof MerchantSettingsBaseDto
24
+ */
25
+ isSplitCFeeEnabled?: boolean;
26
+ /**
27
+ * Enable or disable debt repayment.
28
+ * @type {boolean}
29
+ * @memberof MerchantSettingsBaseDto
30
+ */
31
+ isDebtRepaymentEnabled?: boolean;
32
+ /**
33
+ * Enable or disable partial authorization.
34
+ * @type {boolean}
35
+ * @memberof MerchantSettingsBaseDto
36
+ */
37
+ isPartialAuthEnabled?: boolean;
38
+ /**
39
+ * Enable bill payment on this merchant
40
+ * @type {boolean}
41
+ * @memberof MerchantSettingsBaseDto
42
+ */
43
+ isBillPaymentEnabled?: boolean;
44
+ }
45
+ /**
46
+ * Check if a given object implements the MerchantSettingsBaseDto interface.
47
+ */
48
+ export declare function instanceOfMerchantSettingsBaseDto(value: object): boolean;
49
+ export declare function MerchantSettingsBaseDtoFromJSON(json: any): MerchantSettingsBaseDto;
50
+ export declare function MerchantSettingsBaseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): MerchantSettingsBaseDto;
51
+ export declare function MerchantSettingsBaseDtoToJSON(value?: MerchantSettingsBaseDto | null): any;
@@ -0,0 +1,48 @@
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 { MerchantThemeDtoFromJSON, MerchantThemeDtoToJSON, } from './MerchantThemeDto';
11
+ /**
12
+ * Check if a given object implements the MerchantSettingsBaseDto interface.
13
+ */
14
+ export function instanceOfMerchantSettingsBaseDto(value) {
15
+ let isInstance = true;
16
+ return isInstance;
17
+ }
18
+ export function MerchantSettingsBaseDtoFromJSON(json) {
19
+ return MerchantSettingsBaseDtoFromJSONTyped(json, false);
20
+ }
21
+ export function MerchantSettingsBaseDtoFromJSONTyped(json, ignoreDiscriminator) {
22
+ if ((json === undefined) || (json === null)) {
23
+ return json;
24
+ }
25
+ const typed = {
26
+ 'checkoutTheme': !exists(json, 'checkoutTheme') ? undefined : MerchantThemeDtoFromJSON(json['checkoutTheme']),
27
+ 'isSplitCFeeEnabled': !exists(json, 'isSplitCFeeEnabled') ? undefined : json['isSplitCFeeEnabled'],
28
+ 'isDebtRepaymentEnabled': !exists(json, 'isDebtRepaymentEnabled') ? undefined : json['isDebtRepaymentEnabled'],
29
+ 'isPartialAuthEnabled': !exists(json, 'isPartialAuthEnabled') ? undefined : json['isPartialAuthEnabled'],
30
+ 'isBillPaymentEnabled': !exists(json, 'isBillPaymentEnabled') ? undefined : json['isBillPaymentEnabled'],
31
+ };
32
+ return removeNullUndefined(typed);
33
+ }
34
+ export function MerchantSettingsBaseDtoToJSON(value) {
35
+ if (value === undefined) {
36
+ return undefined;
37
+ }
38
+ if (value === null) {
39
+ return null;
40
+ }
41
+ return {
42
+ 'checkoutTheme': MerchantThemeDtoToJSON(value.checkoutTheme),
43
+ 'isSplitCFeeEnabled': value.isSplitCFeeEnabled,
44
+ 'isDebtRepaymentEnabled': value.isDebtRepaymentEnabled,
45
+ 'isPartialAuthEnabled': value.isPartialAuthEnabled,
46
+ 'isBillPaymentEnabled': value.isBillPaymentEnabled,
47
+ };
48
+ }
@@ -18,11 +18,11 @@ export interface MerchantSettingsDto {
18
18
  */
19
19
  checkoutTheme?: MerchantThemeDto;
20
20
  /**
21
- * Enable or disable split card fee transactions.
21
+ * Enable bill payment on this merchant
22
22
  * @type {boolean}
23
23
  * @memberof MerchantSettingsDto
24
24
  */
25
- isSplitCFeeEnabled?: boolean;
25
+ isBillPaymentEnabled?: boolean;
26
26
  }
27
27
  /**
28
28
  * Check if a given object implements the MerchantSettingsDto interface.
@@ -24,7 +24,7 @@ export function MerchantSettingsDtoFromJSONTyped(json, ignoreDiscriminator) {
24
24
  }
25
25
  const typed = {
26
26
  'checkoutTheme': !exists(json, 'checkoutTheme') ? undefined : MerchantThemeDtoFromJSON(json['checkoutTheme']),
27
- 'isSplitCFeeEnabled': !exists(json, 'isSplitCFeeEnabled') ? undefined : json['isSplitCFeeEnabled'],
27
+ 'isBillPaymentEnabled': !exists(json, 'isBillPaymentEnabled') ? undefined : json['isBillPaymentEnabled'],
28
28
  };
29
29
  return removeNullUndefined(typed);
30
30
  }
@@ -37,6 +37,6 @@ export function MerchantSettingsDtoToJSON(value) {
37
37
  }
38
38
  return {
39
39
  'checkoutTheme': MerchantThemeDtoToJSON(value.checkoutTheme),
40
- 'isSplitCFeeEnabled': value.isSplitCFeeEnabled,
40
+ 'isBillPaymentEnabled': value.isBillPaymentEnabled,
41
41
  };
42
42
  }
@@ -29,6 +29,24 @@ export interface MerchantSettingsEntity {
29
29
  * @memberof MerchantSettingsEntity
30
30
  */
31
31
  isSplitCFeeEnabled: boolean;
32
+ /**
33
+ * Whether debt repayment is enabled.
34
+ * @type {boolean}
35
+ * @memberof MerchantSettingsEntity
36
+ */
37
+ isDebtRepaymentEnabled: boolean;
38
+ /**
39
+ * Whether partial authorization is enabled.
40
+ * @type {boolean}
41
+ * @memberof MerchantSettingsEntity
42
+ */
43
+ isPartialAuthEnabled: boolean;
44
+ /**
45
+ * Whether bill payment is enabled for this merchant.
46
+ * @type {boolean}
47
+ * @memberof MerchantSettingsEntity
48
+ */
49
+ isBillPaymentEnabled: boolean;
32
50
  }
33
51
  /**
34
52
  * Check if a given object implements the MerchantSettingsEntity interface.
@@ -15,6 +15,9 @@ export function instanceOfMerchantSettingsEntity(value) {
15
15
  let isInstance = true;
16
16
  isInstance = isInstance && "merchantId" in value;
17
17
  isInstance = isInstance && "isSplitCFeeEnabled" in value;
18
+ isInstance = isInstance && "isDebtRepaymentEnabled" in value;
19
+ isInstance = isInstance && "isPartialAuthEnabled" in value;
20
+ isInstance = isInstance && "isBillPaymentEnabled" in value;
18
21
  return isInstance;
19
22
  }
20
23
  export function MerchantSettingsEntityFromJSON(json) {
@@ -28,6 +31,9 @@ export function MerchantSettingsEntityFromJSONTyped(json, ignoreDiscriminator) {
28
31
  'merchantId': json['merchantId'],
29
32
  'checkoutTheme': !exists(json, 'checkoutTheme') ? undefined : MerchantThemeEntityFromJSON(json['checkoutTheme']),
30
33
  'isSplitCFeeEnabled': json['isSplitCFeeEnabled'],
34
+ 'isDebtRepaymentEnabled': json['isDebtRepaymentEnabled'],
35
+ 'isPartialAuthEnabled': json['isPartialAuthEnabled'],
36
+ 'isBillPaymentEnabled': json['isBillPaymentEnabled'],
31
37
  };
32
38
  return removeNullUndefined(typed);
33
39
  }
@@ -42,5 +48,8 @@ export function MerchantSettingsEntityToJSON(value) {
42
48
  'merchantId': value.merchantId,
43
49
  'checkoutTheme': MerchantThemeEntityToJSON(value.checkoutTheme),
44
50
  'isSplitCFeeEnabled': value.isSplitCFeeEnabled,
51
+ 'isDebtRepaymentEnabled': value.isDebtRepaymentEnabled,
52
+ 'isPartialAuthEnabled': value.isPartialAuthEnabled,
53
+ 'isBillPaymentEnabled': value.isBillPaymentEnabled,
45
54
  };
46
55
  }
@@ -35,6 +35,12 @@ export interface UpdateMerchantAccountDto {
35
35
  * @memberof UpdateMerchantAccountDto
36
36
  */
37
37
  cardSchemes?: Array<UpdateMerchantAccountDtoCardSchemesEnum>;
38
+ /**
39
+ * Source of card data for this merchant account
40
+ * @type {string}
41
+ * @memberof UpdateMerchantAccountDto
42
+ */
43
+ dataSource?: UpdateMerchantAccountDtoDataSourceEnum;
38
44
  /**
39
45
  * The accepted currencies
40
46
  * @type {Array<string>}
@@ -116,6 +122,14 @@ export declare const UpdateMerchantAccountDtoCardSchemesEnum: {
116
122
  readonly Maestro: "MAESTRO";
117
123
  };
118
124
  export type UpdateMerchantAccountDtoCardSchemesEnum = typeof UpdateMerchantAccountDtoCardSchemesEnum[keyof typeof UpdateMerchantAccountDtoCardSchemesEnum];
125
+ /**
126
+ * @export
127
+ */
128
+ export declare const UpdateMerchantAccountDtoDataSourceEnum: {
129
+ readonly Moto: "MOTO";
130
+ readonly Internet: "INTERNET";
131
+ };
132
+ export type UpdateMerchantAccountDtoDataSourceEnum = typeof UpdateMerchantAccountDtoDataSourceEnum[keyof typeof UpdateMerchantAccountDtoDataSourceEnum];
119
133
  /**
120
134
  * @export
121
135
  */
@@ -37,6 +37,13 @@ export const UpdateMerchantAccountDtoCardSchemesEnum = {
37
37
  DinersClub: 'DINERS_CLUB',
38
38
  Maestro: 'MAESTRO'
39
39
  };
40
+ /**
41
+ * @export
42
+ */
43
+ export const UpdateMerchantAccountDtoDataSourceEnum = {
44
+ Moto: 'MOTO',
45
+ Internet: 'INTERNET'
46
+ };
40
47
  /**
41
48
  * @export
42
49
  */
@@ -64,6 +71,7 @@ export function UpdateMerchantAccountDtoFromJSONTyped(json, ignoreDiscriminator)
64
71
  'cFee': !exists(json, 'cFee') ? undefined : CreateCFeeDtoFromJSON(json['cFee']),
65
72
  'cardTypes': !exists(json, 'cardTypes') ? undefined : json['cardTypes'],
66
73
  'cardSchemes': !exists(json, 'cardSchemes') ? undefined : json['cardSchemes'],
74
+ 'dataSource': !exists(json, 'dataSource') ? undefined : json['dataSource'],
67
75
  'currencies': !exists(json, 'currencies') ? undefined : json['currencies'],
68
76
  'mcc': !exists(json, 'mcc') ? undefined : json['mcc'],
69
77
  'bin': !exists(json, 'bin') ? undefined : json['bin'],
@@ -87,6 +95,7 @@ export function UpdateMerchantAccountDtoToJSON(value) {
87
95
  'cFee': CreateCFeeDtoToJSON(value.cFee),
88
96
  'cardTypes': value.cardTypes,
89
97
  'cardSchemes': value.cardSchemes,
98
+ 'dataSource': value.dataSource,
90
99
  'currencies': value.currencies,
91
100
  'mcc': value.mcc,
92
101
  'bin': value.bin,
@@ -11,17 +11,17 @@
11
11
  */
12
12
  export interface UpdateMerchantCredentialsDto {
13
13
  /**
14
- * The given reference name.
14
+ * The alphanumeric ID of the merchant credentials record
15
15
  * @type {string}
16
16
  * @memberof UpdateMerchantCredentialsDto
17
17
  */
18
- credentialsName?: string;
18
+ merchantCredentialsId: string;
19
19
  /**
20
- * The alphanumeric ID of the merchant credentials record
20
+ * The given reference name.
21
21
  * @type {string}
22
22
  * @memberof UpdateMerchantCredentialsDto
23
23
  */
24
- merchantCredentialsId: string;
24
+ credentialsName: string;
25
25
  }
26
26
  /**
27
27
  * Check if a given object implements the UpdateMerchantCredentialsDto interface.
@@ -6,13 +6,14 @@
6
6
  * NOTE: This class is auto generated. Do not edit the class manually.
7
7
  *
8
8
  */
9
- import { exists, removeNullUndefined } from '../runtime';
9
+ import { removeNullUndefined } from '../runtime';
10
10
  /**
11
11
  * Check if a given object implements the UpdateMerchantCredentialsDto interface.
12
12
  */
13
13
  export function instanceOfUpdateMerchantCredentialsDto(value) {
14
14
  let isInstance = true;
15
15
  isInstance = isInstance && "merchantCredentialsId" in value;
16
+ isInstance = isInstance && "credentialsName" in value;
16
17
  return isInstance;
17
18
  }
18
19
  export function UpdateMerchantCredentialsDtoFromJSON(json) {
@@ -23,8 +24,8 @@ export function UpdateMerchantCredentialsDtoFromJSONTyped(json, ignoreDiscrimina
23
24
  return json;
24
25
  }
25
26
  const typed = {
26
- 'credentialsName': !exists(json, 'credentialsName') ? undefined : json['credentialsName'],
27
27
  'merchantCredentialsId': json['merchantCredentialsId'],
28
+ 'credentialsName': json['credentialsName'],
28
29
  };
29
30
  return removeNullUndefined(typed);
30
31
  }
@@ -36,7 +37,7 @@ export function UpdateMerchantCredentialsDtoToJSON(value) {
36
37
  return null;
37
38
  }
38
39
  return {
39
- 'credentialsName': value.credentialsName,
40
40
  'merchantCredentialsId': value.merchantCredentialsId,
41
+ 'credentialsName': value.credentialsName,
41
42
  };
42
43
  }
@@ -35,7 +35,6 @@ export * from './CreateEventDomainDto';
35
35
  export * from './CreateFeatureDto';
36
36
  export * from './CreateFeatureTargetDto';
37
37
  export * from './CreateInitialUserDto';
38
- export * from './CreateMerchantAccountDto';
39
38
  export * from './CreateMerchantAccountWithoutMerchantIdDto';
40
39
  export * from './CreateMerchantAddressDto';
41
40
  export * from './CreateMerchantConnectorCredentialsDto';
@@ -62,7 +61,6 @@ export * from './FeatureTargetEntity';
62
61
  export * from './FeaturesEntity';
63
62
  export * from './FeeDetailsEntity';
64
63
  export * from './LogoUploadEntity';
65
- export * from './MerchantAccountEntity';
66
64
  export * from './MerchantAccountServiceEntity';
67
65
  export * from './MerchantAccountsSearchEntity';
68
66
  export * from './MerchantAddressEntity';
@@ -74,6 +72,7 @@ export * from './MerchantCredentialsEntity';
74
72
  export * from './MerchantEntity';
75
73
  export * from './MerchantFeeDetailsEntity';
76
74
  export * from './MerchantServiceEntity';
75
+ export * from './MerchantSettingsBaseDto';
77
76
  export * from './MerchantSettingsDto';
78
77
  export * from './MerchantSettingsEntity';
79
78
  export * from './MerchantThemeDto';
@@ -37,7 +37,6 @@ export * from './CreateEventDomainDto';
37
37
  export * from './CreateFeatureDto';
38
38
  export * from './CreateFeatureTargetDto';
39
39
  export * from './CreateInitialUserDto';
40
- export * from './CreateMerchantAccountDto';
41
40
  export * from './CreateMerchantAccountWithoutMerchantIdDto';
42
41
  export * from './CreateMerchantAddressDto';
43
42
  export * from './CreateMerchantConnectorCredentialsDto';
@@ -64,7 +63,6 @@ export * from './FeatureTargetEntity';
64
63
  export * from './FeaturesEntity';
65
64
  export * from './FeeDetailsEntity';
66
65
  export * from './LogoUploadEntity';
67
- export * from './MerchantAccountEntity';
68
66
  export * from './MerchantAccountServiceEntity';
69
67
  export * from './MerchantAccountsSearchEntity';
70
68
  export * from './MerchantAddressEntity';
@@ -76,6 +74,7 @@ export * from './MerchantCredentialsEntity';
76
74
  export * from './MerchantEntity';
77
75
  export * from './MerchantFeeDetailsEntity';
78
76
  export * from './MerchantServiceEntity';
77
+ export * from './MerchantSettingsBaseDto';
79
78
  export * from './MerchantSettingsDto';
80
79
  export * from './MerchantSettingsEntity';
81
80
  export * from './MerchantThemeDto';
@@ -64,7 +64,7 @@ export class BaseAPI {
64
64
  }
65
65
  async createFetchParams(context) {
66
66
  Object.keys(context.headers).forEach(key => context.headers[key] === undefined ? delete context.headers[key] : {});
67
- context.headers['user-agent'] = "@channelpayments/node-sdk/v1.194.0";
67
+ context.headers['user-agent'] = "@channelpayments/node-sdk/v1.195.0";
68
68
  const token = this.generateAuthToken();
69
69
  context.headers['Authorization'] = `Bearer ${token}`;
70
70
  let url = this.url + context.path;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@channelpayments/node-sdk",
3
3
  "description": "Channel Payments nodejs sdk",
4
- "version": "1.194.0",
4
+ "version": "1.195.0",
5
5
  "author": "Channel Payments",
6
6
  "license": "ISC",
7
7
  "main": "dist/cjs/index.js",