Skip to content

Commit

Permalink
Braintree: separate refund ids
Browse files Browse the repository at this point in the history
  • Loading branch information
gee-m committed Sep 30, 2016
1 parent 43b6f64 commit e8e3bb5
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,23 @@ type Transaction struct {
UpdatedAt *time.Time `xml:"updated-at,omitempty"`
DisbursementDetails *DisbursementDetails `xml:"disbursement-details,omitempty"`

RefundId string `xml:"refund-id,omitempty"`
RefundIds []string `xml:"refund-ids,omitempty>item,omitempty"`
RefundedTransactionId *string `xml:"refunded-transaction-id,omitempty"`
ProcessorResponseCode int `xml:"processor-response-code,omitempty"`
ProcessorResponseText string `xml:"processor-response-text,omitempty"`
ProcessorAuthorizationCode string `xml:"processor-authorization-code,omitempty"`
SettlementBatchId string `xml:"settlement-batch-id,omitempty"`
RefundId string `xml:"refund-id,omitempty"`
RefundIds *Refund `xml:"refund-ids,omitempty"`
RefundedTransactionId *string `xml:"refunded-transaction-id,omitempty"`
ProcessorResponseCode int `xml:"processor-response-code,omitempty"`
ProcessorResponseText string `xml:"processor-response-text,omitempty"`
ProcessorAuthorizationCode string `xml:"processor-authorization-code,omitempty"`
SettlementBatchId string `xml:"settlement-batch-id,omitempty"`

SubscriptionID string `xml:"subscription-id,omitempty"`
Descriptor *Descriptor `xml:"descriptor,omitempty"`
PaymentInstrumentType string `xml:"payment-instrument-type,omitempty"`
}

type Refund struct {
IDs []string `xml:"item"`
}

type StatusHistory struct {
Events []StatusEvent `xml:"status-event"`
}
Expand Down

0 comments on commit e8e3bb5

Please sign in to comment.