CreateInvoiceLink

@Serializable
data class CreateInvoiceLink(val title: String, val description: String, val payload: String, val providerToken: String?, val currency: Currency, val prices: List<LabeledPrice>, val maxTipAmount: Int? = null, val suggestedTipAmounts: List<Int>? = null, val providerData: String? = null, val requireName: Boolean = false, val requirePhoneNumber: Boolean = false, val requireEmail: Boolean = false, val requireShippingAddress: Boolean = false, val shouldSendPhoneNumberToProvider: Boolean = false, val shouldSendEmailToProvider: Boolean = false, val priceDependOnShipAddress: Boolean = false) : CommonSendInvoiceData, SimpleRequest<String>

Parameters

providerData
  • JSON-ENCODED FIELD

Constructors

Link copied to clipboard
constructor(title: String, description: String, payload: String, prices: List<LabeledPrice>, maxTipAmount: Int? = null, suggestedTipAmounts: List<Int>? = null, providerData: String? = null, requireName: Boolean = false, requirePhoneNumber: Boolean = false, requireEmail: Boolean = false, requireShippingAddress: Boolean = false, shouldSendPhoneNumberToProvider: Boolean = false, shouldSendEmailToProvider: Boolean = false, priceDependOnShipAddress: Boolean = false)
constructor(title: String, description: String, payload: String, providerToken: String?, currency: Currency, prices: List<LabeledPrice>, maxTipAmount: Int? = null, suggestedTipAmounts: List<Int>? = null, providerData: String? = null, requireName: Boolean = false, requirePhoneNumber: Boolean = false, requireEmail: Boolean = false, requireShippingAddress: Boolean = false, shouldSendPhoneNumberToProvider: Boolean = false, shouldSendEmailToProvider: Boolean = false, priceDependOnShipAddress: Boolean = false)

Properties

Link copied to clipboard
@SerialName(value = "currency")
open override val currency: Currency
Link copied to clipboard
@SerialName(value = "description")
open override val description: String
Link copied to clipboard
@SerialName(value = "max_tip_amount")
open override val maxTipAmount: Int? = null
Link copied to clipboard
@SerialName(value = "payload")
open override val payload: String
Link copied to clipboard
@SerialName(value = "photo_height")
open override var photoHeight: Int?
Link copied to clipboard
@SerialName(value = "photo_size")
open override var photoSize: Long?
Link copied to clipboard
@SerialName(value = "photo_url")
open override var photoUrl: String?
Link copied to clipboard
@SerialName(value = "photo_width")
open override var photoWidth: Int?
Link copied to clipboard
@SerialName(value = "is_flexible")
open override val priceDependOnShipAddress: Boolean = false
Link copied to clipboard
@Serializable(with = LabeledPricesSerializer::class)
@SerialName(value = "prices")
open override val prices: List<LabeledPrice>
Link copied to clipboard
@SerialName(value = "provider_data")
open override val providerData: String? = null
Link copied to clipboard
@SerialName(value = "provider_token")
open override val providerToken: String?
Link copied to clipboard
open override val requestSerializer: SerializationStrategy<*>
Link copied to clipboard
@SerialName(value = "need_email")
open override val requireEmail: Boolean = false
Link copied to clipboard
@SerialName(value = "need_name")
open override val requireName: Boolean = false
Link copied to clipboard
@SerialName(value = "need_phone_number")
open override val requirePhoneNumber: Boolean = false
Link copied to clipboard
@SerialName(value = "need_shipping_address")
open override val requireShippingAddress: Boolean = false
Link copied to clipboard
open override val resultDeserializer: DeserializationStrategy<String>
Link copied to clipboard
@SerialName(value = "send_email_to_provider")
open override val shouldSendEmailToProvider: Boolean = false
Link copied to clipboard
@SerialName(value = "send_phone_number_to_provider")
open override val shouldSendPhoneNumberToProvider: Boolean = false
Link copied to clipboard
@SerialName(value = "suggested_tip_amounts")
open override val suggestedTipAmounts: List<Int>? = null
Link copied to clipboard
@SerialName(value = "title")
open override val title: String

Functions

Link copied to clipboard
Link copied to clipboard
open override fun method(): String
Link copied to clipboard
open override fun setPhoto(photoUrl: String, photoSize: Long?, photoWidth: Int?, photoHeight: Int?)
Link copied to clipboard
open override fun unsetPhoto()