Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update generated code #1676

Merged
merged 7 commits into from
Oct 26, 2023
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 OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v605
v624
17 changes: 8 additions & 9 deletions src/main/java/com/stripe/model/Account.java
Original file line number Diff line number Diff line change
Expand Up @@ -1463,11 +1463,7 @@ public static class FutureRequirements extends StripeObject {
@SerializedName("currently_due")
List<String> currentlyDue;

/**
* This is typed as a string for consistency with {@code requirements.disabled_reason}, but it
* safe to assume {@code future_requirements.disabled_reason} is empty because fields in {@code
* future_requirements} will never disable the account.
*/
/** This is typed as a string for consistency with {@code requirements.disabled_reason}. */
@SerializedName("disabled_reason")
String disabledReason;

Expand Down Expand Up @@ -1625,10 +1621,13 @@ public static class Requirements extends StripeObject {
List<String> currentlyDue;

/**
* If the account is disabled, this string describes why. Can be {@code requirements.past_due},
* {@code requirements.pending_verification}, {@code listed}, {@code platform_paused}, {@code
* rejected.fraud}, {@code rejected.listed}, {@code rejected.terms_of_service}, {@code
* rejected.other}, {@code under_review}, or {@code other}.
* If the account is disabled, this string describes why. <a
* href="https://stripe.com/docs/connect/handling-api-verification">Learn more about handling
* verification issues</a>. Can be {@code action_required.requested_capabilities}, {@code
* requirements.past_due}, {@code requirements.pending_verification}, {@code listed}, {@code
* platform_paused}, {@code rejected.fraud}, {@code rejected.incomplete_verification}, {@code
* rejected.listed}, {@code rejected.other}, {@code rejected.terms_of_service}, {@code
* under_review}, or {@code other}.
*/
@SerializedName("disabled_reason")
String disabledReason;
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/com/stripe/model/PaymentLink.java
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,8 @@ public void setShippingRateObject(ShippingRate expandableObject) {
public static class SubscriptionData extends StripeObject {
/**
* The subscription's description, meant to be displayable to the customer. Use this field to
* optionally store an explanation of the subscription.
* optionally store an explanation of the subscription for rendering in Stripe surfaces and
* certain local payment methods UIs.
*/
@SerializedName("description")
String description;
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/com/stripe/model/Quote.java
Original file line number Diff line number Diff line change
Expand Up @@ -1314,7 +1314,8 @@ public static class StatusTransitions extends StripeObject {
public static class SubscriptionData extends StripeObject {
/**
* The subscription's description, meant to be displayable to the customer. Use this field to
* optionally store an explanation of the subscription.
* optionally store an explanation of the subscription for rendering in Stripe surfaces and
* certain local payment methods UIs.
*/
@SerializedName("description")
String description;
Expand Down
7 changes: 4 additions & 3 deletions src/main/java/com/stripe/model/StripeError.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ public class StripeError extends StripeObject {
* {@code account_invalid}, {@code account_number_invalid}, {@code acss_debit_session_incomplete},
* {@code alipay_upgrade_required}, {@code amount_too_large}, {@code amount_too_small}, {@code
* api_key_expired}, {@code application_fees_not_allowed}, {@code authentication_required}, {@code
* balance_insufficient}, {@code bank_account_bad_routing_numbers}, {@code bank_account_declined},
* {@code bank_account_exists}, {@code bank_account_restricted}, {@code bank_account_unusable},
* {@code bank_account_unverified}, {@code bank_account_verification_failed}, {@code
* balance_insufficient}, {@code balance_invalid_parameter}, {@code
* bank_account_bad_routing_numbers}, {@code bank_account_declined}, {@code bank_account_exists},
* {@code bank_account_restricted}, {@code bank_account_unusable}, {@code
* bank_account_unverified}, {@code bank_account_verification_failed}, {@code
* billing_invalid_mandate}, {@code bitcoin_upgrade_required}, {@code
* capture_charge_authorization_expired}, {@code capture_unauthorized_payment}, {@code
* card_decline_rate_limit_exceeded}, {@code card_declined}, {@code
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/com/stripe/model/Subscription.java
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ public class Subscription extends ApiResource implements HasId, MetadataStore<Su

/**
* The subscription's description, meant to be displayable to the customer. Use this field to
* optionally store an explanation of the subscription for rendering in Stripe surfaces.
* optionally store an explanation of the subscription for rendering in Stripe surfaces and
* certain local payment methods UIs.
*/
@SerializedName("description")
String description;
Expand Down
6 changes: 4 additions & 2 deletions src/main/java/com/stripe/model/SubscriptionSchedule.java
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,8 @@ public static class DefaultSettings extends StripeObject {

/**
* Subscription description, meant to be displayable to the customer. Use this field to
* optionally store an explanation of the subscription.
* optionally store an explanation of the subscription for rendering in Stripe surfaces and
* certain local payment methods UIs.
*/
@SerializedName("description")
String description;
Expand Down Expand Up @@ -896,7 +897,8 @@ public static class Phase extends StripeObject {

/**
* Subscription description, meant to be displayable to the customer. Use this field to
* optionally store an explanation of the subscription.
* optionally store an explanation of the subscription for rendering in Stripe surfaces and
* certain local payment methods UIs.
*/
@SerializedName("description")
String description;
Expand Down
12 changes: 2 additions & 10 deletions src/main/java/com/stripe/param/PaymentIntentConfirmParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -8731,11 +8731,7 @@ public static class CardPresent {
@SerializedName("request_extended_authorization")
Boolean requestExtendedAuthorization;

/**
* Request ability to <a
* href="https://stripe.com/docs/payments/incremental-authorization">increment</a> for this
* PaymentIntent.
*/
/** This field was released by mistake and will be removed in the next major version. */
@SerializedName("request_incremental_authorization")
RequestIncrementalAuthorization requestIncrementalAuthorization;

Expand Down Expand Up @@ -8821,11 +8817,7 @@ public Builder setRequestExtendedAuthorization(Boolean requestExtendedAuthorizat
return this;
}

/**
* Request ability to <a
* href="https://stripe.com/docs/payments/incremental-authorization">increment</a> for this
* PaymentIntent.
*/
/** This field was released by mistake and will be removed in the next major version. */
public Builder setRequestIncrementalAuthorization(
PaymentIntentConfirmParams.PaymentMethodOptions.CardPresent
.RequestIncrementalAuthorization
Expand Down
20 changes: 5 additions & 15 deletions src/main/java/com/stripe/param/PaymentIntentCreateParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,8 @@ public class PaymentIntentCreateParams extends ApiRequestParams {
String statementDescriptorSuffix;

/**
* The parameters that you can use to automatically create a Transfer after the payment succeeds.
* Learn more about the <a href="https://stripe.com/docs/payments/connected-accounts">use case for
* connected accounts</a>.
* The parameters that you can use to automatically create a Transfer. Learn more about the <a
* href="https://stripe.com/docs/payments/connected-accounts">use case for connected accounts</a>.
*/
@SerializedName("transfer_data")
TransferData transferData;
Expand Down Expand Up @@ -845,8 +844,7 @@ public Builder setStatementDescriptorSuffix(String statementDescriptorSuffix) {
}

/**
* The parameters that you can use to automatically create a Transfer after the payment
* succeeds. Learn more about the <a
* The parameters that you can use to automatically create a Transfer. Learn more about the <a
* href="https://stripe.com/docs/payments/connected-accounts">use case for connected
* accounts</a>.
*/
Expand Down Expand Up @@ -9237,11 +9235,7 @@ public static class CardPresent {
@SerializedName("request_extended_authorization")
Boolean requestExtendedAuthorization;

/**
* Request ability to <a
* href="https://stripe.com/docs/payments/incremental-authorization">increment</a> for this
* PaymentIntent.
*/
/** This field was released by mistake and will be removed in the next major version. */
@SerializedName("request_incremental_authorization")
RequestIncrementalAuthorization requestIncrementalAuthorization;

Expand Down Expand Up @@ -9327,11 +9321,7 @@ public Builder setRequestExtendedAuthorization(Boolean requestExtendedAuthorizat
return this;
}

/**
* Request ability to <a
* href="https://stripe.com/docs/payments/incremental-authorization">increment</a> for this
* PaymentIntent.
*/
/** This field was released by mistake and will be removed in the next major version. */
public Builder setRequestIncrementalAuthorization(
PaymentIntentCreateParams.PaymentMethodOptions.CardPresent
.RequestIncrementalAuthorization
Expand Down
12 changes: 2 additions & 10 deletions src/main/java/com/stripe/param/PaymentIntentUpdateParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -8781,11 +8781,7 @@ public static class CardPresent {
@SerializedName("request_extended_authorization")
Boolean requestExtendedAuthorization;

/**
* Request ability to <a
* href="https://stripe.com/docs/payments/incremental-authorization">increment</a> for this
* PaymentIntent.
*/
/** This field was released by mistake and will be removed in the next major version. */
@SerializedName("request_incremental_authorization")
RequestIncrementalAuthorization requestIncrementalAuthorization;

Expand Down Expand Up @@ -8871,11 +8867,7 @@ public Builder setRequestExtendedAuthorization(Boolean requestExtendedAuthorizat
return this;
}

/**
* Request ability to <a
* href="https://stripe.com/docs/payments/incremental-authorization">increment</a> for this
* PaymentIntent.
*/
/** This field was released by mistake and will be removed in the next major version. */
public Builder setRequestIncrementalAuthorization(
PaymentIntentUpdateParams.PaymentMethodOptions.CardPresent
.RequestIncrementalAuthorization
Expand Down
6 changes: 4 additions & 2 deletions src/main/java/com/stripe/param/PaymentLinkCreateParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -4206,7 +4206,8 @@ public Builder setShippingRate(String shippingRate) {
public static class SubscriptionData {
/**
* The subscription's description, meant to be displayable to the customer. Use this field to
* optionally store an explanation of the subscription.
* optionally store an explanation of the subscription for rendering in Stripe surfaces and
* certain local payment methods UIs.
*/
@SerializedName("description")
String description;
Expand Down Expand Up @@ -4269,7 +4270,8 @@ public PaymentLinkCreateParams.SubscriptionData build() {

/**
* The subscription's description, meant to be displayable to the customer. Use this field to
* optionally store an explanation of the subscription.
* optionally store an explanation of the subscription for rendering in Stripe surfaces and
* certain local payment methods UIs.
*/
public Builder setDescription(String description) {
this.description = description;
Expand Down
6 changes: 4 additions & 2 deletions src/main/java/com/stripe/param/QuoteCreateParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -1465,7 +1465,8 @@ public enum TaxBehavior implements ApiRequestParams.EnumParam {
public static class SubscriptionData {
/**
* The subscription's description, meant to be displayable to the customer. Use this field to
* optionally store an explanation of the subscription.
* optionally store an explanation of the subscription for rendering in Stripe surfaces and
* certain local payment methods UIs.
*/
@SerializedName("description")
String description;
Expand Down Expand Up @@ -1528,7 +1529,8 @@ public QuoteCreateParams.SubscriptionData build() {

/**
* The subscription's description, meant to be displayable to the customer. Use this field to
* optionally store an explanation of the subscription.
* optionally store an explanation of the subscription for rendering in Stripe surfaces and
* certain local payment methods UIs.
*/
public Builder setDescription(String description) {
this.description = description;
Expand Down
9 changes: 6 additions & 3 deletions src/main/java/com/stripe/param/QuoteUpdateParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -1377,7 +1377,8 @@ public enum TaxBehavior implements ApiRequestParams.EnumParam {
public static class SubscriptionData {
/**
* The subscription's description, meant to be displayable to the customer. Use this field to
* optionally store an explanation of the subscription.
* optionally store an explanation of the subscription for rendering in Stripe surfaces and
* certain local payment methods UIs.
*/
@SerializedName("description")
Object description;
Expand Down Expand Up @@ -1440,7 +1441,8 @@ public QuoteUpdateParams.SubscriptionData build() {

/**
* The subscription's description, meant to be displayable to the customer. Use this field to
* optionally store an explanation of the subscription.
* optionally store an explanation of the subscription for rendering in Stripe surfaces and
* certain local payment methods UIs.
*/
public Builder setDescription(String description) {
this.description = description;
Expand All @@ -1449,7 +1451,8 @@ public Builder setDescription(String description) {

/**
* The subscription's description, meant to be displayable to the customer. Use this field to
* optionally store an explanation of the subscription.
* optionally store an explanation of the subscription for rendering in Stripe surfaces and
* certain local payment methods UIs.
*/
public Builder setDescription(EmptyParam description) {
this.description = description;
Expand Down
6 changes: 4 additions & 2 deletions src/main/java/com/stripe/param/SubscriptionCreateParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ public class SubscriptionCreateParams extends ApiRequestParams {

/**
* The subscription's description, meant to be displayable to the customer. Use this field to
* optionally store an explanation of the subscription for rendering in Stripe surfaces.
* optionally store an explanation of the subscription for rendering in Stripe surfaces and
* certain local payment methods UIs.
*/
@SerializedName("description")
String description;
Expand Down Expand Up @@ -698,7 +699,8 @@ public Builder setDefaultTaxRates(List<String> defaultTaxRates) {

/**
* The subscription's description, meant to be displayable to the customer. Use this field to
* optionally store an explanation of the subscription for rendering in Stripe surfaces.
* optionally store an explanation of the subscription for rendering in Stripe surfaces and
* certain local payment methods UIs.
*/
public Builder setDescription(String description) {
this.description = description;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,8 @@ public static class DefaultSettings {

/**
* Subscription description, meant to be displayable to the customer. Use this field to
* optionally store an explanation of the subscription.
* optionally store an explanation of the subscription for rendering in Stripe surfaces and
* certain local payment methods UIs.
*/
@SerializedName("description")
Object description;
Expand Down Expand Up @@ -550,7 +551,8 @@ public Builder setDefaultPaymentMethod(String defaultPaymentMethod) {

/**
* Subscription description, meant to be displayable to the customer. Use this field to
* optionally store an explanation of the subscription.
* optionally store an explanation of the subscription for rendering in Stripe surfaces and
* certain local payment methods UIs.
*/
public Builder setDescription(String description) {
this.description = description;
Expand All @@ -559,7 +561,8 @@ public Builder setDescription(String description) {

/**
* Subscription description, meant to be displayable to the customer. Use this field to
* optionally store an explanation of the subscription.
* optionally store an explanation of the subscription for rendering in Stripe surfaces and
* certain local payment methods UIs.
*/
public Builder setDescription(EmptyParam description) {
this.description = description;
Expand Down Expand Up @@ -1102,7 +1105,8 @@ public static class Phase {

/**
* Subscription description, meant to be displayable to the customer. Use this field to
* optionally store an explanation of the subscription.
* optionally store an explanation of the subscription for rendering in Stripe surfaces and
* certain local payment methods UIs.
*/
@SerializedName("description")
Object description;
Expand Down Expand Up @@ -1492,7 +1496,8 @@ public Builder setDefaultTaxRates(List<String> defaultTaxRates) {

/**
* Subscription description, meant to be displayable to the customer. Use this field to
* optionally store an explanation of the subscription.
* optionally store an explanation of the subscription for rendering in Stripe surfaces and
* certain local payment methods UIs.
*/
public Builder setDescription(String description) {
this.description = description;
Expand All @@ -1501,7 +1506,8 @@ public Builder setDescription(String description) {

/**
* Subscription description, meant to be displayable to the customer. Use this field to
* optionally store an explanation of the subscription.
* optionally store an explanation of the subscription for rendering in Stripe surfaces and
* certain local payment methods UIs.
*/
public Builder setDescription(EmptyParam description) {
this.description = description;
Expand Down
Loading
Loading