quaderno 1.2.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. data/Gemfile +6 -7
  2. data/Gemfile.lock +0 -9
  3. data/README.md +6 -2
  4. data/VERSION +1 -1
  5. data/build_install.sh +1 -1
  6. data/changelog.md +4 -0
  7. data/lib/quaderno-ruby/base.rb +10 -2
  8. data/lib/quaderno-ruby/behavior/crud.rb +0 -1
  9. data/lib/quaderno-ruby.rb +0 -2
  10. data/quaderno.gemspec +6 -25
  11. data/test/fixtures/quaderno_cassettes/all_contacts.yml +23 -18
  12. data/test/fixtures/quaderno_cassettes/all_estimates.yml +35 -18
  13. data/test/fixtures/quaderno_cassettes/all_expenses.yml +38 -18
  14. data/test/fixtures/quaderno_cassettes/all_invoices.yml +35 -29
  15. data/test/fixtures/quaderno_cassettes/all_items.yml +17 -12
  16. data/test/fixtures/quaderno_cassettes/all_webhooks.yml +84 -68
  17. data/test/fixtures/quaderno_cassettes/deleted_contact.yml +81 -62
  18. data/test/fixtures/quaderno_cassettes/deleted_estimate.yml +96 -62
  19. data/test/fixtures/quaderno_cassettes/deleted_expense.yml +99 -62
  20. data/test/fixtures/quaderno_cassettes/deleted_invoice.yml +96 -73
  21. data/test/fixtures/quaderno_cassettes/deleted_item.yml +49 -37
  22. data/test/fixtures/quaderno_cassettes/deleted_webhook.yml +100 -80
  23. data/test/fixtures/quaderno_cassettes/delivered_estimate.yml +66 -45
  24. data/test/fixtures/quaderno_cassettes/delivered_invoice.yml +66 -56
  25. data/test/fixtures/quaderno_cassettes/found_contact.yml +39 -30
  26. data/test/fixtures/quaderno_cassettes/found_estimate.yml +55 -32
  27. data/test/fixtures/quaderno_cassettes/found_expense.yml +62 -30
  28. data/test/fixtures/quaderno_cassettes/found_invoice.yml +58 -42
  29. data/test/fixtures/quaderno_cassettes/found_item.yml +33 -24
  30. data/test/fixtures/quaderno_cassettes/found_webhook.yml +50 -40
  31. data/test/fixtures/quaderno_cassettes/new_contact.yml +19 -12
  32. data/test/fixtures/quaderno_cassettes/new_estimate.yml +61 -44
  33. data/test/fixtures/quaderno_cassettes/new_expense.yml +99 -62
  34. data/test/fixtures/quaderno_cassettes/new_invoice.yml +61 -44
  35. data/test/fixtures/quaderno_cassettes/new_item.yml +19 -12
  36. data/test/fixtures/quaderno_cassettes/new_webhook.yml +34 -28
  37. data/test/fixtures/quaderno_cassettes/paid_expense.yml +57 -30
  38. data/test/fixtures/quaderno_cassettes/paid_invoice.yml +54 -41
  39. data/test/fixtures/quaderno_cassettes/rate_limit.yml +14 -10
  40. data/test/fixtures/quaderno_cassettes/unpay_an_expense.yml +73 -43
  41. data/test/fixtures/quaderno_cassettes/unpay_an_invoice.yml +70 -54
  42. data/test/fixtures/quaderno_cassettes/updated_contact.yml +42 -30
  43. data/test/fixtures/quaderno_cassettes/updated_estimate.yml +84 -57
  44. data/test/fixtures/quaderno_cassettes/updated_expense.yml +81 -56
  45. data/test/fixtures/quaderno_cassettes/updated_invoice.yml +84 -57
  46. data/test/fixtures/quaderno_cassettes/updated_item.yml +36 -24
  47. data/test/fixtures/quaderno_cassettes/updated_webhook.yml +69 -55
  48. data/test/helper.rb +12 -12
  49. data/test/unit/test_quaderno_contacts.rb +4 -3
  50. data/test/unit/test_quaderno_estimates.rb +2 -1
  51. data/test/unit/test_quaderno_expenses.rb +3 -2
  52. data/test/unit/test_quaderno_invoices.rb +3 -2
  53. data/test/unit/test_quaderno_items.rb +4 -3
  54. data/test/unit/test_quaderno_webhooks.rb +4 -3
  55. metadata +10 -94
  56. data/quaderno-1.0.0.gem +0 -0
  57. data/quaderno-1.1.0.gem +0 -0
  58. data/quaderno-1.1.2.gem +0 -0
  59. data/quaderno-1.2.0.gem +0 -0
@@ -2,169 +2,206 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://n8sDLUZ5z1d6dYXKixnx@localhost:3000/recrea/api/v1/contacts.json
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 bjhzRExVWjV6MWQ2ZFlYS2l4bng6
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
- - '1000'
18
+ - '2000'
19
19
  x-ratelimit-remaining:
20
- - '869'
20
+ - '1897'
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
- - ! '"d251a198e8a45af2dac75b448e48bbce"'
30
+ - ! '"71b79c1b45cfb58a71172c277dd004b5"'
27
31
  cache-control:
28
32
  - max-age=0, private, must-revalidate
29
33
  x-request-id:
30
- - cf05f581d0ba6c7c0ca406cbdced1857
34
+ - 967d1a637f3f55f1a97c7556001b812e
31
35
  x-runtime:
32
- - '0.393825'
36
+ - '0.383227'
37
+ server:
38
+ - WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
39
+ date:
40
+ - Tue, 04 Feb 2014 14:50:56 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":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"}]'
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, 14 May 2013 10:48:14 GMT
52
+ recorded_at: Tue, 04 Feb 2014 14:50:56 GMT
48
53
  - request:
49
54
  method: post
50
- uri: http://n8sDLUZ5z1d6dYXKixnx@localhost:3000/recrea/api/v1/expenses.json
55
+ uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/expenses.json
51
56
  body:
52
57
  encoding: US-ASCII
53
- string: contact_id=3&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=
58
+ string: contact_id=2&contact_name=Another%20Test%20Contact&currency=EUR&items_attributes[][description]=Aircraft&items_attributes[][quantity]=1.0&items_attributes[][unit_price]=0.0&tags=tnt&payment_details=&notes=
54
59
  headers:
55
60
  authorization:
56
- - Basic bjhzRExVWjV6MWQ2ZFlYS2l4bng6
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
- - '1000'
68
+ - '2000'
64
69
  x-ratelimit-remaining:
65
- - '868'
70
+ - '1896'
66
71
  content-type:
67
72
  - application/json; charset=utf-8
68
73
  x-ua-compatible:
69
74
  - IE=Edge
70
75
  etag:
71
- - ! '"f2cc61bb88de533c69f5769128e55007"'
76
+ - ! '"d6e4d1ca2525d9b38bd57585e0f98525"'
72
77
  cache-control:
73
78
  - max-age=0, private, must-revalidate
74
79
  x-request-id:
75
- - d2486d01e9f10e2e53a838b30883efc4
80
+ - 0e6e68c3beecbbaf83900fd09c98bbeb
76
81
  x-runtime:
77
- - '0.427446'
82
+ - '0.495320'
83
+ server:
84
+ - WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
85
+ date:
86
+ - Tue, 04 Feb 2014 14:50:56 GMT
87
+ content-length:
88
+ - '605'
78
89
  connection:
79
90
  - close
80
- server:
81
- - thin 1.5.0 codename Knife
91
+ set-cookie:
92
+ - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTVmOTU3OWZkYWNkYmExZGI4YTg2MDI2ZWMwNWIwNjlmBjsAVA%3D%3D--47b9e332dcb91b3a6efd07724bc5a0217855d5fc;
93
+ path=/; HttpOnly
82
94
  body:
83
95
  encoding: US-ASCII
84
- string: ! '{"id":173,"number":null,"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","payments":[],"tags":[],"notes":"","state":"outstanding","url":"http://localhost:3000/recrea/api/v1/expenses/173.json"}'
96
+ string: ! '{"id":23,"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/23.json"}'
85
100
  http_version: '1.1'
86
- recorded_at: Tue, 14 May 2013 10:48:15 GMT
101
+ recorded_at: Tue, 04 Feb 2014 14:50:56 GMT
87
102
  - request:
88
103
  method: delete
89
- uri: http://n8sDLUZ5z1d6dYXKixnx@localhost:3000/recrea/api/v1/expenses/173.json
104
+ uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/expenses/23.json
90
105
  body:
91
106
  encoding: US-ASCII
92
107
  string: ''
93
108
  headers:
94
109
  authorization:
95
- - Basic bjhzRExVWjV6MWQ2ZFlYS2l4bng6
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
- - '1000'
117
+ - '2000'
103
118
  x-ratelimit-remaining:
104
- - '867'
119
+ - '1895'
105
120
  x-ua-compatible:
106
121
  - IE=Edge
107
122
  cache-control:
108
123
  - no-cache
109
- set-cookie:
110
- - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWQ3MDhkM2UzNGM0OWYxYmYxNmE4MDhiOTdhMzVlOGJhBjsAVA%3D%3D--62c789b6380843e22aeaaf5c082ee3d7e783c07c;
111
- path=/; HttpOnly
112
124
  x-request-id:
113
- - 77ad9441bc27a111c60299871bd33e42
125
+ - 0969d6b9d87fd8db222b5c2c29fffa10
114
126
  x-runtime:
115
- - '0.374088'
127
+ - '0.432289'
128
+ server:
129
+ - WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
130
+ date:
131
+ - Tue, 04 Feb 2014 14:50:57 GMT
116
132
  connection:
117
133
  - close
118
- server:
119
- - thin 1.5.0 codename Knife
134
+ set-cookie:
135
+ - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWM5NjhiNmE1M2FiYmVjYWU2NmJjNTVkMmI1YmJlYzY3BjsAVA%3D%3D--b6be86ae1e862a8027eb66e35ec8eae4ce359837;
136
+ path=/; HttpOnly
120
137
  body:
121
138
  encoding: US-ASCII
122
139
  string: ''
123
140
  http_version: '1.1'
124
- recorded_at: Tue, 14 May 2013 10:48:15 GMT
141
+ recorded_at: Tue, 04 Feb 2014 14:50:57 GMT
125
142
  - request:
126
143
  method: get
127
- uri: http://n8sDLUZ5z1d6dYXKixnx@localhost:3000/recrea/api/v1/expenses.json
144
+ uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/expenses.json
128
145
  body:
129
146
  encoding: US-ASCII
130
147
  string: ''
131
148
  headers:
132
149
  authorization:
133
- - Basic bjhzRExVWjV6MWQ2ZFlYS2l4bng6
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
- - '1000'
157
+ - '2000'
141
158
  x-ratelimit-remaining:
142
- - '866'
159
+ - '1894'
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
- - ! '"0343d45fbd7e9ebd87c36d92a32f7014"'
169
+ - ! '"0caa665340ca3fbfd0127f8d8d146941"'
149
170
  cache-control:
150
171
  - max-age=0, private, must-revalidate
151
172
  x-request-id:
152
- - 21b21b659d8fa6eccc1b71e5bb17adec
173
+ - 3f06d408d99737d6e33c2c1bafea8bd5
153
174
  x-runtime:
154
- - '0.584686'
175
+ - '0.546128'
176
+ server:
177
+ - WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
178
+ date:
179
+ - Tue, 04 Feb 2014 14:50:57 GMT
180
+ content-length:
181
+ - '2759'
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":156,"number":null,"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","payments":[{"id":5,"date":"2013-05-14","payment_method":"cash","amount":"\u20ac10,000.00","url":"http://localhost:3000/recrea/api/v1/expenses/156/payments/5.json"},{"id":7,"date":"2013-05-14","payment_method":"cash","amount":"\u20ac10,000.00","url":"http://localhost:3000/recrea/api/v1/expenses/156/payments/7.json"},{"id":11,"date":"2013-05-14","payment_method":"cash","amount":"\u20ac10,000.00","url":"http://localhost:3000/recrea/api/v1/expenses/156/payments/11.json"}],"tags":[],"notes":"","state":"paid","url":"http://localhost:3000/recrea/api/v1/expenses/156.json"},{"id":159,"number":null,"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","payments":[],"tags":[],"notes":"","state":"outstanding","url":"http://localhost:3000/recrea/api/v1/expenses/159.json"},{"id":162,"number":null,"issue_date":"2013-05-14","contact":{"id":3,"full_name":"100-499"},"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,"subtotal":"$0.00","discount":"$0.00","gross_amount":"$0.00"}],"subtotal":"$0.00","discount":"$0.00","taxes":[],"total":"$0.00","payments":[],"tags":[],"notes":"","state":"outstanding","url":"http://localhost:3000/recrea/api/v1/expenses/162.json"},{"id":16,"number":null,"issue_date":"2013-04-25","contact":{"id":1,"full_name":"Recrea
162
- Systems, SLU"},"po_number":"","currency":"EUR","items":[{"description":"Algo","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":[],"notes":"","state":"outstanding","url":"http://localhost:3000/recrea/api/v1/expenses/16.json"},{"id":25,"number":null,"issue_date":"2013-04-24","contact":{"id":4,"full_name":"Test_OCP
163
- Doe"},"po_number":"","currency":"EUR","items":[{"description":"Esta\u00f1o","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","payments":[{"id":4,"date":"2013-04-24","payment_method":"credit_card","amount":"\u20ac5.00","url":"http://localhost:3000/recrea/api/v1/expenses/25/payments/4.json"}],"tags":[],"notes":"","state":"paid","url":"http://localhost:3000/recrea/api/v1/expenses/25.json"},{"id":27,"number":null,"issue_date":"2013-04-24","contact":{"id":4,"full_name":"Test_OCP
164
- Doe"},"po_number":"","currency":"EUR","items":[{"description":"Mercurio para
165
- beber","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","payments":[],"tags":[],"notes":"","state":"outstanding","url":"http://localhost:3000/recrea/api/v1/expenses/27.json"},{"id":28,"number":null,"issue_date":"2013-04-24","contact":{"id":1,"full_name":"Recrea
166
- Systems, SLU"},"po_number":"","currency":"EUR","items":[{"description":"Mercurio
167
- para beber","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","payments":[],"tags":[],"notes":"","state":"outstanding","url":"http://localhost:3000/recrea/api/v1/expenses/28.json"},{"id":26,"number":null,"issue_date":"2013-03-24","contact":{"id":8,"full_name":"Toby"},"po_number":"","currency":"EUR","items":[{"description":"Cobre","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","payments":[],"tags":[],"notes":"","state":"outstanding","url":"http://localhost:3000/recrea/api/v1/expenses/26.json"}]'
186
+ string: ! '[{"id":6,"number":null,"issue_date":"2014-05-04","contact":{"id":2,"full_name":"Another
187
+ Test Contact"},"po_number":"","currency":"EUR","items":[{"description":"Honeypots","quantity":"1.3","unit_price":"19.03","discount_rate":"0.0","tax_1_name":"IVA","tax_1_rate":"21.0","tax_2_name":"IRPF","tax_2_rate":"-9.0","reference":"","subtotal":"24.74
188
+ \u20ac","discount":"0.00 \u20ac","gross_amount":"24.74 \u20ac"}],"subtotal":"24.74
189
+ \u20ac","discount":"0.00 \u20ac","taxes":[{"label":"IRPF (-9.00%)","amount":"-2.23
190
+ \u20ac"},{"label":"IVA (21.00%)","amount":"5.20 \u20ac"}],"total":"27.71 \u20ac","payments":[{"id":1,"date":"2014-02-04","payment_method":"cash","amount":"10,000.00
191
+ \u20ac","url":"http://localhost:3000/recrea/api/v1/expenses/6/payments/1.json"},{"id":3,"date":"2014-02-04","payment_method":"cash","amount":"10,000.00
192
+ \u20ac","url":"http://localhost:3000/recrea/api/v1/expenses/6/payments/3.json"},{"id":5,"date":"2014-02-04","payment_method":"cash","amount":"10,000.00
193
+ \u20ac","url":"http://localhost:3000/recrea/api/v1/expenses/6/payments/5.json"},{"id":7,"date":"2014-02-04","payment_method":"cash","amount":"10,000.00
194
+ \u20ac","url":"http://localhost:3000/recrea/api/v1/expenses/6/payments/7.json"}],"notes":"Hello","state":"paid","tag_list":[],"url":"http://localhost:3000/recrea/api/v1/expenses/6.json"},{"id":4,"number":null,"issue_date":"2014-02-04","contact":{"id":1,"full_name":"API
195
+ Test Contact"},"po_number":"","currency":"EUR","items":[{"description":"Very
196
+ important stuff","quantity":"1.0","unit_price":"2230.0","discount_rate":"0.0","tax_1_name":"IVA","tax_1_rate":"21.0","tax_2_name":"IRPF","tax_2_rate":"-9.0","reference":"","subtotal":"2,230.00
197
+ \u20ac","discount":"0.00 \u20ac","gross_amount":"2,230.00 \u20ac"}],"subtotal":"2,230.00
198
+ \u20ac","discount":"0.00 \u20ac","taxes":[{"label":"IRPF (-9.00%)","amount":"-200.70
199
+ \u20ac"},{"label":"IVA (21.00%)","amount":"468.30 \u20ac"}],"total":"2,497.60
200
+ \u20ac","payments":[],"notes":"Hello","state":"outstanding","tag_list":[],"url":"http://localhost:3000/recrea/api/v1/expenses/4.json"},{"id":5,"number":null,"issue_date":"2014-02-04","contact":{"id":3,"full_name":"TSM"},"po_number":"","currency":"EUR","items":[{"description":"Bombers","quantity":"5.0","unit_price":"29.0","discount_rate":"0.0","tax_1_name":"IVA","tax_1_rate":"21.0","tax_2_name":"IRPF","tax_2_rate":"-9.0","reference":"","subtotal":"145.00
201
+ \u20ac","discount":"0.00 \u20ac","gross_amount":"145.00 \u20ac"}],"subtotal":"145.00
202
+ \u20ac","discount":"0.00 \u20ac","taxes":[{"label":"IRPF (-9.00%)","amount":"-13.05
203
+ \u20ac"},{"label":"IVA (21.00%)","amount":"30.45 \u20ac"}],"total":"162.40
204
+ \u20ac","payments":[],"notes":"Hello","state":"outstanding","tag_list":[],"url":"http://localhost:3000/recrea/api/v1/expenses/5.json"}]'
168
205
  http_version: '1.1'
169
- recorded_at: Tue, 14 May 2013 10:48:16 GMT
206
+ recorded_at: Tue, 04 Feb 2014 14:50:57 GMT
170
207
  recorded_with: VCR 2.3.0