trailpack-proxy-generics
![Code Climate](https://img.shields.io/codeclimate/github/CaliStyle/trailpack-proxy-generics.svg?style=flat-square)
Generic features that require adapters built with love from Cali-Style
Generics are common features that every web application needs but implements differently. The result of a Generic is a normalized way of handling these different services.
For example: Email Provider, Payment Processors, Tax Provider, Shipping Provider, Fulfillment, whatever you need!
Can you think of a generic we missed? Create a PR!
Install
$ npm install --save trailpack-proxy-generics
Configure
module.exports = {
packs: [
require('trailpack-proxy-generics')
]
}
Currently Supported Generics
Email Provider (TODO)
The Email Provider handles sending emails from different email providers eg. Mandrill, MailGun
EmailGenericService.send
EmailGenericService.sendTemplate
Creating an Email Provider Plugin
Payment Processor (TODO)
The Payment Processor handles payments from different merchant processors/terminals eg. Stripe, Authorize.net.
PaymentGenericService.authorize
PaymentGenericService.capture
PaymentGenericService.sale
PaymentGenericService.void
PaymentGenericService.refund
Supported Payment Processors
Creating a Payment Processor Generic
Tax Provider (TODO)
The Tax Provider handles sales tax for items sold from different tax providers eg. TaxBundle
TaxGenericService.getRate
Creating a Tax Provider Generic
Shipping Provider (TODO)
The Shipping Provider handles shipping rates from a location to a destination from different shipping providers eg. Shipstation, USPS, FedEx, UPS
ShippingGenericService.getRate
ShippingGenericService.getRates
Creating a Shipping Provider Generic
Fulfillment Provider (TODO)
The Fulfillment Provider handles fulfillment events from a location to a destination from different fulfillment providers eg. Shipstation
FulfillmentGenericService.createOrders
FulfillmentGenericService.updateOrders
FulfillmentGenericService.destroyOrders
FulfillmentGenericService.getOrders
FulfillmentGenericService.holdOrders
Creating a Fulfillment Provider Generic
Data Store Provider (TODO)
The Data Store provider handles uploads and downloads to a remote data store eg. AWS, Gcloud
DataStoreGenericService.upload
Creating a Data Store Provider Plugin