Skip to content

Implemented annotations for each entity#315

Open
tychokamphuis-aqqo wants to merge 1 commit intopicqer:mainfrom
tychokamphuis-aqqo:annotations
Open

Implemented annotations for each entity#315
tychokamphuis-aqqo wants to merge 1 commit intopicqer:mainfrom
tychokamphuis-aqqo:annotations

Conversation

@tychokamphuis-aqqo
Copy link
Copy Markdown

Description

This pull request introduces explicit property definitions for each entity in the codebase. Additionally, all entities have been updated with the correct fillable attributes based on the latest openapi.yml specification.

Details

Added property declarations for every entity to improve clarity and type safety.

Synced all entity fillable arrays with the current OpenAPI schema.

Ensures model definitions remain consistent with API contract changes.

Copy link
Copy Markdown
Member

@stephangroen stephangroen left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! I do want to flag some breaking changes introduced by the $fillable modifications:

Breaking changes

Fields removed from $fillable

Entity Removed field Impact
Subscription amount Setting amount on a Subscription will be silently ignored
Subscription discount Setting discount on a Subscription will be silently ignored
Subscription mergeable Setting mergeable on a Subscription will be silently ignored
Subscription prices_are_incl_tax Setting prices_are_incl_tax on a Subscription will be silently ignored
Subscription subscription_prices_are_incl_tax Setting subscription_prices_are_incl_tax on a Subscription will be silently ignored
Product product_type Setting product_type on a Product will be silently ignored
FinancialStatement update_journal_entries Setting update_journal_entries on a FinancialStatement will be silently ignored

Fields renamed in $fillable

Entity Old field New field Impact
DocumentStyle print_on_stationary print_on_stationery Code referencing print_on_stationary will silently stop working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants