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
@@ -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
- - '455'
20
+ - '879'
21
21
  content-type:
22
22
  - application/json; charset=utf-8
23
23
  x-ua-compatible:
24
24
  - IE=Edge
25
25
  etag:
26
- - ! '"85a3b35f41c9e4773921349d0adad8d0"'
26
+ - ! '"d251a198e8a45af2dac75b448e48bbce"'
27
27
  cache-control:
28
28
  - max-age=0, private, must-revalidate
29
29
  x-request-id:
30
- - 65a65672abf9cef7c7c4317e8bc5e607
30
+ - 29f72cdc34b69ab6351aaaf8cbea1b30
31
31
  x-runtime:
32
- - '0.054706'
33
- content-length:
34
- - '1289'
32
+ - '0.143361'
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":"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:28 GMT
47
+ recorded_at: Tue, 14 May 2013 10:48:04 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
+ - '878'
66
+ content-type:
67
+ - application/json; charset=utf-8
68
+ x-ua-compatible:
69
+ - IE=Edge
70
+ etag:
71
+ - ! '"bb0d73deb85892c2e8e047ba5e16fd2a"'
72
+ cache-control:
73
+ - max-age=0, private, must-revalidate
74
+ x-request-id:
75
+ - e0ac666fba00d95c55b59aa941a7d1c0
76
+ x-runtime:
77
+ - '0.476108'
78
+ connection:
79
+ - close
80
+ server:
81
+ - thin 1.5.0 codename Knife
82
+ body:
83
+ encoding: US-ASCII
84
+ string: ! '{"id":171,"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/394019501e6d0589c42215c69f2069e17fd4359a","url":"http://localhost:3000/recrea/api/v1/estimates/171.json"}'
85
+ http_version: '1.1'
86
+ recorded_at: Tue, 14 May 2013 10:48:04 GMT
44
87
  - request:
45
88
  method: put
46
- uri: http://xiZvifX5hwsxAiymYPk2@localhost:3000/recrea/api/v1/estimates/50adf1ca2f412ec281000020.json
89
+ uri: http://n8sDLUZ5z1d6dYXKixnx@localhost:3000/recrea/api/v1/estimates/171.json
47
90
  body:
48
91
  encoding: US-ASCII
49
92
  string: payment_details=Show%20me%20the%20moneeeeeeeyy!!!!
50
93
  headers:
51
94
  authorization:
52
- - Basic eGladmlmWDVod3N4QWl5bVlQazI6
95
+ - Basic bjhzRExVWjV6MWQ2ZFlYS2l4bng6
53
96
  response:
54
97
  status:
55
98
  code: 200
@@ -58,29 +101,65 @@ http_interactions:
58
101
  x-ratelimit-limit:
59
102
  - '1000'
60
103
  x-ratelimit-remaining:
61
- - '454'
104
+ - '877'
62
105
  content-type:
63
106
  - application/json; charset=utf-8
64
107
  x-ua-compatible:
65
108
  - IE=Edge
66
109
  etag:
67
- - ! '"7e35c8365914478868f1d09271f7c3ac"'
110
+ - ! '"f832a91f5aa53a3665d80a65808adb19"'
68
111
  cache-control:
69
112
  - max-age=0, private, must-revalidate
70
113
  x-request-id:
71
- - f4a6a24414681549c3ebae3b9178a604
114
+ - e0f01d1b415959f07506027a6ad9e98e
115
+ x-runtime:
116
+ - '0.146836'
117
+ connection:
118
+ - close
119
+ server:
120
+ - thin 1.5.0 codename Knife
121
+ body:
122
+ encoding: US-ASCII
123
+ string: ! '{"id":171,"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":"Show
124
+ me the moneeeeeeeyy!!!!","notes":"","state":"draft","permalink":"http://localhost:3000/estimate/394019501e6d0589c42215c69f2069e17fd4359a","url":"http://localhost:3000/recrea/api/v1/estimates/171.json"}'
125
+ http_version: '1.1'
126
+ recorded_at: Tue, 14 May 2013 10:48:04 GMT
127
+ - request:
128
+ method: delete
129
+ uri: http://n8sDLUZ5z1d6dYXKixnx@localhost:3000/recrea/api/v1/estimates/171.json
130
+ body:
131
+ encoding: US-ASCII
132
+ string: ''
133
+ headers:
134
+ authorization:
135
+ - Basic bjhzRExVWjV6MWQ2ZFlYS2l4bng6
136
+ response:
137
+ status:
138
+ code: 204
139
+ message: No Content
140
+ headers:
141
+ x-ratelimit-limit:
142
+ - '1000'
143
+ x-ratelimit-remaining:
144
+ - '876'
145
+ x-ua-compatible:
146
+ - IE=Edge
147
+ cache-control:
148
+ - no-cache
149
+ set-cookie:
150
+ - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTgwODkyMzcxMDcyMGVlYzNjMDM1NjU3ZWY4ZjFmZWExBjsAVA%3D%3D--e5bc31495764e8adb929ceb7bb2af7771e2e766b;
151
+ path=/; HttpOnly
152
+ x-request-id:
153
+ - dd9084df527b63cd92e57518cbd17eff
72
154
  x-runtime:
73
- - '0.057596'
74
- content-length:
75
- - '671'
155
+ - '0.349722'
76
156
  connection:
77
157
  - close
78
158
  server:
79
159
  - thin 1.5.0 codename Knife
80
160
  body:
81
161
  encoding: US-ASCII
82
- 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":"Show
83
- me the moneeeeeeeyy!!!!","notes":"","state":"draft","url":"http://localhost:3000/recrea/api/v1/estimates/50adf1ca2f412ec281000020.json"}'
162
+ string: ''
84
163
  http_version: '1.1'
85
- recorded_at: Thu, 22 Nov 2012 09:37:28 GMT
164
+ recorded_at: Tue, 14 May 2013 10:48:05 GMT
86
165
  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/expenses.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
- - '985'
20
+ - '859'
21
21
  content-type:
22
22
  - application/json; charset=utf-8
23
23
  x-ua-compatible:
24
24
  - IE=Edge
25
25
  etag:
26
- - ! '"7e6bda6f58ddd9bce3967ec247706a31"'
26
+ - ! '"d251a198e8a45af2dac75b448e48bbce"'
27
27
  cache-control:
28
28
  - max-age=0, private, must-revalidate
29
29
  x-request-id:
30
- - e1e9394aec08a3109644d34d8438d554
30
+ - 8d51cafdf225a9d871604791897a0298
31
31
  x-runtime:
32
- - '0.433182'
33
- content-length:
34
- - '7285'
32
+ - '0.137961'
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":"50adf88a2f412ec28100005a","number":"0003","issue_date":"2012-11-22","contact":{"id":"50a23cb22f412eae4f000003","full_name":"100-499"},"po_number":"","currency":"EUR","items":[{"description":"fyfjhj","quantity":"1.0","unit_price":"0.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":"","tax_2_name":"","tax_2_rate":"","subtotal":"\u20ac0.00","discount":"\u20ac0.00","gross_amount":"\u20ac0.00"}],"subtotal":"\u20ac0.00","discount":"\u20ac0.00","taxes":[],"total":"\u20ac0.00","payments":[{"id":"50adfb422f412ec281000062","date":"2012-11-22","payment_method":"cash","amount":"\u20ac100,000,000.00","url":"http://localhost:3000/recrea/api/v1/expenses/50adf88a2f412ec28100005a/payments/50adfb422f412ec281000062.json"},{"id":"50adfc9c2f412ec28100006a","date":"2012-11-22","payment_method":"cash","amount":"\u20ac100,000,000.00","url":"http://localhost:3000/recrea/api/v1/expenses/50adf88a2f412ec28100005a/payments/50adfc9c2f412ec28100006a.json"},{"id":"50adfd232f412ec281000072","date":"2012-11-22","payment_method":"cash","amount":"\u20ac100,000,000.00","url":"http://localhost:3000/recrea/api/v1/expenses/50adf88a2f412ec28100005a/payments/50adfd232f412ec281000072.json"},{"id":"50adfe012f412ec28100007a","date":"2012-11-22","payment_method":"cash","amount":"\u20ac100,000,000.00","url":"http://localhost:3000/recrea/api/v1/expenses/50adf88a2f412ec28100005a/payments/50adfe012f412ec28100007a.json"},{"id":"50adfe382f412ec281000082","date":"2012-11-22","payment_method":"cash","amount":"\u20ac100,000,000.00","url":"http://localhost:3000/recrea/api/v1/expenses/50adf88a2f412ec28100005a/payments/50adfe382f412ec281000082.json"},{"id":"50adfec72f412ec28100008a","date":"2012-11-22","payment_method":"cash","amount":"\u20ac100,000,000.00","url":"http://localhost:3000/recrea/api/v1/expenses/50adf88a2f412ec28100005a/payments/50adfec72f412ec28100008a.json"},{"id":"50ae001e2f412ec281000093","date":"2012-11-22","payment_method":"cash","amount":"\u20ac100,000,000.00","url":"http://localhost:3000/recrea/api/v1/expenses/50adf88a2f412ec28100005a/payments/50ae001e2f412ec281000093.json"},{"id":"50ae01172f412ec28100009c","date":"2012-11-22","payment_method":"cash","amount":"\u20ac100,000,000.00","url":"http://localhost:3000/recrea/api/v1/expenses/50adf88a2f412ec28100005a/payments/50ae01172f412ec28100009c.json"},{"id":"50ae07652f412ec2810000d8","date":"2012-11-22","payment_method":"cash","amount":"\u20ac100,000,000.00","url":"http://localhost:3000/recrea/api/v1/expenses/50adf88a2f412ec28100005a/payments/50ae07652f412ec2810000d8.json"},{"id":"50ae07bf2f412ec2810000e0","date":"2012-11-22","payment_method":"cash","amount":"\u20ac100,000,000.00","url":"http://localhost:3000/recrea/api/v1/expenses/50adf88a2f412ec28100005a/payments/50ae07bf2f412ec2810000e0.json"},{"id":"50ae07f42f412ec2810000e8","date":"2012-11-22","payment_method":"cash","amount":"\u20ac100,000,000.00","url":"http://localhost:3000/recrea/api/v1/expenses/50adf88a2f412ec28100005a/payments/50ae07f42f412ec2810000e8.json"},{"id":"50ae086e2f412ec2810000f0","date":"2012-11-22","payment_method":"cash","amount":"\u20ac100,000,000.00","url":"http://localhost:3000/recrea/api/v1/expenses/50adf88a2f412ec28100005a/payments/50ae086e2f412ec2810000f0.json"},{"id":"50ae08e42f412ec2810000f8","date":"2012-11-22","payment_method":"cash","amount":"\u20ac100,000,000.00","url":"http://localhost:3000/recrea/api/v1/expenses/50adf88a2f412ec28100005a/payments/50ae08e42f412ec2810000f8.json"},{"id":"50ae092e2f412ec281000100","date":"2012-11-22","payment_method":"cash","amount":"\u20ac100,000,000.00","url":"http://localhost:3000/recrea/api/v1/expenses/50adf88a2f412ec28100005a/payments/50ae092e2f412ec281000100.json"},{"id":"50ae0b382f412ec281000107","date":"2012-11-22","payment_method":"cash","amount":"\u20ac100,000,000.00","url":"http://localhost:3000/recrea/api/v1/expenses/50adf88a2f412ec28100005a/payments/50ae0b382f412ec281000107.json"}],"tags":[],"notes":"","state":"partial","url":"http://localhost:3000/recrea/api/v1/expenses/50adf88a2f412ec28100005a.json"},{"id":"50adf26b2f412ec28100002a","number":"2","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","payments":[{"id":"50adf3562f412ec281000030","date":"2012-11-22","payment_method":"cash","amount":"\u20ac100,000,000.00","url":"http://localhost:3000/recrea/api/v1/expenses/50adf26b2f412ec28100002a/payments/50adf3562f412ec281000030.json"},{"id":"50adf3582f412ec281000035","date":"2012-11-22","payment_method":"cash","amount":"\u20ac100,000,000.00","url":"http://localhost:3000/recrea/api/v1/expenses/50adf26b2f412ec28100002a/payments/50adf3582f412ec281000035.json"},{"id":"50adf3902f412ec281000037","date":"2012-11-22","payment_method":"cash","amount":"\u20ac100,000,000.00","url":"http://localhost:3000/recrea/api/v1/expenses/50adf26b2f412ec28100002a/payments/50adf3902f412ec281000037.json"},{"id":"50adf4372f412ec28100003e","date":"2012-11-22","payment_method":"cash","amount":"\u20ac100,000,000.00","url":"http://localhost:3000/recrea/api/v1/expenses/50adf26b2f412ec28100002a/payments/50adf4372f412ec28100003e.json"},{"id":"50adf49a2f412ec281000045","date":"2012-11-22","payment_method":"cash","amount":"\u20ac100,000,000.00","url":"http://localhost:3000/recrea/api/v1/expenses/50adf26b2f412ec28100002a/payments/50adf49a2f412ec281000045.json"},{"id":"50adf6d62f412ec28100004c","date":"2012-11-22","payment_method":"cash","amount":"\u20ac100,000,000.00","url":"http://localhost:3000/recrea/api/v1/expenses/50adf26b2f412ec28100002a/payments/50adf6d62f412ec28100004c.json"},{"id":"50adf8552f412ec281000053","date":"2012-11-22","payment_method":"cash","amount":"\u20ac100,000,000.00","url":"http://localhost:3000/recrea/api/v1/expenses/50adf26b2f412ec28100002a/payments/50adf8552f412ec281000053.json"}],"tags":[],"notes":"","state":"paid","url":"http://localhost:3000/recrea/api/v1/expenses/50adf26b2f412ec28100002a.json"},{"id":"50adeefe2f412ec28100000b","number":"002","issue_date":"2012-11-22","contact":{"id":"50a23cb22f412eae4f000003","full_name":"100-499"},"po_number":"","currency":"USD","items":[{"description":"mamamama","quantity":"1.0","unit_price":"0.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":"","tax_2_name":"","tax_2_rate":"","subtotal":"$0.00","discount":"$0.00","gross_amount":"$0.00"}],"subtotal":"$0.00","discount":"$0.00","taxes":[],"total":"$0.00","payments":[{"id":"50adef1e2f412ec28100000e","date":"2012-11-22","payment_method":"cash","amount":"\u20ac100,000.00","url":"http://localhost:3000/recrea/api/v1/expenses/50adeefe2f412ec28100000b/payments/50adef1e2f412ec28100000e.json"},{"id":"50adf26b2f412ec281000028","date":"2012-11-22","payment_method":"cash","amount":"\u20ac100,000,000.00","url":"http://localhost:3000/recrea/api/v1/expenses/50adeefe2f412ec28100000b/payments/50adf26b2f412ec281000028.json"}],"tags":[],"notes":"","state":"paid","url":"http://localhost:3000/recrea/api/v1/expenses/50adeefe2f412ec28100000b.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 11:23:43 GMT
47
+ recorded_at: Tue, 14 May 2013 10:48:20 GMT
48
+ - request:
49
+ method: post
50
+ uri: http://n8sDLUZ5z1d6dYXKixnx@localhost:3000/recrea/api/v1/expenses.json
51
+ body:
52
+ 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=
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
+ - '858'
66
+ content-type:
67
+ - application/json; charset=utf-8
68
+ x-ua-compatible:
69
+ - IE=Edge
70
+ etag:
71
+ - ! '"5c8865286f7874785f2b6bd6b6f3f500"'
72
+ cache-control:
73
+ - max-age=0, private, must-revalidate
74
+ x-request-id:
75
+ - 612db843f14a1393ab9703e42a324dda
76
+ x-runtime:
77
+ - '0.428119'
78
+ connection:
79
+ - close
80
+ server:
81
+ - thin 1.5.0 codename Knife
82
+ body:
83
+ encoding: US-ASCII
84
+ string: ! '{"id":174,"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/174.json"}'
85
+ http_version: '1.1'
86
+ recorded_at: Tue, 14 May 2013 10:48:20 GMT
44
87
  - request:
45
88
  method: put
46
- uri: http://xiZvifX5hwsxAiymYPk2@localhost:3000/recrea/api/v1/expenses/50adeefe2f412ec28100000b.json
89
+ uri: http://n8sDLUZ5z1d6dYXKixnx@localhost:3000/recrea/api/v1/expenses/174.json
47
90
  body:
48
91
  encoding: US-ASCII
49
92
  string: currency=USD
50
93
  headers:
51
94
  authorization:
52
- - Basic eGladmlmWDVod3N4QWl5bVlQazI6
95
+ - Basic bjhzRExVWjV6MWQ2ZFlYS2l4bng6
53
96
  response:
54
97
  status:
55
98
  code: 200
@@ -58,28 +101,64 @@ http_interactions:
58
101
  x-ratelimit-limit:
59
102
  - '1000'
60
103
  x-ratelimit-remaining:
61
- - '984'
104
+ - '857'
62
105
  content-type:
63
106
  - application/json; charset=utf-8
64
107
  x-ua-compatible:
65
108
  - IE=Edge
66
109
  etag:
67
- - ! '"9ade8f98d4bd9155303583900fb1071a"'
110
+ - ! '"abb1704d746ef69c4b73060d8400f430"'
68
111
  cache-control:
69
112
  - max-age=0, private, must-revalidate
70
113
  x-request-id:
71
- - cdbc0dc60e03467905681ca9f998e89d
114
+ - 65e709a321662210a24442305546b28f
115
+ x-runtime:
116
+ - '0.416537'
117
+ connection:
118
+ - close
119
+ server:
120
+ - thin 1.5.0 codename Knife
121
+ body:
122
+ encoding: US-ASCII
123
+ string: ! '{"id":174,"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/174.json"}'
124
+ http_version: '1.1'
125
+ recorded_at: Tue, 14 May 2013 10:48:20 GMT
126
+ - request:
127
+ method: delete
128
+ uri: http://n8sDLUZ5z1d6dYXKixnx@localhost:3000/recrea/api/v1/expenses/174.json
129
+ body:
130
+ encoding: US-ASCII
131
+ string: ''
132
+ headers:
133
+ authorization:
134
+ - Basic bjhzRExVWjV6MWQ2ZFlYS2l4bng6
135
+ response:
136
+ status:
137
+ code: 204
138
+ message: No Content
139
+ headers:
140
+ x-ratelimit-limit:
141
+ - '1000'
142
+ x-ratelimit-remaining:
143
+ - '856'
144
+ x-ua-compatible:
145
+ - IE=Edge
146
+ cache-control:
147
+ - no-cache
148
+ set-cookie:
149
+ - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTA4M2U4ODg5YzkzOGQxYjc4ZTM1NTg2Njk0YmEzNTM4BjsAVA%3D%3D--638ac95832e51a065f0a089629ed6f939fdcf122;
150
+ path=/; HttpOnly
151
+ x-request-id:
152
+ - 0b4d52e860cda099ce60ba35cb1119d0
72
153
  x-runtime:
73
- - '0.128145'
74
- content-length:
75
- - '1039'
154
+ - '0.411252'
76
155
  connection:
77
156
  - close
78
157
  server:
79
158
  - thin 1.5.0 codename Knife
80
159
  body:
81
160
  encoding: US-ASCII
82
- string: ! '{"id":"50adeefe2f412ec28100000b","number":"002","issue_date":"2012-11-22","contact":{"id":"50a23cb22f412eae4f000003","full_name":"100-499"},"po_number":"","currency":"USD","items":[{"description":"mamamama","quantity":"1.0","unit_price":"0.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":"","tax_2_name":"","tax_2_rate":"","subtotal":"$0.00","discount":"$0.00","gross_amount":"$0.00"}],"subtotal":"$0.00","discount":"$0.00","taxes":[],"total":"$0.00","payments":[{"id":"50adef1e2f412ec28100000e","date":"2012-11-22","payment_method":"cash","amount":"\u20ac100,000.00","url":"http://localhost:3000/recrea/api/v1/expenses/50adeefe2f412ec28100000b/payments/50adef1e2f412ec28100000e.json"},{"id":"50adf26b2f412ec281000028","date":"2012-11-22","payment_method":"cash","amount":"\u20ac100,000,000.00","url":"http://localhost:3000/recrea/api/v1/expenses/50adeefe2f412ec28100000b/payments/50adf26b2f412ec281000028.json"}],"tags":[],"notes":"","state":"paid","url":"http://localhost:3000/recrea/api/v1/expenses/50adeefe2f412ec28100000b.json"}'
161
+ string: ''
83
162
  http_version: '1.1'
84
- recorded_at: Thu, 22 Nov 2012 11:23:43 GMT
163
+ recorded_at: Tue, 14 May 2013 10:48:21 GMT
85
164
  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/invoices.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
- - '968'
20
+ - '838'
21
21
  content-type:
22
22
  - application/json; charset=utf-8
23
23
  x-ua-compatible:
24
24
  - IE=Edge
25
25
  etag:
26
- - ! '"f17ef85f25a8b7cf99d9a55bbf716425"'
26
+ - ! '"d251a198e8a45af2dac75b448e48bbce"'
27
27
  cache-control:
28
28
  - max-age=0, private, must-revalidate
29
29
  x-request-id:
30
- - 845289cf884d88681d61b9a52b30bbf2
30
+ - 7fa210fd5272321edffbb21709df5011
31
31
  x-runtime:
32
- - '0.052125'
33
- content-length:
34
- - '680'
32
+ - '0.138554'
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":"50ae0c1b2f412eeb20000003","number":"0000009","issue_date":"2012-11-22","contact":{"id":"50a23cb22f412eae4f000003","full_name":"100-499"},"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,"subtotal":"\u20ac0.00","discount":"\u20ac0.00","gross_amount":"\u20ac0.00"}],"subtotal":"\u20ac0.00","discount":"\u20ac0.00","taxes":[],"total":"\u20ac0.00","payments":[],"tags":[],"payment_details":"","notes":"","state":"outstanding","url":"http://localhost:3000/recrea/api/v1/invoices/50ae0c1b2f412eeb20000003.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 11:27:26 GMT
47
+ recorded_at: Tue, 14 May 2013 10:49:03 GMT
48
+ - request:
49
+ method: post
50
+ uri: http://n8sDLUZ5z1d6dYXKixnx@localhost:3000/recrea/api/v1/invoices.json
51
+ body:
52
+ 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=
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
+ - '837'
66
+ content-type:
67
+ - application/json; charset=utf-8
68
+ x-ua-compatible:
69
+ - IE=Edge
70
+ etag:
71
+ - ! '"2a64ef4c0faac3ac44cd02c49b0e7a3e"'
72
+ cache-control:
73
+ - max-age=0, private, must-revalidate
74
+ x-request-id:
75
+ - d868f77de76b2cb6a1352c711acb8cc2
76
+ x-runtime:
77
+ - '0.458376'
78
+ connection:
79
+ - close
80
+ server:
81
+ - thin 1.5.0 codename Knife
82
+ body:
83
+ encoding: US-ASCII
84
+ string: ! '{"id":177,"number":"Especial 2o","issue_date":"2013-05-14","contact":{"id":3,"full_name":"100-499"},"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,"subtotal":"\u20ac0.00","discount":"\u20ac0.00","gross_amount":"\u20ac0.00"}],"subtotal":"\u20ac0.00","discount":"\u20ac0.00","taxes":[],"total":"\u20ac0.00","payments":[],"tags":[],"payment_details":"","notes":"","state":"draft","permalink":"http://localhost:3000/invoice/3022da0dc919927e36d54c42478c17c8080a96bf","url":"http://localhost:3000/recrea/api/v1/invoices/177.json"}'
85
+ http_version: '1.1'
86
+ recorded_at: Tue, 14 May 2013 10:49:04 GMT
44
87
  - request:
45
88
  method: put
46
- uri: http://xiZvifX5hwsxAiymYPk2@localhost:3000/recrea/api/v1/invoices/50ae0c1b2f412eeb20000003.json
89
+ uri: http://n8sDLUZ5z1d6dYXKixnx@localhost:3000/recrea/api/v1/invoices/177.json
47
90
  body:
48
91
  encoding: US-ASCII
49
92
  string: payment_details=Show%20me%20the%20moneeeeeeeyy!!!!
50
93
  headers:
51
94
  authorization:
52
- - Basic eGladmlmWDVod3N4QWl5bVlQazI6
95
+ - Basic bjhzRExVWjV6MWQ2ZFlYS2l4bng6
53
96
  response:
54
97
  status:
55
98
  code: 200
@@ -58,29 +101,65 @@ http_interactions:
58
101
  x-ratelimit-limit:
59
102
  - '1000'
60
103
  x-ratelimit-remaining:
61
- - '967'
104
+ - '836'
62
105
  content-type:
63
106
  - application/json; charset=utf-8
64
107
  x-ua-compatible:
65
108
  - IE=Edge
66
109
  etag:
67
- - ! '"097465be6a8013387d07f60523eca09f"'
110
+ - ! '"fc581128f884c17017d1965a0bd9a738"'
68
111
  cache-control:
69
112
  - max-age=0, private, must-revalidate
70
113
  x-request-id:
71
- - 012cc5c04a8215130775f42a983e5670
114
+ - 6917c3d2df63fe8cac371cc12eee84c9
115
+ x-runtime:
116
+ - '0.547812'
117
+ connection:
118
+ - close
119
+ server:
120
+ - thin 1.5.0 codename Knife
121
+ body:
122
+ encoding: US-ASCII
123
+ string: ! '{"id":177,"number":"Especial 2o","issue_date":"2013-05-14","contact":{"id":3,"full_name":"100-499"},"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,"subtotal":"\u20ac0.00","discount":"\u20ac0.00","gross_amount":"\u20ac0.00"}],"subtotal":"\u20ac0.00","discount":"\u20ac0.00","taxes":[],"total":"\u20ac0.00","payments":[],"tags":[],"payment_details":"Show
124
+ me the moneeeeeeeyy!!!!","notes":"","state":"draft","permalink":"http://localhost:3000/invoice/3022da0dc919927e36d54c42478c17c8080a96bf","url":"http://localhost:3000/recrea/api/v1/invoices/177.json"}'
125
+ http_version: '1.1'
126
+ recorded_at: Tue, 14 May 2013 10:49:04 GMT
127
+ - request:
128
+ method: delete
129
+ uri: http://n8sDLUZ5z1d6dYXKixnx@localhost:3000/recrea/api/v1/invoices/177.json
130
+ body:
131
+ encoding: US-ASCII
132
+ string: ''
133
+ headers:
134
+ authorization:
135
+ - Basic bjhzRExVWjV6MWQ2ZFlYS2l4bng6
136
+ response:
137
+ status:
138
+ code: 204
139
+ message: No Content
140
+ headers:
141
+ x-ratelimit-limit:
142
+ - '1000'
143
+ x-ratelimit-remaining:
144
+ - '835'
145
+ x-ua-compatible:
146
+ - IE=Edge
147
+ cache-control:
148
+ - no-cache
149
+ set-cookie:
150
+ - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTYwMjgwMDI3ODY2MjVlMGQ4ZDgwMzZiYjQ0MDE2ZTRmBjsAVA%3D%3D--f94367eafb8c4e2c5080c99f55ee94d9ecce98a9;
151
+ path=/; HttpOnly
152
+ x-request-id:
153
+ - f76760df40f0f3e91993b4ef69f25771
72
154
  x-runtime:
73
- - '0.065586'
74
- content-length:
75
- - '706'
155
+ - '0.498920'
76
156
  connection:
77
157
  - close
78
158
  server:
79
159
  - thin 1.5.0 codename Knife
80
160
  body:
81
161
  encoding: US-ASCII
82
- string: ! '{"id":"50ae0c1b2f412eeb20000003","number":"0000009","issue_date":"2012-11-22","contact":{"id":"50a23cb22f412eae4f000003","full_name":"100-499"},"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,"subtotal":"\u20ac0.00","discount":"\u20ac0.00","gross_amount":"\u20ac0.00"}],"subtotal":"\u20ac0.00","discount":"\u20ac0.00","taxes":[],"total":"\u20ac0.00","payments":[],"tags":[],"payment_details":"Show
83
- me the moneeeeeeeyy!!!!","notes":"","state":"outstanding","url":"http://localhost:3000/recrea/api/v1/invoices/50ae0c1b2f412eeb20000003.json"}'
162
+ string: ''
84
163
  http_version: '1.1'
85
- recorded_at: Thu, 22 Nov 2012 11:27:26 GMT
164
+ recorded_at: Tue, 14 May 2013 10:49:05 GMT
86
165
  recorded_with: VCR 2.3.0