@@ -10,6 +10,7 @@ public final class CreditCard extends AbstractModel {
1010 private final Issuer issuer ;
1111 private final String brand ;
1212 private final String country ;
13+ private final Boolean isBusiness ;
1314 private final Boolean isIssuedInBillingAddressCountry ;
1415 private final Boolean isPrepaid ;
1516 private final Boolean isVirtual ;
@@ -29,9 +30,26 @@ public CreditCard(
2930 issuer , type );
3031 }
3132
33+ // This method is for backwards compatibility. We should remove it when we
34+ // do a major release.
35+ public CreditCard (
36+ String brand ,
37+ String country ,
38+ Boolean isIssuedInBillingAddressCountry ,
39+ Boolean isPrepaid ,
40+ Boolean isVirtual ,
41+ Issuer issuer ,
42+ String type
43+ ) {
44+ this (brand , country , false , isIssuedInBillingAddressCountry , isPrepaid ,
45+ isVirtual , issuer , type );
46+ }
47+
48+
3249 public CreditCard (
3350 @ JsonProperty ("brand" ) String brand ,
3451 @ JsonProperty ("country" ) String country ,
52+ @ JsonProperty ("is_business" ) Boolean isBusiness ,
3553 @ JsonProperty ("is_issued_in_billing_address_country" ) Boolean isIssuedInBillingAddressCountry ,
3654 @ JsonProperty ("is_prepaid" ) Boolean isPrepaid ,
3755 @ JsonProperty ("is_virtual" ) Boolean isVirtual ,
@@ -40,6 +58,7 @@ public CreditCard(
4058 ) {
4159 this .brand = brand ;
4260 this .country = country ;
61+ this .isBusiness = isBusiness ;
4362 this .isIssuedInBillingAddressCountry = isIssuedInBillingAddressCountry ;
4463 this .isPrepaid = isPrepaid ;
4564 this .isVirtual = isVirtual ;
@@ -77,6 +96,15 @@ public String getCountry() {
7796 return country ;
7897 }
7998
99+ /**
100+ * @return True if the card is a business card. False if not a business
101+ * card. If the IIN was not provided or is unknown, null will be returned.
102+ */
103+ @ JsonProperty ("is_business" )
104+ public Boolean isBusiness () {
105+ return isBusiness ;
106+ }
107+
80108 /**
81109 * @return True if the country of the billing address matches the country
82110 * of the majority of customers using that IIN. In cases where the
0 commit comments