Skip to content

Commit

Permalink
Update generated code (#1866)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
stripe-openapi[bot] authored Sep 18, 2024
1 parent 6841d41 commit 7f8b0e7
Show file tree
Hide file tree
Showing 12 changed files with 357 additions and 24 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1259
v1266
10 changes: 6 additions & 4 deletions src/main/java/com/stripe/model/Account.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
10 changes: 6 additions & 4 deletions src/main/java/com/stripe/model/BankAccount.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
10 changes: 6 additions & 4 deletions src/main/java/com/stripe/model/Capability.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
32 changes: 27 additions & 5 deletions src/main/java/com/stripe/model/Charge.java
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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
Expand All @@ -1984,7 +1984,7 @@ public static class Masterpass extends StripeObject {
* or mutated.
*/
@SerializedName("shipping_address")
Address shippingAddress;
com.stripe.model.Address shippingAddress;
}

@Getter
Expand All @@ -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
Expand All @@ -2024,7 +2024,7 @@ public static class VisaCheckout extends StripeObject {
* or mutated.
*/
@SerializedName("shipping_address")
Address shippingAddress;
com.stripe.model.Address shippingAddress;
}
}
}
Expand Down Expand Up @@ -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}
Expand All @@ -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
Expand Down
18 changes: 17 additions & 1 deletion src/main/java/com/stripe/model/Dispute.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -807,11 +810,24 @@ public static class PaymentMethodDetails extends StripeObject {
/**
* Payment method type.
*
* <p>One of {@code card}, {@code klarna}, or {@code paypal}.
* <p>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
*
* <p>One of {@code chargeback}, or {@code claim}.
*/
@SerializedName("dispute_type")
String disputeType;
}

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
Expand Down
9 changes: 9 additions & 0 deletions src/main/java/com/stripe/model/Invoice.java
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,15 @@ public class Invoice extends ApiResource implements HasId, MetadataStore<Invoice
@SerializedName("automatic_tax")
AutomaticTax automaticTax;

/**
* The time when this invoice is currently scheduled to be automatically finalized. The field will
* be {@code null} if the invoice is not scheduled to finalize in the future. If the invoice is
* not in the draft state, this field will always be {@code null} - see {@code finalized_at} for
* the time when an already-finalized invoice was finalized.
*/
@SerializedName("automatically_finalizes_at")
Long automaticallyFinalizesAt;

/**
* Indicates the reason why the invoice was created.
*
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/com/stripe/model/InvoiceRenderingTemplate.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
import lombok.Getter;
import lombok.Setter;

/**
* Invoice Rendering Templates are used to configure how invoices are rendered on surfaces like the
* PDF. Invoice Rendering Templates can be created from within the Dashboard, and they can be used
* over the API when creating invoices.
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
Expand Down
10 changes: 6 additions & 4 deletions src/main/java/com/stripe/model/Person.java
Original file line number Diff line number Diff line change
Expand Up @@ -524,8 +524,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;
Expand Down Expand Up @@ -718,8 +719,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;
Expand Down
1 change: 1 addition & 0 deletions src/main/java/com/stripe/model/StripeError.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ public class StripeError extends StripeObject {
* status_transition_invalid}, {@code stripe_tax_inactive}, {@code tax_id_invalid}, {@code
* taxes_calculation_failed}, {@code terminal_location_country_unsupported}, {@code
* terminal_reader_busy}, {@code terminal_reader_hardware_fault}, {@code
* terminal_reader_invalid_location_for_activation}, {@code
* terminal_reader_invalid_location_for_payment}, {@code terminal_reader_offline}, {@code
* terminal_reader_timeout}, {@code testmode_charges_only}, {@code tls_version_unsupported},
* {@code token_already_used}, {@code token_card_network_invalid}, {@code token_in_use}, {@code
Expand Down
34 changes: 34 additions & 0 deletions src/main/java/com/stripe/model/tax/Registration.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import com.stripe.param.tax.RegistrationListParams;
import com.stripe.param.tax.RegistrationRetrieveParams;
import com.stripe.param.tax.RegistrationUpdateParams;
import java.util.List;
import java.util.Map;
import lombok.EqualsAndHashCode;
import lombok.Getter;
Expand Down Expand Up @@ -1571,6 +1572,9 @@ public static class Us extends StripeObject {
@SerializedName("state")
String state;

@SerializedName("state_sales_tax")
StateSalesTax stateSalesTax;

/**
* Type of registration in the US.
*
Expand Down Expand Up @@ -1603,6 +1607,36 @@ public static class LocalLeaseTax extends StripeObject {
@SerializedName("jurisdiction")
String jurisdiction;
}

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class StateSalesTax extends StripeObject {
/** Elections for the state sales tax registration. */
@SerializedName("elections")
List<Registration.CountryOptions.Us.StateSalesTax.Election> elections;

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Election extends StripeObject {
/**
* A <a href="https://www.census.gov/library/reference/code-lists/ansi.html">FIPS code</a>
* representing the local jurisdiction.
*/
@SerializedName("jurisdiction")
String jurisdiction;

/**
* The type of the election for the state sales tax registration.
*
* <p>One of {@code local_use_tax}, {@code simplified_sellers_use_tax}, or {@code
* single_local_use_tax}.
*/
@SerializedName("type")
String type;
}
}
}

@Getter
Expand Down
Loading

0 comments on commit 7f8b0e7

Please sign in to comment.