vend_item_tvend_session_data_tvend_session_t
Product Class
Thevend_item_t class represents an individual product request within a vending session. This class includes the product code, price, quantity, and unit of measure. The following code block lists all class parameters:
Product Parameters
The table below provides a more detailed description of the parameters.| Parameter | Type (inferred) | Description |
|---|---|---|
code | String or Int | The unique identifier for the product, also known as the MDB code. |
price | Int | Product price, where the real price is calculated as price / (10 ^ decimal places). |
qty | Int | The quantity of the product being vented. |
unit | Int | Unit of measure for the product, with 0 indicating a discrete unit (e.g., a single drink bottle). |
Vending Session Data Class
Thevend_session_data_t class holds detailed information about a vending session, including transaction details and card information. The following code block lists all class parameters:
Class Parameters
The table below provides a more detailed description of the parameters.| Parameter | Type (inferred) | Description |
|---|---|---|
transaction_id | String or Int | Transaction unique identifier. |
choose_product_timeout | Int | Timeout duration for choosing a product. |
card_type | String | Card type used in the transaction. |
card_entry_mode | String | Card entry mode (e.g., swipe, insert). |
card_bin | String or Int | The Bank Identification Number (BIN) of the card. |
card_bin_hash | String | The hashed BIN of the card for security purposes. |
prop_card_uid | String | The UID of the proprietary card. |
vmc_auth_status | String or Int | Authorization status from the VMC. |
com_status | String or Int | Communication status. |
excel_data | String | Additional data in Excel format. |
cc_last_4_digits | String | The last four digits of the credit card. |
Vending Session Handle Class
Thevend_session_t class represents a vending session, encapsulating session-specific data, product lists, and session status. The following code block lists all class parameters:
Java
C#
C
Vending Session Class Parameters
The table below provides a more detailed description of the parameters.| Parameter | Type (inferred) | Description |
|---|---|---|
funds_avail | int | Available funds for the session. |
session_status | String or Enum | The user sets the session’s status, especially in cases of cancellation or failed dispensing. |
vend_session_data_t data | Object | An instance of vend_session_data_t containing detailed session data. |
products_list | ArrayList<vend_item_t> | A list of vend_item_t objects representing the products involved in the session. Note that only a single product is allowed in multi-session mode. |