quaderno 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/VERSION +1 -1
- data/build_install.sh +2 -2
- data/lib/quaderno-ruby/behavior/crud.rb +7 -3
- data/lib/quaderno-ruby/document_item.rb +4 -0
- data/lib/quaderno-ruby/item.rb +6 -2
- data/lib/quaderno-ruby.rb +1 -1
- data/quaderno-1.0.0.gem +0 -0
- data/{quaderno-ruby.gemspec → quaderno.gemspec} +14 -6
- data/test/fixtures/quaderno_cassettes/all_contacts.yml +14 -12
- data/test/fixtures/quaderno_cassettes/all_estimates.yml +14 -10
- data/test/fixtures/quaderno_cassettes/all_expenses.yml +14 -10
- data/test/fixtures/quaderno_cassettes/all_invoices.yml +25 -10
- data/test/fixtures/quaderno_cassettes/all_items.yml +42 -0
- data/test/fixtures/quaderno_cassettes/deleted_contact.yml +75 -31
- data/test/fixtures/quaderno_cassettes/deleted_estimate.yml +74 -27
- data/test/fixtures/quaderno_cassettes/deleted_expense.yml +74 -27
- data/test/fixtures/quaderno_cassettes/deleted_invoice.yml +85 -28
- data/test/fixtures/quaderno_cassettes/deleted_item.yml +119 -0
- data/test/fixtures/quaderno_cassettes/delivered_estimate.yml +30 -29
- data/test/fixtures/quaderno_cassettes/delivered_invoice.yml +41 -29
- data/test/fixtures/quaderno_cassettes/found_contact.yml +22 -22
- data/test/fixtures/quaderno_cassettes/found_estimate.yml +24 -20
- data/test/fixtures/quaderno_cassettes/found_expense.yml +22 -20
- data/test/fixtures/quaderno_cassettes/found_invoice.yml +34 -20
- data/test/fixtures/quaderno_cassettes/found_item.yml +81 -0
- data/test/fixtures/quaderno_cassettes/new_contact.yml +10 -12
- data/test/fixtures/quaderno_cassettes/new_estimate.yml +63 -25
- data/test/fixtures/quaderno_cassettes/new_expense.yml +77 -35
- data/test/fixtures/quaderno_cassettes/new_invoice.yml +63 -25
- data/test/fixtures/quaderno_cassettes/new_item.yml +42 -0
- data/test/fixtures/quaderno_cassettes/paid_expense.yml +25 -23
- data/test/fixtures/quaderno_cassettes/paid_invoice.yml +36 -24
- data/test/fixtures/quaderno_cassettes/rate_limit.yml +6 -8
- data/test/fixtures/quaderno_cassettes/unpay_an_expense.yml +32 -30
- data/test/fixtures/quaderno_cassettes/unpay_an_invoice.yml +43 -30
- data/test/fixtures/quaderno_cassettes/updated_contact.yml +22 -22
- data/test/fixtures/quaderno_cassettes/updated_estimate.yml +100 -21
- data/test/fixtures/quaderno_cassettes/updated_expense.yml +99 -20
- data/test/fixtures/quaderno_cassettes/updated_invoice.yml +100 -21
- data/test/fixtures/quaderno_cassettes/updated_item.yml +81 -0
- data/test/unit/test_quaderno_contacts.rb +5 -4
- data/test/unit/test_quaderno_estimates.rb +37 -9
- data/test/unit/test_quaderno_expenses.rb +38 -14
- data/test/unit/test_quaderno_invoices.rb +40 -12
- data/test/unit/test_quaderno_items.rb +82 -0
- metadata +12 -4
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://
|
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
|
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
|
-
- '
|
20
|
+
- '869'
|
21
21
|
content-type:
|
22
22
|
- application/json; charset=utf-8
|
23
23
|
x-ua-compatible:
|
24
24
|
- IE=Edge
|
25
25
|
etag:
|
26
|
-
- ! '"
|
26
|
+
- ! '"d251a198e8a45af2dac75b448e48bbce"'
|
27
27
|
cache-control:
|
28
28
|
- max-age=0, private, must-revalidate
|
29
29
|
x-request-id:
|
30
|
-
-
|
30
|
+
- cf05f581d0ba6c7c0ca406cbdced1857
|
31
31
|
x-runtime:
|
32
|
-
- '0.
|
33
|
-
content-length:
|
34
|
-
- '7918'
|
32
|
+
- '0.393825'
|
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":
|
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:
|
47
|
+
recorded_at: Tue, 14 May 2013 10:48:14 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¤cy=EUR&items_attributes[][description]=Aircraft&items_attributes[][quantity]=1.0&items_attributes[][unit_price]=0.0&tags=tnt&payment_details=¬es=
|
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
|
+
- '868'
|
66
|
+
content-type:
|
67
|
+
- application/json; charset=utf-8
|
68
|
+
x-ua-compatible:
|
69
|
+
- IE=Edge
|
70
|
+
etag:
|
71
|
+
- ! '"f2cc61bb88de533c69f5769128e55007"'
|
72
|
+
cache-control:
|
73
|
+
- max-age=0, private, must-revalidate
|
74
|
+
x-request-id:
|
75
|
+
- d2486d01e9f10e2e53a838b30883efc4
|
76
|
+
x-runtime:
|
77
|
+
- '0.427446'
|
78
|
+
connection:
|
79
|
+
- close
|
80
|
+
server:
|
81
|
+
- thin 1.5.0 codename Knife
|
82
|
+
body:
|
83
|
+
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"}'
|
85
|
+
http_version: '1.1'
|
86
|
+
recorded_at: Tue, 14 May 2013 10:48:15 GMT
|
44
87
|
- request:
|
45
88
|
method: delete
|
46
|
-
uri: http://
|
89
|
+
uri: http://n8sDLUZ5z1d6dYXKixnx@localhost:3000/recrea/api/v1/expenses/173.json
|
47
90
|
body:
|
48
91
|
encoding: US-ASCII
|
49
92
|
string: ''
|
50
93
|
headers:
|
51
94
|
authorization:
|
52
|
-
- Basic
|
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
|
-
- '
|
104
|
+
- '867'
|
62
105
|
x-ua-compatible:
|
63
106
|
- IE=Edge
|
64
107
|
cache-control:
|
65
108
|
- no-cache
|
66
109
|
set-cookie:
|
67
|
-
- _quaderno_session=
|
110
|
+
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWQ3MDhkM2UzNGM0OWYxYmYxNmE4MDhiOTdhMzVlOGJhBjsAVA%3D%3D--62c789b6380843e22aeaaf5c082ee3d7e783c07c;
|
68
111
|
path=/; HttpOnly
|
69
112
|
x-request-id:
|
70
|
-
-
|
113
|
+
- 77ad9441bc27a111c60299871bd33e42
|
71
114
|
x-runtime:
|
72
|
-
- '0.
|
115
|
+
- '0.374088'
|
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:
|
124
|
+
recorded_at: Tue, 14 May 2013 10:48:15 GMT
|
82
125
|
- request:
|
83
126
|
method: get
|
84
|
-
uri: http://
|
127
|
+
uri: http://n8sDLUZ5z1d6dYXKixnx@localhost:3000/recrea/api/v1/expenses.json
|
85
128
|
body:
|
86
129
|
encoding: US-ASCII
|
87
130
|
string: ''
|
88
131
|
headers:
|
89
132
|
authorization:
|
90
|
-
- Basic
|
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
|
-
- '
|
142
|
+
- '866'
|
100
143
|
content-type:
|
101
144
|
- application/json; charset=utf-8
|
102
145
|
x-ua-compatible:
|
103
146
|
- IE=Edge
|
104
147
|
etag:
|
105
|
-
- ! '"
|
148
|
+
- ! '"0343d45fbd7e9ebd87c36d92a32f7014"'
|
106
149
|
cache-control:
|
107
150
|
- max-age=0, private, must-revalidate
|
108
151
|
x-request-id:
|
109
|
-
-
|
152
|
+
- 21b21b659d8fa6eccc1b71e5bb17adec
|
110
153
|
x-runtime:
|
111
|
-
- '0.
|
112
|
-
content-length:
|
113
|
-
- '7282'
|
154
|
+
- '0.584686'
|
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":
|
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"}]'
|
121
168
|
http_version: '1.1'
|
122
|
-
recorded_at:
|
169
|
+
recorded_at: Tue, 14 May 2013 10:48:16 GMT
|
123
170
|
recorded_with: VCR 2.3.0
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://
|
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
|
11
|
+
- Basic bjhzRExVWjV6MWQ2ZFlYS2l4bng6
|
12
12
|
response:
|
13
13
|
status:
|
14
14
|
code: 200
|
@@ -17,40 +17,82 @@ http_interactions:
|
|
17
17
|
x-ratelimit-limit:
|
18
18
|
- '1000'
|
19
19
|
x-ratelimit-remaining:
|
20
|
-
- '
|
20
|
+
- '850'
|
21
21
|
content-type:
|
22
22
|
- application/json; charset=utf-8
|
23
23
|
x-ua-compatible:
|
24
24
|
- IE=Edge
|
25
25
|
etag:
|
26
|
-
- ! '"
|
26
|
+
- ! '"d251a198e8a45af2dac75b448e48bbce"'
|
27
27
|
cache-control:
|
28
28
|
- max-age=0, private, must-revalidate
|
29
29
|
x-request-id:
|
30
|
-
-
|
30
|
+
- 019b00e51f97696616eee3d06f165def
|
31
31
|
x-runtime:
|
32
|
-
- '0.
|
33
|
-
content-length:
|
34
|
-
- '1600'
|
32
|
+
- '0.140220'
|
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":
|
42
|
-
|
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"}]'
|
43
46
|
http_version: '1.1'
|
44
|
-
recorded_at:
|
47
|
+
recorded_at: Tue, 14 May 2013 10:48:52 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¤cy=EUR&items_attributes[][description]=Aircraft&items_attributes[][quantity]=1.0&items_attributes[][unit_price]=0.0&tags=tnt&payment_details=¬es=
|
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
|
+
- '849'
|
66
|
+
content-type:
|
67
|
+
- application/json; charset=utf-8
|
68
|
+
x-ua-compatible:
|
69
|
+
- IE=Edge
|
70
|
+
etag:
|
71
|
+
- ! '"baf0095187539ec11658d782d15b8f39"'
|
72
|
+
cache-control:
|
73
|
+
- max-age=0, private, must-revalidate
|
74
|
+
x-request-id:
|
75
|
+
- 94a223678ab3176ca4d74460bdd0bcc3
|
76
|
+
x-runtime:
|
77
|
+
- '0.451376'
|
78
|
+
connection:
|
79
|
+
- close
|
80
|
+
server:
|
81
|
+
- thin 1.5.0 codename Knife
|
82
|
+
body:
|
83
|
+
encoding: US-ASCII
|
84
|
+
string: ! '{"id":176,"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/40c21fad0f2d2b86a2a2561786e4087eb0360661","url":"http://localhost:3000/recrea/api/v1/invoices/176.json"}'
|
85
|
+
http_version: '1.1'
|
86
|
+
recorded_at: Tue, 14 May 2013 10:48:53 GMT
|
45
87
|
- request:
|
46
88
|
method: delete
|
47
|
-
uri: http://
|
89
|
+
uri: http://n8sDLUZ5z1d6dYXKixnx@localhost:3000/recrea/api/v1/invoices/176.json
|
48
90
|
body:
|
49
91
|
encoding: US-ASCII
|
50
92
|
string: ''
|
51
93
|
headers:
|
52
94
|
authorization:
|
53
|
-
- Basic
|
95
|
+
- Basic bjhzRExVWjV6MWQ2ZFlYS2l4bng6
|
54
96
|
response:
|
55
97
|
status:
|
56
98
|
code: 204
|
@@ -59,18 +101,18 @@ http_interactions:
|
|
59
101
|
x-ratelimit-limit:
|
60
102
|
- '1000'
|
61
103
|
x-ratelimit-remaining:
|
62
|
-
- '
|
104
|
+
- '848'
|
63
105
|
x-ua-compatible:
|
64
106
|
- IE=Edge
|
65
107
|
cache-control:
|
66
108
|
- no-cache
|
67
109
|
set-cookie:
|
68
|
-
- _quaderno_session=
|
110
|
+
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTU0MzcwZjQwZjJmYWUyY2E4NjU0N2FiMTgyZDlmODc0BjsAVA%3D%3D--30459a2c1db61ac4784fecb3df88fcca70f4a2c9;
|
69
111
|
path=/; HttpOnly
|
70
112
|
x-request-id:
|
71
|
-
-
|
113
|
+
- d332973080542681bef3d03db25ddb3a
|
72
114
|
x-runtime:
|
73
|
-
- '0.
|
115
|
+
- '0.381459'
|
74
116
|
connection:
|
75
117
|
- close
|
76
118
|
server:
|
@@ -79,16 +121,16 @@ http_interactions:
|
|
79
121
|
encoding: US-ASCII
|
80
122
|
string: ''
|
81
123
|
http_version: '1.1'
|
82
|
-
recorded_at:
|
124
|
+
recorded_at: Tue, 14 May 2013 10:48:53 GMT
|
83
125
|
- request:
|
84
126
|
method: get
|
85
|
-
uri: http://
|
127
|
+
uri: http://n8sDLUZ5z1d6dYXKixnx@localhost:3000/recrea/api/v1/invoices.json
|
86
128
|
body:
|
87
129
|
encoding: US-ASCII
|
88
130
|
string: ''
|
89
131
|
headers:
|
90
132
|
authorization:
|
91
|
-
- Basic
|
133
|
+
- Basic bjhzRExVWjV6MWQ2ZFlYS2l4bng6
|
92
134
|
response:
|
93
135
|
status:
|
94
136
|
code: 200
|
@@ -97,28 +139,43 @@ http_interactions:
|
|
97
139
|
x-ratelimit-limit:
|
98
140
|
- '1000'
|
99
141
|
x-ratelimit-remaining:
|
100
|
-
- '
|
142
|
+
- '847'
|
101
143
|
content-type:
|
102
144
|
- application/json; charset=utf-8
|
103
145
|
x-ua-compatible:
|
104
146
|
- IE=Edge
|
105
147
|
etag:
|
106
|
-
- ! '"
|
148
|
+
- ! '"51b398d1d3c6431306b8eadbf2d6efd0"'
|
107
149
|
cache-control:
|
108
150
|
- max-age=0, private, must-revalidate
|
109
151
|
x-request-id:
|
110
|
-
-
|
152
|
+
- 534a5f88fef1f6112f588188d86daf31
|
111
153
|
x-runtime:
|
112
|
-
- '
|
113
|
-
content-length:
|
114
|
-
- '674'
|
154
|
+
- '1.636440'
|
115
155
|
connection:
|
116
156
|
- close
|
117
157
|
server:
|
118
158
|
- thin 1.5.0 codename Knife
|
119
159
|
body:
|
120
160
|
encoding: US-ASCII
|
121
|
-
string: ! '[{"id":
|
161
|
+
string: ! '[{"id":145,"number":"Especial 2n","issue_date":"2013-05-13","contact":{"id":4,"full_name":"Test_OCP
|
162
|
+
Doe"},"po_number":"","due_date":null,"currency":"EUR","items":[{"description":"Argo","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":[{"id":9,"date":"2013-05-14","payment_method":"cash","amount":"\u20ac21,474,836.47","url":"http://localhost:3000/recrea/api/v1/invoices/145/payments/9.json"},{"id":13,"date":"2013-05-14","payment_method":"cash","amount":"\u20ac21,474,836.47","url":"http://localhost:3000/recrea/api/v1/invoices/145/payments/13.json"}],"tags":[],"payment_details":"","notes":"","state":"paid","permalink":"http://localhost:3000/invoice/fbdd4529b5d28bff9df7447cb1dcf7688c0667ad","url":"http://localhost:3000/recrea/api/v1/invoices/145.json"},{"id":144,"number":"Especial
|
163
|
+
1","issue_date":"2013-05-13","contact":{"id":4,"full_name":"Test_OCP Doe"},"po_number":"","due_date":null,"currency":"EUR","items":[{"description":"Argo","quantity":"1.0","unit_price":"0.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"subtotal":"\u20ac0.00","discount":"\u20ac0.00","gross_amount":"\u20ac0.00"}],"subtotal":"\u20ac0.00","discount":"\u20ac0.00","taxes":[],"total":"\u20ac0.00","payments":[],"tags":[],"payment_details":"","notes":"","state":"draft","permalink":"http://localhost:3000/invoice/40453f9f6a2b8e40ad656e7c944164506b453697","url":"http://localhost:3000/recrea/api/v1/invoices/144.json"},{"id":143,"number":"Especial","issue_date":"2013-05-13","contact":{"id":4,"full_name":"Test_OCP
|
164
|
+
Doe"},"po_number":"","due_date":null,"currency":"EUR","items":[{"description":"Esto
|
165
|
+
es una prueba","quantity":"1.0","unit_price":"0.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"subtotal":"\u20ac0.00","discount":"\u20ac0.00","gross_amount":"\u20ac0.00"}],"subtotal":"\u20ac0.00","discount":"\u20ac0.00","taxes":[],"total":"\u20ac0.00","payments":[],"tags":[],"payment_details":"","notes":"","state":"draft","permalink":"http://localhost:3000/invoice/51f2bdaafd44f519bc62a48022373b33c3ce1a82","url":"http://localhost:3000/recrea/api/v1/invoices/143.json"},{"id":142,"number":"Albar\u00e1n","issue_date":"2013-05-13","contact":{"id":4,"full_name":"Test_OCP
|
166
|
+
Doe"},"po_number":"","due_date":null,"currency":"EUR","items":[{"description":"Argo","quantity":"1.0","unit_price":"0.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"subtotal":"\u20ac0.00","discount":"\u20ac0.00","gross_amount":"\u20ac0.00"}],"subtotal":"\u20ac0.00","discount":"\u20ac0.00","taxes":[],"total":"\u20ac0.00","payments":[],"tags":[],"payment_details":"","notes":"","state":"draft","permalink":"http://localhost:3000/invoice/1e71c9841124cb281cb03285eeb5ffb598cf0a7d","url":"http://localhost:3000/recrea/api/v1/invoices/142.json"},{"id":36,"number":"0000015","issue_date":"2013-05-07","contact":{"id":4,"full_name":"Test_OCP
|
167
|
+
Doe"},"po_number":"","due_date":null,"currency":"EUR","items":[{"description":"Fruta
|
168
|
+
confitada extinta","quantity":"1.0","unit_price":"1020.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"subtotal":"\u20ac1,020.00","discount":"\u20ac0.00","gross_amount":"\u20ac1,020.00"}],"subtotal":"\u20ac1,020.00","discount":"\u20ac0.00","taxes":[],"total":"\u20ac1,020.00","payments":[],"tags":[],"payment_details":"","notes":"","state":"draft","permalink":"http://localhost:3000/invoice/c0459b81a77dbf8ee70a154043620a7a746c28dc","url":"http://localhost:3000/recrea/api/v1/invoices/36.json"},{"id":34,"number":"0000014","issue_date":"2013-05-03","contact":{"id":1,"full_name":"Recrea
|
169
|
+
Systems, SLU"},"po_number":"","due_date":null,"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","payments":[],"tags":[],"payment_details":"","notes":"","state":"draft","permalink":"http://localhost:3000/invoice/1cb73ebbd8edfa4b56de4b48f8207b9d46f0e8ea","url":"http://localhost:3000/recrea/api/v1/invoices/34.json"},{"id":33,"number":"0000013","issue_date":"2013-04-25","contact":{"id":2,"full_name":"Test_OCP"},"po_number":"","due_date":null,"currency":"EUR","items":[{"description":"Something","quantity":"1.0","unit_price":"500.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"subtotal":"\u20ac500.00","discount":"\u20ac0.00","gross_amount":"\u20ac500.00"}],"subtotal":"\u20ac500.00","discount":"\u20ac0.00","taxes":[],"total":"\u20ac500.00","payments":[],"tags":[],"payment_details":"","notes":"","state":"draft","permalink":"http://localhost:3000/invoice/7abb69050e67dcb9193f1b0d7adabb4ab41a9369","url":"http://localhost:3000/recrea/api/v1/invoices/33.json"},{"id":6,"number":"0000006","issue_date":"2013-04-25","contact":{"id":5,"full_name":"Stark
|
170
|
+
Industries"},"po_number":"","due_date":null,"currency":"EUR","items":[{"description":"Something","quantity":"1.0","unit_price":"1.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"subtotal":"\u20ac1.00","discount":"\u20ac0.00","gross_amount":"\u20ac1.00"}],"subtotal":"\u20ac1.00","discount":"\u20ac0.00","taxes":[],"total":"\u20ac1.00","payments":[{"id":2,"date":"2013-04-25","payment_method":"credit_card","amount":"\u20ac1.00","url":"http://localhost:3000/recrea/api/v1/invoices/6/payments/2.json"}],"tags":[],"payment_details":"","notes":"","state":"paid","permalink":"http://localhost:3000/invoice/424dee0dee657ea34e1d7986e0e61d2aa819d3ca","url":"http://localhost:3000/recrea/api/v1/invoices/6.json"},{"id":5,"number":"0000005","issue_date":"2013-04-25","contact":{"id":6,"full_name":"ACME"},"po_number":"","due_date":null,"currency":"EUR","items":[{"description":"Something","quantity":"1.0","unit_price":"500.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"subtotal":"\u20ac500.00","discount":"\u20ac0.00","gross_amount":"\u20ac500.00"}],"subtotal":"\u20ac500.00","discount":"\u20ac0.00","taxes":[],"total":"\u20ac500.00","payments":[],"tags":[],"payment_details":"","notes":"","state":"draft","permalink":"http://localhost:3000/invoice/743ce168d9f722ce3c76bbe11d4fdf71023595c1","url":"http://localhost:3000/recrea/api/v1/invoices/5.json"},{"id":4,"number":"0000004","issue_date":"2013-04-25","contact":{"id":5,"full_name":"Stark
|
171
|
+
Industries"},"po_number":"","due_date":null,"currency":"EUR","items":[{"description":"Something","quantity":"1.0","unit_price":"0.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"subtotal":"\u20ac0.00","discount":"\u20ac0.00","gross_amount":"\u20ac0.00"}],"subtotal":"\u20ac0.00","discount":"\u20ac0.00","taxes":[],"total":"\u20ac0.00","payments":[],"tags":[],"payment_details":"","notes":"","state":"draft","permalink":"http://localhost:3000/invoice/60004740156eeaa8eb30557e3e00de4114665214","url":"http://localhost:3000/recrea/api/v1/invoices/4.json"},{"id":3,"number":"0000003","issue_date":"2013-04-25","contact":{"id":2,"full_name":"Test_OCP"},"po_number":"","due_date":null,"currency":"EUR","items":[{"description":"Something","quantity":"1.0","unit_price":"300.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"subtotal":"\u20ac300.00","discount":"\u20ac0.00","gross_amount":"\u20ac300.00"}],"subtotal":"\u20ac300.00","discount":"\u20ac0.00","taxes":[],"total":"\u20ac300.00","payments":[{"id":1,"date":"2013-04-25","payment_method":"credit_card","amount":"\u20ac200.00","url":"http://localhost:3000/recrea/api/v1/invoices/3/payments/1.json"}],"tags":[],"payment_details":"","notes":"","state":"partial","permalink":"http://localhost:3000/invoice/f79f2bbf9cc77a4ed40cadbe6a28bfccd7434f59","url":"http://localhost:3000/recrea/api/v1/invoices/3.json"},{"id":2,"number":"0000002","issue_date":"2013-04-25","contact":{"id":1,"full_name":"Recrea
|
172
|
+
Systems, SLU"},"po_number":"","due_date":null,"currency":"EUR","items":[{"description":"Something","quantity":"1.0","unit_price":"0.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"subtotal":"\u20ac0.00","discount":"\u20ac0.00","gross_amount":"\u20ac0.00"}],"subtotal":"\u20ac0.00","discount":"\u20ac0.00","taxes":[],"total":"\u20ac0.00","payments":[],"tags":[],"payment_details":"","notes":"","state":"draft","permalink":"http://localhost:3000/invoice/000b601d72e4746709615cfde2dda5d00d6cd96c","url":"http://localhost:3000/recrea/api/v1/invoices/2.json"},{"id":1,"number":"0000001","issue_date":"2013-04-25","contact":{"id":4,"full_name":"Test_OCP
|
173
|
+
Doe"},"po_number":"","due_date":null,"currency":"EUR","items":[{"description":"Something","quantity":"1.0","unit_price":"0.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"subtotal":"\u20ac0.00","discount":"\u20ac0.00","gross_amount":"\u20ac0.00"}],"subtotal":"\u20ac0.00","discount":"\u20ac0.00","taxes":[],"total":"\u20ac0.00","payments":[],"tags":[],"payment_details":"","notes":"","state":"draft","permalink":"http://localhost:3000/invoice/4591356c9941530887dfa0bf64d70e3182a0e17f","url":"http://localhost:3000/recrea/api/v1/invoices/1.json"},{"id":23,"number":"0000011","issue_date":"2013-04-24","contact":{"id":4,"full_name":"Test_OCP
|
174
|
+
Doe"},"po_number":"","due_date":null,"currency":"EUR","items":[{"description":"Tarta
|
175
|
+
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","payments":[],"tags":[],"payment_details":"","notes":"","state":"draft","permalink":"http://localhost:3000/invoice/cde1cd7fec93f0c7f161cd2652e80366ac82f6f2","url":"http://localhost:3000/recrea/api/v1/invoices/23.json"},{"id":20,"number":"0000010","issue_date":"2013-04-24","contact":{"id":4,"full_name":"Test_OCP
|
176
|
+
Doe"},"po_number":"","due_date":null,"currency":"EUR","items":[{"description":"Tarta","quantity":"1.0","unit_price":"10.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"subtotal":"\u20ac10.00","discount":"\u20ac0.00","gross_amount":"\u20ac10.00"}],"subtotal":"\u20ac10.00","discount":"\u20ac0.00","taxes":[],"total":"\u20ac10.00","payments":[{"id":3,"date":"2013-04-24","payment_method":"credit_card","amount":"\u20ac10.00","url":"http://localhost:3000/recrea/api/v1/invoices/20/payments/3.json"}],"tags":[],"payment_details":"","notes":"","state":"paid","permalink":"http://localhost:3000/invoice/a734db784992e0d6a338950747596c4a7b49cf4a","url":"http://localhost:3000/recrea/api/v1/invoices/20.json"},{"id":18,"number":"0000008","issue_date":"2013-04-24","contact":{"id":1,"full_name":"Recrea
|
177
|
+
Systems, SLU"},"po_number":"","due_date":null,"currency":"EUR","items":[{"description":"Pizza","quantity":"1.0","unit_price":"20.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"subtotal":"\u20ac20.00","discount":"\u20ac0.00","gross_amount":"\u20ac20.00"}],"subtotal":"\u20ac20.00","discount":"\u20ac0.00","taxes":[],"total":"\u20ac20.00","payments":[],"tags":[],"payment_details":"","notes":"","state":"draft","permalink":"http://localhost:3000/invoice/8cdeb9921a94dab43ec8085c10f0f2f640433b9e","url":"http://localhost:3000/recrea/api/v1/invoices/18.json"},{"id":17,"number":"0000007","issue_date":"2013-04-24","contact":{"id":7,"full_name":"Test_OCP"},"po_number":"","due_date":null,"currency":"EUR","items":[{"description":"Hola","quantity":"1.0","unit_price":"0.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"subtotal":"\u20ac0.00","discount":"\u20ac0.00","gross_amount":"\u20ac0.00"}],"subtotal":"\u20ac0.00","discount":"\u20ac0.00","taxes":[],"total":"\u20ac0.00","payments":[],"tags":[],"payment_details":"","notes":"","state":"draft","permalink":"http://localhost:3000/invoice/7717368283d6469873012547c9a16755e51bcfa6","url":"http://localhost:3000/recrea/api/v1/invoices/17.json"},{"id":24,"number":"0000012","issue_date":"2013-03-24","contact":{"id":5,"full_name":"Stark
|
178
|
+
Industries"},"po_number":"","due_date":null,"currency":"EUR","items":[{"description":"tornillos","quantity":"100.0","unit_price":"5.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"subtotal":"\u20ac500.00","discount":"\u20ac0.00","gross_amount":"\u20ac500.00"}],"subtotal":"\u20ac500.00","discount":"\u20ac0.00","taxes":[],"total":"\u20ac500.00","payments":[],"tags":[],"payment_details":"","notes":"","state":"draft","permalink":"http://localhost:3000/invoice/06bf2c3d7c635925bf41385e7baa411dbab36b4d","url":"http://localhost:3000/recrea/api/v1/invoices/24.json"},{"id":19,"number":"0000009","issue_date":"2013-02-23","contact":{"id":2,"full_name":"Test_OCP"},"po_number":"","due_date":null,"currency":"EUR","items":[{"description":"Tarta","quantity":"1.0","unit_price":"10.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"subtotal":"\u20ac10.00","discount":"\u20ac0.00","gross_amount":"\u20ac10.00"}],"subtotal":"\u20ac10.00","discount":"\u20ac0.00","taxes":[],"total":"\u20ac10.00","payments":[],"tags":[],"payment_details":"","notes":"","state":"draft","permalink":"http://localhost:3000/invoice/e6511ed82cdcb6eec8d3eac322080fdbe2b8a02e","url":"http://localhost:3000/recrea/api/v1/invoices/19.json"}]'
|
122
179
|
http_version: '1.1'
|
123
|
-
recorded_at:
|
180
|
+
recorded_at: Tue, 14 May 2013 10:48:55 GMT
|
124
181
|
recorded_with: VCR 2.3.0
|