26 lines
719 B
Dart
26 lines
719 B
Dart
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);
|
|
}
|