// IssueCredentialByID issues a credential to the holder based on a previously received request
IssueCredentialByID issues a credential to the holder based on a previously received request
// IssueCredentialByID issues a credential to the holder based on a previously received request
func (c *Client) IssueCredentialByIDV2(credentialExchangeID string, comment string) (CredentialExchangeRecordResult, error) {
	var credentialExchange CredentialExchangeRecordResult
	var body = struct {
		Comment string `json:"comment"`
	}{
		Comment: comment,
	}
	err := c.post(fmt.Sprintf("/issue-credential-2.0/records/%s/issue", credentialExchangeID), nil, body, &credentialExchange)
	if err != nil {
		return CredentialExchangeRecordResult{}, err
	}
	return credentialExchange, nil
}
func ( c * Client ) IssueCredentialByIDV2 ( credentialExchangeID string , comment string ) ( CredentialExchangeRecordResult , error ) { var credentialExchange CredentialExchangeRecordResult var body = struct { Comment string `json:"comment"` } { Comment : comment , } err := c . post ( fmt . Sprintf ( " " , credentialExchangeID ) , nil , body , & credentialExchange ) if err != nil { return CredentialExchangeRecordResult { } , err } return credentialExchange , nil }
IssueCredentialByID issues a credential to the holder based on a previously received request
IssueCredentialByID issues a credential to the holder based on a previously received request