//
//  IapStoreModel.h
//  EGirl
//
//  Created by donglyu on 2020/6/24.
//  Copyright © 2020 EGirl. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

#pragma mark - 验证请求模型
@class IapStoreModel;
@interface IapVerifyModel : NSObject

@property (nonatomic, strong) NSArray <IapStoreModel *>*transactions;

@property (nonatomic, copy) NSString *receipt;

@end


/// 请求模型
@interface IapStoreModel : NSObject

@property (nonatomic, assign) NSInteger userId;

/// ⭐required
//@property (nonatomic, copy) NSString *transactionId;
/// ⭐required 交易Id
//@property (nonatomic, copy) NSString *tradeNo;

@end
#pragma mark - 持久化

/// 持久化此对象实例
@interface PaymentTransactionModel : NSObject<NSCoding>

@property (nonatomic, assign) NSInteger userId;

@property (nonatomic, copy) NSString *transactionId;
/// 交易Id
@property (nonatomic, copy) NSString *tradeNo;

/// 商品Id
@property (nonatomic, copy) NSString *productId;

@property (nonatomic, assign) NSInteger tradeTime;

/// 主要是transactionId
- (void)UpdateDataForm:(PaymentTransactionModel *)model;

@end

NS_ASSUME_NONNULL_END
