@channelpayments/node-sdk 1.41.5 → 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,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
|
+
*
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof PaymentServiceDetailsEntity
|
|
17
|
+
*/
|
|
18
|
+
id?: string;
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof PaymentServiceDetailsEntity
|
|
23
|
+
*/
|
|
24
|
+
connectorServiceId?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof PaymentServiceDetailsEntity
|
|
29
|
+
*/
|
|
30
|
+
method?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof PaymentServiceDetailsEntity
|
|
35
|
+
*/
|
|
36
|
+
serviceConnectorName?: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof PaymentServiceDetailsEntity
|
|
41
|
+
*/
|
|
42
|
+
paymentServiceTransactionId?: 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
|
+
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
26
|
+
'connectorServiceId': !exists(json, 'connectorServiceId') ? undefined : json['connectorServiceId'],
|
|
27
|
+
'method': !exists(json, 'method') ? undefined : json['method'],
|
|
28
|
+
'serviceConnectorName': !exists(json, 'serviceConnectorName') ? undefined : json['serviceConnectorName'],
|
|
29
|
+
'paymentServiceTransactionId': !exists(json, 'paymentServiceTransactionId') ? undefined : json['paymentServiceTransactionId'],
|
|
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
|
+
'id': value.id,
|
|
42
|
+
'connectorServiceId': value.connectorServiceId,
|
|
43
|
+
'method': value.method,
|
|
44
|
+
'serviceConnectorName': value.serviceConnectorName,
|
|
45
|
+
'paymentServiceTransactionId': value.paymentServiceTransactionId,
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -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
|
/**
|
|
@@ -8,34 +8,27 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import { exists, removeNullUndefined } from '../runtime';
|
|
10
10
|
import { PaymentMethodEntity1FromJSON, PaymentMethodEntity1ToJSON, } from './PaymentMethodEntity1';
|
|
11
|
-
import {
|
|
11
|
+
import { PaymentServiceDetailsEntityFromJSON, PaymentServiceDetailsEntityToJSON, } from './PaymentServiceDetailsEntity';
|
|
12
12
|
/**
|
|
13
13
|
* @export
|
|
14
14
|
*/
|
|
15
15
|
export const TransactionEntityStatusEnum = {
|
|
16
16
|
Processing: 'processing',
|
|
17
17
|
BuyerApprovalPending: 'buyerApprovalPending',
|
|
18
|
-
|
|
18
|
+
AuthorizationSucceeded: 'authorizationSucceeded',
|
|
19
19
|
AuthorizationFailed: 'authorizationFailed',
|
|
20
|
-
|
|
20
|
+
AuthorizationDeclined: 'authorizationDeclined',
|
|
21
21
|
CapturePending: 'capturePending',
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
Held: 'held',
|
|
26
|
-
Submitted: 'submitted',
|
|
27
|
-
Transmitted: 'transmitted',
|
|
28
|
-
Settled: 'settled',
|
|
29
|
-
Returned: 'returned'
|
|
22
|
+
CaptureSucceeded: 'captureSucceeded',
|
|
23
|
+
AuthorizationVoidPending: 'authorizationVoidPending',
|
|
24
|
+
AuthorizationVoided: 'authorizationVoided'
|
|
30
25
|
};
|
|
31
26
|
/**
|
|
32
27
|
* @export
|
|
33
28
|
*/
|
|
34
29
|
export const TransactionEntityIntentEnum = {
|
|
35
30
|
Capture: 'capture',
|
|
36
|
-
Authorize: 'authorize'
|
|
37
|
-
Debit: 'debit',
|
|
38
|
-
Credit: 'credit'
|
|
31
|
+
Authorize: 'authorize'
|
|
39
32
|
};
|
|
40
33
|
/**
|
|
41
34
|
* @export
|
|
@@ -50,14 +43,8 @@ export const TransactionEntityCurrencyEnum = {
|
|
|
50
43
|
*/
|
|
51
44
|
export function instanceOfTransactionEntity(value) {
|
|
52
45
|
let isInstance = true;
|
|
53
|
-
isInstance = isInstance && "
|
|
46
|
+
isInstance = isInstance && "transactionRecordId" in value;
|
|
54
47
|
isInstance = isInstance && "transactionId" in value;
|
|
55
|
-
isInstance = isInstance && "merchantId" in value;
|
|
56
|
-
isInstance = isInstance && "status" in value;
|
|
57
|
-
isInstance = isInstance && "intent" in value;
|
|
58
|
-
isInstance = isInstance && "amount" in value;
|
|
59
|
-
isInstance = isInstance && "netAmount" in value;
|
|
60
|
-
isInstance = isInstance && "fee" in value;
|
|
61
48
|
return isInstance;
|
|
62
49
|
}
|
|
63
50
|
export function TransactionEntityFromJSON(json) {
|
|
@@ -68,36 +55,30 @@ export function TransactionEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
68
55
|
return json;
|
|
69
56
|
}
|
|
70
57
|
const typed = {
|
|
71
|
-
'
|
|
58
|
+
'transactionRecordId': json['transactionRecordId'],
|
|
72
59
|
'transactionId': json['transactionId'],
|
|
73
|
-
'
|
|
74
|
-
'
|
|
75
|
-
'
|
|
76
|
-
'amount': json['amount'],
|
|
77
|
-
'netAmount': json['netAmount'],
|
|
78
|
-
'fee': json['fee'],
|
|
79
|
-
'feeDetails': !exists(json, 'feeDetails') ? undefined : json['feeDetails'],
|
|
60
|
+
'status': !exists(json, 'status') ? undefined : json['status'],
|
|
61
|
+
'intent': !exists(json, 'intent') ? undefined : json['intent'],
|
|
62
|
+
'amount': !exists(json, 'amount') ? undefined : json['amount'],
|
|
80
63
|
'capturedAmount': !exists(json, 'capturedAmount') ? undefined : json['capturedAmount'],
|
|
81
64
|
'refundedAmount': !exists(json, 'refundedAmount') ? undefined : json['refundedAmount'],
|
|
82
65
|
'currency': !exists(json, 'currency') ? undefined : json['currency'],
|
|
83
66
|
'country': !exists(json, 'country') ? undefined : json['country'],
|
|
84
67
|
'paymentMethod': !exists(json, 'paymentMethod') ? undefined : PaymentMethodEntity1FromJSON(json['paymentMethod']),
|
|
85
|
-
'
|
|
86
|
-
'
|
|
87
|
-
'
|
|
88
|
-
'
|
|
68
|
+
'buyerId': !exists(json, 'buyerId') ? undefined : json['buyerId'],
|
|
69
|
+
'transactionCreatedAt': !exists(json, 'transactionCreatedAt') ? undefined : (new Date(json['transactionCreatedAt'])),
|
|
70
|
+
'transactionUpdatedAt': !exists(json, 'transactionUpdatedAt') ? undefined : (new Date(json['transactionUpdatedAt'])),
|
|
71
|
+
'paymentServiceDetails': !exists(json, 'paymentServiceDetails') ? undefined : PaymentServiceDetailsEntityFromJSON(json['paymentServiceDetails']),
|
|
89
72
|
'merchantInitiated': !exists(json, 'merchantInitiated') ? undefined : json['merchantInitiated'],
|
|
90
73
|
'schemeTransactionId': !exists(json, 'schemeTransactionId') ? undefined : json['schemeTransactionId'],
|
|
91
|
-
'
|
|
74
|
+
'rawResponse': !exists(json, 'rawResponse') ? undefined : json['rawResponse'],
|
|
92
75
|
'rawResponseDescription': !exists(json, 'rawResponseDescription') ? undefined : json['rawResponseDescription'],
|
|
93
|
-
'
|
|
94
|
-
'
|
|
76
|
+
'avsResponse': !exists(json, 'avsResponse') ? undefined : json['avsResponse'],
|
|
77
|
+
'cvvResponse': !exists(json, 'cvvResponse') ? undefined : json['cvvResponse'],
|
|
78
|
+
'metadata': !exists(json, 'metadata') ? undefined : json['metadata'],
|
|
95
79
|
'capturedAt': !exists(json, 'capturedAt') ? undefined : (new Date(json['capturedAt'])),
|
|
96
80
|
'authorizedAt': !exists(json, 'authorizedAt') ? undefined : (new Date(json['authorizedAt'])),
|
|
97
81
|
'voidedAt': !exists(json, 'voidedAt') ? undefined : (new Date(json['voidedAt'])),
|
|
98
|
-
'externalTransactionId': !exists(json, 'externalTransactionId') ? undefined : json['externalTransactionId'],
|
|
99
|
-
'buyerId': !exists(json, 'buyerId') ? undefined : json['buyerId'],
|
|
100
|
-
'sECCode': !exists(json, 'SECCode') ? undefined : json['SECCode'],
|
|
101
82
|
};
|
|
102
83
|
return removeNullUndefined(typed);
|
|
103
84
|
}
|
|
@@ -109,35 +90,29 @@ export function TransactionEntityToJSON(value) {
|
|
|
109
90
|
return null;
|
|
110
91
|
}
|
|
111
92
|
return {
|
|
112
|
-
'
|
|
93
|
+
'transactionRecordId': value.transactionRecordId,
|
|
113
94
|
'transactionId': value.transactionId,
|
|
114
|
-
'merchantId': value.merchantId,
|
|
115
95
|
'status': value.status,
|
|
116
96
|
'intent': value.intent,
|
|
117
97
|
'amount': value.amount,
|
|
118
|
-
'netAmount': value.netAmount,
|
|
119
|
-
'fee': value.fee,
|
|
120
|
-
'feeDetails': value.feeDetails,
|
|
121
98
|
'capturedAmount': value.capturedAmount,
|
|
122
99
|
'refundedAmount': value.refundedAmount,
|
|
123
100
|
'currency': value.currency,
|
|
124
101
|
'country': value.country,
|
|
125
102
|
'paymentMethod': PaymentMethodEntity1ToJSON(value.paymentMethod),
|
|
126
|
-
'
|
|
127
|
-
'
|
|
128
|
-
'
|
|
129
|
-
'
|
|
103
|
+
'buyerId': value.buyerId,
|
|
104
|
+
'transactionCreatedAt': value.transactionCreatedAt === undefined ? undefined : (value.transactionCreatedAt.toISOString()),
|
|
105
|
+
'transactionUpdatedAt': value.transactionUpdatedAt === undefined ? undefined : (value.transactionUpdatedAt.toISOString()),
|
|
106
|
+
'paymentServiceDetails': PaymentServiceDetailsEntityToJSON(value.paymentServiceDetails),
|
|
130
107
|
'merchantInitiated': value.merchantInitiated,
|
|
131
108
|
'schemeTransactionId': value.schemeTransactionId,
|
|
132
|
-
'
|
|
109
|
+
'rawResponse': value.rawResponse,
|
|
133
110
|
'rawResponseDescription': value.rawResponseDescription,
|
|
134
|
-
'
|
|
135
|
-
'
|
|
111
|
+
'avsResponse': value.avsResponse,
|
|
112
|
+
'cvvResponse': value.cvvResponse,
|
|
113
|
+
'metadata': value.metadata,
|
|
136
114
|
'capturedAt': value.capturedAt === undefined ? undefined : (value.capturedAt.toISOString()),
|
|
137
115
|
'authorizedAt': value.authorizedAt === undefined ? undefined : (value.authorizedAt.toISOString()),
|
|
138
116
|
'voidedAt': value.voidedAt === undefined ? undefined : (value.voidedAt.toISOString()),
|
|
139
|
-
'externalTransactionId': value.externalTransactionId,
|
|
140
|
-
'buyerId': value.buyerId,
|
|
141
|
-
'SECCode': value.sECCode,
|
|
142
117
|
};
|
|
143
118
|
}
|
|
@@ -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;
|