halo_msp_api 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -0
- data/Gemfile +3 -8
- data/README.md +11 -8
- data/Rakefile +3 -3
- data/examples/basic_usage.rb +90 -31
- data/lib/halo_msp_api/client.rb +49 -28
- data/lib/halo_msp_api/configuration.rb +1 -0
- data/lib/halo_msp_api/error.rb +1 -0
- data/lib/halo_msp_api/resources/actions.rb +21 -20
- data/lib/halo_msp_api/resources/agents.rb +24 -23
- data/lib/halo_msp_api/resources/appointments.rb +18 -17
- data/lib/halo_msp_api/resources/assets.rb +33 -32
- data/lib/halo_msp_api/resources/base.rb +10 -9
- data/lib/halo_msp_api/resources/clients.rb +26 -30
- data/lib/halo_msp_api/resources/integrations.rb +109 -106
- data/lib/halo_msp_api/resources/invoices.rb +32 -31
- data/lib/halo_msp_api/resources/knowledge_base.rb +17 -16
- data/lib/halo_msp_api/resources/organisations.rb +11 -10
- data/lib/halo_msp_api/resources/products.rb +33 -0
- data/lib/halo_msp_api/resources/purchase_orders.rb +16 -15
- data/lib/halo_msp_api/resources/quotations.rb +14 -13
- data/lib/halo_msp_api/resources/reports.rb +23 -22
- data/lib/halo_msp_api/resources/sales_orders.rb +16 -15
- data/lib/halo_msp_api/resources/services.rb +39 -38
- data/lib/halo_msp_api/resources/slas.rb +21 -20
- data/lib/halo_msp_api/resources/suppliers.rb +16 -15
- data/lib/halo_msp_api/resources/tickets.rb +48 -45
- data/lib/halo_msp_api/resources/users.rb +20 -24
- data/lib/halo_msp_api/resources/webhooks.rb +22 -21
- data/lib/halo_msp_api/version.rb +1 -1
- data/lib/halo_msp_api.rb +26 -24
- metadata +12 -14
|
@@ -2,30 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
module HaloMspApi
|
|
4
4
|
module Resources
|
|
5
|
+
# Resource class for Organisations
|
|
5
6
|
class Organisations < Base
|
|
6
7
|
# GET /Organisation - List of Organisations
|
|
7
|
-
def
|
|
8
|
-
list_resource(
|
|
8
|
+
def organisations(params = {})
|
|
9
|
+
list_resource('Organisation', params)
|
|
9
10
|
end
|
|
10
11
|
|
|
11
12
|
# GET /Organisation/{id} - Get a specific Organisation
|
|
12
|
-
def
|
|
13
|
-
get_resource(
|
|
13
|
+
def organisation(id, params = {})
|
|
14
|
+
get_resource('Organisation', id, params)
|
|
14
15
|
end
|
|
15
16
|
|
|
16
17
|
# POST /Organisation - Create a new Organisation
|
|
17
|
-
def
|
|
18
|
-
create_resource(
|
|
18
|
+
def create_organisation(data)
|
|
19
|
+
create_resource('Organisation', data)
|
|
19
20
|
end
|
|
20
21
|
|
|
21
22
|
# PUT /Organisation/{id} - Update an Organisation
|
|
22
|
-
def
|
|
23
|
-
update_resource(
|
|
23
|
+
def update_organisation(id, data)
|
|
24
|
+
update_resource('Organisation', id, data)
|
|
24
25
|
end
|
|
25
26
|
|
|
26
27
|
# DELETE /Organisation/{id} - Delete an Organisation
|
|
27
|
-
def
|
|
28
|
-
delete_resource(
|
|
28
|
+
def delete_organisation(id)
|
|
29
|
+
delete_resource('Organisation', id)
|
|
29
30
|
end
|
|
30
31
|
end
|
|
31
32
|
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module HaloMspApi
|
|
4
|
+
module Resources
|
|
5
|
+
# Resource class for Products
|
|
6
|
+
class Products < Base
|
|
7
|
+
# GET /Item - List of Products
|
|
8
|
+
def products(params = {})
|
|
9
|
+
list_resource('Item', params)
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
# GET /Item/{id} - Get a specific Product
|
|
13
|
+
def product(id, params = {})
|
|
14
|
+
get_resource('Item', id, params)
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
# POST /Item - Create a new Product
|
|
18
|
+
def create_product(data)
|
|
19
|
+
create_resource('Item', data)
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
# PUT /Item/{id} - Update a Product
|
|
23
|
+
def update_product(id, data)
|
|
24
|
+
update_resource('Item', id, data)
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
# DELETE /Item/{id} - Delete a Product
|
|
28
|
+
def delete_product(id)
|
|
29
|
+
delete_resource('Item', id)
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
@@ -2,55 +2,56 @@
|
|
|
2
2
|
|
|
3
3
|
module HaloMspApi
|
|
4
4
|
module Resources
|
|
5
|
+
# Resource class for Purchase Orders
|
|
5
6
|
class PurchaseOrders < Base
|
|
6
7
|
# GET /PurchaseOrder - List of Purchase Orders
|
|
7
|
-
def
|
|
8
|
-
list_resource(
|
|
8
|
+
def purchase_orders(params = {})
|
|
9
|
+
list_resource('PurchaseOrder', params)
|
|
9
10
|
end
|
|
10
11
|
|
|
11
12
|
# GET /PurchaseOrder/{id} - Get a specific Purchase Order
|
|
12
|
-
def
|
|
13
|
-
get_resource(
|
|
13
|
+
def purchase_order(id, params = {})
|
|
14
|
+
get_resource('PurchaseOrder', id, params)
|
|
14
15
|
end
|
|
15
16
|
|
|
16
17
|
# POST /PurchaseOrder - Create a new Purchase Order
|
|
17
|
-
def
|
|
18
|
-
create_resource(
|
|
18
|
+
def create_purchase_order(data)
|
|
19
|
+
create_resource('PurchaseOrder', data)
|
|
19
20
|
end
|
|
20
21
|
|
|
21
22
|
# PUT /PurchaseOrder/{id} - Update a Purchase Order
|
|
22
|
-
def
|
|
23
|
-
update_resource(
|
|
23
|
+
def update_purchase_order(id, data)
|
|
24
|
+
update_resource('PurchaseOrder', id, data)
|
|
24
25
|
end
|
|
25
26
|
|
|
26
27
|
# DELETE /PurchaseOrder/{id} - Delete a Purchase Order
|
|
27
|
-
def
|
|
28
|
-
delete_resource(
|
|
28
|
+
def delete_purchase_order(id)
|
|
29
|
+
delete_resource('PurchaseOrder', id)
|
|
29
30
|
end
|
|
30
31
|
|
|
31
32
|
# POST /PurchaseOrder/Approval - Purchase Order approval
|
|
32
33
|
def approval(data)
|
|
33
|
-
post(resource_path(
|
|
34
|
+
post(resource_path('PurchaseOrder', nil, 'Approval'), data)
|
|
34
35
|
end
|
|
35
36
|
|
|
36
37
|
# GET /PurchaseOrder/Lines - Get Purchase Order lines
|
|
37
38
|
def lines(params = {})
|
|
38
|
-
get(resource_path(
|
|
39
|
+
get(resource_path('PurchaseOrder', nil, 'Lines'), params)
|
|
39
40
|
end
|
|
40
41
|
|
|
41
42
|
# GET /PurchaseOrder/NextRef - Get next Purchase Order reference
|
|
42
43
|
def next_ref(params = {})
|
|
43
|
-
get(resource_path(
|
|
44
|
+
get(resource_path('PurchaseOrder', nil, 'NextRef'), params)
|
|
44
45
|
end
|
|
45
46
|
|
|
46
47
|
# POST /PurchaseOrder/updatelines - Update Purchase Order lines
|
|
47
48
|
def update_lines(data)
|
|
48
|
-
post(resource_path(
|
|
49
|
+
post(resource_path('PurchaseOrder', nil, 'updatelines'), data)
|
|
49
50
|
end
|
|
50
51
|
|
|
51
52
|
# GET /PurchaseOrder/View - Get Purchase Order view
|
|
52
53
|
def view(params = {})
|
|
53
|
-
get(resource_path(
|
|
54
|
+
get(resource_path('PurchaseOrder', nil, 'View'), params)
|
|
54
55
|
end
|
|
55
56
|
end
|
|
56
57
|
end
|
|
@@ -2,45 +2,46 @@
|
|
|
2
2
|
|
|
3
3
|
module HaloMspApi
|
|
4
4
|
module Resources
|
|
5
|
+
# Resource class for Quotations
|
|
5
6
|
class Quotations < Base
|
|
6
7
|
# GET /Quotation - List of Quotations
|
|
7
|
-
def
|
|
8
|
-
list_resource(
|
|
8
|
+
def quotations(params = {})
|
|
9
|
+
list_resource('Quotation', params)
|
|
9
10
|
end
|
|
10
11
|
|
|
11
12
|
# GET /Quotation/{id} - Get a specific Quotation
|
|
12
|
-
def
|
|
13
|
-
get_resource(
|
|
13
|
+
def quotation(id, params = {})
|
|
14
|
+
get_resource('Quotation', id, params)
|
|
14
15
|
end
|
|
15
16
|
|
|
16
17
|
# POST /Quotation - Create a new Quotation
|
|
17
|
-
def
|
|
18
|
-
create_resource(
|
|
18
|
+
def create_quotation(data)
|
|
19
|
+
create_resource('Quotation', data)
|
|
19
20
|
end
|
|
20
21
|
|
|
21
22
|
# PUT /Quotation/{id} - Update a Quotation
|
|
22
|
-
def
|
|
23
|
-
update_resource(
|
|
23
|
+
def update_quotation(id, data)
|
|
24
|
+
update_resource('Quotation', id, data)
|
|
24
25
|
end
|
|
25
26
|
|
|
26
27
|
# DELETE /Quotation/{id} - Delete a Quotation
|
|
27
|
-
def
|
|
28
|
-
delete_resource(
|
|
28
|
+
def delete_quotation(id)
|
|
29
|
+
delete_resource('Quotation', id)
|
|
29
30
|
end
|
|
30
31
|
|
|
31
32
|
# POST /Quotation/Approval - Quotation approval
|
|
32
33
|
def approval(data)
|
|
33
|
-
post(resource_path(
|
|
34
|
+
post(resource_path('Quotation', nil, 'Approval'), data)
|
|
34
35
|
end
|
|
35
36
|
|
|
36
37
|
# GET /Quotation/Lines - Get Quotation lines
|
|
37
38
|
def lines(params = {})
|
|
38
|
-
get(resource_path(
|
|
39
|
+
get(resource_path('Quotation', nil, 'Lines'), params)
|
|
39
40
|
end
|
|
40
41
|
|
|
41
42
|
# GET /Quotation/View - Get Quotation view
|
|
42
43
|
def view(params = {})
|
|
43
|
-
get(resource_path(
|
|
44
|
+
get(resource_path('Quotation', nil, 'View'), params)
|
|
44
45
|
end
|
|
45
46
|
end
|
|
46
47
|
end
|
|
@@ -2,86 +2,87 @@
|
|
|
2
2
|
|
|
3
3
|
module HaloMspApi
|
|
4
4
|
module Resources
|
|
5
|
+
# Resource class for Reports
|
|
5
6
|
class Reports < Base
|
|
6
7
|
# GET /Report - List of Reports
|
|
7
|
-
def
|
|
8
|
-
list_resource(
|
|
8
|
+
def reports(params = {})
|
|
9
|
+
list_resource('Report', params)
|
|
9
10
|
end
|
|
10
11
|
|
|
11
12
|
# GET /Report/{id} - Get a specific Report
|
|
12
|
-
def
|
|
13
|
-
get_resource(
|
|
13
|
+
def report(id, params = {})
|
|
14
|
+
get_resource('Report', id, params)
|
|
14
15
|
end
|
|
15
16
|
|
|
16
17
|
# POST /Report - Create a new Report
|
|
17
|
-
def
|
|
18
|
-
create_resource(
|
|
18
|
+
def create_report(data)
|
|
19
|
+
create_resource('Report', data)
|
|
19
20
|
end
|
|
20
21
|
|
|
21
22
|
# PUT /Report/{id} - Update a Report
|
|
22
|
-
def
|
|
23
|
-
update_resource(
|
|
23
|
+
def update_report(id, data)
|
|
24
|
+
update_resource('Report', id, data)
|
|
24
25
|
end
|
|
25
26
|
|
|
26
27
|
# DELETE /Report/{id} - Delete a Report
|
|
27
|
-
def
|
|
28
|
-
delete_resource(
|
|
28
|
+
def delete_report(id)
|
|
29
|
+
delete_resource('Report', id)
|
|
29
30
|
end
|
|
30
31
|
|
|
31
32
|
# GET /Report/Bookmark - Get Report bookmarks
|
|
32
33
|
def bookmarks(params = {})
|
|
33
|
-
get(resource_path(
|
|
34
|
+
get(resource_path('Report', nil, 'Bookmark'), params)
|
|
34
35
|
end
|
|
35
36
|
|
|
36
37
|
# POST /Report/Bookmark - Create Report bookmark
|
|
37
38
|
def create_bookmark(data)
|
|
38
|
-
post(resource_path(
|
|
39
|
+
post(resource_path('Report', nil, 'Bookmark'), data)
|
|
39
40
|
end
|
|
40
41
|
|
|
41
42
|
# POST /Report/createpdf - Create Report PDF
|
|
42
43
|
def create_pdf(data)
|
|
43
|
-
post(resource_path(
|
|
44
|
+
post(resource_path('Report', nil, 'createpdf'), data)
|
|
44
45
|
end
|
|
45
46
|
|
|
46
47
|
# POST /Report/print - Print Report
|
|
47
|
-
def
|
|
48
|
-
post(resource_path(
|
|
48
|
+
def print_report(data)
|
|
49
|
+
post(resource_path('Report', nil, 'print'), data)
|
|
49
50
|
end
|
|
50
51
|
|
|
51
52
|
# GET /ReportData/{publishedid} - Get Report data
|
|
52
53
|
def data(published_id, params = {})
|
|
53
|
-
get("
|
|
54
|
+
get("ReportData/#{published_id}", params)
|
|
54
55
|
end
|
|
55
56
|
|
|
56
57
|
# Report Repository methods
|
|
57
58
|
# GET /ReportRepository - List Report repositories
|
|
58
59
|
def repositories(params = {})
|
|
59
|
-
get(
|
|
60
|
+
get('ReportRepository', params)
|
|
60
61
|
end
|
|
61
62
|
|
|
62
63
|
# GET /ReportRepository/{id} - Get specific Report repository
|
|
63
64
|
def repository(id, params = {})
|
|
64
|
-
get("
|
|
65
|
+
get("ReportRepository/#{id}", params)
|
|
65
66
|
end
|
|
66
67
|
|
|
67
68
|
# POST /ReportRepository - Create Report repository
|
|
68
69
|
def create_repository(data)
|
|
69
|
-
post(
|
|
70
|
+
post('ReportRepository', data)
|
|
70
71
|
end
|
|
71
72
|
|
|
72
73
|
# PUT /ReportRepository/{id} - Update Report repository
|
|
73
74
|
def update_repository(id, data)
|
|
74
|
-
put("
|
|
75
|
+
put("ReportRepository/#{id}", data)
|
|
75
76
|
end
|
|
76
77
|
|
|
77
78
|
# DELETE /ReportRepository/{id} - Delete Report repository
|
|
78
79
|
def delete_repository(id)
|
|
79
|
-
delete("
|
|
80
|
+
delete("ReportRepository/#{id}")
|
|
80
81
|
end
|
|
81
82
|
|
|
82
83
|
# GET /ReportRepository/ReportCategories - Get Report categories
|
|
83
84
|
def categories(params = {})
|
|
84
|
-
get(
|
|
85
|
+
get('ReportRepository/ReportCategories', params)
|
|
85
86
|
end
|
|
86
87
|
end
|
|
87
88
|
end
|
|
@@ -2,55 +2,56 @@
|
|
|
2
2
|
|
|
3
3
|
module HaloMspApi
|
|
4
4
|
module Resources
|
|
5
|
+
# Resource class for Sales Orders
|
|
5
6
|
class SalesOrders < Base
|
|
6
7
|
# GET /SalesOrder - List of Sales Orders
|
|
7
|
-
def
|
|
8
|
-
list_resource(
|
|
8
|
+
def sales_orders(params = {})
|
|
9
|
+
list_resource('SalesOrder', params)
|
|
9
10
|
end
|
|
10
11
|
|
|
11
12
|
# GET /SalesOrder/{id} - Get a specific Sales Order
|
|
12
|
-
def
|
|
13
|
-
get_resource(
|
|
13
|
+
def sales_order(id, params = {})
|
|
14
|
+
get_resource('SalesOrder', id, params)
|
|
14
15
|
end
|
|
15
16
|
|
|
16
17
|
# POST /SalesOrder - Create a new Sales Order
|
|
17
|
-
def
|
|
18
|
-
create_resource(
|
|
18
|
+
def create_sales_order(data)
|
|
19
|
+
create_resource('SalesOrder', data)
|
|
19
20
|
end
|
|
20
21
|
|
|
21
22
|
# PUT /SalesOrder/{id} - Update a Sales Order
|
|
22
|
-
def
|
|
23
|
-
update_resource(
|
|
23
|
+
def update_sales_order(id, data)
|
|
24
|
+
update_resource('SalesOrder', id, data)
|
|
24
25
|
end
|
|
25
26
|
|
|
26
27
|
# DELETE /SalesOrder/{id} - Delete a Sales Order
|
|
27
|
-
def
|
|
28
|
-
delete_resource(
|
|
28
|
+
def delete_sales_order(id)
|
|
29
|
+
delete_resource('SalesOrder', id)
|
|
29
30
|
end
|
|
30
31
|
|
|
31
32
|
# POST /SalesOrder/Approval - Sales Order approval
|
|
32
33
|
def approval(data)
|
|
33
|
-
post(resource_path(
|
|
34
|
+
post(resource_path('SalesOrder', nil, 'Approval'), data)
|
|
34
35
|
end
|
|
35
36
|
|
|
36
37
|
# GET /SalesOrder/Lines - Get Sales Order lines
|
|
37
38
|
def lines(params = {})
|
|
38
|
-
get(resource_path(
|
|
39
|
+
get(resource_path('SalesOrder', nil, 'Lines'), params)
|
|
39
40
|
end
|
|
40
41
|
|
|
41
42
|
# GET /SalesOrder/NextRef - Get next Sales Order reference
|
|
42
43
|
def next_ref(params = {})
|
|
43
|
-
get(resource_path(
|
|
44
|
+
get(resource_path('SalesOrder', nil, 'NextRef'), params)
|
|
44
45
|
end
|
|
45
46
|
|
|
46
47
|
# POST /SalesOrder/updatelines - Update Sales Order lines
|
|
47
48
|
def update_lines(data)
|
|
48
|
-
post(resource_path(
|
|
49
|
+
post(resource_path('SalesOrder', nil, 'updatelines'), data)
|
|
49
50
|
end
|
|
50
51
|
|
|
51
52
|
# GET /SalesOrder/View - Get Sales Order view
|
|
52
53
|
def view(params = {})
|
|
53
|
-
get(resource_path(
|
|
54
|
+
get(resource_path('SalesOrder', nil, 'View'), params)
|
|
54
55
|
end
|
|
55
56
|
end
|
|
56
57
|
end
|
|
@@ -2,175 +2,176 @@
|
|
|
2
2
|
|
|
3
3
|
module HaloMspApi
|
|
4
4
|
module Resources
|
|
5
|
+
# Resource class for Services
|
|
5
6
|
class Services < Base
|
|
6
7
|
# GET /Service - List of Services
|
|
7
|
-
def
|
|
8
|
-
list_resource(
|
|
8
|
+
def services(params = {})
|
|
9
|
+
list_resource('Service', params)
|
|
9
10
|
end
|
|
10
11
|
|
|
11
12
|
# GET /Service/{id} - Get a specific Service
|
|
12
|
-
def
|
|
13
|
-
get_resource(
|
|
13
|
+
def service(id, params = {})
|
|
14
|
+
get_resource('Service', id, params)
|
|
14
15
|
end
|
|
15
16
|
|
|
16
17
|
# POST /Service - Create a new Service
|
|
17
|
-
def
|
|
18
|
-
create_resource(
|
|
18
|
+
def create_service(data)
|
|
19
|
+
create_resource('Service', data)
|
|
19
20
|
end
|
|
20
21
|
|
|
21
22
|
# PUT /Service/{id} - Update a Service
|
|
22
|
-
def
|
|
23
|
-
update_resource(
|
|
23
|
+
def update_service(id, data)
|
|
24
|
+
update_resource('Service', id, data)
|
|
24
25
|
end
|
|
25
26
|
|
|
26
27
|
# DELETE /Service/{id} - Delete a Service
|
|
27
|
-
def
|
|
28
|
-
delete_resource(
|
|
28
|
+
def delete_service(id)
|
|
29
|
+
delete_resource('Service', id)
|
|
29
30
|
end
|
|
30
31
|
|
|
31
32
|
# POST /Service/unsubscribe - Unsubscribe from Service
|
|
32
33
|
def unsubscribe(data)
|
|
33
|
-
post(resource_path(
|
|
34
|
+
post(resource_path('Service', nil, 'unsubscribe'), data)
|
|
34
35
|
end
|
|
35
36
|
|
|
36
37
|
# Service Availability methods
|
|
37
38
|
# GET /ServiceAvailability - List Service availabilities
|
|
38
39
|
def availabilities(params = {})
|
|
39
|
-
get(
|
|
40
|
+
get('ServiceAvailability', params)
|
|
40
41
|
end
|
|
41
42
|
|
|
42
43
|
# GET /ServiceAvailability/{id} - Get specific Service availability
|
|
43
44
|
def availability(id, params = {})
|
|
44
|
-
get("
|
|
45
|
+
get("ServiceAvailability/#{id}", params)
|
|
45
46
|
end
|
|
46
47
|
|
|
47
48
|
# POST /ServiceAvailability - Create Service availability
|
|
48
49
|
def create_availability(data)
|
|
49
|
-
post(
|
|
50
|
+
post('ServiceAvailability', data)
|
|
50
51
|
end
|
|
51
52
|
|
|
52
53
|
# PUT /ServiceAvailability/{id} - Update Service availability
|
|
53
54
|
def update_availability(id, data)
|
|
54
|
-
put("
|
|
55
|
+
put("ServiceAvailability/#{id}", data)
|
|
55
56
|
end
|
|
56
57
|
|
|
57
58
|
# DELETE /ServiceAvailability/{id} - Delete Service availability
|
|
58
59
|
def delete_availability(id)
|
|
59
|
-
delete("
|
|
60
|
+
delete("ServiceAvailability/#{id}")
|
|
60
61
|
end
|
|
61
62
|
|
|
62
63
|
# Service Category methods
|
|
63
64
|
# GET /ServiceCategory - List Service categories
|
|
64
65
|
def categories(params = {})
|
|
65
|
-
get(
|
|
66
|
+
get('ServiceCategory', params)
|
|
66
67
|
end
|
|
67
68
|
|
|
68
69
|
# GET /ServiceCategory/{id} - Get specific Service category
|
|
69
70
|
def category(id, params = {})
|
|
70
|
-
get("
|
|
71
|
+
get("ServiceCategory/#{id}", params)
|
|
71
72
|
end
|
|
72
73
|
|
|
73
74
|
# POST /ServiceCategory - Create Service category
|
|
74
75
|
def create_category(data)
|
|
75
|
-
post(
|
|
76
|
+
post('ServiceCategory', data)
|
|
76
77
|
end
|
|
77
78
|
|
|
78
79
|
# PUT /ServiceCategory/{id} - Update Service category
|
|
79
80
|
def update_category(id, data)
|
|
80
|
-
put("
|
|
81
|
+
put("ServiceCategory/#{id}", data)
|
|
81
82
|
end
|
|
82
83
|
|
|
83
84
|
# DELETE /ServiceCategory/{id} - Delete Service category
|
|
84
85
|
def delete_category(id)
|
|
85
|
-
delete("
|
|
86
|
+
delete("ServiceCategory/#{id}")
|
|
86
87
|
end
|
|
87
88
|
|
|
88
89
|
# Service Request Details methods
|
|
89
90
|
# GET /ServiceRequestDetails - List Service request details
|
|
90
91
|
def request_details(params = {})
|
|
91
|
-
get(
|
|
92
|
+
get('ServiceRequestDetails', params)
|
|
92
93
|
end
|
|
93
94
|
|
|
94
95
|
# GET /ServiceRequestDetails/{id} - Get specific Service request details
|
|
95
96
|
def request_detail(id, params = {})
|
|
96
|
-
get("
|
|
97
|
+
get("ServiceRequestDetails/#{id}", params)
|
|
97
98
|
end
|
|
98
99
|
|
|
99
100
|
# POST /ServiceRequestDetails - Create Service request details
|
|
100
101
|
def create_request_detail(data)
|
|
101
|
-
post(
|
|
102
|
+
post('ServiceRequestDetails', data)
|
|
102
103
|
end
|
|
103
104
|
|
|
104
105
|
# PUT /ServiceRequestDetails/{id} - Update Service request details
|
|
105
106
|
def update_request_detail(id, data)
|
|
106
|
-
put("
|
|
107
|
+
put("ServiceRequestDetails/#{id}", data)
|
|
107
108
|
end
|
|
108
109
|
|
|
109
110
|
# DELETE /ServiceRequestDetails/{id} - Delete Service request details
|
|
110
111
|
def delete_request_detail(id)
|
|
111
|
-
delete("
|
|
112
|
+
delete("ServiceRequestDetails/#{id}")
|
|
112
113
|
end
|
|
113
114
|
|
|
114
115
|
# Service Restriction methods
|
|
115
116
|
# GET /ServiceRestriction - List Service restrictions
|
|
116
117
|
def restrictions(params = {})
|
|
117
|
-
get(
|
|
118
|
+
get('ServiceRestriction', params)
|
|
118
119
|
end
|
|
119
120
|
|
|
120
121
|
# POST /ServiceRestriction - Create Service restriction
|
|
121
122
|
def create_restriction(data)
|
|
122
|
-
post(
|
|
123
|
+
post('ServiceRestriction', data)
|
|
123
124
|
end
|
|
124
125
|
|
|
125
126
|
# Service Status methods
|
|
126
127
|
# GET /ServiceStatus - List Service statuses
|
|
127
128
|
def statuses(params = {})
|
|
128
|
-
get(
|
|
129
|
+
get('ServiceStatus', params)
|
|
129
130
|
end
|
|
130
131
|
|
|
131
132
|
# GET /ServiceStatus/{id} - Get specific Service status
|
|
132
133
|
def status(id, params = {})
|
|
133
|
-
get("
|
|
134
|
+
get("ServiceStatus/#{id}", params)
|
|
134
135
|
end
|
|
135
136
|
|
|
136
137
|
# POST /ServiceStatus - Create Service status
|
|
137
138
|
def create_status(data)
|
|
138
|
-
post(
|
|
139
|
+
post('ServiceStatus', data)
|
|
139
140
|
end
|
|
140
141
|
|
|
141
142
|
# PUT /ServiceStatus/{id} - Update Service status
|
|
142
143
|
def update_status(id, data)
|
|
143
|
-
put("
|
|
144
|
+
put("ServiceStatus/#{id}", data)
|
|
144
145
|
end
|
|
145
146
|
|
|
146
147
|
# DELETE /ServiceStatus/{id} - Delete Service status
|
|
147
148
|
def delete_status(id)
|
|
148
|
-
delete("
|
|
149
|
+
delete("ServiceStatus/#{id}")
|
|
149
150
|
end
|
|
150
151
|
|
|
151
152
|
# GET /ServiceStatus/Subscribe - List Service status subscriptions
|
|
152
153
|
def status_subscriptions(params = {})
|
|
153
|
-
get(
|
|
154
|
+
get('ServiceStatus/Subscribe', params)
|
|
154
155
|
end
|
|
155
156
|
|
|
156
157
|
# GET /ServiceStatus/Subscribe/{id} - Get specific Service status subscription
|
|
157
158
|
def status_subscription(id, params = {})
|
|
158
|
-
get("
|
|
159
|
+
get("ServiceStatus/Subscribe/#{id}", params)
|
|
159
160
|
end
|
|
160
161
|
|
|
161
162
|
# POST /ServiceStatus/Subscribe - Create Service status subscription
|
|
162
163
|
def create_status_subscription(data)
|
|
163
|
-
post(
|
|
164
|
+
post('ServiceStatus/Subscribe', data)
|
|
164
165
|
end
|
|
165
166
|
|
|
166
167
|
# PUT /ServiceStatus/Subscribe/{id} - Update Service status subscription
|
|
167
168
|
def update_status_subscription(id, data)
|
|
168
|
-
put("
|
|
169
|
+
put("ServiceStatus/Subscribe/#{id}", data)
|
|
169
170
|
end
|
|
170
171
|
|
|
171
172
|
# DELETE /ServiceStatus/Subscribe/{id} - Delete Service status subscription
|
|
172
173
|
def delete_status_subscription(id)
|
|
173
|
-
delete("
|
|
174
|
+
delete("ServiceStatus/Subscribe/#{id}")
|
|
174
175
|
end
|
|
175
176
|
end
|
|
176
177
|
end
|