squareconnect.models.catalog_object
The wrapper object for object types in the Catalog data model. The type of a particular CatalogObject is determined by the value of type and only the corresponding data field may be set. - if type = ITEM, only item_data will be populated and it will contain a valid CatalogItem object. - if type = ITEM_VARIATION, only item_variation_data will be populated and it will contain a valid CatalogItemVariation object. - if type = MODIFIER, only modifier_data will be populated and it will contain a valid CatalogModifier object. - if type = MODIFIER_LIST, only modifier_list_data will be populated and it will contain a valid CatalogModifierList object. - if type = CATEGORY, only category_data will be populated and it will contain a valid CatalogCategory object. - if type = DISCOUNT, only discount_data will be populated and it will contain a valid CatalogDiscount object. - if type = TAX, only tax_data will be populated and it will contain a valid CatalogTax object. For a more detailed discussion of the Catalog data model, please see the Catalog Overview.
| Name | Type | Notes |
|---|---|---|
| type | str | |
| id | str | |
| updated_at | str | [optional] |
| version | int | [optional] |
| is_deleted | bool | [optional] |
| catalog_v1_ids | list[CatalogV1Id] | [optional] |
| present_at_all_locations | bool | [optional] |
| present_at_location_ids | list[str] | [optional] |
| absent_at_location_ids | list[str] | [optional] |
| item_data | CatalogItem | [optional] |
| category_data | CatalogCategory | [optional] |
| item_variation_data | CatalogItemVariation | [optional] |
| tax_data | CatalogTax | [optional] |
| discount_data | CatalogDiscount | [optional] |
| modifier_list_data | CatalogModifierList | [optional] |
| modifier_data | CatalogModifier | [optional] |