sanmar_sdk.promostandards.inventory¶
SanMar’s PromoStandards Inventory service, version 2.0.0.
Reports stock for a style, narrowed to some of its sizes and catalog colors, or for up to
200 parts from any styles at once, which suits checking a whole cart in one call. SanMar
does not implement getFilterValues, and caps each warehouse’s reported quantity at
3,000.
Attributes¶
Classes¶
Stock a warehouse expects to receive. |
|
One part's stock at one warehouse. |
|
One part's stock across SanMar's warehouses. |
|
SanMar's PromoStandards Inventory service. |
Module Contents¶
- class sanmar_sdk.promostandards.inventory.FutureStock(/, **data: Any)[source]¶
Bases:
sanmar_sdk.base.RecordStock a warehouse expects to receive.
- available_on: datetime.datetime = None[source]¶
- class sanmar_sdk.promostandards.inventory.LocationStock(/, **data: Any)[source]¶
Bases:
sanmar_sdk.base.RecordOne part’s stock at one warehouse.
- warehouse: sanmar_sdk.common.WarehouseNumber = None[source]¶
- future: list[FutureStock] = None[source]¶
- class sanmar_sdk.promostandards.inventory.PartStock(/, **data: Any)[source]¶
Bases:
sanmar_sdk.base.RecordOne part’s stock across SanMar’s warehouses.
- catalog_color: str | None = None[source]¶
The catalog (mainframe) color, which web services and orders expect.
- locations: list[LocationStock] = None[source]¶
- last_modified: datetime.datetime | None = None[source]¶
- class sanmar_sdk.promostandards.inventory.InventoryService(soap: SoapClient, credentials: Credentials)[source]¶
Bases:
sanmar_sdk.promostandards._common.PromoStandardsServiceSanMar’s PromoStandards Inventory service.
- get(product_id: str, *, part_ids: collections.abc.Sequence[str] = (), sizes: collections.abc.Sequence[str] = (), catalog_colors: collections.abc.Sequence[str] = ()) list[PartStock][source]¶
Report stock for a style, or for a set of parts.
With no filter, every part of the style is reported.
sizesandcatalog_colorsnarrow the style down.part_idsasks for up to 200 parts from any styles instead; SanMar still needs a valid style inproduct_id, but does not require the parts to belong to it.- Raises:
TypeError – If a filter is a single string rather than a list of them.
ValueError – If
part_idsis combined withsizesorcatalog_colors, or lists more than 200 parts.