@plentymarkets/shop-api / barcodeGetters
Variable: barcodeGetters ​
constbarcodeGetters:object
Defined in: getters/barcodeGetters.ts:66
Type Declaration ​
getCode ​
getCode: (
barcode) =>string
Returns the barcode value (the actual code string).
Parameters ​
barcode ​
The barcode object.
Returns ​
string
The code string, or an empty string if not set.
getCreatedAt ​
getCreatedAt: (
barcode) =>string
Returns the creation timestamp of a barcode as an ISO date string.
Parameters ​
barcode ​
The barcode object.
Returns ​
string
The createdAt date string, or an empty string if not set.
getId ​
getId: (
barcode) =>number
Returns the numeric ID of a barcode.
Parameters ​
barcode ​
The barcode object.
Returns ​
number
The barcode ID, or 0 if not set.
getName ​
getName: (
barcode) =>string
Returns the display name of a barcode.
Parameters ​
barcode ​
The barcode object.
Returns ​
string
The barcode name string, or an empty string if not set.
getReferrers ​
getReferrers: (
barcode) =>number[]
Returns the list of referrer IDs on which the barcode is visible.
Parameters ​
barcode ​
The barcode object.
Returns ​
number[]
An array of referrer ID numbers, or an empty array if none are set.
getType ​
getType: (
barcode) =>string
Returns the type of a barcode (e.g. "EAN_13", "QR", "CODE_128").
Parameters ​
barcode ​
The barcode object.
Returns ​
string
The barcode type string, or an empty string if not set.
getUpdatedAt ​
getUpdatedAt: (
barcode) =>string
Returns the last-updated timestamp of a barcode as an ISO date string.
Parameters ​
barcode ​
The barcode object.
Returns ​
string
The updatedAt date string, or an empty string if not set.