RestPostData GitHub

📊 Overview: 4 Properties 1 Constructor 5 Functions

📝 Description

Creates REST post data handler from object containing JSON strings and staff ID

🕐 Last updated: 2025-12-10T11:45:24.252Z


📑 Table of Contents


Properties

Property Type Default Description
RestPostJson Text - JSON string from REST POST request
ScannerData Text - Raw scanner input data
PromptResult Text - Result from user prompt dialog
StaffID Integer - ID of staff member associated with request

Constructor

constructor

[🏗️ constructor]

Class constructor($RestPostDataObject : Object)

Creates REST post data handler from object containing JSON strings and staff ID

Parameters:

Name Type Optional Description
$RestPostDataObject Object - -

Functions

Regular Functions

getStaffEntity

Function getStaffEntity -> cs.StaffEntity

Returns the staff entity associated with this request

Returns: cs.StaffEntity


getScannerObject

Function getScannerObject -> Object

Parses and returns scanner data as object, returns Null on parse error

Returns: Object


getScannerText

Function getScannerText -> Text

Returns the raw scanner data text

Returns: Text


getRestPostObject

Function getRestPostObject -> Object

Parses and returns REST POST JSON as object, returns Null on parse error

Returns: Object


toObject

Function toObject -> Object

Converts this object to a plain object suitable for serialization

Returns: Object



Generated from RestPostData.4dm