Files
sendico/frontend/pshared/lib/api/responses/payment/quotation.dart
2026-01-21 16:50:47 +01:00

21 lines
715 B
Dart

import 'package:json_annotation/json_annotation.dart';
import 'package:pshared/api/responses/base.dart';
import 'package:pshared/api/responses/token.dart';
import 'package:pshared/data/dto/payment/payment_quote.dart';
part 'quotation.g.dart';
@JsonSerializable(explicitToJson: true)
class PaymentQuoteResponse extends BaseAuthorizedResponse {
final PaymentQuoteDTO quote;
final String idempotencyKey;
const PaymentQuoteResponse({required super.accessToken, required this.idempotencyKey, required this.quote});
factory PaymentQuoteResponse.fromJson(Map<String, dynamic> json) => _$PaymentQuoteResponseFromJson(json);
@override
Map<String, dynamic> toJson() => _$PaymentQuoteResponseToJson(this);
}