quaderno 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. data/README.md +1 -1
  2. data/VERSION +1 -1
  3. data/build_install.sh +2 -2
  4. data/lib/quaderno-ruby/behavior/crud.rb +7 -3
  5. data/lib/quaderno-ruby/document_item.rb +4 -0
  6. data/lib/quaderno-ruby/item.rb +6 -2
  7. data/lib/quaderno-ruby.rb +1 -1
  8. data/quaderno-1.0.0.gem +0 -0
  9. data/{quaderno-ruby.gemspec → quaderno.gemspec} +14 -6
  10. data/test/fixtures/quaderno_cassettes/all_contacts.yml +14 -12
  11. data/test/fixtures/quaderno_cassettes/all_estimates.yml +14 -10
  12. data/test/fixtures/quaderno_cassettes/all_expenses.yml +14 -10
  13. data/test/fixtures/quaderno_cassettes/all_invoices.yml +25 -10
  14. data/test/fixtures/quaderno_cassettes/all_items.yml +42 -0
  15. data/test/fixtures/quaderno_cassettes/deleted_contact.yml +75 -31
  16. data/test/fixtures/quaderno_cassettes/deleted_estimate.yml +74 -27
  17. data/test/fixtures/quaderno_cassettes/deleted_expense.yml +74 -27
  18. data/test/fixtures/quaderno_cassettes/deleted_invoice.yml +85 -28
  19. data/test/fixtures/quaderno_cassettes/deleted_item.yml +119 -0
  20. data/test/fixtures/quaderno_cassettes/delivered_estimate.yml +30 -29
  21. data/test/fixtures/quaderno_cassettes/delivered_invoice.yml +41 -29
  22. data/test/fixtures/quaderno_cassettes/found_contact.yml +22 -22
  23. data/test/fixtures/quaderno_cassettes/found_estimate.yml +24 -20
  24. data/test/fixtures/quaderno_cassettes/found_expense.yml +22 -20
  25. data/test/fixtures/quaderno_cassettes/found_invoice.yml +34 -20
  26. data/test/fixtures/quaderno_cassettes/found_item.yml +81 -0
  27. data/test/fixtures/quaderno_cassettes/new_contact.yml +10 -12
  28. data/test/fixtures/quaderno_cassettes/new_estimate.yml +63 -25
  29. data/test/fixtures/quaderno_cassettes/new_expense.yml +77 -35
  30. data/test/fixtures/quaderno_cassettes/new_invoice.yml +63 -25
  31. data/test/fixtures/quaderno_cassettes/new_item.yml +42 -0
  32. data/test/fixtures/quaderno_cassettes/paid_expense.yml +25 -23
  33. data/test/fixtures/quaderno_cassettes/paid_invoice.yml +36 -24
  34. data/test/fixtures/quaderno_cassettes/rate_limit.yml +6 -8
  35. data/test/fixtures/quaderno_cassettes/unpay_an_expense.yml +32 -30
  36. data/test/fixtures/quaderno_cassettes/unpay_an_invoice.yml +43 -30
  37. data/test/fixtures/quaderno_cassettes/updated_contact.yml +22 -22
  38. data/test/fixtures/quaderno_cassettes/updated_estimate.yml +100 -21
  39. data/test/fixtures/quaderno_cassettes/updated_expense.yml +99 -20
  40. data/test/fixtures/quaderno_cassettes/updated_invoice.yml +100 -21
  41. data/test/fixtures/quaderno_cassettes/updated_item.yml +81 -0
  42. data/test/unit/test_quaderno_contacts.rb +5 -4
  43. data/test/unit/test_quaderno_estimates.rb +37 -9
  44. data/test/unit/test_quaderno_expenses.rb +38 -14
  45. data/test/unit/test_quaderno_invoices.rb +40 -12
  46. data/test/unit/test_quaderno_items.rb +82 -0
  47. metadata +12 -4
@@ -1,14 +1,53 @@
1
1
  ---
2
2
  http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://n8sDLUZ5z1d6dYXKixnx@localhost:3000/recrea/api/v1/contacts.json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: kind=company&first_name=Z%2C%20Mazinger%20Z&email=koji%40kabuto.ftw
9
+ headers:
10
+ authorization:
11
+ - Basic bjhzRExVWjV6MWQ2ZFlYS2l4bng6
12
+ response:
13
+ status:
14
+ code: 201
15
+ message: Created
16
+ headers:
17
+ x-ratelimit-limit:
18
+ - '1000'
19
+ x-ratelimit-remaining:
20
+ - '900'
21
+ content-type:
22
+ - application/json; charset=utf-8
23
+ x-ua-compatible:
24
+ - IE=Edge
25
+ etag:
26
+ - ! '"30b684fd1d369bc6f2cdb3160ef9a310"'
27
+ cache-control:
28
+ - max-age=0, private, must-revalidate
29
+ x-request-id:
30
+ - 4d5e9cb89295534e9b0d6f0bacde838a
31
+ x-runtime:
32
+ - '0.416450'
33
+ connection:
34
+ - close
35
+ server:
36
+ - thin 1.5.0 codename Knife
37
+ body:
38
+ encoding: US-ASCII
39
+ string: ! '{"id":16,"kind":"company","full_name":"Z, Mazinger Z","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":"koji@kabuto.ftw","web":null,"discount":null,"tax_id":null,"language":"EN","notes":null,"url":"http://localhost:3000/recrea/api/v1/contacts/16"}'
40
+ http_version: '1.1'
41
+ recorded_at: Tue, 14 May 2013 10:47:49 GMT
3
42
  - request:
4
43
  method: get
5
- uri: http://xiZvifX5hwsxAiymYPk2@localhost:3000/recrea/api/v1/contacts.json
44
+ uri: http://n8sDLUZ5z1d6dYXKixnx@localhost:3000/recrea/api/v1/contacts.json
6
45
  body:
7
46
  encoding: US-ASCII
8
47
  string: ''
9
48
  headers:
10
49
  authorization:
11
- - Basic eGladmlmWDVod3N4QWl5bVlQazI6
50
+ - Basic bjhzRExVWjV6MWQ2ZFlYS2l4bng6
12
51
  response:
13
52
  status:
14
53
  code: 200
@@ -17,41 +56,44 @@ http_interactions:
17
56
  x-ratelimit-limit:
18
57
  - '1000'
19
58
  x-ratelimit-remaining:
20
- - '452'
59
+ - '899'
21
60
  content-type:
22
61
  - application/json; charset=utf-8
23
62
  x-ua-compatible:
24
63
  - IE=Edge
25
64
  etag:
26
- - ! '"18a8179fb8c19a3c225cb4f0a7d69326"'
65
+ - ! '"586be2fb3a91bdc46baa409358b73e83"'
27
66
  cache-control:
28
67
  - max-age=0, private, must-revalidate
29
68
  x-request-id:
30
- - a2d65da763fdfe9c237afa846ae56ee3
69
+ - 596deca61d512f97f30aaf6ee3538c09
31
70
  x-runtime:
32
- - '0.073623'
33
- content-length:
34
- - '4919'
71
+ - '0.138780'
35
72
  connection:
36
73
  - close
37
74
  server:
38
75
  - thin 1.5.0 codename Knife
39
76
  body:
40
77
  encoding: US-ASCII
41
- string: ! '[{"id":"50a23cb22f412eae4f000003","kind":"company","full_name":"100-499","contact_name":"","street_line_1":"Evergreen
42
- Terrace","street_line_2":"","postal_code":"K0A 1B0","city":"Springfield","region":"Canada","country":"CA","phone_1":"3447277","phone_2":"3447277","fax":"","email":"vidadelaempresa@gmail.com","web":"","discount":null,"tax_id":"","language":"EN","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/50a23cb22f412eae4f000003"},{"id":"50a0d1eb2f412e58a700000b","kind":"company","full_name":"ACME","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/50a0d1eb2f412e58a700000b"},{"id":"50acb2b72f412eda52000041","kind":"company","full_name":"Tei","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/50acb2b72f412eda52000041"},{"id":"50a21c9e2f412e1a68000026","kind":"company","full_name":"Test_OCP","contact_name":"","street_line_1":"","street_line_2":"","postal_code":"","city":"","region":"","country":"US","phone_1":"","phone_2":"","fax":"","email":"dont@stop.believing","web":"","discount":null,"tax_id":"","language":"EN","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/50a21c9e2f412e1a68000026"},{"id":"50a0f5612f412ef720000019","kind":"company","full_name":"Test_OCP","contact_name":null,"street_line_1":"Evergreen
43
- Terrace","street_line_2":"","postal_code":"K0A 1B0","city":"Springfield","region":"Canada","country":"CA","phone_1":"3447277","phone_2":null,"fax":null,"email":"dont@stop.believing","web":"","discount":null,"tax_id":"","language":"ES","notes":null,"url":"http://localhost:3000/recrea/api/v1/contacts/50a0f5612f412ef720000019"},{"id":"50aa3de82f412ec2ab000014","kind":"person","first_name":"Test_OCP","last_name":"","full_name":"Test_OCP","street_line_1":"","street_line_2":"","postal_code":"","city":"","region":"","country":"US","phone_1":"","phone_2":"","fax":"","email":"dont@stop.believing","web":"","discount":null,"tax_id":"","language":"EN","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/50aa3de82f412ec2ab000014"},{"id":"50aa3e162f412ec2ab000019","kind":"company","full_name":"Test_OCP","contact_name":"","street_line_1":"","street_line_2":"","postal_code":"","city":"","region":"","country":"US","phone_1":"","phone_2":"","fax":"","email":"dont@stop.believing","web":"","discount":null,"tax_id":"","language":"EN","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/50aa3e162f412ec2ab000019"},{"id":"50a21bf72f412e1a68000017","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/50a21bf72f412e1a68000017"},{"id":"50a0d2e82f412e15bf000004","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/50a0d2e82f412e15bf000004"},{"id":"50acc9842f412eda52000068","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/50acc9842f412eda52000068"},{"id":"50adf2612f412ec281000027","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/50adf2612f412ec281000027"},{"id":"50acb16e2f412eda5200003e","kind":"person","first_name":"Zed","last_name":"","full_name":"Zed","street_line_1":"","street_line_2":"","postal_code":"","city":"","region":"","country":"US","phone_1":"","phone_2":"","fax":"","email":"","web":"","discount":null,"tax_id":"","language":"EN","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/50acb16e2f412eda5200003e"}]'
78
+ string: ! '[{"id":3,"kind":"company","full_name":"100-499","contact_name":"","street_line_1":"","street_line_2":"","postal_code":"","city":"","region":"","country":"ES","phone_1":"","phone_2":"","fax":"","email":"","web":"","discount":null,"tax_id":"","bank_account":"","language":"ES","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/3"},{"id":6,"kind":"company","full_name":"ACME","contact_name":"","street_line_1":"","street_line_2":"","postal_code":"","city":"","region":"","country":"ES","phone_1":"","phone_2":"","fax":"","email":"","web":"","discount":null,"tax_id":"","bank_account":"","language":"ES","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/6"},{"id":7,"kind":"company","full_name":"Paco","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/7"},{"id":1,"kind":"company","full_name":"Recrea
79
+ Systems, SLU","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":null,"phone_2":null,"fax":null,"email":"info@recreahq.com","web":null,"discount":null,"tax_id":"B35635648","bank_account":null,"language":"ES","notes":null,"url":"http://localhost:3000/recrea/api/v1/contacts/1"},{"id":5,"kind":"company","full_name":"Stark
80
+ Industries","contact_name":"Tony","street_line_1":"","street_line_2":"","postal_code":"","city":"","region":"","country":"ES","phone_1":"","phone_2":"","fax":"","email":"","web":"","discount":null,"tax_id":"","bank_account":"","language":"ES","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/5"},{"id":2,"kind":"company","full_name":"Test_OCP","contact_name":"","street_line_1":"C/Bernardo
81
+ de la Torre n\u00ba 104","street_line_2":"apartamento 201","postal_code":"35007","city":"Las
82
+ 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":4,"kind":"person","first_name":"Test_OCP","last_name":"Doe","full_name":"Test_OCP
83
+ Doe","street_line_1":"Bernardo de la Torre 104","street_line_2":"","postal_code":"35007","city":"Las
84
+ 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"},{"id":16,"kind":"company","full_name":"Z,
85
+ Mazinger Z","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":"koji@kabuto.ftw","web":null,"discount":null,"tax_id":null,"language":"EN","notes":null,"url":"http://localhost:3000/recrea/api/v1/contacts/16"}]'
44
86
  http_version: '1.1'
45
- recorded_at: Thu, 22 Nov 2012 09:37:37 GMT
87
+ recorded_at: Tue, 14 May 2013 10:47:50 GMT
46
88
  - request:
47
89
  method: delete
48
- uri: http://xiZvifX5hwsxAiymYPk2@localhost:3000/recrea/api/v1/contacts/50adf2612f412ec281000027.json
90
+ uri: http://n8sDLUZ5z1d6dYXKixnx@localhost:3000/recrea/api/v1/contacts/16.json
49
91
  body:
50
92
  encoding: US-ASCII
51
93
  string: ''
52
94
  headers:
53
95
  authorization:
54
- - Basic eGladmlmWDVod3N4QWl5bVlQazI6
96
+ - Basic bjhzRExVWjV6MWQ2ZFlYS2l4bng6
55
97
  response:
56
98
  status:
57
99
  code: 204
@@ -60,18 +102,18 @@ http_interactions:
60
102
  x-ratelimit-limit:
61
103
  - '1000'
62
104
  x-ratelimit-remaining:
63
- - '451'
105
+ - '898'
64
106
  x-ua-compatible:
65
107
  - IE=Edge
66
108
  cache-control:
67
109
  - no-cache
68
110
  set-cookie:
69
- - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTNiZmQ2MDJjMWI0ZGMyMzRhZWI4Y2EyZDg4Yzg3YTA5BjsAVA%3D%3D--2380771632abc372e8b5dec7fc7d25a60794eade;
111
+ - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWIyOTRhMTA5YmJmYjI4MTAzMTI5NjZjMjVjNTk4YmM4BjsAVA%3D%3D--0b910a5923e7ac648b7602b8e7b473726efb9c13;
70
112
  path=/; HttpOnly
71
113
  x-request-id:
72
- - 0635917f957f4333d4f37d5fe01367c0
114
+ - 3e358d003c385fe5ce6a72eb5b7935b3
73
115
  x-runtime:
74
- - '0.034251'
116
+ - '0.081633'
75
117
  connection:
76
118
  - close
77
119
  server:
@@ -80,16 +122,16 @@ http_interactions:
80
122
  encoding: US-ASCII
81
123
  string: ''
82
124
  http_version: '1.1'
83
- recorded_at: Thu, 22 Nov 2012 09:37:37 GMT
125
+ recorded_at: Tue, 14 May 2013 10:47:50 GMT
84
126
  - request:
85
127
  method: get
86
- uri: http://xiZvifX5hwsxAiymYPk2@localhost:3000/recrea/api/v1/contacts.json
128
+ uri: http://n8sDLUZ5z1d6dYXKixnx@localhost:3000/recrea/api/v1/contacts.json
87
129
  body:
88
130
  encoding: US-ASCII
89
131
  string: ''
90
132
  headers:
91
133
  authorization:
92
- - Basic eGladmlmWDVod3N4QWl5bVlQazI6
134
+ - Basic bjhzRExVWjV6MWQ2ZFlYS2l4bng6
93
135
  response:
94
136
  status:
95
137
  code: 200
@@ -98,30 +140,32 @@ http_interactions:
98
140
  x-ratelimit-limit:
99
141
  - '1000'
100
142
  x-ratelimit-remaining:
101
- - '450'
143
+ - '897'
102
144
  content-type:
103
145
  - application/json; charset=utf-8
104
146
  x-ua-compatible:
105
147
  - IE=Edge
106
148
  etag:
107
- - ! '"bb13a5d46652a7b601753ed913a01a27"'
149
+ - ! '"b40453602ac7193432d0bede80334a42"'
108
150
  cache-control:
109
151
  - max-age=0, private, must-revalidate
110
152
  x-request-id:
111
- - e08c82213765879b142259db14d48410
153
+ - 5747ef4f35936b22131d17994b408cc2
112
154
  x-runtime:
113
- - '0.072485'
114
- content-length:
115
- - '4505'
155
+ - '0.373889'
116
156
  connection:
117
157
  - close
118
158
  server:
119
159
  - thin 1.5.0 codename Knife
120
160
  body:
121
161
  encoding: US-ASCII
122
- string: ! '[{"id":"50a23cb22f412eae4f000003","kind":"company","full_name":"100-499","contact_name":"","street_line_1":"Evergreen
123
- Terrace","street_line_2":"","postal_code":"K0A 1B0","city":"Springfield","region":"Canada","country":"CA","phone_1":"3447277","phone_2":"3447277","fax":"","email":"vidadelaempresa@gmail.com","web":"","discount":null,"tax_id":"","language":"EN","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/50a23cb22f412eae4f000003"},{"id":"50a0d1eb2f412e58a700000b","kind":"company","full_name":"ACME","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/50a0d1eb2f412e58a700000b"},{"id":"50acb2b72f412eda52000041","kind":"company","full_name":"Tei","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/50acb2b72f412eda52000041"},{"id":"50a21c9e2f412e1a68000026","kind":"company","full_name":"Test_OCP","contact_name":"","street_line_1":"","street_line_2":"","postal_code":"","city":"","region":"","country":"US","phone_1":"","phone_2":"","fax":"","email":"dont@stop.believing","web":"","discount":null,"tax_id":"","language":"EN","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/50a21c9e2f412e1a68000026"},{"id":"50a0f5612f412ef720000019","kind":"company","full_name":"Test_OCP","contact_name":null,"street_line_1":"Evergreen
124
- Terrace","street_line_2":"","postal_code":"K0A 1B0","city":"Springfield","region":"Canada","country":"CA","phone_1":"3447277","phone_2":null,"fax":null,"email":"dont@stop.believing","web":"","discount":null,"tax_id":"","language":"ES","notes":null,"url":"http://localhost:3000/recrea/api/v1/contacts/50a0f5612f412ef720000019"},{"id":"50aa3de82f412ec2ab000014","kind":"person","first_name":"Test_OCP","last_name":"","full_name":"Test_OCP","street_line_1":"","street_line_2":"","postal_code":"","city":"","region":"","country":"US","phone_1":"","phone_2":"","fax":"","email":"dont@stop.believing","web":"","discount":null,"tax_id":"","language":"EN","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/50aa3de82f412ec2ab000014"},{"id":"50aa3e162f412ec2ab000019","kind":"company","full_name":"Test_OCP","contact_name":"","street_line_1":"","street_line_2":"","postal_code":"","city":"","region":"","country":"US","phone_1":"","phone_2":"","fax":"","email":"dont@stop.believing","web":"","discount":null,"tax_id":"","language":"EN","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/50aa3e162f412ec2ab000019"},{"id":"50a21bf72f412e1a68000017","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/50a21bf72f412e1a68000017"},{"id":"50a0d2e82f412e15bf000004","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/50a0d2e82f412e15bf000004"},{"id":"50acc9842f412eda52000068","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/50acc9842f412eda52000068"},{"id":"50acb16e2f412eda5200003e","kind":"person","first_name":"Zed","last_name":"","full_name":"Zed","street_line_1":"","street_line_2":"","postal_code":"","city":"","region":"","country":"US","phone_1":"","phone_2":"","fax":"","email":"","web":"","discount":null,"tax_id":"","language":"EN","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/50acb16e2f412eda5200003e"}]'
162
+ string: ! '[{"id":3,"kind":"company","full_name":"100-499","contact_name":"","street_line_1":"","street_line_2":"","postal_code":"","city":"","region":"","country":"ES","phone_1":"","phone_2":"","fax":"","email":"","web":"","discount":null,"tax_id":"","bank_account":"","language":"ES","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/3"},{"id":6,"kind":"company","full_name":"ACME","contact_name":"","street_line_1":"","street_line_2":"","postal_code":"","city":"","region":"","country":"ES","phone_1":"","phone_2":"","fax":"","email":"","web":"","discount":null,"tax_id":"","bank_account":"","language":"ES","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/6"},{"id":7,"kind":"company","full_name":"Paco","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/7"},{"id":1,"kind":"company","full_name":"Recrea
163
+ Systems, SLU","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":null,"phone_2":null,"fax":null,"email":"info@recreahq.com","web":null,"discount":null,"tax_id":"B35635648","bank_account":null,"language":"ES","notes":null,"url":"http://localhost:3000/recrea/api/v1/contacts/1"},{"id":5,"kind":"company","full_name":"Stark
164
+ Industries","contact_name":"Tony","street_line_1":"","street_line_2":"","postal_code":"","city":"","region":"","country":"ES","phone_1":"","phone_2":"","fax":"","email":"","web":"","discount":null,"tax_id":"","bank_account":"","language":"ES","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/5"},{"id":2,"kind":"company","full_name":"Test_OCP","contact_name":"","street_line_1":"C/Bernardo
165
+ de la Torre n\u00ba 104","street_line_2":"apartamento 201","postal_code":"35007","city":"Las
166
+ 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":4,"kind":"person","first_name":"Test_OCP","last_name":"Doe","full_name":"Test_OCP
167
+ Doe","street_line_1":"Bernardo de la Torre 104","street_line_2":"","postal_code":"35007","city":"Las
168
+ 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"}]'
125
169
  http_version: '1.1'
126
- recorded_at: Thu, 22 Nov 2012 09:37:37 GMT
170
+ recorded_at: Tue, 14 May 2013 10:47:50 GMT
127
171
  recorded_with: VCR 2.3.0
@@ -2,13 +2,13 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://xiZvifX5hwsxAiymYPk2@localhost:3000/recrea/api/v1/estimates.json
5
+ uri: http://n8sDLUZ5z1d6dYXKixnx@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 eGladmlmWDVod3N4QWl5bVlQazI6
11
+ - Basic bjhzRExVWjV6MWQ2ZFlYS2l4bng6
12
12
  response:
13
13
  status:
14
14
  code: 200
@@ -17,39 +17,82 @@ http_interactions:
17
17
  x-ratelimit-limit:
18
18
  - '1000'
19
19
  x-ratelimit-remaining:
20
- - '463'
20
+ - '888'
21
21
  content-type:
22
22
  - application/json; charset=utf-8
23
23
  x-ua-compatible:
24
24
  - IE=Edge
25
25
  etag:
26
- - ! '"f0ff47d94fcc652191deee279374d1c7"'
26
+ - ! '"d251a198e8a45af2dac75b448e48bbce"'
27
27
  cache-control:
28
28
  - max-age=0, private, must-revalidate
29
29
  x-request-id:
30
- - 8b7c4947935ef100b96dc86686bef8c9
30
+ - 939cbd1311bf933d4b1b21ca98e726a7
31
31
  x-runtime:
32
- - '0.060847'
33
- content-length:
34
- - '1933'
32
+ - '0.142070'
35
33
  connection:
36
34
  - close
37
35
  server:
38
36
  - thin 1.5.0 codename Knife
39
37
  body:
40
38
  encoding: US-ASCII
41
- string: ! '[{"id":"50adf1702f412ec28100001d","number":"0000004","issue_date":"2012-11-22","contact":{"id":"50a23cb22f412eae4f000003","full_name":"100-499"},"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,"subtotal":"\u20ac0.00","discount":"\u20ac0.00","gross_amount":"\u20ac0.00"}],"subtotal":"\u20ac0.00","discount":"\u20ac0.00","taxes":[],"total":"\u20ac0.00","tags":[],"payment_details":"","notes":"","state":"draft","url":"http://localhost:3000/recrea/api/v1/estimates/50adf1702f412ec28100001d.json"},{"id":"50adf1ca2f412ec281000020","number":"0000005","issue_date":"2012-11-22","contact":{"id":"50a23cb22f412eae4f000003","full_name":"100-499"},"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,"subtotal":"\u20ac0.00","discount":"\u20ac0.00","gross_amount":"\u20ac0.00"}],"subtotal":"\u20ac0.00","discount":"\u20ac0.00","taxes":[],"total":"\u20ac0.00","tags":[],"payment_details":"","notes":"","state":"draft","url":"http://localhost:3000/recrea/api/v1/estimates/50adf1ca2f412ec281000020.json"},{"id":"50adf2572f412ec281000023","number":"0000006","issue_date":"2012-11-22","contact":{"id":"50a23cb22f412eae4f000003","full_name":"100-499"},"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,"subtotal":"\u20ac0.00","discount":"\u20ac0.00","gross_amount":"\u20ac0.00"}],"subtotal":"\u20ac0.00","discount":"\u20ac0.00","taxes":[],"total":"\u20ac0.00","tags":[],"payment_details":"","notes":"","state":"draft","url":"http://localhost:3000/recrea/api/v1/estimates/50adf2572f412ec281000023.json"}]'
39
+ string: ! '[{"id":3,"kind":"company","full_name":"100-499","contact_name":"","street_line_1":"","street_line_2":"","postal_code":"","city":"","region":"","country":"ES","phone_1":"","phone_2":"","fax":"","email":"","web":"","discount":null,"tax_id":"","bank_account":"","language":"ES","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/3"},{"id":6,"kind":"company","full_name":"ACME","contact_name":"","street_line_1":"","street_line_2":"","postal_code":"","city":"","region":"","country":"ES","phone_1":"","phone_2":"","fax":"","email":"","web":"","discount":null,"tax_id":"","bank_account":"","language":"ES","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/6"},{"id":1,"kind":"company","full_name":"Recrea
40
+ Systems, SLU","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":null,"phone_2":null,"fax":null,"email":"info@recreahq.com","web":null,"discount":null,"tax_id":"B35635648","bank_account":null,"language":"ES","notes":null,"url":"http://localhost:3000/recrea/api/v1/contacts/1"},{"id":5,"kind":"company","full_name":"Stark
41
+ Industries","contact_name":"Tony","street_line_1":"","street_line_2":"","postal_code":"","city":"","region":"","country":"ES","phone_1":"","phone_2":"","fax":"","email":"","web":"","discount":null,"tax_id":"","bank_account":"","language":"ES","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/5"},{"id":2,"kind":"company","full_name":"Test_OCP","contact_name":"","street_line_1":"C/Bernardo
42
+ de la Torre n\u00ba 104","street_line_2":"apartamento 201","postal_code":"35007","city":"Las
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"}]'
42
46
  http_version: '1.1'
43
- recorded_at: Thu, 22 Nov 2012 09:37:27 GMT
47
+ recorded_at: Tue, 14 May 2013 10:47:59 GMT
48
+ - request:
49
+ method: post
50
+ uri: http://n8sDLUZ5z1d6dYXKixnx@localhost:3000/recrea/api/v1/estimates.json
51
+ body:
52
+ encoding: US-ASCII
53
+ string: contact_id=3&number=test%20number%204400&contact_name=100-499&currency=EUR&items_attributes[][description]=Aircraft&items_attributes[][quantity]=1.0&items_attributes[][unit_price]=0.0&tags=tnt&payment_details=&notes=
54
+ headers:
55
+ authorization:
56
+ - Basic bjhzRExVWjV6MWQ2ZFlYS2l4bng6
57
+ response:
58
+ status:
59
+ code: 201
60
+ message: Created
61
+ headers:
62
+ x-ratelimit-limit:
63
+ - '1000'
64
+ x-ratelimit-remaining:
65
+ - '887'
66
+ content-type:
67
+ - application/json; charset=utf-8
68
+ x-ua-compatible:
69
+ - IE=Edge
70
+ etag:
71
+ - ! '"6a759b6a0c3908c7aee06c5a425f4e8a"'
72
+ cache-control:
73
+ - max-age=0, private, must-revalidate
74
+ x-request-id:
75
+ - d19ae50f3bda2867ce74f4a6788c99fe
76
+ x-runtime:
77
+ - '0.393017'
78
+ connection:
79
+ - close
80
+ server:
81
+ - thin 1.5.0 codename Knife
82
+ body:
83
+ encoding: US-ASCII
84
+ string: ! '{"id":170,"number":"test number 4400","issue_date":"2013-05-14","contact":{"id":3,"full_name":"100-499"},"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,"subtotal":"\u20ac0.00","discount":"\u20ac0.00","gross_amount":"\u20ac0.00"}],"subtotal":"\u20ac0.00","discount":"\u20ac0.00","taxes":[],"total":"\u20ac0.00","tags":[],"payment_details":"","notes":"","state":"draft","permalink":"http://localhost:3000/estimate/c05b0fc8ec387b24da9039c8125c6d39496bbbb6","url":"http://localhost:3000/recrea/api/v1/estimates/170.json"}'
85
+ http_version: '1.1'
86
+ recorded_at: Tue, 14 May 2013 10:48:00 GMT
44
87
  - request:
45
88
  method: delete
46
- uri: http://xiZvifX5hwsxAiymYPk2@localhost:3000/recrea/api/v1/estimates/50adf1702f412ec28100001d.json
89
+ uri: http://n8sDLUZ5z1d6dYXKixnx@localhost:3000/recrea/api/v1/estimates/170.json
47
90
  body:
48
91
  encoding: US-ASCII
49
92
  string: ''
50
93
  headers:
51
94
  authorization:
52
- - Basic eGladmlmWDVod3N4QWl5bVlQazI6
95
+ - Basic bjhzRExVWjV6MWQ2ZFlYS2l4bng6
53
96
  response:
54
97
  status:
55
98
  code: 204
@@ -58,18 +101,18 @@ http_interactions:
58
101
  x-ratelimit-limit:
59
102
  - '1000'
60
103
  x-ratelimit-remaining:
61
- - '462'
104
+ - '886'
62
105
  x-ua-compatible:
63
106
  - IE=Edge
64
107
  cache-control:
65
108
  - no-cache
66
109
  set-cookie:
67
- - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTE3MzBkODE3NjQ0ZTg2MGVjODdmNTQ5ZjBlYWZkNjAzBjsAVA%3D%3D--d8c53fdd83f371cacd64784738885d49dd990cfe;
110
+ - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTcxZGEzMjA5N2I1YjRkN2RjZDE0NmQ4ZTFhMDQ2MzBiBjsAVA%3D%3D--0c17cfac393063b0ea8491fa091953e45901dab7;
68
111
  path=/; HttpOnly
69
112
  x-request-id:
70
- - b9b13bed7ad8f78d4bc9d8c1729ea853
113
+ - 6b12aec48e69ddf32243a0a8e50ac2e5
71
114
  x-runtime:
72
- - '0.032883'
115
+ - '0.111850'
73
116
  connection:
74
117
  - close
75
118
  server:
@@ -78,16 +121,16 @@ http_interactions:
78
121
  encoding: US-ASCII
79
122
  string: ''
80
123
  http_version: '1.1'
81
- recorded_at: Thu, 22 Nov 2012 09:37:27 GMT
124
+ recorded_at: Tue, 14 May 2013 10:48:00 GMT
82
125
  - request:
83
126
  method: get
84
- uri: http://xiZvifX5hwsxAiymYPk2@localhost:3000/recrea/api/v1/estimates.json
127
+ uri: http://n8sDLUZ5z1d6dYXKixnx@localhost:3000/recrea/api/v1/estimates.json
85
128
  body:
86
129
  encoding: US-ASCII
87
130
  string: ''
88
131
  headers:
89
132
  authorization:
90
- - Basic eGladmlmWDVod3N4QWl5bVlQazI6
133
+ - Basic bjhzRExVWjV6MWQ2ZFlYS2l4bng6
91
134
  response:
92
135
  status:
93
136
  code: 200
@@ -96,28 +139,32 @@ http_interactions:
96
139
  x-ratelimit-limit:
97
140
  - '1000'
98
141
  x-ratelimit-remaining:
99
- - '461'
142
+ - '885'
100
143
  content-type:
101
144
  - application/json; charset=utf-8
102
145
  x-ua-compatible:
103
146
  - IE=Edge
104
147
  etag:
105
- - ! '"85a3b35f41c9e4773921349d0adad8d0"'
148
+ - ! '"5b7ecba12d39953a997fc60af9f8dc2c"'
106
149
  cache-control:
107
150
  - max-age=0, private, must-revalidate
108
151
  x-request-id:
109
- - 4170ff926c198105aff8e2d95e1cda7f
152
+ - 9cae84e779a54da090b007513d649b96
110
153
  x-runtime:
111
- - '0.050319'
112
- content-length:
113
- - '1289'
154
+ - '0.813743'
114
155
  connection:
115
156
  - close
116
157
  server:
117
158
  - thin 1.5.0 codename Knife
118
159
  body:
119
160
  encoding: US-ASCII
120
- string: ! '[{"id":"50adf1ca2f412ec281000020","number":"0000005","issue_date":"2012-11-22","contact":{"id":"50a23cb22f412eae4f000003","full_name":"100-499"},"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,"subtotal":"\u20ac0.00","discount":"\u20ac0.00","gross_amount":"\u20ac0.00"}],"subtotal":"\u20ac0.00","discount":"\u20ac0.00","taxes":[],"total":"\u20ac0.00","tags":[],"payment_details":"","notes":"","state":"draft","url":"http://localhost:3000/recrea/api/v1/estimates/50adf1ca2f412ec281000020.json"},{"id":"50adf2572f412ec281000023","number":"0000006","issue_date":"2012-11-22","contact":{"id":"50a23cb22f412eae4f000003","full_name":"100-499"},"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,"subtotal":"\u20ac0.00","discount":"\u20ac0.00","gross_amount":"\u20ac0.00"}],"subtotal":"\u20ac0.00","discount":"\u20ac0.00","taxes":[],"total":"\u20ac0.00","tags":[],"payment_details":"","notes":"","state":"draft","url":"http://localhost:3000/recrea/api/v1/estimates/50adf2572f412ec281000023.json"}]'
161
+ string: ! '[{"id":15,"number":"0000007","issue_date":"2013-04-25","contact":{"id":4,"full_name":"Test_OCP
162
+ Doe"},"po_number":"","currency":"EUR","items":[{"description":"Algo","quantity":"1.0","unit_price":"33.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"subtotal":"\u20ac33.00","discount":"\u20ac0.00","gross_amount":"\u20ac33.00"}],"subtotal":"\u20ac33.00","discount":"\u20ac0.00","taxes":[],"total":"\u20ac33.00","tags":[],"payment_details":"Show
163
+ me the moneeeeeeeyy!!!!","notes":"","state":"draft","permalink":"http://localhost:3000/estimate/91b1ab60bc88b87973bb9c03d668f6ceebb30137","url":"http://localhost:3000/recrea/api/v1/estimates/15.json"},{"id":14,"number":"0000006","issue_date":"2013-04-25","contact":{"id":5,"full_name":"Stark
164
+ Industries"},"po_number":"","currency":"EUR","items":[{"description":"Algo","quantity":"1.0","unit_price":"33.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"subtotal":"\u20ac33.00","discount":"\u20ac0.00","gross_amount":"\u20ac33.00"}],"subtotal":"\u20ac33.00","discount":"\u20ac0.00","taxes":[],"total":"\u20ac33.00","tags":[],"payment_details":"","notes":"","state":"declined","permalink":"http://localhost:3000/estimate/4dae199225447e31626848012ca892b69d507262","url":"http://localhost:3000/recrea/api/v1/estimates/14.json"},{"id":13,"number":"0000005","issue_date":"2013-04-25","contact":{"id":3,"full_name":"100-499"},"po_number":"","currency":"EUR","items":[{"description":"Algo","quantity":"1.0","unit_price":"33.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"subtotal":"\u20ac33.00","discount":"\u20ac0.00","gross_amount":"\u20ac33.00"}],"subtotal":"\u20ac33.00","discount":"\u20ac0.00","taxes":[],"total":"\u20ac33.00","tags":[],"payment_details":"","notes":"","state":"accepted","permalink":"http://localhost:3000/estimate/b70a0607dee9da936bbc941f3f5d9d88dd49952f","url":"http://localhost:3000/recrea/api/v1/estimates/13.json"},{"id":12,"number":"0000004","issue_date":"2013-04-25","contact":{"id":6,"full_name":"ACME"},"po_number":"","currency":"EUR","items":[{"description":"Algo","quantity":"1.0","unit_price":"33.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"subtotal":"\u20ac33.00","discount":"\u20ac0.00","gross_amount":"\u20ac33.00"}],"subtotal":"\u20ac33.00","discount":"\u20ac0.00","taxes":[],"total":"\u20ac33.00","tags":[],"payment_details":"","notes":"","state":"draft","permalink":"http://localhost:3000/estimate/d877d05d92046a69fe737fa5b43053c23975ea4d","url":"http://localhost:3000/recrea/api/v1/estimates/12.json"},{"id":11,"number":"0000003","issue_date":"2013-04-25","contact":{"id":5,"full_name":"Stark
165
+ Industries"},"po_number":"","currency":"EUR","items":[{"description":"Algo","quantity":"1.0","unit_price":"33.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"subtotal":"\u20ac33.00","discount":"\u20ac0.00","gross_amount":"\u20ac33.00"}],"subtotal":"\u20ac33.00","discount":"\u20ac0.00","taxes":[],"total":"\u20ac33.00","tags":[],"payment_details":"","notes":"","state":"draft","permalink":"http://localhost:3000/estimate/f7d4b0db4eb44df4c64717de9a8fce4358552156","url":"http://localhost:3000/recrea/api/v1/estimates/11.json"},{"id":10,"number":"0000002","issue_date":"2013-04-25","contact":{"id":2,"full_name":"Test_OCP"},"po_number":"","currency":"EUR","items":[{"description":"Algo","quantity":"1.0","unit_price":"33.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"subtotal":"\u20ac33.00","discount":"\u20ac0.00","gross_amount":"\u20ac33.00"}],"subtotal":"\u20ac33.00","discount":"\u20ac0.00","taxes":[],"total":"\u20ac33.00","tags":[],"payment_details":"","notes":"","state":"draft","permalink":"http://localhost:3000/estimate/f40fd3dc4d2e6b597d2c45897eb8af605fd3b9b0","url":"http://localhost:3000/recrea/api/v1/estimates/10.json"},{"id":9,"number":"0000001","issue_date":"2013-04-25","contact":{"id":1,"full_name":"Recrea
166
+ Systems, SLU"},"po_number":"","currency":"EUR","items":[{"description":"Algo","quantity":"1.0","unit_price":"33.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"subtotal":"\u20ac33.00","discount":"\u20ac0.00","gross_amount":"\u20ac33.00"}],"subtotal":"\u20ac33.00","discount":"\u20ac0.00","taxes":[],"total":"\u20ac33.00","tags":[],"payment_details":"","notes":"","state":"invoiced","permalink":"http://localhost:3000/estimate/2219c272c3aa91e6ed27f8e8cfe2c905c81f6e2f","url":"http://localhost:3000/recrea/api/v1/estimates/9.json"},{"id":21,"number":"0000008","issue_date":"2013-04-24","contact":{"id":7,"full_name":"Test_OCP"},"po_number":"","currency":"EUR","items":[{"description":"Fresones","quantity":"1.0","unit_price":"5.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"subtotal":"\u20ac5.00","discount":"\u20ac0.00","gross_amount":"\u20ac5.00"}],"subtotal":"\u20ac5.00","discount":"\u20ac0.00","taxes":[],"total":"\u20ac5.00","tags":[],"payment_details":"","notes":"","state":"draft","permalink":"http://localhost:3000/estimate/f049036ab6504548aed34d59ad58fea7bc08d266","url":"http://localhost:3000/recrea/api/v1/estimates/21.json"},{"id":22,"number":"0000009","issue_date":"2013-03-24","contact":{"id":4,"full_name":"Test_OCP
167
+ Doe"},"po_number":"","currency":"EUR","items":[{"description":"Tarta de fresa","quantity":"1.0","unit_price":"5.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"subtotal":"\u20ac5.00","discount":"\u20ac0.00","gross_amount":"\u20ac5.00"}],"subtotal":"\u20ac5.00","discount":"\u20ac0.00","taxes":[],"total":"\u20ac5.00","tags":[],"payment_details":"","notes":"","state":"invoiced","permalink":"http://localhost:3000/estimate/91992f05a4762c0a253ea34b51cbbe720fad82f4","url":"http://localhost:3000/recrea/api/v1/estimates/22.json"}]'
121
168
  http_version: '1.1'
122
- recorded_at: Thu, 22 Nov 2012 09:37:27 GMT
169
+ recorded_at: Tue, 14 May 2013 10:48:00 GMT
123
170
  recorded_with: VCR 2.3.0