fortnox-api 0.7.2 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.codeclimate.yml +1 -0
- data/.env.template +7 -0
- data/.env.test +11 -3
- data/.gitignore +7 -1
- data/.rubocop.yml +18 -2
- data/.tool-versions +1 -0
- data/.travis.yml +15 -19
- data/CHANGELOG.md +66 -1
- data/CONTRIBUTE.md +21 -9
- data/DEVELOPER_README.md +72 -0
- data/Guardfile +13 -4
- data/README.md +226 -61
- data/Rakefile +133 -0
- data/bin/get_tokens +79 -0
- data/bin/renew_tokens +28 -0
- data/fortnox-api.gemspec +31 -25
- data/lib/fortnox/api/mappers/article.rb +1 -1
- data/lib/fortnox/api/mappers/base/from_json.rb +7 -6
- data/lib/fortnox/api/mappers/base/to_json.rb +4 -5
- data/lib/fortnox/api/mappers/base.rb +3 -3
- data/lib/fortnox/api/mappers/customer.rb +1 -1
- data/lib/fortnox/api/mappers/default_delivery_types.rb +1 -1
- data/lib/fortnox/api/mappers/default_templates.rb +1 -1
- data/lib/fortnox/api/mappers/edi_information.rb +1 -1
- data/lib/fortnox/api/mappers/email_information.rb +1 -1
- data/lib/fortnox/api/mappers/invoice.rb +4 -4
- data/lib/fortnox/api/mappers/invoice_row.rb +1 -1
- data/lib/fortnox/api/mappers/order.rb +4 -4
- data/lib/fortnox/api/mappers/order_row.rb +1 -1
- data/lib/fortnox/api/mappers/project.rb +1 -1
- data/lib/fortnox/api/mappers/terms_of_payment.rb +1 -1
- data/lib/fortnox/api/mappers/unit.rb +1 -1
- data/lib/fortnox/api/mappers/value/country_string.rb +1 -1
- data/lib/fortnox/api/mappers.rb +18 -18
- data/lib/fortnox/api/models/article.rb +2 -2
- data/lib/fortnox/api/models/base.rb +23 -21
- data/lib/fortnox/api/models/customer.rb +57 -57
- data/lib/fortnox/api/models/document.rb +5 -2
- data/lib/fortnox/api/models/invoice.rb +2 -2
- data/lib/fortnox/api/models/label.rb +3 -3
- data/lib/fortnox/api/models/order.rb +2 -2
- data/lib/fortnox/api/models/project.rb +2 -2
- data/lib/fortnox/api/models/terms_of_payment.rb +2 -2
- data/lib/fortnox/api/models/unit.rb +2 -2
- data/lib/fortnox/api/models.rb +7 -7
- data/lib/fortnox/api/repositories/article.rb +3 -3
- data/lib/fortnox/api/repositories/authentication.rb +61 -0
- data/lib/fortnox/api/repositories/base/savers.rb +3 -1
- data/lib/fortnox/api/repositories/base.rb +25 -38
- data/lib/fortnox/api/repositories/customer.rb +3 -3
- data/lib/fortnox/api/repositories/invoice.rb +3 -3
- data/lib/fortnox/api/repositories/order.rb +3 -3
- data/lib/fortnox/api/repositories/project.rb +3 -3
- data/lib/fortnox/api/repositories/terms_of_payment.rb +3 -3
- data/lib/fortnox/api/repositories/unit.rb +3 -3
- data/lib/fortnox/api/repositories.rb +8 -7
- data/lib/fortnox/api/request_handling.rb +30 -18
- data/lib/fortnox/api/types/default_delivery_types.rb +0 -2
- data/lib/fortnox/api/types/default_templates.rb +0 -2
- data/lib/fortnox/api/types/document_row.rb +3 -3
- data/lib/fortnox/api/types/edi_information.rb +0 -2
- data/lib/fortnox/api/types/email_information.rb +0 -2
- data/lib/fortnox/api/types/enums.rb +54 -10
- data/lib/fortnox/api/types/invoice_row.rb +1 -1
- data/lib/fortnox/api/types/model.rb +5 -9
- data/lib/fortnox/api/types/nullable.rb +13 -9
- data/lib/fortnox/api/types/order_row.rb +1 -1
- data/lib/fortnox/api/types/required.rb +3 -3
- data/lib/fortnox/api/types/sized.rb +4 -4
- data/lib/fortnox/api/types.rb +37 -24
- data/lib/fortnox/api/version.rb +1 -1
- data/lib/fortnox/api.rb +21 -39
- data/spec/fortnox/api/mappers/base/canonical_name_sym_spec.rb +13 -11
- data/spec/fortnox/api/mappers/base/from_json_spec.rb +10 -12
- data/spec/fortnox/api/mappers/base/to_json_spec.rb +48 -57
- data/spec/fortnox/api/mappers/base_spec.rb +4 -7
- data/spec/fortnox/api/mappers/contexts/json_conversion.rb +38 -33
- data/spec/fortnox/api/mappers/default_delivery_types_spec.rb +1 -1
- data/spec/fortnox/api/mappers/examples/mapper.rb +1 -1
- data/spec/fortnox/api/mappers/unit_spec.rb +3 -4
- data/spec/fortnox/api/models/base_spec.rb +33 -22
- data/spec/fortnox/api/models/unit_spec.rb +5 -3
- data/spec/fortnox/api/repositories/article_spec.rb +14 -9
- data/spec/fortnox/api/repositories/authentication_spec.rb +103 -0
- data/spec/fortnox/api/repositories/base_spec.rb +105 -326
- data/spec/fortnox/api/repositories/customer_spec.rb +37 -7
- data/spec/fortnox/api/repositories/examples/all.rb +0 -1
- data/spec/fortnox/api/repositories/examples/find.rb +5 -8
- data/spec/fortnox/api/repositories/examples/only.rb +4 -13
- data/spec/fortnox/api/repositories/examples/save.rb +32 -18
- data/spec/fortnox/api/repositories/examples/save_with_nested_model.rb +0 -5
- data/spec/fortnox/api/repositories/examples/save_with_specially_named_attribute.rb +1 -4
- data/spec/fortnox/api/repositories/examples/search.rb +4 -7
- data/spec/fortnox/api/repositories/invoice_spec.rb +72 -29
- data/spec/fortnox/api/repositories/order_spec.rb +11 -9
- data/spec/fortnox/api/repositories/project_spec.rb +7 -6
- data/spec/fortnox/api/repositories/terms_of_payment_spec.rb +9 -7
- data/spec/fortnox/api/repositories/unit_spec.rb +13 -11
- data/spec/fortnox/api/types/country_spec.rb +1 -1
- data/spec/fortnox/api/types/email_spec.rb +2 -2
- data/spec/fortnox/api/types/enums_spec.rb +1 -0
- data/spec/fortnox/api/types/examples/document_row.rb +3 -3
- data/spec/fortnox/api/types/examples/enum.rb +4 -4
- data/spec/fortnox/api/types/examples/types.rb +1 -3
- data/spec/fortnox/api/types/housework_types_spec.rb +124 -43
- data/spec/fortnox/api/types/model_spec.rb +13 -23
- data/spec/fortnox/api/types/nullable_spec.rb +30 -10
- data/spec/fortnox/api/types/order_row_spec.rb +2 -2
- data/spec/fortnox/api/types/required_spec.rb +7 -15
- data/spec/fortnox/api/types/sales_account_spec.rb +57 -0
- data/spec/fortnox/api_spec.rb +19 -124
- data/spec/spec_helper.rb +0 -14
- data/spec/support/helpers/configuration_helper.rb +30 -3
- data/spec/support/helpers.rb +1 -1
- data/spec/support/matchers/type/attribute_matcher.rb +2 -2
- data/spec/support/matchers/type/enum_matcher.rb +1 -1
- data/spec/support/matchers/type/have_account_number_matcher.rb +1 -1
- data/spec/support/matchers/type/have_email_matcher.rb +1 -1
- data/spec/support/matchers/type/have_nullable_date_matcher.rb +7 -5
- data/spec/support/matchers/type/have_nullable_matcher.rb +1 -1
- data/spec/support/matchers/type/have_nullable_string_matcher.rb +5 -5
- data/spec/support/matchers/type/require_attribute_matcher.rb +5 -5
- data/spec/support/matchers/type/type_matcher.rb +1 -1
- data/spec/support/vcr_setup.rb +16 -0
- data/spec/vcr_cassettes/articles/all.yml +41 -42
- data/spec/vcr_cassettes/articles/find_by_hash_failure.yml +36 -19
- data/spec/vcr_cassettes/articles/find_failure.yml +36 -19
- data/spec/vcr_cassettes/articles/find_id_1.yml +38 -20
- data/spec/vcr_cassettes/articles/find_new.yml +39 -22
- data/spec/vcr_cassettes/articles/multi_param_find_by_hash.yml +38 -21
- data/spec/vcr_cassettes/articles/save_new.yml +37 -19
- data/spec/vcr_cassettes/articles/save_old.yml +39 -22
- data/spec/vcr_cassettes/articles/save_with_specially_named_attribute.yml +37 -19
- data/spec/vcr_cassettes/articles/search_by_name.yml +41 -21
- data/spec/vcr_cassettes/articles/search_miss.yml +36 -19
- data/spec/vcr_cassettes/articles/search_with_special_char.yml +36 -19
- data/spec/vcr_cassettes/articles/single_param_find_by_hash.yml +38 -32
- data/spec/vcr_cassettes/authentication/expired_token.yml +54 -0
- data/spec/vcr_cassettes/authentication/invalid_authorization.yml +57 -0
- data/spec/vcr_cassettes/authentication/invalid_refresh_token.yml +58 -0
- data/spec/vcr_cassettes/authentication/valid_request.yml +63 -0
- data/spec/vcr_cassettes/customers/all.yml +44 -132
- data/spec/vcr_cassettes/customers/find_by_hash_failure.yml +36 -19
- data/spec/vcr_cassettes/customers/find_failure.yml +36 -19
- data/spec/vcr_cassettes/customers/find_id_1.yml +39 -21
- data/spec/vcr_cassettes/customers/find_new.yml +38 -21
- data/spec/vcr_cassettes/customers/find_with_sales_account.yml +63 -0
- data/spec/vcr_cassettes/customers/multi_param_find_by_hash.yml +38 -21
- data/spec/vcr_cassettes/customers/save_new.yml +36 -18
- data/spec/vcr_cassettes/customers/save_new_with_country_code_SE.yml +32 -24
- data/spec/vcr_cassettes/customers/save_new_with_sales_account.yml +63 -0
- data/spec/vcr_cassettes/customers/save_old.yml +38 -21
- data/spec/vcr_cassettes/customers/save_with_specially_named_attribute.yml +36 -18
- data/spec/vcr_cassettes/customers/search_by_name.yml +38 -48
- data/spec/vcr_cassettes/customers/search_miss.yml +36 -19
- data/spec/vcr_cassettes/customers/search_with_special_char.yml +36 -19
- data/spec/vcr_cassettes/customers/single_param_find_by_hash.yml +39 -22
- data/spec/vcr_cassettes/invoices/all.yml +71 -114
- data/spec/vcr_cassettes/invoices/filter_hit.yml +39 -24
- data/spec/vcr_cassettes/invoices/filter_invalid.yml +35 -17
- data/spec/vcr_cassettes/invoices/find_by_hash_failure.yml +36 -19
- data/spec/vcr_cassettes/invoices/find_failure.yml +36 -19
- data/spec/vcr_cassettes/invoices/find_id_1.yml +40 -22
- data/spec/vcr_cassettes/invoices/find_new.yml +41 -24
- data/spec/vcr_cassettes/invoices/multi_param_find_by_hash.yml +38 -21
- data/spec/vcr_cassettes/invoices/row_description_limit.yml +65 -0
- data/spec/vcr_cassettes/invoices/save_new.yml +39 -21
- data/spec/vcr_cassettes/invoices/save_new_with_comments.yml +39 -21
- data/spec/vcr_cassettes/invoices/save_new_with_country.yml +35 -26
- data/spec/vcr_cassettes/invoices/save_new_with_country_GB.yml +36 -27
- data/spec/vcr_cassettes/invoices/save_new_with_country_Norge.yml +35 -26
- data/spec/vcr_cassettes/invoices/save_new_with_country_Norway.yml +35 -26
- data/spec/vcr_cassettes/invoices/save_new_with_country_Sverige.yml +35 -26
- data/spec/vcr_cassettes/invoices/save_new_with_country_VA.yml +36 -27
- data/spec/vcr_cassettes/invoices/save_new_with_country_VI.yml +36 -27
- data/spec/vcr_cassettes/invoices/save_new_with_country_empty_string.yml +35 -26
- data/spec/vcr_cassettes/invoices/save_new_with_country_nil.yml +35 -26
- data/spec/vcr_cassettes/invoices/save_new_with_unsaved_parent.yml +65 -0
- data/spec/vcr_cassettes/invoices/save_old.yml +41 -24
- data/spec/vcr_cassettes/invoices/save_old_with_empty_comments.yml +41 -24
- data/spec/vcr_cassettes/invoices/save_old_with_empty_country.yml +37 -29
- data/spec/vcr_cassettes/invoices/save_old_with_nil_comments.yml +41 -24
- data/spec/vcr_cassettes/invoices/save_old_with_nil_country.yml +37 -29
- data/spec/vcr_cassettes/invoices/save_with_nested_model.yml +40 -21
- data/spec/vcr_cassettes/invoices/save_with_specially_named_attribute.yml +39 -20
- data/spec/vcr_cassettes/invoices/search_by_name.yml +38 -27
- data/spec/vcr_cassettes/invoices/search_miss.yml +36 -19
- data/spec/vcr_cassettes/invoices/search_with_special_char.yml +36 -19
- data/spec/vcr_cassettes/invoices/single_param_find_by_hash.yml +39 -22
- data/spec/vcr_cassettes/orders/all.yml +44 -119
- data/spec/vcr_cassettes/orders/filter_hit.yml +39 -26
- data/spec/vcr_cassettes/orders/filter_invalid.yml +35 -17
- data/spec/vcr_cassettes/orders/find_by_hash_failure.yml +36 -19
- data/spec/vcr_cassettes/orders/find_failure.yml +36 -19
- data/spec/vcr_cassettes/orders/find_id_1.yml +42 -23
- data/spec/vcr_cassettes/orders/find_new.yml +41 -24
- data/spec/vcr_cassettes/orders/housework_invalid_tax_reduction_type.yml +61 -0
- data/spec/vcr_cassettes/orders/housework_othercoses_invalid.yml +61 -0
- data/spec/vcr_cassettes/orders/housework_type_babysitting.yml +40 -21
- data/spec/vcr_cassettes/orders/housework_type_cleaning.yml +40 -21
- data/spec/vcr_cassettes/orders/housework_type_construction.yml +40 -21
- data/spec/vcr_cassettes/orders/housework_type_cooking.yml +36 -18
- data/spec/vcr_cassettes/orders/housework_type_electricity.yml +40 -21
- data/spec/vcr_cassettes/orders/housework_type_gardening.yml +40 -21
- data/spec/vcr_cassettes/orders/housework_type_glassmetalwork.yml +40 -21
- data/spec/vcr_cassettes/orders/housework_type_grounddrainagework.yml +40 -21
- data/spec/vcr_cassettes/orders/housework_type_hvac.yml +40 -21
- data/spec/vcr_cassettes/orders/housework_type_itservices.yml +65 -0
- data/spec/vcr_cassettes/orders/housework_type_majorappliancerepair.yml +65 -0
- data/spec/vcr_cassettes/orders/housework_type_masonry.yml +40 -21
- data/spec/vcr_cassettes/orders/housework_type_movingservices.yml +65 -0
- data/spec/vcr_cassettes/orders/housework_type_othercare.yml +40 -21
- data/spec/vcr_cassettes/orders/housework_type_othercosts.yml +40 -21
- data/spec/vcr_cassettes/orders/housework_type_paintingwallpapering.yml +40 -21
- data/spec/vcr_cassettes/orders/housework_type_snowplowing.yml +40 -21
- data/spec/vcr_cassettes/orders/housework_type_textileclothing.yml +40 -21
- data/spec/vcr_cassettes/orders/housework_type_tutoring.yml +36 -18
- data/spec/vcr_cassettes/orders/multi_param_find_by_hash.yml +38 -21
- data/spec/vcr_cassettes/orders/save_new.yml +40 -22
- data/spec/vcr_cassettes/orders/save_old.yml +41 -24
- data/spec/vcr_cassettes/orders/save_with_nested_model.yml +40 -21
- data/spec/vcr_cassettes/orders/search_by_name.yml +38 -23
- data/spec/vcr_cassettes/orders/search_miss.yml +36 -19
- data/spec/vcr_cassettes/orders/search_with_special_char.yml +36 -19
- data/spec/vcr_cassettes/orders/single_param_find_by_hash.yml +39 -22
- data/spec/vcr_cassettes/projects/all.yml +39 -37
- data/spec/vcr_cassettes/projects/find_by_hash_failure.yml +36 -19
- data/spec/vcr_cassettes/projects/find_failure.yml +36 -19
- data/spec/vcr_cassettes/projects/find_id_1.yml +38 -21
- data/spec/vcr_cassettes/projects/find_new.yml +39 -22
- data/spec/vcr_cassettes/projects/multi_param_find_by_hash.yml +40 -22
- data/spec/vcr_cassettes/projects/save_new.yml +37 -19
- data/spec/vcr_cassettes/projects/save_old.yml +39 -22
- data/spec/vcr_cassettes/projects/single_param_find_by_hash.yml +38 -21
- data/spec/vcr_cassettes/termsofpayments/all.yml +43 -29
- data/spec/vcr_cassettes/termsofpayments/find_failure.yml +36 -19
- data/spec/vcr_cassettes/termsofpayments/find_id_1.yml +38 -22
- data/spec/vcr_cassettes/termsofpayments/find_new.yml +38 -21
- data/spec/vcr_cassettes/termsofpayments/save_new.yml +37 -19
- data/spec/vcr_cassettes/termsofpayments/save_old.yml +38 -21
- data/spec/vcr_cassettes/units/all.yml +38 -26
- data/spec/vcr_cassettes/units/find_failure.yml +36 -19
- data/spec/vcr_cassettes/units/find_id_1.yml +38 -21
- data/spec/vcr_cassettes/units/find_new.yml +38 -21
- data/spec/vcr_cassettes/units/save_new.yml +37 -19
- data/spec/vcr_cassettes/units/save_old.yml +38 -21
- data/spec/vcr_cassettes/units/save_with_specially_named_attribute.yml +37 -19
- metadata +133 -252
- data/lib/fortnox/api/circular_queue.rb +0 -39
- data/spec/fortnox/api/circular_queue_spec.rb +0 -52
- data/spec/support/helpers/dummy_class_helper.rb +0 -38
- data/spec/support/helpers/when_performing_helper.rb +0 -7
- data/spec/vcr_cassettes/invoices/save_new_with_country_KR.yml +0 -57
- data/temp.txt +0 -1
@@ -11,35 +11,52 @@ http_interactions:
|
|
11
11
|
- application/json
|
12
12
|
Accept:
|
13
13
|
- application/json
|
14
|
-
|
15
|
-
-
|
16
|
-
|
17
|
-
-
|
14
|
+
Authorization:
|
15
|
+
- "<AUTHORIZATION>"
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
User-Agent:
|
19
|
+
- Ruby
|
18
20
|
response:
|
19
21
|
status:
|
20
22
|
code: 200
|
21
23
|
message: OK
|
22
24
|
headers:
|
23
|
-
|
24
|
-
-
|
25
|
-
Date:
|
26
|
-
- Wed, 29 May 2019 07:52:39 GMT
|
25
|
+
Content-Length:
|
26
|
+
- '89'
|
27
27
|
Content-Type:
|
28
28
|
- application/json
|
29
|
-
|
30
|
-
-
|
29
|
+
Date:
|
30
|
+
- Mon, 30 Jan 2023 10:36:43 GMT
|
31
31
|
Vary:
|
32
32
|
- Accept-Encoding
|
33
|
-
-
|
33
|
+
X-Build:
|
34
|
+
- 16d854443d
|
35
|
+
X-Frame-Options:
|
36
|
+
- sameorigin
|
34
37
|
X-Rack-Responsetime:
|
35
|
-
- '
|
38
|
+
- '71'
|
36
39
|
X-Uid:
|
37
|
-
-
|
38
|
-
|
39
|
-
-
|
40
|
+
- 1670cf54
|
41
|
+
Server:
|
42
|
+
- Fortnox
|
43
|
+
X-Content-Type-Options:
|
44
|
+
- nosniff
|
45
|
+
X-Xss-Protection:
|
46
|
+
- '0'
|
47
|
+
Referrer-Policy:
|
48
|
+
- strict-origin-when-cross-origin
|
49
|
+
Content-Security-Policy:
|
50
|
+
- 'upgrade-insecure-requests;frame-ancestors https://*.fortnox.se;report-uri
|
51
|
+
/api/cspreport;connect-src ''self'' https://a.storyblok.com wss://*.fortnox.se
|
52
|
+
*.fortnox.se *.findity.com mybusiness.pwc.se themes.googleusercontent.com
|
53
|
+
s3.amazonaws.com/helpjuice-static/ *.helpjuice.com *.vimeo.com fonts.googleapis.com
|
54
|
+
fonts.gstatic.com api.cling.se wss://api.cling.se ''unsafe-inline'' ''unsafe-eval''
|
55
|
+
blob: data:'
|
56
|
+
Strict-Transport-Security:
|
57
|
+
- max-age=31536000; includeSubdomains
|
40
58
|
body:
|
41
|
-
encoding:
|
59
|
+
encoding: ASCII-8BIT
|
42
60
|
string: '{"MetaInformation":{"@TotalResources":0,"@TotalPages":0,"@CurrentPage":1},"Customers":[]}'
|
43
|
-
|
44
|
-
|
45
|
-
recorded_with: VCR 4.0.0
|
61
|
+
recorded_at: Mon, 30 Jan 2023 10:36:43 GMT
|
62
|
+
recorded_with: VCR 6.1.0
|
@@ -11,35 +11,52 @@ http_interactions:
|
|
11
11
|
- application/json
|
12
12
|
Accept:
|
13
13
|
- application/json
|
14
|
-
|
15
|
-
-
|
16
|
-
|
17
|
-
-
|
14
|
+
Authorization:
|
15
|
+
- "<AUTHORIZATION>"
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
User-Agent:
|
19
|
+
- Ruby
|
18
20
|
response:
|
19
21
|
status:
|
20
22
|
code: 404
|
21
23
|
message: Not Found
|
22
24
|
headers:
|
23
|
-
|
24
|
-
-
|
25
|
-
Date:
|
26
|
-
- Wed, 29 May 2019 07:52:39 GMT
|
25
|
+
Content-Length:
|
26
|
+
- '82'
|
27
27
|
Content-Type:
|
28
28
|
- application/json
|
29
|
-
|
30
|
-
-
|
29
|
+
Date:
|
30
|
+
- Mon, 30 Jan 2023 10:36:43 GMT
|
31
31
|
Vary:
|
32
32
|
- Accept-Encoding
|
33
|
-
-
|
33
|
+
X-Build:
|
34
|
+
- 16d854443d
|
35
|
+
X-Frame-Options:
|
36
|
+
- sameorigin
|
34
37
|
X-Rack-Responsetime:
|
35
|
-
- '
|
38
|
+
- '74'
|
36
39
|
X-Uid:
|
37
|
-
-
|
38
|
-
|
39
|
-
-
|
40
|
+
- 5f8a7c8b
|
41
|
+
Server:
|
42
|
+
- Fortnox
|
43
|
+
X-Content-Type-Options:
|
44
|
+
- nosniff
|
45
|
+
X-Xss-Protection:
|
46
|
+
- '0'
|
47
|
+
Referrer-Policy:
|
48
|
+
- strict-origin-when-cross-origin
|
49
|
+
Content-Security-Policy:
|
50
|
+
- 'upgrade-insecure-requests;frame-ancestors https://*.fortnox.se;report-uri
|
51
|
+
/api/cspreport;connect-src ''self'' https://a.storyblok.com wss://*.fortnox.se
|
52
|
+
*.fortnox.se *.findity.com mybusiness.pwc.se themes.googleusercontent.com
|
53
|
+
s3.amazonaws.com/helpjuice-static/ *.helpjuice.com *.vimeo.com fonts.googleapis.com
|
54
|
+
fonts.gstatic.com api.cling.se wss://api.cling.se ''unsafe-inline'' ''unsafe-eval''
|
55
|
+
blob: data:'
|
56
|
+
Strict-Transport-Security:
|
57
|
+
- max-age=31536000; includeSubdomains
|
40
58
|
body:
|
41
|
-
encoding:
|
59
|
+
encoding: ASCII-8BIT
|
42
60
|
string: '{"ErrorInformation":{"Error":1,"Message":"Kan inte hitta kunden.","Code":2000433}}'
|
43
|
-
|
44
|
-
|
45
|
-
recorded_with: VCR 4.0.0
|
61
|
+
recorded_at: Mon, 30 Jan 2023 10:36:43 GMT
|
62
|
+
recorded_with: VCR 6.1.0
|
@@ -11,36 +11,54 @@ http_interactions:
|
|
11
11
|
- application/json
|
12
12
|
Accept:
|
13
13
|
- application/json
|
14
|
-
|
15
|
-
-
|
16
|
-
|
17
|
-
-
|
14
|
+
Authorization:
|
15
|
+
- "<AUTHORIZATION>"
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
User-Agent:
|
19
|
+
- Ruby
|
18
20
|
response:
|
19
21
|
status:
|
20
22
|
code: 200
|
21
23
|
message: OK
|
22
24
|
headers:
|
23
|
-
|
24
|
-
-
|
25
|
-
Date:
|
26
|
-
- Wed, 29 May 2019 07:52:38 GMT
|
25
|
+
Content-Length:
|
26
|
+
- '1447'
|
27
27
|
Content-Type:
|
28
28
|
- application/json
|
29
|
-
|
30
|
-
-
|
29
|
+
Date:
|
30
|
+
- Mon, 30 Jan 2023 10:36:43 GMT
|
31
31
|
Vary:
|
32
32
|
- Accept-Encoding
|
33
|
-
-
|
33
|
+
X-Build:
|
34
|
+
- 16d854443d
|
35
|
+
X-Frame-Options:
|
36
|
+
- sameorigin
|
34
37
|
X-Rack-Responsetime:
|
35
|
-
- '
|
38
|
+
- '87'
|
36
39
|
X-Uid:
|
37
|
-
-
|
38
|
-
|
39
|
-
-
|
40
|
+
- 22b46961
|
41
|
+
Server:
|
42
|
+
- Fortnox
|
43
|
+
X-Content-Type-Options:
|
44
|
+
- nosniff
|
45
|
+
X-Xss-Protection:
|
46
|
+
- '0'
|
47
|
+
Referrer-Policy:
|
48
|
+
- strict-origin-when-cross-origin
|
49
|
+
Content-Security-Policy:
|
50
|
+
- 'upgrade-insecure-requests;frame-ancestors https://*.fortnox.se;report-uri
|
51
|
+
/api/cspreport;connect-src ''self'' https://a.storyblok.com wss://*.fortnox.se
|
52
|
+
*.fortnox.se *.findity.com mybusiness.pwc.se themes.googleusercontent.com
|
53
|
+
s3.amazonaws.com/helpjuice-static/ *.helpjuice.com *.vimeo.com fonts.googleapis.com
|
54
|
+
fonts.gstatic.com api.cling.se wss://api.cling.se ''unsafe-inline'' ''unsafe-eval''
|
55
|
+
blob: data:'
|
56
|
+
Strict-Transport-Security:
|
57
|
+
- max-age=31536000; includeSubdomains
|
40
58
|
body:
|
41
|
-
encoding:
|
42
|
-
string: '{"Customer":{"@url":"https:\/\/api.fortnox.se\/3\/customers\/1","Address1":null,"Address2":null,"City":"
|
43
|
-
|
44
|
-
|
45
|
-
recorded_at:
|
46
|
-
recorded_with: VCR
|
59
|
+
encoding: ASCII-8BIT
|
60
|
+
string: '{"Customer":{"@url":"https:\/\/api.fortnox.se\/3\/customers\/1","Address1":null,"Address2":null,"City":"New
|
61
|
+
York","Country":null,"Comments":null,"Currency":"SEK","CostCenter":null,"CountryCode":null,"Active":true,"CustomerNumber":"1","DefaultDeliveryTypes":{"Invoice":"PRINT","Order":"PRINT","Offer":"PRINT"},"DefaultTemplates":{"Order":"DEFAULTTEMPLATE","Offer":"DEFAULTTEMPLATE","Invoice":"DEFAULTTEMPLATE","CashInvoice":"DEFAULTTEMPLATE"},"DeliveryAddress1":null,"DeliveryAddress2":null,"DeliveryCity":null,"DeliveryCountry":null,"DeliveryCountryCode":null,"DeliveryFax":null,"DeliveryName":null,"DeliveryPhone1":null,"DeliveryPhone2":null,"DeliveryZipCode":null,"Email":"","EmailInvoice":"","EmailInvoiceBCC":"","EmailInvoiceCC":"","EmailOffer":"","EmailOfferBCC":"","EmailOfferCC":"","EmailOrder":"","EmailOrderBCC":"","EmailOrderCC":"","ExternalReference":null,"Fax":null,"GLN":null,"GLNDelivery":null,"InvoiceAdministrationFee":null,"InvoiceDiscount":null,"InvoiceFreight":null,"InvoiceRemark":"","Name":"Updated
|
62
|
+
name","OrganisationNumber":"","OurReference":"","Phone1":null,"Phone2":null,"PriceList":"A","Project":"","SalesAccount":null,"ShowPriceVATIncluded":false,"TermsOfDelivery":"","TermsOfPayment":"","Type":"COMPANY","VATNumber":"","VATType":"SEVAT","VisitingAddress":null,"VisitingCity":null,"VisitingCountry":null,"VisitingCountryCode":null,"VisitingZipCode":null,"WayOfDelivery":"","WWW":"","YourReference":"","ZipCode":"10001"}}'
|
63
|
+
recorded_at: Mon, 30 Jan 2023 10:36:43 GMT
|
64
|
+
recorded_with: VCR 6.1.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.fortnox.se/3/customers/
|
5
|
+
uri: https://api.fortnox.se/3/customers/6
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -11,36 +11,53 @@ http_interactions:
|
|
11
11
|
- application/json
|
12
12
|
Accept:
|
13
13
|
- application/json
|
14
|
-
|
15
|
-
-
|
16
|
-
|
17
|
-
-
|
14
|
+
Authorization:
|
15
|
+
- "<AUTHORIZATION>"
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
User-Agent:
|
19
|
+
- Ruby
|
18
20
|
response:
|
19
21
|
status:
|
20
22
|
code: 200
|
21
23
|
message: OK
|
22
24
|
headers:
|
23
|
-
|
24
|
-
-
|
25
|
-
Date:
|
26
|
-
- Wed, 29 May 2019 07:52:38 GMT
|
25
|
+
Content-Length:
|
26
|
+
- '1433'
|
27
27
|
Content-Type:
|
28
28
|
- application/json
|
29
|
-
|
30
|
-
-
|
29
|
+
Date:
|
30
|
+
- Mon, 30 Jan 2023 10:36:42 GMT
|
31
31
|
Vary:
|
32
32
|
- Accept-Encoding
|
33
|
-
-
|
33
|
+
X-Build:
|
34
|
+
- 16d854443d
|
35
|
+
X-Frame-Options:
|
36
|
+
- sameorigin
|
34
37
|
X-Rack-Responsetime:
|
35
|
-
- '
|
38
|
+
- '88'
|
36
39
|
X-Uid:
|
37
|
-
-
|
38
|
-
|
39
|
-
-
|
40
|
+
- cafac314
|
41
|
+
Server:
|
42
|
+
- Fortnox
|
43
|
+
X-Content-Type-Options:
|
44
|
+
- nosniff
|
45
|
+
X-Xss-Protection:
|
46
|
+
- '0'
|
47
|
+
Referrer-Policy:
|
48
|
+
- strict-origin-when-cross-origin
|
49
|
+
Content-Security-Policy:
|
50
|
+
- 'upgrade-insecure-requests;frame-ancestors https://*.fortnox.se;report-uri
|
51
|
+
/api/cspreport;connect-src ''self'' https://a.storyblok.com wss://*.fortnox.se
|
52
|
+
*.fortnox.se *.findity.com mybusiness.pwc.se themes.googleusercontent.com
|
53
|
+
s3.amazonaws.com/helpjuice-static/ *.helpjuice.com *.vimeo.com fonts.googleapis.com
|
54
|
+
fonts.gstatic.com api.cling.se wss://api.cling.se ''unsafe-inline'' ''unsafe-eval''
|
55
|
+
blob: data:'
|
56
|
+
Strict-Transport-Security:
|
57
|
+
- max-age=31536000; includeSubdomains
|
40
58
|
body:
|
41
|
-
encoding:
|
42
|
-
string: '{"Customer":{"@url":"https:\/\/api.fortnox.se\/3\/customers\/
|
59
|
+
encoding: ASCII-8BIT
|
60
|
+
string: '{"Customer":{"@url":"https:\/\/api.fortnox.se\/3\/customers\/6","Address1":null,"Address2":null,"City":null,"Country":null,"Comments":null,"Currency":"SEK","CostCenter":null,"CountryCode":null,"Active":true,"CustomerNumber":"6","DefaultDeliveryTypes":{"Invoice":"PRINT","Order":"PRINT","Offer":"PRINT"},"DefaultTemplates":{"Order":"DEFAULTTEMPLATE","Offer":"DEFAULTTEMPLATE","Invoice":"DEFAULTTEMPLATE","CashInvoice":"DEFAULTTEMPLATE"},"DeliveryAddress1":null,"DeliveryAddress2":null,"DeliveryCity":null,"DeliveryCountry":null,"DeliveryCountryCode":null,"DeliveryFax":null,"DeliveryName":null,"DeliveryPhone1":null,"DeliveryPhone2":null,"DeliveryZipCode":null,"Email":"","EmailInvoice":"","EmailInvoiceBCC":"","EmailInvoiceCC":"","EmailOffer":"","EmailOfferBCC":"","EmailOfferCC":"","EmailOrder":"","EmailOrderBCC":"","EmailOrderCC":"","ExternalReference":null,"Fax":null,"GLN":null,"GLNDelivery":null,"InvoiceAdministrationFee":null,"InvoiceDiscount":null,"InvoiceFreight":null,"InvoiceRemark":"","Name":"A
|
43
61
|
value","OrganisationNumber":"","OurReference":"","Phone1":null,"Phone2":null,"PriceList":"A","Project":"","SalesAccount":null,"ShowPriceVATIncluded":false,"TermsOfDelivery":"","TermsOfPayment":"","Type":"COMPANY","VATNumber":"","VATType":"SEVAT","VisitingAddress":null,"VisitingCity":null,"VisitingCountry":null,"VisitingCountryCode":null,"VisitingZipCode":null,"WayOfDelivery":"","WWW":"","YourReference":"","ZipCode":null}}'
|
44
|
-
|
45
|
-
|
46
|
-
recorded_with: VCR 4.0.0
|
62
|
+
recorded_at: Mon, 30 Jan 2023 10:36:42 GMT
|
63
|
+
recorded_with: VCR 6.1.0
|
@@ -0,0 +1,63 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.fortnox.se/3/customers/9
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/json
|
12
|
+
Accept:
|
13
|
+
- application/json
|
14
|
+
Authorization:
|
15
|
+
- "<AUTHORIZATION>"
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
User-Agent:
|
19
|
+
- Ruby
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Content-Length:
|
26
|
+
- '1455'
|
27
|
+
Content-Type:
|
28
|
+
- application/json
|
29
|
+
Date:
|
30
|
+
- Mon, 30 Jan 2023 10:36:44 GMT
|
31
|
+
Vary:
|
32
|
+
- Accept-Encoding
|
33
|
+
X-Build:
|
34
|
+
- 16d854443d
|
35
|
+
X-Frame-Options:
|
36
|
+
- sameorigin
|
37
|
+
X-Rack-Responsetime:
|
38
|
+
- '78'
|
39
|
+
X-Uid:
|
40
|
+
- 7be30a3c
|
41
|
+
Server:
|
42
|
+
- Fortnox
|
43
|
+
X-Content-Type-Options:
|
44
|
+
- nosniff
|
45
|
+
X-Xss-Protection:
|
46
|
+
- '0'
|
47
|
+
Referrer-Policy:
|
48
|
+
- strict-origin-when-cross-origin
|
49
|
+
Content-Security-Policy:
|
50
|
+
- 'upgrade-insecure-requests;frame-ancestors https://*.fortnox.se;report-uri
|
51
|
+
/api/cspreport;connect-src ''self'' https://a.storyblok.com wss://*.fortnox.se
|
52
|
+
*.fortnox.se *.findity.com mybusiness.pwc.se themes.googleusercontent.com
|
53
|
+
s3.amazonaws.com/helpjuice-static/ *.helpjuice.com *.vimeo.com fonts.googleapis.com
|
54
|
+
fonts.gstatic.com api.cling.se wss://api.cling.se ''unsafe-inline'' ''unsafe-eval''
|
55
|
+
blob: data:'
|
56
|
+
Strict-Transport-Security:
|
57
|
+
- max-age=31536000; includeSubdomains
|
58
|
+
body:
|
59
|
+
encoding: ASCII-8BIT
|
60
|
+
string: '{"Customer":{"@url":"https:\/\/api.fortnox.se\/3\/customers\/9","Address1":null,"Address2":null,"City":null,"Country":null,"Comments":null,"Currency":"SEK","CostCenter":null,"CountryCode":null,"Active":true,"CustomerNumber":"9","DefaultDeliveryTypes":{"Invoice":"PRINT","Order":"PRINT","Offer":"PRINT"},"DefaultTemplates":{"Order":"DEFAULTTEMPLATE","Offer":"DEFAULTTEMPLATE","Invoice":"DEFAULTTEMPLATE","CashInvoice":"DEFAULTTEMPLATE"},"DeliveryAddress1":null,"DeliveryAddress2":null,"DeliveryCity":null,"DeliveryCountry":null,"DeliveryCountryCode":null,"DeliveryFax":null,"DeliveryName":null,"DeliveryPhone1":null,"DeliveryPhone2":null,"DeliveryZipCode":null,"Email":"","EmailInvoice":"","EmailInvoiceBCC":"","EmailInvoiceCC":"","EmailOffer":"","EmailOfferBCC":"","EmailOfferCC":"","EmailOrder":"","EmailOrderBCC":"","EmailOrderCC":"","ExternalReference":null,"Fax":null,"GLN":null,"GLNDelivery":null,"InvoiceAdministrationFee":null,"InvoiceDiscount":null,"InvoiceFreight":null,"InvoiceRemark":"","Name":"Customer
|
61
|
+
with Sales Account","OrganisationNumber":"","OurReference":"","Phone1":null,"Phone2":null,"PriceList":"A","Project":"","SalesAccount":"3001","ShowPriceVATIncluded":false,"TermsOfDelivery":"","TermsOfPayment":"","Type":"COMPANY","VATNumber":"","VATType":"SEVAT","VisitingAddress":null,"VisitingCity":null,"VisitingCountry":null,"VisitingCountryCode":null,"VisitingZipCode":null,"WayOfDelivery":"","WWW":"","YourReference":"","ZipCode":null}}'
|
62
|
+
recorded_at: Mon, 30 Jan 2023 10:36:44 GMT
|
63
|
+
recorded_with: VCR 6.1.0
|
@@ -11,36 +11,53 @@ http_interactions:
|
|
11
11
|
- application/json
|
12
12
|
Accept:
|
13
13
|
- application/json
|
14
|
-
|
15
|
-
-
|
16
|
-
|
17
|
-
-
|
14
|
+
Authorization:
|
15
|
+
- "<AUTHORIZATION>"
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
User-Agent:
|
19
|
+
- Ruby
|
18
20
|
response:
|
19
21
|
status:
|
20
22
|
code: 200
|
21
23
|
message: OK
|
22
24
|
headers:
|
23
|
-
|
24
|
-
-
|
25
|
-
Date:
|
26
|
-
- Wed, 29 May 2019 07:52:39 GMT
|
25
|
+
Content-Length:
|
26
|
+
- '294'
|
27
27
|
Content-Type:
|
28
28
|
- application/json
|
29
|
-
|
30
|
-
-
|
29
|
+
Date:
|
30
|
+
- Mon, 30 Jan 2023 10:36:43 GMT
|
31
31
|
Vary:
|
32
32
|
- Accept-Encoding
|
33
|
-
-
|
33
|
+
X-Build:
|
34
|
+
- 16d854443d
|
35
|
+
X-Frame-Options:
|
36
|
+
- sameorigin
|
34
37
|
X-Rack-Responsetime:
|
35
|
-
- '
|
38
|
+
- '78'
|
36
39
|
X-Uid:
|
37
|
-
-
|
38
|
-
|
39
|
-
-
|
40
|
+
- 881a79a9
|
41
|
+
Server:
|
42
|
+
- Fortnox
|
43
|
+
X-Content-Type-Options:
|
44
|
+
- nosniff
|
45
|
+
X-Xss-Protection:
|
46
|
+
- '0'
|
47
|
+
Referrer-Policy:
|
48
|
+
- strict-origin-when-cross-origin
|
49
|
+
Content-Security-Policy:
|
50
|
+
- 'upgrade-insecure-requests;frame-ancestors https://*.fortnox.se;report-uri
|
51
|
+
/api/cspreport;connect-src ''self'' https://a.storyblok.com wss://*.fortnox.se
|
52
|
+
*.fortnox.se *.findity.com mybusiness.pwc.se themes.googleusercontent.com
|
53
|
+
s3.amazonaws.com/helpjuice-static/ *.helpjuice.com *.vimeo.com fonts.googleapis.com
|
54
|
+
fonts.gstatic.com api.cling.se wss://api.cling.se ''unsafe-inline'' ''unsafe-eval''
|
55
|
+
blob: data:'
|
56
|
+
Strict-Transport-Security:
|
57
|
+
- max-age=31536000; includeSubdomains
|
40
58
|
body:
|
41
|
-
encoding:
|
42
|
-
string: '{"MetaInformation":{"@TotalResources":1,"@TotalPages":1,"@CurrentPage":1},"Customers":[{"@url":"https:\/\/api.fortnox.se\/3\/customers\/
|
43
|
-
York","CustomerNumber":"
|
44
|
-
|
45
|
-
|
46
|
-
recorded_with: VCR 4.0.0
|
59
|
+
encoding: ASCII-8BIT
|
60
|
+
string: '{"MetaInformation":{"@TotalResources":1,"@TotalPages":1,"@CurrentPage":1},"Customers":[{"@url":"https:\/\/api.fortnox.se\/3\/customers\/1","Address1":"","Address2":"","City":"New
|
61
|
+
York","CustomerNumber":"1","Email":"","Name":"Updated name","OrganisationNumber":"","Phone":"","ZipCode":"10001"}]}'
|
62
|
+
recorded_at: Mon, 30 Jan 2023 10:36:43 GMT
|
63
|
+
recorded_with: VCR 6.1.0
|
@@ -11,35 +11,53 @@ http_interactions:
|
|
11
11
|
- application/json
|
12
12
|
Accept:
|
13
13
|
- application/json
|
14
|
-
|
15
|
-
-
|
16
|
-
|
17
|
-
-
|
14
|
+
Authorization:
|
15
|
+
- "<AUTHORIZATION>"
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
User-Agent:
|
19
|
+
- Ruby
|
18
20
|
response:
|
19
21
|
status:
|
20
22
|
code: 201
|
21
23
|
message: Created
|
22
24
|
headers:
|
23
|
-
|
24
|
-
-
|
25
|
-
Date:
|
26
|
-
- Wed, 29 May 2019 07:52:37 GMT
|
25
|
+
Content-Length:
|
26
|
+
- '1433'
|
27
27
|
Content-Type:
|
28
28
|
- application/json
|
29
|
-
|
30
|
-
-
|
29
|
+
Date:
|
30
|
+
- Mon, 30 Jan 2023 10:36:42 GMT
|
31
31
|
Location:
|
32
32
|
- customers
|
33
|
+
X-Build:
|
34
|
+
- 16d854443d
|
35
|
+
X-Frame-Options:
|
36
|
+
- sameorigin
|
33
37
|
X-Rack-Responsetime:
|
34
|
-
- '
|
38
|
+
- '146'
|
35
39
|
X-Uid:
|
36
|
-
-
|
37
|
-
|
38
|
-
-
|
40
|
+
- 685856e1
|
41
|
+
Server:
|
42
|
+
- Fortnox
|
43
|
+
X-Content-Type-Options:
|
44
|
+
- nosniff
|
45
|
+
X-Xss-Protection:
|
46
|
+
- '0'
|
47
|
+
Referrer-Policy:
|
48
|
+
- strict-origin-when-cross-origin
|
49
|
+
Content-Security-Policy:
|
50
|
+
- 'upgrade-insecure-requests;frame-ancestors https://*.fortnox.se;report-uri
|
51
|
+
/api/cspreport;connect-src ''self'' https://a.storyblok.com wss://*.fortnox.se
|
52
|
+
*.fortnox.se *.findity.com mybusiness.pwc.se themes.googleusercontent.com
|
53
|
+
s3.amazonaws.com/helpjuice-static/ *.helpjuice.com *.vimeo.com fonts.googleapis.com
|
54
|
+
fonts.gstatic.com api.cling.se wss://api.cling.se ''unsafe-inline'' ''unsafe-eval''
|
55
|
+
blob: data:'
|
56
|
+
Strict-Transport-Security:
|
57
|
+
- max-age=31536000; includeSubdomains
|
39
58
|
body:
|
40
59
|
encoding: UTF-8
|
41
|
-
string: '{"Customer":{"@url":"https:\/\/api.fortnox.se\/3\/customers\/
|
60
|
+
string: '{"Customer":{"@url":"https:\/\/api.fortnox.se\/3\/customers\/6","Address1":null,"Address2":null,"City":null,"Country":null,"Comments":null,"Currency":"SEK","CostCenter":null,"CountryCode":null,"Active":true,"CustomerNumber":"6","DefaultDeliveryTypes":{"Invoice":"PRINT","Order":"PRINT","Offer":"PRINT"},"DefaultTemplates":{"Order":"DEFAULTTEMPLATE","Offer":"DEFAULTTEMPLATE","Invoice":"DEFAULTTEMPLATE","CashInvoice":"DEFAULTTEMPLATE"},"DeliveryAddress1":null,"DeliveryAddress2":null,"DeliveryCity":null,"DeliveryCountry":null,"DeliveryCountryCode":null,"DeliveryFax":null,"DeliveryName":null,"DeliveryPhone1":null,"DeliveryPhone2":null,"DeliveryZipCode":null,"Email":"","EmailInvoice":"","EmailInvoiceBCC":"","EmailInvoiceCC":"","EmailOffer":"","EmailOfferBCC":"","EmailOfferCC":"","EmailOrder":"","EmailOrderBCC":"","EmailOrderCC":"","ExternalReference":null,"Fax":null,"GLN":null,"GLNDelivery":null,"InvoiceAdministrationFee":null,"InvoiceDiscount":null,"InvoiceFreight":null,"InvoiceRemark":"","Name":"A
|
42
61
|
value","OrganisationNumber":"","OurReference":"","Phone1":null,"Phone2":null,"PriceList":"A","Project":"","SalesAccount":null,"ShowPriceVATIncluded":false,"TermsOfDelivery":"","TermsOfPayment":"","Type":"COMPANY","VATNumber":"","VATType":"SEVAT","VisitingAddress":null,"VisitingCity":null,"VisitingCountry":null,"VisitingCountryCode":null,"VisitingZipCode":null,"WayOfDelivery":"","WWW":"","YourReference":"","ZipCode":null}}'
|
43
|
-
|
44
|
-
|
45
|
-
recorded_with: VCR 4.0.0
|
62
|
+
recorded_at: Mon, 30 Jan 2023 10:36:42 GMT
|
63
|
+
recorded_with: VCR 6.1.0
|
@@ -12,45 +12,53 @@ http_interactions:
|
|
12
12
|
- application/json
|
13
13
|
Accept:
|
14
14
|
- application/json
|
15
|
-
|
16
|
-
-
|
17
|
-
|
18
|
-
-
|
15
|
+
Authorization:
|
16
|
+
- "<AUTHORIZATION>"
|
17
|
+
Accept-Encoding:
|
18
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
19
|
+
User-Agent:
|
20
|
+
- Ruby
|
19
21
|
response:
|
20
22
|
status:
|
21
23
|
code: 201
|
22
24
|
message: Created
|
23
25
|
headers:
|
24
|
-
|
25
|
-
-
|
26
|
-
Date:
|
27
|
-
- Sat, 31 Aug 2019 18:40:48 GMT
|
26
|
+
Content-Length:
|
27
|
+
- '1465'
|
28
28
|
Content-Type:
|
29
29
|
- application/json
|
30
|
-
|
31
|
-
-
|
30
|
+
Date:
|
31
|
+
- Mon, 30 Jan 2023 10:36:44 GMT
|
32
32
|
Location:
|
33
33
|
- customers
|
34
|
+
X-Build:
|
35
|
+
- 16d854443d
|
36
|
+
X-Frame-Options:
|
37
|
+
- sameorigin
|
34
38
|
X-Rack-Responsetime:
|
35
|
-
- '
|
39
|
+
- '168'
|
36
40
|
X-Uid:
|
37
|
-
-
|
38
|
-
|
39
|
-
-
|
40
|
-
Strict-Transport-Security:
|
41
|
-
- max-age=31536000; includeSubdomains
|
42
|
-
X-Xss-Protection:
|
43
|
-
- 1; mode=block
|
41
|
+
- bd757879
|
42
|
+
Server:
|
43
|
+
- Fortnox
|
44
44
|
X-Content-Type-Options:
|
45
45
|
- nosniff
|
46
|
-
X-
|
47
|
-
-
|
46
|
+
X-Xss-Protection:
|
47
|
+
- '0'
|
48
48
|
Referrer-Policy:
|
49
49
|
- strict-origin-when-cross-origin
|
50
|
+
Content-Security-Policy:
|
51
|
+
- 'upgrade-insecure-requests;frame-ancestors https://*.fortnox.se;report-uri
|
52
|
+
/api/cspreport;connect-src ''self'' https://a.storyblok.com wss://*.fortnox.se
|
53
|
+
*.fortnox.se *.findity.com mybusiness.pwc.se themes.googleusercontent.com
|
54
|
+
s3.amazonaws.com/helpjuice-static/ *.helpjuice.com *.vimeo.com fonts.googleapis.com
|
55
|
+
fonts.gstatic.com api.cling.se wss://api.cling.se ''unsafe-inline'' ''unsafe-eval''
|
56
|
+
blob: data:'
|
57
|
+
Strict-Transport-Security:
|
58
|
+
- max-age=31536000; includeSubdomains
|
50
59
|
body:
|
51
60
|
encoding: UTF-8
|
52
|
-
string: '{"Customer":{"@url":"https:\/\/api.fortnox.se\/3\/customers\/
|
61
|
+
string: '{"Customer":{"@url":"https:\/\/api.fortnox.se\/3\/customers\/8","Address1":null,"Address2":null,"City":null,"Country":"Sverige","Comments":null,"Currency":"SEK","CostCenter":null,"CountryCode":"SE","Active":true,"CustomerNumber":"8","DefaultDeliveryTypes":{"Invoice":"PRINT","Order":"PRINT","Offer":"PRINT"},"DefaultTemplates":{"Order":"DEFAULTTEMPLATE","Offer":"DEFAULTTEMPLATE","Invoice":"DEFAULTTEMPLATE","CashInvoice":"DEFAULTTEMPLATE"},"DeliveryAddress1":null,"DeliveryAddress2":null,"DeliveryCity":null,"DeliveryCountry":null,"DeliveryCountryCode":null,"DeliveryFax":null,"DeliveryName":null,"DeliveryPhone1":null,"DeliveryPhone2":null,"DeliveryZipCode":null,"Email":"","EmailInvoice":"","EmailInvoiceBCC":"","EmailInvoiceCC":"","EmailOffer":"","EmailOfferBCC":"","EmailOfferCC":"","EmailOrder":"","EmailOrderBCC":"","EmailOrderCC":"","ExternalReference":null,"Fax":null,"GLN":null,"GLNDelivery":null,"InvoiceAdministrationFee":null,"InvoiceDiscount":null,"InvoiceFreight":null,"InvoiceRemark":"","Name":"Customer
|
53
62
|
with Swedish country code","OrganisationNumber":"","OurReference":"","Phone1":null,"Phone2":null,"PriceList":"A","Project":"","SalesAccount":null,"ShowPriceVATIncluded":false,"TermsOfDelivery":"","TermsOfPayment":"","Type":"COMPANY","VATNumber":"","VATType":"SEVAT","VisitingAddress":null,"VisitingCity":null,"VisitingCountry":null,"VisitingCountryCode":null,"VisitingZipCode":null,"WayOfDelivery":"","WWW":"","YourReference":"","ZipCode":null}}'
|
54
|
-
|
55
|
-
|
56
|
-
recorded_with: VCR 4.0.0
|
63
|
+
recorded_at: Mon, 30 Jan 2023 10:36:44 GMT
|
64
|
+
recorded_with: VCR 6.1.0
|