//
|
// GHWSdkIapProduct.h
|
// GHWSdk
|
//
|
// Created by GHW-T-01 on 15/5/28.
|
// Copyright (c) 2015年 Wuyx. All rights reserved.
|
//
|
|
#import <Foundation/Foundation.h>
|
#import <WASdkIntf/WAPayChannel.h>
|
#import <WACommon/WAPaymentHelper.h>
|
#import "WAConstants.h"
|
|
/*!
|
@discussion WAIapProduct 商品类
|
- - -
|
*/
|
@interface WAIapProduct : NSObject
|
@property(nonatomic, strong) NSString *localizedDescription NS_AVAILABLE_IOS(3_0); //商品描述
|
|
@property(nonatomic, strong) NSString *localizedTitle NS_AVAILABLE_IOS(3_0); //商品标题
|
|
@property(nonatomic, strong) NSDecimalNumber *price NS_AVAILABLE_IOS(3_0); //商品价格
|
|
|
@property(nonatomic, strong) NSString *productIdentifier NS_AVAILABLE_IOS(3_0); //商品id
|
|
// payment method
|
@property(nonatomic, strong) NSArray<WAPayChannel *> *payChannels NS_AVAILABLE_IOS(6_0); //支付渠道
|
|
@property(nonatomic, strong) NSDecimalNumber *productDiscountAmount;//商品打折后的价格”
|
@property(nonatomic, strong) NSDecimalNumber *productAmount;//商品价格
|
|
@property (nonatomic, assign) NSInteger productType; // 商品类型(1 - 普通商品(默认),2 - 代金券商品)
|
@property (nonatomic, assign) NSInteger voucherAmount; // 代金券数额,购买后,可以得到多少数额
|
@property(nonatomic, strong) NSString *productCurrencyCode; //币种
|
@property(nonatomic, strong) WAPayChannel *coinsH5payChannel; //h5支付渠道(目前用于匹配最佳代金券商品金额展示,为了解决充值中心支付方式在app内不开,没有返回这个支付方式,导致匹配最优代金券时候,支付方式为nil)
|
|
|
#pragma mark - Apple渠道基准价格(分)
|
- (long long)getAppleAmountIncents;
|
|
#pragma mark - 获取代金券渠道
|
- (nullable WAPayChannel *)getCoinsChannel;
|
|
#pragma mark - 获取代金券渠道 扩展
|
- (nullable WAPayChannel *)getPayChannel:(NSString *_Nonnull)channelName;
|
|
#pragma mark - Apple金额显示
|
- (NSString *_Nullable)getAppleAmountDisplay;
|
|
#pragma mark - 充值中心折扣价显示
|
- (NSString *_Nullable)getRechargeDiscountAmountDisplay;
|
|
#pragma mark - 消耗代金券金额(Coins渠道discountAmount)
|
- (long long)getCostVoucherAmount;
|
|
|
|
@end
|