Skip to content

Commit

Permalink
Merge pull request #73 from rich-spitkovsky-riskified/10/2020-ato-cha…
Browse files Browse the repository at this point in the history
…nges

TIS-221 10/2020 ATO additions
  • Loading branch information
arungopalRF authored Nov 2, 2020
2 parents 1d3da5a + f4ab3cc commit 326c2d9
Show file tree
Hide file tree
Showing 6 changed files with 72 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/Riskified/OrderWebhook/Model/CustomerCreate.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class CustomerCreate extends AbstractModel {
'customer' => 'object \Customer',
'payment_details' => 'array object \PaymentDetails optional',
'billing_address' => 'array object \Address optional',
'shipping_address' => 'array object \Address optional'
'shipping_address' => 'array object \Address optional',
'vendor_name' => 'string optional'
);
}
5 changes: 4 additions & 1 deletion src/Riskified/OrderWebhook/Model/Login.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ class Login extends AbstractModel {
'social_login_type' => 'string /^(:?facebook|google|linkedin|twitter|yahoo|amazon|apple|other)$/ optional',
'login_status' => 'object \LoginStatus',
'client_details' => 'object \ClientDetails',
'session_details' => 'object \SessionDetails'
'session_details' => 'object \SessionDetails',
'vendor_name' => 'string optional',
'authentication_mechanism' => 'string optional',
'redirect_url' => 'string optional'
);
}
2 changes: 1 addition & 1 deletion src/Riskified/OrderWebhook/Model/LoginStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ class LoginStatus extends AbstractModel {

protected $_fields = array(
'login_status_type' => 'string /^(:?success|failure)$/',
'failure_reason' => 'string /^(:?wrong\040password|captcha|disabled\040account|nonexistent\040account|other)$/ optional'
'failure_reason' => 'string /^(:?wrong\040password|captcha|disabled\040account|nonexistent\040account|other|expired)$/ optional'
);
}
6 changes: 5 additions & 1 deletion src/Riskified/OrderWebhook/Model/ResetPasswordRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ class ResetPasswordRequest extends AbstractModel {
protected $_fields = array(
'customer_id' => 'string',
'client_details' => 'object \ClientDetails',
'session_details' => 'object \SessionDetails'
'session_details' => 'object \SessionDetails',
'vendor_name' => 'string optional',
'email' => '(?:[a-z0-9!#$%&\'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&\'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\]) optional',
'reason' => '/^(:?user_requested|forgot_password|forced_reset)$/ optional',
'status' => '/^(:?pending|success|failure)$/ optional'
);
}
32 changes: 32 additions & 0 deletions src/Riskified/OrderWebhook/Model/Verification.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php namespace Riskified\OrderWebhook\Model;
/**
* Copyright 2013-2015 Riskified.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0.html
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/

/**
* Class Verification
* data model for Verification account action, includes nested models
* @package Riskified\OrderWebhook\Model
*/
class Verification extends AbstractModel {

protected $_fields = array(
'verified_at' => 'date',
'event_id' => 'string',
'verification_session_details' => 'object \VerificationSessionDetails optional',
'vendor_name' => 'string optional',
'email' => '(?:[a-z0-9!#$%&\'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&\'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\]) optional',
'status' => '/^(:?sent|success|failure|unauthorized|expired)$/'
);
}
28 changes: 28 additions & 0 deletions src/Riskified/OrderWebhook/Model/VerificationSessionDetails.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?php namespace Riskified\OrderWebhook\Model;
/**
* Copyright 2013-2015 Riskified.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0.html
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/

/**
* Class VerificationSessionDetails
* data model for Verification Session Details
* @package Riskified\OrderWebhook\Model
*/
class VerificationSessionDetails extends AbstractModel {

protected $_fields = array(
'cart_token' => 'string optional',
'browser_ip' => 'string optional'
);
}

0 comments on commit 326c2d9

Please sign in to comment.