-
Notifications
You must be signed in to change notification settings - Fork 5
/
model_additional_campaign_properties.go
794 lines (678 loc) · 28.6 KB
/
model_additional_campaign_properties.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
/*
* 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"
)
// AdditionalCampaignProperties struct for AdditionalCampaignProperties
type AdditionalCampaignProperties struct {
// 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"`
}
// GetBudgets returns the Budgets field value
func (o *AdditionalCampaignProperties) GetBudgets() []CampaignBudget {
if o == nil {
var ret []CampaignBudget
return ret
}
return o.Budgets
}
// SetBudgets sets field value
func (o *AdditionalCampaignProperties) SetBudgets(v []CampaignBudget) {
o.Budgets = v
}
// GetCouponRedemptionCount returns the CouponRedemptionCount field value if set, zero value otherwise.
func (o *AdditionalCampaignProperties) 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 *AdditionalCampaignProperties) 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 *AdditionalCampaignProperties) 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 *AdditionalCampaignProperties) SetCouponRedemptionCount(v int32) {
o.CouponRedemptionCount = &v
}
// GetReferralRedemptionCount returns the ReferralRedemptionCount field value if set, zero value otherwise.
func (o *AdditionalCampaignProperties) 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 *AdditionalCampaignProperties) 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 *AdditionalCampaignProperties) 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 *AdditionalCampaignProperties) SetReferralRedemptionCount(v int32) {
o.ReferralRedemptionCount = &v
}
// GetDiscountCount returns the DiscountCount field value if set, zero value otherwise.
func (o *AdditionalCampaignProperties) 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 *AdditionalCampaignProperties) 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 *AdditionalCampaignProperties) 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 *AdditionalCampaignProperties) SetDiscountCount(v float32) {
o.DiscountCount = &v
}
// GetDiscountEffectCount returns the DiscountEffectCount field value if set, zero value otherwise.
func (o *AdditionalCampaignProperties) 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 *AdditionalCampaignProperties) 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 *AdditionalCampaignProperties) 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 *AdditionalCampaignProperties) SetDiscountEffectCount(v int32) {
o.DiscountEffectCount = &v
}
// GetCouponCreationCount returns the CouponCreationCount field value if set, zero value otherwise.
func (o *AdditionalCampaignProperties) 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 *AdditionalCampaignProperties) 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 *AdditionalCampaignProperties) 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 *AdditionalCampaignProperties) SetCouponCreationCount(v int32) {
o.CouponCreationCount = &v
}
// GetCustomEffectCount returns the CustomEffectCount field value if set, zero value otherwise.
func (o *AdditionalCampaignProperties) 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 *AdditionalCampaignProperties) 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 *AdditionalCampaignProperties) 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 *AdditionalCampaignProperties) SetCustomEffectCount(v int32) {
o.CustomEffectCount = &v
}
// GetReferralCreationCount returns the ReferralCreationCount field value if set, zero value otherwise.
func (o *AdditionalCampaignProperties) 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 *AdditionalCampaignProperties) 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 *AdditionalCampaignProperties) 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 *AdditionalCampaignProperties) SetReferralCreationCount(v int32) {
o.ReferralCreationCount = &v
}
// GetAddFreeItemEffectCount returns the AddFreeItemEffectCount field value if set, zero value otherwise.
func (o *AdditionalCampaignProperties) 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 *AdditionalCampaignProperties) 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 *AdditionalCampaignProperties) 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 *AdditionalCampaignProperties) SetAddFreeItemEffectCount(v int32) {
o.AddFreeItemEffectCount = &v
}
// GetAwardedGiveawaysCount returns the AwardedGiveawaysCount field value if set, zero value otherwise.
func (o *AdditionalCampaignProperties) 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 *AdditionalCampaignProperties) 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 *AdditionalCampaignProperties) 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 *AdditionalCampaignProperties) SetAwardedGiveawaysCount(v int32) {
o.AwardedGiveawaysCount = &v
}
// GetCreatedLoyaltyPointsCount returns the CreatedLoyaltyPointsCount field value if set, zero value otherwise.
func (o *AdditionalCampaignProperties) 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 *AdditionalCampaignProperties) 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 *AdditionalCampaignProperties) 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 *AdditionalCampaignProperties) SetCreatedLoyaltyPointsCount(v float32) {
o.CreatedLoyaltyPointsCount = &v
}
// GetCreatedLoyaltyPointsEffectCount returns the CreatedLoyaltyPointsEffectCount field value if set, zero value otherwise.
func (o *AdditionalCampaignProperties) 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 *AdditionalCampaignProperties) 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 *AdditionalCampaignProperties) 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 *AdditionalCampaignProperties) SetCreatedLoyaltyPointsEffectCount(v int32) {
o.CreatedLoyaltyPointsEffectCount = &v
}
// GetRedeemedLoyaltyPointsCount returns the RedeemedLoyaltyPointsCount field value if set, zero value otherwise.
func (o *AdditionalCampaignProperties) 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 *AdditionalCampaignProperties) 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 *AdditionalCampaignProperties) 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 *AdditionalCampaignProperties) SetRedeemedLoyaltyPointsCount(v float32) {
o.RedeemedLoyaltyPointsCount = &v
}
// GetRedeemedLoyaltyPointsEffectCount returns the RedeemedLoyaltyPointsEffectCount field value if set, zero value otherwise.
func (o *AdditionalCampaignProperties) 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 *AdditionalCampaignProperties) 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 *AdditionalCampaignProperties) 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 *AdditionalCampaignProperties) SetRedeemedLoyaltyPointsEffectCount(v int32) {
o.RedeemedLoyaltyPointsEffectCount = &v
}
// GetCallApiEffectCount returns the CallApiEffectCount field value if set, zero value otherwise.
func (o *AdditionalCampaignProperties) 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 *AdditionalCampaignProperties) GetCallApiEffectCountOk() (int32, bool) {
if o == nil || o.CallApiEffectCount == nil {
var ret int32
return ret, false
}
return *o.CallApiEffectCount, true
}
// HasCallApiEffectCount returns a boolean if a field has been set.
func (o *AdditionalCampaignProperties) HasCallApiEffectCount() bool {
if o != nil && o.CallApiEffectCount != nil {
return true
}
return false
}
// SetCallApiEffectCount gets a reference to the given int32 and assigns it to the CallApiEffectCount field.
func (o *AdditionalCampaignProperties) SetCallApiEffectCount(v int32) {
o.CallApiEffectCount = &v
}
// GetReservecouponEffectCount returns the ReservecouponEffectCount field value if set, zero value otherwise.
func (o *AdditionalCampaignProperties) GetReservecouponEffectCount() int32 {
if o == nil || o.ReservecouponEffectCount == nil {
var ret int32
return ret
}
return *o.ReservecouponEffectCount
}
// GetReservecouponEffectCountOk returns a tuple with the ReservecouponEffectCount field value if set, zero value otherwise
// and a boolean to check if the value has been set.
func (o *AdditionalCampaignProperties) GetReservecouponEffectCountOk() (int32, bool) {
if o == nil || o.ReservecouponEffectCount == nil {
var ret int32
return ret, false
}
return *o.ReservecouponEffectCount, true
}
// HasReservecouponEffectCount returns a boolean if a field has been set.
func (o *AdditionalCampaignProperties) HasReservecouponEffectCount() bool {
if o != nil && o.ReservecouponEffectCount != nil {
return true
}
return false
}
// SetReservecouponEffectCount gets a reference to the given int32 and assigns it to the ReservecouponEffectCount field.
func (o *AdditionalCampaignProperties) SetReservecouponEffectCount(v int32) {
o.ReservecouponEffectCount = &v
}
// GetLastActivity returns the LastActivity field value if set, zero value otherwise.
func (o *AdditionalCampaignProperties) GetLastActivity() time.Time {
if o == nil || o.LastActivity == nil {
var ret time.Time
return ret
}
return *o.LastActivity
}
// GetLastActivityOk returns a tuple with the LastActivity field value if set, zero value otherwise
// and a boolean to check if the value has been set.
func (o *AdditionalCampaignProperties) GetLastActivityOk() (time.Time, bool) {
if o == nil || o.LastActivity == nil {
var ret time.Time
return ret, false
}
return *o.LastActivity, true
}
// HasLastActivity returns a boolean if a field has been set.
func (o *AdditionalCampaignProperties) HasLastActivity() bool {
if o != nil && o.LastActivity != nil {
return true
}
return false
}
// SetLastActivity gets a reference to the given time.Time and assigns it to the LastActivity field.
func (o *AdditionalCampaignProperties) SetLastActivity(v time.Time) {
o.LastActivity = &v
}
// GetUpdated returns the Updated field value if set, zero value otherwise.
func (o *AdditionalCampaignProperties) GetUpdated() time.Time {
if o == nil || o.Updated == nil {
var ret time.Time
return ret
}
return *o.Updated
}
// GetUpdatedOk returns a tuple with the Updated field value if set, zero value otherwise
// and a boolean to check if the value has been set.
func (o *AdditionalCampaignProperties) GetUpdatedOk() (time.Time, bool) {
if o == nil || o.Updated == nil {
var ret time.Time
return ret, false
}
return *o.Updated, true
}
// HasUpdated returns a boolean if a field has been set.
func (o *AdditionalCampaignProperties) HasUpdated() bool {
if o != nil && o.Updated != nil {
return true
}
return false
}
// SetUpdated gets a reference to the given time.Time and assigns it to the Updated field.
func (o *AdditionalCampaignProperties) SetUpdated(v time.Time) {
o.Updated = &v
}
// GetCreatedBy returns the CreatedBy field value if set, zero value otherwise.
func (o *AdditionalCampaignProperties) GetCreatedBy() string {
if o == nil || o.CreatedBy == nil {
var ret string
return ret
}
return *o.CreatedBy
}
// GetCreatedByOk returns a tuple with the CreatedBy field value if set, zero value otherwise
// and a boolean to check if the value has been set.
func (o *AdditionalCampaignProperties) GetCreatedByOk() (string, bool) {
if o == nil || o.CreatedBy == nil {
var ret string
return ret, false
}
return *o.CreatedBy, true
}
// HasCreatedBy returns a boolean if a field has been set.
func (o *AdditionalCampaignProperties) HasCreatedBy() bool {
if o != nil && o.CreatedBy != nil {
return true
}
return false
}
// SetCreatedBy gets a reference to the given string and assigns it to the CreatedBy field.
func (o *AdditionalCampaignProperties) SetCreatedBy(v string) {
o.CreatedBy = &v
}
// GetUpdatedBy returns the UpdatedBy field value if set, zero value otherwise.
func (o *AdditionalCampaignProperties) GetUpdatedBy() string {
if o == nil || o.UpdatedBy == nil {
var ret string
return ret
}
return *o.UpdatedBy
}
// GetUpdatedByOk returns a tuple with the UpdatedBy field value if set, zero value otherwise
// and a boolean to check if the value has been set.
func (o *AdditionalCampaignProperties) GetUpdatedByOk() (string, bool) {
if o == nil || o.UpdatedBy == nil {
var ret string
return ret, false
}
return *o.UpdatedBy, true
}
// HasUpdatedBy returns a boolean if a field has been set.
func (o *AdditionalCampaignProperties) HasUpdatedBy() bool {
if o != nil && o.UpdatedBy != nil {
return true
}
return false
}
// SetUpdatedBy gets a reference to the given string and assigns it to the UpdatedBy field.
func (o *AdditionalCampaignProperties) SetUpdatedBy(v string) {
o.UpdatedBy = &v
}
// GetTemplateId returns the TemplateId field value if set, zero value otherwise.
func (o *AdditionalCampaignProperties) GetTemplateId() int32 {
if o == nil || o.TemplateId == nil {
var ret int32
return ret
}
return *o.TemplateId
}
// GetTemplateIdOk returns a tuple with the TemplateId field value if set, zero value otherwise
// and a boolean to check if the value has been set.
func (o *AdditionalCampaignProperties) GetTemplateIdOk() (int32, bool) {
if o == nil || o.TemplateId == nil {
var ret int32
return ret, false
}
return *o.TemplateId, true
}
// HasTemplateId returns a boolean if a field has been set.
func (o *AdditionalCampaignProperties) HasTemplateId() bool {
if o != nil && o.TemplateId != nil {
return true
}
return false
}
// SetTemplateId gets a reference to the given int32 and assigns it to the TemplateId field.
func (o *AdditionalCampaignProperties) SetTemplateId(v int32) {
o.TemplateId = &v
}
// GetFrontendState returns the FrontendState field value
func (o *AdditionalCampaignProperties) GetFrontendState() string {
if o == nil {
var ret string
return ret
}
return o.FrontendState
}
// SetFrontendState sets field value
func (o *AdditionalCampaignProperties) SetFrontendState(v string) {
o.FrontendState = v
}
// GetStoresImported returns the StoresImported field value
func (o *AdditionalCampaignProperties) GetStoresImported() bool {
if o == nil {
var ret bool
return ret
}
return o.StoresImported
}
// SetStoresImported sets field value
func (o *AdditionalCampaignProperties) SetStoresImported(v bool) {
o.StoresImported = v
}
type NullableAdditionalCampaignProperties struct {
Value AdditionalCampaignProperties
ExplicitNull bool
}
func (v NullableAdditionalCampaignProperties) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
}
func (v *NullableAdditionalCampaignProperties) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
}