Skip to content

Commit

Permalink
Update generated code for v1409
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Dec 13, 2024
1 parent 6674429 commit 5bfeb4c
Show file tree
Hide file tree
Showing 39 changed files with 561 additions and 1,147 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1408
v1409
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-12-18.acacia";
public static final String CURRENT = "2024-11-20.acacia";
}
9 changes: 5 additions & 4 deletions src/main/java/com/stripe/model/Account.java
Original file line number Diff line number Diff line change
Expand Up @@ -1965,8 +1965,8 @@ public static class FutureRequirements extends StripeObject {
List<Account.FutureRequirements.Errors> errors;

/**
* Fields you must collect when all thresholds are reached. As they become required, they appear
* in {@code currently_due} as well.
* Fields that need to be collected assuming all volume 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 @@ -2167,8 +2167,9 @@ public static class Requirements extends StripeObject {
List<Account.Requirements.Errors> errors;

/**
* 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.
* 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.
*/
@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 @@ -192,11 +192,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 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.
* Disables Stripe user authentication for this embedded component. This feature can only be
* {@code true} 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.
*/
@SerializedName("disable_stripe_user_authentication")
Boolean disableStripeUserAuthentication;
Expand Down Expand Up @@ -237,11 +237,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 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.
* Disables Stripe user authentication for this embedded component. This feature can only be
* {@code true} 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.
*/
@SerializedName("disable_stripe_user_authentication")
Boolean disableStripeUserAuthentication;
Expand Down Expand Up @@ -282,11 +282,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 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.
* Disables Stripe user authentication for this embedded component. This feature can only be
* {@code true} 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.
*/
@SerializedName("disable_stripe_user_authentication")
Boolean disableStripeUserAuthentication;
Expand Down Expand Up @@ -448,11 +448,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 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.
* Disables Stripe user authentication for this embedded component. This feature can only be
* {@code true} 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.
*/
@SerializedName("disable_stripe_user_authentication")
Boolean disableStripeUserAuthentication;
Expand Down Expand Up @@ -593,11 +593,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 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.
* Disables Stripe user authentication for this embedded component. This feature can only be
* {@code true} 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.
*/
@SerializedName("disable_stripe_user_authentication")
Boolean disableStripeUserAuthentication;
Expand Down
9 changes: 5 additions & 4 deletions src/main/java/com/stripe/model/Capability.java
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ public static class FutureRequirements extends StripeObject {
List<Capability.FutureRequirements.Errors> errors;

/**
* Fields you must collect when all thresholds are reached. As they become required, they appear
* in {@code currently_due} as well.
* Fields that need to be collected assuming all volume 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,8 +374,9 @@ public static class Requirements extends StripeObject {
List<Capability.Requirements.Errors> errors;

/**
* 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.
* 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.
*/
@SerializedName("eventually_due")
List<String> eventuallyDue;
Expand Down
19 changes: 0 additions & 19 deletions src/main/java/com/stripe/model/Card.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,6 @@ 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 @@ -240,14 +229,6 @@ 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
45 changes: 0 additions & 45 deletions src/main/java/com/stripe/model/Charge.java
Original file line number Diff line number Diff line change
Expand Up @@ -1770,10 +1770,6 @@ public static class Card extends StripeObject {
@SerializedName("amount_authorized")
Long amountAuthorized;

/** The latest amount intended to be authorized by this charge. */
@SerializedName("amount_requested")
Long amountRequested;

/** Authorization code on the charge. */
@SerializedName("authorization_code")
String authorizationCode;
Expand Down Expand Up @@ -1901,31 +1897,9 @@ public static class Card extends StripeObject {
@SerializedName("network_token")
NetworkToken networkToken;

/**
* This is used by the financial networks to identify a transaction. Visa calls this the
* Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the
* Acquirer Reference Data. The first three digits of the Trace ID is the Financial Network
* Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent
* the date (MM/DD). This field will be available for successful Visa, Mastercard, or American
* Express transactions and always null for other card brands.
*/
@SerializedName("network_transaction_id")
String networkTransactionId;

@SerializedName("overcapture")
Overcapture overcapture;

@SerializedName("partial_authorization")
PartialAuthorization partialAuthorization;

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

/** Populated if this transaction used 3D Secure authentication. */
@SerializedName("three_d_secure")
ThreeDSecure threeDSecure;
Expand Down Expand Up @@ -2110,25 +2084,6 @@ public static class Overcapture extends StripeObject {
String status;
}

/**
* For more details about PartialAuthorization, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class PartialAuthorization extends StripeObject {
/**
* Indicates whether the transaction requested for partial authorization feature and the
* authorization outcome.
*
* <p>One of {@code declined}, {@code fully_authorized}, {@code not_requested}, or {@code
* partially_authorized}.
*/
@SerializedName("status")
String status;
}

/**
* For more details about ThreeDSecure, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
Expand Down
8 changes: 0 additions & 8 deletions src/main/java/com/stripe/model/ConfirmationToken.java
Original file line number Diff line number Diff line change
Expand Up @@ -719,14 +719,6 @@ public static class Card extends StripeObject {
@SerializedName("networks")
Networks networks;

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

/** Contains details on how this Card may be used for 3D Secure authentication. */
@SerializedName("three_d_secure_usage")
ThreeDSecureUsage threeDSecureUsage;
Expand Down
42 changes: 0 additions & 42 deletions src/main/java/com/stripe/model/Dispute.java
Original file line number Diff line number Diff line change
Expand Up @@ -780,9 +780,6 @@ public static class EnhancedEvidence extends StripeObject {
@SerializedName("visa_compelling_evidence_3")
VisaCompellingEvidence3 visaCompellingEvidence3;

@SerializedName("visa_compliance")
VisaCompliance visaCompliance;

/**
* For more details about VisaCompellingEvidence3, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
Expand Down Expand Up @@ -983,25 +980,6 @@ public static class ShippingAddress extends StripeObject {
}
}
}

/**
* For more details about VisaCompliance, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class VisaCompliance extends StripeObject {
/**
* A field acknowledging the fee incurred when countering a Visa compliance dispute. If this
* field is set to true, evidence can be submitted for the compliance dispute. Stripe
* collects a 500 USD (or local equivalent) amount to cover the network costs associated
* with resolving compliance disputes. Stripe refunds the 500 USD network fee if you win the
* dispute.
*/
@SerializedName("fee_acknowledged")
Boolean feeAcknowledged;
}
}
}

Expand Down Expand Up @@ -1054,9 +1032,6 @@ public static class EnhancedEligibility extends StripeObject {
@SerializedName("visa_compelling_evidence_3")
VisaCompellingEvidence3 visaCompellingEvidence3;

@SerializedName("visa_compliance")
VisaCompliance visaCompliance;

/**
* For more details about VisaCompellingEvidence3, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
Expand All @@ -1080,23 +1055,6 @@ public static class VisaCompellingEvidence3 extends StripeObject {
@SerializedName("status")
String status;
}

/**
* For more details about VisaCompliance, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class VisaCompliance extends StripeObject {
/**
* Visa compliance eligibility status.
*
* <p>One of {@code fee_acknowledged}, or {@code requires_fee_acknowledgement}.
*/
@SerializedName("status")
String status;
}
}
}

Expand Down
14 changes: 7 additions & 7 deletions src/main/java/com/stripe/model/Invoice.java
Original file line number Diff line number Diff line change
Expand Up @@ -2630,13 +2630,13 @@ public static class CustomerTaxId extends StripeObject {
* ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code my_sst}, {@code sg_gst}, {@code
* ae_trn}, {@code cl_tin}, {@code sa_vat}, {@code id_npwp}, {@code my_frp}, {@code il_vat},
* {@code ge_vat}, {@code ua_vat}, {@code is_vat}, {@code bg_uic}, {@code hu_tin}, {@code
* si_tin}, {@code ke_pin}, {@code tr_tin}, {@code eg_tin}, {@code ph_tin}, {@code al_tin},
* {@code bh_vat}, {@code kz_bin}, {@code ng_tin}, {@code om_vat}, {@code de_stn}, {@code
* ch_uid}, {@code tz_vat}, {@code uz_vat}, {@code uz_tin}, {@code md_vat}, {@code ma_vat},
* {@code by_tin}, {@code ao_tin}, {@code bs_tin}, {@code bb_tin}, {@code cd_nif}, {@code
* mr_nif}, {@code me_pib}, {@code zw_tin}, {@code ba_tin}, {@code gn_nif}, {@code mk_vat},
* {@code sr_fin}, {@code sn_ninea}, {@code am_tin}, {@code np_pan}, {@code tj_tin}, {@code
* ug_tin}, {@code zm_tin}, {@code kh_tin}, or {@code unknown}.
* si_tin}, {@code ke_pin}, {@code tr_tin}, {@code eg_tin}, {@code ph_tin}, {@code bh_vat},
* {@code kz_bin}, {@code ng_tin}, {@code om_vat}, {@code de_stn}, {@code ch_uid}, {@code
* tz_vat}, {@code uz_vat}, {@code uz_tin}, {@code md_vat}, {@code ma_vat}, {@code by_tin},
* {@code ao_tin}, {@code bs_tin}, {@code bb_tin}, {@code cd_nif}, {@code mr_nif}, {@code
* me_pib}, {@code zw_tin}, {@code ba_tin}, {@code gn_nif}, {@code mk_vat}, {@code sr_fin},
* {@code sn_ninea}, {@code am_tin}, {@code np_pan}, {@code tj_tin}, {@code ug_tin}, {@code
* zm_tin}, {@code kh_tin}, or {@code unknown}.
*/
@SerializedName("type")
String type;
Expand Down
12 changes: 6 additions & 6 deletions src/main/java/com/stripe/model/Order.java
Original file line number Diff line number Diff line change
Expand Up @@ -1936,12 +1936,12 @@ public static class TaxId extends StripeObject {
* {@code sg_gst}, {@code ae_trn}, {@code cl_tin}, {@code sa_vat}, {@code id_npwp}, {@code
* my_frp}, {@code il_vat}, {@code ge_vat}, {@code ua_vat}, {@code is_vat}, {@code bg_uic},
* {@code hu_tin}, {@code si_tin}, {@code ke_pin}, {@code tr_tin}, {@code eg_tin}, {@code
* ph_tin}, {@code al_tin}, {@code bh_vat}, {@code kz_bin}, {@code ng_tin}, {@code om_vat},
* {@code de_stn}, {@code ch_uid}, {@code tz_vat}, {@code uz_vat}, {@code uz_tin}, {@code
* md_vat}, {@code ma_vat}, {@code by_tin}, {@code ao_tin}, {@code bs_tin}, {@code bb_tin},
* {@code cd_nif}, {@code mr_nif}, {@code me_pib}, {@code zw_tin}, {@code ba_tin}, {@code
* gn_nif}, {@code mk_vat}, {@code sr_fin}, {@code sn_ninea}, {@code am_tin}, {@code np_pan},
* {@code tj_tin}, {@code ug_tin}, {@code zm_tin}, {@code kh_tin}, or {@code unknown}.
* ph_tin}, {@code bh_vat}, {@code kz_bin}, {@code ng_tin}, {@code om_vat}, {@code de_stn},
* {@code ch_uid}, {@code tz_vat}, {@code uz_vat}, {@code uz_tin}, {@code md_vat}, {@code
* ma_vat}, {@code by_tin}, {@code ao_tin}, {@code bs_tin}, {@code bb_tin}, {@code cd_nif},
* {@code mr_nif}, {@code me_pib}, {@code zw_tin}, {@code ba_tin}, {@code gn_nif}, {@code
* mk_vat}, {@code sr_fin}, {@code sn_ninea}, {@code am_tin}, {@code np_pan}, {@code tj_tin},
* {@code ug_tin}, {@code zm_tin}, {@code kh_tin}, or {@code unknown}.
*/
@SerializedName("type")
String type;
Expand Down
8 changes: 0 additions & 8 deletions src/main/java/com/stripe/model/PaymentIntent.java
Original file line number Diff line number Diff line change
Expand Up @@ -3745,14 +3745,6 @@ public static class Card extends StripeObject {
@SerializedName("request_overcapture")
String requestOvercapture;

/**
* Request partial authorization on this PaymentIntent.
*
* <p>One of {@code if_available}, or {@code never}.
*/
@SerializedName("request_partial_authorization")
String requestPartialAuthorization;

/**
* We strongly recommend that you rely on our SCA Engine to automatically prompt your
* customers for authentication based on risk level and <a
Expand Down
8 changes: 0 additions & 8 deletions src/main/java/com/stripe/model/PaymentMethod.java
Original file line number Diff line number Diff line change
Expand Up @@ -951,14 +951,6 @@ public static class Card extends StripeObject {
@SerializedName("networks")
Networks networks;

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

/** Contains details on how this Card may be used for 3D Secure authentication. */
@SerializedName("three_d_secure_usage")
ThreeDSecureUsage threeDSecureUsage;
Expand Down
Loading

0 comments on commit 5bfeb4c

Please sign in to comment.