Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Updates #1254

Merged
merged 1 commit into from
Mar 18, 2022
Merged
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
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
3 changes: 2 additions & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,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