@mia-burton/klarna-node
Version:
A Node.js module for Klarna
41 lines (40 loc) • 1.12 kB
TypeScript
import { FraudStatus } from "../fraud-status.enum";
import { OrderStatus } from "../order-status.enum";
import { Address } from "./address.interface";
import { OrderLine } from "./order-line.interface";
export interface Order {
captured_amount: number;
created_at: string;
billing_address: Address;
fraud_status: FraudStatus;
klarna_reference: string;
expires_at: string;
locale: string;
merchant_reference1: string;
merchant_reference2: string;
order_amount: number;
order_lines: Array<OrderLine>;
original_order_amount: number;
purchase_country: string;
purchase_currency: string;
refunded_amount: number;
remaining_authorized_amount: number;
shipping_address: Address;
status: OrderStatus;
captures: Array<Capture>;
refounds: Array<Refound>;
}
interface Capture {
capture_id: string;
captured_amount: number;
klarna_reference: string;
reference: string;
refunded_amount: number;
}
interface Refound {
reference: string;
refund_id: string;
refunded_amount: string;
refunded_at: string;
}
export {};