Class: SpreeAvatax::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/spree_avatax/config.rb

Class Attribute Summary collapse

Class Attribute Details

.company_codeObject

Returns the value of attribute company_code.



6
7
8
# File 'lib/spree_avatax/config.rb', line 6

def company_code
  @company_code
end

.passwordObject

Returns the value of attribute password.



5
6
7
# File 'lib/spree_avatax/config.rb', line 5

def password
  @password
end

.sales_invoice_cancel_error_handlerObject

Returns the value of attribute sales_invoice_cancel_error_handler.



13
14
15
# File 'lib/spree_avatax/config.rb', line 13

def sales_invoice_cancel_error_handler
  @sales_invoice_cancel_error_handler
end

.sales_invoice_commit_error_handlerObject

Returns the value of attribute sales_invoice_commit_error_handler.



12
13
14
# File 'lib/spree_avatax/config.rb', line 12

def sales_invoice_commit_error_handler
  @sales_invoice_commit_error_handler
end

.sales_invoice_generate_error_handlerObject

These error handlers should be objects that respond to “call” and accept an order and an exception as arguments. This allows you to ignore certain errors or handle them in specific ways.



11
12
13
# File 'lib/spree_avatax/config.rb', line 11

def sales_invoice_generate_error_handler
  @sales_invoice_generate_error_handler
end

.service_urlObject

Returns the value of attribute service_url.



7
8
9
# File 'lib/spree_avatax/config.rb', line 7

def service_url
  @service_url
end

.usernameObject

Returns the value of attribute username.



4
5
6
# File 'lib/spree_avatax/config.rb', line 4

def username
  @username
end