@channelpayments/node-sdk 1.194.0 → 1.196.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 (89) hide show
  1. package/dist/cjs/models/BillingDetailsDto1.d.ts +45 -0
  2. package/dist/cjs/models/BillingDetailsDto1.js +56 -0
  3. package/dist/cjs/models/CreateCheckoutSessionItemDto.d.ts +1 -1
  4. package/dist/cjs/models/CreateCheckoutSessionPaymentMethodDto.d.ts +7 -0
  5. package/dist/cjs/models/CreateCheckoutSessionPaymentMethodDto.js +3 -0
  6. package/dist/cjs/models/CreateMerchantAccountWithoutMerchantIdDto.d.ts +14 -0
  7. package/dist/cjs/models/CreateMerchantAccountWithoutMerchantIdDto.js +10 -1
  8. package/dist/cjs/models/CreateMerchantConnectorWithoutMerchantAccountIdDto.d.ts +1 -1
  9. package/dist/cjs/models/CreateMerchantConnectorWithoutMerchantAccountIdDto.js +2 -2
  10. package/dist/cjs/models/CreateMerchantCredentialsDto.d.ts +0 -6
  11. package/dist/cjs/models/CreateMerchantCredentialsDto.js +0 -3
  12. package/dist/cjs/models/CreateMerchantDto.d.ts +3 -3
  13. package/dist/cjs/models/CreateMerchantDto.js +3 -3
  14. package/dist/cjs/models/CreateTransactionRequestDto.d.ts +19 -1
  15. package/dist/cjs/models/CreateTransactionRequestDto.js +6 -0
  16. package/dist/cjs/models/MerchantAccountServiceEntity.d.ts +20 -0
  17. package/dist/cjs/models/MerchantAccountServiceEntity.js +12 -1
  18. package/dist/cjs/models/MerchantConnectorServiceEntity.d.ts +2 -2
  19. package/dist/cjs/models/MerchantConnectorServiceEntity.js +2 -2
  20. package/dist/cjs/models/MerchantSettingsBaseDto.d.ts +51 -0
  21. package/dist/cjs/models/MerchantSettingsBaseDto.js +54 -0
  22. package/dist/cjs/models/MerchantSettingsDto.d.ts +2 -2
  23. package/dist/cjs/models/MerchantSettingsDto.js +2 -2
  24. package/dist/cjs/models/MerchantSettingsEntity.d.ts +18 -0
  25. package/dist/cjs/models/MerchantSettingsEntity.js +9 -0
  26. package/dist/cjs/models/PaymentMethodDto.d.ts +7 -0
  27. package/dist/cjs/models/PaymentMethodDto.js +3 -0
  28. package/dist/cjs/models/TransactionEntity.d.ts +57 -33
  29. package/dist/cjs/models/TransactionEntity.js +20 -12
  30. package/dist/cjs/models/UpdateMerchantAccountDto.d.ts +14 -0
  31. package/dist/cjs/models/UpdateMerchantAccountDto.js +10 -1
  32. package/dist/cjs/models/UpdateMerchantCredentialsDto.d.ts +4 -4
  33. package/dist/cjs/models/UpdateMerchantCredentialsDto.js +3 -2
  34. package/dist/cjs/models/index.d.ts +2 -4
  35. package/dist/cjs/models/index.js +2 -4
  36. package/dist/cjs/runtime.js +1 -1
  37. package/dist/mjs/models/BillingDetailsDto1.d.ts +45 -0
  38. package/dist/mjs/models/BillingDetailsDto1.js +50 -0
  39. package/dist/mjs/models/CreateCheckoutSessionItemDto.d.ts +1 -1
  40. package/dist/mjs/models/CreateCheckoutSessionPaymentMethodDto.d.ts +7 -0
  41. package/dist/mjs/models/CreateCheckoutSessionPaymentMethodDto.js +3 -0
  42. package/dist/mjs/models/CreateMerchantAccountWithoutMerchantIdDto.d.ts +14 -0
  43. package/dist/mjs/models/CreateMerchantAccountWithoutMerchantIdDto.js +9 -0
  44. package/dist/mjs/models/CreateMerchantConnectorWithoutMerchantAccountIdDto.d.ts +1 -1
  45. package/dist/mjs/models/CreateMerchantConnectorWithoutMerchantAccountIdDto.js +2 -2
  46. package/dist/mjs/models/CreateMerchantCredentialsDto.d.ts +0 -6
  47. package/dist/mjs/models/CreateMerchantCredentialsDto.js +0 -3
  48. package/dist/mjs/models/CreateMerchantDto.d.ts +3 -3
  49. package/dist/mjs/models/CreateMerchantDto.js +3 -3
  50. package/dist/mjs/models/CreateTransactionRequestDto.d.ts +19 -1
  51. package/dist/mjs/models/CreateTransactionRequestDto.js +6 -0
  52. package/dist/mjs/models/MerchantAccountServiceEntity.d.ts +20 -0
  53. package/dist/mjs/models/MerchantAccountServiceEntity.js +11 -0
  54. package/dist/mjs/models/MerchantConnectorServiceEntity.d.ts +2 -2
  55. package/dist/mjs/models/MerchantConnectorServiceEntity.js +2 -2
  56. package/dist/mjs/models/MerchantSettingsBaseDto.d.ts +51 -0
  57. package/dist/mjs/models/MerchantSettingsBaseDto.js +48 -0
  58. package/dist/mjs/models/MerchantSettingsDto.d.ts +2 -2
  59. package/dist/mjs/models/MerchantSettingsDto.js +2 -2
  60. package/dist/mjs/models/MerchantSettingsEntity.d.ts +18 -0
  61. package/dist/mjs/models/MerchantSettingsEntity.js +9 -0
  62. package/dist/mjs/models/PaymentMethodDto.d.ts +7 -0
  63. package/dist/mjs/models/PaymentMethodDto.js +3 -0
  64. package/dist/mjs/models/TransactionEntity.d.ts +57 -33
  65. package/dist/mjs/models/TransactionEntity.js +20 -12
  66. package/dist/mjs/models/UpdateMerchantAccountDto.d.ts +14 -0
  67. package/dist/mjs/models/UpdateMerchantAccountDto.js +9 -0
  68. package/dist/mjs/models/UpdateMerchantCredentialsDto.d.ts +4 -4
  69. package/dist/mjs/models/UpdateMerchantCredentialsDto.js +4 -3
  70. package/dist/mjs/models/index.d.ts +2 -4
  71. package/dist/mjs/models/index.js +2 -4
  72. package/dist/mjs/runtime.js +1 -1
  73. package/package.json +1 -1
  74. package/dist/cjs/models/AdminCreateTransactionRefundDto.d.ts +0 -82
  75. package/dist/cjs/models/AdminCreateTransactionRefundDto.js +0 -84
  76. package/dist/cjs/models/AdminVoidTransactionDto.d.ts +0 -32
  77. package/dist/cjs/models/AdminVoidTransactionDto.js +0 -49
  78. package/dist/cjs/models/CreateMerchantAccountDto.d.ts +0 -161
  79. package/dist/cjs/models/CreateMerchantAccountDto.js +0 -126
  80. package/dist/cjs/models/MerchantAccountEntity.d.ts +0 -178
  81. package/dist/cjs/models/MerchantAccountEntity.js +0 -143
  82. package/dist/mjs/models/AdminCreateTransactionRefundDto.d.ts +0 -82
  83. package/dist/mjs/models/AdminCreateTransactionRefundDto.js +0 -77
  84. package/dist/mjs/models/AdminVoidTransactionDto.d.ts +0 -32
  85. package/dist/mjs/models/AdminVoidTransactionDto.js +0 -43
  86. package/dist/mjs/models/CreateMerchantAccountDto.d.ts +0 -161
  87. package/dist/mjs/models/CreateMerchantAccountDto.js +0 -119
  88. package/dist/mjs/models/MerchantAccountEntity.d.ts +0 -178
  89. package/dist/mjs/models/MerchantAccountEntity.js +0 -136
@@ -7,6 +7,7 @@
7
7
  *
8
8
  */
9
9
  import { exists, removeNullUndefined } from '../runtime';
10
+ import { BillingDetailsDto1FromJSON, BillingDetailsDto1ToJSON, } from './BillingDetailsDto1';
10
11
  /**
11
12
  * @export
12
13
  */
@@ -47,6 +48,7 @@ export function CreateCheckoutSessionPaymentMethodDtoFromJSONTyped(json, ignoreD
47
48
  'abaNumber': !exists(json, 'abaNumber') ? undefined : json['abaNumber'],
48
49
  'accountNumber': !exists(json, 'accountNumber') ? undefined : json['accountNumber'],
49
50
  'accountType': !exists(json, 'accountType') ? undefined : json['accountType'],
51
+ 'billingDetails': !exists(json, 'billingDetails') ? undefined : BillingDetailsDto1FromJSON(json['billingDetails']),
50
52
  };
51
53
  return removeNullUndefined(typed);
52
54
  }
@@ -67,5 +69,6 @@ export function CreateCheckoutSessionPaymentMethodDtoToJSON(value) {
67
69
  'abaNumber': value.abaNumber,
68
70
  'accountNumber': value.accountNumber,
69
71
  'accountType': value.accountType,
72
+ 'billingDetails': BillingDetailsDto1ToJSON(value.billingDetails),
70
73
  };
71
74
  }
@@ -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
  }
@@ -13,11 +13,17 @@ import type { TagDto } from './TagDto';
13
13
  */
14
14
  export interface CreateTransactionRequestDto {
15
15
  /**
16
- * The amount to charge the buyer.
16
+ * The total amount to charge the buyer.
17
17
  * @type {number}
18
18
  * @memberof CreateTransactionRequestDto
19
19
  */
20
20
  amount: number;
21
+ /**
22
+ * The total sales tax of the transaction.
23
+ * @type {number}
24
+ * @memberof CreateTransactionRequestDto
25
+ */
26
+ salesTax?: number;
21
27
  /**
22
28
  * The ISO-4217 currency code of the amount to charge the buyer.
23
29
  * @type {string}
@@ -54,6 +60,12 @@ export interface CreateTransactionRequestDto {
54
60
  * @memberof CreateTransactionRequestDto
55
61
  */
56
62
  externalTransactionId?: string;
63
+ /**
64
+ * Optional alphanumeric field (a-z, A-Z, 0-9, space).
65
+ * @type {string}
66
+ * @memberof CreateTransactionRequestDto
67
+ */
68
+ purchaseOrderId?: string;
57
69
  /**
58
70
  * The SEC code of the ACH transaction. Must be unset if method is not BANK.
59
71
  * @type {string}
@@ -66,6 +78,12 @@ export interface CreateTransactionRequestDto {
66
78
  * @memberof CreateTransactionRequestDto
67
79
  */
68
80
  tags?: Array<TagDto>;
81
+ /**
82
+ * Optional transaction descriptor.
83
+ * @type {string}
84
+ * @memberof CreateTransactionRequestDto
85
+ */
86
+ description?: string;
69
87
  }
70
88
  /**
71
89
  * @export
@@ -54,14 +54,17 @@ export function CreateTransactionRequestDtoFromJSONTyped(json, ignoreDiscriminat
54
54
  }
55
55
  const typed = {
56
56
  'amount': json['amount'],
57
+ 'salesTax': !exists(json, 'salesTax') ? undefined : json['salesTax'],
57
58
  'currency': json['currency'],
58
59
  'paymentMethod': PaymentMethodDtoFromJSON(json['paymentMethod']),
59
60
  'intent': json['intent'],
60
61
  'excludeCFee': !exists(json, 'excludeCFee') ? undefined : json['excludeCFee'],
61
62
  'country': !exists(json, 'country') ? undefined : json['country'],
62
63
  'externalTransactionId': !exists(json, 'externalTransactionId') ? undefined : json['externalTransactionId'],
64
+ 'purchaseOrderId': !exists(json, 'purchaseOrderId') ? undefined : json['purchaseOrderId'],
63
65
  'secCode': !exists(json, 'secCode') ? undefined : json['secCode'],
64
66
  'tags': !exists(json, 'tags') ? undefined : (json['tags'].map(TagDtoFromJSON)),
67
+ 'description': !exists(json, 'description') ? undefined : json['description'],
65
68
  };
66
69
  return removeNullUndefined(typed);
67
70
  }
@@ -74,13 +77,16 @@ export function CreateTransactionRequestDtoToJSON(value) {
74
77
  }
75
78
  return {
76
79
  'amount': value.amount,
80
+ 'salesTax': value.salesTax,
77
81
  'currency': value.currency,
78
82
  'paymentMethod': PaymentMethodDtoToJSON(value.paymentMethod),
79
83
  'intent': value.intent,
80
84
  'excludeCFee': value.excludeCFee,
81
85
  'country': value.country,
82
86
  'externalTransactionId': value.externalTransactionId,
87
+ 'purchaseOrderId': value.purchaseOrderId,
83
88
  'secCode': value.secCode,
84
89
  'tags': value.tags === undefined ? undefined : (value.tags.map(TagDtoToJSON)),
90
+ 'description': value.description,
85
91
  };
86
92
  }
@@ -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
  }
@@ -4,6 +4,7 @@
4
4
  * NOTE: This class is auto generated. Do not edit the class manually.
5
5
  *
6
6
  */
7
+ import type { BillingDetailsDto1 } from './BillingDetailsDto1';
7
8
  /**
8
9
  *
9
10
  * @export
@@ -82,6 +83,12 @@ export interface PaymentMethodDto {
82
83
  * @memberof PaymentMethodDto
83
84
  */
84
85
  accountHolderName?: string;
86
+ /**
87
+ * The billing details.
88
+ * @type {BillingDetailsDto1}
89
+ * @memberof PaymentMethodDto
90
+ */
91
+ billingDetails?: BillingDetailsDto1;
85
92
  }
86
93
  /**
87
94
  * @export
@@ -7,6 +7,7 @@
7
7
  *
8
8
  */
9
9
  import { exists, removeNullUndefined } from '../runtime';
10
+ import { BillingDetailsDto1FromJSON, BillingDetailsDto1ToJSON, } from './BillingDetailsDto1';
10
11
  /**
11
12
  * @export
12
13
  */
@@ -50,6 +51,7 @@ export function PaymentMethodDtoFromJSONTyped(json, ignoreDiscriminator) {
50
51
  'accountNumber': !exists(json, 'accountNumber') ? undefined : json['accountNumber'],
51
52
  'accountType': !exists(json, 'accountType') ? undefined : json['accountType'],
52
53
  'accountHolderName': !exists(json, 'accountHolderName') ? undefined : json['accountHolderName'],
54
+ 'billingDetails': !exists(json, 'billingDetails') ? undefined : BillingDetailsDto1FromJSON(json['billingDetails']),
53
55
  };
54
56
  return removeNullUndefined(typed);
55
57
  }
@@ -73,5 +75,6 @@ export function PaymentMethodDtoToJSON(value) {
73
75
  'accountNumber': value.accountNumber,
74
76
  'accountType': value.accountType,
75
77
  'accountHolderName': value.accountHolderName,
78
+ 'billingDetails': BillingDetailsDto1ToJSON(value.billingDetails),
76
79
  };
77
80
  }