indexea_client 0.0.9

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.
Files changed (301) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +3413 -0
  4. data/Rakefile +8 -0
  5. data/docs/AccountApi.md +685 -0
  6. data/docs/AccountBean.md +27 -0
  7. data/docs/AccountPasswdBody.md +8 -0
  8. data/docs/AccountPortraitBody.md +7 -0
  9. data/docs/AccountProfileBody.md +8 -0
  10. data/docs/AccountResetpwdBody.md +9 -0
  11. data/docs/AccountSigninBody.md +9 -0
  12. data/docs/AccountSignupBody.md +10 -0
  13. data/docs/AccountsFeedbackBody.md +8 -0
  14. data/docs/AccountsMessageBody.md +8 -0
  15. data/docs/AnalyzeObject.md +8 -0
  16. data/docs/AnalyzeToken.md +11 -0
  17. data/docs/AppBean.md +23 -0
  18. data/docs/AppCompanyBody.md +22 -0
  19. data/docs/AppIndexBody.md +7 -0
  20. data/docs/AppLogAccount.md +9 -0
  21. data/docs/AppLogBean.md +19 -0
  22. data/docs/AppLogsBean.md +9 -0
  23. data/docs/AppMentorBean.md +14 -0
  24. data/docs/AppOauthBody.md +7 -0
  25. data/docs/AppOauthBody1.md +7 -0
  26. data/docs/AppOauthresetsecretBody.md +7 -0
  27. data/docs/AppTokensBody.md +7 -0
  28. data/docs/AppTokensBody1.md +7 -0
  29. data/docs/AppWidgetBody.md +7 -0
  30. data/docs/AppsApi.md +1843 -0
  31. data/docs/AppsAppBody.md +8 -0
  32. data/docs/AppsBody.md +8 -0
  33. data/docs/AutoCompleteItem.md +9 -0
  34. data/docs/BlacklistBean.md +12 -0
  35. data/docs/Bulletin.md +15 -0
  36. data/docs/CompanyBean.md +24 -0
  37. data/docs/ContactForm.md +11 -0
  38. data/docs/CrawlerLog.md +14 -0
  39. data/docs/CrawlerLogs.md +8 -0
  40. data/docs/CrawlerTask.md +16 -0
  41. data/docs/FieldsApi.md +215 -0
  42. data/docs/GlobalApi.md +258 -0
  43. data/docs/GlobalOptionForm.md +8 -0
  44. data/docs/IndexBean.md +26 -0
  45. data/docs/IndexFieldBean.md +8 -0
  46. data/docs/IndexForm.md +15 -0
  47. data/docs/IndexRebuildForm.md +12 -0
  48. data/docs/IndexSettings.md +10 -0
  49. data/docs/IndexSettingsBody.md +7 -0
  50. data/docs/IndexStatBean.md +14 -0
  51. data/docs/IndexSynonymsflushBody.md +7 -0
  52. data/docs/IndexTask.md +13 -0
  53. data/docs/IndexTemplate.md +17 -0
  54. data/docs/IndexTemplates.md +8 -0
  55. data/docs/IndexUploadBody.md +7 -0
  56. data/docs/IndicesApi.md +1620 -0
  57. data/docs/IntelligentMapping.md +8 -0
  58. data/docs/KeywordBindingBean.md +14 -0
  59. data/docs/MentorForm.md +8 -0
  60. data/docs/Message.md +18 -0
  61. data/docs/MessageApi.md +262 -0
  62. data/docs/Messages.md +8 -0
  63. data/docs/OauthAppBean.md +20 -0
  64. data/docs/OpenidBean.md +10 -0
  65. data/docs/OptionForm.md +10 -0
  66. data/docs/OrdersIdentBody.md +7 -0
  67. data/docs/PayResult.md +9 -0
  68. data/docs/PaymentApi.md +788 -0
  69. data/docs/PaymentInvoice.md +15 -0
  70. data/docs/PaymentOrder.md +25 -0
  71. data/docs/PaymentRecord.md +13 -0
  72. data/docs/PaymentService.md +12 -0
  73. data/docs/QueriesApi.md +1821 -0
  74. data/docs/QueryActionBean.md +27 -0
  75. data/docs/QueryBean.md +22 -0
  76. data/docs/QueryForm.md +15 -0
  77. data/docs/QueryNode.md +10 -0
  78. data/docs/QuerySortField.md +9 -0
  79. data/docs/QueryVariableBean.md +17 -0
  80. data/docs/RecommendApi.md +365 -0
  81. data/docs/RecommendBean.md +18 -0
  82. data/docs/RecordFilter.md +10 -0
  83. data/docs/RecordsApi.md +286 -0
  84. data/docs/SearchApi.md +646 -0
  85. data/docs/SearchEstimateResult.md +11 -0
  86. data/docs/SearchWord.md +8 -0
  87. data/docs/StatIndexBean.md +14 -0
  88. data/docs/StatsApi.md +245 -0
  89. data/docs/SynonymsBean.md +14 -0
  90. data/docs/TokenBean.md +12 -0
  91. data/docs/TriggerBean.md +13 -0
  92. data/docs/TriggerLogBean.md +15 -0
  93. data/docs/ValueOfField.md +8 -0
  94. data/docs/WidgetBean.md +21 -0
  95. data/docs/WidgetForm.md +13 -0
  96. data/docs/WidgetLogo.md +7 -0
  97. data/docs/WidgetLogoBody.md +7 -0
  98. data/docs/WidgetStatusForm.md +8 -0
  99. data/docs/WidgetsApi.md +573 -0
  100. data/git_push.sh +55 -0
  101. data/indexea_client.gemspec +38 -0
  102. data/lib/indexea_client/api/account_api.rb +846 -0
  103. data/lib/indexea_client/api/apps_api.rb +2271 -0
  104. data/lib/indexea_client/api/fields_api.rb +289 -0
  105. data/lib/indexea_client/api/global_api.rb +326 -0
  106. data/lib/indexea_client/api/indices_api.rb +2076 -0
  107. data/lib/indexea_client/api/message_api.rb +337 -0
  108. data/lib/indexea_client/api/payment_api.rb +975 -0
  109. data/lib/indexea_client/api/queries_api.rb +2320 -0
  110. data/lib/indexea_client/api/recommend_api.rb +461 -0
  111. data/lib/indexea_client/api/records_api.rb +375 -0
  112. data/lib/indexea_client/api/search_api.rb +892 -0
  113. data/lib/indexea_client/api/stats_api.rb +312 -0
  114. data/lib/indexea_client/api/widgets_api.rb +741 -0
  115. data/lib/indexea_client/api_client.rb +391 -0
  116. data/lib/indexea_client/api_error.rb +57 -0
  117. data/lib/indexea_client/configuration.rb +205 -0
  118. data/lib/indexea_client/models/account_bean.rb +396 -0
  119. data/lib/indexea_client/models/account_passwd_body.rb +227 -0
  120. data/lib/indexea_client/models/account_portrait_body.rb +206 -0
  121. data/lib/indexea_client/models/account_profile_body.rb +228 -0
  122. data/lib/indexea_client/models/account_resetpwd_body.rb +240 -0
  123. data/lib/indexea_client/models/account_signin_body.rb +237 -0
  124. data/lib/indexea_client/models/account_signup_body.rb +254 -0
  125. data/lib/indexea_client/models/accounts_feedback_body.rb +262 -0
  126. data/lib/indexea_client/models/accounts_message_body.rb +226 -0
  127. data/lib/indexea_client/models/analyze_object.rb +216 -0
  128. data/lib/indexea_client/models/analyze_token.rb +243 -0
  129. data/lib/indexea_client/models/app_bean.rb +360 -0
  130. data/lib/indexea_client/models/app_company_body.rb +357 -0
  131. data/lib/indexea_client/models/app_index_body.rb +212 -0
  132. data/lib/indexea_client/models/app_log_account.rb +224 -0
  133. data/lib/indexea_client/models/app_log_bean.rb +318 -0
  134. data/lib/indexea_client/models/app_logs_bean.rb +229 -0
  135. data/lib/indexea_client/models/app_mentor_bean.rb +277 -0
  136. data/lib/indexea_client/models/app_oauth_body.rb +206 -0
  137. data/lib/indexea_client/models/app_oauth_body_1.rb +212 -0
  138. data/lib/indexea_client/models/app_oauthresetsecret_body.rb +212 -0
  139. data/lib/indexea_client/models/app_tokens_body.rb +212 -0
  140. data/lib/indexea_client/models/app_tokens_body_1.rb +212 -0
  141. data/lib/indexea_client/models/app_widget_body.rb +212 -0
  142. data/lib/indexea_client/models/apps_app_body.rb +216 -0
  143. data/lib/indexea_client/models/apps_body.rb +221 -0
  144. data/lib/indexea_client/models/auto_complete_item.rb +224 -0
  145. data/lib/indexea_client/models/blacklist_bean.rb +258 -0
  146. data/lib/indexea_client/models/bulletin.rb +312 -0
  147. data/lib/indexea_client/models/company_bean.rb +378 -0
  148. data/lib/indexea_client/models/contact_form.rb +258 -0
  149. data/lib/indexea_client/models/crawler_log.rb +270 -0
  150. data/lib/indexea_client/models/crawler_logs.rb +217 -0
  151. data/lib/indexea_client/models/crawler_task.rb +288 -0
  152. data/lib/indexea_client/models/global_option_form.rb +218 -0
  153. data/lib/indexea_client/models/index_bean.rb +390 -0
  154. data/lib/indexea_client/models/index_field_bean.rb +217 -0
  155. data/lib/indexea_client/models/index_form.rb +283 -0
  156. data/lib/indexea_client/models/index_rebuild_form.rb +254 -0
  157. data/lib/indexea_client/models/index_settings.rb +234 -0
  158. data/lib/indexea_client/models/index_settings_body.rb +212 -0
  159. data/lib/indexea_client/models/index_stat_bean.rb +270 -0
  160. data/lib/indexea_client/models/index_synonymsflush_body.rb +212 -0
  161. data/lib/indexea_client/models/index_task.rb +261 -0
  162. data/lib/indexea_client/models/index_template.rb +299 -0
  163. data/lib/indexea_client/models/index_templates.rb +219 -0
  164. data/lib/indexea_client/models/index_upload_body.rb +208 -0
  165. data/lib/indexea_client/models/intelligent_mapping.rb +217 -0
  166. data/lib/indexea_client/models/keyword_binding_bean.rb +274 -0
  167. data/lib/indexea_client/models/mentor_form.rb +220 -0
  168. data/lib/indexea_client/models/message.rb +306 -0
  169. data/lib/indexea_client/models/messages.rb +217 -0
  170. data/lib/indexea_client/models/oauth_app_bean.rb +329 -0
  171. data/lib/indexea_client/models/openid_bean.rb +238 -0
  172. data/lib/indexea_client/models/option_form.rb +287 -0
  173. data/lib/indexea_client/models/orders_ident_body.rb +206 -0
  174. data/lib/indexea_client/models/pay_result.rb +258 -0
  175. data/lib/indexea_client/models/payment_invoice.rb +283 -0
  176. data/lib/indexea_client/models/payment_order.rb +412 -0
  177. data/lib/indexea_client/models/payment_record.rb +261 -0
  178. data/lib/indexea_client/models/payment_service.rb +258 -0
  179. data/lib/indexea_client/models/query_action_bean.rb +391 -0
  180. data/lib/indexea_client/models/query_bean.rb +348 -0
  181. data/lib/indexea_client/models/query_form.rb +285 -0
  182. data/lib/indexea_client/models/query_node.rb +234 -0
  183. data/lib/indexea_client/models/query_sort_field.rb +264 -0
  184. data/lib/indexea_client/models/query_variable_bean.rb +335 -0
  185. data/lib/indexea_client/models/recommend_bean.rb +318 -0
  186. data/lib/indexea_client/models/record_filter.rb +242 -0
  187. data/lib/indexea_client/models/search_estimate_result.rb +242 -0
  188. data/lib/indexea_client/models/search_word.rb +218 -0
  189. data/lib/indexea_client/models/stat_index_bean.rb +270 -0
  190. data/lib/indexea_client/models/synonyms_bean.rb +274 -0
  191. data/lib/indexea_client/models/token_bean.rb +252 -0
  192. data/lib/indexea_client/models/trigger_bean.rb +263 -0
  193. data/lib/indexea_client/models/trigger_log_bean.rb +279 -0
  194. data/lib/indexea_client/models/value_of_field.rb +217 -0
  195. data/lib/indexea_client/models/widget_bean.rb +387 -0
  196. data/lib/indexea_client/models/widget_form.rb +328 -0
  197. data/lib/indexea_client/models/widget_logo.rb +206 -0
  198. data/lib/indexea_client/models/widget_logo_body.rb +206 -0
  199. data/lib/indexea_client/models/widget_status_form.rb +223 -0
  200. data/lib/indexea_client/version.rb +14 -0
  201. data/lib/indexea_client.rb +133 -0
  202. data/spec/api/account_api_spec.rb +200 -0
  203. data/spec/api/apps_api_spec.rb +492 -0
  204. data/spec/api/fields_api_spec.rb +86 -0
  205. data/spec/api/global_api_spec.rb +98 -0
  206. data/spec/api/indices_api_spec.rb +434 -0
  207. data/spec/api/message_api_spec.rb +96 -0
  208. data/spec/api/payment_api_spec.rb +227 -0
  209. data/spec/api/queries_api_spec.rb +482 -0
  210. data/spec/api/recommend_api_spec.rb +125 -0
  211. data/spec/api/records_api_spec.rb +107 -0
  212. data/spec/api/search_api_spec.rb +220 -0
  213. data/spec/api/stats_api_spec.rb +99 -0
  214. data/spec/api/widgets_api_spec.rb +174 -0
  215. data/spec/api_client_spec.rb +225 -0
  216. data/spec/base_object_spec.rb +109 -0
  217. data/spec/configuration_spec.rb +41 -0
  218. data/spec/models/account_bean_spec.rb +160 -0
  219. data/spec/models/account_passwd_body_spec.rb +46 -0
  220. data/spec/models/account_portrait_body_spec.rb +40 -0
  221. data/spec/models/account_profile_body_spec.rb +46 -0
  222. data/spec/models/account_resetpwd_body_spec.rb +52 -0
  223. data/spec/models/account_signin_body_spec.rb +52 -0
  224. data/spec/models/account_signup_body_spec.rb +58 -0
  225. data/spec/models/accounts_feedback_body_spec.rb +50 -0
  226. data/spec/models/accounts_message_body_spec.rb +46 -0
  227. data/spec/models/analyze_object_spec.rb +46 -0
  228. data/spec/models/analyze_token_spec.rb +64 -0
  229. data/spec/models/app_bean_spec.rb +136 -0
  230. data/spec/models/app_company_body_spec.rb +130 -0
  231. data/spec/models/app_index_body_spec.rb +40 -0
  232. data/spec/models/app_log_account_spec.rb +52 -0
  233. data/spec/models/app_log_bean_spec.rb +112 -0
  234. data/spec/models/app_logs_bean_spec.rb +52 -0
  235. data/spec/models/app_mentor_bean_spec.rb +82 -0
  236. data/spec/models/app_oauth_body_1_spec.rb +40 -0
  237. data/spec/models/app_oauth_body_spec.rb +40 -0
  238. data/spec/models/app_oauthresetsecret_body_spec.rb +40 -0
  239. data/spec/models/app_tokens_body_1_spec.rb +40 -0
  240. data/spec/models/app_tokens_body_spec.rb +40 -0
  241. data/spec/models/app_widget_body_spec.rb +40 -0
  242. data/spec/models/apps_app_body_spec.rb +46 -0
  243. data/spec/models/apps_body_spec.rb +46 -0
  244. data/spec/models/auto_complete_item_spec.rb +52 -0
  245. data/spec/models/blacklist_bean_spec.rb +70 -0
  246. data/spec/models/bulletin_spec.rb +92 -0
  247. data/spec/models/company_bean_spec.rb +142 -0
  248. data/spec/models/contact_form_spec.rb +64 -0
  249. data/spec/models/crawler_log_spec.rb +82 -0
  250. data/spec/models/crawler_logs_spec.rb +46 -0
  251. data/spec/models/crawler_task_spec.rb +94 -0
  252. data/spec/models/global_option_form_spec.rb +46 -0
  253. data/spec/models/index_bean_spec.rb +154 -0
  254. data/spec/models/index_field_bean_spec.rb +46 -0
  255. data/spec/models/index_form_spec.rb +88 -0
  256. data/spec/models/index_rebuild_form_spec.rb +70 -0
  257. data/spec/models/index_settings_body_spec.rb +40 -0
  258. data/spec/models/index_settings_spec.rb +58 -0
  259. data/spec/models/index_stat_bean_spec.rb +82 -0
  260. data/spec/models/index_synonymsflush_body_spec.rb +40 -0
  261. data/spec/models/index_task_spec.rb +76 -0
  262. data/spec/models/index_template_spec.rb +100 -0
  263. data/spec/models/index_templates_spec.rb +46 -0
  264. data/spec/models/index_upload_body_spec.rb +40 -0
  265. data/spec/models/intelligent_mapping_spec.rb +46 -0
  266. data/spec/models/keyword_binding_bean_spec.rb +82 -0
  267. data/spec/models/mentor_form_spec.rb +46 -0
  268. data/spec/models/message_spec.rb +106 -0
  269. data/spec/models/messages_spec.rb +46 -0
  270. data/spec/models/oauth_app_bean_spec.rb +118 -0
  271. data/spec/models/openid_bean_spec.rb +58 -0
  272. data/spec/models/option_form_spec.rb +62 -0
  273. data/spec/models/orders_ident_body_spec.rb +40 -0
  274. data/spec/models/pay_result_spec.rb +56 -0
  275. data/spec/models/payment_invoice_spec.rb +88 -0
  276. data/spec/models/payment_order_spec.rb +152 -0
  277. data/spec/models/payment_record_spec.rb +76 -0
  278. data/spec/models/payment_service_spec.rb +70 -0
  279. data/spec/models/query_action_bean_spec.rb +160 -0
  280. data/spec/models/query_bean_spec.rb +130 -0
  281. data/spec/models/query_form_spec.rb +88 -0
  282. data/spec/models/query_node_spec.rb +58 -0
  283. data/spec/models/query_sort_field_spec.rb +56 -0
  284. data/spec/models/query_variable_bean_spec.rb +104 -0
  285. data/spec/models/recommend_bean_spec.rb +106 -0
  286. data/spec/models/record_filter_spec.rb +58 -0
  287. data/spec/models/search_estimate_result_spec.rb +64 -0
  288. data/spec/models/search_word_spec.rb +46 -0
  289. data/spec/models/stat_index_bean_spec.rb +82 -0
  290. data/spec/models/synonyms_bean_spec.rb +82 -0
  291. data/spec/models/token_bean_spec.rb +70 -0
  292. data/spec/models/trigger_bean_spec.rb +76 -0
  293. data/spec/models/trigger_log_bean_spec.rb +88 -0
  294. data/spec/models/value_of_field_spec.rb +46 -0
  295. data/spec/models/widget_bean_spec.rb +132 -0
  296. data/spec/models/widget_form_spec.rb +84 -0
  297. data/spec/models/widget_logo_body_spec.rb +40 -0
  298. data/spec/models/widget_logo_spec.rb +40 -0
  299. data/spec/models/widget_status_form_spec.rb +46 -0
  300. data/spec/spec_helper.rb +110 -0
  301. metadata +501 -0
@@ -0,0 +1,227 @@
1
+ =begin
2
+ #Indexea OpenAPI
3
+
4
+ #OpenAPI of Indexea
5
+
6
+ OpenAPI spec version: 1.0.0
7
+ Contact: indexea.com@gmail.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 3.0.54
10
+ =end
11
+
12
+ require 'spec_helper'
13
+ require 'json'
14
+
15
+ # Unit tests for IndexeaClient::PaymentApi
16
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
17
+ # Please update as you see appropriate
18
+ describe 'PaymentApi' do
19
+ before do
20
+ # run before each test
21
+ @instance = IndexeaClient::PaymentApi.new
22
+ end
23
+
24
+ after do
25
+ # run after each test
26
+ end
27
+
28
+ describe 'test an instance of PaymentApi' do
29
+ it 'should create an instance of PaymentApi' do
30
+ expect(@instance).to be_instance_of(IndexeaClient::PaymentApi)
31
+ end
32
+ end
33
+
34
+ # unit tests for payment_alipay
35
+ # 接受支付宝的支付结果
36
+ # @param [Hash] opts the optional parameters
37
+ # @return [nil]
38
+ describe 'payment_alipay test' do
39
+ it 'should work' do
40
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
41
+ end
42
+ end
43
+
44
+ # unit tests for payment_alipay_return
45
+ # 支付宝平台支付完毕后调整到该接口
46
+ # @param [Hash] opts the optional parameters
47
+ # @return [nil]
48
+ describe 'payment_alipay_return test' do
49
+ it 'should work' do
50
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
51
+ end
52
+ end
53
+
54
+ # unit tests for payment_apply_invoice
55
+ # 申请发票
56
+ # @param body 申请开发票的订单编号列表
57
+ # @param type 发票类型
58
+ # @param app 应用标识
59
+ # @param [Hash] opts the optional parameters
60
+ # @return [PaymentInvoice]
61
+ describe 'payment_apply_invoice test' do
62
+ it 'should work' do
63
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
64
+ end
65
+ end
66
+
67
+ # unit tests for payment_begin_pay
68
+ # 支付订单
69
+ # 选择支付方式,开始支付
70
+ # @param app 应用标识
71
+ # @param ident 订单号
72
+ # @param type 支付方式
73
+ # @param [Hash] opts the optional parameters
74
+ # @return [PayResult]
75
+ describe 'payment_begin_pay test' do
76
+ it 'should work' do
77
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
78
+ end
79
+ end
80
+
81
+ # unit tests for payment_buy
82
+ # 下单购买
83
+ # @param body
84
+ # @param app 应用标识
85
+ # @param [Hash] opts the optional parameters
86
+ # @return [PaymentOrder]
87
+ describe 'payment_buy test' do
88
+ it 'should work' do
89
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
90
+ end
91
+ end
92
+
93
+ # unit tests for payment_delete_invoice
94
+ # 删除发票
95
+ # @param app 应用标识
96
+ # @param id 发票编号
97
+ # @param [Hash] opts the optional parameters
98
+ # @return [BOOLEAN]
99
+ describe 'payment_delete_invoice test' do
100
+ it 'should work' do
101
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
102
+ end
103
+ end
104
+
105
+ # unit tests for payment_delete_order
106
+ # 取消订单
107
+ # @param app 应用标识
108
+ # @param ident 订单号
109
+ # @param [Hash] opts the optional parameters
110
+ # @return [BOOLEAN]
111
+ describe 'payment_delete_order test' do
112
+ it 'should work' do
113
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
114
+ end
115
+ end
116
+
117
+ # unit tests for payment_invoices
118
+ # 获取发票列表
119
+ # @param app 应用标识
120
+ # @param [Hash] opts the optional parameters
121
+ # @return [Array<PaymentInvoice>]
122
+ describe 'payment_invoices test' do
123
+ it 'should work' do
124
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
125
+ end
126
+ end
127
+
128
+ # unit tests for payment_order
129
+ # 获取订单详情
130
+ # 获取订单详情
131
+ # @param app 应用标识
132
+ # @param ident 订单号
133
+ # @param [Hash] opts the optional parameters
134
+ # @return [PaymentOrder]
135
+ describe 'payment_order test' do
136
+ it 'should work' do
137
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
138
+ end
139
+ end
140
+
141
+ # unit tests for payment_orders
142
+ # 订单列表
143
+ # 获取应用的订单列表
144
+ # @param app 应用标识
145
+ # @param [Hash] opts the optional parameters
146
+ # @return [Array<PaymentOrder>]
147
+ describe 'payment_orders test' do
148
+ it 'should work' do
149
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
150
+ end
151
+ end
152
+
153
+ # unit tests for payment_orders_without_invoice
154
+ # 获取未曾开票的订单列表
155
+ # @param app 应用标识
156
+ # @param [Hash] opts the optional parameters
157
+ # @return [Array<PaymentOrder>]
158
+ describe 'payment_orders_without_invoice test' do
159
+ it 'should work' do
160
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
161
+ end
162
+ end
163
+
164
+ # unit tests for payment_price
165
+ # 获取套餐价格
166
+ # @param app 应用标识
167
+ # @param service 配额信息
168
+ # @param [Hash] opts the optional parameters
169
+ # @return [PaymentService]
170
+ describe 'payment_price test' do
171
+ it 'should work' do
172
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
173
+ end
174
+ end
175
+
176
+ # unit tests for payment_receipt
177
+ # 获取订单回执图片
178
+ # 查看回执图片
179
+ # @param app 应用标识
180
+ # @param ident 订单号
181
+ # @param id 回执编号
182
+ # @param [Hash] opts the optional parameters
183
+ # @return [String]
184
+ describe 'payment_receipt test' do
185
+ it 'should work' do
186
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
187
+ end
188
+ end
189
+
190
+ # unit tests for payment_request_contact
191
+ # 联系销售获取私有化报价
192
+ # 获取私有化方案、报价等信息
193
+ # @param body 客户联系信息
194
+ # @param app 应用标识
195
+ # @param [Hash] opts the optional parameters
196
+ # @return [BOOLEAN]
197
+ describe 'payment_request_contact test' do
198
+ it 'should work' do
199
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
200
+ end
201
+ end
202
+
203
+ # unit tests for payment_upload_receipt
204
+ # 上传转账回执
205
+ # 用户在完成银行转账后,通过该接口上传转账回执
206
+ # @param receipt
207
+ # @param app 应用标识
208
+ # @param ident 订单号
209
+ # @param [Hash] opts the optional parameters
210
+ # @return [PaymentOrder]
211
+ describe 'payment_upload_receipt test' do
212
+ it 'should work' do
213
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
214
+ end
215
+ end
216
+
217
+ # unit tests for payment_wepay
218
+ # 接受微信支付的支付结果
219
+ # @param [Hash] opts the optional parameters
220
+ # @return [nil]
221
+ describe 'payment_wepay test' do
222
+ it 'should work' do
223
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
224
+ end
225
+ end
226
+
227
+ end
@@ -0,0 +1,482 @@
1
+ =begin
2
+ #Indexea OpenAPI
3
+
4
+ #OpenAPI of Indexea
5
+
6
+ OpenAPI spec version: 1.0.0
7
+ Contact: indexea.com@gmail.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 3.0.54
10
+ =end
11
+
12
+ require 'spec_helper'
13
+ require 'json'
14
+
15
+ # Unit tests for IndexeaClient::QueriesApi
16
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
17
+ # Please update as you see appropriate
18
+ describe 'QueriesApi' do
19
+ before do
20
+ # run before each test
21
+ @instance = IndexeaClient::QueriesApi.new
22
+ end
23
+
24
+ after do
25
+ # run after each test
26
+ end
27
+
28
+ describe 'test an instance of QueriesApi' do
29
+ it 'should create an instance of QueriesApi' do
30
+ expect(@instance).to be_instance_of(IndexeaClient::QueriesApi)
31
+ end
32
+ end
33
+
34
+ # unit tests for query_analyze
35
+ # 分词测试
36
+ # @param body
37
+ # @param app 应用标识
38
+ # @param [Hash] opts the optional parameters
39
+ # @option opts [BigDecimal] :index 索引编号,如果指定索引编号则使用索引的分词器
40
+ # @return [Array<AnalyzeToken>]
41
+ describe 'query_analyze test' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ # unit tests for query_copy
48
+ # 复制指定查询并创建新查询
49
+ # @param app 应用标识
50
+ # @param query 源查询编号
51
+ # @param [Hash] opts the optional parameters
52
+ # @return [QueryBean]
53
+ describe 'query_copy test' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
59
+ # unit tests for query_copy_to_query
60
+ # 复制查询到已有查询
61
+ # @param app 应用标识
62
+ # @param query 源查询编号
63
+ # @param to 目标查询编号
64
+ # @param [Hash] opts the optional parameters
65
+ # @return [BOOLEAN]
66
+ describe 'query_copy_to_query test' do
67
+ it 'should work' do
68
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
69
+ end
70
+ end
71
+
72
+ # unit tests for query_create
73
+ # 创建搜索
74
+ # @param body
75
+ # @param app 应用标识
76
+ # @param [Hash] opts the optional parameters
77
+ # @return [QueryBean]
78
+ describe 'query_create test' do
79
+ it 'should work' do
80
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
81
+ end
82
+ end
83
+
84
+ # unit tests for query_create_keyword_bindings
85
+ # 创建新的关键词文档绑定
86
+ # @param body
87
+ # @param query 查询编号
88
+ # @param app 应用标识
89
+ # @param [Hash] opts the optional parameters
90
+ # @return [KeywordBindingBean]
91
+ describe 'query_create_keyword_bindings test' do
92
+ it 'should work' do
93
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
94
+ end
95
+ end
96
+
97
+ # unit tests for query_create_variable
98
+ # 创建新的预定义查询变量
99
+ # @param body
100
+ # @param app 应用标识
101
+ # @param [Hash] opts the optional parameters
102
+ # @return [QueryVariableBean]
103
+ describe 'query_create_variable test' do
104
+ it 'should work' do
105
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
106
+ end
107
+ end
108
+
109
+ # unit tests for query_delete
110
+ # 删除搜索
111
+ # @param app 应用标识
112
+ # @param query 查询编号
113
+ # @param [Hash] opts the optional parameters
114
+ # @return [BOOLEAN]
115
+ describe 'query_delete test' do
116
+ it 'should work' do
117
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
118
+ end
119
+ end
120
+
121
+ # unit tests for query_delete_keyword_bindings
122
+ # 删除关键词文档绑定
123
+ # @param app 应用标识
124
+ # @param query 查询编号
125
+ # @param id 关键词编号
126
+ # @param [Hash] opts the optional parameters
127
+ # @return [BOOLEAN]
128
+ describe 'query_delete_keyword_bindings test' do
129
+ it 'should work' do
130
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
131
+ end
132
+ end
133
+
134
+ # unit tests for query_delete_node_positions
135
+ # 清除查询条件的节点位置信息
136
+ # @param app 应用标识
137
+ # @param query 查询编号
138
+ # @param [Hash] opts the optional parameters
139
+ # @return [BOOLEAN]
140
+ describe 'query_delete_node_positions test' do
141
+ it 'should work' do
142
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
143
+ end
144
+ end
145
+
146
+ # unit tests for query_delete_variable
147
+ # 删除预定义查询变量
148
+ # @param app 应用标识
149
+ # @param id 自定义查询变量编号
150
+ # @param [Hash] opts the optional parameters
151
+ # @return [BOOLEAN]
152
+ describe 'query_delete_variable test' do
153
+ it 'should work' do
154
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
155
+ end
156
+ end
157
+
158
+ # unit tests for query_fields
159
+ # 获取查询关联的所有索引的字段信息
160
+ # @param app 应用标识
161
+ # @param query 查询编号
162
+ # @param [Hash] opts the optional parameters
163
+ # @return [Array<IndexFieldBean>]
164
+ describe 'query_fields test' do
165
+ it 'should work' do
166
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
167
+ end
168
+ end
169
+
170
+ # unit tests for query_get
171
+ # 获取查询的详情
172
+ # @param app 应用标识
173
+ # @param query 查询编号
174
+ # @param [Hash] opts the optional parameters
175
+ # @return [QueryBean]
176
+ describe 'query_get test' do
177
+ it 'should work' do
178
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
179
+ end
180
+ end
181
+
182
+ # unit tests for query_get_node_positions
183
+ # 获取查询条件的节点位置信息
184
+ # @param app 应用标识
185
+ # @param query 查询编号
186
+ # @param [Hash] opts the optional parameters
187
+ # @return [Object]
188
+ describe 'query_get_node_positions test' do
189
+ it 'should work' do
190
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
191
+ end
192
+ end
193
+
194
+ # unit tests for query_get_record
195
+ # 获取记录的详情
196
+ # @param app 应用标识
197
+ # @param query 查询编号
198
+ # @param _id 记录 _id 值
199
+ # @param [Hash] opts the optional parameters
200
+ # @return [Object]
201
+ describe 'query_get_record test' do
202
+ it 'should work' do
203
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
204
+ end
205
+ end
206
+
207
+ # unit tests for query_keyword_bindings
208
+ # 获取查询的关键词文档绑定列表
209
+ # @param app 应用标识
210
+ # @param query 查询编号
211
+ # @param [Hash] opts the optional parameters
212
+ # @return [Array<KeywordBindingBean>]
213
+ describe 'query_keyword_bindings test' do
214
+ it 'should work' do
215
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
216
+ end
217
+ end
218
+
219
+ # unit tests for query_list
220
+ # 获取应用下所有索引下的查询列表(按索引进行分组)
221
+ # @param app 应用标识
222
+ # @param [Hash] opts the optional parameters
223
+ # @option opts [Integer] :index 索引编号
224
+ # @return [Array<QueryBean>]
225
+ describe 'query_list test' do
226
+ it 'should work' do
227
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
228
+ end
229
+ end
230
+
231
+ # unit tests for query_profile
232
+ # 获取搜索诊断信息
233
+ # @param app 应用标识
234
+ # @param query 记录编号
235
+ # @param [Hash] opts the optional parameters
236
+ # @option opts [String] :q 诊断关键字
237
+ # @return [Object]
238
+ describe 'query_profile test' do
239
+ it 'should work' do
240
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
241
+ end
242
+ end
243
+
244
+ # unit tests for query_records_of_keyword_binding
245
+ # 获取关键词绑定对应的记录列表
246
+ # @param app 应用标识
247
+ # @param id 关键词绑定编号
248
+ # @param [Hash] opts the optional parameters
249
+ # @return [Array<Object>]
250
+ describe 'query_records_of_keyword_binding test' do
251
+ it 'should work' do
252
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
253
+ end
254
+ end
255
+
256
+ # unit tests for query_save_intelligent_mappings
257
+ # 设置索引智能匹配字段
258
+ # @param app 应用标识
259
+ # @param query 查询编号
260
+ # @param [Hash] opts the optional parameters
261
+ # @option opts [Array<String>] :fields 字段列表
262
+ # @return [BOOLEAN]
263
+ describe 'query_save_intelligent_mappings test' do
264
+ it 'should work' do
265
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
266
+ end
267
+ end
268
+
269
+ # unit tests for query_save_node_positions
270
+ # 保存查询条件的节点位置信息
271
+ # @param body
272
+ # @param query 查询编号
273
+ # @param app 应用标识
274
+ # @param [Hash] opts the optional parameters
275
+ # @return [Object]
276
+ describe 'query_save_node_positions test' do
277
+ it 'should work' do
278
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
279
+ end
280
+ end
281
+
282
+ # unit tests for query_search
283
+ # 搜索测试
284
+ # 该接口主要用于定制查询的测试,必须授权才能访问
285
+ # @param app 应用标识
286
+ # @param query 查询编号
287
+ # @param from 起始记录
288
+ # @param size 每页记录数量
289
+ # @param [Hash] opts the optional parameters
290
+ # @option opts [String] :q 查询关键字
291
+ # @option opts [Hash<String, String>] :params 聚合参数
292
+ # @return [Object]
293
+ describe 'query_search test' do
294
+ it 'should work' do
295
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
296
+ end
297
+ end
298
+
299
+ # unit tests for query_source
300
+ # 获取最终查询的源码(JSON)
301
+ # @param app 应用标识
302
+ # @param query 查询编号
303
+ # @param [Hash] opts the optional parameters
304
+ # @option opts [String] :q 搜索关键字
305
+ # @return [Object]
306
+ describe 'query_source test' do
307
+ it 'should work' do
308
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
309
+ end
310
+ end
311
+
312
+ # unit tests for query_suggest
313
+ # 获取搜索建议列表
314
+ # @param app 应用标识
315
+ # @param query 查询编号
316
+ # @param q 搜索关键字
317
+ # @param [Hash] opts the optional parameters
318
+ # @return [Array<Object>]
319
+ describe 'query_suggest test' do
320
+ it 'should work' do
321
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
322
+ end
323
+ end
324
+
325
+ # unit tests for query_test_intelligent_mappings
326
+ # 测试索引智能匹配字段
327
+ # @param app 应用标识
328
+ # @param query 查询编号
329
+ # @param q 搜索内容
330
+ # @param [Hash] opts the optional parameters
331
+ # @option opts [Array<String>] :fields 字段列表
332
+ # @return [Array<IntelligentMapping>]
333
+ describe 'query_test_intelligent_mappings test' do
334
+ it 'should work' do
335
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
336
+ end
337
+ end
338
+
339
+ # unit tests for query_update
340
+ # 修改查询
341
+ # @param body
342
+ # @param query 查询编号
343
+ # @param app 应用标识
344
+ # @param [Hash] opts the optional parameters
345
+ # @return [QueryBean]
346
+ describe 'query_update test' do
347
+ it 'should work' do
348
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
349
+ end
350
+ end
351
+
352
+ # unit tests for query_update_keyword_bindings
353
+ # 修改关键词文档绑定
354
+ # @param body
355
+ # @param query 查询编号
356
+ # @param app 应用标识
357
+ # @param [Hash] opts the optional parameters
358
+ # @return [KeywordBindingBean]
359
+ describe 'query_update_keyword_bindings test' do
360
+ it 'should work' do
361
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
362
+ end
363
+ end
364
+
365
+ # unit tests for query_update_settings
366
+ # 更改查询的设置项
367
+ # @param app 应用标识
368
+ # @param query 记录编号
369
+ # @param name 设置项名称
370
+ # @param value 设置值
371
+ # @param type 设置项类型
372
+ # @param [Hash] opts the optional parameters
373
+ # @return [BOOLEAN]
374
+ describe 'query_update_settings test' do
375
+ it 'should work' do
376
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
377
+ end
378
+ end
379
+
380
+ # unit tests for query_update_variable
381
+ # 修改预定义查询变量
382
+ # @param body
383
+ # @param id 自定义查询变量编号
384
+ # @param app 应用标识
385
+ # @param [Hash] opts the optional parameters
386
+ # @return [QueryVariableBean]
387
+ describe 'query_update_variable test' do
388
+ it 'should work' do
389
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
390
+ end
391
+ end
392
+
393
+ # unit tests for query_validate
394
+ # 获取搜索验证结果
395
+ # @param app 应用标识
396
+ # @param query 查询编号
397
+ # @param [Hash] opts the optional parameters
398
+ # @return [Object]
399
+ describe 'query_validate test' do
400
+ it 'should work' do
401
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
402
+ end
403
+ end
404
+
405
+ # unit tests for query_validate_aggregation
406
+ # 验证聚合定义是否正确
407
+ # @param body
408
+ # @param query 查询编号
409
+ # @param app 应用标识
410
+ # @param [Hash] opts the optional parameters
411
+ # @return [Object]
412
+ describe 'query_validate_aggregation test' do
413
+ it 'should work' do
414
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
415
+ end
416
+ end
417
+
418
+ # unit tests for query_validate_query
419
+ # 验证聚合定义是否正确
420
+ # @param body
421
+ # @param query 查询编号
422
+ # @param app 应用标识
423
+ # @param [Hash] opts the optional parameters
424
+ # @return [Object]
425
+ describe 'query_validate_query test' do
426
+ it 'should work' do
427
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
428
+ end
429
+ end
430
+
431
+ # unit tests for query_validate_script_field
432
+ # 验证脚本字段是否正确
433
+ # @param body
434
+ # @param app 应用标识
435
+ # @param [Hash] opts the optional parameters
436
+ # @option opts [Integer] :query 查询编号, query 和 index 两个参数传一个即可
437
+ # @option opts [Integer] :index 索引编号, query 和 index 两个参数传一个即可
438
+ # @return [Object]
439
+ describe 'query_validate_script_field test' do
440
+ it 'should work' do
441
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
442
+ end
443
+ end
444
+
445
+ # unit tests for query_validate_script_score
446
+ # 验证脚本字段是否正确
447
+ # @param body
448
+ # @param query 查询编号
449
+ # @param app 应用标识
450
+ # @param [Hash] opts the optional parameters
451
+ # @return [Object]
452
+ describe 'query_validate_script_score test' do
453
+ it 'should work' do
454
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
455
+ end
456
+ end
457
+
458
+ # unit tests for query_validate_suggestion
459
+ # 验证建议是否正确
460
+ # @param body
461
+ # @param query 查询编号
462
+ # @param app 应用标识
463
+ # @param [Hash] opts the optional parameters
464
+ # @return [Object]
465
+ describe 'query_validate_suggestion test' do
466
+ it 'should work' do
467
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
468
+ end
469
+ end
470
+
471
+ # unit tests for query_variables
472
+ # 获取应用的预定义查询变量列表
473
+ # @param app 应用标识
474
+ # @param [Hash] opts the optional parameters
475
+ # @return [Array<QueryVariableBean>]
476
+ describe 'query_variables test' do
477
+ it 'should work' do
478
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
479
+ end
480
+ end
481
+
482
+ end