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,124 +2,154 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://
|
5
|
+
uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/expenses.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
|
+
- '1890'
|
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
|
+
- ! '"0caa665340ca3fbfd0127f8d8d146941"'
|
27
31
|
cache-control:
|
28
32
|
- max-age=0, private, must-revalidate
|
29
33
|
x-request-id:
|
30
|
-
-
|
34
|
+
- 0654b4e398d68e7b3f6935a35594f9b3
|
31
35
|
x-runtime:
|
32
|
-
- '0.
|
36
|
+
- '0.553172'
|
37
|
+
server:
|
38
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
|
39
|
+
date:
|
40
|
+
- Tue, 04 Feb 2014 14:50:59 GMT
|
41
|
+
content-length:
|
42
|
+
- '2759'
|
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":6,"number":null,"issue_date":"2014-05-04","contact":{"id":2,"full_name":"Another
|
48
|
+
Test Contact"},"po_number":"","currency":"EUR","items":[{"description":"Honeypots","quantity":"1.3","unit_price":"19.03","discount_rate":"0.0","tax_1_name":"IVA","tax_1_rate":"21.0","tax_2_name":"IRPF","tax_2_rate":"-9.0","reference":"","subtotal":"24.74
|
49
|
+
\u20ac","discount":"0.00 \u20ac","gross_amount":"24.74 \u20ac"}],"subtotal":"24.74
|
50
|
+
\u20ac","discount":"0.00 \u20ac","taxes":[{"label":"IRPF (-9.00%)","amount":"-2.23
|
51
|
+
\u20ac"},{"label":"IVA (21.00%)","amount":"5.20 \u20ac"}],"total":"27.71 \u20ac","payments":[{"id":1,"date":"2014-02-04","payment_method":"cash","amount":"10,000.00
|
52
|
+
\u20ac","url":"http://localhost:3000/recrea/api/v1/expenses/6/payments/1.json"},{"id":3,"date":"2014-02-04","payment_method":"cash","amount":"10,000.00
|
53
|
+
\u20ac","url":"http://localhost:3000/recrea/api/v1/expenses/6/payments/3.json"},{"id":5,"date":"2014-02-04","payment_method":"cash","amount":"10,000.00
|
54
|
+
\u20ac","url":"http://localhost:3000/recrea/api/v1/expenses/6/payments/5.json"},{"id":7,"date":"2014-02-04","payment_method":"cash","amount":"10,000.00
|
55
|
+
\u20ac","url":"http://localhost:3000/recrea/api/v1/expenses/6/payments/7.json"}],"notes":"Hello","state":"paid","tag_list":[],"url":"http://localhost:3000/recrea/api/v1/expenses/6.json"},{"id":4,"number":null,"issue_date":"2014-02-04","contact":{"id":1,"full_name":"API
|
56
|
+
Test Contact"},"po_number":"","currency":"EUR","items":[{"description":"Very
|
57
|
+
important stuff","quantity":"1.0","unit_price":"2230.0","discount_rate":"0.0","tax_1_name":"IVA","tax_1_rate":"21.0","tax_2_name":"IRPF","tax_2_rate":"-9.0","reference":"","subtotal":"2,230.00
|
58
|
+
\u20ac","discount":"0.00 \u20ac","gross_amount":"2,230.00 \u20ac"}],"subtotal":"2,230.00
|
59
|
+
\u20ac","discount":"0.00 \u20ac","taxes":[{"label":"IRPF (-9.00%)","amount":"-200.70
|
60
|
+
\u20ac"},{"label":"IVA (21.00%)","amount":"468.30 \u20ac"}],"total":"2,497.60
|
61
|
+
\u20ac","payments":[],"notes":"Hello","state":"outstanding","tag_list":[],"url":"http://localhost:3000/recrea/api/v1/expenses/4.json"},{"id":5,"number":null,"issue_date":"2014-02-04","contact":{"id":3,"full_name":"TSM"},"po_number":"","currency":"EUR","items":[{"description":"Bombers","quantity":"5.0","unit_price":"29.0","discount_rate":"0.0","tax_1_name":"IVA","tax_1_rate":"21.0","tax_2_name":"IRPF","tax_2_rate":"-9.0","reference":"","subtotal":"145.00
|
62
|
+
\u20ac","discount":"0.00 \u20ac","gross_amount":"145.00 \u20ac"}],"subtotal":"145.00
|
63
|
+
\u20ac","discount":"0.00 \u20ac","taxes":[{"label":"IRPF (-9.00%)","amount":"-13.05
|
64
|
+
\u20ac"},{"label":"IVA (21.00%)","amount":"30.45 \u20ac"}],"total":"162.40
|
65
|
+
\u20ac","payments":[],"notes":"Hello","state":"outstanding","tag_list":[],"url":"http://localhost:3000/recrea/api/v1/expenses/5.json"}]'
|
46
66
|
http_version: '1.1'
|
47
|
-
recorded_at: Tue,
|
67
|
+
recorded_at: Tue, 04 Feb 2014 14:50:59 GMT
|
48
68
|
- request:
|
49
69
|
method: post
|
50
|
-
uri: http://
|
70
|
+
uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/expenses/6/payments.json
|
51
71
|
body:
|
52
72
|
encoding: US-ASCII
|
53
73
|
string: payment_method=cash&amount=10000
|
54
74
|
headers:
|
55
75
|
authorization:
|
56
|
-
- Basic
|
76
|
+
- Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
|
57
77
|
response:
|
58
78
|
status:
|
59
79
|
code: 201
|
60
|
-
message: Created
|
80
|
+
message: ! 'Created '
|
61
81
|
headers:
|
62
82
|
x-ratelimit-limit:
|
63
|
-
- '
|
83
|
+
- '2000'
|
64
84
|
x-ratelimit-remaining:
|
65
|
-
- '
|
85
|
+
- '1889'
|
66
86
|
content-type:
|
67
87
|
- application/json; charset=utf-8
|
68
88
|
x-ua-compatible:
|
69
89
|
- IE=Edge
|
70
90
|
etag:
|
71
|
-
- ! '"
|
91
|
+
- ! '"2a3a886cb513203175c5b7a01e0440f0"'
|
72
92
|
cache-control:
|
73
93
|
- max-age=0, private, must-revalidate
|
74
94
|
x-request-id:
|
75
|
-
-
|
95
|
+
- 1c73596a0eb5d021e6ae51e34d56ab72
|
76
96
|
x-runtime:
|
77
|
-
- '0.
|
97
|
+
- '0.185541'
|
98
|
+
server:
|
99
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
|
100
|
+
date:
|
101
|
+
- Tue, 04 Feb 2014 14:50:59 GMT
|
102
|
+
content-length:
|
103
|
+
- '151'
|
78
104
|
connection:
|
79
105
|
- close
|
80
|
-
|
81
|
-
-
|
106
|
+
set-cookie:
|
107
|
+
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTQ0M2ZhNjI1NGE3MmU2ZDNlNDk5ODU3MTkxN2EwODlkBjsAVA%3D%3D--07ac0f708fa9640037a8a4ff522cb76a293153bf;
|
108
|
+
path=/; HttpOnly
|
82
109
|
body:
|
83
110
|
encoding: US-ASCII
|
84
|
-
string: ! '{"id":
|
111
|
+
string: ! '{"id":8,"date":"2014-02-04","payment_method":"cash","amount":"10,000.00
|
112
|
+
\u20ac","url":"http://localhost:3000/recrea/api/v1/expenses/6/payments/8.json"}'
|
85
113
|
http_version: '1.1'
|
86
|
-
recorded_at: Tue,
|
114
|
+
recorded_at: Tue, 04 Feb 2014 14:50:59 GMT
|
87
115
|
- request:
|
88
116
|
method: delete
|
89
|
-
uri: http://
|
117
|
+
uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/expenses/6/payments/8.json
|
90
118
|
body:
|
91
119
|
encoding: US-ASCII
|
92
120
|
string: ''
|
93
121
|
headers:
|
94
122
|
authorization:
|
95
|
-
- Basic
|
123
|
+
- Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
|
96
124
|
response:
|
97
125
|
status:
|
98
126
|
code: 204
|
99
|
-
message: No Content
|
127
|
+
message: ! 'No Content '
|
100
128
|
headers:
|
101
129
|
x-ratelimit-limit:
|
102
|
-
- '
|
130
|
+
- '2000'
|
103
131
|
x-ratelimit-remaining:
|
104
|
-
- '
|
132
|
+
- '1888'
|
105
133
|
x-ua-compatible:
|
106
134
|
- IE=Edge
|
107
135
|
cache-control:
|
108
136
|
- no-cache
|
109
|
-
set-cookie:
|
110
|
-
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWE3NDk5MWZiMjQ3YjdhYWMxOWQwZDk0NTQyZGE4NTAxBjsAVA%3D%3D--0d1d584f7dc649685b39245cd531a70e2dd7c797;
|
111
|
-
path=/; HttpOnly
|
112
137
|
x-request-id:
|
113
|
-
-
|
138
|
+
- d8c6cdaddb58e3849e4de50936c01aec
|
114
139
|
x-runtime:
|
115
|
-
- '0.
|
140
|
+
- '0.504470'
|
141
|
+
server:
|
142
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
|
143
|
+
date:
|
144
|
+
- Tue, 04 Feb 2014 14:51:00 GMT
|
116
145
|
connection:
|
117
146
|
- close
|
118
|
-
|
119
|
-
-
|
147
|
+
set-cookie:
|
148
|
+
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTNlMDY1ZDlkNjk2MjExOWIzZjE4Yzg1NWUyNTg4NGRjBjsAVA%3D%3D--72771e763504db41069948e70fc4b8c794f401b2;
|
149
|
+
path=/; HttpOnly
|
120
150
|
body:
|
121
151
|
encoding: US-ASCII
|
122
152
|
string: ''
|
123
153
|
http_version: '1.1'
|
124
|
-
recorded_at: Tue,
|
154
|
+
recorded_at: Tue, 04 Feb 2014 14:51:00 GMT
|
125
155
|
recorded_with: VCR 2.3.0
|
@@ -2,135 +2,151 @@
|
|
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
|
+
- '1869'
|
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
|
+
- 66c63a4a9424a558be6b809b24b544ea
|
31
35
|
x-runtime:
|
32
|
-
- '
|
36
|
+
- '0.561372'
|
37
|
+
server:
|
38
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
|
39
|
+
date:
|
40
|
+
- Tue, 04 Feb 2014 14:52:08 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:08 GMT
|
59
65
|
- request:
|
60
66
|
method: post
|
61
|
-
uri: http://
|
67
|
+
uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/invoices/3/payments.json
|
62
68
|
body:
|
63
69
|
encoding: US-ASCII
|
64
70
|
string: payment_method=cash&amount=100000000
|
65
71
|
headers:
|
66
72
|
authorization:
|
67
|
-
- Basic
|
73
|
+
- Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
|
68
74
|
response:
|
69
75
|
status:
|
70
76
|
code: 201
|
71
|
-
message: Created
|
77
|
+
message: ! 'Created '
|
72
78
|
headers:
|
73
79
|
x-ratelimit-limit:
|
74
|
-
- '
|
80
|
+
- '2000'
|
75
81
|
x-ratelimit-remaining:
|
76
|
-
- '
|
82
|
+
- '1868'
|
77
83
|
content-type:
|
78
84
|
- application/json; charset=utf-8
|
79
85
|
x-ua-compatible:
|
80
86
|
- IE=Edge
|
81
87
|
etag:
|
82
|
-
- ! '"
|
88
|
+
- ! '"3f28febabe8f01485c497da7125ccf6f"'
|
83
89
|
cache-control:
|
84
90
|
- max-age=0, private, must-revalidate
|
85
91
|
x-request-id:
|
86
|
-
-
|
92
|
+
- e9564bb085ba973ea4464bf9230ff244
|
87
93
|
x-runtime:
|
88
|
-
- '0.
|
94
|
+
- '0.161793'
|
95
|
+
server:
|
96
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
|
97
|
+
date:
|
98
|
+
- Tue, 04 Feb 2014 14:52:08 GMT
|
99
|
+
content-length:
|
100
|
+
- '158'
|
89
101
|
connection:
|
90
102
|
- close
|
91
|
-
|
92
|
-
-
|
103
|
+
set-cookie:
|
104
|
+
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTczZGU2M2M5OWE0NmI1MzhkNzEwZmVmZmVjMmNiOTJjBjsAVA%3D%3D--e860f98e9cef24ddad053e927991adec208f9b9d;
|
105
|
+
path=/; HttpOnly
|
93
106
|
body:
|
94
107
|
encoding: US-ASCII
|
95
|
-
string: ! '{"id":
|
108
|
+
string: ! '{"id":10,"date":"2014-02-04","payment_method":"cash","amount":"100,000,000.00
|
109
|
+
\u20ac","url":"http://localhost:3000/recrea/api/v1/invoices/3/payments/10.json"}'
|
96
110
|
http_version: '1.1'
|
97
|
-
recorded_at: Tue,
|
111
|
+
recorded_at: Tue, 04 Feb 2014 14:52:08 GMT
|
98
112
|
- request:
|
99
113
|
method: delete
|
100
|
-
uri: http://
|
114
|
+
uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/invoices/3/payments/10.json
|
101
115
|
body:
|
102
116
|
encoding: US-ASCII
|
103
117
|
string: ''
|
104
118
|
headers:
|
105
119
|
authorization:
|
106
|
-
- Basic
|
120
|
+
- Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
|
107
121
|
response:
|
108
122
|
status:
|
109
123
|
code: 204
|
110
|
-
message: No Content
|
124
|
+
message: ! 'No Content '
|
111
125
|
headers:
|
112
126
|
x-ratelimit-limit:
|
113
|
-
- '
|
127
|
+
- '2000'
|
114
128
|
x-ratelimit-remaining:
|
115
|
-
- '
|
129
|
+
- '1867'
|
116
130
|
x-ua-compatible:
|
117
131
|
- IE=Edge
|
118
132
|
cache-control:
|
119
133
|
- no-cache
|
120
|
-
set-cookie:
|
121
|
-
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTFkYWYwZWNhOWM5YTBlMjU5MGYyZDk1MTdjMjU3ZDc0BjsAVA%3D%3D--c626dbd673d0f218a20428769b3b670c3f845325;
|
122
|
-
path=/; HttpOnly
|
123
134
|
x-request-id:
|
124
|
-
-
|
135
|
+
- 2545ba23b487f76468adb5ef24f85f84
|
125
136
|
x-runtime:
|
126
|
-
- '0.
|
137
|
+
- '0.476464'
|
138
|
+
server:
|
139
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
|
140
|
+
date:
|
141
|
+
- Tue, 04 Feb 2014 14:52:08 GMT
|
127
142
|
connection:
|
128
143
|
- close
|
129
|
-
|
130
|
-
-
|
144
|
+
set-cookie:
|
145
|
+
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWNkNDBlNjI4MjM4OTYxYmU3ODhjNWU3ZTIwZjc3ZjZkBjsAVA%3D%3D--e9b51fadab222365a22c992455fef52d98fa67f1;
|
146
|
+
path=/; HttpOnly
|
131
147
|
body:
|
132
148
|
encoding: US-ASCII
|
133
149
|
string: ''
|
134
150
|
http_version: '1.1'
|
135
|
-
recorded_at: Tue,
|
151
|
+
recorded_at: Tue, 04 Feb 2014 14:52:08 GMT
|
136
152
|
recorded_with: VCR 2.3.0
|