Skip to content

Commit

Permalink
Merge pull request #604 from stripe/remi-add-level3-extra-params
Browse files Browse the repository at this point in the history
Add extra params/properties for Level III on Charge
  • Loading branch information
brandur-stripe authored Jun 26, 2018
2 parents 977e658 + 21ec566 commit 8df7203
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charge.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@ type ChargeLevel3LineItemsParams struct {

// ChargeLevel3Params is the set of parameters that can be used for the Level III data.
type ChargeLevel3Params struct {
CustomerReference *string `form:"customer_reference"`
LineItems []*ChargeLevel3LineItemsParams `form:"line_items"`
MerchantReference *string `form:"merchant_reference"`
ShippingAddressZip *string `form:"shipping_address_zip"`
ShippingFromZip *string `form:"shipping_from_zip"`
ShippingAmount *int64 `form:"shipping_amount"`
}

Expand Down Expand Up @@ -121,9 +123,11 @@ type ChargeLevel3LineItem struct {
// ChargeLevel3 represents the Level III data.
// This is in private beta and would be empty for most integrations
type ChargeLevel3 struct {
CustomerReference string `json:"customer_reference"`
LineItems []*ChargeLevel3LineItem `json:"line_items"`
MerchantReference string `json:"merchant_reference"`
ShippingAddressZip string `json:"shipping_address_zip"`
ShippingFromZip string `json:"shipping_from_zip"`
ShippingAmount int64 `json:"shipping_amount"`
}

Expand Down

0 comments on commit 8df7203

Please sign in to comment.