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

Next major release changes #1392

Merged
merged 15 commits into from
Nov 16, 2022
Merged
Show file tree
Hide file tree
Changes from 11 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
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v203
v204
4 changes: 0 additions & 4 deletions init.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@
require __DIR__ . '/lib/LineItem.php';
require __DIR__ . '/lib/LoginLink.php';
require __DIR__ . '/lib/Mandate.php';
require __DIR__ . '/lib/Order.php';
require __DIR__ . '/lib/PaymentIntent.php';
require __DIR__ . '/lib/PaymentLink.php';
require __DIR__ . '/lib/PaymentMethod.php';
Expand All @@ -152,7 +151,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';
Expand Down Expand Up @@ -219,7 +217,6 @@
require __DIR__ . '/lib/Service/Issuing/DisputeService.php';
require __DIR__ . '/lib/Service/Issuing/TransactionService.php';
require __DIR__ . '/lib/Service/MandateService.php';
require __DIR__ . '/lib/Service/OrderService.php';
require __DIR__ . '/lib/Service/PaymentIntentService.php';
require __DIR__ . '/lib/Service/PaymentLinkService.php';
require __DIR__ . '/lib/Service/PaymentMethodService.php';
Expand All @@ -240,7 +237,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';
Expand Down
75 changes: 0 additions & 75 deletions lib/AlipayAccount.php

This file was deleted.

4 changes: 4 additions & 0 deletions lib/ApiOperations/Update.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ public static function update($id, $params = null, $opts = null)
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
* @return static the saved resource
*
* @deprecated The `save` method is deprecated and will be removed in a
* future major version of the library. Use the static method `update`
* on the resource instead.
*/
public function save($opts = null)
{
Expand Down
1 change: 0 additions & 1 deletion lib/LineItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
* @property string $description An arbitrary string attached to the object. Often useful for displaying to users. Defaults to product name.
* @property \Stripe\StripeObject[] $discounts The discounts applied to the line item.
* @property null|\Stripe\Price $price The price used to generate the line item.
* @property string|\Stripe\Product $product <p>The ID of the product for this line item.</p><p>This will always be the same as <code>price.product</code>.</p>
* @property null|int $quantity The quantity of products being purchased.
* @property \Stripe\StripeObject[] $taxes The taxes applied to the line item.
*/
Expand Down
122 changes: 0 additions & 122 deletions lib/Order.php

This file was deleted.

5 changes: 5 additions & 0 deletions lib/Refund.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
* 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 <a
* href="https://stripe.com/docs/api/credit_notes">Credit Notes</a>, which reduce
* overall tax liability because tax is correctly recalculated and apportioned to
* the related invoice.
*
ramya-stripe marked this conversation as resolved.
Show resolved Hide resolved
* Related guide: <a href="https://stripe.com/docs/refunds">Refunds</a>.
*
* @property string $id Unique identifier for the object.
Expand Down
41 changes: 0 additions & 41 deletions lib/SKU.php

This file was deleted.

4 changes: 0 additions & 4 deletions lib/Service/CoreServiceFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
* @property Issuing\IssuingServiceFactory $issuing
* @property MandateService $mandates
* @property OAuthService $oauth
* @property OrderService $orders
* @property PaymentIntentService $paymentIntents
* @property PaymentLinkService $paymentLinks
* @property PaymentMethodService $paymentMethods
Expand All @@ -52,7 +51,6 @@
* @property SetupIntentService $setupIntents
* @property ShippingRateService $shippingRates
* @property Sigma\SigmaServiceFactory $sigma
* @property SkuService $skus
* @property SourceService $sources
* @property SubscriptionItemService $subscriptionItems
* @property SubscriptionService $subscriptions
Expand Down Expand Up @@ -100,7 +98,6 @@ class CoreServiceFactory extends \Stripe\Service\AbstractServiceFactory
'issuing' => Issuing\IssuingServiceFactory::class,
'mandates' => MandateService::class,
'oauth' => OAuthService::class,
'orders' => OrderService::class,
'paymentIntents' => PaymentIntentService::class,
'paymentLinks' => PaymentLinkService::class,
'paymentMethods' => PaymentMethodService::class,
Expand All @@ -118,7 +115,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,
Expand Down
8 changes: 6 additions & 2 deletions lib/Service/Issuing/AuthorizationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ public function all($params = null, $opts = null)
* Approves a pending Issuing <code>Authorization</code> object. This request
* should be made within the timeout window of the <a
* href="/docs/issuing/controls/real-time-authorizations">real-time
* authorization</a> flow.
* authorization</a> flow. You can also respond directly to the webhook request to
* approve an authorization (preferred). More details can be found <a
* href="https://site-admin.stripe.com/docs/issuing/controls/real-time-authorizations#authorization-handling">here</a>.
*
* @param string $id
* @param null|array $params
Expand All @@ -46,7 +48,9 @@ public function approve($id, $params = null, $opts = null)
* Declines a pending Issuing <code>Authorization</code> object. This request
* should be made within the timeout window of the <a
* href="/docs/issuing/controls/real-time-authorizations">real time
* authorization</a> flow.
* authorization</a> flow. You can also respond directly to the webhook request to
* decline an authorization (preferred). More details can be found <a
* href="https://site-admin.stripe.com/docs/issuing/controls/real-time-authorizations#authorization-handling">here</a>.
*
* @param string $id
* @param null|array $params
Expand Down
Loading