Skip to content

Commit

Permalink
Merge pull request #963 from JackIngleton/unmarshal-source-bug
Browse files Browse the repository at this point in the history
updates SourceSourceOrder Items field to fix unmarshalling errors.
  • Loading branch information
ob-stripe authored Sep 26, 2019
2 parents 75da7dd + 97f1674 commit 586720f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions source.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,11 +264,11 @@ type SourceSourceOrderItems struct {

// SourceSourceOrder describes a source order for a source.
type SourceSourceOrder struct {
Amount int64 `json:"amount"`
Currency Currency `json:"currency"`
Email string `json:"email"`
Items *SourceSourceOrderItems `json:"items"`
Shipping *ShippingDetails `json:"shipping"`
Amount int64 `json:"amount"`
Currency Currency `json:"currency"`
Email string `json:"email"`
Items *[]SourceSourceOrderItems `json:"items"`
Shipping *ShippingDetails `json:"shipping"`
}

// Source is the resource representing a Source.
Expand Down

0 comments on commit 586720f

Please sign in to comment.