You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
elf-shop/request/check_out_order_request.go

24 lines
602 B
Go

package request
type CheckOutOrderRequest struct {
Intent string `json:"intent"`
PurchaseUnits []PurchaseUnit `json:"purchase_units"`
ApplicationContext ApplicationContext `json:"application_context"`
}
type PurchaseUnit struct {
Amount Amount `json:"amount"`
Description string `json:"description"`
CustomId int `json:"custom_id"`
}
type Amount struct {
CurrencyCode string `json:"currency_code"`
Value string `json:"value"`
}
type ApplicationContext struct {
CancelUrl string `json:"cancel_url"`
ReturnUrl string `json:"return_url"`
}