Enum UpgradeErrorCode
java.lang.Object
java.lang.Enum<UpgradeErrorCode>
com.microsoft.store.partnercenter.models.subscriptions.UpgradeErrorCode
- All Implemented Interfaces:
Serializable,Comparable<UpgradeErrorCode>,java.lang.constant.Constable
public enum UpgradeErrorCode extends Enum<UpgradeErrorCode>
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description CONCURRENCY_CONFLICTSUpgrade cannot be performed due to concurrent subscription restrictions.CONFLICTING_SERVICE_TYPESUpgrade cannot be performed because of conflicting source service types.DELEGATED_ADMIN_PERMISSIONS_DISABLEDUpgrade cannot be performed because administrative permissions have been removed.OTHERThe type of errors that prevent subscription upgrading from happening General error.SUBSCRIPTION_ADD_ONS_PRESENTUpgrade cannot be performed because the source subscription has previously purchased add-ons.SUBSCRIPTION_DOES_NOT_HAVE_ANY_UPGRADE_PATHSUpgrade cannot be performed because the source subscription does not have upgrade paths.SUBSCRIPTION_NOT_PROVISIONEDThe subscription is not provisioned yet.SUBSCRIPTION_STATUS_NOT_ACTIVEUpgrade cannot be performed because the subscription status is suspended or deleted.SUBSCRIPTION_TARGET_OFFER_NOT_FOUNDUpgrade cannot be performed because the specified upgrade path is not an available upgrade path.USER_CONTEXT_REQUIREDUpgrade cannot be performed because the current request is using app context. -
Method Summary
Modifier and Type Method Description StringtoString()Converts the object to a string.static UpgradeErrorCodevalueOf(String name)Returns the enum constant of this type with the specified name.static UpgradeErrorCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
OTHER
The type of errors that prevent subscription upgrading from happening General error. -
DELEGATED_ADMIN_PERMISSIONS_DISABLED
Upgrade cannot be performed because administrative permissions have been removed. -
SUBSCRIPTION_STATUS_NOT_ACTIVE
Upgrade cannot be performed because the subscription status is suspended or deleted. -
CONFLICTING_SERVICE_TYPES
Upgrade cannot be performed because of conflicting source service types. -
CONCURRENCY_CONFLICTS
Upgrade cannot be performed due to concurrent subscription restrictions. -
USER_CONTEXT_REQUIRED
Upgrade cannot be performed because the current request is using app context. -
SUBSCRIPTION_ADD_ONS_PRESENT
Upgrade cannot be performed because the source subscription has previously purchased add-ons. -
SUBSCRIPTION_DOES_NOT_HAVE_ANY_UPGRADE_PATHS
Upgrade cannot be performed because the source subscription does not have upgrade paths. -
SUBSCRIPTION_TARGET_OFFER_NOT_FOUND
Upgrade cannot be performed because the specified upgrade path is not an available upgrade path. -
SUBSCRIPTION_NOT_PROVISIONED
The subscription is not provisioned yet. Happens when the order is still being processed. Eventually the subscription ill be provisioned and an entitlement is created.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
toString
Converts the object to a string.- Overrides:
toStringin classEnum<UpgradeErrorCode>- Returns:
- A string that represents this object.
-