UNPKG

react-native-billing-sdk

Version:
75 lines (74 loc) 3.93 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BillingSdkAndroidConstants = void 0; /* eslint-disable @typescript-eslint/no-namespace */ let BillingSdkAndroidConstants; exports.BillingSdkAndroidConstants = BillingSdkAndroidConstants; (function (_BillingSdkAndroidConstants) { let ProductType = /*#__PURE__*/function (ProductType) { ProductType["SUBS"] = "subs"; ProductType["INAPP"] = "inapp"; return ProductType; }({}); _BillingSdkAndroidConstants.ProductType = ProductType; let RecurrenceMode = /*#__PURE__*/function (RecurrenceMode) { RecurrenceMode[RecurrenceMode["INFINITE_RECURRING"] = 1] = "INFINITE_RECURRING"; RecurrenceMode[RecurrenceMode["FINITE_RECURRING"] = 2] = "FINITE_RECURRING"; RecurrenceMode[RecurrenceMode["NON_RECURRING"] = 3] = "NON_RECURRING"; return RecurrenceMode; }({}); _BillingSdkAndroidConstants.RecurrenceMode = RecurrenceMode; let PurchaseState = /*#__PURE__*/function (PurchaseState) { PurchaseState[PurchaseState["UNSPECIFIED_STATE"] = 0] = "UNSPECIFIED_STATE"; PurchaseState[PurchaseState["PURCHASED"] = 1] = "PURCHASED"; PurchaseState[PurchaseState["PENDING"] = 2] = "PENDING"; return PurchaseState; }({}); _BillingSdkAndroidConstants.PurchaseState = PurchaseState; let SubscriptionReplacementMode = /*#__PURE__*/function (SubscriptionReplacementMode) { SubscriptionReplacementMode[SubscriptionReplacementMode["CHARGE_FULL_PRICE"] = 5] = "CHARGE_FULL_PRICE"; SubscriptionReplacementMode[SubscriptionReplacementMode["CHARGE_PRORATED_PRICE"] = 2] = "CHARGE_PRORATED_PRICE"; SubscriptionReplacementMode[SubscriptionReplacementMode["DEFERRED"] = 6] = "DEFERRED"; SubscriptionReplacementMode[SubscriptionReplacementMode["WITHOUT_PRORATION"] = 3] = "WITHOUT_PRORATION"; SubscriptionReplacementMode[SubscriptionReplacementMode["WITH_TIME_PRORATION"] = 1] = "WITH_TIME_PRORATION"; SubscriptionReplacementMode[SubscriptionReplacementMode["UNKNOWN_REPLACEMENT_MODE"] = 0] = "UNKNOWN_REPLACEMENT_MODE"; return SubscriptionReplacementMode; }({}); _BillingSdkAndroidConstants.SubscriptionReplacementMode = SubscriptionReplacementMode; let ResponseCode = /*#__PURE__*/function (ResponseCode) { ResponseCode["BILLING_UNAVAILABLE"] = "3"; ResponseCode["DEVELOPER_ERROR"] = "5"; ResponseCode["ERROR"] = "6"; ResponseCode["FEATURE_NOT_SUPPORTED"] = "-2"; ResponseCode["ITEM_ALREADY_OWNED"] = "7"; ResponseCode["ITEM_NOT_OWNED"] = "8"; ResponseCode["ITEM_UNAVAILABLE"] = "4"; ResponseCode["NETWORK_ERROR"] = "12"; ResponseCode["OK"] = "0"; ResponseCode["SERVICE_DISCONNECTED"] = "-1"; ResponseCode["SERVICE_TIMEOUT"] = "-3"; ResponseCode["SERVICE_UNAVAILABLE"] = "2"; ResponseCode["USER_CANCELLED"] = "1"; ResponseCode["E_ACTIVITY_NULL"] = "100"; ResponseCode["E_PRODUCT_NOT_QUERIED"] = "101"; return ResponseCode; }({}); _BillingSdkAndroidConstants.ResponseCode = ResponseCode; let ConnectionState = /*#__PURE__*/function (ConnectionState) { ConnectionState[ConnectionState["DISCONNECTED"] = 0] = "DISCONNECTED"; ConnectionState[ConnectionState["CONNECTING"] = 1] = "CONNECTING"; ConnectionState[ConnectionState["CONNECTED"] = 2] = "CONNECTED"; ConnectionState[ConnectionState["CLOSED"] = 3] = "CLOSED"; return ConnectionState; }({}); _BillingSdkAndroidConstants.ConnectionState = ConnectionState; let BillingSdkEvent = /*#__PURE__*/function (BillingSdkEvent) { BillingSdkEvent["PURCHASE_UPDATED"] = "billing-manager-purchase-updated"; BillingSdkEvent["BILLING_SERVICE_DISCONNECTED"] = "billing-manager-service-disconnected"; return BillingSdkEvent; }({}); _BillingSdkAndroidConstants.BillingSdkEvent = BillingSdkEvent; })(BillingSdkAndroidConstants || (exports.BillingSdkAndroidConstants = BillingSdkAndroidConstants = {})); //# sourceMappingURL=constants.js.map