@channelpayments/node-sdk 1.197.0 → 1.200.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/apis/ChannelPaymentsApi.d.ts +7 -6
- package/dist/cjs/apis/ChannelPaymentsApi.js +73 -18
- package/dist/cjs/models/AdminCreateMerchantCredentialsDto.d.ts +32 -0
- package/dist/cjs/models/AdminCreateMerchantCredentialsDto.js +49 -0
- package/dist/cjs/models/AdminMerchantSettingsDto.d.ts +63 -0
- package/dist/cjs/models/AdminMerchantSettingsDto.js +59 -0
- package/dist/cjs/models/CFeeEntity.d.ts +12 -0
- package/dist/cjs/models/CFeeEntity.js +4 -0
- package/dist/cjs/models/CreateCFeeDto.d.ts +13 -1
- package/dist/cjs/models/CreateCFeeDto.js +4 -0
- package/dist/cjs/models/CreateMerchantAccountDto.d.ts +187 -0
- package/dist/cjs/models/CreateMerchantAccountDto.js +139 -0
- package/dist/cjs/models/CreateMerchantAccountWithoutMerchantIdDto.d.ts +15 -3
- package/dist/cjs/models/CreateMerchantAccountWithoutMerchantIdDto.js +6 -2
- package/dist/cjs/models/CreateMerchantDto.d.ts +6 -6
- package/dist/cjs/models/CreateMerchantDto.js +2 -2
- package/dist/cjs/models/MerchantAccountEntity.d.ts +204 -0
- package/dist/cjs/models/MerchantAccountEntity.js +156 -0
- package/dist/cjs/models/MerchantAccountServiceEntity.d.ts +6 -0
- package/dist/cjs/models/MerchantAccountServiceEntity.js +2 -0
- package/dist/cjs/models/MerchantSettingsBaseDto.d.ts +7 -1
- package/dist/cjs/models/MerchantSettingsBaseDto.js +2 -0
- package/dist/cjs/models/MerchantSettingsDto.d.ts +1 -1
- package/dist/cjs/models/MerchantSettingsEntity.d.ts +6 -0
- package/dist/cjs/models/MerchantSettingsEntity.js +3 -0
- package/dist/cjs/models/UpdateMerchantAccountDto.d.ts +12 -16
- package/dist/cjs/models/UpdateMerchantAccountDto.js +5 -12
- package/dist/cjs/models/UpdateMerchantConnectorCredentialsDto.d.ts +38 -0
- package/dist/cjs/models/UpdateMerchantConnectorCredentialsDto.js +50 -0
- package/dist/cjs/models/index.d.ts +5 -0
- package/dist/cjs/models/index.js +5 -0
- package/dist/cjs/runtime.js +1 -1
- package/dist/mjs/apis/ChannelPaymentsApi.d.ts +7 -6
- package/dist/mjs/apis/ChannelPaymentsApi.js +71 -18
- package/dist/mjs/models/AdminCreateMerchantCredentialsDto.d.ts +32 -0
- package/dist/mjs/models/AdminCreateMerchantCredentialsDto.js +43 -0
- package/dist/mjs/models/AdminMerchantSettingsDto.d.ts +63 -0
- package/dist/mjs/models/AdminMerchantSettingsDto.js +53 -0
- package/dist/mjs/models/CFeeEntity.d.ts +12 -0
- package/dist/mjs/models/CFeeEntity.js +5 -1
- package/dist/mjs/models/CreateCFeeDto.d.ts +13 -1
- package/dist/mjs/models/CreateCFeeDto.js +5 -1
- package/dist/mjs/models/CreateMerchantAccountDto.d.ts +187 -0
- package/dist/mjs/models/CreateMerchantAccountDto.js +132 -0
- package/dist/mjs/models/CreateMerchantAccountWithoutMerchantIdDto.d.ts +15 -3
- package/dist/mjs/models/CreateMerchantAccountWithoutMerchantIdDto.js +6 -2
- package/dist/mjs/models/CreateMerchantDto.d.ts +6 -6
- package/dist/mjs/models/CreateMerchantDto.js +2 -2
- package/dist/mjs/models/MerchantAccountEntity.d.ts +204 -0
- package/dist/mjs/models/MerchantAccountEntity.js +149 -0
- package/dist/mjs/models/MerchantAccountServiceEntity.d.ts +6 -0
- package/dist/mjs/models/MerchantAccountServiceEntity.js +2 -0
- package/dist/mjs/models/MerchantSettingsBaseDto.d.ts +7 -1
- package/dist/mjs/models/MerchantSettingsBaseDto.js +2 -0
- package/dist/mjs/models/MerchantSettingsDto.d.ts +1 -1
- package/dist/mjs/models/MerchantSettingsEntity.d.ts +6 -0
- package/dist/mjs/models/MerchantSettingsEntity.js +3 -0
- package/dist/mjs/models/UpdateMerchantAccountDto.d.ts +12 -16
- package/dist/mjs/models/UpdateMerchantAccountDto.js +4 -11
- package/dist/mjs/models/UpdateMerchantConnectorCredentialsDto.d.ts +38 -0
- package/dist/mjs/models/UpdateMerchantConnectorCredentialsDto.js +44 -0
- package/dist/mjs/models/index.d.ts +5 -0
- package/dist/mjs/models/index.js +5 -0
- package/dist/mjs/runtime.js +1 -1
- package/package.json +9 -9
|
@@ -65,6 +65,8 @@ export interface SearchReturnNotificationsRequest {
|
|
|
65
65
|
cursor?: string;
|
|
66
66
|
}
|
|
67
67
|
export interface SearchTransactionsRequest {
|
|
68
|
+
startDate?: string;
|
|
69
|
+
endDate?: string;
|
|
68
70
|
merchantId?: string;
|
|
69
71
|
accountHolderName?: string;
|
|
70
72
|
accountType?: Array<SearchTransactionsAccountTypeEnum>;
|
|
@@ -73,13 +75,10 @@ export interface SearchTransactionsRequest {
|
|
|
73
75
|
amountLessThan?: string;
|
|
74
76
|
amountMin?: string;
|
|
75
77
|
amountMax?: string;
|
|
76
|
-
authorizedAt?: string;
|
|
77
78
|
buyerId?: string;
|
|
78
|
-
capturedAt?: string;
|
|
79
79
|
cardType?: Array<SearchTransactionsCardTypeEnum>;
|
|
80
80
|
currency?: Array<SearchTransactionsCurrencyEnum>;
|
|
81
81
|
cursor?: string;
|
|
82
|
-
endDate?: string;
|
|
83
82
|
externalBuyerId?: string;
|
|
84
83
|
hasRefunds?: string;
|
|
85
84
|
includeCFee?: string;
|
|
@@ -89,13 +88,10 @@ export interface SearchTransactionsRequest {
|
|
|
89
88
|
method?: Array<SearchTransactionsMethodEnum>;
|
|
90
89
|
order?: SearchTransactionsOrderEnum;
|
|
91
90
|
paymentMethodId?: string;
|
|
92
|
-
startDate?: string;
|
|
93
91
|
status?: Array<SearchTransactionsStatusEnum>;
|
|
94
|
-
voidedAt?: string;
|
|
95
92
|
sessionId?: string;
|
|
96
93
|
tags?: Array<TagDto>;
|
|
97
94
|
externalTransactionId?: string;
|
|
98
|
-
transactionId?: string;
|
|
99
95
|
}
|
|
100
96
|
/**
|
|
101
97
|
*
|
|
@@ -201,6 +197,11 @@ export declare class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
201
197
|
* Find refund
|
|
202
198
|
*/
|
|
203
199
|
getRefund(refundId: string): Promise<TransactionRefundEntity>;
|
|
200
|
+
/**
|
|
201
|
+
* Attempts to find a transactions by session ID
|
|
202
|
+
* Find transactions by session ID
|
|
203
|
+
*/
|
|
204
|
+
getSessionTransactions(sessionId: string): Promise<Array<TransactionEntity>>;
|
|
204
205
|
/**
|
|
205
206
|
* Attempts to find a transaction by ID
|
|
206
207
|
* Find transaction
|
|
@@ -1452,6 +1452,73 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
1452
1452
|
return yield response.value();
|
|
1453
1453
|
});
|
|
1454
1454
|
}
|
|
1455
|
+
/**
|
|
1456
|
+
* Attempts to find a transactions by session ID
|
|
1457
|
+
* Find transactions by session ID
|
|
1458
|
+
*/
|
|
1459
|
+
getSessionTransactions(sessionId) {
|
|
1460
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1461
|
+
if (sessionId === null || sessionId === undefined) {
|
|
1462
|
+
throw new runtime.RequiredError('sessionId', 'Required parameter \'sessionId\' was null or undefined when calling getSessionTransactions.');
|
|
1463
|
+
}
|
|
1464
|
+
const queryParameters = {};
|
|
1465
|
+
const headerParameters = {};
|
|
1466
|
+
const rawResponse = yield this.request({
|
|
1467
|
+
path: `/transactions/sessions/{sessionId}`.replace(`{${"sessionId"}}`, encodeURIComponent(sessionId)),
|
|
1468
|
+
method: 'GET',
|
|
1469
|
+
headers: headerParameters,
|
|
1470
|
+
query: queryParameters,
|
|
1471
|
+
});
|
|
1472
|
+
let response;
|
|
1473
|
+
if (rawResponse.status === 200) {
|
|
1474
|
+
response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => jsonValue.map(models_1.TransactionEntityFromJSON));
|
|
1475
|
+
}
|
|
1476
|
+
if (rawResponse.status === 400) {
|
|
1477
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
1478
|
+
const error = yield errorResponse.value();
|
|
1479
|
+
throw error;
|
|
1480
|
+
}
|
|
1481
|
+
if (rawResponse.status === 401) {
|
|
1482
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
1483
|
+
const error = yield errorResponse.value();
|
|
1484
|
+
throw error;
|
|
1485
|
+
}
|
|
1486
|
+
if (rawResponse.status === 403) {
|
|
1487
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
1488
|
+
const error = yield errorResponse.value();
|
|
1489
|
+
throw error;
|
|
1490
|
+
}
|
|
1491
|
+
if (rawResponse.status === 404) {
|
|
1492
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
1493
|
+
const error = yield errorResponse.value();
|
|
1494
|
+
throw error;
|
|
1495
|
+
}
|
|
1496
|
+
if (rawResponse.status === 500) {
|
|
1497
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
1498
|
+
const error = yield errorResponse.value();
|
|
1499
|
+
throw error;
|
|
1500
|
+
}
|
|
1501
|
+
if (rawResponse.status === 502) {
|
|
1502
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
1503
|
+
const error = yield errorResponse.value();
|
|
1504
|
+
throw error;
|
|
1505
|
+
}
|
|
1506
|
+
if (rawResponse.status === 503) {
|
|
1507
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
1508
|
+
const error = yield errorResponse.value();
|
|
1509
|
+
throw error;
|
|
1510
|
+
}
|
|
1511
|
+
if (rawResponse.status === 504) {
|
|
1512
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
1513
|
+
const error = yield errorResponse.value();
|
|
1514
|
+
throw error;
|
|
1515
|
+
}
|
|
1516
|
+
if (!response) {
|
|
1517
|
+
response = new runtime.TextApiResponse(rawResponse);
|
|
1518
|
+
}
|
|
1519
|
+
return yield response.value();
|
|
1520
|
+
});
|
|
1521
|
+
}
|
|
1455
1522
|
/**
|
|
1456
1523
|
* Attempts to find a transaction by ID
|
|
1457
1524
|
* Find transaction
|
|
@@ -2140,6 +2207,12 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
2140
2207
|
searchTransactions(requestParameters) {
|
|
2141
2208
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2142
2209
|
const queryParameters = {};
|
|
2210
|
+
if (requestParameters.startDate !== undefined) {
|
|
2211
|
+
queryParameters['startDate'] = requestParameters.startDate;
|
|
2212
|
+
}
|
|
2213
|
+
if (requestParameters.endDate !== undefined) {
|
|
2214
|
+
queryParameters['endDate'] = requestParameters.endDate;
|
|
2215
|
+
}
|
|
2143
2216
|
if (requestParameters.merchantId !== undefined) {
|
|
2144
2217
|
queryParameters['merchantId'] = requestParameters.merchantId;
|
|
2145
2218
|
}
|
|
@@ -2164,15 +2237,9 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
2164
2237
|
if (requestParameters.amountMax !== undefined) {
|
|
2165
2238
|
queryParameters['amountMax'] = requestParameters.amountMax;
|
|
2166
2239
|
}
|
|
2167
|
-
if (requestParameters.authorizedAt !== undefined) {
|
|
2168
|
-
queryParameters['authorizedAt'] = requestParameters.authorizedAt;
|
|
2169
|
-
}
|
|
2170
2240
|
if (requestParameters.buyerId !== undefined) {
|
|
2171
2241
|
queryParameters['buyerId'] = requestParameters.buyerId;
|
|
2172
2242
|
}
|
|
2173
|
-
if (requestParameters.capturedAt !== undefined) {
|
|
2174
|
-
queryParameters['capturedAt'] = requestParameters.capturedAt;
|
|
2175
|
-
}
|
|
2176
2243
|
if (requestParameters.cardType) {
|
|
2177
2244
|
queryParameters['cardType'] = requestParameters.cardType;
|
|
2178
2245
|
}
|
|
@@ -2182,9 +2249,6 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
2182
2249
|
if (requestParameters.cursor !== undefined) {
|
|
2183
2250
|
queryParameters['cursor'] = requestParameters.cursor;
|
|
2184
2251
|
}
|
|
2185
|
-
if (requestParameters.endDate !== undefined) {
|
|
2186
|
-
queryParameters['endDate'] = requestParameters.endDate;
|
|
2187
|
-
}
|
|
2188
2252
|
if (requestParameters.externalBuyerId !== undefined) {
|
|
2189
2253
|
queryParameters['externalBuyerId'] = requestParameters.externalBuyerId;
|
|
2190
2254
|
}
|
|
@@ -2212,15 +2276,9 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
2212
2276
|
if (requestParameters.paymentMethodId !== undefined) {
|
|
2213
2277
|
queryParameters['paymentMethodId'] = requestParameters.paymentMethodId;
|
|
2214
2278
|
}
|
|
2215
|
-
if (requestParameters.startDate !== undefined) {
|
|
2216
|
-
queryParameters['startDate'] = requestParameters.startDate;
|
|
2217
|
-
}
|
|
2218
2279
|
if (requestParameters.status) {
|
|
2219
2280
|
queryParameters['status'] = requestParameters.status;
|
|
2220
2281
|
}
|
|
2221
|
-
if (requestParameters.voidedAt !== undefined) {
|
|
2222
|
-
queryParameters['voidedAt'] = requestParameters.voidedAt;
|
|
2223
|
-
}
|
|
2224
2282
|
if (requestParameters.sessionId !== undefined) {
|
|
2225
2283
|
queryParameters['sessionId'] = requestParameters.sessionId;
|
|
2226
2284
|
}
|
|
@@ -2230,9 +2288,6 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
2230
2288
|
if (requestParameters.externalTransactionId !== undefined) {
|
|
2231
2289
|
queryParameters['externalTransactionId'] = requestParameters.externalTransactionId;
|
|
2232
2290
|
}
|
|
2233
|
-
if (requestParameters.transactionId !== undefined) {
|
|
2234
|
-
queryParameters['transactionId'] = requestParameters.transactionId;
|
|
2235
|
-
}
|
|
2236
2291
|
const headerParameters = {};
|
|
2237
2292
|
const rawResponse = yield this.request({
|
|
2238
2293
|
path: `/transactions/search`,
|
|
@@ -0,0 +1,32 @@
|
|
|
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 AdminCreateMerchantCredentialsDto
|
|
11
|
+
*/
|
|
12
|
+
export interface AdminCreateMerchantCredentialsDto {
|
|
13
|
+
/**
|
|
14
|
+
* The given reference name.
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof AdminCreateMerchantCredentialsDto
|
|
17
|
+
*/
|
|
18
|
+
credentialsName: string;
|
|
19
|
+
/**
|
|
20
|
+
* The ID of the merchant.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AdminCreateMerchantCredentialsDto
|
|
23
|
+
*/
|
|
24
|
+
merchantId: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the AdminCreateMerchantCredentialsDto interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfAdminCreateMerchantCredentialsDto(value: object): boolean;
|
|
30
|
+
export declare function AdminCreateMerchantCredentialsDtoFromJSON(json: any): AdminCreateMerchantCredentialsDto;
|
|
31
|
+
export declare function AdminCreateMerchantCredentialsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminCreateMerchantCredentialsDto;
|
|
32
|
+
export declare function AdminCreateMerchantCredentialsDtoToJSON(value?: AdminCreateMerchantCredentialsDto | null): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
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.instanceOfAdminCreateMerchantCredentialsDto = instanceOfAdminCreateMerchantCredentialsDto;
|
|
12
|
+
exports.AdminCreateMerchantCredentialsDtoFromJSON = AdminCreateMerchantCredentialsDtoFromJSON;
|
|
13
|
+
exports.AdminCreateMerchantCredentialsDtoFromJSONTyped = AdminCreateMerchantCredentialsDtoFromJSONTyped;
|
|
14
|
+
exports.AdminCreateMerchantCredentialsDtoToJSON = AdminCreateMerchantCredentialsDtoToJSON;
|
|
15
|
+
const runtime_1 = require("../runtime");
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the AdminCreateMerchantCredentialsDto interface.
|
|
18
|
+
*/
|
|
19
|
+
function instanceOfAdminCreateMerchantCredentialsDto(value) {
|
|
20
|
+
let isInstance = true;
|
|
21
|
+
isInstance = isInstance && "credentialsName" in value;
|
|
22
|
+
isInstance = isInstance && "merchantId" in value;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
function AdminCreateMerchantCredentialsDtoFromJSON(json) {
|
|
26
|
+
return AdminCreateMerchantCredentialsDtoFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
function AdminCreateMerchantCredentialsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if ((json === undefined) || (json === null)) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
const typed = {
|
|
33
|
+
'credentialsName': json['credentialsName'],
|
|
34
|
+
'merchantId': json['merchantId'],
|
|
35
|
+
};
|
|
36
|
+
return (0, runtime_1.removeNullUndefined)(typed);
|
|
37
|
+
}
|
|
38
|
+
function AdminCreateMerchantCredentialsDtoToJSON(value) {
|
|
39
|
+
if (value === undefined) {
|
|
40
|
+
return undefined;
|
|
41
|
+
}
|
|
42
|
+
if (value === null) {
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'credentialsName': value.credentialsName,
|
|
47
|
+
'merchantId': value.merchantId,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
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 AdminMerchantSettingsDto
|
|
12
|
+
*/
|
|
13
|
+
export interface AdminMerchantSettingsDto {
|
|
14
|
+
/**
|
|
15
|
+
* The custom theme for hosted checkout.
|
|
16
|
+
* @type {MerchantThemeDto}
|
|
17
|
+
* @memberof AdminMerchantSettingsDto
|
|
18
|
+
*/
|
|
19
|
+
checkoutTheme?: MerchantThemeDto;
|
|
20
|
+
/**
|
|
21
|
+
* Enable or disable split card fee transactions.
|
|
22
|
+
* @type {boolean}
|
|
23
|
+
* @memberof AdminMerchantSettingsDto
|
|
24
|
+
*/
|
|
25
|
+
isSplitCFeeEnabled?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Enable or disable debt repayment.
|
|
28
|
+
* @type {boolean}
|
|
29
|
+
* @memberof AdminMerchantSettingsDto
|
|
30
|
+
*/
|
|
31
|
+
isDebtRepaymentEnabled?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Enable or disable partial authorization.
|
|
34
|
+
* @type {boolean}
|
|
35
|
+
* @memberof AdminMerchantSettingsDto
|
|
36
|
+
*/
|
|
37
|
+
isPartialAuthEnabled?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Enable bill payment on this merchant.
|
|
40
|
+
* @type {boolean}
|
|
41
|
+
* @memberof AdminMerchantSettingsDto
|
|
42
|
+
*/
|
|
43
|
+
isBillPaymentEnabled?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Store card on decline option for this merchant.
|
|
46
|
+
* @type {boolean}
|
|
47
|
+
* @memberof AdminMerchantSettingsDto
|
|
48
|
+
*/
|
|
49
|
+
storeOnCardDecline?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* The merchant ID to update settings for.
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof AdminMerchantSettingsDto
|
|
54
|
+
*/
|
|
55
|
+
merchantId: string;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the AdminMerchantSettingsDto interface.
|
|
59
|
+
*/
|
|
60
|
+
export declare function instanceOfAdminMerchantSettingsDto(value: object): boolean;
|
|
61
|
+
export declare function AdminMerchantSettingsDtoFromJSON(json: any): AdminMerchantSettingsDto;
|
|
62
|
+
export declare function AdminMerchantSettingsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminMerchantSettingsDto;
|
|
63
|
+
export declare function AdminMerchantSettingsDtoToJSON(value?: AdminMerchantSettingsDto | null): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
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.instanceOfAdminMerchantSettingsDto = instanceOfAdminMerchantSettingsDto;
|
|
12
|
+
exports.AdminMerchantSettingsDtoFromJSON = AdminMerchantSettingsDtoFromJSON;
|
|
13
|
+
exports.AdminMerchantSettingsDtoFromJSONTyped = AdminMerchantSettingsDtoFromJSONTyped;
|
|
14
|
+
exports.AdminMerchantSettingsDtoToJSON = AdminMerchantSettingsDtoToJSON;
|
|
15
|
+
const runtime_1 = require("../runtime");
|
|
16
|
+
const MerchantThemeDto_1 = require("./MerchantThemeDto");
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the AdminMerchantSettingsDto interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfAdminMerchantSettingsDto(value) {
|
|
21
|
+
let isInstance = true;
|
|
22
|
+
isInstance = isInstance && "merchantId" in value;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
function AdminMerchantSettingsDtoFromJSON(json) {
|
|
26
|
+
return AdminMerchantSettingsDtoFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
function AdminMerchantSettingsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if ((json === undefined) || (json === null)) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
const typed = {
|
|
33
|
+
'checkoutTheme': !(0, runtime_1.exists)(json, 'checkoutTheme') ? undefined : (0, MerchantThemeDto_1.MerchantThemeDtoFromJSON)(json['checkoutTheme']),
|
|
34
|
+
'isSplitCFeeEnabled': !(0, runtime_1.exists)(json, 'isSplitCFeeEnabled') ? undefined : json['isSplitCFeeEnabled'],
|
|
35
|
+
'isDebtRepaymentEnabled': !(0, runtime_1.exists)(json, 'isDebtRepaymentEnabled') ? undefined : json['isDebtRepaymentEnabled'],
|
|
36
|
+
'isPartialAuthEnabled': !(0, runtime_1.exists)(json, 'isPartialAuthEnabled') ? undefined : json['isPartialAuthEnabled'],
|
|
37
|
+
'isBillPaymentEnabled': !(0, runtime_1.exists)(json, 'isBillPaymentEnabled') ? undefined : json['isBillPaymentEnabled'],
|
|
38
|
+
'storeOnCardDecline': !(0, runtime_1.exists)(json, 'storeOnCardDecline') ? undefined : json['storeOnCardDecline'],
|
|
39
|
+
'merchantId': json['merchantId'],
|
|
40
|
+
};
|
|
41
|
+
return (0, runtime_1.removeNullUndefined)(typed);
|
|
42
|
+
}
|
|
43
|
+
function AdminMerchantSettingsDtoToJSON(value) {
|
|
44
|
+
if (value === undefined) {
|
|
45
|
+
return undefined;
|
|
46
|
+
}
|
|
47
|
+
if (value === null) {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'checkoutTheme': (0, MerchantThemeDto_1.MerchantThemeDtoToJSON)(value.checkoutTheme),
|
|
52
|
+
'isSplitCFeeEnabled': value.isSplitCFeeEnabled,
|
|
53
|
+
'isDebtRepaymentEnabled': value.isDebtRepaymentEnabled,
|
|
54
|
+
'isPartialAuthEnabled': value.isPartialAuthEnabled,
|
|
55
|
+
'isBillPaymentEnabled': value.isBillPaymentEnabled,
|
|
56
|
+
'storeOnCardDecline': value.storeOnCardDecline,
|
|
57
|
+
'merchantId': value.merchantId,
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -22,6 +22,18 @@ export interface CFeeEntity {
|
|
|
22
22
|
* @memberof CFeeEntity
|
|
23
23
|
*/
|
|
24
24
|
rate: number;
|
|
25
|
+
/**
|
|
26
|
+
* The minimum fee threshold for the CFee.
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof CFeeEntity
|
|
29
|
+
*/
|
|
30
|
+
minFeeThreshold?: number;
|
|
31
|
+
/**
|
|
32
|
+
* The minimum fixed fee rate for the CFee if total amount is below the threshold.
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof CFeeEntity
|
|
35
|
+
*/
|
|
36
|
+
minFeeFixedRate?: number;
|
|
25
37
|
}
|
|
26
38
|
/**
|
|
27
39
|
* @export
|
|
@@ -40,6 +40,8 @@ function CFeeEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
40
|
const typed = {
|
|
41
41
|
'type': json['type'],
|
|
42
42
|
'rate': json['rate'],
|
|
43
|
+
'minFeeThreshold': !(0, runtime_1.exists)(json, 'minFeeThreshold') ? undefined : json['minFeeThreshold'],
|
|
44
|
+
'minFeeFixedRate': !(0, runtime_1.exists)(json, 'minFeeFixedRate') ? undefined : json['minFeeFixedRate'],
|
|
43
45
|
};
|
|
44
46
|
return (0, runtime_1.removeNullUndefined)(typed);
|
|
45
47
|
}
|
|
@@ -53,5 +55,7 @@ function CFeeEntityToJSON(value) {
|
|
|
53
55
|
return {
|
|
54
56
|
'type': value.type,
|
|
55
57
|
'rate': value.rate,
|
|
58
|
+
'minFeeThreshold': value.minFeeThreshold,
|
|
59
|
+
'minFeeFixedRate': value.minFeeFixedRate,
|
|
56
60
|
};
|
|
57
61
|
}
|
|
@@ -17,11 +17,23 @@ export interface CreateCFeeDto {
|
|
|
17
17
|
*/
|
|
18
18
|
type: CreateCFeeDtoTypeEnum;
|
|
19
19
|
/**
|
|
20
|
-
* The rate of the cFee
|
|
20
|
+
* The rate of the cFee.
|
|
21
21
|
* @type {number}
|
|
22
22
|
* @memberof CreateCFeeDto
|
|
23
23
|
*/
|
|
24
24
|
rate: number;
|
|
25
|
+
/**
|
|
26
|
+
* The minimum fee threshold for the cFee.
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof CreateCFeeDto
|
|
29
|
+
*/
|
|
30
|
+
minFeeThreshold?: number;
|
|
31
|
+
/**
|
|
32
|
+
* The minimum fee rate for the cFee if total amount is below the threshold.
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof CreateCFeeDto
|
|
35
|
+
*/
|
|
36
|
+
minFeeFixedRate?: number;
|
|
25
37
|
}
|
|
26
38
|
/**
|
|
27
39
|
* @export
|
|
@@ -40,6 +40,8 @@ function CreateCFeeDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
40
|
const typed = {
|
|
41
41
|
'type': json['type'],
|
|
42
42
|
'rate': json['rate'],
|
|
43
|
+
'minFeeThreshold': !(0, runtime_1.exists)(json, 'minFeeThreshold') ? undefined : json['minFeeThreshold'],
|
|
44
|
+
'minFeeFixedRate': !(0, runtime_1.exists)(json, 'minFeeFixedRate') ? undefined : json['minFeeFixedRate'],
|
|
43
45
|
};
|
|
44
46
|
return (0, runtime_1.removeNullUndefined)(typed);
|
|
45
47
|
}
|
|
@@ -53,5 +55,7 @@ function CreateCFeeDtoToJSON(value) {
|
|
|
53
55
|
return {
|
|
54
56
|
'type': value.type,
|
|
55
57
|
'rate': value.rate,
|
|
58
|
+
'minFeeThreshold': value.minFeeThreshold,
|
|
59
|
+
'minFeeFixedRate': value.minFeeFixedRate,
|
|
56
60
|
};
|
|
57
61
|
}
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Channel Payments API
|
|
3
|
+
*
|
|
4
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
import type { CreateCFeeDto } from './CreateCFeeDto';
|
|
8
|
+
import type { CreateMerchantConnectorWithoutMerchantAccountIdDto } from './CreateMerchantConnectorWithoutMerchantAccountIdDto';
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* @export
|
|
12
|
+
* @interface CreateMerchantAccountDto
|
|
13
|
+
*/
|
|
14
|
+
export interface CreateMerchantAccountDto {
|
|
15
|
+
/**
|
|
16
|
+
* The associated merchant ID
|
|
17
|
+
* @type {string}
|
|
18
|
+
* @memberof CreateMerchantAccountDto
|
|
19
|
+
*/
|
|
20
|
+
merchantId: string;
|
|
21
|
+
/**
|
|
22
|
+
* The issued MID (Merchant ID)
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof CreateMerchantAccountDto
|
|
25
|
+
*/
|
|
26
|
+
issuedMid: string;
|
|
27
|
+
/**
|
|
28
|
+
* The payment method
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof CreateMerchantAccountDto
|
|
31
|
+
*/
|
|
32
|
+
method: CreateMerchantAccountDtoMethodEnum;
|
|
33
|
+
/**
|
|
34
|
+
* The payment service provider
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof CreateMerchantAccountDto
|
|
37
|
+
*/
|
|
38
|
+
psp: CreateMerchantAccountDtoPspEnum;
|
|
39
|
+
/**
|
|
40
|
+
* The CFee details
|
|
41
|
+
* @type {CreateCFeeDto}
|
|
42
|
+
* @memberof CreateMerchantAccountDto
|
|
43
|
+
*/
|
|
44
|
+
cFee: CreateCFeeDto;
|
|
45
|
+
/**
|
|
46
|
+
* The list of merchant connectors
|
|
47
|
+
* @type {Array<CreateMerchantConnectorWithoutMerchantAccountIdDto>}
|
|
48
|
+
* @memberof CreateMerchantAccountDto
|
|
49
|
+
*/
|
|
50
|
+
connectors: Array<CreateMerchantConnectorWithoutMerchantAccountIdDto>;
|
|
51
|
+
/**
|
|
52
|
+
* The accepted card types
|
|
53
|
+
* @type {Array<string>}
|
|
54
|
+
* @memberof CreateMerchantAccountDto
|
|
55
|
+
*/
|
|
56
|
+
cardTypes?: Array<CreateMerchantAccountDtoCardTypesEnum>;
|
|
57
|
+
/**
|
|
58
|
+
* The accepted card schemes
|
|
59
|
+
* @type {Array<string>}
|
|
60
|
+
* @memberof CreateMerchantAccountDto
|
|
61
|
+
*/
|
|
62
|
+
cardSchemes?: Array<CreateMerchantAccountDtoCardSchemesEnum>;
|
|
63
|
+
/**
|
|
64
|
+
* Source of card data for this merchant account
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof CreateMerchantAccountDto
|
|
67
|
+
*/
|
|
68
|
+
dataSource?: CreateMerchantAccountDtoDataSourceEnum;
|
|
69
|
+
/**
|
|
70
|
+
* The accepted currencies
|
|
71
|
+
* @type {Array<string>}
|
|
72
|
+
* @memberof CreateMerchantAccountDto
|
|
73
|
+
*/
|
|
74
|
+
currencies?: Array<CreateMerchantAccountDtoCurrenciesEnum>;
|
|
75
|
+
/**
|
|
76
|
+
* The associated merchant name
|
|
77
|
+
* @type {string}
|
|
78
|
+
* @memberof CreateMerchantAccountDto
|
|
79
|
+
*/
|
|
80
|
+
name?: string;
|
|
81
|
+
/**
|
|
82
|
+
* The MCC (Merchant Category Code)
|
|
83
|
+
* @type {string}
|
|
84
|
+
* @memberof CreateMerchantAccountDto
|
|
85
|
+
*/
|
|
86
|
+
mcc?: string;
|
|
87
|
+
/**
|
|
88
|
+
* The BIN (Bank Identification Number)
|
|
89
|
+
* @type {string}
|
|
90
|
+
* @memberof CreateMerchantAccountDto
|
|
91
|
+
*/
|
|
92
|
+
bin?: string;
|
|
93
|
+
/**
|
|
94
|
+
* The chain or franchise information associated with the merchant
|
|
95
|
+
* @type {string}
|
|
96
|
+
* @memberof CreateMerchantAccountDto
|
|
97
|
+
*/
|
|
98
|
+
chain?: string;
|
|
99
|
+
/**
|
|
100
|
+
* The store information associated with the merchant
|
|
101
|
+
* @type {string}
|
|
102
|
+
* @memberof CreateMerchantAccountDto
|
|
103
|
+
*/
|
|
104
|
+
store?: string;
|
|
105
|
+
/**
|
|
106
|
+
* The agent information associated with the merchant
|
|
107
|
+
* @type {string}
|
|
108
|
+
* @memberof CreateMerchantAccountDto
|
|
109
|
+
*/
|
|
110
|
+
agent?: string;
|
|
111
|
+
/**
|
|
112
|
+
* The default merchant account
|
|
113
|
+
* @type {boolean}
|
|
114
|
+
* @memberof CreateMerchantAccountDto
|
|
115
|
+
*/
|
|
116
|
+
isDefault?: boolean;
|
|
117
|
+
/**
|
|
118
|
+
* Transaction limit for this merchant.
|
|
119
|
+
* @type {number}
|
|
120
|
+
* @memberof CreateMerchantAccountDto
|
|
121
|
+
*/
|
|
122
|
+
transactionLimit?: number;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* @export
|
|
126
|
+
*/
|
|
127
|
+
export declare const CreateMerchantAccountDtoMethodEnum: {
|
|
128
|
+
readonly Card: "CARD";
|
|
129
|
+
readonly Ach: "ACH";
|
|
130
|
+
};
|
|
131
|
+
export type CreateMerchantAccountDtoMethodEnum = typeof CreateMerchantAccountDtoMethodEnum[keyof typeof CreateMerchantAccountDtoMethodEnum];
|
|
132
|
+
/**
|
|
133
|
+
* @export
|
|
134
|
+
*/
|
|
135
|
+
export declare const CreateMerchantAccountDtoPspEnum: {
|
|
136
|
+
readonly Tsys: "TSYS";
|
|
137
|
+
readonly Nashville: "NASHVILLE";
|
|
138
|
+
readonly North: "NORTH";
|
|
139
|
+
readonly ChannelPayments: "CHANNEL_PAYMENTS";
|
|
140
|
+
};
|
|
141
|
+
export type CreateMerchantAccountDtoPspEnum = typeof CreateMerchantAccountDtoPspEnum[keyof typeof CreateMerchantAccountDtoPspEnum];
|
|
142
|
+
/**
|
|
143
|
+
* @export
|
|
144
|
+
*/
|
|
145
|
+
export declare const CreateMerchantAccountDtoCardTypesEnum: {
|
|
146
|
+
readonly Credit: "CREDIT";
|
|
147
|
+
readonly Debit: "DEBIT";
|
|
148
|
+
readonly Prepaid: "PREPAID";
|
|
149
|
+
};
|
|
150
|
+
export type CreateMerchantAccountDtoCardTypesEnum = typeof CreateMerchantAccountDtoCardTypesEnum[keyof typeof CreateMerchantAccountDtoCardTypesEnum];
|
|
151
|
+
/**
|
|
152
|
+
* @export
|
|
153
|
+
*/
|
|
154
|
+
export declare const CreateMerchantAccountDtoCardSchemesEnum: {
|
|
155
|
+
readonly Visa: "VISA";
|
|
156
|
+
readonly Mastercard: "MASTERCARD";
|
|
157
|
+
readonly Amex: "AMEX";
|
|
158
|
+
readonly Discover: "DISCOVER";
|
|
159
|
+
readonly Jcb: "JCB";
|
|
160
|
+
readonly DinersClub: "DINERS_CLUB";
|
|
161
|
+
readonly Maestro: "MAESTRO";
|
|
162
|
+
};
|
|
163
|
+
export type CreateMerchantAccountDtoCardSchemesEnum = typeof CreateMerchantAccountDtoCardSchemesEnum[keyof typeof CreateMerchantAccountDtoCardSchemesEnum];
|
|
164
|
+
/**
|
|
165
|
+
* @export
|
|
166
|
+
*/
|
|
167
|
+
export declare const CreateMerchantAccountDtoDataSourceEnum: {
|
|
168
|
+
readonly Moto: "MOTO";
|
|
169
|
+
readonly Internet: "INTERNET";
|
|
170
|
+
};
|
|
171
|
+
export type CreateMerchantAccountDtoDataSourceEnum = typeof CreateMerchantAccountDtoDataSourceEnum[keyof typeof CreateMerchantAccountDtoDataSourceEnum];
|
|
172
|
+
/**
|
|
173
|
+
* @export
|
|
174
|
+
*/
|
|
175
|
+
export declare const CreateMerchantAccountDtoCurrenciesEnum: {
|
|
176
|
+
readonly Usd: "USD";
|
|
177
|
+
readonly Aud: "AUD";
|
|
178
|
+
readonly Cad: "CAD";
|
|
179
|
+
};
|
|
180
|
+
export type CreateMerchantAccountDtoCurrenciesEnum = typeof CreateMerchantAccountDtoCurrenciesEnum[keyof typeof CreateMerchantAccountDtoCurrenciesEnum];
|
|
181
|
+
/**
|
|
182
|
+
* Check if a given object implements the CreateMerchantAccountDto interface.
|
|
183
|
+
*/
|
|
184
|
+
export declare function instanceOfCreateMerchantAccountDto(value: object): boolean;
|
|
185
|
+
export declare function CreateMerchantAccountDtoFromJSON(json: any): CreateMerchantAccountDto;
|
|
186
|
+
export declare function CreateMerchantAccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateMerchantAccountDto;
|
|
187
|
+
export declare function CreateMerchantAccountDtoToJSON(value?: CreateMerchantAccountDto | null): any;
|