酷店

AlibcConfigService.h 2.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /*
  2. * AlibcConfigService.h
  3. *
  4. * 阿里百川电商
  5. * 项目名称:阿里巴巴电商 AlibcTradeBiz
  6. * 版本号:3.1.1.96
  7. * 发布时间:2017-03-24
  8. * 开发团队:阿里巴巴百川商业化团队
  9. * 阿里巴巴电商SDK答疑群号:1229144682(阿里旺旺)
  10. * Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved.
  11. */
  12. #import <Foundation/Foundation.h>
  13. #import "AlibcTradeTaokeParams.h"
  14. #ifndef AlibcConfigService_h
  15. #define AlibcConfigService_h
  16. #define YBHPSS @"ybhpss" //全链路打通数据参数
  17. @interface AlibcConfigService : NSObject
  18. + (instancetype)sharedConfig;
  19. - (void)updateConfig;
  20. /*包含ttid的拼装规则*/
  21. @property(nonatomic, readonly) NSString *ttid;
  22. @property(nonatomic, strong) NSString *isvVersion;
  23. @property(nonatomic, copy, readwrite) NSString *channelName;
  24. @property(nonatomic, copy, readwrite) NSString *channelType;
  25. @property(nonatomic, readonly) NSString *channel;
  26. @property(nonatomic, assign) BOOL isForceH5;
  27. // TODO:
  28. @property(nonatomic, strong) NSString *alipayRequestSender;
  29. //全局淘客参数
  30. @property(nonatomic, strong) AlibcTradeTaokeParams *taokeParams;
  31. /* isvCode,tag*/
  32. @property(atomic, strong) NSString *isvCode;
  33. /** 系统版本信息,SDK版本 */
  34. @property(atomic, copy) NSString *systemVersion;
  35. //淘客打点是否使用同步换url的方式
  36. - (BOOL)isSyncForTaoke;
  37. //是否检测WebView支付. 如果安装了支付宝且检测支付, 使用支付宝应用完成支付; 否则, 使用WebView完成支付. 默认YES.
  38. - (BOOL)isNeedAlipayNativeForPay;
  39. //设置是否检测WebView支付
  40. - (void)setNeedAlipayNativeForPay:(BOOL)need;
  41. //是否登陆降级(不触发登陆了)
  42. - (BOOL)isLoginDegarade;
  43. //设置是否同步打点
  44. - (void)setIsSyncForTaoke:(BOOL)isSync;
  45. //双11强制降级配置
  46. - (NSString *)double11OpenType;
  47. //存储所有需要isv设置的配置
  48. - (void)setIsvConfig:(id)value forKey:(NSString *)key;
  49. - (NSString *)isvConfigForKey:(NSString *)key;
  50. - (void)setExtUserAgent:(NSString *)extUserAgent;
  51. - (NSString *)extUserAgent;
  52. @end
  53. #endif //AlibcConfigService_h