- Overview
- Setup
- Tutorials
- How Tos
- Reference
- DAR Versions
- API Reference
- Commercials API
- Credential API
- Registry API
- Utility.Registry
- Utility.Registry.V0.Configuration.AppReward
- Utility.Registry.V0.Configuration.Instrument
- Utility.Registry.V0.Holding.Allocation
- Utility.Registry.V0.Holding.Burn
- Utility.Registry.V0.Holding.Lock
- Utility.Registry.V0.Holding.Mint
- Utility.Registry.V0.Holding.Transfer
- Utility.Registry.V0.Holding.Unlock
- Utility.Registry.V0.Rule.Transfer
- Utility.Registry.V0.Types
- Utility.Registry.V0.Util
- Utility.Registry.App
- Utility.Holding
- Utility.Registry
- Settlement Utility API
- Collateral Utility API
- Operator Backend API
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.
Field
Type
Description
openRoundCid
The contract-id of the open round to user for billing.
openRound
The data of the open round used for billing. Mostly used to fetch the coin price.
featuredTransferContext
Transfer context to use for making a CC transfer as a featured app.
unfeaturedTransferContext
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 BillingCycleParams
Parameters that determine the execution of a specific billing cycle.
data BillingState
Information about the state of the billing process for a fee that is billed over adjacent time periods (from a given point in time until a later point in time, repeatedly).
Field
Type
Description
status
The current status of the billing operation.
lastBilledAt
Ledger time when this fee was last billed.
billedUntil
The time until which the fee is paid for. The fee is billed in integer multiples of the billing period, i.e.,
billedUntil = lastBilledAt + N x billingPeriod
.
data BillingStatus
The status of a billing operation.
The billing operation was successful.
No billing operation has been performed yet because this is a new contract.
data EventBillingState
Information about the state of the billing process for a specific event (e.g. a collateral transaction).
Field
Type
Description
status
The current status of the billing operation.
lastBilledAt
Ledger time when this fee was last billed. This is mostly used for reference, not for the calculation of the actual billing amount.
lastBilledOffset
Ledger offset when this fee was last billed. This is mostly used for reference, not for the calculation of the actual billing amount.
data FixedFee
Configuration of a fixed fee, billed at a regular interval.
Field
Type
Description
feePerDayUsd
The daily fee in USD.
billingPeriodMinutes
Duration between the times where the fee is charged on a pro-rata basis (expressed in minutes).
data RatePerDay
data UtilityFees
The fees that the user will pay for using the Utility services. The fees are denominated in USD but will be charged in CC at the official FX rate of the Canton Network.
Field
Type
Description
credentialBillingFeeUsd
The fee that the user will pay for each credential billing that the operator performs on the user’s behalf.
baseFee
The base fee that the user will pay to use the Utility. This field is available starting from version
0.1.0
of this package.