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, request, #request, service_name, #service_name, #to_hash

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(quote_key = nil, quote_id = nil) ⇒ Object



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

def self.claim(quote_key = nil, quote_id = nil)
  message = {quote_key: quote_key, quote_id: quote_id}
  request(:claim, Softlayer::Billing::Order::Quote, message)
end

.get_quote_by_quote_key(quote_key = nil) ⇒ Object



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

def self.get_quote_by_quote_key(quote_key = nil)
  message = {quote_key: quote_key}
  request(:get_quote_by_quote_key, Softlayer::Billing::Order::Quote, message)
end

Instance Method Details

#delete_quoteObject



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

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

#get_accountObject



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

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

#get_objectObject



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

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

#get_orderObject



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_quoteObject



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_pdfObject



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)
  message = {order_data: order_data, order_being_placed_flag: order_being_placed_flag}
  request(:get_recalculated_order_container, Softlayer::Container::Product::Order, message)
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)
  message = {order_data: order_data}
  request(:place_order, Softlayer::Container::Product::Order::Receipt, message)
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)
  message = {order_data: order_data}
  request(:place_quote, Softlayer::Container::Product::Order, message)
end

#save_quoteObject



70
71
72
# File 'lib/softlayer/billing/order/quote.rb', line 70

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

#verify_order(order_data = nil) ⇒ Object



74
75
76
77
# File 'lib/softlayer/billing/order/quote.rb', line 74

def verify_order(order_data = nil)
  message = {order_data: order_data}
  request(:verify_order, Softlayer::Container::Product::Order, message)
end