import 'package:json_annotation/json_annotation.dart';

import '../../../base/base_request.dart';

part 'subscribe_check_request.g.dart';

/// 检查订阅状态（IOS使用），验证用户是否可发起支付
@JsonSerializable()
class SubscribeCheckRequest extends BaseRequest {
  @JsonKey(name: 'receiptData')
  String receiptData;

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

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

  SubscribeCheckRequest(this.payPlatform, this.payMethod, this.receiptData);

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