Skip to content

Commit

Permalink
Merge pull request #1445 from stripe/latest-codegen-beta
Browse files Browse the repository at this point in the history
API Updates for beta branch
  • Loading branch information
richardm-stripe authored Feb 24, 2023
2 parents 5ed372b + 38d5c02 commit 5a1c5f3
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 3 deletions.
1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
/build.php export-ignore
/CODE_OF_CONDUCT.md export-ignore
/examples export-ignore
/init.php export-ignore
/Makefile export-ignore
/phpdoc.dist.xml export-ignore
/phpstan-baseline.neon export-ignore
Expand Down
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,31 @@
# Changelog

## 10.7.0 - 2023-02-23
* [#1444](https://github.com/stripe/stripe-php/pull/1444) API Updates
* Add support for new value `igst` on enum `TaxRate.tax_type`

## 10.7.0-beta.1 - 2023-02-16
* [#1442](https://github.com/stripe/stripe-php/pull/1442) API Updates for beta branch
* Updated stable APIs to the latest version
* Add support for `currency_conversion` on `Checkout.Session`
* Add support for `limits` on `FinancialConnections.Session`
* Remove support for `reference` on `Tax.Calculation`

## 10.6.1 - 2023-02-21
* [#1443](https://github.com/stripe/stripe-php/pull/1443) Remove init.php from the list of ignored files

## 10.6.0 - 2023-02-16
* [#1441](https://github.com/stripe/stripe-php/pull/1441) API Updates
* Add support for `refund_payment` method on resource `Terminal.Reader`
* Add support for `custom_fields` on `Checkout.Session` and `PaymentLink`
* [#1236](https://github.com/stripe/stripe-php/pull/1236) subscription_proration_date not always presented in Invoice
* [#1431](https://github.com/stripe/stripe-php/pull/1431) Fix: Do not use unbounded version constraint for `actions/checkout`
* [#1436](https://github.com/stripe/stripe-php/pull/1436) Enhancement: Enable and configure `visibility_required` fixer
* [#1432](https://github.com/stripe/stripe-php/pull/1432) Enhancement: Update `actions/cache`
* [#1434](https://github.com/stripe/stripe-php/pull/1434) Fix: Remove parentheses
* [#1433](https://github.com/stripe/stripe-php/pull/1433) Enhancement: Run tests on PHP 8.2
* [#1438](https://github.com/stripe/stripe-php/pull/1438) Update .gitattributes

## 10.6.0-beta.1 - 2023-02-02
* [#1440](https://github.com/stripe/stripe-php/pull/1440) API Updates for beta branch
* Updated stable APIs to the latest version
Expand Down
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v226
v232
8 changes: 8 additions & 0 deletions lib/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,14 @@ class Event extends ApiResource
const BILLING_PORTAL_CONFIGURATION_UPDATED = 'billing_portal.configuration.updated';
const BILLING_PORTAL_SESSION_CREATED = 'billing_portal.session.created';
const CAPABILITY_UPDATED = 'capability.updated';
const CAPITAL_FINANCING_OFFER_ACCEPTED = 'capital.financing_offer.accepted';
const CAPITAL_FINANCING_OFFER_CANCELED = 'capital.financing_offer.canceled';
const CAPITAL_FINANCING_OFFER_CREATED = 'capital.financing_offer.created';
const CAPITAL_FINANCING_OFFER_EXPIRED = 'capital.financing_offer.expired';
const CAPITAL_FINANCING_OFFER_FULLY_REPAID = 'capital.financing_offer.fully_repaid';
const CAPITAL_FINANCING_OFFER_PAID_OUT = 'capital.financing_offer.paid_out';
const CAPITAL_FINANCING_OFFER_REJECTED = 'capital.financing_offer.rejected';
const CAPITAL_FINANCING_OFFER_REPLACEMENT_CREATED = 'capital.financing_offer.replacement_created';
const CAPITAL_FINANCING_TRANSACTION_CREATED = 'capital.financing_transaction.created';
const CASH_BALANCE_FUNDS_AVAILABLE = 'cash_balance.funds_available';
const CHARGE_CAPTURED = 'charge.captured';
Expand Down
2 changes: 1 addition & 1 deletion lib/Issuing/Card.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* @property null|string $replacement_reason The reason why the previous card needed to be replaced.
* @property null|\Stripe\StripeObject $shipping Where and how the card will be shipped.
* @property \Stripe\StripeObject $spending_controls
* @property string $status Whether authorizations can be approved on this card.
* @property string $status Whether authorizations can be approved on this card. May be blocked from activating cards depending on past-due Cardholder requirements. Defaults to <code>inactive</code>.
* @property string $type The type of the card.
* @property null|\Stripe\StripeObject $wallets Information relating to digital wallets (like Apple Pay and Google Pay).
*/
Expand Down
1 change: 1 addition & 0 deletions lib/TaxRate.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class TaxRate extends ApiResource

const TAX_TYPE_GST = 'gst';
const TAX_TYPE_HST = 'hst';
const TAX_TYPE_IGST = 'igst';
const TAX_TYPE_JCT = 'jct';
const TAX_TYPE_PST = 'pst';
const TAX_TYPE_QST = 'qst';
Expand Down
10 changes: 10 additions & 0 deletions tests/Stripe/GeneratedExamplesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1702,6 +1702,16 @@ public function testRetrieveInvoice()
static::assertInstanceOf(\Stripe\Invoice::class, $result);
}

public function testRetrieveInvoice2()
{
$this->expectsRequest('get', '/v1/invoices/in_xxxxxxxxxxxxx');
$result = $this->client->invoices->retrieve(
'in_xxxxxxxxxxxxx',
['expand' => ['customer']]
);
static::assertInstanceOf(\Stripe\Invoice::class, $result);
}

public function testUpdateInvoice()
{
$this->expectsRequest('post', '/v1/invoices/in_xxxxxxxxxxxxx');
Expand Down

0 comments on commit 5a1c5f3

Please sign in to comment.