Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,14 @@ public class DefaultPaymentMethodDetails implements PaymentMethodDetails {
private String recurringDetailReference;
@SerializedName("storeDetails")
private Boolean storeDetails;
/**
* @deprecated This field is deprecated and new field added {@link DefaultPaymentMethodDetails#issuer } which is more generic for other payment methods.
*/
@Deprecated
@SerializedName("idealIssuer")
private String idealIssuer;
@SerializedName("issuer")
private String issuer;
@SerializedName("sepa.ownerName")
private String sepaOwnerName;
@SerializedName("sepa.ibanNumber")
Expand Down Expand Up @@ -245,10 +251,16 @@ public DefaultPaymentMethodDetails storeDetails(Boolean storeDetails) {
return this;
}

/**
* @deprecated This field is deprecated and new field added {@link DefaultPaymentMethodDetails#issuer } which is more generic for other payment methods.
*/
public String getIdealIssuer() {
return idealIssuer;
}

/**
* @deprecated This field is deprecated and new field added {@link DefaultPaymentMethodDetails#issuer } which is more generic for other payment methods.
*/
public void setIdealIssuer(String idealIssuer) {
this.idealIssuer = idealIssuer;
}
Expand All @@ -258,6 +270,19 @@ public DefaultPaymentMethodDetails idealIssuer(String idealIssuer) {
return this;
}

public String getIssuer() {
return issuer;
}

public void setIssuer(String issuer) {
this.issuer = issuer;
}

public DefaultPaymentMethodDetails issuer(String issuer) {
this.issuer = issuer;
return this;
}

public String getSepaOwnerName() {
return sepaOwnerName;
}
Expand Down Expand Up @@ -287,38 +312,41 @@ public boolean equals(Object o) {
&& Objects.equals(number, that.number)
&& Objects.equals(expiryMonth, that.expiryMonth)
&& Objects.equals(expiryYear, that.expiryYear)
&& Objects.equals(holderName, that.holderName)
&& Objects.equals(holderName,
that.holderName)
&& Objects.equals(cvc, that.cvc)
&& Objects.equals(installmentConfigurationKey, that.installmentConfigurationKey)
&& Objects.equals(personalDetails, that.personalDetails)
&& Objects.equals(personalDetails,
that.personalDetails)
&& Objects.equals(encryptedCardNumber, that.encryptedCardNumber)
&& Objects.equals(encryptedExpiryMonth, that.encryptedExpiryMonth)
&& Objects.equals(encryptedExpiryYear, that.encryptedExpiryYear)
&& Objects.equals(encryptedSecurityCode, that.encryptedSecurityCode)
&& Objects.equals(recurringDetailReference, that.recurringDetailReference)
&& Objects.equals(storeDetails, that.storeDetails)
&& Objects.equals(idealIssuer, that.idealIssuer)
&& Objects.equals(issuer, that.issuer)
&& Objects.equals(sepaIbanNumber, that.sepaIbanNumber)
&& Objects.equals(sepaOwnerName, that.sepaOwnerName);
}

@Override
public int hashCode() {
return Objects.hash(type,
number,
expiryMonth,
expiryYear,
holderName,
cvc,
installmentConfigurationKey,
personalDetails,
encryptedCardNumber,
encryptedExpiryMonth,
encryptedExpiryYear,
encryptedSecurityCode,
recurringDetailReference,
storeDetails,
idealIssuer);
number,
expiryMonth,
expiryYear,
holderName,
cvc,
installmentConfigurationKey,
personalDetails,
encryptedCardNumber,
encryptedExpiryMonth,
encryptedExpiryYear,
encryptedSecurityCode,
recurringDetailReference,
storeDetails,
idealIssuer,
issuer);
}

@Override
Expand Down Expand Up @@ -354,6 +382,8 @@ public String toString() {
+ storeDetails
+ ", idealIssuer="
+ idealIssuer
+ ", issuer="
+ issuer
+ '}';
}
}
Expand Down