Giter Site home page Giter Site logo

demae's Introduction

Demae

Architecture

EC Architecture for Firebase

SalesMethod

SalesMethod Description
online Sale of products that can be delivered
instore Sale of products that can be sold in stores
pickup Sale of products available for store pickup
download Sale of downloadable products

Order

online instore pickup download
Delivery - - -
Payment Capture later Capture later Capture later Immediate
Cancel from Provider Cancel available when DeliveryStatus is not in_transit Cancel available when DeliveryStatus is not preparing_for_delivery Cancel available when DeliveryStatus is not preparing_for_delivery -
Cancel from Customer Cancel available when DeliveryStatus is preparing_for_delivery, out_for_delivery - - -
Refund from Provider Refund fee 5% Refund fee 5% Refund fee 5% Refund fee 5%
Refund from Customer Refund fee 10% Refund fee 10% Refund fee 80% Refund fee 80%

The Order can be cancelled until the Payment is captured. After capture, a refund policy is required.

DeliveryStatus

DeliveryStatus Description
none Orders that do not need to be shipped.
pending Delivery is pending.
preparing_for_delivery Preparing for delivery.
out_for_delivery Carrier is about to deliver the shipment , or it is ready to pickup.
in_transit Carrier has accepted or picked up shipment from shipper. The shipment is on the way.
failed_attempt Carrier attempted to deliver but failed, and usually leaves a notice and will try to delivery again.
delivered The shipment was delivered successfully.
available_for_pickup The package arrived at a pickup point near you and is available for pickup.
exception Custom hold, undelivered, returned shipment to sender or any shipping exceptions.
expired Shipment has no tracking information for 30 days since added.

Differences in DeliveryStatus by sales method

online

  1. preparing_for_delivery
  2. out_for_delivery
  3. in_transit
  4. pending
  5. delivered

instore

  1. preparing_for_delivery
  2. out_for_delivery
  3. delivered

pickup

  1. preparing_for_delivery
  2. available_for_pickup
  3. delivered

download

  1. none

PaymentStatus

PaymentStatus Description
none Free Product.
processing The customer’s payment was submitted to Stripe successfully. Only applicable to payment methods with delayed success confirmation. https:stripe.com/docs/payments/payment-methods#payment-confirmation
succeeded Customer’s payment succeeded
payment_failed Customer’s payment was declined by card network or otherwise expired
canceled Canceled order

RefundStatus

RefundStatus Description
none Not refunded
pending Customer is requesting a refund
succeeded Refunded
failed Refund failure

Development

Deploy

Next App build. Must be done before deployment.

npm run build:app

Deploy

npm run deploy

demae's People

Contributors

1amageek avatar

Watchers

James Cloos 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.