Skip to content

Commit

Permalink
Add omitempty for currency iso code, crash-prevention
Browse files Browse the repository at this point in the history
  • Loading branch information
gee-m committed Sep 7, 2016
1 parent 14a70c4 commit 847f1d2
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 1 deletion.
Binary file modified .vscode/.browse.VC.db
Binary file not shown.
Binary file modified .vscode/.browse.VC.db-shm
Binary file not shown.
Binary file modified .vscode/.browse.VC.db-wal
Binary file not shown.
2 changes: 1 addition & 1 deletion transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type Transaction struct {
Status string `xml:"status,omitempty"`
Type string `xml:"type,omitempty"`
Amount *Decimal `xml:"amount"`
CurrencyISOCode string `xml:"currency-iso-code"`
CurrencyISOCode string `xml:"currency-iso-code,omitempty"`
Tax *Decimal `xml:"tax-amount"`
OrderId string `xml:"order-id,omitempty"`
PaymentMethodToken string `xml:"payment-method-token,omitempty"`
Expand Down

0 comments on commit 847f1d2

Please sign in to comment.