quaderno 1.14.0 → 1.15.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +56 -0
  3. data/.rspec +2 -0
  4. data/.travis.yml +4 -0
  5. data/Gemfile +2 -15
  6. data/README.md +1 -1
  7. data/Rakefile +4 -50
  8. data/changelog.md +9 -0
  9. data/lib/quaderno-ruby.rb +3 -4
  10. data/lib/quaderno-ruby/base.rb +106 -108
  11. data/lib/quaderno-ruby/behavior/block.rb +17 -19
  12. data/lib/quaderno-ruby/behavior/crud.rb +93 -95
  13. data/lib/quaderno-ruby/behavior/deliver.rb +16 -18
  14. data/lib/quaderno-ruby/behavior/payment.rb +32 -34
  15. data/lib/quaderno-ruby/behavior/retrieve.rb +23 -25
  16. data/lib/quaderno-ruby/contact.rb +6 -8
  17. data/lib/quaderno-ruby/credit.rb +10 -12
  18. data/lib/quaderno-ruby/document_item.rb +1 -3
  19. data/lib/quaderno-ruby/estimate.rb +5 -7
  20. data/lib/quaderno-ruby/evidence.rb +5 -7
  21. data/lib/quaderno-ruby/exceptions/exceptions.rb +42 -44
  22. data/lib/quaderno-ruby/expense.rb +6 -8
  23. data/lib/quaderno-ruby/helpers/authentication.rb +16 -18
  24. data/lib/quaderno-ruby/income.rb +8 -10
  25. data/lib/quaderno-ruby/invoice.rb +9 -11
  26. data/lib/quaderno-ruby/item.rb +3 -6
  27. data/lib/quaderno-ruby/payment.rb +1 -3
  28. data/lib/quaderno-ruby/receipt.rb +6 -8
  29. data/lib/quaderno-ruby/recurring.rb +4 -7
  30. data/lib/quaderno-ruby/report.rb +56 -58
  31. data/lib/quaderno-ruby/tax.rb +45 -47
  32. data/lib/quaderno-ruby/version.rb +3 -0
  33. data/lib/quaderno-ruby/webhook.rb +3 -5
  34. data/quaderno.gemspec +28 -148
  35. metadata +83 -84
  36. data/Gemfile.lock +0 -91
  37. data/VERSION +0 -1
  38. data/test/fixtures/quaderno_cassettes/.DS_Store +0 -0
  39. data/test/fixtures/quaderno_cassettes/all_contacts.yml +0 -52
  40. data/test/fixtures/quaderno_cassettes/all_contacts_by_access_token.yml +0 -56
  41. data/test/fixtures/quaderno_cassettes/all_contacts_by_authentication_token.yml +0 -57
  42. data/test/fixtures/quaderno_cassettes/all_estimates.yml +0 -52
  43. data/test/fixtures/quaderno_cassettes/all_expenses.yml +0 -55
  44. data/test/fixtures/quaderno_cassettes/all_invoices.yml +0 -56
  45. data/test/fixtures/quaderno_cassettes/all_items.yml +0 -46
  46. data/test/fixtures/quaderno_cassettes/all_receipts.yml +0 -53
  47. data/test/fixtures/quaderno_cassettes/all_webhooks.yml +0 -214
  48. data/test/fixtures/quaderno_cassettes/create_estimate_on_downgraded_API.yml +0 -156
  49. data/test/fixtures/quaderno_cassettes/create_expense_on_downgraded_API.yml +0 -278
  50. data/test/fixtures/quaderno_cassettes/create_invoice_on_downgraded_API.yml +0 -159
  51. data/test/fixtures/quaderno_cassettes/create_receipt_on_downgraded_API.yml +0 -196
  52. data/test/fixtures/quaderno_cassettes/deleted_contact.yml +0 -187
  53. data/test/fixtures/quaderno_cassettes/deleted_contact_by_access_token.yml +0 -199
  54. data/test/fixtures/quaderno_cassettes/deleted_contact_by_authentication_token.yml +0 -199
  55. data/test/fixtures/quaderno_cassettes/deleted_estimate.yml +0 -187
  56. data/test/fixtures/quaderno_cassettes/deleted_expense.yml +0 -189
  57. data/test/fixtures/quaderno_cassettes/deleted_invoice.yml +0 -190
  58. data/test/fixtures/quaderno_cassettes/deleted_item.yml +0 -128
  59. data/test/fixtures/quaderno_cassettes/deleted_receipt.yml +0 -223
  60. data/test/fixtures/quaderno_cassettes/deleted_webhook.yml +0 -257
  61. data/test/fixtures/quaderno_cassettes/delivered_estimate.yml +0 -136
  62. data/test/fixtures/quaderno_cassettes/delivered_invoice.yml +0 -143
  63. data/test/fixtures/quaderno_cassettes/delivered_receipt.yml +0 -140
  64. data/test/fixtures/quaderno_cassettes/evidence_invoice.yml +0 -98
  65. data/test/fixtures/quaderno_cassettes/found_contact.yml +0 -95
  66. data/test/fixtures/quaderno_cassettes/found_contact_by_access_token.yml +0 -99
  67. data/test/fixtures/quaderno_cassettes/found_contact_by_authentication_token.yml +0 -100
  68. data/test/fixtures/quaderno_cassettes/found_estimate.yml +0 -97
  69. data/test/fixtures/quaderno_cassettes/found_expense.yml +0 -99
  70. data/test/fixtures/quaderno_cassettes/found_invoice.yml +0 -100
  71. data/test/fixtures/quaderno_cassettes/found_item.yml +0 -91
  72. data/test/fixtures/quaderno_cassettes/found_receipt.yml +0 -98
  73. data/test/fixtures/quaderno_cassettes/found_webhook.yml +0 -130
  74. data/test/fixtures/quaderno_cassettes/new_contact.yml +0 -48
  75. data/test/fixtures/quaderno_cassettes/new_contact_by_access_token.yml +0 -48
  76. data/test/fixtures/quaderno_cassettes/new_contact_by_authentication_token.yml +0 -48
  77. data/test/fixtures/quaderno_cassettes/new_estimate.yml +0 -137
  78. data/test/fixtures/quaderno_cassettes/new_evidence.yml +0 -48
  79. data/test/fixtures/quaderno_cassettes/new_expense.yml +0 -189
  80. data/test/fixtures/quaderno_cassettes/new_invoice.yml +0 -137
  81. data/test/fixtures/quaderno_cassettes/new_item.yml +0 -48
  82. data/test/fixtures/quaderno_cassettes/new_receipt.yml +0 -173
  83. data/test/fixtures/quaderno_cassettes/new_webhook.yml +0 -87
  84. data/test/fixtures/quaderno_cassettes/paid_expense.yml +0 -98
  85. data/test/fixtures/quaderno_cassettes/paid_invoice.yml +0 -99
  86. data/test/fixtures/quaderno_cassettes/rate_limit.yml +0 -46
  87. data/test/fixtures/quaderno_cassettes/unpay_an_expense.yml +0 -138
  88. data/test/fixtures/quaderno_cassettes/unpay_an_invoice.yml +0 -138
  89. data/test/fixtures/quaderno_cassettes/updated_contact.yml +0 -97
  90. data/test/fixtures/quaderno_cassettes/updated_contact_by_access_token.yml +0 -101
  91. data/test/fixtures/quaderno_cassettes/updated_contact_by_authentication_token.yml +0 -102
  92. data/test/fixtures/quaderno_cassettes/updated_estimate.yml +0 -185
  93. data/test/fixtures/quaderno_cassettes/updated_expense.yml +0 -184
  94. data/test/fixtures/quaderno_cassettes/updated_invoice.yml +0 -184
  95. data/test/fixtures/quaderno_cassettes/updated_item.yml +0 -93
  96. data/test/fixtures/quaderno_cassettes/updated_receipt.yml +0 -220
  97. data/test/fixtures/quaderno_cassettes/updated_webhook.yml +0 -175
  98. data/test/fixtures/quaderno_cassettes/validate_invalid_VAT_number.yml +0 -44
  99. data/test/fixtures/quaderno_cassettes/validate_valid_VAT_number.yml +0 -44
  100. data/test/helper.rb +0 -32
  101. data/test/unit/test_quaderno_contacts.rb +0 -83
  102. data/test/unit/test_quaderno_contacts_thread_safe.rb +0 -104
  103. data/test/unit/test_quaderno_estimates.rb +0 -155
  104. data/test/unit/test_quaderno_evidences.rb +0 -41
  105. data/test/unit/test_quaderno_expenses.rb +0 -162
  106. data/test/unit/test_quaderno_invoices.rb +0 -177
  107. data/test/unit/test_quaderno_items.rb +0 -84
  108. data/test/unit/test_quaderno_receipts.rb +0 -156
  109. data/test/unit/test_quaderno_tax.rb +0 -46
  110. data/test/unit/test_quaderno_webhooks.rb +0 -93
@@ -1,220 +0,0 @@
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 customer"}'
9
- headers:
10
- accept:
11
- - application/json
12
- content-type:
13
- - application/json
14
- authorization:
15
- - Basic c2tfdGVzdF9CN3hYclRzcGZlR3VrUXFHTjFwSzo=
16
- response:
17
- status:
18
- code: 201
19
- message: Created
20
- headers:
21
- x-frame-options:
22
- - ALLOWALL
23
- x-ratelimit-limit:
24
- - '2000'
25
- x-ratelimit-reset:
26
- - '13'
27
- x-ratelimit-remaining:
28
- - '98'
29
- content-type:
30
- - application/json; charset=utf-8
31
- etag:
32
- - '"9add49064c7cdbb7075d7041400a4793"'
33
- cache-control:
34
- - max-age=0, private, must-revalidate
35
- x-request-id:
36
- - 2febc61d-7841-42a5-910b-fc4b7a801a0f
37
- x-runtime:
38
- - '1.382284'
39
- connection:
40
- - close
41
- server:
42
- - thin
43
- body:
44
- encoding: UTF-8
45
- string: '{"id":54,"kind":"company","created_at":1497268190,"full_name":"Test
46
- 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":"60bdc026b6e7315ebc4a520c729333ce73465abd","permalink":"http://development.lvh.me:3000/billing/60bdc026b6e7315ebc4a520c729333ce73465abd","url":"http://development.lvh.me:3000/api/contacts/54"}'
47
- http_version: '1.1'
48
- recorded_at: Mon, 12 Jun 2017 11:49:50 GMT
49
- - request:
50
- method: post
51
- uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/receipts.json
52
- body:
53
- encoding: UTF-8
54
- string: '{"contact_id":54,"currency":"EUR","items_attributes":[{"description":"Aircraft","quantity":"1.0","unit_price":"0.0"}],"tags":"tnt","payment_method":"cash","notes":""}'
55
- headers:
56
- accept:
57
- - application/json
58
- content-type:
59
- - application/json
60
- authorization:
61
- - Basic c2tfdGVzdF9CN3hYclRzcGZlR3VrUXFHTjFwSzo=
62
- response:
63
- status:
64
- code: 201
65
- message: Created
66
- headers:
67
- x-frame-options:
68
- - ALLOWALL
69
- x-ratelimit-limit:
70
- - '2000'
71
- x-ratelimit-reset:
72
- - '12'
73
- x-ratelimit-remaining:
74
- - '97'
75
- content-type:
76
- - application/json; charset=utf-8
77
- etag:
78
- - '"91cf83bc0d595ace3687a1b2e122958c"'
79
- cache-control:
80
- - max-age=0, private, must-revalidate
81
- x-request-id:
82
- - 2646602d-8a60-408d-849f-22aa435aa465
83
- x-runtime:
84
- - '4.620237'
85
- connection:
86
- - close
87
- server:
88
- - thin
89
- body:
90
- encoding: UTF-8
91
- string: '{"id":204,"blocked":false,"number":"0003","issue_date":"2017-06-12","created_at":1497268191,"contact":{"id":54,"full_name":"Test
92
- customer"},"country":"ES","street_line_1":null,"street_line_2":null,"city":null,"region":null,"postal_code":null,"po_number":null,"currency":"EUR","subject":null,"items":[{"id":205,"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":54,"date":"2017-06-12","payment_method":"cash","amount_cents":0}],"notes":null,"state":"paid","tag_list":[],"secure_id":"64687022590db95fa97a32ac967b24cb88bad958","permalink":"http://development.lvh.me:3000/receipt/64687022590db95fa97a32ac967b24cb88bad958","pdf":"http://development.lvh.me:3000/receipt/64687022590db95fa97a32ac967b24cb88bad958.pdf","url":"http://development.lvh.me:3000/api/receipts/204.json","processor":null,"processor_id":null,"custom_metadata":{}}'
93
- http_version: '1.1'
94
- recorded_at: Mon, 12 Jun 2017 11:49:55 GMT
95
- - request:
96
- method: put
97
- uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/receipts/204.json
98
- body:
99
- encoding: UTF-8
100
- string: '{"notes":"Show me the moneeeeeeeyy!!!!"}'
101
- headers:
102
- accept:
103
- - application/json
104
- content-type:
105
- - application/json
106
- authorization:
107
- - Basic c2tfdGVzdF9CN3hYclRzcGZlR3VrUXFHTjFwSzo=
108
- response:
109
- status:
110
- code: 200
111
- message: OK
112
- headers:
113
- x-frame-options:
114
- - ALLOWALL
115
- x-ratelimit-limit:
116
- - '2000'
117
- x-ratelimit-reset:
118
- - '7'
119
- x-ratelimit-remaining:
120
- - '96'
121
- content-type:
122
- - application/json; charset=utf-8
123
- etag:
124
- - '"4d11c125cf46e28ca6ed2994d9665b32"'
125
- cache-control:
126
- - max-age=0, private, must-revalidate
127
- x-request-id:
128
- - ec358ced-cca9-4a6a-9bf9-aa7c25050997
129
- x-runtime:
130
- - '3.640285'
131
- connection:
132
- - close
133
- server:
134
- - thin
135
- body:
136
- encoding: UTF-8
137
- string: '{"id":204,"blocked":false,"number":"0003","issue_date":"2017-06-12","created_at":1497268191,"contact":{"id":54,"full_name":"Test
138
- customer"},"country":"ES","street_line_1":null,"street_line_2":null,"city":null,"region":null,"postal_code":null,"po_number":null,"currency":"EUR","subject":null,"items":[{"id":205,"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":54,"date":"2017-06-12","payment_method":"cash","amount_cents":0}],"notes":"Show
139
- me the moneeeeeeeyy!!!!","state":"paid","tag_list":[],"secure_id":"64687022590db95fa97a32ac967b24cb88bad958","permalink":"http://development.lvh.me:3000/receipt/64687022590db95fa97a32ac967b24cb88bad958","pdf":"http://development.lvh.me:3000/receipt/64687022590db95fa97a32ac967b24cb88bad958.pdf","url":"http://development.lvh.me:3000/api/receipts/204.json","processor":null,"processor_id":null,"custom_metadata":{}}'
140
- http_version: '1.1'
141
- recorded_at: Mon, 12 Jun 2017 11:49:59 GMT
142
- - request:
143
- method: delete
144
- uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/receipts/204.json
145
- body:
146
- encoding: US-ASCII
147
- string: ''
148
- headers:
149
- accept:
150
- - application/json
151
- authorization:
152
- - Basic c2tfdGVzdF9CN3hYclRzcGZlR3VrUXFHTjFwSzo=
153
- response:
154
- status:
155
- code: 204
156
- message: No Content
157
- headers:
158
- x-frame-options:
159
- - ALLOWALL
160
- x-ratelimit-limit:
161
- - '2000'
162
- x-ratelimit-reset:
163
- - '3'
164
- x-ratelimit-remaining:
165
- - '95'
166
- cache-control:
167
- - no-cache
168
- x-request-id:
169
- - eef2ba83-87a9-45b8-9493-f0606805b64c
170
- x-runtime:
171
- - '2.957383'
172
- connection:
173
- - close
174
- server:
175
- - thin
176
- body:
177
- encoding: US-ASCII
178
- string: ''
179
- http_version: '1.1'
180
- recorded_at: Mon, 12 Jun 2017 11:50:02 GMT
181
- - request:
182
- method: delete
183
- uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/contacts/54.json
184
- body:
185
- encoding: US-ASCII
186
- string: ''
187
- headers:
188
- accept:
189
- - application/json
190
- authorization:
191
- - Basic c2tfdGVzdF9CN3hYclRzcGZlR3VrUXFHTjFwSzo=
192
- response:
193
- status:
194
- code: 204
195
- message: No Content
196
- headers:
197
- x-frame-options:
198
- - ALLOWALL
199
- x-ratelimit-limit:
200
- - '2000'
201
- x-ratelimit-reset:
202
- - '1'
203
- x-ratelimit-remaining:
204
- - '94'
205
- cache-control:
206
- - no-cache
207
- x-request-id:
208
- - cab0ead8-c00f-4179-81e7-5816ef7c81b5
209
- x-runtime:
210
- - '1.099096'
211
- connection:
212
- - close
213
- server:
214
- - thin
215
- body:
216
- encoding: US-ASCII
217
- string: ''
218
- http_version: '1.1'
219
- recorded_at: Mon, 12 Jun 2017 11:50:03 GMT
220
- recorded_with: VCR 2.9.2
@@ -1,175 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/webhooks.json
6
- body:
7
- encoding: UTF-8
8
- string: '{"url":"http://quadernoapp.com","events_types":["invoice.created","expense.updated"]}'
9
- headers:
10
- accept:
11
- - application/json
12
- content-type:
13
- - application/json
14
- authorization:
15
- - Basic c2tfdGVzdF9CN3hYclRzcGZlR3VrUXFHTjFwSzo=
16
- response:
17
- status:
18
- code: 201
19
- message: Created
20
- headers:
21
- x-frame-options:
22
- - ALLOWALL
23
- x-ratelimit-limit:
24
- - '2000'
25
- x-ratelimit-reset:
26
- - '7'
27
- x-ratelimit-remaining:
28
- - '93'
29
- content-type:
30
- - application/json; charset=utf-8
31
- etag:
32
- - '"50272ad49799cb72cebe932d58808877"'
33
- cache-control:
34
- - max-age=0, private, must-revalidate
35
- x-request-id:
36
- - c057b4fb-bdd8-49a4-8fd6-ef2e6eceb20f
37
- x-runtime:
38
- - '1.872855'
39
- connection:
40
- - close
41
- server:
42
- - thin
43
- body:
44
- encoding: UTF-8
45
- string: '{"id":8,"url":"http://quadernoapp.com","auth_key":"JL-KguI89KWWPQfx-j_jVQ","events_types":["invoice.created","expense.updated"],"last_sent_at":null,"last_error":null,"events_sent":0,"created_at":"2017-06-12T11:54:33.493Z","updated_at":"2017-06-12T11:54:33.493Z"}'
46
- http_version: '1.1'
47
- recorded_at: Mon, 12 Jun 2017 11:54:33 GMT
48
- - request:
49
- method: get
50
- uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/webhooks.json?
51
- body:
52
- encoding: US-ASCII
53
- string: ''
54
- headers:
55
- accept:
56
- - application/json
57
- authorization:
58
- - Basic c2tfdGVzdF9CN3hYclRzcGZlR3VrUXFHTjFwSzo=
59
- response:
60
- status:
61
- code: 200
62
- message: OK
63
- headers:
64
- x-frame-options:
65
- - ALLOWALL
66
- x-ratelimit-limit:
67
- - '2000'
68
- x-ratelimit-reset:
69
- - '5'
70
- x-ratelimit-remaining:
71
- - '92'
72
- content-type:
73
- - application/json; charset=utf-8
74
- etag:
75
- - '"5096b6af7b77b2a57d706dd1434b3970"'
76
- cache-control:
77
- - max-age=0, private, must-revalidate
78
- x-request-id:
79
- - 81b27380-7fc2-42dd-b974-e2c93f9d2315
80
- x-runtime:
81
- - '0.645302'
82
- connection:
83
- - close
84
- server:
85
- - thin
86
- body:
87
- encoding: UTF-8
88
- string: '[{"id":1,"url":"http://quadernoapp.com","auth_key":"Ze024XpO9CJ6Fy2frwWV4Q","events_types":["invoice.created","expense.updated"],"last_sent_at":null,"last_error":null,"events_sent":0,"created_at":"2017-06-12T11:53:54.000Z","updated_at":"2017-06-12T11:53:54.000Z"},{"id":8,"url":"http://quadernoapp.com","auth_key":"JL-KguI89KWWPQfx-j_jVQ","events_types":["invoice.created","expense.updated"],"last_sent_at":null,"last_error":null,"events_sent":0,"created_at":"2017-06-12T11:54:33.000Z","updated_at":"2017-06-12T11:54:33.000Z"}]'
89
- http_version: '1.1'
90
- recorded_at: Mon, 12 Jun 2017 11:54:34 GMT
91
- - request:
92
- method: put
93
- uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/webhooks/8.json
94
- body:
95
- encoding: UTF-8
96
- string: '{"events_types":["invoice.created","invoice.updated","contact.deleted"]}'
97
- headers:
98
- accept:
99
- - application/json
100
- content-type:
101
- - application/json
102
- authorization:
103
- - Basic c2tfdGVzdF9CN3hYclRzcGZlR3VrUXFHTjFwSzo=
104
- response:
105
- status:
106
- code: 200
107
- message: OK
108
- headers:
109
- x-frame-options:
110
- - ALLOWALL
111
- x-ratelimit-limit:
112
- - '2000'
113
- x-ratelimit-reset:
114
- - '4'
115
- x-ratelimit-remaining:
116
- - '91'
117
- content-type:
118
- - application/json; charset=utf-8
119
- etag:
120
- - '"926cdf82d9b90ab6c43e3b76c7cbb096"'
121
- cache-control:
122
- - max-age=0, private, must-revalidate
123
- x-request-id:
124
- - 4ac6d2cf-c1e5-48fc-81e8-20f745a84040
125
- x-runtime:
126
- - '1.871170'
127
- connection:
128
- - close
129
- server:
130
- - thin
131
- body:
132
- encoding: UTF-8
133
- string: '{"id":8,"url":"http://quadernoapp.com","auth_key":"JL-KguI89KWWPQfx-j_jVQ","events_types":["invoice.created","invoice.updated","contact.deleted"],"last_sent_at":null,"last_error":null,"events_sent":0,"created_at":"2017-06-12T11:54:33.000Z","updated_at":"2017-06-12T11:54:36.369Z"}'
134
- http_version: '1.1'
135
- recorded_at: Mon, 12 Jun 2017 11:54:36 GMT
136
- - request:
137
- method: delete
138
- uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/webhooks/8.json
139
- body:
140
- encoding: US-ASCII
141
- string: ''
142
- headers:
143
- accept:
144
- - application/json
145
- authorization:
146
- - Basic c2tfdGVzdF9CN3hYclRzcGZlR3VrUXFHTjFwSzo=
147
- response:
148
- status:
149
- code: 204
150
- message: No Content
151
- headers:
152
- x-frame-options:
153
- - ALLOWALL
154
- x-ratelimit-limit:
155
- - '2000'
156
- x-ratelimit-reset:
157
- - '2'
158
- x-ratelimit-remaining:
159
- - '90'
160
- cache-control:
161
- - no-cache
162
- x-request-id:
163
- - 70e6bc87-63f8-456a-a42f-3ac79d407e94
164
- x-runtime:
165
- - '0.936896'
166
- connection:
167
- - close
168
- server:
169
- - thin
170
- body:
171
- encoding: US-ASCII
172
- string: ''
173
- http_version: '1.1'
174
- recorded_at: Mon, 12 Jun 2017 11:54:37 GMT
175
- recorded_with: VCR 2.9.2
@@ -1,44 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/taxes/validate.json?country=IE&vat_number=IE6388047X
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- authorization:
11
- - Basic c2tfdGVzdF9CN3hYclRzcGZlR3VrUXFHTjFwSzo=
12
- response:
13
- status:
14
- code: 200
15
- message: OK
16
- headers:
17
- x-frame-options:
18
- - ALLOWALL
19
- x-ratelimit-limit:
20
- - '2000'
21
- x-ratelimit-reset:
22
- - '14'
23
- x-ratelimit-remaining:
24
- - '98'
25
- content-type:
26
- - application/json; charset=utf-8
27
- etag:
28
- - '"fe2f663bfba92bdd59b4bd0190a146b7"'
29
- cache-control:
30
- - max-age=0, private, must-revalidate
31
- x-request-id:
32
- - 21922ced-169f-4a23-ac48-94b3c86d47d7
33
- x-runtime:
34
- - '0.444012'
35
- connection:
36
- - close
37
- server:
38
- - thin
39
- body:
40
- encoding: UTF-8
41
- string: '{"valid":false}'
42
- http_version: '1.1'
43
- recorded_at: Tue, 30 Aug 2016 10:38:15 GMT
44
- recorded_with: VCR 2.9.2
@@ -1,44 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/taxes/validate.json?country=IE&vat_number=IE6388047V
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- authorization:
11
- - Basic c2tfdGVzdF9CN3hYclRzcGZlR3VrUXFHTjFwSzo=
12
- response:
13
- status:
14
- code: 200
15
- message: OK
16
- headers:
17
- x-frame-options:
18
- - ALLOWALL
19
- x-ratelimit-limit:
20
- - '2000'
21
- x-ratelimit-reset:
22
- - '15'
23
- x-ratelimit-remaining:
24
- - '99'
25
- content-type:
26
- - application/json; charset=utf-8
27
- etag:
28
- - '"39837b2fcec9d416bda32e66244da470"'
29
- cache-control:
30
- - max-age=0, private, must-revalidate
31
- x-request-id:
32
- - 2153abc6-2f6e-47da-9f37-f4edb50b16a9
33
- x-runtime:
34
- - '2.047779'
35
- connection:
36
- - close
37
- server:
38
- - thin
39
- body:
40
- encoding: UTF-8
41
- string: '{"valid":true}'
42
- http_version: '1.1'
43
- recorded_at: Tue, 30 Aug 2016 10:38:15 GMT
44
- recorded_with: VCR 2.9.2