@@ -39,6 +39,8 @@ public final class SwiftDetails {
3939
4040 private final Optional <String > specialInstructions ;
4141
42+ private final Optional <Address > address ;
43+
4244 private final Optional <List <Tag >> tags ;
4345
4446 private final Map <String , Object > additionalProperties ;
@@ -53,6 +55,7 @@ private SwiftDetails(
5355 Optional <Address > bankAddress ,
5456 Optional <String > emailId ,
5557 Optional <String > specialInstructions ,
58+ Optional <Address > address ,
5659 Optional <List <Tag >> tags ,
5760 Map <String , Object > additionalProperties ) {
5861 this .swiftCode = swiftCode ;
@@ -64,6 +67,7 @@ private SwiftDetails(
6467 this .bankAddress = bankAddress ;
6568 this .emailId = emailId ;
6669 this .specialInstructions = specialInstructions ;
70+ this .address = address ;
6771 this .tags = tags ;
6872 this .additionalProperties = additionalProperties ;
6973 }
@@ -131,6 +135,11 @@ public Optional<String> getSpecialInstructions() {
131135 return specialInstructions ;
132136 }
133137
138+ @ JsonProperty ("address" )
139+ public Optional <Address > getAddress () {
140+ return address ;
141+ }
142+
134143 /**
135144 * @return Additional information that can be added via tags
136145 */
@@ -160,6 +169,7 @@ private boolean equalTo(SwiftDetails other) {
160169 && bankAddress .equals (other .bankAddress )
161170 && emailId .equals (other .emailId )
162171 && specialInstructions .equals (other .specialInstructions )
172+ && address .equals (other .address )
163173 && tags .equals (other .tags );
164174 }
165175
@@ -175,6 +185,7 @@ public int hashCode() {
175185 this .bankAddress ,
176186 this .emailId ,
177187 this .specialInstructions ,
188+ this .address ,
178189 this .tags );
179190 }
180191
@@ -207,6 +218,8 @@ public static final class Builder {
207218
208219 private Optional <String > specialInstructions = Optional .empty ();
209220
221+ private Optional <Address > address = Optional .empty ();
222+
210223 private Optional <List <Tag >> tags = Optional .empty ();
211224
212225 @ JsonAnySetter
@@ -224,6 +237,7 @@ public Builder from(SwiftDetails other) {
224237 bankAddress (other .getBankAddress ());
225238 emailId (other .getEmailId ());
226239 specialInstructions (other .getSpecialInstructions ());
240+ address (other .getAddress ());
227241 tags (other .getTags ());
228242 return this ;
229243 }
@@ -327,6 +341,17 @@ public Builder specialInstructions(String specialInstructions) {
327341 return this ;
328342 }
329343
344+ @ JsonSetter (value = "address" , nulls = Nulls .SKIP )
345+ public Builder address (Optional <Address > address ) {
346+ this .address = address ;
347+ return this ;
348+ }
349+
350+ public Builder address (Address address ) {
351+ this .address = Optional .ofNullable (address );
352+ return this ;
353+ }
354+
330355 @ JsonSetter (value = "tags" , nulls = Nulls .SKIP )
331356 public Builder tags (Optional <List <Tag >> tags ) {
332357 this .tags = tags ;
@@ -349,6 +374,7 @@ public SwiftDetails build() {
349374 bankAddress ,
350375 emailId ,
351376 specialInstructions ,
377+ address ,
352378 tags ,
353379 additionalProperties );
354380 }
0 commit comments