Utility.Commercials.V0.Model.Types

Types used for the commercial agreement.

Data Types

data BillingContext

Context retrieved from the ledger to be used for executing a billing cycle.

BillingContext

Field

Type

Description

openRoundCid

ContractId OpenMiningRound

The contract-id of the open round to user for billing.

openRound

OpenMiningRound

The data of the open round used for billing. Mostly used to fetch the coin price.

featuredTransferContext

AppTransferContext

Transfer context to use for making a CC transfer as a featured app.

unfeaturedTransferContext

AppTransferContext

Transfer context to use for making a CC transfer as an unfeatured app. Used for CC transfers not considered to be eligible as featured transfers by the SVs.

data UtilityFees

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

UtilityFees

Field

Type

Description

credentialBillingFeeUsd

Optional Decimal

The fee that the user will pay for each credential billing that the operator performs on the user’s behalf. The fee is denominated in USD but will be charged in CC at the official FX rate of the Canton Network.