quaderno 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +6 -7
- data/Gemfile.lock +0 -9
- data/README.md +6 -2
- data/VERSION +1 -1
- data/build_install.sh +1 -1
- data/changelog.md +4 -0
- data/lib/quaderno-ruby/base.rb +10 -2
- data/lib/quaderno-ruby/behavior/crud.rb +0 -1
- data/lib/quaderno-ruby.rb +0 -2
- data/quaderno.gemspec +6 -25
- data/test/fixtures/quaderno_cassettes/all_contacts.yml +23 -18
- data/test/fixtures/quaderno_cassettes/all_estimates.yml +35 -18
- data/test/fixtures/quaderno_cassettes/all_expenses.yml +38 -18
- data/test/fixtures/quaderno_cassettes/all_invoices.yml +35 -29
- data/test/fixtures/quaderno_cassettes/all_items.yml +17 -12
- data/test/fixtures/quaderno_cassettes/all_webhooks.yml +84 -68
- data/test/fixtures/quaderno_cassettes/deleted_contact.yml +81 -62
- data/test/fixtures/quaderno_cassettes/deleted_estimate.yml +96 -62
- data/test/fixtures/quaderno_cassettes/deleted_expense.yml +99 -62
- data/test/fixtures/quaderno_cassettes/deleted_invoice.yml +96 -73
- data/test/fixtures/quaderno_cassettes/deleted_item.yml +49 -37
- data/test/fixtures/quaderno_cassettes/deleted_webhook.yml +100 -80
- data/test/fixtures/quaderno_cassettes/delivered_estimate.yml +66 -45
- data/test/fixtures/quaderno_cassettes/delivered_invoice.yml +66 -56
- data/test/fixtures/quaderno_cassettes/found_contact.yml +39 -30
- data/test/fixtures/quaderno_cassettes/found_estimate.yml +55 -32
- data/test/fixtures/quaderno_cassettes/found_expense.yml +62 -30
- data/test/fixtures/quaderno_cassettes/found_invoice.yml +58 -42
- data/test/fixtures/quaderno_cassettes/found_item.yml +33 -24
- data/test/fixtures/quaderno_cassettes/found_webhook.yml +50 -40
- data/test/fixtures/quaderno_cassettes/new_contact.yml +19 -12
- data/test/fixtures/quaderno_cassettes/new_estimate.yml +61 -44
- data/test/fixtures/quaderno_cassettes/new_expense.yml +99 -62
- data/test/fixtures/quaderno_cassettes/new_invoice.yml +61 -44
- data/test/fixtures/quaderno_cassettes/new_item.yml +19 -12
- data/test/fixtures/quaderno_cassettes/new_webhook.yml +34 -28
- data/test/fixtures/quaderno_cassettes/paid_expense.yml +57 -30
- data/test/fixtures/quaderno_cassettes/paid_invoice.yml +54 -41
- data/test/fixtures/quaderno_cassettes/rate_limit.yml +14 -10
- data/test/fixtures/quaderno_cassettes/unpay_an_expense.yml +73 -43
- data/test/fixtures/quaderno_cassettes/unpay_an_invoice.yml +70 -54
- data/test/fixtures/quaderno_cassettes/updated_contact.yml +42 -30
- data/test/fixtures/quaderno_cassettes/updated_estimate.yml +84 -57
- data/test/fixtures/quaderno_cassettes/updated_expense.yml +81 -56
- data/test/fixtures/quaderno_cassettes/updated_invoice.yml +84 -57
- data/test/fixtures/quaderno_cassettes/updated_item.yml +36 -24
- data/test/fixtures/quaderno_cassettes/updated_webhook.yml +69 -55
- data/test/helper.rb +12 -12
- data/test/unit/test_quaderno_contacts.rb +4 -3
- data/test/unit/test_quaderno_estimates.rb +2 -1
- data/test/unit/test_quaderno_expenses.rb +3 -2
- data/test/unit/test_quaderno_invoices.rb +3 -2
- data/test/unit/test_quaderno_items.rb +4 -3
- data/test/unit/test_quaderno_webhooks.rb +4 -3
- metadata +10 -94
- data/quaderno-1.0.0.gem +0 -0
- data/quaderno-1.1.0.gem +0 -0
- data/quaderno-1.1.2.gem +0 -0
- data/quaderno-1.2.0.gem +0 -0
@@ -2,78 +2,84 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://
|
5
|
+
uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/invoices.json
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
authorization:
|
11
|
-
- Basic
|
11
|
+
- Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
|
12
12
|
response:
|
13
13
|
status:
|
14
14
|
code: 200
|
15
|
-
message: OK
|
15
|
+
message: ! 'OK '
|
16
16
|
headers:
|
17
17
|
x-ratelimit-limit:
|
18
|
-
- '
|
18
|
+
- '2000'
|
19
19
|
x-ratelimit-remaining:
|
20
|
-
- '
|
20
|
+
- '1874'
|
21
|
+
x-pages-currentpage:
|
22
|
+
- '1'
|
23
|
+
x-pages-totalpages:
|
24
|
+
- '1'
|
21
25
|
content-type:
|
22
26
|
- application/json; charset=utf-8
|
23
27
|
x-ua-compatible:
|
24
28
|
- IE=Edge
|
25
29
|
etag:
|
26
|
-
- ! '"
|
30
|
+
- ! '"53fc8e14c11dee1f0727271327376f21"'
|
27
31
|
cache-control:
|
28
32
|
- max-age=0, private, must-revalidate
|
29
33
|
x-request-id:
|
30
|
-
-
|
34
|
+
- b888611c61c8b988cebbc55f47e832cb
|
31
35
|
x-runtime:
|
32
|
-
- '
|
36
|
+
- '0.539848'
|
37
|
+
server:
|
38
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
|
39
|
+
date:
|
40
|
+
- Tue, 04 Feb 2014 14:52:05 GMT
|
41
|
+
content-length:
|
42
|
+
- '2818'
|
33
43
|
connection:
|
34
44
|
- close
|
35
|
-
server:
|
36
|
-
- thin 1.5.0 codename Knife
|
37
45
|
body:
|
38
46
|
encoding: US-ASCII
|
39
|
-
string: ! '[{"id":
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
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
|
56
|
-
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"}]'
|
47
|
+
string: ! '[{"id":3,"number":"0000003","issue_date":"2014-02-04","contact":{"id":2,"full_name":"Another
|
48
|
+
Test Contact"},"po_number":"","due_date":null,"currency":"EUR","items":[{"description":"Free
|
49
|
+
stuff!","quantity":"200.0","unit_price":"0.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"reference":"","subtotal":"0.00
|
50
|
+
\u20ac","discount":"0.00 \u20ac","gross_amount":"0.00 \u20ac"},{"description":"Pizza
|
51
|
+
bagles","quantity":"2.0","unit_price":"15.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"reference":"","subtotal":"30.00
|
52
|
+
\u20ac","discount":"0.00 \u20ac","gross_amount":"30.00 \u20ac"}],"subtotal":"30.00
|
53
|
+
\u20ac","discount":"0.00 \u20ac","taxes":[],"total":"30.00 \u20ac","payments":[{"id":9,"date":"2014-02-04","payment_method":"cash","amount":"100,000,000.00
|
54
|
+
\u20ac","url":"http://localhost:3000/recrea/api/v1/invoices/3/payments/9.json"}],"payment_details":"","notes":"","state":"paid","tag_list":[],"permalink":"http://localhost:3000/invoice/060c7204face21de13e68b33c940b030164a42b1","url":"http://localhost:3000/recrea/api/v1/invoices/3.json"},{"id":2,"number":"0000002","issue_date":"2014-02-04","contact":{"id":3,"full_name":"TSM"},"po_number":"","due_date":null,"currency":"EUR","items":[{"description":"Free
|
55
|
+
stuff!","quantity":"200.0","unit_price":"1.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"reference":"","subtotal":"200.00
|
56
|
+
\u20ac","discount":"0.00 \u20ac","gross_amount":"200.00 \u20ac"}],"subtotal":"200.00
|
57
|
+
\u20ac","discount":"0.00 \u20ac","taxes":[],"total":"200.00 \u20ac","payments":[],"payment_details":"","notes":"","state":"draft","tag_list":[],"permalink":"http://localhost:3000/invoice/b59479ddd5e9d2ff72d276a1fd9ead4764343984","url":"http://localhost:3000/recrea/api/v1/invoices/2.json"},{"id":1,"number":"0000001","issue_date":"2014-02-04","contact":{"id":1,"full_name":"API
|
58
|
+
Test Contact"},"po_number":"","due_date":null,"currency":"EUR","items":[{"description":"Something","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,"reference":"","subtotal":"10.00
|
59
|
+
\u20ac","discount":"0.00 \u20ac","gross_amount":"10.00 \u20ac"},{"description":"Free
|
60
|
+
stuff!","quantity":"200.0","unit_price":"0.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"reference":"","subtotal":"0.00
|
61
|
+
\u20ac","discount":"0.00 \u20ac","gross_amount":"0.00 \u20ac"}],"subtotal":"10.00
|
62
|
+
\u20ac","discount":"0.00 \u20ac","taxes":[],"total":"10.00 \u20ac","payments":[],"payment_details":"","notes":"","state":"draft","tag_list":[],"permalink":"http://localhost:3000/invoice/e8a2610def0bed3cd429f45f9561853d401aa31e","url":"http://localhost:3000/recrea/api/v1/invoices/1.json"}]'
|
57
63
|
http_version: '1.1'
|
58
|
-
recorded_at: Tue,
|
64
|
+
recorded_at: Tue, 04 Feb 2014 14:52:05 GMT
|
59
65
|
- request:
|
60
66
|
method: get
|
61
|
-
uri: http://
|
67
|
+
uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/ping.json
|
62
68
|
body:
|
63
69
|
encoding: US-ASCII
|
64
70
|
string: ''
|
65
71
|
headers:
|
66
72
|
authorization:
|
67
|
-
- Basic
|
73
|
+
- Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
|
68
74
|
response:
|
69
75
|
status:
|
70
76
|
code: 200
|
71
|
-
message: OK
|
77
|
+
message: ! 'OK '
|
72
78
|
headers:
|
73
79
|
x-ratelimit-limit:
|
74
|
-
- '
|
80
|
+
- '2000'
|
75
81
|
x-ratelimit-remaining:
|
76
|
-
- '
|
82
|
+
- '1874'
|
77
83
|
content-type:
|
78
84
|
- application/json; charset=utf-8
|
79
85
|
x-ua-compatible:
|
@@ -83,57 +89,61 @@ http_interactions:
|
|
83
89
|
cache-control:
|
84
90
|
- max-age=0, private, must-revalidate
|
85
91
|
x-request-id:
|
86
|
-
-
|
92
|
+
- 4ca87b8f61bf05a98025e5fa01a3e6ea
|
87
93
|
x-runtime:
|
88
|
-
- '0.
|
94
|
+
- '0.079705'
|
95
|
+
server:
|
96
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
|
97
|
+
date:
|
98
|
+
- Tue, 04 Feb 2014 14:52:05 GMT
|
99
|
+
content-length:
|
100
|
+
- '15'
|
89
101
|
connection:
|
90
102
|
- close
|
91
|
-
server:
|
92
|
-
- thin 1.5.0 codename Knife
|
93
103
|
body:
|
94
104
|
encoding: US-ASCII
|
95
105
|
string: ! '{"status":"OK"}'
|
96
106
|
http_version: '1.1'
|
97
|
-
recorded_at: Tue,
|
107
|
+
recorded_at: Tue, 04 Feb 2014 14:52:05 GMT
|
98
108
|
- request:
|
99
109
|
method: get
|
100
|
-
uri: http://
|
110
|
+
uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/invoices/3/deliver.json
|
101
111
|
body:
|
102
112
|
encoding: US-ASCII
|
103
113
|
string: ''
|
104
114
|
headers:
|
105
115
|
authorization:
|
106
|
-
- Basic
|
116
|
+
- Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
|
107
117
|
response:
|
108
118
|
status:
|
109
|
-
code:
|
110
|
-
message:
|
119
|
+
code: 422
|
120
|
+
message: ''
|
111
121
|
headers:
|
112
122
|
x-ratelimit-limit:
|
113
|
-
- '
|
123
|
+
- '2000'
|
114
124
|
x-ratelimit-remaining:
|
115
|
-
- '
|
125
|
+
- '1873'
|
116
126
|
content-type:
|
117
127
|
- application/json; charset=utf-8
|
118
128
|
x-ua-compatible:
|
119
129
|
- IE=Edge
|
120
|
-
etag:
|
121
|
-
- ! '"b7ffb1301211c4d0ac458ab7c78a8791"'
|
122
130
|
cache-control:
|
123
|
-
-
|
131
|
+
- no-cache
|
124
132
|
x-request-id:
|
125
|
-
-
|
133
|
+
- d8d7b58733d6ca14c04729ea84b0ba5a
|
126
134
|
x-runtime:
|
127
|
-
- '0.
|
135
|
+
- '0.476447'
|
136
|
+
server:
|
137
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
|
138
|
+
date:
|
139
|
+
- Tue, 04 Feb 2014 14:52:06 GMT
|
140
|
+
content-length:
|
141
|
+
- '55'
|
128
142
|
connection:
|
129
143
|
- close
|
130
|
-
server:
|
131
|
-
- thin 1.5.0 codename Knife
|
132
144
|
body:
|
133
145
|
encoding: US-ASCII
|
134
|
-
string: ! '{"
|
135
|
-
Doe","created_at":"2013-05-13T12:22:14Z","currency":"EUR","delivery":null,"document_id":null,"due_date":null,"due_days":null,"end_date":null,"exchange_cents":null,"exchange_rate":"1.0","frequency":null,"gross_amount_cents":0,"id":145,"issue_date":"2013-05-13","notes":"","number":"Especial
|
136
|
-
2n","payment_details":"","permalink":"fbdd4529b5d28bff9df7447cb1dcf7688c0667ad","po_number":"","recurring_document":null,"renewal_date":null,"start_date":null,"state":"paid","total_cents":0,"updated_at":"2013-05-14T10:48:51Z","valid_until":null}}'
|
146
|
+
string: ! '{"delivery_recipients":["can''t be blank","is invalid"]}'
|
137
147
|
http_version: '1.1'
|
138
|
-
recorded_at: Tue,
|
148
|
+
recorded_at: Tue, 04 Feb 2014 14:52:06 GMT
|
139
149
|
recorded_with: VCR 2.3.0
|
@@ -2,86 +2,95 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://
|
5
|
+
uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/contacts.json
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
authorization:
|
11
|
-
- Basic
|
11
|
+
- Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
|
12
12
|
response:
|
13
13
|
status:
|
14
14
|
code: 200
|
15
|
-
message: OK
|
15
|
+
message: ! 'OK '
|
16
16
|
headers:
|
17
17
|
x-ratelimit-limit:
|
18
|
-
- '
|
18
|
+
- '2000'
|
19
19
|
x-ratelimit-remaining:
|
20
|
-
- '
|
20
|
+
- '1984'
|
21
|
+
x-pages-currentpage:
|
22
|
+
- '1'
|
23
|
+
x-pages-totalpages:
|
24
|
+
- '1'
|
21
25
|
content-type:
|
22
26
|
- application/json; charset=utf-8
|
23
27
|
x-ua-compatible:
|
24
28
|
- IE=Edge
|
25
29
|
etag:
|
26
|
-
- ! '"
|
30
|
+
- ! '"71b79c1b45cfb58a71172c277dd004b5"'
|
27
31
|
cache-control:
|
28
32
|
- max-age=0, private, must-revalidate
|
29
33
|
x-request-id:
|
30
|
-
-
|
34
|
+
- 2f1c91a6885bdcaacb10f4f3745376f6
|
31
35
|
x-runtime:
|
32
|
-
- '0.
|
36
|
+
- '0.274615'
|
37
|
+
server:
|
38
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
|
39
|
+
date:
|
40
|
+
- Tue, 04 Feb 2014 14:39:43 GMT
|
41
|
+
content-length:
|
42
|
+
- '1879'
|
33
43
|
connection:
|
34
44
|
- close
|
35
|
-
server:
|
36
|
-
- thin 1.5.0 codename Knife
|
37
45
|
body:
|
38
46
|
encoding: US-ASCII
|
39
|
-
string: ! '[{"id":
|
40
|
-
|
41
|
-
|
42
|
-
|
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":4,"kind":"person","first_name":"Test_OCP","last_name":"Doe","full_name":"Test_OCP
|
44
|
-
Doe","street_line_1":"Bernardo de la Torre 104","street_line_2":"","postal_code":"35007","city":"Las
|
45
|
-
Palmas de Gran Canaria","region":"Las Palmas","country":"ES","phone_1":"653157684","phone_2":"653157684","fax":"","email":"dont@stop.believing","web":"","discount":null,"tax_id":"","bank_account":"","language":"ES","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/4"},{"id":12,"kind":"company","full_name":"Test_Skynet","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"US","phone_1":null,"phone_2":null,"fax":null,"email":"my_little@po.ny","web":null,"discount":null,"tax_id":null,"language":"EN","notes":null,"url":"http://localhost:3000/recrea/api/v1/contacts/12"},{"id":15,"kind":"company","full_name":"Test_Skynet","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"US","phone_1":null,"phone_2":null,"fax":null,"email":"my_little@po.ny","web":null,"discount":null,"tax_id":null,"language":"EN","notes":null,"url":"http://localhost:3000/recrea/api/v1/contacts/15"},{"id":8,"kind":"company","full_name":"Toby","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"US","phone_1":null,"phone_2":null,"fax":null,"email":null,"web":null,"discount":null,"tax_id":null,"language":"EN","notes":null,"url":"http://localhost:3000/recrea/api/v1/contacts/8"}]'
|
47
|
+
string: ! '[{"id":2,"kind":"company","full_name":"Another Test Contact","contact_name":"","street_line_1":"Kamiya
|
48
|
+
Kashin Ryu no Dojo","street_line_2":"","postal_code":"876-0854","city":"Tokyo","region":"Tokyo","country":"JP","phone_1":"","phone_2":"","fax":"","email":"","web":"","discount":null,"tax_id":"","language":"EN","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/2"},{"id":1,"kind":"company","full_name":"API
|
49
|
+
Test Contact","contact_name":"","street_line_1":"Evergreen Terrace","street_line_2":"","postal_code":"K0A
|
50
|
+
1B0","city":"Springfield","region":"Canada","country":"ES","phone_1":"","phone_2":"","fax":"","email":"dummy@email.test","web":"","discount":null,"tax_id":"","bank_account":"","language":"ES","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/1"},{"id":4,"kind":"company","full_name":"Test_OCP","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"US","phone_1":null,"phone_2":null,"fax":null,"email":"dont@stop.believing","web":null,"discount":null,"tax_id":null,"language":"EN","notes":null,"url":"http://localhost:3000/recrea/api/v1/contacts/4"},{"id":6,"kind":"company","full_name":"Test_Skynet","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"US","phone_1":null,"phone_2":null,"fax":null,"email":"my_little@po.ny","web":null,"discount":null,"tax_id":null,"language":"EN","notes":null,"url":"http://localhost:3000/recrea/api/v1/contacts/6"},{"id":3,"kind":"company","full_name":"TSM","contact_name":"Reginald","street_line_1":"","street_line_2":"","postal_code":"","city":"","region":"","country":"ES","phone_1":"","phone_2":"","fax":"","email":"reggie@tsm.com","web":"","discount":null,"tax_id":"","bank_account":"","language":"ES","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/3"}]'
|
46
51
|
http_version: '1.1'
|
47
|
-
recorded_at: Tue,
|
52
|
+
recorded_at: Tue, 04 Feb 2014 14:39:43 GMT
|
48
53
|
- request:
|
49
54
|
method: get
|
50
|
-
uri: http://
|
55
|
+
uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/contacts/4.json
|
51
56
|
body:
|
52
57
|
encoding: US-ASCII
|
53
58
|
string: ''
|
54
59
|
headers:
|
55
60
|
authorization:
|
56
|
-
- Basic
|
61
|
+
- Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
|
57
62
|
response:
|
58
63
|
status:
|
59
64
|
code: 200
|
60
|
-
message: OK
|
65
|
+
message: ! 'OK '
|
61
66
|
headers:
|
62
67
|
x-ratelimit-limit:
|
63
|
-
- '
|
68
|
+
- '2000'
|
64
69
|
x-ratelimit-remaining:
|
65
|
-
- '
|
70
|
+
- '1983'
|
66
71
|
content-type:
|
67
72
|
- application/json; charset=utf-8
|
68
73
|
x-ua-compatible:
|
69
74
|
- IE=Edge
|
70
75
|
etag:
|
71
|
-
- ! '"
|
76
|
+
- ! '"b1f55fcc9e56788fbbf74d65d0653a7e"'
|
72
77
|
cache-control:
|
73
78
|
- max-age=0, private, must-revalidate
|
74
79
|
x-request-id:
|
75
|
-
-
|
80
|
+
- 4b5a7872e2da730ab0f36642525aaede
|
76
81
|
x-runtime:
|
77
|
-
- '0.
|
82
|
+
- '0.075620'
|
83
|
+
server:
|
84
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
|
85
|
+
date:
|
86
|
+
- Tue, 04 Feb 2014 14:39:43 GMT
|
87
|
+
content-length:
|
88
|
+
- '366'
|
78
89
|
connection:
|
79
90
|
- close
|
80
|
-
server:
|
81
|
-
- thin 1.5.0 codename Knife
|
82
91
|
body:
|
83
92
|
encoding: US-ASCII
|
84
|
-
string: ! '{"id":
|
93
|
+
string: ! '{"id":4,"kind":"company","full_name":"Test_OCP","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"US","phone_1":null,"phone_2":null,"fax":null,"email":"dont@stop.believing","web":null,"discount":null,"tax_id":null,"language":"EN","notes":null,"url":"http://localhost:3000/recrea/api/v1/contacts/4"}'
|
85
94
|
http_version: '1.1'
|
86
|
-
recorded_at: Tue,
|
95
|
+
recorded_at: Tue, 04 Feb 2014 14:39:43 GMT
|
87
96
|
recorded_with: VCR 2.3.0
|
@@ -2,88 +2,111 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://
|
5
|
+
uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/estimates.json
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
authorization:
|
11
|
-
- Basic
|
11
|
+
- Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
|
12
12
|
response:
|
13
13
|
status:
|
14
14
|
code: 200
|
15
|
-
message: OK
|
15
|
+
message: ! 'OK '
|
16
16
|
headers:
|
17
17
|
x-ratelimit-limit:
|
18
|
-
- '
|
18
|
+
- '2000'
|
19
19
|
x-ratelimit-remaining:
|
20
|
-
- '
|
20
|
+
- '1970'
|
21
|
+
x-pages-currentpage:
|
22
|
+
- '1'
|
23
|
+
x-pages-totalpages:
|
24
|
+
- '1'
|
21
25
|
content-type:
|
22
26
|
- application/json; charset=utf-8
|
23
27
|
x-ua-compatible:
|
24
28
|
- IE=Edge
|
25
29
|
etag:
|
26
|
-
- ! '"
|
30
|
+
- ! '"e381d87821899056ec8529c9f9bb5f0a"'
|
27
31
|
cache-control:
|
28
32
|
- max-age=0, private, must-revalidate
|
29
33
|
x-request-id:
|
30
|
-
-
|
34
|
+
- bcc8501bd0008a6f5cffc2f590b46450
|
31
35
|
x-runtime:
|
32
|
-
- '0.
|
36
|
+
- '0.327848'
|
37
|
+
server:
|
38
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
|
39
|
+
date:
|
40
|
+
- Tue, 04 Feb 2014 14:39:55 GMT
|
41
|
+
content-length:
|
42
|
+
- '2872'
|
33
43
|
connection:
|
34
44
|
- close
|
35
|
-
server:
|
36
|
-
- thin 1.5.0 codename Knife
|
37
45
|
body:
|
38
46
|
encoding: US-ASCII
|
39
|
-
string: ! '[{"id":
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
47
|
+
string: ! '[{"id":9,"number":"0000003","issue_date":"2014-02-04","contact":{"id":2,"full_name":"Another
|
48
|
+
Test Contact"},"po_number":"","currency":"EUR","items":[{"description":"Bread
|
49
|
+
pack","quantity":"1.0","unit_price":"2.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"reference":"","subtotal":"2.00
|
50
|
+
\u20ac","discount":"0.00 \u20ac","gross_amount":"2.00 \u20ac"}],"subtotal":"2.00
|
51
|
+
\u20ac","discount":"0.00 \u20ac","taxes":[],"total":"2.00 \u20ac","payment_details":"","notes":"","state":"draft","tag_list":[],"permalink":"http://localhost:3000/estimate/43cb8820f8901ce8ee208a79f2a4c4d6eef63eb6","url":"http://localhost:3000/recrea/api/v1/estimates/9.json"},{"id":8,"number":"0000002","issue_date":"2014-02-04","contact":{"id":1,"full_name":"API
|
52
|
+
Test Contact"},"po_number":"","currency":"EUR","items":[{"description":"Paint","quantity":"1.0","unit_price":"50.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"reference":"","subtotal":"50.00
|
53
|
+
\u20ac","discount":"0.00 \u20ac","gross_amount":"50.00 \u20ac"},{"description":"Brushes","quantity":"1.0","unit_price":"12.0","discount_rate":"0.0","tax_1_name":"IVA","tax_1_rate":"21.0","tax_2_name":"","tax_2_rate":null,"reference":"","subtotal":"12.00
|
54
|
+
\u20ac","discount":"0.00 \u20ac","gross_amount":"12.00 \u20ac"},{"description":"Working
|
55
|
+
suits","quantity":"1.0","unit_price":"20.99","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"reference":"","subtotal":"20.99
|
56
|
+
\u20ac","discount":"0.00 \u20ac","gross_amount":"20.99 \u20ac"}],"subtotal":"82.99
|
57
|
+
\u20ac","discount":"0.00 \u20ac","taxes":[{"label":"IVA (21.00%)","amount":"2.52
|
58
|
+
\u20ac"}],"total":"85.51 \u20ac","payment_details":"","notes":"","state":"draft","tag_list":[],"permalink":"http://localhost:3000/estimate/749d695e7c7b0fd8545416fa30346ca3c69f5658","url":"http://localhost:3000/recrea/api/v1/estimates/8.json"},{"id":7,"number":"0000001","issue_date":"2014-02-04","contact":{"id":1,"full_name":"API
|
59
|
+
Test Contact"},"po_number":"","currency":"EUR","items":[{"description":"Paint","quantity":"1.0","unit_price":"50.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"reference":"","subtotal":"50.00
|
60
|
+
\u20ac","discount":"0.00 \u20ac","gross_amount":"50.00 \u20ac"},{"description":"Brushes","quantity":"1.0","unit_price":"12.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"reference":"","subtotal":"12.00
|
61
|
+
\u20ac","discount":"0.00 \u20ac","gross_amount":"12.00 \u20ac"}],"subtotal":"62.00
|
62
|
+
\u20ac","discount":"0.00 \u20ac","taxes":[],"total":"62.00 \u20ac","payment_details":"","notes":"","state":"draft","tag_list":[],"permalink":"http://localhost:3000/estimate/8a4c4788bf7cbb1ecf13e875176864a9b02f5d7f","url":"http://localhost:3000/recrea/api/v1/estimates/7.json"}]'
|
46
63
|
http_version: '1.1'
|
47
|
-
recorded_at: Tue,
|
64
|
+
recorded_at: Tue, 04 Feb 2014 14:39:55 GMT
|
48
65
|
- request:
|
49
66
|
method: get
|
50
|
-
uri: http://
|
67
|
+
uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/estimates/9.json
|
51
68
|
body:
|
52
69
|
encoding: US-ASCII
|
53
70
|
string: ''
|
54
71
|
headers:
|
55
72
|
authorization:
|
56
|
-
- Basic
|
73
|
+
- Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
|
57
74
|
response:
|
58
75
|
status:
|
59
76
|
code: 200
|
60
|
-
message: OK
|
77
|
+
message: ! 'OK '
|
61
78
|
headers:
|
62
79
|
x-ratelimit-limit:
|
63
|
-
- '
|
80
|
+
- '2000'
|
64
81
|
x-ratelimit-remaining:
|
65
|
-
- '
|
82
|
+
- '1969'
|
66
83
|
content-type:
|
67
84
|
- application/json; charset=utf-8
|
68
85
|
x-ua-compatible:
|
69
86
|
- IE=Edge
|
70
87
|
etag:
|
71
|
-
- ! '"
|
88
|
+
- ! '"b29431b1a8a9b0a55fdf271aec104684"'
|
72
89
|
cache-control:
|
73
90
|
- max-age=0, private, must-revalidate
|
74
91
|
x-request-id:
|
75
|
-
-
|
92
|
+
- c3e9062c3771ec8d74e271ca2d7c7d7e
|
76
93
|
x-runtime:
|
77
|
-
- '0.
|
94
|
+
- '0.093639'
|
95
|
+
server:
|
96
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
|
97
|
+
date:
|
98
|
+
- Tue, 04 Feb 2014 14:39:55 GMT
|
99
|
+
content-length:
|
100
|
+
- '690'
|
78
101
|
connection:
|
79
102
|
- close
|
80
|
-
server:
|
81
|
-
- thin 1.5.0 codename Knife
|
82
103
|
body:
|
83
104
|
encoding: US-ASCII
|
84
|
-
string: ! '{"id":
|
85
|
-
|
86
|
-
|
105
|
+
string: ! '{"id":9,"number":"0000003","issue_date":"2014-02-04","contact":{"id":2,"full_name":"Another
|
106
|
+
Test Contact"},"po_number":"","currency":"EUR","items":[{"description":"Bread
|
107
|
+
pack","quantity":"1.0","unit_price":"2.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"reference":"","subtotal":"2.00
|
108
|
+
\u20ac","discount":"0.00 \u20ac","gross_amount":"2.00 \u20ac"}],"subtotal":"2.00
|
109
|
+
\u20ac","discount":"0.00 \u20ac","taxes":[],"total":"2.00 \u20ac","payment_details":"","notes":"","state":"draft","tag_list":[],"permalink":"http://localhost:3000/estimate/43cb8820f8901ce8ee208a79f2a4c4d6eef63eb6","url":"http://localhost:3000/recrea/api/v1/estimates/9.json"}'
|
87
110
|
http_version: '1.1'
|
88
|
-
recorded_at: Tue,
|
111
|
+
recorded_at: Tue, 04 Feb 2014 14:39:55 GMT
|
89
112
|
recorded_with: VCR 2.3.0
|