Class: Softlayer::Billing::Order

Inherits:
Entity show all
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

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.



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

def 
  @account
end

#account_idObject

Returns the value of attribute account_id.



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

def 
  @account_id
end

#brandObject

Returns the value of attribute brand.



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

def brand
  @brand
end

#cartObject

Returns the value of attribute cart.



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

def cart
  @cart
end

#core_restricted_item_countObject

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_itemsObject

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_dateObject

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_countObject

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_transactionsObject

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_rateObject

Returns the value of attribute exchange_rate.



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

def exchange_rate
  @exchange_rate
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#impersonating_user_record_idObject

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_invoiceObject

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_countObject

Returns the value of attribute item_count.



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

def item_count
  @item_count
end

#itemsObject

Returns the value of attribute items.



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

def items
  @items
end

#modify_dateObject

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_dateObject

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_amountObject

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_idObject

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_amountObject

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_countObject

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_itemsObject

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_amountObject

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_timeObject

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_amountObject

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_amountObject

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_recurringObject

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_amountObject

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_amountObject

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_amountObject

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_typeObject

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_idObject

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_countObject

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_transactionsObject

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_eventObject

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_idObject

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_flagObject

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

#quoteObject

Returns the value of attribute quote.



49
50
51
# File 'lib/softlayer/billing/order.rb', line 49

def quote
  @quote
end

#referral_partnerObject

Returns the value of attribute referral_partner.



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

def referral_partner
  @referral_partner
end

#statusObject

Returns the value of attribute status.



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

def status
  @status
end

#upgrade_request_flagObject

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_recordObject

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_idObject

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

.get_all_objectsObject



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

def self.get_all_objects
  request(:get_all_objects, Array[Softlayer::Billing::Order])
end

.get_order_statusesObject



110
111
112
# File 'lib/softlayer/billing/order.rb', line 110

def self.get_order_statuses
  request(:get_order_statuses, Array[Softlayer::Container::Billing::Order::Status])
end

Instance Method Details

#approve_modified_orderObject



54
55
56
# File 'lib/softlayer/billing/order.rb', line 54

def approve_modified_order
  request(:approve_modified_order, Boolean)
end

#get_accountObject



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

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

#get_brandObject



66
67
68
# File 'lib/softlayer/billing/order.rb', line 66

def get_brand
  request(:get_brand, Softlayer::Brand)
end

#get_cartObject



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_itemsObject



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_transactionsObject



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_rateObject



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_invoiceObject



86
87
88
# File 'lib/softlayer/billing/order.rb', line 86

def get_initial_invoice
  request(:get_initial_invoice, Softlayer::Billing::Invoice)
end

#get_itemsObject



90
91
92
# File 'lib/softlayer/billing/order.rb', line 90

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

#get_objectObject



94
95
96
# File 'lib/softlayer/billing/order.rb', line 94

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

#get_order_approval_dateObject



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_amountObject



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_amountObject



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_itemsObject



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_amountObject



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_timeObject



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_amountObject



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_amountObject



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_recurringObject



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_amountObject



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_amountObject



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_amountObject



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_typeObject



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_transactionsObject



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_pdfObject



158
159
160
# File 'lib/softlayer/billing/order.rb', line 158

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

#get_pdf_filenameObject



162
163
164
# File 'lib/softlayer/billing/order.rb', line 162

def get_pdf_filename
  request(:get_pdf_filename, String)
end

#get_presale_eventObject



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_quoteObject



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(message)
  request(:get_recalculated_order_container, Softlayer::Container::Product::Order, message)
end

#get_receiptObject



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_partnerObject



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_flagObject



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_recordObject



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_approvalObject



196
197
198
# File 'lib/softlayer/billing/order.rb', line 196

def is_pending_edit_approval
  request(:is_pending_edit_approval, Boolean)
end