Skip to content
Open
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 CODEGEN_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2feaeea9e3c2b01dd5b7e4092d8364af4bf1e740
9e950cbf7b5a814a98f27d1a94b72cd6f1df2078
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2190
v2202
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
[![JavaDoc](http://img.shields.io/badge/javadoc-reference-blue.svg)](https://stripe.dev/stripe-java)
[![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)

> [!TIP]
> Want to chat live with Stripe engineers? Join us on our [Discord server](https://stripe.com/go/discord/java).

The official [Stripe][stripe] Java client library.

## Installation
Expand Down
12 changes: 12 additions & 0 deletions src/main/java/com/stripe/StripeClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,18 @@ public com.stripe.service.MarginService margins() {
return new com.stripe.service.MarginService(this.getResponseGetter());
}

/**
* @deprecated StripeClient.orchestration() is deprecated, use StripeClient.v1().orchestration()
* instead. All functionality under it has been copied over to
* StripeClient.v1().orchestration(). See <a
* href="https://github.com/stripe/stripe-java/wiki/v1-namespace-in-StripeClient">migration
* guide</a> for more on this and tips on migrating to the new v1 namespace.
*/
@Deprecated
public com.stripe.service.OrchestrationService orchestration() {
return new com.stripe.service.OrchestrationService(this.getResponseGetter());
}

/**
* @deprecated StripeClient.orders() is deprecated, use StripeClient.v1().orders() instead. All
* functionality under it has been copied over to StripeClient.v1().orders(). See <a
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/com/stripe/model/EventDataClassLookup.java
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,9 @@ public final class EventDataClassLookup {
classLookup.put("issuing.token", com.stripe.model.issuing.Token.class);
classLookup.put("issuing.transaction", com.stripe.model.issuing.Transaction.class);

classLookup.put(
"orchestration.payment_attempt", com.stripe.model.orchestration.PaymentAttempt.class);

classLookup.put("privacy.redaction_job", com.stripe.model.privacy.RedactionJob.class);
classLookup.put(
"privacy.redaction_job_validation_error",
Expand All @@ -225,6 +228,7 @@ public final class EventDataClassLookup {
"product_catalog.trial_offer", com.stripe.model.productcatalog.TrialOffer.class);

classLookup.put("radar.account_evaluation", com.stripe.model.radar.AccountEvaluation.class);
classLookup.put("radar.customer_evaluation", com.stripe.model.radar.CustomerEvaluation.class);
classLookup.put("radar.early_fraud_warning", com.stripe.model.radar.EarlyFraudWarning.class);
classLookup.put(
"radar.issuing_authorization_evaluation",
Expand Down
32 changes: 8 additions & 24 deletions src/main/java/com/stripe/model/InvoiceItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -546,9 +546,9 @@ public InvoiceItem update(InvoiceItemUpdateParams params, RequestOptions options
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Parent extends StripeObject {
/** Details about the license fee subscription that generated this invoice item. */
@SerializedName("license_fee_subscription_details")
LicenseFeeSubscriptionDetails licenseFeeSubscriptionDetails;
/** Details about the pricing plan subscription that generated this invoice item. */
@SerializedName("pricing_plan_subscription_details")
PricingPlanSubscriptionDetails pricingPlanSubscriptionDetails;

/** Details about the rate card subscription that generated this invoice item. */
@SerializedName("rate_card_subscription_details")
Expand All @@ -565,33 +565,25 @@ public static class Parent extends StripeObject {
/**
* The type of parent that generated this invoice item
*
* <p>One of {@code license_fee_subscription_details}, {@code rate_card_subscription_details},
* <p>One of {@code pricing_plan_subscription_details}, {@code rate_card_subscription_details},
* {@code schedule_details}, or {@code subscription_details}.
*/
@SerializedName("type")
String type;

/**
* For more details about LicenseFeeSubscriptionDetails, please refer to the <a
* For more details about PricingPlanSubscriptionDetails, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class LicenseFeeSubscriptionDetails extends StripeObject {
/** The license fee subscription that generated this invoice item. */
@SerializedName("license_fee_subscription")
String licenseFeeSubscription;

/** The license fee version that generated this invoice item. */
@SerializedName("license_fee_version")
String licenseFeeVersion;

/** The pricing plan subscription that manages the license fee subscription. */
public static class PricingPlanSubscriptionDetails extends StripeObject {
/** The pricing plan subscription that manages this charge. */
@SerializedName("pricing_plan_subscription")
String pricingPlanSubscription;

/** The pricing plan version at the time this invoice item was generated. */
/** The pricing plan version at the time this charge was generated. */
@SerializedName("pricing_plan_version")
String pricingPlanVersion;
}
Expand All @@ -604,14 +596,6 @@ public static class LicenseFeeSubscriptionDetails extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class RateCardSubscriptionDetails extends StripeObject {
/** The pricing plan subscription that manages the rate card subscription. */
@SerializedName("pricing_plan_subscription")
String pricingPlanSubscription;

/** The pricing plan version at the time this invoice item was generated. */
@SerializedName("pricing_plan_version")
String pricingPlanVersion;

/** The rate card subscription that generated this invoice item. */
@SerializedName("rate_card_subscription")
String rateCardSubscription;
Expand Down
32 changes: 8 additions & 24 deletions src/main/java/com/stripe/model/InvoiceLineItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -401,9 +401,9 @@ public static class Parent extends StripeObject {
@SerializedName("invoice_item_details")
InvoiceItemDetails invoiceItemDetails;

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

/** Details about the rate card subscription that generated this line item. */
@SerializedName("rate_card_subscription_details")
Expand All @@ -420,7 +420,7 @@ public static class Parent extends StripeObject {
/**
* The type of parent that generated this line item
*
* <p>One of {@code invoice_item_details}, {@code license_fee_subscription_details}, {@code
* <p>One of {@code invoice_item_details}, {@code pricing_plan_subscription_details}, {@code
* rate_card_subscription_details}, {@code schedule_details}, or {@code
* subscription_item_details}.
*/
Expand Down Expand Up @@ -486,30 +486,22 @@ public static class CreditedItems extends StripeObject {
}

/**
* For more details about LicenseFeeSubscriptionDetails, please refer to the <a
* For more details about PricingPlanSubscriptionDetails, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class LicenseFeeSubscriptionDetails extends StripeObject {
public static class PricingPlanSubscriptionDetails extends StripeObject {
/** The invoice item that generated this line item. */
@SerializedName("invoice_item")
String invoiceItem;

/** The license fee subscription that generated this line item. */
@SerializedName("license_fee_subscription")
String licenseFeeSubscription;

/** The license fee version at the time this line item was generated. */
@SerializedName("license_fee_version")
String licenseFeeVersion;

/** The pricing plan subscription that manages the license fee subscription. */
/** The pricing plan subscription that manages this charge. */
@SerializedName("pricing_plan_subscription")
String pricingPlanSubscription;

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

/** The pricing plan subscription that manages the rate card subscription. */
@SerializedName("pricing_plan_subscription")
String pricingPlanSubscription;

/** The pricing plan version at the time this line item was generated. */
@SerializedName("pricing_plan_version")
String pricingPlanVersion;

/** The rate card subscription that generated this line item. */
@SerializedName("rate_card_subscription")
String rateCardSubscription;
Expand Down
Loading