PaymentFormTypeRegular class final
The payment form is for a regular payment
- Inheritance
-
- Object
- TdObject
- PaymentFormType
- PaymentFormTypeRegular
Constructors
-
PaymentFormTypeRegular({required Invoice invoice, required int paymentProviderUserId, required PaymentProvider paymentProvider, required List<
PaymentOption> additionalPaymentOptions, OrderInfo? savedOrderInfo, required List<SavedCredentials> savedCredentials, required bool canSaveCredentials, required bool needPassword}) -
The payment form is for a regular payment
const
-
PaymentFormTypeRegular.fromJson(Map<
String, dynamic> json) -
Parses a PaymentFormTypeRegular 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, when known.
no setterinherited
- extra → dynamic
-
"@extra" of the request this object answers; null for updates.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
- 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
Methods
-
copyWith(
{Invoice? invoice, int? paymentProviderUserId, PaymentProvider? paymentProvider, List< PaymentOption> ? additionalPaymentOptions, OrderInfo? savedOrderInfo()?, List<SavedCredentials> ? savedCredentials, bool? canSaveCredentials, bool? needPassword}) → PaymentFormTypeRegular -
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g.
field: () => nullto clear it.override -
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.