/** * 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 IReplace from '../types/cards.interface'; export default class Card extends Model { protected static adapter: any; id: string; token: string; id_customer: string; payment_type_code: 'visa' | 'mastercard' | 'american_express' | 'diners_club' | 'discover' | 'jcb' | 'unionpay' | 'maestro' | 'mir' | 'elo' | 'hiper' | 'hipercard'; masked_card_number: string; enable: 'active' | 'expired'; type: 'credit' | 'debit'; created_at: Date; updated_at: Date; deleted_at: Date; /** * Replace a existing card by creating a new card * @param id - Id of organization */ static replace({ card, id, id_customer }: IReplace): Promise; }