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.quote,
    this.idempotencyKey,
  });

  factory PaymentQuoteResponse.fromJson(Map<String, dynamic> json) => _$PaymentQuoteResponseFromJson(json);
  @override
  Map<String, dynamic> toJson() => _$PaymentQuoteResponseToJson(this);
}
