xero-ruby 3.2.0 → 3.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +71 -2
- data/lib/xero-ruby/api/accounting_api.rb +11 -2
- data/lib/xero-ruby/api/app_store_api.rb +87 -0
- data/lib/xero-ruby/api/finance_api.rb +866 -0
- data/lib/xero-ruby/api/payroll_au_api.rb +14 -14
- data/lib/xero-ruby/api/payroll_nz_api.rb +18 -12
- data/lib/xero-ruby/api/payroll_uk_api.rb +14 -2
- data/lib/xero-ruby/api_client.rb +30 -4
- data/lib/xero-ruby/configuration.rb +4 -0
- data/lib/xero-ruby/models/accounting/bank_transfer.rb +35 -1
- data/lib/xero-ruby/models/accounting/budget_balance.rb +2 -2
- data/lib/xero-ruby/models/accounting/contact.rb +86 -1
- data/lib/xero-ruby/models/accounting/payment.rb +11 -1
- data/lib/xero-ruby/models/accounting/time_zone.rb +1 -0
- data/lib/xero-ruby/models/app_store/plan.rb +310 -0
- data/lib/xero-ruby/models/app_store/price.rb +257 -0
- data/lib/xero-ruby/models/app_store/problem_details.rb +272 -0
- data/lib/xero-ruby/models/app_store/product.rb +288 -0
- data/lib/xero-ruby/models/app_store/subscription.rb +324 -0
- data/lib/xero-ruby/models/app_store/subscription_item.rb +292 -0
- data/lib/xero-ruby/models/finance/account_usage.rb +342 -0
- data/lib/xero-ruby/models/finance/account_usage_response.rb +254 -0
- data/lib/xero-ruby/models/finance/balance_sheet_account_detail.rb +262 -0
- data/lib/xero-ruby/models/finance/balance_sheet_account_group.rb +234 -0
- data/lib/xero-ruby/models/finance/balance_sheet_account_type.rb +244 -0
- data/lib/xero-ruby/models/finance/balance_sheet_response.rb +252 -0
- data/lib/xero-ruby/models/finance/bank_statement_response.rb +232 -0
- data/lib/xero-ruby/models/finance/cash_account_response.rb +262 -0
- data/lib/xero-ruby/models/finance/cash_balance.rb +242 -0
- data/lib/xero-ruby/models/finance/cash_validation_response.rb +262 -0
- data/lib/xero-ruby/models/finance/cashflow_account.rb +282 -0
- data/lib/xero-ruby/models/finance/cashflow_activity.rb +244 -0
- data/lib/xero-ruby/models/finance/cashflow_response.rb +254 -0
- data/lib/xero-ruby/models/finance/cashflow_type.rb +244 -0
- data/lib/xero-ruby/models/finance/contact_detail.rb +274 -0
- data/lib/xero-ruby/models/finance/contact_total_detail.rb +242 -0
- data/lib/xero-ruby/models/finance/contact_total_other.rb +252 -0
- data/lib/xero-ruby/models/finance/current_statement_response.rb +272 -0
- data/lib/xero-ruby/models/finance/data_source_response.rb +362 -0
- data/lib/xero-ruby/models/finance/history_record_response.rb +262 -0
- data/lib/xero-ruby/models/finance/income_by_contact_response.rb +284 -0
- data/lib/xero-ruby/models/finance/lock_history_model.rb +242 -0
- data/lib/xero-ruby/models/finance/lock_history_response.rb +244 -0
- data/lib/xero-ruby/models/finance/manual_journal_total.rb +222 -0
- data/lib/xero-ruby/models/finance/pnl_account.rb +272 -0
- data/lib/xero-ruby/models/finance/pnl_account_class.rb +234 -0
- data/lib/xero-ruby/models/finance/pnl_account_type.rb +244 -0
- data/lib/xero-ruby/models/finance/practice_response.rb +262 -0
- data/lib/xero-ruby/models/finance/problem.rb +252 -0
- data/lib/xero-ruby/models/finance/problem_type.rb +39 -0
- data/lib/xero-ruby/models/finance/profit_and_loss_response.rb +262 -0
- data/lib/xero-ruby/models/finance/report_history_model.rb +242 -0
- data/lib/xero-ruby/models/finance/report_history_response.rb +244 -0
- data/lib/xero-ruby/models/finance/statement_balance_response.rb +232 -0
- data/lib/xero-ruby/models/finance/statement_lines_response.rb +382 -0
- data/lib/xero-ruby/models/finance/total_detail.rb +242 -0
- data/lib/xero-ruby/models/finance/total_other.rb +242 -0
- data/lib/xero-ruby/models/finance/trial_balance_account.rb +312 -0
- data/lib/xero-ruby/models/finance/trial_balance_entry.rb +232 -0
- data/lib/xero-ruby/models/finance/trial_balance_movement.rb +252 -0
- data/lib/xero-ruby/models/finance/trial_balance_response.rb +244 -0
- data/lib/xero-ruby/models/finance/user_activities_response.rb +244 -0
- data/lib/xero-ruby/models/finance/user_response.rb +336 -0
- data/lib/xero-ruby/models/payroll_au/earnings_type.rb +2 -0
- data/lib/xero-ruby/models/payroll_au/employee.rb +30 -1
- data/lib/xero-ruby/models/payroll_au/manual_tax_type.rb +1 -0
- data/lib/xero-ruby/models/payroll_au/payroll_calendar.rb +11 -1
- data/lib/xero-ruby/models/payroll_uk/earnings_rate.rb +4 -4
- data/lib/xero-ruby/version.rb +6 -6
- data/lib/xero-ruby.rb +51 -0
- data/spec/api_client_spec.rb +5 -2
- data/spec/app_store/api/app_store_api_spec.rb +45 -0
- data/spec/app_store/models/plan_spec.rb +62 -0
- data/spec/app_store/models/price_spec.rb +52 -0
- data/spec/app_store/models/problem_details_spec.rb +70 -0
- data/spec/app_store/models/product_spec.rb +56 -0
- data/spec/app_store/models/subscription_item_spec.rb +70 -0
- data/spec/app_store/models/subscription_spec.rb +82 -0
- data/spec/configuration_spec.rb +1 -0
- data/spec/finance/api/finance_api_spec.rb +156 -0
- data/spec/finance/models/account_usage_response_spec.rb +58 -0
- data/spec/finance/models/account_usage_spec.rb +112 -0
- data/spec/finance/models/balance_sheet_account_detail_spec.rb +64 -0
- data/spec/finance/models/balance_sheet_account_group_spec.rb +46 -0
- data/spec/finance/models/balance_sheet_account_type_spec.rb +52 -0
- data/spec/finance/models/balance_sheet_response_spec.rb +58 -0
- data/spec/finance/models/bank_statement_response_spec.rb +46 -0
- data/spec/finance/models/cash_account_response_spec.rb +64 -0
- data/spec/finance/models/cash_balance_spec.rb +52 -0
- data/spec/finance/models/cash_validation_response_spec.rb +64 -0
- data/spec/finance/models/cashflow_account_spec.rb +76 -0
- data/spec/finance/models/cashflow_activity_spec.rb +52 -0
- data/spec/finance/models/cashflow_response_spec.rb +58 -0
- data/spec/finance/models/cashflow_type_spec.rb +52 -0
- data/spec/finance/models/current_statement_response_spec.rb +70 -0
- data/spec/finance/models/data_source_response_spec.rb +124 -0
- data/spec/finance/models/history_record_response_spec.rb +64 -0
- data/spec/finance/models/lock_history_model_spec.rb +52 -0
- data/spec/finance/models/lock_history_response_spec.rb +52 -0
- data/spec/finance/models/pnl_account_class_spec.rb +46 -0
- data/spec/finance/models/pnl_account_spec.rb +70 -0
- data/spec/finance/models/pnl_account_type_spec.rb +52 -0
- data/spec/finance/models/practice_response_spec.rb +64 -0
- data/spec/finance/models/problem_spec.rb +58 -0
- data/spec/finance/models/problem_type_spec.rb +34 -0
- data/spec/finance/models/profit_and_loss_response_spec.rb +64 -0
- data/spec/finance/models/report_history_model_spec.rb +52 -0
- data/spec/finance/models/report_history_response_spec.rb +52 -0
- data/spec/finance/models/statement_balance_response_spec.rb +46 -0
- data/spec/finance/models/statement_lines_response_spec.rb +136 -0
- data/spec/finance/models/trial_balance_account_spec.rb +94 -0
- data/spec/finance/models/trial_balance_entry_spec.rb +46 -0
- data/spec/finance/models/trial_balance_movement_spec.rb +58 -0
- data/spec/finance/models/trial_balance_response_spec.rb +52 -0
- data/spec/finance/models/user_activities_response_spec.rb +52 -0
- data/spec/finance/models/user_response_spec.rb +106 -0
- metadata +142 -3
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xero-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Xero API Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-11-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -100,8 +100,10 @@ files:
|
|
100
100
|
- README.md
|
101
101
|
- lib/xero-ruby.rb
|
102
102
|
- lib/xero-ruby/api/accounting_api.rb
|
103
|
+
- lib/xero-ruby/api/app_store_api.rb
|
103
104
|
- lib/xero-ruby/api/asset_api.rb
|
104
105
|
- lib/xero-ruby/api/files_api.rb
|
106
|
+
- lib/xero-ruby/api/finance_api.rb
|
105
107
|
- lib/xero-ruby/api/payroll_au_api.rb
|
106
108
|
- lib/xero-ruby/api/payroll_nz_api.rb
|
107
109
|
- lib/xero-ruby/api/payroll_uk_api.rb
|
@@ -239,6 +241,12 @@ files:
|
|
239
241
|
- lib/xero-ruby/models/accounting/user.rb
|
240
242
|
- lib/xero-ruby/models/accounting/users.rb
|
241
243
|
- lib/xero-ruby/models/accounting/validation_error.rb
|
244
|
+
- lib/xero-ruby/models/app_store/plan.rb
|
245
|
+
- lib/xero-ruby/models/app_store/price.rb
|
246
|
+
- lib/xero-ruby/models/app_store/problem_details.rb
|
247
|
+
- lib/xero-ruby/models/app_store/product.rb
|
248
|
+
- lib/xero-ruby/models/app_store/subscription.rb
|
249
|
+
- lib/xero-ruby/models/app_store/subscription_item.rb
|
242
250
|
- lib/xero-ruby/models/assets/asset.rb
|
243
251
|
- lib/xero-ruby/models/assets/asset_status.rb
|
244
252
|
- lib/xero-ruby/models/assets/asset_status_query_param.rb
|
@@ -260,6 +268,49 @@ files:
|
|
260
268
|
- lib/xero-ruby/models/files/object_type.rb
|
261
269
|
- lib/xero-ruby/models/files/upload_object.rb
|
262
270
|
- lib/xero-ruby/models/files/user.rb
|
271
|
+
- lib/xero-ruby/models/finance/account_usage.rb
|
272
|
+
- lib/xero-ruby/models/finance/account_usage_response.rb
|
273
|
+
- lib/xero-ruby/models/finance/balance_sheet_account_detail.rb
|
274
|
+
- lib/xero-ruby/models/finance/balance_sheet_account_group.rb
|
275
|
+
- lib/xero-ruby/models/finance/balance_sheet_account_type.rb
|
276
|
+
- lib/xero-ruby/models/finance/balance_sheet_response.rb
|
277
|
+
- lib/xero-ruby/models/finance/bank_statement_response.rb
|
278
|
+
- lib/xero-ruby/models/finance/cash_account_response.rb
|
279
|
+
- lib/xero-ruby/models/finance/cash_balance.rb
|
280
|
+
- lib/xero-ruby/models/finance/cash_validation_response.rb
|
281
|
+
- lib/xero-ruby/models/finance/cashflow_account.rb
|
282
|
+
- lib/xero-ruby/models/finance/cashflow_activity.rb
|
283
|
+
- lib/xero-ruby/models/finance/cashflow_response.rb
|
284
|
+
- lib/xero-ruby/models/finance/cashflow_type.rb
|
285
|
+
- lib/xero-ruby/models/finance/contact_detail.rb
|
286
|
+
- lib/xero-ruby/models/finance/contact_total_detail.rb
|
287
|
+
- lib/xero-ruby/models/finance/contact_total_other.rb
|
288
|
+
- lib/xero-ruby/models/finance/current_statement_response.rb
|
289
|
+
- lib/xero-ruby/models/finance/data_source_response.rb
|
290
|
+
- lib/xero-ruby/models/finance/history_record_response.rb
|
291
|
+
- lib/xero-ruby/models/finance/income_by_contact_response.rb
|
292
|
+
- lib/xero-ruby/models/finance/lock_history_model.rb
|
293
|
+
- lib/xero-ruby/models/finance/lock_history_response.rb
|
294
|
+
- lib/xero-ruby/models/finance/manual_journal_total.rb
|
295
|
+
- lib/xero-ruby/models/finance/pnl_account.rb
|
296
|
+
- lib/xero-ruby/models/finance/pnl_account_class.rb
|
297
|
+
- lib/xero-ruby/models/finance/pnl_account_type.rb
|
298
|
+
- lib/xero-ruby/models/finance/practice_response.rb
|
299
|
+
- lib/xero-ruby/models/finance/problem.rb
|
300
|
+
- lib/xero-ruby/models/finance/problem_type.rb
|
301
|
+
- lib/xero-ruby/models/finance/profit_and_loss_response.rb
|
302
|
+
- lib/xero-ruby/models/finance/report_history_model.rb
|
303
|
+
- lib/xero-ruby/models/finance/report_history_response.rb
|
304
|
+
- lib/xero-ruby/models/finance/statement_balance_response.rb
|
305
|
+
- lib/xero-ruby/models/finance/statement_lines_response.rb
|
306
|
+
- lib/xero-ruby/models/finance/total_detail.rb
|
307
|
+
- lib/xero-ruby/models/finance/total_other.rb
|
308
|
+
- lib/xero-ruby/models/finance/trial_balance_account.rb
|
309
|
+
- lib/xero-ruby/models/finance/trial_balance_entry.rb
|
310
|
+
- lib/xero-ruby/models/finance/trial_balance_movement.rb
|
311
|
+
- lib/xero-ruby/models/finance/trial_balance_response.rb
|
312
|
+
- lib/xero-ruby/models/finance/user_activities_response.rb
|
313
|
+
- lib/xero-ruby/models/finance/user_response.rb
|
263
314
|
- lib/xero-ruby/models/payroll_au/account.rb
|
264
315
|
- lib/xero-ruby/models/payroll_au/account_type.rb
|
265
316
|
- lib/xero-ruby/models/payroll_au/allowance_type.rb
|
@@ -665,6 +716,13 @@ files:
|
|
665
716
|
- spec/accounting/models/validation_error_spec.rb
|
666
717
|
- spec/api_client_spec.rb
|
667
718
|
- spec/api_error_spec.rb
|
719
|
+
- spec/app_store/api/app_store_api_spec.rb
|
720
|
+
- spec/app_store/models/plan_spec.rb
|
721
|
+
- spec/app_store/models/price_spec.rb
|
722
|
+
- spec/app_store/models/problem_details_spec.rb
|
723
|
+
- spec/app_store/models/product_spec.rb
|
724
|
+
- spec/app_store/models/subscription_item_spec.rb
|
725
|
+
- spec/app_store/models/subscription_spec.rb
|
668
726
|
- spec/assets/api/asset_api_spec.rb
|
669
727
|
- spec/assets/models/asset_spec.rb
|
670
728
|
- spec/assets/models/asset_status_query_param_spec.rb
|
@@ -689,6 +747,43 @@ files:
|
|
689
747
|
- spec/files/models/object_group_spec.rb
|
690
748
|
- spec/files/models/object_type_spec.rb
|
691
749
|
- spec/files/models/user_spec.rb
|
750
|
+
- spec/finance/api/finance_api_spec.rb
|
751
|
+
- spec/finance/models/account_usage_response_spec.rb
|
752
|
+
- spec/finance/models/account_usage_spec.rb
|
753
|
+
- spec/finance/models/balance_sheet_account_detail_spec.rb
|
754
|
+
- spec/finance/models/balance_sheet_account_group_spec.rb
|
755
|
+
- spec/finance/models/balance_sheet_account_type_spec.rb
|
756
|
+
- spec/finance/models/balance_sheet_response_spec.rb
|
757
|
+
- spec/finance/models/bank_statement_response_spec.rb
|
758
|
+
- spec/finance/models/cash_account_response_spec.rb
|
759
|
+
- spec/finance/models/cash_balance_spec.rb
|
760
|
+
- spec/finance/models/cash_validation_response_spec.rb
|
761
|
+
- spec/finance/models/cashflow_account_spec.rb
|
762
|
+
- spec/finance/models/cashflow_activity_spec.rb
|
763
|
+
- spec/finance/models/cashflow_response_spec.rb
|
764
|
+
- spec/finance/models/cashflow_type_spec.rb
|
765
|
+
- spec/finance/models/current_statement_response_spec.rb
|
766
|
+
- spec/finance/models/data_source_response_spec.rb
|
767
|
+
- spec/finance/models/history_record_response_spec.rb
|
768
|
+
- spec/finance/models/lock_history_model_spec.rb
|
769
|
+
- spec/finance/models/lock_history_response_spec.rb
|
770
|
+
- spec/finance/models/pnl_account_class_spec.rb
|
771
|
+
- spec/finance/models/pnl_account_spec.rb
|
772
|
+
- spec/finance/models/pnl_account_type_spec.rb
|
773
|
+
- spec/finance/models/practice_response_spec.rb
|
774
|
+
- spec/finance/models/problem_spec.rb
|
775
|
+
- spec/finance/models/problem_type_spec.rb
|
776
|
+
- spec/finance/models/profit_and_loss_response_spec.rb
|
777
|
+
- spec/finance/models/report_history_model_spec.rb
|
778
|
+
- spec/finance/models/report_history_response_spec.rb
|
779
|
+
- spec/finance/models/statement_balance_response_spec.rb
|
780
|
+
- spec/finance/models/statement_lines_response_spec.rb
|
781
|
+
- spec/finance/models/trial_balance_account_spec.rb
|
782
|
+
- spec/finance/models/trial_balance_entry_spec.rb
|
783
|
+
- spec/finance/models/trial_balance_movement_spec.rb
|
784
|
+
- spec/finance/models/trial_balance_response_spec.rb
|
785
|
+
- spec/finance/models/user_activities_response_spec.rb
|
786
|
+
- spec/finance/models/user_response_spec.rb
|
692
787
|
- spec/helper_methods_spec.rb
|
693
788
|
- spec/payroll_au/api/payroll_au_api_spec.rb
|
694
789
|
- spec/payroll_au/models/account_spec.rb
|
@@ -999,7 +1094,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
999
1094
|
- !ruby/object:Gem::Version
|
1000
1095
|
version: '0'
|
1001
1096
|
requirements: []
|
1002
|
-
rubygems_version: 3.
|
1097
|
+
rubygems_version: 3.2.3
|
1003
1098
|
signing_key:
|
1004
1099
|
specification_version: 4
|
1005
1100
|
summary: Xero Accounting API Ruby Gem
|
@@ -1121,6 +1216,13 @@ test_files:
|
|
1121
1216
|
- spec/accounting/api/accounting_api_spec.rb
|
1122
1217
|
- spec/api_client_spec.rb
|
1123
1218
|
- spec/api_error_spec.rb
|
1219
|
+
- spec/app_store/models/problem_details_spec.rb
|
1220
|
+
- spec/app_store/models/product_spec.rb
|
1221
|
+
- spec/app_store/models/plan_spec.rb
|
1222
|
+
- spec/app_store/models/price_spec.rb
|
1223
|
+
- spec/app_store/models/subscription_spec.rb
|
1224
|
+
- spec/app_store/models/subscription_item_spec.rb
|
1225
|
+
- spec/app_store/api/app_store_api_spec.rb
|
1124
1226
|
- spec/assets/models/book_depreciation_detail_spec.rb
|
1125
1227
|
- spec/assets/models/error_spec.rb
|
1126
1228
|
- spec/assets/models/field_validation_errors_element_spec.rb
|
@@ -1145,6 +1247,43 @@ test_files:
|
|
1145
1247
|
- spec/files/models/association_spec.rb
|
1146
1248
|
- spec/files/models/user_spec.rb
|
1147
1249
|
- spec/files/api/files_api_spec.rb
|
1250
|
+
- spec/finance/models/user_response_spec.rb
|
1251
|
+
- spec/finance/models/statement_balance_response_spec.rb
|
1252
|
+
- spec/finance/models/history_record_response_spec.rb
|
1253
|
+
- spec/finance/models/cashflow_account_spec.rb
|
1254
|
+
- spec/finance/models/problem_spec.rb
|
1255
|
+
- spec/finance/models/balance_sheet_account_group_spec.rb
|
1256
|
+
- spec/finance/models/account_usage_spec.rb
|
1257
|
+
- spec/finance/models/profit_and_loss_response_spec.rb
|
1258
|
+
- spec/finance/models/cashflow_activity_spec.rb
|
1259
|
+
- spec/finance/models/cashflow_response_spec.rb
|
1260
|
+
- spec/finance/models/bank_statement_response_spec.rb
|
1261
|
+
- spec/finance/models/trial_balance_entry_spec.rb
|
1262
|
+
- spec/finance/models/cash_validation_response_spec.rb
|
1263
|
+
- spec/finance/models/balance_sheet_account_detail_spec.rb
|
1264
|
+
- spec/finance/models/pnl_account_spec.rb
|
1265
|
+
- spec/finance/models/balance_sheet_response_spec.rb
|
1266
|
+
- spec/finance/models/lock_history_model_spec.rb
|
1267
|
+
- spec/finance/models/cash_balance_spec.rb
|
1268
|
+
- spec/finance/models/user_activities_response_spec.rb
|
1269
|
+
- spec/finance/models/report_history_model_spec.rb
|
1270
|
+
- spec/finance/models/problem_type_spec.rb
|
1271
|
+
- spec/finance/models/trial_balance_movement_spec.rb
|
1272
|
+
- spec/finance/models/pnl_account_class_spec.rb
|
1273
|
+
- spec/finance/models/trial_balance_response_spec.rb
|
1274
|
+
- spec/finance/models/pnl_account_type_spec.rb
|
1275
|
+
- spec/finance/models/practice_response_spec.rb
|
1276
|
+
- spec/finance/models/data_source_response_spec.rb
|
1277
|
+
- spec/finance/models/account_usage_response_spec.rb
|
1278
|
+
- spec/finance/models/cash_account_response_spec.rb
|
1279
|
+
- spec/finance/models/report_history_response_spec.rb
|
1280
|
+
- spec/finance/models/balance_sheet_account_type_spec.rb
|
1281
|
+
- spec/finance/models/current_statement_response_spec.rb
|
1282
|
+
- spec/finance/models/trial_balance_account_spec.rb
|
1283
|
+
- spec/finance/models/lock_history_response_spec.rb
|
1284
|
+
- spec/finance/models/statement_lines_response_spec.rb
|
1285
|
+
- spec/finance/models/cashflow_type_spec.rb
|
1286
|
+
- spec/finance/api/finance_api_spec.rb
|
1148
1287
|
- spec/helper_methods_spec.rb
|
1149
1288
|
- spec/payroll_au/models/settings_tracking_categories_spec.rb
|
1150
1289
|
- spec/payroll_au/models/home_address_spec.rb
|