11 KiB
BaseShipmentDTO
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| Id | int64 | Идентификатор отгрузки. | |
| PlanIntervalFrom | time.Time | Начало планового интервала отгрузки. Формат даты: :no-translate[ISO 8601] со смещением относительно :no-translate[UTC]. | |
| PlanIntervalTo | time.Time | Конец планового интервала отгрузки. Формат даты: :no-translate[ISO 8601] со смещением относительно :no-translate[UTC. | |
| ShipmentType | Pointer to ShipmentType | [optional] | |
| Warehouse | Pointer to PartnerShipmentWarehouseDTO | [optional] | |
| WarehouseTo | Pointer to PartnerShipmentWarehouseDTO | [optional] | |
| ExternalId | Pointer to string | Идентификатор отгрузки в вашей системе. Если вы еще не передавали идентификатор, вернется идентификатор из параметра `id`. | [optional] |
| DeliveryService | Pointer to DeliveryServiceDTO | [optional] | |
| PalletsCount | Pointer to PalletsCountDTO | [optional] | |
| OrderIds | []int64 | Идентификаторы заказов в отгрузке. | |
| DraftCount | int32 | Количество заказов, которое Маркет запланировал к отгрузке. | |
| PlannedCount | int32 | Количество заказов, которое Маркет подтвердил к отгрузке. | |
| FactCount | int32 | Количество заказов, принятых в сортировочном центре или пункте приема. | |
| Signature | SignatureDTO |
Methods
NewBaseShipmentDTO
func NewBaseShipmentDTO(id int64, planIntervalFrom time.Time, planIntervalTo time.Time, orderIds []int64, draftCount int32, plannedCount int32, factCount int32, signature SignatureDTO, ) *BaseShipmentDTO
NewBaseShipmentDTO instantiates a new BaseShipmentDTO object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
NewBaseShipmentDTOWithDefaults
func NewBaseShipmentDTOWithDefaults() *BaseShipmentDTO
NewBaseShipmentDTOWithDefaults instantiates a new BaseShipmentDTO object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
GetId
func (o *BaseShipmentDTO) GetId() int64
GetId returns the Id field if non-nil, zero value otherwise.
GetIdOk
func (o *BaseShipmentDTO) GetIdOk() (*int64, bool)
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetId
func (o *BaseShipmentDTO) SetId(v int64)
SetId sets Id field to given value.
GetPlanIntervalFrom
func (o *BaseShipmentDTO) GetPlanIntervalFrom() time.Time
GetPlanIntervalFrom returns the PlanIntervalFrom field if non-nil, zero value otherwise.
GetPlanIntervalFromOk
func (o *BaseShipmentDTO) GetPlanIntervalFromOk() (*time.Time, bool)
GetPlanIntervalFromOk returns a tuple with the PlanIntervalFrom field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetPlanIntervalFrom
func (o *BaseShipmentDTO) SetPlanIntervalFrom(v time.Time)
SetPlanIntervalFrom sets PlanIntervalFrom field to given value.
GetPlanIntervalTo
func (o *BaseShipmentDTO) GetPlanIntervalTo() time.Time
GetPlanIntervalTo returns the PlanIntervalTo field if non-nil, zero value otherwise.
GetPlanIntervalToOk
func (o *BaseShipmentDTO) GetPlanIntervalToOk() (*time.Time, bool)
GetPlanIntervalToOk returns a tuple with the PlanIntervalTo field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetPlanIntervalTo
func (o *BaseShipmentDTO) SetPlanIntervalTo(v time.Time)
SetPlanIntervalTo sets PlanIntervalTo field to given value.
GetShipmentType
func (o *BaseShipmentDTO) GetShipmentType() ShipmentType
GetShipmentType returns the ShipmentType field if non-nil, zero value otherwise.
GetShipmentTypeOk
func (o *BaseShipmentDTO) GetShipmentTypeOk() (*ShipmentType, bool)
GetShipmentTypeOk returns a tuple with the ShipmentType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetShipmentType
func (o *BaseShipmentDTO) SetShipmentType(v ShipmentType)
SetShipmentType sets ShipmentType field to given value.
HasShipmentType
func (o *BaseShipmentDTO) HasShipmentType() bool
HasShipmentType returns a boolean if a field has been set.
GetWarehouse
func (o *BaseShipmentDTO) GetWarehouse() PartnerShipmentWarehouseDTO
GetWarehouse returns the Warehouse field if non-nil, zero value otherwise.
GetWarehouseOk
func (o *BaseShipmentDTO) GetWarehouseOk() (*PartnerShipmentWarehouseDTO, bool)
GetWarehouseOk returns a tuple with the Warehouse field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetWarehouse
func (o *BaseShipmentDTO) SetWarehouse(v PartnerShipmentWarehouseDTO)
SetWarehouse sets Warehouse field to given value.
HasWarehouse
func (o *BaseShipmentDTO) HasWarehouse() bool
HasWarehouse returns a boolean if a field has been set.
GetWarehouseTo
func (o *BaseShipmentDTO) GetWarehouseTo() PartnerShipmentWarehouseDTO
GetWarehouseTo returns the WarehouseTo field if non-nil, zero value otherwise.
GetWarehouseToOk
func (o *BaseShipmentDTO) GetWarehouseToOk() (*PartnerShipmentWarehouseDTO, bool)
GetWarehouseToOk returns a tuple with the WarehouseTo field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetWarehouseTo
func (o *BaseShipmentDTO) SetWarehouseTo(v PartnerShipmentWarehouseDTO)
SetWarehouseTo sets WarehouseTo field to given value.
HasWarehouseTo
func (o *BaseShipmentDTO) HasWarehouseTo() bool
HasWarehouseTo returns a boolean if a field has been set.
GetExternalId
func (o *BaseShipmentDTO) GetExternalId() string
GetExternalId returns the ExternalId field if non-nil, zero value otherwise.
GetExternalIdOk
func (o *BaseShipmentDTO) GetExternalIdOk() (*string, bool)
GetExternalIdOk returns a tuple with the ExternalId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetExternalId
func (o *BaseShipmentDTO) SetExternalId(v string)
SetExternalId sets ExternalId field to given value.
HasExternalId
func (o *BaseShipmentDTO) HasExternalId() bool
HasExternalId returns a boolean if a field has been set.
GetDeliveryService
func (o *BaseShipmentDTO) GetDeliveryService() DeliveryServiceDTO
GetDeliveryService returns the DeliveryService field if non-nil, zero value otherwise.
GetDeliveryServiceOk
func (o *BaseShipmentDTO) GetDeliveryServiceOk() (*DeliveryServiceDTO, bool)
GetDeliveryServiceOk returns a tuple with the DeliveryService field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetDeliveryService
func (o *BaseShipmentDTO) SetDeliveryService(v DeliveryServiceDTO)
SetDeliveryService sets DeliveryService field to given value.
HasDeliveryService
func (o *BaseShipmentDTO) HasDeliveryService() bool
HasDeliveryService returns a boolean if a field has been set.
GetPalletsCount
func (o *BaseShipmentDTO) GetPalletsCount() PalletsCountDTO
GetPalletsCount returns the PalletsCount field if non-nil, zero value otherwise.
GetPalletsCountOk
func (o *BaseShipmentDTO) GetPalletsCountOk() (*PalletsCountDTO, bool)
GetPalletsCountOk returns a tuple with the PalletsCount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetPalletsCount
func (o *BaseShipmentDTO) SetPalletsCount(v PalletsCountDTO)
SetPalletsCount sets PalletsCount field to given value.
HasPalletsCount
func (o *BaseShipmentDTO) HasPalletsCount() bool
HasPalletsCount returns a boolean if a field has been set.
GetOrderIds
func (o *BaseShipmentDTO) GetOrderIds() []int64
GetOrderIds returns the OrderIds field if non-nil, zero value otherwise.
GetOrderIdsOk
func (o *BaseShipmentDTO) GetOrderIdsOk() (*[]int64, bool)
GetOrderIdsOk returns a tuple with the OrderIds field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetOrderIds
func (o *BaseShipmentDTO) SetOrderIds(v []int64)
SetOrderIds sets OrderIds field to given value.
GetDraftCount
func (o *BaseShipmentDTO) GetDraftCount() int32
GetDraftCount returns the DraftCount field if non-nil, zero value otherwise.
GetDraftCountOk
func (o *BaseShipmentDTO) GetDraftCountOk() (*int32, bool)
GetDraftCountOk returns a tuple with the DraftCount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetDraftCount
func (o *BaseShipmentDTO) SetDraftCount(v int32)
SetDraftCount sets DraftCount field to given value.
GetPlannedCount
func (o *BaseShipmentDTO) GetPlannedCount() int32
GetPlannedCount returns the PlannedCount field if non-nil, zero value otherwise.
GetPlannedCountOk
func (o *BaseShipmentDTO) GetPlannedCountOk() (*int32, bool)
GetPlannedCountOk returns a tuple with the PlannedCount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetPlannedCount
func (o *BaseShipmentDTO) SetPlannedCount(v int32)
SetPlannedCount sets PlannedCount field to given value.
GetFactCount
func (o *BaseShipmentDTO) GetFactCount() int32
GetFactCount returns the FactCount field if non-nil, zero value otherwise.
GetFactCountOk
func (o *BaseShipmentDTO) GetFactCountOk() (*int32, bool)
GetFactCountOk returns a tuple with the FactCount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetFactCount
func (o *BaseShipmentDTO) SetFactCount(v int32)
SetFactCount sets FactCount field to given value.
GetSignature
func (o *BaseShipmentDTO) GetSignature() SignatureDTO
GetSignature returns the Signature field if non-nil, zero value otherwise.
GetSignatureOk
func (o *BaseShipmentDTO) GetSignatureOk() (*SignatureDTO, bool)
GetSignatureOk returns a tuple with the Signature field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetSignature
func (o *BaseShipmentDTO) SetSignature(v SignatureDTO)
SetSignature sets Signature field to given value.