fortnox-api 0.7.2 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.codeclimate.yml +1 -0
- data/.rubocop.yml +1 -1
- data/.tool-versions +1 -0
- data/.travis.yml +5 -10
- data/CHANGELOG.md +45 -1
- data/README.md +7 -4
- data/Rakefile +5 -0
- data/fortnox-api.gemspec +22 -17
- data/lib/fortnox/api/mappers/article.rb +1 -1
- data/lib/fortnox/api/mappers/base/from_json.rb +3 -3
- data/lib/fortnox/api/mappers/base/to_json.rb +2 -2
- data/lib/fortnox/api/mappers/base.rb +3 -3
- data/lib/fortnox/api/mappers/customer.rb +1 -1
- data/lib/fortnox/api/mappers/default_delivery_types.rb +1 -1
- data/lib/fortnox/api/mappers/default_templates.rb +1 -1
- data/lib/fortnox/api/mappers/edi_information.rb +1 -1
- data/lib/fortnox/api/mappers/email_information.rb +1 -1
- data/lib/fortnox/api/mappers/invoice.rb +4 -4
- data/lib/fortnox/api/mappers/invoice_row.rb +1 -1
- data/lib/fortnox/api/mappers/order.rb +4 -4
- data/lib/fortnox/api/mappers/order_row.rb +1 -1
- data/lib/fortnox/api/mappers/project.rb +1 -1
- data/lib/fortnox/api/mappers/terms_of_payment.rb +1 -1
- data/lib/fortnox/api/mappers/unit.rb +1 -1
- data/lib/fortnox/api/mappers/value/country_string.rb +1 -1
- data/lib/fortnox/api/mappers.rb +18 -18
- data/lib/fortnox/api/models/article.rb +2 -2
- data/lib/fortnox/api/models/base.rb +14 -14
- data/lib/fortnox/api/models/customer.rb +2 -2
- data/lib/fortnox/api/models/document.rb +5 -2
- data/lib/fortnox/api/models/invoice.rb +2 -2
- data/lib/fortnox/api/models/label.rb +1 -1
- data/lib/fortnox/api/models/order.rb +2 -2
- data/lib/fortnox/api/models/project.rb +2 -2
- data/lib/fortnox/api/models/terms_of_payment.rb +2 -2
- data/lib/fortnox/api/models/unit.rb +2 -2
- data/lib/fortnox/api/models.rb +7 -7
- data/lib/fortnox/api/repositories/article.rb +3 -3
- data/lib/fortnox/api/repositories/base.rb +4 -3
- data/lib/fortnox/api/repositories/customer.rb +3 -3
- data/lib/fortnox/api/repositories/invoice.rb +3 -3
- data/lib/fortnox/api/repositories/order.rb +3 -3
- data/lib/fortnox/api/repositories/project.rb +3 -3
- data/lib/fortnox/api/repositories/terms_of_payment.rb +3 -3
- data/lib/fortnox/api/repositories/unit.rb +3 -3
- data/lib/fortnox/api/repositories.rb +7 -7
- data/lib/fortnox/api/types/default_delivery_types.rb +0 -2
- data/lib/fortnox/api/types/default_templates.rb +0 -2
- data/lib/fortnox/api/types/edi_information.rb +0 -2
- data/lib/fortnox/api/types/email_information.rb +0 -2
- data/lib/fortnox/api/types/enums.rb +36 -8
- data/lib/fortnox/api/types/invoice_row.rb +1 -1
- data/lib/fortnox/api/types/model.rb +4 -6
- data/lib/fortnox/api/types/nullable.rb +13 -9
- data/lib/fortnox/api/types/order_row.rb +1 -1
- data/lib/fortnox/api/types/required.rb +3 -3
- data/lib/fortnox/api/types/sized.rb +2 -2
- data/lib/fortnox/api/types.rb +23 -23
- data/lib/fortnox/api/version.rb +1 -1
- data/lib/fortnox/api.rb +18 -16
- data/spec/fortnox/api/circular_queue_spec.rb +3 -3
- data/spec/fortnox/api/mappers/base/canonical_name_sym_spec.rb +9 -7
- data/spec/fortnox/api/mappers/default_delivery_types_spec.rb +1 -1
- data/spec/fortnox/api/mappers/examples/mapper.rb +1 -1
- data/spec/fortnox/api/models/base_spec.rb +8 -8
- data/spec/fortnox/api/repositories/article_spec.rb +2 -2
- data/spec/fortnox/api/repositories/base_spec.rb +4 -12
- data/spec/fortnox/api/repositories/customer_spec.rb +1 -1
- data/spec/fortnox/api/repositories/invoice_spec.rb +13 -19
- data/spec/fortnox/api/repositories/project_spec.rb +1 -1
- data/spec/fortnox/api/repositories/terms_of_payment_spec.rb +2 -2
- data/spec/fortnox/api/repositories/unit_spec.rb +3 -3
- data/spec/fortnox/api/types/enums_spec.rb +1 -0
- data/spec/fortnox/api/types/housework_types_spec.rb +122 -34
- data/spec/fortnox/api/types/model_spec.rb +11 -17
- data/spec/fortnox/api/types/nullable_spec.rb +30 -10
- data/spec/fortnox/api/types/required_spec.rb +1 -4
- data/spec/support/matchers/type/enum_matcher.rb +1 -1
- data/spec/support/matchers/type/have_account_number_matcher.rb +1 -1
- data/spec/support/matchers/type/have_email_matcher.rb +1 -1
- data/spec/support/matchers/type/have_nullable_date_matcher.rb +5 -5
- data/spec/support/matchers/type/have_nullable_string_matcher.rb +3 -3
- data/spec/vcr_cassettes/articles/all.yml +43 -17
- data/spec/vcr_cassettes/articles/find_by_hash_failure.yml +34 -15
- data/spec/vcr_cassettes/articles/find_failure.yml +34 -15
- data/spec/vcr_cassettes/articles/find_id_1.yml +35 -16
- data/spec/vcr_cassettes/articles/find_new.yml +37 -18
- data/spec/vcr_cassettes/articles/multi_param_find_by_hash.yml +34 -15
- data/spec/vcr_cassettes/articles/save_new.yml +35 -15
- data/spec/vcr_cassettes/articles/save_old.yml +37 -18
- data/spec/vcr_cassettes/articles/save_with_specially_named_attribute.yml +35 -15
- data/spec/vcr_cassettes/articles/search_by_name.yml +34 -15
- data/spec/vcr_cassettes/articles/search_miss.yml +34 -15
- data/spec/vcr_cassettes/articles/search_with_special_char.yml +34 -15
- data/spec/vcr_cassettes/articles/single_param_find_by_hash.yml +38 -18
- data/spec/vcr_cassettes/customers/all.yml +36 -17
- data/spec/vcr_cassettes/customers/find_by_hash_failure.yml +34 -15
- data/spec/vcr_cassettes/customers/find_failure.yml +34 -15
- data/spec/vcr_cassettes/customers/find_id_1.yml +34 -15
- data/spec/vcr_cassettes/customers/find_new.yml +36 -17
- data/spec/vcr_cassettes/customers/multi_param_find_by_hash.yml +34 -15
- data/spec/vcr_cassettes/customers/save_new.yml +34 -14
- data/spec/vcr_cassettes/customers/save_new_with_country_code_SE.yml +30 -20
- data/spec/vcr_cassettes/customers/save_old.yml +36 -17
- data/spec/vcr_cassettes/customers/save_with_specially_named_attribute.yml +34 -14
- data/spec/vcr_cassettes/customers/search_by_name.yml +38 -16
- data/spec/vcr_cassettes/customers/search_miss.yml +34 -15
- data/spec/vcr_cassettes/customers/search_with_special_char.yml +34 -15
- data/spec/vcr_cassettes/customers/single_param_find_by_hash.yml +34 -15
- data/spec/vcr_cassettes/invoices/all.yml +39 -17
- data/spec/vcr_cassettes/invoices/filter_hit.yml +34 -15
- data/spec/vcr_cassettes/invoices/filter_invalid.yml +33 -13
- data/spec/vcr_cassettes/invoices/find_by_hash_failure.yml +34 -15
- data/spec/vcr_cassettes/invoices/find_failure.yml +34 -15
- data/spec/vcr_cassettes/invoices/find_id_1.yml +36 -17
- data/spec/vcr_cassettes/invoices/find_new.yml +39 -20
- data/spec/vcr_cassettes/invoices/multi_param_find_by_hash.yml +34 -15
- data/spec/vcr_cassettes/invoices/save_new.yml +37 -17
- data/spec/vcr_cassettes/invoices/save_new_with_comments.yml +37 -17
- data/spec/vcr_cassettes/invoices/save_new_with_country.yml +32 -22
- data/spec/vcr_cassettes/invoices/save_new_with_country_GB.yml +33 -23
- data/spec/vcr_cassettes/invoices/save_new_with_country_Norge.yml +32 -22
- data/spec/vcr_cassettes/invoices/save_new_with_country_Norway.yml +32 -22
- data/spec/vcr_cassettes/invoices/save_new_with_country_Sverige.yml +32 -22
- data/spec/vcr_cassettes/invoices/save_new_with_country_VA.yml +33 -23
- data/spec/vcr_cassettes/invoices/save_new_with_country_VI.yml +33 -23
- data/spec/vcr_cassettes/invoices/save_new_with_country_empty_string.yml +32 -22
- data/spec/vcr_cassettes/invoices/save_new_with_country_nil.yml +32 -22
- data/spec/vcr_cassettes/invoices/save_old.yml +39 -20
- data/spec/vcr_cassettes/invoices/save_old_with_empty_comments.yml +39 -20
- data/spec/vcr_cassettes/invoices/save_old_with_empty_country.yml +34 -25
- data/spec/vcr_cassettes/invoices/save_old_with_nil_comments.yml +39 -20
- data/spec/vcr_cassettes/invoices/save_old_with_nil_country.yml +34 -25
- data/spec/vcr_cassettes/invoices/save_with_nested_model.yml +36 -16
- data/spec/vcr_cassettes/invoices/save_with_specially_named_attribute.yml +36 -16
- data/spec/vcr_cassettes/invoices/search_by_name.yml +34 -15
- data/spec/vcr_cassettes/invoices/search_miss.yml +34 -15
- data/spec/vcr_cassettes/invoices/search_with_special_char.yml +34 -15
- data/spec/vcr_cassettes/invoices/single_param_find_by_hash.yml +34 -15
- data/spec/vcr_cassettes/orders/all.yml +35 -16
- data/spec/vcr_cassettes/orders/filter_hit.yml +34 -15
- data/spec/vcr_cassettes/orders/filter_invalid.yml +33 -13
- data/spec/vcr_cassettes/orders/find_by_hash_failure.yml +34 -15
- data/spec/vcr_cassettes/orders/find_failure.yml +34 -15
- data/spec/vcr_cassettes/orders/find_id_1.yml +35 -16
- data/spec/vcr_cassettes/orders/find_new.yml +38 -19
- data/spec/vcr_cassettes/orders/housework_invalid_tax_reduction_type.yml +63 -0
- data/spec/vcr_cassettes/orders/housework_othercoses_invalid.yml +63 -0
- data/spec/vcr_cassettes/orders/housework_type_babysitting.yml +37 -17
- data/spec/vcr_cassettes/orders/housework_type_cleaning.yml +37 -17
- data/spec/vcr_cassettes/orders/housework_type_construction.yml +37 -17
- data/spec/vcr_cassettes/orders/housework_type_cooking.yml +34 -14
- data/spec/vcr_cassettes/orders/housework_type_electricity.yml +37 -17
- data/spec/vcr_cassettes/orders/housework_type_gardening.yml +37 -17
- data/spec/vcr_cassettes/orders/housework_type_glassmetalwork.yml +37 -17
- data/spec/vcr_cassettes/orders/housework_type_grounddrainagework.yml +37 -17
- data/spec/vcr_cassettes/orders/housework_type_hvac.yml +37 -17
- data/spec/vcr_cassettes/orders/housework_type_itservices.yml +66 -0
- data/spec/vcr_cassettes/orders/housework_type_majorappliancerepair.yml +66 -0
- data/spec/vcr_cassettes/orders/housework_type_masonry.yml +37 -17
- data/spec/vcr_cassettes/orders/housework_type_movingservices.yml +66 -0
- data/spec/vcr_cassettes/orders/housework_type_othercare.yml +37 -17
- data/spec/vcr_cassettes/orders/housework_type_othercosts.yml +37 -17
- data/spec/vcr_cassettes/orders/housework_type_paintingwallpapering.yml +37 -17
- data/spec/vcr_cassettes/orders/housework_type_snowplowing.yml +37 -17
- data/spec/vcr_cassettes/orders/housework_type_textileclothing.yml +37 -17
- data/spec/vcr_cassettes/orders/housework_type_tutoring.yml +34 -14
- data/spec/vcr_cassettes/orders/multi_param_find_by_hash.yml +34 -15
- data/spec/vcr_cassettes/orders/save_new.yml +36 -16
- data/spec/vcr_cassettes/orders/save_old.yml +38 -19
- data/spec/vcr_cassettes/orders/save_with_nested_model.yml +36 -16
- data/spec/vcr_cassettes/orders/search_by_name.yml +34 -15
- data/spec/vcr_cassettes/orders/search_miss.yml +34 -15
- data/spec/vcr_cassettes/orders/search_with_special_char.yml +34 -15
- data/spec/vcr_cassettes/orders/single_param_find_by_hash.yml +34 -15
- data/spec/vcr_cassettes/projects/all.yml +58 -33
- data/spec/vcr_cassettes/projects/find_by_hash_failure.yml +34 -15
- data/spec/vcr_cassettes/projects/find_failure.yml +34 -15
- data/spec/vcr_cassettes/projects/find_id_1.yml +34 -15
- data/spec/vcr_cassettes/projects/find_new.yml +37 -18
- data/spec/vcr_cassettes/projects/multi_param_find_by_hash.yml +36 -17
- data/spec/vcr_cassettes/projects/save_new.yml +35 -15
- data/spec/vcr_cassettes/projects/save_old.yml +37 -18
- data/spec/vcr_cassettes/projects/single_param_find_by_hash.yml +36 -17
- data/spec/vcr_cassettes/termsofpayments/all.yml +46 -25
- data/spec/vcr_cassettes/termsofpayments/find_failure.yml +34 -15
- data/spec/vcr_cassettes/termsofpayments/find_id_1.yml +35 -16
- data/spec/vcr_cassettes/termsofpayments/find_new.yml +36 -17
- data/spec/vcr_cassettes/termsofpayments/save_new.yml +35 -15
- data/spec/vcr_cassettes/termsofpayments/save_old.yml +36 -17
- data/spec/vcr_cassettes/units/all.yml +45 -22
- data/spec/vcr_cassettes/units/find_failure.yml +34 -15
- data/spec/vcr_cassettes/units/find_id_1.yml +35 -16
- data/spec/vcr_cassettes/units/find_new.yml +36 -17
- data/spec/vcr_cassettes/units/save_new.yml +35 -15
- data/spec/vcr_cassettes/units/save_old.yml +36 -17
- data/spec/vcr_cassettes/units/save_with_specially_named_attribute.yml +35 -15
- metadata +115 -43
- data/spec/support/helpers/dummy_class_helper.rb +0 -38
- data/spec/vcr_cassettes/invoices/save_new_with_country_KR.yml +0 -57
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: https://api.fortnox.se/3/orders/
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"Order":{"CustomerNumber":"1","OrderRows":[{"ArticleNumber":"0000","HouseWorkType":"MASONRY","OrderedQuantity":1.0}]}}'
|
8
|
+
string: '{"Order":{"CustomerNumber":"1","TaxReductionType":"rot","OrderRows":[{"ArticleNumber":"0000","HouseWork":true,"HouseWorkType":"MASONRY","OrderedQuantity":1.0}]}}'
|
9
9
|
headers:
|
10
10
|
Content-Type:
|
11
11
|
- application/json
|
@@ -15,32 +15,52 @@ http_interactions:
|
|
15
15
|
- 9aBA8ZgsvR
|
16
16
|
Access-Token:
|
17
17
|
- ccaef817-d5d8-4b1c-a316-54f3e55c5c54
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
|
+
User-Agent:
|
21
|
+
- Ruby
|
18
22
|
response:
|
19
23
|
status:
|
20
24
|
code: 201
|
21
25
|
message: Created
|
22
26
|
headers:
|
23
|
-
Server:
|
24
|
-
- nginx
|
25
|
-
Date:
|
26
|
-
- Wed, 29 May 2019 07:52:41 GMT
|
27
27
|
Content-Type:
|
28
28
|
- application/json
|
29
|
-
|
30
|
-
-
|
29
|
+
Date:
|
30
|
+
- Mon, 22 Jan 2024 15:16:44 GMT
|
31
31
|
Location:
|
32
32
|
- orders
|
33
|
+
X-Build:
|
34
|
+
- 9dd4e26746
|
35
|
+
X-Frame-Options:
|
36
|
+
- sameorigin
|
33
37
|
X-Rack-Responsetime:
|
34
|
-
- '
|
38
|
+
- '247'
|
35
39
|
X-Uid:
|
36
|
-
-
|
37
|
-
|
38
|
-
-
|
40
|
+
- 1e5ed1a9
|
41
|
+
Transfer-Encoding:
|
42
|
+
- chunked
|
43
|
+
Server:
|
44
|
+
- Fortnox
|
45
|
+
X-Content-Type-Options:
|
46
|
+
- nosniff
|
47
|
+
X-Xss-Protection:
|
48
|
+
- '0'
|
49
|
+
Referrer-Policy:
|
50
|
+
- strict-origin-when-cross-origin
|
51
|
+
Content-Security-Policy:
|
52
|
+
- 'upgrade-insecure-requests;frame-ancestors https://*.fortnox.se;report-uri
|
53
|
+
/api/cspreport;connect-src ''self'' https://a.storyblok.com wss://*.fortnox.se
|
54
|
+
*.fortnox.se *.findity.com mybusiness.pwc.se themes.googleusercontent.com
|
55
|
+
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:'
|
58
|
+
Strict-Transport-Security:
|
59
|
+
- max-age=31536000; includeSubdomains
|
39
60
|
body:
|
40
61
|
encoding: UTF-8
|
41
|
-
string: '{"Order":{"@url":"https:\/\/api.fortnox.se\/3\/orders\/
|
42
|
-
name","CustomerNumber":"1","DeliveryState":"delivery","DeliveryAddress1":"","DeliveryAddress2":"","DeliveryCity":"","DeliveryCountry":"","DeliveryDate":null,"DeliveryName":"","DeliveryZipCode":"","DocumentNumber":"
|
43
|
-
{no} bifogas","EmailBody":" "},"ExternalInvoiceReference1":"","ExternalInvoiceReference2":"","Freight":0,"FreightVAT":0,"Gross":0,"HouseWork":false,"InvoiceReference":0,"Labels":[],"Language":"SV","Net":0,"NotCompleted":false,"OfferReference":0,"OrderDate":"
|
44
|
-
|
45
|
-
|
46
|
-
recorded_with: VCR 4.0.0
|
62
|
+
string: '{"Order":{"@url":"https:\/\/api.fortnox.se\/3\/orders\/468","@urlTaxReductionList":"https:\/\/api.fortnox.se\/3\/taxreductions?filter=orders&referencenumber=468","AdministrationFee":0,"AdministrationFeeVAT":0,"Address1":"","Address2":"","BasisTaxReduction":0,"Cancelled":false,"City":"","Comments":"","ContributionPercent":0,"ContributionValue":0,"CopyRemarks":false,"Country":"","CostCenter":"","Currency":"SEK","CurrencyRate":1,"CurrencyUnit":1,"CustomerName":"Old
|
63
|
+
name","CustomerNumber":"1","DeliveryState":"delivery","DeliveryAddress1":"","DeliveryAddress2":"","DeliveryCity":"","DeliveryCountry":"","DeliveryDate":null,"DeliveryName":"","DeliveryZipCode":"","DocumentNumber":"468","EmailInformation":{"EmailAddressFrom":null,"EmailAddressTo":"","EmailAddressCC":null,"EmailAddressBCC":null,"EmailSubject":"Order
|
64
|
+
{no} bifogas","EmailBody":" "},"ExternalInvoiceReference1":"","ExternalInvoiceReference2":"","Freight":0,"FreightVAT":0,"Gross":0,"HouseWork":false,"InvoiceReference":"0","Labels":[],"Language":"SV","Net":0,"NotCompleted":false,"OfferReference":"0","OrderDate":"2024-01-22","OrderRows":[{"AccountNumber":1250,"ArticleNumber":"0000","ContributionPercent":"0","ContributionValue":"0","Cost":0,"CostCenter":"","DeliveredQuantity":"0","Description":"Testartikel","Discount":0,"DiscountType":"PERCENT","HouseWork":true,"HouseWorkHoursToReport":null,"HouseWorkType":"MASONRY","OrderedQuantity":"1","Price":0,"Project":"","ReservedQuantity":"0","RowId":637,"StockPointCode":null,"StockPointId":null,"Total":0,"Unit":"","VAT":0}],"OrderType":"Order","OrganisationNumber":"860101-8735","OurReference":"","Phone1":"","Phone2":"","PriceList":"A","PrintTemplate":"oc","Project":"","WarehouseReady":true,"OutboundDate":"2024-01-22","Remarks":"","RoundOff":0,"Sent":false,"TaxReduction":null,"TermsOfDelivery":"","TermsOfPayment":"0","TimeBasisReference":null,"Total":0,"TotalToPay":0,"TotalVAT":0,"VATIncluded":false,"WayOfDelivery":"","YourReference":"","YourOrderNumber":"","ZipCode":"","StockPointCode":null,"StockPointId":null,"TaxReductionType":"rot"}}'
|
65
|
+
recorded_at: Mon, 22 Jan 2024 15:16:44 GMT
|
66
|
+
recorded_with: VCR 6.2.0
|
@@ -0,0 +1,66 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.fortnox.se/3/orders/
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"Order":{"CustomerNumber":"1","TaxReductionType":"rut","OrderRows":[{"ArticleNumber":"0000","HouseWork":true,"HouseWorkType":"MOVINGSERVICES","OrderedQuantity":1.0}]}}'
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/json
|
12
|
+
Accept:
|
13
|
+
- application/json
|
14
|
+
Client-Secret:
|
15
|
+
- 9aBA8ZgsvR
|
16
|
+
Access-Token:
|
17
|
+
- ccaef817-d5d8-4b1c-a316-54f3e55c5c54
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
|
+
User-Agent:
|
21
|
+
- Ruby
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 201
|
25
|
+
message: Created
|
26
|
+
headers:
|
27
|
+
Content-Type:
|
28
|
+
- application/json
|
29
|
+
Date:
|
30
|
+
- Mon, 22 Jan 2024 15:16:38 GMT
|
31
|
+
Location:
|
32
|
+
- orders
|
33
|
+
X-Build:
|
34
|
+
- 9dd4e26746
|
35
|
+
X-Frame-Options:
|
36
|
+
- sameorigin
|
37
|
+
X-Rack-Responsetime:
|
38
|
+
- '244'
|
39
|
+
X-Uid:
|
40
|
+
- eedcd9d8
|
41
|
+
Transfer-Encoding:
|
42
|
+
- chunked
|
43
|
+
Server:
|
44
|
+
- Fortnox
|
45
|
+
X-Content-Type-Options:
|
46
|
+
- nosniff
|
47
|
+
X-Xss-Protection:
|
48
|
+
- '0'
|
49
|
+
Referrer-Policy:
|
50
|
+
- strict-origin-when-cross-origin
|
51
|
+
Content-Security-Policy:
|
52
|
+
- 'upgrade-insecure-requests;frame-ancestors https://*.fortnox.se;report-uri
|
53
|
+
/api/cspreport;connect-src ''self'' https://a.storyblok.com wss://*.fortnox.se
|
54
|
+
*.fortnox.se *.findity.com mybusiness.pwc.se themes.googleusercontent.com
|
55
|
+
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:'
|
58
|
+
Strict-Transport-Security:
|
59
|
+
- max-age=31536000; includeSubdomains
|
60
|
+
body:
|
61
|
+
encoding: UTF-8
|
62
|
+
string: '{"Order":{"@url":"https:\/\/api.fortnox.se\/3\/orders\/455","@urlTaxReductionList":"https:\/\/api.fortnox.se\/3\/taxreductions?filter=orders&referencenumber=455","AdministrationFee":0,"AdministrationFeeVAT":0,"Address1":"","Address2":"","BasisTaxReduction":0,"Cancelled":false,"City":"","Comments":"","ContributionPercent":0,"ContributionValue":0,"CopyRemarks":false,"Country":"","CostCenter":"","Currency":"SEK","CurrencyRate":1,"CurrencyUnit":1,"CustomerName":"Old
|
63
|
+
name","CustomerNumber":"1","DeliveryState":"delivery","DeliveryAddress1":"","DeliveryAddress2":"","DeliveryCity":"","DeliveryCountry":"","DeliveryDate":null,"DeliveryName":"","DeliveryZipCode":"","DocumentNumber":"455","EmailInformation":{"EmailAddressFrom":null,"EmailAddressTo":"","EmailAddressCC":null,"EmailAddressBCC":null,"EmailSubject":"Order
|
64
|
+
{no} bifogas","EmailBody":" "},"ExternalInvoiceReference1":"","ExternalInvoiceReference2":"","Freight":0,"FreightVAT":0,"Gross":0,"HouseWork":false,"InvoiceReference":"0","Labels":[],"Language":"SV","Net":0,"NotCompleted":false,"OfferReference":"0","OrderDate":"2024-01-22","OrderRows":[{"AccountNumber":1250,"ArticleNumber":"0000","ContributionPercent":"0","ContributionValue":"0","Cost":0,"CostCenter":"","DeliveredQuantity":"0","Description":"Testartikel","Discount":0,"DiscountType":"PERCENT","HouseWork":true,"HouseWorkHoursToReport":null,"HouseWorkType":"MOVINGSERVICES","OrderedQuantity":"1","Price":0,"Project":"","ReservedQuantity":"0","RowId":624,"StockPointCode":null,"StockPointId":null,"Total":0,"Unit":"","VAT":0}],"OrderType":"Order","OrganisationNumber":"860101-8735","OurReference":"","Phone1":"","Phone2":"","PriceList":"A","PrintTemplate":"oc","Project":"","WarehouseReady":true,"OutboundDate":"2024-01-22","Remarks":"","RoundOff":0,"Sent":false,"TaxReduction":null,"TermsOfDelivery":"","TermsOfPayment":"0","TimeBasisReference":null,"Total":0,"TotalToPay":0,"TotalVAT":0,"VATIncluded":false,"WayOfDelivery":"","YourReference":"","YourOrderNumber":"","ZipCode":"","StockPointCode":null,"StockPointId":null,"TaxReductionType":"rut"}}'
|
65
|
+
recorded_at: Mon, 22 Jan 2024 15:16:38 GMT
|
66
|
+
recorded_with: VCR 6.2.0
|
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: https://api.fortnox.se/3/orders/
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"Order":{"CustomerNumber":"1","OrderRows":[{"ArticleNumber":"0000","HouseWorkType":"OTHERCARE","OrderedQuantity":1.0}]}}'
|
8
|
+
string: '{"Order":{"CustomerNumber":"1","TaxReductionType":"rut","OrderRows":[{"ArticleNumber":"0000","HouseWork":true,"HouseWorkType":"OTHERCARE","OrderedQuantity":1.0}]}}'
|
9
9
|
headers:
|
10
10
|
Content-Type:
|
11
11
|
- application/json
|
@@ -15,32 +15,52 @@ http_interactions:
|
|
15
15
|
- 9aBA8ZgsvR
|
16
16
|
Access-Token:
|
17
17
|
- ccaef817-d5d8-4b1c-a316-54f3e55c5c54
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
|
+
User-Agent:
|
21
|
+
- Ruby
|
18
22
|
response:
|
19
23
|
status:
|
20
24
|
code: 201
|
21
25
|
message: Created
|
22
26
|
headers:
|
23
|
-
Server:
|
24
|
-
- nginx
|
25
|
-
Date:
|
26
|
-
- Wed, 29 May 2019 07:52:43 GMT
|
27
27
|
Content-Type:
|
28
28
|
- application/json
|
29
|
-
|
30
|
-
-
|
29
|
+
Date:
|
30
|
+
- Mon, 22 Jan 2024 15:16:43 GMT
|
31
31
|
Location:
|
32
32
|
- orders
|
33
|
+
X-Build:
|
34
|
+
- 9dd4e26746
|
35
|
+
X-Frame-Options:
|
36
|
+
- sameorigin
|
33
37
|
X-Rack-Responsetime:
|
34
|
-
- '
|
38
|
+
- '288'
|
35
39
|
X-Uid:
|
36
|
-
-
|
37
|
-
|
38
|
-
-
|
40
|
+
- 749d5643
|
41
|
+
Transfer-Encoding:
|
42
|
+
- chunked
|
43
|
+
Server:
|
44
|
+
- Fortnox
|
45
|
+
X-Content-Type-Options:
|
46
|
+
- nosniff
|
47
|
+
X-Xss-Protection:
|
48
|
+
- '0'
|
49
|
+
Referrer-Policy:
|
50
|
+
- strict-origin-when-cross-origin
|
51
|
+
Content-Security-Policy:
|
52
|
+
- 'upgrade-insecure-requests;frame-ancestors https://*.fortnox.se;report-uri
|
53
|
+
/api/cspreport;connect-src ''self'' https://a.storyblok.com wss://*.fortnox.se
|
54
|
+
*.fortnox.se *.findity.com mybusiness.pwc.se themes.googleusercontent.com
|
55
|
+
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:'
|
58
|
+
Strict-Transport-Security:
|
59
|
+
- max-age=31536000; includeSubdomains
|
39
60
|
body:
|
40
61
|
encoding: UTF-8
|
41
|
-
string: '{"Order":{"@url":"https:\/\/api.fortnox.se\/3\/orders\/
|
42
|
-
name","CustomerNumber":"1","DeliveryState":"delivery","DeliveryAddress1":"","DeliveryAddress2":"","DeliveryCity":"","DeliveryCountry":"","DeliveryDate":null,"DeliveryName":"","DeliveryZipCode":"","DocumentNumber":"
|
43
|
-
{no} bifogas","EmailBody":" "},"ExternalInvoiceReference1":"","ExternalInvoiceReference2":"","Freight":0,"FreightVAT":0,"Gross":0,"HouseWork":false,"InvoiceReference":0,"Labels":[],"Language":"SV","Net":0,"NotCompleted":false,"OfferReference":0,"OrderDate":"
|
44
|
-
|
45
|
-
|
46
|
-
recorded_with: VCR 4.0.0
|
62
|
+
string: '{"Order":{"@url":"https:\/\/api.fortnox.se\/3\/orders\/466","@urlTaxReductionList":"https:\/\/api.fortnox.se\/3\/taxreductions?filter=orders&referencenumber=466","AdministrationFee":0,"AdministrationFeeVAT":0,"Address1":"","Address2":"","BasisTaxReduction":0,"Cancelled":false,"City":"","Comments":"","ContributionPercent":0,"ContributionValue":0,"CopyRemarks":false,"Country":"","CostCenter":"","Currency":"SEK","CurrencyRate":1,"CurrencyUnit":1,"CustomerName":"Old
|
63
|
+
name","CustomerNumber":"1","DeliveryState":"delivery","DeliveryAddress1":"","DeliveryAddress2":"","DeliveryCity":"","DeliveryCountry":"","DeliveryDate":null,"DeliveryName":"","DeliveryZipCode":"","DocumentNumber":"466","EmailInformation":{"EmailAddressFrom":null,"EmailAddressTo":"","EmailAddressCC":null,"EmailAddressBCC":null,"EmailSubject":"Order
|
64
|
+
{no} bifogas","EmailBody":" "},"ExternalInvoiceReference1":"","ExternalInvoiceReference2":"","Freight":0,"FreightVAT":0,"Gross":0,"HouseWork":false,"InvoiceReference":"0","Labels":[],"Language":"SV","Net":0,"NotCompleted":false,"OfferReference":"0","OrderDate":"2024-01-22","OrderRows":[{"AccountNumber":1250,"ArticleNumber":"0000","ContributionPercent":"0","ContributionValue":"0","Cost":0,"CostCenter":"","DeliveredQuantity":"0","Description":"Testartikel","Discount":0,"DiscountType":"PERCENT","HouseWork":true,"HouseWorkHoursToReport":null,"HouseWorkType":"OTHERCARE","OrderedQuantity":"1","Price":0,"Project":"","ReservedQuantity":"0","RowId":635,"StockPointCode":null,"StockPointId":null,"Total":0,"Unit":"","VAT":0}],"OrderType":"Order","OrganisationNumber":"860101-8735","OurReference":"","Phone1":"","Phone2":"","PriceList":"A","PrintTemplate":"oc","Project":"","WarehouseReady":true,"OutboundDate":"2024-01-22","Remarks":"","RoundOff":0,"Sent":false,"TaxReduction":null,"TermsOfDelivery":"","TermsOfPayment":"0","TimeBasisReference":null,"Total":0,"TotalToPay":0,"TotalVAT":0,"VATIncluded":false,"WayOfDelivery":"","YourReference":"","YourOrderNumber":"","ZipCode":"","StockPointCode":null,"StockPointId":null,"TaxReductionType":"rut"}}'
|
65
|
+
recorded_at: Mon, 22 Jan 2024 15:16:43 GMT
|
66
|
+
recorded_with: VCR 6.2.0
|
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: https://api.fortnox.se/3/orders/
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"Order":{"CustomerNumber":"1","OrderRows":[{"ArticleNumber":"0000","HouseWorkType":"OTHERCOSTS","OrderedQuantity":1.0}]}}'
|
8
|
+
string: '{"Order":{"CustomerNumber":"1","TaxReductionType":"rot","OrderRows":[{"ArticleNumber":"0000","HouseWork":false,"HouseWorkType":"OTHERCOSTS","OrderedQuantity":1.0}]}}'
|
9
9
|
headers:
|
10
10
|
Content-Type:
|
11
11
|
- application/json
|
@@ -15,32 +15,52 @@ http_interactions:
|
|
15
15
|
- 9aBA8ZgsvR
|
16
16
|
Access-Token:
|
17
17
|
- ccaef817-d5d8-4b1c-a316-54f3e55c5c54
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
|
+
User-Agent:
|
21
|
+
- Ruby
|
18
22
|
response:
|
19
23
|
status:
|
20
24
|
code: 201
|
21
25
|
message: Created
|
22
26
|
headers:
|
23
|
-
Server:
|
24
|
-
- nginx
|
25
|
-
Date:
|
26
|
-
- Wed, 29 May 2019 07:52:41 GMT
|
27
27
|
Content-Type:
|
28
28
|
- application/json
|
29
|
-
|
30
|
-
-
|
29
|
+
Date:
|
30
|
+
- Mon, 22 Jan 2024 15:16:40 GMT
|
31
31
|
Location:
|
32
32
|
- orders
|
33
|
+
X-Build:
|
34
|
+
- 9dd4e26746
|
35
|
+
X-Frame-Options:
|
36
|
+
- sameorigin
|
33
37
|
X-Rack-Responsetime:
|
34
|
-
- '
|
38
|
+
- '260'
|
35
39
|
X-Uid:
|
36
|
-
-
|
37
|
-
|
38
|
-
-
|
40
|
+
- 93a105f9
|
41
|
+
Transfer-Encoding:
|
42
|
+
- chunked
|
43
|
+
Server:
|
44
|
+
- Fortnox
|
45
|
+
X-Content-Type-Options:
|
46
|
+
- nosniff
|
47
|
+
X-Xss-Protection:
|
48
|
+
- '0'
|
49
|
+
Referrer-Policy:
|
50
|
+
- strict-origin-when-cross-origin
|
51
|
+
Content-Security-Policy:
|
52
|
+
- 'upgrade-insecure-requests;frame-ancestors https://*.fortnox.se;report-uri
|
53
|
+
/api/cspreport;connect-src ''self'' https://a.storyblok.com wss://*.fortnox.se
|
54
|
+
*.fortnox.se *.findity.com mybusiness.pwc.se themes.googleusercontent.com
|
55
|
+
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:'
|
58
|
+
Strict-Transport-Security:
|
59
|
+
- max-age=31536000; includeSubdomains
|
39
60
|
body:
|
40
61
|
encoding: UTF-8
|
41
|
-
string: '{"Order":{"@url":"https:\/\/api.fortnox.se\/3\/orders\/
|
42
|
-
name","CustomerNumber":"1","DeliveryState":"delivery","DeliveryAddress1":"","DeliveryAddress2":"","DeliveryCity":"","DeliveryCountry":"","DeliveryDate":null,"DeliveryName":"","DeliveryZipCode":"","DocumentNumber":"
|
43
|
-
{no} bifogas","EmailBody":" "},"ExternalInvoiceReference1":"","ExternalInvoiceReference2":"","Freight":0,"FreightVAT":0,"Gross":0,"HouseWork":false,"InvoiceReference":0,"Labels":[],"Language":"SV","Net":0,"NotCompleted":false,"OfferReference":0,"OrderDate":"
|
44
|
-
|
45
|
-
|
46
|
-
recorded_with: VCR 4.0.0
|
62
|
+
string: '{"Order":{"@url":"https:\/\/api.fortnox.se\/3\/orders\/460","@urlTaxReductionList":"https:\/\/api.fortnox.se\/3\/taxreductions?filter=orders&referencenumber=460","AdministrationFee":0,"AdministrationFeeVAT":0,"Address1":"","Address2":"","BasisTaxReduction":0,"Cancelled":false,"City":"","Comments":"","ContributionPercent":0,"ContributionValue":0,"CopyRemarks":false,"Country":"","CostCenter":"","Currency":"SEK","CurrencyRate":1,"CurrencyUnit":1,"CustomerName":"Old
|
63
|
+
name","CustomerNumber":"1","DeliveryState":"delivery","DeliveryAddress1":"","DeliveryAddress2":"","DeliveryCity":"","DeliveryCountry":"","DeliveryDate":null,"DeliveryName":"","DeliveryZipCode":"","DocumentNumber":"460","EmailInformation":{"EmailAddressFrom":null,"EmailAddressTo":"","EmailAddressCC":null,"EmailAddressBCC":null,"EmailSubject":"Order
|
64
|
+
{no} bifogas","EmailBody":" "},"ExternalInvoiceReference1":"","ExternalInvoiceReference2":"","Freight":0,"FreightVAT":0,"Gross":0,"HouseWork":false,"InvoiceReference":"0","Labels":[],"Language":"SV","Net":0,"NotCompleted":false,"OfferReference":"0","OrderDate":"2024-01-22","OrderRows":[{"AccountNumber":1250,"ArticleNumber":"0000","ContributionPercent":"0","ContributionValue":"0","Cost":0,"CostCenter":"","DeliveredQuantity":"0","Description":"Testartikel","Discount":0,"DiscountType":"PERCENT","HouseWork":false,"HouseWorkHoursToReport":null,"HouseWorkType":"OTHERCOSTS","OrderedQuantity":"1","Price":0,"Project":"","ReservedQuantity":"0","RowId":629,"StockPointCode":null,"StockPointId":null,"Total":0,"Unit":"","VAT":0}],"OrderType":"Order","OrganisationNumber":"860101-8735","OurReference":"","Phone1":"","Phone2":"","PriceList":"A","PrintTemplate":"oc","Project":"","WarehouseReady":true,"OutboundDate":"2024-01-22","Remarks":"","RoundOff":0,"Sent":false,"TaxReduction":null,"TermsOfDelivery":"","TermsOfPayment":"0","TimeBasisReference":null,"Total":0,"TotalToPay":0,"TotalVAT":0,"VATIncluded":false,"WayOfDelivery":"","YourReference":"","YourOrderNumber":"","ZipCode":"","StockPointCode":null,"StockPointId":null,"TaxReductionType":"rot"}}'
|
65
|
+
recorded_at: Mon, 22 Jan 2024 15:16:40 GMT
|
66
|
+
recorded_with: VCR 6.2.0
|
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: https://api.fortnox.se/3/orders/
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"Order":{"CustomerNumber":"1","OrderRows":[{"ArticleNumber":"0000","HouseWorkType":"PAINTINGWALLPAPERING","OrderedQuantity":1.0}]}}'
|
8
|
+
string: '{"Order":{"CustomerNumber":"1","TaxReductionType":"rot","OrderRows":[{"ArticleNumber":"0000","HouseWork":true,"HouseWorkType":"PAINTINGWALLPAPERING","OrderedQuantity":1.0}]}}'
|
9
9
|
headers:
|
10
10
|
Content-Type:
|
11
11
|
- application/json
|
@@ -15,32 +15,52 @@ http_interactions:
|
|
15
15
|
- 9aBA8ZgsvR
|
16
16
|
Access-Token:
|
17
17
|
- ccaef817-d5d8-4b1c-a316-54f3e55c5c54
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
|
+
User-Agent:
|
21
|
+
- Ruby
|
18
22
|
response:
|
19
23
|
status:
|
20
24
|
code: 201
|
21
25
|
message: Created
|
22
26
|
headers:
|
23
|
-
Server:
|
24
|
-
- nginx
|
25
|
-
Date:
|
26
|
-
- Wed, 29 May 2019 07:52:40 GMT
|
27
27
|
Content-Type:
|
28
28
|
- application/json
|
29
|
-
|
30
|
-
-
|
29
|
+
Date:
|
30
|
+
- Mon, 22 Jan 2024 15:16:37 GMT
|
31
31
|
Location:
|
32
32
|
- orders
|
33
|
+
X-Build:
|
34
|
+
- 9dd4e26746
|
35
|
+
X-Frame-Options:
|
36
|
+
- sameorigin
|
33
37
|
X-Rack-Responsetime:
|
34
|
-
- '
|
38
|
+
- '243'
|
35
39
|
X-Uid:
|
36
|
-
-
|
37
|
-
|
38
|
-
-
|
40
|
+
- 59fc41b1
|
41
|
+
Transfer-Encoding:
|
42
|
+
- chunked
|
43
|
+
Server:
|
44
|
+
- Fortnox
|
45
|
+
X-Content-Type-Options:
|
46
|
+
- nosniff
|
47
|
+
X-Xss-Protection:
|
48
|
+
- '0'
|
49
|
+
Referrer-Policy:
|
50
|
+
- strict-origin-when-cross-origin
|
51
|
+
Content-Security-Policy:
|
52
|
+
- 'upgrade-insecure-requests;frame-ancestors https://*.fortnox.se;report-uri
|
53
|
+
/api/cspreport;connect-src ''self'' https://a.storyblok.com wss://*.fortnox.se
|
54
|
+
*.fortnox.se *.findity.com mybusiness.pwc.se themes.googleusercontent.com
|
55
|
+
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:'
|
58
|
+
Strict-Transport-Security:
|
59
|
+
- max-age=31536000; includeSubdomains
|
39
60
|
body:
|
40
61
|
encoding: UTF-8
|
41
|
-
string: '{"Order":{"@url":"https:\/\/api.fortnox.se\/3\/orders\/
|
42
|
-
name","CustomerNumber":"1","DeliveryState":"delivery","DeliveryAddress1":"","DeliveryAddress2":"","DeliveryCity":"","DeliveryCountry":"","DeliveryDate":null,"DeliveryName":"","DeliveryZipCode":"","DocumentNumber":"
|
43
|
-
{no} bifogas","EmailBody":" "},"ExternalInvoiceReference1":"","ExternalInvoiceReference2":"","Freight":0,"FreightVAT":0,"Gross":0,"HouseWork":false,"InvoiceReference":0,"Labels":[],"Language":"SV","Net":0,"NotCompleted":false,"OfferReference":0,"OrderDate":"
|
44
|
-
|
45
|
-
|
46
|
-
recorded_with: VCR 4.0.0
|
62
|
+
string: '{"Order":{"@url":"https:\/\/api.fortnox.se\/3\/orders\/452","@urlTaxReductionList":"https:\/\/api.fortnox.se\/3\/taxreductions?filter=orders&referencenumber=452","AdministrationFee":0,"AdministrationFeeVAT":0,"Address1":"","Address2":"","BasisTaxReduction":0,"Cancelled":false,"City":"","Comments":"","ContributionPercent":0,"ContributionValue":0,"CopyRemarks":false,"Country":"","CostCenter":"","Currency":"SEK","CurrencyRate":1,"CurrencyUnit":1,"CustomerName":"Old
|
63
|
+
name","CustomerNumber":"1","DeliveryState":"delivery","DeliveryAddress1":"","DeliveryAddress2":"","DeliveryCity":"","DeliveryCountry":"","DeliveryDate":null,"DeliveryName":"","DeliveryZipCode":"","DocumentNumber":"452","EmailInformation":{"EmailAddressFrom":null,"EmailAddressTo":"","EmailAddressCC":null,"EmailAddressBCC":null,"EmailSubject":"Order
|
64
|
+
{no} bifogas","EmailBody":" "},"ExternalInvoiceReference1":"","ExternalInvoiceReference2":"","Freight":0,"FreightVAT":0,"Gross":0,"HouseWork":false,"InvoiceReference":"0","Labels":[],"Language":"SV","Net":0,"NotCompleted":false,"OfferReference":"0","OrderDate":"2024-01-22","OrderRows":[{"AccountNumber":1250,"ArticleNumber":"0000","ContributionPercent":"0","ContributionValue":"0","Cost":0,"CostCenter":"","DeliveredQuantity":"0","Description":"Testartikel","Discount":0,"DiscountType":"PERCENT","HouseWork":true,"HouseWorkHoursToReport":null,"HouseWorkType":"PAINTINGWALLPAPERING","OrderedQuantity":"1","Price":0,"Project":"","ReservedQuantity":"0","RowId":621,"StockPointCode":null,"StockPointId":null,"Total":0,"Unit":"","VAT":0}],"OrderType":"Order","OrganisationNumber":"860101-8735","OurReference":"","Phone1":"","Phone2":"","PriceList":"A","PrintTemplate":"oc","Project":"","WarehouseReady":true,"OutboundDate":"2024-01-22","Remarks":"","RoundOff":0,"Sent":false,"TaxReduction":null,"TermsOfDelivery":"","TermsOfPayment":"0","TimeBasisReference":null,"Total":0,"TotalToPay":0,"TotalVAT":0,"VATIncluded":false,"WayOfDelivery":"","YourReference":"","YourOrderNumber":"","ZipCode":"","StockPointCode":null,"StockPointId":null,"TaxReductionType":"rot"}}'
|
65
|
+
recorded_at: Mon, 22 Jan 2024 15:16:37 GMT
|
66
|
+
recorded_with: VCR 6.2.0
|
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: https://api.fortnox.se/3/orders/
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"Order":{"CustomerNumber":"1","OrderRows":[{"ArticleNumber":"0000","HouseWorkType":"SNOWPLOWING","OrderedQuantity":1.0}]}}'
|
8
|
+
string: '{"Order":{"CustomerNumber":"1","TaxReductionType":"rut","OrderRows":[{"ArticleNumber":"0000","HouseWork":true,"HouseWorkType":"SNOWPLOWING","OrderedQuantity":1.0}]}}'
|
9
9
|
headers:
|
10
10
|
Content-Type:
|
11
11
|
- application/json
|
@@ -15,32 +15,52 @@ http_interactions:
|
|
15
15
|
- 9aBA8ZgsvR
|
16
16
|
Access-Token:
|
17
17
|
- ccaef817-d5d8-4b1c-a316-54f3e55c5c54
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
|
+
User-Agent:
|
21
|
+
- Ruby
|
18
22
|
response:
|
19
23
|
status:
|
20
24
|
code: 201
|
21
25
|
message: Created
|
22
26
|
headers:
|
23
|
-
Server:
|
24
|
-
- nginx
|
25
|
-
Date:
|
26
|
-
- Wed, 29 May 2019 07:52:43 GMT
|
27
27
|
Content-Type:
|
28
28
|
- application/json
|
29
|
-
|
30
|
-
-
|
29
|
+
Date:
|
30
|
+
- Mon, 22 Jan 2024 15:16:42 GMT
|
31
31
|
Location:
|
32
32
|
- orders
|
33
|
+
X-Build:
|
34
|
+
- 9dd4e26746
|
35
|
+
X-Frame-Options:
|
36
|
+
- sameorigin
|
33
37
|
X-Rack-Responsetime:
|
34
|
-
- '
|
38
|
+
- '279'
|
35
39
|
X-Uid:
|
36
|
-
-
|
37
|
-
|
38
|
-
-
|
40
|
+
- 11eb3f44
|
41
|
+
Transfer-Encoding:
|
42
|
+
- chunked
|
43
|
+
Server:
|
44
|
+
- Fortnox
|
45
|
+
X-Content-Type-Options:
|
46
|
+
- nosniff
|
47
|
+
X-Xss-Protection:
|
48
|
+
- '0'
|
49
|
+
Referrer-Policy:
|
50
|
+
- strict-origin-when-cross-origin
|
51
|
+
Content-Security-Policy:
|
52
|
+
- 'upgrade-insecure-requests;frame-ancestors https://*.fortnox.se;report-uri
|
53
|
+
/api/cspreport;connect-src ''self'' https://a.storyblok.com wss://*.fortnox.se
|
54
|
+
*.fortnox.se *.findity.com mybusiness.pwc.se themes.googleusercontent.com
|
55
|
+
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:'
|
58
|
+
Strict-Transport-Security:
|
59
|
+
- max-age=31536000; includeSubdomains
|
39
60
|
body:
|
40
61
|
encoding: UTF-8
|
41
|
-
string: '{"Order":{"@url":"https:\/\/api.fortnox.se\/3\/orders\/
|
42
|
-
name","CustomerNumber":"1","DeliveryState":"delivery","DeliveryAddress1":"","DeliveryAddress2":"","DeliveryCity":"","DeliveryCountry":"","DeliveryDate":null,"DeliveryName":"","DeliveryZipCode":"","DocumentNumber":"
|
43
|
-
{no} bifogas","EmailBody":" "},"ExternalInvoiceReference1":"","ExternalInvoiceReference2":"","Freight":0,"FreightVAT":0,"Gross":0,"HouseWork":false,"InvoiceReference":0,"Labels":[],"Language":"SV","Net":0,"NotCompleted":false,"OfferReference":0,"OrderDate":"
|
44
|
-
|
45
|
-
|
46
|
-
recorded_with: VCR 4.0.0
|
62
|
+
string: '{"Order":{"@url":"https:\/\/api.fortnox.se\/3\/orders\/465","@urlTaxReductionList":"https:\/\/api.fortnox.se\/3\/taxreductions?filter=orders&referencenumber=465","AdministrationFee":0,"AdministrationFeeVAT":0,"Address1":"","Address2":"","BasisTaxReduction":0,"Cancelled":false,"City":"","Comments":"","ContributionPercent":0,"ContributionValue":0,"CopyRemarks":false,"Country":"","CostCenter":"","Currency":"SEK","CurrencyRate":1,"CurrencyUnit":1,"CustomerName":"Old
|
63
|
+
name","CustomerNumber":"1","DeliveryState":"delivery","DeliveryAddress1":"","DeliveryAddress2":"","DeliveryCity":"","DeliveryCountry":"","DeliveryDate":null,"DeliveryName":"","DeliveryZipCode":"","DocumentNumber":"465","EmailInformation":{"EmailAddressFrom":null,"EmailAddressTo":"","EmailAddressCC":null,"EmailAddressBCC":null,"EmailSubject":"Order
|
64
|
+
{no} bifogas","EmailBody":" "},"ExternalInvoiceReference1":"","ExternalInvoiceReference2":"","Freight":0,"FreightVAT":0,"Gross":0,"HouseWork":false,"InvoiceReference":"0","Labels":[],"Language":"SV","Net":0,"NotCompleted":false,"OfferReference":"0","OrderDate":"2024-01-22","OrderRows":[{"AccountNumber":1250,"ArticleNumber":"0000","ContributionPercent":"0","ContributionValue":"0","Cost":0,"CostCenter":"","DeliveredQuantity":"0","Description":"Testartikel","Discount":0,"DiscountType":"PERCENT","HouseWork":true,"HouseWorkHoursToReport":null,"HouseWorkType":"SNOWPLOWING","OrderedQuantity":"1","Price":0,"Project":"","ReservedQuantity":"0","RowId":634,"StockPointCode":null,"StockPointId":null,"Total":0,"Unit":"","VAT":0}],"OrderType":"Order","OrganisationNumber":"860101-8735","OurReference":"","Phone1":"","Phone2":"","PriceList":"A","PrintTemplate":"oc","Project":"","WarehouseReady":true,"OutboundDate":"2024-01-22","Remarks":"","RoundOff":0,"Sent":false,"TaxReduction":null,"TermsOfDelivery":"","TermsOfPayment":"0","TimeBasisReference":null,"Total":0,"TotalToPay":0,"TotalVAT":0,"VATIncluded":false,"WayOfDelivery":"","YourReference":"","YourOrderNumber":"","ZipCode":"","StockPointCode":null,"StockPointId":null,"TaxReductionType":"rut"}}'
|
65
|
+
recorded_at: Mon, 22 Jan 2024 15:16:42 GMT
|
66
|
+
recorded_with: VCR 6.2.0
|
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: https://api.fortnox.se/3/orders/
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"Order":{"CustomerNumber":"1","OrderRows":[{"ArticleNumber":"0000","HouseWorkType":"TEXTILECLOTHING","OrderedQuantity":1.0}]}}'
|
8
|
+
string: '{"Order":{"CustomerNumber":"1","TaxReductionType":"rut","OrderRows":[{"ArticleNumber":"0000","HouseWork":true,"HouseWorkType":"TEXTILECLOTHING","OrderedQuantity":1.0}]}}'
|
9
9
|
headers:
|
10
10
|
Content-Type:
|
11
11
|
- application/json
|
@@ -15,32 +15,52 @@ http_interactions:
|
|
15
15
|
- 9aBA8ZgsvR
|
16
16
|
Access-Token:
|
17
17
|
- ccaef817-d5d8-4b1c-a316-54f3e55c5c54
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
|
+
User-Agent:
|
21
|
+
- Ruby
|
18
22
|
response:
|
19
23
|
status:
|
20
24
|
code: 201
|
21
25
|
message: Created
|
22
26
|
headers:
|
23
|
-
Server:
|
24
|
-
- nginx
|
25
|
-
Date:
|
26
|
-
- Wed, 29 May 2019 07:52:40 GMT
|
27
27
|
Content-Type:
|
28
28
|
- application/json
|
29
|
-
|
30
|
-
-
|
29
|
+
Date:
|
30
|
+
- Mon, 22 Jan 2024 15:16:44 GMT
|
31
31
|
Location:
|
32
32
|
- orders
|
33
|
+
X-Build:
|
34
|
+
- 9dd4e26746
|
35
|
+
X-Frame-Options:
|
36
|
+
- sameorigin
|
33
37
|
X-Rack-Responsetime:
|
34
|
-
- '
|
38
|
+
- '283'
|
35
39
|
X-Uid:
|
36
|
-
-
|
37
|
-
|
38
|
-
-
|
40
|
+
- 7ffdef0b
|
41
|
+
Transfer-Encoding:
|
42
|
+
- chunked
|
43
|
+
Server:
|
44
|
+
- Fortnox
|
45
|
+
X-Content-Type-Options:
|
46
|
+
- nosniff
|
47
|
+
X-Xss-Protection:
|
48
|
+
- '0'
|
49
|
+
Referrer-Policy:
|
50
|
+
- strict-origin-when-cross-origin
|
51
|
+
Content-Security-Policy:
|
52
|
+
- 'upgrade-insecure-requests;frame-ancestors https://*.fortnox.se;report-uri
|
53
|
+
/api/cspreport;connect-src ''self'' https://a.storyblok.com wss://*.fortnox.se
|
54
|
+
*.fortnox.se *.findity.com mybusiness.pwc.se themes.googleusercontent.com
|
55
|
+
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:'
|
58
|
+
Strict-Transport-Security:
|
59
|
+
- max-age=31536000; includeSubdomains
|
39
60
|
body:
|
40
61
|
encoding: UTF-8
|
41
|
-
string: '{"Order":{"@url":"https:\/\/api.fortnox.se\/3\/orders\/
|
42
|
-
name","CustomerNumber":"1","DeliveryState":"delivery","DeliveryAddress1":"","DeliveryAddress2":"","DeliveryCity":"","DeliveryCountry":"","DeliveryDate":null,"DeliveryName":"","DeliveryZipCode":"","DocumentNumber":"
|
43
|
-
{no} bifogas","EmailBody":" "},"ExternalInvoiceReference1":"","ExternalInvoiceReference2":"","Freight":0,"FreightVAT":0,"Gross":0,"HouseWork":false,"InvoiceReference":0,"Labels":[],"Language":"SV","Net":0,"NotCompleted":false,"OfferReference":0,"OrderDate":"
|
44
|
-
|
45
|
-
|
46
|
-
recorded_with: VCR 4.0.0
|
62
|
+
string: '{"Order":{"@url":"https:\/\/api.fortnox.se\/3\/orders\/469","@urlTaxReductionList":"https:\/\/api.fortnox.se\/3\/taxreductions?filter=orders&referencenumber=469","AdministrationFee":0,"AdministrationFeeVAT":0,"Address1":"","Address2":"","BasisTaxReduction":0,"Cancelled":false,"City":"","Comments":"","ContributionPercent":0,"ContributionValue":0,"CopyRemarks":false,"Country":"","CostCenter":"","Currency":"SEK","CurrencyRate":1,"CurrencyUnit":1,"CustomerName":"Old
|
63
|
+
name","CustomerNumber":"1","DeliveryState":"delivery","DeliveryAddress1":"","DeliveryAddress2":"","DeliveryCity":"","DeliveryCountry":"","DeliveryDate":null,"DeliveryName":"","DeliveryZipCode":"","DocumentNumber":"469","EmailInformation":{"EmailAddressFrom":null,"EmailAddressTo":"","EmailAddressCC":null,"EmailAddressBCC":null,"EmailSubject":"Order
|
64
|
+
{no} bifogas","EmailBody":" "},"ExternalInvoiceReference1":"","ExternalInvoiceReference2":"","Freight":0,"FreightVAT":0,"Gross":0,"HouseWork":false,"InvoiceReference":"0","Labels":[],"Language":"SV","Net":0,"NotCompleted":false,"OfferReference":"0","OrderDate":"2024-01-22","OrderRows":[{"AccountNumber":1250,"ArticleNumber":"0000","ContributionPercent":"0","ContributionValue":"0","Cost":0,"CostCenter":"","DeliveredQuantity":"0","Description":"Testartikel","Discount":0,"DiscountType":"PERCENT","HouseWork":true,"HouseWorkHoursToReport":null,"HouseWorkType":"TEXTILECLOTHING","OrderedQuantity":"1","Price":0,"Project":"","ReservedQuantity":"0","RowId":638,"StockPointCode":null,"StockPointId":null,"Total":0,"Unit":"","VAT":0}],"OrderType":"Order","OrganisationNumber":"860101-8735","OurReference":"","Phone1":"","Phone2":"","PriceList":"A","PrintTemplate":"oc","Project":"","WarehouseReady":true,"OutboundDate":"2024-01-22","Remarks":"","RoundOff":0,"Sent":false,"TaxReduction":null,"TermsOfDelivery":"","TermsOfPayment":"0","TimeBasisReference":null,"Total":0,"TotalToPay":0,"TotalVAT":0,"VATIncluded":false,"WayOfDelivery":"","YourReference":"","YourOrderNumber":"","ZipCode":"","StockPointCode":null,"StockPointId":null,"TaxReductionType":"rut"}}'
|
65
|
+
recorded_at: Mon, 22 Jan 2024 15:16:44 GMT
|
66
|
+
recorded_with: VCR 6.2.0
|