instance_id stringlengths 10 65 | repo stringlengths 5 59 | pr_number int64 1 313k | task_type stringclasses 1
value | base_commit stringlengths 40 40 | review_commit stringlengths 40 40 | title stringlengths 2 282 | body stringlengths 7 3k | patch stringlengths 202 204k | n_defects int64 1 72 | n_supported int64 1 65 | n_major int64 0 32 | defects stringlengths 140 18.8k | certifier_count int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
stripe__stripe-go__1779 | stripe/stripe-go | 1,779 | defect | 9d2c8250b4b61553bfb74e0e63106bf3cd155a39 | 86d641d22fa539e17663ed601bd37f4d3fb481b7 | Track usage of `raw_request` | ## Summary
- Adds infrastructure for reporting `usage` to `X-Stripe-Client-Telemetry`, without breaking changes to the public interface.
- Reports usage for `raw_request` in the beta branch.
## Details
### Release
The first commit [Usage infrastructure](https://github.com/stripe/stripe-go/commit/7527cae42f2f4e... | diff --git a/params.go b/params.go
index 7d56c2b063..a70616e41c 100644
--- a/params.go
+++ b/params.go
@@ -207,6 +207,8 @@ type Params struct {
// account instead of under the account of the owner of the configured
// Stripe key.
StripeAccount *string `form:"-"` // Passed as header
+
+ usage []string `form:"-"` /... | 4 | 4 | 1 | [{"id": "G0", "claim": "SetUsage should be renamed to something scarier (InternalSetUsage), and possibly made receiverless, to signal it is internal-only.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The telemetry assertions appended to TestRawRequestP... | null |
stripe__stripe-go__1780 | stripe/stripe-go | 1,780 | defect | e04b08317ffe124af2aaaf82c28d59201a8d6a6a | 7dc1293a8ed763a403179c245c290c0695ad6e84 | Usage telemetry infrastructure | Contains the parts of https://github.com/stripe/stripe-go/pull/1779 that can be included in the master branch. | diff --git a/README.md b/README.md
index fbb41baffb..79aa5de0ff 100644
--- a/README.md
+++ b/README.md
@@ -458,10 +458,11 @@ This information is passed along when the library makes calls to the Stripe
API. Note that while `Name` is always required, `URL` and `Version` are
optional.
-### Request latency telemetry
+#... | 2 | 2 | 0 | [{"id": "G0", "claim": "The usage assertion in TestCall_TelemetryEnabled should be validated next to the RequestDurationMS validation instead of after the request loop.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The top-level telemetry varia... | null |
stripe__stripe-go__2133 | stripe/stripe-go | 2,133 | defect | 878f43d58a30b4668c58d02392ea97e18df093bd | 9ebf6881d88fdaaf8bd75997f2ff9e0f2396700e | Add `stripe.Context` object | ### Why?
As the `stripe-context` header is evolving, we want to give better tools for creating and managing contexts. This PR adds a new class, `StripeContext`. It can be used anywhere the context option is supplied and gets serialized to a string when making requests. It's also found on the `EventNotification.conte... | diff --git a/event_notification.go b/event_notification.go
index 52bc7ba06f..6e1e4ba8b7 100644
--- a/event_notification.go
+++ b/event_notification.go
@@ -22,20 +22,23 @@ type V2EventNotification struct {
// Time at which the event was created
Created time.Time `json:"created"`
// [Optional] Authentication contex... | 6 | 4 | 2 | [{"id": "G0", "claim": "The PR should not add a separate SetStripeContextObject method alongside SetStripeContext (prefer a single method), and the new method should take a StripeContext value rather than *StripeContext so no nil-check is needed.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope"... | null |
stripe__stripe-go__2161 | stripe/stripe-go | 2,161 | defect | ffed16d1c576108cd38e9efb3fd7bbba673869f9 | 421041f61490925a13c4ca62bb3df1a686ca187d | Return clearer error when calling `ConstructEvent` on an event notification | ### Why?
<!-- Describe why this change is being made. Briefly include history and context, high-level what this PR does, and what the world looks like afterward. -->
In https://github.com/stripe/stripe-go/issues/2159, a user got a confusing JSON unmarshaling error when trying to parse an event notification using the... | diff --git a/webhook/client.go b/webhook/client.go
index 08e9c2079c..67d6c8314e 100644
--- a/webhook/client.go
+++ b/webhook/client.go
@@ -218,6 +218,10 @@ func constructEvent(payload []byte, sigHeader string, secret string, options Con
return e, err
}
+ if err := checkThinEvent(payload); err != nil {
+ return ... | 4 | 3 | 1 | [{"id": "G0", "claim": "The new code, comments, error message and test names should say 'event notification' instead of the outdated 'thin event' terminology.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new check function is duplicated ve... | null |
stripe__stripe-go__2178 | stripe/stripe-go | 2,178 | defect | 521a14f266b332471f56d021213cb97f8f92f80a | 2276d80eda2bf11fd7cd7bb037de9f6472ac0009 | Add context-aware logging interface and update logger usage | Adds `ContextLeveledLoggerInterface` to enable distributed tracing integration.
## Summary
- Adds new `ContextLeveledLoggerInterface` with context-aware logging methods
- Backend checks interface type on each log call and passes context when supported
- Fully backward compatible with existing `LeveledLoggerInte... | diff --git a/context_logger_test.go b/context_logger_test.go
new file mode 100644
index 0000000000..bf3723311a
--- /dev/null
+++ b/context_logger_test.go
@@ -0,0 +1,300 @@
+package stripe
+
+import (
+ "bytes"
+ "context"
+ "io"
+ "net/http"
+ "testing"
+
+ assert "github.com/stretchr/testify/require"
+)
+
+// Test tha... | 10 | 10 | 8 | [{"id": "G0", "claim": "newBackendImplementation should panic when config.LeveledLogger is non-nil but implements neither logger interface, instead of silently ignoring it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "BackendImplementation is expo... | null |
stripe__stripe-go__2183 | stripe/stripe-go | 2,183 | defect | 521a14f266b332471f56d021213cb97f8f92f80a | 5b51db73c1a27503b41bf39dedf3ce87b4fa7129 | Added flat_array structtag to V2 APIs to fix query param encoding | ### Why?
See V2 form encoding problem in Go reported in https://github.com/stripe/stripe-go/issues/2181
### What?
- In V2(url query params) we want the arrays to be encoded flat as `foo=bar&foo=baz`.
- In V1, arrays are still index-encoded as `foo[0]=bar&foo[1]=baz`.
### Test Plan
- [x] All changes in PR are... | diff --git a/billing_metereventsummary.go b/billing_metereventsummary.go
index c66ca6f069..5d3faaf6d3 100644
--- a/billing_metereventsummary.go
+++ b/billing_metereventsummary.go
@@ -9,7 +9,8 @@ package stripe
// Retrieve a list of billing meter event summaries.
type BillingMeterEventSummaryListParams struct {
List... | 3 | 2 | 1 | [{"id": "G0", "claim": "The pull request pulls in some unrelated generated changes (mostly descriptions and tests), and the reviewer asks whether that was intentional.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The extra validation ensuring ... | null |
stripe__stripe-go__2212 | stripe/stripe-go | 2,212 | defect | cc212c2ba9623134291d37661bc09b534a359446 | 3c09d17527ba99a38b0bd06d3932bece4a552bda | Fix segfault in `BackendImplementation.handleResponseBufferingErrors` | ### Why?
`BackendImplementation.handleResponseBufferingErrors` may segfault due to a nil pointer dereference.
### What?
- Fix a segmentation fault in `BackendImplementation.handleResponseBufferingErrors` by returning `io.NopCloser(&bytes.Buffer{})` in case `res` is nil
### See Also
- See https://github.com/s... | diff --git a/stripe.go b/stripe.go
index 17e32113d7..1f0a2e1e2f 100644
--- a/stripe.go
+++ b/stripe.go
@@ -781,7 +781,10 @@ func (s *BackendImplementation) handleResponseBufferingErrors(res *http.Response
// Some sort of connection error
if err != nil {
s.LeveledLogger.Errorf("Request failed with error: %v", err... | 1 | 1 | 0 | [{"id": "G0", "claim": "Replace the added nil-response special-casing in handleResponseBufferingErrors with the simpler unconditional `return nil, err` on the connection-error path, since checking that res is non-nil is unnecessary.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introd... | null |
stripe__stripe-go__2238 | stripe/stripe-go | 2,238 | defect | 20e91b05259b0b913488339aecff5655cf2155ec | 99f079f4f4f2d7a2f61a5813143734e01c667f14 | ⚠️ Fix passing context to EventNotificationHandler callbacks & update example | ### Why?
<!-- Describe why this change is being made. Briefly include history and context, high-level what this PR does, and what the world looks like afterward. -->
The hosted docs were a little late merging, so I wanted to make sure they got linked in the changelog. Plus I added the fully-working example from th... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5fc3e56706..ca4e1fe022 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,7 @@
This release changes the pinned API version to `2025-12-15.preview`.
* [#2209](https://github.com/stripe/stripe-go/pull/2209) Add EventNotificationHandler
+ * This is a new, simplified... | 3 | 3 | 1 | [{"id": "G0", "claim": "In the example, handler.Handle should be passed the incoming HTTP request's context (handler.Handle(req.Context(), ...)) instead of context.TODO().", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new CHANGELOG entry's docu... | null |
stripe__stripe-go__2240 | stripe/stripe-go | 2,240 | defect | e79462c1aed739c3e34ba6f763f8cab839651c8a | c142d8597120d5ebaf78a047a0542f8f892d8271 | Add HTTP response code to V2 Error | ### Why?
<!-- Describe why this change is being made. Briefly include history and context, high-level what this PR does, and what the world looks like afterward. -->
We did an audit of V2 error-handling across our SDKs, and realized that in V2 APIs, Go users do not receive the HTTP Status Code like they do with V1 A... | diff --git a/error.go b/error.go
index f76b44e67a..8e3c533bb5 100644
--- a/error.go
+++ b/error.go
@@ -453,6 +453,10 @@ type V2RawError struct {
Type *ErrorType `json:"type,omitempty"`
Message string `json:"message"`
UserMesage *string `json:"user_message,omitempty"`
+ // HTTPStatusCode is the HTT... | 1 | 1 | 0 | [{"id": "G0", "claim": "The comment \"RequestID is the request ID of the response.\" is a bit confusing to read (as is the HTTPStatusCode comment); the reviewer suggests rewording the field comments along the lines used in stripe-java.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "i... | null |
stripe__stripe-go__2320 | stripe/stripe-go | 2,320 | defect | 3d96a1d1278a32be8f6fef593a4be0df4804d60e | ce9d360935c54c5d62889b3a0593bcc69dc1c092 | ⚠️ Throw an error when using the wrong webhook parsing method | ### Why?
<!-- Describe why this change is being made. Briefly include history and context, high-level what this PR does, and what the world looks like afterward. -->
When users call the wrong webhook parsing method, the call usually works, but happily gives them a malformed object for their troubles. Rather than fai... | diff --git a/justfile b/justfile
index 941cee9ff9..1b8076a583 100644
--- a/justfile
+++ b/justfile
@@ -8,8 +8,8 @@ export PATH := home_directory() + "/go/bin:" + env('PATH')
_default:
just --list --unsorted
-# ⭐ run format, lint, and tests to prepare for CI
-prepare: format lint test
+# ⭐ run format, lint, and ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The linting change (removing lint from the justfile prepare recipe) is scope creep and should be pulled into a separate PR or called out in the PR description.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
stripe__stripe-go__633 | stripe/stripe-go | 633 | defect | caa0c20f2d6e91fce56f6812b1e02f94bc67accb | 842069243a310c1a182156a55f8d209fcab3df3e | Fix encoding of list params for bank accounts and cards | Fixes a bug discovered in #632 whereby because we were manually adding a
filter like `?object=bank_account` to the end of paths, we'd clash with
the `form` package's attempt at an encoding if both came into play. This
would have the effect of producing an invalid URL like this:
```
/accounts/acc_xxxxxx/external_... | diff --git a/bankaccount.go b/bankaccount.go
index 0f25ef2353..0056d21e05 100644
--- a/bankaccount.go
+++ b/bankaccount.go
@@ -125,6 +125,10 @@ type BankAccountListParams struct {
Customer *string `form:"-"`
}
+func (p *BankAccountListParams) AppendTo(body *form.Values, keyParts []string) {
+ body.Add(form.FormatK... | 2 | 2 | 1 | [{"id": "G0", "claim": "The second card AppendTo test case meant to exercise the customer/sources branch wrongly sets Account instead of Customer, so the customer case is never tested.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new TestBankAccou... | null |
stripe__stripe-go__644 | stripe/stripe-go | 644 | defect | 9ef95c0dd16526e40992b9117592f7f9d0276a3e | 183dde3d6d450383e7303891e3061d9a475d5a4a | Add the File Link resource | r? @ob-stripe @brandur-stripe
cc @stripe/api-libraries | diff --git a/.travis.yml b/.travis.yml
index fae982ad5e..3ab667c2c6 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -30,7 +30,7 @@ cache:
env:
global:
# If changing this number, please also change it in `testing/testing.go`.
- - STRIPE_MOCK_VERSION=0.24.0
+ - STRIPE_MOCK_VERSION=0.25.0
go:
- "1.7"
di... | 2 | 2 | 1 | [{"id": "G0", "claim": "The PR author should justify why FileLink needs a custom UnmarshalJSON implementation (i.e., whether file link is expanded in any other class).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A filelink_test.go should be a... | null |
stripe__stripe-go__657 | stripe/stripe-go | 657 | defect | 27f40155bd27cd8878f1660e6c86bbc3a316a898 | c662f427b0b043587f84cddde046922fb24d37fe | Integer-index encode all arrays | Changes all arrays from classic Rack encoding:
``` sh
arr[]=...&arr[]=...&arr[]=...
```
To integer-indexed encoding:
``` sh
arr[0]=...&arr[1]=...&arr[2]=...
```
See some additional background in: https://github.com/stripe/stripe-ruby/pull/674
cc @stevene-stripe @zanker-stripe | diff --git a/account.go b/account.go
index cb23cbeb7d..54bdfb55e6 100644
--- a/account.go
+++ b/account.go
@@ -126,7 +126,7 @@ type AccountParams struct {
// LegalEntityParams represents a legal_entity during account creation/updates.
type LegalEntityParams struct {
- AdditionalOwners []*AdditionalOwnerParams `form... | 2 | 2 | 0 | [{"id": "G0", "claim": "All of the form options could/should be removed in a cleanup, since the only one really used is `empty` (for additional_owners).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "All of the arrays whose encoding changed sh... | null |
stripe__stripe-go__659 | stripe/stripe-go | 659 | defect | 55b1f82b5a8a4e4a3608a3389b4437e71a398535 | a6d4156341693bf556c1605b42bc5e9851f7c643 | Remove editable bitcoin receiver actions | Removes the ability to use `New` and `Update` for bitcoin receivers. Tests pass!
```
» go test ./...
ok github.com/stripe/stripe-go 0.176s
ok github.com/stripe/stripe-go/account 0.081s
ok github.com/stripe/stripe-go/applepaydomain (cached)
ok github.com/stripe/stripe-go/balance 0.106s
ok github.com/s... | diff --git a/bitcoinreceiver.go b/bitcoinreceiver.go
index c046a205bb..f0d88b9fcc 100644
--- a/bitcoinreceiver.go
+++ b/bitcoinreceiver.go
@@ -23,16 +23,6 @@ type BitcoinReceiverParams struct {
Email *string `form:"email"`
}
-// BitcoinReceiverUpdateParams is the set of parameters that can be used when
-// u... | 1 | 1 | 1 | [{"id": "G0", "claim": "BitcoinReceiverParams should be removed as well, since it is no longer needed once the editable bitcoin receiver actions are gone.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
stripe__stripe-go__714 | stripe/stripe-go | 714 | defect | e2f967acf5f1f5b75ce29b3e633c082074359029 | 102038bf3b59fe394127158ee420ef3e87757ef2 | `Do` function panics when HTTPClient returns a nil response | This PR covers the scenario when `res, err = s.HTTPClient.Do(req)` results in `res` that is `nil` (https://github.com/stripe/stripe-go/blob/master/stripe.go#L341 ). This can happen for example in case of timeout.
* a test was added to verify no panic in case of timeout
* in the `Do` function an additional check was... | diff --git a/stripe.go b/stripe.go
index 39a52f6aa9..f1a87bfd18 100644
--- a/stripe.go
+++ b/stripe.go
@@ -351,13 +351,21 @@ func (s *BackendImplementation) Do(req *http.Request, body *bytes.Buffer, v inte
break
}
- resBody, err := ioutil.ReadAll(res.Body)
- res.Body.Close()
- if err != nil {
- if s.LogLe... | 13 | 11 | 2 | [{"id": "G0", "claim": "The comment explaining why the code checks res instead of err is unclear — it should say the response and error are returned as nil, and the 'Go 1 compatibility' wording should be explained or dropped.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"... | null |
stripe__stripe-go__766 | stripe/stripe-go | 766 | defect | 56973504bd2b8a4072b3e0d11fbbda5ced6f521d | 8678a5528931a2d00ae49acca5f35ed64be187b8 | Add Stripe client telemetry to request headers | Follows https://github.com/stripe/stripe-ruby/pull/696, https://github.com/stripe/stripe-php/pull/549, and https://github.com/stripe/stripe-python/pull/518 in adding telemetry metadata to request headers.
The telemetry is disabled by default, and can be enabled per-client like so:
```go
backend := stripe.GetBac... | diff --git a/stripe.go b/stripe.go
index ae76197327..7977c00ff4 100644
--- a/stripe.go
+++ b/stripe.go
@@ -67,6 +67,10 @@ var LogLevel = 2
// be overridden if a backend is created with GetBackendWithConfig.
var Logger Printfer
+// EnableTelemetry allows request metrics (request id and duration) to be sent
+// to St... | 9 | 8 | 3 | [{"id": "G0", "claim": "Add a blank line above the lastRequestMetrics field declaration so it is not read as part of the same group as networkRetriesSleep.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Rename the exported RequestMetrics type to... | null |
stripe__stripe-go__818 | stripe/stripe-go | 818 | defect | 47c947c4104d6b5c1ef0cdfc33366f8485cfddcd | ebf8aecb5884964085dcd6504c0dd7d47a489d34 | Implement leveled logging | Implements leveled logging for the Stripe library which has two main
benefits:
1. Greatly cleans up our logging call sites and makes them more
readable.
2. Allows standard loggers seen in the Go ecosystem to be easily plugged
into the library. [Logrus][logrus] for example.
See the additions in the README for us... | diff --git a/README.md b/README.md
index d9a396e9e2..409f16b6f8 100644
--- a/README.md
+++ b/README.md
@@ -297,6 +297,43 @@ coupon, err := sc.Coupons.New(...)
[Idempotency keys][idempotency-keys] are added to requests to guarantee that
retries are safe.
+### Configuring Logging
+
+Configure logging using the global... | 4 | 3 | 1 | [{"id": "G0", "claim": "The \"Initiating retry %v ...\" message in BackendImplementation.Do should be logged at Warnf rather than Infof.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The successful response body (\"Response: %s\") should not be logged a... | null |
stripe__stripe-go__828 | stripe/stripe-go | 828 | defect | de0fb2f0aaec96fb4beb06b5d3249d5ac6a9ec03 | 49bb037301d7bc363921386321535a3e87770230 | Add support for TaxRate | This PR adds support for the `TaxRate` resource and APIs. It also modifies all relevant objects that are impacted by this new ship.
cc @stripe/api-libraries
cc @vihari-stripe @george-stripe | diff --git a/client/api.go b/client/api.go
index 8feb9ee1c8..46448ca213 100644
--- a/client/api.go
+++ b/client/api.go
@@ -57,6 +57,7 @@ import (
"github.com/stripe/stripe-go/subschedule"
"github.com/stripe/stripe-go/subschedulerevision"
"github.com/stripe/stripe-go/taxid"
+ "github.com/stripe/stripe-go/taxrate"
... | 1 | 1 | 1 | [{"id": "G0", "claim": "The TaxRate struct field Percentage should be tagged `json:\"percentage\"` instead of `json:\"percent_off\"`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
stripe__stripe-go__879 | stripe/stripe-go | 879 | defect | 6aca83757549f83a1c1ad926daec732c1bc66913 | 223de1e592335ef4d4b6d2a7c84802eef46f0440 | Add OAuth | r? @remi-stripe
Looking for some feedback:
1) Is this PR too big?
2) Is this a decent param passing approach? (I'm about 95% confident that I understand the reason for using pointers)
3) Is stubbing out the server like this ok to test the oauth flow since oauth isnt supported by stripe-mock?
Here's a sa... | diff --git a/client/api.go b/client/api.go
index 95d2ab8edf..27e07b4082 100644
--- a/client/api.go
+++ b/client/api.go
@@ -37,6 +37,7 @@ import (
issuingdispute "github.com/stripe/stripe-go/issuing/dispute"
"github.com/stripe/stripe-go/issuing/transaction"
"github.com/stripe/stripe-go/loginlink"
+ "github.com/str... | 14 | 13 | 5 | [{"id": "G0", "claim": "The scope type should be prefixed with OAuth (e.g. OAuthScopeType) so the generic name is safe in the stripe package.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The constants and struct fields in oauth.go (and everyth... | null |
stripe__stripe-go__906 | stripe/stripe-go | 906 | defect | eba483e5454378ca421986075bb20a8d624c91cd | ec116749bc1e3f753ac936c586de08a3b9ef2323 | Add decline code constants | Adding constants for code in https://stripe.com/docs/declines/codes | diff --git a/error.go b/error.go
index 9934c3c33c..6fd5c94652 100644
--- a/error.go
+++ b/error.go
@@ -18,6 +18,8 @@ const (
// ErrorCode is the list of allowed values for the error's code.
type ErrorCode string
+// DeclineCode is the list of reasons provided by card issuers for decline of payment.
+type DeclineCod... | 6 | 6 | 1 | [{"id": "G0", "claim": "The new constant should be named DeclineCodeApproveWithID instead of DeclineCodeApprovalWithID.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The decline-code constant list is missing the authentication_required value an... | null |
stripe__stripe-go__915 | stripe/stripe-go | 915 | defect | 97242797d5f06dcf71bd2a839070f598144db4d8 | 96e847a1559b0183cd8eb9326c45f1ee89b7a42c | Move to API version 2019-08-14 and other changes | * Pin to API version 2019-08-14
* Rename AccountCapabilityPlatformPayments to AccountCapabilityTransfers
* Add `Executive` in `PersonRelationship`
* Remove `PayentMethodOptions` as there was a typo which was fixed.
* Make `OffSession` only support booleans on `PaymentIntent`
* Remove `PaymentIntentLastPaymentError... | diff --git a/.travis.yml b/.travis.yml
index 0ca2a96040..0e5e0c6efc 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -33,7 +33,7 @@ cache:
env:
global:
# If changing this number, please also change it in `testing/testing.go`.
- - STRIPE_MOCK_VERSION=0.63.0
+ - STRIPE_MOCK_VERSION=0.64.0
go:
- "1.9.x"
... | 2 | 2 | 2 | [{"id": "G0", "claim": "The new Relationship field should be named Executive, not a second field named Director, since it carries the executive key.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Moving last_payment_error to the standard Error struc... | null |
stripe__stripe-go__967 | stripe/stripe-go | 967 | defect | dcaff9209dcf0af4224b442ea5c9ddbeefeb8b8e | 4ce5af6510edf0832659b978394aa026bf8fda80 | orderreturn.Get | This function was referenced in the apiref but lacked an implementation.
Could use some direction, on how to make consistently follow our standards.
I had to deviate from the naming convention for `OrderReturnResourceParams`, because `OrderReturnParams` is already occupied by the custom action on `order` called `re... | diff --git a/orderreturn.go b/orderreturn.go
index 61aba4510d..da8a12292e 100644
--- a/orderreturn.go
+++ b/orderreturn.go
@@ -2,6 +2,12 @@ package stripe
import "encoding/json"
+// OrderReturnResourceParams is the set of parameters that can be used when retrieving a transaction.
+// It is not to be confused with ... | 5 | 3 | 2 | [{"id": "G0", "claim": "The Get client should not introduce a new OrderReturnResourceParams class but should move the existing OrderReturnParams over to orderreturn.go and reuse it, as other clients do.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Whil... | null |
stripe__stripe-go__988 | stripe/stripe-go | 988 | defect | f33ce57ab63a26e8521940bde59a136d472e17f0 | d7fad7707c2d8fe0b6d770ef6a88360f07975a43 | Add `individual` and `company` to IssuingCardholder | Adds `Individual` and `Company` to `IssuingCardHolder`
Adds `PaymentMethodSepaDebitParams` for `PaymentMethodParams`
Bumps `stripe-mock` version to `0.74.0`
r? @remi-stripe
cc @stripe/api-libraries | diff --git a/.travis.yml b/.travis.yml
index 18502aff40..6a73a58226 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -33,7 +33,7 @@ cache:
env:
global:
# If changing this number, please also change it in `testing/testing.go`.
- - STRIPE_MOCK_VERSION=0.73.0
+ - STRIPE_MOCK_VERSION=0.74.0
go:
- "1.9.x"
... | 1 | 1 | 1 | [{"id": "G0", "claim": "The individual cardholder's DOB parameter and response fields re-use the shared DOBParams/DOB types, which are not shared in the API spec, so they should be duplicated as cardholder-specific types.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
stripe__stripe-go__998 | stripe/stripe-go | 998 | defect | a7084b6b022a913ae2d72c9b7e7f11f65d6456c7 | 3431f7d2c27aa450d74f0094bb88c91636a43b07 | Add support for `CreditNote` preview | Add the new preview endpoint on `CreditNote`. Also rename `OutOfBandAmount` which had a typo.
r? @ob-stripe
cc @stripe/api-libraries | diff --git a/.travis.yml b/.travis.yml
index 6a73a58226..f114414f84 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -33,7 +33,7 @@ cache:
env:
global:
# If changing this number, please also change it in `testing/testing.go`.
- - STRIPE_MOCK_VERSION=0.74.0
+ - STRIPE_MOCK_VERSION=0.76.0
go:
- "1.9.x"
... | 1 | 1 | 1 | [{"id": "G0", "claim": "The exported field misspelled as `OutOfBankdAmount` (S1) and then `OutOfBankAmount` (S2) in the new `CreditNotePreviewParams` struct should be named `OutOfBandAmount` to match its `out_of_band_amount` form tag.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "intr... | null |
stripe__stripe-java__117 | stripe/stripe-java | 117 | defect | 09939cc37c201d4285949866c0f2444a11fa8168 | 575c346322d901ed95a0a01aca80bb5c7a48dcf1 | Add shipping to the charge object | R: @jimdanz || @berg
cc: @anurag
The charge object[0] has a shipping field, but stripe-java wasn't updated to reflect the change.
[0] https://stripe.com/docs/api#charge_object
| diff --git a/src/main/java/com/stripe/model/Address.java b/src/main/java/com/stripe/model/Address.java
new file mode 100644
index 000000000000..0c2399951865
--- /dev/null
+++ b/src/main/java/com/stripe/model/Address.java
@@ -0,0 +1,110 @@
+package com.stripe.model;
+
+import com.stripe.net.APIResource;
+
+public final ... | 3 | 2 | 2 | [{"id": "G0", "claim": "Address should subclass StripeObject rather than APIResource, since it is not something the library has URLs for or knows how to fetch.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "ShippingDetails should likewise subclass Stripe... | null |
stripe__stripe-java__1207 | stripe/stripe-java | 1,207 | defect | fd91f7fac6ed88a7c0376eaa6c2ef5bed5ef5ee7 | bfca5584830d0137f462382bde3ba08f06dbd70c | Streaming requests | ## Notify
r? @dcr-stripe
cc @stripe/api-libraries
## Summary
Adds `ApiResource.requestStream`, which is like `ApiResource.request` except does not buffer the response body into memory and makes no attempt to deserialize the body. Instead, returns an `InputStream`.
Motivation: a `/pdf` endpoint is coming so... | diff --git a/src/main/java/com/stripe/net/ApiResource.java b/src/main/java/com/stripe/net/ApiResource.java
index e0e17307a4c..c23e7a5beed 100644
--- a/src/main/java/com/stripe/net/ApiResource.java
+++ b/src/main/java/com/stripe/net/ApiResource.java
@@ -22,6 +22,7 @@
import com.stripe.model.StripeRawJsonObject;
import... | 7 | 5 | 0 | [{"id": "G0", "claim": "The UnsupportedOperationException message in StripeResponseGetter.requestStream contains a stray semicolon and should read \"requestStream is unimplemented for this StripeResponseGetter\".", "category": "correctness", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1",... | null |
stripe__stripe-java__1278 | stripe/stripe-java | 1,278 | defect | 5434d3ec38253ef0b64e10fbf3b1bac3c65b3c28 | ae5b8782d0f2def172709b01b113b8b361747ed8 | API Updates | Codegen for openapi 90a7be7.
r? @richardm-stripe
cc @stripe/api-libraries
## Changelog
* Add support for `ownership_declaration` on `AccountUpdateParams.company`, `AccountCreateParams.company`, `Account.company`, and `TokenCreateParams.account.company`
* Add support for `proof_of_registration` on `AccountUpdateParams.... | diff --git a/src/main/java/com/stripe/model/Account.java b/src/main/java/com/stripe/model/Account.java
index 4faf47d99ee..1e8f5379b60 100644
--- a/src/main/java/com/stripe/model/Account.java
+++ b/src/main/java/com/stripe/model/Account.java
@@ -887,6 +887,13 @@ public static class Company extends StripeObject {
@S... | 2 | 2 | 1 | [{"id": "G0", "claim": "The nested class name `UBODeclaration` used for the `ownership_declaration` field is wrong and should be renamed.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `client_metadata` for `UBODeclaration->OwnershipDeclaration`... | null |
stripe__stripe-java__1326 | stripe/stripe-java | 1,326 | defect | 0dc78de999d0489a416888102184b1f972330e38 | f1d24dd0c3c663968c0d5141d591c7b25de5dad9 | Update search results types and remove beta warning | Adjusts the field name and removes beta comments.
https://jira.corp.stripe.com/browse/DEVSDK-524
r? @dcr-stripe
| diff --git a/src/main/java/com/stripe/model/SearchPagingIterable.java b/src/main/java/com/stripe/model/SearchPagingIterable.java
index f99803d35ff..6c8d0cd5334 100644
--- a/src/main/java/com/stripe/model/SearchPagingIterable.java
+++ b/src/main/java/com/stripe/model/SearchPagingIterable.java
@@ -5,8 +5,6 @@
/**
* Pr... | 1 | 1 | 0 | [{"id": "G0", "claim": "A test should be added for the iterator (SearchPagingIterator auto-pagination), if it is not too tricky to do.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
stripe__stripe-java__1401 | stripe/stripe-java | 1,401 | defect | 05846fa9bd51ce381a00dc8e94fb95b8202ad0c6 | bfb8272c284afbffb1d82667f89e16700670d90e | Check for API key in autoPagingIterable | r? @dcr-stripe @kamil-stripe
## Summary
Check that `apiKey` is set (either globally or via request options) in `StripeCollection.autoPagingIterable` and `StripeSearchResult.autoPagingIterable`, and throw an exception if it is not. | diff --git a/src/main/java/com/stripe/model/StripeCollection.java b/src/main/java/com/stripe/model/StripeCollection.java
index d592d4aa0c9..27dc8d38312 100644
--- a/src/main/java/com/stripe/model/StripeCollection.java
+++ b/src/main/java/com/stripe/model/StripeCollection.java
@@ -1,5 +1,7 @@
package com.stripe.model;
... | 3 | 3 | 3 | [{"id": "G0", "claim": "Throwing the checked AuthenticationException (extending StripeException/Exception) from autoPagingIterable is a substantial breaking change; a new unchecked exception type extending RuntimeException should be used instead.", "category": "design", "verdict": "supported", "priority": "P1", "scope"... | null |
stripe__stripe-java__1403 | stripe/stripe-java | 1,403 | defect | 05846fa9bd51ce381a00dc8e94fb95b8202ad0c6 | 6494aecdb9c988fbcfc4ea93de5e1036b7b16f57 | Delete deprecated files. | r? @kamil-stripe
## Changelog
* Delete the `CashBalance.retrieve` instance method and rename the `CashBalance.retrieveCashBalance` static method to `CashBalance.retrieve`.
* Previously if you had:
```
CashBalance.retrieveCashBalance(customerId)
```
this would become:
```
Cash... | diff --git a/src/main/java/com/stripe/model/CashBalance.java b/src/main/java/com/stripe/model/CashBalance.java
index 206696d01b1..2802bbb8289 100644
--- a/src/main/java/com/stripe/model/CashBalance.java
+++ b/src/main/java/com/stripe/model/CashBalance.java
@@ -6,7 +6,6 @@
import com.stripe.exception.StripeException;
... | 2 | 1 | 0 | [{"id": "G0", "claim": "The change to CashBalance.java seems to not be a straightforward removal of deprecated code — it also converts the retrieve instance methods into static methods, which the PR's title 'Delete deprecated files.' does not reflect.", "category": "documentation", "verdict": "supported", "priority": "... | null |
stripe__stripe-java__1424 | stripe/stripe-java | 1,424 | defect | 461c84fa2f27c2fc44b244281a11a857b48c98b5 | e5524c6264c8d8167da682e23819279b58930307 | Allow setting Stripe API Version on global configuration. | r? @pakrym-stripe
## Summary
Allows configuring `Stripe.stripeVersion` on a global-basis to specify beta headers.
For per-requests, `setStripeVersionOverride` can be used.
This also tweaks webhook version checking to ignore beta headers.
## Note
I tried to stick to the nomenclature used within strip... | diff --git a/src/main/java/com/stripe/Stripe.java b/src/main/java/com/stripe/Stripe.java
index a4c06e112f0..90e429d9a5f 100644
--- a/src/main/java/com/stripe/Stripe.java
+++ b/src/main/java/com/stripe/Stripe.java
@@ -20,6 +20,15 @@ public abstract class Stripe {
public static volatile boolean enableTelemetry = true;... | 2 | 2 | 0 | [{"id": "G0", "claim": "The @SuppressWarnings(\"StringSplitter\") annotation on apiVersionMatch is not required and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The version comparison should use substring instead of String.s... | null |
stripe__stripe-java__1457 | stripe/stripe-java | 1,457 | defect | 7c13c85f0c05c45c45eef68a0184c35f4ecbb4f6 | ba64a45bccbdafae779c841e64802941f6243e22 | Bugfix: Don't require global API Key when API Key is propagated from list request | Fixes https://github.com/stripe/stripe-java/issues/1454. No longer throw an exception when autopaginating a collection that has requestOptions.
Adds some test cases to PagingIteratorTest.java. The current behavior, which we should preserve, is that RequestOptions propagates (along with params) to the collection when... | diff --git a/src/main/java/com/stripe/model/StripeCollection.java b/src/main/java/com/stripe/model/StripeCollection.java
index 073e081ca2f..09057ec0914 100644
--- a/src/main/java/com/stripe/model/StripeCollection.java
+++ b/src/main/java/com/stripe/model/StripeCollection.java
@@ -59,7 +59,9 @@ public abstract class Str... | 6 | 4 | 0 | [{"id": "G0", "claim": "Leftover debug `System.out.println` statements remain in `StripeCollection.autoPagingIterable` and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new `pages` field appears to be used only inside `se... | null |
stripe__stripe-java__1464 | stripe/stripe-java | 1,464 | defect | eba85fb37efb71e2de77549cce6dbb06b72c11e6 | cde1e791a2bc3dd8b1c8e1fdcfd90f55a09aa30f | Remove `RequestOptions.setStripeVersionOverride` | ## Notify
cc @stripe/api-library-reviewers
## Summary
This PR removes `RequestOptions.setStripeVersionOverride`. There was only one supported use case for `setStripeVersionOverride`, for `EphemeralKey.create`. Now, users should
```java
EphemeralKeyCreateParams params = EphemeralKeyCreateParams.builder()
... | diff --git a/src/main/java/com/stripe/model/EphemeralKey.java b/src/main/java/com/stripe/model/EphemeralKey.java
index 1c7e2616cbd..d986bfb0725 100644
--- a/src/main/java/com/stripe/model/EphemeralKey.java
+++ b/src/main/java/com/stripe/model/EphemeralKey.java
@@ -5,6 +5,7 @@
import com.stripe.net.ApiResource;
import... | 4 | 2 | 0 | [{"id": "G0", "claim": "The internal setter `_setStripeVersionOverride` should not pollute IDE code completion — make it a static method and/or name it `unsafeSetStripeVersionOverride`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new `toBuilderFul... | null |
stripe__stripe-java__149 | stripe/stripe-java | 149 | defect | 37b447ccdb7552f260d554bcdd1ebd91d5ef2ac9 | 19fa8addfdf48aa76f8a7b04236be13cf6cffff7 | Add account retrieval by ID and support for lists in params | r? @jimdanz @bkrausz
Add account retrieval by ID and add a super basic (stubbed!) unit test. This is an example of how #148 will work.
TODO:
- [x] add more tests for `Account`
- [x] ~~add nested map support~~ (already exists)
- [x] add support for lists
- [x] add support for legal entity
- [x] verification
- [x]... | diff --git a/pom.xml b/pom.xml
index 673605c8ac1..b47188e9a25 100644
--- a/pom.xml
+++ b/pom.xml
@@ -25,6 +25,12 @@
<version>4.10</version>
<scope>test</scope>
</dependency>
+ <dependency>
+ <groupId>org.mockito</groupId>
+ <artifactId>mockito-all</artifac... | 11 | 9 | 3 | [{"id": "G0", "claim": "There are two different Verification objects - the top-level one on Accounts has fields_needed, due_by, and contacted while the one on LegalEntity and Owners has status, document, and details - so the PR's single Verification class conflates them and they should be separate classes.", "category"... | null |
stripe__stripe-java__1663 | stripe/stripe-java | 1,663 | defect | 7f9de1578302631d3a962356acea8d723f2429e7 | 35f16fe01c9c91898a8ebf9dbd4efde77fc72d2a | Flow type information further into autopagination requests | Fixes #1660.
## Explanation
Whereas `Subscription.list()` returns `SubscriptionCollection` (which implements `StripeCollection<Subscription>`), we decided that `stripeClient.subscriptions().list()` would return simply `StripeCollection<Subscription>`, in order to (in the future) prevent cluttering the library with ... | diff --git a/src/main/java/com/stripe/model/PagingIterator.java b/src/main/java/com/stripe/model/PagingIterator.java
index 9e4e0051a50..eb5c333302d 100644
--- a/src/main/java/com/stripe/model/PagingIterator.java
+++ b/src/main/java/com/stripe/model/PagingIterator.java
@@ -5,12 +5,12 @@
import java.util.Iterator;
impo... | 7 | 7 | 1 | [{"id": "G0", "claim": "Setting the type token inside LiveStripeResponseGetter.request() does not work for nested collections, which are never deserialized through request(), so their token is never set.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim":... | null |
stripe__stripe-java__1728 | stripe/stripe-java | 1,728 | defect | 8ffb8255f714750815ed5d8ff4e143f2d350041f | 44428617cd70ffd67b5e6f1f6cfbb489fdd1cff9 | Beta: Stripe.rawRequest -> StripeClient.rawRequest | ## Summary
This PR copies `Stripe.rawRequest` to `StripeClient.rawRequest` and deprecates the former. The only difference is that `StripeClient.rawRequest` is an instance method and uses `this.getStripeResponseGetter()` vs. the global responseGetter.
It also copies `Stripe.deserialize` to `StripeClient.deserialize`... | diff --git a/src/main/java/com/stripe/Stripe.java b/src/main/java/com/stripe/Stripe.java
index f05e3f875ca..ede5b708688 100644
--- a/src/main/java/com/stripe/Stripe.java
+++ b/src/main/java/com/stripe/Stripe.java
@@ -221,7 +221,10 @@ public static Map<String, String> getAppInfo() {
* @param relativeUrl the relative... | 3 | 3 | 2 | [{"id": "G0", "claim": "Remove the @Deprecated annotation from the newly added StripeClient.rawRequest(method, relativeUrl, content) overload.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "rawRequest should check options for null or default it, because ... | null |
stripe__stripe-java__1731 | stripe/stripe-java | 1,731 | defect | 5070316e4236b784ce85478353370f49632e5dd1 | 32f32e454a59dbb4d68efb2441d570cc04ab9a3b | Beta: report usage of raw_request | Analogous to https://github.com/stripe/stripe-python/pull/1191.
| diff --git a/src/main/java/com/stripe/StripeClient.java b/src/main/java/com/stripe/StripeClient.java
index 71003dcfd8c..72612f3d79f 100644
--- a/src/main/java/com/stripe/StripeClient.java
+++ b/src/main/java/com/stripe/StripeClient.java
@@ -613,10 +613,12 @@ public StripeResponse rawRequest(
throw new IllegalArg... | 2 | 2 | 0 | [{"id": "G0", "claim": "Add a test that addUsage retains the usage already present on the request when appending a new entry.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Remove the leftover debug System.out.println of the usage header from testReport... | null |
stripe__stripe-java__1739 | stripe/stripe-java | 1,739 | defect | 6c3dc053cb7945c8a8fa20ffb828b0a4cd7225fa | 07d056f5fa2f21a1109ef6cb66ebc2cca8c8619b | Add clock instance on webhook | Adding clock instance upon webhook event creation as mentioned on https://github.com/stripe/stripe-java/issues/1680 | diff --git a/src/main/java/com/stripe/net/Webhook.java b/src/main/java/com/stripe/net/Webhook.java
index 6c1761e8f4e..d0417f5a1d1 100644
--- a/src/main/java/com/stripe/net/Webhook.java
+++ b/src/main/java/com/stripe/net/Webhook.java
@@ -7,6 +7,7 @@
import java.nio.charset.StandardCharsets;
import java.security.Invali... | 2 | 2 | 1 | [{"id": "G0", "claim": "Changing the existing four-argument verifyHeader signature to take a Clock parameter is a public API breaking change; an overload should be added instead.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "constructEvent should not ke... | null |
stripe__stripe-java__1752 | stripe/stripe-java | 1,752 | defect | e83b1c81622655b6789bb79cd1ee5fbe4b40237f | 1c427311b9a99ffc3e75d743e50e4006e857afc2 | Add helper for setting beta versions | To prevent users from setting the same beta version many times. | diff --git a/src/main/java/com/stripe/Stripe.java b/src/main/java/com/stripe/Stripe.java
index 38586278142..6063867a4af 100644
--- a/src/main/java/com/stripe/Stripe.java
+++ b/src/main/java/com/stripe/Stripe.java
@@ -34,6 +34,18 @@ public abstract class Stripe {
*/
public static volatile String stripeVersion = A... | 1 | 1 | 1 | [{"id": "G0", "claim": "The duplicate-beta check should match \"; \" + betaName + \"=\" instead of \"; \" + betaName, because one beta name being the prefix of another would make the check misfire.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
stripe__stripe-java__1890 | stripe/stripe-java | 1,890 | defect | 66f07a4220d523d7cc6c8795ebba16fcab9360e2 | c64fc15a3c8315af2ad5aa622c40f7bd472aa2b7 | Add livemode as a field in ThinEvent | ## Why?
This field is being returned from the API. It should be typed in our SDKs.
## Changelog
* Update the class for `ThinEvent` to include `livemode` and `reason` | diff --git a/src/main/java/com/stripe/model/ThinEvent.java b/src/main/java/com/stripe/model/ThinEvent.java
index aa989cfa403..1eb8d8fa83a 100644
--- a/src/main/java/com/stripe/model/ThinEvent.java
+++ b/src/main/java/com/stripe/model/ThinEvent.java
@@ -24,6 +24,10 @@ public class ThinEvent {
@SerializedName("created... | 1 | 1 | 1 | [{"id": "G0", "claim": "The test fixtures should encode the livemode field as the JSON boolean false rather than the string \"false\".", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
stripe__stripe-java__1893 | stripe/stripe-java | 1,893 | defect | 231916ecff1984a307cd4913f982917f7d3de3d9 | bcfdbdda2393e3f91f4a3aa6a9abc62451c35f41 | Merge from master to beta | There have been more changes in the master branch since the last time we merged from it to beta. Doing on last merge from master before this week's beta releases | diff --git a/CHANGELOG.md b/CHANGELOG.md
index ac8e6e7d5df3..600ac4f3ed06 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,11 @@
# Changelog
+## 27.1.0 - 2024-10-03
+* [#1890](https://github.com/stripe/stripe-java/pull/1890) Update the class for `ThinEvent` to include `livemode` and `reason`
+* [#1891](https:... | 2 | 1 | 0 | [{"id": "G0", "claim": "StandardizationTest.java, which was removed on master, is still present in this pull request's branch — the reviewer asks whether it should have been removed.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "The comment the pul... | null |
stripe__stripe-java__1919 | stripe/stripe-java | 1,919 | defect | 48d4fb9ff352eb67b5f550053881b5db967d86c5 | faade7199fda11eab263c7dc18e67696b02d626a | Catch `JsonSyntaxException` when processing all errors | ## Why?
Fixes #1868.
## What?
We changed error handling to understand apiMode from the shape of the error response, but did not wrap all of our Gson calls in a try-catch. This fixes that and also adds a test. | diff --git a/src/main/java/com/stripe/net/LiveStripeResponseGetter.java b/src/main/java/com/stripe/net/LiveStripeResponseGetter.java
index 0caba0cfd38..f11e94b87d1 100644
--- a/src/main/java/com/stripe/net/LiveStripeResponseGetter.java
+++ b/src/main/java/com/stripe/net/LiveStripeResponseGetter.java
@@ -6,7 +6,6 @@
im... | 3 | 1 | 0 | [{"id": "G0", "claim": "The comment added in handleError ends mid-sentence (\"Try to read the response body to see if it must be\"), missing its second part, and the sentence fragment should be fixed before merging.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": ... | null |
stripe__stripe-java__198 | stripe/stripe-java | 198 | defect | 69e262dfe86ddea0b0355ef389fd00f489bc0971 | 71f138774198ac7be45a23035a09cbbd130e6246 | Add account to application fees | per https://stripe.com/docs/upgrades#2013-12-03
/cc @shalecraig
| diff --git a/src/main/java/com/stripe/model/ApplicationFee.java b/src/main/java/com/stripe/model/ApplicationFee.java
index d4f17ccdd96..317f7b393c8 100644
--- a/src/main/java/com/stripe/model/ApplicationFee.java
+++ b/src/main/java/com/stripe/model/ApplicationFee.java
@@ -18,6 +18,7 @@ public class ApplicationFee exten... | 1 | 1 | 0 | [{"id": "G0", "claim": "The fixture appfee_refund_list.json should be renamed to appfee_with_refund_list.json because the name misleadingly suggests a list of application fee refunds when it actually holds one application fee object with a list of refunds; the reviewer offers to do this in a follow-up PR.", "category":... | null |
stripe__stripe-java__2057 | stripe/stripe-java | 2,057 | defect | 79b31f5590f0dc08dbfbd5d3f220e678f3156d1e | 4692cc68858a897852c913d8d38dc88857332696 | Add `StripeContext` object | ### Why?
As the `stripe-context` header is evolving, we want to give better tools for creating and managing contexts. This PR adds a new class, `StripeContext`. It can be used anywhere the context option is supplied and gets serialized to a string when making requests. It's also found on the `EventNotification.conte... | diff --git a/src/main/java/com/stripe/StripeClient.java b/src/main/java/com/stripe/StripeClient.java
index d5f2fb79f22..b5bc7665771 100644
--- a/src/main/java/com/stripe/StripeClient.java
+++ b/src/main/java/com/stripe/StripeClient.java
@@ -1223,6 +1223,11 @@ public StripeClientBuilder setStripeContext(String context) ... | 5 | 3 | 1 | [{"id": "G0", "claim": "The new setStripeContext(StripeContext) overload paired with a getStripeContext that returns String is surprising; the reviewer would expect getStripeContext to return StripeContext.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Th... | null |
stripe__stripe-java__2104 | stripe/stripe-java | 2,104 | defect | 93a38f41af6a71a7efff51051d51f4e154ab5173 | 5acf1a66101ec1a316aa816a88a3b88c155dc836 | Add EventNotificationHandler | ### Why?
<!-- Describe why this change is being made. Briefly include history and context, high-level what this PR does, and what the world looks like afterward. -->
We've been designing a streamlined approach to handling incoming events that is easy to get right and hard to get wrong. This PR has the initial impl... | diff --git a/src/main/java/com/stripe/StripeClient.java b/src/main/java/com/stripe/StripeClient.java
index 8031aa125ef..09464b55447 100644
--- a/src/main/java/com/stripe/StripeClient.java
+++ b/src/main/java/com/stripe/StripeClient.java
@@ -41,6 +41,50 @@ protected StripeResponseGetter getResponseGetter() {
return... | 5 | 4 | 0 | [{"id": "G0", "claim": "The PR author flags the added setContext implementation (instanceof checks plus TODO comments about adding getOptions to the StripeResponseGetter interface) as unloved and asks for a better design suggestion.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"... | null |
stripe__stripe-java__2110 | stripe/stripe-java | 2,110 | defect | 6f25215c80efb6a4ec6e3b40528af90bffae3b39 | cd78fc6f35ad873005d0800b40ae4ed1c606bb44 | Update v2 array parameter serialization to use indexed format | ### Why?
Stripe has updated how array parameters are handled in `GET` and `DELETE` methods to `/v2` endpoints. Previously, the SDKs were serializing them with repeated parameter format (e.g., `?include=foo&include=bar`) since that is was the API expected. While that format is still accepted, it is deprecated. Instead... | diff --git a/src/main/java/com/stripe/net/FormEncoder.java b/src/main/java/com/stripe/net/FormEncoder.java
index d05e4be6ee3..abba488dba1 100644
--- a/src/main/java/com/stripe/net/FormEncoder.java
+++ b/src/main/java/com/stripe/net/FormEncoder.java
@@ -22,7 +22,7 @@ public static HttpContent createHttpContent(Map<Strin... | 2 | 2 | 2 | [{"id": "G0", "claim": "Removing the public flattenParams(params, arraysAsRepeated) overload is the breaking change the compat checker is flagging; it can be safely ignored only if that public method is not intended to be user-facing.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduce... | null |
stripe__stripe-java__2172 | stripe/stripe-java | 2,172 | defect | ac1c6fd46d5e906b4672c256a824a58ca525e548 | 778371b0eb12fd7d487ea382f3e8054efe111949 | ⚠️ Make `RequestOptions` & `RawRequestOptions` constructors private and add Stripe-Request-Trigger header | ### Why?
<!-- Describe why this change is being made. Briefly include history and context, high-level what this PR does, and what the world looks like afterward. -->
We're working on surfacing more information to users around what their integration does when handling events. The first step of this is to tie subs... | diff --git a/justfile b/justfile
index d48f299877e0..072f3a4600f9 100644
--- a/justfile
+++ b/justfile
@@ -5,6 +5,10 @@ import? '../sdk-codegen/utils.just'
_default:
just --list --unsorted
+# ⭐ run format and tests to prepare for CI
+[no-exit-message]
+prepare: format test
+
# ⭐ run the whole test suite
[no-e... | 2 | 2 | 1 | [{"id": "G0", "claim": "Adding a parameter to the public RawRequestOptions constructor (and the protected RequestOptions constructor) is a breaking change, so the constructors should be made private instead of carrying growing positional signatures.", "category": "design", "verdict": "supported", "priority": "P1", "sco... | null |
stripe__stripe-java__2190 | stripe/stripe-java | 2,190 | defect | 0085a0d223745553f0009e9a5a7a7c2a722c82df | 86dbad223316eb599af345a67580b75ccd93ca13 | ⚠️ Throw an error when using the wrong webhook parsing method | ### Why?
<!-- Describe why this change is being made. Briefly include history and context, high-level what this PR does, and what the world looks like afterward. -->
When users call the wrong webhook parsing method, the call usually works, but happily gives them a malformed object for their troubles. Rather than fai... | diff --git a/src/main/java/com/stripe/model/v2/core/EventNotification.java b/src/main/java/com/stripe/model/v2/core/EventNotification.java
index 2246cabcaa7..d6879c4e38f 100644
--- a/src/main/java/com/stripe/model/v2/core/EventNotification.java
+++ b/src/main/java/com/stripe/model/v2/core/EventNotification.java
@@ -85,... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new wrong-payload error path should point at (and be tested against) the client's constructEvent — i.e. reference StripeClient.constructEvent in the EventNotification.fromJson error message instead of Webhook.constructEvent, and add a WebhookTest case that exercises the client's constructEve... | null |
stripe__stripe-java__295 | stripe/stripe-java | 295 | defect | a656f8b1d9eccc88e4e79fdc8af520d7ca0e14e8 | b0ea606f205344e2f385231bb1498c3ac5bb6492 | Set up order returns. | r? @stripe/api-libraries
cc @jimdanz
Need to bump the API version to have tests pass since the default `returnOrder` behavior is to automatically refund the charges which was introduced in https://stripe.com/docs/upgrades#2016-02-23
| diff --git a/src/main/java/com/stripe/model/EventDataDeserializer.java b/src/main/java/com/stripe/model/EventDataDeserializer.java
index 23f10280307..41bada1da5e 100644
--- a/src/main/java/com/stripe/model/EventDataDeserializer.java
+++ b/src/main/java/com/stripe/model/EventDataDeserializer.java
@@ -40,6 +40,7 @@ publi... | 1 | 1 | 0 | [{"id": "G0", "claim": "Fix the indentation of the newly added lines (spaces instead of tabs) in the test and in Order.java.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
stripe__stripe-java__317 | stripe/stripe-java | 317 | defect | 6733fb8ebb873d78fdeda44ab55c5a5dd1103e8b | d58e6a2caf14b3bd6670214f99e1235fb4fdf219 | Add support for multiplan subscriptions | This PR adds bindings support for subscriptions with multiple items:
- Adds SubscriptionItem object and tests
- Add tests to verify passing in items arrays into invoice creation, subscription update, and subscription create
| diff --git a/src/main/java/com/stripe/model/DeletedSubscriptionItem.java b/src/main/java/com/stripe/model/DeletedSubscriptionItem.java
new file mode 100644
index 00000000000..7f83e2f268f
--- /dev/null
+++ b/src/main/java/com/stripe/model/DeletedSubscriptionItem.java
@@ -0,0 +1,23 @@
+package com.stripe.model;
+
+
+publ... | 2 | 1 | 0 | [{"id": "G0", "claim": "The added code's indentation is a mix of tabs and spaces and should use only tabs, as the repository convention requires.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The StripeTest tests for subscription item retrieval... | null |
stripe__stripe-java__330 | stripe/stripe-java | 330 | defect | 1e957f8acfefdef9e219f355299fdea75d454f02 | ffde7144f2336541e22d6718e392269b9e1209b0 | Add expandable application to Charge | Adds ExpandableField<Application> to Charge.
r? @brandur | diff --git a/src/main/java/com/stripe/model/Application.java b/src/main/java/com/stripe/model/Application.java
new file mode 100644
index 00000000000..14a7380e297
--- /dev/null
+++ b/src/main/java/com/stripe/model/Application.java
@@ -0,0 +1,22 @@
+package com.stripe.model;
+
+public class Application extends StripeObj... | 1 | 1 | 0 | [{"id": "G0", "claim": "The leading whitespace in Application.java should be tabs instead of spaces.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
stripe__stripe-java__362 | stripe/stripe-java | 362 | defect | 90d2a9cf954d0352dd29c0299759a3a943163126 | acd54dd0d39ac40be3b2ea84bd54a37925e8c99d | Remove raw PANs from our test suite | This PR aims to use the new test tokens such as `tok_visa` instead or hardcoding raw PANs in the test suite.
Left a reference to the dispute test card as there's no token for it yet. Also revamped the Token resource test suite to reference the PAN there. No test token for invalid card number so left that one too.
... | diff --git a/README.md b/README.md
index c9432d35a12..6a4617183d9 100644
--- a/README.md
+++ b/README.md
@@ -65,11 +65,7 @@ public class StripeExample {
Map<String, Object> chargeMap = new HashMap<String, Object>();
chargeMap.put("amount", 100);
chargeMap.put("currency", "usd");
- Map<... | 1 | 1 | 0 | [{"id": "G0", "claim": "The README example could use the `tok_1234` example token instead of `tok_visa` on the source line it anchors to.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
stripe__stripe-java__376 | stripe/stripe-java | 376 | defect | a8d5096d3b38c1500db7093df5bdaecde0284fa4 | cb5df5e334a2e2059a651d97221a7ab8867bf879 | Add event request object | Event's `request` field has changed from being a string to being an object that contains a request ID and an idempotency key.
I don't think there's an easy way of making this backwards compatible, and since it's probably not in all that common of use, I've just changed the type completely here.
r? @remi-stripe ~~... | diff --git a/src/main/java/com/stripe/model/Event.java b/src/main/java/com/stripe/model/Event.java
index e7a780c6af7b..bd74a97f3b68 100644
--- a/src/main/java/com/stripe/model/Event.java
+++ b/src/main/java/com/stripe/model/Event.java
@@ -18,7 +18,7 @@ public class Event extends APIResource implements HasId {
EventDa... | 2 | 2 | 1 | [{"id": "G0", "claim": "The `REFUND_LIST_TYPE` constant in EventRequestDeserializer is an unused leftover (a fee-refund list type) that should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Changing `Event.getRequest()` from returnin... | null |
stripe__stripe-java__382 | stripe/stripe-java | 382 | defect | a8d5096d3b38c1500db7093df5bdaecde0284fa4 | 6018e4cf4fdf67f3a7dbf5cad532d6dd97ec1301 | Add support for ephemeral keys | This adds the `EphemeralKey` resource to the bindings. Currently, the only supported operations are creation and deletion.
Because Java is statically typed, we define a custom JSON deserializer `EphemeralKeyDeserializer` so that we can preserve the raw JSON so it can be passed back to the frontend. Otherwise, any ... | diff --git a/src/main/java/com/stripe/model/EphemeralKey.java b/src/main/java/com/stripe/model/EphemeralKey.java
new file mode 100644
index 00000000000..fc9884af897
--- /dev/null
+++ b/src/main/java/com/stripe/model/EphemeralKey.java
@@ -0,0 +1,131 @@
+package com.stripe.model;
+
+import com.google.gson.JsonObject;
+im... | 3 | 3 | 0 | [{"id": "G0", "claim": "The nested AssociatedObject class should be renamed to something like EphemeralKeyAssociatedObject and placed at the top level of the model package, keeping with the convention of putting all models there.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "intro... | null |
stripe__stripe-java__398 | stripe/stripe-java | 398 | defect | b89378dde412530b7f2d6d345ea2612ecdf27e4a | 2dc9f45b7812cf10cb7c92a21c53683b225e656e | OAuth support | r? @brandur-stripe
cc @stripe/api-libraries
Adds native support for OAuth in the Java library.
The implementation is mostly based on the existing ones (cf. https://github.com/stripe/stripe-ruby/pull/523). One notable difference is that I split the existing `_request` method in `LiveStripeResponseGetter` into t... | diff --git a/src/main/java/com/stripe/Stripe.java b/src/main/java/com/stripe/Stripe.java
index 213c8f9c0185..10f332caa2cd 100644
--- a/src/main/java/com/stripe/Stripe.java
+++ b/src/main/java/com/stripe/Stripe.java
@@ -9,10 +9,12 @@ public abstract class Stripe {
public static final String UPLOAD_API_BASE = "https:... | 3 | 3 | 1 | [{"id": "G0", "claim": "TokenResponse should not declare the deprecated fields (accessToken, refreshToken, stripePublishableKey, tokenType) at all; better to leave them out until someone actually complains.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "... | null |
stripe__stripe-java__446 | stripe/stripe-java | 446 | defect | eb33452f000da849c6bda0bc453f8482b3110cc7 | b51730adbfc7f9fc487908257153d6e5ea8fce4f | Add support for deserializing source_mandate_notification objects | This fixes https://github.com/stripe/stripe-java/issues/445
r? @stan-stripe @ob-stripe
cc @stripe/api-libraries | diff --git a/src/main/java/com/stripe/model/SourceMandateNotification.java b/src/main/java/com/stripe/model/SourceMandateNotification.java
new file mode 100644
index 00000000000..12d0663113c
--- /dev/null
+++ b/src/main/java/com/stripe/model/SourceMandateNotification.java
@@ -0,0 +1,109 @@
+package com.stripe.model;
+
... | 4 | 4 | 2 | [{"id": "G0", "claim": "The type adapter registered for SourceMandateNotification should use the correct generic type SourceTypeDataDeserializer<SourceMandateNotification> instead of SourceTypeDataDeserializer<SourceTransaction>, and should be placed in alphabetical order before SourceTransaction.", "category": "correc... | null |
stripe__stripe-java__453 | stripe/stripe-java | 453 | defect | 50e47d7f20d6eb13d5e753f2facf30ca33efe2fe | 64ff7f5c1a521e8e30befaaf5fff7e9fe0bfd9b6 | Add support for /v1/topups/ endpoints | This change adds support for /v1/topups endpoint.
r? @jkakar-stripe @ccontinanza-stripe @chellman-stripe @kenneth-stripe @miguel-stripe
r? @stripe/api-libraries
I dropped `com.stripe.functional.Topup` because `stripe-java` doesn't use `stripe-mock` for functional testing and relies on publicly exposed endpoints,... | diff --git a/src/main/java/com/stripe/model/Topup.java b/src/main/java/com/stripe/model/Topup.java
new file mode 100644
index 000000000000..797daf0b38a1
--- /dev/null
+++ b/src/main/java/com/stripe/model/Topup.java
@@ -0,0 +1,199 @@
+package com.stripe.model;
+
+import com.stripe.exception.*;
+import com.stripe.net.API... | 7 | 6 | 1 | [{"id": "G0", "claim": "Topup's fields should be alphabetized with `id` and `object` left on top, per the convention in earlier model PRs.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The two-argument retrieve(String, RequestOptions) should be... | null |
stripe__stripe-java__462 | stripe/stripe-java | 462 | defect | 52816ed65cde8c783067d73cebceb643f887b0c6 | 60e393b88a8ae6452c0792b55d18d5d2e9ee519a | Flexible billing primitives | Adds flexible billing primitives to the SDK for beta functionality. Tests require an API key that has the functionality enabled. | diff --git a/src/main/java/com/stripe/model/Plan.java b/src/main/java/com/stripe/model/Plan.java
index 5b76d99b09c..1d0d1556c57 100644
--- a/src/main/java/com/stripe/model/Plan.java
+++ b/src/main/java/com/stripe/model/Plan.java
@@ -8,12 +8,15 @@
import com.stripe.net.APIResource;
import com.stripe.net.RequestOptions... | 5 | 5 | 1 | [{"id": "G0", "claim": "Adding new global subresourceURL helpers used in only one place feels wrong; the PR should either reuse the existing per-collection template pattern (as in transfer reversals) or convert all subresource call sites over to the new helper.", "category": "design", "verdict": "supported", "priority"... | null |
stripe__stripe-java__521 | stripe/stripe-java | 521 | defect | 8193a6a8c2c663ca1d714a33db9fedfccf5081e1 | c0b7704ded5bc8be22b6665c9974548b046edeb4 | Support document_back param | With the introduction of the document_back parameter for both [additional owners](https://stripe.com/docs/api#account_object-legal_entity-additional_owners-verification-document_back) and the [representative](https://stripe.com/docs/api#account_object-legal_entity-verification-document_back) we can now update the back ... | diff --git a/src/main/java/com/stripe/model/LegalEntity.java b/src/main/java/com/stripe/model/LegalEntity.java
index ec4fd2cb98c..6911249acec 100644
--- a/src/main/java/com/stripe/model/LegalEntity.java
+++ b/src/main/java/com/stripe/model/LegalEntity.java
@@ -41,6 +41,7 @@ public static class Verification extends Stri... | 2 | 2 | 0 | [{"id": "G0", "claim": "Checkstyle rules require an empty line between method definitions in LegalEntityTest.java, and the new test was added without one.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The testUpdateDocument test should be remov... | null |
stripe__stripe-java__540 | stripe/stripe-java | 540 | defect | 4ee09cfcc64febd169285df329cf5eaebcefb32e | 574169f726523305a78000cec6d71589d560d38e | Add support for idempotency errors | r? @brandur-stripe @remi-stripe
cc @stripe/api-libraries
Add a new `IdempotencyException` exception class that is raised when the API returns an `idempotency_error`.
No tests because stripe-mock doesn't support this scenario and it's ~impossible to stub this right now, but the logic is fairly trivial and is ex... | diff --git a/src/main/java/com/stripe/exception/IdempotencyException.java b/src/main/java/com/stripe/exception/IdempotencyException.java
new file mode 100644
index 00000000000..a89d9a2bef6
--- /dev/null
+++ b/src/main/java/com/stripe/exception/IdempotencyException.java
@@ -0,0 +1,9 @@
+package com.stripe.exception;
+
+... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new idempotency-error handling should not sit inside `case 404` (reached from `case 400` via switch fall-through).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
stripe__stripe-java__544 | stripe/stripe-java | 544 | defect | cc48c6be250b7a60be2648d33d83919510c2800d | 151ea9b3d40d1b1cefa5f06ae85689cf7a364dd0 | Allow uploading files from InputStreams and Files | This allows users to create a FileUpload with either a `File` or a `InputStream` under the `file` parameter. It defaults to calling the uploaded file "blob".
stripe/stripe-java#299 | diff --git a/src/main/java/com/stripe/net/LiveStripeResponseGetter.java b/src/main/java/com/stripe/net/LiveStripeResponseGetter.java
index e946ac4afc48..c7854c4141fa 100644
--- a/src/main/java/com/stripe/net/LiveStripeResponseGetter.java
+++ b/src/main/java/com/stripe/net/LiveStripeResponseGetter.java
@@ -643,6 +643,15... | 3 | 3 | 1 | [{"id": "G1", "claim": "Minor fix commits with messages like \"fix test\" should be squashed into a single commit with a descriptive message (via git commit --amend or git rebase -i) to keep commit hygiene.", "category": "process", "verdict": "supported", "priority": "P3", "scope": "unclear"}, {"id": "G2", "claim": "Th... | null |
stripe__stripe-java__572 | stripe/stripe-java | 572 | defect | 32c27898e0118baee7b63de8db6e6d5340f0a137 | c8817cefb119c52ac8128bd30168d098b6217fe0 | Fix flattening of array params | Consider the following Java snippet using the Stripe java SDK:
```java
final Map<String, Object> params=newLinkedHashMap<String, Object>();
finalMap<String, Object> legal_entity=newLinkedHashMap<String, Object>();
finalList<Map> additional_owners=newArrayList<Map>();
finalMap<String, Object> owner_0=newLinkedHashM... | diff --git a/src/main/java/com/stripe/net/LiveStripeResponseGetter.java b/src/main/java/com/stripe/net/LiveStripeResponseGetter.java
index 47c200e0de5..5881701ec41 100644
--- a/src/main/java/com/stripe/net/LiveStripeResponseGetter.java
+++ b/src/main/java/com/stripe/net/LiveStripeResponseGetter.java
@@ -38,6 +38,7 @@
... | 3 | 2 | 0 | [{"id": "G0", "claim": "The change now emits integer-indexed array parameters for every endpoint, but traditionally some endpoints only tolerated the non-indexed style, so more testing is needed before assuming integer indexes are safe everywhere.", "category": "correctness", "verdict": "opposed", "priority": "P1", "sc... | null |
stripe__stripe-java__592 | stripe/stripe-java | 592 | defect | 25e692d52e470a442cf69c0d9e16a887e4e880d6 | abb13701582359c1bc18b4705ea94a52c4f6d01b | Bindings for Terminal endpoints | Bindings for Terminal endpoints
- Connection Tokens
- Locations
- Readers | diff --git a/src/main/java/com/stripe/model/terminal/ConnectionToken.java b/src/main/java/com/stripe/model/terminal/ConnectionToken.java
new file mode 100644
index 000000000000..23cb74b60946
--- /dev/null
+++ b/src/main/java/com/stripe/model/terminal/ConnectionToken.java
@@ -0,0 +1,30 @@
+package com.stripe.model.termi... | 5 | 5 | 1 | [{"id": "G0", "claim": "Use camelCase for attribute names in ConnectionToken (Gson maps them to their snake_case counterparts in the JSON payload).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Order the fields in ConnectionToken per library convention:... | null |
stripe__stripe-java__609 | stripe/stripe-java | 609 | defect | 4cfc5e9182fdf992554fce440cc522e7484d0ec2 | 7e970cd85a83e6e04ae63147045acc40c4a45e3a | Support changes for the Payment Intent resource | r? @ob-stripe
cc @danwang-stripe @stripe/api-libraries | diff --git a/src/main/java/com/stripe/model/PaymentIntent.java b/src/main/java/com/stripe/model/PaymentIntent.java
index 8d7239f3fad7..65c06e2fe831 100644
--- a/src/main/java/com/stripe/model/PaymentIntent.java
+++ b/src/main/java/com/stripe/model/PaymentIntent.java
@@ -37,13 +37,20 @@ public class PaymentIntent extend... | 2 | 1 | 1 | [{"id": "G0", "claim": "The PaymentIntent model should add support for the 'review' field, which exists in the OpenAPI spec and Stripe's source code.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Deserializing the 'value' hash into the abstract PaymentI... | null |
stripe__stripe-java__621 | stripe/stripe-java | 621 | defect | bd3b29c26caa9bd908b68709054372eab8dd5495 | 062c34fedc092acc934b142c93cd81214a1717c3 | Add missing properties to Refund class | r? @remi-stripe
cc @stripe/api-libraries
Add `failureBalanceTransaction`, `failureReason` and `sourceTransferReversal` to `Refund` class.
Fixes #620.
| diff --git a/src/main/java/com/stripe/model/Refund.java b/src/main/java/com/stripe/model/Refund.java
index e62db709469b..8fb0f7080a48 100644
--- a/src/main/java/com/stripe/model/Refund.java
+++ b/src/main/java/com/stripe/model/Refund.java
@@ -24,9 +24,14 @@ public class Refund extends ApiResource implements MetadataSto... | 1 | 1 | 1 | [{"id": "G0", "claim": "The Refund class is missing the `transfer_reversal` property from the API object.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
stripe__stripe-java__648 | stripe/stripe-java | 648 | defect | 5de6383d084889ae699a1f6085a0ae9dbca1028f | 9c7b6d13084079f2a0d95ffff03525532430de38 | Add support for new properties and params on Invoice and Subscription | * Add `transfer_data[destination]` to both
* Add `application_fee_amount` to Invoice
cc @stripe/api-libraries
NOT asking for review yet as I want to double check that we don't need `on_behalf_of` for now. | diff --git a/src/main/java/com/stripe/model/Invoice.java b/src/main/java/com/stripe/model/Invoice.java
index 168a75836a30..5535f7d3be0c 100644
--- a/src/main/java/com/stripe/model/Invoice.java
+++ b/src/main/java/com/stripe/model/Invoice.java
@@ -22,7 +22,7 @@ public class Invoice extends ApiResource implements Metadat... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new TransferData nested classes' fields need to be made accessible with @Getter/@Setter (and a setter for consistency), on Invoice#TransferData as well as Subscription#TransferData.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
stripe__stripe-java__651 | stripe/stripe-java | 651 | defect | 52a46b14685a8039289ab5252b592b15797a493d | a774909e72f15922358de00a5b7260e846780691 | Introduce version pinning for autogen | - This should not be merged to master but to `mickjermsurawong/autogen-pre-master` branch, but i'm basing here on master to show compatibility and to pass master tests first.
- The only complication is in `EphemeralKey` that does not use the static version. (This class is together with File, Event, are not autogenerat... | diff --git a/src/main/java/com/stripe/Stripe.java b/src/main/java/com/stripe/Stripe.java
index 05ed34e93e9..c40596928e7 100644
--- a/src/main/java/com/stripe/Stripe.java
+++ b/src/main/java/com/stripe/Stripe.java
@@ -14,6 +14,7 @@ public abstract class Stripe {
public static final String CONNECT_API_BASE = "https://... | 5 | 3 | 0 | [{"id": "G0", "claim": "The equals method was left out the stripeAccount field that the hashCode method incorporates.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "Place the newly added API_VERSION constant alphabetically in Stripe.java's constan... | null |
stripe__stripe-java__673 | stripe/stripe-java | 673 | defect | 1af0003526e0be11c50dba9ec4c31670da70d5b4 | db4f030847cc690d907a5188b1ecc26a97ef048b | Add support for Subscription Schedule APIs | Add support for Subscription Schedule APIs
* Add Subscription Schedule
* Add Subscription Schedule Revisions
* Add `invoice_settings` on the Customer
cc @stripe/api-libraries | diff --git a/.travis.yml b/.travis.yml
index 0505c5df9b1c..74715e24a445 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -29,7 +29,7 @@ before_install:
env:
global:
- - STRIPE_MOCK_VERSION=0.43.0
+ - STRIPE_MOCK_VERSION=0.44.0
matrix:
include:
diff --git a/src/main/java/com/stripe/model/Customer.java b/src/m... | 2 | 2 | 1 | [{"id": "G0", "claim": "The javadoc on the cancel methods in SubscriptionSchedule.java says \"Pay a subscription schedule.\" where it should say \"Cancel a subscription schedule.\" (a copy/paste-and-replace error).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "... | null |
stripe__stripe-java__678 | stripe/stripe-java | 678 | defect | 6b1054859f3a23626fcf4fba3bf509763fd0bd75 | 9031619de4bffee75d6a387c9f85b3711220d545 | Add public models for errors | r? @mickjermsurawong-stripe @remi-stripe
cc @scherr-stripe
This PR adds two new publicly exposed models:
- `com.stripe.model.StripeError` for regular API errors
- `com.stripe.model.oauth.OAuthError` for OAuth errors
`StripeException` now has a `getError()` accessors that returns the `StripeError` instance, a... | diff --git a/src/main/java/com/stripe/exception/CardException.java b/src/main/java/com/stripe/exception/CardException.java
index ccb142abb4ef..e3c6f71d75eb 100644
--- a/src/main/java/com/stripe/exception/CardException.java
+++ b/src/main/java/com/stripe/exception/CardException.java
@@ -1,5 +1,8 @@
package com.stripe.e... | 2 | 1 | 0 | [{"id": "G0", "claim": "The author should justify the composition approach (attaching a StripeError model to StripeException) instead of making StripeError inherit from Exception with the other exceptions inheriting from it.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id"... | null |
stripe__stripe-java__697 | stripe/stripe-java | 697 | defect | 71542d4d6a7d3dd32940a3a23b2e2361fe545900 | e09791b1407cc28a1a700c3e666bb1dc4bc50c50 | Pass version check flag to stripe-mock | - This passes `-strict-version-check` flag to stripe mock to ensure pinned library is testing against correct OpenAPI version of stripe-mock.
- The first commit failed with the error below, and passing override flag with pinned version resolved it.
```
com.stripe.functional.EphemeralKeyTest > testCreate FAILED
... | diff --git a/.travis.yml b/.travis.yml
index b1c5d2a7dc1..2bfc7f6503f 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -23,7 +23,7 @@ before_install:
tar -zxf "stripe-mock/stripe-mock_${STRIPE_MOCK_VERSION}_linux_amd64.tar.gz" -C "stripe-mock/stripe-mock_${STRIPE_MOCK_VERSION}/"
fi
- |
- stripe-mock/stri... | 1 | 1 | 1 | [{"id": "G0", "claim": "Question whether the newly added \"-strict-version-check\" should be passed unconditionally in StripeMockProcess.start(), since it may be too strict when testing against a custom or latest OpenAPI spec, and other typed client libraries do not pass it.", "category": "design", "verdict": "supporte... | null |
stripe__stripe-java__708 | stripe/stripe-java | 708 | defect | ea46cdcd2a18949aa0ad974c0e37f7c6523c6446 | f59914e45c154508d791c3cb7571ca1c13205033 | Fix issues detected by ErrorProne | r? @mickjermsurawong-stripe @remi-stripe
cc @stripe/api-libraries
Fix a bunch of issues reported by ErrorProne. Nothing major or user visible.
The remaining issues need to be fixed in the autogenerator itself:
- missing `@Override` annotations on interface method implementations
- `ScheduledQueryRun.Error` s... | diff --git a/src/main/java/com/stripe/exception/StripeException.java b/src/main/java/com/stripe/exception/StripeException.java
index 8a7235d40c9..2ac106bf788 100644
--- a/src/main/java/com/stripe/exception/StripeException.java
+++ b/src/main/java/com/stripe/exception/StripeException.java
@@ -41,7 +41,7 @@ public Stripe... | 4 | 1 | 0 | [{"id": "G0", "claim": "The instanceOf() assertion is useless because response is already declared as a StripeResponse, so the type is known at compile-time.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The MockWebServer resource in TelemetryTest wa... | null |
stripe__stripe-java__749 | stripe/stripe-java | 749 | defect | 7f1f25e4aef7a13d7237f5fcb04218e19d65e5d8 | 8dcd2293069782a8d15b35fbf6ad5a5a0dc9eb15 | Base api service to be subclassed by autogen | This PR implements base api-service to be subclassed by the autogenerated services.
This is thin layer of abstraction to the existing `ApiResource.request` methods.
Now it does only a few things.
- url variable encoding
- nullsafe ApiRequestParam
Example of this usage is in PR https://github.com/stripe/stripe-j... | diff --git a/src/main/java/com/stripe/net/ApiService.java b/src/main/java/com/stripe/net/ApiService.java
new file mode 100644
index 00000000000..4d840c45bcc
--- /dev/null
+++ b/src/main/java/com/stripe/net/ApiService.java
@@ -0,0 +1,72 @@
+package com.stripe.net;
+
+import com.stripe.Stripe;
+import com.stripe.exceptio... | 4 | 3 | 1 | [{"id": "G0", "claim": "Tighten up the whitespace: a doubled blank line between the FooCollection and FooParams class declarations in the new ApiServiceTest.java.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new test fixture omits some of ... | null |
stripe__stripe-java__897 | stripe/stripe-java | 897 | defect | c00ca348a0101584222704f7990187bd3964e3c5 | 22c95361f1316e76972fcccfd9de21984af4f9be | Add `Stopwatch` class | r? @brandur-stripe
cc @stripe/api-libraries
Add a `Stopwatch` class to measure elapsed time, and use it for latency telemetry.
The class is basically a port of [its namesake from the .NET stdlib](https://docs.microsoft.com/en-us/dotnet/api/system.diagnostics.stopwatch?view=netframework-4.8). It does a bit more... | diff --git a/src/main/java/com/stripe/net/HttpURLConnectionClient.java b/src/main/java/com/stripe/net/HttpURLConnectionClient.java
index 0764a0b18101..65e057bebd0f 100644
--- a/src/main/java/com/stripe/net/HttpURLConnectionClient.java
+++ b/src/main/java/com/stripe/net/HttpURLConnectionClient.java
@@ -4,6 +4,7 @@
impo... | 1 | 1 | 0 | [{"id": "G0", "claim": "The Javadoc on getTimestamp() should mention that the time it returns is monotonic, since a comment is already there and the reviewer had to look it up to be sure.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
stripe__stripe-java__931 | stripe/stripe-java | 931 | defect | dbf52535213ac88504bdf98b77c5c6dbebc456f2 | 36ffd8d256b37cd08517ab1758ae187a76bc590c | Refactor HTTP headers handling | r? @brandur-stripe @richardm-stripe
cc @stripe/api-libraries
This PR refactors the way HTTP headers are handled in the library. I recommend reviewing it commit by commit. Here's what each commit does:
1. Adds a `CaseInsensitiveMap<V>` class. This is a generic map that allows for case-insensitive lookups, but s... | diff --git a/src/main/java/com/stripe/net/HttpClient.java b/src/main/java/com/stripe/net/HttpClient.java
index 59b7850c040..2e077d7d7f7 100644
--- a/src/main/java/com/stripe/net/HttpClient.java
+++ b/src/main/java/com/stripe/net/HttpClient.java
@@ -6,8 +6,11 @@
import com.stripe.util.Stopwatch;
import java.net.Connec... | 3 | 2 | 0 | [{"id": "G0", "claim": "The reviewer asks what the reason is for the map remembering the case of the last key set, noting it may be unnecessary (the Ruby version does not do that).", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The Javadoc on HttpHeaders.o... | null |
stripe__stripe-node__1597 | stripe/stripe-node | 1,597 | defect | f0400cfd423d46ae3d733ea29ff107fa3ceeb4d8 | ca5079f8bf00b72455236d027b45d8d9ca063303 | Remove deprecated configuration setter methods | ## Summary
Remove deprecated configuration setter methods. Update tests that use these methods to set the corresponding property on the `config` object instead.
## Changelog
* Remove deprecated configuration setter methods (`setHost`, `setProtocol`, `setPort`, `setApiVersion`, `setApiKey`, `setTimeout`, `setAppInf... | diff --git a/lib/stripe.js b/lib/stripe.js
index 60b82e7312..2907e49e08 100644
--- a/lib/stripe.js
+++ b/lib/stripe.js
@@ -148,93 +148,6 @@ Stripe.createSubtleCryptoProvider = (subtleCrypto) => {
return new SubtleCryptoProvider(subtleCrypto);
};
Stripe.prototype = {
- /**
- * @deprecated will be removed in a fu... | 7 | 3 | 0 | [{"id": "G0", "claim": "Instantiate clients with the `Stripe` global instead of `require('../lib/stripe')` in test/stripe.spec.js, here and elsewhere in the file.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The setProtocol declaration removed... | null |
stripe__stripe-node__1762 | stripe/stripe-node | 1,762 | defect | 9c998d3a70b1d66bf2dee170934af0340c322e5d | a895b38de378ee518357b305526661cc1c216649 | Add Deno webhook signing example | ## Summary
Add a Deno webhook signing example. Also updated our test script to actually exit with an error if the server never starts (the test didn't fail when Deno wasn't installed in CI). | diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 9906c674c9..ca2a48e77a 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -72,6 +72,14 @@ jobs:
- name: Print Node.js version
run: node -v
+ - name: Setup Deno
+ uses: denoland/setup-deno@v1... | 2 | 1 | 0 | [{"id": "G0", "claim": "The deno webhook server should bind to port 0 (dynamic) and retrieve the actual port from the server, making the test less flaky and resistant to the situation where another process already uses the port.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, ... | null |
stripe__stripe-node__1828 | stripe/stripe-node | 1,828 | defect | 578de1b35a186ac186b4416bafad8c594b4e943e | a73b1a0daedd887a83f0b42066f7c4dc4e2a3e11 | Better CryptoProvider error | In response to #1827.
* I could have made a smaller change to just add the string to `SubtleCryptoProvider.computeHMACSignature` itself, but it felt wrong to me for `.computeHMACSignature` to make assumptions about how it was called, so instead I introduced a specialized error class for `constructEvent` can produce ... | diff --git a/src/Webhooks.ts b/src/Webhooks.ts
index c170cec7c2..97e071e21c 100644
--- a/src/Webhooks.ts
+++ b/src/Webhooks.ts
@@ -1,5 +1,8 @@
import {StripeError, StripeSignatureVerificationError} from './Error.js';
-import {CryptoProvider} from './crypto/CryptoProvider.js';
+import {
+ CryptoProvider,
+ CryptoProv... | 2 | 2 | 0 | [{"id": "G0", "claim": "The new test's assertion should also check the 'foobar' part of the thrown CryptoProviderOnlySupportsAsyncError message, not just the 'Use `await constructEventAsync' portion.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In the... | null |
stripe__stripe-node__1958 | stripe/stripe-node | 1,958 | defect | 12fe437bb94bb088a3725d79292979cbeacb3302 | 91745c8fb586708bbbee42884aed5cdab57fdd84 | Move Webhooks instance to static field | See #1956
`Stripe.webooks` has the following changes
- The `platformFunctions` parameter is now optional, defaulting to the `platformFunctions` instance used by the Stripe object
- It is now also confirms to the `Stripe.Webhooks` signature so that `Stripe.webhooks` can be used as a static reference to the webhook... | diff --git a/src/Webhooks.ts b/src/Webhooks.ts
index f8d80c4386..7ac67f7f41 100644
--- a/src/Webhooks.ts
+++ b/src/Webhooks.ts
@@ -45,7 +45,7 @@ type WebhookSignatureObject = {
receivedAt: number
) => Promise<boolean>;
};
-type WebhookObject = {
+export type WebhookObject = {
DEFAULT_TOLERANCE: number;
s... | 1 | 1 | 1 | [{"id": "G0", "claim": "The change should not reassign webhooks on the Stripe instance (this.webhooks = Stripe.webhooks), since letting the instance's webhooks act as a factory function enlarges the future breaking-change surface; keep it a plain instance.", "category": "design", "verdict": "supported", "priority": "P1... | null |
stripe__stripe-node__2201 | stripe/stripe-node | 2,201 | defect | 035c5f89744d7231d95544f5145dc08ab3a55d9a | f56936e66366d9e3592fc87962302243ef93aa82 | Add fetchRelatedObject to V2 Events if needed | ### Why?
Some V2 Event types have a stripe object or resource that is related to the event (e.g a billing meter for `v1.billing.meter.error_report_triggered`). Most SDKs add a fetchRelatedObject method to the event objects that support it as a means of easily retrieving this object. The Node SDK launched V2 events wi... | diff --git a/examples/snippets/stripe_webhook_handler.js b/examples/snippets/stripe_webhook_handler.js
index bc75e62683..063ef88ab5 100644
--- a/examples/snippets/stripe_webhook_handler.js
+++ b/examples/snippets/stripe_webhook_handler.js
@@ -20,11 +20,10 @@ app.post(
// Fetch the event data to understand the fa... | 3 | 2 | 0 | [{"id": "G0", "claim": "fetchRelatedObject should be added directly on the Events resource (which also extends StripeResource) instead of creating a whole new RelatedObjects StripeResource.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The constructor o... | null |
stripe__stripe-node__2249 | stripe/stripe-node | 2,249 | defect | ac941b9d43f12f951ff57e0dca30fc0927e6bdb1 | 17e620dea6a451d1ece631930533c1ce46184821 | add justfile, remove coveralls, tweak ESLint | ### Why?
<!-- Describe why this change is being made. Briefly include history and context, high-level what this PR does, and what the world looks like afterward. -->
In an effort to modernize and simplify our local tooling, we're moving our dev commands from makefiles to [justfiles](https://github.com/casey/just).... | diff --git a/.editorconfig b/.editorconfig
index 0f1786729b..d73acffcd4 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -7,3 +7,6 @@ indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
+
+[justfile]
+indent_size = 4
diff --git a/.eslintrc.js b/.eslintrc.js
index cb35b11... | 2 | 1 | 0 | [{"id": "G0", "claim": "If apiVersion.ts is ever edited by hand, the regex matching `ApiVersion . '...'` could be made robust to unexpected whitespace by adding \\s* on either side of the equals sign.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim"... | null |
strongbox__strongbox__1197 | strongbox/strongbox | 1,197 | defect | d7e0afd9cab68f3005cdf13b513f71da1b8a01d4 | da61a4f62df1b6ab0651a775fad03621c6cf0136 | Issue 809: Implement a PypiWheelArtifactCoordinates | - Implemented PypiWheelArtifactCoordinates.java
- Implemented PypiWheelArtifactCoordinatesTest.java
- Implemented PypiWheelArtifactCoordinatesUtils.java
Fixes #809. | diff --git a/strongbox-storage/strongbox-storage-layout-providers/strongbox-storage-pypi-layout-provider/src/main/java/org/carlspring/strongbox/artifact/coordinates/PypiArtifactCoordinates.java b/strongbox-storage/strongbox-storage-layout-providers/strongbox-storage-pypi-layout-provider/src/main/java/org/carlspring/str... | 7 | 6 | 1 | [{"id": "G0", "claim": "The constructor compares strings with == (reference equality) instead of equals()/StringUtils.isBlank(), so the checks misbehave for null values (e.g. build != \"\" passes null through to build.charAt(0)); the reviewer asks that blank checks use StringUtils.isBlank() across the pull request.", "... | null |
strongbox__strongbox__1250 | strongbox/strongbox | 1,250 | defect | eb9f1ad6efae8e64d47a39fbc750ffc03a61438d | dd338aaadfeae9dd1434925f931eb08868f8f7ae | Issue#1165 tests fix | Fixes for [#1165](https://github.com/strongbox/strongbox/issues/1165):
- [x] ArtifactManagementServiceImplTest | diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index f8b2152719..2e1c84a2ff 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -131,6 +131,7 @@ To accept, please:
| Akhilesh Bedre | | Hyderabad, India | 2019-04-07 |
| Theodore Ravindrana... | 1 | 1 | 0 | [{"id": "G0", "claim": "The three java.util.concurrent imports (AtomicBoolean, Lock, ReentrantLock) at the top of ArtifactManagementServiceImplTest are probably not required and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
strongbox__strongbox__1273 | strongbox/strongbox | 1,273 | defect | fea19c505ebf09f119e15e7359275a428c8c86ee | 7f87d6141b63f04d40d09582632a5cc116014763 | Issue 1271: Apache Buildr dependency formatter for Maven artifacts | Fixes #1271
1. Introduced a formatter for Apache Buildr together with a test class
2. Adapted `MavenDependencyFormatterTest.testRegisteredSynonyms` to the addition of the formatter: Increased by one the number of registered synonyms and added ApacheBuildr to the tested array | diff --git a/strongbox-storage/strongbox-storage-layout-providers/strongbox-storage-maven-layout/strongbox-storage-maven-layout-provider/src/main/java/org/carlspring/strongbox/dependency/snippet/ApacheBuildrDependencyFormatter.java b/strongbox-storage/strongbox-storage-layout-providers/strongbox-storage-maven-layout/st... | 5 | 5 | 0 | [{"id": "G0", "claim": "The formatter class should be named BuildrDependencyFormatter instead of ApacheBuildrDependencyFormatter.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The formatter's alias should be changed from ApacheBuildr to Buildr.", "categ... | null |
strongbox__strongbox__1276 | strongbox/strongbox | 1,276 | defect | 9d7db1191181aacbf91415b2d9613fbdb0dba96d | 3bfa84e4169f2899510d8f942bd4577978da632d | Issue 1270: Add Bazel dependency formatter for Maven artifacts | Fixes #1270.
- Implemented BazelDependencyFormatter class
- Implemented BazelDependencyFormatterTest class
- Updated array in testRegisteredSynonyms. | diff --git a/strongbox-storage/strongbox-storage-layout-providers/strongbox-storage-maven-layout/strongbox-storage-maven-layout-provider/src/main/java/org/carlspring/strongbox/dependency/snippet/BazelDependencyFormatter.java b/strongbox-storage/strongbox-storage-layout-providers/strongbox-storage-maven-layout/strongbox... | 2 | 1 | 1 | [{"id": "G0", "claim": "A test appears to be failing on this pull request and the author should look into it.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The extra trailing comma at the end of the generated Bazel dependency snippet may not be nec... | null |
strongbox__strongbox__1281 | strongbox/strongbox | 1,281 | defect | d7f5bc1e38f833ec7ef5aa558e0a36c65e20c74f | 52e2b576b790f51475621cbd2ad0fec3c8d1d187 | #1245 Investigate Antlr grammar processing issues for the AQL | Fixes #1245.
| diff --git a/strongbox-aql/src/main/twig/AQL.g4.twig b/strongbox-aql/src/main/twig/AQL.g4.twig
index 07f9b8a469..79faf75870 100644
--- a/strongbox-aql/src/main/twig/AQL.g4.twig
+++ b/strongbox-aql/src/main/twig/AQL.g4.twig
@@ -300,7 +300,7 @@ VALUE
STRING
:
- [\\"\\'] ~[\\"\\'\r\n]* [\\"\\']
+ ["\\'] ~["\\'\r... | 1 | 1 | 0 | [{"id": "G0", "claim": "In the valid-query tests (double-quoted, single-quoted and unquoted), the try/catch around parseQuery, the errorMap variable and the assertion made on it are unnecessary because no exceptions are expected, so remove them.", "category": "testing", "verdict": "supported", "priority": "P2", "scope"... | null |
strongbox__strongbox__1290 | strongbox/strongbox | 1,290 | defect | b6ee9ed534f88d346d885a7551b517ba13e0558a | e19500a697aef27e5d109c2f2ee5772729b17a37 | Issue-528: HandlerMethodArgumentResolver to resolve Repository instance based on `{storageId}/{repositoryId}` path variables | Fixes #528.
Created a resolver which:
- Checks if exists a method parameter annotation `RepositoryMapping` with a parameter type `Repository`.
- If there's no `storageId` nor `repositoryId` path variables, a `MissingPathVariableException` is thrown.
- Validates the existence of an storage and a repository. Othe... | diff --git a/strongbox-web-core/src/main/java/org/carlspring/strongbox/config/WebConfig.java b/strongbox-web-core/src/main/java/org/carlspring/strongbox/config/WebConfig.java
index 7fb709eab2..0d5954d804 100644
--- a/strongbox-web-core/src/main/java/org/carlspring/strongbox/config/WebConfig.java
+++ b/strongbox-web-cor... | 16 | 15 | 0 | [{"id": "G0", "claim": "The getStorage helper added to BaseArtifactController is no longer needed because it already exists in org.carlspring.strongbox.controllers.BaseController.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new addArgumen... | null |
strongbox__strongbox__1341 | strongbox/strongbox | 1,341 | defect | 20d1bc6e1ac01c3a152e28fc05e1760f6ce9e702 | 86148bec136ef5f83832c3bc0e5392402ff54614 | Issue 1171: Dropping privileges from authorization configuration | Fixes #1171
1. Removed privileges fields from the classes [AuthorizationConfigDto](https://github.com/strongbox/strongbox/blob/8960501406eaad51958a00427ecb2dd7a4329605/strongbox-security/strongbox-user-management/src/main/java/org/carlspring/strongbox/authorization/dto/AuthorizationConfigDto.java) and [Authorizatio... | diff --git a/strongbox-security/strongbox-authentication-providers/strongbox-ldap-authentication-provider/src/test/java/org/carlspring/strongbox/authentication/api/impl/ldap/LdapAuthenticationProviderTest.java b/strongbox-security/strongbox-authentication-providers/strongbox-ldap-authentication-provider/src/test/java/o... | 4 | 3 | 3 | [{"id": "G0", "claim": "The role-level `privileges` blocks in strongbox-authorization.yaml should not be dropped; only the root `authorizationConfiguration.privileges` attribute should be dropped.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The p... | null |
strongbox__strongbox__1371 | strongbox/strongbox | 1,371 | defect | fc17063a4fa09ba233638ebc38fcb9a788eb45dc | ca623c5dc289f0be41240c6e3d8a54fa8859f290 | Issue-1368: Added classes to handle checked exceptions | Fixes #1368
Hi, I have a question is this correct way how it's implemented? I am not sure if those interfaces are correct what I mean there was mentioned that we should remove Undeclared exceptions in hand with Runtime exceptions but I am not sure if I should create similar methods that will throw different excepti... | diff --git a/strongbox-commons/src/main/java/org/carlspring/strongbox/util/ClassLoaderFactory.java b/strongbox-commons/src/main/java/org/carlspring/strongbox/util/ClassLoaderFactory.java
index 74cda550fd..98804d1df0 100644
--- a/strongbox-commons/src/main/java/org/carlspring/strongbox/util/ClassLoaderFactory.java
+++ b... | 11 | 11 | 3 | [{"id": "G0", "claim": "In TestArtifactContext.close() the `.map(ThrowingFunction.unchecked(p -> p))` call is unnecessary and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In MavenMetadataExpiredRepositoryPathHandler.supports... | null |
strongbox__strongbox__1380 | strongbox/strongbox | 1,380 | defect | b82833d5579a811990135b9f717e36e335cafc3c | 6e4b748448f5a2711ab38677c77a74cc13002a0c | Issue 1379: Make sure to set the iat property when issuing JWT | Closes #1379
I didn't like changing the arguments of getToken, but it was the only way I could think of testing a token with a future issue date. | diff --git a/strongbox-security/strongbox-user-management/src/main/java/org/carlspring/strongbox/users/security/SecurityTokenProvider.java b/strongbox-security/strongbox-user-management/src/main/java/org/carlspring/strongbox/users/security/SecurityTokenProvider.java
index 0510718e32..5b9e5036b8 100644
--- a/strongbox-s... | 4 | 4 | 0 | [{"id": "G0", "claim": "The Javadoc of getToken is missing an `@param issuedAt` entry for the newly added issuedAt parameter.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test's NumericDate local variable should be renamed from tokenIssuedAt... | null |
strongbox__strongbox__1432 | strongbox/strongbox | 1,432 | defect | 0d306ed374652714cd96a40b012e9df30b4f40e1 | fb6bf27a93adfa5111b0c0b872edc7b0aff93f06 | issues/1299 preserve duplicated cron jobs | # Pull Request Description
This pull request closes #1299
# Acceptance Test
* [x] Building the code with `mvn clean install -Dintegration.tests` still works.
* [x] Running `mvn spring-boot:run` in the `strongbox-web-core` still starts up the application correctly.
* [x] Building the code and running the `str... | diff --git a/strongbox-cron/strongbox-cron-api/src/main/java/org/carlspring/strongbox/cron/config/CronTasksConfig.java b/strongbox-cron/strongbox-cron-api/src/main/java/org/carlspring/strongbox/cron/config/CronTasksConfig.java
index f26b15ac8e..36b74a5c70 100644
--- a/strongbox-cron/strongbox-cron-api/src/main/java/org... | 7 | 7 | 3 | [{"id": "G0", "claim": "Using `Class` objects instead of `String` job class names inside the (Serializable) configuration classes such as CronTaskConfigurationDto and CronJobDefinition seems like it will cause issues, so the String-to-Class refactoring should not be kept.", "category": "design", "verdict": "supported",... | null |
strongbox__strongbox__1441 | strongbox/strongbox | 1,441 | defect | 0d306ed374652714cd96a40b012e9df30b4f40e1 | cedd4c6d6d8d274d6b0174f37030ecf7151ea499 | Make index maintenance cron jobs configurable | # Pull Request Description
This pull request closes #1404
# Acceptance Test
* [x] Building the code with `mvn clean install -Dintegration.tests` still works.
* [x] Running `mvn spring-boot:run` in the `strongbox-web-core` still starts up the application correctly.
* [x] Building the code and running the `st... | diff --git a/strongbox-resources/strongbox-storage-api-resources/src/main/resources/etc/conf/strongbox.yaml b/strongbox-resources/strongbox-storage-api-resources/src/main/resources/etc/conf/strongbox.yaml
index 75d7759f11..e600a12d90 100644
--- a/strongbox-resources/strongbox-storage-api-resources/src/main/resources/et... | 5 | 4 | 4 | [{"id": "G0", "claim": "strongbox.yaml adds cron-expression configuration for only two of the three index cron jobs; there should be one CronExpression per repository, applied according to the repository's type (hosted, proxy or group).", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introdu... | null |
strongbox__strongbox__1447 | strongbox/strongbox | 1,447 | defect | c2a9efbf21fa3e996794ed67048b0e394d29b177 | a0996c05a76e306f0f442551addd3f3c6e3e35aa | SB-1329: UserDetails hash implementation | # Pull Request Description
This pull request closes SB-1329
# Acceptance Test
* [x] Building the code with `mvn clean install -Dintegration.tests` still works.
* [x] Running `mvn spring-boot:run` in the `strongbox-web-core` still starts up the application correctly.
* [x] Building the code and running the `s... | diff --git a/strongbox-resources/strongbox-storage-api-resources/src/main/resources/strongbox-authentication-providers.xml b/strongbox-resources/strongbox-storage-api-resources/src/main/resources/strongbox-authentication-providers.xml
index 277370567d..6f704935cc 100644
--- a/strongbox-resources/strongbox-storage-api-r... | 8 | 3 | 1 | [{"id": "G0", "claim": "The name of JwtAuthenticationClaimsProvider is confusing because it returns the hashCode of the SecurityUser rather than token claims, so the class and its implementations should be renamed (e.g. UserHashClaimsProvider).", "category": "maintainability", "verdict": "uncertain", "priority": "P2", ... | null |
strongbox__strongbox__1473 | strongbox/strongbox | 1,473 | defect | 189bee2da51963810d718daca906bb6a5e66d3a8 | a8920db1cd4eb6079cae7095b9629d89436cfe1c | Update code to get ride of Get rid of ArtifactManagementServiceImplTest#setArtifactsTimestampAndRedeploy | # Pull Request Description
This pull request closes #1443
# Acceptance Test
* [x] Building the code with `mvn clean install -Dintegration.tests` still works.
* [x] Running `mvn spring-boot:run` in the `strongbox-web-core` still starts up the application correctly.
* [x] Building the code and running the `st... | diff --git a/strongbox-storage/strongbox-storage-layout-providers/strongbox-storage-maven-layout/strongbox-storage-maven-layout-provider/src/main/java/org/carlspring/strongbox/locator/handlers/RemoveTimestampedSnapshotOperation.java b/strongbox-storage/strongbox-storage-layout-providers/strongbox-storage-maven-layout/s... | 7 | 7 | 3 | [{"id": "G0", "claim": "The parameter `artificatPath` added to removeTimestampedSnapshots is a typo and should be spelled `artifactPath`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The snapshot-removal condition should compare `keepDate` aga... | null |
strongbox__strongbox__1474 | strongbox/strongbox | 1,474 | defect | 189bee2da51963810d718daca906bb6a5e66d3a8 | 10d14cb50d954c653425702f05dd7e0d80bf5634 | Issue-1397: Implement partial downloads with multiple byte ranges | # Pull Request Description
This pull request closes #1397
Partial downloads with multiple byte ranges implemented according to standard document [`Hypertext Transfer Protocol (HTTP/1.1): Range Requests`](https://tools.ietf.org/html/rfc7233).
To resume:
If multiple parts are being transferred, the server ge... | diff --git a/strongbox-web-core/src/main/java/org/carlspring/strongbox/controllers/BaseArtifactController.java b/strongbox-web-core/src/main/java/org/carlspring/strongbox/controllers/BaseArtifactController.java
index ecef819698..afcd69605a 100644
--- a/strongbox-web-core/src/main/java/org/carlspring/strongbox/controlle... | 8 | 8 | 5 | [{"id": "G0", "claim": "When the Range header parses to no ranges the method silently falls through, and the reviewer asked that such requests be rejected with an error (the author proposed serving the full file instead, which the reviewer accepted provided `isRangedRequest` is improved to validate the header).", "cate... | null |
strongbox__strongbox__1483 | strongbox/strongbox | 1,483 | defect | 6cfbc09c59364cca2606afd1581f588aed436e4d | dfea7e19060c928e9be1263ddfc294097cdf175d | issue-1482: Minor package refactoring and cleanup | Under the strongbox-maven-metadata-api module
# Pull Request Description
This pull request closes #1482 .
# Acceptance Test
* [x] Building the code with `mvn clean install -Dintegration.tests` still works.
* [x] Running `mvn spring-boot:run` in the `strongbox-web-core` still starts up the application corre... | diff --git a/strongbox-storage/strongbox-storage-layout-providers/strongbox-storage-maven-layout/strongbox-maven-metadata-api/src/main/java/org/carlspring/strongbox/storage/metadata/VersionCollectionRequest.java b/strongbox-storage/strongbox-storage-layout-providers/strongbox-storage-maven-layout/strongbox-maven-metada... | 1 | 1 | 1 | [{"id": "G0", "claim": "The sub-packages (filters, comparators, versions, visitors) need to be moved/preserved as sub-packages under the maven package rather than all classes flattened directly into org.carlspring.strongbox.storage.metadata.maven.", "category": "design", "verdict": "supported", "priority": "P1", "scope... | null |
strongbox__strongbox__1498 | strongbox/strongbox | 1,498 | defect | de222a3d1a7bcbd8ccab0175d5854ba2a99515de | 918d831e86d084b149bd3d26d8fec5171244e35a | Issue #1497 Code improvement, change code to use MediaType.APPLICATION_JSON_VALUE | Code improvement, change code to use MediaType.APPLICATION_JSON_VALUE instead of a string, fixes issue #1497 .
| diff --git a/strongbox-web-core/src/test/java/org/carlspring/strongbox/controllers/login/LoginControllerTest.java b/strongbox-web-core/src/test/java/org/carlspring/strongbox/controllers/login/LoginControllerTest.java
index 43c8826487..00f8c0fdd0 100644
--- a/strongbox-web-core/src/test/java/org/carlspring/strongbox/con... | 2 | 2 | 0 | [{"id": "G0", "claim": "At least six more sites should be changed from hardcoded media-type strings to constants: ArtifactOperationsValidatorTest::67, ArtifactOperationsValidatorTest::124, CustomLoginSupplierTest::55, MavenIndexControllerTest::297, MavenIndexControllerTest::330 and NugetArtifactControllerTest::420.", "... | null |
strongbox__strongbox__1505 | strongbox/strongbox | 1,505 | defect | de222a3d1a7bcbd8ccab0175d5854ba2a99515de | 78487ec5fed3d0975e63fe4d293c68dc4f9c090d | Implement PyPi package distribution metadata validation #1179 | # Pull Request Description
This pull request closes #1179
# Acceptance Test
* [x] Building the code with `mvn clean install -Dintegration.tests` still works.
* [x] Running `mvn spring-boot:run` in the `strongbox-web-core` still starts up the application correctly.
* [x] Building the code and running the `str... | diff --git a/strongbox-storage/strongbox-storage-layout-providers/strongbox-storage-pypi-layout-provider/pom.xml b/strongbox-storage/strongbox-storage-layout-providers/strongbox-storage-pypi-layout-provider/pom.xml
index 366d546527..88f04a943d 100644
--- a/strongbox-storage/strongbox-storage-layout-providers/strongbox-... | 7 | 7 | 1 | [{"id": "G0", "claim": "Cosmetic: please follow the project coding convention and put braces on new lines for getVersionString() in PypiPackageInfo.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Cosmetic: please follow the project coding conven... | null |
strongbox__strongbox__1530 | strongbox/strongbox | 1,530 | defect | 148d597fb42cc7bbbc6a0485a74afe707f2b15f2 | dc643c89aa4a6d8c602331c992c93dacb0f56e38 | issue-1527 Allow passing token via cookie | # Pull Request Description
This pull request closes #1527
# Acceptance Test
* [x] Building the code with `mvn clean install -Dintegration.tests` still works.
* [x] Running `mvn spring-boot:run` in the `strongbox-web-core` still starts up the application correctly.
* [x] Building the code and running the `st... | diff --git a/strongbox-web-core/src/main/java/org/carlspring/strongbox/security/authentication/JwtTokenFetcher.java b/strongbox-web-core/src/main/java/org/carlspring/strongbox/security/authentication/JwtTokenFetcher.java
index 9f07db5147..9a70e6a263 100644
--- a/strongbox-web-core/src/main/java/org/carlspring/strongbox... | 1 | 1 | 0 | [{"id": "G0", "claim": "The header check `(authHeader != null && authHeader.startsWith(BEARER_AUTHORIZATION_PREFIX))` should be assigned to a `hasHeader` variable, symmetric with the existing `hasCookie` variable.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
strongbox__strongbox__1559 | strongbox/strongbox | 1,559 | defect | 81c56d810a87ea67067670dc62683a65aa072679 | 2a9f8f06cc153122000d3c10176069c23c1eaa0c | #1536 npm package generator with size | # Pull Request Description
Add support for generating NPM packeges with given size.
This pull request closes #1536
# Acceptance Test
* [x] Building the code with `mvn clean install -Dintegration.tests` still works.
* [x] Running `mvn spring-boot:run` in the `strongbox-web-core` still starts up the applicati... | diff --git a/strongbox-storage/strongbox-storage-layout-providers/strongbox-storage-maven-layout/strongbox-storage-maven-layout-provider/src/test/java/org/carlspring/strongbox/artifact/generator/MavenArtifactGenerator.java b/strongbox-storage/strongbox-storage-layout-providers/strongbox-storage-maven-layout/strongbox-s... | 5 | 5 | 0 | [{"id": "G0", "claim": "The TestFileUtils change should probably be applied to the rest of the layout provider tests, not only NPM and Maven.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Cosmetically align the Repository, @NpmTestArtifact and ... | null |
strongbox__strongbox__1568 | strongbox/strongbox | 1,568 | defect | 9b2ad289a69258a83d473c719a861e0b1856c7d2 | 09567c00ec7c734a270a424f0e72c80165b3d05c | Issue 847: RPM artifact coordinates support | # Pull Request Description
This pull request closes #847 .
# Acceptance Test
* [x] Building the code with `mvn clean install -Dintegration.tests` still works.
* [x] Running `mvn spring-boot:run` in the `strongbox-web-core` still starts up the application correctly.
* [x] Building the code and running the `st... | diff --git a/strongbox-storage/strongbox-storage-layout-providers/pom.xml b/strongbox-storage/strongbox-storage-layout-providers/pom.xml
index b2d72da607..75d0b9e753 100644
--- a/strongbox-storage/strongbox-storage-layout-providers/pom.xml
+++ b/strongbox-storage/strongbox-storage-layout-providers/pom.xml
@@ -47,6 +47,... | 18 | 13 | 2 | [{"id": "G0", "claim": "The new module pom should use ${project.version} instead of the hardcoded 1.0-SNAPSHOT for the strongbox-storage-api dependency.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The parse code should use braces around if-st... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.