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,119 @@
|
|
1
|
+
---
|
2
|
+
title: LedgerSync
|
3
|
+
baseurl: "/"
|
4
|
+
permalink: "/:title/"
|
5
|
+
github_url: https://www.github.com/LedgerSync/ledger_sync
|
6
|
+
slack_url: https://join.slack.com/t/ledger-sync/shared_invite/zt-e5nbl8qc-eOA~5k7bg3p16_l3J7OS~Q
|
7
|
+
modern_treasury_url: https://www.moderntreasury.com
|
8
|
+
collections:
|
9
|
+
posts:
|
10
|
+
permalink: "/posts/:title/"
|
11
|
+
description: An open-source library for easily syncing with accounting software, general
|
12
|
+
ledgers, ERPs, and other ledgers.
|
13
|
+
palette: green
|
14
|
+
palettes:
|
15
|
+
blue:
|
16
|
+
sass:
|
17
|
+
accent1: "#00c6ff"
|
18
|
+
accent2: "#0072ff"
|
19
|
+
green:
|
20
|
+
sass:
|
21
|
+
accent1: "#12db5d"
|
22
|
+
accent2: "#11998e"
|
23
|
+
navy:
|
24
|
+
sass:
|
25
|
+
accent1: "#004e92"
|
26
|
+
accent2: "#000428"
|
27
|
+
violet:
|
28
|
+
sass:
|
29
|
+
accent1: "#8e2de2"
|
30
|
+
accent2: "#4a00e0"
|
31
|
+
header:
|
32
|
+
title: LedgerSync
|
33
|
+
logo_img: images/logo.svg
|
34
|
+
has_nav: true
|
35
|
+
nav_links:
|
36
|
+
- label: Home
|
37
|
+
url: "/"
|
38
|
+
type: link
|
39
|
+
has_subnav: false
|
40
|
+
- label: Guides
|
41
|
+
url: "/guides/"
|
42
|
+
type: link
|
43
|
+
has_subnav: false
|
44
|
+
- label: Reference
|
45
|
+
url: "/reference"
|
46
|
+
type: link
|
47
|
+
has_subnav: true
|
48
|
+
subnav_links:
|
49
|
+
- label: NetSuite REST
|
50
|
+
url: reference/netsuite
|
51
|
+
type: link
|
52
|
+
- label: NetSuite SOAP
|
53
|
+
url: reference/netsuite_soap
|
54
|
+
type: link
|
55
|
+
- label: QuickBooks Online
|
56
|
+
url: reference/quickbooks_online
|
57
|
+
type: link
|
58
|
+
- label: Stripe
|
59
|
+
url: reference/stripe
|
60
|
+
type: link
|
61
|
+
- label: Blog
|
62
|
+
url: "/blog"
|
63
|
+
type: link
|
64
|
+
has_subnav: false
|
65
|
+
- label: Contribute
|
66
|
+
url: "/guides/contribute"
|
67
|
+
type: link
|
68
|
+
has_subnav: false
|
69
|
+
- label: GitHub
|
70
|
+
url: https://github.com/LedgerSync/ledger_sync
|
71
|
+
type: primary
|
72
|
+
has_subnav: false
|
73
|
+
footer:
|
74
|
+
content: "© Modern Treasury Inc. All rights reserved."
|
75
|
+
links:
|
76
|
+
- label: Maintained with ❤️ in San Francisco, CA by Modern Treasury
|
77
|
+
url: https://www.moderntreasury.com
|
78
|
+
type: link
|
79
|
+
new_window: true
|
80
|
+
has_social: true
|
81
|
+
social_links:
|
82
|
+
- label: Netlify
|
83
|
+
url: https://www.netlify.com
|
84
|
+
type: svg
|
85
|
+
svg_url: https://www.netlify.com/img/global/badges/netlify-dark.svg
|
86
|
+
svg_alt: Deploys by Netlify
|
87
|
+
new_window: true
|
88
|
+
- label: Twitter
|
89
|
+
url: https://twitter.com/ModernTreasury
|
90
|
+
type: icon
|
91
|
+
icon_class: fa-twitter
|
92
|
+
new_window: true
|
93
|
+
- label: LinkedIn
|
94
|
+
url: https://www.linkedin.com/company/modern-treasury
|
95
|
+
type: icon
|
96
|
+
icon_class: fa-linkedin
|
97
|
+
new_window: true
|
98
|
+
- label: GitHub
|
99
|
+
url: https://github.com/LedgerSync/ledger_sync
|
100
|
+
type: icon
|
101
|
+
icon_class: fa-github
|
102
|
+
new_window: true
|
103
|
+
sass:
|
104
|
+
indentWidth: 4
|
105
|
+
style: nested
|
106
|
+
precision: 10
|
107
|
+
plugins:
|
108
|
+
- jekyll-menus
|
109
|
+
exclude:
|
110
|
+
- Gemfile
|
111
|
+
- Gemfile.lock
|
112
|
+
- node_modules
|
113
|
+
- vendor/bundle/
|
114
|
+
- vendor/cache/
|
115
|
+
- vendor/gems/
|
116
|
+
- vendor/ruby/
|
117
|
+
- ssg-build.sh
|
118
|
+
- LICENSE.md
|
119
|
+
- README.md
|
@@ -0,0 +1,11 @@
|
|
1
|
+
{% assign action = include.action %}
|
2
|
+
<a class="{% if action.type != 'link' and action.type != 'svg' %}button{% endif %}{% if action.type == 'secondary' %} button-secondary{% endif %}{% if action.type == 'icon' %} button-icon{% endif %}" href="{{ action.url | relative_url }}" {% assign new_window_is_not_empty=action.new_window
|
3
|
+
| is_not_empty %}{% if new_window_is_not_empty %} target="_blank" rel="noopener" {% endif %}>
|
4
|
+
{% if action.type == 'icon' and action.icon_class %}
|
5
|
+
<span class="icon fab {{ action.icon_class }}" aria-hidden="true"></span><span class="screen-reader-text">{{ action.label }}</span>
|
6
|
+
{% elsif action.type == 'svg' and action.svg_url %}
|
7
|
+
<img src="{{ action.svg_url }}" alt="{{ action.svg_alt }}" />
|
8
|
+
{% else %}
|
9
|
+
{{ action.label }}
|
10
|
+
{% endif %}
|
11
|
+
</a>
|
@@ -0,0 +1 @@
|
|
1
|
+
{% include alerts/base.html content=include.content type="danger" title=include.title %}
|
@@ -0,0 +1 @@
|
|
1
|
+
{% include alerts/base.html content=include.content type="info" title=include.title %}
|
@@ -0,0 +1 @@
|
|
1
|
+
{% include alerts/base.html content=include.content type="success" title=include.title %}
|
@@ -0,0 +1 @@
|
|
1
|
+
{% include alerts/base.html content=include.content type="warning" title=include.title %}
|
@@ -0,0 +1,4 @@
|
|
1
|
+
{% assign actions = include.actions %}
|
2
|
+
{% for action in actions %}
|
3
|
+
<a class="{% if action.type == 'primary' or action.type == 'secondary' %}button{% endif %}{% if action.type == 'secondary' %} button-secondary{% endif %}" href="{{ action.url | relative_url }}" {% assign new_window_is_not_empty = action.new_window | is_not_empty %}{% if new_window_is_not_empty %}target="_blank" rel="noopener"{% endif %}>{{ action.label }}</a>
|
4
|
+
{% endfor %}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<footer id="colophon" class="site-footer outer">
|
2
|
+
<div class="inner">
|
3
|
+
<div class="site-footer-inside">
|
4
|
+
<p class="site-info">
|
5
|
+
{% assign content_is_not_empty = site.footer.content | is_not_empty %} {% if content_is_not_empty %}
|
6
|
+
<span class="copyright">{{ site.footer.content }}</span> {% endif %} {% for action in site.footer.links %} {% include action_link.html action=action %} {% endfor %}
|
7
|
+
</p>
|
8
|
+
<!-- .site-info -->
|
9
|
+
{% assign has_social_is_not_empty = site.footer.has_social | is_not_empty %} {% if has_social_is_not_empty %}
|
10
|
+
<div class="social-links">
|
11
|
+
{% for action in site.footer.social_links %} {% include action_link.html action=action %} {% endfor %}
|
12
|
+
</div>
|
13
|
+
<!-- .social-links -->
|
14
|
+
{% endif %}
|
15
|
+
</div>
|
16
|
+
<!-- .site-footer-inside -->
|
17
|
+
</div>
|
18
|
+
<!-- .inner -->
|
19
|
+
</footer>
|
20
|
+
<!-- .site-footer -->
|
@@ -0,0 +1,8 @@
|
|
1
|
+
There is a group of passionate maintainers happy to help you get started with LedgerSync. There are two main
|
2
|
+
channels for discussing LedgerSync: [Github]({{ site.github_url }}) and
|
3
|
+
[Slack]({{ site.slack_url }}).
|
4
|
+
|
5
|
+
## Report a bug
|
6
|
+
|
7
|
+
Please [open an issue on Github]({{ site.github_url }}/issues/new) to report any bugs. Please check if the bug
|
8
|
+
has previously been reported and comment on the open issue with your use case.
|
@@ -0,0 +1,29 @@
|
|
1
|
+
<nav id="guides-nav" class="guides-nav">
|
2
|
+
<div id="guides-nav-inside" class="guides-nav-inside sticky">
|
3
|
+
<button id="guides-nav-toggle" class="guides-nav-toggle">Navigate<span class="icon-angle-right" aria-hidden="true"></span></button>
|
4
|
+
<div class="guides-toc-wrap">
|
5
|
+
<ul id="guides-toc" class="guides-toc">
|
6
|
+
{% assign site = include.site %} {% assign page = include.page %} {% assign root_page_path = include.root_folder | append: 'index.md' %} {% assign root_page = root_page_path | get_page %}
|
7
|
+
<li class="toc-item{% if page.path == root_page.path %} current{% endif %}">
|
8
|
+
<a href="{{ root_page.url | relative_url }}">{{ root_page.title }}</a>
|
9
|
+
</li>
|
10
|
+
|
11
|
+
{% for section in include.sections %} {% assign section_folder = include.root_folder | append: section %} {% assign section_page_path = section_folder | append: '/index.md' %} {% assign section_page = section_page_path | get_page %} {% assign child_pages
|
12
|
+
= section_folder | get_pages | where_exp: "item", "item.basename != 'index.md'" | sort: 'weight' %} {% assign child_count = child_pages | size %} {% if child_count > 0 %} {% assign has_children = true %}{% else %} {% assign has_children
|
13
|
+
= false %}{% endif %} {% if page.path == section_page.path %} {% assign is_current_page = true %}{% else %} {% assign is_current_page = false %}{% endif %} {% if page.rel_dir == section_page.rel_dir or page.path == section_page.path %}
|
14
|
+
{% assign is_active = true %}{% else %} {% assign is_active = false %}{% endif %}
|
15
|
+
<li class="toc-item{% assign has_children_is_not_empty = has_children | is_not_empty %}{% if has_children_is_not_empty %} has-children{% endif %}{% assign is_current_page_is_not_empty = is_current_page | is_not_empty %}{% if is_current_page_is_not_empty %} current{% endif %}{% assign is_active_is_not_empty = is_active | is_not_empty %}{% if is_active_is_not_empty %} active{% endif %}">
|
16
|
+
<a href="{{ section_page.url | relative_url }}">{{ section_page.title }}</a> {% assign has_children_is_not_empty = has_children | is_not_empty %} {% if has_children_is_not_empty %}
|
17
|
+
<button class="submenu-toggle"><span class="screen-reader-text">Submenu</span><span class="icon-angle-right" aria-hidden="true"></span></button> {% include guides_submenu.html child_pages=child_pages page=page site=site %} {% endif
|
18
|
+
%}
|
19
|
+
</li>
|
20
|
+
{% endfor %}
|
21
|
+
|
22
|
+
</ul>
|
23
|
+
<!-- .guides-toc -->
|
24
|
+
</div>
|
25
|
+
<!-- .guides-toc-wrap -->
|
26
|
+
</div>
|
27
|
+
<!-- .guides-nav-inside -->
|
28
|
+
</nav>
|
29
|
+
<!-- .guides-nav -->
|
@@ -0,0 +1,35 @@
|
|
1
|
+
<header id="masthead" class="site-header outer">
|
2
|
+
<div class="inner">
|
3
|
+
<div class="site-header-inside">
|
4
|
+
<div class="site-branding">
|
5
|
+
{% assign logo_img_is_not_empty = site.header.logo_img | is_not_empty %}
|
6
|
+
{% if logo_img_is_not_empty %}
|
7
|
+
<p class="site-logo"><a href="{{ site.header.url | default: '/' | relative_url }}"><img src="{{ site.header.logo_img | relative_url }}" alt="{{ site.header.title }}" /></a></p>
|
8
|
+
{% else %}
|
9
|
+
<p class="site-title"><a href="{{ site.header.url | default: '/' | relative_url }}">{{ site.header.title }}</a></p>
|
10
|
+
{% endif %}
|
11
|
+
</div><!-- .site-branding -->
|
12
|
+
{% assign has_nav_is_not_empty = site.header.has_nav | is_not_empty %}
|
13
|
+
{% if has_nav_is_not_empty %}
|
14
|
+
<nav id="main-navigation" class="site-navigation" aria-label="Main Navigation">
|
15
|
+
<div class="site-nav-inside">
|
16
|
+
<button id="menu-close" class="menu-toggle"><span class="screen-reader-text">Open Menu</span><span class="icon-close" aria-hidden="true"></span></button>
|
17
|
+
<ul class="menu">
|
18
|
+
{% for action in site.header.nav_links %}
|
19
|
+
<li class="menu-item{% if action.has_subnav and action.subnav_links %} has-children{% endif %}{% if page.url == action.url %} current{% endif %}{% if action.type != 'link' %} menu-button{% endif %}">
|
20
|
+
|
21
|
+
{% include action_link.html action=action %}
|
22
|
+
{% if action.has_subnav and action.subnav_links %}
|
23
|
+
|
24
|
+
{% include submenu.html submenu=action.subnav_links menu_class='submenu' page=page %}
|
25
|
+
{% endif %}
|
26
|
+
</li>
|
27
|
+
{% endfor %}
|
28
|
+
</ul>
|
29
|
+
</div><!-- .site-nav-inside -->
|
30
|
+
</nav><!-- .site-navigation -->
|
31
|
+
<button id="menu-open" class="menu-toggle"><span class="screen-reader-text">Close Menu</span><span class="icon-menu" aria-hidden="true"></span></button>
|
32
|
+
{% endif %}
|
33
|
+
</div><!-- .site-header-inside -->
|
34
|
+
</div><!-- .inner -->
|
35
|
+
</header><!-- .site-header -->
|
@@ -0,0 +1 @@
|
|
1
|
+
QuickBooks Online
|
@@ -0,0 +1 @@
|
|
1
|
+
{% include ledgers/netsuite_summary_shared.md page=page site=site %}
|
@@ -0,0 +1 @@
|
|
1
|
+
{% include ledgers/netsuite_summary_shared.md page=page site=site %}
|
@@ -0,0 +1 @@
|
|
1
|
+
NetSuite is an enterprise ERP, providing highly scalable and felxible bookkeeping and accounting software.
|
@@ -0,0 +1 @@
|
|
1
|
+
QuickBooks Online
|
data/documentation/site/_includes/reference/netsuite/authentication/_token_based_authentication.md
ADDED
@@ -0,0 +1,99 @@
|
|
1
|
+
## Overview
|
2
|
+
|
3
|
+
In order to authenticate to NetSuite, you need the following:
|
4
|
+
|
5
|
+
- `account_id`
|
6
|
+
- `consumer_key`
|
7
|
+
- `consumer_secret`
|
8
|
+
- `token_id`
|
9
|
+
- `token_secret`
|
10
|
+
|
11
|
+
We will walk through how to get each value in the following sections.
|
12
|
+
|
13
|
+
<div class="note"><strong>Note:</strong>
|
14
|
+
You need to have sufficient permissions to set up your account for API authentication.
|
15
|
+
</div>
|
16
|
+
|
17
|
+
## Prerequisites
|
18
|
+
|
19
|
+
### REST Web Services feature
|
20
|
+
|
21
|
+
Enable the feature at Setup > Company > Setup Tasks > Enable Features, in the SuiteTalk (Web Services) section, on the SuiteCloud subtab. To use the feature, you must accept the SuiteCloud Terms of Service.
|
22
|
+
|
23
|
+
### SuiteAnalytics Workbook feature
|
24
|
+
|
25
|
+
Enable the feature at Setup > Company > Setup Tasks > Enable Features, on the Analytics subtab.
|
26
|
+
|
27
|
+
### Permissions
|
28
|
+
|
29
|
+
You will require the following permissions:
|
30
|
+
|
31
|
+
- REST Web Services
|
32
|
+
- Log in using Access Tokens
|
33
|
+
- SuiteAnalytics Workbook
|
34
|
+
|
35
|
+
Your permissions vary based on which role you are assigned. You can edit roles in Setup > Users/Roles > User Management > Manage Roles. Ensure your user is assigned a role with the aforementioned permissions in order to complete the setup.
|
36
|
+
|
37
|
+
<div class="note"><strong>Note:</strong>
|
38
|
+
<p>
|
39
|
+
There are two different sets of permissions you will need:
|
40
|
+
</p>
|
41
|
+
<p>
|
42
|
+
<ul>
|
43
|
+
<li>The permissions mentioned above are to <strong>set up</strong> your integration.</li>
|
44
|
+
<li>Later when creating a token, you will need to assign a user with a role that has the necessary permissions to <strong>access records</strong> (e.g. payments, invoices, bills, etc.)</li>
|
45
|
+
</ul>
|
46
|
+
</p>
|
47
|
+
|
48
|
+
<p>
|
49
|
+
These can be the same or different roles. They can be assigned to one or many users.
|
50
|
+
</p>
|
51
|
+
</div>
|
52
|
+
|
53
|
+
## Account ID
|
54
|
+
|
55
|
+
The `account_id` can be found in the URL when you are logged into the NetSuite dashboard in your browser. It will look
|
56
|
+
something like the following:
|
57
|
+
|
58
|
+
```
|
59
|
+
https://<account_id>.app.netsuite.com/app/center/card.nl?sc=-29&whence=
|
60
|
+
```
|
61
|
+
|
62
|
+
Example:
|
63
|
+
|
64
|
+
```
|
65
|
+
https://123456.app.netsuite.com/app/center/card.nl?sc=-29&whence=
|
66
|
+
```
|
67
|
+
|
68
|
+
The Account ID precedes `.app.netsuite.com`, which in this case is `123456`. Note that your ID may include `-sb1`
|
69
|
+
(representing "Sandbox 1"). Be sure to include the entire ID as it appears in the URL, including any letters, numbers,
|
70
|
+
and hyphens.
|
71
|
+
|
72
|
+
## Consumer Keys
|
73
|
+
|
74
|
+
The consumer keys are retrieved when you [create an Integration record](https://system.netsuite.com/app/help/helpcenter.nl?fid=bridgehead_4249032125.html&whence=). You can view [the NetSuite documentation](https://system.netsuite.com/app/help/helpcenter.nl?fid=bridgehead_4249032125.html&whence=) for the official documentation.
|
75
|
+
|
76
|
+
At the last step of creating an Integration record, save the consumer key and consumer secret. They will not be shown again once you navigate away from the page.
|
77
|
+
|
78
|
+
## Token
|
79
|
+
|
80
|
+
To obtain your `token_key` and `token_secret`, you will need to [create a Token](https://system.netsuite.com/app/help/helpcenter.nl?fid=bridgehead_4254081947.html). View [the NetSuite documentation](https://system.netsuite.com/app/help/helpcenter.nl?fid=bridgehead_4254081947.html) for the official documentation.
|
81
|
+
|
82
|
+
You will use the integration record you created along with your user (or the user who has the necessary permissions to access records).
|
83
|
+
|
84
|
+
At the last step, save the token key and token secret.
|
85
|
+
|
86
|
+
## Conclusion
|
87
|
+
|
88
|
+
Now with these values, you can successfully authenticate to NetSuite. Simply pass the values into the client:
|
89
|
+
|
90
|
+
{% highlight ruby linenos %}
|
91
|
+
client = LedgerSync::Ledgers::QuickBooksOnline::Client.new(
|
92
|
+
account_id: account_id,
|
93
|
+
consumer_key: consumer_key,
|
94
|
+
consumer_secret: consumer_secret,
|
95
|
+
token_id: token_id,
|
96
|
+
token_secret: token_secret
|
97
|
+
)
|
98
|
+
{% endhighlight %}
|
99
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
title: Authentication
|
3
|
+
layout: reference_netsuite
|
4
|
+
ledger: netsuite
|
5
|
+
---
|
6
|
+
|
7
|
+
For the REST API, NetSuite offers two types of authentication:
|
8
|
+
|
9
|
+
- Token Based Authentication (TBA)
|
10
|
+
- Oauth 2.0
|
11
|
+
|
12
|
+
This client currently uses TBA. While Oauth 2.0 may be available in the future, TBA was chosen for the following reasons:
|
13
|
+
|
14
|
+
1. The SOAP API only supports TBA.
|
15
|
+
2. NetSuite users will still need to go through a manual setup (e.g. Integration record and Role) regardless of the method.
|