Class: SolidusBolt::Transactions::AuthorizeService
- Inherits:
-
BaseService
- Object
- BaseService
- BaseService
- SolidusBolt::Transactions::AuthorizeService
- Defined in:
- app/services/solidus_bolt/transactions/authorize_service.rb
Instance Attribute Summary collapse
-
#auto_capture ⇒ Object
readonly
Returns the value of attribute auto_capture.
-
#create_bolt_account ⇒ Object
readonly
Returns the value of attribute create_bolt_account.
-
#credit_card ⇒ Object
readonly
Returns the value of attribute credit_card.
-
#order ⇒ Object
readonly
Returns the value of attribute order.
-
#repeat ⇒ Object
readonly
Returns the value of attribute repeat.
Attributes inherited from BaseService
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(order:, create_bolt_account:, credit_card:, payment_method:, auto_capture: false, repeat: false) ⇒ AuthorizeService
constructor
A new instance of AuthorizeService.
Methods inherited from BaseService
Constructor Details
#initialize(order:, create_bolt_account:, credit_card:, payment_method:, auto_capture: false, repeat: false) ⇒ AuthorizeService
Returns a new instance of AuthorizeService.
8 9 10 11 12 13 14 15 |
# File 'app/services/solidus_bolt/transactions/authorize_service.rb', line 8 def initialize(order:, create_bolt_account:, credit_card:, payment_method:, auto_capture: false, repeat: false) @order = order @create_bolt_account = create_bolt_account @credit_card = credit_card @auto_capture = auto_capture @repeat = repeat super end |
Instance Attribute Details
#auto_capture ⇒ Object (readonly)
Returns the value of attribute auto_capture.
6 7 8 |
# File 'app/services/solidus_bolt/transactions/authorize_service.rb', line 6 def auto_capture @auto_capture end |
#create_bolt_account ⇒ Object (readonly)
Returns the value of attribute create_bolt_account.
6 7 8 |
# File 'app/services/solidus_bolt/transactions/authorize_service.rb', line 6 def create_bolt_account @create_bolt_account end |
#credit_card ⇒ Object (readonly)
Returns the value of attribute credit_card.
6 7 8 |
# File 'app/services/solidus_bolt/transactions/authorize_service.rb', line 6 def credit_card @credit_card end |
#order ⇒ Object (readonly)
Returns the value of attribute order.
6 7 8 |
# File 'app/services/solidus_bolt/transactions/authorize_service.rb', line 6 def order @order end |
#repeat ⇒ Object (readonly)
Returns the value of attribute repeat.
6 7 8 |
# File 'app/services/solidus_bolt/transactions/authorize_service.rb', line 6 def repeat @repeat end |
Instance Method Details
#call ⇒ Object
17 18 19 |
# File 'app/services/solidus_bolt/transactions/authorize_service.rb', line 17 def call end |