Skip to content

Commit 7dc924d

Browse files
Merge pull request #2177 from stripe/latest-codegen-private-preview
Update generated code for private-preview
2 parents 7e3397f + 909a0b8 commit 7dc924d

48 files changed

Lines changed: 5946 additions & 219 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CODEGEN_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2feaeea9e3c2b01dd5b7e4092d8364af4bf1e740
1+
9e950cbf7b5a814a98f27d1a94b72cd6f1df2078

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2190
1+
v2202

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
[![JavaDoc](http://img.shields.io/badge/javadoc-reference-blue.svg)](https://stripe.dev/stripe-java)
55
[![Build Status](https://github.com/stripe/stripe-java/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/stripe/stripe-java/actions?query=branch%3Amaster)
66

7+
> [!TIP]
8+
> Want to chat live with Stripe engineers? Join us on our [Discord server](https://stripe.com/go/discord/java).
9+
710
The official [Stripe][stripe] Java client library.
811

912
## Installation

src/main/java/com/stripe/StripeClient.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,18 @@ public com.stripe.service.MarginService margins() {
634634
return new com.stripe.service.MarginService(this.getResponseGetter());
635635
}
636636

637+
/**
638+
* @deprecated StripeClient.orchestration() is deprecated, use StripeClient.v1().orchestration()
639+
* instead. All functionality under it has been copied over to
640+
* StripeClient.v1().orchestration(). See <a
641+
* href="https://github.com/stripe/stripe-java/wiki/v1-namespace-in-StripeClient">migration
642+
* guide</a> for more on this and tips on migrating to the new v1 namespace.
643+
*/
644+
@Deprecated
645+
public com.stripe.service.OrchestrationService orchestration() {
646+
return new com.stripe.service.OrchestrationService(this.getResponseGetter());
647+
}
648+
637649
/**
638650
* @deprecated StripeClient.orders() is deprecated, use StripeClient.v1().orders() instead. All
639651
* functionality under it has been copied over to StripeClient.v1().orders(). See <a

src/main/java/com/stripe/model/EventDataClassLookup.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,9 @@ public final class EventDataClassLookup {
216216
classLookup.put("issuing.token", com.stripe.model.issuing.Token.class);
217217
classLookup.put("issuing.transaction", com.stripe.model.issuing.Transaction.class);
218218

219+
classLookup.put(
220+
"orchestration.payment_attempt", com.stripe.model.orchestration.PaymentAttempt.class);
221+
219222
classLookup.put("privacy.redaction_job", com.stripe.model.privacy.RedactionJob.class);
220223
classLookup.put(
221224
"privacy.redaction_job_validation_error",
@@ -225,6 +228,7 @@ public final class EventDataClassLookup {
225228
"product_catalog.trial_offer", com.stripe.model.productcatalog.TrialOffer.class);
226229

227230
classLookup.put("radar.account_evaluation", com.stripe.model.radar.AccountEvaluation.class);
231+
classLookup.put("radar.customer_evaluation", com.stripe.model.radar.CustomerEvaluation.class);
228232
classLookup.put("radar.early_fraud_warning", com.stripe.model.radar.EarlyFraudWarning.class);
229233
classLookup.put(
230234
"radar.issuing_authorization_evaluation",

src/main/java/com/stripe/model/InvoiceItem.java

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -546,9 +546,9 @@ public InvoiceItem update(InvoiceItemUpdateParams params, RequestOptions options
546546
@Setter
547547
@EqualsAndHashCode(callSuper = false)
548548
public static class Parent extends StripeObject {
549-
/** Details about the license fee subscription that generated this invoice item. */
550-
@SerializedName("license_fee_subscription_details")
551-
LicenseFeeSubscriptionDetails licenseFeeSubscriptionDetails;
549+
/** Details about the pricing plan subscription that generated this invoice item. */
550+
@SerializedName("pricing_plan_subscription_details")
551+
PricingPlanSubscriptionDetails pricingPlanSubscriptionDetails;
552552

553553
/** Details about the rate card subscription that generated this invoice item. */
554554
@SerializedName("rate_card_subscription_details")
@@ -565,33 +565,25 @@ public static class Parent extends StripeObject {
565565
/**
566566
* The type of parent that generated this invoice item
567567
*
568-
* <p>One of {@code license_fee_subscription_details}, {@code rate_card_subscription_details},
568+
* <p>One of {@code pricing_plan_subscription_details}, {@code rate_card_subscription_details},
569569
* {@code schedule_details}, or {@code subscription_details}.
570570
*/
571571
@SerializedName("type")
572572
String type;
573573

574574
/**
575-
* For more details about LicenseFeeSubscriptionDetails, please refer to the <a
575+
* For more details about PricingPlanSubscriptionDetails, please refer to the <a
576576
* href="https://docs.stripe.com/api">API Reference.</a>
577577
*/
578578
@Getter
579579
@Setter
580580
@EqualsAndHashCode(callSuper = false)
581-
public static class LicenseFeeSubscriptionDetails extends StripeObject {
582-
/** The license fee subscription that generated this invoice item. */
583-
@SerializedName("license_fee_subscription")
584-
String licenseFeeSubscription;
585-
586-
/** The license fee version that generated this invoice item. */
587-
@SerializedName("license_fee_version")
588-
String licenseFeeVersion;
589-
590-
/** The pricing plan subscription that manages the license fee subscription. */
581+
public static class PricingPlanSubscriptionDetails extends StripeObject {
582+
/** The pricing plan subscription that manages this charge. */
591583
@SerializedName("pricing_plan_subscription")
592584
String pricingPlanSubscription;
593585

594-
/** The pricing plan version at the time this invoice item was generated. */
586+
/** The pricing plan version at the time this charge was generated. */
595587
@SerializedName("pricing_plan_version")
596588
String pricingPlanVersion;
597589
}
@@ -604,14 +596,6 @@ public static class LicenseFeeSubscriptionDetails extends StripeObject {
604596
@Setter
605597
@EqualsAndHashCode(callSuper = false)
606598
public static class RateCardSubscriptionDetails extends StripeObject {
607-
/** The pricing plan subscription that manages the rate card subscription. */
608-
@SerializedName("pricing_plan_subscription")
609-
String pricingPlanSubscription;
610-
611-
/** The pricing plan version at the time this invoice item was generated. */
612-
@SerializedName("pricing_plan_version")
613-
String pricingPlanVersion;
614-
615599
/** The rate card subscription that generated this invoice item. */
616600
@SerializedName("rate_card_subscription")
617601
String rateCardSubscription;

src/main/java/com/stripe/model/InvoiceLineItem.java

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -401,9 +401,9 @@ public static class Parent extends StripeObject {
401401
@SerializedName("invoice_item_details")
402402
InvoiceItemDetails invoiceItemDetails;
403403

404-
/** Details about the license fee subscription that generated this line item. */
405-
@SerializedName("license_fee_subscription_details")
406-
LicenseFeeSubscriptionDetails licenseFeeSubscriptionDetails;
404+
/** Details about the pricing plan subscription that generated this line item. */
405+
@SerializedName("pricing_plan_subscription_details")
406+
PricingPlanSubscriptionDetails pricingPlanSubscriptionDetails;
407407

408408
/** Details about the rate card subscription that generated this line item. */
409409
@SerializedName("rate_card_subscription_details")
@@ -420,7 +420,7 @@ public static class Parent extends StripeObject {
420420
/**
421421
* The type of parent that generated this line item
422422
*
423-
* <p>One of {@code invoice_item_details}, {@code license_fee_subscription_details}, {@code
423+
* <p>One of {@code invoice_item_details}, {@code pricing_plan_subscription_details}, {@code
424424
* rate_card_subscription_details}, {@code schedule_details}, or {@code
425425
* subscription_item_details}.
426426
*/
@@ -486,30 +486,22 @@ public static class CreditedItems extends StripeObject {
486486
}
487487

488488
/**
489-
* For more details about LicenseFeeSubscriptionDetails, please refer to the <a
489+
* For more details about PricingPlanSubscriptionDetails, please refer to the <a
490490
* href="https://docs.stripe.com/api">API Reference.</a>
491491
*/
492492
@Getter
493493
@Setter
494494
@EqualsAndHashCode(callSuper = false)
495-
public static class LicenseFeeSubscriptionDetails extends StripeObject {
495+
public static class PricingPlanSubscriptionDetails extends StripeObject {
496496
/** The invoice item that generated this line item. */
497497
@SerializedName("invoice_item")
498498
String invoiceItem;
499499

500-
/** The license fee subscription that generated this line item. */
501-
@SerializedName("license_fee_subscription")
502-
String licenseFeeSubscription;
503-
504-
/** The license fee version at the time this line item was generated. */
505-
@SerializedName("license_fee_version")
506-
String licenseFeeVersion;
507-
508-
/** The pricing plan subscription that manages the license fee subscription. */
500+
/** The pricing plan subscription that manages this charge. */
509501
@SerializedName("pricing_plan_subscription")
510502
String pricingPlanSubscription;
511503

512-
/** The pricing plan version at the time this line item was generated. */
504+
/** The pricing plan version at the time this charge was generated. */
513505
@SerializedName("pricing_plan_version")
514506
String pricingPlanVersion;
515507
}
@@ -526,14 +518,6 @@ public static class RateCardSubscriptionDetails extends StripeObject {
526518
@SerializedName("invoice_item")
527519
String invoiceItem;
528520

529-
/** The pricing plan subscription that manages the rate card subscription. */
530-
@SerializedName("pricing_plan_subscription")
531-
String pricingPlanSubscription;
532-
533-
/** The pricing plan version at the time this line item was generated. */
534-
@SerializedName("pricing_plan_version")
535-
String pricingPlanVersion;
536-
537521
/** The rate card subscription that generated this line item. */
538522
@SerializedName("rate_card_subscription")
539523
String rateCardSubscription;

0 commit comments

Comments
 (0)