offering

package
v1.0.44 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Migrate

func Migrate(tx *gorm.DB) error

Types

type OfferingService

type OfferingService struct {
	// contains filtered or unexported fields
}

func NewOfferingService

func NewOfferingService(db *gorm.DB, ctx *context.ERPContext, auditTrailSrv *audit_trail.AuditTrailService) *OfferingService

func (*OfferingService) CreateOffer

func (s *OfferingService) CreateOffer(merchant models.MerchantAvailableProduct, userID string) (*models.OfferModel, error)

func (*OfferingService) CreateOffers

func (s *OfferingService) CreateOffers(orderRequest models.OrderRequestModel, availableMerchants []models.MerchantAvailableProduct) error

func (*OfferingService) GetOffersForByIDs

func (s *OfferingService) GetOffersForByIDs(userID string, offerIds []string) ([]models.OfferModel, error)

func (*OfferingService) GetOffersForUser

func (s *OfferingService) GetOffersForUser(userID, status string, orderRequestID *string) ([]models.OfferModel, error)

func (*OfferingService) TakeOffer

func (s *OfferingService) TakeOffer(offerID string, totalPrice, shippingFee, distance float64) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL