Class: Softlayer::Billing::Info

Inherits:
Entity show all
Defined in:
lib/softlayer/billing/info.rb,
lib/softlayer/billing/info/ach.rb,
lib/softlayer/billing/info/cycle.rb

Defined Under Namespace

Classes: Ach, Cycle, Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Billing_Info'

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Model

all, all_request_for, create, find, #init_headers, parse, process_message, #request, request, service_name, #service_name, #to_hash, #to_softlayer

Methods included from Model::Operations

extended, #filter, included, #limit, #mask, #request_headers

Instance Attribute Details

#accountObject

Returns the value of attribute account.



26
27
28
# File 'lib/softlayer/billing/info.rb', line 26

def 
  @account
end

#account_idObject

Returns the value of attribute account_id.



7
8
9
# File 'lib/softlayer/billing/info.rb', line 7

def 
  @account_id
end

#ach_informationObject

Returns the value of attribute ach_information.



27
28
29
# File 'lib/softlayer/billing/info.rb', line 27

def ach_information
  @ach_information
end

#ach_information_countObject

Returns the value of attribute ach_information_count.



25
26
27
# File 'lib/softlayer/billing/info.rb', line 25

def ach_information_count
  @ach_information_count
end

#anniversary_day_of_monthObject

Returns the value of attribute anniversary_day_of_month.



8
9
10
# File 'lib/softlayer/billing/info.rb', line 8

def anniversary_day_of_month
  @anniversary_day_of_month
end

#card_account_numberObject

Returns the value of attribute card_account_number.



9
10
11
# File 'lib/softlayer/billing/info.rb', line 9

def 
  @card_account_number
end

#card_expiration_monthObject

Returns the value of attribute card_expiration_month.



10
11
12
# File 'lib/softlayer/billing/info.rb', line 10

def card_expiration_month
  @card_expiration_month
end

#card_expiration_yearObject

Returns the value of attribute card_expiration_year.



11
12
13
# File 'lib/softlayer/billing/info.rb', line 11

def card_expiration_year
  @card_expiration_year
end

#card_nicknameObject

Returns the value of attribute card_nickname.



12
13
14
# File 'lib/softlayer/billing/info.rb', line 12

def card_nickname
  @card_nickname
end

#card_typeObject

Returns the value of attribute card_type.



13
14
15
# File 'lib/softlayer/billing/info.rb', line 13

def card_type
  @card_type
end

#card_verification_numberObject

Returns the value of attribute card_verification_number.



14
15
16
# File 'lib/softlayer/billing/info.rb', line 14

def card_verification_number
  @card_verification_number
end

#create_dateObject

Returns the value of attribute create_date.



15
16
17
# File 'lib/softlayer/billing/info.rb', line 15

def create_date
  @create_date
end

#currencyObject

Returns the value of attribute currency.



28
29
30
# File 'lib/softlayer/billing/info.rb', line 28

def currency
  @currency
end

#current_billing_cycleObject

Returns the value of attribute current_billing_cycle.



29
30
31
# File 'lib/softlayer/billing/info.rb', line 29

def current_billing_cycle
  @current_billing_cycle
end

#idObject

Returns the value of attribute id.



16
17
18
# File 'lib/softlayer/billing/info.rb', line 16

def id
  @id
end

#last_bill_dateObject

Returns the value of attribute last_bill_date.



30
31
32
# File 'lib/softlayer/billing/info.rb', line 30

def last_bill_date
  @last_bill_date
end

#last_four_payment_card_digitsObject

Returns the value of attribute last_four_payment_card_digits.



17
18
19
# File 'lib/softlayer/billing/info.rb', line 17

def last_four_payment_card_digits
  @last_four_payment_card_digits
end

#last_payment_dateObject

Returns the value of attribute last_payment_date.



18
19
20
# File 'lib/softlayer/billing/info.rb', line 18

def last_payment_date
  @last_payment_date
end

#modify_dateObject

Returns the value of attribute modify_date.



19
20
21
# File 'lib/softlayer/billing/info.rb', line 19

def modify_date
  @modify_date
end

#next_bill_dateObject

Returns the value of attribute next_bill_date.



31
32
33
# File 'lib/softlayer/billing/info.rb', line 31

def next_bill_date
  @next_bill_date
end

#payment_termsObject

Returns the value of attribute payment_terms.



20
21
22
# File 'lib/softlayer/billing/info.rb', line 20

def payment_terms
  @payment_terms
end

#percent_discount_onetimeObject

Returns the value of attribute percent_discount_onetime.



21
22
23
# File 'lib/softlayer/billing/info.rb', line 21

def percent_discount_onetime
  @percent_discount_onetime
end

#percent_discount_recurringObject

Returns the value of attribute percent_discount_recurring.



22
23
24
# File 'lib/softlayer/billing/info.rb', line 22

def percent_discount_recurring
  @percent_discount_recurring
end

#spare_pool_amountObject

Returns the value of attribute spare_pool_amount.



23
24
25
# File 'lib/softlayer/billing/info.rb', line 23

def spare_pool_amount
  @spare_pool_amount
end

#vat_idObject

Returns the value of attribute vat_id.



24
25
26
# File 'lib/softlayer/billing/info.rb', line 24

def vat_id
  @vat_id
end

Instance Method Details

#get_accountObject



33
34
35
# File 'lib/softlayer/billing/info.rb', line 33

def 
  request(:get_account, Softlayer::Account)
end

#get_ach_informationObject



37
38
39
# File 'lib/softlayer/billing/info.rb', line 37

def get_ach_information
  request(:get_ach_information, Array[Softlayer::Billing::Info::Ach])
end

#get_currencyObject



41
42
43
# File 'lib/softlayer/billing/info.rb', line 41

def get_currency
  request(:get_currency, Softlayer::Billing::Currency)
end

#get_current_billing_cycleObject



45
46
47
# File 'lib/softlayer/billing/info.rb', line 45

def get_current_billing_cycle
  request(:get_current_billing_cycle, Softlayer::Billing::Info::Cycle)
end

#get_last_bill_dateObject



49
50
51
# File 'lib/softlayer/billing/info.rb', line 49

def get_last_bill_date
  request(:get_last_bill_date, DateTime)
end

#get_next_bill_dateObject



53
54
55
# File 'lib/softlayer/billing/info.rb', line 53

def get_next_bill_date
  request(:get_next_bill_date, DateTime)
end

#get_objectObject



57
58
59
# File 'lib/softlayer/billing/info.rb', line 57

def get_object
  request(:get_object, Softlayer::Billing::Info)
end