@jeremybarbet/apple-api-types
Version:
Typescript definitions for Apple API services.
113 lines (112 loc) • 5.73 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SubscriptionStatus = exports.PriceIncreaseStatus = exports.OfferType = exports.ExpirationIntent = exports.AutoRenewStatus = exports.OrderLookupStatus = exports.Type = exports.InAppOwnershipType = exports.NotificationSubtype = exports.NotificationType = void 0;
/**
* @link https://developer.apple.com/documentation/appstoreservernotifications/notificationtype
*/
var NotificationType;
(function (NotificationType) {
NotificationType["ConsumptionRequest"] = "CONSUMPTION_REQUEST";
NotificationType["DidChangeRenewalPref"] = "DID_CHANGE_RENEWAL_PREF";
NotificationType["DidChangeRenewalStatus"] = "DID_CHANGE_RENEWAL_STATUS";
NotificationType["DidFailToRenew"] = "DID_FAIL_TO_RENEW";
NotificationType["DidRenew"] = "DID_RENEW";
NotificationType["Expired"] = "EXPIRED";
NotificationType["GracePeriodExpired"] = "GRACE_PERIOD_EXPIRED";
NotificationType["OfferRedeemed"] = "OFFER_REDEEMED";
NotificationType["PriceIncrease"] = "PRICE_INCREASE";
NotificationType["Refund"] = "REFUND";
NotificationType["RefundDeclined"] = "REFUND_DECLINED";
NotificationType["RenewalExtended"] = "RENEWAL_EXTENDED";
NotificationType["Revoke"] = "REVOKE";
NotificationType["Subscribed"] = "SUBSCRIBED";
})(NotificationType || (exports.NotificationType = NotificationType = {}));
/**
* @link https://developer.apple.com/documentation/appstoreservernotifications/subtype
*/
var NotificationSubtype;
(function (NotificationSubtype) {
NotificationSubtype["InitialBuy"] = "INITIAL_BUY";
NotificationSubtype["Resubscribe"] = "RESUBSCRIBE";
NotificationSubtype["Downgrade"] = "DOWNGRADE";
NotificationSubtype["Upgrade"] = "UPGRADE";
NotificationSubtype["AutoRenewEnabled"] = "AUTO_RENEW_ENABLED";
NotificationSubtype["AutoRenewDisabled"] = "AUTO_RENEW_DISABLED";
NotificationSubtype["Voluntary"] = "VOLUNTARY";
NotificationSubtype["BillingRetry"] = "BILLING_RETRY";
NotificationSubtype["PriceIncrease"] = "PRICE_INCREASE";
NotificationSubtype["GracePeriod"] = "GRACE_PERIOD";
NotificationSubtype["BillingRecovery"] = "BILLING_RECOVERY";
NotificationSubtype["Pending"] = "PENDING";
NotificationSubtype["Accepted"] = "ACCEPTED";
})(NotificationSubtype || (exports.NotificationSubtype = NotificationSubtype = {}));
/**
* @link https://developer.apple.com/documentation/appstoreserverapi/inappownershiptype
*/
var InAppOwnershipType;
(function (InAppOwnershipType) {
InAppOwnershipType["Purchased"] = "PURCHASED";
InAppOwnershipType["FamilyShared"] = "FAMILY_SHARED";
})(InAppOwnershipType || (exports.InAppOwnershipType = InAppOwnershipType = {}));
// https://developer.apple.com/documentation/appstoreserverapi/type
var Type;
(function (Type) {
Type["AutoRenewableSubscription"] = "Auto-Renewable Subscription";
Type["NonConsumable"] = "Non-Consumable";
Type["Consumable"] = "Consumable";
Type["NonRenewingSubscription"] = "Non-Renewing Subscription";
})(Type || (exports.Type = Type = {}));
/**
* @link https://developer.apple.com/documentation/appstoreserverapi/orderlookupstatus
*/
var OrderLookupStatus;
(function (OrderLookupStatus) {
OrderLookupStatus[OrderLookupStatus["Valid"] = 0] = "Valid";
OrderLookupStatus[OrderLookupStatus["Invalid"] = 1] = "Invalid";
})(OrderLookupStatus || (exports.OrderLookupStatus = OrderLookupStatus = {}));
/**
* @link https://developer.apple.com/documentation/appstoreserverapi/autorenewstatus
*/
var AutoRenewStatus;
(function (AutoRenewStatus) {
AutoRenewStatus[AutoRenewStatus["Off"] = 0] = "Off";
AutoRenewStatus[AutoRenewStatus["On"] = 1] = "On";
})(AutoRenewStatus || (exports.AutoRenewStatus = AutoRenewStatus = {}));
/**
* @link https://developer.apple.com/documentation/appstoreserverapi/expirationintent
*/
var ExpirationIntent;
(function (ExpirationIntent) {
ExpirationIntent[ExpirationIntent["Canceled"] = 1] = "Canceled";
ExpirationIntent[ExpirationIntent["BillingError"] = 2] = "BillingError";
ExpirationIntent[ExpirationIntent["RejectedPriceIncrease"] = 3] = "RejectedPriceIncrease";
ExpirationIntent[ExpirationIntent["ProductUnavailable"] = 4] = "ProductUnavailable";
})(ExpirationIntent || (exports.ExpirationIntent = ExpirationIntent = {}));
/**
* @link https://developer.apple.com/documentation/appstoreserverapi/offertype
*/
var OfferType;
(function (OfferType) {
OfferType[OfferType["Introductory"] = 1] = "Introductory";
OfferType[OfferType["Promotional"] = 2] = "Promotional";
OfferType[OfferType["SubscriptionOfferCode"] = 3] = "SubscriptionOfferCode";
})(OfferType || (exports.OfferType = OfferType = {}));
/**
* @link https://developer.apple.com/documentation/appstoreserverapi/priceincreasestatus
*/
var PriceIncreaseStatus;
(function (PriceIncreaseStatus) {
PriceIncreaseStatus[PriceIncreaseStatus["NoResponse"] = 0] = "NoResponse";
PriceIncreaseStatus[PriceIncreaseStatus["Consented"] = 1] = "Consented";
})(PriceIncreaseStatus || (exports.PriceIncreaseStatus = PriceIncreaseStatus = {}));
/**
* @link https://developer.apple.com/documentation/appstoreserverapi/status
*/
var SubscriptionStatus;
(function (SubscriptionStatus) {
SubscriptionStatus[SubscriptionStatus["Active"] = 1] = "Active";
SubscriptionStatus[SubscriptionStatus["Expired"] = 2] = "Expired";
SubscriptionStatus[SubscriptionStatus["InBillingRetry"] = 3] = "InBillingRetry";
SubscriptionStatus[SubscriptionStatus["InBillingGracePeriod"] = 4] = "InBillingGracePeriod";
SubscriptionStatus[SubscriptionStatus["Revoked"] = 5] = "Revoked";
})(SubscriptionStatus || (exports.SubscriptionStatus = SubscriptionStatus = {}));