UNPKG

@mia-burton/klarna-node

Version:
95 lines (83 loc) 2.23 kB
import { Address } from "./address.type" import { FraudStatus } from "./fraud-status.enum" import { OrderLine } from "./order-line.type" import { OrderStatus } from "./order-status.enum" export class Order { 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 private _capturedAmount!: number private _status!: OrderStatus private _fraudStatus!: FraudStatus 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 } public get capturedAmount(): number { return this._capturedAmount } public set capturedAmount(value: number) { this._capturedAmount = value } public get status(): OrderStatus { return this._status } public set status(value: OrderStatus) { this._status = value } public get fraudStatus() { return this._fraudStatus } public set fraudStatus(value: FraudStatus) { this._fraudStatus = value } }