[
  {
    "trigger": "scan_data",
    "source": "enter_given_name",
    "dest": "enter_family_name",
    "after": "cic_ussd.state_machine.logic.user.save_metadata_attribute_to_session_data"
  },
  {
    "trigger": "scan_data",
    "source": "enter_given_name",
    "dest": "standard_pin_authorization",
    "after": "cic_ussd.state_machine.logic.user.save_metadata_attribute_to_session_data",
    "conditions": "cic_ussd.state_machine.logic.validator.has_cached_user_metadata"
  },
  {
    "trigger": "scan_data",
    "source": "standard_pin_authorization",
    "dest": "exit",
    "conditions": "cic_ussd.state_machine.logic.pin.is_authorized_pin",
    "after": "cic_ussd.state_machine.logic.user.edit_user_metadata_attribute",
    "unless": "cic_ussd.state_machine.logic.validator.has_cached_user_metadata"
  },
  {
    "trigger": "scan_data",
    "source": "standard_pin_authorization",
    "dest": "exit_pin_blocked",
    "conditions": "cic_ussd.state_machine.logic.pin.is_locked_account"
  },
  {
    "trigger": "scan_data",
    "source": "enter_family_name",
    "dest": "enter_gender",
    "after": "cic_ussd.state_machine.logic.user.save_metadata_attribute_to_session_data"
  },
  {
    "trigger": "scan_data",
    "source": "enter_family_name",
    "dest": "standard_pin_authorization",
    "after": "cic_ussd.state_machine.logic.user.save_metadata_attribute_to_session_data",
    "conditions": "cic_ussd.state_machine.logic.validator.has_cached_user_metadata"
  },
  {
    "trigger": "scan_data",
    "source": "standard_pin_authorization",
    "dest": "exit",
    "conditions": "cic_ussd.state_machine.logic.pin.is_authorized_pin",
    "after": "cic_ussd.state_machine.logic.user.edit_user_metadata_attribute",
    "unless": "cic_ussd.state_machine.logic.validator.has_cached_user_metadata"
  },
  {
    "trigger": "scan_data",
    "source": "standard_pin_authorization",
    "dest": "exit_pin_blocked",
    "conditions": "cic_ussd.state_machine.logic.pin.is_locked_account"
  }
]