Skip to content
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
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.10.2';
const VERSION = '1.10.3';
const API_VERSION = '2';

/**
Expand Down
30 changes: 30 additions & 0 deletions src/Riskified/OrderWebhook/Model/AccountBalance.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?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 AccountBalance
* Represents account balance information from a financial data provider.
* @package Riskified\OrderWebhook\Model
*/
class AccountBalance extends AbstractModel {

protected $_fields = array(
'available_balance' => 'float',
'service_name' => 'string /^(:?plaid|mx|stripe|truelayer|klarna|visa|mastercard|yodlee)$/',
'updated_at' => 'date',
'currency_code' => 'string /^[A-Z]{3}$/i'
);
}
31 changes: 31 additions & 0 deletions src/Riskified/OrderWebhook/Model/AccountIdentity.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?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 AccountIdentity
* Represents identity information associated with a payment account.
* All fields are optional.
* @package Riskified\OrderWebhook\Model
*/
class AccountIdentity extends AbstractModel {

protected $_fields = array(
'names' => 'array string optional',
'addresses' => 'array object \Address optional',
'phone_numbers' => 'array string optional',
'emails' => 'array string optional'
);
}
5 changes: 4 additions & 1 deletion src/Riskified/OrderWebhook/Model/PaymentDetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ class PaymentDetails extends AbstractModel {
'authentication_result' => 'object \AuthenticationResult optional',

'cardholder_name' => 'string optional',
'payment_type' => 'string optional'
'payment_type' => 'string optional',

'account_identity' => 'object \AccountIdentity optional',
'account_balance' => 'object \AccountBalance optional'
);
}