easybill-rest-client 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +152 -0
- data/README.md +8 -0
- data/Rakefile +4 -0
- data/config.json +5 -0
- data/easybill-rest-client.gemspec +29 -0
- data/lib/easybill-rest-client.rb +15 -0
- data/lib/easybill_rest_client/.document_address.rb.swp +0 -0
- data/lib/easybill_rest_client/.document_item.rb.swp +0 -0
- data/lib/easybill_rest_client/.document_payment.rb.swp +0 -0
- data/lib/easybill_rest_client/.document_recurring_options.rb.swp +0 -0
- data/lib/easybill_rest_client/.easybill_error.rb.swp +0 -0
- data/lib/easybill_rest_client/.log_formatter.rb.swp +0 -0
- data/lib/easybill_rest_client/.request_builder.rb.swp +0 -0
- data/lib/easybill_rest_client/.too_many_requests_error.rb.swp +0 -0
- data/lib/easybill_rest_client/api_client.rb +61 -0
- data/lib/easybill_rest_client/client.rb +39 -0
- data/lib/easybill_rest_client/customer.rb +70 -0
- data/lib/easybill_rest_client/customer_api.rb +15 -0
- data/lib/easybill_rest_client/document.rb +53 -0
- data/lib/easybill_rest_client/document_address.rb +19 -0
- data/lib/easybill_rest_client/document_api.rb +31 -0
- data/lib/easybill_rest_client/document_item.rb +34 -0
- data/lib/easybill_rest_client/document_payment.rb +15 -0
- data/lib/easybill_rest_client/document_payment_api.rb +15 -0
- data/lib/easybill_rest_client/document_recurring_options.rb +23 -0
- data/lib/easybill_rest_client/document_service_date.rb +12 -0
- data/lib/easybill_rest_client/generic_api.rb +39 -0
- data/lib/easybill_rest_client/pdf.rb +21 -0
- data/lib/easybill_rest_client/post_box.rb +24 -0
- data/lib/easybill_rest_client/post_box_api.rb +15 -0
- data/lib/easybill_rest_client/request.rb +107 -0
- data/lib/easybill_rest_client/request_logger.rb +24 -0
- data/lib/easybill_rest_client/response.rb +36 -0
- data/lib/easybill_rest_client/retry_on.rb +46 -0
- data/lib/easybill_rest_client/version.rb +5 -0
- data/log/.gitkeep +0 -0
- data/log/test.log +5723 -0
- data/script/.generate.swo +0 -0
- data/spec/.spec_helper.rb.swp +0 -0
- data/spec/fixtures/vcr/EasybillRestClient_CustomerApi/_customers_get/.returns_customers.yml.swo +0 -0
- data/spec/fixtures/vcr/EasybillRestClient_CustomerApi/_customers_get/.returns_customers.yml.swp +0 -0
- data/spec/fixtures/vcr/EasybillRestClient_CustomerApi/a_list_of_customers/gets_all_customers.yml +84 -0
- data/spec/fixtures/vcr/EasybillRestClient_CustomerApi/a_list_of_customers/gets_customers_matching_a_filter.yml +72 -0
- data/spec/fixtures/vcr/EasybillRestClient_CustomerApi/creates_updates_and_deletes_customer.yml +377 -0
- data/spec/fixtures/vcr/EasybillRestClient_Document/_all/returns_documents.yml +44 -0
- data/spec/fixtures/vcr/EasybillRestClient_DocumentApi/_cancel/cancels_a_document.yml +212 -0
- data/spec/fixtures/vcr/EasybillRestClient_DocumentApi/_create/creates_a_document.yml +53 -0
- data/spec/fixtures/vcr/EasybillRestClient_DocumentApi/_delete/deletes_a_document.yml +174 -0
- data/spec/fixtures/vcr/EasybillRestClient_DocumentApi/_find/returns_a_document.yml +57 -0
- data/spec/fixtures/vcr/EasybillRestClient_DocumentApi/_find_all/paid_and_unpaid_documents_exist/returns_only_unpaid_documents.yml +795 -0
- data/spec/fixtures/vcr/EasybillRestClient_DocumentApi/_find_all/returns_documents.yml +58 -0
- data/spec/fixtures/vcr/EasybillRestClient_DocumentApi/_find_all/returns_documents_by_number.yml +58 -0
- data/spec/fixtures/vcr/EasybillRestClient_DocumentApi/_finish/marks_a_drafted_document_as_finished.yml +212 -0
- data/spec/fixtures/vcr/EasybillRestClient_DocumentApi/_get_pdf/returns_a_PDF.yml +3889 -0
- data/spec/fixtures/vcr/EasybillRestClient_DocumentApi/_send_email/passes_on_additional_params.yml +63 -0
- data/spec/fixtures/vcr/EasybillRestClient_DocumentApi/_send_email/sends_an_email.yml +63 -0
- data/spec/fixtures/vcr/EasybillRestClient_DocumentApi/_update/updates_a_document.yml +107 -0
- data/spec/fixtures/vcr/EasybillRestClient_DocumentPaymentApi/_create/creates_a_document_payment.yml +195 -0
- data/spec/fixtures/vcr/EasybillRestClient_DocumentPaymentApi/_delete/deletes_a_document_payment.yml +168 -0
- data/spec/fixtures/vcr/EasybillRestClient_DocumentPaymentApi/_document_payments_get/returns_a_document_s_payments.yml +460 -0
- data/spec/fixtures/vcr/EasybillRestClient_DocumentPaymentApi/_document_payments_post/creates_a_document_payment.yml +47 -0
- data/spec/fixtures/vcr/EasybillRestClient_DocumentPaymentApi/_find/returns_a_document_payment.yml +66 -0
- data/spec/fixtures/vcr/EasybillRestClient_DocumentPaymentApi/_find_all/returns_document_payments.yml +66 -0
- data/spec/fixtures/vcr/EasybillRestClient_PostBoxApi/_delete/deletes_a_post_box.yml +174 -0
- data/spec/fixtures/vcr/EasybillRestClient_PostBoxApi/_find/returns_a_post_box.yml +72 -0
- data/spec/fixtures/vcr/EasybillRestClient_PostBoxApi/_find_all/returns_post_boxes.yml +73 -0
- data/spec/fixtures/vcr/EasybillRestClient_PostBoxApi/_post_boxes_get/returns_post_boxes.yml +52 -0
- data/spec/integration/.customer_api_spec.rb.swn +0 -0
- data/spec/integration/.customer_api_spec.rb.swo +0 -0
- data/spec/integration/customer_api_spec.rb +47 -0
- data/spec/integration/easybill_rest_client/document_api_spec.rb +129 -0
- data/spec/integration/easybill_rest_client/document_payment_api_spec.rb +55 -0
- data/spec/integration/easybill_rest_client/post_box_api_spec.rb +31 -0
- data/spec/lib/easybill_rest_client/.api_client_spec.rb.swp +0 -0
- data/spec/lib/easybill_rest_client/easybill_rest_api/.generic_api_spec.rb.swp +0 -0
- data/spec/lib/easybill_rest_client/generic_api_spec.rb +55 -0
- data/spec/lib/easybill_rest_client/pdf_spec.rb +29 -0
- data/spec/lib/easybill_rest_client/request_logger_spec.rb +14 -0
- data/spec/lib/easybill_rest_client/request_spec.rb +32 -0
- data/spec/lib/easybill_rest_client/retry_on_spec.rb +37 -0
- data/spec/spec_helper.rb +33 -0
- data/spec/support/.setup_api_client.rb.swo +0 -0
- data/spec/support/setup_client.rb +12 -0
- data/swagger.json +3964 -0
- metadata +257 -0
@@ -0,0 +1,58 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.easybill.de/rest/v1/documents?limit=1000&page=1
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.2
|
12
|
+
Authorization:
|
13
|
+
- Basic easybill-basic-auth-key
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- "*/*"
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- nginx/1.10.0
|
25
|
+
Date:
|
26
|
+
- Fri, 06 May 2016 15:00:25 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
Vary:
|
34
|
+
- Accept-Encoding
|
35
|
+
- Accept-Encoding
|
36
|
+
Cache-Control:
|
37
|
+
- private, must-revalidate
|
38
|
+
Pragma:
|
39
|
+
- no-cache
|
40
|
+
Expires:
|
41
|
+
- "-1"
|
42
|
+
Strict-Transport-Security:
|
43
|
+
- max-age=31536000
|
44
|
+
body:
|
45
|
+
encoding: ASCII-8BIT
|
46
|
+
string: '{"page":1,"pages":1,"limit":100,"total":1,"items":[{"address":{"city":"Atlantis","company_name":"Yellow
|
47
|
+
Submarine","country":"DE","first_name":"Simon","last_name":"Moon","personal":false,"salutation":"1","street":"Sesame
|
48
|
+
Street 23","suffix_1":null,"suffix_2":null,"title":null,"zip_code":"12345"},"amount":119000000,"amount_net":100000000,"bank_debit_form":null,"cancel_id":null,"cash_allowance":null,"cash_allowance_days":null,"cash_allowance_text":null,"contact_id":null,"contact_label":null,"contact_text":null,"created_at":"2016-05-06
|
49
|
+
16:43:03","currency":"EUR","customer_id":65789440,"discount":null,"discount_type":null,"document_date":"2016-05-06","due_date":"2016-05-16","edited_at":"2016-05-06
|
50
|
+
16:45:05","grace_period":10,"id":79121874,"is_archive":false,"is_draft":false,"items":[{"booking_account":null,"cost_price_charge":null,"cost_price_charge_type":"AMOUNT","cost_price_net":null,"cost_price_total":null,"description":"Golden
|
51
|
+
apple","discount":null,"discount_type":null,"export_cost_1":null,"export_cost_2":null,"id":161919800,"number":"23","position":1,"position_id":null,"quantity":1,"serial_number":null,"serial_number_id":null,"single_price_gross":119000000,"single_price_net":100000000,"total_price_gross":119000000,"total_price_net":100000000,"total_vat":19000000,"type":"POSITION","unit":null,"vat_percent":19}],"label_address":{"city":null,"company_name":null,"country":null,"first_name":null,"last_name":null,"personal":null,"salutation":"0","street":null,"suffix_1":null,"suffix_2":null,"zip_code":null},"last_postbox_id":null,"number":"XYZ-123","paid_amount":0,"paid_at":null,"pdf_pages":1,"pdf_template":"DE","project_id":null,"ref_id":null,"service_date":{"type":"DEFAULT","date":"2016-05-06","date_from":null,"date_to":null,"text":null},"status":null,"text":"Vielen
|
52
|
+
Dank f\u00fcr Ihren Auftrag!\u003Cbr\u003E\u003Cbr\u003EBitte begleichen Sie
|
53
|
+
den offenen Betrag bis zum %DOKUMENT.DATUM-FAELLIG%.\u003Cbr\u003E\u003Cbr\u003EMit
|
54
|
+
freundlichen Gr\u00fc\u00dfen\u003Cbr\u003E\u003Cbr\u003E%FIRMA.FIRMA%","text_prefix":"%KUNDE.ANREDE%,\u003Cbr\u003Enachfolgend
|
55
|
+
berechnen wir Ihnen wie vorab besprochen:\u003Cbr\u003E","title":null,"type":"INVOICE","use_shipping_address":false,"vat_option":null}]}'
|
56
|
+
http_version:
|
57
|
+
recorded_at: Fri, 06 May 2016 15:00:25 GMT
|
58
|
+
recorded_with: VCR 3.0.1
|
data/spec/fixtures/vcr/EasybillRestClient_DocumentApi/_find_all/returns_documents_by_number.yml
ADDED
@@ -0,0 +1,58 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.easybill.de/rest/v1/documents?limit=1000&number=XYZ-123&page=1
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.2
|
12
|
+
Authorization:
|
13
|
+
- Basic easybill-basic-auth-key
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- "*/*"
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- nginx/1.10.0
|
25
|
+
Date:
|
26
|
+
- Fri, 06 May 2016 15:01:17 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
Vary:
|
34
|
+
- Accept-Encoding
|
35
|
+
- Accept-Encoding
|
36
|
+
Cache-Control:
|
37
|
+
- private, must-revalidate
|
38
|
+
Pragma:
|
39
|
+
- no-cache
|
40
|
+
Expires:
|
41
|
+
- "-1"
|
42
|
+
Strict-Transport-Security:
|
43
|
+
- max-age=31536000
|
44
|
+
body:
|
45
|
+
encoding: ASCII-8BIT
|
46
|
+
string: '{"page":1,"pages":1,"limit":100,"total":1,"items":[{"address":{"city":"Atlantis","company_name":"Yellow
|
47
|
+
Submarine","country":"DE","first_name":"Simon","last_name":"Moon","personal":false,"salutation":"1","street":"Sesame
|
48
|
+
Street 23","suffix_1":null,"suffix_2":null,"title":null,"zip_code":"12345"},"amount":119000000,"amount_net":100000000,"bank_debit_form":null,"cancel_id":null,"cash_allowance":null,"cash_allowance_days":null,"cash_allowance_text":null,"contact_id":null,"contact_label":null,"contact_text":null,"created_at":"2016-05-06
|
49
|
+
16:43:03","currency":"EUR","customer_id":65789440,"discount":null,"discount_type":null,"document_date":"2016-05-06","due_date":"2016-05-16","edited_at":"2016-05-06
|
50
|
+
16:45:05","grace_period":10,"id":79121874,"is_archive":false,"is_draft":false,"items":[{"booking_account":null,"cost_price_charge":null,"cost_price_charge_type":"AMOUNT","cost_price_net":null,"cost_price_total":null,"description":"Golden
|
51
|
+
apple","discount":null,"discount_type":null,"export_cost_1":null,"export_cost_2":null,"id":161919800,"number":"23","position":1,"position_id":null,"quantity":1,"serial_number":null,"serial_number_id":null,"single_price_gross":119000000,"single_price_net":100000000,"total_price_gross":119000000,"total_price_net":100000000,"total_vat":19000000,"type":"POSITION","unit":null,"vat_percent":19}],"label_address":{"city":null,"company_name":null,"country":null,"first_name":null,"last_name":null,"personal":null,"salutation":"0","street":null,"suffix_1":null,"suffix_2":null,"zip_code":null},"last_postbox_id":null,"number":"XYZ-123","paid_amount":0,"paid_at":null,"pdf_pages":1,"pdf_template":"DE","project_id":null,"ref_id":null,"service_date":{"type":"DEFAULT","date":"2016-05-06","date_from":null,"date_to":null,"text":null},"status":null,"text":"Vielen
|
52
|
+
Dank f\u00fcr Ihren Auftrag!\u003Cbr\u003E\u003Cbr\u003EBitte begleichen Sie
|
53
|
+
den offenen Betrag bis zum %DOKUMENT.DATUM-FAELLIG%.\u003Cbr\u003E\u003Cbr\u003EMit
|
54
|
+
freundlichen Gr\u00fc\u00dfen\u003Cbr\u003E\u003Cbr\u003E%FIRMA.FIRMA%","text_prefix":"%KUNDE.ANREDE%,\u003Cbr\u003Enachfolgend
|
55
|
+
berechnen wir Ihnen wie vorab besprochen:\u003Cbr\u003E","title":null,"type":"INVOICE","use_shipping_address":false,"vat_option":null}]}'
|
56
|
+
http_version:
|
57
|
+
recorded_at: Fri, 06 May 2016 15:01:17 GMT
|
58
|
+
recorded_with: VCR 3.0.1
|
@@ -0,0 +1,212 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.easybill.de/rest/v1/documents/84725627
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.2
|
12
|
+
Authorization:
|
13
|
+
- Basic easybill-basic-auth-key
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- "*/*"
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- nginx
|
25
|
+
Date:
|
26
|
+
- Fri, 10 Jun 2016 08:50:38 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
Vary:
|
34
|
+
- Accept-Encoding
|
35
|
+
- Accept-Encoding
|
36
|
+
Cache-Control:
|
37
|
+
- private, must-revalidate
|
38
|
+
Pragma:
|
39
|
+
- no-cache
|
40
|
+
Expires:
|
41
|
+
- "-1"
|
42
|
+
Strict-Transport-Security:
|
43
|
+
- max-age=31536000
|
44
|
+
X-Frame-Options:
|
45
|
+
- SAMEORIGIN
|
46
|
+
X-Content-Type-Options:
|
47
|
+
- nosniff
|
48
|
+
X-Xss-Protection:
|
49
|
+
- 1; mode=block
|
50
|
+
Content-Security-Policy:
|
51
|
+
- 'default-src ''self''; connect-src ''self'' *.easybill.de *.paymill.de *.paymill.com;
|
52
|
+
script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' *.paymill.de *.paymill.com
|
53
|
+
*.google-analytics.com *.googleadservices.com d2wy8f7a9ursnm.cloudfront.net;
|
54
|
+
img-src ''self'' data: *.doubleclick.net notify.bugsnag.com *.paypalobjects.com
|
55
|
+
online.swagger.io *.google-analytics.com *.google.com *.google.de *.google.at
|
56
|
+
*.google.ch; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com; font-src
|
57
|
+
''self'' themes.googleusercontent.com fonts.gstatic.com; frame-src ''self''
|
58
|
+
*.googleadservices.com ssl.kaptcha.com *.paymill.de *.paymill.com *.mediafinanz.de
|
59
|
+
*.google.de *.google.com *.google.at *.google.ch *.doubleclick.net player.vimeo.com
|
60
|
+
*.facebook.com; object-src ''self'''
|
61
|
+
body:
|
62
|
+
encoding: ASCII-8BIT
|
63
|
+
string: '{"address":{"city":null,"company_name":"Test","country":"DE","first_name":"Test","last_name":"Test","personal":false,"salutation":"0","street":null,"suffix_1":null,"suffix_2":null,"title":null,"zip_code":null},"amount":3367,"amount_net":2829,"bank_debit_form":null,"cancel_id":null,"cash_allowance":null,"cash_allowance_days":null,"cash_allowance_text":null,"contact_id":null,"contact_label":null,"contact_text":null,"created_at":"2016-06-10
|
64
|
+
10:46:00","currency":"EUR","customer_id":25699514,"discount":null,"discount_type":null,"document_date":"2016-06-10","due_date":null,"edited_at":"2016-06-10
|
65
|
+
10:46:27","grace_period":10,"id":84725627,"is_archive":false,"is_draft":true,"items":[{"booking_account":null,"cost_price_charge":null,"cost_price_charge_type":"AMOUNT","cost_price_net":null,"cost_price_total":null,"description":"Foo","discount":null,"discount_type":null,"export_cost_1":null,"export_cost_2":null,"id":173315658,"number":"1","position":1,"position_id":null,"quantity":23,"serial_number":null,"serial_number_id":null,"single_price_gross":146.37,"single_price_net":123,"total_price_gross":3366.51,"total_price_net":2829,"total_vat":537.51,"type":"POSITION","unit":null,"vat_percent":19}],"label_address":{"city":null,"company_name":null,"country":null,"first_name":null,"last_name":null,"personal":null,"salutation":"0","street":null,"suffix_1":null,"suffix_2":null,"zip_code":null},"last_postbox_id":null,"number":null,"paid_amount":0,"paid_at":null,"pdf_pages":1,"pdf_template":"DE","project_id":null,"ref_id":null,"service_date":{"type":"DEFAULT","date":"2016-06-10","date_from":null,"date_to":null,"text":null},"status":null,"text":"Vielen
|
66
|
+
Dank f\u00fcr Ihren Auftrag!\u003Cbr\u003E\u003Cbr\u003EBitte begleichen Sie
|
67
|
+
den offenen Betrag bis zum %DOKUMENT.DATUM-FAELLIG%.\u003Cbr\u003E\u003Cbr\u003EMit
|
68
|
+
freundlichen Gr\u00fc\u00dfen\u003Cbr\u003E\u003Cbr\u003E%FIRMA.FIRMA%\u003Cbr\u003E","text_prefix":"%KUNDE.ANREDE%,\u003Cbr\u003Enachfolgend
|
69
|
+
berechnen wir Ihnen wie vorab besprochen:\u003Cbr\u003E","title":null,"type":"INVOICE","use_shipping_address":false,"vat_option":null}'
|
70
|
+
http_version:
|
71
|
+
recorded_at: Fri, 10 Jun 2016 08:50:38 GMT
|
72
|
+
- request:
|
73
|
+
method: put
|
74
|
+
uri: https://api.easybill.de/rest/v1/documents/84725627/done
|
75
|
+
body:
|
76
|
+
encoding: UTF-8
|
77
|
+
string: "{}"
|
78
|
+
headers:
|
79
|
+
User-Agent:
|
80
|
+
- Faraday v0.9.2
|
81
|
+
Authorization:
|
82
|
+
- Basic easybill-basic-auth-key
|
83
|
+
Content-Type:
|
84
|
+
- application/x-www-form-urlencoded
|
85
|
+
Accept-Encoding:
|
86
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
87
|
+
Accept:
|
88
|
+
- "*/*"
|
89
|
+
response:
|
90
|
+
status:
|
91
|
+
code: 200
|
92
|
+
message: OK
|
93
|
+
headers:
|
94
|
+
Server:
|
95
|
+
- nginx
|
96
|
+
Date:
|
97
|
+
- Fri, 10 Jun 2016 08:50:39 GMT
|
98
|
+
Content-Type:
|
99
|
+
- application/json
|
100
|
+
Transfer-Encoding:
|
101
|
+
- chunked
|
102
|
+
Connection:
|
103
|
+
- keep-alive
|
104
|
+
Vary:
|
105
|
+
- Accept-Encoding
|
106
|
+
- Accept-Encoding
|
107
|
+
Cache-Control:
|
108
|
+
- private, must-revalidate
|
109
|
+
Pragma:
|
110
|
+
- no-cache
|
111
|
+
Expires:
|
112
|
+
- "-1"
|
113
|
+
Strict-Transport-Security:
|
114
|
+
- max-age=31536000
|
115
|
+
X-Frame-Options:
|
116
|
+
- SAMEORIGIN
|
117
|
+
X-Content-Type-Options:
|
118
|
+
- nosniff
|
119
|
+
X-Xss-Protection:
|
120
|
+
- 1; mode=block
|
121
|
+
Content-Security-Policy:
|
122
|
+
- 'default-src ''self''; connect-src ''self'' *.easybill.de *.paymill.de *.paymill.com;
|
123
|
+
script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' *.paymill.de *.paymill.com
|
124
|
+
*.google-analytics.com *.googleadservices.com d2wy8f7a9ursnm.cloudfront.net;
|
125
|
+
img-src ''self'' data: *.doubleclick.net notify.bugsnag.com *.paypalobjects.com
|
126
|
+
online.swagger.io *.google-analytics.com *.google.com *.google.de *.google.at
|
127
|
+
*.google.ch; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com; font-src
|
128
|
+
''self'' themes.googleusercontent.com fonts.gstatic.com; frame-src ''self''
|
129
|
+
*.googleadservices.com ssl.kaptcha.com *.paymill.de *.paymill.com *.mediafinanz.de
|
130
|
+
*.google.de *.google.com *.google.at *.google.ch *.doubleclick.net player.vimeo.com
|
131
|
+
*.facebook.com; object-src ''self'''
|
132
|
+
body:
|
133
|
+
encoding: ASCII-8BIT
|
134
|
+
string: '{"address":{"city":null,"company_name":"Test","country":"DE","first_name":"Test","last_name":"Test","personal":false,"salutation":"0","street":null,"suffix_1":null,"suffix_2":null,"title":null,"zip_code":null},"amount":3367,"amount_net":2829,"bank_debit_form":null,"cancel_id":null,"cash_allowance":null,"cash_allowance_days":null,"cash_allowance_text":null,"contact_id":null,"contact_label":null,"contact_text":null,"created_at":"2016-06-10
|
135
|
+
10:46:00","currency":"EUR","customer_id":25699514,"discount":null,"discount_type":null,"document_date":"2016-06-10","due_date":"2016-06-20","edited_at":"2016-06-10
|
136
|
+
10:50:38","grace_period":10,"id":84725627,"is_archive":false,"is_draft":false,"items":[{"booking_account":null,"cost_price_charge":null,"cost_price_charge_type":"AMOUNT","cost_price_net":null,"cost_price_total":null,"description":"Foo","discount":null,"discount_type":null,"export_cost_1":null,"export_cost_2":null,"id":173315658,"number":"1","position":1,"position_id":null,"quantity":23,"serial_number":null,"serial_number_id":null,"single_price_gross":146.37,"single_price_net":123,"total_price_gross":3366.51,"total_price_net":2829,"total_vat":537.51,"type":"POSITION","unit":null,"vat_percent":19}],"label_address":{"city":null,"company_name":null,"country":null,"first_name":null,"last_name":null,"personal":null,"salutation":"0","street":null,"suffix_1":null,"suffix_2":null,"zip_code":null},"last_postbox_id":null,"number":"C1606-16179","paid_amount":0,"paid_at":null,"pdf_pages":1,"pdf_template":"DE","project_id":null,"ref_id":null,"service_date":{"type":"DEFAULT","date":"2016-06-10","date_from":null,"date_to":null,"text":null},"status":null,"text":"Vielen
|
137
|
+
Dank f\u00fcr Ihren Auftrag!\u003Cbr\u003E\u003Cbr\u003EBitte begleichen Sie
|
138
|
+
den offenen Betrag bis zum %DOKUMENT.DATUM-FAELLIG%.\u003Cbr\u003E\u003Cbr\u003EMit
|
139
|
+
freundlichen Gr\u00fc\u00dfen\u003Cbr\u003E\u003Cbr\u003E%FIRMA.FIRMA%\u003Cbr\u003E","text_prefix":"%KUNDE.ANREDE%,\u003Cbr\u003Enachfolgend
|
140
|
+
berechnen wir Ihnen wie vorab besprochen:\u003Cbr\u003E","title":null,"type":"INVOICE","use_shipping_address":false,"vat_option":null}'
|
141
|
+
http_version:
|
142
|
+
recorded_at: Fri, 10 Jun 2016 08:50:39 GMT
|
143
|
+
- request:
|
144
|
+
method: get
|
145
|
+
uri: https://api.easybill.de/rest/v1/documents/84725627
|
146
|
+
body:
|
147
|
+
encoding: US-ASCII
|
148
|
+
string: ''
|
149
|
+
headers:
|
150
|
+
User-Agent:
|
151
|
+
- Faraday v0.9.2
|
152
|
+
Authorization:
|
153
|
+
- Basic easybill-basic-auth-key
|
154
|
+
Accept-Encoding:
|
155
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
156
|
+
Accept:
|
157
|
+
- "*/*"
|
158
|
+
response:
|
159
|
+
status:
|
160
|
+
code: 200
|
161
|
+
message: OK
|
162
|
+
headers:
|
163
|
+
Server:
|
164
|
+
- nginx
|
165
|
+
Date:
|
166
|
+
- Fri, 10 Jun 2016 08:50:39 GMT
|
167
|
+
Content-Type:
|
168
|
+
- application/json
|
169
|
+
Transfer-Encoding:
|
170
|
+
- chunked
|
171
|
+
Connection:
|
172
|
+
- keep-alive
|
173
|
+
Vary:
|
174
|
+
- Accept-Encoding
|
175
|
+
- Accept-Encoding
|
176
|
+
Cache-Control:
|
177
|
+
- private, must-revalidate
|
178
|
+
Pragma:
|
179
|
+
- no-cache
|
180
|
+
Expires:
|
181
|
+
- "-1"
|
182
|
+
Strict-Transport-Security:
|
183
|
+
- max-age=31536000
|
184
|
+
X-Frame-Options:
|
185
|
+
- SAMEORIGIN
|
186
|
+
X-Content-Type-Options:
|
187
|
+
- nosniff
|
188
|
+
X-Xss-Protection:
|
189
|
+
- 1; mode=block
|
190
|
+
Content-Security-Policy:
|
191
|
+
- 'default-src ''self''; connect-src ''self'' *.easybill.de *.paymill.de *.paymill.com;
|
192
|
+
script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' *.paymill.de *.paymill.com
|
193
|
+
*.google-analytics.com *.googleadservices.com d2wy8f7a9ursnm.cloudfront.net;
|
194
|
+
img-src ''self'' data: *.doubleclick.net notify.bugsnag.com *.paypalobjects.com
|
195
|
+
online.swagger.io *.google-analytics.com *.google.com *.google.de *.google.at
|
196
|
+
*.google.ch; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com; font-src
|
197
|
+
''self'' themes.googleusercontent.com fonts.gstatic.com; frame-src ''self''
|
198
|
+
*.googleadservices.com ssl.kaptcha.com *.paymill.de *.paymill.com *.mediafinanz.de
|
199
|
+
*.google.de *.google.com *.google.at *.google.ch *.doubleclick.net player.vimeo.com
|
200
|
+
*.facebook.com; object-src ''self'''
|
201
|
+
body:
|
202
|
+
encoding: ASCII-8BIT
|
203
|
+
string: '{"address":{"city":null,"company_name":"Test","country":"DE","first_name":"Test","last_name":"Test","personal":false,"salutation":"0","street":null,"suffix_1":null,"suffix_2":null,"title":null,"zip_code":null},"amount":3367,"amount_net":2829,"bank_debit_form":null,"cancel_id":null,"cash_allowance":null,"cash_allowance_days":null,"cash_allowance_text":null,"contact_id":null,"contact_label":null,"contact_text":null,"created_at":"2016-06-10
|
204
|
+
10:46:00","currency":"EUR","customer_id":25699514,"discount":null,"discount_type":null,"document_date":"2016-06-10","due_date":"2016-06-20","edited_at":"2016-06-10
|
205
|
+
10:50:38","grace_period":10,"id":84725627,"is_archive":false,"is_draft":false,"items":[{"booking_account":null,"cost_price_charge":null,"cost_price_charge_type":"AMOUNT","cost_price_net":null,"cost_price_total":null,"description":"Foo","discount":null,"discount_type":null,"export_cost_1":null,"export_cost_2":null,"id":173315658,"number":"1","position":1,"position_id":null,"quantity":23,"serial_number":null,"serial_number_id":null,"single_price_gross":146.37,"single_price_net":123,"total_price_gross":3366.51,"total_price_net":2829,"total_vat":537.51,"type":"POSITION","unit":null,"vat_percent":19}],"label_address":{"city":null,"company_name":null,"country":null,"first_name":null,"last_name":null,"personal":null,"salutation":"0","street":null,"suffix_1":null,"suffix_2":null,"zip_code":null},"last_postbox_id":null,"number":"C1606-16179","paid_amount":0,"paid_at":null,"pdf_pages":1,"pdf_template":"DE","project_id":null,"ref_id":null,"service_date":{"type":"DEFAULT","date":"2016-06-10","date_from":null,"date_to":null,"text":null},"status":null,"text":"Vielen
|
206
|
+
Dank f\u00fcr Ihren Auftrag!\u003Cbr\u003E\u003Cbr\u003EBitte begleichen Sie
|
207
|
+
den offenen Betrag bis zum %DOKUMENT.DATUM-FAELLIG%.\u003Cbr\u003E\u003Cbr\u003EMit
|
208
|
+
freundlichen Gr\u00fc\u00dfen\u003Cbr\u003E\u003Cbr\u003E%FIRMA.FIRMA%\u003Cbr\u003E","text_prefix":"%KUNDE.ANREDE%,\u003Cbr\u003Enachfolgend
|
209
|
+
berechnen wir Ihnen wie vorab besprochen:\u003Cbr\u003E","title":null,"type":"INVOICE","use_shipping_address":false,"vat_option":null}'
|
210
|
+
http_version:
|
211
|
+
recorded_at: Fri, 10 Jun 2016 08:50:39 GMT
|
212
|
+
recorded_with: VCR 3.0.3
|