UNPKG
synkrokonn-dev
Version:
latest (2.0.3)
2.0.3
2.0.1
2.0.0
1.0.0
Plugin-based cross-chain orchestration middleware for Web3 enterprise automation.
synkrokonn-dev
/
dist
/
domain
/
handlers
/
InsuranceHandler.js
8 lines
(7 loc)
•
319 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
export
class
InsuranceHandler
{
static
async
handle
(
domainObject
) {
const
{ policyId, coverage, premium } = domainObject.
payload
;
console
.
log
(
`[InsuranceHandler] Processing insurance policy
${policyId}
`
);
console
.
log
(
`[InsuranceHandler] Coverage:
${coverage}
, Premium:
${premium}
`
); } }