Files
Sipro-Marketplaces/pkg/api/yandex/ymclient/docs/PromoPeriodDTO.md
2025-08-15 11:10:28 +03:00

2.2 KiB

PromoPeriodDTO

Properties

Name Type Description Notes
DateTimeFrom time.Time Дата и время начала акции.
DateTimeTo time.Time Дата и время окончания акции.

Methods

NewPromoPeriodDTO

func NewPromoPeriodDTO(dateTimeFrom time.Time, dateTimeTo time.Time, ) *PromoPeriodDTO

NewPromoPeriodDTO instantiates a new PromoPeriodDTO 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

NewPromoPeriodDTOWithDefaults

func NewPromoPeriodDTOWithDefaults() *PromoPeriodDTO

NewPromoPeriodDTOWithDefaults instantiates a new PromoPeriodDTO 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

GetDateTimeFrom

func (o *PromoPeriodDTO) GetDateTimeFrom() time.Time

GetDateTimeFrom returns the DateTimeFrom field if non-nil, zero value otherwise.

GetDateTimeFromOk

func (o *PromoPeriodDTO) GetDateTimeFromOk() (*time.Time, bool)

GetDateTimeFromOk returns a tuple with the DateTimeFrom field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetDateTimeFrom

func (o *PromoPeriodDTO) SetDateTimeFrom(v time.Time)

SetDateTimeFrom sets DateTimeFrom field to given value.

GetDateTimeTo

func (o *PromoPeriodDTO) GetDateTimeTo() time.Time

GetDateTimeTo returns the DateTimeTo field if non-nil, zero value otherwise.

GetDateTimeToOk

func (o *PromoPeriodDTO) GetDateTimeToOk() (*time.Time, bool)

GetDateTimeToOk returns a tuple with the DateTimeTo field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetDateTimeTo

func (o *PromoPeriodDTO) SetDateTimeTo(v time.Time)

SetDateTimeTo sets DateTimeTo field to given value.

[Back to Model list] [Back to API list] [Back to README]