Skip to content

Commit

Permalink
Update generated code for v338
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed May 11, 2023
1 parent 5d3ac62 commit 34b3ba1
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 2 deletions.
1 change: 1 addition & 0 deletions init.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@
require __DIR__ . '/lib/Product.php';
require __DIR__ . '/lib/PromotionCode.php';
require __DIR__ . '/lib/Quote.php';
require __DIR__ . '/lib/QuoteLine.php';
require __DIR__ . '/lib/QuotePhase.php';
require __DIR__ . '/lib/Radar/EarlyFraudWarning.php';
require __DIR__ . '/lib/Radar/ValueList.php';
Expand Down
2 changes: 1 addition & 1 deletion lib/FinancialConnections/Account.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public function refreshAccount($params = null, $opts = null)
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
* @return \Stripe\Collection<\Stripe\FinancialConnections\FinancialConnectionsAccountInferredBalance> the list of financial connections account inferred balances
* @return \Stripe\Collection<\Stripe\FinancialConnections\InferredBalance> the list of financial connections account inferred balances
*/
public static function allInferredBalances($id, $params = null, $opts = null)
{
Expand Down
35 changes: 35 additions & 0 deletions lib/QuoteLine.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?php

// File generated from our OpenAPI spec

namespace Stripe;

/**
* A quote line defines a set of changes that will be applied upon quote
* acceptance.
*
* @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 null|\Stripe\StripeObject[] $actions A list of items the customer is being quoted for.
* @property null|\Stripe\StripeObject $applies_to Details to identify the subscription schedule the quote line applies to.
* @property null|string $billing_cycle_anchor For a point-in-time operation, this attribute lets you set or update whether the subscription's billing cycle anchor is reset at the <code>starts_at</code> timestamp.
* @property null|\Stripe\StripeObject $ends_at Details to identify the end of the time range modified by the proposed change. If not supplied, the quote line is considered a point-in-time operation that only affects the exact timestamp at <code>starts_at</code>, and a restricted set of attributes is supported on the quote line.
* @property null|string $proration_behavior Changes to how Stripe handles prorations during the quote line's time span. Affects if and how prorations are created when a future phase starts.
* @property null|string $set_schedule_end Timestsamp helper to end the underlying schedule early, based on the acompanying line's start or end date.
* @property null|\Stripe\StripeObject $starts_at Details to identify the earliest timestamp where the proposed change should take effect.
* @property null|\Stripe\StripeObject $trial_settings Settings related to subscription trials.
*/
class QuoteLine extends ApiResource
{
const OBJECT_NAME = 'quote_line';

const BILLING_CYCLE_ANCHOR_AUTOMATIC = 'automatic';
const BILLING_CYCLE_ANCHOR_LINE_STARTS_AT = 'line_starts_at';

const PRORATION_BEHAVIOR_ALWAYS_INVOICE = 'always_invoice';
const PRORATION_BEHAVIOR_CREATE_PRORATIONS = 'create_prorations';
const PRORATION_BEHAVIOR_NONE = 'none';

const SET_SCHEDULE_END_LINE_ENDS_AT = 'line_ends_at';
const SET_SCHEDULE_END_LINE_STARTS_AT = 'line_starts_at';
}
2 changes: 1 addition & 1 deletion lib/Service/QuoteService.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function allLineItems($id, $params = null, $opts = null)
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
* @return \Stripe\Collection<\Stripe\Quote>
* @return \Stripe\Collection<\Stripe\QuoteLine>
*/
public function allLines($id, $params = null, $opts = null)
{
Expand Down
1 change: 1 addition & 0 deletions lib/Util/ObjectTypes.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,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\QuoteLine::OBJECT_NAME => \Stripe\QuoteLine::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,
Expand Down

0 comments on commit 34b3ba1

Please sign in to comment.