Module: ErpIntegration

Defined in:
lib/erp_integration.rb,
lib/erp_integration/task.rb,
lib/erp_integration/errors.rb,
lib/erp_integration/logger.rb,
lib/erp_integration/carrier.rb,
lib/erp_integration/country.rb,
lib/erp_integration/product.rb,
lib/erp_integration/version.rb,
lib/erp_integration/webhook.rb,
lib/erp_integration/box_type.rb,
lib/erp_integration/location.rb,
lib/erp_integration/resource.rb,
lib/erp_integration/gift_card.rb,
lib/erp_integration/stock_move.rb,
lib/erp_integration/sales_order.rb,
lib/erp_integration/fulfil/query.rb,
lib/erp_integration/rate_limiter.rb,
lib/erp_integration/api_keys_pool.rb,
lib/erp_integration/configuration.rb,
lib/erp_integration/fulfil/client.rb,
lib/erp_integration/party_address.rb,
lib/erp_integration/types/decimal.rb,
lib/erp_integration/fulfil/context.rb,
lib/erp_integration/product_option.rb,
lib/erp_integration/purchase_order.rb,
lib/erp_integration/carrier_service.rb,
lib/erp_integration/channel_listing.rb,
lib/erp_integration/tracking_number.rb,
lib/erp_integration/bill_of_material.rb,
lib/erp_integration/fulfil/or_clause.rb,
lib/erp_integration/product_category.rb,
lib/erp_integration/product_template.rb,
lib/erp_integration/production_order.rb,
lib/erp_integration/purchase_request.rb,
lib/erp_integration/resources/errors.rb,
lib/erp_integration/sales_order_line.rb,
lib/erp_integration/customer_shipment.rb,
lib/erp_integration/internal_shipment.rb,
lib/erp_integration/middleware/logger.rb,
lib/erp_integration/sales_line_option.rb,
lib/erp_integration/supplier_shipment.rb,
lib/erp_integration/fulfil/persistence.rb,
lib/erp_integration/stock_bin_transfer.rb,
lib/erp_integration/fulfil/api_resource.rb,
lib/erp_integration/fulfil/where_clause.rb,
lib/erp_integration/purchase_order_line.rb,
lib/erp_integration/sales_return_reason.rb,
lib/erp_integration/fulfil/query_methods.rb,
lib/erp_integration/middleware/formatter.rb,
lib/erp_integration/fulfil/finder_methods.rb,
lib/erp_integration/fulfil/resources/task.rb,
lib/erp_integration/resources/persistence.rb,
lib/erp_integration/resources/validations.rb,
lib/erp_integration/bill_of_material_input.rb,
lib/erp_integration/bill_of_material_output.rb,
lib/erp_integration/customer_shipment_return.rb,
lib/erp_integration/fulfil/resources/carrier.rb,
lib/erp_integration/fulfil/resources/country.rb,
lib/erp_integration/fulfil/resources/product.rb,
lib/erp_integration/fulfil/resources/webhook.rb,
lib/erp_integration/fulfil/pagination_methods.rb,
lib/erp_integration/fulfil/resources/box_type.rb,
lib/erp_integration/fulfil/resources/location.rb,
lib/erp_integration/middleware/error_handling.rb,
lib/erp_integration/fulfil/resources/gift_card.rb,
lib/erp_integration/fulfil/resources/stock_move.rb,
lib/erp_integration/fulfil/resources/sales_order.rb,
lib/erp_integration/middleware/api_keys_rotation.rb,
lib/erp_integration/fulfil/resources/party_address.rb,
lib/erp_integration/fulfil/resources/product_option.rb,
lib/erp_integration/fulfil/resources/purchase_order.rb,
lib/erp_integration/fulfil/resources/carrier_service.rb,
lib/erp_integration/fulfil/resources/channel_listing.rb,
lib/erp_integration/fulfil/resources/tracking_number.rb,
lib/erp_integration/fulfil/resources/bill_of_material.rb,
lib/erp_integration/fulfil/resources/product_category.rb,
lib/erp_integration/fulfil/resources/product_template.rb,
lib/erp_integration/fulfil/resources/production_order.rb,
lib/erp_integration/fulfil/resources/purchase_request.rb,
lib/erp_integration/fulfil/resources/sales_order_line.rb,
lib/erp_integration/fulfil/resources/customer_shipment.rb,
lib/erp_integration/fulfil/resources/internal_shipment.rb,
lib/erp_integration/fulfil/resources/sales_line_option.rb,
lib/erp_integration/fulfil/resources/supplier_shipment.rb,
lib/erp_integration/fulfil/resources/stock_bin_transfer.rb,
lib/erp_integration/fulfil/resources/purchase_order_line.rb,
lib/erp_integration/fulfil/resources/sales_return_reason.rb,
lib/erp_integration/fulfil/resources/bill_of_material_input.rb,
lib/erp_integration/fulfil/resources/bill_of_material_output.rb,
lib/erp_integration/fulfil/resources/customer_shipment_return.rb

Overview

The ‘ErpIntegration` integrates Mejuri with third-party ERP vendors.

Defined Under Namespace

Modules: Fulfil, Middleware, Resources, Types Classes: ApiKeysPool, BadConfiguration, BillOfMaterial, BillOfMaterialInput, BillOfMaterialOutput, BoxType, Carrier, CarrierService, ChannelListing, Configuration, Country, CustomerShipment, CustomerShipmentReturn, Error, GiftCard, HttpError, InternalShipment, Location, Logger, PartyAddress, Product, ProductCategory, ProductOption, ProductTemplate, ProductionOrder, PurchaseOrder, PurchaseOrderLine, PurchaseRequest, RateLimiter, Resource, ResourceNotFound, SalesLineOption, SalesOrder, SalesOrderLine, SalesReturnReason, StockBinTransfer, StockMove, SupplierShipment, Task, TrackingNumber, Webhook

Constant Summary collapse

VERSION =
'0.60.0'

Class Method Summary collapse

Class Method Details

.configErpIntegration::Configuration

Returns ERP Integration’s configuration.

Returns:



332
333
334
# File 'lib/erp_integration/configuration.rb', line 332

def self.config
  @config ||= Configuration.new
end

.config=(configuration) ⇒ ErpIntegration::Configuration

Allows setting a new configuration for the ERP Integration gem.

Returns:

Raises:



338
339
340
341
342
# File 'lib/erp_integration/configuration.rb', line 338

def self.config=(configuration)
  raise BadConfiguration unless configuration.is_a?(Configuration)

  @config = configuration
end

.configure {|config| ... } ⇒ Object

Allows modifying ERP Integration’s configuration.

Examples:

ErpIntegration.configure do |config|
  config.some_api_key = "..."
end

Yields:



351
352
353
# File 'lib/erp_integration/configuration.rb', line 351

def self.configure
  yield(config)
end