Module: SolidusAfterpay

Defined in:
lib/solidus_afterpay/engine.rb,
lib/solidus_afterpay/version.rb,
lib/solidus_afterpay/configuration.rb,
app/models/solidus_afterpay/gateway.rb,
app/models/solidus_afterpay/payment_method.rb,
app/models/solidus_afterpay/payment_source.rb,
app/services/solidus_afterpay/base_service.rb,
app/helpers/solidus_afterpay/afterpay_helper.rb,
app/presentes/solidus_afterpay/order_presenter.rb,
app/controllers/solidus_afterpay/base_controller.rb,
app/models/solidus_afterpay/user_agent_generator.rb,
app/models/solidus_afterpay/order_component_builder.rb,
app/controllers/solidus_afterpay/callbacks_controller.rb,
app/controllers/solidus_afterpay/checkouts_controller.rb,
app/presentes/solidus_afterpay/shipping_rate_presenter.rb,
lib/generators/solidus_afterpay/install/install_generator.rb,
app/services/solidus_afterpay/shipping_rate_builder_service.rb,
app/decorators/models/solidus_afterpay/spree/order_decorator.rb,
app/services/solidus_afterpay/update_order_addresses_service.rb,
app/controllers/solidus_afterpay/express_callbacks_controller.rb,
app/services/solidus_afterpay/update_order_attributes_service.rb,
app/decorators/controllers/solidus_afterpay/spree/orders_controller_decorator.rb,
app/decorators/controllers/solidus_afterpay/spree/checkout_controller_decorator.rb

Defined Under Namespace

Modules: AfterpayHelper, Generators, Spree Classes: BaseController, BaseService, CallbacksController, CheckoutsController, Configuration, Engine, ExpressCallbacksController, Gateway, OrderComponentBuilder, OrderPresenter, PaymentMethod, PaymentSource, ShippingRateBuilderService, ShippingRatePresenter, UpdateOrderAddressesService, UpdateOrderAttributesService, UserAgentGenerator

Constant Summary collapse

VERSION =
'0.3.0'

Class Method Summary collapse

Class Method Details

.api_base_controller_parent_classObject



38
39
40
41
42
# File 'lib/solidus_afterpay/configuration.rb', line 38

def api_base_controller_parent_class
  return ::Spree::Api::BaseController if configuration.use_solidus_api

  SolidusAfterpay::BaseController
end

.configurationObject Also known as: config



28
29
30
# File 'lib/solidus_afterpay/configuration.rb', line 28

def configuration
  @configuration ||= Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



34
35
36
# File 'lib/solidus_afterpay/configuration.rb', line 34

def configure
  yield configuration
end

.shipping_rate_builder_service_classObject

rubocop:disable Rails/Delegate



45
46
47
# File 'lib/solidus_afterpay/configuration.rb', line 45

def shipping_rate_builder_service_class
  configuration.shipping_rate_builder_service_class
end

.update_order_attributes_service_classObject



49
50
51
# File 'lib/solidus_afterpay/configuration.rb', line 49

def update_order_attributes_service_class
  configuration.update_order_attributes_service_class
end