-
Notifications
You must be signed in to change notification settings - Fork 5
/
model_campaign.go
1469 lines (1250 loc) · 45.7 KB
/
model_campaign.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
* Talon.One API
*
* Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}`
*
* API version:
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package talon
import (
"bytes"
"encoding/json"
"time"
)
// Campaign
type Campaign struct {
// Unique ID for this entity.
Id int32 `json:"id"`
// The exact moment this entity was created.
Created time.Time `json:"created"`
// The ID of the application that owns this entity.
ApplicationId int32 `json:"applicationId"`
// The ID of the user associated with this entity.
UserId int32 `json:"userId"`
// A user-facing name for this campaign.
Name string `json:"name"`
// A detailed description of the campaign.
Description string `json:"description"`
// Timestamp when the campaign will become active.
StartTime *time.Time `json:"startTime,omitempty"`
// Timestamp when the campaign will become inactive.
EndTime *time.Time `json:"endTime,omitempty"`
// Arbitrary properties associated with this campaign.
Attributes *map[string]interface{} `json:"attributes,omitempty"`
// A disabled or archived campaign is not evaluated for rules or coupons.
State string `json:"state"`
// [ID of Ruleset](https://docs.talon.one/management-api#operation/getRulesets) this campaign applies on customer session evaluation.
ActiveRulesetId *int32 `json:"activeRulesetId,omitempty"`
// A list of tags for the campaign.
Tags []string `json:"tags"`
// The features enabled in this campaign.
Features []string `json:"features"`
CouponSettings *CodeGeneratorSettings `json:"couponSettings,omitempty"`
ReferralSettings *CodeGeneratorSettings `json:"referralSettings,omitempty"`
// The set of [budget limits](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets) for this campaign.
Limits []LimitConfig `json:"limits"`
// The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/managing-campaign-groups) this campaign belongs to.
CampaignGroups *[]int32 `json:"campaignGroups,omitempty"`
// The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items.
Type string `json:"type"`
// A list of store IDs that you want to link to the campaign. **Note:** Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store.
LinkedStoreIds *[]int32 `json:"linkedStoreIds,omitempty"`
// A list of all the budgets that are defined by this campaign and their usage. **Note:** Budgets that are not defined do not appear in this list and their usage is not counted until they are defined.
Budgets []CampaignBudget `json:"budgets"`
// This property is **deprecated**. The count should be available under *budgets* property. Number of coupons redeemed in the campaign.
CouponRedemptionCount *int32 `json:"couponRedemptionCount,omitempty"`
// This property is **deprecated**. The count should be available under *budgets* property. Number of referral codes redeemed in the campaign.
ReferralRedemptionCount *int32 `json:"referralRedemptionCount,omitempty"`
// This property is **deprecated**. The count should be available under *budgets* property. Total amount of discounts redeemed in the campaign.
DiscountCount *float32 `json:"discountCount,omitempty"`
// This property is **deprecated**. The count should be available under *budgets* property. Total number of times discounts were redeemed in this campaign.
DiscountEffectCount *int32 `json:"discountEffectCount,omitempty"`
// This property is **deprecated**. The count should be available under *budgets* property. Total number of coupons created by rules in this campaign.
CouponCreationCount *int32 `json:"couponCreationCount,omitempty"`
// This property is **deprecated**. The count should be available under *budgets* property. Total number of custom effects triggered by rules in this campaign.
CustomEffectCount *int32 `json:"customEffectCount,omitempty"`
// This property is **deprecated**. The count should be available under *budgets* property. Total number of referrals created by rules in this campaign.
ReferralCreationCount *int32 `json:"referralCreationCount,omitempty"`
// This property is **deprecated**. The count should be available under *budgets* property. Total number of times the [add free item effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem) can be triggered in this campaign.
AddFreeItemEffectCount *int32 `json:"addFreeItemEffectCount,omitempty"`
// This property is **deprecated**. The count should be available under *budgets* property. Total number of giveaways awarded by rules in this campaign.
AwardedGiveawaysCount *int32 `json:"awardedGiveawaysCount,omitempty"`
// This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty points created by rules in this campaign.
CreatedLoyaltyPointsCount *float32 `json:"createdLoyaltyPointsCount,omitempty"`
// This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point creation effects triggered by rules in this campaign.
CreatedLoyaltyPointsEffectCount *int32 `json:"createdLoyaltyPointsEffectCount,omitempty"`
// This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty points redeemed by rules in this campaign.
RedeemedLoyaltyPointsCount *float32 `json:"redeemedLoyaltyPointsCount,omitempty"`
// This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point redemption effects triggered by rules in this campaign.
RedeemedLoyaltyPointsEffectCount *int32 `json:"redeemedLoyaltyPointsEffectCount,omitempty"`
// This property is **deprecated**. The count should be available under *budgets* property. Total number of webhooks triggered by rules in this campaign.
CallApiEffectCount *int32 `json:"callApiEffectCount,omitempty"`
// This property is **deprecated**. The count should be available under *budgets* property. Total number of reserve coupon effects triggered by rules in this campaign.
ReservecouponEffectCount *int32 `json:"reservecouponEffectCount,omitempty"`
// Timestamp of the most recent event received by this campaign.
LastActivity *time.Time `json:"lastActivity,omitempty"`
// Timestamp of the most recent update to the campaign's property. Updates to external entities used in this campaign are **not** registered by this property, such as collection or coupon updates.
Updated *time.Time `json:"updated,omitempty"`
// Name of the user who created this campaign if available.
CreatedBy *string `json:"createdBy,omitempty"`
// Name of the user who last updated this campaign if available.
UpdatedBy *string `json:"updatedBy,omitempty"`
// The ID of the Campaign Template this Campaign was created from.
TemplateId *int32 `json:"templateId,omitempty"`
// A campaign state described exactly as in the Campaign Manager.
FrontendState string `json:"frontendState"`
// Indicates whether the linked stores were imported via a CSV file.
StoresImported bool `json:"storesImported"`
// ID of the revision that was last activated on this campaign.
ActiveRevisionId *int32 `json:"activeRevisionId,omitempty"`
// ID of the revision version that is active on the campaign.
ActiveRevisionVersionId *int32 `json:"activeRevisionVersionId,omitempty"`
// Incrementing number representing how many revisions have been activated on this campaign, starts from 0 for a new campaign.
Version *int32 `json:"version,omitempty"`
// ID of the revision currently being modified for the campaign.
CurrentRevisionId *int32 `json:"currentRevisionId,omitempty"`
// ID of the latest version applied on the current revision.
CurrentRevisionVersionId *int32 `json:"currentRevisionVersionId,omitempty"`
// Flag for determining whether we use current revision when sending requests with staging API key.
StageRevision *bool `json:"stageRevision,omitempty"`
}
// GetId returns the Id field value
func (o *Campaign) GetId() int32 {
if o == nil {
var ret int32
return ret
}
return o.Id
}
// SetId sets field value
func (o *Campaign) SetId(v int32) {
o.Id = v
}
// GetCreated returns the Created field value
func (o *Campaign) GetCreated() time.Time {
if o == nil {
var ret time.Time
return ret
}
return o.Created
}
// SetCreated sets field value
func (o *Campaign) SetCreated(v time.Time) {
o.Created = v
}
// GetApplicationId returns the ApplicationId field value
func (o *Campaign) GetApplicationId() int32 {
if o == nil {
var ret int32
return ret
}
return o.ApplicationId
}
// SetApplicationId sets field value
func (o *Campaign) SetApplicationId(v int32) {
o.ApplicationId = v
}
// GetUserId returns the UserId field value
func (o *Campaign) GetUserId() int32 {
if o == nil {
var ret int32
return ret
}
return o.UserId
}
// SetUserId sets field value
func (o *Campaign) SetUserId(v int32) {
o.UserId = v
}
// GetName returns the Name field value
func (o *Campaign) GetName() string {
if o == nil {
var ret string
return ret
}
return o.Name
}
// SetName sets field value
func (o *Campaign) SetName(v string) {
o.Name = v
}
// GetDescription returns the Description field value
func (o *Campaign) GetDescription() string {
if o == nil {
var ret string
return ret
}
return o.Description
}
// SetDescription sets field value
func (o *Campaign) SetDescription(v string) {
o.Description = v
}
// GetStartTime returns the StartTime field value if set, zero value otherwise.
func (o *Campaign) GetStartTime() time.Time {
if o == nil || o.StartTime == nil {
var ret time.Time
return ret
}
return *o.StartTime
}
// GetStartTimeOk returns a tuple with the StartTime field value if set, zero value otherwise
// and a boolean to check if the value has been set.
func (o *Campaign) GetStartTimeOk() (time.Time, bool) {
if o == nil || o.StartTime == nil {
var ret time.Time
return ret, false
}
return *o.StartTime, true
}
// HasStartTime returns a boolean if a field has been set.
func (o *Campaign) HasStartTime() bool {
if o != nil && o.StartTime != nil {
return true
}
return false
}
// SetStartTime gets a reference to the given time.Time and assigns it to the StartTime field.
func (o *Campaign) SetStartTime(v time.Time) {
o.StartTime = &v
}
// GetEndTime returns the EndTime field value if set, zero value otherwise.
func (o *Campaign) GetEndTime() time.Time {
if o == nil || o.EndTime == nil {
var ret time.Time
return ret
}
return *o.EndTime
}
// GetEndTimeOk returns a tuple with the EndTime field value if set, zero value otherwise
// and a boolean to check if the value has been set.
func (o *Campaign) GetEndTimeOk() (time.Time, bool) {
if o == nil || o.EndTime == nil {
var ret time.Time
return ret, false
}
return *o.EndTime, true
}
// HasEndTime returns a boolean if a field has been set.
func (o *Campaign) HasEndTime() bool {
if o != nil && o.EndTime != nil {
return true
}
return false
}
// SetEndTime gets a reference to the given time.Time and assigns it to the EndTime field.
func (o *Campaign) SetEndTime(v time.Time) {
o.EndTime = &v
}
// GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *Campaign) GetAttributes() map[string]interface{} {
if o == nil || o.Attributes == nil {
var ret map[string]interface{}
return ret
}
return *o.Attributes
}
// GetAttributesOk returns a tuple with the Attributes field value if set, zero value otherwise
// and a boolean to check if the value has been set.
func (o *Campaign) GetAttributesOk() (map[string]interface{}, bool) {
if o == nil || o.Attributes == nil {
var ret map[string]interface{}
return ret, false
}
return *o.Attributes, true
}
// HasAttributes returns a boolean if a field has been set.
func (o *Campaign) HasAttributes() bool {
if o != nil && o.Attributes != nil {
return true
}
return false
}
// SetAttributes gets a reference to the given map[string]interface{} and assigns it to the Attributes field.
func (o *Campaign) SetAttributes(v map[string]interface{}) {
o.Attributes = &v
}
// GetState returns the State field value
func (o *Campaign) GetState() string {
if o == nil {
var ret string
return ret
}
return o.State
}
// SetState sets field value
func (o *Campaign) SetState(v string) {
o.State = v
}
// GetActiveRulesetId returns the ActiveRulesetId field value if set, zero value otherwise.
func (o *Campaign) GetActiveRulesetId() int32 {
if o == nil || o.ActiveRulesetId == nil {
var ret int32
return ret
}
return *o.ActiveRulesetId
}
// GetActiveRulesetIdOk returns a tuple with the ActiveRulesetId field value if set, zero value otherwise
// and a boolean to check if the value has been set.
func (o *Campaign) GetActiveRulesetIdOk() (int32, bool) {
if o == nil || o.ActiveRulesetId == nil {
var ret int32
return ret, false
}
return *o.ActiveRulesetId, true
}
// HasActiveRulesetId returns a boolean if a field has been set.
func (o *Campaign) HasActiveRulesetId() bool {
if o != nil && o.ActiveRulesetId != nil {
return true
}
return false
}
// SetActiveRulesetId gets a reference to the given int32 and assigns it to the ActiveRulesetId field.
func (o *Campaign) SetActiveRulesetId(v int32) {
o.ActiveRulesetId = &v
}
// GetTags returns the Tags field value
func (o *Campaign) GetTags() []string {
if o == nil {
var ret []string
return ret
}
return o.Tags
}
// SetTags sets field value
func (o *Campaign) SetTags(v []string) {
o.Tags = v
}
// GetFeatures returns the Features field value
func (o *Campaign) GetFeatures() []string {
if o == nil {
var ret []string
return ret
}
return o.Features
}
// SetFeatures sets field value
func (o *Campaign) SetFeatures(v []string) {
o.Features = v
}
// GetCouponSettings returns the CouponSettings field value if set, zero value otherwise.
func (o *Campaign) GetCouponSettings() CodeGeneratorSettings {
if o == nil || o.CouponSettings == nil {
var ret CodeGeneratorSettings
return ret
}
return *o.CouponSettings
}
// GetCouponSettingsOk returns a tuple with the CouponSettings field value if set, zero value otherwise
// and a boolean to check if the value has been set.
func (o *Campaign) GetCouponSettingsOk() (CodeGeneratorSettings, bool) {
if o == nil || o.CouponSettings == nil {
var ret CodeGeneratorSettings
return ret, false
}
return *o.CouponSettings, true
}
// HasCouponSettings returns a boolean if a field has been set.
func (o *Campaign) HasCouponSettings() bool {
if o != nil && o.CouponSettings != nil {
return true
}
return false
}
// SetCouponSettings gets a reference to the given CodeGeneratorSettings and assigns it to the CouponSettings field.
func (o *Campaign) SetCouponSettings(v CodeGeneratorSettings) {
o.CouponSettings = &v
}
// GetReferralSettings returns the ReferralSettings field value if set, zero value otherwise.
func (o *Campaign) GetReferralSettings() CodeGeneratorSettings {
if o == nil || o.ReferralSettings == nil {
var ret CodeGeneratorSettings
return ret
}
return *o.ReferralSettings
}
// GetReferralSettingsOk returns a tuple with the ReferralSettings field value if set, zero value otherwise
// and a boolean to check if the value has been set.
func (o *Campaign) GetReferralSettingsOk() (CodeGeneratorSettings, bool) {
if o == nil || o.ReferralSettings == nil {
var ret CodeGeneratorSettings
return ret, false
}
return *o.ReferralSettings, true
}
// HasReferralSettings returns a boolean if a field has been set.
func (o *Campaign) HasReferralSettings() bool {
if o != nil && o.ReferralSettings != nil {
return true
}
return false
}
// SetReferralSettings gets a reference to the given CodeGeneratorSettings and assigns it to the ReferralSettings field.
func (o *Campaign) SetReferralSettings(v CodeGeneratorSettings) {
o.ReferralSettings = &v
}
// GetLimits returns the Limits field value
func (o *Campaign) GetLimits() []LimitConfig {
if o == nil {
var ret []LimitConfig
return ret
}
return o.Limits
}
// SetLimits sets field value
func (o *Campaign) SetLimits(v []LimitConfig) {
o.Limits = v
}
// GetCampaignGroups returns the CampaignGroups field value if set, zero value otherwise.
func (o *Campaign) GetCampaignGroups() []int32 {
if o == nil || o.CampaignGroups == nil {
var ret []int32
return ret
}
return *o.CampaignGroups
}
// GetCampaignGroupsOk returns a tuple with the CampaignGroups field value if set, zero value otherwise
// and a boolean to check if the value has been set.
func (o *Campaign) GetCampaignGroupsOk() ([]int32, bool) {
if o == nil || o.CampaignGroups == nil {
var ret []int32
return ret, false
}
return *o.CampaignGroups, true
}
// HasCampaignGroups returns a boolean if a field has been set.
func (o *Campaign) HasCampaignGroups() bool {
if o != nil && o.CampaignGroups != nil {
return true
}
return false
}
// SetCampaignGroups gets a reference to the given []int32 and assigns it to the CampaignGroups field.
func (o *Campaign) SetCampaignGroups(v []int32) {
o.CampaignGroups = &v
}
// GetType returns the Type field value
func (o *Campaign) GetType() string {
if o == nil {
var ret string
return ret
}
return o.Type
}
// SetType sets field value
func (o *Campaign) SetType(v string) {
o.Type = v
}
// GetLinkedStoreIds returns the LinkedStoreIds field value if set, zero value otherwise.
func (o *Campaign) GetLinkedStoreIds() []int32 {
if o == nil || o.LinkedStoreIds == nil {
var ret []int32
return ret
}
return *o.LinkedStoreIds
}
// GetLinkedStoreIdsOk returns a tuple with the LinkedStoreIds field value if set, zero value otherwise
// and a boolean to check if the value has been set.
func (o *Campaign) GetLinkedStoreIdsOk() ([]int32, bool) {
if o == nil || o.LinkedStoreIds == nil {
var ret []int32
return ret, false
}
return *o.LinkedStoreIds, true
}
// HasLinkedStoreIds returns a boolean if a field has been set.
func (o *Campaign) HasLinkedStoreIds() bool {
if o != nil && o.LinkedStoreIds != nil {
return true
}
return false
}
// SetLinkedStoreIds gets a reference to the given []int32 and assigns it to the LinkedStoreIds field.
func (o *Campaign) SetLinkedStoreIds(v []int32) {
o.LinkedStoreIds = &v
}
// GetBudgets returns the Budgets field value
func (o *Campaign) GetBudgets() []CampaignBudget {
if o == nil {
var ret []CampaignBudget
return ret
}
return o.Budgets
}
// SetBudgets sets field value
func (o *Campaign) SetBudgets(v []CampaignBudget) {
o.Budgets = v
}
// GetCouponRedemptionCount returns the CouponRedemptionCount field value if set, zero value otherwise.
func (o *Campaign) GetCouponRedemptionCount() int32 {
if o == nil || o.CouponRedemptionCount == nil {
var ret int32
return ret
}
return *o.CouponRedemptionCount
}
// GetCouponRedemptionCountOk returns a tuple with the CouponRedemptionCount field value if set, zero value otherwise
// and a boolean to check if the value has been set.
func (o *Campaign) GetCouponRedemptionCountOk() (int32, bool) {
if o == nil || o.CouponRedemptionCount == nil {
var ret int32
return ret, false
}
return *o.CouponRedemptionCount, true
}
// HasCouponRedemptionCount returns a boolean if a field has been set.
func (o *Campaign) HasCouponRedemptionCount() bool {
if o != nil && o.CouponRedemptionCount != nil {
return true
}
return false
}
// SetCouponRedemptionCount gets a reference to the given int32 and assigns it to the CouponRedemptionCount field.
func (o *Campaign) SetCouponRedemptionCount(v int32) {
o.CouponRedemptionCount = &v
}
// GetReferralRedemptionCount returns the ReferralRedemptionCount field value if set, zero value otherwise.
func (o *Campaign) GetReferralRedemptionCount() int32 {
if o == nil || o.ReferralRedemptionCount == nil {
var ret int32
return ret
}
return *o.ReferralRedemptionCount
}
// GetReferralRedemptionCountOk returns a tuple with the ReferralRedemptionCount field value if set, zero value otherwise
// and a boolean to check if the value has been set.
func (o *Campaign) GetReferralRedemptionCountOk() (int32, bool) {
if o == nil || o.ReferralRedemptionCount == nil {
var ret int32
return ret, false
}
return *o.ReferralRedemptionCount, true
}
// HasReferralRedemptionCount returns a boolean if a field has been set.
func (o *Campaign) HasReferralRedemptionCount() bool {
if o != nil && o.ReferralRedemptionCount != nil {
return true
}
return false
}
// SetReferralRedemptionCount gets a reference to the given int32 and assigns it to the ReferralRedemptionCount field.
func (o *Campaign) SetReferralRedemptionCount(v int32) {
o.ReferralRedemptionCount = &v
}
// GetDiscountCount returns the DiscountCount field value if set, zero value otherwise.
func (o *Campaign) GetDiscountCount() float32 {
if o == nil || o.DiscountCount == nil {
var ret float32
return ret
}
return *o.DiscountCount
}
// GetDiscountCountOk returns a tuple with the DiscountCount field value if set, zero value otherwise
// and a boolean to check if the value has been set.
func (o *Campaign) GetDiscountCountOk() (float32, bool) {
if o == nil || o.DiscountCount == nil {
var ret float32
return ret, false
}
return *o.DiscountCount, true
}
// HasDiscountCount returns a boolean if a field has been set.
func (o *Campaign) HasDiscountCount() bool {
if o != nil && o.DiscountCount != nil {
return true
}
return false
}
// SetDiscountCount gets a reference to the given float32 and assigns it to the DiscountCount field.
func (o *Campaign) SetDiscountCount(v float32) {
o.DiscountCount = &v
}
// GetDiscountEffectCount returns the DiscountEffectCount field value if set, zero value otherwise.
func (o *Campaign) GetDiscountEffectCount() int32 {
if o == nil || o.DiscountEffectCount == nil {
var ret int32
return ret
}
return *o.DiscountEffectCount
}
// GetDiscountEffectCountOk returns a tuple with the DiscountEffectCount field value if set, zero value otherwise
// and a boolean to check if the value has been set.
func (o *Campaign) GetDiscountEffectCountOk() (int32, bool) {
if o == nil || o.DiscountEffectCount == nil {
var ret int32
return ret, false
}
return *o.DiscountEffectCount, true
}
// HasDiscountEffectCount returns a boolean if a field has been set.
func (o *Campaign) HasDiscountEffectCount() bool {
if o != nil && o.DiscountEffectCount != nil {
return true
}
return false
}
// SetDiscountEffectCount gets a reference to the given int32 and assigns it to the DiscountEffectCount field.
func (o *Campaign) SetDiscountEffectCount(v int32) {
o.DiscountEffectCount = &v
}
// GetCouponCreationCount returns the CouponCreationCount field value if set, zero value otherwise.
func (o *Campaign) GetCouponCreationCount() int32 {
if o == nil || o.CouponCreationCount == nil {
var ret int32
return ret
}
return *o.CouponCreationCount
}
// GetCouponCreationCountOk returns a tuple with the CouponCreationCount field value if set, zero value otherwise
// and a boolean to check if the value has been set.
func (o *Campaign) GetCouponCreationCountOk() (int32, bool) {
if o == nil || o.CouponCreationCount == nil {
var ret int32
return ret, false
}
return *o.CouponCreationCount, true
}
// HasCouponCreationCount returns a boolean if a field has been set.
func (o *Campaign) HasCouponCreationCount() bool {
if o != nil && o.CouponCreationCount != nil {
return true
}
return false
}
// SetCouponCreationCount gets a reference to the given int32 and assigns it to the CouponCreationCount field.
func (o *Campaign) SetCouponCreationCount(v int32) {
o.CouponCreationCount = &v
}
// GetCustomEffectCount returns the CustomEffectCount field value if set, zero value otherwise.
func (o *Campaign) GetCustomEffectCount() int32 {
if o == nil || o.CustomEffectCount == nil {
var ret int32
return ret
}
return *o.CustomEffectCount
}
// GetCustomEffectCountOk returns a tuple with the CustomEffectCount field value if set, zero value otherwise
// and a boolean to check if the value has been set.
func (o *Campaign) GetCustomEffectCountOk() (int32, bool) {
if o == nil || o.CustomEffectCount == nil {
var ret int32
return ret, false
}
return *o.CustomEffectCount, true
}
// HasCustomEffectCount returns a boolean if a field has been set.
func (o *Campaign) HasCustomEffectCount() bool {
if o != nil && o.CustomEffectCount != nil {
return true
}
return false
}
// SetCustomEffectCount gets a reference to the given int32 and assigns it to the CustomEffectCount field.
func (o *Campaign) SetCustomEffectCount(v int32) {
o.CustomEffectCount = &v
}
// GetReferralCreationCount returns the ReferralCreationCount field value if set, zero value otherwise.
func (o *Campaign) GetReferralCreationCount() int32 {
if o == nil || o.ReferralCreationCount == nil {
var ret int32
return ret
}
return *o.ReferralCreationCount
}
// GetReferralCreationCountOk returns a tuple with the ReferralCreationCount field value if set, zero value otherwise
// and a boolean to check if the value has been set.
func (o *Campaign) GetReferralCreationCountOk() (int32, bool) {
if o == nil || o.ReferralCreationCount == nil {
var ret int32
return ret, false
}
return *o.ReferralCreationCount, true
}
// HasReferralCreationCount returns a boolean if a field has been set.
func (o *Campaign) HasReferralCreationCount() bool {
if o != nil && o.ReferralCreationCount != nil {
return true
}
return false
}
// SetReferralCreationCount gets a reference to the given int32 and assigns it to the ReferralCreationCount field.
func (o *Campaign) SetReferralCreationCount(v int32) {
o.ReferralCreationCount = &v
}
// GetAddFreeItemEffectCount returns the AddFreeItemEffectCount field value if set, zero value otherwise.
func (o *Campaign) GetAddFreeItemEffectCount() int32 {
if o == nil || o.AddFreeItemEffectCount == nil {
var ret int32
return ret
}
return *o.AddFreeItemEffectCount
}
// GetAddFreeItemEffectCountOk returns a tuple with the AddFreeItemEffectCount field value if set, zero value otherwise
// and a boolean to check if the value has been set.
func (o *Campaign) GetAddFreeItemEffectCountOk() (int32, bool) {
if o == nil || o.AddFreeItemEffectCount == nil {
var ret int32
return ret, false
}
return *o.AddFreeItemEffectCount, true
}
// HasAddFreeItemEffectCount returns a boolean if a field has been set.
func (o *Campaign) HasAddFreeItemEffectCount() bool {
if o != nil && o.AddFreeItemEffectCount != nil {
return true
}
return false
}
// SetAddFreeItemEffectCount gets a reference to the given int32 and assigns it to the AddFreeItemEffectCount field.
func (o *Campaign) SetAddFreeItemEffectCount(v int32) {
o.AddFreeItemEffectCount = &v
}
// GetAwardedGiveawaysCount returns the AwardedGiveawaysCount field value if set, zero value otherwise.
func (o *Campaign) GetAwardedGiveawaysCount() int32 {
if o == nil || o.AwardedGiveawaysCount == nil {
var ret int32
return ret
}
return *o.AwardedGiveawaysCount
}
// GetAwardedGiveawaysCountOk returns a tuple with the AwardedGiveawaysCount field value if set, zero value otherwise
// and a boolean to check if the value has been set.
func (o *Campaign) GetAwardedGiveawaysCountOk() (int32, bool) {
if o == nil || o.AwardedGiveawaysCount == nil {
var ret int32
return ret, false
}
return *o.AwardedGiveawaysCount, true
}
// HasAwardedGiveawaysCount returns a boolean if a field has been set.
func (o *Campaign) HasAwardedGiveawaysCount() bool {
if o != nil && o.AwardedGiveawaysCount != nil {
return true
}
return false
}
// SetAwardedGiveawaysCount gets a reference to the given int32 and assigns it to the AwardedGiveawaysCount field.
func (o *Campaign) SetAwardedGiveawaysCount(v int32) {
o.AwardedGiveawaysCount = &v
}
// GetCreatedLoyaltyPointsCount returns the CreatedLoyaltyPointsCount field value if set, zero value otherwise.
func (o *Campaign) GetCreatedLoyaltyPointsCount() float32 {
if o == nil || o.CreatedLoyaltyPointsCount == nil {
var ret float32
return ret
}
return *o.CreatedLoyaltyPointsCount
}
// GetCreatedLoyaltyPointsCountOk returns a tuple with the CreatedLoyaltyPointsCount field value if set, zero value otherwise
// and a boolean to check if the value has been set.
func (o *Campaign) GetCreatedLoyaltyPointsCountOk() (float32, bool) {
if o == nil || o.CreatedLoyaltyPointsCount == nil {
var ret float32
return ret, false
}
return *o.CreatedLoyaltyPointsCount, true
}
// HasCreatedLoyaltyPointsCount returns a boolean if a field has been set.
func (o *Campaign) HasCreatedLoyaltyPointsCount() bool {
if o != nil && o.CreatedLoyaltyPointsCount != nil {
return true
}
return false
}
// SetCreatedLoyaltyPointsCount gets a reference to the given float32 and assigns it to the CreatedLoyaltyPointsCount field.
func (o *Campaign) SetCreatedLoyaltyPointsCount(v float32) {
o.CreatedLoyaltyPointsCount = &v
}
// GetCreatedLoyaltyPointsEffectCount returns the CreatedLoyaltyPointsEffectCount field value if set, zero value otherwise.
func (o *Campaign) GetCreatedLoyaltyPointsEffectCount() int32 {
if o == nil || o.CreatedLoyaltyPointsEffectCount == nil {
var ret int32
return ret
}
return *o.CreatedLoyaltyPointsEffectCount
}
// GetCreatedLoyaltyPointsEffectCountOk returns a tuple with the CreatedLoyaltyPointsEffectCount field value if set, zero value otherwise
// and a boolean to check if the value has been set.
func (o *Campaign) GetCreatedLoyaltyPointsEffectCountOk() (int32, bool) {
if o == nil || o.CreatedLoyaltyPointsEffectCount == nil {
var ret int32
return ret, false
}
return *o.CreatedLoyaltyPointsEffectCount, true
}
// HasCreatedLoyaltyPointsEffectCount returns a boolean if a field has been set.
func (o *Campaign) HasCreatedLoyaltyPointsEffectCount() bool {
if o != nil && o.CreatedLoyaltyPointsEffectCount != nil {
return true
}
return false
}
// SetCreatedLoyaltyPointsEffectCount gets a reference to the given int32 and assigns it to the CreatedLoyaltyPointsEffectCount field.
func (o *Campaign) SetCreatedLoyaltyPointsEffectCount(v int32) {
o.CreatedLoyaltyPointsEffectCount = &v
}
// GetRedeemedLoyaltyPointsCount returns the RedeemedLoyaltyPointsCount field value if set, zero value otherwise.
func (o *Campaign) GetRedeemedLoyaltyPointsCount() float32 {
if o == nil || o.RedeemedLoyaltyPointsCount == nil {
var ret float32
return ret
}
return *o.RedeemedLoyaltyPointsCount
}
// GetRedeemedLoyaltyPointsCountOk returns a tuple with the RedeemedLoyaltyPointsCount field value if set, zero value otherwise
// and a boolean to check if the value has been set.
func (o *Campaign) GetRedeemedLoyaltyPointsCountOk() (float32, bool) {
if o == nil || o.RedeemedLoyaltyPointsCount == nil {
var ret float32
return ret, false
}
return *o.RedeemedLoyaltyPointsCount, true
}
// HasRedeemedLoyaltyPointsCount returns a boolean if a field has been set.
func (o *Campaign) HasRedeemedLoyaltyPointsCount() bool {
if o != nil && o.RedeemedLoyaltyPointsCount != nil {
return true
}
return false
}
// SetRedeemedLoyaltyPointsCount gets a reference to the given float32 and assigns it to the RedeemedLoyaltyPointsCount field.
func (o *Campaign) SetRedeemedLoyaltyPointsCount(v float32) {
o.RedeemedLoyaltyPointsCount = &v
}
// GetRedeemedLoyaltyPointsEffectCount returns the RedeemedLoyaltyPointsEffectCount field value if set, zero value otherwise.
func (o *Campaign) GetRedeemedLoyaltyPointsEffectCount() int32 {
if o == nil || o.RedeemedLoyaltyPointsEffectCount == nil {
var ret int32
return ret
}
return *o.RedeemedLoyaltyPointsEffectCount
}
// GetRedeemedLoyaltyPointsEffectCountOk returns a tuple with the RedeemedLoyaltyPointsEffectCount field value if set, zero value otherwise
// and a boolean to check if the value has been set.
func (o *Campaign) GetRedeemedLoyaltyPointsEffectCountOk() (int32, bool) {
if o == nil || o.RedeemedLoyaltyPointsEffectCount == nil {
var ret int32
return ret, false
}
return *o.RedeemedLoyaltyPointsEffectCount, true
}
// HasRedeemedLoyaltyPointsEffectCount returns a boolean if a field has been set.
func (o *Campaign) HasRedeemedLoyaltyPointsEffectCount() bool {
if o != nil && o.RedeemedLoyaltyPointsEffectCount != nil {
return true
}
return false
}
// SetRedeemedLoyaltyPointsEffectCount gets a reference to the given int32 and assigns it to the RedeemedLoyaltyPointsEffectCount field.
func (o *Campaign) SetRedeemedLoyaltyPointsEffectCount(v int32) {
o.RedeemedLoyaltyPointsEffectCount = &v
}
// GetCallApiEffectCount returns the CallApiEffectCount field value if set, zero value otherwise.
func (o *Campaign) GetCallApiEffectCount() int32 {
if o == nil || o.CallApiEffectCount == nil {
var ret int32
return ret
}
return *o.CallApiEffectCount
}
// GetCallApiEffectCountOk returns a tuple with the CallApiEffectCount field value if set, zero value otherwise
// and a boolean to check if the value has been set.
func (o *Campaign) GetCallApiEffectCountOk() (int32, bool) {