Skip to content

Commit

Permalink
Merge pull request #1460 from stripe/latest-codegen-beta
Browse files Browse the repository at this point in the history
API Updates for beta branch
  • Loading branch information
richardm-stripe committed Oct 14, 2022
2 parents ea0f043 + da80bac commit 0e79929
Show file tree
Hide file tree
Showing 15 changed files with 401 additions and 113 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 21.12.0 - 2022-10-14
* [#1457](https://github.com/stripe/stripe-java/pull/1457) Bugfix: Don't require global API Key when API Key is propagated from list request
* [#1458](https://github.com/stripe/stripe-java/pull/1458) API Updates
* Add support for `request_log_url` on `StripeError`
* Add support for `network_data` on `Issuing.Authorization`

## 21.12.0-beta.1 - 2022-10-07
* [#1452](https://github.com/stripe/stripe-java/pull/1452) API Updates for beta branch
* Updated stable APIs to the latest version
Expand Down
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v201
v202
90 changes: 46 additions & 44 deletions src/main/java/com/stripe/model/Account.java
Original file line number Diff line number Diff line change
Expand Up @@ -1270,29 +1270,30 @@ public static class Errors extends StripeObject {
* The code for the type of error.
*
* <p>One of {@code invalid_address_city_state_postal_code}, {@code invalid_dob_age_under_18},
* {@code invalid_street_address}, {@code invalid_tos_acceptance}, {@code
* invalid_value_other}, {@code verification_document_address_mismatch}, {@code
* verification_document_address_missing}, {@code verification_document_corrupt}, {@code
* verification_document_country_not_supported}, {@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_failed_address_match}, {@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
* {@code invalid_representative_country}, {@code invalid_street_address}, {@code
* invalid_tos_acceptance}, {@code invalid_value_other}, {@code
* verification_document_address_mismatch}, {@code verification_document_address_missing},
* {@code verification_document_corrupt}, {@code verification_document_country_not_supported},
* {@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_failed_address_match}, {@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_tax_id_match}, {@code verification_failed_tax_id_not_issued}, {@code
* verification_missing_executives}, {@code verification_missing_owners}, or {@code
* verification_failed_residential_address}, {@code verification_failed_tax_id_match}, {@code
* verification_failed_tax_id_not_issued}, {@code verification_missing_executives}, {@code
* verification_missing_owners}, or {@code
* verification_requires_additional_memorandum_of_associations}.
*/
@SerializedName("code")
Expand Down Expand Up @@ -1435,29 +1436,30 @@ public static class Errors extends StripeObject {
* The code for the type of error.
*
* <p>One of {@code invalid_address_city_state_postal_code}, {@code invalid_dob_age_under_18},
* {@code invalid_street_address}, {@code invalid_tos_acceptance}, {@code
* invalid_value_other}, {@code verification_document_address_mismatch}, {@code
* verification_document_address_missing}, {@code verification_document_corrupt}, {@code
* verification_document_country_not_supported}, {@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_failed_address_match}, {@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
* {@code invalid_representative_country}, {@code invalid_street_address}, {@code
* invalid_tos_acceptance}, {@code invalid_value_other}, {@code
* verification_document_address_mismatch}, {@code verification_document_address_missing},
* {@code verification_document_corrupt}, {@code verification_document_country_not_supported},
* {@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_failed_address_match}, {@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_tax_id_match}, {@code verification_failed_tax_id_not_issued}, {@code
* verification_missing_executives}, {@code verification_missing_owners}, or {@code
* verification_failed_residential_address}, {@code verification_failed_tax_id_match}, {@code
* verification_failed_tax_id_not_issued}, {@code verification_missing_executives}, {@code
* verification_missing_owners}, or {@code
* verification_requires_additional_memorandum_of_associations}.
*/
@SerializedName("code")
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/com/stripe/model/AccountSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@

/**
* An AccountSession allows a Connect platform to grant access to a connected account in Connect
* Embedded UIs.
* Elements.
*
* <p>We recommend that you create an AccountSession each time you need to display an embedded UI to
* your user. Do not save AccountSessions to your database as they expire relatively quickly, and
* cannot be used more than once.
*
* <p>Related guide: <a href="https://stripe.com/docs/connect/get-started-connect-elements">Connect
* Embedded UIs</a>.
* Elements</a>.
*/
@Getter
@Setter
Expand All @@ -40,8 +40,8 @@ public class AccountSession extends ApiResource {
* that you have TLS enabled on any page that includes the client secret.
*
* <p>Refer to our docs to <a
* href="https://stripe.com/docs/connect/get-started-connect-elements">setup Connect Embedded
* UIs</a> and learn about how {@code client_secret} should be handled.
* href="https://stripe.com/docs/connect/get-started-connect-elements">setup Connect Elements</a>
* and learn about how {@code client_secret} should be handled.
*/
@SerializedName("client_secret")
String clientSecret;
Expand Down
45 changes: 23 additions & 22 deletions src/main/java/com/stripe/model/Capability.java
Original file line number Diff line number Diff line change
Expand Up @@ -210,29 +210,30 @@ public static class Errors extends StripeObject {
* The code for the type of error.
*
* <p>One of {@code invalid_address_city_state_postal_code}, {@code invalid_dob_age_under_18},
* {@code invalid_street_address}, {@code invalid_tos_acceptance}, {@code
* invalid_value_other}, {@code verification_document_address_mismatch}, {@code
* verification_document_address_missing}, {@code verification_document_corrupt}, {@code
* verification_document_country_not_supported}, {@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_failed_address_match}, {@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
* {@code invalid_representative_country}, {@code invalid_street_address}, {@code
* invalid_tos_acceptance}, {@code invalid_value_other}, {@code
* verification_document_address_mismatch}, {@code verification_document_address_missing},
* {@code verification_document_corrupt}, {@code verification_document_country_not_supported},
* {@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_failed_address_match}, {@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_tax_id_match}, {@code verification_failed_tax_id_not_issued}, {@code
* verification_missing_executives}, {@code verification_missing_owners}, or {@code
* verification_failed_residential_address}, {@code verification_failed_tax_id_match}, {@code
* verification_failed_tax_id_not_issued}, {@code verification_missing_executives}, {@code
* verification_missing_owners}, or {@code
* verification_requires_additional_memorandum_of_associations}.
*/
@SerializedName("code")
Expand Down

0 comments on commit 0e79929

Please sign in to comment.