Documentation ¶
Index ¶
- type CreatePresentationDefinitionRequest
- type CreatePresentationDefinitionResponse
- type CreateRequestRequest
- type CreateRequestResponse
- type CreateSubmissionRequest
- type CreateSubmissionResponse
- type DeletePresentationDefinitionRequest
- type DeleteRequestRequest
- type DeleteSubmissionRequest
- type GetPresentationDefinitionRequest
- type GetPresentationDefinitionResponse
- type GetRequestRequest
- type GetRequestResponse
- type GetSubmissionRequest
- type GetSubmissionResponse
- type ListDefinitionsResponse
- type ListRequestsResponse
- type ListSubmissionRequest
- type ListSubmissionResponse
- type Request
- type ReviewSubmissionRequest
- type Submission
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreatePresentationDefinitionRequest ¶
type CreatePresentationDefinitionRequest struct {
PresentationDefinition exchange.PresentationDefinition `json:"presentationDefinition" validate:"required"`
}
func (CreatePresentationDefinitionRequest) IsValid ¶
func (cpr CreatePresentationDefinitionRequest) IsValid() error
type CreatePresentationDefinitionResponse ¶
type CreatePresentationDefinitionResponse struct {
PresentationDefinition exchange.PresentationDefinition `json:"presentationDefinition"`
}
type CreateRequestRequest ¶
type CreateRequestRequest struct {
PresentationRequest Request `json:"presentationRequest"`
}
type CreateRequestResponse ¶
type CreateRequestResponse struct {
PresentationRequest Request `json:"presentationRequest"`
}
type CreateSubmissionRequest ¶
type CreateSubmissionRequest struct { Presentation credsdk.VerifiablePresentation `json:"presentation" validate:"required"` SubmissionJWT keyaccess.JWT `json:"submissionJwt,omitempty" validate:"required"` Submission exchange.PresentationSubmission `json:"submission" validate:"required"` Credentials []credential.Container `json:"credentials,omitempty"` }
func (CreateSubmissionRequest) IsValid ¶
func (csr CreateSubmissionRequest) IsValid() bool
type CreateSubmissionResponse ¶
type CreateSubmissionResponse struct {
Submission exchange.PresentationSubmission `json:"submission"`
}
type DeletePresentationDefinitionRequest ¶
type DeletePresentationDefinitionRequest struct {
ID string `json:"id" validate:"required"`
}
type DeleteRequestRequest ¶
type DeleteRequestRequest struct {
ID string `json:"id" validate:"required"`
}
type DeleteSubmissionRequest ¶
type DeleteSubmissionRequest struct {
ID string `json:"id" validate:"required"`
}
type GetPresentationDefinitionRequest ¶
type GetPresentationDefinitionRequest struct {
ID string `json:"id" validate:"required"`
}
type GetPresentationDefinitionResponse ¶
type GetPresentationDefinitionResponse struct {
PresentationDefinition exchange.PresentationDefinition `json:"presentationDefinition"`
}
type GetRequestRequest ¶
type GetRequestRequest struct {
ID string `json:"id" validate:"required"`
}
type GetRequestResponse ¶
type GetSubmissionRequest ¶
type GetSubmissionRequest struct {
ID string `json:"id" validate:"required"`
}
type GetSubmissionResponse ¶
type GetSubmissionResponse struct {
Submission Submission `json:"submission"`
}
type ListDefinitionsResponse ¶
type ListDefinitionsResponse struct {
Definitions []*exchange.PresentationDefinition `json:"definitions"`
}
type ListRequestsResponse ¶
type ListRequestsResponse struct {
PresentationRequests []Request `json:"presentationRequests"`
}
type ListSubmissionRequest ¶
type ListSubmissionRequest struct { Filter filtering.Filter PageRequest *pagination.PageRequest }
type ListSubmissionResponse ¶
type ListSubmissionResponse struct { Submissions []Submission `json:"submissions"` NextPageToken string }
type Request ¶
type Request struct { common.Request // ID of the presentation definition used for this request. PresentationDefinitionID string `json:"presentationDefinitionId" validate:"required"` // PresentationDefinitionJWT is a JWT token with a "presentation_definition" claim and an optional "callbackUrl" claim // within it. The value of the field named "presentation_definition.id" matches PresentationDefinitionID. // This is an output only field. PresentationDefinitionJWT keyaccess.JWT `json:"presentationRequestJwt"` }
type ReviewSubmissionRequest ¶
type ReviewSubmissionRequest struct { ID string `json:"id" validate:"required"` Approved bool `json:"approved"` Reason string `json:"reason"` }
func (ReviewSubmissionRequest) Validate ¶
func (r ReviewSubmissionRequest) Validate() error
Validate runs validation on the request struct and returns errors when it's invalid.
type Submission ¶
type Submission struct { // One of {`pending`, `approved`, `denied`, `cancelled`}. Status string `json:"status" validate:"required"` // The reason why the submission was approved or denied. Reason string `json:"reason,omitempty"` // The verifiable presentation containing the presentation_submission along with the credentials presented. VerifiablePresentation *credsdk.VerifiablePresentation `json:"verifiablePresentation,omitempty"` }
func ServiceModel ¶
func ServiceModel(storedSubmission *storage.StoredSubmission) Submission
ServiceModel creates a Submission from a given StoredSubmission.
func (Submission) GetSubmission ¶
func (r Submission) GetSubmission() *exchange.PresentationSubmission
Click to show internal directories.
Click to hide internal directories.