Class: Softlayer::Billing::Item::Cancellation::Request

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

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.



18
19
20
# File 'lib/softlayer/billing/item/cancellation/request.rb', line 18

def 
  @account
end

#account_idObject

Returns the value of attribute account_id.



9
10
11
# File 'lib/softlayer/billing/item/cancellation/request.rb', line 9

def 
  @account_id
end

#billing_cancel_reason_idObject

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_dateObject

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

#idObject

Returns the value of attribute id.



12
13
14
# File 'lib/softlayer/billing/item/cancellation/request.rb', line 12

def id
  @id
end

#item_countObject

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

#itemsObject

Returns the value of attribute items.



19
20
21
# File 'lib/softlayer/billing/item/cancellation/request.rb', line 19

def items
  @items
end

#modify_dateObject

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

#notesObject

Returns the value of attribute notes.



14
15
16
# File 'lib/softlayer/billing/item/cancellation/request.rb', line 14

def notes
  @notes
end

#statusObject

Returns the value of attribute status.



20
21
22
# File 'lib/softlayer/billing/item/cancellation/request.rb', line 20

def status
  @status
end

#status_idObject

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

#ticketObject

Returns the value of attribute ticket.



21
22
23
# File 'lib/softlayer/billing/item/cancellation/request.rb', line 21

def ticket
  @ticket
end

#ticket_idObject

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

#userObject

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(message)
  request(:create_object, Softlayer::Billing::Item::Cancellation::Request, message)
end

.get_all_cancellation_requestsObject



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(message)
  request(:get_cancellation_cutoff_date, DateTime, message)
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(message)
  request(:validate_billing_item_for_cancellation, Boolean, message)
end

Instance Method Details

#get_accountObject



29
30
31
# File 'lib/softlayer/billing/item/cancellation/request.rb', line 29

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

#get_itemsObject



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_objectObject



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_statusObject



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_ticketObject



55
56
57
# File 'lib/softlayer/billing/item/cancellation/request.rb', line 55

def get_ticket
  request(:get_ticket, Softlayer::Ticket)
end

#get_userObject



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(message)
  request(:remove_cancellation_item, Boolean, message)
end

#void(message) ⇒ Object

close_related_ticket_flag



74
75
76
# File 'lib/softlayer/billing/item/cancellation/request.rb', line 74

def void(message)
  request(:void, Boolean, message)
end