graycoreio/daffodil

View on GitHub
libs/order/src/models/order-payment.ts

Summary

Maintainability
A
0 mins
Test Coverage
import {
  DaffIdentifiable,
  ID,
} from '@daffodil/core';

import { DaffOrder } from './order';

export interface DaffOrderCreditCardPayment extends DaffIdentifiable {
  /**
   * @deprecated use id instead. Deprecated in version 0.78.0. Will be removed in version 0.81.0.
   */
  payment_id: ID;
  order_id: DaffOrder['id'];
  created_at: string;
  updated_at: string;
  method: string; //todo: actually an enum
  cc_type: string;
  cc_last4: string;
  cc_owner: string;
  cc_exp_month: string;
  cc_exp_year: string;
}

export type DaffOrderPayment = DaffOrderCreditCardPayment;