All files / src/models contract-description.model.ts

100% Statements 8/8
100% Branches 0/0
100% Functions 0/0
100% Lines 4/4

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 248x             8x                       8x   8x    
import {arrayProperty, model} from "@waytrade/microservice-core";
import {Contract} from "./contract.model";
 
/**
 * A contract description.
 */
 @model(" A contract description.")
 export class ContractDescription {
  /** The underlying contract. */
  contract?: Contract;
 
  /** Array of derivative security types. */
  derivativeSecTypes?: string[];
 }
 
/**
 * A list of contract descriprions.
 */
 @model("A list of contract descriprions.")
 export class ContractDescriptionList {
   @arrayProperty(ContractDescription, "Array of contract descriprions")
   descs?: ContractDescription[];
 }