ledger_sync 1.3.2 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +13 -2
- data/.rubocop.yml +14 -1
- data/.rubocop_todo.yml +0 -3
- data/.travis.yml +7 -2
- data/Dockerfile +2 -2
- data/Gemfile.lock +61 -55
- data/LICENSE.txt +5 -21
- data/README.md +9 -393
- data/bin/quickbooks_online_oauth_server.rb +102 -0
- data/docs/CNAME +1 -0
- data/docs/assets/css/brands.min.css +5 -0
- data/docs/assets/css/fontawesome.min.css +5 -0
- data/docs/assets/css/main.css +1924 -0
- data/docs/assets/css/monokai.css +441 -0
- data/docs/assets/js/main.js +214 -0
- data/docs/assets/js/plugins.js +22 -0
- data/docs/assets/js/prism.js +9 -0
- data/docs/assets/webfonts/fa-brands-400.eot +0 -0
- data/docs/assets/webfonts/fa-brands-400.svg +3452 -0
- data/docs/assets/webfonts/fa-brands-400.ttf +0 -0
- data/docs/assets/webfonts/fa-brands-400.woff +0 -0
- data/docs/assets/webfonts/fa-brands-400.woff2 +0 -0
- data/docs/blog/index.html +282 -0
- data/docs/guides/architecture/clients/index.html +458 -0
- data/docs/guides/architecture/index.html +435 -0
- data/docs/guides/architecture/operations/index.html +465 -0
- data/docs/guides/architecture/resources/index.html +461 -0
- data/docs/guides/architecture/results/index.html +426 -0
- data/docs/guides/architecture/searchers/index.html +446 -0
- data/docs/guides/architecture/serialization/index.html +476 -0
- data/docs/guides/community/index.html +412 -0
- data/docs/guides/contribute/console/index.html +424 -0
- data/docs/guides/contribute/deployment/index.html +434 -0
- data/docs/guides/contribute/documentation/index.html +450 -0
- data/docs/guides/contribute/index.html +434 -0
- data/docs/guides/contribute/qa/index.html +436 -0
- data/docs/guides/contribute/testing/index.html +424 -0
- data/docs/guides/customization/custom_resources/index.html +461 -0
- data/docs/guides/customization/custom_serializers/index.html +460 -0
- data/docs/guides/customization/index.html +431 -0
- data/docs/guides/customization/resource_converters/index.html +491 -0
- data/docs/guides/getting-started/get-help/index.html +427 -0
- data/docs/guides/getting-started/index.html +421 -0
- data/docs/guides/getting-started/installation/index.html +433 -0
- data/docs/guides/getting-started/quick-start/index.html +531 -0
- data/docs/guides/index.html +428 -0
- data/docs/guides/ledgers/index.html +429 -0
- data/docs/guides/ledgers/netsuite/index.html +424 -0
- data/docs/guides/ledgers/netsuite_soap/index.html +424 -0
- data/docs/guides/ledgers/quickbooks_online/index.html +424 -0
- data/docs/guides/ledgers/stripe/index.html +424 -0
- data/docs/guides/modern-treasury/index.html +411 -0
- data/docs/guides/tips_and_more/index.html +471 -0
- data/docs/images/1.jpg +0 -0
- data/docs/images/10.jpg +0 -0
- data/docs/images/2.jpg +0 -0
- data/docs/images/3.jpg +0 -0
- data/docs/images/4.jpg +0 -0
- data/docs/images/5.jpg +0 -0
- data/docs/images/6.jpg +0 -0
- data/docs/images/7.jpg +0 -0
- data/docs/images/8.jpg +0 -0
- data/docs/images/9.jpg +0 -0
- data/docs/images/logo.svg +8 -0
- data/docs/index.html +379 -0
- data/docs/overview/index.html +409 -0
- data/docs/posts/introducing-docs/index.html +270 -0
- data/docs/posts/netsuite-authentication/index.html +624 -0
- data/docs/reference/architecture/clients/index.html +332 -0
- data/docs/reference/architecture/index.html +311 -0
- data/docs/reference/architecture/operations/index.html +302 -0
- data/docs/reference/architecture/resources/index.html +335 -0
- data/docs/reference/architecture/results/index.html +302 -0
- data/docs/reference/architecture/searchers/index.html +302 -0
- data/docs/reference/architecture/serialization/index.html +302 -0
- data/docs/reference/index.html +281 -0
- data/docs/reference/netsuite/authentication/index.html +392 -0
- data/docs/reference/netsuite/authentication/token_based_authentication/index.html +486 -0
- data/docs/reference/netsuite/index.html +388 -0
- data/docs/reference/netsuite/resources/account/index.html +484 -0
- data/docs/reference/netsuite/resources/check/index.html +492 -0
- data/docs/reference/netsuite/resources/check_line_item/index.html +460 -0
- data/docs/reference/netsuite/resources/currency/index.html +476 -0
- data/docs/reference/netsuite/resources/customer/index.html +488 -0
- data/docs/reference/netsuite/resources/customer_deposit/index.html +480 -0
- data/docs/reference/netsuite/resources/department/index.html +484 -0
- data/docs/reference/netsuite/resources/deposit/index.html +468 -0
- data/docs/reference/netsuite/resources/deposit_line_item/index.html +460 -0
- data/docs/reference/netsuite/resources/index.html +436 -0
- data/docs/reference/netsuite/resources/invoice/index.html +468 -0
- data/docs/reference/netsuite/resources/invoice_line_item/index.html +456 -0
- data/docs/reference/netsuite/resources/item/index.html +444 -0
- data/docs/reference/netsuite/resources/journal_entry/index.html +488 -0
- data/docs/reference/netsuite/resources/journal_entry_line_item/index.html +464 -0
- data/docs/reference/netsuite/resources/ledger_class/index.html +484 -0
- data/docs/reference/netsuite/resources/location/index.html +468 -0
- data/docs/reference/netsuite/resources/resource/index.html +440 -0
- data/docs/reference/netsuite/resources/subsidiary/index.html +448 -0
- data/docs/reference/netsuite/resources/vendor/index.html +492 -0
- data/docs/reference/netsuite_soap/index.html +303 -0
- data/docs/reference/netsuite_soap/resources/customer/index.html +364 -0
- data/docs/reference/netsuite_soap/resources/index.html +316 -0
- data/docs/reference/netsuite_soap/resources/resource/index.html +336 -0
- data/docs/reference/netsuite_soap/resources/subsidiary/index.html +356 -0
- data/docs/reference/quickbooks_online/authentication/index.html +442 -0
- data/docs/reference/quickbooks_online/errors/index.html +395 -0
- data/docs/reference/quickbooks_online/index.html +393 -0
- data/docs/reference/quickbooks_online/resources/account/index.html +530 -0
- data/docs/reference/quickbooks_online/resources/bill/index.html +534 -0
- data/docs/reference/quickbooks_online/resources/bill_line_item/index.html +496 -0
- data/docs/reference/quickbooks_online/resources/bill_payment/index.html +550 -0
- data/docs/reference/quickbooks_online/resources/bill_payment_line_item/index.html +488 -0
- data/docs/reference/quickbooks_online/resources/currency/index.html +492 -0
- data/docs/reference/quickbooks_online/resources/customer/index.html +514 -0
- data/docs/reference/quickbooks_online/resources/department/index.html +518 -0
- data/docs/reference/quickbooks_online/resources/deposit/index.html +526 -0
- data/docs/reference/quickbooks_online/resources/deposit_line_item/index.html +500 -0
- data/docs/reference/quickbooks_online/resources/expense/index.html +538 -0
- data/docs/reference/quickbooks_online/resources/expense_line_item/index.html +496 -0
- data/docs/reference/quickbooks_online/resources/index.html +484 -0
- data/docs/reference/quickbooks_online/resources/invoice/index.html +526 -0
- data/docs/reference/quickbooks_online/resources/invoice_sales_line_item/index.html +496 -0
- data/docs/reference/quickbooks_online/resources/item/index.html +484 -0
- data/docs/reference/quickbooks_online/resources/journal_entry/index.html +518 -0
- data/docs/reference/quickbooks_online/resources/journal_entry_line_item/index.html +504 -0
- data/docs/reference/quickbooks_online/resources/ledger_class/index.html +518 -0
- data/docs/reference/quickbooks_online/resources/payment/index.html +538 -0
- data/docs/reference/quickbooks_online/resources/payment_line_item/index.html +488 -0
- data/docs/reference/quickbooks_online/resources/preferences/index.html +526 -0
- data/docs/reference/quickbooks_online/resources/primary_email_addr/index.html +484 -0
- data/docs/reference/quickbooks_online/resources/primary_phone/index.html +484 -0
- data/docs/reference/quickbooks_online/resources/resource/index.html +480 -0
- data/docs/reference/quickbooks_online/resources/subsidiary/index.html +488 -0
- data/docs/reference/quickbooks_online/resources/transfer/index.html +522 -0
- data/docs/reference/quickbooks_online/resources/vendor/index.html +526 -0
- data/docs/reference/quickbooks_online/webhooks/index.html +427 -0
- data/docs/reference/stripe/index.html +293 -0
- data/docs/reference/stripe/resources/customer/index.html +366 -0
- data/docs/reference/stripe/resources/index.html +309 -0
- data/docs/reference/stripe/resources/resource/index.html +330 -0
- data/docs/style-guide/index.html +375 -0
- data/documentation/build.sh +8 -0
- data/documentation/generate.rb +32 -0
- data/documentation/generators/generator.rb +80 -0
- data/documentation/generators/guides/generator.rb +36 -0
- data/documentation/generators/reference/generator.rb +76 -0
- data/documentation/generators/reference/ledger/generator.rb +74 -0
- data/documentation/generators/template.rb +22 -0
- data/documentation/helper_methods.rb +17 -0
- data/documentation/site/CNAME +1 -0
- data/documentation/site/Gemfile +11 -0
- data/documentation/site/Gemfile.lock +69 -0
- data/documentation/site/LICENSE.md +40 -0
- data/documentation/site/README.md +8 -0
- data/documentation/site/_config.yml +119 -0
- data/documentation/site/_data/guides_sections.yml +10 -0
- data/documentation/site/_data/reference_sections.yml +5 -0
- data/documentation/site/_includes/action_link.html +11 -0
- data/documentation/site/_includes/alerts/base.html +3 -0
- data/documentation/site/_includes/alerts/danger.html +1 -0
- data/documentation/site/_includes/alerts/info.html +1 -0
- data/documentation/site/_includes/alerts/success.html +1 -0
- data/documentation/site/_includes/alerts/warning.html +1 -0
- data/documentation/site/_includes/cta_buttons.html +4 -0
- data/documentation/site/_includes/example.md +8 -0
- data/documentation/site/_includes/footer.html +20 -0
- data/documentation/site/_includes/getting_help.md +8 -0
- data/documentation/site/_includes/guides_menu.html +29 -0
- data/documentation/site/_includes/guides_submenu.html +7 -0
- data/documentation/site/_includes/header.html +35 -0
- data/documentation/site/_includes/installation_instructions.md +17 -0
- data/documentation/site/_includes/ledgers/Stripe_summary.md +1 -0
- data/documentation/site/_includes/ledgers/netsuite_soap_summary.md +1 -0
- data/documentation/site/_includes/ledgers/netsuite_summary.md +1 -0
- data/documentation/site/_includes/ledgers/netsuite_summary_shared.md +1 -0
- data/documentation/site/_includes/ledgers/quickbooks_online_summary.md +1 -0
- data/documentation/site/_includes/reference/netsuite/authentication/_token_based_authentication.md +99 -0
- data/documentation/site/_includes/reference/netsuite/authentication/index.md +15 -0
- data/documentation/site/_includes/reference/netsuite/authentication/token_based_authentication.md +6 -0
- data/documentation/site/_includes/reference/netsuite/index.md +25 -0
- data/documentation/site/_includes/reference/netsuite_soap/index.md +11 -0
- data/documentation/site/_includes/reference/quickbooks_online/authentication/index.md +55 -0
- data/documentation/site/_includes/reference/quickbooks_online/errors/index.md +9 -0
- data/documentation/site/_includes/reference/quickbooks_online/index.md +6 -0
- data/documentation/site/_includes/reference/quickbooks_online/webhooks/index.md +42 -0
- data/documentation/site/_includes/reference/stripe/index.md +6 -0
- data/documentation/site/_includes/section_content.html +34 -0
- data/documentation/site/_includes/section_cta.html +28 -0
- data/documentation/site/_includes/section_grid.html +60 -0
- data/documentation/site/_includes/section_guides.html +35 -0
- data/documentation/site/_includes/section_hero.html +28 -0
- data/documentation/site/_includes/submenu.html +8 -0
- data/documentation/site/_layouts/advanced.html +9 -0
- data/documentation/site/_layouts/base.html +34 -0
- data/documentation/site/_layouts/blog.html +51 -0
- data/documentation/site/_layouts/body.html +11 -0
- data/documentation/site/_layouts/guides.html +46 -0
- data/documentation/site/_layouts/page.html +26 -0
- data/documentation/site/_layouts/post.html +52 -0
- data/documentation/site/_layouts/reference.html +46 -0
- data/documentation/site/_layouts/reference_netsuite.html +46 -0
- data/documentation/site/_layouts/reference_netsuite_soap.html +46 -0
- data/documentation/site/_layouts/reference_quickbooks_online.html +46 -0
- data/documentation/site/_layouts/reference_stripe.html +46 -0
- data/documentation/site/_plugins/filters.rb +122 -0
- data/documentation/site/_plugins/hooks.rb +9 -0
- data/documentation/site/_posts/2020-06-01-introducing-docs.md +17 -0
- data/documentation/site/_posts/2020-06-10-netsuite-authentication.md +382 -0
- data/documentation/site/_sass/imports/_animations.scss +19 -0
- data/documentation/site/_sass/imports/_footer.scss +94 -0
- data/documentation/site/_sass/imports/_functions.scss +69 -0
- data/documentation/site/_sass/imports/_general.scss +687 -0
- data/documentation/site/_sass/imports/_guides.scss +300 -0
- data/documentation/site/_sass/imports/_header.scss +358 -0
- data/documentation/site/_sass/imports/_icons.scss +90 -0
- data/documentation/site/_sass/imports/_post-navigation.scss +67 -0
- data/documentation/site/_sass/imports/_posts-pages.scss +165 -0
- data/documentation/site/_sass/imports/_prism.scss +174 -0
- data/documentation/site/_sass/imports/_reset.scss +210 -0
- data/documentation/site/_sass/imports/_sections.scss +370 -0
- data/documentation/site/_sass/imports/_structure.scss +44 -0
- data/documentation/site/_templates/_layouts/reference_ledger.html.erb +46 -0
- data/documentation/site/_templates/guides/ledger.md.erb +9 -0
- data/documentation/site/_templates/reference/resources/index.md.erb +9 -0
- data/documentation/site/_templates/reference/resources/resource.md.erb +27 -0
- data/documentation/site/assets/css/brands.min.css +5 -0
- data/documentation/site/assets/css/fontawesome.min.css +5 -0
- data/documentation/site/assets/css/main.scss +45 -0
- data/documentation/site/assets/css/monokai.css +441 -0
- data/documentation/site/assets/js/main.js +214 -0
- data/documentation/site/assets/js/plugins.js +22 -0
- data/documentation/site/assets/js/prism.js +9 -0
- data/documentation/site/assets/webfonts/fa-brands-400.eot +0 -0
- data/documentation/site/assets/webfonts/fa-brands-400.svg +3452 -0
- data/documentation/site/assets/webfonts/fa-brands-400.ttf +0 -0
- data/documentation/site/assets/webfonts/fa-brands-400.woff +0 -0
- data/documentation/site/assets/webfonts/fa-brands-400.woff2 +0 -0
- data/documentation/site/blog/index.md +6 -0
- data/documentation/site/guides/architecture/clients.md +35 -0
- data/documentation/site/guides/architecture/index.md +14 -0
- data/documentation/site/guides/architecture/operations.md +45 -0
- data/documentation/site/guides/architecture/resources.md +40 -0
- data/documentation/site/guides/architecture/results.md +6 -0
- data/documentation/site/guides/architecture/searchers.md +28 -0
- data/documentation/site/guides/architecture/serialization.md +59 -0
- data/documentation/site/guides/community/index.md +8 -0
- data/documentation/site/guides/contribute/console.md +6 -0
- data/documentation/site/guides/contribute/deployment.md +17 -0
- data/documentation/site/guides/contribute/documentation.md +37 -0
- data/documentation/site/guides/contribute/index.md +18 -0
- data/documentation/site/guides/contribute/qa.md +16 -0
- data/documentation/site/guides/contribute/testing.md +6 -0
- data/documentation/site/guides/customization/custom_resources.md +50 -0
- data/documentation/site/guides/customization/custom_serializers.md +47 -0
- data/documentation/site/guides/customization/index.md +15 -0
- data/documentation/site/guides/customization/resource_converters.md +79 -0
- data/documentation/site/guides/getting-started/get-help.md +7 -0
- data/documentation/site/guides/getting-started/index.md +8 -0
- data/documentation/site/guides/getting-started/installation.md +7 -0
- data/documentation/site/guides/getting-started/quick-start.md +123 -0
- data/documentation/site/guides/index.md +16 -0
- data/documentation/site/guides/ledgers/index.md +12 -0
- data/documentation/site/guides/ledgers/netsuite.md +9 -0
- data/documentation/site/guides/ledgers/netsuite_soap.md +9 -0
- data/documentation/site/guides/ledgers/quickbooks_online.md +9 -0
- data/documentation/site/guides/ledgers/stripe.md +9 -0
- data/documentation/site/guides/modern-treasury/index.md +14 -0
- data/documentation/site/guides/tips_and_more/index.md +76 -0
- data/documentation/site/images/1.jpg +0 -0
- data/documentation/site/images/10.jpg +0 -0
- data/documentation/site/images/2.jpg +0 -0
- data/documentation/site/images/3.jpg +0 -0
- data/documentation/site/images/4.jpg +0 -0
- data/documentation/site/images/5.jpg +0 -0
- data/documentation/site/images/6.jpg +0 -0
- data/documentation/site/images/7.jpg +0 -0
- data/documentation/site/images/8.jpg +0 -0
- data/documentation/site/images/9.jpg +0 -0
- data/documentation/site/images/logo.svg +8 -0
- data/documentation/site/index.md +99 -0
- data/documentation/site/overview.md +21 -0
- data/documentation/site/reference/architecture/clients.md +33 -0
- data/documentation/site/reference/architecture/index.md +14 -0
- data/documentation/site/reference/architecture/operations.md +6 -0
- data/documentation/site/reference/architecture/resources.md +38 -0
- data/documentation/site/reference/architecture/results.md +6 -0
- data/documentation/site/reference/architecture/searchers.md +6 -0
- data/documentation/site/reference/architecture/serialization.md +6 -0
- data/documentation/site/reference/index.md +6 -0
- data/documentation/site/reference/netsuite/authentication/_token_based_authentication.md +99 -0
- data/documentation/site/reference/netsuite/authentication/index.md +15 -0
- data/documentation/site/reference/netsuite/authentication/token_based_authentication.md +6 -0
- data/documentation/site/reference/netsuite/index.md +25 -0
- data/documentation/site/reference/netsuite/resources/account.md +38 -0
- data/documentation/site/reference/netsuite/resources/check.md +49 -0
- data/documentation/site/reference/netsuite/resources/check_line_item.md +23 -0
- data/documentation/site/reference/netsuite/resources/currency.md +45 -0
- data/documentation/site/reference/netsuite/resources/customer.md +48 -0
- data/documentation/site/reference/netsuite/resources/customer_deposit.md +46 -0
- data/documentation/site/reference/netsuite/resources/department.md +47 -0
- data/documentation/site/reference/netsuite/resources/deposit.md +25 -0
- data/documentation/site/reference/netsuite/resources/deposit_line_item.md +23 -0
- data/documentation/site/reference/netsuite/resources/index.md +25 -0
- data/documentation/site/reference/netsuite/resources/invoice.md +25 -0
- data/documentation/site/reference/netsuite/resources/invoice_line_item.md +22 -0
- data/documentation/site/reference/netsuite/resources/item.md +19 -0
- data/documentation/site/reference/netsuite/resources/journal_entry.md +48 -0
- data/documentation/site/reference/netsuite/resources/journal_entry_line_item.md +24 -0
- data/documentation/site/reference/netsuite/resources/ledger_class.md +47 -0
- data/documentation/site/reference/netsuite/resources/location.md +43 -0
- data/documentation/site/reference/netsuite/resources/resource.md +18 -0
- data/documentation/site/reference/netsuite/resources/subsidiary.md +20 -0
- data/documentation/site/reference/netsuite/resources/vendor.md +49 -0
- data/documentation/site/reference/netsuite_soap/index.md +11 -0
- data/documentation/site/reference/netsuite_soap/resources/customer.md +34 -0
- data/documentation/site/reference/netsuite_soap/resources/index.md +9 -0
- data/documentation/site/reference/netsuite_soap/resources/resource.md +18 -0
- data/documentation/site/reference/netsuite_soap/resources/subsidiary.md +32 -0
- data/documentation/site/reference/quickbooks_online/authentication/index.md +55 -0
- data/documentation/site/reference/quickbooks_online/errors/index.md +9 -0
- data/documentation/site/reference/quickbooks_online/index.md +6 -0
- data/documentation/site/reference/quickbooks_online/resources/account.md +44 -0
- data/documentation/site/reference/quickbooks_online/resources/bill.md +45 -0
- data/documentation/site/reference/quickbooks_online/resources/bill_line_item.md +22 -0
- data/documentation/site/reference/quickbooks_online/resources/bill_payment.md +49 -0
- data/documentation/site/reference/quickbooks_online/resources/bill_payment_line_item.md +20 -0
- data/documentation/site/reference/quickbooks_online/resources/currency.md +21 -0
- data/documentation/site/reference/quickbooks_online/resources/customer.md +40 -0
- data/documentation/site/reference/quickbooks_online/resources/department.md +41 -0
- data/documentation/site/reference/quickbooks_online/resources/deposit.md +43 -0
- data/documentation/site/reference/quickbooks_online/resources/deposit_line_item.md +23 -0
- data/documentation/site/reference/quickbooks_online/resources/expense.md +46 -0
- data/documentation/site/reference/quickbooks_online/resources/expense_line_item.md +22 -0
- data/documentation/site/reference/quickbooks_online/resources/index.md +33 -0
- data/documentation/site/reference/quickbooks_online/resources/invoice.md +43 -0
- data/documentation/site/reference/quickbooks_online/resources/invoice_sales_line_item.md +22 -0
- data/documentation/site/reference/quickbooks_online/resources/item.md +19 -0
- data/documentation/site/reference/quickbooks_online/resources/journal_entry.md +41 -0
- data/documentation/site/reference/quickbooks_online/resources/journal_entry_line_item.md +24 -0
- data/documentation/site/reference/quickbooks_online/resources/ledger_class.md +41 -0
- data/documentation/site/reference/quickbooks_online/resources/payment.md +46 -0
- data/documentation/site/reference/quickbooks_online/resources/payment_line_item.md +20 -0
- data/documentation/site/reference/quickbooks_online/resources/preferences.md +34 -0
- data/documentation/site/reference/quickbooks_online/resources/primary_email_addr.md +19 -0
- data/documentation/site/reference/quickbooks_online/resources/primary_phone.md +19 -0
- data/documentation/site/reference/quickbooks_online/resources/resource.md +18 -0
- data/documentation/site/reference/quickbooks_online/resources/subsidiary.md +20 -0
- data/documentation/site/reference/quickbooks_online/resources/transfer.md +42 -0
- data/documentation/site/reference/quickbooks_online/resources/vendor.md +43 -0
- data/documentation/site/reference/quickbooks_online/webhooks/index.md +42 -0
- data/documentation/site/reference/stripe/index.md +6 -0
- data/documentation/site/reference/stripe/resources/customer.md +45 -0
- data/documentation/site/reference/stripe/resources/index.md +8 -0
- data/documentation/site/reference/stripe/resources/resource.md +18 -0
- data/documentation/site/style-guide.md +137 -0
- data/ledger_sync.gemspec +3 -2
- data/lib/ledger_sync.rb +46 -58
- data/lib/ledger_sync/core_ext/resonad.rb +2 -3
- data/lib/ledger_sync/deserializer.rb +108 -0
- data/lib/ledger_sync/error.rb +48 -0
- data/lib/ledger_sync/error/ledger_errors.rb +72 -0
- data/lib/ledger_sync/error/operation_errors.rb +0 -10
- data/lib/ledger_sync/error/resource_errors.rb +48 -19
- data/lib/ledger_sync/ledger_configuration.rb +61 -0
- data/lib/ledger_sync/ledger_configuration_store.rb +56 -0
- data/lib/ledger_sync/ledgers/client.rb +112 -0
- data/lib/ledger_sync/ledgers/contract.rb +16 -0
- data/lib/ledger_sync/ledgers/dashboard_url_helper.rb +23 -0
- data/lib/ledger_sync/ledgers/mixins/infer_client_mixin.rb +28 -0
- data/lib/ledger_sync/ledgers/mixins/infer_resource_class_mixin.rb +25 -0
- data/lib/ledger_sync/ledgers/mixins/infer_serializer_mixin.rb +52 -0
- data/lib/ledger_sync/ledgers/mixins/infer_validation_contract_mixin.rb +27 -0
- data/lib/ledger_sync/ledgers/mixins/offset_and_limit_pagination_searcher_mixin.rb +37 -0
- data/lib/ledger_sync/ledgers/mixins/serialization_mixin.rb +41 -0
- data/lib/ledger_sync/ledgers/netsuite/account/deserializer.rb +23 -0
- data/lib/ledger_sync/ledgers/netsuite/account/operations/create.rb +28 -0
- data/lib/ledger_sync/ledgers/netsuite/account/operations/find.rb +28 -0
- data/lib/ledger_sync/ledgers/netsuite/account/searcher.rb +12 -0
- data/lib/ledger_sync/ledgers/netsuite/account/searcher_deserializer.rb +29 -0
- data/lib/ledger_sync/ledgers/netsuite/account/serializer.rb +21 -0
- data/lib/ledger_sync/ledgers/netsuite/check/deserializer.rb +29 -0
- data/lib/ledger_sync/ledgers/netsuite/check/operations/create.rb +27 -0
- data/lib/ledger_sync/ledgers/netsuite/check/operations/delete.rb +27 -0
- data/lib/ledger_sync/ledgers/netsuite/check/operations/find.rb +27 -0
- data/lib/ledger_sync/ledgers/netsuite/check/operations/update.rb +27 -0
- data/lib/ledger_sync/ledgers/netsuite/check/searcher.rb +15 -0
- data/lib/ledger_sync/ledgers/netsuite/check/searcher_deserializer.rb +16 -0
- data/lib/ledger_sync/ledgers/netsuite/check/serializer.rb +51 -0
- data/lib/ledger_sync/ledgers/netsuite/check_line_item/deserializer.rb +17 -0
- data/lib/ledger_sync/ledgers/netsuite/check_line_item/serializer.rb +25 -0
- data/lib/ledger_sync/ledgers/netsuite/client.rb +184 -0
- data/lib/ledger_sync/ledgers/netsuite/config.rb +5 -0
- data/lib/ledger_sync/ledgers/netsuite/currency/deserializer.rb +23 -0
- data/lib/ledger_sync/ledgers/netsuite/currency/operations/create.rb +25 -0
- data/lib/ledger_sync/ledgers/netsuite/currency/operations/delete.rb +23 -0
- data/lib/ledger_sync/ledgers/netsuite/currency/operations/find.rb +23 -0
- data/lib/ledger_sync/ledgers/netsuite/currency/operations/update.rb +23 -0
- data/lib/ledger_sync/ledgers/netsuite/currency/serializer.rb +21 -0
- data/lib/ledger_sync/ledgers/netsuite/customer/deserializer.rb +22 -0
- data/lib/ledger_sync/ledgers/netsuite/customer/operations/create.rb +26 -0
- data/lib/ledger_sync/ledgers/netsuite/customer/operations/delete.rb +26 -0
- data/lib/ledger_sync/ledgers/netsuite/customer/operations/find.rb +26 -0
- data/lib/ledger_sync/ledgers/netsuite/customer/operations/update.rb +26 -0
- data/lib/ledger_sync/ledgers/netsuite/customer/searcher.rb +12 -0
- data/lib/ledger_sync/ledgers/netsuite/customer/searcher_deserializer.rb +18 -0
- data/lib/ledger_sync/ledgers/netsuite/customer/serializer.rb +29 -0
- data/lib/ledger_sync/ledgers/netsuite/customer_deposit/deserializer.rb +20 -0
- data/lib/ledger_sync/ledgers/netsuite/customer_deposit/operations/create.rb +24 -0
- data/lib/ledger_sync/ledgers/netsuite/customer_deposit/operations/delete.rb +24 -0
- data/lib/ledger_sync/ledgers/netsuite/customer_deposit/operations/find.rb +24 -0
- data/lib/ledger_sync/ledgers/netsuite/customer_deposit/operations/update.rb +24 -0
- data/lib/ledger_sync/ledgers/netsuite/customer_deposit/searcher.rb +12 -0
- data/lib/ledger_sync/ledgers/netsuite/customer_deposit/searcher_deserializer.rb +16 -0
- data/lib/ledger_sync/ledgers/netsuite/customer_deposit/serializer.rb +25 -0
- data/lib/ledger_sync/ledgers/netsuite/dashboard_url_helper.rb +28 -0
- data/lib/ledger_sync/ledgers/netsuite/department/deserializer.rb +15 -0
- data/lib/ledger_sync/ledgers/netsuite/department/operations/create.rb +25 -0
- data/lib/ledger_sync/ledgers/netsuite/department/operations/delete.rb +25 -0
- data/lib/ledger_sync/ledgers/netsuite/department/operations/find.rb +25 -0
- data/lib/ledger_sync/ledgers/netsuite/department/operations/update.rb +25 -0
- data/lib/ledger_sync/ledgers/netsuite/department/searcher.rb +12 -0
- data/lib/ledger_sync/ledgers/netsuite/department/searcher_deserializer.rb +19 -0
- data/lib/ledger_sync/ledgers/netsuite/department/serializer.rb +13 -0
- data/lib/ledger_sync/ledgers/netsuite/deserializer.rb +18 -0
- data/lib/ledger_sync/ledgers/netsuite/error.rb +18 -0
- data/lib/ledger_sync/ledgers/netsuite/journal_entry/deserializer.rb +31 -0
- data/lib/ledger_sync/ledgers/netsuite/journal_entry/operations/create.rb +26 -0
- data/lib/ledger_sync/ledgers/netsuite/journal_entry/operations/delete.rb +26 -0
- data/lib/ledger_sync/ledgers/netsuite/journal_entry/operations/find.rb +26 -0
- data/lib/ledger_sync/ledgers/netsuite/journal_entry/operations/update.rb +30 -0
- data/lib/ledger_sync/ledgers/netsuite/journal_entry/serializer.rb +36 -0
- data/lib/ledger_sync/ledgers/netsuite/journal_entry_line_item/deserializer.rb +23 -0
- data/lib/ledger_sync/ledgers/netsuite/journal_entry_line_item/serializer.rb +21 -0
- data/lib/ledger_sync/ledgers/netsuite/ledger_class/deserializer.rb +15 -0
- data/lib/ledger_sync/ledgers/netsuite/ledger_class/operations/create.rb +25 -0
- data/lib/ledger_sync/ledgers/netsuite/ledger_class/operations/delete.rb +25 -0
- data/lib/ledger_sync/ledgers/netsuite/ledger_class/operations/find.rb +25 -0
- data/lib/ledger_sync/ledgers/netsuite/ledger_class/operations/update.rb +25 -0
- data/lib/ledger_sync/ledgers/netsuite/ledger_class/searcher.rb +12 -0
- data/lib/ledger_sync/ledgers/netsuite/ledger_class/searcher_deserializer.rb +19 -0
- data/lib/ledger_sync/ledgers/netsuite/ledger_class/serializer.rb +13 -0
- data/lib/ledger_sync/ledgers/netsuite/location/deserializer.rb +15 -0
- data/lib/ledger_sync/ledgers/netsuite/location/operations/create.rb +21 -0
- data/lib/ledger_sync/ledgers/netsuite/location/operations/delete.rb +21 -0
- data/lib/ledger_sync/ledgers/netsuite/location/operations/find.rb +21 -0
- data/lib/ledger_sync/ledgers/netsuite/location/operations/update.rb +21 -0
- data/lib/ledger_sync/ledgers/netsuite/location/searcher.rb +12 -0
- data/lib/ledger_sync/ledgers/netsuite/location/serializer.rb +13 -0
- data/lib/ledger_sync/ledgers/netsuite/operation.rb +40 -0
- data/lib/ledger_sync/ledgers/netsuite/operation/create.rb +58 -0
- data/lib/ledger_sync/ledgers/netsuite/operation/delete.rb +49 -0
- data/lib/ledger_sync/ledgers/netsuite/operation/find.rb +60 -0
- data/lib/ledger_sync/ledgers/netsuite/operation/update.rb +61 -0
- data/lib/ledger_sync/ledgers/netsuite/record/http_method.rb +33 -0
- data/lib/ledger_sync/ledgers/netsuite/record/metadata.rb +105 -0
- data/lib/ledger_sync/ledgers/netsuite/record/parameter.rb +20 -0
- data/lib/ledger_sync/ledgers/netsuite/record/property.rb +22 -0
- data/lib/ledger_sync/ledgers/netsuite/reference/serializer.rb +13 -0
- data/lib/ledger_sync/ledgers/netsuite/resource.rb +10 -0
- data/lib/ledger_sync/ledgers/netsuite/resources/account.rb +44 -0
- data/lib/ledger_sync/ledgers/netsuite/resources/check.rb +23 -0
- data/lib/ledger_sync/ledgers/netsuite/resources/check_line_item.rb +15 -0
- data/lib/ledger_sync/ledgers/netsuite/resources/currency.rb +13 -0
- data/lib/ledger_sync/ledgers/netsuite/resources/customer.rb +19 -0
- data/lib/ledger_sync/ledgers/netsuite/resources/customer_deposit.rb +15 -0
- data/lib/ledger_sync/ledgers/netsuite/resources/department.rb +16 -0
- data/lib/ledger_sync/ledgers/netsuite/resources/deposit.rb +28 -0
- data/lib/ledger_sync/ledgers/netsuite/resources/deposit_line_item.rb +25 -0
- data/lib/ledger_sync/ledgers/netsuite/resources/invoice.rb +28 -0
- data/lib/ledger_sync/ledgers/netsuite/resources/invoice_line_item.rb +21 -0
- data/lib/ledger_sync/ledgers/netsuite/resources/item.rb +11 -0
- data/lib/ledger_sync/ledgers/netsuite/resources/journal_entry.rb +26 -0
- data/lib/ledger_sync/ledgers/netsuite/resources/journal_entry_line_item.rb +24 -0
- data/lib/ledger_sync/ledgers/netsuite/resources/ledger_class.rb +16 -0
- data/lib/ledger_sync/ledgers/netsuite/resources/location.rb +11 -0
- data/lib/ledger_sync/ledgers/netsuite/resources/subsidiary.rb +12 -0
- data/lib/ledger_sync/ledgers/netsuite/resources/vendor.rb +23 -0
- data/lib/ledger_sync/ledgers/netsuite/searcher.rb +64 -0
- data/lib/ledger_sync/ledgers/netsuite/serializer.rb +13 -0
- data/lib/ledger_sync/ledgers/netsuite/subsidiary/deserializer.rb +17 -0
- data/lib/ledger_sync/ledgers/netsuite/subsidiary/searcher.rb +12 -0
- data/lib/ledger_sync/ledgers/netsuite/subsidiary/searcher_deserializer.rb +15 -0
- data/lib/ledger_sync/ledgers/netsuite/subsidiary/serializer.rb +15 -0
- data/lib/ledger_sync/ledgers/netsuite/token.rb +158 -0
- data/lib/ledger_sync/ledgers/netsuite/type/deserializer_active_type.rb +32 -0
- data/lib/ledger_sync/ledgers/netsuite/type/deserializer_customer_type.rb +33 -0
- data/lib/ledger_sync/ledgers/netsuite/type/deserializer_entity_type.rb +30 -0
- data/lib/ledger_sync/ledgers/netsuite/type/deserializer_subsidiary_type.rb +33 -0
- data/lib/ledger_sync/ledgers/netsuite/vendor/deserializer.rb +30 -0
- data/lib/ledger_sync/ledgers/netsuite/vendor/operations/create.rb +27 -0
- data/lib/ledger_sync/ledgers/netsuite/vendor/operations/delete.rb +27 -0
- data/lib/ledger_sync/ledgers/netsuite/vendor/operations/find.rb +27 -0
- data/lib/ledger_sync/ledgers/netsuite/vendor/operations/update.rb +27 -0
- data/lib/ledger_sync/ledgers/netsuite/vendor/searcher.rb +12 -0
- data/lib/ledger_sync/ledgers/netsuite/vendor/searcher_deserializer.rb +21 -0
- data/lib/ledger_sync/ledgers/netsuite/vendor/serializer.rb +30 -0
- data/lib/ledger_sync/ledgers/netsuite_soap/client.rb +92 -0
- data/lib/ledger_sync/ledgers/netsuite_soap/config.rb +5 -0
- data/lib/ledger_sync/ledgers/netsuite_soap/customer/operations/create.rb +64 -0
- data/lib/ledger_sync/ledgers/netsuite_soap/customer/operations/find.rb +49 -0
- data/lib/ledger_sync/ledgers/netsuite_soap/operation.rb +40 -0
- data/lib/ledger_sync/ledgers/netsuite_soap/operation/create.rb +29 -0
- data/lib/ledger_sync/ledgers/netsuite_soap/operation/find.rb +15 -0
- data/lib/ledger_sync/ledgers/netsuite_soap/resource.rb +10 -0
- data/lib/ledger_sync/ledgers/netsuite_soap/resources/customer.rb +29 -0
- data/lib/ledger_sync/ledgers/netsuite_soap/resources/subsidiary.rb +12 -0
- data/lib/ledger_sync/ledgers/netsuite_soap/subsidiary/operations/create.rb +42 -0
- data/lib/ledger_sync/ledgers/netsuite_soap/subsidiary/operations/find.rb +38 -0
- data/lib/ledger_sync/ledgers/operation.rb +181 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/account/deserializer.rb +43 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/account/operations/create.rb +26 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/account/operations/find.rb +26 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/account/operations/update.rb +30 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/account/searcher.rb +15 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/account/serializer.rb +37 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/bill/deserializer.rb +45 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/bill/operations/create.rb +27 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/bill/operations/find.rb +27 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/bill/operations/update.rb +27 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/bill/searcher.rb +14 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/bill/serializer.rb +44 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/bill_line_item/deserializer.rb +25 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/bill_line_item/serializer.rb +29 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/bill_payment/deserializer.rb +59 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/bill_payment/operations/create.rb +33 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/bill_payment/operations/find.rb +33 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/bill_payment/operations/update.rb +33 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/bill_payment/serializer.rb +77 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/bill_payment_line_item/deserializer.rb +18 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/bill_payment_line_item/serializer.rb +18 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/client.rb +258 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/config.rb +8 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/currency/deserializer.rb +17 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/currency/serializer.rb +16 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/customer/deserializer.rb +19 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/customer/operations/create.rb +26 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/customer/operations/find.rb +26 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/customer/operations/update.rb +26 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/customer/searcher.rb +13 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/customer/serializer.rb +19 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/dashboard_url_helper.rb +34 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/department/deserializer.rb +28 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/department/operations/create.rb +23 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/department/operations/find.rb +23 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/department/operations/update.rb +25 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/department/searcher.rb +17 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/department/serializer.rb +49 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/deposit/deserializer.rb +39 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/deposit/operations/create.rb +25 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/deposit/operations/find.rb +25 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/deposit/operations/update.rb +27 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/deposit/searcher.rb +13 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/deposit/serializer.rb +39 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/deposit_line_item/deserializer.rb +38 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/deposit_line_item/serializer.rb +41 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/deserializer.rb +98 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/expense/deserializer.rb +58 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/expense/operations/create.rb +28 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/expense/operations/find.rb +28 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/expense/operations/update.rb +28 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/expense/searcher.rb +14 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/expense/serializer.rb +59 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/expense_line_item/deserializer.rb +25 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/expense_line_item/serializer.rb +27 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/invoice/deserializer.rb +35 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/invoice/operations/create.rb +27 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/invoice/operations/find.rb +25 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/invoice/operations/update.rb +25 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/invoice/serializer.rb +35 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/invoice_sales_line_item/deserializer.rb +25 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/invoice_sales_line_item/serializer.rb +29 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/item/deserializer.rb +13 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/item/serializer.rb +12 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/journal_entry/deserializer.rb +33 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/journal_entry/operations/create.rb +23 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/journal_entry/operations/find.rb +23 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/journal_entry/operations/update.rb +23 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/journal_entry/searcher.rb +14 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/journal_entry/serializer.rb +33 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/journal_entry_line_item/deserializer.rb +32 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/journal_entry_line_item/serializer.rb +36 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/ledger_class/deserializer.rb +29 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/ledger_class/operations/create.rb +23 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/ledger_class/operations/find.rb +23 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/ledger_class/operations/update.rb +25 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/ledger_class/searcher.rb +15 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/ledger_class/serializer.rb +24 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/oauth_client.rb +93 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/operation.rb +61 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/operation/create.rb +26 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/operation/find.rb +25 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/operation/full_update.rb +44 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/operation/sparse_update.rb +29 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/payment/deserializer.rb +48 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/payment/operations/create.rb +30 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/payment/operations/find.rb +28 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/payment/operations/update.rb +28 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/payment/serializer.rb +48 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/payment_line_item/deserializer.rb +18 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/payment_line_item/serializer.rb +18 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/preferences/deserializer.rb +43 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/preferences/operations/find.rb +30 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/preferences/serializer.rb +43 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/request.rb +98 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/resource.rb +10 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/resources/account.rb +355 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/resources/bill.rb +31 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/resources/bill_line_item.rb +21 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/resources/bill_payment.rb +42 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/resources/bill_payment_line_item.rb +19 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/resources/currency.rb +13 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/resources/customer.rb +19 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/resources/department.rb +16 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/resources/deposit.rb +28 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/resources/deposit_line_item.rb +25 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/resources/expense.rb +40 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/resources/expense_line_item.rb +21 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/resources/invoice.rb +28 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/resources/invoice_sales_line_item.rb +21 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/resources/item.rb +11 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/resources/journal_entry.rb +24 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/resources/journal_entry_line_item.rb +29 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/resources/ledger_class.rb +16 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/resources/payment.rb +31 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/resources/payment_line_item.rb +19 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/resources/preferences.rb +24 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/resources/primary_email_addr.rb +11 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/resources/primary_phone.rb +11 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/resources/subsidiary.rb +12 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/resources/transfer.rb +24 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/resources/vendor.rb +23 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/searcher.rb +60 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/serialization/type/amount_float_to_integer_type.rb +21 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/serialization/type/deserialize_transaction_reference_type.rb +30 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/serialization/type/integer_to_amount_float_type.rb +21 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/serialization/type/serialize_transaction_reference_type.rb +30 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/serializer.rb +71 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/serialziation/type/mapping_type.rb +25 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/transfer/deserializer.rb +34 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/transfer/operations/create.rb +24 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/transfer/operations/find.rb +24 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/transfer/operations/update.rb +26 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/transfer/serializer.rb +34 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/util/error_matcher.rb +54 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/util/error_parser.rb +27 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/util/ledger_error_parser.rb +103 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/util/operation_error_parser.rb +99 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/vendor/deserializer.rb +25 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/vendor/operations/create.rb +27 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/vendor/operations/find.rb +27 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/vendor/operations/update.rb +27 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/vendor/searcher.rb +15 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/vendor/serializer.rb +25 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/webhook.rb +58 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/webhook_event.rb +79 -0
- data/lib/ledger_sync/ledgers/quickbooks_online/webhook_notification.rb +42 -0
- data/lib/ledger_sync/ledgers/request.rb +57 -0
- data/lib/ledger_sync/ledgers/response.rb +55 -0
- data/lib/ledger_sync/ledgers/searcher.rb +73 -0
- data/lib/ledger_sync/ledgers/stripe/client.rb +37 -0
- data/lib/ledger_sync/ledgers/stripe/config.rb +5 -0
- data/lib/ledger_sync/ledgers/stripe/customer/operations/create.rb +44 -0
- data/lib/ledger_sync/ledgers/stripe/customer/operations/delete.rb +35 -0
- data/lib/ledger_sync/ledgers/stripe/customer/operations/find.rb +44 -0
- data/lib/ledger_sync/ledgers/stripe/customer/operations/update.rb +43 -0
- data/lib/ledger_sync/ledgers/stripe/dashboard_url_helper.rb +21 -0
- data/lib/ledger_sync/ledgers/stripe/operation.rb +35 -0
- data/lib/ledger_sync/ledgers/stripe/operation/create.rb +17 -0
- data/lib/ledger_sync/ledgers/stripe/operation/delete.rb +17 -0
- data/lib/ledger_sync/ledgers/stripe/operation/find.rb +15 -0
- data/lib/ledger_sync/ledgers/stripe/operation/update.rb +17 -0
- data/lib/ledger_sync/ledgers/stripe/resource.rb +10 -0
- data/lib/ledger_sync/ledgers/stripe/resources/customer.rb +13 -0
- data/lib/ledger_sync/operation.rb +23 -0
- data/lib/ledger_sync/resource.rb +22 -10
- data/lib/ledger_sync/resource_adaptor.rb +52 -0
- data/lib/ledger_sync/resource_attribute.rb +31 -9
- data/lib/ledger_sync/resource_attribute/dirty_mixin.rb +4 -0
- data/lib/ledger_sync/resource_attribute/mixin.rb +14 -24
- data/lib/ledger_sync/resource_attribute/reference/many.rb +21 -23
- data/lib/ledger_sync/resource_attribute/reference/one.rb +16 -5
- data/lib/ledger_sync/resource_attribute_set.rb +3 -7
- data/lib/ledger_sync/result.rb +3 -3
- data/lib/ledger_sync/serialization/attribute.rb +41 -0
- data/lib/ledger_sync/serialization/attribute_set_mixin.rb +27 -0
- data/lib/ledger_sync/serialization/deserializer_attribute.rb +78 -0
- data/lib/ledger_sync/serialization/deserializer_attribute_set.rb +22 -0
- data/lib/ledger_sync/serialization/mixin.rb +70 -0
- data/lib/ledger_sync/serialization/serializer_attribute.rb +64 -0
- data/lib/ledger_sync/serialization/serializer_attribute_set.rb +22 -0
- data/lib/ledger_sync/serialization/type/deserializer_references_many_type.rb +26 -0
- data/lib/ledger_sync/serialization/type/deserializer_references_one_type.rb +12 -0
- data/lib/ledger_sync/serialization/type/deserializer_type.rb +29 -0
- data/lib/ledger_sync/serialization/type/format_date_type.rb +23 -0
- data/lib/ledger_sync/serialization/type/mapping_type.rb +23 -0
- data/lib/ledger_sync/serialization/type/parse_date_type.rb +23 -0
- data/lib/ledger_sync/serialization/type/serializer_references_many_type.rb +21 -0
- data/lib/ledger_sync/serialization/type/serializer_references_one_type.rb +12 -0
- data/lib/ledger_sync/serialization/type/serializer_type.rb +23 -0
- data/lib/ledger_sync/serializer.rb +95 -0
- data/lib/ledger_sync/type/boolean.rb +2 -0
- data/lib/ledger_sync/type/date.rb +3 -1
- data/lib/ledger_sync/type/float.rb +2 -0
- data/lib/ledger_sync/type/hash.rb +38 -0
- data/lib/ledger_sync/type/id.rb +8 -2
- data/lib/ledger_sync/type/integer.rb +2 -0
- data/lib/ledger_sync/type/reference_many.rb +15 -5
- data/lib/ledger_sync/type/reference_one.rb +9 -18
- data/lib/ledger_sync/type/string.rb +2 -0
- data/lib/ledger_sync/type/string_from_set.rb +43 -0
- data/lib/ledger_sync/type/value_mixin.rb +37 -7
- data/lib/ledger_sync/util/mixins/delegate_iterable_methods_mixin.rb +43 -0
- data/lib/ledger_sync/util/mixins/dupable_mixin.rb +13 -0
- data/lib/ledger_sync/util/mixins/resource_registerable_mixin.rb +29 -0
- data/lib/ledger_sync/util/read_only_object.rb +54 -0
- data/lib/ledger_sync/util/resource_converter.rb +113 -0
- data/lib/ledger_sync/util/resource_converter/attribute.rb +131 -0
- data/lib/ledger_sync/util/resource_converter/attribute_set.rb +42 -0
- data/lib/ledger_sync/util/resource_converter/type/references_many_type.rb +27 -0
- data/lib/ledger_sync/util/resource_converter/type/references_one_type.rb +14 -0
- data/lib/ledger_sync/util/resource_converter/type/resource_converter_type.rb +26 -0
- data/lib/ledger_sync/util/resources_builder.rb +19 -11
- data/lib/ledger_sync/util/string_helpers.rb +3 -3
- data/lib/ledger_sync/util/url_helpers.rb +38 -0
- data/lib/ledger_sync/util/validator.rb +3 -1
- data/lib/ledger_sync/version.rb +1 -1
- data/licenses/BSL.txt +97 -0
- data/licenses/documentation_site.txt +7 -0
- metadata +712 -263
- data/_config.yml +0 -1
- data/lib/ledger_sync/adaptor_configuration.rb +0 -61
- data/lib/ledger_sync/adaptor_configuration_store.rb +0 -56
- data/lib/ledger_sync/adaptors/adaptor.rb +0 -74
- data/lib/ledger_sync/adaptors/contract.rb +0 -16
- data/lib/ledger_sync/adaptors/ledger_serializer.rb +0 -151
- data/lib/ledger_sync/adaptors/ledger_serializer_attribute.rb +0 -178
- data/lib/ledger_sync/adaptors/ledger_serializer_attribute_set.rb +0 -58
- data/lib/ledger_sync/adaptors/ledger_serializer_type/mapping_type.rb +0 -41
- data/lib/ledger_sync/adaptors/ledger_serializer_type/references_many_type.rb +0 -24
- data/lib/ledger_sync/adaptors/ledger_serializer_type/references_one_type.rb +0 -22
- data/lib/ledger_sync/adaptors/ledger_serializer_type/value_type.rb +0 -17
- data/lib/ledger_sync/adaptors/mixins/infer_adaptor_class_mixin.rb +0 -24
- data/lib/ledger_sync/adaptors/mixins/infer_ledger_serializer_mixin.rb +0 -31
- data/lib/ledger_sync/adaptors/mixins/infer_resource_class_mixin.rb +0 -22
- data/lib/ledger_sync/adaptors/mixins/offset_and_limit_pagination_searcher_mixin.rb +0 -37
- data/lib/ledger_sync/adaptors/netsuite/account/ledger_deserializer.rb +0 -24
- data/lib/ledger_sync/adaptors/netsuite/account/ledger_serializer.rb +0 -22
- data/lib/ledger_sync/adaptors/netsuite/account/operations/create.rb +0 -28
- data/lib/ledger_sync/adaptors/netsuite/account/operations/find.rb +0 -28
- data/lib/ledger_sync/adaptors/netsuite/account/searcher.rb +0 -28
- data/lib/ledger_sync/adaptors/netsuite/adaptor.rb +0 -145
- data/lib/ledger_sync/adaptors/netsuite/config.rb +0 -6
- data/lib/ledger_sync/adaptors/netsuite/currency/deledger_serializer.rb +0 -28
- data/lib/ledger_sync/adaptors/netsuite/currency/ledger_serializer.rb +0 -25
- data/lib/ledger_sync/adaptors/netsuite/currency/operations/create.rb +0 -25
- data/lib/ledger_sync/adaptors/netsuite/currency/operations/delete.rb +0 -23
- data/lib/ledger_sync/adaptors/netsuite/currency/operations/find.rb +0 -23
- data/lib/ledger_sync/adaptors/netsuite/currency/operations/update.rb +0 -23
- data/lib/ledger_sync/adaptors/netsuite/customer/ledger_deserializer.rb +0 -27
- data/lib/ledger_sync/adaptors/netsuite/customer/ledger_serializer.rb +0 -38
- data/lib/ledger_sync/adaptors/netsuite/customer/operations/create.rb +0 -24
- data/lib/ledger_sync/adaptors/netsuite/customer/operations/delete.rb +0 -24
- data/lib/ledger_sync/adaptors/netsuite/customer/operations/find.rb +0 -24
- data/lib/ledger_sync/adaptors/netsuite/customer/operations/update.rb +0 -24
- data/lib/ledger_sync/adaptors/netsuite/ledger_serializer.rb +0 -30
- data/lib/ledger_sync/adaptors/netsuite/ledger_serializer_type/reference_type.rb +0 -24
- data/lib/ledger_sync/adaptors/netsuite/ledger_serializer_type/subsidiary_type.rb +0 -22
- data/lib/ledger_sync/adaptors/netsuite/operation.rb +0 -25
- data/lib/ledger_sync/adaptors/netsuite/operation/create.rb +0 -65
- data/lib/ledger_sync/adaptors/netsuite/operation/delete.rb +0 -49
- data/lib/ledger_sync/adaptors/netsuite/operation/find.rb +0 -56
- data/lib/ledger_sync/adaptors/netsuite/operation/update.rb +0 -68
- data/lib/ledger_sync/adaptors/netsuite/record/http_method.rb +0 -38
- data/lib/ledger_sync/adaptors/netsuite/record/metadata.rb +0 -75
- data/lib/ledger_sync/adaptors/netsuite/record/property.rb +0 -45
- data/lib/ledger_sync/adaptors/netsuite/searcher.rb +0 -17
- data/lib/ledger_sync/adaptors/netsuite/token.rb +0 -162
- data/lib/ledger_sync/adaptors/netsuite/vendor/ledger_deserializer.rb +0 -32
- data/lib/ledger_sync/adaptors/netsuite/vendor/ledger_serializer.rb +0 -35
- data/lib/ledger_sync/adaptors/netsuite/vendor/operations/create.rb +0 -27
- data/lib/ledger_sync/adaptors/netsuite/vendor/operations/delete.rb +0 -27
- data/lib/ledger_sync/adaptors/netsuite/vendor/operations/find.rb +0 -27
- data/lib/ledger_sync/adaptors/netsuite/vendor/operations/update.rb +0 -27
- data/lib/ledger_sync/adaptors/netsuite_soap/adaptor.rb +0 -92
- data/lib/ledger_sync/adaptors/netsuite_soap/config.rb +0 -5
- data/lib/ledger_sync/adaptors/netsuite_soap/customer/ledger_serializer.rb +0 -13
- data/lib/ledger_sync/adaptors/netsuite_soap/customer/operations/create.rb +0 -64
- data/lib/ledger_sync/adaptors/netsuite_soap/customer/operations/find.rb +0 -49
- data/lib/ledger_sync/adaptors/netsuite_soap/ledger_serializer.rb +0 -25
- data/lib/ledger_sync/adaptors/netsuite_soap/operation.rb +0 -40
- data/lib/ledger_sync/adaptors/netsuite_soap/operation/create.rb +0 -29
- data/lib/ledger_sync/adaptors/netsuite_soap/operation/find.rb +0 -15
- data/lib/ledger_sync/adaptors/netsuite_soap/subsidiary/operations/create.rb +0 -42
- data/lib/ledger_sync/adaptors/netsuite_soap/subsidiary/operations/find.rb +0 -38
- data/lib/ledger_sync/adaptors/operation.rb +0 -215
- data/lib/ledger_sync/adaptors/quickbooks_online/account/ledger_serializer.rb +0 -37
- data/lib/ledger_sync/adaptors/quickbooks_online/account/operations/create.rb +0 -26
- data/lib/ledger_sync/adaptors/quickbooks_online/account/operations/find.rb +0 -26
- data/lib/ledger_sync/adaptors/quickbooks_online/account/operations/update.rb +0 -30
- data/lib/ledger_sync/adaptors/quickbooks_online/account/searcher.rb +0 -15
- data/lib/ledger_sync/adaptors/quickbooks_online/adaptor.rb +0 -258
- data/lib/ledger_sync/adaptors/quickbooks_online/bill/ledger_serializer.rb +0 -43
- data/lib/ledger_sync/adaptors/quickbooks_online/bill/operations/create.rb +0 -26
- data/lib/ledger_sync/adaptors/quickbooks_online/bill/operations/find.rb +0 -26
- data/lib/ledger_sync/adaptors/quickbooks_online/bill/operations/update.rb +0 -26
- data/lib/ledger_sync/adaptors/quickbooks_online/bill/searcher.rb +0 -14
- data/lib/ledger_sync/adaptors/quickbooks_online/bill_line_item/ledger_serializer.rb +0 -27
- data/lib/ledger_sync/adaptors/quickbooks_online/config.rb +0 -8
- data/lib/ledger_sync/adaptors/quickbooks_online/currency/ledger_serializer.rb +0 -17
- data/lib/ledger_sync/adaptors/quickbooks_online/customer/ledger_serializer.rb +0 -23
- data/lib/ledger_sync/adaptors/quickbooks_online/customer/operations/create.rb +0 -22
- data/lib/ledger_sync/adaptors/quickbooks_online/customer/operations/find.rb +0 -22
- data/lib/ledger_sync/adaptors/quickbooks_online/customer/operations/update.rb +0 -24
- data/lib/ledger_sync/adaptors/quickbooks_online/customer/searcher.rb +0 -13
- data/lib/ledger_sync/adaptors/quickbooks_online/dashboard_url_helper.rb +0 -57
- data/lib/ledger_sync/adaptors/quickbooks_online/department/ledger_serializer.rb +0 -38
- data/lib/ledger_sync/adaptors/quickbooks_online/department/operations/create.rb +0 -23
- data/lib/ledger_sync/adaptors/quickbooks_online/department/operations/find.rb +0 -23
- data/lib/ledger_sync/adaptors/quickbooks_online/department/operations/update.rb +0 -25
- data/lib/ledger_sync/adaptors/quickbooks_online/department/searcher.rb +0 -17
- data/lib/ledger_sync/adaptors/quickbooks_online/deposit/ledger_serializer.rb +0 -40
- data/lib/ledger_sync/adaptors/quickbooks_online/deposit/operations/create.rb +0 -25
- data/lib/ledger_sync/adaptors/quickbooks_online/deposit/operations/find.rb +0 -25
- data/lib/ledger_sync/adaptors/quickbooks_online/deposit/operations/update.rb +0 -27
- data/lib/ledger_sync/adaptors/quickbooks_online/deposit/searcher.rb +0 -13
- data/lib/ledger_sync/adaptors/quickbooks_online/deposit_line_item/ledger_serializer.rb +0 -31
- data/lib/ledger_sync/adaptors/quickbooks_online/expense/ledger_serializer.rb +0 -49
- data/lib/ledger_sync/adaptors/quickbooks_online/expense/operations/create.rb +0 -27
- data/lib/ledger_sync/adaptors/quickbooks_online/expense/operations/find.rb +0 -27
- data/lib/ledger_sync/adaptors/quickbooks_online/expense/operations/update.rb +0 -27
- data/lib/ledger_sync/adaptors/quickbooks_online/expense/searcher.rb +0 -14
- data/lib/ledger_sync/adaptors/quickbooks_online/expense_line_item/ledger_serializer.rb +0 -27
- data/lib/ledger_sync/adaptors/quickbooks_online/invoice/ledger_serializer.rb +0 -36
- data/lib/ledger_sync/adaptors/quickbooks_online/invoice/operations/create.rb +0 -27
- data/lib/ledger_sync/adaptors/quickbooks_online/invoice/operations/find.rb +0 -25
- data/lib/ledger_sync/adaptors/quickbooks_online/invoice/operations/update.rb +0 -25
- data/lib/ledger_sync/adaptors/quickbooks_online/invoice_sales_line_item/ledger_serializer.rb +0 -30
- data/lib/ledger_sync/adaptors/quickbooks_online/item/ledger_serializer.rb +0 -13
- data/lib/ledger_sync/adaptors/quickbooks_online/journal_entry/ledger_serializer.rb +0 -34
- data/lib/ledger_sync/adaptors/quickbooks_online/journal_entry/operations/create.rb +0 -23
- data/lib/ledger_sync/adaptors/quickbooks_online/journal_entry/operations/find.rb +0 -23
- data/lib/ledger_sync/adaptors/quickbooks_online/journal_entry/operations/update.rb +0 -23
- data/lib/ledger_sync/adaptors/quickbooks_online/journal_entry/searcher.rb +0 -14
- data/lib/ledger_sync/adaptors/quickbooks_online/journal_entry_line_item/ledger_serializer.rb +0 -31
- data/lib/ledger_sync/adaptors/quickbooks_online/ledger_class/ledger_serializer.rb +0 -25
- data/lib/ledger_sync/adaptors/quickbooks_online/ledger_class/operations/create.rb +0 -23
- data/lib/ledger_sync/adaptors/quickbooks_online/ledger_class/operations/find.rb +0 -23
- data/lib/ledger_sync/adaptors/quickbooks_online/ledger_class/operations/update.rb +0 -25
- data/lib/ledger_sync/adaptors/quickbooks_online/ledger_class/searcher.rb +0 -15
- data/lib/ledger_sync/adaptors/quickbooks_online/ledger_serializer.rb +0 -131
- data/lib/ledger_sync/adaptors/quickbooks_online/ledger_serializer_type/account_sub_type.rb +0 -305
- data/lib/ledger_sync/adaptors/quickbooks_online/ledger_serializer_type/account_type.rb +0 -51
- data/lib/ledger_sync/adaptors/quickbooks_online/ledger_serializer_type/amount_type.rb +0 -23
- data/lib/ledger_sync/adaptors/quickbooks_online/ledger_serializer_type/classification_type.rb +0 -23
- data/lib/ledger_sync/adaptors/quickbooks_online/ledger_serializer_type/date_type.rb +0 -23
- data/lib/ledger_sync/adaptors/quickbooks_online/ledger_serializer_type/entity_reference_type.rb +0 -49
- data/lib/ledger_sync/adaptors/quickbooks_online/ledger_serializer_type/journal_entry_line_item_type.rb +0 -20
- data/lib/ledger_sync/adaptors/quickbooks_online/ledger_serializer_type/payment_type.rb +0 -21
- data/lib/ledger_sync/adaptors/quickbooks_online/ledger_serializer_type/transaction_reference_type.rb +0 -49
- data/lib/ledger_sync/adaptors/quickbooks_online/oauth_client.rb +0 -93
- data/lib/ledger_sync/adaptors/quickbooks_online/operation.rb +0 -60
- data/lib/ledger_sync/adaptors/quickbooks_online/operation/create.rb +0 -26
- data/lib/ledger_sync/adaptors/quickbooks_online/operation/find.rb +0 -31
- data/lib/ledger_sync/adaptors/quickbooks_online/operation/full_update.rb +0 -45
- data/lib/ledger_sync/adaptors/quickbooks_online/operation/sparse_update.rb +0 -29
- data/lib/ledger_sync/adaptors/quickbooks_online/payment/ledger_serializer.rb +0 -50
- data/lib/ledger_sync/adaptors/quickbooks_online/payment/operations/create.rb +0 -30
- data/lib/ledger_sync/adaptors/quickbooks_online/payment/operations/find.rb +0 -28
- data/lib/ledger_sync/adaptors/quickbooks_online/payment/operations/update.rb +0 -28
- data/lib/ledger_sync/adaptors/quickbooks_online/payment_line_item/ledger_serializer.rb +0 -19
- data/lib/ledger_sync/adaptors/quickbooks_online/request.rb +0 -98
- data/lib/ledger_sync/adaptors/quickbooks_online/searcher.rb +0 -61
- data/lib/ledger_sync/adaptors/quickbooks_online/transfer/ledger_serializer.rb +0 -36
- data/lib/ledger_sync/adaptors/quickbooks_online/transfer/operations/create.rb +0 -24
- data/lib/ledger_sync/adaptors/quickbooks_online/transfer/operations/find.rb +0 -24
- data/lib/ledger_sync/adaptors/quickbooks_online/transfer/operations/update.rb +0 -26
- data/lib/ledger_sync/adaptors/quickbooks_online/util/adaptor_error_parser.rb +0 -103
- data/lib/ledger_sync/adaptors/quickbooks_online/util/error_matcher.rb +0 -54
- data/lib/ledger_sync/adaptors/quickbooks_online/util/error_parser.rb +0 -27
- data/lib/ledger_sync/adaptors/quickbooks_online/util/operation_error_parser.rb +0 -99
- data/lib/ledger_sync/adaptors/quickbooks_online/vendor/ledger_serializer.rb +0 -25
- data/lib/ledger_sync/adaptors/quickbooks_online/vendor/operations/create.rb +0 -27
- data/lib/ledger_sync/adaptors/quickbooks_online/vendor/operations/find.rb +0 -27
- data/lib/ledger_sync/adaptors/quickbooks_online/vendor/operations/update.rb +0 -27
- data/lib/ledger_sync/adaptors/quickbooks_online/vendor/searcher.rb +0 -15
- data/lib/ledger_sync/adaptors/quickbooks_online/webhook.rb +0 -58
- data/lib/ledger_sync/adaptors/quickbooks_online/webhook_event.rb +0 -79
- data/lib/ledger_sync/adaptors/quickbooks_online/webhook_notification.rb +0 -42
- data/lib/ledger_sync/adaptors/request.rb +0 -53
- data/lib/ledger_sync/adaptors/response.rb +0 -55
- data/lib/ledger_sync/adaptors/searcher.rb +0 -68
- data/lib/ledger_sync/adaptors/stripe/adaptor.rb +0 -45
- data/lib/ledger_sync/adaptors/stripe/config.rb +0 -6
- data/lib/ledger_sync/adaptors/stripe/customer/operations/create.rb +0 -44
- data/lib/ledger_sync/adaptors/stripe/customer/operations/delete.rb +0 -35
- data/lib/ledger_sync/adaptors/stripe/customer/operations/find.rb +0 -44
- data/lib/ledger_sync/adaptors/stripe/customer/operations/update.rb +0 -43
- data/lib/ledger_sync/adaptors/stripe/operation.rb +0 -35
- data/lib/ledger_sync/adaptors/stripe/operation/create.rb +0 -17
- data/lib/ledger_sync/adaptors/stripe/operation/delete.rb +0 -17
- data/lib/ledger_sync/adaptors/stripe/operation/find.rb +0 -15
- data/lib/ledger_sync/adaptors/stripe/operation/update.rb +0 -17
- data/lib/ledger_sync/adaptors/test/account/operations/create.rb +0 -57
- data/lib/ledger_sync/adaptors/test/account/operations/find.rb +0 -42
- data/lib/ledger_sync/adaptors/test/account/operations/invalid.rb +0 -26
- data/lib/ledger_sync/adaptors/test/account/operations/update.rb +0 -56
- data/lib/ledger_sync/adaptors/test/account/operations/valid.rb +0 -32
- data/lib/ledger_sync/adaptors/test/account/searcher.rb +0 -40
- data/lib/ledger_sync/adaptors/test/adaptor.rb +0 -47
- data/lib/ledger_sync/adaptors/test/config.rb +0 -6
- data/lib/ledger_sync/adaptors/test/customer/operations/create.rb +0 -52
- data/lib/ledger_sync/adaptors/test/customer/operations/find.rb +0 -38
- data/lib/ledger_sync/adaptors/test/customer/operations/invalid.rb +0 -22
- data/lib/ledger_sync/adaptors/test/customer/operations/update.rb +0 -22
- data/lib/ledger_sync/adaptors/test/customer/operations/valid.rb +0 -24
- data/lib/ledger_sync/adaptors/test/customer/searcher.rb +0 -40
- data/lib/ledger_sync/adaptors/test/error/adaptor_error/operations/throttle_error.rb +0 -28
- data/lib/ledger_sync/adaptors/test/expense/operations/create.rb +0 -29
- data/lib/ledger_sync/adaptors/test/expense/operations/find.rb +0 -29
- data/lib/ledger_sync/adaptors/test/expense/operations/update.rb +0 -27
- data/lib/ledger_sync/adaptors/test/ledger_serializer.rb +0 -64
- data/lib/ledger_sync/adaptors/test/operation/create.rb +0 -27
- data/lib/ledger_sync/adaptors/test/operation/find.rb +0 -29
- data/lib/ledger_sync/adaptors/test/operation/update.rb +0 -34
- data/lib/ledger_sync/adaptors/test/payment/operations/create.rb +0 -51
- data/lib/ledger_sync/adaptors/test/payment/operations/find.rb +0 -44
- data/lib/ledger_sync/adaptors/test/payment/operations/update.rb +0 -28
- data/lib/ledger_sync/adaptors/test/transfer/operations/create.rb +0 -24
- data/lib/ledger_sync/adaptors/test/transfer/operations/find.rb +0 -24
- data/lib/ledger_sync/adaptors/test/transfer/operations/update.rb +0 -24
- data/lib/ledger_sync/adaptors/test/vendor/operations/create.rb +0 -56
- data/lib/ledger_sync/adaptors/test/vendor/operations/find.rb +0 -43
- data/lib/ledger_sync/adaptors/test/vendor/operations/invalid.rb +0 -27
- data/lib/ledger_sync/adaptors/test/vendor/operations/update.rb +0 -27
- data/lib/ledger_sync/adaptors/test/vendor/operations/valid.rb +0 -33
- data/lib/ledger_sync/adaptors/test/vendor/searcher.rb +0 -41
- data/lib/ledger_sync/error/adaptor_errors.rb +0 -72
- data/lib/ledger_sync/resources/account.rb +0 -17
- data/lib/ledger_sync/resources/bill.rb +0 -25
- data/lib/ledger_sync/resources/bill_line_item.rb +0 -15
- data/lib/ledger_sync/resources/currency.rb +0 -9
- data/lib/ledger_sync/resources/customer.rb +0 -25
- data/lib/ledger_sync/resources/department.rb +0 -14
- data/lib/ledger_sync/resources/deposit.rb +0 -24
- data/lib/ledger_sync/resources/deposit_line_item.rb +0 -19
- data/lib/ledger_sync/resources/expense.rb +0 -31
- data/lib/ledger_sync/resources/expense_line_item.rb +0 -15
- data/lib/ledger_sync/resources/invoice.rb +0 -24
- data/lib/ledger_sync/resources/invoice_sales_line_item.rb +0 -17
- data/lib/ledger_sync/resources/item.rb +0 -5
- data/lib/ledger_sync/resources/journal_entry.rb +0 -20
- data/lib/ledger_sync/resources/journal_entry_line_item.rb +0 -16
- data/lib/ledger_sync/resources/ledger_class.rb +0 -14
- data/lib/ledger_sync/resources/payment.rb +0 -27
- data/lib/ledger_sync/resources/payment_line_item.rb +0 -15
- data/lib/ledger_sync/resources/subsidiary.rb +0 -8
- data/lib/ledger_sync/resources/transfer.rb +0 -20
- data/lib/ledger_sync/resources/vendor.rb +0 -19
- data/lib/ledger_sync/util/debug.rb +0 -16
- data/qa/env_spec.rb +0 -5
- data/qa/netsuite/account_spec.rb +0 -20
- data/qa/netsuite/currency_spec.rb +0 -16
- data/qa/netsuite/customer.rb +0 -76
- data/qa/netsuite/customer_spec.rb +0 -21
- data/qa/netsuite/vendor.rb +0 -76
- data/qa/netsuite/vendor_spec.rb +0 -23
- data/qa/netsuite_soap/customer_spec.rb +0 -21
- data/qa/netsuite_soap/subsidiary_spec.rb +0 -0
- data/qa/netsuite_test.rb +0 -42
- data/qa/qa_helper.rb +0 -58
- data/qa/quickbooks_online/account_spec.rb +0 -14
- data/qa/quickbooks_online/customer_spec.rb +0 -13
- data/qa/quickbooks_online/expense_spec.rb +0 -31
- data/qa/quickbooks_online/vendor_spec.rb +0 -13
- data/qa/stripe/customers_spec.rb +0 -15
- data/qa/support/adaptor_helpers.rb +0 -99
- data/qa/support/adaptor_support_setup.rb +0 -23
- data/qa/support/netsuite_helpers.rb +0 -33
- data/qa/support/netsuite_shared_examples.rb +0 -30
- data/qa/support/netsuite_soap_helpers.rb +0 -33
- data/qa/support/netsuite_soap_shared_examples.rb +0 -10
- data/qa/support/quickbooks_online_helpers.rb +0 -42
- data/qa/support/quickbooks_online_shared_examples.rb +0 -82
- data/qa/support/shared_examples.rb +0 -127
- data/qa/support/stripe_helpers.rb +0 -22
- data/qa/support/stripe_shared_examples.rb +0 -10
- data/qa/test.rb +0 -67
@@ -0,0 +1,69 @@
|
|
1
|
+
/// Removes a specific item from a list.
|
2
|
+
/// @author Hugo Giraudel
|
3
|
+
/// @param {list} $list List.
|
4
|
+
/// @param {integer} $index Index.
|
5
|
+
/// @return {list} Updated list.
|
6
|
+
@function remove-nth($list, $index) {
|
7
|
+
|
8
|
+
$result: null;
|
9
|
+
|
10
|
+
@if type-of($index) != number {
|
11
|
+
@warn "$index: #{quote($index)} is not a number for `remove-nth`.";
|
12
|
+
}
|
13
|
+
@else if $index == 0 {
|
14
|
+
@warn "List index 0 must be a non-zero integer for `remove-nth`.";
|
15
|
+
}
|
16
|
+
@else if abs($index) > length($list) {
|
17
|
+
@warn "List index is #{$index} but list is only #{length($list)} item long for `remove-nth`.";
|
18
|
+
}
|
19
|
+
@else {
|
20
|
+
|
21
|
+
$result: ();
|
22
|
+
$index: if($index < 0, length($list) + $index + 1, $index);
|
23
|
+
|
24
|
+
@for $i from 1 through length($list) {
|
25
|
+
|
26
|
+
@if $i != $index {
|
27
|
+
$result: append($result, nth($list, $i));
|
28
|
+
}
|
29
|
+
|
30
|
+
}
|
31
|
+
|
32
|
+
}
|
33
|
+
|
34
|
+
@return $result;
|
35
|
+
|
36
|
+
}
|
37
|
+
|
38
|
+
/// Gets a value from a map.
|
39
|
+
/// @author Hugo Giraudel
|
40
|
+
/// @param {map} $map Map.
|
41
|
+
/// @param {string} $keys Key(s).
|
42
|
+
/// @return {string} Value.
|
43
|
+
@function val($map, $keys...) {
|
44
|
+
|
45
|
+
@if nth($keys, 1) == null {
|
46
|
+
$keys: remove-nth($keys, 1);
|
47
|
+
}
|
48
|
+
|
49
|
+
@each $key in $keys {
|
50
|
+
$map: map-get($map, $key);
|
51
|
+
}
|
52
|
+
|
53
|
+
@return $map;
|
54
|
+
|
55
|
+
}
|
56
|
+
|
57
|
+
/// Gets a font value.
|
58
|
+
/// @param {string} $keys Key(s).
|
59
|
+
/// @return {string} Value.
|
60
|
+
@function _font($keys...) {
|
61
|
+
@return val($font, $keys...);
|
62
|
+
}
|
63
|
+
|
64
|
+
/// Gets a palette value.
|
65
|
+
/// @param {string} $keys Key(s).
|
66
|
+
/// @return {string} Value.
|
67
|
+
@function _palette($keys...) {
|
68
|
+
@return val($palette, $keys...);
|
69
|
+
}
|
@@ -0,0 +1,687 @@
|
|
1
|
+
/**
|
2
|
+
* General
|
3
|
+
*/
|
4
|
+
|
5
|
+
html {
|
6
|
+
font-family: _font(primary);
|
7
|
+
font-size: 100%;
|
8
|
+
}
|
9
|
+
|
10
|
+
body {
|
11
|
+
background: _palette(bg);
|
12
|
+
color: _palette(primary);
|
13
|
+
line-height: 1.75;
|
14
|
+
text-rendering: optimizeLegibility;
|
15
|
+
-moz-osx-font-smoothing: grayscale;
|
16
|
+
-webkit-font-smoothing: antialiased;
|
17
|
+
}
|
18
|
+
|
19
|
+
a {
|
20
|
+
border-bottom: 1px solid currentColor;
|
21
|
+
color: _palette(accent);
|
22
|
+
text-decoration: none;
|
23
|
+
-webkit-transition: .3s ease;
|
24
|
+
transition: .3s ease;
|
25
|
+
&:hover,
|
26
|
+
&:focus {
|
27
|
+
color: _palette(primary);
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
31
|
+
h1,
|
32
|
+
h2,
|
33
|
+
h3,
|
34
|
+
h4,
|
35
|
+
h5,
|
36
|
+
h6 {
|
37
|
+
color: _palette(secondary);
|
38
|
+
font-weight: bold;
|
39
|
+
line-height: 1.2;
|
40
|
+
margin: 2.25rem 0 1.125rem;
|
41
|
+
text-rendering: optimizeLegibility;
|
42
|
+
&:first-child {
|
43
|
+
margin-top: 0;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
h1 {
|
48
|
+
font-size: 2.5em;
|
49
|
+
}
|
50
|
+
|
51
|
+
h2 {
|
52
|
+
font-size: 2.125em;
|
53
|
+
}
|
54
|
+
|
55
|
+
h3 {
|
56
|
+
font-size: 1.875em;
|
57
|
+
}
|
58
|
+
|
59
|
+
h4 {
|
60
|
+
font-size: 1.5em;
|
61
|
+
}
|
62
|
+
|
63
|
+
h5 {
|
64
|
+
font-size: 1.25em;
|
65
|
+
}
|
66
|
+
|
67
|
+
h6 {
|
68
|
+
font-size: 1.125em;
|
69
|
+
}
|
70
|
+
|
71
|
+
p {
|
72
|
+
margin: 0 0 1.875em;
|
73
|
+
}
|
74
|
+
|
75
|
+
address {
|
76
|
+
font-style: italic;
|
77
|
+
margin: 0 0 1.875em;
|
78
|
+
}
|
79
|
+
|
80
|
+
mark,
|
81
|
+
ins {
|
82
|
+
background: lighten(_palette(note), 40%);
|
83
|
+
color: _palette(secondary);
|
84
|
+
padding: 0 3px;
|
85
|
+
text-decoration: none;
|
86
|
+
}
|
87
|
+
|
88
|
+
pre {
|
89
|
+
background: _palette(bg);
|
90
|
+
border-radius: 3px;
|
91
|
+
color: _palette(secondary);
|
92
|
+
font-family: _font(monospace);
|
93
|
+
font-size: 0.875rem;
|
94
|
+
line-height: 1.5;
|
95
|
+
margin: 0 0 1.875rem;
|
96
|
+
overflow: auto;
|
97
|
+
padding: 1.5rem;
|
98
|
+
text-align: left;
|
99
|
+
white-space: pre;
|
100
|
+
word-spacing: normal;
|
101
|
+
word-break: normal;
|
102
|
+
word-wrap: normal;
|
103
|
+
}
|
104
|
+
|
105
|
+
:not(pre)>code {
|
106
|
+
background: _palette(bg);
|
107
|
+
border-radius: 3px;
|
108
|
+
font-size: 0.875rem;
|
109
|
+
padding: 0.1em;
|
110
|
+
white-space: normal;
|
111
|
+
}
|
112
|
+
|
113
|
+
blockquote {
|
114
|
+
border-left: 5px solid _palette(accent);
|
115
|
+
font-size: 1.5em;
|
116
|
+
line-height: 1.33333;
|
117
|
+
margin: 1.5em 0;
|
118
|
+
padding-left: 1em;
|
119
|
+
&:first-child {
|
120
|
+
margin-top: 0;
|
121
|
+
}
|
122
|
+
p {
|
123
|
+
margin-bottom: 0.5em;
|
124
|
+
&:last-child {
|
125
|
+
margin-bottom: 0;
|
126
|
+
}
|
127
|
+
}
|
128
|
+
small,
|
129
|
+
cite {
|
130
|
+
color: _palette(meta);
|
131
|
+
display: block;
|
132
|
+
font-size: 0.75em;
|
133
|
+
font-style: normal;
|
134
|
+
font-weight: normal;
|
135
|
+
line-height: 1.5;
|
136
|
+
margin-top: 1em;
|
137
|
+
&:last-child {
|
138
|
+
margin-bottom: 0;
|
139
|
+
}
|
140
|
+
}
|
141
|
+
}
|
142
|
+
|
143
|
+
dl {
|
144
|
+
margin: 0;
|
145
|
+
}
|
146
|
+
|
147
|
+
dt {
|
148
|
+
font-weight: bold;
|
149
|
+
}
|
150
|
+
|
151
|
+
dd {
|
152
|
+
margin: 0 0 1.875em;
|
153
|
+
}
|
154
|
+
|
155
|
+
ul,
|
156
|
+
ol {
|
157
|
+
margin: 0 0 1.875em;
|
158
|
+
padding: 0 0 0 1.5em;
|
159
|
+
}
|
160
|
+
|
161
|
+
li>ul,
|
162
|
+
li>ol {
|
163
|
+
margin-bottom: 0;
|
164
|
+
}
|
165
|
+
|
166
|
+
hr {
|
167
|
+
border: 0;
|
168
|
+
border-bottom: 1px solid _palette(border);
|
169
|
+
margin: 1.875em 0;
|
170
|
+
}
|
171
|
+
|
172
|
+
table {
|
173
|
+
line-height: 1.5;
|
174
|
+
margin: 0;
|
175
|
+
max-width: 100%;
|
176
|
+
text-align: left;
|
177
|
+
width: 100%;
|
178
|
+
}
|
179
|
+
|
180
|
+
caption {
|
181
|
+
color: _palette(meta);
|
182
|
+
font-size: 0.875rem;
|
183
|
+
font-style: normal;
|
184
|
+
margin-bottom: 0.75rem;
|
185
|
+
text-align: left;
|
186
|
+
}
|
187
|
+
|
188
|
+
th,
|
189
|
+
td {
|
190
|
+
border-bottom: 1px solid _palette(border);
|
191
|
+
padding: 0.5em 5px;
|
192
|
+
}
|
193
|
+
|
194
|
+
th {
|
195
|
+
color: _palette(secondary);
|
196
|
+
font-weight: bold;
|
197
|
+
}
|
198
|
+
|
199
|
+
.responsive-table {
|
200
|
+
display: block;
|
201
|
+
margin: 0 0 1.875em;
|
202
|
+
overflow-x: auto;
|
203
|
+
width: 100%;
|
204
|
+
}
|
205
|
+
|
206
|
+
:not(.responsive-table)>table {
|
207
|
+
display: block;
|
208
|
+
margin: 0 0 1.875em;
|
209
|
+
overflow-x: auto;
|
210
|
+
-webkit-overflow-scrolling: touch;
|
211
|
+
tbody,
|
212
|
+
thead {
|
213
|
+
width: 100%;
|
214
|
+
}
|
215
|
+
tr {
|
216
|
+
width: 100%;
|
217
|
+
}
|
218
|
+
td {
|
219
|
+
min-width: 140px;
|
220
|
+
}
|
221
|
+
}
|
222
|
+
|
223
|
+
|
224
|
+
/* Form fields */
|
225
|
+
|
226
|
+
label {
|
227
|
+
color: _palette(secondary);
|
228
|
+
font-weight: bold;
|
229
|
+
line-height: 1.5;
|
230
|
+
margin-bottom: 0.25em;
|
231
|
+
}
|
232
|
+
|
233
|
+
input[type=checkbox]+label,
|
234
|
+
input[type=radio]+label {
|
235
|
+
cursor: pointer;
|
236
|
+
padding-left: 0.25em;
|
237
|
+
padding-right: 1em;
|
238
|
+
}
|
239
|
+
|
240
|
+
input[type="text"],
|
241
|
+
input[type="password"],
|
242
|
+
input[type="email"],
|
243
|
+
input[type="tel"],
|
244
|
+
input[type="number"],
|
245
|
+
input[type="search"],
|
246
|
+
input[type="url"],
|
247
|
+
select,
|
248
|
+
textarea {
|
249
|
+
background: #fff;
|
250
|
+
border: 1px solid _palette(border);
|
251
|
+
border-radius: 3px;
|
252
|
+
box-shadow: none;
|
253
|
+
box-sizing: border-box;
|
254
|
+
color: _palette(primary);
|
255
|
+
display: block;
|
256
|
+
font-size: 16px;
|
257
|
+
font-weight: normal;
|
258
|
+
line-height: 1.5;
|
259
|
+
max-width: 100%;
|
260
|
+
padding: 0.5em 15px;
|
261
|
+
width: 100%;
|
262
|
+
&:focus {
|
263
|
+
outline: 0;
|
264
|
+
}
|
265
|
+
}
|
266
|
+
|
267
|
+
.form-group {
|
268
|
+
margin-bottom: 1em;
|
269
|
+
}
|
270
|
+
|
271
|
+
.form-submit {
|
272
|
+
margin-top: 1.66667em;
|
273
|
+
}
|
274
|
+
|
275
|
+
|
276
|
+
/* Buttons */
|
277
|
+
|
278
|
+
button,
|
279
|
+
input[type="submit"],
|
280
|
+
input[type="button"],
|
281
|
+
input[type="reset"],
|
282
|
+
.button {
|
283
|
+
background-color: _palette(accent);
|
284
|
+
border: 2px solid _palette(accent);
|
285
|
+
border-radius: 3px;
|
286
|
+
box-sizing: border-box;
|
287
|
+
color: #fff;
|
288
|
+
display: inline-block;
|
289
|
+
font-size: 14px;
|
290
|
+
font-weight: bold;
|
291
|
+
letter-spacing: 0.035em;
|
292
|
+
line-height: 1.2;
|
293
|
+
padding: 0.8em 2.75em;
|
294
|
+
text-align: center;
|
295
|
+
text-decoration: none;
|
296
|
+
-webkit-transition: .3s ease;
|
297
|
+
transition: .3s ease;
|
298
|
+
vertical-align: middle;
|
299
|
+
&:hover,
|
300
|
+
&:focus,
|
301
|
+
&:active {
|
302
|
+
background-color: transparent;
|
303
|
+
color: _palette(accent);
|
304
|
+
outline: 0;
|
305
|
+
}
|
306
|
+
}
|
307
|
+
|
308
|
+
.button-secondary {
|
309
|
+
background-color: transparent;
|
310
|
+
color: _palette(accent);
|
311
|
+
&:hover,
|
312
|
+
&:focus,
|
313
|
+
&:active {
|
314
|
+
background-color: _palette(accent);
|
315
|
+
color: #fff;
|
316
|
+
}
|
317
|
+
}
|
318
|
+
|
319
|
+
.button-icon {
|
320
|
+
-webkit-box-align: center;
|
321
|
+
-ms-flex-align: center;
|
322
|
+
align-items: center;
|
323
|
+
background: 0;
|
324
|
+
border: 0;
|
325
|
+
color: inherit;
|
326
|
+
display: -webkit-inline-box;
|
327
|
+
display: -ms-inline-flexbox;
|
328
|
+
display: inline-flex;
|
329
|
+
font-size: 1em;
|
330
|
+
font-weight: normal;
|
331
|
+
-webkit-box-pack: center;
|
332
|
+
-ms-flex-pack: center;
|
333
|
+
justify-content: center;
|
334
|
+
letter-spacing: normal;
|
335
|
+
padding: 0.25em 0;
|
336
|
+
.icon {
|
337
|
+
height: 1em;
|
338
|
+
min-width: 1em;
|
339
|
+
text-align: center;
|
340
|
+
}
|
341
|
+
&:hover,
|
342
|
+
&:focus,
|
343
|
+
&:active {
|
344
|
+
color: _palette(accent);
|
345
|
+
}
|
346
|
+
}
|
347
|
+
|
348
|
+
.has-gradient {
|
349
|
+
.button {
|
350
|
+
background-color: #fff;
|
351
|
+
border-color: #fff;
|
352
|
+
color: _palette(accent);
|
353
|
+
&:hover,
|
354
|
+
&:focus,
|
355
|
+
&:active {
|
356
|
+
background-color: transparent;
|
357
|
+
color: #fff;
|
358
|
+
}
|
359
|
+
}
|
360
|
+
.button-secondary {
|
361
|
+
background-color: transparent;
|
362
|
+
color: #fff;
|
363
|
+
&:hover,
|
364
|
+
&:focus,
|
365
|
+
&:active {
|
366
|
+
background-color: #fff;
|
367
|
+
color: _palette(accent);
|
368
|
+
}
|
369
|
+
}
|
370
|
+
}
|
371
|
+
|
372
|
+
#menu-open,
|
373
|
+
#menu-close,
|
374
|
+
.guides-nav .guides-nav-toggle,
|
375
|
+
.guides-nav .submenu-toggle {
|
376
|
+
background: 0;
|
377
|
+
border: 0;
|
378
|
+
border-radius: 0;
|
379
|
+
box-shadow: none;
|
380
|
+
color: inherit;
|
381
|
+
height: 30px;
|
382
|
+
padding: 0;
|
383
|
+
position: relative;
|
384
|
+
width: 30px;
|
385
|
+
}
|
386
|
+
|
387
|
+
|
388
|
+
/* Placeholder text color */
|
389
|
+
|
390
|
+
::-webkit-input-placeholder {
|
391
|
+
color: _palette(meta);
|
392
|
+
}
|
393
|
+
|
394
|
+
::-moz-placeholder {
|
395
|
+
color: _palette(meta);
|
396
|
+
opacity: 1;
|
397
|
+
}
|
398
|
+
|
399
|
+
:-ms-input-placeholder {
|
400
|
+
color: _palette(meta);
|
401
|
+
}
|
402
|
+
|
403
|
+
::-ms-input-placeholder {
|
404
|
+
color: _palette(meta);
|
405
|
+
}
|
406
|
+
|
407
|
+
::placeholder {
|
408
|
+
color: _palette(meta);
|
409
|
+
}
|
410
|
+
|
411
|
+
|
412
|
+
/* Videos, audios and embeds */
|
413
|
+
|
414
|
+
embed,
|
415
|
+
iframe,
|
416
|
+
object,
|
417
|
+
video {
|
418
|
+
max-width: 100%;
|
419
|
+
}
|
420
|
+
|
421
|
+
.js-reframe {
|
422
|
+
margin: 0 0 1.875em;
|
423
|
+
}
|
424
|
+
|
425
|
+
|
426
|
+
/* Images */
|
427
|
+
|
428
|
+
img {
|
429
|
+
height: auto;
|
430
|
+
max-width: 100%;
|
431
|
+
}
|
432
|
+
|
433
|
+
|
434
|
+
/* Examples */
|
435
|
+
|
436
|
+
.example-container {
|
437
|
+
background: _palette(primary);
|
438
|
+
box-shadow: 5px 5px 5px #999;
|
439
|
+
padding: 20px;
|
440
|
+
margin: 20px 0;
|
441
|
+
&::before {
|
442
|
+
content: 'Example';
|
443
|
+
color: #ffffff;
|
444
|
+
font-size: 1.2em;
|
445
|
+
text-transform: uppercase;
|
446
|
+
}
|
447
|
+
:nth-child(1) {
|
448
|
+
margin-top: 10px;
|
449
|
+
}
|
450
|
+
.result {
|
451
|
+
content: 'Result';
|
452
|
+
color: #ffffff;
|
453
|
+
font-size: 1.2em;
|
454
|
+
text-transform: uppercase;
|
455
|
+
margin-bottom: 1em;
|
456
|
+
}
|
457
|
+
pre {
|
458
|
+
margin: 0;
|
459
|
+
}
|
460
|
+
}
|
461
|
+
|
462
|
+
|
463
|
+
/* Notifications */
|
464
|
+
|
465
|
+
.alert {
|
466
|
+
border-radius: 5px;
|
467
|
+
color: _palette(secondary);
|
468
|
+
margin-bottom: 1.875em;
|
469
|
+
padding: 1em 1.125em;
|
470
|
+
&.note {
|
471
|
+
background: lighten(_palette(note), 40%);
|
472
|
+
border-left: 5px solid _palette(note);
|
473
|
+
}
|
474
|
+
&.success {
|
475
|
+
background: lighten(_palette(success), 40%);
|
476
|
+
border-left: 5px solid _palette(success);
|
477
|
+
}
|
478
|
+
&.danger {
|
479
|
+
background: lighten(_palette(danger), 40%);
|
480
|
+
border-left: 5px solid _palette(danger);
|
481
|
+
}
|
482
|
+
&.warning {
|
483
|
+
background: lighten(_palette(warning), 40%);
|
484
|
+
border-left: 5px solid _palette(warning);
|
485
|
+
}
|
486
|
+
&.info {
|
487
|
+
background: lighten(_palette(info), 40%);
|
488
|
+
border-left: 5px solid _palette(info);
|
489
|
+
}
|
490
|
+
}
|
491
|
+
|
492
|
+
.important {
|
493
|
+
background: lighten(_palette(important), 40%);
|
494
|
+
border-left: 5px solid _palette(important);
|
495
|
+
border-radius: 5px;
|
496
|
+
color: _palette(secondary);
|
497
|
+
margin-bottom: 1.875em;
|
498
|
+
padding: 1em 1.125em;
|
499
|
+
}
|
500
|
+
|
501
|
+
|
502
|
+
/* Background gradient */
|
503
|
+
|
504
|
+
.has-gradient {
|
505
|
+
background: _palette(accent);
|
506
|
+
background: -webkit-linear-gradient(left, _palette(accent-alt), _palette(accent));
|
507
|
+
background: linear-gradient(to right, _palette(accent-alt), _palette(accent));
|
508
|
+
color: #fff;
|
509
|
+
position: relative;
|
510
|
+
}
|
511
|
+
|
512
|
+
|
513
|
+
/* Background Image */
|
514
|
+
|
515
|
+
.bg-img {
|
516
|
+
-webkit-animation: fadeIn20 .75s ease-in-out;
|
517
|
+
animation: fadeIn20 .75s ease-in-out;
|
518
|
+
background-position: center;
|
519
|
+
background-size: cover;
|
520
|
+
bottom: 0;
|
521
|
+
left: 0;
|
522
|
+
opacity: 0.2;
|
523
|
+
position: absolute;
|
524
|
+
right: 0;
|
525
|
+
top: 0;
|
526
|
+
}
|
527
|
+
|
528
|
+
|
529
|
+
/* Heading decoration */
|
530
|
+
|
531
|
+
.line-left {
|
532
|
+
position: relative;
|
533
|
+
&:before {
|
534
|
+
background: _palette(accent);
|
535
|
+
content: "";
|
536
|
+
height: 100%;
|
537
|
+
left: -1px;
|
538
|
+
position: absolute;
|
539
|
+
top: 0;
|
540
|
+
width: 5px;
|
541
|
+
}
|
542
|
+
}
|
543
|
+
|
544
|
+
|
545
|
+
/* Grid */
|
546
|
+
|
547
|
+
.grid {
|
548
|
+
display: -webkit-box;
|
549
|
+
display: -ms-flexbox;
|
550
|
+
display: flex;
|
551
|
+
-ms-flex-wrap: wrap;
|
552
|
+
flex-wrap: wrap;
|
553
|
+
margin-left: -0.9375em;
|
554
|
+
margin-right: -0.9375em;
|
555
|
+
}
|
556
|
+
|
557
|
+
.grid-item {
|
558
|
+
box-sizing: border-box;
|
559
|
+
-webkit-box-flex: 0;
|
560
|
+
-ms-flex: 0 0 auto;
|
561
|
+
flex: 0 0 auto;
|
562
|
+
padding-left: 0.9375em;
|
563
|
+
padding-right: 0.9375em;
|
564
|
+
}
|
565
|
+
|
566
|
+
.grid-col-2 {
|
567
|
+
.grid-item {
|
568
|
+
-ms-flex-preferred-size: 50%;
|
569
|
+
flex-basis: 50%;
|
570
|
+
max-width: 50%;
|
571
|
+
}
|
572
|
+
}
|
573
|
+
|
574
|
+
.grid-col-3 {
|
575
|
+
.grid-item {
|
576
|
+
-ms-flex-preferred-size: 33.333%;
|
577
|
+
flex-basis: 33.333%;
|
578
|
+
max-width: 33.333%;
|
579
|
+
}
|
580
|
+
}
|
581
|
+
|
582
|
+
.grid-swap {
|
583
|
+
-webkit-box-orient: horizontal;
|
584
|
+
-webkit-box-direction: reverse;
|
585
|
+
-ms-flex-direction: row-reverse;
|
586
|
+
flex-direction: row-reverse;
|
587
|
+
}
|
588
|
+
|
589
|
+
.grid-middle {
|
590
|
+
-webkit-box-align: center;
|
591
|
+
-ms-flex-align: center;
|
592
|
+
align-items: center;
|
593
|
+
}
|
594
|
+
|
595
|
+
.grid-center {
|
596
|
+
-webkit-box-pack: center;
|
597
|
+
-ms-flex-pack: center;
|
598
|
+
justify-content: center;
|
599
|
+
}
|
600
|
+
|
601
|
+
|
602
|
+
/* Text meant only for screen readers */
|
603
|
+
|
604
|
+
.screen-reader-text {
|
605
|
+
border: 0;
|
606
|
+
clip: rect(1px, 1px, 1px, 1px);
|
607
|
+
height: 1px;
|
608
|
+
overflow: hidden;
|
609
|
+
padding: 0;
|
610
|
+
position: absolute !important;
|
611
|
+
width: 1px;
|
612
|
+
}
|
613
|
+
|
614
|
+
|
615
|
+
/* Clearing floats */
|
616
|
+
|
617
|
+
.post-content {
|
618
|
+
&:after {
|
619
|
+
clear: both;
|
620
|
+
}
|
621
|
+
&:before,
|
622
|
+
&:after {
|
623
|
+
content: "";
|
624
|
+
display: table;
|
625
|
+
}
|
626
|
+
}
|
627
|
+
|
628
|
+
@media only screen and (max-width: 1000px) {
|
629
|
+
.grid {
|
630
|
+
margin-left: -1.5vw;
|
631
|
+
margin-right: -1.5vw;
|
632
|
+
}
|
633
|
+
.grid-item {
|
634
|
+
padding-left: 1.5vw;
|
635
|
+
padding-right: 1.5vw;
|
636
|
+
}
|
637
|
+
}
|
638
|
+
|
639
|
+
@media only screen and (max-width: 760px) {
|
640
|
+
.grid-col-3 {
|
641
|
+
.grid-item {
|
642
|
+
-ms-flex-preferred-size: 100%;
|
643
|
+
flex-basis: 100%;
|
644
|
+
max-width: 100%;
|
645
|
+
}
|
646
|
+
}
|
647
|
+
}
|
648
|
+
|
649
|
+
@media only screen and (max-width: 640px) {
|
650
|
+
h1,
|
651
|
+
h2,
|
652
|
+
h3,
|
653
|
+
h4,
|
654
|
+
h5,
|
655
|
+
h6 {
|
656
|
+
margin: 1.875rem 0 0.9375rem;
|
657
|
+
}
|
658
|
+
h1 {
|
659
|
+
font-size: 2em;
|
660
|
+
}
|
661
|
+
h2 {
|
662
|
+
font-size: 1.75em;
|
663
|
+
}
|
664
|
+
h3 {
|
665
|
+
font-size: 1.5em;
|
666
|
+
}
|
667
|
+
h4 {
|
668
|
+
font-size: 1.25em;
|
669
|
+
}
|
670
|
+
h5 {
|
671
|
+
font-size: 1.125em;
|
672
|
+
}
|
673
|
+
h6 {
|
674
|
+
font-size: 1em;
|
675
|
+
}
|
676
|
+
blockquote {
|
677
|
+
font-size: 1.25em;
|
678
|
+
line-height: 1.5;
|
679
|
+
}
|
680
|
+
.grid-col-2 {
|
681
|
+
.grid-item {
|
682
|
+
-ms-flex-preferred-size: 100%;
|
683
|
+
flex-basis: 100%;
|
684
|
+
max-width: 100%;
|
685
|
+
}
|
686
|
+
}
|
687
|
+
}
|