Class: Softlayer::Billing::Order
- Defined in:
- lib/softlayer/billing/order.rb,
lib/softlayer/billing/order/cart.rb,
lib/softlayer/billing/order/item.rb,
lib/softlayer/billing/order/note.rb,
lib/softlayer/billing/order/type.rb,
lib/softlayer/billing/order/quote.rb,
lib/softlayer/billing/order/item/category.rb,
lib/softlayer/billing/order/item/category/answer.rb
Defined Under Namespace
Classes: Cart, Item, Note, Quote, Representer, Type
Constant Summary collapse
- SERVICE =
'SoftLayer_Billing_Order'
Instance Attribute Summary collapse
-
#account ⇒ Object
Returns the value of attribute account.
-
#account_id ⇒ Object
Returns the value of attribute account_id.
-
#brand ⇒ Object
Returns the value of attribute brand.
-
#cart ⇒ Object
Returns the value of attribute cart.
-
#core_restricted_item_count ⇒ Object
Returns the value of attribute core_restricted_item_count.
-
#core_restricted_items ⇒ Object
Returns the value of attribute core_restricted_items.
-
#create_date ⇒ Object
Returns the value of attribute create_date.
-
#credit_card_transaction_count ⇒ Object
Returns the value of attribute credit_card_transaction_count.
-
#credit_card_transactions ⇒ Object
Returns the value of attribute credit_card_transactions.
-
#exchange_rate ⇒ Object
Returns the value of attribute exchange_rate.
-
#id ⇒ Object
Returns the value of attribute id.
-
#impersonating_user_record_id ⇒ Object
Returns the value of attribute impersonating_user_record_id.
-
#initial_invoice ⇒ Object
Returns the value of attribute initial_invoice.
-
#item_count ⇒ Object
Returns the value of attribute item_count.
-
#items ⇒ Object
Returns the value of attribute items.
-
#modify_date ⇒ Object
Returns the value of attribute modify_date.
-
#order_approval_date ⇒ Object
Returns the value of attribute order_approval_date.
-
#order_non_server_monthly_amount ⇒ Object
Returns the value of attribute order_non_server_monthly_amount.
-
#order_quote_id ⇒ Object
Returns the value of attribute order_quote_id.
-
#order_server_monthly_amount ⇒ Object
Returns the value of attribute order_server_monthly_amount.
-
#order_top_level_item_count ⇒ Object
Returns the value of attribute order_top_level_item_count.
-
#order_top_level_items ⇒ Object
Returns the value of attribute order_top_level_items.
-
#order_total_amount ⇒ Object
Returns the value of attribute order_total_amount.
-
#order_total_one_time ⇒ Object
Returns the value of attribute order_total_one_time.
-
#order_total_one_time_amount ⇒ Object
Returns the value of attribute order_total_one_time_amount.
-
#order_total_one_time_tax_amount ⇒ Object
Returns the value of attribute order_total_one_time_tax_amount.
-
#order_total_recurring ⇒ Object
Returns the value of attribute order_total_recurring.
-
#order_total_recurring_amount ⇒ Object
Returns the value of attribute order_total_recurring_amount.
-
#order_total_recurring_tax_amount ⇒ Object
Returns the value of attribute order_total_recurring_tax_amount.
-
#order_total_setup_amount ⇒ Object
Returns the value of attribute order_total_setup_amount.
-
#order_type ⇒ Object
Returns the value of attribute order_type.
-
#order_type_id ⇒ Object
Returns the value of attribute order_type_id.
-
#paypal_transaction_count ⇒ Object
Returns the value of attribute paypal_transaction_count.
-
#paypal_transactions ⇒ Object
Returns the value of attribute paypal_transactions.
-
#presale_event ⇒ Object
Returns the value of attribute presale_event.
-
#presale_event_id ⇒ Object
Returns the value of attribute presale_event_id.
-
#private_cloud_order_flag ⇒ Object
Returns the value of attribute private_cloud_order_flag.
-
#quote ⇒ Object
Returns the value of attribute quote.
-
#referral_partner ⇒ Object
Returns the value of attribute referral_partner.
-
#status ⇒ Object
Returns the value of attribute status.
-
#upgrade_request_flag ⇒ Object
Returns the value of attribute upgrade_request_flag.
-
#user_record ⇒ Object
Returns the value of attribute user_record.
-
#user_record_id ⇒ Object
Returns the value of attribute user_record_id.
Class Method Summary collapse
Instance Method Summary collapse
- #approve_modified_order ⇒ Object
- #get_account ⇒ Object
- #get_brand ⇒ Object
- #get_cart ⇒ Object
- #get_core_restricted_items ⇒ Object
- #get_credit_card_transactions ⇒ Object
- #get_exchange_rate ⇒ Object
- #get_initial_invoice ⇒ Object
- #get_items ⇒ Object
- #get_object ⇒ Object
- #get_order_approval_date ⇒ Object
- #get_order_non_server_monthly_amount ⇒ Object
- #get_order_server_monthly_amount ⇒ Object
- #get_order_top_level_items ⇒ Object
- #get_order_total_amount ⇒ Object
- #get_order_total_one_time ⇒ Object
- #get_order_total_one_time_amount ⇒ Object
- #get_order_total_one_time_tax_amount ⇒ Object
- #get_order_total_recurring ⇒ Object
- #get_order_total_recurring_amount ⇒ Object
- #get_order_total_recurring_tax_amount ⇒ Object
- #get_order_total_setup_amount ⇒ Object
- #get_order_type ⇒ Object
- #get_paypal_transactions ⇒ Object
- #get_pdf ⇒ Object
- #get_pdf_filename ⇒ Object
- #get_presale_event ⇒ Object
- #get_quote ⇒ Object
-
#get_recalculated_order_container(message) ⇒ Object
message ignore_discounts_flag.
- #get_receipt ⇒ Object
- #get_referral_partner ⇒ Object
- #get_upgrade_request_flag ⇒ Object
- #get_user_record ⇒ Object
- #is_pending_edit_approval ⇒ 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.
26 27 28 |
# File 'lib/softlayer/billing/order.rb', line 26 def account @account end |
#account_id ⇒ Object
Returns the value of attribute account_id.
10 11 12 |
# File 'lib/softlayer/billing/order.rb', line 10 def account_id @account_id end |
#brand ⇒ Object
Returns the value of attribute brand.
27 28 29 |
# File 'lib/softlayer/billing/order.rb', line 27 def brand @brand end |
#cart ⇒ Object
Returns the value of attribute cart.
28 29 30 |
# File 'lib/softlayer/billing/order.rb', line 28 def cart @cart end |
#core_restricted_item_count ⇒ Object
Returns the value of attribute core_restricted_item_count.
21 22 23 |
# File 'lib/softlayer/billing/order.rb', line 21 def core_restricted_item_count @core_restricted_item_count end |
#core_restricted_items ⇒ Object
Returns the value of attribute core_restricted_items.
29 30 31 |
# File 'lib/softlayer/billing/order.rb', line 29 def core_restricted_items @core_restricted_items end |
#create_date ⇒ Object
Returns the value of attribute create_date.
11 12 13 |
# File 'lib/softlayer/billing/order.rb', line 11 def create_date @create_date end |
#credit_card_transaction_count ⇒ Object
Returns the value of attribute credit_card_transaction_count.
22 23 24 |
# File 'lib/softlayer/billing/order.rb', line 22 def credit_card_transaction_count @credit_card_transaction_count end |
#credit_card_transactions ⇒ Object
Returns the value of attribute credit_card_transactions.
30 31 32 |
# File 'lib/softlayer/billing/order.rb', line 30 def credit_card_transactions @credit_card_transactions end |
#exchange_rate ⇒ Object
Returns the value of attribute exchange_rate.
31 32 33 |
# File 'lib/softlayer/billing/order.rb', line 31 def exchange_rate @exchange_rate end |
#id ⇒ Object
Returns the value of attribute id.
12 13 14 |
# File 'lib/softlayer/billing/order.rb', line 12 def id @id end |
#impersonating_user_record_id ⇒ Object
Returns the value of attribute impersonating_user_record_id.
13 14 15 |
# File 'lib/softlayer/billing/order.rb', line 13 def impersonating_user_record_id @impersonating_user_record_id end |
#initial_invoice ⇒ Object
Returns the value of attribute initial_invoice.
32 33 34 |
# File 'lib/softlayer/billing/order.rb', line 32 def initial_invoice @initial_invoice end |
#item_count ⇒ Object
Returns the value of attribute item_count.
23 24 25 |
# File 'lib/softlayer/billing/order.rb', line 23 def item_count @item_count end |
#items ⇒ Object
Returns the value of attribute items.
33 34 35 |
# File 'lib/softlayer/billing/order.rb', line 33 def items @items end |
#modify_date ⇒ Object
Returns the value of attribute modify_date.
14 15 16 |
# File 'lib/softlayer/billing/order.rb', line 14 def modify_date @modify_date end |
#order_approval_date ⇒ Object
Returns the value of attribute order_approval_date.
34 35 36 |
# File 'lib/softlayer/billing/order.rb', line 34 def order_approval_date @order_approval_date end |
#order_non_server_monthly_amount ⇒ Object
Returns the value of attribute order_non_server_monthly_amount.
35 36 37 |
# File 'lib/softlayer/billing/order.rb', line 35 def order_non_server_monthly_amount @order_non_server_monthly_amount end |
#order_quote_id ⇒ Object
Returns the value of attribute order_quote_id.
15 16 17 |
# File 'lib/softlayer/billing/order.rb', line 15 def order_quote_id @order_quote_id end |
#order_server_monthly_amount ⇒ Object
Returns the value of attribute order_server_monthly_amount.
36 37 38 |
# File 'lib/softlayer/billing/order.rb', line 36 def order_server_monthly_amount @order_server_monthly_amount end |
#order_top_level_item_count ⇒ Object
Returns the value of attribute order_top_level_item_count.
24 25 26 |
# File 'lib/softlayer/billing/order.rb', line 24 def order_top_level_item_count @order_top_level_item_count end |
#order_top_level_items ⇒ Object
Returns the value of attribute order_top_level_items.
37 38 39 |
# File 'lib/softlayer/billing/order.rb', line 37 def order_top_level_items @order_top_level_items end |
#order_total_amount ⇒ Object
Returns the value of attribute order_total_amount.
38 39 40 |
# File 'lib/softlayer/billing/order.rb', line 38 def order_total_amount @order_total_amount end |
#order_total_one_time ⇒ Object
Returns the value of attribute order_total_one_time.
39 40 41 |
# File 'lib/softlayer/billing/order.rb', line 39 def order_total_one_time @order_total_one_time end |
#order_total_one_time_amount ⇒ Object
Returns the value of attribute order_total_one_time_amount.
40 41 42 |
# File 'lib/softlayer/billing/order.rb', line 40 def order_total_one_time_amount @order_total_one_time_amount end |
#order_total_one_time_tax_amount ⇒ Object
Returns the value of attribute order_total_one_time_tax_amount.
41 42 43 |
# File 'lib/softlayer/billing/order.rb', line 41 def order_total_one_time_tax_amount @order_total_one_time_tax_amount end |
#order_total_recurring ⇒ Object
Returns the value of attribute order_total_recurring.
42 43 44 |
# File 'lib/softlayer/billing/order.rb', line 42 def order_total_recurring @order_total_recurring end |
#order_total_recurring_amount ⇒ Object
Returns the value of attribute order_total_recurring_amount.
43 44 45 |
# File 'lib/softlayer/billing/order.rb', line 43 def order_total_recurring_amount @order_total_recurring_amount end |
#order_total_recurring_tax_amount ⇒ Object
Returns the value of attribute order_total_recurring_tax_amount.
44 45 46 |
# File 'lib/softlayer/billing/order.rb', line 44 def order_total_recurring_tax_amount @order_total_recurring_tax_amount end |
#order_total_setup_amount ⇒ Object
Returns the value of attribute order_total_setup_amount.
45 46 47 |
# File 'lib/softlayer/billing/order.rb', line 45 def order_total_setup_amount @order_total_setup_amount end |
#order_type ⇒ Object
Returns the value of attribute order_type.
46 47 48 |
# File 'lib/softlayer/billing/order.rb', line 46 def order_type @order_type end |
#order_type_id ⇒ Object
Returns the value of attribute order_type_id.
16 17 18 |
# File 'lib/softlayer/billing/order.rb', line 16 def order_type_id @order_type_id end |
#paypal_transaction_count ⇒ Object
Returns the value of attribute paypal_transaction_count.
25 26 27 |
# File 'lib/softlayer/billing/order.rb', line 25 def paypal_transaction_count @paypal_transaction_count end |
#paypal_transactions ⇒ Object
Returns the value of attribute paypal_transactions.
47 48 49 |
# File 'lib/softlayer/billing/order.rb', line 47 def paypal_transactions @paypal_transactions end |
#presale_event ⇒ Object
Returns the value of attribute presale_event.
48 49 50 |
# File 'lib/softlayer/billing/order.rb', line 48 def presale_event @presale_event end |
#presale_event_id ⇒ Object
Returns the value of attribute presale_event_id.
17 18 19 |
# File 'lib/softlayer/billing/order.rb', line 17 def presale_event_id @presale_event_id end |
#private_cloud_order_flag ⇒ Object
Returns the value of attribute private_cloud_order_flag.
18 19 20 |
# File 'lib/softlayer/billing/order.rb', line 18 def private_cloud_order_flag @private_cloud_order_flag end |
#quote ⇒ Object
Returns the value of attribute quote.
49 50 51 |
# File 'lib/softlayer/billing/order.rb', line 49 def quote @quote end |
#referral_partner ⇒ Object
Returns the value of attribute referral_partner.
50 51 52 |
# File 'lib/softlayer/billing/order.rb', line 50 def referral_partner @referral_partner end |
#status ⇒ Object
Returns the value of attribute status.
19 20 21 |
# File 'lib/softlayer/billing/order.rb', line 19 def status @status end |
#upgrade_request_flag ⇒ Object
Returns the value of attribute upgrade_request_flag.
51 52 53 |
# File 'lib/softlayer/billing/order.rb', line 51 def upgrade_request_flag @upgrade_request_flag end |
#user_record ⇒ Object
Returns the value of attribute user_record.
52 53 54 |
# File 'lib/softlayer/billing/order.rb', line 52 def user_record @user_record end |
#user_record_id ⇒ Object
Returns the value of attribute user_record_id.
20 21 22 |
# File 'lib/softlayer/billing/order.rb', line 20 def user_record_id @user_record_id end |
Class Method Details
Instance Method Details
#approve_modified_order ⇒ Object
54 55 56 |
# File 'lib/softlayer/billing/order.rb', line 54 def approve_modified_order request(:approve_modified_order, Boolean) end |
#get_account ⇒ Object
58 59 60 |
# File 'lib/softlayer/billing/order.rb', line 58 def get_account request(:get_account, Softlayer::Account) end |
#get_brand ⇒ Object
66 67 68 |
# File 'lib/softlayer/billing/order.rb', line 66 def get_brand request(:get_brand, Softlayer::Brand) end |
#get_cart ⇒ Object
70 71 72 |
# File 'lib/softlayer/billing/order.rb', line 70 def get_cart request(:get_cart, Softlayer::Billing::Order::Cart) end |
#get_core_restricted_items ⇒ Object
74 75 76 |
# File 'lib/softlayer/billing/order.rb', line 74 def get_core_restricted_items request(:get_core_restricted_items, Array[Softlayer::Billing::Order::Item]) end |
#get_credit_card_transactions ⇒ Object
78 79 80 |
# File 'lib/softlayer/billing/order.rb', line 78 def get_credit_card_transactions request(:get_credit_card_transactions, Array[Softlayer::Billing::Payment::Card::Transaction]) end |
#get_exchange_rate ⇒ Object
82 83 84 |
# File 'lib/softlayer/billing/order.rb', line 82 def get_exchange_rate request(:get_exchange_rate, Softlayer::Billing::Currency::ExchangeRate) end |
#get_initial_invoice ⇒ Object
86 87 88 |
# File 'lib/softlayer/billing/order.rb', line 86 def get_initial_invoice request(:get_initial_invoice, Softlayer::Billing::Invoice) end |
#get_items ⇒ Object
90 91 92 |
# File 'lib/softlayer/billing/order.rb', line 90 def get_items request(:get_items, Array[Softlayer::Billing::Order::Item]) end |
#get_object ⇒ Object
94 95 96 |
# File 'lib/softlayer/billing/order.rb', line 94 def get_object request(:get_object, Softlayer::Billing::Order) end |
#get_order_approval_date ⇒ Object
98 99 100 |
# File 'lib/softlayer/billing/order.rb', line 98 def get_order_approval_date request(:get_order_approval_date, DateTime) end |
#get_order_non_server_monthly_amount ⇒ Object
102 103 104 |
# File 'lib/softlayer/billing/order.rb', line 102 def get_order_non_server_monthly_amount request(:get_order_non_server_monthly_amount, Float) end |
#get_order_server_monthly_amount ⇒ Object
106 107 108 |
# File 'lib/softlayer/billing/order.rb', line 106 def get_order_server_monthly_amount request(:get_order_server_monthly_amount, Float) end |
#get_order_top_level_items ⇒ Object
114 115 116 |
# File 'lib/softlayer/billing/order.rb', line 114 def get_order_top_level_items request(:get_order_top_level_items, Array[Softlayer::Billing::Order::Item]) end |
#get_order_total_amount ⇒ Object
118 119 120 |
# File 'lib/softlayer/billing/order.rb', line 118 def get_order_total_amount request(:get_order_total_amount, Float) end |
#get_order_total_one_time ⇒ Object
122 123 124 |
# File 'lib/softlayer/billing/order.rb', line 122 def get_order_total_one_time request(:get_order_total_one_time, Float) end |
#get_order_total_one_time_amount ⇒ Object
126 127 128 |
# File 'lib/softlayer/billing/order.rb', line 126 def get_order_total_one_time_amount request(:get_order_total_one_time_amount, Float) end |
#get_order_total_one_time_tax_amount ⇒ Object
130 131 132 |
# File 'lib/softlayer/billing/order.rb', line 130 def get_order_total_one_time_tax_amount request(:get_order_total_one_time_tax_amount, Float) end |
#get_order_total_recurring ⇒ Object
134 135 136 |
# File 'lib/softlayer/billing/order.rb', line 134 def get_order_total_recurring request(:get_order_total_recurring, Float) end |
#get_order_total_recurring_amount ⇒ Object
138 139 140 |
# File 'lib/softlayer/billing/order.rb', line 138 def get_order_total_recurring_amount request(:get_order_total_recurring_amount, Float) end |
#get_order_total_recurring_tax_amount ⇒ Object
142 143 144 |
# File 'lib/softlayer/billing/order.rb', line 142 def get_order_total_recurring_tax_amount request(:get_order_total_recurring_tax_amount, Float) end |
#get_order_total_setup_amount ⇒ Object
146 147 148 |
# File 'lib/softlayer/billing/order.rb', line 146 def get_order_total_setup_amount request(:get_order_total_setup_amount, Float) end |
#get_order_type ⇒ Object
150 151 152 |
# File 'lib/softlayer/billing/order.rb', line 150 def get_order_type request(:get_order_type, Softlayer::Billing::Order::Type) end |
#get_paypal_transactions ⇒ Object
154 155 156 |
# File 'lib/softlayer/billing/order.rb', line 154 def get_paypal_transactions request(:get_paypal_transactions, Array[Softlayer::Billing::Payment::PayPal::Transaction]) end |
#get_pdf ⇒ Object
158 159 160 |
# File 'lib/softlayer/billing/order.rb', line 158 def get_pdf request(:get_pdf, Softlayer::Base64Binary) end |
#get_pdf_filename ⇒ Object
162 163 164 |
# File 'lib/softlayer/billing/order.rb', line 162 def get_pdf_filename request(:get_pdf_filename, String) end |
#get_presale_event ⇒ Object
166 167 168 |
# File 'lib/softlayer/billing/order.rb', line 166 def get_presale_event request(:get_presale_event, Softlayer::Sales::Presale::Event) end |
#get_quote ⇒ Object
170 171 172 |
# File 'lib/softlayer/billing/order.rb', line 170 def get_quote request(:get_quote, Softlayer::Billing::Order::Quote) end |
#get_recalculated_order_container(message) ⇒ Object
message ignore_discounts_flag
176 177 178 |
# File 'lib/softlayer/billing/order.rb', line 176 def get_recalculated_order_container() request(:get_recalculated_order_container, Softlayer::Container::Product::Order, ) end |
#get_receipt ⇒ Object
180 181 182 |
# File 'lib/softlayer/billing/order.rb', line 180 def get_receipt request(:get_receipt, Softlayer::Container::Product::Order::Receipt) end |
#get_referral_partner ⇒ Object
184 185 186 |
# File 'lib/softlayer/billing/order.rb', line 184 def get_referral_partner request(:get_referral_partner, Softlayer::Account) end |
#get_upgrade_request_flag ⇒ Object
188 189 190 |
# File 'lib/softlayer/billing/order.rb', line 188 def get_upgrade_request_flag request(:get_upgrade_request_flag, Boolean) end |
#get_user_record ⇒ Object
192 193 194 |
# File 'lib/softlayer/billing/order.rb', line 192 def get_user_record request(:get_user_record, Softlayer::User::Customer) end |
#is_pending_edit_approval ⇒ Object
196 197 198 |
# File 'lib/softlayer/billing/order.rb', line 196 def is_pending_edit_approval request(:is_pending_edit_approval, Boolean) end |