Utility.Commercials.V0.Model.Offer

Templates

template CommercialAgreementOffer

An offer to create a commercial agreement for the Utility, including the fee per credential billing.

Signatory: operator

Field

Type

Description

operator

Party

Utility operator.

user

Party

Utility user.

feeReceiver

Party

The party that will receive the fee for using the Utility services.

utilityFees

UtilityFees

The fee that the user will pay for using the Utility services.

dso

Party

DSO (Decentralized Synchronizer Operations) party.

initialDepositAmountCc

Optional Decimal

An initial deposit amount (in CC) proposed by the operator.

rewardReceiver

Optional Party

The party that will receive the rewards from the Utility service fees. This field is available starting from version 0.3.0 of this package.

  • Choice Archive

    Controller: operator

    Returns: ()

    (no fields)

Data Types

data CommercialAgreementOffer\_AcceptAndTopup\_Result

Result of accepting and topping up a commercial agreement.

CommercialAgreementOffer\_AcceptAndTopup\_Result

Field

Type

Description

commercialAgreementCid

ContractId CommercialAgreement

The commercial agreement.

data CommercialAgreementOffer\_Accept\_Result

Result of accepting a commercial agreement.

CommercialAgreementOffer\_Accept\_Result

Field

Type

Description

commercialAgreementCid

ContractId CommercialAgreement

The commercial agreement.

data CommercialAgreementOffer\_Cancel\_Result

Result of canceling a commercial agreement offer.

data CommercialAgreementOffer\_Reject\_Result

Result of rejecting a commercial agreement offer.

CommercialAgreementOffer\_Reject\_Result

Field

Type

Description

reason

Text

The reason for rejection.