mx-platform-ruby 0.9.0 → 0.10.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 (33) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +13 -13
  3. data/README.md +7 -7
  4. data/docs/HoldingResponse.md +1 -1
  5. data/docs/MxPlatformApi.md +96 -90
  6. data/lib/mx-platform-ruby/api/mx_platform_api.rb +159 -131
  7. data/lib/mx-platform-ruby/models/account_number_response.rb +4 -0
  8. data/lib/mx-platform-ruby/models/account_owner_response.rb +4 -0
  9. data/lib/mx-platform-ruby/models/account_response.rb +3 -0
  10. data/lib/mx-platform-ruby/models/category_response.rb +2 -0
  11. data/lib/mx-platform-ruby/models/challenge_response.rb +1 -0
  12. data/lib/mx-platform-ruby/models/connect_widget_response.rb +1 -0
  13. data/lib/mx-platform-ruby/models/credential_request.rb +0 -1
  14. data/lib/mx-platform-ruby/models/credential_response.rb +2 -0
  15. data/lib/mx-platform-ruby/models/enhance_transaction_response.rb +1 -0
  16. data/lib/mx-platform-ruby/models/holding_response.rb +4 -0
  17. data/lib/mx-platform-ruby/models/member_response.rb +2 -0
  18. data/lib/mx-platform-ruby/models/member_status_response.rb +1 -0
  19. data/lib/mx-platform-ruby/models/merchant_location_response.rb +2 -0
  20. data/lib/mx-platform-ruby/models/merchant_response.rb +1 -0
  21. data/lib/mx-platform-ruby/models/o_auth_window_response.rb +1 -0
  22. data/lib/mx-platform-ruby/models/statement_response.rb +4 -0
  23. data/lib/mx-platform-ruby/models/tag_response.rb +2 -0
  24. data/lib/mx-platform-ruby/models/tagging_response.rb +4 -0
  25. data/lib/mx-platform-ruby/models/transaction_response.rb +6 -0
  26. data/lib/mx-platform-ruby/models/transaction_rule_response.rb +3 -0
  27. data/lib/mx-platform-ruby/models/transaction_rule_update_request.rb +0 -2
  28. data/lib/mx-platform-ruby/models/user_response.rb +1 -0
  29. data/lib/mx-platform-ruby/version.rb +1 -1
  30. data/openapi/config.yml +1 -1
  31. data/openapi/templates/README.mustache +7 -7
  32. data/spec/api/mx_platform_api_spec.rb +19 -15
  33. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0cda52249603c85180effee9ac2d345646f9c56518553fc4f8914ec66fc6b80a
4
- data.tar.gz: 49f1c7736eda54e129873d803018d2e5dd8d876a017901dd12d8653bdd1aa9ca
3
+ metadata.gz: f0c79e61ba996b5559c17e4d1dc8ec87138454d23e515b57445f40400a71d806
4
+ data.tar.gz: 8c6978931f616cdea8d57bf33d6b541600bc62ad76b2ff49906e387af1e0cf00
5
5
  SHA512:
6
- metadata.gz: 441cf1732491aa0531bfe78a8ec4a8c181f3bd1aea8dbd314bc521ebdd1ebcb2a831b875507ac255ead6e6134075d265b90b1ece578f31548d756a0a27b19ee9
7
- data.tar.gz: 0b80b5fec98251cf4713f6d3a4ef910cea74e60dd23b00170935e9bd31ad9d910f6d9af8ba9c2c50b06ea34f8740618452a88fb6ecae4266a8c7754b382dd9f4
6
+ metadata.gz: 8f9da0861c2663bfc726ec1e3c054ed1a3fbc109b69b01e09833ce01117ae19c5d52f834e9ffd92e372225d9fbe9a5e7a83ff929ff6ef7981ec3b80a92407e15
7
+ data.tar.gz: ee495bad85076c335f6a9e78401848b8f2a666e847f4968c3174374d844e87393b3146a9462dab863271963b9145eac7b6c73b44378f07af7a660e8258cb18f0
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mx-platform-ruby (0.9.0)
4
+ mx-platform-ruby (0.10.0)
5
5
  faraday (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
@@ -50,19 +50,19 @@ GEM
50
50
  stringio
51
51
  rainbow (3.1.1)
52
52
  rake (13.0.6)
53
- rspec (3.10.0)
54
- rspec-core (~> 3.10.0)
55
- rspec-expectations (~> 3.10.0)
56
- rspec-mocks (~> 3.10.0)
57
- rspec-core (3.10.2)
58
- rspec-support (~> 3.10.0)
59
- rspec-expectations (3.10.2)
53
+ rspec (3.11.0)
54
+ rspec-core (~> 3.11.0)
55
+ rspec-expectations (~> 3.11.0)
56
+ rspec-mocks (~> 3.11.0)
57
+ rspec-core (3.11.0)
58
+ rspec-support (~> 3.11.0)
59
+ rspec-expectations (3.11.0)
60
60
  diff-lcs (>= 1.2.0, < 2.0)
61
- rspec-support (~> 3.10.0)
62
- rspec-mocks (3.10.3)
61
+ rspec-support (~> 3.11.0)
62
+ rspec-mocks (3.11.0)
63
63
  diff-lcs (>= 1.2.0, < 2.0)
64
- rspec-support (~> 3.10.0)
65
- rspec-support (3.10.3)
64
+ rspec-support (~> 3.11.0)
65
+ rspec-support (3.11.0)
66
66
  rubocop (0.66.0)
67
67
  jaro_winkler (~> 1.5.1)
68
68
  parallel (~> 1.10)
@@ -87,4 +87,4 @@ DEPENDENCIES
87
87
  rubocop (~> 0.66.0)
88
88
 
89
89
  BUNDLED WITH
90
- 2.3.6
90
+ 2.3.7
data/README.md CHANGED
@@ -38,7 +38,7 @@ Please follow the [installation](#installation) procedure and then run the follo
38
38
  ```ruby
39
39
  require 'mx-platform-ruby'
40
40
 
41
- MxPlatformRuby.configure do |config|
41
+ ::MxPlatformRuby.configure do |config|
42
42
  # Configure with your Client ID/API Key from https://dashboard.mx.com
43
43
  config.username = 'Your Client ID'
44
44
  config.password = 'Your API Key'
@@ -51,16 +51,16 @@ api_client = ::MxPlatformRuby::ApiClient.new
51
51
  api_client.default_headers['Accept'] = 'application/vnd.mx.api.v1+json'
52
52
  mx_platform_api = ::MxPlatformRuby::MxPlatformApi.new(api_client)
53
53
 
54
- user_create_request_body = MxPlatformRuby::UserCreateRequestBody.new(
55
- user: MxPlatformRuby::UserCreateRequest.new(
56
- metadata: "Creating a user!"
54
+ request_body = ::MxPlatformRuby::UserCreateRequestBody.new(
55
+ user: ::MxPlatformRuby::UserCreateRequest.new(
56
+ metadata: 'Creating a user!'
57
57
  )
58
58
  )
59
59
 
60
60
  begin
61
- result = api_instance.create_user(user_create_request_body)
62
- p result
63
- rescue MxPlatformRuby::ApiError => e
61
+ response = mx_platform_api.create_user(request_body)
62
+ p response
63
+ rescue ::MxPlatformRuby::ApiError => e
64
64
  puts "Error when calling MxPlatformApi->create_user: #{e}"
65
65
  end
66
66
  ```
@@ -29,7 +29,7 @@
29
29
  require 'mx-platform-ruby'
30
30
 
31
31
  instance = MxPlatformRuby::HoldingResponse.new(
32
- account_guid: HOL-d65683e8-9eab-26bb-bcfd-ced159c9abe2,
32
+ account_guid: ACT-06d7f44b-caae-0f6e-1384-01f52e75dcb1,
33
33
  cost_basis: 827.0,
34
34
  created_at: 2015-04-13T18:01:23.000Z,
35
35
  currency_code: USD,