mx-platform-ruby 0.9.0 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +13 -13
- data/README.md +7 -7
- data/docs/HoldingResponse.md +1 -1
- data/docs/MxPlatformApi.md +96 -90
- data/lib/mx-platform-ruby/api/mx_platform_api.rb +159 -131
- data/lib/mx-platform-ruby/models/account_number_response.rb +4 -0
- data/lib/mx-platform-ruby/models/account_owner_response.rb +4 -0
- data/lib/mx-platform-ruby/models/account_response.rb +3 -0
- data/lib/mx-platform-ruby/models/category_response.rb +2 -0
- data/lib/mx-platform-ruby/models/challenge_response.rb +1 -0
- data/lib/mx-platform-ruby/models/connect_widget_response.rb +1 -0
- data/lib/mx-platform-ruby/models/credential_request.rb +0 -1
- data/lib/mx-platform-ruby/models/credential_response.rb +2 -0
- data/lib/mx-platform-ruby/models/enhance_transaction_response.rb +1 -0
- data/lib/mx-platform-ruby/models/holding_response.rb +4 -0
- data/lib/mx-platform-ruby/models/member_response.rb +2 -0
- data/lib/mx-platform-ruby/models/member_status_response.rb +1 -0
- data/lib/mx-platform-ruby/models/merchant_location_response.rb +2 -0
- data/lib/mx-platform-ruby/models/merchant_response.rb +1 -0
- data/lib/mx-platform-ruby/models/o_auth_window_response.rb +1 -0
- data/lib/mx-platform-ruby/models/statement_response.rb +4 -0
- data/lib/mx-platform-ruby/models/tag_response.rb +2 -0
- data/lib/mx-platform-ruby/models/tagging_response.rb +4 -0
- data/lib/mx-platform-ruby/models/transaction_response.rb +6 -0
- data/lib/mx-platform-ruby/models/transaction_rule_response.rb +3 -0
- data/lib/mx-platform-ruby/models/transaction_rule_update_request.rb +0 -2
- data/lib/mx-platform-ruby/models/user_response.rb +1 -0
- data/lib/mx-platform-ruby/version.rb +1 -1
- data/openapi/config.yml +1 -1
- data/openapi/templates/README.mustache +7 -7
- data/spec/api/mx_platform_api_spec.rb +19 -15
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0c79e61ba996b5559c17e4d1dc8ec87138454d23e515b57445f40400a71d806
|
4
|
+
data.tar.gz: 8c6978931f616cdea8d57bf33d6b541600bc62ad76b2ff49906e387af1e0cf00
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
54
|
-
rspec-core (~> 3.
|
55
|
-
rspec-expectations (~> 3.
|
56
|
-
rspec-mocks (~> 3.
|
57
|
-
rspec-core (3.
|
58
|
-
rspec-support (~> 3.
|
59
|
-
rspec-expectations (3.
|
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.
|
62
|
-
rspec-mocks (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.
|
65
|
-
rspec-support (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.
|
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
|
-
|
55
|
-
user: MxPlatformRuby::UserCreateRequest.new(
|
56
|
-
metadata:
|
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
|
-
|
62
|
-
p
|
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
|
```
|
data/docs/HoldingResponse.md
CHANGED
@@ -29,7 +29,7 @@
|
|
29
29
|
require 'mx-platform-ruby'
|
30
30
|
|
31
31
|
instance = MxPlatformRuby::HoldingResponse.new(
|
32
|
-
account_guid:
|
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,
|