Skip to content

Commit

Permalink
added new fields (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
vtopc authored Jan 17, 2021
1 parent e13f6d7 commit ac3752b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions types.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ type Account struct {
CashbackType string `json:"cashbackType"` // enum: None, UAH, Miles
CardMasks []string `json:"maskedPan"` // card number masks
Type CardType `json:"type"`
IBAN string `json:"iban"`
}

type CardType string
Expand All @@ -25,6 +26,7 @@ const (
Black CardType = "black"
White CardType = "white"
Platinum CardType = "platinum"
FOP CardType = "fop"
)

type Accounts []Account
Expand All @@ -43,6 +45,9 @@ type Transaction struct {
CashbackAmount int64 `json:"cashbackAmount"`
Balance int64 `json:"balance"`
Comment string `json:"comment"`
ReceiptID string `json:"receiptId"`
EDRPOU string `json:"counterEdrpou"`
IBAN string `json:"counterIban"`
}

// Transactions - transactions
Expand Down

0 comments on commit ac3752b

Please sign in to comment.