Separated request idempotency from intent identity
This commit is contained in:
@@ -91,12 +91,14 @@ class QuotationProvider extends ChangeNotifier {
|
||||
if (!_organizations.isOrganizationSet) throw StateError('Organization is not set');
|
||||
_lastIntent = intent;
|
||||
try {
|
||||
final intentKey = _buildIntentKey(intent);
|
||||
_setResource(_quotation.copyWith(isLoading: true, error: null));
|
||||
final response = await QuotationService.getQuotation(
|
||||
_organizations.current.id,
|
||||
QuotePaymentRequest(
|
||||
idempotencyKey: Uuid().v4(),
|
||||
intent: intent.toDTO(),
|
||||
intentKey: intentKey,
|
||||
),
|
||||
);
|
||||
_isLoaded = true;
|
||||
|
||||
Reference in New Issue
Block a user