Slide 19
Slide 19 text
Stripe::SubscriptionSchedule.update(
sub_sched_id,
phases: [
{ plans: [
{ plan: TEAM_FIXED_PLAN_ID,
quantity: team_stripe_customer
.subscription.quantity }
],
start_date: sub_sched_phase.start_date,
end_date: sub_sched_phase.end_date },
{ plans: [
{ plan: TEAM_FIXED_PLAN_ID,
quantity: limit }
],
start_date:
Time.zone.now
.next_month.beginning_of_month.to_i }
],
prorate: false, renewal_behavior: 'release'
)