Documentation
¶
Index ¶
- type APIKey
- type Action
- type AdditionalCode
- type Address
- type Client
- func (c *Client) APICredentials() (CredentialResponse, int, errs.Failure)
- func (c *Client) APIVersions() (VersionResponse, int, errs.Failure)
- func (c *Client) CostGroupEdit(costGroup CostGroup) (SuccessfulResponse, int, errs.Failure)
- func (c *Client) CostGroups() (CostGroupsResponse, int, errs.Failure)
- func (c *Client) CostItemEdit(costItem CostItem) (SuccessfulResponse, int, errs.Failure)
- func (c *Client) CostItems() (CostItemsResponse, int, errs.Failure)
- func (c *Client) Countries() (CountriesResponse, int, errs.Failure)
- func (c *Client) CourierCreate(courier Courier) (CreateResponse, int, errs.Failure)
- func (c *Client) CourierEdit(courier Courier) (SuccessfulResponse, int, errs.Failure)
- func (c *Client) Couriers() (CouriersResponse, int, errs.Failure)
- func (c *Client) Customer(id, by, site string) (CustomerResponse, int, errs.Failure)
- func (c *Client) CustomerCreate(customer Customer, site ...string) (CustomerChangeResponse, int, errs.Failure)
- func (c *Client) CustomerEdit(customer Customer, by string, site ...string) (CustomerChangeResponse, int, errs.Failure)
- func (c *Client) CustomerNoteCreate(note Note, site ...string) (CreateResponse, int, errs.Failure)
- func (c *Client) CustomerNoteDelete(id int) (SuccessfulResponse, int, errs.Failure)
- func (c *Client) CustomerNotes(parameters NotesRequest) (NotesResponse, int, errs.Failure)
- func (c *Client) Customers(parameters CustomersRequest) (CustomersResponse, int, errs.Failure)
- func (c *Client) CustomersCombine(customers []Customer, resultCustomer Customer) (SuccessfulResponse, int, errs.Failure)
- func (c *Client) CustomersFixExternalIds(customers []IdentifiersPair) (SuccessfulResponse, int, errs.Failure)
- func (c *Client) CustomersHistory(parameters CustomersHistoryRequest) (CustomersHistoryResponse, int, errs.Failure)
- func (c *Client) CustomersUpload(customers []Customer, site ...string) (CustomersUploadResponse, int, errs.Failure)
- func (c *Client) DeliveryServiceEdit(deliveryService DeliveryService) (SuccessfulResponse, int, errs.Failure)
- func (c *Client) DeliveryServices() (DeliveryServiceResponse, int, errs.Failure)
- func (c *Client) DeliveryShipment(id int) (DeliveryShipmentResponse, int, errs.Failure)
- func (c *Client) DeliveryShipmentCreate(shipment DeliveryShipment, deliveryType string, site ...string) (DeliveryShipmentUpdateResponse, int, errs.Failure)
- func (c *Client) DeliveryShipmentEdit(shipment DeliveryShipment, site ...string) (DeliveryShipmentUpdateResponse, int, errs.Failure)
- func (c *Client) DeliveryShipments(parameters DeliveryShipmentsRequest) (DeliveryShipmentsResponse, int, errs.Failure)
- func (c *Client) DeliveryTracking(parameters DeliveryTrackingRequest, subcode string) (SuccessfulResponse, int, errs.Failure)
- func (c *Client) DeliveryTypeEdit(deliveryType DeliveryType) (SuccessfulResponse, int, errs.Failure)
- func (c *Client) DeliveryTypes() (DeliveryTypesResponse, int, errs.Failure)
- func (c *Client) GetRequest(urlWithParameters string, versioned ...bool) ([]byte, int, errs.Failure)
- func (c *Client) IntegrationModule(code string) (IntegrationModuleResponse, int, errs.Failure)
- func (c *Client) IntegrationModuleEdit(integrationModule IntegrationModule) (IntegrationModuleEditResponse, int, errs.Failure)
- func (c *Client) Inventories(parameters InventoriesRequest) (InventoriesResponse, int, errs.Failure)
- func (c *Client) InventoriesUpload(inventories []InventoryUpload, site ...string) (StoreUploadResponse, int, errs.Failure)
- func (c *Client) LegalEntities() (LegalEntitiesResponse, int, errs.Failure)
- func (c *Client) LegalEntityEdit(legalEntity LegalEntity) (SuccessfulResponse, int, errs.Failure)
- func (c *Client) Order(id, by, site string) (OrderResponse, int, errs.Failure)
- func (c *Client) OrderCreate(order Order, site ...string) (CreateResponse, int, errs.Failure)
- func (c *Client) OrderEdit(order Order, by string, site ...string) (CreateResponse, int, errs.Failure)
- func (c *Client) OrderMethodEdit(orderMethod OrderMethod) (SuccessfulResponse, int, errs.Failure)
- func (c *Client) OrderMethods() (OrderMethodsResponse, int, errs.Failure)
- func (c *Client) OrderPaymentCreate(payment Payment, site ...string) (CreateResponse, int, errs.Failure)
- func (c *Client) OrderPaymentDelete(id int) (SuccessfulResponse, int, errs.Failure)
- func (c *Client) OrderPaymentEdit(payment Payment, by string, site ...string) (SuccessfulResponse, int, errs.Failure)
- func (c *Client) OrderTypeEdit(orderType OrderType) (SuccessfulResponse, int, errs.Failure)
- func (c *Client) OrderTypes() (OrderTypesResponse, int, errs.Failure)
- func (c *Client) Orders(parameters OrdersRequest) (OrdersResponse, int, errs.Failure)
- func (c *Client) OrdersCombine(technique string, order, resultOrder Order) (OperationResponse, int, errs.Failure)
- func (c *Client) OrdersFixExternalIds(orders []IdentifiersPair) (SuccessfulResponse, int, errs.Failure)
- func (c *Client) OrdersHistory(parameters OrdersHistoryRequest) (CustomersHistoryResponse, int, errs.Failure)
- func (c *Client) OrdersUpload(orders []Order, site ...string) (OrdersUploadResponse, int, errs.Failure)
- func (c *Client) Pack(id int) (PackResponse, int, errs.Failure)
- func (c *Client) PackCreate(pack Pack) (CreateResponse, int, errs.Failure)
- func (c *Client) PackDelete(id int) (SuccessfulResponse, int, errs.Failure)
- func (c *Client) PackEdit(pack Pack) (CreateResponse, int, errs.Failure)
- func (c *Client) Packs(parameters PacksRequest) (PacksResponse, int, errs.Failure)
- func (c *Client) PacksHistory(parameters PacksHistoryRequest) (PacksHistoryResponse, int, errs.Failure)
- func (c *Client) PaymentStatusEdit(paymentStatus PaymentStatus) (SuccessfulResponse, int, errs.Failure)
- func (c *Client) PaymentStatuses() (PaymentStatusesResponse, int, errs.Failure)
- func (c *Client) PaymentTypeEdit(paymentType PaymentType) (SuccessfulResponse, int, errs.Failure)
- func (c *Client) PaymentTypes() (PaymentTypesResponse, int, errs.Failure)
- func (c *Client) PostRequest(url string, postParams url.Values) ([]byte, int, errs.Failure)
- func (c *Client) PriceTypeEdit(priceType PriceType) (SuccessfulResponse, int, errs.Failure)
- func (c *Client) PriceTypes() (PriceTypesResponse, int, errs.Failure)
- func (c *Client) PricesUpload(prices []OfferPriceUpload) (StoreUploadResponse, int, errs.Failure)
- func (c *Client) ProductStatusEdit(productStatus ProductStatus) (SuccessfulResponse, int, errs.Failure)
- func (c *Client) ProductStatuses() (ProductStatusesResponse, int, errs.Failure)
- func (c *Client) Products(parameters ProductsRequest) (ProductsResponse, int, errs.Failure)
- func (c *Client) ProductsGroup(parameters ProductsGroupsRequest) (ProductsGroupsResponse, int, errs.Failure)
- func (c *Client) ProductsProperties(parameters ProductsPropertiesRequest) (ProductsPropertiesResponse, int, errs.Failure)
- func (c *Client) Segments(parameters SegmentsRequest) (SegmentsResponse, int, errs.Failure)
- func (c *Client) SiteEdit(site Site) (SuccessfulResponse, int, errs.Failure)
- func (c *Client) Sites() (SitesResponse, int, errs.Failure)
- func (c *Client) StaticticsUpdate() (SuccessfulResponse, int, errs.Failure)
- func (c *Client) StatusEdit(st Status) (SuccessfulResponse, int, errs.Failure)
- func (c *Client) StatusGroups() (StatusGroupsResponse, int, errs.Failure)
- func (c *Client) Statuses() (StatusesResponse, int, errs.Failure)
- func (c *Client) StoreEdit(store Store) (SuccessfulResponse, int, errs.Failure)
- func (c *Client) Stores() (StoresResponse, int, errs.Failure)
- func (c *Client) Task(id int) (TaskResponse, int, errs.Failure)
- func (c *Client) TaskCreate(task Task, site ...string) (CreateResponse, int, errs.Failure)
- func (c *Client) TaskEdit(task Task, site ...string) (SuccessfulResponse, int, errs.Failure)
- func (c *Client) Tasks(parameters TasksRequest) (TasksResponse, int, errs.Failure)
- func (c *Client) User(id int) (UserResponse, int, errs.Failure)
- func (c *Client) UserGroups(parameters UserGroupsRequest) (UserGroupsResponse, int, errs.Failure)
- func (c *Client) UserStatus(id int, status string) (SuccessfulResponse, int, errs.Failure)
- func (c *Client) Users(parameters UsersRequest) (UsersResponse, int, errs.Failure)
- type Contragent
- type CostGroup
- type CostGroupsResponse
- type CostItem
- type CostItemsResponse
- type CountriesResponse
- type Courier
- type CouriersResponse
- type CreateResponse
- type CredentialResponse
- type Customer
- type CustomerChangeResponse
- type CustomerHistoryRecord
- type CustomerRequest
- type CustomerResponse
- type CustomersFilter
- type CustomersHistoryFilter
- type CustomersHistoryRequest
- type CustomersHistoryResponse
- type CustomersRequest
- type CustomersResponse
- type CustomersUploadRequest
- type CustomersUploadResponse
- type Delivery
- type DeliveryDataField
- type DeliveryHistoryRecord
- type DeliveryService
- type DeliveryServiceResponse
- type DeliveryShipment
- type DeliveryShipmentResponse
- type DeliveryShipmentUpdateResponse
- type DeliveryShipmentsRequest
- type DeliveryShipmentsResponse
- type DeliveryStatus
- type DeliveryTime
- type DeliveryTrackingRequest
- type DeliveryType
- type DeliveryTypesResponse
- type ExternalPhone
- type GeoHierarchyRow
- type IdentifiersPair
- type IntegrationModule
- type IntegrationModuleEditResponse
- type IntegrationModuleResponse
- type Integrations
- type InventoriesFilter
- type InventoriesRequest
- type InventoriesResponse
- type Inventory
- type InventoryUpload
- type InventoryUploadStore
- type LegalEntitiesResponse
- type LegalEntity
- type Note
- type NotesFilter
- type NotesRequest
- type NotesResponse
- type Offer
- type OfferPrice
- type OfferPriceUpload
- type OperationResponse
- type Order
- type OrderDelivery
- type OrderDeliveryData
- type OrderDeliveryService
- type OrderDeliveryTime
- type OrderItem
- type OrderMarketplace
- type OrderMethod
- type OrderMethodsResponse
- type OrderPayment
- type OrderRequest
- type OrderResponse
- type OrderType
- type OrderTypesResponse
- type OrdersFilter
- type OrdersHistoryFilter
- type OrdersHistoryRecord
- type OrdersHistoryRequest
- type OrdersHistoryResponse
- type OrdersRequest
- type OrdersResponse
- type OrdersUploadRequest
- type OrdersUploadResponse
- type Pack
- type PackItem
- type PackResponse
- type PacksFilter
- type PacksHistoryRecord
- type PacksHistoryRequest
- type PacksHistoryResponse
- type PacksRequest
- type PacksResponse
- type Pagination
- type Payment
- type PaymentStatus
- type PaymentStatusesResponse
- type PaymentType
- type PaymentTypesResponse
- type Phone
- type Plate
- type PriceType
- type PriceTypesResponse
- type PriceUpload
- type Product
- type ProductGroup
- type ProductStatus
- type ProductStatusesResponse
- type ProductsFilter
- type ProductsGroupsFilter
- type ProductsGroupsRequest
- type ProductsGroupsResponse
- type ProductsPropertiesFilter
- type ProductsPropertiesRequest
- type ProductsPropertiesResponse
- type ProductsRequest
- type ProductsResponse
- type Property
- type Segment
- type SegmentsFilter
- type SegmentsRequest
- type SegmentsResponse
- type ShipmentFilter
- type Site
- type SitesResponse
- type Source
- type Status
- type StatusGroup
- type StatusGroupsResponse
- type StatusesResponse
- type Store
- type StoreUploadResponse
- type StoresResponse
- type SuccessfulResponse
- type Task
- type TaskResponse
- type TasksFilter
- type TasksRequest
- type TasksResponse
- type Telephony
- type User
- type UserGroup
- type UserGroupsRequest
- type UserGroupsResponse
- type UserResponse
- type UsersFilter
- type UsersRequest
- type UsersResponse
- type VersionResponse
- type Warehouse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct {
Code string `json:"code,omitempty"`
URL string `json:"url,omitempty"`
CallPoints []string `json:"callPoints,omitempty"`
}
Action type
type AdditionalCode ¶
type AdditionalCode struct {
Code string `json:"code,omitempty"`
UserID string `json:"userId,omitempty"`
}
AdditionalCode type
type Address ¶
type Address struct {
Index string `json:"index,omitempty"`
CountryIso string `json:"countryIso,omitempty"`
Region string `json:"region,omitempty"`
RegionID int `json:"regionId,omitempty"`
City string `json:"city,omitempty"`
CityID int `json:"cityId,omitempty"`
CityType string `json:"cityType,omitempty"`
Street string `json:"street,omitempty"`
StreetID int `json:"streetId,omitempty"`
StreetType string `json:"streetType,omitempty"`
Building string `json:"building,omitempty"`
Flat string `json:"flat,omitempty"`
IntercomCode string `json:"intercomCode,omitempty"`
Floor int `json:"floor,omitempty"`
Block int `json:"block,omitempty"`
House string `json:"house,omitempty"`
Metro string `json:"metro,omitempty"`
Notes string `json:"notes,omitempty"`
Text string `json:"text,omitempty"`
}
Address type
type Client ¶
Client type
func (*Client) APICredentials ¶
func (c *Client) APICredentials() (CredentialResponse, int, errs.Failure)
APICredentials get all available API methods for exact account
Example:
var client = v5.New("https://demo.url", "09jIJ")
data, status, err := client.APICredentials()
if err.RuntimeErr != nil {
fmt.Printf("%v", err.ErrorMsg)
}
if status >= http.StatusBadRequest {
fmt.Printf("%v", err.ErrorMsg)
}
for _, value := range data.credentials {
fmt.Printf("%v\n", value)
}
func (*Client) APIVersions ¶
func (c *Client) APIVersions() (VersionResponse, int, errs.Failure)
APIVersions get all available API versions for exact account
Example:
var client = v5.New("https://demo.url", "09jIJ")
data, status, err := client.APIVersions()
if err.RuntimeErr != nil {
fmt.Printf("%v", err.ErrorMsg)
}
if status >= http.StatusBadRequest {
fmt.Printf("%v", err.ErrorMsg)
}
for _, value := range data.versions {
fmt.Printf("%v\n", value)
}
func (*Client) CostGroupEdit ¶
CostGroupEdit method
func (*Client) CostGroups ¶
func (c *Client) CostGroups() (CostGroupsResponse, int, errs.Failure)
CostGroups method
func (*Client) CostItemEdit ¶
CostItemEdit method
func (*Client) CostItems ¶
func (c *Client) CostItems() (CostItemsResponse, int, errs.Failure)
CostItems method
func (*Client) Countries ¶
func (c *Client) Countries() (CountriesResponse, int, errs.Failure)
Countries method
func (*Client) CourierCreate ¶
CourierCreate method
func (*Client) CourierEdit ¶
CourierEdit method
func (*Client) Couriers ¶
func (c *Client) Couriers() (CouriersResponse, int, errs.Failure)
Couriers method
func (*Client) CustomerCreate ¶
func (c *Client) CustomerCreate(customer Customer, site ...string) (CustomerChangeResponse, int, errs.Failure)
CustomerCreate method
func (*Client) CustomerEdit ¶
func (c *Client) CustomerEdit(customer Customer, by string, site ...string) (CustomerChangeResponse, int, errs.Failure)
CustomerEdit method
func (*Client) CustomerNoteCreate ¶
CustomerNoteCreate method
func (*Client) CustomerNoteDelete ¶
CustomerNoteDelete method
func (*Client) CustomerNotes ¶
func (c *Client) CustomerNotes(parameters NotesRequest) (NotesResponse, int, errs.Failure)
CustomerNotes list method
func (*Client) Customers ¶
func (c *Client) Customers(parameters CustomersRequest) (CustomersResponse, int, errs.Failure)
Customers list method
func (*Client) CustomersCombine ¶
func (c *Client) CustomersCombine(customers []Customer, resultCustomer Customer) (SuccessfulResponse, int, errs.Failure)
CustomersCombine method
func (*Client) CustomersFixExternalIds ¶
func (c *Client) CustomersFixExternalIds(customers []IdentifiersPair) (SuccessfulResponse, int, errs.Failure)
CustomersFixExternalIds method
func (*Client) CustomersHistory ¶
func (c *Client) CustomersHistory(parameters CustomersHistoryRequest) (CustomersHistoryResponse, int, errs.Failure)
CustomersHistory method
func (*Client) CustomersUpload ¶
func (c *Client) CustomersUpload(customers []Customer, site ...string) (CustomersUploadResponse, int, errs.Failure)
CustomersUpload method
func (*Client) DeliveryServiceEdit ¶
func (c *Client) DeliveryServiceEdit(deliveryService DeliveryService) (SuccessfulResponse, int, errs.Failure)
DeliveryServiceEdit method
func (*Client) DeliveryServices ¶
func (c *Client) DeliveryServices() (DeliveryServiceResponse, int, errs.Failure)
DeliveryServices method
func (*Client) DeliveryShipment ¶
DeliveryShipment method
func (*Client) DeliveryShipmentCreate ¶
func (c *Client) DeliveryShipmentCreate(shipment DeliveryShipment, deliveryType string, site ...string) (DeliveryShipmentUpdateResponse, int, errs.Failure)
DeliveryShipmentCreate method
func (*Client) DeliveryShipmentEdit ¶
func (c *Client) DeliveryShipmentEdit(shipment DeliveryShipment, site ...string) (DeliveryShipmentUpdateResponse, int, errs.Failure)
DeliveryShipmentEdit method
func (*Client) DeliveryShipments ¶
func (c *Client) DeliveryShipments(parameters DeliveryShipmentsRequest) (DeliveryShipmentsResponse, int, errs.Failure)
DeliveryShipments method
func (*Client) DeliveryTracking ¶
func (c *Client) DeliveryTracking(parameters DeliveryTrackingRequest, subcode string) (SuccessfulResponse, int, errs.Failure)
DeliveryTracking method
func (*Client) DeliveryTypeEdit ¶
func (c *Client) DeliveryTypeEdit(deliveryType DeliveryType) (SuccessfulResponse, int, errs.Failure)
DeliveryTypeEdit method
func (*Client) DeliveryTypes ¶
func (c *Client) DeliveryTypes() (DeliveryTypesResponse, int, errs.Failure)
DeliveryTypes method
func (*Client) GetRequest ¶
func (c *Client) GetRequest(urlWithParameters string, versioned ...bool) ([]byte, int, errs.Failure)
GetRequest implements GET Request
func (*Client) IntegrationModule ¶
IntegrationModule method
func (*Client) IntegrationModuleEdit ¶
func (c *Client) IntegrationModuleEdit(integrationModule IntegrationModule) (IntegrationModuleEditResponse, int, errs.Failure)
IntegrationModuleEdit method
func (*Client) Inventories ¶
func (c *Client) Inventories(parameters InventoriesRequest) (InventoriesResponse, int, errs.Failure)
Inventories method
func (*Client) InventoriesUpload ¶
func (c *Client) InventoriesUpload(inventories []InventoryUpload, site ...string) (StoreUploadResponse, int, errs.Failure)
InventoriesUpload method
func (*Client) LegalEntities ¶
func (c *Client) LegalEntities() (LegalEntitiesResponse, int, errs.Failure)
LegalEntities method
func (*Client) LegalEntityEdit ¶
func (c *Client) LegalEntityEdit(legalEntity LegalEntity) (SuccessfulResponse, int, errs.Failure)
LegalEntityEdit method
func (*Client) OrderCreate ¶
OrderCreate method
func (*Client) OrderEdit ¶
func (c *Client) OrderEdit(order Order, by string, site ...string) (CreateResponse, int, errs.Failure)
OrderEdit method
func (*Client) OrderMethodEdit ¶
func (c *Client) OrderMethodEdit(orderMethod OrderMethod) (SuccessfulResponse, int, errs.Failure)
OrderMethodEdit method
func (*Client) OrderMethods ¶
func (c *Client) OrderMethods() (OrderMethodsResponse, int, errs.Failure)
OrderMethods method
func (*Client) OrderPaymentCreate ¶
func (c *Client) OrderPaymentCreate(payment Payment, site ...string) (CreateResponse, int, errs.Failure)
OrderPaymentCreate method
func (*Client) OrderPaymentDelete ¶
OrderPaymentDelete method
func (*Client) OrderPaymentEdit ¶
func (c *Client) OrderPaymentEdit(payment Payment, by string, site ...string) (SuccessfulResponse, int, errs.Failure)
OrderPaymentEdit method
func (*Client) OrderTypeEdit ¶
OrderTypeEdit method
func (*Client) OrderTypes ¶
func (c *Client) OrderTypes() (OrderTypesResponse, int, errs.Failure)
OrderTypes method
func (*Client) Orders ¶
func (c *Client) Orders(parameters OrdersRequest) (OrdersResponse, int, errs.Failure)
Orders list method
func (*Client) OrdersCombine ¶
func (c *Client) OrdersCombine(technique string, order, resultOrder Order) (OperationResponse, int, errs.Failure)
OrdersCombine method
func (*Client) OrdersFixExternalIds ¶
func (c *Client) OrdersFixExternalIds(orders []IdentifiersPair) (SuccessfulResponse, int, errs.Failure)
OrdersFixExternalIds method
func (*Client) OrdersHistory ¶
func (c *Client) OrdersHistory(parameters OrdersHistoryRequest) (CustomersHistoryResponse, int, errs.Failure)
OrdersHistory method
func (*Client) OrdersUpload ¶
func (c *Client) OrdersUpload(orders []Order, site ...string) (OrdersUploadResponse, int, errs.Failure)
OrdersUpload method
func (*Client) PackCreate ¶
PackCreate method
func (*Client) PackDelete ¶
PackDelete method
func (*Client) Packs ¶
func (c *Client) Packs(parameters PacksRequest) (PacksResponse, int, errs.Failure)
Packs list method
func (*Client) PacksHistory ¶
func (c *Client) PacksHistory(parameters PacksHistoryRequest) (PacksHistoryResponse, int, errs.Failure)
PacksHistory method
func (*Client) PaymentStatusEdit ¶
func (c *Client) PaymentStatusEdit(paymentStatus PaymentStatus) (SuccessfulResponse, int, errs.Failure)
PaymentStatusEdit method
func (*Client) PaymentStatuses ¶
func (c *Client) PaymentStatuses() (PaymentStatusesResponse, int, errs.Failure)
PaymentStatuses method
func (*Client) PaymentTypeEdit ¶
func (c *Client) PaymentTypeEdit(paymentType PaymentType) (SuccessfulResponse, int, errs.Failure)
PaymentTypeEdit method
func (*Client) PaymentTypes ¶
func (c *Client) PaymentTypes() (PaymentTypesResponse, int, errs.Failure)
PaymentTypes method
func (*Client) PostRequest ¶
PostRequest implements POST Request
func (*Client) PriceTypeEdit ¶
PriceTypeEdit method
func (*Client) PriceTypes ¶
func (c *Client) PriceTypes() (PriceTypesResponse, int, errs.Failure)
PriceTypes method
func (*Client) PricesUpload ¶
func (c *Client) PricesUpload(prices []OfferPriceUpload) (StoreUploadResponse, int, errs.Failure)
PricesUpload method
func (*Client) ProductStatusEdit ¶
func (c *Client) ProductStatusEdit(productStatus ProductStatus) (SuccessfulResponse, int, errs.Failure)
ProductStatusEdit method
func (*Client) ProductStatuses ¶
func (c *Client) ProductStatuses() (ProductStatusesResponse, int, errs.Failure)
ProductStatuses method
func (*Client) Products ¶
func (c *Client) Products(parameters ProductsRequest) (ProductsResponse, int, errs.Failure)
Products method
func (*Client) ProductsGroup ¶
func (c *Client) ProductsGroup(parameters ProductsGroupsRequest) (ProductsGroupsResponse, int, errs.Failure)
ProductsGroup method
func (*Client) ProductsProperties ¶
func (c *Client) ProductsProperties(parameters ProductsPropertiesRequest) (ProductsPropertiesResponse, int, errs.Failure)
ProductsProperties method
func (*Client) Segments ¶
func (c *Client) Segments(parameters SegmentsRequest) (SegmentsResponse, int, errs.Failure)
Segments get segments
func (*Client) StaticticsUpdate ¶
func (c *Client) StaticticsUpdate() (SuccessfulResponse, int, errs.Failure)
StaticticsUpdate update statistic
func (*Client) StatusEdit ¶
StatusEdit method
func (*Client) StatusGroups ¶
func (c *Client) StatusGroups() (StatusGroupsResponse, int, errs.Failure)
StatusGroups method
func (*Client) Statuses ¶
func (c *Client) Statuses() (StatusesResponse, int, errs.Failure)
Statuses method
func (*Client) TaskCreate ¶
TaskCreate method
func (*Client) Tasks ¶
func (c *Client) Tasks(parameters TasksRequest) (TasksResponse, int, errs.Failure)
Tasks list method
func (*Client) UserGroups ¶
func (c *Client) UserGroups(parameters UserGroupsRequest) (UserGroupsResponse, int, errs.Failure)
UserGroups list method
func (*Client) UserStatus ¶
UserStatus update method
func (*Client) Users ¶
func (c *Client) Users(parameters UsersRequest) (UsersResponse, int, errs.Failure)
Users list method
type Contragent ¶
type Contragent struct {
ContragentType string `json:"contragentType,omitempty"`
LegalName string `json:"legalName,omitempty"`
LegalAddress string `json:"legalAddress,omitempty"`
INN string `json:"INN,omitempty"`
OKPO string `json:"OKPO,omitempty"`
KPP string `json:"KPP,omitempty"`
OGRN string `json:"OGRN,omitempty"`
OGRNIP string `json:"OGRNIP,omitempty"`
CertificateNumber string `json:"certificateNumber,omitempty"`
CertificateDate string `json:"certificateDate,omitempty"`
BIK string `json:"BIK,omitempty"`
Bank string `json:"bank,omitempty"`
BankAddress string `json:"bankAddress,omitempty"`
CorrAccount string `json:"corrAccount,omitempty"`
BankAccount string `json:"bankAccount,omitempty"`
}
Contragent type
type CostGroup ¶
type CostGroup struct {
Name string `json:"name,omitempty"`
Code string `json:"code,omitempty"`
Color string `json:"color,omitempty"`
Active bool `json:"active,omitempty"`
Ordering int `json:"ordering,omitempty"`
}
CostGroup type
type CostGroupsResponse ¶
type CostGroupsResponse struct {
Success bool `json:"success"`
CostGroups []CostGroup `json:"costGroups,omitempty,brackets"`
}
CostGroupsResponse type
type CostItem ¶
type CostItem struct {
Name string `json:"name,omitempty"`
Code string `json:"code,omitempty"`
Group string `json:"group,omitempty"`
Type string `json:"type,omitempty"`
Active bool `json:"active,omitempty"`
AppliesToOrders bool `json:"appliesToOrders,omitempty"`
AppliesToUsers bool `json:"appliesToUsers,omitempty"`
Ordering int `json:"ordering,omitempty"`
Source *Source `json:"source,omitempty"`
}
CostItem type
type CostItemsResponse ¶
type CostItemsResponse struct {
Success bool `json:"success"`
CostItems []CostItem `json:"costItems,omitempty,brackets"`
}
CostItemsResponse type
type CountriesResponse ¶
type CountriesResponse struct {
Success bool `json:"success"`
CountriesIso []string `json:"countriesIso,omitempty,brackets"`
}
CountriesResponse type
type Courier ¶
type Courier struct {
ID int `json:"id,omitempty"`
FirstName string `json:"firstName,omitempty"`
LastName string `json:"lastName,omitempty"`
Patronymic string `json:"patronymic,omitempty"`
Email string `json:"email,omitempty"`
Description string `json:"description,omitempty"`
Active bool `json:"active,omitempty"`
Phone *Phone `json:"phone,omitempty"`
}
Courier type
type CouriersResponse ¶
type CouriersResponse struct {
Success bool `json:"success"`
Couriers []Courier `json:"couriers,omitempty,brackets"`
}
CouriersResponse type
type CreateResponse ¶
CreateResponse type
type CredentialResponse ¶
type CredentialResponse struct {
Success bool `json:"success,omitempty"`
Credentials []string `json:"credentials,brackets,omitempty"`
SiteAccess string `json:"siteAccess,omitempty"`
SitesAvailable []string `json:"sitesAvailable,brackets,omitempty"`
}
CredentialResponse return available API methods
type Customer ¶
type Customer struct {
ID int `json:"id,omitempty"`
ExternalID string `json:"externalId,omitempty"`
FirstName string `json:"firstName,omitempty"`
LastName string `json:"lastName,omitempty"`
Patronymic string `json:"patronymic,omitempty"`
Sex string `json:"sex,omitempty"`
Email string `json:"email,omitempty"`
Phones []Phone `json:"phones,brackets,omitempty"`
Address *Address `json:"address,omitempty"`
CreatedAt string `json:"createdAt,omitempty"`
Birthday string `json:"birthday,omitempty"`
ManagerID int `json:"managerId,omitempty"`
Vip bool `json:"vip,omitempty"`
Bad bool `json:"bad,omitempty"`
Site string `json:"site,omitempty"`
Source *Source `json:"source,omitempty"`
Contragent *Contragent `json:"contragent,omitempty"`
PersonalDiscount float32 `json:"personalDiscount,omitempty"`
CumulativeDiscount float32 `json:"cumulativeDiscount,omitempty"`
DiscountCardNumber string `json:"discountCardNumber,omitempty"`
EmailMarketingUnsubscribedAt string `json:"emailMarketingUnsubscribedAt,omitempty"`
AvgMarginSumm float32 `json:"avgMarginSumm,omitempty"`
MarginSumm float32 `json:"marginSumm,omitempty"`
TotalSumm float32 `json:"totalSumm,omitempty"`
AverageSumm float32 `json:"averageSumm,omitempty"`
OrdersCount int `json:"ordersCount,omitempty"`
CostSumm float32 `json:"costSumm,omitempty"`
MaturationTime int `json:"maturationTime,omitempty"`
FirstClientID string `json:"firstClientId,omitempty"`
LastClientID string `json:"lastClientId,omitempty"`
BrowserID string `json:"browserId,omitempty"`
CustomFields []map[string]string `json:"customFields,omitempty,brackets"`
}
Customer type
type CustomerChangeResponse ¶
type CustomerChangeResponse struct {
Success bool `json:"success"`
ID int `json:"id,omitempty"`
State string `json:"state,omitempty"`
}
CustomerChangeResponse type
type CustomerHistoryRecord ¶
type CustomerHistoryRecord struct {
ID int `json:"id,omitempty"`
CreatedAt string `json:"createdAt,omitempty"`
Created bool `json:"created,omitempty"`
Deleted bool `json:"deleted,omitempty"`
Source string `json:"source,omitempty"`
Field string `json:"field,omitempty"`
User *User `json:"user,omitempty,brackets"`
APIKey *APIKey `json:"apiKey,omitempty,brackets"`
Customer *Customer `json:"customer,omitempty,brackets"`
}
CustomerHistoryRecord type
type CustomerRequest ¶
CustomerRequest type
type CustomerResponse ¶
type CustomerResponse struct {
Success bool `json:"success"`
Customer *Customer `json:"customer,omitempty,brackets"`
}
CustomerResponse type
type CustomersFilter ¶
type CustomersFilter struct {
Ids []string `url:"ids,omitempty,brackets"`
ExternalIds []string `url:"externalIds,omitempty,brackets"`
City string `url:"city,omitempty"`
Region string `url:"region,omitempty"`
Name string `url:"name,omitempty"`
Email string `url:"email,omitempty"`
Notes string `url:"notes,omitempty"`
MinOrdersCount int `url:"minOrdersCount,omitempty"`
MaxOrdersCount int `url:"maxOrdersCount,omitempty"`
MinAverageSumm float32 `url:"minAverageSumm,omitempty"`
MaxAverageSumm float32 `url:"maxAverageSumm,omitempty"`
MinTotalSumm float32 `url:"minTotalSumm,omitempty"`
MaxTotalSumm float32 `url:"maxTotalSumm,omitempty"`
MinCostSumm float32 `url:"minCostSumm,omitempty"`
MaxCostSumm float32 `url:"maxCostSumm,omitempty"`
ClassSegment string `url:"classSegment,omitempty"`
Vip int `url:"vip,omitempty"`
Bad int `url:"bad,omitempty"`
Attachments int `url:"attachments,omitempty"`
Online int `url:"online,omitempty"`
EmailMarketingUnsubscribed int `url:"emailMarketingUnsubscribed,omitempty"`
Sex string `url:"sex,omitempty"`
Segment string `url:"segment,omitempty"`
DiscountCardNumber string `url:"discountCardNumber,omitempty"`
ContragentName string `url:"contragentName,omitempty"`
ContragentInn string `url:"contragentInn,omitempty"`
ContragentKpp string `url:"contragentKpp,omitempty"`
ContragentBik string `url:"contragentBik,omitempty"`
ContragentCorrAccount string `url:"contragentCorrAccount,omitempty"`
ContragentBankAccount string `url:"contragentBankAccount,omitempty"`
ContragentTypes []string `url:"contragentTypes,omitempty,brackets"`
Sites []string `url:"sites,omitempty,brackets"`
Managers []string `url:"managers,omitempty,brackets"`
ManagerGroups []string `url:"managerGroups,omitempty,brackets"`
DateFrom string `url:"dateFrom,omitempty"`
DateTo string `url:"dateTo,omitempty"`
FirstWebVisitFrom string `url:"firstWebVisitFrom,omitempty"`
FirstWebVisitTo string `url:"firstWebVisitTo,omitempty"`
LastWebVisitFrom string `url:"lastWebVisitFrom,omitempty"`
LastWebVisitTo string `url:"lastWebVisitTo,omitempty"`
FirstOrderFrom string `url:"firstOrderFrom,omitempty"`
FirstOrderTo string `url:"firstOrderTo,omitempty"`
LastOrderFrom string `url:"lastOrderFrom,omitempty"`
LastOrderTo string `url:"lastOrderTo,omitempty"`
BrowserID string `url:"browserId,omitempty"`
Commentary string `url:"commentary,omitempty"`
SourceName string `url:"sourceName,omitempty"`
MediumName string `url:"mediumName,omitempty"`
CampaignName string `url:"campaignName,omitempty"`
KeywordName string `url:"keywordName,omitempty"`
AdContentName string `url:"adContentName,omitempty"`
CustomFields map[string]string `url:"customFields,omitempty,brackets"`
}
CustomersFilter type
type CustomersHistoryFilter ¶
type CustomersHistoryFilter struct {
CustomerID int `url:"customerId,omitempty"`
SinceID int `url:"sinceId,omitempty"`
CustomerExternalID string `url:"customerExternalId,omitempty"`
StartDate string `url:"startDate,omitempty"`
EndDate string `url:"endDate,omitempty"`
}
CustomersHistoryFilter type
type CustomersHistoryRequest ¶
type CustomersHistoryRequest struct {
Filter CustomersHistoryFilter `url:"filter,omitempty"`
Limit int `url:"limit,omitempty"`
Page int `url:"page,omitempty"`
}
CustomersHistoryRequest type
type CustomersHistoryResponse ¶
type CustomersHistoryResponse struct {
Success bool `json:"success,omitempty"`
GeneratedAt string `json:"generatedAt,omitempty"`
History []CustomerHistoryRecord `json:"history,omitempty,brackets"`
Pagination *Pagination `json:"pagination,omitempty"`
}
CustomersHistoryResponse type
type CustomersRequest ¶
type CustomersRequest struct {
Filter CustomersFilter `url:"filter,omitempty"`
Limit int `url:"limit,omitempty"`
Page int `url:"page,omitempty"`
}
CustomersRequest type
type CustomersResponse ¶
type CustomersResponse struct {
Success bool `json:"success"`
Pagination *Pagination `json:"pagination,omitempty"`
Customers []Customer `json:"customers,omitempty,brackets"`
}
CustomersResponse type
type CustomersUploadRequest ¶
type CustomersUploadRequest struct {
Customers []Customer `url:"customers,omitempty,brackets"`
Site string `url:"site,omitempty"`
}
CustomersUploadRequest type
type CustomersUploadResponse ¶
type CustomersUploadResponse struct {
Success bool `json:"success"`
UploadedCustomers []IdentifiersPair `json:"uploadedCustomers,omitempty,brackets"`
}
CustomersUploadResponse type
type Delivery ¶
type Delivery struct {
Description string `json:"description,omitempty"`
Actions []Action `json:"actions,omitempty,brackets"`
PayerType []string `json:"payerType,omitempty,brackets"`
PlatePrintLimit int `json:"platePrintLimit,omitempty"`
RateDeliveryCost bool `json:"rateDeliveryCost,omitempty"`
AllowPackages bool `json:"allowPackages,omitempty"`
CodAvailable bool `json:"codAvailable,omitempty"`
SelfShipmentAvailable bool `json:"selfShipmentAvailable,omitempty"`
AllowTrackNumber bool `json:"allowTrackNumber,omitempty"`
AvailableCountries []string `json:"availableCountries,omitempty"`
RequiredFields []string `json:"requiredFields,omitempty"`
StatusList []DeliveryStatus `json:"statusList,omitempty"`
PlateList []Plate `json:"plateList,omitempty"`
DeliveryDataFieldList []DeliveryDataField `json:"deliveryDataFieldList,omitempty"`
ShipmentDataFieldList []DeliveryDataField `json:"shipmentDataFieldList,omitempty"`
}
Delivery type
type DeliveryDataField ¶
type DeliveryDataField struct {
Code string `json:"code,omitempty"`
Label string `json:"label,omitempty"`
Hint string `json:"hint,omitempty"`
Type string `json:"type,omitempty"`
AutocompleteURL string `json:"autocompleteUrl,omitempty"`
Multiple bool `json:"multiple,omitempty"`
Required bool `json:"required,omitempty"`
AffectsCost bool `json:"affectsCost,omitempty"`
Editable bool `json:"editable,omitempty"`
}
DeliveryDataField type
type DeliveryHistoryRecord ¶
type DeliveryHistoryRecord struct {
Code string `json:"code,omitempty"`
UpdatedAt string `json:"updatedAt,omitempty"`
Comment string `json:"comment,omitempty"`
}
DeliveryHistoryRecord type
type DeliveryService ¶
type DeliveryService struct {
Name string `json:"name,omitempty"`
Code string `json:"code,omitempty"`
Active bool `json:"active,omitempty"`
}
DeliveryService type
type DeliveryServiceResponse ¶
type DeliveryServiceResponse struct {
Success bool `json:"success"`
DeliveryServices map[string]DeliveryService `json:"deliveryServices,omitempty,brackets"`
}
DeliveryServiceResponse type
type DeliveryShipment ¶
type DeliveryShipment struct {
IntegrationCode string `json:"integrationCode,omitempty"`
ID int `json:"id,omitempty"`
ExternalID string `json:"externalId,omitempty"`
DeliveryType string `json:"deliveryType,omitempty"`
Store string `json:"store,omitempty"`
ManagerID int `json:"managerId,omitempty"`
Status string `json:"status,omitempty"`
Date string `json:"date,omitempty"`
Time *DeliveryTime `json:"time,omitempty"`
LunchTime string `json:"lunchTime,omitempty"`
Comment string `json:"comment,omitempty"`
Orders []Order `json:"orders,omitempty,brackets"`
ExtraData map[string]string `json:"extraData,omitempty,brackets"`
}
DeliveryShipment type
type DeliveryShipmentResponse ¶
type DeliveryShipmentResponse struct {
Success bool `json:"success"`
DeliveryShipment *DeliveryShipment `json:"deliveryShipment,omitempty,brackets"`
}
DeliveryShipmentResponse type
type DeliveryShipmentUpdateResponse ¶
type DeliveryShipmentUpdateResponse struct {
Success bool `json:"success"`
ID int `json:"id,omitempty"`
Status string `json:"status,omitempty"`
}
DeliveryShipmentUpdateResponse type
type DeliveryShipmentsRequest ¶
type DeliveryShipmentsRequest struct {
Filter ShipmentFilter `url:"filter,omitempty"`
Limit int `url:"limit,omitempty"`
Page int `url:"page,omitempty"`
}
DeliveryShipmentsRequest type
type DeliveryShipmentsResponse ¶
type DeliveryShipmentsResponse struct {
Success bool `json:"success"`
Pagination *Pagination `json:"pagination,omitempty"`
DeliveryShipments []DeliveryShipment `json:"deliveryShipments,omitempty,brackets"`
}
DeliveryShipmentsResponse type
type DeliveryStatus ¶
type DeliveryStatus struct {
Code string `json:"code,omitempty"`
Name string `json:"name,omitempty"`
IsEditable bool `json:"isEditable,omitempty"`
}
DeliveryStatus type
type DeliveryTime ¶
type DeliveryTime struct {
From string `json:"from,omitempty"`
To string `json:"to,omitempty"`
Custom string `json:"custom,omitempty"`
}
DeliveryTime type
type DeliveryTrackingRequest ¶
type DeliveryTrackingRequest struct {
DeliveryID string `url:"deliveryId,omitempty"`
TrackNumber string `url:"trackNumber,omitempty"`
History []DeliveryHistoryRecord `url:"history,omitempty,brackets"`
ExtraData map[string]string `url:"extraData,omitempty,brackets"`
}
DeliveryTrackingRequest type
type DeliveryType ¶
type DeliveryType struct {
Name string `json:"name,omitempty"`
Code string `json:"code,omitempty"`
Active bool `json:"active,omitempty"`
DefaultCost float32 `json:"defaultCost,omitempty"`
DefaultNetCost float32 `json:"defaultNetCost,omitempty"`
Description string `json:"description,omitempty"`
IntegrationCode string `json:"integrationCode,omitempty"`
VatRate string `json:"vatRate,omitempty"`
DefaultForCrm bool `json:"defaultForCrm,omitempty"`
DeliveryServices []string `json:"deliveryServices,omitempty"`
PaymentTypes []string `json:"paymentTypes,omitempty"`
}
DeliveryType type
type DeliveryTypesResponse ¶
type DeliveryTypesResponse struct {
Success bool `json:"success"`
DeliveryTypes map[string]DeliveryType `json:"deliveryTypes,omitempty,brackets"`
}
DeliveryTypesResponse type
type ExternalPhone ¶
type ExternalPhone struct {
SiteCode string `json:"siteCode,omitempty"`
ExternalPhone string `json:"externalPhone,omitempty"`
}
ExternalPhone type
type GeoHierarchyRow ¶
type GeoHierarchyRow struct {
Country string `json:"country,omitempty"`
Region string `json:"region,omitempty"`
RegionID int `json:"regionId,omitempty"`
City string `json:"city,omitempty"`
CityID int `json:"cityId,omitempty"`
}
GeoHierarchyRow type
type IdentifiersPair ¶
type IdentifiersPair struct {
ID int `json:"id,omitempty"`
ExternalID string `json:"externalId,omitempty"`
}
IdentifiersPair type
type IntegrationModule ¶
type IntegrationModule struct {
Code string `json:"code,omitempty"`
IntegrationCode string `json:"integrationCode,omitempty"`
Active bool `json:"active,omitempty"`
Freeze bool `json:"freeze,omitempty"`
Native bool `json:"native,omitempty"`
Name string `json:"name,omitempty"`
Logo string `json:"logo,omitempty"`
ClientID string `json:"clientId,omitempty"`
BaseURL string `json:"baseUrl,omitempty"`
AccountURL string `json:"accountUrl,omitempty"`
AvailableCountries []string `json:"availableCountries,omitempty"`
Actions []string `json:"actions,omitempty"`
Integrations *Integrations `json:"integrations,omitempty"`
}
IntegrationModule type
type IntegrationModuleEditResponse ¶
type IntegrationModuleEditResponse struct {
Success bool `json:"success"`
Info map[string]string `json:"info,omitempty,brackets"`
}
IntegrationModuleEditResponse type
type IntegrationModuleResponse ¶
type IntegrationModuleResponse struct {
Success bool `json:"success"`
IntegrationModule *IntegrationModule `json:"integrationModule,omitempty"`
}
IntegrationModuleResponse type
type Integrations ¶
type Integrations struct {
Telephony *Telephony `json:"telephony,omitempty"`
Delivery *Delivery `json:"delivery,omitempty"`
Store *Warehouse `json:"store,omitempty"`
}
Integrations type
type InventoriesFilter ¶
type InventoriesFilter struct {
Ids []int `url:"ids,omitempty,brackets"`
ProductExternalID string `url:"productExternalId,omitempty"`
ProductArticle string `url:"productArticle,omitempty"`
OfferExternalID string `url:"offerExternalId,omitempty"`
OfferXMLID string `url:"offerXmlId,omitempty"`
OfferArticle string `url:"offerArticle,omitempty"`
ProductActive int `url:"productActive,omitempty"`
Details int `url:"details,omitempty"`
Sites []string `url:"sites,omitempty,brackets"`
}
InventoriesFilter type
type InventoriesRequest ¶
type InventoriesRequest struct {
Filter InventoriesFilter `url:"filter,omitempty"`
Limit int `url:"limit,omitempty"`
Page int `url:"page,omitempty"`
}
InventoriesRequest type
type InventoriesResponse ¶
type InventoriesResponse struct {
Success bool `json:"success"`
Pagination *Pagination `json:"pagination,omitempty"`
Offers []Offer `json:"offers,omitempty"`
}
InventoriesResponse type
type Inventory ¶
type Inventory struct {
PurchasePrice float32 `json:"purchasePrice,omitempty"`
Quantity float32 `json:"quantity,omitempty"`
Store string `json:"store,omitempty"`
}
Inventory type
type InventoryUpload ¶
type InventoryUpload struct {
ID int `json:"id,omitempty"`
ExternalID string `json:"externalId,omitempty"`
XMLID string `json:"xmlId,omitempty"`
Stores []InventoryUploadStore `json:"stores,omitempty"`
}
InventoryUpload type
type InventoryUploadStore ¶
type InventoryUploadStore struct {
PurchasePrice float32 `json:"purchasePrice,omitempty"`
Available float32 `json:"available,omitempty"`
Code string `json:"code,omitempty"`
}
InventoryUploadStore type
type LegalEntitiesResponse ¶
type LegalEntitiesResponse struct {
Success bool `json:"success"`
LegalEntities []LegalEntity `json:"legalEntities,omitempty,brackets"`
}
LegalEntitiesResponse type
type LegalEntity ¶
type LegalEntity struct {
Code string `json:"code,omitempty"`
VatRate string `json:"vatRate,omitempty"`
CountryIso string `json:"countryIso,omitempty"`
ContragentType string `json:"contragentType,omitempty"`
LegalName string `json:"legalName,omitempty"`
LegalAddress string `json:"legalAddress,omitempty"`
INN string `json:"INN,omitempty"`
OKPO string `json:"OKPO,omitempty"`
KPP string `json:"KPP,omitempty"`
OGRN string `json:"OGRN,omitempty"`
OGRNIP string `json:"OGRNIP,omitempty"`
CertificateNumber string `json:"certificateNumber,omitempty"`
CertificateDate string `json:"certificateDate,omitempty"`
BIK string `json:"BIK,omitempty"`
Bank string `json:"bank,omitempty"`
BankAddress string `json:"bankAddress,omitempty"`
CorrAccount string `json:"corrAccount,omitempty"`
BankAccount string `json:"bankAccount,omitempty"`
}
LegalEntity type
type Note ¶
type Note struct {
ID int `json:"id,omitempty"`
ManagerID int `json:"managerId,omitempty"`
Text string `json:"text,omitempty"`
CreatedAt string `json:"createdAt,omitempty"`
Customer *Customer `json:"customer,omitempty"`
}
Note type
type NotesFilter ¶
type NotesFilter struct {
Ids []int `url:"ids,omitempty,brackets"`
CustomerIds []int `url:"customerIds,omitempty,brackets"`
CustomerExternalIds []string `url:"customerExternalIds,omitempty,brackets"`
ManagerIds []int `url:"managerIds,omitempty,brackets"`
Text string `url:"text,omitempty"`
CreatedAtFrom string `url:"createdAtFrom,omitempty"`
CreatedAtTo string `url:"createdAtTo,omitempty"`
}
NotesFilter type
type NotesRequest ¶
type NotesRequest struct {
Filter TasksFilter `url:"filter,omitempty"`
Limit int `url:"limit,omitempty"`
Page int `url:"page,omitempty"`
}
NotesRequest type
type NotesResponse ¶
type NotesResponse struct {
Success bool `json:"success"`
Pagination *Pagination `json:"pagination,omitempty"`
Notes []Note `json:"notes,omitempty,brackets"`
}
NotesResponse type
type Offer ¶
type Offer struct {
ID int `json:"id,omitempty"`
ExternalID string `json:"externalId,omitempty"`
Name string `json:"name,omitempty"`
XMLID string `json:"xmlId,omitempty"`
Article string `json:"article,omitempty"`
VatRate string `json:"vatRate,omitempty"`
Price float32 `json:"price,omitempty"`
PurchasePrice float32 `json:"purchasePrice,omitempty"`
Quantity float32 `json:"quantity,omitempty"`
Height float32 `json:"height,omitempty"`
Width float32 `json:"width,omitempty"`
Length float32 `json:"length,omitempty"`
Weight float32 `json:"weight,omitempty"`
Stores []Inventory `json:"stores,omitempty,brackets"`
Properties map[string]string `json:"properties,omitempty,brackets"`
Prices []OfferPrice `json:"prices,omitempty,brackets"`
Images []string `json:"images,omitempty,brackets"`
}
Offer type
type OfferPrice ¶
type OfferPrice struct {
Price float32 `json:"price,omitempty"`
Ordering int `json:"ordering,omitempty"`
PriceType string `json:"priceType,omitempty"`
}
OfferPrice type
type OfferPriceUpload ¶
type OfferPriceUpload struct {
ID int `json:"id,omitempty"`
ExternalID string `json:"externalId,omitempty"`
XMLID string `json:"xmlId,omitempty"`
Site string `json:"site,omitempty"`
Prices []PriceUpload `json:"prices,omitempty"`
}
OfferPriceUpload type
type OperationResponse ¶
type OperationResponse struct {
Success bool `json:"success"`
Errors map[string]string `json:"errors,omitempty,brackets"`
}
OperationResponse type
type Order ¶
type Order struct {
ID int `json:"id,omitempty"`
ExternalID string `json:"externalId,omitempty"`
Number string `json:"number,omitempty"`
FirstName string `json:"firstName,omitempty"`
LastName string `json:"lastName,omitempty"`
Patronymic string `json:"patronymic,omitempty"`
Email string `json:"email,omitempty"`
Phone string `json:"phone,omitempty"`
AdditionalPhone string `json:"additionalPhone,omitempty"`
CreatedAt string `json:"createdAt,omitempty"`
StatusUpdatedAt string `json:"statusUpdatedAt,omitempty"`
ManagerID int `json:"managerId,omitempty"`
Mark int `json:"mark,omitempty"`
Call bool `json:"call,omitempty"`
Expired bool `json:"expired,omitempty"`
FromAPI bool `json:"fromApi,omitempty"`
MarkDatetime string `json:"markDatetime,omitempty"`
CustomerComment string `json:"customerComment,omitempty"`
ManagerComment string `json:"managerComment,omitempty"`
Status string `json:"status,omitempty"`
StatusComment string `json:"statusComment,omitempty"`
FullPaidAt string `json:"fullPaidAt,omitempty"`
Site string `json:"site,omitempty"`
OrderType string `json:"orderType,omitempty"`
OrderMethod string `json:"orderMethod,omitempty"`
CountryIso string `json:"countryIso,omitempty"`
Summ float32 `json:"summ,omitempty"`
TotalSumm float32 `json:"totalSumm,omitempty"`
PrepaySum float32 `json:"prepaySum,omitempty"`
PurchaseSumm float32 `json:"purchaseSumm,omitempty"`
DiscountManualAmount float32 `json:"discountManualAmount,omitempty"`
DiscountManualPercent float32 `json:"discountManualPercent,omitempty"`
Weight float32 `json:"weight,omitempty"`
Length int `json:"length,omitempty"`
Width int `json:"width,omitempty"`
Height int `json:"height,omitempty"`
ShipmentStore string `json:"shipmentStore,omitempty"`
ShipmentDate string `json:"shipmentDate,omitempty"`
ClientID string `json:"clientId,omitempty"`
Shipped bool `json:"shipped,omitempty"`
UploadedToExternalStoreSystem bool `json:"uploadedToExternalStoreSystem,omitempty"`
Source *Source `json:"source,omitempty"`
Contragent *Contragent `json:"contragent,omitempty"`
Customer *Customer `json:"customer,omitempty"`
Delivery *OrderDelivery `json:"delivery,omitempty"`
Marketplace *OrderMarketplace `json:"marketplace,omitempty"`
Items []OrderItem `json:"items,omitempty,brackets"`
CustomFields []map[string]string `json:"customFields,omitempty,brackets"`
Payments []OrderPayment `json:"payments,omitempty,brackets"`
}
Order type
type OrderDelivery ¶
type OrderDelivery struct {
Code string `json:"code,omitempty"`
IntegrationCode string `json:"integrationCode,omitempty"`
Cost float32 `json:"cost,omitempty"`
NetCost float32 `json:"netCost,omitempty"`
VatRate string `json:"vatRate,omitempty"`
Date string `json:"date,omitempty"`
Time *OrderDeliveryTime `json:"time,omitempty"`
Address *Address `json:"address,omitempty"`
Service *OrderDeliveryService `json:"service,omitempty"`
Data *OrderDeliveryData `json:"data,omitempty"`
}
OrderDelivery type
type OrderDeliveryData ¶
type OrderDeliveryData struct {
TrackNumber string `json:"trackNumber,omitempty"`
Status string `json:"status,omitempty"`
PickuppointAddress string `json:"pickuppointAddress,omitempty"`
PayerType string `json:"payerType,omitempty"`
}
OrderDeliveryData type
type OrderDeliveryService ¶
type OrderDeliveryService struct {
Name string `json:"name,omitempty"`
Code string `json:"code,omitempty"`
Active bool `json:"active,omitempty"`
}
OrderDeliveryService type
type OrderDeliveryTime ¶
type OrderDeliveryTime struct {
From string `json:"from,omitempty"`
To string `json:"to,omitempty"`
Custom string `json:"custom,omitempty"`
}
OrderDeliveryTime type
type OrderItem ¶
type OrderItem struct {
ID int `json:"id,omitempty"`
InitialPrice float32 `json:"initialPrice,omitempty"`
PurchasePrice float32 `json:"purchasePrice,omitempty"`
DiscountTotal float32 `json:"discountTotal,omitempty"`
DiscountManualAmount float32 `json:"discountManualAmount,omitempty"`
DiscountManualPercent float32 `json:"discountManualPercent,omitempty"`
ProductName string `json:"productName,omitempty"`
VatRate string `json:"vatRate,omitempty"`
CreatedAt string `json:"createdAt,omitempty"`
Quantity float32 `json:"quantity,omitempty"`
Status string `json:"status,omitempty"`
Comment string `json:"comment,omitempty"`
IsCanceled bool `json:"isCanceled,omitempty"`
Offer Offer `json:"offer,omitempty"`
Properties []Property `json:"properties,omitempty,brackets"`
PriceType *PriceType `json:"priceType,omitempty"`
}
OrderItem type
type OrderMarketplace ¶
type OrderMarketplace struct {
Code string `json:"code,omitempty"`
OrderID string `json:"orderId,omitempty"`
}
OrderMarketplace type
type OrderMethod ¶
type OrderMethod struct {
Name string `json:"name,omitempty"`
Code string `json:"code,omitempty"`
Active bool `json:"active,omitempty"`
DefaultForCRM bool `json:"defaultForCrm,omitempty"`
DefaultForAPI bool `json:"defaultForApi,omitempty"`
}
OrderMethod type
type OrderMethodsResponse ¶
type OrderMethodsResponse struct {
Success bool `json:"success"`
OrderMethods map[string]OrderMethod `json:"orderMethods,omitempty,brackets"`
}
OrderMethodsResponse type
type OrderPayment ¶
type OrderPayment struct {
ID int `json:"id,omitempty"`
ExternalID string `json:"externalId,omitempty"`
Type string `json:"type,omitempty"`
Status string `json:"status,omitempty"`
PaidAt string `json:"paidAt,omitempty"`
Amount float32 `json:"amount,omitempty"`
Comment string `json:"comment,omitempty"`
}
OrderPayment type
type OrderRequest ¶
OrderRequest type
type OrderResponse ¶
type OrderResponse struct {
Success bool `json:"success"`
Order *Order `json:"order,omitempty,brackets"`
}
OrderResponse type
type OrderType ¶
type OrderType struct {
Name string `json:"name,omitempty"`
Code string `json:"code,omitempty"`
Active bool `json:"active,omitempty"`
DefaultForCRM bool `json:"defaultForCrm,omitempty"`
DefaultForAPI bool `json:"defaultForApi,omitempty"`
}
OrderType type
type OrderTypesResponse ¶
type OrderTypesResponse struct {
Success bool `json:"success"`
OrderTypes map[string]OrderType `json:"orderTypes,omitempty,brackets"`
}
OrderTypesResponse type
type OrdersFilter ¶
type OrdersFilter struct {
Ids []int `url:"ids,omitempty,brackets"`
ExternalIds []string `url:"externalIds,omitempty,brackets"`
Numbers []string `url:"numbers,omitempty,brackets"`
Customer string `url:"customer,omitempty"`
CustomerID string `url:"customerId,omitempty"`
CustomerExternalID string `url:"customerExternalId,omitempty"`
Countries []string `url:"countries,omitempty,brackets"`
City string `url:"city,omitempty"`
Region string `url:"region,omitempty"`
Index string `url:"index,omitempty"`
Metro string `url:"metro,omitempty"`
Email string `url:"email,omitempty"`
DeliveryTimeFrom string `url:"deliveryTimeFrom,omitempty"`
DeliveryTimeTo string `url:"deliveryTimeTo,omitempty"`
MinPrepaySumm string `url:"minPrepaySumm,omitempty"`
MaxPrepaySumm string `url:"maxPrepaySumm,omitempty"`
MinPrice string `url:"minPrice,omitempty"`
MaxPrice string `url:"maxPrice,omitempty"`
Product string `url:"product,omitempty"`
Vip int `url:"vip,omitempty"`
Bad int `url:"bad,omitempty"`
Attachments int `url:"attachments,omitempty"`
Expired int `url:"expired,omitempty"`
Call int `url:"call,omitempty"`
Online int `url:"online,omitempty"`
Shipped int `url:"shipped,omitempty"`
UploadedToExtStoreSys int `url:"uploadedToExtStoreSys,omitempty"`
ReceiptFiscalDocumentAttribute int `url:"receiptFiscalDocumentAttribute,omitempty"`
ReceiptStatus int `url:"receiptStatus,omitempty"`
ReceiptOperation int `url:"receiptOperation,omitempty"`
MinDeliveryCost string `url:"minDeliveryCost,omitempty"`
MaxDeliveryCost string `url:"maxDeliveryCost,omitempty"`
MinDeliveryNetCost string `url:"minDeliveryNetCost,omitempty"`
MaxDeliveryNetCost string `url:"maxDeliveryNetCost,omitempty"`
ManagerComment string `url:"managerComment,omitempty"`
CustomerComment string `url:"customerComment,omitempty"`
MinMarginSumm string `url:"minMarginSumm,omitempty"`
MaxMarginSumm string `url:"maxMarginSumm,omitempty"`
MinPurchaseSumm string `url:"minPurchaseSumm,omitempty"`
MaxPurchaseSumm string `url:"maxPurchaseSumm,omitempty"`
MinCostSumm string `url:"minCostSumm,omitempty"`
MaxCostSumm string `url:"maxCostSumm,omitempty"`
TrackNumber string `url:"trackNumber,omitempty"`
ContragentName string `url:"contragentName,omitempty"`
ContragentInn string `url:"contragentInn,omitempty"`
ContragentKpp string `url:"contragentKpp,omitempty"`
ContragentBik string `url:"contragentBik,omitempty"`
ContragentCorrAccount string `url:"contragentCorrAccount,omitempty"`
ContragentBankAccount string `url:"contragentBankAccount,omitempty"`
ContragentTypes []string `url:"contragentTypes,omitempty,brackets"`
OrderTypes []string `url:"orderTypes,omitempty,brackets"`
PaymentStatuses []string `url:"paymentStatuses,omitempty,brackets"`
PaymentTypes []string `url:"paymentTypes,omitempty,brackets"`
DeliveryTypes []string `url:"deliveryTypes,omitempty,brackets"`
OrderMethods []string `url:"orderMethods,omitempty,brackets"`
ShipmentStores []string `url:"shipmentStores,omitempty,brackets"`
Couriers []string `url:"couriers,omitempty,brackets"`
Managers []string `url:"managers,omitempty,brackets"`
ManagerGroups []string `url:"managerGroups,omitempty,brackets"`
Sites []string `url:"sites,omitempty,brackets"`
CreatedAtFrom string `url:"createdAtFrom,omitempty"`
CreatedAtTo string `url:"createdAtTo,omitempty"`
FullPaidAtFrom string `url:"fullPaidAtFrom,omitempty"`
FullPaidAtTo string `url:"fullPaidAtTo,omitempty"`
DeliveryDateFrom string `url:"deliveryDateFrom,omitempty"`
DeliveryDateTo string `url:"deliveryDateTo,omitempty"`
StatusUpdatedAtFrom string `url:"statusUpdatedAtFrom,omitempty"`
StatusUpdatedAtTo string `url:"statusUpdatedAtTo,omitempty"`
DpdParcelDateFrom string `url:"dpdParcelDateFrom,omitempty"`
DpdParcelDateTo string `url:"dpdParcelDateTo,omitempty"`
FirstWebVisitFrom string `url:"firstWebVisitFrom,omitempty"`
FirstWebVisitTo string `url:"firstWebVisitTo,omitempty"`
LastWebVisitFrom string `url:"lastWebVisitFrom,omitempty"`
LastWebVisitTo string `url:"lastWebVisitTo,omitempty"`
FirstOrderFrom string `url:"firstOrderFrom,omitempty"`
FirstOrderTo string `url:"firstOrderTo,omitempty"`
LastOrderFrom string `url:"lastOrderFrom,omitempty"`
LastOrderTo string `url:"lastOrderTo,omitempty"`
ShipmentDateFrom string `url:"shipmentDateFrom,omitempty"`
ShipmentDateTo string `url:"shipmentDateTo,omitempty"`
ExtendedStatus []string `url:"extendedStatus,omitempty,brackets"`
SourceName string `url:"sourceName,omitempty"`
MediumName string `url:"mediumName,omitempty"`
CampaignName string `url:"campaignName,omitempty"`
KeywordName string `url:"keywordName,omitempty"`
AdContentName string `url:"adContentName,omitempty"`
CustomFields map[string]string `url:"customFields,omitempty,brackets"`
}
OrdersFilter type
type OrdersHistoryFilter ¶
type OrdersHistoryFilter struct {
OrderID int `url:"orderId,omitempty"`
SinceID int `url:"sinceId,omitempty"`
OrderExternalID string `url:"orderExternalId,omitempty"`
StartDate string `url:"startDate,omitempty"`
EndDate string `url:"endDate,omitempty"`
}
OrdersHistoryFilter type
type OrdersHistoryRecord ¶
type OrdersHistoryRecord struct {
ID int `json:"id,omitempty"`
CreatedAt string `json:"createdAt,omitempty"`
Created bool `json:"created,omitempty"`
Deleted bool `json:"deleted,omitempty"`
Source string `json:"source,omitempty"`
Field string `json:"field,omitempty"`
User *User `json:"user,omitempty,brackets"`
APIKey *APIKey `json:"apiKey,omitempty,brackets"`
Order *Order `json:"order,omitempty,brackets"`
}
OrdersHistoryRecord type
type OrdersHistoryRequest ¶
type OrdersHistoryRequest struct {
Filter OrdersHistoryFilter `url:"filter,omitempty"`
Limit int `url:"limit,omitempty"`
Page int `url:"page,omitempty"`
}
OrdersHistoryRequest type
type OrdersHistoryResponse ¶
type OrdersHistoryResponse struct {
Success bool `json:"success,omitempty"`
GeneratedAt string `json:"generatedAt,omitempty"`
History []OrdersHistoryRecord `json:"history,omitempty,brackets"`
Pagination *Pagination `json:"pagination,omitempty"`
}
OrdersHistoryResponse type
type OrdersRequest ¶
type OrdersRequest struct {
Filter OrdersFilter `url:"filter,omitempty"`
Limit int `url:"limit,omitempty"`
Page int `url:"page,omitempty"`
}
OrdersRequest type
type OrdersResponse ¶
type OrdersResponse struct {
Success bool `json:"success"`
Pagination *Pagination `json:"pagination,omitempty"`
Orders []Order `json:"orders,omitempty,brackets"`
}
OrdersResponse type
type OrdersUploadRequest ¶
type OrdersUploadRequest struct {
Orders []Order `url:"orders,omitempty,brackets"`
Site string `url:"site,omitempty"`
}
OrdersUploadRequest type
type OrdersUploadResponse ¶
type OrdersUploadResponse struct {
Success bool `json:"success"`
UploadedOrders []IdentifiersPair `json:"uploadedOrders,omitempty,brackets"`
}
OrdersUploadResponse type
type Pack ¶
type Pack struct {
ID int `json:"id,omitempty"`
PurchasePrice float32 `json:"purchasePrice,omitempty"`
Quantity float32 `json:"quantity,omitempty"`
Store string `json:"store,omitempty"`
ShipmentDate string `json:"shipmentDate,omitempty"`
InvoiceNumber string `json:"invoiceNumber,omitempty"`
DeliveryNoteNumber string `json:"deliveryNoteNumber,omitempty"`
Item *PackItem `json:"item,omitempty"`
ItemID int `json:"itemId,omitempty"`
}
Pack type
type PackItem ¶
type PackItem struct {
ID int `json:"id,omitempty"`
Order *Order `json:"order,omitempty"`
Offer *Offer `json:"offer,omitempty"`
}
PackItem type
type PackResponse ¶
type PackResponse struct {
Success bool `json:"success"`
Pack *Pack `json:"pack,omitempty,brackets"`
}
PackResponse type
type PacksFilter ¶
type PacksFilter struct {
Ids []int `url:"ids,omitempty,brackets"`
Stores []string `url:"stores,omitempty"`
ItemID int `url:"itemId,omitempty"`
OfferXMLID string `url:"offerXmlId,omitempty"`
OfferExternalID string `url:"offerExternalId,omitempty"`
OrderID int `url:"orderId,omitempty"`
OrderExternalID string `url:"orderExternalId,omitempty"`
ShipmentDateFrom string `url:"shipmentDateFrom,omitempty"`
ShipmentDateTo string `url:"shipmentDateTo,omitempty"`
InvoiceNumber string `url:"invoiceNumber,omitempty"`
DeliveryNoteNumber string `url:"deliveryNoteNumber,omitempty"`
}
PacksFilter type
type PacksHistoryRecord ¶
type PacksHistoryRecord struct {
ID int `json:"id,omitempty"`
CreatedAt string `json:"createdAt,omitempty"`
Created bool `json:"created,omitempty"`
Deleted bool `json:"deleted,omitempty"`
Source string `json:"source,omitempty"`
Field string `json:"field,omitempty"`
User *User `json:"user,omitempty,brackets"`
Pack *Pack `json:"pack,omitempty,brackets"`
}
PacksHistoryRecord type
type PacksHistoryRequest ¶
type PacksHistoryRequest struct {
Filter OrdersHistoryFilter `url:"filter,omitempty"`
Limit int `url:"limit,omitempty"`
Page int `url:"page,omitempty"`
}
PacksHistoryRequest type
type PacksHistoryResponse ¶
type PacksHistoryResponse struct {
Success bool `json:"success,omitempty"`
GeneratedAt string `json:"generatedAt,omitempty"`
History []PacksHistoryRecord `json:"history,omitempty,brackets"`
Pagination *Pagination `json:"pagination,omitempty"`
}
PacksHistoryResponse type
type PacksRequest ¶
type PacksRequest struct {
Filter PacksFilter `url:"filter,omitempty"`
Limit int `url:"limit,omitempty"`
Page int `url:"page,omitempty"`
}
PacksRequest type
type PacksResponse ¶
type PacksResponse struct {
Success bool `json:"success"`
Pagination *Pagination `json:"pagination,omitempty"`
Packs []Pack `json:"packs,omitempty,brackets"`
}
PacksResponse type
type Pagination ¶
type Pagination struct {
Limit int `json:"limit,omitempty"`
TotalCount int `json:"totalCount,omitempty"`
CurrentPage int `json:"currentPage,omitempty"`
TotalPageCount int `json:"totalPageCount,omitempty"`
}
Pagination type
type Payment ¶
type Payment struct {
ID int `json:"id,omitempty"`
ExternalID string `json:"externalId,omitempty"`
PaidAt string `json:"paidAt,omitempty"`
Amount float32 `json:"amount,omitempty"`
Comment string `json:"comment,omitempty"`
Status string `json:"status,omitempty"`
Type string `json:"type,omitempty"`
Order *Order `json:"order,omitempty"`
}
Payment type
type PaymentStatus ¶
type PaymentStatus struct {
Name string `json:"name,omitempty"`
Code string `json:"code,omitempty"`
Active bool `json:"active,omitempty"`
DefaultForCRM bool `json:"defaultForCrm,omitempty"`
DefaultForAPI bool `json:"defaultForApi,omitempty"`
PaymentComplete bool `json:"paymentComplete,omitempty"`
Description string `json:"description,omitempty"`
Ordering int `json:"ordering,omitempty"`
PaymentTypes []string `json:"paymentTypes,omitempty,brackets"`
}
PaymentStatus type
type PaymentStatusesResponse ¶
type PaymentStatusesResponse struct {
Success bool `json:"success"`
PaymentStatuses map[string]PaymentStatus `json:"paymentStatuses,omitempty,brackets"`
}
PaymentStatusesResponse type
type PaymentType ¶
type PaymentType struct {
Name string `json:"name,omitempty"`
Code string `json:"code,omitempty"`
Active bool `json:"active,omitempty"`
DefaultForCRM bool `json:"defaultForCrm,omitempty"`
DefaultForAPI bool `json:"defaultForApi,omitempty"`
Description string `json:"description,omitempty"`
DeliveryTypes []string `json:"deliveryTypes,omitempty,brackets"`
PaymentStatuses []string `json:"PaymentStatuses,omitempty,brackets"`
}
PaymentType type
type PaymentTypesResponse ¶
type PaymentTypesResponse struct {
Success bool `json:"success"`
PaymentTypes map[string]PaymentType `json:"paymentTypes,omitempty,brackets"`
}
PaymentTypesResponse type
type PriceType ¶
type PriceType struct {
ID int `json:"id,omitempty"`
Code string `json:"code,omitempty"`
Name string `json:"name,omitempty"`
Active bool `json:"active,omitempty"`
Default bool `json:"default,omitempty"`
Description string `json:"description,omitempty"`
FilterExpression string `json:"filterExpression,omitempty"`
Ordering int `json:"ordering,omitempty"`
Groups []string `json:"groups,omitempty,brackets"`
Geo []GeoHierarchyRow `json:"geo,omitempty,brackets"`
}
PriceType type
type PriceTypesResponse ¶
type PriceTypesResponse struct {
Success bool `json:"success"`
PriceTypes []PriceType `json:"priceTypes,omitempty,brackets"`
}
PriceTypesResponse type
type PriceUpload ¶
type PriceUpload struct {
Code string `json:"code,omitempty"`
Price float32 `json:"price,omitempty"`
}
PriceUpload type
type Product ¶
type Product struct {
ID int `json:"id,omitempty"`
MaxPrice float32 `json:"maxPrice,omitempty"`
MinPrice float32 `json:"minPrice,omitempty"`
Name string `json:"name,omitempty"`
URL string `json:"url,omitempty"`
Article string `json:"article,omitempty"`
ExternalID string `json:"externalId,omitempty"`
Manufacturer string `json:"manufacturer,omitempty"`
ImageURL string `json:"imageUrl,omitempty"`
Description string `json:"description,omitempty"`
Popular bool `json:"popular,omitempty"`
Stock bool `json:"stock,omitempty"`
Novelty bool `json:"novelty,omitempty"`
Recommended bool `json:"recommended,omitempty"`
Active bool `json:"active,omitempty"`
Quantity float32 `json:"quantity,omitempty"`
Offers []Offer `json:"offers,omitempty,brackets"`
Groups []ProductGroup `json:"groups,omitempty,brackets"`
Properties map[string]string `json:"properties,omitempty,brackets"`
}
Product type
type ProductGroup ¶
type ProductGroup struct {
ID int `json:"id,omitempty"`
ParentID int `json:"parentId,omitempty"`
Name string `json:"name,omitempty"`
Site string `json:"site,omitempty"`
Active bool `json:"active,omitempty"`
}
ProductGroup type
type ProductStatus ¶
type ProductStatus struct {
Name string `json:"name,omitempty"`
Code string `json:"code,omitempty"`
Active bool `json:"active,omitempty"`
Ordering int `json:"ordering,omitempty"`
CreatedAt string `json:"createdAt,omitempty"`
CancelStatus bool `json:"cancelStatus,omitempty"`
OrderStatusByProductStatus string `json:"orderStatusByProductStatus,omitempty"`
OrderStatusForProductStatus string `json:"orderStatusForProductStatus,omitempty"`
}
ProductStatus type
type ProductStatusesResponse ¶
type ProductStatusesResponse struct {
Success bool `json:"success"`
ProductStatuses map[string]ProductStatus `json:"productStatuses,omitempty,brackets"`
}
ProductStatusesResponse type
type ProductsFilter ¶
type ProductsFilter struct {
Ids []int `url:"ids,omitempty,brackets"`
OfferIds []int `url:"offerIds,omitempty,brackets"`
Active int `url:"active,omitempty"`
Recommended int `url:"recommended,omitempty"`
Novelty int `url:"novelty,omitempty"`
Stock int `url:"stock,omitempty"`
Popular int `url:"popular,omitempty"`
MaxQuantity float32 `url:"maxQuantity,omitempty"`
MinQuantity float32 `url:"minQuantity,omitempty"`
MaxPurchasePrice float32 `url:"maxPurchasePrice,omitempty"`
MinPurchasePrice float32 `url:"minPurchasePrice,omitempty"`
MaxPrice float32 `url:"maxPrice,omitempty"`
MinPrice float32 `url:"minPrice,omitempty"`
Groups string `url:"groups,omitempty"`
Name string `url:"name,omitempty"`
ClassSegment string `url:"classSegment,omitempty"`
XMLID string `url:"xmlId,omitempty"`
ExternalID string `url:"externalId,omitempty"`
Manufacturer string `url:"manufacturer,omitempty"`
URL string `url:"url,omitempty"`
PriceType string `url:"priceType,omitempty"`
OfferExternalID string `url:"offerExternalId,omitempty"`
Sites []string `url:"sites,omitempty,brackets"`
Properties map[string]string `url:"properties,omitempty,brackets"`
}
ProductsFilter type
type ProductsGroupsFilter ¶
type ProductsGroupsFilter struct {
Ids []int `url:"ids,omitempty,brackets"`
Sites []string `url:"sites,omitempty,brackets"`
Active int `url:"active,omitempty"`
ParentGroupID string `url:"parentGroupId,omitempty"`
}
ProductsGroupsFilter type
type ProductsGroupsRequest ¶
type ProductsGroupsRequest struct {
Filter ProductsGroupsFilter `url:"filter,omitempty"`
Limit int `url:"limit,omitempty"`
Page int `url:"page,omitempty"`
}
ProductsGroupsRequest type
type ProductsGroupsResponse ¶
type ProductsGroupsResponse struct {
Success bool `json:"success"`
Pagination *Pagination `json:"pagination,omitempty"`
ProductGroup []ProductGroup `json:"productGroup,omitempty,brackets"`
}
ProductsGroupsResponse type
type ProductsPropertiesFilter ¶
type ProductsPropertiesFilter struct {
Code string `url:"code,omitempty"`
Name string `url:"name,omitempty"`
Sites []string `url:"sites,omitempty,brackets"`
}
ProductsPropertiesFilter type
type ProductsPropertiesRequest ¶
type ProductsPropertiesRequest struct {
Filter ProductsPropertiesFilter `url:"filter,omitempty"`
Limit int `url:"limit,omitempty"`
Page int `url:"page,omitempty"`
}
ProductsPropertiesRequest type
type ProductsPropertiesResponse ¶
type ProductsPropertiesResponse struct {
Success bool `json:"success"`
Pagination *Pagination `json:"pagination,omitempty"`
Properties []Property `json:"properties,omitempty,brackets"`
}
ProductsPropertiesResponse type
type ProductsRequest ¶
type ProductsRequest struct {
Filter ProductsFilter `url:"filter,omitempty"`
Limit int `url:"limit,omitempty"`
Page int `url:"page,omitempty"`
}
ProductsRequest type
type ProductsResponse ¶
type ProductsResponse struct {
Success bool `json:"success"`
Pagination *Pagination `json:"pagination,omitempty"`
Products []Product `json:"products,omitempty,brackets"`
}
ProductsResponse type
type Property ¶
type Property struct {
Code string `json:"code,omitempty"`
Name string `json:"name,omitempty"`
Value string `json:"value,omitempty"`
Sites []string `json:"Sites,omitempty,brackets"`
}
Property type
type Segment ¶
type Segment struct {
ID int `json:"id,omitempty"`
Code string `json:"code,omitempty"`
Name string `json:"name,omitempty"`
CreatedAt string `json:"createdAt,omitempty"`
CustomersCount int `json:"customersCount,omitempty"`
IsDynamic bool `json:"isDynamic,omitempty"`
Active bool `json:"active,omitempty"`
}
Segment type
type SegmentsFilter ¶
type SegmentsFilter struct {
Ids []int `url:"ids,omitempty,brackets"`
Active int `url:"active,omitempty"`
Name string `url:"name,omitempty"`
Type string `url:"type,omitempty"`
MinCustomersCount int `url:"minCustomersCount,omitempty"`
MaxCustomersCount int `url:"maxCustomersCount,omitempty"`
DateFrom string `url:"dateFrom,omitempty"`
DateTo string `url:"dateTo,omitempty"`
}
SegmentsFilter type
type SegmentsRequest ¶
type SegmentsRequest struct {
Filter SegmentsFilter `url:"filter,omitempty"`
Limit int `url:"limit,omitempty"`
Page int `url:"page,omitempty"`
}
SegmentsRequest type
type SegmentsResponse ¶
type SegmentsResponse struct {
Success bool `json:"success"`
Pagination *Pagination `json:"pagination,omitempty"`
Segments []Segment `json:"segments,omitempty,brackets"`
}
SegmentsResponse type
type ShipmentFilter ¶
type ShipmentFilter struct {
Ids []int `url:"ids,omitempty,brackets"`
ExternalID string `url:"externalId,omitempty"`
OrderNumber string `url:"orderNumber,omitempty"`
DateFrom string `url:"dateFrom,omitempty"`
DateTo string `url:"dateTo,omitempty"`
Stores []string `url:"stores,omitempty,brackets"`
Managers []string `url:"managers,omitempty,brackets"`
DeliveryTypes []string `url:"deliveryTypes,omitempty,brackets"`
Statuses []string `url:"statuses,omitempty,brackets"`
}
ShipmentFilter type
type Site ¶
type Site struct {
Name string `json:"name,omitempty"`
Code string `json:"code,omitempty"`
URL string `json:"url,omitempty"`
Description string `json:"description,omitempty"`
Phones string `json:"phones,omitempty"`
Zip string `json:"zip,omitempty"`
Address string `json:"address,omitempty"`
CountryIso string `json:"countryIso,omitempty"`
YmlURL string `json:"ymlUrl,omitempty"`
LoadFromYml bool `json:"loadFromYml,omitempty"`
CatalogUpdatedAt string `json:"catalogUpdatedAt,omitempty"`
CatalogLoadingAt string `json:"catalogLoadingAt,omitempty"`
Contragent *LegalEntity `json:"contragent,omitempty"`
}
Site type
type SitesResponse ¶
type SitesResponse struct {
Success bool `json:"success"`
Sites map[string]Site `json:"sites,omitempty,brackets"`
}
SitesResponse type
type Source ¶
type Source struct {
Source string `json:"source,omitempty"`
Medium string `json:"medium,omitempty"`
Campaign string `json:"campaign,omitempty"`
Keyword string `json:"keyword,omitempty"`
Content string `json:"content,omitempty"`
}
Source type
type Status ¶
type Status struct {
Name string `json:"name,omitempty"`
Code string `json:"code,omitempty"`
Active bool `json:"active,omitempty"`
Ordering int `json:"ordering,omitempty"`
Group string `json:"group,omitempty"`
}
Status type
type StatusGroup ¶
type StatusGroup struct {
Name string `json:"name,omitempty"`
Code string `json:"code,omitempty"`
Active bool `json:"active,omitempty"`
Ordering int `json:"ordering,omitempty"`
Process bool `json:"process,omitempty"`
Statuses []string `json:"statuses,omitempty,brackets"`
}
StatusGroup type
type StatusGroupsResponse ¶
type StatusGroupsResponse struct {
Success bool `json:"success"`
StatusGroups map[string]StatusGroup `json:"statusGroups,omitempty,brackets"`
}
StatusGroupsResponse type
type StatusesResponse ¶
type StatusesResponse struct {
Success bool `json:"success"`
Statuses map[string]Status `json:"statuses,omitempty,brackets"`
}
StatusesResponse type
type Store ¶
type Store struct {
Name string `json:"name,omitempty"`
Code string `json:"code,omitempty"`
ExternalID string `json:"externalId,omitempty"`
Description string `json:"description,omitempty"`
XMLID string `json:"xmlId,omitempty"`
Email string `json:"email,omitempty"`
Type string `json:"type,omitempty"`
InventoryType string `json:"inventoryType,omitempty"`
Active bool `json:"active,omitempty"`
Phone *Phone `json:"phone,omitempty"`
Address *Address `json:"address,omitempty"`
}
Store type
type StoreUploadResponse ¶
type StoreUploadResponse struct {
Success bool `json:"success"`
ProcessedOffersCount int `json:"processedOffersCount,omitempty"`
NotFoundOffers []Offer `json:"notFoundOffers,omitempty"`
}
StoreUploadResponse type
type StoresResponse ¶
type StoresResponse struct {
Success bool `json:"success"`
Stores []Store `json:"stores,omitempty,brackets"`
}
StoresResponse type
type SuccessfulResponse ¶
type SuccessfulResponse struct {
Success bool `json:"success,omitempty"`
}
SuccessfulResponse type
type Task ¶
type Task struct {
ID int `json:"id,omitempty"`
PerformerID int `json:"performerId,omitempty"`
Text string `json:"text,omitempty"`
Commentary string `json:"commentary,omitempty"`
Datetime string `json:"datetime,omitempty"`
Complete bool `json:"complete,omitempty"`
CreatedAt string `json:"createdAt,omitempty"`
Creator int `json:"creator,omitempty"`
Performer int `json:"performer,omitempty"`
Phone string `json:"phone,omitempty"`
PhoneSite string `json:"phoneSite,omitempty"`
Customer *Customer `json:"customer,omitempty"`
Order *Order `json:"order,omitempty"`
}
Task type
type TaskResponse ¶
type TaskResponse struct {
Success bool `json:"success"`
Task *Task `json:"task,omitempty,brackets"`
}
TaskResponse type
type TasksFilter ¶
type TasksFilter struct {
OrderNumber string `url:"orderNumber,omitempty"`
Status string `url:"status,omitempty"`
Customer string `url:"customer,omitempty"`
Text string `url:"text,omitempty"`
DateFrom string `url:"dateFrom,omitempty"`
DateTo string `url:"dateTo,omitempty"`
Creators []int `url:"creators,omitempty,brackets"`
Performers []int `url:"performers,omitempty,brackets"`
}
TasksFilter type
type TasksRequest ¶
type TasksRequest struct {
Filter TasksFilter `url:"filter,omitempty"`
Limit int `url:"limit,omitempty"`
Page int `url:"page,omitempty"`
}
TasksRequest type
type TasksResponse ¶
type TasksResponse struct {
Success bool `json:"success"`
Pagination *Pagination `json:"pagination,omitempty"`
Tasks []Task `json:"tasks,omitempty,brackets"`
}
TasksResponse type
type Telephony ¶
type Telephony struct {
MakeCallURL string `json:"makeCallUrl,omitempty"`
AllowEdit bool `json:"allowEdit,omitempty"`
InputEventSupported bool `json:"inputEventSupported,omitempty"`
OutputEventSupported bool `json:"outputEventSupported,omitempty"`
HangupEventSupported bool `json:"hangupEventSupported,omitempty"`
ChangeUserStatusURL string `json:"changeUserStatusUrl,omitempty"`
AdditionalCodes []AdditionalCode `json:"additionalCodes,omitempty,brackets"`
ExternalPhones []ExternalPhone `json:"externalPhones,omitempty,brackets"`
}
Telephony type
type User ¶
type User struct {
ID int `json:"id,omitempty"`
FirstName string `json:"firstName,omitempty"`
LastName string `json:"lastName,omitempty"`
Patronymic string `json:"patronymic,omitempty"`
CreatedAt string `json:"createdAt,omitempty"`
Active bool `json:"active,omitempty"`
Online bool `json:"online,omitempty"`
IsAdmin bool `json:"isAdmin,omitempty"`
IsManager bool `json:"isManager,omitempty"`
Email string `json:"email,omitempty"`
Phone string `json:"phone,omitempty"`
Status string `json:"status,omitempty"`
Groups []UserGroup `json:"groups,omitempty,brackets"`
}
User type
type UserGroup ¶
type UserGroup struct {
Name string `json:"name,omitempty"`
Code string `json:"code,omitempty"`
SignatureTemplate string `json:"signatureTemplate,omitempty"`
IsManager bool `json:"isManager,omitempty"`
IsDeliveryMen bool `json:"isDeliveryMen,omitempty"`
DeliveryTypes []string `json:"deliveryTypes,omitempty,brackets"`
BreakdownOrderTypes []string `json:"breakdownOrderTypes,omitempty,brackets"`
BreakdownSites []string `json:"breakdownSites,omitempty,brackets"`
BreakdownOrderMethods []string `json:"breakdownOrderMethods,omitempty,brackets"`
GrantedOrderTypes []string `json:"grantedOrderTypes,omitempty,brackets"`
GrantedSites []string `json:"grantedSites,omitempty,brackets"`
}
UserGroup type
type UserGroupsRequest ¶
UserGroupsRequest type
type UserGroupsResponse ¶
type UserGroupsResponse struct {
Success bool `json:"success"`
Pagination *Pagination `json:"pagination,omitempty"`
Groups []UserGroup `json:"groups,omitempty,brackets"`
}
UserGroupsResponse type
type UserResponse ¶
type UserResponse struct {
Success bool `json:"success"`
User *User `json:"user,omitempty,brackets"`
}
UserResponse type
type UsersFilter ¶
type UsersFilter struct {
Email string `url:"email,omitempty"`
Status string `url:"status,omitempty"`
Online int `url:"online,omitempty"`
Active int `url:"active,omitempty"`
IsManager int `url:"isManager,omitempty"`
IsAdmin int `url:"isAdmin,omitempty"`
CreatedAtFrom string `url:"createdAtFrom,omitempty"`
CreatedAtTo string `url:"createdAtTo,omitempty"`
Groups []string `url:"groups,omitempty,brackets"`
}
UsersFilter type
type UsersRequest ¶
type UsersRequest struct {
Filter UsersFilter `url:"filter,omitempty"`
Limit int `url:"limit,omitempty"`
Page int `url:"page,omitempty"`
}
UsersRequest type
type UsersResponse ¶
type UsersResponse struct {
Success bool `json:"success"`
Pagination *Pagination `json:"pagination,omitempty"`
Users []User `json:"users,omitempty,brackets"`
}
UsersResponse type
type VersionResponse ¶
type VersionResponse struct {
Success bool `json:"success,omitempty"`
Versions []string `json:"versions,brackets,omitempty"`
}
VersionResponse return available API versions