| Name | Type | Description | Notes |
|---|---|---|---|
| Code | string | Voucher code | |
| Id | int32 | Voucher ID | |
| MaxRedemptionCount | Pointer to int32 | Max redemption count for a General Voucher | [optional] |
| RedemptionCount | Pointer to int32 | Current redemption count for a General Voucher | [optional] |
| RemainingRedemptions | Pointer to int32 | Remaining redemptions | [optional] |
| Status | string | Voucher status |
func NewVoucher(code string, id int32, status string, ) *Voucher
NewVoucher instantiates a new Voucher 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 NewVoucherWithDefaults() *Voucher
NewVoucherWithDefaults instantiates a new Voucher 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 *Voucher) GetCode() string
GetCode returns the Code field if non-nil, zero value otherwise.
func (o *Voucher) 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 *Voucher) SetCode(v string)
SetCode sets Code field to given value.
func (o *Voucher) GetId() int32
GetId returns the Id field if non-nil, zero value otherwise.
func (o *Voucher) 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 *Voucher) SetId(v int32)
SetId sets Id field to given value.
func (o *Voucher) GetMaxRedemptionCount() int32
GetMaxRedemptionCount returns the MaxRedemptionCount field if non-nil, zero value otherwise.
func (o *Voucher) GetMaxRedemptionCountOk() (*int32, bool)
GetMaxRedemptionCountOk returns a tuple with the MaxRedemptionCount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Voucher) SetMaxRedemptionCount(v int32)
SetMaxRedemptionCount sets MaxRedemptionCount field to given value.
func (o *Voucher) HasMaxRedemptionCount() bool
HasMaxRedemptionCount returns a boolean if a field has been set.
func (o *Voucher) GetRedemptionCount() int32
GetRedemptionCount returns the RedemptionCount field if non-nil, zero value otherwise.
func (o *Voucher) GetRedemptionCountOk() (*int32, bool)
GetRedemptionCountOk returns a tuple with the RedemptionCount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Voucher) SetRedemptionCount(v int32)
SetRedemptionCount sets RedemptionCount field to given value.
func (o *Voucher) HasRedemptionCount() bool
HasRedemptionCount returns a boolean if a field has been set.
func (o *Voucher) GetRemainingRedemptions() int32
GetRemainingRedemptions returns the RemainingRedemptions field if non-nil, zero value otherwise.
func (o *Voucher) GetRemainingRedemptionsOk() (*int32, bool)
GetRemainingRedemptionsOk returns a tuple with the RemainingRedemptions field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Voucher) SetRemainingRedemptions(v int32)
SetRemainingRedemptions sets RemainingRedemptions field to given value.
func (o *Voucher) HasRemainingRedemptions() bool
HasRemainingRedemptions returns a boolean if a field has been set.
func (o *Voucher) GetStatus() string
GetStatus returns the Status field if non-nil, zero value otherwise.
func (o *Voucher) GetStatusOk() (*string, bool)
GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Voucher) SetStatus(v string)
SetStatus sets Status field to given value.