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

Merged
merged 6 commits into from
Feb 24, 2025
Merged
Show file tree
Hide file tree
Changes from 5 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
25 changes: 0 additions & 25 deletions CONTRIBUTING.md

This file was deleted.

2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1455
v1505
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 = "2025-01-27.acacia";
public static final String CURRENT = "2025-02-24.acacia";
}
90 changes: 72 additions & 18 deletions src/main/java/com/stripe/model/Balance.java
Original file line number Diff line number Diff line change
Expand Up @@ -166,15 +166,24 @@ public static class Available extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class SourceTypes extends StripeObject {
/** Amount for bank account. */
/**
* Amount coming from <a href="https://docs.stripe.com/ach-deprecated">legacy US ACH
* payments</a>.
*/
@SerializedName("bank_account")
Long bankAccount;

/** Amount for card. */
/**
* Amount coming from most payment methods, including cards as well as <a
* href="https://docs.stripe.com/payments/bank-debits">non-legacy bank debits</a>.
*/
@SerializedName("card")
Long card;

/** Amount for FPX. */
/**
* Amount coming from <a href="https://docs.stripe.com/payments/fpx">FPX</a>, a Malaysian
* payment method.
*/
@SerializedName("fpx")
Long fpx;
}
Expand Down Expand Up @@ -211,15 +220,24 @@ public static class ConnectReserved extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class SourceTypes extends StripeObject {
/** Amount for bank account. */
/**
* Amount coming from <a href="https://docs.stripe.com/ach-deprecated">legacy US ACH
* payments</a>.
*/
@SerializedName("bank_account")
Long bankAccount;

/** Amount for card. */
/**
* Amount coming from most payment methods, including cards as well as <a
* href="https://docs.stripe.com/payments/bank-debits">non-legacy bank debits</a>.
*/
@SerializedName("card")
Long card;

/** Amount for FPX. */
/**
* Amount coming from <a href="https://docs.stripe.com/payments/fpx">FPX</a>, a Malaysian
* payment method.
*/
@SerializedName("fpx")
Long fpx;
}
Expand Down Expand Up @@ -279,15 +297,24 @@ public static class NetAvailable extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class SourceTypes extends StripeObject {
/** Amount for bank account. */
/**
* Amount coming from <a href="https://docs.stripe.com/ach-deprecated">legacy US ACH
* payments</a>.
*/
@SerializedName("bank_account")
Long bankAccount;

/** Amount for card. */
/**
* Amount coming from most payment methods, including cards as well as <a
* href="https://docs.stripe.com/payments/bank-debits">non-legacy bank debits</a>.
*/
@SerializedName("card")
Long card;

/** Amount for FPX. */
/**
* Amount coming from <a href="https://docs.stripe.com/payments/fpx">FPX</a>, a Malaysian
* payment method.
*/
@SerializedName("fpx")
Long fpx;
}
Expand All @@ -301,15 +328,24 @@ public static class SourceTypes extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class SourceTypes extends StripeObject {
/** Amount for bank account. */
/**
* Amount coming from <a href="https://docs.stripe.com/ach-deprecated">legacy US ACH
* payments</a>.
*/
@SerializedName("bank_account")
Long bankAccount;

/** Amount for card. */
/**
* Amount coming from most payment methods, including cards as well as <a
* href="https://docs.stripe.com/payments/bank-debits">non-legacy bank debits</a>.
*/
@SerializedName("card")
Long card;

/** Amount for FPX. */
/**
* Amount coming from <a href="https://docs.stripe.com/payments/fpx">FPX</a>, a Malaysian
* payment method.
*/
@SerializedName("fpx")
Long fpx;
}
Expand Down Expand Up @@ -358,15 +394,24 @@ public static class Available extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class SourceTypes extends StripeObject {
/** Amount for bank account. */
/**
* Amount coming from <a href="https://docs.stripe.com/ach-deprecated">legacy US ACH
* payments</a>.
*/
@SerializedName("bank_account")
Long bankAccount;

/** Amount for card. */
/**
* Amount coming from most payment methods, including cards as well as <a
* href="https://docs.stripe.com/payments/bank-debits">non-legacy bank debits</a>.
*/
@SerializedName("card")
Long card;

/** Amount for FPX. */
/**
* Amount coming from <a href="https://docs.stripe.com/payments/fpx">FPX</a>, a Malaysian
* payment method.
*/
@SerializedName("fpx")
Long fpx;
}
Expand Down Expand Up @@ -404,15 +449,24 @@ public static class Pending extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class SourceTypes extends StripeObject {
/** Amount for bank account. */
/**
* Amount coming from <a href="https://docs.stripe.com/ach-deprecated">legacy US ACH
* payments</a>.
*/
@SerializedName("bank_account")
Long bankAccount;

/** Amount for card. */
/**
* Amount coming from most payment methods, including cards as well as <a
* href="https://docs.stripe.com/payments/bank-debits">non-legacy bank debits</a>.
*/
@SerializedName("card")
Long card;

/** Amount for FPX. */
/**
* Amount coming from <a href="https://docs.stripe.com/payments/fpx">FPX</a>, a Malaysian
* payment method.
*/
@SerializedName("fpx")
Long fpx;
}
Expand Down
30 changes: 11 additions & 19 deletions src/main/java/com/stripe/model/Charge.java
Original file line number Diff line number Diff line change
Expand Up @@ -1305,13 +1305,11 @@ public static class PaymentMethodDetails extends StripeObject {
Twint twint;

/**
* The type of transaction-specific details of the payment method used in the payment, one of
* {@code ach_credit_transfer}, {@code ach_debit}, {@code acss_debit}, {@code alipay}, {@code
* au_becs_debit}, {@code bancontact}, {@code card}, {@code card_present}, {@code eps}, {@code
* giropay}, {@code ideal}, {@code klarna}, {@code multibanco}, {@code p24}, {@code sepa_debit},
* {@code sofort}, {@code stripe_account}, or {@code wechat}. An additional hash is included on
* {@code payment_method_details} with a name matching this value. It contains information
* specific to the payment method.
* The type of transaction-specific details of the payment method used in the payment. See <a
* href="https://stripe.com/docs/api/payment_methods/object#payment_method_object-type">PaymentMethod.type</a>
* for the full list of possible types. An additional hash is included on {@code
* payment_method_details} with a name matching this value. It contains information specific to
* the payment method.
*/
@SerializedName("type")
String type;
Expand Down Expand Up @@ -1889,10 +1887,8 @@ public static class Card extends StripeObject {
/**
* 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.
* Acquirer Reference Data. This value will be present if it is returned by the financial
* network in the authorization response, and null otherwise.
*/
@SerializedName("network_transaction_id")
String networkTransactionId;
Expand Down Expand Up @@ -2454,10 +2450,8 @@ public static class CardPresent extends StripeObject {
/**
* 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.
* Acquirer Reference Data. This value will be present if it is returned by the financial
* network in the authorization response, and null otherwise.
*/
@SerializedName("network_transaction_id")
String networkTransactionId;
Expand Down Expand Up @@ -2917,10 +2911,8 @@ public static class InteracPresent extends StripeObject {
/**
* 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.
* Acquirer Reference Data. This value will be present if it is returned by the financial
* network in the authorization response, and null otherwise.
*/
@SerializedName("network_transaction_id")
String networkTransactionId;
Expand Down
21 changes: 14 additions & 7 deletions src/main/java/com/stripe/model/ConfirmationToken.java
Original file line number Diff line number Diff line change
Expand Up @@ -942,10 +942,8 @@ public static class CardPresent extends StripeObject {
/**
* 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.
* the Acquirer Reference Data. This value will be present if it is returned by the
* financial network in the authorization response, and null otherwise.
*/
@SerializedName("network_transaction_id")
String networkTransactionId;
Expand Down Expand Up @@ -1087,7 +1085,10 @@ public static class Wallet extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Networks extends StripeObject {
/** All available networks for the card. */
/**
* All networks available for selection via <a
* href="https://stripe.com/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network">payment_method_options.card.network</a>.
*/
@SerializedName("available")
List<String> available;

Expand Down Expand Up @@ -1405,7 +1406,10 @@ public static class CardPresent extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Networks extends StripeObject {
/** All available networks for the card. */
/**
* All networks available for selection via <a
* href="https://stripe.com/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network">payment_method_options.card.network</a>.
*/
@SerializedName("available")
List<String> available;

Expand Down Expand Up @@ -1682,7 +1686,10 @@ public static class InteracPresent extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Networks extends StripeObject {
/** All available networks for the card. */
/**
* All networks available for selection via <a
* href="https://stripe.com/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network">payment_method_options.card.network</a>.
*/
@SerializedName("available")
List<String> available;

Expand Down
10 changes: 5 additions & 5 deletions src/main/java/com/stripe/model/CreditNote.java
Original file line number Diff line number Diff line change
Expand Up @@ -792,12 +792,12 @@ public static class Tax extends StripeObject {

/**
* Tax rates can be applied to <a
* href="https://stripe.com/docs/billing/invoices/tax-rates">invoices</a>, <a
* href="https://stripe.com/docs/billing/subscriptions/taxes">subscriptions</a> and <a
* href="https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates">Checkout
* Sessions</a> to collect tax.
* href="https://stripe.com/invoicing/taxes/tax-rates">invoices</a>, <a
* href="https://stripe.com/billing/taxes/tax-rates">subscriptions</a> and <a
* href="https://stripe.com/payments/checkout/use-manual-tax-rates">Checkout Sessions</a> to
* collect tax.
*
* <p>Related guide: <a href="https://stripe.com/docs/billing/taxes/tax-rates">Tax rates</a>
* <p>Related guide: <a href="https://stripe.com/billing/taxes/tax-rates">Tax rates</a>
*/
@SerializedName("rate")
TaxRate rate;
Expand Down
10 changes: 5 additions & 5 deletions src/main/java/com/stripe/model/Invoice.java
Original file line number Diff line number Diff line change
Expand Up @@ -2800,12 +2800,12 @@ public static class Tax extends StripeObject {

/**
* Tax rates can be applied to <a
* href="https://stripe.com/docs/billing/invoices/tax-rates">invoices</a>, <a
* href="https://stripe.com/docs/billing/subscriptions/taxes">subscriptions</a> and <a
* href="https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates">Checkout
* Sessions</a> to collect tax.
* href="https://stripe.com/invoicing/taxes/tax-rates">invoices</a>, <a
* href="https://stripe.com/billing/taxes/tax-rates">subscriptions</a> and <a
* href="https://stripe.com/payments/checkout/use-manual-tax-rates">Checkout Sessions</a> to
* collect tax.
*
* <p>Related guide: <a href="https://stripe.com/docs/billing/taxes/tax-rates">Tax rates</a>
* <p>Related guide: <a href="https://stripe.com/billing/taxes/tax-rates">Tax rates</a>
*/
@SerializedName("rate")
TaxRate rate;
Expand Down
10 changes: 5 additions & 5 deletions src/main/java/com/stripe/model/LineItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,12 @@ public static class Tax extends StripeObject {

/**
* Tax rates can be applied to <a
* href="https://stripe.com/docs/billing/invoices/tax-rates">invoices</a>, <a
* href="https://stripe.com/docs/billing/subscriptions/taxes">subscriptions</a> and <a
* href="https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates">Checkout
* Sessions</a> to collect tax.
* href="https://stripe.com/invoicing/taxes/tax-rates">invoices</a>, <a
* href="https://stripe.com/billing/taxes/tax-rates">subscriptions</a> and <a
* href="https://stripe.com/payments/checkout/use-manual-tax-rates">Checkout Sessions</a> to
* collect tax.
*
* <p>Related guide: <a href="https://stripe.com/docs/billing/taxes/tax-rates">Tax rates</a>
* <p>Related guide: <a href="https://stripe.com/billing/taxes/tax-rates">Tax rates</a>
*/
@SerializedName("rate")
TaxRate rate;
Expand Down
Loading