// OfferCredential sends to the holder what the issuer can offer
// TODO support payment decorator
OfferCredential sends to the holder what the issuer can offer
TODO support payment decorator
// OfferCredential sends to the holder what the issuer can offer // TODO support payment decorator
func (c *Client) OfferCredential(
	connectionID string, 
	credentialPreview CredentialPreview, 
	credentialDefinitionID string, 
	comment string, 
) (CredentialExchangeRecord, error) {
	var offer = credentialOfferRequest{
		CredentialDefinitionID: credentialDefinitionID,
		ConnectionID:           connectionID,
		CredentialPreview:      credentialPreview,
		Comment:                comment,
		Trace:                  c.tracing,
		AutoRemove:             !c.preserveExchangeRecords,
		AutoIssue:              c.autoRespondCredentialOffer,
	}
	var credentialExchangeRecord CredentialExchangeRecord
	err := c.post("/issue-credential/send-offer", nil, offer, &credentialExchangeRecord)
	if err != nil {
		return CredentialExchangeRecord{}, err
	}
	return credentialExchangeRecord, nil
}
func ( c * Client ) OfferCredential ( connectionID string , credentialPreview CredentialPreview , credentialDefinitionID string , comment string , ) ( CredentialExchangeRecord , error ) { var offer = credentialOfferRequest { CredentialDefinitionID : credentialDefinitionID , ConnectionID : connectionID , CredentialPreview : credentialPreview , Comment : comment , Trace : c . tracing , AutoRemove : ! c . preserveExchangeRecords , AutoIssue : c . autoRespondCredentialOffer , } var credentialExchangeRecord CredentialExchangeRecord err := c . post ( " " , nil , offer , & credentialExchangeRecord ) if err != nil { return CredentialExchangeRecord { } , err } return credentialExchangeRecord , nil }
OfferCredential sends to the holder what the issuer can offer
TODO support payment decorator
OfferCredential sends to the holder what the issuer can offer TODO support payment decorator
// required // required // optional // optional