Skip to content

Commit

Permalink
Bump version to 22.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pakrym-stripe committed Nov 17, 2022
1 parent 957f44f commit d73c84b
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 11 deletions.
15 changes: 11 additions & 4 deletions CHANGELOG.md
@@ -1,5 +1,12 @@
# Changelog

## 22.1.0 - 2022-11-17
* [#1480](https://github.com/stripe/stripe-java/pull/1480) API Updates
* Add support for `hosted_instructions_url` on `PaymentIntent.next_action.wechat_pay_display_qr_code`
* [#1479](https://github.com/stripe/stripe-java/pull/1479) API Updates
* Add support for `custom_text` on `Checkout.Session`, `CheckoutSessionCreateParams`, `PaymentLinkCreateParams`, `PaymentLinkUpdateParams`, and `PaymentLink`
* Add support for `hosted_instructions_url` on `PaymentIntent.next_action.paynow_display_qr_code`

## 22.0.0 - 2022-11-16
* [#1471](https://github.com/stripe/stripe-java/pull/1471) Next major release changes

Expand All @@ -9,14 +16,14 @@ Breaking changes that arose during code generation of the library that we postpo

- ⚠️ Inline several "shared" classes for consistency (#1455)
- ⚠️ Removed `LineItem.Product` property that was released by mistake. (#1456)
- ⚠️ Removed `Charges` property on `PaymentIntent` and replace it with `LatestCharge` (#1473)
- ⚠️ Removed `Charges` property on `PaymentIntent` and replace it with `LatestCharge` (#1473)
- ⚠️ Removed deprecated `Amount`, `Currency`, `Description`, `Images`, `Name` properties from `SessionCreateParams.LineItem` (#1473)
- ⚠️ Remove support for `tos_shown_and_accepted` on `CheckoutSessionCreateParams.payment_method_options.paynow` (#1473)
- ⚠️ Removed deprecated `Sku` resource (#1459)
- ⚠️ Removed `RequestOptions.getStripeVersionOverride`, `RequestOptions.setStripeVersionOverride`, and `RequestOptions.clearStripeVersionOverride` (#1464)

Use of `setStripeVersionOverride` is discouraged and can lead to unexpected errors during service calls because Java SDK class shapes are not guaranteed to match API responses on arbitrary versions.

If you were using these methods in conjunction with `EphemeralKey` resource prefer the `EphemeralKeyCreateParamsBuilder.setStripeVersion`.
```java
EphemeralKeyCreateParams params = EphemeralKeyCreateParams.builder()
Expand All @@ -33,8 +40,8 @@ builder.setApiKey(...)
RequestOptionsBuilder.unsafeSetStripeVersionOverride(builder, "2022-11-15");
```
* [#1474](https://github.com/stripe/stripe-java/pull/1474) API Updates
* ⚠️ Remove support for `tos_shown_and_accepted` on `CheckoutSessionCreateParams.payment_method_options.paynow`. The property was mistakenly released and never worked.
* ⚠️ Remove support for `tos_shown_and_accepted` on `CheckoutSessionCreateParams.payment_method_options.paynow`. The property was mistakenly released and never worked.


## 21.15.0 - 2022-11-08
* [#1472](https://github.com/stripe/stripe-java/pull/1472) API Updates
Expand Down
8 changes: 4 additions & 4 deletions README.md
@@ -1,6 +1,6 @@
# Stripe Java client library

[![Maven Central](https://img.shields.io/badge/maven--central-v22.0.0-blue)](https://mvnrepository.com/artifact/com.stripe/stripe-java)
[![Maven Central](https://img.shields.io/badge/maven--central-v22.1.0-blue)](https://mvnrepository.com/artifact/com.stripe/stripe-java)
[![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)
[![Coverage Status](https://coveralls.io/repos/github/stripe/stripe-java/badge.svg?branch=master)](https://coveralls.io/github/stripe/stripe-java?branch=master)
Expand All @@ -18,7 +18,7 @@ The official [Stripe][stripe] Java client library.
Add this dependency to your project's build file:

```groovy
implementation "com.stripe:stripe-java:22.0.0"
implementation "com.stripe:stripe-java:22.1.0"
```

### Maven users
Expand All @@ -29,15 +29,15 @@ Add this dependency to your project's POM:
<dependency>
<groupId>com.stripe</groupId>
<artifactId>stripe-java</artifactId>
<version>22.0.0</version>
<version>22.1.0</version>
</dependency>
```

### Others

You'll need to manually install the following JARs:

- [The Stripe JAR](https://search.maven.org/remotecontent?filepath=com/stripe/stripe-java/22.0.0/stripe-java-22.0.0.jar)
- [The Stripe JAR](https://search.maven.org/remotecontent?filepath=com/stripe/stripe-java/22.1.0/stripe-java-22.1.0.jar)
- [Google Gson][gson] from <https://repo1.maven.org/maven2/com/google/code/gson/gson/2.9.0/gson-2.9.0.jar>.

### [ProGuard][proguard]
Expand Down
2 changes: 1 addition & 1 deletion VERSION
@@ -1 +1 @@
22.0.0
22.1.0
2 changes: 1 addition & 1 deletion gradle.properties
@@ -1,5 +1,5 @@
GROUP=com.stripe
VERSION_NAME=22.0.0
VERSION_NAME=22.1.0

POM_URL=https://github.com/stripe/stripe-java
POM_SCM_URL=git@github.com:stripe/stripe-java.git
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/stripe/Stripe.java
Expand Up @@ -13,7 +13,7 @@ public abstract class Stripe {
public static final String CONNECT_API_BASE = "https://connect.stripe.com";
public static final String LIVE_API_BASE = "https://api.stripe.com";
public static final String UPLOAD_API_BASE = "https://files.stripe.com";
public static final String VERSION = "22.0.0";
public static final String VERSION = "22.1.0";

public static volatile String apiKey;
public static volatile String clientId;
Expand Down

0 comments on commit d73c84b

Please sign in to comment.