@qonversion/react-native-sdk 10.0.0-RC1
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.
- package/README.md +129 -0
- package/android/build.gradle +92 -0
- package/android/gradle.properties +6 -0
- package/android/src/main/AndroidManifest.xml +2 -0
- package/android/src/main/java/com/qonversion/reactnativesdk/EntitiesConverter.kt +135 -0
- package/android/src/main/java/com/qonversion/reactnativesdk/NoCodesModule.kt +76 -0
- package/android/src/main/java/com/qonversion/reactnativesdk/QonversionModule.kt +278 -0
- package/android/src/main/java/com/qonversion/reactnativesdk/QonversionPackage.kt +43 -0
- package/android/src/main/java/com/qonversion/reactnativesdk/Utils.kt +32 -0
- package/ios/RNNoCodes.h +5 -0
- package/ios/RNNoCodes.mm +61 -0
- package/ios/RNNoCodesImpl.swift +69 -0
- package/ios/RNQonversion.h +5 -0
- package/ios/RNQonversion.mm +189 -0
- package/ios/RNQonversionImpl.swift +250 -0
- package/ios/qonversion-react-native-sdk-Bridging-Header.h +6 -0
- package/lib/module/NoCodes.js +32 -0
- package/lib/module/NoCodes.js.map +1 -0
- package/lib/module/NoCodesApi.js +2 -0
- package/lib/module/NoCodesApi.js.map +1 -0
- package/lib/module/NoCodesConfig.js +10 -0
- package/lib/module/NoCodesConfig.js.map +1 -0
- package/lib/module/NoCodesConfigBuilder.js +35 -0
- package/lib/module/NoCodesConfigBuilder.js.map +1 -0
- package/lib/module/Qonversion.js +35 -0
- package/lib/module/Qonversion.js.map +1 -0
- package/lib/module/QonversionApi.js +4 -0
- package/lib/module/QonversionApi.js.map +1 -0
- package/lib/module/QonversionConfig.js +16 -0
- package/lib/module/QonversionConfig.js.map +1 -0
- package/lib/module/QonversionConfigBuilder.js +90 -0
- package/lib/module/QonversionConfigBuilder.js.map +1 -0
- package/lib/module/dto/Entitlement.js +24 -0
- package/lib/module/dto/Entitlement.js.map +1 -0
- package/lib/module/dto/EntitlementsUpdateListener.js +4 -0
- package/lib/module/dto/EntitlementsUpdateListener.js.map +1 -0
- package/lib/module/dto/Experiment.js +11 -0
- package/lib/module/dto/Experiment.js.map +1 -0
- package/lib/module/dto/ExperimentGroup.js +11 -0
- package/lib/module/dto/ExperimentGroup.js.map +1 -0
- package/lib/module/dto/IntroEligibility.js +9 -0
- package/lib/module/dto/IntroEligibility.js.map +1 -0
- package/lib/module/dto/NoCodesAction.js +11 -0
- package/lib/module/dto/NoCodesAction.js.map +1 -0
- package/lib/module/dto/NoCodesError.js +13 -0
- package/lib/module/dto/NoCodesError.js.map +1 -0
- package/lib/module/dto/NoCodesListener.js +4 -0
- package/lib/module/dto/NoCodesListener.js.map +1 -0
- package/lib/module/dto/Offering.js +14 -0
- package/lib/module/dto/Offering.js.map +1 -0
- package/lib/module/dto/Offerings.js +13 -0
- package/lib/module/dto/Offerings.js.map +1 -0
- package/lib/module/dto/Product.js +114 -0
- package/lib/module/dto/Product.js.map +1 -0
- package/lib/module/dto/PromoPurchasesListener.js +4 -0
- package/lib/module/dto/PromoPurchasesListener.js.map +1 -0
- package/lib/module/dto/PromotionalOffer.js +10 -0
- package/lib/module/dto/PromotionalOffer.js.map +1 -0
- package/lib/module/dto/PurchaseModel.js +26 -0
- package/lib/module/dto/PurchaseModel.js.map +1 -0
- package/lib/module/dto/PurchaseOptions.js +15 -0
- package/lib/module/dto/PurchaseOptions.js.map +1 -0
- package/lib/module/dto/PurchaseOptionsBuilder.js +117 -0
- package/lib/module/dto/PurchaseOptionsBuilder.js.map +1 -0
- package/lib/module/dto/PurchaseUpdateModel.js +32 -0
- package/lib/module/dto/PurchaseUpdateModel.js.map +1 -0
- package/lib/module/dto/QonversionError.js +15 -0
- package/lib/module/dto/QonversionError.js.map +1 -0
- package/lib/module/dto/RemoteConfig.js +11 -0
- package/lib/module/dto/RemoteConfig.js.map +1 -0
- package/lib/module/dto/RemoteConfigList.js +18 -0
- package/lib/module/dto/RemoteConfigList.js.map +1 -0
- package/lib/module/dto/RemoteConfigurationSource.js +13 -0
- package/lib/module/dto/RemoteConfigurationSource.js.map +1 -0
- package/lib/module/dto/ScreenPresentationConfig.js +22 -0
- package/lib/module/dto/ScreenPresentationConfig.js.map +1 -0
- package/lib/module/dto/SubscriptionPeriod.js +26 -0
- package/lib/module/dto/SubscriptionPeriod.js.map +1 -0
- package/lib/module/dto/Transaction.js +18 -0
- package/lib/module/dto/Transaction.js.map +1 -0
- package/lib/module/dto/User.js +10 -0
- package/lib/module/dto/User.js.map +1 -0
- package/lib/module/dto/UserProperties.js +71 -0
- package/lib/module/dto/UserProperties.js.map +1 -0
- package/lib/module/dto/UserProperty.js +17 -0
- package/lib/module/dto/UserProperty.js.map +1 -0
- package/lib/module/dto/enums.js +425 -0
- package/lib/module/dto/enums.js.map +1 -0
- package/lib/module/dto/storeProducts/ProductInAppDetails.js +16 -0
- package/lib/module/dto/storeProducts/ProductInAppDetails.js.map +1 -0
- package/lib/module/dto/storeProducts/ProductInstallmentPlanDetails.js +25 -0
- package/lib/module/dto/storeProducts/ProductInstallmentPlanDetails.js.map +1 -0
- package/lib/module/dto/storeProducts/ProductOfferDetails.js +76 -0
- package/lib/module/dto/storeProducts/ProductOfferDetails.js.map +1 -0
- package/lib/module/dto/storeProducts/ProductPrice.js +37 -0
- package/lib/module/dto/storeProducts/ProductPrice.js.map +1 -0
- package/lib/module/dto/storeProducts/ProductPricingPhase.js +52 -0
- package/lib/module/dto/storeProducts/ProductPricingPhase.js.map +1 -0
- package/lib/module/dto/storeProducts/ProductStoreDetails.js +114 -0
- package/lib/module/dto/storeProducts/ProductStoreDetails.js.map +1 -0
- package/lib/module/dto/storeProducts/SKPaymentDiscount.js +13 -0
- package/lib/module/dto/storeProducts/SKPaymentDiscount.js.map +1 -0
- package/lib/module/dto/storeProducts/SKProduct.js +22 -0
- package/lib/module/dto/storeProducts/SKProduct.js.map +1 -0
- package/lib/module/dto/storeProducts/SKProductDiscount.js +16 -0
- package/lib/module/dto/storeProducts/SKProductDiscount.js.map +1 -0
- package/lib/module/dto/storeProducts/SKSubscriptionPeriod.js +10 -0
- package/lib/module/dto/storeProducts/SKSubscriptionPeriod.js.map +1 -0
- package/lib/module/dto/storeProducts/SkuDetails.js +30 -0
- package/lib/module/dto/storeProducts/SkuDetails.js.map +1 -0
- package/lib/module/index.js +40 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/internal/Mapper.js +676 -0
- package/lib/module/internal/Mapper.js.map +1 -0
- package/lib/module/internal/NoCodesInternal.js +70 -0
- package/lib/module/internal/NoCodesInternal.js.map +1 -0
- package/lib/module/internal/QonversionInternal.js +237 -0
- package/lib/module/internal/QonversionInternal.js.map +1 -0
- package/lib/module/internal/specs/NativeNoCodesModule.js +5 -0
- package/lib/module/internal/specs/NativeNoCodesModule.js.map +1 -0
- package/lib/module/internal/specs/NativeQonversionModule.js +5 -0
- package/lib/module/internal/specs/NativeQonversionModule.js.map +1 -0
- package/lib/module/internal/utils.js +10 -0
- package/lib/module/internal/utils.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/src/NoCodes.d.ts +23 -0
- package/lib/typescript/src/NoCodes.d.ts.map +1 -0
- package/lib/typescript/src/NoCodesApi.d.ts +20 -0
- package/lib/typescript/src/NoCodesApi.d.ts.map +1 -0
- package/lib/typescript/src/NoCodesConfig.d.ts +8 -0
- package/lib/typescript/src/NoCodesConfig.d.ts.map +1 -0
- package/lib/typescript/src/NoCodesConfigBuilder.d.ts +26 -0
- package/lib/typescript/src/NoCodesConfigBuilder.d.ts.map +1 -0
- package/lib/typescript/src/Qonversion.d.ts +26 -0
- package/lib/typescript/src/Qonversion.d.ts.map +1 -0
- package/lib/typescript/src/QonversionApi.d.ts +285 -0
- package/lib/typescript/src/QonversionApi.d.ts.map +1 -0
- package/lib/typescript/src/QonversionConfig.d.ts +14 -0
- package/lib/typescript/src/QonversionConfig.d.ts.map +1 -0
- package/lib/typescript/src/QonversionConfigBuilder.d.ts +65 -0
- package/lib/typescript/src/QonversionConfigBuilder.d.ts.map +1 -0
- package/lib/typescript/src/dto/Entitlement.d.ts +22 -0
- package/lib/typescript/src/dto/Entitlement.d.ts.map +1 -0
- package/lib/typescript/src/dto/EntitlementsUpdateListener.d.ts +10 -0
- package/lib/typescript/src/dto/EntitlementsUpdateListener.d.ts.map +1 -0
- package/lib/typescript/src/dto/Experiment.d.ts +9 -0
- package/lib/typescript/src/dto/Experiment.d.ts.map +1 -0
- package/lib/typescript/src/dto/ExperimentGroup.d.ts +9 -0
- package/lib/typescript/src/dto/ExperimentGroup.d.ts.map +1 -0
- package/lib/typescript/src/dto/IntroEligibility.d.ts +7 -0
- package/lib/typescript/src/dto/IntroEligibility.d.ts.map +1 -0
- package/lib/typescript/src/dto/NoCodesAction.d.ts +10 -0
- package/lib/typescript/src/dto/NoCodesAction.d.ts.map +1 -0
- package/lib/typescript/src/dto/NoCodesError.d.ts +12 -0
- package/lib/typescript/src/dto/NoCodesError.d.ts.map +1 -0
- package/lib/typescript/src/dto/NoCodesListener.d.ts +34 -0
- package/lib/typescript/src/dto/NoCodesListener.d.ts.map +1 -0
- package/lib/typescript/src/dto/Offering.d.ts +11 -0
- package/lib/typescript/src/dto/Offering.d.ts.map +1 -0
- package/lib/typescript/src/dto/Offerings.d.ts +9 -0
- package/lib/typescript/src/dto/Offerings.d.ts.map +1 -0
- package/lib/typescript/src/dto/Product.d.ts +95 -0
- package/lib/typescript/src/dto/Product.d.ts.map +1 -0
- package/lib/typescript/src/dto/PromoPurchasesListener.d.ts +12 -0
- package/lib/typescript/src/dto/PromoPurchasesListener.d.ts.map +1 -0
- package/lib/typescript/src/dto/PromotionalOffer.d.ts +9 -0
- package/lib/typescript/src/dto/PromotionalOffer.d.ts.map +1 -0
- package/lib/typescript/src/dto/PurchaseModel.d.ts +19 -0
- package/lib/typescript/src/dto/PurchaseModel.d.ts.map +1 -0
- package/lib/typescript/src/dto/PurchaseOptions.d.ts +15 -0
- package/lib/typescript/src/dto/PurchaseOptions.d.ts.map +1 -0
- package/lib/typescript/src/dto/PurchaseOptionsBuilder.d.ts +84 -0
- package/lib/typescript/src/dto/PurchaseOptionsBuilder.d.ts.map +1 -0
- package/lib/typescript/src/dto/PurchaseUpdateModel.d.ts +25 -0
- package/lib/typescript/src/dto/PurchaseUpdateModel.d.ts.map +1 -0
- package/lib/typescript/src/dto/QonversionError.d.ts +11 -0
- package/lib/typescript/src/dto/QonversionError.d.ts.map +1 -0
- package/lib/typescript/src/dto/RemoteConfig.d.ts +10 -0
- package/lib/typescript/src/dto/RemoteConfig.d.ts.map +1 -0
- package/lib/typescript/src/dto/RemoteConfigList.d.ts +10 -0
- package/lib/typescript/src/dto/RemoteConfigList.d.ts.map +1 -0
- package/lib/typescript/src/dto/RemoteConfigurationSource.d.ts +11 -0
- package/lib/typescript/src/dto/RemoteConfigurationSource.d.ts.map +1 -0
- package/lib/typescript/src/dto/ScreenPresentationConfig.d.ts +18 -0
- package/lib/typescript/src/dto/ScreenPresentationConfig.d.ts.map +1 -0
- package/lib/typescript/src/dto/SubscriptionPeriod.d.ts +21 -0
- package/lib/typescript/src/dto/SubscriptionPeriod.d.ts.map +1 -0
- package/lib/typescript/src/dto/Transaction.d.ts +16 -0
- package/lib/typescript/src/dto/Transaction.d.ts.map +1 -0
- package/lib/typescript/src/dto/User.d.ts +7 -0
- package/lib/typescript/src/dto/User.d.ts.map +1 -0
- package/lib/typescript/src/dto/UserProperties.d.ts +49 -0
- package/lib/typescript/src/dto/UserProperties.d.ts.map +1 -0
- package/lib/typescript/src/dto/UserProperty.d.ts +13 -0
- package/lib/typescript/src/dto/UserProperty.d.ts.map +1 -0
- package/lib/typescript/src/dto/enums.d.ts +343 -0
- package/lib/typescript/src/dto/enums.d.ts.map +1 -0
- package/lib/typescript/src/dto/storeProducts/ProductInAppDetails.d.ts +13 -0
- package/lib/typescript/src/dto/storeProducts/ProductInAppDetails.d.ts.map +1 -0
- package/lib/typescript/src/dto/storeProducts/ProductInstallmentPlanDetails.d.ts +20 -0
- package/lib/typescript/src/dto/storeProducts/ProductInstallmentPlanDetails.d.ts.map +1 -0
- package/lib/typescript/src/dto/storeProducts/ProductOfferDetails.d.ts +63 -0
- package/lib/typescript/src/dto/storeProducts/ProductOfferDetails.d.ts.map +1 -0
- package/lib/typescript/src/dto/storeProducts/ProductPrice.d.ts +29 -0
- package/lib/typescript/src/dto/storeProducts/ProductPrice.d.ts.map +1 -0
- package/lib/typescript/src/dto/storeProducts/ProductPricingPhase.d.ts +44 -0
- package/lib/typescript/src/dto/storeProducts/ProductPricingPhase.d.ts.map +1 -0
- package/lib/typescript/src/dto/storeProducts/ProductStoreDetails.d.ts +97 -0
- package/lib/typescript/src/dto/storeProducts/ProductStoreDetails.d.ts.map +1 -0
- package/lib/typescript/src/dto/storeProducts/SKPaymentDiscount.d.ts +10 -0
- package/lib/typescript/src/dto/storeProducts/SKPaymentDiscount.d.ts.map +1 -0
- package/lib/typescript/src/dto/storeProducts/SKProduct.d.ts +21 -0
- package/lib/typescript/src/dto/storeProducts/SKProduct.d.ts.map +1 -0
- package/lib/typescript/src/dto/storeProducts/SKProductDiscount.d.ts +15 -0
- package/lib/typescript/src/dto/storeProducts/SKProductDiscount.d.ts.map +1 -0
- package/lib/typescript/src/dto/storeProducts/SKSubscriptionPeriod.d.ts +8 -0
- package/lib/typescript/src/dto/storeProducts/SKSubscriptionPeriod.d.ts.map +1 -0
- package/lib/typescript/src/dto/storeProducts/SkuDetails.d.ts +27 -0
- package/lib/typescript/src/dto/storeProducts/SkuDetails.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +41 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/internal/Mapper.d.ts +312 -0
- package/lib/typescript/src/internal/Mapper.d.ts.map +1 -0
- package/lib/typescript/src/internal/NoCodesInternal.d.ts +14 -0
- package/lib/typescript/src/internal/NoCodesInternal.d.ts.map +1 -0
- package/lib/typescript/src/internal/QonversionInternal.d.ts +60 -0
- package/lib/typescript/src/internal/QonversionInternal.d.ts.map +1 -0
- package/lib/typescript/src/internal/specs/NativeNoCodesModule.d.ts +17 -0
- package/lib/typescript/src/internal/specs/NativeNoCodesModule.d.ts.map +1 -0
- package/lib/typescript/src/internal/specs/NativeQonversionModule.d.ts +56 -0
- package/lib/typescript/src/internal/specs/NativeQonversionModule.d.ts.map +1 -0
- package/lib/typescript/src/internal/utils.d.ts +3 -0
- package/lib/typescript/src/internal/utils.d.ts.map +1 -0
- package/package.json +151 -0
- package/qonversion-react-native-sdk.podspec +21 -0
- package/src/NoCodes.ts +37 -0
- package/src/NoCodesApi.ts +22 -0
- package/src/NoCodesConfig.ts +16 -0
- package/src/NoCodesConfigBuilder.ts +40 -0
- package/src/Qonversion.ts +40 -0
- package/src/QonversionApi.ts +318 -0
- package/src/QonversionConfig.ts +32 -0
- package/src/QonversionConfigBuilder.ts +102 -0
- package/src/dto/Entitlement.ts +57 -0
- package/src/dto/EntitlementsUpdateListener.ts +11 -0
- package/src/dto/Experiment.ts +15 -0
- package/src/dto/ExperimentGroup.ts +15 -0
- package/src/dto/IntroEligibility.ts +11 -0
- package/src/dto/NoCodesAction.ts +21 -0
- package/src/dto/NoCodesError.ts +26 -0
- package/src/dto/NoCodesListener.ts +39 -0
- package/src/dto/Offering.ts +20 -0
- package/src/dto/Offerings.ts +17 -0
- package/src/dto/Product.ts +159 -0
- package/src/dto/PromoPurchasesListener.ts +13 -0
- package/src/dto/PromotionalOffer.ts +17 -0
- package/src/dto/PurchaseModel.ts +29 -0
- package/src/dto/PurchaseOptions.ts +33 -0
- package/src/dto/PurchaseOptionsBuilder.ts +127 -0
- package/src/dto/PurchaseUpdateModel.ts +43 -0
- package/src/dto/QonversionError.ts +24 -0
- package/src/dto/RemoteConfig.ts +16 -0
- package/src/dto/RemoteConfigList.ts +23 -0
- package/src/dto/RemoteConfigurationSource.ts +26 -0
- package/src/dto/ScreenPresentationConfig.ts +24 -0
- package/src/dto/SubscriptionPeriod.ts +33 -0
- package/src/dto/Transaction.ts +40 -0
- package/src/dto/User.ts +11 -0
- package/src/dto/UserProperties.ts +78 -0
- package/src/dto/UserProperty.ts +21 -0
- package/src/dto/enums.ts +389 -0
- package/src/dto/storeProducts/ProductInAppDetails.ts +17 -0
- package/src/dto/storeProducts/ProductInstallmentPlanDetails.ts +28 -0
- package/src/dto/storeProducts/ProductOfferDetails.ts +102 -0
- package/src/dto/storeProducts/ProductPrice.ts +46 -0
- package/src/dto/storeProducts/ProductPricingPhase.ts +71 -0
- package/src/dto/storeProducts/ProductStoreDetails.ts +151 -0
- package/src/dto/storeProducts/SKPaymentDiscount.ts +23 -0
- package/src/dto/storeProducts/SKProduct.ts +53 -0
- package/src/dto/storeProducts/SKProductDiscount.ts +38 -0
- package/src/dto/storeProducts/SKSubscriptionPeriod.ts +13 -0
- package/src/dto/storeProducts/SkuDetails.ts +68 -0
- package/src/index.ts +43 -0
- package/src/internal/Mapper.ts +1221 -0
- package/src/internal/NoCodesInternal.ts +84 -0
- package/src/internal/QonversionInternal.ts +370 -0
- package/src/internal/specs/NativeNoCodesModule.ts +20 -0
- package/src/internal/specs/NativeQonversionModule.ts +74 -0
- package/src/internal/utils.ts +9 -0
|
@@ -0,0 +1,343 @@
|
|
|
1
|
+
export declare enum LaunchMode {
|
|
2
|
+
ANALYTICS = "Analytics",
|
|
3
|
+
SUBSCRIPTION_MANAGEMENT = "SubscriptionManagement"
|
|
4
|
+
}
|
|
5
|
+
export declare enum Environment {
|
|
6
|
+
SANDBOX = "Sandbox",
|
|
7
|
+
PRODUCTION = "Production"
|
|
8
|
+
}
|
|
9
|
+
export declare enum ProductType {
|
|
10
|
+
TRIAL = "Trial",
|
|
11
|
+
INTRO = "Intro",/** Currently works for Android only. iOS support will be added soon. */
|
|
12
|
+
SUBSCRIPTION = "Subscription",
|
|
13
|
+
IN_APP = "InApp",
|
|
14
|
+
UNKNOWN = "Unknown"
|
|
15
|
+
}
|
|
16
|
+
export declare enum SubscriptionPeriodUnit {
|
|
17
|
+
DAY = "Day",
|
|
18
|
+
WEEK = "Week",
|
|
19
|
+
MONTH = "Month",
|
|
20
|
+
YEAR = "Year",
|
|
21
|
+
UNKNOWN = "Unknown"
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Recurrence mode of the pricing phase.
|
|
25
|
+
*/
|
|
26
|
+
export declare enum PricingPhaseRecurrenceMode {
|
|
27
|
+
/**
|
|
28
|
+
* The billing plan payment recurs for infinite billing periods unless canceled.
|
|
29
|
+
*/
|
|
30
|
+
INFINITE_RECURRING = "InfiniteRecurring",
|
|
31
|
+
/**
|
|
32
|
+
* The billing plan payment recurs for a fixed number of billing periods
|
|
33
|
+
* set in {@link ProductPricingPhase.billingCycleCount}.
|
|
34
|
+
*/
|
|
35
|
+
FINITE_RECURRING = "FiniteRecurring",
|
|
36
|
+
/**
|
|
37
|
+
* The billing plan payment is a one-time charge that does not repeat.
|
|
38
|
+
*/
|
|
39
|
+
NON_RECURRING = "NonRecurring",
|
|
40
|
+
/**
|
|
41
|
+
* Unknown recurrence mode.
|
|
42
|
+
*/
|
|
43
|
+
UNKNOWN = "Unknown"
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Type of the pricing phase.
|
|
47
|
+
*/
|
|
48
|
+
export declare enum PricingPhaseType {
|
|
49
|
+
/**
|
|
50
|
+
* Regular subscription without any discounts like trial or intro offers.
|
|
51
|
+
*/
|
|
52
|
+
REGULAR = "Regular",
|
|
53
|
+
/**
|
|
54
|
+
* A free phase.
|
|
55
|
+
*/
|
|
56
|
+
FREE_TRIAL = "FreeTrial",
|
|
57
|
+
/**
|
|
58
|
+
* A phase with a discounted payment for a single period.
|
|
59
|
+
*/
|
|
60
|
+
DISCOUNTED_SINGLE_PAYMENT = "DiscountedSinglePayment",
|
|
61
|
+
/**
|
|
62
|
+
* A phase with a discounted payment for several periods, described in {@link ProductPricingPhase.billingCycleCount}.
|
|
63
|
+
*/
|
|
64
|
+
DISCOUNTED_RECURRING_PAYMENT = "DiscountedRecurringPayment",
|
|
65
|
+
/**
|
|
66
|
+
* Unknown pricing phase type.
|
|
67
|
+
*/
|
|
68
|
+
UNKNOWN = "Unknown"
|
|
69
|
+
}
|
|
70
|
+
export declare enum EntitlementRenewState {
|
|
71
|
+
NON_RENEWABLE = "non_renewable",
|
|
72
|
+
UNKNOWN = "unknown",
|
|
73
|
+
WILL_RENEW = "will_renew",
|
|
74
|
+
CANCELED = "canceled",
|
|
75
|
+
BILLING_ISSUE = "billing_issue"
|
|
76
|
+
}
|
|
77
|
+
export declare enum EntitlementSource {
|
|
78
|
+
UNKNOWN = "Unknown",
|
|
79
|
+
APP_STORE = "AppStore",
|
|
80
|
+
PLAY_STORE = "PlayStore",
|
|
81
|
+
STRIPE = "Stripe",
|
|
82
|
+
MANUAL = "Manual"
|
|
83
|
+
}
|
|
84
|
+
export declare enum TransactionEnvironment {
|
|
85
|
+
PRODUCTION = "Production",
|
|
86
|
+
SANDBOX = "Sandbox"
|
|
87
|
+
}
|
|
88
|
+
export declare enum TransactionOwnershipType {
|
|
89
|
+
OWNER = "Owner",
|
|
90
|
+
FAMILY_SHARING = "FamilySharing"
|
|
91
|
+
}
|
|
92
|
+
export declare enum EntitlementGrantType {
|
|
93
|
+
PURCHASE = "Purchase",
|
|
94
|
+
FAMILY_SHARING = "FamilySharing",
|
|
95
|
+
OFFER_CODE = "OfferCode",
|
|
96
|
+
MANUAL = "Manual"
|
|
97
|
+
}
|
|
98
|
+
export declare enum TransactionType {
|
|
99
|
+
UNKNOWN = "Unknown",
|
|
100
|
+
SUBSCRIPTION_STARTED = "SubscriptionStarted",
|
|
101
|
+
SUBSCRIPTION_RENEWED = "SubscriptionRenewed",
|
|
102
|
+
TRIAL_STARTED = "TrialStarted",
|
|
103
|
+
INTRO_STARTED = "IntroStarted",
|
|
104
|
+
INTRO_RENEWED = "IntroRenewed",
|
|
105
|
+
NON_CONSUMABLE_PURCHASE = "NonConsumablePurchase"
|
|
106
|
+
}
|
|
107
|
+
export declare enum UserPropertyKey {
|
|
108
|
+
EMAIL = "Email",
|
|
109
|
+
NAME = "Name",
|
|
110
|
+
KOCHAVA_DEVICE_ID = "KochavaDeviceId",
|
|
111
|
+
APPS_FLYER_USER_ID = "AppsFlyerUserId",
|
|
112
|
+
ADJUST_AD_ID = "AdjustAdId",
|
|
113
|
+
CUSTOM_USER_ID = "CustomUserId",
|
|
114
|
+
FACEBOOK_ATTRIBUTION = "FacebookAttribution",// Android only
|
|
115
|
+
FIREBASE_APP_INSTANCE_ID = "FirebaseAppInstanceId",
|
|
116
|
+
APP_SET_ID = "AppSetId",// Android only
|
|
117
|
+
ADVERTISING_ID = "AdvertisingId",// iOS only
|
|
118
|
+
APP_METRICA_DEVICE_ID = "AppMetricaDeviceId",
|
|
119
|
+
APP_METRICA_USER_PROFILE_ID = "AppMetricaUserProfileId",
|
|
120
|
+
PUSH_WOOSH_HW_ID = "PushWooshHwId",
|
|
121
|
+
PUSH_WOOSH_USER_ID = "PushWooshUserId",
|
|
122
|
+
TENJIN_ANALYTICS_INSTALLATION_ID = "TenjinAnalyticsInstallationId",
|
|
123
|
+
CUSTOM = "Custom"
|
|
124
|
+
}
|
|
125
|
+
export declare enum AttributionProvider {
|
|
126
|
+
APPSFLYER = "AppsFlyer",
|
|
127
|
+
BRANCH = "Branch",
|
|
128
|
+
ADJUST = "Adjust",
|
|
129
|
+
APPLE_SEARCH_ADS = "AppleSearchAds",// ios only
|
|
130
|
+
APPLE_AD_SERVICES = "AppleAdServices"
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* A policy used for purchase updates on Android, which describes
|
|
134
|
+
* how to migrate from purchased plan to a new one.
|
|
135
|
+
*
|
|
136
|
+
* Used in {@link PurchaseOptions} class for purchase updates.
|
|
137
|
+
*/
|
|
138
|
+
export declare enum PurchaseUpdatePolicy {
|
|
139
|
+
/**
|
|
140
|
+
* The new plan takes effect immediately, and the user is charged full price of new plan
|
|
141
|
+
* and is given a full billing cycle of subscription, plus remaining prorated time
|
|
142
|
+
* from the old plan.
|
|
143
|
+
*/
|
|
144
|
+
CHARGE_FULL_PRICE = "ChargeFullPrice",
|
|
145
|
+
/**
|
|
146
|
+
* The new plan takes effect immediately, and the billing cycle remains the same.
|
|
147
|
+
*/
|
|
148
|
+
CHARGE_PRORATED_PRICE = "ChargeProratedPrice",
|
|
149
|
+
/**
|
|
150
|
+
* The new plan takes effect immediately, and the remaining time will be prorated
|
|
151
|
+
* and credited to the user.
|
|
152
|
+
*/
|
|
153
|
+
WITH_TIME_PRORATION = "WithTimeProration",
|
|
154
|
+
/**
|
|
155
|
+
* The new purchase takes effect immediately, the new plan will take effect
|
|
156
|
+
* when the old item expires.
|
|
157
|
+
*/
|
|
158
|
+
DEFERRED = "Deferred",
|
|
159
|
+
/**
|
|
160
|
+
* The new plan takes effect immediately, and the new price will be charged
|
|
161
|
+
* on next recurrence time.
|
|
162
|
+
*/
|
|
163
|
+
WITHOUT_PRORATION = "WithoutProration",
|
|
164
|
+
/**
|
|
165
|
+
* Unknown police.
|
|
166
|
+
*/
|
|
167
|
+
UNKNOWN = "Unknown"
|
|
168
|
+
}
|
|
169
|
+
export declare enum EntitlementsCacheLifetime {
|
|
170
|
+
WEEK = "Week",
|
|
171
|
+
TWO_WEEKS = "TwoWeeks",
|
|
172
|
+
MONTH = "Month",
|
|
173
|
+
TWO_MONTHS = "TwoMonths",
|
|
174
|
+
THREE_MONTHS = "ThreeMonths",
|
|
175
|
+
SIX_MONTHS = "SixMonths",
|
|
176
|
+
YEAR = "Year",
|
|
177
|
+
UNLIMITED = "Unlimited"
|
|
178
|
+
}
|
|
179
|
+
export declare const SKPeriodUnit: {
|
|
180
|
+
readonly 0: "DAY";
|
|
181
|
+
readonly 1: "WEEK";
|
|
182
|
+
readonly 2: "MONTH";
|
|
183
|
+
readonly 3: "YEAR";
|
|
184
|
+
};
|
|
185
|
+
export type SKPeriodUnits = typeof SKPeriodUnit[keyof typeof SKPeriodUnit];
|
|
186
|
+
export declare const SKProductDiscountType: {
|
|
187
|
+
readonly 0: "INTRODUCTORY";
|
|
188
|
+
readonly 1: "SUBSCRIPTION";
|
|
189
|
+
};
|
|
190
|
+
export type SKProductDiscountTypes = typeof SKProductDiscountType[keyof typeof SKProductDiscountType];
|
|
191
|
+
export declare const SKProductDiscountPaymentMode: {
|
|
192
|
+
readonly 0: "PAY_AS_YOU_GO";
|
|
193
|
+
readonly 1: "PAY_UP_FRONT";
|
|
194
|
+
readonly 2: "FREE_TRIAL";
|
|
195
|
+
};
|
|
196
|
+
export type SKProductDiscountPaymentModes = typeof SKProductDiscountPaymentMode[keyof typeof SKProductDiscountPaymentMode];
|
|
197
|
+
export declare const OfferingTag: {
|
|
198
|
+
readonly "-1": "UNKNOWN";
|
|
199
|
+
readonly "0": "NONE";
|
|
200
|
+
readonly "1": "MAIN";
|
|
201
|
+
};
|
|
202
|
+
export type OfferingTags = typeof OfferingTag[keyof typeof OfferingTag];
|
|
203
|
+
export declare enum IntroEligibilityStatus {
|
|
204
|
+
UNKNOWN = "unknown",
|
|
205
|
+
NON_INTRO_OR_TRIAL_PRODUCT = "non_intro_or_trial_product",
|
|
206
|
+
ELIGIBLE = "intro_or_trial_eligible",
|
|
207
|
+
INELIGIBLE = "intro_or_trial_ineligible"
|
|
208
|
+
}
|
|
209
|
+
export declare enum ExperimentGroupType {
|
|
210
|
+
UNKNOWN = "unknown",
|
|
211
|
+
CONTROL = "control",
|
|
212
|
+
TREATMENT = "treatment"
|
|
213
|
+
}
|
|
214
|
+
export declare enum RemoteConfigurationSourceType {
|
|
215
|
+
UNKNOWN = "unknown",
|
|
216
|
+
EXPERIMENT_CONTROL_GROUP = "experiment_control_group",
|
|
217
|
+
EXPERIMENT_TREATMENT_GROUP = "experiment_treatment_group",
|
|
218
|
+
REMOTE_CONFIGURATION = "remote_configuration"
|
|
219
|
+
}
|
|
220
|
+
export declare enum ActionType {
|
|
221
|
+
/**
|
|
222
|
+
* Unspecified action type
|
|
223
|
+
*/
|
|
224
|
+
UNKNOWN = "unknown",
|
|
225
|
+
/**
|
|
226
|
+
* URL action that opens the URL using SafariViewController
|
|
227
|
+
*/
|
|
228
|
+
URL = "url",
|
|
229
|
+
/**
|
|
230
|
+
* Deeplink action that opens if Application can open specified deeplink
|
|
231
|
+
*/
|
|
232
|
+
DEEPLINK = "deeplink",
|
|
233
|
+
/**
|
|
234
|
+
* Navigation to another No-Codes screen
|
|
235
|
+
*/
|
|
236
|
+
NAVIGATION = "navigation",
|
|
237
|
+
/**
|
|
238
|
+
* Purchase the product
|
|
239
|
+
*/
|
|
240
|
+
PURCHASE = "purchase",
|
|
241
|
+
/**
|
|
242
|
+
* Restore all purchases
|
|
243
|
+
*/
|
|
244
|
+
RESTORE = "restore",
|
|
245
|
+
/**
|
|
246
|
+
* Close current screen
|
|
247
|
+
*/
|
|
248
|
+
CLOSE = "close",
|
|
249
|
+
/**
|
|
250
|
+
* Close all No-Code screens
|
|
251
|
+
*/
|
|
252
|
+
CLOSE_ALL = "closeAll"
|
|
253
|
+
}
|
|
254
|
+
export declare enum RemoteConfigurationAssignmentType {
|
|
255
|
+
UNKNOWN = "unknown",
|
|
256
|
+
AUTO = "auto",
|
|
257
|
+
MANUAL = "manual"
|
|
258
|
+
}
|
|
259
|
+
export declare enum ScreenPresentationStyle {
|
|
260
|
+
/**
|
|
261
|
+
* on Android - default screen transaction animation will be used.
|
|
262
|
+
* on iOS - not a modal presentation. This style pushes a controller to a current navigation stack.
|
|
263
|
+
* For iOS NavigationController on the top of the stack is required.
|
|
264
|
+
*/
|
|
265
|
+
PUSH = "Push",
|
|
266
|
+
/**
|
|
267
|
+
* on Android - screen will move from bottom to top.
|
|
268
|
+
* on iOS - UIModalPresentationFullScreen analog.
|
|
269
|
+
*/
|
|
270
|
+
FULL_SCREEN = "FullScreen",
|
|
271
|
+
/**
|
|
272
|
+
* iOS only - UIModalPresentationPopover analog
|
|
273
|
+
*/
|
|
274
|
+
POPOVER = "Popover",
|
|
275
|
+
/**
|
|
276
|
+
* Android only - screen will appear/disappear without any animation.
|
|
277
|
+
* For iOS consider providing the {@link ScreenPresentationConfig.animated} flag.
|
|
278
|
+
*/
|
|
279
|
+
NO_ANIMATION = "NoAnimation"
|
|
280
|
+
}
|
|
281
|
+
export declare enum QonversionErrorCode {
|
|
282
|
+
UNKNOWN = "Unknown",// Unknown error
|
|
283
|
+
API_RATE_LIMIT_EXCEEDED = "ApiRateLimitExceeded",// API requests rate limit exceeded
|
|
284
|
+
APPLE_STORE_ERROR = "AppleStoreError",// Apple Store error received
|
|
285
|
+
BACKEND_ERROR = "BackendError",// There was a backend error
|
|
286
|
+
BILLING_UNAVAILABLE = "BillingUnavailable",// The Billing service is unavailable on the device
|
|
287
|
+
CLIENT_INVALID = "ClientInvalid",// Client is not allowed to issue the request, etc
|
|
288
|
+
CLOUD_SERVICE_NETWORK_CONNECTION_FAILED = "CloudServiceNetworkConnectionFailed",// The device could not connect to the network
|
|
289
|
+
CLOUD_SERVICE_PERMISSION_DENIED = "CloudServicePermissionDenied",// User is not allowed to access cloud service information
|
|
290
|
+
CLOUD_SERVICE_REVOKED = "CloudServiceRevoked",// User has revoked permission to use this cloud service
|
|
291
|
+
FAILED_TO_RECEIVE_DATA = "FailedToReceiveData",// Could not receive data
|
|
292
|
+
FEATURE_NOT_SUPPORTED = "FeatureNotSupported",// The requested feature is not supported
|
|
293
|
+
FRAUD_PURCHASE = "FraudPurchase",// Fraud purchase was detected
|
|
294
|
+
INCORRECT_REQUEST = "IncorrectRequest",// Request failed
|
|
295
|
+
INTERNAL_ERROR = "InternalError",// Internal backend error
|
|
296
|
+
INVALID_CLIENT_UID = "InvalidClientUid",// Client Uid is invalid or not set
|
|
297
|
+
INVALID_CREDENTIALS = "InvalidCredentials",// Access token is invalid or not set
|
|
298
|
+
INVALID_STORE_CREDENTIALS = "InvalidStoreCredentials",// This account does not have access to the requested application
|
|
299
|
+
LAUNCH_ERROR = "LaunchError",// There was an error while launching Qonversion SDK
|
|
300
|
+
NETWORK_CONNECTION_FAILED = "NetworkConnectionFailed",// There was a network issue. Make sure that the Internet connection is available on the device
|
|
301
|
+
OFFERINGS_NOT_FOUND = "OfferingsNotFound",// No offerings found
|
|
302
|
+
PAYMENT_INVALID = "PaymentInvalid",// Purchase identifier was invalid, etc.
|
|
303
|
+
PAYMENT_NOT_ALLOWED = "PaymentNotAllowed",// This device is not allowed to make the payment
|
|
304
|
+
PLAY_STORE_ERROR = "PlayStoreError",// There was an issue with the Play Store service
|
|
305
|
+
PRIVACY_ACKNOWLEDGEMENT_REQUIRED = "PrivacyAcknowledgementRequired",// User needs to acknowledge Apple's privacy policy
|
|
306
|
+
PRODUCT_ALREADY_OWNED = "ProductAlreadyOwned",// Failed to purchase since item is already owned
|
|
307
|
+
PRODUCT_NOT_FOUND = "ProductNotFound",// Failed to purchase since the Qonversion product was not found
|
|
308
|
+
PRODUCT_NOT_OWNED = "ProductNotOwned",// Failed to consume purchase since item is not owned
|
|
309
|
+
PROJECT_CONFIG_ERROR = "ProjectConfigError",// The project is not configured or configured incorrectly in the Qonversion Dashboard
|
|
310
|
+
PURCHASE_CANCELED = "PurchaseCanceled",// User pressed back or canceled a dialog for purchase
|
|
311
|
+
PURCHASE_INVALID = "PurchaseInvalid",// Failure of purchase
|
|
312
|
+
PURCHASE_PENDING = "PurchasePending",// Purchase is pending
|
|
313
|
+
PURCHASE_UNSPECIFIED = "PurchaseUnspecified",// Unspecified state of the purchase
|
|
314
|
+
RECEIPT_VALIDATION_ERROR = "ReceiptValidationError",// Receipt validation error
|
|
315
|
+
REMOTE_CONFIGURATION_NOT_AVAILABLE = "RemoteConfigurationNotAvailable",// Remote configuration is not available for the current user or for the provided context key
|
|
316
|
+
RESPONSE_PARSING_FAILED = "ResponseParsingFailed",// A problem occurred while serializing or deserializing data
|
|
317
|
+
STORE_PRODUCT_NOT_AVAILABLE = "StoreProductNotAvailable",// Requested product is not available for purchase or its product id was not found
|
|
318
|
+
UNAUTHORIZED_REQUEST_DATA = "UnauthorizedRequestData",// App is attempting to use SKPayment's requestData property, but does not have the appropriate entitlement
|
|
319
|
+
UNKNOWN_CLIENT_PLATFORM = "UnknownClientPlatform"
|
|
320
|
+
}
|
|
321
|
+
export declare enum NoCodesErrorCode {
|
|
322
|
+
UNKNOWN = "Unknown",
|
|
323
|
+
BAD_NETWORK_REQUEST = "BadNetworkRequest",
|
|
324
|
+
BAD_RESPONSE = "BadResponse",
|
|
325
|
+
ACTIVITY_START = "ActivityStart",// Android
|
|
326
|
+
NETWORK_REQUEST_EXECUTION = "NetworkRequestExecution",// Android
|
|
327
|
+
SERIALIZATION = "Serialization",// Android
|
|
328
|
+
DESERIALIZATION = "Deserialization",// Android
|
|
329
|
+
REQUEST_DENIED = "RequestDenied",// Android
|
|
330
|
+
MAPPING = "Mapping",// Android
|
|
331
|
+
BACKEND_ERROR = "BackendError",// Android
|
|
332
|
+
SCREEN_NOT_FOUND = "ScreenNotFound",// Android
|
|
333
|
+
QONVERSION_ERROR = "QonversionError",
|
|
334
|
+
INTERNAL = "Internal",// iOS
|
|
335
|
+
AUTHORIZATION_FAILED = "AuthorizationFailed",// iOS
|
|
336
|
+
CRITICAL = "Critical",// iOS
|
|
337
|
+
PRODUCT_NOT_FOUND = "ProductNotFound",// iOS
|
|
338
|
+
PRODUCTS_LOADING_FAILED = "ProductsLoadingFailed",// iOS
|
|
339
|
+
RATE_LIMIT_EXCEEDED = "RateLimitExceeded",// iOS
|
|
340
|
+
SCREEN_LOADING_FAILED = "ScreenLoadingFailed",// iOS
|
|
341
|
+
SDK_INITIALIZATION_ERROR = "SDKInitializationError"
|
|
342
|
+
}
|
|
343
|
+
//# sourceMappingURL=enums.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../../src/dto/enums.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU;IACpB,SAAS,cAAc;IACvB,uBAAuB,2BAA2B;CACnD;AAED,oBAAY,WAAW;IACrB,OAAO,YAAY;IACnB,UAAU,eAAe;CAC1B;A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AE,2GAA2G;IAClK,uBAAuB,0BAA0B;CAClD;AAED,oBAAY,gBAAgB;IAC1B,OAAO,YAAY;IACnB,mBAAmB,sBAAsB;IACzC,YAAY,gBAAgB;IAC5B,cAAc,kBAAkB,CAAE,UAAU;IAC5C,yBAAyB,4BAA4B,CAAE,UAAU;IACjE,aAAa,kBAAkB,CAAE,UAAU;IAC3C,eAAe,oBAAoB,CAAE,UAAU;IAC/C,cAAc,kBAAkB,CAAE,UAAU;IAC5C,OAAO,YAAY,CAAE,UAAU;IAC/B,aAAa,iBAAiB,CAAE,UAAU;IAC1C,gBAAgB,mBAAmB,CAAE,UAAU;IAC/C,gBAAgB,oBAAoB;IACpC,QAAQ,aAAa,CAAE,MAAM;IAC7B,oBAAoB,wBAAwB,CAAE,MAAM;IACpD,QAAQ,aAAa,CAAE,MAAM;IAC7B,iBAAiB,oBAAoB,CAAE,MAAM;IAC7C,uBAAuB,0BAA0B,CAAE,MAAM;IACzD,mBAAmB,sBAAsB,CAAE,MAAM;IACjD,qBAAqB,wBAAwB,CAAE,MAAM;IACrD,wBAAwB,2BAA2B;CACpD"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import ProductPrice from "./ProductPrice";
|
|
2
|
+
/**
|
|
3
|
+
* This class contains all the information about the Google in-app product details.
|
|
4
|
+
*/
|
|
5
|
+
declare class ProductInAppDetails {
|
|
6
|
+
/**
|
|
7
|
+
* The price of the in-app product.
|
|
8
|
+
*/
|
|
9
|
+
price: ProductPrice;
|
|
10
|
+
constructor(price: ProductPrice);
|
|
11
|
+
}
|
|
12
|
+
export default ProductInAppDetails;
|
|
13
|
+
//# sourceMappingURL=ProductInAppDetails.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductInAppDetails.d.ts","sourceRoot":"","sources":["../../../../../src/dto/storeProducts/ProductInAppDetails.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAE1C;;GAEG;AACH,cAAM,mBAAmB;IACvB;;OAEG;IACH,KAAK,EAAE,YAAY,CAAC;gBAER,KAAK,EAAE,YAAY;CAGhC;AAED,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This class represents the details about the installment plan for a subscription product.
|
|
3
|
+
*/
|
|
4
|
+
declare class ProductInstallmentPlanDetails {
|
|
5
|
+
/**
|
|
6
|
+
* Committed payments count after a user signs up for this subscription plan.
|
|
7
|
+
*/
|
|
8
|
+
commitmentPaymentsCount: number;
|
|
9
|
+
/**
|
|
10
|
+
* Subsequent committed payments count after this subscription plan renews.
|
|
11
|
+
*
|
|
12
|
+
* Returns 0 if the installment plan doesn't have any subsequent commitment,
|
|
13
|
+
* which means this subscription plan will fall back to a normal
|
|
14
|
+
* non-installment monthly plan when the plan renews.
|
|
15
|
+
*/
|
|
16
|
+
subsequentCommitmentPaymentsCount: number;
|
|
17
|
+
constructor(commitmentPaymentsCount: number, subsequentCommitmentPaymentsCount: number);
|
|
18
|
+
}
|
|
19
|
+
export default ProductInstallmentPlanDetails;
|
|
20
|
+
//# sourceMappingURL=ProductInstallmentPlanDetails.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductInstallmentPlanDetails.d.ts","sourceRoot":"","sources":["../../../../../src/dto/storeProducts/ProductInstallmentPlanDetails.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAM,6BAA6B;IACjC;;OAEG;IACH,uBAAuB,EAAE,MAAM,CAAC;IAEhC;;;;;;OAMG;IACH,iCAAiC,EAAE,MAAM,CAAC;gBAGxC,uBAAuB,EAAE,MAAM,EAC/B,iCAAiC,EAAE,MAAM;CAK5C;AAED,eAAe,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import ProductPricingPhase from "./ProductPricingPhase";
|
|
2
|
+
import ProductInstallmentPlanDetails from './ProductInstallmentPlanDetails';
|
|
3
|
+
/**
|
|
4
|
+
* This class contains all the information about the Google subscription offer details.
|
|
5
|
+
* It might be either a plain base plan details or a base plan with the concrete offer details.
|
|
6
|
+
*/
|
|
7
|
+
declare class ProductOfferDetails {
|
|
8
|
+
/**
|
|
9
|
+
* The identifier of the current base plan.
|
|
10
|
+
*/
|
|
11
|
+
basePlanId: string;
|
|
12
|
+
/**
|
|
13
|
+
* The identifier of the concrete offer, to which these details belong.
|
|
14
|
+
* Null, if these are plain base plan details.
|
|
15
|
+
*/
|
|
16
|
+
offerId: string | null;
|
|
17
|
+
/**
|
|
18
|
+
* A token to purchase the current offer.
|
|
19
|
+
*/
|
|
20
|
+
offerToken: string;
|
|
21
|
+
/**
|
|
22
|
+
* List of tags set for the current offer.
|
|
23
|
+
*/
|
|
24
|
+
tags: string[];
|
|
25
|
+
/**
|
|
26
|
+
* A time-ordered list of pricing phases for the current offer.
|
|
27
|
+
*/
|
|
28
|
+
pricingPhases: ProductPricingPhase[];
|
|
29
|
+
/**
|
|
30
|
+
* A base plan phase details.
|
|
31
|
+
*/
|
|
32
|
+
basePlan: ProductPricingPhase | null;
|
|
33
|
+
/**
|
|
34
|
+
* Additional details of an installment plan, if exists.
|
|
35
|
+
*/
|
|
36
|
+
installmentPlanDetails: ProductInstallmentPlanDetails | null;
|
|
37
|
+
/**
|
|
38
|
+
* A trial phase details, if exists.
|
|
39
|
+
*/
|
|
40
|
+
introPhase: ProductPricingPhase | null;
|
|
41
|
+
/**
|
|
42
|
+
* An intro phase details, if exists.
|
|
43
|
+
* The intro phase is one of single or recurrent discounted payments.
|
|
44
|
+
*/
|
|
45
|
+
trialPhase: ProductPricingPhase | null;
|
|
46
|
+
/**
|
|
47
|
+
* True, if there is a trial phase in the current offer. False otherwise.
|
|
48
|
+
*/
|
|
49
|
+
hasTrial: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* True, if there is any intro phase in the current offer. False otherwise.
|
|
52
|
+
* The intro phase is one of single or recurrent discounted payments.
|
|
53
|
+
*/
|
|
54
|
+
hasIntro: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* True, if there is any trial or intro phase in the current offer. False otherwise.
|
|
57
|
+
* The intro phase is one of single or recurrent discounted payments.
|
|
58
|
+
*/
|
|
59
|
+
hasTrialOrIntro: boolean;
|
|
60
|
+
constructor(basePlanId: string, offerId: string | null, offerToken: string, tags: string[], pricingPhases: ProductPricingPhase[], basePlan: ProductPricingPhase | null, installmentPlanDetails: ProductInstallmentPlanDetails | null, introPhase: ProductPricingPhase | null, trialPhase: ProductPricingPhase | null, hasTrial: boolean, hasIntro: boolean, hasTrialOrIntro: boolean);
|
|
61
|
+
}
|
|
62
|
+
export default ProductOfferDetails;
|
|
63
|
+
//# sourceMappingURL=ProductOfferDetails.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductOfferDetails.d.ts","sourceRoot":"","sources":["../../../../../src/dto/storeProducts/ProductOfferDetails.ts"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,MAAM,uBAAuB,CAAC;AACxD,OAAO,6BAA6B,MAAM,iCAAiC,CAAC;AAE5E;;;GAGG;AACH,cAAM,mBAAmB;IACvB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,IAAI,EAAE,MAAM,EAAE,CAAC;IAEf;;OAEG;IACH,aAAa,EAAE,mBAAmB,EAAE,CAAC;IAErC;;OAEG;IACH,QAAQ,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAErC;;OAEG;IACH,sBAAsB,EAAE,6BAA6B,GAAG,IAAI,CAAC;IAE7D;;OAEG;IACH,UAAU,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAEvC;;;OAGG;IACH,UAAU,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAEvC;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAElB;;;OAGG;IACH,QAAQ,EAAE,OAAO,CAAC;IAElB;;;OAGG;IACH,eAAe,EAAE,OAAO,CAAC;gBAGvB,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,MAAM,GAAG,IAAI,EACtB,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,MAAM,EAAE,EACd,aAAa,EAAE,mBAAmB,EAAE,EACpC,QAAQ,EAAE,mBAAmB,GAAG,IAAI,EACpC,sBAAsB,EAAE,6BAA6B,GAAG,IAAI,EAC5D,UAAU,EAAE,mBAAmB,GAAG,IAAI,EACtC,UAAU,EAAE,mBAAmB,GAAG,IAAI,EACtC,QAAQ,EAAE,OAAO,EACjB,QAAQ,EAAE,OAAO,EACjB,eAAe,EAAE,OAAO;CAe3B;AAED,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Information about the Google product's price.
|
|
3
|
+
*/
|
|
4
|
+
declare class ProductPrice {
|
|
5
|
+
/**
|
|
6
|
+
* Total amount of money in micro-units,
|
|
7
|
+
* where 1,000,000 micro-units equal one unit of the currency.
|
|
8
|
+
*/
|
|
9
|
+
priceAmountMicros: number;
|
|
10
|
+
/**
|
|
11
|
+
* ISO 4217 currency code for price.
|
|
12
|
+
*/
|
|
13
|
+
priceCurrencyCode: string;
|
|
14
|
+
/**
|
|
15
|
+
* Formatted price for the payment, including its currency sign.
|
|
16
|
+
*/
|
|
17
|
+
formattedPrice: string;
|
|
18
|
+
/**
|
|
19
|
+
* True, if the price is zero. False otherwise.
|
|
20
|
+
*/
|
|
21
|
+
isFree: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Price currency symbol. Null if failed to parse.
|
|
24
|
+
*/
|
|
25
|
+
currencySymbol: string | null;
|
|
26
|
+
constructor(priceAmountMicros: number, priceCurrencyCode: string, formattedPrice: string, isFree: boolean, currencySymbol?: string | null);
|
|
27
|
+
}
|
|
28
|
+
export default ProductPrice;
|
|
29
|
+
//# sourceMappingURL=ProductPrice.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductPrice.d.ts","sourceRoot":"","sources":["../../../../../src/dto/storeProducts/ProductPrice.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAM,YAAY;IAChB;;;OAGG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;gBAG5B,iBAAiB,EAAE,MAAM,EACzB,iBAAiB,EAAE,MAAM,EACzB,cAAc,EAAE,MAAM,EACtB,MAAM,EAAE,OAAO,EACf,cAAc,GAAE,MAAM,GAAG,IAAW;CAQvC;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import SubscriptionPeriod from "../SubscriptionPeriod";
|
|
2
|
+
import ProductPrice from "./ProductPrice";
|
|
3
|
+
import { PricingPhaseRecurrenceMode, PricingPhaseType } from "../enums";
|
|
4
|
+
/**
|
|
5
|
+
* This class represents a pricing phase, describing how a user pays at a point in time.
|
|
6
|
+
*/
|
|
7
|
+
declare class ProductPricingPhase {
|
|
8
|
+
/**
|
|
9
|
+
* Price for the current phase.
|
|
10
|
+
*/
|
|
11
|
+
price: ProductPrice;
|
|
12
|
+
/**
|
|
13
|
+
* The billing period for which the given price applies.
|
|
14
|
+
*/
|
|
15
|
+
billingPeriod: SubscriptionPeriod;
|
|
16
|
+
/**
|
|
17
|
+
* Number of cycles for which the billing period is applied.
|
|
18
|
+
*/
|
|
19
|
+
billingCycleCount: number;
|
|
20
|
+
/**
|
|
21
|
+
* Recurrence mode for the pricing phase.
|
|
22
|
+
*/
|
|
23
|
+
recurrenceMode: PricingPhaseRecurrenceMode;
|
|
24
|
+
/**
|
|
25
|
+
* Type of the pricing phase.
|
|
26
|
+
*/
|
|
27
|
+
type: PricingPhaseType;
|
|
28
|
+
/**
|
|
29
|
+
* True, if the current phase is a trial period. False otherwise.
|
|
30
|
+
*/
|
|
31
|
+
isTrial: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* True, if the current phase is an intro period. False otherwise.
|
|
34
|
+
* The intro phase is one of single or recurrent discounted payments.
|
|
35
|
+
*/
|
|
36
|
+
isIntro: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* True, if the current phase represents the base plan. False otherwise.
|
|
39
|
+
*/
|
|
40
|
+
isBasePlan: boolean;
|
|
41
|
+
constructor(price: ProductPrice, billingPeriod: SubscriptionPeriod, billingCycleCount: number, recurrenceMode: PricingPhaseRecurrenceMode, type: PricingPhaseType, isTrial: boolean, isIntro: boolean, isBasePlan: boolean);
|
|
42
|
+
}
|
|
43
|
+
export default ProductPricingPhase;
|
|
44
|
+
//# sourceMappingURL=ProductPricingPhase.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductPricingPhase.d.ts","sourceRoot":"","sources":["../../../../../src/dto/storeProducts/ProductPricingPhase.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,MAAM,uBAAuB,CAAC;AACvD,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAC,0BAA0B,EAAE,gBAAgB,EAAC,MAAM,UAAU,CAAC;AAEtE;;GAEG;AACH,cAAM,mBAAmB;IACvB;;OAEG;IACH,KAAK,EAAE,YAAY,CAAC;IAEpB;;OAEG;IACH,aAAa,EAAE,kBAAkB,CAAC;IAElC;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,cAAc,EAAE,0BAA0B,CAAC;IAE3C;;OAEG;IACH,IAAI,EAAE,gBAAgB,CAAC;IAEvB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;;OAGG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,UAAU,EAAE,OAAO,CAAC;gBAGlB,KAAK,EAAE,YAAY,EACnB,aAAa,EAAE,kBAAkB,EACjC,iBAAiB,EAAE,MAAM,EACzB,cAAc,EAAE,0BAA0B,EAC1C,IAAI,EAAE,gBAAgB,EACtB,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,OAAO;CAWtB;AAED,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { ProductType } from "../enums";
|
|
2
|
+
import ProductOfferDetails from "./ProductOfferDetails";
|
|
3
|
+
import ProductInAppDetails from "./ProductInAppDetails";
|
|
4
|
+
/**
|
|
5
|
+
* This class contains all the information about the concrete Google product,
|
|
6
|
+
* either subscription or in-app. In case of a subscription also determines concrete base plan.
|
|
7
|
+
*/
|
|
8
|
+
declare class ProductStoreDetails {
|
|
9
|
+
/**
|
|
10
|
+
* Identifier of the base plan to which these details relate.
|
|
11
|
+
* Null for in-app products.
|
|
12
|
+
*/
|
|
13
|
+
basePlanId: string | null;
|
|
14
|
+
/**
|
|
15
|
+
* Identifier of the subscription or the in-app product.
|
|
16
|
+
*/
|
|
17
|
+
productId: string;
|
|
18
|
+
/**
|
|
19
|
+
* Name of the subscription or the in-app product.
|
|
20
|
+
*/
|
|
21
|
+
name: string;
|
|
22
|
+
/**
|
|
23
|
+
* Title of the subscription or the in-app product.
|
|
24
|
+
* The title includes the name of the app.
|
|
25
|
+
*/
|
|
26
|
+
title: string;
|
|
27
|
+
/**
|
|
28
|
+
* Description of the subscription or the in-app product.
|
|
29
|
+
*/
|
|
30
|
+
description: string;
|
|
31
|
+
/**
|
|
32
|
+
* Offer details for the subscription.
|
|
33
|
+
* Offer details contain all the available variations of purchase offers,
|
|
34
|
+
* including both base plan and eligible base plan + offer combinations
|
|
35
|
+
* from Google Play Console for current {@link basePlanId}.
|
|
36
|
+
* Null for in-app products.
|
|
37
|
+
*/
|
|
38
|
+
subscriptionOfferDetails: ProductOfferDetails[] | null;
|
|
39
|
+
/**
|
|
40
|
+
* The most profitable subscription offer for the client in our opinion from all the available offers.
|
|
41
|
+
* We calculate the cheapest price for the client by comparing all the trial or intro phases
|
|
42
|
+
* and the base plan.
|
|
43
|
+
*/
|
|
44
|
+
defaultSubscriptionOfferDetails: ProductOfferDetails | null;
|
|
45
|
+
/**
|
|
46
|
+
* Subscription offer details containing only the base plan without any offer.
|
|
47
|
+
*/
|
|
48
|
+
basePlanSubscriptionOfferDetails: ProductOfferDetails | null;
|
|
49
|
+
/**
|
|
50
|
+
* Offer details for the in-app product.
|
|
51
|
+
* Null for subscriptions.
|
|
52
|
+
*/
|
|
53
|
+
inAppOfferDetails: ProductInAppDetails | null;
|
|
54
|
+
/**
|
|
55
|
+
* True, if there is any eligible offer with a trial
|
|
56
|
+
* for this subscription and base plan combination.
|
|
57
|
+
* False otherwise or for an in-app product.
|
|
58
|
+
*/
|
|
59
|
+
hasTrialOffer: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* True, if there is any eligible offer with an intro price
|
|
62
|
+
* for this subscription and base plan combination.
|
|
63
|
+
* False otherwise or for an in-app product.
|
|
64
|
+
*/
|
|
65
|
+
hasIntroOffer: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* True, if there is any eligible offer with a trial or an intro price
|
|
68
|
+
* for this subscription and base plan combination.
|
|
69
|
+
* False otherwise or for an in-app product.
|
|
70
|
+
*/
|
|
71
|
+
hasTrialOrIntroOffer: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* The calculated type of the current product.
|
|
74
|
+
*/
|
|
75
|
+
productType: ProductType;
|
|
76
|
+
/**
|
|
77
|
+
* True, if the product type is InApp.
|
|
78
|
+
*/
|
|
79
|
+
isInApp: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* True, if the product type is Subscription.
|
|
82
|
+
*/
|
|
83
|
+
isSubscription: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* True, if the subscription product is prepaid, which means that users pay in advance -
|
|
86
|
+
* they will need to make a new payment to extend their plan.
|
|
87
|
+
*/
|
|
88
|
+
isPrepaid: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* True, if the subscription product is installment, which means that users commit
|
|
91
|
+
* to pay for a specified amount of periods every month.
|
|
92
|
+
*/
|
|
93
|
+
isInstallment: boolean;
|
|
94
|
+
constructor(basePlanId: string | null, productId: string, name: string, title: string, description: string, subscriptionOfferDetails: ProductOfferDetails[] | null, defaultSubscriptionOfferDetails: ProductOfferDetails | null, basePlanSubscriptionOfferDetails: ProductOfferDetails | null, inAppOfferDetails: ProductInAppDetails | null, hasTrialOffer: boolean, hasIntroOffer: boolean, hasTrialOrIntroOffer: boolean, productType: ProductType, isInApp: boolean, isSubscription: boolean, isPrepaid: boolean, isInstallment: boolean);
|
|
95
|
+
}
|
|
96
|
+
export default ProductStoreDetails;
|
|
97
|
+
//# sourceMappingURL=ProductStoreDetails.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductStoreDetails.d.ts","sourceRoot":"","sources":["../../../../../src/dto/storeProducts/ProductStoreDetails.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,UAAU,CAAC;AACrC,OAAO,mBAAmB,MAAM,uBAAuB,CAAC;AACxD,OAAO,mBAAmB,MAAM,uBAAuB,CAAC;AAExD;;;GAGG;AACH,cAAM,mBAAmB;IACvB;;;OAGG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;;;;OAMG;IACH,wBAAwB,EAAE,mBAAmB,EAAE,GAAG,IAAI,CAAC;IAEvD;;;;OAIG;IACH,+BAA+B,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAE5D;;OAEG;IACH,gCAAgC,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAE7D;;;OAGG;IACH,iBAAiB,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAE9C;;;;OAIG;IACH,aAAa,EAAE,OAAO,CAAC;IAEvB;;;;OAIG;IACH,aAAa,EAAE,OAAO,CAAC;IAEvB;;;;OAIG;IACH,oBAAoB,EAAE,OAAO,CAAC;IAE9B;;OAEG;IACH,WAAW,EAAE,WAAW,CAAC;IAEzB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,cAAc,EAAE,OAAO,CAAC;IAExB;;;OAGG;IACH,SAAS,EAAE,OAAO,CAAC;IAEnB;;;OAGG;IACH,aAAa,EAAE,OAAO,CAAC;gBAGrB,UAAU,EAAE,MAAM,GAAG,IAAI,EACzB,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,EACb,WAAW,EAAE,MAAM,EACnB,wBAAwB,EAAE,mBAAmB,EAAE,GAAG,IAAI,EACtD,+BAA+B,EAAE,mBAAmB,GAAG,IAAI,EAC3D,gCAAgC,EAAE,mBAAmB,GAAG,IAAI,EAC5D,iBAAiB,EAAE,mBAAmB,GAAG,IAAI,EAC7C,aAAa,EAAE,OAAO,EACtB,aAAa,EAAE,OAAO,EACtB,oBAAoB,EAAE,OAAO,EAC7B,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,OAAO,EAChB,cAAc,EAAE,OAAO,EACvB,SAAS,EAAE,OAAO,EAClB,aAAa,EAAE,OAAO;CAoBzB;AAED,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare class SKPaymentDiscount {
|
|
2
|
+
identifier: string;
|
|
3
|
+
keyIdentifier: string;
|
|
4
|
+
nonce: string;
|
|
5
|
+
signature: string;
|
|
6
|
+
timestamp: number;
|
|
7
|
+
constructor(identifier: string, keyIdentifier: string, nonce: string, signature: string, timestamp: number);
|
|
8
|
+
}
|
|
9
|
+
export default SKPaymentDiscount;
|
|
10
|
+
//# sourceMappingURL=SKPaymentDiscount.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SKPaymentDiscount.d.ts","sourceRoot":"","sources":["../../../../../src/dto/storeProducts/SKPaymentDiscount.ts"],"names":[],"mappings":"AAAA,cAAM,iBAAiB;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;gBAGd,UAAU,EAAE,MAAM,EAClB,aAAa,EAAE,MAAM,EACrB,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM;CAQxB;AAED,eAAe,iBAAiB,CAAC"}
|