[
  {
    "trigger": "scan_data",
    "source": "enter_products",
    "dest": "products_edit_pin_authorization",
    "conditions": "cic_ussd.state_machine.logic.validator.has_cached_person_metadata",
    "after": "cic_ussd.state_machine.logic.account.save_metadata_attribute_to_session_data"
  },
  {
    "trigger": "scan_data",
    "source": "enter_products",
    "dest": "start",
    "after": [
      "cic_ussd.state_machine.logic.account.save_metadata_attribute_to_session_data",
      "cic_ussd.state_machine.logic.account.save_complete_person_metadata"
    ],
    "unless": "cic_ussd.state_machine.logic.validator.has_cached_person_metadata"
  },
  {
    "trigger": "scan_data",
    "source": "products_edit_pin_authorization",
    "dest": "exit",
    "conditions": "cic_ussd.state_machine.logic.pin.is_authorized_pin",
    "after": "cic_ussd.state_machine.logic.account.edit_user_metadata_attribute"
  },
  {
    "trigger": "scan_data",
    "source": "products_edit_pin_authorization",
    "dest": "exit_pin_blocked",
    "conditions": "cic_ussd.state_machine.logic.pin.is_locked_account"
  }

]
