sanmar_sdk.ftp.pricing¶
SanMar’s customer pricing files.
SanMar writes these on request, nightly after 2 AM Pacific, to the account’s outbound
folder. my_price is the price for this account specifically.
sanmar_dp.csvcovers the whole catalog, with the lowest price available to the account inmy_price.sanmar_dpIncentive.csvcovers the whole catalog, with any special pricing inmy_price, or 0 where there is none.sanmar_dpc.csvlists only what changed since the previous file (the first one has everything), with justunique_keyandmy_price.
Attributes¶
|
|
|
Classes¶
The account's price for one style, color and size. |
|
A changed price from |
Functions¶
|
Stream |
|
Stream |
Module Contents¶
- sanmar_sdk.ftp.pricing.CUSTOMER_PRICE_COLUMNS = ('inventory_key', 'size_index', 'catalog_no', 'catalog_color', 'size', 'piece_weight',...[source]¶
sanmar_dp.csvandsanmar_dpIncentive.csv, per the FTP Integration Guide v23.6.
- sanmar_sdk.ftp.pricing.PRICE_CHANGE_COLUMNS = ('unique_key', 'my_price')[source]¶
sanmar_dpc.csv, per the FTP Integration Guide v23.6.
- class sanmar_sdk.ftp.pricing.CustomerPrice(/, **data: Any)[source]¶
Bases:
sanmar_sdk.base.RecordThe account’s price for one style, color and size.
- my_price: sanmar_sdk.base.Price[source]¶
The account’s price, which is the case or sale price where there is no special pricing.
- piece_weight: decimal.Decimal | None = None[source]¶
- piece_price: sanmar_sdk.base.Price = None[source]¶
- case_price: sanmar_sdk.base.Price = None[source]¶
- 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]¶
- class sanmar_sdk.ftp.pricing.PriceChange(/, **data: Any)[source]¶
Bases:
sanmar_sdk.base.RecordA changed price from
sanmar_dpc.csv.- my_price: sanmar_sdk.base.Price[source]¶
- sanmar_sdk.ftp.pricing.read_customer_prices(source: sanmar_sdk.ftp.readers.Source, *, encoding: str = 'utf-8-sig') collections.abc.Iterator[CustomerPrice][source]¶
Stream
sanmar_dp.csvorsanmar_dpIncentive.csv, one row at a time.
- sanmar_sdk.ftp.pricing.read_price_changes(source: sanmar_sdk.ftp.readers.Source, *, encoding: str = 'utf-8-sig') collections.abc.Iterator[PriceChange][source]¶
Stream
sanmar_dpc.csv, one changed price at a time.