diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3fab66c12..f8c7bb54f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,25 @@
# Changelog
+## 10.1.0 - 2022-12-06
+* [#1405](https://github.com/stripe/stripe-php/pull/1405) API Updates
+ * Add support for `flow` on `BillingPortal.Session`
+* [#1404](https://github.com/stripe/stripe-php/pull/1404) API Updates
+ * Remove support for resources `Order` and `Sku`
+ * Remove support for `all`, `cancel`, `create`, `list_line_items`, `reopen`, `retrieve`, `submit`, and `update` methods on resource `Order`
+ * Remove support for `all`, `create`, `delete`, `retrieve`, and `update` methods on resource `Sku`
+ * Add support for `custom_text` on `Checkout.Session` and `PaymentLink`
+ * Add support for `invoice_creation` and `invoice` on `Checkout.Session`
+ * Remove support for `product` on `LineItem`
+ * Add support for `latest_charge` on `PaymentIntent`
+ * Remove support for `charges` on `PaymentIntent`
+
+## 10.0.0 - 2022-11-16
+* [#1392](https://github.com/stripe/stripe-php/pull/1392) Next major release changes
+
+Breaking changes that arose during code generation of the library that we postponed for the next major version. For changes to the Stripe products, read more at https://stripe.com/docs/upgrades#2022-11-15.
+
+"⚠️" symbol highlights breaking changes.
+
## 9.9.0 - 2022-11-08
* [#1394](https://github.com/stripe/stripe-php/pull/1394) API Updates
* Add support for new values `eg_tin`, `ph_tin`, and `tr_tin` on enum `TaxId.type`
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index 976ca98c1..eaf5acec6 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v205
\ No newline at end of file
+v212
\ No newline at end of file
diff --git a/init.php b/init.php
index 5ab5c8078..412e35aa6 100644
--- a/init.php
+++ b/init.php
@@ -159,7 +159,6 @@
require __DIR__ . '/lib/SetupIntent.php';
require __DIR__ . '/lib/ShippingRate.php';
require __DIR__ . '/lib/Sigma/ScheduledQueryRun.php';
-require __DIR__ . '/lib/SKU.php';
require __DIR__ . '/lib/Source.php';
require __DIR__ . '/lib/SourceTransaction.php';
require __DIR__ . '/lib/Subscription.php';
@@ -254,7 +253,6 @@
require __DIR__ . '/lib/Service/SetupIntentService.php';
require __DIR__ . '/lib/Service/ShippingRateService.php';
require __DIR__ . '/lib/Service/Sigma/ScheduledQueryRunService.php';
-require __DIR__ . '/lib/Service/SkuService.php';
require __DIR__ . '/lib/Service/SourceService.php';
require __DIR__ . '/lib/Service/SubscriptionService.php';
require __DIR__ . '/lib/Service/SubscriptionItemService.php';
diff --git a/lib/AlipayAccount.php b/lib/AlipayAccount.php
deleted file mode 100644
index 1d6a5096f..000000000
--- a/lib/AlipayAccount.php
+++ /dev/null
@@ -1,75 +0,0 @@
-true if the object exists in live mode or the value false
if the object exists in test mode.
* @property null|string $locale The IETF language tag of the locale Customer Portal is displayed in. If blank or auto, the customer’s preferred_locales
or browser’s locale is used.
* @property null|string $on_behalf_of The account for which the session was created on behalf of. When specified, only subscriptions and invoices with this on_behalf_of
account appear in the portal. For more information, see the docs. Use the Accounts API to modify the on_behalf_of
account's branding settings, which the portal displays.
diff --git a/lib/Charge.php b/lib/Charge.php
index 3e265d8ed..8a084863a 100644
--- a/lib/Charge.php
+++ b/lib/Charge.php
@@ -53,7 +53,7 @@
* @property null|string $receipt_number This is the transaction number that appears on email receipts sent for this charge. This attribute will be null
until a receipt has been sent.
* @property null|string $receipt_url This is the URL to view the receipt for this charge. The receipt is kept up-to-date to the latest state of the charge, including any refunds. If the charge is for an Invoice, the receipt will be stylized as an Invoice receipt.
* @property bool $refunded Whether the charge has been fully refunded. If the charge is only partially refunded, this attribute will still be false.
- * @property \Stripe\Collection<\Stripe\Refund> $refunds A list of refunds that have been applied to the charge.
+ * @property null|\Stripe\Collection<\Stripe\Refund> $refunds A list of refunds that have been applied to the charge.
* @property null|string|\Stripe\Review $review ID of the review associated with this charge if one exists.
* @property null|\Stripe\StripeObject $shipping Shipping information for the charge.
* @property null|\Stripe\Account|\Stripe\BankAccount|\Stripe\Card|\Stripe\Source $source This is a legacy field that will be removed in the future. It contains the Source, Card, or BankAccount object used for the charge. For details about the payment method used for this charge, refer to payment_method
or payment_method_details
instead.
diff --git a/lib/Checkout/Session.php b/lib/Checkout/Session.php
index 7b44e30e7..75382129c 100644
--- a/lib/Checkout/Session.php
+++ b/lib/Checkout/Session.php
@@ -37,11 +37,14 @@
* @property null|\Stripe\StripeObject $consent_collection When set, provides configuration for the Checkout Session to gather active consent from customers.
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
* @property null|string $currency Three-letter ISO currency code, in lowercase. Must be a supported currency.
+ * @property \Stripe\StripeObject $custom_text
* @property null|string|\Stripe\Customer $customer The ID of the customer for this Session. For Checkout Sessions in payment
or subscription
mode, Checkout will create a new customer object based on information provided during the payment flow unless an existing customer was provided when the Session was created.
* @property null|string $customer_creation Configure whether a Checkout Session creates a Customer when the Checkout Session completes.
* @property null|\Stripe\StripeObject $customer_details The customer details including the customer's tax exempt status and the customer's tax IDs. Only the customer's email is present on Sessions in setup
mode.
* @property null|string $customer_email If provided, this value will be used when the Customer object is created. If not provided, customers will be asked to enter their email address. Use this parameter to prefill customer data if you already have an email on file. To access information about the customer once the payment flow is complete, use the customer
attribute.
* @property int $expires_at The timestamp at which the Checkout Session will expire.
+ * @property null|string|\Stripe\Invoice $invoice ID of the invoice created by the Checkout Session, if it exists.
+ * @property null|\Stripe\StripeObject $invoice_creation Details on the state of invoice creation for the Checkout Session.
* @property \Stripe\Collection<\Stripe\LineItem> $line_items The line items purchased by 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 null|string $locale The IETF language tag of the locale Checkout is displayed in. If blank or auto
, the browser's locale is used.
diff --git a/lib/Issuing/Authorization.php b/lib/Issuing/Authorization.php
index 8bc4a9a4a..1433edd9b 100644
--- a/lib/Issuing/Authorization.php
+++ b/lib/Issuing/Authorization.php
@@ -32,12 +32,12 @@
* @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|\Stripe\StripeObject $network_data Details about the authorization, such as identifiers, set by the card network.
* @property null|\Stripe\StripeObject $pending_request The pending authorization request. This field will only be non-null during an issuing_authorization.request
webhook.
- * @property \Stripe\StripeObject[] $request_history History of every time pending_request
was approved/denied, either by you directly or by Stripe (e.g. based on your spending_controls
). If the merchant changes the authorization by performing an incremental authorization, you can look at this field to see the previous requests for the authorization.
+ * @property \Stripe\StripeObject[] $request_history History of every time a pending_request
authorization was approved/declined, either by you directly or by Stripe (e.g. based on your spending_controls). If the merchant changes the authorization by performing an incremental authorization, you can look at this field to see the previous requests for the authorization. This field can be helpful in determining why a given authorization was approved/declined.
* @property string $status The current status of the authorization in its lifecycle.
* @property \Stripe\Issuing\Transaction[] $transactions List of transactions associated with this authorization.
* @property null|\Stripe\StripeObject $treasury Treasury details related to this authorization if it was created on a FinancialAccount.
* @property \Stripe\StripeObject $verification_data
- * @property null|string $wallet The digital wallet used for this authorization. One of apple_pay
, google_pay
, or samsung_pay
.
+ * @property null|string $wallet The digital wallet used for this transaction. One of apple_pay
, google_pay
, or samsung_pay
. Will populate as null
when no digital wallet was utilized.
*/
class Authorization extends \Stripe\ApiResource
{
diff --git a/lib/PaymentIntent.php b/lib/PaymentIntent.php
index 0f5b3cdb6..5fb6bca43 100644
--- a/lib/PaymentIntent.php
+++ b/lib/PaymentIntent.php
@@ -30,7 +30,6 @@
* @property null|int $canceled_at Populated when status
is canceled
, this is the time at which the PaymentIntent was canceled. Measured in seconds since the Unix epoch.
* @property null|string $cancellation_reason Reason for cancellation of this PaymentIntent, either user-provided (duplicate
, fraudulent
, requested_by_customer
, or abandoned
) or generated by Stripe internally (failed_invoice
, void_invoice
, or automatic
).
* @property string $capture_method Controls when the funds will be captured from the customer's account.
- * @property \Stripe\Collection<\Stripe\Charge> $charges Charges that were created by this PaymentIntent, if any.
* @property null|string $client_secret
The client secret of this PaymentIntent. Used for client-side retrieval using a publishable key.
The client secret can be used to complete a payment from your frontend. It should not be stored, logged, or exposed to anyone other than the customer. Make sure that you have TLS enabled on any page that includes the client secret.
Refer to our docs to accept a payment and learn about how client_secret
should be handled.
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. For more information, see the documentation.
* @property null|\Stripe\StripeObject $next_action If present, this property tells you what actions you need to take in order for your customer to fulfill a payment using the provided source.
diff --git a/lib/PaymentLink.php b/lib/PaymentLink.php
index d2fc6df63..5c3462e69 100644
--- a/lib/PaymentLink.php
+++ b/lib/PaymentLink.php
@@ -28,6 +28,7 @@
* @property string $billing_address_collection Configuration for collecting the customer's billing address.
* @property null|\Stripe\StripeObject $consent_collection When set, provides configuration to gather active consent from customers.
* @property string $currency Three-letter ISO currency code, in lowercase. Must be a supported currency.
+ * @property \Stripe\StripeObject $custom_text
* @property string $customer_creation Configuration for Customer creation during checkout.
* @property \Stripe\Collection<\Stripe\LineItem> $line_items The line items representing what is being sold.
* @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.
diff --git a/lib/Refund.php b/lib/Refund.php
index fd7eef280..0ddabfc4e 100644
--- a/lib/Refund.php
+++ b/lib/Refund.php
@@ -9,11 +9,6 @@
* been created but not yet refunded. Funds will be refunded to the credit or debit
* card that was originally charged.
*
- * Stripe Tax users with recurring payments and invoices can create Credit Notes, which reduce
- * overall tax liability because tax is correctly recalculated and apportioned to
- * the related invoice.
- *
* Related guide: Refunds.
*
* @property string $id Unique identifier for the object.
diff --git a/lib/SKU.php b/lib/SKU.php
deleted file mode 100644
index 09d6c85e5..000000000
--- a/lib/SKU.php
+++ /dev/null
@@ -1,41 +0,0 @@
-stock keeping units.
- * SKUs describe specific product variations, taking into account any combination
- * of: attributes, currency, and cost. For example, a product may be a T-shirt,
- * whereas a specific SKU represents the size: large
, color:
- * red
version of that shirt.
- *
- * Can also be used to manage inventory.
- *
- * @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 Whether the SKU is available for purchase.
- * @property \Stripe\StripeObject $attributes A dictionary of attributes and values for the attributes defined by the product. If, for example, a product's attributes are ["size", "gender"]
, a valid SKU has the following dictionary of attributes: {"size": "Medium", "gender": "Unisex"}
.
- * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
- * @property string $currency Three-letter ISO currency code, in lowercase. Must be a supported currency.
- * @property null|string $image The URL of an image for this SKU, meant to be displayable to the customer.
- * @property \Stripe\StripeObject $inventory
- * @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.
- * @property null|\Stripe\StripeObject $package_dimensions The dimensions of this SKU for shipping purposes.
- * @property int $price The cost of the item as a positive integer in the smallest currency unit (that is, 100 cents to charge $1.00, or 100 to charge ¥100, Japanese Yen being a zero-decimal currency).
- * @property string|\Stripe\Product $product The ID of the product this SKU is associated with. The product must be currently active.
- * @property int $updated Time at which the object was last updated. Measured in seconds since the Unix epoch.
- */
-class SKU extends ApiResource
-{
- const OBJECT_NAME = 'sku';
-
- use ApiOperations\All;
- use ApiOperations\Create;
- use ApiOperations\Delete;
- use ApiOperations\Retrieve;
- use ApiOperations\Update;
-}
diff --git a/lib/Service/CoreServiceFactory.php b/lib/Service/CoreServiceFactory.php
index 615c78e59..82a2e4a4b 100644
--- a/lib/Service/CoreServiceFactory.php
+++ b/lib/Service/CoreServiceFactory.php
@@ -56,7 +56,6 @@
* @property SetupIntentService $setupIntents
* @property ShippingRateService $shippingRates
* @property Sigma\SigmaServiceFactory $sigma
- * @property SkuService $skus
* @property SourceService $sources
* @property SubscriptionItemService $subscriptionItems
* @property SubscriptionService $subscriptions
@@ -126,7 +125,6 @@ class CoreServiceFactory extends \Stripe\Service\AbstractServiceFactory
'setupIntents' => SetupIntentService::class,
'shippingRates' => ShippingRateService::class,
'sigma' => Sigma\SigmaServiceFactory::class,
- 'skus' => SkuService::class,
'sources' => SourceService::class,
'subscriptionItems' => SubscriptionItemService::class,
'subscriptions' => SubscriptionService::class,
diff --git a/lib/Service/SkuService.php b/lib/Service/SkuService.php
deleted file mode 100644
index c00194ea3..000000000
--- a/lib/Service/SkuService.php
+++ /dev/null
@@ -1,95 +0,0 @@
-
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/skus', $params, $opts);
- }
-
- /**
- * Creates a new SKU associated with a product.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\SKU
- */
- public function create($params = null, $opts = null)
- {
- return $this->request('post', '/v1/skus', $params, $opts);
- }
-
- /**
- * Delete a SKU. Deleting a SKU is only possible until it has been used in an
- * order.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\SKU
- */
- public function delete($id, $params = null, $opts = null)
- {
- return $this->request('delete', $this->buildPath('/v1/skus/%s', $id), $params, $opts);
- }
-
- /**
- * Retrieves the details of an existing SKU. Supply the unique SKU identifier from
- * either a SKU creation request or from the product, and Stripe will return the
- * corresponding SKU information.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\SKU
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/skus/%s', $id), $params, $opts);
- }
-
- /**
- * Updates the specific SKU by setting the values of the parameters passed. Any
- * parameters not provided will be left unchanged.
- *
- * Note that a SKU’s attributes
are not editable. Instead, you would
- * need to deactivate the existing SKU and create a new one with the new attribute
- * values.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\SKU
- */
- public function update($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/skus/%s', $id), $params, $opts);
- }
-}
diff --git a/lib/StripeClient.php b/lib/StripeClient.php
index b66f871fa..41efd437d 100644
--- a/lib/StripeClient.php
+++ b/lib/StripeClient.php
@@ -56,7 +56,6 @@
* @property \Stripe\Service\SetupIntentService $setupIntents
* @property \Stripe\Service\ShippingRateService $shippingRates
* @property \Stripe\Service\Sigma\SigmaServiceFactory $sigma
- * @property \Stripe\Service\SkuService $skus
* @property \Stripe\Service\SourceService $sources
* @property \Stripe\Service\SubscriptionItemService $subscriptionItems
* @property \Stripe\Service\SubscriptionScheduleService $subscriptionSchedules
diff --git a/lib/Util/ApiVersion.php b/lib/Util/ApiVersion.php
index 7cd0170ae..9efa9d70e 100644
--- a/lib/Util/ApiVersion.php
+++ b/lib/Util/ApiVersion.php
@@ -6,5 +6,5 @@
class ApiVersion
{
- const CURRENT = '2022-08-01';
+ const CURRENT = '2022-11-15';
}
diff --git a/lib/Util/ObjectTypes.php b/lib/Util/ObjectTypes.php
index aaebcc77c..1a9cbe9ec 100644
--- a/lib/Util/ObjectTypes.php
+++ b/lib/Util/ObjectTypes.php
@@ -91,7 +91,6 @@ class ObjectTypes
\Stripe\SetupIntent::OBJECT_NAME => \Stripe\SetupIntent::class,
\Stripe\ShippingRate::OBJECT_NAME => \Stripe\ShippingRate::class,
\Stripe\Sigma\ScheduledQueryRun::OBJECT_NAME => \Stripe\Sigma\ScheduledQueryRun::class,
- \Stripe\SKU::OBJECT_NAME => \Stripe\SKU::class,
\Stripe\Source::OBJECT_NAME => \Stripe\Source::class,
\Stripe\SourceTransaction::OBJECT_NAME => \Stripe\SourceTransaction::class,
\Stripe\Subscription::OBJECT_NAME => \Stripe\Subscription::class,
diff --git a/tests/Stripe/GeneratedExamplesTest.php b/tests/Stripe/GeneratedExamplesTest.php
index dfc2d3fbb..994d3c2bb 100644
--- a/tests/Stripe/GeneratedExamplesTest.php
+++ b/tests/Stripe/GeneratedExamplesTest.php
@@ -228,68 +228,6 @@ public function testUpcomingInvoice()
static::assertInstanceOf(\Stripe\Invoice::class, $result);
}
- public function testCreateOrder()
- {
- $this->expectsRequest('post', '/v1/orders');
- $result = $this->client->orders->create(
- [
- 'description' => 'description',
- 'currency' => 'usd',
- 'line_items' => [['description' => 'my line item']],
- ]
- );
- static::assertInstanceOf(\Stripe\Order::class, $result);
- }
-
- public function testRetrieveOrder()
- {
- $this->expectsRequest('get', '/v1/orders/order_xyz');
- $result = $this->client->orders->retrieve('order_xyz', []);
- static::assertInstanceOf(\Stripe\Order::class, $result);
- }
-
- public function testUpdateOrder()
- {
- $this->expectsRequest('post', '/v1/orders/order_xyz');
- $result = $this->client->orders->update(
- 'order_xyz',
- ['metadata' => ['reference_number' => '123'], 'ip_address' => '0.0.0.0']
- );
- static::assertInstanceOf(\Stripe\Order::class, $result);
- }
-
- public function testCancelOrder()
- {
- $this->expectsRequest('post', '/v1/orders/order_xyz/cancel');
- $result = $this->client->orders->cancel('order_xyz', []);
- static::assertInstanceOf(\Stripe\Order::class, $result);
- }
-
- public function testListLineItemsOrder()
- {
- $this->expectsRequest('get', '/v1/orders/order_xyz/line_items');
- $result = $this->client->orders->allLineItems('order_xyz', []);
- static::assertInstanceOf(\Stripe\Collection::class, $result);
- static::assertInstanceOf(\Stripe\LineItem::class, $result->data[0]);
- }
-
- public function testReopenOrder()
- {
- $this->expectsRequest('post', '/v1/orders/order_xyz/reopen');
- $result = $this->client->orders->reopen('order_xyz', []);
- static::assertInstanceOf(\Stripe\Order::class, $result);
- }
-
- public function testSubmitOrder()
- {
- $this->expectsRequest('post', '/v1/orders/order_xyz/submit');
- $result = $this->client->orders->submit(
- 'order_xyz',
- ['expected_total' => 100]
- );
- static::assertInstanceOf(\Stripe\Order::class, $result);
- }
-
public function testCreatePaymentIntent()
{
$this->expectsRequest('post', '/v1/payment_intents');
@@ -2028,14 +1966,6 @@ public function testRetrieveMandate()
static::assertInstanceOf(\Stripe\Mandate::class, $result);
}
- public function testListOrder()
- {
- $this->expectsRequest('get', '/v1/orders');
- $result = $this->client->orders->all(['limit' => 3]);
- static::assertInstanceOf(\Stripe\Collection::class, $result);
- static::assertInstanceOf(\Stripe\Order::class, $result->data[0]);
- }
-
public function testListPaymentIntent()
{
$this->expectsRequest('get', '/v1/payment_intents');
@@ -2874,53 +2804,6 @@ public function testRetrieveScheduledQueryRun()
static::assertInstanceOf(\Stripe\Sigma\ScheduledQueryRun::class, $result);
}
- public function testListSku()
- {
- $this->expectsRequest('get', '/v1/skus');
- $result = $this->client->skus->all(['limit' => 3]);
- static::assertInstanceOf(\Stripe\Collection::class, $result);
- static::assertInstanceOf(\Stripe\SKU::class, $result->data[0]);
- }
-
- public function testCreateSku()
- {
- $this->expectsRequest('post', '/v1/skus');
- $result = $this->client->skus->create(
- [
- 'attributes' => ['size' => 'Medium', 'gender' => 'Unisex'],
- 'price' => 1500,
- 'currency' => 'usd',
- 'inventory' => ['type' => 'finite', 'quantity' => 500],
- 'product' => 'prod_xxxxxxxxxxxxx',
- ]
- );
- static::assertInstanceOf(\Stripe\SKU::class, $result);
- }
-
- public function testDeleteSku()
- {
- $this->expectsRequest('delete', '/v1/skus/sku_xxxxxxxxxxxxx');
- $result = $this->client->skus->delete('sku_xxxxxxxxxxxxx', []);
- static::assertInstanceOf(\Stripe\SKU::class, $result);
- }
-
- public function testRetrieveSku()
- {
- $this->expectsRequest('get', '/v1/skus/sku_xxxxxxxxxxxxx');
- $result = $this->client->skus->retrieve('sku_xxxxxxxxxxxxx', []);
- static::assertInstanceOf(\Stripe\SKU::class, $result);
- }
-
- public function testUpdateSku()
- {
- $this->expectsRequest('post', '/v1/skus/sku_xxxxxxxxxxxxx');
- $result = $this->client->skus->update(
- 'sku_xxxxxxxxxxxxx',
- ['metadata' => ['order_id' => '6735']]
- );
- static::assertInstanceOf(\Stripe\SKU::class, $result);
- }
-
public function testRetrieveSource()
{
$this->expectsRequest('get', '/v1/sources/src_xxxxxxxxxxxxx');
diff --git a/tests/Stripe/SKUTest.php b/tests/Stripe/SKUTest.php
deleted file mode 100644
index 54366d1f7..000000000
--- a/tests/Stripe/SKUTest.php
+++ /dev/null
@@ -1,88 +0,0 @@
-expectsRequest(
- 'get',
- '/v1/skus'
- );
- $resources = SKU::all();
- static::compatAssertIsArray($resources->data);
- static::assertInstanceOf(\Stripe\SKU::class, $resources->data[0]);
- }
-
- public function testIsRetrievable()
- {
- $this->expectsRequest(
- 'get',
- '/v1/skus/' . self::TEST_RESOURCE_ID
- );
- $resource = SKU::retrieve(self::TEST_RESOURCE_ID);
- static::assertInstanceOf(\Stripe\SKU::class, $resource);
- }
-
- public function testIsCreatable()
- {
- $this->expectsRequest(
- 'post',
- '/v1/skus'
- );
- $resource = SKU::create([
- 'currency' => 'usd',
- 'inventory' => [
- 'type' => 'finite',
- 'quantity' => 1,
- ],
- 'price' => 100,
- 'product' => 'prod_123',
- ]);
- static::assertInstanceOf(\Stripe\SKU::class, $resource);
- }
-
- public function testIsSaveable()
- {
- $resource = SKU::retrieve(self::TEST_RESOURCE_ID);
- $resource->metadata['key'] = 'value';
- $this->expectsRequest(
- 'post',
- '/v1/skus/' . $resource->id
- );
- $resource->save();
- static::assertInstanceOf(\Stripe\SKU::class, $resource);
- }
-
- public function testIsUpdatable()
- {
- $this->expectsRequest(
- 'post',
- '/v1/skus/' . self::TEST_RESOURCE_ID
- );
- $resource = SKU::update(self::TEST_RESOURCE_ID, [
- 'metadata' => ['key' => 'value'],
- ]);
- static::assertInstanceOf(\Stripe\SKU::class, $resource);
- }
-
- public function testIsDeletable()
- {
- $resource = SKU::retrieve(self::TEST_RESOURCE_ID);
- $this->expectsRequest(
- 'delete',
- '/v1/skus/' . $resource->id
- );
- $resource->delete();
- static::assertInstanceOf(\Stripe\SKU::class, $resource);
- }
-}
diff --git a/tests/Stripe/Service/SkuServiceTest.php b/tests/Stripe/Service/SkuServiceTest.php
deleted file mode 100644
index dd75c4b54..000000000
--- a/tests/Stripe/Service/SkuServiceTest.php
+++ /dev/null
@@ -1,91 +0,0 @@
-client = new \Stripe\StripeClient(['api_key' => 'sk_test_123', 'api_base' => MOCK_URL]);
- $this->service = new SkuService($this->client);
- }
-
- public function testAll()
- {
- $this->expectsRequest(
- 'get',
- '/v1/skus'
- );
- $resources = $this->service->all();
- static::compatAssertIsArray($resources->data);
- static::assertInstanceOf(\Stripe\SKU::class, $resources->data[0]);
- }
-
- public function testCreate()
- {
- $this->expectsRequest(
- 'post',
- '/v1/skus'
- );
- $resource = $this->service->create([
- 'currency' => 'usd',
- 'inventory' => [
- 'type' => 'finite',
- 'quantity' => 1,
- ],
- 'price' => 100,
- 'product' => 'prod_123',
- ]);
- static::assertInstanceOf(\Stripe\SKU::class, $resource);
- }
-
- public function testDelete()
- {
- $this->expectsRequest(
- 'delete',
- '/v1/skus/' . self::TEST_RESOURCE_ID
- );
- $resource = $this->service->delete(self::TEST_RESOURCE_ID);
- static::assertInstanceOf(\Stripe\SKU::class, $resource);
- static::assertTrue($resource->isDeleted());
- }
-
- public function testRetrieve()
- {
- $this->expectsRequest(
- 'get',
- '/v1/skus/' . self::TEST_RESOURCE_ID
- );
- $resource = $this->service->retrieve(self::TEST_RESOURCE_ID);
- static::assertInstanceOf(\Stripe\SKU::class, $resource);
- }
-
- public function testUpdate()
- {
- $this->expectsRequest(
- 'post',
- '/v1/skus/' . self::TEST_RESOURCE_ID
- );
- $resource = $this->service->update(self::TEST_RESOURCE_ID, [
- 'metadata' => ['key' => 'value'],
- ]);
- static::assertInstanceOf(\Stripe\SKU::class, $resource);
- }
-}