|
|
@ -652,7 +652,7 @@ type InputContactMessageContent struct { |
|
|
|
LastName string `json:"last_name"` |
|
|
|
LastName string `json:"last_name"` |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Invoice contains information about invoice
|
|
|
|
// Invoice contains basic information about an invoice.
|
|
|
|
type Invoice struct { |
|
|
|
type Invoice struct { |
|
|
|
Title string `json:"title"` |
|
|
|
Title string `json:"title"` |
|
|
|
Description string `json:"description"` |
|
|
|
Description string `json:"description"` |
|
|
@ -661,11 +661,13 @@ type Invoice struct { |
|
|
|
TotalAmount int `json:"total_amount"` |
|
|
|
TotalAmount int `json:"total_amount"` |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// LabeledPrice represents a portion of the price for goods or services.
|
|
|
|
type LabeledPrice struct { |
|
|
|
type LabeledPrice struct { |
|
|
|
Label string `json:"label"` |
|
|
|
Label string `json:"label"` |
|
|
|
Amount int `json:"amount"` |
|
|
|
Amount int `json:"amount"` |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ShippingAddress represents a shipping address.
|
|
|
|
type ShippingAddress struct { |
|
|
|
type ShippingAddress struct { |
|
|
|
CountryCode string `json:"country_code"` |
|
|
|
CountryCode string `json:"country_code"` |
|
|
|
State string `json:"state"` |
|
|
|
State string `json:"state"` |
|
|
@ -675,6 +677,7 @@ type ShippingAddress struct { |
|
|
|
PostCode string `json:"post_code"` |
|
|
|
PostCode string `json:"post_code"` |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// OrderInfo represents information about an order.
|
|
|
|
type OrderInfo struct { |
|
|
|
type OrderInfo struct { |
|
|
|
Name string `json:"name,omitempty"` |
|
|
|
Name string `json:"name,omitempty"` |
|
|
|
PhoneNumber string `json:"phone_number,omitempty"` |
|
|
|
PhoneNumber string `json:"phone_number,omitempty"` |
|
|
@ -682,12 +685,14 @@ type OrderInfo struct { |
|
|
|
ShippingAddress *ShippingAddress `json:"shipping_address,omitempty"` |
|
|
|
ShippingAddress *ShippingAddress `json:"shipping_address,omitempty"` |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ShippingOption represents one shipping option.
|
|
|
|
type ShippingOption struct { |
|
|
|
type ShippingOption struct { |
|
|
|
ID string `json:"id"` |
|
|
|
ID string `json:"id"` |
|
|
|
Title string `json:"title"` |
|
|
|
Title string `json:"title"` |
|
|
|
Prices *[]LabeledPrice `json:"prices"` |
|
|
|
Prices *[]LabeledPrice `json:"prices"` |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// SuccessfulPayment contains basic information about a successful payment.
|
|
|
|
type SuccessfulPayment struct { |
|
|
|
type SuccessfulPayment struct { |
|
|
|
Currency string `json:"currency"` |
|
|
|
Currency string `json:"currency"` |
|
|
|
TotalAmount int `json:"total_amount"` |
|
|
|
TotalAmount int `json:"total_amount"` |
|
|
@ -698,6 +703,7 @@ type SuccessfulPayment struct { |
|
|
|
ProviderPaymentChargeID string `json:"provider_payment_charge_id"` |
|
|
|
ProviderPaymentChargeID string `json:"provider_payment_charge_id"` |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ShippingQuery contains information about an incoming shipping query.
|
|
|
|
type ShippingQuery struct { |
|
|
|
type ShippingQuery struct { |
|
|
|
ID string `json:"id"` |
|
|
|
ID string `json:"id"` |
|
|
|
From *User `json:"from"` |
|
|
|
From *User `json:"from"` |
|
|
@ -705,6 +711,7 @@ type ShippingQuery struct { |
|
|
|
ShippingAddress *ShippingAddress `json:"shipping_address"` |
|
|
|
ShippingAddress *ShippingAddress `json:"shipping_address"` |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// PreCheckoutQuery contains information about an incoming pre-checkout query.
|
|
|
|
type PreCheckoutQuery struct { |
|
|
|
type PreCheckoutQuery struct { |
|
|
|
ID string `json:"id"` |
|
|
|
ID string `json:"id"` |
|
|
|
From *User `json:"from"` |
|
|
|
From *User `json:"from"` |
|
|
|