@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
@@ -55,6 +55,12 @@ export interface TransactionEntity {
55
55
  * @memberof TransactionEntity
56
56
  */
57
57
  netAmount: number;
58
+ /**
59
+ * The sales tax of the transaction.
60
+ * @type {number}
61
+ * @memberof TransactionEntity
62
+ */
63
+ salesTax?: number;
58
64
  /**
59
65
  * The fee of the transaction.
60
66
  * @type {number}
@@ -67,6 +73,48 @@ export interface TransactionEntity {
67
73
  * @memberof TransactionEntity
68
74
  */
69
75
  feeDetails?: Array<TransactionFeeDetailsEntity>;
76
+ /**
77
+ * The authorized amount of the transaction.
78
+ * @type {number}
79
+ * @memberof TransactionEntity
80
+ */
81
+ authorizedAmount?: number;
82
+ /**
83
+ * The captured amount of the transaction.
84
+ * @type {number}
85
+ * @memberof TransactionEntity
86
+ */
87
+ capturedAmount?: number;
88
+ /**
89
+ * The settled amount of the transaction.
90
+ * @type {number}
91
+ * @memberof TransactionEntity
92
+ */
93
+ settledAmount?: number;
94
+ /**
95
+ * The refundable amount of the transaction.
96
+ * @type {number}
97
+ * @memberof TransactionEntity
98
+ */
99
+ refundableAmount?: number;
100
+ /**
101
+ * The voided amount of the transaction.
102
+ * @type {number}
103
+ * @memberof TransactionEntity
104
+ */
105
+ voidedAmount?: number;
106
+ /**
107
+ * The refunded amount of the transaction.
108
+ * @type {number}
109
+ * @memberof TransactionEntity
110
+ */
111
+ refundedAmount?: number;
112
+ /**
113
+ * The country of the transaction.
114
+ * @type {string}
115
+ * @memberof TransactionEntity
116
+ */
117
+ country?: string;
70
118
  /**
71
119
  * The currency of the transaction.
72
120
  * @type {string}
@@ -116,47 +164,17 @@ export interface TransactionEntity {
116
164
  */
117
165
  authCode?: string;
118
166
  /**
119
- * The authorized amount of the transaction.
120
- * @type {number}
121
- * @memberof TransactionEntity
122
- */
123
- authorizedAmount?: number;
124
- /**
125
- * The captured amount of the transaction.
126
- * @type {number}
127
- * @memberof TransactionEntity
128
- */
129
- capturedAmount?: number;
130
- /**
131
- * The settled amount of the transaction.
132
- * @type {number}
133
- * @memberof TransactionEntity
134
- */
135
- settledAmount?: number;
136
- /**
137
- * The refundable amount of the transaction.
138
- * @type {number}
139
- * @memberof TransactionEntity
140
- */
141
- refundableAmount?: number;
142
- /**
143
- * The refunded amount of the transaction.
144
- * @type {number}
167
+ * The purchase order ID of the transaction.
168
+ * @type {string}
145
169
  * @memberof TransactionEntity
146
170
  */
147
- refundedAmount?: number;
171
+ purchaseOrderId?: string;
148
172
  /**
149
173
  * The external transaction ID of the transaction.
150
174
  * @type {string}
151
175
  * @memberof TransactionEntity
152
176
  */
153
177
  externalTransactionId?: string;
154
- /**
155
- * The country of the transaction.
156
- * @type {string}
157
- * @memberof TransactionEntity
158
- */
159
- country?: string;
160
178
  /**
161
179
  * The external buyer ID of the transaction.
162
180
  * @type {string}
@@ -169,6 +187,12 @@ export interface TransactionEntity {
169
187
  * @memberof TransactionEntity
170
188
  */
171
189
  buyerId?: string;
190
+ /**
191
+ * The customer reference ID of the transaction used by the gateway.
192
+ * @type {string}
193
+ * @memberof TransactionEntity
194
+ */
195
+ customerRefId?: string;
172
196
  /**
173
197
  * The created date of the transaction.
174
198
  * @type {Date}
@@ -86,8 +86,16 @@ export function TransactionEntityFromJSONTyped(json, ignoreDiscriminator) {
86
86
  'description': !exists(json, 'description') ? undefined : json['description'],
87
87
  'amount': json['amount'],
88
88
  'netAmount': json['netAmount'],
89
+ 'salesTax': !exists(json, 'salesTax') ? undefined : json['salesTax'],
89
90
  'fee': json['fee'],
90
91
  'feeDetails': !exists(json, 'feeDetails') ? undefined : (json['feeDetails'].map(TransactionFeeDetailsEntityFromJSON)),
92
+ 'authorizedAmount': !exists(json, 'authorizedAmount') ? undefined : json['authorizedAmount'],
93
+ 'capturedAmount': !exists(json, 'capturedAmount') ? undefined : json['capturedAmount'],
94
+ 'settledAmount': !exists(json, 'settledAmount') ? undefined : json['settledAmount'],
95
+ 'refundableAmount': !exists(json, 'refundableAmount') ? undefined : json['refundableAmount'],
96
+ 'voidedAmount': !exists(json, 'voidedAmount') ? undefined : json['voidedAmount'],
97
+ 'refundedAmount': !exists(json, 'refundedAmount') ? undefined : json['refundedAmount'],
98
+ 'country': !exists(json, 'country') ? undefined : json['country'],
91
99
  'currency': !exists(json, 'currency') ? undefined : json['currency'],
92
100
  'secCode': !exists(json, 'secCode') ? undefined : json['secCode'],
93
101
  'paymentMethod': !exists(json, 'paymentMethod') ? undefined : TransactionPaymentInstrumentBaseEntityFromJSON(json['paymentMethod']),
@@ -96,15 +104,11 @@ export function TransactionEntityFromJSONTyped(json, ignoreDiscriminator) {
96
104
  'avsResponseCode': !exists(json, 'avsResponseCode') ? undefined : json['avsResponseCode'],
97
105
  'cvvResponseCode': !exists(json, 'cvvResponseCode') ? undefined : json['cvvResponseCode'],
98
106
  'authCode': !exists(json, 'authCode') ? undefined : json['authCode'],
99
- 'authorizedAmount': !exists(json, 'authorizedAmount') ? undefined : json['authorizedAmount'],
100
- 'capturedAmount': !exists(json, 'capturedAmount') ? undefined : json['capturedAmount'],
101
- 'settledAmount': !exists(json, 'settledAmount') ? undefined : json['settledAmount'],
102
- 'refundableAmount': !exists(json, 'refundableAmount') ? undefined : json['refundableAmount'],
103
- 'refundedAmount': !exists(json, 'refundedAmount') ? undefined : json['refundedAmount'],
107
+ 'purchaseOrderId': !exists(json, 'purchaseOrderId') ? undefined : json['purchaseOrderId'],
104
108
  'externalTransactionId': !exists(json, 'externalTransactionId') ? undefined : json['externalTransactionId'],
105
- 'country': !exists(json, 'country') ? undefined : json['country'],
106
109
  'externalBuyerId': !exists(json, 'externalBuyerId') ? undefined : json['externalBuyerId'],
107
110
  'buyerId': !exists(json, 'buyerId') ? undefined : json['buyerId'],
111
+ 'customerRefId': !exists(json, 'customerRefId') ? undefined : json['customerRefId'],
108
112
  'createdAt': !exists(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
109
113
  'updatedAt': !exists(json, 'updatedAt') ? undefined : (new Date(json['updatedAt'])),
110
114
  'authorizedAt': !exists(json, 'authorizedAt') ? undefined : (new Date(json['authorizedAt'])),
@@ -136,8 +140,16 @@ export function TransactionEntityToJSON(value) {
136
140
  'description': value.description,
137
141
  'amount': value.amount,
138
142
  'netAmount': value.netAmount,
143
+ 'salesTax': value.salesTax,
139
144
  'fee': value.fee,
140
145
  'feeDetails': value.feeDetails === undefined ? undefined : (value.feeDetails.map(TransactionFeeDetailsEntityToJSON)),
146
+ 'authorizedAmount': value.authorizedAmount,
147
+ 'capturedAmount': value.capturedAmount,
148
+ 'settledAmount': value.settledAmount,
149
+ 'refundableAmount': value.refundableAmount,
150
+ 'voidedAmount': value.voidedAmount,
151
+ 'refundedAmount': value.refundedAmount,
152
+ 'country': value.country,
141
153
  'currency': value.currency,
142
154
  'secCode': value.secCode,
143
155
  'paymentMethod': TransactionPaymentInstrumentBaseEntityToJSON(value.paymentMethod),
@@ -146,15 +158,11 @@ export function TransactionEntityToJSON(value) {
146
158
  'avsResponseCode': value.avsResponseCode,
147
159
  'cvvResponseCode': value.cvvResponseCode,
148
160
  'authCode': value.authCode,
149
- 'authorizedAmount': value.authorizedAmount,
150
- 'capturedAmount': value.capturedAmount,
151
- 'settledAmount': value.settledAmount,
152
- 'refundableAmount': value.refundableAmount,
153
- 'refundedAmount': value.refundedAmount,
161
+ 'purchaseOrderId': value.purchaseOrderId,
154
162
  'externalTransactionId': value.externalTransactionId,
155
- 'country': value.country,
156
163
  'externalBuyerId': value.externalBuyerId,
157
164
  'buyerId': value.buyerId,
165
+ 'customerRefId': value.customerRefId,
158
166
  'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
159
167
  'updatedAt': value.updatedAt === undefined ? undefined : (value.updatedAt.toISOString()),
160
168
  'authorizedAt': value.authorizedAt === undefined ? undefined : (value.authorizedAt.toISOString()),
@@ -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
  }
@@ -1,12 +1,11 @@
1
1
  export * from './AddressEntity';
2
- export * from './AdminCreateTransactionRefundDto';
3
- export * from './AdminVoidTransactionDto';
4
2
  export * from './AuthorizedPaymentInstrumentsEntity';
5
3
  export * from './AvailablePaymentMethodEntity';
6
4
  export * from './BankDetailsServiceEntity';
7
5
  export * from './BillingAddressDto';
8
6
  export * from './BillingAddressEntity';
9
7
  export * from './BillingDetailsDto';
8
+ export * from './BillingDetailsDto1';
10
9
  export * from './BillingDetailsEntity';
11
10
  export * from './BuyerEntity';
12
11
  export * from './BuyersAddressEntity';
@@ -35,7 +34,6 @@ export * from './CreateEventDomainDto';
35
34
  export * from './CreateFeatureDto';
36
35
  export * from './CreateFeatureTargetDto';
37
36
  export * from './CreateInitialUserDto';
38
- export * from './CreateMerchantAccountDto';
39
37
  export * from './CreateMerchantAccountWithoutMerchantIdDto';
40
38
  export * from './CreateMerchantAddressDto';
41
39
  export * from './CreateMerchantConnectorCredentialsDto';
@@ -62,7 +60,6 @@ export * from './FeatureTargetEntity';
62
60
  export * from './FeaturesEntity';
63
61
  export * from './FeeDetailsEntity';
64
62
  export * from './LogoUploadEntity';
65
- export * from './MerchantAccountEntity';
66
63
  export * from './MerchantAccountServiceEntity';
67
64
  export * from './MerchantAccountsSearchEntity';
68
65
  export * from './MerchantAddressEntity';
@@ -74,6 +71,7 @@ export * from './MerchantCredentialsEntity';
74
71
  export * from './MerchantEntity';
75
72
  export * from './MerchantFeeDetailsEntity';
76
73
  export * from './MerchantServiceEntity';
74
+ export * from './MerchantSettingsBaseDto';
77
75
  export * from './MerchantSettingsDto';
78
76
  export * from './MerchantSettingsEntity';
79
77
  export * from './MerchantThemeDto';
@@ -1,14 +1,13 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export * from './AddressEntity';
4
- export * from './AdminCreateTransactionRefundDto';
5
- export * from './AdminVoidTransactionDto';
6
4
  export * from './AuthorizedPaymentInstrumentsEntity';
7
5
  export * from './AvailablePaymentMethodEntity';
8
6
  export * from './BankDetailsServiceEntity';
9
7
  export * from './BillingAddressDto';
10
8
  export * from './BillingAddressEntity';
11
9
  export * from './BillingDetailsDto';
10
+ export * from './BillingDetailsDto1';
12
11
  export * from './BillingDetailsEntity';
13
12
  export * from './BuyerEntity';
14
13
  export * from './BuyersAddressEntity';
@@ -37,7 +36,6 @@ export * from './CreateEventDomainDto';
37
36
  export * from './CreateFeatureDto';
38
37
  export * from './CreateFeatureTargetDto';
39
38
  export * from './CreateInitialUserDto';
40
- export * from './CreateMerchantAccountDto';
41
39
  export * from './CreateMerchantAccountWithoutMerchantIdDto';
42
40
  export * from './CreateMerchantAddressDto';
43
41
  export * from './CreateMerchantConnectorCredentialsDto';
@@ -64,7 +62,6 @@ export * from './FeatureTargetEntity';
64
62
  export * from './FeaturesEntity';
65
63
  export * from './FeeDetailsEntity';
66
64
  export * from './LogoUploadEntity';
67
- export * from './MerchantAccountEntity';
68
65
  export * from './MerchantAccountServiceEntity';
69
66
  export * from './MerchantAccountsSearchEntity';
70
67
  export * from './MerchantAddressEntity';
@@ -76,6 +73,7 @@ export * from './MerchantCredentialsEntity';
76
73
  export * from './MerchantEntity';
77
74
  export * from './MerchantFeeDetailsEntity';
78
75
  export * from './MerchantServiceEntity';
76
+ export * from './MerchantSettingsBaseDto';
79
77
  export * from './MerchantSettingsDto';
80
78
  export * from './MerchantSettingsEntity';
81
79
  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.196.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.196.0",
5
5
  "author": "Channel Payments",
6
6
  "license": "ISC",
7
7
  "main": "dist/cjs/index.js",
@@ -1,82 +0,0 @@
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 AdminCreateTransactionRefundDto
11
- */
12
- export interface AdminCreateTransactionRefundDto {
13
- /**
14
- * The amount to refund.
15
- * @type {number}
16
- * @memberof AdminCreateTransactionRefundDto
17
- */
18
- refundAmount: number;
19
- /**
20
- * The transaction id to refund.
21
- * @type {string}
22
- * @memberof AdminCreateTransactionRefundDto
23
- */
24
- transactionId: string;
25
- /**
26
- * The reason for the refund.
27
- * @type {string}
28
- * @memberof AdminCreateTransactionRefundDto
29
- */
30
- reason?: AdminCreateTransactionRefundDtoReasonEnum;
31
- /**
32
- * The description for the refund if reason is OTHER.
33
- * @type {string}
34
- * @memberof AdminCreateTransactionRefundDto
35
- */
36
- description?: string;
37
- /**
38
- * The content of the transaction refund note.
39
- * @type {string}
40
- * @memberof AdminCreateTransactionRefundDto
41
- */
42
- note?: string;
43
- /**
44
- * The merchant id.
45
- * @type {string}
46
- * @memberof AdminCreateTransactionRefundDto
47
- */
48
- merchantId: string;
49
- }
50
- /**
51
- * @export
52
- */
53
- export declare const AdminCreateTransactionRefundDtoReasonEnum: {
54
- readonly CustomerDissatisfaction: "CUSTOMER_DISSATISFACTION";
55
- readonly ProductReturned: "PRODUCT_RETURNED";
56
- readonly ServiceCancelled: "SERVICE_CANCELLED";
57
- readonly OrderCancelled: "ORDER_CANCELLED";
58
- readonly Overpayment: "OVERPAYMENT";
59
- readonly DuplicateCharge: "DUPLICATE_CHARGE";
60
- readonly FraudulentCharge: "FRAUDULENT_CHARGE";
61
- readonly ProductNotReceived: "PRODUCT_NOT_RECEIVED";
62
- readonly ProductDefective: "PRODUCT_DEFECTIVE";
63
- readonly IncorrectProductShipped: "INCORRECT_PRODUCT_SHIPPED";
64
- readonly BillingError: "BILLING_ERROR";
65
- readonly WarrantyClaim: "WARRANTY_CLAIM";
66
- readonly PromotionalAdjustment: "PROMOTIONAL_ADJUSTMENT";
67
- readonly ComplianceIssue: "COMPLIANCE_ISSUE";
68
- readonly GoodwillGesture: "GOODWILL_GESTURE";
69
- readonly SubscriptionCancellation: "SUBSCRIPTION_CANCELLATION";
70
- readonly LoanRepaymentAdjustment: "LOAN_REPAYMENT_ADJUSTMENT";
71
- readonly RegulatoryRequirement: "REGULATORY_REQUIREMENT";
72
- readonly None: "NONE";
73
- readonly Other: "OTHER";
74
- };
75
- export type AdminCreateTransactionRefundDtoReasonEnum = typeof AdminCreateTransactionRefundDtoReasonEnum[keyof typeof AdminCreateTransactionRefundDtoReasonEnum];
76
- /**
77
- * Check if a given object implements the AdminCreateTransactionRefundDto interface.
78
- */
79
- export declare function instanceOfAdminCreateTransactionRefundDto(value: object): boolean;
80
- export declare function AdminCreateTransactionRefundDtoFromJSON(json: any): AdminCreateTransactionRefundDto;
81
- export declare function AdminCreateTransactionRefundDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminCreateTransactionRefundDto;
82
- export declare function AdminCreateTransactionRefundDtoToJSON(value?: AdminCreateTransactionRefundDto | null): any;
@@ -1,84 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Channel Payments API
6
- *
7
- * NOTE: This class is auto generated. Do not edit the class manually.
8
- *
9
- */
10
- Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.AdminCreateTransactionRefundDtoReasonEnum = void 0;
12
- exports.instanceOfAdminCreateTransactionRefundDto = instanceOfAdminCreateTransactionRefundDto;
13
- exports.AdminCreateTransactionRefundDtoFromJSON = AdminCreateTransactionRefundDtoFromJSON;
14
- exports.AdminCreateTransactionRefundDtoFromJSONTyped = AdminCreateTransactionRefundDtoFromJSONTyped;
15
- exports.AdminCreateTransactionRefundDtoToJSON = AdminCreateTransactionRefundDtoToJSON;
16
- const runtime_1 = require("../runtime");
17
- /**
18
- * @export
19
- */
20
- exports.AdminCreateTransactionRefundDtoReasonEnum = {
21
- CustomerDissatisfaction: 'CUSTOMER_DISSATISFACTION',
22
- ProductReturned: 'PRODUCT_RETURNED',
23
- ServiceCancelled: 'SERVICE_CANCELLED',
24
- OrderCancelled: 'ORDER_CANCELLED',
25
- Overpayment: 'OVERPAYMENT',
26
- DuplicateCharge: 'DUPLICATE_CHARGE',
27
- FraudulentCharge: 'FRAUDULENT_CHARGE',
28
- ProductNotReceived: 'PRODUCT_NOT_RECEIVED',
29
- ProductDefective: 'PRODUCT_DEFECTIVE',
30
- IncorrectProductShipped: 'INCORRECT_PRODUCT_SHIPPED',
31
- BillingError: 'BILLING_ERROR',
32
- WarrantyClaim: 'WARRANTY_CLAIM',
33
- PromotionalAdjustment: 'PROMOTIONAL_ADJUSTMENT',
34
- ComplianceIssue: 'COMPLIANCE_ISSUE',
35
- GoodwillGesture: 'GOODWILL_GESTURE',
36
- SubscriptionCancellation: 'SUBSCRIPTION_CANCELLATION',
37
- LoanRepaymentAdjustment: 'LOAN_REPAYMENT_ADJUSTMENT',
38
- RegulatoryRequirement: 'REGULATORY_REQUIREMENT',
39
- None: 'NONE',
40
- Other: 'OTHER'
41
- };
42
- /**
43
- * Check if a given object implements the AdminCreateTransactionRefundDto interface.
44
- */
45
- function instanceOfAdminCreateTransactionRefundDto(value) {
46
- let isInstance = true;
47
- isInstance = isInstance && "refundAmount" in value;
48
- isInstance = isInstance && "transactionId" in value;
49
- isInstance = isInstance && "merchantId" in value;
50
- return isInstance;
51
- }
52
- function AdminCreateTransactionRefundDtoFromJSON(json) {
53
- return AdminCreateTransactionRefundDtoFromJSONTyped(json, false);
54
- }
55
- function AdminCreateTransactionRefundDtoFromJSONTyped(json, ignoreDiscriminator) {
56
- if ((json === undefined) || (json === null)) {
57
- return json;
58
- }
59
- const typed = {
60
- 'refundAmount': json['refundAmount'],
61
- 'transactionId': json['transactionId'],
62
- 'reason': !(0, runtime_1.exists)(json, 'reason') ? undefined : json['reason'],
63
- 'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
64
- 'note': !(0, runtime_1.exists)(json, 'note') ? undefined : json['note'],
65
- 'merchantId': json['merchantId'],
66
- };
67
- return (0, runtime_1.removeNullUndefined)(typed);
68
- }
69
- function AdminCreateTransactionRefundDtoToJSON(value) {
70
- if (value === undefined) {
71
- return undefined;
72
- }
73
- if (value === null) {
74
- return null;
75
- }
76
- return {
77
- 'refundAmount': value.refundAmount,
78
- 'transactionId': value.transactionId,
79
- 'reason': value.reason,
80
- 'description': value.description,
81
- 'note': value.note,
82
- 'merchantId': value.merchantId,
83
- };
84
- }
@@ -1,32 +0,0 @@
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 AdminVoidTransactionDto
11
- */
12
- export interface AdminVoidTransactionDto {
13
- /**
14
- * The transaction ID.
15
- * @type {string}
16
- * @memberof AdminVoidTransactionDto
17
- */
18
- transactionId: string;
19
- /**
20
- * The merchantId ID.
21
- * @type {string}
22
- * @memberof AdminVoidTransactionDto
23
- */
24
- merchantId: string;
25
- }
26
- /**
27
- * Check if a given object implements the AdminVoidTransactionDto interface.
28
- */
29
- export declare function instanceOfAdminVoidTransactionDto(value: object): boolean;
30
- export declare function AdminVoidTransactionDtoFromJSON(json: any): AdminVoidTransactionDto;
31
- export declare function AdminVoidTransactionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminVoidTransactionDto;
32
- export declare function AdminVoidTransactionDtoToJSON(value?: AdminVoidTransactionDto | null): any;
@@ -1,49 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Channel Payments API
6
- *
7
- * NOTE: This class is auto generated. Do not edit the class manually.
8
- *
9
- */
10
- Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.instanceOfAdminVoidTransactionDto = instanceOfAdminVoidTransactionDto;
12
- exports.AdminVoidTransactionDtoFromJSON = AdminVoidTransactionDtoFromJSON;
13
- exports.AdminVoidTransactionDtoFromJSONTyped = AdminVoidTransactionDtoFromJSONTyped;
14
- exports.AdminVoidTransactionDtoToJSON = AdminVoidTransactionDtoToJSON;
15
- const runtime_1 = require("../runtime");
16
- /**
17
- * Check if a given object implements the AdminVoidTransactionDto interface.
18
- */
19
- function instanceOfAdminVoidTransactionDto(value) {
20
- let isInstance = true;
21
- isInstance = isInstance && "transactionId" in value;
22
- isInstance = isInstance && "merchantId" in value;
23
- return isInstance;
24
- }
25
- function AdminVoidTransactionDtoFromJSON(json) {
26
- return AdminVoidTransactionDtoFromJSONTyped(json, false);
27
- }
28
- function AdminVoidTransactionDtoFromJSONTyped(json, ignoreDiscriminator) {
29
- if ((json === undefined) || (json === null)) {
30
- return json;
31
- }
32
- const typed = {
33
- 'transactionId': json['transactionId'],
34
- 'merchantId': json['merchantId'],
35
- };
36
- return (0, runtime_1.removeNullUndefined)(typed);
37
- }
38
- function AdminVoidTransactionDtoToJSON(value) {
39
- if (value === undefined) {
40
- return undefined;
41
- }
42
- if (value === null) {
43
- return null;
44
- }
45
- return {
46
- 'transactionId': value.transactionId,
47
- 'merchantId': value.merchantId,
48
- };
49
- }