killbill-memoizeit
Changes
server/src/main/resources/SpyCarAdvanced.xml 57(+57 -0)
Details
diff --git a/catalog/src/test/resources/SpyCarAdvanced.xml b/catalog/src/test/resources/SpyCarAdvanced.xml
index 99eecee..be7c2c6 100644
--- a/catalog/src/test/resources/SpyCarAdvanced.xml
+++ b/catalog/src/test/resources/SpyCarAdvanced.xml
@@ -31,6 +31,11 @@
<currency>BTC</currency>
</currencies>
+ <units>
+ <unit name="gallons"/>
+ </units>
+
+
<products>
<product name="Standard">
<category>BASE</category>
@@ -40,6 +45,7 @@
<available>
<addonProduct>OilSlick</addonProduct>
<addonProduct>RemoteControl</addonProduct>
+ <addonProduct>Gas</addonProduct>
</available>
</product>
<product name="Super">
@@ -49,6 +55,7 @@
</included>
<available>
<addonProduct>RemoteControl</addonProduct>
+ <addonProduct>Gas</addonProduct>
</available>
</product>
<product name="OilSlick">
@@ -57,6 +64,9 @@
<product name="RemoteControl">
<category>ADD_ON</category>
</product>
+ <product name="Gas">
+ <category>ADD_ON</category>
+ </product>
</products>
<rules>
@@ -683,6 +693,52 @@
</recurring>
</finalPhase>
</plan>
+ <plan name="gas-monthly">
+ <product>Gas</product>
+ <finalPhase type="EVERGREEN">
+ <duration>
+ <unit>UNLIMITED</unit>
+ </duration>
+ <usages>
+ <usage name="gas-monthly-in-arrear" billingMode="IN_ARREAR" usageType="CONSUMABLE">
+ <billingPeriod>MONTHLY</billingPeriod>
+ <tiers>
+ <tier>
+ <blocks>
+ <tieredBlock>
+ <unit>gallons</unit>
+ <size>1</size>
+ <prices>
+ <price>
+ <currency>GBP</currency>
+ <value>1.95</value>
+ </price>
+ <price>
+ <currency>EUR</currency>
+ <value>2.95</value>
+ </price>
+ <price>
+ <currency>USD</currency>
+ <value>3.95</value>
+ </price>
+ <price>
+ <currency>JPY</currency>
+ <value>0.95</value>
+ </price>
+ <price>
+ <currency>BTC</currency>
+ <value>0.001</value>
+ </price>
+ </prices>
+ <max>100</max>
+ </tieredBlock>
+ </blocks>
+ </tier>
+ </tiers>
+ </usage>
+ </usages>
+ </finalPhase>
+ </plan>
</plans>
<priceLists>
<defaultPriceList name="DEFAULT">
@@ -693,6 +749,7 @@
<plan>super-monthly</plan>
<plan>remotecontrol-monthly</plan>
<plan>oilslick-monthly</plan>
+ <plan>gas-monthly</plan>
</plans>
</defaultPriceList>
<childPriceList name="SpecialDiscount">
server/src/main/resources/SpyCarAdvanced.xml 57(+57 -0)
diff --git a/server/src/main/resources/SpyCarAdvanced.xml b/server/src/main/resources/SpyCarAdvanced.xml
index 99eecee..be7c2c6 100644
--- a/server/src/main/resources/SpyCarAdvanced.xml
+++ b/server/src/main/resources/SpyCarAdvanced.xml
@@ -31,6 +31,11 @@
<currency>BTC</currency>
</currencies>
+ <units>
+ <unit name="gallons"/>
+ </units>
+
+
<products>
<product name="Standard">
<category>BASE</category>
@@ -40,6 +45,7 @@
<available>
<addonProduct>OilSlick</addonProduct>
<addonProduct>RemoteControl</addonProduct>
+ <addonProduct>Gas</addonProduct>
</available>
</product>
<product name="Super">
@@ -49,6 +55,7 @@
</included>
<available>
<addonProduct>RemoteControl</addonProduct>
+ <addonProduct>Gas</addonProduct>
</available>
</product>
<product name="OilSlick">
@@ -57,6 +64,9 @@
<product name="RemoteControl">
<category>ADD_ON</category>
</product>
+ <product name="Gas">
+ <category>ADD_ON</category>
+ </product>
</products>
<rules>
@@ -683,6 +693,52 @@
</recurring>
</finalPhase>
</plan>
+ <plan name="gas-monthly">
+ <product>Gas</product>
+ <finalPhase type="EVERGREEN">
+ <duration>
+ <unit>UNLIMITED</unit>
+ </duration>
+ <usages>
+ <usage name="gas-monthly-in-arrear" billingMode="IN_ARREAR" usageType="CONSUMABLE">
+ <billingPeriod>MONTHLY</billingPeriod>
+ <tiers>
+ <tier>
+ <blocks>
+ <tieredBlock>
+ <unit>gallons</unit>
+ <size>1</size>
+ <prices>
+ <price>
+ <currency>GBP</currency>
+ <value>1.95</value>
+ </price>
+ <price>
+ <currency>EUR</currency>
+ <value>2.95</value>
+ </price>
+ <price>
+ <currency>USD</currency>
+ <value>3.95</value>
+ </price>
+ <price>
+ <currency>JPY</currency>
+ <value>0.95</value>
+ </price>
+ <price>
+ <currency>BTC</currency>
+ <value>0.001</value>
+ </price>
+ </prices>
+ <max>100</max>
+ </tieredBlock>
+ </blocks>
+ </tier>
+ </tiers>
+ </usage>
+ </usages>
+ </finalPhase>
+ </plan>
</plans>
<priceLists>
<defaultPriceList name="DEFAULT">
@@ -693,6 +749,7 @@
<plan>super-monthly</plan>
<plan>remotecontrol-monthly</plan>
<plan>oilslick-monthly</plan>
+ <plan>gas-monthly</plan>
</plans>
</defaultPriceList>
<childPriceList name="SpecialDiscount">