Skip to content

Commit

Permalink
Add extra params/properties for Level III on Charge
Browse files Browse the repository at this point in the history
  • Loading branch information
remi-stripe committed Jun 26, 2018
1 parent 977e658 commit 21ec566
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 21ec566

Please sign in to comment.