purchase_resource

package
v0.0.0-...-3acebc4 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2025 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAccessor

func NewAccessor(request *tools.APIRequest) *purchaseResourceMongoAccessor

New creates a new instance of the bookingMongoAccessor

Types

type PurchaseResource

type PurchaseResource struct {
	utils.AbstractObject
	EndDate      *time.Time     `json:"end_buying_date,omitempty" bson:"end_buying_date,omitempty"`
	ResourceID   string         `json:"resource_id" bson:"resource_id" validate:"required"`
	ResourceType tools.DataType `json:"resource_type" bson:"resource_type" validate:"required"`
}

func (*PurchaseResource) CanDelete

func (r *PurchaseResource) CanDelete() bool

func (*PurchaseResource) CanUpdate

func (r *PurchaseResource) CanUpdate(set utils.DBObject) (bool, utils.DBObject)

func (*PurchaseResource) GetAccessor

func (d *PurchaseResource) GetAccessor(request *tools.APIRequest) utils.Accessor

Jump to

Keyboard shortcuts

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