mirror of
https://github.com/retailcrm/api-client-go.git
synced 2024-11-25 14:26:04 +03:00
299 lines
18 KiB
Go
299 lines
18 KiB
Go
package v5
|
|
|
|
// CustomersFilter type
|
|
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"`
|
|
}
|
|
|
|
// CustomersHistoryFilter type
|
|
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"`
|
|
}
|
|
|
|
// OrdersFilter type
|
|
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"`
|
|
}
|
|
|
|
// OrdersHistoryFilter type
|
|
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"`
|
|
}
|
|
|
|
// UsersFilter type
|
|
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"`
|
|
}
|
|
|
|
// TasksFilter type
|
|
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"`
|
|
}
|
|
|
|
// NotesFilter type
|
|
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"`
|
|
}
|
|
|
|
// SegmentsFilter type
|
|
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"`
|
|
}
|
|
|
|
// PacksFilter type
|
|
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"`
|
|
}
|
|
|
|
// InventoriesFilter type
|
|
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"`
|
|
}
|
|
|
|
// ProductsGroupsFilter type
|
|
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"`
|
|
}
|
|
|
|
// ProductsFilter type
|
|
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"`
|
|
}
|
|
|
|
// ProductsPropertiesFilter type
|
|
type ProductsPropertiesFilter struct {
|
|
Code string `url:"code,omitempty"`
|
|
Name string `url:"name,omitempty"`
|
|
Sites []string `url:"sites,omitempty,brackets"`
|
|
}
|
|
|
|
// ShipmentFilter type
|
|
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"`
|
|
}
|