openapi

package
v1.7.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2023 License: MIT Imports: 6 Imported by: 1

README

Go API client for openapi

This is the public Twilio REST API.

Overview

This API client was generated by the OpenAPI Generator project from the OpenAPI specs located at twilio/twilio-oai. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 1.43.2
  • Package version: 1.0.0
  • Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit https://support.twilio.com

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import "./openapi"

Documentation for API Endpoints

All URIs are relative to https://trusthub.twilio.com

Class Method HTTP request Description
CustomerProfilesApi CreateCustomerProfile Post /v1/CustomerProfiles
CustomerProfilesApi DeleteCustomerProfile Delete /v1/CustomerProfiles/{Sid}
CustomerProfilesApi FetchCustomerProfile Get /v1/CustomerProfiles/{Sid}
CustomerProfilesApi ListCustomerProfile Get /v1/CustomerProfiles
CustomerProfilesApi UpdateCustomerProfile Post /v1/CustomerProfiles/{Sid}
CustomerProfilesChannelEndpointAssignmentsApi CreateCustomerProfileChannelEndpointAssignment Post /v1/CustomerProfiles/{CustomerProfileSid}/ChannelEndpointAssignments
CustomerProfilesChannelEndpointAssignmentsApi DeleteCustomerProfileChannelEndpointAssignment Delete /v1/CustomerProfiles/{CustomerProfileSid}/ChannelEndpointAssignments/{Sid}
CustomerProfilesChannelEndpointAssignmentsApi FetchCustomerProfileChannelEndpointAssignment Get /v1/CustomerProfiles/{CustomerProfileSid}/ChannelEndpointAssignments/{Sid}
CustomerProfilesChannelEndpointAssignmentsApi ListCustomerProfileChannelEndpointAssignment Get /v1/CustomerProfiles/{CustomerProfileSid}/ChannelEndpointAssignments
CustomerProfilesEntityAssignmentsApi CreateCustomerProfileEntityAssignment Post /v1/CustomerProfiles/{CustomerProfileSid}/EntityAssignments
CustomerProfilesEntityAssignmentsApi DeleteCustomerProfileEntityAssignment Delete /v1/CustomerProfiles/{CustomerProfileSid}/EntityAssignments/{Sid}
CustomerProfilesEntityAssignmentsApi FetchCustomerProfileEntityAssignment Get /v1/CustomerProfiles/{CustomerProfileSid}/EntityAssignments/{Sid}
CustomerProfilesEntityAssignmentsApi ListCustomerProfileEntityAssignment Get /v1/CustomerProfiles/{CustomerProfileSid}/EntityAssignments
CustomerProfilesEvaluationsApi CreateCustomerProfileEvaluation Post /v1/CustomerProfiles/{CustomerProfileSid}/Evaluations
CustomerProfilesEvaluationsApi FetchCustomerProfileEvaluation Get /v1/CustomerProfiles/{CustomerProfileSid}/Evaluations/{Sid}
CustomerProfilesEvaluationsApi ListCustomerProfileEvaluation Get /v1/CustomerProfiles/{CustomerProfileSid}/Evaluations
EndUserTypesApi FetchEndUserType Get /v1/EndUserTypes/{Sid}
EndUserTypesApi ListEndUserType Get /v1/EndUserTypes
EndUsersApi CreateEndUser Post /v1/EndUsers
EndUsersApi DeleteEndUser Delete /v1/EndUsers/{Sid}
EndUsersApi FetchEndUser Get /v1/EndUsers/{Sid}
EndUsersApi ListEndUser Get /v1/EndUsers
EndUsersApi UpdateEndUser Post /v1/EndUsers/{Sid}
PoliciesApi FetchPolicies Get /v1/Policies/{Sid}
PoliciesApi ListPolicies Get /v1/Policies
SupportingDocumentTypesApi FetchSupportingDocumentType Get /v1/SupportingDocumentTypes/{Sid}
SupportingDocumentTypesApi ListSupportingDocumentType Get /v1/SupportingDocumentTypes
SupportingDocumentsApi CreateSupportingDocument Post /v1/SupportingDocuments
SupportingDocumentsApi DeleteSupportingDocument Delete /v1/SupportingDocuments/{Sid}
SupportingDocumentsApi FetchSupportingDocument Get /v1/SupportingDocuments/{Sid}
SupportingDocumentsApi ListSupportingDocument Get /v1/SupportingDocuments
SupportingDocumentsApi UpdateSupportingDocument Post /v1/SupportingDocuments/{Sid}
TrustProductsApi CreateTrustProduct Post /v1/TrustProducts
TrustProductsApi DeleteTrustProduct Delete /v1/TrustProducts/{Sid}
TrustProductsApi FetchTrustProduct Get /v1/TrustProducts/{Sid}
TrustProductsApi ListTrustProduct Get /v1/TrustProducts
TrustProductsApi UpdateTrustProduct Post /v1/TrustProducts/{Sid}
TrustProductsChannelEndpointAssignmentsApi CreateTrustProductChannelEndpointAssignment Post /v1/TrustProducts/{TrustProductSid}/ChannelEndpointAssignments
TrustProductsChannelEndpointAssignmentsApi DeleteTrustProductChannelEndpointAssignment Delete /v1/TrustProducts/{TrustProductSid}/ChannelEndpointAssignments/{Sid}
TrustProductsChannelEndpointAssignmentsApi FetchTrustProductChannelEndpointAssignment Get /v1/TrustProducts/{TrustProductSid}/ChannelEndpointAssignments/{Sid}
TrustProductsChannelEndpointAssignmentsApi ListTrustProductChannelEndpointAssignment Get /v1/TrustProducts/{TrustProductSid}/ChannelEndpointAssignments
TrustProductsEntityAssignmentsApi CreateTrustProductEntityAssignment Post /v1/TrustProducts/{TrustProductSid}/EntityAssignments
TrustProductsEntityAssignmentsApi DeleteTrustProductEntityAssignment Delete /v1/TrustProducts/{TrustProductSid}/EntityAssignments/{Sid}
TrustProductsEntityAssignmentsApi FetchTrustProductEntityAssignment Get /v1/TrustProducts/{TrustProductSid}/EntityAssignments/{Sid}
TrustProductsEntityAssignmentsApi ListTrustProductEntityAssignment Get /v1/TrustProducts/{TrustProductSid}/EntityAssignments
TrustProductsEvaluationsApi CreateTrustProductEvaluation Post /v1/TrustProducts/{TrustProductSid}/Evaluations
TrustProductsEvaluationsApi FetchTrustProductEvaluation Get /v1/TrustProducts/{TrustProductSid}/Evaluations/{Sid}
TrustProductsEvaluationsApi ListTrustProductEvaluation Get /v1/TrustProducts/{TrustProductSid}/Evaluations

Documentation For Models

Documentation For Authorization

accountSid_authToken

  • Type: HTTP basic authentication

Example

auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{
    UserName: "username",
    Password: "password",
})
r, err := client.Service.Operation(auth, args)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiService added in v0.11.0

type ApiService struct {
	// contains filtered or unexported fields
}

func NewApiService added in v0.11.0

func NewApiService(requestHandler *twilio.RequestHandler) *ApiService

func NewApiServiceWithClient added in v0.11.0

func NewApiServiceWithClient(client twilio.BaseClient) *ApiService

func (*ApiService) CreateCustomerProfile added in v0.11.0

func (c *ApiService) CreateCustomerProfile(params *CreateCustomerProfileParams) (*TrusthubV1CustomerProfile, error)

Create a new Customer-Profile.

func (*ApiService) CreateCustomerProfileChannelEndpointAssignment added in v0.11.0

func (c *ApiService) CreateCustomerProfileChannelEndpointAssignment(CustomerProfileSid string, params *CreateCustomerProfileChannelEndpointAssignmentParams) (*TrusthubV1CustomerProfileChannelEndpointAssignment, error)

Create a new Assigned Item.

func (*ApiService) CreateCustomerProfileEntityAssignment added in v0.11.0

func (c *ApiService) CreateCustomerProfileEntityAssignment(CustomerProfileSid string, params *CreateCustomerProfileEntityAssignmentParams) (*TrusthubV1CustomerProfileEntityAssignment, error)

Create a new Assigned Item.

func (*ApiService) CreateCustomerProfileEvaluation added in v0.11.0

func (c *ApiService) CreateCustomerProfileEvaluation(CustomerProfileSid string, params *CreateCustomerProfileEvaluationParams) (*TrusthubV1CustomerProfileEvaluation, error)

Create a new Evaluation

func (*ApiService) CreateEndUser added in v0.11.0

func (c *ApiService) CreateEndUser(params *CreateEndUserParams) (*TrusthubV1EndUser, error)

Create a new End User.

func (*ApiService) CreateSupportingDocument added in v0.11.0

func (c *ApiService) CreateSupportingDocument(params *CreateSupportingDocumentParams) (*TrusthubV1SupportingDocument, error)

Create a new Supporting Document.

func (*ApiService) CreateTrustProduct added in v0.11.0

func (c *ApiService) CreateTrustProduct(params *CreateTrustProductParams) (*TrusthubV1TrustProduct, error)

Create a new Customer-Profile.

func (*ApiService) CreateTrustProductChannelEndpointAssignment added in v0.11.0

func (c *ApiService) CreateTrustProductChannelEndpointAssignment(TrustProductSid string, params *CreateTrustProductChannelEndpointAssignmentParams) (*TrusthubV1TrustProductChannelEndpointAssignment, error)

Create a new Assigned Item.

func (*ApiService) CreateTrustProductEntityAssignment added in v0.11.0

func (c *ApiService) CreateTrustProductEntityAssignment(TrustProductSid string, params *CreateTrustProductEntityAssignmentParams) (*TrusthubV1TrustProductEntityAssignment, error)

Create a new Assigned Item.

func (*ApiService) CreateTrustProductEvaluation added in v0.11.0

func (c *ApiService) CreateTrustProductEvaluation(TrustProductSid string, params *CreateTrustProductEvaluationParams) (*TrusthubV1TrustProductEvaluation, error)

Create a new Evaluation

func (*ApiService) DeleteCustomerProfile added in v0.11.0

func (c *ApiService) DeleteCustomerProfile(Sid string) error

Delete a specific Customer-Profile.

func (*ApiService) DeleteCustomerProfileChannelEndpointAssignment added in v0.11.0

func (c *ApiService) DeleteCustomerProfileChannelEndpointAssignment(CustomerProfileSid string, Sid string) error

Remove an Assignment Item Instance.

func (*ApiService) DeleteCustomerProfileEntityAssignment added in v0.11.0

func (c *ApiService) DeleteCustomerProfileEntityAssignment(CustomerProfileSid string, Sid string) error

Remove an Assignment Item Instance.

func (*ApiService) DeleteEndUser added in v0.11.0

func (c *ApiService) DeleteEndUser(Sid string) error

Delete a specific End User.

func (*ApiService) DeleteSupportingDocument added in v0.11.0

func (c *ApiService) DeleteSupportingDocument(Sid string) error

Delete a specific Supporting Document.

func (*ApiService) DeleteTrustProduct added in v0.11.0

func (c *ApiService) DeleteTrustProduct(Sid string) error

Delete a specific Customer-Profile.

func (*ApiService) DeleteTrustProductChannelEndpointAssignment added in v0.11.0

func (c *ApiService) DeleteTrustProductChannelEndpointAssignment(TrustProductSid string, Sid string) error

Remove an Assignment Item Instance.

func (*ApiService) DeleteTrustProductEntityAssignment added in v0.11.0

func (c *ApiService) DeleteTrustProductEntityAssignment(TrustProductSid string, Sid string) error

Remove an Assignment Item Instance.

func (*ApiService) FetchCustomerProfile added in v0.11.0

func (c *ApiService) FetchCustomerProfile(Sid string) (*TrusthubV1CustomerProfile, error)

Fetch a specific Customer-Profile instance.

func (*ApiService) FetchCustomerProfileChannelEndpointAssignment added in v0.11.0

func (c *ApiService) FetchCustomerProfileChannelEndpointAssignment(CustomerProfileSid string, Sid string) (*TrusthubV1CustomerProfileChannelEndpointAssignment, error)

Fetch specific Assigned Item Instance.

func (*ApiService) FetchCustomerProfileEntityAssignment added in v0.11.0

func (c *ApiService) FetchCustomerProfileEntityAssignment(CustomerProfileSid string, Sid string) (*TrusthubV1CustomerProfileEntityAssignment, error)

Fetch specific Assigned Item Instance.

func (*ApiService) FetchCustomerProfileEvaluation added in v0.11.0

func (c *ApiService) FetchCustomerProfileEvaluation(CustomerProfileSid string, Sid string) (*TrusthubV1CustomerProfileEvaluation, error)

Fetch specific Evaluation Instance.

func (*ApiService) FetchEndUser added in v0.11.0

func (c *ApiService) FetchEndUser(Sid string) (*TrusthubV1EndUser, error)

Fetch specific End User Instance.

func (*ApiService) FetchEndUserType added in v0.11.0

func (c *ApiService) FetchEndUserType(Sid string) (*TrusthubV1EndUserType, error)

Fetch a specific End-User Type Instance.

func (*ApiService) FetchPolicies added in v0.11.0

func (c *ApiService) FetchPolicies(Sid string) (*TrusthubV1Policies, error)

Fetch specific Policy Instance.

func (*ApiService) FetchSupportingDocument added in v0.11.0

func (c *ApiService) FetchSupportingDocument(Sid string) (*TrusthubV1SupportingDocument, error)

Fetch specific Supporting Document Instance.

func (*ApiService) FetchSupportingDocumentType added in v0.11.0

func (c *ApiService) FetchSupportingDocumentType(Sid string) (*TrusthubV1SupportingDocumentType, error)

Fetch a specific Supporting Document Type Instance.

func (*ApiService) FetchTrustProduct added in v0.11.0

func (c *ApiService) FetchTrustProduct(Sid string) (*TrusthubV1TrustProduct, error)

Fetch a specific Customer-Profile instance.

func (*ApiService) FetchTrustProductChannelEndpointAssignment added in v0.11.0

func (c *ApiService) FetchTrustProductChannelEndpointAssignment(TrustProductSid string, Sid string) (*TrusthubV1TrustProductChannelEndpointAssignment, error)

Fetch specific Assigned Item Instance.

func (*ApiService) FetchTrustProductEntityAssignment added in v0.11.0

func (c *ApiService) FetchTrustProductEntityAssignment(TrustProductSid string, Sid string) (*TrusthubV1TrustProductEntityAssignment, error)

Fetch specific Assigned Item Instance.

func (*ApiService) FetchTrustProductEvaluation added in v0.11.0

func (c *ApiService) FetchTrustProductEvaluation(TrustProductSid string, Sid string) (*TrusthubV1TrustProductEvaluation, error)

Fetch specific Evaluation Instance.

func (*ApiService) ListCustomerProfile added in v0.11.0

func (c *ApiService) ListCustomerProfile(params *ListCustomerProfileParams) ([]TrusthubV1CustomerProfile, error)

Lists CustomerProfile records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) ListCustomerProfileChannelEndpointAssignment added in v0.11.0

func (c *ApiService) ListCustomerProfileChannelEndpointAssignment(CustomerProfileSid string, params *ListCustomerProfileChannelEndpointAssignmentParams) ([]TrusthubV1CustomerProfileChannelEndpointAssignment, error)

Lists CustomerProfileChannelEndpointAssignment records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) ListCustomerProfileEntityAssignment added in v0.11.0

func (c *ApiService) ListCustomerProfileEntityAssignment(CustomerProfileSid string, params *ListCustomerProfileEntityAssignmentParams) ([]TrusthubV1CustomerProfileEntityAssignment, error)

Lists CustomerProfileEntityAssignment records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) ListCustomerProfileEvaluation added in v0.11.0

func (c *ApiService) ListCustomerProfileEvaluation(CustomerProfileSid string, params *ListCustomerProfileEvaluationParams) ([]TrusthubV1CustomerProfileEvaluation, error)

Lists CustomerProfileEvaluation records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) ListEndUser added in v0.11.0

func (c *ApiService) ListEndUser(params *ListEndUserParams) ([]TrusthubV1EndUser, error)

Lists EndUser records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) ListEndUserType added in v0.11.0

func (c *ApiService) ListEndUserType(params *ListEndUserTypeParams) ([]TrusthubV1EndUserType, error)

Lists EndUserType records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) ListPolicies added in v0.11.0

func (c *ApiService) ListPolicies(params *ListPoliciesParams) ([]TrusthubV1Policies, error)

Lists Policies records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) ListSupportingDocument added in v0.11.0

func (c *ApiService) ListSupportingDocument(params *ListSupportingDocumentParams) ([]TrusthubV1SupportingDocument, error)

Lists SupportingDocument records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) ListSupportingDocumentType added in v0.11.0

func (c *ApiService) ListSupportingDocumentType(params *ListSupportingDocumentTypeParams) ([]TrusthubV1SupportingDocumentType, error)

Lists SupportingDocumentType records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) ListTrustProduct added in v0.11.0

func (c *ApiService) ListTrustProduct(params *ListTrustProductParams) ([]TrusthubV1TrustProduct, error)

Lists TrustProduct records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) ListTrustProductChannelEndpointAssignment added in v0.11.0

func (c *ApiService) ListTrustProductChannelEndpointAssignment(TrustProductSid string, params *ListTrustProductChannelEndpointAssignmentParams) ([]TrusthubV1TrustProductChannelEndpointAssignment, error)

Lists TrustProductChannelEndpointAssignment records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) ListTrustProductEntityAssignment added in v0.11.0

func (c *ApiService) ListTrustProductEntityAssignment(TrustProductSid string, params *ListTrustProductEntityAssignmentParams) ([]TrusthubV1TrustProductEntityAssignment, error)

Lists TrustProductEntityAssignment records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) ListTrustProductEvaluation added in v0.11.0

func (c *ApiService) ListTrustProductEvaluation(TrustProductSid string, params *ListTrustProductEvaluationParams) ([]TrusthubV1TrustProductEvaluation, error)

Lists TrustProductEvaluation records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) PageCustomerProfile added in v0.13.0

func (c *ApiService) PageCustomerProfile(params *ListCustomerProfileParams, pageToken, pageNumber string) (*ListCustomerProfileResponse, error)

Retrieve a single page of CustomerProfile records from the API. Request is executed immediately.

func (*ApiService) PageCustomerProfileChannelEndpointAssignment added in v0.13.0

func (c *ApiService) PageCustomerProfileChannelEndpointAssignment(CustomerProfileSid string, params *ListCustomerProfileChannelEndpointAssignmentParams, pageToken, pageNumber string) (*ListCustomerProfileChannelEndpointAssignmentResponse, error)

Retrieve a single page of CustomerProfileChannelEndpointAssignment records from the API. Request is executed immediately.

func (*ApiService) PageCustomerProfileEntityAssignment added in v0.13.0

func (c *ApiService) PageCustomerProfileEntityAssignment(CustomerProfileSid string, params *ListCustomerProfileEntityAssignmentParams, pageToken, pageNumber string) (*ListCustomerProfileEntityAssignmentResponse, error)

Retrieve a single page of CustomerProfileEntityAssignment records from the API. Request is executed immediately.

func (*ApiService) PageCustomerProfileEvaluation added in v0.13.0

func (c *ApiService) PageCustomerProfileEvaluation(CustomerProfileSid string, params *ListCustomerProfileEvaluationParams, pageToken, pageNumber string) (*ListCustomerProfileEvaluationResponse, error)

Retrieve a single page of CustomerProfileEvaluation records from the API. Request is executed immediately.

func (*ApiService) PageEndUser added in v0.13.0

func (c *ApiService) PageEndUser(params *ListEndUserParams, pageToken, pageNumber string) (*ListEndUserResponse, error)

Retrieve a single page of EndUser records from the API. Request is executed immediately.

func (*ApiService) PageEndUserType added in v0.13.0

func (c *ApiService) PageEndUserType(params *ListEndUserTypeParams, pageToken, pageNumber string) (*ListEndUserTypeResponse, error)

Retrieve a single page of EndUserType records from the API. Request is executed immediately.

func (*ApiService) PagePolicies added in v0.13.0

func (c *ApiService) PagePolicies(params *ListPoliciesParams, pageToken, pageNumber string) (*ListPoliciesResponse, error)

Retrieve a single page of Policies records from the API. Request is executed immediately.

func (*ApiService) PageSupportingDocument added in v0.13.0

func (c *ApiService) PageSupportingDocument(params *ListSupportingDocumentParams, pageToken, pageNumber string) (*ListSupportingDocumentResponse, error)

Retrieve a single page of SupportingDocument records from the API. Request is executed immediately.

func (*ApiService) PageSupportingDocumentType added in v0.13.0

func (c *ApiService) PageSupportingDocumentType(params *ListSupportingDocumentTypeParams, pageToken, pageNumber string) (*ListSupportingDocumentTypeResponse, error)

Retrieve a single page of SupportingDocumentType records from the API. Request is executed immediately.

func (*ApiService) PageTrustProduct added in v0.13.0

func (c *ApiService) PageTrustProduct(params *ListTrustProductParams, pageToken, pageNumber string) (*ListTrustProductResponse, error)

Retrieve a single page of TrustProduct records from the API. Request is executed immediately.

func (*ApiService) PageTrustProductChannelEndpointAssignment added in v0.13.0

func (c *ApiService) PageTrustProductChannelEndpointAssignment(TrustProductSid string, params *ListTrustProductChannelEndpointAssignmentParams, pageToken, pageNumber string) (*ListTrustProductChannelEndpointAssignmentResponse, error)

Retrieve a single page of TrustProductChannelEndpointAssignment records from the API. Request is executed immediately.

func (*ApiService) PageTrustProductEntityAssignment added in v0.13.0

func (c *ApiService) PageTrustProductEntityAssignment(TrustProductSid string, params *ListTrustProductEntityAssignmentParams, pageToken, pageNumber string) (*ListTrustProductEntityAssignmentResponse, error)

Retrieve a single page of TrustProductEntityAssignment records from the API. Request is executed immediately.

func (*ApiService) PageTrustProductEvaluation added in v0.13.0

func (c *ApiService) PageTrustProductEvaluation(TrustProductSid string, params *ListTrustProductEvaluationParams, pageToken, pageNumber string) (*ListTrustProductEvaluationResponse, error)

Retrieve a single page of TrustProductEvaluation records from the API. Request is executed immediately.

func (*ApiService) StreamCustomerProfile added in v0.13.0

func (c *ApiService) StreamCustomerProfile(params *ListCustomerProfileParams) (chan TrusthubV1CustomerProfile, chan error)

Streams CustomerProfile records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) StreamCustomerProfileChannelEndpointAssignment added in v0.13.0

func (c *ApiService) StreamCustomerProfileChannelEndpointAssignment(CustomerProfileSid string, params *ListCustomerProfileChannelEndpointAssignmentParams) (chan TrusthubV1CustomerProfileChannelEndpointAssignment, chan error)

Streams CustomerProfileChannelEndpointAssignment records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) StreamCustomerProfileEntityAssignment added in v0.13.0

func (c *ApiService) StreamCustomerProfileEntityAssignment(CustomerProfileSid string, params *ListCustomerProfileEntityAssignmentParams) (chan TrusthubV1CustomerProfileEntityAssignment, chan error)

Streams CustomerProfileEntityAssignment records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) StreamCustomerProfileEvaluation added in v0.13.0

func (c *ApiService) StreamCustomerProfileEvaluation(CustomerProfileSid string, params *ListCustomerProfileEvaluationParams) (chan TrusthubV1CustomerProfileEvaluation, chan error)

Streams CustomerProfileEvaluation records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) StreamEndUser added in v0.13.0

func (c *ApiService) StreamEndUser(params *ListEndUserParams) (chan TrusthubV1EndUser, chan error)

Streams EndUser records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) StreamEndUserType added in v0.13.0

func (c *ApiService) StreamEndUserType(params *ListEndUserTypeParams) (chan TrusthubV1EndUserType, chan error)

Streams EndUserType records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) StreamPolicies added in v0.13.0

func (c *ApiService) StreamPolicies(params *ListPoliciesParams) (chan TrusthubV1Policies, chan error)

Streams Policies records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) StreamSupportingDocument added in v0.13.0

func (c *ApiService) StreamSupportingDocument(params *ListSupportingDocumentParams) (chan TrusthubV1SupportingDocument, chan error)

Streams SupportingDocument records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) StreamSupportingDocumentType added in v0.13.0

func (c *ApiService) StreamSupportingDocumentType(params *ListSupportingDocumentTypeParams) (chan TrusthubV1SupportingDocumentType, chan error)

Streams SupportingDocumentType records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) StreamTrustProduct added in v0.13.0

func (c *ApiService) StreamTrustProduct(params *ListTrustProductParams) (chan TrusthubV1TrustProduct, chan error)

Streams TrustProduct records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) StreamTrustProductChannelEndpointAssignment added in v0.13.0

func (c *ApiService) StreamTrustProductChannelEndpointAssignment(TrustProductSid string, params *ListTrustProductChannelEndpointAssignmentParams) (chan TrusthubV1TrustProductChannelEndpointAssignment, chan error)

Streams TrustProductChannelEndpointAssignment records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) StreamTrustProductEntityAssignment added in v0.13.0

func (c *ApiService) StreamTrustProductEntityAssignment(TrustProductSid string, params *ListTrustProductEntityAssignmentParams) (chan TrusthubV1TrustProductEntityAssignment, chan error)

Streams TrustProductEntityAssignment records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) StreamTrustProductEvaluation added in v0.13.0

func (c *ApiService) StreamTrustProductEvaluation(TrustProductSid string, params *ListTrustProductEvaluationParams) (chan TrusthubV1TrustProductEvaluation, chan error)

Streams TrustProductEvaluation records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) UpdateCustomerProfile added in v0.11.0

func (c *ApiService) UpdateCustomerProfile(Sid string, params *UpdateCustomerProfileParams) (*TrusthubV1CustomerProfile, error)

Updates a Customer-Profile in an account.

func (*ApiService) UpdateEndUser added in v0.11.0

func (c *ApiService) UpdateEndUser(Sid string, params *UpdateEndUserParams) (*TrusthubV1EndUser, error)

Update an existing End User.

func (*ApiService) UpdateSupportingDocument added in v0.11.0

func (c *ApiService) UpdateSupportingDocument(Sid string, params *UpdateSupportingDocumentParams) (*TrusthubV1SupportingDocument, error)

Update an existing Supporting Document.

func (*ApiService) UpdateTrustProduct added in v0.11.0

func (c *ApiService) UpdateTrustProduct(Sid string, params *UpdateTrustProductParams) (*TrusthubV1TrustProduct, error)

Updates a Customer-Profile in an account.

type CreateCustomerProfileChannelEndpointAssignmentParams

type CreateCustomerProfileChannelEndpointAssignmentParams struct {
	// The type of channel endpoint. eg: phone-number
	ChannelEndpointType *string `json:"ChannelEndpointType,omitempty"`
	// The SID of an channel endpoint
	ChannelEndpointSid *string `json:"ChannelEndpointSid,omitempty"`
}

Optional parameters for the method 'CreateCustomerProfileChannelEndpointAssignment'

func (*CreateCustomerProfileChannelEndpointAssignmentParams) SetChannelEndpointSid

func (*CreateCustomerProfileChannelEndpointAssignmentParams) SetChannelEndpointType

type CreateCustomerProfileEntityAssignmentParams

type CreateCustomerProfileEntityAssignmentParams struct {
	// The SID of an object bag that holds information of the different items.
	ObjectSid *string `json:"ObjectSid,omitempty"`
}

Optional parameters for the method 'CreateCustomerProfileEntityAssignment'

func (*CreateCustomerProfileEntityAssignmentParams) SetObjectSid

type CreateCustomerProfileEvaluationParams

type CreateCustomerProfileEvaluationParams struct {
	// The unique string of a policy that is associated to the customer_profile resource.
	PolicySid *string `json:"PolicySid,omitempty"`
}

Optional parameters for the method 'CreateCustomerProfileEvaluation'

func (*CreateCustomerProfileEvaluationParams) SetPolicySid

type CreateCustomerProfileParams

type CreateCustomerProfileParams struct {
	// The string that you assigned to describe the resource.
	FriendlyName *string `json:"FriendlyName,omitempty"`
	// The email address that will receive updates when the Customer-Profile resource changes status.
	Email *string `json:"Email,omitempty"`
	// The unique string of a policy that is associated to the Customer-Profile resource.
	PolicySid *string `json:"PolicySid,omitempty"`
	// The URL we call to inform your application of status changes.
	StatusCallback *string `json:"StatusCallback,omitempty"`
}

Optional parameters for the method 'CreateCustomerProfile'

func (*CreateCustomerProfileParams) SetEmail

func (*CreateCustomerProfileParams) SetFriendlyName

func (params *CreateCustomerProfileParams) SetFriendlyName(FriendlyName string) *CreateCustomerProfileParams

func (*CreateCustomerProfileParams) SetPolicySid

func (params *CreateCustomerProfileParams) SetPolicySid(PolicySid string) *CreateCustomerProfileParams

func (*CreateCustomerProfileParams) SetStatusCallback

func (params *CreateCustomerProfileParams) SetStatusCallback(StatusCallback string) *CreateCustomerProfileParams

type CreateEndUserParams

type CreateEndUserParams struct {
	// The string that you assigned to describe the resource.
	FriendlyName *string `json:"FriendlyName,omitempty"`
	// The type of end user of the Bundle resource - can be `individual` or `business`.
	Type *string `json:"Type,omitempty"`
	// The set of parameters that are the attributes of the End User resource which are derived End User Types.
	Attributes *interface{} `json:"Attributes,omitempty"`
}

Optional parameters for the method 'CreateEndUser'

func (*CreateEndUserParams) SetAttributes

func (params *CreateEndUserParams) SetAttributes(Attributes interface{}) *CreateEndUserParams

func (*CreateEndUserParams) SetFriendlyName

func (params *CreateEndUserParams) SetFriendlyName(FriendlyName string) *CreateEndUserParams

func (*CreateEndUserParams) SetType

func (params *CreateEndUserParams) SetType(Type string) *CreateEndUserParams

type CreateSupportingDocumentParams

type CreateSupportingDocumentParams struct {
	// The string that you assigned to describe the resource.
	FriendlyName *string `json:"FriendlyName,omitempty"`
	// The type of the Supporting Document.
	Type *string `json:"Type,omitempty"`
	// The set of parameters that are the attributes of the Supporting Documents resource which are derived Supporting Document Types.
	Attributes *interface{} `json:"Attributes,omitempty"`
}

Optional parameters for the method 'CreateSupportingDocument'

func (*CreateSupportingDocumentParams) SetAttributes

func (params *CreateSupportingDocumentParams) SetAttributes(Attributes interface{}) *CreateSupportingDocumentParams

func (*CreateSupportingDocumentParams) SetFriendlyName

func (params *CreateSupportingDocumentParams) SetFriendlyName(FriendlyName string) *CreateSupportingDocumentParams

func (*CreateSupportingDocumentParams) SetType

type CreateTrustProductChannelEndpointAssignmentParams

type CreateTrustProductChannelEndpointAssignmentParams struct {
	// The type of channel endpoint. eg: phone-number
	ChannelEndpointType *string `json:"ChannelEndpointType,omitempty"`
	// The SID of an channel endpoint
	ChannelEndpointSid *string `json:"ChannelEndpointSid,omitempty"`
}

Optional parameters for the method 'CreateTrustProductChannelEndpointAssignment'

func (*CreateTrustProductChannelEndpointAssignmentParams) SetChannelEndpointSid

func (*CreateTrustProductChannelEndpointAssignmentParams) SetChannelEndpointType

type CreateTrustProductEntityAssignmentParams

type CreateTrustProductEntityAssignmentParams struct {
	// The SID of an object bag that holds information of the different items.
	ObjectSid *string `json:"ObjectSid,omitempty"`
}

Optional parameters for the method 'CreateTrustProductEntityAssignment'

func (*CreateTrustProductEntityAssignmentParams) SetObjectSid

type CreateTrustProductEvaluationParams

type CreateTrustProductEvaluationParams struct {
	// The unique string of a policy that is associated to the customer_profile resource.
	PolicySid *string `json:"PolicySid,omitempty"`
}

Optional parameters for the method 'CreateTrustProductEvaluation'

func (*CreateTrustProductEvaluationParams) SetPolicySid

type CreateTrustProductParams

type CreateTrustProductParams struct {
	// The string that you assigned to describe the resource.
	FriendlyName *string `json:"FriendlyName,omitempty"`
	// The email address that will receive updates when the Customer-Profile resource changes status.
	Email *string `json:"Email,omitempty"`
	// The unique string of a policy that is associated to the Customer-Profile resource.
	PolicySid *string `json:"PolicySid,omitempty"`
	// The URL we call to inform your application of status changes.
	StatusCallback *string `json:"StatusCallback,omitempty"`
}

Optional parameters for the method 'CreateTrustProduct'

func (*CreateTrustProductParams) SetEmail

func (params *CreateTrustProductParams) SetEmail(Email string) *CreateTrustProductParams

func (*CreateTrustProductParams) SetFriendlyName

func (params *CreateTrustProductParams) SetFriendlyName(FriendlyName string) *CreateTrustProductParams

func (*CreateTrustProductParams) SetPolicySid

func (params *CreateTrustProductParams) SetPolicySid(PolicySid string) *CreateTrustProductParams

func (*CreateTrustProductParams) SetStatusCallback

func (params *CreateTrustProductParams) SetStatusCallback(StatusCallback string) *CreateTrustProductParams

type ListCustomerProfileChannelEndpointAssignmentParams

type ListCustomerProfileChannelEndpointAssignmentParams struct {
	// The SID of an channel endpoint
	ChannelEndpointSid *string `json:"ChannelEndpointSid,omitempty"`
	// comma separated list of channel endpoint sids
	ChannelEndpointSids *string `json:"ChannelEndpointSids,omitempty"`
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListCustomerProfileChannelEndpointAssignment'

func (*ListCustomerProfileChannelEndpointAssignmentParams) SetChannelEndpointSid

func (*ListCustomerProfileChannelEndpointAssignmentParams) SetChannelEndpointSids

func (*ListCustomerProfileChannelEndpointAssignmentParams) SetLimit added in v0.13.0

func (*ListCustomerProfileChannelEndpointAssignmentParams) SetPageSize

type ListCustomerProfileChannelEndpointAssignmentResponse

type ListCustomerProfileChannelEndpointAssignmentResponse struct {
	Results []TrusthubV1CustomerProfileChannelEndpointAssignment `json:"results,omitempty"`
	Meta    ListCustomerProfileResponseMeta                      `json:"meta,omitempty"`
}

ListCustomerProfileChannelEndpointAssignmentResponse struct for ListCustomerProfileChannelEndpointAssignmentResponse

type ListCustomerProfileEntityAssignmentParams

type ListCustomerProfileEntityAssignmentParams struct {
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListCustomerProfileEntityAssignment'

func (*ListCustomerProfileEntityAssignmentParams) SetLimit added in v0.13.0

func (*ListCustomerProfileEntityAssignmentParams) SetPageSize

type ListCustomerProfileEntityAssignmentResponse

type ListCustomerProfileEntityAssignmentResponse struct {
	Results []TrusthubV1CustomerProfileEntityAssignment `json:"results,omitempty"`
	Meta    ListCustomerProfileResponseMeta             `json:"meta,omitempty"`
}

ListCustomerProfileEntityAssignmentResponse struct for ListCustomerProfileEntityAssignmentResponse

type ListCustomerProfileEvaluationParams

type ListCustomerProfileEvaluationParams struct {
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListCustomerProfileEvaluation'

func (*ListCustomerProfileEvaluationParams) SetLimit added in v0.13.0

func (*ListCustomerProfileEvaluationParams) SetPageSize

type ListCustomerProfileEvaluationResponse

type ListCustomerProfileEvaluationResponse struct {
	Results []TrusthubV1CustomerProfileEvaluation `json:"results,omitempty"`
	Meta    ListCustomerProfileResponseMeta       `json:"meta,omitempty"`
}

ListCustomerProfileEvaluationResponse struct for ListCustomerProfileEvaluationResponse

type ListCustomerProfileParams

type ListCustomerProfileParams struct {
	// The verification status of the Customer-Profile resource.
	Status *string `json:"Status,omitempty"`
	// The string that you assigned to describe the resource.
	FriendlyName *string `json:"FriendlyName,omitempty"`
	// The unique string of a policy that is associated to the Customer-Profile resource.
	PolicySid *string `json:"PolicySid,omitempty"`
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListCustomerProfile'

func (*ListCustomerProfileParams) SetFriendlyName

func (params *ListCustomerProfileParams) SetFriendlyName(FriendlyName string) *ListCustomerProfileParams

func (*ListCustomerProfileParams) SetLimit added in v0.13.0

func (params *ListCustomerProfileParams) SetLimit(Limit int) *ListCustomerProfileParams

func (*ListCustomerProfileParams) SetPageSize

func (params *ListCustomerProfileParams) SetPageSize(PageSize int) *ListCustomerProfileParams

func (*ListCustomerProfileParams) SetPolicySid

func (params *ListCustomerProfileParams) SetPolicySid(PolicySid string) *ListCustomerProfileParams

func (*ListCustomerProfileParams) SetStatus

func (params *ListCustomerProfileParams) SetStatus(Status string) *ListCustomerProfileParams

type ListCustomerProfileResponse

type ListCustomerProfileResponse struct {
	Results []TrusthubV1CustomerProfile     `json:"results,omitempty"`
	Meta    ListCustomerProfileResponseMeta `json:"meta,omitempty"`
}

ListCustomerProfileResponse struct for ListCustomerProfileResponse

type ListCustomerProfileResponseMeta

type ListCustomerProfileResponseMeta struct {
	FirstPageUrl    string  `json:"first_page_url,omitempty"`
	NextPageUrl     *string `json:"next_page_url,omitempty"`
	Page            int     `json:"page,omitempty"`
	PageSize        int     `json:"page_size,omitempty"`
	PreviousPageUrl *string `json:"previous_page_url,omitempty"`
	Url             string  `json:"url,omitempty"`
	Key             string  `json:"key,omitempty"`
}

ListCustomerProfileResponseMeta struct for ListCustomerProfileResponseMeta

type ListEndUserParams

type ListEndUserParams struct {
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListEndUser'

func (*ListEndUserParams) SetLimit added in v0.13.0

func (params *ListEndUserParams) SetLimit(Limit int) *ListEndUserParams

func (*ListEndUserParams) SetPageSize

func (params *ListEndUserParams) SetPageSize(PageSize int) *ListEndUserParams

type ListEndUserResponse

type ListEndUserResponse struct {
	Results []TrusthubV1EndUser             `json:"results,omitempty"`
	Meta    ListCustomerProfileResponseMeta `json:"meta,omitempty"`
}

ListEndUserResponse struct for ListEndUserResponse

type ListEndUserTypeParams

type ListEndUserTypeParams struct {
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListEndUserType'

func (*ListEndUserTypeParams) SetLimit added in v0.13.0

func (params *ListEndUserTypeParams) SetLimit(Limit int) *ListEndUserTypeParams

func (*ListEndUserTypeParams) SetPageSize

func (params *ListEndUserTypeParams) SetPageSize(PageSize int) *ListEndUserTypeParams

type ListEndUserTypeResponse

type ListEndUserTypeResponse struct {
	EndUserTypes []TrusthubV1EndUserType         `json:"end_user_types,omitempty"`
	Meta         ListCustomerProfileResponseMeta `json:"meta,omitempty"`
}

ListEndUserTypeResponse struct for ListEndUserTypeResponse

type ListPoliciesParams

type ListPoliciesParams struct {
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListPolicies'

func (*ListPoliciesParams) SetLimit added in v0.13.0

func (params *ListPoliciesParams) SetLimit(Limit int) *ListPoliciesParams

func (*ListPoliciesParams) SetPageSize

func (params *ListPoliciesParams) SetPageSize(PageSize int) *ListPoliciesParams

type ListPoliciesResponse

type ListPoliciesResponse struct {
	Results []TrusthubV1Policies            `json:"results,omitempty"`
	Meta    ListCustomerProfileResponseMeta `json:"meta,omitempty"`
}

ListPoliciesResponse struct for ListPoliciesResponse

type ListSupportingDocumentParams

type ListSupportingDocumentParams struct {
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListSupportingDocument'

func (*ListSupportingDocumentParams) SetLimit added in v0.13.0

func (*ListSupportingDocumentParams) SetPageSize

func (params *ListSupportingDocumentParams) SetPageSize(PageSize int) *ListSupportingDocumentParams

type ListSupportingDocumentResponse

type ListSupportingDocumentResponse struct {
	Results []TrusthubV1SupportingDocument  `json:"results,omitempty"`
	Meta    ListCustomerProfileResponseMeta `json:"meta,omitempty"`
}

ListSupportingDocumentResponse struct for ListSupportingDocumentResponse

type ListSupportingDocumentTypeParams

type ListSupportingDocumentTypeParams struct {
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListSupportingDocumentType'

func (*ListSupportingDocumentTypeParams) SetLimit added in v0.13.0

func (*ListSupportingDocumentTypeParams) SetPageSize

type ListSupportingDocumentTypeResponse

type ListSupportingDocumentTypeResponse struct {
	SupportingDocumentTypes []TrusthubV1SupportingDocumentType `json:"supporting_document_types,omitempty"`
	Meta                    ListCustomerProfileResponseMeta    `json:"meta,omitempty"`
}

ListSupportingDocumentTypeResponse struct for ListSupportingDocumentTypeResponse

type ListTrustProductChannelEndpointAssignmentParams

type ListTrustProductChannelEndpointAssignmentParams struct {
	// The SID of an channel endpoint
	ChannelEndpointSid *string `json:"ChannelEndpointSid,omitempty"`
	// comma separated list of channel endpoint sids
	ChannelEndpointSids *string `json:"ChannelEndpointSids,omitempty"`
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListTrustProductChannelEndpointAssignment'

func (*ListTrustProductChannelEndpointAssignmentParams) SetChannelEndpointSid

func (*ListTrustProductChannelEndpointAssignmentParams) SetChannelEndpointSids

func (*ListTrustProductChannelEndpointAssignmentParams) SetLimit added in v0.13.0

func (*ListTrustProductChannelEndpointAssignmentParams) SetPageSize

type ListTrustProductChannelEndpointAssignmentResponse

type ListTrustProductChannelEndpointAssignmentResponse struct {
	Results []TrusthubV1TrustProductChannelEndpointAssignment `json:"results,omitempty"`
	Meta    ListCustomerProfileResponseMeta                   `json:"meta,omitempty"`
}

ListTrustProductChannelEndpointAssignmentResponse struct for ListTrustProductChannelEndpointAssignmentResponse

type ListTrustProductEntityAssignmentParams

type ListTrustProductEntityAssignmentParams struct {
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListTrustProductEntityAssignment'

func (*ListTrustProductEntityAssignmentParams) SetLimit added in v0.13.0

func (*ListTrustProductEntityAssignmentParams) SetPageSize

type ListTrustProductEntityAssignmentResponse

type ListTrustProductEntityAssignmentResponse struct {
	Results []TrusthubV1TrustProductEntityAssignment `json:"results,omitempty"`
	Meta    ListCustomerProfileResponseMeta          `json:"meta,omitempty"`
}

ListTrustProductEntityAssignmentResponse struct for ListTrustProductEntityAssignmentResponse

type ListTrustProductEvaluationParams

type ListTrustProductEvaluationParams struct {
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListTrustProductEvaluation'

func (*ListTrustProductEvaluationParams) SetLimit added in v0.13.0

func (*ListTrustProductEvaluationParams) SetPageSize

type ListTrustProductEvaluationResponse

type ListTrustProductEvaluationResponse struct {
	Results []TrusthubV1TrustProductEvaluation `json:"results,omitempty"`
	Meta    ListCustomerProfileResponseMeta    `json:"meta,omitempty"`
}

ListTrustProductEvaluationResponse struct for ListTrustProductEvaluationResponse

type ListTrustProductParams

type ListTrustProductParams struct {
	// The verification status of the Customer-Profile resource.
	Status *string `json:"Status,omitempty"`
	// The string that you assigned to describe the resource.
	FriendlyName *string `json:"FriendlyName,omitempty"`
	// The unique string of a policy that is associated to the Customer-Profile resource.
	PolicySid *string `json:"PolicySid,omitempty"`
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListTrustProduct'

func (*ListTrustProductParams) SetFriendlyName

func (params *ListTrustProductParams) SetFriendlyName(FriendlyName string) *ListTrustProductParams

func (*ListTrustProductParams) SetLimit added in v0.13.0

func (params *ListTrustProductParams) SetLimit(Limit int) *ListTrustProductParams

func (*ListTrustProductParams) SetPageSize

func (params *ListTrustProductParams) SetPageSize(PageSize int) *ListTrustProductParams

func (*ListTrustProductParams) SetPolicySid

func (params *ListTrustProductParams) SetPolicySid(PolicySid string) *ListTrustProductParams

func (*ListTrustProductParams) SetStatus

func (params *ListTrustProductParams) SetStatus(Status string) *ListTrustProductParams

type ListTrustProductResponse

type ListTrustProductResponse struct {
	Results []TrusthubV1TrustProduct        `json:"results,omitempty"`
	Meta    ListCustomerProfileResponseMeta `json:"meta,omitempty"`
}

ListTrustProductResponse struct for ListTrustProductResponse

type TrusthubV1CustomerProfile

type TrusthubV1CustomerProfile struct {
	// The unique string that we created to identify the Customer-Profile resource.
	Sid *string `json:"sid,omitempty"`
	// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Customer-Profile resource.
	AccountSid *string `json:"account_sid,omitempty"`
	// The unique string of a policy that is associated to the Customer-Profile resource.
	PolicySid *string `json:"policy_sid,omitempty"`
	// The string that you assigned to describe the resource.
	FriendlyName *string `json:"friendly_name,omitempty"`
	Status       *string `json:"status,omitempty"`
	// The date and time in GMT in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format when the resource will be valid until.
	ValidUntil *time.Time `json:"valid_until,omitempty"`
	// The email address that will receive updates when the Customer-Profile resource changes status.
	Email *string `json:"email,omitempty"`
	// The URL we call to inform your application of status changes.
	StatusCallback *string `json:"status_callback,omitempty"`
	// The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// The absolute URL of the Customer-Profile resource.
	Url *string `json:"url,omitempty"`
	// The URLs of the Assigned Items of the Customer-Profile resource.
	Links *map[string]interface{} `json:"links,omitempty"`
}

TrusthubV1CustomerProfile struct for TrusthubV1CustomerProfile

type TrusthubV1CustomerProfileChannelEndpointAssignment added in v0.14.0

type TrusthubV1CustomerProfileChannelEndpointAssignment struct {
	// The unique string that we created to identify the Item Assignment resource.
	Sid *string `json:"sid,omitempty"`
	// The unique string that we created to identify the CustomerProfile resource.
	CustomerProfileSid *string `json:"customer_profile_sid,omitempty"`
	// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Item Assignment resource.
	AccountSid *string `json:"account_sid,omitempty"`
	// The type of channel endpoint. eg: phone-number
	ChannelEndpointType *string `json:"channel_endpoint_type,omitempty"`
	// The SID of an channel endpoint
	ChannelEndpointSid *string `json:"channel_endpoint_sid,omitempty"`
	// The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The absolute URL of the Identity resource.
	Url *string `json:"url,omitempty"`
}

TrusthubV1CustomerProfileChannelEndpointAssignment struct for TrusthubV1CustomerProfileChannelEndpointAssignment

type TrusthubV1CustomerProfileEntityAssignment added in v0.14.0

type TrusthubV1CustomerProfileEntityAssignment struct {
	// The unique string that we created to identify the Item Assignment resource.
	Sid *string `json:"sid,omitempty"`
	// The unique string that we created to identify the CustomerProfile resource.
	CustomerProfileSid *string `json:"customer_profile_sid,omitempty"`
	// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Item Assignment resource.
	AccountSid *string `json:"account_sid,omitempty"`
	// The SID of an object bag that holds information of the different items.
	ObjectSid *string `json:"object_sid,omitempty"`
	// The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The absolute URL of the Identity resource.
	Url *string `json:"url,omitempty"`
}

TrusthubV1CustomerProfileEntityAssignment struct for TrusthubV1CustomerProfileEntityAssignment

type TrusthubV1CustomerProfileEvaluation added in v0.14.0

type TrusthubV1CustomerProfileEvaluation struct {
	// The unique string that identifies the Evaluation resource.
	Sid *string `json:"sid,omitempty"`
	// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the customer_profile resource.
	AccountSid *string `json:"account_sid,omitempty"`
	// The unique string of a policy that is associated to the customer_profile resource.
	PolicySid *string `json:"policy_sid,omitempty"`
	// The unique string that we created to identify the customer_profile resource.
	CustomerProfileSid *string `json:"customer_profile_sid,omitempty"`
	Status             *string `json:"status,omitempty"`
	// The results of the Evaluation which includes the valid and invalid attributes.
	Results     *[]interface{} `json:"results,omitempty"`
	DateCreated *time.Time     `json:"date_created,omitempty"`
	Url         *string        `json:"url,omitempty"`
}

TrusthubV1CustomerProfileEvaluation struct for TrusthubV1CustomerProfileEvaluation

type TrusthubV1EndUser

type TrusthubV1EndUser struct {
	// The unique string created by Twilio to identify the End User resource.
	Sid *string `json:"sid,omitempty"`
	// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the End User resource.
	AccountSid *string `json:"account_sid,omitempty"`
	// The string that you assigned to describe the resource.
	FriendlyName *string `json:"friendly_name,omitempty"`
	// The type of end user of the Bundle resource - can be `individual` or `business`.
	Type *string `json:"type,omitempty"`
	// The set of parameters that are the attributes of the End Users resource which are listed in the End User Types.
	Attributes *interface{} `json:"attributes,omitempty"`
	// The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// The absolute URL of the End User resource.
	Url *string `json:"url,omitempty"`
}

TrusthubV1EndUser struct for TrusthubV1EndUser

type TrusthubV1EndUserType

type TrusthubV1EndUserType struct {
	// The unique string that identifies the End-User Type resource.
	Sid *string `json:"sid,omitempty"`
	// A human-readable description that is assigned to describe the End-User Type resource. Examples can include first name, last name, email, business name, etc
	FriendlyName *string `json:"friendly_name,omitempty"`
	// A machine-readable description of the End-User Type resource. Examples can include first_name, last_name, email, business_name, etc.
	MachineName *string `json:"machine_name,omitempty"`
	// The required information for creating an End-User. The required fields will change as regulatory needs change and will differ for businesses and individuals.
	Fields *[]interface{} `json:"fields,omitempty"`
	// The absolute URL of the End-User Type resource.
	Url *string `json:"url,omitempty"`
}

TrusthubV1EndUserType struct for TrusthubV1EndUserType

type TrusthubV1Policies

type TrusthubV1Policies struct {
	// The unique string that identifies the Policy resource.
	Sid *string `json:"sid,omitempty"`
	// A human-readable description that is assigned to describe the Policy resource. Examples can include Primary Customer profile policy
	FriendlyName *string `json:"friendly_name,omitempty"`
	// The SID of an object that holds the policy information
	Requirements *interface{} `json:"requirements,omitempty"`
	// The absolute URL of the Policy resource.
	Url *string `json:"url,omitempty"`
}

TrusthubV1Policies struct for TrusthubV1Policies

type TrusthubV1SupportingDocument

type TrusthubV1SupportingDocument struct {
	// The unique string created by Twilio to identify the Supporting Document resource.
	Sid *string `json:"sid,omitempty"`
	// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Document resource.
	AccountSid *string `json:"account_sid,omitempty"`
	// The string that you assigned to describe the resource.
	FriendlyName *string `json:"friendly_name,omitempty"`
	// The image type uploaded in the Supporting Document container.
	MimeType *string `json:"mime_type,omitempty"`
	Status   *string `json:"status,omitempty"`
	// The type of the Supporting Document.
	Type *string `json:"type,omitempty"`
	// The set of parameters that are the attributes of the Supporting Documents resource which are listed in the Supporting Document Types.
	Attributes *interface{} `json:"attributes,omitempty"`
	// The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// The absolute URL of the Supporting Document resource.
	Url *string `json:"url,omitempty"`
}

TrusthubV1SupportingDocument struct for TrusthubV1SupportingDocument

type TrusthubV1SupportingDocumentType

type TrusthubV1SupportingDocumentType struct {
	// The unique string that identifies the Supporting Document Type resource.
	Sid *string `json:"sid,omitempty"`
	// A human-readable description of the Supporting Document Type resource.
	FriendlyName *string `json:"friendly_name,omitempty"`
	// The machine-readable description of the Supporting Document Type resource.
	MachineName *string `json:"machine_name,omitempty"`
	// The required information for creating a Supporting Document. The required fields will change as regulatory needs change and will differ for businesses and individuals.
	Fields *[]interface{} `json:"fields,omitempty"`
	// The absolute URL of the Supporting Document Type resource.
	Url *string `json:"url,omitempty"`
}

TrusthubV1SupportingDocumentType struct for TrusthubV1SupportingDocumentType

type TrusthubV1TrustProduct

type TrusthubV1TrustProduct struct {
	// The unique string that we created to identify the Customer-Profile resource.
	Sid *string `json:"sid,omitempty"`
	// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Customer-Profile resource.
	AccountSid *string `json:"account_sid,omitempty"`
	// The unique string of a policy that is associated to the Customer-Profile resource.
	PolicySid *string `json:"policy_sid,omitempty"`
	// The string that you assigned to describe the resource.
	FriendlyName *string `json:"friendly_name,omitempty"`
	Status       *string `json:"status,omitempty"`
	// The date and time in GMT in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format when the resource will be valid until.
	ValidUntil *time.Time `json:"valid_until,omitempty"`
	// The email address that will receive updates when the Customer-Profile resource changes status.
	Email *string `json:"email,omitempty"`
	// The URL we call to inform your application of status changes.
	StatusCallback *string `json:"status_callback,omitempty"`
	// The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// The absolute URL of the Customer-Profile resource.
	Url *string `json:"url,omitempty"`
	// The URLs of the Assigned Items of the Customer-Profile resource.
	Links *map[string]interface{} `json:"links,omitempty"`
}

TrusthubV1TrustProduct struct for TrusthubV1TrustProduct

type TrusthubV1TrustProductChannelEndpointAssignment added in v0.14.0

type TrusthubV1TrustProductChannelEndpointAssignment struct {
	// The unique string that we created to identify the Item Assignment resource.
	Sid *string `json:"sid,omitempty"`
	// The unique string that we created to identify the CustomerProfile resource.
	TrustProductSid *string `json:"trust_product_sid,omitempty"`
	// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Item Assignment resource.
	AccountSid *string `json:"account_sid,omitempty"`
	// The type of channel endpoint. eg: phone-number
	ChannelEndpointType *string `json:"channel_endpoint_type,omitempty"`
	// The SID of an channel endpoint
	ChannelEndpointSid *string `json:"channel_endpoint_sid,omitempty"`
	// The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The absolute URL of the Identity resource.
	Url *string `json:"url,omitempty"`
}

TrusthubV1TrustProductChannelEndpointAssignment struct for TrusthubV1TrustProductChannelEndpointAssignment

type TrusthubV1TrustProductEntityAssignment added in v0.14.0

type TrusthubV1TrustProductEntityAssignment struct {
	// The unique string that we created to identify the Item Assignment resource.
	Sid *string `json:"sid,omitempty"`
	// The unique string that we created to identify the TrustProduct resource.
	TrustProductSid *string `json:"trust_product_sid,omitempty"`
	// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Item Assignment resource.
	AccountSid *string `json:"account_sid,omitempty"`
	// The SID of an object bag that holds information of the different items.
	ObjectSid *string `json:"object_sid,omitempty"`
	// The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The absolute URL of the Identity resource.
	Url *string `json:"url,omitempty"`
}

TrusthubV1TrustProductEntityAssignment struct for TrusthubV1TrustProductEntityAssignment

type TrusthubV1TrustProductEvaluation added in v0.14.0

type TrusthubV1TrustProductEvaluation struct {
	// The unique string that identifies the Evaluation resource.
	Sid *string `json:"sid,omitempty"`
	// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the trust_product resource.
	AccountSid *string `json:"account_sid,omitempty"`
	// The unique string of a policy that is associated to the trust_product resource.
	PolicySid *string `json:"policy_sid,omitempty"`
	// The unique string that we created to identify the trust_product resource.
	TrustProductSid *string `json:"trust_product_sid,omitempty"`
	Status          *string `json:"status,omitempty"`
	// The results of the Evaluation which includes the valid and invalid attributes.
	Results     *[]interface{} `json:"results,omitempty"`
	DateCreated *time.Time     `json:"date_created,omitempty"`
	Url         *string        `json:"url,omitempty"`
}

TrusthubV1TrustProductEvaluation struct for TrusthubV1TrustProductEvaluation

type UpdateCustomerProfileParams

type UpdateCustomerProfileParams struct {
	//
	Status *string `json:"Status,omitempty"`
	// The URL we call to inform your application of status changes.
	StatusCallback *string `json:"StatusCallback,omitempty"`
	// The string that you assigned to describe the resource.
	FriendlyName *string `json:"FriendlyName,omitempty"`
	// The email address that will receive updates when the Customer-Profile resource changes status.
	Email *string `json:"Email,omitempty"`
}

Optional parameters for the method 'UpdateCustomerProfile'

func (*UpdateCustomerProfileParams) SetEmail

func (*UpdateCustomerProfileParams) SetFriendlyName

func (params *UpdateCustomerProfileParams) SetFriendlyName(FriendlyName string) *UpdateCustomerProfileParams

func (*UpdateCustomerProfileParams) SetStatus

func (*UpdateCustomerProfileParams) SetStatusCallback

func (params *UpdateCustomerProfileParams) SetStatusCallback(StatusCallback string) *UpdateCustomerProfileParams

type UpdateEndUserParams

type UpdateEndUserParams struct {
	// The string that you assigned to describe the resource.
	FriendlyName *string `json:"FriendlyName,omitempty"`
	// The set of parameters that are the attributes of the End User resource which are derived End User Types.
	Attributes *interface{} `json:"Attributes,omitempty"`
}

Optional parameters for the method 'UpdateEndUser'

func (*UpdateEndUserParams) SetAttributes

func (params *UpdateEndUserParams) SetAttributes(Attributes interface{}) *UpdateEndUserParams

func (*UpdateEndUserParams) SetFriendlyName

func (params *UpdateEndUserParams) SetFriendlyName(FriendlyName string) *UpdateEndUserParams

type UpdateSupportingDocumentParams

type UpdateSupportingDocumentParams struct {
	// The string that you assigned to describe the resource.
	FriendlyName *string `json:"FriendlyName,omitempty"`
	// The set of parameters that are the attributes of the Supporting Document resource which are derived Supporting Document Types.
	Attributes *interface{} `json:"Attributes,omitempty"`
}

Optional parameters for the method 'UpdateSupportingDocument'

func (*UpdateSupportingDocumentParams) SetAttributes

func (params *UpdateSupportingDocumentParams) SetAttributes(Attributes interface{}) *UpdateSupportingDocumentParams

func (*UpdateSupportingDocumentParams) SetFriendlyName

func (params *UpdateSupportingDocumentParams) SetFriendlyName(FriendlyName string) *UpdateSupportingDocumentParams

type UpdateTrustProductParams

type UpdateTrustProductParams struct {
	//
	Status *string `json:"Status,omitempty"`
	// The URL we call to inform your application of status changes.
	StatusCallback *string `json:"StatusCallback,omitempty"`
	// The string that you assigned to describe the resource.
	FriendlyName *string `json:"FriendlyName,omitempty"`
	// The email address that will receive updates when the Customer-Profile resource changes status.
	Email *string `json:"Email,omitempty"`
}

Optional parameters for the method 'UpdateTrustProduct'

func (*UpdateTrustProductParams) SetEmail

func (params *UpdateTrustProductParams) SetEmail(Email string) *UpdateTrustProductParams

func (*UpdateTrustProductParams) SetFriendlyName

func (params *UpdateTrustProductParams) SetFriendlyName(FriendlyName string) *UpdateTrustProductParams

func (*UpdateTrustProductParams) SetStatus

func (params *UpdateTrustProductParams) SetStatus(Status string) *UpdateTrustProductParams

func (*UpdateTrustProductParams) SetStatusCallback

func (params *UpdateTrustProductParams) SetStatusCallback(StatusCallback string) *UpdateTrustProductParams

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL