Environment
- Checkout SDK version: 1.2.3
Description
https://github.com/checkout/checkout-sdk-ruby/blob/master/lib/checkout_sdk/api_client.rb
Line 112 raises exception on 302 response which is a succesfull response - https://api-reference.checkout.com/#operation/getReportFile
Expected behavior
It is expected to raise exception on 4xx status
Possible solution
Change line 112 to:
raise CheckoutApiException, response if response.status < 200 || response.status >= 400