quaderno 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +6 -7
- data/Gemfile.lock +0 -9
- data/README.md +6 -2
- data/VERSION +1 -1
- data/build_install.sh +1 -1
- data/changelog.md +4 -0
- data/lib/quaderno-ruby/base.rb +10 -2
- data/lib/quaderno-ruby/behavior/crud.rb +0 -1
- data/lib/quaderno-ruby.rb +0 -2
- data/quaderno.gemspec +6 -25
- data/test/fixtures/quaderno_cassettes/all_contacts.yml +23 -18
- data/test/fixtures/quaderno_cassettes/all_estimates.yml +35 -18
- data/test/fixtures/quaderno_cassettes/all_expenses.yml +38 -18
- data/test/fixtures/quaderno_cassettes/all_invoices.yml +35 -29
- data/test/fixtures/quaderno_cassettes/all_items.yml +17 -12
- data/test/fixtures/quaderno_cassettes/all_webhooks.yml +84 -68
- data/test/fixtures/quaderno_cassettes/deleted_contact.yml +81 -62
- data/test/fixtures/quaderno_cassettes/deleted_estimate.yml +96 -62
- data/test/fixtures/quaderno_cassettes/deleted_expense.yml +99 -62
- data/test/fixtures/quaderno_cassettes/deleted_invoice.yml +96 -73
- data/test/fixtures/quaderno_cassettes/deleted_item.yml +49 -37
- data/test/fixtures/quaderno_cassettes/deleted_webhook.yml +100 -80
- data/test/fixtures/quaderno_cassettes/delivered_estimate.yml +66 -45
- data/test/fixtures/quaderno_cassettes/delivered_invoice.yml +66 -56
- data/test/fixtures/quaderno_cassettes/found_contact.yml +39 -30
- data/test/fixtures/quaderno_cassettes/found_estimate.yml +55 -32
- data/test/fixtures/quaderno_cassettes/found_expense.yml +62 -30
- data/test/fixtures/quaderno_cassettes/found_invoice.yml +58 -42
- data/test/fixtures/quaderno_cassettes/found_item.yml +33 -24
- data/test/fixtures/quaderno_cassettes/found_webhook.yml +50 -40
- data/test/fixtures/quaderno_cassettes/new_contact.yml +19 -12
- data/test/fixtures/quaderno_cassettes/new_estimate.yml +61 -44
- data/test/fixtures/quaderno_cassettes/new_expense.yml +99 -62
- data/test/fixtures/quaderno_cassettes/new_invoice.yml +61 -44
- data/test/fixtures/quaderno_cassettes/new_item.yml +19 -12
- data/test/fixtures/quaderno_cassettes/new_webhook.yml +34 -28
- data/test/fixtures/quaderno_cassettes/paid_expense.yml +57 -30
- data/test/fixtures/quaderno_cassettes/paid_invoice.yml +54 -41
- data/test/fixtures/quaderno_cassettes/rate_limit.yml +14 -10
- data/test/fixtures/quaderno_cassettes/unpay_an_expense.yml +73 -43
- data/test/fixtures/quaderno_cassettes/unpay_an_invoice.yml +70 -54
- data/test/fixtures/quaderno_cassettes/updated_contact.yml +42 -30
- data/test/fixtures/quaderno_cassettes/updated_estimate.yml +84 -57
- data/test/fixtures/quaderno_cassettes/updated_expense.yml +81 -56
- data/test/fixtures/quaderno_cassettes/updated_invoice.yml +84 -57
- data/test/fixtures/quaderno_cassettes/updated_item.yml +36 -24
- data/test/fixtures/quaderno_cassettes/updated_webhook.yml +69 -55
- data/test/helper.rb +12 -12
- data/test/unit/test_quaderno_contacts.rb +4 -3
- data/test/unit/test_quaderno_estimates.rb +2 -1
- data/test/unit/test_quaderno_expenses.rb +3 -2
- data/test/unit/test_quaderno_invoices.rb +3 -2
- data/test/unit/test_quaderno_items.rb +4 -3
- data/test/unit/test_quaderno_webhooks.rb +4 -3
- metadata +10 -94
- data/quaderno-1.0.0.gem +0 -0
- data/quaderno-1.1.0.gem +0 -0
- data/quaderno-1.1.2.gem +0 -0
- data/quaderno-1.2.0.gem +0 -0
@@ -2,86 +2,118 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://
|
5
|
+
uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/expenses.json
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
authorization:
|
11
|
-
- Basic
|
11
|
+
- Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
|
12
12
|
response:
|
13
13
|
status:
|
14
14
|
code: 200
|
15
|
-
message: OK
|
15
|
+
message: ! 'OK '
|
16
16
|
headers:
|
17
17
|
x-ratelimit-limit:
|
18
|
-
- '
|
18
|
+
- '2000'
|
19
19
|
x-ratelimit-remaining:
|
20
|
-
- '
|
20
|
+
- '1893'
|
21
|
+
x-pages-currentpage:
|
22
|
+
- '1'
|
23
|
+
x-pages-totalpages:
|
24
|
+
- '1'
|
21
25
|
content-type:
|
22
26
|
- application/json; charset=utf-8
|
23
27
|
x-ua-compatible:
|
24
28
|
- IE=Edge
|
25
29
|
etag:
|
26
|
-
- ! '"
|
30
|
+
- ! '"0caa665340ca3fbfd0127f8d8d146941"'
|
27
31
|
cache-control:
|
28
32
|
- max-age=0, private, must-revalidate
|
29
33
|
x-request-id:
|
30
|
-
-
|
34
|
+
- 13dca819c41fb11f0429923a8d82b232
|
31
35
|
x-runtime:
|
32
|
-
- '0.
|
36
|
+
- '0.525290'
|
37
|
+
server:
|
38
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
|
39
|
+
date:
|
40
|
+
- Tue, 04 Feb 2014 14:50:58 GMT
|
41
|
+
content-length:
|
42
|
+
- '2759'
|
33
43
|
connection:
|
34
44
|
- close
|
35
|
-
server:
|
36
|
-
- thin 1.5.0 codename Knife
|
37
45
|
body:
|
38
46
|
encoding: US-ASCII
|
39
|
-
string: ! '[{"id":
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
47
|
+
string: ! '[{"id":6,"number":null,"issue_date":"2014-05-04","contact":{"id":2,"full_name":"Another
|
48
|
+
Test Contact"},"po_number":"","currency":"EUR","items":[{"description":"Honeypots","quantity":"1.3","unit_price":"19.03","discount_rate":"0.0","tax_1_name":"IVA","tax_1_rate":"21.0","tax_2_name":"IRPF","tax_2_rate":"-9.0","reference":"","subtotal":"24.74
|
49
|
+
\u20ac","discount":"0.00 \u20ac","gross_amount":"24.74 \u20ac"}],"subtotal":"24.74
|
50
|
+
\u20ac","discount":"0.00 \u20ac","taxes":[{"label":"IRPF (-9.00%)","amount":"-2.23
|
51
|
+
\u20ac"},{"label":"IVA (21.00%)","amount":"5.20 \u20ac"}],"total":"27.71 \u20ac","payments":[{"id":1,"date":"2014-02-04","payment_method":"cash","amount":"10,000.00
|
52
|
+
\u20ac","url":"http://localhost:3000/recrea/api/v1/expenses/6/payments/1.json"},{"id":3,"date":"2014-02-04","payment_method":"cash","amount":"10,000.00
|
53
|
+
\u20ac","url":"http://localhost:3000/recrea/api/v1/expenses/6/payments/3.json"},{"id":5,"date":"2014-02-04","payment_method":"cash","amount":"10,000.00
|
54
|
+
\u20ac","url":"http://localhost:3000/recrea/api/v1/expenses/6/payments/5.json"},{"id":7,"date":"2014-02-04","payment_method":"cash","amount":"10,000.00
|
55
|
+
\u20ac","url":"http://localhost:3000/recrea/api/v1/expenses/6/payments/7.json"}],"notes":"Hello","state":"paid","tag_list":[],"url":"http://localhost:3000/recrea/api/v1/expenses/6.json"},{"id":4,"number":null,"issue_date":"2014-02-04","contact":{"id":1,"full_name":"API
|
56
|
+
Test Contact"},"po_number":"","currency":"EUR","items":[{"description":"Very
|
57
|
+
important stuff","quantity":"1.0","unit_price":"2230.0","discount_rate":"0.0","tax_1_name":"IVA","tax_1_rate":"21.0","tax_2_name":"IRPF","tax_2_rate":"-9.0","reference":"","subtotal":"2,230.00
|
58
|
+
\u20ac","discount":"0.00 \u20ac","gross_amount":"2,230.00 \u20ac"}],"subtotal":"2,230.00
|
59
|
+
\u20ac","discount":"0.00 \u20ac","taxes":[{"label":"IRPF (-9.00%)","amount":"-200.70
|
60
|
+
\u20ac"},{"label":"IVA (21.00%)","amount":"468.30 \u20ac"}],"total":"2,497.60
|
61
|
+
\u20ac","payments":[],"notes":"Hello","state":"outstanding","tag_list":[],"url":"http://localhost:3000/recrea/api/v1/expenses/4.json"},{"id":5,"number":null,"issue_date":"2014-02-04","contact":{"id":3,"full_name":"TSM"},"po_number":"","currency":"EUR","items":[{"description":"Bombers","quantity":"5.0","unit_price":"29.0","discount_rate":"0.0","tax_1_name":"IVA","tax_1_rate":"21.0","tax_2_name":"IRPF","tax_2_rate":"-9.0","reference":"","subtotal":"145.00
|
62
|
+
\u20ac","discount":"0.00 \u20ac","gross_amount":"145.00 \u20ac"}],"subtotal":"145.00
|
63
|
+
\u20ac","discount":"0.00 \u20ac","taxes":[{"label":"IRPF (-9.00%)","amount":"-13.05
|
64
|
+
\u20ac"},{"label":"IVA (21.00%)","amount":"30.45 \u20ac"}],"total":"162.40
|
65
|
+
\u20ac","payments":[],"notes":"Hello","state":"outstanding","tag_list":[],"url":"http://localhost:3000/recrea/api/v1/expenses/5.json"}]'
|
46
66
|
http_version: '1.1'
|
47
|
-
recorded_at: Tue,
|
67
|
+
recorded_at: Tue, 04 Feb 2014 14:50:58 GMT
|
48
68
|
- request:
|
49
69
|
method: get
|
50
|
-
uri: http://
|
70
|
+
uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/expenses/6.json
|
51
71
|
body:
|
52
72
|
encoding: US-ASCII
|
53
73
|
string: ''
|
54
74
|
headers:
|
55
75
|
authorization:
|
56
|
-
- Basic
|
76
|
+
- Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
|
57
77
|
response:
|
58
78
|
status:
|
59
79
|
code: 200
|
60
|
-
message: OK
|
80
|
+
message: ! 'OK '
|
61
81
|
headers:
|
62
82
|
x-ratelimit-limit:
|
63
|
-
- '
|
83
|
+
- '2000'
|
64
84
|
x-ratelimit-remaining:
|
65
|
-
- '
|
85
|
+
- '1892'
|
66
86
|
content-type:
|
67
87
|
- application/json; charset=utf-8
|
68
88
|
x-ua-compatible:
|
69
89
|
- IE=Edge
|
70
90
|
etag:
|
71
|
-
- ! '"
|
91
|
+
- ! '"71412ae4bd80e15412e7f274cce5fd5f"'
|
72
92
|
cache-control:
|
73
93
|
- max-age=0, private, must-revalidate
|
74
94
|
x-request-id:
|
75
|
-
-
|
95
|
+
- fc44e498aec45c9f11e3bb4e68f4b740
|
76
96
|
x-runtime:
|
77
|
-
- '0.
|
97
|
+
- '0.189958'
|
98
|
+
server:
|
99
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
|
100
|
+
date:
|
101
|
+
- Tue, 04 Feb 2014 14:50:58 GMT
|
102
|
+
content-length:
|
103
|
+
- '1315'
|
78
104
|
connection:
|
79
105
|
- close
|
80
|
-
server:
|
81
|
-
- thin 1.5.0 codename Knife
|
82
106
|
body:
|
83
107
|
encoding: US-ASCII
|
84
|
-
string: ! '{"id":
|
108
|
+
string: ! '{"id":6,"number":null,"issue_date":"2014-05-04","contact":{"id":2,"full_name":"Another
|
109
|
+
Test Contact"},"po_number":"","currency":"EUR","items":[{"description":"Honeypots","quantity":"1.3","unit_price":"19.03","discount_rate":"0.0","tax_1_name":"IVA","tax_1_rate":"21.0","tax_2_name":"IRPF","tax_2_rate":"-9.0","reference":"","subtotal":"24.74
|
110
|
+
\u20ac","discount":"0.00 \u20ac","gross_amount":"24.74 \u20ac"}],"subtotal":"24.74
|
111
|
+
\u20ac","discount":"0.00 \u20ac","taxes":[{"label":"IRPF (-9.00%)","amount":"-2.23
|
112
|
+
\u20ac"},{"label":"IVA (21.00%)","amount":"5.20 \u20ac"}],"total":"27.71 \u20ac","payments":[{"id":1,"date":"2014-02-04","payment_method":"cash","amount":"10,000.00
|
113
|
+
\u20ac","url":"http://localhost:3000/recrea/api/v1/expenses/6/payments/1.json"},{"id":3,"date":"2014-02-04","payment_method":"cash","amount":"10,000.00
|
114
|
+
\u20ac","url":"http://localhost:3000/recrea/api/v1/expenses/6/payments/3.json"},{"id":5,"date":"2014-02-04","payment_method":"cash","amount":"10,000.00
|
115
|
+
\u20ac","url":"http://localhost:3000/recrea/api/v1/expenses/6/payments/5.json"},{"id":7,"date":"2014-02-04","payment_method":"cash","amount":"10,000.00
|
116
|
+
\u20ac","url":"http://localhost:3000/recrea/api/v1/expenses/6/payments/7.json"}],"notes":"Hello","state":"paid","tag_list":[],"url":"http://localhost:3000/recrea/api/v1/expenses/6.json"}'
|
85
117
|
http_version: '1.1'
|
86
|
-
recorded_at: Tue,
|
118
|
+
recorded_at: Tue, 04 Feb 2014 14:50:58 GMT
|
87
119
|
recorded_with: VCR 2.3.0
|
@@ -2,98 +2,114 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://
|
5
|
+
uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/invoices.json
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
authorization:
|
11
|
-
- Basic
|
11
|
+
- Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
|
12
12
|
response:
|
13
13
|
status:
|
14
14
|
code: 200
|
15
|
-
message: OK
|
15
|
+
message: ! 'OK '
|
16
16
|
headers:
|
17
17
|
x-ratelimit-limit:
|
18
|
-
- '
|
18
|
+
- '2000'
|
19
19
|
x-ratelimit-remaining:
|
20
|
-
- '
|
20
|
+
- '1872'
|
21
|
+
x-pages-currentpage:
|
22
|
+
- '1'
|
23
|
+
x-pages-totalpages:
|
24
|
+
- '1'
|
21
25
|
content-type:
|
22
26
|
- application/json; charset=utf-8
|
23
27
|
x-ua-compatible:
|
24
28
|
- IE=Edge
|
25
29
|
etag:
|
26
|
-
- ! '"
|
30
|
+
- ! '"53fc8e14c11dee1f0727271327376f21"'
|
27
31
|
cache-control:
|
28
32
|
- max-age=0, private, must-revalidate
|
29
33
|
x-request-id:
|
30
|
-
-
|
34
|
+
- f1d2dd0905a202e74753f4f4b6a25a53
|
31
35
|
x-runtime:
|
32
|
-
- '
|
36
|
+
- '0.541450'
|
37
|
+
server:
|
38
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
|
39
|
+
date:
|
40
|
+
- Tue, 04 Feb 2014 14:52:06 GMT
|
41
|
+
content-length:
|
42
|
+
- '2818'
|
33
43
|
connection:
|
34
44
|
- close
|
35
|
-
server:
|
36
|
-
- thin 1.5.0 codename Knife
|
37
45
|
body:
|
38
46
|
encoding: US-ASCII
|
39
|
-
string: ! '[{"id":
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
Systems, SLU"},"po_number":"","due_date":null,"currency":"EUR","items":[{"description":"Pizza","quantity":"1.0","unit_price":"20.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"subtotal":"\u20ac20.00","discount":"\u20ac0.00","gross_amount":"\u20ac20.00"}],"subtotal":"\u20ac20.00","discount":"\u20ac0.00","taxes":[],"total":"\u20ac20.00","payments":[],"tags":[],"payment_details":"","notes":"","state":"draft","permalink":"http://localhost:3000/invoice/8cdeb9921a94dab43ec8085c10f0f2f640433b9e","url":"http://localhost:3000/recrea/api/v1/invoices/18.json"},{"id":17,"number":"0000007","issue_date":"2013-04-24","contact":{"id":7,"full_name":"Test_OCP"},"po_number":"","due_date":null,"currency":"EUR","items":[{"description":"Hola","quantity":"1.0","unit_price":"0.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"subtotal":"\u20ac0.00","discount":"\u20ac0.00","gross_amount":"\u20ac0.00"}],"subtotal":"\u20ac0.00","discount":"\u20ac0.00","taxes":[],"total":"\u20ac0.00","payments":[],"tags":[],"payment_details":"","notes":"","state":"draft","permalink":"http://localhost:3000/invoice/7717368283d6469873012547c9a16755e51bcfa6","url":"http://localhost:3000/recrea/api/v1/invoices/17.json"},{"id":24,"number":"0000012","issue_date":"2013-03-24","contact":{"id":5,"full_name":"Stark
|
56
|
-
Industries"},"po_number":"","due_date":null,"currency":"EUR","items":[{"description":"tornillos","quantity":"100.0","unit_price":"5.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"subtotal":"\u20ac500.00","discount":"\u20ac0.00","gross_amount":"\u20ac500.00"}],"subtotal":"\u20ac500.00","discount":"\u20ac0.00","taxes":[],"total":"\u20ac500.00","payments":[],"tags":[],"payment_details":"","notes":"","state":"draft","permalink":"http://localhost:3000/invoice/06bf2c3d7c635925bf41385e7baa411dbab36b4d","url":"http://localhost:3000/recrea/api/v1/invoices/24.json"},{"id":19,"number":"0000009","issue_date":"2013-02-23","contact":{"id":2,"full_name":"Test_OCP"},"po_number":"","due_date":null,"currency":"EUR","items":[{"description":"Tarta","quantity":"1.0","unit_price":"10.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"subtotal":"\u20ac10.00","discount":"\u20ac0.00","gross_amount":"\u20ac10.00"}],"subtotal":"\u20ac10.00","discount":"\u20ac0.00","taxes":[],"total":"\u20ac10.00","payments":[],"tags":[],"payment_details":"","notes":"","state":"draft","permalink":"http://localhost:3000/invoice/e6511ed82cdcb6eec8d3eac322080fdbe2b8a02e","url":"http://localhost:3000/recrea/api/v1/invoices/19.json"}]'
|
47
|
+
string: ! '[{"id":3,"number":"0000003","issue_date":"2014-02-04","contact":{"id":2,"full_name":"Another
|
48
|
+
Test Contact"},"po_number":"","due_date":null,"currency":"EUR","items":[{"description":"Free
|
49
|
+
stuff!","quantity":"200.0","unit_price":"0.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"reference":"","subtotal":"0.00
|
50
|
+
\u20ac","discount":"0.00 \u20ac","gross_amount":"0.00 \u20ac"},{"description":"Pizza
|
51
|
+
bagles","quantity":"2.0","unit_price":"15.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"reference":"","subtotal":"30.00
|
52
|
+
\u20ac","discount":"0.00 \u20ac","gross_amount":"30.00 \u20ac"}],"subtotal":"30.00
|
53
|
+
\u20ac","discount":"0.00 \u20ac","taxes":[],"total":"30.00 \u20ac","payments":[{"id":9,"date":"2014-02-04","payment_method":"cash","amount":"100,000,000.00
|
54
|
+
\u20ac","url":"http://localhost:3000/recrea/api/v1/invoices/3/payments/9.json"}],"payment_details":"","notes":"","state":"paid","tag_list":[],"permalink":"http://localhost:3000/invoice/060c7204face21de13e68b33c940b030164a42b1","url":"http://localhost:3000/recrea/api/v1/invoices/3.json"},{"id":2,"number":"0000002","issue_date":"2014-02-04","contact":{"id":3,"full_name":"TSM"},"po_number":"","due_date":null,"currency":"EUR","items":[{"description":"Free
|
55
|
+
stuff!","quantity":"200.0","unit_price":"1.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"reference":"","subtotal":"200.00
|
56
|
+
\u20ac","discount":"0.00 \u20ac","gross_amount":"200.00 \u20ac"}],"subtotal":"200.00
|
57
|
+
\u20ac","discount":"0.00 \u20ac","taxes":[],"total":"200.00 \u20ac","payments":[],"payment_details":"","notes":"","state":"draft","tag_list":[],"permalink":"http://localhost:3000/invoice/b59479ddd5e9d2ff72d276a1fd9ead4764343984","url":"http://localhost:3000/recrea/api/v1/invoices/2.json"},{"id":1,"number":"0000001","issue_date":"2014-02-04","contact":{"id":1,"full_name":"API
|
58
|
+
Test Contact"},"po_number":"","due_date":null,"currency":"EUR","items":[{"description":"Something","quantity":"1.0","unit_price":"10.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"reference":"","subtotal":"10.00
|
59
|
+
\u20ac","discount":"0.00 \u20ac","gross_amount":"10.00 \u20ac"},{"description":"Free
|
60
|
+
stuff!","quantity":"200.0","unit_price":"0.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"reference":"","subtotal":"0.00
|
61
|
+
\u20ac","discount":"0.00 \u20ac","gross_amount":"0.00 \u20ac"}],"subtotal":"10.00
|
62
|
+
\u20ac","discount":"0.00 \u20ac","taxes":[],"total":"10.00 \u20ac","payments":[],"payment_details":"","notes":"","state":"draft","tag_list":[],"permalink":"http://localhost:3000/invoice/e8a2610def0bed3cd429f45f9561853d401aa31e","url":"http://localhost:3000/recrea/api/v1/invoices/1.json"}]'
|
57
63
|
http_version: '1.1'
|
58
|
-
recorded_at: Tue,
|
64
|
+
recorded_at: Tue, 04 Feb 2014 14:52:06 GMT
|
59
65
|
- request:
|
60
66
|
method: get
|
61
|
-
uri: http://
|
67
|
+
uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/invoices/3.json
|
62
68
|
body:
|
63
69
|
encoding: US-ASCII
|
64
70
|
string: ''
|
65
71
|
headers:
|
66
72
|
authorization:
|
67
|
-
- Basic
|
73
|
+
- Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
|
68
74
|
response:
|
69
75
|
status:
|
70
76
|
code: 200
|
71
|
-
message: OK
|
77
|
+
message: ! 'OK '
|
72
78
|
headers:
|
73
79
|
x-ratelimit-limit:
|
74
|
-
- '
|
80
|
+
- '2000'
|
75
81
|
x-ratelimit-remaining:
|
76
|
-
- '
|
82
|
+
- '1871'
|
77
83
|
content-type:
|
78
84
|
- application/json; charset=utf-8
|
79
85
|
x-ua-compatible:
|
80
86
|
- IE=Edge
|
81
87
|
etag:
|
82
|
-
- ! '"
|
88
|
+
- ! '"f8affb92b49dcd1fe787eb61d418d4f3"'
|
83
89
|
cache-control:
|
84
90
|
- max-age=0, private, must-revalidate
|
85
91
|
x-request-id:
|
86
|
-
-
|
92
|
+
- b9dc7140e0ccfb1cc4d3b85298b8a9cf
|
87
93
|
x-runtime:
|
88
|
-
- '0.
|
94
|
+
- '0.424651'
|
95
|
+
server:
|
96
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
|
97
|
+
date:
|
98
|
+
- Tue, 04 Feb 2014 14:52:07 GMT
|
99
|
+
content-length:
|
100
|
+
- '1132'
|
89
101
|
connection:
|
90
102
|
- close
|
91
|
-
server:
|
92
|
-
- thin 1.5.0 codename Knife
|
93
103
|
body:
|
94
104
|
encoding: US-ASCII
|
95
|
-
string: ! '{"id":
|
96
|
-
|
105
|
+
string: ! '{"id":3,"number":"0000003","issue_date":"2014-02-04","contact":{"id":2,"full_name":"Another
|
106
|
+
Test Contact"},"po_number":"","due_date":null,"currency":"EUR","items":[{"description":"Free
|
107
|
+
stuff!","quantity":"200.0","unit_price":"0.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"reference":"","subtotal":"0.00
|
108
|
+
\u20ac","discount":"0.00 \u20ac","gross_amount":"0.00 \u20ac"},{"description":"Pizza
|
109
|
+
bagles","quantity":"2.0","unit_price":"15.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"reference":"","subtotal":"30.00
|
110
|
+
\u20ac","discount":"0.00 \u20ac","gross_amount":"30.00 \u20ac"}],"subtotal":"30.00
|
111
|
+
\u20ac","discount":"0.00 \u20ac","taxes":[],"total":"30.00 \u20ac","payments":[{"id":9,"date":"2014-02-04","payment_method":"cash","amount":"100,000,000.00
|
112
|
+
\u20ac","url":"http://localhost:3000/recrea/api/v1/invoices/3/payments/9.json"}],"payment_details":"","notes":"","state":"paid","tag_list":[],"permalink":"http://localhost:3000/invoice/060c7204face21de13e68b33c940b030164a42b1","url":"http://localhost:3000/recrea/api/v1/invoices/3.json"}'
|
97
113
|
http_version: '1.1'
|
98
|
-
recorded_at: Tue,
|
114
|
+
recorded_at: Tue, 04 Feb 2014 14:52:07 GMT
|
99
115
|
recorded_with: VCR 2.3.0
|
@@ -2,80 +2,89 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://
|
5
|
+
uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/items.json
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
authorization:
|
11
|
-
- Basic
|
11
|
+
- Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
|
12
12
|
response:
|
13
13
|
status:
|
14
14
|
code: 200
|
15
|
-
message: OK
|
15
|
+
message: ! 'OK '
|
16
16
|
headers:
|
17
17
|
x-ratelimit-limit:
|
18
|
-
- '
|
18
|
+
- '2000'
|
19
19
|
x-ratelimit-remaining:
|
20
|
-
- '
|
20
|
+
- '1858'
|
21
21
|
content-type:
|
22
22
|
- application/json; charset=utf-8
|
23
23
|
x-ua-compatible:
|
24
24
|
- IE=Edge
|
25
25
|
etag:
|
26
|
-
- ! '"
|
26
|
+
- ! '"bcea0893565ac5c95d5dae6164a7cad8"'
|
27
27
|
cache-control:
|
28
28
|
- max-age=0, private, must-revalidate
|
29
29
|
x-request-id:
|
30
|
-
-
|
30
|
+
- ef7f3a426e38d7b45a67ffe1586cee92
|
31
31
|
x-runtime:
|
32
|
-
- '0.
|
32
|
+
- '0.147829'
|
33
|
+
server:
|
34
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
|
35
|
+
date:
|
36
|
+
- Tue, 04 Feb 2014 14:52:21 GMT
|
37
|
+
content-length:
|
38
|
+
- '451'
|
33
39
|
connection:
|
34
40
|
- close
|
35
|
-
server:
|
36
|
-
- thin 1.5.0 codename Knife
|
37
41
|
body:
|
38
42
|
encoding: US-ASCII
|
39
|
-
string: ! '[{"id":
|
43
|
+
string: ! '[{"id":1,"code":"00001","name":"Fritata","unit_cost":"20.0","tax_1_name":"IVA","tax_1_rate":21.0,"url":"http://localhost:3000/recrea/api/v1/items/1"},{"id":3,"code":"NaN00","name":"Nan
|
44
|
+
Kima","unit_cost":"2.35","tax_1_name":"IVA","tax_1_rate":21.0,"url":"http://localhost:3000/recrea/api/v1/items/3"},{"id":2,"code":"000017","name":"Pizzata","unit_cost":"25.99","tax_1_name":"IVA","tax_1_rate":21.0,"url":"http://localhost:3000/recrea/api/v1/items/2"}]'
|
40
45
|
http_version: '1.1'
|
41
|
-
recorded_at: Tue,
|
46
|
+
recorded_at: Tue, 04 Feb 2014 14:52:21 GMT
|
42
47
|
- request:
|
43
48
|
method: get
|
44
|
-
uri: http://
|
49
|
+
uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/items/2.json
|
45
50
|
body:
|
46
51
|
encoding: US-ASCII
|
47
52
|
string: ''
|
48
53
|
headers:
|
49
54
|
authorization:
|
50
|
-
- Basic
|
55
|
+
- Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
|
51
56
|
response:
|
52
57
|
status:
|
53
58
|
code: 200
|
54
|
-
message: OK
|
59
|
+
message: ! 'OK '
|
55
60
|
headers:
|
56
61
|
x-ratelimit-limit:
|
57
|
-
- '
|
62
|
+
- '2000'
|
58
63
|
x-ratelimit-remaining:
|
59
|
-
- '
|
64
|
+
- '1857'
|
60
65
|
content-type:
|
61
66
|
- application/json; charset=utf-8
|
62
67
|
x-ua-compatible:
|
63
68
|
- IE=Edge
|
64
69
|
etag:
|
65
|
-
- ! '"
|
70
|
+
- ! '"278ccbca7a4144f6bf8246cd2a10a720"'
|
66
71
|
cache-control:
|
67
72
|
- max-age=0, private, must-revalidate
|
68
73
|
x-request-id:
|
69
|
-
-
|
74
|
+
- e207239527980223d1c541e92a5a1a79
|
70
75
|
x-runtime:
|
71
|
-
- '0.
|
76
|
+
- '0.364120'
|
77
|
+
server:
|
78
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
|
79
|
+
date:
|
80
|
+
- Tue, 04 Feb 2014 14:52:22 GMT
|
81
|
+
content-length:
|
82
|
+
- '150'
|
72
83
|
connection:
|
73
84
|
- close
|
74
|
-
server:
|
75
|
-
- thin 1.5.0 codename Knife
|
76
85
|
body:
|
77
86
|
encoding: US-ASCII
|
78
|
-
string: ! '{"id":
|
87
|
+
string: ! '{"id":2,"code":"000017","name":"Pizzata","unit_cost":"25.99","tax_1_name":"IVA","tax_1_rate":21.0,"url":"http://localhost:3000/recrea/api/v1/items/2"}'
|
79
88
|
http_version: '1.1'
|
80
|
-
recorded_at: Tue,
|
89
|
+
recorded_at: Tue, 04 Feb 2014 14:52:22 GMT
|
81
90
|
recorded_with: VCR 2.3.0
|