Skip to content

Commit 23dd53b

Browse files
Merge 472ca48 into 5fe92c1
2 parents 5fe92c1 + 472ca48 commit 23dd53b

File tree

8 files changed

+19
-478
lines changed

8 files changed

+19
-478
lines changed

src/main/java/com/adyen/model/acswebhooks/JSON.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.adyen.model.acswebhooks;
22

33
import com.adyen.serializer.ByteArraySerializer;
4+
import com.adyen.serializer.ByteArrayDeserializer;
45
import com.fasterxml.jackson.annotation.*;
56
import com.fasterxml.jackson.databind.*;
67
import com.fasterxml.jackson.databind.json.JsonMapper;
@@ -33,6 +34,7 @@ public JSON() {
3334
// Custom ByteSerializer
3435
SimpleModule simpleModule = new SimpleModule();
3536
simpleModule.addSerializer(byte[].class, new ByteArraySerializer());
37+
simpleModule.addDeserializer(byte[].class, new ByteArrayDeserializer());
3638
mapper.registerModule(simpleModule);
3739
}
3840

src/main/java/com/adyen/model/configurationwebhooks/AccountHolderCapability.java

Lines changed: 1 addition & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
import java.util.Arrays;
1717
import java.util.Map;
1818
import java.util.HashMap;
19-
import com.adyen.model.configurationwebhooks.AccountSupportingEntityCapability;
2019
import com.adyen.model.configurationwebhooks.CapabilityProblem;
2120
import com.adyen.model.configurationwebhooks.CapabilitySettings;
2221
import com.fasterxml.jackson.annotation.JsonInclude;
@@ -44,7 +43,6 @@
4443
AccountHolderCapability.JSON_PROPERTY_REQUESTED,
4544
AccountHolderCapability.JSON_PROPERTY_REQUESTED_LEVEL,
4645
AccountHolderCapability.JSON_PROPERTY_REQUESTED_SETTINGS,
47-
AccountHolderCapability.JSON_PROPERTY_TRANSFER_INSTRUMENTS,
4846
AccountHolderCapability.JSON_PROPERTY_VERIFICATION_STATUS
4947
})
5048

@@ -151,9 +149,6 @@ public static RequestedLevelEnum fromValue(String value) {
151149
public static final String JSON_PROPERTY_REQUESTED_SETTINGS = "requestedSettings";
152150
private CapabilitySettings requestedSettings;
153151

154-
public static final String JSON_PROPERTY_TRANSFER_INSTRUMENTS = "transferInstruments";
155-
private List<AccountSupportingEntityCapability> transferInstruments = null;
156-
157152
/**
158153
* The status of the verification checks for the capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the &#x60;errors&#x60; array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability.
159154
*/
@@ -407,39 +402,6 @@ public void setRequestedSettings(CapabilitySettings requestedSettings) {
407402
}
408403

409404

410-
public AccountHolderCapability transferInstruments(List<AccountSupportingEntityCapability> transferInstruments) {
411-
this.transferInstruments = transferInstruments;
412-
return this;
413-
}
414-
415-
public AccountHolderCapability addTransferInstrumentsItem(AccountSupportingEntityCapability transferInstrumentsItem) {
416-
if (this.transferInstruments == null) {
417-
this.transferInstruments = new ArrayList<>();
418-
}
419-
this.transferInstruments.add(transferInstrumentsItem);
420-
return this;
421-
}
422-
423-
/**
424-
* Contains the status of the transfer instruments associated with this capability.
425-
* @return transferInstruments
426-
**/
427-
@ApiModelProperty(value = "Contains the status of the transfer instruments associated with this capability. ")
428-
@JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENTS)
429-
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
430-
431-
public List<AccountSupportingEntityCapability> getTransferInstruments() {
432-
return transferInstruments;
433-
}
434-
435-
436-
@JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENTS)
437-
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
438-
public void setTransferInstruments(List<AccountSupportingEntityCapability> transferInstruments) {
439-
this.transferInstruments = transferInstruments;
440-
}
441-
442-
443405
public AccountHolderCapability verificationStatus(VerificationStatusEnum verificationStatus) {
444406
this.verificationStatus = verificationStatus;
445407
return this;
@@ -485,13 +447,12 @@ public boolean equals(Object o) {
485447
Objects.equals(this.requested, accountHolderCapability.requested) &&
486448
Objects.equals(this.requestedLevel, accountHolderCapability.requestedLevel) &&
487449
Objects.equals(this.requestedSettings, accountHolderCapability.requestedSettings) &&
488-
Objects.equals(this.transferInstruments, accountHolderCapability.transferInstruments) &&
489450
Objects.equals(this.verificationStatus, accountHolderCapability.verificationStatus);
490451
}
491452

492453
@Override
493454
public int hashCode() {
494-
return Objects.hash(allowed, allowedLevel, allowedSettings, enabled, problems, requested, requestedLevel, requestedSettings, transferInstruments, verificationStatus);
455+
return Objects.hash(allowed, allowedLevel, allowedSettings, enabled, problems, requested, requestedLevel, requestedSettings, verificationStatus);
495456
}
496457

497458
@Override
@@ -506,7 +467,6 @@ public String toString() {
506467
sb.append(" requested: ").append(toIndentedString(requested)).append("\n");
507468
sb.append(" requestedLevel: ").append(toIndentedString(requestedLevel)).append("\n");
508469
sb.append(" requestedSettings: ").append(toIndentedString(requestedSettings)).append("\n");
509-
sb.append(" transferInstruments: ").append(toIndentedString(transferInstruments)).append("\n");
510470
sb.append(" verificationStatus: ").append(toIndentedString(verificationStatus)).append("\n");
511471
sb.append("}");
512472
return sb.toString();

0 commit comments

Comments
 (0)