Przejdź do głównej zawartości

CartClearPaymentSelectionPayload

Result of cartClearPaymentSelection. cart is populated on success with cleared selection fields (selectedPaymentMethod === null, selectedPaymentInstrument === null). userErrors is populated when the cart is locked (CONVERTED status → ALREADY_COMPLETED code).

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

Fields

CartClearPaymentSelectionPayload.cart ● Cart object

The updated cart with cleared payment selection.

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

Business / validation errors carrying a stable CartErrorCode in code (e.g. ALREADY_COMPLETED).

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

Non-fatal advisories — the mutation itself succeeded.

Returned By

cartClearPaymentSelection mutation