business_central 0.9.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (152) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +37 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE +373 -0
  5. data/README.md +67 -0
  6. data/Rakefile +41 -0
  7. data/azure-pipelines.yml +30 -0
  8. data/business_central.gemspec +31 -0
  9. data/lib/business_central/account.rb +9 -0
  10. data/lib/business_central/aged_accounts_payable.rb +10 -0
  11. data/lib/business_central/aged_accounts_receivable.rb +10 -0
  12. data/lib/business_central/api_methods.rb +220 -0
  13. data/lib/business_central/balance_sheet.rb +10 -0
  14. data/lib/business_central/base.rb +56 -0
  15. data/lib/business_central/cash_flow_statement.rb +10 -0
  16. data/lib/business_central/client.rb +128 -0
  17. data/lib/business_central/company.rb +9 -0
  18. data/lib/business_central/company_information.rb +10 -0
  19. data/lib/business_central/countries_region.rb +9 -0
  20. data/lib/business_central/currency.rb +9 -0
  21. data/lib/business_central/customer.rb +9 -0
  22. data/lib/business_central/customer_financial_details.rb +10 -0
  23. data/lib/business_central/customer_payment.rb +14 -0
  24. data/lib/business_central/customer_payments_journal.rb +10 -0
  25. data/lib/business_central/customer_sales.rb +10 -0
  26. data/lib/business_central/dimension.rb +10 -0
  27. data/lib/business_central/dimension_line.rb +14 -0
  28. data/lib/business_central/employee.rb +10 -0
  29. data/lib/business_central/general_ledger_entry.rb +10 -0
  30. data/lib/business_central/income_statement.rb +10 -0
  31. data/lib/business_central/irs_1099_code.rb +10 -0
  32. data/lib/business_central/item.rb +10 -0
  33. data/lib/business_central/item_category.rb +10 -0
  34. data/lib/business_central/journal.rb +10 -0
  35. data/lib/business_central/journal_line.rb +14 -0
  36. data/lib/business_central/payment_method.rb +10 -0
  37. data/lib/business_central/payment_term.rb +10 -0
  38. data/lib/business_central/picture.rb +10 -0
  39. data/lib/business_central/purchase_invoice.rb +10 -0
  40. data/lib/business_central/purchase_invoice_line.rb +43 -0
  41. data/lib/business_central/request_builder.rb +60 -0
  42. data/lib/business_central/response/response_handler.rb +57 -0
  43. data/lib/business_central/retained_earnings_statement.rb +9 -0
  44. data/lib/business_central/sales_credit_memo.rb +10 -0
  45. data/lib/business_central/sales_credit_memo_line.rb +14 -0
  46. data/lib/business_central/sales_invoice.rb +10 -0
  47. data/lib/business_central/sales_invoice_line.rb +25 -0
  48. data/lib/business_central/sales_order.rb +9 -0
  49. data/lib/business_central/sales_order_line.rb +14 -0
  50. data/lib/business_central/sales_quote.rb +10 -0
  51. data/lib/business_central/sales_quote_line.rb +14 -0
  52. data/lib/business_central/shipment_method.rb +10 -0
  53. data/lib/business_central/subscription.rb +63 -0
  54. data/lib/business_central/tax_area.rb +10 -0
  55. data/lib/business_central/tax_group.rb +10 -0
  56. data/lib/business_central/trial_balance.rb +10 -0
  57. data/lib/business_central/unit_of_measure.rb +10 -0
  58. data/lib/business_central/url_builder.rb +33 -0
  59. data/lib/business_central/vendor.rb +10 -0
  60. data/lib/business_central/vendor_purchase.rb +10 -0
  61. data/lib/business_central/version.rb +3 -0
  62. data/lib/business_central.rb +67 -0
  63. data/test/business_central/account_test.rb +26 -0
  64. data/test/business_central/aged_accounts_payable_test.rb +8 -0
  65. data/test/business_central/aged_accounts_receivable_test.rb +8 -0
  66. data/test/business_central/base_test.rb +28 -0
  67. data/test/business_central/company_information_test.rb +8 -0
  68. data/test/business_central/company_test.rb +27 -0
  69. data/test/business_central/countries_region_test.rb +69 -0
  70. data/test/business_central/currency_test.rb +8 -0
  71. data/test/business_central/customer_financial_details_test.rb +20 -0
  72. data/test/business_central/customer_payment_test.rb +8 -0
  73. data/test/business_central/customer_payments_journal_test.rb +8 -0
  74. data/test/business_central/customer_sales_test.rb +8 -0
  75. data/test/business_central/customer_test.rb +138 -0
  76. data/test/business_central/dimension_line_test.rb +8 -0
  77. data/test/business_central/dimension_test.rb +8 -0
  78. data/test/business_central/employee_test.rb +8 -0
  79. data/test/business_central/general_ledger_entry_test.rb +8 -0
  80. data/test/business_central/income_statement_test.rb +8 -0
  81. data/test/business_central/irs_1099_code_test.rb +8 -0
  82. data/test/business_central/item_category_test.rb +8 -0
  83. data/test/business_central/item_test.rb +8 -0
  84. data/test/business_central/journal_line_test.rb +8 -0
  85. data/test/business_central/journal_test.rb +8 -0
  86. data/test/business_central/payment_method_test.rb +8 -0
  87. data/test/business_central/payment_term_test.rb +27 -0
  88. data/test/business_central/picture_test.rb +8 -0
  89. data/test/business_central/purchase_invoice_line_test.rb +33 -0
  90. data/test/business_central/purchase_invoice_test.rb +8 -0
  91. data/test/business_central/request_builder_test.rb +43 -0
  92. data/test/business_central/response/response_handler_test.rb +58 -0
  93. data/test/business_central/sales_credit_memo_line_test.rb +8 -0
  94. data/test/business_central/sales_credit_memo_test.rb +8 -0
  95. data/test/business_central/sales_invoice_line_test.rb +58 -0
  96. data/test/business_central/sales_invoice_test.rb +40 -0
  97. data/test/business_central/sales_order_line_test.rb +8 -0
  98. data/test/business_central/sales_order_test.rb +32 -0
  99. data/test/business_central/sales_quote_line_test.rb +8 -0
  100. data/test/business_central/sales_quote_test.rb +8 -0
  101. data/test/business_central/shipment_method_test.rb +19 -0
  102. data/test/business_central/subscription_test.rb +0 -0
  103. data/test/business_central/tax_area_test.rb +19 -0
  104. data/test/business_central/tax_group_test.rb +19 -0
  105. data/test/business_central/trial_balance_test.rb +8 -0
  106. data/test/business_central/unit_of_measure_test.rb +19 -0
  107. data/test/business_central/url_builder_test.rb +19 -0
  108. data/test/business_central/vendor_purchase_test.rb +8 -0
  109. data/test/business_central/vendor_test.rb +8 -0
  110. data/test/client_test.rb +72 -0
  111. data/test/fixtures/filter_customers_200.json +1 -0
  112. data/test/fixtures/get_account_200.json +1 -0
  113. data/test/fixtures/get_accounts_200.json +1 -0
  114. data/test/fixtures/get_companies_200.json +1 -0
  115. data/test/fixtures/get_company_200.json +1 -0
  116. data/test/fixtures/get_countriesRegion_200.json +1 -0
  117. data/test/fixtures/get_countriesRegions_200.json +1 -0
  118. data/test/fixtures/get_currencies_200.json +1 -0
  119. data/test/fixtures/get_currency_200.json +1 -0
  120. data/test/fixtures/get_customer_200.json +1 -0
  121. data/test/fixtures/get_customer_expanded_200.json +1 -0
  122. data/test/fixtures/get_customer_financial_details_200.json +1 -0
  123. data/test/fixtures/get_customers_200.json +1 -0
  124. data/test/fixtures/get_paymentMethod_200.json +1 -0
  125. data/test/fixtures/get_paymentMethods_200.json +1 -0
  126. data/test/fixtures/get_paymentTerm_200.json +1 -0
  127. data/test/fixtures/get_paymentTerms_200.json +1 -0
  128. data/test/fixtures/get_purchaseInvoiceLine_200.json +1 -0
  129. data/test/fixtures/get_purchaseInvoiceLines_200.json +1 -0
  130. data/test/fixtures/get_purchaseInvoice_200.json +1 -0
  131. data/test/fixtures/get_purchase_invoices_200.json +1 -0
  132. data/test/fixtures/get_salesInvoiceLine_200.json +1 -0
  133. data/test/fixtures/get_salesInvoiceLines_200.json +1 -0
  134. data/test/fixtures/get_salesInvoiceLines_single_200.json +1 -0
  135. data/test/fixtures/get_salesInvoice_200.json +1 -0
  136. data/test/fixtures/get_salesInvoices_200.json +1 -0
  137. data/test/fixtures/get_salesOrder_200.json +1 -0
  138. data/test/fixtures/get_salesOrders_200.json +1 -0
  139. data/test/fixtures/get_shipmentMethods_200.json +1 -0
  140. data/test/fixtures/get_taxAreas_200.json +1 -0
  141. data/test/fixtures/get_taxGroups_200.json +1 -0
  142. data/test/fixtures/get_unitsOfMeasure_200.json +1 -0
  143. data/test/fixtures/patch_countriesRegion_200.json +1 -0
  144. data/test/fixtures/patch_customer_200.json +1 -0
  145. data/test/fixtures/post_countriesRegion_200.json +1 -0
  146. data/test/fixtures/post_customer_200.json +1 -0
  147. data/test/fixtures/post_customer_409.json +1 -0
  148. data/test/fixtures/post_salesInvoiceLine_200.json +1 -0
  149. data/test/fixtures/post_salesInvoice_200.json +1 -0
  150. data/test/fixtures/post_subscription_200.json +1 -0
  151. data/test/test_helper.rb +86 -0
  152. metadata +408 -0
@@ -0,0 +1 @@
1
+ {"@odata.context":"https://wiise.api.bc.dynamics.com/v1.0/cronus.com.au/api/v1.0/$metadata#companies(93b4dabd-da6b-416c-8f92-6c98a0e4d523)/salesOrders/$entity","@odata.etag":"W/\"JzQ0OytnZm9udFJTN3J6R1JaVFpveVFlZTJndDV1MkRYWUZ4RmwycEVld3l1dm89MTswMDsn\"","id":"131b76ee-8005-41cd-a298-040b07445cad","number":"101001","externalDocumentNumber":"","orderDate":"2019-04-02","customerId":"b450d7af-0de7-4ad6-9ae6-97d14b9e9a72","contactId":"","customerNumber":"10000","customerName":"Adatum Corporation","billToName":"Adatum Corporation","billToCustomerId":"b450d7af-0de7-4ad6-9ae6-97d14b9e9a72","billToCustomerNumber":"10000","shipToName":"Adatum Corporation","shipToContact":"Anthony Lording","currencyId":"00000000-0000-0000-0000-000000000000","currencyCode":"AUD","pricesIncludeTax":false,"paymentTermsId":"d42b10ec-e0f8-459d-8d84-4acb4423732b","salesperson":"PS","partialShipping":true,"requestedDeliveryDate":"2019-04-03","discountAmount":0,"discountAppliedBeforeTax":true,"totalAmountExcludingTax":31716,"totalTaxAmount":4757.4,"totalAmountIncludingTax":36473.4,"fullyShipped":true,"status":"Draft","lastModifiedDateTime":"2019-06-28T03:27:26.983Z","phoneNumber":"","email":"anthony.lording@contoso.com","sellingPostalAddress":{"street":"Station Road, 21","city":"42000","state":"SA","countryLetterCode":"AU","postalCode":"5000"},"billingPostalAddress":{"street":"Station Road, 21","city":"42000","state":"SA","countryLetterCode":"AU","postalCode":"5000"},"shippingPostalAddress":{"street":"Station Road, 21","city":"42000","state":"SA","countryLetterCode":"AU","postalCode":"5000"}}
@@ -0,0 +1 @@
1
+ {"@odata.context":"https://wiise.api.bc.dynamics.com/v1.0/cronus.com.au/api/v1.0/$metadata#companies(93b4dabd-da6b-416c-8f92-6c98a0e4d523)/salesOrders","value":[{"@odata.etag":"W/\"JzQ0OytnZm9udFJTN3J6R1JaVFpveVFlZTJndDV1MkRYWUZ4RmwycEVld3l1dm89MTswMDsn\"","id":"131b76ee-8005-41cd-a298-040b07445cad","number":"101001","externalDocumentNumber":"","orderDate":"2019-04-02","customerId":"b450d7af-0de7-4ad6-9ae6-97d14b9e9a72","contactId":"","customerNumber":"10000","customerName":"Adatum Corporation","billToName":"Adatum Corporation","billToCustomerId":"b450d7af-0de7-4ad6-9ae6-97d14b9e9a72","billToCustomerNumber":"10000","shipToName":"Adatum Corporation","shipToContact":"Anthony Lording","currencyId":"00000000-0000-0000-0000-000000000000","currencyCode":"AUD","pricesIncludeTax":false,"paymentTermsId":"d42b10ec-e0f8-459d-8d84-4acb4423732b","salesperson":"PS","partialShipping":true,"requestedDeliveryDate":"2019-04-03","discountAmount":0,"discountAppliedBeforeTax":true,"totalAmountExcludingTax":31716,"totalTaxAmount":4757.4,"totalAmountIncludingTax":36473.4,"fullyShipped":true,"status":"Draft","lastModifiedDateTime":"2019-06-28T03:27:26.983Z","phoneNumber":"","email":"anthony.lording@contoso.com","sellingPostalAddress":{"street":"Station Road, 21","city":"42000","state":"SA","countryLetterCode":"AU","postalCode":"5000"},"billingPostalAddress":{"street":"Station Road, 21","city":"42000","state":"SA","countryLetterCode":"AU","postalCode":"5000"},"shippingPostalAddress":{"street":"Station Road, 21","city":"42000","state":"SA","countryLetterCode":"AU","postalCode":"5000"}},{"@odata.etag":"W/\"JzQ0O2k4U0pVQUNQeVFaN1JGVHNVTEpxYUVjZHZUSmZFWDh1MnhVc1ZvblUzdEE9MTswMDsn\"","id":"e0092627-4219-4880-bbc4-60996031d62d","number":"101002","externalDocumentNumber":"","orderDate":"2019-05-01","customerId":"b450d7af-0de7-4ad6-9ae6-97d14b9e9a72","contactId":"","customerNumber":"10000","customerName":"Adatum Corporation","billToName":"Adatum Corporation","billToCustomerId":"b450d7af-0de7-4ad6-9ae6-97d14b9e9a72","billToCustomerNumber":"10000","shipToName":"Adatum Corporation","shipToContact":"Anthony Lording","currencyId":"00000000-0000-0000-0000-000000000000","currencyCode":"AUD","pricesIncludeTax":false,"paymentTermsId":"d42b10ec-e0f8-459d-8d84-4acb4423732b","salesperson":"PS","partialShipping":true,"requestedDeliveryDate":"2019-05-02","discountAmount":0,"discountAppliedBeforeTax":true,"totalAmountExcludingTax":4328,"totalTaxAmount":649.2,"totalAmountIncludingTax":4977.2,"fullyShipped":true,"status":"Draft","lastModifiedDateTime":"2019-06-28T03:27:27.037Z","phoneNumber":"","email":"anthony.lording@contoso.com","sellingPostalAddress":{"street":"Station Road, 21","city":"42000","state":"SA","countryLetterCode":"AU","postalCode":"5000"},"billingPostalAddress":{"street":"Station Road, 21","city":"42000","state":"SA","countryLetterCode":"AU","postalCode":"5000"},"shippingPostalAddress":{"street":"Station Road, 21","city":"42000","state":"SA","countryLetterCode":"AU","postalCode":"5000"}},{"@odata.etag":"W/\"JzQ0O2R3eHNhdkhqR2hQdXpLR3FaL3NQVFpxeGxNTVpRcEYwWGlhZFFHSjNmOEU9MTswMDsn\"","id":"5ae831ff-ef5e-42b5-9c1b-67025c356e51","number":"101004","externalDocumentNumber":"","orderDate":"2019-05-13","customerId":"8ea3e0c3-7fe4-4021-a5ef-5ce6eec86a67","contactId":"","customerNumber":"40000","customerName":"Alpine Ski House","billToName":"Alpine Ski House","billToCustomerId":"8ea3e0c3-7fe4-4021-a5ef-5ce6eec86a67","billToCustomerNumber":"40000","shipToName":"Alpine Ski House","shipToContact":"Ian Deberry","currencyId":"00000000-0000-0000-0000-000000000000","currencyCode":"AUD","pricesIncludeTax":false,"paymentTermsId":"d42b10ec-e0f8-459d-8d84-4acb4423732b","salesperson":"PS","partialShipping":true,"requestedDeliveryDate":"2019-05-14","discountAmount":0,"discountAppliedBeforeTax":true,"totalAmountExcludingTax":1080,"totalTaxAmount":0,"totalAmountIncludingTax":1080,"fullyShipped":true,"status":"Draft","lastModifiedDateTime":"2019-06-28T03:27:27.077Z","phoneNumber":"","email":"ian.deberry@contoso.com","sellingPostalAddress":{"street":"Walter-Gropius-Strasse 5\r\nPark Stadt Schwabing","city":"Munchen","state":"","countryLetterCode":"DE","postalCode":"DE-80807"},"billingPostalAddress":{"street":"Walter-Gropius-Strasse 5\r\nPark Stadt Schwabing","city":"Munchen","state":"","countryLetterCode":"DE","postalCode":"DE-80807"},"shippingPostalAddress":{"street":"Walter-Gropius-Strasse 5\r\nPark Stadt Schwabing","city":"Munchen","state":"","countryLetterCode":"DE","postalCode":"DE-80807"}},{"@odata.etag":"W/\"JzQ0O0toYjZMZEhmd2psaGYyL2tESjkxYmZTZElvN3VDbkU2V3lMUCtHL1dxOTA9MTswMDsn\"","id":"72a70978-f76d-41ce-8663-e8de933ebb26","number":"101003","externalDocumentNumber":"","orderDate":"2019-04-22","customerId":"ee8fbd3d-5b83-4c7d-a4d2-4f704ca0c1e3","contactId":"","customerNumber":"30000","customerName":"School of Fine Art","billToName":"School of Fine Art","billToCustomerId":"ee8fbd3d-5b83-4c7d-a4d2-4f704ca0c1e3","billToCustomerNumber":"30000","shipToName":"School of Fine Art","shipToContact":"Meagan Bond","currencyId":"00000000-0000-0000-0000-000000000000","currencyCode":"AUD","pricesIncludeTax":false,"paymentTermsId":"d42b10ec-e0f8-459d-8d84-4acb4423732b","salesperson":"PS","partialShipping":true,"requestedDeliveryDate":"2019-04-23","discountAmount":0,"discountAppliedBeforeTax":true,"totalAmountExcludingTax":9800,"totalTaxAmount":0,"totalAmountIncludingTax":9800,"fullyShipped":true,"status":"Draft","lastModifiedDateTime":"2019-06-28T03:27:27.127Z","phoneNumber":"","email":"meagan.bond@contoso.com","sellingPostalAddress":{"street":"10 High Tower","city":"Miami","state":"","countryLetterCode":"US","postalCode":"US-FL 37125"},"billingPostalAddress":{"street":"10 High Tower","city":"Miami","state":"","countryLetterCode":"US","postalCode":"US-FL 37125"},"shippingPostalAddress":{"street":"10 High Tower","city":"Miami","state":"","countryLetterCode":"US","postalCode":"US-FL 37125"}}]}
@@ -0,0 +1 @@
1
+ {"@odata.context":"https://wiise.api.bc.dynamics.com/v2.0/fivesenses.com.au/sandbox2/api/v1.0/$metadata#companies(c1d4ee9f-466d-4d55-bb11-064f46193843)/shipmentMethods","value":[{"@odata.etag":"W/\"JzQ0OzhUY2Jzd1NnekJlbDljYVJjR2t0SVJjYTBEYXF1N1lvbVB3Ty92VDdHSWc9MTswMDsn\"","id":"b79a2fa2-81c4-45bf-848a-001155c6337a","code":"DELIVERY","displayName":"DELIVERY","lastModifiedDateTime":"0001-01-01T00:00:00Z"},{"@odata.etag":"W/\"JzQ0O1JLVmVzdW9heDNoenM1R3JPTThFYkhTQkdaYUxPeFZKdkJlcFRncWJQOWs9MTswMDsn\"","id":"099675bb-a109-40e1-8aa7-0b4979324bd1","code":"CFR","displayName":"Cost and Freight","lastModifiedDateTime":"0001-01-01T00:00:00Z"},{"@odata.etag":"W/\"JzQ0O0JJK1lZYTIxMk42QnlnYk9tWVJXczVheW5Xdy9HZVRFdU5kUTIzSFZyblE9MTswMDsn\"","id":"97cb1e93-bba3-4bb6-ab08-352ed68ca988","code":"FOB","displayName":"Free on Board","lastModifiedDateTime":"0001-01-01T00:00:00Z"},{"@odata.etag":"W/\"JzQ0O05URi81RnFqRkNpZzJSMVZsTU1MVzB3THJtVXRZL045Wk5OMHZUbUNLK0k9MTswMDsn\"","id":"5f772ca6-22f0-4482-8ef8-3f084d8e0726","code":"PICKUP","displayName":"Pickup at Location","lastModifiedDateTime":"0001-01-01T00:00:00Z"},{"@odata.etag":"W/\"JzQ0O0VwWkttM2lzUDVGV0MrWmdjNnBITGEzSU1Ha3VPRTRyR05iMjJHZU4veWs9MTswMDsn\"","id":"34b69dc1-1979-47a8-b79c-5ba5a58d4b78","code":"DDU","displayName":"Delivered Duty Unpaid","lastModifiedDateTime":"0001-01-01T00:00:00Z"},{"@odata.etag":"W/\"JzQ0OzdHTkpiWk5HNnIrWnF1UzF5aXNma0ptNnJLS05ROExBd3BWd2pRaXNrcFE9MTswMDsn\"","id":"02409534-43f5-483b-9996-66689ab1c6e9","code":"FAS","displayName":"Free Alongside Ship","lastModifiedDateTime":"0001-01-01T00:00:00Z"},{"@odata.etag":"W/\"JzQ0O3Y0UHlXS1Z3MzlkZ0o2ZVdGUCtjZU15WU5hTFBMcC9DWXk5ZXBtSDBBVWs9MTswMDsn\"","id":"800c6efb-4e0b-405f-b4c9-66b8a5d01b49","code":"DES","displayName":"Delivered ex Ship","lastModifiedDateTime":"0001-01-01T00:00:00Z"},{"@odata.etag":"W/\"JzQ0O09KNHlRYmY1Smx3Nld1cHBZbW5mYzJsVmN4VkxxQnBTQkdmOHJDK3VkL0U9MTswMDsn\"","id":"23464f47-f694-4e60-ac75-6e4b56c1f8d0","code":"DDP","displayName":"Delivered Duty Paid","lastModifiedDateTime":"0001-01-01T00:00:00Z"},{"@odata.etag":"W/\"JzQ0O3BiRVo5TGVJaEtBczhRWTZSSDBmcGtQOE02Rm9lek84VWNMMytxSVpNM0k9MTswMDsn\"","id":"f176dfdd-1c93-4d6c-ad61-96a047064579","code":"CIP","displayName":"Carriage and Insurance Paid","lastModifiedDateTime":"0001-01-01T00:00:00Z"},{"@odata.etag":"W/\"JzQ0O0I1Z0V2TTRNb2xONktrT0FQdUp3aDlMTGJUcTNkbCt3S3ZDMVM0REtRSGc9MTswMDsn\"","id":"45813cc2-cc4b-4923-9b55-97010aa0b333","code":"DEQ","displayName":"Delivered ex Quay","lastModifiedDateTime":"0001-01-01T00:00:00Z"},{"@odata.etag":"W/\"JzQ0O3ZyTjVCYlVoSnlhaFBNYVIzRlcyNzlPRzZwdWxVendhRnp3eFY3aE9MRE09MTswMDsn\"","id":"ebd8b15a-807f-45b2-8109-9a12b26f9b82","code":"CPT","displayName":"Carriage Paid to","lastModifiedDateTime":"0001-01-01T00:00:00Z"},{"@odata.etag":"W/\"JzQ0O1o5NnZQTThiakVkVHhCWm1nN2t1ZTJBcWJkZWM1MkxZblZXYUlaV3JtZm89MTswMDsn\"","id":"2b260b4a-732a-40ce-876d-9dcf3cf51d4b","code":"CIF","displayName":"Cost Insurance and Freight","lastModifiedDateTime":"0001-01-01T00:00:00Z"},{"@odata.etag":"W/\"JzQ0O0ZhSnJwMUxFYTR4RWF2UEtqcmI3ak5wNTA4MDM1ZWRva1U5S0xmVUVOSFk9MTswMDsn\"","id":"bbf8e64b-73c8-4fc7-a117-b3189fd0dc36","code":"DAF","displayName":"Delivered at Frontier","lastModifiedDateTime":"0001-01-01T00:00:00Z"},{"@odata.etag":"W/\"JzQ0O0dLVmRvb1MvUU84aFRyczRzQmp6cG9mK0tWenVUSWx3ZDREWmFLY0I0OFU9MTswMDsn\"","id":"7bead084-50a7-4c70-a6a5-ce3d3b0b80f6","code":"FCA","displayName":"Free Carrier","lastModifiedDateTime":"0001-01-01T00:00:00Z"},{"@odata.etag":"W/\"JzQ0O3k0aFErcUtKNk1vTWtmZWF2T2lnU012RHZPdHo5T2VRVVhPdWFNTjJWa1k9MTswMDsn\"","id":"895115df-a4b7-4a96-9072-dbccfa13fd07","code":"EXW","displayName":"Ex Warehouse","lastModifiedDateTime":"0001-01-01T00:00:00Z"}]}
@@ -0,0 +1 @@
1
+ {"@odata.context":"https://wiise.api.bc.dynamics.com/v2.0/fivesenses.com.au/sandbox2/api/v1.0/$metadata#companies(c1d4ee9f-466d-4d55-bb11-064f46193843)/taxAreas","value":[{"@odata.etag":"W/\"JzQ0OzQvRjRBcDFUYkR3WUZ6S01pb3pubFVjdXVEUmJzZk1JV290R3BhOE41Wnc9MTswMDsn\"","id":"64bc7e34-5c31-403d-a692-88563e97b4e5","code":"INTERCO","displayName":"","taxType":"VAT","lastModifiedDateTime":"2018-11-15T23:25:56.047Z"},{"@odata.etag":"W/\"JzQ0O2t3WVJXQmpMR1NPQTFSYi9RZW0xVGphOEtiSjYwRXNVVzhlSmtlT2FtdG89MTswMDsn\"","id":"773f3f51-142b-489a-bd06-cd3fd1b61737","code":"FOREIGN","displayName":"","taxType":"VAT","lastModifiedDateTime":"2018-11-15T23:25:56.047Z"},{"@odata.etag":"W/\"JzQ0O0JtOUpha0xPTWppUXFGaUZhTXhXdkVuZ1VweHdhbDlseEppV0xFQXBRM289MTswMDsn\"","id":"ed43f7f8-2ab0-4e4e-922c-fb031c33119c","code":"DOMESTIC","displayName":"","taxType":"VAT","lastModifiedDateTime":"2018-11-15T23:25:56.033Z"}]}
@@ -0,0 +1 @@
1
+ {"@odata.context":"https://wiise.api.bc.dynamics.com/v1.0/fivesenses.com.au/sandbox/api/v1.0/$metadata#companies(93b4dabd-da6b-416c-8f92-6c98a0e4d523)/taxGroups","value":[{"@odata.etag":"W/\"JzQ0O2FVS3Y0RXJDSlF4NXlhQUdqRkdwMUxHSVBxVlVkRi9qaktqUmlxY3o3dHM9MTswMDsn\"","id":"38a392df-caa2-4537-9429-5641a06ada6e","code":"NO GST","displayName":"Miscellaneous without GST","taxType":"VAT","lastModifiedDateTime":"2019-06-24T17:54:18.303Z"},{"@odata.etag":"W/\"JzQ0O2RnN242M3JudDN1dDBjVkIzTXV1eGlIdFd5VFdCMnlod0hiR2NhS0FHbUE9MTswMDsn\"","id":"28a7e52a-ebb3-4a55-b0f0-76432d7b332e","code":"GST10","displayName":"Miscellaneous 10 GST","taxType":"VAT","lastModifiedDateTime":"2019-06-24T17:54:18.287Z"},{"@odata.etag":"W/\"JzQ0OzZUdUp3TVovZHp2dTNaQkRXcFc5QkIyVTd2cW5WZWV5cTNpYUcrN282M1U9MTswMDsn\"","id":"ddc22210-b584-4d7c-8173-7ef3c5991ab0","code":"INPUTTAX","displayName":"Input Taxed","taxType":"VAT","lastModifiedDateTime":"2019-06-24T17:54:18.297Z"},{"@odata.etag":"W/\"JzQ0O1lJZkNTa0VFQ3E1YnJWcUFPaTNueWJhemNURlFGZ1QxOHdJMFlwYjF0Vmc9MTswMDsn\"","id":"67dcdccb-3660-4610-a7d2-9efa85e6cfdd","code":"GST15","displayName":"Miscellaneous 15 GST","taxType":"VAT","lastModifiedDateTime":"2019-06-24T17:54:18.29Z"},{"@odata.etag":"W/\"JzQ0OytWdzBLeXNJQjRoU1F3aHlVWG5NWTlOSWxjbi93djhmcTVXU1N2NGZSRGM9MTswMDsn\"","id":"14ab2681-a62b-4947-9e5e-f574e94bc8ee","code":"ASSET","displayName":"Asset with 10% GST","taxType":"VAT","lastModifiedDateTime":"2019-06-24T17:54:18.277Z"}]}
@@ -0,0 +1 @@
1
+ {"@odata.context":"https://wiise.api.bc.dynamics.com/v2.0/fivesenses.com.au/sandbox2/api/v1.0/$metadata#companies(c1d4ee9f-466d-4d55-bb11-064f46193843)/unitsOfMeasure","value":[{"@odata.etag":"W/\"JzQ0O0ZqbjFrK3p3dUUzQWhhMjVwaXJxblNOY0JwSFd3QVNYMGh0UmFlRjJDeVE9MTswMDsn\"","id":"4d0d92e3-0647-4eba-83b5-10af3a33c432","code":"BOX","displayName":"Box","internationalStandardCode":"BX","lastModifiedDateTime":"2018-11-22T05:47:06.073Z"},{"@odata.etag":"W/\"JzQ0OzcwVFhSNVV0bC9NQzFENFJ4ckROT2RwTHAyUkVkUkFHUEo5K3BUdGI2SXc9MTswMDsn\"","id":"7615857d-479e-4c50-be13-257c9051f64c","code":"PACK","displayName":"Pack","internationalStandardCode":"PK","lastModifiedDateTime":"2018-11-22T05:47:06.243Z"},{"@odata.etag":"W/\"JzQ0O0pLcDdBVXhnSnp5RWdQb2NEbUM1R09FYkJjaURQWmVxeEtGRHhDV0xmbzg9MTswMDsn\"","id":"2dd8dfa7-3ab1-49a1-838b-5705a3ac7772","code":"HOUR","displayName":"Hour","internationalStandardCode":"HUR","lastModifiedDateTime":"2018-11-22T05:47:06.153Z"},{"@odata.etag":"W/\"JzQ0OzVOMTE0ekFvclFLekpnM3BnM2h5a2NjOTlPdjZpWlhyWE53K1o4Y0NEVHM9MTswMDsn\"","id":"60619b55-d6b7-461d-8b6c-5baa9e29873a","code":"MILES","displayName":"Miles","internationalStandardCode":"1A","lastModifiedDateTime":"2018-11-22T05:47:06.217Z"},{"@odata.etag":"W/\"JzQ0OzU4NFhtUDdFZmJpT1lZZmJ6TWdZTEVNN1RQWG0wRmZhTVMxODRGUzFhVEU9MTswMDsn\"","id":"72f8a827-bd40-4432-9c3b-698fad0cf707","code":"CAN","displayName":"Can","internationalStandardCode":"CA","lastModifiedDateTime":"2018-11-22T05:47:06.107Z"},{"@odata.etag":"W/\"JzQ0O2hPM1Q0L3ZvOHBObEpSTG9pQjFqSCtQODludjlGd0M1ZC9VZkM3OVFXR1E9MTswMDsn\"","id":"b360796d-93f8-4166-94c6-75f5e089ffda","code":"PCS","displayName":"Piece","internationalStandardCode":"EA","lastModifiedDateTime":"2018-11-22T05:47:06.277Z"},{"@odata.etag":"W/\"JzQ0O1Jyc1NSMVVzSXFKSGlBc3BTMlIyaHI3YlJ6SUt0U2E0VEJXeFdFWUFxbUE9MTswMDsn\"","id":"a35bc6a2-dc05-45b0-84fd-82c040472974","code":"LB","displayName":"Pound","internationalStandardCode":"LB","lastModifiedDateTime":"2018-11-22T05:47:06.2Z"},{"@odata.etag":"W/\"JzQ0O3h1NjNCV21nVXNEaVQrdkZ0SmJiZnpBRnNOeTNPc2dQUDBmTzE3VDRJYWs9MTswMDsn\"","id":"7d0aac20-764e-4fee-a359-923a0e43175c","code":"DAY","displayName":"Day","internationalStandardCode":"DAY","lastModifiedDateTime":"2018-11-22T05:47:06.12Z"},{"@odata.etag":"W/\"JzQ0OzZ3dG1KV09MT3Y2cTArb1dVbCsxRjZNd3BURE1BYmE5aXRJeFliRU12UWc9MTswMDsn\"","id":"07e0b6c2-786f-4709-b40c-ad51a1118e9b","code":"KM","displayName":"Kilometers","internationalStandardCode":"KMT","lastModifiedDateTime":"2018-11-22T05:47:06.183Z"},{"@odata.etag":"W/\"JzQ0O0NCM2pvc0lhMDVONS94dnpmbXpRVktMQnkrd3A3bUw0TXlzaDNhUEY2YmM9MTswMDsn\"","id":"510ba629-820e-4f29-9d8c-b1289a7c04a3","code":"GM","displayName":"Grams","internationalStandardCode":"GMS","lastModifiedDateTime":"2018-11-22T05:47:06.137Z"},{"@odata.etag":"W/\"JzQ0OzZtc2NYS3FzTGZ5WDFYbG9qRkRYaFJpanR0em9EZDZzY2pqNFcva3R4cEE9MTswMDsn\"","id":"d1b000a4-c8cd-48de-beb9-c5bf77c3ef8e","code":"PALLET","displayName":"Pallet","internationalStandardCode":"PF","lastModifiedDateTime":"2018-11-22T05:47:06.26Z"},{"@odata.etag":"W/\"JzQ0O0FCZUFMb2crWk16WWFlY2x4MmlVSzl6Y21Ydjh6WGhlOW9RWGg0UGhnT0E9MTswMDsn\"","id":"00481885-6531-4e26-9644-d6f488aba6ca","code":"KG","displayName":"Kilo","internationalStandardCode":"KG","lastModifiedDateTime":"2018-11-22T05:47:06.167Z"},{"@odata.etag":"W/\"JzQ0O3ErU1ZDbkN6cWQ0WTl6Yk5ucjBqbUU0QW5tOUs1WnBVUkx1L3NEbVA1ZXc9MTswMDsn\"","id":"fc6e21e8-20ad-4519-8a54-e41ebed0143e","code":"OZ","displayName":"Ounce","internationalStandardCode":"OZ","lastModifiedDateTime":"2018-11-22T05:47:06.227Z"}]}
@@ -0,0 +1 @@
1
+ {"@odata.context":"https://api.businesscentral.dynamics.com/v1.0/cronos.com/api/beta/$metadata#companies(7fc353e6-de7a-41aa-a0e9-722507d6bdf1)/countriesRegions/$entity","@odata.etag":"W/\"JzQ0O3o1SFlrc20vYkk3dGZqRmdnV0dRVHgxSTNWQW5EaVhFcmN2cUN2OUFwdDQ9MTswMDsn\"","id":"e9ff2710-5117-442e-9464-d1ed8fbb00a2","code":"AU","displayName":"AustraliaFeet","addressFormat":"City+County+Post Code (no comma)","lastModifiedDateTime":"2018-10-31T05:45:28.173Z"}
@@ -0,0 +1 @@
1
+ {"@odata.context":"https://wiise.api.bc.dynamics.com/v1.0/cronus.com.au/api/v1.0/$metadata#companies(93b4dabd-da6b-416c-8f92-6c98a0e4d523)/customers/$entity","@odata.etag":"W/\"JzQ0O2JSbStNaE01dTh1d1p2MXJNWEE3S3Q5RlV2NVAwM0NMTGtUMHFjWlhLcUE9MTswMDsn\"","id":"ee8fbd3d-5b83-4c7d-a4d2-4f704ca0c1e3","number":"30000","displayName":"Updated Customer Name","type":"Company","phoneNumber":"","email":"meagan.bond@contoso.com","website":"","taxLiable":false,"taxAreaId":"3e8ab4f9-113d-4734-96ff-969bd7a3f313","taxAreaDisplayName":"Other customers and vendors (not MISC)","taxRegistrationNumber":"733495789","currencyId":"00000000-0000-0000-0000-000000000000","currencyCode":"AUD","paymentTermsId":"d42b10ec-e0f8-459d-8d84-4acb4423732b","shipmentMethodId":"00000000-0000-0000-0000-000000000000","paymentMethodId":"00000000-0000-0000-0000-000000000000","blocked":" ","lastModifiedDateTime":"2019-06-28T02:46:05.2Z","address":{"street":"10 High Tower","city":"Miami","state":"","countryLetterCode":"US","postalCode":"US-FL 37125"}}
@@ -0,0 +1 @@
1
+ {"@odata.context":"https://wiise.api.bc.dynamics.com/v1.0/cronus.com.au/api/v1.0/$metadata#companies(93b4dabd-da6b-416c-8f92-6c98a0e4d523)/countriesRegions/$entity","@odata.etag":"W/\"JzQ0O1R0UGY5cDJiaXZ4clc2Ym5kem0xTklWZ3ZYUGFRS3c3WkNFSVprUkl0ekU9MTswMDsn\"","id":"ff28c39b-895f-4915-9036-fd4c0f65abe6","code":"NC","displayName":"New Country","addressFormat":"City+County+Post Code","lastModifiedDateTime":"2019-06-28T03:37:09.057Z"}
@@ -0,0 +1 @@
1
+ {"@odata.context":"https://wiise.api.bc.dynamics.com/v1.0/cronus.com.au/api/v1.0/$metadata#companies(93b4dabd-da6b-416c-8f92-6c98a0e4d523)/customers/$entity","@odata.etag":"W/\"JzQ0O1VaT1l3aEVSVTZRdThLelV2KzFIdGFiSHczYVk3UjlqNHdFVS9IUmk1L289MTswMDsn\"","id":"9c323e18-cce1-4651-a356-a6822d932d3c","number":"99999","displayName":"Coho Winery","type":"Person","phoneNumber":"","email":"jim.glynn@cronuscorp.net","website":"","taxLiable":false,"taxAreaId":"5e96b48b-e330-4091-9146-e823ebac7e44","taxAreaDisplayName":"Domestic customers and vendors","taxRegistrationNumber":"28012001T","currencyId":"bfdcbbf1-1357-412c-926f-05d4ddafbbd4","currencyCode":"CAD","paymentTermsId":"9e846824-c73a-4649-b827-138b941781c2","shipmentMethodId":"00000000-0000-0000-0000-000000000000","paymentMethodId":"a07c9767-f90f-4a4a-9649-11063d8eeb8c","blocked":" ","lastModifiedDateTime":"2019-06-28T03:48:01.48Z","address":{"street":"192 Market Square","city":"Atlanta","state":"GA","countryLetterCode":"US","postalCode":"31772"}}
@@ -0,0 +1 @@
1
+ {"error":{"code":"Internal_EntityWithSameKeyExists","message":"The record in table Customer already exists. Identification fields and values: No.='4281'"}}
@@ -0,0 +1 @@
1
+ {"@odata.context":"https://wiise.api.bc.dynamics.com/v1.0/cronus.com/sandbox/api/v1.0/$metadata#companies(93b4dabd-da6b-416c-8f92-6c98a0e4d523)/salesInvoices(aa4426d0-a7d3-4272-be0d-bfe1fa642094)/salesInvoiceLines/$entity","@odata.etag":"W/\"JzQ0O3JNdk5JWnRNNTd5dS9mcnA0b2h0ekl3b1VyZDU3TUIwZFVqWUxib1AvRlk9MTswMDsn\"","id":"aa4426d0-a7d3-4272-be0d-bfe1fa642094-10000","documentId":"aa4426d0-a7d3-4272-be0d-bfe1fa642094","sequence":10000,"itemId":"85d0f468-79a7-4835-a162-11cbd3c82804","accountId":"00000000-0000-0000-0000-000000000000","lineType":"Item","description":"Conference Bundle 1-6","unitOfMeasureId":"4ebac1ee-cb30-4c43-90d3-a5bfc003a328","unitPrice":246.553,"quantity":10,"discountAmount":0,"discountPercent":0,"discountAppliedBeforeTax":false,"amountExcludingTax":2465.53,"taxCode":"GST15","taxPercent":0,"totalTaxAmount":0,"amountIncludingTax":2465.53,"invoiceDiscountAllocation":0,"netAmount":2465.53,"netTaxAmount":0,"netAmountIncludingTax":2465.53,"shipmentDate":"2019-07-01","lineDetails":{"number":"1925-W","displayName":"Conference Bundle 1-6"},"unitOfMeasure":{"code":"PCS","displayName":"Piece","symbol":null,"unitConversion":null}}
@@ -0,0 +1 @@
1
+ {"@odata.context":"https://wiise.api.bc.dynamics.com/v1.0/cronus.com/sandbox/api/v1.0/$metadata#companies(93b4dabd-da6b-416c-8f92-6c98a0e4d523)/salesInvoices/$entity","@odata.etag":"W/\"JzQ0OzEybE50ZUN6TUphcG9HaVprMXJKRHlNdHpnMndXbkxzL2NZMmU1L1lvOTA9MTswMDsn\"","id":"aa4426d0-a7d3-4272-be0d-bfe1fa642094","number":"103404","externalDocumentNumber":"","invoiceDate":"2019-07-01","dueDate":"2019-07-08","customerPurchaseOrderReference":"","customerId":"ee8fbd3d-5b83-4c7d-a4d2-4f704ca0c1e3","contactId":"","customerNumber":"30000","customerName":"Updated Customer Name","billToName":"Updated Customer Name","billToCustomerId":"ee8fbd3d-5b83-4c7d-a4d2-4f704ca0c1e3","billToCustomerNumber":"30000","shipToName":"Updated Customer Name","shipToContact":"Meagan Bond","currencyId":"bfdcbbf1-1357-412c-926f-05d4ddafbbd4","currencyCode":"CAD","orderId":"00000000-0000-0000-0000-000000000000","orderNumber":"","paymentTermsId":"9e846824-c73a-4649-b827-138b941781c2","shipmentMethodId":"00000000-0000-0000-0000-000000000000","salesperson":"PS","pricesIncludeTax":false,"remainingAmount":0,"discountAmount":0,"discountAppliedBeforeTax":false,"totalAmountExcludingTax":0,"totalTaxAmount":0,"totalAmountIncludingTax":0,"status":"Draft","lastModifiedDateTime":"2019-07-01T02:31:54.327Z","phoneNumber":"","email":"meagan.bond@contoso.com","sellingPostalAddress":{"street":"10 High Tower","city":"Miami","state":"","countryLetterCode":"US","postalCode":"US-FL 37125"},"billingPostalAddress":{"street":"10 High Tower","city":"Miami","state":"","countryLetterCode":"US","postalCode":"US-FL 37125"},"shippingPostalAddress":{"street":"10 High Tower","city":"Miami","state":"","countryLetterCode":"US","postalCode":"US-FL 37125"}}
@@ -0,0 +1 @@
1
+ {"@odata.context":"https://api.businesscentral.dynamics.com/v1.0/api/beta/$metadata#subscriptions/$entity","@odata.etag":"W/\"JzQ0OzBPMWQ1RmQ3Umk0cUFWT0d4eXVBMEFYVGFNcE56aE9mMkorVXBPOG1IL2M9MTswMDsn\"","subscriptionId":"b5fef27e183c45d9a5bfe4dfa3b6f147","notificationUrl":"https://9de5d086.ngrok.io/webhooks/e0f2ceee-7dd8-42b2-b911-91989eb7f839","resource":"/api/beta/companies(da65c2c0-e0c0-49da-acfe-b63ac4787e2c)/customers","userId":"554bf621-59e8-4159-b9d8-add67882fae0","lastModifiedDateTime":"2019-03-29T03:21:02Z","clientState":"","expirationDateTime":"2019-04-01T03:21:02Z"}
@@ -0,0 +1,86 @@
1
+ require 'rubygems'
2
+ require 'bundler'
3
+ require 'test/unit'
4
+ require 'mocha/test_unit'
5
+
6
+ require 'simplecov'
7
+ require 'simplecov-cobertura'
8
+
9
+ require 'webmock'
10
+ require 'webmock/test_unit'
11
+
12
+
13
+ SimpleCov.configure do
14
+ add_filter %r{^/opt/hostedtoolcache/}
15
+ load_profile 'test_frameworks'
16
+ end
17
+
18
+ SimpleCov.formatters = [
19
+ SimpleCov::Formatter::HTMLFormatter,
20
+ SimpleCov::Formatter::CoberturaFormatter
21
+ ]
22
+
23
+ # Start SimpleCov before including the library
24
+ SimpleCov.start
25
+ require 'business_central'
26
+
27
+ begin
28
+ Bundler.setup(:default, :development)
29
+ rescue Bundler::BundlerError => e
30
+ $stderr.puts e.message
31
+ $stderr.puts "Run `bundle install` to install missing gems"
32
+ exit e.status_code
33
+ end
34
+
35
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
36
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
37
+
38
+ class Test::Unit::TestCase; end
39
+
40
+ def bc_client
41
+ BusinessCentral::Client.new({
42
+ api_tenant: "cronos.com",
43
+ api_username: "foo",
44
+ api_password: "bar",
45
+ api_host: "https://api.businesscentral.dynamics.com",
46
+ test_mode: true
47
+ })
48
+ end
49
+
50
+ def fixture_path
51
+ File.expand_path('fixtures', __dir__)
52
+ end
53
+
54
+ def stub_get(path)
55
+ stub_request(:get, api_url(path))
56
+ end
57
+
58
+ def stub_post(path)
59
+ stub_request(:post, api_url(path))
60
+ end
61
+
62
+ def stub_patch(path)
63
+ stub_request(:patch, api_url(path))
64
+ end
65
+
66
+ def stub_delete(path)
67
+ stub_request(:delete, api_url(path))
68
+ end
69
+
70
+ def fixture(file)
71
+ File.new(fixture_path + '/' + file)
72
+ end
73
+
74
+ def api_url(url)
75
+ "https://api.businesscentral.dynamics.com/v1.0/cronos.com/api/v1.0/#{url}"
76
+ end
77
+
78
+ def stub_headers
79
+ {
80
+ 'Accept'=>'*/*',
81
+ 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3',
82
+ 'Authorization'=>'Basic Zm9vOmJhcg==',
83
+ 'Host'=>'api.businesscentral.dynamics.com',
84
+ 'User-Agent'=>'Ruby'
85
+ }
86
+ end
metadata ADDED
@@ -0,0 +1,408 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: business_central
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.9.3
5
+ platform: ruby
6
+ authors:
7
+ - Five Senses Coffee
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-07-01 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: oauth2
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.16'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.16'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: simplecov
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: simplecov-cobertura
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: test-unit
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: webmock
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: mocha
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: ci_reporter_test_unit
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ description: Interact with the Microsoft Dynamics365 Business Central API
140
+ email:
141
+ - dev@fivesenses.com.au
142
+ executables: []
143
+ extensions: []
144
+ extra_rdoc_files: []
145
+ files:
146
+ - ".gitignore"
147
+ - Gemfile
148
+ - LICENSE
149
+ - README.md
150
+ - Rakefile
151
+ - azure-pipelines.yml
152
+ - business_central.gemspec
153
+ - lib/business_central.rb
154
+ - lib/business_central/account.rb
155
+ - lib/business_central/aged_accounts_payable.rb
156
+ - lib/business_central/aged_accounts_receivable.rb
157
+ - lib/business_central/api_methods.rb
158
+ - lib/business_central/balance_sheet.rb
159
+ - lib/business_central/base.rb
160
+ - lib/business_central/cash_flow_statement.rb
161
+ - lib/business_central/client.rb
162
+ - lib/business_central/company.rb
163
+ - lib/business_central/company_information.rb
164
+ - lib/business_central/countries_region.rb
165
+ - lib/business_central/currency.rb
166
+ - lib/business_central/customer.rb
167
+ - lib/business_central/customer_financial_details.rb
168
+ - lib/business_central/customer_payment.rb
169
+ - lib/business_central/customer_payments_journal.rb
170
+ - lib/business_central/customer_sales.rb
171
+ - lib/business_central/dimension.rb
172
+ - lib/business_central/dimension_line.rb
173
+ - lib/business_central/employee.rb
174
+ - lib/business_central/general_ledger_entry.rb
175
+ - lib/business_central/income_statement.rb
176
+ - lib/business_central/irs_1099_code.rb
177
+ - lib/business_central/item.rb
178
+ - lib/business_central/item_category.rb
179
+ - lib/business_central/journal.rb
180
+ - lib/business_central/journal_line.rb
181
+ - lib/business_central/payment_method.rb
182
+ - lib/business_central/payment_term.rb
183
+ - lib/business_central/picture.rb
184
+ - lib/business_central/purchase_invoice.rb
185
+ - lib/business_central/purchase_invoice_line.rb
186
+ - lib/business_central/request_builder.rb
187
+ - lib/business_central/response/response_handler.rb
188
+ - lib/business_central/retained_earnings_statement.rb
189
+ - lib/business_central/sales_credit_memo.rb
190
+ - lib/business_central/sales_credit_memo_line.rb
191
+ - lib/business_central/sales_invoice.rb
192
+ - lib/business_central/sales_invoice_line.rb
193
+ - lib/business_central/sales_order.rb
194
+ - lib/business_central/sales_order_line.rb
195
+ - lib/business_central/sales_quote.rb
196
+ - lib/business_central/sales_quote_line.rb
197
+ - lib/business_central/shipment_method.rb
198
+ - lib/business_central/subscription.rb
199
+ - lib/business_central/tax_area.rb
200
+ - lib/business_central/tax_group.rb
201
+ - lib/business_central/trial_balance.rb
202
+ - lib/business_central/unit_of_measure.rb
203
+ - lib/business_central/url_builder.rb
204
+ - lib/business_central/vendor.rb
205
+ - lib/business_central/vendor_purchase.rb
206
+ - lib/business_central/version.rb
207
+ - test/business_central/account_test.rb
208
+ - test/business_central/aged_accounts_payable_test.rb
209
+ - test/business_central/aged_accounts_receivable_test.rb
210
+ - test/business_central/base_test.rb
211
+ - test/business_central/company_information_test.rb
212
+ - test/business_central/company_test.rb
213
+ - test/business_central/countries_region_test.rb
214
+ - test/business_central/currency_test.rb
215
+ - test/business_central/customer_financial_details_test.rb
216
+ - test/business_central/customer_payment_test.rb
217
+ - test/business_central/customer_payments_journal_test.rb
218
+ - test/business_central/customer_sales_test.rb
219
+ - test/business_central/customer_test.rb
220
+ - test/business_central/dimension_line_test.rb
221
+ - test/business_central/dimension_test.rb
222
+ - test/business_central/employee_test.rb
223
+ - test/business_central/general_ledger_entry_test.rb
224
+ - test/business_central/income_statement_test.rb
225
+ - test/business_central/irs_1099_code_test.rb
226
+ - test/business_central/item_category_test.rb
227
+ - test/business_central/item_test.rb
228
+ - test/business_central/journal_line_test.rb
229
+ - test/business_central/journal_test.rb
230
+ - test/business_central/payment_method_test.rb
231
+ - test/business_central/payment_term_test.rb
232
+ - test/business_central/picture_test.rb
233
+ - test/business_central/purchase_invoice_line_test.rb
234
+ - test/business_central/purchase_invoice_test.rb
235
+ - test/business_central/request_builder_test.rb
236
+ - test/business_central/response/response_handler_test.rb
237
+ - test/business_central/sales_credit_memo_line_test.rb
238
+ - test/business_central/sales_credit_memo_test.rb
239
+ - test/business_central/sales_invoice_line_test.rb
240
+ - test/business_central/sales_invoice_test.rb
241
+ - test/business_central/sales_order_line_test.rb
242
+ - test/business_central/sales_order_test.rb
243
+ - test/business_central/sales_quote_line_test.rb
244
+ - test/business_central/sales_quote_test.rb
245
+ - test/business_central/shipment_method_test.rb
246
+ - test/business_central/subscription_test.rb
247
+ - test/business_central/tax_area_test.rb
248
+ - test/business_central/tax_group_test.rb
249
+ - test/business_central/trial_balance_test.rb
250
+ - test/business_central/unit_of_measure_test.rb
251
+ - test/business_central/url_builder_test.rb
252
+ - test/business_central/vendor_purchase_test.rb
253
+ - test/business_central/vendor_test.rb
254
+ - test/client_test.rb
255
+ - test/fixtures/filter_customers_200.json
256
+ - test/fixtures/get_account_200.json
257
+ - test/fixtures/get_accounts_200.json
258
+ - test/fixtures/get_companies_200.json
259
+ - test/fixtures/get_company_200.json
260
+ - test/fixtures/get_countriesRegion_200.json
261
+ - test/fixtures/get_countriesRegions_200.json
262
+ - test/fixtures/get_currencies_200.json
263
+ - test/fixtures/get_currency_200.json
264
+ - test/fixtures/get_customer_200.json
265
+ - test/fixtures/get_customer_expanded_200.json
266
+ - test/fixtures/get_customer_financial_details_200.json
267
+ - test/fixtures/get_customers_200.json
268
+ - test/fixtures/get_paymentMethod_200.json
269
+ - test/fixtures/get_paymentMethods_200.json
270
+ - test/fixtures/get_paymentTerm_200.json
271
+ - test/fixtures/get_paymentTerms_200.json
272
+ - test/fixtures/get_purchaseInvoiceLine_200.json
273
+ - test/fixtures/get_purchaseInvoiceLines_200.json
274
+ - test/fixtures/get_purchaseInvoice_200.json
275
+ - test/fixtures/get_purchase_invoices_200.json
276
+ - test/fixtures/get_salesInvoiceLine_200.json
277
+ - test/fixtures/get_salesInvoiceLines_200.json
278
+ - test/fixtures/get_salesInvoiceLines_single_200.json
279
+ - test/fixtures/get_salesInvoice_200.json
280
+ - test/fixtures/get_salesInvoices_200.json
281
+ - test/fixtures/get_salesOrder_200.json
282
+ - test/fixtures/get_salesOrders_200.json
283
+ - test/fixtures/get_shipmentMethods_200.json
284
+ - test/fixtures/get_taxAreas_200.json
285
+ - test/fixtures/get_taxGroups_200.json
286
+ - test/fixtures/get_unitsOfMeasure_200.json
287
+ - test/fixtures/patch_countriesRegion_200.json
288
+ - test/fixtures/patch_customer_200.json
289
+ - test/fixtures/post_countriesRegion_200.json
290
+ - test/fixtures/post_customer_200.json
291
+ - test/fixtures/post_customer_409.json
292
+ - test/fixtures/post_salesInvoiceLine_200.json
293
+ - test/fixtures/post_salesInvoice_200.json
294
+ - test/fixtures/post_subscription_200.json
295
+ - test/test_helper.rb
296
+ homepage: ''
297
+ licenses:
298
+ - Mozilla
299
+ metadata: {}
300
+ post_install_message:
301
+ rdoc_options: []
302
+ require_paths:
303
+ - lib
304
+ required_ruby_version: !ruby/object:Gem::Requirement
305
+ requirements:
306
+ - - ">="
307
+ - !ruby/object:Gem::Version
308
+ version: '0'
309
+ required_rubygems_version: !ruby/object:Gem::Requirement
310
+ requirements:
311
+ - - ">="
312
+ - !ruby/object:Gem::Version
313
+ version: '0'
314
+ requirements: []
315
+ rubygems_version: 3.0.4
316
+ signing_key:
317
+ specification_version: 4
318
+ summary: Interact with the Microsoft Dynamics365 Business Central API
319
+ test_files:
320
+ - test/business_central/account_test.rb
321
+ - test/business_central/aged_accounts_payable_test.rb
322
+ - test/business_central/aged_accounts_receivable_test.rb
323
+ - test/business_central/base_test.rb
324
+ - test/business_central/company_information_test.rb
325
+ - test/business_central/company_test.rb
326
+ - test/business_central/countries_region_test.rb
327
+ - test/business_central/currency_test.rb
328
+ - test/business_central/customer_financial_details_test.rb
329
+ - test/business_central/customer_payment_test.rb
330
+ - test/business_central/customer_payments_journal_test.rb
331
+ - test/business_central/customer_sales_test.rb
332
+ - test/business_central/customer_test.rb
333
+ - test/business_central/dimension_line_test.rb
334
+ - test/business_central/dimension_test.rb
335
+ - test/business_central/employee_test.rb
336
+ - test/business_central/general_ledger_entry_test.rb
337
+ - test/business_central/income_statement_test.rb
338
+ - test/business_central/irs_1099_code_test.rb
339
+ - test/business_central/item_category_test.rb
340
+ - test/business_central/item_test.rb
341
+ - test/business_central/journal_line_test.rb
342
+ - test/business_central/journal_test.rb
343
+ - test/business_central/payment_method_test.rb
344
+ - test/business_central/payment_term_test.rb
345
+ - test/business_central/picture_test.rb
346
+ - test/business_central/purchase_invoice_line_test.rb
347
+ - test/business_central/purchase_invoice_test.rb
348
+ - test/business_central/request_builder_test.rb
349
+ - test/business_central/response/response_handler_test.rb
350
+ - test/business_central/sales_credit_memo_line_test.rb
351
+ - test/business_central/sales_credit_memo_test.rb
352
+ - test/business_central/sales_invoice_line_test.rb
353
+ - test/business_central/sales_invoice_test.rb
354
+ - test/business_central/sales_order_line_test.rb
355
+ - test/business_central/sales_order_test.rb
356
+ - test/business_central/sales_quote_line_test.rb
357
+ - test/business_central/sales_quote_test.rb
358
+ - test/business_central/shipment_method_test.rb
359
+ - test/business_central/subscription_test.rb
360
+ - test/business_central/tax_area_test.rb
361
+ - test/business_central/tax_group_test.rb
362
+ - test/business_central/trial_balance_test.rb
363
+ - test/business_central/unit_of_measure_test.rb
364
+ - test/business_central/url_builder_test.rb
365
+ - test/business_central/vendor_purchase_test.rb
366
+ - test/business_central/vendor_test.rb
367
+ - test/client_test.rb
368
+ - test/fixtures/filter_customers_200.json
369
+ - test/fixtures/get_account_200.json
370
+ - test/fixtures/get_accounts_200.json
371
+ - test/fixtures/get_companies_200.json
372
+ - test/fixtures/get_company_200.json
373
+ - test/fixtures/get_countriesRegion_200.json
374
+ - test/fixtures/get_countriesRegions_200.json
375
+ - test/fixtures/get_currencies_200.json
376
+ - test/fixtures/get_currency_200.json
377
+ - test/fixtures/get_customer_200.json
378
+ - test/fixtures/get_customer_expanded_200.json
379
+ - test/fixtures/get_customer_financial_details_200.json
380
+ - test/fixtures/get_customers_200.json
381
+ - test/fixtures/get_paymentMethod_200.json
382
+ - test/fixtures/get_paymentMethods_200.json
383
+ - test/fixtures/get_paymentTerm_200.json
384
+ - test/fixtures/get_paymentTerms_200.json
385
+ - test/fixtures/get_purchaseInvoiceLine_200.json
386
+ - test/fixtures/get_purchaseInvoiceLines_200.json
387
+ - test/fixtures/get_purchaseInvoice_200.json
388
+ - test/fixtures/get_purchase_invoices_200.json
389
+ - test/fixtures/get_salesInvoiceLine_200.json
390
+ - test/fixtures/get_salesInvoiceLines_200.json
391
+ - test/fixtures/get_salesInvoiceLines_single_200.json
392
+ - test/fixtures/get_salesInvoice_200.json
393
+ - test/fixtures/get_salesInvoices_200.json
394
+ - test/fixtures/get_salesOrder_200.json
395
+ - test/fixtures/get_salesOrders_200.json
396
+ - test/fixtures/get_shipmentMethods_200.json
397
+ - test/fixtures/get_taxAreas_200.json
398
+ - test/fixtures/get_taxGroups_200.json
399
+ - test/fixtures/get_unitsOfMeasure_200.json
400
+ - test/fixtures/patch_countriesRegion_200.json
401
+ - test/fixtures/patch_customer_200.json
402
+ - test/fixtures/post_countriesRegion_200.json
403
+ - test/fixtures/post_customer_200.json
404
+ - test/fixtures/post_customer_409.json
405
+ - test/fixtures/post_salesInvoiceLine_200.json
406
+ - test/fixtures/post_salesInvoice_200.json
407
+ - test/fixtures/post_subscription_200.json
408
+ - test/test_helper.rb