Name | Type | Description | Notes |
---|---|---|---|
Code | Pointer to string | Promo code applied in the order. | [optional] |
Description | Pointer to string | Promo description. | [optional] |
Name | Pointer to string | Name of the promotion. | [optional] |
PromoAmount | Pointer to int64 | Promo amount applied in the order, in local currency. This amount is rounded into whole number. | [optional] |
MexFundedRatio | Pointer to int32 | The merchant's funded ratio of the promo in percentage. | [optional] |
MexFundedAmount | Pointer to int64 | The merchant's promo fund in the minor unit. Calculated based on merchant funded ratio. | [optional] |
TargetedPrice | Pointer to int64 | The subtotal of the order basket in minor unit. | [optional] |
PromoAmountInMin | Pointer to int64 | Promo amount applied in the order in minor unit. | [optional] |
func NewOrderPromo() *OrderPromo
NewOrderPromo instantiates a new OrderPromo 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 NewOrderPromoWithDefaults() *OrderPromo
NewOrderPromoWithDefaults instantiates a new OrderPromo 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 *OrderPromo) GetCode() string
GetCode returns the Code field if non-nil, zero value otherwise.
func (o *OrderPromo) 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 *OrderPromo) SetCode(v string)
SetCode sets Code field to given value.
func (o *OrderPromo) HasCode() bool
HasCode returns a boolean if a field has been set.
func (o *OrderPromo) GetDescription() string
GetDescription returns the Description field if non-nil, zero value otherwise.
func (o *OrderPromo) GetDescriptionOk() (*string, bool)
GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *OrderPromo) SetDescription(v string)
SetDescription sets Description field to given value.
func (o *OrderPromo) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (o *OrderPromo) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *OrderPromo) 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 *OrderPromo) SetName(v string)
SetName sets Name field to given value.
func (o *OrderPromo) HasName() bool
HasName returns a boolean if a field has been set.
func (o *OrderPromo) GetPromoAmount() int64
GetPromoAmount returns the PromoAmount field if non-nil, zero value otherwise.
func (o *OrderPromo) GetPromoAmountOk() (*int64, bool)
GetPromoAmountOk returns a tuple with the PromoAmount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *OrderPromo) SetPromoAmount(v int64)
SetPromoAmount sets PromoAmount field to given value.
func (o *OrderPromo) HasPromoAmount() bool
HasPromoAmount returns a boolean if a field has been set.
func (o *OrderPromo) GetMexFundedRatio() int32
GetMexFundedRatio returns the MexFundedRatio field if non-nil, zero value otherwise.
func (o *OrderPromo) GetMexFundedRatioOk() (*int32, bool)
GetMexFundedRatioOk returns a tuple with the MexFundedRatio field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *OrderPromo) SetMexFundedRatio(v int32)
SetMexFundedRatio sets MexFundedRatio field to given value.
func (o *OrderPromo) HasMexFundedRatio() bool
HasMexFundedRatio returns a boolean if a field has been set.
func (o *OrderPromo) GetMexFundedAmount() int64
GetMexFundedAmount returns the MexFundedAmount field if non-nil, zero value otherwise.
func (o *OrderPromo) GetMexFundedAmountOk() (*int64, bool)
GetMexFundedAmountOk returns a tuple with the MexFundedAmount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *OrderPromo) SetMexFundedAmount(v int64)
SetMexFundedAmount sets MexFundedAmount field to given value.
func (o *OrderPromo) HasMexFundedAmount() bool
HasMexFundedAmount returns a boolean if a field has been set.
func (o *OrderPromo) GetTargetedPrice() int64
GetTargetedPrice returns the TargetedPrice field if non-nil, zero value otherwise.
func (o *OrderPromo) GetTargetedPriceOk() (*int64, bool)
GetTargetedPriceOk returns a tuple with the TargetedPrice field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *OrderPromo) SetTargetedPrice(v int64)
SetTargetedPrice sets TargetedPrice field to given value.
func (o *OrderPromo) HasTargetedPrice() bool
HasTargetedPrice returns a boolean if a field has been set.
func (o *OrderPromo) GetPromoAmountInMin() int64
GetPromoAmountInMin returns the PromoAmountInMin field if non-nil, zero value otherwise.
func (o *OrderPromo) GetPromoAmountInMinOk() (*int64, bool)
GetPromoAmountInMinOk returns a tuple with the PromoAmountInMin field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *OrderPromo) SetPromoAmountInMin(v int64)
SetPromoAmountInMin sets PromoAmountInMin field to given value.
func (o *OrderPromo) HasPromoAmountInMin() bool
HasPromoAmountInMin returns a boolean if a field has been set.