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

Merged
merged 2 commits into from
Nov 20, 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 @@
v1319
v1347
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-10-28.acacia";
public static final String CURRENT = "2024-11-20.acacia";
}
26 changes: 19 additions & 7 deletions src/main/java/com/stripe/model/Account.java
Original file line number Diff line number Diff line change
Expand Up @@ -1778,7 +1778,16 @@ public static class FutureRequirements extends StripeObject {
@SerializedName("currently_due")
List<String> currentlyDue;

/** This is typed as a string for consistency with {@code requirements.disabled_reason}. */
/**
* This is typed as an enum for consistency with {@code requirements.disabled_reason}.
*
* <p>One of {@code action_required.requested_capabilities}, {@code listed}, {@code other},
* {@code platform_paused}, {@code rejected.fraud}, {@code rejected.incomplete_verification},
* {@code rejected.listed}, {@code rejected.other}, {@code rejected.platform_fraud}, {@code
* rejected.platform_other}, {@code rejected.platform_terms_of_service}, {@code
* rejected.terms_of_service}, {@code requirements.past_due}, {@code
* requirements.pending_verification}, or {@code under_review}.
*/
@SerializedName("disabled_reason")
String disabledReason;

Expand Down Expand Up @@ -1970,13 +1979,16 @@ public static class Requirements extends StripeObject {
List<String> currentlyDue;

/**
* If the account is disabled, this string describes why. <a
* If the account is disabled, this enum describes why. <a
* href="https://stripe.com/docs/connect/handling-api-verification">Learn more about handling
* verification issues</a>. Can be {@code action_required.requested_capabilities}, {@code
* requirements.past_due}, {@code requirements.pending_verification}, {@code listed}, {@code
* platform_paused}, {@code rejected.fraud}, {@code rejected.incomplete_verification}, {@code
* rejected.listed}, {@code rejected.other}, {@code rejected.terms_of_service}, {@code
* under_review}, or {@code other}.
* verification issues</a>.
*
* <p>One of {@code action_required.requested_capabilities}, {@code listed}, {@code other},
* {@code platform_paused}, {@code rejected.fraud}, {@code rejected.incomplete_verification},
* {@code rejected.listed}, {@code rejected.other}, {@code rejected.platform_fraud}, {@code
* rejected.platform_other}, {@code rejected.platform_terms_of_service}, {@code
* rejected.terms_of_service}, {@code requirements.past_due}, {@code
* requirements.pending_verification}, or {@code under_review}.
*/
@SerializedName("disabled_reason")
String disabledReason;
Expand Down
15 changes: 10 additions & 5 deletions src/main/java/com/stripe/model/Charge.java
Original file line number Diff line number Diff line change
Expand Up @@ -1675,7 +1675,8 @@ public static class Card extends StripeObject {

/**
* Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au},
* {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}.
* {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code
* unknown}.
*/
@SerializedName("brand")
String brand;
Expand Down Expand Up @@ -1779,7 +1780,8 @@ public static class Card extends StripeObject {
/**
* Identifies which network this charge was processed on. Can be {@code amex}, {@code
* cartes_bancaires}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code interac},
* {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}.
* {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code
* unknown}.
*/
@SerializedName("network")
String network;
Expand Down Expand Up @@ -2218,7 +2220,8 @@ public static class CardPresent extends StripeObject {

/**
* Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au},
* {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}.
* {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code
* unknown}.
*/
@SerializedName("brand")
String brand;
Expand Down Expand Up @@ -2330,7 +2333,8 @@ public static class CardPresent extends StripeObject {
/**
* Identifies which network this charge was processed on. Can be {@code amex}, {@code
* cartes_bancaires}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code interac},
* {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}.
* {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code
* unknown}.
*/
@SerializedName("network")
String network;
Expand Down Expand Up @@ -2792,7 +2796,8 @@ public static class InteracPresent extends StripeObject {
/**
* Identifies which network this charge was processed on. Can be {@code amex}, {@code
* cartes_bancaires}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code interac},
* {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}.
* {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code
* unknown}.
*/
@SerializedName("network")
String network;
Expand Down
13 changes: 8 additions & 5 deletions src/main/java/com/stripe/model/ConfirmationToken.java
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,8 @@ public static class Boleto extends StripeObject {
public static class Card extends StripeObject {
/**
* Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au},
* {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}.
* {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code
* unknown}.
*/
@SerializedName("brand")
String brand;
Expand Down Expand Up @@ -807,7 +808,8 @@ public static class CardPresent extends StripeObject {

/**
* Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au},
* {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}.
* {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or
* {@code unknown}.
*/
@SerializedName("brand")
String brand;
Expand Down Expand Up @@ -920,8 +922,8 @@ public static class CardPresent extends StripeObject {
/**
* Identifies which network this charge was processed on. Can be {@code amex}, {@code
* cartes_bancaires}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code
* interac}, {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code
* unknown}.
* interac}, {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code
* visa}, or {@code unknown}.
*/
@SerializedName("network")
String network;
Expand Down Expand Up @@ -1277,7 +1279,8 @@ public static class VisaCheckout extends StripeObject {
public static class CardPresent extends StripeObject {
/**
* Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au},
* {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}.
* {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code
* unknown}.
*/
@SerializedName("brand")
String brand;
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/com/stripe/model/Dispute.java
Original file line number Diff line number Diff line change
Expand Up @@ -1113,7 +1113,8 @@ public static class AmazonPay extends StripeObject {
public static class Card extends StripeObject {
/**
* Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au},
* {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}.
* {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code
* unknown}.
*/
@SerializedName("brand")
String brand;
Expand Down
9 changes: 5 additions & 4 deletions src/main/java/com/stripe/model/File.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,11 @@ public class File extends ApiResource implements HasId {
*
* <p>One of {@code account_requirement}, {@code additional_verification}, {@code business_icon},
* {@code business_logo}, {@code customer_signature}, {@code dispute_evidence}, {@code
* document_provider_identity_document}, {@code finance_report_run}, {@code identity_document},
* {@code identity_document_downloadable}, {@code issuing_regulatory_reporting}, {@code
* pci_document}, {@code selfie}, {@code sigma_scheduled_query}, {@code tax_document_user_upload},
* or {@code terminal_reader_splashscreen}.
* document_provider_identity_document}, {@code finance_report_run}, {@code
* financial_account_statement}, {@code identity_document}, {@code
* identity_document_downloadable}, {@code issuing_regulatory_reporting}, {@code pci_document},
* {@code selfie}, {@code sigma_scheduled_query}, {@code tax_document_user_upload}, or {@code
* terminal_reader_splashscreen}.
*/
@SerializedName("purpose")
String purpose;
Expand Down
28 changes: 28 additions & 0 deletions src/main/java/com/stripe/model/FundingInstructions.java
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,24 @@ public static class FinancialAddress extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Aba extends StripeObject {
@SerializedName("account_holder_address")
Address accountHolderAddress;

/** The account holder name. */
@SerializedName("account_holder_name")
String accountHolderName;

/** The ABA account number. */
@SerializedName("account_number")
String accountNumber;

/** The account type. */
@SerializedName("account_type")
String accountType;

@SerializedName("bank_address")
Address bankAddress;

/** The bank name. */
@SerializedName("bank_name")
String bankName;
Expand Down Expand Up @@ -203,10 +217,24 @@ public static class Spei extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Swift extends StripeObject {
@SerializedName("account_holder_address")
Address accountHolderAddress;

/** The account holder name. */
@SerializedName("account_holder_name")
String accountHolderName;

/** The account number. */
@SerializedName("account_number")
String accountNumber;

/** The account type. */
@SerializedName("account_type")
String accountType;

@SerializedName("bank_address")
Address bankAddress;

/** The bank name. */
@SerializedName("bank_name")
String bankName;
Expand Down
17 changes: 9 additions & 8 deletions src/main/java/com/stripe/model/Invoice.java
Original file line number Diff line number Diff line change
Expand Up @@ -2267,14 +2267,15 @@ public static class CustomerTaxId extends StripeObject {
* {@code gb_vat}, {@code nz_gst}, {@code au_abn}, {@code au_arn}, {@code in_gst}, {@code
* no_vat}, {@code no_voec}, {@code za_vat}, {@code ch_vat}, {@code mx_rfc}, {@code sg_uen},
* {@code ru_inn}, {@code ru_kpp}, {@code ca_bn}, {@code hk_br}, {@code es_cif}, {@code tw_vat},
* {@code th_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code li_uid}, {@code my_itn},
* {@code us_ein}, {@code kr_brn}, {@code ca_qst}, {@code ca_gst_hst}, {@code 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}, or {@code unknown}.
* {@code th_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code li_uid}, {@code li_vat},
* {@code my_itn}, {@code us_ein}, {@code kr_brn}, {@code ca_qst}, {@code ca_gst_hst}, {@code
* 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}, or
* {@code unknown}.
*/
@SerializedName("type")
String type;
Expand Down
34 changes: 33 additions & 1 deletion src/main/java/com/stripe/model/PaymentIntent.java
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,11 @@ public class PaymentIntent extends ApiResource implements HasId, MetadataStore<P
@Setter(lombok.AccessLevel.NONE)
ExpandableField<PaymentMethod> paymentMethod;

/** Information about the payment method configuration used for this PaymentIntent. */
/**
* Information about the <a
* href="https://stripe.com/docs/api/payment_method_configurations">payment method
* configuration</a> used for this PaymentIntent.
*/
@SerializedName("payment_method_configuration_details")
PaymentMethodConfigurationDetails paymentMethodConfigurationDetails;

Expand Down Expand Up @@ -1822,10 +1826,24 @@ public static class FinancialAddress extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Aba extends StripeObject {
@SerializedName("account_holder_address")
Address accountHolderAddress;

/** The account holder name. */
@SerializedName("account_holder_name")
String accountHolderName;

/** The ABA account number. */
@SerializedName("account_number")
String accountNumber;

/** The account type. */
@SerializedName("account_type")
String accountType;

@SerializedName("bank_address")
Address bankAddress;

/** The bank name. */
@SerializedName("bank_name")
String bankName;
Expand Down Expand Up @@ -1901,10 +1919,24 @@ public static class Spei extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Swift extends StripeObject {
@SerializedName("account_holder_address")
Address accountHolderAddress;

/** The account holder name. */
@SerializedName("account_holder_name")
String accountHolderName;

/** The account number. */
@SerializedName("account_number")
String accountNumber;

/** The account type. */
@SerializedName("account_type")
String accountType;

@SerializedName("bank_address")
Address bankAddress;

/** The bank name. */
@SerializedName("bank_name")
String bankName;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/stripe/model/PaymentLink.java
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ public class PaymentLink extends ApiResource implements HasId, MetadataStore<Pay
* Indicates the type of transaction being performed which customizes relevant text on the page,
* such as the submit button.
*
* <p>One of {@code auto}, {@code book}, {@code donate}, or {@code pay}.
* <p>One of {@code auto}, {@code book}, {@code donate}, {@code pay}, or {@code subscribe}.
*/
@SerializedName("submit_type")
String submitType;
Expand Down
11 changes: 6 additions & 5 deletions src/main/java/com/stripe/model/PaymentMethod.java
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,7 @@ public static class Boleto extends StripeObject {
public static class Card extends StripeObject {
/**
* Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code
* jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}.
* jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}.
*/
@SerializedName("brand")
String brand;
Expand Down Expand Up @@ -1039,7 +1039,8 @@ public static class CardPresent extends StripeObject {

/**
* Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au},
* {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}.
* {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or
* {@code unknown}.
*/
@SerializedName("brand")
String brand;
Expand Down Expand Up @@ -1151,8 +1152,8 @@ public static class CardPresent extends StripeObject {
/**
* Identifies which network this charge was processed on. Can be {@code amex}, {@code
* cartes_bancaires}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code
* interac}, {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code
* unknown}.
* interac}, {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code
* visa}, or {@code unknown}.
*/
@SerializedName("network")
String network;
Expand Down Expand Up @@ -1503,7 +1504,7 @@ public static class VisaCheckout extends StripeObject {
public static class CardPresent extends StripeObject {
/**
* Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code
* jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}.
* jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}.
*/
@SerializedName("brand")
String brand;
Expand Down
Loading
Loading