sanmar_sdk.standard.products¶
SanMar’s own product information service.
Looks up products by style, optionally narrowed to a catalog color, a size, or both, and
asks SanMar to write product files to the SFTP server. For frequent or whole-catalog pulls,
SanMar recommends its product files (sanmar_sdk.ftp) over this service.
Attributes¶
Classes¶
Links to a product's images and documents. |
|
A product's list and sale prices. |
|
One style, color and size, as SanMar's product information service describes it. |
|
SanMar's acknowledgement of a request for a product file. |
|
SanMar's own product information service. |
Module Contents¶
- class sanmar_sdk.standard.products.ProductImages(/, **data: Any)[source]¶
Bases:
sanmar_sdk.base.RecordLinks to a product’s images and documents.
- class sanmar_sdk.standard.products.ProductPrices(/, **data: Any)[source]¶
Bases:
sanmar_sdk.base.RecordA product’s list and sale prices.
- piece_price: sanmar_sdk.base.Price = None[source]¶
The price per piece for five pieces or fewer of one style and color.
- case_price: sanmar_sdk.base.Price = None[source]¶
The price per piece when buying by the case.
- piece_sale_price: sanmar_sdk.base.Price = None[source]¶
- case_sale_price: sanmar_sdk.base.Price = None[source]¶
- sale_start_date: sanmar_sdk.base.SanMarDate | None = None[source]¶
- sale_end_date: sanmar_sdk.base.SanMarDate | None = None[source]¶
- map_price: sanmar_sdk.base.Price = None[source]¶
The minimum advertised price.
- class sanmar_sdk.standard.products.ProductInfo(/, **data: Any)[source]¶
Bases:
sanmar_sdk.base.RecordOne style, color and size, as SanMar’s product information service describes it.
- catalog_color: str = None[source]¶
The catalog (mainframe) color, which web services and orders expect.
- unique_key: str = None[source]¶
SanMar’s identifier for this style, color and size, and the PromoStandards part id.
- keywords: sanmar_sdk.base.CommaSeparated = None[source]¶
- piece_weight: decimal.Decimal | None = None[source]¶
Approximate weight per piece in pounds.
- images: ProductImages = None[source]¶
- prices: ProductPrices = None[source]¶
- class sanmar_sdk.standard.products.FileRequest(/, **data: Any)[source]¶
Bases:
sanmar_sdk.base.RecordSanMar’s acknowledgement of a request for a product file.
SanMar writes the file to its SFTP server about 20 minutes later. Brand and category file names end with the date SanMar wrote them, so they are matched by pattern; read one with
sanmar_sdk.ftp.SanMarFTP.find()andproduct_information().
- class sanmar_sdk.standard.products.ProductInfoService(soap: SoapClient, credentials: Credentials)[source]¶
Bases:
sanmar_sdk._soap.ServiceSanMar’s own product information service.
- get(style: str, *, catalog_color: str | None = None, size: str | None = None) list[ProductInfo][source]¶
Look up a style, optionally narrowed to one catalog color, one size, or both.
Returns one entry per matching style, color and size. The color must be the catalog (mainframe) color.
- get_many(queries: collections.abc.Sequence[sanmar_sdk.common.StyleQuery]) list[ProductInfo][source]¶
Look up several styles in one call.
- request_bulk_file() FileRequest[source]¶
Ask SanMar to write a file of its whole catalog. SanMar allows this once a month.
- request_delta_file() FileRequest[source]¶
Ask SanMar to write a file of what changed since the last bulk or delta file.
SanMar allows this once a day. The next delta starts from this one, so calling it consumes the changes it reports.
- request_brand_file(brand: str) FileRequest[source]¶
Ask SanMar to write a file of one brand’s products, such as
OGIO.
- request_category_file(category: str) FileRequest[source]¶
Ask SanMar to write a file of one category’s products, such as
Caps.