Class: Softlayer::Billing::Item::Cancellation::Request
- Defined in:
- lib/softlayer/billing/item/cancellation/request.rb,
lib/softlayer/billing/item/cancellation/request/item.rb,
lib/softlayer/billing/item/cancellation/request/status.rb
Defined Under Namespace
Classes: Item, Representer, Status
Constant Summary collapse
- SERVICE =
'SoftLayer_Billing_Item_Cancellation_Request'
Instance Attribute Summary collapse
-
#account ⇒ Object
Returns the value of attribute account.
-
#account_id ⇒ Object
Returns the value of attribute account_id.
-
#billing_cancel_reason_id ⇒ Object
Returns the value of attribute billing_cancel_reason_id.
-
#create_date ⇒ Object
Returns the value of attribute create_date.
-
#id ⇒ Object
Returns the value of attribute id.
-
#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.
-
#notes ⇒ Object
Returns the value of attribute notes.
-
#status ⇒ Object
Returns the value of attribute status.
-
#status_id ⇒ Object
Returns the value of attribute status_id.
-
#ticket ⇒ Object
Returns the value of attribute ticket.
-
#ticket_id ⇒ Object
Returns the value of attribute ticket_id.
-
#user ⇒ Object
Returns the value of attribute user.
Class Method Summary collapse
-
.create_object(message) ⇒ Object
template_object.
- .get_all_cancellation_requests ⇒ Object
-
.get_cancellation_cutoff_date(message) ⇒ Object
account_id category_code.
-
.validate_billing_item_for_cancellation(message) ⇒ Object
billing_item_id.
Instance Method Summary collapse
- #get_account ⇒ Object
- #get_items ⇒ Object
- #get_object ⇒ Object
- #get_status ⇒ Object
- #get_ticket ⇒ Object
- #get_user ⇒ Object
-
#remove_cancellation_item(message) ⇒ Object
item_id.
-
#void(message) ⇒ Object
close_related_ticket_flag.
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.
18 19 20 |
# File 'lib/softlayer/billing/item/cancellation/request.rb', line 18 def account @account end |
#account_id ⇒ Object
Returns the value of attribute account_id.
9 10 11 |
# File 'lib/softlayer/billing/item/cancellation/request.rb', line 9 def account_id @account_id end |
#billing_cancel_reason_id ⇒ Object
Returns the value of attribute billing_cancel_reason_id.
10 11 12 |
# File 'lib/softlayer/billing/item/cancellation/request.rb', line 10 def billing_cancel_reason_id @billing_cancel_reason_id end |
#create_date ⇒ Object
Returns the value of attribute create_date.
11 12 13 |
# File 'lib/softlayer/billing/item/cancellation/request.rb', line 11 def create_date @create_date end |
#id ⇒ Object
Returns the value of attribute id.
12 13 14 |
# File 'lib/softlayer/billing/item/cancellation/request.rb', line 12 def id @id end |
#item_count ⇒ Object
Returns the value of attribute item_count.
17 18 19 |
# File 'lib/softlayer/billing/item/cancellation/request.rb', line 17 def item_count @item_count end |
#items ⇒ Object
Returns the value of attribute items.
19 20 21 |
# File 'lib/softlayer/billing/item/cancellation/request.rb', line 19 def items @items end |
#modify_date ⇒ Object
Returns the value of attribute modify_date.
13 14 15 |
# File 'lib/softlayer/billing/item/cancellation/request.rb', line 13 def modify_date @modify_date end |
#notes ⇒ Object
Returns the value of attribute notes.
14 15 16 |
# File 'lib/softlayer/billing/item/cancellation/request.rb', line 14 def notes @notes end |
#status ⇒ Object
Returns the value of attribute status.
20 21 22 |
# File 'lib/softlayer/billing/item/cancellation/request.rb', line 20 def status @status end |
#status_id ⇒ Object
Returns the value of attribute status_id.
15 16 17 |
# File 'lib/softlayer/billing/item/cancellation/request.rb', line 15 def status_id @status_id end |
#ticket ⇒ Object
Returns the value of attribute ticket.
21 22 23 |
# File 'lib/softlayer/billing/item/cancellation/request.rb', line 21 def ticket @ticket end |
#ticket_id ⇒ Object
Returns the value of attribute ticket_id.
16 17 18 |
# File 'lib/softlayer/billing/item/cancellation/request.rb', line 16 def ticket_id @ticket_id end |
#user ⇒ Object
Returns the value of attribute user.
22 23 24 |
# File 'lib/softlayer/billing/item/cancellation/request.rb', line 22 def user @user end |
Class Method Details
.create_object(message) ⇒ Object
template_object
25 26 27 |
# File 'lib/softlayer/billing/item/cancellation/request.rb', line 25 def self.create_object() request(:create_object, Softlayer::Billing::Item::Cancellation::Request, ) end |
.get_all_cancellation_requests ⇒ Object
33 34 35 |
# File 'lib/softlayer/billing/item/cancellation/request.rb', line 33 def self.get_all_cancellation_requests request(:get_all_cancellation_requests, Array[Softlayer::Billing::Item::Cancellation::Request]) end |
.get_cancellation_cutoff_date(message) ⇒ Object
account_id category_code
39 40 41 |
# File 'lib/softlayer/billing/item/cancellation/request.rb', line 39 def self.get_cancellation_cutoff_date() request(:get_cancellation_cutoff_date, DateTime, ) end |
.validate_billing_item_for_cancellation(message) ⇒ Object
billing_item_id
69 70 71 |
# File 'lib/softlayer/billing/item/cancellation/request.rb', line 69 def self.validate_billing_item_for_cancellation() request(:validate_billing_item_for_cancellation, Boolean, ) end |
Instance Method Details
#get_account ⇒ Object
29 30 31 |
# File 'lib/softlayer/billing/item/cancellation/request.rb', line 29 def get_account request(:get_account, Softlayer::Account) end |
#get_items ⇒ Object
43 44 45 |
# File 'lib/softlayer/billing/item/cancellation/request.rb', line 43 def get_items request(:get_items, Array[Softlayer::Billing::Item::Cancellation::Request::Item]) end |
#get_object ⇒ Object
47 48 49 |
# File 'lib/softlayer/billing/item/cancellation/request.rb', line 47 def get_object request(:get_object, Softlayer::Billing::Item::Cancellation::Request) end |
#get_status ⇒ Object
51 52 53 |
# File 'lib/softlayer/billing/item/cancellation/request.rb', line 51 def get_status request(:get_status, Softlayer::Billing::Item::Cancellation::Request::Status) end |
#get_ticket ⇒ Object
55 56 57 |
# File 'lib/softlayer/billing/item/cancellation/request.rb', line 55 def get_ticket request(:get_ticket, Softlayer::Ticket) end |
#get_user ⇒ Object
59 60 61 |
# File 'lib/softlayer/billing/item/cancellation/request.rb', line 59 def get_user request(:get_user, Softlayer::User::Customer) end |
#remove_cancellation_item(message) ⇒ Object
item_id
64 65 66 |
# File 'lib/softlayer/billing/item/cancellation/request.rb', line 64 def remove_cancellation_item() request(:remove_cancellation_item, Boolean, ) end |
#void(message) ⇒ Object
close_related_ticket_flag
74 75 76 |
# File 'lib/softlayer/billing/item/cancellation/request.rb', line 74 def void() request(:void, Boolean, ) end |