import 'package:json_annotation/json_annotation.dart';

part 'request_pay_response.g.dart';

@JsonSerializable()
class RequestPayResponse {
  /**
   *  @SerializedName("outTradeNo")
      private String orderId;
      @SerializedName("wechatPayQrcodeUrl")
      private String wechatPayQrcodeUrl;
      @SerializedName("wechatPayPrepayJson")
      private String wechatPayPrepayJson;
      @SerializedName("alipayQrcodeHtml")
      private String alipayQrcodeHtml;
      @SerializedName("alipayOrderString")
      private String alipayOrderString;
   */

  @JsonKey(name: 'outTradeNo')
  String outTradeNo;

  @JsonKey(name: 'wechatPayQrcodeUrl')
  String? wechatPayQrcodeUrl;

  @JsonKey(name: 'wechatPayPrepayJson')
  String? wechatPayPrepayJson;

  @JsonKey(name: 'alipayQrcodeHtml')
  String? alipayQrcodeHtml;

  @JsonKey(name: 'alipayOrderString')
  String? alipayOrderString;

  //苹果支付：appAccountToken
  @JsonKey(name: 'appAccountToken')
  String? appAccountToken;

  RequestPayResponse(
      {required this.outTradeNo,
      this.wechatPayQrcodeUrl,
      this.wechatPayPrepayJson,
      this.alipayQrcodeHtml,
      this.alipayOrderString,
      this.appAccountToken});

  factory RequestPayResponse.fromJson(Map<String, dynamic> json) =>
      _$RequestPayResponseFromJson(json);
}
