diff --git a/init.php b/init.php index b4a41dbe67..1f9f9e59a0 100644 --- a/init.php +++ b/init.php @@ -1,5 +1,4 @@ key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. * @property null|string $name Cardholder name. * @property null|string|\Stripe\Recipient $recipient The recipient that this card belongs to. This attribute will not be in the card object if the card belongs to a customer or account instead. + * @property null|string $status For external accounts, possible values are new and errored. If a transfer fails, the status is set to errored and transfers are stopped until account details are updated. * @property null|string $tokenization_method If the card number is tokenized, this is the method that was used. Can be android_pay (includes Google Pay), apple_pay, masterpass, visa_checkout, or null. */ class Card extends ApiResource diff --git a/lib/Order.php b/lib/Order.php index fbbb90611f..9b84005093 100644 --- a/lib/Order.php +++ b/lib/Order.php @@ -10,8 +10,8 @@ * create, retrieve, and pay individual orders, as well as list all orders. Orders * are identified by a unique, random ID. * - * Related guide: Tax, Shipping, and - * Inventory. + * Related guide: Tax, Shipping, + * and Inventory. * * @property string $id Unique identifier for the object. * @property string $object String representing the object's type. Objects of the same type share the same value. diff --git a/lib/SKU.php b/lib/SKU.php index b418c6c5df..16e42b1e1b 100644 --- a/lib/SKU.php +++ b/lib/SKU.php @@ -14,8 +14,8 @@ * * Can also be used to manage inventory. * - * Related guide: Tax, Shipping, and - * Inventory. + * Related guide: Tax, Shipping, + * and Inventory. * * @property string $id Unique identifier for the object. * @property string $object String representing the object's type. Objects of the same type share the same value. diff --git a/lib/Service/PaymentIntentService.php b/lib/Service/PaymentIntentService.php index 3bfe708df4..0ea7f0b56a 100644 --- a/lib/Service/PaymentIntentService.php +++ b/lib/Service/PaymentIntentService.php @@ -32,6 +32,10 @@ public function all($params = null, $opts = null) * status=’requires_capture’, the remaining * amount_capturable will automatically be refunded. * + * You cannot cancel the PaymentIntent for a Checkout Session. Expire the Checkout Session + * instead + * * @param string $id * @param null|array $params * @param null|array|\Stripe\Util\RequestOptions $opts diff --git a/lib/Service/PaymentMethodService.php b/lib/Service/PaymentMethodService.php index 33ba21179c..1ddd282bfd 100644 --- a/lib/Service/PaymentMethodService.php +++ b/lib/Service/PaymentMethodService.php @@ -79,7 +79,8 @@ public function create($params = null, $opts = null) } /** - * Detaches a PaymentMethod object from a Customer. + * Detaches a PaymentMethod object from a Customer. After a PaymentMethod is + * detached, it can no longer be used for a payment or re-attached to a Customer. * * @param string $id * @param null|array $params diff --git a/tests/TestCase.php b/tests/TestCase.php index 3c664d8de1..b1d6c21a43 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -10,8 +10,11 @@ * incompatible with PHP<=7.2, but PHP8 is incompatible with phpunit5.6. * * We can remove this class and these methods when we drop support for PHP 7.2 and all earlier versions. + * + * @internal + * @coversNothing */ -class TestCase extends \PHPUnit\Framework\TestCase +final class TestCase extends \PHPUnit\Framework\TestCase { public static function compatAssertIsArray($obj) { @@ -79,7 +82,8 @@ public function compatExpectWarning($warningClass) } } - public static function compatAssertMatchesRegularExpression($text, $regex) { + public static function compatAssertMatchesRegularExpression($text, $regex) + { if (method_exists(static::class, 'assertMatchesRegularExpression')) { // @phpstan-ignore-next-line static::assertMatchesRegularExpression($text, $regex);