// ProposeCredential tells the issuer what the holder hopes to receive
ProposeCredential tells the issuer what the holder hopes to receive
// ProposeCredential tells the issuer what the holder hopes to receive
func (c *Client) ProposeCredential(
	connectionID string, 
	credentialPreview CredentialPreview, 
	comment string, 
	credentialDefinitionID string, 
	issuerDID string, 
	schemaID string, 
) (CredentialExchangeRecord, error) {
	var response CredentialExchangeRecord
	var request = credentialProposalRequest{
		CredentialDefinitionID: credentialDefinitionID,
		ConnectionID:           connectionID,
		IssuerDID:              issuerDID,
		Comment:                comment,
		CredentialPreview:      credentialPreview,
		SchemaID:               schemaID,
		Trace:                  c.tracing,
		AutoRemove:             !c.preserveExchangeRecords,
	}
	err := c.post("/issue-credential/send-proposal", nil, request, &response)
	if err != nil {
		return CredentialExchangeRecord{}, err
	}
	return response, nil
}
func ( c * Client ) ProposeCredential ( connectionID string , credentialPreview CredentialPreview , comment string , credentialDefinitionID string , issuerDID string , schemaID string , ) ( CredentialExchangeRecord , error ) { var response CredentialExchangeRecord var request = credentialProposalRequest { CredentialDefinitionID : credentialDefinitionID , ConnectionID : connectionID , IssuerDID : issuerDID , Comment : comment , CredentialPreview : credentialPreview , SchemaID : schemaID , Trace : c . tracing , AutoRemove : ! c . preserveExchangeRecords , } err := c . post ( " " , nil , request , & response ) if err != nil { return CredentialExchangeRecord { } , err } return response , nil }
ProposeCredential tells the issuer what the holder hopes to receive
ProposeCredential tells the issuer what the holder hopes to receive
// required // required // optional // optional // optional // optional