modulr-api 0.0.15 → 0.0.16

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2461042a33c2ef6c899c9bca84bb7aaa06488fc378bb7bd25edf8bde1d26ebec
4
- data.tar.gz: 4735dc4188f8bb2345f552cc6c950ad7e876780f35d2fe4531d6a6a725822b22
3
+ metadata.gz: e538f41d8e5d2d64dc75db3ec234e67367b592262530d926c622280d2557f08e
4
+ data.tar.gz: 91a2fdd93f8ae2afc8cc94aad9a9884af13dc294666257fc16f105cfec7b7372
5
5
  SHA512:
6
- metadata.gz: ba8e09076f2fd69a474143b32f67e494cb2c9091d1312332da719eff42cc1ad3f4e806a7476f9b6784496515df8c965a0a4e33508aa8a87516ae0477b4e707a8
7
- data.tar.gz: d884bca4495f5b88ee93c1a303382092f9a52cc633fa25aac5c59ce4206210d8c0302f67dd4f1d5556531c54d3cf8e8e41b47954d415c2c579cb87529cc2b12f
6
+ metadata.gz: 35612c3c6b7d42c447b14808f91c23955cb755ccd02759f0fc445568612374c8efabc74fd79b8f2bde46d353b1b2467e07db1de8f823ab6dfe623cde21782700
7
+ data.tar.gz: 7194973cdbd13a67fcca831c92547df26f9ee0791c35cd64b1ac6d524dc74843dea2684a961de2d0d15d9966baa6dd1e8a526e6e0d7bb50d08490c1aa6ec7ab2
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- modulr-api (0.0.15)
4
+ modulr-api (0.0.16)
5
5
  faraday (~> 1.0)
6
6
  faraday_middleware (~> 1.0)
7
7
 
data/README.md CHANGED
@@ -56,6 +56,13 @@ client.payments.list(from: DateTime.now - 1, to: DateTime.now)
56
56
  client.payments.create(account_id: "A2188C26", currency: "EUR", amount: 0.01, destination: { type: "IBAN", iban: "ES8601280011390100072676", name: "Aitor García Rey" }, reference: "The reference")
57
57
  ```
58
58
 
59
+ ### Transactions
60
+
61
+ ```rb
62
+ # List transactions
63
+ client.transactions.list(account_id: "A2188C26", credit: true)
64
+ ```
65
+
59
66
  ### Notifications
60
67
 
61
68
  ### Supported event types per channel
@@ -89,9 +96,15 @@ Supported via email:
89
96
 
90
97
  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.
91
98
 
92
- 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:
99
+ To install this gem onto your local machine, run `bundle exec rake install`.
100
+
101
+ To release a new version, on main branch update the version number in `version.rb`, then:
93
102
 
94
103
  ```git
104
+ bundle exec rake install
105
+ git add .
106
+ git commit -m 'Update version file and gemfile'
107
+ git push
95
108
  git tag vx.x.x main
96
109
  git push origin vx.x.x
97
110
  ```
@@ -30,7 +30,7 @@ module Modulr
30
30
  apisecret.dup.force_encoding("UTF-8"),
31
31
  signature_string.dup.force_encoding("UTF-8")
32
32
  )
33
- b64 = Base64.encode64(digest)
33
+ b64 = Base64.strict_encode64(digest)
34
34
  url_safe_code = ERB::Util.url_encode(b64.strip)
35
35
 
36
36
  new(apikey: apikey, nonce: nonce, signature: url_safe_code, timestamp: timestamp)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Modulr
4
- VERSION = "0.0.15"
4
+ VERSION = "0.0.16"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: modulr-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.15
4
+ version: 0.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aitor García Rey