Skip to content

v0.4.0 - Refactor resource definitions and add missing resources#2

Merged
gerbal merged 5 commits intomainfrom
chore/generalize-methods
Nov 22, 2023
Merged

v0.4.0 - Refactor resource definitions and add missing resources#2
gerbal merged 5 commits intomainfrom
chore/generalize-methods

Conversation

@gerbal
Copy link
Copy Markdown

@gerbal gerbal commented Nov 21, 2023

This PR refactors resource method declaration into the resource use macro. Almost all endpoints have relatively generic behavior that is simple to generalize.

Changes:

  • refactor method declaration to specify generic methods in the initial resource use macro
  • cleanup methods matching chargebee v1 endpoints
  • add missing resources
  • add missing resource methods

@gerbal gerbal requested a review from a team November 21, 2023 21:22
Copy link
Copy Markdown

@sascha-wolf sascha-wolf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm gonna be honest. I glossed over this. If you want a more thorough review I feel I need an intro.

Are we planning on merging this upstream?

@gerbal
Copy link
Copy Markdown
Author

gerbal commented Nov 22, 2023

I'm happy to upstream this, though I've had PR open for 1 year to bring in some smaller changes.

This package is already published on hex.pm

@gerbal gerbal changed the title v0.4.0 - Update resource endpoints v0.4.0 - Refactor resource definitions and add missing resources Nov 22, 2023
@gerbal gerbal merged commit b7f37b1 into main Nov 22, 2023
@gerbal gerbal deleted the chore/generalize-methods branch November 22, 2023 15:32
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