{"title":"ped_device_info","category":"default","creationDate":1776961627,"content":"<p>The\u00a0<code>ped_device_info<\/code>\u00a0struct contains the following data elements:<\/p>\n<table style=\"width:100%;\"><colgroup><col style=\"width: 14%\"><col style=\"width: 85%\"><\/colgroup><thead><tr class=\"header\"><th>Value<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>\n<p><code>device_state<\/code><\/p>\n<\/td><td>\n<p>An enum of the type <code>ped_state<\/code> that indicates the device state. The ped_state must reach the status <code>ped_state_operational<\/code> before the transaction is considered complete.Before completing the transaction, the system can return callbacks that show a change in PED state. The <code>terminal_id<\/code> is recorded in the plataforma de pagamentos da Adyen, both in the transaction view and in the device state.The device state can encounter any of the following statuses, though not always in this order. Cycling through each state is not mandatory. The POS must take action on the <code>ped_state_operational<\/code> status before performing a transaction. The other states are provided for information only and do not require action from the POS.<\/p>\n<\/td><\/tr><tr><td>\n<p><code>terminal_id<\/code><\/p>\n<\/td><td>\n<p>The\u00a0<code>terminal_id<\/code>\u00a0of the PED.<\/p>\n<\/td><\/tr><tr><td>\n<p><code>terminal_serial_number<\/code><\/p>\n<\/td><td>\n<p>The PED serial number.<\/p>\n<\/td><\/tr><tr><td>\n<p><code>terminal_type<\/code><\/p>\n<\/td><td>\n<p>The PED terminal type.<\/p>\n<\/td><\/tr><tr><td>\n<p><code>terminal_brand<\/code><\/p>\n<\/td><td>\n<p>The PED device brand.<\/p>\n<\/td><\/tr><tr><td>\n<p><code>terminal_api_version<\/code><\/p>\n<\/td><td>\n<p>The PED API version.<\/p>\n<\/td><\/tr><tr><td>\n<p><code>terminal_os_version<\/code><\/p>\n<\/td><td>\n<p>The PED OS version.<\/p>\n<\/td><\/tr><tr><td>\n<p><code>terminal_hardware_version<\/code><\/p>\n<\/td><td>\n<p>The PED hardware version and only relevant during a transaction.<\/p>\n<\/td><\/tr><tr><td>\n<p><code>batteryPercentage<\/code><\/p>\n<\/td><td>\n<p>The percentage of battery left.<\/p>\n<\/td><\/tr><tr><td>\n<p><code>ready_for_tender<\/code><\/p>\n<\/td><td>\n<p>Indicates whether or not the PED is accepting tenders<\/p>\n<\/td><\/tr><tr><td>\n<p><code>tender_reference<\/code><\/p>\n<\/td><td>\n<p>A reference to the tender provided by the PED.<\/p>\n<\/td><\/tr><\/tbody><\/table>\n<p>The <code>terminal_id<\/code>,\u00a0<code>terminal_serial_number<\/code>,\u00a0<code>terminal_type<\/code>,\u00a0<code>terminal_brand<\/code>,\u00a0<code>terminal_api_version<\/code>,\u00a0<code>terminal_os_version<\/code>,\u00a0and\u00a0<code>terminal_hardware_version<\/code>\u00a0data elements are used to define the exact state of the PED. Use these elements to investigate issues.<\/p>\n<p>These data elements are recorded in the\u00a0<a href=\"https:\/\/ca-test.adyen.com\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">Customer Area<\/a>.\u00a0For each transaction, this PED ID is listed to trace back the origin of a transaction to the PED on which it had been executed. The Customer Area shows all configuration details for each PED, and offers functions to change these details.<\/p>\n<h2 id=\"possible-device_state-enumerations\">Possible device_state enumerations<\/h2>\n<table>\n<thead>\n<tr>\n<th><\/th>\n<th><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>ped_state_offline<\/code><\/td>\n<td>The PED is offline.<\/td>\n<\/tr>\n<tr>\n<td><code>ped_state_online<\/code><\/td>\n<td>The PED is online, but not yet operational.<\/td>\n<\/tr>\n<tr>\n<td><code>ped_state_unregistered<\/code><\/td>\n<td>The PED is not yet registered.<\/td>\n<\/tr>\n<tr>\n<td><code>ped_state_identified<\/code><\/td>\n<td>The PED is identified.<\/td>\n<\/tr>\n<tr>\n<td><code>ped_state_registered<\/code><\/td>\n<td>The PED is registered.<\/td>\n<\/tr>\n<tr>\n<td><code>ped_config_synced<\/code><\/td>\n<td>The PED configuration is synced from the plataforma de pagamentos da Adyen.<\/td>\n<\/tr>\n<tr>\n<td><code>ped_state_operational<\/code><\/td>\n<td>The PED is operational and can start a transaction.<\/td>\n<\/tr>\n<tr>\n<td><code>ped_state_tender<\/code><\/td>\n<td>The PED is operational and has started a transaction.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>","url":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/c-library-integration\/structs\/ped_device_info","articleFields":{"id":"25152519","type":"page","_expandable":{"operations":""},"status":"current","last_edit_on":"21-05-2019 12:13"},"algolia":{"url":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/c-library-integration\/structs\/ped_device_info","title":"ped_device_info","content":"The\u00a0ped_device_info\u00a0struct contains the following data elements:\nValueDescription\ndevice_state\n\nAn enum of the type ped_state that indicates the device state. The ped_state must reach the status ped_state_operational before the transaction is considered complete.Before completing the transaction, the system can return callbacks that show a change in PED state. The terminal_id is recorded in the plataforma de pagamentos da Adyen, both in the transaction view and in the device state.The device state can encounter any of the following statuses, though not always in this order. Cycling through each state is not mandatory. The POS must take action on the ped_state_operational status before performing a transaction. The other states are provided for information only and do not require action from the POS.\n\nterminal_id\n\nThe\u00a0terminal_id\u00a0of the PED.\n\nterminal_serial_number\n\nThe PED serial number.\n\nterminal_type\n\nThe PED terminal type.\n\nterminal_brand\n\nThe PED device brand.\n\nterminal_api_version\n\nThe PED API version.\n\nterminal_os_version\n\nThe PED OS version.\n\nterminal_hardware_version\n\nThe PED hardware version and only relevant during a transaction.\n\nbatteryPercentage\n\nThe percentage of battery left.\n\nready_for_tender\n\nIndicates whether or not the PED is accepting tenders\n\ntender_reference\n\nA reference to the tender provided by the PED.\n\nThe terminal_id,\u00a0terminal_serial_number,\u00a0terminal_type,\u00a0terminal_brand,\u00a0terminal_api_version,\u00a0terminal_os_version,\u00a0and\u00a0terminal_hardware_version\u00a0data elements are used to define the exact state of the PED. Use these elements to investigate issues.\nThese data elements are recorded in the\u00a0Customer Area.\u00a0For each transaction, this PED ID is listed to trace back the origin of a transaction to the PED on which it had been executed. The Customer Area shows all configuration details for each PED, and offers functions to change these details.\nPossible device_state enumerations\n\n\n\n\n\n\n\n\n\nped_state_offline\nThe PED is offline.\n\n\nped_state_online\nThe PED is online, but not yet operational.\n\n\nped_state_unregistered\nThe PED is not yet registered.\n\n\nped_state_identified\nThe PED is identified.\n\n\nped_state_registered\nThe PED is registered.\n\n\nped_config_synced\nThe PED configuration is synced from the plataforma de pagamentos da Adyen.\n\n\nped_state_operational\nThe PED is operational and can start a transaction.\n\n\nped_state_tender\nThe PED is operational and has started a transaction.\n\n\n","type":"page","locale":"pt","boost":14,"hierarchy":{"lvl0":"Home","lvl1":"Terminais","lvl2":"Deprecation of classic libraries","lvl3":"Library integrations","lvl4":"C library integration","lvl5":"Structs","lvl6":"ped_device_info"},"hierarchy_url":{"lvl0":"https:\/\/docs.adyen.com\/pt","lvl1":"https:\/\/docs.adyen.com\/pt\/point-of-sale","lvl2":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation","lvl3":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations","lvl4":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/c-library-integration","lvl5":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/c-library-integration\/structs","lvl6":"\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/c-library-integration\/structs\/ped_device_info"},"levels":7,"category":"In-person payments","category_color":"green","tags":["ped_device_info"]}}
