Class: Softlayer::Billing::Order::Quote
- Defined in:
- lib/softlayer/billing/order/quote.rb
Direct Known Subclasses
Defined Under Namespace
Classes: Representer
Constant Summary collapse
- SERVICE =
'SoftLayer_Billing_Order_Quote'
Instance Attribute Summary collapse
-
#account ⇒ Object
Returns the value of attribute account.
-
#account_id ⇒ Object
Returns the value of attribute account_id.
-
#completed_purchase_data_id ⇒ Object
Returns the value of attribute completed_purchase_data_id.
-
#create_date ⇒ Object
Returns the value of attribute create_date.
-
#expiration_date ⇒ Object
Returns the value of attribute expiration_date.
-
#id ⇒ Object
Returns the value of attribute id.
-
#modify_date ⇒ Object
Returns the value of attribute modify_date.
-
#name ⇒ Object
Returns the value of attribute name.
-
#order ⇒ Object
Returns the value of attribute order.
-
#orders_from_quote ⇒ Object
Returns the value of attribute orders_from_quote.
-
#orders_from_quote_count ⇒ Object
Returns the value of attribute orders_from_quote_count.
-
#public_note ⇒ Object
Returns the value of attribute public_note.
-
#quote_key ⇒ Object
Returns the value of attribute quote_key.
-
#status ⇒ Object
Returns the value of attribute status.
Class Method Summary collapse
Instance Method Summary collapse
- #delete_quote ⇒ Object
- #get_account ⇒ Object
- #get_object ⇒ Object
- #get_order ⇒ Object
- #get_orders_from_quote ⇒ Object
- #get_pdf ⇒ Object
- #get_recalculated_order_container(order_data = nil, order_being_placed_flag = nil) ⇒ Object
- #place_order(order_data = nil) ⇒ Object
- #place_quote(order_data = nil) ⇒ Object
- #save_quote ⇒ Object
- #verify_order(order_data = nil) ⇒ Object
Methods inherited from Model
all, all_request_for, create, find, #init_headers, parse, request, #request, service_name, #service_name, #to_hash
Methods included from Model::Operations
extended, #filter, included, #limit, #mask, #request_headers
Instance Attribute Details
#account ⇒ Object
Returns the value of attribute account.
17 18 19 |
# File 'lib/softlayer/billing/order/quote.rb', line 17 def account @account end |
#account_id ⇒ Object
Returns the value of attribute account_id.
6 7 8 |
# File 'lib/softlayer/billing/order/quote.rb', line 6 def account_id @account_id end |
#completed_purchase_data_id ⇒ Object
Returns the value of attribute completed_purchase_data_id.
7 8 9 |
# File 'lib/softlayer/billing/order/quote.rb', line 7 def completed_purchase_data_id @completed_purchase_data_id end |
#create_date ⇒ Object
Returns the value of attribute create_date.
8 9 10 |
# File 'lib/softlayer/billing/order/quote.rb', line 8 def create_date @create_date end |
#expiration_date ⇒ Object
Returns the value of attribute expiration_date.
9 10 11 |
# File 'lib/softlayer/billing/order/quote.rb', line 9 def expiration_date @expiration_date end |
#id ⇒ Object
Returns the value of attribute id.
10 11 12 |
# File 'lib/softlayer/billing/order/quote.rb', line 10 def id @id end |
#modify_date ⇒ Object
Returns the value of attribute modify_date.
11 12 13 |
# File 'lib/softlayer/billing/order/quote.rb', line 11 def modify_date @modify_date end |
#name ⇒ Object
Returns the value of attribute name.
12 13 14 |
# File 'lib/softlayer/billing/order/quote.rb', line 12 def name @name end |
#order ⇒ Object
Returns the value of attribute order.
18 19 20 |
# File 'lib/softlayer/billing/order/quote.rb', line 18 def order @order end |
#orders_from_quote ⇒ Object
Returns the value of attribute orders_from_quote.
19 20 21 |
# File 'lib/softlayer/billing/order/quote.rb', line 19 def orders_from_quote @orders_from_quote end |
#orders_from_quote_count ⇒ Object
Returns the value of attribute orders_from_quote_count.
16 17 18 |
# File 'lib/softlayer/billing/order/quote.rb', line 16 def orders_from_quote_count @orders_from_quote_count end |
#public_note ⇒ Object
Returns the value of attribute public_note.
13 14 15 |
# File 'lib/softlayer/billing/order/quote.rb', line 13 def public_note @public_note end |
#quote_key ⇒ Object
Returns the value of attribute quote_key.
14 15 16 |
# File 'lib/softlayer/billing/order/quote.rb', line 14 def quote_key @quote_key end |
#status ⇒ Object
Returns the value of attribute status.
15 16 17 |
# File 'lib/softlayer/billing/order/quote.rb', line 15 def status @status end |
Class Method Details
Instance Method Details
#delete_quote ⇒ Object
26 27 28 |
# File 'lib/softlayer/billing/order/quote.rb', line 26 def delete_quote request(:delete_quote, Softlayer::Billing::Order::Quote) end |
#get_account ⇒ Object
30 31 32 |
# File 'lib/softlayer/billing/order/quote.rb', line 30 def get_account request(:get_account, Softlayer::Account) end |
#get_object ⇒ Object
34 35 36 |
# File 'lib/softlayer/billing/order/quote.rb', line 34 def get_object request(:get_object, Softlayer::Billing::Order::Quote) end |
#get_order ⇒ Object
38 39 40 |
# File 'lib/softlayer/billing/order/quote.rb', line 38 def get_order request(:get_order, Softlayer::Billing::Order) end |
#get_orders_from_quote ⇒ Object
42 43 44 |
# File 'lib/softlayer/billing/order/quote.rb', line 42 def get_orders_from_quote request(:get_orders_from_quote, Array[Softlayer::Billing::Order]) end |
#get_pdf ⇒ Object
46 47 48 |
# File 'lib/softlayer/billing/order/quote.rb', line 46 def get_pdf request(:get_pdf, Softlayer::Base64Binary) end |
#get_recalculated_order_container(order_data = nil, order_being_placed_flag = nil) ⇒ Object
55 56 57 58 |
# File 'lib/softlayer/billing/order/quote.rb', line 55 def get_recalculated_order_container(order_data = nil, order_being_placed_flag = nil) = {order_data: order_data, order_being_placed_flag: order_being_placed_flag} request(:get_recalculated_order_container, Softlayer::Container::Product::Order, ) end |
#place_order(order_data = nil) ⇒ Object
60 61 62 63 |
# File 'lib/softlayer/billing/order/quote.rb', line 60 def place_order(order_data = nil) = {order_data: order_data} request(:place_order, Softlayer::Container::Product::Order::Receipt, ) end |
#place_quote(order_data = nil) ⇒ Object
65 66 67 68 |
# File 'lib/softlayer/billing/order/quote.rb', line 65 def place_quote(order_data = nil) = {order_data: order_data} request(:place_quote, Softlayer::Container::Product::Order, ) end |