separated quotation and payments
This commit is contained in:
@@ -10,13 +10,13 @@ class VerificationResponse {
|
||||
@JsonKey(name: 'cooldown_seconds', defaultValue: 0)
|
||||
final int cooldownSeconds;
|
||||
@JsonKey(defaultValue: '')
|
||||
final String destination;
|
||||
final String target;
|
||||
final String idempotencyKey;
|
||||
|
||||
const VerificationResponse({
|
||||
required this.ttlSeconds,
|
||||
required this.cooldownSeconds,
|
||||
required this.destination,
|
||||
required this.target,
|
||||
required this.idempotencyKey,
|
||||
});
|
||||
|
||||
|
||||
@@ -120,7 +120,7 @@ class AccountProvider extends ChangeNotifier {
|
||||
VerificationResponse confirmation,
|
||||
) {
|
||||
final ttlSeconds = confirmation.ttlSeconds != 0 ? confirmation.ttlSeconds : pending.ttlSeconds;
|
||||
final destination = confirmation.destination.isNotEmpty ? confirmation.destination : pending.destination;
|
||||
final destination = confirmation.target.isNotEmpty ? confirmation.target : pending.destination;
|
||||
final cooldownSeconds = confirmation.cooldownSeconds;
|
||||
|
||||
return pending.copyWith(
|
||||
|
||||
Reference in New Issue
Block a user