The createBaseEntitlement method in the plugin "Entitlement API" accepts LocalDate params. Shouldn't it accept LocalDateTime instead?

19 views
Skip to first unread message

genn...@gmail.com

unread,
Mar 4, 2025, 8:39:45 AM3/4/25
to Kill Bill users mailing-list
Hi all,
I need to use plugin API createBaseEntitlement to create a subscription from a plugin and I noticed that it accepts LocalDate parameters for entitlement effective date and billing effective date. This is different from the killbill API that accepts date and time for those parameters. 

Also, the subscription that is created will have the "start date" set at the day indicated in the call but with time set based on the account's reference date (so if I pass today's date the resulting start date could be in the future).

Also I notices that if I pass null values for those parameters then "now" is used (with time).

This all seems a little inconsistent, or am I doing something wrong?

Killbill version is 0.24.10
killbill-oss-parent version is 0.146.35

Are these correct?

Thank you very much,
Gennaro


stephane brossier

unread,
Mar 5, 2025, 2:52:26 AM3/5/25
to genn...@gmail.com, Kill Bill users mailing-list
Hi Gennaro,

You can use this api as well, this is what Kill Bill endpoint is using under the hood.

Stéphane


--
You received this message because you are subscribed to the Google Groups "Kill Bill users mailing-list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to killbilling-us...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/killbilling-users/c9073e64-0cc2-4add-a517-814fba3ae582n%40googlegroups.com.

genn...@gmail.com

unread,
Mar 5, 2025, 5:53:56 AM3/5/25
to Kill Bill users mailing-list
Thank you very much Stephan!
Reply all
Reply to author
Forward
0 new messages