Documentation ¶
Index ¶
- Constants
- func AccumulationDiscountClient(client *JSONApiClient) *accumulationDiscountClient
- func AssortmentClient(client *JSONApiClient) *assortmentClient
- func BonusProgramClient(client *JSONApiClient) *bonusProgramClient
- func BonusTransactionClient(client *JSONApiClient) *bonusTransactionClient
- func BundleClient(client *JSONApiClient) *bundleClient
- func CashInClient(client *JSONApiClient) *cashInClient
- func CashOutClient(client *JSONApiClient) *cashOutClient
- func CharacteristicsClient(client *JSONApiClient) *characteristicsClient
- func CommissionReportInClient(client *JSONApiClient) *commissionReportInClient
- func CommissionReportOutClient(client *JSONApiClient) *commissionReportOutClient
- func CompanySettingsClient(client *JSONApiClient) *companySettingsClient
- func ConsignmentClient(client *JSONApiClient) *consignmentClient
- func ContextClient(client *JSONApiClient) *contextClient
- func ContractClient(client *JSONApiClient) *contractClient
- func CounterPartyAdjustmentClient(client *JSONApiClient) *counterPartyAdjustmentClient
- func CounterPartyClient(client *JSONApiClient) *counterPartyClient
- func CountryClient(client *JSONApiClient) *countryClient
- func CurrencyClient(client *JSONApiClient) *currencyClient
- func CustomEntityClient(client *JSONApiClient) *customEntityClient
- func CustomerOrderClient(client *JSONApiClient) *customerOrderClient
- func DemandClient(client *JSONApiClient) *demandClient
- func DiscountClient(client *JSONApiClient) *discountClient
- func EmployeeClient(client *JSONApiClient) *employeeClient
- func EnterClient(client *JSONApiClient) *enterClient
- func ExpenseItemClient(client *JSONApiClient) *expenseItemClient
- func FactureInClient(client *JSONApiClient) *factureInClient
- func FactureOutClient(client *JSONApiClient) *factureOutClient
- func FileRequest(c *EntityBaseClient, data any, filename string) (f *os.File, err error)
- func GetPath(entityType entity.MetaType) (path string)
- func GroupClient(client *JSONApiClient) *groupClient
- func InternalOrderClient(client *JSONApiClient) *internalOrderClient
- func InventoryClient(client *JSONApiClient) *inventoryClient
- func InvoiceInClient(client *JSONApiClient) *invoiceInClient
- func InvoiceOutClient(client *JSONApiClient) *invoiceOutClient
- func LossClient(client *JSONApiClient) *lossClient
- func MetadataClient(client *JSONApiClient) *metadataClient
- func MoveClient(client *JSONApiClient) *moveClient
- func OrganizationClient(client *JSONApiClient) *organizationClient
- func PaymentInClient(client *JSONApiClient) *paymentInClient
- func PaymentOutClient(client *JSONApiClient) *paymentOutClient
- func PersonalDiscountClient(client *JSONApiClient) *personalDiscountClient
- func PrepaymentClient(client *JSONApiClient) *prepaymentClient
- func PrepaymentReturnClient(client *JSONApiClient) *prepaymentReturnClient
- func PriceListClient(client *JSONApiClient) *priceListClient
- func PriceTypeClient(client *JSONApiClient) *priceTypeClient
- func ProcessingClient(client *JSONApiClient) *processingClient
- func ProcessingOrderClient(client *JSONApiClient) *processingOrderClient
- func ProcessingPlanClient(client *JSONApiClient) *processingPlanClient
- func ProductClient(client *JSONApiClient) *productClient
- func ProductFolderClient(client *JSONApiClient) *productFolderClient
- func ProjectClient(client *JSONApiClient) *projectClient
- func PurchaseOrderClient(client *JSONApiClient) *purchaseOrderClient
- func PurchaseReturnClient(client *JSONApiClient) *purchaseReturnClient
- func RegionClient(client *JSONApiClient) *regionClient
- func ReportCounterpartyClient(client *JSONApiClient) *reportCounterpartyClient
- func ReportDashboardClient(client *JSONApiClient) *reportDashboardClient
- func ReportMoneyClient(client *JSONApiClient) *reportMoneyClient
- func ReportOrdersClient(client *JSONApiClient) *reportOrdersClient
- func ReportProfitClient(client *JSONApiClient) *reportProfitClient
- func ReportSalesClient(client *JSONApiClient) *reportSalesClient
- func ReportStockClient(client *JSONApiClient) *reportStockClient
- func ReportTurnoverClient(client *JSONApiClient) *reportTurnoverClient
- func RetailDemandClient(client *JSONApiClient) *retailDemandClient
- func RetailDrawerCashInClient(client *JSONApiClient) *retailDrawerCashInClient
- func RetailDrawerCashOutClient(client *JSONApiClient) *retailDrawerCashOutClient
- func RetailSalesReturnClient(client *JSONApiClient) *retailSalesReturnClient
- func RetailShiftClient(client *JSONApiClient) *retailShiftClient
- func RetailStoreClient(client *JSONApiClient) *retailStoreClient
- func RoleClient(client *JSONApiClient) *roleClient
- func SalesChannelClient(client *JSONApiClient) *salesChannelClient
- func SalesReturnClient(client *JSONApiClient) *salesReturnClient
- func ServiceClient(client *JSONApiClient) *serviceClient
- func SpecialPriceDiscountClient(client *JSONApiClient) *specialPriceDiscountClient
- func StatesClient(client *JSONApiClient, entityType entity.MetaType) *statesClient
- func StoreClient(client *JSONApiClient) *storeClient
- func SubscriptionClient(client *JSONApiClient) *subscriptionClient
- func SupplyClient(client *JSONApiClient) *supplyClient
- func TaskClient(client *JSONApiClient) *taskClient
- func TokenClient(client *JSONApiClient) *tokenClient
- func UnmarshalResponse[T any](r *Response) (result T)
- func UomClient(client *JSONApiClient) *uomClient
- func UserSettingsClient(client *JSONApiClient) *userSettingsClient
- func VariantClient(client *JSONApiClient) *variantClient
- func WebhookClient(client *JSONApiClient) *webhookClient
- type BulkDeleteResponseJSON
- type EntityBaseClient
- type Error
- type Errors
- type HasTemplate
- type JSONApiClient
- func (c *JSONApiClient) Context() *ctxClient
- func (c *JSONApiClient) DisableWebhookContent(value bool) *JSONApiClient
- func (c *JSONApiClient) Entity() *entityClient
- func (c *JSONApiClient) PrettyPrintJson(value bool) *JSONApiClient
- func (c *JSONApiClient) PricePrecision(value bool) *JSONApiClient
- func (c *JSONApiClient) Report() *reportClient
- func (c *JSONApiClient) SetAttempts(attempts int) *JSONApiClient
- func (c *JSONApiClient) SetCredentials(username, password string) *JSONApiClient
- func (c *JSONApiClient) SetTimeout(timeout int) *JSONApiClient
- func (c *JSONApiClient) SetToken(token string) *JSONApiClient
- type MoneyPlotSeries
- type MoneyPlotSeriesElement
- type Response
- type Result
- type ResultAssortment
- type ResultContext
- type SalesOrdersPlotSeries
- type SalesOrdersPlotSeriesElement
Constants ¶
View Source
const ( StatusMovedPermanently = "запрашиваемый ресурс находится по другому URL" StatusSeeOther = "запрашиваемый ресурс находится по другому URL" StatusBadRequest = "ошибка в структуре JSON передаваемого запроса" StatusForbidden = "у вас нет прав на просмотр данного объекта" StatusNotFound = "запрошенный ресурс не существует" StatusMethodNotAllowed = "http-метод указан неверно для запрошенного ресурса" StatusConflict = "указанный объект используется и не может быть удален" StatusGone = "версия API больше не поддерживается" StatusPreconditionFailed = "" /* 127-byte string literal not displayed */ StatusRequestEntityTooLarge = "" /* 254-byte string literal not displayed */ StatusInternalServerError = "при обработке запроса возникла непредвиденная ошибка" StatusBadGateway = "сервис временно недоступен" StatusGatewayTimeout = "превышен таймаут обращения к сервису, повторите попытку позднее" // 504: Превышен таймаут обращения к сервису, повторите попытку позднее )
View Source
const ApiEndpoint = "https://online.moysklad.ru/api/remap/1.2"
Variables ¶
This section is empty.
Functions ¶
func AccumulationDiscountClient ¶
func AccumulationDiscountClient(client *JSONApiClient) *accumulationDiscountClient
func AssortmentClient ¶
func AssortmentClient(client *JSONApiClient) *assortmentClient
func BonusProgramClient ¶
func BonusProgramClient(client *JSONApiClient) *bonusProgramClient
func BonusTransactionClient ¶
func BonusTransactionClient(client *JSONApiClient) *bonusTransactionClient
func BundleClient ¶
func BundleClient(client *JSONApiClient) *bundleClient
func CashInClient ¶
func CashInClient(client *JSONApiClient) *cashInClient
func CashOutClient ¶
func CashOutClient(client *JSONApiClient) *cashOutClient
func CharacteristicsClient ¶
func CharacteristicsClient(client *JSONApiClient) *characteristicsClient
func CommissionReportInClient ¶
func CommissionReportInClient(client *JSONApiClient) *commissionReportInClient
func CommissionReportOutClient ¶
func CommissionReportOutClient(client *JSONApiClient) *commissionReportOutClient
func CompanySettingsClient ¶
func CompanySettingsClient(client *JSONApiClient) *companySettingsClient
func ConsignmentClient ¶
func ConsignmentClient(client *JSONApiClient) *consignmentClient
func ContextClient ¶
func ContextClient(client *JSONApiClient) *contextClient
func ContractClient ¶
func ContractClient(client *JSONApiClient) *contractClient
func CounterPartyAdjustmentClient ¶
func CounterPartyAdjustmentClient(client *JSONApiClient) *counterPartyAdjustmentClient
func CounterPartyClient ¶
func CounterPartyClient(client *JSONApiClient) *counterPartyClient
func CountryClient ¶
func CountryClient(client *JSONApiClient) *countryClient
func CurrencyClient ¶
func CurrencyClient(client *JSONApiClient) *currencyClient
func CustomEntityClient ¶
func CustomEntityClient(client *JSONApiClient) *customEntityClient
func CustomerOrderClient ¶
func CustomerOrderClient(client *JSONApiClient) *customerOrderClient
func DemandClient ¶
func DemandClient(client *JSONApiClient) *demandClient
func DiscountClient ¶
func DiscountClient(client *JSONApiClient) *discountClient
func EmployeeClient ¶
func EmployeeClient(client *JSONApiClient) *employeeClient
func EnterClient ¶
func EnterClient(client *JSONApiClient) *enterClient
func ExpenseItemClient ¶
func ExpenseItemClient(client *JSONApiClient) *expenseItemClient
func FactureInClient ¶
func FactureInClient(client *JSONApiClient) *factureInClient
func FactureOutClient ¶
func FactureOutClient(client *JSONApiClient) *factureOutClient
func FileRequest ¶
func GroupClient ¶
func GroupClient(client *JSONApiClient) *groupClient
func InternalOrderClient ¶
func InternalOrderClient(client *JSONApiClient) *internalOrderClient
func InventoryClient ¶
func InventoryClient(client *JSONApiClient) *inventoryClient
func InvoiceInClient ¶
func InvoiceInClient(client *JSONApiClient) *invoiceInClient
func InvoiceOutClient ¶
func InvoiceOutClient(client *JSONApiClient) *invoiceOutClient
func LossClient ¶
func LossClient(client *JSONApiClient) *lossClient
func MetadataClient ¶
func MetadataClient(client *JSONApiClient) *metadataClient
func MoveClient ¶
func MoveClient(client *JSONApiClient) *moveClient
func OrganizationClient ¶
func OrganizationClient(client *JSONApiClient) *organizationClient
func PaymentInClient ¶
func PaymentInClient(client *JSONApiClient) *paymentInClient
func PaymentOutClient ¶
func PaymentOutClient(client *JSONApiClient) *paymentOutClient
func PersonalDiscountClient ¶
func PersonalDiscountClient(client *JSONApiClient) *personalDiscountClient
func PrepaymentClient ¶
func PrepaymentClient(client *JSONApiClient) *prepaymentClient
func PrepaymentReturnClient ¶
func PrepaymentReturnClient(client *JSONApiClient) *prepaymentReturnClient
func PriceListClient ¶
func PriceListClient(client *JSONApiClient) *priceListClient
func PriceTypeClient ¶
func PriceTypeClient(client *JSONApiClient) *priceTypeClient
func ProcessingClient ¶
func ProcessingClient(client *JSONApiClient) *processingClient
func ProcessingOrderClient ¶
func ProcessingOrderClient(client *JSONApiClient) *processingOrderClient
func ProcessingPlanClient ¶
func ProcessingPlanClient(client *JSONApiClient) *processingPlanClient
func ProductClient ¶
func ProductClient(client *JSONApiClient) *productClient
func ProductFolderClient ¶
func ProductFolderClient(client *JSONApiClient) *productFolderClient
func ProjectClient ¶
func ProjectClient(client *JSONApiClient) *projectClient
func PurchaseOrderClient ¶
func PurchaseOrderClient(client *JSONApiClient) *purchaseOrderClient
func PurchaseReturnClient ¶
func PurchaseReturnClient(client *JSONApiClient) *purchaseReturnClient
func RegionClient ¶
func RegionClient(client *JSONApiClient) *regionClient
func ReportCounterpartyClient ¶
func ReportCounterpartyClient(client *JSONApiClient) *reportCounterpartyClient
func ReportDashboardClient ¶
func ReportDashboardClient(client *JSONApiClient) *reportDashboardClient
func ReportMoneyClient ¶
func ReportMoneyClient(client *JSONApiClient) *reportMoneyClient
func ReportOrdersClient ¶
func ReportOrdersClient(client *JSONApiClient) *reportOrdersClient
func ReportProfitClient ¶
func ReportProfitClient(client *JSONApiClient) *reportProfitClient
func ReportSalesClient ¶
func ReportSalesClient(client *JSONApiClient) *reportSalesClient
func ReportStockClient ¶
func ReportStockClient(client *JSONApiClient) *reportStockClient
func ReportTurnoverClient ¶
func ReportTurnoverClient(client *JSONApiClient) *reportTurnoverClient
func RetailDemandClient ¶
func RetailDemandClient(client *JSONApiClient) *retailDemandClient
func RetailDrawerCashInClient ¶
func RetailDrawerCashInClient(client *JSONApiClient) *retailDrawerCashInClient
func RetailDrawerCashOutClient ¶
func RetailDrawerCashOutClient(client *JSONApiClient) *retailDrawerCashOutClient
func RetailSalesReturnClient ¶
func RetailSalesReturnClient(client *JSONApiClient) *retailSalesReturnClient
func RetailShiftClient ¶
func RetailShiftClient(client *JSONApiClient) *retailShiftClient
func RetailStoreClient ¶
func RetailStoreClient(client *JSONApiClient) *retailStoreClient
func RoleClient ¶
func RoleClient(client *JSONApiClient) *roleClient
func SalesChannelClient ¶
func SalesChannelClient(client *JSONApiClient) *salesChannelClient
func SalesReturnClient ¶
func SalesReturnClient(client *JSONApiClient) *salesReturnClient
func ServiceClient ¶
func ServiceClient(client *JSONApiClient) *serviceClient
func SpecialPriceDiscountClient ¶
func SpecialPriceDiscountClient(client *JSONApiClient) *specialPriceDiscountClient
func StatesClient ¶
func StatesClient(client *JSONApiClient, entityType entity.MetaType) *statesClient
func StoreClient ¶
func StoreClient(client *JSONApiClient) *storeClient
func SubscriptionClient ¶
func SubscriptionClient(client *JSONApiClient) *subscriptionClient
func SupplyClient ¶
func SupplyClient(client *JSONApiClient) *supplyClient
func TaskClient ¶
func TaskClient(client *JSONApiClient) *taskClient
func TokenClient ¶
func TokenClient(client *JSONApiClient) *tokenClient
func UnmarshalResponse ¶
func UomClient ¶
func UomClient(client *JSONApiClient) *uomClient
func UserSettingsClient ¶
func UserSettingsClient(client *JSONApiClient) *userSettingsClient
func VariantClient ¶
func VariantClient(client *JSONApiClient) *variantClient
func WebhookClient ¶
func WebhookClient(client *JSONApiClient) *webhookClient
Types ¶
type BulkDeleteResponseJSON ¶
type EntityBaseClient ¶
type EntityBaseClient struct { QueryParams params.QueryParams // contains filtered or unexported fields }
func NewEntityClientBase ¶
func NewEntityClientBase(c *JSONApiClient, entityType entity.MetaType) *EntityBaseClient
func (*EntityBaseClient) DoRequest ¶
func (c *EntityBaseClient) DoRequest(method string, data any) (response *Response)
func (*EntityBaseClient) SetParams ¶
func (c *EntityBaseClient) SetParams(params *params.QueryParams)
func (*EntityBaseClient) SubPath ¶
func (c *EntityBaseClient) SubPath(subPath string)
type Error ¶
type Error struct { ErrorText string `json:"error"` Code int `json:"code"` Parameter string `json:"parameter"` MoreInfo string `json:"moreInfo"` Line int `json:"line"` Column int `json:"column"` // contains filtered or unexported fields }
func (*Error) IsApiError ¶
func (*Error) UnmarshalJSON ¶
type HasTemplate ¶
type HasTemplate interface { entity.InvoiceOut | entity.SalesReturn | entity.PurchaseReturn | entity.PaymentIn | entity.ProcessingOrder | entity.PurchaseOrder | entity.PaymentOut | entity.Enter | entity.Demand | entity.Move | entity.CashIn | entity.CashOut | entity.RetailDemand | entity.Loss | entity.InvoiceIn | entity.Processing | entity.RetailDrawerCashIn | entity.RetailDrawerCashOut // Выплата денег (retaildrawercashout) }
HasTemplate Документы,по которым можно получить шаблон
type JSONApiClient ¶
type JSONApiClient struct {
// contains filtered or unexported fields
}
func NewJSONApiClientDefault ¶
func NewJSONApiClientDefault() (client *JSONApiClient)
func (*JSONApiClient) Context ¶
func (c *JSONApiClient) Context() *ctxClient
func (*JSONApiClient) DisableWebhookContent ¶
func (c *JSONApiClient) DisableWebhookContent(value bool) *JSONApiClient
func (*JSONApiClient) Entity ¶
func (c *JSONApiClient) Entity() *entityClient
func (*JSONApiClient) PrettyPrintJson ¶
func (c *JSONApiClient) PrettyPrintJson(value bool) *JSONApiClient
func (*JSONApiClient) PricePrecision ¶
func (c *JSONApiClient) PricePrecision(value bool) *JSONApiClient
func (*JSONApiClient) Report ¶
func (c *JSONApiClient) Report() *reportClient
func (*JSONApiClient) SetAttempts ¶
func (c *JSONApiClient) SetAttempts(attempts int) *JSONApiClient
func (*JSONApiClient) SetCredentials ¶
func (c *JSONApiClient) SetCredentials(username, password string) *JSONApiClient
func (*JSONApiClient) SetTimeout ¶
func (c *JSONApiClient) SetTimeout(timeout int) *JSONApiClient
func (*JSONApiClient) SetToken ¶
func (c *JSONApiClient) SetToken(token string) *JSONApiClient
type MoneyPlotSeries ¶
type MoneyPlotSeries struct { Credit float64 `json:"credit"` // Доход Debit float64 `json:"debit"` // Расход Series []MoneyPlotSeriesElement `json:"series"` // Массив показателей // contains filtered or unexported fields }
type MoneyPlotSeriesElement ¶
type Response ¶
type Response struct { TimeStart time.Time `json:"-"` TimeElapsed float64 `json:"-"` StatusCode int `json:"-"` Body []byte `json:"-"` Errors Errors `json:"errors"` }
func DeleteRequest ¶
func DeleteRequest(c *EntityBaseClient) *Response
func GetRequest ¶
func GetRequest[T any](c *EntityBaseClient) (T, *Response)
func PostRequest ¶
func PostRequest[T any](c *EntityBaseClient, data any) (T, *Response)
func PutRequest ¶
func PutRequest[T any](c *EntityBaseClient, data any) (T, *Response)
func (*Response) GetErrorsInline ¶
type ResultAssortment ¶
type ResultAssortment struct { ResultContext entity.MetaArrayAssortment }
ResultAssortment Объект ответа для получения ассортимента
type ResultContext ¶
type SalesOrdersPlotSeries ¶
type SalesOrdersPlotSeries struct { Series []SalesOrdersPlotSeriesElement `json:"series"` // Массив показателей // contains filtered or unexported fields }
Source Files ¶
- access_endpoint.go
- accumulationDiscount_client.go
- assortment_client.go
- base_client.go
- base_endpoint.go
- bonusProgram_client.go
- bonusTransaction_client.go
- bulkCreateOrUpdate_endpoint.go
- bulkDelete_endpoint.go
- bundle_client.go
- cashIn_client.go
- cashOut_client.go
- characteristics_client.go
- client.go
- commissionReportIn_client.go
- commissionReportOut_client.go
- companySettings_client.go
- consignment_client.go
- context_client.go
- contract_client.go
- counterPartyAdjustment_client.go
- counterparty_client.go
- country_client.go
- currency_client.go
- customEntity_client.go
- customerOrder_client.go
- deleteById_endpoint.go
- demand_client.go
- discount_client.go
- documentMetadata_endpoint.go
- documentNew_endpoint.go
- documentPositions_endpoint.go
- employee_client.go
- enter_client.go
- entity_client.go
- error.go
- expenseItem_client.go
- export_endpoint.go
- factureIn_client.go
- factureOut_client.go
- files_endpoint.go
- getById_endpoint.go
- getBySyncId_endpoint.go
- getMany_endpoint.go
- getOne_endpoint.go
- group_client.go
- images_endpoint.go
- internalOrder_client.go
- inventory_client.go
- invoiceIn_client.go
- invoiceOut_client.go
- loss_client.go
- metadataAttribute_endpoint.go
- metadataTemplates_endpoint.go
- metadata_client.go
- metadata_endpoint.go
- move_client.go
- new_endpoint.go
- notificationSubscription_client.go
- notification_client.go
- organization_client.go
- paymentIn_client.go
- paymentOut_client.go
- permissions_endpoint.go
- personalDiscount_client.go
- post_endpoint.go
- prepaymentReturn_client.go
- prepayment_client.go
- priceList_client.go
- priceType_client.go
- processingOrder_client.go
- processingPlan_client.go
- processing_client.go
- productFolder_client.go
- product_client.go
- project_client.go
- publication_endpoint.go
- purchaseOrder_client.go
- purchaseReturn_client.go
- putById_endpoint.go
- put_endpoint.go
- region_client.go
- report_client.go
- report_counterparty_client.go
- report_dashboard_client.go
- report_money_client.go
- report_orders_client.go
- report_profit_client.go
- report_sales_client.go
- report_stock_client.go
- report_turnover_client.go
- request.go
- response.go
- result.go
- retailDemand_client.go
- retailDrawerCashIn_client.go
- retailDrawerCashOut_client.go
- retailSalesReturn_client.go
- retailShift_client.go
- retailStore_client.go
- role_client.go
- salesChannel_client.go
- salesReturn_client.go
- service_client.go
- settings_endpoint.go
- specialPriceDiscount_client.go
- states_client.go
- states_endpoint.go
- store_client.go
- subscription_client.go
- supply_client.go
- task_client.go
- token_client.go
- uom_client.go
- userSettings_client.go
- variant_client.go
- webhook_client.go
Click to show internal directories.
Click to hide internal directories.