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,163 +2,188 @@
|
|
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
|
+
- '1887'
|
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
|
+
- 29025999734fba04a0e291447e4a58d1
|
31
35
|
x-runtime:
|
32
|
-
- '0.
|
36
|
+
- '0.387962'
|
37
|
+
server:
|
38
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
|
39
|
+
date:
|
40
|
+
- Tue, 04 Feb 2014 14:51:00 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:51:00 GMT
|
48
53
|
- request:
|
49
54
|
method: post
|
50
|
-
uri: http://
|
55
|
+
uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/expenses.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
|
+
- '1886'
|
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
|
+
- ! '"000799480ef6252f9bbb0794a8413539"'
|
72
77
|
cache-control:
|
73
78
|
- max-age=0, private, must-revalidate
|
74
79
|
x-request-id:
|
75
|
-
-
|
80
|
+
- bfa4fc1f5240471684a3ae727f6cdba7
|
76
81
|
x-runtime:
|
77
|
-
- '0.
|
82
|
+
- '0.517316'
|
83
|
+
server:
|
84
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
|
85
|
+
date:
|
86
|
+
- Tue, 04 Feb 2014 14:51:01 GMT
|
87
|
+
content-length:
|
88
|
+
- '605'
|
78
89
|
connection:
|
79
90
|
- close
|
80
|
-
|
81
|
-
-
|
91
|
+
set-cookie:
|
92
|
+
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTQ2OWE0YTM4ZTQwYmRlMmIzOTEwMTk3N2YzMzNlMjQ1BjsAVA%3D%3D--360ff4faec32cd827f11d2c5b911928cabd375ef;
|
93
|
+
path=/; HttpOnly
|
82
94
|
body:
|
83
95
|
encoding: US-ASCII
|
84
|
-
string: ! '{"id":
|
96
|
+
string: ! '{"id":24,"number":null,"issue_date":"2014-02-04","contact":{"id":2,"full_name":"Another
|
97
|
+
Test Contact"},"po_number":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":[],"notes":"","state":"outstanding","tag_list":[],"url":"http://localhost:3000/recrea/api/v1/expenses/24.json"}'
|
85
100
|
http_version: '1.1'
|
86
|
-
recorded_at: Tue,
|
101
|
+
recorded_at: Tue, 04 Feb 2014 14:51:01 GMT
|
87
102
|
- request:
|
88
103
|
method: put
|
89
|
-
uri: http://
|
104
|
+
uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/expenses/24.json
|
90
105
|
body:
|
91
106
|
encoding: US-ASCII
|
92
107
|
string: currency=USD
|
93
108
|
headers:
|
94
109
|
authorization:
|
95
|
-
- Basic
|
110
|
+
- Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
|
96
111
|
response:
|
97
112
|
status:
|
98
113
|
code: 200
|
99
|
-
message: OK
|
114
|
+
message: ! 'OK '
|
100
115
|
headers:
|
101
116
|
x-ratelimit-limit:
|
102
|
-
- '
|
117
|
+
- '2000'
|
103
118
|
x-ratelimit-remaining:
|
104
|
-
- '
|
119
|
+
- '1885'
|
105
120
|
content-type:
|
106
121
|
- application/json; charset=utf-8
|
107
122
|
x-ua-compatible:
|
108
123
|
- IE=Edge
|
109
124
|
etag:
|
110
|
-
- ! '"
|
125
|
+
- ! '"ede1d4408f1255c9a69ce2da2c007b57"'
|
111
126
|
cache-control:
|
112
127
|
- max-age=0, private, must-revalidate
|
113
128
|
x-request-id:
|
114
|
-
-
|
129
|
+
- 1eb769ff8a4caec09ba27d3702f74eed
|
115
130
|
x-runtime:
|
116
|
-
- '0.
|
131
|
+
- '0.520760'
|
132
|
+
server:
|
133
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
|
134
|
+
date:
|
135
|
+
- Tue, 04 Feb 2014 14:51:01 GMT
|
136
|
+
content-length:
|
137
|
+
- '569'
|
117
138
|
connection:
|
118
139
|
- close
|
119
|
-
|
120
|
-
-
|
140
|
+
set-cookie:
|
141
|
+
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTY0MjZiNzc5NTVlYTllMzI3MzYyOTFhNGYxOTc3ZjI2BjsAVA%3D%3D--9dd57a92cb88ee4d6bd567907c24846c300d0558;
|
142
|
+
path=/; HttpOnly
|
121
143
|
body:
|
122
144
|
encoding: US-ASCII
|
123
|
-
string: ! '{"id":
|
145
|
+
string: ! '{"id":24,"number":null,"issue_date":"2014-02-04","contact":{"id":2,"full_name":"Another
|
146
|
+
Test Contact"},"po_number":null,"currency":"USD","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","discount":"$0.00","gross_amount":"$0.00"}],"subtotal":"$0.00","discount":"$0.00","taxes":[],"total":"$0.00","payments":[],"notes":"","state":"outstanding","tag_list":[],"url":"http://localhost:3000/recrea/api/v1/expenses/24.json"}'
|
124
147
|
http_version: '1.1'
|
125
|
-
recorded_at: Tue,
|
148
|
+
recorded_at: Tue, 04 Feb 2014 14:51:01 GMT
|
126
149
|
- request:
|
127
150
|
method: delete
|
128
|
-
uri: http://
|
151
|
+
uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/expenses/24.json
|
129
152
|
body:
|
130
153
|
encoding: US-ASCII
|
131
154
|
string: ''
|
132
155
|
headers:
|
133
156
|
authorization:
|
134
|
-
- Basic
|
157
|
+
- Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
|
135
158
|
response:
|
136
159
|
status:
|
137
160
|
code: 204
|
138
|
-
message: No Content
|
161
|
+
message: ! 'No Content '
|
139
162
|
headers:
|
140
163
|
x-ratelimit-limit:
|
141
|
-
- '
|
164
|
+
- '2000'
|
142
165
|
x-ratelimit-remaining:
|
143
|
-
- '
|
166
|
+
- '1884'
|
144
167
|
x-ua-compatible:
|
145
168
|
- IE=Edge
|
146
169
|
cache-control:
|
147
170
|
- no-cache
|
148
|
-
set-cookie:
|
149
|
-
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTA4M2U4ODg5YzkzOGQxYjc4ZTM1NTg2Njk0YmEzNTM4BjsAVA%3D%3D--638ac95832e51a065f0a089629ed6f939fdcf122;
|
150
|
-
path=/; HttpOnly
|
151
171
|
x-request-id:
|
152
|
-
-
|
172
|
+
- d1136600dba0b6d99c8f02660ffd1608
|
153
173
|
x-runtime:
|
154
|
-
- '0.
|
174
|
+
- '0.482913'
|
175
|
+
server:
|
176
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
|
177
|
+
date:
|
178
|
+
- Tue, 04 Feb 2014 14:51:02 GMT
|
155
179
|
connection:
|
156
180
|
- close
|
157
|
-
|
158
|
-
-
|
181
|
+
set-cookie:
|
182
|
+
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTc1OTk3YzFlMTYzN2U3YjcxOGQ0MGI1MzcyNDA0NGJlBjsAVA%3D%3D--cd501adf30494b6e6a0853a6604710ef1b7048d4;
|
183
|
+
path=/; HttpOnly
|
159
184
|
body:
|
160
185
|
encoding: US-ASCII
|
161
186
|
string: ''
|
162
187
|
http_version: '1.1'
|
163
|
-
recorded_at: Tue,
|
188
|
+
recorded_at: Tue, 04 Feb 2014 14:51:02 GMT
|
164
189
|
recorded_with: VCR 2.3.0
|
@@ -2,164 +2,191 @@
|
|
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
|
+
- '1866'
|
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
|
+
- 345cb45249c985c31edc3ca544815743
|
31
35
|
x-runtime:
|
32
|
-
- '0.
|
36
|
+
- '0.401254'
|
37
|
+
server:
|
38
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
|
39
|
+
date:
|
40
|
+
- Tue, 04 Feb 2014 14:52:09 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:09 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
|
+
- '1865'
|
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
|
+
- ! '"cc4f2831d3a2588246f65bfc0887706c"'
|
72
77
|
cache-control:
|
73
78
|
- max-age=0, private, must-revalidate
|
74
79
|
x-request-id:
|
75
|
-
-
|
80
|
+
- bd2ee25b1dca88d52244349fd140b954
|
76
81
|
x-runtime:
|
77
|
-
- '0.
|
82
|
+
- '0.542478'
|
83
|
+
server:
|
84
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
|
85
|
+
date:
|
86
|
+
- Tue, 04 Feb 2014 14:52:09 GMT
|
87
|
+
content-length:
|
88
|
+
- '726'
|
78
89
|
connection:
|
79
90
|
- close
|
80
|
-
|
81
|
-
-
|
91
|
+
set-cookie:
|
92
|
+
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTdhN2MyOTg0ZTE3NDIwODBlZmMzY2NlODQ2NjgwYzk5BjsAVA%3D%3D--6dec022a548149bc33396be8edd98384baf2058c;
|
93
|
+
path=/; HttpOnly
|
82
94
|
body:
|
83
95
|
encoding: US-ASCII
|
84
|
-
string: ! '{"id":
|
96
|
+
string: ! '{"id":27,"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/83f26b93d512dc5ecc55679a8fd1a7f9df4228b3","url":"http://localhost:3000/recrea/api/v1/invoices/27.json"}'
|
85
100
|
http_version: '1.1'
|
86
|
-
recorded_at: Tue,
|
101
|
+
recorded_at: Tue, 04 Feb 2014 14:52:09 GMT
|
87
102
|
- request:
|
88
103
|
method: put
|
89
|
-
uri: http://
|
104
|
+
uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/invoices/27.json
|
90
105
|
body:
|
91
106
|
encoding: US-ASCII
|
92
107
|
string: payment_details=Show%20me%20the%20moneeeeeeeyy!!!!
|
93
108
|
headers:
|
94
109
|
authorization:
|
95
|
-
- Basic
|
110
|
+
- Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
|
96
111
|
response:
|
97
112
|
status:
|
98
113
|
code: 200
|
99
|
-
message: OK
|
114
|
+
message: ! 'OK '
|
100
115
|
headers:
|
101
116
|
x-ratelimit-limit:
|
102
|
-
- '
|
117
|
+
- '2000'
|
103
118
|
x-ratelimit-remaining:
|
104
|
-
- '
|
119
|
+
- '1864'
|
105
120
|
content-type:
|
106
121
|
- application/json; charset=utf-8
|
107
122
|
x-ua-compatible:
|
108
123
|
- IE=Edge
|
109
124
|
etag:
|
110
|
-
- ! '"
|
125
|
+
- ! '"0dbc81a9e537d331041720e63e35817a"'
|
111
126
|
cache-control:
|
112
127
|
- max-age=0, private, must-revalidate
|
113
128
|
x-request-id:
|
114
|
-
-
|
129
|
+
- e618a04d01f9e3408389a35c1ebf065c
|
115
130
|
x-runtime:
|
116
|
-
- '0.
|
131
|
+
- '0.527183'
|
132
|
+
server:
|
133
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
|
134
|
+
date:
|
135
|
+
- Tue, 04 Feb 2014 14:52:10 GMT
|
136
|
+
content-length:
|
137
|
+
- '754'
|
117
138
|
connection:
|
118
139
|
- close
|
119
|
-
|
120
|
-
-
|
140
|
+
set-cookie:
|
141
|
+
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWFmY2I5MGVhYzgwOGUwM2IzNjY2Y2UzNjBhZWM4ZmRhBjsAVA%3D%3D--c73bca816c699aa3ef1b94d6660f79d9a73859db;
|
142
|
+
path=/; HttpOnly
|
121
143
|
body:
|
122
144
|
encoding: US-ASCII
|
123
|
-
string: ! '{"id":
|
124
|
-
|
145
|
+
string: ! '{"id":27,"number":"0000004","issue_date":"2014-02-04","contact":{"id":2,"full_name":"Another
|
146
|
+
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
|
147
|
+
\u20ac","discount":"0.00 \u20ac","gross_amount":"0.00 \u20ac"}],"subtotal":"0.00
|
148
|
+
\u20ac","discount":"0.00 \u20ac","taxes":[],"total":"0.00 \u20ac","payments":[],"payment_details":"Show
|
149
|
+
me the moneeeeeeeyy!!!!","notes":"","state":"draft","tag_list":[],"permalink":"http://localhost:3000/invoice/83f26b93d512dc5ecc55679a8fd1a7f9df4228b3","url":"http://localhost:3000/recrea/api/v1/invoices/27.json"}'
|
125
150
|
http_version: '1.1'
|
126
|
-
recorded_at: Tue,
|
151
|
+
recorded_at: Tue, 04 Feb 2014 14:52:10 GMT
|
127
152
|
- request:
|
128
153
|
method: delete
|
129
|
-
uri: http://
|
154
|
+
uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/invoices/27.json
|
130
155
|
body:
|
131
156
|
encoding: US-ASCII
|
132
157
|
string: ''
|
133
158
|
headers:
|
134
159
|
authorization:
|
135
|
-
- Basic
|
160
|
+
- Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
|
136
161
|
response:
|
137
162
|
status:
|
138
163
|
code: 204
|
139
|
-
message: No Content
|
164
|
+
message: ! 'No Content '
|
140
165
|
headers:
|
141
166
|
x-ratelimit-limit:
|
142
|
-
- '
|
167
|
+
- '2000'
|
143
168
|
x-ratelimit-remaining:
|
144
|
-
- '
|
169
|
+
- '1863'
|
145
170
|
x-ua-compatible:
|
146
171
|
- IE=Edge
|
147
172
|
cache-control:
|
148
173
|
- no-cache
|
149
|
-
set-cookie:
|
150
|
-
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTYwMjgwMDI3ODY2MjVlMGQ4ZDgwMzZiYjQ0MDE2ZTRmBjsAVA%3D%3D--f94367eafb8c4e2c5080c99f55ee94d9ecce98a9;
|
151
|
-
path=/; HttpOnly
|
152
174
|
x-request-id:
|
153
|
-
-
|
175
|
+
- 10616d8bc4d421d3b3e5cd3c2b5ba4e0
|
154
176
|
x-runtime:
|
155
|
-
- '0.
|
177
|
+
- '0.485066'
|
178
|
+
server:
|
179
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
|
180
|
+
date:
|
181
|
+
- Tue, 04 Feb 2014 14:52:10 GMT
|
156
182
|
connection:
|
157
183
|
- close
|
158
|
-
|
159
|
-
-
|
184
|
+
set-cookie:
|
185
|
+
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWViODIxYzdiYjc0MjJkMTc2M2ExYjEwMzYyYWY0YmVlBjsAVA%3D%3D--0c48857750fe76399b44dff940804e012c167b86;
|
186
|
+
path=/; HttpOnly
|
160
187
|
body:
|
161
188
|
encoding: US-ASCII
|
162
189
|
string: ''
|
163
190
|
http_version: '1.1'
|
164
|
-
recorded_at: Tue,
|
191
|
+
recorded_at: Tue, 04 Feb 2014 14:52:10 GMT
|
165
192
|
recorded_with: VCR 2.3.0
|