#.juchom

1 messages · Page 1 of 1 (latest)

fossil plazaBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

solemn solstice
#

Assuming you have end_behavior: 'release' set it'll release at the end of all the specified phases

turbid plover
#

And I just added a phase like in my first message

solemn solstice
#

The schedule creates the subscription

#

And then it'll release control once all phases have complete the specified iterations and/or end date is hit

turbid plover
#

I was expecting that

#

I'm probably missing something

solemn solstice
#

I suspect the phase defined on the schedule is still 'active'. You'd need to advance the clock again beyond that iteration

#

So if it's monthly cycle, advance it another month

turbid plover
#

I think I've done it

#

Let me advance one more month to make sure

solemn solstice
turbid plover
#

ok, advancing one more month the schedule is null with the api

#

I have to double check the sample from the doc

solemn solstice
#

Sure, let me know if you've any follow-ups

turbid plover
#

Here is how I defined my new Schedule :

[
    new SubscriptionSchedulePhaseOptions
    {
        Items =
        [
            new SubscriptionSchedulePhaseItemOptions
            {
                Price = schedule.Phases[0].Items[0].PriceId,
                Quantity = schedule.Phases[0].Items[0].Quantity,
            }

        ],
        StartDate = schedule.Phases[0].StartDate,
        EndDate = schedule.Phases[0].EndDate,
    },

    new SubscriptionSchedulePhaseOptions
    {
        Items =
        [
            new SubscriptionSchedulePhaseItemOptions
            {
                Price = schedule.Phases[0].Items[0].PriceId,
                Quantity = 5,
            }
        ],
        Iterations = 1,
        
    }
],
solemn solstice
#

Ok, and what's the issue?

turbid plover
#

My first phase is the current phase with the actual subscription parameter

solemn solstice
#

The schedule will release at the end of the 2nd defined phase there

turbid plover
#

Let me try

#

If I advance one month the quantity is set to 5 but the schedule is still here

solemn solstice
#

Ok, so you've advanced to the start of the 2nd phase and the quantity has reduced as per the phases defined. Yes?

turbid plover
#

And if I advance one more month, the schedule is now null

solemn solstice
#

Yep, and that's expected as I've explained

#

That's how that API works

#

It doesn't release until the end of all defined phases. Not at the beginning of the last phase (which seems was your expectation)

turbid plover
#

Ok, I would have expected it to clear the schedule as soon as the quantity was reduced

solemn solstice
#

Nope, doesn't work like that I'm afraid

turbid plover
#

It doesn't release until the end of all defined phases. Not at the beginning of the last phase (which seems was your expectation)
Exactly

solemn solstice
#

Let me know if you've any other questions

turbid plover
#

Ok, it's a bit more clear on how it behaves

#

I have to dig more

#

thanks