fortnox-api 0.9.2 → 1.0.0.rc2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +120 -95
- data/{LICENSE.txt → LICENSE.md} +0 -0
- data/README.md +245 -248
- data/bin/fortnox-setup +211 -0
- data/bin/fortnox-update-env +38 -0
- data/fortnox.gemspec +29 -0
- data/lib/fortnox/auth/thread_local.rb +28 -0
- data/lib/fortnox/collection.rb +23 -0
- data/lib/fortnox/mappers/country_code.rb +34 -0
- data/lib/fortnox/mappers/date.rb +21 -0
- data/lib/fortnox/mappers/document_row.rb +12 -0
- data/lib/fortnox/mappers/edi_information.rb +15 -0
- data/lib/fortnox/mappers/email_information.rb +11 -0
- data/lib/fortnox/mappers/invoice_row.rb +14 -0
- data/lib/fortnox/mappers/label_references.rb +24 -0
- data/lib/fortnox/mappers/order_row.rb +9 -0
- data/lib/fortnox/mappers/struct.rb +71 -0
- data/lib/fortnox/mappers/struct_array.rb +31 -0
- data/lib/fortnox/resource.rb +131 -0
- data/lib/fortnox/resources/article.rb +160 -0
- data/lib/fortnox/resources/customer.rb +209 -0
- data/lib/fortnox/resources/document.rb +202 -0
- data/lib/fortnox/resources/invoice.rb +92 -0
- data/lib/fortnox/resources/label.rb +15 -0
- data/lib/fortnox/resources/order.rb +38 -0
- data/lib/fortnox/resources/project.rb +41 -0
- data/lib/fortnox/resources/terms_of_payment.rb +23 -0
- data/lib/fortnox/resources/unit.rb +26 -0
- data/lib/fortnox/struct.rb +24 -0
- data/lib/fortnox/structs/default_delivery_types.rb +16 -0
- data/lib/fortnox/structs/default_templates.rb +19 -0
- data/lib/fortnox/structs/document_row.rb +62 -0
- data/lib/fortnox/structs/edi_information.rb +25 -0
- data/lib/fortnox/structs/email_information.rb +22 -0
- data/lib/fortnox/structs/invoice_row.rb +13 -0
- data/lib/fortnox/structs/order_row.rb +10 -0
- data/lib/fortnox/types.rb +129 -0
- data/lib/fortnox/{api/version.rb → version.rb} +1 -3
- data/lib/fortnox.rb +111 -0
- metadata +55 -580
- data/.codeclimate.yml +0 -20
- data/.env.template +0 -7
- data/.env.test +0 -11
- data/.gitignore +0 -20
- data/.rspec +0 -2
- data/.rubocop.yml +0 -41
- data/.tool-versions +0 -1
- data/.travis.yml +0 -32
- data/CLAUDE.md +0 -79
- data/CONTRIBUTE.md +0 -38
- data/DEVELOPER_README.md +0 -69
- data/Gemfile +0 -6
- data/Guardfile +0 -16
- data/Rakefile +0 -140
- data/bin/console +0 -22
- data/bin/fortnox +0 -285
- data/bin/get_tokens +0 -79
- data/bin/renew_tokens +0 -28
- data/docs/gotchas.md +0 -146
- data/fortnox-api.gemspec +0 -50
- data/lib/fortnox/api/mappers/article.rb +0 -23
- data/lib/fortnox/api/mappers/base/canonical_name_sym.rb +0 -21
- data/lib/fortnox/api/mappers/base/from_json.rb +0 -91
- data/lib/fortnox/api/mappers/base/to_json.rb +0 -66
- data/lib/fortnox/api/mappers/base.rb +0 -30
- data/lib/fortnox/api/mappers/customer.rb +0 -27
- data/lib/fortnox/api/mappers/default_delivery_types.rb +0 -15
- data/lib/fortnox/api/mappers/default_templates.rb +0 -16
- data/lib/fortnox/api/mappers/edi_information.rb +0 -23
- data/lib/fortnox/api/mappers/email_information.rb +0 -19
- data/lib/fortnox/api/mappers/invoice.rb +0 -29
- data/lib/fortnox/api/mappers/invoice_row.rb +0 -25
- data/lib/fortnox/api/mappers/order.rb +0 -26
- data/lib/fortnox/api/mappers/order_row.rb +0 -23
- data/lib/fortnox/api/mappers/project.rb +0 -17
- data/lib/fortnox/api/mappers/terms_of_payment.rb +0 -17
- data/lib/fortnox/api/mappers/unit.rb +0 -17
- data/lib/fortnox/api/mappers/value/array.rb +0 -18
- data/lib/fortnox/api/mappers/value/country_string.rb +0 -24
- data/lib/fortnox/api/mappers/value/date.rb +0 -11
- data/lib/fortnox/api/mappers/value/hash.rb +0 -16
- data/lib/fortnox/api/mappers/value/identity.rb +0 -18
- data/lib/fortnox/api/mappers.rb +0 -21
- data/lib/fortnox/api/models/article.rb +0 -134
- data/lib/fortnox/api/models/base.rb +0 -128
- data/lib/fortnox/api/models/customer.rb +0 -210
- data/lib/fortnox/api/models/document.rb +0 -189
- data/lib/fortnox/api/models/invoice.rb +0 -87
- data/lib/fortnox/api/models/label.rb +0 -19
- data/lib/fortnox/api/models/order.rb +0 -27
- data/lib/fortnox/api/models/project.rb +0 -42
- data/lib/fortnox/api/models/terms_of_payment.rb +0 -28
- data/lib/fortnox/api/models/unit.rb +0 -24
- data/lib/fortnox/api/models.rb +0 -9
- data/lib/fortnox/api/repositories/article.rb +0 -17
- data/lib/fortnox/api/repositories/authentication.rb +0 -61
- data/lib/fortnox/api/repositories/base/loaders.rb +0 -64
- data/lib/fortnox/api/repositories/base/savers.rb +0 -57
- data/lib/fortnox/api/repositories/base.rb +0 -93
- data/lib/fortnox/api/repositories/customer.rb +0 -17
- data/lib/fortnox/api/repositories/invoice.rb +0 -17
- data/lib/fortnox/api/repositories/order.rb +0 -17
- data/lib/fortnox/api/repositories/project.rb +0 -17
- data/lib/fortnox/api/repositories/terms_of_payment.rb +0 -17
- data/lib/fortnox/api/repositories/unit.rb +0 -17
- data/lib/fortnox/api/repositories.rb +0 -10
- data/lib/fortnox/api/request_handling.rb +0 -46
- data/lib/fortnox/api/types/default_delivery_types.rb +0 -20
- data/lib/fortnox/api/types/default_templates.rb +0 -23
- data/lib/fortnox/api/types/defaulted.rb +0 -11
- data/lib/fortnox/api/types/document_row.rb +0 -64
- data/lib/fortnox/api/types/edi_information.rb +0 -29
- data/lib/fortnox/api/types/email_information.rb +0 -26
- data/lib/fortnox/api/types/enums.rb +0 -116
- data/lib/fortnox/api/types/invoice_row.rb +0 -19
- data/lib/fortnox/api/types/model.rb +0 -37
- data/lib/fortnox/api/types/nullable.rb +0 -25
- data/lib/fortnox/api/types/order_row.rb +0 -16
- data/lib/fortnox/api/types/required.rb +0 -13
- data/lib/fortnox/api/types/shim/country_string.rb +0 -10
- data/lib/fortnox/api/types/sized.rb +0 -33
- data/lib/fortnox/api/types.rb +0 -144
- data/lib/fortnox/api.rb +0 -62
- data/spec/fortnox/api/mappers/article_spec.rb +0 -17
- data/spec/fortnox/api/mappers/base/canonical_name_sym_spec.rb +0 -36
- data/spec/fortnox/api/mappers/base/from_json_spec.rb +0 -70
- data/spec/fortnox/api/mappers/base/to_json_spec.rb +0 -68
- data/spec/fortnox/api/mappers/base_spec.rb +0 -154
- data/spec/fortnox/api/mappers/contexts/json_conversion.rb +0 -62
- data/spec/fortnox/api/mappers/customer_spec.rb +0 -27
- data/spec/fortnox/api/mappers/default_delivery_types_spec.rb +0 -14
- data/spec/fortnox/api/mappers/edi_information_spec.rb +0 -23
- data/spec/fortnox/api/mappers/email_information_spec.rb +0 -19
- data/spec/fortnox/api/mappers/examples/mapper.rb +0 -34
- data/spec/fortnox/api/mappers/invoice_row_spec.rb +0 -24
- data/spec/fortnox/api/mappers/invoice_spec.rb +0 -27
- data/spec/fortnox/api/mappers/order_row_spec.rb +0 -21
- data/spec/fortnox/api/mappers/order_spec.rb +0 -23
- data/spec/fortnox/api/mappers/project_spec.rb +0 -12
- data/spec/fortnox/api/mappers/terms_of_payment_spec.rb +0 -16
- data/spec/fortnox/api/mappers/unit_spec.rb +0 -56
- data/spec/fortnox/api/models/article_spec.rb +0 -9
- data/spec/fortnox/api/models/base_spec.rb +0 -117
- data/spec/fortnox/api/models/customer_spec.rb +0 -9
- data/spec/fortnox/api/models/examples/document_base.rb +0 -15
- data/spec/fortnox/api/models/examples/model.rb +0 -22
- data/spec/fortnox/api/models/invoice_spec.rb +0 -11
- data/spec/fortnox/api/models/order_spec.rb +0 -12
- data/spec/fortnox/api/models/project_spec.rb +0 -9
- data/spec/fortnox/api/models/terms_of_payment_spec.rb +0 -9
- data/spec/fortnox/api/models/unit_spec.rb +0 -33
- data/spec/fortnox/api/repositories/article_spec.rb +0 -80
- data/spec/fortnox/api/repositories/authentication_spec.rb +0 -103
- data/spec/fortnox/api/repositories/base_spec.rb +0 -168
- data/spec/fortnox/api/repositories/customer_spec.rb +0 -119
- data/spec/fortnox/api/repositories/examples/all.rb +0 -17
- data/spec/fortnox/api/repositories/examples/find.rb +0 -84
- data/spec/fortnox/api/repositories/examples/only.rb +0 -34
- data/spec/fortnox/api/repositories/examples/save.rb +0 -76
- data/spec/fortnox/api/repositories/examples/save_with_nested_model.rb +0 -28
- data/spec/fortnox/api/repositories/examples/save_with_specially_named_attribute.rb +0 -26
- data/spec/fortnox/api/repositories/examples/search.rb +0 -39
- data/spec/fortnox/api/repositories/invoice_spec.rb +0 -297
- data/spec/fortnox/api/repositories/order_spec.rb +0 -53
- data/spec/fortnox/api/repositories/project_spec.rb +0 -36
- data/spec/fortnox/api/repositories/terms_of_payment_spec.rb +0 -34
- data/spec/fortnox/api/repositories/unit_spec.rb +0 -39
- data/spec/fortnox/api/types/account_number_spec.rb +0 -35
- data/spec/fortnox/api/types/country_code_spec.rb +0 -42
- data/spec/fortnox/api/types/country_spec.rb +0 -67
- data/spec/fortnox/api/types/default_delivery_types_spec.rb +0 -12
- data/spec/fortnox/api/types/edi_information_spec.rb +0 -15
- data/spec/fortnox/api/types/email_information_spec.rb +0 -15
- data/spec/fortnox/api/types/email_spec.rb +0 -56
- data/spec/fortnox/api/types/enums_spec.rb +0 -17
- data/spec/fortnox/api/types/examples/document_row.rb +0 -25
- data/spec/fortnox/api/types/examples/enum.rb +0 -55
- data/spec/fortnox/api/types/examples/types.rb +0 -11
- data/spec/fortnox/api/types/housework_types_spec.rb +0 -149
- data/spec/fortnox/api/types/invoice_row_spec.rb +0 -11
- data/spec/fortnox/api/types/model_spec.rb +0 -69
- data/spec/fortnox/api/types/nullable_spec.rb +0 -79
- data/spec/fortnox/api/types/order_row_spec.rb +0 -15
- data/spec/fortnox/api/types/required_spec.rb +0 -36
- data/spec/fortnox/api/types/sales_account_spec.rb +0 -57
- data/spec/fortnox/api/types/sized_spec.rb +0 -76
- data/spec/fortnox/api_spec.rb +0 -66
- data/spec/spec_helper.rb +0 -35
- data/spec/support/helpers/configuration_helper.rb +0 -39
- data/spec/support/helpers/repository_helper.rb +0 -10
- data/spec/support/helpers.rb +0 -3
- data/spec/support/matchers/type/attribute_matcher.rb +0 -40
- data/spec/support/matchers/type/enum_matcher.rb +0 -23
- data/spec/support/matchers/type/have_account_number_matcher.rb +0 -23
- data/spec/support/matchers/type/have_currency_matcher.rb +0 -9
- data/spec/support/matchers/type/have_customer_type_matcher.rb +0 -15
- data/spec/support/matchers/type/have_default_delivery_type_matcher.rb +0 -9
- data/spec/support/matchers/type/have_discount_type_matcher.rb +0 -9
- data/spec/support/matchers/type/have_email_matcher.rb +0 -24
- data/spec/support/matchers/type/have_housework_type_matcher.rb +0 -9
- data/spec/support/matchers/type/have_nullable_date_matcher.rb +0 -60
- data/spec/support/matchers/type/have_nullable_matcher.rb +0 -54
- data/spec/support/matchers/type/have_nullable_string_matcher.rb +0 -47
- data/spec/support/matchers/type/have_sized_float_matcher.rb +0 -10
- data/spec/support/matchers/type/have_sized_integer_matcher.rb +0 -10
- data/spec/support/matchers/type/have_sized_string_matcher.rb +0 -36
- data/spec/support/matchers/type/have_vat_type_matcher.rb +0 -9
- data/spec/support/matchers/type/numeric_matcher.rb +0 -52
- data/spec/support/matchers/type/require_attribute_matcher.rb +0 -68
- data/spec/support/matchers/type/type_matcher.rb +0 -40
- data/spec/support/matchers/type.rb +0 -19
- data/spec/support/matchers.rb +0 -3
- data/spec/support/vcr_setup.rb +0 -25
- data/spec/vcr_cassettes/articles/all.yml +0 -67
- data/spec/vcr_cassettes/articles/find_by_hash_failure.yml +0 -62
- data/spec/vcr_cassettes/articles/find_failure.yml +0 -62
- data/spec/vcr_cassettes/articles/find_id_1.yml +0 -63
- data/spec/vcr_cassettes/articles/find_new.yml +0 -63
- data/spec/vcr_cassettes/articles/limits/quantity_in_stock_min_value.yml +0 -63
- data/spec/vcr_cassettes/articles/limits/quantity_in_stock_rounding_positive_value.yml +0 -63
- data/spec/vcr_cassettes/articles/multi_param_find_by_hash.yml +0 -62
- data/spec/vcr_cassettes/articles/save_new.yml +0 -63
- data/spec/vcr_cassettes/articles/save_old.yml +0 -63
- data/spec/vcr_cassettes/articles/save_with_specially_named_attribute.yml +0 -63
- data/spec/vcr_cassettes/articles/search_by_name.yml +0 -65
- data/spec/vcr_cassettes/articles/search_miss.yml +0 -62
- data/spec/vcr_cassettes/articles/search_with_special_char.yml +0 -62
- data/spec/vcr_cassettes/articles/single_param_find_by_hash.yml +0 -62
- data/spec/vcr_cassettes/authentication/expired_token.yml +0 -54
- data/spec/vcr_cassettes/authentication/invalid_authorization.yml +0 -57
- data/spec/vcr_cassettes/authentication/invalid_refresh_token.yml +0 -58
- data/spec/vcr_cassettes/authentication/valid_request.yml +0 -63
- data/spec/vcr_cassettes/customers/all.yml +0 -69
- data/spec/vcr_cassettes/customers/find_by_hash_failure.yml +0 -62
- data/spec/vcr_cassettes/customers/find_failure.yml +0 -62
- data/spec/vcr_cassettes/customers/find_id_1.yml +0 -64
- data/spec/vcr_cassettes/customers/find_new.yml +0 -63
- data/spec/vcr_cassettes/customers/find_with_sales_account.yml +0 -63
- data/spec/vcr_cassettes/customers/multi_param_find_by_hash.yml +0 -63
- data/spec/vcr_cassettes/customers/save_new.yml +0 -63
- data/spec/vcr_cassettes/customers/save_new_with_country_code_SE.yml +0 -64
- data/spec/vcr_cassettes/customers/save_new_with_idn_email.yml +0 -67
- data/spec/vcr_cassettes/customers/save_new_with_sales_account.yml +0 -63
- data/spec/vcr_cassettes/customers/save_old.yml +0 -63
- data/spec/vcr_cassettes/customers/save_with_specially_named_attribute.yml +0 -63
- data/spec/vcr_cassettes/customers/search_by_name.yml +0 -64
- data/spec/vcr_cassettes/customers/search_miss.yml +0 -62
- data/spec/vcr_cassettes/customers/search_with_special_char.yml +0 -62
- data/spec/vcr_cassettes/customers/single_param_find_by_hash.yml +0 -64
- data/spec/vcr_cassettes/invoices/all.yml +0 -96
- data/spec/vcr_cassettes/invoices/filter_hit.yml +0 -64
- data/spec/vcr_cassettes/invoices/filter_invalid.yml +0 -60
- data/spec/vcr_cassettes/invoices/find_by_hash_failure.yml +0 -62
- data/spec/vcr_cassettes/invoices/find_failure.yml +0 -62
- data/spec/vcr_cassettes/invoices/find_id_1.yml +0 -65
- data/spec/vcr_cassettes/invoices/find_new.yml +0 -65
- data/spec/vcr_cassettes/invoices/multi_param_find_by_hash.yml +0 -63
- data/spec/vcr_cassettes/invoices/row_delivered_quantity_decimals.yml +0 -65
- data/spec/vcr_cassettes/invoices/row_delivered_quantity_decimals_round_up.yml +0 -65
- data/spec/vcr_cassettes/invoices/row_description_limit.yml +0 -65
- data/spec/vcr_cassettes/invoices/row_price_limit.yml +0 -65
- data/spec/vcr_cassettes/invoices/row_price_limit_round_up.yml +0 -65
- data/spec/vcr_cassettes/invoices/save_new.yml +0 -65
- data/spec/vcr_cassettes/invoices/save_new_with_comments.yml +0 -65
- data/spec/vcr_cassettes/invoices/save_new_with_country.yml +0 -65
- data/spec/vcr_cassettes/invoices/save_new_with_country_GB.yml +0 -66
- data/spec/vcr_cassettes/invoices/save_new_with_country_Norge.yml +0 -65
- data/spec/vcr_cassettes/invoices/save_new_with_country_Norway.yml +0 -65
- data/spec/vcr_cassettes/invoices/save_new_with_country_Sverige.yml +0 -65
- data/spec/vcr_cassettes/invoices/save_new_with_country_VA.yml +0 -66
- data/spec/vcr_cassettes/invoices/save_new_with_country_VI.yml +0 -66
- data/spec/vcr_cassettes/invoices/save_new_with_country_empty_string.yml +0 -65
- data/spec/vcr_cassettes/invoices/save_new_with_country_nil.yml +0 -65
- data/spec/vcr_cassettes/invoices/save_new_with_unsaved_parent.yml +0 -65
- data/spec/vcr_cassettes/invoices/save_old.yml +0 -65
- data/spec/vcr_cassettes/invoices/save_old_with_empty_comments.yml +0 -65
- data/spec/vcr_cassettes/invoices/save_old_with_empty_country.yml +0 -65
- data/spec/vcr_cassettes/invoices/save_old_with_nil_comments.yml +0 -65
- data/spec/vcr_cassettes/invoices/save_old_with_nil_country.yml +0 -65
- data/spec/vcr_cassettes/invoices/save_with_nested_model.yml +0 -65
- data/spec/vcr_cassettes/invoices/save_with_specially_named_attribute.yml +0 -65
- data/spec/vcr_cassettes/invoices/search_by_name.yml +0 -63
- data/spec/vcr_cassettes/invoices/search_miss.yml +0 -62
- data/spec/vcr_cassettes/invoices/search_with_special_char.yml +0 -62
- data/spec/vcr_cassettes/invoices/single_param_find_by_hash.yml +0 -64
- data/spec/vcr_cassettes/orders/all.yml +0 -69
- data/spec/vcr_cassettes/orders/filter_hit.yml +0 -64
- data/spec/vcr_cassettes/orders/filter_invalid.yml +0 -60
- data/spec/vcr_cassettes/orders/find_by_hash_failure.yml +0 -62
- data/spec/vcr_cassettes/orders/find_failure.yml +0 -62
- data/spec/vcr_cassettes/orders/find_id_1.yml +0 -67
- data/spec/vcr_cassettes/orders/find_new.yml +0 -65
- data/spec/vcr_cassettes/orders/housework_invalid_tax_reduction_type.yml +0 -61
- data/spec/vcr_cassettes/orders/housework_othercoses_invalid.yml +0 -61
- data/spec/vcr_cassettes/orders/housework_type_babysitting.yml +0 -65
- data/spec/vcr_cassettes/orders/housework_type_cleaning.yml +0 -65
- data/spec/vcr_cassettes/orders/housework_type_construction.yml +0 -65
- data/spec/vcr_cassettes/orders/housework_type_cooking.yml +0 -61
- data/spec/vcr_cassettes/orders/housework_type_electricity.yml +0 -65
- data/spec/vcr_cassettes/orders/housework_type_gardening.yml +0 -65
- data/spec/vcr_cassettes/orders/housework_type_glassmetalwork.yml +0 -65
- data/spec/vcr_cassettes/orders/housework_type_grounddrainagework.yml +0 -65
- data/spec/vcr_cassettes/orders/housework_type_hvac.yml +0 -65
- data/spec/vcr_cassettes/orders/housework_type_itservices.yml +0 -65
- data/spec/vcr_cassettes/orders/housework_type_majorappliancerepair.yml +0 -65
- data/spec/vcr_cassettes/orders/housework_type_masonry.yml +0 -65
- data/spec/vcr_cassettes/orders/housework_type_movingservices.yml +0 -65
- data/spec/vcr_cassettes/orders/housework_type_othercare.yml +0 -65
- data/spec/vcr_cassettes/orders/housework_type_othercosts.yml +0 -65
- data/spec/vcr_cassettes/orders/housework_type_paintingwallpapering.yml +0 -65
- data/spec/vcr_cassettes/orders/housework_type_snowplowing.yml +0 -65
- data/spec/vcr_cassettes/orders/housework_type_textileclothing.yml +0 -65
- data/spec/vcr_cassettes/orders/housework_type_tutoring.yml +0 -61
- data/spec/vcr_cassettes/orders/multi_param_find_by_hash.yml +0 -63
- data/spec/vcr_cassettes/orders/save_new.yml +0 -65
- data/spec/vcr_cassettes/orders/save_old.yml +0 -65
- data/spec/vcr_cassettes/orders/save_with_nested_model.yml +0 -65
- data/spec/vcr_cassettes/orders/search_by_name.yml +0 -63
- data/spec/vcr_cassettes/orders/search_miss.yml +0 -62
- data/spec/vcr_cassettes/orders/search_with_special_char.yml +0 -62
- data/spec/vcr_cassettes/orders/single_param_find_by_hash.yml +0 -64
- data/spec/vcr_cassettes/projects/all.yml +0 -64
- data/spec/vcr_cassettes/projects/find_by_hash_failure.yml +0 -62
- data/spec/vcr_cassettes/projects/find_failure.yml +0 -62
- data/spec/vcr_cassettes/projects/find_id_1.yml +0 -63
- data/spec/vcr_cassettes/projects/find_new.yml +0 -63
- data/spec/vcr_cassettes/projects/multi_param_find_by_hash.yml +0 -64
- data/spec/vcr_cassettes/projects/save_new.yml +0 -63
- data/spec/vcr_cassettes/projects/save_old.yml +0 -63
- data/spec/vcr_cassettes/projects/single_param_find_by_hash.yml +0 -63
- data/spec/vcr_cassettes/termsofpayments/all.yml +0 -68
- data/spec/vcr_cassettes/termsofpayments/find_failure.yml +0 -62
- data/spec/vcr_cassettes/termsofpayments/find_id_1.yml +0 -62
- data/spec/vcr_cassettes/termsofpayments/find_new.yml +0 -63
- data/spec/vcr_cassettes/termsofpayments/save_new.yml +0 -63
- data/spec/vcr_cassettes/termsofpayments/save_old.yml +0 -63
- data/spec/vcr_cassettes/units/all.yml +0 -64
- data/spec/vcr_cassettes/units/find_failure.yml +0 -62
- data/spec/vcr_cassettes/units/find_id_1.yml +0 -63
- data/spec/vcr_cassettes/units/find_new.yml +0 -63
- data/spec/vcr_cassettes/units/save_new.yml +0 -63
- data/spec/vcr_cassettes/units/save_old.yml +0 -63
- data/spec/vcr_cassettes/units/save_with_specially_named_attribute.yml +0 -63
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
http_interactions:
|
|
3
|
-
- request:
|
|
4
|
-
method: get
|
|
5
|
-
uri: https://api.fortnox.se/3/customers/
|
|
6
|
-
body:
|
|
7
|
-
encoding: US-ASCII
|
|
8
|
-
string: ''
|
|
9
|
-
headers:
|
|
10
|
-
Content-Type:
|
|
11
|
-
- application/json
|
|
12
|
-
Accept:
|
|
13
|
-
- application/json
|
|
14
|
-
Authorization:
|
|
15
|
-
- "<AUTHORIZATION>"
|
|
16
|
-
Accept-Encoding:
|
|
17
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
18
|
-
User-Agent:
|
|
19
|
-
- Ruby
|
|
20
|
-
response:
|
|
21
|
-
status:
|
|
22
|
-
code: 200
|
|
23
|
-
message: OK
|
|
24
|
-
headers:
|
|
25
|
-
Content-Length:
|
|
26
|
-
- '1497'
|
|
27
|
-
Content-Type:
|
|
28
|
-
- application/json
|
|
29
|
-
Date:
|
|
30
|
-
- Mon, 30 Jan 2023 10:36:42 GMT
|
|
31
|
-
Vary:
|
|
32
|
-
- Accept-Encoding
|
|
33
|
-
X-Build:
|
|
34
|
-
- 16d854443d
|
|
35
|
-
X-Frame-Options:
|
|
36
|
-
- sameorigin
|
|
37
|
-
X-Rack-Responsetime:
|
|
38
|
-
- '67'
|
|
39
|
-
X-Uid:
|
|
40
|
-
- bbb0d6b2
|
|
41
|
-
Server:
|
|
42
|
-
- Fortnox
|
|
43
|
-
X-Content-Type-Options:
|
|
44
|
-
- nosniff
|
|
45
|
-
X-Xss-Protection:
|
|
46
|
-
- '0'
|
|
47
|
-
Referrer-Policy:
|
|
48
|
-
- strict-origin-when-cross-origin
|
|
49
|
-
Content-Security-Policy:
|
|
50
|
-
- 'upgrade-insecure-requests;frame-ancestors https://*.fortnox.se;report-uri
|
|
51
|
-
/api/cspreport;connect-src ''self'' https://a.storyblok.com wss://*.fortnox.se
|
|
52
|
-
*.fortnox.se *.findity.com mybusiness.pwc.se themes.googleusercontent.com
|
|
53
|
-
s3.amazonaws.com/helpjuice-static/ *.helpjuice.com *.vimeo.com fonts.googleapis.com
|
|
54
|
-
fonts.gstatic.com api.cling.se wss://api.cling.se ''unsafe-inline'' ''unsafe-eval''
|
|
55
|
-
blob: data:'
|
|
56
|
-
Strict-Transport-Security:
|
|
57
|
-
- max-age=31536000; includeSubdomains
|
|
58
|
-
body:
|
|
59
|
-
encoding: ASCII-8BIT
|
|
60
|
-
string: '{"MetaInformation":{"@TotalResources":7,"@TotalPages":1,"@CurrentPage":1},"Customers":[{"@url":"https:\/\/api.fortnox.se\/3\/customers\/1","Address1":"","Address2":"","City":"New
|
|
61
|
-
York","CustomerNumber":"1","Email":"","Name":"Updated name","OrganisationNumber":"","Phone":"","ZipCode":"10001"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/2","Address1":"","Address2":"","City":"New
|
|
62
|
-
York","CustomerNumber":"2","Email":"","Name":"Test customer","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/3","Address1":"","Address2":"","City":"","CustomerNumber":"3","Email":"","Name":"Customer
|
|
63
|
-
with Swedish country code","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/4","Address1":"","Address2":"","City":"","CustomerNumber":"4","Email":"","Name":"Customer
|
|
64
|
-
with Sales Account","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/5","Address1":"","Address2":"","City":"","CustomerNumber":"5","Email":"","Name":"A
|
|
65
|
-
customer","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/6","Address1":"","Address2":"","City":"","CustomerNumber":"6","Email":"","Name":"Updated
|
|
66
|
-
name","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/7","Address1":"","Address2":"","City":"","CustomerNumber":"7","Email":"","Name":"Test
|
|
67
|
-
customer","OrganisationNumber":"","Phone":"","ZipCode":""}]}'
|
|
68
|
-
recorded_at: Mon, 30 Jan 2023 10:36:42 GMT
|
|
69
|
-
recorded_with: VCR 6.1.0
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
http_interactions:
|
|
3
|
-
- request:
|
|
4
|
-
method: get
|
|
5
|
-
uri: https://api.fortnox.se/3/customers/?city=Not%20Found
|
|
6
|
-
body:
|
|
7
|
-
encoding: US-ASCII
|
|
8
|
-
string: ''
|
|
9
|
-
headers:
|
|
10
|
-
Content-Type:
|
|
11
|
-
- application/json
|
|
12
|
-
Accept:
|
|
13
|
-
- application/json
|
|
14
|
-
Authorization:
|
|
15
|
-
- "<AUTHORIZATION>"
|
|
16
|
-
Accept-Encoding:
|
|
17
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
18
|
-
User-Agent:
|
|
19
|
-
- Ruby
|
|
20
|
-
response:
|
|
21
|
-
status:
|
|
22
|
-
code: 200
|
|
23
|
-
message: OK
|
|
24
|
-
headers:
|
|
25
|
-
Content-Length:
|
|
26
|
-
- '89'
|
|
27
|
-
Content-Type:
|
|
28
|
-
- application/json
|
|
29
|
-
Date:
|
|
30
|
-
- Mon, 30 Jan 2023 10:36:43 GMT
|
|
31
|
-
Vary:
|
|
32
|
-
- Accept-Encoding
|
|
33
|
-
X-Build:
|
|
34
|
-
- 16d854443d
|
|
35
|
-
X-Frame-Options:
|
|
36
|
-
- sameorigin
|
|
37
|
-
X-Rack-Responsetime:
|
|
38
|
-
- '71'
|
|
39
|
-
X-Uid:
|
|
40
|
-
- 1670cf54
|
|
41
|
-
Server:
|
|
42
|
-
- Fortnox
|
|
43
|
-
X-Content-Type-Options:
|
|
44
|
-
- nosniff
|
|
45
|
-
X-Xss-Protection:
|
|
46
|
-
- '0'
|
|
47
|
-
Referrer-Policy:
|
|
48
|
-
- strict-origin-when-cross-origin
|
|
49
|
-
Content-Security-Policy:
|
|
50
|
-
- 'upgrade-insecure-requests;frame-ancestors https://*.fortnox.se;report-uri
|
|
51
|
-
/api/cspreport;connect-src ''self'' https://a.storyblok.com wss://*.fortnox.se
|
|
52
|
-
*.fortnox.se *.findity.com mybusiness.pwc.se themes.googleusercontent.com
|
|
53
|
-
s3.amazonaws.com/helpjuice-static/ *.helpjuice.com *.vimeo.com fonts.googleapis.com
|
|
54
|
-
fonts.gstatic.com api.cling.se wss://api.cling.se ''unsafe-inline'' ''unsafe-eval''
|
|
55
|
-
blob: data:'
|
|
56
|
-
Strict-Transport-Security:
|
|
57
|
-
- max-age=31536000; includeSubdomains
|
|
58
|
-
body:
|
|
59
|
-
encoding: ASCII-8BIT
|
|
60
|
-
string: '{"MetaInformation":{"@TotalResources":0,"@TotalPages":0,"@CurrentPage":1},"Customers":[]}'
|
|
61
|
-
recorded_at: Mon, 30 Jan 2023 10:36:43 GMT
|
|
62
|
-
recorded_with: VCR 6.1.0
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
http_interactions:
|
|
3
|
-
- request:
|
|
4
|
-
method: get
|
|
5
|
-
uri: https://api.fortnox.se/3/customers/123456789
|
|
6
|
-
body:
|
|
7
|
-
encoding: US-ASCII
|
|
8
|
-
string: ''
|
|
9
|
-
headers:
|
|
10
|
-
Content-Type:
|
|
11
|
-
- application/json
|
|
12
|
-
Accept:
|
|
13
|
-
- application/json
|
|
14
|
-
Authorization:
|
|
15
|
-
- "<AUTHORIZATION>"
|
|
16
|
-
Accept-Encoding:
|
|
17
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
18
|
-
User-Agent:
|
|
19
|
-
- Ruby
|
|
20
|
-
response:
|
|
21
|
-
status:
|
|
22
|
-
code: 404
|
|
23
|
-
message: Not Found
|
|
24
|
-
headers:
|
|
25
|
-
Content-Length:
|
|
26
|
-
- '82'
|
|
27
|
-
Content-Type:
|
|
28
|
-
- application/json
|
|
29
|
-
Date:
|
|
30
|
-
- Mon, 30 Jan 2023 10:36:43 GMT
|
|
31
|
-
Vary:
|
|
32
|
-
- Accept-Encoding
|
|
33
|
-
X-Build:
|
|
34
|
-
- 16d854443d
|
|
35
|
-
X-Frame-Options:
|
|
36
|
-
- sameorigin
|
|
37
|
-
X-Rack-Responsetime:
|
|
38
|
-
- '74'
|
|
39
|
-
X-Uid:
|
|
40
|
-
- 5f8a7c8b
|
|
41
|
-
Server:
|
|
42
|
-
- Fortnox
|
|
43
|
-
X-Content-Type-Options:
|
|
44
|
-
- nosniff
|
|
45
|
-
X-Xss-Protection:
|
|
46
|
-
- '0'
|
|
47
|
-
Referrer-Policy:
|
|
48
|
-
- strict-origin-when-cross-origin
|
|
49
|
-
Content-Security-Policy:
|
|
50
|
-
- 'upgrade-insecure-requests;frame-ancestors https://*.fortnox.se;report-uri
|
|
51
|
-
/api/cspreport;connect-src ''self'' https://a.storyblok.com wss://*.fortnox.se
|
|
52
|
-
*.fortnox.se *.findity.com mybusiness.pwc.se themes.googleusercontent.com
|
|
53
|
-
s3.amazonaws.com/helpjuice-static/ *.helpjuice.com *.vimeo.com fonts.googleapis.com
|
|
54
|
-
fonts.gstatic.com api.cling.se wss://api.cling.se ''unsafe-inline'' ''unsafe-eval''
|
|
55
|
-
blob: data:'
|
|
56
|
-
Strict-Transport-Security:
|
|
57
|
-
- max-age=31536000; includeSubdomains
|
|
58
|
-
body:
|
|
59
|
-
encoding: ASCII-8BIT
|
|
60
|
-
string: '{"ErrorInformation":{"Error":1,"Message":"Kan inte hitta kunden.","Code":2000433}}'
|
|
61
|
-
recorded_at: Mon, 30 Jan 2023 10:36:43 GMT
|
|
62
|
-
recorded_with: VCR 6.1.0
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
http_interactions:
|
|
3
|
-
- request:
|
|
4
|
-
method: get
|
|
5
|
-
uri: https://api.fortnox.se/3/customers/1
|
|
6
|
-
body:
|
|
7
|
-
encoding: US-ASCII
|
|
8
|
-
string: ''
|
|
9
|
-
headers:
|
|
10
|
-
Content-Type:
|
|
11
|
-
- application/json
|
|
12
|
-
Accept:
|
|
13
|
-
- application/json
|
|
14
|
-
Authorization:
|
|
15
|
-
- "<AUTHORIZATION>"
|
|
16
|
-
Accept-Encoding:
|
|
17
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
18
|
-
User-Agent:
|
|
19
|
-
- Ruby
|
|
20
|
-
response:
|
|
21
|
-
status:
|
|
22
|
-
code: 200
|
|
23
|
-
message: OK
|
|
24
|
-
headers:
|
|
25
|
-
Content-Length:
|
|
26
|
-
- '1447'
|
|
27
|
-
Content-Type:
|
|
28
|
-
- application/json
|
|
29
|
-
Date:
|
|
30
|
-
- Mon, 30 Jan 2023 10:36:43 GMT
|
|
31
|
-
Vary:
|
|
32
|
-
- Accept-Encoding
|
|
33
|
-
X-Build:
|
|
34
|
-
- 16d854443d
|
|
35
|
-
X-Frame-Options:
|
|
36
|
-
- sameorigin
|
|
37
|
-
X-Rack-Responsetime:
|
|
38
|
-
- '87'
|
|
39
|
-
X-Uid:
|
|
40
|
-
- 22b46961
|
|
41
|
-
Server:
|
|
42
|
-
- Fortnox
|
|
43
|
-
X-Content-Type-Options:
|
|
44
|
-
- nosniff
|
|
45
|
-
X-Xss-Protection:
|
|
46
|
-
- '0'
|
|
47
|
-
Referrer-Policy:
|
|
48
|
-
- strict-origin-when-cross-origin
|
|
49
|
-
Content-Security-Policy:
|
|
50
|
-
- 'upgrade-insecure-requests;frame-ancestors https://*.fortnox.se;report-uri
|
|
51
|
-
/api/cspreport;connect-src ''self'' https://a.storyblok.com wss://*.fortnox.se
|
|
52
|
-
*.fortnox.se *.findity.com mybusiness.pwc.se themes.googleusercontent.com
|
|
53
|
-
s3.amazonaws.com/helpjuice-static/ *.helpjuice.com *.vimeo.com fonts.googleapis.com
|
|
54
|
-
fonts.gstatic.com api.cling.se wss://api.cling.se ''unsafe-inline'' ''unsafe-eval''
|
|
55
|
-
blob: data:'
|
|
56
|
-
Strict-Transport-Security:
|
|
57
|
-
- max-age=31536000; includeSubdomains
|
|
58
|
-
body:
|
|
59
|
-
encoding: ASCII-8BIT
|
|
60
|
-
string: '{"Customer":{"@url":"https:\/\/api.fortnox.se\/3\/customers\/1","Address1":null,"Address2":null,"City":"New
|
|
61
|
-
York","Country":null,"Comments":null,"Currency":"SEK","CostCenter":null,"CountryCode":null,"Active":true,"CustomerNumber":"1","DefaultDeliveryTypes":{"Invoice":"PRINT","Order":"PRINT","Offer":"PRINT"},"DefaultTemplates":{"Order":"DEFAULTTEMPLATE","Offer":"DEFAULTTEMPLATE","Invoice":"DEFAULTTEMPLATE","CashInvoice":"DEFAULTTEMPLATE"},"DeliveryAddress1":null,"DeliveryAddress2":null,"DeliveryCity":null,"DeliveryCountry":null,"DeliveryCountryCode":null,"DeliveryFax":null,"DeliveryName":null,"DeliveryPhone1":null,"DeliveryPhone2":null,"DeliveryZipCode":null,"Email":"","EmailInvoice":"","EmailInvoiceBCC":"","EmailInvoiceCC":"","EmailOffer":"","EmailOfferBCC":"","EmailOfferCC":"","EmailOrder":"","EmailOrderBCC":"","EmailOrderCC":"","ExternalReference":null,"Fax":null,"GLN":null,"GLNDelivery":null,"InvoiceAdministrationFee":null,"InvoiceDiscount":null,"InvoiceFreight":null,"InvoiceRemark":"","Name":"Updated
|
|
62
|
-
name","OrganisationNumber":"","OurReference":"","Phone1":null,"Phone2":null,"PriceList":"A","Project":"","SalesAccount":null,"ShowPriceVATIncluded":false,"TermsOfDelivery":"","TermsOfPayment":"","Type":"COMPANY","VATNumber":"","VATType":"SEVAT","VisitingAddress":null,"VisitingCity":null,"VisitingCountry":null,"VisitingCountryCode":null,"VisitingZipCode":null,"WayOfDelivery":"","WWW":"","YourReference":"","ZipCode":"10001"}}'
|
|
63
|
-
recorded_at: Mon, 30 Jan 2023 10:36:43 GMT
|
|
64
|
-
recorded_with: VCR 6.1.0
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
http_interactions:
|
|
3
|
-
- request:
|
|
4
|
-
method: get
|
|
5
|
-
uri: https://api.fortnox.se/3/customers/6
|
|
6
|
-
body:
|
|
7
|
-
encoding: US-ASCII
|
|
8
|
-
string: ''
|
|
9
|
-
headers:
|
|
10
|
-
Content-Type:
|
|
11
|
-
- application/json
|
|
12
|
-
Accept:
|
|
13
|
-
- application/json
|
|
14
|
-
Authorization:
|
|
15
|
-
- "<AUTHORIZATION>"
|
|
16
|
-
Accept-Encoding:
|
|
17
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
18
|
-
User-Agent:
|
|
19
|
-
- Ruby
|
|
20
|
-
response:
|
|
21
|
-
status:
|
|
22
|
-
code: 200
|
|
23
|
-
message: OK
|
|
24
|
-
headers:
|
|
25
|
-
Content-Length:
|
|
26
|
-
- '1433'
|
|
27
|
-
Content-Type:
|
|
28
|
-
- application/json
|
|
29
|
-
Date:
|
|
30
|
-
- Mon, 30 Jan 2023 10:36:42 GMT
|
|
31
|
-
Vary:
|
|
32
|
-
- Accept-Encoding
|
|
33
|
-
X-Build:
|
|
34
|
-
- 16d854443d
|
|
35
|
-
X-Frame-Options:
|
|
36
|
-
- sameorigin
|
|
37
|
-
X-Rack-Responsetime:
|
|
38
|
-
- '88'
|
|
39
|
-
X-Uid:
|
|
40
|
-
- cafac314
|
|
41
|
-
Server:
|
|
42
|
-
- Fortnox
|
|
43
|
-
X-Content-Type-Options:
|
|
44
|
-
- nosniff
|
|
45
|
-
X-Xss-Protection:
|
|
46
|
-
- '0'
|
|
47
|
-
Referrer-Policy:
|
|
48
|
-
- strict-origin-when-cross-origin
|
|
49
|
-
Content-Security-Policy:
|
|
50
|
-
- 'upgrade-insecure-requests;frame-ancestors https://*.fortnox.se;report-uri
|
|
51
|
-
/api/cspreport;connect-src ''self'' https://a.storyblok.com wss://*.fortnox.se
|
|
52
|
-
*.fortnox.se *.findity.com mybusiness.pwc.se themes.googleusercontent.com
|
|
53
|
-
s3.amazonaws.com/helpjuice-static/ *.helpjuice.com *.vimeo.com fonts.googleapis.com
|
|
54
|
-
fonts.gstatic.com api.cling.se wss://api.cling.se ''unsafe-inline'' ''unsafe-eval''
|
|
55
|
-
blob: data:'
|
|
56
|
-
Strict-Transport-Security:
|
|
57
|
-
- max-age=31536000; includeSubdomains
|
|
58
|
-
body:
|
|
59
|
-
encoding: ASCII-8BIT
|
|
60
|
-
string: '{"Customer":{"@url":"https:\/\/api.fortnox.se\/3\/customers\/6","Address1":null,"Address2":null,"City":null,"Country":null,"Comments":null,"Currency":"SEK","CostCenter":null,"CountryCode":null,"Active":true,"CustomerNumber":"6","DefaultDeliveryTypes":{"Invoice":"PRINT","Order":"PRINT","Offer":"PRINT"},"DefaultTemplates":{"Order":"DEFAULTTEMPLATE","Offer":"DEFAULTTEMPLATE","Invoice":"DEFAULTTEMPLATE","CashInvoice":"DEFAULTTEMPLATE"},"DeliveryAddress1":null,"DeliveryAddress2":null,"DeliveryCity":null,"DeliveryCountry":null,"DeliveryCountryCode":null,"DeliveryFax":null,"DeliveryName":null,"DeliveryPhone1":null,"DeliveryPhone2":null,"DeliveryZipCode":null,"Email":"","EmailInvoice":"","EmailInvoiceBCC":"","EmailInvoiceCC":"","EmailOffer":"","EmailOfferBCC":"","EmailOfferCC":"","EmailOrder":"","EmailOrderBCC":"","EmailOrderCC":"","ExternalReference":null,"Fax":null,"GLN":null,"GLNDelivery":null,"InvoiceAdministrationFee":null,"InvoiceDiscount":null,"InvoiceFreight":null,"InvoiceRemark":"","Name":"A
|
|
61
|
-
value","OrganisationNumber":"","OurReference":"","Phone1":null,"Phone2":null,"PriceList":"A","Project":"","SalesAccount":null,"ShowPriceVATIncluded":false,"TermsOfDelivery":"","TermsOfPayment":"","Type":"COMPANY","VATNumber":"","VATType":"SEVAT","VisitingAddress":null,"VisitingCity":null,"VisitingCountry":null,"VisitingCountryCode":null,"VisitingZipCode":null,"WayOfDelivery":"","WWW":"","YourReference":"","ZipCode":null}}'
|
|
62
|
-
recorded_at: Mon, 30 Jan 2023 10:36:42 GMT
|
|
63
|
-
recorded_with: VCR 6.1.0
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
http_interactions:
|
|
3
|
-
- request:
|
|
4
|
-
method: get
|
|
5
|
-
uri: https://api.fortnox.se/3/customers/9
|
|
6
|
-
body:
|
|
7
|
-
encoding: US-ASCII
|
|
8
|
-
string: ''
|
|
9
|
-
headers:
|
|
10
|
-
Content-Type:
|
|
11
|
-
- application/json
|
|
12
|
-
Accept:
|
|
13
|
-
- application/json
|
|
14
|
-
Authorization:
|
|
15
|
-
- "<AUTHORIZATION>"
|
|
16
|
-
Accept-Encoding:
|
|
17
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
18
|
-
User-Agent:
|
|
19
|
-
- Ruby
|
|
20
|
-
response:
|
|
21
|
-
status:
|
|
22
|
-
code: 200
|
|
23
|
-
message: OK
|
|
24
|
-
headers:
|
|
25
|
-
Content-Length:
|
|
26
|
-
- '1455'
|
|
27
|
-
Content-Type:
|
|
28
|
-
- application/json
|
|
29
|
-
Date:
|
|
30
|
-
- Mon, 30 Jan 2023 10:36:44 GMT
|
|
31
|
-
Vary:
|
|
32
|
-
- Accept-Encoding
|
|
33
|
-
X-Build:
|
|
34
|
-
- 16d854443d
|
|
35
|
-
X-Frame-Options:
|
|
36
|
-
- sameorigin
|
|
37
|
-
X-Rack-Responsetime:
|
|
38
|
-
- '78'
|
|
39
|
-
X-Uid:
|
|
40
|
-
- 7be30a3c
|
|
41
|
-
Server:
|
|
42
|
-
- Fortnox
|
|
43
|
-
X-Content-Type-Options:
|
|
44
|
-
- nosniff
|
|
45
|
-
X-Xss-Protection:
|
|
46
|
-
- '0'
|
|
47
|
-
Referrer-Policy:
|
|
48
|
-
- strict-origin-when-cross-origin
|
|
49
|
-
Content-Security-Policy:
|
|
50
|
-
- 'upgrade-insecure-requests;frame-ancestors https://*.fortnox.se;report-uri
|
|
51
|
-
/api/cspreport;connect-src ''self'' https://a.storyblok.com wss://*.fortnox.se
|
|
52
|
-
*.fortnox.se *.findity.com mybusiness.pwc.se themes.googleusercontent.com
|
|
53
|
-
s3.amazonaws.com/helpjuice-static/ *.helpjuice.com *.vimeo.com fonts.googleapis.com
|
|
54
|
-
fonts.gstatic.com api.cling.se wss://api.cling.se ''unsafe-inline'' ''unsafe-eval''
|
|
55
|
-
blob: data:'
|
|
56
|
-
Strict-Transport-Security:
|
|
57
|
-
- max-age=31536000; includeSubdomains
|
|
58
|
-
body:
|
|
59
|
-
encoding: ASCII-8BIT
|
|
60
|
-
string: '{"Customer":{"@url":"https:\/\/api.fortnox.se\/3\/customers\/9","Address1":null,"Address2":null,"City":null,"Country":null,"Comments":null,"Currency":"SEK","CostCenter":null,"CountryCode":null,"Active":true,"CustomerNumber":"9","DefaultDeliveryTypes":{"Invoice":"PRINT","Order":"PRINT","Offer":"PRINT"},"DefaultTemplates":{"Order":"DEFAULTTEMPLATE","Offer":"DEFAULTTEMPLATE","Invoice":"DEFAULTTEMPLATE","CashInvoice":"DEFAULTTEMPLATE"},"DeliveryAddress1":null,"DeliveryAddress2":null,"DeliveryCity":null,"DeliveryCountry":null,"DeliveryCountryCode":null,"DeliveryFax":null,"DeliveryName":null,"DeliveryPhone1":null,"DeliveryPhone2":null,"DeliveryZipCode":null,"Email":"","EmailInvoice":"","EmailInvoiceBCC":"","EmailInvoiceCC":"","EmailOffer":"","EmailOfferBCC":"","EmailOfferCC":"","EmailOrder":"","EmailOrderBCC":"","EmailOrderCC":"","ExternalReference":null,"Fax":null,"GLN":null,"GLNDelivery":null,"InvoiceAdministrationFee":null,"InvoiceDiscount":null,"InvoiceFreight":null,"InvoiceRemark":"","Name":"Customer
|
|
61
|
-
with Sales Account","OrganisationNumber":"","OurReference":"","Phone1":null,"Phone2":null,"PriceList":"A","Project":"","SalesAccount":"3001","ShowPriceVATIncluded":false,"TermsOfDelivery":"","TermsOfPayment":"","Type":"COMPANY","VATNumber":"","VATType":"SEVAT","VisitingAddress":null,"VisitingCity":null,"VisitingCountry":null,"VisitingCountryCode":null,"VisitingZipCode":null,"WayOfDelivery":"","WWW":"","YourReference":"","ZipCode":null}}'
|
|
62
|
-
recorded_at: Mon, 30 Jan 2023 10:36:44 GMT
|
|
63
|
-
recorded_with: VCR 6.1.0
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
http_interactions:
|
|
3
|
-
- request:
|
|
4
|
-
method: get
|
|
5
|
-
uri: https://api.fortnox.se/3/customers/?city=New%20York&zipcode=10001
|
|
6
|
-
body:
|
|
7
|
-
encoding: US-ASCII
|
|
8
|
-
string: ''
|
|
9
|
-
headers:
|
|
10
|
-
Content-Type:
|
|
11
|
-
- application/json
|
|
12
|
-
Accept:
|
|
13
|
-
- application/json
|
|
14
|
-
Authorization:
|
|
15
|
-
- "<AUTHORIZATION>"
|
|
16
|
-
Accept-Encoding:
|
|
17
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
18
|
-
User-Agent:
|
|
19
|
-
- Ruby
|
|
20
|
-
response:
|
|
21
|
-
status:
|
|
22
|
-
code: 200
|
|
23
|
-
message: OK
|
|
24
|
-
headers:
|
|
25
|
-
Content-Length:
|
|
26
|
-
- '294'
|
|
27
|
-
Content-Type:
|
|
28
|
-
- application/json
|
|
29
|
-
Date:
|
|
30
|
-
- Mon, 30 Jan 2023 10:36:43 GMT
|
|
31
|
-
Vary:
|
|
32
|
-
- Accept-Encoding
|
|
33
|
-
X-Build:
|
|
34
|
-
- 16d854443d
|
|
35
|
-
X-Frame-Options:
|
|
36
|
-
- sameorigin
|
|
37
|
-
X-Rack-Responsetime:
|
|
38
|
-
- '78'
|
|
39
|
-
X-Uid:
|
|
40
|
-
- 881a79a9
|
|
41
|
-
Server:
|
|
42
|
-
- Fortnox
|
|
43
|
-
X-Content-Type-Options:
|
|
44
|
-
- nosniff
|
|
45
|
-
X-Xss-Protection:
|
|
46
|
-
- '0'
|
|
47
|
-
Referrer-Policy:
|
|
48
|
-
- strict-origin-when-cross-origin
|
|
49
|
-
Content-Security-Policy:
|
|
50
|
-
- 'upgrade-insecure-requests;frame-ancestors https://*.fortnox.se;report-uri
|
|
51
|
-
/api/cspreport;connect-src ''self'' https://a.storyblok.com wss://*.fortnox.se
|
|
52
|
-
*.fortnox.se *.findity.com mybusiness.pwc.se themes.googleusercontent.com
|
|
53
|
-
s3.amazonaws.com/helpjuice-static/ *.helpjuice.com *.vimeo.com fonts.googleapis.com
|
|
54
|
-
fonts.gstatic.com api.cling.se wss://api.cling.se ''unsafe-inline'' ''unsafe-eval''
|
|
55
|
-
blob: data:'
|
|
56
|
-
Strict-Transport-Security:
|
|
57
|
-
- max-age=31536000; includeSubdomains
|
|
58
|
-
body:
|
|
59
|
-
encoding: ASCII-8BIT
|
|
60
|
-
string: '{"MetaInformation":{"@TotalResources":1,"@TotalPages":1,"@CurrentPage":1},"Customers":[{"@url":"https:\/\/api.fortnox.se\/3\/customers\/1","Address1":"","Address2":"","City":"New
|
|
61
|
-
York","CustomerNumber":"1","Email":"","Name":"Updated name","OrganisationNumber":"","Phone":"","ZipCode":"10001"}]}'
|
|
62
|
-
recorded_at: Mon, 30 Jan 2023 10:36:43 GMT
|
|
63
|
-
recorded_with: VCR 6.1.0
|
|
@@ -1,63 +0,0 @@
|
|
|
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":"A value"}}'
|
|
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
|
-
- '1433'
|
|
27
|
-
Content-Type:
|
|
28
|
-
- application/json
|
|
29
|
-
Date:
|
|
30
|
-
- Mon, 30 Jan 2023 10:36:42 GMT
|
|
31
|
-
Location:
|
|
32
|
-
- customers
|
|
33
|
-
X-Build:
|
|
34
|
-
- 16d854443d
|
|
35
|
-
X-Frame-Options:
|
|
36
|
-
- sameorigin
|
|
37
|
-
X-Rack-Responsetime:
|
|
38
|
-
- '146'
|
|
39
|
-
X-Uid:
|
|
40
|
-
- 685856e1
|
|
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\/6","Address1":null,"Address2":null,"City":null,"Country":null,"Comments":null,"Currency":"SEK","CostCenter":null,"CountryCode":null,"Active":true,"CustomerNumber":"6","DefaultDeliveryTypes":{"Invoice":"PRINT","Order":"PRINT","Offer":"PRINT"},"DefaultTemplates":{"Order":"DEFAULTTEMPLATE","Offer":"DEFAULTTEMPLATE","Invoice":"DEFAULTTEMPLATE","CashInvoice":"DEFAULTTEMPLATE"},"DeliveryAddress1":null,"DeliveryAddress2":null,"DeliveryCity":null,"DeliveryCountry":null,"DeliveryCountryCode":null,"DeliveryFax":null,"DeliveryName":null,"DeliveryPhone1":null,"DeliveryPhone2":null,"DeliveryZipCode":null,"Email":"","EmailInvoice":"","EmailInvoiceBCC":"","EmailInvoiceCC":"","EmailOffer":"","EmailOfferBCC":"","EmailOfferCC":"","EmailOrder":"","EmailOrderBCC":"","EmailOrderCC":"","ExternalReference":null,"Fax":null,"GLN":null,"GLNDelivery":null,"InvoiceAdministrationFee":null,"InvoiceDiscount":null,"InvoiceFreight":null,"InvoiceRemark":"","Name":"A
|
|
61
|
-
value","OrganisationNumber":"","OurReference":"","Phone1":null,"Phone2":null,"PriceList":"A","Project":"","SalesAccount":null,"ShowPriceVATIncluded":false,"TermsOfDelivery":"","TermsOfPayment":"","Type":"COMPANY","VATNumber":"","VATType":"SEVAT","VisitingAddress":null,"VisitingCity":null,"VisitingCountry":null,"VisitingCountryCode":null,"VisitingZipCode":null,"WayOfDelivery":"","WWW":"","YourReference":"","ZipCode":null}}'
|
|
62
|
-
recorded_at: Mon, 30 Jan 2023 10:36:42 GMT
|
|
63
|
-
recorded_with: VCR 6.1.0
|
|
@@ -1,64 +0,0 @@
|
|
|
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":{"CountryCode":"SE","Name":"Customer with Swedish country
|
|
9
|
-
code"}}'
|
|
10
|
-
headers:
|
|
11
|
-
Content-Type:
|
|
12
|
-
- application/json
|
|
13
|
-
Accept:
|
|
14
|
-
- application/json
|
|
15
|
-
Authorization:
|
|
16
|
-
- "<AUTHORIZATION>"
|
|
17
|
-
Accept-Encoding:
|
|
18
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
19
|
-
User-Agent:
|
|
20
|
-
- Ruby
|
|
21
|
-
response:
|
|
22
|
-
status:
|
|
23
|
-
code: 201
|
|
24
|
-
message: Created
|
|
25
|
-
headers:
|
|
26
|
-
Content-Length:
|
|
27
|
-
- '1465'
|
|
28
|
-
Content-Type:
|
|
29
|
-
- application/json
|
|
30
|
-
Date:
|
|
31
|
-
- Mon, 30 Jan 2023 10:36:44 GMT
|
|
32
|
-
Location:
|
|
33
|
-
- customers
|
|
34
|
-
X-Build:
|
|
35
|
-
- 16d854443d
|
|
36
|
-
X-Frame-Options:
|
|
37
|
-
- sameorigin
|
|
38
|
-
X-Rack-Responsetime:
|
|
39
|
-
- '168'
|
|
40
|
-
X-Uid:
|
|
41
|
-
- bd757879
|
|
42
|
-
Server:
|
|
43
|
-
- Fortnox
|
|
44
|
-
X-Content-Type-Options:
|
|
45
|
-
- nosniff
|
|
46
|
-
X-Xss-Protection:
|
|
47
|
-
- '0'
|
|
48
|
-
Referrer-Policy:
|
|
49
|
-
- strict-origin-when-cross-origin
|
|
50
|
-
Content-Security-Policy:
|
|
51
|
-
- 'upgrade-insecure-requests;frame-ancestors https://*.fortnox.se;report-uri
|
|
52
|
-
/api/cspreport;connect-src ''self'' https://a.storyblok.com wss://*.fortnox.se
|
|
53
|
-
*.fortnox.se *.findity.com mybusiness.pwc.se themes.googleusercontent.com
|
|
54
|
-
s3.amazonaws.com/helpjuice-static/ *.helpjuice.com *.vimeo.com fonts.googleapis.com
|
|
55
|
-
fonts.gstatic.com api.cling.se wss://api.cling.se ''unsafe-inline'' ''unsafe-eval''
|
|
56
|
-
blob: data:'
|
|
57
|
-
Strict-Transport-Security:
|
|
58
|
-
- max-age=31536000; includeSubdomains
|
|
59
|
-
body:
|
|
60
|
-
encoding: UTF-8
|
|
61
|
-
string: '{"Customer":{"@url":"https:\/\/api.fortnox.se\/3\/customers\/8","Address1":null,"Address2":null,"City":null,"Country":"Sverige","Comments":null,"Currency":"SEK","CostCenter":null,"CountryCode":"SE","Active":true,"CustomerNumber":"8","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
|
|
62
|
-
with Swedish country code","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}}'
|
|
63
|
-
recorded_at: Mon, 30 Jan 2023 10:36:44 GMT
|
|
64
|
-
recorded_with: VCR 6.1.0
|
|
@@ -1,67 +0,0 @@
|
|
|
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":{"Email":"user@teståäö.se","Name":"Customer with IDN email"}}'
|
|
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
|
-
- '1479'
|
|
27
|
-
Content-Type:
|
|
28
|
-
- application/json
|
|
29
|
-
Date:
|
|
30
|
-
- Thu, 22 Jan 2026 21:10:13 GMT
|
|
31
|
-
Location:
|
|
32
|
-
- customers
|
|
33
|
-
X-Build:
|
|
34
|
-
- 0a146b2789
|
|
35
|
-
X-Frame-Options:
|
|
36
|
-
- sameorigin
|
|
37
|
-
X-Krakend:
|
|
38
|
-
- Version 2.9.4
|
|
39
|
-
X-Krakend-Completed:
|
|
40
|
-
- 'false'
|
|
41
|
-
X-Rack-Responsetime:
|
|
42
|
-
- '227'
|
|
43
|
-
X-Uid:
|
|
44
|
-
- 5e6d835b
|
|
45
|
-
Server:
|
|
46
|
-
- Fortnox
|
|
47
|
-
X-Content-Type-Options:
|
|
48
|
-
- nosniff
|
|
49
|
-
X-Xss-Protection:
|
|
50
|
-
- '0'
|
|
51
|
-
Referrer-Policy:
|
|
52
|
-
- strict-origin-when-cross-origin
|
|
53
|
-
Content-Security-Policy:
|
|
54
|
-
- 'upgrade-insecure-requests;frame-ancestors https://*.fortnox.se;report-uri
|
|
55
|
-
/api/cspreport;connect-src ''self'' https://a.storyblok.com wss://*.fortnox.se
|
|
56
|
-
*.fortnox.se *.findity.com *.ingest.de.sentry.io mybusiness.pwc.se themes.googleusercontent.com
|
|
57
|
-
s3.amazonaws.com/helpjuice-static/ *.helpjuice.com *.vimeo.com fonts.googleapis.com
|
|
58
|
-
fonts.gstatic.com fortnox.piwik.pro api.cling.se wss://api.cling.se app.boardeaser.com
|
|
59
|
-
''unsafe-inline'' ''unsafe-eval'' blob: data:'
|
|
60
|
-
Strict-Transport-Security:
|
|
61
|
-
- max-age=31536000; includeSubdomains
|
|
62
|
-
body:
|
|
63
|
-
encoding: UTF-8
|
|
64
|
-
string: '{"Customer":{"@url":"https:\/\/api.fortnox.se\/3\/customers\/2","Address1":null,"Address2":null,"City":null,"Country":null,"Comments":null,"Currency":"SEK","CostCenter":null,"CountryCode":null,"Active":true,"CustomerNumber":"2","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":"user@test\u00e5\u00e4\u00f6.se","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
|
|
65
|
-
with IDN email","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}}'
|
|
66
|
-
recorded_at: Thu, 22 Jan 2026 21:10:13 GMT
|
|
67
|
-
recorded_with: VCR 6.2.0
|