lpw
23 hours ago 303b8f43a0f25b1bd791061e0d0ba3d862238386
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
//
//  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