UNPKG

@mia-burton/klarna-node

Version:
69 lines (60 loc) 1.59 kB
import { Address } from "./address.type" import { OrderLine } from "./order-line.type" export class OrderInput { private _billingAddress?: Address private _shippingAddress?: Address private _locale!: string private _amount!: number private _lines!: Array<OrderLine> private _country!: string private _currency!: string private _mertchantReference!: string public get billingAddress(): Address | undefined { return this._billingAddress } public set billingAddress(value: Address | undefined) { this._billingAddress = value } public get shippingAddress(): Address | undefined { return this._shippingAddress } public set shippingAddress(value: Address | undefined) { this._shippingAddress = value } public get locale(): string { return this._locale } public set locale(value: string) { this._locale = value } public get amount(): number { return this._amount } public set amount(value: number) { this._amount = value } public get lines(): Array<OrderLine> { return this._lines } public set lines(value: Array<OrderLine>) { this._lines = value } public get country(): string { return this._country } public set country(value: string) { this._country = value } public get currency(): string { return this._currency } public set currency(value: string) { this._currency = value } public get mertchantReference(): string { return this._mertchantReference } public set mertchantReference(value: string) { this._mertchantReference = value } }