Skip to content

Commit

Permalink
Braintree: omitempty refund ids
Browse files Browse the repository at this point in the history
  • Loading branch information
gee-m committed Sep 30, 2016
1 parent 198ac0b commit 43b6f64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion braintree.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func (g *Braintree) execute(method, path string, xmlObj interface{}) (*Response,
req.Header.Set("Content-Type", "application/xml")
req.Header.Set("Accept", "application/xml")
req.Header.Set("Accept-Encoding", "gzip")
req.Header.Set("User-Agent", "Braintree-ProcessOut Go 0.7.0")
req.Header.Set("User-Agent", "Braintree-ProcessOut Go 1.1")
req.Header.Set("X-ApiVersion", "3")
req.SetBasicAuth(g.PublicKey, g.PrivateKey)

Expand Down
2 changes: 1 addition & 1 deletion transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ type Transaction struct {
DisbursementDetails *DisbursementDetails `xml:"disbursement-details,omitempty"`

RefundId string `xml:"refund-id,omitempty"`
RefundIds []string `xml:"refund-ids>item,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"`
Expand Down

0 comments on commit 43b6f64

Please sign in to comment.