Utility.Credential.App.V0.Model.Offer

Templates

template CredentialOffer

An offer to create a credential, including the subscription price.

Signatory: operator, issuer

Field

Type

Description

operator

Party

Utility operator.

issuer

Party

Issuer of the credential.

holder

Party

Holder of the credential.

dso

Party

DSO (Decentralized Synchronizer Operations) party.

id

Text

Identifier of the credential.

description

Text

Description of the credential.

claims

[Claim]

Claims contained in the credential.

billingParams

Optional BillingParams

Billing parameters for the credential.

depositInitialAmountUsd

Optional Decimal

The amount of $ to be initially locked (as CC) as a deposit to cover fee payments. It can be different than the targetAmount specified in the credential billing parameters.

template RejectedCredentialOffer

A rejected credential offer.

Signatory: (DA.Internal.Record.getField @"operator" offer)

Field

Type

Description

offer

CredentialOffer

Rejected offer payload.

reason

Text

Reject reason.

  • Choice Archive

    Controller: (DA.Internal.Record.getField @"operator" offer)

    Returns: ()

    (no fields)

Data Types

data CredentialOffer_AcceptFree_Result

Result of accepting the offer for a free credential.

CredentialOffer_AcceptFree_Result

Field

Type

Description

credentialCid

ContractId Credential

The credential.

data CredentialOffer_AcceptPaid_Result

Result of accepting the offer for a paid credential.

CredentialOffer_AcceptPaid_Result

Field

Type

Description

credentialBillingCid

ContractId CredentialBilling

The credential billing.

credentialCid

ContractId Credential

The credential.

data CredentialOffer_Cancel_Result

Result of canceling the offer for a paid credential.

CredentialOffer_Cancel_Result

(no fields)

data CredentialOffer_Reject_Result

Result of rejecting the offer for a paid credential.

CredentialOffer_Reject_Result

Field

Type

Description

rejectedCredentialOfferCid

ContractId RejectedCredentialOffer

The rejected credential offer.