2323@ JsonPropertyOrder ({
2424 CheckoutForwardRequest .JSON_PROPERTY_BASE_URL ,
2525 CheckoutForwardRequest .JSON_PROPERTY_MERCHANT_ACCOUNT ,
26+ CheckoutForwardRequest .JSON_PROPERTY_MERCHANT_REFERENCE ,
2627 CheckoutForwardRequest .JSON_PROPERTY_OPTIONS ,
2728 CheckoutForwardRequest .JSON_PROPERTY_PAYMENT_METHOD ,
2829 CheckoutForwardRequest .JSON_PROPERTY_REQUEST ,
@@ -42,6 +43,12 @@ public class CheckoutForwardRequest {
4243 /** Mark when the attribute has been explicitly set. */
4344 private boolean isSetMerchantAccount = false ;
4445
46+ public static final String JSON_PROPERTY_MERCHANT_REFERENCE = "merchantReference" ;
47+ private String merchantReference ;
48+
49+ /** Mark when the attribute has been explicitly set. */
50+ private boolean isSetMerchantReference = false ;
51+
4552 public static final String JSON_PROPERTY_OPTIONS = "options" ;
4653 private CheckoutForwardRequestOptions options ;
4754
@@ -156,6 +163,41 @@ public void setMerchantAccount(String merchantAccount) {
156163 isSetMerchantAccount = true ; // mark as set
157164 }
158165
166+ /**
167+ * Merchant defined payment reference.
168+ *
169+ * @param merchantReference Merchant defined payment reference.
170+ * @return the current {@code CheckoutForwardRequest} instance, allowing for method chaining
171+ */
172+ public CheckoutForwardRequest merchantReference (String merchantReference ) {
173+ this .merchantReference = merchantReference ;
174+ isSetMerchantReference = true ; // mark as set
175+ return this ;
176+ }
177+
178+ /**
179+ * Merchant defined payment reference.
180+ *
181+ * @return merchantReference Merchant defined payment reference.
182+ */
183+ @ JsonProperty (JSON_PROPERTY_MERCHANT_REFERENCE )
184+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
185+ public String getMerchantReference () {
186+ return merchantReference ;
187+ }
188+
189+ /**
190+ * Merchant defined payment reference.
191+ *
192+ * @param merchantReference Merchant defined payment reference.
193+ */
194+ @ JsonProperty (JSON_PROPERTY_MERCHANT_REFERENCE )
195+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
196+ public void setMerchantReference (String merchantReference ) {
197+ this .merchantReference = merchantReference ;
198+ isSetMerchantReference = true ; // mark as set
199+ }
200+
159201 /**
160202 * options
161203 *
@@ -389,6 +431,9 @@ public boolean equals(Object o) {
389431 && Objects .equals (this .isSetBaseUrl , checkoutForwardRequest .isSetBaseUrl )
390432 && Objects .equals (this .merchantAccount , checkoutForwardRequest .merchantAccount )
391433 && Objects .equals (this .isSetMerchantAccount , checkoutForwardRequest .isSetMerchantAccount )
434+ && Objects .equals (this .merchantReference , checkoutForwardRequest .merchantReference )
435+ && Objects .equals (
436+ this .isSetMerchantReference , checkoutForwardRequest .isSetMerchantReference )
392437 && Objects .equals (this .options , checkoutForwardRequest .options )
393438 && Objects .equals (this .isSetOptions , checkoutForwardRequest .isSetOptions )
394439 && Objects .equals (this .paymentMethod , checkoutForwardRequest .paymentMethod )
@@ -409,6 +454,8 @@ public int hashCode() {
409454 isSetBaseUrl ,
410455 merchantAccount ,
411456 isSetMerchantAccount ,
457+ merchantReference ,
458+ isSetMerchantReference ,
412459 options ,
413460 isSetOptions ,
414461 paymentMethod ,
@@ -427,6 +474,7 @@ public String toString() {
427474 sb .append ("class CheckoutForwardRequest {\n " );
428475 sb .append (" baseUrl: " ).append (toIndentedString (baseUrl )).append ("\n " );
429476 sb .append (" merchantAccount: " ).append (toIndentedString (merchantAccount )).append ("\n " );
477+ sb .append (" merchantReference: " ).append (toIndentedString (merchantReference )).append ("\n " );
430478 sb .append (" options: " ).append (toIndentedString (options )).append ("\n " );
431479 sb .append (" paymentMethod: " ).append (toIndentedString (paymentMethod )).append ("\n " );
432480 sb .append (" request: " ).append (toIndentedString (request )).append ("\n " );
@@ -464,6 +512,9 @@ public Map<String, Object> getExplicitNulls() {
464512 if (isSetMerchantAccount ) {
465513 addIfNull (nulls , JSON_PROPERTY_MERCHANT_ACCOUNT , this .merchantAccount );
466514 }
515+ if (isSetMerchantReference ) {
516+ addIfNull (nulls , JSON_PROPERTY_MERCHANT_REFERENCE , this .merchantReference );
517+ }
467518 if (isSetOptions ) {
468519 addIfNull (nulls , JSON_PROPERTY_OPTIONS , this .options );
469520 }
0 commit comments