@@ -66,6 +66,14 @@ public final class Promotion extends com.google.api.client.json.GenericJson {
66
66
@ com .google .api .client .util .Key
67
67
private java .lang .String couponValueType ;
68
68
69
+ /**
70
+ * The custom redemption restriction for the promotion. If the `redemption_restriction` field is
71
+ * set to `CUSTOM`, this field must be set.
72
+ * The value may be {@code null}.
73
+ */
74
+ @ com .google .api .client .util .Key
75
+ private java .lang .String customRedemptionRestriction ;
76
+
69
77
/**
70
78
* Free gift description for the promotion.
71
79
* The value may be {@code null}.
@@ -160,6 +168,14 @@ public final class Promotion extends com.google.api.client.json.GenericJson {
160
168
@ com .google .api .client .util .Key
161
169
private java .lang .String longTitle ;
162
170
171
+ /**
172
+ * The maximum monetary discount a customer can receive for the promotion. This field is only
173
+ * supported with the `Percent off` coupon value type.
174
+ * The value may be {@code null}.
175
+ */
176
+ @ com .google .api .client .util .Key
177
+ private PriceAmount maxDiscountAmount ;
178
+
163
179
/**
164
180
* Minimum purchase amount for the promotion.
165
181
* The value may be {@code null}.
@@ -297,6 +313,13 @@ public final class Promotion extends com.google.api.client.json.GenericJson {
297
313
@ com .google .api .client .util .Key
298
314
private java .util .List <java .lang .String > redemptionChannel ;
299
315
316
+ /**
317
+ * The redemption restriction for the promotion.
318
+ * The value may be {@code null}.
319
+ */
320
+ @ com .google .api .client .util .Key
321
+ private java .lang .String redemptionRestriction ;
322
+
300
323
/**
301
324
* Shipping service names for the promotion.
302
325
* The value may be {@code null}.
@@ -414,6 +437,25 @@ public Promotion setCouponValueType(java.lang.String couponValueType) {
414
437
return this ;
415
438
}
416
439
440
+ /**
441
+ * The custom redemption restriction for the promotion. If the `redemption_restriction` field is
442
+ * set to `CUSTOM`, this field must be set.
443
+ * @return value or {@code null} for none
444
+ */
445
+ public java .lang .String getCustomRedemptionRestriction () {
446
+ return customRedemptionRestriction ;
447
+ }
448
+
449
+ /**
450
+ * The custom redemption restriction for the promotion. If the `redemption_restriction` field is
451
+ * set to `CUSTOM`, this field must be set.
452
+ * @param customRedemptionRestriction customRedemptionRestriction or {@code null} for none
453
+ */
454
+ public Promotion setCustomRedemptionRestriction (java .lang .String customRedemptionRestriction ) {
455
+ this .customRedemptionRestriction = customRedemptionRestriction ;
456
+ return this ;
457
+ }
458
+
417
459
/**
418
460
* Free gift description for the promotion.
419
461
* @return value or {@code null} for none
@@ -641,6 +683,25 @@ public Promotion setLongTitle(java.lang.String longTitle) {
641
683
return this ;
642
684
}
643
685
686
+ /**
687
+ * The maximum monetary discount a customer can receive for the promotion. This field is only
688
+ * supported with the `Percent off` coupon value type.
689
+ * @return value or {@code null} for none
690
+ */
691
+ public PriceAmount getMaxDiscountAmount () {
692
+ return maxDiscountAmount ;
693
+ }
694
+
695
+ /**
696
+ * The maximum monetary discount a customer can receive for the promotion. This field is only
697
+ * supported with the `Percent off` coupon value type.
698
+ * @param maxDiscountAmount maxDiscountAmount or {@code null} for none
699
+ */
700
+ public Promotion setMaxDiscountAmount (PriceAmount maxDiscountAmount ) {
701
+ this .maxDiscountAmount = maxDiscountAmount ;
702
+ return this ;
703
+ }
704
+
644
705
/**
645
706
* Minimum purchase amount for the promotion.
646
707
* @return value or {@code null} for none
@@ -972,6 +1033,23 @@ public Promotion setRedemptionChannel(java.util.List<java.lang.String> redemptio
972
1033
return this ;
973
1034
}
974
1035
1036
+ /**
1037
+ * The redemption restriction for the promotion.
1038
+ * @return value or {@code null} for none
1039
+ */
1040
+ public java .lang .String getRedemptionRestriction () {
1041
+ return redemptionRestriction ;
1042
+ }
1043
+
1044
+ /**
1045
+ * The redemption restriction for the promotion.
1046
+ * @param redemptionRestriction redemptionRestriction or {@code null} for none
1047
+ */
1048
+ public Promotion setRedemptionRestriction (java .lang .String redemptionRestriction ) {
1049
+ this .redemptionRestriction = redemptionRestriction ;
1050
+ return this ;
1051
+ }
1052
+
975
1053
/**
976
1054
* Shipping service names for the promotion.
977
1055
* @return value or {@code null} for none
0 commit comments