-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Hi. Thanks for great work for the fenerum Api.
I have some idea for v2:
- Rename all classes in /src/API to be plural (like
Subscriptionsinstead ofSubscription); - Add entity classes to store data instead of arrays that will enable autocomplete etc.
So code will look like this:
$subscription = new Subscription();
$subscription->account = $localAccountCode;
$subscription->terms = $planTermId;
$subscription->collection_method = 'invoice';
$subscription->start_date = now()->endOfMonth()->toIso8601String();
$subscription->payment_terms = 14;
$fenerum->subscriptions()->createSubscription($subscription)
And it will be possible to write @return Subscription[] for Subscriptions::listSubscriptions() etc
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels