/** * Copyright (c) 2020 The Nuinalp Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ import { Model } from '@nuinalp/api-core/browser'; import { IStatusPayment } from '../types/payment.interface'; import Invoices from './invoices'; import { IPaymentsPublic } from '../types'; import { Cards } from '..'; export default class Payments extends Model { protected static adapter: any; id: string; description: string; amount: number; note?: string; ip_address?: string; app?: string; installments?: number; notification_url?: string; redirect_url?: string; transaction_status?: "insufficient_funds" | "invalid_data" | "Accepted"; status: IStatusPayment; bypass_success_screen?: boolean; boleto_barcode?: string; boleto_digitable_line?: string; boleto_number?: string; boleto_url?: string; id_invoice: string; invoice: Invoices; payment_method: string; due_date: string; pix_key: string; pix_qrcode: string; card: Cards; created_at: Date; updated_at?: Date; deleted_at?: Date; confirmed_at?: Date; static confirmPaymentSb(id: string): Promise; static forceOverdueSb(id: string): Promise; static confirmCashReceipt(id: string, amount: number, description?: string, send_email?: boolean): Promise; static getPublicInfo(id: string): Promise; static process(id: string, body: Payments): Promise; }