Skip to content

Commit

Permalink
Update generated code for beta (#1929)
Browse files Browse the repository at this point in the history
* Update generated code for v1386

* Update generated code for v1387

* Update generated code for v1388

* Update generated code for v1388

* Update generated code for v1389

* Update generated code for v1390

* Update generated code for v1392

* Update generated code for v1394

* Update generated code for v1395

* Update generated code for v1396

* Update generated code for v1397

* Update generated code for v1398

* Update generated code for v1400

* Update generated code for v1401

* Update generated code for v1405

* Update generated code for v1406

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
  • Loading branch information
stripe-openapi[bot] authored Dec 12, 2024
1 parent 76560f8 commit 92ed94d
Show file tree
Hide file tree
Showing 39 changed files with 1,420 additions and 478 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1384
v1406
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 @@ -1965,8 +1965,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 @@ -2167,9 +2167,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 @@ -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 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 @@ -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 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 @@ -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 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 @@ -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 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 @@ -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 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 @@ -1901,12 +1901,31 @@ 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
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 @@ -719,6 +719,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
40 changes: 40 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,23 @@ 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, and you may
* incur a $500 fee if the case is lost.
*/
@SerializedName("fee_acknowledged")
Boolean feeAcknowledged;
}
}
}

Expand Down Expand Up @@ -1032,6 +1052,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 +1078,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 Compelling Evidence 3.0 eligibility status.
*
* <p>One of {@code fee_acknowledged}, or {@code requires_fee_acknowledgement}.
*/
@SerializedName("status")
String status;
}
}
}

Expand Down
7 changes: 5 additions & 2 deletions src/main/java/com/stripe/model/Invoice.java
Original file line number Diff line number Diff line change
Expand Up @@ -2632,8 +2632,11 @@ public static class CustomerTaxId extends StripeObject {
* {@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}, or
* {@code unknown}.
* 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
5 changes: 4 additions & 1 deletion src/main/java/com/stripe/model/Order.java
Original file line number Diff line number Diff line change
Expand Up @@ -1938,7 +1938,10 @@ public static class TaxId extends StripeObject {
* {@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}, or {@code unknown}.
* 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 @@ -951,6 +951,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
27 changes: 0 additions & 27 deletions src/main/java/com/stripe/model/PaymentRecord.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@ public class PaymentRecord extends ApiResource implements HasId {
@SerializedName("amount_guaranteed")
AmountGuaranteed amountGuaranteed;

/** A representation of an amount of money, consisting of an amount and a currency. */
@SerializedName("amount_refunded")
AmountRefunded amountRefunded;

/** A representation of an amount of money, consisting of an amount and a currency. */
@SerializedName("amount_requested")
AmountRequested amountRequested;
Expand Down Expand Up @@ -459,28 +455,6 @@ public static class AmountGuaranteed extends StripeObject {
Long value;
}

/** A representation of an amount of money, consisting of an amount and a currency. */
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class AmountRefunded extends StripeObject {
/**
* Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency
* code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported
* currency</a>.
*/
@SerializedName("currency")
String currency;

/**
* A positive integer representing the amount in the <a
* href="https://stripe.com/docs/currencies#zero-decimal">smallest currency unit</a> e.g., 100
* cents for $1.00 or 100 for ¥100, a zero-decimal currency).
*/
@SerializedName("value")
Long value;
}

/** A representation of an amount of money, consisting of an amount and a currency. */
@Getter
@Setter
Expand Down Expand Up @@ -683,7 +657,6 @@ public void setResponseGetter(StripeResponseGetter responseGetter) {
trySetResponseGetter(amountCanceled, responseGetter);
trySetResponseGetter(amountFailed, responseGetter);
trySetResponseGetter(amountGuaranteed, responseGetter);
trySetResponseGetter(amountRefunded, responseGetter);
trySetResponseGetter(amountRequested, responseGetter);
trySetResponseGetter(customerDetails, responseGetter);
trySetResponseGetter(paymentMethodDetails, responseGetter);
Expand Down
Loading

0 comments on commit 92ed94d

Please sign in to comment.