diff --git a/src/entities/SecurityTokenReservation.ts b/src/entities/SecurityTokenReservation.ts index 7352fe5..c7b6e3a 100644 --- a/src/entities/SecurityTokenReservation.ts +++ b/src/entities/SecurityTokenReservation.ts @@ -116,13 +116,13 @@ export class SecurityTokenReservation extends Entity { }; public toPojo() { - const { uid, symbol, expiry, securityTokenAddress } = this; + const { uid, symbol, expiry, securityTokenAddress, reservedAt, ownerAddress } = this; - return { uid, symbol, expiry, securityTokenAddress }; + return { uid, symbol, expiry, securityTokenAddress, reservedAt, ownerAddress }; } public _refresh(params: Partial) { - const { expiry, securityTokenAddress } = params; + const { expiry, securityTokenAddress, reservedAt, ownerAddress } = params; if (expiry) { this.expiry = expiry; @@ -131,5 +131,13 @@ export class SecurityTokenReservation extends Entity { if (securityTokenAddress) { this.securityTokenAddress = securityTokenAddress; } + + if (reservedAt) { + this.reservedAt = reservedAt; + } + + if (ownerAddress) { + this.ownerAddress = ownerAddress; + } } }