This commit is contained in:
Arseni
2026-01-22 00:00:42 +03:00
parent 6284625977
commit 636afe5d25
4 changed files with 14 additions and 18 deletions

View File

@@ -5,8 +5,9 @@ import 'package:pshared/models/payment/quote/quotes.dart';
extension PaymentQuotesDTOMapper on PaymentQuotesDTO {
PaymentQuotes toDomain() => PaymentQuotes(
PaymentQuotes toDomain({String? idempotencyKey}) => PaymentQuotes(
quoteRef: quoteRef,
idempotencyKey: idempotencyKey,
aggregate: aggregate?.toDomain(),
quotes: quotes?.map((quote) => quote.toDomain()).toList(),
);