Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add params to reset-password model #57

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
3 changes: 3 additions & 0 deletions sample/account_action_request.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,9 @@
#### ResetPasswordRequest account action
$resetPasswordRequest = new Model\ResetPasswordRequest(array(
'customer_id' => '207119551',
'status' => 'success',
'reason' => 'user_requested',
'email' => '[email protected]',
'client_details' => new Model\ClientDetails(array(
'accept_language' => 'en_CA',
'user_agent' => 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)'
Expand Down
3 changes: 3 additions & 0 deletions src/Riskified/OrderWebhook/Model/ResetPasswordRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ class ResetPasswordRequest extends AbstractModel {

protected $_fields = array(
'customer_id' => 'string',
'status' => 'string /^(:?pending|success|failure)$/',
'reason' => 'string /^(:?user_requested|forgot_password|forced_reset)$/',
'email' => 'string',
'client_details' => 'object \ClientDetails',
'session_details' => 'object \SessionDetails'
);
Expand Down