// OfferCredentialByID sends an offer to the holder based on a previously received proposal
OfferCredentialByID sends an offer to the holder based on a previously received proposal
// OfferCredentialByID sends an offer to the holder based on a previously received proposal
func (c *Client) OfferCredentialByIDV2(credentialExchangeID string) (CredentialExchangeRecordResult, error) {
	var credentialExchange CredentialExchangeRecordResult
	err := c.post(fmt.Sprintf("/issue-credential-2.0/records/%s/send-offer", credentialExchangeID), nil, nil, &credentialExchange)
	if err != nil {
		return CredentialExchangeRecordResult{}, err
	}
	return credentialExchange, nil
}
func ( c * Client ) OfferCredentialByIDV2 ( credentialExchangeID string ) ( CredentialExchangeRecordResult , error ) { var credentialExchange CredentialExchangeRecordResult err := c . post ( fmt . Sprintf ( " " , credentialExchangeID ) , nil , nil , & credentialExchange ) if err != nil { return CredentialExchangeRecordResult { } , err } return credentialExchange , nil }
OfferCredentialByID sends an offer to the holder based on a previously received proposal
OfferCredentialByID sends an offer to the holder based on a previously received proposal