Name | Type | Description | Notes |
---|---|---|---|
Type | string | The scope type for this campaign. * `order` - order level campaign. * `items` - item level campaign or bundle offer. * `category` - category level campaign where all items within applies the same discount. | |
ObjectIDs | Pointer to []string | The list of item IDs in the partner's database applicable for discount when `discount.scope.type` is `items` (or category IDs for `category`). One and only 1 item supported when `discount.type` is: - `freeItem` - `bundleSameNet` - `bundleSamePercentage` - `bundleSameFixPrice` Minimum 2 - Maximum 20 items supported when `discount.type` is: - `bundleDiffNet` - `bundleDiffPercentage` - `bundleDiffFixPrice` | [optional] |
func NewCampaignScope(type_ string, ) *CampaignScope
NewCampaignScope instantiates a new CampaignScope 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 NewCampaignScopeWithDefaults() *CampaignScope
NewCampaignScopeWithDefaults instantiates a new CampaignScope 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 *CampaignScope) GetType() string
GetType returns the Type field if non-nil, zero value otherwise.
func (o *CampaignScope) 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 *CampaignScope) SetType(v string)
SetType sets Type field to given value.
func (o *CampaignScope) GetObjectIDs() []string
GetObjectIDs returns the ObjectIDs field if non-nil, zero value otherwise.
func (o *CampaignScope) GetObjectIDsOk() (*[]string, bool)
GetObjectIDsOk returns a tuple with the ObjectIDs field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CampaignScope) SetObjectIDs(v []string)
SetObjectIDs sets ObjectIDs field to given value.
func (o *CampaignScope) HasObjectIDs() bool
HasObjectIDs returns a boolean if a field has been set.