@@ -66,6 +66,14 @@ public final class Promotion extends com.google.api.client.json.GenericJson {
6666 @ com .google .api .client .util .Key
6767 private java .lang .String couponValueType ;
6868
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+
6977 /**
7078 * Free gift description for the promotion.
7179 * The value may be {@code null}.
@@ -160,6 +168,14 @@ public final class Promotion extends com.google.api.client.json.GenericJson {
160168 @ com .google .api .client .util .Key
161169 private java .lang .String longTitle ;
162170
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+
163179 /**
164180 * Minimum purchase amount for the promotion.
165181 * The value may be {@code null}.
@@ -297,6 +313,13 @@ public final class Promotion extends com.google.api.client.json.GenericJson {
297313 @ com .google .api .client .util .Key
298314 private java .util .List <java .lang .String > redemptionChannel ;
299315
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+
300323 /**
301324 * Shipping service names for the promotion.
302325 * The value may be {@code null}.
@@ -414,6 +437,25 @@ public Promotion setCouponValueType(java.lang.String couponValueType) {
414437 return this ;
415438 }
416439
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+
417459 /**
418460 * Free gift description for the promotion.
419461 * @return value or {@code null} for none
@@ -641,6 +683,25 @@ public Promotion setLongTitle(java.lang.String longTitle) {
641683 return this ;
642684 }
643685
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+
644705 /**
645706 * Minimum purchase amount for the promotion.
646707 * @return value or {@code null} for none
@@ -972,6 +1033,23 @@ public Promotion setRedemptionChannel(java.util.List<java.lang.String> redemptio
9721033 return this ;
9731034 }
9741035
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+
9751053 /**
9761054 * Shipping service names for the promotion.
9771055 * @return value or {@code null} for none
0 commit comments