diff --git a/src/main/java/com/stripe/model/Account.java b/src/main/java/com/stripe/model/Account.java index e645c2a3cf2..5c2cf1871ea 100644 --- a/src/main/java/com/stripe/model/Account.java +++ b/src/main/java/com/stripe/model/Account.java @@ -25,6 +25,15 @@ public class Account extends APIResource { String displayName; Verification verification; LegalEntity legalEntity; + Keys keys; + Map metadata; + String businessName; + String businessUrl; + String businessLogo; + String supportPhone; + String supportUrl; + String supportEmail; + Boolean managed; public String getId() { return id; @@ -78,6 +87,51 @@ public LegalEntity getLegalEntity() { return legalEntity; } + public Keys getKeys() + { + return keys; + } + + public Map getMetadata() + { + return metadata; + } + + public String getBusinessName() + { + return businessName; + } + + public String getBusinessUrl() + { + return businessUrl; + } + + public String getBusinessLogo() + { + return businessLogo; + } + + public String getSupportPhone() + { + return supportPhone; + } + + public String getSupportUrl() + { + return supportUrl; + } + + public String getSupportEmail() + { + return supportEmail; + } + + public Boolean getManaged() + { + return managed; + } + public static Account create(Map params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException { @@ -164,7 +218,16 @@ public boolean equals(Object o) { equals(timezone, account.timezone) && equals(displayName, account.displayName) && equals(verification, account.verification) && - equals(legalEntity, account.legalEntity); + equals(legalEntity, account.legalEntity) && + equals(keys, account.keys) && + equals(metadata, account.metadata) && + equals(businessName, account.businessName) && + equals(businessUrl, account.businessUrl) && + equals(businessLogo, account.businessLogo) && + equals(supportPhone, account.supportPhone) && + equals(supportUrl, account.supportUrl) && + equals(supportEmail, account.supportEmail) && + equals(managed, account.managed); } public static class Verification extends StripeObject { @@ -182,4 +245,19 @@ public Boolean getContacted() { return contacted; } } + + public static class Keys extends StripeObject { + String secret; + String publishable; + + public String getSecret() + { + return secret; + } + + public String getPublishable() + { + return publishable; + } + } } diff --git a/src/test/java/com/stripe/model/AccountTest.java b/src/test/java/com/stripe/model/AccountTest.java index 9071bb2ef66..74d8304511b 100644 --- a/src/test/java/com/stripe/model/AccountTest.java +++ b/src/test/java/com/stripe/model/AccountTest.java @@ -55,6 +55,7 @@ public void testDeserialize() throws StripeException, IOException { expected.country = "US"; expected.timezone = "US/Pacific"; expected.displayName = "Stripe.com"; + expected.businessName = "Stripe.com"; assertEquals(expected, acc); }