Skip to content

Commit

Permalink
Merge pull request #4 from Subito-it/fix/next-event-wait
Browse files Browse the repository at this point in the history
fix: propagate next event wait
  • Loading branch information
panyushov authored May 16, 2022
2 parents 73b518d + fd4e353 commit 7c7f1e1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ func (client *VerifyClient) Request(number string, brand string, opts VerifyOpts
verifyOpts.PinExpiry = optional.NewInt32(opts.PinExpiry)
}

if opts.NextEventWait != 0 {
verifyOpts.NextEventWait = optional.NewInt32(opts.NextEventWait)
}

if opts.CodeLength != 0 {
verifyOpts.CodeLength = optional.NewInt32(opts.CodeLength)
}
Expand Down

0 comments on commit 7c7f1e1

Please sign in to comment.