Class: BillingLogic::CommandBuilders::AggregateWordBuilder
- Inherits:
-
BasicBuilder
- Object
- BasicBuilder
- BillingLogic::CommandBuilders::AggregateWordBuilder
- Extended by:
- BuilderHelpers
- Defined in:
- lib/billing_logic/command_builders/command_builders.rb
Class Method Summary collapse
Methods included from BuilderHelpers
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, :price => nil, :frequency => 1, :period => nil}) ⇒ Object
168 169 170 171 172 173 |
# File 'lib/billing_logic/command_builders/command_builders.rb', line 168 def create_recurring_payment_commands(products, opts = {:paid_until_date => Date.current, :price => nil, :frequency => 1, :period => nil}) ActionObject.new(opts.merge(:action => :add_bundle, :products => products, :starts_on => opts[:paid_until_date], :when => time.now)) end |