PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.16.9
GiveWP – Donation Plugin and Fundraising Platform v4.16.9
4.16.9 4.16.8.1 4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 2.30.0 All 255 releases
give / vendor / stripe / stripe-php / lib / OAuthErrorObject.php

OAuthErrorObject.php in GiveWP – Donation Plugin and Fundraising Platform 4.16.9, at vendor/stripe/stripe-php/lib/OAuthErrorObject.php

32 lines 861 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Stripe;
4
5 /**
6 * Class OAuthErrorObject.
7 *
8 * @property string $error
9 * @property string $error_description
10 */
11 class OAuthErrorObject extends StripeObject
12 {
13 /**
14 * Refreshes this object using the provided values.
15 *
16 * @param array $values
17 * @param null|array|string|Util\RequestOptions $opts
18 * @param bool $partial defaults to false
19 */
20 public function refreshFrom($values, $opts, $partial = false)
21 {
22 // Unlike most other API resources, the API will omit attributes in
23 // error objects when they have a null value. We manually set default
24 // values here to facilitate generic error handling.
25 $values = \array_merge([
26 'error' => null,
27 'error_description' => null,
28 ], $values);
29 parent::refreshFrom($values, $opts, $partial);
30 }
31 }
32