Skip to content

Commit

Permalink
Transaction: add external vault
Browse files Browse the repository at this point in the history
  • Loading branch information
gee-m committed Sep 19, 2019
1 parent 42216c4 commit d90bf77
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ type Transaction struct {
BillingAddress *Address `xml:"billing,omitempty"`
ShippingAddress *Address `xml:"shipping,omitempty"`
Options *TransactionOptions `xml:"options,omitempty"`

FeeAmount *Decimal `xml:"transaction-fee-amount"`
ExternalVault *ExternalVault `xml:"external-vault,omitempty"`
FeeAmount *Decimal `xml:"transaction-fee-amount"`

ServiceFeeAmount *Decimal `xml:"service-fee-amount,omitempty"`
ServiceFeeTransaction string `xml:"transaction-fee-currency-iso-code,omitempty"`
Expand Down Expand Up @@ -70,6 +70,11 @@ type StatusHistory struct {
Events []StatusEvent `xml:"status-event"`
}

type ExternalVault struct {
PreviousNetworkTransactionID string `xml:"previous-network-transaction-id,omitempty"`
Status string `xml:"status,omitempty"`
}

type StatusEvent struct {
Amount string `xml:"amount"`
User string `xml:"user"`
Expand Down

0 comments on commit d90bf77

Please sign in to comment.