4 files added
42 files modified
| | |
| | | <?xml version='1.0' encoding='UTF-8'?> |
| | | <config> |
| | | <version val="WA4.10.0" /> |
| | | <version val="WA4.11.0" /> |
| | | <comps> |
| | | |
| | | <comp module="USR" plaf="WINGA" mandatory="YES" value="WASdkUser" desc="WINGA用户账户" /> |
| | |
| | | <key>BinaryPath</key> |
| | | <string>AFNetworking.framework/AFNetworking</string> |
| | | <key>LibraryIdentifier</key> |
| | | <string>ios-arm64</string> |
| | | <key>LibraryPath</key> |
| | | <string>AFNetworking.framework</string> |
| | | <key>SupportedArchitectures</key> |
| | | <array> |
| | | <string>arm64</string> |
| | | </array> |
| | | <key>SupportedPlatform</key> |
| | | <string>ios</string> |
| | | </dict> |
| | | <dict> |
| | | <key>BinaryPath</key> |
| | | <string>AFNetworking.framework/AFNetworking</string> |
| | | <key>LibraryIdentifier</key> |
| | | <string>ios-x86_64-simulator</string> |
| | | <key>LibraryPath</key> |
| | | <string>AFNetworking.framework</string> |
| | |
| | | <string>ios</string> |
| | | <key>SupportedPlatformVariant</key> |
| | | <string>simulator</string> |
| | | </dict> |
| | | <dict> |
| | | <key>BinaryPath</key> |
| | | <string>AFNetworking.framework/AFNetworking</string> |
| | | <key>LibraryIdentifier</key> |
| | | <string>ios-arm64</string> |
| | | <key>LibraryPath</key> |
| | | <string>AFNetworking.framework</string> |
| | | <key>SupportedArchitectures</key> |
| | | <array> |
| | | <string>arm64</string> |
| | | </array> |
| | | <key>SupportedPlatform</key> |
| | | <string>ios</string> |
| | | </dict> |
| | | </array> |
| | | <key>CFBundlePackageType</key> |
| | |
| | | <key>BinaryPath</key> |
| | | <string>FMDB.framework/FMDB</string> |
| | | <key>LibraryIdentifier</key> |
| | | <string>ios-arm64</string> |
| | | <key>LibraryPath</key> |
| | | <string>FMDB.framework</string> |
| | | <key>SupportedArchitectures</key> |
| | | <array> |
| | | <string>arm64</string> |
| | | </array> |
| | | <key>SupportedPlatform</key> |
| | | <string>ios</string> |
| | | </dict> |
| | | <dict> |
| | | <key>BinaryPath</key> |
| | | <string>FMDB.framework/FMDB</string> |
| | | <key>LibraryIdentifier</key> |
| | | <string>ios-x86_64-simulator</string> |
| | | <key>LibraryPath</key> |
| | | <string>FMDB.framework</string> |
| | |
| | | <string>ios</string> |
| | | <key>SupportedPlatformVariant</key> |
| | | <string>simulator</string> |
| | | </dict> |
| | | <dict> |
| | | <key>BinaryPath</key> |
| | | <string>FMDB.framework/FMDB</string> |
| | | <key>LibraryIdentifier</key> |
| | | <string>ios-arm64</string> |
| | | <key>LibraryPath</key> |
| | | <string>FMDB.framework</string> |
| | | <key>SupportedArchitectures</key> |
| | | <array> |
| | | <string>arm64</string> |
| | | </array> |
| | | <key>SupportedPlatform</key> |
| | | <string>ios</string> |
| | | </dict> |
| | | </array> |
| | | <key>CFBundlePackageType</key> |
| | |
| | | extern NSString *const WASDK_GHG_TASKLIST ; |
| | | extern NSString *const WASDK_URL_USER_PASS_INFO ; |
| | | |
| | | |
| | | |
| | | //获取用户代金券信息 |
| | | extern NSString *const WASDK_URL_COINS_USER_INFO ; |
| | | |
| | | //查询引导图 |
| | | extern NSString *const WASDK_URL_COINS_GUIDE_IMAGE ; |
| | | |
| | | // 获取用户兑换码 |
| | | extern NSString *const WASDK_URL_COINS_GET_REDEEM_CODE; |
| | | |
| | | |
| | | |
| | | extern NSString *const WASDK_NEED_PUSERID_AND_PTOKEN ; |
| | | extern NSString *const WASDK_URL_FLOATING_PAGE_SWITCH ; |
| | | extern NSString *const WASDK_URL_CREATE_SIGN ; |
| | |
| | | #import <WACommon/WAReachability.h> |
| | | #import <WACommon/WAWebProgressView.h> |
| | | #import <WACommon/WAWebViewController.h> |
| | | #import <WACommon/WAPaymentHelper.h> |
| | | |
| | | //time:2025/01/07 12:29 ver:4.9.0 |
| | | //time:2025/01/07 12:29 ver:4.11.0 |
| | | // 1 |
| | |
| | | +(UIViewController *)getCurrentVC; |
| | | //返回当前应用程序窗口最顶层的视图控制器 |
| | | +(UIViewController *)getCurrentTopViewController; |
| | | + (UIWindow *)wa_keyWindow; |
| | | +(void)addOrientationNotification:(id)observer selector:(SEL)selector object:(id)object; |
| | | +(void)removeOrientationNotification:(id)observer object:(id)object; |
| | | +(NSString *)getMacAddress; |
| | |
| | | |
| | | // 查看配置项,是否需要展示登录框的返回按钮 |
| | | + (BOOL) needShowloginUIBackButton; |
| | | |
| | | |
| | | @end |
| New file |
| | |
| | | // |
| | | // WAPaymentHelper.h |
| | | // WACommon |
| | | // |
| | | // Created by lpw on 2026/3/10. |
| | | // Copyright © 2026 GHW-T-01. All rights reserved. |
| | | // |
| | | |
| | | #import <Foundation/Foundation.h> |
| | | |
| | | |
| | | NS_ASSUME_NONNULL_BEGIN |
| | | |
| | | @interface WAPaymentHelper : NSObject |
| | | // 获取币种符号 |
| | | + (NSString*)getCurrencySymbol:(NSString*)currencyCode; |
| | | |
| | | /** |
| | | 价格显示 例如 $1.99 |
| | | */ |
| | | + (NSString *)getProductDisplayAmount:(NSString *)currencyCode |
| | | amount:(NSDecimalNumber *)amount; |
| | | /** |
| | | 金额显示,整数去掉小数,否则保留2位小数 |
| | | */ |
| | | + (NSString *)getBigDecimalAmountDisplay:(NSDecimalNumber *)amount ; |
| | | |
| | | |
| | | /** |
| | | 金额放大100倍(分) |
| | | */ |
| | | + (long long)getPriceAmountInCents:(NSDecimalNumber *)amount; |
| | | |
| | | @end |
| | | |
| | | NS_ASSUME_NONNULL_END |
| | |
| | | extern NSString *const WASDK_GHG_TASKLIST ; |
| | | extern NSString *const WASDK_URL_USER_PASS_INFO ; |
| | | |
| | | |
| | | |
| | | //获取用户代金券信息 |
| | | extern NSString *const WASDK_URL_COINS_USER_INFO ; |
| | | |
| | | //查询引导图 |
| | | extern NSString *const WASDK_URL_COINS_GUIDE_IMAGE ; |
| | | |
| | | // 获取用户兑换码 |
| | | extern NSString *const WASDK_URL_COINS_GET_REDEEM_CODE; |
| | | |
| | | |
| | | |
| | | extern NSString *const WASDK_NEED_PUSERID_AND_PTOKEN ; |
| | | extern NSString *const WASDK_URL_FLOATING_PAGE_SWITCH ; |
| | | extern NSString *const WASDK_URL_CREATE_SIGN ; |
| | |
| | | #import <WACommon/WAReachability.h> |
| | | #import <WACommon/WAWebProgressView.h> |
| | | #import <WACommon/WAWebViewController.h> |
| | | #import <WACommon/WAPaymentHelper.h> |
| | | |
| | | //time:2025/01/07 12:29 ver:4.9.0 |
| | | //time:2025/01/07 12:29 ver:4.11.0 |
| | | // 1 |
| | |
| | | +(UIViewController *)getCurrentVC; |
| | | //返回当前应用程序窗口最顶层的视图控制器 |
| | | +(UIViewController *)getCurrentTopViewController; |
| | | + (UIWindow *)wa_keyWindow; |
| | | +(void)addOrientationNotification:(id)observer selector:(SEL)selector object:(id)object; |
| | | +(void)removeOrientationNotification:(id)observer object:(id)object; |
| | | +(NSString *)getMacAddress; |
| | |
| | | |
| | | // 查看配置项,是否需要展示登录框的返回按钮 |
| | | + (BOOL) needShowloginUIBackButton; |
| | | |
| | | |
| | | @end |
| New file |
| | |
| | | // |
| | | // WAPaymentHelper.h |
| | | // WACommon |
| | | // |
| | | // Created by lpw on 2026/3/10. |
| | | // Copyright © 2026 GHW-T-01. All rights reserved. |
| | | // |
| | | |
| | | #import <Foundation/Foundation.h> |
| | | |
| | | |
| | | NS_ASSUME_NONNULL_BEGIN |
| | | |
| | | @interface WAPaymentHelper : NSObject |
| | | // 获取币种符号 |
| | | + (NSString*)getCurrencySymbol:(NSString*)currencyCode; |
| | | |
| | | /** |
| | | 价格显示 例如 $1.99 |
| | | */ |
| | | + (NSString *)getProductDisplayAmount:(NSString *)currencyCode |
| | | amount:(NSDecimalNumber *)amount; |
| | | /** |
| | | 金额显示,整数去掉小数,否则保留2位小数 |
| | | */ |
| | | + (NSString *)getBigDecimalAmountDisplay:(NSDecimalNumber *)amount ; |
| | | |
| | | |
| | | /** |
| | | 金额放大100倍(分) |
| | | */ |
| | | + (long long)getPriceAmountInCents:(NSDecimalNumber *)amount; |
| | | |
| | | @end |
| | | |
| | | NS_ASSUME_NONNULL_END |
| | |
| | | <key>BinaryPath</key> |
| | | <string>WASdkImpl.framework/WASdkImpl</string> |
| | | <key>LibraryIdentifier</key> |
| | | <string>ios-arm64</string> |
| | | <key>LibraryPath</key> |
| | | <string>WASdkImpl.framework</string> |
| | | <key>SupportedArchitectures</key> |
| | | <array> |
| | | <string>arm64</string> |
| | | </array> |
| | | <key>SupportedPlatform</key> |
| | | <string>ios</string> |
| | | </dict> |
| | | <dict> |
| | | <key>BinaryPath</key> |
| | | <string>WASdkImpl.framework/WASdkImpl</string> |
| | | <key>LibraryIdentifier</key> |
| | | <string>ios-x86_64-simulator</string> |
| | | <key>LibraryPath</key> |
| | | <string>WASdkImpl.framework</string> |
| | |
| | | <key>SupportedPlatformVariant</key> |
| | | <string>simulator</string> |
| | | </dict> |
| | | <dict> |
| | | <key>BinaryPath</key> |
| | | <string>WASdkImpl.framework/WASdkImpl</string> |
| | | <key>LibraryIdentifier</key> |
| | | <string>ios-arm64</string> |
| | | <key>LibraryPath</key> |
| | | <string>WASdkImpl.framework</string> |
| | | <key>SupportedArchitectures</key> |
| | | <array> |
| | | <string>arm64</string> |
| | | </array> |
| | | <key>SupportedPlatform</key> |
| | | <string>ios</string> |
| | | </dict> |
| | | </array> |
| | | <key>CFBundlePackageType</key> |
| | | <string>XFWK</string> |
| | |
| | | #import <WACommon/WACommon.h> |
| | | NS_ASSUME_NONNULL_BEGIN |
| | | #define WASdkLog(fmt,...) {\ |
| | | if([WACoreProxy isDebugMode]){\ |
| | | if([WACoreProxy displayLog]){\ |
| | | NSLog((@"WASDK LOG [(version %@) %s ]:" fmt), [WASdkCore getVersion],__FUNCTION__, ##__VA_ARGS__);\ |
| | | [WACoreProxy addLogWithString:[NSString stringWithFormat:(@"(version %@) %s ]:" fmt),[WASdkCore getVersion],__FUNCTION__, ##__VA_ARGS__]];\ |
| | | }\ |
| | |
| | | |
| | | #import <WASdkImpl/WASdkGTMBase64.h> |
| | | |
| | | //2026/02/03 12:29 ver:4.10.0 |
| | | // 1 |
| | | //2026/03/13 12:29 ver:4.11.0 |
| | | // 3 |
| | | |
| | | |
| | | |
| | |
| | | #import <WACommon/WACommon.h> |
| | | NS_ASSUME_NONNULL_BEGIN |
| | | #define WASdkLog(fmt,...) {\ |
| | | if([WACoreProxy isDebugMode]){\ |
| | | if([WACoreProxy displayLog]){\ |
| | | NSLog((@"WASDK LOG [(version %@) %s ]:" fmt), [WASdkCore getVersion],__FUNCTION__, ##__VA_ARGS__);\ |
| | | [WACoreProxy addLogWithString:[NSString stringWithFormat:(@"(version %@) %s ]:" fmt),[WASdkCore getVersion],__FUNCTION__, ##__VA_ARGS__]];\ |
| | | }\ |
| | |
| | | |
| | | #import <WASdkImpl/WASdkGTMBase64.h> |
| | | |
| | | //2026/02/03 12:29 ver:4.10.0 |
| | | // 1 |
| | | //2026/03/13 12:29 ver:4.11.0 |
| | | // 3 |
| | | |
| | | |
| | | |
| New file |
| | |
| | | // |
| | | // WACoinsInfo.h |
| | | // WASdkIntf |
| | | // |
| | | // Created by lpw on 2026/2/27. |
| | | // Copyright © 2026 GHW-T-01. All rights reserved. |
| | | // |
| | | |
| | | #import <Foundation/Foundation.h> |
| | | |
| | | NS_ASSUME_NONNULL_BEGIN |
| | | |
| | | @interface WACoinsInfo : NSObject<NSCopying> |
| | | |
| | | |
| | | @property (nonatomic, assign) long long coinsAmount;// 代金券余额(默认 0) |
| | | @property (nonatomic, assign) BOOL isEnableCoins;//平台币是否开启 NO - 未开启 YES - 已开启 |
| | | |
| | | |
| | | @property (nonatomic, assign) NSInteger isPaidUser;//是否付费用户:0 - 否 1 - 是 |
| | | @property (nonatomic, assign) NSInteger hasCoinsAccount; //是否有代金券账号 0 - 否 1 - 是 |
| | | |
| | | @end |
| | | |
| | | NS_ASSUME_NONNULL_END |
| | |
| | | extern NSString *const WAUserEventUserImportNotification; |
| | | extern NSString *const WAUserEventChangedNotification; |
| | | |
| | | extern NSString *const WAAppDidEnterForegroundNotification; |
| | | extern NSString *const WAAppDidEnterBackgroundNotification; |
| | | |
| | | |
| | | |
| | | |
| | | // SDK类型 |
| | | extern const int WA_SDK_TYPE_FR; // 国外 |
| | |
| | | |
| | | |
| | | extern NSString *const WAPAYCHANNEL_WASANDBOX; |
| | | extern NSString *const WAPAYCHANNEL_WACOINS; |
| | | |
| | | extern NSString *const WAPAYCHANNEL_H5PLATFORM; |
| | | |
| | | |
| | | @interface WAConstants : NSObject { |
| | | |
| | |
| | | |
| | | |
| | | |
| | | |
| | | - (BOOL)isOpenCoins; |
| | | |
| | | - (void)showCoins:(void(^_Nullable)(NSError * _Nullable error))completeBlock; |
| | | |
| | | /*! |
| | | @discussion 展示coins购买引导弹窗 |
| | | |
| | | */ |
| | | - (void)showCoinsGuide:(void(^_Nullable)(NSError * _Nullable error))completeBlock; |
| | | |
| | | /*! |
| | | @discussion 获取coins余额和启用状态信息 |
| | | */ |
| | | - (void)getCoinsInfo:(void(^_Nullable)(NSError * _Nullable error, WACoinsInfo * _Nullable coinsInfo))completeBlock; |
| | | |
| | | |
| | | |
| | | /*! |
| | | @discussion 监听coins余额和开启状态变更(当余额或开启状态发生变化时才通知CP) |
| | | */ |
| | | |
| | | - (void)listenCoinsChange:(void(^_Nullable)(NSError * _Nullable error, WACoinsInfo * _Nullable coinsInfo))callback; |
| | | |
| | | // 取消监听 |
| | | - (void)removeCoinsChangeListener; |
| | | |
| | | @end |
| | |
| | | |
| | | #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 *localizedDescription NS_AVAILABLE_IOS(3_0); //商品描述 |
| | | |
| | | @property(nonatomic, strong) NSString *localizedTitle 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) NSDecimalNumber *price NS_AVAILABLE_IOS(3_0); //商品价格 |
| | | |
| | | //@property(nonatomic, strong) NSLocale *priceLocale NS_AVAILABLE_IOS(3_0); |
| | | |
| | | @property(nonatomic, strong) NSString *productIdentifier NS_AVAILABLE_IOS(3_0); |
| | | @property(nonatomic, strong) NSString *productIdentifier NS_AVAILABLE_IOS(3_0); //商品id |
| | | |
| | | // YES if this product has content downloadable using SKDownload |
| | | //@property(nonatomic) BOOL downloadable NS_AVAILABLE_IOS(6_0); |
| | | |
| | | // Sizes in bytes (NSNumber [long long]) of the downloads available for this product |
| | | //@property(nonatomic, strong) NSArray<NSNumber *> *downloadContentLengths NS_AVAILABLE_IOS(6_0); |
| | | |
| | | // Version of the downloadable content |
| | | //@property(nonatomic, strong) NSString *downloadContentVersion NS_AVAILABLE_IOS(6_0); |
| | | // payment method |
| | | @property(nonatomic, strong) NSArray<WAPayChannel *> *payChannels NS_AVAILABLE_IOS(6_0); |
| | | @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 |
| | |
| | | @property(nonatomic)NSInteger passGuideMode;//0-跳客服;1-复制充值中心短链 2 关闭 |
| | | @property(nonatomic,copy)NSString * passPageGoto ; |
| | | |
| | | |
| | | |
| | | // coins 功能 |
| | | @property(nonatomic)NSInteger isOpenCoins;//是否开启coins:0:关闭 1:全部打开 2:仅安卓开启 3:仅IOS开启 不返回默认关闭 |
| | | @property(nonatomic,copy)NSString * coinsValueDesc ;//coins价值说明 |
| | | @property(nonatomic)double coinsLargePaymentThreshold;//coins大额支付阈值,金额,代金券不足的时候,购买这个商品的金额超过这个值时 |
| | | @property(nonatomic)NSInteger coinsRechargeType;//0- 跳转充值中心(默认);1-复制跳转充值中心链接 2 AI Help |
| | | |
| | | @end |
| | |
| | | @property (nonatomic, strong) NSString *channelProductId; // 支付渠道平台产品编号 |
| | | @property (nonatomic, assign) NSInteger payChannelId; // 支付方式编号 |
| | | @property (nonatomic, strong) NSString *payChannelName; // 支付方式名称 如APPLE 、GOOGLE |
| | | @property (nonatomic, assign) NSInteger payMethod; // 支付方式 1 native、2 webview |
| | | @property (nonatomic, assign) NSInteger payMethod; // 支付方式 1 native、2 webview -1 充值中心支付 |
| | | @property (nonatomic, assign) NSInteger status; // 状态 -1 关闭 1 打开 |
| | | @property (nonatomic, strong) NSString *logoUrl; // 支付方式图标下载地址 |
| | | |
| | | |
| | | @property (nonatomic, strong) NSString *currency; //币种 |
| | | @property (nonatomic, assign) double discountAmount; // 折扣后金额 *100,为购买这个商品需要消耗的待见金额 |
| | | @property (nonatomic, assign) NSInteger discount; // 折扣价格 |
| | | @property (nonatomic, assign) double amount; // 基准金额 展示需要$xx 购买代金券的时候,使用apple支付渠道的数据 |
| | | |
| | | |
| | | |
| | | |
| | | @end |
| | |
| | | #import <WASdkIntf/WACustomerResult.h> |
| | | #import <WASdkIntf/WAPlatformAccountInfo.h> |
| | | #import <WASdkIntf/WAPassPlatformInfo.h> |
| | | #import <WASdkIntf/WACoinsInfo.h> |
| | | |
| | | |
| | | //! Project version number for WASdkIntf. |
| | |
| | | |
| | | // In this header, you should import all the public headers of your framework using statements like #import <WASdkIntf/PublicHeader.h> |
| | | |
| | | //2026/02/03 12:29 ver:4.10.0 |
| | | //2026/03/13 12:29 ver:4.11.0 |
| | | // 2 |
| | |
| | | extern NSString *const WAEvent_GHW_FLOATING_PAGE_UPDATE_NOT_REMIND ;// 浮窗勾选不再提醒状态更新 |
| | | extern NSString *const WAEvent_GHW_FLOATING_PAGE_CALL_SHOW_ADS;// 浮窗调用广告接口 |
| | | |
| | | // 代金券有关 |
| | | extern NSString *const WAEvent_GHW_COINS_USE_ALERT; // coins足够 |
| | | extern NSString *const WAEvent_GHW_COINS_INSUFFICIENT_ALERT;// coins不足 |
| | | |
| | | extern NSString *const WAEventParameterNameCoinsInsufficientChoose ; |
| | | |
| | | extern NSString *const WAEventParameterNameRegistrationMethod; |
| | | |
| | |
| | | #import <WASdkIntf/WACustomerResult.h> |
| | | #import <WASdkIntf/WAPlatformAccountInfo.h> |
| | | #import <WASdkIntf/WAPassPlatformInfo.h> |
| | | #import <WASdkIntf/WACoinsInfo.h> |
| | | |
| | | |
| | | |
| | |
| | | + (void)showPassUserGuide:(void(^_Nullable)(NSError * _Nullable error))completeBlock; |
| | | |
| | | |
| | | /*! |
| | | @discussion coins是否开启 |
| | | */ |
| | | + (BOOL)isOpenCoins; |
| | | |
| | | /*! |
| | | @discussion 用户中心,展示coins |
| | | */ |
| | | + (void)showCoins:(void(^_Nullable)(NSError * _Nullable error))completeBlock; |
| | | |
| | | |
| | | |
| | | /*! |
| | | @discussion 展示coins购买引导弹窗 |
| | | |
| | | */ |
| | | + (void)showCoinsGuide:(void(^_Nullable)(NSError * _Nullable error))completeBlock; |
| | | |
| | | /*! |
| | | @discussion 获取coins余额和启用状态信息 |
| | | */ |
| | | + (void)getCoinsInfo:(void(^_Nullable)(NSError * _Nullable error, WACoinsInfo * _Nullable coinsInfo))completeBlock; |
| | | |
| | | |
| | | |
| | | /*! |
| | | @discussion 监听coins余额和开启状态变更(当余额或开启状态发生变化时才通知CP) |
| | | */ |
| | | |
| | | + (void)listenCoinsChange:(void(^_Nullable)(NSError * _Nullable error, WACoinsInfo * _Nullable coinsInfo))callback; |
| | | |
| | | // 取消监听 |
| | | + (void)removeCoinsChangeListener; |
| | | |
| | | |
| | | @end |
| New file |
| | |
| | | // |
| | | // WACoinsInfo.h |
| | | // WASdkIntf |
| | | // |
| | | // Created by lpw on 2026/2/27. |
| | | // Copyright © 2026 GHW-T-01. All rights reserved. |
| | | // |
| | | |
| | | #import <Foundation/Foundation.h> |
| | | |
| | | NS_ASSUME_NONNULL_BEGIN |
| | | |
| | | @interface WACoinsInfo : NSObject<NSCopying> |
| | | |
| | | |
| | | @property (nonatomic, assign) long long coinsAmount;// 代金券余额(默认 0) |
| | | @property (nonatomic, assign) BOOL isEnableCoins;//平台币是否开启 NO - 未开启 YES - 已开启 |
| | | |
| | | |
| | | @property (nonatomic, assign) NSInteger isPaidUser;//是否付费用户:0 - 否 1 - 是 |
| | | @property (nonatomic, assign) NSInteger hasCoinsAccount; //是否有代金券账号 0 - 否 1 - 是 |
| | | |
| | | @end |
| | | |
| | | NS_ASSUME_NONNULL_END |
| | |
| | | extern NSString *const WAUserEventUserImportNotification; |
| | | extern NSString *const WAUserEventChangedNotification; |
| | | |
| | | extern NSString *const WAAppDidEnterForegroundNotification; |
| | | extern NSString *const WAAppDidEnterBackgroundNotification; |
| | | |
| | | |
| | | |
| | | |
| | | // SDK类型 |
| | | extern const int WA_SDK_TYPE_FR; // 国外 |
| | |
| | | |
| | | |
| | | extern NSString *const WAPAYCHANNEL_WASANDBOX; |
| | | extern NSString *const WAPAYCHANNEL_WACOINS; |
| | | |
| | | extern NSString *const WAPAYCHANNEL_H5PLATFORM; |
| | | |
| | | |
| | | @interface WAConstants : NSObject { |
| | | |
| | |
| | | |
| | | |
| | | |
| | | |
| | | - (BOOL)isOpenCoins; |
| | | |
| | | - (void)showCoins:(void(^_Nullable)(NSError * _Nullable error))completeBlock; |
| | | |
| | | /*! |
| | | @discussion 展示coins购买引导弹窗 |
| | | |
| | | */ |
| | | - (void)showCoinsGuide:(void(^_Nullable)(NSError * _Nullable error))completeBlock; |
| | | |
| | | /*! |
| | | @discussion 获取coins余额和启用状态信息 |
| | | */ |
| | | - (void)getCoinsInfo:(void(^_Nullable)(NSError * _Nullable error, WACoinsInfo * _Nullable coinsInfo))completeBlock; |
| | | |
| | | |
| | | |
| | | /*! |
| | | @discussion 监听coins余额和开启状态变更(当余额或开启状态发生变化时才通知CP) |
| | | */ |
| | | |
| | | - (void)listenCoinsChange:(void(^_Nullable)(NSError * _Nullable error, WACoinsInfo * _Nullable coinsInfo))callback; |
| | | |
| | | // 取消监听 |
| | | - (void)removeCoinsChangeListener; |
| | | |
| | | @end |
| | |
| | | |
| | | #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 *localizedDescription NS_AVAILABLE_IOS(3_0); //商品描述 |
| | | |
| | | @property(nonatomic, strong) NSString *localizedTitle 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) NSDecimalNumber *price NS_AVAILABLE_IOS(3_0); //商品价格 |
| | | |
| | | //@property(nonatomic, strong) NSLocale *priceLocale NS_AVAILABLE_IOS(3_0); |
| | | |
| | | @property(nonatomic, strong) NSString *productIdentifier NS_AVAILABLE_IOS(3_0); |
| | | @property(nonatomic, strong) NSString *productIdentifier NS_AVAILABLE_IOS(3_0); //商品id |
| | | |
| | | // YES if this product has content downloadable using SKDownload |
| | | //@property(nonatomic) BOOL downloadable NS_AVAILABLE_IOS(6_0); |
| | | |
| | | // Sizes in bytes (NSNumber [long long]) of the downloads available for this product |
| | | //@property(nonatomic, strong) NSArray<NSNumber *> *downloadContentLengths NS_AVAILABLE_IOS(6_0); |
| | | |
| | | // Version of the downloadable content |
| | | //@property(nonatomic, strong) NSString *downloadContentVersion NS_AVAILABLE_IOS(6_0); |
| | | // payment method |
| | | @property(nonatomic, strong) NSArray<WAPayChannel *> *payChannels NS_AVAILABLE_IOS(6_0); |
| | | @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 |
| | |
| | | @property(nonatomic)NSInteger passGuideMode;//0-跳客服;1-复制充值中心短链 2 关闭 |
| | | @property(nonatomic,copy)NSString * passPageGoto ; |
| | | |
| | | |
| | | |
| | | // coins 功能 |
| | | @property(nonatomic)NSInteger isOpenCoins;//是否开启coins:0:关闭 1:全部打开 2:仅安卓开启 3:仅IOS开启 不返回默认关闭 |
| | | @property(nonatomic,copy)NSString * coinsValueDesc ;//coins价值说明 |
| | | @property(nonatomic)double coinsLargePaymentThreshold;//coins大额支付阈值,金额,代金券不足的时候,购买这个商品的金额超过这个值时 |
| | | @property(nonatomic)NSInteger coinsRechargeType;//0- 跳转充值中心(默认);1-复制跳转充值中心链接 2 AI Help |
| | | |
| | | @end |
| | |
| | | @property (nonatomic, strong) NSString *channelProductId; // 支付渠道平台产品编号 |
| | | @property (nonatomic, assign) NSInteger payChannelId; // 支付方式编号 |
| | | @property (nonatomic, strong) NSString *payChannelName; // 支付方式名称 如APPLE 、GOOGLE |
| | | @property (nonatomic, assign) NSInteger payMethod; // 支付方式 1 native、2 webview |
| | | @property (nonatomic, assign) NSInteger payMethod; // 支付方式 1 native、2 webview -1 充值中心支付 |
| | | @property (nonatomic, assign) NSInteger status; // 状态 -1 关闭 1 打开 |
| | | @property (nonatomic, strong) NSString *logoUrl; // 支付方式图标下载地址 |
| | | |
| | | |
| | | @property (nonatomic, strong) NSString *currency; //币种 |
| | | @property (nonatomic, assign) double discountAmount; // 折扣后金额 *100,为购买这个商品需要消耗的待见金额 |
| | | @property (nonatomic, assign) NSInteger discount; // 折扣价格 |
| | | @property (nonatomic, assign) double amount; // 基准金额 展示需要$xx 购买代金券的时候,使用apple支付渠道的数据 |
| | | |
| | | |
| | | |
| | | |
| | | @end |
| | |
| | | #import <WASdkIntf/WACustomerResult.h> |
| | | #import <WASdkIntf/WAPlatformAccountInfo.h> |
| | | #import <WASdkIntf/WAPassPlatformInfo.h> |
| | | #import <WASdkIntf/WACoinsInfo.h> |
| | | |
| | | |
| | | //! Project version number for WASdkIntf. |
| | |
| | | |
| | | // In this header, you should import all the public headers of your framework using statements like #import <WASdkIntf/PublicHeader.h> |
| | | |
| | | //2026/02/03 12:29 ver:4.10.0 |
| | | //2026/03/13 12:29 ver:4.11.0 |
| | | // 2 |
| | |
| | | extern NSString *const WAEvent_GHW_FLOATING_PAGE_UPDATE_NOT_REMIND ;// 浮窗勾选不再提醒状态更新 |
| | | extern NSString *const WAEvent_GHW_FLOATING_PAGE_CALL_SHOW_ADS;// 浮窗调用广告接口 |
| | | |
| | | // 代金券有关 |
| | | extern NSString *const WAEvent_GHW_COINS_USE_ALERT; // coins足够 |
| | | extern NSString *const WAEvent_GHW_COINS_INSUFFICIENT_ALERT;// coins不足 |
| | | |
| | | extern NSString *const WAEventParameterNameCoinsInsufficientChoose ; |
| | | |
| | | extern NSString *const WAEventParameterNameRegistrationMethod; |
| | | |
| | |
| | | #import <WASdkIntf/WACustomerResult.h> |
| | | #import <WASdkIntf/WAPlatformAccountInfo.h> |
| | | #import <WASdkIntf/WAPassPlatformInfo.h> |
| | | #import <WASdkIntf/WACoinsInfo.h> |
| | | |
| | | |
| | | |
| | |
| | | + (void)showPassUserGuide:(void(^_Nullable)(NSError * _Nullable error))completeBlock; |
| | | |
| | | |
| | | /*! |
| | | @discussion coins是否开启 |
| | | */ |
| | | + (BOOL)isOpenCoins; |
| | | |
| | | /*! |
| | | @discussion 用户中心,展示coins |
| | | */ |
| | | + (void)showCoins:(void(^_Nullable)(NSError * _Nullable error))completeBlock; |
| | | |
| | | |
| | | |
| | | /*! |
| | | @discussion 展示coins购买引导弹窗 |
| | | |
| | | */ |
| | | + (void)showCoinsGuide:(void(^_Nullable)(NSError * _Nullable error))completeBlock; |
| | | |
| | | /*! |
| | | @discussion 获取coins余额和启用状态信息 |
| | | */ |
| | | + (void)getCoinsInfo:(void(^_Nullable)(NSError * _Nullable error, WACoinsInfo * _Nullable coinsInfo))completeBlock; |
| | | |
| | | |
| | | |
| | | /*! |
| | | @discussion 监听coins余额和开启状态变更(当余额或开启状态发生变化时才通知CP) |
| | | */ |
| | | |
| | | + (void)listenCoinsChange:(void(^_Nullable)(NSError * _Nullable error, WACoinsInfo * _Nullable coinsInfo))callback; |
| | | |
| | | // 取消监听 |
| | | + (void)removeCoinsChangeListener; |
| | | |
| | | |
| | | @end |