Class: EffectiveOrdersMailerPreview

Inherits:
ActionMailer::Preview
  • Object
show all
Defined in:
lib/generators/templates/effective_orders_mailer_preview.rb

Overview

In Rails 4.1 and above, visit: localhost:3000/rails/mailers to see a preview of the following 3 emails:

Instance Method Summary collapse

Instance Method Details

#order_errorObject



54
55
56
# File 'lib/generators/templates/effective_orders_mailer_preview.rb', line 54

def order_error
  EffectiveOrders.mailer_klass.order_error(order: build_preview_order, error: 'Something did not work out')
end

#order_receipt_to_adminObject



6
7
8
# File 'lib/generators/templates/effective_orders_mailer_preview.rb', line 6

def order_receipt_to_admin
  EffectiveOrders.mailer_klass.order_receipt_to_admin(build_preview_order)
end

#order_receipt_to_buyerObject



10
11
12
# File 'lib/generators/templates/effective_orders_mailer_preview.rb', line 10

def order_receipt_to_buyer
  EffectiveOrders.mailer_klass.order_receipt_to_buyer(build_preview_order)
end

#payment_request_to_buyerObject



14
15
16
# File 'lib/generators/templates/effective_orders_mailer_preview.rb', line 14

def payment_request_to_buyer
  EffectiveOrders.mailer_klass.payment_request_to_buyer(build_preview_order)
end

#pending_order_invoice_to_buyerObject



18
19
20
# File 'lib/generators/templates/effective_orders_mailer_preview.rb', line 18

def pending_order_invoice_to_buyer
  EffectiveOrders.mailer_klass.pending_order_invoice_to_buyer(build_preview_order)
end

#subscription_canceledObject



38
39
40
# File 'lib/generators/templates/effective_orders_mailer_preview.rb', line 38

def subscription_canceled
  EffectiveOrders.mailer_klass.subscription_canceled(preview_customer)
end

#subscription_createdObject



30
31
32
# File 'lib/generators/templates/effective_orders_mailer_preview.rb', line 30

def subscription_created
  EffectiveOrders.mailer_klass.subscription_created(preview_customer)
end

#subscription_event_to_adminObject



50
51
52
# File 'lib/generators/templates/effective_orders_mailer_preview.rb', line 50

def subscription_event_to_admin
  EffectiveOrders.mailer_klass.subscription_event_to_admin(:subscription_updated, preview_customer)
end

#subscription_payment_failedObject



26
27
28
# File 'lib/generators/templates/effective_orders_mailer_preview.rb', line 26

def subscription_payment_failed
  EffectiveOrders.mailer_klass.subscription_payment_failed(preview_customer)
end

#subscription_payment_succeededObject



22
23
24
# File 'lib/generators/templates/effective_orders_mailer_preview.rb', line 22

def subscription_payment_succeeded
  EffectiveOrders.mailer_klass.subscription_payment_succeeded(preview_customer)
end

#subscription_trial_expiredObject



46
47
48
# File 'lib/generators/templates/effective_orders_mailer_preview.rb', line 46

def subscription_trial_expired
  EffectiveOrders.mailer_klass.subscription_trial_expired(preview_subscribable)
end

#subscription_trialingObject



42
43
44
# File 'lib/generators/templates/effective_orders_mailer_preview.rb', line 42

def subscription_trialing
  EffectiveOrders.mailer_klass.subscription_trialing(preview_subscribable)
end

#subscription_updatedObject



34
35
36
# File 'lib/generators/templates/effective_orders_mailer_preview.rb', line 34

def subscription_updated
  EffectiveOrders.mailer_klass.subscription_updated(preview_customer)
end