fortnox-api 0.7.2 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (139) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +1 -1
  3. data/.travis.yml +3 -10
  4. data/CHANGELOG.md +10 -0
  5. data/README.md +7 -4
  6. data/Rakefile +5 -0
  7. data/fortnox-api.gemspec +2 -2
  8. data/lib/fortnox/api/mappers/base/from_json.rb +2 -2
  9. data/lib/fortnox/api/models/document.rb +3 -0
  10. data/lib/fortnox/api/types.rb +6 -1
  11. data/lib/fortnox/api/types/enums.rb +36 -8
  12. data/lib/fortnox/api/version.rb +1 -1
  13. data/spec/fortnox/api/circular_queue_spec.rb +3 -3
  14. data/spec/fortnox/api/repositories/article_spec.rb +1 -1
  15. data/spec/fortnox/api/repositories/customer_spec.rb +1 -1
  16. data/spec/fortnox/api/repositories/invoice_spec.rb +13 -13
  17. data/spec/fortnox/api/repositories/project_spec.rb +1 -1
  18. data/spec/fortnox/api/repositories/terms_of_payment_spec.rb +2 -2
  19. data/spec/fortnox/api/repositories/unit_spec.rb +3 -3
  20. data/spec/fortnox/api/types/enums_spec.rb +1 -0
  21. data/spec/fortnox/api/types/housework_types_spec.rb +151 -34
  22. data/spec/vcr_cassettes/articles/all.yml +25 -9
  23. data/spec/vcr_cassettes/articles/find_by_hash_failure.yml +20 -7
  24. data/spec/vcr_cassettes/articles/find_failure.yml +20 -7
  25. data/spec/vcr_cassettes/articles/find_id_1.yml +21 -8
  26. data/spec/vcr_cassettes/articles/find_new.yml +23 -10
  27. data/spec/vcr_cassettes/articles/multi_param_find_by_hash.yml +20 -7
  28. data/spec/vcr_cassettes/articles/save_new.yml +21 -7
  29. data/spec/vcr_cassettes/articles/save_old.yml +23 -10
  30. data/spec/vcr_cassettes/articles/save_with_specially_named_attribute.yml +21 -7
  31. data/spec/vcr_cassettes/articles/search_by_name.yml +20 -7
  32. data/spec/vcr_cassettes/articles/search_miss.yml +20 -7
  33. data/spec/vcr_cassettes/articles/search_with_special_char.yml +20 -7
  34. data/spec/vcr_cassettes/articles/single_param_find_by_hash.yml +21 -8
  35. data/spec/vcr_cassettes/customers/all.yml +22 -9
  36. data/spec/vcr_cassettes/customers/find_by_hash_failure.yml +20 -7
  37. data/spec/vcr_cassettes/customers/find_failure.yml +20 -7
  38. data/spec/vcr_cassettes/customers/find_id_1.yml +20 -7
  39. data/spec/vcr_cassettes/customers/find_new.yml +22 -9
  40. data/spec/vcr_cassettes/customers/multi_param_find_by_hash.yml +20 -7
  41. data/spec/vcr_cassettes/customers/save_new.yml +20 -6
  42. data/spec/vcr_cassettes/customers/save_new_with_country_code_SE.yml +10 -6
  43. data/spec/vcr_cassettes/customers/save_old.yml +22 -9
  44. data/spec/vcr_cassettes/customers/save_with_specially_named_attribute.yml +20 -6
  45. data/spec/vcr_cassettes/customers/search_by_name.yml +22 -8
  46. data/spec/vcr_cassettes/customers/search_miss.yml +20 -7
  47. data/spec/vcr_cassettes/customers/search_with_special_char.yml +19 -6
  48. data/spec/vcr_cassettes/customers/single_param_find_by_hash.yml +20 -7
  49. data/spec/vcr_cassettes/invoices/all.yml +25 -9
  50. data/spec/vcr_cassettes/invoices/filter_hit.yml +20 -7
  51. data/spec/vcr_cassettes/invoices/filter_invalid.yml +19 -5
  52. data/spec/vcr_cassettes/invoices/find_by_hash_failure.yml +20 -7
  53. data/spec/vcr_cassettes/invoices/find_failure.yml +19 -6
  54. data/spec/vcr_cassettes/invoices/find_id_1.yml +22 -9
  55. data/spec/vcr_cassettes/invoices/find_new.yml +24 -11
  56. data/spec/vcr_cassettes/invoices/multi_param_find_by_hash.yml +20 -7
  57. data/spec/vcr_cassettes/invoices/save_new.yml +22 -8
  58. data/spec/vcr_cassettes/invoices/save_new_with_comments.yml +22 -8
  59. data/spec/vcr_cassettes/invoices/save_new_with_country.yml +12 -8
  60. data/spec/vcr_cassettes/invoices/save_new_with_country_GB.yml +12 -8
  61. data/spec/vcr_cassettes/invoices/save_new_with_country_KR.yml +12 -8
  62. data/spec/vcr_cassettes/invoices/save_new_with_country_Norge.yml +12 -8
  63. data/spec/vcr_cassettes/invoices/save_new_with_country_Norway.yml +12 -8
  64. data/spec/vcr_cassettes/invoices/save_new_with_country_Sverige.yml +12 -8
  65. data/spec/vcr_cassettes/invoices/save_new_with_country_VA.yml +12 -8
  66. data/spec/vcr_cassettes/invoices/save_new_with_country_VI.yml +12 -8
  67. data/spec/vcr_cassettes/invoices/save_new_with_country_empty_string.yml +12 -8
  68. data/spec/vcr_cassettes/invoices/save_new_with_country_nil.yml +12 -8
  69. data/spec/vcr_cassettes/invoices/save_old.yml +24 -11
  70. data/spec/vcr_cassettes/invoices/save_old_with_empty_comments.yml +24 -11
  71. data/spec/vcr_cassettes/invoices/save_old_with_empty_country.yml +14 -11
  72. data/spec/vcr_cassettes/invoices/save_old_with_nil_comments.yml +24 -11
  73. data/spec/vcr_cassettes/invoices/save_old_with_nil_country.yml +14 -11
  74. data/spec/vcr_cassettes/invoices/save_with_nested_model.yml +22 -8
  75. data/spec/vcr_cassettes/invoices/save_with_specially_named_attribute.yml +22 -8
  76. data/spec/vcr_cassettes/invoices/search_by_name.yml +20 -7
  77. data/spec/vcr_cassettes/invoices/search_miss.yml +20 -7
  78. data/spec/vcr_cassettes/invoices/search_with_special_char.yml +20 -7
  79. data/spec/vcr_cassettes/invoices/single_param_find_by_hash.yml +19 -6
  80. data/spec/vcr_cassettes/orders/all.yml +21 -8
  81. data/spec/vcr_cassettes/orders/filter_hit.yml +19 -6
  82. data/spec/vcr_cassettes/orders/filter_invalid.yml +19 -5
  83. data/spec/vcr_cassettes/orders/find_by_hash_failure.yml +20 -7
  84. data/spec/vcr_cassettes/orders/find_failure.yml +20 -7
  85. data/spec/vcr_cassettes/orders/find_id_1.yml +21 -8
  86. data/spec/vcr_cassettes/orders/find_new.yml +24 -11
  87. data/spec/vcr_cassettes/orders/housework_invalid_tax_reduction_type.yml +57 -0
  88. data/spec/vcr_cassettes/orders/housework_othercoses_invalid.yml +57 -0
  89. data/spec/vcr_cassettes/orders/housework_type_babysitting.yml +23 -9
  90. data/spec/vcr_cassettes/orders/housework_type_cleaning.yml +23 -9
  91. data/spec/vcr_cassettes/orders/housework_type_construction.yml +23 -9
  92. data/spec/vcr_cassettes/orders/housework_type_cooking.yml +20 -6
  93. data/spec/vcr_cassettes/orders/housework_type_electricity.yml +23 -9
  94. data/spec/vcr_cassettes/orders/housework_type_gardening.yml +23 -9
  95. data/spec/vcr_cassettes/orders/housework_type_glassmetalwork.yml +23 -9
  96. data/spec/vcr_cassettes/orders/housework_type_grounddrainagework.yml +23 -9
  97. data/spec/vcr_cassettes/orders/housework_type_hvac.yml +23 -9
  98. data/spec/vcr_cassettes/orders/housework_type_itservices.yml +60 -0
  99. data/spec/vcr_cassettes/orders/housework_type_majorappliancerepair.yml +60 -0
  100. data/spec/vcr_cassettes/orders/housework_type_masonry.yml +23 -9
  101. data/spec/vcr_cassettes/orders/housework_type_movingservices.yml +60 -0
  102. data/spec/vcr_cassettes/orders/housework_type_othercare.yml +23 -9
  103. data/spec/vcr_cassettes/orders/housework_type_othercosts.yml +23 -9
  104. data/spec/vcr_cassettes/orders/housework_type_paintingwallpapering.yml +23 -9
  105. data/spec/vcr_cassettes/orders/housework_type_snowplowing.yml +23 -9
  106. data/spec/vcr_cassettes/orders/housework_type_textileclothing.yml +23 -9
  107. data/spec/vcr_cassettes/orders/housework_type_tutoring.yml +20 -6
  108. data/spec/vcr_cassettes/orders/housework_without_tax_reduction_type.yml +57 -0
  109. data/spec/vcr_cassettes/orders/multi_param_find_by_hash.yml +20 -7
  110. data/spec/vcr_cassettes/orders/save_new.yml +22 -8
  111. data/spec/vcr_cassettes/orders/save_old.yml +24 -11
  112. data/spec/vcr_cassettes/orders/save_with_nested_model.yml +22 -8
  113. data/spec/vcr_cassettes/orders/search_by_name.yml +20 -7
  114. data/spec/vcr_cassettes/orders/search_miss.yml +20 -7
  115. data/spec/vcr_cassettes/orders/search_with_special_char.yml +19 -6
  116. data/spec/vcr_cassettes/orders/single_param_find_by_hash.yml +20 -7
  117. data/spec/vcr_cassettes/projects/all.yml +40 -25
  118. data/spec/vcr_cassettes/projects/find_by_hash_failure.yml +20 -7
  119. data/spec/vcr_cassettes/projects/find_failure.yml +20 -7
  120. data/spec/vcr_cassettes/projects/find_id_1.yml +20 -7
  121. data/spec/vcr_cassettes/projects/find_new.yml +23 -10
  122. data/spec/vcr_cassettes/projects/multi_param_find_by_hash.yml +22 -9
  123. data/spec/vcr_cassettes/projects/save_new.yml +21 -7
  124. data/spec/vcr_cassettes/projects/save_old.yml +23 -10
  125. data/spec/vcr_cassettes/projects/single_param_find_by_hash.yml +22 -9
  126. data/spec/vcr_cassettes/termsofpayments/all.yml +29 -15
  127. data/spec/vcr_cassettes/termsofpayments/find_failure.yml +20 -7
  128. data/spec/vcr_cassettes/termsofpayments/find_id_1.yml +21 -8
  129. data/spec/vcr_cassettes/termsofpayments/find_new.yml +22 -9
  130. data/spec/vcr_cassettes/termsofpayments/save_new.yml +21 -7
  131. data/spec/vcr_cassettes/termsofpayments/save_old.yml +22 -9
  132. data/spec/vcr_cassettes/units/all.yml +23 -8
  133. data/spec/vcr_cassettes/units/find_failure.yml +19 -6
  134. data/spec/vcr_cassettes/units/find_id_1.yml +20 -7
  135. data/spec/vcr_cassettes/units/find_new.yml +22 -9
  136. data/spec/vcr_cassettes/units/save_new.yml +21 -7
  137. data/spec/vcr_cassettes/units/save_old.yml +22 -9
  138. data/spec/vcr_cassettes/units/save_with_specially_named_attribute.yml +21 -7
  139. metadata +20 -8
@@ -15,6 +15,10 @@ http_interactions:
15
15
  - 9aBA8ZgsvR
16
16
  Access-Token:
17
17
  - ccaef817-d5d8-4b1c-a316-54f3e55c5c54
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ User-Agent:
21
+ - Ruby
18
22
  response:
19
23
  status:
20
24
  code: 201
@@ -23,7 +27,7 @@ http_interactions:
23
27
  Server:
24
28
  - nginx
25
29
  Date:
26
- - Wed, 29 May 2019 07:52:45 GMT
30
+ - Mon, 21 Dec 2020 20:40:04 GMT
27
31
  Content-Type:
28
32
  - application/json
29
33
  Connection:
@@ -31,15 +35,25 @@ http_interactions:
31
35
  Location:
32
36
  - articles
33
37
  X-Rack-Responsetime:
34
- - '53'
38
+ - '461'
35
39
  X-Uid:
36
- - e1e4f675
40
+ - 60ffb939
37
41
  X-Build:
38
- - e930a91c78
42
+ - d59e2acefa
43
+ Strict-Transport-Security:
44
+ - max-age=31536000; includeSubdomains
45
+ X-Xss-Protection:
46
+ - 1; mode=block
47
+ X-Content-Type-Options:
48
+ - nosniff
49
+ X-Frame-Options:
50
+ - sameorigin
51
+ Referrer-Policy:
52
+ - strict-origin-when-cross-origin
39
53
  body:
40
54
  encoding: UTF-8
41
- string: '{"Article":{"@url":"https:\/\/api.fortnox.se\/3\/articles\/24","ArticleNumber":"24","Bulky":false,"ConstructionAccount":0,"Depth":0,"Description":"Test
42
- article","DisposableQuantity":0,"EAN":"5901234123457","EUAccount":3200,"EUVATAccount":3231,"ExportAccount":3200,"Height":0,"Housework":false,"HouseworkType":null,"Active":true,"Manufacturer":null,"ManufacturerArticleNumber":"","Note":"","PurchaseAccount":3100,"PurchasePrice":0,"QuantityInStock":0,"ReservedQuantity":0,"SalesAccount":3011,"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":0,"FreightCost":0,"OtherCost":0,"DefaultStockPoint":null,"DefaultStockLocation":null}}'
55
+ string: '{"Article":{"@url":"https:\/\/api.fortnox.se\/3\/articles\/27","ArticleNumber":"27","Bulky":false,"ConstructionAccount":0,"Depth":0,"Description":"Test
56
+ article","DisposableQuantity":0,"EAN":"5901234123457","EUAccount":3200,"EUVATAccount":3231,"ExportAccount":3200,"Height":0,"Housework":false,"HouseworkType":null,"Active":true,"Manufacturer":null,"ManufacturerArticleNumber":"","Note":"","PurchaseAccount":3100,"PurchasePrice":0,"QuantityInStock":0,"ReservedQuantity":0,"SalesAccount":3011,"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}}'
43
57
  http_version:
44
- recorded_at: Wed, 29 May 2019 07:52:45 GMT
58
+ recorded_at: Mon, 21 Dec 2020 20:40:04 GMT
45
59
  recorded_with: VCR 4.0.0
@@ -15,6 +15,10 @@ http_interactions:
15
15
  - 9aBA8ZgsvR
16
16
  Access-Token:
17
17
  - ccaef817-d5d8-4b1c-a316-54f3e55c5c54
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ User-Agent:
21
+ - Ruby
18
22
  response:
19
23
  status:
20
24
  code: 200
@@ -23,23 +27,32 @@ http_interactions:
23
27
  Server:
24
28
  - nginx
25
29
  Date:
26
- - Wed, 29 May 2019 07:52:47 GMT
30
+ - Mon, 21 Dec 2020 20:40:05 GMT
27
31
  Content-Type:
28
32
  - application/json
29
33
  Connection:
30
34
  - close
31
35
  Vary:
32
36
  - Accept-Encoding
33
- - Accept-Encoding
34
37
  X-Rack-Responsetime:
35
- - '22'
38
+ - '37'
36
39
  X-Uid:
37
- - 2b2ad08f
40
+ - bd4b5ef3
38
41
  X-Build:
39
- - e930a91c78
42
+ - d59e2acefa
43
+ Strict-Transport-Security:
44
+ - max-age=31536000; includeSubdomains
45
+ X-Xss-Protection:
46
+ - 1; mode=block
47
+ X-Content-Type-Options:
48
+ - nosniff
49
+ X-Frame-Options:
50
+ - sameorigin
51
+ Referrer-Policy:
52
+ - strict-origin-when-cross-origin
40
53
  body:
41
- encoding: UTF-8
54
+ encoding: ASCII-8BIT
42
55
  string: '{"MetaInformation":{"@TotalResources":2,"@TotalPages":1,"@CurrentPage":1},"Articles":[{"@url":"https:\/\/api.fortnox.se\/3\/articles\/0000","ArticleNumber":"0000","Description":"Testartikel","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\/1","ArticleNumber":"1","Description":"Testartikel","DisposableQuantity":"0","EAN":"","Housework":false,"PurchasePrice":"0","SalesPrice":"100","QuantityInStock":"0","ReservedQuantity":"0","StockPlace":"","StockValue":"0","Unit":null,"VAT":null,"WebshopArticle":false}]}'
43
56
  http_version:
44
- recorded_at: Wed, 29 May 2019 07:52:47 GMT
57
+ recorded_at: Mon, 21 Dec 2020 20:40:05 GMT
45
58
  recorded_with: VCR 4.0.0
@@ -15,6 +15,10 @@ http_interactions:
15
15
  - 9aBA8ZgsvR
16
16
  Access-Token:
17
17
  - ccaef817-d5d8-4b1c-a316-54f3e55c5c54
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ User-Agent:
21
+ - Ruby
18
22
  response:
19
23
  status:
20
24
  code: 200
@@ -23,23 +27,32 @@ http_interactions:
23
27
  Server:
24
28
  - nginx
25
29
  Date:
26
- - Wed, 29 May 2019 07:52:47 GMT
30
+ - Mon, 21 Dec 2020 20:40:04 GMT
27
31
  Content-Type:
28
32
  - application/json
29
33
  Connection:
30
34
  - close
31
35
  Vary:
32
36
  - Accept-Encoding
33
- - Accept-Encoding
34
37
  X-Rack-Responsetime:
35
- - '25'
38
+ - '31'
36
39
  X-Uid:
37
- - 49efc5c3
40
+ - 2809bb14
38
41
  X-Build:
39
- - e930a91c78
42
+ - d59e2acefa
43
+ Strict-Transport-Security:
44
+ - max-age=31536000; includeSubdomains
45
+ X-Xss-Protection:
46
+ - 1; mode=block
47
+ X-Content-Type-Options:
48
+ - nosniff
49
+ X-Frame-Options:
50
+ - sameorigin
51
+ Referrer-Policy:
52
+ - strict-origin-when-cross-origin
40
53
  body:
41
- encoding: UTF-8
54
+ encoding: ASCII-8BIT
42
55
  string: '{"MetaInformation":{"@TotalResources":0,"@TotalPages":0,"@CurrentPage":1},"Articles":[]}'
43
56
  http_version:
44
- recorded_at: Wed, 29 May 2019 07:52:47 GMT
57
+ recorded_at: Mon, 21 Dec 2020 20:40:04 GMT
45
58
  recorded_with: VCR 4.0.0
@@ -15,6 +15,10 @@ http_interactions:
15
15
  - 9aBA8ZgsvR
16
16
  Access-Token:
17
17
  - ccaef817-d5d8-4b1c-a316-54f3e55c5c54
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ User-Agent:
21
+ - Ruby
18
22
  response:
19
23
  status:
20
24
  code: 200
@@ -23,23 +27,32 @@ http_interactions:
23
27
  Server:
24
28
  - nginx
25
29
  Date:
26
- - Wed, 29 May 2019 07:52:47 GMT
30
+ - Mon, 21 Dec 2020 20:40:05 GMT
27
31
  Content-Type:
28
32
  - application/json
29
33
  Connection:
30
34
  - close
31
35
  Vary:
32
36
  - Accept-Encoding
33
- - Accept-Encoding
34
37
  X-Rack-Responsetime:
35
- - '23'
38
+ - '28'
36
39
  X-Uid:
37
- - 3607b73b
40
+ - da707608
38
41
  X-Build:
39
- - e930a91c78
42
+ - d59e2acefa
43
+ Strict-Transport-Security:
44
+ - max-age=31536000; includeSubdomains
45
+ X-Xss-Protection:
46
+ - 1; mode=block
47
+ X-Content-Type-Options:
48
+ - nosniff
49
+ X-Frame-Options:
50
+ - sameorigin
51
+ Referrer-Policy:
52
+ - strict-origin-when-cross-origin
40
53
  body:
41
- encoding: UTF-8
54
+ encoding: ASCII-8BIT
42
55
  string: '{"MetaInformation":{"@TotalResources":0,"@TotalPages":0,"@CurrentPage":1},"Articles":[]}'
43
56
  http_version:
44
- recorded_at: Wed, 29 May 2019 07:52:47 GMT
57
+ recorded_at: Mon, 21 Dec 2020 20:40:05 GMT
45
58
  recorded_with: VCR 4.0.0
@@ -15,6 +15,10 @@ http_interactions:
15
15
  - 9aBA8ZgsvR
16
16
  Access-Token:
17
17
  - ccaef817-d5d8-4b1c-a316-54f3e55c5c54
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ User-Agent:
21
+ - Ruby
18
22
  response:
19
23
  status:
20
24
  code: 200
@@ -23,28 +27,37 @@ http_interactions:
23
27
  Server:
24
28
  - nginx
25
29
  Date:
26
- - Wed, 29 May 2019 07:52:46 GMT
30
+ - Mon, 21 Dec 2020 20:40:04 GMT
27
31
  Content-Type:
28
32
  - application/json
29
33
  Connection:
30
34
  - close
31
35
  Vary:
32
36
  - Accept-Encoding
33
- - Accept-Encoding
34
37
  X-Rack-Responsetime:
35
- - '26'
38
+ - '24'
36
39
  X-Uid:
37
- - e10c396f
40
+ - 578fed92
38
41
  X-Build:
39
- - e930a91c78
42
+ - d59e2acefa
43
+ Strict-Transport-Security:
44
+ - max-age=31536000; includeSubdomains
45
+ X-Xss-Protection:
46
+ - 1; mode=block
47
+ X-Content-Type-Options:
48
+ - nosniff
49
+ X-Frame-Options:
50
+ - sameorigin
51
+ Referrer-Policy:
52
+ - strict-origin-when-cross-origin
40
53
  body:
41
- encoding: UTF-8
54
+ encoding: ASCII-8BIT
42
55
  string: '{"MetaInformation":{"@TotalResources":13,"@TotalPages":1,"@CurrentPage":1},"Articles":[{"@url":"https:\/\/api.fortnox.se\/3\/articles\/0001","ArticleNumber":"0001","Description":"Cykelpump","DisposableQuantity":"0","EAN":"","Housework":false,"PurchasePrice":"0","SalesPrice":"100","QuantityInStock":"0","ReservedQuantity":"0","StockPlace":"","StockValue":"0","Unit":null,"VAT":null,"WebshopArticle":false},{"@url":"https:\/\/api.fortnox.se\/3\/articles\/1","ArticleNumber":"1","Description":"Testartikel","DisposableQuantity":"0","EAN":"","Housework":false,"PurchasePrice":"0","SalesPrice":"100","QuantityInStock":"0","ReservedQuantity":"0","StockPlace":"","StockValue":"0","Unit":null,"VAT":null,"WebshopArticle":false},{"@url":"https:\/\/api.fortnox.se\/3\/articles\/10","ArticleNumber":"10","Description":"Abc
43
56
  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
44
57
  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
45
58
  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
46
59
  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
47
- 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\/15","ArticleNumber":"15","Description":"A
60
+ 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
48
61
  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
49
62
  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
50
63
  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
@@ -52,5 +65,5 @@ http_interactions:
52
65
  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\/21","ArticleNumber":"21","Description":"Updated
53
66
  description","DisposableQuantity":"0","EAN":"","Housework":false,"PurchasePrice":"0","SalesPrice":null,"QuantityInStock":"0","ReservedQuantity":"0","StockPlace":null,"StockValue":"0","Unit":null,"VAT":null,"WebshopArticle":false}]}'
54
67
  http_version:
55
- recorded_at: Wed, 29 May 2019 07:52:46 GMT
68
+ recorded_at: Mon, 21 Dec 2020 20:40:04 GMT
56
69
  recorded_with: VCR 4.0.0
@@ -15,6 +15,10 @@ http_interactions:
15
15
  - 9aBA8ZgsvR
16
16
  Access-Token:
17
17
  - ccaef817-d5d8-4b1c-a316-54f3e55c5c54
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ User-Agent:
21
+ - Ruby
18
22
  response:
19
23
  status:
20
24
  code: 200
@@ -23,23 +27,32 @@ http_interactions:
23
27
  Server:
24
28
  - nginx
25
29
  Date:
26
- - Wed, 29 May 2019 07:52:38 GMT
30
+ - Mon, 21 Dec 2020 20:34:24 GMT
27
31
  Content-Type:
28
32
  - application/json
29
33
  Connection:
30
34
  - close
31
35
  Vary:
32
36
  - Accept-Encoding
33
- - Accept-Encoding
34
37
  X-Rack-Responsetime:
35
- - '24'
38
+ - '21'
36
39
  X-Uid:
37
- - 11c7fe7b
40
+ - 064e6739
38
41
  X-Build:
39
- - e930a91c78
42
+ - d59e2acefa
43
+ Strict-Transport-Security:
44
+ - max-age=31536000; includeSubdomains
45
+ X-Xss-Protection:
46
+ - 1; mode=block
47
+ X-Content-Type-Options:
48
+ - nosniff
49
+ X-Frame-Options:
50
+ - sameorigin
51
+ Referrer-Policy:
52
+ - strict-origin-when-cross-origin
40
53
  body:
41
- encoding: UTF-8
42
- string: '{"MetaInformation":{"@TotalResources":229,"@TotalPages":3,"@CurrentPage":1},"Customers":[{"@url":"https:\/\/api.fortnox.se\/3\/customers\/1","Address1":"","Address2":"","City":"","CustomerNumber":"1","Email":"","Name":"Old
54
+ encoding: ASCII-8BIT
55
+ string: '{"MetaInformation":{"@TotalResources":232,"@TotalPages":3,"@CurrentPage":1},"Customers":[{"@url":"https:\/\/api.fortnox.se\/3\/customers\/1","Address1":"","Address2":"","City":"","CustomerNumber":"1","Email":"","Name":"Old
43
56
  name","OrganisationNumber":"860101-8735","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/2","Address1":"","Address2":"","City":"New
44
57
  York","CustomerNumber":"2","Email":"","Name":"A customer","OrganisationNumber":"600102-7447","Phone":"","ZipCode":"10001"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/3","Address1":"","Address2":"","City":"New
45
58
  York","CustomerNumber":"3","Email":"","Name":"Test customer","OrganisationNumber":"400101-8383","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/4","Address1":"","Address2":"","City":"","CustomerNumber":"4","Email":"","Name":"Arthur
@@ -115,7 +128,7 @@ http_interactions:
115
128
  44","Address2":"","City":"TINGSRYD","CustomerNumber":"73","Email":"","Name":"BolagsBemanning
116
129
  i Tingsryd AB","OrganisationNumber":"","Phone":"","ZipCode":"36221"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/74","Address1":"Some
117
130
  long and complicated address","Address2":"","City":"Paris","CustomerNumber":"74","Email":"an_email-address@email.com","Name":"A
118
- company","OrganisationNumber":"001122-1122","Phone":"Phone number 123","ZipCode":"A
131
+ company","OrganisationNumber":"0011221122","Phone":"Phone number 123","ZipCode":"A
119
132
  zip code"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/75","Address1":"BOX
120
133
  44","Address2":"","City":"TINGSRYD","CustomerNumber":"75","Email":"","Name":"BolagsBemanning
121
134
  i Tingsryd AB","OrganisationNumber":"556716-1855","Phone":"","ZipCode":"36221"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/76","Address1":"Myrliden
@@ -153,5 +166,5 @@ http_interactions:
153
166
  6","Address2":"","City":"teststan","CustomerNumber":"100","Email":"test@email.com","Name":"test12313","OrganisationNumber":"","Phone":"123141","ZipCode":"111
154
167
  11"}]}'
155
168
  http_version:
156
- recorded_at: Wed, 29 May 2019 07:52:38 GMT
169
+ recorded_at: Mon, 21 Dec 2020 20:34:24 GMT
157
170
  recorded_with: VCR 4.0.0
@@ -15,6 +15,10 @@ http_interactions:
15
15
  - 9aBA8ZgsvR
16
16
  Access-Token:
17
17
  - ccaef817-d5d8-4b1c-a316-54f3e55c5c54
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ User-Agent:
21
+ - Ruby
18
22
  response:
19
23
  status:
20
24
  code: 200
@@ -23,23 +27,32 @@ http_interactions:
23
27
  Server:
24
28
  - nginx
25
29
  Date:
26
- - Wed, 29 May 2019 07:52:39 GMT
30
+ - Mon, 21 Dec 2020 20:34:25 GMT
27
31
  Content-Type:
28
32
  - application/json
29
33
  Connection:
30
34
  - close
31
35
  Vary:
32
36
  - Accept-Encoding
33
- - Accept-Encoding
34
37
  X-Rack-Responsetime:
35
- - '16'
38
+ - '19'
36
39
  X-Uid:
37
- - 18e11098
40
+ - b5088850
38
41
  X-Build:
39
- - e930a91c78
42
+ - d59e2acefa
43
+ Strict-Transport-Security:
44
+ - max-age=31536000; includeSubdomains
45
+ X-Xss-Protection:
46
+ - 1; mode=block
47
+ X-Content-Type-Options:
48
+ - nosniff
49
+ X-Frame-Options:
50
+ - sameorigin
51
+ Referrer-Policy:
52
+ - strict-origin-when-cross-origin
40
53
  body:
41
- encoding: UTF-8
54
+ encoding: ASCII-8BIT
42
55
  string: '{"MetaInformation":{"@TotalResources":0,"@TotalPages":0,"@CurrentPage":1},"Customers":[]}'
43
56
  http_version:
44
- recorded_at: Wed, 29 May 2019 07:52:39 GMT
57
+ recorded_at: Mon, 21 Dec 2020 20:34:25 GMT
45
58
  recorded_with: VCR 4.0.0
@@ -15,6 +15,10 @@ http_interactions:
15
15
  - 9aBA8ZgsvR
16
16
  Access-Token:
17
17
  - ccaef817-d5d8-4b1c-a316-54f3e55c5c54
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ User-Agent:
21
+ - Ruby
18
22
  response:
19
23
  status:
20
24
  code: 404
@@ -23,23 +27,32 @@ http_interactions:
23
27
  Server:
24
28
  - nginx
25
29
  Date:
26
- - Wed, 29 May 2019 07:52:39 GMT
30
+ - Mon, 21 Dec 2020 20:34:25 GMT
27
31
  Content-Type:
28
32
  - application/json
29
33
  Connection:
30
34
  - close
31
35
  Vary:
32
36
  - Accept-Encoding
33
- - Accept-Encoding
34
37
  X-Rack-Responsetime:
35
- - '17'
38
+ - '16'
36
39
  X-Uid:
37
- - 440aefd1
40
+ - 0af462e3
38
41
  X-Build:
39
- - e930a91c78
42
+ - d59e2acefa
43
+ Strict-Transport-Security:
44
+ - max-age=31536000; includeSubdomains
45
+ X-Xss-Protection:
46
+ - 1; mode=block
47
+ X-Content-Type-Options:
48
+ - nosniff
49
+ X-Frame-Options:
50
+ - sameorigin
51
+ Referrer-Policy:
52
+ - strict-origin-when-cross-origin
40
53
  body:
41
- encoding: UTF-8
54
+ encoding: ASCII-8BIT
42
55
  string: '{"ErrorInformation":{"Error":1,"Message":"Kan inte hitta kunden.","Code":2000433}}'
43
56
  http_version:
44
- recorded_at: Wed, 29 May 2019 07:52:39 GMT
57
+ recorded_at: Mon, 21 Dec 2020 20:34:25 GMT
45
58
  recorded_with: VCR 4.0.0
@@ -15,6 +15,10 @@ http_interactions:
15
15
  - 9aBA8ZgsvR
16
16
  Access-Token:
17
17
  - ccaef817-d5d8-4b1c-a316-54f3e55c5c54
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ User-Agent:
21
+ - Ruby
18
22
  response:
19
23
  status:
20
24
  code: 200
@@ -23,24 +27,33 @@ http_interactions:
23
27
  Server:
24
28
  - nginx
25
29
  Date:
26
- - Wed, 29 May 2019 07:52:38 GMT
30
+ - Mon, 21 Dec 2020 20:34:25 GMT
27
31
  Content-Type:
28
32
  - application/json
29
33
  Connection:
30
34
  - close
31
35
  Vary:
32
36
  - Accept-Encoding
33
- - Accept-Encoding
34
37
  X-Rack-Responsetime:
35
- - '20'
38
+ - '19'
36
39
  X-Uid:
37
- - 525ac680
40
+ - 9107e6b8
38
41
  X-Build:
39
- - e930a91c78
42
+ - d59e2acefa
43
+ Strict-Transport-Security:
44
+ - max-age=31536000; includeSubdomains
45
+ X-Xss-Protection:
46
+ - 1; mode=block
47
+ X-Content-Type-Options:
48
+ - nosniff
49
+ X-Frame-Options:
50
+ - sameorigin
51
+ Referrer-Policy:
52
+ - strict-origin-when-cross-origin
40
53
  body:
41
- encoding: UTF-8
54
+ encoding: ASCII-8BIT
42
55
  string: '{"Customer":{"@url":"https:\/\/api.fortnox.se\/3\/customers\/1","Address1":null,"Address2":null,"City":"","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":"Old
43
56
  name","OrganisationNumber":"860101-8735","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
57
  http_version:
45
- recorded_at: Wed, 29 May 2019 07:52:38 GMT
58
+ recorded_at: Mon, 21 Dec 2020 20:34:25 GMT
46
59
  recorded_with: VCR 4.0.0