Skip to main content

Subscription Upgrade Validation

Validation messages for subscription upgrade requests, covering currency, subscription ID, and plan name fields.


Overview

KeyMessageDescription
NotBlank.subscriptionUpgradeRequest.currencyThe 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.subscriptionIdThe 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.planNameThe 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 currency field was left blank or contains only spaces.

Resolution

  1. 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 subscriptionId field was left blank or contains only spaces.

Resolution

  1. 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 planName field was not included in the request.

Resolution

  1. Provide the name of the premium plan to upgrade to.