Skip to content

Commit

Permalink
Update generated code for v526
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Sep 13, 2023
1 parent 87e9a07 commit 63c6922
Show file tree
Hide file tree
Showing 7 changed files with 66 additions and 1 deletion.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v525
v526
2 changes: 2 additions & 0 deletions init.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@
require __DIR__ . '/lib/Charge.php';
require __DIR__ . '/lib/Checkout/Session.php';
require __DIR__ . '/lib/Collection.php';
require __DIR__ . '/lib/ConfirmationToken.php';
require __DIR__ . '/lib/CountrySpec.php';
require __DIR__ . '/lib/Coupon.php';
require __DIR__ . '/lib/CreditNote.php';
Expand Down Expand Up @@ -184,6 +185,7 @@
require __DIR__ . '/lib/Service/ChargeService.php';
require __DIR__ . '/lib/Service/Checkout/CheckoutServiceFactory.php';
require __DIR__ . '/lib/Service/Checkout/SessionService.php';
require __DIR__ . '/lib/Service/ConfirmationTokenService.php';
require __DIR__ . '/lib/Service/CoreServiceFactory.php';
require __DIR__ . '/lib/Service/CountrySpecService.php';
require __DIR__ . '/lib/Service/CouponService.php';
Expand Down
35 changes: 35 additions & 0 deletions lib/ConfirmationToken.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?php

// File generated from our OpenAPI spec

namespace Stripe;

/**
* ConfirmationTokens help transport client side data collected by Stripe JS over
* to your server for confirming a PaymentIntent or SetupIntent. If the confirmation
* is successful, values present on the ConfirmationToken are written onto the Intent.
*
* @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 int $created Time at which the object was created. Measured in seconds since the Unix epoch.
* @property null|string $customer ID of the Customer this ConfirmationToken belongs to.
* @property null|int $expires_at Time at which this ConfirmationToken expires and can no longer be used to confirm a PaymentIntent or SetupIntent. This is set to null once this ConfirmationToken has been used.
* @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
* @property null|\Stripe\StripeObject $mandate_data Data used for generating a Mandate.
* @property null|string $payment_intent ID of the PaymentIntent that this ConfirmationToken was used to confirm, or null if this ConfirmationToken has not yet been used.
* @property null|string|\Stripe\PaymentMethod $payment_method ID of an existing PaymentMethod.
* @property null|\Stripe\StripeObject $payment_method_preview Payment details collected by the Payment Element, used to create a PaymentMethod when a PaymentIntent or SetupIntent is confirmed with this ConfirmationToken.
* @property null|string $return_url Return URL used to confirm the Intent.
* @property null|string $setup_future_usage <p>Indicates that you intend to make future payments with this ConfirmationToken's payment method.</p><p>The presence of this property will <a href="https://stripe.com/docs/payments/save-during-payment">attach the payment method</a> to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete.</p>
* @property null|string $setup_intent ID of the SetupIntent that this ConfirmationToken was used to confirm, or null if this ConfirmationToken has not yet been used.
* @property null|\Stripe\StripeObject $shipping Shipping information collected on this ConfirmationToken.
*/
class ConfirmationToken extends ApiResource
{
const OBJECT_NAME = 'confirmation_token';

use ApiOperations\Retrieve;

const SETUP_FUTURE_USAGE_OFF_SESSION = 'off_session';
const SETUP_FUTURE_USAGE_ON_SESSION = 'on_session';
}
24 changes: 24 additions & 0 deletions lib/Service/ConfirmationTokenService.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

// File generated from our OpenAPI spec

namespace Stripe\Service;

class ConfirmationTokenService extends \Stripe\Service\AbstractService
{
/**
* Retrieves an existing ConfirmationToken object.
*
* @param string $id
* @param null|array $params
* @param null|array|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
* @return \Stripe\ConfirmationToken
*/
public function retrieve($id, $params = null, $opts = null)
{
return $this->request('get', $this->buildPath('/v1/confirmation_tokens/%s', $id), $params, $opts);
}
}
2 changes: 2 additions & 0 deletions lib/Service/CoreServiceFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
* @property Capital\CapitalServiceFactory $capital
* @property ChargeService $charges
* @property Checkout\CheckoutServiceFactory $checkout
* @property ConfirmationTokenService $confirmationTokens
* @property CountrySpecService $countrySpecs
* @property CouponService $coupons
* @property CreditNoteService $creditNotes
Expand Down Expand Up @@ -92,6 +93,7 @@ class CoreServiceFactory extends \Stripe\Service\AbstractServiceFactory
'capital' => Capital\CapitalServiceFactory::class,
'charges' => ChargeService::class,
'checkout' => Checkout\CheckoutServiceFactory::class,
'confirmationTokens' => ConfirmationTokenService::class,
'countrySpecs' => CountrySpecService::class,
'coupons' => CouponService::class,
'creditNotes' => CreditNoteService::class,
Expand Down
1 change: 1 addition & 0 deletions lib/StripeClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
* @property \Stripe\Service\Capital\CapitalServiceFactory $capital
* @property \Stripe\Service\ChargeService $charges
* @property \Stripe\Service\Checkout\CheckoutServiceFactory $checkout
* @property \Stripe\Service\ConfirmationTokenService $confirmationTokens
* @property \Stripe\Service\CountrySpecService $countrySpecs
* @property \Stripe\Service\CouponService $coupons
* @property \Stripe\Service\CreditNoteService $creditNotes
Expand Down
1 change: 1 addition & 0 deletions lib/Util/ObjectTypes.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class ObjectTypes
\Stripe\Charge::OBJECT_NAME => \Stripe\Charge::class,
\Stripe\Checkout\Session::OBJECT_NAME => \Stripe\Checkout\Session::class,
\Stripe\Collection::OBJECT_NAME => \Stripe\Collection::class,
\Stripe\ConfirmationToken::OBJECT_NAME => \Stripe\ConfirmationToken::class,
\Stripe\CountrySpec::OBJECT_NAME => \Stripe\CountrySpec::class,
\Stripe\Coupon::OBJECT_NAME => \Stripe\Coupon::class,
\Stripe\CreditNote::OBJECT_NAME => \Stripe\CreditNote::class,
Expand Down

0 comments on commit 63c6922

Please sign in to comment.