xero-ruby 3.1.4 → 3.4.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.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +257 -222
  3. data/lib/xero-ruby/api/accounting_api.rb +11 -2
  4. data/lib/xero-ruby/api/app_store_api.rb +87 -0
  5. data/lib/xero-ruby/api/payroll_au_api.rb +14 -14
  6. data/lib/xero-ruby/api/payroll_nz_api.rb +18 -12
  7. data/lib/xero-ruby/api/payroll_uk_api.rb +14 -2
  8. data/lib/xero-ruby/api_client.rb +35 -6
  9. data/lib/xero-ruby/configuration.rb +2 -0
  10. data/lib/xero-ruby/models/accounting/bank_transfer.rb +35 -1
  11. data/lib/xero-ruby/models/accounting/budget_balance.rb +2 -2
  12. data/lib/xero-ruby/models/accounting/payment.rb +11 -1
  13. data/lib/xero-ruby/models/accounting/time_zone.rb +1 -0
  14. data/lib/xero-ruby/models/app_store/plan.rb +310 -0
  15. data/lib/xero-ruby/models/app_store/price.rb +257 -0
  16. data/lib/xero-ruby/models/app_store/problem_details.rb +272 -0
  17. data/lib/xero-ruby/models/app_store/product.rb +288 -0
  18. data/lib/xero-ruby/models/app_store/subscription.rb +324 -0
  19. data/lib/xero-ruby/models/app_store/subscription_item.rb +292 -0
  20. data/lib/xero-ruby/models/payroll_au/earnings_type.rb +2 -0
  21. data/lib/xero-ruby/models/payroll_au/employee.rb +30 -1
  22. data/lib/xero-ruby/models/payroll_au/manual_tax_type.rb +1 -0
  23. data/lib/xero-ruby/models/payroll_au/payroll_calendar.rb +11 -1
  24. data/lib/xero-ruby/models/payroll_uk/earnings_rate.rb +4 -4
  25. data/lib/xero-ruby/version.rb +2 -2
  26. data/lib/xero-ruby.rb +7 -0
  27. data/spec/api_client_spec.rb +25 -2
  28. data/spec/app_store/api/app_store_api_spec.rb +45 -0
  29. data/spec/app_store/models/plan_spec.rb +62 -0
  30. data/spec/app_store/models/price_spec.rb +52 -0
  31. data/spec/app_store/models/problem_details_spec.rb +70 -0
  32. data/spec/app_store/models/product_spec.rb +56 -0
  33. data/spec/app_store/models/subscription_item_spec.rb +70 -0
  34. data/spec/app_store/models/subscription_spec.rb +82 -0
  35. metadata +24 -3
@@ -0,0 +1,82 @@
1
+ =begin
2
+ #Xero AppStore API
3
+
4
+ #These endpoints are for Xero Partners to interact with the App Store Billing platform
5
+
6
+ Contact: api@xero.com
7
+ Generated by: https://openapi-generator.tech
8
+ OpenAPI Generator version: 4.3.1
9
+
10
+ =end
11
+
12
+ require 'spec_helper'
13
+ require 'json'
14
+ require 'date'
15
+
16
+ # Unit tests for XeroRuby::AppStore::Subscription
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'Subscription' do
20
+ before do
21
+ # run before each test
22
+ @instance = XeroRuby::AppStore::Subscription.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of Subscription' do
30
+ it 'should create an instance of Subscription' do
31
+ expect(@instance).to be_instance_of(XeroRuby::AppStore::Subscription)
32
+ end
33
+ end
34
+ describe 'test attribute "current_period_end"' do
35
+ it 'should work' do
36
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
+ end
38
+ end
39
+
40
+ describe 'test attribute "end_date"' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ end
44
+ end
45
+
46
+ describe 'test attribute "id"' do
47
+ it 'should work' do
48
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
49
+ end
50
+ end
51
+
52
+ describe 'test attribute "organisation_id"' do
53
+ it 'should work' do
54
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
+ end
56
+ end
57
+
58
+ describe 'test attribute "plans"' do
59
+ it 'should work' do
60
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
61
+ end
62
+ end
63
+
64
+ describe 'test attribute "start_date"' do
65
+ it 'should work' do
66
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
67
+ end
68
+ end
69
+
70
+ describe 'test attribute "status"' do
71
+ it 'should work' do
72
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
73
+ end
74
+ end
75
+
76
+ describe 'test attribute "test_mode"' do
77
+ it 'should work' do
78
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
79
+ end
80
+ end
81
+
82
+ end
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.1.4
4
+ version: 3.4.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-07-02 00:00:00.000000000 Z
11
+ date: 2021-10-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -100,6 +100,7 @@ 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
105
106
  - lib/xero-ruby/api/payroll_au_api.rb
@@ -239,6 +240,12 @@ files:
239
240
  - lib/xero-ruby/models/accounting/user.rb
240
241
  - lib/xero-ruby/models/accounting/users.rb
241
242
  - lib/xero-ruby/models/accounting/validation_error.rb
243
+ - lib/xero-ruby/models/app_store/plan.rb
244
+ - lib/xero-ruby/models/app_store/price.rb
245
+ - lib/xero-ruby/models/app_store/problem_details.rb
246
+ - lib/xero-ruby/models/app_store/product.rb
247
+ - lib/xero-ruby/models/app_store/subscription.rb
248
+ - lib/xero-ruby/models/app_store/subscription_item.rb
242
249
  - lib/xero-ruby/models/assets/asset.rb
243
250
  - lib/xero-ruby/models/assets/asset_status.rb
244
251
  - lib/xero-ruby/models/assets/asset_status_query_param.rb
@@ -665,6 +672,13 @@ files:
665
672
  - spec/accounting/models/validation_error_spec.rb
666
673
  - spec/api_client_spec.rb
667
674
  - spec/api_error_spec.rb
675
+ - spec/app_store/api/app_store_api_spec.rb
676
+ - spec/app_store/models/plan_spec.rb
677
+ - spec/app_store/models/price_spec.rb
678
+ - spec/app_store/models/problem_details_spec.rb
679
+ - spec/app_store/models/product_spec.rb
680
+ - spec/app_store/models/subscription_item_spec.rb
681
+ - spec/app_store/models/subscription_spec.rb
668
682
  - spec/assets/api/asset_api_spec.rb
669
683
  - spec/assets/models/asset_spec.rb
670
684
  - spec/assets/models/asset_status_query_param_spec.rb
@@ -999,7 +1013,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
999
1013
  - !ruby/object:Gem::Version
1000
1014
  version: '0'
1001
1015
  requirements: []
1002
- rubygems_version: 3.1.2
1016
+ rubygems_version: 3.2.3
1003
1017
  signing_key:
1004
1018
  specification_version: 4
1005
1019
  summary: Xero Accounting API Ruby Gem
@@ -1121,6 +1135,13 @@ test_files:
1121
1135
  - spec/accounting/api/accounting_api_spec.rb
1122
1136
  - spec/api_client_spec.rb
1123
1137
  - spec/api_error_spec.rb
1138
+ - spec/app_store/models/problem_details_spec.rb
1139
+ - spec/app_store/models/product_spec.rb
1140
+ - spec/app_store/models/plan_spec.rb
1141
+ - spec/app_store/models/price_spec.rb
1142
+ - spec/app_store/models/subscription_spec.rb
1143
+ - spec/app_store/models/subscription_item_spec.rb
1144
+ - spec/app_store/api/app_store_api_spec.rb
1124
1145
  - spec/assets/models/book_depreciation_detail_spec.rb
1125
1146
  - spec/assets/models/error_spec.rb
1126
1147
  - spec/assets/models/field_validation_errors_element_spec.rb