fakturan_nu 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +36 -0
- data/Gemfile +2 -0
- data/LICENSE +21 -0
- data/README.md +121 -0
- data/Rakefile +8 -0
- data/config/locales/en.yml +2 -0
- data/fakturan_nu.gemspec +26 -0
- data/lib/fakturan_nu/address.rb +5 -0
- data/lib/fakturan_nu/base.rb +88 -0
- data/lib/fakturan_nu/client.rb +19 -0
- data/lib/fakturan_nu/error.rb +69 -0
- data/lib/fakturan_nu/invoice.rb +40 -0
- data/lib/fakturan_nu/middleware/parse_json.rb +23 -0
- data/lib/fakturan_nu/middleware/raise_error.rb +33 -0
- data/lib/fakturan_nu/product.rb +7 -0
- data/lib/fakturan_nu/row.rb +7 -0
- data/lib/fakturan_nu/spyke_extensions.rb +24 -0
- data/lib/fakturan_nu.rb +87 -0
- data/test/basics_test.rb +26 -0
- data/test/exceptions_test.rb +104 -0
- data/test/models_test.rb +142 -0
- data/test/test_helper.rb +40 -0
- data/test/vcr_cassettes/models.yml +480 -0
- metadata +231 -0
@@ -0,0 +1,480 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://dUmziS9k9Q5x0u4wot1H:DAW96mbxui8B3_CBFFFMr0HgfaCfpv7ajUfcZ38B@0.0.0.0:3000/api/v2/invoices
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"client":{"id":null,"company":"Imagine it AB"},"date":"2015-04-07","address":{"fakturan_invoice_id":null,"name":"Imagine
|
9
|
+
it AB","street_address":"Tage Erlandergatan 4"}}'
|
10
|
+
headers:
|
11
|
+
User-Agent:
|
12
|
+
- Faraday v0.9.1
|
13
|
+
Content-Type:
|
14
|
+
- application/json
|
15
|
+
Accept-Encoding:
|
16
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
17
|
+
Accept:
|
18
|
+
- "*/*"
|
19
|
+
response:
|
20
|
+
status:
|
21
|
+
code: 201
|
22
|
+
message: Created
|
23
|
+
headers:
|
24
|
+
X-Frame-Options:
|
25
|
+
- SAMEORIGIN
|
26
|
+
X-Xss-Protection:
|
27
|
+
- 1; mode=block
|
28
|
+
X-Content-Type-Options:
|
29
|
+
- nosniff
|
30
|
+
Location:
|
31
|
+
- http://0.0.0.0:3000/api/v2/invoices/945625
|
32
|
+
Content-Type:
|
33
|
+
- application/json; charset=utf-8
|
34
|
+
Etag:
|
35
|
+
- '"83d632bbba8d44c5be3d68b79c5ebc61"'
|
36
|
+
Cache-Control:
|
37
|
+
- max-age=0, private, must-revalidate
|
38
|
+
X-Request-Id:
|
39
|
+
- 1918ee86-8ffe-4d4d-a670-d1ad6d36c7b7
|
40
|
+
X-Runtime:
|
41
|
+
- '2.491883'
|
42
|
+
Connection:
|
43
|
+
- close
|
44
|
+
Server:
|
45
|
+
- thin 1.6.2 codename Doc Brown
|
46
|
+
body:
|
47
|
+
encoding: UTF-8
|
48
|
+
string: '{"data":{"id":945625,"number":20151568,"date":"2015-04-07","client_id":299053,"days":30,"our_reference":"","your_reference":"","sent":false,"paid_at":null,"locale":"sv","currency":"SEK","recurring":false,"auto_send":false,"last_day_of_month":false,"start_recurring_from":null,"settings":{"invoice_template":"original","prices_inc_tax":"no","show_product_code":false},"sum":"0.0","net":"0.0","tax":"0.0","tax_details":{},"address":{"name":"Imagine
|
49
|
+
it AB","street_address":"","care_of":"","zip_code":"","city":"","country":""},"rows":[]}}'
|
50
|
+
http_version:
|
51
|
+
recorded_at: Tue, 07 Apr 2015 10:44:27 GMT
|
52
|
+
- request:
|
53
|
+
method: post
|
54
|
+
uri: http://dUmziS9k9Q5x0u4wot1H:DAW96mbxui8B3_CBFFFMr0HgfaCfpv7ajUfcZ38B@0.0.0.0:3000/api/v2/invoices
|
55
|
+
body:
|
56
|
+
encoding: UTF-8
|
57
|
+
string: "{}"
|
58
|
+
headers:
|
59
|
+
User-Agent:
|
60
|
+
- Faraday v0.9.1
|
61
|
+
Content-Type:
|
62
|
+
- application/json
|
63
|
+
Accept-Encoding:
|
64
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
65
|
+
Accept:
|
66
|
+
- "*/*"
|
67
|
+
response:
|
68
|
+
status:
|
69
|
+
code: 422
|
70
|
+
message: ''
|
71
|
+
headers:
|
72
|
+
X-Frame-Options:
|
73
|
+
- SAMEORIGIN
|
74
|
+
X-Xss-Protection:
|
75
|
+
- 1; mode=block
|
76
|
+
X-Content-Type-Options:
|
77
|
+
- nosniff
|
78
|
+
Content-Type:
|
79
|
+
- application/json; charset=utf-8
|
80
|
+
Cache-Control:
|
81
|
+
- no-cache
|
82
|
+
X-Request-Id:
|
83
|
+
- 2f95fffb-184a-4a4f-a588-363eb2f39e37
|
84
|
+
X-Runtime:
|
85
|
+
- '0.061805'
|
86
|
+
Connection:
|
87
|
+
- close
|
88
|
+
Server:
|
89
|
+
- thin 1.6.2 codename Doc Brown
|
90
|
+
body:
|
91
|
+
encoding: UTF-8
|
92
|
+
string: '{"errors":{"client_id":[{"error":"must be present. Please check client_id."}],"date":[{"error":"blank"},{"error":"invalid_date"}]}}'
|
93
|
+
http_version:
|
94
|
+
recorded_at: Tue, 07 Apr 2015 10:44:27 GMT
|
95
|
+
- request:
|
96
|
+
method: get
|
97
|
+
uri: http://dUmziS9k9Q5x0u4wot1H:DAW96mbxui8B3_CBFFFMr0HgfaCfpv7ajUfcZ38B@0.0.0.0:3000/api/v2/invoices/7757
|
98
|
+
body:
|
99
|
+
encoding: US-ASCII
|
100
|
+
string: ''
|
101
|
+
headers:
|
102
|
+
User-Agent:
|
103
|
+
- Faraday v0.9.1
|
104
|
+
Accept-Encoding:
|
105
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
106
|
+
Accept:
|
107
|
+
- "*/*"
|
108
|
+
response:
|
109
|
+
status:
|
110
|
+
code: 200
|
111
|
+
message: OK
|
112
|
+
headers:
|
113
|
+
X-Frame-Options:
|
114
|
+
- SAMEORIGIN
|
115
|
+
X-Xss-Protection:
|
116
|
+
- 1; mode=block
|
117
|
+
X-Content-Type-Options:
|
118
|
+
- nosniff
|
119
|
+
Content-Type:
|
120
|
+
- application/json; charset=utf-8
|
121
|
+
Etag:
|
122
|
+
- '"5ef98d5160d8b27f1b3034e636e74915"'
|
123
|
+
Cache-Control:
|
124
|
+
- max-age=0, private, must-revalidate
|
125
|
+
X-Request-Id:
|
126
|
+
- 74305069-ac58-44da-afd1-780eb73a2a24
|
127
|
+
X-Runtime:
|
128
|
+
- '0.057778'
|
129
|
+
Connection:
|
130
|
+
- close
|
131
|
+
Server:
|
132
|
+
- thin 1.6.2 codename Doc Brown
|
133
|
+
body:
|
134
|
+
encoding: UTF-8
|
135
|
+
string: '{"data":{"id":7757,"number":20070311,"date":"2007-10-29","client_id":1,"days":30,"our_reference":"Jonathan
|
136
|
+
Bourque","your_reference":"","sent":true,"paid_at":null,"locale":"sv","currency":"SEK","recurring":false,"auto_send":false,"last_day_of_month":false,"start_recurring_from":null,"settings":{"invoice_template":"original","prices_inc_tax":"no","show_product_code":false},"sum":"0.0","net":"0.0","tax":0,"tax_details":{"25":0},"address":{"name":"DCT","street_address":"Signalhornsgatan
|
137
|
+
124","care_of":"","zip_code":"656 34","city":"Karlstad","country":""},"rows":[{"id":20668,"product_id":31,"discount":0,"amount":"1.0","text":"","product_code":null,"product_name":".com
|
138
|
+
domän","product_unit":"år","product_price":"49.0","product_tax":25,"text_row":false,"sort_order":0,"tax_deductable":false}]}}'
|
139
|
+
http_version:
|
140
|
+
recorded_at: Tue, 07 Apr 2015 10:44:27 GMT
|
141
|
+
- request:
|
142
|
+
method: get
|
143
|
+
uri: http://dUmziS9k9Q5x0u4wot1H:DAW96mbxui8B3_CBFFFMr0HgfaCfpv7ajUfcZ38B@0.0.0.0:3000/api/v2/products
|
144
|
+
body:
|
145
|
+
encoding: US-ASCII
|
146
|
+
string: ''
|
147
|
+
headers:
|
148
|
+
User-Agent:
|
149
|
+
- Faraday v0.9.1
|
150
|
+
Accept-Encoding:
|
151
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
152
|
+
Accept:
|
153
|
+
- "*/*"
|
154
|
+
response:
|
155
|
+
status:
|
156
|
+
code: 200
|
157
|
+
message: OK
|
158
|
+
headers:
|
159
|
+
X-Frame-Options:
|
160
|
+
- SAMEORIGIN
|
161
|
+
X-Xss-Protection:
|
162
|
+
- 1; mode=block
|
163
|
+
X-Content-Type-Options:
|
164
|
+
- nosniff
|
165
|
+
Content-Type:
|
166
|
+
- application/json; charset=utf-8
|
167
|
+
Etag:
|
168
|
+
- '"8e8569582d8accef4bc647021644fb0e"'
|
169
|
+
Cache-Control:
|
170
|
+
- max-age=0, private, must-revalidate
|
171
|
+
X-Request-Id:
|
172
|
+
- f70915b6-5e59-423c-a969-8273b1c6cd90
|
173
|
+
X-Runtime:
|
174
|
+
- '0.080998'
|
175
|
+
Connection:
|
176
|
+
- close
|
177
|
+
Server:
|
178
|
+
- thin 1.6.2 codename Doc Brown
|
179
|
+
body:
|
180
|
+
encoding: UTF-8
|
181
|
+
string: '{"data":[{"id":31,"product_code":"","name":".com domän","unit":"år","price":"49.0","price_inc_tax":"61.25","tax":25},{"id":64076,"product_code":"","name":"Administrativ
|
182
|
+
avgift","unit":"st","price":"350.0","price_inc_tax":"437.5","tax":25},{"id":16,"product_code":"","name":"Anpassning
|
183
|
+
av mjukvara","unit":"timmar","price":"750.0","price_inc_tax":"937.5","tax":25},{"id":1109,"product_code":"","name":"Aviavgift","unit":"st","price":"25.0","price_inc_tax":"31.25","tax":25},{"id":32234,"product_code":"","name":"Buggfixar","unit":"timmar","price":"0.0","price_inc_tax":"0.0","tax":25},{"id":25,"product_code":"","name":"Domänflytt","unit":"st","price":"100.0","price_inc_tax":"125.0","tax":25},{"id":22,"product_code":"","name":"Egen
|
184
|
+
IP-adress","unit":"månader","price":"45.0","price_inc_tax":"56.25","tax":25},{"id":49,"product_code":"","name":"Extra
|
185
|
+
trafik","unit":"GB / mån","price":"30.0","price_inc_tax":"37.5","tax":25},{"id":5498,"product_code":"","name":"Fakturan.nu
|
186
|
+
- 1 extra användare","unit":"månader","price":"19.0","price_inc_tax":"23.75","tax":25},{"id":144,"product_code":"","name":"Fakturan.nu
|
187
|
+
- Guldkonto","unit":"månader","price":"99.0","price_inc_tax":"123.75","tax":25},{"id":50510,"product_code":"","name":"Fakturan.nu
|
188
|
+
- Guldkonto subway","unit":"månader","price":"59.0","price_inc_tax":"73.75","tax":25},{"id":145,"product_code":"","name":"Fakturan.nu
|
189
|
+
- Silverkonto","unit":"månader","price":"59.0","price_inc_tax":"73.75","tax":25},{"id":2443,"product_code":"","name":"Fasta
|
190
|
+
avgifter","unit":"månader","price":"5000.0","price_inc_tax":"6250.0","tax":25},{"id":19165,"product_code":"","name":"Frimärken
|
191
|
+
(10)","unit":"st","price":"12.9","price_inc_tax":"16.13","tax":25},{"id":19167,"product_code":"","name":"Frimärken
|
192
|
+
(100)","unit":"st","price":"10.9","price_inc_tax":"13.63","tax":25},{"id":19169,"product_code":"","name":"Frimärken
|
193
|
+
(1000)","unit":"st","price":"9.5","price_inc_tax":"11.88","tax":25},{"id":19166,"product_code":"","name":"Frimärken
|
194
|
+
(50)","unit":"st","price":"11.9","price_inc_tax":"14.88","tax":25},{"id":19168,"product_code":"","name":"Frimärken
|
195
|
+
(500)","unit":"st","price":"9.9","price_inc_tax":"12.38","tax":25},{"id":415,"product_code":"","name":"Grafisk
|
196
|
+
produktion","unit":"timmar","price":"750.0","price_inc_tax":"937.5","tax":25},{"id":48,"product_code":"","name":"Hemsidepaket
|
197
|
+
2","unit":"st","price":"14900.0","price_inc_tax":"18625.0","tax":25},{"id":330,"product_code":"","name":"Hyra
|
198
|
+
DVCAM bandspelare","unit":"dagar","price":"500.0","price_inc_tax":"625.0","tax":25},{"id":40631,"product_code":"","name":"Internt","unit":"timmar","price":"0.0","price_inc_tax":"0.0","tax":25},{"id":197,"product_code":"","name":"Joomla","unit":"timmar","price":"850.0","price_inc_tax":"1062.5","tax":25},{"id":53,"product_code":"","name":"Joomla
|
199
|
+
installation","unit":"timmar","price":"850.0","price_inc_tax":"1062.5","tax":25},{"id":317,"product_code":"","name":"Joomla
|
200
|
+
Struktur","unit":"timmar","price":"850.0","price_inc_tax":"1062.5","tax":25},{"id":35,"product_code":"","name":"Joomla
|
201
|
+
support","unit":"timmar","price":"590.0","price_inc_tax":"737.5","tax":25},{"id":59093,"product_code":"","name":"Joomla
|
202
|
+
underhållssupport","unit":"år","price":"1495.0","price_inc_tax":"1868.75","tax":25},{"id":59094,"product_code":"","name":"Joomla
|
203
|
+
underhållssupport - startavgift","unit":"st","price":"495.0","price_inc_tax":"618.75","tax":25},{"id":9847,"product_code":"","name":"Joomla
|
204
|
+
Uppdateringar","unit":"timmar","price":"850.0","price_inc_tax":"1062.5","tax":25},{"id":52,"product_code":"","name":"Joomla-mall","unit":"st","price":"3900.0","price_inc_tax":"4875.0","tax":25}],"paging":{"total_pages":2,"current_page":1,"next":"http://0.0.0.0:3000/api/v2/products?page=2\u0026per_page=30","previous":null}}'
|
205
|
+
http_version:
|
206
|
+
recorded_at: Tue, 07 Apr 2015 10:44:27 GMT
|
207
|
+
- request:
|
208
|
+
method: post
|
209
|
+
uri: http://dUmziS9k9Q5x0u4wot1H:DAW96mbxui8B3_CBFFFMr0HgfaCfpv7ajUfcZ38B@0.0.0.0:3000/api/v2/products
|
210
|
+
body:
|
211
|
+
encoding: UTF-8
|
212
|
+
string: '{"name":"Shoes"}'
|
213
|
+
headers:
|
214
|
+
User-Agent:
|
215
|
+
- Faraday v0.9.1
|
216
|
+
Content-Type:
|
217
|
+
- application/json
|
218
|
+
Accept-Encoding:
|
219
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
220
|
+
Accept:
|
221
|
+
- "*/*"
|
222
|
+
response:
|
223
|
+
status:
|
224
|
+
code: 201
|
225
|
+
message: Created
|
226
|
+
headers:
|
227
|
+
X-Frame-Options:
|
228
|
+
- SAMEORIGIN
|
229
|
+
X-Xss-Protection:
|
230
|
+
- 1; mode=block
|
231
|
+
X-Content-Type-Options:
|
232
|
+
- nosniff
|
233
|
+
Location:
|
234
|
+
- http://0.0.0.0:3000/api/v2/products/80031
|
235
|
+
Content-Type:
|
236
|
+
- application/json; charset=utf-8
|
237
|
+
Etag:
|
238
|
+
- '"840f49a70155c63ed33d085252d7a0dc"'
|
239
|
+
Cache-Control:
|
240
|
+
- max-age=0, private, must-revalidate
|
241
|
+
X-Request-Id:
|
242
|
+
- 01ef1ce9-6730-4721-9993-72828adcf0e5
|
243
|
+
X-Runtime:
|
244
|
+
- '0.043745'
|
245
|
+
Connection:
|
246
|
+
- close
|
247
|
+
Server:
|
248
|
+
- thin 1.6.2 codename Doc Brown
|
249
|
+
body:
|
250
|
+
encoding: UTF-8
|
251
|
+
string: '{"data":{"id":80031,"product_code":"","name":"Shoes","unit":"","price":"0.0","price_inc_tax":"0.0","tax":25}}'
|
252
|
+
http_version:
|
253
|
+
recorded_at: Tue, 07 Apr 2015 10:44:27 GMT
|
254
|
+
- request:
|
255
|
+
method: post
|
256
|
+
uri: http://dUmziS9k9Q5x0u4wot1H:DAW96mbxui8B3_CBFFFMr0HgfaCfpv7ajUfcZ38B@0.0.0.0:3000/api/v2/products
|
257
|
+
body:
|
258
|
+
encoding: UTF-8
|
259
|
+
string: "{}"
|
260
|
+
headers:
|
261
|
+
User-Agent:
|
262
|
+
- Faraday v0.9.1
|
263
|
+
Content-Type:
|
264
|
+
- application/json
|
265
|
+
Accept-Encoding:
|
266
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
267
|
+
Accept:
|
268
|
+
- "*/*"
|
269
|
+
response:
|
270
|
+
status:
|
271
|
+
code: 422
|
272
|
+
message: ''
|
273
|
+
headers:
|
274
|
+
X-Frame-Options:
|
275
|
+
- SAMEORIGIN
|
276
|
+
X-Xss-Protection:
|
277
|
+
- 1; mode=block
|
278
|
+
X-Content-Type-Options:
|
279
|
+
- nosniff
|
280
|
+
Content-Type:
|
281
|
+
- application/json; charset=utf-8
|
282
|
+
Cache-Control:
|
283
|
+
- no-cache
|
284
|
+
X-Request-Id:
|
285
|
+
- ca2c333c-7356-46e2-b749-e3d674903892
|
286
|
+
X-Runtime:
|
287
|
+
- '0.033962'
|
288
|
+
Connection:
|
289
|
+
- close
|
290
|
+
Server:
|
291
|
+
- thin 1.6.2 codename Doc Brown
|
292
|
+
body:
|
293
|
+
encoding: UTF-8
|
294
|
+
string: '{"errors":{"name":[{"error":"blank"}]}}'
|
295
|
+
http_version:
|
296
|
+
recorded_at: Tue, 07 Apr 2015 10:44:27 GMT
|
297
|
+
- request:
|
298
|
+
method: post
|
299
|
+
uri: http://dUmziS9k9Q5x0u4wot1H:DAW96mbxui8B3_CBFFFMr0HgfaCfpv7ajUfcZ38B@0.0.0.0:3000/api/v2/products
|
300
|
+
body:
|
301
|
+
encoding: UTF-8
|
302
|
+
string: '{"name":"Testing"}'
|
303
|
+
headers:
|
304
|
+
User-Agent:
|
305
|
+
- Faraday v0.9.1
|
306
|
+
Content-Type:
|
307
|
+
- application/json
|
308
|
+
Accept-Encoding:
|
309
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
310
|
+
Accept:
|
311
|
+
- "*/*"
|
312
|
+
response:
|
313
|
+
status:
|
314
|
+
code: 201
|
315
|
+
message: Created
|
316
|
+
headers:
|
317
|
+
X-Frame-Options:
|
318
|
+
- SAMEORIGIN
|
319
|
+
X-Xss-Protection:
|
320
|
+
- 1; mode=block
|
321
|
+
X-Content-Type-Options:
|
322
|
+
- nosniff
|
323
|
+
Location:
|
324
|
+
- http://0.0.0.0:3000/api/v2/products/80032
|
325
|
+
Content-Type:
|
326
|
+
- application/json; charset=utf-8
|
327
|
+
Etag:
|
328
|
+
- '"19211e0fc190040db4603edf79ed64f8"'
|
329
|
+
Cache-Control:
|
330
|
+
- max-age=0, private, must-revalidate
|
331
|
+
X-Request-Id:
|
332
|
+
- 165b9613-443e-45e9-8e74-628f8117dced
|
333
|
+
X-Runtime:
|
334
|
+
- '0.040158'
|
335
|
+
Connection:
|
336
|
+
- close
|
337
|
+
Server:
|
338
|
+
- thin 1.6.2 codename Doc Brown
|
339
|
+
body:
|
340
|
+
encoding: UTF-8
|
341
|
+
string: '{"data":{"id":80032,"product_code":"","name":"Testing","unit":"","price":"0.0","price_inc_tax":"0.0","tax":25}}'
|
342
|
+
http_version:
|
343
|
+
recorded_at: Tue, 07 Apr 2015 10:44:28 GMT
|
344
|
+
- request:
|
345
|
+
method: post
|
346
|
+
uri: http://dUmziS9k9Q5x0u4wot1H:DAW96mbxui8B3_CBFFFMr0HgfaCfpv7ajUfcZ38B@0.0.0.0:3000/api/v2/invoices
|
347
|
+
body:
|
348
|
+
encoding: UTF-8
|
349
|
+
string: '{"date":"2015-04-07","client":{"id":null,"company":"Imagine it AB"}}'
|
350
|
+
headers:
|
351
|
+
User-Agent:
|
352
|
+
- Faraday v0.9.1
|
353
|
+
Content-Type:
|
354
|
+
- application/json
|
355
|
+
Accept-Encoding:
|
356
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
357
|
+
Accept:
|
358
|
+
- "*/*"
|
359
|
+
response:
|
360
|
+
status:
|
361
|
+
code: 201
|
362
|
+
message: Created
|
363
|
+
headers:
|
364
|
+
X-Frame-Options:
|
365
|
+
- SAMEORIGIN
|
366
|
+
X-Xss-Protection:
|
367
|
+
- 1; mode=block
|
368
|
+
X-Content-Type-Options:
|
369
|
+
- nosniff
|
370
|
+
Location:
|
371
|
+
- http://0.0.0.0:3000/api/v2/invoices/945626
|
372
|
+
Content-Type:
|
373
|
+
- application/json; charset=utf-8
|
374
|
+
Etag:
|
375
|
+
- '"b751550fb11279b83e6354185a4beb10"'
|
376
|
+
Cache-Control:
|
377
|
+
- max-age=0, private, must-revalidate
|
378
|
+
X-Request-Id:
|
379
|
+
- aa62fca7-71ce-416b-ac08-63ee97a178b4
|
380
|
+
X-Runtime:
|
381
|
+
- '0.103942'
|
382
|
+
Connection:
|
383
|
+
- close
|
384
|
+
Server:
|
385
|
+
- thin 1.6.2 codename Doc Brown
|
386
|
+
body:
|
387
|
+
encoding: UTF-8
|
388
|
+
string: '{"data":{"id":945626,"number":20151569,"date":"2015-04-07","client_id":299054,"days":30,"our_reference":"","your_reference":"","sent":false,"paid_at":null,"locale":"sv","currency":"SEK","recurring":false,"auto_send":false,"last_day_of_month":false,"start_recurring_from":null,"settings":{"invoice_template":"original","prices_inc_tax":"no","show_product_code":false},"sum":"0.0","net":"0.0","tax":"0.0","tax_details":{},"address":{"name":"Imagine
|
389
|
+
it AB","street_address":"","care_of":"","zip_code":"","city":"","country":""},"rows":[]}}'
|
390
|
+
http_version:
|
391
|
+
recorded_at: Tue, 07 Apr 2015 10:44:28 GMT
|
392
|
+
- request:
|
393
|
+
method: get
|
394
|
+
uri: http://dUmziS9k9Q5x0u4wot1H:DAW96mbxui8B3_CBFFFMr0HgfaCfpv7ajUfcZ38B@0.0.0.0:3000/api/v2/clients/1
|
395
|
+
body:
|
396
|
+
encoding: US-ASCII
|
397
|
+
string: ''
|
398
|
+
headers:
|
399
|
+
User-Agent:
|
400
|
+
- Faraday v0.9.1
|
401
|
+
Accept-Encoding:
|
402
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
403
|
+
Accept:
|
404
|
+
- "*/*"
|
405
|
+
response:
|
406
|
+
status:
|
407
|
+
code: 200
|
408
|
+
message: OK
|
409
|
+
headers:
|
410
|
+
X-Frame-Options:
|
411
|
+
- SAMEORIGIN
|
412
|
+
X-Xss-Protection:
|
413
|
+
- 1; mode=block
|
414
|
+
X-Content-Type-Options:
|
415
|
+
- nosniff
|
416
|
+
Content-Type:
|
417
|
+
- application/json; charset=utf-8
|
418
|
+
Etag:
|
419
|
+
- '"a2f65185054f9e8a841c6d6603fb33bc"'
|
420
|
+
Cache-Control:
|
421
|
+
- max-age=0, private, must-revalidate
|
422
|
+
X-Request-Id:
|
423
|
+
- 14bd980e-b5e9-46e6-9fcc-ee7f7ed41c1f
|
424
|
+
X-Runtime:
|
425
|
+
- '0.066699'
|
426
|
+
Connection:
|
427
|
+
- close
|
428
|
+
Server:
|
429
|
+
- thin 1.6.2 codename Doc Brown
|
430
|
+
body:
|
431
|
+
encoding: UTF-8
|
432
|
+
string: '{"data":{"id":1,"number":1,"name":"DCT","first_name":"","last_name":"Bourque","email":"Jonathan@imagineit.se","fax":"","phone":"054-103520","home_phone":"08-55921099","mobile_phone":"","client_type":"company","org_number":"7807210591","settings":{"invoice_delivery_method":"letter","locale":"sv","invoice_days":"30","invoice_template":"original","tax":25,"prices_inc_tax":"no","show_product_code":false,"currency":"SEK"},"address":{"street_address":"Signalhornsgatan
|
433
|
+
124","care_of":"","zip_code":"656 34","city":"Karlstad","country":""}}}'
|
434
|
+
http_version:
|
435
|
+
recorded_at: Tue, 07 Apr 2015 10:44:28 GMT
|
436
|
+
- request:
|
437
|
+
method: get
|
438
|
+
uri: http://dUmziS9k9Q5x0u4wot1H:DAW96mbxui8B3_CBFFFMr0HgfaCfpv7ajUfcZ38B@0.0.0.0:3000/api/v2/clients/1
|
439
|
+
body:
|
440
|
+
encoding: US-ASCII
|
441
|
+
string: ''
|
442
|
+
headers:
|
443
|
+
User-Agent:
|
444
|
+
- Faraday v0.9.1
|
445
|
+
Accept-Encoding:
|
446
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
447
|
+
Accept:
|
448
|
+
- "*/*"
|
449
|
+
response:
|
450
|
+
status:
|
451
|
+
code: 200
|
452
|
+
message: OK
|
453
|
+
headers:
|
454
|
+
X-Frame-Options:
|
455
|
+
- SAMEORIGIN
|
456
|
+
X-Xss-Protection:
|
457
|
+
- 1; mode=block
|
458
|
+
X-Content-Type-Options:
|
459
|
+
- nosniff
|
460
|
+
Content-Type:
|
461
|
+
- application/json; charset=utf-8
|
462
|
+
Etag:
|
463
|
+
- '"a2f65185054f9e8a841c6d6603fb33bc"'
|
464
|
+
Cache-Control:
|
465
|
+
- max-age=0, private, must-revalidate
|
466
|
+
X-Request-Id:
|
467
|
+
- 0bdf6350-2390-41d8-aaab-9154f1fae807
|
468
|
+
X-Runtime:
|
469
|
+
- '0.038723'
|
470
|
+
Connection:
|
471
|
+
- close
|
472
|
+
Server:
|
473
|
+
- thin 1.6.2 codename Doc Brown
|
474
|
+
body:
|
475
|
+
encoding: UTF-8
|
476
|
+
string: '{"data":{"id":1,"number":1,"name":"DCT","first_name":"","last_name":"Bourque","email":"Jonathan@imagineit.se","fax":"","phone":"054-103520","home_phone":"08-55921099","mobile_phone":"","client_type":"company","org_number":"7807210591","settings":{"invoice_delivery_method":"letter","locale":"sv","invoice_days":"30","invoice_template":"original","tax":25,"prices_inc_tax":"no","show_product_code":false,"currency":"SEK"},"address":{"street_address":"Signalhornsgatan
|
477
|
+
124","care_of":"","zip_code":"656 34","city":"Karlstad","country":""}}}'
|
478
|
+
http_version:
|
479
|
+
recorded_at: Tue, 07 Apr 2015 10:44:28 GMT
|
480
|
+
recorded_with: VCR 2.9.3
|