Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(customer-type): Whitelist new params in customer controller (#2554)
## Context We currently only create Lago customers as **companies**, but there is a need to support both **companies** and **individuals**. This change is motivated by scenarios where customers may be a mix of B2B and B2C, and where external integrations require handling both **Contacts** and **Companies**. To address this, we are introducing a new field, `customer_type`, to distinguish whether a customer is a **company** or an **individual**. Existing customers will remain unaffected with `customer_type` set to the default `nil`. ## Description In this PR we're white-listing the new fields `lastname`, `firstname` and `customer_type` in `CustomersController`.
- Loading branch information