complete MECE request
This commit is contained in:
@@ -12,7 +12,6 @@ import 'package:pshared/provider/resource.dart';
|
||||
import 'package:pshared/service/payment/multiple.dart';
|
||||
import 'package:pshared/utils/exception.dart';
|
||||
|
||||
|
||||
class MultiQuotationProvider extends ChangeNotifier {
|
||||
static const Duration _autoRefreshLead = Duration(seconds: 5);
|
||||
|
||||
@@ -87,10 +86,13 @@ class MultiQuotationProvider extends ChangeNotifier {
|
||||
|
||||
_setResource(_quotation.copyWith(isLoading: true, error: null));
|
||||
try {
|
||||
final effectiveIdempotencyKey = previewOnly
|
||||
? ''
|
||||
: (idempotencyKey ?? const Uuid().v4());
|
||||
final response = await MultiplePaymentsService.getQuotation(
|
||||
organization.current.id,
|
||||
QuotePaymentsRequest(
|
||||
idempotencyKey: idempotencyKey ?? const Uuid().v4(),
|
||||
idempotencyKey: effectiveIdempotencyKey,
|
||||
metadata: metadata,
|
||||
intents: intents.map((intent) => intent.toDTO()).toList(),
|
||||
previewOnly: previewOnly,
|
||||
|
||||
Reference in New Issue
Block a user