Class: Softlayer::Billing::Invoice

Inherits:
Entity show all
Defined in:
lib/softlayer/billing/invoice.rb,
lib/softlayer/billing/invoice/tax.rb,
lib/softlayer/billing/invoice/item.rb,
lib/softlayer/billing/invoice/next.rb,
lib/softlayer/billing/invoice/item/tax.rb,
lib/softlayer/billing/invoice/tax/info.rb,
lib/softlayer/billing/invoice/tax/type.rb,
lib/softlayer/billing/invoice/receivable.rb,
lib/softlayer/billing/invoice/tax/status.rb,
lib/softlayer/billing/invoice/item/hardware.rb,
lib/softlayer/billing/invoice/item/tax/info.rb,
lib/softlayer/billing/invoice/receivable/payment.rb

Defined Under Namespace

Modules: Receivable, Tax Classes: Item, Next, Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Billing_Invoice'

Instance Attribute Summary collapse

Class Method 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.



39
40
41
# File 'lib/softlayer/billing/invoice.rb', line 39

def 
  @account
end

#account_idObject

Returns the value of attribute account_id.



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

def 
  @account_id
end

#address1Object

Returns the value of attribute address1.



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

def address1
  @address1
end

#address2Object

Returns the value of attribute address2.



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

def address2
  @address2
end

#amountObject

Returns the value of attribute amount.



40
41
42
# File 'lib/softlayer/billing/invoice.rb', line 40

def amount
  @amount
end

#brand_at_invoice_creationObject

Returns the value of attribute brand_at_invoice_creation.



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

def brand_at_invoice_creation
  @brand_at_invoice_creation
end

#cityObject

Returns the value of attribute city.



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

def city
  @city
end

#claimed_tax_exempt_tx_flagObject

Returns the value of attribute claimed_tax_exempt_tx_flag.



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

def claimed_tax_exempt_tx_flag
  @claimed_tax_exempt_tx_flag
end

#closed_dateObject

Returns the value of attribute closed_date.



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

def closed_date
  @closed_date
end

#company_nameObject

Returns the value of attribute company_name.



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

def company_name
  @company_name
end

#countryObject

Returns the value of attribute country.



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

def country
  @country
end

#create_dateObject

Returns the value of attribute create_date.



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

def create_date
  @create_date
end

#detailed_pdf_generated_flagObject

Returns the value of attribute detailed_pdf_generated_flag.



42
43
44
# File 'lib/softlayer/billing/invoice.rb', line 42

def detailed_pdf_generated_flag
  @detailed_pdf_generated_flag
end

#documents_generated_flagObject

Returns the value of attribute documents_generated_flag.



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

def documents_generated_flag
  @documents_generated_flag
end

#emailObject

Returns the value of attribute email.



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

def email
  @email
end

#ending_balanceObject

Returns the value of attribute ending_balance.



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

def ending_balance
  @ending_balance
end

#fax_phoneObject

Returns the value of attribute fax_phone.



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

def fax_phone
  @fax_phone
end

#first_nameObject

Returns the value of attribute first_name.



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

def first_name
  @first_name
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#invoice_top_level_item_countObject

Returns the value of attribute invoice_top_level_item_count.



35
36
37
# File 'lib/softlayer/billing/invoice.rb', line 35

def invoice_top_level_item_count
  @invoice_top_level_item_count
end

#invoice_top_level_itemsObject

Returns the value of attribute invoice_top_level_items.



43
44
45
# File 'lib/softlayer/billing/invoice.rb', line 43

def invoice_top_level_items
  @invoice_top_level_items
end

#invoice_total_amountObject

Returns the value of attribute invoice_total_amount.



44
45
46
# File 'lib/softlayer/billing/invoice.rb', line 44

def invoice_total_amount
  @invoice_total_amount
end

#invoice_total_one_time_amountObject

Returns the value of attribute invoice_total_one_time_amount.



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

def invoice_total_one_time_amount
  @invoice_total_one_time_amount
end

#invoice_total_one_time_tax_amountObject

Returns the value of attribute invoice_total_one_time_tax_amount.



46
47
48
# File 'lib/softlayer/billing/invoice.rb', line 46

def invoice_total_one_time_tax_amount
  @invoice_total_one_time_tax_amount
end

#invoice_total_pre_tax_amountObject

Returns the value of attribute invoice_total_pre_tax_amount.



47
48
49
# File 'lib/softlayer/billing/invoice.rb', line 47

def invoice_total_pre_tax_amount
  @invoice_total_pre_tax_amount
end

#invoice_total_recurring_amountObject

Returns the value of attribute invoice_total_recurring_amount.



48
49
50
# File 'lib/softlayer/billing/invoice.rb', line 48

def invoice_total_recurring_amount
  @invoice_total_recurring_amount
end

#invoice_total_recurring_tax_amountObject

Returns the value of attribute invoice_total_recurring_tax_amount.



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

def invoice_total_recurring_tax_amount
  @invoice_total_recurring_tax_amount
end

#item_countObject

Returns the value of attribute item_count.



36
37
38
# File 'lib/softlayer/billing/invoice.rb', line 36

def item_count
  @item_count
end

#itemsObject

Returns the value of attribute items.



50
51
52
# File 'lib/softlayer/billing/invoice.rb', line 50

def items
  @items
end

#last_nameObject

Returns the value of attribute last_name.



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

def last_name
  @last_name
end

#modify_dateObject

Returns the value of attribute modify_date.



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

def modify_date
  @modify_date
end

#office_phoneObject

Returns the value of attribute office_phone.



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

def office_phone
  @office_phone
end

#paymentObject

Returns the value of attribute payment.



51
52
53
# File 'lib/softlayer/billing/invoice.rb', line 51

def payment
  @payment
end

#payment_countObject

Returns the value of attribute payment_count.



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

def payment_count
  @payment_count
end

#paymentsObject

Returns the value of attribute payments.



52
53
54
# File 'lib/softlayer/billing/invoice.rb', line 52

def payments
  @payments
end

#postal_codeObject

Returns the value of attribute postal_code.



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

def postal_code
  @postal_code
end

#purchase_order_numberObject

Returns the value of attribute purchase_order_number.



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

def purchase_order_number
  @purchase_order_number
end

#seller_registrationObject

Returns the value of attribute seller_registration.



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

def seller_registration
  @seller_registration
end

#starting_balanceObject

Returns the value of attribute starting_balance.



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

def starting_balance
  @starting_balance
end

#stateObject

Returns the value of attribute state.



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

def state
  @state
end

#status_codeObject

Returns the value of attribute status_code.



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

def status_code
  @status_code
end

#tax_infoObject

Returns the value of attribute tax_info.



54
55
56
# File 'lib/softlayer/billing/invoice.rb', line 54

def tax_info
  @tax_info
end

#tax_info_historyObject

Returns the value of attribute tax_info_history.



55
56
57
# File 'lib/softlayer/billing/invoice.rb', line 55

def tax_info_history
  @tax_info_history
end

#tax_info_history_countObject

Returns the value of attribute tax_info_history_count.



38
39
40
# File 'lib/softlayer/billing/invoice.rb', line 38

def tax_info_history_count
  @tax_info_history_count
end

#tax_messageObject

Returns the value of attribute tax_message.



56
57
58
# File 'lib/softlayer/billing/invoice.rb', line 56

def tax_message
  @tax_message
end

#tax_status_idObject

Returns the value of attribute tax_status_id.



32
33
34
# File 'lib/softlayer/billing/invoice.rb', line 32

def tax_status_id
  @tax_status_id
end

#tax_typeObject

Returns the value of attribute tax_type.



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

def tax_type
  @tax_type
end

#tax_type_idObject

Returns the value of attribute tax_type_id.



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

def tax_type_id
  @tax_type_id
end

#type_codeObject

Returns the value of attribute type_code.



34
35
36
# File 'lib/softlayer/billing/invoice.rb', line 34

def type_code
  @type_code
end

Class Method Details

.email_invoices(message) ⇒ Object

options



60
61
62
# File 'lib/softlayer/billing/invoice.rb', line 60

def self.email_invoices(message)
  request(:email_invoices, nil, message)
end

Instance Method Details

#get_accountObject



64
65
66
# File 'lib/softlayer/billing/invoice.rb', line 64

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

#get_amountObject



68
69
70
# File 'lib/softlayer/billing/invoice.rb', line 68

def get_amount
  request(:get_amount, Float)
end

#get_brand_at_invoice_creationObject



72
73
74
# File 'lib/softlayer/billing/invoice.rb', line 72

def get_brand_at_invoice_creation
  request(:get_brand_at_invoice_creation, Softlayer::Brand)
end

#get_detailed_pdf_generated_flagObject



76
77
78
# File 'lib/softlayer/billing/invoice.rb', line 76

def get_detailed_pdf_generated_flag
  request(:get_detailed_pdf_generated_flag, Boolean)
end

#get_excelObject



80
81
82
# File 'lib/softlayer/billing/invoice.rb', line 80

def get_excel
  request(:get_excel, Softlayer::Base64Binary)
end

#get_invoice_top_level_itemsObject



84
85
86
# File 'lib/softlayer/billing/invoice.rb', line 84

def get_invoice_top_level_items
  request(:get_invoice_top_level_items, Array[Softlayer::Billing::Invoice::Item])
end

#get_invoice_total_amountObject



88
89
90
# File 'lib/softlayer/billing/invoice.rb', line 88

def get_invoice_total_amount
  request(:get_invoice_total_amount, Float)
end

#get_invoice_total_one_time_amountObject



92
93
94
# File 'lib/softlayer/billing/invoice.rb', line 92

def get_invoice_total_one_time_amount
  request(:get_invoice_total_one_time_amount, Float)
end

#get_invoice_total_one_time_tax_amountObject



96
97
98
# File 'lib/softlayer/billing/invoice.rb', line 96

def get_invoice_total_one_time_tax_amount
  request(:get_invoice_total_one_time_tax_amount, Float)
end

#get_invoice_total_pre_tax_amountObject



100
101
102
# File 'lib/softlayer/billing/invoice.rb', line 100

def get_invoice_total_pre_tax_amount
  request(:get_invoice_total_pre_tax_amount, Float)
end

#get_invoice_total_recurring_amountObject



104
105
106
# File 'lib/softlayer/billing/invoice.rb', line 104

def get_invoice_total_recurring_amount
  request(:get_invoice_total_recurring_amount, Float)
end

#get_invoice_total_recurring_tax_amountObject



108
109
110
# File 'lib/softlayer/billing/invoice.rb', line 108

def get_invoice_total_recurring_tax_amount
  request(:get_invoice_total_recurring_tax_amount, Float)
end

#get_itemsObject



112
113
114
# File 'lib/softlayer/billing/invoice.rb', line 112

def get_items
  request(:get_items, Array[Softlayer::Billing::Invoice::Item])
end

#get_objectObject



116
117
118
# File 'lib/softlayer/billing/invoice.rb', line 116

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

#get_paymentObject



120
121
122
# File 'lib/softlayer/billing/invoice.rb', line 120

def get_payment
  request(:get_payment, Float)
end

#get_paymentsObject



124
125
126
# File 'lib/softlayer/billing/invoice.rb', line 124

def get_payments
  request(:get_payments, Array[Softlayer::Billing::Invoice::Receivable::Payment])
end

#get_pdfObject



128
129
130
# File 'lib/softlayer/billing/invoice.rb', line 128

def get_pdf
  request(:get_pdf, Softlayer::Base64Binary)
end

#get_pdf_detailedObject



132
133
134
# File 'lib/softlayer/billing/invoice.rb', line 132

def get_pdf_detailed
  request(:get_pdf_detailed, Softlayer::Base64Binary)
end

#get_pdf_detailed_filenameObject



136
137
138
# File 'lib/softlayer/billing/invoice.rb', line 136

def get_pdf_detailed_filename
  request(:get_pdf_detailed_filename, String)
end

#get_pdf_file_sizeObject



140
141
142
# File 'lib/softlayer/billing/invoice.rb', line 140

def get_pdf_file_size
  request(:get_pdf_file_size, Integer)
end

#get_pdf_filenameObject



144
145
146
# File 'lib/softlayer/billing/invoice.rb', line 144

def get_pdf_filename
  request(:get_pdf_filename, String)
end

#get_preliminary_excelObject



148
149
150
# File 'lib/softlayer/billing/invoice.rb', line 148

def get_preliminary_excel
  request(:get_preliminary_excel, Softlayer::Base64Binary)
end

#get_preliminary_pdfObject



152
153
154
# File 'lib/softlayer/billing/invoice.rb', line 152

def get_preliminary_pdf
  request(:get_preliminary_pdf, Softlayer::Base64Binary)
end

#get_preliminary_pdf_detailedObject



156
157
158
# File 'lib/softlayer/billing/invoice.rb', line 156

def get_preliminary_pdf_detailed
  request(:get_preliminary_pdf_detailed, Softlayer::Base64Binary)
end

#get_seller_registrationObject



160
161
162
# File 'lib/softlayer/billing/invoice.rb', line 160

def get_seller_registration
  request(:get_seller_registration, String)
end

#get_tax_infoObject



164
165
166
# File 'lib/softlayer/billing/invoice.rb', line 164

def get_tax_info
  request(:get_tax_info, Softlayer::Billing::Invoice::Tax::Info)
end

#get_tax_info_historyObject



168
169
170
# File 'lib/softlayer/billing/invoice.rb', line 168

def get_tax_info_history
  request(:get_tax_info_history, Array[Softlayer::Billing::Invoice::Tax::Info])
end

#get_tax_messageObject



172
173
174
# File 'lib/softlayer/billing/invoice.rb', line 172

def get_tax_message
  request(:get_tax_message, String)
end

#get_tax_typeObject



176
177
178
# File 'lib/softlayer/billing/invoice.rb', line 176

def get_tax_type
  request(:get_tax_type, Softlayer::Billing::Invoice::Tax::Type)
end

#get_xls_filenameObject



180
181
182
# File 'lib/softlayer/billing/invoice.rb', line 180

def get_xls_filename
  request(:get_xls_filename, String)
end

#get_zero_fee_item_countsObject



184
185
186
# File 'lib/softlayer/billing/invoice.rb', line 184

def get_zero_fee_item_counts
  request(:get_zero_fee_item_counts, Array[Softlayer::Container::Product::Item::Category::ZeroFee::Count])
end