This repository has been archived by the owner on Mar 19, 2024. It is now read-only.
2.0.0
IngenicoEPayments
released this
01 Apr 09:51
·
102 commits
to master
since this release
- Added:
- An
httpStatusCode
field is added to error objects. - Added class
CallContext
to support idempotent requests and possible other future functionality. - Added classes
GcResponse
andResponseHeader
to support returning full responses instead of only response bodies. - Added exception
GcIdempotenceException
to indicate conflicts with idempotent requests. - Overloaded endpoint methods to accept a
CallContext
as extra argument. - Added methods to
GcDefaultConfiguration
andGcProxyConfiguration
to support fluent programming. - Added methods to
GcResponseException
to retrieve response headers.
- An
- Changed:
- Updated to version 4.5.2 of HttpClient.
GcApiResource.createException
takes an extraCallContext
argument and can return aGcIdempotenceException
.GcCommunicator
methods take an extraCallContext
argument.GcConnection
methods take an absolute URI that includes query parameters instead of a relative URI plus separate query parameters.GcConnection
methods return aGcResponse
object instead of the body string.GcConnection
methods should no longer throw exceptions for non 20x or non-JSON responses, but return the response as-is.- Refactored
DefaultGcConnection
andDefaultGcCommunicator
to handle the changes toGcConnection
andGcCommunicator
. GcResponseException
's single constructor takes aGcResponse
instead of a status code and response body.DefaultGcMetaDataProvider
returns the actual SDK version as its SDK identifier.
- Removed:
- Removed all support for checks.
- Removed
TypeWrapper
class and replaced it with class literals.