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
|
+
- '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
|
-
- ! '"
|
26
|
+
- ! '"d251a198e8a45af2dac75b448e48bbce"'
|
27
27
|
cache-control:
|
28
28
|
- max-age=0, private, must-revalidate
|
29
29
|
x-request-id:
|
30
|
-
-
|
30
|
+
- 29f72cdc34b69ab6351aaaf8cbea1b30
|
31
31
|
x-runtime:
|
32
|
-
- '0.
|
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":
|
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: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¤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
|
+
- '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://
|
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
|
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
|
-
- '
|
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
|
-
- ! '"
|
110
|
+
- ! '"f832a91f5aa53a3665d80a65808adb19"'
|
68
111
|
cache-control:
|
69
112
|
- max-age=0, private, must-revalidate
|
70
113
|
x-request-id:
|
71
|
-
-
|
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.
|
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:
|
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:
|
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://
|
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
|
+
- '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
|
-
- ! '"
|
26
|
+
- ! '"d251a198e8a45af2dac75b448e48bbce"'
|
27
27
|
cache-control:
|
28
28
|
- max-age=0, private, must-revalidate
|
29
29
|
x-request-id:
|
30
|
-
-
|
30
|
+
- 8d51cafdf225a9d871604791897a0298
|
31
31
|
x-runtime:
|
32
|
-
- '0.
|
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":
|
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: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¤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
|
+
- '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://
|
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
|
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
|
-
- '
|
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
|
-
- ! '"
|
110
|
+
- ! '"abb1704d746ef69c4b73060d8400f430"'
|
68
111
|
cache-control:
|
69
112
|
- max-age=0, private, must-revalidate
|
70
113
|
x-request-id:
|
71
|
-
-
|
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.
|
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:
|
161
|
+
string: ''
|
83
162
|
http_version: '1.1'
|
84
|
-
recorded_at:
|
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://
|
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
|
+
- '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
|
-
- ! '"
|
26
|
+
- ! '"d251a198e8a45af2dac75b448e48bbce"'
|
27
27
|
cache-control:
|
28
28
|
- max-age=0, private, must-revalidate
|
29
29
|
x-request-id:
|
30
|
-
-
|
30
|
+
- 7fa210fd5272321edffbb21709df5011
|
31
31
|
x-runtime:
|
32
|
-
- '0.
|
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":
|
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: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¤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
|
+
- '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://
|
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
|
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
|
-
- '
|
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
|
-
- ! '"
|
110
|
+
- ! '"fc581128f884c17017d1965a0bd9a738"'
|
68
111
|
cache-control:
|
69
112
|
- max-age=0, private, must-revalidate
|
70
113
|
x-request-id:
|
71
|
-
-
|
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.
|
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:
|
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:
|
164
|
+
recorded_at: Tue, 14 May 2013 10:49:05 GMT
|
86
165
|
recorded_with: VCR 2.3.0
|