Skip to content

Commit

Permalink
Move Date struct to its own package
Browse files Browse the repository at this point in the history
  • Loading branch information
lionelbarrow committed Apr 3, 2015
1 parent 7d7ddf6 commit bc5125f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion date.go → date/date.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package braintree
package date

import (
"encoding/xml"
Expand Down
2 changes: 1 addition & 1 deletion date_test.go → date/date_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package braintree
package date

import (
"encoding/xml"
Expand Down
7 changes: 5 additions & 2 deletions disbursement.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
package braintree

import "encoding/xml"
import (
"encoding/xml"
"github.com/lionelbarrow/braintree-go/date"
)

type Disbursement struct {
XMLName xml.Name `xml:"disbursement"`
Id string `xml:"id"`
ExceptionMessage string `xml:"exception-message"`
DisbursementDate *Date `xml:"disbursement-date"`
DisbursementDate *date.Date `xml:"disbursement-date"`
FollowUpAction string `xml:"follow-up-action"`
Success bool `xml:"success"`
Retry bool `xml:"retry"`
Expand Down

0 comments on commit bc5125f

Please sign in to comment.