multiquote service
This commit is contained in:
25
frontend/pshared/lib/api/requests/payment/quotes.dart
Normal file
25
frontend/pshared/lib/api/requests/payment/quotes.dart
Normal file
@@ -0,0 +1,25 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
import 'package:pshared/api/requests/payment/base.dart';
|
||||
import 'package:pshared/data/dto/payment/intent/payment.dart';
|
||||
|
||||
part 'quotes.g.dart';
|
||||
|
||||
|
||||
@JsonSerializable()
|
||||
class QuotePaymentsRequest extends PaymentBaseRequest {
|
||||
final List<PaymentIntentDTO> intents;
|
||||
|
||||
@JsonKey(defaultValue: false)
|
||||
final bool previewOnly;
|
||||
|
||||
const QuotePaymentsRequest({
|
||||
required super.idempotencyKey,
|
||||
super.metadata,
|
||||
required this.intents,
|
||||
this.previewOnly = false,
|
||||
});
|
||||
|
||||
factory QuotePaymentsRequest.fromJson(Map<String, dynamic> json) => _$QuotePaymentsRequestFromJson(json);
|
||||
@override
|
||||
Map<String, dynamic> toJson() => _$QuotePaymentsRequestToJson(this);
|
||||
}
|
||||
Reference in New Issue
Block a user