Skip to content

Commit

Permalink
Merge pull request #55 from rich-spitkovsky-riskified/TIS-126/custome…
Browse files Browse the repository at this point in the history
…r-created-at

add customer_created_at to login model
  • Loading branch information
arungopalRF authored Jan 10, 2020
2 parents 804882f + 3746ade commit 6ceb5ea
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion sample/order_full_flow.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
$order_details = array(
'id' => 'ch567phpsdkfullflow0',
'name' => '#1234',
'email' => 'erin.o\'neill@cbre.com',
'email' => 'great.customer@email.com',
'created_at' => '2019-07-23T11:00:00-05:00',
'closed_at' => null,
'currency' => 'CAD',
Expand Down Expand Up @@ -299,6 +299,8 @@
#### Login Account Action
$login = new Model\Login(array(
'customer_id' => '207119551',
'customer_created_at' => '2020-01-08T11:38-5:00',
'email' => '[email protected]',
'login_status' => new Model\LoginStatus(array(
'login_status_type' => 'success'
)),
Expand Down
2 changes: 1 addition & 1 deletion src/Riskified/Common/Riskified.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* @package Riskified\Common
*/
class Riskified {
const VERSION = '1.8.8';
const VERSION = '1.8.9';
const API_VERSION = '2';

/**
Expand Down
1 change: 1 addition & 0 deletions src/Riskified/OrderWebhook/Model/Login.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class Login extends AbstractModel {
protected $_fields = array(
'customer_id' => 'string',
'email' => 'string /^[a-z0-9,!#$%&\'\*\+\/=\?\^_`\{\|}~-]+(?:\.[a-z0-9,!#$%&\'\*\+\/=\?\^_`\{\|}~-]+)*@[a-z0-9-]+(?:\.[a-z0-9-]+)*\.(?:[a-z]{2,})$/i',
'customer_created_at' => 'date optional',
'login_at_checkout' => 'boolean optional',
'social_login_type' => 'string /^(:?facebook|google|linkedin|twitter|yahoo|other)$/ optional',
'login_status' => 'object \LoginStatus',
Expand Down

0 comments on commit 6ceb5ea

Please sign in to comment.