Class: Gateway::CreateBuyerRequest

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCreateBuyerRequest

Returns a new instance of CreateBuyerRequest.



13
14
15
# File 'lib/gateway/Person/create_buyer_request.rb', line 13

def initialize
  @AddressCollection = Array.new
end

Instance Attribute Details

#AddressCollectionObject

Returns the value of attribute AddressCollection.



3
4
5
# File 'lib/gateway/Person/create_buyer_request.rb', line 3

def AddressCollection
  @AddressCollection
end

#BuyerCategoryObject

Returns the value of attribute BuyerCategory.



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

def BuyerCategory
  @BuyerCategory
end

#BuyerReferenceObject

Returns the value of attribute BuyerReference.



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

def BuyerReference
  @BuyerReference
end

#CreateDateInMerchantObject

Returns the value of attribute CreateDateInMerchant.



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

def CreateDateInMerchant
  @CreateDateInMerchant
end

#LastBuyerUpdateInMerchantObject

Returns the value of attribute LastBuyerUpdateInMerchant.



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

def LastBuyerUpdateInMerchant
  @LastBuyerUpdateInMerchant
end

Instance Method Details

#to_jsonObject



17
18
19
20
21
# File 'lib/gateway/Person/create_buyer_request.rb', line 17

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