Name | Type | Description | Notes |
---|---|---|---|
Code | Pointer to CancelCode | [optional] | |
Reason | Pointer to string | The detailed cancel reason for the specific cancel code. - Items are unavailable <code 1001> - I have too many orders now <code 1002> - My shop is closed <code 1003> - My shop is closing soon <code 1004> | [optional] |
func NewCancelReason() *CancelReason
NewCancelReason instantiates a new CancelReason 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 NewCancelReasonWithDefaults() *CancelReason
NewCancelReasonWithDefaults instantiates a new CancelReason 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 *CancelReason) GetCode() CancelCode
GetCode returns the Code field if non-nil, zero value otherwise.
func (o *CancelReason) GetCodeOk() (*CancelCode, 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 *CancelReason) SetCode(v CancelCode)
SetCode sets Code field to given value.
func (o *CancelReason) HasCode() bool
HasCode returns a boolean if a field has been set.
func (o *CancelReason) GetReason() string
GetReason returns the Reason field if non-nil, zero value otherwise.
func (o *CancelReason) GetReasonOk() (*string, bool)
GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CancelReason) SetReason(v string)
SetReason sets Reason field to given value.
func (o *CancelReason) HasReason() bool
HasReason returns a boolean if a field has been set.