package _const

const (
	EnvProduction = "production"
	StoreIndex    = "chonho_stores"

	UserStatusAnonymous   = 1
	UserStatusVerified    = 2
	UserStatusDeactivated = 3

	ProductStatusPending   = 1
	ProductStatusAvailable = 2
	ProductStatusDeleted   = 3
	ProductStatusViolated  = 4

	StoreProductStatusActive   = 1
	StoreProductStatusInactive = 2

	StoreStatusUnverified        = 1
	StoreStatusVerified          = 2
	StoreStatusTemporarilyClosed = 3
	StoreStatusPermanentlyClosed = 4

	OrderStatusNew              = 1  // -> chờ xác nhận
	OrderStatusConfirmed        = 2  // -> đang giao hàng
	OrderStatusPaymentInProcess = 3  // -> skip
	OrderStatusPaymentCompleted = 4  // -> skip
	OrderStatusReadyToShip      = 5  // -> skip
	OrderStatusInTransit        = 6  // -> skip
	OrderStatusDelivered        = 7  // -> đã giao
	OrderStatusReceived         = 8  // -> đã nhận hàng
	OrderStatusRequestCancel    = 9  // -> chờ huỷ
	OrderStatusCanceled         = 10 // -> đã huỷ

	/*
			to update to requestCancel: 1
			to update to cancel: <= 9
		    to delivered: 2,5,6
	*/

	OrderGroupStatusPending    = 1
	OrderGroupStatusDelivering = 2
	OrderGroupStatusCompleted  = 3

	OrderItemStatusValid     = 1 // available products, can delivery
	OrderItemStatusInvalid   = 2 // invalid products (break, out stock ...) => canceled Products
	OrderItemStatusDelivered = 3 // the item has been delivered

	PaymentStatusWaiting  = 1 // => chưa trả tiền
	PaymentStatusSuccess  = 2 // => đã trả tiền
	PaymentStatusFailed   = 3
	PaymentStatusRefunded = 4

	ApartmentStatusActive   = 1
	ApartmentStatusInactive = 2

	CategoryStatusActive   = 1
	CategoryStatusInactive = 2

	DeliveryTypeNow   = 1
	DeliveryTypeLater = 2

	OrderCanceledReasonProductOutOfStock = "product out of stock"
	ProductNotAvailableResponse          = "Sản phẩm %d hiện không có sẵn"
	AddrNotFoundResponse                 = "Địa chỉ giao hàng không tồn tại"
	CashOnDelivery                       = "Thanh toán tiền mặt khi nhận hàng"
)
