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.
24 lines
602 B
Go
24 lines
602 B
Go
8 months ago
|
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"`
|
||
|
}
|