sanmar_sdk.promostandards.shipment_notification¶
SanMar’s PromoStandards Order Shipment Notification service, version 1.0.0.
Reports what shipped, from where, and under which tracking numbers, by purchase order, by SanMar sales order, or for everything shipped since a point in the last seven days. SanMar recommends its daily status file on the SFTP server instead, and asks that this service be called no more than three times a day.
Attributes¶
Classes¶
Where a shipment left from or went to. |
|
What went into a package. |
|
One box, and its tracking number. |
|
Everything that shipped from one warehouse to one address. |
|
What shipped against one of SanMar's sales orders. |
|
What shipped against one purchase order. |
|
SanMar's PromoStandards Order Shipment Notification service. |
Module Contents¶
- class sanmar_sdk.promostandards.shipment_notification.ShipmentAddress(/, **data: Any)[source]¶
Bases:
sanmar_sdk.base.RecordWhere a shipment left from or went to.
- class sanmar_sdk.promostandards.shipment_notification.ShippedItem(/, **data: Any)[source]¶
Bases:
sanmar_sdk.base.RecordWhat went into a package.
- quantity: decimal.Decimal | None = None[source]¶
- class sanmar_sdk.promostandards.shipment_notification.ShipmentPackage(/, **data: Any)[source]¶
Bases:
sanmar_sdk.base.RecordOne box, and its tracking number.
- shipment_date: datetime.datetime = None[source]¶
- length: decimal.Decimal | None = None[source]¶
- width: decimal.Decimal | None = None[source]¶
- height: decimal.Decimal | None = None[source]¶
- weight: decimal.Decimal | None = None[source]¶
- items: list[ShippedItem] = None[source]¶
- class sanmar_sdk.promostandards.shipment_notification.ShipmentLocation(/, **data: Any)[source]¶
Bases:
sanmar_sdk.base.RecordEverything that shipped from one warehouse to one address.
- ship_from: ShipmentAddress = None[source]¶
- ship_to: ShipmentAddress = None[source]¶
- packages: list[ShipmentPackage] = None[source]¶
- class sanmar_sdk.promostandards.shipment_notification.SalesOrderShipment(/, **data: Any)[source]¶
Bases:
sanmar_sdk.base.RecordWhat shipped against one of SanMar’s sales orders.
- locations: list[ShipmentLocation] = None[source]¶
- class sanmar_sdk.promostandards.shipment_notification.ShipmentNotification(/, **data: Any)[source]¶
Bases:
sanmar_sdk.base.RecordWhat shipped against one purchase order.
- sales_orders: list[SalesOrderShipment] = None[source]¶
- class sanmar_sdk.promostandards.shipment_notification.ShipmentNotificationService(soap: SoapClient, credentials: Credentials)[source]¶
Bases:
sanmar_sdk.promostandards._common.PromoStandardsServiceSanMar’s PromoStandards Order Shipment Notification service.
- by_purchase_order(po_number: str) list[ShipmentNotification][source]¶
Report what has shipped against a purchase order.
- by_sales_order(sales_order_number: str) list[ShipmentNotification][source]¶
Report what has shipped against one of SanMar’s sales orders.
- since(since: datetime.datetime) list[ShipmentNotification][source]¶
Report everything shipped after a point in time, at most seven days ago.
- Raises:
ValueError – If
sincehas no time zone, or is more than seven days ago.