Skip to content

Latest commit

 

History

History
77 lines (42 loc) · 2.8 KB

CampaignScope.md

File metadata and controls

77 lines (42 loc) · 2.8 KB

CampaignScope

Properties

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]

Methods

NewCampaignScope

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

NewCampaignScopeWithDefaults

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

GetType

func (o *CampaignScope) GetType() string

GetType returns the Type field if non-nil, zero value otherwise.

GetTypeOk

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.

SetType

func (o *CampaignScope) SetType(v string)

SetType sets Type field to given value.

GetObjectIDs

func (o *CampaignScope) GetObjectIDs() []string

GetObjectIDs returns the ObjectIDs field if non-nil, zero value otherwise.

GetObjectIDsOk

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.

SetObjectIDs

func (o *CampaignScope) SetObjectIDs(v []string)

SetObjectIDs sets ObjectIDs field to given value.

HasObjectIDs

func (o *CampaignScope) HasObjectIDs() bool

HasObjectIDs returns a boolean if a field has been set.

[Back to Model list] [Back to API list] [Back to README]