-
Notifications
You must be signed in to change notification settings - Fork 4
/
counterparty_adjustment.go
41 lines (37 loc) · 3.06 KB
/
counterparty_adjustment.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package moysklad
import (
"github.com/google/uuid"
"github.com/shopspring/decimal"
)
// CounterPartyAdjustment Корректировка баланса контрагента.
// Ключевое слово: counterpartyadjustment
// Документация МойСклад: https://dev.moysklad.ru/doc/api/remap/1.2/documents/#dokumenty-korrektirowka-balansa-kontragenta
type CounterPartyAdjustment struct {
AccountID *uuid.UUID `json:"accountId,omitempty"` // ID учетной записи
ID *uuid.UUID `json:"id,omitempty"` // ID сущности
Name *string `json:"name,omitempty"` // Наименование
Meta *Meta `json:"meta,omitempty"` // Метаданные
Agent *Counterparty `json:"agent,omitempty"` // Метаданные контрагента
Applicable *bool `json:"applicable,omitempty"` // Отметка о проведении
Attributes *Attributes `json:"attributes,omitempty"` // Коллекция метаданных доп. полей. Поля объекта
Created *Timestamp `json:"created,omitempty"` // Дата создания
Deleted *Timestamp `json:"deleted,omitempty"` // Момент последнего удаления Корректировки баланса контрагента
Description *string `json:"description,omitempty"` // Комментарий Корректировки баланса контрагента
ExternalCode *string `json:"externalCode,omitempty"` // Внешний код Корректировки баланса контрагента
Files *Files `json:"files,omitempty"` // Метаданные массива Файлов (Максимальное количество файлов - 100)
Group *Group `json:"group,omitempty"` // Отдел сотрудника
Moment *Timestamp `json:"moment,omitempty"` // Дата документа
Organization *Organization `json:"organization,omitempty"` // Метаданные юрлица
Owner *Employee `json:"owner,omitempty"` // Владелец (Сотрудник)
Printed *bool `json:"printed,omitempty"` // Напечатан ли документ
Published *bool `json:"published,omitempty"` // Опубликован ли документ
Shared *bool `json:"shared,omitempty"` // Общий доступ
Sum *decimal.Decimal `json:"sum,omitempty"` // Сумма Корректировки баланса контрагента в копейках
Updated *Timestamp `json:"updated,omitempty"` // Момент последнего обновления Корректировки баланса контрагента
}
func (c CounterPartyAdjustment) String() string {
return Stringify(c)
}
func (c CounterPartyAdjustment) MetaType() MetaType {
return MetaTypeCounterPartyAdjustment
}