stripe-java
stripe-java copied to clipboard
Java library for the Stripe API.
Codegen for openapi v183. r? @pakrym-stripe cc @stripe/api-libraries ## Changelog * Add support for new resource `CustomerCashBalanceTransaction` * Remove support for value `paypal` from enums `OrderCreateParams.payment.settings.payment_method_types[]` and `OrderUpdateParams.payment.settings.payment_method_types[]` * Add...
### Describe the bug When trying to debug EventDataObjectDeserializer public Optional getObject() I hit comment lines. ### To Reproduce 1. Using Maven add dependency 20.128.0 2. Create a Java snippet:...
Updates the lombok plugin to get the most recent Lombok stable in an attempt to fix https://github.com/stripe/stripe-java/issues/1371#issuecomment-1168977414. This will include some Lombok changes which fix delombok output not matching. Note...
### Is your feature request related to a problem? Please describe. I am using Kotlin and the use of the builders provided on these classes is overly verbose. ### Describe...
Tracking issue for supporting other libraries for JSON (de)serialization. We've had a number of requests over the years to do this, so will be using this as the main feature...
Please add "Automatic-Module-Name" manifest entry, defining a stable, future-proof module name. This will allow us on Java 9+ to use the API with confidence. The module name will typically be...
### Is your feature request related to a problem? Please describe. The `EventData` class which is defined in the `Event` object has a member `object` of type `JsonObject` which is...
I have recently changed some code so that it no longer uses [PaymentIntent.html#create(Map)](https://stripe.dev/stripe-java/com/stripe/model/PaymentIntent.html#create(java.util.Map)) and instead uses [PaymentIntent.html#create(PaymentIntentCreateParams)](https://stripe.dev/stripe-java/com/stripe/model/PaymentIntent.html#create(com.stripe.param.PaymentIntentCreateParams)). This latter is a bit more type-safe, which is nice. I have noticed...
### Describe the bug [handleApiError](https://github.com/stripe/stripe-java/blob/ecb791f567f85377f60b272eb9f7a4d91bfb67b7/src/main/java/com/stripe/net/LiveStripeResponseGetter.java#L203) maps all 402 status code responses to `CardException`. We have received responses that in the Stripe dashboard are "type": "invalid_request_error", but result in a `CardException`....
Right now we are using status codes to determine the exception type which causes issues like https://github.com/stripe/stripe-java/issues/1358 where `invalid_request_error` was returned with `402` status code. Change the error-handling logic to...