Type Alias: ArgAddProduct
ts
type ArgAddProduct = object;The product of the print job — supplier, product model and variants (ArgPrintJob.addProducts).
Remarks
What you fill in depends on EditorArguments.dataMode:
Exact—supplierCode(orsupplierGuid) and at least one entry invariants.Partial—supplierCode(orsupplierGuid) andmodel.modelCode,variants, or both. The user selects the missing variants in the editor.Own—modelandvariantsdescribing your own product; the supplier fields are not used. If you leave outaddProductsor itsmodel, the editor asks the user to enter the product data.
When you edit an existing print job (openMode: 'Edit'), only variants is used: variants that are not in the print job yet are added (from the print job's supplier), variants that are already there get the quantity and overrides you send updated (values you leave out keep their saved values).
Properties
| Property | Type | Description |
|---|---|---|
model? | ArgAddProductModel | The product model. Partial: modelCode selects the TronCloud product model whose variants the user can choose from. Own: describes your own product. |
supplierCode? | string | Code of the supplier in TronCloud, for example PFC. Use either this or supplierGuid. |
supplierGuid? | string | GUID of the supplier in TronCloud. Alternative to supplierCode. |
variants | ArgAddProductVariant[] | The product variants. Exact: the variants to design (at least one). Partial: the variants to use or preselect (may be empty when model is set). Own: your own variants. |