Skip to content

Latest commit

 

History

History
290 lines (157 loc) · 8.49 KB

File metadata and controls

290 lines (157 loc) · 8.49 KB

ContractDiscountPlanFields

Properties

Name Type Description Notes
DiscountAmount Pointer to float32 [optional]
DiscountCode Pointer to string [optional]
DiscountPercent Pointer to float32 [optional]
DiscountStatus Pointer to string [optional]
DiscountType Pointer to string [optional]
Id Pointer to int32 [optional]
RemainingCount Pointer to int32 [optional]
ResourceCount Pointer to int32 [optional]
ResourceId Pointer to int32 [optional]
ResourceName Pointer to string [optional]

Methods

NewContractDiscountPlanFields

func NewContractDiscountPlanFields() *ContractDiscountPlanFields

NewContractDiscountPlanFields instantiates a new ContractDiscountPlanFields 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

NewContractDiscountPlanFieldsWithDefaults

func NewContractDiscountPlanFieldsWithDefaults() *ContractDiscountPlanFields

NewContractDiscountPlanFieldsWithDefaults instantiates a new ContractDiscountPlanFields 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

GetDiscountAmount

func (o *ContractDiscountPlanFields) GetDiscountAmount() float32

GetDiscountAmount returns the DiscountAmount field if non-nil, zero value otherwise.

GetDiscountAmountOk

func (o *ContractDiscountPlanFields) GetDiscountAmountOk() (*float32, bool)

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

SetDiscountAmount

func (o *ContractDiscountPlanFields) SetDiscountAmount(v float32)

SetDiscountAmount sets DiscountAmount field to given value.

HasDiscountAmount

func (o *ContractDiscountPlanFields) HasDiscountAmount() bool

HasDiscountAmount returns a boolean if a field has been set.

GetDiscountCode

func (o *ContractDiscountPlanFields) GetDiscountCode() string

GetDiscountCode returns the DiscountCode field if non-nil, zero value otherwise.

GetDiscountCodeOk

func (o *ContractDiscountPlanFields) 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.

SetDiscountCode

func (o *ContractDiscountPlanFields) SetDiscountCode(v string)

SetDiscountCode sets DiscountCode field to given value.

HasDiscountCode

func (o *ContractDiscountPlanFields) HasDiscountCode() bool

HasDiscountCode returns a boolean if a field has been set.

GetDiscountPercent

func (o *ContractDiscountPlanFields) GetDiscountPercent() float32

GetDiscountPercent returns the DiscountPercent field if non-nil, zero value otherwise.

GetDiscountPercentOk

func (o *ContractDiscountPlanFields) GetDiscountPercentOk() (*float32, bool)

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

SetDiscountPercent

func (o *ContractDiscountPlanFields) SetDiscountPercent(v float32)

SetDiscountPercent sets DiscountPercent field to given value.

HasDiscountPercent

func (o *ContractDiscountPlanFields) HasDiscountPercent() bool

HasDiscountPercent returns a boolean if a field has been set.

GetDiscountStatus

func (o *ContractDiscountPlanFields) GetDiscountStatus() string

GetDiscountStatus returns the DiscountStatus field if non-nil, zero value otherwise.

GetDiscountStatusOk

func (o *ContractDiscountPlanFields) GetDiscountStatusOk() (*string, bool)

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

SetDiscountStatus

func (o *ContractDiscountPlanFields) SetDiscountStatus(v string)

SetDiscountStatus sets DiscountStatus field to given value.

HasDiscountStatus

func (o *ContractDiscountPlanFields) HasDiscountStatus() bool

HasDiscountStatus returns a boolean if a field has been set.

GetDiscountType

func (o *ContractDiscountPlanFields) GetDiscountType() string

GetDiscountType returns the DiscountType field if non-nil, zero value otherwise.

GetDiscountTypeOk

func (o *ContractDiscountPlanFields) 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.

SetDiscountType

func (o *ContractDiscountPlanFields) SetDiscountType(v string)

SetDiscountType sets DiscountType field to given value.

HasDiscountType

func (o *ContractDiscountPlanFields) HasDiscountType() bool

HasDiscountType returns a boolean if a field has been set.

GetId

func (o *ContractDiscountPlanFields) GetId() int32

GetId returns the Id field if non-nil, zero value otherwise.

GetIdOk

func (o *ContractDiscountPlanFields) 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.

SetId

func (o *ContractDiscountPlanFields) SetId(v int32)

SetId sets Id field to given value.

HasId

func (o *ContractDiscountPlanFields) HasId() bool

HasId returns a boolean if a field has been set.

GetRemainingCount

func (o *ContractDiscountPlanFields) GetRemainingCount() int32

GetRemainingCount returns the RemainingCount field if non-nil, zero value otherwise.

GetRemainingCountOk

func (o *ContractDiscountPlanFields) GetRemainingCountOk() (*int32, bool)

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

SetRemainingCount

func (o *ContractDiscountPlanFields) SetRemainingCount(v int32)

SetRemainingCount sets RemainingCount field to given value.

HasRemainingCount

func (o *ContractDiscountPlanFields) HasRemainingCount() bool

HasRemainingCount returns a boolean if a field has been set.

GetResourceCount

func (o *ContractDiscountPlanFields) GetResourceCount() int32

GetResourceCount returns the ResourceCount field if non-nil, zero value otherwise.

GetResourceCountOk

func (o *ContractDiscountPlanFields) GetResourceCountOk() (*int32, bool)

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

SetResourceCount

func (o *ContractDiscountPlanFields) SetResourceCount(v int32)

SetResourceCount sets ResourceCount field to given value.

HasResourceCount

func (o *ContractDiscountPlanFields) HasResourceCount() bool

HasResourceCount returns a boolean if a field has been set.

GetResourceId

func (o *ContractDiscountPlanFields) GetResourceId() int32

GetResourceId returns the ResourceId field if non-nil, zero value otherwise.

GetResourceIdOk

func (o *ContractDiscountPlanFields) GetResourceIdOk() (*int32, bool)

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

SetResourceId

func (o *ContractDiscountPlanFields) SetResourceId(v int32)

SetResourceId sets ResourceId field to given value.

HasResourceId

func (o *ContractDiscountPlanFields) HasResourceId() bool

HasResourceId returns a boolean if a field has been set.

GetResourceName

func (o *ContractDiscountPlanFields) GetResourceName() string

GetResourceName returns the ResourceName field if non-nil, zero value otherwise.

GetResourceNameOk

func (o *ContractDiscountPlanFields) GetResourceNameOk() (*string, bool)

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

SetResourceName

func (o *ContractDiscountPlanFields) SetResourceName(v string)

SetResourceName sets ResourceName field to given value.

HasResourceName

func (o *ContractDiscountPlanFields) HasResourceName() bool

HasResourceName returns a boolean if a field has been set.

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