Class TdApi.SendPaymentForm
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.Function<TdApi.PaymentResult>
dev.voroby.springframework.telegram.client.TdApi.SendPaymentForm
- Enclosing class:
- TdApi
Sends a filled-out payment form to the bot for final verification.
Returns PaymentResult
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.The credentials chosen by user for payment; pass null for a payment in Telegram Stars.The invoice.Identifier returned by validateOrderInfo, or an empty string.long
Payment form identifier returned by getPaymentForm.Identifier of a chosen shipping option, if applicable.long
Chosen by the user amount of tip in the smallest units of the currency. -
Constructor Summary
ConstructorDescriptionDefault constructor for a function, which sends a filled-out payment form to the bot for final verification.SendPaymentForm
(TdApi.InputInvoice inputInvoice, long paymentFormId, String orderInfoId, String shippingOptionId, TdApi.InputCredentials credentials, long tipAmount) Creates a function, which sends a filled-out payment form to the bot for final verification. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Function
toString
-
Field Details
-
inputInvoice
The invoice. -
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; pass null for a payment in Telegram Stars. -
tipAmount
public long tipAmountChosen by the user amount of tip in the smallest units of the currency. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
SendPaymentForm
public SendPaymentForm()Default constructor for a function, which sends a filled-out payment form to the bot for final verification.Returns
PaymentResult
-
SendPaymentForm
public SendPaymentForm(TdApi.InputInvoice inputInvoice, long paymentFormId, String orderInfoId, String shippingOptionId, TdApi.InputCredentials credentials, long tipAmount) Creates a function, which sends a filled-out payment form to the bot for final verification.Returns
PaymentResult
- Parameters:
inputInvoice
- The invoice.paymentFormId
- Payment 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; pass null for a payment in Telegram Stars.tipAmount
- Chosen by the user amount of tip in the smallest units of the currency.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-