Skip to content

Latest commit

 

History

History
412 lines (227 loc) · 11.4 KB

File metadata and controls

412 lines (227 loc) · 11.4 KB

PromoCodeQueryParams

Properties

Name Type Description Notes
Code Pointer to NullableString [optional]
CouponId Pointer to NullableString [optional]
CreatedAt Pointer to NullableDateTimeFilter [optional]
Expand Pointer to []string Specifies which fields in the response should be expanded. [optional]
ExpiresAt Pointer to NullableDateTimeFilter [optional]
IsActive Pointer to NullableBool [optional]
PageNumber Pointer to int32 Page number [optional] [default to 1]
PageSize Pointer to int32 Page size [optional] [default to 100]
Search Pointer to NullableSearchFilter [optional]
SortDescending Pointer to bool Sort direction. [optional] [default to false]
SortKey Pointer to string Key name based on which data is sorted. [optional] [default to "created_at"]
UpdatedAt Pointer to NullableDateTimeFilter [optional]

Methods

NewPromoCodeQueryParams

func NewPromoCodeQueryParams() *PromoCodeQueryParams

NewPromoCodeQueryParams instantiates a new PromoCodeQueryParams 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

NewPromoCodeQueryParamsWithDefaults

func NewPromoCodeQueryParamsWithDefaults() *PromoCodeQueryParams

NewPromoCodeQueryParamsWithDefaults instantiates a new PromoCodeQueryParams 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

GetCode

func (o *PromoCodeQueryParams) GetCode() string

GetCode returns the Code field if non-nil, zero value otherwise.

GetCodeOk

func (o *PromoCodeQueryParams) GetCodeOk() (*string, bool)

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

SetCode

func (o *PromoCodeQueryParams) SetCode(v string)

SetCode sets Code field to given value.

HasCode

func (o *PromoCodeQueryParams) HasCode() bool

HasCode returns a boolean if a field has been set.

SetCodeNil

func (o *PromoCodeQueryParams) SetCodeNil(b bool)

SetCodeNil sets the value for Code to be an explicit nil

UnsetCode

func (o *PromoCodeQueryParams) UnsetCode()

UnsetCode ensures that no value is present for Code, not even an explicit nil

GetCouponId

func (o *PromoCodeQueryParams) GetCouponId() string

GetCouponId returns the CouponId field if non-nil, zero value otherwise.

GetCouponIdOk

func (o *PromoCodeQueryParams) GetCouponIdOk() (*string, bool)

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

SetCouponId

func (o *PromoCodeQueryParams) SetCouponId(v string)

SetCouponId sets CouponId field to given value.

HasCouponId

func (o *PromoCodeQueryParams) HasCouponId() bool

HasCouponId returns a boolean if a field has been set.

SetCouponIdNil

func (o *PromoCodeQueryParams) SetCouponIdNil(b bool)

SetCouponIdNil sets the value for CouponId to be an explicit nil

UnsetCouponId

func (o *PromoCodeQueryParams) UnsetCouponId()

UnsetCouponId ensures that no value is present for CouponId, not even an explicit nil

GetCreatedAt

func (o *PromoCodeQueryParams) GetCreatedAt() DateTimeFilter

GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise.

GetCreatedAtOk

func (o *PromoCodeQueryParams) GetCreatedAtOk() (*DateTimeFilter, bool)

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

SetCreatedAt

func (o *PromoCodeQueryParams) SetCreatedAt(v DateTimeFilter)

SetCreatedAt sets CreatedAt field to given value.

HasCreatedAt

func (o *PromoCodeQueryParams) HasCreatedAt() bool

HasCreatedAt returns a boolean if a field has been set.

SetCreatedAtNil

func (o *PromoCodeQueryParams) SetCreatedAtNil(b bool)

SetCreatedAtNil sets the value for CreatedAt to be an explicit nil

UnsetCreatedAt

func (o *PromoCodeQueryParams) UnsetCreatedAt()

UnsetCreatedAt ensures that no value is present for CreatedAt, not even an explicit nil

GetExpand

func (o *PromoCodeQueryParams) GetExpand() []string

GetExpand returns the Expand field if non-nil, zero value otherwise.

GetExpandOk

func (o *PromoCodeQueryParams) GetExpandOk() (*[]string, bool)

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

SetExpand

func (o *PromoCodeQueryParams) SetExpand(v []string)

SetExpand sets Expand field to given value.

HasExpand

func (o *PromoCodeQueryParams) HasExpand() bool

HasExpand returns a boolean if a field has been set.

GetExpiresAt

func (o *PromoCodeQueryParams) GetExpiresAt() DateTimeFilter

GetExpiresAt returns the ExpiresAt field if non-nil, zero value otherwise.

GetExpiresAtOk

func (o *PromoCodeQueryParams) GetExpiresAtOk() (*DateTimeFilter, bool)

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

SetExpiresAt

func (o *PromoCodeQueryParams) SetExpiresAt(v DateTimeFilter)

SetExpiresAt sets ExpiresAt field to given value.

HasExpiresAt

func (o *PromoCodeQueryParams) HasExpiresAt() bool

HasExpiresAt returns a boolean if a field has been set.

SetExpiresAtNil

func (o *PromoCodeQueryParams) SetExpiresAtNil(b bool)

SetExpiresAtNil sets the value for ExpiresAt to be an explicit nil

UnsetExpiresAt

func (o *PromoCodeQueryParams) UnsetExpiresAt()

UnsetExpiresAt ensures that no value is present for ExpiresAt, not even an explicit nil

GetIsActive

func (o *PromoCodeQueryParams) GetIsActive() bool

GetIsActive returns the IsActive field if non-nil, zero value otherwise.

GetIsActiveOk

func (o *PromoCodeQueryParams) GetIsActiveOk() (*bool, bool)

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

SetIsActive

func (o *PromoCodeQueryParams) SetIsActive(v bool)

SetIsActive sets IsActive field to given value.

HasIsActive

func (o *PromoCodeQueryParams) HasIsActive() bool

HasIsActive returns a boolean if a field has been set.

SetIsActiveNil

func (o *PromoCodeQueryParams) SetIsActiveNil(b bool)

SetIsActiveNil sets the value for IsActive to be an explicit nil

UnsetIsActive

func (o *PromoCodeQueryParams) UnsetIsActive()

UnsetIsActive ensures that no value is present for IsActive, not even an explicit nil

GetPageNumber

func (o *PromoCodeQueryParams) GetPageNumber() int32

GetPageNumber returns the PageNumber field if non-nil, zero value otherwise.

GetPageNumberOk

func (o *PromoCodeQueryParams) GetPageNumberOk() (*int32, bool)

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

SetPageNumber

func (o *PromoCodeQueryParams) SetPageNumber(v int32)

SetPageNumber sets PageNumber field to given value.

HasPageNumber

func (o *PromoCodeQueryParams) HasPageNumber() bool

HasPageNumber returns a boolean if a field has been set.

GetPageSize

func (o *PromoCodeQueryParams) GetPageSize() int32

GetPageSize returns the PageSize field if non-nil, zero value otherwise.

GetPageSizeOk

func (o *PromoCodeQueryParams) GetPageSizeOk() (*int32, bool)

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

SetPageSize

func (o *PromoCodeQueryParams) SetPageSize(v int32)

SetPageSize sets PageSize field to given value.

HasPageSize

func (o *PromoCodeQueryParams) HasPageSize() bool

HasPageSize returns a boolean if a field has been set.

GetSearch

func (o *PromoCodeQueryParams) GetSearch() SearchFilter

GetSearch returns the Search field if non-nil, zero value otherwise.

GetSearchOk

func (o *PromoCodeQueryParams) GetSearchOk() (*SearchFilter, bool)

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

SetSearch

func (o *PromoCodeQueryParams) SetSearch(v SearchFilter)

SetSearch sets Search field to given value.

HasSearch

func (o *PromoCodeQueryParams) HasSearch() bool

HasSearch returns a boolean if a field has been set.

SetSearchNil

func (o *PromoCodeQueryParams) SetSearchNil(b bool)

SetSearchNil sets the value for Search to be an explicit nil

UnsetSearch

func (o *PromoCodeQueryParams) UnsetSearch()

UnsetSearch ensures that no value is present for Search, not even an explicit nil

GetSortDescending

func (o *PromoCodeQueryParams) GetSortDescending() bool

GetSortDescending returns the SortDescending field if non-nil, zero value otherwise.

GetSortDescendingOk

func (o *PromoCodeQueryParams) GetSortDescendingOk() (*bool, bool)

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

SetSortDescending

func (o *PromoCodeQueryParams) SetSortDescending(v bool)

SetSortDescending sets SortDescending field to given value.

HasSortDescending

func (o *PromoCodeQueryParams) HasSortDescending() bool

HasSortDescending returns a boolean if a field has been set.

GetSortKey

func (o *PromoCodeQueryParams) GetSortKey() string

GetSortKey returns the SortKey field if non-nil, zero value otherwise.

GetSortKeyOk

func (o *PromoCodeQueryParams) GetSortKeyOk() (*string, bool)

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

SetSortKey

func (o *PromoCodeQueryParams) SetSortKey(v string)

SetSortKey sets SortKey field to given value.

HasSortKey

func (o *PromoCodeQueryParams) HasSortKey() bool

HasSortKey returns a boolean if a field has been set.

GetUpdatedAt

func (o *PromoCodeQueryParams) GetUpdatedAt() DateTimeFilter

GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise.

GetUpdatedAtOk

func (o *PromoCodeQueryParams) GetUpdatedAtOk() (*DateTimeFilter, bool)

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

SetUpdatedAt

func (o *PromoCodeQueryParams) SetUpdatedAt(v DateTimeFilter)

SetUpdatedAt sets UpdatedAt field to given value.

HasUpdatedAt

func (o *PromoCodeQueryParams) HasUpdatedAt() bool

HasUpdatedAt returns a boolean if a field has been set.

SetUpdatedAtNil

func (o *PromoCodeQueryParams) SetUpdatedAtNil(b bool)

SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil

UnsetUpdatedAt

func (o *PromoCodeQueryParams) UnsetUpdatedAt()

UnsetUpdatedAt ensures that no value is present for UpdatedAt, not even an explicit nil

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