TransactionDecision

  • This documentation outlines the possible decisions a user can make regarding an order within a transaction flow.

  • The decision options include unspecified, user ineligibility, order acceptance or rejection, delivery address updates, and cart change requests.

  • Each decision enum is associated with a specific user action and requires corresponding handling by the application.

  • For delivery address updates and cart change requests, the application must call the actions.intent.TRANSACTION_DECISION intent with the updated information.

Possible decisions regarding the order.

Enums
TRANSACTION_DECISION_UNSPECIFIED Decision unspecified.
USER_CANNOT_TRANSACT User is not eligible to perform this transaction.
ORDER_ACCEPTED Order was accepted by user.
ORDER_REJECTED Order was rejected by user.
DELIVERY_ADDRESS_UPDATED User updates delivery address which requires order being updated. The app MUST call actions.intent.TRANSACTION_DECISION intent with the updated order.
CART_CHANGE_REQUESTED User asks for changing cart, e.g. "change cart", "change something else". The app needs to handle cart change interaction with user and call actions.intent.TRANSACTION_DECISION intent once the cart is changed.