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 #1444

Merged
merged 1 commit into from
Feb 23, 2023
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 @@
v226
v232
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