sanmar_sdk.promostandards.pricing ================================= .. py:module:: sanmar_sdk.promostandards.pricing .. autoapi-nested-parse:: SanMar's PromoStandards Pricing and Configuration service, version 1.0.0. Prices every part of a style at this account's net cost, SanMar's list price (MSRP), or this account's special pricing. SanMar sells blank goods only, so it implements just ``getConfigurationAndPricing`` and ``getFobPoints``, and nothing about decoration. Attributes ---------- .. autoapisummary:: sanmar_sdk.promostandards.pricing.COUNTRY sanmar_sdk.promostandards.pricing.LANGUAGE sanmar_sdk.promostandards.pricing.CURRENCY Classes ------- .. autoapisummary:: sanmar_sdk.promostandards.pricing.PriceType sanmar_sdk.promostandards.pricing.PriceBreak sanmar_sdk.promostandards.pricing.PartPrice sanmar_sdk.promostandards.pricing.PricingService Module Contents --------------- .. py:data:: COUNTRY :value: 'US' .. py:data:: LANGUAGE :value: 'EN' .. py:data:: CURRENCY :value: 'USD' .. py:class:: PriceType Bases: :py:obj:`enum.StrEnum` Which price to ask for. .. py:attribute:: NET :value: 'Net' This account's cost. .. py:attribute:: LIST :value: 'List' SanMar's suggested retail price (MSRP). .. py:attribute:: CUSTOMER :value: 'Customer' This account's special pricing, where SanMar has set some up. .. py:class:: PriceBreak(/, **data: Any) Bases: :py:obj:`sanmar_sdk.base.Record` The price per unit from a minimum quantity up. .. py:attribute:: min_quantity :type: int :value: None .. py:attribute:: price :type: decimal.Decimal .. py:attribute:: uom :type: str :value: None The unit the price is per, ``EA`` for each piece or ``CA`` for each piece by the case. .. py:attribute:: effective_date :type: datetime.datetime | None :value: None .. py:attribute:: expiry_date :type: datetime.datetime | None :value: None .. py:attribute:: discount_code :type: str | None :value: None .. py:class:: PartPrice(/, **data: Any) Bases: :py:obj:`sanmar_sdk.base.Record` The prices of one part. .. py:attribute:: part_id :type: str :value: None SanMar's unique key for this style, color and size. .. py:attribute:: description :type: str | None :value: None .. py:attribute:: prices :type: list[PriceBreak] :value: None .. py:attribute:: default_part :type: bool :value: None .. py:class:: PricingService(soap: SoapClient, credentials: Credentials) Bases: :py:obj:`sanmar_sdk.promostandards._common.PromoStandardsService` SanMar's PromoStandards Pricing and Configuration service. .. py:attribute:: endpoint .. py:attribute:: version :value: '1.0.0' The PromoStandards version SanMar implements, sent as ``wsVersion``. .. py:method:: get(product_id: str, *, part_id: str | None = None, price_type: PriceType = PriceType.NET, warehouse: sanmar_sdk.common.Warehouse = Warehouse.SEATTLE) -> list[PartPrice] Price every part of a style, or one part. SanMar's prices do not vary by warehouse, but the service requires one, so any warehouse will do. .. py:method:: fob_points(product_id: str) -> list[sanmar_sdk.promostandards.product_data.FobPoint] List SanMar's warehouses. The list is the same for every product. SanMar asks that this be called at most once a week.