modulr-api 0.0.5 → 0.0.6
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +50 -3
- data/Guardfile +50 -0
- data/README.md +42 -12
- data/doc/modulr_requests/accounts/close.http +4 -0
- data/doc/modulr_requests/accounts/create.http +21 -0
- data/doc/modulr_requests/http-client.env.json +8 -0
- data/doc/modulr_requests/transactions/history.http +4 -0
- data/lib/modulr/api/accounts_service.rb +16 -1
- data/lib/modulr/api/services.rb +5 -0
- data/lib/modulr/api/transactions_service.rb +12 -0
- data/lib/modulr/resources/accounts/identifier.rb +3 -3
- data/lib/modulr/resources/base.rb +4 -0
- data/lib/modulr/resources/collection.rb +1 -1
- data/lib/modulr/resources/transactions/transaction.rb +30 -0
- data/lib/modulr/resources/transactions/transactions.rb +13 -0
- data/lib/modulr/version.rb +1 -1
- data/modulr.gemspec +4 -1
- metadata +53 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aab231f807a74a8bcbfa325435643cc639e6a5dc546f756dff2c8632044c5f83
|
4
|
+
data.tar.gz: dca07503d073c6d48f7556b5ede035cf1c596ac535774fe33409d9fbd3c61f86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8cdaa03c41360d271822cfe63117e8559341686902a76861fec81eb8de8349558450f5a14e8f08d77842eb62cd1002697310ef761acde375bc8529eea689d9ef
|
7
|
+
data.tar.gz: 4797ea33e24b82ea71273b795e3e6e579c58fb203407d25d255e2e72ec41f3b9bcfd39885fc1bd3d080b7ee692a2d6ffb20ee4746adab4543c5b4794f8c66b23
|
data/Gemfile.lock
CHANGED
@@ -1,16 +1,21 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
modulr-api (0.0.
|
4
|
+
modulr-api (0.0.6)
|
5
5
|
faraday (~> 1.0)
|
6
6
|
faraday_middleware (~> 1.0)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
+
addressable (2.8.1)
|
12
|
+
public_suffix (>= 2.0.2, < 6.0)
|
11
13
|
ast (2.4.2)
|
14
|
+
coderay (1.1.3)
|
15
|
+
crack (0.4.5)
|
16
|
+
rexml
|
12
17
|
diff-lcs (1.5.0)
|
13
|
-
faraday (1.10.
|
18
|
+
faraday (1.10.2)
|
14
19
|
faraday-em_http (~> 1.0)
|
15
20
|
faraday-em_synchrony (~> 1.0)
|
16
21
|
faraday-excon (~> 1.1)
|
@@ -35,13 +40,46 @@ GEM
|
|
35
40
|
faraday-retry (1.0.3)
|
36
41
|
faraday_middleware (1.2.0)
|
37
42
|
faraday (~> 1.0)
|
43
|
+
ffi (1.15.5)
|
44
|
+
formatador (1.1.0)
|
45
|
+
guard (2.18.0)
|
46
|
+
formatador (>= 0.2.4)
|
47
|
+
listen (>= 2.7, < 4.0)
|
48
|
+
lumberjack (>= 1.0.12, < 2.0)
|
49
|
+
nenv (~> 0.1)
|
50
|
+
notiffany (~> 0.0)
|
51
|
+
pry (>= 0.13.0)
|
52
|
+
shellany (~> 0.0)
|
53
|
+
thor (>= 0.18.1)
|
54
|
+
guard-compat (1.2.1)
|
55
|
+
guard-rspec (4.7.3)
|
56
|
+
guard (~> 2.1)
|
57
|
+
guard-compat (~> 1.1)
|
58
|
+
rspec (>= 2.99.0, < 4.0)
|
59
|
+
hashdiff (1.0.1)
|
38
60
|
json (2.6.2)
|
61
|
+
listen (3.7.1)
|
62
|
+
rb-fsevent (~> 0.10, >= 0.10.3)
|
63
|
+
rb-inotify (~> 0.9, >= 0.9.10)
|
64
|
+
lumberjack (1.2.8)
|
65
|
+
method_source (1.0.0)
|
39
66
|
multipart-post (2.2.3)
|
67
|
+
nenv (0.3.0)
|
68
|
+
notiffany (0.1.3)
|
69
|
+
nenv (~> 0.1)
|
70
|
+
shellany (~> 0.0)
|
40
71
|
parallel (1.22.1)
|
41
72
|
parser (3.1.2.0)
|
42
73
|
ast (~> 2.4.1)
|
74
|
+
pry (0.14.1)
|
75
|
+
coderay (~> 1.1)
|
76
|
+
method_source (~> 1.0)
|
77
|
+
public_suffix (5.0.0)
|
43
78
|
rainbow (3.1.1)
|
44
79
|
rake (12.3.3)
|
80
|
+
rb-fsevent (0.11.1)
|
81
|
+
rb-inotify (0.10.1)
|
82
|
+
ffi (~> 1.0)
|
45
83
|
regexp_parser (2.5.0)
|
46
84
|
rexml (3.2.5)
|
47
85
|
rspec (3.10.0)
|
@@ -78,8 +116,14 @@ GEM
|
|
78
116
|
rubocop (~> 1.19)
|
79
117
|
ruby-progressbar (1.11.0)
|
80
118
|
ruby2_keywords (0.0.5)
|
119
|
+
shellany (0.0.1)
|
81
120
|
test-prof (1.0.9)
|
121
|
+
thor (1.2.1)
|
82
122
|
unicode-display_width (2.2.0)
|
123
|
+
webmock (2.3.2)
|
124
|
+
addressable (>= 2.3.6)
|
125
|
+
crack (>= 0.3.2)
|
126
|
+
hashdiff
|
83
127
|
|
84
128
|
PLATFORMS
|
85
129
|
arm64-darwin-20
|
@@ -87,6 +131,8 @@ PLATFORMS
|
|
87
131
|
x86_64-linux
|
88
132
|
|
89
133
|
DEPENDENCIES
|
134
|
+
guard (~> 2.0)
|
135
|
+
guard-rspec (~> 4.0)
|
90
136
|
modulr-api!
|
91
137
|
rake (~> 12.0)
|
92
138
|
rspec (~> 3.0)
|
@@ -95,6 +141,7 @@ DEPENDENCIES
|
|
95
141
|
rubocop-rake (~> 0.1)
|
96
142
|
rubocop-rspec (~> 2.0)
|
97
143
|
test-prof (~> 1.0)
|
144
|
+
webmock (~> 2.1)
|
98
145
|
|
99
146
|
BUNDLED WITH
|
100
|
-
2.3.
|
147
|
+
2.3.15
|
data/Guardfile
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# A sample Guardfile
|
4
|
+
# More info at https://github.com/guard/guard#readme
|
5
|
+
|
6
|
+
## Uncomment and set this to only include directories you want to watch
|
7
|
+
# directories %w(app lib config test spec features) \
|
8
|
+
# .select{|d| Dir.exist?(d) ? d : UI.warning("Directory #{d} does not exist")}
|
9
|
+
|
10
|
+
## Note: if you are using the `directories` clause above and you are not
|
11
|
+
## watching the project directory ('.'), then you will want to move
|
12
|
+
## the Guardfile to a watched dir and symlink it back, e.g.
|
13
|
+
#
|
14
|
+
# $ mkdir config
|
15
|
+
# $ mv Guardfile config/
|
16
|
+
# $ ln -s config/Guardfile .
|
17
|
+
#
|
18
|
+
# and, you'll have to watch "config/Guardfile" instead of "Guardfile"
|
19
|
+
|
20
|
+
# NOTE: The cmd option is now required due to the increasing number of ways
|
21
|
+
# rspec may be run, below are examples of the most common uses.
|
22
|
+
# * bundler: 'bundle exec rspec'
|
23
|
+
# * bundler binstubs: 'bin/rspec'
|
24
|
+
# * spring: 'bin/rspec' (This will use spring if running and you have
|
25
|
+
# installed the spring binstubs per the docs)
|
26
|
+
# * zeus: 'zeus rspec' (requires the server to be started separately)
|
27
|
+
# * 'just' rspec: 'rspec'
|
28
|
+
|
29
|
+
guard :rspec, cmd: "bundle exec rspec" do
|
30
|
+
require "guard/rspec/dsl"
|
31
|
+
dsl = Guard::RSpec::Dsl.new(self)
|
32
|
+
|
33
|
+
# Feel free to open issues for suggestions and improvements
|
34
|
+
|
35
|
+
# RSpec files
|
36
|
+
rspec = dsl.rspec
|
37
|
+
watch(rspec.spec_helper) { rspec.spec_dir }
|
38
|
+
watch(rspec.spec_support) { rspec.spec_dir }
|
39
|
+
watch(rspec.spec_files)
|
40
|
+
|
41
|
+
# Ruby files
|
42
|
+
ruby = dsl.ruby
|
43
|
+
dsl.watch_spec_files_for(ruby.lib_files)
|
44
|
+
|
45
|
+
# Turnip features and steps
|
46
|
+
watch(%r{^spec/acceptance/(.+)\.feature$})
|
47
|
+
watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) do |m|
|
48
|
+
Dir[File.join("**/#{m[1]}.feature")][0] || "spec/acceptance"
|
49
|
+
end
|
50
|
+
end
|
data/README.md
CHANGED
@@ -1,15 +1,15 @@
|
|
1
|
-
# Modulr
|
1
|
+
# Modulr FINAC API Ruby client
|
2
2
|
|
3
|
-
|
3
|
+
Ruby client for Modulr (cf. <https://modulr.readme.io/docs>)
|
4
4
|
|
5
|
-
|
5
|
+
Run `bin/console` for an interactive prompt to experiment with the code.
|
6
6
|
|
7
7
|
## Installation
|
8
8
|
|
9
9
|
Add this line to your application's Gemfile:
|
10
10
|
|
11
11
|
```ruby
|
12
|
-
gem
|
12
|
+
gem "modulr-api"
|
13
13
|
```
|
14
14
|
|
15
15
|
And then execute:
|
@@ -24,24 +24,54 @@ Or install it yourself as:
|
|
24
24
|
gem install modulr-api
|
25
25
|
```
|
26
26
|
|
27
|
-
##
|
27
|
+
## Release
|
28
28
|
|
29
|
-
|
29
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `bundle exec rspec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
30
|
|
31
|
-
|
31
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then tag and push the new version:
|
32
32
|
|
33
|
-
|
33
|
+
```git
|
34
|
+
git tag vx.x.x main
|
35
|
+
git push origin vx.x.x
|
36
|
+
```
|
37
|
+
|
38
|
+
The tagging will trigger the GitHub action defined in `release.yml`, pushing the gem to [rubygems.org](https://rubygems.org).
|
39
|
+
|
40
|
+
## Tooling
|
41
|
+
|
42
|
+
We have a tooling system based on HTTP request files which allow developers to run pre-format Modulr API requests easily. These HTTP request files are stored inside `doc/modulr_requests` directory. Find the service you want to run and run the specific HTTP file to execute the request locally.
|
43
|
+
|
44
|
+
We run these requests locally from our favorite IDEs, in our case, we use ([IntelliJ](https://www.jetbrains.com/es-es/idea/) or [VS Code](https://code.visualstudio.com/)). [IntelliJ](https://www.jetbrains.com/es-es/idea/) has a native feature that allows you to run these requests easily but if you are using [VS Code](https://code.visualstudio.com/) you will need to install the following extension [httpYac](https://marketplace.visualstudio.com/items?itemName=anweber.vscode-httpyac).
|
45
|
+
|
46
|
+
To configure the HTTP files system create a new `modulr-ruby/doc/modulr_requests/http-client.private.env.json` from `modulr-ruby/doc/modulr_requests/http-client.env.json` file.
|
47
|
+
Configure all variables by environment and you are ready to use your HTTP files.
|
48
|
+
|
49
|
+
## Testing
|
50
|
+
|
51
|
+
Any change should be tested. Builds with failures would not be allowed to merge.
|
52
|
+
To run your test suite locally using Rspec:
|
53
|
+
|
54
|
+
```ruby
|
55
|
+
bundle exec rspec
|
56
|
+
```
|
57
|
+
|
58
|
+
To prepare your environment to listen for your local code changes use Guard instead:
|
59
|
+
|
60
|
+
```ruby
|
61
|
+
bundle exec guard
|
62
|
+
```
|
34
63
|
|
35
|
-
To
|
64
|
+
To test services, we have a spec system that uses the [Webmock](https://github.com/bblimke/webmock) library to stub requests and checks them against service response HTTP format files.
|
65
|
+
These HTTP files are stored in the `spec/fixtures` directory.
|
36
66
|
|
37
67
|
## Contributing
|
38
68
|
|
39
|
-
Bug reports and pull requests are welcome on GitHub at <https://github.com/
|
69
|
+
Bug reports and pull requests are welcome on GitHub at <https://github.com/devengoapp/modulr-ruby>. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/devengoapp/modulr-ruby/blob/main/CODE_OF_CONDUCT.md).
|
40
70
|
|
41
71
|
## License
|
42
72
|
|
43
|
-
The gem is available as open
|
73
|
+
The gem is available as open-source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
44
74
|
|
45
75
|
## Code of Conduct
|
46
76
|
|
47
|
-
Everyone interacting in the Modulr project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/
|
77
|
+
Everyone interacting in the Modulr project's codebases, issue trackers, chat rooms, and mailing lists is expected to follow the [code of conduct](https://github.com/devengoapp/modulr-ruby/blob/main/CODE_OF_CONDUCT.md).
|
@@ -0,0 +1,21 @@
|
|
1
|
+
### Create Account -- (201) Created
|
2
|
+
POST {{base_url}}/customers/{{customer_id}}/accounts
|
3
|
+
Content-Type: application/json
|
4
|
+
Authorization: {{api_key}}
|
5
|
+
|
6
|
+
{
|
7
|
+
"externalReference": "my_reference -1-",
|
8
|
+
"currency": "EUR",
|
9
|
+
"productCode": "O1200001"
|
10
|
+
}
|
11
|
+
|
12
|
+
### Create Account -- (400) Bad Request
|
13
|
+
POST {{base_url}}/customers/{{customer_id}}/accounts
|
14
|
+
Content-Type: application/json
|
15
|
+
Authorization: {{api_key}}
|
16
|
+
|
17
|
+
{
|
18
|
+
"externalReference": "my_reference -1-",
|
19
|
+
"currency": "EUR",
|
20
|
+
"productCode": null
|
21
|
+
}
|
@@ -3,9 +3,24 @@
|
|
3
3
|
module Modulr
|
4
4
|
module API
|
5
5
|
class AccountsService < Service
|
6
|
+
def create(customer_id:, currency:, product_code:, options: {})
|
7
|
+
data = {
|
8
|
+
currency: currency,
|
9
|
+
productCode: product_code,
|
10
|
+
}
|
11
|
+
data[:externalReference] = options[:external_reference] if options[:external_reference]
|
12
|
+
response = client.post("/customers/#{customer_id}/accounts", data, options)
|
13
|
+
Resources::Accounts::Account.new(response, response.body)
|
14
|
+
end
|
15
|
+
|
16
|
+
def close(account_id:)
|
17
|
+
client.post("/accounts/#{account_id}/close")
|
18
|
+
|
19
|
+
nil
|
20
|
+
end
|
21
|
+
|
6
22
|
def info(account_id:)
|
7
23
|
response = client.get("/accounts/#{account_id}")
|
8
|
-
puts response.body
|
9
24
|
Resources::Accounts::Account.new(response, response.body)
|
10
25
|
end
|
11
26
|
end
|
data/lib/modulr/api/services.rb
CHANGED
@@ -3,6 +3,7 @@
|
|
3
3
|
require_relative "service"
|
4
4
|
require_relative "accounts_service"
|
5
5
|
require_relative "payments_service"
|
6
|
+
require_relative "transactions_service"
|
6
7
|
|
7
8
|
module Modulr
|
8
9
|
module API
|
@@ -14,6 +15,10 @@ module Modulr
|
|
14
15
|
def payments
|
15
16
|
@services[:payments] ||= API::PaymentsService.new(self)
|
16
17
|
end
|
18
|
+
|
19
|
+
def transactions
|
20
|
+
@services[:transactions] ||= API::TransactionsService.new(self)
|
21
|
+
end
|
17
22
|
end
|
18
23
|
end
|
19
24
|
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Modulr
|
4
|
+
module API
|
5
|
+
class TransactionsService < Service
|
6
|
+
def history(account_id:)
|
7
|
+
response = client.get("/accounts/#{account_id}/transactions")
|
8
|
+
Resources::Transactions::Transactions.new(response, response.body[:content])
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
@@ -7,9 +7,9 @@ module Modulr
|
|
7
7
|
map :type, :type
|
8
8
|
map :accountNumber, :account_number
|
9
9
|
map :sortCode, :sort_code
|
10
|
-
map :iban, :
|
11
|
-
map :bic, :
|
12
|
-
map :currency, :
|
10
|
+
map :iban, :iban
|
11
|
+
map :bic, :bic
|
12
|
+
map :currency, :currency
|
13
13
|
map :countrySpecificDetails, :country_details
|
14
14
|
map :providerExtraInfo, :provider_extra_info
|
15
15
|
end
|
@@ -26,4 +26,8 @@ end
|
|
26
26
|
|
27
27
|
require_relative "collection"
|
28
28
|
require_relative "accounts/account"
|
29
|
+
require_relative "accounts/identifier"
|
30
|
+
require_relative "accounts/identifiers"
|
29
31
|
require_relative "payments/payment"
|
32
|
+
require_relative "transactions/transactions"
|
33
|
+
require_relative "transactions/transaction"
|
@@ -9,7 +9,7 @@ module Modulr
|
|
9
9
|
def initialize(response, item_klass, attributes_collection = [])
|
10
10
|
@response = response
|
11
11
|
@attributes_collection = attributes_collection
|
12
|
-
@items = attributes_collection.map { |attributes_item| item_klass.new(
|
12
|
+
@items = attributes_collection.map { |attributes_item| item_klass.new(response, attributes_item) }
|
13
13
|
end
|
14
14
|
|
15
15
|
def each(&block)
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Modulr
|
4
|
+
module Resources
|
5
|
+
module Transactions
|
6
|
+
class Transaction < Base
|
7
|
+
attr_reader :balance, :available_balance
|
8
|
+
|
9
|
+
map :id, :id
|
10
|
+
map :amount, :amount
|
11
|
+
map :currency, :currency
|
12
|
+
map :description, :description
|
13
|
+
map :transactionDate, :created_at
|
14
|
+
map :postedDate, :date
|
15
|
+
map :credit, :credit
|
16
|
+
map :type, :type
|
17
|
+
map :sourceId, :source_id
|
18
|
+
map :sourceExternalReference, :external_reference
|
19
|
+
map :additionalInfo, :additional_info
|
20
|
+
|
21
|
+
def initialize(response, attributes = {})
|
22
|
+
super(response, attributes)
|
23
|
+
|
24
|
+
@balance = attributes[:account][:balance]
|
25
|
+
@available_balance = attributes[:account][:availableBalance]
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Modulr
|
4
|
+
module Resources
|
5
|
+
module Transactions
|
6
|
+
class Transactions < Collection
|
7
|
+
def initialize(response, attributes_collection)
|
8
|
+
super(response, Transaction, attributes_collection)
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
data/lib/modulr/version.rb
CHANGED
data/modulr.gemspec
CHANGED
@@ -27,12 +27,14 @@ Gem::Specification.new do |spec|
|
|
27
27
|
(f == __FILE__) || f.match(%r{\A(?:(?:test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
|
28
28
|
end
|
29
29
|
end
|
30
|
-
|
30
|
+
spec.bindir = "exe"
|
31
31
|
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
32
32
|
spec.require_paths = ["lib"]
|
33
33
|
|
34
34
|
spec.add_dependency "faraday", "~> 1.0"
|
35
35
|
spec.add_dependency "faraday_middleware", "~> 1.0"
|
36
|
+
spec.add_development_dependency "guard", "~> 2.0"
|
37
|
+
spec.add_development_dependency "guard-rspec", "~> 4.0"
|
36
38
|
spec.add_development_dependency "rake", "~> 12.0"
|
37
39
|
spec.add_development_dependency "rspec", "~> 3.0"
|
38
40
|
spec.add_development_dependency "rubocop", "~> 1.0"
|
@@ -40,4 +42,5 @@ Gem::Specification.new do |spec|
|
|
40
42
|
spec.add_development_dependency "rubocop-rake", "~> 0.1"
|
41
43
|
spec.add_development_dependency "rubocop-rspec", "~> 2.0"
|
42
44
|
spec.add_development_dependency "test-prof", "~> 1.0"
|
45
|
+
spec.add_development_dependency "webmock", "~> 2.1"
|
43
46
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: modulr-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aitor García Rey
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-08-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -38,6 +38,34 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '1.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: guard
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '2.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: guard-rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '4.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '4.0'
|
41
69
|
- !ruby/object:Gem::Dependency
|
42
70
|
name: rake
|
43
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -136,6 +164,20 @@ dependencies:
|
|
136
164
|
- - "~>"
|
137
165
|
- !ruby/object:Gem::Version
|
138
166
|
version: '1.0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: webmock
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - "~>"
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '2.1'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - "~>"
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '2.1'
|
139
181
|
description: Ruby client for Modulr Finance API.
|
140
182
|
email:
|
141
183
|
- aitor@devengo.com
|
@@ -150,16 +192,22 @@ files:
|
|
150
192
|
- CODE_OF_CONDUCT.md
|
151
193
|
- Gemfile
|
152
194
|
- Gemfile.lock
|
195
|
+
- Guardfile
|
153
196
|
- LICENSE.txt
|
154
197
|
- README.md
|
155
198
|
- Rakefile
|
156
199
|
- bin/console
|
157
200
|
- bin/setup
|
201
|
+
- doc/modulr_requests/accounts/close.http
|
202
|
+
- doc/modulr_requests/accounts/create.http
|
203
|
+
- doc/modulr_requests/http-client.env.json
|
204
|
+
- doc/modulr_requests/transactions/history.http
|
158
205
|
- lib/modulr.rb
|
159
206
|
- lib/modulr/api/accounts_service.rb
|
160
207
|
- lib/modulr/api/payments_service.rb
|
161
208
|
- lib/modulr/api/service.rb
|
162
209
|
- lib/modulr/api/services.rb
|
210
|
+
- lib/modulr/api/transactions_service.rb
|
163
211
|
- lib/modulr/auth/signature.rb
|
164
212
|
- lib/modulr/client.rb
|
165
213
|
- lib/modulr/resources/accounts/account.rb
|
@@ -168,6 +216,8 @@ files:
|
|
168
216
|
- lib/modulr/resources/base.rb
|
169
217
|
- lib/modulr/resources/collection.rb
|
170
218
|
- lib/modulr/resources/payments/payment.rb
|
219
|
+
- lib/modulr/resources/transactions/transaction.rb
|
220
|
+
- lib/modulr/resources/transactions/transactions.rb
|
171
221
|
- lib/modulr/version.rb
|
172
222
|
- modulr.gemspec
|
173
223
|
- sig/modulr.rbs
|