stack

Home > @infiniteobjects/shopify-data-manager > AdminTypes > SubscriptionDraftErrorCode

AdminTypes.SubscriptionDraftErrorCode enum

Possible error codes that can be returned by SubscriptionDraftUserError.

Signature:

export declare enum SubscriptionDraftErrorCode 

Enumeration Members

Member Value Description
AlreadyRemoved "ALREADY_REMOVED" This line has already been removed.
BillingCycleAbsent "BILLING_CYCLE_ABSENT" Cannot commit a contract draft with this mutation. Please use SubscriptionDraftCommit.
BillingCycleContractDraftBillingPolicyInvalid "BILLING_CYCLE_CONTRACT_DRAFT_BILLING_POLICY_INVALID" Billing policy cannot be updated for billing cycle contract drafts.
BillingCycleContractDraftDeliveryPolicyInvalid "BILLING_CYCLE_CONTRACT_DRAFT_DELIVERY_POLICY_INVALID" Delivery policy cannot be updated for billing cycle contract drafts.
BillingCyclePresent "BILLING_CYCLE_PRESENT" Cannot commit a billing cycle contract draft with this mutation. Please use SubscriptionBillingCycleContractDraftCommit.
Blank "BLANK" The input value is blank.
Committed "COMMITTED" Subscription draft has been already committed.
ConcatenationBillingCycleContractDraftRequired "CONCATENATION_BILLING_CYCLE_CONTRACT_DRAFT_REQUIRED" Contract draft must be a billing cycle contract draft for contract concatenation.
CurrencyNotEnabled "CURRENCY_NOT_ENABLED" Currency is not enabled.
CustomerDoesNotExist "CUSTOMER_DOES_NOT_EXIST" The customer doesn’t exist.
CustomerMismatch "CUSTOMER_MISMATCH" The payment method customer must be the same as the contract customer.
CycleDiscountsUniqueAfterCycle "CYCLE_DISCOUNTS_UNIQUE_AFTER_CYCLE" The after cycle attribute must be unique between cycle discounts.
CycleIndexOutOfRange "CYCLE_INDEX_OUT_OF_RANGE" Billing cycle selector cannot select billing cycle outside of index range.
CycleSelectorValidateOneOf "CYCLE_SELECTOR_VALIDATE_ONE_OF" Billing cycle selector requires exactly one of index or date to be provided.
CycleStartDateOutOfRange "CYCLE_START_DATE_OUT_OF_RANGE" Billing cycle selector cannot select billing cycle outside of start date range.
DeliveryMethodRequired "DELIVERY_METHOD_REQUIRED" The delivery method can’t be blank if any lines require shipping.
DeliveryMustBeMultipleOfBilling "DELIVERY_MUST_BE_MULTIPLE_OF_BILLING" The delivery policy interval must be a multiple of the billing policy interval.
DuplicateConcatenatedContracts "DUPLICATE_CONCATENATED_CONTRACTS" Concatenated contracts cannot contain duplicate subscription contracts.
ExceededMaxConcatenatedContracts "EXCEEDED_MAX_CONCATENATED_CONTRACTS" Maximum number of concatenated contracts on a billing cycle contract draft exceeded.
GreaterThan "GREATER_THAN" The input value should be greater than the minimum allowed value.
GreaterThanOrEqualTo "GREATER_THAN_OR_EQUAL_TO" The input value should be greater than or equal to the minimum value allowed.
HasFutureEdits "HAS_FUTURE_EDITS" Cannot update a subscription contract with a current or upcoming billing cycle contract edit.
Invalid "INVALID" The input value is invalid.
InvalidAdjustmentType "INVALID_ADJUSTMENT_TYPE" The adjustment value must the same type as the adjustment type.
InvalidAdjustmentValue "INVALID_ADJUSTMENT_VALUE" The adjustment value must be either fixed_value or percentage.
InvalidBillingDate "INVALID_BILLING_DATE" Next billing date is invalid.
InvalidLines "INVALID_LINES" Must have at least one line.
InvalidNoteLength "INVALID_NOTE_LENGTH" Note length is too long.
LessThan "LESS_THAN" The input value should be less than the maximum value allowed.
LessThanOrEqualTo "LESS_THAN_OR_EQUAL_TO" The input value should be less than or equal to the maximum value allowed.
MissingLocalDeliveryOptions "MISSING_LOCAL_DELIVERY_OPTIONS" The local delivery options must be set for local delivery.
NoEntitledLines "NO_ENTITLED_LINES" Discount must have at least one entitled line.
NotAnInteger "NOT_AN_INTEGER" The value is not an integer.
NotInRange "NOT_IN_RANGE" Value is not in range.
Presence "PRESENCE" Input value is not present.
SellingPlanMaxCyclesMustBeGreaterThanMinCycles "SELLING_PLAN_MAX_CYCLES_MUST_BE_GREATER_THAN_MIN_CYCLES" The maximum number of cycles must be greater than the minimum.
StaleContract "STALE_CONTRACT" Another operation updated the contract concurrently as the commit was in progress.
TooLong "TOO_LONG" The input value is too long.
TooShort "TOO_SHORT" The input value is too short.
UpcomingCycleLimitExceeded "UPCOMING_CYCLE_LIMIT_EXCEEDED" Billing cycle selector cannot select upcoming billing cycle past limit.