Skip to content

Commit b377380

Browse files
authored
Merge pull request #580 from stripe/ob-update-account-attrs
Update attributes for Account and LegalEntity
2 parents e0e4204 + 4db16e9 commit b377380

File tree

2 files changed

+54
-15
lines changed

2 files changed

+54
-15
lines changed

src/main/java/com/stripe/model/Account.java

+18-9
Original file line numberDiff line numberDiff line change
@@ -27,28 +27,38 @@ public class Account extends ApiResource implements HasId, MetadataStore<Account
2727
Boolean debitNegativeBalances;
2828
DeclineChargeOn declineChargeOn;
2929
String defaultCurrency;
30+
Boolean deleted;
3031
Boolean detailsSubmitted;
3132
String displayName;
32-
LoginLinkCollection loginLinks;
3333
String email;
3434
ExternalAccountCollection externalAccounts;
3535
Keys keys;
3636
LegalEntity legalEntity;
37+
LoginLinkCollection loginLinks;
3738
@Getter(onMethod = @__({@Override})) Map<String, String> metadata;
38-
Boolean payoutsEnabled;
3939
PayoutSchedule payoutSchedule;
40+
String payoutStatementDescriptor;
41+
Boolean payoutsEnabled;
4042
String productDescription;
4143
String statementDescriptor;
4244
String supportEmail;
4345
String supportPhone;
4446
String supportUrl;
4547
String timezone;
4648
TosAcceptance tosAcceptance;
47-
TransferSchedule transferSchedule;
4849
Boolean transfersEnabled;
4950
String type;
5051
Verification verification;
51-
Boolean deleted;
52+
53+
/**
54+
* The {@code currencies_supported} attribute.
55+
*
56+
* @deprecated Prefer using the {@link CountrySpec#getSupportedPaymentCurrencies()} method
57+
* instead.
58+
* @see <a href="https://stripe.com/docs/upgrades#2016-03-07">API version 2016-03-07</a>
59+
*/
60+
@Deprecated
61+
List<String> currenciesSupported;
5262

5363
/**
5464
* The {@code managed} attribute.
@@ -60,14 +70,13 @@ public class Account extends ApiResource implements HasId, MetadataStore<Account
6070
Boolean managed;
6171

6272
/**
63-
* The {@code currencies_supported} attribute.
73+
* The {@code transfer_schedule} attribute.
6474
*
65-
* @deprecated Prefer using the {@link CountrySpec#getSupportedPaymentCurrencies()} method
66-
* instead.
67-
* @see <a href="https://stripe.com/docs/upgrades#2016-03-07">API version 2016-03-07</a>
75+
* @deprecated Prefer using the {@link #payoutSchedule} attribute instead.
76+
* @see <a href="https://stripe.com/docs/upgrades#2017-04-06">API version 2017-04-06</a>
6877
*/
6978
@Deprecated
70-
List<String> currenciesSupported;
79+
TransferSchedule transferSchedule;
7180

7281
// <editor-fold desc="create">
7382
/**

src/main/java/com/stripe/model/LegalEntity.java

+36-6
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,29 @@
1414
public class LegalEntity extends StripeObject {
1515
List<Owner> additionalOwners;
1616
Address address;
17+
JapanAddress addressKana;
18+
JapanAddress addressKanji;
1719
String businessName;
20+
String businessNameKana;
21+
String businessNameKanji;
1822
Boolean businessTaxIdProvided;
23+
Boolean businessVatIdProvided;
1924
DateOfBirth dob;
2025
String firstName;
26+
String firstNameKana;
27+
String firstNameKanji;
28+
String gender;
2129
String lastName;
30+
String lastNameKana;
31+
String lastNameKanji;
32+
String maidenName;
2233
Address personalAddress;
34+
JapanAddress personalAddressKana;
35+
JapanAddress personalAddressKanji;
2336
Boolean personalIdNumberProvided;
37+
String phoneNumber;
2438
@SerializedName("ssn_last_4_provided") Boolean ssnLast4Provided;
39+
String taxIdRegistrar;
2540
String type;
2641
Verification verification;
2742

@@ -37,12 +52,14 @@ public static class DateOfBirth extends StripeObject {
3752
@Getter
3853
@Setter
3954
@EqualsAndHashCode(callSuper = false)
40-
public static class Verification extends StripeObject {
41-
String details;
42-
String detailsCode;
43-
String document;
44-
String documentBack;
45-
String status;
55+
public static class JapanAddress extends StripeObject {
56+
String city;
57+
String country;
58+
String line1;
59+
String line2;
60+
String postalCode;
61+
String state;
62+
String town;
4663
}
4764

4865
@Getter
@@ -53,6 +70,19 @@ public static class Owner extends StripeObject {
5370
DateOfBirth dob;
5471
String firstName;
5572
String lastName;
73+
String maidenName;
74+
Boolean personalIdNumberProvided;
5675
Verification verification;
5776
}
77+
78+
@Getter
79+
@Setter
80+
@EqualsAndHashCode(callSuper = false)
81+
public static class Verification extends StripeObject {
82+
String details;
83+
String detailsCode;
84+
String document;
85+
String documentBack;
86+
String status;
87+
}
5888
}

0 commit comments

Comments
 (0)