Skip to content

Commit ea65596

Browse files
Merge pull request #2091 from stripe/latest-codegen-private-preview
Update generated code for private-preview
2 parents a06f892 + 455f91b commit ea65596

File tree

86 files changed

+9281
-904
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+9281
-904
lines changed

API_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
577fcb57736b925392ea563c0284df9002c75ac9
1+
847d2ef0de9626eec25973097d37b61f67e343ee

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2100
1+
v2104

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ tasks.withType(JavaCompile) {
2929
}
3030

3131
options.fork = true
32-
options.forkOptions.jvmArgs += ['-Xms512M', '-Xmx1g']
32+
options.forkOptions.jvmArgs += ['-Xms512M', '-Xmx4g']
3333

3434
options.release = project.targetCompatibility.majorVersion as Integer
3535

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

Lines changed: 77 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1640,6 +1640,13 @@ public static class Company extends StripeObject {
16401640
@SerializedName("registration_date")
16411641
RegistrationDate registrationDate;
16421642

1643+
/**
1644+
* This hash is used to attest that the representative is authorized to act as the
1645+
* representative of their legal entity.
1646+
*/
1647+
@SerializedName("representative_declaration")
1648+
RepresentativeDeclaration representativeDeclaration;
1649+
16431650
/**
16441651
* The category identifying the legal structure of the company or legal entity. Also available
16451652
* for accounts where <a
@@ -1825,6 +1832,30 @@ public static class RegistrationDate extends StripeObject {
18251832
Long year;
18261833
}
18271834

1835+
/**
1836+
* For more details about RepresentativeDeclaration, please refer to the <a
1837+
* href="https://docs.stripe.com/api">API Reference.</a>
1838+
*/
1839+
@Getter
1840+
@Setter
1841+
@EqualsAndHashCode(callSuper = false)
1842+
public static class RepresentativeDeclaration extends StripeObject {
1843+
/** The Unix timestamp marking when the representative declaration attestation was made. */
1844+
@SerializedName("date")
1845+
Long date;
1846+
1847+
/** The IP address from which the representative declaration attestation was made. */
1848+
@SerializedName("ip")
1849+
String ip;
1850+
1851+
/**
1852+
* The user-agent string from the browser where the representative declaration attestation was
1853+
* made.
1854+
*/
1855+
@SerializedName("user_agent")
1856+
String userAgent;
1857+
}
1858+
18281859
/**
18291860
* For more details about Verification, please refer to the <a
18301861
* href="https://docs.stripe.com/api">API Reference.</a>
@@ -2208,29 +2239,29 @@ public static class Errors extends StripeObject {
22082239
* invalid_url_website_incomplete_terms_and_conditions}, {@code
22092240
* invalid_url_website_incomplete_under_construction}, {@code invalid_url_website_other},
22102241
* {@code invalid_value_other}, {@code unsupported_business_type}, {@code
2211-
* verification_directors_mismatch}, {@code verification_document_address_mismatch}, {@code
2212-
* verification_document_address_missing}, {@code verification_document_corrupt}, {@code
2213-
* verification_document_country_not_supported}, {@code
2214-
* verification_document_directors_mismatch}, {@code verification_document_dob_mismatch},
2215-
* {@code verification_document_duplicate_type}, {@code verification_document_expired}, {@code
2216-
* verification_document_failed_copy}, {@code verification_document_failed_greyscale}, {@code
2217-
* verification_document_failed_other}, {@code verification_document_failed_test_mode}, {@code
2218-
* verification_document_fraudulent}, {@code verification_document_id_number_mismatch}, {@code
2219-
* verification_document_id_number_missing}, {@code verification_document_incomplete}, {@code
2220-
* verification_document_invalid}, {@code verification_document_issue_or_expiry_date_missing},
2221-
* {@code verification_document_manipulated}, {@code verification_document_missing_back},
2222-
* {@code verification_document_missing_front}, {@code verification_document_name_mismatch},
2223-
* {@code verification_document_name_missing}, {@code
2224-
* verification_document_nationality_mismatch}, {@code verification_document_not_readable},
2225-
* {@code verification_document_not_signed}, {@code verification_document_not_uploaded},
2226-
* {@code verification_document_photo_mismatch}, {@code verification_document_too_large},
2227-
* {@code verification_document_type_not_supported}, {@code
2228-
* verification_extraneous_directors}, {@code verification_failed_address_match}, {@code
2229-
* verification_failed_authorizer_authority}, {@code verification_failed_business_iec_number},
2230-
* {@code verification_failed_document_match}, {@code verification_failed_id_number_match},
2231-
* {@code verification_failed_keyed_identity}, {@code verification_failed_keyed_match}, {@code
2232-
* verification_failed_name_match}, {@code verification_failed_other}, {@code
2233-
* verification_failed_representative_authority}, {@code
2242+
* verification_data_not_found}, {@code verification_directors_mismatch}, {@code
2243+
* verification_document_address_mismatch}, {@code verification_document_address_missing},
2244+
* {@code verification_document_corrupt}, {@code verification_document_country_not_supported},
2245+
* {@code verification_document_directors_mismatch}, {@code
2246+
* verification_document_dob_mismatch}, {@code verification_document_duplicate_type}, {@code
2247+
* verification_document_expired}, {@code verification_document_failed_copy}, {@code
2248+
* verification_document_failed_greyscale}, {@code verification_document_failed_other}, {@code
2249+
* verification_document_failed_test_mode}, {@code verification_document_fraudulent}, {@code
2250+
* verification_document_id_number_mismatch}, {@code verification_document_id_number_missing},
2251+
* {@code verification_document_incomplete}, {@code verification_document_invalid}, {@code
2252+
* verification_document_issue_or_expiry_date_missing}, {@code
2253+
* verification_document_manipulated}, {@code verification_document_missing_back}, {@code
2254+
* verification_document_missing_front}, {@code verification_document_name_mismatch}, {@code
2255+
* verification_document_name_missing}, {@code verification_document_nationality_mismatch},
2256+
* {@code verification_document_not_readable}, {@code verification_document_not_signed},
2257+
* {@code verification_document_not_uploaded}, {@code verification_document_photo_mismatch},
2258+
* {@code verification_document_too_large}, {@code verification_document_type_not_supported},
2259+
* {@code verification_extraneous_directors}, {@code verification_failed_address_match},
2260+
* {@code verification_failed_authorizer_authority}, {@code
2261+
* verification_failed_business_iec_number}, {@code verification_failed_document_match},
2262+
* {@code verification_failed_id_number_match}, {@code verification_failed_keyed_identity},
2263+
* {@code verification_failed_keyed_match}, {@code verification_failed_name_match}, {@code
2264+
* verification_failed_other}, {@code verification_failed_representative_authority}, {@code
22342265
* verification_failed_residential_address}, {@code verification_failed_tax_id_match}, {@code
22352266
* verification_failed_tax_id_not_issued}, {@code
22362267
* verification_legal_entity_structure_mismatch}, {@code verification_missing_directors},
@@ -2411,29 +2442,29 @@ public static class Errors extends StripeObject {
24112442
* invalid_url_website_incomplete_terms_and_conditions}, {@code
24122443
* invalid_url_website_incomplete_under_construction}, {@code invalid_url_website_other},
24132444
* {@code invalid_value_other}, {@code unsupported_business_type}, {@code
2414-
* verification_directors_mismatch}, {@code verification_document_address_mismatch}, {@code
2415-
* verification_document_address_missing}, {@code verification_document_corrupt}, {@code
2416-
* verification_document_country_not_supported}, {@code
2417-
* verification_document_directors_mismatch}, {@code verification_document_dob_mismatch},
2418-
* {@code verification_document_duplicate_type}, {@code verification_document_expired}, {@code
2419-
* verification_document_failed_copy}, {@code verification_document_failed_greyscale}, {@code
2420-
* verification_document_failed_other}, {@code verification_document_failed_test_mode}, {@code
2421-
* verification_document_fraudulent}, {@code verification_document_id_number_mismatch}, {@code
2422-
* verification_document_id_number_missing}, {@code verification_document_incomplete}, {@code
2423-
* verification_document_invalid}, {@code verification_document_issue_or_expiry_date_missing},
2424-
* {@code verification_document_manipulated}, {@code verification_document_missing_back},
2425-
* {@code verification_document_missing_front}, {@code verification_document_name_mismatch},
2426-
* {@code verification_document_name_missing}, {@code
2427-
* verification_document_nationality_mismatch}, {@code verification_document_not_readable},
2428-
* {@code verification_document_not_signed}, {@code verification_document_not_uploaded},
2429-
* {@code verification_document_photo_mismatch}, {@code verification_document_too_large},
2430-
* {@code verification_document_type_not_supported}, {@code
2431-
* verification_extraneous_directors}, {@code verification_failed_address_match}, {@code
2432-
* verification_failed_authorizer_authority}, {@code verification_failed_business_iec_number},
2433-
* {@code verification_failed_document_match}, {@code verification_failed_id_number_match},
2434-
* {@code verification_failed_keyed_identity}, {@code verification_failed_keyed_match}, {@code
2435-
* verification_failed_name_match}, {@code verification_failed_other}, {@code
2436-
* verification_failed_representative_authority}, {@code
2445+
* verification_data_not_found}, {@code verification_directors_mismatch}, {@code
2446+
* verification_document_address_mismatch}, {@code verification_document_address_missing},
2447+
* {@code verification_document_corrupt}, {@code verification_document_country_not_supported},
2448+
* {@code verification_document_directors_mismatch}, {@code
2449+
* verification_document_dob_mismatch}, {@code verification_document_duplicate_type}, {@code
2450+
* verification_document_expired}, {@code verification_document_failed_copy}, {@code
2451+
* verification_document_failed_greyscale}, {@code verification_document_failed_other}, {@code
2452+
* verification_document_failed_test_mode}, {@code verification_document_fraudulent}, {@code
2453+
* verification_document_id_number_mismatch}, {@code verification_document_id_number_missing},
2454+
* {@code verification_document_incomplete}, {@code verification_document_invalid}, {@code
2455+
* verification_document_issue_or_expiry_date_missing}, {@code
2456+
* verification_document_manipulated}, {@code verification_document_missing_back}, {@code
2457+
* verification_document_missing_front}, {@code verification_document_name_mismatch}, {@code
2458+
* verification_document_name_missing}, {@code verification_document_nationality_mismatch},
2459+
* {@code verification_document_not_readable}, {@code verification_document_not_signed},
2460+
* {@code verification_document_not_uploaded}, {@code verification_document_photo_mismatch},
2461+
* {@code verification_document_too_large}, {@code verification_document_type_not_supported},
2462+
* {@code verification_extraneous_directors}, {@code verification_failed_address_match},
2463+
* {@code verification_failed_authorizer_authority}, {@code
2464+
* verification_failed_business_iec_number}, {@code verification_failed_document_match},
2465+
* {@code verification_failed_id_number_match}, {@code verification_failed_keyed_identity},
2466+
* {@code verification_failed_keyed_match}, {@code verification_failed_name_match}, {@code
2467+
* verification_failed_other}, {@code verification_failed_representative_authority}, {@code
24372468
* verification_failed_residential_address}, {@code verification_failed_tax_id_match}, {@code
24382469
* verification_failed_tax_id_not_issued}, {@code
24392470
* verification_legal_entity_structure_mismatch}, {@code verification_missing_directors},

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,10 +318,14 @@ public static class FeeSource extends StripeObject {
318318
@SerializedName("payout")
319319
String payout;
320320

321+
/** Transfer ID that created this application fee. */
322+
@SerializedName("transfer")
323+
String transfer;
324+
321325
/**
322326
* Type of object that created the application fee.
323327
*
324-
* <p>One of {@code charge}, or {@code payout}.
328+
* <p>One of {@code charge}, {@code payout}, or {@code transfer}.
325329
*/
326330
@SerializedName("type")
327331
String type;

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

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ public class Balance extends ApiResource {
8181
@SerializedName("refund_and_dispute_prefunding")
8282
RefundAndDisputePrefunding refundAndDisputePrefunding;
8383

84+
@SerializedName("transit_balances_total")
85+
TransitBalancesTotal transitBalancesTotal;
86+
8487
/**
8588
* Retrieves the current account balance, based on the authentication that was used to make the
8689
* request. For a sample request, see <a
@@ -597,10 +600,136 @@ public static class SourceTypes extends StripeObject {
597600
}
598601
}
599602

603+
/**
604+
* For more details about TransitBalancesTotal, please refer to the <a
605+
* href="https://docs.stripe.com/api">API Reference.</a>
606+
*/
607+
@Getter
608+
@Setter
609+
@EqualsAndHashCode(callSuper = false)
610+
public static class TransitBalancesTotal extends StripeObject {
611+
/** Funds that are available for use. */
612+
@SerializedName("available")
613+
List<Balance.TransitBalancesTotal.Available> available;
614+
615+
/** Funds that are pending. */
616+
@SerializedName("pending")
617+
List<Balance.TransitBalancesTotal.Pending> pending;
618+
619+
/**
620+
* For more details about Available, please refer to the <a
621+
* href="https://docs.stripe.com/api">API Reference.</a>
622+
*/
623+
@Getter
624+
@Setter
625+
@EqualsAndHashCode(callSuper = false)
626+
public static class Available extends StripeObject {
627+
/** Balance amount. */
628+
@SerializedName("amount")
629+
Long amount;
630+
631+
/**
632+
* Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency
633+
* code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported
634+
* currency</a>.
635+
*/
636+
@SerializedName("currency")
637+
String currency;
638+
639+
@SerializedName("source_types")
640+
SourceTypes sourceTypes;
641+
642+
/**
643+
* For more details about SourceTypes, please refer to the <a
644+
* href="https://docs.stripe.com/api">API Reference.</a>
645+
*/
646+
@Getter
647+
@Setter
648+
@EqualsAndHashCode(callSuper = false)
649+
public static class SourceTypes extends StripeObject {
650+
/**
651+
* Amount coming from <a href="https://docs.stripe.com/ach-deprecated">legacy US ACH
652+
* payments</a>.
653+
*/
654+
@SerializedName("bank_account")
655+
Long bankAccount;
656+
657+
/**
658+
* Amount coming from most payment methods, including cards as well as <a
659+
* href="https://docs.stripe.com/payments/bank-debits">non-legacy bank debits</a>.
660+
*/
661+
@SerializedName("card")
662+
Long card;
663+
664+
/**
665+
* Amount coming from <a href="https://docs.stripe.com/payments/fpx">FPX</a>, a Malaysian
666+
* payment method.
667+
*/
668+
@SerializedName("fpx")
669+
Long fpx;
670+
}
671+
}
672+
673+
/**
674+
* For more details about Pending, please refer to the <a href="https://docs.stripe.com/api">API
675+
* Reference.</a>
676+
*/
677+
@Getter
678+
@Setter
679+
@EqualsAndHashCode(callSuper = false)
680+
public static class Pending extends StripeObject {
681+
/** Balance amount. */
682+
@SerializedName("amount")
683+
Long amount;
684+
685+
/**
686+
* Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency
687+
* code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported
688+
* currency</a>.
689+
*/
690+
@SerializedName("currency")
691+
String currency;
692+
693+
@SerializedName("source_types")
694+
SourceTypes sourceTypes;
695+
696+
/**
697+
* For more details about SourceTypes, please refer to the <a
698+
* href="https://docs.stripe.com/api">API Reference.</a>
699+
*/
700+
@Getter
701+
@Setter
702+
@EqualsAndHashCode(callSuper = false)
703+
public static class SourceTypes extends StripeObject {
704+
/**
705+
* Amount coming from <a href="https://docs.stripe.com/ach-deprecated">legacy US ACH
706+
* payments</a>.
707+
*/
708+
@SerializedName("bank_account")
709+
Long bankAccount;
710+
711+
/**
712+
* Amount coming from most payment methods, including cards as well as <a
713+
* href="https://docs.stripe.com/payments/bank-debits">non-legacy bank debits</a>.
714+
*/
715+
@SerializedName("card")
716+
Long card;
717+
718+
/**
719+
* Amount coming from <a href="https://docs.stripe.com/payments/fpx">FPX</a>, a Malaysian
720+
* payment method.
721+
*/
722+
@SerializedName("fpx")
723+
Long fpx;
724+
}
725+
}
726+
}
727+
600728
@Override
601729
public void setResponseGetter(StripeResponseGetter responseGetter) {
602730
super.setResponseGetter(responseGetter);
603731
trySetResponseGetter(issuing, responseGetter);
604732
trySetResponseGetter(refundAndDisputePrefunding, responseGetter);
733+
trySetResponseGetter(transitBalancesTotal, responseGetter);
605734
}
606735
}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ public class BalanceTransaction extends ApiResource implements HasId {
4343
/**
4444
* The balance that this transaction impacts.
4545
*
46-
* <p>One of {@code issuing}, {@code payments}, or {@code refund_and_dispute_prefunding}.
46+
* <p>One of {@code issuing}, {@code payments}, {@code refund_and_dispute_prefunding}, or {@code
47+
* transit}.
4748
*/
4849
@SerializedName("balance_type")
4950
String balanceType;

0 commit comments

Comments
 (0)