Skip to content

Commit

Permalink
Update generated code for v1412
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Dec 14, 2024
1 parent 5c8442d commit 90c2dfd
Show file tree
Hide file tree
Showing 31 changed files with 5,375 additions and 2,672 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1409
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";
}
9 changes: 4 additions & 5 deletions src/main/java/com/stripe/model/Account.java
Original file line number Diff line number Diff line change
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
* {@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.
* 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
* {@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.
* 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
* {@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.
* 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
* {@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.
* 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
* {@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.
* 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
9 changes: 4 additions & 5 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 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
19 changes: 19 additions & 0 deletions src/main/java/com/stripe/model/Charge.java
Original file line number Diff line number Diff line change
Expand Up @@ -1873,9 +1873,28 @@ 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;

/**
* 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
8 changes: 8 additions & 0 deletions src/main/java/com/stripe/model/ConfirmationToken.java
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,14 @@ 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: 42 additions & 0 deletions src/main/java/com/stripe/model/Dispute.java
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,9 @@ 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 @@ -980,6 +983,25 @@ 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 @@ -1032,6 +1054,9 @@ 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 @@ -1055,6 +1080,23 @@ 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 @@ -2281,13 +2281,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 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 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}.
*/
@SerializedName("type")
String type;
Expand Down
8 changes: 8 additions & 0 deletions src/main/java/com/stripe/model/PaymentMethod.java
Original file line number Diff line number Diff line change
Expand Up @@ -928,6 +928,14 @@ 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
9 changes: 4 additions & 5 deletions src/main/java/com/stripe/model/Person.java
Original file line number Diff line number Diff line change
Expand Up @@ -444,8 +444,8 @@ public static class FutureRequirements extends StripeObject {
List<Person.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, and the account's {@code
* Fields you must collect when all thresholds are reached. As they become required, they appear
* in {@code currently_due} as well, and the account's {@code
* future_requirements[current_deadline]} becomes set.
*/
@SerializedName("eventually_due")
Expand Down Expand Up @@ -661,9 +661,8 @@ public static class Requirements extends StripeObject {
List<Person.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 the account's {@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 the account's {@code current_deadline} becomes set.
*/
@SerializedName("eventually_due")
List<String> eventuallyDue;
Expand Down
11 changes: 11 additions & 0 deletions src/main/java/com/stripe/model/Source.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,17 @@ public class Source extends ApiResource implements MetadataStore<Source>, Paymen
@SerializedName("alipay")
Alipay alipay;

/**
* 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 positive integer in the smallest currency unit (that is, 100 cents for $1.00, or 1 for ¥1,
* Japanese Yen being a zero-decimal currency) representing the total amount associated with the
Expand Down
Loading

0 comments on commit 90c2dfd

Please sign in to comment.