fortnox-api 0.8.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (255) hide show
  1. checksums.yaml +4 -4
  2. data/.codeclimate.yml +1 -0
  3. data/.env.template +7 -0
  4. data/.env.test +11 -3
  5. data/.gitignore +7 -1
  6. data/.rubocop.yml +18 -2
  7. data/.tool-versions +1 -0
  8. data/.travis.yml +15 -12
  9. data/CHANGELOG.md +58 -3
  10. data/CONTRIBUTE.md +21 -9
  11. data/DEVELOPER_README.md +72 -0
  12. data/Guardfile +13 -4
  13. data/README.md +226 -64
  14. data/Rakefile +128 -0
  15. data/bin/get_tokens +79 -0
  16. data/bin/renew_tokens +28 -0
  17. data/fortnox-api.gemspec +31 -25
  18. data/lib/fortnox/api/mappers/article.rb +1 -1
  19. data/lib/fortnox/api/mappers/base/from_json.rb +5 -4
  20. data/lib/fortnox/api/mappers/base/to_json.rb +4 -5
  21. data/lib/fortnox/api/mappers/base.rb +3 -3
  22. data/lib/fortnox/api/mappers/customer.rb +1 -1
  23. data/lib/fortnox/api/mappers/default_delivery_types.rb +1 -1
  24. data/lib/fortnox/api/mappers/default_templates.rb +1 -1
  25. data/lib/fortnox/api/mappers/edi_information.rb +1 -1
  26. data/lib/fortnox/api/mappers/email_information.rb +1 -1
  27. data/lib/fortnox/api/mappers/invoice.rb +4 -4
  28. data/lib/fortnox/api/mappers/invoice_row.rb +1 -1
  29. data/lib/fortnox/api/mappers/order.rb +4 -4
  30. data/lib/fortnox/api/mappers/order_row.rb +1 -1
  31. data/lib/fortnox/api/mappers/project.rb +1 -1
  32. data/lib/fortnox/api/mappers/terms_of_payment.rb +1 -1
  33. data/lib/fortnox/api/mappers/unit.rb +1 -1
  34. data/lib/fortnox/api/mappers/value/country_string.rb +1 -1
  35. data/lib/fortnox/api/mappers.rb +18 -18
  36. data/lib/fortnox/api/models/article.rb +2 -2
  37. data/lib/fortnox/api/models/base.rb +23 -21
  38. data/lib/fortnox/api/models/customer.rb +57 -57
  39. data/lib/fortnox/api/models/document.rb +2 -2
  40. data/lib/fortnox/api/models/invoice.rb +2 -2
  41. data/lib/fortnox/api/models/label.rb +3 -3
  42. data/lib/fortnox/api/models/order.rb +2 -2
  43. data/lib/fortnox/api/models/project.rb +2 -2
  44. data/lib/fortnox/api/models/terms_of_payment.rb +2 -2
  45. data/lib/fortnox/api/models/unit.rb +2 -2
  46. data/lib/fortnox/api/models.rb +7 -7
  47. data/lib/fortnox/api/repositories/article.rb +3 -3
  48. data/lib/fortnox/api/repositories/authentication.rb +61 -0
  49. data/lib/fortnox/api/repositories/base/savers.rb +3 -1
  50. data/lib/fortnox/api/repositories/base.rb +25 -38
  51. data/lib/fortnox/api/repositories/customer.rb +3 -3
  52. data/lib/fortnox/api/repositories/invoice.rb +3 -3
  53. data/lib/fortnox/api/repositories/order.rb +3 -3
  54. data/lib/fortnox/api/repositories/project.rb +3 -3
  55. data/lib/fortnox/api/repositories/terms_of_payment.rb +3 -3
  56. data/lib/fortnox/api/repositories/unit.rb +3 -3
  57. data/lib/fortnox/api/repositories.rb +8 -7
  58. data/lib/fortnox/api/request_handling.rb +30 -18
  59. data/lib/fortnox/api/types/default_delivery_types.rb +0 -2
  60. data/lib/fortnox/api/types/default_templates.rb +0 -2
  61. data/lib/fortnox/api/types/document_row.rb +3 -3
  62. data/lib/fortnox/api/types/edi_information.rb +0 -2
  63. data/lib/fortnox/api/types/email_information.rb +0 -2
  64. data/lib/fortnox/api/types/enums.rb +27 -11
  65. data/lib/fortnox/api/types/invoice_row.rb +1 -1
  66. data/lib/fortnox/api/types/model.rb +5 -9
  67. data/lib/fortnox/api/types/nullable.rb +13 -9
  68. data/lib/fortnox/api/types/order_row.rb +1 -1
  69. data/lib/fortnox/api/types/required.rb +3 -3
  70. data/lib/fortnox/api/types/sized.rb +4 -4
  71. data/lib/fortnox/api/types.rb +31 -23
  72. data/lib/fortnox/api/version.rb +1 -1
  73. data/lib/fortnox/api.rb +21 -39
  74. data/spec/fortnox/api/mappers/base/canonical_name_sym_spec.rb +13 -11
  75. data/spec/fortnox/api/mappers/base/from_json_spec.rb +10 -12
  76. data/spec/fortnox/api/mappers/base/to_json_spec.rb +48 -57
  77. data/spec/fortnox/api/mappers/base_spec.rb +4 -7
  78. data/spec/fortnox/api/mappers/contexts/json_conversion.rb +38 -33
  79. data/spec/fortnox/api/mappers/default_delivery_types_spec.rb +1 -1
  80. data/spec/fortnox/api/mappers/examples/mapper.rb +1 -1
  81. data/spec/fortnox/api/mappers/unit_spec.rb +3 -4
  82. data/spec/fortnox/api/models/base_spec.rb +33 -22
  83. data/spec/fortnox/api/models/unit_spec.rb +5 -3
  84. data/spec/fortnox/api/repositories/article_spec.rb +14 -9
  85. data/spec/fortnox/api/repositories/authentication_spec.rb +103 -0
  86. data/spec/fortnox/api/repositories/base_spec.rb +105 -326
  87. data/spec/fortnox/api/repositories/customer_spec.rb +37 -7
  88. data/spec/fortnox/api/repositories/examples/all.rb +0 -1
  89. data/spec/fortnox/api/repositories/examples/find.rb +5 -8
  90. data/spec/fortnox/api/repositories/examples/only.rb +4 -13
  91. data/spec/fortnox/api/repositories/examples/save.rb +32 -18
  92. data/spec/fortnox/api/repositories/examples/save_with_nested_model.rb +0 -5
  93. data/spec/fortnox/api/repositories/examples/save_with_specially_named_attribute.rb +1 -4
  94. data/spec/fortnox/api/repositories/examples/search.rb +4 -7
  95. data/spec/fortnox/api/repositories/invoice_spec.rb +64 -21
  96. data/spec/fortnox/api/repositories/order_spec.rb +11 -9
  97. data/spec/fortnox/api/repositories/project_spec.rb +7 -6
  98. data/spec/fortnox/api/repositories/terms_of_payment_spec.rb +9 -7
  99. data/spec/fortnox/api/repositories/unit_spec.rb +13 -11
  100. data/spec/fortnox/api/types/country_spec.rb +1 -1
  101. data/spec/fortnox/api/types/email_spec.rb +2 -2
  102. data/spec/fortnox/api/types/examples/document_row.rb +3 -3
  103. data/spec/fortnox/api/types/examples/enum.rb +4 -4
  104. data/spec/fortnox/api/types/examples/types.rb +1 -3
  105. data/spec/fortnox/api/types/housework_types_spec.rb +54 -90
  106. data/spec/fortnox/api/types/model_spec.rb +13 -23
  107. data/spec/fortnox/api/types/nullable_spec.rb +30 -10
  108. data/spec/fortnox/api/types/order_row_spec.rb +2 -2
  109. data/spec/fortnox/api/types/required_spec.rb +7 -15
  110. data/spec/fortnox/api/types/sales_account_spec.rb +57 -0
  111. data/spec/fortnox/api_spec.rb +19 -124
  112. data/spec/spec_helper.rb +0 -14
  113. data/spec/support/helpers/configuration_helper.rb +30 -3
  114. data/spec/support/helpers.rb +1 -1
  115. data/spec/support/matchers/type/attribute_matcher.rb +2 -2
  116. data/spec/support/matchers/type/enum_matcher.rb +1 -1
  117. data/spec/support/matchers/type/have_account_number_matcher.rb +1 -1
  118. data/spec/support/matchers/type/have_email_matcher.rb +1 -1
  119. data/spec/support/matchers/type/have_nullable_date_matcher.rb +7 -5
  120. data/spec/support/matchers/type/have_nullable_matcher.rb +1 -1
  121. data/spec/support/matchers/type/have_nullable_string_matcher.rb +5 -5
  122. data/spec/support/matchers/type/require_attribute_matcher.rb +5 -5
  123. data/spec/support/matchers/type/type_matcher.rb +1 -1
  124. data/spec/support/vcr_setup.rb +16 -0
  125. data/spec/vcr_cassettes/articles/all.yml +32 -49
  126. data/spec/vcr_cassettes/articles/find_by_hash_failure.yml +27 -23
  127. data/spec/vcr_cassettes/articles/find_failure.yml +27 -23
  128. data/spec/vcr_cassettes/articles/find_id_1.yml +29 -24
  129. data/spec/vcr_cassettes/articles/find_new.yml +30 -26
  130. data/spec/vcr_cassettes/articles/multi_param_find_by_hash.yml +29 -25
  131. data/spec/vcr_cassettes/articles/save_new.yml +29 -25
  132. data/spec/vcr_cassettes/articles/save_old.yml +30 -26
  133. data/spec/vcr_cassettes/articles/save_with_specially_named_attribute.yml +29 -25
  134. data/spec/vcr_cassettes/articles/search_by_name.yml +32 -25
  135. data/spec/vcr_cassettes/articles/search_miss.yml +27 -23
  136. data/spec/vcr_cassettes/articles/search_with_special_char.yml +27 -23
  137. data/spec/vcr_cassettes/articles/single_param_find_by_hash.yml +29 -36
  138. data/spec/vcr_cassettes/authentication/expired_token.yml +54 -0
  139. data/spec/vcr_cassettes/authentication/invalid_authorization.yml +57 -0
  140. data/spec/vcr_cassettes/authentication/invalid_refresh_token.yml +58 -0
  141. data/spec/vcr_cassettes/authentication/valid_request.yml +63 -0
  142. data/spec/vcr_cassettes/customers/all.yml +35 -136
  143. data/spec/vcr_cassettes/customers/find_by_hash_failure.yml +27 -23
  144. data/spec/vcr_cassettes/customers/find_failure.yml +27 -23
  145. data/spec/vcr_cassettes/customers/find_id_1.yml +30 -25
  146. data/spec/vcr_cassettes/customers/find_new.yml +29 -25
  147. data/spec/vcr_cassettes/customers/find_with_sales_account.yml +63 -0
  148. data/spec/vcr_cassettes/customers/multi_param_find_by_hash.yml +29 -25
  149. data/spec/vcr_cassettes/customers/save_new.yml +28 -24
  150. data/spec/vcr_cassettes/customers/save_new_with_country_code_SE.yml +28 -24
  151. data/spec/vcr_cassettes/customers/save_new_with_sales_account.yml +63 -0
  152. data/spec/vcr_cassettes/customers/save_old.yml +29 -25
  153. data/spec/vcr_cassettes/customers/save_with_specially_named_attribute.yml +28 -24
  154. data/spec/vcr_cassettes/customers/search_by_name.yml +29 -53
  155. data/spec/vcr_cassettes/customers/search_miss.yml +27 -23
  156. data/spec/vcr_cassettes/customers/search_with_special_char.yml +27 -23
  157. data/spec/vcr_cassettes/customers/single_param_find_by_hash.yml +30 -26
  158. data/spec/vcr_cassettes/invoices/all.yml +62 -121
  159. data/spec/vcr_cassettes/invoices/filter_hit.yml +30 -28
  160. data/spec/vcr_cassettes/invoices/filter_invalid.yml +27 -23
  161. data/spec/vcr_cassettes/invoices/find_by_hash_failure.yml +27 -23
  162. data/spec/vcr_cassettes/invoices/find_failure.yml +27 -23
  163. data/spec/vcr_cassettes/invoices/find_id_1.yml +31 -26
  164. data/spec/vcr_cassettes/invoices/find_new.yml +32 -28
  165. data/spec/vcr_cassettes/invoices/multi_param_find_by_hash.yml +29 -25
  166. data/spec/vcr_cassettes/invoices/row_description_limit.yml +65 -0
  167. data/spec/vcr_cassettes/invoices/save_new.yml +31 -27
  168. data/spec/vcr_cassettes/invoices/save_new_with_comments.yml +31 -27
  169. data/spec/vcr_cassettes/invoices/save_new_with_country.yml +31 -26
  170. data/spec/vcr_cassettes/invoices/save_new_with_country_GB.yml +32 -27
  171. data/spec/vcr_cassettes/invoices/save_new_with_country_Norge.yml +31 -26
  172. data/spec/vcr_cassettes/invoices/save_new_with_country_Norway.yml +31 -26
  173. data/spec/vcr_cassettes/invoices/save_new_with_country_Sverige.yml +31 -26
  174. data/spec/vcr_cassettes/invoices/save_new_with_country_VA.yml +32 -27
  175. data/spec/vcr_cassettes/invoices/save_new_with_country_VI.yml +32 -27
  176. data/spec/vcr_cassettes/invoices/save_new_with_country_empty_string.yml +31 -26
  177. data/spec/vcr_cassettes/invoices/save_new_with_country_nil.yml +31 -26
  178. data/spec/vcr_cassettes/invoices/save_new_with_unsaved_parent.yml +65 -0
  179. data/spec/vcr_cassettes/invoices/save_old.yml +32 -28
  180. data/spec/vcr_cassettes/invoices/save_old_with_empty_comments.yml +32 -28
  181. data/spec/vcr_cassettes/invoices/save_old_with_empty_country.yml +32 -27
  182. data/spec/vcr_cassettes/invoices/save_old_with_nil_comments.yml +32 -28
  183. data/spec/vcr_cassettes/invoices/save_old_with_nil_country.yml +32 -27
  184. data/spec/vcr_cassettes/invoices/save_with_nested_model.yml +32 -27
  185. data/spec/vcr_cassettes/invoices/save_with_specially_named_attribute.yml +31 -26
  186. data/spec/vcr_cassettes/invoices/search_by_name.yml +29 -31
  187. data/spec/vcr_cassettes/invoices/search_miss.yml +27 -23
  188. data/spec/vcr_cassettes/invoices/search_with_special_char.yml +27 -23
  189. data/spec/vcr_cassettes/invoices/single_param_find_by_hash.yml +30 -26
  190. data/spec/vcr_cassettes/orders/all.yml +35 -123
  191. data/spec/vcr_cassettes/orders/filter_hit.yml +30 -30
  192. data/spec/vcr_cassettes/orders/filter_invalid.yml +27 -23
  193. data/spec/vcr_cassettes/orders/find_by_hash_failure.yml +27 -23
  194. data/spec/vcr_cassettes/orders/find_failure.yml +27 -23
  195. data/spec/vcr_cassettes/orders/find_id_1.yml +33 -27
  196. data/spec/vcr_cassettes/orders/find_new.yml +32 -28
  197. data/spec/vcr_cassettes/orders/housework_invalid_tax_reduction_type.yml +28 -24
  198. data/spec/vcr_cassettes/orders/housework_othercoses_invalid.yml +28 -24
  199. data/spec/vcr_cassettes/orders/housework_type_babysitting.yml +32 -27
  200. data/spec/vcr_cassettes/orders/housework_type_cleaning.yml +32 -27
  201. data/spec/vcr_cassettes/orders/housework_type_construction.yml +32 -27
  202. data/spec/vcr_cassettes/orders/housework_type_cooking.yml +28 -24
  203. data/spec/vcr_cassettes/orders/housework_type_electricity.yml +32 -27
  204. data/spec/vcr_cassettes/orders/housework_type_gardening.yml +32 -27
  205. data/spec/vcr_cassettes/orders/housework_type_glassmetalwork.yml +32 -27
  206. data/spec/vcr_cassettes/orders/housework_type_grounddrainagework.yml +32 -27
  207. data/spec/vcr_cassettes/orders/housework_type_hvac.yml +32 -27
  208. data/spec/vcr_cassettes/orders/housework_type_itservices.yml +32 -27
  209. data/spec/vcr_cassettes/orders/housework_type_majorappliancerepair.yml +32 -27
  210. data/spec/vcr_cassettes/orders/housework_type_masonry.yml +32 -27
  211. data/spec/vcr_cassettes/orders/housework_type_movingservices.yml +32 -27
  212. data/spec/vcr_cassettes/orders/housework_type_othercare.yml +32 -27
  213. data/spec/vcr_cassettes/orders/housework_type_othercosts.yml +32 -27
  214. data/spec/vcr_cassettes/orders/housework_type_paintingwallpapering.yml +32 -27
  215. data/spec/vcr_cassettes/orders/housework_type_snowplowing.yml +32 -27
  216. data/spec/vcr_cassettes/orders/housework_type_textileclothing.yml +32 -27
  217. data/spec/vcr_cassettes/orders/housework_type_tutoring.yml +28 -24
  218. data/spec/vcr_cassettes/orders/multi_param_find_by_hash.yml +29 -25
  219. data/spec/vcr_cassettes/orders/save_new.yml +32 -28
  220. data/spec/vcr_cassettes/orders/save_old.yml +32 -28
  221. data/spec/vcr_cassettes/orders/save_with_nested_model.yml +32 -27
  222. data/spec/vcr_cassettes/orders/search_by_name.yml +29 -27
  223. data/spec/vcr_cassettes/orders/search_miss.yml +27 -23
  224. data/spec/vcr_cassettes/orders/search_with_special_char.yml +27 -23
  225. data/spec/vcr_cassettes/orders/single_param_find_by_hash.yml +30 -26
  226. data/spec/vcr_cassettes/projects/all.yml +30 -43
  227. data/spec/vcr_cassettes/projects/find_by_hash_failure.yml +27 -23
  228. data/spec/vcr_cassettes/projects/find_failure.yml +27 -23
  229. data/spec/vcr_cassettes/projects/find_id_1.yml +29 -25
  230. data/spec/vcr_cassettes/projects/find_new.yml +30 -26
  231. data/spec/vcr_cassettes/projects/multi_param_find_by_hash.yml +31 -26
  232. data/spec/vcr_cassettes/projects/save_new.yml +29 -25
  233. data/spec/vcr_cassettes/projects/save_old.yml +30 -26
  234. data/spec/vcr_cassettes/projects/single_param_find_by_hash.yml +29 -25
  235. data/spec/vcr_cassettes/termsofpayments/all.yml +32 -32
  236. data/spec/vcr_cassettes/termsofpayments/find_failure.yml +27 -23
  237. data/spec/vcr_cassettes/termsofpayments/find_id_1.yml +29 -26
  238. data/spec/vcr_cassettes/termsofpayments/find_new.yml +29 -25
  239. data/spec/vcr_cassettes/termsofpayments/save_new.yml +29 -25
  240. data/spec/vcr_cassettes/termsofpayments/save_old.yml +29 -25
  241. data/spec/vcr_cassettes/units/all.yml +29 -32
  242. data/spec/vcr_cassettes/units/find_failure.yml +27 -23
  243. data/spec/vcr_cassettes/units/find_id_1.yml +29 -25
  244. data/spec/vcr_cassettes/units/find_new.yml +29 -25
  245. data/spec/vcr_cassettes/units/save_new.yml +29 -25
  246. data/spec/vcr_cassettes/units/save_old.yml +29 -25
  247. data/spec/vcr_cassettes/units/save_with_specially_named_attribute.yml +29 -25
  248. metadata +130 -261
  249. data/lib/fortnox/api/circular_queue.rb +0 -39
  250. data/spec/fortnox/api/circular_queue_spec.rb +0 -52
  251. data/spec/support/helpers/dummy_class_helper.rb +0 -38
  252. data/spec/support/helpers/when_performing_helper.rb +0 -7
  253. data/spec/vcr_cassettes/invoices/save_new_with_country_KR.yml +0 -61
  254. data/spec/vcr_cassettes/orders/housework_without_tax_reduction_type.yml +0 -57
  255. data/temp.txt +0 -1
@@ -0,0 +1,63 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.fortnox.se/3/customers/
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"Customer":{"Name":"Customer with Sales Account","SalesAccount":"3001"}}'
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: 201
23
+ message: Created
24
+ headers:
25
+ Content-Length:
26
+ - '1453'
27
+ Content-Type:
28
+ - application/json
29
+ Date:
30
+ - Mon, 30 Jan 2023 10:36:44 GMT
31
+ Location:
32
+ - customers
33
+ X-Build:
34
+ - 16d854443d
35
+ X-Frame-Options:
36
+ - sameorigin
37
+ X-Rack-Responsetime:
38
+ - '147'
39
+ X-Uid:
40
+ - bd5ae0d9
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: UTF-8
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
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: put
5
- uri: https://api.fortnox.se/3/customers/231
5
+ uri: https://api.fortnox.se/3/customers/6
6
6
  body:
7
7
  encoding: UTF-8
8
8
  string: '{"Customer":{"Name":"Updated name"}}'
@@ -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,36 +22,42 @@ http_interactions:
24
22
  code: 200
25
23
  message: OK
26
24
  headers:
27
- Server:
28
- - nginx
29
- Date:
30
- - Mon, 21 Dec 2020 20:34:24 GMT
25
+ Content-Length:
26
+ - '1438'
31
27
  Content-Type:
32
28
  - application/json
33
- Connection:
34
- - close
29
+ Date:
30
+ - Mon, 30 Jan 2023 10:36:42 GMT
35
31
  Vary:
36
32
  - Accept-Encoding
33
+ X-Build:
34
+ - 16d854443d
35
+ X-Frame-Options:
36
+ - sameorigin
37
37
  X-Rack-Responsetime:
38
- - '93'
38
+ - '195'
39
39
  X-Uid:
40
- - 48f33edb
41
- X-Build:
42
- - d59e2acefa
43
- Strict-Transport-Security:
44
- - max-age=31536000; includeSubdomains
45
- X-Xss-Protection:
46
- - 1; mode=block
40
+ - f5eedac5
41
+ Server:
42
+ - Fortnox
47
43
  X-Content-Type-Options:
48
44
  - nosniff
49
- X-Frame-Options:
50
- - sameorigin
45
+ X-Xss-Protection:
46
+ - '0'
51
47
  Referrer-Policy:
52
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
53
58
  body:
54
59
  encoding: ASCII-8BIT
55
- string: '{"Customer":{"@url":"https:\/\/api.fortnox.se\/3\/customers\/231","Address1":null,"Address2":null,"City":null,"Country":null,"Comments":null,"Currency":"SEK","CostCenter":null,"CountryCode":null,"Active":true,"CustomerNumber":"231","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
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":"Updated
56
61
  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":null}}'
57
- http_version:
58
- recorded_at: Mon, 21 Dec 2020 20:34:24 GMT
59
- recorded_with: VCR 4.0.0
62
+ recorded_at: Mon, 30 Jan 2023 10:36:42 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:
@@ -24,36 +22,42 @@ http_interactions:
24
22
  code: 201
25
23
  message: Created
26
24
  headers:
27
- Server:
28
- - nginx
29
- Date:
30
- - Mon, 21 Dec 2020 20:34:24 GMT
25
+ Content-Length:
26
+ - '1455'
31
27
  Content-Type:
32
28
  - application/json
33
- Connection:
34
- - close
29
+ Date:
30
+ - Mon, 30 Jan 2023 10:36:42 GMT
35
31
  Location:
36
32
  - customers
33
+ X-Build:
34
+ - 16d854443d
35
+ X-Frame-Options:
36
+ - sameorigin
37
37
  X-Rack-Responsetime:
38
- - '37'
38
+ - '139'
39
39
  X-Uid:
40
- - 02a76035
41
- X-Build:
42
- - d59e2acefa
43
- Strict-Transport-Security:
44
- - max-age=31536000; includeSubdomains
45
- X-Xss-Protection:
46
- - 1; mode=block
40
+ - 0c0ff69e
41
+ Server:
42
+ - Fortnox
47
43
  X-Content-Type-Options:
48
44
  - nosniff
49
- X-Frame-Options:
50
- - sameorigin
45
+ X-Xss-Protection:
46
+ - '0'
51
47
  Referrer-Policy:
52
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
53
58
  body:
54
59
  encoding: UTF-8
55
- string: '{"Customer":{"@url":"https:\/\/api.fortnox.se\/3\/customers\/232","Address1":null,"Address2":null,"City":null,"Country":null,"Comments":null,"Currency":"SEK","CostCenter":null,"CountryCode":null,"Active":true,"CustomerNumber":"232","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":"test@example.com","EmailOffer":"","EmailOfferBCC":"","EmailOfferCC":"","EmailOrder":"","EmailOrderBCC":"","EmailOrderCC":"","ExternalReference":null,"Fax":null,"GLN":null,"GLNDelivery":null,"InvoiceAdministrationFee":null,"InvoiceDiscount":null,"InvoiceFreight":null,"InvoiceRemark":"","Name":"Test
60
+ string: '{"Customer":{"@url":"https:\/\/api.fortnox.se\/3\/customers\/7","Address1":null,"Address2":null,"City":null,"Country":null,"Comments":null,"Currency":"SEK","CostCenter":null,"CountryCode":null,"Active":true,"CustomerNumber":"7","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":"test@example.com","EmailOffer":"","EmailOfferBCC":"","EmailOfferCC":"","EmailOrder":"","EmailOrderBCC":"","EmailOrderCC":"","ExternalReference":null,"Fax":null,"GLN":null,"GLNDelivery":null,"InvoiceAdministrationFee":null,"InvoiceDiscount":null,"InvoiceFreight":null,"InvoiceRemark":"","Name":"Test
56
61
  customer","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}}'
57
- http_version:
58
- recorded_at: Mon, 21 Dec 2020 20:34:24 GMT
59
- recorded_with: VCR 4.0.0
62
+ recorded_at: Mon, 30 Jan 2023 10:36:42 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:
@@ -24,65 +22,43 @@ http_interactions:
24
22
  code: 200
25
23
  message: OK
26
24
  headers:
27
- Server:
28
- - nginx
29
- Date:
30
- - Mon, 21 Dec 2020 20:34:25 GMT
25
+ Content-Length:
26
+ - '484'
31
27
  Content-Type:
32
28
  - application/json
33
- Connection:
34
- - close
29
+ Date:
30
+ - Mon, 30 Jan 2023 10:36:44 GMT
35
31
  Vary:
36
32
  - Accept-Encoding
33
+ X-Build:
34
+ - 16d854443d
35
+ X-Frame-Options:
36
+ - sameorigin
37
37
  X-Rack-Responsetime:
38
- - '17'
38
+ - '66'
39
39
  X-Uid:
40
- - eddb1149
41
- X-Build:
42
- - d59e2acefa
43
- Strict-Transport-Security:
44
- - max-age=31536000; includeSubdomains
45
- X-Xss-Protection:
46
- - 1; mode=block
40
+ - 4a30ce12
41
+ Server:
42
+ - Fortnox
47
43
  X-Content-Type-Options:
48
44
  - nosniff
49
- X-Frame-Options:
50
- - sameorigin
45
+ X-Xss-Protection:
46
+ - '0'
51
47
  Referrer-Policy:
52
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
53
58
  body:
54
59
  encoding: ASCII-8BIT
55
- string: '{"MetaInformation":{"@TotalResources":31,"@TotalPages":1,"@CurrentPage":1},"Customers":[{"@url":"https:\/\/api.fortnox.se\/3\/customers\/3","Address1":"","Address2":"","City":"New
56
- York","CustomerNumber":"3","Email":"","Name":"Test customer","OrganisationNumber":"400101-8383","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/93","Address1":"testgatan
57
- 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
58
- 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
59
- 6","Address2":"","City":"tesst","CustomerNumber":"99","Email":"test@email.com","Name":"test
60
- testsson","OrganisationNumber":"","Phone":"1241415151","ZipCode":"111 11"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/100","Address1":"testgatan
61
- 6","Address2":"","City":"teststan","CustomerNumber":"100","Email":"test@email.com","Name":"test12313","OrganisationNumber":"","Phone":"123141","ZipCode":"111
62
- 11"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/109","Address1":"","Address2":"","City":"","CustomerNumber":"109","Email":"","Name":"Test
63
- customer","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/110","Address1":"","Address2":"","City":"","CustomerNumber":"110","Email":"","Name":"Test
64
- customer","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/111","Address1":"","Address2":"","City":"","CustomerNumber":"111","Email":"","Name":"Test
65
- customer","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/112","Address1":"","Address2":"","City":"","CustomerNumber":"112","Email":"","Name":"Test
66
- customer","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/113","Address1":"","Address2":"","City":"","CustomerNumber":"113","Email":"","Name":"Test
67
- customer","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/117","Address1":"","Address2":"","City":"","CustomerNumber":"117","Email":"","Name":"Test
68
- customer","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/119","Address1":"","Address2":"","City":"","CustomerNumber":"119","Email":"","Name":"Test
69
- customer","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/121","Address1":"","Address2":"","City":"","CustomerNumber":"121","Email":"","Name":"Test
70
- customer","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/136","Address1":"","Address2":"","City":"","CustomerNumber":"136","Email":"","Name":"Test
71
- customer","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/138","Address1":"","Address2":"","City":"","CustomerNumber":"138","Email":"","Name":"Test
72
- customer","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/140","Address1":"","Address2":"","City":"","CustomerNumber":"140","Email":"","Name":"Test
73
- customer","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/142","Address1":"","Address2":"","City":"","CustomerNumber":"142","Email":"","Name":"Test
74
- customer","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/144","Address1":"","Address2":"","City":"","CustomerNumber":"144","Email":"","Name":"Test
75
- customer","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/146","Address1":"","Address2":"","City":"","CustomerNumber":"146","Email":"","Name":"Test
76
- customer","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/186","Address1":"Post
77
- 1","Address2":"","City":"Ort 1","CustomerNumber":"186","Email":"","Name":"Test
78
- Testsson","OrganisationNumber":"","Phone":"Tel 123","ZipCode":"Nr 1"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/215","Address1":"","Address2":"","City":"","CustomerNumber":"215","Email":"","Name":"Test
79
- customer","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/217","Address1":"1","Address2":"","City":"3","CustomerNumber":"217","Email":"","Name":"Test","OrganisationNumber":"","Phone":"0","ZipCode":"2"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/218","Address1":"a","Address2":"","City":"c","CustomerNumber":"218","Email":"","Name":"Testkund
80
- 1","OrganisationNumber":"","Phone":"","ZipCode":"b"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/224","Address1":"Kumlagatan
81
- 3 lgh 1205","Address2":"","City":"Lundsbrunn","CustomerNumber":"224","Email":"","Name":"Linda
82
- Hassan Ahmed test","OrganisationNumber":"19700110-2222","Phone":"","ZipCode":"53392"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/227","Address1":"","Address2":"","City":"","CustomerNumber":"227","Email":"","Name":"Test
83
- customer","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/229","Address1":"","Address2":"","City":"","CustomerNumber":"229","Email":"","Name":"Test
84
- customer","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/232","Address1":"","Address2":"","City":"","CustomerNumber":"232","Email":"","Name":"Test
60
+ string: '{"MetaInformation":{"@TotalResources":2,"@TotalPages":1,"@CurrentPage":1},"Customers":[{"@url":"https:\/\/api.fortnox.se\/3\/customers\/2","Address1":"","Address2":"","City":"New
61
+ York","CustomerNumber":"2","Email":"","Name":"Test customer","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/7","Address1":"","Address2":"","City":"","CustomerNumber":"7","Email":"","Name":"Test
85
62
  customer","OrganisationNumber":"","Phone":"","ZipCode":""}]}'
86
- http_version:
87
- recorded_at: Mon, 21 Dec 2020 20:34:25 GMT
88
- recorded_with: VCR 4.0.0
63
+ recorded_at: Mon, 30 Jan 2023 10:36:44 GMT
64
+ 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:
@@ -24,35 +22,41 @@ http_interactions:
24
22
  code: 200
25
23
  message: OK
26
24
  headers:
27
- Server:
28
- - nginx
29
- Date:
30
- - Mon, 21 Dec 2020 20:34:25 GMT
25
+ Content-Length:
26
+ - '89'
31
27
  Content-Type:
32
28
  - application/json
33
- Connection:
34
- - close
29
+ Date:
30
+ - Mon, 30 Jan 2023 10:36:43 GMT
35
31
  Vary:
36
32
  - Accept-Encoding
33
+ X-Build:
34
+ - 16d854443d
35
+ X-Frame-Options:
36
+ - sameorigin
37
37
  X-Rack-Responsetime:
38
- - '25'
38
+ - '77'
39
39
  X-Uid:
40
- - 76ea83cb
41
- X-Build:
42
- - d59e2acefa
43
- Strict-Transport-Security:
44
- - max-age=31536000; includeSubdomains
45
- X-Xss-Protection:
46
- - 1; mode=block
40
+ - d9e87b5e
41
+ Server:
42
+ - Fortnox
47
43
  X-Content-Type-Options:
48
44
  - nosniff
49
- X-Frame-Options:
50
- - sameorigin
45
+ X-Xss-Protection:
46
+ - '0'
51
47
  Referrer-Policy:
52
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
53
58
  body:
54
59
  encoding: ASCII-8BIT
55
60
  string: '{"MetaInformation":{"@TotalResources":0,"@TotalPages":0,"@CurrentPage":1},"Customers":[]}'
56
- http_version:
57
- recorded_at: Mon, 21 Dec 2020 20:34:25 GMT
58
- recorded_with: VCR 4.0.0
61
+ recorded_at: Mon, 30 Jan 2023 10:36:43 GMT
62
+ recorded_with: VCR 6.1.0
@@ -11,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,35 +22,41 @@ http_interactions:
24
22
  code: 200
25
23
  message: OK
26
24
  headers:
27
- Server:
28
- - nginx
29
- Date:
30
- - Mon, 21 Dec 2020 20:34:25 GMT
25
+ Content-Length:
26
+ - '89'
31
27
  Content-Type:
32
28
  - application/json
33
- Connection:
34
- - close
29
+ Date:
30
+ - Mon, 30 Jan 2023 10:36:44 GMT
35
31
  Vary:
36
32
  - Accept-Encoding
33
+ X-Build:
34
+ - 16d854443d
35
+ X-Frame-Options:
36
+ - sameorigin
37
37
  X-Rack-Responsetime:
38
- - '18'
38
+ - '80'
39
39
  X-Uid:
40
- - fba71f23
41
- X-Build:
42
- - d59e2acefa
43
- Strict-Transport-Security:
44
- - max-age=31536000; includeSubdomains
45
- X-Xss-Protection:
46
- - 1; mode=block
40
+ - 4e66d1d0
41
+ Server:
42
+ - Fortnox
47
43
  X-Content-Type-Options:
48
44
  - nosniff
49
- X-Frame-Options:
50
- - sameorigin
45
+ X-Xss-Protection:
46
+ - '0'
51
47
  Referrer-Policy:
52
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
53
58
  body:
54
59
  encoding: ASCII-8BIT
55
60
  string: '{"MetaInformation":{"@TotalResources":0,"@TotalPages":0,"@CurrentPage":1},"Customers":[]}'
56
- http_version:
57
- recorded_at: Mon, 21 Dec 2020 20:34:25 GMT
58
- recorded_with: VCR 4.0.0
61
+ recorded_at: Mon, 30 Jan 2023 10:36:44 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:
@@ -24,37 +22,43 @@ http_interactions:
24
22
  code: 200
25
23
  message: OK
26
24
  headers:
27
- Server:
28
- - nginx
29
- Date:
30
- - Mon, 21 Dec 2020 20:34:25 GMT
25
+ Content-Length:
26
+ - '496'
31
27
  Content-Type:
32
28
  - application/json
33
- Connection:
34
- - close
29
+ Date:
30
+ - Mon, 30 Jan 2023 10:36:43 GMT
35
31
  Vary:
36
32
  - Accept-Encoding
33
+ X-Build:
34
+ - 16d854443d
35
+ X-Frame-Options:
36
+ - sameorigin
37
37
  X-Rack-Responsetime:
38
- - '18'
38
+ - '64'
39
39
  X-Uid:
40
- - afdf5f4d
41
- X-Build:
42
- - d59e2acefa
43
- Strict-Transport-Security:
44
- - max-age=31536000; includeSubdomains
45
- X-Xss-Protection:
46
- - 1; mode=block
40
+ - 00be7577
41
+ Server:
42
+ - Fortnox
47
43
  X-Content-Type-Options:
48
44
  - nosniff
49
- X-Frame-Options:
50
- - sameorigin
45
+ X-Xss-Protection:
46
+ - '0'
51
47
  Referrer-Policy:
52
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
53
58
  body:
54
59
  encoding: ASCII-8BIT
55
- string: '{"MetaInformation":{"@TotalResources":2,"@TotalPages":1,"@CurrentPage":1},"Customers":[{"@url":"https:\/\/api.fortnox.se\/3\/customers\/2","Address1":"","Address2":"","City":"New
56
- 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
57
- York","CustomerNumber":"3","Email":"","Name":"Test customer","OrganisationNumber":"400101-8383","Phone":"","ZipCode":""}]}'
58
- http_version:
59
- recorded_at: Mon, 21 Dec 2020 20:34:25 GMT
60
- recorded_with: VCR 4.0.0
60
+ string: '{"MetaInformation":{"@TotalResources":2,"@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":""}]}'
63
+ recorded_at: Mon, 30 Jan 2023 10:36:43 GMT
64
+ recorded_with: VCR 6.1.0