@@ -6,16 +6,14 @@ import { PolymathError } from '../PolymathError';
66import { ErrorCode } from '../types' ;
77
88/**
9- * Represents a unique security token reservation
9+ * Properties that uniquely identify a Security Token Reservation
1010 */
1111export interface UniqueIdentifiers {
1212 symbol : string ;
1313}
1414
1515/**
1616 * Check if the provided value is of type [[UniqueIdentifiers]]
17- *
18- * @param identifiers - internal security token reservation representation
1917 */
2018function isUniqueIdentifiers ( identifiers : any ) : identifiers is UniqueIdentifiers {
2119 const { symbol } = identifiers ;
@@ -24,16 +22,13 @@ function isUniqueIdentifiers(identifiers: any): identifiers is UniqueIdentifiers
2422}
2523
2624/**
27- * Represents a single Security Token Reservation
25+ * Constructor parameters
2826 */
2927export interface Params {
3028 /**
3129 * expiry date for the ticker reservation
3230 */
3331 expiry : Date ;
34- /**
35- * date at which ticker is registered
36- */
3732 reservedAt : Date ;
3833 ownerAddress : string ;
3934 securityTokenAddress ?: string ;
@@ -44,7 +39,7 @@ export interface Params {
4439 */
4540export class SecurityTokenReservation extends Entity < Params > {
4641 /**
47- * Transform object to string
42+ * Generate the Security Token Reservation's UUID from its identifying properties
4843 */
4944 public static generateId ( { symbol } : UniqueIdentifiers ) {
5045 return serialize ( 'securityTokenReservation' , {
@@ -158,7 +153,7 @@ export class SecurityTokenReservation extends Entity<Params> {
158153 } ;
159154
160155 /**
161- * Convert entity as a POJO (Plain Old Javascript Object)
156+ * Convert entity to a POJO (Plain Old Javascript Object)
162157 */
163158 public toPojo ( ) {
164159 const { uid, symbol, expiry, securityTokenAddress, reservedAt, ownerAddress } = this ;
@@ -167,7 +162,7 @@ export class SecurityTokenReservation extends Entity<Params> {
167162 }
168163
169164 /**
170- * Hydrating the entity
165+ * Hydrate the entity
171166 */
172167 public _refresh ( params : Partial < Params > ) {
173168 const { expiry, securityTokenAddress, reservedAt, ownerAddress } = params ;
0 commit comments