Skip to content

Commit

Permalink
Merge upstream and update generated code for v1314
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Oct 18, 2024
2 parents 9d1874b + 9a342aa commit ed1bc9e
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1313
v1314
2 changes: 1 addition & 1 deletion lib/V2/Billing/MeterEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
*/
class MeterEvent extends \Stripe\ApiResource
{
const OBJECT_NAME = 'billing.meter_event';
const OBJECT_NAME = 'v2.billing.meter_event';
}
2 changes: 1 addition & 1 deletion lib/V2/Billing/MeterEventAdjustment.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/
class MeterEventAdjustment extends \Stripe\ApiResource
{
const OBJECT_NAME = 'billing.meter_event_adjustment';
const OBJECT_NAME = 'v2.billing.meter_event_adjustment';

const STATUS_COMPLETE = 'complete';
const STATUS_PENDING = 'pending';
Expand Down
2 changes: 1 addition & 1 deletion lib/V2/Billing/MeterEventSession.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
*/
class MeterEventSession extends \Stripe\ApiResource
{
const OBJECT_NAME = 'billing.meter_event_session';
const OBJECT_NAME = 'v2.billing.meter_event_session';
}
13 changes: 7 additions & 6 deletions tests/Stripe/BaseStripeClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ public function testRawRequestWithStripeContextOption()
public function testV2GetRequest()
{
$this->curlClientStub->method('executeRequestWithRetries')
->willReturn(['{"object": "billing.meter_event_session"}', 200, []])
->willReturn(['{"object": "v2.billing.meter_event_session"}', 200, []])
;

$this->curlClientStub->expects(static::once())
Expand Down Expand Up @@ -446,7 +446,7 @@ public function testV2GetRequest()
public function testV2PostRequest()
{
$this->curlClientStub->method('executeRequestWithRetries')
->willReturn(['{"object": "billing.meter_event_session"}', 200, []])
->willReturn(['{"object": "v2.billing.meter_event_session"}', 200, []])
;

$this->curlClientStub->expects(static::once())
Expand Down Expand Up @@ -475,7 +475,7 @@ public function testV2PostRequest()
public function testV2PostRequestWithEmptyParams()
{
$this->curlClientStub->method('executeRequestWithRetries')
->willReturn(['{"object": "billing.meter_event_session"}', 200, []])
->willReturn(['{"object": "v2.billing.meter_event_session"}', 200, []])
;

$this->curlClientStub->expects(static::once())
Expand Down Expand Up @@ -777,7 +777,7 @@ public function testV2OverridesPreviewVersionIfPassedInRawRequestOptions()
public function testV2OverridesPreviewVersionIfPassedInRequestOptions()
{
$this->curlClientStub->method('executeRequestWithRetries')
->willReturn(['{"object": "billing.meter_event_session"}', 200, []])
->willReturn(['{"object": "v2.billing.meter_event_session"}', 200, []])
;

$this->curlClientStub->expects(static::once())
Expand All @@ -802,7 +802,7 @@ public function testV2OverridesPreviewVersionIfPassedInRequestOptions()
public function testV1AndV2Request()
{
$this->curlClientStub->method('executeRequestWithRetries')
->willReturnOnConsecutiveCalls(['{"object": "billing.meter_event_session"}', 200, []], ['{"object": "billing.meter_event"}', 200, []])
->willReturnOnConsecutiveCalls(['{"object": "v2.billing.meter_event_session"}', 200, []], ['{"object": "billing.meter_event"}', 200, []])
;

$this->curlClientStub
Expand All @@ -816,7 +816,8 @@ public function testV1AndV2Request()
$this->assertContains('Stripe-Version: ' . ApiVersion::CURRENT, $opts[\CURLOPT_HTTPHEADER]);

return true;
}), MOCK_URL . '/v1/billing/meter_event/bmes_123',
}),
MOCK_URL . '/v1/billing/meter_event/bmes_123',
])
;

Expand Down

0 comments on commit ed1bc9e

Please sign in to comment.