Skip to main content

Class: Payment

Hierarchy

  • BaseEntity

    Payment

Constructors

constructor

new Payment()

Inherited from

BaseEntity.constructor

Properties

amount

amount: number

Defined in

models/payment.ts:51


amount_refunded

amount_refunded: number

Defined in

models/payment.ts:62


canceled_at

canceled_at: string | Date

Defined in

models/payment.ts:75


captured_at

captured_at: string | Date

Defined in

models/payment.ts:72


cart

cart: Cart

Defined in

models/payment.ts:40


cart_id

cart_id: string

Defined in

models/payment.ts:36


created_at

created_at: Date

Inherited from

BaseEntity.created_at

Defined in

interfaces/models/base-entity.ts:16


currency

currency: Currency

Defined in

models/payment.ts:59


currency_code

currency_code: string

Defined in

models/payment.ts:55


data

data: Record<string, unknown>

Defined in

models/payment.ts:69


id

id: string

Inherited from

BaseEntity.id

Defined in

interfaces/models/base-entity.ts:13


idempotency_key

idempotency_key: string

Defined in

models/payment.ts:81


metadata

metadata: Record<string, unknown>

Defined in

models/payment.ts:78


order

order: Order

Defined in

models/payment.ts:48


order_id

order_id: string

Defined in

models/payment.ts:44


provider_id

provider_id: string

Defined in

models/payment.ts:66


swap

swap: Swap

Defined in

models/payment.ts:32


swap_id

swap_id: string

Defined in

models/payment.ts:28


updated_at

updated_at: Date

Inherited from

BaseEntity.updated_at

Defined in

interfaces/models/base-entity.ts:19

Methods

beforeInsert

Private beforeInsert(): void

Returns

void

Defined in

models/payment.ts:83