quaderno 1.11.2 → 1.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +53 -1
- data/VERSION +1 -1
- data/changelog.md +3 -0
- data/lib/quaderno-ruby/base.rb +12 -2
- data/lib/quaderno-ruby/behavior/crud.rb +56 -11
- data/lib/quaderno-ruby/behavior/deliver.rb +10 -2
- data/lib/quaderno-ruby/behavior/payment.rb +23 -4
- data/lib/quaderno-ruby/behavior/retrieve.rb +11 -2
- data/lib/quaderno-ruby/collection.rb +22 -0
- data/lib/quaderno-ruby/helpers/authentication.rb +26 -0
- data/lib/quaderno-ruby.rb +4 -1
- data/quaderno.gemspec +16 -5
- data/test/fixtures/quaderno_cassettes/all_contacts.yml +11 -282
- data/test/fixtures/quaderno_cassettes/all_contacts_by_access_token.yml +56 -0
- data/test/fixtures/quaderno_cassettes/all_contacts_by_authentication_token.yml +57 -0
- data/test/fixtures/quaderno_cassettes/all_estimates.yml +10 -14
- data/test/fixtures/quaderno_cassettes/all_expenses.yml +14 -47
- data/test/fixtures/quaderno_cassettes/all_invoices.yml +13 -2873
- data/test/fixtures/quaderno_cassettes/all_items.yml +8 -8
- data/test/fixtures/quaderno_cassettes/all_receipts.yml +11 -14
- data/test/fixtures/quaderno_cassettes/all_webhooks.yml +40 -36
- data/test/fixtures/quaderno_cassettes/create_estimate_on_downgraded_API.yml +46 -318
- data/test/fixtures/quaderno_cassettes/create_expense_on_downgraded_API.yml +125 -357
- data/test/fixtures/quaderno_cassettes/create_invoice_on_downgraded_API.yml +45 -318
- data/test/fixtures/quaderno_cassettes/create_receipt_on_downgraded_API.yml +56 -53
- data/test/fixtures/quaderno_cassettes/deleted_contact.yml +40 -592
- data/test/fixtures/quaderno_cassettes/deleted_contact_by_access_token.yml +199 -0
- data/test/fixtures/quaderno_cassettes/deleted_contact_by_authentication_token.yml +199 -0
- data/test/fixtures/quaderno_cassettes/deleted_estimate.yml +40 -334
- data/test/fixtures/quaderno_cassettes/deleted_expense.yml +43 -364
- data/test/fixtures/quaderno_cassettes/deleted_invoice.yml +44 -3199
- data/test/fixtures/quaderno_cassettes/deleted_item.yml +22 -22
- data/test/fixtures/quaderno_cassettes/deleted_receipt.yml +43 -42
- data/test/fixtures/quaderno_cassettes/deleted_webhook.yml +48 -44
- data/test/fixtures/quaderno_cassettes/delivered_estimate.yml +25 -32
- data/test/fixtures/quaderno_cassettes/delivered_invoice.yml +29 -2888
- data/test/fixtures/quaderno_cassettes/delivered_receipt.yml +29 -29
- data/test/fixtures/quaderno_cassettes/evidence_invoice.yml +19 -354
- data/test/fixtures/quaderno_cassettes/found_contact.yml +19 -291
- data/test/fixtures/quaderno_cassettes/found_contact_by_access_token.yml +99 -0
- data/test/fixtures/quaderno_cassettes/found_contact_by_authentication_token.yml +100 -0
- data/test/fixtures/quaderno_cassettes/found_estimate.yml +20 -24
- data/test/fixtures/quaderno_cassettes/found_expense.yml +24 -94
- data/test/fixtures/quaderno_cassettes/found_invoice.yml +22 -2886
- data/test/fixtures/quaderno_cassettes/found_item.yml +18 -16
- data/test/fixtures/quaderno_cassettes/found_receipt.yml +21 -24
- data/test/fixtures/quaderno_cassettes/found_webhook.yml +24 -22
- data/test/fixtures/quaderno_cassettes/new_contact.yml +9 -7
- data/test/fixtures/quaderno_cassettes/new_contact_by_access_token.yml +48 -0
- data/test/fixtures/quaderno_cassettes/new_contact_by_authentication_token.yml +48 -0
- data/test/fixtures/quaderno_cassettes/new_estimate.yml +29 -320
- data/test/fixtures/quaderno_cassettes/new_evidence.yml +10 -8
- data/test/fixtures/quaderno_cassettes/new_expense.yml +42 -363
- data/test/fixtures/quaderno_cassettes/new_invoice.yml +29 -324
- data/test/fixtures/quaderno_cassettes/new_item.yml +10 -8
- data/test/fixtures/quaderno_cassettes/new_receipt.yml +28 -24
- data/test/fixtures/quaderno_cassettes/new_webhook.yml +16 -14
- data/test/fixtures/quaderno_cassettes/paid_expense.yml +22 -52
- data/test/fixtures/quaderno_cassettes/paid_invoice.yml +22 -2879
- data/test/fixtures/quaderno_cassettes/rate_limit.yml +5 -5
- data/test/fixtures/quaderno_cassettes/unpay_an_expense.yml +29 -61
- data/test/fixtures/quaderno_cassettes/unpay_an_invoice.yml +28 -2888
- data/test/fixtures/quaderno_cassettes/updated_contact.yml +22 -292
- data/test/fixtures/quaderno_cassettes/updated_contact_by_access_token.yml +101 -0
- data/test/fixtures/quaderno_cassettes/updated_contact_by_authentication_token.yml +102 -0
- data/test/fixtures/quaderno_cassettes/updated_estimate.yml +44 -353
- data/test/fixtures/quaderno_cassettes/updated_expense.yml +43 -346
- data/test/fixtures/quaderno_cassettes/updated_invoice.yml +43 -361
- data/test/fixtures/quaderno_cassettes/updated_item.yml +21 -17
- data/test/fixtures/quaderno_cassettes/updated_receipt.yml +47 -41
- data/test/fixtures/quaderno_cassettes/updated_webhook.yml +35 -31
- data/test/helper.rb +2 -1
- data/test/unit/test_quaderno_contacts.rb +1 -1
- data/test/unit/test_quaderno_contacts_thread_safe.rb +104 -0
- data/test/unit/test_quaderno_expenses.rb +5 -5
- metadata +15 -4
- data/test/fixtures/quaderno_cassettes/calculate_tax.yml +0 -85
- data/test/fixtures/quaderno_cassettes/wrong_token.yml +0 -36
@@ -0,0 +1,199 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://development.lvh.me:3000/api/contacts.json
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"kind":"company","first_name":"Z, Mazinger Z","email":"koji@kabuto.ftw"}'
|
9
|
+
headers:
|
10
|
+
accept:
|
11
|
+
- application/json
|
12
|
+
authorization:
|
13
|
+
- Bearer 36b82411e6686581fe3d7d10fbe931a3fdc9265a353832f0e3ff6269bd319e12
|
14
|
+
content-type:
|
15
|
+
- application/json
|
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
|
+
- '15'
|
27
|
+
x-ratelimit-remaining:
|
28
|
+
- '100'
|
29
|
+
content-type:
|
30
|
+
- application/json; charset=utf-8
|
31
|
+
etag:
|
32
|
+
- '"0487358c1642ab9eb6290e039b0509a6"'
|
33
|
+
cache-control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
x-request-id:
|
36
|
+
- 38ed9e05-ea87-45c6-9f35-0c7fcc9f6131
|
37
|
+
x-runtime:
|
38
|
+
- '0.325626'
|
39
|
+
connection:
|
40
|
+
- close
|
41
|
+
server:
|
42
|
+
- thin
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: '{"id":68,"kind":"company","created_at":1497351605,"full_name":"Z, Mazinger
|
46
|
+
Z","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":"koji@kabuto.ftw","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"efd3bc7bd1d8b19334ac5396478a4e22d6a20c66","permalink":"http://development.lvh.me:3000/billing/efd3bc7bd1d8b19334ac5396478a4e22d6a20c66","url":"http://development.lvh.me:3000/api/contacts/68"}'
|
47
|
+
http_version: '1.1'
|
48
|
+
recorded_at: Tue, 13 Jun 2017 11:00:05 GMT
|
49
|
+
- request:
|
50
|
+
method: get
|
51
|
+
uri: http://development.lvh.me:3000/api/contacts.json?
|
52
|
+
body:
|
53
|
+
encoding: US-ASCII
|
54
|
+
string: ''
|
55
|
+
headers:
|
56
|
+
accept:
|
57
|
+
- application/json
|
58
|
+
authorization:
|
59
|
+
- Bearer 36b82411e6686581fe3d7d10fbe931a3fdc9265a353832f0e3ff6269bd319e12
|
60
|
+
response:
|
61
|
+
status:
|
62
|
+
code: 200
|
63
|
+
message: OK
|
64
|
+
headers:
|
65
|
+
x-frame-options:
|
66
|
+
- ALLOWALL
|
67
|
+
x-ratelimit-limit:
|
68
|
+
- '2000'
|
69
|
+
x-ratelimit-reset:
|
70
|
+
- '15'
|
71
|
+
x-ratelimit-remaining:
|
72
|
+
- '99'
|
73
|
+
x-pages-currentpage:
|
74
|
+
- '1'
|
75
|
+
x-pages-totalpages:
|
76
|
+
- '1'
|
77
|
+
content-type:
|
78
|
+
- application/json; charset=utf-8
|
79
|
+
etag:
|
80
|
+
- '"d54d91f4990a7664ea7846e8457b23c0"'
|
81
|
+
cache-control:
|
82
|
+
- max-age=0, private, must-revalidate
|
83
|
+
x-request-id:
|
84
|
+
- ce7cba56-6f4d-4f50-8575-8ce861136a10
|
85
|
+
x-runtime:
|
86
|
+
- '0.275728'
|
87
|
+
connection:
|
88
|
+
- close
|
89
|
+
server:
|
90
|
+
- thin
|
91
|
+
body:
|
92
|
+
encoding: UTF-8
|
93
|
+
string: '[{"id":44,"kind":"company","created_at":1496660076,"full_name":"Albus
|
94
|
+
Dumbledoge","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"BE","phone_1":null,"phone_2":null,"fax":null,"email":"john@recrea.es","web":null,"discount":null,"tax_id":null,"vat_number":null,"language":"DE","notes":null,"processor_id":"cst_yBHtjcSFhR","secure_id":"51ed8dd564d46a3e8f6550686dea84750c5d4b80","permalink":"http://development.lvh.me:3000/billing/51ed8dd564d46a3e8f6550686dea84750c5d4b80","url":"http://development.lvh.me:3000/api/contacts/44"},{"id":42,"kind":"person","created_at":1495535760,"first_name":"Cidi","last_name":"Campidocti","full_name":"Cidi
|
95
|
+
Campidocti","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":"","vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"7e17fe690137a91f7d1b8c1602fb7667ab981b00","permalink":"http://development.lvh.me:3000/billing/7e17fe690137a91f7d1b8c1602fb7667ab981b00","url":"http://development.lvh.me:3000/api/contacts/42"},{"id":43,"kind":"company","created_at":1496653655,"full_name":"Test_OCP","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":"dont@stop.believing","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"processor_id":"tr_VpKBExBQxU","secure_id":"240d872343b09c0e4f095cfd6484c6eabc74c6eb","permalink":"http://development.lvh.me:3000/billing/240d872343b09c0e4f095cfd6484c6eabc74c6eb","url":"http://development.lvh.me:3000/api/contacts/43"},{"id":50,"kind":"company","created_at":1497267993,"full_name":"Test_OCP","contact_name":null,"street_line_1":"asdasdas","street_line_2":"3rwerds","postal_code":"08080","city":"Sdasdasd","region":"sadasdasd","country":"ES","phone_1":null,"phone_2":null,"fax":null,"email":"dont@stop.believing","web":null,"discount":null,"tax_id":"ES78488057M","vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"757312a30b02810e495ae18c312a50a1e4f4b713","permalink":"http://development.lvh.me:3000/billing/757312a30b02810e495ae18c312a50a1e4f4b713","url":"http://development.lvh.me:3000/api/contacts/50"},{"id":45,"kind":"company","created_at":1497013162,"full_name":"Test_Skynet","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":"my_little@po.ny","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"0c102e324af99ba80911b5040f8c3ac253c76890","permalink":"http://development.lvh.me:3000/billing/0c102e324af99ba80911b5040f8c3ac253c76890","url":"http://development.lvh.me:3000/api/contacts/45"},{"id":47,"kind":"company","created_at":1497013255,"full_name":"Test_Skynet","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":"my_little@po.ny","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"e09d2dd3b8781a417a0ee1b43bdb5499a8e925a7","permalink":"http://development.lvh.me:3000/billing/e09d2dd3b8781a417a0ee1b43bdb5499a8e925a7","url":"http://development.lvh.me:3000/api/contacts/47"},{"id":55,"kind":"company","created_at":1497269711,"full_name":"Test_Skynet","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":"my_little@po.ny","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"42e59fd208fd654dbfd7d61fa9bfbb1706a7bba3","permalink":"http://development.lvh.me:3000/billing/42e59fd208fd654dbfd7d61fa9bfbb1706a7bba3","url":"http://development.lvh.me:3000/api/contacts/55"},{"id":56,"kind":"company","created_at":1497351006,"full_name":"Test_Skynet","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":"my_little@po.ny","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"0685fa00c66ec752aacd5f3e1f81365831cd3d65","permalink":"http://development.lvh.me:3000/billing/0685fa00c66ec752aacd5f3e1f81365831cd3d65","url":"http://development.lvh.me:3000/api/contacts/56"},{"id":58,"kind":"company","created_at":1497351105,"full_name":"Test_Skynet","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":"my_little@po.ny","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"8bebc09443c4f72ef4059058607c50447b2f3c16","permalink":"http://development.lvh.me:3000/billing/8bebc09443c4f72ef4059058607c50447b2f3c16","url":"http://development.lvh.me:3000/api/contacts/58"},{"id":60,"kind":"company","created_at":1497351108,"full_name":"Test_Skynet","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":"my_little@po.ny","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"45d4cccba293ef0da33c07a991c6081ec4179948","permalink":"http://development.lvh.me:3000/billing/45d4cccba293ef0da33c07a991c6081ec4179948","url":"http://development.lvh.me:3000/api/contacts/60"},{"id":62,"kind":"company","created_at":1497351487,"full_name":"Test_Skynet","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":"my_little@po.ny","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"8fec8de80f2ec765bf8471a2d9e259f63cbf06e4","permalink":"http://development.lvh.me:3000/billing/8fec8de80f2ec765bf8471a2d9e259f63cbf06e4","url":"http://development.lvh.me:3000/api/contacts/62"},{"id":64,"kind":"company","created_at":1497351490,"full_name":"Test_Skynet","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":"my_little@po.ny","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"08638259e35b5864ad37f6c5776113d794fa2ac2","permalink":"http://development.lvh.me:3000/billing/08638259e35b5864ad37f6c5776113d794fa2ac2","url":"http://development.lvh.me:3000/api/contacts/64"},{"id":57,"kind":"company","created_at":1497351007,"full_name":"Z,
|
96
|
+
Mazinger Z","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":"koji@kabuto.ftw","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"cab10fea456a6ca8fe5a00fe1cbcb5273aa05546","permalink":"http://development.lvh.me:3000/billing/cab10fea456a6ca8fe5a00fe1cbcb5273aa05546","url":"http://development.lvh.me:3000/api/contacts/57"},{"id":59,"kind":"company","created_at":1497351105,"full_name":"Z,
|
97
|
+
Mazinger Z","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":"koji@kabuto.ftw","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"f8bae1172828d0fdef3ac4598592ac45dc0d722f","permalink":"http://development.lvh.me:3000/billing/f8bae1172828d0fdef3ac4598592ac45dc0d722f","url":"http://development.lvh.me:3000/api/contacts/59"},{"id":61,"kind":"company","created_at":1497351108,"full_name":"Z,
|
98
|
+
Mazinger Z","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":"koji@kabuto.ftw","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"391ba9b21d0da56429e44a5e7fd9ad89706285e2","permalink":"http://development.lvh.me:3000/billing/391ba9b21d0da56429e44a5e7fd9ad89706285e2","url":"http://development.lvh.me:3000/api/contacts/61"},{"id":63,"kind":"company","created_at":1497351487,"full_name":"Z,
|
99
|
+
Mazinger Z","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":"koji@kabuto.ftw","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"93744b7e3b633da80c37441a724f0f335dd59fec","permalink":"http://development.lvh.me:3000/billing/93744b7e3b633da80c37441a724f0f335dd59fec","url":"http://development.lvh.me:3000/api/contacts/63"},{"id":65,"kind":"company","created_at":1497351490,"full_name":"Z,
|
100
|
+
Mazinger Z","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":"koji@kabuto.ftw","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"d29e9c5c9fa045456dd48bd4cf62d16c1f797268","permalink":"http://development.lvh.me:3000/billing/d29e9c5c9fa045456dd48bd4cf62d16c1f797268","url":"http://development.lvh.me:3000/api/contacts/65"},{"id":67,"kind":"company","created_at":1497351539,"full_name":"Z,
|
101
|
+
Mazinger Z","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":"koji@kabuto.ftw","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"f23f6fa2eba18d28864e92b49e4b0f3bcd3ec912","permalink":"http://development.lvh.me:3000/billing/f23f6fa2eba18d28864e92b49e4b0f3bcd3ec912","url":"http://development.lvh.me:3000/api/contacts/67"},{"id":68,"kind":"company","created_at":1497351605,"full_name":"Z,
|
102
|
+
Mazinger Z","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":"koji@kabuto.ftw","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"efd3bc7bd1d8b19334ac5396478a4e22d6a20c66","permalink":"http://development.lvh.me:3000/billing/efd3bc7bd1d8b19334ac5396478a4e22d6a20c66","url":"http://development.lvh.me:3000/api/contacts/68"}]'
|
103
|
+
http_version: '1.1'
|
104
|
+
recorded_at: Tue, 13 Jun 2017 11:00:05 GMT
|
105
|
+
- request:
|
106
|
+
method: delete
|
107
|
+
uri: http://development.lvh.me:3000/api/contacts/68.json
|
108
|
+
body:
|
109
|
+
encoding: US-ASCII
|
110
|
+
string: ''
|
111
|
+
headers:
|
112
|
+
accept:
|
113
|
+
- application/json
|
114
|
+
authorization:
|
115
|
+
- Bearer 36b82411e6686581fe3d7d10fbe931a3fdc9265a353832f0e3ff6269bd319e12
|
116
|
+
response:
|
117
|
+
status:
|
118
|
+
code: 204
|
119
|
+
message: No Content
|
120
|
+
headers:
|
121
|
+
x-frame-options:
|
122
|
+
- ALLOWALL
|
123
|
+
x-ratelimit-limit:
|
124
|
+
- '2000'
|
125
|
+
x-ratelimit-reset:
|
126
|
+
- '14'
|
127
|
+
x-ratelimit-remaining:
|
128
|
+
- '98'
|
129
|
+
cache-control:
|
130
|
+
- no-cache
|
131
|
+
x-request-id:
|
132
|
+
- e71d97b5-2121-4930-aee3-6a1b6bdced5d
|
133
|
+
x-runtime:
|
134
|
+
- '0.213828'
|
135
|
+
connection:
|
136
|
+
- close
|
137
|
+
server:
|
138
|
+
- thin
|
139
|
+
body:
|
140
|
+
encoding: US-ASCII
|
141
|
+
string: ''
|
142
|
+
http_version: '1.1'
|
143
|
+
recorded_at: Tue, 13 Jun 2017 11:00:05 GMT
|
144
|
+
- request:
|
145
|
+
method: get
|
146
|
+
uri: http://development.lvh.me:3000/api/contacts.json?
|
147
|
+
body:
|
148
|
+
encoding: US-ASCII
|
149
|
+
string: ''
|
150
|
+
headers:
|
151
|
+
accept:
|
152
|
+
- application/json
|
153
|
+
authorization:
|
154
|
+
- Bearer 36b82411e6686581fe3d7d10fbe931a3fdc9265a353832f0e3ff6269bd319e12
|
155
|
+
response:
|
156
|
+
status:
|
157
|
+
code: 200
|
158
|
+
message: OK
|
159
|
+
headers:
|
160
|
+
x-frame-options:
|
161
|
+
- ALLOWALL
|
162
|
+
x-ratelimit-limit:
|
163
|
+
- '2000'
|
164
|
+
x-ratelimit-reset:
|
165
|
+
- '14'
|
166
|
+
x-ratelimit-remaining:
|
167
|
+
- '97'
|
168
|
+
x-pages-currentpage:
|
169
|
+
- '1'
|
170
|
+
x-pages-totalpages:
|
171
|
+
- '1'
|
172
|
+
content-type:
|
173
|
+
- application/json; charset=utf-8
|
174
|
+
etag:
|
175
|
+
- '"3731bba773bbf693069d6380f5811c8f"'
|
176
|
+
cache-control:
|
177
|
+
- max-age=0, private, must-revalidate
|
178
|
+
x-request-id:
|
179
|
+
- 928d7200-b9bf-475a-ac5b-7e59b1aa3569
|
180
|
+
x-runtime:
|
181
|
+
- '0.969898'
|
182
|
+
connection:
|
183
|
+
- close
|
184
|
+
server:
|
185
|
+
- thin
|
186
|
+
body:
|
187
|
+
encoding: UTF-8
|
188
|
+
string: '[{"id":44,"kind":"company","created_at":1496660076,"full_name":"Albus
|
189
|
+
Dumbledoge","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"BE","phone_1":null,"phone_2":null,"fax":null,"email":"john@recrea.es","web":null,"discount":null,"tax_id":null,"vat_number":null,"language":"DE","notes":null,"processor_id":"cst_yBHtjcSFhR","secure_id":"51ed8dd564d46a3e8f6550686dea84750c5d4b80","permalink":"http://development.lvh.me:3000/billing/51ed8dd564d46a3e8f6550686dea84750c5d4b80","url":"http://development.lvh.me:3000/api/contacts/44"},{"id":42,"kind":"person","created_at":1495535760,"first_name":"Cidi","last_name":"Campidocti","full_name":"Cidi
|
190
|
+
Campidocti","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":"","vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"7e17fe690137a91f7d1b8c1602fb7667ab981b00","permalink":"http://development.lvh.me:3000/billing/7e17fe690137a91f7d1b8c1602fb7667ab981b00","url":"http://development.lvh.me:3000/api/contacts/42"},{"id":43,"kind":"company","created_at":1496653655,"full_name":"Test_OCP","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":"dont@stop.believing","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"processor_id":"tr_VpKBExBQxU","secure_id":"240d872343b09c0e4f095cfd6484c6eabc74c6eb","permalink":"http://development.lvh.me:3000/billing/240d872343b09c0e4f095cfd6484c6eabc74c6eb","url":"http://development.lvh.me:3000/api/contacts/43"},{"id":50,"kind":"company","created_at":1497267993,"full_name":"Test_OCP","contact_name":null,"street_line_1":"asdasdas","street_line_2":"3rwerds","postal_code":"08080","city":"Sdasdasd","region":"sadasdasd","country":"ES","phone_1":null,"phone_2":null,"fax":null,"email":"dont@stop.believing","web":null,"discount":null,"tax_id":"ES78488057M","vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"757312a30b02810e495ae18c312a50a1e4f4b713","permalink":"http://development.lvh.me:3000/billing/757312a30b02810e495ae18c312a50a1e4f4b713","url":"http://development.lvh.me:3000/api/contacts/50"},{"id":45,"kind":"company","created_at":1497013162,"full_name":"Test_Skynet","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":"my_little@po.ny","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"0c102e324af99ba80911b5040f8c3ac253c76890","permalink":"http://development.lvh.me:3000/billing/0c102e324af99ba80911b5040f8c3ac253c76890","url":"http://development.lvh.me:3000/api/contacts/45"},{"id":47,"kind":"company","created_at":1497013255,"full_name":"Test_Skynet","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":"my_little@po.ny","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"e09d2dd3b8781a417a0ee1b43bdb5499a8e925a7","permalink":"http://development.lvh.me:3000/billing/e09d2dd3b8781a417a0ee1b43bdb5499a8e925a7","url":"http://development.lvh.me:3000/api/contacts/47"},{"id":55,"kind":"company","created_at":1497269711,"full_name":"Test_Skynet","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":"my_little@po.ny","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"42e59fd208fd654dbfd7d61fa9bfbb1706a7bba3","permalink":"http://development.lvh.me:3000/billing/42e59fd208fd654dbfd7d61fa9bfbb1706a7bba3","url":"http://development.lvh.me:3000/api/contacts/55"},{"id":56,"kind":"company","created_at":1497351006,"full_name":"Test_Skynet","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":"my_little@po.ny","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"0685fa00c66ec752aacd5f3e1f81365831cd3d65","permalink":"http://development.lvh.me:3000/billing/0685fa00c66ec752aacd5f3e1f81365831cd3d65","url":"http://development.lvh.me:3000/api/contacts/56"},{"id":58,"kind":"company","created_at":1497351105,"full_name":"Test_Skynet","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":"my_little@po.ny","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"8bebc09443c4f72ef4059058607c50447b2f3c16","permalink":"http://development.lvh.me:3000/billing/8bebc09443c4f72ef4059058607c50447b2f3c16","url":"http://development.lvh.me:3000/api/contacts/58"},{"id":60,"kind":"company","created_at":1497351108,"full_name":"Test_Skynet","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":"my_little@po.ny","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"45d4cccba293ef0da33c07a991c6081ec4179948","permalink":"http://development.lvh.me:3000/billing/45d4cccba293ef0da33c07a991c6081ec4179948","url":"http://development.lvh.me:3000/api/contacts/60"},{"id":62,"kind":"company","created_at":1497351487,"full_name":"Test_Skynet","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":"my_little@po.ny","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"8fec8de80f2ec765bf8471a2d9e259f63cbf06e4","permalink":"http://development.lvh.me:3000/billing/8fec8de80f2ec765bf8471a2d9e259f63cbf06e4","url":"http://development.lvh.me:3000/api/contacts/62"},{"id":64,"kind":"company","created_at":1497351490,"full_name":"Test_Skynet","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":"my_little@po.ny","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"08638259e35b5864ad37f6c5776113d794fa2ac2","permalink":"http://development.lvh.me:3000/billing/08638259e35b5864ad37f6c5776113d794fa2ac2","url":"http://development.lvh.me:3000/api/contacts/64"},{"id":57,"kind":"company","created_at":1497351007,"full_name":"Z,
|
191
|
+
Mazinger Z","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":"koji@kabuto.ftw","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"cab10fea456a6ca8fe5a00fe1cbcb5273aa05546","permalink":"http://development.lvh.me:3000/billing/cab10fea456a6ca8fe5a00fe1cbcb5273aa05546","url":"http://development.lvh.me:3000/api/contacts/57"},{"id":59,"kind":"company","created_at":1497351105,"full_name":"Z,
|
192
|
+
Mazinger Z","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":"koji@kabuto.ftw","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"f8bae1172828d0fdef3ac4598592ac45dc0d722f","permalink":"http://development.lvh.me:3000/billing/f8bae1172828d0fdef3ac4598592ac45dc0d722f","url":"http://development.lvh.me:3000/api/contacts/59"},{"id":61,"kind":"company","created_at":1497351108,"full_name":"Z,
|
193
|
+
Mazinger Z","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":"koji@kabuto.ftw","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"391ba9b21d0da56429e44a5e7fd9ad89706285e2","permalink":"http://development.lvh.me:3000/billing/391ba9b21d0da56429e44a5e7fd9ad89706285e2","url":"http://development.lvh.me:3000/api/contacts/61"},{"id":63,"kind":"company","created_at":1497351487,"full_name":"Z,
|
194
|
+
Mazinger Z","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":"koji@kabuto.ftw","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"93744b7e3b633da80c37441a724f0f335dd59fec","permalink":"http://development.lvh.me:3000/billing/93744b7e3b633da80c37441a724f0f335dd59fec","url":"http://development.lvh.me:3000/api/contacts/63"},{"id":65,"kind":"company","created_at":1497351490,"full_name":"Z,
|
195
|
+
Mazinger Z","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":"koji@kabuto.ftw","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"d29e9c5c9fa045456dd48bd4cf62d16c1f797268","permalink":"http://development.lvh.me:3000/billing/d29e9c5c9fa045456dd48bd4cf62d16c1f797268","url":"http://development.lvh.me:3000/api/contacts/65"},{"id":67,"kind":"company","created_at":1497351539,"full_name":"Z,
|
196
|
+
Mazinger Z","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":"koji@kabuto.ftw","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"f23f6fa2eba18d28864e92b49e4b0f3bcd3ec912","permalink":"http://development.lvh.me:3000/billing/f23f6fa2eba18d28864e92b49e4b0f3bcd3ec912","url":"http://development.lvh.me:3000/api/contacts/67"}]'
|
197
|
+
http_version: '1.1'
|
198
|
+
recorded_at: Tue, 13 Jun 2017 11:00:06 GMT
|
199
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,199 @@
|
|
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: '{"kind":"company","first_name":"Z, Mazinger Z","email":"koji@kabuto.ftw"}'
|
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
|
+
- '96'
|
29
|
+
content-type:
|
30
|
+
- application/json; charset=utf-8
|
31
|
+
etag:
|
32
|
+
- '"50dcbb92c5946cf7c0ab6477608e1e15"'
|
33
|
+
cache-control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
x-request-id:
|
36
|
+
- 577615d1-c9cc-40ff-a1a3-bcbca9f25119
|
37
|
+
x-runtime:
|
38
|
+
- '0.287683'
|
39
|
+
connection:
|
40
|
+
- close
|
41
|
+
server:
|
42
|
+
- thin
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: '{"id":69,"kind":"company","created_at":1497351607,"full_name":"Z, Mazinger
|
46
|
+
Z","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":"koji@kabuto.ftw","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"47affa993a2bc4ad5040ccb8a57cc20808776818","permalink":"http://development.lvh.me:3000/billing/47affa993a2bc4ad5040ccb8a57cc20808776818","url":"http://development.lvh.me:3000/api/contacts/69"}'
|
47
|
+
http_version: '1.1'
|
48
|
+
recorded_at: Tue, 13 Jun 2017 11:00:07 GMT
|
49
|
+
- request:
|
50
|
+
method: get
|
51
|
+
uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/contacts.json?
|
52
|
+
body:
|
53
|
+
encoding: US-ASCII
|
54
|
+
string: ''
|
55
|
+
headers:
|
56
|
+
accept:
|
57
|
+
- application/json
|
58
|
+
authorization:
|
59
|
+
- Basic c2tfdGVzdF9CN3hYclRzcGZlR3VrUXFHTjFwSzo=
|
60
|
+
response:
|
61
|
+
status:
|
62
|
+
code: 200
|
63
|
+
message: OK
|
64
|
+
headers:
|
65
|
+
x-frame-options:
|
66
|
+
- ALLOWALL
|
67
|
+
x-ratelimit-limit:
|
68
|
+
- '2000'
|
69
|
+
x-ratelimit-reset:
|
70
|
+
- '13'
|
71
|
+
x-ratelimit-remaining:
|
72
|
+
- '95'
|
73
|
+
x-pages-currentpage:
|
74
|
+
- '1'
|
75
|
+
x-pages-totalpages:
|
76
|
+
- '1'
|
77
|
+
content-type:
|
78
|
+
- application/json; charset=utf-8
|
79
|
+
etag:
|
80
|
+
- '"e0b24269aa79d8ccb1b457ea94da6a29"'
|
81
|
+
cache-control:
|
82
|
+
- max-age=0, private, must-revalidate
|
83
|
+
x-request-id:
|
84
|
+
- c7a573b0-ed64-4323-9813-29680df96a77
|
85
|
+
x-runtime:
|
86
|
+
- '0.264104'
|
87
|
+
connection:
|
88
|
+
- close
|
89
|
+
server:
|
90
|
+
- thin
|
91
|
+
body:
|
92
|
+
encoding: UTF-8
|
93
|
+
string: '[{"id":44,"kind":"company","created_at":1496660076,"full_name":"Albus
|
94
|
+
Dumbledoge","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"BE","phone_1":null,"phone_2":null,"fax":null,"email":"john@recrea.es","web":null,"discount":null,"tax_id":null,"vat_number":null,"language":"DE","notes":null,"processor_id":"cst_yBHtjcSFhR","secure_id":"51ed8dd564d46a3e8f6550686dea84750c5d4b80","permalink":"http://development.lvh.me:3000/billing/51ed8dd564d46a3e8f6550686dea84750c5d4b80","url":"http://development.lvh.me:3000/api/contacts/44"},{"id":42,"kind":"person","created_at":1495535760,"first_name":"Cidi","last_name":"Campidocti","full_name":"Cidi
|
95
|
+
Campidocti","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":"","vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"7e17fe690137a91f7d1b8c1602fb7667ab981b00","permalink":"http://development.lvh.me:3000/billing/7e17fe690137a91f7d1b8c1602fb7667ab981b00","url":"http://development.lvh.me:3000/api/contacts/42"},{"id":43,"kind":"company","created_at":1496653655,"full_name":"Test_OCP","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":"dont@stop.believing","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"processor_id":"tr_VpKBExBQxU","secure_id":"240d872343b09c0e4f095cfd6484c6eabc74c6eb","permalink":"http://development.lvh.me:3000/billing/240d872343b09c0e4f095cfd6484c6eabc74c6eb","url":"http://development.lvh.me:3000/api/contacts/43"},{"id":50,"kind":"company","created_at":1497267993,"full_name":"Test_OCP","contact_name":null,"street_line_1":"asdasdas","street_line_2":"3rwerds","postal_code":"08080","city":"Sdasdasd","region":"sadasdasd","country":"ES","phone_1":null,"phone_2":null,"fax":null,"email":"dont@stop.believing","web":null,"discount":null,"tax_id":"ES78488057M","vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"757312a30b02810e495ae18c312a50a1e4f4b713","permalink":"http://development.lvh.me:3000/billing/757312a30b02810e495ae18c312a50a1e4f4b713","url":"http://development.lvh.me:3000/api/contacts/50"},{"id":45,"kind":"company","created_at":1497013162,"full_name":"Test_Skynet","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":"my_little@po.ny","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"0c102e324af99ba80911b5040f8c3ac253c76890","permalink":"http://development.lvh.me:3000/billing/0c102e324af99ba80911b5040f8c3ac253c76890","url":"http://development.lvh.me:3000/api/contacts/45"},{"id":47,"kind":"company","created_at":1497013255,"full_name":"Test_Skynet","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":"my_little@po.ny","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"e09d2dd3b8781a417a0ee1b43bdb5499a8e925a7","permalink":"http://development.lvh.me:3000/billing/e09d2dd3b8781a417a0ee1b43bdb5499a8e925a7","url":"http://development.lvh.me:3000/api/contacts/47"},{"id":55,"kind":"company","created_at":1497269711,"full_name":"Test_Skynet","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":"my_little@po.ny","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"42e59fd208fd654dbfd7d61fa9bfbb1706a7bba3","permalink":"http://development.lvh.me:3000/billing/42e59fd208fd654dbfd7d61fa9bfbb1706a7bba3","url":"http://development.lvh.me:3000/api/contacts/55"},{"id":56,"kind":"company","created_at":1497351006,"full_name":"Test_Skynet","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":"my_little@po.ny","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"0685fa00c66ec752aacd5f3e1f81365831cd3d65","permalink":"http://development.lvh.me:3000/billing/0685fa00c66ec752aacd5f3e1f81365831cd3d65","url":"http://development.lvh.me:3000/api/contacts/56"},{"id":58,"kind":"company","created_at":1497351105,"full_name":"Test_Skynet","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":"my_little@po.ny","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"8bebc09443c4f72ef4059058607c50447b2f3c16","permalink":"http://development.lvh.me:3000/billing/8bebc09443c4f72ef4059058607c50447b2f3c16","url":"http://development.lvh.me:3000/api/contacts/58"},{"id":60,"kind":"company","created_at":1497351108,"full_name":"Test_Skynet","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":"my_little@po.ny","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"45d4cccba293ef0da33c07a991c6081ec4179948","permalink":"http://development.lvh.me:3000/billing/45d4cccba293ef0da33c07a991c6081ec4179948","url":"http://development.lvh.me:3000/api/contacts/60"},{"id":62,"kind":"company","created_at":1497351487,"full_name":"Test_Skynet","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":"my_little@po.ny","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"8fec8de80f2ec765bf8471a2d9e259f63cbf06e4","permalink":"http://development.lvh.me:3000/billing/8fec8de80f2ec765bf8471a2d9e259f63cbf06e4","url":"http://development.lvh.me:3000/api/contacts/62"},{"id":64,"kind":"company","created_at":1497351490,"full_name":"Test_Skynet","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":"my_little@po.ny","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"08638259e35b5864ad37f6c5776113d794fa2ac2","permalink":"http://development.lvh.me:3000/billing/08638259e35b5864ad37f6c5776113d794fa2ac2","url":"http://development.lvh.me:3000/api/contacts/64"},{"id":57,"kind":"company","created_at":1497351007,"full_name":"Z,
|
96
|
+
Mazinger Z","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":"koji@kabuto.ftw","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"cab10fea456a6ca8fe5a00fe1cbcb5273aa05546","permalink":"http://development.lvh.me:3000/billing/cab10fea456a6ca8fe5a00fe1cbcb5273aa05546","url":"http://development.lvh.me:3000/api/contacts/57"},{"id":59,"kind":"company","created_at":1497351105,"full_name":"Z,
|
97
|
+
Mazinger Z","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":"koji@kabuto.ftw","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"f8bae1172828d0fdef3ac4598592ac45dc0d722f","permalink":"http://development.lvh.me:3000/billing/f8bae1172828d0fdef3ac4598592ac45dc0d722f","url":"http://development.lvh.me:3000/api/contacts/59"},{"id":61,"kind":"company","created_at":1497351108,"full_name":"Z,
|
98
|
+
Mazinger Z","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":"koji@kabuto.ftw","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"391ba9b21d0da56429e44a5e7fd9ad89706285e2","permalink":"http://development.lvh.me:3000/billing/391ba9b21d0da56429e44a5e7fd9ad89706285e2","url":"http://development.lvh.me:3000/api/contacts/61"},{"id":63,"kind":"company","created_at":1497351487,"full_name":"Z,
|
99
|
+
Mazinger Z","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":"koji@kabuto.ftw","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"93744b7e3b633da80c37441a724f0f335dd59fec","permalink":"http://development.lvh.me:3000/billing/93744b7e3b633da80c37441a724f0f335dd59fec","url":"http://development.lvh.me:3000/api/contacts/63"},{"id":65,"kind":"company","created_at":1497351490,"full_name":"Z,
|
100
|
+
Mazinger Z","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":"koji@kabuto.ftw","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"d29e9c5c9fa045456dd48bd4cf62d16c1f797268","permalink":"http://development.lvh.me:3000/billing/d29e9c5c9fa045456dd48bd4cf62d16c1f797268","url":"http://development.lvh.me:3000/api/contacts/65"},{"id":67,"kind":"company","created_at":1497351539,"full_name":"Z,
|
101
|
+
Mazinger Z","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":"koji@kabuto.ftw","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"f23f6fa2eba18d28864e92b49e4b0f3bcd3ec912","permalink":"http://development.lvh.me:3000/billing/f23f6fa2eba18d28864e92b49e4b0f3bcd3ec912","url":"http://development.lvh.me:3000/api/contacts/67"},{"id":69,"kind":"company","created_at":1497351607,"full_name":"Z,
|
102
|
+
Mazinger Z","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":"koji@kabuto.ftw","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"47affa993a2bc4ad5040ccb8a57cc20808776818","permalink":"http://development.lvh.me:3000/billing/47affa993a2bc4ad5040ccb8a57cc20808776818","url":"http://development.lvh.me:3000/api/contacts/69"}]'
|
103
|
+
http_version: '1.1'
|
104
|
+
recorded_at: Tue, 13 Jun 2017 11:00:07 GMT
|
105
|
+
- request:
|
106
|
+
method: delete
|
107
|
+
uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/contacts/69.json
|
108
|
+
body:
|
109
|
+
encoding: US-ASCII
|
110
|
+
string: ''
|
111
|
+
headers:
|
112
|
+
accept:
|
113
|
+
- application/json
|
114
|
+
authorization:
|
115
|
+
- Basic c2tfdGVzdF9CN3hYclRzcGZlR3VrUXFHTjFwSzo=
|
116
|
+
response:
|
117
|
+
status:
|
118
|
+
code: 204
|
119
|
+
message: No Content
|
120
|
+
headers:
|
121
|
+
x-frame-options:
|
122
|
+
- ALLOWALL
|
123
|
+
x-ratelimit-limit:
|
124
|
+
- '2000'
|
125
|
+
x-ratelimit-reset:
|
126
|
+
- '12'
|
127
|
+
x-ratelimit-remaining:
|
128
|
+
- '94'
|
129
|
+
cache-control:
|
130
|
+
- no-cache
|
131
|
+
x-request-id:
|
132
|
+
- eb90a55b-eb02-4b47-bd70-d27b9501760f
|
133
|
+
x-runtime:
|
134
|
+
- '0.242202'
|
135
|
+
connection:
|
136
|
+
- close
|
137
|
+
server:
|
138
|
+
- thin
|
139
|
+
body:
|
140
|
+
encoding: US-ASCII
|
141
|
+
string: ''
|
142
|
+
http_version: '1.1'
|
143
|
+
recorded_at: Tue, 13 Jun 2017 11:00:07 GMT
|
144
|
+
- request:
|
145
|
+
method: get
|
146
|
+
uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/contacts.json?
|
147
|
+
body:
|
148
|
+
encoding: US-ASCII
|
149
|
+
string: ''
|
150
|
+
headers:
|
151
|
+
accept:
|
152
|
+
- application/json
|
153
|
+
authorization:
|
154
|
+
- Basic c2tfdGVzdF9CN3hYclRzcGZlR3VrUXFHTjFwSzo=
|
155
|
+
response:
|
156
|
+
status:
|
157
|
+
code: 200
|
158
|
+
message: OK
|
159
|
+
headers:
|
160
|
+
x-frame-options:
|
161
|
+
- ALLOWALL
|
162
|
+
x-ratelimit-limit:
|
163
|
+
- '2000'
|
164
|
+
x-ratelimit-reset:
|
165
|
+
- '12'
|
166
|
+
x-ratelimit-remaining:
|
167
|
+
- '93'
|
168
|
+
x-pages-currentpage:
|
169
|
+
- '1'
|
170
|
+
x-pages-totalpages:
|
171
|
+
- '1'
|
172
|
+
content-type:
|
173
|
+
- application/json; charset=utf-8
|
174
|
+
etag:
|
175
|
+
- '"3731bba773bbf693069d6380f5811c8f"'
|
176
|
+
cache-control:
|
177
|
+
- max-age=0, private, must-revalidate
|
178
|
+
x-request-id:
|
179
|
+
- 92e0e72d-ff19-4240-bdff-f7c60f7d36ca
|
180
|
+
x-runtime:
|
181
|
+
- '0.307067'
|
182
|
+
connection:
|
183
|
+
- close
|
184
|
+
server:
|
185
|
+
- thin
|
186
|
+
body:
|
187
|
+
encoding: UTF-8
|
188
|
+
string: '[{"id":44,"kind":"company","created_at":1496660076,"full_name":"Albus
|
189
|
+
Dumbledoge","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"BE","phone_1":null,"phone_2":null,"fax":null,"email":"john@recrea.es","web":null,"discount":null,"tax_id":null,"vat_number":null,"language":"DE","notes":null,"processor_id":"cst_yBHtjcSFhR","secure_id":"51ed8dd564d46a3e8f6550686dea84750c5d4b80","permalink":"http://development.lvh.me:3000/billing/51ed8dd564d46a3e8f6550686dea84750c5d4b80","url":"http://development.lvh.me:3000/api/contacts/44"},{"id":42,"kind":"person","created_at":1495535760,"first_name":"Cidi","last_name":"Campidocti","full_name":"Cidi
|
190
|
+
Campidocti","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":"","vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"7e17fe690137a91f7d1b8c1602fb7667ab981b00","permalink":"http://development.lvh.me:3000/billing/7e17fe690137a91f7d1b8c1602fb7667ab981b00","url":"http://development.lvh.me:3000/api/contacts/42"},{"id":43,"kind":"company","created_at":1496653655,"full_name":"Test_OCP","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":"dont@stop.believing","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"processor_id":"tr_VpKBExBQxU","secure_id":"240d872343b09c0e4f095cfd6484c6eabc74c6eb","permalink":"http://development.lvh.me:3000/billing/240d872343b09c0e4f095cfd6484c6eabc74c6eb","url":"http://development.lvh.me:3000/api/contacts/43"},{"id":50,"kind":"company","created_at":1497267993,"full_name":"Test_OCP","contact_name":null,"street_line_1":"asdasdas","street_line_2":"3rwerds","postal_code":"08080","city":"Sdasdasd","region":"sadasdasd","country":"ES","phone_1":null,"phone_2":null,"fax":null,"email":"dont@stop.believing","web":null,"discount":null,"tax_id":"ES78488057M","vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"757312a30b02810e495ae18c312a50a1e4f4b713","permalink":"http://development.lvh.me:3000/billing/757312a30b02810e495ae18c312a50a1e4f4b713","url":"http://development.lvh.me:3000/api/contacts/50"},{"id":45,"kind":"company","created_at":1497013162,"full_name":"Test_Skynet","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":"my_little@po.ny","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"0c102e324af99ba80911b5040f8c3ac253c76890","permalink":"http://development.lvh.me:3000/billing/0c102e324af99ba80911b5040f8c3ac253c76890","url":"http://development.lvh.me:3000/api/contacts/45"},{"id":47,"kind":"company","created_at":1497013255,"full_name":"Test_Skynet","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":"my_little@po.ny","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"e09d2dd3b8781a417a0ee1b43bdb5499a8e925a7","permalink":"http://development.lvh.me:3000/billing/e09d2dd3b8781a417a0ee1b43bdb5499a8e925a7","url":"http://development.lvh.me:3000/api/contacts/47"},{"id":55,"kind":"company","created_at":1497269711,"full_name":"Test_Skynet","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":"my_little@po.ny","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"42e59fd208fd654dbfd7d61fa9bfbb1706a7bba3","permalink":"http://development.lvh.me:3000/billing/42e59fd208fd654dbfd7d61fa9bfbb1706a7bba3","url":"http://development.lvh.me:3000/api/contacts/55"},{"id":56,"kind":"company","created_at":1497351006,"full_name":"Test_Skynet","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":"my_little@po.ny","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"0685fa00c66ec752aacd5f3e1f81365831cd3d65","permalink":"http://development.lvh.me:3000/billing/0685fa00c66ec752aacd5f3e1f81365831cd3d65","url":"http://development.lvh.me:3000/api/contacts/56"},{"id":58,"kind":"company","created_at":1497351105,"full_name":"Test_Skynet","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":"my_little@po.ny","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"8bebc09443c4f72ef4059058607c50447b2f3c16","permalink":"http://development.lvh.me:3000/billing/8bebc09443c4f72ef4059058607c50447b2f3c16","url":"http://development.lvh.me:3000/api/contacts/58"},{"id":60,"kind":"company","created_at":1497351108,"full_name":"Test_Skynet","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":"my_little@po.ny","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"45d4cccba293ef0da33c07a991c6081ec4179948","permalink":"http://development.lvh.me:3000/billing/45d4cccba293ef0da33c07a991c6081ec4179948","url":"http://development.lvh.me:3000/api/contacts/60"},{"id":62,"kind":"company","created_at":1497351487,"full_name":"Test_Skynet","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":"my_little@po.ny","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"8fec8de80f2ec765bf8471a2d9e259f63cbf06e4","permalink":"http://development.lvh.me:3000/billing/8fec8de80f2ec765bf8471a2d9e259f63cbf06e4","url":"http://development.lvh.me:3000/api/contacts/62"},{"id":64,"kind":"company","created_at":1497351490,"full_name":"Test_Skynet","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":"my_little@po.ny","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"08638259e35b5864ad37f6c5776113d794fa2ac2","permalink":"http://development.lvh.me:3000/billing/08638259e35b5864ad37f6c5776113d794fa2ac2","url":"http://development.lvh.me:3000/api/contacts/64"},{"id":57,"kind":"company","created_at":1497351007,"full_name":"Z,
|
191
|
+
Mazinger Z","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":"koji@kabuto.ftw","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"cab10fea456a6ca8fe5a00fe1cbcb5273aa05546","permalink":"http://development.lvh.me:3000/billing/cab10fea456a6ca8fe5a00fe1cbcb5273aa05546","url":"http://development.lvh.me:3000/api/contacts/57"},{"id":59,"kind":"company","created_at":1497351105,"full_name":"Z,
|
192
|
+
Mazinger Z","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":"koji@kabuto.ftw","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"f8bae1172828d0fdef3ac4598592ac45dc0d722f","permalink":"http://development.lvh.me:3000/billing/f8bae1172828d0fdef3ac4598592ac45dc0d722f","url":"http://development.lvh.me:3000/api/contacts/59"},{"id":61,"kind":"company","created_at":1497351108,"full_name":"Z,
|
193
|
+
Mazinger Z","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":"koji@kabuto.ftw","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"391ba9b21d0da56429e44a5e7fd9ad89706285e2","permalink":"http://development.lvh.me:3000/billing/391ba9b21d0da56429e44a5e7fd9ad89706285e2","url":"http://development.lvh.me:3000/api/contacts/61"},{"id":63,"kind":"company","created_at":1497351487,"full_name":"Z,
|
194
|
+
Mazinger Z","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":"koji@kabuto.ftw","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"93744b7e3b633da80c37441a724f0f335dd59fec","permalink":"http://development.lvh.me:3000/billing/93744b7e3b633da80c37441a724f0f335dd59fec","url":"http://development.lvh.me:3000/api/contacts/63"},{"id":65,"kind":"company","created_at":1497351490,"full_name":"Z,
|
195
|
+
Mazinger Z","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":"koji@kabuto.ftw","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"d29e9c5c9fa045456dd48bd4cf62d16c1f797268","permalink":"http://development.lvh.me:3000/billing/d29e9c5c9fa045456dd48bd4cf62d16c1f797268","url":"http://development.lvh.me:3000/api/contacts/65"},{"id":67,"kind":"company","created_at":1497351539,"full_name":"Z,
|
196
|
+
Mazinger Z","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":"koji@kabuto.ftw","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"f23f6fa2eba18d28864e92b49e4b0f3bcd3ec912","permalink":"http://development.lvh.me:3000/billing/f23f6fa2eba18d28864e92b49e4b0f3bcd3ec912","url":"http://development.lvh.me:3000/api/contacts/67"}]'
|
197
|
+
http_version: '1.1'
|
198
|
+
recorded_at: Tue, 13 Jun 2017 11:00:08 GMT
|
199
|
+
recorded_with: VCR 2.9.2
|