Invoice

data class Invoice(title: String, description: String, startParameter: String, currency: String, totalAmount: Int)

This object contains basic information about an invoice.

Parameters

title

Product name

description

Product description

startParameter

Unique bot deep-linking parameter that can be used to generate this invoice

currency

Three-letter ISO 4217 currency code

totalAmount

Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).

Constructors

Invoice
Link copied to clipboard
common
fun Invoice(title: String, description: String, startParameter: String, currency: String, totalAmount: Int)
Product name

Functions

component1
Link copied to clipboard
common
operator fun component1(): String
component2
Link copied to clipboard
common
operator fun component2(): String
component3
Link copied to clipboard
common
operator fun component3(): String
component4
Link copied to clipboard
common
operator fun component4(): String
component5
Link copied to clipboard
common
operator fun component5(): Int
copy
Link copied to clipboard
common
fun copy(title: String, description: String, startParameter: String, currency: String, totalAmount: Int): Invoice
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
toString
Link copied to clipboard
common
open override fun toString(): String

Properties

currency
Link copied to clipboard
common
val currency: String
Three-letter ISO 4217 currency code
description
Link copied to clipboard
common
val description: String
Product description
startParameter
Link copied to clipboard
common
val startParameter: String
Unique bot deep-linking parameter that can be used to generate this invoice
title
Link copied to clipboard
common
val title: String
Product name
totalAmount
Link copied to clipboard
common
val totalAmount: Int
Total price in the smallest units of the currency (integer, not float/double).