toggle menu
ktgbotapi
common
switch theme
search in API
tgbotapi.core
/
dev.inmo.tgbotapi.types.payments
/
ShippingQuery
Shipping
Query
@
Serializable
data
class
ShippingQuery
(
val
id
:
ShippingQueryId
,
val
from
:
User
,
val
invoicePayload
:
InvoicePayload
,
val
shippingAddress
:
ShippingAddress
)
:
FromUser
Members
Members & Extensions
Constructors
Shipping
Query
Link copied to clipboard
constructor
(
id
:
ShippingQueryId
,
from
:
User
,
invoicePayload
:
InvoicePayload
,
shippingAddress
:
ShippingAddress
)
Properties
from
Link copied to clipboard
@
SerialName
(
value
=
"from"
)
open
override
val
from
:
User
The source
User
of this type
id
Link copied to clipboard
@
SerialName
(
value
=
"id"
)
val
id
:
ShippingQueryId
invoice
Payload
Link copied to clipboard
@
SerialName
(
value
=
"invoice_payload"
)
val
invoicePayload
:
InvoicePayload
shipping
Address
Link copied to clipboard
@
SerialName
(
value
=
"shipping_address"
)
val
shippingAddress
:
ShippingAddress
user
Link copied to clipboard
open
override
val
user
:
User
Functions
create
Answer
Error
Link copied to clipboard
fun
ShippingQuery
.
createAnswerError
(
error
:
String
)
:
AnswerShippingQueryError
create
Answer
Ok
Link copied to clipboard
fun
ShippingQuery
.
createAnswerOk
(
shippingOptions
:
List
<
ShippingOption
>
)
:
AnswerShippingQueryOk