ssactivewear_sdk.models.returns =============================== .. py:module:: ssactivewear_sdk.models.returns .. autoapi-nested-parse:: Return models. Attributes ---------- .. autoapisummary:: ssactivewear_sdk.models.returns.REASONS_REQUIRING_A_COMMENT Classes ------- .. autoapisummary:: ssactivewear_sdk.models.returns.ReturnReason ssactivewear_sdk.models.returns.ReturnRequestLine ssactivewear_sdk.models.returns.ReturnRequest ssactivewear_sdk.models.returns.ReturnToAddress ssactivewear_sdk.models.returns.ReturnInformation ssactivewear_sdk.models.returns.ReturnOrder Module Contents --------------- .. py:class:: ReturnReason Bases: :py:obj:`enum.StrEnum` Reasons accepted when requesting a return. .. py:attribute:: DO_NOT_NEED :value: '1' Do not need; ordered the wrong color, size, or quantity. .. py:attribute:: DAMAGED_OR_DEFECTIVE :value: '2' Damaged or defective item. Needs a comment when replacing. .. py:attribute:: KEYING_ERROR :value: '3' Keying error (ordered X, billed and received Y). .. py:attribute:: RECEIVED_TOO_FEW :value: '5' Wrong quantity (ordered 10, received 2). .. py:attribute:: OTHER :value: '6' Other. Needs a comment when replacing. .. py:attribute:: RECEIVED_TOO_MANY :value: '7' Wrong quantity (ordered 2, received 10). .. py:attribute:: PICKING_ERROR_WRONG_SIZE :value: '10' Picking error (wrong size). .. py:attribute:: PICKING_ERROR_WRONG_STYLE_OR_COLOR :value: '11' Picking error (wrong style or color). .. py:data:: REASONS_REQUIRING_A_COMMENT .. py:class:: ReturnRequestLine(/, **data: Any) Bases: :py:obj:`ssactivewear_sdk.models._base.SSActivewearBaseModel` A sku to return. .. py:attribute:: invoice_number :type: str .. py:attribute:: identifier :type: str .. py:attribute:: qty :type: int .. py:attribute:: return_reason :type: ReturnReason .. py:attribute:: is_replace :type: bool | None .. py:attribute:: return_reason_comment :type: str | None .. py:method:: _require_comment_for_replacements() -> Self S&S rejects a replacement for reason 2 or 6 without a comment. .. py:class:: ReturnRequest(/, **data: Any) Bases: :py:obj:`ssactivewear_sdk.models._base.SSActivewearBaseModel` A return to request. Every optional field left as ``None`` is omitted from the request, so S&S applies its own default. .. py:attribute:: lines :type: list[ReturnRequestLine] .. py:attribute:: email_confirmation :type: str | None .. py:attribute:: test_order :type: bool | None .. py:attribute:: shipping_label_required :type: bool | None .. py:attribute:: show_boxes :type: bool | None .. py:class:: ReturnToAddress(/, **data: Any) Bases: :py:obj:`ssactivewear_sdk.models._base.SSActivewearBaseModel` Where to send returned items. .. py:attribute:: attn :type: str .. py:attribute:: address :type: str .. py:attribute:: city :type: str .. py:attribute:: state :type: str .. py:attribute:: zip :type: str .. py:class:: ReturnInformation(/, **data: Any) Bases: :py:obj:`ssactivewear_sdk.models._base.SSActivewearBaseModel` Details of a return order. .. py:attribute:: shipping_label_url :type: str | None .. py:attribute:: return_items_required :type: ssactivewear_sdk.models._base.FlexibleBool | None .. py:attribute:: return_to_address :type: ReturnToAddress | None .. py:attribute:: ra_number :type: str .. py:attribute:: original_invoice :type: str .. py:attribute:: return_reason :type: str .. py:property:: original_invoices :type: list[str] The invoice numbers in :attr:`original_invoice`, split apart. .. py:class:: ReturnOrder(/, **data: Any) Bases: :py:obj:`ssactivewear_sdk.models.orders.Order` A return (credit) or replacement order. Credit orders have an ``order_type`` of ``Credit``; replacement orders have ``Replacement``. .. py:attribute:: return_information :type: ReturnInformation | None