ErrorType
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
枚举 |
ERROR_TYPE_UNSPECIFIED |
未知错误 |
NOT_FOUND |
找不到实体,可能是 Item、FulfillmentOption、Promotion。必须提供实体 ID。 |
INVALID |
实体数据无效。可以是 Item、FulfillmentOption、Promotion。必须提供实体 ID。 |
AVAILABILITY_CHANGED |
商品不存在,或商品数量不足,无法完成请求。必须提供实体 ID。 |
PRICE_CHANGED |
商品价格与商品实体中的价格不同。必须提供实体 ID 和更新后的价格。 |
INCORRECT_PRICE |
“总费用”中的价格错误,总计。必须提供实体 ID 和更新后的价格。 |
REQUIREMENTS_NOT_MET |
未满足接受订单的限制 - 购物篮大小下限等。 |
TOO_LATE |
FulfillmentOption 已过期。 |
NO_CAPACITY |
没有可用的服务容量。 |
INELIGIBLE |
用户不符合下单条件(列入黑名单)。 |
OUT_OF_SERVICE_AREA |
由于边界规则等原因,包裹无法送达请求的地址。 |
CLOSED |
该餐馆在下单时已停业。 |
PROMO_NOT_APPLICABLE |
通用错误代码,可在下述情况均不适用时捕获促销代码无法应用的所有情况。添加促销代码作为实体 ID。 |
PROMO_NOT_RECOGNIZED |
合作伙伴无法识别优惠券代码。添加促销代码作为实体 ID。 |
PROMO_EXPIRED |
促销已过期,因此无法应用。添加促销代码作为实体 ID。 |
PROMO_USER_INELIGIBLE |
当前用户不符合使用此优惠券的条件。添加促销代码作为实体 ID。 |
PROMO_ORDER_INELIGIBLE |
当前订单不符合使用此优惠券的条件。添加促销代码作为实体 ID。 |
UNAVAILABLE_SLOT |
无法提供提前订餐槽。 |
FAILED_PRECONDITION |
未满足接受订单的限制 - 最小购物篮大小等 |
PAYMENT_DECLINED |
付款无效。 |
MERCHANT_UNREACHABLE |
无法联系到该商家。如果合作伙伴是集合商家且无法覆盖商家,这会非常有用。 |
ACCOUNT_LINKING_FAILED |
商家尝试将用户 Google 帐号关联到其系统中的帐号,但在操作过程中遇到了错误。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eThis page lists potential error types that can occur during an order process, categorized by enums.\u003c/p\u003e\n"],["\u003cp\u003eErrors can relate to entities like items, fulfillment options, and promotions, often requiring entity IDs for resolution.\u003c/p\u003e\n"],["\u003cp\u003eSeveral errors address availability, pricing discrepancies, and order constraints, including minimum basket size or service capacity.\u003c/p\u003e\n"],["\u003cp\u003eSpecific errors pertain to promo code failures, user eligibility, and delivery limitations like service area restrictions.\u003c/p\u003e\n"],["\u003cp\u003ePayment issues, merchant unavailability, and account linking problems are also encompassed in the error types.\u003c/p\u003e\n"]]],["The provided content details potential error types, categorized as enums, that can occur during order placement. These include: entity-related issues like `NOT_FOUND`, `INVALID`, or `PRICE_CHANGED`; availability problems such as `AVAILABILITY_CHANGED`, `NO_CAPACITY`, or `UNAVAILABLE_SLOT`; fulfillment errors including `TOO_LATE` or `OUT_OF_SERVICE_AREA`; user or order ineligibility, as indicated by `INELIGIBLE` or various `PROMO_*` errors; and general issues like `PAYMENT_DECLINED` or `MERCHANT_UNREACHABLE`. Each enum provides a specific error description.\n"],null,["# ErrorType\n\nPossible error types.\n\n| Enums ||\n|--------------------------|-----------------------------------------------------------------------------------------------------------------------------------|\n| `ERROR_TYPE_UNSPECIFIED` | Unknown error |\n| `NOT_FOUND` | Entity not found, could be Item, FulfillmentOption, Promotion. Entity ID required. |\n| `INVALID` | Entity data not valid. could be Item, FulfillmentOption, Promotion. Entity ID required. |\n| `AVAILABILITY_CHANGED` | Item unavailable, or insufficient items to fulfill the request. Entity ID required. |\n| `PRICE_CHANGED` | Item price different from price in Item entity. Entity ID and updated price required. |\n| `INCORRECT_PRICE` | Price errors in Fees, Total. Entity ID and updated price required. |\n| `REQUIREMENTS_NOT_MET` | Constraints for accepting order not met - minimum basket size etc.,. |\n| `TOO_LATE` | FulfillmentOption expired. |\n| `NO_CAPACITY` | No available service capacity. |\n| `INELIGIBLE` | User in-eligible to place order (blacklisted). |\n| `OUT_OF_SERVICE_AREA` | Unable to deliver to requested address due to border rules etc. |\n| `CLOSED` | Restaurant is closed for business at ordering time. |\n| `PROMO_NOT_APPLICABLE` | Generic error code to catch all cases of failure to apply promo code, if none of the ones below fit. Add promo code as Entity Id. |\n| `PROMO_NOT_RECOGNIZED` | The coupon code was not recognized by partner. Add promo code as Entity Id. |\n| `PROMO_EXPIRED` | Could not apply as promotion expired. Add promo code as Entity Id. |\n| `PROMO_USER_INELIGIBLE` | The current user is not eligible for this coupon. Add promo code as Entity Id. |\n| `PROMO_ORDER_INELIGIBLE` | The current order is not eligible for this coupon. Add promo code as Entity Id. |\n| `UNAVAILABLE_SLOT` | The order ahead slot is unavailable. |\n| `FAILED_PRECONDITION` | Constraints for accepting order not met - minimum basket size etc. |\n| `PAYMENT_DECLINED` | Invalid payment. |\n| `MERCHANT_UNREACHABLE` | Merchant is not reachable. This helps when a partner is an aggregator and could not reach merchant. |\n| `ACCOUNT_LINKING_FAILED` | Merchant tried to link user google account to an account in their system but encountered an error while doing so. |"]]