Skip to content

Commit

Permalink
Merge pull request #479 from gilv93/add_card_network_preference
Browse files Browse the repository at this point in the history
Add card_network_preference field
  • Loading branch information
douglasmiller authored Mar 19, 2024
2 parents 404c8d5 + aef7bc1 commit a8d44fc
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/main/java/com/ning/billing/recurly/model/BillingInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ public class BillingInfo extends RecurlyObject {
@XmlElement(name = "number")
private String number;

@XmlElement(name = "card_network_preference")
private String cardNetworkPreference;

@XmlElement(name = "routing_number")
private String routingNumber;

Expand Down Expand Up @@ -388,6 +391,14 @@ public void setLastFour(final Object lastFour) {
this.lastFour = stringOrNull(lastFour);
}

public String getCardNetworkPreference() {
return cardNetworkPreference;
}

public void setCardNetworkPreference(final Object cardNetworkPreference) {
this.cardNetworkPreference = stringOrNull(cardNetworkPreference);
}

public String getRoutingNumber() {
return routingNumber;
}
Expand Down Expand Up @@ -625,6 +636,7 @@ public String toString() {
sb.append(", month=").append(month);
sb.append(", firstSix='").append(firstSix).append('\'');
sb.append(", lastFour='").append(lastFour).append('\'');
sb.append(", cardNetworkPreference='").append(cardNetworkPreference).append('\'');
sb.append(", routingNumber='").append(routingNumber).append('\'');
sb.append(", geoCode='").append(geoCode).append('\'');
sb.append(", updatedAt='").append(updatedAt).append('\'');
Expand Down Expand Up @@ -703,6 +715,9 @@ public boolean equals(final Object o) {
if (lastFour != null ? !lastFour.equals(that.lastFour) : that.lastFour != null) {
return false;
}
if (cardNetworkPreference != null ? !cardNetworkPreference.equals(that.cardNetworkPreference) : that.cardNetworkPreference != null) {
return false;
}
if (routingNumber != null ? !routingNumber.equals(that.routingNumber) : that.routingNumber != null) {
return false;
}
Expand Down Expand Up @@ -827,6 +842,7 @@ public int hashCode() {
firstSix,
lastFour,
number,
cardNetworkPreference,
routingNumber,
accountNumber,
updatedAt,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ public void testSerialization() throws Exception {
billingInfo.setPrimaryPaymentMethod(true);
billingInfo.setBackupPaymentMethod(false);
billingInfo.setExternalHppType("ideal");
billingInfo.setCardNetworkPreference("Cartes Bancaires");

final GatewayAttributes gatewayAttributes = new GatewayAttributes();
gatewayAttributes.setAccountReference(randomString());
Expand Down

0 comments on commit a8d44fc

Please sign in to comment.