UNPKG

@qonversion/capacitor-plugin

Version:

Qonversion provides full in-app purchases infrastructure, so you do not need to build your own server for receipt validation. Implement in-app subscriptions, validate user receipts, check subscription status, and provide access to your app features and co

292 lines 13.6 kB
export var LaunchMode; (function (LaunchMode) { LaunchMode["ANALYTICS"] = "Analytics"; LaunchMode["SUBSCRIPTION_MANAGEMENT"] = "SubscriptionManagement"; })(LaunchMode || (LaunchMode = {})); export var Environment; (function (Environment) { Environment["SANDBOX"] = "Sandbox"; Environment["PRODUCTION"] = "Production"; })(Environment || (Environment = {})); export var ProductType; (function (ProductType) { ProductType["TRIAL"] = "Trial"; ProductType["INTRO"] = "Intro"; ProductType["SUBSCRIPTION"] = "Subscription"; ProductType["IN_APP"] = "InApp"; ProductType["UNKNOWN"] = "Unknown"; })(ProductType || (ProductType = {})); export var SubscriptionPeriodUnit; (function (SubscriptionPeriodUnit) { SubscriptionPeriodUnit["DAY"] = "Day"; SubscriptionPeriodUnit["WEEK"] = "Week"; SubscriptionPeriodUnit["MONTH"] = "Month"; SubscriptionPeriodUnit["YEAR"] = "Year"; SubscriptionPeriodUnit["UNKNOWN"] = "Unknown"; })(SubscriptionPeriodUnit || (SubscriptionPeriodUnit = {})); /** * Recurrence mode of the pricing phase. */ export var PricingPhaseRecurrenceMode; (function (PricingPhaseRecurrenceMode) { /** * The billing plan payment recurs for infinite billing periods unless canceled. */ PricingPhaseRecurrenceMode["INFINITE_RECURRING"] = "InfiniteRecurring"; /** * The billing plan payment recurs for a fixed number of billing periods * set in {@link ProductPricingPhase.billingCycleCount}. */ PricingPhaseRecurrenceMode["FINITE_RECURRING"] = "FiniteRecurring"; /** * The billing plan payment is a one-time charge that does not repeat. */ PricingPhaseRecurrenceMode["NON_RECURRING"] = "NonRecurring"; /** * Unknown recurrence mode. */ PricingPhaseRecurrenceMode["UNKNOWN"] = "Unknown"; })(PricingPhaseRecurrenceMode || (PricingPhaseRecurrenceMode = {})); /** * Type of the pricing phase. */ export var PricingPhaseType; (function (PricingPhaseType) { /** * Regular subscription without any discounts like trial or intro offers. */ PricingPhaseType["REGULAR"] = "Regular"; /** * A free phase. */ PricingPhaseType["FREE_TRIAL"] = "FreeTrial"; /** * A phase with a discounted payment for a single period. */ PricingPhaseType["DISCOUNTED_SINGLE_PAYMENT"] = "DiscountedSinglePayment"; /** * A phase with a discounted payment for several periods, described in {@link ProductPricingPhase.billingCycleCount}. */ PricingPhaseType["DISCOUNTED_RECURRING_PAYMENT"] = "DiscountedRecurringPayment"; /** * Unknown pricing phase type. */ PricingPhaseType["UNKNOWN"] = "Unknown"; })(PricingPhaseType || (PricingPhaseType = {})); export var EntitlementRenewState; (function (EntitlementRenewState) { EntitlementRenewState["NON_RENEWABLE"] = "non_renewable"; EntitlementRenewState["UNKNOWN"] = "unknown"; EntitlementRenewState["WILL_RENEW"] = "will_renew"; EntitlementRenewState["CANCELED"] = "canceled"; EntitlementRenewState["BILLING_ISSUE"] = "billing_issue"; })(EntitlementRenewState || (EntitlementRenewState = {})); export var EntitlementSource; (function (EntitlementSource) { EntitlementSource["UNKNOWN"] = "Unknown"; EntitlementSource["APP_STORE"] = "AppStore"; EntitlementSource["PLAY_STORE"] = "PlayStore"; EntitlementSource["STRIPE"] = "Stripe"; EntitlementSource["MANUAL"] = "Manual"; })(EntitlementSource || (EntitlementSource = {})); export var TransactionEnvironment; (function (TransactionEnvironment) { TransactionEnvironment["PRODUCTION"] = "Production"; TransactionEnvironment["SANDBOX"] = "Sandbox"; })(TransactionEnvironment || (TransactionEnvironment = {})); export var TransactionOwnershipType; (function (TransactionOwnershipType) { TransactionOwnershipType["OWNER"] = "Owner"; TransactionOwnershipType["FAMILY_SHARING"] = "FamilySharing"; })(TransactionOwnershipType || (TransactionOwnershipType = {})); export var EntitlementGrantType; (function (EntitlementGrantType) { EntitlementGrantType["PURCHASE"] = "Purchase"; EntitlementGrantType["FAMILY_SHARING"] = "FamilySharing"; EntitlementGrantType["OFFER_CODE"] = "OfferCode"; EntitlementGrantType["MANUAL"] = "Manual"; })(EntitlementGrantType || (EntitlementGrantType = {})); export var TransactionType; (function (TransactionType) { TransactionType["UNKNOWN"] = "Unknown"; TransactionType["SUBSCRIPTION_STARTED"] = "SubscriptionStarted"; TransactionType["SUBSCRIPTION_RENEWED"] = "SubscriptionRenewed"; TransactionType["TRIAL_STARTED"] = "TrialStarted"; TransactionType["INTRO_STARTED"] = "IntroStarted"; TransactionType["INTRO_RENEWED"] = "IntroRenewed"; TransactionType["NON_CONSUMABLE_PURCHASE"] = "NonConsumablePurchase"; })(TransactionType || (TransactionType = {})); export var UserPropertyKey; (function (UserPropertyKey) { UserPropertyKey["EMAIL"] = "Email"; UserPropertyKey["NAME"] = "Name"; UserPropertyKey["KOCHAVA_DEVICE_ID"] = "KochavaDeviceId"; UserPropertyKey["APPS_FLYER_USER_ID"] = "AppsFlyerUserId"; UserPropertyKey["ADJUST_AD_ID"] = "AdjustAdId"; UserPropertyKey["CUSTOM_USER_ID"] = "CustomUserId"; UserPropertyKey["FACEBOOK_ATTRIBUTION"] = "FacebookAttribution"; UserPropertyKey["FIREBASE_APP_INSTANCE_ID"] = "FirebaseAppInstanceId"; UserPropertyKey["APP_SET_ID"] = "AppSetId"; UserPropertyKey["ADVERTISING_ID"] = "AdvertisingId"; UserPropertyKey["APP_METRICA_DEVICE_ID"] = "AppMetricaDeviceId"; UserPropertyKey["APP_METRICA_USER_PROFILE_ID"] = "AppMetricaUserProfileId"; UserPropertyKey["PUSH_WOOSH_HW_ID"] = "PushWooshHwId"; UserPropertyKey["PUSH_WOOSH_USER_ID"] = "PushWooshUserId"; UserPropertyKey["TENJIN_ANALYTICS_INSTALLATION_ID"] = "TenjinAnalyticsInstallationId"; UserPropertyKey["CUSTOM"] = "Custom"; })(UserPropertyKey || (UserPropertyKey = {})); export var AttributionProvider; (function (AttributionProvider) { AttributionProvider["APPSFLYER"] = "AppsFlyer"; AttributionProvider["BRANCH"] = "Branch"; AttributionProvider["ADJUST"] = "Adjust"; AttributionProvider["APPLE_SEARCH_ADS"] = "AppleSearchAds"; AttributionProvider["APPLE_AD_SERVICES"] = "AppleAdServices"; })(AttributionProvider || (AttributionProvider = {})); /** * A policy used for purchase updates on Android, which describes * how to migrate from purchased plan to a new one. * * Used in {@link PurchaseOptions} class for purchase updates. */ export var PurchaseUpdatePolicy; (function (PurchaseUpdatePolicy) { /** * The new plan takes effect immediately, and the user is charged full price of new plan * and is given a full billing cycle of subscription, plus remaining prorated time * from the old plan. */ PurchaseUpdatePolicy["CHARGE_FULL_PRICE"] = "ChargeFullPrice"; /** * The new plan takes effect immediately, and the billing cycle remains the same. */ PurchaseUpdatePolicy["CHARGE_PRORATED_PRICE"] = "ChargeProratedPrice"; /** * The new plan takes effect immediately, and the remaining time will be prorated * and credited to the user. */ PurchaseUpdatePolicy["WITH_TIME_PRORATION"] = "WithTimeProration"; /** * The new purchase takes effect immediately, the new plan will take effect * when the old item expires. */ PurchaseUpdatePolicy["DEFERRED"] = "Deferred"; /** * The new plan takes effect immediately, and the new price will be charged * on next recurrence time. */ PurchaseUpdatePolicy["WITHOUT_PRORATION"] = "WithoutProration"; /** * Unknown police. */ PurchaseUpdatePolicy["UNKNOWN"] = "Unknown"; })(PurchaseUpdatePolicy || (PurchaseUpdatePolicy = {})); export var EntitlementsCacheLifetime; (function (EntitlementsCacheLifetime) { EntitlementsCacheLifetime["WEEK"] = "Week"; EntitlementsCacheLifetime["TWO_WEEKS"] = "TwoWeeks"; EntitlementsCacheLifetime["MONTH"] = "Month"; EntitlementsCacheLifetime["TWO_MONTHS"] = "TwoMonths"; EntitlementsCacheLifetime["THREE_MONTHS"] = "ThreeMonths"; EntitlementsCacheLifetime["SIX_MONTHS"] = "SixMonths"; EntitlementsCacheLifetime["YEAR"] = "Year"; EntitlementsCacheLifetime["UNLIMITED"] = "Unlimited"; })(EntitlementsCacheLifetime || (EntitlementsCacheLifetime = {})); export const SKPeriodUnit = { 0: "DAY", 1: "WEEK", 2: "MONTH", 3: "YEAR", }; export const SKProductDiscountType = { 0: "INTRODUCTORY", 1: "SUBSCRIPTION", }; export const SKProductDiscountPaymentMode = { 0: "PAY_AS_YOU_GO", 1: "PAY_UP_FRONT", 2: "FREE_TRIAL", }; export const OfferingTag = { "-1": "UNKNOWN", "0": "NONE", "1": "MAIN", }; export var IntroEligibilityStatus; (function (IntroEligibilityStatus) { IntroEligibilityStatus["UNKNOWN"] = "unknown"; IntroEligibilityStatus["NON_INTRO_OR_TRIAL_PRODUCT"] = "non_intro_or_trial_product"; IntroEligibilityStatus["ELIGIBLE"] = "intro_or_trial_eligible"; IntroEligibilityStatus["INELIGIBLE"] = "intro_or_trial_ineligible"; })(IntroEligibilityStatus || (IntroEligibilityStatus = {})); export var ExperimentGroupType; (function (ExperimentGroupType) { ExperimentGroupType["UNKNOWN"] = "unknown"; ExperimentGroupType["CONTROL"] = "control"; ExperimentGroupType["TREATMENT"] = "treatment"; })(ExperimentGroupType || (ExperimentGroupType = {})); export var RemoteConfigurationSourceType; (function (RemoteConfigurationSourceType) { RemoteConfigurationSourceType["UNKNOWN"] = "unknown"; RemoteConfigurationSourceType["EXPERIMENT_CONTROL_GROUP"] = "experiment_control_group"; RemoteConfigurationSourceType["EXPERIMENT_TREATMENT_GROUP"] = "experiment_treatment_group"; RemoteConfigurationSourceType["REMOTE_CONFIGURATION"] = "remote_configuration"; })(RemoteConfigurationSourceType || (RemoteConfigurationSourceType = {})); export var RemoteConfigurationAssignmentType; (function (RemoteConfigurationAssignmentType) { RemoteConfigurationAssignmentType["UNKNOWN"] = "unknown"; RemoteConfigurationAssignmentType["AUTO"] = "auto"; RemoteConfigurationAssignmentType["MANUAL"] = "manual"; })(RemoteConfigurationAssignmentType || (RemoteConfigurationAssignmentType = {})); export var ActionResultType; (function (ActionResultType) { ActionResultType["UNKNOWN"] = "unknown"; ActionResultType["URL"] = "url"; ActionResultType["DEEPLINK"] = "deeplink"; ActionResultType["NAVIGATION"] = "navigate"; ActionResultType["PURCHASE"] = "purchase"; ActionResultType["RESTORE"] = "restore"; ActionResultType["CLOSE"] = "close"; })(ActionResultType || (ActionResultType = {})); export var QonversionErrorCode; (function (QonversionErrorCode) { QonversionErrorCode["UNKNOWN"] = "Unknown"; QonversionErrorCode["API_RATE_LIMIT_EXCEEDED"] = "ApiRateLimitExceeded"; QonversionErrorCode["APPLE_STORE_ERROR"] = "AppleStoreError"; QonversionErrorCode["BACKEND_ERROR"] = "BackendError"; QonversionErrorCode["BILLING_UNAVAILABLE"] = "BillingUnavailable"; QonversionErrorCode["CLIENT_INVALID"] = "ClientInvalid"; QonversionErrorCode["CLOUD_SERVICE_NETWORK_CONNECTION_FAILED"] = "CloudServiceNetworkConnectionFailed"; QonversionErrorCode["CLOUD_SERVICE_PERMISSION_DENIED"] = "CloudServicePermissionDenied"; QonversionErrorCode["CLOUD_SERVICE_REVOKED"] = "CloudServiceRevoked"; QonversionErrorCode["FAILED_TO_RECEIVE_DATA"] = "FailedToReceiveData"; QonversionErrorCode["FEATURE_NOT_SUPPORTED"] = "FeatureNotSupported"; QonversionErrorCode["FRAUD_PURCHASE"] = "FraudPurchase"; QonversionErrorCode["INCORRECT_REQUEST"] = "IncorrectRequest"; QonversionErrorCode["INTERNAL_ERROR"] = "InternalError"; QonversionErrorCode["INVALID_CLIENT_UID"] = "InvalidClientUid"; QonversionErrorCode["INVALID_CREDENTIALS"] = "InvalidCredentials"; QonversionErrorCode["INVALID_STORE_CREDENTIALS"] = "InvalidStoreCredentials"; QonversionErrorCode["LAUNCH_ERROR"] = "LaunchError"; QonversionErrorCode["NETWORK_CONNECTION_FAILED"] = "NetworkConnectionFailed"; QonversionErrorCode["OFFERINGS_NOT_FOUND"] = "OfferingsNotFound"; QonversionErrorCode["PAYMENT_INVALID"] = "PaymentInvalid"; QonversionErrorCode["PAYMENT_NOT_ALLOWED"] = "PaymentNotAllowed"; QonversionErrorCode["PLAY_STORE_ERROR"] = "PlayStoreError"; QonversionErrorCode["PRIVACY_ACKNOWLEDGEMENT_REQUIRED"] = "PrivacyAcknowledgementRequired"; QonversionErrorCode["PRODUCT_ALREADY_OWNED"] = "ProductAlreadyOwned"; QonversionErrorCode["PRODUCT_NOT_FOUND"] = "ProductNotFound"; QonversionErrorCode["PRODUCT_NOT_OWNED"] = "ProductNotOwned"; QonversionErrorCode["PROJECT_CONFIG_ERROR"] = "ProjectConfigError"; QonversionErrorCode["PURCHASE_CANCELED"] = "PurchaseCanceled"; QonversionErrorCode["PURCHASE_INVALID"] = "PurchaseInvalid"; QonversionErrorCode["PURCHASE_PENDING"] = "PurchasePending"; QonversionErrorCode["PURCHASE_UNSPECIFIED"] = "PurchaseUnspecified"; QonversionErrorCode["RECEIPT_VALIDATION_ERROR"] = "ReceiptValidationError"; QonversionErrorCode["REMOTE_CONFIGURATION_NOT_AVAILABLE"] = "RemoteConfigurationNotAvailable"; QonversionErrorCode["RESPONSE_PARSING_FAILED"] = "ResponseParsingFailed"; QonversionErrorCode["STORE_PRODUCT_NOT_AVAILABLE"] = "StoreProductNotAvailable"; QonversionErrorCode["UNAUTHORIZED_REQUEST_DATA"] = "UnauthorizedRequestData"; QonversionErrorCode["UNKNOWN_CLIENT_PLATFORM"] = "UnknownClientPlatform"; })(QonversionErrorCode || (QonversionErrorCode = {})); //# sourceMappingURL=enums.js.map