Przejdź do głównej zawartości

CartApplyGiftCardPayload

Result of cartApplyGiftCard.

type CartApplyGiftCardPayload {
cart: Cart
userErrors: [UserError!]!
warnings: [CartWarning!]!
}

Fields

CartApplyGiftCardPayload.cart ● Cart object

The updated cart with the gift card included in appliedGiftCards.

CartApplyGiftCardPayload.userErrors ● [UserError!]! non-null object

Business / validation errors carrying a stable CartErrorCode in code (e.g. GIFT_CARD_NOT_FOUND, GIFT_CARD_DEPLETED, GIFT_CARD_UNUSABLE).

CartApplyGiftCardPayload.warnings ● [CartWarning!]! non-null object

Non-fatal advisories — the mutation itself succeeded.

Returned By

cartApplyGiftCard mutation