You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|build(`string` ...values)|Enables several values to be grouped together in a single ordered array corresponding to the format that the API expects.|build(input["values"])|
756
+
|withValue(`string` value, `string` locale, `string` scope)|Creates the expected format for attributes of type single-line text, multi-line text, boolean, date, number, measurement.|withValue(input["variant_name"], "fr_FR", "ecommerce")|
757
+
|withSimpleOption(`string` code, `string` attribute, `string` labels, `string` locale = 'null', `string` scope = 'null')|Creates the expected format for single-option attributes.|build(withSimpleOption("PHY","kind", {"fr_FR": "PHY"}))|
758
+
|withMultipleOption(`string` codes, `string` attribute, `string` labels, `string` locale, `string` scope)|Creates the expected format for multiple-option attributes.|withMultipleOption(input["collection"], "collection", {"fr_FR": "My collection"}, "fr_FR", "ecommerce")|
759
+
|withReferenceEntityValue(`string` value, `string` locale = 'null', `string` channel = 'null')|Creates the expected format for reference entity record attributes of type single-line text, multi-line text, boolean, date, number, measurement.|withReferenceEntityValue(input["label"], "fr_FR")|
760
+
|withReferenceEntitySimpleOption(`string` value, `string` locale = 'null', `string` channel = 'null')|Creates the expected format for simple-select reference entity record attributes.|withReferenceEntitySimpleOption(input["associated_crops_code"], "fr_FR")|
| dateTime(`string` dateTime, `string` format, `string` timezone = 'UTC'): `date`| Creates a date object from a formatted date |
65
65
| formatDate(`date` dateTime, `string` format): `string`| Transforms a date object into a formatted date string |
66
66
| now(`string` timezone): `string`| Returns a new \DateTime object with the given timezone |
67
+
| convertCharCode(`string` text, `string` sourceCharCode, `string` destinationCharCode): `string`| Converts a string from one character encoding to another |
68
+
| asFloat(`string` value): `string`| Converts the value into a float number |
69
+
| asInteger(`string` value): `string`| Converts the value to an integer |
70
+
| asString(`string` value): `string`| Converts the value into a string |
0 commit comments