Skip to content

Commit

Permalink
added attribute descriptions for Broker Modell
Browse files Browse the repository at this point in the history
  • Loading branch information
egerj committed Mar 27, 2021
1 parent a030df9 commit fbad7ba
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/broker/models/Broker.model.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,24 @@
import { ApiProperty } from '@nestjs/swagger';

export class BrokerModel {
@ApiProperty({
description: 'Token of broker, to identify and authenticate.',
})
id: string;

@ApiProperty({
description: 'Type of broker. Important for clearing and access rights',
type: 'BrokerType',
})
type: 'private' | 'business' | 'simulation' | 'stockmarket';

@ApiProperty({
description: 'Internal displayName for an specific broker',
})
displayName: string;

@ApiProperty({
description: 'Determines if broker is banned',
})
banned?: boolean;
}

0 comments on commit fbad7ba

Please sign in to comment.