Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 3.12 KB

File metadata and controls

35 lines (26 loc) · 3.12 KB

T3GenerateLabelsPayload

Properties

Name Type Description Notes
label_template_layout_config T3LabelTemplateLayoutConfig
label_content_layout_config T3LabelContentLayoutConfig
label_content_data_list List[Dict[str, object]] A list of objects, each of which will be filled into one label. Suppose you were to pass the following data, which represents two distinct labels: ```json [ { "package": { "label": "12345" } }, { "package": { "label": "67890" } } ] ``` You could access these values in the content layout template as follows: ``` {{ package.label }} ``` Note: The format of the objects is not validated. Note: Any values with `common` or `images` will be overwritten.
common_content_data object A dictionary of values shared between all labels. Any supplied values will be prefixed with `common.` Suppose you were to pass the following data: ```json { "facilityContactInfo": { "phoneNumber": "123-456-7890" } } ``` You could access this values in the content layout template as follows: ``` {{ facilityContactInfo.phoneNumber }} ``` Note: The format of the object is not validated. [optional]
images object A dictionary of base64 image dadta shared between all labels. Any supplied values will be prefixed with `images.` Suppose you were to pass the following data: ```json { "logo": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMBgKZzmtkAAAAASUVORK5CYII=" } ``` You could access this values in the content layout template as follows: ``` {{ images.logo }} ``` Note: The format of the object is not validated. [optional]
rendering_options T3LabelRenderingOptions [optional]
disposition str Specifies whether the PDF should be opened inline or downloaded as an attachment. [optional] [default to 'inline']

Example

from t3api.models.t3_generate_labels_payload import T3GenerateLabelsPayload

# TODO update the JSON string below
json = "{}"
# create an instance of T3GenerateLabelsPayload from a JSON string
t3_generate_labels_payload_instance = T3GenerateLabelsPayload.from_json(json)
# print the JSON string representation of the object
print(T3GenerateLabelsPayload.to_json())

# convert the object into a dict
t3_generate_labels_payload_dict = t3_generate_labels_payload_instance.to_dict()
# create an instance of T3GenerateLabelsPayload from a dict
t3_generate_labels_payload_from_dict = T3GenerateLabelsPayload.from_dict(t3_generate_labels_payload_dict)

[Back to Model list] [Back to API list] [Back to README]