fortnox-api 0.8.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/.env.template +7 -0
- data/.env.test +11 -3
- data/.gitignore +7 -1
- data/.rubocop.yml +17 -1
- data/.travis.yml +10 -9
- data/CHANGELOG.md +22 -8
- data/CONTRIBUTE.md +21 -9
- data/DEVELOPER_README.md +72 -0
- data/Guardfile +13 -4
- data/README.md +226 -64
- data/Rakefile +128 -0
- data/bin/get_tokens +79 -0
- data/bin/renew_tokens +28 -0
- data/fortnox-api.gemspec +10 -9
- data/lib/fortnox/api/mappers/base/from_json.rb +4 -3
- data/lib/fortnox/api/mappers/base/to_json.rb +2 -3
- data/lib/fortnox/api/models/base.rb +12 -10
- data/lib/fortnox/api/models/customer.rb +55 -55
- data/lib/fortnox/api/models/label.rb +2 -2
- 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 +21 -35
- data/lib/fortnox/api/repositories.rb +1 -0
- data/lib/fortnox/api/request_handling.rb +30 -18
- data/lib/fortnox/api/types/document_row.rb +3 -3
- data/lib/fortnox/api/types/enums.rb +27 -11
- data/lib/fortnox/api/types/model.rb +1 -4
- data/lib/fortnox/api/types/sized.rb +2 -2
- data/lib/fortnox/api/types.rb +14 -1
- data/lib/fortnox/api/version.rb +1 -1
- data/lib/fortnox/api.rb +12 -32
- data/spec/fortnox/api/mappers/base/canonical_name_sym_spec.rb +4 -4
- 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/unit_spec.rb +3 -4
- data/spec/fortnox/api/models/base_spec.rb +27 -16
- 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 +106 -319
- 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 +64 -15
- 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/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 +54 -61
- data/spec/fortnox/api/types/model_spec.rb +3 -27
- data/spec/fortnox/api/types/order_row_spec.rb +2 -2
- data/spec/fortnox/api/types/required_spec.rb +6 -11
- 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/have_nullable_date_matcher.rb +6 -4
- 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 +16 -43
- data/spec/vcr_cassettes/articles/find_by_hash_failure.yml +10 -12
- data/spec/vcr_cassettes/articles/find_failure.yml +10 -12
- data/spec/vcr_cassettes/articles/find_id_1.yml +13 -14
- data/spec/vcr_cassettes/articles/find_new.yml +14 -16
- data/spec/vcr_cassettes/articles/multi_param_find_by_hash.yml +13 -15
- data/spec/vcr_cassettes/articles/save_new.yml +13 -15
- data/spec/vcr_cassettes/articles/save_old.yml +14 -16
- data/spec/vcr_cassettes/articles/save_with_specially_named_attribute.yml +13 -15
- data/spec/vcr_cassettes/articles/search_by_name.yml +16 -15
- data/spec/vcr_cassettes/articles/search_miss.yml +10 -12
- data/spec/vcr_cassettes/articles/search_with_special_char.yml +10 -12
- data/spec/vcr_cassettes/articles/single_param_find_by_hash.yml +13 -27
- 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 +20 -127
- data/spec/vcr_cassettes/customers/find_by_hash_failure.yml +10 -12
- data/spec/vcr_cassettes/customers/find_failure.yml +10 -12
- data/spec/vcr_cassettes/customers/find_id_1.yml +14 -15
- data/spec/vcr_cassettes/customers/find_new.yml +13 -15
- data/spec/vcr_cassettes/customers/find_with_sales_account.yml +63 -0
- data/spec/vcr_cassettes/customers/multi_param_find_by_hash.yml +13 -15
- data/spec/vcr_cassettes/customers/save_new.yml +12 -14
- data/spec/vcr_cassettes/customers/save_new_with_country_code_SE.yml +12 -14
- data/spec/vcr_cassettes/customers/save_new_with_sales_account.yml +63 -0
- data/spec/vcr_cassettes/customers/save_old.yml +13 -15
- data/spec/vcr_cassettes/customers/save_with_specially_named_attribute.yml +12 -14
- data/spec/vcr_cassettes/customers/search_by_name.yml +13 -45
- data/spec/vcr_cassettes/customers/search_miss.yml +10 -12
- data/spec/vcr_cassettes/customers/search_with_special_char.yml +10 -12
- data/spec/vcr_cassettes/customers/single_param_find_by_hash.yml +14 -16
- data/spec/vcr_cassettes/invoices/all.yml +47 -112
- data/spec/vcr_cassettes/invoices/filter_hit.yml +14 -18
- data/spec/vcr_cassettes/invoices/filter_invalid.yml +10 -12
- data/spec/vcr_cassettes/invoices/find_by_hash_failure.yml +10 -12
- data/spec/vcr_cassettes/invoices/find_failure.yml +10 -12
- data/spec/vcr_cassettes/invoices/find_id_1.yml +15 -16
- data/spec/vcr_cassettes/invoices/find_new.yml +16 -18
- data/spec/vcr_cassettes/invoices/multi_param_find_by_hash.yml +13 -15
- data/spec/vcr_cassettes/invoices/row_description_limit.yml +65 -0
- data/spec/vcr_cassettes/invoices/save_new.yml +14 -16
- data/spec/vcr_cassettes/invoices/save_new_with_comments.yml +14 -16
- data/spec/vcr_cassettes/invoices/save_new_with_country.yml +14 -15
- data/spec/vcr_cassettes/invoices/save_new_with_country_GB.yml +15 -16
- data/spec/vcr_cassettes/invoices/save_new_with_country_Norge.yml +14 -15
- data/spec/vcr_cassettes/invoices/save_new_with_country_Norway.yml +14 -15
- data/spec/vcr_cassettes/invoices/save_new_with_country_Sverige.yml +14 -15
- data/spec/vcr_cassettes/invoices/save_new_with_country_VA.yml +15 -16
- data/spec/vcr_cassettes/invoices/save_new_with_country_VI.yml +15 -16
- data/spec/vcr_cassettes/invoices/save_new_with_country_empty_string.yml +14 -15
- data/spec/vcr_cassettes/invoices/save_new_with_country_nil.yml +14 -15
- data/spec/vcr_cassettes/invoices/save_new_with_unsaved_parent.yml +65 -0
- data/spec/vcr_cassettes/invoices/save_old.yml +16 -18
- data/spec/vcr_cassettes/invoices/save_old_with_empty_comments.yml +16 -18
- data/spec/vcr_cassettes/invoices/save_old_with_empty_country.yml +16 -17
- data/spec/vcr_cassettes/invoices/save_old_with_nil_comments.yml +16 -18
- data/spec/vcr_cassettes/invoices/save_old_with_nil_country.yml +16 -17
- data/spec/vcr_cassettes/invoices/save_with_nested_model.yml +15 -16
- data/spec/vcr_cassettes/invoices/save_with_specially_named_attribute.yml +14 -15
- data/spec/vcr_cassettes/invoices/search_by_name.yml +13 -21
- data/spec/vcr_cassettes/invoices/search_miss.yml +10 -12
- data/spec/vcr_cassettes/invoices/search_with_special_char.yml +10 -12
- data/spec/vcr_cassettes/invoices/single_param_find_by_hash.yml +14 -16
- data/spec/vcr_cassettes/orders/all.yml +19 -113
- data/spec/vcr_cassettes/orders/filter_hit.yml +14 -20
- data/spec/vcr_cassettes/orders/filter_invalid.yml +10 -12
- data/spec/vcr_cassettes/orders/find_by_hash_failure.yml +10 -12
- data/spec/vcr_cassettes/orders/find_failure.yml +10 -12
- data/spec/vcr_cassettes/orders/find_id_1.yml +17 -17
- data/spec/vcr_cassettes/orders/find_new.yml +16 -18
- data/spec/vcr_cassettes/orders/housework_invalid_tax_reduction_type.yml +11 -13
- data/spec/vcr_cassettes/orders/housework_othercoses_invalid.yml +11 -13
- data/spec/vcr_cassettes/orders/housework_type_babysitting.yml +15 -16
- data/spec/vcr_cassettes/orders/housework_type_cleaning.yml +15 -16
- data/spec/vcr_cassettes/orders/housework_type_construction.yml +15 -16
- data/spec/vcr_cassettes/orders/housework_type_cooking.yml +11 -13
- data/spec/vcr_cassettes/orders/housework_type_electricity.yml +15 -16
- data/spec/vcr_cassettes/orders/housework_type_gardening.yml +15 -16
- data/spec/vcr_cassettes/orders/housework_type_glassmetalwork.yml +15 -16
- data/spec/vcr_cassettes/orders/housework_type_grounddrainagework.yml +15 -16
- data/spec/vcr_cassettes/orders/housework_type_hvac.yml +15 -16
- data/spec/vcr_cassettes/orders/housework_type_itservices.yml +15 -16
- data/spec/vcr_cassettes/orders/housework_type_majorappliancerepair.yml +15 -16
- data/spec/vcr_cassettes/orders/housework_type_masonry.yml +15 -16
- data/spec/vcr_cassettes/orders/housework_type_movingservices.yml +15 -16
- data/spec/vcr_cassettes/orders/housework_type_othercare.yml +15 -16
- data/spec/vcr_cassettes/orders/housework_type_othercosts.yml +15 -16
- data/spec/vcr_cassettes/orders/housework_type_paintingwallpapering.yml +15 -16
- data/spec/vcr_cassettes/orders/housework_type_snowplowing.yml +15 -16
- data/spec/vcr_cassettes/orders/housework_type_textileclothing.yml +15 -16
- data/spec/vcr_cassettes/orders/housework_type_tutoring.yml +11 -13
- data/spec/vcr_cassettes/orders/multi_param_find_by_hash.yml +13 -15
- data/spec/vcr_cassettes/orders/save_new.yml +16 -18
- data/spec/vcr_cassettes/orders/save_old.yml +16 -18
- data/spec/vcr_cassettes/orders/save_with_nested_model.yml +15 -16
- data/spec/vcr_cassettes/orders/search_by_name.yml +13 -17
- data/spec/vcr_cassettes/orders/search_miss.yml +10 -12
- data/spec/vcr_cassettes/orders/search_with_special_char.yml +10 -12
- data/spec/vcr_cassettes/orders/single_param_find_by_hash.yml +14 -16
- data/spec/vcr_cassettes/projects/all.yml +14 -37
- data/spec/vcr_cassettes/projects/find_by_hash_failure.yml +10 -12
- data/spec/vcr_cassettes/projects/find_failure.yml +10 -12
- data/spec/vcr_cassettes/projects/find_id_1.yml +13 -15
- data/spec/vcr_cassettes/projects/find_new.yml +14 -16
- data/spec/vcr_cassettes/projects/multi_param_find_by_hash.yml +15 -16
- data/spec/vcr_cassettes/projects/save_new.yml +13 -15
- data/spec/vcr_cassettes/projects/save_old.yml +14 -16
- data/spec/vcr_cassettes/projects/single_param_find_by_hash.yml +12 -14
- data/spec/vcr_cassettes/termsofpayments/all.yml +16 -23
- data/spec/vcr_cassettes/termsofpayments/find_failure.yml +10 -12
- data/spec/vcr_cassettes/termsofpayments/find_id_1.yml +13 -16
- data/spec/vcr_cassettes/termsofpayments/find_new.yml +12 -14
- data/spec/vcr_cassettes/termsofpayments/save_new.yml +12 -14
- data/spec/vcr_cassettes/termsofpayments/save_old.yml +12 -14
- data/spec/vcr_cassettes/units/all.yml +13 -24
- data/spec/vcr_cassettes/units/find_failure.yml +10 -12
- data/spec/vcr_cassettes/units/find_id_1.yml +13 -15
- data/spec/vcr_cassettes/units/find_new.yml +12 -14
- data/spec/vcr_cassettes/units/save_new.yml +12 -14
- data/spec/vcr_cassettes/units/save_old.yml +12 -14
- data/spec/vcr_cassettes/units/save_with_specially_named_attribute.yml +12 -14
- metadata +39 -230
- data/lib/fortnox/api/circular_queue.rb +0 -39
- data/spec/fortnox/api/circular_queue_spec.rb +0 -52
- data/spec/support/helpers/when_performing_helper.rb +0 -7
- data/temp.txt +0 -1
@@ -33,13 +33,13 @@ module Matchers
|
|
33
33
|
def rejects_non_string?
|
34
34
|
non_string = 10.0
|
35
35
|
@klass.new(@valid_hash.merge(@attribute => non_string))
|
36
|
-
rescue Fortnox::API::AttributeError =>
|
37
|
-
expected_message = "#{non_string.inspect} (#{non_string.class}) "\
|
36
|
+
rescue Fortnox::API::AttributeError => exception
|
37
|
+
expected_message = "#{non_string.inspect} (#{non_string.class}) " \
|
38
38
|
"has invalid type for #{@attribute.inspect}"
|
39
|
-
return true if
|
39
|
+
return true if exception.message.include?(expected_message)
|
40
40
|
|
41
|
-
fail_message = "Expected error message to include #{expected_message.inspect}, "\
|
42
|
-
"but was #{
|
41
|
+
fail_message = "Expected error message to include #{expected_message.inspect}, " \
|
42
|
+
"but was #{exception.message.inspect}"
|
43
43
|
raise(fail_message)
|
44
44
|
end
|
45
45
|
end
|
@@ -43,10 +43,10 @@ module Matchers
|
|
43
43
|
|
44
44
|
def includes_error_message
|
45
45
|
@klass.new(@invalid_hash)
|
46
|
-
rescue EXCEPTION =>
|
47
|
-
return true if
|
46
|
+
rescue EXCEPTION => exception
|
47
|
+
return true if exception.message.include? expected_error_message
|
48
48
|
|
49
|
-
@wrong_error_message =
|
49
|
+
@wrong_error_message = exception.message
|
50
50
|
false
|
51
51
|
end
|
52
52
|
|
@@ -55,12 +55,12 @@ module Matchers
|
|
55
55
|
end
|
56
56
|
|
57
57
|
def no_exception_failure_message
|
58
|
-
"Expected class to raise #{EXCEPTION} "\
|
58
|
+
"Expected class to raise #{EXCEPTION} " \
|
59
59
|
"when attribute #{@attribute.inspect} is missing."
|
60
60
|
end
|
61
61
|
|
62
62
|
def wrong_error_message
|
63
|
-
"Expected exception to equal #{expected_error_message.inspect}. "\
|
63
|
+
"Expected exception to equal #{expected_error_message.inspect}. " \
|
64
64
|
"Message was #{@wrong_error_message.inspect}."
|
65
65
|
end
|
66
66
|
end
|
@@ -21,7 +21,7 @@ module Matchers
|
|
21
21
|
def correct_type?
|
22
22
|
return true if expected_type?
|
23
23
|
|
24
|
-
@errors << "Attribute #{@attribute.inspect} was expected to be of type #{@attribute_type}, "\
|
24
|
+
@errors << "Attribute #{@attribute.inspect} was expected to be of type #{@attribute_type}, " \
|
25
25
|
"but was #{@actual_type}"
|
26
26
|
false
|
27
27
|
end
|
data/spec/support/vcr_setup.rb
CHANGED
@@ -5,4 +5,20 @@ require 'vcr'
|
|
5
5
|
VCR.configure do |c|
|
6
6
|
c.cassette_library_dir = 'spec/vcr_cassettes'
|
7
7
|
c.hook_into :webmock
|
8
|
+
c.filter_sensitive_data('<AUTHORIZATION>') do |interaction|
|
9
|
+
interaction.request.headers['Authorization']&.first
|
10
|
+
end
|
11
|
+
c.filter_sensitive_data('<REFRESH_TOKEN>') do |interaction|
|
12
|
+
interaction.request.body.split('&refresh_token=').last
|
13
|
+
end
|
14
|
+
c.filter_sensitive_data('<ACCESS_TOKEN>') do |interaction|
|
15
|
+
body = interaction.response.body
|
16
|
+
access_token = /"access_token":"[^"]*"/.match(body)
|
17
|
+
access_token ? access_token.to_s.split('"access_token":"').last.chop : ''
|
18
|
+
end
|
19
|
+
c.filter_sensitive_data('<REFRESH_TOKEN>') do |interaction|
|
20
|
+
body = interaction.response.body
|
21
|
+
refresh_token = /"refresh_token":"[^"]*"/.match(body)
|
22
|
+
refresh_token ? refresh_token.to_s.split('"refresh_token":"').last.chop : ''
|
23
|
+
end
|
8
24
|
end
|
@@ -11,10 +11,8 @@ http_interactions:
|
|
11
11
|
- application/json
|
12
12
|
Accept:
|
13
13
|
- application/json
|
14
|
-
|
15
|
-
-
|
16
|
-
Access-Token:
|
17
|
-
- ccaef817-d5d8-4b1c-a316-54f3e55c5c54
|
14
|
+
Authorization:
|
15
|
+
- "<AUTHORIZATION>"
|
18
16
|
Accept-Encoding:
|
19
17
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
18
|
User-Agent:
|
@@ -25,21 +23,21 @@ http_interactions:
|
|
25
23
|
message: OK
|
26
24
|
headers:
|
27
25
|
Content-Length:
|
28
|
-
- '
|
26
|
+
- '2040'
|
29
27
|
Content-Type:
|
30
28
|
- application/json
|
31
29
|
Date:
|
32
|
-
- Mon,
|
30
|
+
- Mon, 30 Jan 2023 10:35:04 GMT
|
33
31
|
Vary:
|
34
32
|
- Accept-Encoding
|
35
33
|
X-Build:
|
36
|
-
-
|
34
|
+
- 16d854443d
|
37
35
|
X-Frame-Options:
|
38
36
|
- sameorigin
|
39
37
|
X-Rack-Responsetime:
|
40
|
-
- '
|
38
|
+
- '99'
|
41
39
|
X-Uid:
|
42
|
-
-
|
40
|
+
- 97b8da1b
|
43
41
|
Server:
|
44
42
|
- Fortnox
|
45
43
|
X-Content-Type-Options:
|
@@ -53,42 +51,17 @@ http_interactions:
|
|
53
51
|
/api/cspreport;connect-src ''self'' https://a.storyblok.com wss://*.fortnox.se
|
54
52
|
*.fortnox.se *.findity.com mybusiness.pwc.se themes.googleusercontent.com
|
55
53
|
s3.amazonaws.com/helpjuice-static/ *.helpjuice.com *.vimeo.com fonts.googleapis.com
|
56
|
-
fonts.gstatic.com
|
57
|
-
|
54
|
+
fonts.gstatic.com api.cling.se wss://api.cling.se ''unsafe-inline'' ''unsafe-eval''
|
55
|
+
blob: data:'
|
58
56
|
Strict-Transport-Security:
|
59
57
|
- max-age=31536000; includeSubdomains
|
60
58
|
body:
|
61
59
|
encoding: ASCII-8BIT
|
62
|
-
string: '{"MetaInformation":{"@TotalResources":
|
63
|
-
|
64
|
-
|
65
|
-
article","DisposableQuantity":"0","EAN":"","Housework":false,"PurchasePrice":"0","SalesPrice":null,"QuantityInStock":"0","ReservedQuantity":"0","StockPlace":null,"StockValue":"0","Unit":"","VAT":null,"WebshopArticle":false},{"@url":"https:\/\/api.fortnox.se\/3\/articles\/
|
66
|
-
|
67
|
-
value","DisposableQuantity":"0","EAN":"","Housework":false,"PurchasePrice":"0","SalesPrice":null,"QuantityInStock":"0","ReservedQuantity":"0","StockPlace":null,"StockValue":"0","Unit":"","VAT":null,"WebshopArticle":false},{"@url":"https:\/\/api.fortnox.se\/3\/articles\/7","ArticleNumber":"7","Description":"Test
|
68
|
-
article","DisposableQuantity":"0","EAN":"5901234123457","Housework":false,"PurchasePrice":"0","SalesPrice":null,"QuantityInStock":"0","ReservedQuantity":"0","StockPlace":null,"StockValue":"0","Unit":"","VAT":null,"WebshopArticle":false},{"@url":"https:\/\/api.fortnox.se\/3\/articles\/8","ArticleNumber":"8","Description":"A
|
69
|
-
value","DisposableQuantity":"0","EAN":"","Housework":false,"PurchasePrice":"0","SalesPrice":null,"QuantityInStock":"0","ReservedQuantity":"0","StockPlace":null,"StockValue":"0","Unit":"","VAT":null,"WebshopArticle":false},{"@url":"https:\/\/api.fortnox.se\/3\/articles\/9","ArticleNumber":"9","Description":"A
|
70
|
-
value","DisposableQuantity":"0","EAN":"","Housework":false,"PurchasePrice":"0","SalesPrice":null,"QuantityInStock":"0","ReservedQuantity":"0","StockPlace":null,"StockValue":"0","Unit":"","VAT":null,"WebshopArticle":false},{"@url":"https:\/\/api.fortnox.se\/3\/articles\/10","ArticleNumber":"10","Description":"Abc
|
71
|
-
123","DisposableQuantity":"0","EAN":"","Housework":false,"PurchasePrice":"0","SalesPrice":null,"QuantityInStock":"0","ReservedQuantity":"0","StockPlace":null,"StockValue":"0","Unit":"","VAT":null,"WebshopArticle":false},{"@url":"https:\/\/api.fortnox.se\/3\/articles\/11","ArticleNumber":"11","Description":"A
|
72
|
-
value","DisposableQuantity":"0","EAN":"","Housework":false,"PurchasePrice":"0","SalesPrice":null,"QuantityInStock":"0","ReservedQuantity":"0","StockPlace":null,"StockValue":"0","Unit":"","VAT":null,"WebshopArticle":false},{"@url":"https:\/\/api.fortnox.se\/3\/articles\/12","ArticleNumber":"12","Description":"Test
|
73
|
-
article","DisposableQuantity":"0","EAN":"5901234123457","Housework":false,"PurchasePrice":"0","SalesPrice":null,"QuantityInStock":"0","ReservedQuantity":"0","StockPlace":null,"StockValue":"0","Unit":"","VAT":null,"WebshopArticle":false},{"@url":"https:\/\/api.fortnox.se\/3\/articles\/13","ArticleNumber":"13","Description":"Test
|
74
|
-
article","DisposableQuantity":"0","EAN":"5901234123457","Housework":false,"PurchasePrice":"0","SalesPrice":null,"QuantityInStock":"0","ReservedQuantity":"0","StockPlace":null,"StockValue":"0","Unit":"","VAT":null,"WebshopArticle":false},{"@url":"https:\/\/api.fortnox.se\/3\/articles\/14","ArticleNumber":"14","Description":"A
|
75
|
-
value","DisposableQuantity":"0","EAN":"","Housework":false,"PurchasePrice":"0","SalesPrice":null,"QuantityInStock":"0","ReservedQuantity":"0","StockPlace":null,"StockValue":"0","Unit":null,"VAT":null,"WebshopArticle":false},{"@url":"https:\/\/api.fortnox.se\/3\/articles\/15","ArticleNumber":"15","Description":"A
|
76
|
-
value","DisposableQuantity":"0","EAN":"","Housework":false,"PurchasePrice":"0","SalesPrice":null,"QuantityInStock":"0","ReservedQuantity":"0","StockPlace":null,"StockValue":"0","Unit":"","VAT":null,"WebshopArticle":false},{"@url":"https:\/\/api.fortnox.se\/3\/articles\/16","ArticleNumber":"16","Description":"Test
|
77
|
-
article","DisposableQuantity":"0","EAN":"5901234123457","Housework":false,"PurchasePrice":"0","SalesPrice":null,"QuantityInStock":"0","ReservedQuantity":"0","StockPlace":null,"StockValue":"0","Unit":"","VAT":null,"WebshopArticle":false},{"@url":"https:\/\/api.fortnox.se\/3\/articles\/17","ArticleNumber":"17","Description":"A
|
78
|
-
value","DisposableQuantity":"0","EAN":"","Housework":false,"PurchasePrice":"0","SalesPrice":null,"QuantityInStock":"0","ReservedQuantity":"0","StockPlace":null,"StockValue":"0","Unit":"","VAT":null,"WebshopArticle":false},{"@url":"https:\/\/api.fortnox.se\/3\/articles\/18","ArticleNumber":"18","Description":"Updated
|
79
|
-
description","DisposableQuantity":"0","EAN":"","Housework":false,"PurchasePrice":"0","SalesPrice":null,"QuantityInStock":"0","ReservedQuantity":"0","StockPlace":null,"StockValue":"0","Unit":null,"VAT":null,"WebshopArticle":false},{"@url":"https:\/\/api.fortnox.se\/3\/articles\/19","ArticleNumber":"19","Description":"Updated
|
80
|
-
description","DisposableQuantity":"0","EAN":"","Housework":false,"PurchasePrice":"0","SalesPrice":null,"QuantityInStock":"0","ReservedQuantity":"0","StockPlace":null,"StockValue":"0","Unit":null,"VAT":null,"WebshopArticle":false},{"@url":"https:\/\/api.fortnox.se\/3\/articles\/20","ArticleNumber":"20","Description":"Test
|
81
|
-
article","DisposableQuantity":"0","EAN":"5901234123457","Housework":false,"PurchasePrice":"0","SalesPrice":null,"QuantityInStock":"0","ReservedQuantity":"0","StockPlace":null,"StockValue":"0","Unit":"","VAT":null,"WebshopArticle":false},{"@url":"https:\/\/api.fortnox.se\/3\/articles\/21","ArticleNumber":"21","Description":"Updated
|
82
|
-
description","DisposableQuantity":"0","EAN":"","Housework":false,"PurchasePrice":"0","SalesPrice":null,"QuantityInStock":"0","ReservedQuantity":"0","StockPlace":null,"StockValue":"0","Unit":null,"VAT":null,"WebshopArticle":false},{"@url":"https:\/\/api.fortnox.se\/3\/articles\/22","ArticleNumber":"22","Description":"Test
|
83
|
-
article","DisposableQuantity":"0","EAN":"5901234123457","Housework":false,"PurchasePrice":"0","SalesPrice":null,"QuantityInStock":"0","ReservedQuantity":"0","StockPlace":null,"StockValue":"0","Unit":"","VAT":null,"WebshopArticle":false},{"@url":"https:\/\/api.fortnox.se\/3\/articles\/23","ArticleNumber":"23","Description":"Updated
|
84
|
-
description","DisposableQuantity":"0","EAN":"","Housework":false,"PurchasePrice":"0","SalesPrice":null,"QuantityInStock":"0","ReservedQuantity":"0","StockPlace":null,"StockValue":"0","Unit":null,"VAT":null,"WebshopArticle":false},{"@url":"https:\/\/api.fortnox.se\/3\/articles\/24","ArticleNumber":"24","Description":"Test
|
85
|
-
article","DisposableQuantity":"0","EAN":"5901234123457","Housework":false,"PurchasePrice":"0","SalesPrice":null,"QuantityInStock":"0","ReservedQuantity":"0","StockPlace":null,"StockValue":"0","Unit":"","VAT":null,"WebshopArticle":false},{"@url":"https:\/\/api.fortnox.se\/3\/articles\/25","ArticleNumber":"25","Description":"A
|
86
|
-
value","DisposableQuantity":"0","EAN":"","Housework":false,"PurchasePrice":"0","SalesPrice":null,"QuantityInStock":"0","ReservedQuantity":"0","StockPlace":null,"StockValue":"0","Unit":"","VAT":null,"WebshopArticle":false},{"@url":"https:\/\/api.fortnox.se\/3\/articles\/26","ArticleNumber":"26","Description":"Updated
|
87
|
-
description","DisposableQuantity":"0","EAN":"","Housework":false,"PurchasePrice":"0","SalesPrice":null,"QuantityInStock":"0","ReservedQuantity":"0","StockPlace":null,"StockValue":"0","Unit":null,"VAT":null,"WebshopArticle":false},{"@url":"https:\/\/api.fortnox.se\/3\/articles\/27","ArticleNumber":"27","Description":"Test
|
88
|
-
article","DisposableQuantity":"0","EAN":"5901234123457","Housework":false,"PurchasePrice":"0","SalesPrice":null,"QuantityInStock":"0","ReservedQuantity":"0","StockPlace":null,"StockValue":"0","Unit":"","VAT":null,"WebshopArticle":false},{"@url":"https:\/\/api.fortnox.se\/3\/articles\/28","ArticleNumber":"28","Description":"Updated
|
89
|
-
description","DisposableQuantity":"0","EAN":"","Housework":false,"PurchasePrice":"0","SalesPrice":null,"QuantityInStock":"0","ReservedQuantity":"0","StockPlace":null,"StockValue":"0","Unit":null,"VAT":null,"WebshopArticle":false},{"@url":"https:\/\/api.fortnox.se\/3\/articles\/29","ArticleNumber":"29","Description":"Test
|
90
|
-
article","DisposableQuantity":"0","EAN":"5901234123457","Housework":false,"PurchasePrice":"0","SalesPrice":null,"QuantityInStock":"0","ReservedQuantity":"0","StockPlace":null,"StockValue":"0","Unit":"","VAT":null,"WebshopArticle":false},{"@url":"https:\/\/api.fortnox.se\/3\/articles\/30","ArticleNumber":"30","Description":"Updated
|
91
|
-
description","DisposableQuantity":"0","EAN":"","Housework":false,"PurchasePrice":"0","SalesPrice":null,"QuantityInStock":"0","ReservedQuantity":"0","StockPlace":null,"StockValue":"0","Unit":null,"VAT":null,"WebshopArticle":false},{"@url":"https:\/\/api.fortnox.se\/3\/articles\/31","ArticleNumber":"31","Description":"Test
|
60
|
+
string: '{"MetaInformation":{"@TotalResources":6,"@TotalPages":1,"@CurrentPage":1},"Articles":[{"@url":"https:\/\/api.fortnox.se\/3\/articles\/1","ArticleNumber":"1","Description":"Test
|
61
|
+
article","DisposableQuantity":"0","EAN":"5901234123457","Housework":false,"PurchasePrice":"0","SalesPrice":null,"QuantityInStock":"0","ReservedQuantity":"0","StockPlace":null,"StockValue":"0","Unit":"","VAT":null,"WebshopArticle":false},{"@url":"https:\/\/api.fortnox.se\/3\/articles\/2","ArticleNumber":"2","Description":"Updated
|
62
|
+
description","DisposableQuantity":"0","EAN":"","Housework":false,"PurchasePrice":"0","SalesPrice":null,"QuantityInStock":"0","ReservedQuantity":"0","StockPlace":null,"StockValue":"0","Unit":null,"VAT":null,"WebshopArticle":false},{"@url":"https:\/\/api.fortnox.se\/3\/articles\/3","ArticleNumber":"3","Description":"Test
|
63
|
+
article","DisposableQuantity":"0","EAN":"5901234123457","Housework":false,"PurchasePrice":"0","SalesPrice":null,"QuantityInStock":"0","ReservedQuantity":"0","StockPlace":null,"StockValue":"0","Unit":"","VAT":null,"WebshopArticle":false},{"@url":"https:\/\/api.fortnox.se\/3\/articles\/101","ArticleNumber":"101","Description":"Hammer","DisposableQuantity":"0","EAN":"","Housework":false,"PurchasePrice":"0","SalesPrice":null,"QuantityInStock":"0","ReservedQuantity":"0","StockPlace":"","StockValue":"0","Unit":null,"VAT":null,"WebshopArticle":false},{"@url":"https:\/\/api.fortnox.se\/3\/articles\/102","ArticleNumber":"102","Description":"Updated
|
64
|
+
description","DisposableQuantity":"0","EAN":"","Housework":false,"PurchasePrice":"0","SalesPrice":null,"QuantityInStock":"0","ReservedQuantity":"0","StockPlace":null,"StockValue":"0","Unit":null,"VAT":null,"WebshopArticle":false},{"@url":"https:\/\/api.fortnox.se\/3\/articles\/103","ArticleNumber":"103","Description":"Test
|
92
65
|
article","DisposableQuantity":"0","EAN":"5901234123457","Housework":false,"PurchasePrice":"0","SalesPrice":null,"QuantityInStock":"0","ReservedQuantity":"0","StockPlace":null,"StockValue":"0","Unit":"","VAT":null,"WebshopArticle":false}]}'
|
93
|
-
recorded_at: Mon,
|
94
|
-
recorded_with: VCR 6.
|
66
|
+
recorded_at: Mon, 30 Jan 2023 10:35:04 GMT
|
67
|
+
recorded_with: VCR 6.1.0
|
@@ -11,10 +11,8 @@ http_interactions:
|
|
11
11
|
- application/json
|
12
12
|
Accept:
|
13
13
|
- application/json
|
14
|
-
|
15
|
-
-
|
16
|
-
Access-Token:
|
17
|
-
- ccaef817-d5d8-4b1c-a316-54f3e55c5c54
|
14
|
+
Authorization:
|
15
|
+
- "<AUTHORIZATION>"
|
18
16
|
Accept-Encoding:
|
19
17
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
18
|
User-Agent:
|
@@ -29,17 +27,17 @@ http_interactions:
|
|
29
27
|
Content-Type:
|
30
28
|
- application/json
|
31
29
|
Date:
|
32
|
-
- Mon,
|
30
|
+
- Mon, 30 Jan 2023 10:35:05 GMT
|
33
31
|
Vary:
|
34
32
|
- Accept-Encoding
|
35
33
|
X-Build:
|
36
|
-
-
|
34
|
+
- 16d854443d
|
37
35
|
X-Frame-Options:
|
38
36
|
- sameorigin
|
39
37
|
X-Rack-Responsetime:
|
40
|
-
- '
|
38
|
+
- '73'
|
41
39
|
X-Uid:
|
42
|
-
-
|
40
|
+
- 90a7ad19
|
43
41
|
Server:
|
44
42
|
- Fortnox
|
45
43
|
X-Content-Type-Options:
|
@@ -53,12 +51,12 @@ http_interactions:
|
|
53
51
|
/api/cspreport;connect-src ''self'' https://a.storyblok.com wss://*.fortnox.se
|
54
52
|
*.fortnox.se *.findity.com mybusiness.pwc.se themes.googleusercontent.com
|
55
53
|
s3.amazonaws.com/helpjuice-static/ *.helpjuice.com *.vimeo.com fonts.googleapis.com
|
56
|
-
fonts.gstatic.com
|
57
|
-
|
54
|
+
fonts.gstatic.com api.cling.se wss://api.cling.se ''unsafe-inline'' ''unsafe-eval''
|
55
|
+
blob: data:'
|
58
56
|
Strict-Transport-Security:
|
59
57
|
- max-age=31536000; includeSubdomains
|
60
58
|
body:
|
61
59
|
encoding: ASCII-8BIT
|
62
60
|
string: '{"MetaInformation":{"@TotalResources":0,"@TotalPages":0,"@CurrentPage":1},"Articles":[]}'
|
63
|
-
recorded_at: Mon,
|
64
|
-
recorded_with: VCR 6.
|
61
|
+
recorded_at: Mon, 30 Jan 2023 10:35:05 GMT
|
62
|
+
recorded_with: VCR 6.1.0
|
@@ -11,10 +11,8 @@ http_interactions:
|
|
11
11
|
- application/json
|
12
12
|
Accept:
|
13
13
|
- application/json
|
14
|
-
|
15
|
-
-
|
16
|
-
Access-Token:
|
17
|
-
- ccaef817-d5d8-4b1c-a316-54f3e55c5c54
|
14
|
+
Authorization:
|
15
|
+
- "<AUTHORIZATION>"
|
18
16
|
Accept-Encoding:
|
19
17
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
18
|
User-Agent:
|
@@ -29,17 +27,17 @@ http_interactions:
|
|
29
27
|
Content-Type:
|
30
28
|
- application/json
|
31
29
|
Date:
|
32
|
-
- Mon,
|
30
|
+
- Mon, 30 Jan 2023 10:35:05 GMT
|
33
31
|
Vary:
|
34
32
|
- Accept-Encoding
|
35
33
|
X-Build:
|
36
|
-
-
|
34
|
+
- 16d854443d
|
37
35
|
X-Frame-Options:
|
38
36
|
- sameorigin
|
39
37
|
X-Rack-Responsetime:
|
40
|
-
- '
|
38
|
+
- '85'
|
41
39
|
X-Uid:
|
42
|
-
-
|
40
|
+
- 306179db
|
43
41
|
Server:
|
44
42
|
- Fortnox
|
45
43
|
X-Content-Type-Options:
|
@@ -53,12 +51,12 @@ http_interactions:
|
|
53
51
|
/api/cspreport;connect-src ''self'' https://a.storyblok.com wss://*.fortnox.se
|
54
52
|
*.fortnox.se *.findity.com mybusiness.pwc.se themes.googleusercontent.com
|
55
53
|
s3.amazonaws.com/helpjuice-static/ *.helpjuice.com *.vimeo.com fonts.googleapis.com
|
56
|
-
fonts.gstatic.com
|
57
|
-
|
54
|
+
fonts.gstatic.com api.cling.se wss://api.cling.se ''unsafe-inline'' ''unsafe-eval''
|
55
|
+
blob: data:'
|
58
56
|
Strict-Transport-Security:
|
59
57
|
- max-age=31536000; includeSubdomains
|
60
58
|
body:
|
61
59
|
encoding: ASCII-8BIT
|
62
60
|
string: '{"ErrorInformation":{"Error":1,"Message":"Kan inte hitta artikeln.","Code":2000428}}'
|
63
|
-
recorded_at: Mon,
|
64
|
-
recorded_with: VCR 6.
|
61
|
+
recorded_at: Mon, 30 Jan 2023 10:35:05 GMT
|
62
|
+
recorded_with: VCR 6.1.0
|
@@ -11,10 +11,8 @@ http_interactions:
|
|
11
11
|
- application/json
|
12
12
|
Accept:
|
13
13
|
- application/json
|
14
|
-
|
15
|
-
-
|
16
|
-
Access-Token:
|
17
|
-
- ccaef817-d5d8-4b1c-a316-54f3e55c5c54
|
14
|
+
Authorization:
|
15
|
+
- "<AUTHORIZATION>"
|
18
16
|
Accept-Encoding:
|
19
17
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
18
|
User-Agent:
|
@@ -25,21 +23,21 @@ http_interactions:
|
|
25
23
|
message: OK
|
26
24
|
headers:
|
27
25
|
Content-Length:
|
28
|
-
- '
|
26
|
+
- '896'
|
29
27
|
Content-Type:
|
30
28
|
- application/json
|
31
29
|
Date:
|
32
|
-
- Mon,
|
30
|
+
- Mon, 30 Jan 2023 10:35:04 GMT
|
33
31
|
Vary:
|
34
32
|
- Accept-Encoding
|
35
33
|
X-Build:
|
36
|
-
-
|
34
|
+
- 16d854443d
|
37
35
|
X-Frame-Options:
|
38
36
|
- sameorigin
|
39
37
|
X-Rack-Responsetime:
|
40
|
-
- '
|
38
|
+
- '91'
|
41
39
|
X-Uid:
|
42
|
-
-
|
40
|
+
- '71616897'
|
43
41
|
Server:
|
44
42
|
- Fortnox
|
45
43
|
X-Content-Type-Options:
|
@@ -53,12 +51,13 @@ http_interactions:
|
|
53
51
|
/api/cspreport;connect-src ''self'' https://a.storyblok.com wss://*.fortnox.se
|
54
52
|
*.fortnox.se *.findity.com mybusiness.pwc.se themes.googleusercontent.com
|
55
53
|
s3.amazonaws.com/helpjuice-static/ *.helpjuice.com *.vimeo.com fonts.googleapis.com
|
56
|
-
fonts.gstatic.com
|
57
|
-
|
54
|
+
fonts.gstatic.com api.cling.se wss://api.cling.se ''unsafe-inline'' ''unsafe-eval''
|
55
|
+
blob: data:'
|
58
56
|
Strict-Transport-Security:
|
59
57
|
- max-age=31536000; includeSubdomains
|
60
58
|
body:
|
61
59
|
encoding: ASCII-8BIT
|
62
|
-
string: '{"Article":{"@url":"https:\/\/api.fortnox.se\/3\/articles\/1","ArticleNumber":"1","Bulky":false,"ConstructionAccount":
|
63
|
-
|
64
|
-
|
60
|
+
string: '{"Article":{"@url":"https:\/\/api.fortnox.se\/3\/articles\/1","ArticleNumber":"1","Bulky":false,"ConstructionAccount":0,"Depth":0,"Description":"Test
|
61
|
+
article","DisposableQuantity":0,"EAN":"5901234123457","EUAccount":3108,"EUVATAccount":3106,"ExportAccount":3105,"Height":0,"Housework":false,"HouseworkType":null,"Active":true,"Manufacturer":null,"ManufacturerArticleNumber":"","Note":"","PurchaseAccount":4000,"PurchasePrice":0,"QuantityInStock":0,"ReservedQuantity":0,"SalesAccount":3004,"StockGoods":false,"StockPlace":null,"StockValue":0,"StockWarning":0,"SupplierName":null,"SupplierNumber":null,"Type":"STOCK","Unit":null,"VAT":0,"WebshopArticle":false,"Weight":0,"Width":0,"Expired":false,"SalesPrice":null,"CostCalculationMethod":null,"StockAccount":null,"StockChangeAccount":null,"DirectCost":null,"FreightCost":null,"OtherCost":null,"DefaultStockPoint":null,"DefaultStockLocation":null}}'
|
62
|
+
recorded_at: Mon, 30 Jan 2023 10:35:04 GMT
|
63
|
+
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/articles/
|
5
|
+
uri: https://api.fortnox.se/3/articles/102
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -11,10 +11,8 @@ http_interactions:
|
|
11
11
|
- application/json
|
12
12
|
Accept:
|
13
13
|
- application/json
|
14
|
-
|
15
|
-
-
|
16
|
-
Access-Token:
|
17
|
-
- ccaef817-d5d8-4b1c-a316-54f3e55c5c54
|
14
|
+
Authorization:
|
15
|
+
- "<AUTHORIZATION>"
|
18
16
|
Accept-Encoding:
|
19
17
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
18
|
User-Agent:
|
@@ -25,21 +23,21 @@ http_interactions:
|
|
25
23
|
message: OK
|
26
24
|
headers:
|
27
25
|
Content-Length:
|
28
|
-
- '
|
26
|
+
- '882'
|
29
27
|
Content-Type:
|
30
28
|
- application/json
|
31
29
|
Date:
|
32
|
-
- Mon,
|
30
|
+
- Mon, 30 Jan 2023 10:35:04 GMT
|
33
31
|
Vary:
|
34
32
|
- Accept-Encoding
|
35
33
|
X-Build:
|
36
|
-
-
|
34
|
+
- 16d854443d
|
37
35
|
X-Frame-Options:
|
38
36
|
- sameorigin
|
39
37
|
X-Rack-Responsetime:
|
40
|
-
- '
|
38
|
+
- '111'
|
41
39
|
X-Uid:
|
42
|
-
-
|
40
|
+
- f254424d
|
43
41
|
Server:
|
44
42
|
- Fortnox
|
45
43
|
X-Content-Type-Options:
|
@@ -53,13 +51,13 @@ http_interactions:
|
|
53
51
|
/api/cspreport;connect-src ''self'' https://a.storyblok.com wss://*.fortnox.se
|
54
52
|
*.fortnox.se *.findity.com mybusiness.pwc.se themes.googleusercontent.com
|
55
53
|
s3.amazonaws.com/helpjuice-static/ *.helpjuice.com *.vimeo.com fonts.googleapis.com
|
56
|
-
fonts.gstatic.com
|
57
|
-
|
54
|
+
fonts.gstatic.com api.cling.se wss://api.cling.se ''unsafe-inline'' ''unsafe-eval''
|
55
|
+
blob: data:'
|
58
56
|
Strict-Transport-Security:
|
59
57
|
- max-age=31536000; includeSubdomains
|
60
58
|
body:
|
61
59
|
encoding: ASCII-8BIT
|
62
|
-
string: '{"Article":{"@url":"https:\/\/api.fortnox.se\/3\/articles\/
|
63
|
-
value","DisposableQuantity":0,"EAN":"","EUAccount":
|
64
|
-
recorded_at: Mon,
|
65
|
-
recorded_with: VCR 6.
|
60
|
+
string: '{"Article":{"@url":"https:\/\/api.fortnox.se\/3\/articles\/102","ArticleNumber":"102","Bulky":false,"ConstructionAccount":0,"Depth":0,"Description":"A
|
61
|
+
value","DisposableQuantity":0,"EAN":"","EUAccount":3108,"EUVATAccount":3106,"ExportAccount":3105,"Height":0,"Housework":false,"HouseworkType":null,"Active":true,"Manufacturer":null,"ManufacturerArticleNumber":"","Note":"","PurchaseAccount":4000,"PurchasePrice":0,"QuantityInStock":0,"ReservedQuantity":0,"SalesAccount":1250,"StockGoods":false,"StockPlace":null,"StockValue":0,"StockWarning":0,"SupplierName":null,"SupplierNumber":null,"Type":"STOCK","Unit":null,"VAT":0,"WebshopArticle":false,"Weight":0,"Width":0,"Expired":false,"SalesPrice":null,"CostCalculationMethod":null,"StockAccount":null,"StockChangeAccount":null,"DirectCost":null,"FreightCost":null,"OtherCost":null,"DefaultStockPoint":null,"DefaultStockLocation":null}}'
|
62
|
+
recorded_at: Mon, 30 Jan 2023 10:35:04 GMT
|
63
|
+
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/articles/?articlenumber=
|
5
|
+
uri: https://api.fortnox.se/3/articles/?articlenumber=101&description=Hammer
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -11,10 +11,8 @@ http_interactions:
|
|
11
11
|
- application/json
|
12
12
|
Accept:
|
13
13
|
- application/json
|
14
|
-
|
15
|
-
-
|
16
|
-
Access-Token:
|
17
|
-
- ccaef817-d5d8-4b1c-a316-54f3e55c5c54
|
14
|
+
Authorization:
|
15
|
+
- "<AUTHORIZATION>"
|
18
16
|
Accept-Encoding:
|
19
17
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
18
|
User-Agent:
|
@@ -25,21 +23,21 @@ http_interactions:
|
|
25
23
|
message: OK
|
26
24
|
headers:
|
27
25
|
Content-Length:
|
28
|
-
- '
|
26
|
+
- '400'
|
29
27
|
Content-Type:
|
30
28
|
- application/json
|
31
29
|
Date:
|
32
|
-
- Mon,
|
30
|
+
- Mon, 30 Jan 2023 10:35:05 GMT
|
33
31
|
Vary:
|
34
32
|
- Accept-Encoding
|
35
33
|
X-Build:
|
36
|
-
-
|
34
|
+
- 16d854443d
|
37
35
|
X-Frame-Options:
|
38
36
|
- sameorigin
|
39
37
|
X-Rack-Responsetime:
|
40
|
-
- '
|
38
|
+
- '82'
|
41
39
|
X-Uid:
|
42
|
-
-
|
40
|
+
- 4fbbe90e
|
43
41
|
Server:
|
44
42
|
- Fortnox
|
45
43
|
X-Content-Type-Options:
|
@@ -53,12 +51,12 @@ http_interactions:
|
|
53
51
|
/api/cspreport;connect-src ''self'' https://a.storyblok.com wss://*.fortnox.se
|
54
52
|
*.fortnox.se *.findity.com mybusiness.pwc.se themes.googleusercontent.com
|
55
53
|
s3.amazonaws.com/helpjuice-static/ *.helpjuice.com *.vimeo.com fonts.googleapis.com
|
56
|
-
fonts.gstatic.com
|
57
|
-
|
54
|
+
fonts.gstatic.com api.cling.se wss://api.cling.se ''unsafe-inline'' ''unsafe-eval''
|
55
|
+
blob: data:'
|
58
56
|
Strict-Transport-Security:
|
59
57
|
- max-age=31536000; includeSubdomains
|
60
58
|
body:
|
61
59
|
encoding: ASCII-8BIT
|
62
|
-
string: '{"MetaInformation":{"@TotalResources":1,"@TotalPages":1,"@CurrentPage":1},"Articles":[{"@url":"https:\/\/api.fortnox.se\/3\/articles\/
|
63
|
-
recorded_at: Mon,
|
64
|
-
recorded_with: VCR 6.
|
60
|
+
string: '{"MetaInformation":{"@TotalResources":1,"@TotalPages":1,"@CurrentPage":1},"Articles":[{"@url":"https:\/\/api.fortnox.se\/3\/articles\/101","ArticleNumber":"101","Description":"Hammer","DisposableQuantity":"0","EAN":"","Housework":false,"PurchasePrice":"0","SalesPrice":null,"QuantityInStock":"0","ReservedQuantity":"0","StockPlace":"","StockValue":"0","Unit":null,"VAT":null,"WebshopArticle":false}]}'
|
61
|
+
recorded_at: Mon, 30 Jan 2023 10:35:05 GMT
|
62
|
+
recorded_with: VCR 6.1.0
|
@@ -11,10 +11,8 @@ http_interactions:
|
|
11
11
|
- application/json
|
12
12
|
Accept:
|
13
13
|
- application/json
|
14
|
-
|
15
|
-
-
|
16
|
-
Access-Token:
|
17
|
-
- ccaef817-d5d8-4b1c-a316-54f3e55c5c54
|
14
|
+
Authorization:
|
15
|
+
- "<AUTHORIZATION>"
|
18
16
|
Accept-Encoding:
|
19
17
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
18
|
User-Agent:
|
@@ -25,21 +23,21 @@ http_interactions:
|
|
25
23
|
message: Created
|
26
24
|
headers:
|
27
25
|
Content-Length:
|
28
|
-
- '
|
26
|
+
- '882'
|
29
27
|
Content-Type:
|
30
28
|
- application/json
|
31
29
|
Date:
|
32
|
-
- Mon,
|
30
|
+
- Mon, 30 Jan 2023 10:35:03 GMT
|
33
31
|
Location:
|
34
32
|
- articles
|
35
33
|
X-Build:
|
36
|
-
-
|
34
|
+
- 16d854443d
|
37
35
|
X-Frame-Options:
|
38
36
|
- sameorigin
|
39
37
|
X-Rack-Responsetime:
|
40
|
-
- '
|
38
|
+
- '123'
|
41
39
|
X-Uid:
|
42
|
-
-
|
40
|
+
- 9425a369
|
43
41
|
Server:
|
44
42
|
- Fortnox
|
45
43
|
X-Content-Type-Options:
|
@@ -53,13 +51,13 @@ http_interactions:
|
|
53
51
|
/api/cspreport;connect-src ''self'' https://a.storyblok.com wss://*.fortnox.se
|
54
52
|
*.fortnox.se *.findity.com mybusiness.pwc.se themes.googleusercontent.com
|
55
53
|
s3.amazonaws.com/helpjuice-static/ *.helpjuice.com *.vimeo.com fonts.googleapis.com
|
56
|
-
fonts.gstatic.com
|
57
|
-
|
54
|
+
fonts.gstatic.com api.cling.se wss://api.cling.se ''unsafe-inline'' ''unsafe-eval''
|
55
|
+
blob: data:'
|
58
56
|
Strict-Transport-Security:
|
59
57
|
- max-age=31536000; includeSubdomains
|
60
58
|
body:
|
61
59
|
encoding: UTF-8
|
62
|
-
string: '{"Article":{"@url":"https:\/\/api.fortnox.se\/3\/articles\/
|
63
|
-
value","DisposableQuantity":0,"EAN":"","EUAccount":
|
64
|
-
recorded_at: Mon,
|
65
|
-
recorded_with: VCR 6.
|
60
|
+
string: '{"Article":{"@url":"https:\/\/api.fortnox.se\/3\/articles\/102","ArticleNumber":"102","Bulky":false,"ConstructionAccount":0,"Depth":0,"Description":"A
|
61
|
+
value","DisposableQuantity":0,"EAN":"","EUAccount":3108,"EUVATAccount":3106,"ExportAccount":3105,"Height":0,"Housework":false,"HouseworkType":null,"Active":true,"Manufacturer":null,"ManufacturerArticleNumber":"","Note":"","PurchaseAccount":4000,"PurchasePrice":0,"QuantityInStock":0,"ReservedQuantity":0,"SalesAccount":1250,"StockGoods":false,"StockPlace":null,"StockValue":0,"StockWarning":0,"SupplierName":null,"SupplierNumber":null,"Type":"STOCK","Unit":null,"VAT":0,"WebshopArticle":false,"Weight":0,"Width":0,"Expired":false,"SalesPrice":null,"CostCalculationMethod":null,"StockAccount":null,"StockChangeAccount":null,"DirectCost":null,"FreightCost":null,"OtherCost":null,"DefaultStockPoint":null,"DefaultStockLocation":null}}'
|
62
|
+
recorded_at: Mon, 30 Jan 2023 10:35:03 GMT
|
63
|
+
recorded_with: VCR 6.1.0
|