import { AdyenClient } from '../client.mjs'; import { Amount } from '../types.mjs'; export type Address = { /** * The name of the city. Maximum length: 3000 characters. */ city: string; /** * The two-character ISO-3166-1 alpha-2 country code. For example, US. */ country: string; /** * The number or name of the house. Maximum length: 3000 characters. */ houseNumberOrName: string; /** * A maximum of five digits for an address in the US, or a maximum of ten * characters for an address in all other countries. */ postalCode: string; /** * The two-character ISO 3166-2 state or province code. For example, * CA in the US or ON in Canada. */ stateOrProvince?: string; /** * The name of the street. Maximum length: 3000 characters. */ street: string; }; export type DeliveryAddress = Address & { firstName?: string; lastName?: string; }; export type Company = { honmepage?: string; name?: string; registrationNumber?: string; registryLocation?: string; taxId?: string; type?: string; }; export type FundOrigin = { billingAddress?: Address; shopperEmail?: string; shopperName?: string; telephoneNumber?: string; walletIdentifier?: string; }; /** * @see https://docs.adyen.com/api-explorer/Checkout/71/post/sessions */ export type CreatePaymentSessionInput = { idempotencyKey?: string; /** * The amount of the payment. */ amount: Amount; /** * The merchant account identifier, with which you want to process the transaction. */ merchantAccount: string; /** * The reference to uniquely identify a payment. */ reference: string; /** * The URL to return to in case of a redirection. The format depends on the channel. */ returnUrl: string; }; export type CreatePaymentSessionOutput = { id: string; amount: Amount; expiresAt: string; merchantAccount: string; reference: string; returnUrl: string; shopperLocale: string; mode: string; sessionData: string; }; export declare function createPaymentSession(client: AdyenClient, input: CreatePaymentSessionInput): Promise; //# sourceMappingURL=create-payment-session.d.mts.map