@amazon-devices/keplerscript-appstore-iap-lib 2.12.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/LICENSE +7 -0
  2. package/SystemBundles/453be002f64ad366efa41022a9e3a1aa0c200b706a3a12fdf4a93650adb4985c.bundle +15594 -0
  3. package/SystemBundles/453be002f64ad366efa41022a9e3a1aa0c200b706a3a12fdf4a93650adb4985c.bundle.map +1 -0
  4. package/SystemModules/amzn__keplerscript-appstore-iap-lib-2.modules.txt +48 -0
  5. package/SystemModules/amzn__keplerscript-appstore-iap-lib-2.private.modules.txt +110 -0
  6. package/SystemModules/keplerscript-system-bundle-config.json +7 -0
  7. package/dist/PurchasingService.d.ts +87 -0
  8. package/dist/PurchasingService.js +1 -0
  9. package/dist/hooks/useIapProductData.d.ts +37 -0
  10. package/dist/hooks/useIapProductData.js +1 -0
  11. package/dist/hooks/useIapPurchaseUpdates.d.ts +40 -0
  12. package/dist/hooks/useIapPurchaseUpdates.js +1 -0
  13. package/dist/hooks/useIapUserData.d.ts +40 -0
  14. package/dist/hooks/useIapUserData.js +1 -0
  15. package/dist/index.d.ts +5 -0
  16. package/dist/index.js +1 -0
  17. package/dist/internal/NativeIAPRequestHandler.d.ts +2 -0
  18. package/dist/internal/NativeIAPRequestHandler.js +1 -0
  19. package/dist/internal/PurchasingManager.d.ts +1 -0
  20. package/dist/internal/PurchasingManager.js +1 -0
  21. package/dist/internal/constants/IAPSDKConstants.d.ts +1 -0
  22. package/dist/internal/constants/IAPSDKConstants.js +1 -0
  23. package/dist/internal/internalTypes/InternalIAPTypes.d.ts +1 -0
  24. package/dist/internal/internalTypes/InternalIAPTypes.js +1 -0
  25. package/dist/internal/listeners/IResponseListener.d.ts +5 -0
  26. package/dist/internal/listeners/IResponseListener.js +1 -0
  27. package/dist/internal/listeners/InternalModifySubscriptionResponseListener.d.ts +14 -0
  28. package/dist/internal/listeners/InternalModifySubscriptionResponseListener.js +1 -0
  29. package/dist/internal/listeners/InternalPurchaseResponseListener.d.ts +14 -0
  30. package/dist/internal/listeners/InternalPurchaseResponseListener.js +1 -0
  31. package/dist/internal/listeners/ModifySubscriptionResponseListener.d.ts +20 -0
  32. package/dist/internal/listeners/ModifySubscriptionResponseListener.js +1 -0
  33. package/dist/internal/listeners/PurchaseResponseListener.d.ts +18 -0
  34. package/dist/internal/listeners/PurchaseResponseListener.js +1 -0
  35. package/dist/internal/logger/IAPSDKLogger.d.ts +1 -0
  36. package/dist/internal/logger/IAPSDKLogger.js +1 -0
  37. package/dist/internal/operations/handler/APIBaseRequestHandler.d.ts +1 -0
  38. package/dist/internal/operations/handler/APIBaseRequestHandler.js +1 -0
  39. package/dist/internal/operations/handler/basicAck/BasicAckRequestHandler.d.ts +1 -0
  40. package/dist/internal/operations/handler/basicAck/BasicAckRequestHandler.js +1 -0
  41. package/dist/internal/operations/handler/getProductData/GetProductDataRequestHandler.d.ts +1 -0
  42. package/dist/internal/operations/handler/getProductData/GetProductDataRequestHandler.js +1 -0
  43. package/dist/internal/operations/handler/getPurchaseUpdates/GetPurchaseUpdatesRequestHandler.d.ts +1 -0
  44. package/dist/internal/operations/handler/getPurchaseUpdates/GetPurchaseUpdatesRequestHandler.js +1 -0
  45. package/dist/internal/operations/handler/getPurchaseUpdatesAck/GetPurchaseUpdatesAckRequestHandler.d.ts +1 -0
  46. package/dist/internal/operations/handler/getPurchaseUpdatesAck/GetPurchaseUpdatesAckRequestHandler.js +1 -0
  47. package/dist/internal/operations/handler/getUserData/GetUserDataRequestHandler.d.ts +1 -0
  48. package/dist/internal/operations/handler/getUserData/GetUserDataRequestHandler.js +1 -0
  49. package/dist/internal/operations/handler/modifySubscription/ModifySubscriptionRequestHandler.d.ts +1 -0
  50. package/dist/internal/operations/handler/modifySubscription/ModifySubscriptionRequestHandler.js +1 -0
  51. package/dist/internal/operations/handler/notifyFulfillment/NotifyFulfillmentRequestHandler.d.ts +1 -0
  52. package/dist/internal/operations/handler/notifyFulfillment/NotifyFulfillmentRequestHandler.js +1 -0
  53. package/dist/internal/operations/handler/purchase/PurchaseRequestHandler.d.ts +1 -0
  54. package/dist/internal/operations/handler/purchase/PurchaseRequestHandler.js +1 -0
  55. package/dist/internal/operations/handler/userProfileAccess/UserProfileAccessRequestHandler.d.ts +1 -0
  56. package/dist/internal/operations/handler/userProfileAccess/UserProfileAccessRequestHandler.js +1 -0
  57. package/dist/internal/operations/model/APIReqRespBaseModel.d.ts +19 -0
  58. package/dist/internal/operations/model/APIReqRespBaseModel.js +1 -0
  59. package/dist/internal/operations/model/basicAck/BasicAckReqRespBaseModel.d.ts +1 -0
  60. package/dist/internal/operations/model/basicAck/BasicAckReqRespBaseModel.js +1 -0
  61. package/dist/internal/operations/model/basicAck/BasicAckReqRespModelV2.d.ts +1 -0
  62. package/dist/internal/operations/model/basicAck/BasicAckReqRespModelV2.js +1 -0
  63. package/dist/internal/operations/model/getProductData/GetProductDataReqRespBaseModel.d.ts +1 -0
  64. package/dist/internal/operations/model/getProductData/GetProductDataReqRespBaseModel.js +1 -0
  65. package/dist/internal/operations/model/getProductData/GetProductDataReqRespModelV2.d.ts +1 -0
  66. package/dist/internal/operations/model/getProductData/GetProductDataReqRespModelV2.js +1 -0
  67. package/dist/internal/operations/model/getPurchaseUpdates/GetPurchaseUpdatesReqRespBaseModel.d.ts +1 -0
  68. package/dist/internal/operations/model/getPurchaseUpdates/GetPurchaseUpdatesReqRespBaseModel.js +1 -0
  69. package/dist/internal/operations/model/getPurchaseUpdates/GetPurchaseUpdatesReqRespModelV2.d.ts +1 -0
  70. package/dist/internal/operations/model/getPurchaseUpdates/GetPurchaseUpdatesReqRespModelV2.js +1 -0
  71. package/dist/internal/operations/model/getPurchaseUpdatesAck/GetPurchaseUpdatesAckReqRespBaseModel.d.ts +1 -0
  72. package/dist/internal/operations/model/getPurchaseUpdatesAck/GetPurchaseUpdatesAckReqRespBaseModel.js +1 -0
  73. package/dist/internal/operations/model/getPurchaseUpdatesAck/GetPurchaseUpdatesAckReqRespModelV2.d.ts +1 -0
  74. package/dist/internal/operations/model/getPurchaseUpdatesAck/GetPurchaseUpdatesAckReqRespModelV2.js +1 -0
  75. package/dist/internal/operations/model/getUserData/GetUserDataReqRespBaseModel.d.ts +1 -0
  76. package/dist/internal/operations/model/getUserData/GetUserDataReqRespBaseModel.js +1 -0
  77. package/dist/internal/operations/model/getUserData/GetUserDataReqRespModelV2.d.ts +1 -0
  78. package/dist/internal/operations/model/getUserData/GetUserDataReqRespModelV2.js +1 -0
  79. package/dist/internal/operations/model/modifySubscription/ModifySubscriptionReqRespBaseModel.d.ts +1 -0
  80. package/dist/internal/operations/model/modifySubscription/ModifySubscriptionReqRespBaseModel.js +1 -0
  81. package/dist/internal/operations/model/modifySubscription/ModifySubscriptionReqRespModelV2.d.ts +1 -0
  82. package/dist/internal/operations/model/modifySubscription/ModifySubscriptionReqRespModelV2.js +1 -0
  83. package/dist/internal/operations/model/notifyFulfillment/NotifyFulfillmentReqRespBaseModel.d.ts +1 -0
  84. package/dist/internal/operations/model/notifyFulfillment/NotifyFulfillmentReqRespBaseModel.js +1 -0
  85. package/dist/internal/operations/model/notifyFulfillment/NotifyFulfillmentReqRespModelV2.d.ts +1 -0
  86. package/dist/internal/operations/model/notifyFulfillment/NotifyFulfillmentReqRespModelV2.js +1 -0
  87. package/dist/internal/operations/model/purchase/PurchaseReqRespBaseModel.d.ts +1 -0
  88. package/dist/internal/operations/model/purchase/PurchaseReqRespBaseModel.js +1 -0
  89. package/dist/internal/operations/model/purchase/PurchaseReqRespModelV2.d.ts +1 -0
  90. package/dist/internal/operations/model/purchase/PurchaseReqRespModelV2.js +1 -0
  91. package/dist/internal/operations/model/userProfileAccess/UserProfileAccessReqRespModel.d.ts +1 -0
  92. package/dist/internal/operations/model/userProfileAccess/UserProfileAccessReqRespModel.js +1 -0
  93. package/dist/internal/utils/IAPSDKUtils.d.ts +1 -0
  94. package/dist/internal/utils/IAPSDKUtils.js +1 -0
  95. package/dist/internal/utils/cursor/CursorType.d.ts +4 -0
  96. package/dist/internal/utils/cursor/CursorType.js +1 -0
  97. package/dist/internal/utils/cursor/CursorUtils.d.ts +1 -0
  98. package/dist/internal/utils/cursor/CursorUtils.js +1 -0
  99. package/dist/internal/utils/receiptHelper/ReceiptHelper.d.ts +1 -0
  100. package/dist/internal/utils/receiptHelper/ReceiptHelper.js +1 -0
  101. package/dist/internal/utils/validator/ValidatorUtils.d.ts +1 -0
  102. package/dist/internal/utils/validator/ValidatorUtils.js +1 -0
  103. package/dist/kepler/tm-manifest.json +1 -0
  104. package/dist/types/IAPTypes.d.ts +600 -0
  105. package/dist/types/IAPTypes.js +1 -0
  106. package/kepler-compatibility.json +9 -0
  107. package/kepler-transformed-package-info.json +3 -0
  108. package/package.json +1 -0
  109. package/react-native.config.js +19 -0
@@ -0,0 +1,48 @@
1
+ node_modules/@amzn/keplerscript-appstore-iap-lib_2/dist/index.js:bef9599946b7dc321a3a
2
+ node_modules/@amzn/keplerscript-appstore-iap-lib_2/dist/types/IAPTypes.js:80a35f5a27c2cc53940c
3
+ node_modules/@amzn/keplerscript-appstore-iap-lib_2/dist/PurchasingService.js:ebc3f56bc9dda53c1d15
4
+ node_modules/@amzn/keplerscript-appstore-iap-lib_2/dist/internal/PurchasingManager.js:dc3f3a7048ebae831cdf
5
+ node_modules/@amzn/keplerscript-appstore-iap-lib_2/dist/internal/logger/IAPSDKLogger.js:ee829f2086bd9e24451a
6
+ node_modules/@amzn/keplerscript-appstore-iap-lib_2/dist/internal/utils/IAPSDKUtils.js:d5d5d4a56e4a460feec8
7
+ node_modules/@amzn/keplerscript-appstore-iap-lib_2/dist/internal/utils/validator/ValidatorUtils.js:eab7d7761ecbc1fb848d
8
+ node_modules/@amzn/keplerscript-appstore-iap-lib_2/dist/internal/constants/IAPSDKConstants.js:7ac433707724cf81533d
9
+ node_modules/@amzn/keplerscript-appstore-iap-lib_2/dist/internal/operations/handler/getUserData/GetUserDataRequestHandler.js:4b4aa31b9445a9b19cd1
10
+ node_modules/@amzn/keplerscript-appstore-iap-lib_2/dist/internal/operations/model/getUserData/GetUserDataReqRespModelV2.js:073b7461b47cd78ffb85
11
+ node_modules/@amzn/keplerscript-appstore-iap-lib_2/dist/internal/operations/model/getUserData/GetUserDataReqRespBaseModel.js:a7c886731c5b28dfbd91
12
+ node_modules/@amzn/keplerscript-appstore-iap-lib_2/dist/internal/operations/model/APIReqRespBaseModel.js:ce409578a9929c289267
13
+ node_modules/@amzn/keplerscript-appstore-iap-lib_2/dist/internal/operations/handler/APIBaseRequestHandler.js:73d9746238f306eefbc2
14
+ node_modules/@amzn/keplerscript-appstore-iap-lib_2/dist/internal/NativeIAPRequestHandler.js:908ece51ab35020f8174
15
+ node_modules/@amzn/keplerscript-appstore-iap-lib_2/dist/internal/operations/handler/getProductData/GetProductDataRequestHandler.js:941b51b2bcb115e01e2a
16
+ node_modules/@amzn/keplerscript-appstore-iap-lib_2/dist/internal/operations/model/getProductData/GetProductDataReqRespModelV2.js:fedf8e917f191f29187d
17
+ node_modules/@amzn/keplerscript-appstore-iap-lib_2/dist/internal/operations/model/getProductData/GetProductDataReqRespBaseModel.js:6971b1ac33f794dff0c1
18
+ node_modules/@amzn/keplerscript-appstore-iap-lib_2/dist/internal/operations/handler/notifyFulfillment/NotifyFulfillmentRequestHandler.js:bac5300b3329af6944c5
19
+ node_modules/@amzn/keplerscript-appstore-iap-lib_2/dist/internal/operations/model/notifyFulfillment/NotifyFulfillmentReqRespModelV2.js:f9ef77b2755d9847a1f3
20
+ node_modules/@amzn/keplerscript-appstore-iap-lib_2/dist/internal/operations/model/notifyFulfillment/NotifyFulfillmentReqRespBaseModel.js:b865d6694e8246c64a4b
21
+ node_modules/@amzn/keplerscript-appstore-iap-lib_2/dist/internal/operations/handler/getPurchaseUpdates/GetPurchaseUpdatesRequestHandler.js:483678205d412c2aa01b
22
+ node_modules/@amzn/keplerscript-appstore-iap-lib_2/dist/internal/internalTypes/InternalIAPTypes.js:b0ce158f2dc3dd957979
23
+ node_modules/@amzn/keplerscript-appstore-iap-lib_2/dist/internal/operations/model/getPurchaseUpdates/GetPurchaseUpdatesReqRespModelV2.js:e2911c05611f69856a08
24
+ node_modules/@amzn/keplerscript-appstore-iap-lib_2/dist/internal/utils/cursor/CursorUtils.js:a1d80b6f23ccb1ba3d7f
25
+ node_modules/@amzn/keplerscript-appstore-iap-lib_2/dist/internal/operations/model/getPurchaseUpdates/GetPurchaseUpdatesReqRespBaseModel.js:7ced3daa590989f44fd3
26
+ node_modules/@amzn/keplerscript-appstore-iap-lib_2/dist/internal/utils/receiptHelper/ReceiptHelper.js:397f87609b580476eeb0
27
+ node_modules/@amzn/keplerscript-appstore-iap-lib_2/dist/internal/operations/handler/getPurchaseUpdatesAck/GetPurchaseUpdatesAckRequestHandler.js:dbdea86bf8c37ba2e19e
28
+ node_modules/@amzn/keplerscript-appstore-iap-lib_2/dist/internal/operations/model/getPurchaseUpdatesAck/GetPurchaseUpdatesAckReqRespModelV2.js:633e100aa91910432952
29
+ node_modules/@amzn/keplerscript-appstore-iap-lib_2/dist/internal/operations/model/getPurchaseUpdatesAck/GetPurchaseUpdatesAckReqRespBaseModel.js:0127017e240ff3c1c31d
30
+ node_modules/@amzn/keplerscript-appstore-iap-lib_2/dist/internal/listeners/InternalPurchaseResponseListener.js:3c0efd5dff2970b32c68
31
+ node_modules/@amzn/keplerscript-appstore-iap-lib_2/dist/internal/listeners/PurchaseResponseListener.js:5fd4beac46a11d723952
32
+ node_modules/@amzn/keplerscript-appstore-iap-lib_2/dist/internal/listeners/IResponseListener.js:9ed88e20c1ede4e77f72
33
+ node_modules/@amzn/keplerscript-appstore-iap-lib_2/dist/internal/operations/handler/purchase/PurchaseRequestHandler.js:03768b58141f3060bce5
34
+ node_modules/@amzn/keplerscript-appstore-iap-lib_2/dist/internal/operations/model/purchase/PurchaseReqRespModelV2.js:21d32868d21b41799f97
35
+ node_modules/@amzn/keplerscript-appstore-iap-lib_2/dist/internal/operations/model/purchase/PurchaseReqRespBaseModel.js:db5f40cd2b1b8d7883b8
36
+ node_modules/@amzn/keplerscript-appstore-iap-lib_2/dist/internal/operations/handler/basicAck/BasicAckRequestHandler.js:6d3284e6b610ecddba11
37
+ node_modules/@amzn/keplerscript-appstore-iap-lib_2/dist/internal/operations/model/basicAck/BasicAckReqRespModelV2.js:3bf4e8fd60f52d0d0b23
38
+ node_modules/@amzn/keplerscript-appstore-iap-lib_2/dist/internal/operations/model/basicAck/BasicAckReqRespBaseModel.js:03bf986da5fa60ddf885
39
+ node_modules/@amzn/keplerscript-appstore-iap-lib_2/dist/internal/listeners/InternalModifySubscriptionResponseListener.js:6a6a21e505d28beecfc0
40
+ node_modules/@amzn/keplerscript-appstore-iap-lib_2/dist/internal/listeners/ModifySubscriptionResponseListener.js:643a7c879b6e8a6ea0a5
41
+ node_modules/@amzn/keplerscript-appstore-iap-lib_2/dist/internal/operations/handler/modifySubscription/ModifySubscriptionRequestHandler.js:dcf1f74edd628f52deb1
42
+ node_modules/@amzn/keplerscript-appstore-iap-lib_2/dist/internal/operations/model/modifySubscription/ModifySubscriptionReqRespModelV2.js:1d672acaca9129c8275e
43
+ node_modules/@amzn/keplerscript-appstore-iap-lib_2/dist/internal/operations/model/modifySubscription/ModifySubscriptionReqRespBaseModel.js:b28216155a224e76d2de
44
+ node_modules/@amzn/keplerscript-appstore-iap-lib_2/dist/internal/operations/handler/userProfileAccess/UserProfileAccessRequestHandler.js:0cbb5f8e6ff49d80f60b
45
+ node_modules/@amzn/keplerscript-appstore-iap-lib_2/dist/internal/operations/model/userProfileAccess/UserProfileAccessReqRespModel.js:a83c2f079eb93955c558
46
+ node_modules/@amzn/keplerscript-appstore-iap-lib_2/dist/hooks/useIapUserData.js:8829d56a5922d6e7778f
47
+ node_modules/@amzn/keplerscript-appstore-iap-lib_2/dist/hooks/useIapPurchaseUpdates.js:c7a89863bfb96b1c3eb1
48
+ node_modules/@amzn/keplerscript-appstore-iap-lib_2/dist/hooks/useIapProductData.js:6e72acf4e06d2c374a91
@@ -0,0 +1,110 @@
1
+ node_modules/@react-native/js-polyfills_0.72.1/console.js:c081be8f6c0109dd350f
2
+ node_modules/@react-native/js-polyfills_0.72.1/error-guard.js:057b32c72f7f399723ba
3
+ node_modules/@react-native/js-polyfills_0.72.1/Object.es8.js:a9bf7d37774d7198840b
4
+ node_modules/@babel/runtime_7.26.9/helpers/classCallCheck.js:3508abd8c6b891008c0d
5
+ node_modules/@babel/runtime_7.26.9/helpers/createClass.js:5533cec96f6a88041c69
6
+ node_modules/@babel/runtime_7.26.9/helpers/toPropertyKey.js:a8c8780df4560174ada7
7
+ node_modules/@babel/runtime_7.26.9/helpers/toPrimitive.js:ffc6df13d33bb305555d
8
+ node_modules/@babel/runtime_7.26.9/helpers/typeof.js:d8362e1f4a4e80eaa9d4
9
+ node_modules/react-native-uuid_2.0.3/dist/index.js:6dc130e8685389b37217
10
+ node_modules/react-native-uuid_2.0.3/dist/parse.js:71851ba2fa15f448dca9
11
+ node_modules/react-native-uuid_2.0.3/dist/utils.js:7143627dffbb0e0dc470
12
+ node_modules/react-native-uuid_2.0.3/dist/unparse.js:d82413b06275a890daeb
13
+ node_modules/react-native-uuid_2.0.3/dist/validate.js:5d1fc17223adf157dc76
14
+ node_modules/react-native-uuid_2.0.3/dist/regex.js:780caa5a7c01fd764cc6
15
+ node_modules/react-native-uuid_2.0.3/dist/version.js:a156b3176ff6432371fa
16
+ node_modules/react-native-uuid_2.0.3/dist/v1.js:c5a8774c6e59acbf02a2
17
+ node_modules/react-native-uuid_2.0.3/dist/rng.js:d79e957332c688043777
18
+ node_modules/react-native-uuid_2.0.3/dist/stringify.js:360268371ed0ac8f64c6
19
+ node_modules/react-native-uuid_2.0.3/dist/v3.js:0290d396eae8f716c118
20
+ node_modules/react-native-uuid_2.0.3/dist/md5.js:0aef12c2351d1c11091f
21
+ node_modules/react-native-uuid_2.0.3/dist/v35.js:f3e6658d6cbceadaefde
22
+ node_modules/react-native-uuid_2.0.3/dist/v4.js:ec7546d860741c0a2b2d
23
+ node_modules/react-native-uuid_2.0.3/dist/v5.js:d8d660b4410cdc80206a
24
+ node_modules/react-native-uuid_2.0.3/dist/sha1.js:27fa44b0b5d622c37b36
25
+ node_modules/@babel/runtime_7.26.9/helpers/getPrototypeOf.js:f391b9d534c3a6bc8659
26
+ node_modules/@babel/runtime_7.26.9/helpers/possibleConstructorReturn.js:4534eb96ece5e83c089a
27
+ node_modules/@babel/runtime_7.26.9/helpers/assertThisInitialized.js:3711e54376de5c9b9466
28
+ node_modules/@babel/runtime_7.26.9/helpers/inherits.js:73afcd34a88a750f6d69
29
+ node_modules/@babel/runtime_7.26.9/helpers/setPrototypeOf.js:412b42f29118fbec0d03
30
+ node_modules/@babel/runtime_7.26.9/helpers/asyncToGenerator.js:ff7d8d645536d793bbec
31
+ node_modules/@amzn/keplerscript-turbomodule-api_1.0.0/dist/index.js:8a35a86b7946c72e0207
32
+ node_modules/@amzn/keplerscript-turbomodule-api_1.0.0/dist/turbomodules/TurboModuleRegistry.js:33d6b98d6e39f6b0a8f9
33
+ node_modules/@amzn/keplerscript-turbomodule-api_1.0.0/dist/invariant/invariant.js:8d9475a2cb77b53e450d
34
+ node_modules/@babel/runtime_7.26.9/helpers/interopRequireDefault.js:f9cae617a85336004da4
35
+ node_modules/@babel/runtime_7.26.9/helpers/toConsumableArray.js:45888e56a711ad3d0182
36
+ node_modules/@babel/runtime_7.26.9/helpers/arrayWithoutHoles.js:039d69e301d834fc57a3
37
+ node_modules/@babel/runtime_7.26.9/helpers/arrayLikeToArray.js:63d01cf8405575b80957
38
+ node_modules/@babel/runtime_7.26.9/helpers/iterableToArray.js:87859f449f82e5321677
39
+ node_modules/@babel/runtime_7.26.9/helpers/unsupportedIterableToArray.js:6c4e399b76abfb11b5e1
40
+ node_modules/@babel/runtime_7.26.9/helpers/nonIterableSpread.js:ad214602743714c9688f
41
+ node_modules/invariant_2.2.4/browser.js:fd099686726b2dfb6f66
42
+ node_modules/@babel/runtime_7.26.9/helpers/slicedToArray.js:606f5f734809feae52ba
43
+ node_modules/@babel/runtime_7.26.9/helpers/arrayWithHoles.js:76b27769c179b48d59c3
44
+ node_modules/@babel/runtime_7.26.9/helpers/iterableToArrayLimit.js:4a2ce36b8c165946053f
45
+ node_modules/@babel/runtime_7.26.9/helpers/nonIterableRest.js:1bd488cacdc8afd3a0e3
46
+ node_modules/nullthrows_1.1.1/nullthrows.js:afd4874b36ccd4e13961
47
+ node_modules/@babel/runtime_7.26.9/helpers/readOnlyError.js:a5c40d8e2e66747ea59e
48
+ node_modules/@babel/runtime_7.26.9/helpers/wrapNativeSuper.js:c577b02e1e09b9cd815b
49
+ node_modules/@babel/runtime_7.26.9/helpers/isNativeFunction.js:027ec73415f080702349
50
+ node_modules/@babel/runtime_7.26.9/helpers/construct.js:980562e5188f0e886758
51
+ node_modules/@babel/runtime_7.26.9/helpers/isNativeReflectConstruct.js:d5efa6dd0bb9d4bf9bb4
52
+ node_modules/stacktrace-parser_0.1.11/dist/stack-trace-parser.cjs.js:aa725aa4c0b37e1add33
53
+ node_modules/promise_8.3.0/setimmediate/finally.js:15bc4ccb25fc2d0c4428
54
+ node_modules/promise_8.3.0/setimmediate/core.js:890f60fa94d3f6854a19
55
+ node_modules/promise_8.3.0/setimmediate/es6-extensions.js:a7846fdeffeb1ebf6241
56
+ node_modules/regenerator-runtime_0.13.11/runtime.js:af823d9710c534173a4d
57
+ node_modules/@babel/runtime_7.26.9/helpers/get.js:ef4c2223f1078b78bd52
58
+ node_modules/@babel/runtime_7.26.9/helpers/superPropBase.js:b44e8fc8ae41fbe9dea8
59
+ node_modules/event-target-shim_5.0.1/dist/event-target-shim.js:2bd3f165b1ed6b916de7
60
+ node_modules/base64-js_1.5.1/index.js:71af70f51435e3e1b37b
61
+ node_modules/whatwg-fetch_3.6.20/dist/fetch.umd.js:ca4b0363146267ef3e77
62
+ node_modules/@babel/runtime_7.26.9/helpers/objectWithoutProperties.js:dd1a5f938f6f03510b39
63
+ node_modules/@babel/runtime_7.26.9/helpers/objectWithoutPropertiesLoose.js:caf7f4ba910d205ff7d0
64
+ node_modules/abort-controller_3.0.0/dist/abort-controller.js:ea8fcbd647aab1cfcdaa
65
+ node_modules/@react-native/normalize-colors_0.72.0/index.js:bab9017c6ff43bb4a95b
66
+ node_modules/@babel/runtime_7.26.9/helpers/defineProperty.js:d57b125e535b41806db7
67
+ node_modules/@react-native/assets-registry_0.72.0/registry.js:05d58bec2a6d939f08d8
68
+ node_modules/@react-native/assets-registry_0.72.0/path-support.js:914260cfb55fe13c431c
69
+ node_modules/scheduler_0.24.0-canary-efb381bbf-20230505/index.native.js:d57407eff7026d491c8a
70
+ node_modules/scheduler_0.24.0-canary-efb381bbf-20230505/cjs/scheduler.native.production.min.js:9daefd1335ff675770cb
71
+ node_modules/deprecated-react-native-prop-types_4.1.0/index.js:4b5aec8d0b1af0b13fc9
72
+ node_modules/deprecated-react-native-prop-types_4.1.0/DeprecatedColorPropType.js:0ff2848f3ff6f1a02356
73
+ node_modules/deprecated-react-native-prop-types_4.1.0/DeprecatedEdgeInsetsPropType.js:e113bc2a6b8133e753f1
74
+ node_modules/prop-types_15.8.1/index.js:385f56cce85bf58dda18
75
+ node_modules/prop-types_15.8.1/factoryWithThrowingShims.js:211f6d600f40629e26d0
76
+ node_modules/prop-types_15.8.1/lib/ReactPropTypesSecret.js:3ac224506c12c2b4339c
77
+ node_modules/deprecated-react-native-prop-types_4.1.0/DeprecatedImagePropType.js:9f1779357aba412bb49f
78
+ node_modules/deprecated-react-native-prop-types_4.1.0/DeprecatedViewPropTypes.js:6a37ec0494ff683c49f2
79
+ node_modules/deprecated-react-native-prop-types_4.1.0/DeprecatedViewAccessibility.js:dc269c006cd52aa8a392
80
+ node_modules/deprecated-react-native-prop-types_4.1.0/DeprecatedStyleSheetPropType.js:ecd8893ff4b33ee73955
81
+ node_modules/deprecated-react-native-prop-types_4.1.0/deprecatedCreateStrictShapeTypeChecker.js:2c266ae4211321471d0d
82
+ node_modules/deprecated-react-native-prop-types_4.1.0/DeprecatedViewStylePropTypes.js:b0bd5168a69d8a903511
83
+ node_modules/deprecated-react-native-prop-types_4.1.0/DeprecatedLayoutPropTypes.js:fdc284a1196df7b8b1c7
84
+ node_modules/deprecated-react-native-prop-types_4.1.0/DeprecatedShadowPropTypesIOS.js:c694fefe532e4748da9d
85
+ node_modules/deprecated-react-native-prop-types_4.1.0/DeprecatedTransformPropTypes.js:1dd7395967b3c81dc0f2
86
+ node_modules/deprecated-react-native-prop-types_4.1.0/DeprecatedImageSourcePropType.js:00fed86b64880bf848bf
87
+ node_modules/deprecated-react-native-prop-types_4.1.0/DeprecatedImageStylePropTypes.js:0b77c2d463c8dbef3508
88
+ node_modules/deprecated-react-native-prop-types_4.1.0/DeprecatedPointPropType.js:792d53fa12840d39c921
89
+ node_modules/deprecated-react-native-prop-types_4.1.0/DeprecatedTextInputPropTypes.js:a287f54379336e9f732c
90
+ node_modules/deprecated-react-native-prop-types_4.1.0/DeprecatedTextPropTypes.js:14b8482f38362fa2f8cd
91
+ node_modules/deprecated-react-native-prop-types_4.1.0/DeprecatedTextStylePropTypes.js:41bd16fe8e2d1af40264
92
+ node_modules/memoize-one_5.2.1/dist/memoize-one.cjs.js:d381691ed29bec5a2050
93
+ node_modules/@react-native/virtualized-lists_0.72.8/index.js:27b237d1799650306cb9
94
+ node_modules/@react-native/virtualized-lists_0.72.8/Lists/VirtualizeUtils.js:a26dbe2a3afa21c3cf22
95
+ node_modules/@react-native/virtualized-lists_0.72.8/Lists/VirtualizedList.js:c4b46015e44050527820
96
+ node_modules/@react-native/virtualized-lists_0.72.8/Interaction/Batchinator.js:1953ac0cbf7ac32b33d6
97
+ node_modules/@react-native/virtualized-lists_0.72.8/Utilities/clamp.js:a30729068ebd0dea58f8
98
+ node_modules/@react-native/virtualized-lists_0.72.8/Utilities/infoLog.js:4fd7218f700134f011e9
99
+ node_modules/@react-native/virtualized-lists_0.72.8/Lists/ChildListCollection.js:718d6cdfb3fb081a232d
100
+ node_modules/@react-native/virtualized-lists_0.72.8/Lists/FillRateHelper.js:3e01a5bc929e85870fe5
101
+ node_modules/@react-native/virtualized-lists_0.72.8/Lists/StateSafePureComponent.js:04ffc79d4da370644bce
102
+ node_modules/@react-native/virtualized-lists_0.72.8/Lists/ViewabilityHelper.js:8bafab90a37cab64b100
103
+ node_modules/@react-native/virtualized-lists_0.72.8/Lists/VirtualizedListCellRenderer.js:ce5f423367f40f3628a8
104
+ node_modules/@react-native/virtualized-lists_0.72.8/Lists/VirtualizedListContext.js:e6b1ef1f5b720d640981
105
+ node_modules/@react-native/virtualized-lists_0.72.8/Lists/CellRenderMask.js:de5ab026f9499640d730
106
+ node_modules/@react-native/virtualized-lists_0.72.8/Lists/VirtualizedSectionList.js:d2355175ff6609a3def1
107
+ node_modules/use-sync-external-store_1.4.0/shim/index.native.js:6832e1c00f3f16dfaae5
108
+ node_modules/use-sync-external-store_1.4.0/cjs/use-sync-external-store-shim.native.production.js:e06788c407c9335df771
109
+ node_modules/@babel/runtime_7.26.9/helpers/classPrivateFieldLooseKey.js:c5dbc1f907bdbe211c48
110
+ node_modules/@babel/runtime_7.26.9/helpers/classPrivateFieldLooseBase.js:837ca394faf5697cd044
@@ -0,0 +1,7 @@
1
+ {
2
+ "@amzn/keplerscript-appstore-iap-lib": {
3
+ "nameOnDevice": "index.amzn__keplerscript-appstore-iap-lib-2.hermes.bundle",
4
+ "modulesPath": "amzn__keplerscript-appstore-iap-lib-2.modules.txt",
5
+ "privateModulesPath": "amzn__keplerscript-appstore-iap-lib-2.private.modules.txt"
6
+ }
7
+ }
@@ -0,0 +1,87 @@
1
+ import * as IAPTypes from "./types/IAPTypes.js";
2
+ /**
3
+ * Presents the primary API for interacting with the Amazon Appstore purchasing framework.
4
+ */
5
+ export declare class PurchasingService {
6
+ /**
7
+ * Initiates a purchase-flow for a product.
8
+ *
9
+ * @param purchaseRequest - Input parameters for purchase.
10
+ * @returns - Response containing the receipts data and status of the request.
11
+ */
12
+ static purchase(purchaseRequest: IAPTypes.PurchaseRequest): Promise<IAPTypes.PurchaseResponse>;
13
+ /**
14
+ * Initiates a modifySubscription request for a subscription.
15
+ *
16
+ * @param modifySubsRequest - Input parameters for Modify subscription.
17
+ * @return - Response containing the list of receipts data(if succeeded) and status of the request.
18
+ */
19
+ static modifySubscription(modifySubsRequest: IAPTypes.ModifySubscriptionRequest): Promise<IAPTypes.ModifySubscriptionResponse>;
20
+ /**
21
+ * Initiates a request to retrieve updates about items the customer has purchased and/or canceled.
22
+ *
23
+ * Usage Pattern:
24
+ * 1) To ensure getting latest purchase updates, Amazon recommends invoking getPurchaseUpdates API in
25
+ * your app's main screen launch and when App transitions from background to foreground (BG -> FG).
26
+ *
27
+ * To simplify this process, leverage the provided usePurchaseUpdates hook from this package. By
28
+ * calling this hook in your main screen component, the hook will automatically trigger the
29
+ * getPurchaseUpdates API when the main screen is launched or when the app transitions from BG -> FG.
30
+ *
31
+ * 2) Beyond this main screen use case, your app may have specific use cases related to purchases. For
32
+ * these tailored scenarios, utilize this getPurchaseUpdates API.
33
+ *
34
+ * @param purchaseUpdatesRequest - Input parameters.
35
+ * @returns - Response containing the receipts data and status of the request.
36
+ */
37
+ static getPurchaseUpdates(purchaseUpdatesRequest: IAPTypes.PurchaseUpdatesRequest): Promise<IAPTypes.PurchaseUpdatesResponse>;
38
+ /**
39
+ * Initiates a request to retrieve item data of up to one-hundred SKUs.
40
+ *
41
+ * Usage Pattern:
42
+ * 1) getProductData is typically called during product page launch for getting and displaying IAP product
43
+ * info (like Price) for a set of SKUs.
44
+ *
45
+ * To simplify this process, leverage the provided useIapProductData hook from this package. By
46
+ * calling this hook in your product page component, the hook will automatically trigger the
47
+ * getPurchaseUpdates API when the product page is launched.
48
+ *
49
+ * 2) Beyond this product page use case, your app may have specific use cases related to IAP Products. For
50
+ * these tailored scenarios, utilize this getProductData API.
51
+ *
52
+ * @param productDataRequest - Input parameters.
53
+ * @returns - Response containing the product data and status of the request.
54
+ */
55
+ static getProductData(productDataRequest: IAPTypes.ProductDataRequest): Promise<IAPTypes.ProductDataResponse>;
56
+ /**
57
+ * Notifies Amazon about the purchase fulfillment.
58
+ * @param notifyFulfillmentRequest - Input parameters.
59
+ * @returns - Response containing the status of notify fulfillment request.
60
+ */
61
+ static notifyFulfillment(notifyFulfillmentRequest: IAPTypes.NotifyFulfillmentRequest): Promise<IAPTypes.NotifyFulfillmentResponse>;
62
+ /**
63
+ * Initiates a request to retrieve the user ID of the currently logged-in user.
64
+ *
65
+ * Usage Pattern:
66
+ * 1) To ensure retrieving the receipts for the current user account, Amazon recommends
67
+ * invoking getUserData API in your app's main screen launch and when App transitions from
68
+ * background to foreground (BG -> FG).
69
+ *
70
+ * To simplify this process, leverage the provided useUserData hook from this package. By
71
+ * calling this hook in your main screen component, the hook will automatically trigger the
72
+ * getUserData API when the main screen is launched or when the app transitions from BG -> FG.
73
+ *
74
+ * 2) Beyond this main screen use case, your app may have specific use cases related to user-id. For
75
+ * these tailored scenarios, utilize this getUserData API.
76
+ *
77
+ * @param userDataRequest - Input parameters.
78
+ * @returns - Response containing the user data and response code.
79
+ */
80
+ static getUserData(userDataRequest: IAPTypes.UserDataRequest): Promise<IAPTypes.UserDataResponse>;
81
+ /**
82
+ * Initiates the request to retrieve an auth code for user profile access
83
+ *
84
+ * @returns - Response containing the auth code for user profile access and response code.
85
+ */
86
+ static requestUserProfileAccess(): Promise<IAPTypes.UserProfileAccessResponse>;
87
+ }
@@ -0,0 +1 @@
1
+ 'use strict';const a0_0x22de4e=a0_0x1d07;(function(_0x17a9ba,_0x273457){const _0x1f9026=a0_0x1d07,_0x1882a4=_0x17a9ba();while(!![]){try{const _0x20f731=-parseInt(_0x1f9026(0x17b))/0x1*(-parseInt(_0x1f9026(0x178))/0x2)+parseInt(_0x1f9026(0x182))/0x3+-parseInt(_0x1f9026(0x17d))/0x4*(-parseInt(_0x1f9026(0x171))/0x5)+parseInt(_0x1f9026(0x177))/0x6+-parseInt(_0x1f9026(0x179))/0x7*(-parseInt(_0x1f9026(0x17e))/0x8)+-parseInt(_0x1f9026(0x17a))/0x9*(parseInt(_0x1f9026(0x172))/0xa)+-parseInt(_0x1f9026(0x180))/0xb;if(_0x20f731===_0x273457)break;else _0x1882a4['push'](_0x1882a4['shift']());}catch(_0x4a6b80){_0x1882a4['push'](_0x1882a4['shift']());}}}(a0_0x35cf,0x2f6ec));function a0_0x35cf(){const _0x1b7a2a=['1217484kIKjep','2mWBlJL','7qATrBm','4698STShNH','100271GKftpe','getInstance','61460FdNdWb','2719144BdAHdJ','modifySubscription','11119823xXgruC','getProductData','546450nArbyx','defineProperty','purchase','getPurchaseUpdates','__esModule','125nnaqbV','80qanqDP','PurchasingManager','requestUserProfileAccess','PurchasingService','notifyFulfillment'];a0_0x35cf=function(){return _0x1b7a2a;};return a0_0x35cf();}Object[a0_0x22de4e(0x183)](exports,a0_0x22de4e(0x170),{'value':!![]}),exports[a0_0x22de4e(0x175)]=void 0x0;const PurchasingManager_1=require('./internal/PurchasingManager');function a0_0x1d07(_0xa4094,_0x329ea5){const _0x35cfb0=a0_0x35cf();return a0_0x1d07=function(_0x1d07cb,_0xd12de){_0x1d07cb=_0x1d07cb-0x170;let _0x529a3a=_0x35cfb0[_0x1d07cb];return _0x529a3a;},a0_0x1d07(_0xa4094,_0x329ea5);}class PurchasingService{static[a0_0x22de4e(0x184)](_0x1a237c){const _0x444891=a0_0x22de4e;return PurchasingManager_1['PurchasingManager'][_0x444891(0x17c)]()[_0x444891(0x184)](_0x1a237c);}static['modifySubscription'](_0x194529){const _0x2edd5b=a0_0x22de4e;return PurchasingManager_1[_0x2edd5b(0x173)]['getInstance']()[_0x2edd5b(0x17f)](_0x194529);}static['getPurchaseUpdates'](_0x2c8633){const _0x259bfe=a0_0x22de4e;return PurchasingManager_1['PurchasingManager'][_0x259bfe(0x17c)]()[_0x259bfe(0x185)](_0x2c8633);}static[a0_0x22de4e(0x181)](_0x19272f){const _0x5adfae=a0_0x22de4e;return PurchasingManager_1[_0x5adfae(0x173)][_0x5adfae(0x17c)]()[_0x5adfae(0x181)](_0x19272f);}static[a0_0x22de4e(0x176)](_0x3fd150){const _0x232912=a0_0x22de4e;return PurchasingManager_1[_0x232912(0x173)]['getInstance']()[_0x232912(0x176)](_0x3fd150);}static['getUserData'](_0x310c60){const _0x9b9e06=a0_0x22de4e;return PurchasingManager_1[_0x9b9e06(0x173)][_0x9b9e06(0x17c)]()['getUserData'](_0x310c60);}static[a0_0x22de4e(0x174)](){const _0x146abc=a0_0x22de4e;return PurchasingManager_1['PurchasingManager'][_0x146abc(0x17c)]()[_0x146abc(0x174)]();}}exports['PurchasingService']=PurchasingService;
@@ -0,0 +1,37 @@
1
+ import { ProductDataRequest } from '../types/IAPTypes';
2
+ /**
3
+ * useIapProductData hook is typically called in the product page for getting and displaying IAP product
4
+ * info (like Price) for a set of SKUs. This hook automatically invokes getProductData and populates states
5
+ * during product page launch.
6
+ *
7
+ * ```ts
8
+ * Sample Usage:
9
+ * export const AppProductPage = () => {
10
+ * // Calling useIapProductData in Product page
11
+ * const { iapProductDataLoading, iapProductDataError, iapProductData } =
12
+ * useIapProductData({skus: Constants.SKUS});
13
+ *
14
+ * // Show loading state
15
+ * if (iapProductDataLoading) {
16
+ * // Show loading state
17
+ * ...
18
+ * }
19
+ *
20
+ * // Handle error case
21
+ * if (iapProductDataError) {
22
+ * // Handle Error based on iapProductData.responseCode
23
+ * }
24
+ *
25
+ * // Display the products by reading iapProductData.productData
26
+ * ...
27
+ * }
28
+ * ```
29
+ *
30
+ * @param productDataRequest Product Data request parameters
31
+ * @returns States and value of product data
32
+ */
33
+ export declare const useIapProductData: (productDataRequest: ProductDataRequest) => {
34
+ iapProductDataLoading: any;
35
+ iapProductDataError: any;
36
+ iapProductData: any;
37
+ };
@@ -0,0 +1 @@
1
+ 'use strict';function a1_0x1d97(_0xed8ff,_0x548afc){const _0x5ddd0f=a1_0x5ddd();return a1_0x1d97=function(_0x1d97cd,_0x12df06){_0x1d97cd=_0x1d97cd-0x15e;let _0x336caf=_0x5ddd0f[_0x1d97cd];return _0x336caf;},a1_0x1d97(_0xed8ff,_0x548afc);}const a1_0x7c4aea=a1_0x1d97;(function(_0x18c434,_0x45d814){const _0x20f711=a1_0x1d97,_0x3d1b6f=_0x18c434();while(!![]){try{const _0x517358=parseInt(_0x20f711(0x16d))/0x1+parseInt(_0x20f711(0x175))/0x2+-parseInt(_0x20f711(0x16e))/0x3*(-parseInt(_0x20f711(0x15e))/0x4)+parseInt(_0x20f711(0x172))/0x5*(parseInt(_0x20f711(0x16b))/0x6)+parseInt(_0x20f711(0x160))/0x7*(-parseInt(_0x20f711(0x170))/0x8)+-parseInt(_0x20f711(0x164))/0x9*(-parseInt(_0x20f711(0x171))/0xa)+-parseInt(_0x20f711(0x166))/0xb;if(_0x517358===_0x45d814)break;else _0x3d1b6f['push'](_0x3d1b6f['shift']());}catch(_0x85c8a5){_0x3d1b6f['push'](_0x3d1b6f['shift']());}}}(a1_0x5ddd,0x7f4ef));Object[a1_0x7c4aea(0x16c)](exports,a1_0x7c4aea(0x15f),{'value':!![]}),exports[a1_0x7c4aea(0x167)]=void 0x0;function a1_0x5ddd(){const _0x58bcd1=['GetProductDataReqRespBaseModel','4552iCBPJp','100MyqGmu','70YUNBFR','Exception\x20while\x20calling\x20getProductData\x20','FAILED','1547826KygzpS','debug','createNullResponse','SUCCESSFUL','IAPSDKLogger','responseCode','12TMsNZf','__esModule','4312FnKJEZ','useEffect','ProductDataResponseCode','useState','142515GcNlqx','getProductData','11492239DfrBIb','useIapProductData','useIapProductData\x20Hook\x20called','then','Calling\x20getProductData\x20API','178932aBBRme','defineProperty','115560Mtodas','451377goKUby'];a1_0x5ddd=function(){return _0x58bcd1;};return a1_0x5ddd();}const react_1=require('react'),IAPSDKLogger_1=require('../internal/logger/IAPSDKLogger'),GetProductDataReqRespBaseModel_1=require('../internal/operations/model/getProductData/GetProductDataReqRespBaseModel'),PurchasingService_1=require('../PurchasingService'),IAPTypes_1=require('../types/IAPTypes'),useIapProductData=_0x1bd9cb=>{const _0x5ddd86=a1_0x7c4aea,[_0x1d4e7f,_0xb870ad]=(0x0,react_1[_0x5ddd86(0x163)])(),[_0x1b9cfe,_0x5927cb]=(0x0,react_1[_0x5ddd86(0x163)])(!![]),[_0x1f39f3,_0x2bb088]=(0x0,react_1[_0x5ddd86(0x163)])(![]);return IAPSDKLogger_1['IAPSDKLogger'][_0x5ddd86(0x176)](_0x5ddd86(0x168)),(0x0,react_1[_0x5ddd86(0x161)])(()=>{const _0xf5e03d=_0x5ddd86;IAPSDKLogger_1[_0xf5e03d(0x179)]['info'](_0xf5e03d(0x16a)),PurchasingService_1['PurchasingService'][_0xf5e03d(0x165)](_0x1bd9cb)[_0xf5e03d(0x169)](_0x25657c=>{const _0x56f496=_0xf5e03d;_0xb870ad(_0x25657c),_0x2bb088(_0x25657c[_0x56f496(0x17a)]!==IAPTypes_1[_0x56f496(0x162)][_0x56f496(0x178)]),_0x5927cb(![]);})['catch'](_0x58a3dd=>{const _0x13507b=_0xf5e03d;IAPSDKLogger_1[_0x13507b(0x179)]['error'](_0x13507b(0x173)+_0x58a3dd),_0xb870ad(GetProductDataReqRespBaseModel_1[_0x13507b(0x16f)][_0x13507b(0x177)](IAPTypes_1['ProductDataResponseCode'][_0x13507b(0x174)])),_0x2bb088(!![]),_0x5927cb(![]);});},[]),{'iapProductDataLoading':_0x1b9cfe,'iapProductDataError':_0x1f39f3,'iapProductData':_0x1d4e7f};};exports[a1_0x7c4aea(0x167)]=useIapProductData;
@@ -0,0 +1,40 @@
1
+ import { PurchaseUpdatesRequest } from '../types/IAPTypes';
2
+ /**
3
+ * useIapPurchaseUpdates hook should be called in your main screen component. This hook automatically invokes
4
+ * getPurchaseUpdates API and populates states during main screen launch and App state transitions from BG -> FG.
5
+ * "iapPurchaseUpdates" state returned by this hook has unfulfilled and canceled consumable purchases.
6
+ * Amazon recommends that you persist the returned PurchaseUpdates data and query the system only
7
+ * for updates by calling the hook with reset flag being false.
8
+ *
9
+ * This hook ensures to keep getting you latest purchase updates.
10
+ *
11
+ * ```ts
12
+ * Sample Usage:
13
+ * export const AppMainPage = () => {
14
+ * // Calling useIapPurchaseUpdates in main screen
15
+ * const {iapPurchaseUpdatesLoading, iapPurchaseUpdatesError, iapPurchaseUpdates} =
16
+ * useIapPurchaseUpdates({ reset: false });
17
+ * ...
18
+ * ...
19
+ * // Once PurchaseUpdates is loaded, call handler
20
+ * if (!iapPurchaseUpdatesLoading) {
21
+ * if (iapPurchaseUpdatesError) {
22
+ * // Handle Error based on iapPurchaseUpdates.responseCode
23
+ * ...
24
+ * } else {
25
+ * // Persist the iapPurchaseUpdates.receiptList and fulfill the purchases.
26
+ * ...
27
+ * }
28
+ * }
29
+ * ...
30
+ * }
31
+ * ```
32
+ *
33
+ * @param purchaseUpdatesRequest Purchase Updates request parameters
34
+ * @returns States and value of Purchase updates
35
+ */
36
+ export declare const useIapPurchaseUpdates: (purchaseUpdatesRequest: PurchaseUpdatesRequest) => {
37
+ iapPurchaseUpdatesLoading: any;
38
+ iapPurchaseUpdatesError: any;
39
+ iapPurchaseUpdates: any;
40
+ };
@@ -0,0 +1 @@
1
+ 'use strict';const a2_0x366fe9=a2_0x4897;function a2_0x55fe(){const _0x3f4c0b=['50GMdARp','remove','6mgRtjx','2633732PdlusQ','App\x20comes\x20from\x20background\x20to\x20foreground.\x20Triggering\x20getPurchaseUpdates\x20API.','responseCode','12OFZqjn','__esModule','6348600KbfiJd','useState','current','GetPurchaseUpdatesReqRespBaseModel','1797832qRrisC','Component\x20unmounted.\x20Removing\x20AppState\x20listener','PurchaseUpdatesResponseCode','debug','IAPSDKLogger','info','21bxaeot','685256FnaxvL','addEventListener','FAILED','useRef','useIapPurchaseUpdates','SUCCESSFUL','active','1718180UDmzQQ','createNullResponse','getPurchaseUpdates','useEffect','useIapPurchaseUpdates\x20Hook\x20called','1002114fGxDlL','6033577ZjcLhh','defineProperty'];a2_0x55fe=function(){return _0x3f4c0b;};return a2_0x55fe();}(function(_0x13b93d,_0x317411){const _0x3e3002=a2_0x4897,_0x2ad28a=_0x13b93d();while(!![]){try{const _0x46601d=-parseInt(_0x3e3002(0xb4))/0x1+-parseInt(_0x3e3002(0xba))/0x2+-parseInt(_0x3e3002(0xb9))/0x3*(parseInt(_0x3e3002(0xa1))/0x4)+-parseInt(_0x3e3002(0xaf))/0x5*(-parseInt(_0x3e3002(0x9b))/0x6)+parseInt(_0x3e3002(0xa7))/0x7*(-parseInt(_0x3e3002(0xa8))/0x8)+parseInt(_0x3e3002(0x9d))/0x9+parseInt(_0x3e3002(0xb7))/0xa*(parseInt(_0x3e3002(0xb5))/0xb);if(_0x46601d===_0x317411)break;else _0x2ad28a['push'](_0x2ad28a['shift']());}catch(_0x1852e6){_0x2ad28a['push'](_0x2ad28a['shift']());}}}(a2_0x55fe,0xa1374));function a2_0x4897(_0x430be1,_0x2826d2){const _0x55fe8e=a2_0x55fe();return a2_0x4897=function(_0x489701,_0x28fdfa){_0x489701=_0x489701-0x9b;let _0x2bd9c9=_0x55fe8e[_0x489701];return _0x2bd9c9;},a2_0x4897(_0x430be1,_0x2826d2);}Object[a2_0x366fe9(0xb6)](exports,a2_0x366fe9(0x9c),{'value':!![]}),exports[a2_0x366fe9(0xac)]=void 0x0;const react_native_kepler_1=require('@amazon-devices/react-native-kepler'),react_1=require('react'),IAPSDKLogger_1=require('../internal/logger/IAPSDKLogger'),GetPurchaseUpdatesReqRespBaseModel_1=require('../internal/operations/model/getPurchaseUpdates/GetPurchaseUpdatesReqRespBaseModel'),PurchasingService_1=require('../PurchasingService'),IAPTypes_1=require('../types/IAPTypes'),useIapPurchaseUpdates=_0x4ef7c0=>{const _0xb119d1=a2_0x366fe9,[_0x38021d,_0x50e3c1]=(0x0,react_1[_0xb119d1(0x9e)])(),[_0x1b2af2,_0x2817cb]=(0x0,react_1['useState'])(!![]),[_0x2d13aa,_0x387347]=(0x0,react_1['useState'])(![]),_0x123637=(0x0,react_1[_0xb119d1(0xab)])();IAPSDKLogger_1[_0xb119d1(0xa5)][_0xb119d1(0xa4)](_0xb119d1(0xb3));const _0x5be237=()=>{const _0x3b52a5=_0xb119d1;IAPSDKLogger_1[_0x3b52a5(0xa5)][_0x3b52a5(0xa6)]('Calling\x20getPurchaseUpdates\x20API\x20with\x20reset\x20flag\x20=\x20'+_0x4ef7c0['reset']),_0x2817cb(!![]),PurchasingService_1['PurchasingService'][_0x3b52a5(0xb1)](_0x4ef7c0)['then'](_0x4b0701=>{const _0x50751d=_0x3b52a5;_0x50e3c1(_0x4b0701),_0x387347(_0x4b0701[_0x50751d(0xbc)]!==IAPTypes_1[_0x50751d(0xa3)][_0x50751d(0xad)]),_0x2817cb(![]);})['catch'](_0x14ed48=>{const _0x9dfaf9=_0x3b52a5;IAPSDKLogger_1[_0x9dfaf9(0xa5)]['error']('Exception\x20while\x20calling\x20getPurchaseUpdates\x20'+_0x14ed48),_0x50e3c1(GetPurchaseUpdatesReqRespBaseModel_1[_0x9dfaf9(0xa0)][_0x9dfaf9(0xb0)](IAPTypes_1[_0x9dfaf9(0xa3)][_0x9dfaf9(0xaa)])),_0x387347(!![]),_0x2817cb(![]);});},_0x374128=_0x4c06f3=>{const _0xfde1f6=_0xb119d1;let _0x1a8e23;_0x2817cb(_0x33432d=>{return _0x1a8e23=_0x33432d,_0x33432d;}),_0x4c06f3===_0xfde1f6(0xae)&&_0x1a8e23===![]?(IAPSDKLogger_1[_0xfde1f6(0xa5)]['debug'](_0xfde1f6(0xbb)),_0x5be237()):IAPSDKLogger_1[_0xfde1f6(0xa5)][_0xfde1f6(0xa4)]('useIapPurchaseUpdates:\x20App\x20state\x20change\x20ignored:\x20'+_0x4c06f3);};return(0x0,react_1[_0xb119d1(0xb2)])(()=>{const _0x4745be=_0xb119d1;return _0x5be237(),_0x123637[_0x4745be(0x9f)]=react_native_kepler_1['AppState'][_0x4745be(0xa9)]('change',_0x374128),()=>{const _0x63aa0c=_0x4745be;IAPSDKLogger_1[_0x63aa0c(0xa5)][_0x63aa0c(0xa4)](_0x63aa0c(0xa2)),_0x123637['current']?.[_0x63aa0c(0xb8)]();};},[]),{'iapPurchaseUpdatesLoading':_0x1b2af2,'iapPurchaseUpdatesError':_0x2d13aa,'iapPurchaseUpdates':_0x38021d};};exports[a2_0x366fe9(0xac)]=useIapPurchaseUpdates;
@@ -0,0 +1,40 @@
1
+ import { UserDataRequest } from '../types/IAPTypes';
2
+ /**
3
+ * useIapUserData hook should be called in your main screen component. This hook automatically invokes
4
+ * getUserData API and populates states during main screen launch and App state transitions from BG -> FG.
5
+ * "iapUserData" state returned by this hook will help you to make sure that you retrieve the
6
+ * receipts for the current user account.
7
+ *
8
+ * This hook handles case where the user switched account when your app went to background. State
9
+ * "iapUserData" will be populated when the app comes to foreground and would trigger your logic
10
+ * to retrieve receipts for the current user.
11
+ *
12
+ * ```ts
13
+ * Sample Usage:
14
+ * export const AppMainPage = () => {
15
+ * // Calling useIapUserData in main screen
16
+ * const {iapUserDataLoading, iapUserDataError, iapUserData} = useIapUserData({});
17
+ * ...
18
+ * ...
19
+ * // Once Userdata is loaded, call handler
20
+ * if (!iapUserDataLoading) {
21
+ * if (iapUserDataError) {
22
+ * // Handle Error based on iapUserData.responseCode
23
+ * ...
24
+ * } else {
25
+ * // Persist the iapUserData.userId and retrieve receipts for this user.
26
+ * ...
27
+ * }
28
+ * }
29
+ * ...
30
+ * }
31
+ * ```
32
+ *
33
+ * @param getUserDataRequest User Data request parameters
34
+ * @returns States and value of user data
35
+ */
36
+ export declare const useIapUserData: (getUserDataRequest: UserDataRequest) => {
37
+ iapUserDataLoading: any;
38
+ iapUserDataError: any;
39
+ iapUserData: any;
40
+ };
@@ -0,0 +1 @@
1
+ 'use strict';const a3_0x13fa37=a3_0x1e8b;function a3_0x5480(){const _0x1bf1e1=['3uXLUmc','responseCode','IAPSDKLogger','2107791IzxdhP','Calling\x20getUserData\x20API','UserDataResponseCode','createNullResponse','SUCCESSFUL','useState','Component\x20unmounted.\x20Removing\x20AppState\x20listener','current','624964iGBBRi','4220874jYQbWQ','then','131952UrDWlq','GetUserDataReqRespBaseModel','info','defineProperty','error','change','AppState','useIapUserData','getUserData','1616754KvVNzk','PurchasingService','831410bxjtvD','useIapUserData:\x20App\x20state\x20change\x20ignored:\x20','Exception\x20while\x20calling\x20getUserData\x20','active','8BcWNlK','164598uLaKUg','App\x20comes\x20from\x20background\x20to\x20foreground.\x20Triggering\x20getUserData\x20API.','catch','debug'];a3_0x5480=function(){return _0x1bf1e1;};return a3_0x5480();}(function(_0x5965b2,_0x56771e){const _0x101da3=a3_0x1e8b,_0x1f8701=_0x5965b2();while(!![]){try{const _0x403a38=-parseInt(_0x101da3(0x7d))/0x1+parseInt(_0x101da3(0x8c))/0x2*(-parseInt(_0x101da3(0x81))/0x3)+parseInt(_0x101da3(0x8f))/0x4+parseInt(_0x101da3(0x78))/0x5+parseInt(_0x101da3(0x98))/0x6+-parseInt(_0x101da3(0x84))/0x7*(parseInt(_0x101da3(0x7c))/0x8)+parseInt(_0x101da3(0x8d))/0x9;if(_0x403a38===_0x56771e)break;else _0x1f8701['push'](_0x1f8701['shift']());}catch(_0x56f355){_0x1f8701['push'](_0x1f8701['shift']());}}}(a3_0x5480,0x26f22));Object[a3_0x13fa37(0x92)](exports,'__esModule',{'value':!![]}),exports[a3_0x13fa37(0x96)]=void 0x0;const react_native_kepler_1=require('@amazon-devices/react-native-kepler'),react_1=require('react'),IAPSDKLogger_1=require('../internal/logger/IAPSDKLogger'),GetUserDataReqRespBaseModel_1=require('../internal/operations/model/getUserData/GetUserDataReqRespBaseModel'),PurchasingService_1=require('../PurchasingService'),IAPTypes_1=require('../types/IAPTypes'),useIapUserData=_0x182175=>{const _0x370abd=a3_0x13fa37,[_0x22ca6a,_0x51942c]=(0x0,react_1[_0x370abd(0x89)])(),[_0x27ef40,_0x38cc6a]=(0x0,react_1[_0x370abd(0x89)])(!![]),[_0x46e853,_0x3c7b8d]=(0x0,react_1[_0x370abd(0x89)])(![]),_0x55404a=(0x0,react_1['useRef'])();IAPSDKLogger_1[_0x370abd(0x83)]['debug']('useIapUserData\x20Hook\x20called');const _0x20c451=()=>{const _0x5d1a2e=_0x370abd;IAPSDKLogger_1[_0x5d1a2e(0x83)][_0x5d1a2e(0x91)](_0x5d1a2e(0x85)),_0x38cc6a(!![]),PurchasingService_1[_0x5d1a2e(0x99)][_0x5d1a2e(0x97)](_0x182175)[_0x5d1a2e(0x8e)](_0x2a61e9=>{const _0x416f8d=_0x5d1a2e;_0x51942c(_0x2a61e9),_0x3c7b8d(_0x2a61e9[_0x416f8d(0x82)]!==IAPTypes_1[_0x416f8d(0x86)][_0x416f8d(0x88)]),_0x38cc6a(![]);})[_0x5d1a2e(0x7f)](_0x419e1a=>{const _0x2a0a87=_0x5d1a2e;IAPSDKLogger_1[_0x2a0a87(0x83)][_0x2a0a87(0x93)](_0x2a0a87(0x7a)+_0x419e1a),_0x51942c(GetUserDataReqRespBaseModel_1[_0x2a0a87(0x90)][_0x2a0a87(0x87)](IAPTypes_1['UserDataResponseCode']['FAILED'])),_0x3c7b8d(!![]),_0x38cc6a(![]);});},_0x2825cd=_0x53a1c4=>{const _0x29dfcf=_0x370abd;let _0x45d3d3;_0x38cc6a(_0x2674f5=>{return _0x45d3d3=_0x2674f5,_0x2674f5;}),_0x53a1c4===_0x29dfcf(0x7b)&&_0x45d3d3===![]?(IAPSDKLogger_1[_0x29dfcf(0x83)][_0x29dfcf(0x80)](_0x29dfcf(0x7e)),_0x20c451()):IAPSDKLogger_1[_0x29dfcf(0x83)][_0x29dfcf(0x80)](_0x29dfcf(0x79)+_0x53a1c4);};return(0x0,react_1['useEffect'])(()=>{const _0x47a1e1=_0x370abd;return _0x20c451(),_0x55404a[_0x47a1e1(0x8b)]=react_native_kepler_1[_0x47a1e1(0x95)]['addEventListener'](_0x47a1e1(0x94),_0x2825cd),()=>{const _0xd2dc17=_0x47a1e1;IAPSDKLogger_1[_0xd2dc17(0x83)][_0xd2dc17(0x80)](_0xd2dc17(0x8a)),_0x55404a[_0xd2dc17(0x8b)]?.['remove']();};},[]),{'iapUserDataLoading':_0x27ef40,'iapUserDataError':_0x46e853,'iapUserData':_0x22ca6a};};function a3_0x1e8b(_0x28fbb7,_0x4745f4){const _0x548094=a3_0x5480();return a3_0x1e8b=function(_0x1e8b15,_0x1c3ddc){_0x1e8b15=_0x1e8b15-0x78;let _0x406318=_0x548094[_0x1e8b15];return _0x406318;},a3_0x1e8b(_0x28fbb7,_0x4745f4);}exports[a3_0x13fa37(0x96)]=useIapUserData;
@@ -0,0 +1,5 @@
1
+ export * from './types/IAPTypes';
2
+ export { PurchasingService } from './PurchasingService';
3
+ export { useIapUserData } from './hooks/useIapUserData';
4
+ export { useIapPurchaseUpdates } from './hooks/useIapPurchaseUpdates';
5
+ export { useIapProductData } from './hooks/useIapProductData';
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ 'use strict';function a4_0x1e26(){var _0x5f50e1=['3011272NUemlE','81610XkTubU','228764WuWrgc','729536uNAALV','configurable','useIapPurchaseUpdates','defineProperty','1530rLYVSC','453267ucfxmE','get','__esModule','create','hasOwnProperty','3689LcjxeL','__exportStar','getOwnPropertyDescriptor','10nTrezN','1jtYUuW','useIapProductData','PurchasingService','call','605817ESdiBk','prototype','useIapUserData','__createBinding','40raxGnh','writable'];a4_0x1e26=function(){return _0x5f50e1;};return a4_0x1e26();}var a4_0x124eb9=a4_0x2155;(function(_0x4c4fec,_0x4356bc){var _0x44f740=a4_0x2155,_0x41e558=_0x4c4fec();while(!![]){try{var _0x222e1f=parseInt(_0x44f740(0x18a))/0x1*(-parseInt(_0x44f740(0x196))/0x2)+parseInt(_0x44f740(0x19c))/0x3+-parseInt(_0x44f740(0x192))/0x4*(-parseInt(_0x44f740(0x195))/0x5)+-parseInt(_0x44f740(0x19b))/0x6*(parseInt(_0x44f740(0x1a1))/0x7)+-parseInt(_0x44f740(0x197))/0x8+-parseInt(_0x44f740(0x18e))/0x9*(parseInt(_0x44f740(0x189))/0xa)+parseInt(_0x44f740(0x194))/0xb;if(_0x222e1f===_0x4356bc)break;else _0x41e558['push'](_0x41e558['shift']());}catch(_0x181454){_0x41e558['push'](_0x41e558['shift']());}}}(a4_0x1e26,0x2c235));var __createBinding=this&&this[a4_0x124eb9(0x191)]||(Object[a4_0x124eb9(0x19f)]?function(_0x5e08ee,_0x33984b,_0xd23665,_0x2692b9){var _0x112388=a4_0x124eb9;if(_0x2692b9===undefined)_0x2692b9=_0xd23665;var _0x32a811=Object[_0x112388(0x1a3)](_0x33984b,_0xd23665);(!_0x32a811||(_0x112388(0x19d)in _0x32a811?!_0x33984b[_0x112388(0x19e)]:_0x32a811[_0x112388(0x193)]||_0x32a811[_0x112388(0x198)]))&&(_0x32a811={'enumerable':!![],'get':function(){return _0x33984b[_0xd23665];}}),Object[_0x112388(0x19a)](_0x5e08ee,_0x2692b9,_0x32a811);}:function(_0x1e5994,_0x23ba20,_0x17dfb8,_0x1295e6){if(_0x1295e6===undefined)_0x1295e6=_0x17dfb8;_0x1e5994[_0x1295e6]=_0x23ba20[_0x17dfb8];}),__exportStar=this&&this[a4_0x124eb9(0x1a2)]||function(_0xbb2a87,_0x1aab3d){var _0xb7a235=a4_0x124eb9;for(var _0x544260 in _0xbb2a87)if(_0x544260!=='default'&&!Object[_0xb7a235(0x18f)][_0xb7a235(0x1a0)][_0xb7a235(0x18d)](_0x1aab3d,_0x544260))__createBinding(_0x1aab3d,_0xbb2a87,_0x544260);};Object[a4_0x124eb9(0x19a)](exports,a4_0x124eb9(0x19e),{'value':!![]}),exports[a4_0x124eb9(0x18b)]=exports[a4_0x124eb9(0x199)]=exports[a4_0x124eb9(0x190)]=exports['PurchasingService']=void 0x0,__exportStar(require('./types/IAPTypes'),exports);var PurchasingService_1=require('./PurchasingService');Object[a4_0x124eb9(0x19a)](exports,a4_0x124eb9(0x18c),{'enumerable':!![],'get':function(){var _0x432939=a4_0x124eb9;return PurchasingService_1[_0x432939(0x18c)];}});var useIapUserData_1=require('./hooks/useIapUserData');Object[a4_0x124eb9(0x19a)](exports,a4_0x124eb9(0x190),{'enumerable':!![],'get':function(){var _0x1c951c=a4_0x124eb9;return useIapUserData_1[_0x1c951c(0x190)];}});var useIapPurchaseUpdates_1=require('./hooks/useIapPurchaseUpdates');function a4_0x2155(_0x21b673,_0xadca19){var _0x1e26e6=a4_0x1e26();return a4_0x2155=function(_0x21555,_0x3fc9d2){_0x21555=_0x21555-0x189;var _0xeb41cb=_0x1e26e6[_0x21555];return _0xeb41cb;},a4_0x2155(_0x21b673,_0xadca19);}Object[a4_0x124eb9(0x19a)](exports,a4_0x124eb9(0x199),{'enumerable':!![],'get':function(){var _0x28796d=a4_0x124eb9;return useIapPurchaseUpdates_1[_0x28796d(0x199)];}});var useIapProductData_1=require('./hooks/useIapProductData');Object[a4_0x124eb9(0x19a)](exports,'useIapProductData',{'enumerable':!![],'get':function(){var _0x4f5eab=a4_0x124eb9;return useIapProductData_1[_0x4f5eab(0x18b)];}});
@@ -0,0 +1,2 @@
1
+ declare const _default: AppstoreIAPRequestHandlerModule;
2
+ export default _default;
@@ -0,0 +1 @@
1
+ 'use strict';const a5_0x9a5d1c=a5_0xdab2;(function(_0x3daf6e,_0x18192c){const _0x5119c1=a5_0xdab2,_0x29e8a8=_0x3daf6e();while(!![]){try{const _0x4f1288=-parseInt(_0x5119c1(0x146))/0x1*(parseInt(_0x5119c1(0x144))/0x2)+-parseInt(_0x5119c1(0x143))/0x3*(parseInt(_0x5119c1(0x147))/0x4)+-parseInt(_0x5119c1(0x13f))/0x5+-parseInt(_0x5119c1(0x14c))/0x6+parseInt(_0x5119c1(0x140))/0x7+parseInt(_0x5119c1(0x13d))/0x8+parseInt(_0x5119c1(0x14a))/0x9*(parseInt(_0x5119c1(0x141))/0xa);if(_0x4f1288===_0x18192c)break;else _0x29e8a8['push'](_0x29e8a8['shift']());}catch(_0x17275c){_0x29e8a8['push'](_0x29e8a8['shift']());}}}(a5_0x3559,0x3d9cc));Object[a5_0x9a5d1c(0x145)](exports,a5_0x9a5d1c(0x13e),{'value':!![]});function a5_0x3559(){const _0x205559=['TurboModuleRegistry','getEnforcing','103419iXaLMj','default','367128AeNtVc','2424072chrkPP','__esModule','2006680dAaXga','1641633pTXVqP','270tRDpth','AppstoreIAPRequestHandlerModule','23973WeLcDj','185884TgiRbi','defineProperty','1vnzBSd','20CqxwvN'];a5_0x3559=function(){return _0x205559;};return a5_0x3559();}const keplerscript_turbomodule_api_1=require('@amazon-devices/keplerscript-turbomodule-api');function a5_0xdab2(_0x3efbd8,_0x19f08e){const _0x355966=a5_0x3559();return a5_0xdab2=function(_0xdab2cb,_0x398eea){_0xdab2cb=_0xdab2cb-0x13d;let _0x58cc30=_0x355966[_0xdab2cb];return _0x58cc30;},a5_0xdab2(_0x3efbd8,_0x19f08e);}exports[a5_0x9a5d1c(0x14b)]=keplerscript_turbomodule_api_1[a5_0x9a5d1c(0x148)][a5_0x9a5d1c(0x149)](a5_0x9a5d1c(0x142));
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ 'use strict';const a6_0x10e4f6=a6_0x1cc2;function a6_0x19c5(){const _0x325ab5=['InternalPurchaseResponseListener','notifyFulfillment','Received\x20the\x20request\x20for\x20getPurchaseUpdates\x20API','Created\x20a\x20new\x20Instance\x20for\x20Purchasing\x20Manager','IAPSDKLogger','getNewRequestId','ModifySubscriptionRequestHandler','NotifyFulfillmentRequestHandler','1809500dqHSTu','getResultPromise','Received\x20the\x20request\x20for\x20getProductData\x20API','173426Ezrrst','Received\x20the\x20request\x20for\x20notifyFulfillment\x20API','361492iSBbmD','InternalModifySubscriptionResponseListener','purchasingManagerInstance','60wRAxJx','execute','info','Received\x20the\x20request\x20for\x20modifySubscription\x20API','124664sOkeyt','1832VpWQtn','requestIdStr','PurchaseRequestHandler','1909300UUInAI','2WeJIgn','Received\x20the\x20request\x20for\x20purchase\x20API','3870294WtRuMz','requestId\x20:\x20','Received\x20the\x20request\x20for\x20getUserData','debug','requestUserProfileAccess','760HORUvc','PurchasingManager','GetUserDataRequestHandler','\x20for\x20API\x20requestUserProfileAccess','Received\x20the\x20request\x20for\x20userProfileAccess','modifySubscription','13014GpeJjD','__esModule','getUserData','purchase','IAPSDKUtils'];a6_0x19c5=function(){return _0x325ab5;};return a6_0x19c5();}(function(_0x4a6636,_0x112b87){const _0x223547=a6_0x1cc2,_0x45df3a=_0x4a6636();while(!![]){try{const _0x3876b8=parseInt(_0x223547(0x101))/0x1*(-parseInt(_0x223547(0xf5))/0x2)+parseInt(_0x223547(0xf8))/0x3*(parseInt(_0x223547(0xfc))/0x4)+-parseInt(_0x223547(0x100))/0x5+-parseInt(_0x223547(0x103))/0x6+parseInt(_0x223547(0x11b))/0x7+-parseInt(_0x223547(0xfd))/0x8*(parseInt(_0x223547(0x10e))/0x9)+parseInt(_0x223547(0x108))/0xa*(parseInt(_0x223547(0x11e))/0xb);if(_0x3876b8===_0x112b87)break;else _0x45df3a['push'](_0x45df3a['shift']());}catch(_0x439bdd){_0x45df3a['push'](_0x45df3a['shift']());}}}(a6_0x19c5,0x58035));Object['defineProperty'](exports,a6_0x10e4f6(0x10f),{'value':!![]}),exports[a6_0x10e4f6(0x109)]=void 0x0;const InternalModifySubscriptionResponseListener_1=require('./listeners/InternalModifySubscriptionResponseListener'),InternalPurchaseResponseListener_1=require('./listeners/InternalPurchaseResponseListener'),IAPSDKLogger_1=require('./logger/IAPSDKLogger'),GetProductDataRequestHandler_1=require('./operations/handler/getProductData/GetProductDataRequestHandler'),GetPurchaseUpdatesRequestHandler_1=require('./operations/handler/getPurchaseUpdates/GetPurchaseUpdatesRequestHandler'),GetUserDataRequestHandler_1=require('./operations/handler/getUserData/GetUserDataRequestHandler'),ModifySubscriptionRequestHandler_1=require('./operations/handler/modifySubscription/ModifySubscriptionRequestHandler'),NotifyFulfillmentRequestHandler_1=require('./operations/handler/notifyFulfillment/NotifyFulfillmentRequestHandler'),PurchaseRequestHandler_1=require('./operations/handler/purchase/PurchaseRequestHandler'),UserProfileAccessRequestHandler_1=require('./operations/handler/userProfileAccess/UserProfileAccessRequestHandler'),IAPSDKUtils_1=require('./utils/IAPSDKUtils');class PurchasingManager{static [a6_0x10e4f6(0xf7)]=null;constructor(){}static['getInstance'](){const _0x36ed5b=a6_0x10e4f6;return PurchasingManager[_0x36ed5b(0xf7)]==null&&(IAPSDKLogger_1[_0x36ed5b(0x117)]['debug'](_0x36ed5b(0x116)),PurchasingManager[_0x36ed5b(0xf7)]=new PurchasingManager()),PurchasingManager['purchasingManagerInstance'];}[a6_0x10e4f6(0x110)](_0x23c3b2){const _0x1ceae0=a6_0x10e4f6;IAPSDKLogger_1[_0x1ceae0(0x117)]['info'](_0x1ceae0(0x105));const _0x1e4836=IAPSDKUtils_1[_0x1ceae0(0x112)]['getNewRequestId']();return IAPSDKLogger_1[_0x1ceae0(0x117)][_0x1ceae0(0xfa)](_0x1ceae0(0x104)+_0x1e4836[_0x1ceae0(0xfe)]),new GetUserDataRequestHandler_1[(_0x1ceae0(0x10a))](_0x23c3b2,_0x1e4836)[_0x1ceae0(0xf9)]();}['getProductData'](_0xb5e6bf){const _0x245860=a6_0x10e4f6;IAPSDKLogger_1[_0x245860(0x117)][_0x245860(0xfa)](_0x245860(0x11d));const _0x36747d=IAPSDKUtils_1[_0x245860(0x112)][_0x245860(0x118)]();return IAPSDKLogger_1[_0x245860(0x117)][_0x245860(0xfa)](_0x245860(0x104)+_0x36747d[_0x245860(0xfe)]),new GetProductDataRequestHandler_1['GetProductDataRequestHandler'](_0xb5e6bf,_0x36747d)[_0x245860(0xf9)]();}[a6_0x10e4f6(0x114)](_0x1a5973){const _0x4a30bf=a6_0x10e4f6;IAPSDKLogger_1['IAPSDKLogger'][_0x4a30bf(0xfa)](_0x4a30bf(0xf4));const _0x415470=IAPSDKUtils_1['IAPSDKUtils'][_0x4a30bf(0x118)]();return IAPSDKLogger_1[_0x4a30bf(0x117)][_0x4a30bf(0xfa)]('requestId\x20:\x20'+_0x415470[_0x4a30bf(0xfe)]),new NotifyFulfillmentRequestHandler_1[(_0x4a30bf(0x11a))](_0x1a5973,_0x415470)['execute']();}['getPurchaseUpdates'](_0x3691de){const _0x15f956=a6_0x10e4f6;IAPSDKLogger_1[_0x15f956(0x117)][_0x15f956(0xfa)](_0x15f956(0x115));const _0x6f188=IAPSDKUtils_1[_0x15f956(0x112)][_0x15f956(0x118)]();return IAPSDKLogger_1[_0x15f956(0x117)][_0x15f956(0xfa)](_0x15f956(0x104)+_0x6f188[_0x15f956(0xfe)]),new GetPurchaseUpdatesRequestHandler_1['GetPurchaseUpdatesRequestHandler'](_0x3691de,_0x6f188)[_0x15f956(0xf9)]();}[a6_0x10e4f6(0x111)](_0x509b91){const _0x30c778=a6_0x10e4f6;IAPSDKLogger_1[_0x30c778(0x117)]['info'](_0x30c778(0x102));const _0x519498=new InternalPurchaseResponseListener_1[(_0x30c778(0x113))](),_0x2feedd=IAPSDKUtils_1[_0x30c778(0x112)][_0x30c778(0x118)]();return IAPSDKLogger_1[_0x30c778(0x117)]['info'](_0x30c778(0x104)+_0x2feedd[_0x30c778(0xfe)]),void new PurchaseRequestHandler_1[(_0x30c778(0xff))](_0x509b91,_0x2feedd,_0x519498)[_0x30c778(0xf9)](),_0x519498[_0x30c778(0x11c)]();}[a6_0x10e4f6(0x10d)](_0x14c155){const _0x1fbaa2=a6_0x10e4f6;IAPSDKLogger_1[_0x1fbaa2(0x117)][_0x1fbaa2(0xfa)](_0x1fbaa2(0xfb));const _0x1fc4f3=new InternalModifySubscriptionResponseListener_1[(_0x1fbaa2(0xf6))](),_0x344eda=IAPSDKUtils_1['IAPSDKUtils'][_0x1fbaa2(0x118)]();return IAPSDKLogger_1[_0x1fbaa2(0x117)][_0x1fbaa2(0xfa)]('requestId\x20:\x20'+_0x344eda[_0x1fbaa2(0xfe)]),void new ModifySubscriptionRequestHandler_1[(_0x1fbaa2(0x119))](_0x14c155,_0x344eda,_0x1fc4f3)[_0x1fbaa2(0xf9)](),_0x1fc4f3[_0x1fbaa2(0x11c)]();}[a6_0x10e4f6(0x107)](){const _0x483bf6=a6_0x10e4f6;IAPSDKLogger_1[_0x483bf6(0x117)][_0x483bf6(0x106)](_0x483bf6(0x10c));const _0x2e6829=IAPSDKUtils_1[_0x483bf6(0x112)][_0x483bf6(0x118)]();return IAPSDKLogger_1[_0x483bf6(0x117)][_0x483bf6(0xfa)]('requestId\x20:\x20'+_0x2e6829[_0x483bf6(0xfe)]+_0x483bf6(0x10b)),new UserProfileAccessRequestHandler_1['UserProfileAccessRequestHandler'](_0x2e6829)[_0x483bf6(0xf9)]();}}function a6_0x1cc2(_0x23041f,_0x669b20){const _0x19c576=a6_0x19c5();return a6_0x1cc2=function(_0x1cc2a9,_0x272abf){_0x1cc2a9=_0x1cc2a9-0xf4;let _0x5c86ff=_0x19c576[_0x1cc2a9];return _0x5c86ff;},a6_0x1cc2(_0x23041f,_0x669b20);}exports[a6_0x10e4f6(0x109)]=PurchasingManager;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ 'use strict';var a7_0x1de68d=a7_0xf591;(function(_0x338b4e,_0x54c1c0){var _0x3ab65d=a7_0xf591,_0x31ecce=_0x338b4e();while(!![]){try{var _0x41189d=parseInt(_0x3ab65d(0xc8))/0x1*(-parseInt(_0x3ab65d(0x106))/0x2)+parseInt(_0x3ab65d(0xfa))/0x3+parseInt(_0x3ab65d(0xce))/0x4*(parseInt(_0x3ab65d(0x10c))/0x5)+-parseInt(_0x3ab65d(0x11d))/0x6*(parseInt(_0x3ab65d(0xcd))/0x7)+-parseInt(_0x3ab65d(0xfc))/0x8+-parseInt(_0x3ab65d(0xe9))/0x9+-parseInt(_0x3ab65d(0xe5))/0xa*(-parseInt(_0x3ab65d(0xf2))/0xb);if(_0x41189d===_0x54c1c0)break;else _0x31ecce['push'](_0x31ecce['shift']());}catch(_0x5eea3c){_0x31ecce['push'](_0x31ecce['shift']());}}}(a7_0x5216,0x21cdb));function a7_0x5216(){var _0x3d9be9=['KEY_PRORATION_MODE','promotionPriceJson','KEY_HAS_MORE','2KWYCQN','version','KEY_MARKETPLACE','orderStatus','lwaConsentStatus','deferredDateEpoch','115FSwjVp','UNAVAILABLE','promotionPricePeriod','receiptDelivered','price','ALREADY_ENTITLED','__esModule','promotionType','promotionPriceCycles','deferredSku','KEY_AUTH_CODE_FOR_USER_PROFILE_ACCESS','requestPayload','iconUrl','promotionPrice','KEY_MODIFY_SUBSCRIPTION_UI_INFO','OPERATION_NAME_GET_PURCHASE_UPDATES','KEY_PROMOTIONS','3954RzzdMt','ZERO_STRING','KEY_SKUS','OPERATION_NAME_GET_AUTH_CODE_FOR_USER_PROFILE_ACCESS','EMPTY_STRING','KEY_VERSION','defineProperty','coinsRewardAmount','hasMore','purchase_item','sku','KEY_PROMOTIONS_PRICE_PERIOD','KEY_PROMOTIONS_PRICE_CYCLES','OPERATION_NAME_RESPONSE_RECEIVED','get_authCodeForUserProfileAccess','packageName','KEY_RESET','deviceId','KEY_DEFERRED_SKU','KEY_CURSOR_V2','description','cursor_v2','value','priceJson','getItem_data','KEY_FETCH_LWA_CONSENT_STATUS','OPERATION_NAME_NOTIFY_FULFILLMENT','KEY_TERM_SKU','receipt','KEY_PRODUCT_TYPE','KEY_RECEIPT_DELIVERED','com.amazon.sampleapp','KEY_CURSOR','OPERATION_NAME_MODIFY_SUBSCRIPTION_RESPONSE','requestId','KEY_VALIDATION_STATUS','url','receipts','signature','KEY_SIGNATURE','SAMPLE_PACKAGE_NAME','KEY_SKU','cancelDateEpoch','userId','KEY_PACKAGE_NAME','74393zYpkKA','KEY_SDK_VERSION','LAUNCH_UI_EVENT','KEY_PROMOTIONS_TYPE','purchaseDateEpoch','756XcGpMS','28904FDKNYN','marketplace','KEY_FULFILLMENT_RESULT','promotionPlans','KEY_IAP_RECEIPT_TYPE','KEY_DEVICE_ID','modify_subscription','KEY_SUBSCRIPTION_PERIOD','OPERATION_NAME_MODIFY_SUBSCRIPTION','KEY_PRICE_JSON','KEY_REQUEST_PAYLOAD','iapReceiptType','KEY_CANCEL_DATE_EPOCH','purchase_response','KEY_RESPONSE_STATUS','KEY_CURRENCY','KEY_RECEIPT','KEY_VALUE_IN_MICROS','purchase_fulfilled','KEY_V2_REQUEST_PAYLOAD','KEY_LWA_CONSENT_STATUS','SUCCESS','LWA_CONSENT_STATUS_UNAVAILABLE','87300IHsBdX','fulfillmentResult','authCodeForUserProfileAccess','KEY_REQUEST_ID','28341xwmgSv','KEY_V3_VERSION','modify_subscription_response','OPERATION_NAME_GET_PRODUCT_DATA','name','itemType','purchase_updates','skus','KEY_RESPONSE','198KTTlNm','response','fetchLwaConsentStatus','OPERATION_NAME_GET_USER_DATA','receiptId','KEY_DESCRIPTION','response_received','promotions','680328qaVKjw','launchUIEvent','2103528UvJBHP','currency','receiptIds','IAPSDKConstants','KEY_RECEIPT_ID','sdkVersion','FAILURE'];a7_0x5216=function(){return _0x3d9be9;};return a7_0x5216();}Object[a7_0x1de68d(0x123)](exports,a7_0x1de68d(0x112),{'value':!![]}),exports[a7_0x1de68d(0xff)]=void 0x0;function a7_0xf591(_0x272b4e,_0x3a0e63){var _0x521640=a7_0x5216();return a7_0xf591=function(_0xf591c6,_0x469bb3){_0xf591c6=_0xf591c6-0xac;var _0xfd7ffd=_0x521640[_0xf591c6];return _0xfd7ffd;},a7_0xf591(_0x272b4e,_0x3a0e63);}class IAPSDKConstants{static ['SDK_VERSION']='V2';static ['PURCHASE_EVENT']='purchaseEvent';static [a7_0x1de68d(0xca)]=a7_0x1de68d(0xfb);static [a7_0x1de68d(0xc3)]=a7_0x1de68d(0xba);static ['KEY_URL']=a7_0x1de68d(0xbf);static [a7_0x1de68d(0xf5)]='get_userId';static [a7_0x1de68d(0xec)]=a7_0x1de68d(0xb3);static [a7_0x1de68d(0x11b)]=a7_0x1de68d(0xef);static [a7_0x1de68d(0xb5)]=a7_0x1de68d(0xe0);static ['OPERATION_NAME_PURCHASE']=a7_0x1de68d(0x126);static ['OPERATION_NAME_PURCHASE_RESPONSE']=a7_0x1de68d(0xdb);static [a7_0x1de68d(0xd6)]=a7_0x1de68d(0xd4);static [a7_0x1de68d(0xbc)]=a7_0x1de68d(0xeb);static [a7_0x1de68d(0x12a)]=a7_0x1de68d(0xf8);static [a7_0x1de68d(0xe3)]=a7_0x1de68d(0xe3);static [a7_0x1de68d(0x102)]=a7_0x1de68d(0x102);static ['DELIVERED']='DELIVERED';static [a7_0x1de68d(0x111)]=a7_0x1de68d(0x111);static [a7_0x1de68d(0x120)]=a7_0x1de68d(0x12b);static [a7_0x1de68d(0xc9)]=a7_0x1de68d(0x101);static ['KEY_V2_VERSION']='V2';static [a7_0x1de68d(0xea)]='V3';static ['KEY_RESPONSE_VERSION']='responseVersion';static ['KEY_OPERATION_NAME']=a7_0x1de68d(0xed);static [a7_0x1de68d(0xe8)]=a7_0x1de68d(0xbd);static [a7_0x1de68d(0xc7)]=a7_0x1de68d(0x12c);static [a7_0x1de68d(0x122)]=a7_0x1de68d(0x107);static [a7_0x1de68d(0xd8)]=a7_0x1de68d(0x117);static [a7_0x1de68d(0xe1)]='V2';static [a7_0x1de68d(0xf1)]=a7_0x1de68d(0xf3);static [a7_0x1de68d(0xdc)]='responseStatus';static ['KEY_USER_ID']=a7_0x1de68d(0xc6);static [a7_0x1de68d(0x108)]=a7_0x1de68d(0xcf);static [a7_0x1de68d(0xe2)]=a7_0x1de68d(0x10a);static [a7_0x1de68d(0xb4)]=a7_0x1de68d(0xf4);static [a7_0x1de68d(0xe4)]=a7_0x1de68d(0x10d);static [a7_0x1de68d(0xb8)]=a7_0x1de68d(0xee);static [a7_0x1de68d(0xf7)]=a7_0x1de68d(0xaf);static ['KEY_PRICE']=a7_0x1de68d(0x110);static [a7_0x1de68d(0xd7)]=a7_0x1de68d(0xb2);static [a7_0x1de68d(0xdd)]=a7_0x1de68d(0xfd);static [a7_0x1de68d(0xdf)]=a7_0x1de68d(0xb1);static ['KEY_TITLE']='title';static ['KEY_ICON_URL']=a7_0x1de68d(0x118);static ['KEY_COINS_REWARD_AMOUNT']=a7_0x1de68d(0x124);static [a7_0x1de68d(0x11f)]=a7_0x1de68d(0xf0);static [a7_0x1de68d(0x100)]=a7_0x1de68d(0xf6);static ['KEY_RECEIPT_IDS']=a7_0x1de68d(0xfe);static [a7_0x1de68d(0xd0)]=a7_0x1de68d(0xe6);static ['KEY_FULFILLMENT_STATUS']='fulfillmentStatus';static [a7_0x1de68d(0xbe)]='validationStatus';static [a7_0x1de68d(0x12d)]='reset';static [a7_0x1de68d(0xbb)]='cursor';static [a7_0x1de68d(0xae)]=a7_0x1de68d(0xb0);static [a7_0x1de68d(0xde)]=a7_0x1de68d(0xb7);static ['KEY_RECEIPTS']=a7_0x1de68d(0xc0);static [a7_0x1de68d(0x105)]=a7_0x1de68d(0x125);static [a7_0x1de68d(0xd2)]=a7_0x1de68d(0xd9);static [a7_0x1de68d(0xd3)]=a7_0x1de68d(0xac);static [a7_0x1de68d(0xc2)]=a7_0x1de68d(0xc1);static [a7_0x1de68d(0xc4)]=a7_0x1de68d(0x127);static [a7_0x1de68d(0xb6)]='termSku';static [a7_0x1de68d(0xad)]=a7_0x1de68d(0x115);static ['KEY_PURCHASE_DATE_EPOCH']=a7_0x1de68d(0xcc);static [a7_0x1de68d(0xda)]=a7_0x1de68d(0xc5);static ['KEY_DEFERRED_DATE_EPOCH']=a7_0x1de68d(0x10b);static ['KEY_PURCHASE_UI_INFO']='purchaseItemIntent';static [a7_0x1de68d(0xb9)]=a7_0x1de68d(0x10f);static ['KEY_NOTIFY_LISTENER_SUCCEEDED']='notifyListenerSucceeded';static [a7_0x1de68d(0x103)]='prorationMode';static [a7_0x1de68d(0x11a)]='modifySubscriptionIntent';static ['KEY_FREE_TRIAL_PERIOD']='freeTrialPeriod';static [a7_0x1de68d(0xd5)]='subscriptionPeriod';static [a7_0x1de68d(0x11c)]=a7_0x1de68d(0xf9);static [a7_0x1de68d(0xcb)]=a7_0x1de68d(0x113);static ['KEY_PROMOTIONS_PLANS']=a7_0x1de68d(0xd1);static ['KEY_PROMOTIONS_PRICE']=a7_0x1de68d(0x119);static ['KEY_PROMOTIONS_PRICE_JSON']=a7_0x1de68d(0x104);static [a7_0x1de68d(0x128)]=a7_0x1de68d(0x10e);static [a7_0x1de68d(0x129)]=a7_0x1de68d(0x114);static ['KEY_ORDER_STATUS']=a7_0x1de68d(0x109);static [a7_0x1de68d(0x116)]=a7_0x1de68d(0xe7);static [a7_0x1de68d(0x121)]='';static [a7_0x1de68d(0x11e)]='0';}exports[a7_0x1de68d(0xff)]=IAPSDKConstants;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ 'use strict';function a8_0x176b(){var _0x9d185d=['180uXfinS','9jROmrC','PurchaseUpdatesAckResponseCode','3197776ZAlKtr','SUCCESSFUL','FAILED','52175qPlUjW','604901OzYhAp','1187766DVoNMg','104eGeOSY','3364308FKzWtL','7pOyWce','BasicAckResponseCode','defineProperty','__esModule','561911mNxdIK','64510eoMXXh'];a8_0x176b=function(){return _0x9d185d;};return a8_0x176b();}var a8_0x2ee655=a8_0x534d;(function(_0x2d4722,_0x167886){var _0x3a91f5=a8_0x534d,_0x1f3e22=_0x2d4722();while(!![]){try{var _0x3accad=-parseInt(_0x3a91f5(0xa2))/0x1+-parseInt(_0x3a91f5(0xa3))/0x2*(parseInt(_0x3a91f5(0xa5))/0x3)+-parseInt(_0x3a91f5(0x9c))/0x4*(-parseInt(_0x3a91f5(0x99))/0x5)+-parseInt(_0x3a91f5(0x9d))/0x6*(parseInt(_0x3a91f5(0x9e))/0x7)+parseInt(_0x3a91f5(0x96))/0x8+-parseInt(_0x3a91f5(0x9b))/0x9+-parseInt(_0x3a91f5(0xa4))/0xa*(-parseInt(_0x3a91f5(0x9a))/0xb);if(_0x3accad===_0x167886)break;else _0x1f3e22['push'](_0x1f3e22['shift']());}catch(_0x3694b2){_0x1f3e22['push'](_0x1f3e22['shift']());}}}(a8_0x176b,0x4b8fe));function a8_0x534d(_0x12031a,_0x319017){var _0x176b90=a8_0x176b();return a8_0x534d=function(_0x534d2b,_0x313bc0){_0x534d2b=_0x534d2b-0x96;var _0x4330aa=_0x176b90[_0x534d2b];return _0x4330aa;},a8_0x534d(_0x12031a,_0x319017);}Object[a8_0x2ee655(0xa0)](exports,a8_0x2ee655(0xa1),{'value':!![]}),exports[a8_0x2ee655(0x9f)]=exports[a8_0x2ee655(0xa6)]=void 0x0;var PurchaseUpdatesAckResponseCode;(function(_0x28fe19){var _0x4d0f84=a8_0x2ee655;_0x28fe19[_0x28fe19[_0x4d0f84(0x97)]=0x1]='SUCCESSFUL',_0x28fe19[_0x28fe19[_0x4d0f84(0x98)]=0x2]=_0x4d0f84(0x98);}(PurchaseUpdatesAckResponseCode=exports[a8_0x2ee655(0xa6)]||(exports[a8_0x2ee655(0xa6)]={})));var BasicAckResponseCode;(function(_0x22ab11){var _0x34a1ab=a8_0x2ee655;_0x22ab11[_0x22ab11[_0x34a1ab(0x97)]=0x1]='SUCCESSFUL',_0x22ab11[_0x22ab11[_0x34a1ab(0x98)]=0x2]=_0x34a1ab(0x98);}(BasicAckResponseCode=exports[a8_0x2ee655(0x9f)]||(exports[a8_0x2ee655(0x9f)]={})));
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Base class for response listeners. Empty as of now.
3
+ */
4
+ export declare abstract class IResponseListener {
5
+ }
@@ -0,0 +1 @@
1
+ 'use strict';var a9_0x3cd07a=a9_0x15e4;(function(_0x457784,_0x558127){var _0x3943eb=a9_0x15e4,_0x2261b4=_0x457784();while(!![]){try{var _0x3cc42e=parseInt(_0x3943eb(0x1c9))/0x1*(-parseInt(_0x3943eb(0x1d2))/0x2)+-parseInt(_0x3943eb(0x1cb))/0x3+-parseInt(_0x3943eb(0x1ca))/0x4*(-parseInt(_0x3943eb(0x1d3))/0x5)+-parseInt(_0x3943eb(0x1d5))/0x6+-parseInt(_0x3943eb(0x1cf))/0x7*(-parseInt(_0x3943eb(0x1c8))/0x8)+-parseInt(_0x3943eb(0x1d4))/0x9*(-parseInt(_0x3943eb(0x1cd))/0xa)+-parseInt(_0x3943eb(0x1d1))/0xb*(-parseInt(_0x3943eb(0x1d0))/0xc);if(_0x3cc42e===_0x558127)break;else _0x2261b4['push'](_0x2261b4['shift']());}catch(_0xfbd7ef){_0x2261b4['push'](_0x2261b4['shift']());}}}(a9_0x169c,0x35e7a));Object['defineProperty'](exports,a9_0x3cd07a(0x1cc),{'value':!![]}),exports[a9_0x3cd07a(0x1ce)]=void 0x0;class IResponseListener{}function a9_0x15e4(_0x1362e8,_0x38a4d9){var _0x169c1c=a9_0x169c();return a9_0x15e4=function(_0x15e498,_0x5d6f3b){_0x15e498=_0x15e498-0x1c8;var _0x1e8056=_0x169c1c[_0x15e498];return _0x1e8056;},a9_0x15e4(_0x1362e8,_0x38a4d9);}exports[a9_0x3cd07a(0x1ce)]=IResponseListener;function a9_0x169c(){var _0x4e5009=['16twwMal','814629hcApzv','__esModule','10uBHxKJ','IResponseListener','826mFNGWU','445644soRQiP','55DwLorn','466nAcmue','93815LiEVxP','3658383gIZdCG','1763382wLMtHx','25192ZPoUHv','1084qZgESl'];a9_0x169c=function(){return _0x4e5009;};return a9_0x169c();}
@@ -0,0 +1,14 @@
1
+ import { ModifySubscriptionResponse } from '../../types/IAPTypes';
2
+ import { ModifySubscriptionResponseListener } from './ModifySubscriptionResponseListener';
3
+ /**
4
+ * This class implements internal ModifySubscriptionResponseListener
5
+ * on behalf of the client and returns promise, abstracting the callback
6
+ * functionality.
7
+ */
8
+ export declare class InternalModifySubscriptionResponseListener extends ModifySubscriptionResponseListener {
9
+ private resultPromise;
10
+ private resolvePromise;
11
+ constructor();
12
+ onModifySubscriptionResponse(modifySubscriptionResponse: ModifySubscriptionResponse): void;
13
+ getResultPromise(): Promise<ModifySubscriptionResponse>;
14
+ }
@@ -0,0 +1 @@
1
+ 'use strict';const a10_0x45c54b=a10_0x3a47;(function(_0x22cba3,_0x3065af){const _0x45ac6f=a10_0x3a47,_0x30c7bb=_0x22cba3();while(!![]){try{const _0x305c65=-parseInt(_0x45ac6f(0x1c1))/0x1*(-parseInt(_0x45ac6f(0x1bd))/0x2)+parseInt(_0x45ac6f(0x1ba))/0x3+parseInt(_0x45ac6f(0x1b4))/0x4*(-parseInt(_0x45ac6f(0x1b5))/0x5)+parseInt(_0x45ac6f(0x1bb))/0x6*(-parseInt(_0x45ac6f(0x1b0))/0x7)+-parseInt(_0x45ac6f(0x1b6))/0x8+parseInt(_0x45ac6f(0x1b1))/0x9+parseInt(_0x45ac6f(0x1be))/0xa*(parseInt(_0x45ac6f(0x1b2))/0xb);if(_0x305c65===_0x3065af)break;else _0x30c7bb['push'](_0x30c7bb['shift']());}catch(_0xb16f2f){_0x30c7bb['push'](_0x30c7bb['shift']());}}}(a10_0x1b62,0xd7a71));function a10_0x3a47(_0x44dd42,_0x3f6880){const _0x1b624f=a10_0x1b62();return a10_0x3a47=function(_0x3a47de,_0x3da003){_0x3a47de=_0x3a47de-0x1b0;let _0x2f27ca=_0x1b624f[_0x3a47de];return _0x2f27ca;},a10_0x3a47(_0x44dd42,_0x3f6880);}Object['defineProperty'](exports,a10_0x45c54b(0x1bc),{'value':!![]}),exports[a10_0x45c54b(0x1b9)]=void 0x0;const ModifySubscriptionResponseListener_1=require('./ModifySubscriptionResponseListener');class InternalModifySubscriptionResponseListener extends ModifySubscriptionResponseListener_1[a10_0x45c54b(0x1b7)]{[a10_0x45c54b(0x1b8)];[a10_0x45c54b(0x1c0)];constructor(){const _0x384d77=a10_0x45c54b;super(),this[_0x384d77(0x1b8)]=new Promise((_0x2573e7,_0x375b57)=>{const _0x40e264=_0x384d77;this[_0x40e264(0x1c0)]=_0x2573e7;});}[a10_0x45c54b(0x1bf)](_0x35c8c7){const _0x380100=a10_0x45c54b;this[_0x380100(0x1c0)](_0x35c8c7);}[a10_0x45c54b(0x1b3)](){return this['resultPromise'];}}exports[a10_0x45c54b(0x1b9)]=InternalModifySubscriptionResponseListener;function a10_0x1b62(){const _0x748b4c=['__esModule','14IwkZEJ','586990npHbUK','onModifySubscriptionResponse','resolvePromise','41887CGTluX','4179VNINLd','8560422SJFXBY','187dzThYF','getResultPromise','3172aoKaba','9190LfAwav','284544hMzcXX','ModifySubscriptionResponseListener','resultPromise','InternalModifySubscriptionResponseListener','4254936qeDDGF','12906FoXRZo'];a10_0x1b62=function(){return _0x748b4c;};return a10_0x1b62();}
@@ -0,0 +1,14 @@
1
+ import { PurchaseResponse } from '../../types/IAPTypes';
2
+ import { PurchaseResponseListener } from './PurchaseResponseListener';
3
+ /**
4
+ * This class implements internal PurchaseResponseListener
5
+ * on behalf of the client and returns promise, abstracting the callback
6
+ * functionality.
7
+ */
8
+ export declare class InternalPurchaseResponseListener extends PurchaseResponseListener {
9
+ private resultPromise;
10
+ private resolvePromise;
11
+ constructor();
12
+ onPurchaseResponse(purchaseResponse: PurchaseResponse): void;
13
+ getResultPromise(): Promise<PurchaseResponse>;
14
+ }
@@ -0,0 +1 @@
1
+ 'use strict';function a11_0x1ae0(){const _0x482f38=['3310482CStxtE','getResultPromise','resultPromise','1349811hZiKoR','resolvePromise','2253618WFcNIA','90295aicLRI','__esModule','3687570hpTdjf','188MrWxUh','onPurchaseResponse','defineProperty','254494pjSpUP','InternalPurchaseResponseListener','3fWqwgb','6208672cNPfvk','PurchaseResponseListener'];a11_0x1ae0=function(){return _0x482f38;};return a11_0x1ae0();}const a11_0x145cd7=a11_0x4dc0;(function(_0xe650b6,_0x9778fd){const _0x474f6a=a11_0x4dc0,_0x1e2e14=_0xe650b6();while(!![]){try{const _0x4500bf=-parseInt(_0x474f6a(0x1ba))/0x1*(parseInt(_0x474f6a(0x1b8))/0x2)+parseInt(_0x474f6a(0x1af))/0x3+-parseInt(_0x474f6a(0x1b5))/0x4*(-parseInt(_0x474f6a(0x1b2))/0x5)+-parseInt(_0x474f6a(0x1b1))/0x6+-parseInt(_0x474f6a(0x1ac))/0x7+parseInt(_0x474f6a(0x1aa))/0x8+-parseInt(_0x474f6a(0x1b4))/0x9;if(_0x4500bf===_0x9778fd)break;else _0x1e2e14['push'](_0x1e2e14['shift']());}catch(_0x396118){_0x1e2e14['push'](_0x1e2e14['shift']());}}}(a11_0x1ae0,0x6a26a));Object[a11_0x145cd7(0x1b7)](exports,a11_0x145cd7(0x1b3),{'value':!![]}),exports[a11_0x145cd7(0x1b9)]=void 0x0;const PurchaseResponseListener_1=require('./PurchaseResponseListener');function a11_0x4dc0(_0x592e66,_0x415cbf){const _0x1ae067=a11_0x1ae0();return a11_0x4dc0=function(_0x4dc0e9,_0x4e86eb){_0x4dc0e9=_0x4dc0e9-0x1aa;let _0x524bca=_0x1ae067[_0x4dc0e9];return _0x524bca;},a11_0x4dc0(_0x592e66,_0x415cbf);}class InternalPurchaseResponseListener extends PurchaseResponseListener_1[a11_0x145cd7(0x1ab)]{[a11_0x145cd7(0x1ae)];[a11_0x145cd7(0x1b0)];constructor(){const _0x2bbba0=a11_0x145cd7;super(),this[_0x2bbba0(0x1ae)]=new Promise((_0x75210a,_0x352d24)=>{const _0x2a95f3=_0x2bbba0;this[_0x2a95f3(0x1b0)]=_0x75210a;});}[a11_0x145cd7(0x1b6)](_0x5a0737){const _0x3737cf=a11_0x145cd7;this[_0x3737cf(0x1b0)](_0x5a0737);}[a11_0x145cd7(0x1ad)](){const _0x2519fa=a11_0x145cd7;return this[_0x2519fa(0x1ae)];}}exports['InternalPurchaseResponseListener']=InternalPurchaseResponseListener;
@@ -0,0 +1,20 @@
1
+ import * as IAPTypes from "../../types/IAPTypes";
2
+ import { IResponseListener } from "./IResponseListener";
3
+ /**
4
+ * ModifySubscriptionResponseListener should be implemented and its instance registered with
5
+ * {@link PurchasingService.addListener} for receiving response for subscription modification initiated via
6
+ * {@link PurchasingService.modifySubscription} API.
7
+ * <br/>If you initiate a modify subscription with {@link PurchasingService.modifySubscription}, you will eventually
8
+ * receive a ModifySubscriptionResponse in your implemented onModifySubscriptionResponse method.
9
+ */
10
+ export declare abstract class ModifySubscriptionResponseListener extends IResponseListener {
11
+ /**
12
+ * This callback method is invoked when a {@link ModifySubscriptionResponse} is available for a request initiated
13
+ * by {@link PurchasingService.modifySubscription}.
14
+ * Implement this method to, for example, update your application state, save modifySubscription information
15
+ * to a database, send information to your developer server.
16
+ *
17
+ * @param modifySubscriptionResponse - Response containing the modified receipts data and status of the request.
18
+ */
19
+ abstract onModifySubscriptionResponse(modifySubscriptionResponse: IAPTypes.ModifySubscriptionResponse): void;
20
+ }
@@ -0,0 +1 @@
1
+ 'use strict';const a12_0x3b6977=a12_0x3fdf;(function(_0x7d8e7,_0x4a3929){const _0x1bcb4c=a12_0x3fdf,_0x36dcb0=_0x7d8e7();while(!![]){try{const _0xe47db4=-parseInt(_0x1bcb4c(0x1d4))/0x1*(parseInt(_0x1bcb4c(0x1d9))/0x2)+parseInt(_0x1bcb4c(0x1d2))/0x3+parseInt(_0x1bcb4c(0x1d0))/0x4*(-parseInt(_0x1bcb4c(0x1dd))/0x5)+parseInt(_0x1bcb4c(0x1de))/0x6*(parseInt(_0x1bcb4c(0x1d5))/0x7)+parseInt(_0x1bcb4c(0x1cf))/0x8*(-parseInt(_0x1bcb4c(0x1d3))/0x9)+parseInt(_0x1bcb4c(0x1d6))/0xa*(-parseInt(_0x1bcb4c(0x1d1))/0xb)+parseInt(_0x1bcb4c(0x1db))/0xc;if(_0xe47db4===_0x4a3929)break;else _0x36dcb0['push'](_0x36dcb0['shift']());}catch(_0x570c10){_0x36dcb0['push'](_0x36dcb0['shift']());}}}(a12_0x3c68,0x2c4a6));function a12_0x3c68(){const _0x5ac790=['17487qyoasT','143nKGrHv','49vUQkiK','64630qKUMgP','defineProperty','__esModule','922PQvwjd','IResponseListener','2528616TrUPnu','ModifySubscriptionResponseListener','77215PGlrOx','217374fWBKfC','632sHvjDp','40mAgIQc','341hEwrkT','873888hEEWIl'];a12_0x3c68=function(){return _0x5ac790;};return a12_0x3c68();}function a12_0x3fdf(_0x5e4099,_0x55b2a4){const _0x3c6866=a12_0x3c68();return a12_0x3fdf=function(_0x3fdfa7,_0x36c2ab){_0x3fdfa7=_0x3fdfa7-0x1cf;let _0x4d225d=_0x3c6866[_0x3fdfa7];return _0x4d225d;},a12_0x3fdf(_0x5e4099,_0x55b2a4);}Object[a12_0x3b6977(0x1d7)](exports,a12_0x3b6977(0x1d8),{'value':!![]}),exports[a12_0x3b6977(0x1dc)]=void 0x0;const IResponseListener_1=require('./IResponseListener');class ModifySubscriptionResponseListener extends IResponseListener_1[a12_0x3b6977(0x1da)]{}exports[a12_0x3b6977(0x1dc)]=ModifySubscriptionResponseListener;