Name | Type | Description | Notes |
---|---|---|---|
CreatedBefore | Pointer to time.Time | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] |
CreatedAfter | Pointer to time.Time | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] |
StartsAfter | Pointer to time.Time | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] |
StartsBefore | Pointer to time.Time | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] |
Valid | Pointer to string | - `expired`: Matches coupons in which the expiration date is set and in the past. - `validNow`: Matches coupons in which the start date is null or in the past and the expiration date is null or in the future. - `validFuture`: Matches coupons in which the start date is set and in the future. | [optional] |
Usable | Pointer to bool | - `true`: only coupons where `usageCounter < usageLimit` will be returned. - `false`: only coupons where `usageCounter >= usageLimit` will be returned. - This field cannot be used in conjunction with the `usable` query parameter. | [optional] |
Redeemed | Pointer to bool | - `true`: only coupons where `usageCounter > 0` will be returned. - `false`: only coupons where `usageCounter = 0` will be returned. Note: This field cannot be used in conjunction with the `usable` query parameter. | [optional] |
RecipientIntegrationId | Pointer to string | Filter results by match with a profile id specified in the coupon's `RecipientIntegrationId` field. | [optional] |
ExactMatch | Pointer to bool | Filter results to an exact case-insensitive matching against the coupon code | [optional] [default to false] |
Value | Pointer to string | Filter results by the coupon code | [optional] |
BatchId | Pointer to string | Filter results by batches of coupons | [optional] |
ReferralId | Pointer to int32 | Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. | [optional] |
ExpiresAfter | Pointer to time.Time | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] |
ExpiresBefore | Pointer to time.Time | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] |
func (o *CouponDeletionFilters) GetCreatedBefore() time.Time
GetCreatedBefore returns the CreatedBefore field if non-nil, zero value otherwise.
func (o *CouponDeletionFilters) GetCreatedBeforeOk() (time.Time, bool)
GetCreatedBeforeOk returns a tuple with the CreatedBefore field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CouponDeletionFilters) HasCreatedBefore() bool
HasCreatedBefore returns a boolean if a field has been set.
func (o *CouponDeletionFilters) SetCreatedBefore(v time.Time)
SetCreatedBefore gets a reference to the given time.Time and assigns it to the CreatedBefore field.
func (o *CouponDeletionFilters) GetCreatedAfter() time.Time
GetCreatedAfter returns the CreatedAfter field if non-nil, zero value otherwise.
func (o *CouponDeletionFilters) GetCreatedAfterOk() (time.Time, bool)
GetCreatedAfterOk returns a tuple with the CreatedAfter field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CouponDeletionFilters) HasCreatedAfter() bool
HasCreatedAfter returns a boolean if a field has been set.
func (o *CouponDeletionFilters) SetCreatedAfter(v time.Time)
SetCreatedAfter gets a reference to the given time.Time and assigns it to the CreatedAfter field.
func (o *CouponDeletionFilters) GetStartsAfter() time.Time
GetStartsAfter returns the StartsAfter field if non-nil, zero value otherwise.
func (o *CouponDeletionFilters) GetStartsAfterOk() (time.Time, bool)
GetStartsAfterOk returns a tuple with the StartsAfter field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CouponDeletionFilters) HasStartsAfter() bool
HasStartsAfter returns a boolean if a field has been set.
func (o *CouponDeletionFilters) SetStartsAfter(v time.Time)
SetStartsAfter gets a reference to the given time.Time and assigns it to the StartsAfter field.
func (o *CouponDeletionFilters) GetStartsBefore() time.Time
GetStartsBefore returns the StartsBefore field if non-nil, zero value otherwise.
func (o *CouponDeletionFilters) GetStartsBeforeOk() (time.Time, bool)
GetStartsBeforeOk returns a tuple with the StartsBefore field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CouponDeletionFilters) HasStartsBefore() bool
HasStartsBefore returns a boolean if a field has been set.
func (o *CouponDeletionFilters) SetStartsBefore(v time.Time)
SetStartsBefore gets a reference to the given time.Time and assigns it to the StartsBefore field.
func (o *CouponDeletionFilters) GetValid() string
GetValid returns the Valid field if non-nil, zero value otherwise.
func (o *CouponDeletionFilters) GetValidOk() (string, bool)
GetValidOk returns a tuple with the Valid field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CouponDeletionFilters) HasValid() bool
HasValid returns a boolean if a field has been set.
func (o *CouponDeletionFilters) SetValid(v string)
SetValid gets a reference to the given string and assigns it to the Valid field.
func (o *CouponDeletionFilters) GetUsable() bool
GetUsable returns the Usable field if non-nil, zero value otherwise.
func (o *CouponDeletionFilters) GetUsableOk() (bool, bool)
GetUsableOk returns a tuple with the Usable field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CouponDeletionFilters) HasUsable() bool
HasUsable returns a boolean if a field has been set.
func (o *CouponDeletionFilters) SetUsable(v bool)
SetUsable gets a reference to the given bool and assigns it to the Usable field.
func (o *CouponDeletionFilters) GetRedeemed() bool
GetRedeemed returns the Redeemed field if non-nil, zero value otherwise.
func (o *CouponDeletionFilters) GetRedeemedOk() (bool, bool)
GetRedeemedOk returns a tuple with the Redeemed field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CouponDeletionFilters) HasRedeemed() bool
HasRedeemed returns a boolean if a field has been set.
func (o *CouponDeletionFilters) SetRedeemed(v bool)
SetRedeemed gets a reference to the given bool and assigns it to the Redeemed field.
func (o *CouponDeletionFilters) GetRecipientIntegrationId() string
GetRecipientIntegrationId returns the RecipientIntegrationId field if non-nil, zero value otherwise.
func (o *CouponDeletionFilters) GetRecipientIntegrationIdOk() (string, bool)
GetRecipientIntegrationIdOk returns a tuple with the RecipientIntegrationId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CouponDeletionFilters) HasRecipientIntegrationId() bool
HasRecipientIntegrationId returns a boolean if a field has been set.
func (o *CouponDeletionFilters) SetRecipientIntegrationId(v string)
SetRecipientIntegrationId gets a reference to the given string and assigns it to the RecipientIntegrationId field.
func (o *CouponDeletionFilters) GetExactMatch() bool
GetExactMatch returns the ExactMatch field if non-nil, zero value otherwise.
func (o *CouponDeletionFilters) GetExactMatchOk() (bool, bool)
GetExactMatchOk returns a tuple with the ExactMatch field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CouponDeletionFilters) HasExactMatch() bool
HasExactMatch returns a boolean if a field has been set.
func (o *CouponDeletionFilters) SetExactMatch(v bool)
SetExactMatch gets a reference to the given bool and assigns it to the ExactMatch field.
func (o *CouponDeletionFilters) GetValue() string
GetValue returns the Value field if non-nil, zero value otherwise.
func (o *CouponDeletionFilters) GetValueOk() (string, bool)
GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CouponDeletionFilters) HasValue() bool
HasValue returns a boolean if a field has been set.
func (o *CouponDeletionFilters) SetValue(v string)
SetValue gets a reference to the given string and assigns it to the Value field.
func (o *CouponDeletionFilters) GetBatchId() string
GetBatchId returns the BatchId field if non-nil, zero value otherwise.
func (o *CouponDeletionFilters) GetBatchIdOk() (string, bool)
GetBatchIdOk returns a tuple with the BatchId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CouponDeletionFilters) HasBatchId() bool
HasBatchId returns a boolean if a field has been set.
func (o *CouponDeletionFilters) SetBatchId(v string)
SetBatchId gets a reference to the given string and assigns it to the BatchId field.
func (o *CouponDeletionFilters) GetReferralId() int32
GetReferralId returns the ReferralId field if non-nil, zero value otherwise.
func (o *CouponDeletionFilters) GetReferralIdOk() (int32, bool)
GetReferralIdOk returns a tuple with the ReferralId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CouponDeletionFilters) HasReferralId() bool
HasReferralId returns a boolean if a field has been set.
func (o *CouponDeletionFilters) SetReferralId(v int32)
SetReferralId gets a reference to the given int32 and assigns it to the ReferralId field.
func (o *CouponDeletionFilters) GetExpiresAfter() time.Time
GetExpiresAfter returns the ExpiresAfter field if non-nil, zero value otherwise.
func (o *CouponDeletionFilters) GetExpiresAfterOk() (time.Time, bool)
GetExpiresAfterOk returns a tuple with the ExpiresAfter field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CouponDeletionFilters) HasExpiresAfter() bool
HasExpiresAfter returns a boolean if a field has been set.
func (o *CouponDeletionFilters) SetExpiresAfter(v time.Time)
SetExpiresAfter gets a reference to the given time.Time and assigns it to the ExpiresAfter field.
func (o *CouponDeletionFilters) GetExpiresBefore() time.Time
GetExpiresBefore returns the ExpiresBefore field if non-nil, zero value otherwise.
func (o *CouponDeletionFilters) GetExpiresBeforeOk() (time.Time, bool)
GetExpiresBeforeOk returns a tuple with the ExpiresBefore field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CouponDeletionFilters) HasExpiresBefore() bool
HasExpiresBefore returns a boolean if a field has been set.
func (o *CouponDeletionFilters) SetExpiresBefore(v time.Time)
SetExpiresBefore gets a reference to the given time.Time and assigns it to the ExpiresBefore field.