Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pkg/fusionauth/Client.go
Original file line number Diff line number Diff line change
Expand Up @@ -582,16 +582,16 @@ func (c *FusionAuthClient) CommentOnUserWithContext(ctx context.Context, request
// Completes verification of an identity using verification codes from the Verify Start API.
//
// VerifyCompleteRequest request The identity verify complete request that contains all the information used to verify the identity.
func (c *FusionAuthClient) CompleteVerifyIdentity(request VerifyCompleteRequest) (*BaseHTTPResponse, *Errors, error) {
func (c *FusionAuthClient) CompleteVerifyIdentity(request VerifyCompleteRequest) (*VerifyCompleteResponse, *Errors, error) {
return c.CompleteVerifyIdentityWithContext(context.TODO(), request)
}

// CompleteVerifyIdentityWithContext
// Completes verification of an identity using verification codes from the Verify Start API.
//
// VerifyCompleteRequest request The identity verify complete request that contains all the information used to verify the identity.
func (c *FusionAuthClient) CompleteVerifyIdentityWithContext(ctx context.Context, request VerifyCompleteRequest) (*BaseHTTPResponse, *Errors, error) {
var resp BaseHTTPResponse
func (c *FusionAuthClient) CompleteVerifyIdentityWithContext(ctx context.Context, request VerifyCompleteRequest) (*VerifyCompleteResponse, *Errors, error) {
var resp VerifyCompleteResponse
var errors Errors

restClient := c.Start(&resp, &errors)
Expand Down
21 changes: 17 additions & 4 deletions pkg/fusionauth/Domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -7676,6 +7676,18 @@ type VerifyCompleteRequest struct {
VerificationId string `json:"verificationId,omitempty"`
}

/**
* Verify Complete API response object.
*/
type VerifyCompleteResponse struct {
BaseHTTPResponse
State map[string]interface{} `json:"state,omitempty"`
}

func (b *VerifyCompleteResponse) SetStatus(status int) {
b.StatusCode = status
}

/**
* @author Daniel DeGroff
*/
Expand Down Expand Up @@ -7733,10 +7745,11 @@ type VerifySendRequest struct {
* @author Brady Wied
*/
type VerifyStartRequest struct {
ApplicationId string `json:"applicationId,omitempty"`
LoginId string `json:"loginId,omitempty"`
LoginIdType string `json:"loginIdType,omitempty"`
VerificationStrategy string `json:"verificationStrategy,omitempty"`
ApplicationId string `json:"applicationId,omitempty"`
LoginId string `json:"loginId,omitempty"`
LoginIdType string `json:"loginIdType,omitempty"`
State map[string]interface{} `json:"state,omitempty"`
VerificationStrategy string `json:"verificationStrategy,omitempty"`
}

/**
Expand Down