-
-
Notifications
You must be signed in to change notification settings - Fork 888
Closed
Labels
Description
Write a test scenario (beatrix) to verify the following use case:
- Create account in
America/New_York, refTime=2024-04-12 08:22:28, currency=USD, bcd=13 - Create a Subscription with Plan='plan-b' (see catalog below) starting on
2024-04-12 08:22:28-> First invoice - Move the clock to
2024-04-13 08:22:28-> Second invoice - Issue other invoice run with target date =
2024-04-13
Input catalog:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<catalog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="CatalogSchema.xsd ">
<effectiveDate>1970-01-01T00:00:00Z</effectiveDate>
<catalogName>DefaultCatalog</catalogName>
<currencies>
<currency>USD</currency>
</currencies>
<units/>
<products>
<product name="DefaultProduct" prettyName="DefaultProduct">
<category>STANDALONE</category>
<included/>
<available/>
<limits/>
</product>
</products>
<rules>
<changePolicy>
<changePolicyCase>
<policy>IMMEDIATE</policy>
</changePolicyCase>
</changePolicy>
<changeAlignment/>
<cancelPolicy>
<cancelPolicyCase>
<policy>END_OF_TERM</policy>
</cancelPolicyCase>
</cancelPolicy>
<createAlignment/>
<billingAlignment/>
<priceList/>
</rules>
<plans>
<plan name="plan-b">
<product>DefaultProduct</product>
<recurringBillingMode>IN_ADVANCE</recurringBillingMode>
<initialPhases>
<phase type="TRIAL">
<duration>
<unit>DAYS</unit>
<number>1</number>
</duration>
<fixed>
<fixedPrice>
</fixedPrice>
</fixed>
<usages/>
</phase>
</initialPhases>
<finalPhase type="EVERGREEN">
<duration>
<unit>UNLIMITED</unit>
<number>-1</number>
</duration>
<recurring>
<billingPeriod>DAILY</billingPeriod>
<recurringPrice>
<price>
<currency>USD</currency>
<value>1.00</value>
</price>
</recurringPrice>
</recurring>
<usages/>
</finalPhase>
<plansAllowedInBundle>-1</plansAllowedInBundle>
</plan>
</plans>
<priceLists>
<defaultPriceList name="DEFAULT">
<plans>
<plan>plan-b</plan>
</plans>
</defaultPriceList>
</priceLists>
</catalog>