gotransverse-tract-api 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gotransverse-tract-api/service/service.rb +203 -1
- data/lib/gotransverse-tract-api/service/service_device_inventory_item.rb +33 -1
- data/lib/gotransverse-tract-api/service/service_period.rb +40 -1
- data/lib/gotransverse-tract-api/service/service_price.rb +40 -1
- data/lib/gotransverse-tract-api/service/service_price_range.rb +19 -1
- data/lib/gotransverse-tract-api/service/service_resource.rb +108 -1
- data/lib/gotransverse-tract-api/service/service_resource_category.rb +28 -3
- data/lib/gotransverse-tract-api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf94ced1ef3355b7013e554b52a1bb7b957147f8
|
4
|
+
data.tar.gz: 154a3fcdbbb0cf3658fcf2a25fa114d5d08200a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ac1c420d185b90692f20d170b8a051f8457e414e22da4efab4c760c5e841a696e4fc58ad3b04bafe498bc1a39a4b8849cd2536f579d1875b8be6d3f16a42b91
|
7
|
+
data.tar.gz: 11eb9ff57374e4447a7d4c3b89339747adde26040dcbd20ada613b4a15c49c326e3b83417d259120bffaf28edaddeffd721a32fd4337cfeb5f4356080ea082f0
|
@@ -4,8 +4,210 @@ module GoTransverseTractApi
|
|
4
4
|
|
5
5
|
class Service
|
6
6
|
|
7
|
+
class << self
|
8
|
+
|
9
|
+
#
|
10
|
+
# @param {Long} eid
|
11
|
+
#
|
12
|
+
def self.find_by_eid eid
|
13
|
+
GoTransverseTractApi.get_response_for(self, {eid: eid})
|
14
|
+
end
|
15
|
+
|
16
|
+
#
|
17
|
+
# @param {Long} product_eid
|
18
|
+
#
|
19
|
+
def find_by_product_eid product_eid
|
20
|
+
GoTransverseTractApi.get_response_for(self, {product_eid: product_eid})
|
21
|
+
end
|
22
|
+
|
23
|
+
#
|
24
|
+
# @param {Long} custom_field_value_eid
|
25
|
+
#
|
26
|
+
def find_by_custom_field_value_eid custom_field_value_eid
|
27
|
+
GoTransverseTractApi.get_response_for(self, {custom_field_value_eid: custom_field_value_eid})
|
28
|
+
end
|
29
|
+
|
30
|
+
#
|
31
|
+
# @param {Long} parent_eid
|
32
|
+
#
|
33
|
+
def self.find_by_parent_eid parent_eid
|
34
|
+
GoTransverseTractApi.get_response_for(self, {parent_eid: parent_eid})
|
35
|
+
end
|
36
|
+
|
37
|
+
#
|
38
|
+
# @param {Long} billing_account_eid
|
39
|
+
#
|
40
|
+
def find_by_billing_account_eid billing_account_eid
|
41
|
+
GoTransverseTractApi.get_response_for(self, {billing_account_eid: billing_account_eid})
|
42
|
+
end
|
43
|
+
|
44
|
+
#
|
45
|
+
# @param {Long} agreement_eid
|
46
|
+
#
|
47
|
+
def find_by_agreement_eid agreement_eid
|
48
|
+
GoTransverseTractApi.get_response_for(self, {agreement_eid: agreement_eid})
|
49
|
+
end
|
50
|
+
|
51
|
+
#
|
52
|
+
# @param {Long} account_num
|
53
|
+
#
|
54
|
+
def find_by_account_num account_num
|
55
|
+
GoTransverseTractApi.get_response_for(self, {account_num: account_num})
|
56
|
+
end
|
57
|
+
|
58
|
+
#
|
59
|
+
# @param {Long} external_account_num
|
60
|
+
#
|
61
|
+
def find_by_external_account_num external_account_num
|
62
|
+
GoTransverseTractApi.get_response_for(self, {external_account_num: external_account_num})
|
63
|
+
end
|
64
|
+
|
65
|
+
#
|
66
|
+
# @param {Long} service_resource_identifier
|
67
|
+
#
|
68
|
+
def find_by_service_resource_identifier service_resource_identifier
|
69
|
+
GoTransverseTractApi.get_response_for(self, {service_resource_identifier: service_resource_identifier})
|
70
|
+
end
|
71
|
+
|
72
|
+
#
|
73
|
+
# @param {Long} renewal_count
|
74
|
+
#
|
75
|
+
def find_by_renewal_count renewal_count
|
76
|
+
GoTransverseTractApi.get_response_for(self, {renewal_count: renewal_count})
|
77
|
+
end
|
78
|
+
|
79
|
+
#
|
80
|
+
# @param {Long} eid
|
81
|
+
# @param {Nokogiri::XML::Document} service
|
82
|
+
#
|
83
|
+
def resume eid, service
|
84
|
+
GoTransverseTractApi.post_request_for(self, {eid: eid}, service.to_s, "resume")
|
85
|
+
end
|
86
|
+
|
87
|
+
#
|
88
|
+
# @param {Long} eid
|
89
|
+
# @param {Nokogiri::XML::Document} service
|
90
|
+
#
|
91
|
+
def suspend eid, service
|
92
|
+
GoTransverseTractApi.post_request_for(self, {eid: eid}, service.to_s, "suspend")
|
93
|
+
end
|
94
|
+
|
95
|
+
#
|
96
|
+
# @param {Long} eid
|
97
|
+
# @param {Nokogiri::XML::Document} service
|
98
|
+
#
|
99
|
+
def self.add_service_resource eid, service
|
100
|
+
GoTransverseTractApi.post_request_for(self, {eid: eid}, service.to_s, "addServiceResource")
|
101
|
+
end
|
102
|
+
|
103
|
+
#
|
104
|
+
# @param {Long} eid
|
105
|
+
# @param {Nokogiri::XML::Document} service
|
106
|
+
#
|
107
|
+
def self.remove_service_resource eid, service
|
108
|
+
GoTransverseTractApi.post_request_for(self, {eid: eid}, service.to_s, "removeServiceResource")
|
109
|
+
end
|
110
|
+
|
111
|
+
#
|
112
|
+
# @param {Long} eid
|
113
|
+
# @param {Nokogiri::XML::Document} service
|
114
|
+
#
|
115
|
+
def self.add_service_usage_rule_to_service eid, service
|
116
|
+
GoTransverseTractApi.post_request_for(self, {eid: eid}, service.to_s, "addServiceUsageRuleToService")
|
117
|
+
end
|
118
|
+
|
119
|
+
#
|
120
|
+
# @param {Long} eid
|
121
|
+
# @param {Nokogiri::XML::Document} service
|
122
|
+
#
|
123
|
+
def self.remove_service_usage_rule_from_service eid, service
|
124
|
+
GoTransverseTractApi.post_request_for(self, {eid: eid}, service.to_s, "removeServiceUsageRuleFromService")
|
125
|
+
end
|
126
|
+
|
127
|
+
#
|
128
|
+
# @param {Long} eid
|
129
|
+
# @param {Nokogiri::XML::Document} service
|
130
|
+
#
|
131
|
+
def self.add_agreement eid, service
|
132
|
+
GoTransverseTractApi.post_request_for(self, {eid: eid}, service.to_s, "addAgreement")
|
133
|
+
end
|
134
|
+
|
135
|
+
#
|
136
|
+
# @param {Long} eid
|
137
|
+
# @param {Nokogiri::XML::Document} service
|
138
|
+
#
|
139
|
+
def self.add_counter eid, service
|
140
|
+
GoTransverseTractApi.post_request_for(self, {eid: eid}, service.to_s, "addCounter")
|
141
|
+
end
|
142
|
+
|
143
|
+
#
|
144
|
+
# @param {Long} eid
|
145
|
+
# @param {Nokogiri::XML::Document} service
|
146
|
+
#
|
147
|
+
def self.add_custom_field_value eid, service
|
148
|
+
GoTransverseTractApi.post_request_for(self, {eid: eid}, service.to_s, "addCustomFieldValue")
|
149
|
+
end
|
150
|
+
|
151
|
+
#
|
152
|
+
# @param {Long} eid
|
153
|
+
# @param {Nokogiri::XML::Document} service
|
154
|
+
#
|
155
|
+
def self.remove_custom_field_value eid, service
|
156
|
+
GoTransverseTractApi.post_request_for(self, {eid: eid}, service.to_s, "removeCustomFieldValue")
|
157
|
+
end
|
158
|
+
|
159
|
+
#
|
160
|
+
# @param {Long} eid
|
161
|
+
# @param {Nokogiri::XML::Document} service
|
162
|
+
#
|
163
|
+
def self.add_discount_identifier eid, service
|
164
|
+
GoTransverseTractApi.post_request_for(self, {eid: eid}, service.to_s, "addDiscountIdentifier")
|
165
|
+
end
|
166
|
+
|
167
|
+
#
|
168
|
+
# @param {Long} eid
|
169
|
+
# @param {Nokogiri::XML::Document} service
|
170
|
+
#
|
171
|
+
def change_price eid, service
|
172
|
+
GoTransverseTractApi.post_request_for(self, {eid: eid}, service.to_s, "changePrice")
|
173
|
+
end
|
174
|
+
|
175
|
+
#
|
176
|
+
# @param {Long} eid
|
177
|
+
# @param {Nokogiri::XML::Document} service
|
178
|
+
#
|
179
|
+
def change_quantity eid, service
|
180
|
+
GoTransverseTractApi.post_request_for(self, {eid: eid}, service.to_s, "changeQuantity")
|
181
|
+
end
|
182
|
+
|
183
|
+
#
|
184
|
+
# @param {Long} eid
|
185
|
+
# @param {Nokogiri::XML::Document} service
|
186
|
+
#
|
187
|
+
def renew eid, service
|
188
|
+
GoTransverseTractApi.post_request_for(self, {eid: eid}, service.to_s, "renew")
|
189
|
+
end
|
190
|
+
|
191
|
+
#
|
192
|
+
# @param {Long} eid
|
193
|
+
# @param {Nokogiri::XML::Document} service
|
194
|
+
#
|
195
|
+
def deactivate eid, service
|
196
|
+
GoTransverseTractApi.post_request_for(self, {eid: eid}, service.to_s, "deactivate")
|
197
|
+
end
|
198
|
+
|
199
|
+
#
|
200
|
+
# @param {Long} eid
|
201
|
+
# @param {Nokogiri::XML::Document} service
|
202
|
+
#
|
203
|
+
def update eid, service
|
204
|
+
GoTransverseTractApi.put_request_for(self, {eid: eid}, service.to_s)
|
205
|
+
end
|
206
|
+
|
207
|
+
end
|
208
|
+
|
7
209
|
end
|
8
210
|
|
9
211
|
end
|
10
212
|
|
11
|
-
end
|
213
|
+
end
|
@@ -4,8 +4,40 @@ module GoTransverseTractApi
|
|
4
4
|
|
5
5
|
class ServiceDeviceInventoryItem
|
6
6
|
|
7
|
+
class << self
|
8
|
+
|
9
|
+
#
|
10
|
+
# @param {Long} eid
|
11
|
+
#
|
12
|
+
def self.find_by_eid eid
|
13
|
+
GoTransverseTractApi.get_response_for(self, {eid: eid})
|
14
|
+
end
|
15
|
+
|
16
|
+
#
|
17
|
+
# @param {Long} product_eid
|
18
|
+
#
|
19
|
+
def find_by_product_eid product_eid
|
20
|
+
GoTransverseTractApi.get_response_for(self, {product_eid: product_eid})
|
21
|
+
end
|
22
|
+
|
23
|
+
#
|
24
|
+
# @param {String} status
|
25
|
+
#
|
26
|
+
def find_by_status status
|
27
|
+
GoTransverseTractApi.get_response_for(self, {status: status})
|
28
|
+
end
|
29
|
+
|
30
|
+
#
|
31
|
+
# @param {Long} serial_number
|
32
|
+
#
|
33
|
+
def self.find_by_serial_number serial_number
|
34
|
+
GoTransverseTractApi.get_response_for(self, {serial_number: serial_number})
|
35
|
+
end
|
36
|
+
|
37
|
+
end
|
38
|
+
|
7
39
|
end
|
8
40
|
|
9
41
|
end
|
10
42
|
|
11
|
-
end
|
43
|
+
end
|
@@ -4,8 +4,47 @@ module GoTransverseTractApi
|
|
4
4
|
|
5
5
|
class ServicePeriod
|
6
6
|
|
7
|
+
class << self
|
8
|
+
|
9
|
+
#
|
10
|
+
# @param {Long} eid
|
11
|
+
#
|
12
|
+
def self.find_by_eid eid
|
13
|
+
GoTransverseTractApi.get_response_for(self, {eid: eid})
|
14
|
+
end
|
15
|
+
|
16
|
+
#
|
17
|
+
# @param {Long} service_eid
|
18
|
+
#
|
19
|
+
def find_by_service_eid service_eid
|
20
|
+
GoTransverseTractApi.get_response_for(self, {service_eid: service_eid})
|
21
|
+
end
|
22
|
+
|
23
|
+
#
|
24
|
+
# @param {Date} start_date
|
25
|
+
#
|
26
|
+
def find_by_start_date start_date
|
27
|
+
GoTransverseTractApi.get_response_for(self, {start_date: start_date})
|
28
|
+
end
|
29
|
+
|
30
|
+
#
|
31
|
+
# @param {Date} end_date
|
32
|
+
#
|
33
|
+
def find_by_end_date end_date
|
34
|
+
GoTransverseTractApi.get_response_for(self, {end_date: end_date})
|
35
|
+
end
|
36
|
+
|
37
|
+
#
|
38
|
+
# @param {Boolean} closed
|
39
|
+
#
|
40
|
+
def find_by_closed closed
|
41
|
+
GoTransverseTractApi.get_response_for(self, {closed: closed})
|
42
|
+
end
|
43
|
+
|
44
|
+
end
|
45
|
+
|
7
46
|
end
|
8
47
|
|
9
48
|
end
|
10
49
|
|
11
|
-
end
|
50
|
+
end
|
@@ -4,8 +4,47 @@ module GoTransverseTractApi
|
|
4
4
|
|
5
5
|
class ServicePrice
|
6
6
|
|
7
|
+
class << self
|
8
|
+
|
9
|
+
#
|
10
|
+
# @param {Long} eid
|
11
|
+
#
|
12
|
+
def self.find_by_eid eid
|
13
|
+
GoTransverseTractApi.get_response_for(self, {eid: eid})
|
14
|
+
end
|
15
|
+
|
16
|
+
#
|
17
|
+
# @param {Long} service_eid
|
18
|
+
#
|
19
|
+
def find_by_service_eid service_eid
|
20
|
+
GoTransverseTractApi.get_response_for(self, {service_eid: service_eid})
|
21
|
+
end
|
22
|
+
|
23
|
+
#
|
24
|
+
# @param {Date} start_date
|
25
|
+
#
|
26
|
+
def find_by_start_date start_date
|
27
|
+
GoTransverseTractApi.get_response_for(self, {start_date: start_date})
|
28
|
+
end
|
29
|
+
|
30
|
+
#
|
31
|
+
# @param {Date} end_date
|
32
|
+
#
|
33
|
+
def find_by_end_date end_date
|
34
|
+
GoTransverseTractApi.get_response_for(self, {end_date: end_date})
|
35
|
+
end
|
36
|
+
|
37
|
+
#
|
38
|
+
# @param {Long} recurrence_period
|
39
|
+
#
|
40
|
+
def find_by_recurrence_period recurrence_period
|
41
|
+
GoTransverseTractApi.get_response_for(self, {recurrence_period: recurrence_period})
|
42
|
+
end
|
43
|
+
|
44
|
+
end
|
45
|
+
|
7
46
|
end
|
8
47
|
|
9
48
|
end
|
10
49
|
|
11
|
-
end
|
50
|
+
end
|
@@ -4,8 +4,26 @@ module GoTransverseTractApi
|
|
4
4
|
|
5
5
|
class ServicePriceRange
|
6
6
|
|
7
|
+
class << self
|
8
|
+
|
9
|
+
#
|
10
|
+
# @param {Long} eid
|
11
|
+
#
|
12
|
+
def self.find_by_eid eid
|
13
|
+
GoTransverseTractApi.get_response_for(self, {eid: eid})
|
14
|
+
end
|
15
|
+
|
16
|
+
#
|
17
|
+
# @param {Long} service_price_eid
|
18
|
+
#
|
19
|
+
def find_by_service_price_eid service_price_eid
|
20
|
+
GoTransverseTractApi.get_response_for(self, {service_price_eid: service_price_eid})
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
24
|
+
|
7
25
|
end
|
8
26
|
|
9
27
|
end
|
10
28
|
|
11
|
-
end
|
29
|
+
end
|
@@ -4,8 +4,115 @@ module GoTransverseTractApi
|
|
4
4
|
|
5
5
|
class ServiceResource
|
6
6
|
|
7
|
+
class << self
|
8
|
+
|
9
|
+
#
|
10
|
+
# @param {Long} eid
|
11
|
+
#
|
12
|
+
def self.find_by_eid eid
|
13
|
+
GoTransverseTractApi.get_response_for(self, {eid: eid})
|
14
|
+
end
|
15
|
+
|
16
|
+
#
|
17
|
+
# @param {Long} service_eid
|
18
|
+
#
|
19
|
+
def find_by_service_eid service_eid
|
20
|
+
GoTransverseTractApi.get_response_for(self, {service_eid: service_eid})
|
21
|
+
end
|
22
|
+
|
23
|
+
#
|
24
|
+
# @param {Long} order_item_eid
|
25
|
+
#
|
26
|
+
def find_by_order_item_eid order_item_eid
|
27
|
+
GoTransverseTractApi.get_response_for(self, {order_item_eid: order_item_eid})
|
28
|
+
end
|
29
|
+
|
30
|
+
#
|
31
|
+
# @param {Long} service_resource_category_eid
|
32
|
+
#
|
33
|
+
def find_by_service_resource_category_eid service_resource_category_eid
|
34
|
+
GoTransverseTractApi.get_response_for(self, {service_resource_category_eid: service_resource_category_eid})
|
35
|
+
end
|
36
|
+
|
37
|
+
#
|
38
|
+
# @param {Long} identifier
|
39
|
+
#
|
40
|
+
def self.find_by_identifier identifier
|
41
|
+
GoTransverseTractApi.get_response_for(self, {identifier: identifier})
|
42
|
+
end
|
43
|
+
|
44
|
+
#
|
45
|
+
# @param {String} status
|
46
|
+
#
|
47
|
+
def find_by_status status
|
48
|
+
GoTransverseTractApi.get_response_for(self, {status: status})
|
49
|
+
end
|
50
|
+
|
51
|
+
#
|
52
|
+
# @param {String} description
|
53
|
+
#
|
54
|
+
def find_by_description description
|
55
|
+
GoTransverseTractApi.get_response_for(self, {description: description})
|
56
|
+
end
|
57
|
+
|
58
|
+
#
|
59
|
+
# @param {Nokogiri::XML::Document} service_resource
|
60
|
+
#
|
61
|
+
def request service_resource
|
62
|
+
GoTransverseTractApi.post_request_for(self, {}, service_resource.to_s, "request")
|
63
|
+
end
|
64
|
+
|
65
|
+
#
|
66
|
+
# @param {Long} eid
|
67
|
+
# @param {Nokogiri::XML::Document} service_resource
|
68
|
+
#
|
69
|
+
def change eid, service_resource
|
70
|
+
GoTransverseTractApi.post_request_for(self, {eid: eid}, service_resource.to_s, "change")
|
71
|
+
end
|
72
|
+
|
73
|
+
#
|
74
|
+
# @param {Long} eid
|
75
|
+
# @param {Nokogiri::XML::Document} service_resource
|
76
|
+
#
|
77
|
+
def deactivate eid, service_resource
|
78
|
+
GoTransverseTractApi.post_request_for(self, {eid: eid}, service_resource.to_s, "deactivate")
|
79
|
+
end
|
80
|
+
|
81
|
+
#
|
82
|
+
# @param {Nokogiri::XML::Document} service_resource
|
83
|
+
#
|
84
|
+
def create_service_resource service_resource
|
85
|
+
GoTransverseTractApi.post_request_for(self, {}, service_resource.to_s, "")
|
86
|
+
end
|
87
|
+
|
88
|
+
#
|
89
|
+
# @param {Long} eid
|
90
|
+
# @param {Nokogiri::XML::Document} service_resource
|
91
|
+
#
|
92
|
+
def update eid, service_resource
|
93
|
+
GoTransverseTractApi.put_response_for(self, {eid: eid}, service_resource.to_s)
|
94
|
+
end
|
95
|
+
|
96
|
+
#
|
97
|
+
# @param {Long} eid
|
98
|
+
# @param {Nokogiri::XML::Document} service_resource
|
99
|
+
#
|
100
|
+
def self.add_service_resource eid, service_resource
|
101
|
+
GoTransverseTractApi.post_request_for(self, {eid: eid}, service_resource.to_s, "addServiceResource")
|
102
|
+
end
|
103
|
+
|
104
|
+
#
|
105
|
+
# @param {Long} eid
|
106
|
+
# @param {Nokogiri::XML::Document} service_resource
|
107
|
+
#
|
108
|
+
def self.remove_service_resource eid, service_resource
|
109
|
+
GoTransverseTractApi.post_request_for(self, {eid: eid}, service_resource.to_s, "removeServiceResource")
|
110
|
+
end
|
111
|
+
|
112
|
+
end
|
113
|
+
|
7
114
|
end
|
8
115
|
|
9
116
|
end
|
10
117
|
|
11
|
-
end
|
118
|
+
end
|
@@ -4,12 +4,37 @@ module GoTransverseTractApi
|
|
4
4
|
|
5
5
|
class ServiceResourceCategory
|
6
6
|
|
7
|
-
|
8
|
-
|
7
|
+
class << self
|
8
|
+
|
9
|
+
def find_all
|
10
|
+
GoTransverseTractApi.get_response_for(self)
|
11
|
+
end
|
12
|
+
|
13
|
+
#
|
14
|
+
# @param {Long} eid
|
15
|
+
#
|
16
|
+
def find_by_eid eid
|
17
|
+
GoTransverseTractApi.get_response_for(self, {eid: eid})
|
18
|
+
end
|
19
|
+
|
20
|
+
#
|
21
|
+
# @param {String} name
|
22
|
+
#
|
23
|
+
def find_by_name name
|
24
|
+
GoTransverseTractApi.get_response_for(self, {name: name})
|
25
|
+
end
|
26
|
+
|
27
|
+
#
|
28
|
+
# @param {String} type
|
29
|
+
#
|
30
|
+
def find_by_type type
|
31
|
+
GoTransverseTractApi.get_response_for(self, {type: type})
|
32
|
+
end
|
33
|
+
|
9
34
|
end
|
10
35
|
|
11
36
|
end
|
12
37
|
|
13
38
|
end
|
14
39
|
|
15
|
-
end
|
40
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gotransverse-tract-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julien DeFrance
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-11-
|
12
|
+
date: 2015-11-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|