""" Options: Date: 2024-12-27 16:05:41 Version: 8.40 Tip: To override a DTO option, remove "#" prefix before updating BaseUrl: https://active-ewebservice.biz/aeservices30/api #GlobalNamespace: #AddServiceStackTypes: True #AddResponseStatus: False #AddImplicitVersion: #AddDescriptionAsComments: True IncludeTypes: GetActiveE3PartyRequest.* #ExcludeTypes: #DefaultImports: datetime,decimal,marshmallow.fields:*,servicestack:*,typing:*,dataclasses:dataclass/field,dataclasses_json:dataclass_json/LetterCase/Undefined/config,enum:Enum/IntEnum #DataClass: #DataClassJson: """ import datetime import decimal from marshmallow.fields import * from servicestack import * from typing import * from dataclasses import dataclass, field from dataclasses_json import dataclass_json, LetterCase, Undefined, config from enum import Enum, IntEnum @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class BaseRequest: # @ApiMember(DataType="string", Description="This is your AIM API Key provided by Tri-Tech", IsRequired=true, Name="ApiKey", ParameterType="header") api_key: Optional[str] = None """ This is your AIM API Key provided by Tri-Tech """ # @ApiMember(DataType="string", Name="OAuthToken", ParameterType="header") o_auth_token: Optional[str] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class InventoryAttribute: name: Optional[str] = None value: Optional[str] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class SerialItem: sas_pk: int = 0 serial: Optional[str] = None retail: Decimal = decimal.Decimal(0) our_price: Decimal = decimal.Decimal(0) sale_price: Optional[Decimal] = None a_e__sale__price: Decimal = decimal.Decimal(0) status: Optional[str] = None sale_info: Optional[str] = None price_a: Decimal = decimal.Decimal(0) price_b: Decimal = decimal.Decimal(0) price_c: Decimal = decimal.Decimal(0) min_price: Decimal = decimal.Decimal(0) notes: Optional[str] = None source: Optional[str] = None attributes: Optional[List[InventoryAttribute]] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class QtyByLoc: location: Optional[str] = None quantity: Decimal = decimal.Decimal(0) locator_code: Optional[str] = None serial_items: Optional[List[SerialItem]] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class ActiveE3Party: model: Optional[str] = None sku: Optional[str] = None web_number: Optional[str] = None desc: Optional[str] = None mfg: Optional[str] = None type: Optional[str] = None barcode: Optional[str] = None barcode_list: Optional[List[str]] = None selcode: Optional[str] = None color: Optional[str] = None size: Optional[str] = None web__cat_1: Optional[str] = None web__cat_2: Optional[str] = None web__cat_3: Optional[str] = None web__cat_4: Optional[str] = None url: Optional[str] = None image__small: Optional[str] = None image__medium: Optional[str] = None web__desc: Optional[str] = None ebay_cat1: Optional[str] = None ebay_cat2: Optional[str] = None ebay_storecat1: Optional[str] = None ebay_storecat2: Optional[str] = None ebay_title: Optional[str] = None ebay_subtitle: Optional[str] = None ebay_desc: Optional[str] = None ebay_template: Optional[str] = None ebay_duration: Optional[str] = None ebay_format: Optional[str] = None ebay_paypreset: Optional[str] = None ebay_shippreset: Optional[str] = None ebay_shipdest: Optional[str] = None ebay_image1: Optional[str] = None ebay_image2: Optional[str] = None ebay_image3: Optional[str] = None ebay_image4: Optional[str] = None ebay_image5: Optional[str] = None ebay_image6: Optional[str] = None ebay_image7: Optional[str] = None ebay_image8: Optional[str] = None ebay_image9: Optional[str] = None ebay_image10: Optional[str] = None ebay_image11: Optional[str] = None ebay_image12: Optional[str] = None ebay_image13: Optional[str] = None ebay_image14: Optional[str] = None ebay_image15: Optional[str] = None ebay_image16: Optional[str] = None ebay_image17: Optional[str] = None ebay_image18: Optional[str] = None ebay_image19: Optional[str] = None ebay_image20: Optional[str] = None ebay_image21: Optional[str] = None ebay_image22: Optional[str] = None ebay_image23: Optional[str] = None ebay_image24: Optional[str] = None product_code: Optional[str] = None dimension: Optional[str] = None restricted__qtys: Optional[str] = None related__products: Optional[str] = None upsell__products: Optional[str] = None requires__products: Optional[str] = None image__large: Optional[str] = None audio__u_r_l: Optional[str] = None mpn: Optional[str] = None composer: Optional[str] = None arranger: Optional[str] = None artist: Optional[str] = None voicing: Optional[str] = None level: Optional[str] = None sample__u_r_l: Optional[str] = None toc: Optional[str] = None s_e_desc: Optional[str] = None s_e_keywords: Optional[str] = None s_e_title: Optional[str] = None notes: Optional[str] = None invoice__notes: Optional[str] = None po_s__reminder: Optional[str] = None location_qtys: Optional[List[QtyByLoc]] = None location_qtys: Optional[str] = None webcat_child1: Optional[str] = None webcat_child2: Optional[str] = None webcat_child3: Optional[str] = None webcat_child4: Optional[str] = None qty: Decimal = decimal.Decimal(0) qty__available: Decimal = decimal.Decimal(0) cost: Decimal = decimal.Decimal(0) our__price: Decimal = decimal.Decimal(0) retail: Decimal = decimal.Decimal(0) min__price: Decimal = decimal.Decimal(0) price__a: Decimal = decimal.Decimal(0) price__b: Decimal = decimal.Decimal(0) price__c: Decimal = decimal.Decimal(0) a_e__sale__price: Decimal = decimal.Decimal(0) weight: Decimal = decimal.Decimal(0) ebay_qty: Decimal = decimal.Decimal(0) ebay_start: Decimal = decimal.Decimal(0) ebay_reserve: Decimal = decimal.Decimal(0) ebay_buyitnow: Decimal = decimal.Decimal(0) w_cost: Decimal = decimal.Decimal(0) margin__perc: Decimal = decimal.Decimal(0) ebay_length: int = 0 ebay_width: int = 0 ebay_depth: int = 0 ebay_wtmajor: int = 0 ebay_wtminor: int = 0 ebay: bool = False web: bool = False published: bool = False approval: bool = False call__to__order: bool = False discontinued: bool = False sell_serials_online: bool = False last_updated: datetime.datetime = datetime.datetime(1, 1, 1) inventory_attributes: Optional[List[InventoryAttribute]] = None ext_pk: int = 0 @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class BaseResponse: # @ApiMember(DataType="BaseResponseResult", Description="", Name="Status", ParameterType="body") status: Optional[BaseResponseResult] = None """ """ @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class GetActiveE3PartyResponse(BaseResponse): start_offset: int = 0 record_count: int = 0 records: Optional[List[ActiveE3Party]] = None # @Route("/GetActiveE3Party", "GET") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class GetActiveE3PartyRequest(BaseRequest, IReturn[GetActiveE3PartyResponse]): """ GetActiveE3PartyRequires active-e Inventory Service or active-e Vortx E-Commerce or active-e 3rd Party E-Commerce """ start_offset: Optional[int] = None record_count: Optional[int] = None # @ApiMember(DataType="string", Description="Inventory, Packages, or NI. Defaults to Inventory.", Name="InventoryType", ParameterType="query") inventory_type: Optional[str] = None """ Inventory, Packages, or NI. Defaults to Inventory. """ # @ApiMember(DataType="string", Description="Only Items in the sent WebCategory will be returned", Name="WebCategory", ParameterType="query") web_category: Optional[str] = None """ Only Items in the sent WebCategory will be returned """ # @ApiMember(DataType="string", Description="If sent, only grab 3 Party Feed records updated after the date passed.", Format="date", Name="Date", ParameterType="query") date: Optional[datetime.datetime] = None """ If sent, only grab 3 Party Feed records updated after the date passed. """ # @ApiMember(DataType="string", Description="If sent, only the SKU sent will be returned", Name="Sku", ParameterType="query") sku: Optional[str] = None """ If sent, only the SKU sent will be returned """ include_attributes: Optional[bool] = None