quaderno 1.2.1 → 1.2.2
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.
- 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,180 +2,203 @@
|
|
|
2
2
|
http_interactions:
|
|
3
3
|
- request:
|
|
4
4
|
method: get
|
|
5
|
-
uri: http://
|
|
5
|
+
uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/contacts.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
|
+
- '1878'
|
|
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
|
+
- ! '"71b79c1b45cfb58a71172c277dd004b5"'
|
|
27
31
|
cache-control:
|
|
28
32
|
- max-age=0, private, must-revalidate
|
|
29
33
|
x-request-id:
|
|
30
|
-
-
|
|
34
|
+
- 3f56157212245b6f1ff864d34f0d64fc
|
|
31
35
|
x-runtime:
|
|
32
|
-
- '0.
|
|
36
|
+
- '0.407511'
|
|
37
|
+
server:
|
|
38
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
|
|
39
|
+
date:
|
|
40
|
+
- Tue, 04 Feb 2014 14:52:03 GMT
|
|
41
|
+
content-length:
|
|
42
|
+
- '1879'
|
|
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
|
-
Palmas de Gran Canaria","region":"Las Palmas","country":"ES","phone_1":"653157684","phone_2":"653157684","fax":"","email":"dont@stop.believing","web":"","discount":null,"tax_id":"","bank_account":"","language":"ES","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/2"},{"id":7,"kind":"company","full_name":"Test_OCP","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"US","phone_1":null,"phone_2":null,"fax":null,"email":"dont@stop.believing","web":null,"discount":null,"tax_id":null,"language":"EN","notes":null,"url":"http://localhost:3000/recrea/api/v1/contacts/7"},{"id":4,"kind":"person","first_name":"Test_OCP","last_name":"Doe","full_name":"Test_OCP
|
|
44
|
-
Doe","street_line_1":"Bernardo de la Torre 104","street_line_2":"","postal_code":"35007","city":"Las
|
|
45
|
-
Palmas de Gran Canaria","region":"Las Palmas","country":"ES","phone_1":"653157684","phone_2":"653157684","fax":"","email":"dont@stop.believing","web":"","discount":null,"tax_id":"","bank_account":"","language":"ES","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/4"},{"id":12,"kind":"company","full_name":"Test_Skynet","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"US","phone_1":null,"phone_2":null,"fax":null,"email":"my_little@po.ny","web":null,"discount":null,"tax_id":null,"language":"EN","notes":null,"url":"http://localhost:3000/recrea/api/v1/contacts/12"},{"id":15,"kind":"company","full_name":"Test_Skynet","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"US","phone_1":null,"phone_2":null,"fax":null,"email":"my_little@po.ny","web":null,"discount":null,"tax_id":null,"language":"EN","notes":null,"url":"http://localhost:3000/recrea/api/v1/contacts/15"},{"id":8,"kind":"company","full_name":"Toby","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"US","phone_1":null,"phone_2":null,"fax":null,"email":null,"web":null,"discount":null,"tax_id":null,"language":"EN","notes":null,"url":"http://localhost:3000/recrea/api/v1/contacts/8"}]'
|
|
47
|
+
string: ! '[{"id":2,"kind":"company","full_name":"Another Test Contact","contact_name":"","street_line_1":"Kamiya
|
|
48
|
+
Kashin Ryu no Dojo","street_line_2":"","postal_code":"876-0854","city":"Tokyo","region":"Tokyo","country":"JP","phone_1":"","phone_2":"","fax":"","email":"","web":"","discount":null,"tax_id":"","language":"EN","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/2"},{"id":1,"kind":"company","full_name":"API
|
|
49
|
+
Test Contact","contact_name":"","street_line_1":"Evergreen Terrace","street_line_2":"","postal_code":"K0A
|
|
50
|
+
1B0","city":"Springfield","region":"Canada","country":"ES","phone_1":"","phone_2":"","fax":"","email":"dummy@email.test","web":"","discount":null,"tax_id":"","bank_account":"","language":"ES","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/1"},{"id":4,"kind":"company","full_name":"Test_OCP","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"US","phone_1":null,"phone_2":null,"fax":null,"email":"dont@stop.believing","web":null,"discount":null,"tax_id":null,"language":"EN","notes":null,"url":"http://localhost:3000/recrea/api/v1/contacts/4"},{"id":6,"kind":"company","full_name":"Test_Skynet","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"US","phone_1":null,"phone_2":null,"fax":null,"email":"my_little@po.ny","web":null,"discount":null,"tax_id":null,"language":"EN","notes":null,"url":"http://localhost:3000/recrea/api/v1/contacts/6"},{"id":3,"kind":"company","full_name":"TSM","contact_name":"Reginald","street_line_1":"","street_line_2":"","postal_code":"","city":"","region":"","country":"ES","phone_1":"","phone_2":"","fax":"","email":"reggie@tsm.com","web":"","discount":null,"tax_id":"","bank_account":"","language":"ES","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/3"}]'
|
|
46
51
|
http_version: '1.1'
|
|
47
|
-
recorded_at: Tue,
|
|
52
|
+
recorded_at: Tue, 04 Feb 2014 14:52:03 GMT
|
|
48
53
|
- request:
|
|
49
54
|
method: post
|
|
50
|
-
uri: http://
|
|
55
|
+
uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/invoices.json
|
|
51
56
|
body:
|
|
52
57
|
encoding: US-ASCII
|
|
53
|
-
string: contact_id=
|
|
58
|
+
string: contact_id=2&contact_name=Another%20Test%20Contact¤cy=EUR&items_attributes[][description]=Aircraft&items_attributes[][quantity]=1.0&items_attributes[][unit_price]=0.0&tags=tnt&payment_details=¬es=
|
|
54
59
|
headers:
|
|
55
60
|
authorization:
|
|
56
|
-
- Basic
|
|
61
|
+
- Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
|
|
57
62
|
response:
|
|
58
63
|
status:
|
|
59
64
|
code: 201
|
|
60
|
-
message: Created
|
|
65
|
+
message: ! 'Created '
|
|
61
66
|
headers:
|
|
62
67
|
x-ratelimit-limit:
|
|
63
|
-
- '
|
|
68
|
+
- '2000'
|
|
64
69
|
x-ratelimit-remaining:
|
|
65
|
-
- '
|
|
70
|
+
- '1877'
|
|
66
71
|
content-type:
|
|
67
72
|
- application/json; charset=utf-8
|
|
68
73
|
x-ua-compatible:
|
|
69
74
|
- IE=Edge
|
|
70
75
|
etag:
|
|
71
|
-
- ! '"
|
|
76
|
+
- ! '"7bc2297a76dca4a023b7943691818359"'
|
|
72
77
|
cache-control:
|
|
73
78
|
- max-age=0, private, must-revalidate
|
|
74
79
|
x-request-id:
|
|
75
|
-
-
|
|
80
|
+
- 87a69c480e0b8ddeb0a8448167cbf4d7
|
|
76
81
|
x-runtime:
|
|
77
|
-
- '0.
|
|
82
|
+
- '0.546841'
|
|
83
|
+
server:
|
|
84
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
|
|
85
|
+
date:
|
|
86
|
+
- Tue, 04 Feb 2014 14:52:03 GMT
|
|
87
|
+
content-length:
|
|
88
|
+
- '726'
|
|
78
89
|
connection:
|
|
79
90
|
- close
|
|
80
|
-
|
|
81
|
-
-
|
|
91
|
+
set-cookie:
|
|
92
|
+
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTg4YjdkNjUxYzU5MGFkN2FlYmNhYWRhNDk5ODhiZmZmBjsAVA%3D%3D--19a8a50ecb9e4730b4e0a8318502ecbc9899ab49;
|
|
93
|
+
path=/; HttpOnly
|
|
82
94
|
body:
|
|
83
95
|
encoding: US-ASCII
|
|
84
|
-
string: ! '{"id":
|
|
96
|
+
string: ! '{"id":26,"number":"0000004","issue_date":"2014-02-04","contact":{"id":2,"full_name":"Another
|
|
97
|
+
Test Contact"},"po_number":null,"due_date":null,"currency":"EUR","items":[{"description":"Aircraft","quantity":"1.0","unit_price":"0.0","discount_rate":"0.0","tax_1_name":null,"tax_1_rate":null,"tax_2_name":null,"tax_2_rate":null,"reference":null,"subtotal":"0.00
|
|
98
|
+
\u20ac","discount":"0.00 \u20ac","gross_amount":"0.00 \u20ac"}],"subtotal":"0.00
|
|
99
|
+
\u20ac","discount":"0.00 \u20ac","taxes":[],"total":"0.00 \u20ac","payments":[],"payment_details":"","notes":"","state":"draft","tag_list":[],"permalink":"http://localhost:3000/invoice/7c7e1d53dc05054314494fd2af947f8072ffa0e2","url":"http://localhost:3000/recrea/api/v1/invoices/26.json"}'
|
|
85
100
|
http_version: '1.1'
|
|
86
|
-
recorded_at: Tue,
|
|
101
|
+
recorded_at: Tue, 04 Feb 2014 14:52:03 GMT
|
|
87
102
|
- request:
|
|
88
103
|
method: delete
|
|
89
|
-
uri: http://
|
|
104
|
+
uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/invoices/26.json
|
|
90
105
|
body:
|
|
91
106
|
encoding: US-ASCII
|
|
92
107
|
string: ''
|
|
93
108
|
headers:
|
|
94
109
|
authorization:
|
|
95
|
-
- Basic
|
|
110
|
+
- Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
|
|
96
111
|
response:
|
|
97
112
|
status:
|
|
98
113
|
code: 204
|
|
99
|
-
message: No Content
|
|
114
|
+
message: ! 'No Content '
|
|
100
115
|
headers:
|
|
101
116
|
x-ratelimit-limit:
|
|
102
|
-
- '
|
|
117
|
+
- '2000'
|
|
103
118
|
x-ratelimit-remaining:
|
|
104
|
-
- '
|
|
119
|
+
- '1876'
|
|
105
120
|
x-ua-compatible:
|
|
106
121
|
- IE=Edge
|
|
107
122
|
cache-control:
|
|
108
123
|
- no-cache
|
|
109
|
-
set-cookie:
|
|
110
|
-
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTU0MzcwZjQwZjJmYWUyY2E4NjU0N2FiMTgyZDlmODc0BjsAVA%3D%3D--30459a2c1db61ac4784fecb3df88fcca70f4a2c9;
|
|
111
|
-
path=/; HttpOnly
|
|
112
124
|
x-request-id:
|
|
113
|
-
-
|
|
125
|
+
- 22a79cc05df0d53ba20070d2a886fcbd
|
|
114
126
|
x-runtime:
|
|
115
|
-
- '0.
|
|
127
|
+
- '0.443906'
|
|
128
|
+
server:
|
|
129
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
|
|
130
|
+
date:
|
|
131
|
+
- Tue, 04 Feb 2014 14:52:04 GMT
|
|
116
132
|
connection:
|
|
117
133
|
- close
|
|
118
|
-
|
|
119
|
-
-
|
|
134
|
+
set-cookie:
|
|
135
|
+
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTI5Njk0NTVlNmM0ZDRjOGQxY2ZhNzgxYWYyNjgxNDJjBjsAVA%3D%3D--84955ffd1b7a0ac548669370716ea00f3147225c;
|
|
136
|
+
path=/; HttpOnly
|
|
120
137
|
body:
|
|
121
138
|
encoding: US-ASCII
|
|
122
139
|
string: ''
|
|
123
140
|
http_version: '1.1'
|
|
124
|
-
recorded_at: Tue,
|
|
141
|
+
recorded_at: Tue, 04 Feb 2014 14:52:04 GMT
|
|
125
142
|
- request:
|
|
126
143
|
method: get
|
|
127
|
-
uri: http://
|
|
144
|
+
uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/invoices.json
|
|
128
145
|
body:
|
|
129
146
|
encoding: US-ASCII
|
|
130
147
|
string: ''
|
|
131
148
|
headers:
|
|
132
149
|
authorization:
|
|
133
|
-
- Basic
|
|
150
|
+
- Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
|
|
134
151
|
response:
|
|
135
152
|
status:
|
|
136
153
|
code: 200
|
|
137
|
-
message: OK
|
|
154
|
+
message: ! 'OK '
|
|
138
155
|
headers:
|
|
139
156
|
x-ratelimit-limit:
|
|
140
|
-
- '
|
|
157
|
+
- '2000'
|
|
141
158
|
x-ratelimit-remaining:
|
|
142
|
-
- '
|
|
159
|
+
- '1875'
|
|
160
|
+
x-pages-currentpage:
|
|
161
|
+
- '1'
|
|
162
|
+
x-pages-totalpages:
|
|
163
|
+
- '1'
|
|
143
164
|
content-type:
|
|
144
165
|
- application/json; charset=utf-8
|
|
145
166
|
x-ua-compatible:
|
|
146
167
|
- IE=Edge
|
|
147
168
|
etag:
|
|
148
|
-
- ! '"
|
|
169
|
+
- ! '"53fc8e14c11dee1f0727271327376f21"'
|
|
149
170
|
cache-control:
|
|
150
171
|
- max-age=0, private, must-revalidate
|
|
151
172
|
x-request-id:
|
|
152
|
-
-
|
|
173
|
+
- cd43e91e94c9ab4289cbc93e26f566e3
|
|
153
174
|
x-runtime:
|
|
154
|
-
- '
|
|
175
|
+
- '0.530425'
|
|
176
|
+
server:
|
|
177
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
|
|
178
|
+
date:
|
|
179
|
+
- Tue, 04 Feb 2014 14:52:04 GMT
|
|
180
|
+
content-length:
|
|
181
|
+
- '2818'
|
|
155
182
|
connection:
|
|
156
183
|
- close
|
|
157
|
-
server:
|
|
158
|
-
- thin 1.5.0 codename Knife
|
|
159
184
|
body:
|
|
160
185
|
encoding: US-ASCII
|
|
161
|
-
string: ! '[{"id":
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
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
|
|
178
|
-
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"}]'
|
|
186
|
+
string: ! '[{"id":3,"number":"0000003","issue_date":"2014-02-04","contact":{"id":2,"full_name":"Another
|
|
187
|
+
Test Contact"},"po_number":"","due_date":null,"currency":"EUR","items":[{"description":"Free
|
|
188
|
+
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
|
|
189
|
+
\u20ac","discount":"0.00 \u20ac","gross_amount":"0.00 \u20ac"},{"description":"Pizza
|
|
190
|
+
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
|
|
191
|
+
\u20ac","discount":"0.00 \u20ac","gross_amount":"30.00 \u20ac"}],"subtotal":"30.00
|
|
192
|
+
\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
|
|
193
|
+
\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
|
|
194
|
+
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
|
|
195
|
+
\u20ac","discount":"0.00 \u20ac","gross_amount":"200.00 \u20ac"}],"subtotal":"200.00
|
|
196
|
+
\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
|
|
197
|
+
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
|
|
198
|
+
\u20ac","discount":"0.00 \u20ac","gross_amount":"10.00 \u20ac"},{"description":"Free
|
|
199
|
+
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
|
|
200
|
+
\u20ac","discount":"0.00 \u20ac","gross_amount":"0.00 \u20ac"}],"subtotal":"10.00
|
|
201
|
+
\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"}]'
|
|
179
202
|
http_version: '1.1'
|
|
180
|
-
recorded_at: Tue,
|
|
203
|
+
recorded_at: Tue, 04 Feb 2014 14:52:04 GMT
|
|
181
204
|
recorded_with: VCR 2.3.0
|
|
@@ -2,118 +2,130 @@
|
|
|
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
|
+
- '1861'
|
|
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
|
+
- ! '"651cd49db028a8999f68f2b9be0eeb35"'
|
|
27
27
|
cache-control:
|
|
28
28
|
- max-age=0, private, must-revalidate
|
|
29
29
|
x-request-id:
|
|
30
|
-
-
|
|
30
|
+
- 24285e882deb4022ad29869ae6853333
|
|
31
31
|
x-runtime:
|
|
32
|
-
- '0.
|
|
32
|
+
- '0.205742'
|
|
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
|
+
- '568'
|
|
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"},{"id":4,"code":"000000","name":"Test_Skynet","unit_cost":"21.0","url":"http://localhost:3000/recrea/api/v1/items/4"}]'
|
|
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: delete
|
|
44
|
-
uri: http://
|
|
49
|
+
uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/items/4.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: 204
|
|
54
|
-
message: No Content
|
|
59
|
+
message: ! 'No Content '
|
|
55
60
|
headers:
|
|
56
61
|
x-ratelimit-limit:
|
|
57
|
-
- '
|
|
62
|
+
- '2000'
|
|
58
63
|
x-ratelimit-remaining:
|
|
59
|
-
- '
|
|
64
|
+
- '1860'
|
|
60
65
|
x-ua-compatible:
|
|
61
66
|
- IE=Edge
|
|
62
67
|
cache-control:
|
|
63
68
|
- no-cache
|
|
64
|
-
set-cookie:
|
|
65
|
-
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWM2YTk0ZGFhODAyZTA2OTcyNmQzY2RmZjc4OGY1MTdmBjsAVA%3D%3D--a1dce25100b1ff99b6e7eb6a1c7ffed12c0c35d7;
|
|
66
|
-
path=/; HttpOnly
|
|
67
69
|
x-request-id:
|
|
68
|
-
-
|
|
70
|
+
- c110b71facae138b439318e17d0f51b3
|
|
69
71
|
x-runtime:
|
|
70
|
-
- '0.
|
|
72
|
+
- '0.371695'
|
|
73
|
+
server:
|
|
74
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
|
|
75
|
+
date:
|
|
76
|
+
- Tue, 04 Feb 2014 14:52:21 GMT
|
|
71
77
|
connection:
|
|
72
78
|
- close
|
|
73
|
-
|
|
74
|
-
-
|
|
79
|
+
set-cookie:
|
|
80
|
+
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWY2ZmYyNGU5ODY2N2Q2NTBhYzM0NWI5ZDM1OTZmYjhlBjsAVA%3D%3D--616af23580a575a6a1544590d598f24a3b852660;
|
|
81
|
+
path=/; HttpOnly
|
|
75
82
|
body:
|
|
76
83
|
encoding: US-ASCII
|
|
77
84
|
string: ''
|
|
78
85
|
http_version: '1.1'
|
|
79
|
-
recorded_at: Tue,
|
|
86
|
+
recorded_at: Tue, 04 Feb 2014 14:52:21 GMT
|
|
80
87
|
- request:
|
|
81
88
|
method: get
|
|
82
|
-
uri: http://
|
|
89
|
+
uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/items.json
|
|
83
90
|
body:
|
|
84
91
|
encoding: US-ASCII
|
|
85
92
|
string: ''
|
|
86
93
|
headers:
|
|
87
94
|
authorization:
|
|
88
|
-
- Basic
|
|
95
|
+
- Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
|
|
89
96
|
response:
|
|
90
97
|
status:
|
|
91
98
|
code: 200
|
|
92
|
-
message: OK
|
|
99
|
+
message: ! 'OK '
|
|
93
100
|
headers:
|
|
94
101
|
x-ratelimit-limit:
|
|
95
|
-
- '
|
|
102
|
+
- '2000'
|
|
96
103
|
x-ratelimit-remaining:
|
|
97
|
-
- '
|
|
104
|
+
- '1859'
|
|
98
105
|
content-type:
|
|
99
106
|
- application/json; charset=utf-8
|
|
100
107
|
x-ua-compatible:
|
|
101
108
|
- IE=Edge
|
|
102
109
|
etag:
|
|
103
|
-
- ! '"
|
|
110
|
+
- ! '"bcea0893565ac5c95d5dae6164a7cad8"'
|
|
104
111
|
cache-control:
|
|
105
112
|
- max-age=0, private, must-revalidate
|
|
106
113
|
x-request-id:
|
|
107
|
-
-
|
|
114
|
+
- 73c4cac53551363d68526fab7adaf410
|
|
108
115
|
x-runtime:
|
|
109
|
-
- '0.
|
|
116
|
+
- '0.159657'
|
|
117
|
+
server:
|
|
118
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
|
|
119
|
+
date:
|
|
120
|
+
- Tue, 04 Feb 2014 14:52:21 GMT
|
|
121
|
+
content-length:
|
|
122
|
+
- '451'
|
|
110
123
|
connection:
|
|
111
124
|
- close
|
|
112
|
-
server:
|
|
113
|
-
- thin 1.5.0 codename Knife
|
|
114
125
|
body:
|
|
115
126
|
encoding: US-ASCII
|
|
116
|
-
string: ! '[{"id":
|
|
127
|
+
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
|
|
128
|
+
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"}]'
|
|
117
129
|
http_version: '1.1'
|
|
118
|
-
recorded_at: Tue,
|
|
130
|
+
recorded_at: Tue, 04 Feb 2014 14:52:21 GMT
|
|
119
131
|
recorded_with: VCR 2.3.0
|