Skip to content

1amageek/Demae

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages