tikkie-api 0.1.0 → 0.1.1
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 +5 -5
- data/.travis.yml +4 -3
- data/Gemfile.lock +1 -1
- data/README.md +11 -1
- data/lib/tikkie/api/responses/platforms.rb +4 -2
- data/lib/tikkie/api/responses/users.rb +4 -2
- data/lib/tikkie/api/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 55cfd884d7806c214f743001ae9630fe2c4c8f68299706b089bda175218f3e4f
|
|
4
|
+
data.tar.gz: 3a85b046ec52e04e67bf17c7c5ba325bf519d86971b661d2e1982c353534ebc6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8bae92cd6c752733f04abf01c254228e724531c11c77d623cf955569034b8c8dd9d7ec4e58e28e0c06ce13d2093014605886f6fe75cab63ab079987a2f506f92
|
|
7
|
+
data.tar.gz: f61d4b03695dc6741d0cac68dedf9b413e48be017a0c1e41a2b5cecf8e7215ff8b0c80f35ee1fc7a35c41da12edb6b77b7b21b5509807997f1a4d37d5c5551ed
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Tikkie API
|
|
2
2
|
|
|
3
|
+
[](https://badge.fury.io/rb/tikkie-api)
|
|
4
|
+
[](https://travis-ci.org/KentaaNL/tikkie-api)
|
|
5
|
+
[](https://codeclimate.com/github/KentaaNL/tikkie-api)
|
|
6
|
+
|
|
3
7
|
Unofficial Ruby library for communicating with the [Tikkie API](https://developer.abnamro.com/content/tikkie).
|
|
4
8
|
|
|
5
9
|
## Installation
|
|
@@ -33,6 +37,12 @@ config = Tikkie::Api::Configuration.new("your_api_key", "private_rsa.pem")
|
|
|
33
37
|
client = Tikkie::Api::Client.new(config)
|
|
34
38
|
```
|
|
35
39
|
|
|
40
|
+
The configuration is created for the production environment by default. If you want to use the sandbox testing environment, then add the option `test: true` when creating the configuration:
|
|
41
|
+
|
|
42
|
+
```ruby
|
|
43
|
+
config = Tikkie::Api::Configuration.new("your_api_key", "private_rsa.pem", test: true)
|
|
44
|
+
```
|
|
45
|
+
|
|
36
46
|
### Platforms
|
|
37
47
|
|
|
38
48
|
Retrieve all platforms:
|
|
@@ -114,7 +124,7 @@ payment_request = client.payment_requests.create("platform_token", "user_token",
|
|
|
114
124
|
)
|
|
115
125
|
|
|
116
126
|
tikkie_url = payment_request.payment_request_url
|
|
117
|
-
payment_request_token =payment_request.payment_request_token
|
|
127
|
+
payment_request_token = payment_request.payment_request_token
|
|
118
128
|
```
|
|
119
129
|
|
|
120
130
|
### Error handling
|
|
@@ -17,8 +17,10 @@ module Tikkie
|
|
|
17
17
|
@platforms ||= begin
|
|
18
18
|
platforms = []
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
unless error?
|
|
21
|
+
data.each do |platform|
|
|
22
|
+
platforms << Tikkie::Api::Responses::Platform.new(platform)
|
|
23
|
+
end
|
|
22
24
|
end
|
|
23
25
|
|
|
24
26
|
platforms
|
data/lib/tikkie/api/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tikkie-api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kentaa BV
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-04-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jwt
|
|
@@ -161,7 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
161
161
|
version: '0'
|
|
162
162
|
requirements: []
|
|
163
163
|
rubyforge_project:
|
|
164
|
-
rubygems_version: 2.6
|
|
164
|
+
rubygems_version: 2.7.6
|
|
165
165
|
signing_key:
|
|
166
166
|
specification_version: 4
|
|
167
167
|
summary: Ruby library for communicating with the Tikkie API
|