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 #1931

Merged
merged 4 commits into from
Dec 18, 2024
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 @@
v1347
v1412
2 changes: 1 addition & 1 deletion src/main/java/com/stripe/ApiVersion.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
package com.stripe;

final class ApiVersion {
public static final String CURRENT = "2024-11-20.acacia";
public static final String CURRENT = "2024-12-18.acacia";
}
11 changes: 5 additions & 6 deletions src/main/java/com/stripe/model/Account.java
Original file line number Diff line number Diff line change
Expand Up @@ -1762,7 +1762,7 @@ public static class FutureRequirements extends StripeObject {
List<Account.FutureRequirements.Alternative> alternatives;

/**
* Date on which {@code future_requirements} merges with the main {@code requirements} hash and
* Date on which {@code future_requirements} becomes the main {@code requirements} hash and
* {@code future_requirements} becomes empty. After the transition, {@code currently_due}
* requirements may immediately become {@code past_due}, but the account may also be given a
* grace period depending on its enablement state prior to transitioning.
Expand Down Expand Up @@ -1799,8 +1799,8 @@ public static class FutureRequirements extends StripeObject {
List<Account.FutureRequirements.Errors> errors;

/**
* Fields that need to be collected assuming all volume thresholds are reached. As they become
* required, they appear in {@code currently_due} as well.
* Fields you must collect when all thresholds are reached. As they become required, they appear
* in {@code currently_due} as well.
*/
@SerializedName("eventually_due")
List<String> eventuallyDue;
Expand Down Expand Up @@ -2001,9 +2001,8 @@ public static class Requirements extends StripeObject {
List<Account.Requirements.Errors> errors;

/**
* Fields that need to be collected assuming all volume thresholds are reached. As they become
* required, they appear in {@code currently_due} as well, and {@code current_deadline} becomes
* set.
* Fields you must collect when all thresholds are reached. As they become required, they appear
* in {@code currently_due} as well, and {@code current_deadline} becomes set.
*/
@SerializedName("eventually_due")
List<String> eventuallyDue;
Expand Down
50 changes: 25 additions & 25 deletions src/main/java/com/stripe/model/AccountSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,11 @@ public static class AccountManagement extends StripeObject {
@EqualsAndHashCode(callSuper = false)
public static class Features extends StripeObject {
/**
* Disables Stripe user authentication for this embedded component. This feature can only be
* false for accounts where you’re responsible for collecting updated information when
* requirements are due or change, like custom accounts. The default value for this feature
* is {@code false} when {@code external_account_collection} is enabled and {@code true}
* otherwise.
* Disables Stripe user authentication for this embedded component. This value can only be
* true for accounts where {@code controller.requirement_collection} is {@code application}.
* The default value is the opposite of the {@code external_account_collection} value. For
* example, if you don’t set {@code external_account_collection}, it defaults to true and
* {@code disable_stripe_user_authentication} defaults to false.
*/
@SerializedName("disable_stripe_user_authentication")
Boolean disableStripeUserAuthentication;
Expand Down Expand Up @@ -228,11 +228,11 @@ public static class AccountOnboarding extends StripeObject {
@EqualsAndHashCode(callSuper = false)
public static class Features extends StripeObject {
/**
* Disables Stripe user authentication for this embedded component. This feature can only be
* false for accounts where you’re responsible for collecting updated information when
* requirements are due or change, like custom accounts. The default value for this feature
* is {@code false} when {@code external_account_collection} is enabled and {@code true}
* otherwise.
* Disables Stripe user authentication for this embedded component. This value can only be
* true for accounts where {@code controller.requirement_collection} is {@code application}.
* The default value is the opposite of the {@code external_account_collection} value. For
* example, if you don’t set {@code external_account_collection}, it defaults to true and
* {@code disable_stripe_user_authentication} defaults to false.
*/
@SerializedName("disable_stripe_user_authentication")
Boolean disableStripeUserAuthentication;
Expand Down Expand Up @@ -273,11 +273,11 @@ public static class Balances extends StripeObject {
@EqualsAndHashCode(callSuper = false)
public static class Features extends StripeObject {
/**
* Disables Stripe user authentication for this embedded component. This feature can only be
* false for accounts where you’re responsible for collecting updated information when
* requirements are due or change, like custom accounts. The default value for this feature
* is {@code false} when {@code external_account_collection} is enabled and {@code true}
* otherwise.
* Disables Stripe user authentication for this embedded component. This value can only be
* true for accounts where {@code controller.requirement_collection} is {@code application}.
* The default value is the opposite of the {@code external_account_collection} value. For
* example, if you don’t set {@code external_account_collection}, it defaults to true and
* {@code disable_stripe_user_authentication} defaults to false.
*/
@SerializedName("disable_stripe_user_authentication")
Boolean disableStripeUserAuthentication;
Expand Down Expand Up @@ -364,11 +364,11 @@ public static class NotificationBanner extends StripeObject {
@EqualsAndHashCode(callSuper = false)
public static class Features extends StripeObject {
/**
* Disables Stripe user authentication for this embedded component. This feature can only be
* false for accounts where you’re responsible for collecting updated information when
* requirements are due or change, like custom accounts. The default value for this feature
* is {@code false} when {@code external_account_collection} is enabled and {@code true}
* otherwise.
* Disables Stripe user authentication for this embedded component. This value can only be
* true for accounts where {@code controller.requirement_collection} is {@code application}.
* The default value is the opposite of the {@code external_account_collection} value. For
* example, if you don’t set {@code external_account_collection}, it defaults to true and
* {@code disable_stripe_user_authentication} defaults to false.
*/
@SerializedName("disable_stripe_user_authentication")
Boolean disableStripeUserAuthentication;
Expand Down Expand Up @@ -509,11 +509,11 @@ public static class Payouts extends StripeObject {
@EqualsAndHashCode(callSuper = false)
public static class Features extends StripeObject {
/**
* Disables Stripe user authentication for this embedded component. This feature can only be
* false for accounts where you’re responsible for collecting updated information when
* requirements are due or change, like custom accounts. The default value for this feature
* is {@code false} when {@code external_account_collection} is enabled and {@code true}
* otherwise.
* Disables Stripe user authentication for this embedded component. This value can only be
* true for accounts where {@code controller.requirement_collection} is {@code application}.
* The default value is the opposite of the {@code external_account_collection} value. For
* example, if you don’t set {@code external_account_collection}, it defaults to true and
* {@code disable_stripe_user_authentication} defaults to false.
*/
@SerializedName("disable_stripe_user_authentication")
Boolean disableStripeUserAuthentication;
Expand Down
22 changes: 11 additions & 11 deletions src/main/java/com/stripe/model/BalanceTransaction.java
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,13 @@ public class BalanceTransaction extends ApiResource implements HasId {
* payment_failure_refund}, {@code payment_network_reserve_hold}, {@code
* payment_network_reserve_release}, {@code payment_refund}, {@code payment_reversal}, {@code
* payment_unreconciled}, {@code payout}, {@code payout_cancel}, {@code payout_failure}, {@code
* refund}, {@code refund_failure}, {@code reserve_transaction}, {@code reserved_funds}, {@code
* stripe_fee}, {@code stripe_fx_fee}, {@code tax_fee}, {@code topup}, {@code topup_reversal},
* {@code transfer}, {@code transfer_cancel}, {@code transfer_failure}, or {@code
* transfer_refund}. Learn more about <a
* href="https://stripe.com/docs/reports/balance-transaction-types">balance transaction types and
* what they represent</a>. To classify transactions for accounting purposes, consider {@code
* reporting_category} instead.
* payout_minimum_balance_hold}, {@code payout_minimum_balance_release}, {@code refund}, {@code
* refund_failure}, {@code reserve_transaction}, {@code reserved_funds}, {@code stripe_fee},
* {@code stripe_fx_fee}, {@code tax_fee}, {@code topup}, {@code topup_reversal}, {@code
* transfer}, {@code transfer_cancel}, {@code transfer_failure}, or {@code transfer_refund}. Learn
* more about <a href="https://stripe.com/docs/reports/balance-transaction-types">balance
* transaction types and what they represent</a>. To classify transactions for accounting
* purposes, consider {@code reporting_category} instead.
*
* <p>One of {@code adjustment}, {@code advance}, {@code advance_funding}, {@code
* anticipation_repayment}, {@code application_fee}, {@code application_fee_refund}, {@code
Expand All @@ -145,10 +145,10 @@ public class BalanceTransaction extends ApiResource implements HasId {
* payment_failure_refund}, {@code payment_network_reserve_hold}, {@code
* payment_network_reserve_release}, {@code payment_refund}, {@code payment_reversal}, {@code
* payment_unreconciled}, {@code payout}, {@code payout_cancel}, {@code payout_failure}, {@code
* refund}, {@code refund_failure}, {@code reserve_transaction}, {@code reserved_funds}, {@code
* stripe_fee}, {@code stripe_fx_fee}, {@code tax_fee}, {@code topup}, {@code topup_reversal},
* {@code transfer}, {@code transfer_cancel}, {@code transfer_failure}, or {@code
* transfer_refund}.
* payout_minimum_balance_hold}, {@code payout_minimum_balance_release}, {@code refund}, {@code
* refund_failure}, {@code reserve_transaction}, {@code reserved_funds}, {@code stripe_fee},
* {@code stripe_fx_fee}, {@code tax_fee}, {@code topup}, {@code topup_reversal}, {@code
* transfer}, {@code transfer_cancel}, {@code transfer_failure}, or {@code transfer_refund}.
*/
@SerializedName("type")
String type;
Expand Down
11 changes: 5 additions & 6 deletions src/main/java/com/stripe/model/Capability.java
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public static class FutureRequirements extends StripeObject {
List<Capability.FutureRequirements.Alternative> alternatives;

/**
* Date on which {@code future_requirements} merges with the main {@code requirements} hash and
* Date on which {@code future_requirements} becomes the main {@code requirements} hash and
* {@code future_requirements} becomes empty. After the transition, {@code currently_due}
* requirements may immediately become {@code past_due}, but the account may also be given a
* grace period depending on the capability's enablement state prior to transitioning.
Expand Down Expand Up @@ -191,8 +191,8 @@ public static class FutureRequirements extends StripeObject {
List<Capability.FutureRequirements.Errors> errors;

/**
* Fields that need to be collected assuming all volume thresholds are reached. As they become
* required, they appear in {@code currently_due} as well.
* Fields you must collect when all thresholds are reached. As they become required, they appear
* in {@code currently_due} as well.
*/
@SerializedName("eventually_due")
List<String> eventuallyDue;
Expand Down Expand Up @@ -374,9 +374,8 @@ public static class Requirements extends StripeObject {
List<Capability.Requirements.Errors> errors;

/**
* Fields that need to be collected assuming all volume thresholds are reached. As they become
* required, they appear in {@code currently_due} as well, and {@code current_deadline} becomes
* set.
* Fields you must collect when all thresholds are reached. As they become required, they appear
* in {@code currently_due} as well, and {@code current_deadline} becomes set.
*/
@SerializedName("eventually_due")
List<String> eventuallyDue;
Expand Down
19 changes: 19 additions & 0 deletions src/main/java/com/stripe/model/Card.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,17 @@ public class Card extends ApiResource
@SerializedName("address_zip_check")
String addressZipCheck;

/**
* This field indicates whether this payment method can be shown again to its customer in a
* checkout flow. Stripe products such as Checkout and Elements use this field to determine
* whether a payment method can be shown as a saved payment method in a checkout flow. The field
* defaults to “unspecified”.
*
* <p>One of {@code always}, {@code limited}, or {@code unspecified}.
*/
@SerializedName("allow_redisplay")
String allowRedisplay;

/**
* A set of available payout methods for this card. Only values from this set should be passed as
* the {@code method} when creating a payout.
Expand Down Expand Up @@ -229,6 +240,14 @@ public class Card extends ApiResource
@SerializedName("object")
String object;

/**
* Status of a card based on the card issuer.
*
* <p>One of {@code regulated}, or {@code unregulated}.
*/
@SerializedName("regulated_status")
String regulatedStatus;

/**
* For external accounts that are cards, possible values are {@code new} and {@code errored}. If a
* payout fails, the status is set to {@code errored} and <a
Expand Down
Loading
Loading