Skip to content

Commit

Permalink
Update generated code (#1506)
Browse files Browse the repository at this point in the history
* Update generated code for v358

* Update generated code for v364

* Update generated code for v376

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Co-authored-by: Richard Marmorstein <52928443+richardm-stripe@users.noreply.github.com>
  • Loading branch information
stripe-openapi[bot] and richardm-stripe committed Jun 8, 2023
1 parent 12a022d commit ae5778e
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v354
v376
9 changes: 4 additions & 5 deletions lib/Charge.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
namespace Stripe;

/**
* To charge a credit or a debit card, you create a <code>Charge</code> object. You can
* retrieve and refund individual charges as well as list all charges. Charges
* are identified by a unique, random ID.
*
* Related guide: <a href="https://stripe.com/docs/payments/accept-a-payment-charges">Accept a payment with the Charges API</a>
* The <code>Charge</code> object represents a single attempt to move money into your Stripe account.
* PaymentIntent confirmation is the most common way to create Charges, but transferring
* money to a different Stripe account through Connect also creates Charges.
* Some legacy payment flows create Charges directly, which is not recommended for new integrations.
*
* @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
1 change: 1 addition & 0 deletions lib/Issuing/Cardholder.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
* @property \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 string $name The cardholder's name. This will be printed on cards issued to them.
* @property null|string $phone_number The cardholder's phone number. This is required for all cardholders who will be creating EU cards. See the <a href="https://stripe.com/docs/issuing/3d-secure#when-is-3d-secure-applied">3D Secure documentation</a> for more details.
* @property null|string[] $preferred_locales The cardholder’s preferred locales (languages), ordered by preference. Locales can be <code>de</code>, <code>en</code>, <code>es</code>, <code>fr</code>, or <code>it</code>. This changes the language of the <a href="https://stripe.com/docs/issuing/3d-secure">3D Secure flow</a> and one-time password messages sent to the cardholder.
* @property \Stripe\StripeObject $requirements
* @property null|\Stripe\StripeObject $spending_controls Rules that control spending across this cardholder's cards. Refer to our <a href="https://stripe.com/docs/issuing/controls/spending-controls">documentation</a> for more details.
* @property string $status Specifies whether to permit authorizations on this cardholder's cards.
Expand Down
2 changes: 2 additions & 0 deletions lib/LoginLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
namespace Stripe;

/**
* Login Links are single-use login link for an Express account to access their Stripe dashboard.
*
* @property string $object String representing the object's type. Objects of the same type share the same value.
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
* @property string $url The URL for the login link.
Expand Down
22 changes: 11 additions & 11 deletions lib/Service/ChargeService.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,15 @@ public function all($params = null, $opts = null)
}

/**
* Capture the payment of an existing, uncaptured, charge. This is the second half
* of the two-step payment flow, where first you <a href="#create_charge">created a
* charge</a> with the capture option set to false.
* Capture the payment of an existing, uncaptured charge that was created with the
* <code>capture</code> option set to false.
*
* Uncaptured payments expire a set number of days after they are created (<a
* href="/docs/charges/placing-a-hold">7 by default</a>). If they are not captured
* by that point in time, they will be marked as refunded and will no longer be
* capturable.
* href="/docs/charges/placing-a-hold">7 by default</a>), after which they are
* marked as refunded and capture attempts will fail.
*
* Don’t use this method to capture a PaymentIntent-initiated charge. Use <a
* href="/docs/api/payment_intents/capture">Capture a PaymentIntent</a>.
*
* @param string $id
* @param null|array $params
Expand All @@ -46,11 +47,10 @@ public function capture($id, $params = null, $opts = null)
}

/**
* To charge a credit card or other payment source, you create a
* <code>Charge</code> object. If your API key is in test mode, the supplied
* payment source (e.g., card) won’t actually be charged, although everything else
* will occur as if in live mode. (Stripe assumes that the charge would have
* completed successfully).
* Use the <a href="/docs/api/payment_intents">Payment Intents API</a> to initiate
* a new payment instead of using this method. Confirmation of the PaymentIntent
* creates the <code>Charge</code> object used to request payment, so this method
* is limited to legacy integrations.
*
* @param null|array $params
* @param null|array|\Stripe\Util\RequestOptions $opts
Expand Down
2 changes: 0 additions & 2 deletions lib/Token.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
* <a href="https://stripe.com/docs/radar">Radar</a>, our integrated solution for automatic fraud protection,
* performs best with integrations that use client-side tokenization.
*
* Related guide: <a href="https://stripe.com/docs/payments/accept-a-payment-charges#web-create-token">Accept a payment with Charges and Tokens</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.
* @property null|\Stripe\BankAccount $bank_account <p>These bank accounts are payment methods on <code>Customer</code> objects.</p><p>On the other hand <a href="https://stripe.com/docs/api#external_accounts">External Accounts</a> are transfer destinations on <code>Account</code> objects for <a href="https://stripe.com/docs/connect/custom-accounts">Custom accounts</a>. They can be bank accounts or debit cards as well, and are documented in the links above.</p><p>Related guide: <a href="https://stripe.com/docs/payments/bank-debits-transfers">Bank debits and transfers</a></p>
Expand Down

0 comments on commit ae5778e

Please sign in to comment.