25
25
import com .fasterxml .jackson .annotation .JsonCreator ;
26
26
import com .fasterxml .jackson .annotation .JsonValue ;
27
27
import com .postfinancecheckout .sdk .model .LineItemCreate ;
28
+ import com .postfinancecheckout .sdk .model .PaymentLinkAddressHandlingMode ;
28
29
import com .postfinancecheckout .sdk .model .PaymentMethodConfiguration ;
29
30
import io .swagger .annotations .ApiModel ;
30
31
import io .swagger .annotations .ApiModelProperty ;
@@ -56,8 +57,8 @@ public class AbstractPaymentLinkUpdate {
56
57
protected OffsetDateTime availableUntil = null ;
57
58
58
59
59
- @ JsonProperty ("billingAddressRequired " )
60
- protected Boolean billingAddressRequired = null ;
60
+ @ JsonProperty ("billingAddressHandlingMode " )
61
+ protected PaymentLinkAddressHandlingMode billingAddressHandlingMode = null ;
61
62
62
63
63
64
@ JsonProperty ("currency" )
@@ -80,8 +81,8 @@ public class AbstractPaymentLinkUpdate {
80
81
protected String name = null ;
81
82
82
83
83
- @ JsonProperty ("shippingAddressRequired " )
84
- protected Boolean shippingAddressRequired = null ;
84
+ @ JsonProperty ("shippingAddressHandlingMode " )
85
+ protected PaymentLinkAddressHandlingMode shippingAddressHandlingMode = null ;
85
86
86
87
87
88
@@ -169,22 +170,22 @@ public void setAvailableUntil(OffsetDateTime availableUntil) {
169
170
}
170
171
171
172
172
- public AbstractPaymentLinkUpdate billingAddressRequired ( Boolean billingAddressRequired ) {
173
- this .billingAddressRequired = billingAddressRequired ;
173
+ public AbstractPaymentLinkUpdate billingAddressHandlingMode ( PaymentLinkAddressHandlingMode billingAddressHandlingMode ) {
174
+ this .billingAddressHandlingMode = billingAddressHandlingMode ;
174
175
return this ;
175
176
}
176
177
177
178
/**
178
- * By making the billing address required the transaction can only be created when a billing address is provided within the request .
179
- * @return billingAddressRequired
179
+ * The billing address handling mode controls if the address is collected or not and how it is collected .
180
+ * @return billingAddressHandlingMode
180
181
**/
181
- @ ApiModelProperty (value = "By making the billing address required the transaction can only be created when a billing address is provided within the request ." )
182
- public Boolean isBillingAddressRequired () {
183
- return billingAddressRequired ;
182
+ @ ApiModelProperty (value = "The billing address handling mode controls if the address is collected or not and how it is collected ." )
183
+ public PaymentLinkAddressHandlingMode getBillingAddressHandlingMode () {
184
+ return billingAddressHandlingMode ;
184
185
}
185
186
186
- public void setBillingAddressRequired ( Boolean billingAddressRequired ) {
187
- this .billingAddressRequired = billingAddressRequired ;
187
+ public void setBillingAddressHandlingMode ( PaymentLinkAddressHandlingMode billingAddressHandlingMode ) {
188
+ this .billingAddressHandlingMode = billingAddressHandlingMode ;
188
189
}
189
190
190
191
@@ -291,22 +292,22 @@ public void setName(String name) {
291
292
}
292
293
293
294
294
- public AbstractPaymentLinkUpdate shippingAddressRequired ( Boolean shippingAddressRequired ) {
295
- this .shippingAddressRequired = shippingAddressRequired ;
295
+ public AbstractPaymentLinkUpdate shippingAddressHandlingMode ( PaymentLinkAddressHandlingMode shippingAddressHandlingMode ) {
296
+ this .shippingAddressHandlingMode = shippingAddressHandlingMode ;
296
297
return this ;
297
298
}
298
299
299
300
/**
300
- * By making the shipping address required the transaction can only be created when a shipping address is provided within the request .
301
- * @return shippingAddressRequired
301
+ * The shipping address handling mode controls if the address is collected or not and how it is collected .
302
+ * @return shippingAddressHandlingMode
302
303
**/
303
- @ ApiModelProperty (value = "By making the shipping address required the transaction can only be created when a shipping address is provided within the request ." )
304
- public Boolean isShippingAddressRequired () {
305
- return shippingAddressRequired ;
304
+ @ ApiModelProperty (value = "The shipping address handling mode controls if the address is collected or not and how it is collected ." )
305
+ public PaymentLinkAddressHandlingMode getShippingAddressHandlingMode () {
306
+ return shippingAddressHandlingMode ;
306
307
}
307
308
308
- public void setShippingAddressRequired ( Boolean shippingAddressRequired ) {
309
- this .shippingAddressRequired = shippingAddressRequired ;
309
+ public void setShippingAddressHandlingMode ( PaymentLinkAddressHandlingMode shippingAddressHandlingMode ) {
310
+ this .shippingAddressHandlingMode = shippingAddressHandlingMode ;
310
311
}
311
312
312
313
@@ -324,18 +325,18 @@ public boolean equals(java.lang.Object o) {
324
325
Objects .equals (this .appliedSpaceView , abstractPaymentLinkUpdate .appliedSpaceView ) &&
325
326
Objects .equals (this .availableFrom , abstractPaymentLinkUpdate .availableFrom ) &&
326
327
Objects .equals (this .availableUntil , abstractPaymentLinkUpdate .availableUntil ) &&
327
- Objects .equals (this .billingAddressRequired , abstractPaymentLinkUpdate .billingAddressRequired ) &&
328
+ Objects .equals (this .billingAddressHandlingMode , abstractPaymentLinkUpdate .billingAddressHandlingMode ) &&
328
329
Objects .equals (this .currency , abstractPaymentLinkUpdate .currency ) &&
329
330
Objects .equals (this .language , abstractPaymentLinkUpdate .language ) &&
330
331
Objects .equals (this .lineItems , abstractPaymentLinkUpdate .lineItems ) &&
331
332
Objects .equals (this .maximalNumberOfTransactions , abstractPaymentLinkUpdate .maximalNumberOfTransactions ) &&
332
333
Objects .equals (this .name , abstractPaymentLinkUpdate .name ) &&
333
- Objects .equals (this .shippingAddressRequired , abstractPaymentLinkUpdate .shippingAddressRequired );
334
+ Objects .equals (this .shippingAddressHandlingMode , abstractPaymentLinkUpdate .shippingAddressHandlingMode );
334
335
}
335
336
336
337
@ Override
337
338
public int hashCode () {
338
- return Objects .hash (allowedPaymentMethodConfigurations , appliedSpaceView , availableFrom , availableUntil , billingAddressRequired , currency , language , lineItems , maximalNumberOfTransactions , name , shippingAddressRequired );
339
+ return Objects .hash (allowedPaymentMethodConfigurations , appliedSpaceView , availableFrom , availableUntil , billingAddressHandlingMode , currency , language , lineItems , maximalNumberOfTransactions , name , shippingAddressHandlingMode );
339
340
}
340
341
341
342
@@ -348,13 +349,13 @@ public String toString() {
348
349
sb .append (" appliedSpaceView: " ).append (toIndentedString (appliedSpaceView )).append ("\n " );
349
350
sb .append (" availableFrom: " ).append (toIndentedString (availableFrom )).append ("\n " );
350
351
sb .append (" availableUntil: " ).append (toIndentedString (availableUntil )).append ("\n " );
351
- sb .append (" billingAddressRequired : " ).append (toIndentedString (billingAddressRequired )).append ("\n " );
352
+ sb .append (" billingAddressHandlingMode : " ).append (toIndentedString (billingAddressHandlingMode )).append ("\n " );
352
353
sb .append (" currency: " ).append (toIndentedString (currency )).append ("\n " );
353
354
sb .append (" language: " ).append (toIndentedString (language )).append ("\n " );
354
355
sb .append (" lineItems: " ).append (toIndentedString (lineItems )).append ("\n " );
355
356
sb .append (" maximalNumberOfTransactions: " ).append (toIndentedString (maximalNumberOfTransactions )).append ("\n " );
356
357
sb .append (" name: " ).append (toIndentedString (name )).append ("\n " );
357
- sb .append (" shippingAddressRequired : " ).append (toIndentedString (shippingAddressRequired )).append ("\n " );
358
+ sb .append (" shippingAddressHandlingMode : " ).append (toIndentedString (shippingAddressHandlingMode )).append ("\n " );
358
359
sb .append ("}" );
359
360
return sb .toString ();
360
361
}
0 commit comments