-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_transaction.go
109 lines (74 loc) · 3.72 KB
/
model_transaction.go
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
/*
* Cloud API
*
* The public facing API through which connectors are exposed as a single abstract API
*
* API version: v1.5
* Contact: support@trexis.net
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package finite
// Transaction - Transaction object
type Transaction struct {
// Unique identifier of the entity
EntityId string `json:"entityId,omitempty"`
// Unique identifier of the account in the system of record
AccountId string `json:"accountId,omitempty"`
// Unique identifier of the transaction in the system of record
Id string `json:"id,omitempty"`
// An integer sequence that can be used for ordering transactions within one day.
SequenceInDay int32 `json:"sequenceInDay,omitempty"`
Status TransactionStatus `json:"status,omitempty"`
// The amount of the transaction when it was executed and booked to the account.
ExecutedAmount float32 `json:"executedAmount,omitempty"`
// The currency code of the executed amount
ExecutedCurrencyCode string `json:"executedCurrencyCode,omitempty"`
// The exchange rate used to convert the originating amount to the executing amount
ExchangeRate float32 `json:"exchangeRate,omitempty"`
// The originating amount of the transaction when it was originally submitted to the account.
OriginatingAmount float32 `json:"originatingAmount,omitempty"`
// The currency code of the originating transaction amount
OriginatingCurrencyCode string `json:"originatingCurrencyCode,omitempty"`
Direction string `json:"direction,omitempty"`
// The balance of the account at the moment this transaction was executed
RunningBalance float32 `json:"runningBalance,omitempty"`
// ISO 6801 date of when the transaction was created in the system of record
CreatedDate string `json:"createdDate,omitempty"`
// ISO 6801 date of when the transaction was posted to the account
PostedDate string `json:"postedDate,omitempty"`
// ISO 6801 date of when the transaction was executed and booked to the account
ExecutedDate string `json:"executedDate,omitempty"`
// ISO 6801 date of when the transaction was updated on the account
UpdatedDate string `json:"updatedDate,omitempty"`
// Unique identifier of the transaction in the system of record
Description string `json:"description,omitempty"`
// Additional information about the transaction
Memo string `json:"memo,omitempty"`
// The grouping of this transaction in the system of record
Group string `json:"group,omitempty"`
// The type of this transaction in the system of record
Type string `json:"type,omitempty"`
// The main category of the transaction
MainCategory string `json:"mainCategory,omitempty"`
// The sub category of the transaction
SubCategory string `json:"subCategory,omitempty"`
// The check number associated with the transaction in case it was a check
CheckNumber string `json:"checkNumber,omitempty"`
Images BinaryItemList `json:"images,omitempty"`
// The latitude coordinate where the transaction took place
Latitude string `json:"latitude,omitempty"`
// The longitude coordinate where the transaction took place
Longitude string `json:"longitude,omitempty"`
// The code used to identify the merchant for the transaction
MerchantCode string `json:"merchantCode,omitempty"`
// true if this transaction is a reversal, false otherwise.
Reversal bool `json:"reversal,omitempty"`
// The transaction identifier this transaction is reversing
ReversalFor string `json:"reversalFor,omitempty"`
// true if this transaction has been reversed, false otherwise.
Reversed bool `json:"reversed,omitempty"`
// The transaction identifier this transaction was reversed by
ReversedBy string `json:"reversedBy,omitempty"`
Transactor Transactor `json:"transactor,omitempty"`
URI FiniteUri `json:"URI,omitempty"`
}