Coder Social home page Coder Social logo

mom-mock's Introduction

Magento Order Management Mock

Overview

This mock simulates the Magento Order Management system. It is designed to be used for local development or test systems which can not connect to a real Magento Order Management instance.

It supports the basic order workflow interaction between MDC and MOM. This includes the following functionality:

Valet + Setup

Run the following commands to set up the mock with Valet +:

composer install
cd pub
valet link mom
cd ..
valet db create mom
valet db import setup/db.sql mom

Open app/etc/env.php in your MDC instance and edit the following credentials:

'serviceBus' => 
  array (
    'url' => 'http://mom.test/',
    'oauth_server_url' => 'http://mom.test/',
    'oauth_client_id' => 'mom',
    'oauth_client_secret' => 'mom',
    'application_id' => 'mdc',
    'secret' => 'mom',
    'secure_endpoint' => true,
  )

Run bin/magento setup:upgrade --keep-generated in your MDC instance to register your MDC instance to the MOM mock and to request your first OAuth token.

Supported Messages

Message Endpoint Description
magento.service_bus.remote.register oms Register integration
magento.service_bus.remote.unregister oms Unregister integration
magento.sales.order_management.create oms Create an order in MOM
magento.logistics.fulfillment_management.customer_shipment_done mdc Complete Shipment
magento.sales.order_management.updated mdc Update Order Status in MDC
magento.logistics.carrier_management.request_shipping_details mdc Request Shipping label from MDC
magento.postsales.return_management.authorize oms Request a RMA
magento.catalog.product_management.updated oms Export Product to MOM
magento.postsales.return_management.updated mdc Update RMA status
magento.postsales.refund_management.updated mdc Creates a creditmemo
magento.inventory.aggregate_stock_management.updated mdc Stock update from MOM
magento.logistics.warehouse_management.request_shipment mdc Request shipment from warehouse

Features

  • Order overview and detail page
  • Ship/Cancel line items
  • Request a shipping label from a carrier integration
  • RMA overview and approval
  • Trigger refund
  • API journal
  • Send a stock snapshot
  • Stock aggregate and source management
  • Product and inventory overview
  • Request shipments from a source or warehouse

mom-mock's People

Contributors

sydekumf avatar deiserh avatar vinai avatar hakumwagento avatar crino85 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.