-
Notifications
You must be signed in to change notification settings - Fork 73
/
Copy pathtransferEvent.ts
280 lines (274 loc) · 9.6 KB
/
transferEvent.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
/*
* The version of the OpenAPI document: v4
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit this class manually.
*/
import { Amount } from './amount';
import { AmountAdjustment } from './amountAdjustment';
import { BalanceMutation } from './balanceMutation';
import { ConfirmationTrackingData } from './confirmationTrackingData';
import { EstimationTrackingData } from './estimationTrackingData';
import { ExternalReason } from './externalReason';
import { InternalReviewTrackingData } from './internalReviewTrackingData';
import { MerchantPurchaseData } from './merchantPurchaseData';
import { Modification } from './modification';
export class TransferEvent {
'amount'?: Amount | null;
/**
* The amount adjustments in this transfer.
*/
'amountAdjustments'?: Array<AmountAdjustment>;
/**
* Scheme unique arn identifier useful for tracing captures, chargebacks, refunds, etc.
*/
'arn'?: string;
/**
* The date when the transfer request was sent.
*/
'bookingDate'?: Date;
/**
* The estimated time when the beneficiary should have access to the funds.
*/
'estimatedArrivalTime'?: Date;
/**
* A list of event data.
*/
'eventsData'?: Array<MerchantPurchaseData>;
'externalReason'?: ExternalReason | null;
/**
* The unique identifier of the transfer event.
*/
'id'?: string;
'modification'?: Modification | null;
/**
* The list of balance mutations per event.
*/
'mutations'?: Array<BalanceMutation>;
'originalAmount'?: Amount | null;
/**
* The reason for the transfer status.
*/
'reason'?: TransferEvent.ReasonEnum;
/**
* The status of the transfer event.
*/
'status'?: TransferEvent.StatusEnum;
/**
* Additional information for the tracking event.
*/
'trackingData'?: ConfirmationTrackingData | EstimationTrackingData | InternalReviewTrackingData | null;
/**
* The id of the transaction that is related to this accounting event. Only sent for events of type **accounting** where the balance changes.
*/
'transactionId'?: string;
/**
* The type of the transfer event. Possible values: **accounting**, **tracking**.
*/
'type'?: TransferEvent.TypeEnum;
/**
* The date when the tracking status was updated.
*/
'updateDate'?: Date;
/**
* The date when the funds are expected to be deducted from or credited to the balance account. This date can be in either the past or future.
*/
'valueDate'?: Date;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "amount",
"baseName": "amount",
"type": "Amount | null"
},
{
"name": "amountAdjustments",
"baseName": "amountAdjustments",
"type": "Array<AmountAdjustment>"
},
{
"name": "arn",
"baseName": "arn",
"type": "string"
},
{
"name": "bookingDate",
"baseName": "bookingDate",
"type": "Date"
},
{
"name": "estimatedArrivalTime",
"baseName": "estimatedArrivalTime",
"type": "Date"
},
{
"name": "eventsData",
"baseName": "eventsData",
"type": "Array<MerchantPurchaseData>"
},
{
"name": "externalReason",
"baseName": "externalReason",
"type": "ExternalReason | null"
},
{
"name": "id",
"baseName": "id",
"type": "string"
},
{
"name": "modification",
"baseName": "modification",
"type": "Modification | null"
},
{
"name": "mutations",
"baseName": "mutations",
"type": "Array<BalanceMutation>"
},
{
"name": "originalAmount",
"baseName": "originalAmount",
"type": "Amount | null"
},
{
"name": "reason",
"baseName": "reason",
"type": "TransferEvent.ReasonEnum"
},
{
"name": "status",
"baseName": "status",
"type": "TransferEvent.StatusEnum"
},
{
"name": "trackingData",
"baseName": "trackingData",
"type": "ConfirmationTrackingData | EstimationTrackingData | InternalReviewTrackingData | null"
},
{
"name": "transactionId",
"baseName": "transactionId",
"type": "string"
},
{
"name": "type",
"baseName": "type",
"type": "TransferEvent.TypeEnum"
},
{
"name": "updateDate",
"baseName": "updateDate",
"type": "Date"
},
{
"name": "valueDate",
"baseName": "valueDate",
"type": "Date"
} ];
static getAttributeTypeMap() {
return TransferEvent.attributeTypeMap;
}
}
export namespace TransferEvent {
export enum ReasonEnum {
AccountHierarchyNotActive = 'accountHierarchyNotActive',
AmountLimitExceeded = 'amountLimitExceeded',
Approved = 'approved',
BalanceAccountTemporarilyBlockedByTransactionRule = 'balanceAccountTemporarilyBlockedByTransactionRule',
CounterpartyAccountBlocked = 'counterpartyAccountBlocked',
CounterpartyAccountClosed = 'counterpartyAccountClosed',
CounterpartyAccountNotFound = 'counterpartyAccountNotFound',
CounterpartyAddressRequired = 'counterpartyAddressRequired',
CounterpartyBankTimedOut = 'counterpartyBankTimedOut',
CounterpartyBankUnavailable = 'counterpartyBankUnavailable',
Declined = 'declined',
DeclinedByTransactionRule = 'declinedByTransactionRule',
DirectDebitNotSupported = 'directDebitNotSupported',
Error = 'error',
NotEnoughBalance = 'notEnoughBalance',
PendingApproval = 'pendingApproval',
PendingExecution = 'pendingExecution',
RefusedByCounterpartyBank = 'refusedByCounterpartyBank',
RefusedByCustomer = 'refusedByCustomer',
RouteNotFound = 'routeNotFound',
ScaFailed = 'scaFailed',
TransferInstrumentDoesNotExist = 'transferInstrumentDoesNotExist',
Unknown = 'unknown'
}
export enum StatusEnum {
ApprovalPending = 'approvalPending',
AtmWithdrawal = 'atmWithdrawal',
AtmWithdrawalReversalPending = 'atmWithdrawalReversalPending',
AtmWithdrawalReversed = 'atmWithdrawalReversed',
AuthAdjustmentAuthorised = 'authAdjustmentAuthorised',
AuthAdjustmentError = 'authAdjustmentError',
AuthAdjustmentRefused = 'authAdjustmentRefused',
Authorised = 'authorised',
BankTransfer = 'bankTransfer',
BankTransferPending = 'bankTransferPending',
Booked = 'booked',
BookingPending = 'bookingPending',
Cancelled = 'cancelled',
CapturePending = 'capturePending',
CaptureReversalPending = 'captureReversalPending',
CaptureReversed = 'captureReversed',
Captured = 'captured',
CapturedExternally = 'capturedExternally',
Chargeback = 'chargeback',
ChargebackExternally = 'chargebackExternally',
ChargebackPending = 'chargebackPending',
ChargebackReversalPending = 'chargebackReversalPending',
ChargebackReversed = 'chargebackReversed',
Credited = 'credited',
DepositCorrection = 'depositCorrection',
DepositCorrectionPending = 'depositCorrectionPending',
Dispute = 'dispute',
DisputeClosed = 'disputeClosed',
DisputeExpired = 'disputeExpired',
DisputeNeedsReview = 'disputeNeedsReview',
Error = 'error',
Expired = 'expired',
Failed = 'failed',
Fee = 'fee',
FeePending = 'feePending',
InternalTransfer = 'internalTransfer',
InternalTransferPending = 'internalTransferPending',
InvoiceDeduction = 'invoiceDeduction',
InvoiceDeductionPending = 'invoiceDeductionPending',
ManualCorrectionPending = 'manualCorrectionPending',
ManuallyCorrected = 'manuallyCorrected',
MatchedStatement = 'matchedStatement',
MatchedStatementPending = 'matchedStatementPending',
MerchantPayin = 'merchantPayin',
MerchantPayinPending = 'merchantPayinPending',
MerchantPayinReversed = 'merchantPayinReversed',
MerchantPayinReversedPending = 'merchantPayinReversedPending',
MiscCost = 'miscCost',
MiscCostPending = 'miscCostPending',
PaymentCost = 'paymentCost',
PaymentCostPending = 'paymentCostPending',
PendingApproval = 'pendingApproval',
PendingExecution = 'pendingExecution',
Received = 'received',
RefundPending = 'refundPending',
RefundReversalPending = 'refundReversalPending',
RefundReversed = 'refundReversed',
Refunded = 'refunded',
RefundedExternally = 'refundedExternally',
Refused = 'refused',
Rejected = 'rejected',
ReserveAdjustment = 'reserveAdjustment',
ReserveAdjustmentPending = 'reserveAdjustmentPending',
Returned = 'returned',
SecondChargeback = 'secondChargeback',
SecondChargebackPending = 'secondChargebackPending',
Undefined = 'undefined'
}
export enum TypeEnum {
Accounting = 'accounting',
Tracking = 'tracking'
}
}