Skip to content

Commit

Permalink
Merge pull request #1444 from stripe/latest-codegen-master
Browse files Browse the repository at this point in the history
API Updates
  • Loading branch information
richardm-stripe authored Feb 23, 2023
2 parents 7e9aca1 + e4f0fbc commit 259467c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
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

0 comments on commit 259467c

Please sign in to comment.