quaderno 1.9.1 → 1.9.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +6 -6
  3. data/Gemfile.lock +8 -5
  4. data/README.md +7 -1
  5. data/VERSION +1 -1
  6. data/changelog.md +5 -0
  7. data/lib/quaderno-ruby/behavior/crud.rb +30 -36
  8. data/lib/quaderno-ruby/behavior/payment.rb +12 -19
  9. data/lib/quaderno-ruby/behavior/retrieve.rb +20 -0
  10. data/lib/quaderno-ruby/contact.rb +1 -0
  11. data/lib/quaderno-ruby/payment.rb +0 -2
  12. data/lib/quaderno-ruby/tax.rb +3 -3
  13. data/lib/quaderno-ruby/webhook.rb +0 -2
  14. data/lib/quaderno-ruby.rb +1 -1
  15. data/quaderno.gemspec +15 -3
  16. data/test/fixtures/quaderno_cassettes/all_contacts.yml +295 -31
  17. data/test/fixtures/quaderno_cassettes/all_estimates.yml +28 -36
  18. data/test/fixtures/quaderno_cassettes/all_expenses.yml +60 -34
  19. data/test/fixtures/quaderno_cassettes/all_invoices.yml +2888 -36
  20. data/test/fixtures/quaderno_cassettes/all_items.yml +22 -27
  21. data/test/fixtures/quaderno_cassettes/all_receipts.yml +56 -0
  22. data/test/fixtures/quaderno_cassettes/all_webhooks.yml +98 -126
  23. data/test/fixtures/quaderno_cassettes/calculate_tax.yml +38 -62
  24. data/test/fixtures/quaderno_cassettes/create_estimate_on_downgraded_API.yml +428 -0
  25. data/test/fixtures/quaderno_cassettes/create_expense_on_downgraded_API.yml +510 -0
  26. data/test/fixtures/quaderno_cassettes/create_invoice_on_downgraded_API.yml +432 -0
  27. data/test/fixtures/quaderno_cassettes/create_receipt_on_downgraded_API.yml +193 -0
  28. data/test/fixtures/quaderno_cassettes/deleted_contact.yml +642 -113
  29. data/test/fixtures/quaderno_cassettes/deleted_estimate.yml +385 -120
  30. data/test/fixtures/quaderno_cassettes/deleted_expense.yml +414 -118
  31. data/test/fixtures/quaderno_cassettes/deleted_invoice.yml +3249 -120
  32. data/test/fixtures/quaderno_cassettes/deleted_item.yml +60 -75
  33. data/test/fixtures/quaderno_cassettes/deleted_receipt.yml +222 -0
  34. data/test/fixtures/quaderno_cassettes/deleted_webhook.yml +120 -152
  35. data/test/fixtures/quaderno_cassettes/delivered_estimate.yml +76 -89
  36. data/test/fixtures/quaderno_cassettes/delivered_invoice.yml +2935 -89
  37. data/test/fixtures/quaderno_cassettes/delivered_receipt.yml +140 -0
  38. data/test/fixtures/quaderno_cassettes/found_contact.yml +319 -60
  39. data/test/fixtures/quaderno_cassettes/found_estimate.yml +53 -69
  40. data/test/fixtures/quaderno_cassettes/found_expense.yml +121 -65
  41. data/test/fixtures/quaderno_cassettes/found_invoice.yml +2916 -67
  42. data/test/fixtures/quaderno_cassettes/found_item.yml +50 -60
  43. data/test/fixtures/quaderno_cassettes/found_receipt.yml +101 -0
  44. data/test/fixtures/quaderno_cassettes/found_webhook.yml +60 -76
  45. data/test/fixtures/quaderno_cassettes/new_contact.yml +22 -29
  46. data/test/fixtures/quaderno_cassettes/new_estimate.yml +357 -84
  47. data/test/fixtures/quaderno_cassettes/new_expense.yml +414 -118
  48. data/test/fixtures/quaderno_cassettes/new_invoice.yml +361 -84
  49. data/test/fixtures/quaderno_cassettes/new_item.yml +22 -29
  50. data/test/fixtures/quaderno_cassettes/new_receipt.yml +169 -0
  51. data/test/fixtures/quaderno_cassettes/new_webhook.yml +38 -50
  52. data/test/fixtures/quaderno_cassettes/paid_expense.yml +79 -63
  53. data/test/fixtures/quaderno_cassettes/paid_invoice.yml +2907 -65
  54. data/test/fixtures/quaderno_cassettes/rate_limit.yml +22 -26
  55. data/test/fixtures/quaderno_cassettes/unpay_an_expense.yml +98 -85
  56. data/test/fixtures/quaderno_cassettes/unpay_an_invoice.yml +2926 -87
  57. data/test/fixtures/quaderno_cassettes/updated_contact.yml +318 -62
  58. data/test/fixtures/quaderno_cassettes/updated_estimate.yml +402 -116
  59. data/test/fixtures/quaderno_cassettes/updated_expense.yml +395 -113
  60. data/test/fixtures/quaderno_cassettes/updated_invoice.yml +410 -116
  61. data/test/fixtures/quaderno_cassettes/updated_item.yml +49 -61
  62. data/test/fixtures/quaderno_cassettes/updated_receipt.yml +214 -0
  63. data/test/fixtures/quaderno_cassettes/updated_webhook.yml +82 -105
  64. data/test/fixtures/quaderno_cassettes/wrong_token.yml +11 -25
  65. data/test/helper.rb +4 -0
  66. data/test/unit/test_quaderno_contacts.rb +18 -19
  67. data/test/unit/test_quaderno_estimates.rb +58 -31
  68. data/test/unit/test_quaderno_expenses.rb +68 -41
  69. data/test/unit/test_quaderno_invoices.rb +74 -47
  70. data/test/unit/test_quaderno_items.rb +27 -26
  71. data/test/unit/test_quaderno_receipts.rb +156 -0
  72. data/test/unit/test_quaderno_tax.rb +10 -10
  73. data/test/unit/test_quaderno_webhooks.rb +19 -20
  74. metadata +14 -2
@@ -0,0 +1,169 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/contacts.json
6
+ body:
7
+ encoding: UTF-8
8
+ string: first_name=Test%20customer
9
+ headers:
10
+ accept:
11
+ - application/json
12
+ authorization:
13
+ - Basic c2tfdGVzdF9CN3hYclRzcGZlR3VrUXFHTjFwSzo=
14
+ response:
15
+ status:
16
+ code: 201
17
+ message: Created
18
+ headers:
19
+ x-frame-options:
20
+ - ALLOWALL
21
+ x-ratelimit-limit:
22
+ - '2000'
23
+ x-ratelimit-reset:
24
+ - '15'
25
+ x-ratelimit-remaining:
26
+ - '100'
27
+ content-type:
28
+ - application/json; charset=utf-8
29
+ etag:
30
+ - '"8ec041e3298d948298fa09cfdd0e2780"'
31
+ cache-control:
32
+ - max-age=0, private, must-revalidate
33
+ x-request-id:
34
+ - 2abcdd17-7acf-4908-a7bf-92defb4f6613
35
+ x-runtime:
36
+ - '0.549822'
37
+ connection:
38
+ - close
39
+ server:
40
+ - thin
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"id":88,"kind":"company","created_at":1466681274,"full_name":"Test
44
+ customer","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":null,"web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"2d0e52984966c841bb4dfd612e696a58b9847307","permalink":"http://development.lvh.me:3000/billing/2d0e52984966c841bb4dfd612e696a58b9847307","url":"http://development.lvh.me:3000/api/contacts/88"}'
45
+ http_version: '1.1'
46
+ recorded_at: Thu, 23 Jun 2016 11:27:54 GMT
47
+ - request:
48
+ method: post
49
+ uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/receipts.json
50
+ body:
51
+ encoding: UTF-8
52
+ string: contact_id=88&currency=EUR&items_attributes[][description]=Aircraft&items_attributes[][quantity]=1.0&items_attributes[][unit_price]=0.0&tags=tnt&payment_method=cash&notes=
53
+ headers:
54
+ accept:
55
+ - application/json
56
+ authorization:
57
+ - Basic c2tfdGVzdF9CN3hYclRzcGZlR3VrUXFHTjFwSzo=
58
+ response:
59
+ status:
60
+ code: 201
61
+ message: Created
62
+ headers:
63
+ x-frame-options:
64
+ - ALLOWALL
65
+ x-ratelimit-limit:
66
+ - '2000'
67
+ x-ratelimit-reset:
68
+ - '15'
69
+ x-ratelimit-remaining:
70
+ - '99'
71
+ content-type:
72
+ - application/json; charset=utf-8
73
+ etag:
74
+ - '"face4e30857ae0103118c4c2c489a25b"'
75
+ cache-control:
76
+ - max-age=0, private, must-revalidate
77
+ x-request-id:
78
+ - 5af7f3ba-e6d4-47c2-b09e-ca589f15fdfa
79
+ x-runtime:
80
+ - '4.586340'
81
+ connection:
82
+ - close
83
+ server:
84
+ - thin
85
+ body:
86
+ encoding: UTF-8
87
+ string: '{"id":1069,"number":"0000006","issue_date":"2016-06-23","created_at":1466681274,"contact":{"id":88,"full_name":"Test
88
+ customer"},"street_line_1":null,"street_line_2":null,"city":null,"region":null,"postal_code":null,"po_number":null,"currency":"EUR","exchange_rate":"1.9558","items":[{"id":3088,"description":"Aircraft","quantity":"1.0","unit_price_cents":"0.0","discount_rate":"0.0","tax_1_name":null,"tax_1_rate":null,"tax_2_name":null,"tax_2_rate":null,"reference":null,"subtotal_cents":"0.0","discount_cents":"0.0","gross_amount_cents":"0.0"}],"subtotal_cents":"0.0","discount_cents":"0.0","taxes":[],"payments":[{"id":32,"date":"2016-06-23","payment_method":"cash","amount_cents":0}],"notes":null,"state":"paid","tag_list":[],"secure_id":"2f8c47de66d9fe5f662000e017d5fdb07825cc34","permalink":"http://development.lvh.me:3000/receipt/2f8c47de66d9fe5f662000e017d5fdb07825cc34","pdf":"http://development.lvh.me:3000/receipt/2f8c47de66d9fe5f662000e017d5fdb07825cc34.pdf","url":"http://development.lvh.me:3000/api/receipts/1069.json","processor":null,"processor_id":null}'
89
+ http_version: '1.1'
90
+ recorded_at: Thu, 23 Jun 2016 11:27:58 GMT
91
+ - request:
92
+ method: delete
93
+ uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/receipts/1069.json
94
+ body:
95
+ encoding: US-ASCII
96
+ string: ''
97
+ headers:
98
+ accept:
99
+ - application/json
100
+ authorization:
101
+ - Basic c2tfdGVzdF9CN3hYclRzcGZlR3VrUXFHTjFwSzo=
102
+ response:
103
+ status:
104
+ code: 204
105
+ message: No Content
106
+ headers:
107
+ x-frame-options:
108
+ - ALLOWALL
109
+ x-ratelimit-limit:
110
+ - '2000'
111
+ x-ratelimit-reset:
112
+ - '10'
113
+ x-ratelimit-remaining:
114
+ - '98'
115
+ cache-control:
116
+ - no-cache
117
+ x-request-id:
118
+ - bfaee760-6908-4607-8ca6-5d426f90bdfc
119
+ x-runtime:
120
+ - '1.059002'
121
+ connection:
122
+ - close
123
+ server:
124
+ - thin
125
+ body:
126
+ encoding: US-ASCII
127
+ string: ''
128
+ http_version: '1.1'
129
+ recorded_at: Thu, 23 Jun 2016 11:27:59 GMT
130
+ - request:
131
+ method: delete
132
+ uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/contacts/88.json
133
+ body:
134
+ encoding: US-ASCII
135
+ string: ''
136
+ headers:
137
+ accept:
138
+ - application/json
139
+ authorization:
140
+ - Basic c2tfdGVzdF9CN3hYclRzcGZlR3VrUXFHTjFwSzo=
141
+ response:
142
+ status:
143
+ code: 204
144
+ message: No Content
145
+ headers:
146
+ x-frame-options:
147
+ - ALLOWALL
148
+ x-ratelimit-limit:
149
+ - '2000'
150
+ x-ratelimit-reset:
151
+ - '8'
152
+ x-ratelimit-remaining:
153
+ - '97'
154
+ cache-control:
155
+ - no-cache
156
+ x-request-id:
157
+ - 145a682a-6e7a-4c0d-a94d-867765cad7c7
158
+ x-runtime:
159
+ - '1.087929'
160
+ connection:
161
+ - close
162
+ server:
163
+ - thin
164
+ body:
165
+ encoding: US-ASCII
166
+ string: ''
167
+ http_version: '1.1'
168
+ recorded_at: Thu, 23 Jun 2016 11:28:01 GMT
169
+ recorded_with: VCR 2.9.2
@@ -2,96 +2,84 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://RsNaLsNr1KZcdrQRKKKk@uruk-1066.sandbox-quadernoapp.com/api/v1/webhooks.json
5
+ uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/webhooks.json
6
6
  body:
7
- encoding: US-ASCII
7
+ encoding: UTF-8
8
8
  string: url=http%3A%2F%2Fquadernoapp.com&events_types[]=invoice.created&events_types[]=expense.updated
9
9
  headers:
10
+ accept:
11
+ - application/json
10
12
  authorization:
11
- - Basic UnNOYUxzTnIxS1pjZHJRUktLS2s6
13
+ - Basic c2tfdGVzdF9CN3hYclRzcGZlR3VrUXFHTjFwSzo=
12
14
  response:
13
15
  status:
14
16
  code: 201
15
17
  message: Created
16
18
  headers:
17
- server:
18
- - nginx/1.4.5
19
- date:
20
- - Tue, 01 Jul 2014 09:08:20 GMT
21
- content-type:
22
- - application/json; charset=utf-8
23
- transfer-encoding:
24
- - chunked
25
- connection:
26
- - close
27
- status:
28
- - 201 Created
19
+ x-frame-options:
20
+ - ALLOWALL
29
21
  x-ratelimit-limit:
30
22
  - '2000'
23
+ x-ratelimit-reset:
24
+ - '1'
31
25
  x-ratelimit-remaining:
32
- - '1923'
33
- x-ua-compatible:
34
- - IE=Edge,chrome=1
26
+ - '86'
27
+ content-type:
28
+ - application/json; charset=utf-8
35
29
  etag:
36
- - ! '"d0f4981d92975570d79cb875a057539d"'
30
+ - '"475f88b59f6bef096313afee14053207"'
37
31
  cache-control:
38
32
  - max-age=0, private, must-revalidate
39
- set-cookie:
40
- - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJTJjODYxOTFmNjA2NWU2MTkyZmRiYmFlYzQxZGJhMTJjBjsAVA%3D%3D--77944054aa73b7412c7f31c5854270a89e240423;
41
- domain=sandbox-quadernoapp.com; path=/; HttpOnly
42
33
  x-request-id:
43
- - 935665fbe3aa656b9d6200579356e310
34
+ - 97e9184c-c112-48f5-899c-a42a50d091fb
44
35
  x-runtime:
45
- - '1.034578'
46
- x-rack-cache:
47
- - invalidate, pass
36
+ - '12.199711'
37
+ connection:
38
+ - close
39
+ server:
40
+ - thin
48
41
  body:
49
- encoding: US-ASCII
50
- string: ! '{"id":85,"url":"http://quadernoapp.com","auth_key":"SouMWufqJcfkEAUUbJweuQ","events_types":["invoice.created","expense.updated"],"last_sent_at":null,"last_error":null,"events_sent":0,"created_at":"2014-07-01T09:08:20Z","updated_at":"2014-07-01T09:08:20Z"}'
42
+ encoding: UTF-8
43
+ string: '{"id":29,"url":"http://quadernoapp.com","auth_key":"rYi9rfhxKYLlxqcH1w_hdA","events_types":["invoice.created","expense.updated"],"last_sent_at":null,"last_error":null,"events_sent":0,"created_at":"2016-06-23T11:28:35.817Z","updated_at":"2016-06-23T11:28:35.817Z"}'
51
44
  http_version: '1.1'
52
- recorded_at: Tue, 01 Jul 2014 09:08:21 GMT
45
+ recorded_at: Thu, 23 Jun 2016 11:28:36 GMT
53
46
  - request:
54
47
  method: delete
55
- uri: http://RsNaLsNr1KZcdrQRKKKk@uruk-1066.sandbox-quadernoapp.com/api/v1/webhooks/85.json
48
+ uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/webhooks/29.json
56
49
  body:
57
50
  encoding: US-ASCII
58
51
  string: ''
59
52
  headers:
53
+ accept:
54
+ - application/json
60
55
  authorization:
61
- - Basic UnNOYUxzTnIxS1pjZHJRUktLS2s6
56
+ - Basic c2tfdGVzdF9CN3hYclRzcGZlR3VrUXFHTjFwSzo=
62
57
  response:
63
58
  status:
64
59
  code: 204
65
60
  message: No Content
66
61
  headers:
67
- server:
68
- - nginx/1.4.5
69
- date:
70
- - Tue, 01 Jul 2014 09:08:21 GMT
71
- connection:
72
- - close
73
- status:
74
- - 204 No Content
62
+ x-frame-options:
63
+ - ALLOWALL
75
64
  x-ratelimit-limit:
76
65
  - '2000'
66
+ x-ratelimit-reset:
67
+ - '15'
77
68
  x-ratelimit-remaining:
78
- - '1922'
79
- x-ua-compatible:
80
- - IE=Edge,chrome=1
69
+ - '100'
81
70
  cache-control:
82
71
  - no-cache
83
- set-cookie:
84
- - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJThiYmNkZjA4NmI3Y2JiZjZhZWY1YzcyMmQxZWFmZjUyBjsAVA%3D%3D--535cdda685050de1d4fdd6b556a348b5212f2a82;
85
- domain=sandbox-quadernoapp.com; path=/; HttpOnly
86
72
  x-request-id:
87
- - 213fd19a8e998f08e7f0bb418e37d29e
73
+ - fefeea97-3ebd-423d-8208-f22c3093bece
88
74
  x-runtime:
89
- - '0.053912'
90
- x-rack-cache:
91
- - invalidate, pass
75
+ - '0.540545'
76
+ connection:
77
+ - close
78
+ server:
79
+ - thin
92
80
  body:
93
81
  encoding: US-ASCII
94
82
  string: ''
95
83
  http_version: '1.1'
96
- recorded_at: Tue, 01 Jul 2014 09:08:21 GMT
84
+ recorded_at: Thu, 23 Jun 2016 11:28:36 GMT
97
85
  recorded_with: VCR 2.9.2
@@ -2,111 +2,127 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://RsNaLsNr1KZcdrQRKKKk@uruk-1066.sandbox-quadernoapp.com/api/v1/expenses.json
5
+ uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/expenses.json
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
9
  headers:
10
+ accept:
11
+ - application/json
10
12
  authorization:
11
- - Basic UnNOYUxzTnIxS1pjZHJRUktLS2s6
13
+ - Basic c2tfdGVzdF9CN3hYclRzcGZlR3VrUXFHTjFwSzo=
12
14
  response:
13
15
  status:
14
16
  code: 200
15
17
  message: OK
16
18
  headers:
17
- server:
18
- - nginx/1.4.5
19
- date:
20
- - Tue, 01 Jul 2014 09:07:10 GMT
21
- content-type:
22
- - application/json; charset=utf-8
23
- transfer-encoding:
24
- - chunked
25
- connection:
26
- - close
27
- status:
28
- - 200 OK
19
+ x-frame-options:
20
+ - ALLOWALL
29
21
  x-ratelimit-limit:
30
22
  - '2000'
23
+ x-ratelimit-reset:
24
+ - '14'
31
25
  x-ratelimit-remaining:
32
- - '1973'
26
+ - '98'
33
27
  x-pages-currentpage:
34
28
  - '1'
35
29
  x-pages-totalpages:
36
30
  - '1'
37
- x-ua-compatible:
38
- - IE=Edge,chrome=1
31
+ content-type:
32
+ - application/json; charset=utf-8
39
33
  etag:
40
- - ! '"3e9b13abe058e4da3fdae967b3cc7678"'
34
+ - '"59ac3e6be65e8f6b3cab1f2c5dfb0fa0"'
41
35
  cache-control:
42
- - must-revalidate, private, max-age=0
36
+ - max-age=0, private, must-revalidate
43
37
  x-request-id:
44
- - f7923c328830f16fc894509759e4a534
38
+ - 35baa3eb-bcec-469f-8781-698b18adcc95
45
39
  x-runtime:
46
- - '0.126845'
47
- x-rack-cache:
48
- - miss
40
+ - '0.556730'
41
+ connection:
42
+ - close
43
+ server:
44
+ - thin
49
45
  body:
50
- encoding: US-ASCII
51
- string: ! '[{"id":492370,"number":null,"issue_date":"2014-07-01","contact":{"id":142301,"full_name":"Vince
52
- Offer"},"po_number":"","currency":"EUR","items":[{"id":1294888,"description":"ShamWow","quantity":"100.0","unit_price":"9.99","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"reference":"","subtotal":"999.00
53
- \u20ac","discount":"0.00 \u20ac","gross_amount":"999.00 \u20ac"}],"subtotal":"999.00
54
- \u20ac","discount":"0.00 \u20ac","taxes":[],"total":"999.00 \u20ac","payments":[],"notes":"","state":"outstanding","tag_list":[],"url":"http://uruk-1066.sandbox-quadernoapp.com/api/v1/expenses/492370.json"},{"id":492368,"number":null,"issue_date":"2014-07-01","contact":{"id":142299,"full_name":"Test_OCP
55
- Stanman"},"po_number":"","currency":"EUR","items":[{"id":1294884,"description":"The
56
- Cadillac of Coffins''","quantity":"1.0","unit_price":"100000.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"reference":"","subtotal":"100,000.00
57
- \u20ac","discount":"0.00 \u20ac","gross_amount":"100,000.00 \u20ac"}],"subtotal":"100,000.00
58
- \u20ac","discount":"0.00 \u20ac","taxes":[],"total":"100,000.00 \u20ac","payments":[],"notes":"","state":"outstanding","tag_list":[],"url":"http://uruk-1066.sandbox-quadernoapp.com/api/v1/expenses/492368.json"}]'
46
+ encoding: ASCII-8BIT
47
+ string: !binary |-
48
+ W3siaWQiOjk5NCwiaXNzdWVfZGF0ZSI6IjIwMTYtMDYtMDgiLCJjcmVhdGVk
49
+ X2F0IjoxNDY1Mzg1NjQwLCJjb250YWN0Ijp7ImlkIjo1MywiZnVsbF9uYW1l
50
+ IjoiVGVzdF9PQ1AgVW1wacOpcnJleiJ9LCJzdHJlZXRfbGluZV8xIjpudWxs
51
+ LCJzdHJlZXRfbGluZV8yIjpudWxsLCJjaXR5IjpudWxsLCJyZWdpb24iOm51
52
+ bGwsInBvc3RhbF9jb2RlIjpudWxsLCJwb19udW1iZXIiOm51bGwsImN1cnJl
53
+ bmN5IjoiRVVSIiwiZXhjaGFuZ2VfcmF0ZSI6IjEuMCIsIml0ZW1zIjpbeyJp
54
+ ZCI6MTAwNCwiZGVzY3JpcHRpb24iOiJTb21ldGhpbmciLCJxdWFudGl0eSI6
55
+ IjEuMCIsInVuaXRfcHJpY2VfY2VudHMiOiIyMDAwLjAiLCJkaXNjb3VudF9y
56
+ YXRlIjoiMC4wIiwidGF4XzFfbmFtZSI6Ik13U3QuL1VTdC4iLCJ0YXhfMV9y
57
+ YXRlIjoxOS4wLCJ0YXhfMl9uYW1lIjoiIiwidGF4XzJfcmF0ZSI6bnVsbCwi
58
+ cmVmZXJlbmNlIjpudWxsLCJzdWJ0b3RhbF9jZW50cyI6IjIwMDAuMCIsImRp
59
+ c2NvdW50X2NlbnRzIjoiMC4wIiwiZ3Jvc3NfYW1vdW50X2NlbnRzIjoiMjAw
60
+ MC4wIn1dLCJzdWJ0b3RhbF9jZW50cyI6IjIwMDAuMCIsImRpc2NvdW50X2Nl
61
+ bnRzIjoiMC4wIiwidGF4ZXMiOlt7ImxhYmVsIjoiTXdTdC4vVVN0LiAoMTku
62
+ MDAlKSIsImFtb3VudF9jZW50cyI6MzgwfV0sImV4dHJhY3QiOnsidG90YWxf
63
+ Y2VudHMiOjIzODB9LCJwYXltZW50cyI6W3siaWQiOjgsImRhdGUiOiIyMDE2
64
+ LTA2LTA4IiwicGF5bWVudF9tZXRob2QiOiJjYXNoIiwiYW1vdW50X2NlbnRz
65
+ IjoyMzgwLCJ1cmwiOiJodHRwOi8vZGV2ZWxvcG1lbnQubHZoLm1lOjMwMDAv
66
+ YXBpL2V4cGVuc2VzLzk5NC9wYXltZW50cy84Lmpzb24ifSx7ImlkIjo5LCJk
67
+ YXRlIjoiMjAxNi0wNi0yMyIsInBheW1lbnRfbWV0aG9kIjoiY2FzaCIsImFt
68
+ b3VudF9jZW50cyI6MTAwMDAwMCwidXJsIjoiaHR0cDovL2RldmVsb3BtZW50
69
+ Lmx2aC5tZTozMDAwL2FwaS9leHBlbnNlcy85OTQvcGF5bWVudHMvOS5qc29u
70
+ In0seyJpZCI6MTMsImRhdGUiOiIyMDE2LTA2LTIzIiwicGF5bWVudF9tZXRo
71
+ b2QiOiJjYXNoIiwiYW1vdW50X2NlbnRzIjoxMDAwMDAwLCJ1cmwiOiJodHRw
72
+ Oi8vZGV2ZWxvcG1lbnQubHZoLm1lOjMwMDAvYXBpL2V4cGVuc2VzLzk5NC9w
73
+ YXltZW50cy8xMy5qc29uIn0seyJpZCI6MTcsImRhdGUiOiIyMDE2LTA2LTIz
74
+ IiwicGF5bWVudF9tZXRob2QiOiJjYXNoIiwiYW1vdW50X2NlbnRzIjoxMDAw
75
+ MDAwLCJ1cmwiOiJodHRwOi8vZGV2ZWxvcG1lbnQubHZoLm1lOjMwMDAvYXBp
76
+ L2V4cGVuc2VzLzk5NC9wYXltZW50cy8xNy5qc29uIn0seyJpZCI6MjEsImRh
77
+ dGUiOiIyMDE2LTA2LTIzIiwicGF5bWVudF9tZXRob2QiOiJjYXNoIiwiYW1v
78
+ dW50X2NlbnRzIjoxMDAwMDAwLCJ1cmwiOiJodHRwOi8vZGV2ZWxvcG1lbnQu
79
+ bHZoLm1lOjMwMDAvYXBpL2V4cGVuc2VzLzk5NC9wYXltZW50cy8yMS5qc29u
80
+ In1dLCJub3RlcyI6bnVsbCwic3RhdGUiOiJwYWlkIiwidGFnX2xpc3QiOltd
81
+ LCJ1cmwiOiJodHRwOi8vZGV2ZWxvcG1lbnQubHZoLm1lOjMwMDAvYXBpL2V4
82
+ cGVuc2VzLzk5NC5qc29uIn1d
59
83
  http_version: '1.1'
60
- recorded_at: Tue, 01 Jul 2014 09:07:10 GMT
84
+ recorded_at: Thu, 23 Jun 2016 11:25:47 GMT
61
85
  - request:
62
86
  method: post
63
- uri: http://RsNaLsNr1KZcdrQRKKKk@uruk-1066.sandbox-quadernoapp.com/api/v1/expenses/492370/payments.json
87
+ uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/expenses/994/payments.json
64
88
  body:
65
- encoding: US-ASCII
89
+ encoding: UTF-8
66
90
  string: payment_method=cash&amount=10000
67
91
  headers:
92
+ accept:
93
+ - application/json
68
94
  authorization:
69
- - Basic UnNOYUxzTnIxS1pjZHJRUktLS2s6
95
+ - Basic c2tfdGVzdF9CN3hYclRzcGZlR3VrUXFHTjFwSzo=
70
96
  response:
71
97
  status:
72
98
  code: 201
73
99
  message: Created
74
100
  headers:
75
- server:
76
- - nginx/1.4.5
77
- date:
78
- - Tue, 01 Jul 2014 09:07:10 GMT
79
- content-type:
80
- - application/json; charset=utf-8
81
- transfer-encoding:
82
- - chunked
83
- connection:
84
- - close
85
- status:
86
- - 201 Created
101
+ x-frame-options:
102
+ - ALLOWALL
87
103
  x-ratelimit-limit:
88
104
  - '2000'
105
+ x-ratelimit-reset:
106
+ - '13'
89
107
  x-ratelimit-remaining:
90
- - '1972'
91
- x-ua-compatible:
92
- - IE=Edge,chrome=1
108
+ - '97'
109
+ content-type:
110
+ - application/json; charset=utf-8
93
111
  etag:
94
- - ! '"e0cc0a191d927d48a5d4d96be59501e4"'
112
+ - '"af24184b6dc180c109241ef24104c67b"'
95
113
  cache-control:
96
114
  - max-age=0, private, must-revalidate
97
- set-cookie:
98
- - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJWIzNTI1YTA2ZGI4OGQ3MjY0MGYwMGI5ODk1NjM3MTUwBjsAVA%3D%3D--e5d294495d7d0d58864cc218b39f9d44bec161d0;
99
- domain=sandbox-quadernoapp.com; path=/; HttpOnly
100
115
  x-request-id:
101
- - 50f99491ce8734a5727e4350e54a463a
116
+ - 81798cc6-2ea5-4bb0-b248-d78c0dd518dd
102
117
  x-runtime:
103
- - '0.151338'
104
- x-rack-cache:
105
- - invalidate, pass
118
+ - '0.776857'
119
+ connection:
120
+ - close
121
+ server:
122
+ - thin
106
123
  body:
107
- encoding: US-ASCII
108
- string: ! '{"id":328807,"date":"2014-07-01","payment_method":"cash","amount":"10,000.00
109
- \u20ac","url":"http://uruk-1066.sandbox-quadernoapp.com/api/v1/expenses/492370/payments/328807.json"}'
124
+ encoding: UTF-8
125
+ string: '{"id":28,"date":"2016-06-23","payment_method":"cash","amount_cents":1000000,"url":"http://development.lvh.me:3000/api/expenses/994/payments/28.json"}'
110
126
  http_version: '1.1'
111
- recorded_at: Tue, 01 Jul 2014 09:07:10 GMT
127
+ recorded_at: Thu, 23 Jun 2016 11:25:48 GMT
112
128
  recorded_with: VCR 2.9.2