| Name | Type | Description | Notes |
|---|---|---|---|
| Code | string | The customer-facing code. This code must be unique across all active promotion codes for a specific customer. Case insensitive. | |
| CouponId | string | The unique id of coupon for this promotion code. | |
| CustomerIds | Pointer to []string | List of customer that this promotion code can be used by. If not set, the promotion code can be used by all customers. | [optional] |
| ExpiresAt | Pointer to NullableTime | [optional] | |
| MaxRedemptions | Pointer to NullableInt32 | [optional] | |
| MaxRedemptionsPerCustomer | Pointer to NullableInt32 | [optional] | |
| Restrictions | Pointer to NullablePromoRestrictions | [optional] |
func NewCreatePromoCodeRequest(code string, couponId string, ) *CreatePromoCodeRequest
NewCreatePromoCodeRequest instantiates a new CreatePromoCodeRequest 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
func NewCreatePromoCodeRequestWithDefaults() *CreatePromoCodeRequest
NewCreatePromoCodeRequestWithDefaults instantiates a new CreatePromoCodeRequest 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
func (o *CreatePromoCodeRequest) GetCode() string
GetCode returns the Code field if non-nil, zero value otherwise.
func (o *CreatePromoCodeRequest) 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.
func (o *CreatePromoCodeRequest) SetCode(v string)
SetCode sets Code field to given value.
func (o *CreatePromoCodeRequest) GetCouponId() string
GetCouponId returns the CouponId field if non-nil, zero value otherwise.
func (o *CreatePromoCodeRequest) 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.
func (o *CreatePromoCodeRequest) SetCouponId(v string)
SetCouponId sets CouponId field to given value.
func (o *CreatePromoCodeRequest) GetCustomerIds() []string
GetCustomerIds returns the CustomerIds field if non-nil, zero value otherwise.
func (o *CreatePromoCodeRequest) GetCustomerIdsOk() (*[]string, bool)
GetCustomerIdsOk returns a tuple with the CustomerIds field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreatePromoCodeRequest) SetCustomerIds(v []string)
SetCustomerIds sets CustomerIds field to given value.
func (o *CreatePromoCodeRequest) HasCustomerIds() bool
HasCustomerIds returns a boolean if a field has been set.
func (o *CreatePromoCodeRequest) GetExpiresAt() time.Time
GetExpiresAt returns the ExpiresAt field if non-nil, zero value otherwise.
func (o *CreatePromoCodeRequest) GetExpiresAtOk() (*time.Time, 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.
func (o *CreatePromoCodeRequest) SetExpiresAt(v time.Time)
SetExpiresAt sets ExpiresAt field to given value.
func (o *CreatePromoCodeRequest) HasExpiresAt() bool
HasExpiresAt returns a boolean if a field has been set.
func (o *CreatePromoCodeRequest) SetExpiresAtNil(b bool)
SetExpiresAtNil sets the value for ExpiresAt to be an explicit nil
func (o *CreatePromoCodeRequest) UnsetExpiresAt()
UnsetExpiresAt ensures that no value is present for ExpiresAt, not even an explicit nil
func (o *CreatePromoCodeRequest) GetMaxRedemptions() int32
GetMaxRedemptions returns the MaxRedemptions field if non-nil, zero value otherwise.
func (o *CreatePromoCodeRequest) GetMaxRedemptionsOk() (*int32, bool)
GetMaxRedemptionsOk returns a tuple with the MaxRedemptions field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreatePromoCodeRequest) SetMaxRedemptions(v int32)
SetMaxRedemptions sets MaxRedemptions field to given value.
func (o *CreatePromoCodeRequest) HasMaxRedemptions() bool
HasMaxRedemptions returns a boolean if a field has been set.
func (o *CreatePromoCodeRequest) SetMaxRedemptionsNil(b bool)
SetMaxRedemptionsNil sets the value for MaxRedemptions to be an explicit nil
func (o *CreatePromoCodeRequest) UnsetMaxRedemptions()
UnsetMaxRedemptions ensures that no value is present for MaxRedemptions, not even an explicit nil
func (o *CreatePromoCodeRequest) GetMaxRedemptionsPerCustomer() int32
GetMaxRedemptionsPerCustomer returns the MaxRedemptionsPerCustomer field if non-nil, zero value otherwise.
func (o *CreatePromoCodeRequest) GetMaxRedemptionsPerCustomerOk() (*int32, bool)
GetMaxRedemptionsPerCustomerOk returns a tuple with the MaxRedemptionsPerCustomer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreatePromoCodeRequest) SetMaxRedemptionsPerCustomer(v int32)
SetMaxRedemptionsPerCustomer sets MaxRedemptionsPerCustomer field to given value.
func (o *CreatePromoCodeRequest) HasMaxRedemptionsPerCustomer() bool
HasMaxRedemptionsPerCustomer returns a boolean if a field has been set.
func (o *CreatePromoCodeRequest) SetMaxRedemptionsPerCustomerNil(b bool)
SetMaxRedemptionsPerCustomerNil sets the value for MaxRedemptionsPerCustomer to be an explicit nil
func (o *CreatePromoCodeRequest) UnsetMaxRedemptionsPerCustomer()
UnsetMaxRedemptionsPerCustomer ensures that no value is present for MaxRedemptionsPerCustomer, not even an explicit nil
func (o *CreatePromoCodeRequest) GetRestrictions() PromoRestrictions
GetRestrictions returns the Restrictions field if non-nil, zero value otherwise.
func (o *CreatePromoCodeRequest) GetRestrictionsOk() (*PromoRestrictions, bool)
GetRestrictionsOk returns a tuple with the Restrictions field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreatePromoCodeRequest) SetRestrictions(v PromoRestrictions)
SetRestrictions sets Restrictions field to given value.
func (o *CreatePromoCodeRequest) HasRestrictions() bool
HasRestrictions returns a boolean if a field has been set.
func (o *CreatePromoCodeRequest) SetRestrictionsNil(b bool)
SetRestrictionsNil sets the value for Restrictions to be an explicit nil
func (o *CreatePromoCodeRequest) UnsetRestrictions()
UnsetRestrictions ensures that no value is present for Restrictions, not even an explicit nil