@channelpayments/node-sdk 1.41.6 → 1.42.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 +5 -5
- package/dist/cjs/apis/ChannelPaymentsApi.js +4 -4
- package/dist/cjs/models/PaymentMethodEntity1.d.ts +5 -29
- package/dist/cjs/models/PaymentMethodEntity1.js +8 -16
- package/dist/cjs/models/PaymentMethodEntity2.d.ts +113 -0
- package/dist/cjs/models/PaymentMethodEntity2.js +82 -0
- package/dist/cjs/models/PaymentServiceDetailsEntity.d.ts +50 -0
- package/dist/cjs/models/PaymentServiceDetailsEntity.js +54 -0
- package/dist/cjs/models/TransactionEntity.d.ts +26 -69
- package/dist/cjs/models/TransactionEntity.js +29 -54
- package/dist/cjs/models/TransactionEntity1.d.ts +241 -0
- package/dist/cjs/models/TransactionEntity1.js +150 -0
- package/dist/cjs/models/TransactionsSearchEntity.d.ts +3 -3
- package/dist/cjs/models/TransactionsSearchEntity.js +3 -3
- package/dist/cjs/models/index.d.ts +3 -0
- package/dist/cjs/models/index.js +3 -0
- package/dist/mjs/apis/ChannelPaymentsApi.d.ts +5 -5
- package/dist/mjs/apis/ChannelPaymentsApi.js +5 -5
- package/dist/mjs/models/PaymentMethodEntity1.d.ts +5 -29
- package/dist/mjs/models/PaymentMethodEntity1.js +8 -16
- package/dist/mjs/models/PaymentMethodEntity2.d.ts +113 -0
- package/dist/mjs/models/PaymentMethodEntity2.js +75 -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 +26 -69
- package/dist/mjs/models/TransactionEntity.js +29 -54
- package/dist/mjs/models/TransactionEntity1.d.ts +241 -0
- package/dist/mjs/models/TransactionEntity1.js +143 -0
- package/dist/mjs/models/TransactionsSearchEntity.d.ts +3 -3
- package/dist/mjs/models/TransactionsSearchEntity.js +3 -3
- package/dist/mjs/models/index.d.ts +3 -0
- package/dist/mjs/models/index.js +3 -0
- package/package.json +1 -1
|
@@ -0,0 +1,150 @@
|
|
|
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.TransactionEntity1ToJSON = exports.TransactionEntity1FromJSONTyped = exports.TransactionEntity1FromJSON = exports.instanceOfTransactionEntity1 = exports.TransactionEntity1CurrencyEnum = exports.TransactionEntity1IntentEnum = exports.TransactionEntity1StatusEnum = void 0;
|
|
12
|
+
const runtime_1 = require("../runtime");
|
|
13
|
+
const PaymentMethodEntity2_1 = require("./PaymentMethodEntity2");
|
|
14
|
+
const PaymentsBuyerEntity_1 = require("./PaymentsBuyerEntity");
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
exports.TransactionEntity1StatusEnum = {
|
|
19
|
+
Processing: 'processing',
|
|
20
|
+
BuyerApprovalPending: 'buyerApprovalPending',
|
|
21
|
+
Authorized: 'authorized',
|
|
22
|
+
AuthorizationFailed: 'authorizationFailed',
|
|
23
|
+
Declined: 'declined',
|
|
24
|
+
CapturePending: 'capturePending',
|
|
25
|
+
Captured: 'captured',
|
|
26
|
+
VoidPending: 'voidPending',
|
|
27
|
+
Voided: 'voided',
|
|
28
|
+
Held: 'held',
|
|
29
|
+
Submitted: 'submitted',
|
|
30
|
+
Transmitted: 'transmitted',
|
|
31
|
+
Settled: 'settled',
|
|
32
|
+
Returned: 'returned'
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* @export
|
|
36
|
+
*/
|
|
37
|
+
exports.TransactionEntity1IntentEnum = {
|
|
38
|
+
Capture: 'capture',
|
|
39
|
+
Authorize: 'authorize',
|
|
40
|
+
Debit: 'debit',
|
|
41
|
+
Credit: 'credit'
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
exports.TransactionEntity1CurrencyEnum = {
|
|
47
|
+
Usd: 'USD',
|
|
48
|
+
Cad: 'CAD',
|
|
49
|
+
Aud: 'AUD'
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the TransactionEntity1 interface.
|
|
53
|
+
*/
|
|
54
|
+
function instanceOfTransactionEntity1(value) {
|
|
55
|
+
let isInstance = true;
|
|
56
|
+
isInstance = isInstance && "transactionIntegrationId" in value;
|
|
57
|
+
isInstance = isInstance && "transactionId" in value;
|
|
58
|
+
isInstance = isInstance && "merchantId" in value;
|
|
59
|
+
isInstance = isInstance && "status" in value;
|
|
60
|
+
isInstance = isInstance && "intent" in value;
|
|
61
|
+
isInstance = isInstance && "amount" in value;
|
|
62
|
+
isInstance = isInstance && "netAmount" in value;
|
|
63
|
+
isInstance = isInstance && "fee" in value;
|
|
64
|
+
return isInstance;
|
|
65
|
+
}
|
|
66
|
+
exports.instanceOfTransactionEntity1 = instanceOfTransactionEntity1;
|
|
67
|
+
function TransactionEntity1FromJSON(json) {
|
|
68
|
+
return TransactionEntity1FromJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
exports.TransactionEntity1FromJSON = TransactionEntity1FromJSON;
|
|
71
|
+
function TransactionEntity1FromJSONTyped(json, ignoreDiscriminator) {
|
|
72
|
+
if ((json === undefined) || (json === null)) {
|
|
73
|
+
return json;
|
|
74
|
+
}
|
|
75
|
+
const typed = {
|
|
76
|
+
'transactionIntegrationId': json['transactionIntegrationId'],
|
|
77
|
+
'transactionId': json['transactionId'],
|
|
78
|
+
'merchantId': json['merchantId'],
|
|
79
|
+
'status': json['status'],
|
|
80
|
+
'intent': json['intent'],
|
|
81
|
+
'amount': json['amount'],
|
|
82
|
+
'netAmount': json['netAmount'],
|
|
83
|
+
'fee': json['fee'],
|
|
84
|
+
'feeDetails': !(0, runtime_1.exists)(json, 'feeDetails') ? undefined : json['feeDetails'],
|
|
85
|
+
'capturedAmount': !(0, runtime_1.exists)(json, 'capturedAmount') ? undefined : json['capturedAmount'],
|
|
86
|
+
'refundedAmount': !(0, runtime_1.exists)(json, 'refundedAmount') ? undefined : json['refundedAmount'],
|
|
87
|
+
'currency': !(0, runtime_1.exists)(json, 'currency') ? undefined : json['currency'],
|
|
88
|
+
'country': !(0, runtime_1.exists)(json, 'country') ? undefined : json['country'],
|
|
89
|
+
'paymentMethod': !(0, runtime_1.exists)(json, 'paymentMethod') ? undefined : (0, PaymentMethodEntity2_1.PaymentMethodEntity2FromJSON)(json['paymentMethod']),
|
|
90
|
+
'buyer': !(0, runtime_1.exists)(json, 'buyer') ? undefined : (0, PaymentsBuyerEntity_1.PaymentsBuyerEntityFromJSON)(json['buyer']),
|
|
91
|
+
'externalBuyerId': !(0, runtime_1.exists)(json, 'externalBuyerId') ? undefined : json['externalBuyerId'],
|
|
92
|
+
'createdAt': !(0, runtime_1.exists)(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
|
|
93
|
+
'updatedAt': !(0, runtime_1.exists)(json, 'updatedAt') ? undefined : (new Date(json['updatedAt'])),
|
|
94
|
+
'merchantInitiated': !(0, runtime_1.exists)(json, 'merchantInitiated') ? undefined : json['merchantInitiated'],
|
|
95
|
+
'schemeTransactionId': !(0, runtime_1.exists)(json, 'schemeTransactionId') ? undefined : json['schemeTransactionId'],
|
|
96
|
+
'rawResponseCode': !(0, runtime_1.exists)(json, 'rawResponseCode') ? undefined : json['rawResponseCode'],
|
|
97
|
+
'rawResponseDescription': !(0, runtime_1.exists)(json, 'rawResponseDescription') ? undefined : json['rawResponseDescription'],
|
|
98
|
+
'avsResponseCode': !(0, runtime_1.exists)(json, 'avsResponseCode') ? undefined : json['avsResponseCode'],
|
|
99
|
+
'cvvResponseCode': !(0, runtime_1.exists)(json, 'cvvResponseCode') ? undefined : json['cvvResponseCode'],
|
|
100
|
+
'capturedAt': !(0, runtime_1.exists)(json, 'capturedAt') ? undefined : (new Date(json['capturedAt'])),
|
|
101
|
+
'authorizedAt': !(0, runtime_1.exists)(json, 'authorizedAt') ? undefined : (new Date(json['authorizedAt'])),
|
|
102
|
+
'voidedAt': !(0, runtime_1.exists)(json, 'voidedAt') ? undefined : (new Date(json['voidedAt'])),
|
|
103
|
+
'externalTransactionId': !(0, runtime_1.exists)(json, 'externalTransactionId') ? undefined : json['externalTransactionId'],
|
|
104
|
+
'buyerId': !(0, runtime_1.exists)(json, 'buyerId') ? undefined : json['buyerId'],
|
|
105
|
+
'sECCode': !(0, runtime_1.exists)(json, 'SECCode') ? undefined : json['SECCode'],
|
|
106
|
+
};
|
|
107
|
+
return (0, runtime_1.removeNullUndefined)(typed);
|
|
108
|
+
}
|
|
109
|
+
exports.TransactionEntity1FromJSONTyped = TransactionEntity1FromJSONTyped;
|
|
110
|
+
function TransactionEntity1ToJSON(value) {
|
|
111
|
+
if (value === undefined) {
|
|
112
|
+
return undefined;
|
|
113
|
+
}
|
|
114
|
+
if (value === null) {
|
|
115
|
+
return null;
|
|
116
|
+
}
|
|
117
|
+
return {
|
|
118
|
+
'transactionIntegrationId': value.transactionIntegrationId,
|
|
119
|
+
'transactionId': value.transactionId,
|
|
120
|
+
'merchantId': value.merchantId,
|
|
121
|
+
'status': value.status,
|
|
122
|
+
'intent': value.intent,
|
|
123
|
+
'amount': value.amount,
|
|
124
|
+
'netAmount': value.netAmount,
|
|
125
|
+
'fee': value.fee,
|
|
126
|
+
'feeDetails': value.feeDetails,
|
|
127
|
+
'capturedAmount': value.capturedAmount,
|
|
128
|
+
'refundedAmount': value.refundedAmount,
|
|
129
|
+
'currency': value.currency,
|
|
130
|
+
'country': value.country,
|
|
131
|
+
'paymentMethod': (0, PaymentMethodEntity2_1.PaymentMethodEntity2ToJSON)(value.paymentMethod),
|
|
132
|
+
'buyer': (0, PaymentsBuyerEntity_1.PaymentsBuyerEntityToJSON)(value.buyer),
|
|
133
|
+
'externalBuyerId': value.externalBuyerId,
|
|
134
|
+
'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
|
|
135
|
+
'updatedAt': value.updatedAt === undefined ? undefined : (value.updatedAt.toISOString()),
|
|
136
|
+
'merchantInitiated': value.merchantInitiated,
|
|
137
|
+
'schemeTransactionId': value.schemeTransactionId,
|
|
138
|
+
'rawResponseCode': value.rawResponseCode,
|
|
139
|
+
'rawResponseDescription': value.rawResponseDescription,
|
|
140
|
+
'avsResponseCode': value.avsResponseCode,
|
|
141
|
+
'cvvResponseCode': value.cvvResponseCode,
|
|
142
|
+
'capturedAt': value.capturedAt === undefined ? undefined : (value.capturedAt.toISOString()),
|
|
143
|
+
'authorizedAt': value.authorizedAt === undefined ? undefined : (value.authorizedAt.toISOString()),
|
|
144
|
+
'voidedAt': value.voidedAt === undefined ? undefined : (value.voidedAt.toISOString()),
|
|
145
|
+
'externalTransactionId': value.externalTransactionId,
|
|
146
|
+
'buyerId': value.buyerId,
|
|
147
|
+
'SECCode': value.sECCode,
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
exports.TransactionEntity1ToJSON = TransactionEntity1ToJSON;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
5
|
*
|
|
6
6
|
*/
|
|
7
|
-
import type {
|
|
7
|
+
import type { TransactionEntity1 } from './TransactionEntity1';
|
|
8
8
|
/**
|
|
9
9
|
*
|
|
10
10
|
* @export
|
|
@@ -19,10 +19,10 @@ export interface TransactionsSearchEntity {
|
|
|
19
19
|
prevCursor: string;
|
|
20
20
|
/**
|
|
21
21
|
* The list of queried transactions
|
|
22
|
-
* @type {Array<
|
|
22
|
+
* @type {Array<TransactionEntity1>}
|
|
23
23
|
* @memberof TransactionsSearchEntity
|
|
24
24
|
*/
|
|
25
|
-
transactions: Array<
|
|
25
|
+
transactions: Array<TransactionEntity1>;
|
|
26
26
|
/**
|
|
27
27
|
* The number of records returned
|
|
28
28
|
* @type {number}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
11
|
exports.TransactionsSearchEntityToJSON = exports.TransactionsSearchEntityFromJSONTyped = exports.TransactionsSearchEntityFromJSON = exports.instanceOfTransactionsSearchEntity = void 0;
|
|
12
12
|
const runtime_1 = require("../runtime");
|
|
13
|
-
const
|
|
13
|
+
const TransactionEntity1_1 = require("./TransactionEntity1");
|
|
14
14
|
/**
|
|
15
15
|
* Check if a given object implements the TransactionsSearchEntity interface.
|
|
16
16
|
*/
|
|
@@ -32,7 +32,7 @@ function TransactionsSearchEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
32
|
}
|
|
33
33
|
const typed = {
|
|
34
34
|
'prevCursor': json['prevCursor'],
|
|
35
|
-
'transactions': (json['transactions'].map(
|
|
35
|
+
'transactions': (json['transactions'].map(TransactionEntity1_1.TransactionEntity1FromJSON)),
|
|
36
36
|
'limit': json['limit'],
|
|
37
37
|
'nextCursor': !(0, runtime_1.exists)(json, 'nextCursor') ? undefined : json['nextCursor'],
|
|
38
38
|
'page': !(0, runtime_1.exists)(json, 'page') ? undefined : json['page'],
|
|
@@ -49,7 +49,7 @@ function TransactionsSearchEntityToJSON(value) {
|
|
|
49
49
|
}
|
|
50
50
|
return {
|
|
51
51
|
'prevCursor': value.prevCursor,
|
|
52
|
-
'transactions': (value.transactions.map(
|
|
52
|
+
'transactions': (value.transactions.map(TransactionEntity1_1.TransactionEntity1ToJSON)),
|
|
53
53
|
'limit': value.limit,
|
|
54
54
|
'nextCursor': value.nextCursor,
|
|
55
55
|
'page': value.page,
|
|
@@ -55,9 +55,11 @@ export * from './MetadataRuleConditionEntity';
|
|
|
55
55
|
export * from './PaymentMethodDto';
|
|
56
56
|
export * from './PaymentMethodEntity';
|
|
57
57
|
export * from './PaymentMethodEntity1';
|
|
58
|
+
export * from './PaymentMethodEntity2';
|
|
58
59
|
export * from './PaymentMethodEntityBuyer';
|
|
59
60
|
export * from './PaymentMethodEntityCardDetails';
|
|
60
61
|
export * from './PaymentMethodsSearchEntity';
|
|
62
|
+
export * from './PaymentServiceDetailsEntity';
|
|
61
63
|
export * from './PaymentsBuyerEntity';
|
|
62
64
|
export * from './RefundTransactionDto';
|
|
63
65
|
export * from './RuleConditionsEntity';
|
|
@@ -65,6 +67,7 @@ export * from './RuleConditionsEntityAmount';
|
|
|
65
67
|
export * from './RuleConditionsEntityCfee';
|
|
66
68
|
export * from './RuleConnectorsEntity';
|
|
67
69
|
export * from './TransactionEntity';
|
|
70
|
+
export * from './TransactionEntity1';
|
|
68
71
|
export * from './TransactionRefundEntity';
|
|
69
72
|
export * from './TransactionRefundsSearchEntity';
|
|
70
73
|
export * from './TransactionsSearchEntity';
|
package/dist/cjs/models/index.js
CHANGED
|
@@ -73,9 +73,11 @@ __exportStar(require("./MetadataRuleConditionEntity"), exports);
|
|
|
73
73
|
__exportStar(require("./PaymentMethodDto"), exports);
|
|
74
74
|
__exportStar(require("./PaymentMethodEntity"), exports);
|
|
75
75
|
__exportStar(require("./PaymentMethodEntity1"), exports);
|
|
76
|
+
__exportStar(require("./PaymentMethodEntity2"), exports);
|
|
76
77
|
__exportStar(require("./PaymentMethodEntityBuyer"), exports);
|
|
77
78
|
__exportStar(require("./PaymentMethodEntityCardDetails"), exports);
|
|
78
79
|
__exportStar(require("./PaymentMethodsSearchEntity"), exports);
|
|
80
|
+
__exportStar(require("./PaymentServiceDetailsEntity"), exports);
|
|
79
81
|
__exportStar(require("./PaymentsBuyerEntity"), exports);
|
|
80
82
|
__exportStar(require("./RefundTransactionDto"), exports);
|
|
81
83
|
__exportStar(require("./RuleConditionsEntity"), exports);
|
|
@@ -83,6 +85,7 @@ __exportStar(require("./RuleConditionsEntityAmount"), exports);
|
|
|
83
85
|
__exportStar(require("./RuleConditionsEntityCfee"), exports);
|
|
84
86
|
__exportStar(require("./RuleConnectorsEntity"), exports);
|
|
85
87
|
__exportStar(require("./TransactionEntity"), exports);
|
|
88
|
+
__exportStar(require("./TransactionEntity1"), exports);
|
|
86
89
|
__exportStar(require("./TransactionRefundEntity"), exports);
|
|
87
90
|
__exportStar(require("./TransactionRefundsSearchEntity"), exports);
|
|
88
91
|
__exportStar(require("./TransactionsSearchEntity"), exports);
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
*/
|
|
7
7
|
import * as runtime from '../runtime';
|
|
8
|
-
import type { BuyerEntity, BuyersSearchEntity, CaptureTransactionDto, CreateBuyerDto, CreatePaymentMethodDto, CreateTransactionDto, MerchantEntity, PaymentMethodEntity, PaymentMethodsSearchEntity, RefundTransactionDto,
|
|
8
|
+
import type { BuyerEntity, BuyersSearchEntity, CaptureTransactionDto, CreateBuyerDto, CreatePaymentMethodDto, CreateTransactionDto, MerchantEntity, PaymentMethodEntity, PaymentMethodsSearchEntity, RefundTransactionDto, TransactionEntity1, TransactionRefundEntity, TransactionRefundsSearchEntity, TransactionsSearchEntity, UpdateBuyerDto } from '../models';
|
|
9
9
|
export interface DeleteBuyerRequest {
|
|
10
10
|
buyerId: string;
|
|
11
11
|
}
|
|
@@ -90,7 +90,7 @@ export declare class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
90
90
|
* Attempts to capture an authorized transaction
|
|
91
91
|
* Capture transaction
|
|
92
92
|
*/
|
|
93
|
-
captureTransaction(requestParameters: CaptureTransactionDto): Promise<
|
|
93
|
+
captureTransaction(requestParameters: CaptureTransactionDto): Promise<TransactionEntity1>;
|
|
94
94
|
/**
|
|
95
95
|
* Creates a new buyer.
|
|
96
96
|
* Create buyer.
|
|
@@ -100,7 +100,7 @@ export declare class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
100
100
|
* Attempts to create a new transaction by specified intent for a given payment method
|
|
101
101
|
* Create transaction
|
|
102
102
|
*/
|
|
103
|
-
createTransaction(requestParameters: CreateTransactionDto): Promise<
|
|
103
|
+
createTransaction(requestParameters: CreateTransactionDto): Promise<TransactionEntity1>;
|
|
104
104
|
/**
|
|
105
105
|
* Removes a buyer ID.
|
|
106
106
|
* Remove buyer.
|
|
@@ -140,7 +140,7 @@ export declare class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
140
140
|
* Attempts to find a transaction by ID
|
|
141
141
|
* Find transaction
|
|
142
142
|
*/
|
|
143
|
-
getTransaction(requestParameters: GetTransactionRequest): Promise<
|
|
143
|
+
getTransaction(requestParameters: GetTransactionRequest): Promise<TransactionEntity1>;
|
|
144
144
|
/**
|
|
145
145
|
* Attempts to refund a captured transaction
|
|
146
146
|
* Refund a transaction
|
|
@@ -180,7 +180,7 @@ export declare class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
180
180
|
* Attempts to void an authorized transaction
|
|
181
181
|
* Void a transaction
|
|
182
182
|
*/
|
|
183
|
-
voidTransaction(requestParameters: VoidTransactionRequest): Promise<
|
|
183
|
+
voidTransaction(requestParameters: VoidTransactionRequest): Promise<TransactionEntity1>;
|
|
184
184
|
}
|
|
185
185
|
/**
|
|
186
186
|
* @export
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
*/
|
|
9
9
|
import * as runtime from '../runtime';
|
|
10
|
-
import { BuyerEntityFromJSON, BuyersSearchEntityFromJSON, CaptureTransactionDtoToJSON, CreateBuyerDtoToJSON, CreatePaymentMethodDtoToJSON, CreateTransactionDtoToJSON, ErrorEntityFromJSON, MerchantEntityFromJSON, PaymentMethodEntityFromJSON, PaymentMethodsSearchEntityFromJSON, RefundTransactionDtoToJSON,
|
|
10
|
+
import { BuyerEntityFromJSON, BuyersSearchEntityFromJSON, CaptureTransactionDtoToJSON, CreateBuyerDtoToJSON, CreatePaymentMethodDtoToJSON, CreateTransactionDtoToJSON, ErrorEntityFromJSON, MerchantEntityFromJSON, PaymentMethodEntityFromJSON, PaymentMethodsSearchEntityFromJSON, RefundTransactionDtoToJSON, TransactionEntity1FromJSON, TransactionRefundEntityFromJSON, TransactionRefundsSearchEntityFromJSON, TransactionsSearchEntityFromJSON, UpdateBuyerDtoToJSON, } from '../models';
|
|
11
11
|
/**
|
|
12
12
|
*
|
|
13
13
|
*/
|
|
@@ -35,7 +35,7 @@ export class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
35
35
|
});
|
|
36
36
|
let response;
|
|
37
37
|
if (rawResponse.status === 201) {
|
|
38
|
-
response = new runtime.JSONApiResponse(rawResponse, (jsonValue) =>
|
|
38
|
+
response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => TransactionEntity1FromJSON(jsonValue));
|
|
39
39
|
}
|
|
40
40
|
if (rawResponse.status === 400) {
|
|
41
41
|
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
|
|
@@ -144,7 +144,7 @@ export class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
144
144
|
});
|
|
145
145
|
let response;
|
|
146
146
|
if (rawResponse.status === 201) {
|
|
147
|
-
response = new runtime.JSONApiResponse(rawResponse, (jsonValue) =>
|
|
147
|
+
response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => TransactionEntity1FromJSON(jsonValue));
|
|
148
148
|
}
|
|
149
149
|
if (rawResponse.status === 400) {
|
|
150
150
|
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
|
|
@@ -483,7 +483,7 @@ export class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
483
483
|
});
|
|
484
484
|
let response;
|
|
485
485
|
if (rawResponse.status === 200) {
|
|
486
|
-
response = new runtime.JSONApiResponse(rawResponse, (jsonValue) =>
|
|
486
|
+
response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => TransactionEntity1FromJSON(jsonValue));
|
|
487
487
|
}
|
|
488
488
|
if (rawResponse.status === 400) {
|
|
489
489
|
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
|
|
@@ -991,7 +991,7 @@ export class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
991
991
|
});
|
|
992
992
|
let response;
|
|
993
993
|
if (rawResponse.status === 201) {
|
|
994
|
-
response = new runtime.JSONApiResponse(rawResponse, (jsonValue) =>
|
|
994
|
+
response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => TransactionEntity1FromJSON(jsonValue));
|
|
995
995
|
}
|
|
996
996
|
if (rawResponse.status === 400) {
|
|
997
997
|
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
|
|
@@ -21,13 +21,13 @@ export interface PaymentMethodEntity1 {
|
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof PaymentMethodEntity1
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
paymentMethod: string;
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
* @type {string}
|
|
28
28
|
* @memberof PaymentMethodEntity1
|
|
29
29
|
*/
|
|
30
|
-
|
|
30
|
+
issuedPaymentMethodId?: string;
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
33
|
* @type {string}
|
|
@@ -70,38 +70,14 @@ export interface PaymentMethodEntity1 {
|
|
|
70
70
|
* @memberof PaymentMethodEntity1
|
|
71
71
|
*/
|
|
72
72
|
cardType?: PaymentMethodEntity1CardTypeEnum;
|
|
73
|
-
/**
|
|
74
|
-
*
|
|
75
|
-
* @type {string}
|
|
76
|
-
* @memberof PaymentMethodEntity1
|
|
77
|
-
*/
|
|
78
|
-
accountName?: string;
|
|
79
|
-
/**
|
|
80
|
-
*
|
|
81
|
-
* @type {string}
|
|
82
|
-
* @memberof PaymentMethodEntity1
|
|
83
|
-
*/
|
|
84
|
-
accountNumber?: string;
|
|
85
|
-
/**
|
|
86
|
-
*
|
|
87
|
-
* @type {string}
|
|
88
|
-
* @memberof PaymentMethodEntity1
|
|
89
|
-
*/
|
|
90
|
-
accountType?: string;
|
|
91
|
-
/**
|
|
92
|
-
*
|
|
93
|
-
* @type {string}
|
|
94
|
-
* @memberof PaymentMethodEntity1
|
|
95
|
-
*/
|
|
96
|
-
aBANumber?: string;
|
|
97
73
|
}
|
|
98
74
|
/**
|
|
99
75
|
* @export
|
|
100
76
|
*/
|
|
101
77
|
export declare const PaymentMethodEntity1CardTypeEnum: {
|
|
102
|
-
readonly Credit: "
|
|
103
|
-
readonly Debit: "
|
|
104
|
-
readonly Prepaid: "
|
|
78
|
+
readonly Credit: "credit";
|
|
79
|
+
readonly Debit: "debit";
|
|
80
|
+
readonly Prepaid: "prepaid";
|
|
105
81
|
};
|
|
106
82
|
export type PaymentMethodEntity1CardTypeEnum = typeof PaymentMethodEntity1CardTypeEnum[keyof typeof PaymentMethodEntity1CardTypeEnum];
|
|
107
83
|
/**
|
|
@@ -11,9 +11,9 @@ import { exists, removeNullUndefined } from '../runtime';
|
|
|
11
11
|
* @export
|
|
12
12
|
*/
|
|
13
13
|
export const PaymentMethodEntity1CardTypeEnum = {
|
|
14
|
-
Credit: '
|
|
15
|
-
Debit: '
|
|
16
|
-
Prepaid: '
|
|
14
|
+
Credit: 'credit',
|
|
15
|
+
Debit: 'debit',
|
|
16
|
+
Prepaid: 'prepaid'
|
|
17
17
|
};
|
|
18
18
|
/**
|
|
19
19
|
* Check if a given object implements the PaymentMethodEntity1 interface.
|
|
@@ -21,7 +21,7 @@ export const PaymentMethodEntity1CardTypeEnum = {
|
|
|
21
21
|
export function instanceOfPaymentMethodEntity1(value) {
|
|
22
22
|
let isInstance = true;
|
|
23
23
|
isInstance = isInstance && "paymentMethodId" in value;
|
|
24
|
-
isInstance = isInstance && "
|
|
24
|
+
isInstance = isInstance && "paymentMethod" in value;
|
|
25
25
|
return isInstance;
|
|
26
26
|
}
|
|
27
27
|
export function PaymentMethodEntity1FromJSON(json) {
|
|
@@ -33,8 +33,8 @@ export function PaymentMethodEntity1FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
33
|
}
|
|
34
34
|
const typed = {
|
|
35
35
|
'paymentMethodId': json['paymentMethodId'],
|
|
36
|
-
'
|
|
37
|
-
'
|
|
36
|
+
'paymentMethod': json['paymentMethod'],
|
|
37
|
+
'issuedPaymentMethodId': !exists(json, 'issuedPaymentMethodId') ? undefined : json['issuedPaymentMethodId'],
|
|
38
38
|
'label': !exists(json, 'label') ? undefined : json['label'],
|
|
39
39
|
'scheme': !exists(json, 'scheme') ? undefined : json['scheme'],
|
|
40
40
|
'expirationDate': !exists(json, 'expirationDate') ? undefined : json['expirationDate'],
|
|
@@ -42,10 +42,6 @@ export function PaymentMethodEntity1FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
42
|
'country': !exists(json, 'country') ? undefined : json['country'],
|
|
43
43
|
'bin': !exists(json, 'bin') ? undefined : json['bin'],
|
|
44
44
|
'cardType': !exists(json, 'cardType') ? undefined : json['cardType'],
|
|
45
|
-
'accountName': !exists(json, 'accountName') ? undefined : json['accountName'],
|
|
46
|
-
'accountNumber': !exists(json, 'accountNumber') ? undefined : json['accountNumber'],
|
|
47
|
-
'accountType': !exists(json, 'accountType') ? undefined : json['accountType'],
|
|
48
|
-
'aBANumber': !exists(json, 'ABANumber') ? undefined : json['ABANumber'],
|
|
49
45
|
};
|
|
50
46
|
return removeNullUndefined(typed);
|
|
51
47
|
}
|
|
@@ -58,8 +54,8 @@ export function PaymentMethodEntity1ToJSON(value) {
|
|
|
58
54
|
}
|
|
59
55
|
return {
|
|
60
56
|
'paymentMethodId': value.paymentMethodId,
|
|
61
|
-
'
|
|
62
|
-
'
|
|
57
|
+
'paymentMethod': value.paymentMethod,
|
|
58
|
+
'issuedPaymentMethodId': value.issuedPaymentMethodId,
|
|
63
59
|
'label': value.label,
|
|
64
60
|
'scheme': value.scheme,
|
|
65
61
|
'expirationDate': value.expirationDate,
|
|
@@ -67,9 +63,5 @@ export function PaymentMethodEntity1ToJSON(value) {
|
|
|
67
63
|
'country': value.country,
|
|
68
64
|
'bin': value.bin,
|
|
69
65
|
'cardType': value.cardType,
|
|
70
|
-
'accountName': value.accountName,
|
|
71
|
-
'accountNumber': value.accountNumber,
|
|
72
|
-
'accountType': value.accountType,
|
|
73
|
-
'ABANumber': value.aBANumber,
|
|
74
66
|
};
|
|
75
67
|
}
|
|
@@ -0,0 +1,113 @@
|
|
|
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 PaymentMethodEntity2
|
|
11
|
+
*/
|
|
12
|
+
export interface PaymentMethodEntity2 {
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof PaymentMethodEntity2
|
|
17
|
+
*/
|
|
18
|
+
paymentMethodId: string;
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof PaymentMethodEntity2
|
|
23
|
+
*/
|
|
24
|
+
method: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof PaymentMethodEntity2
|
|
29
|
+
*/
|
|
30
|
+
externalPaymentMethodId?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof PaymentMethodEntity2
|
|
35
|
+
*/
|
|
36
|
+
label?: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof PaymentMethodEntity2
|
|
41
|
+
*/
|
|
42
|
+
scheme?: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof PaymentMethodEntity2
|
|
47
|
+
*/
|
|
48
|
+
expirationDate?: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof PaymentMethodEntity2
|
|
53
|
+
*/
|
|
54
|
+
currency?: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof PaymentMethodEntity2
|
|
59
|
+
*/
|
|
60
|
+
country?: string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof PaymentMethodEntity2
|
|
65
|
+
*/
|
|
66
|
+
bin?: string;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof PaymentMethodEntity2
|
|
71
|
+
*/
|
|
72
|
+
cardType?: PaymentMethodEntity2CardTypeEnum;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof PaymentMethodEntity2
|
|
77
|
+
*/
|
|
78
|
+
accountName?: string;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof PaymentMethodEntity2
|
|
83
|
+
*/
|
|
84
|
+
accountNumber?: string;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof PaymentMethodEntity2
|
|
89
|
+
*/
|
|
90
|
+
accountType?: string;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @memberof PaymentMethodEntity2
|
|
95
|
+
*/
|
|
96
|
+
aBANumber?: string;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* @export
|
|
100
|
+
*/
|
|
101
|
+
export declare const PaymentMethodEntity2CardTypeEnum: {
|
|
102
|
+
readonly Credit: "CREDIT";
|
|
103
|
+
readonly Debit: "DEBIT";
|
|
104
|
+
readonly Prepaid: "PREPAID";
|
|
105
|
+
};
|
|
106
|
+
export type PaymentMethodEntity2CardTypeEnum = typeof PaymentMethodEntity2CardTypeEnum[keyof typeof PaymentMethodEntity2CardTypeEnum];
|
|
107
|
+
/**
|
|
108
|
+
* Check if a given object implements the PaymentMethodEntity2 interface.
|
|
109
|
+
*/
|
|
110
|
+
export declare function instanceOfPaymentMethodEntity2(value: object): boolean;
|
|
111
|
+
export declare function PaymentMethodEntity2FromJSON(json: any): PaymentMethodEntity2;
|
|
112
|
+
export declare function PaymentMethodEntity2FromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentMethodEntity2;
|
|
113
|
+
export declare function PaymentMethodEntity2ToJSON(value?: PaymentMethodEntity2 | null): any;
|
|
@@ -0,0 +1,75 @@
|
|
|
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
|
+
* @export
|
|
12
|
+
*/
|
|
13
|
+
export const PaymentMethodEntity2CardTypeEnum = {
|
|
14
|
+
Credit: 'CREDIT',
|
|
15
|
+
Debit: 'DEBIT',
|
|
16
|
+
Prepaid: 'PREPAID'
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the PaymentMethodEntity2 interface.
|
|
20
|
+
*/
|
|
21
|
+
export function instanceOfPaymentMethodEntity2(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "paymentMethodId" in value;
|
|
24
|
+
isInstance = isInstance && "method" in value;
|
|
25
|
+
return isInstance;
|
|
26
|
+
}
|
|
27
|
+
export function PaymentMethodEntity2FromJSON(json) {
|
|
28
|
+
return PaymentMethodEntity2FromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function PaymentMethodEntity2FromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
const typed = {
|
|
35
|
+
'paymentMethodId': json['paymentMethodId'],
|
|
36
|
+
'method': json['method'],
|
|
37
|
+
'externalPaymentMethodId': !exists(json, 'externalPaymentMethodId') ? undefined : json['externalPaymentMethodId'],
|
|
38
|
+
'label': !exists(json, 'label') ? undefined : json['label'],
|
|
39
|
+
'scheme': !exists(json, 'scheme') ? undefined : json['scheme'],
|
|
40
|
+
'expirationDate': !exists(json, 'expirationDate') ? undefined : json['expirationDate'],
|
|
41
|
+
'currency': !exists(json, 'currency') ? undefined : json['currency'],
|
|
42
|
+
'country': !exists(json, 'country') ? undefined : json['country'],
|
|
43
|
+
'bin': !exists(json, 'bin') ? undefined : json['bin'],
|
|
44
|
+
'cardType': !exists(json, 'cardType') ? undefined : json['cardType'],
|
|
45
|
+
'accountName': !exists(json, 'accountName') ? undefined : json['accountName'],
|
|
46
|
+
'accountNumber': !exists(json, 'accountNumber') ? undefined : json['accountNumber'],
|
|
47
|
+
'accountType': !exists(json, 'accountType') ? undefined : json['accountType'],
|
|
48
|
+
'aBANumber': !exists(json, 'ABANumber') ? undefined : json['ABANumber'],
|
|
49
|
+
};
|
|
50
|
+
return removeNullUndefined(typed);
|
|
51
|
+
}
|
|
52
|
+
export function PaymentMethodEntity2ToJSON(value) {
|
|
53
|
+
if (value === undefined) {
|
|
54
|
+
return undefined;
|
|
55
|
+
}
|
|
56
|
+
if (value === null) {
|
|
57
|
+
return null;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'paymentMethodId': value.paymentMethodId,
|
|
61
|
+
'method': value.method,
|
|
62
|
+
'externalPaymentMethodId': value.externalPaymentMethodId,
|
|
63
|
+
'label': value.label,
|
|
64
|
+
'scheme': value.scheme,
|
|
65
|
+
'expirationDate': value.expirationDate,
|
|
66
|
+
'currency': value.currency,
|
|
67
|
+
'country': value.country,
|
|
68
|
+
'bin': value.bin,
|
|
69
|
+
'cardType': value.cardType,
|
|
70
|
+
'accountName': value.accountName,
|
|
71
|
+
'accountNumber': value.accountNumber,
|
|
72
|
+
'accountType': value.accountType,
|
|
73
|
+
'ABANumber': value.aBANumber,
|
|
74
|
+
};
|
|
75
|
+
}
|