Maps a non-2xx Worldline answer onto the unified taxonomy. A 429 or a 5xx is
rate_limited or psp_unavailable, retryable, whatever code it carries.
Otherwise a documented code on the first error (errorCode, else the
deprecated code) decides; failing that, a 402 is card_declined, a 409 a
retryable processing_error, and any other status invalid_request. A 409
is usually the original request under this idempotence key still in
flight, which may yet go through, so it carries outcomeUnknown; on a
cancel it can also mean the payment is closed, which cancelPayment tells
apart by reading the payment. The message is the
catalog's, never Worldline's own, which is "not meant to be relayed to
customer"; the body stays untouched on raw.
Maps a non-2xx Worldline answer onto the unified taxonomy. A 429 or a 5xx is
rate_limitedorpsp_unavailable, retryable, whatever code it carries. Otherwise a documented code on the first error (errorCode, else the deprecatedcode) decides; failing that, a 402 iscard_declined, a 409 a retryableprocessing_error, and any other statusinvalid_request. A 409 is usually the original request under this idempotence key still in flight, which may yet go through, so it carriesoutcomeUnknown; on a cancel it can also mean the payment is closed, which cancelPayment tells apart by reading the payment. The message is the catalog's, never Worldline's own, which is "not meant to be relayed to customer"; the body stays untouched onraw.