Documentation
¶
Index ¶
- type ConsentClient
- func (c *ConsentClient) GetReceipt(ctx context.Context, receiptID string) (*ConsentReceiptModel, error)
- func (c *ConsentClient) List(ctx context.Context, params *ConsentListParamsModel) ([]ConsentListItemModel, error)
- func (c *ConsentClient) RevokeReceipt(ctx context.Context, receiptID string) error
- type ConsentListItemModel
- type ConsentListParamsModel
- type ConsentReceiptModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsentClient ¶
type ConsentClient struct {
// contains filtered or unexported fields
}
ConsentClient is a wrapper around the generated client for the Consent Management API
func New ¶
func New(cfg *config.ClientConfig) (*ConsentClient, error)
New creates a new Consent Management API client
func (*ConsentClient) GetReceipt ¶
func (c *ConsentClient) GetReceipt(ctx context.Context, receiptID string) (*ConsentReceiptModel, error)
GetReceipt retrieves a consent receipt
func (*ConsentClient) List ¶
func (c *ConsentClient) List(ctx context.Context, params *ConsentListParamsModel) ([]ConsentListItemModel, error)
List retrieves consent receipts matching the given filters
func (*ConsentClient) RevokeReceipt ¶
func (c *ConsentClient) RevokeReceipt(ctx context.Context, receiptID string) error
RevokeReceipt revokes a consent receipt
type ConsentListItemModel ¶
type ConsentListItemModel = internal.ConsentResponse
type ConsentListParamsModel ¶
type ConsentListParamsModel = internal.GetConsentsParams
type ConsentReceiptModel ¶
type ConsentReceiptModel = internal.ConsentReceipt