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
Utility operator.
issuer
Issuer of the credential.
holder
Holder of the credential.
dso
DSO (Decentralized Synchronizer Operations) party.
id
Identifier of the credential.
description
Description of the credential.
claims
[Claim]
Claims contained in the credential.
billingParams
Billing parameters for the credential.
depositInitialAmountUsd
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.
Choice Archive
Controller: operator, issuer
Returns: ()
(no fields)
Choice CredentialOffer_AcceptFree
Accepts a free credential offer.
Controller: holder
Returns: CredentialOffer_AcceptFree_Result
(no fields)
Choice CredentialOffer_AcceptPaid
Accepts a paid credential offer.
Controller: holder, operator
Returns: CredentialOffer_AcceptPaid_Result
Field
Type
Description
holderInputs
Amulet to be used to fund the deposit.
appTransferContext
Context for the deposit funding transfer (effectively it is a lock rather than a Transfer).
Choice CredentialOffer_Cancel
Cancels the credential offer.
Controller: issuer, operator
Returns: CredentialOffer_Cancel_Result
(no fields)
Choice CredentialOffer_Reject
Rejects the credential offer.
Controller: holder, operator
Returns: CredentialOffer_Reject_Result
Field
Type
Description
reason
Reject reason.
template RejectedCredentialOffer
A rejected credential offer.
Signatory: (DA.Internal.Record.getField @"operator" offer)
Field
Type
Description
offer
Rejected offer payload.
reason
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
The credential.
data CredentialOffer_AcceptPaid_Result
Result of accepting the offer for a paid credential.
CredentialOffer_AcceptPaid_Result
Field
Type
Description
credentialBillingCid
The credential billing.
credentialCid
The credential.
data CredentialOffer_Cancel_Result
data CredentialOffer_Reject_Result
Result of rejecting the offer for a paid credential.
Field
Type
Description
rejectedCredentialOfferCid
The rejected credential offer.