bunq_rb 0.0.18 → 0.0.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -2
- data/Gemfile +1 -0
- data/README.md +913 -198
- data/lib/bunq_rb/objects/attachment_monetary_account.rb +1 -1
- data/lib/bunq_rb/objects/cash_register.rb +8 -1
- data/lib/bunq_rb/objects/monetary_account.rb +0 -4
- data/lib/bunq_rb/objects/payment.rb +0 -4
- data/lib/bunq_rb/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c43ca1a50fa32378a07889a18dccf3f5eabd3c5
|
4
|
+
data.tar.gz: fb31685b9cddd56bea513de904c725d4d5247640
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81f305ad8641ff6ca4a027b17bd2b6b94ae07f0943ccdea3636ca3a26c01747c4de4c2664ed96052c36765d32ed8bed0b2c43aac9e98807a1bf838c0308f9841
|
7
|
+
data.tar.gz: 422ffd3a7f62cad2bc65a10db31bd1f1d43501b798be99aa7286fa7b3478059fdeb2a763562636bd9cb8beaa5ed209e917db9b3be885728d54b4363468fc7f00
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
[![Build Status](https://travis-ci.org/ahtung/bunq_rb.svg?branch=master)](https://travis-ci.org/ahtung/bunq_rb)
|
2
2
|
[![Gem Version](https://badge.fury.io/rb/bunq_rb.svg)](https://badge.fury.io/rb/bunq_rb)
|
3
3
|
[![Maintainability](https://api.codeclimate.com/v1/badges/8e9c963093297534c4bb/maintainability)](https://codeclimate.com/github/ahtung/bunq_rb/maintainability)
|
4
|
+
[![Coverage Status](https://coveralls.io/repos/github/ahtung/bunq_rb/badge.svg?branch=master)](https://coveralls.io/github/ahtung/bunq_rb?branch=master)
|
4
5
|
|
5
6
|
# BunqRb
|
6
7
|
|
@@ -35,213 +36,927 @@ BunqRb.configure do |config|
|
|
35
36
|
end
|
36
37
|
```
|
37
38
|
|
38
|
-
##
|
39
|
+
## Quickstart
|
39
40
|
|
40
|
-
|
41
|
-
- ~~Create Session~~
|
42
|
-
- ~~Making a payment request~~
|
43
|
-
- ~~Creating a tab payment~~
|
41
|
+
### Openning a session
|
44
42
|
|
45
|
-
|
43
|
+
https://github.com/ahtung/bunq_rb/blob/feature/readme/spec/scenarios/create_session_spec.rb
|
46
44
|
|
47
|
-
|
48
|
-
- ~~Installation~~
|
49
|
-
- POST
|
45
|
+
### Making apayment request
|
50
46
|
|
51
|
-
|
52
|
-
installation, token, server_public_key = BunqRb::Installation.create(client_public_key: BunqRb.configuration.key.public_key)
|
53
|
-
```
|
47
|
+
https://github.com/ahtung/bunq_rb/blob/feature/readme/spec/scenarios/make_a_payment_request_spec.rb
|
54
48
|
|
55
|
-
|
49
|
+
### Creating a tab payment
|
56
50
|
|
57
|
-
|
58
|
-
installation = BunqRb::Installation.find(2348)
|
59
|
-
```
|
51
|
+
https://github.com/ahtung/bunq_rb/blob/feature/readme/spec/scenarios/creating_a_tab_payment_spec.rb
|
60
52
|
|
61
|
-
|
53
|
+
## Calls
|
62
54
|
|
63
|
-
|
64
|
-
installations = BunqRb::Installation.all
|
65
|
-
```
|
55
|
+
### SETUP
|
66
56
|
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
57
|
+
#### Installation
|
58
|
+
|
59
|
+
##### POST
|
60
|
+
|
61
|
+
```ruby
|
62
|
+
installation, token, server_public_key = BunqRb::Installation.create(client_public_key: BunqRb.configuration.key.public_key)
|
63
|
+
```
|
64
|
+
|
65
|
+
##### GET
|
66
|
+
|
67
|
+
```ruby
|
68
|
+
installation = BunqRb::Installation.find(2348)
|
69
|
+
```
|
70
|
+
|
71
|
+
##### LIST
|
72
|
+
|
73
|
+
```ruby
|
74
|
+
installations = BunqRb::Installation.all
|
75
|
+
```
|
76
|
+
|
77
|
+
#### Installation server public key
|
78
|
+
|
79
|
+
##### LIST
|
80
|
+
|
81
|
+
```ruby
|
82
|
+
installation = BunqRb::Installation.find(2348)
|
83
|
+
server_public_key = installation.server_public_key
|
84
|
+
```
|
85
|
+
|
86
|
+
#### Device
|
87
|
+
|
88
|
+
##### GET
|
89
|
+
|
90
|
+
```ruby
|
91
|
+
device = BunqRb::Device.find(2348)
|
92
|
+
```
|
93
|
+
|
94
|
+
##### LIST
|
95
|
+
|
96
|
+
```ruby
|
97
|
+
devices = BunqRb::Device.all
|
98
|
+
```
|
99
|
+
|
100
|
+
#### Device server
|
101
|
+
|
102
|
+
##### POST
|
103
|
+
|
104
|
+
```ruby
|
105
|
+
device_server = BunqRb::DeviceServer.create(
|
106
|
+
description: "Dunya",
|
107
|
+
secret: BunqRb.configuration.api_key,
|
108
|
+
permitted_ips: []
|
109
|
+
)
|
110
|
+
```
|
111
|
+
|
112
|
+
##### GET
|
113
|
+
|
114
|
+
```ruby
|
115
|
+
device_server = BunqRb::DeviceServer.find(1434035)
|
116
|
+
```
|
117
|
+
|
118
|
+
##### LIST
|
119
|
+
|
120
|
+
```ruby
|
121
|
+
device_servers = BunqRb::DeviceServer.all
|
122
|
+
```
|
123
|
+
|
124
|
+
#### Permitted IP
|
125
|
+
|
126
|
+
##### GET
|
127
|
+
|
128
|
+
TODO
|
129
|
+
|
130
|
+
##### LIST
|
131
|
+
|
132
|
+
TODO
|
133
|
+
|
134
|
+
##### POST
|
135
|
+
|
136
|
+
TODO
|
137
|
+
|
138
|
+
##### PUT
|
139
|
+
|
140
|
+
#### User credential password IP
|
141
|
+
|
142
|
+
##### GET
|
143
|
+
|
144
|
+
TODO
|
145
|
+
|
146
|
+
##### LIST
|
147
|
+
|
148
|
+
TODO
|
149
|
+
|
150
|
+
#### Session
|
151
|
+
|
152
|
+
##### DELETE
|
153
|
+
|
154
|
+
TODO
|
155
|
+
|
156
|
+
#### SessionServer
|
157
|
+
|
158
|
+
##### POST
|
159
|
+
|
160
|
+
TODO
|
161
|
+
|
162
|
+
### PAYMENTS
|
163
|
+
|
164
|
+
#### Payment
|
165
|
+
|
166
|
+
##### POST
|
167
|
+
|
168
|
+
TODO
|
169
|
+
|
170
|
+
##### GET
|
171
|
+
|
172
|
+
TODO
|
173
|
+
|
174
|
+
##### LIST
|
175
|
+
|
176
|
+
```ruby
|
177
|
+
user = BunqRb::User.find(1913)
|
178
|
+
monetary_account = user.monetary_accounts.first
|
179
|
+
payments = monetary_account.payments
|
180
|
+
```
|
181
|
+
|
182
|
+
#### Payment Batch
|
183
|
+
|
184
|
+
##### POST
|
185
|
+
|
186
|
+
TODO
|
187
|
+
|
188
|
+
##### PUT
|
189
|
+
|
190
|
+
TODO
|
191
|
+
|
192
|
+
##### GET
|
193
|
+
|
194
|
+
TODO
|
195
|
+
|
196
|
+
##### LIST
|
197
|
+
|
198
|
+
TODO
|
199
|
+
|
200
|
+
### REQUESTS
|
201
|
+
|
202
|
+
#### Request Inquiry
|
203
|
+
|
204
|
+
##### POST
|
205
|
+
|
206
|
+
TODO
|
207
|
+
|
208
|
+
##### PUT
|
209
|
+
|
210
|
+
TODO
|
211
|
+
|
212
|
+
##### GET
|
213
|
+
|
214
|
+
TODO
|
215
|
+
|
216
|
+
##### LIST
|
217
|
+
|
218
|
+
TODO
|
219
|
+
|
220
|
+
#### Request Inquiry Batch
|
221
|
+
|
222
|
+
##### POST
|
223
|
+
|
224
|
+
TODO
|
225
|
+
|
226
|
+
##### PUT
|
227
|
+
|
228
|
+
TODO
|
229
|
+
|
230
|
+
##### GET
|
231
|
+
|
232
|
+
TODO
|
233
|
+
|
234
|
+
##### LIST
|
235
|
+
|
236
|
+
TODO
|
237
|
+
|
238
|
+
#### Request Response
|
239
|
+
|
240
|
+
##### PUT
|
241
|
+
|
242
|
+
TODO
|
243
|
+
|
244
|
+
##### GET
|
245
|
+
|
246
|
+
TODO
|
247
|
+
|
248
|
+
##### LIST
|
249
|
+
|
250
|
+
TODO
|
251
|
+
|
252
|
+
#### bunq.me Tab
|
253
|
+
|
254
|
+
##### POST
|
255
|
+
|
256
|
+
TODO
|
257
|
+
|
258
|
+
##### PUT
|
259
|
+
|
260
|
+
TODO
|
261
|
+
|
262
|
+
##### GET
|
263
|
+
|
264
|
+
TODO
|
265
|
+
|
266
|
+
##### LIST
|
267
|
+
|
268
|
+
TODO
|
269
|
+
|
270
|
+
### DRAFT PAYMENTS
|
271
|
+
|
272
|
+
#### Draft Payment
|
273
|
+
|
274
|
+
##### POST
|
275
|
+
|
276
|
+
TODO
|
277
|
+
|
278
|
+
##### PUT
|
279
|
+
|
280
|
+
TODO
|
281
|
+
|
282
|
+
##### GET
|
283
|
+
|
284
|
+
TODO
|
285
|
+
|
286
|
+
##### LIST
|
287
|
+
|
288
|
+
TODO
|
289
|
+
|
290
|
+
### SCHEDULED PAYMENTS
|
291
|
+
|
292
|
+
#### Schedule Payment
|
293
|
+
|
294
|
+
##### POST
|
295
|
+
|
296
|
+
TODO
|
297
|
+
|
298
|
+
##### PUT
|
299
|
+
|
300
|
+
TODO
|
301
|
+
|
302
|
+
##### GET
|
303
|
+
|
304
|
+
TODO
|
305
|
+
|
306
|
+
##### LIST
|
307
|
+
|
308
|
+
TODO
|
309
|
+
|
310
|
+
##### DELETE
|
311
|
+
|
312
|
+
TODO
|
313
|
+
|
314
|
+
#### Schedule Payment Batch
|
315
|
+
|
316
|
+
##### POST
|
317
|
+
|
318
|
+
TODO
|
319
|
+
|
320
|
+
##### PUT
|
321
|
+
|
322
|
+
TODO
|
323
|
+
|
324
|
+
##### DELETE
|
325
|
+
|
326
|
+
TODO
|
327
|
+
|
328
|
+
#### Schedule Instance
|
329
|
+
|
330
|
+
##### PUT
|
331
|
+
|
332
|
+
TODO
|
333
|
+
|
334
|
+
##### GET
|
335
|
+
|
336
|
+
TODO
|
337
|
+
|
338
|
+
##### LIST
|
339
|
+
|
340
|
+
TODO
|
341
|
+
|
342
|
+
#### Schedule
|
343
|
+
|
344
|
+
##### GET
|
345
|
+
|
346
|
+
TODO
|
347
|
+
|
348
|
+
##### LIST
|
349
|
+
|
350
|
+
TODO
|
351
|
+
|
352
|
+
#### Schedule User
|
353
|
+
|
354
|
+
##### LIST
|
355
|
+
|
356
|
+
TODO
|
357
|
+
|
358
|
+
### TAB PAYMENTS
|
359
|
+
|
360
|
+
#### Tab Usage Single
|
361
|
+
|
362
|
+
##### POST
|
363
|
+
|
364
|
+
TODO
|
365
|
+
|
366
|
+
##### PUT
|
367
|
+
|
368
|
+
TODO
|
369
|
+
|
370
|
+
##### GET
|
371
|
+
|
372
|
+
TODO
|
373
|
+
|
374
|
+
##### LIST
|
375
|
+
|
376
|
+
TODO
|
377
|
+
|
378
|
+
##### DELETE
|
379
|
+
|
380
|
+
TODO
|
381
|
+
|
382
|
+
#### Tab Usage Multiple
|
383
|
+
|
384
|
+
##### POST
|
385
|
+
|
386
|
+
TODO
|
387
|
+
|
388
|
+
##### PUT
|
389
|
+
|
390
|
+
TODO
|
391
|
+
|
392
|
+
##### GET
|
393
|
+
|
394
|
+
TODO
|
395
|
+
|
396
|
+
##### LIST
|
397
|
+
|
398
|
+
TODO
|
399
|
+
|
400
|
+
##### DELETE
|
401
|
+
|
402
|
+
TODO
|
403
|
+
|
404
|
+
#### Tab Item
|
405
|
+
|
406
|
+
##### POST
|
407
|
+
|
408
|
+
TODO
|
409
|
+
|
410
|
+
##### PUT
|
411
|
+
|
412
|
+
TODO
|
413
|
+
|
414
|
+
##### GET
|
415
|
+
|
416
|
+
TODO
|
417
|
+
|
418
|
+
##### LIST
|
419
|
+
|
420
|
+
TODO
|
421
|
+
|
422
|
+
##### DELETE
|
423
|
+
|
424
|
+
TODO
|
425
|
+
|
426
|
+
#### Tab Item Batch
|
427
|
+
|
428
|
+
##### POST
|
429
|
+
|
430
|
+
TODO
|
431
|
+
|
432
|
+
#### Tab
|
433
|
+
|
434
|
+
##### GET
|
435
|
+
|
436
|
+
TODO
|
437
|
+
|
438
|
+
##### LIST
|
439
|
+
|
440
|
+
TODO
|
441
|
+
|
442
|
+
#### Tab QR Code Content
|
443
|
+
|
444
|
+
##### LIST
|
445
|
+
|
446
|
+
TODO
|
447
|
+
|
448
|
+
#### Tab Result Inquiry
|
449
|
+
|
450
|
+
##### GET
|
451
|
+
|
452
|
+
TODO
|
453
|
+
|
454
|
+
##### LIST
|
455
|
+
|
456
|
+
TODO
|
457
|
+
|
458
|
+
#### Tab Result Response
|
459
|
+
|
460
|
+
##### GET
|
461
|
+
|
462
|
+
TODO
|
463
|
+
|
464
|
+
##### LIST
|
465
|
+
|
466
|
+
TODO
|
467
|
+
|
468
|
+
### CARD PAYMENTS
|
469
|
+
|
470
|
+
#### Mastercard Action
|
471
|
+
|
472
|
+
##### GET
|
473
|
+
|
474
|
+
TODO
|
475
|
+
|
476
|
+
##### LIST
|
477
|
+
|
478
|
+
TODO
|
479
|
+
|
480
|
+
### IDEAL PAYMENTS
|
481
|
+
|
482
|
+
#### Token QR Request Ideal
|
483
|
+
|
484
|
+
##### POST
|
485
|
+
|
486
|
+
TODO
|
487
|
+
|
488
|
+
### USER
|
489
|
+
|
490
|
+
#### User
|
491
|
+
|
492
|
+
##### GET
|
493
|
+
|
494
|
+
```ruby
|
495
|
+
user = BunqRb::User.find(1913)
|
496
|
+
```
|
497
|
+
|
498
|
+
##### LIST
|
499
|
+
|
500
|
+
```ruby
|
501
|
+
users = BunqRb::User.all
|
502
|
+
```
|
503
|
+
|
504
|
+
#### User Person
|
505
|
+
|
506
|
+
##### PUT
|
507
|
+
|
508
|
+
TODO
|
509
|
+
|
510
|
+
##### GET
|
511
|
+
|
512
|
+
TODO
|
513
|
+
|
514
|
+
#### User Company
|
515
|
+
|
516
|
+
##### PUT
|
517
|
+
|
518
|
+
TODO
|
519
|
+
|
520
|
+
##### GET
|
521
|
+
|
522
|
+
TODO
|
523
|
+
|
524
|
+
### MONETARY ACCOUNTS
|
525
|
+
|
526
|
+
#### Monetary Account
|
527
|
+
|
528
|
+
##### GET
|
529
|
+
|
530
|
+
TODO
|
531
|
+
|
532
|
+
##### LIST
|
533
|
+
|
534
|
+
```ruby
|
535
|
+
user = BunqRb::User.find(1913)
|
536
|
+
monetary_accounts = user.monetary_accounts
|
537
|
+
```
|
538
|
+
|
539
|
+
#### Monetary Account Bank
|
540
|
+
|
541
|
+
##### POST
|
542
|
+
|
543
|
+
TODO
|
544
|
+
|
545
|
+
##### PUT
|
546
|
+
|
547
|
+
TODO
|
548
|
+
|
549
|
+
##### GET
|
550
|
+
|
551
|
+
TODO
|
552
|
+
|
553
|
+
##### LIST
|
554
|
+
|
555
|
+
TODO
|
556
|
+
|
557
|
+
### CASH REGISTERS
|
558
|
+
|
559
|
+
#### Cash Register
|
560
|
+
|
561
|
+
##### POST
|
562
|
+
|
563
|
+
TODO
|
564
|
+
|
565
|
+
##### PUT
|
566
|
+
|
567
|
+
TODO
|
568
|
+
|
569
|
+
##### GET
|
570
|
+
|
571
|
+
TODO
|
572
|
+
|
573
|
+
##### LIST
|
574
|
+
|
575
|
+
TODO
|
576
|
+
|
577
|
+
#### Cash Register QR Code
|
578
|
+
|
579
|
+
##### POST
|
580
|
+
|
581
|
+
TODO
|
582
|
+
|
583
|
+
##### PUT
|
584
|
+
|
585
|
+
TODO
|
586
|
+
|
587
|
+
##### GET
|
588
|
+
|
589
|
+
TODO
|
590
|
+
|
591
|
+
##### LIST
|
592
|
+
|
593
|
+
TODO
|
594
|
+
|
595
|
+
#### Cash Register QR Code Content
|
596
|
+
|
597
|
+
##### LIST
|
598
|
+
|
599
|
+
TODO
|
600
|
+
|
601
|
+
### CONNECTS
|
602
|
+
|
603
|
+
#### Share Invite Bank Inquiry
|
604
|
+
|
605
|
+
##### POST
|
606
|
+
|
607
|
+
TODO
|
608
|
+
|
609
|
+
##### PUT
|
610
|
+
|
611
|
+
TODO
|
612
|
+
|
613
|
+
##### GET
|
614
|
+
|
615
|
+
TODO
|
616
|
+
|
617
|
+
##### LIST
|
618
|
+
|
619
|
+
TODO
|
620
|
+
|
621
|
+
#### Share Invite Bank Response
|
622
|
+
|
623
|
+
##### PUT
|
624
|
+
|
625
|
+
TODO
|
626
|
+
|
627
|
+
##### GET
|
628
|
+
|
629
|
+
TODO
|
630
|
+
|
631
|
+
##### LIST
|
632
|
+
|
633
|
+
TODO
|
634
|
+
|
635
|
+
#### Share Invite Bank Amount Used
|
636
|
+
|
637
|
+
##### DELETE
|
638
|
+
|
639
|
+
TODO
|
640
|
+
|
641
|
+
#### Draft Share Invite Bank
|
642
|
+
|
643
|
+
##### POST
|
644
|
+
|
645
|
+
TODO
|
646
|
+
|
647
|
+
##### PUT
|
648
|
+
|
649
|
+
TODO
|
650
|
+
|
651
|
+
##### GET
|
652
|
+
|
653
|
+
TODO
|
654
|
+
|
655
|
+
##### LIST
|
656
|
+
|
657
|
+
TODO
|
658
|
+
|
659
|
+
#### Draft Share Invite Bank QR Code Content
|
660
|
+
|
661
|
+
##### LIST
|
662
|
+
|
663
|
+
TODO
|
664
|
+
|
665
|
+
### CARDS
|
666
|
+
|
667
|
+
#### Card
|
668
|
+
|
669
|
+
##### PUT
|
670
|
+
|
671
|
+
TODO
|
672
|
+
|
673
|
+
##### GET
|
674
|
+
|
675
|
+
```ruby
|
676
|
+
user_id = 1913
|
677
|
+
card_id = 82082
|
678
|
+
card = BunqRb::Card.find(user_id, card_id)
|
679
|
+
```
|
680
|
+
|
681
|
+
##### LIST
|
682
|
+
|
683
|
+
```ruby
|
684
|
+
user_id = 1913
|
685
|
+
cards = BunqRb::Card.all(user_id)
|
686
|
+
|
687
|
+
# OR
|
688
|
+
|
689
|
+
user = BunqRb::User.find(1913)
|
690
|
+
cards = user.cards
|
691
|
+
```
|
692
|
+
|
693
|
+
#### Card Debit
|
694
|
+
|
695
|
+
##### POST
|
696
|
+
|
697
|
+
TODO
|
698
|
+
|
699
|
+
#### Card Name
|
700
|
+
|
701
|
+
##### LIST
|
702
|
+
|
703
|
+
TODO
|
704
|
+
|
705
|
+
#### Card Generated CVC2
|
706
|
+
|
707
|
+
##### POST
|
708
|
+
|
709
|
+
TODO
|
710
|
+
|
711
|
+
##### GET
|
712
|
+
|
713
|
+
TODO
|
714
|
+
|
715
|
+
##### LIST
|
716
|
+
|
717
|
+
TODO
|
718
|
+
|
719
|
+
### CHAT
|
720
|
+
|
721
|
+
#### Payment Chat
|
722
|
+
|
723
|
+
##### POST
|
724
|
+
|
725
|
+
TODO
|
726
|
+
|
727
|
+
##### PUT
|
728
|
+
|
729
|
+
TODO
|
730
|
+
|
731
|
+
##### LIST
|
732
|
+
|
733
|
+
TODO
|
734
|
+
|
735
|
+
#### Request Inquiry Chat
|
736
|
+
|
737
|
+
##### POST
|
738
|
+
|
739
|
+
TODO
|
740
|
+
|
741
|
+
##### PUT
|
742
|
+
|
743
|
+
TODO
|
744
|
+
|
745
|
+
##### LIST
|
746
|
+
|
747
|
+
TODO
|
748
|
+
|
749
|
+
#### Request Response Chat
|
750
|
+
|
751
|
+
##### POST
|
752
|
+
|
753
|
+
TODO
|
754
|
+
|
755
|
+
##### PUT
|
756
|
+
|
757
|
+
TODO
|
758
|
+
|
759
|
+
##### LIST
|
760
|
+
|
761
|
+
TODO
|
762
|
+
|
763
|
+
#### Chat Conversation
|
764
|
+
|
765
|
+
##### GET
|
766
|
+
|
767
|
+
TODO
|
768
|
+
|
769
|
+
##### LIST
|
770
|
+
|
771
|
+
TODO
|
772
|
+
|
773
|
+
#### Chat Message
|
774
|
+
|
775
|
+
##### LIST
|
776
|
+
|
777
|
+
TODO
|
778
|
+
|
779
|
+
#### Chat Message Attachment
|
780
|
+
|
781
|
+
##### POST
|
782
|
+
|
783
|
+
TODO
|
784
|
+
|
785
|
+
#### Chat Message Text
|
786
|
+
|
787
|
+
##### POST
|
788
|
+
|
789
|
+
TODO
|
790
|
+
|
791
|
+
### CALLBACKS
|
792
|
+
|
793
|
+
#### Certificate Pinned
|
794
|
+
|
795
|
+
##### POST
|
796
|
+
|
797
|
+
TODO
|
798
|
+
|
799
|
+
### ATTACHMENTS
|
800
|
+
|
801
|
+
#### Avatar
|
802
|
+
|
803
|
+
##### POST
|
804
|
+
|
805
|
+
```ruby
|
806
|
+
avatar = BunqRb::Avatar.create(
|
807
|
+
attachment_public_uuid: "d93e07e3-d420-45e5-8684-fc0c09a63686"
|
808
|
+
)
|
809
|
+
```
|
810
|
+
|
811
|
+
##### GET
|
812
|
+
|
813
|
+
```ruby
|
814
|
+
avatar = BunqRb::Avatar.find(1019)
|
815
|
+
```
|
816
|
+
|
817
|
+
#### Attachment Public
|
818
|
+
|
819
|
+
##### POST
|
820
|
+
|
821
|
+
```ruby
|
822
|
+
image_path = File.expand_path(File.join(File.dirname(__FILE__), "../fixtures/images/baz.jpg"))
|
823
|
+
image = Faraday::UploadIO.new(image_path, 'image/jpeg')
|
824
|
+
attachment = BunqRb::AttachmentPublic.create(image)
|
825
|
+
```
|
826
|
+
|
827
|
+
##### GET
|
828
|
+
|
829
|
+
```ruby
|
830
|
+
avatar = BunqRb::AttachmentPublic.find(1019)
|
831
|
+
```
|
832
|
+
|
833
|
+
#### Attachment Public Content
|
834
|
+
|
835
|
+
##### LIST
|
836
|
+
|
837
|
+
TODO
|
838
|
+
|
839
|
+
#### Attachment Monetary Account
|
840
|
+
|
841
|
+
##### POST
|
842
|
+
|
843
|
+
```ruby
|
844
|
+
image_path = File.expand_path(File.join(File.dirname(__FILE__), "../fixtures/images/baz.jpg"))
|
845
|
+
image = Faraday::UploadIO.new(image_path, 'image/jpeg')
|
846
|
+
attachment = BunqRb::AttachmentMonetaryAccount.create(image)
|
847
|
+
```
|
848
|
+
|
849
|
+
#### Attachment Tab
|
850
|
+
|
851
|
+
##### POST
|
852
|
+
|
853
|
+
TODO
|
854
|
+
|
855
|
+
##### GET
|
856
|
+
|
857
|
+
TODO
|
858
|
+
|
859
|
+
#### Attachment Tab Content
|
860
|
+
|
861
|
+
##### LIST
|
862
|
+
|
863
|
+
TODO
|
864
|
+
|
865
|
+
#### Tab Attachment Tab
|
866
|
+
|
867
|
+
##### GET
|
868
|
+
|
869
|
+
TODO
|
870
|
+
|
871
|
+
#### Tab Attachment Tab Content
|
872
|
+
|
873
|
+
##### LIST
|
874
|
+
|
875
|
+
TODO
|
876
|
+
|
877
|
+
#### Attachment Conversation
|
878
|
+
|
879
|
+
##### POST
|
880
|
+
|
881
|
+
TODO
|
882
|
+
|
883
|
+
##### GET
|
884
|
+
|
885
|
+
TODO
|
886
|
+
|
887
|
+
#### Attachment Conversation Content
|
888
|
+
|
889
|
+
##### LIST
|
890
|
+
|
891
|
+
TODO
|
892
|
+
|
893
|
+
### INVOICES
|
894
|
+
|
895
|
+
#### Invoice
|
896
|
+
|
897
|
+
##### GET
|
898
|
+
|
899
|
+
TODO
|
900
|
+
|
901
|
+
##### LIST
|
902
|
+
|
903
|
+
TODO
|
904
|
+
|
905
|
+
#### Invoice By User
|
906
|
+
|
907
|
+
##### GET
|
908
|
+
|
909
|
+
TODO
|
910
|
+
|
911
|
+
##### LIST
|
912
|
+
|
913
|
+
TODO
|
914
|
+
|
915
|
+
### EXPORT STATEMENTS
|
916
|
+
|
917
|
+
#### Customer Statement Export
|
918
|
+
|
919
|
+
##### POST
|
920
|
+
|
921
|
+
TODO
|
922
|
+
|
923
|
+
##### GET
|
924
|
+
|
925
|
+
TODO
|
926
|
+
|
927
|
+
##### LIST
|
928
|
+
|
929
|
+
TODO
|
930
|
+
|
931
|
+
##### DELETE
|
932
|
+
|
933
|
+
TODO
|
934
|
+
|
935
|
+
#### Customer Statement Export Content
|
936
|
+
|
937
|
+
##### LIST
|
938
|
+
|
939
|
+
TODO
|
940
|
+
|
941
|
+
#### Export Annual Overview
|
942
|
+
|
943
|
+
##### POST
|
944
|
+
|
945
|
+
TODO
|
946
|
+
|
947
|
+
##### GET
|
948
|
+
|
949
|
+
TODO
|
950
|
+
|
951
|
+
##### LIST
|
952
|
+
|
953
|
+
TODO
|
954
|
+
|
955
|
+
#### Export Annual Overview Content
|
956
|
+
|
957
|
+
##### LIST
|
958
|
+
|
959
|
+
TODO
|
245
960
|
|
246
961
|
## Development
|
247
962
|
|
@@ -9,7 +9,7 @@ module BunqRb
|
|
9
9
|
|
10
10
|
def self.create(image)
|
11
11
|
response = Client.send_method(:post, url(1913, 1933), image)
|
12
|
-
response.map { |resp| new(resp["
|
12
|
+
response.map { |resp| new(resp["Id"]) }
|
13
13
|
end
|
14
14
|
|
15
15
|
def self.url(user_id, monetary_account_id)
|
@@ -3,7 +3,7 @@ module BunqRb
|
|
3
3
|
class CashRegister
|
4
4
|
include BunqRb::Shared
|
5
5
|
|
6
|
-
implements :
|
6
|
+
implements :put, :list
|
7
7
|
|
8
8
|
attr_reader :id, :name, :status
|
9
9
|
|
@@ -13,6 +13,13 @@ module BunqRb
|
|
13
13
|
@status = hsh["status"]
|
14
14
|
end
|
15
15
|
|
16
|
+
def self.find(id, user_id, monetary_account_id)
|
17
|
+
url = uri(user_id, monetary_account_id)
|
18
|
+
full_path = [url, id].join("/")
|
19
|
+
response = Client.send_method(:get, full_path)
|
20
|
+
new(response[0]["CashRegister"])
|
21
|
+
end
|
22
|
+
|
16
23
|
def self.create(hsh = {}, user_id, monetary_account_id)
|
17
24
|
url = uri(user_id, monetary_account_id)
|
18
25
|
response = Client.send_method(:post, url, hsh)
|
@@ -20,9 +20,5 @@ module BunqRb
|
|
20
20
|
response = Client.send_method(:get, "#{url(user_id, monetary_account_id)}?count=#{page_size}")
|
21
21
|
response.map { |resp| new(resp["Payment"]) }
|
22
22
|
end
|
23
|
-
|
24
|
-
def to_s
|
25
|
-
"#{id} => €#{amount} on #{created} for #{description}"
|
26
|
-
end
|
27
23
|
end
|
28
24
|
end
|
data/lib/bunq_rb/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bunq_rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dunya Kirkali
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-03-
|
12
|
+
date: 2018-03-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: spyke
|