ticaje/m2-ae-consumer

Module that defines Aliexpress API business rules and provides access to it

1.0.4 2022-04-20 14:06 UTC

This package is auto-updated.

Last update: 2024-04-20 18:18:33 UTC


README

This extension defines Aliexpress API business rules and provides access to it

GPLv3 License Latest Version on Packagist Quality Score Total Downloads Blog

Preface

This extension uses some of Magento 2 Base Extensions.

I have decided to include some AE specific business policies into this extension for the sake of simplicity so Magento developers are not forced to tweak too much on business concerns when implementing their M2 module.

We must keep in mind that AE Use Cases implementation at times turns out to be very quite messy hence the specification/exploding of business-specific components like this one.

The most representative Use Case is posting a product to Aliexpress platform, it so happens that a series of steps must be taken when accomplishing a product post onto that platform, please take a look at specs:

Post Product Specs-Policies

I must admit that this goes not in favour of other consumers outside Magento's world.

So I promise to deliver a framework agnostic middleware in charge of abstracting use cases's data preparation since it's a specific Aliexpress's Domain concern given the fact that this platform implements very limited policies when it comes to defining Use Cases.

The drawbacks of doing this is that a DC framework must be used in order to manage deps-orchestration since we have implemented D.I.P and Dependency Rules approach on these matters.

Installation

You can install this package using composer(the only way i recommend)

composer require ticaje/m2-ae-consumer

Features

This module abstracts away the matters of passing an AE-compliant request to its API.

The consumers of this module they only have to focus on sending the proper data to this middleware and it will be taking care of performing request/response tasks and get back with an answer to consumers.

Two components need to be sent, credentials and data to send to AE platform(regardless the use case). An example will be posted here so the consumer can come to grips of how this module can be used.

Credits

License

The GNU General Public License (GPLv3). Please see License File for more information.