9.2 KiB
OutletDTO
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| Name | string | Название точки продаж. | |
| Type | OutletType | ||
| Coords | Pointer to string | Координаты точки продаж. Формат: долгота, широта. Разделители: запятая и / или пробел. Например, `20.4522144, 54.7104264`. Если параметр не передан, координаты будут определены по значениям параметров, вложенных в `address`. | [optional] |
| IsMain | Pointer to bool | Признак основной точки продаж. Возможные значения: * `false` — неосновная точка продаж. * `true` — основная точка продаж. | [optional] |
| ShopOutletCode | Pointer to string | Идентификатор точки продаж, присвоенный магазином. | [optional] |
| Visibility | Pointer to OutletVisibilityType | [optional] | |
| Address | OutletAddressDTO | ||
| Phones | []string | Номера телефонов точки продаж. Передавайте в формате: `+7 (999) 999-99-99`. | |
| WorkingSchedule | OutletWorkingScheduleDTO | ||
| DeliveryRules | Pointer to []OutletDeliveryRuleDTO | Информация об условиях доставки для данной точки продаж. Обязательный параметр, если параметр `type=DEPOT` или `type=MIXED`. | [optional] |
| StoragePeriod | Pointer to int64 | Срок хранения заказа в собственном пункте выдачи заказов. Считается в днях. | [optional] |
Methods
NewOutletDTO
func NewOutletDTO(name string, type_ OutletType, address OutletAddressDTO, phones []string, workingSchedule OutletWorkingScheduleDTO, ) *OutletDTO
NewOutletDTO instantiates a new OutletDTO 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
NewOutletDTOWithDefaults
func NewOutletDTOWithDefaults() *OutletDTO
NewOutletDTOWithDefaults instantiates a new OutletDTO 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
GetName
func (o *OutletDTO) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
GetNameOk
func (o *OutletDTO) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetName
func (o *OutletDTO) SetName(v string)
SetName sets Name field to given value.
GetType
func (o *OutletDTO) GetType() OutletType
GetType returns the Type field if non-nil, zero value otherwise.
GetTypeOk
func (o *OutletDTO) GetTypeOk() (*OutletType, bool)
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetType
func (o *OutletDTO) SetType(v OutletType)
SetType sets Type field to given value.
GetCoords
func (o *OutletDTO) GetCoords() string
GetCoords returns the Coords field if non-nil, zero value otherwise.
GetCoordsOk
func (o *OutletDTO) GetCoordsOk() (*string, bool)
GetCoordsOk returns a tuple with the Coords field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetCoords
func (o *OutletDTO) SetCoords(v string)
SetCoords sets Coords field to given value.
HasCoords
func (o *OutletDTO) HasCoords() bool
HasCoords returns a boolean if a field has been set.
GetIsMain
func (o *OutletDTO) GetIsMain() bool
GetIsMain returns the IsMain field if non-nil, zero value otherwise.
GetIsMainOk
func (o *OutletDTO) GetIsMainOk() (*bool, bool)
GetIsMainOk returns a tuple with the IsMain field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetIsMain
func (o *OutletDTO) SetIsMain(v bool)
SetIsMain sets IsMain field to given value.
HasIsMain
func (o *OutletDTO) HasIsMain() bool
HasIsMain returns a boolean if a field has been set.
GetShopOutletCode
func (o *OutletDTO) GetShopOutletCode() string
GetShopOutletCode returns the ShopOutletCode field if non-nil, zero value otherwise.
GetShopOutletCodeOk
func (o *OutletDTO) GetShopOutletCodeOk() (*string, bool)
GetShopOutletCodeOk returns a tuple with the ShopOutletCode field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetShopOutletCode
func (o *OutletDTO) SetShopOutletCode(v string)
SetShopOutletCode sets ShopOutletCode field to given value.
HasShopOutletCode
func (o *OutletDTO) HasShopOutletCode() bool
HasShopOutletCode returns a boolean if a field has been set.
GetVisibility
func (o *OutletDTO) GetVisibility() OutletVisibilityType
GetVisibility returns the Visibility field if non-nil, zero value otherwise.
GetVisibilityOk
func (o *OutletDTO) GetVisibilityOk() (*OutletVisibilityType, bool)
GetVisibilityOk returns a tuple with the Visibility field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetVisibility
func (o *OutletDTO) SetVisibility(v OutletVisibilityType)
SetVisibility sets Visibility field to given value.
HasVisibility
func (o *OutletDTO) HasVisibility() bool
HasVisibility returns a boolean if a field has been set.
GetAddress
func (o *OutletDTO) GetAddress() OutletAddressDTO
GetAddress returns the Address field if non-nil, zero value otherwise.
GetAddressOk
func (o *OutletDTO) GetAddressOk() (*OutletAddressDTO, bool)
GetAddressOk returns a tuple with the Address field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetAddress
func (o *OutletDTO) SetAddress(v OutletAddressDTO)
SetAddress sets Address field to given value.
GetPhones
func (o *OutletDTO) GetPhones() []string
GetPhones returns the Phones field if non-nil, zero value otherwise.
GetPhonesOk
func (o *OutletDTO) GetPhonesOk() (*[]string, bool)
GetPhonesOk returns a tuple with the Phones field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetPhones
func (o *OutletDTO) SetPhones(v []string)
SetPhones sets Phones field to given value.
GetWorkingSchedule
func (o *OutletDTO) GetWorkingSchedule() OutletWorkingScheduleDTO
GetWorkingSchedule returns the WorkingSchedule field if non-nil, zero value otherwise.
GetWorkingScheduleOk
func (o *OutletDTO) GetWorkingScheduleOk() (*OutletWorkingScheduleDTO, bool)
GetWorkingScheduleOk returns a tuple with the WorkingSchedule field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetWorkingSchedule
func (o *OutletDTO) SetWorkingSchedule(v OutletWorkingScheduleDTO)
SetWorkingSchedule sets WorkingSchedule field to given value.
GetDeliveryRules
func (o *OutletDTO) GetDeliveryRules() []OutletDeliveryRuleDTO
GetDeliveryRules returns the DeliveryRules field if non-nil, zero value otherwise.
GetDeliveryRulesOk
func (o *OutletDTO) GetDeliveryRulesOk() (*[]OutletDeliveryRuleDTO, bool)
GetDeliveryRulesOk returns a tuple with the DeliveryRules field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetDeliveryRules
func (o *OutletDTO) SetDeliveryRules(v []OutletDeliveryRuleDTO)
SetDeliveryRules sets DeliveryRules field to given value.
HasDeliveryRules
func (o *OutletDTO) HasDeliveryRules() bool
HasDeliveryRules returns a boolean if a field has been set.
SetDeliveryRulesNil
func (o *OutletDTO) SetDeliveryRulesNil(b bool)
SetDeliveryRulesNil sets the value for DeliveryRules to be an explicit nil
UnsetDeliveryRules
func (o *OutletDTO) UnsetDeliveryRules()
UnsetDeliveryRules ensures that no value is present for DeliveryRules, not even an explicit nil
GetStoragePeriod
func (o *OutletDTO) GetStoragePeriod() int64
GetStoragePeriod returns the StoragePeriod field if non-nil, zero value otherwise.
GetStoragePeriodOk
func (o *OutletDTO) GetStoragePeriodOk() (*int64, bool)
GetStoragePeriodOk returns a tuple with the StoragePeriod field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetStoragePeriod
func (o *OutletDTO) SetStoragePeriod(v int64)
SetStoragePeriod sets StoragePeriod field to given value.
HasStoragePeriod
func (o *OutletDTO) HasStoragePeriod() bool
HasStoragePeriod returns a boolean if a field has been set.