toggle menu
ktgbotapi
common
jvm
switch theme
search in API
tgbotapi.core
/
dev.inmo.tgbotapi.types.payments
/
SuccessfulPayment
Successful
Payment
@
Serializable
data
class
SuccessfulPayment
(
val
currency
:
Currency
,
val
amount
:
Long
,
val
invoicePayload
:
String
,
val
telegramPaymentChargeId
:
String
,
val
providerPaymentChargeId
:
String
,
val
shippingOptionId
:
String
?
=
null
,
val
orderInfo
:
OrderInfo
?
=
null
)
:
Amounted
,
Currencied
Members
Members & Extensions
Constructors
Successful
Payment
Link copied to clipboard
constructor
(
currency
:
Currency
,
amount
:
Long
,
invoicePayload
:
String
,
telegramPaymentChargeId
:
String
,
providerPaymentChargeId
:
String
,
shippingOptionId
:
String
?
=
null
,
orderInfo
:
OrderInfo
?
=
null
)
Properties
adapted
Majority
Total
Amount
Link copied to clipboard
open
val
adaptedMajorityTotalAmount
:
Double
amount
Link copied to clipboard
@
SerialName
(
value
=
"total_amount"
)
open
override
val
amount
:
Long
currency
Link copied to clipboard
@
SerialName
(
value
=
"currency"
)
open
override
val
currency
:
Currency
invoice
Payload
Link copied to clipboard
@
SerialName
(
value
=
"invoice_payload"
)
val
invoicePayload
:
String
order
Info
Link copied to clipboard
@
SerialName
(
value
=
"order_info"
)
val
orderInfo
:
OrderInfo
?
=
null
provider
Payment
Charge
Id
Link copied to clipboard
@
SerialName
(
value
=
"provider_payment_charge_id"
)
val
providerPaymentChargeId
:
String
shipping
Option
Id
Link copied to clipboard
@
SerialName
(
value
=
"shipping_option_id"
)
val
shippingOptionId
:
String
?
=
null
telegram
Payment
Charge
Id
Link copied to clipboard
@
SerialName
(
value
=
"telegram_payment_charge_id"
)
val
telegramPaymentChargeId
:
String
Functions
java
Currency
Link copied to clipboard
jvm
fun
Currencied
.
javaCurrency
(
)
:
Currency