Skip to content

Commit

Permalink
Merge pull request #1870 from stripe/latest-codegen-beta
Browse files Browse the repository at this point in the history
Update generated code for beta
  • Loading branch information
stripe-openapi[bot] committed Sep 18, 2024
2 parents 1ab1f99 + 8b3be8e commit bf26cbe
Show file tree
Hide file tree
Showing 25 changed files with 429 additions and 833 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## 26.12.0 - 2024-09-18
* [#1866](https://github.com/stripe/stripe-java/pull/1866) Update generated code
* Add support for `payer_details` on `Charge.payment_method_details.klarna`
* Add support for `amazon_pay` on `Dispute.payment_method_details`
* Add support for `automatically_finalizes_at` on `Invoice`
* Add support for `state_sales_tax` on `Tax.Registration.country_options.us` and `tax.RegistrationCreateParams.country_options.us`

## 26.12.0-beta.1 - 2024-09-13
* [#1862](https://github.com/stripe/stripe-java/pull/1862) Update generated code for beta
* Add support for new resources `Issuing.DisputeSettlementDetail` and `Issuing.Settlement`
Expand All @@ -9,6 +16,14 @@
* Add support for `settlement` on `Issuing.Transaction` and `issuing.TransactionListParams`
* Add support for new values `issuing_dispute_settlement_detail.created`, `issuing_dispute_settlement_detail.updated`, `issuing_settlement.created`, and `issuing_settlement.updated` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]`

## 26.11.0 - 2024-09-12
* [#1864](https://github.com/stripe/stripe-java/pull/1864) Update generated code
* Add support for new resource `InvoiceRenderingTemplate`
* Add support for `archive`, `list`, `retrieve`, and `unarchive` methods on resource `InvoiceRenderingTemplate`
* Add support for `required` on `Checkout.Session.tax_id_collection`, `PaymentLink.tax_id_collection`, `PaymentLinkCreateParams.tax_id_collection`, `PaymentLinkUpdateParams.tax_id_collection`, and `checkout.SessionCreateParams.tax_id_collection`
* Add support for `template` on `Customer.invoice_settings.rendering_options`, `CustomerCreateParams.invoice_settings.rendering_options`, `CustomerUpdateParams.invoice_settings.rendering_options`, `Invoice.rendering`, `InvoiceCreateParams.rendering`, and `InvoiceUpdateParams.rendering`
* Add support for `template_version` on `Invoice.rendering`, `InvoiceCreateParams.rendering`, and `InvoiceUpdateParams.rendering`

## 26.11.0-beta.1 - 2024-09-05
* [#1859](https://github.com/stripe/stripe-java/pull/1859) Update generated code for beta
* Add support for `recipients` on `AccountSessionCreateParams.components`
Expand Down
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1259
v1267
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 @@ -3,5 +3,5 @@

final class ApiVersion {
public static final String CURRENT = "2024-06-20";
public static final String PREVIEW_CURRENT = "2024-09-05.preview-v2";
public static final String PREVIEW_CURRENT = "cs_ubb_launch";
}
4 changes: 0 additions & 4 deletions src/main/java/com/stripe/StripeClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -275,10 +275,6 @@ public com.stripe.service.PromotionCodeService promotionCodes() {
return new com.stripe.service.PromotionCodeService(this.getResponseGetter());
}

public com.stripe.service.QuotePhaseService quotePhases() {
return new com.stripe.service.QuotePhaseService(this.getResponseGetter());
}

public com.stripe.service.QuoteService quotes() {
return new com.stripe.service.QuoteService(this.getResponseGetter());
}
Expand Down
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 @@ -1854,8 +1854,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 @@ -2022,8 +2023,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
36 changes: 29 additions & 7 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 @@ -1987,7 +1987,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 @@ -2009,7 +2009,7 @@ public static class Masterpass extends StripeObject {
* or mutated.
*/
@SerializedName("shipping_address")
Address shippingAddress;
com.stripe.model.Address shippingAddress;
}

@Getter
Expand All @@ -2027,7 +2027,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 @@ -2049,7 +2049,7 @@ public static class VisaCheckout extends StripeObject {
* or mutated.
*/
@SerializedName("shipping_address")
Address shippingAddress;
com.stripe.model.Address shippingAddress;
}
}
}
Expand Down Expand Up @@ -2686,6 +2686,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 @@ -2706,6 +2710,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 Expand Up @@ -2880,7 +2902,7 @@ public static class Paypal extends StripeObject {
* address on the PaymentIntent after the PaymentIntent was successfully confirmed.
*/
@SerializedName("shipping")
Address shipping;
com.stripe.model.Address shipping;

/** A unique ID generated by PayPal for this transaction. */
@SerializedName("transaction_id")
Expand All @@ -2892,7 +2914,7 @@ public static class Paypal extends StripeObject {
* address on the PaymentIntent after the PaymentIntent was successfully confirmed.
*/
@SerializedName("verified_address")
Address verifiedAddress;
com.stripe.model.Address verifiedAddress;

/**
* Owner's verified email. Values are verified or provided by PayPal directly (if supported)
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 @@ -1022,6 +1022,9 @@ public static class VisaCompellingEvidence3 extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class PaymentMethodDetails extends StripeObject {
@SerializedName("amazon_pay")
AmazonPay amazonPay;

@SerializedName("card")
Card card;

Expand All @@ -1034,11 +1037,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
1 change: 0 additions & 1 deletion src/main/java/com/stripe/model/EventDataClassLookup.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ final class EventDataClassLookup {
classLookup.put("promotion_code", PromotionCode.class);
classLookup.put("quote", Quote.class);
classLookup.put("quote_line", QuoteLine.class);
classLookup.put("quote_phase", QuotePhase.class);
classLookup.put("quote_preview_invoice", QuotePreviewInvoice.class);
classLookup.put("quote_preview_subscription_schedule", QuotePreviewSubscriptionSchedule.class);
classLookup.put("refund", Refund.class);
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 @@ -165,6 +165,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
Loading

0 comments on commit bf26cbe

Please sign in to comment.