From f4f765bf537e8ad073a532a261f2d5d4945c43fd Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 15 Mar 2024 23:28:29 +0000 Subject: [PATCH 01/14] Update generated code for v879 --- lib/Util/ApiVersion.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Util/ApiVersion.php b/lib/Util/ApiVersion.php index c430bdcb7..4860ae9dd 100644 --- a/lib/Util/ApiVersion.php +++ b/lib/Util/ApiVersion.php @@ -7,5 +7,5 @@ class ApiVersion { const CURRENT = '2023-10-16'; - const PREVIEW = '2024-02-15.preview-v2'; + const PREVIEW = '2024-03-15.preview-v2'; } From c77d548dfbd8da2fe99db13b6ccaae5753594d65 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 18 Mar 2024 19:19:51 +0000 Subject: [PATCH 02/14] Update generated code for v880 --- OPENAPI_VERSION | 2 +- lib/ConfirmationToken.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 32951953e..4a399b566 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v879 \ No newline at end of file +v880 \ No newline at end of file diff --git a/lib/ConfirmationToken.php b/lib/ConfirmationToken.php index cb4ab45da..1c04e7cf2 100644 --- a/lib/ConfirmationToken.php +++ b/lib/ConfirmationToken.php @@ -25,6 +25,7 @@ * @property null|string $setup_future_usage

Indicates that you intend to make future payments with this ConfirmationToken's payment method.

The presence of this property will attach the payment method to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete.

* @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. + * @property bool $use_stripe_sdk Indicates whether the Stripe SDK is used to handle confirmation flow. Defaults to true on ConfirmationToken. */ class ConfirmationToken extends ApiResource { From 9f07a95d055674815fb4259cb582bf39f9eaac65 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 18 Mar 2024 23:41:26 +0000 Subject: [PATCH 03/14] Update generated code for v881 --- OPENAPI_VERSION | 2 +- lib/Terminal/Configuration.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 4a399b566..be5eeb88d 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v880 \ No newline at end of file +v881 \ No newline at end of file diff --git a/lib/Terminal/Configuration.php b/lib/Terminal/Configuration.php index 9bc709eeb..318f9b7da 100644 --- a/lib/Terminal/Configuration.php +++ b/lib/Terminal/Configuration.php @@ -12,6 +12,7 @@ * @property null|\Stripe\StripeObject $bbpos_wisepos_e * @property null|bool $is_account_default Whether this Configuration is the default for your account * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode. + * @property null|string $name String indicating the name of the Configuration object, set by the user * @property null|\Stripe\StripeObject $offline * @property null|\Stripe\StripeObject $tipping * @property null|\Stripe\StripeObject $verifone_p400 From febc95024c9767546d4a56bc5054424e3bedfdca Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 20 Mar 2024 17:52:45 +0000 Subject: [PATCH 04/14] Update generated code for v884 --- OPENAPI_VERSION | 2 +- init.php | 1 + lib/Product.php | 48 ++++++++++++++++++++++++++++++++- lib/ProductFeature.php | 19 +++++++++++++ lib/Service/ProductService.php | 49 ++++++++++++++++++++++++++++++++++ lib/Util/ObjectTypes.php | 1 + 6 files changed, 118 insertions(+), 2 deletions(-) create mode 100644 lib/ProductFeature.php diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index be5eeb88d..5b748bb68 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v881 \ No newline at end of file +v884 \ No newline at end of file diff --git a/init.php b/init.php index 3f595bc70..d39274c6c 100644 --- a/init.php +++ b/init.php @@ -171,6 +171,7 @@ require __DIR__ . '/lib/PlatformTaxFee.php'; require __DIR__ . '/lib/Price.php'; require __DIR__ . '/lib/Product.php'; +require __DIR__ . '/lib/ProductFeature.php'; require __DIR__ . '/lib/PromotionCode.php'; require __DIR__ . '/lib/Quote.php'; require __DIR__ . '/lib/QuoteLine.php'; diff --git a/lib/Product.php b/lib/Product.php index 22852b3fe..c7d086b81 100644 --- a/lib/Product.php +++ b/lib/Product.php @@ -20,7 +20,7 @@ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch. * @property null|string|\Stripe\Price $default_price The ID of the Price object that is the default price for this product. * @property null|string $description The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes. - * @property \Stripe\StripeObject[] $features A list of up to 15 features for this product. Entries using name are displayed in pricing tables. + * @property \Stripe\StripeObject[] $features A list of up to 15 marketing features for this product. These are displayed in pricing tables. * @property string[] $images A list of up to 8 URLs of images for this product, meant to be displayable to the customer. * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode. * @property \Stripe\StripeObject $metadata Set of 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. @@ -42,6 +42,7 @@ class Product extends ApiResource use ApiOperations\All; use ApiOperations\Create; use ApiOperations\Delete; + use ApiOperations\NestedResource; use ApiOperations\Retrieve; use ApiOperations\Search; use ApiOperations\Update; @@ -63,4 +64,49 @@ public static function search($params = null, $opts = null) return static::_requestPage($url, \Stripe\SearchResult::class, $params, $opts); } + + const PATH_FEATURES = '/features'; + + /** + * @param string $id the ID of the product on which to retrieve the product features + * @param null|array $params + * @param null|array|string $opts + * + * @throws \Stripe\Exception\ApiErrorException if the request fails + * + * @return \Stripe\Collection<\Stripe\ProductFeature> the list of product features + */ + public static function allFeatures($id, $params = null, $opts = null) + { + return self::_allNestedResources($id, static::PATH_FEATURES, $params, $opts); + } + + /** + * @param string $id the ID of the product on which to create the product feature + * @param null|array $params + * @param null|array|string $opts + * + * @throws \Stripe\Exception\ApiErrorException if the request fails + * + * @return \Stripe\ProductFeature + */ + public static function createFeature($id, $params = null, $opts = null) + { + return self::_createNestedResource($id, static::PATH_FEATURES, $params, $opts); + } + + /** + * @param string $id the ID of the product to which the product feature belongs + * @param string $featureId the ID of the product feature to delete + * @param null|array $params + * @param null|array|string $opts + * + * @throws \Stripe\Exception\ApiErrorException if the request fails + * + * @return \Stripe\ProductFeature + */ + public static function deleteFeature($id, $featureId, $params = null, $opts = null) + { + return self::_deleteNestedResource($id, static::PATH_FEATURES, $featureId, $params, $opts); + } } diff --git a/lib/ProductFeature.php b/lib/ProductFeature.php new file mode 100644 index 000000000..a978fb18e --- /dev/null +++ b/lib/ProductFeature.php @@ -0,0 +1,19 @@ +true if the object exists in live mode or the value false if the object exists in test mode. + */ +class ProductFeature extends ApiResource +{ + const OBJECT_NAME = 'product_feature'; +} diff --git a/lib/Service/ProductService.php b/lib/Service/ProductService.php index da9485654..ecec874e0 100644 --- a/lib/Service/ProductService.php +++ b/lib/Service/ProductService.php @@ -28,6 +28,22 @@ public function all($params = null, $opts = null) return $this->requestCollection('get', '/v1/products', $params, $opts); } + /** + * Retrieve a list of features for a product. + * + * @param string $parentId + * @param null|array $params + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts + * + * @throws \Stripe\Exception\ApiErrorException if the request fails + * + * @return \Stripe\Collection<\Stripe\ProductFeature> + */ + public function allFeatures($parentId, $params = null, $opts = null) + { + return $this->requestCollection('get', $this->buildPath('/v1/products/%s/features', $parentId), $params, $opts); + } + /** * Creates a new product object. * @@ -43,6 +59,22 @@ public function create($params = null, $opts = null) return $this->request('post', '/v1/products', $params, $opts); } + /** + * Creates a product_feature, which represents a feature attachment to a product. + * + * @param string $parentId + * @param null|array $params + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts + * + * @throws \Stripe\Exception\ApiErrorException if the request fails + * + * @return \Stripe\ProductFeature + */ + public function createFeature($parentId, $params = null, $opts = null) + { + return $this->request('post', $this->buildPath('/v1/products/%s/features', $parentId), $params, $opts); + } + /** * Delete a product. Deleting a product is only possible if it has no prices * associated with it. Additionally, deleting a product with type=good @@ -61,6 +93,23 @@ public function delete($id, $params = null, $opts = null) return $this->request('delete', $this->buildPath('/v1/products/%s', $id), $params, $opts); } + /** + * Deletes the feature attachment to a product. + * + * @param string $parentId + * @param string $id + * @param null|array $params + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts + * + * @throws \Stripe\Exception\ApiErrorException if the request fails + * + * @return \Stripe\ProductFeature + */ + public function deleteFeature($parentId, $id, $params = null, $opts = null) + { + return $this->request('delete', $this->buildPath('/v1/products/%s/features/%s', $parentId, $id), $params, $opts); + } + /** * Retrieves the details of an existing product. Supply the unique product ID from * either a product creation request or the product list, and Stripe will return diff --git a/lib/Util/ObjectTypes.php b/lib/Util/ObjectTypes.php index 3434b00b3..92b4cf4ab 100644 --- a/lib/Util/ObjectTypes.php +++ b/lib/Util/ObjectTypes.php @@ -103,6 +103,7 @@ class ObjectTypes \Stripe\PlatformTaxFee::OBJECT_NAME => \Stripe\PlatformTaxFee::class, \Stripe\Price::OBJECT_NAME => \Stripe\Price::class, \Stripe\Product::OBJECT_NAME => \Stripe\Product::class, + \Stripe\ProductFeature::OBJECT_NAME => \Stripe\ProductFeature::class, \Stripe\PromotionCode::OBJECT_NAME => \Stripe\PromotionCode::class, \Stripe\Quote::OBJECT_NAME => \Stripe\Quote::class, \Stripe\QuoteLine::OBJECT_NAME => \Stripe\QuoteLine::class, From 45b60d0863ecb5d06f25844ee96fc058083095fd Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 20 Mar 2024 19:51:33 +0000 Subject: [PATCH 05/14] Update generated code for v886 --- OPENAPI_VERSION | 2 +- lib/ConfirmationToken.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 5b748bb68..7d0fa66e5 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v884 \ No newline at end of file +v886 \ No newline at end of file diff --git a/lib/ConfirmationToken.php b/lib/ConfirmationToken.php index 1c04e7cf2..d7de7c87f 100644 --- a/lib/ConfirmationToken.php +++ b/lib/ConfirmationToken.php @@ -18,7 +18,6 @@ * @property bool $livemode Has the value true if the object exists in live mode or the value false 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_options Payment-method-specific configuration for this ConfirmationToken. * @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. From 7431076485f2cf67a6db327d3f3ddf8ab7cb8801 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 20 Mar 2024 20:11:39 +0000 Subject: [PATCH 06/14] Update generated code for v887 --- OPENAPI_VERSION | 2 +- lib/Entitlements/Feature.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 7d0fa66e5..555f5a40a 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v886 \ No newline at end of file +v887 \ No newline at end of file diff --git a/lib/Entitlements/Feature.php b/lib/Entitlements/Feature.php index 5d4758bad..3c2f05b64 100644 --- a/lib/Entitlements/Feature.php +++ b/lib/Entitlements/Feature.php @@ -10,6 +10,7 @@ * * @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 bool $active Inactive features cannot be attached to new products and will not be returned from the features list endpoint. * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode. * @property string $lookup_key A unique key you provide as your own system identifier. This may be up to 80 characters. * @property string $name The feature's name, for your own purpose, not meant to be displayable to the customer. From 3281e7416c45b60be2bc14d3a70760978297c3bd Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 20 Mar 2024 21:43:19 +0000 Subject: [PATCH 07/14] Update generated code for v889 --- OPENAPI_VERSION | 2 +- init.php | 3 + lib/Forwarding/Request.php | 42 +++++++++++++ lib/Service/CoreServiceFactory.php | 2 + .../Forwarding/ForwardingServiceFactory.php | 25 ++++++++ lib/Service/Forwarding/RequestService.php | 60 +++++++++++++++++++ lib/StripeClient.php | 1 + lib/Util/ObjectTypes.php | 1 + 8 files changed, 135 insertions(+), 1 deletion(-) create mode 100644 lib/Forwarding/Request.php create mode 100644 lib/Service/Forwarding/ForwardingServiceFactory.php create mode 100644 lib/Service/Forwarding/RequestService.php diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 555f5a40a..6f4327e84 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v887 \ No newline at end of file +v889 \ No newline at end of file diff --git a/init.php b/init.php index d39274c6c..070f69da8 100644 --- a/init.php +++ b/init.php @@ -137,6 +137,7 @@ require __DIR__ . '/lib/FinancialConnections/AccountOwnership.php'; require __DIR__ . '/lib/FinancialConnections/Session.php'; require __DIR__ . '/lib/FinancialConnections/Transaction.php'; +require __DIR__ . '/lib/Forwarding/Request.php'; require __DIR__ . '/lib/FundingInstructions.php'; require __DIR__ . '/lib/GiftCards/Card.php'; require __DIR__ . '/lib/GiftCards/Transaction.php'; @@ -233,6 +234,8 @@ require __DIR__ . '/lib/Service/FinancialConnections/FinancialConnectionsServiceFactory.php'; require __DIR__ . '/lib/Service/FinancialConnections/SessionService.php'; require __DIR__ . '/lib/Service/FinancialConnections/TransactionService.php'; +require __DIR__ . '/lib/Service/Forwarding/ForwardingServiceFactory.php'; +require __DIR__ . '/lib/Service/Forwarding/RequestService.php'; require __DIR__ . '/lib/Service/GiftCards/CardService.php'; require __DIR__ . '/lib/Service/GiftCards/GiftCardsServiceFactory.php'; require __DIR__ . '/lib/Service/GiftCards/TransactionService.php'; diff --git a/lib/Forwarding/Request.php b/lib/Forwarding/Request.php new file mode 100644 index 000000000..841a17858 --- /dev/null +++ b/lib/Forwarding/Request.php @@ -0,0 +1,42 @@ +true if the object exists in live mode or the value false if the object exists in test mode. + * @property string $payment_method The PaymentMethod to insert into the forwarded request. Forwarding previously consumed PaymentMethods is allowed. + * @property string[] $replacements The field kinds to be replaced in the forwarded request. + * @property null|\Stripe\StripeObject $request_context Context about the request from Stripe's servers to the destination endpoint. + * @property null|\Stripe\StripeObject $request_details The request that was sent to the destination endpoint. We redact any sensitive fields. + * @property null|\Stripe\StripeObject $response_details The response that the destination endpoint returned to us. We redact any sensitive fields. + * @property null|string $url The destination URL for the forwarded request. Must be supported by the config. + */ +class Request extends \Stripe\ApiResource +{ + const OBJECT_NAME = 'forwarding.request'; + + use \Stripe\ApiOperations\All; + use \Stripe\ApiOperations\Create; + use \Stripe\ApiOperations\Retrieve; +} diff --git a/lib/Service/CoreServiceFactory.php b/lib/Service/CoreServiceFactory.php index 48c3fa32f..b8edf4eb4 100644 --- a/lib/Service/CoreServiceFactory.php +++ b/lib/Service/CoreServiceFactory.php @@ -36,6 +36,7 @@ * @property FileLinkService $fileLinks * @property FileService $files * @property FinancialConnections\FinancialConnectionsServiceFactory $financialConnections + * @property Forwarding\ForwardingServiceFactory $forwarding * @property GiftCards\GiftCardsServiceFactory $giftCards * @property Identity\IdentityServiceFactory $identity * @property InvoiceItemService $invoiceItems @@ -118,6 +119,7 @@ class CoreServiceFactory extends \Stripe\Service\AbstractServiceFactory 'fileLinks' => FileLinkService::class, 'files' => FileService::class, 'financialConnections' => FinancialConnections\FinancialConnectionsServiceFactory::class, + 'forwarding' => Forwarding\ForwardingServiceFactory::class, 'giftCards' => GiftCards\GiftCardsServiceFactory::class, 'identity' => Identity\IdentityServiceFactory::class, 'invoiceItems' => InvoiceItemService::class, diff --git a/lib/Service/Forwarding/ForwardingServiceFactory.php b/lib/Service/Forwarding/ForwardingServiceFactory.php new file mode 100644 index 000000000..1ae9f888a --- /dev/null +++ b/lib/Service/Forwarding/ForwardingServiceFactory.php @@ -0,0 +1,25 @@ + + */ + private static $classMap = [ + 'requests' => RequestService::class, + ]; + + protected function getServiceClass($name) + { + return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null; + } +} diff --git a/lib/Service/Forwarding/RequestService.php b/lib/Service/Forwarding/RequestService.php new file mode 100644 index 000000000..2cfe72415 --- /dev/null +++ b/lib/Service/Forwarding/RequestService.php @@ -0,0 +1,60 @@ + + */ + public function all($params = null, $opts = null) + { + return $this->requestCollection('get', '/v1/forwarding/requests', $params, $opts); + } + + /** + * Creates a ForwardingRequest object. + * + * @param null|array $params + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts + * + * @throws \Stripe\Exception\ApiErrorException if the request fails + * + * @return \Stripe\Forwarding\Request + */ + public function create($params = null, $opts = null) + { + return $this->request('post', '/v1/forwarding/requests', $params, $opts); + } + + /** + * Retrieves a ForwardingRequest object. + * + * @param string $id + * @param null|array $params + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts + * + * @throws \Stripe\Exception\ApiErrorException if the request fails + * + * @return \Stripe\Forwarding\Request + */ + public function retrieve($id, $params = null, $opts = null) + { + return $this->request('get', $this->buildPath('/v1/forwarding/requests/%s', $id), $params, $opts); + } +} diff --git a/lib/StripeClient.php b/lib/StripeClient.php index 1862806ab..a09301554 100644 --- a/lib/StripeClient.php +++ b/lib/StripeClient.php @@ -36,6 +36,7 @@ * @property \Stripe\Service\FileLinkService $fileLinks * @property \Stripe\Service\FileService $files * @property \Stripe\Service\FinancialConnections\FinancialConnectionsServiceFactory $financialConnections + * @property \Stripe\Service\Forwarding\ForwardingServiceFactory $forwarding * @property \Stripe\Service\GiftCards\GiftCardsServiceFactory $giftCards * @property \Stripe\Service\Identity\IdentityServiceFactory $identity * @property \Stripe\Service\InvoiceItemService $invoiceItems diff --git a/lib/Util/ObjectTypes.php b/lib/Util/ObjectTypes.php index 92b4cf4ab..89b4af4a5 100644 --- a/lib/Util/ObjectTypes.php +++ b/lib/Util/ObjectTypes.php @@ -69,6 +69,7 @@ class ObjectTypes \Stripe\FinancialConnections\AccountOwnership::OBJECT_NAME => \Stripe\FinancialConnections\AccountOwnership::class, \Stripe\FinancialConnections\Session::OBJECT_NAME => \Stripe\FinancialConnections\Session::class, \Stripe\FinancialConnections\Transaction::OBJECT_NAME => \Stripe\FinancialConnections\Transaction::class, + \Stripe\Forwarding\Request::OBJECT_NAME => \Stripe\Forwarding\Request::class, \Stripe\FundingInstructions::OBJECT_NAME => \Stripe\FundingInstructions::class, \Stripe\GiftCards\Card::OBJECT_NAME => \Stripe\GiftCards\Card::class, \Stripe\GiftCards\Transaction::OBJECT_NAME => \Stripe\GiftCards\Transaction::class, From 0355ae6ad7b34738a171854ce2e82b257f245e1c Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 20 Mar 2024 23:15:40 +0000 Subject: [PATCH 08/14] Update generated code for v890 --- OPENAPI_VERSION | 2 +- lib/Util/ApiVersion.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 6f4327e84..4cb043dce 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v889 \ No newline at end of file +v890 \ No newline at end of file diff --git a/lib/Util/ApiVersion.php b/lib/Util/ApiVersion.php index 4860ae9dd..1b743ecf0 100644 --- a/lib/Util/ApiVersion.php +++ b/lib/Util/ApiVersion.php @@ -7,5 +7,5 @@ class ApiVersion { const CURRENT = '2023-10-16'; - const PREVIEW = '2024-03-15.preview-v2'; + const PREVIEW = '2024-03-20.preview-v2'; } From 0f95bf09c3dfa88a4a203469240025517ceb71eb Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 21 Mar 2024 05:54:14 +0000 Subject: [PATCH 09/14] Update generated code for v891 --- OPENAPI_VERSION | 2 +- lib/Subscription.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 4cb043dce..c019a4f7c 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v890 \ No newline at end of file +v891 \ No newline at end of file diff --git a/lib/Subscription.php b/lib/Subscription.php index 7f4003095..d29070af4 100644 --- a/lib/Subscription.php +++ b/lib/Subscription.php @@ -41,7 +41,7 @@ * @property \Stripe\StripeObject $metadata Set of 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|int $next_pending_invoice_item_invoice Specifies the approximate timestamp on which any pending invoice items will be billed according to the schedule provided at pending_invoice_item_interval. * @property null|string|\Stripe\Account $on_behalf_of The account (if any) the charge was made on behalf of for charges associated with this subscription. See the Connect documentation for details. - * @property null|\Stripe\StripeObject $pause_collection If specified, payment collection for this subscription will be paused. + * @property null|\Stripe\StripeObject $pause_collection If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to paused. Learn more about pausing collection. * @property null|\Stripe\StripeObject $payment_settings Payment settings passed on to invoices created by the subscription. * @property null|\Stripe\StripeObject $pending_invoice_item_interval Specifies an interval for how often to bill for any pending invoice items. It is analogous to calling Create an invoice for the given subscription at the specified interval. * @property null|string|\Stripe\SetupIntent $pending_setup_intent You can use this SetupIntent to collect user authentication when creating a subscription without immediate payment or updating a subscription's payment method, allowing you to optimize for off-session payments. Learn more in the SCA Migration Guide. @@ -49,7 +49,7 @@ * @property null|\Stripe\StripeObject $prebilling Time period and invoice for a Subscription billed in advance. * @property null|string|\Stripe\SubscriptionSchedule $schedule The schedule attached to the subscription * @property int $start_date Date when the subscription was first created. The date might differ from the created date due to backdating. - * @property string $status

Possible values are incomplete, incomplete_expired, trialing, active, past_due, canceled, or unpaid.

For collection_method=charge_automatically a subscription moves into incomplete if the initial payment attempt fails. A subscription in this state can only have metadata and default_source updated. Once the first invoice is paid, the subscription moves into an active state. If the first invoice is not paid within 23 hours, the subscription transitions to incomplete_expired. This is a terminal state, the open invoice will be voided and no further invoices will be generated.

A subscription that is currently in a trial period is trialing and moves to active when the trial period is over.

If subscription collection_method=charge_automatically, it becomes past_due when payment is required but cannot be paid (due to failed payment or awaiting additional user actions). Once Stripe has exhausted all payment retry attempts, the subscription will become canceled or unpaid (depending on your subscriptions settings).

If subscription collection_method=send_invoice it becomes past_due when its invoice is not paid by the due date, and canceled or unpaid if it is still not paid by an additional deadline after that. Note that when a subscription has a status of unpaid, no subsequent invoices will be attempted (invoices will be created, but then immediately automatically closed). After receiving updated payment information from a customer, you may choose to reopen and pay their closed invoices.

+ * @property string $status

Possible values are incomplete, incomplete_expired, trialing, active, past_due, canceled, unpaid, or paused.

For collection_method=charge_automatically a subscription moves into incomplete if the initial payment attempt fails. A subscription in this status can only have metadata and default_source updated. Once the first invoice is paid, the subscription moves into an active status. If the first invoice is not paid within 23 hours, the subscription transitions to incomplete_expired. This is a terminal status, the open invoice will be voided and no further invoices will be generated.

A subscription that is currently in a trial period is trialing and moves to active when the trial period is over.

A subscription can only enter a paused status when a trial ends without a payment method. A paused subscription doesn't generate invoices and can be resumed after your customer adds their payment method. The paused status is different from pausing collection, which still generates invoices.

If subscription collection_method=charge_automatically, it becomes past_due when payment is required but cannot be paid (due to failed payment or awaiting additional user actions). Once Stripe has exhausted all payment retry attempts, the subscription will become canceled or unpaid (depending on your subscriptions settings).

If subscription collection_method=send_invoice it becomes past_due when its invoice is not paid by the due date, and canceled or unpaid if it is still not paid by an additional deadline after that. Note that when a subscription has a status of unpaid, no subsequent invoices will be attempted (invoices will be created, but then immediately automatically closed). After receiving updated payment information from a customer, you may choose to reopen and pay their closed invoices.

* @property null|string|\Stripe\TestHelpers\TestClock $test_clock ID of the test clock this subscription belongs to. * @property null|\Stripe\StripeObject $transfer_data The account (if any) the subscription's payments will be attributed to for tax reporting, and where funds from each payment will be transferred to for each of the subscription's invoices. * @property null|int $trial_end If the subscription has a trial, the end of that trial. From 8e1d309348329d439f9376c6e9f54fea942d0902 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 21 Mar 2024 14:57:24 +0000 Subject: [PATCH 10/14] Update generated code for v892 --- OPENAPI_VERSION | 2 +- init.php | 5 +-- lib/Customer.php | 31 ------------------ .../ActiveEntitlement.php} | 10 +++--- .../ActiveEntitlementSummary.php} | 10 +++--- lib/Event.php | 4 +-- lib/Service/CustomerService.php | 32 ------------------- .../Entitlements/ActiveEntitlementService.php | 29 +++++++++++++++++ .../EntitlementsServiceFactory.php | 2 ++ lib/Util/ObjectTypes.php | 4 +-- 10 files changed, 50 insertions(+), 79 deletions(-) rename lib/{CustomerEntitlement.php => Entitlements/ActiveEntitlement.php} (70%) rename lib/{CustomerEntitlementSummary.php => Entitlements/ActiveEntitlementSummary.php} (55%) create mode 100644 lib/Service/Entitlements/ActiveEntitlementService.php diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index c019a4f7c..2a8d82d13 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v891 \ No newline at end of file +v892 \ No newline at end of file diff --git a/init.php b/init.php index 070f69da8..c78f8ce2d 100644 --- a/init.php +++ b/init.php @@ -120,11 +120,11 @@ require __DIR__ . '/lib/Customer.php'; require __DIR__ . '/lib/CustomerBalanceTransaction.php'; require __DIR__ . '/lib/CustomerCashBalanceTransaction.php'; -require __DIR__ . '/lib/CustomerEntitlement.php'; -require __DIR__ . '/lib/CustomerEntitlementSummary.php'; require __DIR__ . '/lib/CustomerSession.php'; require __DIR__ . '/lib/Discount.php'; require __DIR__ . '/lib/Dispute.php'; +require __DIR__ . '/lib/Entitlements/ActiveEntitlement.php'; +require __DIR__ . '/lib/Entitlements/ActiveEntitlementSummary.php'; require __DIR__ . '/lib/Entitlements/Feature.php'; require __DIR__ . '/lib/EphemeralKey.php'; require __DIR__ . '/lib/Event.php'; @@ -223,6 +223,7 @@ require __DIR__ . '/lib/Service/CustomerService.php'; require __DIR__ . '/lib/Service/CustomerSessionService.php'; require __DIR__ . '/lib/Service/DisputeService.php'; +require __DIR__ . '/lib/Service/Entitlements/ActiveEntitlementService.php'; require __DIR__ . '/lib/Service/Entitlements/EntitlementsServiceFactory.php'; require __DIR__ . '/lib/Service/Entitlements/FeatureService.php'; require __DIR__ . '/lib/Service/EphemeralKeyService.php'; diff --git a/lib/Customer.php b/lib/Customer.php index 263434f48..f4a5c9f83 100644 --- a/lib/Customer.php +++ b/lib/Customer.php @@ -387,35 +387,4 @@ public static function retrieveTaxId($id, $taxIdId, $params = null, $opts = null { return self::_retrieveNestedResource($id, static::PATH_TAX_IDS, $taxIdId, $params, $opts); } - const PATH_ENTITLEMENTS = '/entitlements'; - - /** - * @param string $id the ID of the customer on which to retrieve the customer entitlements - * @param null|array $params - * @param null|array|string $opts - * - * @throws \Stripe\Exception\ApiErrorException if the request fails - * - * @return \Stripe\Collection<\Stripe\CustomerEntitlement> the list of customer entitlements - */ - public static function allEntitlements($id, $params = null, $opts = null) - { - return self::_allNestedResources($id, static::PATH_ENTITLEMENTS, $params, $opts); - } - const PATH_ENTITLEMENT_SUMMARY = '/entitlement_summary'; - - /** - * @param string $id the ID of the customer to which the customer entitlement summary belongs - * @param null|array $params - * @param null|array|string $opts - * @param mixed $entitlementSummaryId - * - * @throws \Stripe\Exception\ApiErrorException if the request fails - * - * @return \Stripe\CustomerEntitlementSummary - */ - public static function retrieveEntitlementSummary($id, $entitlementSummaryId, $params = null, $opts = null) - { - return self::_retrieveNestedResource($id, static::PATH_ENTITLEMENT_SUMMARY, $params, $opts); - } } diff --git a/lib/CustomerEntitlement.php b/lib/Entitlements/ActiveEntitlement.php similarity index 70% rename from lib/CustomerEntitlement.php rename to lib/Entitlements/ActiveEntitlement.php index 94dbe01f8..b9f0530ea 100644 --- a/lib/CustomerEntitlement.php +++ b/lib/Entitlements/ActiveEntitlement.php @@ -2,10 +2,10 @@ // File generated from our OpenAPI spec -namespace Stripe; +namespace Stripe\Entitlements; /** - * A entitlement for a customer describes access to a feature. + * An active entitlement describes access to a feature for a customer. * * @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. @@ -13,7 +13,9 @@ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode. * @property string $lookup_key A unique key you provide as your own system identifier. This may be up to 80 characters. */ -class CustomerEntitlement extends ApiResource +class ActiveEntitlement extends \Stripe\ApiResource { - const OBJECT_NAME = 'customer_entitlement'; + const OBJECT_NAME = 'entitlements.active_entitlement'; + + use \Stripe\ApiOperations\All; } diff --git a/lib/CustomerEntitlementSummary.php b/lib/Entitlements/ActiveEntitlementSummary.php similarity index 55% rename from lib/CustomerEntitlementSummary.php rename to lib/Entitlements/ActiveEntitlementSummary.php index aca562bff..46a9105fb 100644 --- a/lib/CustomerEntitlementSummary.php +++ b/lib/Entitlements/ActiveEntitlementSummary.php @@ -2,17 +2,17 @@ // File generated from our OpenAPI spec -namespace Stripe; +namespace Stripe\Entitlements; /** - * A summary of a customer's entitlements. + * A summary of a customer's active entitlements. * * @property string $object String representing the object's type. Objects of the same type share the same value. * @property string $customer The customer that is entitled to this feature. - * @property \Stripe\Collection<\Stripe\CustomerEntitlement> $entitlements The list of entitlements this customer has. + * @property \Stripe\Collection<\Stripe\Entitlements\ActiveEntitlement> $entitlements The list of entitlements this customer has. * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode. */ -class CustomerEntitlementSummary extends ApiResource +class ActiveEntitlementSummary extends \Stripe\ApiResource { - const OBJECT_NAME = 'customer_entitlement_summary'; + const OBJECT_NAME = 'entitlements.active_entitlement_summary'; } diff --git a/lib/Event.php b/lib/Event.php index f4021d810..4b963e15e 100644 --- a/lib/Event.php +++ b/lib/Event.php @@ -120,7 +120,6 @@ class Event extends ApiResource const CUSTOMER_DISCOUNT_CREATED = 'customer.discount.created'; const CUSTOMER_DISCOUNT_DELETED = 'customer.discount.deleted'; const CUSTOMER_DISCOUNT_UPDATED = 'customer.discount.updated'; - const CUSTOMER_ENTITLEMENT_SUMMARY_UPDATED = 'customer.entitlement_summary.updated'; const CUSTOMER_SOURCE_CREATED = 'customer.source.created'; const CUSTOMER_SOURCE_DELETED = 'customer.source.deleted'; const CUSTOMER_SOURCE_EXPIRING = 'customer.source.expiring'; @@ -140,6 +139,7 @@ class Event extends ApiResource const CUSTOMER_TAX_ID_DELETED = 'customer.tax_id.deleted'; const CUSTOMER_TAX_ID_UPDATED = 'customer.tax_id.updated'; const CUSTOMER_UPDATED = 'customer.updated'; + const ENTITLEMENTS_ACTIVE_ENTITLEMENT_SUMMARY_UPDATED = 'entitlements.active_entitlement_summary.updated'; const FILE_CREATED = 'file.created'; const FINANCIAL_CONNECTIONS_ACCOUNT_CREATED = 'financial_connections.account.created'; const FINANCIAL_CONNECTIONS_ACCOUNT_DEACTIVATED = 'financial_connections.account.deactivated'; @@ -385,7 +385,6 @@ class Event extends ApiResource const TYPE_CUSTOMER_DISCOUNT_CREATED = 'customer.discount.created'; const TYPE_CUSTOMER_DISCOUNT_DELETED = 'customer.discount.deleted'; const TYPE_CUSTOMER_DISCOUNT_UPDATED = 'customer.discount.updated'; - const TYPE_CUSTOMER_ENTITLEMENT_SUMMARY_UPDATED = 'customer.entitlement_summary.updated'; const TYPE_CUSTOMER_SOURCE_CREATED = 'customer.source.created'; const TYPE_CUSTOMER_SOURCE_DELETED = 'customer.source.deleted'; const TYPE_CUSTOMER_SOURCE_EXPIRING = 'customer.source.expiring'; @@ -405,6 +404,7 @@ class Event extends ApiResource const TYPE_CUSTOMER_TAX_ID_DELETED = 'customer.tax_id.deleted'; const TYPE_CUSTOMER_TAX_ID_UPDATED = 'customer.tax_id.updated'; const TYPE_CUSTOMER_UPDATED = 'customer.updated'; + const TYPE_ENTITLEMENTS_ACTIVE_ENTITLEMENT_SUMMARY_UPDATED = 'entitlements.active_entitlement_summary.updated'; const TYPE_FILE_CREATED = 'file.created'; const TYPE_FINANCIAL_CONNECTIONS_ACCOUNT_CREATED = 'financial_connections.account.created'; const TYPE_FINANCIAL_CONNECTIONS_ACCOUNT_DEACTIVATED = 'financial_connections.account.deactivated'; diff --git a/lib/Service/CustomerService.php b/lib/Service/CustomerService.php index f6ae17d7f..ea2309943 100644 --- a/lib/Service/CustomerService.php +++ b/lib/Service/CustomerService.php @@ -62,22 +62,6 @@ public function allCashBalanceTransactions($parentId, $params = null, $opts = nu return $this->requestCollection('get', $this->buildPath('/v1/customers/%s/cash_balance_transactions', $parentId), $params, $opts); } - /** - * Retrieve a list of entitlements for a customer. - * - * @param string $parentId - * @param null|array $params - * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts - * - * @throws \Stripe\Exception\ApiErrorException if the request fails - * - * @return \Stripe\Collection<\Stripe\CustomerEntitlement> - */ - public function allEntitlements($parentId, $params = null, $opts = null) - { - return $this->requestCollection('get', $this->buildPath('/v1/customers/%s/entitlements', $parentId), $params, $opts); - } - /** * Returns a list of PaymentMethods for a given Customer. * @@ -351,22 +335,6 @@ public function retrieveCashBalanceTransaction($parentId, $id, $params = null, $ return $this->request('get', $this->buildPath('/v1/customers/%s/cash_balance_transactions/%s', $parentId, $id), $params, $opts); } - /** - * Retrieve the entitlement summary for a customer. - * - * @param string $parentId - * @param null|array $params - * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts - * - * @throws \Stripe\Exception\ApiErrorException if the request fails - * - * @return \Stripe\CustomerEntitlementSummary - */ - public function retrieveEntitlementSummary($parentId, $params = null, $opts = null) - { - return $this->request('get', $this->buildPath('/v1/customers/%s/entitlement_summary', $parentId), $params, $opts); - } - /** * Retrieves a PaymentMethod object for a given Customer. * diff --git a/lib/Service/Entitlements/ActiveEntitlementService.php b/lib/Service/Entitlements/ActiveEntitlementService.php new file mode 100644 index 000000000..92bc1df84 --- /dev/null +++ b/lib/Service/Entitlements/ActiveEntitlementService.php @@ -0,0 +1,29 @@ + + */ + public function all($params = null, $opts = null) + { + return $this->requestCollection('get', '/v1/entitlements/active_entitlements', $params, $opts); + } +} diff --git a/lib/Service/Entitlements/EntitlementsServiceFactory.php b/lib/Service/Entitlements/EntitlementsServiceFactory.php index 6bd1171ea..74deb812a 100644 --- a/lib/Service/Entitlements/EntitlementsServiceFactory.php +++ b/lib/Service/Entitlements/EntitlementsServiceFactory.php @@ -7,6 +7,7 @@ /** * Service factory class for API resources in the Entitlements namespace. * + * @property ActiveEntitlementService $activeEntitlements * @property FeatureService $features */ class EntitlementsServiceFactory extends \Stripe\Service\AbstractServiceFactory @@ -15,6 +16,7 @@ class EntitlementsServiceFactory extends \Stripe\Service\AbstractServiceFactory * @var array */ private static $classMap = [ + 'activeEntitlements' => ActiveEntitlementService::class, 'features' => FeatureService::class, ]; diff --git a/lib/Util/ObjectTypes.php b/lib/Util/ObjectTypes.php index 89b4af4a5..e35e82ec7 100644 --- a/lib/Util/ObjectTypes.php +++ b/lib/Util/ObjectTypes.php @@ -52,11 +52,11 @@ class ObjectTypes \Stripe\Customer::OBJECT_NAME => \Stripe\Customer::class, \Stripe\CustomerBalanceTransaction::OBJECT_NAME => \Stripe\CustomerBalanceTransaction::class, \Stripe\CustomerCashBalanceTransaction::OBJECT_NAME => \Stripe\CustomerCashBalanceTransaction::class, - \Stripe\CustomerEntitlement::OBJECT_NAME => \Stripe\CustomerEntitlement::class, - \Stripe\CustomerEntitlementSummary::OBJECT_NAME => \Stripe\CustomerEntitlementSummary::class, \Stripe\CustomerSession::OBJECT_NAME => \Stripe\CustomerSession::class, \Stripe\Discount::OBJECT_NAME => \Stripe\Discount::class, \Stripe\Dispute::OBJECT_NAME => \Stripe\Dispute::class, + \Stripe\Entitlements\ActiveEntitlement::OBJECT_NAME => \Stripe\Entitlements\ActiveEntitlement::class, + \Stripe\Entitlements\ActiveEntitlementSummary::OBJECT_NAME => \Stripe\Entitlements\ActiveEntitlementSummary::class, \Stripe\Entitlements\Feature::OBJECT_NAME => \Stripe\Entitlements\Feature::class, \Stripe\EphemeralKey::OBJECT_NAME => \Stripe\EphemeralKey::class, \Stripe\Event::OBJECT_NAME => \Stripe\Event::class, From bbc880859155b93f4e97ca07660dc8c7a460daf0 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 21 Mar 2024 16:06:36 +0000 Subject: [PATCH 11/14] Update generated code for v893 --- OPENAPI_VERSION | 2 +- lib/Entitlements/Feature.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 2a8d82d13..25faf1f3d 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v892 \ No newline at end of file +v893 \ No newline at end of file diff --git a/lib/Entitlements/Feature.php b/lib/Entitlements/Feature.php index 3c2f05b64..4368ae841 100644 --- a/lib/Entitlements/Feature.php +++ b/lib/Entitlements/Feature.php @@ -13,6 +13,7 @@ * @property bool $active Inactive features cannot be attached to new products and will not be returned from the features list endpoint. * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode. * @property string $lookup_key A unique key you provide as your own system identifier. This may be up to 80 characters. + * @property null|\Stripe\StripeObject $metadata Set of 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 string $name The feature's name, for your own purpose, not meant to be displayable to the customer. */ class Feature extends \Stripe\ApiResource From 31364dba5df31615123f75cbca5c0591a01060a4 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 21 Mar 2024 17:06:15 +0000 Subject: [PATCH 12/14] Update generated code for v894 --- OPENAPI_VERSION | 2 +- lib/ErrorObject.php | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 25faf1f3d..c785a51ef 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v893 \ No newline at end of file +v894 \ No newline at end of file diff --git a/lib/ErrorObject.php b/lib/ErrorObject.php index 87650e290..481bf6726 100644 --- a/lib/ErrorObject.php +++ b/lib/ErrorObject.php @@ -91,6 +91,10 @@ class ErrorObject extends StripeObject const CODE_EXPIRED_CARD = 'expired_card'; const CODE_FINANCIAL_CONNECTIONS_ACCOUNT_INACTIVE = 'financial_connections_account_inactive'; const CODE_FINANCIAL_CONNECTIONS_NO_SUCCESSFUL_TRANSACTION_REFRESH = 'financial_connections_no_successful_transaction_refresh'; + const CODE_FORWARDING_API_INACTIVE = 'forwarding_api_inactive'; + const CODE_FORWARDING_API_INVALID_PARAMETER = 'forwarding_api_invalid_parameter'; + const CODE_FORWARDING_API_UPSTREAM_CONNECTION_ERROR = 'forwarding_api_upstream_connection_error'; + const CODE_FORWARDING_API_UPSTREAM_CONNECTION_TIMEOUT = 'forwarding_api_upstream_connection_timeout'; const CODE_GIFT_CARD_BALANCE_INSUFFICIENT = 'gift_card_balance_insufficient'; const CODE_GIFT_CARD_CODE_EXISTS = 'gift_card_code_exists'; const CODE_GIFT_CARD_INACTIVE = 'gift_card_inactive'; From be851ce3ef439513a11fd4e5e261ce66d5a2850a Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 21 Mar 2024 18:00:24 +0000 Subject: [PATCH 13/14] Update generated code for v895 --- OPENAPI_VERSION | 2 +- lib/PaymentMethod.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index c785a51ef..da340eef4 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v894 \ No newline at end of file +v895 \ No newline at end of file diff --git a/lib/PaymentMethod.php b/lib/PaymentMethod.php index 79303df55..1d2965f59 100644 --- a/lib/PaymentMethod.php +++ b/lib/PaymentMethod.php @@ -40,6 +40,7 @@ * @property null|\Stripe\StripeObject $link * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode. * @property null|\Stripe\StripeObject $metadata Set of 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|\Stripe\StripeObject $mobilepay * @property null|\Stripe\StripeObject $multibanco * @property null|\Stripe\StripeObject $oxxo * @property null|\Stripe\StripeObject $p24 @@ -90,6 +91,7 @@ class PaymentMethod extends ApiResource const TYPE_KLARNA = 'klarna'; const TYPE_KONBINI = 'konbini'; const TYPE_LINK = 'link'; + const TYPE_MOBILEPAY = 'mobilepay'; const TYPE_MULTIBANCO = 'multibanco'; const TYPE_OXXO = 'oxxo'; const TYPE_P24 = 'p24'; From 4de927136ffe5c1deb724e64baea9615e8b01ff8 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 21 Mar 2024 20:51:11 +0000 Subject: [PATCH 14/14] Update generated code for v896 --- OPENAPI_VERSION | 2 +- lib/Service/QuoteService.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index da340eef4..62a99e0ea 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v895 \ No newline at end of file +v896 \ No newline at end of file diff --git a/lib/Service/QuoteService.php b/lib/Service/QuoteService.php index 513477a3f..68de00364 100644 --- a/lib/Service/QuoteService.php +++ b/lib/Service/QuoteService.php @@ -230,7 +230,8 @@ public function markStale($id, $params = null, $opts = null) } /** - * Download the PDF for a finalized quote. + * Download the PDF for a finalized quote. Explanation for special handling can be + * found here. * * @param string $id * @param callable $readBodyChunkCallable