I'm trying to create a usage price history in KillBill. So I'm rolling time back and creating three catalogs for 2018-01-01, 2018-02-01, 2018-03-01.
Each of those catalogs have different usage price for the same plan.
And also second and third have an effectiveDateForExistingSubscriptions overwritten with corresponding dates 2018-02-01 and 2018-03-01.
So I'm expecting the usage sent on period (2018-01-01 - 2018-01-31) will have it's price of first catalog. And usage sent on period (2018-02-01 - 2018-02-28) will use price of second catalog. And all after 2018-03-01 will use price of last catalog.
But I see there is constant price of first catalog is used for all usages.
Here is a plan part of my first catalog:
<plan name="shotgun-awesome">
<product>Shotgun</product>
<finalPhase type="EVERGREEN">
<duration>
<unit>UNLIMITED</unit>
</duration>
<usages>
<usage name="usage_Shotgun" billingMode="IN_ARREAR" usageType="CONSUMABLE">
<billingPeriod>MONTHLY</billingPeriod>
<tiers>
<tier>
<blocks>
<tieredBlock>
<unit>shells</unit>
<size>1.0</size>
<prices>
<price>
<currency>EUR</currency>
<value>1</value>
</price>
</prices>
<max>1.0E9</max>
</tieredBlock>
</blocks>
</tier>
</tiers>
</usage>
</usages>
</finalPhase>
</plan>
Other are just the same unless have injected:
<effectiveDateForExistingSubscriptions>2011-02-01T00:00:00+00:00</effectiveDateForExistingSubscriptions>
<effectiveDateForExistingSubscriptions>2011-03-01T00:00:00+00:00</effectiveDateForExistingSubscriptions>
and changes values eg:
<value>2</value>
<value>3</value>
What could be wrong? Is KillBill even able to work that way?
I have 0.18 btw.
Thanks!
--
You received this message because you are subscribed to the Google Groups "Kill Bill developers mailing-list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to killbilling-d...@googlegroups.com.
To post to this group, send email to killbil...@googlegroups.com.
Visit this group at https://groups.google.com/group/killbilling-dev.
To view this discussion on the web visit https://groups.google.com/d/msgid/killbilling-dev/9ffb5e86-3967-48cf-b5a3-d405d2cbe6f1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.