This repository has been archived by the owner on Mar 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #52 from Vonage/add-verify-psd2
Update Verify and add PSD2 feature
- Loading branch information
Showing
21 changed files
with
538 additions
and
186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* | ||
* Nexmo Verify API | ||
* | ||
* The Verify API helps you to implement 2FA (two-factor authentication) in your applications. This is useful for: * Protecting against spam, by preventing spammers from creating multiple accounts * Monitoring suspicious activity, by forcing an account user to verify ownership of a number * Ensuring that you can reach your users at any time because you have their correct phone number More information is available at <https://developer.nexmo.com/verify> | ||
* | ||
* API version: 1.1.3 | ||
* Contact: devrel@nexmo.com | ||
* Generated by: OpenAPI Generator (https://openapi-generator.tech) | ||
*/ | ||
|
||
package verify | ||
// CheckRequest struct for CheckRequest | ||
type CheckRequest struct { | ||
// You can find your API key in your [account dashboard](https://dashboard.nexmo.com) | ||
ApiKey string `json:"api_key"` | ||
// You can find your API secret in your [account dashboard](https://dashboard.nexmo.com) | ||
ApiSecret string `json:"api_secret"` | ||
// The Verify request to check. This is the `request_id` you received in the response to the Verify request. | ||
RequestId string `json:"request_id"` | ||
// The verification code entered by your user. | ||
Code string `json:"code"` | ||
// (This field is no longer used) | ||
IpAddress string `json:"ip_address,omitempty"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* | ||
* Nexmo Verify API | ||
* | ||
* The Verify API helps you to implement 2FA (two-factor authentication) in your applications. This is useful for: * Protecting against spam, by preventing spammers from creating multiple accounts * Monitoring suspicious activity, by forcing an account user to verify ownership of a number * Ensuring that you can reach your users at any time because you have their correct phone number More information is available at <https://developer.nexmo.com/verify> | ||
* | ||
* API version: 1.1.3 | ||
* Contact: devrel@nexmo.com | ||
* Generated by: OpenAPI Generator (https://openapi-generator.tech) | ||
*/ | ||
|
||
package verify | ||
// ControlRequest struct for ControlRequest | ||
type ControlRequest struct { | ||
// You can find your API key in your [account dashboard](https://dashboard.nexmo.com) | ||
ApiKey string `json:"api_key"` | ||
// You can find your API secret in your [account dashboard](https://dashboard.nexmo.com) | ||
ApiSecret string `json:"api_secret"` | ||
// The `request_id` you received in the response to the Verify request. | ||
RequestId string `json:"request_id"` | ||
// The possible commands are `cancel` to request cancellation of the verification process, or `trigger_next_event` to advance to the next verification event (if any). Cancellation is only possible 30 seconds after the start of the verification request and before the second event (either TTS or SMS) has taken place. | ||
Cmd string `json:"cmd"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.