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

Restore testCoreEventsGet generated test #1805

Merged
merged 2 commits into from
Jan 17, 2025
Merged

Conversation

jar-stripe
Copy link
Contributor

Why?

We have generated example tests that test service endpoints. \Stripe\V2\Event is an abstract base class for V2 events, and the return type of EventService.retrieve. Because the Event class was abstract, we could not include it in convertToStripeObject and therefore could not include this generated test.

What?

  • made v2 event class concrete, and changed convertToStripeObject to use it if we cannot find the identified event subclass
  • add comment on event class explaining its role
  • added generated test testCoreEventsGet

…e it if we cannot find the identified event subclass

added generated test testCoreEventsGet
@jar-stripe jar-stripe enabled auto-merge (squash) January 14, 2025 00:59
@jar-stripe jar-stripe merged commit e81186f into master Jan 17, 2025
22 checks passed
@jar-stripe jar-stripe deleted the jar/fix-php-event-test branch January 17, 2025 16:03
prathmesh-stripe pushed a commit that referenced this pull request Jan 23, 2025
* Update generated code (#1793)

* Update generated code for v1399

* Update generated code for v1409

* Update generated code for v1412

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>

* Bump version to 16.4.0

* Added pull request template (#1797)

* Add justfile, remove coveralls, and fix AUTOLOAD in CI (#1801)

* add justfile and tweak CI + readme

* debug test

* Debugging

* further debugging

* restore original composer json

* add more logging

* maybe fix ci

* Fix typo

* fix test naming and pass autoload directly to recipe as arugment

* Remove unused logline and fix typo

* restore composer

* remove extra log line

* update justfile

* add comments

* update ci

* revert to gh action

* ensure dependencies are installed for format and test recipes (#1802)

* Update generated code for v1439

* Update generated code for v1441

* Update generated code for v1441

* Update generated code for v1442

* Update generated code for v1443

* Update generated code for v1445

* Update generated code for v1446

* Update generated code for v1448

* Update generated code for v1449

* Update generated code for v1450

* Added CONTRIBUTING.md file (#1806)

* minor justfile fixes (#1807)

* made v2 event class concrete, and changed convertToStripeObject to use it if we cannot find the identified event subclass (#1805)

* Update generated code for v1454

* added CONTRIBUTING.md

* Update generated code for v1456

* Update generated code for v1457

* Update generated code for v1460

---------

Co-authored-by: stripe-openapi[bot] <105521251+stripe-openapi[bot]@users.noreply.github.com>
Co-authored-by: Jesse Rosalia <[email protected]>
Co-authored-by: David Brownman <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants