Versions in this module Expand all Collapse all v0 v0.1.6 Sep 25, 2023 v0.1.5 Sep 19, 2023 v0.1.4 Sep 18, 2023 Changes in this version type Item + Description string v0.1.3 Sep 15, 2023 Changes in this version type Client + func (c *Client) GetOrder(id int64) (*Order, error) + type Order struct + AssemblyCost int64 + CartCreatedAt string + Comment string + ContactPerson string + CreatedAt string + Discount int64 + DoneInfo string + Email string + GoogleCid string + HasItemWithByThePieceAddition bool + HasJewelry bool + ID int64 + IsEnqueued bool + IsOffice bool + IsRemote bool + IsReorderDenied bool + IsSmallWholesale bool + IsTemperatureLimitsAgreed bool + IsUseDigitalSignature bool + ItemsCount int64 + ManagerAction int64 + ManagerComment string + ManagerID int64 + NotificationTypeID int64 + PaymentID interface{} + PaymentTypeID int64 + PaymentURL string + PersonType int64 + StatusID int64 + Subtotal int64 + Total int64 + UnitCount int64 + UpdatedAt string + UserID int64 v0.1.2 Sep 15, 2023 Changes in this version + func Map(input []I, prepare func(I) O) []O type Client + func (c *Client) CheckoutByProducts(email, phone, name string, cart map[int64]int) (interface{}, error) + func (c *Client) FindSettlement(name string) (ListResponse[Settlement], error) + type DeliveryPoint struct + Address string + ID int64 + SettlementID int64 + type Settlement struct + Country string + ID int64 + KladrID string + Name string + Region string + Type string v0.1.1 Sep 12, 2023 v0.1.0 Sep 12, 2023 Changes in this version + type Author struct + ID int + Name string + type Category struct + Anchor string + AsideCategoriesIDS []int64 + CategoryGroupID *int64 + FullSlug string + H1 string + HasAsMainDesign bool + HasDesign bool + HasDesktopDesign bool + HasLocoSlider bool + HasMobileDesign bool + ID int64 + Icon string + IsAdult int64 + IsComparable bool + IsForMobileApp bool + IsHiddenInMenu int64 + IsItemDescriptionHidden bool + IsLeaf int64 + Level int64 + Name string + Path string + Photo *string + Priority int64 + PriorityHome int64 + PriorityMenu int64 + Sid int64 + Type int64 + type Client struct + func NewClient(opts ...Options) (*Client, error) + func (c *Client) Do(method, path string, body, data any, modificators ...RequestModificator) error + func (c *Client) GetAuthor(id int) (*Author, error) + func (c *Client) GetItem(id int) (*Item, error) + func (c *Client) ListAuthors(page, count int) ([]Author, error) + func (c *Client) ListCategory(page int, count int) (*ListResponse[Category], error) + func (c *Client) ListDeliveryAddress() (interface{}, error) + func (c *Client) ListItems(page int, count int, category int) (*ListResponse[Item], error) + type Error struct + Data string + Msg string + func (e *Error) Error() string + type Item struct + ActionUrls struct{ ... } + ArrivalDate interface{} + AudioFilename interface{} + BalancePluralNameFormat interface{} + BoxCapacity int64 + BoxDepth int64 + BoxHeight float64 + BoxVolume float64 + BoxWidth int64 + BoxtypeID int64 + CanBuyByCredit bool + CartMinDiff string + CategoryID int64 + CertificateTypeID int64 + Color string + CommentsCount int64 + Country struct{ ... } + CountryID int64 + Currency string + CurrencySign string + CustomQtyRulesData interface{} + DateInfo struct{ ... } + Depth float64 + DiscountPercent int64 + EcommerceVariant string + GiftID interface{} + Has3DaysDiscount int64 + Has3_Pay2_Action int64 + Has4_Pay2_Action int64 + HasAction int64 + HasActionDiscountSystem int64 + HasBatteriesGift int64 + HasBattery interface{} + HasBestFabric int64 + HasBestFabric2018 int64 + HasBestTextile int64 + HasBodyDrawing interface{} + HasClockwork interface{} + HasCordCase interface{} + HasDayDiscount int64 + HasDiscount int64 + HasErichKrause int64 + HasGift bool + HasGiftAssignee bool + HasItemMonth int64 + HasJewelryAction int64 + HasLight interface{} + HasNewRules int64 + HasNumberOneMadeInRussia int64 + HasPayLater int64 + HasRadiocontrol interface{} + HasRusPack interface{} + HasRusVoice interface{} + HasSound interface{} + HasSpecialOffer bool + HasSuperpriceOnLine int64 + HasTakeInstallmentsAction int64 + HasTeapot interface{} + HasTermostat interface{} + HasTmGammaGifts int64 + HasUSB interface{} + HasVolumeDiscount bool + HasWeekDiscount int64 + Height int64 + ID int64 + ImageAlt string + ImageTitle string + Img string + InBox int64 + InBoxPluralNameFormat string + InSet int64 + IsAddToCartMultiple bool + IsAdult int64 + IsBoxed int64 + IsDayOffer interface{} + IsDisabled int64 + IsEnough bool + IsEntranceTypeByWeight bool + IsExclusive int64 + IsExportToS3 bool + IsFoundCheaperEnabled bool + IsFreeDelivery bool + IsGift int64 + IsHit int64 + IsImprintable interface{} + IsInertial interface{} + IsItemDescriptionHidden bool + IsLicensed interface{} + IsLoco int64 + IsMarkdown int64 + IsMotley int64 + IsNovelty bool + IsOnACPower interface{} + IsPaidDelivery int64 + IsPaidDeliveryEkb bool + IsPart bool + IsPlant bool + IsPrepayNeeded int64 + IsPriceFixed int64 + IsProtected int64 + IsRecommended bool + IsRemoteStore int64 + IsShockPrice bool + IsSmallWholesaleAvailable bool + IsTireRunFlat int64 + IsTireSpike int64 + IsWeightedGoods bool + IsWholesale int64 + IsWholesaleConservation int64 + Isbn string + ItemIsAddToCartMultiple int64 + ItemMinQty int64 + KeepPackage int64 + LinearMeters interface{} + LoanCategoryID int64 + MarkdownReason string + MaxQty int64 + MeanRating int64 + MinAge interface{} + MinQty int64 + MinSumForFreeDelivery int64 + MinSumOrder interface{} + MinimumOrderQuantity string + Modifier interface{} + ModifierID interface{} + ModifierValue interface{} + ModifiersCount interface{} + Name string + NestedUnit interface{} + NestedUnitID interface{} + NoveltedAt interface{} + Offer interface{} + OfferID interface{} + PackageVolume string + PackingVolumeFactor int64 + PageCount interface{} + PageDescription interface{} + PageKeywords interface{} + PageTitle interface{} + ParentItemID int64 + PerPackage int64 + Photo3DCount interface{} + PhotoIndexes []string + PhotoURL string + PhotoVersions []struct{ ... } + Photos []struct{ ... } + PluralNameFormat string + Power interface{} + Price int64 + PriceMax int64 + PricePerLinearMeter int64 + PricePerSquareMeter int64 + PriceUnit interface{} + ProductVolume float64 + QtyMultiplier int64 + QtyRule string + QtyRules string + QtyRulesData struct{ ... } + RealMinQty int64 + ReasonOfDisabling interface{} + RetailPrice int64 + Series interface{} + SeriesID interface{} + ShortName string + Sid int64 + Size string + SpecialOfferID interface{} + Stuff string + SupplierCode string + SupplyPeriod int64 + SurfaceArea interface{} + TireDiameterID int64 + TireLoadIndexID int64 + TireSeasonID int64 + TireSectionHeightID int64 + TireSpeedIndexID int64 + TireWidthID int64 + Trademark interface{} + TrademarkID interface{} + TransitInSettlement interface{} + TransportConditionID interface{} + Type int64 + UnitID int64 + Vat int64 + VideoFileName interface{} + VideoFileURL bool + Volume interface{} + Weight int64 + WheelDiaID int64 + WheelDiameterID int64 + WheelEtID int64 + WheelLzID int64 + WheelPcdID int64 + WheelWidthID int64 + WholesalePrice int64 + WholesalePriceText string + WholesalePriceUnit interface{} + WholesaleText interface{} + Width int64 + type Link struct + Href string + type Links struct + Last Link + Next Link + Self Link + type ListResponse struct + Items []T + Links Links + Meta Meta + type Logger interface + Logf func(format string, args ...any) + type Meta struct + CurrentPage int64 + PageCount int64 + PerPage int64 + TotalCount int64 + type Options func(*Client) (*Client, error) + func WithApiKey(key string) Options + func WithClient(cl *http.Client) Options + func WithJWT(login, password string) Options + func WithLogger(log Logger) Options + type RequestModificator func(*http.Request) + func SetCount(count int) RequestModificator + func SetHeader(key, val string) RequestModificator + func SetPage(page int) RequestModificator + func SetQuery(key, val string) RequestModificator