GitHub

ShopifyCheckoutErrorCode

enum

import { ShopifyCheckoutErrorCode } from '@daffodil/driver/shopify'

Possible error codes that can be returned by CheckoutUserError.

enum ShopifyCheckoutErrorCode {
  AlreadyCompleted = ShopifyCheckoutErrorCode.AlreadyCompleted,
  BadDomain = ShopifyCheckoutErrorCode.BadDomain,
  Blank = ShopifyCheckoutErrorCode.Blank,
  CartDoesNotMeetDiscountRequirementsNotice = ShopifyCheckoutErrorCode.CartDoesNotMeetDiscountRequirementsNotice,
  CustomerAlreadyUsedOncePerCustomerDiscountNotice = ShopifyCheckoutErrorCode.CustomerAlreadyUsedOncePerCustomerDiscountNotice,
  DiscountAlreadyApplied = ShopifyCheckoutErrorCode.DiscountAlreadyApplied,
  DiscountCodeApplicationFailed = ShopifyCheckoutErrorCode.DiscountCodeApplicationFailed,
  DiscountDisabled = ShopifyCheckoutErrorCode.DiscountDisabled,
  DiscountExpired = ShopifyCheckoutErrorCode.DiscountExpired,
  DiscountLimitReached = ShopifyCheckoutErrorCode.DiscountLimitReached,
  DiscountNotFound = ShopifyCheckoutErrorCode.DiscountNotFound,
  Empty = ShopifyCheckoutErrorCode.Empty,
  ExpiredQueueToken = ShopifyCheckoutErrorCode.ExpiredQueueToken,
  GiftCardAlreadyApplied = ShopifyCheckoutErrorCode.GiftCardAlreadyApplied,
  GiftCardCodeInvalid = ShopifyCheckoutErrorCode.GiftCardCodeInvalid,
  GiftCardCurrencyMismatch = ShopifyCheckoutErrorCode.GiftCardCurrencyMismatch,
  GiftCardDepleted = ShopifyCheckoutErrorCode.GiftCardDepleted,
  GiftCardDisabled = ShopifyCheckoutErrorCode.GiftCardDisabled,
  GiftCardExpired = ShopifyCheckoutErrorCode.GiftCardExpired,
  GiftCardNotFound = ShopifyCheckoutErrorCode.GiftCardNotFound,
  GiftCardUnusable = ShopifyCheckoutErrorCode.GiftCardUnusable,
  GreaterThanOrEqualTo = ShopifyCheckoutErrorCode.GreaterThanOrEqualTo,
  HigherValueDiscountApplied = ShopifyCheckoutErrorCode.HigherValueDiscountApplied,
  Invalid = ShopifyCheckoutErrorCode.Invalid,
  InvalidCountryAndCurrency = ShopifyCheckoutErrorCode.InvalidCountryAndCurrency,
  InvalidForCountry = ShopifyCheckoutErrorCode.InvalidForCountry,
  InvalidForCountryAndProvince = ShopifyCheckoutErrorCode.InvalidForCountryAndProvince,
  InvalidProvinceInCountry = ShopifyCheckoutErrorCode.InvalidProvinceInCountry,
  InvalidQueueToken = ShopifyCheckoutErrorCode.InvalidQueueToken,
  InvalidRegionInCountry = ShopifyCheckoutErrorCode.InvalidRegionInCountry,
  InvalidStateInCountry = ShopifyCheckoutErrorCode.InvalidStateInCountry,
  LessThan = ShopifyCheckoutErrorCode.LessThan,
  LessThanOrEqualTo = ShopifyCheckoutErrorCode.LessThanOrEqualTo,
  LineItemNotFound = ShopifyCheckoutErrorCode.LineItemNotFound,
  Locked = ShopifyCheckoutErrorCode.Locked,
  MaximumDiscountCodeLimitReached = ShopifyCheckoutErrorCode.MaximumDiscountCodeLimitReached,
  MissingPaymentInput = ShopifyCheckoutErrorCode.MissingPaymentInput,
  NotEnoughInStock = ShopifyCheckoutErrorCode.NotEnoughInStock,
  NotSupported = ShopifyCheckoutErrorCode.NotSupported,
  Present = ShopifyCheckoutErrorCode.Present,
  ProductNotAvailable = ShopifyCheckoutErrorCode.ProductNotAvailable,
  ShippingRateExpired = ShopifyCheckoutErrorCode.ShippingRateExpired,
  ThrottledDuringCheckout = ShopifyCheckoutErrorCode.ThrottledDuringCheckout,
  TooLong = ShopifyCheckoutErrorCode.TooLong,
  TotalPriceMismatch = ShopifyCheckoutErrorCode.TotalPriceMismatch,
  UnableToApply = ShopifyCheckoutErrorCode.UnableToApply,
}

Properties

AlreadyCompleted
ShopifyCheckoutErrorCode.AlreadyCompleted

Checkout is already completed.

BadDomain
ShopifyCheckoutErrorCode.BadDomain

Input email contains an invalid domain name.

Blank
ShopifyCheckoutErrorCode.Blank

The input value is blank.

CartDoesNotMeetDiscountRequirementsNotice
ShopifyCheckoutErrorCode.CartDoesNotMeetDiscountRequirementsNotice

Cart does not meet discount requirements notice.

CustomerAlreadyUsedOncePerCustomerDiscountNotice
ShopifyCheckoutErrorCode.CustomerAlreadyUsedOncePerCustomerDiscountNotice

Customer already used once per customer discount notice.

DiscountAlreadyApplied
ShopifyCheckoutErrorCode.DiscountAlreadyApplied

Discount already applied.

DiscountCodeApplicationFailed
ShopifyCheckoutErrorCode.DiscountCodeApplicationFailed

Discount code isn't working right now. Please contact us for help.

DiscountDisabled
ShopifyCheckoutErrorCode.DiscountDisabled

Discount disabled.

DiscountExpired
ShopifyCheckoutErrorCode.DiscountExpired

Discount expired.

DiscountLimitReached
ShopifyCheckoutErrorCode.DiscountLimitReached

Discount limit reached.

DiscountNotFound
ShopifyCheckoutErrorCode.DiscountNotFound

Discount not found.

Empty
ShopifyCheckoutErrorCode.Empty

Checkout is already completed.

ExpiredQueueToken
ShopifyCheckoutErrorCode.ExpiredQueueToken

Queue token has expired.

GiftCardAlreadyApplied
ShopifyCheckoutErrorCode.GiftCardAlreadyApplied

Gift card has already been applied.

GiftCardCodeInvalid
ShopifyCheckoutErrorCode.GiftCardCodeInvalid

Gift card code is invalid.

GiftCardCurrencyMismatch
ShopifyCheckoutErrorCode.GiftCardCurrencyMismatch

Gift card currency does not match checkout currency.

GiftCardDepleted
ShopifyCheckoutErrorCode.GiftCardDepleted

Gift card has no funds left.

GiftCardDisabled
ShopifyCheckoutErrorCode.GiftCardDisabled

Gift card is disabled.

GiftCardExpired
ShopifyCheckoutErrorCode.GiftCardExpired

Gift card is expired.

GiftCardNotFound
ShopifyCheckoutErrorCode.GiftCardNotFound

Gift card was not found.

GiftCardUnusable
ShopifyCheckoutErrorCode.GiftCardUnusable

Gift card cannot be applied to a checkout that contains a gift card.

GreaterThanOrEqualTo
ShopifyCheckoutErrorCode.GreaterThanOrEqualTo

The input value should be greater than or equal to the minimum value allowed.

HigherValueDiscountApplied
ShopifyCheckoutErrorCode.HigherValueDiscountApplied

Higher value discount applied.

Invalid
ShopifyCheckoutErrorCode.Invalid

The input value is invalid.

InvalidCountryAndCurrency
ShopifyCheckoutErrorCode.InvalidCountryAndCurrency

Cannot specify country and presentment currency code.

InvalidForCountry
ShopifyCheckoutErrorCode.InvalidForCountry

Input Zip is invalid for country provided.

InvalidForCountryAndProvince
ShopifyCheckoutErrorCode.InvalidForCountryAndProvince

Input Zip is invalid for country and province provided.

InvalidProvinceInCountry
ShopifyCheckoutErrorCode.InvalidProvinceInCountry

Invalid province in country.

InvalidQueueToken
ShopifyCheckoutErrorCode.InvalidQueueToken

Queue token is invalid.

InvalidRegionInCountry
ShopifyCheckoutErrorCode.InvalidRegionInCountry

Invalid region in country.

InvalidStateInCountry
ShopifyCheckoutErrorCode.InvalidStateInCountry

Invalid state in country.

LessThan
ShopifyCheckoutErrorCode.LessThan

The input value should be less than the maximum value allowed.

LessThanOrEqualTo
ShopifyCheckoutErrorCode.LessThanOrEqualTo

The input value should be less than or equal to the maximum value allowed.

LineItemNotFound
ShopifyCheckoutErrorCode.LineItemNotFound

Line item was not found in checkout.

Locked
ShopifyCheckoutErrorCode.Locked

Checkout is locked.

MaximumDiscountCodeLimitReached
ShopifyCheckoutErrorCode.MaximumDiscountCodeLimitReached

Maximum number of discount codes limit reached.

MissingPaymentInput
ShopifyCheckoutErrorCode.MissingPaymentInput

Missing payment input.

NotEnoughInStock
ShopifyCheckoutErrorCode.NotEnoughInStock

Not enough in stock.

NotSupported
ShopifyCheckoutErrorCode.NotSupported

Input value is not supported.

Present
ShopifyCheckoutErrorCode.Present

The input value needs to be blank.

ProductNotAvailable
ShopifyCheckoutErrorCode.ProductNotAvailable

Product is not published for this customer.

ShippingRateExpired
ShopifyCheckoutErrorCode.ShippingRateExpired

Shipping rate expired.

ThrottledDuringCheckout
ShopifyCheckoutErrorCode.ThrottledDuringCheckout

Throttled during checkout.

TooLong
ShopifyCheckoutErrorCode.TooLong

The input value is too long.

TotalPriceMismatch
ShopifyCheckoutErrorCode.TotalPriceMismatch

The amount of the payment does not match the value to be paid.

UnableToApply
ShopifyCheckoutErrorCode.UnableToApply

Unable to apply discount.