Class: TransactionOptions

Inherits:
JSONable show all
Defined in:
lib/Entities/transaction_options.rb

Instance Method Summary collapse

Methods inherited from JSONable

#from_json!, #to_h, #to_json

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