module Reji::Prorates

Public Instance Methods

always_invoice() click to toggle source

Indicate that the plan change should always be invoiced.

# File lib/reji/concerns/prorates.rb, line 22
def always_invoice
  @proration_behavior = 'always_invoice'
end
no_prorate() click to toggle source

Indicate that the plan change should not be prorated.

# File lib/reji/concerns/prorates.rb, line 8
def no_prorate
  @proration_behavior = 'none'

  self
end
prorate() click to toggle source

Indicate that the plan change should be prorated.

# File lib/reji/concerns/prorates.rb, line 15
def prorate
  @proration_behavior = 'create_prorations'

  self
end
proration_behavior() click to toggle source

Determine the prorating behavior when updating the subscription.

# File lib/reji/concerns/prorates.rb, line 34
def proration_behavior
  @proration_behavior ||= 'create_prorations'
end
set_proration_behavior(value) click to toggle source

Set the prorating behavior.

# File lib/reji/concerns/prorates.rb, line 27
def set_proration_behavior(value)
  @proration_behavior = value

  self
end