easybill-rest-client 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +6 -0
  3. data/Gemfile.lock +152 -0
  4. data/README.md +8 -0
  5. data/Rakefile +4 -0
  6. data/config.json +5 -0
  7. data/easybill-rest-client.gemspec +29 -0
  8. data/lib/easybill-rest-client.rb +15 -0
  9. data/lib/easybill_rest_client/.document_address.rb.swp +0 -0
  10. data/lib/easybill_rest_client/.document_item.rb.swp +0 -0
  11. data/lib/easybill_rest_client/.document_payment.rb.swp +0 -0
  12. data/lib/easybill_rest_client/.document_recurring_options.rb.swp +0 -0
  13. data/lib/easybill_rest_client/.easybill_error.rb.swp +0 -0
  14. data/lib/easybill_rest_client/.log_formatter.rb.swp +0 -0
  15. data/lib/easybill_rest_client/.request_builder.rb.swp +0 -0
  16. data/lib/easybill_rest_client/.too_many_requests_error.rb.swp +0 -0
  17. data/lib/easybill_rest_client/api_client.rb +61 -0
  18. data/lib/easybill_rest_client/client.rb +39 -0
  19. data/lib/easybill_rest_client/customer.rb +70 -0
  20. data/lib/easybill_rest_client/customer_api.rb +15 -0
  21. data/lib/easybill_rest_client/document.rb +53 -0
  22. data/lib/easybill_rest_client/document_address.rb +19 -0
  23. data/lib/easybill_rest_client/document_api.rb +31 -0
  24. data/lib/easybill_rest_client/document_item.rb +34 -0
  25. data/lib/easybill_rest_client/document_payment.rb +15 -0
  26. data/lib/easybill_rest_client/document_payment_api.rb +15 -0
  27. data/lib/easybill_rest_client/document_recurring_options.rb +23 -0
  28. data/lib/easybill_rest_client/document_service_date.rb +12 -0
  29. data/lib/easybill_rest_client/generic_api.rb +39 -0
  30. data/lib/easybill_rest_client/pdf.rb +21 -0
  31. data/lib/easybill_rest_client/post_box.rb +24 -0
  32. data/lib/easybill_rest_client/post_box_api.rb +15 -0
  33. data/lib/easybill_rest_client/request.rb +107 -0
  34. data/lib/easybill_rest_client/request_logger.rb +24 -0
  35. data/lib/easybill_rest_client/response.rb +36 -0
  36. data/lib/easybill_rest_client/retry_on.rb +46 -0
  37. data/lib/easybill_rest_client/version.rb +5 -0
  38. data/log/.gitkeep +0 -0
  39. data/log/test.log +5723 -0
  40. data/script/.generate.swo +0 -0
  41. data/spec/.spec_helper.rb.swp +0 -0
  42. data/spec/fixtures/vcr/EasybillRestClient_CustomerApi/_customers_get/.returns_customers.yml.swo +0 -0
  43. data/spec/fixtures/vcr/EasybillRestClient_CustomerApi/_customers_get/.returns_customers.yml.swp +0 -0
  44. data/spec/fixtures/vcr/EasybillRestClient_CustomerApi/a_list_of_customers/gets_all_customers.yml +84 -0
  45. data/spec/fixtures/vcr/EasybillRestClient_CustomerApi/a_list_of_customers/gets_customers_matching_a_filter.yml +72 -0
  46. data/spec/fixtures/vcr/EasybillRestClient_CustomerApi/creates_updates_and_deletes_customer.yml +377 -0
  47. data/spec/fixtures/vcr/EasybillRestClient_Document/_all/returns_documents.yml +44 -0
  48. data/spec/fixtures/vcr/EasybillRestClient_DocumentApi/_cancel/cancels_a_document.yml +212 -0
  49. data/spec/fixtures/vcr/EasybillRestClient_DocumentApi/_create/creates_a_document.yml +53 -0
  50. data/spec/fixtures/vcr/EasybillRestClient_DocumentApi/_delete/deletes_a_document.yml +174 -0
  51. data/spec/fixtures/vcr/EasybillRestClient_DocumentApi/_find/returns_a_document.yml +57 -0
  52. data/spec/fixtures/vcr/EasybillRestClient_DocumentApi/_find_all/paid_and_unpaid_documents_exist/returns_only_unpaid_documents.yml +795 -0
  53. data/spec/fixtures/vcr/EasybillRestClient_DocumentApi/_find_all/returns_documents.yml +58 -0
  54. data/spec/fixtures/vcr/EasybillRestClient_DocumentApi/_find_all/returns_documents_by_number.yml +58 -0
  55. data/spec/fixtures/vcr/EasybillRestClient_DocumentApi/_finish/marks_a_drafted_document_as_finished.yml +212 -0
  56. data/spec/fixtures/vcr/EasybillRestClient_DocumentApi/_get_pdf/returns_a_PDF.yml +3889 -0
  57. data/spec/fixtures/vcr/EasybillRestClient_DocumentApi/_send_email/passes_on_additional_params.yml +63 -0
  58. data/spec/fixtures/vcr/EasybillRestClient_DocumentApi/_send_email/sends_an_email.yml +63 -0
  59. data/spec/fixtures/vcr/EasybillRestClient_DocumentApi/_update/updates_a_document.yml +107 -0
  60. data/spec/fixtures/vcr/EasybillRestClient_DocumentPaymentApi/_create/creates_a_document_payment.yml +195 -0
  61. data/spec/fixtures/vcr/EasybillRestClient_DocumentPaymentApi/_delete/deletes_a_document_payment.yml +168 -0
  62. data/spec/fixtures/vcr/EasybillRestClient_DocumentPaymentApi/_document_payments_get/returns_a_document_s_payments.yml +460 -0
  63. data/spec/fixtures/vcr/EasybillRestClient_DocumentPaymentApi/_document_payments_post/creates_a_document_payment.yml +47 -0
  64. data/spec/fixtures/vcr/EasybillRestClient_DocumentPaymentApi/_find/returns_a_document_payment.yml +66 -0
  65. data/spec/fixtures/vcr/EasybillRestClient_DocumentPaymentApi/_find_all/returns_document_payments.yml +66 -0
  66. data/spec/fixtures/vcr/EasybillRestClient_PostBoxApi/_delete/deletes_a_post_box.yml +174 -0
  67. data/spec/fixtures/vcr/EasybillRestClient_PostBoxApi/_find/returns_a_post_box.yml +72 -0
  68. data/spec/fixtures/vcr/EasybillRestClient_PostBoxApi/_find_all/returns_post_boxes.yml +73 -0
  69. data/spec/fixtures/vcr/EasybillRestClient_PostBoxApi/_post_boxes_get/returns_post_boxes.yml +52 -0
  70. data/spec/integration/.customer_api_spec.rb.swn +0 -0
  71. data/spec/integration/.customer_api_spec.rb.swo +0 -0
  72. data/spec/integration/customer_api_spec.rb +47 -0
  73. data/spec/integration/easybill_rest_client/document_api_spec.rb +129 -0
  74. data/spec/integration/easybill_rest_client/document_payment_api_spec.rb +55 -0
  75. data/spec/integration/easybill_rest_client/post_box_api_spec.rb +31 -0
  76. data/spec/lib/easybill_rest_client/.api_client_spec.rb.swp +0 -0
  77. data/spec/lib/easybill_rest_client/easybill_rest_api/.generic_api_spec.rb.swp +0 -0
  78. data/spec/lib/easybill_rest_client/generic_api_spec.rb +55 -0
  79. data/spec/lib/easybill_rest_client/pdf_spec.rb +29 -0
  80. data/spec/lib/easybill_rest_client/request_logger_spec.rb +14 -0
  81. data/spec/lib/easybill_rest_client/request_spec.rb +32 -0
  82. data/spec/lib/easybill_rest_client/retry_on_spec.rb +37 -0
  83. data/spec/spec_helper.rb +33 -0
  84. data/spec/support/.setup_api_client.rb.swo +0 -0
  85. data/spec/support/setup_client.rb +12 -0
  86. data/swagger.json +3964 -0
  87. metadata +257 -0
@@ -0,0 +1,63 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.easybill.de/rest/v1/documents/257330466/send/email
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"to":"developers@ad2games.com"}'
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ Host:
17
+ - api.easybill.de
18
+ Authorization:
19
+ - Basic easybill-basic-auth-key
20
+ response:
21
+ status:
22
+ code: 204
23
+ message: No Content
24
+ headers:
25
+ Server:
26
+ - nginx
27
+ Date:
28
+ - Thu, 31 May 2018 15:14:04 GMT
29
+ Content-Type:
30
+ - text/html; charset=UTF-8
31
+ Connection:
32
+ - keep-alive
33
+ Set-Cookie:
34
+ - sid=estfeafnfv7pgd0nro4vlk7jrd; path=/; HttpOnly
35
+ Cache-Control:
36
+ - max-age=0, must-revalidate, no-cache, no-store, private
37
+ Strict-Transport-Security:
38
+ - max-age=31536000
39
+ X-Frame-Options:
40
+ - SAMEORIGIN
41
+ X-Content-Type-Options:
42
+ - nosniff
43
+ X-Xss-Protection:
44
+ - 1; mode=block
45
+ Content-Security-Policy:
46
+ - 'default-src ''self''; connect-src ''self'' *.easybill.de *.paymill.de *.paymill.com;
47
+ script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' *.doubleclick.net *.google.de
48
+ *.google.com *.google.at *.google.ch *.googletagmanager.com *.paymill.de *.paymill.com
49
+ *.google-analytics.com *.googleadservices.com d2wy8f7a9ursnm.cloudfront.net
50
+ connect.facebook.net; img-src ''self'' data: *.googleadservices.com *.vimeocdn.com
51
+ *.doubleclick.net notify.bugsnag.com *.paypalobjects.com online.swagger.io
52
+ *.google-analytics.com *.google.com *.google.de *.google.at *.google.ch www.facebook.com;
53
+ style-src ''self'' ''unsafe-inline'' fonts.googleapis.com; font-src ''self''
54
+ data: themes.googleusercontent.com fonts.gstatic.com; frame-src ''self'' *.googleadservices.com
55
+ ssl.kaptcha.com *.paymill.de *.paymill.com *.mediafinanz.de *.google.de *.google.com
56
+ *.google.at *.google.ch *.doubleclick.net player.vimeo.com *.facebook.com
57
+ *.youtube.com *.youtube.de; object-src ''self'''
58
+ body:
59
+ encoding: UTF-8
60
+ string: ''
61
+ http_version:
62
+ recorded_at: Thu, 31 May 2018 15:14:04 GMT
63
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,63 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.easybill.de/rest/v1/documents/84718807/send/email
6
+ body:
7
+ encoding: UTF-8
8
+ string: "{}"
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.2
12
+ Authorization:
13
+ - Basic easybill-basic-auth-key
14
+ Content-Type:
15
+ - application/x-www-form-urlencoded
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ Accept:
19
+ - "*/*"
20
+ response:
21
+ status:
22
+ code: 204
23
+ message: No Content
24
+ headers:
25
+ Server:
26
+ - nginx
27
+ Date:
28
+ - Fri, 10 Jun 2016 08:37:03 GMT
29
+ Content-Type:
30
+ - text/html; charset=UTF-8
31
+ Connection:
32
+ - keep-alive
33
+ Cache-Control:
34
+ - private, must-revalidate
35
+ Pragma:
36
+ - no-cache
37
+ Expires:
38
+ - "-1"
39
+ Strict-Transport-Security:
40
+ - max-age=31536000
41
+ X-Frame-Options:
42
+ - SAMEORIGIN
43
+ X-Content-Type-Options:
44
+ - nosniff
45
+ X-Xss-Protection:
46
+ - 1; mode=block
47
+ Content-Security-Policy:
48
+ - 'default-src ''self''; connect-src ''self'' *.easybill.de *.paymill.de *.paymill.com;
49
+ script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' *.paymill.de *.paymill.com
50
+ *.google-analytics.com *.googleadservices.com d2wy8f7a9ursnm.cloudfront.net;
51
+ img-src ''self'' data: *.doubleclick.net notify.bugsnag.com *.paypalobjects.com
52
+ online.swagger.io *.google-analytics.com *.google.com *.google.de *.google.at
53
+ *.google.ch; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com; font-src
54
+ ''self'' themes.googleusercontent.com fonts.gstatic.com; frame-src ''self''
55
+ *.googleadservices.com ssl.kaptcha.com *.paymill.de *.paymill.com *.mediafinanz.de
56
+ *.google.de *.google.com *.google.at *.google.ch *.doubleclick.net player.vimeo.com
57
+ *.facebook.com; object-src ''self'''
58
+ body:
59
+ encoding: UTF-8
60
+ string: ''
61
+ http_version:
62
+ recorded_at: Fri, 10 Jun 2016 08:37:03 GMT
63
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,107 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: https://api.easybill.de/rest/v1/documents/79125727
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"id":79125727,"items":[],"number":"Z"}'
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.2
12
+ Authorization:
13
+ - Basic easybill-basic-auth-key
14
+ Content-Type:
15
+ - application/x-www-form-urlencoded
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ Accept:
19
+ - "*/*"
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Server:
26
+ - nginx/1.10.0
27
+ Date:
28
+ - Fri, 06 May 2016 15:42:34 GMT
29
+ Content-Type:
30
+ - application/json
31
+ Transfer-Encoding:
32
+ - chunked
33
+ Connection:
34
+ - keep-alive
35
+ Vary:
36
+ - Accept-Encoding
37
+ - Accept-Encoding
38
+ Cache-Control:
39
+ - private, must-revalidate
40
+ Pragma:
41
+ - no-cache
42
+ Expires:
43
+ - "-1"
44
+ Strict-Transport-Security:
45
+ - max-age=31536000
46
+ body:
47
+ encoding: ASCII-8BIT
48
+ string: '{"address":{},"amount":0,"amount_net":0,"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
+ 17:33:34","currency":"EUR","customer_id":null,"discount":null,"discount_type":null,"document_date":"2016-05-06","due_date":null,"edited_at":"2016-05-06
50
+ 17:42:34","grace_period":10,"id":79125727,"is_archive":false,"is_draft":true,"items":[],"label_address":{},"last_postbox_id":null,"number":"Z","paid_amount":0,"paid_at":null,"pdf_pages":1,"pdf_template":null,"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
51
+ Dank f\u00fcr Ihren Auftrag!\n\nBitte begleichen Sie den offenen Betrag bis
52
+ zum %DOKUMENT.DATUM-FAELLIG%.\n\nMit freundlichen Gr\u00fc\u00dfen\n\n%FIRMA.FIRMA%","text_prefix":"%KUNDE.ANREDE%,\nnachfolgend
53
+ berechnen wir Ihnen wie vorab besprochen:\n","title":null,"type":"INVOICE","use_shipping_address":false,"vat_option":null}'
54
+ http_version:
55
+ recorded_at: Fri, 06 May 2016 15:42:34 GMT
56
+ - request:
57
+ method: get
58
+ uri: https://api.easybill.de/rest/v1/documents/79125727
59
+ body:
60
+ encoding: US-ASCII
61
+ string: ''
62
+ headers:
63
+ User-Agent:
64
+ - Faraday v0.9.2
65
+ Authorization:
66
+ - Basic easybill-basic-auth-key
67
+ Accept-Encoding:
68
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
69
+ Accept:
70
+ - "*/*"
71
+ response:
72
+ status:
73
+ code: 200
74
+ message: OK
75
+ headers:
76
+ Server:
77
+ - nginx/1.10.0
78
+ Date:
79
+ - Fri, 06 May 2016 15:42:34 GMT
80
+ Content-Type:
81
+ - application/json
82
+ Transfer-Encoding:
83
+ - chunked
84
+ Connection:
85
+ - keep-alive
86
+ Vary:
87
+ - Accept-Encoding
88
+ - Accept-Encoding
89
+ Cache-Control:
90
+ - private, must-revalidate
91
+ Pragma:
92
+ - no-cache
93
+ Expires:
94
+ - "-1"
95
+ Strict-Transport-Security:
96
+ - max-age=31536000
97
+ body:
98
+ encoding: ASCII-8BIT
99
+ string: '{"address":{},"amount":0,"amount_net":0,"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
100
+ 17:33:34","currency":"EUR","customer_id":null,"discount":null,"discount_type":null,"document_date":"2016-05-06","due_date":null,"edited_at":"2016-05-06
101
+ 17:42:34","grace_period":10,"id":79125727,"is_archive":false,"is_draft":true,"items":[],"label_address":{},"last_postbox_id":null,"number":"Z","paid_amount":0,"paid_at":null,"pdf_pages":1,"pdf_template":null,"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
102
+ Dank f\u00fcr Ihren Auftrag!\n\nBitte begleichen Sie den offenen Betrag bis
103
+ zum %DOKUMENT.DATUM-FAELLIG%.\n\nMit freundlichen Gr\u00fc\u00dfen\n\n%FIRMA.FIRMA%","text_prefix":"%KUNDE.ANREDE%,\nnachfolgend
104
+ berechnen wir Ihnen wie vorab besprochen:\n","title":null,"type":"INVOICE","use_shipping_address":false,"vat_option":null}'
105
+ http_version:
106
+ recorded_at: Fri, 06 May 2016 15:42:34 GMT
107
+ recorded_with: VCR 3.0.1
@@ -0,0 +1,195 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.easybill.de/rest/v1/document-payments?document_id=84730384&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
25
+ Date:
26
+ - Fri, 10 Jun 2016 14:17:29 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: '{"page":1,"pages":1,"limit":1000,"total":1,"items":[{"amount":3367,"document_id":84730384,"id":74713912,"notice":"Unicorns
64
+ and rainbows!","payment_at":"1970-01-01","type":"\u00dcberweisung"}]}'
65
+ http_version:
66
+ recorded_at: Fri, 10 Jun 2016 14:17:29 GMT
67
+ - request:
68
+ method: post
69
+ uri: https://api.easybill.de/rest/v1/document-payments
70
+ body:
71
+ encoding: UTF-8
72
+ string: '{"amount":3367,"document_id":84730384,"notice":"Unicorns and rainbows!","type":"Überweisung"}'
73
+ headers:
74
+ User-Agent:
75
+ - Faraday v0.9.2
76
+ Authorization:
77
+ - Basic easybill-basic-auth-key
78
+ Content-Type:
79
+ - application/x-www-form-urlencoded
80
+ Accept-Encoding:
81
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
82
+ Accept:
83
+ - "*/*"
84
+ response:
85
+ status:
86
+ code: 201
87
+ message: Created
88
+ headers:
89
+ Server:
90
+ - nginx
91
+ Date:
92
+ - Fri, 10 Jun 2016 14:17:29 GMT
93
+ Content-Type:
94
+ - application/json
95
+ Transfer-Encoding:
96
+ - chunked
97
+ Connection:
98
+ - keep-alive
99
+ Cache-Control:
100
+ - private, must-revalidate
101
+ Pragma:
102
+ - no-cache
103
+ Expires:
104
+ - "-1"
105
+ Strict-Transport-Security:
106
+ - max-age=31536000
107
+ X-Frame-Options:
108
+ - SAMEORIGIN
109
+ X-Content-Type-Options:
110
+ - nosniff
111
+ X-Xss-Protection:
112
+ - 1; mode=block
113
+ Content-Security-Policy:
114
+ - 'default-src ''self''; connect-src ''self'' *.easybill.de *.paymill.de *.paymill.com;
115
+ script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' *.paymill.de *.paymill.com
116
+ *.google-analytics.com *.googleadservices.com d2wy8f7a9ursnm.cloudfront.net;
117
+ img-src ''self'' data: *.doubleclick.net notify.bugsnag.com *.paypalobjects.com
118
+ online.swagger.io *.google-analytics.com *.google.com *.google.de *.google.at
119
+ *.google.ch; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com; font-src
120
+ ''self'' themes.googleusercontent.com fonts.gstatic.com; frame-src ''self''
121
+ *.googleadservices.com ssl.kaptcha.com *.paymill.de *.paymill.com *.mediafinanz.de
122
+ *.google.de *.google.com *.google.at *.google.ch *.doubleclick.net player.vimeo.com
123
+ *.facebook.com; object-src ''self'''
124
+ body:
125
+ encoding: UTF-8
126
+ string: '{"amount":3367,"document_id":84730384,"id":74713913,"notice":"Unicorns
127
+ and rainbows!","payment_at":"1970-01-01","type":"\u00dcberweisung"}'
128
+ http_version:
129
+ recorded_at: Fri, 10 Jun 2016 14:17:29 GMT
130
+ - request:
131
+ method: get
132
+ uri: https://api.easybill.de/rest/v1/document-payments?document_id=84730384&limit=1000&page=1
133
+ body:
134
+ encoding: US-ASCII
135
+ string: ''
136
+ headers:
137
+ User-Agent:
138
+ - Faraday v0.9.2
139
+ Authorization:
140
+ - Basic easybill-basic-auth-key
141
+ Accept-Encoding:
142
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
143
+ Accept:
144
+ - "*/*"
145
+ response:
146
+ status:
147
+ code: 200
148
+ message: OK
149
+ headers:
150
+ Server:
151
+ - nginx
152
+ Date:
153
+ - Fri, 10 Jun 2016 14:17:30 GMT
154
+ Content-Type:
155
+ - application/json
156
+ Transfer-Encoding:
157
+ - chunked
158
+ Connection:
159
+ - keep-alive
160
+ Vary:
161
+ - Accept-Encoding
162
+ - Accept-Encoding
163
+ Cache-Control:
164
+ - private, must-revalidate
165
+ Pragma:
166
+ - no-cache
167
+ Expires:
168
+ - "-1"
169
+ Strict-Transport-Security:
170
+ - max-age=31536000
171
+ X-Frame-Options:
172
+ - SAMEORIGIN
173
+ X-Content-Type-Options:
174
+ - nosniff
175
+ X-Xss-Protection:
176
+ - 1; mode=block
177
+ Content-Security-Policy:
178
+ - 'default-src ''self''; connect-src ''self'' *.easybill.de *.paymill.de *.paymill.com;
179
+ script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' *.paymill.de *.paymill.com
180
+ *.google-analytics.com *.googleadservices.com d2wy8f7a9ursnm.cloudfront.net;
181
+ img-src ''self'' data: *.doubleclick.net notify.bugsnag.com *.paypalobjects.com
182
+ online.swagger.io *.google-analytics.com *.google.com *.google.de *.google.at
183
+ *.google.ch; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com; font-src
184
+ ''self'' themes.googleusercontent.com fonts.gstatic.com; frame-src ''self''
185
+ *.googleadservices.com ssl.kaptcha.com *.paymill.de *.paymill.com *.mediafinanz.de
186
+ *.google.de *.google.com *.google.at *.google.ch *.doubleclick.net player.vimeo.com
187
+ *.facebook.com; object-src ''self'''
188
+ body:
189
+ encoding: ASCII-8BIT
190
+ string: '{"page":1,"pages":1,"limit":1000,"total":2,"items":[{"amount":3367,"document_id":84730384,"id":74713912,"notice":"Unicorns
191
+ and rainbows!","payment_at":"1970-01-01","type":"\u00dcberweisung"},{"amount":3367,"document_id":84730384,"id":74713913,"notice":"Unicorns
192
+ and rainbows!","payment_at":"1970-01-01","type":"\u00dcberweisung"}]}'
193
+ http_version:
194
+ recorded_at: Fri, 10 Jun 2016 14:17:30 GMT
195
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,168 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.easybill.de/rest/v1/document-payments/74692458
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 12:12:55 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: '{"amount":3367,"document_id":84730384,"id":74692458,"notice":"Blah!","payment_at":"2016-06-10","type":"\u00dcberweisung"}'
64
+ http_version:
65
+ recorded_at: Fri, 10 Jun 2016 12:12:55 GMT
66
+ - request:
67
+ method: delete
68
+ uri: https://api.easybill.de/rest/v1/document-payments/74692458
69
+ body:
70
+ encoding: US-ASCII
71
+ string: ''
72
+ headers:
73
+ User-Agent:
74
+ - Faraday v0.9.2
75
+ Authorization:
76
+ - Basic easybill-basic-auth-key
77
+ Accept-Encoding:
78
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
79
+ Accept:
80
+ - "*/*"
81
+ response:
82
+ status:
83
+ code: 204
84
+ message: No Content
85
+ headers:
86
+ Server:
87
+ - nginx
88
+ Date:
89
+ - Fri, 10 Jun 2016 12:12:56 GMT
90
+ Content-Type:
91
+ - text/html; charset=UTF-8
92
+ Connection:
93
+ - keep-alive
94
+ Cache-Control:
95
+ - private, must-revalidate
96
+ Pragma:
97
+ - no-cache
98
+ Expires:
99
+ - "-1"
100
+ Strict-Transport-Security:
101
+ - max-age=31536000
102
+ X-Frame-Options:
103
+ - SAMEORIGIN
104
+ X-Content-Type-Options:
105
+ - nosniff
106
+ X-Xss-Protection:
107
+ - 1; mode=block
108
+ Content-Security-Policy:
109
+ - 'default-src ''self''; connect-src ''self'' *.easybill.de *.paymill.de *.paymill.com;
110
+ script-src ''self'' ''unsafe-inline'' ''unsafe-eval'' *.paymill.de *.paymill.com
111
+ *.google-analytics.com *.googleadservices.com d2wy8f7a9ursnm.cloudfront.net;
112
+ img-src ''self'' data: *.doubleclick.net notify.bugsnag.com *.paypalobjects.com
113
+ online.swagger.io *.google-analytics.com *.google.com *.google.de *.google.at
114
+ *.google.ch; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com; font-src
115
+ ''self'' themes.googleusercontent.com fonts.gstatic.com; frame-src ''self''
116
+ *.googleadservices.com ssl.kaptcha.com *.paymill.de *.paymill.com *.mediafinanz.de
117
+ *.google.de *.google.com *.google.at *.google.ch *.doubleclick.net player.vimeo.com
118
+ *.facebook.com; object-src ''self'''
119
+ body:
120
+ encoding: UTF-8
121
+ string: ''
122
+ http_version:
123
+ recorded_at: Fri, 10 Jun 2016 12:12:56 GMT
124
+ - request:
125
+ method: get
126
+ uri: https://api.easybill.de/rest/v1/document-payments/74692458
127
+ body:
128
+ encoding: US-ASCII
129
+ string: ''
130
+ headers:
131
+ User-Agent:
132
+ - Faraday v0.9.2
133
+ Authorization:
134
+ - Basic easybill-basic-auth-key
135
+ Accept-Encoding:
136
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
137
+ Accept:
138
+ - "*/*"
139
+ response:
140
+ status:
141
+ code: 404
142
+ message: Not Found
143
+ headers:
144
+ Server:
145
+ - nginx
146
+ Date:
147
+ - Fri, 10 Jun 2016 12:12:56 GMT
148
+ Content-Type:
149
+ - application/json
150
+ Transfer-Encoding:
151
+ - chunked
152
+ Connection:
153
+ - keep-alive
154
+ Vary:
155
+ - Accept-Encoding
156
+ - Accept-Encoding
157
+ Cache-Control:
158
+ - private, must-revalidate
159
+ Pragma:
160
+ - no-cache
161
+ Expires:
162
+ - "-1"
163
+ body:
164
+ encoding: ASCII-8BIT
165
+ string: '{"code":404,"message":"DocumentPayment#74692458 not found."}'
166
+ http_version:
167
+ recorded_at: Fri, 10 Jun 2016 12:12:56 GMT
168
+ recorded_with: VCR 3.0.3