import 'package:json_annotation/json_annotation.dart';

import '../../../base/app_base_request.dart';


part 'order_pay_request.g.dart';

@JsonSerializable()
class OrderPayRequest extends AppBaseRequest {
  @JsonKey(name: 'itemId')
  int goodsId;

  @JsonKey(name: 'payPlatform')
  int payPlatform;

  @JsonKey(name: 'payMethod')
  int payMethod;

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

  OrderPayRequest(
      {required this.goodsId,
      required this.payPlatform,
      required this.payMethod,this.returnUrl});

  @override
  Map<String, dynamic> toJson() => _$OrderPayRequestToJson(this);
}
