#Stealth-subscription

1 messages · Page 1 of 1 (latest)

hard kettle
#

Hi! Give me a few minutes to look into this.

warm gull
#

thanks

#

Should I create a propration_behavior on schedule phaes or on scheduleupdateoptions?

#

Both have prorationbehavior property

#
{
    ProrationBehavior = "PB1",
    EndBehavior = "release",
    Phases = new List<SubscriptionSchedulePhaseOptions>
    {
        new SubscriptionSchedulePhaseOptions
        {
        },
        new SubscriptionSchedulePhaseOptions
        {
            ProrationBehavior = "PB2",
        }
    }
};```
shrewd condor
#

Well, that depends. What are you trying to do?

warm gull
#

I am trying to send invoice after all phases are complete. When last phase (second) is finished invoice should be created with prorated changes.

shrewd condor
#

Then you'd pass the proration_behaviour parameter in that specific phase

warm gull
#

What would happen if I passed it in ScehduleUpdateOptions?

#

What would be different from passing it in specific phase?

shrewd condor
warm gull
#

I assume invoice would be created when schedule is released. Behavior would be the same as if I did that in last phase. Am I wrong?

shrewd condor
#

The top-level parameter is only applied if the current phases is impacted

warm gull
#

Are changes prorated at the beginning of the phase or in the end? StartDate vs EndDate?

shrewd condor
#

Prorations would be created and applied as soon as the changes are made, so start_date

warm gull
#

thanks