0.0.2 • Published 4 years ago

orders-api v0.0.2

Weekly downloads
-
License
SEE LICENSE IN LI...
Repository
github
Last release
4 years ago

Orders API

A Graphql Federated Service to get orders by customer uuid (until login for portal can be completed) and to update an order's requested pickup date (salesforce)

Dependencies

Actions to take

Request a Pickup

Query to get the details of a pickup from the datalake as well as Salesforce. One day it will all just be from Salesforce or somewhere, but not today

Mutation accepts a requested pickup date and comments to be added to the Salesforce Order Product (Order Item API)

Doing Your Part

The orders federated service requires the active-jobs to have added a uuid to netsuite id mapping as addressed above under dependencies to connect to the datalake and return data. Salesforce should be hooked to UAT so as to NOT update a live order (obviously) but as of writing, there is no true connection of datalake -> salesforce as the order id saved in the datalake will never match the exact order in UAT Salesforce.

The linter used is StandardJS so please make sure to run npm run lint to ensure you're still in standards.

Unit tests are written using Tape. Tests will run on any file that has a .test.js extension. Make sure to write some and make sure it's all passing.

All commits will have the linter run before hand to keep you from hurting yourself too much later on. All git pushes will run both the linter and the unit tests for the same reason as stated before. Please just be a good citizen

Would You Like to Know More?

Stay Tuned!