Module: Beanie

Defined in:
lib/beanie/version.rb,
lib/beanie.rb,
lib/beanie/api_error.rb,
lib/beanie/api_client.rb,
lib/beanie/configuration.rb,
lib/beanie/models/company.rb,
lib/beanie/models/journal.rb,
lib/beanie/models/product.rb,
lib/beanie/api/company_api.rb,
lib/beanie/api/journal_api.rb,
lib/beanie/api/product_api.rb,
lib/beanie/models/billable.rb,
lib/beanie/models/bom_item.rb,
lib/beanie/models/customer.rb,
lib/beanie/models/document.rb,
lib/beanie/models/supplier.rb,
lib/beanie/api/billable_api.rb,
lib/beanie/api/customer_api.rb,
lib/beanie/api/document_api.rb,
lib/beanie/api/supplier_api.rb,
lib/beanie/models/stock_item.rb,
lib/beanie/models/vat_record.rb,
lib/beanie/models/vat_return.rb,
lib/beanie/api/stock_item_api.rb,
lib/beanie/api/vat_record_api.rb,
lib/beanie/api/vat_return_api.rb,
lib/beanie/models/beanie_task.rb,
lib/beanie/models/error_model.rb,
lib/beanie/models/fixed_asset.rb,
lib/beanie/models/sales_order.rb,
lib/beanie/models/stock_image.rb,
lib/beanie/models/work_centre.rb,
lib/beanie/api/beanie_task_api.rb,
lib/beanie/api/fixed_asset_api.rb,
lib/beanie/api/sales_order_api.rb,
lib/beanie/api/stock_image_api.rb,
lib/beanie/api/work_centre_api.rb,
lib/beanie/models/bank_account.rb,
lib/beanie/models/journal_item.rb,
lib/beanie/api/bank_account_api.rb,
lib/beanie/models/address_block.rb,
lib/beanie/models/customer_note.rb,
lib/beanie/models/delivery_note.rb,
lib/beanie/models/journal_input.rb,
lib/beanie/models/product_input.rb,
lib/beanie/models/product_price.rb,
lib/beanie/models/sales_invoice.rb,
lib/beanie/models/supplier_note.rb,
lib/beanie/api/address_block_api.rb,
lib/beanie/api/delivery_note_api.rb,
lib/beanie/api/product_price_api.rb,
lib/beanie/api/sales_invoice_api.rb,
lib/beanie/models/bank_statement.rb,
lib/beanie/models/billable_input.rb,
lib/beanie/models/bom_item_input.rb,
lib/beanie/models/customer_input.rb,
lib/beanie/models/document_input.rb,
lib/beanie/models/purchase_order.rb,
lib/beanie/models/received_goods.rb,
lib/beanie/models/stock_category.rb,
lib/beanie/models/stock_location.rb,
lib/beanie/models/stock_supplier.rb,
lib/beanie/models/supplier_input.rb,
lib/beanie/api/bank_statement_api.rb,
lib/beanie/api/purchase_order_api.rb,
lib/beanie/api/received_goods_api.rb,
lib/beanie/api/stock_category_api.rb,
lib/beanie/api/stock_location_api.rb,
lib/beanie/api/stock_supplier_api.rb,
lib/beanie/models/customer_ledger.rb,
lib/beanie/models/nominal_account.rb,
lib/beanie/models/product_variant.rb,
lib/beanie/models/shipping_centre.rb,
lib/beanie/api/nominal_account_api.rb,
lib/beanie/api/product_variant_api.rb,
lib/beanie/api/shipping_centre_api.rb,
lib/beanie/models/bill_of_material.rb,
lib/beanie/models/customer_address.rb,
lib/beanie/models/product_category.rb,
lib/beanie/models/production_order.rb,
lib/beanie/models/purchase_invoice.rb,
lib/beanie/models/sales_order_item.rb,
lib/beanie/models/stock_adjustment.rb,
lib/beanie/models/stock_item_input.rb,
lib/beanie/models/supplier_address.rb,
lib/beanie/models/vat_record_input.rb,
lib/beanie/models/vat_return_input.rb,
lib/beanie/api/customer_address_api.rb,
lib/beanie/api/product_category_api.rb,
lib/beanie/api/production_order_api.rb,
lib/beanie/api/purchase_invoice_api.rb,
lib/beanie/api/stock_adjustment_api.rb,
lib/beanie/api/supplier_address_api.rb,
lib/beanie/models/beanie_task_input.rb,
lib/beanie/models/fixed_asset_input.rb,
lib/beanie/models/sales_order_input.rb,
lib/beanie/models/stock_image_input.rb,
lib/beanie/models/work_centre_group.rb,
lib/beanie/models/work_centre_input.rb,
lib/beanie/api/bill_of_materials_api.rb,
lib/beanie/api/work_centre_group_api.rb,
lib/beanie/models/bank_account_input.rb,
lib/beanie/models/delivery_note_item.rb,
lib/beanie/models/journal_item_input.rb,
lib/beanie/models/sales_invoice_item.rb,
lib/beanie/models/address_block_input.rb,
lib/beanie/models/bank_statement_data.rb,
lib/beanie/models/customer_note_input.rb,
lib/beanie/models/delivery_note_input.rb,
lib/beanie/models/product_price_input.rb,
lib/beanie/models/purchase_order_item.rb,
lib/beanie/models/sales_invoice_input.rb,
lib/beanie/models/supplier_note_input.rb,
lib/beanie/models/bank_statement_input.rb,
lib/beanie/models/production_order_log.rb,
lib/beanie/models/purchase_order_input.rb,
lib/beanie/models/received_goods_input.rb,
lib/beanie/models/stock_category_input.rb,
lib/beanie/models/stock_location_input.rb,
lib/beanie/models/stock_supplier_input.rb,
lib/beanie/models/customer_ledger_input.rb,
lib/beanie/models/nominal_account_input.rb,
lib/beanie/models/product_variant_input.rb,
lib/beanie/models/shipping_centre_input.rb,
lib/beanie/models/bill_of_material_input.rb,
lib/beanie/models/customer_address_input.rb,
lib/beanie/models/product_category_input.rb,
lib/beanie/models/production_order_input.rb,
lib/beanie/models/purchase_invoice_input.rb,
lib/beanie/models/sales_order_item_input.rb,
lib/beanie/models/stock_adjustment_input.rb,
lib/beanie/models/supplier_address_input.rb,
lib/beanie/models/work_centre_group_input.rb,
lib/beanie/models/delivery_note_item_input.rb,
lib/beanie/models/nominal_account_category.rb,
lib/beanie/models/sales_invoice_item_input.rb,
lib/beanie/api/nominal_account_category_api.rb,
lib/beanie/models/bank_statement_data_input.rb,
lib/beanie/models/purchase_order_item_input.rb,
lib/beanie/models/production_order_log_input.rb,
lib/beanie/models/nominal_account_category_input.rb

Overview

#Beanie ERP API

#An API specification for interacting with the Beanie ERP system

OpenAPI spec version: 0.2 Contact: [email protected] Generated by: github.com/swagger-api/swagger-codegen.git Swagger Codegen version: 2.4.0-SNAPSHOT

Defined Under Namespace

Classes: AddressBlock, AddressBlockApi, AddressBlockInput, ApiClient, ApiError, BankAccount, BankAccountApi, BankAccountInput, BankStatement, BankStatementApi, BankStatementData, BankStatementDataInput, BankStatementInput, BeanieTask, BeanieTaskApi, BeanieTaskInput, BillOfMaterial, BillOfMaterialInput, BillOfMaterialsApi, Billable, BillableApi, BillableInput, BomItem, BomItemInput, Company, CompanyApi, Configuration, Customer, CustomerAddress, CustomerAddressApi, CustomerAddressInput, CustomerApi, CustomerInput, CustomerLedger, CustomerLedgerInput, CustomerNote, CustomerNoteInput, DeliveryNote, DeliveryNoteApi, DeliveryNoteInput, DeliveryNoteItem, DeliveryNoteItemInput, Document, DocumentApi, DocumentInput, ErrorModel, FixedAsset, FixedAssetApi, FixedAssetInput, Journal, JournalApi, JournalInput, JournalItem, JournalItemInput, NominalAccount, NominalAccountApi, NominalAccountCategory, NominalAccountCategoryApi, NominalAccountCategoryInput, NominalAccountInput, Product, ProductApi, ProductCategory, ProductCategoryApi, ProductCategoryInput, ProductInput, ProductPrice, ProductPriceApi, ProductPriceInput, ProductVariant, ProductVariantApi, ProductVariantInput, ProductionOrder, ProductionOrderApi, ProductionOrderInput, ProductionOrderLog, ProductionOrderLogInput, PurchaseInvoice, PurchaseInvoiceApi, PurchaseInvoiceInput, PurchaseOrder, PurchaseOrderApi, PurchaseOrderInput, PurchaseOrderItem, PurchaseOrderItemInput, ReceivedGoods, ReceivedGoodsApi, ReceivedGoodsInput, SalesInvoice, SalesInvoiceApi, SalesInvoiceInput, SalesInvoiceItem, SalesInvoiceItemInput, SalesOrder, SalesOrderApi, SalesOrderInput, SalesOrderItem, SalesOrderItemInput, ShippingCentre, ShippingCentreApi, ShippingCentreInput, StockAdjustment, StockAdjustmentApi, StockAdjustmentInput, StockCategory, StockCategoryApi, StockCategoryInput, StockImage, StockImageApi, StockImageInput, StockItem, StockItemApi, StockItemInput, StockLocation, StockLocationApi, StockLocationInput, StockSupplier, StockSupplierApi, StockSupplierInput, Supplier, SupplierAddress, SupplierAddressApi, SupplierAddressInput, SupplierApi, SupplierInput, SupplierNote, SupplierNoteInput, VatRecord, VatRecordApi, VatRecordInput, VatReturn, VatReturnApi, VatReturnInput, WorkCentre, WorkCentreApi, WorkCentreGroup, WorkCentreGroupApi, WorkCentreGroupInput, WorkCentreInput

Constant Summary collapse

VERSION =
'0.2.2'

Class Method Summary collapse

Class Method Details

.configureObject

Customize default settings for the SDK using block.

Beanie.configure do |config|
  config.username = "xxx"
  config.password = "xxx"
end

If no block given, return the default Configuration object.



167
168
169
170
171
172
173
# File 'lib/beanie.rb', line 167

def configure
  if block_given?
    yield(Configuration.default)
  else
    Configuration.default
  end
end