Now when the user wants to change his base subscription (which is done by cancelling the old and creating a new subscription)
I tried with EntitlementActionPolicy and BillingActionPolicy, but the cancelledDate is set to the date of the last term when I use END_OF_TERM (As example, let´s say the last term was 2017-08-15 to 2017-09-15. If I cancel it today - 2017-09-25, it should run until 10-15, but the cancelled date is 09-15.)
What exactly does the "requestedDate" on cancelSubscription do?
The prices for the addons differ, depending on the base subscription, so a user with the base subscription "Starter" has to pay more for every usage than a user with "Power". I´m not sure whether this is possible by just changing the base subscription? (Currently there are three plans for every addon. And would it be possible to get the plan or product for the next term, when changing the subscription?)
> Are you billing in advance or in arrear?
In arrear, both the recurring prices for the base subscriptions and the usage prices for the addons.
Well, after looking into the SubscriptionResource.java and testing again today, it seems as if the problem I had with the requested date only appears when calling cancelSubscription with given policies. Calling cancelSubscription with requested date and null for the policies uses the requested date. Is this what it should do? If yes - why is there no cancelSubscription only with requested date?
I'm currently not using add-ons and I'm using in-advance billing. The only cancelPolicy that I have in my catalog is a default one, which is END_OF_TERM.
When I delete a subscription specifying no policy(using the API), it gets deleted immediately.
I get that Richard found a solution, but don't fully understand it. Should I explicitly specify the policy (END_OF_TERM) via the API in the "DELETE /subscription/{id}"? Or is there any way to use the default policy? I'm surely missing some config.
Thanks!
--
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-users+unsubscribe@googlegroups.com.
To post to this group, send email to killbilling-users@googlegroups.com.
Visit this group at https://groups.google.com/group/killbilling-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/killbilling-users/fbad29ef-fd03-46ab-aabe-247699da3f35%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<catalog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="CatalogSchema.xsd">
<effectiveDate>2018-01-03T00:00:00Z</effectiveDate>
<catalogName>test</catalogName>
<recurringBillingMode>IN_ADVANCE</recurringBillingMode>
<product name="test-product">
<category>BASE</category>
<included/>
<available/>
<limits/>
</product>
<plan name="test-product-Monthly"><product>test-product</product><initialPhases/><finalPhase type="EVERGREEN"><duration><unit>UNLIMITED</unit><number>-1</number></duration><recurring><billingPeriod>MONTHLY</billingPeriod><recurringPrice><price><currency>USD</currency><value>90.00</value></price></recurringPrice></recurring><usages/></finalPhase><plansAllowedInBundle>-1</plansAllowedInBundle></plan>
<rules>
<changePolicy>
<changePolicyCase>
<policy>END_OF_TERM</policy>
</changePolicyCase>
</changePolicy>
<changeAlignment>
<changeAlignmentCase>
<alignment>START_OF_BUNDLE</alignment>
</changeAlignmentCase>
</changeAlignment>
<cancelPolicy>
<cancelPolicyCase>
<policy>END_OF_TERM</policy>
</cancelPolicyCase>
</cancelPolicy>
<createAlignment>
<createAlignmentCase>
<alignment>START_OF_BUNDLE</alignment>
</createAlignmentCase>
</createAlignment>
<billingAlignment>
<billingAlignmentCase>
<alignment>ACCOUNT</alignment>
</billingAlignmentCase>
</billingAlignment>
<priceList>
<priceListCase>
<toPriceList>DEFAULT</toPriceList>
</priceListCase>
</priceList>
</rules>
