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.
Files changed (205) hide show
  1. checksums.yaml +4 -4
  2. data/.env.template +7 -0
  3. data/.env.test +11 -3
  4. data/.gitignore +7 -1
  5. data/.rubocop.yml +17 -1
  6. data/.travis.yml +10 -9
  7. data/CHANGELOG.md +22 -8
  8. data/CONTRIBUTE.md +21 -9
  9. data/DEVELOPER_README.md +72 -0
  10. data/Guardfile +13 -4
  11. data/README.md +226 -64
  12. data/Rakefile +128 -0
  13. data/bin/get_tokens +79 -0
  14. data/bin/renew_tokens +28 -0
  15. data/fortnox-api.gemspec +10 -9
  16. data/lib/fortnox/api/mappers/base/from_json.rb +4 -3
  17. data/lib/fortnox/api/mappers/base/to_json.rb +2 -3
  18. data/lib/fortnox/api/models/base.rb +12 -10
  19. data/lib/fortnox/api/models/customer.rb +55 -55
  20. data/lib/fortnox/api/models/label.rb +2 -2
  21. data/lib/fortnox/api/repositories/authentication.rb +61 -0
  22. data/lib/fortnox/api/repositories/base/savers.rb +3 -1
  23. data/lib/fortnox/api/repositories/base.rb +21 -35
  24. data/lib/fortnox/api/repositories.rb +1 -0
  25. data/lib/fortnox/api/request_handling.rb +30 -18
  26. data/lib/fortnox/api/types/document_row.rb +3 -3
  27. data/lib/fortnox/api/types/enums.rb +27 -11
  28. data/lib/fortnox/api/types/model.rb +1 -4
  29. data/lib/fortnox/api/types/sized.rb +2 -2
  30. data/lib/fortnox/api/types.rb +14 -1
  31. data/lib/fortnox/api/version.rb +1 -1
  32. data/lib/fortnox/api.rb +12 -32
  33. data/spec/fortnox/api/mappers/base/canonical_name_sym_spec.rb +4 -4
  34. data/spec/fortnox/api/mappers/base/from_json_spec.rb +10 -12
  35. data/spec/fortnox/api/mappers/base/to_json_spec.rb +48 -57
  36. data/spec/fortnox/api/mappers/base_spec.rb +4 -7
  37. data/spec/fortnox/api/mappers/contexts/json_conversion.rb +38 -33
  38. data/spec/fortnox/api/mappers/unit_spec.rb +3 -4
  39. data/spec/fortnox/api/models/base_spec.rb +27 -16
  40. data/spec/fortnox/api/models/unit_spec.rb +5 -3
  41. data/spec/fortnox/api/repositories/article_spec.rb +14 -9
  42. data/spec/fortnox/api/repositories/authentication_spec.rb +103 -0
  43. data/spec/fortnox/api/repositories/base_spec.rb +106 -319
  44. data/spec/fortnox/api/repositories/customer_spec.rb +37 -7
  45. data/spec/fortnox/api/repositories/examples/all.rb +0 -1
  46. data/spec/fortnox/api/repositories/examples/find.rb +5 -8
  47. data/spec/fortnox/api/repositories/examples/only.rb +4 -13
  48. data/spec/fortnox/api/repositories/examples/save.rb +32 -18
  49. data/spec/fortnox/api/repositories/examples/save_with_nested_model.rb +0 -5
  50. data/spec/fortnox/api/repositories/examples/save_with_specially_named_attribute.rb +1 -4
  51. data/spec/fortnox/api/repositories/examples/search.rb +4 -7
  52. data/spec/fortnox/api/repositories/invoice_spec.rb +64 -15
  53. data/spec/fortnox/api/repositories/order_spec.rb +11 -9
  54. data/spec/fortnox/api/repositories/project_spec.rb +7 -6
  55. data/spec/fortnox/api/repositories/terms_of_payment_spec.rb +9 -7
  56. data/spec/fortnox/api/repositories/unit_spec.rb +13 -11
  57. data/spec/fortnox/api/types/country_spec.rb +1 -1
  58. data/spec/fortnox/api/types/email_spec.rb +2 -2
  59. data/spec/fortnox/api/types/examples/document_row.rb +3 -3
  60. data/spec/fortnox/api/types/examples/enum.rb +4 -4
  61. data/spec/fortnox/api/types/examples/types.rb +1 -3
  62. data/spec/fortnox/api/types/housework_types_spec.rb +54 -61
  63. data/spec/fortnox/api/types/model_spec.rb +3 -27
  64. data/spec/fortnox/api/types/order_row_spec.rb +2 -2
  65. data/spec/fortnox/api/types/required_spec.rb +6 -11
  66. data/spec/fortnox/api/types/sales_account_spec.rb +57 -0
  67. data/spec/fortnox/api_spec.rb +19 -124
  68. data/spec/spec_helper.rb +0 -14
  69. data/spec/support/helpers/configuration_helper.rb +30 -3
  70. data/spec/support/helpers.rb +1 -1
  71. data/spec/support/matchers/type/attribute_matcher.rb +2 -2
  72. data/spec/support/matchers/type/have_nullable_date_matcher.rb +6 -4
  73. data/spec/support/matchers/type/have_nullable_matcher.rb +1 -1
  74. data/spec/support/matchers/type/have_nullable_string_matcher.rb +5 -5
  75. data/spec/support/matchers/type/require_attribute_matcher.rb +5 -5
  76. data/spec/support/matchers/type/type_matcher.rb +1 -1
  77. data/spec/support/vcr_setup.rb +16 -0
  78. data/spec/vcr_cassettes/articles/all.yml +16 -43
  79. data/spec/vcr_cassettes/articles/find_by_hash_failure.yml +10 -12
  80. data/spec/vcr_cassettes/articles/find_failure.yml +10 -12
  81. data/spec/vcr_cassettes/articles/find_id_1.yml +13 -14
  82. data/spec/vcr_cassettes/articles/find_new.yml +14 -16
  83. data/spec/vcr_cassettes/articles/multi_param_find_by_hash.yml +13 -15
  84. data/spec/vcr_cassettes/articles/save_new.yml +13 -15
  85. data/spec/vcr_cassettes/articles/save_old.yml +14 -16
  86. data/spec/vcr_cassettes/articles/save_with_specially_named_attribute.yml +13 -15
  87. data/spec/vcr_cassettes/articles/search_by_name.yml +16 -15
  88. data/spec/vcr_cassettes/articles/search_miss.yml +10 -12
  89. data/spec/vcr_cassettes/articles/search_with_special_char.yml +10 -12
  90. data/spec/vcr_cassettes/articles/single_param_find_by_hash.yml +13 -27
  91. data/spec/vcr_cassettes/authentication/expired_token.yml +54 -0
  92. data/spec/vcr_cassettes/authentication/invalid_authorization.yml +57 -0
  93. data/spec/vcr_cassettes/authentication/invalid_refresh_token.yml +58 -0
  94. data/spec/vcr_cassettes/authentication/valid_request.yml +63 -0
  95. data/spec/vcr_cassettes/customers/all.yml +20 -127
  96. data/spec/vcr_cassettes/customers/find_by_hash_failure.yml +10 -12
  97. data/spec/vcr_cassettes/customers/find_failure.yml +10 -12
  98. data/spec/vcr_cassettes/customers/find_id_1.yml +14 -15
  99. data/spec/vcr_cassettes/customers/find_new.yml +13 -15
  100. data/spec/vcr_cassettes/customers/find_with_sales_account.yml +63 -0
  101. data/spec/vcr_cassettes/customers/multi_param_find_by_hash.yml +13 -15
  102. data/spec/vcr_cassettes/customers/save_new.yml +12 -14
  103. data/spec/vcr_cassettes/customers/save_new_with_country_code_SE.yml +12 -14
  104. data/spec/vcr_cassettes/customers/save_new_with_sales_account.yml +63 -0
  105. data/spec/vcr_cassettes/customers/save_old.yml +13 -15
  106. data/spec/vcr_cassettes/customers/save_with_specially_named_attribute.yml +12 -14
  107. data/spec/vcr_cassettes/customers/search_by_name.yml +13 -45
  108. data/spec/vcr_cassettes/customers/search_miss.yml +10 -12
  109. data/spec/vcr_cassettes/customers/search_with_special_char.yml +10 -12
  110. data/spec/vcr_cassettes/customers/single_param_find_by_hash.yml +14 -16
  111. data/spec/vcr_cassettes/invoices/all.yml +47 -112
  112. data/spec/vcr_cassettes/invoices/filter_hit.yml +14 -18
  113. data/spec/vcr_cassettes/invoices/filter_invalid.yml +10 -12
  114. data/spec/vcr_cassettes/invoices/find_by_hash_failure.yml +10 -12
  115. data/spec/vcr_cassettes/invoices/find_failure.yml +10 -12
  116. data/spec/vcr_cassettes/invoices/find_id_1.yml +15 -16
  117. data/spec/vcr_cassettes/invoices/find_new.yml +16 -18
  118. data/spec/vcr_cassettes/invoices/multi_param_find_by_hash.yml +13 -15
  119. data/spec/vcr_cassettes/invoices/row_description_limit.yml +65 -0
  120. data/spec/vcr_cassettes/invoices/save_new.yml +14 -16
  121. data/spec/vcr_cassettes/invoices/save_new_with_comments.yml +14 -16
  122. data/spec/vcr_cassettes/invoices/save_new_with_country.yml +14 -15
  123. data/spec/vcr_cassettes/invoices/save_new_with_country_GB.yml +15 -16
  124. data/spec/vcr_cassettes/invoices/save_new_with_country_Norge.yml +14 -15
  125. data/spec/vcr_cassettes/invoices/save_new_with_country_Norway.yml +14 -15
  126. data/spec/vcr_cassettes/invoices/save_new_with_country_Sverige.yml +14 -15
  127. data/spec/vcr_cassettes/invoices/save_new_with_country_VA.yml +15 -16
  128. data/spec/vcr_cassettes/invoices/save_new_with_country_VI.yml +15 -16
  129. data/spec/vcr_cassettes/invoices/save_new_with_country_empty_string.yml +14 -15
  130. data/spec/vcr_cassettes/invoices/save_new_with_country_nil.yml +14 -15
  131. data/spec/vcr_cassettes/invoices/save_new_with_unsaved_parent.yml +65 -0
  132. data/spec/vcr_cassettes/invoices/save_old.yml +16 -18
  133. data/spec/vcr_cassettes/invoices/save_old_with_empty_comments.yml +16 -18
  134. data/spec/vcr_cassettes/invoices/save_old_with_empty_country.yml +16 -17
  135. data/spec/vcr_cassettes/invoices/save_old_with_nil_comments.yml +16 -18
  136. data/spec/vcr_cassettes/invoices/save_old_with_nil_country.yml +16 -17
  137. data/spec/vcr_cassettes/invoices/save_with_nested_model.yml +15 -16
  138. data/spec/vcr_cassettes/invoices/save_with_specially_named_attribute.yml +14 -15
  139. data/spec/vcr_cassettes/invoices/search_by_name.yml +13 -21
  140. data/spec/vcr_cassettes/invoices/search_miss.yml +10 -12
  141. data/spec/vcr_cassettes/invoices/search_with_special_char.yml +10 -12
  142. data/spec/vcr_cassettes/invoices/single_param_find_by_hash.yml +14 -16
  143. data/spec/vcr_cassettes/orders/all.yml +19 -113
  144. data/spec/vcr_cassettes/orders/filter_hit.yml +14 -20
  145. data/spec/vcr_cassettes/orders/filter_invalid.yml +10 -12
  146. data/spec/vcr_cassettes/orders/find_by_hash_failure.yml +10 -12
  147. data/spec/vcr_cassettes/orders/find_failure.yml +10 -12
  148. data/spec/vcr_cassettes/orders/find_id_1.yml +17 -17
  149. data/spec/vcr_cassettes/orders/find_new.yml +16 -18
  150. data/spec/vcr_cassettes/orders/housework_invalid_tax_reduction_type.yml +11 -13
  151. data/spec/vcr_cassettes/orders/housework_othercoses_invalid.yml +11 -13
  152. data/spec/vcr_cassettes/orders/housework_type_babysitting.yml +15 -16
  153. data/spec/vcr_cassettes/orders/housework_type_cleaning.yml +15 -16
  154. data/spec/vcr_cassettes/orders/housework_type_construction.yml +15 -16
  155. data/spec/vcr_cassettes/orders/housework_type_cooking.yml +11 -13
  156. data/spec/vcr_cassettes/orders/housework_type_electricity.yml +15 -16
  157. data/spec/vcr_cassettes/orders/housework_type_gardening.yml +15 -16
  158. data/spec/vcr_cassettes/orders/housework_type_glassmetalwork.yml +15 -16
  159. data/spec/vcr_cassettes/orders/housework_type_grounddrainagework.yml +15 -16
  160. data/spec/vcr_cassettes/orders/housework_type_hvac.yml +15 -16
  161. data/spec/vcr_cassettes/orders/housework_type_itservices.yml +15 -16
  162. data/spec/vcr_cassettes/orders/housework_type_majorappliancerepair.yml +15 -16
  163. data/spec/vcr_cassettes/orders/housework_type_masonry.yml +15 -16
  164. data/spec/vcr_cassettes/orders/housework_type_movingservices.yml +15 -16
  165. data/spec/vcr_cassettes/orders/housework_type_othercare.yml +15 -16
  166. data/spec/vcr_cassettes/orders/housework_type_othercosts.yml +15 -16
  167. data/spec/vcr_cassettes/orders/housework_type_paintingwallpapering.yml +15 -16
  168. data/spec/vcr_cassettes/orders/housework_type_snowplowing.yml +15 -16
  169. data/spec/vcr_cassettes/orders/housework_type_textileclothing.yml +15 -16
  170. data/spec/vcr_cassettes/orders/housework_type_tutoring.yml +11 -13
  171. data/spec/vcr_cassettes/orders/multi_param_find_by_hash.yml +13 -15
  172. data/spec/vcr_cassettes/orders/save_new.yml +16 -18
  173. data/spec/vcr_cassettes/orders/save_old.yml +16 -18
  174. data/spec/vcr_cassettes/orders/save_with_nested_model.yml +15 -16
  175. data/spec/vcr_cassettes/orders/search_by_name.yml +13 -17
  176. data/spec/vcr_cassettes/orders/search_miss.yml +10 -12
  177. data/spec/vcr_cassettes/orders/search_with_special_char.yml +10 -12
  178. data/spec/vcr_cassettes/orders/single_param_find_by_hash.yml +14 -16
  179. data/spec/vcr_cassettes/projects/all.yml +14 -37
  180. data/spec/vcr_cassettes/projects/find_by_hash_failure.yml +10 -12
  181. data/spec/vcr_cassettes/projects/find_failure.yml +10 -12
  182. data/spec/vcr_cassettes/projects/find_id_1.yml +13 -15
  183. data/spec/vcr_cassettes/projects/find_new.yml +14 -16
  184. data/spec/vcr_cassettes/projects/multi_param_find_by_hash.yml +15 -16
  185. data/spec/vcr_cassettes/projects/save_new.yml +13 -15
  186. data/spec/vcr_cassettes/projects/save_old.yml +14 -16
  187. data/spec/vcr_cassettes/projects/single_param_find_by_hash.yml +12 -14
  188. data/spec/vcr_cassettes/termsofpayments/all.yml +16 -23
  189. data/spec/vcr_cassettes/termsofpayments/find_failure.yml +10 -12
  190. data/spec/vcr_cassettes/termsofpayments/find_id_1.yml +13 -16
  191. data/spec/vcr_cassettes/termsofpayments/find_new.yml +12 -14
  192. data/spec/vcr_cassettes/termsofpayments/save_new.yml +12 -14
  193. data/spec/vcr_cassettes/termsofpayments/save_old.yml +12 -14
  194. data/spec/vcr_cassettes/units/all.yml +13 -24
  195. data/spec/vcr_cassettes/units/find_failure.yml +10 -12
  196. data/spec/vcr_cassettes/units/find_id_1.yml +13 -15
  197. data/spec/vcr_cassettes/units/find_new.yml +12 -14
  198. data/spec/vcr_cassettes/units/save_new.yml +12 -14
  199. data/spec/vcr_cassettes/units/save_old.yml +12 -14
  200. data/spec/vcr_cassettes/units/save_with_specially_named_attribute.yml +12 -14
  201. metadata +39 -230
  202. data/lib/fortnox/api/circular_queue.rb +0 -39
  203. data/spec/fortnox/api/circular_queue_spec.rb +0 -52
  204. data/spec/support/helpers/when_performing_helper.rb +0 -7
  205. data/temp.txt +0 -1
@@ -11,10 +11,8 @@ http_interactions:
11
11
  - application/json
12
12
  Accept:
13
13
  - application/json
14
- Client-Secret:
15
- - 9aBA8ZgsvR
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:
@@ -24,22 +22,22 @@ http_interactions:
24
22
  code: 200
25
23
  message: OK
26
24
  headers:
25
+ Content-Length:
26
+ - '1497'
27
27
  Content-Type:
28
28
  - application/json
29
29
  Date:
30
- - Mon, 22 Jan 2024 14:52:50 GMT
30
+ - Mon, 30 Jan 2023 10:36:42 GMT
31
31
  Vary:
32
32
  - Accept-Encoding
33
33
  X-Build:
34
- - 9dd4e26746
34
+ - 16d854443d
35
35
  X-Frame-Options:
36
36
  - sameorigin
37
37
  X-Rack-Responsetime:
38
- - '43'
38
+ - '67'
39
39
  X-Uid:
40
- - fa3e4f62
41
- Transfer-Encoding:
42
- - chunked
40
+ - bbb0d6b2
43
41
  Server:
44
42
  - Fortnox
45
43
  X-Content-Type-Options:
@@ -53,124 +51,19 @@ 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 fortnox.piwik.pro api.cling.se wss://api.cling.se ''unsafe-inline''
57
- ''unsafe-eval'' blob: data:'
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":247,"@TotalPages":3,"@CurrentPage":1},"Customers":[{"@url":"https:\/\/api.fortnox.se\/3\/customers\/1","Address1":"","Address2":"","City":"","CustomerNumber":"1","Email":"","Name":"Old
63
- name","OrganisationNumber":"860101-8735","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/2","Address1":"","Address2":"","City":"New
64
- 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
65
- 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
66
- Dent","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/5","Address1":"","Address2":"","City":"","CustomerNumber":"5","Email":"","Name":"Arthur
67
- Dent","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/6","Address1":"","Address2":"","City":"","CustomerNumber":"6","Email":"","Name":"Arthur
68
- Dent","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/7","Address1":"","Address2":"","City":"","CustomerNumber":"7","Email":"","Name":"Arthur
69
- Dent","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/8","Address1":"","Address2":"","City":"","CustomerNumber":"8","Email":"","Name":"Arthur
70
- Dent","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/9","Address1":"","Address2":"","City":"","CustomerNumber":"9","Email":"","Name":"Arthur
71
- Dent","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/10","Address1":"","Address2":"","City":"","CustomerNumber":"10","Email":"","Name":"Arthur
72
- Dent","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/11","Address1":"","Address2":"","City":"","CustomerNumber":"11","Email":"","Name":"Arthur
73
- Dent","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/12","Address1":"","Address2":"","City":"","CustomerNumber":"12","Email":"","Name":"Arthur
74
- Dent","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/13","Address1":"","Address2":"","City":"","CustomerNumber":"13","Email":"","Name":"Arthur
75
- Dent","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/14","Address1":"","Address2":"","City":"","CustomerNumber":"14","Email":"","Name":"Arthur
76
- Dent","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/15","Address1":"","Address2":"","City":"","CustomerNumber":"15","Email":"","Name":"Arthur
77
- Dent","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/16","Address1":"","Address2":"","City":"","CustomerNumber":"16","Email":"","Name":"Arthur
78
- Dent","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/17","Address1":"","Address2":"","City":"","CustomerNumber":"17","Email":"","Name":"Arthur
79
- Dent","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/18","Address1":"","Address2":"","City":"","CustomerNumber":"18","Email":"","Name":"Arthur
80
- Dent","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/19","Address1":"","Address2":"","City":"","CustomerNumber":"19","Email":"","Name":"Arthur
81
- Dent","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/20","Address1":"","Address2":"","City":"","CustomerNumber":"20","Email":"","Name":"Arthur
82
- Dent","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/21","Address1":"","Address2":"","City":"","CustomerNumber":"21","Email":"","Name":"Arthur
83
- Dent","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/22","Address1":"","Address2":"","City":"","CustomerNumber":"22","Email":"","Name":"Arthur
84
- Dent","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/23","Address1":"","Address2":"","City":"","CustomerNumber":"23","Email":"","Name":"Arthur
85
- Dent","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/24","Address1":"","Address2":"","City":"","CustomerNumber":"24","Email":"","Name":"An
86
- entity","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/25","Address1":"","Address2":"","City":"","CustomerNumber":"25","Email":"","Name":"An
87
- entity","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/26","Address1":"","Address2":"","City":"","CustomerNumber":"26","Email":"","Name":"A
88
- customer","OrganisationNumber":"560101-3286","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/27","Address1":"","Address2":"","City":"","CustomerNumber":"27","Email":"","Name":"A
89
- value","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/28","Address1":"","Address2":"","City":"","CustomerNumber":"28","Email":"","Name":"A
90
- value","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/29","Address1":"","Address2":"","City":"","CustomerNumber":"29","Email":"","Name":"A
91
- value","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/30","Address1":"","Address2":"","City":"","CustomerNumber":"30","Email":"","Name":"A
92
- value","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/31","Address1":"","Address2":"","City":"","CustomerNumber":"31","Email":"","Name":"A
93
- value","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/32","Address1":"","Address2":"","City":"","CustomerNumber":"32","Email":"","Name":"A
94
- value","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/33","Address1":"","Address2":"","City":"","CustomerNumber":"33","Email":"","Name":"A
95
- value","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/34","Address1":"","Address2":"","City":"","CustomerNumber":"34","Email":"","Name":"A
96
- value","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/35","Address1":"","Address2":"","City":"","CustomerNumber":"35","Email":"","Name":"A
97
- value","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/36","Address1":"","Address2":"","City":"","CustomerNumber":"36","Email":"","Name":"A
98
- value","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/37","Address1":"","Address2":"","City":"","CustomerNumber":"37","Email":"","Name":"Updated
99
- name","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/38","Address1":"","Address2":"","City":"","CustomerNumber":"38","Email":"","Name":"Updated
100
- name","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/39","Address1":"","Address2":"","City":"","CustomerNumber":"39","Email":"","Name":"Updated
101
- name","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/40","Address1":"","Address2":"","City":"","CustomerNumber":"40","Email":"","Name":"Arthur
102
- Dent","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/41","Address1":"","Address2":"","City":"","CustomerNumber":"41","Email":"","Name":"Arthur
103
- Dent","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/42","Address1":"","Address2":"","City":"","CustomerNumber":"42","Email":"","Name":"Some
104
- company","OrganisationNumber":"400102-4621","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/43","Address1":"","Address2":"","City":"","CustomerNumber":"43","Email":"","Name":"Arthur
105
- Dent","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/44","Address1":"","Address2":"","City":"","CustomerNumber":"44","Email":"","Name":"A
106
- company","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/45","Address1":"Some
107
- long and complicated address","Address2":"","City":"Paris","CustomerNumber":"45","Email":"an_email-address@email.com","Name":"A
108
- company","OrganisationNumber":"","Phone":"Phone number 123","ZipCode":"A zip
109
- code"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/46","Address1":"Some
110
- long and complicated address","Address2":"","City":"Paris","CustomerNumber":"46","Email":"an_email-address@email.com","Name":"A
111
- company","OrganisationNumber":"","Phone":"Phone number 123","ZipCode":"A zip
112
- code"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/47","Address1":"Some
113
- long and complicated address","Address2":"","City":"Paris","CustomerNumber":"47","Email":"an_email-address@email.com","Name":"A
114
- company","OrganisationNumber":"","Phone":"Phone number 123","ZipCode":"A zip
115
- code"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/48","Address1":"","Address2":"","City":"","CustomerNumber":"48","Email":"","Name":"1","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/49","Address1":"","Address2":"","City":"","CustomerNumber":"49","Email":"","Name":"2","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/50","Address1":"","Address2":"","City":"","CustomerNumber":"50","Email":"","Name":"1","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/51","Address1":"","Address2":"","City":"","CustomerNumber":"51","Email":"","Name":"1","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/52","Address1":"","Address2":"","City":"","CustomerNumber":"52","Email":"","Name":"1","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/53","Address1":"","Address2":"","City":"","CustomerNumber":"53","Email":"","Name":"2","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/54","Address1":"Some
116
- long and complicated address","Address2":"","City":"Paris","CustomerNumber":"54","Email":"an_email-address@email.com","Name":"A
117
- company","OrganisationNumber":"","Phone":"Phone number 123","ZipCode":"A zip
118
- code"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/55","Address1":"","Address2":"","City":"","CustomerNumber":"55","Email":"","Name":"j","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/56","Address1":"","Address2":"","City":"","CustomerNumber":"56","Email":"","Name":"j","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/57","Address1":"","Address2":"","City":"","CustomerNumber":"57","Email":"","Name":"2","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/58","Address1":"","Address2":"","City":"","CustomerNumber":"58","Email":"","Name":"2","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/59","Address1":"","Address2":"","City":"","CustomerNumber":"59","Email":"","Name":"k","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/60","Address1":"","Address2":"","City":"","CustomerNumber":"60","Email":"","Name":"2","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/61","Address1":"","Address2":"","City":"","CustomerNumber":"61","Email":"","Name":"Ericsson","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/62","Address1":"","Address2":"","City":"","CustomerNumber":"62","Email":"","Name":"Ericsson","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/63","Address1":"Postadress","Address2":"","City":"Stad","CustomerNumber":"63","Email":"utland@email.com","Name":"Utlandskund","OrganisationNumber":"","Phone":"001122","ZipCode":"Postnummer"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/64","Address1":"","Address2":"","City":"","CustomerNumber":"64","Email":"","Name":"Easy
119
- Translate GmbH","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/65","Address1":"Boschstra\u00dfe","Address2":"","City":"Hamburg","CustomerNumber":"65","Email":"","Name":"A
120
- foreign customer","OrganisationNumber":"","Phone":"","ZipCode":"22761"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/66","Address1":"Myrliden
121
- 10","Address2":"","City":"Mullsj\u00f6","CustomerNumber":"66","Email":"","Name":"Hannes
122
- Elvemyr","OrganisationNumber":"","Phone":"","ZipCode":"565 32"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/67","Address1":"BOX
123
- 44","Address2":"","City":"TINGSRYD","CustomerNumber":"67","Email":"","Name":"BolagsBemanning
124
- i Tingsryd AB","OrganisationNumber":"","Phone":"","ZipCode":"36221"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/68","Address1":"Myrliden
125
- 10","Address2":"","City":"Mullsj\u00f6","CustomerNumber":"68","Email":"","Name":"Hannes
126
- Elvemyr","OrganisationNumber":"","Phone":"","ZipCode":"565 32"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/69","Address1":"Myrliden
127
- 10","Address2":"","City":"Mullsj\u00f6","CustomerNumber":"69","Email":"","Name":"Hannes
128
- Elvemyr","OrganisationNumber":"","Phone":"","ZipCode":"565 32"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/70","Address1":"Myrliden
129
- 10","Address2":"","City":"Mullsj\u00f6","CustomerNumber":"70","Email":"","Name":"Hannes
130
- Elvemyr","OrganisationNumber":"","Phone":"","ZipCode":"565 32"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/71","Address1":"Myrliden
131
- 10","Address2":"","City":"Mullsj\u00f6","CustomerNumber":"71","Email":"","Name":"Hannes
132
- Elvemyr","OrganisationNumber":"","Phone":"","ZipCode":"565 32"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/72","Address1":"BOX
133
- 44","Address2":"","City":"TINGSRYD","CustomerNumber":"72","Email":"","Name":"BolagsBemanning
134
- i Tingsryd AB","OrganisationNumber":"","Phone":"","ZipCode":"36221"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/73","Address1":"BOX
135
- 44","Address2":"","City":"TINGSRYD","CustomerNumber":"73","Email":"","Name":"BolagsBemanning
136
- i Tingsryd AB","OrganisationNumber":"","Phone":"","ZipCode":"36221"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/74","Address1":"Some
137
- long and complicated address","Address2":"","City":"Paris","CustomerNumber":"74","Email":"an_email-address@email.com","Name":"A
138
- company","OrganisationNumber":"0011221122","Phone":"Phone number 123","ZipCode":"A
139
- zip code"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/75","Address1":"BOX
140
- 44","Address2":"","City":"TINGSRYD","CustomerNumber":"75","Email":"","Name":"BolagsBemanning
141
- i Tingsryd AB","OrganisationNumber":"556716-1855","Phone":"","ZipCode":"36221"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/76","Address1":"Myrliden
142
- 10","Address2":"","City":"Mullsj\u00f6","CustomerNumber":"76","Email":"","Name":"Hannes
143
- Elvemyr","OrganisationNumber":"1990-01-01","Phone":"","ZipCode":"565 32"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/77","Address1":"BOX
144
- 44","Address2":"","City":"TINGSRYD","CustomerNumber":"77","Email":"","Name":"BolagsBemanning
145
- i Tingsryd AB","OrganisationNumber":"556716-1855","Phone":"","ZipCode":"36221"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/78","Address1":"Myrliden
146
- 10","Address2":"","City":"Mullsj\u00f6","CustomerNumber":"78","Email":"","Name":"Hannes
147
- Elvemyr","OrganisationNumber":"1990-01-01","Phone":"","ZipCode":"565 32"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/79","Address1":"BOX
148
- 44","Address2":"","City":"TINGSRYD","CustomerNumber":"79","Email":"","Name":"BolagsBemanning
149
- i Tingsryd AB","OrganisationNumber":"556716-1855","Phone":"","ZipCode":"36221"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/80","Address1":"BOX
150
- 44","Address2":"","City":"TINGSRYD","CustomerNumber":"80","Email":"","Name":"BolagsBemanning
151
- i Tingsryd AB","OrganisationNumber":"556716-1855","Phone":"","ZipCode":"36221"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/81","Address1":"BOX
152
- 44","Address2":"","City":"TINGSRYD","CustomerNumber":"81","Email":"","Name":"BolagsBemanning
153
- i Tingsryd AB","OrganisationNumber":"556716-1855","Phone":"","ZipCode":"36221"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/82","Address1":"Ynglingagatan
154
- 6","Address2":"","City":"Bor\u00e5s","CustomerNumber":"82","Email":"anna@bolagskraft.se","Name":"Anna
155
- Norman","OrganisationNumber":"1990-01-01","Phone":"","ZipCode":"506 37"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/83","Address1":"PEJLINGSV\u00c4GEN
156
- 1 B","Address2":"","City":"FRUF\u00c4LLAN","CustomerNumber":"83","Email":"","Name":"Ertan
157
- AB","OrganisationNumber":"556454-3048","Phone":"","ZipCode":"50670"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/84","Address1":"","Address2":"","City":"","CustomerNumber":"84","Email":"","Name":"Easy
158
- Translate GmbH","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/85","Address1":"BOX
159
- 44","Address2":"","City":"TINGSRYD","CustomerNumber":"85","Email":"","Name":"BolagsBemanning
160
- i Tingsryd AB","OrganisationNumber":"556716-1855","Phone":"","ZipCode":"36221"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/86","Address1":"BOX
161
- 44","Address2":"","City":"TINGSRYD","CustomerNumber":"86","Email":"","Name":"BolagsBemanning
162
- i Tingsryd AB","OrganisationNumber":"556716-1855","Phone":"","ZipCode":"36221"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/87","Address1":"","Address2":"","City":"","CustomerNumber":"87","Email":"","Name":"132","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/88","Address1":"","Address2":"","City":"","CustomerNumber":"88","Email":"","Name":"gegegege","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/89","Address1":"","Address2":"","City":"","CustomerNumber":"89","Email":"","Name":"En
163
- annan utlandskund","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/90","Address1":"testgatan
164
- 5","Address2":"","City":"teststan","CustomerNumber":"90","Email":"test@tester.com","Name":"En
165
- tredje utlandskund","OrganisationNumber":"","Phone":"0707070707","ZipCode":"55464"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/91","Address1":"testgatan
166
- 6","Address2":"","City":"teststan","CustomerNumber":"91","Email":"test@email.com","Name":"tredje
167
- utlandskund","OrganisationNumber":"","Phone":"070070707","ZipCode":"111 11"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/92","Address1":"postadress","Address2":"","City":"stad","CustomerNumber":"92","Email":"","Name":"Ny
168
- utlandskund","OrganisationNumber":"","Phone":"","ZipCode":"postnummer"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/93","Address1":"testgatan
169
- 6","Address2":"","City":"teststan","CustomerNumber":"93","Email":"","Name":"tester","OrganisationNumber":"","Phone":"","ZipCode":"414141"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/94","Address1":"","Address2":"","City":"1414141","CustomerNumber":"94","Email":"","Name":"test12313","OrganisationNumber":"","Phone":"","ZipCode":"1414141"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/95","Address1":"test","Address2":"","City":"teststan","CustomerNumber":"95","Email":"","Name":"test
170
- kund utland","OrganisationNumber":"","Phone":"","ZipCode":"12314"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/96","Address1":"","Address2":"","City":"","CustomerNumber":"96","Email":"test@email.com","Name":"test123133","OrganisationNumber":"","Phone":"13132141","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/97","Address1":"","Address2":"","City":"","CustomerNumber":"97","Email":"test@testarn.com","Name":"testata","OrganisationNumber":"","Phone":"0987654","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/98","Address1":"","Address2":"","City":"","CustomerNumber":"98","Email":"test@email.com","Name":"test1231331","OrganisationNumber":"","Phone":"+1313131","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/99","Address1":"testgatan
171
- 6","Address2":"","City":"tesst","CustomerNumber":"99","Email":"test@email.com","Name":"test
172
- testsson","OrganisationNumber":"","Phone":"1241415151","ZipCode":"111 11"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/100","Address1":"testgatan
173
- 6","Address2":"","City":"teststan","CustomerNumber":"100","Email":"test@email.com","Name":"test12313","OrganisationNumber":"","Phone":"123141","ZipCode":"111
174
- 11"}]}'
175
- recorded_at: Mon, 22 Jan 2024 14:52:50 GMT
176
- recorded_with: VCR 6.2.0
60
+ string: '{"MetaInformation":{"@TotalResources":7,"@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"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/2","Address1":"","Address2":"","City":"New
62
+ York","CustomerNumber":"2","Email":"","Name":"Test customer","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/3","Address1":"","Address2":"","City":"","CustomerNumber":"3","Email":"","Name":"Customer
63
+ with Swedish country code","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/4","Address1":"","Address2":"","City":"","CustomerNumber":"4","Email":"","Name":"Customer
64
+ with Sales Account","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/5","Address1":"","Address2":"","City":"","CustomerNumber":"5","Email":"","Name":"A
65
+ customer","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/6","Address1":"","Address2":"","City":"","CustomerNumber":"6","Email":"","Name":"Updated
66
+ name","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/7","Address1":"","Address2":"","City":"","CustomerNumber":"7","Email":"","Name":"Test
67
+ customer","OrganisationNumber":"","Phone":"","ZipCode":""}]}'
68
+ recorded_at: Mon, 30 Jan 2023 10:36:42 GMT
69
+ recorded_with: VCR 6.1.0
@@ -11,10 +11,8 @@ http_interactions:
11
11
  - application/json
12
12
  Accept:
13
13
  - application/json
14
- Client-Secret:
15
- - 9aBA8ZgsvR
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, 22 Jan 2024 14:52:51 GMT
30
+ - Mon, 30 Jan 2023 10:36:43 GMT
33
31
  Vary:
34
32
  - Accept-Encoding
35
33
  X-Build:
36
- - 9dd4e26746
34
+ - 16d854443d
37
35
  X-Frame-Options:
38
36
  - sameorigin
39
37
  X-Rack-Responsetime:
40
- - '51'
38
+ - '71'
41
39
  X-Uid:
42
- - 4fed4ce2
40
+ - 1670cf54
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 fortnox.piwik.pro api.cling.se wss://api.cling.se ''unsafe-inline''
57
- ''unsafe-eval'' blob: data:'
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},"Customers":[]}'
63
- recorded_at: Mon, 22 Jan 2024 14:52:51 GMT
64
- recorded_with: VCR 6.2.0
61
+ recorded_at: Mon, 30 Jan 2023 10:36:43 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
- Client-Secret:
15
- - 9aBA8ZgsvR
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, 22 Jan 2024 14:52:50 GMT
30
+ - Mon, 30 Jan 2023 10:36:43 GMT
33
31
  Vary:
34
32
  - Accept-Encoding
35
33
  X-Build:
36
- - 9dd4e26746
34
+ - 16d854443d
37
35
  X-Frame-Options:
38
36
  - sameorigin
39
37
  X-Rack-Responsetime:
40
- - '64'
38
+ - '74'
41
39
  X-Uid:
42
- - 710ab200
40
+ - 5f8a7c8b
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 fortnox.piwik.pro api.cling.se wss://api.cling.se ''unsafe-inline''
57
- ''unsafe-eval'' blob: data:'
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 kunden.","Code":2000433}}'
63
- recorded_at: Mon, 22 Jan 2024 14:52:50 GMT
64
- recorded_with: VCR 6.2.0
61
+ recorded_at: Mon, 30 Jan 2023 10:36:43 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
- Client-Secret:
15
- - 9aBA8ZgsvR
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
- - '1443'
26
+ - '1447'
29
27
  Content-Type:
30
28
  - application/json
31
29
  Date:
32
- - Mon, 22 Jan 2024 14:52:50 GMT
30
+ - Mon, 30 Jan 2023 10:36:43 GMT
33
31
  Vary:
34
32
  - Accept-Encoding
35
33
  X-Build:
36
- - 9dd4e26746
34
+ - 16d854443d
37
35
  X-Frame-Options:
38
36
  - sameorigin
39
37
  X-Rack-Responsetime:
40
- - '43'
38
+ - '87'
41
39
  X-Uid:
42
- - cbc26314
40
+ - 22b46961
43
41
  Server:
44
42
  - Fortnox
45
43
  X-Content-Type-Options:
@@ -53,13 +51,14 @@ 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 fortnox.piwik.pro api.cling.se wss://api.cling.se ''unsafe-inline''
57
- ''unsafe-eval'' blob: data:'
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: '{"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
63
- 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}}'
64
- recorded_at: Mon, 22 Jan 2024 14:52:50 GMT
65
- recorded_with: VCR 6.2.0
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/246
5
+ uri: https://api.fortnox.se/3/customers/6
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
- Client-Secret:
15
- - 9aBA8ZgsvR
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
- - '1437'
26
+ - '1433'
29
27
  Content-Type:
30
28
  - application/json
31
29
  Date:
32
- - Mon, 22 Jan 2024 14:52:50 GMT
30
+ - Mon, 30 Jan 2023 10:36:42 GMT
33
31
  Vary:
34
32
  - Accept-Encoding
35
33
  X-Build:
36
- - 9dd4e26746
34
+ - 16d854443d
37
35
  X-Frame-Options:
38
36
  - sameorigin
39
37
  X-Rack-Responsetime:
40
- - '56'
38
+ - '88'
41
39
  X-Uid:
42
- - 9ec19fef
40
+ - cafac314
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 fortnox.piwik.pro api.cling.se wss://api.cling.se ''unsafe-inline''
57
- ''unsafe-eval'' blob: data:'
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: '{"Customer":{"@url":"https:\/\/api.fortnox.se\/3\/customers\/246","Address1":null,"Address2":null,"City":null,"Country":null,"Comments":null,"Currency":"SEK","CostCenter":null,"CountryCode":null,"Active":true,"CustomerNumber":"246","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
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
63
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}}'
64
- recorded_at: Mon, 22 Jan 2024 14:52:49 GMT
65
- recorded_with: VCR 6.2.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,10 +11,8 @@ http_interactions:
11
11
  - application/json
12
12
  Accept:
13
13
  - application/json
14
- Client-Secret:
15
- - 9aBA8ZgsvR
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
- - '303'
26
+ - '294'
29
27
  Content-Type:
30
28
  - application/json
31
29
  Date:
32
- - Mon, 22 Jan 2024 14:52:51 GMT
30
+ - Mon, 30 Jan 2023 10:36:43 GMT
33
31
  Vary:
34
32
  - Accept-Encoding
35
33
  X-Build:
36
- - 9dd4e26746
34
+ - 16d854443d
37
35
  X-Frame-Options:
38
36
  - sameorigin
39
37
  X-Rack-Responsetime:
40
- - '82'
38
+ - '78'
41
39
  X-Uid:
42
- - ce0751a3
40
+ - 881a79a9
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 fortnox.piwik.pro api.cling.se wss://api.cling.se ''unsafe-inline''
57
- ''unsafe-eval'' blob: data:'
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},"Customers":[{"@url":"https:\/\/api.fortnox.se\/3\/customers\/2","Address1":"","Address2":"","City":"New
63
- York","CustomerNumber":"2","Email":"","Name":"A customer","OrganisationNumber":"600102-7447","Phone":"","ZipCode":"10001"}]}'
64
- recorded_at: Mon, 22 Jan 2024 14:52:50 GMT
65
- recorded_with: VCR 6.2.0
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