Class: Gateway::CreateInstantBuyDataRequest

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCreateInstantBuyDataRequest

Returns a new instance of CreateInstantBuyDataRequest.



21
22
23
# File 'lib/gateway/InstantBuyData/create_instant_buy_data_request.rb', line 21

def initialize
  @BillingAddress = BillingAddress.new
end

Instance Attribute Details

#BillingAddressObject

Returns the value of attribute BillingAddress.



17
18
19
# File 'lib/gateway/InstantBuyData/create_instant_buy_data_request.rb', line 17

def BillingAddress
  @BillingAddress
end

#BuyerKeyObject

Returns the value of attribute BuyerKey.



19
20
21
# File 'lib/gateway/InstantBuyData/create_instant_buy_data_request.rb', line 19

def BuyerKey
  @BuyerKey
end

#CreditCardBrandObject

Returns the value of attribute CreditCardBrand.



15
16
17
# File 'lib/gateway/InstantBuyData/create_instant_buy_data_request.rb', line 15

def CreditCardBrand
  @CreditCardBrand
end

#CreditCardNumberObject

Returns the value of attribute CreditCardNumber.



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

def CreditCardNumber
  @CreditCardNumber
end

#ExpMonthObject

Returns the value of attribute ExpMonth.



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

def ExpMonth
  @ExpMonth
end

#ExpYearObject

Returns the value of attribute ExpYear.



13
14
15
# File 'lib/gateway/InstantBuyData/create_instant_buy_data_request.rb', line 13

def ExpYear
  @ExpYear
end

#HolderNameObject

Returns the value of attribute HolderName.



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

def HolderName
  @HolderName
end

#IsOneDollarAuthEnabledObject

Returns the value of attribute IsOneDollarAuthEnabled.



3
4
5
# File 'lib/gateway/InstantBuyData/create_instant_buy_data_request.rb', line 3

def IsOneDollarAuthEnabled
  @IsOneDollarAuthEnabled
end

#SecurityCodeObject

Returns the value of attribute SecurityCode.



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

def SecurityCode
  @SecurityCode
end

Instance Method Details

#to_jsonObject



25
26
27
28
29
# File 'lib/gateway/InstantBuyData/create_instant_buy_data_request.rb', line 25

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