/** * PostFinance TypeScript SDK * * This library allows to interact with the PostFinance payment service. * * Copyright owner: Wallee AG * Website: https://www.postfinance.ch/en/private.html * Developer email: ecosystem-team@wallee.com * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import type { ResponseError } from "../runtime"; /** * ResponseError Error Codes */ export declare class ApiExceptionErrorCodes { static readonly BAD_REQUEST = 400; static readonly UNAUTHORIZED = 401; static readonly FORBIDDEN = 403; static readonly NOT_FOUND = 404; static readonly NOT_ACCEPTABLE = 406; static readonly CONFLICT = 409; static readonly PAYLOAD_TOO_LARGE = 413; static readonly UNSUPPORTED_MEDIA_TYPE = 415; static readonly RANGE_NOT_SATISFIABLE = 416; static readonly UNPROCESSABLE_ENTITY = 422; static readonly TOO_MANY_REQUESTS = 429; static readonly INTERNAL_SERVER_ERROR = 500; /** * Checks if the given exception matches the specific error code. * @param exception The exception to check * @param code The error code to compare against */ static is(exception: ResponseError, code: number): boolean; }