New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

trailpack-proxy-generics

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

trailpack-proxy-generics

Generics - Trailpack for Proxy Engine

  • 0.0.12
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
13
decreased by-79.69%
Maintainers
1
Weekly downloads
 
Created
Source

trailpack-proxy-generics

NPM version Build status Dependency Status Code Climate

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

// config/main.js
module.exports = {
  packs: [
    // ... other trailpacks
    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
  • Stripe
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

Keywords

FAQs

Package last updated on 25 Jan 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc