@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
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
*/
|
|
7
7
|
import type { PaymentMethodEntity1 } from './PaymentMethodEntity1';
|
|
8
|
-
import type {
|
|
8
|
+
import type { PaymentServiceDetailsEntity } from './PaymentServiceDetailsEntity';
|
|
9
9
|
/**
|
|
10
10
|
*
|
|
11
11
|
* @export
|
|
@@ -17,7 +17,7 @@ export interface TransactionEntity {
|
|
|
17
17
|
* @type {string}
|
|
18
18
|
* @memberof TransactionEntity
|
|
19
19
|
*/
|
|
20
|
-
|
|
20
|
+
transactionRecordId: string;
|
|
21
21
|
/**
|
|
22
22
|
*
|
|
23
23
|
* @type {string}
|
|
@@ -29,43 +29,19 @@ export interface TransactionEntity {
|
|
|
29
29
|
* @type {string}
|
|
30
30
|
* @memberof TransactionEntity
|
|
31
31
|
*/
|
|
32
|
-
|
|
32
|
+
status?: TransactionEntityStatusEnum;
|
|
33
33
|
/**
|
|
34
34
|
*
|
|
35
35
|
* @type {string}
|
|
36
36
|
* @memberof TransactionEntity
|
|
37
37
|
*/
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
*
|
|
41
|
-
* @type {string}
|
|
42
|
-
* @memberof TransactionEntity
|
|
43
|
-
*/
|
|
44
|
-
intent: TransactionEntityIntentEnum;
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @type {number}
|
|
48
|
-
* @memberof TransactionEntity
|
|
49
|
-
*/
|
|
50
|
-
amount: number;
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
* @type {number}
|
|
54
|
-
* @memberof TransactionEntity
|
|
55
|
-
*/
|
|
56
|
-
netAmount: number;
|
|
38
|
+
intent?: TransactionEntityIntentEnum;
|
|
57
39
|
/**
|
|
58
40
|
*
|
|
59
41
|
* @type {number}
|
|
60
42
|
* @memberof TransactionEntity
|
|
61
43
|
*/
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
*
|
|
65
|
-
* @type {Array<object>}
|
|
66
|
-
* @memberof TransactionEntity
|
|
67
|
-
*/
|
|
68
|
-
feeDetails?: Array<object>;
|
|
44
|
+
amount?: number;
|
|
69
45
|
/**
|
|
70
46
|
*
|
|
71
47
|
* @type {number}
|
|
@@ -98,28 +74,28 @@ export interface TransactionEntity {
|
|
|
98
74
|
paymentMethod?: PaymentMethodEntity1;
|
|
99
75
|
/**
|
|
100
76
|
*
|
|
101
|
-
* @type {
|
|
77
|
+
* @type {string}
|
|
102
78
|
* @memberof TransactionEntity
|
|
103
79
|
*/
|
|
104
|
-
|
|
80
|
+
buyerId?: string;
|
|
105
81
|
/**
|
|
106
82
|
*
|
|
107
|
-
* @type {
|
|
83
|
+
* @type {Date}
|
|
108
84
|
* @memberof TransactionEntity
|
|
109
85
|
*/
|
|
110
|
-
|
|
86
|
+
transactionCreatedAt?: Date;
|
|
111
87
|
/**
|
|
112
88
|
*
|
|
113
89
|
* @type {Date}
|
|
114
90
|
* @memberof TransactionEntity
|
|
115
91
|
*/
|
|
116
|
-
|
|
92
|
+
transactionUpdatedAt?: Date;
|
|
117
93
|
/**
|
|
118
94
|
*
|
|
119
|
-
* @type {
|
|
95
|
+
* @type {PaymentServiceDetailsEntity}
|
|
120
96
|
* @memberof TransactionEntity
|
|
121
97
|
*/
|
|
122
|
-
|
|
98
|
+
paymentServiceDetails?: PaymentServiceDetailsEntity;
|
|
123
99
|
/**
|
|
124
100
|
*
|
|
125
101
|
* @type {boolean}
|
|
@@ -137,7 +113,7 @@ export interface TransactionEntity {
|
|
|
137
113
|
* @type {string}
|
|
138
114
|
* @memberof TransactionEntity
|
|
139
115
|
*/
|
|
140
|
-
|
|
116
|
+
rawResponse?: string;
|
|
141
117
|
/**
|
|
142
118
|
*
|
|
143
119
|
* @type {string}
|
|
@@ -149,49 +125,37 @@ export interface TransactionEntity {
|
|
|
149
125
|
* @type {string}
|
|
150
126
|
* @memberof TransactionEntity
|
|
151
127
|
*/
|
|
152
|
-
|
|
128
|
+
avsResponse?: string;
|
|
153
129
|
/**
|
|
154
130
|
*
|
|
155
131
|
* @type {string}
|
|
156
132
|
* @memberof TransactionEntity
|
|
157
133
|
*/
|
|
158
|
-
|
|
134
|
+
cvvResponse?: string;
|
|
159
135
|
/**
|
|
160
136
|
*
|
|
161
|
-
* @type {
|
|
137
|
+
* @type {object}
|
|
162
138
|
* @memberof TransactionEntity
|
|
163
139
|
*/
|
|
164
|
-
|
|
140
|
+
metadata?: object;
|
|
165
141
|
/**
|
|
166
142
|
*
|
|
167
143
|
* @type {Date}
|
|
168
144
|
* @memberof TransactionEntity
|
|
169
145
|
*/
|
|
170
|
-
|
|
146
|
+
capturedAt?: Date;
|
|
171
147
|
/**
|
|
172
148
|
*
|
|
173
149
|
* @type {Date}
|
|
174
150
|
* @memberof TransactionEntity
|
|
175
151
|
*/
|
|
176
|
-
|
|
177
|
-
/**
|
|
178
|
-
*
|
|
179
|
-
* @type {string}
|
|
180
|
-
* @memberof TransactionEntity
|
|
181
|
-
*/
|
|
182
|
-
externalTransactionId?: string;
|
|
183
|
-
/**
|
|
184
|
-
*
|
|
185
|
-
* @type {string}
|
|
186
|
-
* @memberof TransactionEntity
|
|
187
|
-
*/
|
|
188
|
-
buyerId?: string;
|
|
152
|
+
authorizedAt?: Date;
|
|
189
153
|
/**
|
|
190
154
|
*
|
|
191
|
-
* @type {
|
|
155
|
+
* @type {Date}
|
|
192
156
|
* @memberof TransactionEntity
|
|
193
157
|
*/
|
|
194
|
-
|
|
158
|
+
voidedAt?: Date;
|
|
195
159
|
}
|
|
196
160
|
/**
|
|
197
161
|
* @export
|
|
@@ -199,18 +163,13 @@ export interface TransactionEntity {
|
|
|
199
163
|
export declare const TransactionEntityStatusEnum: {
|
|
200
164
|
readonly Processing: "processing";
|
|
201
165
|
readonly BuyerApprovalPending: "buyerApprovalPending";
|
|
202
|
-
readonly
|
|
166
|
+
readonly AuthorizationSucceeded: "authorizationSucceeded";
|
|
203
167
|
readonly AuthorizationFailed: "authorizationFailed";
|
|
204
|
-
readonly
|
|
168
|
+
readonly AuthorizationDeclined: "authorizationDeclined";
|
|
205
169
|
readonly CapturePending: "capturePending";
|
|
206
|
-
readonly
|
|
207
|
-
readonly
|
|
208
|
-
readonly
|
|
209
|
-
readonly Held: "held";
|
|
210
|
-
readonly Submitted: "submitted";
|
|
211
|
-
readonly Transmitted: "transmitted";
|
|
212
|
-
readonly Settled: "settled";
|
|
213
|
-
readonly Returned: "returned";
|
|
170
|
+
readonly CaptureSucceeded: "captureSucceeded";
|
|
171
|
+
readonly AuthorizationVoidPending: "authorizationVoidPending";
|
|
172
|
+
readonly AuthorizationVoided: "authorizationVoided";
|
|
214
173
|
};
|
|
215
174
|
export type TransactionEntityStatusEnum = typeof TransactionEntityStatusEnum[keyof typeof TransactionEntityStatusEnum];
|
|
216
175
|
/**
|
|
@@ -219,8 +178,6 @@ export type TransactionEntityStatusEnum = typeof TransactionEntityStatusEnum[key
|
|
|
219
178
|
export declare const TransactionEntityIntentEnum: {
|
|
220
179
|
readonly Capture: "capture";
|
|
221
180
|
readonly Authorize: "authorize";
|
|
222
|
-
readonly Debit: "debit";
|
|
223
|
-
readonly Credit: "credit";
|
|
224
181
|
};
|
|
225
182
|
export type TransactionEntityIntentEnum = typeof TransactionEntityIntentEnum[keyof typeof TransactionEntityIntentEnum];
|
|
226
183
|
/**
|
|
@@ -11,34 +11,27 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
11
11
|
exports.TransactionEntityToJSON = exports.TransactionEntityFromJSONTyped = exports.TransactionEntityFromJSON = exports.instanceOfTransactionEntity = exports.TransactionEntityCurrencyEnum = exports.TransactionEntityIntentEnum = exports.TransactionEntityStatusEnum = void 0;
|
|
12
12
|
const runtime_1 = require("../runtime");
|
|
13
13
|
const PaymentMethodEntity1_1 = require("./PaymentMethodEntity1");
|
|
14
|
-
const
|
|
14
|
+
const PaymentServiceDetailsEntity_1 = require("./PaymentServiceDetailsEntity");
|
|
15
15
|
/**
|
|
16
16
|
* @export
|
|
17
17
|
*/
|
|
18
18
|
exports.TransactionEntityStatusEnum = {
|
|
19
19
|
Processing: 'processing',
|
|
20
20
|
BuyerApprovalPending: 'buyerApprovalPending',
|
|
21
|
-
|
|
21
|
+
AuthorizationSucceeded: 'authorizationSucceeded',
|
|
22
22
|
AuthorizationFailed: 'authorizationFailed',
|
|
23
|
-
|
|
23
|
+
AuthorizationDeclined: 'authorizationDeclined',
|
|
24
24
|
CapturePending: 'capturePending',
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
Held: 'held',
|
|
29
|
-
Submitted: 'submitted',
|
|
30
|
-
Transmitted: 'transmitted',
|
|
31
|
-
Settled: 'settled',
|
|
32
|
-
Returned: 'returned'
|
|
25
|
+
CaptureSucceeded: 'captureSucceeded',
|
|
26
|
+
AuthorizationVoidPending: 'authorizationVoidPending',
|
|
27
|
+
AuthorizationVoided: 'authorizationVoided'
|
|
33
28
|
};
|
|
34
29
|
/**
|
|
35
30
|
* @export
|
|
36
31
|
*/
|
|
37
32
|
exports.TransactionEntityIntentEnum = {
|
|
38
33
|
Capture: 'capture',
|
|
39
|
-
Authorize: 'authorize'
|
|
40
|
-
Debit: 'debit',
|
|
41
|
-
Credit: 'credit'
|
|
34
|
+
Authorize: 'authorize'
|
|
42
35
|
};
|
|
43
36
|
/**
|
|
44
37
|
* @export
|
|
@@ -53,14 +46,8 @@ exports.TransactionEntityCurrencyEnum = {
|
|
|
53
46
|
*/
|
|
54
47
|
function instanceOfTransactionEntity(value) {
|
|
55
48
|
let isInstance = true;
|
|
56
|
-
isInstance = isInstance && "
|
|
49
|
+
isInstance = isInstance && "transactionRecordId" in value;
|
|
57
50
|
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
51
|
return isInstance;
|
|
65
52
|
}
|
|
66
53
|
exports.instanceOfTransactionEntity = instanceOfTransactionEntity;
|
|
@@ -73,36 +60,30 @@ function TransactionEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
73
60
|
return json;
|
|
74
61
|
}
|
|
75
62
|
const typed = {
|
|
76
|
-
'
|
|
63
|
+
'transactionRecordId': json['transactionRecordId'],
|
|
77
64
|
'transactionId': json['transactionId'],
|
|
78
|
-
'
|
|
79
|
-
'
|
|
80
|
-
'
|
|
81
|
-
'amount': json['amount'],
|
|
82
|
-
'netAmount': json['netAmount'],
|
|
83
|
-
'fee': json['fee'],
|
|
84
|
-
'feeDetails': !(0, runtime_1.exists)(json, 'feeDetails') ? undefined : json['feeDetails'],
|
|
65
|
+
'status': !(0, runtime_1.exists)(json, 'status') ? undefined : json['status'],
|
|
66
|
+
'intent': !(0, runtime_1.exists)(json, 'intent') ? undefined : json['intent'],
|
|
67
|
+
'amount': !(0, runtime_1.exists)(json, 'amount') ? undefined : json['amount'],
|
|
85
68
|
'capturedAmount': !(0, runtime_1.exists)(json, 'capturedAmount') ? undefined : json['capturedAmount'],
|
|
86
69
|
'refundedAmount': !(0, runtime_1.exists)(json, 'refundedAmount') ? undefined : json['refundedAmount'],
|
|
87
70
|
'currency': !(0, runtime_1.exists)(json, 'currency') ? undefined : json['currency'],
|
|
88
71
|
'country': !(0, runtime_1.exists)(json, 'country') ? undefined : json['country'],
|
|
89
72
|
'paymentMethod': !(0, runtime_1.exists)(json, 'paymentMethod') ? undefined : (0, PaymentMethodEntity1_1.PaymentMethodEntity1FromJSON)(json['paymentMethod']),
|
|
90
|
-
'
|
|
91
|
-
'
|
|
92
|
-
'
|
|
93
|
-
'
|
|
73
|
+
'buyerId': !(0, runtime_1.exists)(json, 'buyerId') ? undefined : json['buyerId'],
|
|
74
|
+
'transactionCreatedAt': !(0, runtime_1.exists)(json, 'transactionCreatedAt') ? undefined : (new Date(json['transactionCreatedAt'])),
|
|
75
|
+
'transactionUpdatedAt': !(0, runtime_1.exists)(json, 'transactionUpdatedAt') ? undefined : (new Date(json['transactionUpdatedAt'])),
|
|
76
|
+
'paymentServiceDetails': !(0, runtime_1.exists)(json, 'paymentServiceDetails') ? undefined : (0, PaymentServiceDetailsEntity_1.PaymentServiceDetailsEntityFromJSON)(json['paymentServiceDetails']),
|
|
94
77
|
'merchantInitiated': !(0, runtime_1.exists)(json, 'merchantInitiated') ? undefined : json['merchantInitiated'],
|
|
95
78
|
'schemeTransactionId': !(0, runtime_1.exists)(json, 'schemeTransactionId') ? undefined : json['schemeTransactionId'],
|
|
96
|
-
'
|
|
79
|
+
'rawResponse': !(0, runtime_1.exists)(json, 'rawResponse') ? undefined : json['rawResponse'],
|
|
97
80
|
'rawResponseDescription': !(0, runtime_1.exists)(json, 'rawResponseDescription') ? undefined : json['rawResponseDescription'],
|
|
98
|
-
'
|
|
99
|
-
'
|
|
81
|
+
'avsResponse': !(0, runtime_1.exists)(json, 'avsResponse') ? undefined : json['avsResponse'],
|
|
82
|
+
'cvvResponse': !(0, runtime_1.exists)(json, 'cvvResponse') ? undefined : json['cvvResponse'],
|
|
83
|
+
'metadata': !(0, runtime_1.exists)(json, 'metadata') ? undefined : json['metadata'],
|
|
100
84
|
'capturedAt': !(0, runtime_1.exists)(json, 'capturedAt') ? undefined : (new Date(json['capturedAt'])),
|
|
101
85
|
'authorizedAt': !(0, runtime_1.exists)(json, 'authorizedAt') ? undefined : (new Date(json['authorizedAt'])),
|
|
102
86
|
'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
87
|
};
|
|
107
88
|
return (0, runtime_1.removeNullUndefined)(typed);
|
|
108
89
|
}
|
|
@@ -115,36 +96,30 @@ function TransactionEntityToJSON(value) {
|
|
|
115
96
|
return null;
|
|
116
97
|
}
|
|
117
98
|
return {
|
|
118
|
-
'
|
|
99
|
+
'transactionRecordId': value.transactionRecordId,
|
|
119
100
|
'transactionId': value.transactionId,
|
|
120
|
-
'merchantId': value.merchantId,
|
|
121
101
|
'status': value.status,
|
|
122
102
|
'intent': value.intent,
|
|
123
103
|
'amount': value.amount,
|
|
124
|
-
'netAmount': value.netAmount,
|
|
125
|
-
'fee': value.fee,
|
|
126
|
-
'feeDetails': value.feeDetails,
|
|
127
104
|
'capturedAmount': value.capturedAmount,
|
|
128
105
|
'refundedAmount': value.refundedAmount,
|
|
129
106
|
'currency': value.currency,
|
|
130
107
|
'country': value.country,
|
|
131
108
|
'paymentMethod': (0, PaymentMethodEntity1_1.PaymentMethodEntity1ToJSON)(value.paymentMethod),
|
|
132
|
-
'
|
|
133
|
-
'
|
|
134
|
-
'
|
|
135
|
-
'
|
|
109
|
+
'buyerId': value.buyerId,
|
|
110
|
+
'transactionCreatedAt': value.transactionCreatedAt === undefined ? undefined : (value.transactionCreatedAt.toISOString()),
|
|
111
|
+
'transactionUpdatedAt': value.transactionUpdatedAt === undefined ? undefined : (value.transactionUpdatedAt.toISOString()),
|
|
112
|
+
'paymentServiceDetails': (0, PaymentServiceDetailsEntity_1.PaymentServiceDetailsEntityToJSON)(value.paymentServiceDetails),
|
|
136
113
|
'merchantInitiated': value.merchantInitiated,
|
|
137
114
|
'schemeTransactionId': value.schemeTransactionId,
|
|
138
|
-
'
|
|
115
|
+
'rawResponse': value.rawResponse,
|
|
139
116
|
'rawResponseDescription': value.rawResponseDescription,
|
|
140
|
-
'
|
|
141
|
-
'
|
|
117
|
+
'avsResponse': value.avsResponse,
|
|
118
|
+
'cvvResponse': value.cvvResponse,
|
|
119
|
+
'metadata': value.metadata,
|
|
142
120
|
'capturedAt': value.capturedAt === undefined ? undefined : (value.capturedAt.toISOString()),
|
|
143
121
|
'authorizedAt': value.authorizedAt === undefined ? undefined : (value.authorizedAt.toISOString()),
|
|
144
122
|
'voidedAt': value.voidedAt === undefined ? undefined : (value.voidedAt.toISOString()),
|
|
145
|
-
'externalTransactionId': value.externalTransactionId,
|
|
146
|
-
'buyerId': value.buyerId,
|
|
147
|
-
'SECCode': value.sECCode,
|
|
148
123
|
};
|
|
149
124
|
}
|
|
150
125
|
exports.TransactionEntityToJSON = TransactionEntityToJSON;
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Channel Payments API
|
|
3
|
+
*
|
|
4
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
import type { PaymentMethodEntity2 } from './PaymentMethodEntity2';
|
|
8
|
+
import type { PaymentsBuyerEntity } from './PaymentsBuyerEntity';
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* @export
|
|
12
|
+
* @interface TransactionEntity1
|
|
13
|
+
*/
|
|
14
|
+
export interface TransactionEntity1 {
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @type {string}
|
|
18
|
+
* @memberof TransactionEntity1
|
|
19
|
+
*/
|
|
20
|
+
transactionIntegrationId: string;
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof TransactionEntity1
|
|
25
|
+
*/
|
|
26
|
+
transactionId: string;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof TransactionEntity1
|
|
31
|
+
*/
|
|
32
|
+
merchantId: string;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof TransactionEntity1
|
|
37
|
+
*/
|
|
38
|
+
status: TransactionEntity1StatusEnum;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @memberof TransactionEntity1
|
|
43
|
+
*/
|
|
44
|
+
intent: TransactionEntity1IntentEnum;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {number}
|
|
48
|
+
* @memberof TransactionEntity1
|
|
49
|
+
*/
|
|
50
|
+
amount: number;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {number}
|
|
54
|
+
* @memberof TransactionEntity1
|
|
55
|
+
*/
|
|
56
|
+
netAmount: number;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {number}
|
|
60
|
+
* @memberof TransactionEntity1
|
|
61
|
+
*/
|
|
62
|
+
fee: number;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {Array<object>}
|
|
66
|
+
* @memberof TransactionEntity1
|
|
67
|
+
*/
|
|
68
|
+
feeDetails?: Array<object>;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {number}
|
|
72
|
+
* @memberof TransactionEntity1
|
|
73
|
+
*/
|
|
74
|
+
capturedAmount?: number;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {number}
|
|
78
|
+
* @memberof TransactionEntity1
|
|
79
|
+
*/
|
|
80
|
+
refundedAmount?: number;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @type {string}
|
|
84
|
+
* @memberof TransactionEntity1
|
|
85
|
+
*/
|
|
86
|
+
currency?: TransactionEntity1CurrencyEnum;
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @type {string}
|
|
90
|
+
* @memberof TransactionEntity1
|
|
91
|
+
*/
|
|
92
|
+
country?: string;
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* @type {PaymentMethodEntity2}
|
|
96
|
+
* @memberof TransactionEntity1
|
|
97
|
+
*/
|
|
98
|
+
paymentMethod?: PaymentMethodEntity2;
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @type {PaymentsBuyerEntity}
|
|
102
|
+
* @memberof TransactionEntity1
|
|
103
|
+
*/
|
|
104
|
+
buyer?: PaymentsBuyerEntity;
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
* @type {string}
|
|
108
|
+
* @memberof TransactionEntity1
|
|
109
|
+
*/
|
|
110
|
+
externalBuyerId?: string;
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
* @type {Date}
|
|
114
|
+
* @memberof TransactionEntity1
|
|
115
|
+
*/
|
|
116
|
+
createdAt?: Date;
|
|
117
|
+
/**
|
|
118
|
+
*
|
|
119
|
+
* @type {Date}
|
|
120
|
+
* @memberof TransactionEntity1
|
|
121
|
+
*/
|
|
122
|
+
updatedAt?: Date;
|
|
123
|
+
/**
|
|
124
|
+
*
|
|
125
|
+
* @type {boolean}
|
|
126
|
+
* @memberof TransactionEntity1
|
|
127
|
+
*/
|
|
128
|
+
merchantInitiated?: boolean;
|
|
129
|
+
/**
|
|
130
|
+
*
|
|
131
|
+
* @type {string}
|
|
132
|
+
* @memberof TransactionEntity1
|
|
133
|
+
*/
|
|
134
|
+
schemeTransactionId?: string;
|
|
135
|
+
/**
|
|
136
|
+
*
|
|
137
|
+
* @type {string}
|
|
138
|
+
* @memberof TransactionEntity1
|
|
139
|
+
*/
|
|
140
|
+
rawResponseCode?: string;
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
* @type {string}
|
|
144
|
+
* @memberof TransactionEntity1
|
|
145
|
+
*/
|
|
146
|
+
rawResponseDescription?: string;
|
|
147
|
+
/**
|
|
148
|
+
*
|
|
149
|
+
* @type {string}
|
|
150
|
+
* @memberof TransactionEntity1
|
|
151
|
+
*/
|
|
152
|
+
avsResponseCode?: string;
|
|
153
|
+
/**
|
|
154
|
+
*
|
|
155
|
+
* @type {string}
|
|
156
|
+
* @memberof TransactionEntity1
|
|
157
|
+
*/
|
|
158
|
+
cvvResponseCode?: string;
|
|
159
|
+
/**
|
|
160
|
+
*
|
|
161
|
+
* @type {Date}
|
|
162
|
+
* @memberof TransactionEntity1
|
|
163
|
+
*/
|
|
164
|
+
capturedAt?: Date;
|
|
165
|
+
/**
|
|
166
|
+
*
|
|
167
|
+
* @type {Date}
|
|
168
|
+
* @memberof TransactionEntity1
|
|
169
|
+
*/
|
|
170
|
+
authorizedAt?: Date;
|
|
171
|
+
/**
|
|
172
|
+
*
|
|
173
|
+
* @type {Date}
|
|
174
|
+
* @memberof TransactionEntity1
|
|
175
|
+
*/
|
|
176
|
+
voidedAt?: Date;
|
|
177
|
+
/**
|
|
178
|
+
*
|
|
179
|
+
* @type {string}
|
|
180
|
+
* @memberof TransactionEntity1
|
|
181
|
+
*/
|
|
182
|
+
externalTransactionId?: string;
|
|
183
|
+
/**
|
|
184
|
+
*
|
|
185
|
+
* @type {string}
|
|
186
|
+
* @memberof TransactionEntity1
|
|
187
|
+
*/
|
|
188
|
+
buyerId?: string;
|
|
189
|
+
/**
|
|
190
|
+
*
|
|
191
|
+
* @type {string}
|
|
192
|
+
* @memberof TransactionEntity1
|
|
193
|
+
*/
|
|
194
|
+
sECCode?: string;
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* @export
|
|
198
|
+
*/
|
|
199
|
+
export declare const TransactionEntity1StatusEnum: {
|
|
200
|
+
readonly Processing: "processing";
|
|
201
|
+
readonly BuyerApprovalPending: "buyerApprovalPending";
|
|
202
|
+
readonly Authorized: "authorized";
|
|
203
|
+
readonly AuthorizationFailed: "authorizationFailed";
|
|
204
|
+
readonly Declined: "declined";
|
|
205
|
+
readonly CapturePending: "capturePending";
|
|
206
|
+
readonly Captured: "captured";
|
|
207
|
+
readonly VoidPending: "voidPending";
|
|
208
|
+
readonly Voided: "voided";
|
|
209
|
+
readonly Held: "held";
|
|
210
|
+
readonly Submitted: "submitted";
|
|
211
|
+
readonly Transmitted: "transmitted";
|
|
212
|
+
readonly Settled: "settled";
|
|
213
|
+
readonly Returned: "returned";
|
|
214
|
+
};
|
|
215
|
+
export type TransactionEntity1StatusEnum = typeof TransactionEntity1StatusEnum[keyof typeof TransactionEntity1StatusEnum];
|
|
216
|
+
/**
|
|
217
|
+
* @export
|
|
218
|
+
*/
|
|
219
|
+
export declare const TransactionEntity1IntentEnum: {
|
|
220
|
+
readonly Capture: "capture";
|
|
221
|
+
readonly Authorize: "authorize";
|
|
222
|
+
readonly Debit: "debit";
|
|
223
|
+
readonly Credit: "credit";
|
|
224
|
+
};
|
|
225
|
+
export type TransactionEntity1IntentEnum = typeof TransactionEntity1IntentEnum[keyof typeof TransactionEntity1IntentEnum];
|
|
226
|
+
/**
|
|
227
|
+
* @export
|
|
228
|
+
*/
|
|
229
|
+
export declare const TransactionEntity1CurrencyEnum: {
|
|
230
|
+
readonly Usd: "USD";
|
|
231
|
+
readonly Cad: "CAD";
|
|
232
|
+
readonly Aud: "AUD";
|
|
233
|
+
};
|
|
234
|
+
export type TransactionEntity1CurrencyEnum = typeof TransactionEntity1CurrencyEnum[keyof typeof TransactionEntity1CurrencyEnum];
|
|
235
|
+
/**
|
|
236
|
+
* Check if a given object implements the TransactionEntity1 interface.
|
|
237
|
+
*/
|
|
238
|
+
export declare function instanceOfTransactionEntity1(value: object): boolean;
|
|
239
|
+
export declare function TransactionEntity1FromJSON(json: any): TransactionEntity1;
|
|
240
|
+
export declare function TransactionEntity1FromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionEntity1;
|
|
241
|
+
export declare function TransactionEntity1ToJSON(value?: TransactionEntity1 | null): any;
|