UNPKG

@mia-burton/klarna-node

Version:
47 lines (46 loc) 1.14 kB
export interface PaymentSession { acquiring_channel: ('ECOMMERCE' | 'IN_STORE' | 'TELESALES'); authorization_token: string; billing_address: Address; client_token: string; expires_at: string; locale: string; merchant_reference1: string; merchant_reference2: string; merchant_urls: Urls; order_amount: number; order_lines: Array<OrderLine>; purchase_country: string; purchase_currency: string; shipping_address: Address; status: ('complete' | 'incomplete'); intent: ('buy' | 'tokenize' | 'buy_and_tokenize'); } interface Address { attention?: string; city: string; country: string; email: string; family_name: string; given_name: string; organization_name?: string; phone: string; postal_code: string; region: string; street_address: string; street_address2: string; title: string; } interface Urls { confirmation: string; notification: string; push: string; authorization: string; } interface OrderLine { name: string; quantity: number; total_amount: number; unit_price: number; } export {};