- Overview
- Setup
- Tutorials
- How Tos
- Reference
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
targetAmountspecified 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
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
The rejected credential offer.