Skip to content

Commit

Permalink
Codegen for openapi v249
Browse files Browse the repository at this point in the history
  • Loading branch information
anniel-stripe committed Mar 9, 2023
1 parent 091aac9 commit 0d86481
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 36 deletions.
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\QuoteLine>
* @return \Stripe\Collection<\Stripe\Quote>
*/
public function allLines($id, $params = null, $opts = null)
{
Expand Down
15 changes: 0 additions & 15 deletions lib/Service/Tax/TransactionService.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,6 @@ public function allLineItems($id, $params = null, $opts = null)
return $this->requestCollection('get', $this->buildPath('/v1/tax/transactions/%s/line_items', $id), $params, $opts);
}

/**
* Lists Tax Transaction objects.
*
* @param null|array $params
* @param null|array|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
* @return \Stripe\Collection<\Stripe\Tax\Transaction>
*/
public function allTransactions($params = null, $opts = null)
{
return $this->requestCollection('get', '/v1/tax/transactions', $params, $opts);
}

/**
* Creates a Tax <code>Transaction</code> from a calculation.
*
Expand Down
2 changes: 1 addition & 1 deletion lib/SubscriptionSchedule.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,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 null|string|\Stripe\StripeObject $application ID of the Connect Application that created the schedule.
* @property null|\Stripe\StripeObject $applies_to Details to identify the subscription schedule the quote line applies to.
* @property null|\Stripe\StripeObject $applies_to
* @property null|string $billing_behavior Configures when the subscription schedule generates prorations for phase transitions. Possible values are <code>prorate_on_next_phase</code> or <code>prorate_up_front</code> with the default being <code>prorate_on_next_phase</code>. <code>prorate_on_next_phase</code> will apply phase changes and generate prorations at transition time.<code>prorate_up_front</code> will bill for all phases within the current billing cycle up front.
* @property null|int $canceled_at Time at which the subscription schedule was canceled. Measured in seconds since the Unix epoch.
* @property null|int $completed_at Time at which the subscription schedule was completed. Measured in seconds since the Unix epoch.
Expand Down
2 changes: 1 addition & 1 deletion lib/Tax/Calculation.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
* @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.
* @property int $tax_amount_exclusive The amount of tax to be collected on top of the line item prices.
* @property int $tax_amount_inclusive The amount of tax already included in the line item prices.
* @property \Stripe\StripeObject[] $tax_breakdown Breakdown of individual tax amounts that add up to the total.
* @property int $tax_date Timestamp of date at which the tax rules and rates in effect applies for the calculation.
* @property \Stripe\StripeObject[] $tax_summary Summary of individual tax amounts that add up to the total.
*/
class Calculation extends \Stripe\ApiResource
{
Expand Down
18 changes: 0 additions & 18 deletions lib/Tax/Transaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,22 +68,4 @@ public static function allLineItems($id, $params = null, $opts = null)

return $obj;
}

/**
* @param null|array $params
* @param null|array|string $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
* @return \Stripe\Collection<\Stripe\Tax\Transaction> list of TaxProductResourceTaxTransactions
*/
public static function allTransactions($params = null, $opts = null)
{
$url = static::classUrl();
list($response, $opts) = static::_staticRequest('get', $url, $params, $opts);
$obj = \Stripe\Util\Util::convertToStripeObject($response->json, $opts);
$obj->setLastResponse($response);

return $obj;
}
}

0 comments on commit 0d86481

Please sign in to comment.