Class: Softlayer::Billing::Invoice
- 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
-
#account ⇒ Object
Returns the value of attribute account.
-
#account_id ⇒ Object
Returns the value of attribute account_id.
-
#address1 ⇒ Object
Returns the value of attribute address1.
-
#address2 ⇒ Object
Returns the value of attribute address2.
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#brand_at_invoice_creation ⇒ Object
Returns the value of attribute brand_at_invoice_creation.
-
#city ⇒ Object
Returns the value of attribute city.
-
#claimed_tax_exempt_tx_flag ⇒ Object
Returns the value of attribute claimed_tax_exempt_tx_flag.
-
#closed_date ⇒ Object
Returns the value of attribute closed_date.
-
#company_name ⇒ Object
Returns the value of attribute company_name.
-
#country ⇒ Object
Returns the value of attribute country.
-
#create_date ⇒ Object
Returns the value of attribute create_date.
-
#detailed_pdf_generated_flag ⇒ Object
Returns the value of attribute detailed_pdf_generated_flag.
-
#documents_generated_flag ⇒ Object
Returns the value of attribute documents_generated_flag.
-
#email ⇒ Object
Returns the value of attribute email.
-
#ending_balance ⇒ Object
Returns the value of attribute ending_balance.
-
#fax_phone ⇒ Object
Returns the value of attribute fax_phone.
-
#first_name ⇒ Object
Returns the value of attribute first_name.
-
#id ⇒ Object
Returns the value of attribute id.
-
#invoice_top_level_item_count ⇒ Object
Returns the value of attribute invoice_top_level_item_count.
-
#invoice_top_level_items ⇒ Object
Returns the value of attribute invoice_top_level_items.
-
#invoice_total_amount ⇒ Object
Returns the value of attribute invoice_total_amount.
-
#invoice_total_one_time_amount ⇒ Object
Returns the value of attribute invoice_total_one_time_amount.
-
#invoice_total_one_time_tax_amount ⇒ Object
Returns the value of attribute invoice_total_one_time_tax_amount.
-
#invoice_total_pre_tax_amount ⇒ Object
Returns the value of attribute invoice_total_pre_tax_amount.
-
#invoice_total_recurring_amount ⇒ Object
Returns the value of attribute invoice_total_recurring_amount.
-
#invoice_total_recurring_tax_amount ⇒ Object
Returns the value of attribute invoice_total_recurring_tax_amount.
-
#item_count ⇒ Object
Returns the value of attribute item_count.
-
#items ⇒ Object
Returns the value of attribute items.
-
#last_name ⇒ Object
Returns the value of attribute last_name.
-
#modify_date ⇒ Object
Returns the value of attribute modify_date.
-
#office_phone ⇒ Object
Returns the value of attribute office_phone.
-
#payment ⇒ Object
Returns the value of attribute payment.
-
#payment_count ⇒ Object
Returns the value of attribute payment_count.
-
#payments ⇒ Object
Returns the value of attribute payments.
-
#postal_code ⇒ Object
Returns the value of attribute postal_code.
-
#purchase_order_number ⇒ Object
Returns the value of attribute purchase_order_number.
-
#seller_registration ⇒ Object
Returns the value of attribute seller_registration.
-
#starting_balance ⇒ Object
Returns the value of attribute starting_balance.
-
#state ⇒ Object
Returns the value of attribute state.
-
#status_code ⇒ Object
Returns the value of attribute status_code.
-
#tax_info ⇒ Object
Returns the value of attribute tax_info.
-
#tax_info_history ⇒ Object
Returns the value of attribute tax_info_history.
-
#tax_info_history_count ⇒ Object
Returns the value of attribute tax_info_history_count.
-
#tax_message ⇒ Object
Returns the value of attribute tax_message.
-
#tax_status_id ⇒ Object
Returns the value of attribute tax_status_id.
-
#tax_type ⇒ Object
Returns the value of attribute tax_type.
-
#tax_type_id ⇒ Object
Returns the value of attribute tax_type_id.
-
#type_code ⇒ Object
Returns the value of attribute type_code.
Class Method Summary collapse
-
.email_invoices(message) ⇒ Object
options.
Instance Method Summary collapse
- #get_account ⇒ Object
- #get_amount ⇒ Object
- #get_brand_at_invoice_creation ⇒ Object
- #get_detailed_pdf_generated_flag ⇒ Object
- #get_excel ⇒ Object
- #get_invoice_top_level_items ⇒ Object
- #get_invoice_total_amount ⇒ Object
- #get_invoice_total_one_time_amount ⇒ Object
- #get_invoice_total_one_time_tax_amount ⇒ Object
- #get_invoice_total_pre_tax_amount ⇒ Object
- #get_invoice_total_recurring_amount ⇒ Object
- #get_invoice_total_recurring_tax_amount ⇒ Object
- #get_items ⇒ Object
- #get_object ⇒ Object
- #get_payment ⇒ Object
- #get_payments ⇒ Object
- #get_pdf ⇒ Object
- #get_pdf_detailed ⇒ Object
- #get_pdf_detailed_filename ⇒ Object
- #get_pdf_file_size ⇒ Object
- #get_pdf_filename ⇒ Object
- #get_preliminary_excel ⇒ Object
- #get_preliminary_pdf ⇒ Object
- #get_preliminary_pdf_detailed ⇒ Object
- #get_seller_registration ⇒ Object
- #get_tax_info ⇒ Object
- #get_tax_info_history ⇒ Object
- #get_tax_message ⇒ Object
- #get_tax_type ⇒ Object
- #get_xls_filename ⇒ Object
- #get_zero_fee_item_counts ⇒ Object
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
#account ⇒ Object
Returns the value of attribute account.
39 40 41 |
# File 'lib/softlayer/billing/invoice.rb', line 39 def account @account end |
#account_id ⇒ Object
Returns the value of attribute account_id.
9 10 11 |
# File 'lib/softlayer/billing/invoice.rb', line 9 def account_id @account_id end |
#address1 ⇒ Object
Returns the value of attribute address1.
10 11 12 |
# File 'lib/softlayer/billing/invoice.rb', line 10 def address1 @address1 end |
#address2 ⇒ Object
Returns the value of attribute address2.
11 12 13 |
# File 'lib/softlayer/billing/invoice.rb', line 11 def address2 @address2 end |
#amount ⇒ Object
Returns the value of attribute amount.
40 41 42 |
# File 'lib/softlayer/billing/invoice.rb', line 40 def amount @amount end |
#brand_at_invoice_creation ⇒ Object
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 |
#city ⇒ Object
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_flag ⇒ Object
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_date ⇒ Object
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_name ⇒ Object
Returns the value of attribute company_name.
15 16 17 |
# File 'lib/softlayer/billing/invoice.rb', line 15 def company_name @company_name end |
#country ⇒ Object
Returns the value of attribute country.
16 17 18 |
# File 'lib/softlayer/billing/invoice.rb', line 16 def country @country end |
#create_date ⇒ Object
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_flag ⇒ Object
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_flag ⇒ Object
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 |
#email ⇒ Object
Returns the value of attribute email.
19 20 21 |
# File 'lib/softlayer/billing/invoice.rb', line 19 def email @email end |
#ending_balance ⇒ Object
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_phone ⇒ Object
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_name ⇒ Object
Returns the value of attribute first_name.
22 23 24 |
# File 'lib/softlayer/billing/invoice.rb', line 22 def first_name @first_name end |
#id ⇒ Object
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_count ⇒ Object
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_items ⇒ Object
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_amount ⇒ Object
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_amount ⇒ Object
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_amount ⇒ Object
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_amount ⇒ Object
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_amount ⇒ Object
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_amount ⇒ Object
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_count ⇒ Object
Returns the value of attribute item_count.
36 37 38 |
# File 'lib/softlayer/billing/invoice.rb', line 36 def item_count @item_count end |
#items ⇒ Object
Returns the value of attribute items.
50 51 52 |
# File 'lib/softlayer/billing/invoice.rb', line 50 def items @items end |
#last_name ⇒ Object
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_date ⇒ Object
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_phone ⇒ Object
Returns the value of attribute office_phone.
26 27 28 |
# File 'lib/softlayer/billing/invoice.rb', line 26 def office_phone @office_phone end |
#payment ⇒ Object
Returns the value of attribute payment.
51 52 53 |
# File 'lib/softlayer/billing/invoice.rb', line 51 def payment @payment end |
#payment_count ⇒ Object
Returns the value of attribute payment_count.
37 38 39 |
# File 'lib/softlayer/billing/invoice.rb', line 37 def payment_count @payment_count end |
#payments ⇒ Object
Returns the value of attribute payments.
52 53 54 |
# File 'lib/softlayer/billing/invoice.rb', line 52 def payments @payments end |
#postal_code ⇒ Object
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_number ⇒ Object
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_registration ⇒ Object
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_balance ⇒ Object
Returns the value of attribute starting_balance.
29 30 31 |
# File 'lib/softlayer/billing/invoice.rb', line 29 def starting_balance @starting_balance end |
#state ⇒ Object
Returns the value of attribute state.
30 31 32 |
# File 'lib/softlayer/billing/invoice.rb', line 30 def state @state end |
#status_code ⇒ Object
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_info ⇒ Object
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_history ⇒ Object
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_count ⇒ Object
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_message ⇒ Object
Returns the value of attribute tax_message.
56 57 58 |
# File 'lib/softlayer/billing/invoice.rb', line 56 def @tax_message end |
#tax_status_id ⇒ Object
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_type ⇒ Object
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_id ⇒ Object
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_code ⇒ Object
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() request(:email_invoices, nil, ) end |
Instance Method Details
#get_account ⇒ Object
64 65 66 |
# File 'lib/softlayer/billing/invoice.rb', line 64 def get_account request(:get_account, Softlayer::Account) end |
#get_amount ⇒ Object
68 69 70 |
# File 'lib/softlayer/billing/invoice.rb', line 68 def get_amount request(:get_amount, Float) end |
#get_brand_at_invoice_creation ⇒ Object
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_flag ⇒ Object
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_excel ⇒ Object
80 81 82 |
# File 'lib/softlayer/billing/invoice.rb', line 80 def get_excel request(:get_excel, Softlayer::Base64Binary) end |
#get_invoice_top_level_items ⇒ Object
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_amount ⇒ Object
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_amount ⇒ Object
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_amount ⇒ Object
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_amount ⇒ Object
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_amount ⇒ Object
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_amount ⇒ Object
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_items ⇒ Object
112 113 114 |
# File 'lib/softlayer/billing/invoice.rb', line 112 def get_items request(:get_items, Array[Softlayer::Billing::Invoice::Item]) end |
#get_object ⇒ Object
116 117 118 |
# File 'lib/softlayer/billing/invoice.rb', line 116 def get_object request(:get_object, Softlayer::Billing::Invoice) end |
#get_payment ⇒ Object
120 121 122 |
# File 'lib/softlayer/billing/invoice.rb', line 120 def get_payment request(:get_payment, Float) end |
#get_payments ⇒ Object
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_pdf ⇒ Object
128 129 130 |
# File 'lib/softlayer/billing/invoice.rb', line 128 def get_pdf request(:get_pdf, Softlayer::Base64Binary) end |
#get_pdf_detailed ⇒ Object
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_filename ⇒ Object
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_size ⇒ Object
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_filename ⇒ Object
144 145 146 |
# File 'lib/softlayer/billing/invoice.rb', line 144 def get_pdf_filename request(:get_pdf_filename, String) end |
#get_preliminary_excel ⇒ Object
148 149 150 |
# File 'lib/softlayer/billing/invoice.rb', line 148 def get_preliminary_excel request(:get_preliminary_excel, Softlayer::Base64Binary) end |
#get_preliminary_pdf ⇒ Object
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_detailed ⇒ Object
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_registration ⇒ Object
160 161 162 |
# File 'lib/softlayer/billing/invoice.rb', line 160 def get_seller_registration request(:get_seller_registration, String) end |
#get_tax_info ⇒ Object
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_history ⇒ Object
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_message ⇒ Object
172 173 174 |
# File 'lib/softlayer/billing/invoice.rb', line 172 def request(:get_tax_message, String) end |
#get_tax_type ⇒ Object
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_filename ⇒ Object
180 181 182 |
# File 'lib/softlayer/billing/invoice.rb', line 180 def get_xls_filename request(:get_xls_filename, String) end |