@@ -45,6 +45,8 @@ public final class WalletDetails {
4545
4646 private final Optional <String > dateOfBirth ;
4747
48+ private final Optional <String > transactionHash ;
49+
4850 private final Map <String , Object > additionalProperties ;
4951
5052 private WalletDetails (
@@ -60,6 +62,7 @@ private WalletDetails(
6062 Optional <Address > address ,
6163 Optional <CountryCode > countryOfNationality ,
6264 Optional <String > dateOfBirth ,
65+ Optional <String > transactionHash ,
6366 Map <String , Object > additionalProperties ) {
6467 this .walletType = walletType ;
6568 this .walletId = walletId ;
@@ -73,6 +76,7 @@ private WalletDetails(
7376 this .address = address ;
7477 this .countryOfNationality = countryOfNationality ;
7578 this .dateOfBirth = dateOfBirth ;
79+ this .transactionHash = transactionHash ;
7680 this .additionalProperties = additionalProperties ;
7781 }
7882
@@ -157,6 +161,14 @@ public Optional<String> getDateOfBirth() {
157161 return dateOfBirth ;
158162 }
159163
164+ /**
165+ * @return A hash is a cryptographic fingerprint that uniquely identifies a blockchain transaction on the network, whereas a transactionId is just an internal reference used by a wallet or platform to track the transaction in its own system.
166+ */
167+ @ JsonProperty ("transactionHash" )
168+ public Optional <String > getTransactionHash () {
169+ return transactionHash ;
170+ }
171+
160172 @ java .lang .Override
161173 public boolean equals (Object other ) {
162174 if (this == other ) return true ;
@@ -180,7 +192,8 @@ private boolean equalTo(WalletDetails other) {
180192 && network .equals (other .network )
181193 && address .equals (other .address )
182194 && countryOfNationality .equals (other .countryOfNationality )
183- && dateOfBirth .equals (other .dateOfBirth );
195+ && dateOfBirth .equals (other .dateOfBirth )
196+ && transactionHash .equals (other .transactionHash );
184197 }
185198
186199 @ java .lang .Override
@@ -197,7 +210,8 @@ public int hashCode() {
197210 this .network ,
198211 this .address ,
199212 this .countryOfNationality ,
200- this .dateOfBirth );
213+ this .dateOfBirth ,
214+ this .transactionHash );
201215 }
202216
203217 @ java .lang .Override
@@ -235,6 +249,8 @@ public static final class Builder {
235249
236250 private Optional <String > dateOfBirth = Optional .empty ();
237251
252+ private Optional <String > transactionHash = Optional .empty ();
253+
238254 @ JsonAnySetter
239255 private Map <String , Object > additionalProperties = new HashMap <>();
240256
@@ -253,6 +269,7 @@ public Builder from(WalletDetails other) {
253269 address (other .getAddress ());
254270 countryOfNationality (other .getCountryOfNationality ());
255271 dateOfBirth (other .getDateOfBirth ());
272+ transactionHash (other .getTransactionHash ());
256273 return this ;
257274 }
258275
@@ -388,6 +405,17 @@ public Builder dateOfBirth(String dateOfBirth) {
388405 return this ;
389406 }
390407
408+ @ JsonSetter (value = "transactionHash" , nulls = Nulls .SKIP )
409+ public Builder transactionHash (Optional <String > transactionHash ) {
410+ this .transactionHash = transactionHash ;
411+ return this ;
412+ }
413+
414+ public Builder transactionHash (String transactionHash ) {
415+ this .transactionHash = Optional .ofNullable (transactionHash );
416+ return this ;
417+ }
418+
391419 public WalletDetails build () {
392420 return new WalletDetails (
393421 walletType ,
@@ -402,6 +430,7 @@ public WalletDetails build() {
402430 address ,
403431 countryOfNationality ,
404432 dateOfBirth ,
433+ transactionHash ,
405434 additionalProperties );
406435 }
407436 }
0 commit comments