Class: Gateway::SalesOption

Inherits:
Object
  • Object
show all
Defined in:
lib/gateway/SalesOption.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#AntiFraudServiceCodeObject

Returns the value of attribute AntiFraudServiceCode.



7
8
9
# File 'lib/gateway/SalesOption.rb', line 7

def AntiFraudServiceCode
  @AntiFraudServiceCode
end

#CurrencyIsoObject

Returns the value of attribute CurrencyIso.



11
12
13
# File 'lib/gateway/SalesOption.rb', line 11

def CurrencyIso
  @CurrencyIso
end

#IsAntiFraudEnabledObject

Returns the value of attribute IsAntiFraudEnabled.



5
6
7
# File 'lib/gateway/SalesOption.rb', line 5

def IsAntiFraudEnabled
  @IsAntiFraudEnabled
end

#RetriesObject

Returns the value of attribute Retries.



9
10
11
# File 'lib/gateway/SalesOption.rb', line 9

def Retries
  @Retries
end

Instance Method Details

#to_jsonObject



13
14
15
16
17
# File 'lib/gateway/SalesOption.rb', line 13

def to_json
  hash = {}
  instance_variables.each { |var| hash[var.to_s.delete('@')] = instance_variable_get(var) }
  hash
end