Skip to content

Commit a5903b0

Browse files
committed
add state to verify complete response and start request
1 parent 5d698e9 commit a5903b0

File tree

2 files changed

+20
-7
lines changed

2 files changed

+20
-7
lines changed

pkg/fusionauth/Client.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -582,16 +582,16 @@ func (c *FusionAuthClient) CommentOnUserWithContext(ctx context.Context, request
582582
// Completes verification of an identity using verification codes from the Verify Start API.
583583
//
584584
// VerifyCompleteRequest request The identity verify complete request that contains all the information used to verify the identity.
585-
func (c *FusionAuthClient) CompleteVerifyIdentity(request VerifyCompleteRequest) (*BaseHTTPResponse, *Errors, error) {
585+
func (c *FusionAuthClient) CompleteVerifyIdentity(request VerifyCompleteRequest) (*VerifyCompleteResponse, *Errors, error) {
586586
return c.CompleteVerifyIdentityWithContext(context.TODO(), request)
587587
}
588588

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

597597
restClient := c.Start(&resp, &errors)

pkg/fusionauth/Domain.go

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7676,6 +7676,18 @@ type VerifyCompleteRequest struct {
76767676
VerificationId string `json:"verificationId,omitempty"`
76777677
}
76787678

7679+
/**
7680+
* Verify Complete API response object.
7681+
*/
7682+
type VerifyCompleteResponse struct {
7683+
BaseHTTPResponse
7684+
State map[string]interface{} `json:"state,omitempty"`
7685+
}
7686+
7687+
func (b *VerifyCompleteResponse) SetStatus(status int) {
7688+
b.StatusCode = status
7689+
}
7690+
76797691
/**
76807692
* @author Daniel DeGroff
76817693
*/
@@ -7733,10 +7745,11 @@ type VerifySendRequest struct {
77337745
* @author Brady Wied
77347746
*/
77357747
type VerifyStartRequest struct {
7736-
ApplicationId string `json:"applicationId,omitempty"`
7737-
LoginId string `json:"loginId,omitempty"`
7738-
LoginIdType string `json:"loginIdType,omitempty"`
7739-
VerificationStrategy string `json:"verificationStrategy,omitempty"`
7748+
ApplicationId string `json:"applicationId,omitempty"`
7749+
LoginId string `json:"loginId,omitempty"`
7750+
LoginIdType string `json:"loginIdType,omitempty"`
7751+
State map[string]interface{} `json:"state,omitempty"`
7752+
VerificationStrategy string `json:"verificationStrategy,omitempty"`
77407753
}
77417754

77427755
/**

0 commit comments

Comments
 (0)