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

API Updates for beta branch #1328

Merged
merged 3 commits into from
Jul 21, 2022
Merged
Show file tree
Hide file tree
Changes from all 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 @@
v166
v170
4 changes: 2 additions & 2 deletions init.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
require __DIR__ . '/lib/Product.php';
require __DIR__ . '/lib/PromotionCode.php';
require __DIR__ . '/lib/Quote.php';
require __DIR__ . '/lib/QuotePhaseConfiguration.php';
require __DIR__ . '/lib/QuotePhase.php';
require __DIR__ . '/lib/Radar/EarlyFraudWarning.php';
require __DIR__ . '/lib/Radar/ValueList.php';
require __DIR__ . '/lib/Radar/ValueListItem.php';
Expand Down Expand Up @@ -234,7 +234,7 @@
require __DIR__ . '/lib/Service/ProductService.php';
require __DIR__ . '/lib/Service/PromotionCodeService.php';
require __DIR__ . '/lib/Service/QuoteService.php';
require __DIR__ . '/lib/Service/QuotePhaseConfigurationService.php';
require __DIR__ . '/lib/Service/QuotePhaseService.php';
require __DIR__ . '/lib/Service/Radar/EarlyFraudWarningService.php';
require __DIR__ . '/lib/Service/Radar/ValueListService.php';
require __DIR__ . '/lib/Service/Radar/ValueListItemService.php';
Expand Down
2 changes: 2 additions & 0 deletions lib/Customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@
* @property null|\Stripe\CashBalance $cash_balance The current funds being held by Stripe on behalf of the customer. These funds can be applied towards payment intents with source "cash_balance".The settings[reconciliation_mode] field describes whether these funds are applied to such payment intents manually or automatically.
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
* @property null|string $currency Three-letter <a href="https://stripe.com/docs/currencies">ISO code for the currency</a> the customer can be charged in for recurring billing purposes.
* @property null|string $default_currency The default three-letter <a href="https://stripe.com/docs/currencies">ISO code for the currency</a> that the customer will be charged in for billing purposes.
* @property null|string|\Stripe\Account|\Stripe\AlipayAccount|\Stripe\BankAccount|\Stripe\BitcoinReceiver|\Stripe\Card|\Stripe\Source $default_source <p>ID of the default payment source for the customer.</p><p>If you are using payment methods created via the PaymentMethods API, see the <a href="https://stripe.com/docs/api/customers/object#customer_object-invoice_settings-default_payment_method">invoice_settings.default_payment_method</a> field instead.</p>
* @property null|bool $delinquent <p>When the customer's latest invoice is billed by charging automatically, <code>delinquent</code> is <code>true</code> if the invoice's latest charge failed. When the customer's latest invoice is billed by sending an invoice, <code>delinquent</code> is <code>true</code> if the invoice isn't paid by its due date.</p><p>If an invoice is marked uncollectible by <a href="https://stripe.com/docs/billing/automatic-collection">dunning</a>, <code>delinquent</code> doesn't get reset to <code>false</code>.</p>
* @property null|string $description An arbitrary string attached to the object. Often useful for displaying to users.
* @property null|\Stripe\Discount $discount Describes the current discount active on the customer, if there is one.
* @property null|string $email The customer's email address.
* @property \Stripe\StripeObject $invoice_credit_balance The current multi-currency balances, if any, being stored on the customer.If positive in a currency, the customer has a credit to apply to their next invoice denominated in that currency.If negative, the customer has an amount owed that will be added to their next invoice denominated in that currency. These balances do not refer to any unpaid invoices.They solely track amounts that have yet to be successfully applied to any invoice. A balance in a particular currency is only applied to any invoice as an invoice in that currency is finalized.
* @property null|string $invoice_prefix The prefix for the customer used to generate unique invoice numbers.
* @property \Stripe\StripeObject $invoice_settings
* @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.
Expand Down
2 changes: 1 addition & 1 deletion lib/QuotePhaseConfiguration.php → lib/QuotePhase.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
* @property null|bool $trial If set to true the entire phase is counted as a trial and the customer will not be charged for any recurring fees.
* @property null|int $trial_end When the trial ends within the phase.
*/
class QuotePhaseConfiguration extends ApiResource
class QuotePhase extends ApiResource
{
const OBJECT_NAME = 'quote_phase';

Expand Down
4 changes: 2 additions & 2 deletions lib/Service/CoreServiceFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
* @property PriceService $prices
* @property ProductService $products
* @property PromotionCodeService $promotionCodes
* @property QuotePhaseConfigurationService $quotePhaseConfigurations
* @property QuotePhaseService $quotePhases
* @property QuoteService $quotes
* @property Radar\RadarServiceFactory $radar
* @property RefundService $refunds
Expand Down Expand Up @@ -110,7 +110,7 @@ class CoreServiceFactory extends \Stripe\Service\AbstractServiceFactory
'prices' => PriceService::class,
'products' => ProductService::class,
'promotionCodes' => PromotionCodeService::class,
'quotePhaseConfigurations' => QuotePhaseConfigurationService::class,
'quotePhases' => QuotePhaseService::class,
'quotes' => QuoteService::class,
'radar' => Radar\RadarServiceFactory::class,
'refunds' => RefundService::class,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Stripe\Service;

class QuotePhaseConfigurationService extends \Stripe\Service\AbstractService
class QuotePhaseService extends \Stripe\Service\AbstractService
{
/**
* Returns a list of quote phases.
Expand All @@ -14,7 +14,7 @@ class QuotePhaseConfigurationService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
* @return \Stripe\Collection<\Stripe\QuotePhaseConfiguration>
* @return \Stripe\Collection<\Stripe\QuotePhase>
*/
public function all($params = null, $opts = null)
{
Expand Down Expand Up @@ -49,7 +49,7 @@ public function allLineItems($id, $params = null, $opts = null)
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
* @return \Stripe\QuotePhaseConfiguration
* @return \Stripe\QuotePhase
*/
public function retrieve($id, $params = null, $opts = null)
{
Expand Down
2 changes: 1 addition & 1 deletion lib/StripeClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
* @property \Stripe\Service\PriceService $prices
* @property \Stripe\Service\ProductService $products
* @property \Stripe\Service\PromotionCodeService $promotionCodes
* @property \Stripe\Service\QuotePhaseConfigurationService $quotePhaseConfigurations
* @property \Stripe\Service\QuotePhaseService $quotePhases
* @property \Stripe\Service\QuoteService $quotes
* @property \Stripe\Service\Radar\RadarServiceFactory $radar
* @property \Stripe\Service\RefundService $refunds
Expand Down
1 change: 1 addition & 0 deletions lib/SubscriptionItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
* @property int $quantity The <a href="https://stripe.com/docs/subscriptions/quantities">quantity</a> of the plan to which the customer should be subscribed.
* @property string $subscription The <code>subscription</code> this <code>subscription_item</code> belongs to.
* @property null|\Stripe\TaxRate[] $tax_rates The tax rates which apply to this <code>subscription_item</code>. When set, the <code>default_tax_rates</code> on the subscription do not apply to this <code>subscription_item</code>.
* @property null|\Stripe\StripeObject $trial Current trial configuration on this item.
*/
class SubscriptionItem extends ApiResource
{
Expand Down
2 changes: 1 addition & 1 deletion lib/Util/ObjectTypes.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class ObjectTypes
\Stripe\Product::OBJECT_NAME => \Stripe\Product::class,
\Stripe\PromotionCode::OBJECT_NAME => \Stripe\PromotionCode::class,
\Stripe\Quote::OBJECT_NAME => \Stripe\Quote::class,
\Stripe\QuotePhaseConfiguration::OBJECT_NAME => \Stripe\QuotePhaseConfiguration::class,
\Stripe\QuotePhase::OBJECT_NAME => \Stripe\QuotePhase::class,
\Stripe\Radar\EarlyFraudWarning::OBJECT_NAME => \Stripe\Radar\EarlyFraudWarning::class,
\Stripe\Radar\ValueList::OBJECT_NAME => \Stripe\Radar\ValueList::class,
\Stripe\Radar\ValueListItem::OBJECT_NAME => \Stripe\Radar\ValueListItem::class,
Expand Down