@channelpayments/node-sdk 1.208.0 → 1.210.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.
- package/dist/cjs/apis/ChannelPaymentsApi.d.ts +33 -0
- package/dist/cjs/apis/ChannelPaymentsApi.js +49 -1
- package/dist/cjs/models/CheckoutSessionBaseEntity.d.ts +0 -1
- package/dist/cjs/models/CheckoutSessionBaseEntity.js +0 -1
- package/dist/cjs/models/CheckoutSessionEntity.d.ts +0 -1
- package/dist/cjs/models/CheckoutSessionEntity.js +0 -1
- package/dist/cjs/models/MerchantAccountEntity.d.ts +24 -0
- package/dist/cjs/models/MerchantAccountEntity.js +8 -0
- package/dist/cjs/models/MerchantAccountServiceEntity.d.ts +24 -0
- package/dist/cjs/models/MerchantAccountServiceEntity.js +8 -0
- package/dist/cjs/models/PaymentServiceDetailsEntity.d.ts +50 -0
- package/dist/cjs/models/PaymentServiceDetailsEntity.js +53 -0
- package/dist/cjs/models/TransactionEntity.d.ts +7 -0
- package/dist/cjs/models/TransactionEntity.js +5 -0
- package/dist/cjs/models/UpdateConditionDto.d.ts +2 -2
- package/dist/cjs/models/UpdateConditionDto.js +4 -2
- package/dist/cjs/models/index.d.ts +1 -0
- package/dist/cjs/models/index.js +1 -0
- package/dist/cjs/runtime.js +1 -1
- package/dist/mjs/apis/ChannelPaymentsApi.d.ts +33 -0
- package/dist/mjs/apis/ChannelPaymentsApi.js +48 -0
- package/dist/mjs/models/CheckoutSessionBaseEntity.d.ts +0 -1
- package/dist/mjs/models/CheckoutSessionBaseEntity.js +0 -1
- package/dist/mjs/models/CheckoutSessionEntity.d.ts +0 -1
- package/dist/mjs/models/CheckoutSessionEntity.js +0 -1
- package/dist/mjs/models/MerchantAccountEntity.d.ts +24 -0
- package/dist/mjs/models/MerchantAccountEntity.js +8 -0
- package/dist/mjs/models/MerchantAccountServiceEntity.d.ts +24 -0
- package/dist/mjs/models/MerchantAccountServiceEntity.js +8 -0
- package/dist/mjs/models/PaymentServiceDetailsEntity.d.ts +50 -0
- package/dist/mjs/models/PaymentServiceDetailsEntity.js +47 -0
- package/dist/mjs/models/TransactionEntity.d.ts +7 -0
- package/dist/mjs/models/TransactionEntity.js +5 -0
- package/dist/mjs/models/UpdateConditionDto.d.ts +2 -2
- package/dist/mjs/models/UpdateConditionDto.js +4 -2
- package/dist/mjs/models/index.d.ts +1 -0
- package/dist/mjs/models/index.js +1 -0
- package/dist/mjs/runtime.js +1 -1
- package/package.json +1 -1
|
@@ -8,6 +8,12 @@ import * as runtime from '../runtime';
|
|
|
8
8
|
import type { BuyersEntity, BuyersSearchEntity, CaptureTransactionDto, ChangeNotificationEntity, ChangeNotificationsSearchEntity, CheckoutSessionEntity, ConnectorServiceTokenEntity, CreateBuyerDto, CreateCheckoutSessionDto, CreatePaymentMethodDto, CreatePaymentMethodSessionDto, CreateProvisionedCardTokenDto, CreateTransactionRefundDto, CreateTransactionRequestDto, MerchantEntity, MerchantFeeDetailsEntity, PaymentMethodEntity, PaymentMethodSessionEntity, PaymentMethodsSearchEntity, ReturnNotificationEntity, ReturnNotificationsSearchEntity, TagDto, TransactionEntity, TransactionRefundEntity, TransactionRefundsSearchEntity, TransactionsSearchEntity, UpdateBuyerDto } from '../models';
|
|
9
9
|
export interface GetFeeDetailsRequest {
|
|
10
10
|
amount: string;
|
|
11
|
+
key: string;
|
|
12
|
+
value: string;
|
|
13
|
+
transactionInitiator?: GetFeeDetailsTransactionInitiatorEnum;
|
|
14
|
+
secCode?: GetFeeDetailsSecCodeEnum;
|
|
15
|
+
currency?: GetFeeDetailsCurrencyEnum;
|
|
16
|
+
country?: string;
|
|
11
17
|
}
|
|
12
18
|
export interface SearchBuyersRequest {
|
|
13
19
|
merchantId?: string;
|
|
@@ -230,6 +236,33 @@ export declare class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
230
236
|
*/
|
|
231
237
|
voidTransaction(transactionId: string, idempotencyKey?: string): Promise<TransactionEntity>;
|
|
232
238
|
}
|
|
239
|
+
/**
|
|
240
|
+
* @export
|
|
241
|
+
*/
|
|
242
|
+
export declare const GetFeeDetailsTransactionInitiatorEnum: {
|
|
243
|
+
readonly Mit: "MIT";
|
|
244
|
+
readonly Cit: "CIT";
|
|
245
|
+
};
|
|
246
|
+
export type GetFeeDetailsTransactionInitiatorEnum = (typeof GetFeeDetailsTransactionInitiatorEnum)[keyof typeof GetFeeDetailsTransactionInitiatorEnum];
|
|
247
|
+
/**
|
|
248
|
+
* @export
|
|
249
|
+
*/
|
|
250
|
+
export declare const GetFeeDetailsSecCodeEnum: {
|
|
251
|
+
readonly Ppd: "PPD";
|
|
252
|
+
readonly Ccd: "CCD";
|
|
253
|
+
readonly Web: "WEB";
|
|
254
|
+
readonly Tel: "TEL";
|
|
255
|
+
};
|
|
256
|
+
export type GetFeeDetailsSecCodeEnum = (typeof GetFeeDetailsSecCodeEnum)[keyof typeof GetFeeDetailsSecCodeEnum];
|
|
257
|
+
/**
|
|
258
|
+
* @export
|
|
259
|
+
*/
|
|
260
|
+
export declare const GetFeeDetailsCurrencyEnum: {
|
|
261
|
+
readonly Usd: "USD";
|
|
262
|
+
readonly Cad: "CAD";
|
|
263
|
+
readonly Aud: "AUD";
|
|
264
|
+
};
|
|
265
|
+
export type GetFeeDetailsCurrencyEnum = (typeof GetFeeDetailsCurrencyEnum)[keyof typeof GetFeeDetailsCurrencyEnum];
|
|
233
266
|
/**
|
|
234
267
|
* @export
|
|
235
268
|
*/
|
|
@@ -50,7 +50,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
50
50
|
});
|
|
51
51
|
};
|
|
52
52
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53
|
-
exports.SearchTransactionsStatusEnum = exports.SearchTransactionsOrderEnum = exports.SearchTransactionsMethodEnum = exports.SearchTransactionsIntentEnum = exports.SearchTransactionsCurrencyEnum = exports.SearchTransactionsCardTypeEnum = exports.SearchTransactionsAccountTypeEnum = exports.SearchReturnNotificationsOrderEnum = exports.SearchRefundsOrderEnum = exports.SearchRefundsCurrencyEnum = exports.SearchRefundsStatusEnum = exports.SearchPaymentMethodsOrderEnum = exports.SearchPaymentMethodsCurrencyEnum = exports.SearchPaymentMethodsMethodEnum = exports.SearchChangeNotificationsOrderEnum = exports.SearchBuyersOrderEnum = exports.ChannelPaymentsApi = void 0;
|
|
53
|
+
exports.SearchTransactionsStatusEnum = exports.SearchTransactionsOrderEnum = exports.SearchTransactionsMethodEnum = exports.SearchTransactionsIntentEnum = exports.SearchTransactionsCurrencyEnum = exports.SearchTransactionsCardTypeEnum = exports.SearchTransactionsAccountTypeEnum = exports.SearchReturnNotificationsOrderEnum = exports.SearchRefundsOrderEnum = exports.SearchRefundsCurrencyEnum = exports.SearchRefundsStatusEnum = exports.SearchPaymentMethodsOrderEnum = exports.SearchPaymentMethodsCurrencyEnum = exports.SearchPaymentMethodsMethodEnum = exports.SearchChangeNotificationsOrderEnum = exports.SearchBuyersOrderEnum = exports.GetFeeDetailsCurrencyEnum = exports.GetFeeDetailsSecCodeEnum = exports.GetFeeDetailsTransactionInitiatorEnum = exports.ChannelPaymentsApi = void 0;
|
|
54
54
|
const runtime = __importStar(require("../runtime"));
|
|
55
55
|
const models_1 = require("../models");
|
|
56
56
|
/**
|
|
@@ -1110,10 +1110,34 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
1110
1110
|
if (requestParameters.amount === null || requestParameters.amount === undefined) {
|
|
1111
1111
|
throw new runtime.RequiredError('amount', "Required parameter 'amount' was null or undefined when calling getFeeDetails.");
|
|
1112
1112
|
}
|
|
1113
|
+
if (requestParameters.key === null || requestParameters.key === undefined) {
|
|
1114
|
+
throw new runtime.RequiredError('key', "Required parameter 'key' was null or undefined when calling getFeeDetails.");
|
|
1115
|
+
}
|
|
1116
|
+
if (requestParameters.value === null || requestParameters.value === undefined) {
|
|
1117
|
+
throw new runtime.RequiredError('value', "Required parameter 'value' was null or undefined when calling getFeeDetails.");
|
|
1118
|
+
}
|
|
1113
1119
|
const queryParameters = {};
|
|
1114
1120
|
if (requestParameters.amount !== undefined) {
|
|
1115
1121
|
queryParameters['amount'] = requestParameters.amount;
|
|
1116
1122
|
}
|
|
1123
|
+
if (requestParameters.transactionInitiator !== undefined) {
|
|
1124
|
+
queryParameters['transactionInitiator'] = requestParameters.transactionInitiator;
|
|
1125
|
+
}
|
|
1126
|
+
if (requestParameters.secCode !== undefined) {
|
|
1127
|
+
queryParameters['secCode'] = requestParameters.secCode;
|
|
1128
|
+
}
|
|
1129
|
+
if (requestParameters.currency !== undefined) {
|
|
1130
|
+
queryParameters['currency'] = requestParameters.currency;
|
|
1131
|
+
}
|
|
1132
|
+
if (requestParameters.country !== undefined) {
|
|
1133
|
+
queryParameters['country'] = requestParameters.country;
|
|
1134
|
+
}
|
|
1135
|
+
if (requestParameters.key !== undefined) {
|
|
1136
|
+
queryParameters['key'] = requestParameters.key;
|
|
1137
|
+
}
|
|
1138
|
+
if (requestParameters.value !== undefined) {
|
|
1139
|
+
queryParameters['value'] = requestParameters.value;
|
|
1140
|
+
}
|
|
1117
1141
|
const headerParameters = {};
|
|
1118
1142
|
const rawResponse = yield this.request({
|
|
1119
1143
|
path: `/transactions/fee-details`,
|
|
@@ -2529,6 +2553,30 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
2529
2553
|
}
|
|
2530
2554
|
}
|
|
2531
2555
|
exports.ChannelPaymentsApi = ChannelPaymentsApi;
|
|
2556
|
+
/**
|
|
2557
|
+
* @export
|
|
2558
|
+
*/
|
|
2559
|
+
exports.GetFeeDetailsTransactionInitiatorEnum = {
|
|
2560
|
+
Mit: 'MIT',
|
|
2561
|
+
Cit: 'CIT',
|
|
2562
|
+
};
|
|
2563
|
+
/**
|
|
2564
|
+
* @export
|
|
2565
|
+
*/
|
|
2566
|
+
exports.GetFeeDetailsSecCodeEnum = {
|
|
2567
|
+
Ppd: 'PPD',
|
|
2568
|
+
Ccd: 'CCD',
|
|
2569
|
+
Web: 'WEB',
|
|
2570
|
+
Tel: 'TEL',
|
|
2571
|
+
};
|
|
2572
|
+
/**
|
|
2573
|
+
* @export
|
|
2574
|
+
*/
|
|
2575
|
+
exports.GetFeeDetailsCurrencyEnum = {
|
|
2576
|
+
Usd: 'USD',
|
|
2577
|
+
Cad: 'CAD',
|
|
2578
|
+
Aud: 'AUD',
|
|
2579
|
+
};
|
|
2532
2580
|
/**
|
|
2533
2581
|
* @export
|
|
2534
2582
|
*/
|
|
@@ -188,7 +188,6 @@ export type CheckoutSessionBaseEntityStatusEnum = (typeof CheckoutSessionBaseEnt
|
|
|
188
188
|
export declare const CheckoutSessionBaseEntityTransactionInitiatorEnum: {
|
|
189
189
|
readonly Mit: "MIT";
|
|
190
190
|
readonly Cit: "CIT";
|
|
191
|
-
readonly Sit: "SIT";
|
|
192
191
|
};
|
|
193
192
|
export type CheckoutSessionBaseEntityTransactionInitiatorEnum = (typeof CheckoutSessionBaseEntityTransactionInitiatorEnum)[keyof typeof CheckoutSessionBaseEntityTransactionInitiatorEnum];
|
|
194
193
|
/**
|
|
@@ -212,7 +212,6 @@ export type CheckoutSessionEntityStatusEnum = (typeof CheckoutSessionEntityStatu
|
|
|
212
212
|
export declare const CheckoutSessionEntityTransactionInitiatorEnum: {
|
|
213
213
|
readonly Mit: "MIT";
|
|
214
214
|
readonly Cit: "CIT";
|
|
215
|
-
readonly Sit: "SIT";
|
|
216
215
|
};
|
|
217
216
|
export type CheckoutSessionEntityTransactionInitiatorEnum = (typeof CheckoutSessionEntityTransactionInitiatorEnum)[keyof typeof CheckoutSessionEntityTransactionInitiatorEnum];
|
|
218
217
|
/**
|
|
@@ -126,6 +126,30 @@ export interface MerchantAccountEntity {
|
|
|
126
126
|
* @memberof MerchantAccountEntity
|
|
127
127
|
*/
|
|
128
128
|
mcc?: string;
|
|
129
|
+
/**
|
|
130
|
+
* The agent associated with the merchant account.
|
|
131
|
+
* @type {string}
|
|
132
|
+
* @memberof MerchantAccountEntity
|
|
133
|
+
*/
|
|
134
|
+
agent?: string;
|
|
135
|
+
/**
|
|
136
|
+
* The BIN associated with the merchant account.
|
|
137
|
+
* @type {string}
|
|
138
|
+
* @memberof MerchantAccountEntity
|
|
139
|
+
*/
|
|
140
|
+
bin?: string;
|
|
141
|
+
/**
|
|
142
|
+
* The chain associated with the merchant account.
|
|
143
|
+
* @type {string}
|
|
144
|
+
* @memberof MerchantAccountEntity
|
|
145
|
+
*/
|
|
146
|
+
chain?: string;
|
|
147
|
+
/**
|
|
148
|
+
* The store associated with the merchant account.
|
|
149
|
+
* @type {string}
|
|
150
|
+
* @memberof MerchantAccountEntity
|
|
151
|
+
*/
|
|
152
|
+
store?: string;
|
|
129
153
|
}
|
|
130
154
|
/**
|
|
131
155
|
* @export
|
|
@@ -124,6 +124,10 @@ function MerchantAccountEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
124
124
|
lastPolledAt: !(0, runtime_1.exists)(json, 'lastPolledAt') ? undefined : new Date(json['lastPolledAt']),
|
|
125
125
|
dataSource: !(0, runtime_1.exists)(json, 'dataSource') ? undefined : json['dataSource'],
|
|
126
126
|
mcc: !(0, runtime_1.exists)(json, 'mcc') ? undefined : json['mcc'],
|
|
127
|
+
agent: !(0, runtime_1.exists)(json, 'agent') ? undefined : json['agent'],
|
|
128
|
+
bin: !(0, runtime_1.exists)(json, 'bin') ? undefined : json['bin'],
|
|
129
|
+
chain: !(0, runtime_1.exists)(json, 'chain') ? undefined : json['chain'],
|
|
130
|
+
store: !(0, runtime_1.exists)(json, 'store') ? undefined : json['store'],
|
|
127
131
|
};
|
|
128
132
|
return (0, runtime_1.removeNullUndefined)(typed);
|
|
129
133
|
}
|
|
@@ -156,5 +160,9 @@ function MerchantAccountEntityToJSON(value) {
|
|
|
156
160
|
lastPolledAt: value.lastPolledAt === undefined ? undefined : value.lastPolledAt.toISOString(),
|
|
157
161
|
dataSource: value.dataSource,
|
|
158
162
|
mcc: value.mcc,
|
|
163
|
+
agent: value.agent,
|
|
164
|
+
bin: value.bin,
|
|
165
|
+
chain: value.chain,
|
|
166
|
+
store: value.store,
|
|
159
167
|
};
|
|
160
168
|
}
|
|
@@ -126,6 +126,30 @@ export interface MerchantAccountServiceEntity {
|
|
|
126
126
|
* @memberof MerchantAccountServiceEntity
|
|
127
127
|
*/
|
|
128
128
|
mcc?: string;
|
|
129
|
+
/**
|
|
130
|
+
* The agent associated with the merchant account.
|
|
131
|
+
* @type {string}
|
|
132
|
+
* @memberof MerchantAccountServiceEntity
|
|
133
|
+
*/
|
|
134
|
+
agent?: string;
|
|
135
|
+
/**
|
|
136
|
+
* The BIN associated with the merchant account.
|
|
137
|
+
* @type {string}
|
|
138
|
+
* @memberof MerchantAccountServiceEntity
|
|
139
|
+
*/
|
|
140
|
+
bin?: string;
|
|
141
|
+
/**
|
|
142
|
+
* The chain associated with the merchant account.
|
|
143
|
+
* @type {string}
|
|
144
|
+
* @memberof MerchantAccountServiceEntity
|
|
145
|
+
*/
|
|
146
|
+
chain?: string;
|
|
147
|
+
/**
|
|
148
|
+
* The store associated with the merchant account.
|
|
149
|
+
* @type {string}
|
|
150
|
+
* @memberof MerchantAccountServiceEntity
|
|
151
|
+
*/
|
|
152
|
+
store?: string;
|
|
129
153
|
}
|
|
130
154
|
/**
|
|
131
155
|
* @export
|
|
@@ -124,6 +124,10 @@ function MerchantAccountServiceEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
124
124
|
lastPolledAt: !(0, runtime_1.exists)(json, 'lastPolledAt') ? undefined : new Date(json['lastPolledAt']),
|
|
125
125
|
dataSource: !(0, runtime_1.exists)(json, 'dataSource') ? undefined : json['dataSource'],
|
|
126
126
|
mcc: !(0, runtime_1.exists)(json, 'mcc') ? undefined : json['mcc'],
|
|
127
|
+
agent: !(0, runtime_1.exists)(json, 'agent') ? undefined : json['agent'],
|
|
128
|
+
bin: !(0, runtime_1.exists)(json, 'bin') ? undefined : json['bin'],
|
|
129
|
+
chain: !(0, runtime_1.exists)(json, 'chain') ? undefined : json['chain'],
|
|
130
|
+
store: !(0, runtime_1.exists)(json, 'store') ? undefined : json['store'],
|
|
127
131
|
};
|
|
128
132
|
return (0, runtime_1.removeNullUndefined)(typed);
|
|
129
133
|
}
|
|
@@ -156,5 +160,9 @@ function MerchantAccountServiceEntityToJSON(value) {
|
|
|
156
160
|
lastPolledAt: value.lastPolledAt === undefined ? undefined : value.lastPolledAt.toISOString(),
|
|
157
161
|
dataSource: value.dataSource,
|
|
158
162
|
mcc: value.mcc,
|
|
163
|
+
agent: value.agent,
|
|
164
|
+
bin: value.bin,
|
|
165
|
+
chain: value.chain,
|
|
166
|
+
store: value.store,
|
|
159
167
|
};
|
|
160
168
|
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 PaymentServiceDetailsEntity
|
|
11
|
+
*/
|
|
12
|
+
export interface PaymentServiceDetailsEntity {
|
|
13
|
+
/**
|
|
14
|
+
* The unique identifier of the connector.
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof PaymentServiceDetailsEntity
|
|
17
|
+
*/
|
|
18
|
+
connectorId?: string;
|
|
19
|
+
/**
|
|
20
|
+
* The specified name of the connector.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof PaymentServiceDetailsEntity
|
|
23
|
+
*/
|
|
24
|
+
connectorName?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The method for the connector.
|
|
27
|
+
* @type {object}
|
|
28
|
+
* @memberof PaymentServiceDetailsEntity
|
|
29
|
+
*/
|
|
30
|
+
method?: object;
|
|
31
|
+
/**
|
|
32
|
+
* The connector.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof PaymentServiceDetailsEntity
|
|
35
|
+
*/
|
|
36
|
+
connector?: string;
|
|
37
|
+
/**
|
|
38
|
+
* The merchant account id associated with the payment service.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof PaymentServiceDetailsEntity
|
|
41
|
+
*/
|
|
42
|
+
merchantAccountId?: string;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the PaymentServiceDetailsEntity interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfPaymentServiceDetailsEntity(value: object): boolean;
|
|
48
|
+
export declare function PaymentServiceDetailsEntityFromJSON(json: any): PaymentServiceDetailsEntity;
|
|
49
|
+
export declare function PaymentServiceDetailsEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentServiceDetailsEntity;
|
|
50
|
+
export declare function PaymentServiceDetailsEntityToJSON(value?: PaymentServiceDetailsEntity | null): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
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.instanceOfPaymentServiceDetailsEntity = instanceOfPaymentServiceDetailsEntity;
|
|
12
|
+
exports.PaymentServiceDetailsEntityFromJSON = PaymentServiceDetailsEntityFromJSON;
|
|
13
|
+
exports.PaymentServiceDetailsEntityFromJSONTyped = PaymentServiceDetailsEntityFromJSONTyped;
|
|
14
|
+
exports.PaymentServiceDetailsEntityToJSON = PaymentServiceDetailsEntityToJSON;
|
|
15
|
+
const runtime_1 = require("../runtime");
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the PaymentServiceDetailsEntity interface.
|
|
18
|
+
*/
|
|
19
|
+
function instanceOfPaymentServiceDetailsEntity(value) {
|
|
20
|
+
let isInstance = true;
|
|
21
|
+
return isInstance;
|
|
22
|
+
}
|
|
23
|
+
function PaymentServiceDetailsEntityFromJSON(json) {
|
|
24
|
+
return PaymentServiceDetailsEntityFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
function PaymentServiceDetailsEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json === undefined || json === null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
const typed = {
|
|
31
|
+
connectorId: !(0, runtime_1.exists)(json, 'connectorId') ? undefined : json['connectorId'],
|
|
32
|
+
connectorName: !(0, runtime_1.exists)(json, 'connectorName') ? undefined : json['connectorName'],
|
|
33
|
+
method: !(0, runtime_1.exists)(json, 'method') ? undefined : json['method'],
|
|
34
|
+
connector: !(0, runtime_1.exists)(json, 'connector') ? undefined : json['connector'],
|
|
35
|
+
merchantAccountId: !(0, runtime_1.exists)(json, 'merchantAccountId') ? undefined : json['merchantAccountId'],
|
|
36
|
+
};
|
|
37
|
+
return (0, runtime_1.removeNullUndefined)(typed);
|
|
38
|
+
}
|
|
39
|
+
function PaymentServiceDetailsEntityToJSON(value) {
|
|
40
|
+
if (value === undefined) {
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
if (value === null) {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
connectorId: value.connectorId,
|
|
48
|
+
connectorName: value.connectorName,
|
|
49
|
+
method: value.method,
|
|
50
|
+
connector: value.connector,
|
|
51
|
+
merchantAccountId: value.merchantAccountId,
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -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 { PaymentServiceDetailsEntity } from './PaymentServiceDetailsEntity';
|
|
7
8
|
import type { TagEntity } from './TagEntity';
|
|
8
9
|
import type { TransactionFeeDetailsEntity } from './TransactionFeeDetailsEntity';
|
|
9
10
|
import type { TransactionPaymentInstrumentBaseEntity } from './TransactionPaymentInstrumentBaseEntity';
|
|
@@ -271,6 +272,12 @@ export interface TransactionEntity {
|
|
|
271
272
|
* @memberof TransactionEntity
|
|
272
273
|
*/
|
|
273
274
|
tags?: Array<TagEntity>;
|
|
275
|
+
/**
|
|
276
|
+
*
|
|
277
|
+
* @type {PaymentServiceDetailsEntity}
|
|
278
|
+
* @memberof TransactionEntity
|
|
279
|
+
*/
|
|
280
|
+
paymentServiceDetails?: PaymentServiceDetailsEntity;
|
|
274
281
|
}
|
|
275
282
|
/**
|
|
276
283
|
* @export
|
|
@@ -14,6 +14,7 @@ exports.TransactionEntityFromJSON = TransactionEntityFromJSON;
|
|
|
14
14
|
exports.TransactionEntityFromJSONTyped = TransactionEntityFromJSONTyped;
|
|
15
15
|
exports.TransactionEntityToJSON = TransactionEntityToJSON;
|
|
16
16
|
const runtime_1 = require("../runtime");
|
|
17
|
+
const PaymentServiceDetailsEntity_1 = require("./PaymentServiceDetailsEntity");
|
|
17
18
|
const TagEntity_1 = require("./TagEntity");
|
|
18
19
|
const TransactionFeeDetailsEntity_1 = require("./TransactionFeeDetailsEntity");
|
|
19
20
|
const TransactionPaymentInstrumentBaseEntity_1 = require("./TransactionPaymentInstrumentBaseEntity");
|
|
@@ -133,6 +134,9 @@ function TransactionEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
133
134
|
settledAt: !(0, runtime_1.exists)(json, 'settledAt') ? undefined : new Date(json['settledAt']),
|
|
134
135
|
returnedAt: !(0, runtime_1.exists)(json, 'returnedAt') ? undefined : new Date(json['returnedAt']),
|
|
135
136
|
tags: !(0, runtime_1.exists)(json, 'tags') ? undefined : json['tags'].map(TagEntity_1.TagEntityFromJSON),
|
|
137
|
+
paymentServiceDetails: !(0, runtime_1.exists)(json, 'paymentServiceDetails')
|
|
138
|
+
? undefined
|
|
139
|
+
: (0, PaymentServiceDetailsEntity_1.PaymentServiceDetailsEntityFromJSON)(json['paymentServiceDetails']),
|
|
136
140
|
};
|
|
137
141
|
return (0, runtime_1.removeNullUndefined)(typed);
|
|
138
142
|
}
|
|
@@ -189,5 +193,6 @@ function TransactionEntityToJSON(value) {
|
|
|
189
193
|
settledAt: value.settledAt === undefined ? undefined : value.settledAt.toISOString(),
|
|
190
194
|
returnedAt: value.returnedAt === undefined ? undefined : value.returnedAt.toISOString(),
|
|
191
195
|
tags: value.tags === undefined ? undefined : value.tags.map(TagEntity_1.TagEntityToJSON),
|
|
196
|
+
paymentServiceDetails: (0, PaymentServiceDetailsEntity_1.PaymentServiceDetailsEntityToJSON)(value.paymentServiceDetails),
|
|
192
197
|
};
|
|
193
198
|
}
|
|
@@ -16,13 +16,13 @@ export interface UpdateConditionDto {
|
|
|
16
16
|
* @type {string}
|
|
17
17
|
* @memberof UpdateConditionDto
|
|
18
18
|
*/
|
|
19
|
-
field
|
|
19
|
+
field: UpdateConditionDtoFieldEnum;
|
|
20
20
|
/**
|
|
21
21
|
* The operator to apply to the condition
|
|
22
22
|
* @type {string}
|
|
23
23
|
* @memberof UpdateConditionDto
|
|
24
24
|
*/
|
|
25
|
-
operator
|
|
25
|
+
operator: UpdateConditionDtoOperatorEnum;
|
|
26
26
|
/**
|
|
27
27
|
* The integer value to compare against (if applicable)
|
|
28
28
|
* @type {number}
|
|
@@ -47,6 +47,8 @@ exports.UpdateConditionDtoOperatorEnum = {
|
|
|
47
47
|
*/
|
|
48
48
|
function instanceOfUpdateConditionDto(value) {
|
|
49
49
|
let isInstance = true;
|
|
50
|
+
isInstance = isInstance && 'field' in value;
|
|
51
|
+
isInstance = isInstance && 'operator' in value;
|
|
50
52
|
return isInstance;
|
|
51
53
|
}
|
|
52
54
|
function UpdateConditionDtoFromJSON(json) {
|
|
@@ -57,8 +59,8 @@ function UpdateConditionDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
59
|
return json;
|
|
58
60
|
}
|
|
59
61
|
const typed = {
|
|
60
|
-
field:
|
|
61
|
-
operator:
|
|
62
|
+
field: json['field'],
|
|
63
|
+
operator: json['operator'],
|
|
62
64
|
intValue: !(0, runtime_1.exists)(json, 'intValue') ? undefined : json['intValue'],
|
|
63
65
|
intMin: !(0, runtime_1.exists)(json, 'intMin') ? undefined : json['intMin'],
|
|
64
66
|
intMax: !(0, runtime_1.exists)(json, 'intMax') ? undefined : json['intMax'],
|
|
@@ -96,6 +96,7 @@ export * from './PaymentMethodSessionAttemptEntity';
|
|
|
96
96
|
export * from './PaymentMethodSessionBaseEntity';
|
|
97
97
|
export * from './PaymentMethodSessionEntity';
|
|
98
98
|
export * from './PaymentMethodsSearchEntity';
|
|
99
|
+
export * from './PaymentServiceDetailsEntity';
|
|
99
100
|
export * from './ReportCreatorEntity';
|
|
100
101
|
export * from './ReturnNotificationEntity';
|
|
101
102
|
export * from './ReturnNotificationsSearchEntity';
|
package/dist/cjs/models/index.js
CHANGED
|
@@ -114,6 +114,7 @@ __exportStar(require("./PaymentMethodSessionAttemptEntity"), exports);
|
|
|
114
114
|
__exportStar(require("./PaymentMethodSessionBaseEntity"), exports);
|
|
115
115
|
__exportStar(require("./PaymentMethodSessionEntity"), exports);
|
|
116
116
|
__exportStar(require("./PaymentMethodsSearchEntity"), exports);
|
|
117
|
+
__exportStar(require("./PaymentServiceDetailsEntity"), exports);
|
|
117
118
|
__exportStar(require("./ReportCreatorEntity"), exports);
|
|
118
119
|
__exportStar(require("./ReturnNotificationEntity"), exports);
|
|
119
120
|
__exportStar(require("./ReturnNotificationsSearchEntity"), exports);
|
package/dist/cjs/runtime.js
CHANGED
|
@@ -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.
|
|
117
|
+
context.headers['user-agent'] = '@channelpayments/node-sdk/v1.210.0';
|
|
118
118
|
const token = this.generateAuthToken();
|
|
119
119
|
context.headers['Authorization'] = `Bearer ${token}`;
|
|
120
120
|
let url = this.url + context.path;
|
|
@@ -8,6 +8,12 @@ import * as runtime from '../runtime';
|
|
|
8
8
|
import type { BuyersEntity, BuyersSearchEntity, CaptureTransactionDto, ChangeNotificationEntity, ChangeNotificationsSearchEntity, CheckoutSessionEntity, ConnectorServiceTokenEntity, CreateBuyerDto, CreateCheckoutSessionDto, CreatePaymentMethodDto, CreatePaymentMethodSessionDto, CreateProvisionedCardTokenDto, CreateTransactionRefundDto, CreateTransactionRequestDto, MerchantEntity, MerchantFeeDetailsEntity, PaymentMethodEntity, PaymentMethodSessionEntity, PaymentMethodsSearchEntity, ReturnNotificationEntity, ReturnNotificationsSearchEntity, TagDto, TransactionEntity, TransactionRefundEntity, TransactionRefundsSearchEntity, TransactionsSearchEntity, UpdateBuyerDto } from '../models';
|
|
9
9
|
export interface GetFeeDetailsRequest {
|
|
10
10
|
amount: string;
|
|
11
|
+
key: string;
|
|
12
|
+
value: string;
|
|
13
|
+
transactionInitiator?: GetFeeDetailsTransactionInitiatorEnum;
|
|
14
|
+
secCode?: GetFeeDetailsSecCodeEnum;
|
|
15
|
+
currency?: GetFeeDetailsCurrencyEnum;
|
|
16
|
+
country?: string;
|
|
11
17
|
}
|
|
12
18
|
export interface SearchBuyersRequest {
|
|
13
19
|
merchantId?: string;
|
|
@@ -230,6 +236,33 @@ export declare class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
230
236
|
*/
|
|
231
237
|
voidTransaction(transactionId: string, idempotencyKey?: string): Promise<TransactionEntity>;
|
|
232
238
|
}
|
|
239
|
+
/**
|
|
240
|
+
* @export
|
|
241
|
+
*/
|
|
242
|
+
export declare const GetFeeDetailsTransactionInitiatorEnum: {
|
|
243
|
+
readonly Mit: "MIT";
|
|
244
|
+
readonly Cit: "CIT";
|
|
245
|
+
};
|
|
246
|
+
export type GetFeeDetailsTransactionInitiatorEnum = (typeof GetFeeDetailsTransactionInitiatorEnum)[keyof typeof GetFeeDetailsTransactionInitiatorEnum];
|
|
247
|
+
/**
|
|
248
|
+
* @export
|
|
249
|
+
*/
|
|
250
|
+
export declare const GetFeeDetailsSecCodeEnum: {
|
|
251
|
+
readonly Ppd: "PPD";
|
|
252
|
+
readonly Ccd: "CCD";
|
|
253
|
+
readonly Web: "WEB";
|
|
254
|
+
readonly Tel: "TEL";
|
|
255
|
+
};
|
|
256
|
+
export type GetFeeDetailsSecCodeEnum = (typeof GetFeeDetailsSecCodeEnum)[keyof typeof GetFeeDetailsSecCodeEnum];
|
|
257
|
+
/**
|
|
258
|
+
* @export
|
|
259
|
+
*/
|
|
260
|
+
export declare const GetFeeDetailsCurrencyEnum: {
|
|
261
|
+
readonly Usd: "USD";
|
|
262
|
+
readonly Cad: "CAD";
|
|
263
|
+
readonly Aud: "AUD";
|
|
264
|
+
};
|
|
265
|
+
export type GetFeeDetailsCurrencyEnum = (typeof GetFeeDetailsCurrencyEnum)[keyof typeof GetFeeDetailsCurrencyEnum];
|
|
233
266
|
/**
|
|
234
267
|
* @export
|
|
235
268
|
*/
|
|
@@ -1034,10 +1034,34 @@ export class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
1034
1034
|
if (requestParameters.amount === null || requestParameters.amount === undefined) {
|
|
1035
1035
|
throw new runtime.RequiredError('amount', "Required parameter 'amount' was null or undefined when calling getFeeDetails.");
|
|
1036
1036
|
}
|
|
1037
|
+
if (requestParameters.key === null || requestParameters.key === undefined) {
|
|
1038
|
+
throw new runtime.RequiredError('key', "Required parameter 'key' was null or undefined when calling getFeeDetails.");
|
|
1039
|
+
}
|
|
1040
|
+
if (requestParameters.value === null || requestParameters.value === undefined) {
|
|
1041
|
+
throw new runtime.RequiredError('value', "Required parameter 'value' was null or undefined when calling getFeeDetails.");
|
|
1042
|
+
}
|
|
1037
1043
|
const queryParameters = {};
|
|
1038
1044
|
if (requestParameters.amount !== undefined) {
|
|
1039
1045
|
queryParameters['amount'] = requestParameters.amount;
|
|
1040
1046
|
}
|
|
1047
|
+
if (requestParameters.transactionInitiator !== undefined) {
|
|
1048
|
+
queryParameters['transactionInitiator'] = requestParameters.transactionInitiator;
|
|
1049
|
+
}
|
|
1050
|
+
if (requestParameters.secCode !== undefined) {
|
|
1051
|
+
queryParameters['secCode'] = requestParameters.secCode;
|
|
1052
|
+
}
|
|
1053
|
+
if (requestParameters.currency !== undefined) {
|
|
1054
|
+
queryParameters['currency'] = requestParameters.currency;
|
|
1055
|
+
}
|
|
1056
|
+
if (requestParameters.country !== undefined) {
|
|
1057
|
+
queryParameters['country'] = requestParameters.country;
|
|
1058
|
+
}
|
|
1059
|
+
if (requestParameters.key !== undefined) {
|
|
1060
|
+
queryParameters['key'] = requestParameters.key;
|
|
1061
|
+
}
|
|
1062
|
+
if (requestParameters.value !== undefined) {
|
|
1063
|
+
queryParameters['value'] = requestParameters.value;
|
|
1064
|
+
}
|
|
1041
1065
|
const headerParameters = {};
|
|
1042
1066
|
const rawResponse = await this.request({
|
|
1043
1067
|
path: `/transactions/fee-details`,
|
|
@@ -2417,6 +2441,30 @@ export class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
2417
2441
|
return await response.value();
|
|
2418
2442
|
}
|
|
2419
2443
|
}
|
|
2444
|
+
/**
|
|
2445
|
+
* @export
|
|
2446
|
+
*/
|
|
2447
|
+
export const GetFeeDetailsTransactionInitiatorEnum = {
|
|
2448
|
+
Mit: 'MIT',
|
|
2449
|
+
Cit: 'CIT',
|
|
2450
|
+
};
|
|
2451
|
+
/**
|
|
2452
|
+
* @export
|
|
2453
|
+
*/
|
|
2454
|
+
export const GetFeeDetailsSecCodeEnum = {
|
|
2455
|
+
Ppd: 'PPD',
|
|
2456
|
+
Ccd: 'CCD',
|
|
2457
|
+
Web: 'WEB',
|
|
2458
|
+
Tel: 'TEL',
|
|
2459
|
+
};
|
|
2460
|
+
/**
|
|
2461
|
+
* @export
|
|
2462
|
+
*/
|
|
2463
|
+
export const GetFeeDetailsCurrencyEnum = {
|
|
2464
|
+
Usd: 'USD',
|
|
2465
|
+
Cad: 'CAD',
|
|
2466
|
+
Aud: 'AUD',
|
|
2467
|
+
};
|
|
2420
2468
|
/**
|
|
2421
2469
|
* @export
|
|
2422
2470
|
*/
|
|
@@ -188,7 +188,6 @@ export type CheckoutSessionBaseEntityStatusEnum = (typeof CheckoutSessionBaseEnt
|
|
|
188
188
|
export declare const CheckoutSessionBaseEntityTransactionInitiatorEnum: {
|
|
189
189
|
readonly Mit: "MIT";
|
|
190
190
|
readonly Cit: "CIT";
|
|
191
|
-
readonly Sit: "SIT";
|
|
192
191
|
};
|
|
193
192
|
export type CheckoutSessionBaseEntityTransactionInitiatorEnum = (typeof CheckoutSessionBaseEntityTransactionInitiatorEnum)[keyof typeof CheckoutSessionBaseEntityTransactionInitiatorEnum];
|
|
194
193
|
/**
|
|
@@ -212,7 +212,6 @@ export type CheckoutSessionEntityStatusEnum = (typeof CheckoutSessionEntityStatu
|
|
|
212
212
|
export declare const CheckoutSessionEntityTransactionInitiatorEnum: {
|
|
213
213
|
readonly Mit: "MIT";
|
|
214
214
|
readonly Cit: "CIT";
|
|
215
|
-
readonly Sit: "SIT";
|
|
216
215
|
};
|
|
217
216
|
export type CheckoutSessionEntityTransactionInitiatorEnum = (typeof CheckoutSessionEntityTransactionInitiatorEnum)[keyof typeof CheckoutSessionEntityTransactionInitiatorEnum];
|
|
218
217
|
/**
|
|
@@ -126,6 +126,30 @@ export interface MerchantAccountEntity {
|
|
|
126
126
|
* @memberof MerchantAccountEntity
|
|
127
127
|
*/
|
|
128
128
|
mcc?: string;
|
|
129
|
+
/**
|
|
130
|
+
* The agent associated with the merchant account.
|
|
131
|
+
* @type {string}
|
|
132
|
+
* @memberof MerchantAccountEntity
|
|
133
|
+
*/
|
|
134
|
+
agent?: string;
|
|
135
|
+
/**
|
|
136
|
+
* The BIN associated with the merchant account.
|
|
137
|
+
* @type {string}
|
|
138
|
+
* @memberof MerchantAccountEntity
|
|
139
|
+
*/
|
|
140
|
+
bin?: string;
|
|
141
|
+
/**
|
|
142
|
+
* The chain associated with the merchant account.
|
|
143
|
+
* @type {string}
|
|
144
|
+
* @memberof MerchantAccountEntity
|
|
145
|
+
*/
|
|
146
|
+
chain?: string;
|
|
147
|
+
/**
|
|
148
|
+
* The store associated with the merchant account.
|
|
149
|
+
* @type {string}
|
|
150
|
+
* @memberof MerchantAccountEntity
|
|
151
|
+
*/
|
|
152
|
+
store?: string;
|
|
129
153
|
}
|
|
130
154
|
/**
|
|
131
155
|
* @export
|
|
@@ -117,6 +117,10 @@ export function MerchantAccountEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
117
117
|
lastPolledAt: !exists(json, 'lastPolledAt') ? undefined : new Date(json['lastPolledAt']),
|
|
118
118
|
dataSource: !exists(json, 'dataSource') ? undefined : json['dataSource'],
|
|
119
119
|
mcc: !exists(json, 'mcc') ? undefined : json['mcc'],
|
|
120
|
+
agent: !exists(json, 'agent') ? undefined : json['agent'],
|
|
121
|
+
bin: !exists(json, 'bin') ? undefined : json['bin'],
|
|
122
|
+
chain: !exists(json, 'chain') ? undefined : json['chain'],
|
|
123
|
+
store: !exists(json, 'store') ? undefined : json['store'],
|
|
120
124
|
};
|
|
121
125
|
return removeNullUndefined(typed);
|
|
122
126
|
}
|
|
@@ -149,5 +153,9 @@ export function MerchantAccountEntityToJSON(value) {
|
|
|
149
153
|
lastPolledAt: value.lastPolledAt === undefined ? undefined : value.lastPolledAt.toISOString(),
|
|
150
154
|
dataSource: value.dataSource,
|
|
151
155
|
mcc: value.mcc,
|
|
156
|
+
agent: value.agent,
|
|
157
|
+
bin: value.bin,
|
|
158
|
+
chain: value.chain,
|
|
159
|
+
store: value.store,
|
|
152
160
|
};
|
|
153
161
|
}
|
|
@@ -126,6 +126,30 @@ export interface MerchantAccountServiceEntity {
|
|
|
126
126
|
* @memberof MerchantAccountServiceEntity
|
|
127
127
|
*/
|
|
128
128
|
mcc?: string;
|
|
129
|
+
/**
|
|
130
|
+
* The agent associated with the merchant account.
|
|
131
|
+
* @type {string}
|
|
132
|
+
* @memberof MerchantAccountServiceEntity
|
|
133
|
+
*/
|
|
134
|
+
agent?: string;
|
|
135
|
+
/**
|
|
136
|
+
* The BIN associated with the merchant account.
|
|
137
|
+
* @type {string}
|
|
138
|
+
* @memberof MerchantAccountServiceEntity
|
|
139
|
+
*/
|
|
140
|
+
bin?: string;
|
|
141
|
+
/**
|
|
142
|
+
* The chain associated with the merchant account.
|
|
143
|
+
* @type {string}
|
|
144
|
+
* @memberof MerchantAccountServiceEntity
|
|
145
|
+
*/
|
|
146
|
+
chain?: string;
|
|
147
|
+
/**
|
|
148
|
+
* The store associated with the merchant account.
|
|
149
|
+
* @type {string}
|
|
150
|
+
* @memberof MerchantAccountServiceEntity
|
|
151
|
+
*/
|
|
152
|
+
store?: string;
|
|
129
153
|
}
|
|
130
154
|
/**
|
|
131
155
|
* @export
|
|
@@ -117,6 +117,10 @@ export function MerchantAccountServiceEntityFromJSONTyped(json, ignoreDiscrimina
|
|
|
117
117
|
lastPolledAt: !exists(json, 'lastPolledAt') ? undefined : new Date(json['lastPolledAt']),
|
|
118
118
|
dataSource: !exists(json, 'dataSource') ? undefined : json['dataSource'],
|
|
119
119
|
mcc: !exists(json, 'mcc') ? undefined : json['mcc'],
|
|
120
|
+
agent: !exists(json, 'agent') ? undefined : json['agent'],
|
|
121
|
+
bin: !exists(json, 'bin') ? undefined : json['bin'],
|
|
122
|
+
chain: !exists(json, 'chain') ? undefined : json['chain'],
|
|
123
|
+
store: !exists(json, 'store') ? undefined : json['store'],
|
|
120
124
|
};
|
|
121
125
|
return removeNullUndefined(typed);
|
|
122
126
|
}
|
|
@@ -149,5 +153,9 @@ export function MerchantAccountServiceEntityToJSON(value) {
|
|
|
149
153
|
lastPolledAt: value.lastPolledAt === undefined ? undefined : value.lastPolledAt.toISOString(),
|
|
150
154
|
dataSource: value.dataSource,
|
|
151
155
|
mcc: value.mcc,
|
|
156
|
+
agent: value.agent,
|
|
157
|
+
bin: value.bin,
|
|
158
|
+
chain: value.chain,
|
|
159
|
+
store: value.store,
|
|
152
160
|
};
|
|
153
161
|
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 PaymentServiceDetailsEntity
|
|
11
|
+
*/
|
|
12
|
+
export interface PaymentServiceDetailsEntity {
|
|
13
|
+
/**
|
|
14
|
+
* The unique identifier of the connector.
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof PaymentServiceDetailsEntity
|
|
17
|
+
*/
|
|
18
|
+
connectorId?: string;
|
|
19
|
+
/**
|
|
20
|
+
* The specified name of the connector.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof PaymentServiceDetailsEntity
|
|
23
|
+
*/
|
|
24
|
+
connectorName?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The method for the connector.
|
|
27
|
+
* @type {object}
|
|
28
|
+
* @memberof PaymentServiceDetailsEntity
|
|
29
|
+
*/
|
|
30
|
+
method?: object;
|
|
31
|
+
/**
|
|
32
|
+
* The connector.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof PaymentServiceDetailsEntity
|
|
35
|
+
*/
|
|
36
|
+
connector?: string;
|
|
37
|
+
/**
|
|
38
|
+
* The merchant account id associated with the payment service.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof PaymentServiceDetailsEntity
|
|
41
|
+
*/
|
|
42
|
+
merchantAccountId?: string;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the PaymentServiceDetailsEntity interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfPaymentServiceDetailsEntity(value: object): boolean;
|
|
48
|
+
export declare function PaymentServiceDetailsEntityFromJSON(json: any): PaymentServiceDetailsEntity;
|
|
49
|
+
export declare function PaymentServiceDetailsEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentServiceDetailsEntity;
|
|
50
|
+
export declare function PaymentServiceDetailsEntityToJSON(value?: PaymentServiceDetailsEntity | null): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Channel Payments API
|
|
5
|
+
*
|
|
6
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
import { exists, removeNullUndefined } from '../runtime';
|
|
10
|
+
/**
|
|
11
|
+
* Check if a given object implements the PaymentServiceDetailsEntity interface.
|
|
12
|
+
*/
|
|
13
|
+
export function instanceOfPaymentServiceDetailsEntity(value) {
|
|
14
|
+
let isInstance = true;
|
|
15
|
+
return isInstance;
|
|
16
|
+
}
|
|
17
|
+
export function PaymentServiceDetailsEntityFromJSON(json) {
|
|
18
|
+
return PaymentServiceDetailsEntityFromJSONTyped(json, false);
|
|
19
|
+
}
|
|
20
|
+
export function PaymentServiceDetailsEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
21
|
+
if (json === undefined || json === null) {
|
|
22
|
+
return json;
|
|
23
|
+
}
|
|
24
|
+
const typed = {
|
|
25
|
+
connectorId: !exists(json, 'connectorId') ? undefined : json['connectorId'],
|
|
26
|
+
connectorName: !exists(json, 'connectorName') ? undefined : json['connectorName'],
|
|
27
|
+
method: !exists(json, 'method') ? undefined : json['method'],
|
|
28
|
+
connector: !exists(json, 'connector') ? undefined : json['connector'],
|
|
29
|
+
merchantAccountId: !exists(json, 'merchantAccountId') ? undefined : json['merchantAccountId'],
|
|
30
|
+
};
|
|
31
|
+
return removeNullUndefined(typed);
|
|
32
|
+
}
|
|
33
|
+
export function PaymentServiceDetailsEntityToJSON(value) {
|
|
34
|
+
if (value === undefined) {
|
|
35
|
+
return undefined;
|
|
36
|
+
}
|
|
37
|
+
if (value === null) {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
connectorId: value.connectorId,
|
|
42
|
+
connectorName: value.connectorName,
|
|
43
|
+
method: value.method,
|
|
44
|
+
connector: value.connector,
|
|
45
|
+
merchantAccountId: value.merchantAccountId,
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -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 { PaymentServiceDetailsEntity } from './PaymentServiceDetailsEntity';
|
|
7
8
|
import type { TagEntity } from './TagEntity';
|
|
8
9
|
import type { TransactionFeeDetailsEntity } from './TransactionFeeDetailsEntity';
|
|
9
10
|
import type { TransactionPaymentInstrumentBaseEntity } from './TransactionPaymentInstrumentBaseEntity';
|
|
@@ -271,6 +272,12 @@ export interface TransactionEntity {
|
|
|
271
272
|
* @memberof TransactionEntity
|
|
272
273
|
*/
|
|
273
274
|
tags?: Array<TagEntity>;
|
|
275
|
+
/**
|
|
276
|
+
*
|
|
277
|
+
* @type {PaymentServiceDetailsEntity}
|
|
278
|
+
* @memberof TransactionEntity
|
|
279
|
+
*/
|
|
280
|
+
paymentServiceDetails?: PaymentServiceDetailsEntity;
|
|
274
281
|
}
|
|
275
282
|
/**
|
|
276
283
|
* @export
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
*/
|
|
9
9
|
import { exists, removeNullUndefined } from '../runtime';
|
|
10
|
+
import { PaymentServiceDetailsEntityFromJSON, PaymentServiceDetailsEntityToJSON, } from './PaymentServiceDetailsEntity';
|
|
10
11
|
import { TagEntityFromJSON, TagEntityToJSON } from './TagEntity';
|
|
11
12
|
import { TransactionFeeDetailsEntityFromJSON, TransactionFeeDetailsEntityToJSON, } from './TransactionFeeDetailsEntity';
|
|
12
13
|
import { TransactionPaymentInstrumentBaseEntityFromJSON, TransactionPaymentInstrumentBaseEntityToJSON, } from './TransactionPaymentInstrumentBaseEntity';
|
|
@@ -126,6 +127,9 @@ export function TransactionEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
126
127
|
settledAt: !exists(json, 'settledAt') ? undefined : new Date(json['settledAt']),
|
|
127
128
|
returnedAt: !exists(json, 'returnedAt') ? undefined : new Date(json['returnedAt']),
|
|
128
129
|
tags: !exists(json, 'tags') ? undefined : json['tags'].map(TagEntityFromJSON),
|
|
130
|
+
paymentServiceDetails: !exists(json, 'paymentServiceDetails')
|
|
131
|
+
? undefined
|
|
132
|
+
: PaymentServiceDetailsEntityFromJSON(json['paymentServiceDetails']),
|
|
129
133
|
};
|
|
130
134
|
return removeNullUndefined(typed);
|
|
131
135
|
}
|
|
@@ -182,5 +186,6 @@ export function TransactionEntityToJSON(value) {
|
|
|
182
186
|
settledAt: value.settledAt === undefined ? undefined : value.settledAt.toISOString(),
|
|
183
187
|
returnedAt: value.returnedAt === undefined ? undefined : value.returnedAt.toISOString(),
|
|
184
188
|
tags: value.tags === undefined ? undefined : value.tags.map(TagEntityToJSON),
|
|
189
|
+
paymentServiceDetails: PaymentServiceDetailsEntityToJSON(value.paymentServiceDetails),
|
|
185
190
|
};
|
|
186
191
|
}
|
|
@@ -16,13 +16,13 @@ export interface UpdateConditionDto {
|
|
|
16
16
|
* @type {string}
|
|
17
17
|
* @memberof UpdateConditionDto
|
|
18
18
|
*/
|
|
19
|
-
field
|
|
19
|
+
field: UpdateConditionDtoFieldEnum;
|
|
20
20
|
/**
|
|
21
21
|
* The operator to apply to the condition
|
|
22
22
|
* @type {string}
|
|
23
23
|
* @memberof UpdateConditionDto
|
|
24
24
|
*/
|
|
25
|
-
operator
|
|
25
|
+
operator: UpdateConditionDtoOperatorEnum;
|
|
26
26
|
/**
|
|
27
27
|
* The integer value to compare against (if applicable)
|
|
28
28
|
* @type {number}
|
|
@@ -40,6 +40,8 @@ export const UpdateConditionDtoOperatorEnum = {
|
|
|
40
40
|
*/
|
|
41
41
|
export function instanceOfUpdateConditionDto(value) {
|
|
42
42
|
let isInstance = true;
|
|
43
|
+
isInstance = isInstance && 'field' in value;
|
|
44
|
+
isInstance = isInstance && 'operator' in value;
|
|
43
45
|
return isInstance;
|
|
44
46
|
}
|
|
45
47
|
export function UpdateConditionDtoFromJSON(json) {
|
|
@@ -50,8 +52,8 @@ export function UpdateConditionDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
52
|
return json;
|
|
51
53
|
}
|
|
52
54
|
const typed = {
|
|
53
|
-
field:
|
|
54
|
-
operator:
|
|
55
|
+
field: json['field'],
|
|
56
|
+
operator: json['operator'],
|
|
55
57
|
intValue: !exists(json, 'intValue') ? undefined : json['intValue'],
|
|
56
58
|
intMin: !exists(json, 'intMin') ? undefined : json['intMin'],
|
|
57
59
|
intMax: !exists(json, 'intMax') ? undefined : json['intMax'],
|
|
@@ -96,6 +96,7 @@ export * from './PaymentMethodSessionAttemptEntity';
|
|
|
96
96
|
export * from './PaymentMethodSessionBaseEntity';
|
|
97
97
|
export * from './PaymentMethodSessionEntity';
|
|
98
98
|
export * from './PaymentMethodsSearchEntity';
|
|
99
|
+
export * from './PaymentServiceDetailsEntity';
|
|
99
100
|
export * from './ReportCreatorEntity';
|
|
100
101
|
export * from './ReturnNotificationEntity';
|
|
101
102
|
export * from './ReturnNotificationsSearchEntity';
|
package/dist/mjs/models/index.js
CHANGED
|
@@ -98,6 +98,7 @@ export * from './PaymentMethodSessionAttemptEntity';
|
|
|
98
98
|
export * from './PaymentMethodSessionBaseEntity';
|
|
99
99
|
export * from './PaymentMethodSessionEntity';
|
|
100
100
|
export * from './PaymentMethodsSearchEntity';
|
|
101
|
+
export * from './PaymentServiceDetailsEntity';
|
|
101
102
|
export * from './ReportCreatorEntity';
|
|
102
103
|
export * from './ReturnNotificationEntity';
|
|
103
104
|
export * from './ReturnNotificationsSearchEntity';
|
package/dist/mjs/runtime.js
CHANGED
|
@@ -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.
|
|
67
|
+
context.headers['user-agent'] = '@channelpayments/node-sdk/v1.210.0';
|
|
68
68
|
const token = this.generateAuthToken();
|
|
69
69
|
context.headers['Authorization'] = `Bearer ${token}`;
|
|
70
70
|
let url = this.url + context.path;
|