OnRampPaymentAvailability class final
Describes availability of cryptocurrency purchase through an on-ramp provider
Constructors
-
OnRampPaymentAvailability({required bool isAllowed, required bool isPurchaseAllowed, required List<
OnRampPaymentMethod> methods, required String countryCode, required String state, dynamic extra, int? clientId}) -
Describes availability of cryptocurrency purchase through an on-ramp provider
const
-
OnRampPaymentAvailability.fromJson(Map<
String, dynamic> json) -
Parses a OnRampPaymentAvailability from TDLib JSON.
factory
Properties
- clientId → int?
-
Identifier of the TDLib client that sent this object.
final
- countryCode → String
-
A two-letter ISO 3166-1 alpha-2 country code of the current user's country
final
- extra → dynamic
-
"@extra" of the request this object answers.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAllowed → bool
-
True, if the current user can use the provider
final
- isPurchaseAllowed → bool
-
True, if the current user can purchase through the provider
final
-
methods
→ List<
OnRampPaymentMethod> -
The list of available payment methods
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → String
-
Code of the state of the current user; may be empty if unknown
final
Methods
-
copyWith(
{bool? isAllowed, bool? isPurchaseAllowed, List< OnRampPaymentMethod> ? methods, String? countryCode, String? state, dynamic extra, int? clientId}) → OnRampPaymentAvailability -
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.