Skip to content
This repository was archived by the owner on Dec 12, 2024. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6778d10

Browse files
authoredJul 25, 2024··
fix: temporarily add PaymentInstruction back to QuoteDetails (#55)
1 parent d421ca1 commit 6778d10

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
 

‎lib/src/protocol/models/message_data.dart

+7
Original file line numberDiff line numberDiff line change
@@ -209,12 +209,14 @@ class QuoteDetails {
209209
final String subtotal;
210210
final String total;
211211
final String? fee;
212+
final PaymentInstruction? paymentInstruction;
212213

213214
QuoteDetails({
214215
required this.currencyCode,
215216
required this.subtotal,
216217
required this.total,
217218
this.fee,
219+
this.paymentInstruction,
218220
});
219221

220222
factory QuoteDetails.fromJson(Map<String, dynamic> json) {
@@ -223,6 +225,9 @@ class QuoteDetails {
223225
subtotal: json['subtotal'],
224226
total: json['total'],
225227
fee: json['fee'],
228+
paymentInstruction: json['paymentInstruction'] != null
229+
? PaymentInstruction.fromJson(json['paymentInstruction'])
230+
: null,
226231
);
227232
}
228233

@@ -232,6 +237,8 @@ class QuoteDetails {
232237
'subtotal': subtotal,
233238
'total': total,
234239
if (fee != null) 'fee': fee,
240+
if (paymentInstruction != null)
241+
'paymentInstruction': paymentInstruction?.toJson(),
235242
};
236243
}
237244
}

0 commit comments

Comments
 (0)
This repository has been archived.