| Name | Type | Description | Notes |
|---|---|---|---|
| Id | int32 | Unique identifier of the discount code. | |
| Name | string | The name of the discount code. | |
| DiscountCode | string | The discount code. | |
| DiscountType | string | The type of discount, which can be a fixed amount or a percentage. | |
| Amount | float32 | The amount of the discount. | |
| MaxUsage | NullableInt32 | The maximum number of times the discount code can be used. | |
| UsageCount | int32 | The number of times the discount code has been used. | |
| StartDate | string | The start date of the discount code. | |
| ExpirationDate | string | The expiration date of the discount code. |
func NewDiscountCode(id int32, name string, discountCode string, discountType string, amount float32, maxUsage NullableInt32, usageCount int32, startDate string, expirationDate string, ) *DiscountCode
NewDiscountCode instantiates a new DiscountCode 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 NewDiscountCodeWithDefaults() *DiscountCode
NewDiscountCodeWithDefaults instantiates a new DiscountCode 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 *DiscountCode) GetId() int32
GetId returns the Id field if non-nil, zero value otherwise.
func (o *DiscountCode) GetIdOk() (*int32, bool)
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DiscountCode) SetId(v int32)
SetId sets Id field to given value.
func (o *DiscountCode) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *DiscountCode) 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.
func (o *DiscountCode) SetName(v string)
SetName sets Name field to given value.
func (o *DiscountCode) GetDiscountCode() string
GetDiscountCode returns the DiscountCode field if non-nil, zero value otherwise.
func (o *DiscountCode) GetDiscountCodeOk() (*string, bool)
GetDiscountCodeOk returns a tuple with the DiscountCode field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DiscountCode) SetDiscountCode(v string)
SetDiscountCode sets DiscountCode field to given value.
func (o *DiscountCode) GetDiscountType() string
GetDiscountType returns the DiscountType field if non-nil, zero value otherwise.
func (o *DiscountCode) GetDiscountTypeOk() (*string, bool)
GetDiscountTypeOk returns a tuple with the DiscountType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DiscountCode) SetDiscountType(v string)
SetDiscountType sets DiscountType field to given value.
func (o *DiscountCode) GetAmount() float32
GetAmount returns the Amount field if non-nil, zero value otherwise.
func (o *DiscountCode) GetAmountOk() (*float32, bool)
GetAmountOk returns a tuple with the Amount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DiscountCode) SetAmount(v float32)
SetAmount sets Amount field to given value.
func (o *DiscountCode) GetMaxUsage() int32
GetMaxUsage returns the MaxUsage field if non-nil, zero value otherwise.
func (o *DiscountCode) GetMaxUsageOk() (*int32, bool)
GetMaxUsageOk returns a tuple with the MaxUsage field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DiscountCode) SetMaxUsage(v int32)
SetMaxUsage sets MaxUsage field to given value.
func (o *DiscountCode) SetMaxUsageNil(b bool)
SetMaxUsageNil sets the value for MaxUsage to be an explicit nil
func (o *DiscountCode) UnsetMaxUsage()
UnsetMaxUsage ensures that no value is present for MaxUsage, not even an explicit nil
func (o *DiscountCode) GetUsageCount() int32
GetUsageCount returns the UsageCount field if non-nil, zero value otherwise.
func (o *DiscountCode) GetUsageCountOk() (*int32, bool)
GetUsageCountOk returns a tuple with the UsageCount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DiscountCode) SetUsageCount(v int32)
SetUsageCount sets UsageCount field to given value.
func (o *DiscountCode) GetStartDate() string
GetStartDate returns the StartDate field if non-nil, zero value otherwise.
func (o *DiscountCode) GetStartDateOk() (*string, bool)
GetStartDateOk returns a tuple with the StartDate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DiscountCode) SetStartDate(v string)
SetStartDate sets StartDate field to given value.
func (o *DiscountCode) GetExpirationDate() string
GetExpirationDate returns the ExpirationDate field if non-nil, zero value otherwise.
func (o *DiscountCode) GetExpirationDateOk() (*string, bool)
GetExpirationDateOk returns a tuple with the ExpirationDate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DiscountCode) SetExpirationDate(v string)
SetExpirationDate sets ExpirationDate field to given value.