Name | Type | Description | Notes |
---|---|---|---|
Id | Pointer to string | The campaign's ID returned by GrabFood upon campaign creation. | [optional] |
Name | Pointer to string | The name of the campaign. This campaign name has been automatically generated by Grab for display in the customer app. | [optional] |
CampaignNameForMex | Pointer to string | The campaign name provided by the merchant in Create Campaign. Whitelist required, reach out to your integration manager. | [optional] |
Level | Pointer to string | The campaign level. | [optional] |
Type | Pointer to string | The type of campaign. | [optional] |
UsageCount | Pointer to int64 | The campaign redemption count in this order. | [optional] |
MexFundedRatio | Pointer to int32 | The ratio funded by the merchant in percentage. | [optional] |
DeductedAmount | Pointer to int64 | The deducted amount in minor unit format. `Item price(tax inclusive) * 20% discount | 2375*0.2` |
DeductedPart | Pointer to string | The part that the campaign is applied. | [optional] |
AppliedItemIDs | Pointer to []string | An array of item IDs that get discount under this campaign. `null` if no item applied in this campaign. | [optional] |
FreeItem | Pointer to OrderFreeItem | [optional] |
func NewOrderCampaign() *OrderCampaign
NewOrderCampaign instantiates a new OrderCampaign 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 NewOrderCampaignWithDefaults() *OrderCampaign
NewOrderCampaignWithDefaults instantiates a new OrderCampaign 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 *OrderCampaign) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
func (o *OrderCampaign) GetIdOk() (*string, 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 *OrderCampaign) SetId(v string)
SetId sets Id field to given value.
func (o *OrderCampaign) HasId() bool
HasId returns a boolean if a field has been set.
func (o *OrderCampaign) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *OrderCampaign) 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 *OrderCampaign) SetName(v string)
SetName sets Name field to given value.
func (o *OrderCampaign) HasName() bool
HasName returns a boolean if a field has been set.
func (o *OrderCampaign) GetCampaignNameForMex() string
GetCampaignNameForMex returns the CampaignNameForMex field if non-nil, zero value otherwise.
func (o *OrderCampaign) GetCampaignNameForMexOk() (*string, bool)
GetCampaignNameForMexOk returns a tuple with the CampaignNameForMex field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *OrderCampaign) SetCampaignNameForMex(v string)
SetCampaignNameForMex sets CampaignNameForMex field to given value.
func (o *OrderCampaign) HasCampaignNameForMex() bool
HasCampaignNameForMex returns a boolean if a field has been set.
func (o *OrderCampaign) GetLevel() string
GetLevel returns the Level field if non-nil, zero value otherwise.
func (o *OrderCampaign) GetLevelOk() (*string, bool)
GetLevelOk returns a tuple with the Level field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *OrderCampaign) SetLevel(v string)
SetLevel sets Level field to given value.
func (o *OrderCampaign) HasLevel() bool
HasLevel returns a boolean if a field has been set.
func (o *OrderCampaign) GetType() string
GetType returns the Type field if non-nil, zero value otherwise.
func (o *OrderCampaign) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *OrderCampaign) SetType(v string)
SetType sets Type field to given value.
func (o *OrderCampaign) HasType() bool
HasType returns a boolean if a field has been set.
func (o *OrderCampaign) GetUsageCount() int64
GetUsageCount returns the UsageCount field if non-nil, zero value otherwise.
func (o *OrderCampaign) GetUsageCountOk() (*int64, 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 *OrderCampaign) SetUsageCount(v int64)
SetUsageCount sets UsageCount field to given value.
func (o *OrderCampaign) HasUsageCount() bool
HasUsageCount returns a boolean if a field has been set.
func (o *OrderCampaign) GetMexFundedRatio() int32
GetMexFundedRatio returns the MexFundedRatio field if non-nil, zero value otherwise.
func (o *OrderCampaign) 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 *OrderCampaign) SetMexFundedRatio(v int32)
SetMexFundedRatio sets MexFundedRatio field to given value.
func (o *OrderCampaign) HasMexFundedRatio() bool
HasMexFundedRatio returns a boolean if a field has been set.
func (o *OrderCampaign) GetDeductedAmount() int64
GetDeductedAmount returns the DeductedAmount field if non-nil, zero value otherwise.
func (o *OrderCampaign) GetDeductedAmountOk() (*int64, bool)
GetDeductedAmountOk returns a tuple with the DeductedAmount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *OrderCampaign) SetDeductedAmount(v int64)
SetDeductedAmount sets DeductedAmount field to given value.
func (o *OrderCampaign) HasDeductedAmount() bool
HasDeductedAmount returns a boolean if a field has been set.
func (o *OrderCampaign) GetDeductedPart() string
GetDeductedPart returns the DeductedPart field if non-nil, zero value otherwise.
func (o *OrderCampaign) GetDeductedPartOk() (*string, bool)
GetDeductedPartOk returns a tuple with the DeductedPart field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *OrderCampaign) SetDeductedPart(v string)
SetDeductedPart sets DeductedPart field to given value.
func (o *OrderCampaign) HasDeductedPart() bool
HasDeductedPart returns a boolean if a field has been set.
func (o *OrderCampaign) GetAppliedItemIDs() []string
GetAppliedItemIDs returns the AppliedItemIDs field if non-nil, zero value otherwise.
func (o *OrderCampaign) GetAppliedItemIDsOk() (*[]string, bool)
GetAppliedItemIDsOk returns a tuple with the AppliedItemIDs field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *OrderCampaign) SetAppliedItemIDs(v []string)
SetAppliedItemIDs sets AppliedItemIDs field to given value.
func (o *OrderCampaign) HasAppliedItemIDs() bool
HasAppliedItemIDs returns a boolean if a field has been set.
func (o *OrderCampaign) SetAppliedItemIDsNil(b bool)
SetAppliedItemIDsNil sets the value for AppliedItemIDs to be an explicit nil
func (o *OrderCampaign) UnsetAppliedItemIDs()
UnsetAppliedItemIDs ensures that no value is present for AppliedItemIDs, not even an explicit nil
func (o *OrderCampaign) GetFreeItem() OrderFreeItem
GetFreeItem returns the FreeItem field if non-nil, zero value otherwise.
func (o *OrderCampaign) GetFreeItemOk() (*OrderFreeItem, bool)
GetFreeItemOk returns a tuple with the FreeItem field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *OrderCampaign) SetFreeItem(v OrderFreeItem)
SetFreeItem sets FreeItem field to given value.
func (o *OrderCampaign) HasFreeItem() bool
HasFreeItem returns a boolean if a field has been set.