quaderno 1.13.2 → 1.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +56 -0
- data/.rspec +2 -0
- data/.travis.yml +4 -0
- data/Gemfile +2 -15
- data/README.md +120 -42
- data/Rakefile +4 -50
- data/changelog.md +67 -41
- data/lib/quaderno-ruby.rb +5 -5
- data/lib/quaderno-ruby/base.rb +112 -107
- data/lib/quaderno-ruby/behavior/block.rb +20 -19
- data/lib/quaderno-ruby/behavior/crud.rb +108 -95
- data/lib/quaderno-ruby/behavior/deliver.rb +20 -18
- data/lib/quaderno-ruby/behavior/payment.rb +38 -34
- data/lib/quaderno-ruby/behavior/retrieve.rb +26 -25
- data/lib/quaderno-ruby/checkout_session.rb +4 -0
- data/lib/quaderno-ruby/collection.rb +1 -0
- 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 +50 -44
- data/lib/quaderno-ruby/expense.rb +6 -8
- data/lib/quaderno-ruby/helpers/authentication.rb +16 -18
- data/lib/quaderno-ruby/helpers/rate_limit.rb +12 -0
- 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 +2 -3
- data/lib/quaderno-ruby/receipt.rb +6 -8
- data/lib/quaderno-ruby/recurring.rb +4 -7
- data/lib/quaderno-ruby/report.rb +67 -29
- data/lib/quaderno-ruby/tax.rb +51 -46
- data/lib/quaderno-ruby/version.rb +3 -0
- data/lib/quaderno-ruby/webhook.rb +3 -5
- data/quaderno.gemspec +28 -148
- metadata +92 -92
- 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,184 +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
|
-
- '11'
|
25
|
-
x-ratelimit-remaining:
|
26
|
-
- '97'
|
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
|
-
- 637b763a-581b-4fea-ae95-59a028349b1f
|
39
|
-
x-runtime:
|
40
|
-
- '1.119884'
|
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: Mon, 12 Jun 2017 11:45:07 GMT
|
52
|
-
- request:
|
53
|
-
method: post
|
54
|
-
uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/invoices.json
|
55
|
-
body:
|
56
|
-
encoding: UTF-8
|
57
|
-
string: '{"contact_id":44,"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
|
-
- '10'
|
76
|
-
x-ratelimit-remaining:
|
77
|
-
- '96'
|
78
|
-
content-type:
|
79
|
-
- application/json; charset=utf-8
|
80
|
-
etag:
|
81
|
-
- '"11a621bfca2de15c4e58e7e14f3f52e4"'
|
82
|
-
cache-control:
|
83
|
-
- max-age=0, private, must-revalidate
|
84
|
-
x-request-id:
|
85
|
-
- 9e6c269d-7dba-4843-b517-fe27840f6de9
|
86
|
-
x-runtime:
|
87
|
-
- '4.330467'
|
88
|
-
connection:
|
89
|
-
- close
|
90
|
-
server:
|
91
|
-
- thin
|
92
|
-
body:
|
93
|
-
encoding: UTF-8
|
94
|
-
string: '{"id":196,"blocked":false,"number":"0006","issue_date":"2017-06-12","created_at":1497267909,"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,"due_date":null,"currency":"EUR","subject":null,"items":[{"id":197,"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":[],"total_cents":0,"payments":[],"payment_details":null,"notes":null,"state":"outstanding","tag_list":[],"secure_id":"aee0abf34bbb9f171d7316ccbfe08263ccd911a4","permalink":"http://development.lvh.me:3000/invoice/aee0abf34bbb9f171d7316ccbfe08263ccd911a4","pdf":"http://development.lvh.me:3000/invoice/aee0abf34bbb9f171d7316ccbfe08263ccd911a4.pdf","url":"http://development.lvh.me:3000/api/invoices/196.json","processor":null,"processor_id":null,"custom_metadata":{}}'
|
96
|
-
http_version: '1.1'
|
97
|
-
recorded_at: Mon, 12 Jun 2017 11:45:12 GMT
|
98
|
-
- request:
|
99
|
-
method: put
|
100
|
-
uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/invoices/196.json
|
101
|
-
body:
|
102
|
-
encoding: UTF-8
|
103
|
-
string: '{"payment_details":"Show me the moneeeeeeeyy!!!!"}'
|
104
|
-
headers:
|
105
|
-
accept:
|
106
|
-
- application/json
|
107
|
-
content-type:
|
108
|
-
- application/json
|
109
|
-
authorization:
|
110
|
-
- Basic c2tfdGVzdF9CN3hYclRzcGZlR3VrUXFHTjFwSzo=
|
111
|
-
response:
|
112
|
-
status:
|
113
|
-
code: 200
|
114
|
-
message: OK
|
115
|
-
headers:
|
116
|
-
x-frame-options:
|
117
|
-
- ALLOWALL
|
118
|
-
x-ratelimit-limit:
|
119
|
-
- '2000'
|
120
|
-
x-ratelimit-reset:
|
121
|
-
- '5'
|
122
|
-
x-ratelimit-remaining:
|
123
|
-
- '95'
|
124
|
-
content-type:
|
125
|
-
- application/json; charset=utf-8
|
126
|
-
etag:
|
127
|
-
- '"aec0501a82149518f0bb800b24f2120b"'
|
128
|
-
cache-control:
|
129
|
-
- max-age=0, private, must-revalidate
|
130
|
-
x-request-id:
|
131
|
-
- 468b1faa-27a4-492f-8fa0-7a6f5d75719d
|
132
|
-
x-runtime:
|
133
|
-
- '3.842501'
|
134
|
-
connection:
|
135
|
-
- close
|
136
|
-
server:
|
137
|
-
- thin
|
138
|
-
body:
|
139
|
-
encoding: UTF-8
|
140
|
-
string: '{"id":196,"blocked":false,"number":"0006","issue_date":"2017-06-12","created_at":1497267909,"contact":{"id":44,"full_name":"Albus
|
141
|
-
Dumbledoge"},"country":"BE","street_line_1":null,"street_line_2":null,"city":null,"region":null,"postal_code":null,"po_number":null,"due_date":null,"currency":"EUR","subject":null,"items":[{"id":197,"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":[],"total_cents":0,"payments":[],"payment_details":"Show
|
142
|
-
me the moneeeeeeeyy!!!!","notes":null,"state":"outstanding","tag_list":[],"secure_id":"aee0abf34bbb9f171d7316ccbfe08263ccd911a4","permalink":"http://development.lvh.me:3000/invoice/aee0abf34bbb9f171d7316ccbfe08263ccd911a4","pdf":"http://development.lvh.me:3000/invoice/aee0abf34bbb9f171d7316ccbfe08263ccd911a4.pdf","url":"http://development.lvh.me:3000/api/invoices/196.json","processor":null,"processor_id":null,"custom_metadata":{}}'
|
143
|
-
http_version: '1.1'
|
144
|
-
recorded_at: Mon, 12 Jun 2017 11:45:16 GMT
|
145
|
-
- request:
|
146
|
-
method: delete
|
147
|
-
uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/invoices/196.json
|
148
|
-
body:
|
149
|
-
encoding: US-ASCII
|
150
|
-
string: ''
|
151
|
-
headers:
|
152
|
-
accept:
|
153
|
-
- application/json
|
154
|
-
authorization:
|
155
|
-
- Basic c2tfdGVzdF9CN3hYclRzcGZlR3VrUXFHTjFwSzo=
|
156
|
-
response:
|
157
|
-
status:
|
158
|
-
code: 204
|
159
|
-
message: No Content
|
160
|
-
headers:
|
161
|
-
x-frame-options:
|
162
|
-
- ALLOWALL
|
163
|
-
x-ratelimit-limit:
|
164
|
-
- '2000'
|
165
|
-
x-ratelimit-reset:
|
166
|
-
- '2'
|
167
|
-
x-ratelimit-remaining:
|
168
|
-
- '94'
|
169
|
-
cache-control:
|
170
|
-
- no-cache
|
171
|
-
x-request-id:
|
172
|
-
- a409f609-b43a-4065-9808-b23a631d8435
|
173
|
-
x-runtime:
|
174
|
-
- '2.185361'
|
175
|
-
connection:
|
176
|
-
- close
|
177
|
-
server:
|
178
|
-
- thin
|
179
|
-
body:
|
180
|
-
encoding: US-ASCII
|
181
|
-
string: ''
|
182
|
-
http_version: '1.1'
|
183
|
-
recorded_at: Mon, 12 Jun 2017 11:45:18 GMT
|
184
|
-
recorded_with: VCR 2.9.2
|
@@ -1,93 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/items.json
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: '{"code":"1497267940","name":"Test_Skynet","unit_cost":21.0}'
|
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
|
-
- '8'
|
27
|
-
x-ratelimit-remaining:
|
28
|
-
- '93'
|
29
|
-
content-type:
|
30
|
-
- application/json; charset=utf-8
|
31
|
-
etag:
|
32
|
-
- '"e736479a9364217c3573d19fbe170c7b"'
|
33
|
-
cache-control:
|
34
|
-
- max-age=0, private, must-revalidate
|
35
|
-
x-request-id:
|
36
|
-
- a8da756e-1c83-4aec-bd31-443c2c70c4d1
|
37
|
-
x-runtime:
|
38
|
-
- '1.080966'
|
39
|
-
connection:
|
40
|
-
- close
|
41
|
-
server:
|
42
|
-
- thin
|
43
|
-
body:
|
44
|
-
encoding: UTF-8
|
45
|
-
string: '{"id":4,"code":"1497267940","name":"Test_Skynet","unit_cost":"21.0","stock":null,"tax_class":"eservice","url":"http://development.lvh.me:3000/api/items/4"}'
|
46
|
-
http_version: '1.1'
|
47
|
-
recorded_at: Mon, 12 Jun 2017 11:45:41 GMT
|
48
|
-
- request:
|
49
|
-
method: put
|
50
|
-
uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/items/4.json
|
51
|
-
body:
|
52
|
-
encoding: UTF-8
|
53
|
-
string: '{"name":"Test_OCP"}'
|
54
|
-
headers:
|
55
|
-
accept:
|
56
|
-
- application/json
|
57
|
-
content-type:
|
58
|
-
- application/json
|
59
|
-
authorization:
|
60
|
-
- Basic c2tfdGVzdF9CN3hYclRzcGZlR3VrUXFHTjFwSzo=
|
61
|
-
response:
|
62
|
-
status:
|
63
|
-
code: 200
|
64
|
-
message: OK
|
65
|
-
headers:
|
66
|
-
x-frame-options:
|
67
|
-
- ALLOWALL
|
68
|
-
x-ratelimit-limit:
|
69
|
-
- '2000'
|
70
|
-
x-ratelimit-reset:
|
71
|
-
- '6'
|
72
|
-
x-ratelimit-remaining:
|
73
|
-
- '92'
|
74
|
-
content-type:
|
75
|
-
- application/json; charset=utf-8
|
76
|
-
etag:
|
77
|
-
- '"7184607322676bd93ea3da539be685ee"'
|
78
|
-
cache-control:
|
79
|
-
- max-age=0, private, must-revalidate
|
80
|
-
x-request-id:
|
81
|
-
- b72a5725-a134-458e-841f-3509c681095a
|
82
|
-
x-runtime:
|
83
|
-
- '0.800370'
|
84
|
-
connection:
|
85
|
-
- close
|
86
|
-
server:
|
87
|
-
- thin
|
88
|
-
body:
|
89
|
-
encoding: UTF-8
|
90
|
-
string: '{"id":4,"code":"1497267940","name":"Test_OCP","unit_cost":"21.0","stock":null,"tax_class":"eservice","url":"http://development.lvh.me:3000/api/items/4"}'
|
91
|
-
http_version: '1.1'
|
92
|
-
recorded_at: Mon, 12 Jun 2017 11:45:42 GMT
|
93
|
-
recorded_with: VCR 2.9.2
|
@@ -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
|