fortnox-api 0.7.2 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -1
- data/.travis.yml +3 -10
- data/CHANGELOG.md +10 -0
- data/README.md +7 -4
- data/Rakefile +5 -0
- data/fortnox-api.gemspec +2 -2
- data/lib/fortnox/api/mappers/base/from_json.rb +2 -2
- data/lib/fortnox/api/models/document.rb +3 -0
- data/lib/fortnox/api/types.rb +6 -1
- data/lib/fortnox/api/types/enums.rb +36 -8
- data/lib/fortnox/api/version.rb +1 -1
- data/spec/fortnox/api/circular_queue_spec.rb +3 -3
- data/spec/fortnox/api/repositories/article_spec.rb +1 -1
- data/spec/fortnox/api/repositories/customer_spec.rb +1 -1
- data/spec/fortnox/api/repositories/invoice_spec.rb +13 -13
- 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 +151 -34
- data/spec/vcr_cassettes/articles/all.yml +25 -9
- data/spec/vcr_cassettes/articles/find_by_hash_failure.yml +20 -7
- data/spec/vcr_cassettes/articles/find_failure.yml +20 -7
- data/spec/vcr_cassettes/articles/find_id_1.yml +21 -8
- data/spec/vcr_cassettes/articles/find_new.yml +23 -10
- data/spec/vcr_cassettes/articles/multi_param_find_by_hash.yml +20 -7
- data/spec/vcr_cassettes/articles/save_new.yml +21 -7
- data/spec/vcr_cassettes/articles/save_old.yml +23 -10
- data/spec/vcr_cassettes/articles/save_with_specially_named_attribute.yml +21 -7
- data/spec/vcr_cassettes/articles/search_by_name.yml +20 -7
- data/spec/vcr_cassettes/articles/search_miss.yml +20 -7
- data/spec/vcr_cassettes/articles/search_with_special_char.yml +20 -7
- data/spec/vcr_cassettes/articles/single_param_find_by_hash.yml +21 -8
- data/spec/vcr_cassettes/customers/all.yml +22 -9
- data/spec/vcr_cassettes/customers/find_by_hash_failure.yml +20 -7
- data/spec/vcr_cassettes/customers/find_failure.yml +20 -7
- data/spec/vcr_cassettes/customers/find_id_1.yml +20 -7
- data/spec/vcr_cassettes/customers/find_new.yml +22 -9
- data/spec/vcr_cassettes/customers/multi_param_find_by_hash.yml +20 -7
- data/spec/vcr_cassettes/customers/save_new.yml +20 -6
- data/spec/vcr_cassettes/customers/save_new_with_country_code_SE.yml +10 -6
- data/spec/vcr_cassettes/customers/save_old.yml +22 -9
- data/spec/vcr_cassettes/customers/save_with_specially_named_attribute.yml +20 -6
- data/spec/vcr_cassettes/customers/search_by_name.yml +22 -8
- data/spec/vcr_cassettes/customers/search_miss.yml +20 -7
- data/spec/vcr_cassettes/customers/search_with_special_char.yml +19 -6
- data/spec/vcr_cassettes/customers/single_param_find_by_hash.yml +20 -7
- data/spec/vcr_cassettes/invoices/all.yml +25 -9
- data/spec/vcr_cassettes/invoices/filter_hit.yml +20 -7
- data/spec/vcr_cassettes/invoices/filter_invalid.yml +19 -5
- data/spec/vcr_cassettes/invoices/find_by_hash_failure.yml +20 -7
- data/spec/vcr_cassettes/invoices/find_failure.yml +19 -6
- data/spec/vcr_cassettes/invoices/find_id_1.yml +22 -9
- data/spec/vcr_cassettes/invoices/find_new.yml +24 -11
- data/spec/vcr_cassettes/invoices/multi_param_find_by_hash.yml +20 -7
- data/spec/vcr_cassettes/invoices/save_new.yml +22 -8
- data/spec/vcr_cassettes/invoices/save_new_with_comments.yml +22 -8
- data/spec/vcr_cassettes/invoices/save_new_with_country.yml +12 -8
- data/spec/vcr_cassettes/invoices/save_new_with_country_GB.yml +12 -8
- data/spec/vcr_cassettes/invoices/save_new_with_country_KR.yml +12 -8
- data/spec/vcr_cassettes/invoices/save_new_with_country_Norge.yml +12 -8
- data/spec/vcr_cassettes/invoices/save_new_with_country_Norway.yml +12 -8
- data/spec/vcr_cassettes/invoices/save_new_with_country_Sverige.yml +12 -8
- data/spec/vcr_cassettes/invoices/save_new_with_country_VA.yml +12 -8
- data/spec/vcr_cassettes/invoices/save_new_with_country_VI.yml +12 -8
- data/spec/vcr_cassettes/invoices/save_new_with_country_empty_string.yml +12 -8
- data/spec/vcr_cassettes/invoices/save_new_with_country_nil.yml +12 -8
- data/spec/vcr_cassettes/invoices/save_old.yml +24 -11
- data/spec/vcr_cassettes/invoices/save_old_with_empty_comments.yml +24 -11
- data/spec/vcr_cassettes/invoices/save_old_with_empty_country.yml +14 -11
- data/spec/vcr_cassettes/invoices/save_old_with_nil_comments.yml +24 -11
- data/spec/vcr_cassettes/invoices/save_old_with_nil_country.yml +14 -11
- data/spec/vcr_cassettes/invoices/save_with_nested_model.yml +22 -8
- data/spec/vcr_cassettes/invoices/save_with_specially_named_attribute.yml +22 -8
- data/spec/vcr_cassettes/invoices/search_by_name.yml +20 -7
- data/spec/vcr_cassettes/invoices/search_miss.yml +20 -7
- data/spec/vcr_cassettes/invoices/search_with_special_char.yml +20 -7
- data/spec/vcr_cassettes/invoices/single_param_find_by_hash.yml +19 -6
- data/spec/vcr_cassettes/orders/all.yml +21 -8
- data/spec/vcr_cassettes/orders/filter_hit.yml +19 -6
- data/spec/vcr_cassettes/orders/filter_invalid.yml +19 -5
- data/spec/vcr_cassettes/orders/find_by_hash_failure.yml +20 -7
- data/spec/vcr_cassettes/orders/find_failure.yml +20 -7
- data/spec/vcr_cassettes/orders/find_id_1.yml +21 -8
- data/spec/vcr_cassettes/orders/find_new.yml +24 -11
- data/spec/vcr_cassettes/orders/housework_invalid_tax_reduction_type.yml +57 -0
- data/spec/vcr_cassettes/orders/housework_othercoses_invalid.yml +57 -0
- data/spec/vcr_cassettes/orders/housework_type_babysitting.yml +23 -9
- data/spec/vcr_cassettes/orders/housework_type_cleaning.yml +23 -9
- data/spec/vcr_cassettes/orders/housework_type_construction.yml +23 -9
- data/spec/vcr_cassettes/orders/housework_type_cooking.yml +20 -6
- data/spec/vcr_cassettes/orders/housework_type_electricity.yml +23 -9
- data/spec/vcr_cassettes/orders/housework_type_gardening.yml +23 -9
- data/spec/vcr_cassettes/orders/housework_type_glassmetalwork.yml +23 -9
- data/spec/vcr_cassettes/orders/housework_type_grounddrainagework.yml +23 -9
- data/spec/vcr_cassettes/orders/housework_type_hvac.yml +23 -9
- data/spec/vcr_cassettes/orders/housework_type_itservices.yml +60 -0
- data/spec/vcr_cassettes/orders/housework_type_majorappliancerepair.yml +60 -0
- data/spec/vcr_cassettes/orders/housework_type_masonry.yml +23 -9
- data/spec/vcr_cassettes/orders/housework_type_movingservices.yml +60 -0
- data/spec/vcr_cassettes/orders/housework_type_othercare.yml +23 -9
- data/spec/vcr_cassettes/orders/housework_type_othercosts.yml +23 -9
- data/spec/vcr_cassettes/orders/housework_type_paintingwallpapering.yml +23 -9
- data/spec/vcr_cassettes/orders/housework_type_snowplowing.yml +23 -9
- data/spec/vcr_cassettes/orders/housework_type_textileclothing.yml +23 -9
- data/spec/vcr_cassettes/orders/housework_type_tutoring.yml +20 -6
- data/spec/vcr_cassettes/orders/housework_without_tax_reduction_type.yml +57 -0
- data/spec/vcr_cassettes/orders/multi_param_find_by_hash.yml +20 -7
- data/spec/vcr_cassettes/orders/save_new.yml +22 -8
- data/spec/vcr_cassettes/orders/save_old.yml +24 -11
- data/spec/vcr_cassettes/orders/save_with_nested_model.yml +22 -8
- data/spec/vcr_cassettes/orders/search_by_name.yml +20 -7
- data/spec/vcr_cassettes/orders/search_miss.yml +20 -7
- data/spec/vcr_cassettes/orders/search_with_special_char.yml +19 -6
- data/spec/vcr_cassettes/orders/single_param_find_by_hash.yml +20 -7
- data/spec/vcr_cassettes/projects/all.yml +40 -25
- data/spec/vcr_cassettes/projects/find_by_hash_failure.yml +20 -7
- data/spec/vcr_cassettes/projects/find_failure.yml +20 -7
- data/spec/vcr_cassettes/projects/find_id_1.yml +20 -7
- data/spec/vcr_cassettes/projects/find_new.yml +23 -10
- data/spec/vcr_cassettes/projects/multi_param_find_by_hash.yml +22 -9
- data/spec/vcr_cassettes/projects/save_new.yml +21 -7
- data/spec/vcr_cassettes/projects/save_old.yml +23 -10
- data/spec/vcr_cassettes/projects/single_param_find_by_hash.yml +22 -9
- data/spec/vcr_cassettes/termsofpayments/all.yml +29 -15
- data/spec/vcr_cassettes/termsofpayments/find_failure.yml +20 -7
- data/spec/vcr_cassettes/termsofpayments/find_id_1.yml +21 -8
- data/spec/vcr_cassettes/termsofpayments/find_new.yml +22 -9
- data/spec/vcr_cassettes/termsofpayments/save_new.yml +21 -7
- data/spec/vcr_cassettes/termsofpayments/save_old.yml +22 -9
- data/spec/vcr_cassettes/units/all.yml +23 -8
- data/spec/vcr_cassettes/units/find_failure.yml +19 -6
- data/spec/vcr_cassettes/units/find_id_1.yml +20 -7
- data/spec/vcr_cassettes/units/find_new.yml +22 -9
- data/spec/vcr_cassettes/units/save_new.yml +21 -7
- data/spec/vcr_cassettes/units/save_old.yml +22 -9
- data/spec/vcr_cassettes/units/save_with_specially_named_attribute.yml +21 -7
- metadata +20 -8
@@ -15,6 +15,10 @@ http_interactions:
|
|
15
15
|
- 9aBA8ZgsvR
|
16
16
|
Access-Token:
|
17
17
|
- ccaef817-d5d8-4b1c-a316-54f3e55c5c54
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
|
+
User-Agent:
|
21
|
+
- Ruby
|
18
22
|
response:
|
19
23
|
status:
|
20
24
|
code: 200
|
@@ -23,25 +27,34 @@ http_interactions:
|
|
23
27
|
Server:
|
24
28
|
- nginx
|
25
29
|
Date:
|
26
|
-
-
|
30
|
+
- Mon, 21 Dec 2020 20:34:25 GMT
|
27
31
|
Content-Type:
|
28
32
|
- application/json
|
29
33
|
Connection:
|
30
34
|
- close
|
31
35
|
Vary:
|
32
36
|
- Accept-Encoding
|
33
|
-
- Accept-Encoding
|
34
37
|
X-Rack-Responsetime:
|
35
|
-
- '
|
38
|
+
- '18'
|
36
39
|
X-Uid:
|
37
|
-
-
|
40
|
+
- afdf5f4d
|
38
41
|
X-Build:
|
39
|
-
-
|
42
|
+
- d59e2acefa
|
43
|
+
Strict-Transport-Security:
|
44
|
+
- max-age=31536000; includeSubdomains
|
45
|
+
X-Xss-Protection:
|
46
|
+
- 1; mode=block
|
47
|
+
X-Content-Type-Options:
|
48
|
+
- nosniff
|
49
|
+
X-Frame-Options:
|
50
|
+
- sameorigin
|
51
|
+
Referrer-Policy:
|
52
|
+
- strict-origin-when-cross-origin
|
40
53
|
body:
|
41
|
-
encoding:
|
54
|
+
encoding: ASCII-8BIT
|
42
55
|
string: '{"MetaInformation":{"@TotalResources":2,"@TotalPages":1,"@CurrentPage":1},"Customers":[{"@url":"https:\/\/api.fortnox.se\/3\/customers\/2","Address1":"","Address2":"","City":"New
|
43
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
|
44
57
|
York","CustomerNumber":"3","Email":"","Name":"Test customer","OrganisationNumber":"400101-8383","Phone":"","ZipCode":""}]}'
|
45
58
|
http_version:
|
46
|
-
recorded_at:
|
59
|
+
recorded_at: Mon, 21 Dec 2020 20:34:25 GMT
|
47
60
|
recorded_with: VCR 4.0.0
|
@@ -15,6 +15,10 @@ http_interactions:
|
|
15
15
|
- 9aBA8ZgsvR
|
16
16
|
Access-Token:
|
17
17
|
- ccaef817-d5d8-4b1c-a316-54f3e55c5c54
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
|
+
User-Agent:
|
21
|
+
- Ruby
|
18
22
|
response:
|
19
23
|
status:
|
20
24
|
code: 200
|
@@ -23,23 +27,32 @@ http_interactions:
|
|
23
27
|
Server:
|
24
28
|
- nginx
|
25
29
|
Date:
|
26
|
-
-
|
30
|
+
- Mon, 21 Dec 2020 20:41:46 GMT
|
27
31
|
Content-Type:
|
28
32
|
- application/json
|
29
33
|
Connection:
|
30
34
|
- close
|
31
35
|
Vary:
|
32
36
|
- Accept-Encoding
|
33
|
-
- Accept-Encoding
|
34
37
|
X-Rack-Responsetime:
|
35
|
-
- '
|
38
|
+
- '273'
|
36
39
|
X-Uid:
|
37
|
-
-
|
40
|
+
- 69a85a1e
|
38
41
|
X-Build:
|
39
|
-
-
|
42
|
+
- d59e2acefa
|
43
|
+
Strict-Transport-Security:
|
44
|
+
- max-age=31536000; includeSubdomains
|
45
|
+
X-Xss-Protection:
|
46
|
+
- 1; mode=block
|
47
|
+
X-Content-Type-Options:
|
48
|
+
- nosniff
|
49
|
+
X-Frame-Options:
|
50
|
+
- sameorigin
|
51
|
+
Referrer-Policy:
|
52
|
+
- strict-origin-when-cross-origin
|
40
53
|
body:
|
41
|
-
encoding:
|
42
|
-
string: '{"MetaInformation":{"@TotalResources":
|
54
|
+
encoding: ASCII-8BIT
|
55
|
+
string: '{"MetaInformation":{"@TotalResources":160,"@TotalPages":2,"@CurrentPage":1},"Invoices":[{"@url":"https:\/\/api.fortnox.se\/3\/invoices\/1","Balance":0,"Booked":false,"Cancelled":false,"CostCenter":"","Currency":"SEK","CurrencyRate":"1","CurrencyUnit":1,"CustomerName":"Test","CustomerNumber":"1","DocumentNumber":"1","DueDate":"2016-02-04","ExternalInvoiceReference1":"","ExternalInvoiceReference2":"","InvoiceDate":"2016-02-04","InvoiceType":"INVOICE","NoxFinans":false,"OCR":"133","VoucherNumber":null,"VoucherSeries":null,"VoucherYear":null,"WayOfDelivery":"","TermsOfPayment":"0","Project":"","Sent":true,"Total":0,"FinalPayDate":null},{"@url":"https:\/\/api.fortnox.se\/3\/invoices\/2","Balance":0,"Booked":false,"Cancelled":false,"CostCenter":"","Currency":"SEK","CurrencyRate":"1","CurrencyUnit":1,"CustomerName":"Updated
|
43
56
|
customer","CustomerNumber":"1","DocumentNumber":"2","DueDate":"2016-03-18","ExternalInvoiceReference1":"","ExternalInvoiceReference2":"","InvoiceDate":"2016-03-16","InvoiceType":"INVOICE","NoxFinans":false,"OCR":"232","VoucherNumber":null,"VoucherSeries":null,"VoucherYear":null,"WayOfDelivery":"","TermsOfPayment":"0","Project":"","Sent":false,"Total":0,"FinalPayDate":null},{"@url":"https:\/\/api.fortnox.se\/3\/invoices\/3","Balance":200,"Booked":false,"Cancelled":false,"CostCenter":"","Currency":"SEK","CurrencyRate":"1","CurrencyUnit":1,"CustomerName":"Updated
|
44
57
|
customer","CustomerNumber":"1","DocumentNumber":"3","DueDate":"2016-03-17","ExternalInvoiceReference1":"","ExternalInvoiceReference2":"","InvoiceDate":"2016-03-16","InvoiceType":"INVOICE","NoxFinans":false,"OCR":"331","VoucherNumber":null,"VoucherSeries":null,"VoucherYear":null,"WayOfDelivery":"","TermsOfPayment":"0","Project":"","Sent":false,"Total":200,"FinalPayDate":null},{"@url":"https:\/\/api.fortnox.se\/3\/invoices\/4","Balance":0,"Booked":false,"Cancelled":false,"CostCenter":"","Currency":"SEK","CurrencyRate":"1","CurrencyUnit":1,"CustomerName":"Updated
|
45
58
|
customer","CustomerNumber":"1","DocumentNumber":"4","DueDate":"2016-04-14","ExternalInvoiceReference1":"","ExternalInvoiceReference2":"","InvoiceDate":"2016-03-16","InvoiceType":"INVOICE","NoxFinans":false,"OCR":"430","VoucherNumber":null,"VoucherSeries":null,"VoucherYear":null,"WayOfDelivery":"","TermsOfPayment":"0","Project":"","Sent":false,"Total":0,"FinalPayDate":null},{"@url":"https:\/\/api.fortnox.se\/3\/invoices\/5","Balance":100,"Booked":false,"Cancelled":false,"CostCenter":"","Currency":"SEK","CurrencyRate":"1","CurrencyUnit":1,"CustomerName":"Updated
|
@@ -133,7 +146,10 @@ http_interactions:
|
|
133
146
|
name","CustomerNumber":"1","DocumentNumber":"94","DueDate":"2019-05-29","ExternalInvoiceReference1":"","ExternalInvoiceReference2":"","InvoiceDate":"2019-05-29","InvoiceType":"INVOICE","NoxFinans":false,"OCR":"426523791","VoucherNumber":null,"VoucherSeries":null,"VoucherYear":null,"WayOfDelivery":"","TermsOfPayment":"0","Project":"","Sent":false,"Total":0,"FinalPayDate":null},{"@url":"https:\/\/api.fortnox.se\/3\/invoices\/95","Balance":0,"Booked":false,"Cancelled":false,"CostCenter":"","Currency":"SEK","CurrencyRate":"1","CurrencyUnit":1,"CustomerName":"Old
|
134
147
|
name","CustomerNumber":"1","DocumentNumber":"95","DueDate":"2019-05-29","ExternalInvoiceReference1":"","ExternalInvoiceReference2":"","InvoiceDate":"2019-05-29","InvoiceType":"INVOICE","NoxFinans":false,"OCR":"9548","VoucherNumber":null,"VoucherSeries":null,"VoucherYear":null,"WayOfDelivery":"","TermsOfPayment":"0","Project":"","Sent":false,"Total":0,"FinalPayDate":null},{"@url":"https:\/\/api.fortnox.se\/3\/invoices\/96","Balance":0,"Booked":false,"Cancelled":false,"CostCenter":"","Currency":"SEK","CurrencyRate":"1","CurrencyUnit":1,"CustomerName":"Old
|
135
148
|
name","CustomerNumber":"1","DocumentNumber":"96","DueDate":"2019-05-29","ExternalInvoiceReference1":"","ExternalInvoiceReference2":"","InvoiceDate":"2019-05-29","InvoiceType":"INVOICE","NoxFinans":false,"OCR":"9647","VoucherNumber":null,"VoucherSeries":null,"VoucherYear":null,"WayOfDelivery":"","TermsOfPayment":"0","Project":"","Sent":false,"Total":0,"FinalPayDate":null},{"@url":"https:\/\/api.fortnox.se\/3\/invoices\/97","Balance":0,"Booked":false,"Cancelled":false,"CostCenter":"","Currency":"SEK","CurrencyRate":"1","CurrencyUnit":1,"CustomerName":"Old
|
136
|
-
name","CustomerNumber":"1","DocumentNumber":"97","DueDate":"2019-05-29","ExternalInvoiceReference1":"","ExternalInvoiceReference2":"","InvoiceDate":"2019-05-29","InvoiceType":"INVOICE","NoxFinans":false,"OCR":"426523791","VoucherNumber":null,"VoucherSeries":null,"VoucherYear":null,"WayOfDelivery":"","TermsOfPayment":"0","Project":"","Sent":false,"Total":0,"FinalPayDate":null}
|
149
|
+
name","CustomerNumber":"1","DocumentNumber":"97","DueDate":"2019-05-29","ExternalInvoiceReference1":"","ExternalInvoiceReference2":"","InvoiceDate":"2019-05-29","InvoiceType":"INVOICE","NoxFinans":false,"OCR":"426523791","VoucherNumber":null,"VoucherSeries":null,"VoucherYear":null,"WayOfDelivery":"","TermsOfPayment":"0","Project":"","Sent":false,"Total":0,"FinalPayDate":null},{"@url":"https:\/\/api.fortnox.se\/3\/invoices\/98","Balance":0,"Booked":false,"Cancelled":false,"CostCenter":"","Currency":"SEK","CurrencyRate":"1","CurrencyUnit":1,"CustomerName":"Old
|
150
|
+
name","CustomerNumber":"1","DocumentNumber":"98","DueDate":"2019-05-29","ExternalInvoiceReference1":"","ExternalInvoiceReference2":"","InvoiceDate":"2019-05-29","InvoiceType":"INVOICE","NoxFinans":false,"OCR":"9845","VoucherNumber":null,"VoucherSeries":null,"VoucherYear":null,"WayOfDelivery":"","TermsOfPayment":"0","Project":"","Sent":false,"Total":0,"FinalPayDate":null},{"@url":"https:\/\/api.fortnox.se\/3\/invoices\/99","Balance":0,"Booked":false,"Cancelled":false,"CostCenter":"","Currency":"SEK","CurrencyRate":"1","CurrencyUnit":1,"CustomerName":"Old
|
151
|
+
name","CustomerNumber":"1","DocumentNumber":"99","DueDate":"2019-05-29","ExternalInvoiceReference1":"","ExternalInvoiceReference2":"","InvoiceDate":"2019-05-29","InvoiceType":"INVOICE","NoxFinans":false,"OCR":"9944","VoucherNumber":null,"VoucherSeries":null,"VoucherYear":null,"WayOfDelivery":"","TermsOfPayment":"0","Project":"","Sent":false,"Total":0,"FinalPayDate":null},{"@url":"https:\/\/api.fortnox.se\/3\/invoices\/100","Balance":0,"Booked":false,"Cancelled":false,"CostCenter":"","Currency":"SEK","CurrencyRate":"1","CurrencyUnit":1,"CustomerName":"Old
|
152
|
+
name","CustomerNumber":"1","DocumentNumber":"100","DueDate":"2019-05-29","ExternalInvoiceReference1":"","ExternalInvoiceReference2":"","InvoiceDate":"2019-05-29","InvoiceType":"INVOICE","NoxFinans":false,"OCR":"10058","VoucherNumber":null,"VoucherSeries":null,"VoucherYear":null,"WayOfDelivery":"","TermsOfPayment":"0","Project":"","Sent":false,"Total":0,"FinalPayDate":null}]}'
|
137
153
|
http_version:
|
138
|
-
recorded_at:
|
154
|
+
recorded_at: Mon, 21 Dec 2020 20:41:46 GMT
|
139
155
|
recorded_with: VCR 4.0.0
|
@@ -15,6 +15,10 @@ http_interactions:
|
|
15
15
|
- 9aBA8ZgsvR
|
16
16
|
Access-Token:
|
17
17
|
- ccaef817-d5d8-4b1c-a316-54f3e55c5c54
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
|
+
User-Agent:
|
21
|
+
- Ruby
|
18
22
|
response:
|
19
23
|
status:
|
20
24
|
code: 200
|
@@ -23,27 +27,36 @@ http_interactions:
|
|
23
27
|
Server:
|
24
28
|
- nginx
|
25
29
|
Date:
|
26
|
-
-
|
30
|
+
- Mon, 21 Dec 2020 20:41:47 GMT
|
27
31
|
Content-Type:
|
28
32
|
- application/json
|
29
33
|
Connection:
|
30
34
|
- close
|
31
35
|
Vary:
|
32
36
|
- Accept-Encoding
|
33
|
-
- Accept-Encoding
|
34
37
|
X-Rack-Responsetime:
|
35
|
-
- '
|
38
|
+
- '60'
|
36
39
|
X-Uid:
|
37
|
-
-
|
40
|
+
- 51fc2fec
|
38
41
|
X-Build:
|
39
|
-
-
|
42
|
+
- d59e2acefa
|
43
|
+
Strict-Transport-Security:
|
44
|
+
- max-age=31536000; includeSubdomains
|
45
|
+
X-Xss-Protection:
|
46
|
+
- 1; mode=block
|
47
|
+
X-Content-Type-Options:
|
48
|
+
- nosniff
|
49
|
+
X-Frame-Options:
|
50
|
+
- sameorigin
|
51
|
+
Referrer-Policy:
|
52
|
+
- strict-origin-when-cross-origin
|
40
53
|
body:
|
41
|
-
encoding:
|
54
|
+
encoding: ASCII-8BIT
|
42
55
|
string: '{"MetaInformation":{"@TotalResources":4,"@TotalPages":1,"@CurrentPage":1},"Invoices":[{"@url":"https:\/\/api.fortnox.se\/3\/invoices\/15","Balance":0,"Booked":true,"Cancelled":false,"CostCenter":"","Currency":"SEK","CurrencyRate":"1","CurrencyUnit":1,"CustomerName":"Test
|
43
56
|
customer","CustomerNumber":"3","DocumentNumber":"15","DueDate":"2016-05-15","ExternalInvoiceReference1":"","ExternalInvoiceReference2":"","InvoiceDate":"2016-05-15","InvoiceType":"INVOICE","NoxFinans":false,"OCR":"1545","VoucherNumber":1,"VoucherSeries":"B","VoucherYear":1,"WayOfDelivery":"","TermsOfPayment":"0","Project":"2","Sent":false,"Total":138,"FinalPayDate":"2016-05-15"},{"@url":"https:\/\/api.fortnox.se\/3\/invoices\/64","Balance":0,"Booked":true,"Cancelled":false,"CostCenter":"","Currency":"SEK","CurrencyRate":"1","CurrencyUnit":1,"CustomerName":"Anna
|
44
57
|
Norman","CustomerNumber":"82","DocumentNumber":"64","DueDate":"2016-11-25","ExternalInvoiceReference1":"","ExternalInvoiceReference2":"","InvoiceDate":"2016-11-25","InvoiceType":"INVOICE","NoxFinans":false,"OCR":"6445","VoucherNumber":5,"VoucherSeries":"B","VoucherYear":1,"WayOfDelivery":"","TermsOfPayment":"0","Project":"3","Sent":false,"Total":875,"FinalPayDate":"2016-11-25"},{"@url":"https:\/\/api.fortnox.se\/3\/invoices\/66","Balance":0,"Booked":true,"Cancelled":false,"CostCenter":"","Currency":"SEK","CurrencyRate":"1","CurrencyUnit":1,"CustomerName":"Ertan
|
45
58
|
AB","CustomerNumber":"164","DocumentNumber":"66","DueDate":"2016-11-25","ExternalInvoiceReference1":"","ExternalInvoiceReference2":"","InvoiceDate":"2016-11-25","InvoiceType":"INVOICE","NoxFinans":false,"OCR":"6643","VoucherNumber":6,"VoucherSeries":"B","VoucherYear":1,"WayOfDelivery":"","TermsOfPayment":"0","Project":"3","Sent":false,"Total":1250,"FinalPayDate":"2016-11-25"},{"@url":"https:\/\/api.fortnox.se\/3\/invoices\/77","Balance":0,"Booked":true,"Cancelled":false,"CostCenter":"","Currency":"SEK","CurrencyRate":"1","CurrencyUnit":1,"CustomerName":"En
|
46
59
|
Appstudio i J\u00f6nk\u00f6ping AB","CustomerNumber":"170","DocumentNumber":"77","DueDate":"2017-01-15","ExternalInvoiceReference1":"","ExternalInvoiceReference2":"","InvoiceDate":"2017-01-15","InvoiceType":"INVOICE","NoxFinans":false,"OCR":"7740","VoucherNumber":2,"VoucherSeries":"B","VoucherYear":2,"WayOfDelivery":"","TermsOfPayment":"0","Project":"1","Sent":false,"Total":3000,"FinalPayDate":"2017-01-15"}]}'
|
47
60
|
http_version:
|
48
|
-
recorded_at:
|
61
|
+
recorded_at: Mon, 21 Dec 2020 20:41:47 GMT
|
49
62
|
recorded_with: VCR 4.0.0
|
@@ -15,6 +15,10 @@ http_interactions:
|
|
15
15
|
- 9aBA8ZgsvR
|
16
16
|
Access-Token:
|
17
17
|
- ccaef817-d5d8-4b1c-a316-54f3e55c5c54
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
|
+
User-Agent:
|
21
|
+
- Ruby
|
18
22
|
response:
|
19
23
|
status:
|
20
24
|
code: 400
|
@@ -23,20 +27,30 @@ http_interactions:
|
|
23
27
|
Server:
|
24
28
|
- nginx
|
25
29
|
Date:
|
26
|
-
-
|
30
|
+
- Mon, 21 Dec 2020 20:41:47 GMT
|
27
31
|
Content-Type:
|
28
32
|
- application/json
|
29
33
|
Connection:
|
30
34
|
- close
|
31
35
|
X-Rack-Responsetime:
|
32
|
-
- '
|
36
|
+
- '31'
|
33
37
|
X-Uid:
|
34
|
-
-
|
38
|
+
- 996036f1
|
35
39
|
X-Build:
|
36
|
-
-
|
40
|
+
- d59e2acefa
|
41
|
+
Strict-Transport-Security:
|
42
|
+
- max-age=31536000; includeSubdomains
|
43
|
+
X-Xss-Protection:
|
44
|
+
- 1; mode=block
|
45
|
+
X-Content-Type-Options:
|
46
|
+
- nosniff
|
47
|
+
X-Frame-Options:
|
48
|
+
- sameorigin
|
49
|
+
Referrer-Policy:
|
50
|
+
- strict-origin-when-cross-origin
|
37
51
|
body:
|
38
52
|
encoding: UTF-8
|
39
53
|
string: '{"ErrorInformation":{"error":1,"message":"Ett ogiltigt filter har anv\u00e4nts.","code":2000587}}'
|
40
54
|
http_version:
|
41
|
-
recorded_at:
|
55
|
+
recorded_at: Mon, 21 Dec 2020 20:41:47 GMT
|
42
56
|
recorded_with: VCR 4.0.0
|
@@ -15,6 +15,10 @@ http_interactions:
|
|
15
15
|
- 9aBA8ZgsvR
|
16
16
|
Access-Token:
|
17
17
|
- ccaef817-d5d8-4b1c-a316-54f3e55c5c54
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
|
+
User-Agent:
|
21
|
+
- Ruby
|
18
22
|
response:
|
19
23
|
status:
|
20
24
|
code: 200
|
@@ -23,23 +27,32 @@ http_interactions:
|
|
23
27
|
Server:
|
24
28
|
- nginx
|
25
29
|
Date:
|
26
|
-
-
|
30
|
+
- Mon, 21 Dec 2020 20:41:47 GMT
|
27
31
|
Content-Type:
|
28
32
|
- application/json
|
29
33
|
Connection:
|
30
34
|
- close
|
31
35
|
Vary:
|
32
36
|
- Accept-Encoding
|
33
|
-
- Accept-Encoding
|
34
37
|
X-Rack-Responsetime:
|
35
|
-
- '
|
38
|
+
- '59'
|
36
39
|
X-Uid:
|
37
|
-
-
|
40
|
+
- d8e8da7c
|
38
41
|
X-Build:
|
39
|
-
-
|
42
|
+
- d59e2acefa
|
43
|
+
Strict-Transport-Security:
|
44
|
+
- max-age=31536000; includeSubdomains
|
45
|
+
X-Xss-Protection:
|
46
|
+
- 1; mode=block
|
47
|
+
X-Content-Type-Options:
|
48
|
+
- nosniff
|
49
|
+
X-Frame-Options:
|
50
|
+
- sameorigin
|
51
|
+
Referrer-Policy:
|
52
|
+
- strict-origin-when-cross-origin
|
40
53
|
body:
|
41
|
-
encoding:
|
54
|
+
encoding: ASCII-8BIT
|
42
55
|
string: '{"MetaInformation":{"@TotalResources":0,"@TotalPages":0,"@CurrentPage":1},"Invoices":[]}'
|
43
56
|
http_version:
|
44
|
-
recorded_at:
|
57
|
+
recorded_at: Mon, 21 Dec 2020 20:41:47 GMT
|
45
58
|
recorded_with: VCR 4.0.0
|
@@ -15,6 +15,10 @@ http_interactions:
|
|
15
15
|
- 9aBA8ZgsvR
|
16
16
|
Access-Token:
|
17
17
|
- ccaef817-d5d8-4b1c-a316-54f3e55c5c54
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
|
+
User-Agent:
|
21
|
+
- Ruby
|
18
22
|
response:
|
19
23
|
status:
|
20
24
|
code: 404
|
@@ -23,23 +27,32 @@ http_interactions:
|
|
23
27
|
Server:
|
24
28
|
- nginx
|
25
29
|
Date:
|
26
|
-
-
|
30
|
+
- Mon, 21 Dec 2020 20:41:46 GMT
|
27
31
|
Content-Type:
|
28
32
|
- application/json
|
29
33
|
Connection:
|
30
34
|
- close
|
31
35
|
Vary:
|
32
36
|
- Accept-Encoding
|
33
|
-
- Accept-Encoding
|
34
37
|
X-Rack-Responsetime:
|
35
38
|
- '30'
|
36
39
|
X-Uid:
|
37
|
-
-
|
40
|
+
- 6d6ecffa
|
38
41
|
X-Build:
|
39
|
-
-
|
42
|
+
- d59e2acefa
|
43
|
+
Strict-Transport-Security:
|
44
|
+
- max-age=31536000; includeSubdomains
|
45
|
+
X-Xss-Protection:
|
46
|
+
- 1; mode=block
|
47
|
+
X-Content-Type-Options:
|
48
|
+
- nosniff
|
49
|
+
X-Frame-Options:
|
50
|
+
- sameorigin
|
51
|
+
Referrer-Policy:
|
52
|
+
- strict-origin-when-cross-origin
|
40
53
|
body:
|
41
|
-
encoding:
|
54
|
+
encoding: ASCII-8BIT
|
42
55
|
string: '{"ErrorInformation":{"Error":1,"Message":"Kan inte hitta fakturan.","Code":2000434}}'
|
43
56
|
http_version:
|
44
|
-
recorded_at:
|
57
|
+
recorded_at: Mon, 21 Dec 2020 20:41:46 GMT
|
45
58
|
recorded_with: VCR 4.0.0
|
@@ -15,6 +15,10 @@ http_interactions:
|
|
15
15
|
- 9aBA8ZgsvR
|
16
16
|
Access-Token:
|
17
17
|
- ccaef817-d5d8-4b1c-a316-54f3e55c5c54
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
|
+
User-Agent:
|
21
|
+
- Ruby
|
18
22
|
response:
|
19
23
|
status:
|
20
24
|
code: 200
|
@@ -23,25 +27,34 @@ http_interactions:
|
|
23
27
|
Server:
|
24
28
|
- nginx
|
25
29
|
Date:
|
26
|
-
-
|
30
|
+
- Mon, 21 Dec 2020 20:41:46 GMT
|
27
31
|
Content-Type:
|
28
32
|
- application/json
|
29
33
|
Connection:
|
30
34
|
- close
|
31
35
|
Vary:
|
32
36
|
- Accept-Encoding
|
33
|
-
- Accept-Encoding
|
34
37
|
X-Rack-Responsetime:
|
35
|
-
- '
|
38
|
+
- '51'
|
36
39
|
X-Uid:
|
37
|
-
-
|
40
|
+
- ef8e5296
|
38
41
|
X-Build:
|
39
|
-
-
|
42
|
+
- d59e2acefa
|
43
|
+
Strict-Transport-Security:
|
44
|
+
- max-age=31536000; includeSubdomains
|
45
|
+
X-Xss-Protection:
|
46
|
+
- 1; mode=block
|
47
|
+
X-Content-Type-Options:
|
48
|
+
- nosniff
|
49
|
+
X-Frame-Options:
|
50
|
+
- sameorigin
|
51
|
+
Referrer-Policy:
|
52
|
+
- strict-origin-when-cross-origin
|
40
53
|
body:
|
41
|
-
encoding:
|
54
|
+
encoding: ASCII-8BIT
|
42
55
|
string: '{"Invoice":{"@url":"https:\/\/api.fortnox.se\/3\/invoices\/1","@urlTaxReductionList":"https:\/\/api.fortnox.se\/3\/taxreductions?filter=invoices&referencenumber=1","AdministrationFee":0,"AdministrationFeeVAT":0,"Address1":"","Address2":"","Balance":0,"BasisTaxReduction":0,"Booked":false,"Cancelled":false,"City":"","Comments":"Old
|
43
|
-
comments","ContractReference":0,"ContributionPercent":0,"ContributionValue":0,"Country":"","CostCenter":"","Credit":"false","CreditInvoiceReference":"0","Currency":"SEK","CurrencyRate":1,"CurrencyUnit":1,"CustomerName":"Test","CustomerNumber":"1","DeliveryAddress1":"","DeliveryAddress2":"","DeliveryCity":"","DeliveryCountry":"","DeliveryDate":null,"DeliveryName":"","DeliveryZipCode":"","DocumentNumber":"1","DueDate":"2016-02-04","EDIInformation":{"EDIGlobalLocationNumber":"","EDIGlobalLocationNumberDelivery":"","EDIInvoiceExtra1":"","EDIInvoiceExtra2":"","EDIOurElectronicReference":"","EDIYourElectronicReference":""},"EmailInformation":{"EmailAddressFrom":null,"EmailAddressTo":"","EmailAddressCC":null,"EmailAddressBCC":null,"EmailSubject":"Faktura
|
44
|
-
{no} bifogas","EmailBody":" "},"EUQuarterlyReport":false,"ExternalInvoiceReference1":"","ExternalInvoiceReference2":"","Freight":0,"FreightVAT":0,"Gross":0,"HouseWork":false,"InvoiceDate":"2016-02-04","InvoicePeriodStart":"","InvoicePeriodEnd":"","InvoiceReference":"0","InvoiceRows":[],"InvoiceType":"INVOICE","Labels":[],"Language":"SV","LastRemindDate":null,"Net":0,"NotCompleted":false,"NoxFinans":false,"OCR":"133","OfferReference":"0","OrderReference":"0","OrganisationNumber":"","OurReference":"","PaymentWay":"","Phone1":"","Phone2":"","PriceList":"A","PrintTemplate":"st","Project":"","WarehouseReady":true,"OutboundDate":"2016-02-04","Remarks":"","Reminders":0,"RoundOff":0,"Sent":true,"TaxReduction":null,"TermsOfDelivery":"","TermsOfPayment":"0","Total":0,"TotalToPay":0,"TotalVAT":0,"VATIncluded":false,"VoucherNumber":null,"VoucherSeries":null,"VoucherYear":null,"WayOfDelivery":"","YourOrderNumber":"","YourReference":"","ZipCode":"","AccountingMethod":"ACCRUAL","FinalPayDate":null}}'
|
56
|
+
comments","ContractReference":0,"ContributionPercent":0,"ContributionValue":0,"Country":"","CostCenter":"","Credit":"false","CreditInvoiceReference":"0","Currency":"SEK","CurrencyRate":1,"CurrencyUnit":1,"CustomerName":"Test","CustomerNumber":"1","DeliveryAddress1":"","DeliveryAddress2":"","DeliveryCity":"","DeliveryCountry":"","DeliveryDate":null,"DeliveryName":"","DeliveryZipCode":"","DocumentNumber":"1","DueDate":"2016-02-04","EDIInformation":{"EDIGlobalLocationNumber":"","EDIGlobalLocationNumberDelivery":"","EDIInvoiceExtra1":"","EDIInvoiceExtra2":"","EDIOurElectronicReference":"","EDIYourElectronicReference":"","EDIStatus":""},"EmailInformation":{"EmailAddressFrom":null,"EmailAddressTo":"","EmailAddressCC":null,"EmailAddressBCC":null,"EmailSubject":"Faktura
|
57
|
+
{no} bifogas","EmailBody":" "},"EUQuarterlyReport":false,"ExternalInvoiceReference1":"","ExternalInvoiceReference2":"","Freight":0,"FreightVAT":0,"Gross":0,"HouseWork":false,"InvoiceDate":"2016-02-04","InvoicePeriodStart":"","InvoicePeriodEnd":"","InvoiceReference":"0","InvoiceRows":[],"InvoiceType":"INVOICE","Labels":[],"Language":"SV","LastRemindDate":null,"Net":0,"NotCompleted":false,"NoxFinans":false,"OCR":"133","OfferReference":"0","OrderReference":"0","OrganisationNumber":"","OurReference":"","PaymentWay":"","Phone1":"","Phone2":"","PriceList":"A","PrintTemplate":"st","Project":"","WarehouseReady":true,"OutboundDate":"2016-02-04","Remarks":"","Reminders":0,"RoundOff":0,"Sent":true,"TaxReduction":null,"TermsOfDelivery":"","TermsOfPayment":"0","TimeBasisReference":null,"Total":0,"TotalToPay":0,"TotalVAT":0,"VATIncluded":false,"VoucherNumber":null,"VoucherSeries":null,"VoucherYear":null,"WayOfDelivery":"","YourOrderNumber":"","YourReference":"","ZipCode":"","AccountingMethod":"ACCRUAL","FinalPayDate":null,"TaxReductionType":"none"}}'
|
45
58
|
http_version:
|
46
|
-
recorded_at:
|
59
|
+
recorded_at: Mon, 21 Dec 2020 20:41:46 GMT
|
47
60
|
recorded_with: VCR 4.0.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.fortnox.se/3/invoices/
|
5
|
+
uri: https://api.fortnox.se/3/invoices/158
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -15,6 +15,10 @@ http_interactions:
|
|
15
15
|
- 9aBA8ZgsvR
|
16
16
|
Access-Token:
|
17
17
|
- ccaef817-d5d8-4b1c-a316-54f3e55c5c54
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
|
+
User-Agent:
|
21
|
+
- Ruby
|
18
22
|
response:
|
19
23
|
status:
|
20
24
|
code: 200
|
@@ -23,26 +27,35 @@ http_interactions:
|
|
23
27
|
Server:
|
24
28
|
- nginx
|
25
29
|
Date:
|
26
|
-
-
|
30
|
+
- Mon, 21 Dec 2020 20:41:45 GMT
|
27
31
|
Content-Type:
|
28
32
|
- application/json
|
29
33
|
Connection:
|
30
34
|
- close
|
31
35
|
Vary:
|
32
36
|
- Accept-Encoding
|
33
|
-
- Accept-Encoding
|
34
37
|
X-Rack-Responsetime:
|
35
|
-
- '
|
38
|
+
- '52'
|
36
39
|
X-Uid:
|
37
|
-
-
|
40
|
+
- 1fcab97c
|
38
41
|
X-Build:
|
39
|
-
-
|
42
|
+
- d59e2acefa
|
43
|
+
Strict-Transport-Security:
|
44
|
+
- max-age=31536000; includeSubdomains
|
45
|
+
X-Xss-Protection:
|
46
|
+
- 1; mode=block
|
47
|
+
X-Content-Type-Options:
|
48
|
+
- nosniff
|
49
|
+
X-Frame-Options:
|
50
|
+
- sameorigin
|
51
|
+
Referrer-Policy:
|
52
|
+
- strict-origin-when-cross-origin
|
40
53
|
body:
|
41
|
-
encoding:
|
42
|
-
string: '{"Invoice":{"@url":"https:\/\/api.fortnox.se\/3\/invoices\/
|
54
|
+
encoding: ASCII-8BIT
|
55
|
+
string: '{"Invoice":{"@url":"https:\/\/api.fortnox.se\/3\/invoices\/158","@urlTaxReductionList":"https:\/\/api.fortnox.se\/3\/taxreductions?filter=invoices&referencenumber=158","AdministrationFee":0,"AdministrationFeeVAT":0,"Address1":"","Address2":"","Balance":0,"BasisTaxReduction":0,"Booked":false,"Cancelled":false,"City":"","Comments":"A
|
43
56
|
value","ContractReference":0,"ContributionPercent":0,"ContributionValue":0,"Country":"","CostCenter":"","Credit":"false","CreditInvoiceReference":"0","Currency":"SEK","CurrencyRate":1,"CurrencyUnit":1,"CustomerName":"Old
|
44
|
-
name","CustomerNumber":"1","DeliveryAddress1":"","DeliveryAddress2":"","DeliveryCity":"","DeliveryCountry":"","DeliveryDate":null,"DeliveryName":"","DeliveryZipCode":"","DocumentNumber":"
|
45
|
-
{no} bifogas","EmailBody":" "},"EUQuarterlyReport":false,"ExternalInvoiceReference1":"","ExternalInvoiceReference2":"","Freight":0,"FreightVAT":0,"Gross":0,"HouseWork":false,"InvoiceDate":"
|
57
|
+
name","CustomerNumber":"1","DeliveryAddress1":"","DeliveryAddress2":"","DeliveryCity":"","DeliveryCountry":"","DeliveryDate":null,"DeliveryName":"","DeliveryZipCode":"","DocumentNumber":"158","DueDate":"2020-12-21","EDIInformation":{"EDIGlobalLocationNumber":null,"EDIGlobalLocationNumberDelivery":null,"EDIInvoiceExtra1":null,"EDIInvoiceExtra2":null,"EDIOurElectronicReference":null,"EDIYourElectronicReference":null,"EDIStatus":""},"EmailInformation":{"EmailAddressFrom":null,"EmailAddressTo":"","EmailAddressCC":null,"EmailAddressBCC":null,"EmailSubject":"Faktura
|
58
|
+
{no} bifogas","EmailBody":" "},"EUQuarterlyReport":false,"ExternalInvoiceReference1":"","ExternalInvoiceReference2":"","Freight":0,"FreightVAT":0,"Gross":0,"HouseWork":false,"InvoiceDate":"2020-12-21","InvoicePeriodStart":"","InvoicePeriodEnd":"","InvoiceReference":"0","InvoiceRows":[],"InvoiceType":"INVOICE","Labels":[],"Language":"SV","LastRemindDate":null,"Net":0,"NotCompleted":false,"NoxFinans":false,"OCR":"15859","OfferReference":"0","OrderReference":"0","OrganisationNumber":"860101-8735","OurReference":"","PaymentWay":"","Phone1":"","Phone2":"","PriceList":"A","PrintTemplate":"st","Project":"","WarehouseReady":true,"OutboundDate":"2020-12-21","Remarks":"","Reminders":0,"RoundOff":0,"Sent":false,"TaxReduction":null,"TermsOfDelivery":"","TermsOfPayment":"0","TimeBasisReference":null,"Total":0,"TotalToPay":0,"TotalVAT":0,"VATIncluded":false,"VoucherNumber":null,"VoucherSeries":null,"VoucherYear":null,"WayOfDelivery":"","YourOrderNumber":"","YourReference":"","ZipCode":"","AccountingMethod":"ACCRUAL","FinalPayDate":null,"TaxReductionType":"none"}}'
|
46
59
|
http_version:
|
47
|
-
recorded_at:
|
60
|
+
recorded_at: Mon, 21 Dec 2020 20:41:45 GMT
|
48
61
|
recorded_with: VCR 4.0.0
|
@@ -15,6 +15,10 @@ http_interactions:
|
|
15
15
|
- 9aBA8ZgsvR
|
16
16
|
Access-Token:
|
17
17
|
- ccaef817-d5d8-4b1c-a316-54f3e55c5c54
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
|
+
User-Agent:
|
21
|
+
- Ruby
|
18
22
|
response:
|
19
23
|
status:
|
20
24
|
code: 200
|
@@ -23,24 +27,33 @@ http_interactions:
|
|
23
27
|
Server:
|
24
28
|
- nginx
|
25
29
|
Date:
|
26
|
-
-
|
30
|
+
- Mon, 21 Dec 2020 20:41:47 GMT
|
27
31
|
Content-Type:
|
28
32
|
- application/json
|
29
33
|
Connection:
|
30
34
|
- close
|
31
35
|
Vary:
|
32
36
|
- Accept-Encoding
|
33
|
-
- Accept-Encoding
|
34
37
|
X-Rack-Responsetime:
|
35
|
-
- '
|
38
|
+
- '48'
|
36
39
|
X-Uid:
|
37
|
-
-
|
40
|
+
- 7e608411
|
38
41
|
X-Build:
|
39
|
-
-
|
42
|
+
- d59e2acefa
|
43
|
+
Strict-Transport-Security:
|
44
|
+
- max-age=31536000; includeSubdomains
|
45
|
+
X-Xss-Protection:
|
46
|
+
- 1; mode=block
|
47
|
+
X-Content-Type-Options:
|
48
|
+
- nosniff
|
49
|
+
X-Frame-Options:
|
50
|
+
- sameorigin
|
51
|
+
Referrer-Policy:
|
52
|
+
- strict-origin-when-cross-origin
|
40
53
|
body:
|
41
|
-
encoding:
|
54
|
+
encoding: ASCII-8BIT
|
42
55
|
string: '{"MetaInformation":{"@TotalResources":1,"@TotalPages":1,"@CurrentPage":1},"Invoices":[{"@url":"https:\/\/api.fortnox.se\/3\/invoices\/3","Balance":200,"Booked":false,"Cancelled":false,"CostCenter":"","Currency":"SEK","CurrencyRate":"1","CurrencyUnit":1,"CustomerName":"Updated
|
43
56
|
customer","CustomerNumber":"1","DocumentNumber":"3","DueDate":"2016-03-17","ExternalInvoiceReference1":"","ExternalInvoiceReference2":"","InvoiceDate":"2016-03-16","InvoiceType":"INVOICE","NoxFinans":false,"OCR":"331","VoucherNumber":null,"VoucherSeries":null,"VoucherYear":null,"WayOfDelivery":"","TermsOfPayment":"0","Project":"","Sent":false,"Total":200,"FinalPayDate":null}]}'
|
44
57
|
http_version:
|
45
|
-
recorded_at:
|
58
|
+
recorded_at: Mon, 21 Dec 2020 20:41:47 GMT
|
46
59
|
recorded_with: VCR 4.0.0
|