lockstep_rails 0.3.36 → 0.3.38

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -0
  3. data/app/concepts/lockstep/api_record.rb +4 -0
  4. data/app/concepts/lockstep/client.rb +16 -0
  5. data/app/concepts/lockstep/query.rb +7 -0
  6. data/app/models/lockstep/customer_summary.rb +5 -0
  7. data/app/models/lockstep/magic_link.rb +10 -0
  8. data/app/models/lockstep/vendor_summary.rb +5 -0
  9. data/app/platform_api/schema/ap_aging_header_info.rb +15 -12
  10. data/app/platform_api/schema/ap_header_info.rb +8 -8
  11. data/app/platform_api/schema/app_enrollment.rb +0 -3
  12. data/app/platform_api/schema/app_enrollment_reconnect_info.rb +30 -0
  13. data/app/platform_api/schema/application.rb +5 -0
  14. data/app/platform_api/schema/ar_aging_header_info.rb +16 -1
  15. data/app/platform_api/schema/ar_header_info.rb +40 -11
  16. data/app/platform_api/schema/at_risk_invoice_summary.rb +1 -1
  17. data/app/platform_api/schema/attachment.rb +34 -9
  18. data/app/platform_api/schema/batch_sync.rb +3 -0
  19. data/app/platform_api/schema/bulk_currency_conversion.rb +1 -1
  20. data/app/platform_api/schema/company.rb +17 -24
  21. data/app/platform_api/schema/company_details.rb +98 -0
  22. data/app/platform_api/schema/company_details_payment.rb +60 -0
  23. data/app/platform_api/schema/company_sync.rb +17 -2
  24. data/app/platform_api/schema/connector_info.rb +29 -0
  25. data/app/platform_api/schema/contact.rb +1 -1
  26. data/app/platform_api/schema/contact_sync.rb +7 -1
  27. data/app/platform_api/schema/credit_memo_applied.rb +6 -0
  28. data/app/platform_api/schema/credit_memo_invoice.rb +1 -1
  29. data/app/platform_api/schema/custom_field_sync.rb +4 -4
  30. data/app/platform_api/schema/custom_field_value.rb +12 -0
  31. data/app/platform_api/schema/customer_summary.rb +36 -1
  32. data/app/platform_api/schema/daily_payable_outstanding_report.rb +7 -4
  33. data/app/platform_api/schema/daily_sales_outstanding_report.rb +0 -5
  34. data/app/platform_api/schema/developer_account_submit.rb +8 -0
  35. data/app/platform_api/schema/dpo_summary.rb +46 -0
  36. data/app/platform_api/schema/dpo_summary_group_total.rb +38 -0
  37. data/app/platform_api/schema/feature_flags_request.rb +14 -0
  38. data/app/platform_api/schema/feature_flags_response.rb +14 -0
  39. data/app/platform_api/schema/financial_account.rb +1 -1
  40. data/app/platform_api/schema/financial_account_balance_history_sync.rb +56 -0
  41. data/app/platform_api/schema/financial_account_sync.rb +50 -0
  42. data/app/platform_api/schema/financial_report.rb +38 -0
  43. data/app/platform_api/schema/financial_report_cell.rb +14 -0
  44. data/app/platform_api/schema/financial_report_row.rb +20 -0
  45. data/app/platform_api/schema/financial_year_setting_sync.rb +28 -0
  46. data/app/platform_api/schema/group_account.rb +62 -0
  47. data/app/platform_api/schema/invoice.rb +8 -3
  48. data/app/platform_api/schema/invoice_fetch_result.rb +4 -4
  49. data/app/platform_api/schema/invoice_history.rb +1 -1
  50. data/app/platform_api/schema/invoice_line_sync.rb +3 -3
  51. data/app/platform_api/schema/invoice_payment_detail.rb +1 -1
  52. data/app/platform_api/schema/invoice_summary.rb +7 -1
  53. data/app/platform_api/schema/invoice_summary_invoice_summary_totals_summary_fetch_result.rb +30 -0
  54. data/app/platform_api/schema/invoice_summary_totals.rb +20 -0
  55. data/app/platform_api/schema/invoice_sync.rb +12 -7
  56. data/app/platform_api/schema/lead.rb +1 -0
  57. data/app/platform_api/schema/magic_link.rb +78 -0
  58. data/app/platform_api/schema/magic_link_fetch_result.rb +26 -0
  59. data/app/platform_api/schema/note.rb +24 -5
  60. data/app/platform_api/schema/payables_coming_due.rb +52 -0
  61. data/app/platform_api/schema/payables_coming_due_fetch_result.rb +26 -0
  62. data/app/platform_api/schema/payables_coming_due_header.rb +44 -0
  63. data/app/platform_api/schema/payables_coming_due_widget.rb +29 -0
  64. data/app/platform_api/schema/payables_summary_report.rb +43 -0
  65. data/app/platform_api/schema/payment.rb +6 -5
  66. data/app/platform_api/schema/payment_applied.rb +3 -0
  67. data/app/platform_api/schema/payment_detail.rb +17 -2
  68. data/app/platform_api/schema/payment_detail_header.rb +1 -1
  69. data/app/platform_api/schema/payment_summary.rb +32 -9
  70. data/app/platform_api/schema/payment_summary_payment_summary_totals_summary_fetch_result.rb +30 -0
  71. data/app/platform_api/schema/payment_summary_totals.rb +20 -0
  72. data/app/platform_api/schema/payment_sync.rb +6 -5
  73. data/app/platform_api/schema/public_company_profile.rb +37 -0
  74. data/app/platform_api/schema/public_company_profile_fetch_result.rb +26 -0
  75. data/app/platform_api/schema/risk_rate.rb +6 -1
  76. data/app/platform_api/schema/status.rb +10 -0
  77. data/app/platform_api/schema/summary_aging_totals.rb +19 -0
  78. data/app/platform_api/schema/sync_entity_result.rb +5 -0
  79. data/app/platform_api/schema/sync_request.rb +5 -0
  80. data/app/platform_api/schema/sync_submit.rb +6 -0
  81. data/app/platform_api/schema/transaction.rb +94 -0
  82. data/app/platform_api/schema/transaction_detail.rb +73 -0
  83. data/app/platform_api/schema/transaction_summary_total.rb +35 -0
  84. data/app/platform_api/schema/transaction_transaction_summary_total_summary_fetch_result.rb +30 -0
  85. data/app/platform_api/schema/user_account.rb +6 -2
  86. data/app/platform_api/schema/user_group.rb +30 -0
  87. data/app/platform_api/schema/user_role.rb +1 -1
  88. data/app/platform_api/schema/vendor_summary.rb +63 -10
  89. data/app/platform_api/schema/vendor_summary_fetch_result.rb +26 -0
  90. data/app/platform_api/schema/webhook.rb +6 -2
  91. data/app/platform_api/schema/webhook_history_table_storage.rb +12 -0
  92. data/app/platform_api/schema/webhook_rule.rb +79 -0
  93. data/app/platform_api/schema/webhook_rule_fetch_result.rb +26 -0
  94. data/app/platform_api/swagger.json +11440 -8523
  95. data/lib/lockstep_rails/version.rb +1 -1
  96. metadata +39 -4
  97. data/app/models/lockstep/ap_header.rb +0 -32
  98. data/app/models/lockstep/ar_header.rb +0 -32
@@ -1,3 +1,3 @@
1
1
  module LockstepRails
2
- VERSION = "0.3.36"
2
+ VERSION = "0.3.38"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lockstep_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.36
4
+ version: 0.3.38
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vivek AG
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-21 00:00:00.000000000 Z
11
+ date: 2022-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -46,10 +46,8 @@ files:
46
46
  - app/concepts/lockstep/relation_array.rb
47
47
  - app/helpers/types.rb
48
48
  - app/models/lockstep/account.rb
49
- - app/models/lockstep/ap_header.rb
50
49
  - app/models/lockstep/api_key.rb
51
50
  - app/models/lockstep/app_enrollment.rb
52
- - app/models/lockstep/ar_header.rb
53
51
  - app/models/lockstep/connection.rb
54
52
  - app/models/lockstep/contact.rb
55
53
  - app/models/lockstep/customer_summary.rb
@@ -57,6 +55,7 @@ files:
57
55
  - app/models/lockstep/invoice_at_risk_summary.rb
58
56
  - app/models/lockstep/invoice_summary.rb
59
57
  - app/models/lockstep/invoices/address.rb
58
+ - app/models/lockstep/magic_link.rb
60
59
  - app/models/lockstep/note.rb
61
60
  - app/models/lockstep/payment.rb
62
61
  - app/models/lockstep/payment_summary.rb
@@ -87,6 +86,7 @@ files:
87
86
  - app/platform_api/schema/app_enrollment_custom_field.rb
88
87
  - app/platform_api/schema/app_enrollment_custom_field_fetch_result.rb
89
88
  - app/platform_api/schema/app_enrollment_fetch_result.rb
89
+ - app/platform_api/schema/app_enrollment_reconnect_info.rb
90
90
  - app/platform_api/schema/application.rb
91
91
  - app/platform_api/schema/application_fetch_result.rb
92
92
  - app/platform_api/schema/ar_aging_header_info.rb
@@ -103,6 +103,8 @@ files:
103
103
  - app/platform_api/schema/code_definition.rb
104
104
  - app/platform_api/schema/code_definition_fetch_result.rb
105
105
  - app/platform_api/schema/company.rb
106
+ - app/platform_api/schema/company_details.rb
107
+ - app/platform_api/schema/company_details_payment.rb
106
108
  - app/platform_api/schema/company_fetch_result.rb
107
109
  - app/platform_api/schema/company_sync.rb
108
110
  - app/platform_api/schema/connector_info.rb
@@ -134,6 +136,8 @@ files:
134
136
  - app/platform_api/schema/daily_payable_outstanding_report.rb
135
137
  - app/platform_api/schema/daily_sales_outstanding_report.rb
136
138
  - app/platform_api/schema/developer_account_submit.rb
139
+ - app/platform_api/schema/dpo_summary.rb
140
+ - app/platform_api/schema/dpo_summary_group_total.rb
137
141
  - app/platform_api/schema/email.rb
138
142
  - app/platform_api/schema/email_fetch_result.rb
139
143
  - app/platform_api/schema/erp.rb
@@ -142,13 +146,22 @@ files:
142
146
  - app/platform_api/schema/erp_info_data.rb
143
147
  - app/platform_api/schema/event_info.rb
144
148
  - app/platform_api/schema/exception.rb
149
+ - app/platform_api/schema/feature_flags_request.rb
150
+ - app/platform_api/schema/feature_flags_response.rb
145
151
  - app/platform_api/schema/field_info.rb
146
152
  - app/platform_api/schema/financial_account.rb
147
153
  - app/platform_api/schema/financial_account_balance_history.rb
148
154
  - app/platform_api/schema/financial_account_balance_history_fetch_result.rb
155
+ - app/platform_api/schema/financial_account_balance_history_sync.rb
149
156
  - app/platform_api/schema/financial_account_fetch_result.rb
157
+ - app/platform_api/schema/financial_account_sync.rb
158
+ - app/platform_api/schema/financial_report.rb
159
+ - app/platform_api/schema/financial_report_cell.rb
160
+ - app/platform_api/schema/financial_report_row.rb
150
161
  - app/platform_api/schema/financial_year_setting.rb
151
162
  - app/platform_api/schema/financial_year_setting_fetch_result.rb
163
+ - app/platform_api/schema/financial_year_setting_sync.rb
164
+ - app/platform_api/schema/group_account.rb
152
165
  - app/platform_api/schema/invite.rb
153
166
  - app/platform_api/schema/invite_data.rb
154
167
  - app/platform_api/schema/invite_submit.rb
@@ -163,8 +176,12 @@ files:
163
176
  - app/platform_api/schema/invoice_payment_detail.rb
164
177
  - app/platform_api/schema/invoice_summary.rb
165
178
  - app/platform_api/schema/invoice_summary_fetch_result.rb
179
+ - app/platform_api/schema/invoice_summary_invoice_summary_totals_summary_fetch_result.rb
180
+ - app/platform_api/schema/invoice_summary_totals.rb
166
181
  - app/platform_api/schema/invoice_sync.rb
167
182
  - app/platform_api/schema/lead.rb
183
+ - app/platform_api/schema/magic_link.rb
184
+ - app/platform_api/schema/magic_link_fetch_result.rb
168
185
  - app/platform_api/schema/member_info.rb
169
186
  - app/platform_api/schema/method_base.rb
170
187
  - app/platform_api/schema/method_info.rb
@@ -176,6 +193,11 @@ files:
176
193
  - app/platform_api/schema/payable_coming_due_report.rb
177
194
  - app/platform_api/schema/payable_coming_due_summary_report.rb
178
195
  - app/platform_api/schema/payable_summary_report.rb
196
+ - app/platform_api/schema/payables_coming_due.rb
197
+ - app/platform_api/schema/payables_coming_due_fetch_result.rb
198
+ - app/platform_api/schema/payables_coming_due_header.rb
199
+ - app/platform_api/schema/payables_coming_due_widget.rb
200
+ - app/platform_api/schema/payables_summary_report.rb
179
201
  - app/platform_api/schema/payment.rb
180
202
  - app/platform_api/schema/payment_applied.rb
181
203
  - app/platform_api/schema/payment_applied_fetch_result.rb
@@ -186,12 +208,16 @@ files:
186
208
  - app/platform_api/schema/payment_fetch_result.rb
187
209
  - app/platform_api/schema/payment_summary.rb
188
210
  - app/platform_api/schema/payment_summary_fetch_result.rb
211
+ - app/platform_api/schema/payment_summary_payment_summary_totals_summary_fetch_result.rb
212
+ - app/platform_api/schema/payment_summary_totals.rb
189
213
  - app/platform_api/schema/payment_sync.rb
190
214
  - app/platform_api/schema/problem_details.rb
191
215
  - app/platform_api/schema/property_info.rb
192
216
  - app/platform_api/schema/provisioning.rb
193
217
  - app/platform_api/schema/provisioning_finalize_request.rb
194
218
  - app/platform_api/schema/provisioning_response.rb
219
+ - app/platform_api/schema/public_company_profile.rb
220
+ - app/platform_api/schema/public_company_profile_fetch_result.rb
195
221
  - app/platform_api/schema/risk_rate.rb
196
222
  - app/platform_api/schema/runtime_field_handle.rb
197
223
  - app/platform_api/schema/runtime_method_handle.rb
@@ -200,12 +226,17 @@ files:
200
226
  - app/platform_api/schema/state_fetch_result.rb
201
227
  - app/platform_api/schema/status.rb
202
228
  - app/platform_api/schema/struct_layout_attribute.rb
229
+ - app/platform_api/schema/summary_aging_totals.rb
203
230
  - app/platform_api/schema/sync_entity_result.rb
204
231
  - app/platform_api/schema/sync_request.rb
205
232
  - app/platform_api/schema/sync_request_fetch_result.rb
206
233
  - app/platform_api/schema/sync_submit.rb
207
234
  - app/platform_api/schema/test_argument_exception.rb
208
235
  - app/platform_api/schema/test_timeout_exception.rb
236
+ - app/platform_api/schema/transaction.rb
237
+ - app/platform_api/schema/transaction_detail.rb
238
+ - app/platform_api/schema/transaction_summary_total.rb
239
+ - app/platform_api/schema/transaction_transaction_summary_total_summary_fetch_result.rb
209
240
  - app/platform_api/schema/transfer_owner.rb
210
241
  - app/platform_api/schema/transfer_owner_submit.rb
211
242
  - app/platform_api/schema/type.rb
@@ -213,13 +244,17 @@ files:
213
244
  - app/platform_api/schema/uri.rb
214
245
  - app/platform_api/schema/user_account.rb
215
246
  - app/platform_api/schema/user_account_fetch_result.rb
247
+ - app/platform_api/schema/user_group.rb
216
248
  - app/platform_api/schema/user_role.rb
217
249
  - app/platform_api/schema/user_role_fetch_result.rb
218
250
  - app/platform_api/schema/vendor_summary.rb
251
+ - app/platform_api/schema/vendor_summary_fetch_result.rb
219
252
  - app/platform_api/schema/webhook.rb
220
253
  - app/platform_api/schema/webhook_fetch_result.rb
221
254
  - app/platform_api/schema/webhook_history_table_storage.rb
222
255
  - app/platform_api/schema/webhook_history_table_storage_fetch_result.rb
256
+ - app/platform_api/schema/webhook_rule.rb
257
+ - app/platform_api/schema/webhook_rule_fetch_result.rb
223
258
  - app/platform_api/swagger.json
224
259
  - config/routes.rb
225
260
  - lib/lockstep_rails.rb
@@ -1,32 +0,0 @@
1
- class Lockstep::ApHeader < Lockstep::ApiRecord
2
- self.model_name_uri = "v1/Reports/ap-header"
3
- self.id_ref = "group_key"
4
- self.query_path= ""
5
- load_schema(Schema::ApHeaderInfo)
6
-
7
- end
8
-
9
- class Lockstep::Query
10
- # Overriding the build_params method to just add attributes in params without filter option
11
- def build_params
12
- params = {}
13
- criteria[:conditions].first.each do |key|
14
- params.merge!({ :"#{key[0].to_s.camelize(:lower)}" => key[1] })
15
- end
16
- return params
17
- end
18
-
19
- # Overrinding the get_results method to parse the single object coming from v1.
20
- def get_results(params = {})
21
- resp = @klass.resource.get(@klass.query_path, :params => params)
22
-
23
- return [] if %w(404).include?(resp.code.to_s)
24
- # TODO handle non 200 response code. Throwing an exception for now
25
- raise StandardError.new("#{resp.code} error while fetching: #{resp.body}") unless %w(201 200).include?(resp.code.to_s)
26
-
27
- parsed_response = JSON.parse(resp.body)
28
-
29
- r = parsed_response.transform_keys { |key| key.underscore }
30
- @klass.model_name.to_s.constantize.new(r, false)
31
- end
32
- end
@@ -1,32 +0,0 @@
1
- class Lockstep::ArHeader < Lockstep::ApiRecord
2
- self.model_name_uri = "v1/Reports/ar-header"
3
- self.id_ref = "group_key"
4
- self.query_path= ""
5
- load_schema(Schema::ArHeaderInfo)
6
-
7
- end
8
-
9
- class Lockstep::Query
10
- # Overriding the build_params method to just add attributes in params without filter option
11
- def build_params
12
- params = {}
13
- criteria[:conditions].first.each do |key|
14
- params.merge!({ :"#{key[0].to_s.camelize(:lower)}" => key[1] })
15
- end
16
- return params
17
- end
18
-
19
- # Overrinding the get_results method to parse the single object coming from v1.
20
- def get_results(params = {})
21
- resp = @klass.resource.get(@klass.query_path, :params => params)
22
-
23
- return [] if %w(404).include?(resp.code.to_s)
24
- # TODO handle non 200 response code. Throwing an exception for now
25
- raise StandardError.new("#{resp.code} error while fetching: #{resp.body}") unless %w(201 200).include?(resp.code.to_s)
26
-
27
- parsed_response = JSON.parse(resp.body)
28
-
29
- r = parsed_response.transform_keys { |key| key.underscore }
30
- @klass.model_name.to_s.constantize.new(r, false)
31
- end
32
- end