Class GraphQLDiscountCodeNonApplicableErrorImpl
- All Implemented Interfaces:
GraphQLDiscountCodeNonApplicableError
,GraphQLErrorObject
,io.vrap.rmf.base.client.ModelBase
Returned when the Cart contains a Discount Code with a DiscountCodeState other than MatchesCart
.
The error is returned as a failed response to:
- Create Order from Cart and Create Order in Store from Cart requests on Orders.
- Create Order from Cart and Create Order in Store from Cart requests on My Orders.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Field Summary
Fields inherited from interface com.commercetools.api.models.error.GraphQLDiscountCodeNonApplicableError
DISCOUNT_CODE_NON_APPLICABLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getCode()
Error identifier.Discount Code passed to the Cart.Unique identifier of the Discount Code."DoesNotExist"
or"TimeRangeNonApplicable"
Date and time (UTC) from which the Discount Code is valid.Date and time (UTC) the Discount Code validity check was last performed.Date and time (UTC) until which the Discount Code is valid.int
hashCode()
void
setDiscountCode
(String discountCode) Discount Code passed to the Cart.void
setDiscountCodeId
(String discountCodeId) Unique identifier of the Discount Code.void
"DoesNotExist"
or"TimeRangeNonApplicable"
void
setValidFrom
(ZonedDateTime validFrom) Date and time (UTC) from which the Discount Code is valid.void
setValidityCheckTime
(ZonedDateTime validityCheckTime) Date and time (UTC) the Discount Code validity check was last performed.void
setValidUntil
(ZonedDateTime validUntil) Date and time (UTC) until which the Discount Code is valid.void
Error-specific additional fields.values()
Error-specific additional fields.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.error.GraphQLDiscountCodeNonApplicableError
withGraphQLDiscountCodeNonApplicableError
Methods inherited from interface com.commercetools.api.models.error.GraphQLErrorObject
withGraphQLErrorObject
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
GraphQLDiscountCodeNonApplicableErrorImpl
create empty instance
-
-
Method Details
-
getCode
Description copied from interface:GraphQLErrorObject
Error identifier.
- Specified by:
getCode
in interfaceGraphQLDiscountCodeNonApplicableError
- Specified by:
getCode
in interfaceGraphQLErrorObject
- Returns:
- code
-
values
Error-specific additional fields.
- Specified by:
values
in interfaceGraphQLErrorObject
- Returns:
- map of the pattern property values
-
getDiscountCode
Discount Code passed to the Cart.
- Specified by:
getDiscountCode
in interfaceGraphQLDiscountCodeNonApplicableError
- Returns:
- discountCode
-
getReason
"DoesNotExist"
or"TimeRangeNonApplicable"
- Specified by:
getReason
in interfaceGraphQLDiscountCodeNonApplicableError
- Returns:
- reason
-
getDiscountCodeId
Unique identifier of the Discount Code.
- Specified by:
getDiscountCodeId
in interfaceGraphQLDiscountCodeNonApplicableError
- Returns:
- discountCodeId
-
getValidFrom
Date and time (UTC) from which the Discount Code is valid.
- Specified by:
getValidFrom
in interfaceGraphQLDiscountCodeNonApplicableError
- Returns:
- validFrom
-
getValidUntil
Date and time (UTC) until which the Discount Code is valid.
- Specified by:
getValidUntil
in interfaceGraphQLDiscountCodeNonApplicableError
- Returns:
- validUntil
-
getValidityCheckTime
Date and time (UTC) the Discount Code validity check was last performed.
- Specified by:
getValidityCheckTime
in interfaceGraphQLDiscountCodeNonApplicableError
- Returns:
- validityCheckTime
-
setValue
Description copied from interface:GraphQLErrorObject
Error-specific additional fields.
- Specified by:
setValue
in interfaceGraphQLErrorObject
- Parameters:
key
- property namevalue
- property value
-
setDiscountCode
Description copied from interface:GraphQLDiscountCodeNonApplicableError
Discount Code passed to the Cart.
- Specified by:
setDiscountCode
in interfaceGraphQLDiscountCodeNonApplicableError
- Parameters:
discountCode
- value to be set
-
setReason
Description copied from interface:GraphQLDiscountCodeNonApplicableError
"DoesNotExist"
or"TimeRangeNonApplicable"
- Specified by:
setReason
in interfaceGraphQLDiscountCodeNonApplicableError
- Parameters:
reason
- value to be set
-
setDiscountCodeId
Description copied from interface:GraphQLDiscountCodeNonApplicableError
Unique identifier of the Discount Code.
- Specified by:
setDiscountCodeId
in interfaceGraphQLDiscountCodeNonApplicableError
- Parameters:
discountCodeId
- value to be set
-
setValidFrom
Description copied from interface:GraphQLDiscountCodeNonApplicableError
Date and time (UTC) from which the Discount Code is valid.
- Specified by:
setValidFrom
in interfaceGraphQLDiscountCodeNonApplicableError
- Parameters:
validFrom
- value to be set
-
setValidUntil
Description copied from interface:GraphQLDiscountCodeNonApplicableError
Date and time (UTC) until which the Discount Code is valid.
- Specified by:
setValidUntil
in interfaceGraphQLDiscountCodeNonApplicableError
- Parameters:
validUntil
- value to be set
-
setValidityCheckTime
Description copied from interface:GraphQLDiscountCodeNonApplicableError
Date and time (UTC) the Discount Code validity check was last performed.
- Specified by:
setValidityCheckTime
in interfaceGraphQLDiscountCodeNonApplicableError
- Parameters:
validityCheckTime
- value to be set
-
equals
-
hashCode
-