Class: TransactionOptions
- Defined in:
- lib/Entities/transaction_options.rb
Instance Method Summary collapse
-
#AddShippingAddressForCustomer=(addShippingAddressForCustomer) ⇒ Object
bool type.
-
#GenerateToken=(generateToken) ⇒ Object
bool type.
-
#GenerateTokenOnSuccess=(generateTokenOnSuccess) ⇒ Object
bool type.
-
#initialize(h = nil) ⇒ TransactionOptions
constructor
A new instance of TransactionOptions.
- #Operation=(operation) ⇒ Object
-
#UseDefaultCustomerPaymentMethod=(useDefaultCustomerPaymentMethod) ⇒ Object
bool type.
Methods inherited from JSONable
Constructor Details
#initialize(h = nil) ⇒ TransactionOptions
Returns a new instance of TransactionOptions.
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/Entities/transaction_options.rb', line 4 def initialize(h = nil) if(h != nil) h.each { |k,v| propNameFormatted = k.to_s + "=" if(TransactionOptions.instance_methods(false).include?(propNameFormatted.to_sym)) public_send("#{k}=",v) end } end end |
Instance Method Details
#AddShippingAddressForCustomer=(addShippingAddressForCustomer) ⇒ Object
bool type
31 32 33 |
# File 'lib/Entities/transaction_options.rb', line 31 def AddShippingAddressForCustomer=(addShippingAddressForCustomer) #bool type @addShippingAddressForCustomer = addShippingAddressForCustomer end |
#GenerateToken=(generateToken) ⇒ Object
bool type
23 24 25 |
# File 'lib/Entities/transaction_options.rb', line 23 def GenerateToken=(generateToken) #bool type @generateToken = generateToken end |
#GenerateTokenOnSuccess=(generateTokenOnSuccess) ⇒ Object
bool type
27 28 29 |
# File 'lib/Entities/transaction_options.rb', line 27 def GenerateTokenOnSuccess=(generateTokenOnSuccess) #bool type @generateTokenOnSuccess = generateTokenOnSuccess end |
#Operation=(operation) ⇒ Object
39 40 41 |
# File 'lib/Entities/transaction_options.rb', line 39 def Operation=(operation) @operation = operation end |
#UseDefaultCustomerPaymentMethod=(useDefaultCustomerPaymentMethod) ⇒ Object
bool type
35 36 37 |
# File 'lib/Entities/transaction_options.rb', line 35 def UseDefaultCustomerPaymentMethod=(useDefaultCustomerPaymentMethod) #bool type @useDefaultCustomerPaymentMethod = useDefaultCustomerPaymentMethod end |