25 lines
1.2 KiB
Go
25 lines
1.2 KiB
Go
package models
|
|
|
|
// SuccessfulPayment https://core.telegram.org/bots/api#successfulpayment
|
|
type SuccessfulPayment struct {
|
|
Currency string `json:"currency"`
|
|
TotalAmount int `json:"total_amount"`
|
|
InvoicePayload string `json:"invoice_payload"`
|
|
SubscriptionExpirationDate int `json:"subscription_expiration_date,omitempty"`
|
|
IsRecurring bool `json:"is_recurring,omitempty"`
|
|
IsFirstRecurring bool `json:"is_first_recurring,omitempty"`
|
|
ShippingOptionID string `json:"shipping_option_id,omitempty"`
|
|
OrderInfo *OrderInfo `json:"order_info,omitempty"`
|
|
TelegramPaymentChargeID string `json:"telegram_payment_charge_id"`
|
|
ProviderPaymentChargeID string `json:"provider_payment_charge_id"`
|
|
}
|
|
|
|
// RefundedPayment https://core.telegram.org/bots/api#refundedpayment
|
|
type RefundedPayment struct {
|
|
Currency string `json:"currency"`
|
|
TotalAmount int `json:"total_amount"`
|
|
InvoicePayload string `json:"invoice_payload"`
|
|
TelegramPaymentChargeID string `json:"telegram_payment_charge_id"`
|
|
ProviderPaymentChargeID string `json:"provider_payment_charge_id,omitempty"`
|
|
}
|