radar-api 0.14.0 → 2.0.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 +5 -5
- data/Gemfile.lock +10 -3
- data/Rakefile +4 -0
- data/gen/exporter_pb.rb +17 -0
- data/gen/exporter_services_pb.rb +22 -0
- data/gen/portfolios_pb.rb +58 -0
- data/gen/portfolios_services_pb.rb +22 -0
- data/lib/radar-api.rb +1 -13
- data/radar-api.gemspec +2 -1
- metadata +24 -33
- data/gen/radar/api/analyzer_controller.rb +0 -605
- data/gen/radar/api/calendar_service.rb +0 -200
- data/gen/radar/api/common_constants.rb +0 -13
- data/gen/radar/api/common_types.rb +0 -223
- data/gen/radar/api/data_server_constants.rb +0 -13
- data/gen/radar/api/data_server_types.rb +0 -97
- data/gen/radar/api/fund_service.rb +0 -192
- data/gen/radar/api/healthz.rb +0 -84
- data/gen/radar/api/healthz_constants.rb +0 -13
- data/gen/radar/api/healthz_types.rb +0 -19
- data/gen/radar/api/index_service.rb +0 -200
- data/gen/radar/api/integration_status_service.rb +0 -74
- data/gen/radar/api/portfolio_analyzer_constants.rb +0 -13
- data/gen/radar/api/portfolio_analyzer_types.rb +0 -661
- data/gen/radar/api/portfolio_service.rb +0 -194
- data/gen/radar/api/security_service.rb +0 -370
- data/gen/radar/api/transaction_constants.rb +0 -13
- data/gen/radar/api/transaction_file_importer.rb +0 -94
- data/gen/radar/api/transaction_file_importer_constants.rb +0 -13
- data/gen/radar/api/transaction_file_importer_types.rb +0 -38
- data/gen/radar/api/transaction_importer.rb +0 -252
- data/gen/radar/api/transaction_importer_constants.rb +0 -13
- data/gen/radar/api/transaction_importer_types.rb +0 -60
- data/gen/radar/api/transaction_types.rb +0 -302
- data/gen/radar_constants.rb +0 -9
- data/gen/radar_types.rb +0 -14
@@ -1,74 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Autogenerated by Thrift Compiler (0.12.0)
|
3
|
-
#
|
4
|
-
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
|
-
#
|
6
|
-
|
7
|
-
require 'thrift'
|
8
|
-
require 'radar/api/data_server_types'
|
9
|
-
|
10
|
-
module Radar
|
11
|
-
module Api
|
12
|
-
module IntegrationStatusService
|
13
|
-
class Client
|
14
|
-
include ::Thrift::Client
|
15
|
-
|
16
|
-
def report_status(message, user)
|
17
|
-
send_report_status(message, user)
|
18
|
-
end
|
19
|
-
|
20
|
-
def send_report_status(message, user)
|
21
|
-
send_oneway_message('report_status', Report_status_args, :message => message, :user => user)
|
22
|
-
end
|
23
|
-
end
|
24
|
-
|
25
|
-
class Processor
|
26
|
-
include ::Thrift::Processor
|
27
|
-
|
28
|
-
def process_report_status(seqid, iprot, oprot)
|
29
|
-
args = read_args(iprot, Report_status_args)
|
30
|
-
@handler.report_status(args.message, args.user)
|
31
|
-
return
|
32
|
-
end
|
33
|
-
|
34
|
-
end
|
35
|
-
|
36
|
-
# HELPER FUNCTIONS AND STRUCTURES
|
37
|
-
|
38
|
-
class Report_status_args
|
39
|
-
include ::Thrift::Struct, ::Thrift::Struct_Union
|
40
|
-
MESSAGE = 1
|
41
|
-
USER = 2
|
42
|
-
|
43
|
-
FIELDS = {
|
44
|
-
MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'},
|
45
|
-
USER => {:type => ::Thrift::Types::STRING, :name => 'user'}
|
46
|
-
}
|
47
|
-
|
48
|
-
def struct_fields; FIELDS; end
|
49
|
-
|
50
|
-
def validate
|
51
|
-
end
|
52
|
-
|
53
|
-
::Thrift::Struct.generate_accessors self
|
54
|
-
end
|
55
|
-
|
56
|
-
class Report_status_result
|
57
|
-
include ::Thrift::Struct, ::Thrift::Struct_Union
|
58
|
-
|
59
|
-
FIELDS = {
|
60
|
-
|
61
|
-
}
|
62
|
-
|
63
|
-
def struct_fields; FIELDS; end
|
64
|
-
|
65
|
-
def validate
|
66
|
-
end
|
67
|
-
|
68
|
-
::Thrift::Struct.generate_accessors self
|
69
|
-
end
|
70
|
-
|
71
|
-
end
|
72
|
-
|
73
|
-
end
|
74
|
-
end
|
@@ -1,661 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Autogenerated by Thrift Compiler (0.12.0)
|
3
|
-
#
|
4
|
-
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
|
-
#
|
6
|
-
|
7
|
-
require 'thrift'
|
8
|
-
require 'radar/api/common_types'
|
9
|
-
|
10
|
-
|
11
|
-
module Radar
|
12
|
-
module Api
|
13
|
-
module PieChartType
|
14
|
-
PERCENT = 0
|
15
|
-
VALUE = 1
|
16
|
-
VALUE_MAP = {0 => "PERCENT", 1 => "VALUE"}
|
17
|
-
VALID_VALUES = Set.new([PERCENT, VALUE]).freeze
|
18
|
-
end
|
19
|
-
|
20
|
-
module LineSeriesType
|
21
|
-
LINE = 0
|
22
|
-
AREA = 1
|
23
|
-
VALUE_MAP = {0 => "LINE", 1 => "AREA"}
|
24
|
-
VALID_VALUES = Set.new([LINE, AREA]).freeze
|
25
|
-
end
|
26
|
-
|
27
|
-
module Event
|
28
|
-
EACH_DAY = 0
|
29
|
-
EACH_MONTH = 1
|
30
|
-
CASH_FLOW = 2
|
31
|
-
FINISH = 3
|
32
|
-
VALUE_MAP = {0 => "EACH_DAY", 1 => "EACH_MONTH", 2 => "CASH_FLOW", 3 => "FINISH"}
|
33
|
-
VALID_VALUES = Set.new([EACH_DAY, EACH_MONTH, CASH_FLOW, FINISH]).freeze
|
34
|
-
end
|
35
|
-
|
36
|
-
module ResultType
|
37
|
-
TABLE = 0
|
38
|
-
PIE_CHART = 1
|
39
|
-
LINE_CHART = 2
|
40
|
-
BAR_CHART = 3
|
41
|
-
VALUE_MAP = {0 => "TABLE", 1 => "PIE_CHART", 2 => "LINE_CHART", 3 => "BAR_CHART"}
|
42
|
-
VALID_VALUES = Set.new([TABLE, PIE_CHART, LINE_CHART, BAR_CHART]).freeze
|
43
|
-
end
|
44
|
-
|
45
|
-
module CashFlowType
|
46
|
-
DIVIDEND = 0
|
47
|
-
INTEREST_ON_OWN_CAPITAL = 1
|
48
|
-
DEPOSIT = 2
|
49
|
-
WITHDRAWAL = 3
|
50
|
-
VALUE_MAP = {0 => "DIVIDEND", 1 => "INTEREST_ON_OWN_CAPITAL", 2 => "DEPOSIT", 3 => "WITHDRAWAL"}
|
51
|
-
VALID_VALUES = Set.new([DIVIDEND, INTEREST_ON_OWN_CAPITAL, DEPOSIT, WITHDRAWAL]).freeze
|
52
|
-
end
|
53
|
-
|
54
|
-
class Point; end
|
55
|
-
|
56
|
-
class PieSeries; end
|
57
|
-
|
58
|
-
class PieChart; end
|
59
|
-
|
60
|
-
class LineSeries; end
|
61
|
-
|
62
|
-
class LineChartOptions; end
|
63
|
-
|
64
|
-
class LineChart; end
|
65
|
-
|
66
|
-
class BarSeries; end
|
67
|
-
|
68
|
-
class BarChartOptions; end
|
69
|
-
|
70
|
-
class BarChart; end
|
71
|
-
|
72
|
-
class Text; end
|
73
|
-
|
74
|
-
class TableCellTypes < ::Thrift::Union; end
|
75
|
-
|
76
|
-
class TableCellContent; end
|
77
|
-
|
78
|
-
class TableCellFormat; end
|
79
|
-
|
80
|
-
class TableCell; end
|
81
|
-
|
82
|
-
class TableRow; end
|
83
|
-
|
84
|
-
class Table; end
|
85
|
-
|
86
|
-
class Result < ::Thrift::Union; end
|
87
|
-
|
88
|
-
class Position; end
|
89
|
-
|
90
|
-
class Settlement < ::Thrift::Union; end
|
91
|
-
|
92
|
-
class Provision; end
|
93
|
-
|
94
|
-
class Portfolio; end
|
95
|
-
|
96
|
-
class AnalyzerConfig; end
|
97
|
-
|
98
|
-
class CashFlow; end
|
99
|
-
|
100
|
-
class Point
|
101
|
-
include ::Thrift::Struct, ::Thrift::Struct_Union
|
102
|
-
X = 1
|
103
|
-
Y = 2
|
104
|
-
|
105
|
-
FIELDS = {
|
106
|
-
X => {:type => ::Thrift::Types::I64, :name => 'x'},
|
107
|
-
Y => {:type => ::Thrift::Types::DOUBLE, :name => 'y'}
|
108
|
-
}
|
109
|
-
|
110
|
-
def struct_fields; FIELDS; end
|
111
|
-
|
112
|
-
def validate
|
113
|
-
end
|
114
|
-
|
115
|
-
::Thrift::Struct.generate_accessors self
|
116
|
-
end
|
117
|
-
|
118
|
-
class PieSeries
|
119
|
-
include ::Thrift::Struct, ::Thrift::Struct_Union
|
120
|
-
NAME = 1
|
121
|
-
VALUE = 2
|
122
|
-
|
123
|
-
FIELDS = {
|
124
|
-
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
125
|
-
VALUE => {:type => ::Thrift::Types::DOUBLE, :name => 'value'}
|
126
|
-
}
|
127
|
-
|
128
|
-
def struct_fields; FIELDS; end
|
129
|
-
|
130
|
-
def validate
|
131
|
-
end
|
132
|
-
|
133
|
-
::Thrift::Struct.generate_accessors self
|
134
|
-
end
|
135
|
-
|
136
|
-
class PieChart
|
137
|
-
include ::Thrift::Struct, ::Thrift::Struct_Union
|
138
|
-
TITLE = 1
|
139
|
-
TYPE = 2
|
140
|
-
SERIES = 3
|
141
|
-
|
142
|
-
FIELDS = {
|
143
|
-
TITLE => {:type => ::Thrift::Types::STRING, :name => 'title'},
|
144
|
-
TYPE => {:type => ::Thrift::Types::I32, :name => 'type', :default => 1, :enum_class => ::Radar::Api::PieChartType},
|
145
|
-
SERIES => {:type => ::Thrift::Types::LIST, :name => 'series', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Radar::Api::PieSeries}}
|
146
|
-
}
|
147
|
-
|
148
|
-
def struct_fields; FIELDS; end
|
149
|
-
|
150
|
-
def validate
|
151
|
-
unless @type.nil? || ::Radar::Api::PieChartType::VALID_VALUES.include?(@type)
|
152
|
-
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field type!')
|
153
|
-
end
|
154
|
-
end
|
155
|
-
|
156
|
-
::Thrift::Struct.generate_accessors self
|
157
|
-
end
|
158
|
-
|
159
|
-
class LineSeries
|
160
|
-
include ::Thrift::Struct, ::Thrift::Struct_Union
|
161
|
-
NAME = 1
|
162
|
-
POINTS = 2
|
163
|
-
TYPE = 3
|
164
|
-
|
165
|
-
FIELDS = {
|
166
|
-
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
167
|
-
POINTS => {:type => ::Thrift::Types::LIST, :name => 'points', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Radar::Api::Point}},
|
168
|
-
TYPE => {:type => ::Thrift::Types::I32, :name => 'type', :default => 0, :enum_class => ::Radar::Api::LineSeriesType}
|
169
|
-
}
|
170
|
-
|
171
|
-
def struct_fields; FIELDS; end
|
172
|
-
|
173
|
-
def validate
|
174
|
-
unless @type.nil? || ::Radar::Api::LineSeriesType::VALID_VALUES.include?(@type)
|
175
|
-
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field type!')
|
176
|
-
end
|
177
|
-
end
|
178
|
-
|
179
|
-
::Thrift::Struct.generate_accessors self
|
180
|
-
end
|
181
|
-
|
182
|
-
class LineChartOptions
|
183
|
-
include ::Thrift::Struct, ::Thrift::Struct_Union
|
184
|
-
STACKED = 1
|
185
|
-
COMPARE = 2
|
186
|
-
|
187
|
-
FIELDS = {
|
188
|
-
STACKED => {:type => ::Thrift::Types::BOOL, :name => 'stacked'},
|
189
|
-
COMPARE => {:type => ::Thrift::Types::BOOL, :name => 'compare'}
|
190
|
-
}
|
191
|
-
|
192
|
-
def struct_fields; FIELDS; end
|
193
|
-
|
194
|
-
def validate
|
195
|
-
end
|
196
|
-
|
197
|
-
::Thrift::Struct.generate_accessors self
|
198
|
-
end
|
199
|
-
|
200
|
-
class LineChart
|
201
|
-
include ::Thrift::Struct, ::Thrift::Struct_Union
|
202
|
-
TITLE = 1
|
203
|
-
SERIES = 2
|
204
|
-
OPTIONS = 3
|
205
|
-
|
206
|
-
FIELDS = {
|
207
|
-
TITLE => {:type => ::Thrift::Types::STRING, :name => 'title'},
|
208
|
-
SERIES => {:type => ::Thrift::Types::LIST, :name => 'series', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Radar::Api::LineSeries}},
|
209
|
-
OPTIONS => {:type => ::Thrift::Types::STRUCT, :name => 'options', :class => ::Radar::Api::LineChartOptions}
|
210
|
-
}
|
211
|
-
|
212
|
-
def struct_fields; FIELDS; end
|
213
|
-
|
214
|
-
def validate
|
215
|
-
end
|
216
|
-
|
217
|
-
::Thrift::Struct.generate_accessors self
|
218
|
-
end
|
219
|
-
|
220
|
-
class BarSeries
|
221
|
-
include ::Thrift::Struct, ::Thrift::Struct_Union
|
222
|
-
NAME = 1
|
223
|
-
DATA = 2
|
224
|
-
STACK_NAME = 3
|
225
|
-
|
226
|
-
FIELDS = {
|
227
|
-
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
228
|
-
DATA => {:type => ::Thrift::Types::LIST, :name => 'data', :element => {:type => ::Thrift::Types::DOUBLE}},
|
229
|
-
# Criado na versão 0.2.2.
|
230
|
-
#
|
231
|
-
# Só é necessário se <code>BarChart.options.stacked = true</code> e a intenção for agrupar as pilhas.
|
232
|
-
STACK_NAME => {:type => ::Thrift::Types::STRING, :name => 'stack_name', :optional => true}
|
233
|
-
}
|
234
|
-
|
235
|
-
def struct_fields; FIELDS; end
|
236
|
-
|
237
|
-
def validate
|
238
|
-
end
|
239
|
-
|
240
|
-
::Thrift::Struct.generate_accessors self
|
241
|
-
end
|
242
|
-
|
243
|
-
# Criado na versão 0.2.2.
|
244
|
-
class BarChartOptions
|
245
|
-
include ::Thrift::Struct, ::Thrift::Struct_Union
|
246
|
-
STACKED = 1
|
247
|
-
PERCENT = 2
|
248
|
-
Y_AXIS_TITLE = 4
|
249
|
-
|
250
|
-
FIELDS = {
|
251
|
-
STACKED => {:type => ::Thrift::Types::BOOL, :name => 'stacked', :default => false},
|
252
|
-
PERCENT => {:type => ::Thrift::Types::BOOL, :name => 'percent', :default => false},
|
253
|
-
Y_AXIS_TITLE => {:type => ::Thrift::Types::STRING, :name => 'y_axis_title', :optional => true}
|
254
|
-
}
|
255
|
-
|
256
|
-
def struct_fields; FIELDS; end
|
257
|
-
|
258
|
-
def validate
|
259
|
-
end
|
260
|
-
|
261
|
-
::Thrift::Struct.generate_accessors self
|
262
|
-
end
|
263
|
-
|
264
|
-
class BarChart
|
265
|
-
include ::Thrift::Struct, ::Thrift::Struct_Union
|
266
|
-
TITLE = 1
|
267
|
-
SERIES = 2
|
268
|
-
CATEGORIES = 3
|
269
|
-
OPTIONS = 4
|
270
|
-
|
271
|
-
FIELDS = {
|
272
|
-
TITLE => {:type => ::Thrift::Types::STRING, :name => 'title'},
|
273
|
-
SERIES => {:type => ::Thrift::Types::LIST, :name => 'series', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Radar::Api::BarSeries}},
|
274
|
-
CATEGORIES => {:type => ::Thrift::Types::LIST, :name => 'categories', :element => {:type => ::Thrift::Types::STRING}},
|
275
|
-
# Criado na versão 0.2.2.
|
276
|
-
OPTIONS => {:type => ::Thrift::Types::STRUCT, :name => 'options', :class => ::Radar::Api::BarChartOptions}
|
277
|
-
}
|
278
|
-
|
279
|
-
def struct_fields; FIELDS; end
|
280
|
-
|
281
|
-
def validate
|
282
|
-
end
|
283
|
-
|
284
|
-
::Thrift::Struct.generate_accessors self
|
285
|
-
end
|
286
|
-
|
287
|
-
class Text
|
288
|
-
include ::Thrift::Struct, ::Thrift::Struct_Union
|
289
|
-
TITLE = 1
|
290
|
-
CONTENT = 2
|
291
|
-
|
292
|
-
FIELDS = {
|
293
|
-
TITLE => {:type => ::Thrift::Types::STRING, :name => 'title'},
|
294
|
-
CONTENT => {:type => ::Thrift::Types::STRING, :name => 'content'}
|
295
|
-
}
|
296
|
-
|
297
|
-
def struct_fields; FIELDS; end
|
298
|
-
|
299
|
-
def validate
|
300
|
-
end
|
301
|
-
|
302
|
-
::Thrift::Struct.generate_accessors self
|
303
|
-
end
|
304
|
-
|
305
|
-
class TableCellTypes < ::Thrift::Union
|
306
|
-
include ::Thrift::Struct_Union
|
307
|
-
class << self
|
308
|
-
def text(val)
|
309
|
-
TableCellTypes.new(:text, val)
|
310
|
-
end
|
311
|
-
|
312
|
-
def markdown(val)
|
313
|
-
TableCellTypes.new(:markdown, val)
|
314
|
-
end
|
315
|
-
|
316
|
-
def percent(val)
|
317
|
-
TableCellTypes.new(:percent, val)
|
318
|
-
end
|
319
|
-
|
320
|
-
def currency(val)
|
321
|
-
TableCellTypes.new(:currency, val)
|
322
|
-
end
|
323
|
-
|
324
|
-
def number(val)
|
325
|
-
TableCellTypes.new(:number, val)
|
326
|
-
end
|
327
|
-
|
328
|
-
def percentage_point(val)
|
329
|
-
TableCellTypes.new(:percentage_point, val)
|
330
|
-
end
|
331
|
-
end
|
332
|
-
|
333
|
-
TEXT = 1
|
334
|
-
MARKDOWN = 6
|
335
|
-
PERCENT = 2
|
336
|
-
CURRENCY = 3
|
337
|
-
NUMBER = 4
|
338
|
-
PERCENTAGE_POINT = 5
|
339
|
-
|
340
|
-
FIELDS = {
|
341
|
-
TEXT => {:type => ::Thrift::Types::STRING, :name => 'text', :optional => true},
|
342
|
-
# Criado na versão 0.8.1.
|
343
|
-
MARKDOWN => {:type => ::Thrift::Types::STRING, :name => 'markdown', :optional => true},
|
344
|
-
PERCENT => {:type => ::Thrift::Types::DOUBLE, :name => 'percent', :optional => true},
|
345
|
-
CURRENCY => {:type => ::Thrift::Types::DOUBLE, :name => 'currency', :optional => true},
|
346
|
-
NUMBER => {:type => ::Thrift::Types::DOUBLE, :name => 'number', :optional => true},
|
347
|
-
PERCENTAGE_POINT => {:type => ::Thrift::Types::DOUBLE, :name => 'percentage_point', :optional => true}
|
348
|
-
}
|
349
|
-
|
350
|
-
def struct_fields; FIELDS; end
|
351
|
-
|
352
|
-
def validate
|
353
|
-
raise(StandardError, 'Union fields are not set.') if get_set_field.nil? || get_value.nil?
|
354
|
-
end
|
355
|
-
|
356
|
-
::Thrift::Union.generate_accessors self
|
357
|
-
end
|
358
|
-
|
359
|
-
class TableCellContent
|
360
|
-
include ::Thrift::Struct, ::Thrift::Struct_Union
|
361
|
-
TYPE = 1
|
362
|
-
STRIP_INSIGNIFICANT_ZEROS = 2
|
363
|
-
|
364
|
-
FIELDS = {
|
365
|
-
TYPE => {:type => ::Thrift::Types::STRUCT, :name => 'type', :class => ::Radar::Api::TableCellTypes},
|
366
|
-
STRIP_INSIGNIFICANT_ZEROS => {:type => ::Thrift::Types::BOOL, :name => 'strip_insignificant_zeros', :default => false}
|
367
|
-
}
|
368
|
-
|
369
|
-
def struct_fields; FIELDS; end
|
370
|
-
|
371
|
-
def validate
|
372
|
-
end
|
373
|
-
|
374
|
-
::Thrift::Struct.generate_accessors self
|
375
|
-
end
|
376
|
-
|
377
|
-
class TableCellFormat
|
378
|
-
include ::Thrift::Struct, ::Thrift::Struct_Union
|
379
|
-
BOLD = 1
|
380
|
-
ITALIC = 2
|
381
|
-
COLOR = 3
|
382
|
-
COLSPAN = 4
|
383
|
-
ROWSPAN = 5
|
384
|
-
|
385
|
-
FIELDS = {
|
386
|
-
BOLD => {:type => ::Thrift::Types::BOOL, :name => 'bold'},
|
387
|
-
ITALIC => {:type => ::Thrift::Types::BOOL, :name => 'italic'},
|
388
|
-
COLOR => {:type => ::Thrift::Types::I32, :name => 'color'},
|
389
|
-
COLSPAN => {:type => ::Thrift::Types::I16, :name => 'colspan', :default => 1},
|
390
|
-
ROWSPAN => {:type => ::Thrift::Types::I16, :name => 'rowspan', :default => 1}
|
391
|
-
}
|
392
|
-
|
393
|
-
def struct_fields; FIELDS; end
|
394
|
-
|
395
|
-
def validate
|
396
|
-
end
|
397
|
-
|
398
|
-
::Thrift::Struct.generate_accessors self
|
399
|
-
end
|
400
|
-
|
401
|
-
class TableCell
|
402
|
-
include ::Thrift::Struct, ::Thrift::Struct_Union
|
403
|
-
CONTENT = 1
|
404
|
-
FORMAT = 2
|
405
|
-
|
406
|
-
FIELDS = {
|
407
|
-
CONTENT => {:type => ::Thrift::Types::STRUCT, :name => 'content', :class => ::Radar::Api::TableCellContent},
|
408
|
-
FORMAT => {:type => ::Thrift::Types::STRUCT, :name => 'format', :class => ::Radar::Api::TableCellFormat}
|
409
|
-
}
|
410
|
-
|
411
|
-
def struct_fields; FIELDS; end
|
412
|
-
|
413
|
-
def validate
|
414
|
-
end
|
415
|
-
|
416
|
-
::Thrift::Struct.generate_accessors self
|
417
|
-
end
|
418
|
-
|
419
|
-
class TableRow
|
420
|
-
include ::Thrift::Struct, ::Thrift::Struct_Union
|
421
|
-
CELLS = 1
|
422
|
-
|
423
|
-
FIELDS = {
|
424
|
-
CELLS => {:type => ::Thrift::Types::LIST, :name => 'cells', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Radar::Api::TableCell}}
|
425
|
-
}
|
426
|
-
|
427
|
-
def struct_fields; FIELDS; end
|
428
|
-
|
429
|
-
def validate
|
430
|
-
end
|
431
|
-
|
432
|
-
::Thrift::Struct.generate_accessors self
|
433
|
-
end
|
434
|
-
|
435
|
-
class Table
|
436
|
-
include ::Thrift::Struct, ::Thrift::Struct_Union
|
437
|
-
TITLE = 1
|
438
|
-
MAX_HEIGHT = 5
|
439
|
-
HEADER = 2
|
440
|
-
BODY = 3
|
441
|
-
FOOTER = 4
|
442
|
-
|
443
|
-
FIELDS = {
|
444
|
-
TITLE => {:type => ::Thrift::Types::STRING, :name => 'title'},
|
445
|
-
# Criado na versão 0.8.2.
|
446
|
-
MAX_HEIGHT => {:type => ::Thrift::Types::I16, :name => 'max_height'},
|
447
|
-
HEADER => {:type => ::Thrift::Types::LIST, :name => 'header', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Radar::Api::TableRow}},
|
448
|
-
BODY => {:type => ::Thrift::Types::LIST, :name => 'body', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Radar::Api::TableRow}},
|
449
|
-
FOOTER => {:type => ::Thrift::Types::LIST, :name => 'footer', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Radar::Api::TableRow}}
|
450
|
-
}
|
451
|
-
|
452
|
-
def struct_fields; FIELDS; end
|
453
|
-
|
454
|
-
def validate
|
455
|
-
end
|
456
|
-
|
457
|
-
::Thrift::Struct.generate_accessors self
|
458
|
-
end
|
459
|
-
|
460
|
-
class Result < ::Thrift::Union
|
461
|
-
include ::Thrift::Struct_Union
|
462
|
-
class << self
|
463
|
-
def table(val)
|
464
|
-
Result.new(:table, val)
|
465
|
-
end
|
466
|
-
|
467
|
-
def pie_chart(val)
|
468
|
-
Result.new(:pie_chart, val)
|
469
|
-
end
|
470
|
-
|
471
|
-
def line_chart(val)
|
472
|
-
Result.new(:line_chart, val)
|
473
|
-
end
|
474
|
-
|
475
|
-
def bar_chart(val)
|
476
|
-
Result.new(:bar_chart, val)
|
477
|
-
end
|
478
|
-
end
|
479
|
-
|
480
|
-
TABLE = 1
|
481
|
-
PIE_CHART = 2
|
482
|
-
LINE_CHART = 3
|
483
|
-
BAR_CHART = 4
|
484
|
-
|
485
|
-
FIELDS = {
|
486
|
-
TABLE => {:type => ::Thrift::Types::STRUCT, :name => 'table', :class => ::Radar::Api::Table, :optional => true},
|
487
|
-
PIE_CHART => {:type => ::Thrift::Types::STRUCT, :name => 'pie_chart', :class => ::Radar::Api::PieChart, :optional => true},
|
488
|
-
LINE_CHART => {:type => ::Thrift::Types::STRUCT, :name => 'line_chart', :class => ::Radar::Api::LineChart, :optional => true},
|
489
|
-
BAR_CHART => {:type => ::Thrift::Types::STRUCT, :name => 'bar_chart', :class => ::Radar::Api::BarChart, :optional => true}
|
490
|
-
}
|
491
|
-
|
492
|
-
def struct_fields; FIELDS; end
|
493
|
-
|
494
|
-
def validate
|
495
|
-
raise(StandardError, 'Union fields are not set.') if get_set_field.nil? || get_value.nil?
|
496
|
-
end
|
497
|
-
|
498
|
-
::Thrift::Union.generate_accessors self
|
499
|
-
end
|
500
|
-
|
501
|
-
class Position
|
502
|
-
include ::Thrift::Struct, ::Thrift::Struct_Union
|
503
|
-
ID = 1
|
504
|
-
SHORT_NAME = 2
|
505
|
-
VALUE = 3
|
506
|
-
RENTABILITY = 4
|
507
|
-
AVG_PRICE = 5
|
508
|
-
SHARES = 6
|
509
|
-
PAID_VALUE = 7
|
510
|
-
CURRENT_PRICE = 8
|
511
|
-
|
512
|
-
FIELDS = {
|
513
|
-
ID => {:type => ::Thrift::Types::STRUCT, :name => 'id', :class => ::Radar::Api::SecurityId},
|
514
|
-
SHORT_NAME => {:type => ::Thrift::Types::STRING, :name => 'short_name'},
|
515
|
-
VALUE => {:type => ::Thrift::Types::DOUBLE, :name => 'value'},
|
516
|
-
RENTABILITY => {:type => ::Thrift::Types::DOUBLE, :name => 'rentability'},
|
517
|
-
AVG_PRICE => {:type => ::Thrift::Types::DOUBLE, :name => 'avg_price'},
|
518
|
-
SHARES => {:type => ::Thrift::Types::DOUBLE, :name => 'shares'},
|
519
|
-
PAID_VALUE => {:type => ::Thrift::Types::DOUBLE, :name => 'paid_value'},
|
520
|
-
# Criado na versão 0.8.3
|
521
|
-
CURRENT_PRICE => {:type => ::Thrift::Types::DOUBLE, :name => 'current_price'}
|
522
|
-
}
|
523
|
-
|
524
|
-
def struct_fields; FIELDS; end
|
525
|
-
|
526
|
-
def validate
|
527
|
-
end
|
528
|
-
|
529
|
-
::Thrift::Struct.generate_accessors self
|
530
|
-
end
|
531
|
-
|
532
|
-
# Criado na versão 0.2.1
|
533
|
-
class Settlement < ::Thrift::Union
|
534
|
-
include ::Thrift::Struct_Union
|
535
|
-
class << self
|
536
|
-
def date(val)
|
537
|
-
Settlement.new(:date, val)
|
538
|
-
end
|
539
|
-
|
540
|
-
def period(val)
|
541
|
-
Settlement.new(:period, val)
|
542
|
-
end
|
543
|
-
end
|
544
|
-
|
545
|
-
DATE = 1
|
546
|
-
PERIOD = 2
|
547
|
-
|
548
|
-
FIELDS = {
|
549
|
-
DATE => {:type => ::Thrift::Types::I64, :name => 'date', :optional => true},
|
550
|
-
PERIOD => {:type => ::Thrift::Types::I16, :name => 'period', :optional => true}
|
551
|
-
}
|
552
|
-
|
553
|
-
def struct_fields; FIELDS; end
|
554
|
-
|
555
|
-
def validate
|
556
|
-
raise(StandardError, 'Union fields are not set.') if get_set_field.nil? || get_value.nil?
|
557
|
-
end
|
558
|
-
|
559
|
-
::Thrift::Union.generate_accessors self
|
560
|
-
end
|
561
|
-
|
562
|
-
# Criado na versão 0.2.1
|
563
|
-
class Provision
|
564
|
-
include ::Thrift::Struct, ::Thrift::Struct_Union
|
565
|
-
VALUE = 1
|
566
|
-
DESCRIPTION = 2
|
567
|
-
SETTLEMENT = 3
|
568
|
-
|
569
|
-
FIELDS = {
|
570
|
-
VALUE => {:type => ::Thrift::Types::DOUBLE, :name => 'value'},
|
571
|
-
DESCRIPTION => {:type => ::Thrift::Types::STRING, :name => 'description'},
|
572
|
-
SETTLEMENT => {:type => ::Thrift::Types::STRUCT, :name => 'settlement', :class => ::Radar::Api::Settlement}
|
573
|
-
}
|
574
|
-
|
575
|
-
def struct_fields; FIELDS; end
|
576
|
-
|
577
|
-
def validate
|
578
|
-
end
|
579
|
-
|
580
|
-
::Thrift::Struct.generate_accessors self
|
581
|
-
end
|
582
|
-
|
583
|
-
class Portfolio
|
584
|
-
include ::Thrift::Struct, ::Thrift::Struct_Union
|
585
|
-
DATE = 1
|
586
|
-
POSITIONS = 2
|
587
|
-
RENTABILITY = 3
|
588
|
-
NAV = 4
|
589
|
-
CASH = 5
|
590
|
-
PROVISIONS = 6
|
591
|
-
|
592
|
-
FIELDS = {
|
593
|
-
DATE => {:type => ::Thrift::Types::I64, :name => 'date'},
|
594
|
-
POSITIONS => {:type => ::Thrift::Types::LIST, :name => 'positions', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Radar::Api::Position}},
|
595
|
-
RENTABILITY => {:type => ::Thrift::Types::DOUBLE, :name => 'rentability'},
|
596
|
-
NAV => {:type => ::Thrift::Types::DOUBLE, :name => 'nav'},
|
597
|
-
CASH => {:type => ::Thrift::Types::DOUBLE, :name => 'cash'},
|
598
|
-
# Criado na versão 0.2.1
|
599
|
-
PROVISIONS => {:type => ::Thrift::Types::LIST, :name => 'provisions', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Radar::Api::Provision}}
|
600
|
-
}
|
601
|
-
|
602
|
-
def struct_fields; FIELDS; end
|
603
|
-
|
604
|
-
def validate
|
605
|
-
end
|
606
|
-
|
607
|
-
::Thrift::Struct.generate_accessors self
|
608
|
-
end
|
609
|
-
|
610
|
-
class AnalyzerConfig
|
611
|
-
include ::Thrift::Struct, ::Thrift::Struct_Union
|
612
|
-
ID = 1
|
613
|
-
NAME = 2
|
614
|
-
RESULT_TYPE = 3
|
615
|
-
ACCEPTED_EVENTS = 4
|
616
|
-
|
617
|
-
FIELDS = {
|
618
|
-
ID => {:type => ::Thrift::Types::STRING, :name => 'id'},
|
619
|
-
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
620
|
-
RESULT_TYPE => {:type => ::Thrift::Types::I32, :name => 'result_type', :enum_class => ::Radar::Api::ResultType},
|
621
|
-
ACCEPTED_EVENTS => {:type => ::Thrift::Types::SET, :name => 'accepted_events', :element => {:type => ::Thrift::Types::I32, :enum_class => ::Radar::Api::Event}}
|
622
|
-
}
|
623
|
-
|
624
|
-
def struct_fields; FIELDS; end
|
625
|
-
|
626
|
-
def validate
|
627
|
-
unless @result_type.nil? || ::Radar::Api::ResultType::VALID_VALUES.include?(@result_type)
|
628
|
-
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field result_type!')
|
629
|
-
end
|
630
|
-
end
|
631
|
-
|
632
|
-
::Thrift::Struct.generate_accessors self
|
633
|
-
end
|
634
|
-
|
635
|
-
class CashFlow
|
636
|
-
include ::Thrift::Struct, ::Thrift::Struct_Union
|
637
|
-
DATE = 1
|
638
|
-
VALUE = 2
|
639
|
-
BALANCE = 3
|
640
|
-
TYPE = 4
|
641
|
-
|
642
|
-
FIELDS = {
|
643
|
-
DATE => {:type => ::Thrift::Types::I64, :name => 'date'},
|
644
|
-
VALUE => {:type => ::Thrift::Types::DOUBLE, :name => 'value'},
|
645
|
-
BALANCE => {:type => ::Thrift::Types::DOUBLE, :name => 'balance'},
|
646
|
-
TYPE => {:type => ::Thrift::Types::I32, :name => 'type', :enum_class => ::Radar::Api::CashFlowType}
|
647
|
-
}
|
648
|
-
|
649
|
-
def struct_fields; FIELDS; end
|
650
|
-
|
651
|
-
def validate
|
652
|
-
unless @type.nil? || ::Radar::Api::CashFlowType::VALID_VALUES.include?(@type)
|
653
|
-
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field type!')
|
654
|
-
end
|
655
|
-
end
|
656
|
-
|
657
|
-
::Thrift::Struct.generate_accessors self
|
658
|
-
end
|
659
|
-
|
660
|
-
end
|
661
|
-
end
|