OnRampPaymentQuote class final

Describes a quote for an on-ramp purchase

Inheritance

Constructors

OnRampPaymentQuote({required String paymentMethod, required int expirationDate, required String baseCurrencyAmount, required String cryptocurrencyAmount, required String cryptocurrencyPrice, required String feeAmount, required String extraFeeAmount, required String networkFeeAmount, required String totalAmount, dynamic extra, int? clientId})
Describes a quote for an on-ramp purchase
const
OnRampPaymentQuote.fromJson(Map<String, dynamic> json)
Parses a OnRampPaymentQuote from TDLib JSON.
factory

Properties

baseCurrencyAmount → String
Paid amount of the base currency
final
clientId → int?
Identifier of the TDLib client that sent this object.
final
cryptocurrencyAmount → String
Purchased amount of the cryptocurrency
final
cryptocurrencyPrice → String
The price of the cryptocurrency
final
expirationDate → int
Point in time (Unix timestamp) when the quote will expire
final
extra → dynamic
"@extra" of the request this object answers.
final
extraFeeAmount → String
Extra fee amount
final
feeAmount → String
Fee amount
final
hashCode → int
The hash code for this object.
no setterinherited
networkFeeAmount → String
Network fee amount
final
paymentMethod → String
The payment method to be used
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
totalAmount → String
Total paid amount
final

Methods

copyWith({String? paymentMethod, int? expirationDate, String? baseCurrencyAmount, String? cryptocurrencyAmount, String? cryptocurrencyPrice, String? feeAmount, String? extraFeeAmount, String? networkFeeAmount, String? totalAmount, dynamic extra, int? clientId}) → OnRampPaymentQuote
Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to 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.