Skip to content

Commit

Permalink
Codegen for openapi ba66006
Browse files Browse the repository at this point in the history
  • Loading branch information
dcr-stripe committed Mar 18, 2022
1 parent 9c7e27a commit 52ded92
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 8 deletions.
1 change: 0 additions & 1 deletion init.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php

// File generated from our OpenAPI spec

// Stripe singleton
Expand Down
1 change: 1 addition & 0 deletions lib/Card.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
* @property null|\Stripe\StripeObject $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> 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 <code>new</code> and <code>errored</code>. If a transfer fails, the status is set to <code>errored</code> 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 <code>android_pay</code> (includes Google Pay), <code>apple_pay</code>, <code>masterpass</code>, <code>visa_checkout</code>, or null.
*/
class Card extends ApiResource
Expand Down
4 changes: 2 additions & 2 deletions lib/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -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: <a href="https://stripe.com/docs/orders">Tax, Shipping, and
* Inventory</a>.
* Related guide: <a href="https://stripe.com/docs/orders-legacy">Tax, Shipping,
* and Inventory</a>.
*
* @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.
Expand Down
4 changes: 2 additions & 2 deletions lib/SKU.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
*
* Can also be used to manage inventory.
*
* Related guide: <a href="https://stripe.com/docs/orders">Tax, Shipping, and
* Inventory</a>.
* Related guide: <a href="https://stripe.com/docs/orders-legacy">Tax, Shipping,
* and Inventory</a>.
*
* @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.
Expand Down
4 changes: 4 additions & 0 deletions lib/Service/PaymentIntentService.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ public function all($params = null, $opts = null)
* <code>status=’requires_capture’</code>, the remaining
* <code>amount_capturable</code> will automatically be refunded.
*
* You cannot cancel the PaymentIntent for a Checkout Session. <a
* href="/docs/api/checkout/sessions/expire">Expire the Checkout Session</a>
* instead
*
* @param string $id
* @param null|array $params
* @param null|array|\Stripe\Util\RequestOptions $opts
Expand Down
3 changes: 2 additions & 1 deletion lib/Service/PaymentMethodService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 6 additions & 2 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 52ded92

Please sign in to comment.