Class: Softlayer::Billing::Order::Quote

Inherits:
Entity show all
Defined in:
lib/softlayer/billing/order/quote.rb

Direct Known Subclasses

Cart

Defined Under Namespace

Classes: Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Billing_Order_Quote'

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.



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

def 
  @account
end

#account_idObject

Returns the value of attribute account_id.



6
7
8
# File 'lib/softlayer/billing/order/quote.rb', line 6

def 
  @account_id
end

#completed_purchase_data_idObject

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_dateObject

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_dateObject

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

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#modify_dateObject

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

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#orderObject

Returns the value of attribute order.



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

def order
  @order
end

#orders_from_quoteObject

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_countObject

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_noteObject

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_keyObject

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

#statusObject

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

.claim(message) ⇒ Object

quote_key quote_id



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

def self.claim(message)
  request(:claim, Softlayer::Billing::Order::Quote, message)
end

.get_quote_by_quote_key(message) ⇒ Object

quote_key



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

def self.get_quote_by_quote_key(message)
  request(:get_quote_by_quote_key, Softlayer::Billing::Order::Quote, message)
end

Instance Method Details

#delete_quoteObject



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

def delete_quote
  request(:delete_quote, Softlayer::Billing::Order::Quote)
end

#get_accountObject



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

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

#get_objectObject



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

def get_object
  request(:get_object, Softlayer::Billing::Order::Quote)
end

#get_orderObject



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

def get_order
  request(:get_order, Softlayer::Billing::Order)
end

#get_orders_from_quoteObject



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

def get_orders_from_quote
  request(:get_orders_from_quote, Array[Softlayer::Billing::Order])
end

#get_pdfObject



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

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

#get_recalculated_order_container(message) ⇒ Object

order_data order_being_placed_flag



58
59
60
# File 'lib/softlayer/billing/order/quote.rb', line 58

def get_recalculated_order_container(message)
  request(:get_recalculated_order_container, Softlayer::Container::Product::Order, message)
end

#place_order(message) ⇒ Object

order_data



63
64
65
# File 'lib/softlayer/billing/order/quote.rb', line 63

def place_order(message)
  request(:place_order, Softlayer::Container::Product::Order::Receipt, message)
end

#place_quote(message) ⇒ Object

order_data



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

def place_quote(message)
  request(:place_quote, Softlayer::Container::Product::Order, message)
end

#save_quoteObject



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

def save_quote
  request(:save_quote, Softlayer::Billing::Order::Quote)
end

#verify_order(message) ⇒ Object

order_data



77
78
79
# File 'lib/softlayer/billing/order/quote.rb', line 77

def verify_order(message)
  request(:verify_order, Softlayer::Container::Product::Order, message)
end