Class: SolidusBolt::Transactions::AuthorizeService

Inherits:
BaseService show all
Defined in:
app/services/solidus_bolt/transactions/authorize_service.rb

Instance Attribute Summary collapse

Attributes inherited from BaseService

#payment_method

Instance Method Summary collapse

Methods inherited from BaseService

call

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 = 
  @credit_card = credit_card
  @auto_capture = auto_capture
  @repeat = repeat
  super
end

Instance Attribute Details

#auto_captureObject (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_accountObject (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
end

#credit_cardObject (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

#orderObject (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

#repeatObject (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

#callObject



17
18
19
# File 'app/services/solidus_bolt/transactions/authorize_service.rb', line 17

def call
  authorize
end