From 7f8b0e796757d8382e07c4517b2b5ebca2169fa6 Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 18 Sep 2024 09:10:00 -0700 Subject: [PATCH] Update generated code (#1866) * Update generated code for v1254 * Update generated code for v1261 * Update generated code for v1263 * Update generated code for v1266 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> --- OPENAPI_VERSION | 2 +- src/main/java/com/stripe/model/Account.java | 10 +- .../java/com/stripe/model/BankAccount.java | 10 +- .../java/com/stripe/model/Capability.java | 10 +- src/main/java/com/stripe/model/Charge.java | 32 ++- src/main/java/com/stripe/model/Dispute.java | 18 +- src/main/java/com/stripe/model/Invoice.java | 9 + .../model/InvoiceRenderingTemplate.java | 5 + src/main/java/com/stripe/model/Person.java | 10 +- .../java/com/stripe/model/StripeError.java | 1 + .../com/stripe/model/tax/Registration.java | 34 +++ .../param/tax/RegistrationCreateParams.java | 240 +++++++++++++++++- 12 files changed, 357 insertions(+), 24 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index b39b96e3790..1f205edf7b1 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1259 \ No newline at end of file +v1266 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/Account.java b/src/main/java/com/stripe/model/Account.java index 8602fba26ff..67ad20ce8ef 100644 --- a/src/main/java/com/stripe/model/Account.java +++ b/src/main/java/com/stripe/model/Account.java @@ -1772,8 +1772,9 @@ public static class Errors extends StripeObject { * verification_failed_residential_address}, {@code verification_failed_tax_id_match}, {@code * verification_failed_tax_id_not_issued}, {@code verification_missing_directors}, {@code * verification_missing_executives}, {@code verification_missing_owners}, {@code - * verification_requires_additional_memorandum_of_associations}, or {@code - * verification_requires_additional_proof_of_registration}. + * verification_requires_additional_memorandum_of_associations}, {@code + * verification_requires_additional_proof_of_registration}, or {@code + * verification_supportability}. */ @SerializedName("code") String code; @@ -1940,8 +1941,9 @@ public static class Errors extends StripeObject { * verification_failed_residential_address}, {@code verification_failed_tax_id_match}, {@code * verification_failed_tax_id_not_issued}, {@code verification_missing_directors}, {@code * verification_missing_executives}, {@code verification_missing_owners}, {@code - * verification_requires_additional_memorandum_of_associations}, or {@code - * verification_requires_additional_proof_of_registration}. + * verification_requires_additional_memorandum_of_associations}, {@code + * verification_requires_additional_proof_of_registration}, or {@code + * verification_supportability}. */ @SerializedName("code") String code; diff --git a/src/main/java/com/stripe/model/BankAccount.java b/src/main/java/com/stripe/model/BankAccount.java index a6b6e5a44ca..c0ee9156f8b 100644 --- a/src/main/java/com/stripe/model/BankAccount.java +++ b/src/main/java/com/stripe/model/BankAccount.java @@ -589,8 +589,9 @@ public static class Errors extends StripeObject { * verification_failed_residential_address}, {@code verification_failed_tax_id_match}, {@code * verification_failed_tax_id_not_issued}, {@code verification_missing_directors}, {@code * verification_missing_executives}, {@code verification_missing_owners}, {@code - * verification_requires_additional_memorandum_of_associations}, or {@code - * verification_requires_additional_proof_of_registration}. + * verification_requires_additional_memorandum_of_associations}, {@code + * verification_requires_additional_proof_of_registration}, or {@code + * verification_supportability}. */ @SerializedName("code") String code; @@ -706,8 +707,9 @@ public static class Errors extends StripeObject { * verification_failed_residential_address}, {@code verification_failed_tax_id_match}, {@code * verification_failed_tax_id_not_issued}, {@code verification_missing_directors}, {@code * verification_missing_executives}, {@code verification_missing_owners}, {@code - * verification_requires_additional_memorandum_of_associations}, or {@code - * verification_requires_additional_proof_of_registration}. + * verification_requires_additional_memorandum_of_associations}, {@code + * verification_requires_additional_proof_of_registration}, or {@code + * verification_supportability}. */ @SerializedName("code") String code; diff --git a/src/main/java/com/stripe/model/Capability.java b/src/main/java/com/stripe/model/Capability.java index 38866e2689a..3d62d9f46a8 100644 --- a/src/main/java/com/stripe/model/Capability.java +++ b/src/main/java/com/stripe/model/Capability.java @@ -285,8 +285,9 @@ public static class Errors extends StripeObject { * verification_failed_residential_address}, {@code verification_failed_tax_id_match}, {@code * verification_failed_tax_id_not_issued}, {@code verification_missing_directors}, {@code * verification_missing_executives}, {@code verification_missing_owners}, {@code - * verification_requires_additional_memorandum_of_associations}, or {@code - * verification_requires_additional_proof_of_registration}. + * verification_requires_additional_memorandum_of_associations}, {@code + * verification_requires_additional_proof_of_registration}, or {@code + * verification_supportability}. */ @SerializedName("code") String code; @@ -454,8 +455,9 @@ public static class Errors extends StripeObject { * verification_failed_residential_address}, {@code verification_failed_tax_id_match}, {@code * verification_failed_tax_id_not_issued}, {@code verification_missing_directors}, {@code * verification_missing_executives}, {@code verification_missing_owners}, {@code - * verification_requires_additional_memorandum_of_associations}, or {@code - * verification_requires_additional_proof_of_registration}. + * verification_requires_additional_memorandum_of_associations}, {@code + * verification_requires_additional_proof_of_registration}, or {@code + * verification_supportability}. */ @SerializedName("code") String code; diff --git a/src/main/java/com/stripe/model/Charge.java b/src/main/java/com/stripe/model/Charge.java index 8037a22dae2..40cffbd08fc 100644 --- a/src/main/java/com/stripe/model/Charge.java +++ b/src/main/java/com/stripe/model/Charge.java @@ -927,7 +927,7 @@ public Charge update(ChargeUpdateParams params, RequestOptions options) throws S public static class BillingDetails extends StripeObject { /** Billing address. */ @SerializedName("address") - Address address; + com.stripe.model.Address address; /** Email address. */ @SerializedName("email") @@ -1962,7 +1962,7 @@ public static class Masterpass extends StripeObject { * or mutated. */ @SerializedName("billing_address") - Address billingAddress; + com.stripe.model.Address billingAddress; /** * Owner's verified email. Values are verified or provided by the wallet directly (if @@ -1984,7 +1984,7 @@ public static class Masterpass extends StripeObject { * or mutated. */ @SerializedName("shipping_address") - Address shippingAddress; + com.stripe.model.Address shippingAddress; } @Getter @@ -2002,7 +2002,7 @@ public static class VisaCheckout extends StripeObject { * or mutated. */ @SerializedName("billing_address") - Address billingAddress; + com.stripe.model.Address billingAddress; /** * Owner's verified email. Values are verified or provided by the wallet directly (if @@ -2024,7 +2024,7 @@ public static class VisaCheckout extends StripeObject { * or mutated. */ @SerializedName("shipping_address") - Address shippingAddress; + com.stripe.model.Address shippingAddress; } } } @@ -2661,6 +2661,10 @@ public static class Receipt extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class Klarna extends StripeObject { + /** The payer details for this transaction. */ + @SerializedName("payer_details") + PayerDetails payerDetails; + /** * The Klarna payment method used for this transaction. Can be one of {@code pay_later}, * {@code pay_now}, {@code pay_with_financing}, or {@code pay_in_installments} @@ -2681,6 +2685,24 @@ public static class Klarna extends StripeObject { */ @SerializedName("preferred_locale") String preferredLocale; + + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class PayerDetails extends StripeObject { + /** The payer's address. */ + @SerializedName("address") + com.stripe.model.Charge.PaymentMethodDetails.Klarna.PayerDetails.Address address; + + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Address extends StripeObject { + /** The payer address country. */ + @SerializedName("country") + String country; + } + } } @Getter diff --git a/src/main/java/com/stripe/model/Dispute.java b/src/main/java/com/stripe/model/Dispute.java index 1caa8abf901..b8448412e7e 100644 --- a/src/main/java/com/stripe/model/Dispute.java +++ b/src/main/java/com/stripe/model/Dispute.java @@ -795,6 +795,9 @@ public static class EvidenceDetails extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class PaymentMethodDetails extends StripeObject { + @SerializedName("amazon_pay") + AmazonPay amazonPay; + @SerializedName("card") Card card; @@ -807,11 +810,24 @@ public static class PaymentMethodDetails extends StripeObject { /** * Payment method type. * - *
One of {@code card}, {@code klarna}, or {@code paypal}. + *
One of {@code amazon_pay}, {@code card}, {@code klarna}, or {@code paypal}. */ @SerializedName("type") String type; + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class AmazonPay extends StripeObject { + /** + * The AmazonPay dispute type, chargeback or claim + * + *
One of {@code chargeback}, or {@code claim}.
+ */
+ @SerializedName("dispute_type")
+ String disputeType;
+ }
+
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
diff --git a/src/main/java/com/stripe/model/Invoice.java b/src/main/java/com/stripe/model/Invoice.java
index e18b7e949cc..1e95ff9de66 100644
--- a/src/main/java/com/stripe/model/Invoice.java
+++ b/src/main/java/com/stripe/model/Invoice.java
@@ -156,6 +156,15 @@ public class Invoice extends ApiResource implements HasId, MetadataStore One of {@code local_use_tax}, {@code simplified_sellers_use_tax}, or {@code
+ * single_local_use_tax}.
+ */
+ @SerializedName("type")
+ String type;
+ }
+ }
}
@Getter
diff --git a/src/main/java/com/stripe/param/tax/RegistrationCreateParams.java b/src/main/java/com/stripe/param/tax/RegistrationCreateParams.java
index e0d288d9d1a..4aa133fe8bc 100644
--- a/src/main/java/com/stripe/param/tax/RegistrationCreateParams.java
+++ b/src/main/java/com/stripe/param/tax/RegistrationCreateParams.java
@@ -8698,6 +8698,10 @@ public static class Us {
@SerializedName("state")
String state;
+ /** Options for the state sales tax registration. */
+ @SerializedName("state_sales_tax")
+ StateSalesTax stateSalesTax;
+
/** Required. Type of registration to be created in the US. */
@SerializedName("type")
Type type;
@@ -8707,11 +8711,13 @@ private Us(
LocalAmusementTax localAmusementTax,
LocalLeaseTax localLeaseTax,
String state,
+ StateSalesTax stateSalesTax,
Type type) {
this.extraParams = extraParams;
this.localAmusementTax = localAmusementTax;
this.localLeaseTax = localLeaseTax;
this.state = state;
+ this.stateSalesTax = stateSalesTax;
this.type = type;
}
@@ -8728,12 +8734,19 @@ public static class Builder {
private String state;
+ private StateSalesTax stateSalesTax;
+
private Type type;
/** Finalize and obtain parameter instance from this builder. */
public RegistrationCreateParams.CountryOptions.Us build() {
return new RegistrationCreateParams.CountryOptions.Us(
- this.extraParams, this.localAmusementTax, this.localLeaseTax, this.state, this.type);
+ this.extraParams,
+ this.localAmusementTax,
+ this.localLeaseTax,
+ this.state,
+ this.stateSalesTax,
+ this.type);
}
/**
@@ -8787,6 +8800,13 @@ public Builder setState(String state) {
return this;
}
+ /** Options for the state sales tax registration. */
+ public Builder setStateSalesTax(
+ RegistrationCreateParams.CountryOptions.Us.StateSalesTax stateSalesTax) {
+ this.stateSalesTax = stateSalesTax;
+ return this;
+ }
+
/** Required. Type of registration to be created in the US. */
public Builder setType(RegistrationCreateParams.CountryOptions.Us.Type type) {
this.type = type;
@@ -8960,6 +8980,224 @@ public Builder setJurisdiction(String jurisdiction) {
}
}
+ @Getter
+ public static class StateSalesTax {
+ /** Required. Elections for the state sales tax registration. */
+ @SerializedName("elections")
+ List