All files transactionDto.ts

100% Statements 23/23
100% Branches 0/0
100% Functions 1/1
100% Lines 23/23

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34              2x   1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x      
import {
  TransactionType,
  TransactionStatus,
  TaxAmount,
  CardScheme,
} from './types.d';
 
export class TransactionDto {
  constructor(
    public id: string,
    public deviceUuid: string,
    public entityUuid: string,
    public siteUuid: string,
    public timestamp: string,
    public transactionType: TransactionType,
    public status: TransactionStatus,
    public maskedPan: string,
    public reference: string,
    public amount: number,
    public deviceName?: string,
    public siteName?: string,
    public saleAmount?: number,
    public tipAmount?: number,
    public feeAmount?: number,
    public taxAmounts?: TaxAmount[],
    public surchargeAmount?: number,
    public scheme?: CardScheme,
    public depositUuid?: string,
    public depositDate?: string,
    public panToken?: string,
    public par?: string,
  ) {}
}