-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
598e3a7
commit 792af75
Showing
3 changed files
with
58 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
package shared | ||
|
||
import "time" | ||
import ( | ||
"encoding/json" | ||
"time" | ||
) | ||
|
||
type Transaction struct { | ||
ExternalTransactionID string `json:"externalTransactionId" bson:"externalTransactionId"` | ||
ExternalAssetID string `json:"externalAssetId" bson:"externalAssetId"` | ||
Datetime time.Time `json:"datetime"` | ||
Description string `json:"description"` | ||
Status string `json:"status"` | ||
Amount float64 `json:"amount"` | ||
Currency string `json:"currency"` | ||
ExternalTransactionID string `json:"externalTransactionId" bson:"externalTransactionId"` | ||
ExternalAssetID string `json:"externalAssetId" bson:"externalAssetId"` | ||
Datetime time.Time `json:"datetime"` | ||
Description string `json:"description"` | ||
Status string `json:"status"` | ||
Amount json.Number `json:"amount"` | ||
Currency string `json:"currency"` | ||
|
||
AssetID int64 `json:"assetId"` | ||
AssetID *int64 `json:"assetId"` | ||
} |