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