stack_wallet/lib/models/buy/response_objects/quote.dart
sneurlax 7191e502db use new cypherstack/simplex_api for quotes, update SimplexQuote
and add bool buyWithFiat to SimplexQuote to disambiguate request
2023-01-19 13:36:05 -06:00

27 lines
711 B
Dart

import 'package:decimal/decimal.dart';
import 'package:stackwallet/models/buy/response_objects/crypto.dart';
import 'package:stackwallet/models/buy/response_objects/fiat.dart';
class SimplexQuote {
// todo: this class
final Crypto crypto;
final Fiat fiat;
late final Decimal youPayFiatPrice;
late final Decimal youReceiveCryptoAmount;
late final String purchaseId;
late final String receivingAddress;
late final bool buyWithFiat;
SimplexQuote(
{required this.crypto,
required this.fiat,
required this.youPayFiatPrice,
required this.youReceiveCryptoAmount,
required this.purchaseId,
required this.receivingAddress,
required this.buyWithFiat});
}