mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-21 15:53:47 +00:00
fix of #917
This commit is contained in:
parent
609c2b5fad
commit
fb3b8a7415
@ -4,14 +4,21 @@ import dev.inmo.tgbotapi.types.*
|
|||||||
import kotlinx.serialization.SerialName
|
import kotlinx.serialization.SerialName
|
||||||
import kotlinx.serialization.Serializable
|
import kotlinx.serialization.Serializable
|
||||||
|
|
||||||
|
/**
|
||||||
|
* All the field of this class are nullable due to specific of [OrderInfo](https://core.telegram.org/bots/api#orderinfo)
|
||||||
|
* from official bots api
|
||||||
|
*
|
||||||
|
* @see dev.inmo.tgbotapi.abstracts.CommonSendInvoiceData
|
||||||
|
* @see dev.inmo.tgbotapi.requests.send.payments.SendInvoice
|
||||||
|
*/
|
||||||
@Serializable
|
@Serializable
|
||||||
data class OrderInfo(
|
data class OrderInfo(
|
||||||
@SerialName(nameField)
|
@SerialName(nameField)
|
||||||
val name: String,
|
val name: String?,
|
||||||
@SerialName(phoneNumberField)
|
@SerialName(phoneNumberField)
|
||||||
val phoneNumber: String,
|
val phoneNumber: String?,
|
||||||
@SerialName(emailField)
|
@SerialName(emailField)
|
||||||
val email: String,
|
val email: String?,
|
||||||
@SerialName(shippingAddressField)
|
@SerialName(shippingAddressField)
|
||||||
val shippingAddress: ShippingAddress
|
val shippingAddress: ShippingAddress?
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user