quaderno 1.14.0 → 1.15.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +56 -0
- data/.rspec +2 -0
- data/.travis.yml +4 -0
- data/Gemfile +2 -15
- data/README.md +1 -1
- data/Rakefile +4 -50
- data/changelog.md +9 -0
- data/lib/quaderno-ruby.rb +3 -4
- data/lib/quaderno-ruby/base.rb +106 -108
- data/lib/quaderno-ruby/behavior/block.rb +17 -19
- data/lib/quaderno-ruby/behavior/crud.rb +93 -95
- data/lib/quaderno-ruby/behavior/deliver.rb +16 -18
- data/lib/quaderno-ruby/behavior/payment.rb +32 -34
- data/lib/quaderno-ruby/behavior/retrieve.rb +23 -25
- data/lib/quaderno-ruby/contact.rb +6 -8
- data/lib/quaderno-ruby/credit.rb +10 -12
- data/lib/quaderno-ruby/document_item.rb +1 -3
- data/lib/quaderno-ruby/estimate.rb +5 -7
- data/lib/quaderno-ruby/evidence.rb +5 -7
- data/lib/quaderno-ruby/exceptions/exceptions.rb +42 -44
- data/lib/quaderno-ruby/expense.rb +6 -8
- data/lib/quaderno-ruby/helpers/authentication.rb +16 -18
- data/lib/quaderno-ruby/income.rb +8 -10
- data/lib/quaderno-ruby/invoice.rb +9 -11
- data/lib/quaderno-ruby/item.rb +3 -6
- data/lib/quaderno-ruby/payment.rb +1 -3
- data/lib/quaderno-ruby/receipt.rb +6 -8
- data/lib/quaderno-ruby/recurring.rb +4 -7
- data/lib/quaderno-ruby/report.rb +56 -58
- data/lib/quaderno-ruby/tax.rb +45 -47
- data/lib/quaderno-ruby/version.rb +3 -0
- data/lib/quaderno-ruby/webhook.rb +3 -5
- data/quaderno.gemspec +28 -148
- metadata +83 -84
- data/Gemfile.lock +0 -91
- data/VERSION +0 -1
- data/test/fixtures/quaderno_cassettes/.DS_Store +0 -0
- data/test/fixtures/quaderno_cassettes/all_contacts.yml +0 -52
- data/test/fixtures/quaderno_cassettes/all_contacts_by_access_token.yml +0 -56
- data/test/fixtures/quaderno_cassettes/all_contacts_by_authentication_token.yml +0 -57
- data/test/fixtures/quaderno_cassettes/all_estimates.yml +0 -52
- data/test/fixtures/quaderno_cassettes/all_expenses.yml +0 -55
- data/test/fixtures/quaderno_cassettes/all_invoices.yml +0 -56
- data/test/fixtures/quaderno_cassettes/all_items.yml +0 -46
- data/test/fixtures/quaderno_cassettes/all_receipts.yml +0 -53
- data/test/fixtures/quaderno_cassettes/all_webhooks.yml +0 -214
- data/test/fixtures/quaderno_cassettes/create_estimate_on_downgraded_API.yml +0 -156
- data/test/fixtures/quaderno_cassettes/create_expense_on_downgraded_API.yml +0 -278
- data/test/fixtures/quaderno_cassettes/create_invoice_on_downgraded_API.yml +0 -159
- data/test/fixtures/quaderno_cassettes/create_receipt_on_downgraded_API.yml +0 -196
- data/test/fixtures/quaderno_cassettes/deleted_contact.yml +0 -187
- data/test/fixtures/quaderno_cassettes/deleted_contact_by_access_token.yml +0 -199
- data/test/fixtures/quaderno_cassettes/deleted_contact_by_authentication_token.yml +0 -199
- data/test/fixtures/quaderno_cassettes/deleted_estimate.yml +0 -187
- data/test/fixtures/quaderno_cassettes/deleted_expense.yml +0 -189
- data/test/fixtures/quaderno_cassettes/deleted_invoice.yml +0 -190
- data/test/fixtures/quaderno_cassettes/deleted_item.yml +0 -128
- data/test/fixtures/quaderno_cassettes/deleted_receipt.yml +0 -223
- data/test/fixtures/quaderno_cassettes/deleted_webhook.yml +0 -257
- data/test/fixtures/quaderno_cassettes/delivered_estimate.yml +0 -136
- data/test/fixtures/quaderno_cassettes/delivered_invoice.yml +0 -143
- data/test/fixtures/quaderno_cassettes/delivered_receipt.yml +0 -140
- data/test/fixtures/quaderno_cassettes/evidence_invoice.yml +0 -98
- data/test/fixtures/quaderno_cassettes/found_contact.yml +0 -95
- data/test/fixtures/quaderno_cassettes/found_contact_by_access_token.yml +0 -99
- data/test/fixtures/quaderno_cassettes/found_contact_by_authentication_token.yml +0 -100
- data/test/fixtures/quaderno_cassettes/found_estimate.yml +0 -97
- data/test/fixtures/quaderno_cassettes/found_expense.yml +0 -99
- data/test/fixtures/quaderno_cassettes/found_invoice.yml +0 -100
- data/test/fixtures/quaderno_cassettes/found_item.yml +0 -91
- data/test/fixtures/quaderno_cassettes/found_receipt.yml +0 -98
- data/test/fixtures/quaderno_cassettes/found_webhook.yml +0 -130
- data/test/fixtures/quaderno_cassettes/new_contact.yml +0 -48
- data/test/fixtures/quaderno_cassettes/new_contact_by_access_token.yml +0 -48
- data/test/fixtures/quaderno_cassettes/new_contact_by_authentication_token.yml +0 -48
- data/test/fixtures/quaderno_cassettes/new_estimate.yml +0 -137
- data/test/fixtures/quaderno_cassettes/new_evidence.yml +0 -48
- data/test/fixtures/quaderno_cassettes/new_expense.yml +0 -189
- data/test/fixtures/quaderno_cassettes/new_invoice.yml +0 -137
- data/test/fixtures/quaderno_cassettes/new_item.yml +0 -48
- data/test/fixtures/quaderno_cassettes/new_receipt.yml +0 -173
- data/test/fixtures/quaderno_cassettes/new_webhook.yml +0 -87
- data/test/fixtures/quaderno_cassettes/paid_expense.yml +0 -98
- data/test/fixtures/quaderno_cassettes/paid_invoice.yml +0 -99
- data/test/fixtures/quaderno_cassettes/rate_limit.yml +0 -46
- data/test/fixtures/quaderno_cassettes/unpay_an_expense.yml +0 -138
- data/test/fixtures/quaderno_cassettes/unpay_an_invoice.yml +0 -138
- data/test/fixtures/quaderno_cassettes/updated_contact.yml +0 -97
- data/test/fixtures/quaderno_cassettes/updated_contact_by_access_token.yml +0 -101
- data/test/fixtures/quaderno_cassettes/updated_contact_by_authentication_token.yml +0 -102
- data/test/fixtures/quaderno_cassettes/updated_estimate.yml +0 -185
- data/test/fixtures/quaderno_cassettes/updated_expense.yml +0 -184
- data/test/fixtures/quaderno_cassettes/updated_invoice.yml +0 -184
- data/test/fixtures/quaderno_cassettes/updated_item.yml +0 -93
- data/test/fixtures/quaderno_cassettes/updated_receipt.yml +0 -220
- data/test/fixtures/quaderno_cassettes/updated_webhook.yml +0 -175
- data/test/fixtures/quaderno_cassettes/validate_invalid_VAT_number.yml +0 -44
- data/test/fixtures/quaderno_cassettes/validate_valid_VAT_number.yml +0 -44
- data/test/helper.rb +0 -32
- data/test/unit/test_quaderno_contacts.rb +0 -83
- data/test/unit/test_quaderno_contacts_thread_safe.rb +0 -104
- data/test/unit/test_quaderno_estimates.rb +0 -155
- data/test/unit/test_quaderno_evidences.rb +0 -41
- data/test/unit/test_quaderno_expenses.rb +0 -162
- data/test/unit/test_quaderno_invoices.rb +0 -177
- data/test/unit/test_quaderno_items.rb +0 -84
- data/test/unit/test_quaderno_receipts.rb +0 -156
- data/test/unit/test_quaderno_tax.rb +0 -46
- data/test/unit/test_quaderno_webhooks.rb +0 -93
@@ -1,130 +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
|
-
- '2'
|
27
|
-
x-ratelimit-remaining:
|
28
|
-
- '91'
|
29
|
-
content-type:
|
30
|
-
- application/json; charset=utf-8
|
31
|
-
etag:
|
32
|
-
- '"ad33abb0a26086d6366cb6faf2f99e3d"'
|
33
|
-
cache-control:
|
34
|
-
- max-age=0, private, must-revalidate
|
35
|
-
x-request-id:
|
36
|
-
- 8caa8d6e-2624-47ab-8c4d-0ddeabad142c
|
37
|
-
x-runtime:
|
38
|
-
- '1.901922'
|
39
|
-
connection:
|
40
|
-
- close
|
41
|
-
server:
|
42
|
-
- thin
|
43
|
-
body:
|
44
|
-
encoding: UTF-8
|
45
|
-
string: '{"id":5,"url":"http://quadernoapp.com","auth_key":"YcKz3CdhV2mJjE80RwIhfg","events_types":["invoice.created","expense.updated"],"last_sent_at":null,"last_error":null,"events_sent":0,"created_at":"2017-06-12T11:54:22.409Z","updated_at":"2017-06-12T11:54:22.409Z"}'
|
46
|
-
http_version: '1.1'
|
47
|
-
recorded_at: Mon, 12 Jun 2017 11:54:22 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
|
-
- '15'
|
70
|
-
x-ratelimit-remaining:
|
71
|
-
- '100'
|
72
|
-
content-type:
|
73
|
-
- application/json; charset=utf-8
|
74
|
-
etag:
|
75
|
-
- '"567dcc587054d62ddc6cbb37fb0442ec"'
|
76
|
-
cache-control:
|
77
|
-
- max-age=0, private, must-revalidate
|
78
|
-
x-request-id:
|
79
|
-
- 55d2f917-bd93-4ddd-8e98-5c29b783c5a0
|
80
|
-
x-runtime:
|
81
|
-
- '0.732996'
|
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":5,"url":"http://quadernoapp.com","auth_key":"YcKz3CdhV2mJjE80RwIhfg","events_types":["invoice.created","expense.updated"],"last_sent_at":null,"last_error":null,"events_sent":0,"created_at":"2017-06-12T11:54:22.000Z","updated_at":"2017-06-12T11:54:22.000Z"}]'
|
89
|
-
http_version: '1.1'
|
90
|
-
recorded_at: Mon, 12 Jun 2017 11:54:23 GMT
|
91
|
-
- request:
|
92
|
-
method: delete
|
93
|
-
uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/webhooks/5.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
|
-
- '15'
|
113
|
-
x-ratelimit-remaining:
|
114
|
-
- '99'
|
115
|
-
cache-control:
|
116
|
-
- no-cache
|
117
|
-
x-request-id:
|
118
|
-
- 06ebae54-e672-4161-b319-24edf0db1289
|
119
|
-
x-runtime:
|
120
|
-
- '0.711711'
|
121
|
-
connection:
|
122
|
-
- close
|
123
|
-
server:
|
124
|
-
- thin
|
125
|
-
body:
|
126
|
-
encoding: US-ASCII
|
127
|
-
string: ''
|
128
|
-
http_version: '1.1'
|
129
|
-
recorded_at: Mon, 12 Jun 2017 11:54:24 GMT
|
130
|
-
recorded_with: VCR 2.9.2
|
@@ -1,48 +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: '{"kind":"company","first_name":"Test_Skynet","email":"my_little@po.ny"}'
|
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
|
-
- '15'
|
27
|
-
x-ratelimit-remaining:
|
28
|
-
- '100'
|
29
|
-
content-type:
|
30
|
-
- application/json; charset=utf-8
|
31
|
-
etag:
|
32
|
-
- '"cc86da182178ec31d29ca5ac67e1651f"'
|
33
|
-
cache-control:
|
34
|
-
- max-age=0, private, must-revalidate
|
35
|
-
x-request-id:
|
36
|
-
- 9dedb072-e441-4d2d-ab84-3fd828a650e6
|
37
|
-
x-runtime:
|
38
|
-
- '0.730536'
|
39
|
-
connection:
|
40
|
-
- close
|
41
|
-
server:
|
42
|
-
- thin
|
43
|
-
body:
|
44
|
-
encoding: UTF-8
|
45
|
-
string: '{"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"}'
|
46
|
-
http_version: '1.1'
|
47
|
-
recorded_at: Fri, 09 Jun 2017 13:00:55 GMT
|
48
|
-
recorded_with: VCR 2.9.2
|
@@ -1,48 +0,0 @@
|
|
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":"Test_Skynet","email":"my_little@po.ny"}'
|
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
|
-
- '99'
|
29
|
-
content-type:
|
30
|
-
- application/json; charset=utf-8
|
31
|
-
etag:
|
32
|
-
- '"a795161241ec36c1573a97839c8d403f"'
|
33
|
-
cache-control:
|
34
|
-
- max-age=0, private, must-revalidate
|
35
|
-
x-request-id:
|
36
|
-
- ffea69d5-d081-408f-ab71-e4af487833c5
|
37
|
-
x-runtime:
|
38
|
-
- '1.645313'
|
39
|
-
connection:
|
40
|
-
- close
|
41
|
-
server:
|
42
|
-
- thin
|
43
|
-
body:
|
44
|
-
encoding: UTF-8
|
45
|
-
string: '{"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"}'
|
46
|
-
http_version: '1.1'
|
47
|
-
recorded_at: Tue, 13 Jun 2017 10:58:07 GMT
|
48
|
-
recorded_with: VCR 2.9.2
|
@@ -1,48 +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: '{"kind":"company","first_name":"Test_Skynet","email":"my_little@po.ny"}'
|
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
|
-
- '10'
|
27
|
-
x-ratelimit-remaining:
|
28
|
-
- '92'
|
29
|
-
content-type:
|
30
|
-
- application/json; charset=utf-8
|
31
|
-
etag:
|
32
|
-
- '"32908f591a2c9a94a4b012544403fb8f"'
|
33
|
-
cache-control:
|
34
|
-
- max-age=0, private, must-revalidate
|
35
|
-
x-request-id:
|
36
|
-
- 75135e5f-6461-4a39-a30d-54a10791c43d
|
37
|
-
x-runtime:
|
38
|
-
- '0.278524'
|
39
|
-
connection:
|
40
|
-
- close
|
41
|
-
server:
|
42
|
-
- thin
|
43
|
-
body:
|
44
|
-
encoding: UTF-8
|
45
|
-
string: '{"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"}'
|
46
|
-
http_version: '1.1'
|
47
|
-
recorded_at: Tue, 13 Jun 2017 10:58:10 GMT
|
48
|
-
recorded_with: VCR 2.9.2
|
@@ -1,137 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/contacts.json?
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
accept:
|
11
|
-
- application/json
|
12
|
-
authorization:
|
13
|
-
- Basic c2tfdGVzdF9CN3hYclRzcGZlR3VrUXFHTjFwSzo=
|
14
|
-
response:
|
15
|
-
status:
|
16
|
-
code: 200
|
17
|
-
message: OK
|
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
|
-
x-pages-currentpage:
|
28
|
-
- '1'
|
29
|
-
x-pages-totalpages:
|
30
|
-
- '1'
|
31
|
-
content-type:
|
32
|
-
- application/json; charset=utf-8
|
33
|
-
etag:
|
34
|
-
- '"9f61db3c521dbbd6fa0aec27f6813410"'
|
35
|
-
cache-control:
|
36
|
-
- max-age=0, private, must-revalidate
|
37
|
-
x-request-id:
|
38
|
-
- 12584b39-67b8-461a-9a8b-7cf0ceca23b9
|
39
|
-
x-runtime:
|
40
|
-
- '0.271814'
|
41
|
-
connection:
|
42
|
-
- close
|
43
|
-
server:
|
44
|
-
- thin
|
45
|
-
body:
|
46
|
-
encoding: UTF-8
|
47
|
-
string: '[{"id":44,"kind":"company","created_at":1496660076,"full_name":"Albus
|
48
|
-
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
|
49
|
-
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":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"}]'
|
50
|
-
http_version: '1.1'
|
51
|
-
recorded_at: Fri, 09 Jun 2017 13:02:38 GMT
|
52
|
-
- request:
|
53
|
-
method: post
|
54
|
-
uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/estimates.json
|
55
|
-
body:
|
56
|
-
encoding: UTF-8
|
57
|
-
string: '{"contact_id":44,"number":"test number 42","contact_name":"Albus Dumbledoge","currency":"EUR","items_attributes":[{"description":"Aircraft","quantity":"1.0","unit_price":"0.0"}],"tags":"tnt","payment_details":"","notes":""}'
|
58
|
-
headers:
|
59
|
-
accept:
|
60
|
-
- application/json
|
61
|
-
content-type:
|
62
|
-
- application/json
|
63
|
-
authorization:
|
64
|
-
- Basic c2tfdGVzdF9CN3hYclRzcGZlR3VrUXFHTjFwSzo=
|
65
|
-
response:
|
66
|
-
status:
|
67
|
-
code: 201
|
68
|
-
message: Created
|
69
|
-
headers:
|
70
|
-
x-frame-options:
|
71
|
-
- ALLOWALL
|
72
|
-
x-ratelimit-limit:
|
73
|
-
- '2000'
|
74
|
-
x-ratelimit-reset:
|
75
|
-
- '15'
|
76
|
-
x-ratelimit-remaining:
|
77
|
-
- '99'
|
78
|
-
content-type:
|
79
|
-
- application/json; charset=utf-8
|
80
|
-
etag:
|
81
|
-
- '"5a741a1e031dbceb847c6193d1621a5e"'
|
82
|
-
cache-control:
|
83
|
-
- max-age=0, private, must-revalidate
|
84
|
-
x-request-id:
|
85
|
-
- c0cc429f-2c4b-4b45-a323-d25b3330cecf
|
86
|
-
x-runtime:
|
87
|
-
- '0.680277'
|
88
|
-
connection:
|
89
|
-
- close
|
90
|
-
server:
|
91
|
-
- thin
|
92
|
-
body:
|
93
|
-
encoding: UTF-8
|
94
|
-
string: '{"id":176,"number":"test number 42","issue_date":"2017-06-09","created_at":1497013359,"contact":{"id":44,"full_name":"Albus
|
95
|
-
Dumbledoge"},"country":"BE","street_line_1":null,"street_line_2":null,"city":null,"region":null,"postal_code":null,"po_number":null,"currency":"EUR","items":[{"id":177,"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":"0.0"}],"subtotal_cents":"0.0","discount_cents":"0.0","taxes":[],"total_cents":0,"payment_details":null,"notes":null,"state":"outstanding","tag_list":[],"secure_id":"c554f9d8cc38cc0ef577322db3b0930ef5374886","permalink":"http://development.lvh.me:3000/estimate/c554f9d8cc38cc0ef577322db3b0930ef5374886","url":"http://development.lvh.me:3000/api/estimates/176.json","custom_metadata":{}}'
|
96
|
-
http_version: '1.1'
|
97
|
-
recorded_at: Fri, 09 Jun 2017 13:02:39 GMT
|
98
|
-
- request:
|
99
|
-
method: delete
|
100
|
-
uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/estimates/176.json
|
101
|
-
body:
|
102
|
-
encoding: US-ASCII
|
103
|
-
string: ''
|
104
|
-
headers:
|
105
|
-
accept:
|
106
|
-
- application/json
|
107
|
-
authorization:
|
108
|
-
- Basic c2tfdGVzdF9CN3hYclRzcGZlR3VrUXFHTjFwSzo=
|
109
|
-
response:
|
110
|
-
status:
|
111
|
-
code: 204
|
112
|
-
message: No Content
|
113
|
-
headers:
|
114
|
-
x-frame-options:
|
115
|
-
- ALLOWALL
|
116
|
-
x-ratelimit-limit:
|
117
|
-
- '2000'
|
118
|
-
x-ratelimit-reset:
|
119
|
-
- '14'
|
120
|
-
x-ratelimit-remaining:
|
121
|
-
- '98'
|
122
|
-
cache-control:
|
123
|
-
- no-cache
|
124
|
-
x-request-id:
|
125
|
-
- dbc450fb-bbda-4630-ae93-1cea91fdcacb
|
126
|
-
x-runtime:
|
127
|
-
- '0.353439'
|
128
|
-
connection:
|
129
|
-
- close
|
130
|
-
server:
|
131
|
-
- thin
|
132
|
-
body:
|
133
|
-
encoding: US-ASCII
|
134
|
-
string: ''
|
135
|
-
http_version: '1.1'
|
136
|
-
recorded_at: Fri, 09 Jun 2017 13:02:40 GMT
|
137
|
-
recorded_with: VCR 2.9.2
|
@@ -1,48 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/evidences.json
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: '{"document_id":180,"billing_country":"BE","bank_country":"BE"}'
|
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
|
-
- '14'
|
27
|
-
x-ratelimit-remaining:
|
28
|
-
- '98'
|
29
|
-
content-type:
|
30
|
-
- application/json; charset=utf-8
|
31
|
-
etag:
|
32
|
-
- '"a0ac8e0c9afd5e7ae14cd5d9c0091b98"'
|
33
|
-
cache-control:
|
34
|
-
- max-age=0, private, must-revalidate
|
35
|
-
x-request-id:
|
36
|
-
- 7eaaa626-cb31-43db-8b5d-019ec34079e5
|
37
|
-
x-runtime:
|
38
|
-
- '0.840152'
|
39
|
-
connection:
|
40
|
-
- close
|
41
|
-
server:
|
42
|
-
- thin
|
43
|
-
body:
|
44
|
-
encoding: UTF-8
|
45
|
-
string: '{"id":1,"document_id":180,"state":"confirmed","billing_country":"BE","ip_address":null,"ip_country":null,"bank_country":"BE","vat_number":null,"notes":null}'
|
46
|
-
http_version: '1.1'
|
47
|
-
recorded_at: Fri, 09 Jun 2017 13:07:05 GMT
|
48
|
-
recorded_with: VCR 2.9.2
|