import 'package:json_annotation/json_annotation.dart';

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

part 'subscribe_resume_request.g.dart';

/// 恢复订阅（IOS使用）
@JsonSerializable()
class SubscribeResumeRequest extends AppBaseRequest {
  @JsonKey(name: 'receiptData')
  String receiptData;

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

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

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

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