@@ -12,10 +12,15 @@ interface IProductService {
1212 bytes calldata applicationData
1313 ) external ;
1414
15- function collectPremium (bytes32 processId , uint256 amount ) external ;
15+ function collectPremium (bytes32 processId , uint256 amount ) external
16+ returns (
17+ bool success ,
18+ uint256 feeAmount ,
19+ uint256 netPremiumAmount
20+ );
1621
1722 function revoke (bytes32 processId ) external ;
18- function underwrite (bytes32 processId ) external returns (bool success );
23+ function underwrite (bytes32 processId ) external returns (bool success );
1924 function decline (bytes32 processId ) external ;
2025 function expire (bytes32 processId ) external ;
2126 function close (bytes32 processId ) external ;
@@ -24,7 +29,7 @@ interface IProductService {
2429 bytes32 processId ,
2530 uint256 claimAmount ,
2631 bytes calldata data
27- ) external returns (uint256 claimId );
32+ ) external returns (uint256 claimId );
2833
2934 function declineClaim (bytes32 processId , uint256 claimId ) external ;
3035
@@ -33,7 +38,7 @@ interface IProductService {
3338 uint256 claimId ,
3439 uint256 payoutAmount ,
3540 bytes calldata data
36- ) external returns (uint256 payoutId );
41+ ) external returns (uint256 payoutId );
3742
3843 function processPayout (
3944 bytes32 processId ,
@@ -48,5 +53,5 @@ interface IProductService {
4853 string calldata callbackMethodName ,
4954 address callbackContractAddress ,
5055 uint256 responsibleOracleId
51- ) external returns (uint256 requestId );
56+ ) external returns (uint256 requestId );
5257}
0 commit comments