sanmar_sdk.promostandards.pricing

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

Classes

PriceType

Which price to ask for.

PriceBreak

The price per unit from a minimum quantity up.

PartPrice

The prices of one part.

PricingService

SanMar's PromoStandards Pricing and Configuration service.

Module Contents

sanmar_sdk.promostandards.pricing.COUNTRY = 'US'[source]
sanmar_sdk.promostandards.pricing.LANGUAGE = 'EN'[source]
sanmar_sdk.promostandards.pricing.CURRENCY = 'USD'[source]
class sanmar_sdk.promostandards.pricing.PriceType[source]

Bases: enum.StrEnum

Which price to ask for.

NET = 'Net'[source]

This account’s cost.

LIST = 'List'[source]

SanMar’s suggested retail price (MSRP).

CUSTOMER = 'Customer'[source]

This account’s special pricing, where SanMar has set some up.

class sanmar_sdk.promostandards.pricing.PriceBreak(/, **data: Any)[source]

Bases: sanmar_sdk.base.Record

The price per unit from a minimum quantity up.

min_quantity: int = None[source]
price: decimal.Decimal[source]
uom: str = None[source]

The unit the price is per, EA for each piece or CA for each piece by the case.

effective_date: datetime.datetime | None = None[source]
expiry_date: datetime.datetime | None = None[source]
discount_code: str | None = None[source]
class sanmar_sdk.promostandards.pricing.PartPrice(/, **data: Any)[source]

Bases: sanmar_sdk.base.Record

The prices of one part.

part_id: str = None[source]

SanMar’s unique key for this style, color and size.

description: str | None = None[source]
prices: list[PriceBreak] = None[source]
default_part: bool = None[source]
class sanmar_sdk.promostandards.pricing.PricingService(soap: SoapClient, credentials: Credentials)[source]

Bases: sanmar_sdk.promostandards._common.PromoStandardsService

SanMar’s PromoStandards Pricing and Configuration service.

endpoint[source]
version = '1.0.0'[source]

The PromoStandards version SanMar implements, sent as wsVersion.

get(product_id: str, *, part_id: str | None = None, price_type: PriceType = PriceType.NET, warehouse: sanmar_sdk.common.Warehouse = Warehouse.SEATTLE) → list[PartPrice][source]

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.

fob_points(product_id: str) → list[sanmar_sdk.promostandards.product_data.FobPoint][source]

List SanMar’s warehouses. The list is the same for every product.

SanMar asks that this be called at most once a week.