Class: BillingLogic::CommandBuilders::WordBuilder
- Inherits:
-
BasicBuilder
- Object
- BasicBuilder
- BillingLogic::CommandBuilders::WordBuilder
- Defined in:
- lib/billing_logic/command_builders/command_builders.rb
Class Method Summary collapse
Methods inherited from BasicBuilder
cancel_recurring_payment_commands, remove_product_from_payment_profile, time
Class Method Details
.create_recurring_payment_commands(products, opts = {:paid_until_date => Date.current}) ⇒ Object
156 157 158 159 160 161 |
# File 'lib/billing_logic/command_builders/command_builders.rb', line 156 def create_recurring_payment_commands(products, opts = {:paid_until_date => Date.current}) ActionObject.new(opts.merge(:action => :add, :products => products, :starts_on => opts[:paid_until_date], :when => time.now)) end |