PaymentForm class final
Contains information about an invoice payment form
Constructors
-
PaymentForm({required int id, required Invoice invoice, required int sellerBotUserId, required int paymentProviderUserId, required PaymentProvider paymentProvider, required List<
PaymentOption> additionalPaymentOptions, OrderInfo? savedOrderInfo, required List<SavedCredentials> savedCredentials, required bool canSaveCredentials, required bool needPassword, required String productTitle, required FormattedText productDescription, Photo? productPhoto, dynamic extra, int? clientId}) -
Contains information about an invoice payment form
const
-
PaymentForm.fromJson(Map<
String, dynamic> json) -
Parses a PaymentForm from TDLib JSON.
factory
Properties
-
additionalPaymentOptions
→ List<
PaymentOption> -
The list of additional payment options
final
- canSaveCredentials → bool
-
True, if the user can choose to save credentials
final
- clientId → int?
-
Identifier of the TDLib client that sent this object.
final
- extra → dynamic
-
"@extra" of the request this object answers.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int
-
The payment form identifier
final
- invoice → Invoice
-
Full information about the invoice
final
- needPassword → bool
-
True, if the user will be able to save credentials, if sets up a 2-step verification password
final
- paymentProvider → PaymentProvider
-
Information about the payment provider
final
- paymentProviderUserId → int
-
User identifier of the payment provider bot
final
- productDescription → FormattedText
-
Product description
final
- productPhoto → Photo?
-
Product photo; may be null
final
- productTitle → String
-
Product title
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
savedCredentials
→ List<
SavedCredentials> -
The list of saved payment credentials
final
- savedOrderInfo → OrderInfo?
-
Saved server-side order information; may be null
final
- sellerBotUserId → int
-
User identifier of the seller bot
final
Methods
-
copyWith(
{int? id, Invoice? invoice, int? sellerBotUserId, int? paymentProviderUserId, PaymentProvider? paymentProvider, List< PaymentOption> ? additionalPaymentOptions, OrderInfo? savedOrderInfo()?, List<SavedCredentials> ? savedCredentials, bool? canSaveCredentials, bool? needPassword, String? productTitle, FormattedText? productDescription, Photo? productPhoto()?, dynamic extra, int? clientId}) → PaymentForm -
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g.
field: () => nullto clear it. -
getConstructor(
) → String -
TDLib type name, e.g.
updateNewMessage.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts this object to TDLib JSON.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- CONSTRUCTOR → const String
- TDLib type name.