Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion API_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
577fcb57736b925392ea563c0284df9002c75ac9
847d2ef0de9626eec25973097d37b61f67e343ee
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2100
v2104
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ tasks.withType(JavaCompile) {
}

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

options.release = project.targetCompatibility.majorVersion as Integer

Expand Down
123 changes: 77 additions & 46 deletions src/main/java/com/stripe/model/Account.java
Original file line number Diff line number Diff line change
Expand Up @@ -1640,6 +1640,13 @@ public static class Company extends StripeObject {
@SerializedName("registration_date")
RegistrationDate registrationDate;

/**
* This hash is used to attest that the representative is authorized to act as the
* representative of their legal entity.
*/
@SerializedName("representative_declaration")
RepresentativeDeclaration representativeDeclaration;

/**
* The category identifying the legal structure of the company or legal entity. Also available
* for accounts where <a
Expand Down Expand Up @@ -1825,6 +1832,30 @@ public static class RegistrationDate extends StripeObject {
Long year;
}

/**
* For more details about RepresentativeDeclaration, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class RepresentativeDeclaration extends StripeObject {
/** The Unix timestamp marking when the representative declaration attestation was made. */
@SerializedName("date")
Long date;

/** The IP address from which the representative declaration attestation was made. */
@SerializedName("ip")
String ip;

/**
* The user-agent string from the browser where the representative declaration attestation was
* made.
*/
@SerializedName("user_agent")
String userAgent;
}

/**
* For more details about Verification, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
Expand Down Expand Up @@ -2208,29 +2239,29 @@ public static class Errors extends StripeObject {
* invalid_url_website_incomplete_terms_and_conditions}, {@code
* invalid_url_website_incomplete_under_construction}, {@code invalid_url_website_other},
* {@code invalid_value_other}, {@code unsupported_business_type}, {@code
* verification_directors_mismatch}, {@code verification_document_address_mismatch}, {@code
* verification_document_address_missing}, {@code verification_document_corrupt}, {@code
* verification_document_country_not_supported}, {@code
* verification_document_directors_mismatch}, {@code verification_document_dob_mismatch},
* {@code verification_document_duplicate_type}, {@code verification_document_expired}, {@code
* verification_document_failed_copy}, {@code verification_document_failed_greyscale}, {@code
* verification_document_failed_other}, {@code verification_document_failed_test_mode}, {@code
* verification_document_fraudulent}, {@code verification_document_id_number_mismatch}, {@code
* verification_document_id_number_missing}, {@code verification_document_incomplete}, {@code
* verification_document_invalid}, {@code verification_document_issue_or_expiry_date_missing},
* {@code verification_document_manipulated}, {@code verification_document_missing_back},
* {@code verification_document_missing_front}, {@code verification_document_name_mismatch},
* {@code verification_document_name_missing}, {@code
* verification_document_nationality_mismatch}, {@code verification_document_not_readable},
* {@code verification_document_not_signed}, {@code verification_document_not_uploaded},
* {@code verification_document_photo_mismatch}, {@code verification_document_too_large},
* {@code verification_document_type_not_supported}, {@code
* verification_extraneous_directors}, {@code verification_failed_address_match}, {@code
* verification_failed_authorizer_authority}, {@code verification_failed_business_iec_number},
* {@code verification_failed_document_match}, {@code verification_failed_id_number_match},
* {@code verification_failed_keyed_identity}, {@code verification_failed_keyed_match}, {@code
* verification_failed_name_match}, {@code verification_failed_other}, {@code
* verification_failed_representative_authority}, {@code
* verification_data_not_found}, {@code verification_directors_mismatch}, {@code
* verification_document_address_mismatch}, {@code verification_document_address_missing},
* {@code verification_document_corrupt}, {@code verification_document_country_not_supported},
* {@code verification_document_directors_mismatch}, {@code
* verification_document_dob_mismatch}, {@code verification_document_duplicate_type}, {@code
* verification_document_expired}, {@code verification_document_failed_copy}, {@code
* verification_document_failed_greyscale}, {@code verification_document_failed_other}, {@code
* verification_document_failed_test_mode}, {@code verification_document_fraudulent}, {@code
* verification_document_id_number_mismatch}, {@code verification_document_id_number_missing},
* {@code verification_document_incomplete}, {@code verification_document_invalid}, {@code
* verification_document_issue_or_expiry_date_missing}, {@code
* verification_document_manipulated}, {@code verification_document_missing_back}, {@code
* verification_document_missing_front}, {@code verification_document_name_mismatch}, {@code
* verification_document_name_missing}, {@code verification_document_nationality_mismatch},
* {@code verification_document_not_readable}, {@code verification_document_not_signed},
* {@code verification_document_not_uploaded}, {@code verification_document_photo_mismatch},
* {@code verification_document_too_large}, {@code verification_document_type_not_supported},
* {@code verification_extraneous_directors}, {@code verification_failed_address_match},
* {@code verification_failed_authorizer_authority}, {@code
* verification_failed_business_iec_number}, {@code verification_failed_document_match},
* {@code verification_failed_id_number_match}, {@code verification_failed_keyed_identity},
* {@code verification_failed_keyed_match}, {@code verification_failed_name_match}, {@code
* verification_failed_other}, {@code verification_failed_representative_authority}, {@code
* verification_failed_residential_address}, {@code verification_failed_tax_id_match}, {@code
* verification_failed_tax_id_not_issued}, {@code
* verification_legal_entity_structure_mismatch}, {@code verification_missing_directors},
Expand Down Expand Up @@ -2411,29 +2442,29 @@ public static class Errors extends StripeObject {
* invalid_url_website_incomplete_terms_and_conditions}, {@code
* invalid_url_website_incomplete_under_construction}, {@code invalid_url_website_other},
* {@code invalid_value_other}, {@code unsupported_business_type}, {@code
* verification_directors_mismatch}, {@code verification_document_address_mismatch}, {@code
* verification_document_address_missing}, {@code verification_document_corrupt}, {@code
* verification_document_country_not_supported}, {@code
* verification_document_directors_mismatch}, {@code verification_document_dob_mismatch},
* {@code verification_document_duplicate_type}, {@code verification_document_expired}, {@code
* verification_document_failed_copy}, {@code verification_document_failed_greyscale}, {@code
* verification_document_failed_other}, {@code verification_document_failed_test_mode}, {@code
* verification_document_fraudulent}, {@code verification_document_id_number_mismatch}, {@code
* verification_document_id_number_missing}, {@code verification_document_incomplete}, {@code
* verification_document_invalid}, {@code verification_document_issue_or_expiry_date_missing},
* {@code verification_document_manipulated}, {@code verification_document_missing_back},
* {@code verification_document_missing_front}, {@code verification_document_name_mismatch},
* {@code verification_document_name_missing}, {@code
* verification_document_nationality_mismatch}, {@code verification_document_not_readable},
* {@code verification_document_not_signed}, {@code verification_document_not_uploaded},
* {@code verification_document_photo_mismatch}, {@code verification_document_too_large},
* {@code verification_document_type_not_supported}, {@code
* verification_extraneous_directors}, {@code verification_failed_address_match}, {@code
* verification_failed_authorizer_authority}, {@code verification_failed_business_iec_number},
* {@code verification_failed_document_match}, {@code verification_failed_id_number_match},
* {@code verification_failed_keyed_identity}, {@code verification_failed_keyed_match}, {@code
* verification_failed_name_match}, {@code verification_failed_other}, {@code
* verification_failed_representative_authority}, {@code
* verification_data_not_found}, {@code verification_directors_mismatch}, {@code
* verification_document_address_mismatch}, {@code verification_document_address_missing},
* {@code verification_document_corrupt}, {@code verification_document_country_not_supported},
* {@code verification_document_directors_mismatch}, {@code
* verification_document_dob_mismatch}, {@code verification_document_duplicate_type}, {@code
* verification_document_expired}, {@code verification_document_failed_copy}, {@code
* verification_document_failed_greyscale}, {@code verification_document_failed_other}, {@code
* verification_document_failed_test_mode}, {@code verification_document_fraudulent}, {@code
* verification_document_id_number_mismatch}, {@code verification_document_id_number_missing},
* {@code verification_document_incomplete}, {@code verification_document_invalid}, {@code
* verification_document_issue_or_expiry_date_missing}, {@code
* verification_document_manipulated}, {@code verification_document_missing_back}, {@code
* verification_document_missing_front}, {@code verification_document_name_mismatch}, {@code
* verification_document_name_missing}, {@code verification_document_nationality_mismatch},
* {@code verification_document_not_readable}, {@code verification_document_not_signed},
* {@code verification_document_not_uploaded}, {@code verification_document_photo_mismatch},
* {@code verification_document_too_large}, {@code verification_document_type_not_supported},
* {@code verification_extraneous_directors}, {@code verification_failed_address_match},
* {@code verification_failed_authorizer_authority}, {@code
* verification_failed_business_iec_number}, {@code verification_failed_document_match},
* {@code verification_failed_id_number_match}, {@code verification_failed_keyed_identity},
* {@code verification_failed_keyed_match}, {@code verification_failed_name_match}, {@code
* verification_failed_other}, {@code verification_failed_representative_authority}, {@code
* verification_failed_residential_address}, {@code verification_failed_tax_id_match}, {@code
* verification_failed_tax_id_not_issued}, {@code
* verification_legal_entity_structure_mismatch}, {@code verification_missing_directors},
Expand Down
6 changes: 5 additions & 1 deletion src/main/java/com/stripe/model/ApplicationFee.java
Original file line number Diff line number Diff line change
Expand Up @@ -318,10 +318,14 @@ public static class FeeSource extends StripeObject {
@SerializedName("payout")
String payout;

/** Transfer ID that created this application fee. */
@SerializedName("transfer")
String transfer;

/**
* Type of object that created the application fee.
*
* <p>One of {@code charge}, or {@code payout}.
* <p>One of {@code charge}, {@code payout}, or {@code transfer}.
*/
@SerializedName("type")
String type;
Expand Down
129 changes: 129 additions & 0 deletions src/main/java/com/stripe/model/Balance.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ public class Balance extends ApiResource {
@SerializedName("refund_and_dispute_prefunding")
RefundAndDisputePrefunding refundAndDisputePrefunding;

@SerializedName("transit_balances_total")
TransitBalancesTotal transitBalancesTotal;

/**
* Retrieves the current account balance, based on the authentication that was used to make the
* request. For a sample request, see <a
Expand Down Expand Up @@ -597,10 +600,136 @@ public static class SourceTypes extends StripeObject {
}
}

/**
* For more details about TransitBalancesTotal, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class TransitBalancesTotal extends StripeObject {
/** Funds that are available for use. */
@SerializedName("available")
List<Balance.TransitBalancesTotal.Available> available;

/** Funds that are pending. */
@SerializedName("pending")
List<Balance.TransitBalancesTotal.Pending> pending;

/**
* For more details about Available, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Available extends StripeObject {
/** Balance amount. */
@SerializedName("amount")
Long amount;

/**
* Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency
* code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported
* currency</a>.
*/
@SerializedName("currency")
String currency;

@SerializedName("source_types")
SourceTypes sourceTypes;

/**
* For more details about SourceTypes, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class SourceTypes extends StripeObject {
/**
* Amount coming from <a href="https://docs.stripe.com/ach-deprecated">legacy US ACH
* payments</a>.
*/
@SerializedName("bank_account")
Long bankAccount;

/**
* Amount coming from most payment methods, including cards as well as <a
* href="https://docs.stripe.com/payments/bank-debits">non-legacy bank debits</a>.
*/
@SerializedName("card")
Long card;

/**
* Amount coming from <a href="https://docs.stripe.com/payments/fpx">FPX</a>, a Malaysian
* payment method.
*/
@SerializedName("fpx")
Long fpx;
}
}

/**
* For more details about Pending, please refer to the <a href="https://docs.stripe.com/api">API
* Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Pending extends StripeObject {
/** Balance amount. */
@SerializedName("amount")
Long amount;

/**
* Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency
* code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported
* currency</a>.
*/
@SerializedName("currency")
String currency;

@SerializedName("source_types")
SourceTypes sourceTypes;

/**
* For more details about SourceTypes, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class SourceTypes extends StripeObject {
/**
* Amount coming from <a href="https://docs.stripe.com/ach-deprecated">legacy US ACH
* payments</a>.
*/
@SerializedName("bank_account")
Long bankAccount;

/**
* Amount coming from most payment methods, including cards as well as <a
* href="https://docs.stripe.com/payments/bank-debits">non-legacy bank debits</a>.
*/
@SerializedName("card")
Long card;

/**
* Amount coming from <a href="https://docs.stripe.com/payments/fpx">FPX</a>, a Malaysian
* payment method.
*/
@SerializedName("fpx")
Long fpx;
}
}
}

@Override
public void setResponseGetter(StripeResponseGetter responseGetter) {
super.setResponseGetter(responseGetter);
trySetResponseGetter(issuing, responseGetter);
trySetResponseGetter(refundAndDisputePrefunding, responseGetter);
trySetResponseGetter(transitBalancesTotal, responseGetter);
}
}
3 changes: 2 additions & 1 deletion src/main/java/com/stripe/model/BalanceTransaction.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ public class BalanceTransaction extends ApiResource implements HasId {
/**
* The balance that this transaction impacts.
*
* <p>One of {@code issuing}, {@code payments}, or {@code refund_and_dispute_prefunding}.
* <p>One of {@code issuing}, {@code payments}, {@code refund_and_dispute_prefunding}, or {@code
* transit}.
*/
@SerializedName("balance_type")
String balanceType;
Expand Down
Loading
Loading