import type { MakeNestedPropertyOptional, MakePropertyOptional, PrettifyType } from "./types_internal.js"; /** * Access Token API */ export type AccessTokenError = { error: string; error_description: string; error_codes: number[]; timestamp: Date; trace_id: string; correlation_id: string; error_uri: string; }; export type { AuthorizationTokenResponse } from "./generated_types/access_token/types.gen.js"; /** * Checkout API */ import type { InitiatePaymentSessionRequest as _InitiatePaymentSessionRequest } from "./generated_types/checkout/types.gen.js"; export type InitiatePaymentSessionRequest = PrettifyType, "type"> & { type: "PAYMENT"; }>; import type { InitiateSubscriptionSessionRequest as _InitiateSubscriptionSessionRequest } from "./generated_types/checkout/types.gen.js"; export type InitiateSubscriptionSessionRequest = PrettifyType & { type: "SUBSCRIPTION"; }>; export type { CheckoutProblemDetails, InitiateSessionResponse, SessionResponse, } from "./generated_types/checkout/types.gen.js"; /** * ePayment API */ import type { CreatePaymentRequest as _CreatePaymentRequest } from "./generated_types/epayment/types.gen.js"; export type CreatePaymentRequest = MakePropertyOptional<_CreatePaymentRequest, "reference">; export type { CancelPaymentResponse, CaptureModificationRequest, CapturePaymentResponse, CreatePaymentResponse, ForceApprove, ForceApproveResponse, GetPaymentEventLogResponse, GetPaymentResponse, Problem, RefundModificationRequest, RefundPaymentResponse, } from "./generated_types/epayment/types.gen.js"; /** * Recurring API */ export type { AgreementResponseV3, AgreementStatus, CaptureRequestV3, ChargeReference, ChargeResponseV3, ChargeStatus, CreateChargeAsyncV3, CreateChargeAsyncV3Response, CreateChargeV3, DraftAgreementResponseV3, DraftAgreementV3, ErrorV3, ForceAcceptAgreementV3, PatchAgreementV3, RefundRequest, } from "./generated_types/recurring/types.gen.js"; /** * Webhooks API */ export type { ProblemDetails, QueryResponse, RegisterRequest, RegisterResponse, } from "./generated_types/webhooks/types.gen.js"; /** * Represents an error response from the SDK. * * @template TErr - The type of the error details. */ export type SDKError = { ok: false; error: TErr | Error; }; /** * Configuration options for the client. */ export type ClientConfig = { /** * The subscription key for a sales unit. * See [API keys](https://developer.vippsmobilepay.com/docs/knowledge-base/api-keys/). * * @minLength 1 * @example da7d5b0e18a84aeda961c0c31b75c2a9 */ subscriptionKey: string; /** * The merchant serial number (MSN) for the sales unit. * See [API keys](https://developer.vippsmobilepay.com/docs/knowledge-base/api-keys/). * * @minLength 4 * @maxLength 7 * @pattern ^[0-9]{4,7}$ * @example "1234567" */ merchantSerialNumber: string; /** * The name of the ecommerce solution. * One word in lowercase letters is good. * See [http-headers](https://developer.vippsmobilepay.com/docs/knowledge-base/http-headers). * * @maxLength 30 * @example "myecommercesolution" */ systemName?: string; /** * The version number of the ecommerce solution. * See [http-headers](https://developer.vippsmobilepay.com/docs/knowledge-base/http-headers). * * @maxLength 30 * @example "5.4.0" */ systemVersion?: string; /** * The name of the ecommerce plugin (if applicable). * One word in lowercase letters is good. * See [http-headers](https://developer.vippsmobilepay.com/docs/knowledge-base/http-headers). * * @maxLength 30 * @example "myecommercesolution-payment" */ pluginName?: string; /** * The version number of the ecommerce plugin (if applicable). * See [http-headers](https://developer.vippsmobilepay.com/docs/knowledge-base/http-headers). * * @maxLength 30 * @example "1.2.3" */ pluginVersion?: string; /** * If true, uses the Vipps test environment. * * @example false * @default false */ useTestMode?: boolean; /** * If true, retries requests 2 times. * * @example true * @default true */ retryRequests?: boolean; }; //# sourceMappingURL=types_external.d.ts.map