Package it.tdlight.jni
Class TdApi.SendPaymentForm
- Enclosing class:
- TdApi
public static class TdApi.SendPaymentForm extends TdApi.Function<TdApi.PaymentResult>
Sends a filled-out payment form to
the bot for final verification.
Returns PaymentResult
-
Field Summary
Fields Modifier and Type Field Description long
chatId
Chat identifier of the Invoice message.static int
CONSTRUCTOR
TdApi.InputCredentials
credentials
The credentials chosen by user for payment.long
messageId
Message identifier.String
orderInfoId
Identifier returned by validateOrderInfo, or an empty string.long
paymentFormId
Payment form identifier returned by getPaymentForm.String
shippingOptionId
Identifier of a chosen shipping option, if applicable.long
tipAmount
Chosen by the user amount of tip in the smallest units of the currency. -
Constructor Summary
Constructors Constructor Description SendPaymentForm()
Sends a filled-out payment form to the bot for final verification.SendPaymentForm(long chatId, long messageId, long paymentFormId, String orderInfoId, String shippingOptionId, TdApi.InputCredentials credentials, long tipAmount)
Sends a filled-out payment form to the bot for final verification.SendPaymentForm(DataInput input)
-
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
int
getConstructor()
int
hashCode()
void
serialize(DataOutput output)
Methods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
chatId
public long chatIdChat identifier of the Invoice message. -
messageId
public long messageIdMessage identifier. -
paymentFormId
public long paymentFormIdPayment form identifier returned by getPaymentForm. -
orderInfoId
Identifier returned by validateOrderInfo, or an empty string. -
shippingOptionId
Identifier of a chosen shipping option, if applicable. -
credentials
The credentials chosen by user for payment. -
tipAmount
public long tipAmountChosen by the user amount of tip in the smallest units of the currency. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
- Constant Field Values
-
-
Constructor Details
-
SendPaymentForm
public SendPaymentForm()Sends a filled-out payment form to the bot for final verification.Returns
PaymentResult
-
SendPaymentForm
public SendPaymentForm(long chatId, long messageId, long paymentFormId, String orderInfoId, String shippingOptionId, TdApi.InputCredentials credentials, long tipAmount)Sends a filled-out payment form to the bot for final verification.Returns
PaymentResult
- Parameters:
chatId
- long Chat identifier of the Invoice message.messageId
- long Message identifier.paymentFormId
- long Payment form identifier returned by getPaymentForm.orderInfoId
- String Identifier returned by validateOrderInfo, or an empty string.shippingOptionId
- String Identifier of a chosen shipping option, if applicable.credentials
- InputCredentials The credentials chosen by user for payment.tipAmount
- long Chosen by the user amount of tip in the smallest units of the currency.
-
SendPaymentForm
- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-