Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

2.0.0

Compare
Choose a tag to compare
@IngenicoEPayments 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 and ResponseHeader 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 and GcProxyConfiguration to support fluent programming.
    • Added methods to GcResponseException to retrieve response headers.
  • Changed:
    • Updated to version 4.5.2 of HttpClient.
    • GcApiResource.createException takes an extra CallContext argument and can return a GcIdempotenceException.
    • GcCommunicator methods take an extra CallContext argument.
    • GcConnection methods take an absolute URI that includes query parameters instead of a relative URI plus separate query parameters.
    • GcConnection methods return a GcResponse 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 and DefaultGcCommunicator to handle the changes to GcConnection and GcCommunicator.
    • GcResponseException's single constructor takes a GcResponse 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.