@@ -1642,7 +1642,7 @@ type Invoice struct {
1642
1642
// Currency three-letter ISO 4217 currency code
1643
1643
// (see https://core.telegram.org/bots/payments#supported-currencies)
1644
1644
Currency string `json:"currency"`
1645
- // TotalAmount otal price in the smallest units of the currency (integer, not float/double).
1645
+ // TotalAmount total price in the smallest units of the currency (integer, not float/double).
1646
1646
// For example, for a price of US$ 1.45 pass amount = 145.
1647
1647
// See the exp parameter in currencies.json
1648
1648
// (https://core.telegram.org/bots/payments/currencies.json),
@@ -1672,7 +1672,7 @@ type ShippingAddress struct {
1672
1672
State string `json:"state"`
1673
1673
// City city
1674
1674
City string `json:"city"`
1675
- // StreetLine1 fFirst line for the address
1675
+ // StreetLine1 first line for the address
1676
1676
StreetLine1 string `json:"street_line1"`
1677
1677
// StreetLine2 second line for the address
1678
1678
StreetLine2 string `json:"street_line2"`
@@ -1712,13 +1712,30 @@ type ShippingOption struct {
1712
1712
1713
1713
// SuccessfulPayment contains basic information about a successful payment.
1714
1714
type SuccessfulPayment struct {
1715
- Currency string `json:"currency"`
1716
- TotalAmount int `json:"total_amount"`
1717
- InvoicePayload string `json:"invoice_payload"`
1718
- ShippingOptionID string `json:"shipping_option_id,omitempty"`
1719
- OrderInfo * OrderInfo `json:"order_info,omitempty"`
1720
- TelegramPaymentChargeID string `json:"telegram_payment_charge_id"`
1721
- ProviderPaymentChargeID string `json:"provider_payment_charge_id"`
1715
+ // Currency three-letter ISO 4217 currency code
1716
+ // (see https://core.telegram.org/bots/payments#supported-currencies)
1717
+ Currency string `json:"currency"`
1718
+ // TotalAmount total price in the smallest units of the currency (integer, not float/double).
1719
+ // For example, for a price of US$ 1.45 pass amount = 145.
1720
+ // See the exp parameter in currencies.json,
1721
+ // (https://core.telegram.org/bots/payments/currencies.json)
1722
+ // it shows the number of digits past the decimal point
1723
+ // for each currency (2 for the majority of currencies).
1724
+ TotalAmount int `json:"total_amount"`
1725
+ // InvoicePayload bot specified invoice payload
1726
+ InvoicePayload string `json:"invoice_payload"`
1727
+ // ShippingOptionID identifier of the shipping option chosen by the user
1728
+ //
1729
+ // optional
1730
+ ShippingOptionID string `json:"shipping_option_id,omitempty"`
1731
+ // OrderInfo order info provided by the user
1732
+ //
1733
+ // optional
1734
+ OrderInfo * OrderInfo `json:"order_info,omitempty"`
1735
+ // TelegramPaymentChargeID telegram payment identifier
1736
+ TelegramPaymentChargeID string `json:"telegram_payment_charge_id"`
1737
+ // ProviderPaymentChargeID provider payment identifier
1738
+ ProviderPaymentChargeID string `json:"provider_payment_charge_id"`
1722
1739
}
1723
1740
1724
1741
// ShippingQuery contains information about an incoming shipping query.
0 commit comments