Subscription Upgrade Validation
Validation messages for subscription upgrade requests, covering currency, subscription ID, and plan name fields.
Overview
| Key | Message | Description |
|---|---|---|
NotBlank.subscriptionUpgradeRequest.currency | The currency in which the subscription will be upgraded can't be empty or consist only of whitespace. | The currency field is empty when upgrading a subscription. |
NotBlank.subscriptionUpgradeRequest.subscriptionId | The unique identifier of the subscription to be canceled can't be empty or consist only of whitespace. | The subscription ID is empty when upgrading. |
NotNull.subscriptionUpgradeRequest.planName | The name of the premium plan to upgrade to can't be null. | The upgrade plan name is null. |
Validation Message Details
NotBlank.subscriptionUpgradeRequest.currency
Message
The currency in which the subscription will be upgraded can't be empty or consist only of whitespace.
Description
The currency field is empty when upgrading a subscription.
Root Cause
- The
currencyfield was left blank or contains only spaces.
Resolution
- Provide a valid currency code (e.g.,
USD,JPY).
NotBlank.subscriptionUpgradeRequest.subscriptionId
Message
The unique identifier of the subscription to be canceled can't be empty or consist only of whitespace.
Description
The subscription ID is empty when upgrading.
Root Cause
- The
subscriptionIdfield was left blank or contains only spaces.
Resolution
- Provide the unique identifier of the subscription to upgrade.
NotNull.subscriptionUpgradeRequest.planName
Message
The name of the premium plan to upgrade to can't be null.
Description
The upgrade plan name is null.
Root Cause
- The
planNamefield was not included in the request.
Resolution
- Provide the name of the premium plan to upgrade to.