inttegro.product
Models, requests, and enums for the Inttegro product resource.
The primary returned object is inttegro.product.Product. Related request types, nested response shapes, and string-backed enums are exported from this singular namespace. Public members load lazily, so importing one resource does not eagerly import the entire SDK.
1"""Models, requests, and enums for the Inttegro product resource. 2 3The primary returned object is ``inttegro.product.Product``. Related request types, nested response shapes, and string-backed enums are exported from this singular namespace. Public members load lazily, so importing one resource does not eagerly import the entire SDK.""" 4 5from importlib import import_module 6from typing import TYPE_CHECKING, Any 7 8if TYPE_CHECKING: 9 from .action_request import ActionRequest as ActionRequest 10 from .add_price_request import AddPriceRequest as AddPriceRequest 11 from .add_price_response import AddPriceResponse as AddPriceResponse 12 from .attribute import Attribute as Attribute 13 from .attribute_input import AttributeInput as AttributeInput 14 from .catalog_with_price_data_input import CatalogWithPriceDataInput as CatalogWithPriceDataInput 15 from .catalog_with_price_reference_input import CatalogWithPriceReferenceInput as CatalogWithPriceReferenceInput 16 from .catalog_with_customer_selected_price_input import CatalogWithCustomerSelectedPriceInput as CatalogWithCustomerSelectedPriceInput 17 from .customer_selected_price_input import CustomerSelectedPriceInput as CustomerSelectedPriceInput 18 from .create_request import CreateRequest as CreateRequest 19 from .delivery import Delivery as Delivery 20 from .details_input import DetailsInput as DetailsInput 21 from .dimensions import Dimensions as Dimensions 22 from .dimensions_custom import DimensionsCustom as DimensionsCustom 23 from .dimensions_digital import DimensionsDigital as DimensionsDigital 24 from .dimensions_input import DimensionsInput as DimensionsInput 25 from .dimensions_input_custom import DimensionsInputCustom as DimensionsInputCustom 26 from .dimensions_input_digital import DimensionsInputDigital as DimensionsInputDigital 27 from .dimensions_input_physical import DimensionsInputPhysical as DimensionsInputPhysical 28 from .dimensions_physical import DimensionsPhysical as DimensionsPhysical 29 from .download import Download as Download 30 from .inline_details_input import InlineDetailsInput as InlineDetailsInput 31 from .line_item_input import LineItemInput as LineItemInput 32 from .lookup_request import LookupRequest as LookupRequest 33 from .media import Media as Media 34 from .media_input import MediaInput as MediaInput 35 from .page import Page as Page 36 from .page_request import PageRequest as PageRequest 37 from .page_response import PageResponse as PageResponse 38 from .price_summary import PriceSummary as PriceSummary 39 from .product import Product as Product 40 from .render import Render as Render 41 from .response import Response as Response 42 from .service import Service as Service 43 from .shipment import Shipment as Shipment 44 from .shipment_input import ShipmentInput as ShipmentInput 45 from .shipment_input_type import ShipmentInputType as ShipmentInputType 46 from .shipment_type import ShipmentType as ShipmentType 47 from .stream import Stream as Stream 48 from .type import Type as Type 49 from .update_request import UpdateRequest as UpdateRequest 50 from .update_response import UpdateResponse as UpdateResponse 51 from .updated import Updated as Updated 52 53 54_EXPORTS: dict[str, tuple[str, str]] = { 55 "ActionRequest": ("inttegro.product.action_request", "ActionRequest"), 56 "AddPriceRequest": ("inttegro.product.add_price_request", "AddPriceRequest"), 57 "AddPriceResponse": ("inttegro.product.add_price_response", "AddPriceResponse"), 58 "Attribute": ("inttegro.product.attribute", "Attribute"), 59 "AttributeInput": ("inttegro.product.attribute_input", "AttributeInput"), 60 "CatalogWithPriceDataInput": ("inttegro.product.catalog_with_price_data_input", "CatalogWithPriceDataInput"), 61 "CatalogWithPriceReferenceInput": ("inttegro.product.catalog_with_price_reference_input", "CatalogWithPriceReferenceInput"), 62 "CatalogWithCustomerSelectedPriceInput": ("inttegro.product.catalog_with_customer_selected_price_input", "CatalogWithCustomerSelectedPriceInput"), 63 "CustomerSelectedPriceInput": ("inttegro.product.customer_selected_price_input", "CustomerSelectedPriceInput"), 64 "CreateRequest": ("inttegro.product.create_request", "CreateRequest"), 65 "Delivery": ("inttegro.product.delivery", "Delivery"), 66 "DetailsInput": ("inttegro.product.details_input", "DetailsInput"), 67 "Dimensions": ("inttegro.product.dimensions", "Dimensions"), 68 "DimensionsCustom": ("inttegro.product.dimensions_custom", "DimensionsCustom"), 69 "DimensionsDigital": ("inttegro.product.dimensions_digital", "DimensionsDigital"), 70 "DimensionsInput": ("inttegro.product.dimensions_input", "DimensionsInput"), 71 "DimensionsInputCustom": ("inttegro.product.dimensions_input_custom", "DimensionsInputCustom"), 72 "DimensionsInputDigital": ("inttegro.product.dimensions_input_digital", "DimensionsInputDigital"), 73 "DimensionsInputPhysical": ("inttegro.product.dimensions_input_physical", "DimensionsInputPhysical"), 74 "DimensionsPhysical": ("inttegro.product.dimensions_physical", "DimensionsPhysical"), 75 "Download": ("inttegro.product.download", "Download"), 76 "InlineDetailsInput": ("inttegro.product.inline_details_input", "InlineDetailsInput"), 77 "LineItemInput": ("inttegro.product.line_item_input", "LineItemInput"), 78 "LookupRequest": ("inttegro.product.lookup_request", "LookupRequest"), 79 "Media": ("inttegro.product.media", "Media"), 80 "MediaInput": ("inttegro.product.media_input", "MediaInput"), 81 "Page": ("inttegro.product.page", "Page"), 82 "PageRequest": ("inttegro.product.page_request", "PageRequest"), 83 "PageResponse": ("inttegro.product.page_response", "PageResponse"), 84 "PriceSummary": ("inttegro.product.price_summary", "PriceSummary"), 85 "Product": ("inttegro.product.product", "Product"), 86 "Render": ("inttegro.product.render", "Render"), 87 "Response": ("inttegro.product.response", "Response"), 88 "Service": ("inttegro.product.service", "Service"), 89 "Shipment": ("inttegro.product.shipment", "Shipment"), 90 "ShipmentInput": ("inttegro.product.shipment_input", "ShipmentInput"), 91 "ShipmentInputType": ("inttegro.product.shipment_input_type", "ShipmentInputType"), 92 "ShipmentType": ("inttegro.product.shipment_type", "ShipmentType"), 93 "Stream": ("inttegro.product.stream", "Stream"), 94 "Type": ("inttegro.product.type", "Type"), 95 "UpdateRequest": ("inttegro.product.update_request", "UpdateRequest"), 96 "UpdateResponse": ("inttegro.product.update_response", "UpdateResponse"), 97 "Updated": ("inttegro.product.updated", "Updated"), 98} 99 100__all__ = [ 101 "ActionRequest", 102 "AddPriceRequest", 103 "AddPriceResponse", 104 "Attribute", 105 "AttributeInput", 106 "CatalogWithPriceDataInput", 107 "CatalogWithPriceReferenceInput", 108 "CatalogWithCustomerSelectedPriceInput", 109 "CustomerSelectedPriceInput", 110 "CreateRequest", 111 "Delivery", 112 "DetailsInput", 113 "Dimensions", 114 "DimensionsCustom", 115 "DimensionsDigital", 116 "DimensionsInput", 117 "DimensionsInputCustom", 118 "DimensionsInputDigital", 119 "DimensionsInputPhysical", 120 "DimensionsPhysical", 121 "Download", 122 "InlineDetailsInput", 123 "LineItemInput", 124 "LookupRequest", 125 "Media", 126 "MediaInput", 127 "Page", 128 "PageRequest", 129 "PageResponse", 130 "PriceSummary", 131 "Product", 132 "Render", 133 "Response", 134 "Service", 135 "Shipment", 136 "ShipmentInput", 137 "ShipmentInputType", 138 "ShipmentType", 139 "Stream", 140 "Type", 141 "UpdateRequest", 142 "UpdateResponse", 143 "Updated", 144] 145 146 147def __getattr__(name: str) -> Any: 148 """Load a public resource type on first access.""" 149 try: 150 module_name, attribute_name = _EXPORTS[name] 151 except KeyError: 152 raise AttributeError(f"module {__name__!r} has no attribute {name!r}") from None 153 value = getattr(import_module(module_name), attribute_name) 154 globals()[name] = value 155 return value
12@dataclass(frozen=True, slots=True, kw_only=True) 13class ActionRequest(ApiRequest): 14 """Parameters accepted by the action request operation. 15 16 This is an immutable, keyword-only request object. ``to_dict()`` uses 17 the documented wire names, omits fields left as ``UNSET``, serializes 18 string-backed enums by value, and requires timezone-aware datetimes. 19 20 API contract schema: ``ProductActionRequest``. 21 """ 22 product_id: str 23 """Product ID to perform action on. Required. Python type: ``str``; wire name: ``product_id``; JSON type: string"""
Parameters accepted by the action request operation.
This is an immutable, keyword-only request object. to_dict() uses
the documented wire names, omits fields left as UNSET, serializes
string-backed enums by value, and requires timezone-aware datetimes.
API contract schema: ProductActionRequest.
Product ID to perform action on. Required. Python type: str; wire name: product_id; JSON type: string
15@dataclass(frozen=True, slots=True, kw_only=True) 16class AddPriceRequest(ApiRequest): 17 """Parameters accepted by the add price request operation. 18 19 This is an immutable, keyword-only request object. ``to_dict()`` uses 20 the documented wire names, omits fields left as ``UNSET``, serializes 21 string-backed enums by value, and requires timezone-aware datetimes. 22 23 API contract schema: ``AddProductPriceRequest``. 24 """ 25 label: str | UnsetType = field(default=UNSET) 26 """Optional short label for the new price. Optional. Python type: ``str``; wire name: ``label``; JSON type: string. Constraints: maximum length 100""" 27 about: str | UnsetType = field(default=UNSET) 28 """Optional internal description for the new price. Optional. Python type: ``str``; wire name: ``about``; JSON type: string. Constraints: maximum length 500""" 29 product_id: str 30 """Product ID to attach the new price to. Required. Python type: ``str``; wire name: ``product_id``; JSON type: string""" 31 type: PriceType | UnsetType = field(default=UNSET) 32 """Price definition discriminator. Required by the tagged definition. Python type: ``PriceType``; wire name: ``type``; JSON type: string (PriceType)""" 33 fixed_amount: AmountParams | UnsetType = field(default=UNSET) 34 """Fixed price amount. Required when ``type`` is ``fixed_amount``. Python type: ``AmountParams``; wire name: ``fixed_amount``; JSON type: object (AmountParams)""" 35 customer_selected_amount: CustomerSelectedAmountParams | UnsetType = field(default=UNSET) 36 """Customer-selected price policy. Required when ``type`` is ``customer_selected_amount``. Python type: ``CustomerSelectedAmountParams``; wire name: ``customer_selected_amount``; JSON type: object (CustomerSelectedAmountParams)""" 37 38 def __post_init__(self) -> None: 39 fixed = ( 40 self.type == PriceType.FIXED_AMOUNT 41 and self.fixed_amount is not UNSET 42 and self.customer_selected_amount is UNSET 43 ) 44 selected = ( 45 self.type == PriceType.CUSTOMER_SELECTED_AMOUNT 46 and self.customer_selected_amount is not UNSET 47 and self.fixed_amount is UNSET 48 ) 49 if sum((fixed, selected)) != 1: 50 raise ValueError("provide exactly one valid product price definition")
Parameters accepted by the add price request operation.
This is an immutable, keyword-only request object. to_dict() uses
the documented wire names, omits fields left as UNSET, serializes
string-backed enums by value, and requires timezone-aware datetimes.
API contract schema: AddProductPriceRequest.
Optional short label for the new price. Optional. Python type: str; wire name: label; JSON type: string. Constraints: maximum length 100
Optional internal description for the new price. Optional. Python type: str; wire name: about; JSON type: string. Constraints: maximum length 500
Product ID to attach the new price to. Required. Python type: str; wire name: product_id; JSON type: string
Price definition discriminator. Required by the tagged definition. Python type: PriceType; wire name: type; JSON type: string (PriceType)
Fixed price amount. Required when type is fixed_amount. Python type: AmountParams; wire name: fixed_amount; JSON type: object (AmountParams)
Customer-selected price policy. Required when type is customer_selected_amount. Python type: CustomerSelectedAmountParams; wire name: customer_selected_amount; JSON type: object (CustomerSelectedAmountParams)
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 13class AddPriceResponse(ApiModel): 14 """Typed response returned by the add price operation. 15 16 Instances are immutable API responses. ``from_dict()`` decodes nested 17 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 18 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 19 Fields not returned by the API remain absent and can still be queried 20 through mapping-style access. 21 22 API contract schema: ``AddProductPriceResponse``. 23 """ 24 price: CatalogPrice | None = field(init=False) 25 """The price associated with this add price response. Optional; nullable. Python type: ``CatalogPrice | None``; wire name: ``price``; JSON type: object (CatalogPrice)""" 26 error: Error | None = field(init=False) 27 """Standard error response structure returned by all API endpoints. Provides machine-readable codes, human-readable messages, and actionable guidance for resolution. Optional; nullable. Python type: ``Error | None``; wire name: ``error``; JSON type: object (Error)"""
Typed response returned by the add price operation.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: AddProductPriceResponse.
The price associated with this add price response. Optional; nullable. Python type: CatalogPrice | None; wire name: price; JSON type: object (CatalogPrice)
Standard error response structure returned by all API endpoints. Provides machine-readable codes, human-readable messages, and actionable guidance for resolution. Optional; nullable. Python type: Error | None; wire name: error; JSON type: object (Error)
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 13class Attribute(ApiModel): 14 """Typed attribute data in the product resource namespace. 15 16 Instances are immutable API responses. ``from_dict()`` decodes nested 17 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 18 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 19 Fields not returned by the API remain absent and can still be queried 20 through mapping-style access. 21 22 API contract schema: ``ProductAttribute``. 23 """ 24 name: str = field(init=False) 25 """Human-readable name of the attribute. Required. Python type: ``str``; wire name: ``name``; JSON type: string. Constraints: maximum length 100""" 26 value: str = field(init=False) 27 """The value associated with this attribute. Required. Python type: ``str``; wire name: ``value``; JSON type: string. Constraints: maximum length 500"""
Typed attribute data in the product resource namespace.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: ProductAttribute.
Human-readable name of the attribute. Required. Python type: str; wire name: name; JSON type: string. Constraints: maximum length 100
The value associated with this attribute. Required. Python type: str; wire name: value; JSON type: string. Constraints: maximum length 500
12@dataclass(frozen=True, slots=True, kw_only=True) 13class AttributeInput(ApiRequest): 14 """Parameters accepted by the attribute input operation. 15 16 This is an immutable, keyword-only request object. ``to_dict()`` uses 17 the documented wire names, omits fields left as ``UNSET``, serializes 18 string-backed enums by value, and requires timezone-aware datetimes. 19 20 API contract schema: ``ProductAttributeInput``. 21 """ 22 name: str 23 """Human-readable name of the attribute input. Required. Python type: ``str``; wire name: ``name``; JSON type: string. Constraints: maximum length 100""" 24 value: str 25 """The value associated with this attribute input. Required. Python type: ``str``; wire name: ``value``; JSON type: string. Constraints: maximum length 500"""
Parameters accepted by the attribute input operation.
This is an immutable, keyword-only request object. to_dict() uses
the documented wire names, omits fields left as UNSET, serializes
string-backed enums by value, and requires timezone-aware datetimes.
API contract schema: ProductAttributeInput.
Human-readable name of the attribute input. Required. Python type: str; wire name: name; JSON type: string. Constraints: maximum length 100
The value associated with this attribute input. Required. Python type: str; wire name: value; JSON type: string. Constraints: maximum length 500
13@dataclass(frozen=True, slots=True, kw_only=True) 14class CatalogWithPriceDataInput(ApiRequest): 15 """Parameters accepted by the catalog with price data input operation. 16 17 This is an immutable, keyword-only request object. ``to_dict()`` uses 18 the documented wire names, omits fields left as ``UNSET``, serializes 19 string-backed enums by value, and requires timezone-aware datetimes. 20 21 API contract schema: ``CatalogProductWithPriceDataInput``. 22 """ 23 price: PriceParams 24 """An inline price supplied in a request. Required. Python type: ``PriceParams``; wire name: ``price``; JSON type: object (PriceParams)""" 25 product_id: str 26 """Existing catalog product ID to snapshot onto the order line item. Required. Python type: ``str``; wire name: ``product_id``; JSON type: string""" 27 quantity: int 28 """How many units of the catalog product the customer is purchasing. Required. Python type: ``int``; wire name: ``quantity``; JSON type: integer. Constraints: minimum 1"""
Parameters accepted by the catalog with price data input operation.
This is an immutable, keyword-only request object. to_dict() uses
the documented wire names, omits fields left as UNSET, serializes
string-backed enums by value, and requires timezone-aware datetimes.
API contract schema: CatalogProductWithPriceDataInput.
An inline price supplied in a request. Required. Python type: PriceParams; wire name: price; JSON type: object (PriceParams)
Existing catalog product ID to snapshot onto the order line item. Required. Python type: str; wire name: product_id; JSON type: string
How many units of the catalog product the customer is purchasing. Required. Python type: int; wire name: quantity; JSON type: integer. Constraints: minimum 1
12@dataclass(frozen=True, slots=True, kw_only=True) 13class CatalogWithPriceReferenceInput(ApiRequest): 14 """Parameters accepted by the catalog with price reference input operation. 15 16 This is an immutable, keyword-only request object. ``to_dict()`` uses 17 the documented wire names, omits fields left as ``UNSET``, serializes 18 string-backed enums by value, and requires timezone-aware datetimes. 19 20 API contract schema: ``CatalogProductWithPriceReferenceInput``. 21 """ 22 price_id: str 23 """Existing product price to snapshot onto the order line item. It must belong to the same application and product. Required. Python type: ``str``; wire name: ``price_id``; JSON type: string""" 24 product_id: str 25 """Existing catalog product ID to snapshot onto the order line item. Required. Python type: ``str``; wire name: ``product_id``; JSON type: string""" 26 quantity: int 27 """How many units of the catalog product the customer is purchasing. Required. Python type: ``int``; wire name: ``quantity``; JSON type: integer. Constraints: minimum 1"""
Parameters accepted by the catalog with price reference input operation.
This is an immutable, keyword-only request object. to_dict() uses
the documented wire names, omits fields left as UNSET, serializes
string-backed enums by value, and requires timezone-aware datetimes.
API contract schema: CatalogProductWithPriceReferenceInput.
Existing product price to snapshot onto the order line item. It must belong to the same application and product. Required. Python type: str; wire name: price_id; JSON type: string
Existing catalog product ID to snapshot onto the order line item. Required. Python type: str; wire name: product_id; JSON type: string
How many units of the catalog product the customer is purchasing. Required. Python type: int; wire name: quantity; JSON type: integer. Constraints: minimum 1
12@dataclass(frozen=True, slots=True, kw_only=True) 13class CatalogWithCustomerSelectedPriceInput(ApiRequest): 14 """A catalog product using a selected amount from one saved price.""" 15 16 product_id: str 17 customer_selected_price: CustomerSelectedPriceInput 18 quantity: int
A catalog product using a selected amount from one saved price.
12@dataclass(frozen=True, slots=True, kw_only=True) 13class CustomerSelectedPriceInput(ApiRequest): 14 """Couples a saved price policy with the concrete selected amount.""" 15 16 price_id: str 17 selected_amount: AmountParams
Couples a saved price policy with the concrete selected amount.
13@dataclass(frozen=True, slots=True, kw_only=True) 14class CreateRequest(ApiRequest): 15 """Parameters accepted by the create request operation. 16 17 This is an immutable, keyword-only request object. ``to_dict()`` uses 18 the documented wire names, omits fields left as ``UNSET``, serializes 19 string-backed enums by value, and requires timezone-aware datetimes. 20 21 API contract schema: ``CreateProductRequest``. 22 """ 23 reference: str | UnsetType = field(default=UNSET) 24 """External reference or SKU from your system. Optional. Python type: ``str``; wire name: ``reference``; JSON type: string. Constraints: minimum length 1; maximum length 100""" 25 description: str | UnsetType = field(default=UNSET) 26 """Short product description or tagline. Optional. Python type: ``str``; wire name: ``description``; JSON type: string. Constraints: maximum length 200""" 27 about: str | UnsetType = field(default=UNSET) 28 """Full product description with details and features. Optional. Python type: ``str``; wire name: ``about``; JSON type: string. Constraints: maximum length 5000""" 29 tax_code: str | UnsetType = field(default=UNSET) 30 """Tax classification code for tax calculations. Optional. Python type: ``str``; wire name: ``tax_code``; JSON type: string. Constraints: maximum length 50""" 31 category: str | UnsetType = field(default=UNSET) 32 """Product category for organization. Optional. Python type: ``str``; wire name: ``category``; JSON type: string. Constraints: maximum length 100""" 33 shipment: ProductShipmentInput | UnsetType = field(default=UNSET) 34 """The shipment associated with this create request. Optional. Python type: ``ProductShipmentInput``; wire name: ``shipment``; JSON type: object (ProductShipmentInput)""" 35 dimensions: ProductDimensionsInput | UnsetType = field(default=UNSET) 36 """At most one of `physical`, `digital`, or `custom`. Optional. Python type: ``ProductDimensionsInput``; wire name: ``dimensions``; JSON type: object (ProductDimensions)""" 37 unit_dimension: str | UnsetType = field(default=UNSET) 38 """The unit dimension associated with this create request. Optional. Python type: ``str``; wire name: ``unit_dimension``; JSON type: string. Constraints: maximum length 20""" 39 media: ProductMediaInput | UnsetType = field(default=UNSET) 40 """The media associated with this create request. Optional. Python type: ``ProductMediaInput``; wire name: ``media``; JSON type: object (ProductMedia)""" 41 attributes: list[ProductAttributeInput] | UnsetType = field(default=UNSET) 42 """Product attributes (size, color, material, etc.). Optional. Python type: ``list[ProductAttributeInput]``; wire name: ``attributes``; JSON type: array of object (ProductAttribute) values""" 43 publish: bool | UnsetType = field(default=UNSET) 44 """Whether to publish the product immediately. Optional. Python type: ``bool``; wire name: ``publish``; JSON type: boolean""" 45 custom_data: CustomData | UnsetType = field(default=UNSET) 46 """Merchant-defined string values attached to a resource. SDKs expose this as a semantic collection rather than a raw map. Optional. Python type: ``CustomData``; wire name: ``custom_data``; JSON type: object (CustomData)""" 47 type: Literal['physical', 'digital', 'service', 'voucher', 'custom', 'cause', ProductType.PHYSICAL, ProductType.DIGITAL, ProductType.SERVICE, ProductType.VOUCHER, ProductType.CUSTOM, ProductType.CAUSE] 48 """Product type - determines fulfillment requirements. Required. Python type: ``Literal['physical', 'digital', 'service', 'voucher', 'custom', 'cause', ProductType.PHYSICAL, ProductType.DIGITAL, ProductType.SERVICE, ProductType.VOUCHER, ProductType.CUSTOM, ProductType.CAUSE]``; wire name: ``type``; JSON type: string. Constraints: allowed values ``physical``, ``digital``, ``service``, ``voucher``, ``custom``, ``cause``""" 49 name: str 50 """Customer-facing product name. Required. Python type: ``str``; wire name: ``name``; JSON type: string. Constraints: minimum length 1; maximum length 100"""
Parameters accepted by the create request operation.
This is an immutable, keyword-only request object. to_dict() uses
the documented wire names, omits fields left as UNSET, serializes
string-backed enums by value, and requires timezone-aware datetimes.
API contract schema: CreateProductRequest.
External reference or SKU from your system. Optional. Python type: str; wire name: reference; JSON type: string. Constraints: minimum length 1; maximum length 100
Short product description or tagline. Optional. Python type: str; wire name: description; JSON type: string. Constraints: maximum length 200
Full product description with details and features. Optional. Python type: str; wire name: about; JSON type: string. Constraints: maximum length 5000
Tax classification code for tax calculations. Optional. Python type: str; wire name: tax_code; JSON type: string. Constraints: maximum length 50
Product category for organization. Optional. Python type: str; wire name: category; JSON type: string. Constraints: maximum length 100
The shipment associated with this create request. Optional. Python type: ProductShipmentInput; wire name: shipment; JSON type: object (ProductShipmentInput)
At most one of physical, digital, or custom. Optional. Python type: ProductDimensionsInput; wire name: dimensions; JSON type: object (ProductDimensions)
The unit dimension associated with this create request. Optional. Python type: str; wire name: unit_dimension; JSON type: string. Constraints: maximum length 20
The media associated with this create request. Optional. Python type: ProductMediaInput; wire name: media; JSON type: object (ProductMedia)
Product attributes (size, color, material, etc.). Optional. Python type: list[ProductAttributeInput]; wire name: attributes; JSON type: array of object (ProductAttribute) values
Whether to publish the product immediately. Optional. Python type: bool; wire name: publish; JSON type: boolean
Merchant-defined string values attached to a resource. SDKs expose this as a semantic collection rather than a raw map. Optional. Python type: CustomData; wire name: custom_data; JSON type: object (CustomData)
Product type - determines fulfillment requirements. Required. Python type: Literal['physical', 'digital', 'service', 'voucher', 'custom', 'cause', ProductType.PHYSICAL, ProductType.DIGITAL, ProductType.SERVICE, ProductType.VOUCHER, ProductType.CUSTOM, ProductType.CAUSE]; wire name: type; JSON type: string. Constraints: allowed values physical, digital, service, voucher, custom, cause
Customer-facing product name. Required. Python type: str; wire name: name; JSON type: string. Constraints: minimum length 1; maximum length 100
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 13class Delivery(ApiModel): 14 """Delivery fulfillment marker. 15 16 Instances are immutable API responses. ``from_dict()`` decodes nested 17 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 18 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 19 Fields not returned by the API remain absent and can still be queried 20 through mapping-style access. 21 22 API contract schema: ``ProductDelivery``. 23 """ 24 pass
Delivery fulfillment marker.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: ProductDelivery.
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 13class Dimensions(ApiModel): 14 """At most one of `physical`, `digital`, or `custom`. 15 16 Instances are immutable API responses. ``from_dict()`` decodes nested 17 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 18 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 19 Fields not returned by the API remain absent and can still be queried 20 through mapping-style access. 21 22 API contract schema: ``ProductDimensions``. 23 """ 24 physical: ProductDimensionsPhysical | None = field(init=False) 25 """The physical associated with this dimension. Optional; nullable. Python type: ``ProductDimensionsPhysical | None``; wire name: ``physical``; JSON type: object""" 26 digital: ProductDimensionsDigital | None = field(init=False) 27 """The digital associated with this dimension. Optional; nullable. Python type: ``ProductDimensionsDigital | None``; wire name: ``digital``; JSON type: object""" 28 custom: ProductDimensionsCustom | None = field(init=False) 29 """The custom associated with this dimension. Optional; nullable. Python type: ``ProductDimensionsCustom | None``; wire name: ``custom``; JSON type: object"""
At most one of physical, digital, or custom.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: ProductDimensions.
The physical associated with this dimension. Optional; nullable. Python type: ProductDimensionsPhysical | None; wire name: physical; JSON type: object
The digital associated with this dimension. Optional; nullable. Python type: ProductDimensionsDigital | None; wire name: digital; JSON type: object
The custom associated with this dimension. Optional; nullable. Python type: ProductDimensionsCustom | None; wire name: custom; JSON type: object
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 13class DimensionsCustom(ApiModel): 14 """Typed dimensions custom data in the product resource namespace. 15 16 Instances are immutable API responses. ``from_dict()`` decodes nested 17 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 18 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 19 Fields not returned by the API remain absent and can still be queried 20 through mapping-style access. 21 22 API contract schema: ``ProductDimensionsCustom``. 23 """ 24 size_unit: str | None = field(init=False) 25 """The size unit associated with this dimensions custom. Optional; nullable. Python type: ``str | None``; wire name: ``size_unit``; JSON type: string""" 26 size: float | None = field(init=False) 27 """Numeric size used by this operation. Optional; nullable. Python type: ``float | None``; wire name: ``size``; JSON type: number. Constraints: minimum 0""" 28 details: dict[str, str] | None = field(init=False) 29 """Named string measurements or descriptors for a product dimension. Optional; nullable. Python type: ``dict[str, str] | None``; wire name: ``details``; JSON type: object (ProductDimensionDetails)"""
Typed dimensions custom data in the product resource namespace.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: ProductDimensionsCustom.
The size unit associated with this dimensions custom. Optional; nullable. Python type: str | None; wire name: size_unit; JSON type: string
Numeric size used by this operation. Optional; nullable. Python type: float | None; wire name: size; JSON type: number. Constraints: minimum 0
Named string measurements or descriptors for a product dimension. Optional; nullable. Python type: dict[str, str] | None; wire name: details; JSON type: object (ProductDimensionDetails)
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 13class DimensionsDigital(ApiModel): 14 """Typed dimensions digital data in the product resource namespace. 15 16 Instances are immutable API responses. ``from_dict()`` decodes nested 17 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 18 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 19 Fields not returned by the API remain absent and can still be queried 20 through mapping-style access. 21 22 API contract schema: ``ProductDimensionsDigital``. 23 """ 24 bytes: float | None = field(init=False) 25 """The bytes associated with this dimensions digital. Optional; nullable. Python type: ``float | None``; wire name: ``bytes``; JSON type: number. Constraints: minimum 0""" 26 size_unit: str | None = field(init=False) 27 """The size unit associated with this dimensions digital. Optional; nullable. Python type: ``str | None``; wire name: ``size_unit``; JSON type: string""" 28 size: float | None = field(init=False) 29 """Numeric size used by this operation. Optional; nullable. Python type: ``float | None``; wire name: ``size``; JSON type: number. Constraints: minimum 0"""
Typed dimensions digital data in the product resource namespace.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: ProductDimensionsDigital.
The bytes associated with this dimensions digital. Optional; nullable. Python type: float | None; wire name: bytes; JSON type: number. Constraints: minimum 0
The size unit associated with this dimensions digital. Optional; nullable. Python type: str | None; wire name: size_unit; JSON type: string
Numeric size used by this operation. Optional; nullable. Python type: float | None; wire name: size; JSON type: number. Constraints: minimum 0
12@dataclass(frozen=True, slots=True, kw_only=True) 13class DimensionsInput(ApiRequest): 14 """At most one of `physical`, `digital`, or `custom`. 15 16 This is an immutable, keyword-only request object. ``to_dict()`` uses 17 the documented wire names, omits fields left as ``UNSET``, serializes 18 string-backed enums by value, and requires timezone-aware datetimes. 19 20 API contract schema: ``ProductDimensionsInput``. 21 """ 22 physical: ProductDimensionsInputPhysical | UnsetType = field(default=UNSET) 23 """The physical associated with this dimensions input. Optional. Python type: ``ProductDimensionsInputPhysical``; wire name: ``physical``; JSON type: object""" 24 digital: ProductDimensionsInputDigital | UnsetType = field(default=UNSET) 25 """The digital associated with this dimensions input. Optional. Python type: ``ProductDimensionsInputDigital``; wire name: ``digital``; JSON type: object""" 26 custom: ProductDimensionsInputCustom | UnsetType = field(default=UNSET) 27 """The custom associated with this dimensions input. Optional. Python type: ``ProductDimensionsInputCustom``; wire name: ``custom``; JSON type: object"""
At most one of physical, digital, or custom.
This is an immutable, keyword-only request object. to_dict() uses
the documented wire names, omits fields left as UNSET, serializes
string-backed enums by value, and requires timezone-aware datetimes.
API contract schema: ProductDimensionsInput.
The physical associated with this dimensions input. Optional. Python type: ProductDimensionsInputPhysical; wire name: physical; JSON type: object
The digital associated with this dimensions input. Optional. Python type: ProductDimensionsInputDigital; wire name: digital; JSON type: object
The custom associated with this dimensions input. Optional. Python type: ProductDimensionsInputCustom; wire name: custom; JSON type: object
12@dataclass(frozen=True, slots=True, kw_only=True) 13class DimensionsInputCustom(ApiRequest): 14 """Parameters accepted by the dimensions input custom operation. 15 16 This is an immutable, keyword-only request object. ``to_dict()`` uses 17 the documented wire names, omits fields left as ``UNSET``, serializes 18 string-backed enums by value, and requires timezone-aware datetimes. 19 20 API contract schema: ``ProductDimensionsInputCustom``. 21 """ 22 size_unit: str | UnsetType = field(default=UNSET) 23 """The size unit associated with this dimensions input custom. Optional. Python type: ``str``; wire name: ``size_unit``; JSON type: string""" 24 size: float | UnsetType = field(default=UNSET) 25 """Numeric size used by this operation. Optional. Python type: ``float``; wire name: ``size``; JSON type: number. Constraints: minimum 0""" 26 details: dict[str, str] | UnsetType = field(default=UNSET) 27 """Named string measurements or descriptors for a product dimension. Optional. Python type: ``dict[str, str]``; wire name: ``details``; JSON type: object (ProductDimensionDetails)"""
Parameters accepted by the dimensions input custom operation.
This is an immutable, keyword-only request object. to_dict() uses
the documented wire names, omits fields left as UNSET, serializes
string-backed enums by value, and requires timezone-aware datetimes.
API contract schema: ProductDimensionsInputCustom.
The size unit associated with this dimensions input custom. Optional. Python type: str; wire name: size_unit; JSON type: string
Numeric size used by this operation. Optional. Python type: float; wire name: size; JSON type: number. Constraints: minimum 0
Named string measurements or descriptors for a product dimension. Optional. Python type: dict[str, str]; wire name: details; JSON type: object (ProductDimensionDetails)
12@dataclass(frozen=True, slots=True, kw_only=True) 13class DimensionsInputDigital(ApiRequest): 14 """Parameters accepted by the dimensions input digital operation. 15 16 This is an immutable, keyword-only request object. ``to_dict()`` uses 17 the documented wire names, omits fields left as ``UNSET``, serializes 18 string-backed enums by value, and requires timezone-aware datetimes. 19 20 API contract schema: ``ProductDimensionsInputDigital``. 21 """ 22 bytes: float | UnsetType = field(default=UNSET) 23 """The bytes associated with this dimensions input digital. Optional. Python type: ``float``; wire name: ``bytes``; JSON type: number. Constraints: minimum 0""" 24 size_unit: str | UnsetType = field(default=UNSET) 25 """The size unit associated with this dimensions input digital. Optional. Python type: ``str``; wire name: ``size_unit``; JSON type: string""" 26 size: float | UnsetType = field(default=UNSET) 27 """Numeric size used by this operation. Optional. Python type: ``float``; wire name: ``size``; JSON type: number. Constraints: minimum 0"""
Parameters accepted by the dimensions input digital operation.
This is an immutable, keyword-only request object. to_dict() uses
the documented wire names, omits fields left as UNSET, serializes
string-backed enums by value, and requires timezone-aware datetimes.
API contract schema: ProductDimensionsInputDigital.
The bytes associated with this dimensions input digital. Optional. Python type: float; wire name: bytes; JSON type: number. Constraints: minimum 0
The size unit associated with this dimensions input digital. Optional. Python type: str; wire name: size_unit; JSON type: string
Numeric size used by this operation. Optional. Python type: float; wire name: size; JSON type: number. Constraints: minimum 0
12@dataclass(frozen=True, slots=True, kw_only=True) 13class DimensionsInputPhysical(ApiRequest): 14 """Parameters accepted by the dimensions input physical operation. 15 16 This is an immutable, keyword-only request object. ``to_dict()`` uses 17 the documented wire names, omits fields left as ``UNSET``, serializes 18 string-backed enums by value, and requires timezone-aware datetimes. 19 20 API contract schema: ``ProductDimensionsInputPhysical``. 21 """ 22 weight_unit: str | UnsetType = field(default=UNSET) 23 """The weight unit associated with this dimensions input physical. Optional. Python type: ``str``; wire name: ``weight_unit``; JSON type: string""" 24 weight: float | UnsetType = field(default=UNSET) 25 """The weight associated with this dimensions input physical. Optional. Python type: ``float``; wire name: ``weight``; JSON type: number. Constraints: minimum 0""" 26 size: float | UnsetType = field(default=UNSET) 27 """Legacy alias for weight in requests. Optional. Python type: ``float``; wire name: ``size``; JSON type: number. Constraints: minimum 0""" 28 volume_unit: str | UnsetType = field(default=UNSET) 29 """The volume unit associated with this dimensions input physical. Optional. Python type: ``str``; wire name: ``volume_unit``; JSON type: string""" 30 volume: float | UnsetType = field(default=UNSET) 31 """The volume associated with this dimensions input physical. Optional. Python type: ``float``; wire name: ``volume``; JSON type: number. Constraints: minimum 0""" 32 length: float | UnsetType = field(default=UNSET) 33 """The length associated with this dimensions input physical. Optional. Python type: ``float``; wire name: ``length``; JSON type: number. Constraints: minimum 0""" 34 height: float | UnsetType = field(default=UNSET) 35 """The height associated with this dimensions input physical. Optional. Python type: ``float``; wire name: ``height``; JSON type: number. Constraints: minimum 0""" 36 width: float | UnsetType = field(default=UNSET) 37 """The width associated with this dimensions input physical. Optional. Python type: ``float``; wire name: ``width``; JSON type: number. Constraints: minimum 0"""
Parameters accepted by the dimensions input physical operation.
This is an immutable, keyword-only request object. to_dict() uses
the documented wire names, omits fields left as UNSET, serializes
string-backed enums by value, and requires timezone-aware datetimes.
API contract schema: ProductDimensionsInputPhysical.
The weight unit associated with this dimensions input physical. Optional. Python type: str; wire name: weight_unit; JSON type: string
The weight associated with this dimensions input physical. Optional. Python type: float; wire name: weight; JSON type: number. Constraints: minimum 0
Legacy alias for weight in requests. Optional. Python type: float; wire name: size; JSON type: number. Constraints: minimum 0
The volume unit associated with this dimensions input physical. Optional. Python type: str; wire name: volume_unit; JSON type: string
The volume associated with this dimensions input physical. Optional. Python type: float; wire name: volume; JSON type: number. Constraints: minimum 0
The length associated with this dimensions input physical. Optional. Python type: float; wire name: length; JSON type: number. Constraints: minimum 0
The height associated with this dimensions input physical. Optional. Python type: float; wire name: height; JSON type: number. Constraints: minimum 0
The width associated with this dimensions input physical. Optional. Python type: float; wire name: width; JSON type: number. Constraints: minimum 0
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 13class DimensionsPhysical(ApiModel): 14 """Typed dimensions physical data in the product resource namespace. 15 16 Instances are immutable API responses. ``from_dict()`` decodes nested 17 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 18 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 19 Fields not returned by the API remain absent and can still be queried 20 through mapping-style access. 21 22 API contract schema: ``ProductDimensionsPhysical``. 23 """ 24 weight_unit: str | None = field(init=False) 25 """The weight unit associated with this dimensions physical. Optional; nullable. Python type: ``str | None``; wire name: ``weight_unit``; JSON type: string""" 26 weight: float | None = field(init=False) 27 """The weight associated with this dimensions physical. Optional; nullable. Python type: ``float | None``; wire name: ``weight``; JSON type: number. Constraints: minimum 0""" 28 size: float | None = field(init=False) 29 """Legacy alias for weight in requests. Optional; nullable. Python type: ``float | None``; wire name: ``size``; JSON type: number. Constraints: minimum 0""" 30 volume_unit: str | None = field(init=False) 31 """The volume unit associated with this dimensions physical. Optional; nullable. Python type: ``str | None``; wire name: ``volume_unit``; JSON type: string""" 32 volume: float | None = field(init=False) 33 """The volume associated with this dimensions physical. Optional; nullable. Python type: ``float | None``; wire name: ``volume``; JSON type: number. Constraints: minimum 0""" 34 length: float | None = field(init=False) 35 """The length associated with this dimensions physical. Optional; nullable. Python type: ``float | None``; wire name: ``length``; JSON type: number. Constraints: minimum 0""" 36 height: float | None = field(init=False) 37 """The height associated with this dimensions physical. Optional; nullable. Python type: ``float | None``; wire name: ``height``; JSON type: number. Constraints: minimum 0""" 38 width: float | None = field(init=False) 39 """The width associated with this dimensions physical. Optional; nullable. Python type: ``float | None``; wire name: ``width``; JSON type: number. Constraints: minimum 0"""
Typed dimensions physical data in the product resource namespace.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: ProductDimensionsPhysical.
The weight unit associated with this dimensions physical. Optional; nullable. Python type: str | None; wire name: weight_unit; JSON type: string
The weight associated with this dimensions physical. Optional; nullable. Python type: float | None; wire name: weight; JSON type: number. Constraints: minimum 0
Legacy alias for weight in requests. Optional; nullable. Python type: float | None; wire name: size; JSON type: number. Constraints: minimum 0
The volume unit associated with this dimensions physical. Optional; nullable. Python type: str | None; wire name: volume_unit; JSON type: string
The volume associated with this dimensions physical. Optional; nullable. Python type: float | None; wire name: volume; JSON type: number. Constraints: minimum 0
The length associated with this dimensions physical. Optional; nullable. Python type: float | None; wire name: length; JSON type: number. Constraints: minimum 0
The height associated with this dimensions physical. Optional; nullable. Python type: float | None; wire name: height; JSON type: number. Constraints: minimum 0
The width associated with this dimensions physical. Optional; nullable. Python type: float | None; wire name: width; JSON type: number. Constraints: minimum 0
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 13class Download(ApiModel): 14 """Download fulfillment marker. 15 16 Instances are immutable API responses. ``from_dict()`` decodes nested 17 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 18 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 19 Fields not returned by the API remain absent and can still be queried 20 through mapping-style access. 21 22 API contract schema: ``ProductDownload``. 23 """ 24 pass
Download fulfillment marker.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: ProductDownload.
14@dataclass(frozen=True, slots=True, kw_only=True) 15class InlineDetailsInput(ApiRequest): 16 """Parameters accepted by the inline details input operation. 17 18 This is an immutable, keyword-only request object. ``to_dict()`` uses 19 the documented wire names, omits fields left as ``UNSET``, serializes 20 string-backed enums by value, and requires timezone-aware datetimes. 21 22 API contract schema: ``InlineProductDetailsInput``. 23 """ 24 about: str | UnsetType = field(default=UNSET) 25 """Long-form description or marketing copy. Optional. Python type: ``str``; wire name: ``about``; JSON type: string""" 26 custom_data: CustomData | UnsetType = field(default=UNSET) 27 """Merchant-defined string values attached to a resource. SDKs expose this as a semantic collection rather than a raw map. Optional. Python type: ``CustomData``; wire name: ``custom_data``; JSON type: object (CustomData)""" 28 reference: str | UnsetType = field(default=UNSET) 29 """Your SKU or internal product reference. Optional. Python type: ``str``; wire name: ``reference``; JSON type: string""" 30 tax_code: str | UnsetType = field(default=UNSET) 31 """Tax classification code. Optional. Python type: ``str``; wire name: ``tax_code``; JSON type: string""" 32 name: str 33 """Product name shown to the customer. Required. Python type: ``str``; wire name: ``name``; JSON type: string""" 34 price: PriceParams 35 """An inline price supplied in a request. Required. Python type: ``PriceParams``; wire name: ``price``; JSON type: object (PriceParams)""" 36 quantity: int 37 """How many units the customer is purchasing. Required. Python type: ``int``; wire name: ``quantity``; JSON type: integer. Constraints: minimum 1""" 38 type: Literal['physical', 'digital', 'service', 'voucher', 'custom', 'cause', ProductType.PHYSICAL, ProductType.DIGITAL, ProductType.SERVICE, ProductType.VOUCHER, ProductType.CUSTOM, ProductType.CAUSE] 39 """Product type—affects shipping requirements. Required. Python type: ``Literal['physical', 'digital', 'service', 'voucher', 'custom', 'cause', ProductType.PHYSICAL, ProductType.DIGITAL, ProductType.SERVICE, ProductType.VOUCHER, ProductType.CUSTOM, ProductType.CAUSE]``; wire name: ``type``; JSON type: string. Constraints: allowed values ``physical``, ``digital``, ``service``, ``voucher``, ``custom``, ``cause``"""
Parameters accepted by the inline details input operation.
This is an immutable, keyword-only request object. to_dict() uses
the documented wire names, omits fields left as UNSET, serializes
string-backed enums by value, and requires timezone-aware datetimes.
API contract schema: InlineProductDetailsInput.
Long-form description or marketing copy. Optional. Python type: str; wire name: about; JSON type: string
Merchant-defined string values attached to a resource. SDKs expose this as a semantic collection rather than a raw map. Optional. Python type: CustomData; wire name: custom_data; JSON type: object (CustomData)
Your SKU or internal product reference. Optional. Python type: str; wire name: reference; JSON type: string
Tax classification code. Optional. Python type: str; wire name: tax_code; JSON type: string
Product name shown to the customer. Required. Python type: str; wire name: name; JSON type: string
An inline price supplied in a request. Required. Python type: PriceParams; wire name: price; JSON type: object (PriceParams)
How many units the customer is purchasing. Required. Python type: int; wire name: quantity; JSON type: integer. Constraints: minimum 1
Product type—affects shipping requirements. Required. Python type: Literal['physical', 'digital', 'service', 'voucher', 'custom', 'cause', ProductType.PHYSICAL, ProductType.DIGITAL, ProductType.SERVICE, ProductType.VOUCHER, ProductType.CUSTOM, ProductType.CAUSE]; wire name: type; JSON type: string. Constraints: allowed values physical, digital, service, voucher, custom, cause
13@dataclass(frozen=True, slots=True, kw_only=True) 14class LineItemInput(ApiRequest): 15 """Parameters accepted by the line item input operation. 16 17 This is an immutable, keyword-only request object. ``to_dict()`` uses 18 the documented wire names, omits fields left as ``UNSET``, serializes 19 string-backed enums by value, and requires timezone-aware datetimes. 20 21 API contract schema: ``ProductLineItemInput``. 22 """ 23 type: Literal['product', LineItemType.PRODUCT] 24 """Line item type discriminator. Required. Python type: ``Literal['product', LineItemType.PRODUCT]``; wire name: ``type``; JSON type: string. Constraints: allowed values ``product``""" 25 product: ProductDetailsInput 26 """Provide either inline product data or a `product_id` reference to an existing catalog product. Catalog-backed product line items can use an explicit `price` or an existing `price_id`. Inttegro never falls back to a product's default unit price during order creation. Required. Python type: ``ProductDetailsInput``; wire name: ``product``; JSON type: object (ProductDetails)"""
Parameters accepted by the line item input operation.
This is an immutable, keyword-only request object. to_dict() uses
the documented wire names, omits fields left as UNSET, serializes
string-backed enums by value, and requires timezone-aware datetimes.
API contract schema: ProductLineItemInput.
Provide either inline product data or a product_id reference to an existing catalog product. Catalog-backed product line items can use an explicit price or an existing price_id. Inttegro never falls back to a product's default unit price during order creation. Required. Python type: ProductDetailsInput; wire name: product; JSON type: object (ProductDetails)
12@dataclass(frozen=True, slots=True, kw_only=True) 13class LookupRequest(ApiRequest): 14 """Parameters accepted by the lookup request operation. 15 16 This is an immutable, keyword-only request object. ``to_dict()`` uses 17 the documented wire names, omits fields left as ``UNSET``, serializes 18 string-backed enums by value, and requires timezone-aware datetimes. 19 20 API contract schema: ``LookupProductRequest``. 21 """ 22 product_id: str 23 """Product ID to lookup. Required. Python type: ``str``; wire name: ``product_id``; JSON type: string"""
Parameters accepted by the lookup request operation.
This is an immutable, keyword-only request object. to_dict() uses
the documented wire names, omits fields left as UNSET, serializes
string-backed enums by value, and requires timezone-aware datetimes.
API contract schema: LookupProductRequest.
Product ID to lookup. Required. Python type: str; wire name: product_id; JSON type: string
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 13class Media(ApiModel): 14 """Typed media data in the product resource namespace. 15 16 Instances are immutable API responses. ``from_dict()`` decodes nested 17 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 18 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 19 Fields not returned by the API remain absent and can still be queried 20 through mapping-style access. 21 22 API contract schema: ``ProductMedia``. 23 """ 24 hero_image: str | None = field(init=False) 25 """The hero image associated with this media. Optional; nullable. Python type: ``str | None``; wire name: ``hero_image``; JSON type: string""" 26 thumbnail: str | None = field(init=False) 27 """The thumbnail associated with this media. Optional; nullable. Python type: ``str | None``; wire name: ``thumbnail``; JSON type: string""" 28 web_page_url: str | None = field(init=False) 29 """URL used for web page. Optional; nullable. Python type: ``str | None``; wire name: ``web_page_url``; JSON type: string""" 30 brand_logo: str | None = field(init=False) 31 """The brand logo associated with this media. Optional; nullable. Python type: ``str | None``; wire name: ``brand_logo``; JSON type: string""" 32 infographic: str | None = field(init=False) 33 """The infographic associated with this media. Optional; nullable. Python type: ``str | None``; wire name: ``infographic``; JSON type: string""" 34 promo_video: str | None = field(init=False) 35 """The promo video associated with this media. Optional; nullable. Python type: ``str | None``; wire name: ``promo_video``; JSON type: string""" 36 demo_video: str | None = field(init=False) 37 """The demo video associated with this media. Optional; nullable. Python type: ``str | None``; wire name: ``demo_video``; JSON type: string""" 38 gallery: list[str] | None = field(init=False) 39 """The gallery associated with this media. Optional; nullable. Python type: ``list[str] | None``; wire name: ``gallery``; JSON type: array of string values""" 40 downloads: list[str] | None = field(init=False) 41 """The downloads associated with this media. Optional; nullable. Python type: ``list[str] | None``; wire name: ``downloads``; JSON type: array of string values"""
Typed media data in the product resource namespace.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: ProductMedia.
The hero image associated with this media. Optional; nullable. Python type: str | None; wire name: hero_image; JSON type: string
The thumbnail associated with this media. Optional; nullable. Python type: str | None; wire name: thumbnail; JSON type: string
URL used for web page. Optional; nullable. Python type: str | None; wire name: web_page_url; JSON type: string
The brand logo associated with this media. Optional; nullable. Python type: str | None; wire name: brand_logo; JSON type: string
The infographic associated with this media. Optional; nullable. Python type: str | None; wire name: infographic; JSON type: string
The promo video associated with this media. Optional; nullable. Python type: str | None; wire name: promo_video; JSON type: string
The demo video associated with this media. Optional; nullable. Python type: str | None; wire name: demo_video; JSON type: string
The gallery associated with this media. Optional; nullable. Python type: list[str] | None; wire name: gallery; JSON type: array of string values
The downloads associated with this media. Optional; nullable. Python type: list[str] | None; wire name: downloads; JSON type: array of string values
12@dataclass(frozen=True, slots=True, kw_only=True) 13class MediaInput(ApiRequest): 14 """Parameters accepted by the media input operation. 15 16 This is an immutable, keyword-only request object. ``to_dict()`` uses 17 the documented wire names, omits fields left as ``UNSET``, serializes 18 string-backed enums by value, and requires timezone-aware datetimes. 19 20 API contract schema: ``ProductMediaInput``. 21 """ 22 hero_image: str | UnsetType = field(default=UNSET) 23 """The hero image associated with this media input. Optional. Python type: ``str``; wire name: ``hero_image``; JSON type: string""" 24 thumbnail: str | UnsetType = field(default=UNSET) 25 """The thumbnail associated with this media input. Optional. Python type: ``str``; wire name: ``thumbnail``; JSON type: string""" 26 web_page_url: str | UnsetType = field(default=UNSET) 27 """URL used for web page. Optional. Python type: ``str``; wire name: ``web_page_url``; JSON type: string""" 28 brand_logo: str | UnsetType = field(default=UNSET) 29 """The brand logo associated with this media input. Optional. Python type: ``str``; wire name: ``brand_logo``; JSON type: string""" 30 infographic: str | UnsetType = field(default=UNSET) 31 """The infographic associated with this media input. Optional. Python type: ``str``; wire name: ``infographic``; JSON type: string""" 32 promo_video: str | UnsetType = field(default=UNSET) 33 """The promo video associated with this media input. Optional. Python type: ``str``; wire name: ``promo_video``; JSON type: string""" 34 demo_video: str | UnsetType = field(default=UNSET) 35 """The demo video associated with this media input. Optional. Python type: ``str``; wire name: ``demo_video``; JSON type: string""" 36 gallery: list[str] | UnsetType = field(default=UNSET) 37 """The gallery associated with this media input. Optional. Python type: ``list[str]``; wire name: ``gallery``; JSON type: array of string values""" 38 downloads: list[str] | UnsetType = field(default=UNSET) 39 """The downloads associated with this media input. Optional. Python type: ``list[str]``; wire name: ``downloads``; JSON type: array of string values"""
Parameters accepted by the media input operation.
This is an immutable, keyword-only request object. to_dict() uses
the documented wire names, omits fields left as UNSET, serializes
string-backed enums by value, and requires timezone-aware datetimes.
API contract schema: ProductMediaInput.
The hero image associated with this media input. Optional. Python type: str; wire name: hero_image; JSON type: string
The thumbnail associated with this media input. Optional. Python type: str; wire name: thumbnail; JSON type: string
URL used for web page. Optional. Python type: str; wire name: web_page_url; JSON type: string
The brand logo associated with this media input. Optional. Python type: str; wire name: brand_logo; JSON type: string
The infographic associated with this media input. Optional. Python type: str; wire name: infographic; JSON type: string
The promo video associated with this media input. Optional. Python type: str; wire name: promo_video; JSON type: string
The demo video associated with this media input. Optional. Python type: str; wire name: demo_video; JSON type: string
The gallery associated with this media input. Optional. Python type: list[str]; wire name: gallery; JSON type: array of string values
The downloads associated with this media input. Optional. Python type: list[str]; wire name: downloads; JSON type: array of string values
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 13class Page(ApiModel): 14 """One page of page resources. 15 16 Instances are immutable API responses. ``from_dict()`` decodes nested 17 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 18 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 19 Fields not returned by the API remain absent and can still be queried 20 through mapping-style access. 21 22 API contract schema: ``ProductPage``. 23 """ 24 number: int = field(init=False) 25 """Human-readable number assigned to the page. Required. Python type: ``int``; wire name: ``number``; JSON type: integer""" 26 size: int = field(init=False) 27 """Numeric size used by this operation. Required. Python type: ``int``; wire name: ``size``; JSON type: integer""" 28 products: list[Product] = field(init=False) 29 """The products associated with this page. Optional. Python type: ``list[Product]``; wire name: ``products``; JSON type: array"""
One page of page resources.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: ProductPage.
Human-readable number assigned to the page. Required. Python type: int; wire name: number; JSON type: integer
Numeric size used by this operation. Required. Python type: int; wire name: size; JSON type: integer
12@dataclass(frozen=True, slots=True, kw_only=True) 13class PageRequest(ApiRequest): 14 """Parameters accepted by the page request operation. 15 16 This is an immutable, keyword-only request object. ``to_dict()`` uses 17 the documented wire names, omits fields left as ``UNSET``, serializes 18 string-backed enums by value, and requires timezone-aware datetimes. 19 20 API contract schema: ``PageProductsRequest``. 21 """ 22 page_size: int | UnsetType = field(default=UNSET) 23 """Maximum number of refunds to return. Optional. Python type: ``int``; wire name: ``page_size``; JSON type: integer. Constraints: minimum 1; maximum 256""" 24 page_number: int 25 """One-based page number. Required. Python type: ``int``; wire name: ``page_number``; JSON type: integer. Constraints: minimum 1; maximum 10"""
Parameters accepted by the page request operation.
This is an immutable, keyword-only request object. to_dict() uses
the documented wire names, omits fields left as UNSET, serializes
string-backed enums by value, and requires timezone-aware datetimes.
API contract schema: PageProductsRequest.
Maximum number of refunds to return. Optional. Python type: int; wire name: page_size; JSON type: integer. Constraints: minimum 1; maximum 256
One-based page number. Required. Python type: int; wire name: page_number; JSON type: integer. Constraints: minimum 1; maximum 10
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 13class PageResponse(ApiModel): 14 """Response containing a page of chimes. 15 16 Instances are immutable API responses. ``from_dict()`` decodes nested 17 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 18 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 19 Fields not returned by the API remain absent and can still be queried 20 through mapping-style access. 21 22 API contract schema: ``PageProductsResponse``. 23 """ 24 page: ProductPage | None = field(init=False) 25 """Numeric page used by this operation. Optional; nullable. Python type: ``ProductPage | None``; wire name: ``page``; JSON type: object"""
Response containing a page of chimes.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: PageProductsResponse.
15@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 16class PriceSummary(ApiModel): 17 """Typed price summary data in the product resource namespace. 18 19 Instances are immutable API responses. ``from_dict()`` decodes nested 20 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 21 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 22 Fields not returned by the API remain absent and can still be queried 23 through mapping-style access. 24 25 API contract schema: ``ProductPriceSummary``. 26 """ 27 id: str = field(init=False) 28 """Unique price identifier with pr_ prefix. Required. Python type: ``str``; wire name: ``id``; JSON type: string""" 29 active: bool = field(init=False) 30 """Whether this price is active and usable in new flows. Required. Python type: ``bool``; wire name: ``active``; JSON type: boolean""" 31 label: str | None = field(init=False) 32 """Short label for this price. Optional; nullable. Python type: ``str | None``; wire name: ``label``; JSON type: string""" 33 type: PriceType = field(init=False) 34 """Price definition discriminator. Required. Python type: ``PriceType``; wire name: ``type``; JSON type: string (PriceType)""" 35 fixed_amount: Amount | None = field(init=False) 36 """Fixed amount present only for fixed prices. Python type: ``Amount | None``; wire name: ``fixed_amount``; JSON type: object (Amount)""" 37 customer_selected_amount: CustomerSelectedAmount | None = field(init=False) 38 """Selection policy present only for customer-selected prices. Python type: ``CustomerSelectedAmount | None``; wire name: ``customer_selected_amount``; JSON type: object (CustomerSelectedAmount)"""
Typed price summary data in the product resource namespace.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: ProductPriceSummary.
Unique price identifier with pr_ prefix. Required. Python type: str; wire name: id; JSON type: string
Whether this price is active and usable in new flows. Required. Python type: bool; wire name: active; JSON type: boolean
Short label for this price. Optional; nullable. Python type: str | None; wire name: label; JSON type: string
Price definition discriminator. Required. Python type: PriceType; wire name: type; JSON type: string (PriceType)
Fixed amount present only for fixed prices. Python type: Amount | None; wire name: fixed_amount; JSON type: object (Amount)
Selection policy present only for customer-selected prices. Python type: CustomerSelectedAmount | None; wire name: customer_selected_amount; JSON type: object (CustomerSelectedAmount)
14@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 15class Product(ApiModel): 16 """Typed product data in the product resource namespace. 17 18 Instances are immutable API responses. ``from_dict()`` decodes nested 19 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 20 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 21 Fields not returned by the API remain absent and can still be queried 22 through mapping-style access. 23 """ 24 id: str = field(init=False) 25 """Unique product identifier with prod_ prefix. Required. Python type: ``str``; wire name: ``id``; JSON type: string""" 26 type: Literal['physical', 'digital', 'service', 'voucher', 'custom', 'cause'] = field(init=False) 27 """Product type. Required. Python type: ``Literal['physical', 'digital', 'service', 'voucher', 'custom', 'cause']``; wire name: ``type``; JSON type: string. Constraints: allowed values ``physical``, ``digital``, ``service``, ``voucher``, ``custom``, ``cause``""" 28 reference: str | None = field(init=False) 29 """External reference or SKU. Optional; nullable. Python type: ``str | None``; wire name: ``reference``; JSON type: string""" 30 name: str = field(init=False) 31 """Product name. Required. Python type: ``str``; wire name: ``name``; JSON type: string""" 32 description: str | None = field(init=False) 33 """Short description. Optional; nullable. Python type: ``str | None``; wire name: ``description``; JSON type: string""" 34 about: str | None = field(init=False) 35 """Full product description. Optional; nullable. Python type: ``str | None``; wire name: ``about``; JSON type: string""" 36 tax_code: str | None = field(init=False) 37 """Tax classification code. Optional; nullable. Python type: ``str | None``; wire name: ``tax_code``; JSON type: string""" 38 category: str | None = field(init=False) 39 """Product category. Optional; nullable. Python type: ``str | None``; wire name: ``category``; JSON type: string""" 40 prices: list[ProductPriceSummary] | None = field(init=False) 41 """Non-archived prices that belong to this product. Optional; nullable. Python type: ``list[ProductPriceSummary] | None``; wire name: ``prices``; JSON type: array of object (ProductPriceSummary) values""" 42 shipment: ProductShipment | None = field(init=False) 43 """The shipment associated with this product. Optional; nullable. Python type: ``ProductShipment | None``; wire name: ``shipment``; JSON type: object (ProductShipment)""" 44 media: ProductMedia | None = field(init=False) 45 """The media associated with this product. Optional; nullable. Python type: ``ProductMedia | None``; wire name: ``media``; JSON type: object (ProductMedia)""" 46 attributes: list[ProductAttribute] | None = field(init=False) 47 """Product attributes. Optional; nullable. Python type: ``list[ProductAttribute] | None``; wire name: ``attributes``; JSON type: array of object (ProductAttribute) values""" 48 dimensions: ProductDimensions | None = field(init=False) 49 """At most one of `physical`, `digital`, or `custom`. Optional; nullable. Python type: ``ProductDimensions | None``; wire name: ``dimensions``; JSON type: object (ProductDimensions)""" 50 custom_data: CustomData | None = field(init=False) 51 """Merchant-defined string values attached to a resource. SDKs expose this as a semantic collection rather than a raw map. Optional; nullable. Python type: ``CustomData | None``; wire name: ``custom_data``; JSON type: object (CustomData)""" 52 active: bool = field(init=False) 53 """Whether product is published and available. Required. Python type: ``bool``; wire name: ``active``; JSON type: boolean""" 54 created_at: datetime = field(init=False) 55 """Product creation timestamp. Required. Python type: ``datetime``; wire name: ``created_at``; JSON type: string (date-time)""" 56 updated_at: datetime | None = field(init=False) 57 """Last update timestamp. Optional; nullable. Python type: ``datetime | None``; wire name: ``updated_at``; JSON type: string (date-time)""" 58 archived_at: datetime | None = field(init=False) 59 """Archive timestamp (if archived). Optional; nullable. Python type: ``datetime | None``; wire name: ``archived_at``; JSON type: string (date-time)""" 60 published_at: datetime | None = field(init=False) 61 """When the product was published. Optional; nullable. Python type: ``datetime | None``; wire name: ``published_at``; JSON type: string (date-time)""" 62 unit_dim: str | None = field(init=False) 63 """Unit dimension label. Optional; nullable. Python type: ``str | None``; wire name: ``unit_dim``; JSON type: string""" 64 65 def is_archived(self) -> bool: 66 """Whether the product is archived.""" 67 return getattr(self, "archived_at", None) is not None 68 69 def is_published(self) -> bool: 70 """Whether the product is currently published and available.""" 71 return self.active and not self.is_archived() 72 73 def was_ever_published(self) -> bool: 74 """Whether the product has a recorded first publication.""" 75 return getattr(self, "published_at", None) is not None
Typed product data in the product resource namespace.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
Unique product identifier with prod_ prefix. Required. Python type: str; wire name: id; JSON type: string
Product type. Required. Python type: Literal['physical', 'digital', 'service', 'voucher', 'custom', 'cause']; wire name: type; JSON type: string. Constraints: allowed values physical, digital, service, voucher, custom, cause
External reference or SKU. Optional; nullable. Python type: str | None; wire name: reference; JSON type: string
Short description. Optional; nullable. Python type: str | None; wire name: description; JSON type: string
Full product description. Optional; nullable. Python type: str | None; wire name: about; JSON type: string
Tax classification code. Optional; nullable. Python type: str | None; wire name: tax_code; JSON type: string
Product category. Optional; nullable. Python type: str | None; wire name: category; JSON type: string
Non-archived prices that belong to this product. Optional; nullable. Python type: list[ProductPriceSummary] | None; wire name: prices; JSON type: array of object (ProductPriceSummary) values
The shipment associated with this product. Optional; nullable. Python type: ProductShipment | None; wire name: shipment; JSON type: object (ProductShipment)
The media associated with this product. Optional; nullable. Python type: ProductMedia | None; wire name: media; JSON type: object (ProductMedia)
Product attributes. Optional; nullable. Python type: list[ProductAttribute] | None; wire name: attributes; JSON type: array of object (ProductAttribute) values
At most one of physical, digital, or custom. Optional; nullable. Python type: ProductDimensions | None; wire name: dimensions; JSON type: object (ProductDimensions)
Merchant-defined string values attached to a resource. SDKs expose this as a semantic collection rather than a raw map. Optional; nullable. Python type: CustomData | None; wire name: custom_data; JSON type: object (CustomData)
Whether product is published and available. Required. Python type: bool; wire name: active; JSON type: boolean
Product creation timestamp. Required. Python type: datetime; wire name: created_at; JSON type: string (date-time)
Last update timestamp. Optional; nullable. Python type: datetime | None; wire name: updated_at; JSON type: string (date-time)
Archive timestamp (if archived). Optional; nullable. Python type: datetime | None; wire name: archived_at; JSON type: string (date-time)
When the product was published. Optional; nullable. Python type: datetime | None; wire name: published_at; JSON type: string (date-time)
Unit dimension label. Optional; nullable. Python type: str | None; wire name: unit_dim; JSON type: string
65 def is_archived(self) -> bool: 66 """Whether the product is archived.""" 67 return getattr(self, "archived_at", None) is not None
Whether the product is archived.
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 13class Render(ApiModel): 14 """Rendered fulfillment marker. 15 16 Instances are immutable API responses. ``from_dict()`` decodes nested 17 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 18 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 19 Fields not returned by the API remain absent and can still be queried 20 through mapping-style access. 21 22 API contract schema: ``ProductRender``. 23 """ 24 pass
Rendered fulfillment marker.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: ProductRender.
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 13class Response(ApiModel): 14 """Typed response returned by the response operation. 15 16 Instances are immutable API responses. ``from_dict()`` decodes nested 17 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 18 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 19 Fields not returned by the API remain absent and can still be queried 20 through mapping-style access. 21 22 API contract schema: ``ProductResponse``. 23 """ 24 product: Product | None = field(init=False) 25 """The product associated with this response. Optional; nullable. Python type: ``Product | None``; wire name: ``product``; JSON type: object (Product)""" 26 error: Error | None = field(init=False) 27 """Standard error response structure returned by all API endpoints. Provides machine-readable codes, human-readable messages, and actionable guidance for resolution. Optional; nullable. Python type: ``Error | None``; wire name: ``error``; JSON type: object (Error)"""
Typed response returned by the response operation.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: ProductResponse.
The product associated with this response. Optional; nullable. Python type: Product | None; wire name: product; JSON type: object (Product)
Standard error response structure returned by all API endpoints. Provides machine-readable codes, human-readable messages, and actionable guidance for resolution. Optional; nullable. Python type: Error | None; wire name: error; JSON type: object (Error)
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 13class Service(ApiModel): 14 """Service fulfillment marker. 15 16 Instances are immutable API responses. ``from_dict()`` decodes nested 17 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 18 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 19 Fields not returned by the API remain absent and can still be queried 20 through mapping-style access. 21 22 API contract schema: ``ProductService``. 23 """ 24 pass
Service fulfillment marker.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: ProductService.
13@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 14class Shipment(ApiModel): 15 """Typed shipment data in the product resource namespace. 16 17 Instances are immutable API responses. ``from_dict()`` decodes nested 18 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 19 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 20 Fields not returned by the API remain absent and can still be queried 21 through mapping-style access. 22 23 API contract schema: ``ProductShipment``. 24 """ 25 type: Literal['delivery', 'download', 'render', 'service', 'stream'] = field(init=False) 26 """Discriminator identifying the shipment type. Required. Python type: ``Literal['delivery', 'download', 'render', 'service', 'stream']``; wire name: ``type``; JSON type: string. Constraints: allowed values ``delivery``, ``download``, ``render``, ``service``, ``stream``""" 27 delivery: ProductDelivery | None = field(init=False) 28 """Delivery fulfillment marker. Optional; nullable. Python type: ``ProductDelivery | None``; wire name: ``delivery``; JSON type: object (ProductDelivery)""" 29 download: ProductDownload | None = field(init=False) 30 """Download fulfillment marker. Optional; nullable. Python type: ``ProductDownload | None``; wire name: ``download``; JSON type: object (ProductDownload)""" 31 render: ProductRender | None = field(init=False) 32 """Rendered fulfillment marker. Optional; nullable. Python type: ``ProductRender | None``; wire name: ``render``; JSON type: object (ProductRender)""" 33 service: ProductService | None = field(init=False) 34 """Service fulfillment marker. Optional; nullable. Python type: ``ProductService | None``; wire name: ``service``; JSON type: object (ProductService)""" 35 stream: ProductStream | None = field(init=False) 36 """Streaming fulfillment marker. Optional; nullable. Python type: ``ProductStream | None``; wire name: ``stream``; JSON type: object (ProductStream)"""
Typed shipment data in the product resource namespace.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: ProductShipment.
Delivery fulfillment marker. Optional; nullable. Python type: ProductDelivery | None; wire name: delivery; JSON type: object (ProductDelivery)
Download fulfillment marker. Optional; nullable. Python type: ProductDownload | None; wire name: download; JSON type: object (ProductDownload)
Rendered fulfillment marker. Optional; nullable. Python type: ProductRender | None; wire name: render; JSON type: object (ProductRender)
13@dataclass(frozen=True, slots=True, kw_only=True) 14class ShipmentInput(ApiRequest): 15 """Parameters accepted by the shipment input operation. 16 17 This is an immutable, keyword-only request object. ``to_dict()`` uses 18 the documented wire names, omits fields left as ``UNSET``, serializes 19 string-backed enums by value, and requires timezone-aware datetimes. 20 21 API contract schema: ``ProductShipmentInput``. 22 """ 23 type: Literal['delivery', 'download', 'render', 'stream', ProductShipmentInputType.DELIVERY, ProductShipmentInputType.DOWNLOAD, ProductShipmentInputType.RENDER, ProductShipmentInputType.STREAM] 24 """Discriminator identifying the shipment input type. Required. Python type: ``Literal['delivery', 'download', 'render', 'stream', ProductShipmentInputType.DELIVERY, ProductShipmentInputType.DOWNLOAD, ProductShipmentInputType.RENDER, ProductShipmentInputType.STREAM]``; wire name: ``type``; JSON type: string. Constraints: allowed values ``delivery``, ``download``, ``render``, ``stream``"""
Parameters accepted by the shipment input operation.
This is an immutable, keyword-only request object. to_dict() uses
the documented wire names, omits fields left as UNSET, serializes
string-backed enums by value, and requires timezone-aware datetimes.
API contract schema: ProductShipmentInput.
Discriminator identifying the shipment input type. Required. Python type: Literal['delivery', 'download', 'render', 'stream', ProductShipmentInputType.DELIVERY, ProductShipmentInputType.DOWNLOAD, ProductShipmentInputType.RENDER, ProductShipmentInputType.STREAM]; wire name: type; JSON type: string. Constraints: allowed values delivery, download, render, stream
11class ShipmentInputType(WireEnum): 12 """Typed shipment input type data in the product resource namespace. 13 14 Members are strings as well as enum values, so they compare naturally 15 with API payloads and serialize to the lowercase wire value shown below. 16 17 API contract schema: ``ProductShipmentInputType``. 18 """ 19 DELIVERY = "delivery" 20 """Wire value ``delivery`` (delivery)""" 21 DOWNLOAD = "download" 22 """Wire value ``download`` (download)""" 23 RENDER = "render" 24 """Wire value ``render`` (render)""" 25 STREAM = "stream" 26 """Wire value ``stream`` (stream)"""
Typed shipment input type data in the product resource namespace.
Members are strings as well as enum values, so they compare naturally with API payloads and serialize to the lowercase wire value shown below.
API contract schema: ProductShipmentInputType.
11class ShipmentType(WireEnum): 12 """Typed shipment type data in the product resource namespace. 13 14 Members are strings as well as enum values, so they compare naturally 15 with API payloads and serialize to the lowercase wire value shown below. 16 17 API contract schema: ``ProductShipmentType``. 18 """ 19 DELIVERY = "delivery" 20 """Wire value ``delivery`` (delivery)""" 21 DOWNLOAD = "download" 22 """Wire value ``download`` (download)""" 23 RENDER = "render" 24 """Wire value ``render`` (render)""" 25 SERVICE = "service" 26 """Wire value ``service`` (service)""" 27 STREAM = "stream" 28 """Wire value ``stream`` (stream)"""
Typed shipment type data in the product resource namespace.
Members are strings as well as enum values, so they compare naturally with API payloads and serialize to the lowercase wire value shown below.
API contract schema: ProductShipmentType.
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 13class Stream(ApiModel): 14 """Streaming fulfillment marker. 15 16 Instances are immutable API responses. ``from_dict()`` decodes nested 17 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 18 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 19 Fields not returned by the API remain absent and can still be queried 20 through mapping-style access. 21 22 API contract schema: ``ProductStream``. 23 """ 24 pass
Streaming fulfillment marker.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: ProductStream.
11class Type(WireEnum): 12 """Product type. 13 14 Members are strings as well as enum values, so they compare naturally 15 with API payloads and serialize to the lowercase wire value shown below. 16 17 API contract schema: ``ProductType``. 18 """ 19 PHYSICAL = "physical" 20 """Wire value ``physical`` (physical) for product type""" 21 DIGITAL = "digital" 22 """Wire value ``digital`` (digital) for product type""" 23 SERVICE = "service" 24 """Wire value ``service`` (service) for product type""" 25 VOUCHER = "voucher" 26 """Wire value ``voucher`` (voucher) for product type""" 27 CUSTOM = "custom" 28 """Wire value ``custom`` (custom) for product type""" 29 CAUSE = "cause" 30 """Wire value ``cause`` (cause) for product type"""
Product type.
Members are strings as well as enum values, so they compare naturally with API payloads and serialize to the lowercase wire value shown below.
API contract schema: ProductType.
13@dataclass(frozen=True, slots=True, kw_only=True) 14class UpdateRequest(ApiRequest): 15 """Parameters accepted by the update request operation. 16 17 This is an immutable, keyword-only request object. ``to_dict()`` uses 18 the documented wire names, omits fields left as ``UNSET``, serializes 19 string-backed enums by value, and requires timezone-aware datetimes. 20 21 API contract schema: ``UpdateProductRequest``. 22 """ 23 type: Literal['physical', 'digital', 'service', 'voucher', 'custom', 'cause', ProductType.PHYSICAL, ProductType.DIGITAL, ProductType.SERVICE, ProductType.VOUCHER, ProductType.CUSTOM, ProductType.CAUSE] | UnsetType = field(default=UNSET) 24 """Product type. If provided, it must equal the existing type. Optional. Python type: ``Literal['physical', 'digital', 'service', 'voucher', 'custom', 'cause', ProductType.PHYSICAL, ProductType.DIGITAL, ProductType.SERVICE, ProductType.VOUCHER, ProductType.CUSTOM, ProductType.CAUSE]``; wire name: ``type``; JSON type: string. Constraints: allowed values ``physical``, ``digital``, ``service``, ``voucher``, ``custom``, ``cause``""" 25 name: str | UnsetType = field(default=UNSET) 26 """Product name. Optional. Python type: ``str``; wire name: ``name``; JSON type: string. Constraints: minimum length 1; maximum length 100""" 27 description: str | UnsetType = field(default=UNSET) 28 """Short description. Optional. Python type: ``str``; wire name: ``description``; JSON type: string. Constraints: maximum length 200""" 29 about: str | UnsetType = field(default=UNSET) 30 """Full description. Optional. Python type: ``str``; wire name: ``about``; JSON type: string""" 31 tax_code: str | UnsetType = field(default=UNSET) 32 """Tax classification code. Optional. Python type: ``str``; wire name: ``tax_code``; JSON type: string""" 33 category: str | UnsetType = field(default=UNSET) 34 """Product category. Optional. Python type: ``str``; wire name: ``category``; JSON type: string""" 35 shipment: ProductShipmentInput | UnsetType = field(default=UNSET) 36 """The shipment associated with this update request. Optional. Python type: ``ProductShipmentInput``; wire name: ``shipment``; JSON type: object (ProductShipmentInput)""" 37 dimensions: ProductDimensionsInput | UnsetType = field(default=UNSET) 38 """At most one of `physical`, `digital`, or `custom`. Optional. Python type: ``ProductDimensionsInput``; wire name: ``dimensions``; JSON type: object (ProductDimensions)""" 39 unit_dimension: str | UnsetType = field(default=UNSET) 40 """The unit dimension associated with this update request. Optional. Python type: ``str``; wire name: ``unit_dimension``; JSON type: string. Constraints: maximum length 20""" 41 media: ProductMediaInput | UnsetType = field(default=UNSET) 42 """The media associated with this update request. Optional. Python type: ``ProductMediaInput``; wire name: ``media``; JSON type: object (ProductMedia)""" 43 images: list[str] | UnsetType = field(default=UNSET) 44 """Legacy image list. Mutually exclusive with `media`. Optional. Python type: ``list[str]``; wire name: ``images``; JSON type: array of string values""" 45 attributes: list[ProductAttributeInput] | UnsetType = field(default=UNSET) 46 """Product attributes. Optional. Python type: ``list[ProductAttributeInput]``; wire name: ``attributes``; JSON type: array of object (ProductAttribute) values""" 47 custom_data: CustomData | UnsetType = field(default=UNSET) 48 """Merchant-defined string values attached to a resource. SDKs expose this as a semantic collection rather than a raw map. Optional. Python type: ``CustomData``; wire name: ``custom_data``; JSON type: object (CustomData)""" 49 product_id: str 50 """Product ID to update. Required. Python type: ``str``; wire name: ``product_id``; JSON type: string"""
Parameters accepted by the update request operation.
This is an immutable, keyword-only request object. to_dict() uses
the documented wire names, omits fields left as UNSET, serializes
string-backed enums by value, and requires timezone-aware datetimes.
API contract schema: UpdateProductRequest.
Product type. If provided, it must equal the existing type. Optional. Python type: Literal['physical', 'digital', 'service', 'voucher', 'custom', 'cause', ProductType.PHYSICAL, ProductType.DIGITAL, ProductType.SERVICE, ProductType.VOUCHER, ProductType.CUSTOM, ProductType.CAUSE]; wire name: type; JSON type: string. Constraints: allowed values physical, digital, service, voucher, custom, cause
Product name. Optional. Python type: str; wire name: name; JSON type: string. Constraints: minimum length 1; maximum length 100
Short description. Optional. Python type: str; wire name: description; JSON type: string. Constraints: maximum length 200
Full description. Optional. Python type: str; wire name: about; JSON type: string
Tax classification code. Optional. Python type: str; wire name: tax_code; JSON type: string
Product category. Optional. Python type: str; wire name: category; JSON type: string
The shipment associated with this update request. Optional. Python type: ProductShipmentInput; wire name: shipment; JSON type: object (ProductShipmentInput)
At most one of physical, digital, or custom. Optional. Python type: ProductDimensionsInput; wire name: dimensions; JSON type: object (ProductDimensions)
The unit dimension associated with this update request. Optional. Python type: str; wire name: unit_dimension; JSON type: string. Constraints: maximum length 20
The media associated with this update request. Optional. Python type: ProductMediaInput; wire name: media; JSON type: object (ProductMedia)
Product attributes. Optional. Python type: list[ProductAttributeInput]; wire name: attributes; JSON type: array of object (ProductAttribute) values
Merchant-defined string values attached to a resource. SDKs expose this as a semantic collection rather than a raw map. Optional. Python type: CustomData; wire name: custom_data; JSON type: object (CustomData)
Product ID to update. Required. Python type: str; wire name: product_id; JSON type: string
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 13class UpdateResponse(ApiModel): 14 """Typed response returned by the update operation. 15 16 Instances are immutable API responses. ``from_dict()`` decodes nested 17 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 18 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 19 Fields not returned by the API remain absent and can still be queried 20 through mapping-style access. 21 22 API contract schema: ``UpdateProductResponse``. 23 """ 24 product: UpdatedProduct | None = field(init=False) 25 """The product associated with this update response. Optional; nullable. Python type: ``UpdatedProduct | None``; wire name: ``product``; JSON type: object (UpdatedProduct)"""
Typed response returned by the update operation.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: UpdateProductResponse.
14@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 15class Updated(ApiModel): 16 """Typed updated data in the product resource namespace. 17 18 Instances are immutable API responses. ``from_dict()`` decodes nested 19 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 20 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 21 Fields not returned by the API remain absent and can still be queried 22 through mapping-style access. 23 24 API contract schema: ``UpdatedProduct``. 25 """ 26 id: str = field(init=False) 27 """Product identifier returned by the update operation. Required. Python type: ``str``; wire name: ``id``; JSON type: string""" 28 name: str = field(init=False) 29 """Human-readable name of the updated. Required. Python type: ``str``; wire name: ``name``; JSON type: string""" 30 description: str | None = field(init=False) 31 """Human-readable description of the updated. Optional; nullable. Python type: ``str | None``; wire name: ``description``; JSON type: string""" 32 about: str | None = field(init=False) 33 """The about associated with this updated. Optional; nullable. Python type: ``str | None``; wire name: ``about``; JSON type: string""" 34 type: Literal['physical', 'digital', 'service', 'voucher', 'custom', 'cause'] = field(init=False) 35 """Discriminator identifying the updated type. Required. Python type: ``Literal['physical', 'digital', 'service', 'voucher', 'custom', 'cause']``; wire name: ``type``; JSON type: string. Constraints: allowed values ``physical``, ``digital``, ``service``, ``voucher``, ``custom``, ``cause``""" 36 reference: str | None = field(init=False) 37 """Merchant-defined external reference for the updated. Optional; nullable. Python type: ``str | None``; wire name: ``reference``; JSON type: string""" 38 tax_code: str | None = field(init=False) 39 """The tax code associated with this updated. Optional; nullable. Python type: ``str | None``; wire name: ``tax_code``; JSON type: string""" 40 category: str | None = field(init=False) 41 """The category associated with this updated. Optional; nullable. Python type: ``str | None``; wire name: ``category``; JSON type: string""" 42 custom_data: CustomData | None = field(init=False) 43 """Merchant-defined string values attached to a resource. SDKs expose this as a semantic collection rather than a raw map. Optional; nullable. Python type: ``CustomData | None``; wire name: ``custom_data``; JSON type: object (CustomData)""" 44 dimensions: ProductDimensions | None = field(init=False) 45 """At most one of `physical`, `digital`, or `custom`. Optional; nullable. Python type: ``ProductDimensions | None``; wire name: ``dimensions``; JSON type: object (ProductDimensions)""" 46 prices: list[ProductPriceSummary] | None = field(init=False) 47 """The prices associated with this updated. Optional; nullable. Python type: ``list[ProductPriceSummary] | None``; wire name: ``prices``; JSON type: array of object (ProductPriceSummary) values""" 48 unit_dim: str | None = field(init=False) 49 """The unit dim associated with this updated. Optional; nullable. Python type: ``str | None``; wire name: ``unit_dim``; JSON type: string""" 50 created_at: datetime = field(init=False) 51 """When the updated was created. Required. Python type: ``datetime``; wire name: ``created_at``; JSON type: string (date-time)""" 52 updated_at: datetime | None = field(init=False) 53 """When the updated was last updated. Optional; nullable. Python type: ``datetime | None``; wire name: ``updated_at``; JSON type: string (date-time)"""
Typed updated data in the product resource namespace.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: UpdatedProduct.
Product identifier returned by the update operation. Required. Python type: str; wire name: id; JSON type: string
Human-readable name of the updated. Required. Python type: str; wire name: name; JSON type: string
Human-readable description of the updated. Optional; nullable. Python type: str | None; wire name: description; JSON type: string
The about associated with this updated. Optional; nullable. Python type: str | None; wire name: about; JSON type: string
Discriminator identifying the updated type. Required. Python type: Literal['physical', 'digital', 'service', 'voucher', 'custom', 'cause']; wire name: type; JSON type: string. Constraints: allowed values physical, digital, service, voucher, custom, cause
Merchant-defined external reference for the updated. Optional; nullable. Python type: str | None; wire name: reference; JSON type: string
The tax code associated with this updated. Optional; nullable. Python type: str | None; wire name: tax_code; JSON type: string
The category associated with this updated. Optional; nullable. Python type: str | None; wire name: category; JSON type: string
Merchant-defined string values attached to a resource. SDKs expose this as a semantic collection rather than a raw map. Optional; nullable. Python type: CustomData | None; wire name: custom_data; JSON type: object (CustomData)
At most one of physical, digital, or custom. Optional; nullable. Python type: ProductDimensions | None; wire name: dimensions; JSON type: object (ProductDimensions)
The prices associated with this updated. Optional; nullable. Python type: list[ProductPriceSummary] | None; wire name: prices; JSON type: array of object (ProductPriceSummary) values
The unit dim associated with this updated. Optional; nullable. Python type: str | None; wire name: unit_dim; JSON type: string
When the updated was created. Required. Python type: datetime; wire name: created_at; JSON type: string (date-time)
When the updated was last updated. Optional; nullable. Python type: datetime | None; wire name: updated_at; JSON type: string (date-time)