Skip to content

Commit

Permalink
Update generated code for v277
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Mar 23, 2023
1 parent 899f506 commit e4ef61b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v276
v277
20 changes: 20 additions & 0 deletions tests/Stripe/GeneratedExamplesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4010,4 +4010,24 @@ public function testUpdateWebhookEndpoint()
);
static::assertInstanceOf(\Stripe\WebhookEndpoint::class, $result);
}

public function testCreateFromCalculationTransaction()
{
$this->expectsRequest(
'post',
'/v1/tax/transactions/create_from_calculation'
);
$result = $this->client->tax->transactions->createFromCalculation(
['calculation' => 'xxx', 'reference' => 'yyy']
);
static::assertInstanceOf(\Stripe\Tax\Transaction::class, $result);
}

public function testListLineItemsCalculation()
{
$this->expectsRequest('get', '/v1/tax/calculations/xxx/line_items');
$result = $this->client->tax->calculations->allLineItems('xxx', []);
static::assertInstanceOf(\Stripe\Collection::class, $result);
static::assertInstanceOf(\Stripe\Tax\CalculationLineItem::class, $result->data[0]);
}
}

0 comments on commit e4ef61b

Please sign in to comment.