2022-04-29 17:21:42 +08:00
|
|
|
package models
|
|
|
|
|
|
|
|
// SuccessfulPayment https://core.telegram.org/bots/api#successfulpayment
|
|
|
|
type SuccessfulPayment struct {
|
2024-11-18 16:37:50 +08:00
|
|
|
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"`
|
2022-04-29 17:21:42 +08:00
|
|
|
}
|
2024-07-18 22:37:31 +08:00
|
|
|
|
|
|
|
// 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"`
|
|
|
|
}
|