Skip to content

Commit 9247836

Browse files
committed
Update attributes for Account and LegalEntity
1 parent e0e4204 commit 9247836

File tree

2 files changed

+57
-15
lines changed

2 files changed

+57
-15
lines changed

Diff for: src/main/java/com/stripe/model/Account.java

+22-9
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
public class Account extends ApiResource implements HasId, MetadataStore<Account> {
1818
@Getter(onMethod = @__({@Override})) String id;
1919
String object;
20+
String applicationIcon;
21+
String applicationLogo;
22+
String applicationName;
23+
String applicationUrl;
2024
String businessLogo;
2125
String businessName;
2226
String businessPrimaryColor;
@@ -27,28 +31,38 @@ public class Account extends ApiResource implements HasId, MetadataStore<Account
2731
Boolean debitNegativeBalances;
2832
DeclineChargeOn declineChargeOn;
2933
String defaultCurrency;
34+
Boolean deleted;
3035
Boolean detailsSubmitted;
3136
String displayName;
32-
LoginLinkCollection loginLinks;
3337
String email;
3438
ExternalAccountCollection externalAccounts;
3539
Keys keys;
3640
LegalEntity legalEntity;
41+
LoginLinkCollection loginLinks;
3742
@Getter(onMethod = @__({@Override})) Map<String, String> metadata;
38-
Boolean payoutsEnabled;
3943
PayoutSchedule payoutSchedule;
44+
String payoutStatementDescriptor;
45+
Boolean payoutsEnabled;
4046
String productDescription;
4147
String statementDescriptor;
4248
String supportEmail;
4349
String supportPhone;
4450
String supportUrl;
4551
String timezone;
4652
TosAcceptance tosAcceptance;
47-
TransferSchedule transferSchedule;
4853
Boolean transfersEnabled;
4954
String type;
5055
Verification verification;
51-
Boolean deleted;
56+
57+
/**
58+
* The {@code currencies_supported} attribute.
59+
*
60+
* @deprecated Prefer using the {@link CountrySpec#getSupportedPaymentCurrencies()} method
61+
* instead.
62+
* @see <a href="https://stripe.com/docs/upgrades#2016-03-07">API version 2016-03-07</a>
63+
*/
64+
@Deprecated
65+
List<String> currenciesSupported;
5266

5367
/**
5468
* The {@code managed} attribute.
@@ -60,14 +74,13 @@ public class Account extends ApiResource implements HasId, MetadataStore<Account
6074
Boolean managed;
6175

6276
/**
63-
* The {@code currencies_supported} attribute.
77+
* The {@code transfer_schedule} attribute.
6478
*
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>
79+
* @deprecated Prefer using the {@link #payoutSchedule} attribute instead.
80+
* @see <a href="https://stripe.com/docs/upgrades#2017-04-06">API version 2017-04-06</a>
6881
*/
6982
@Deprecated
70-
List<String> currenciesSupported;
83+
TransferSchedule transferSchedule;
7184

7285
// <editor-fold desc="create">
7386
/**

Diff for: src/main/java/com/stripe/model/LegalEntity.java

+35-6
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,28 @@
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;
2437
@SerializedName("ssn_last_4_provided") Boolean ssnLast4Provided;
38+
String taxIdRegistrar;
2539
String type;
2640
Verification verification;
2741

@@ -37,12 +51,14 @@ public static class DateOfBirth extends StripeObject {
3751
@Getter
3852
@Setter
3953
@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;
54+
public static class JapanAddress extends StripeObject {
55+
String city;
56+
String country;
57+
String line1;
58+
String line2;
59+
String postalCode;
60+
String state;
61+
String town;
4662
}
4763

4864
@Getter
@@ -53,6 +69,19 @@ public static class Owner extends StripeObject {
5369
DateOfBirth dob;
5470
String firstName;
5571
String lastName;
72+
String maidenName;
73+
Boolean personalIdNumberProvided;
5674
Verification verification;
5775
}
76+
77+
@Getter
78+
@Setter
79+
@EqualsAndHashCode(callSuper = false)
80+
public static class Verification extends StripeObject {
81+
String details;
82+
String detailsCode;
83+
String document;
84+
String documentBack;
85+
String status;
86+
}
5887
}

0 commit comments

Comments
 (0)