Name | Type | Description | Notes |
---|---|---|---|
MerchantID | string | The merchant's ID that is in GrabFood's database. | |
Name | string | The campaign's name. | |
Quotas | Pointer to CampaignQuotas | [optional] | |
Conditions | CampaignConditions | ||
Discount | CampaignDiscount | ||
CustomTag | Pointer to string | Specify the tag for custom bundle offer campaign. Only whitelisted partner is supported as of now. | [optional] |
func NewCreateCampaignRequest(merchantID string, name string, conditions CampaignConditions, discount CampaignDiscount, ) *CreateCampaignRequest
NewCreateCampaignRequest instantiates a new CreateCampaignRequest 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 NewCreateCampaignRequestWithDefaults() *CreateCampaignRequest
NewCreateCampaignRequestWithDefaults instantiates a new CreateCampaignRequest 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 *CreateCampaignRequest) GetMerchantID() string
GetMerchantID returns the MerchantID field if non-nil, zero value otherwise.
func (o *CreateCampaignRequest) GetMerchantIDOk() (*string, bool)
GetMerchantIDOk returns a tuple with the MerchantID field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateCampaignRequest) SetMerchantID(v string)
SetMerchantID sets MerchantID field to given value.
func (o *CreateCampaignRequest) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *CreateCampaignRequest) 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 *CreateCampaignRequest) SetName(v string)
SetName sets Name field to given value.
func (o *CreateCampaignRequest) GetQuotas() CampaignQuotas
GetQuotas returns the Quotas field if non-nil, zero value otherwise.
func (o *CreateCampaignRequest) GetQuotasOk() (*CampaignQuotas, bool)
GetQuotasOk returns a tuple with the Quotas field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateCampaignRequest) SetQuotas(v CampaignQuotas)
SetQuotas sets Quotas field to given value.
func (o *CreateCampaignRequest) HasQuotas() bool
HasQuotas returns a boolean if a field has been set.
func (o *CreateCampaignRequest) GetConditions() CampaignConditions
GetConditions returns the Conditions field if non-nil, zero value otherwise.
func (o *CreateCampaignRequest) GetConditionsOk() (*CampaignConditions, bool)
GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateCampaignRequest) SetConditions(v CampaignConditions)
SetConditions sets Conditions field to given value.
func (o *CreateCampaignRequest) GetDiscount() CampaignDiscount
GetDiscount returns the Discount field if non-nil, zero value otherwise.
func (o *CreateCampaignRequest) GetDiscountOk() (*CampaignDiscount, bool)
GetDiscountOk returns a tuple with the Discount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateCampaignRequest) SetDiscount(v CampaignDiscount)
SetDiscount sets Discount field to given value.
func (o *CreateCampaignRequest) GetCustomTag() string
GetCustomTag returns the CustomTag field if non-nil, zero value otherwise.
func (o *CreateCampaignRequest) GetCustomTagOk() (*string, bool)
GetCustomTagOk returns a tuple with the CustomTag field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateCampaignRequest) SetCustomTag(v string)
SetCustomTag sets CustomTag field to given value.
func (o *CreateCampaignRequest) HasCustomTag() bool
HasCustomTag returns a boolean if a field has been set.