@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
@@ -30,7 +30,7 @@ function MerchantSettingsDtoFromJSONTyped(json, ignoreDiscriminator) {
30
30
  }
31
31
  const typed = {
32
32
  'checkoutTheme': !(0, runtime_1.exists)(json, 'checkoutTheme') ? undefined : (0, MerchantThemeDto_1.MerchantThemeDtoFromJSON)(json['checkoutTheme']),
33
- 'isSplitCFeeEnabled': !(0, runtime_1.exists)(json, 'isSplitCFeeEnabled') ? undefined : json['isSplitCFeeEnabled'],
33
+ 'isBillPaymentEnabled': !(0, runtime_1.exists)(json, 'isBillPaymentEnabled') ? undefined : json['isBillPaymentEnabled'],
34
34
  };
35
35
  return (0, runtime_1.removeNullUndefined)(typed);
36
36
  }
@@ -43,6 +43,6 @@ function MerchantSettingsDtoToJSON(value) {
43
43
  }
44
44
  return {
45
45
  'checkoutTheme': (0, MerchantThemeDto_1.MerchantThemeDtoToJSON)(value.checkoutTheme),
46
- 'isSplitCFeeEnabled': value.isSplitCFeeEnabled,
46
+ 'isBillPaymentEnabled': value.isBillPaymentEnabled,
47
47
  };
48
48
  }
@@ -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.
@@ -21,6 +21,9 @@ function instanceOfMerchantSettingsEntity(value) {
21
21
  let isInstance = true;
22
22
  isInstance = isInstance && "merchantId" in value;
23
23
  isInstance = isInstance && "isSplitCFeeEnabled" in value;
24
+ isInstance = isInstance && "isDebtRepaymentEnabled" in value;
25
+ isInstance = isInstance && "isPartialAuthEnabled" in value;
26
+ isInstance = isInstance && "isBillPaymentEnabled" in value;
24
27
  return isInstance;
25
28
  }
26
29
  function MerchantSettingsEntityFromJSON(json) {
@@ -34,6 +37,9 @@ function MerchantSettingsEntityFromJSONTyped(json, ignoreDiscriminator) {
34
37
  'merchantId': json['merchantId'],
35
38
  'checkoutTheme': !(0, runtime_1.exists)(json, 'checkoutTheme') ? undefined : (0, MerchantThemeEntity_1.MerchantThemeEntityFromJSON)(json['checkoutTheme']),
36
39
  'isSplitCFeeEnabled': json['isSplitCFeeEnabled'],
40
+ 'isDebtRepaymentEnabled': json['isDebtRepaymentEnabled'],
41
+ 'isPartialAuthEnabled': json['isPartialAuthEnabled'],
42
+ 'isBillPaymentEnabled': json['isBillPaymentEnabled'],
37
43
  };
38
44
  return (0, runtime_1.removeNullUndefined)(typed);
39
45
  }
@@ -48,5 +54,8 @@ function MerchantSettingsEntityToJSON(value) {
48
54
  'merchantId': value.merchantId,
49
55
  'checkoutTheme': (0, MerchantThemeEntity_1.MerchantThemeEntityToJSON)(value.checkoutTheme),
50
56
  'isSplitCFeeEnabled': value.isSplitCFeeEnabled,
57
+ 'isDebtRepaymentEnabled': value.isDebtRepaymentEnabled,
58
+ 'isPartialAuthEnabled': value.isPartialAuthEnabled,
59
+ 'isBillPaymentEnabled': value.isBillPaymentEnabled,
51
60
  };
52
61
  }
@@ -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
@@ -14,6 +14,7 @@ exports.PaymentMethodDtoFromJSON = PaymentMethodDtoFromJSON;
14
14
  exports.PaymentMethodDtoFromJSONTyped = PaymentMethodDtoFromJSONTyped;
15
15
  exports.PaymentMethodDtoToJSON = PaymentMethodDtoToJSON;
16
16
  const runtime_1 = require("../runtime");
17
+ const BillingDetailsDto1_1 = require("./BillingDetailsDto1");
17
18
  /**
18
19
  * @export
19
20
  */
@@ -57,6 +58,7 @@ function PaymentMethodDtoFromJSONTyped(json, ignoreDiscriminator) {
57
58
  'accountNumber': !(0, runtime_1.exists)(json, 'accountNumber') ? undefined : json['accountNumber'],
58
59
  'accountType': !(0, runtime_1.exists)(json, 'accountType') ? undefined : json['accountType'],
59
60
  'accountHolderName': !(0, runtime_1.exists)(json, 'accountHolderName') ? undefined : json['accountHolderName'],
61
+ 'billingDetails': !(0, runtime_1.exists)(json, 'billingDetails') ? undefined : (0, BillingDetailsDto1_1.BillingDetailsDto1FromJSON)(json['billingDetails']),
60
62
  };
61
63
  return (0, runtime_1.removeNullUndefined)(typed);
62
64
  }
@@ -80,5 +82,6 @@ function PaymentMethodDtoToJSON(value) {
80
82
  'accountNumber': value.accountNumber,
81
83
  'accountType': value.accountType,
82
84
  'accountHolderName': value.accountHolderName,
85
+ 'billingDetails': (0, BillingDetailsDto1_1.BillingDetailsDto1ToJSON)(value.billingDetails),
83
86
  };
84
87
  }
@@ -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}
@@ -93,8 +93,16 @@ function TransactionEntityFromJSONTyped(json, ignoreDiscriminator) {
93
93
  'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
94
94
  'amount': json['amount'],
95
95
  'netAmount': json['netAmount'],
96
+ 'salesTax': !(0, runtime_1.exists)(json, 'salesTax') ? undefined : json['salesTax'],
96
97
  'fee': json['fee'],
97
98
  'feeDetails': !(0, runtime_1.exists)(json, 'feeDetails') ? undefined : (json['feeDetails'].map(TransactionFeeDetailsEntity_1.TransactionFeeDetailsEntityFromJSON)),
99
+ 'authorizedAmount': !(0, runtime_1.exists)(json, 'authorizedAmount') ? undefined : json['authorizedAmount'],
100
+ 'capturedAmount': !(0, runtime_1.exists)(json, 'capturedAmount') ? undefined : json['capturedAmount'],
101
+ 'settledAmount': !(0, runtime_1.exists)(json, 'settledAmount') ? undefined : json['settledAmount'],
102
+ 'refundableAmount': !(0, runtime_1.exists)(json, 'refundableAmount') ? undefined : json['refundableAmount'],
103
+ 'voidedAmount': !(0, runtime_1.exists)(json, 'voidedAmount') ? undefined : json['voidedAmount'],
104
+ 'refundedAmount': !(0, runtime_1.exists)(json, 'refundedAmount') ? undefined : json['refundedAmount'],
105
+ 'country': !(0, runtime_1.exists)(json, 'country') ? undefined : json['country'],
98
106
  'currency': !(0, runtime_1.exists)(json, 'currency') ? undefined : json['currency'],
99
107
  'secCode': !(0, runtime_1.exists)(json, 'secCode') ? undefined : json['secCode'],
100
108
  'paymentMethod': !(0, runtime_1.exists)(json, 'paymentMethod') ? undefined : (0, TransactionPaymentInstrumentBaseEntity_1.TransactionPaymentInstrumentBaseEntityFromJSON)(json['paymentMethod']),
@@ -103,15 +111,11 @@ function TransactionEntityFromJSONTyped(json, ignoreDiscriminator) {
103
111
  'avsResponseCode': !(0, runtime_1.exists)(json, 'avsResponseCode') ? undefined : json['avsResponseCode'],
104
112
  'cvvResponseCode': !(0, runtime_1.exists)(json, 'cvvResponseCode') ? undefined : json['cvvResponseCode'],
105
113
  'authCode': !(0, runtime_1.exists)(json, 'authCode') ? undefined : json['authCode'],
106
- 'authorizedAmount': !(0, runtime_1.exists)(json, 'authorizedAmount') ? undefined : json['authorizedAmount'],
107
- 'capturedAmount': !(0, runtime_1.exists)(json, 'capturedAmount') ? undefined : json['capturedAmount'],
108
- 'settledAmount': !(0, runtime_1.exists)(json, 'settledAmount') ? undefined : json['settledAmount'],
109
- 'refundableAmount': !(0, runtime_1.exists)(json, 'refundableAmount') ? undefined : json['refundableAmount'],
110
- 'refundedAmount': !(0, runtime_1.exists)(json, 'refundedAmount') ? undefined : json['refundedAmount'],
114
+ 'purchaseOrderId': !(0, runtime_1.exists)(json, 'purchaseOrderId') ? undefined : json['purchaseOrderId'],
111
115
  'externalTransactionId': !(0, runtime_1.exists)(json, 'externalTransactionId') ? undefined : json['externalTransactionId'],
112
- 'country': !(0, runtime_1.exists)(json, 'country') ? undefined : json['country'],
113
116
  'externalBuyerId': !(0, runtime_1.exists)(json, 'externalBuyerId') ? undefined : json['externalBuyerId'],
114
117
  'buyerId': !(0, runtime_1.exists)(json, 'buyerId') ? undefined : json['buyerId'],
118
+ 'customerRefId': !(0, runtime_1.exists)(json, 'customerRefId') ? undefined : json['customerRefId'],
115
119
  'createdAt': !(0, runtime_1.exists)(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
116
120
  'updatedAt': !(0, runtime_1.exists)(json, 'updatedAt') ? undefined : (new Date(json['updatedAt'])),
117
121
  'authorizedAt': !(0, runtime_1.exists)(json, 'authorizedAt') ? undefined : (new Date(json['authorizedAt'])),
@@ -143,8 +147,16 @@ function TransactionEntityToJSON(value) {
143
147
  'description': value.description,
144
148
  'amount': value.amount,
145
149
  'netAmount': value.netAmount,
150
+ 'salesTax': value.salesTax,
146
151
  'fee': value.fee,
147
152
  'feeDetails': value.feeDetails === undefined ? undefined : (value.feeDetails.map(TransactionFeeDetailsEntity_1.TransactionFeeDetailsEntityToJSON)),
153
+ 'authorizedAmount': value.authorizedAmount,
154
+ 'capturedAmount': value.capturedAmount,
155
+ 'settledAmount': value.settledAmount,
156
+ 'refundableAmount': value.refundableAmount,
157
+ 'voidedAmount': value.voidedAmount,
158
+ 'refundedAmount': value.refundedAmount,
159
+ 'country': value.country,
148
160
  'currency': value.currency,
149
161
  'secCode': value.secCode,
150
162
  'paymentMethod': (0, TransactionPaymentInstrumentBaseEntity_1.TransactionPaymentInstrumentBaseEntityToJSON)(value.paymentMethod),
@@ -153,15 +165,11 @@ function TransactionEntityToJSON(value) {
153
165
  'avsResponseCode': value.avsResponseCode,
154
166
  'cvvResponseCode': value.cvvResponseCode,
155
167
  'authCode': value.authCode,
156
- 'authorizedAmount': value.authorizedAmount,
157
- 'capturedAmount': value.capturedAmount,
158
- 'settledAmount': value.settledAmount,
159
- 'refundableAmount': value.refundableAmount,
160
- 'refundedAmount': value.refundedAmount,
168
+ 'purchaseOrderId': value.purchaseOrderId,
161
169
  'externalTransactionId': value.externalTransactionId,
162
- 'country': value.country,
163
170
  'externalBuyerId': value.externalBuyerId,
164
171
  'buyerId': value.buyerId,
172
+ 'customerRefId': value.customerRefId,
165
173
  'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
166
174
  'updatedAt': value.updatedAt === undefined ? undefined : (value.updatedAt.toISOString()),
167
175
  '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
  */
@@ -8,7 +8,7 @@
8
8
  *
9
9
  */
10
10
  Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.UpdateMerchantAccountDtoCurrenciesEnum = exports.UpdateMerchantAccountDtoCardSchemesEnum = exports.UpdateMerchantAccountDtoCardTypesEnum = exports.UpdateMerchantAccountDtoPspEnum = void 0;
11
+ exports.UpdateMerchantAccountDtoCurrenciesEnum = exports.UpdateMerchantAccountDtoDataSourceEnum = exports.UpdateMerchantAccountDtoCardSchemesEnum = exports.UpdateMerchantAccountDtoCardTypesEnum = exports.UpdateMerchantAccountDtoPspEnum = void 0;
12
12
  exports.instanceOfUpdateMerchantAccountDto = instanceOfUpdateMerchantAccountDto;
13
13
  exports.UpdateMerchantAccountDtoFromJSON = UpdateMerchantAccountDtoFromJSON;
14
14
  exports.UpdateMerchantAccountDtoFromJSONTyped = UpdateMerchantAccountDtoFromJSONTyped;
@@ -44,6 +44,13 @@ exports.UpdateMerchantAccountDtoCardSchemesEnum = {
44
44
  DinersClub: 'DINERS_CLUB',
45
45
  Maestro: 'MAESTRO'
46
46
  };
47
+ /**
48
+ * @export
49
+ */
50
+ exports.UpdateMerchantAccountDtoDataSourceEnum = {
51
+ Moto: 'MOTO',
52
+ Internet: 'INTERNET'
53
+ };
47
54
  /**
48
55
  * @export
49
56
  */
@@ -71,6 +78,7 @@ function UpdateMerchantAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
71
78
  'cFee': !(0, runtime_1.exists)(json, 'cFee') ? undefined : (0, CreateCFeeDto_1.CreateCFeeDtoFromJSON)(json['cFee']),
72
79
  'cardTypes': !(0, runtime_1.exists)(json, 'cardTypes') ? undefined : json['cardTypes'],
73
80
  'cardSchemes': !(0, runtime_1.exists)(json, 'cardSchemes') ? undefined : json['cardSchemes'],
81
+ 'dataSource': !(0, runtime_1.exists)(json, 'dataSource') ? undefined : json['dataSource'],
74
82
  'currencies': !(0, runtime_1.exists)(json, 'currencies') ? undefined : json['currencies'],
75
83
  'mcc': !(0, runtime_1.exists)(json, 'mcc') ? undefined : json['mcc'],
76
84
  'bin': !(0, runtime_1.exists)(json, 'bin') ? undefined : json['bin'],
@@ -94,6 +102,7 @@ function UpdateMerchantAccountDtoToJSON(value) {
94
102
  'cFee': (0, CreateCFeeDto_1.CreateCFeeDtoToJSON)(value.cFee),
95
103
  'cardTypes': value.cardTypes,
96
104
  'cardSchemes': value.cardSchemes,
105
+ 'dataSource': value.dataSource,
97
106
  'currencies': value.currencies,
98
107
  'mcc': value.mcc,
99
108
  '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.
@@ -19,6 +19,7 @@ const runtime_1 = require("../runtime");
19
19
  function instanceOfUpdateMerchantCredentialsDto(value) {
20
20
  let isInstance = true;
21
21
  isInstance = isInstance && "merchantCredentialsId" in value;
22
+ isInstance = isInstance && "credentialsName" in value;
22
23
  return isInstance;
23
24
  }
24
25
  function UpdateMerchantCredentialsDtoFromJSON(json) {
@@ -29,8 +30,8 @@ function UpdateMerchantCredentialsDtoFromJSONTyped(json, ignoreDiscriminator) {
29
30
  return json;
30
31
  }
31
32
  const typed = {
32
- 'credentialsName': !(0, runtime_1.exists)(json, 'credentialsName') ? undefined : json['credentialsName'],
33
33
  'merchantCredentialsId': json['merchantCredentialsId'],
34
+ 'credentialsName': json['credentialsName'],
34
35
  };
35
36
  return (0, runtime_1.removeNullUndefined)(typed);
36
37
  }
@@ -42,7 +43,7 @@ function UpdateMerchantCredentialsDtoToJSON(value) {
42
43
  return null;
43
44
  }
44
45
  return {
45
- 'credentialsName': value.credentialsName,
46
46
  'merchantCredentialsId': value.merchantCredentialsId,
47
+ 'credentialsName': value.credentialsName,
47
48
  };
48
49
  }
@@ -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';
@@ -17,14 +17,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  /* tslint:disable */
18
18
  /* eslint-disable */
19
19
  __exportStar(require("./AddressEntity"), exports);
20
- __exportStar(require("./AdminCreateTransactionRefundDto"), exports);
21
- __exportStar(require("./AdminVoidTransactionDto"), exports);
22
20
  __exportStar(require("./AuthorizedPaymentInstrumentsEntity"), exports);
23
21
  __exportStar(require("./AvailablePaymentMethodEntity"), exports);
24
22
  __exportStar(require("./BankDetailsServiceEntity"), exports);
25
23
  __exportStar(require("./BillingAddressDto"), exports);
26
24
  __exportStar(require("./BillingAddressEntity"), exports);
27
25
  __exportStar(require("./BillingDetailsDto"), exports);
26
+ __exportStar(require("./BillingDetailsDto1"), exports);
28
27
  __exportStar(require("./BillingDetailsEntity"), exports);
29
28
  __exportStar(require("./BuyerEntity"), exports);
30
29
  __exportStar(require("./BuyersAddressEntity"), exports);
@@ -53,7 +52,6 @@ __exportStar(require("./CreateEventDomainDto"), exports);
53
52
  __exportStar(require("./CreateFeatureDto"), exports);
54
53
  __exportStar(require("./CreateFeatureTargetDto"), exports);
55
54
  __exportStar(require("./CreateInitialUserDto"), exports);
56
- __exportStar(require("./CreateMerchantAccountDto"), exports);
57
55
  __exportStar(require("./CreateMerchantAccountWithoutMerchantIdDto"), exports);
58
56
  __exportStar(require("./CreateMerchantAddressDto"), exports);
59
57
  __exportStar(require("./CreateMerchantConnectorCredentialsDto"), exports);
@@ -80,7 +78,6 @@ __exportStar(require("./FeatureTargetEntity"), exports);
80
78
  __exportStar(require("./FeaturesEntity"), exports);
81
79
  __exportStar(require("./FeeDetailsEntity"), exports);
82
80
  __exportStar(require("./LogoUploadEntity"), exports);
83
- __exportStar(require("./MerchantAccountEntity"), exports);
84
81
  __exportStar(require("./MerchantAccountServiceEntity"), exports);
85
82
  __exportStar(require("./MerchantAccountsSearchEntity"), exports);
86
83
  __exportStar(require("./MerchantAddressEntity"), exports);
@@ -92,6 +89,7 @@ __exportStar(require("./MerchantCredentialsEntity"), exports);
92
89
  __exportStar(require("./MerchantEntity"), exports);
93
90
  __exportStar(require("./MerchantFeeDetailsEntity"), exports);
94
91
  __exportStar(require("./MerchantServiceEntity"), exports);
92
+ __exportStar(require("./MerchantSettingsBaseDto"), exports);
95
93
  __exportStar(require("./MerchantSettingsDto"), exports);
96
94
  __exportStar(require("./MerchantSettingsEntity"), exports);
97
95
  __exportStar(require("./MerchantThemeDto"), exports);
@@ -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.196.0";
118
118
  const token = this.generateAuthToken();
119
119
  context.headers['Authorization'] = `Bearer ${token}`;
120
120
  let url = this.url + context.path;
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Channel Payments API
3
+ *
4
+ * NOTE: This class is auto generated. Do not edit the class manually.
5
+ *
6
+ */
7
+ import type { BillingAddressDto } from './BillingAddressDto';
8
+ /**
9
+ *
10
+ * @export
11
+ * @interface BillingDetailsDto1
12
+ */
13
+ export interface BillingDetailsDto1 {
14
+ /**
15
+ * The address of the account holder.
16
+ * @type {BillingAddressDto}
17
+ * @memberof BillingDetailsDto1
18
+ */
19
+ billingAddress: BillingAddressDto;
20
+ /**
21
+ * The email address of the account holder.
22
+ * @type {string}
23
+ * @memberof BillingDetailsDto1
24
+ */
25
+ email: string;
26
+ /**
27
+ * The first name of the account holder.
28
+ * @type {string}
29
+ * @memberof BillingDetailsDto1
30
+ */
31
+ givenName: string;
32
+ /**
33
+ * The last name of the account holder.
34
+ * @type {string}
35
+ * @memberof BillingDetailsDto1
36
+ */
37
+ familyName: string;
38
+ }
39
+ /**
40
+ * Check if a given object implements the BillingDetailsDto1 interface.
41
+ */
42
+ export declare function instanceOfBillingDetailsDto1(value: object): boolean;
43
+ export declare function BillingDetailsDto1FromJSON(json: any): BillingDetailsDto1;
44
+ export declare function BillingDetailsDto1FromJSONTyped(json: any, ignoreDiscriminator: boolean): BillingDetailsDto1;
45
+ export declare function BillingDetailsDto1ToJSON(value?: BillingDetailsDto1 | null): any;
@@ -0,0 +1,50 @@
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 { removeNullUndefined } from '../runtime';
10
+ import { BillingAddressDtoFromJSON, BillingAddressDtoToJSON, } from './BillingAddressDto';
11
+ /**
12
+ * Check if a given object implements the BillingDetailsDto1 interface.
13
+ */
14
+ export function instanceOfBillingDetailsDto1(value) {
15
+ let isInstance = true;
16
+ isInstance = isInstance && "billingAddress" in value;
17
+ isInstance = isInstance && "email" in value;
18
+ isInstance = isInstance && "givenName" in value;
19
+ isInstance = isInstance && "familyName" in value;
20
+ return isInstance;
21
+ }
22
+ export function BillingDetailsDto1FromJSON(json) {
23
+ return BillingDetailsDto1FromJSONTyped(json, false);
24
+ }
25
+ export function BillingDetailsDto1FromJSONTyped(json, ignoreDiscriminator) {
26
+ if ((json === undefined) || (json === null)) {
27
+ return json;
28
+ }
29
+ const typed = {
30
+ 'billingAddress': BillingAddressDtoFromJSON(json['billingAddress']),
31
+ 'email': json['email'],
32
+ 'givenName': json['givenName'],
33
+ 'familyName': json['familyName'],
34
+ };
35
+ return removeNullUndefined(typed);
36
+ }
37
+ export function BillingDetailsDto1ToJSON(value) {
38
+ if (value === undefined) {
39
+ return undefined;
40
+ }
41
+ if (value === null) {
42
+ return null;
43
+ }
44
+ return {
45
+ 'billingAddress': BillingAddressDtoToJSON(value.billingAddress),
46
+ 'email': value.email,
47
+ 'givenName': value.givenName,
48
+ 'familyName': value.familyName,
49
+ };
50
+ }
@@ -29,7 +29,7 @@ export interface CreateCheckoutSessionItemDto {
29
29
  */
30
30
  quantity?: number;
31
31
  /**
32
- * The total taxes of the item.
32
+ * The total sales tax of the item.
33
33
  * @type {number}
34
34
  * @memberof CreateCheckoutSessionItemDto
35
35
  */
@@ -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
@@ -64,6 +65,12 @@ export interface CreateCheckoutSessionPaymentMethodDto {
64
65
  * @memberof CreateCheckoutSessionPaymentMethodDto
65
66
  */
66
67
  accountType?: CreateCheckoutSessionPaymentMethodDtoAccountTypeEnum;
68
+ /**
69
+ * The billing details.
70
+ * @type {BillingDetailsDto1}
71
+ * @memberof CreateCheckoutSessionPaymentMethodDto
72
+ */
73
+ billingDetails?: BillingDetailsDto1;
67
74
  }
68
75
  /**
69
76
  * @export