v3

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2023 License: MIT Imports: 3 Imported by: 1

Documentation

Overview

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Code generated. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var ModelInstances = []interface{}{
	&Appointment{},
	&Authorization{},
	&AuthorizationService{},
	&Brand{},
	&CannedService{},
	&CannedServiceFee{},
	&CannedServiceLabor{},
	&CannedServicePart{},
	&CannedServiceSubcontract{},
	&CannedServiceTire{},
	&Conversation{},
	&CoreCharge{},
	&Customer{},
	&CustomerLocationConnection{},
	&Email{},
	&Fee{},
	&Inspection{},
	&InspectionItem{},
	&InspectionItemQuickNote{},
	&InspectionTemplate{},
	&InspectionTemplateItem{},
	&InventoryCategory{},
	&InventoryFee{},
	&InventoryLabor{},
	&InventoryPart{},
	&InventoryTire{},
	&Label{},
	&LabelCannedServiceConnection{},
	&LabelCannedServiceFeeConnection{},
	&LabelCannedServiceLaborConnection{},
	&LabelCannedServicePartConnection{},
	&LabelCannedServiceSubcontractConnection{},
	&LabelCannedServiceTireConnection{},
	&LabelCustomerConnection{},
	&LabelFeeConnection{},
	&LabelLaborConnection{},
	&LabelOrderConnection{},
	&LabelPartConnection{},
	&LabelSubcontractConnection{},
	&LabelTireConnection{},
	&LabelVehicleConnection{},
	&Labor{},
	&LaborMatrix{},
	&LaborMatrixRange{},
	&LaborRate{},
	&LatestPaymentReceipt{},
	&Location{},
	&Message{},
	&MileageLog{},
	&Order{},
	&Part{},
	&Payment{},
	&PaymentTerm{},
	&PhoneNumber{},
	&PricingMatrix{},
	&PricingMatrixRange{},
	&PurchaseOrder{},
	&PurchaseOrderItem{},
	&ReferralSource{},
	&Reminder{},
	&Service{},
	&Statement{},
	&Subcontract{},
	&TaxConfig{},
	&Timesheet{},
	&Tire{},
	&TirePressureLog{},
	&TpiScan{},
	&TpiScanInspection{},
	&User{},
	&Vehicle{},
	&VehicleLocationConnection{},
	&VehicleOwner{},
	&Vendor{},
	&WorkflowStatus{},
}

ModelInstances is an array of an empty object for each model in this package

View Source
var ModelNames = []string{
	"Appointment",
	"Authorization",
	"AuthorizationService",
	"Brand",
	"CannedService",
	"CannedServiceFee",
	"CannedServiceLabor",
	"CannedServicePart",
	"CannedServiceSubcontract",
	"CannedServiceTire",
	"Conversation",
	"CoreCharge",
	"Customer",
	"CustomerLocationConnection",
	"Email",
	"Fee",
	"Inspection",
	"InspectionItem",
	"InspectionItemQuickNote",
	"InspectionTemplate",
	"InspectionTemplateItem",
	"InventoryCategory",
	"InventoryFee",
	"InventoryLabor",
	"InventoryPart",
	"InventoryTire",
	"Label",
	"LabelCannedServiceConnection",
	"LabelCannedServiceFeeConnection",
	"LabelCannedServiceLaborConnection",
	"LabelCannedServicePartConnection",
	"LabelCannedServiceSubcontractConnection",
	"LabelCannedServiceTireConnection",
	"LabelCustomerConnection",
	"LabelFeeConnection",
	"LabelLaborConnection",
	"LabelOrderConnection",
	"LabelPartConnection",
	"LabelSubcontractConnection",
	"LabelTireConnection",
	"LabelVehicleConnection",
	"Labor",
	"LaborMatrix",
	"LaborMatrixRange",
	"LaborRate",
	"LatestPaymentReceipt",
	"Location",
	"Message",
	"MileageLog",
	"Order",
	"Part",
	"Payment",
	"PaymentTerm",
	"PhoneNumber",
	"PricingMatrix",
	"PricingMatrixRange",
	"PurchaseOrder",
	"PurchaseOrderItem",
	"ReferralSource",
	"Reminder",
	"Service",
	"Statement",
	"Subcontract",
	"TaxConfig",
	"Timesheet",
	"Tire",
	"TirePressureLog",
	"TpiScan",
	"TpiScanInspection",
	"User",
	"Vehicle",
	"VehicleLocationConnection",
	"VehicleOwner",
	"Vendor",
	"WorkflowStatus",
}

ModelNames is an array of all the models defined in this package

View Source
var TableNames = []string{
	"appointment",
	"authorization",
	"authorization_service",
	"brand",
	"canned_service",
	"canned_service_fee",
	"canned_service_labor",
	"canned_service_part",
	"canned_service_subcontract",
	"canned_service_tire",
	"conversation",
	"core_charge",
	"customer",
	"customer_location_connection",
	"email",
	"fee",
	"inspection",
	"inspection_item",
	"inspection_item_quick_note",
	"inspection_template",
	"inspection_template_item",
	"inventory_category",
	"inventory_fee",
	"inventory_labor",
	"inventory_part",
	"inventory_tire",
	"label",
	"label_canned_service",
	"label_canned_service_fee_connection",
	"label_canned_service_labor_connection",
	"label_canned_service_part_connection",
	"label_canned_service_subcontract_connection",
	"label_canned_service_tire_connection",
	"label_customer_connection",
	"label_fee_connection",
	"label_labor_connection",
	"label_order_connection",
	"label_part_connection",
	"label_subcontract_connection",
	"label_tire_connection",
	"label_vehicle_connection",
	"labor",
	"labor_matrix",
	"labor_matrix_range",
	"labor_rate",
	"latest_payment_receipt",
	"location",
	"message",
	"mileage_log",
	"order",
	"part",
	"payment",
	"payment_term",
	"phone_number",
	"pricing_matrix",
	"pricing_matrix_range",
	"purchase_order",
	"purchase_order_item",
	"referral_source",
	"reminder",
	"service",
	"statement",
	"subcontract",
	"tax_config",
	"timesheet",
	"tire",
	"tire_pressure_log",
	"tpi_scan",
	"tpi_scan_inspection",
	"user",
	"vehicle",
	"vehicle_location",
	"vehicle_owner",
	"vendor",
	"workflow_status",
}

TableNames is an array of all the tables defined in this package

Functions

func NewAppointmentFromChangeEvent added in v0.0.3

func NewAppointmentFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[Appointment], error)

NewAppointmentFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewAuthorizationFromChangeEvent added in v0.0.3

func NewAuthorizationFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[Authorization], error)

NewAuthorizationFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewAuthorizationServiceFromChangeEvent added in v0.0.3

func NewAuthorizationServiceFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[AuthorizationService], error)

NewAuthorizationServiceFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewBrandFromChangeEvent added in v0.0.3

func NewBrandFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[Brand], error)

NewBrandFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewCannedServiceFeeFromChangeEvent added in v0.0.3

func NewCannedServiceFeeFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[CannedServiceFee], error)

NewCannedServiceFeeFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewCannedServiceFromChangeEvent added in v0.0.3

func NewCannedServiceFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[CannedService], error)

NewCannedServiceFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewCannedServiceLaborFromChangeEvent added in v0.0.3

func NewCannedServiceLaborFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[CannedServiceLabor], error)

NewCannedServiceLaborFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewCannedServicePartFromChangeEvent added in v0.0.3

func NewCannedServicePartFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[CannedServicePart], error)

NewCannedServicePartFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewCannedServiceSubcontractFromChangeEvent added in v0.0.3

func NewCannedServiceSubcontractFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[CannedServiceSubcontract], error)

NewCannedServiceSubcontractFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewCannedServiceTireFromChangeEvent added in v0.0.3

func NewCannedServiceTireFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[CannedServiceTire], error)

NewCannedServiceTireFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewConversationFromChangeEvent added in v0.0.3

func NewConversationFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[Conversation], error)

NewConversationFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewCoreChargeFromChangeEvent added in v0.0.3

func NewCoreChargeFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[CoreCharge], error)

NewCoreChargeFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewCustomerFromChangeEvent added in v0.0.3

func NewCustomerFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[Customer], error)

NewCustomerFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewCustomerLocationConnectionFromChangeEvent added in v0.0.3

func NewCustomerLocationConnectionFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[CustomerLocationConnection], error)

NewCustomerLocationConnectionFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewEmailFromChangeEvent added in v0.0.3

func NewEmailFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[Email], error)

NewEmailFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewFeeFromChangeEvent added in v0.0.3

func NewFeeFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[Fee], error)

NewFeeFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewFromChangeEvent added in v0.0.3

func NewFromChangeEvent(name string, buf []byte, gzip bool) (any, error)

NewFromChangeEvent will return change event for model from a buffer encoded as EncodingType

func NewInspectionFromChangeEvent added in v0.0.3

func NewInspectionFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[Inspection], error)

NewInspectionFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewInspectionItemFromChangeEvent added in v0.0.3

func NewInspectionItemFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[InspectionItem], error)

NewInspectionItemFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewInspectionItemQuickNoteFromChangeEvent added in v0.0.3

func NewInspectionItemQuickNoteFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[InspectionItemQuickNote], error)

NewInspectionItemQuickNoteFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewInspectionTemplateFromChangeEvent added in v0.0.3

func NewInspectionTemplateFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[InspectionTemplate], error)

NewInspectionTemplateFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewInspectionTemplateItemFromChangeEvent added in v0.0.3

func NewInspectionTemplateItemFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[InspectionTemplateItem], error)

NewInspectionTemplateItemFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewInventoryCategoryFromChangeEvent added in v0.0.3

func NewInventoryCategoryFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[InventoryCategory], error)

NewInventoryCategoryFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewInventoryFeeFromChangeEvent added in v0.0.3

func NewInventoryFeeFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[InventoryFee], error)

NewInventoryFeeFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewInventoryLaborFromChangeEvent added in v0.0.3

func NewInventoryLaborFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[InventoryLabor], error)

NewInventoryLaborFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewInventoryPartFromChangeEvent added in v0.0.3

func NewInventoryPartFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[InventoryPart], error)

NewInventoryPartFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewInventoryTireFromChangeEvent added in v0.0.8

func NewInventoryTireFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[InventoryTire], error)

NewInventoryTireFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewLabelCannedServiceConnectionFromChangeEvent added in v0.0.3

func NewLabelCannedServiceConnectionFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[LabelCannedServiceConnection], error)

NewLabelCannedServiceConnectionFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewLabelCannedServiceFeeConnectionFromChangeEvent added in v0.0.3

func NewLabelCannedServiceFeeConnectionFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[LabelCannedServiceFeeConnection], error)

NewLabelCannedServiceFeeConnectionFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewLabelCannedServiceLaborConnectionFromChangeEvent added in v0.0.3

func NewLabelCannedServiceLaborConnectionFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[LabelCannedServiceLaborConnection], error)

NewLabelCannedServiceLaborConnectionFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewLabelCannedServicePartConnectionFromChangeEvent added in v0.0.3

func NewLabelCannedServicePartConnectionFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[LabelCannedServicePartConnection], error)

NewLabelCannedServicePartConnectionFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewLabelCannedServiceSubcontractConnectionFromChangeEvent added in v0.0.3

func NewLabelCannedServiceSubcontractConnectionFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[LabelCannedServiceSubcontractConnection], error)

NewLabelCannedServiceSubcontractConnectionFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewLabelCannedServiceTireConnectionFromChangeEvent added in v0.0.3

func NewLabelCannedServiceTireConnectionFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[LabelCannedServiceTireConnection], error)

NewLabelCannedServiceTireConnectionFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewLabelCustomerConnectionFromChangeEvent added in v0.0.3

func NewLabelCustomerConnectionFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[LabelCustomerConnection], error)

NewLabelCustomerConnectionFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewLabelFeeConnectionFromChangeEvent added in v0.0.3

func NewLabelFeeConnectionFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[LabelFeeConnection], error)

NewLabelFeeConnectionFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewLabelFromChangeEvent added in v0.0.3

func NewLabelFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[Label], error)

NewLabelFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewLabelLaborConnectionFromChangeEvent added in v0.0.3

func NewLabelLaborConnectionFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[LabelLaborConnection], error)

NewLabelLaborConnectionFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewLabelOrderConnectionFromChangeEvent added in v0.0.3

func NewLabelOrderConnectionFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[LabelOrderConnection], error)

NewLabelOrderConnectionFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewLabelPartConnectionFromChangeEvent added in v0.0.3

func NewLabelPartConnectionFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[LabelPartConnection], error)

NewLabelPartConnectionFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewLabelSubcontractConnectionFromChangeEvent added in v0.0.3

func NewLabelSubcontractConnectionFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[LabelSubcontractConnection], error)

NewLabelSubcontractConnectionFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewLabelTireConnectionFromChangeEvent added in v0.0.3

func NewLabelTireConnectionFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[LabelTireConnection], error)

NewLabelTireConnectionFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewLabelVehicleConnectionFromChangeEvent added in v0.0.3

func NewLabelVehicleConnectionFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[LabelVehicleConnection], error)

NewLabelVehicleConnectionFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewLaborFromChangeEvent added in v0.0.3

func NewLaborFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[Labor], error)

NewLaborFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewLaborMatrixFromChangeEvent added in v0.0.3

func NewLaborMatrixFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[LaborMatrix], error)

NewLaborMatrixFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewLaborMatrixRangeFromChangeEvent added in v0.0.3

func NewLaborMatrixRangeFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[LaborMatrixRange], error)

NewLaborMatrixRangeFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewLaborRateFromChangeEvent added in v0.0.3

func NewLaborRateFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[LaborRate], error)

NewLaborRateFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewLatestPaymentReceiptFromChangeEvent added in v0.0.8

func NewLatestPaymentReceiptFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[LatestPaymentReceipt], error)

NewLatestPaymentReceiptFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewLocationFromChangeEvent added in v0.0.3

func NewLocationFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[Location], error)

NewLocationFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewMessageFromChangeEvent added in v0.0.3

func NewMessageFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[Message], error)

NewMessageFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewMileageLogFromChangeEvent added in v0.0.8

func NewMileageLogFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[MileageLog], error)

NewMileageLogFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewOrderFromChangeEvent added in v0.0.3

func NewOrderFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[Order], error)

NewOrderFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewPartFromChangeEvent added in v0.0.3

func NewPartFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[Part], error)

NewPartFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewPaymentFromChangeEvent added in v0.0.3

func NewPaymentFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[Payment], error)

NewPaymentFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewPaymentTermFromChangeEvent added in v0.0.3

func NewPaymentTermFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[PaymentTerm], error)

NewPaymentTermFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewPhoneNumberFromChangeEvent added in v0.0.3

func NewPhoneNumberFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[PhoneNumber], error)

NewPhoneNumberFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewPricingMatrixFromChangeEvent added in v0.0.3

func NewPricingMatrixFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[PricingMatrix], error)

NewPricingMatrixFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewPricingMatrixRangeFromChangeEvent added in v0.0.3

func NewPricingMatrixRangeFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[PricingMatrixRange], error)

NewPricingMatrixRangeFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewPurchaseOrderFromChangeEvent added in v0.0.3

func NewPurchaseOrderFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[PurchaseOrder], error)

NewPurchaseOrderFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewPurchaseOrderItemFromChangeEvent added in v0.0.3

func NewPurchaseOrderItemFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[PurchaseOrderItem], error)

NewPurchaseOrderItemFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewReferralSourceFromChangeEvent added in v0.0.3

func NewReferralSourceFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[ReferralSource], error)

NewReferralSourceFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewReminderFromChangeEvent added in v0.0.3

func NewReminderFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[Reminder], error)

NewReminderFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewServiceFromChangeEvent added in v0.0.3

func NewServiceFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[Service], error)

NewServiceFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewStatementFromChangeEvent added in v0.0.3

func NewStatementFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[Statement], error)

NewStatementFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewSubcontractFromChangeEvent added in v0.0.3

func NewSubcontractFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[Subcontract], error)

NewSubcontractFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewTaxConfigFromChangeEvent added in v0.0.3

func NewTaxConfigFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[TaxConfig], error)

NewTaxConfigFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewTimesheetFromChangeEvent added in v0.0.3

func NewTimesheetFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[Timesheet], error)

NewTimesheetFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewTireFromChangeEvent added in v0.0.3

func NewTireFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[Tire], error)

NewTireFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewTirePressureLogFromChangeEvent added in v0.0.3

func NewTirePressureLogFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[TirePressureLog], error)

NewTirePressureLogFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewTpiScanFromChangeEvent added in v0.0.3

func NewTpiScanFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[TpiScan], error)

NewTpiScanFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewTpiScanInspectionFromChangeEvent added in v0.0.3

func NewTpiScanInspectionFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[TpiScanInspection], error)

NewTpiScanInspectionFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewUserFromChangeEvent added in v0.0.3

func NewUserFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[User], error)

NewUserFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewVehicleFromChangeEvent added in v0.0.3

func NewVehicleFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[Vehicle], error)

NewVehicleFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewVehicleLocationConnectionFromChangeEvent added in v0.0.3

func NewVehicleLocationConnectionFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[VehicleLocationConnection], error)

NewVehicleLocationConnectionFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewVehicleOwnerFromChangeEvent added in v0.0.3

func NewVehicleOwnerFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[VehicleOwner], error)

NewVehicleOwnerFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewVendorFromChangeEvent added in v0.0.3

func NewVendorFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[Vendor], error)

NewVendorFromChangeEvent returns a new model instance from an encoded buffer as change event

func NewWorkflowStatusFromChangeEvent added in v0.0.3

func NewWorkflowStatusFromChangeEvent(buf []byte, gzip bool) (*datatypes.ChangeEvent[WorkflowStatus], error)

NewWorkflowStatusFromChangeEvent returns a new model instance from an encoded buffer as change event

Types

type Appointment

type Appointment struct {
	ID          string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	LocationID  string              `gorm:"not null;column:locationId" json:"locationId"`

	AllDay                bool               `gorm:"not null;column:allDay" json:"allDay"`
	CancelationNote       *string            `gorm:"column:cancelationNote" json:"cancelationNote"` // if the appointment was canceled
	Color                 string             `gorm:"not null;column:color" json:"color"`            // Color for the appointment
	Confirmed             bool               `gorm:"not null;column:confirmed" json:"confirmed"`
	CustomerEmailID       *string            `gorm:"column:customerEmailId" json:"customerEmailId"`
	CustomerID            *string            `gorm:"column:customerId" json:"customerId"`
	CustomerPhoneNumberID *string            `gorm:"column:customerPhoneNumberId" json:"customerPhoneNumberId"`
	EndDate               datatypes.DateTime `gorm:"not null;column:endDate" json:"endDate"` // end date and time of the appointment
	Name                  string             `gorm:"not null;column:name" json:"name"`       // name of the appointment like 'Oil change'
	Note                  string             `gorm:"not null;column:note" json:"note"`       // notes for the appointment
	OrderID               *string            `gorm:"column:orderId" json:"orderId"`
	PendingConfirmation   bool               `gorm:"not null;column:pendingConfirmation" json:"pendingConfirmation"`
	RemovedFromRecurrency bool               `gorm:"not null;column:removedFromRecurrency" json:"removedFromRecurrency"`
	Rruleset              *string            `gorm:"column:rruleset" json:"rruleset"`
	SendConfirmation      bool               `gorm:"not null;column:sendConfirmation" json:"sendConfirmation"` // Send confirmation notification at the moment of saving the appointment
	SendReminder          bool               `gorm:"not null;column:sendReminder" json:"sendReminder"`         // Send reminder will send a notification one day before the apponintment. This would need some sort of scheduling mecanism to fire at the right time.
	StartDate             datatypes.DateTime `gorm:"not null;column:startDate" json:"startDate"`               // start date and time of the appointment
	UseEmail              bool               `gorm:"not null;column:useEmail" json:"useEmail"`                 // In case we want to use email to send confirmation and/or reminder
	UseSMS                bool               `gorm:"not null;column:useSMS" json:"useSMS"`                     // In case we want to use email to send confirmation and/or reminder
	VehicleID             *string            `gorm:"column:vehicleId" json:"vehicleId"`
}

Appointment schema

func NewAppointment

func NewAppointment(buf []byte) (*Appointment, error)

NewAppointment returns a new model instance from an encoded buffer

func (*Appointment) PrimaryKeys added in v0.0.4

func (m *Appointment) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*Appointment) String

func (m *Appointment) String() string

String returns a string representation as JSON for this model

func (*Appointment) TableName

func (m *Appointment) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type Authorization

type Authorization struct {
	ID          string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	LocationID  string              `gorm:"not null;column:locationId" json:"locationId"`

	AuthorizedCostCents int64                   `gorm:"not null;column:authorizedCostCents" json:"authorizedCostCents"`
	CustomerID          *string                 `gorm:"column:customerId" json:"customerId"`
	Date                datatypes.DateTime      `gorm:"not null;column:date" json:"date"`
	Method              AuthorizationMethodEnum `gorm:"not null;column:method" json:"method"`
	Note                string                  `gorm:"not null;column:note" json:"note"`
	OrderID             string                  `gorm:"not null;column:orderId" json:"orderId"`
	ServiceWriterID     *string                 `gorm:"column:serviceWriterId" json:"serviceWriterId"`
}

func NewAuthorization

func NewAuthorization(buf []byte) (*Authorization, error)

NewAuthorization returns a new model instance from an encoded buffer

func (*Authorization) PrimaryKeys added in v0.0.4

func (m *Authorization) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*Authorization) String

func (m *Authorization) String() string

String returns a string representation as JSON for this model

func (*Authorization) TableName

func (m *Authorization) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type AuthorizationMethodEnum

type AuthorizationMethodEnum string

Authorization schema

const (
	AuthorizationMethodInPerson AuthorizationMethodEnum = "InPerson"
	AuthorizationMethodPhone    AuthorizationMethodEnum = "Phone"
	AuthorizationMethodText     AuthorizationMethodEnum = "Text"
	AuthorizationMethodEmail    AuthorizationMethodEnum = "Email"
	AuthorizationMethodInApp    AuthorizationMethodEnum = "InApp"
)

type AuthorizationService

type AuthorizationService struct {
	ID          string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	LocationID  string              `gorm:"not null;column:locationId" json:"locationId"`

	AuthorizationID     string                                      `gorm:"not null;column:authorizationId" json:"authorizationId"`
	AuthorizationStatus AuthorizationServiceAuthorizationStatusEnum `gorm:"not null;column:authorizationStatus" json:"authorizationStatus"`
	AuthorizedCostCents int64                                       `gorm:"not null;column:authorizedCostCents" json:"authorizedCostCents"`
	Name                string                                      `gorm:"not null;column:name" json:"name"`
	ServiceID           string                                      `gorm:"not null;column:serviceId" json:"serviceId"`
}

func NewAuthorizationService

func NewAuthorizationService(buf []byte) (*AuthorizationService, error)

NewAuthorizationService returns a new model instance from an encoded buffer

func (*AuthorizationService) PrimaryKeys added in v0.0.4

func (m *AuthorizationService) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*AuthorizationService) String

func (m *AuthorizationService) String() string

String returns a string representation as JSON for this model

func (*AuthorizationService) TableName

func (m *AuthorizationService) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type AuthorizationServiceAuthorizationStatusEnum

type AuthorizationServiceAuthorizationStatusEnum string

AuthorizationService schema

const (
	AuthorizationServiceAuthorizationStatusNotAuthorized AuthorizationServiceAuthorizationStatusEnum = "NotAuthorized"
	AuthorizationServiceAuthorizationStatusAuthorized    AuthorizationServiceAuthorizationStatusEnum = "Authorized"
	AuthorizationServiceAuthorizationStatusDeclined      AuthorizationServiceAuthorizationStatusEnum = "Declined"
)

type Brand

type Brand struct {
	ID          string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	LocationID  string              `gorm:"not null;column:locationId" json:"locationId"`

	Name string `gorm:"not null;column:name" json:"name"`
}

Brand schema

func NewBrand

func NewBrand(buf []byte) (*Brand, error)

NewBrand returns a new model instance from an encoded buffer

func (*Brand) PrimaryKeys added in v0.0.4

func (m *Brand) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*Brand) String

func (m *Brand) String() string

String returns a string representation as JSON for this model

func (*Brand) TableName

func (m *Brand) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type CannedService

type CannedService struct {
	ID          string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	LocationID  string              `gorm:"not null;column:locationId" json:"locationId"`

	CalculatedDiscountCents     int64                                  `gorm:"not null;column:calculatedDiscountCents" json:"calculatedDiscountCents"`
	CalculatedDiscountPercent   float64                                `gorm:"not null;column:calculatedDiscountPercent" json:"calculatedDiscountPercent"`
	CalculatedEpaCents          int64                                  `gorm:"not null;column:calculatedEpaCents" json:"calculatedEpaCents"`
	CalculatedFeeCents          int64                                  `gorm:"not null;column:calculatedFeeCents" json:"calculatedFeeCents"`
	CalculatedLaborCents        int64                                  `gorm:"not null;column:calculatedLaborCents" json:"calculatedLaborCents"`
	CalculatedPartsCents        int64                                  `gorm:"not null;column:calculatedPartsCents" json:"calculatedPartsCents"`
	CalculatedShopSuppliesCents int64                                  `gorm:"not null;column:calculatedShopSuppliesCents" json:"calculatedShopSuppliesCents"`
	CalculatedSubcontractsCents int64                                  `gorm:"not null;column:calculatedSubcontractsCents" json:"calculatedSubcontractsCents"`
	CalculatedTaxCents          int64                                  `gorm:"not null;column:calculatedTaxCents" json:"calculatedTaxCents"`
	CalculatedTiresCents        int64                                  `gorm:"not null;column:calculatedTiresCents" json:"calculatedTiresCents"`
	Deleted                     bool                                   `gorm:"not null;column:deleted" json:"deleted"`    // if the record has been deleted
	DeletedDate                 *datatypes.DateTime                    `gorm:"column:deletedDate" json:"deletedDate"`     // the date that the record was deleted or null if not deleted
	DeletedReason               *string                                `gorm:"column:deletedReason" json:"deletedReason"` // the reason that the record was deleted
	DeletedUserID               *string                                `gorm:"column:deletedUserId" json:"deletedUserId"` // the user that deleted the record or null if not deleted
	DiscountCents               int64                                  `gorm:"not null;column:discountCents" json:"discountCents"`
	DiscountPercent             float64                                `gorm:"not null;column:discountPercent" json:"discountPercent"`
	DiscountValueType           CannedServiceDiscountValueTypeEnum     `gorm:"not null;column:discountValueType" json:"discountValueType"`
	EpaCents                    int64                                  `gorm:"not null;column:epaCents" json:"epaCents"`
	EpaPercent                  float64                                `gorm:"not null;column:epaPercent" json:"epaPercent"`
	EpaValueType                CannedServiceEpaValueTypeEnum          `gorm:"not null;column:epaValueType" json:"epaValueType"`
	GstCents                    int64                                  `gorm:"not null;column:gstCents" json:"gstCents"`
	GstPercent                  float64                                `gorm:"not null;column:gstPercent" json:"gstPercent"`
	GstValueType                CannedServiceGstValueTypeEnum          `gorm:"not null;column:gstValueType" json:"gstValueType"`
	HstCents                    int64                                  `gorm:"not null;column:hstCents" json:"hstCents"`
	HstPercent                  float64                                `gorm:"not null;column:hstPercent" json:"hstPercent"`
	HstValueType                CannedServiceHstValueTypeEnum          `gorm:"not null;column:hstValueType" json:"hstValueType"`
	LumpSum                     bool                                   `gorm:"not null;column:lumpSum" json:"lumpSum"`
	Name                        string                                 `gorm:"not null;column:name" json:"name"`
	Note                        string                                 `gorm:"not null;column:note" json:"note"`
	PstCents                    int64                                  `gorm:"not null;column:pstCents" json:"pstCents"`
	PstPercent                  float64                                `gorm:"not null;column:pstPercent" json:"pstPercent"`
	PstValueType                CannedServicePstValueTypeEnum          `gorm:"not null;column:pstValueType" json:"pstValueType"`
	Recommended                 bool                                   `gorm:"not null;column:recommended" json:"recommended"`
	ShopSuppliesApplied         bool                                   `gorm:"not null;column:shopSuppliesApplied" json:"shopSuppliesApplied"`
	ShopSuppliesCents           int64                                  `gorm:"not null;column:shopSuppliesCents" json:"shopSuppliesCents"`
	ShopSuppliesPercent         float64                                `gorm:"not null;column:shopSuppliesPercent" json:"shopSuppliesPercent"`
	ShopSuppliesValueType       CannedServiceShopSuppliesValueTypeEnum `gorm:"not null;column:shopSuppliesValueType" json:"shopSuppliesValueType"`
	TaxCents                    int64                                  `gorm:"not null;column:taxCents" json:"taxCents"`
	TaxPercent                  float64                                `gorm:"not null;column:taxPercent" json:"taxPercent"`
	TaxValueType                CannedServiceTaxValueTypeEnum          `gorm:"not null;column:taxValueType" json:"taxValueType"`
	TotalCents                  int64                                  `gorm:"not null;column:totalCents" json:"totalCents"`
}

func NewCannedService

func NewCannedService(buf []byte) (*CannedService, error)

NewCannedService returns a new model instance from an encoded buffer

func (*CannedService) PrimaryKeys added in v0.0.4

func (m *CannedService) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*CannedService) String

func (m *CannedService) String() string

String returns a string representation as JSON for this model

func (*CannedService) TableName

func (m *CannedService) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type CannedServiceDiscountValueTypeEnum

type CannedServiceDiscountValueTypeEnum string

CannedService schema

const (
	CannedServiceDiscountValueTypePercent    CannedServiceDiscountValueTypeEnum = "Percent"
	CannedServiceDiscountValueTypeFixedCents CannedServiceDiscountValueTypeEnum = "FixedCents"
)

type CannedServiceEpaValueTypeEnum

type CannedServiceEpaValueTypeEnum string
const (
	CannedServiceEpaValueTypePercent    CannedServiceEpaValueTypeEnum = "Percent"
	CannedServiceEpaValueTypeFixedCents CannedServiceEpaValueTypeEnum = "FixedCents"
)

type CannedServiceFee

type CannedServiceFee struct {
	ID          string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	LocationID  string              `gorm:"not null;column:locationId" json:"locationId"`

	AmountCents     int64                               `gorm:"not null;column:amountCents" json:"amountCents"`
	CannedServiceID string                              `gorm:"not null;column:cannedServiceId" json:"cannedServiceId"`
	CategoryID      *string                             `gorm:"column:categoryId" json:"categoryId"`
	FeeType         CannedServiceFeeFeeTypeEnum         `gorm:"not null;column:feeType" json:"feeType"`
	LaborID         *string                             `gorm:"column:laborId" json:"laborId"`
	LineItemEntity  *CannedServiceFeeLineItemEntityEnum `gorm:"column:lineItemEntity" json:"lineItemEntity"`
	Name            string                              `gorm:"not null;column:name" json:"name"`
	Ordinal         float64                             `gorm:"not null;column:ordinal" json:"ordinal"`
	PartID          *string                             `gorm:"column:partId" json:"partId"`
	Percent         float64                             `gorm:"not null;column:percent" json:"percent"`
	SourceItemID    *string                             `gorm:"column:sourceItemId" json:"sourceItemId"`
	SubcontractID   *string                             `gorm:"column:subcontractId" json:"subcontractId"`
	SubtotalCents   *int64                              `gorm:"column:subtotalCents" json:"subtotalCents"`
	TireID          *string                             `gorm:"column:tireId" json:"tireId"`
}

func NewCannedServiceFee

func NewCannedServiceFee(buf []byte) (*CannedServiceFee, error)

NewCannedServiceFee returns a new model instance from an encoded buffer

func (*CannedServiceFee) PrimaryKeys added in v0.0.4

func (m *CannedServiceFee) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*CannedServiceFee) String

func (m *CannedServiceFee) String() string

String returns a string representation as JSON for this model

func (*CannedServiceFee) TableName

func (m *CannedServiceFee) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type CannedServiceFeeFeeTypeEnum

type CannedServiceFeeFeeTypeEnum string

CannedServiceFee schema

const (
	CannedServiceFeeFeeTypePercentLineItem CannedServiceFeeFeeTypeEnum = "PercentLineItem"
	CannedServiceFeeFeeTypePercentService  CannedServiceFeeFeeTypeEnum = "PercentService"
	CannedServiceFeeFeeTypeFixedCents      CannedServiceFeeFeeTypeEnum = "FixedCents"
)

type CannedServiceFeeLineItemEntityEnum

type CannedServiceFeeLineItemEntityEnum string
const (
	CannedServiceFeeLineItemEntityLabor       CannedServiceFeeLineItemEntityEnum = "Labor"
	CannedServiceFeeLineItemEntityPart        CannedServiceFeeLineItemEntityEnum = "Part"
	CannedServiceFeeLineItemEntitySubcontract CannedServiceFeeLineItemEntityEnum = "Subcontract"
	CannedServiceFeeLineItemEntityTire        CannedServiceFeeLineItemEntityEnum = "Tire"
)

type CannedServiceGstValueTypeEnum

type CannedServiceGstValueTypeEnum string
const (
	CannedServiceGstValueTypePercent    CannedServiceGstValueTypeEnum = "Percent"
	CannedServiceGstValueTypeFixedCents CannedServiceGstValueTypeEnum = "FixedCents"
)

type CannedServiceHstValueTypeEnum

type CannedServiceHstValueTypeEnum string
const (
	CannedServiceHstValueTypePercent    CannedServiceHstValueTypeEnum = "Percent"
	CannedServiceHstValueTypeFixedCents CannedServiceHstValueTypeEnum = "FixedCents"
)

type CannedServiceLabor

type CannedServiceLabor struct {
	ID          string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	LocationID  string              `gorm:"not null;column:locationId" json:"locationId"`

	ApplicationID            *int64                                  `gorm:"column:applicationId" json:"applicationId"`
	CannedServiceID          string                                  `gorm:"not null;column:cannedServiceId" json:"cannedServiceId"`
	CategoryID               *string                                 `gorm:"column:categoryId" json:"categoryId"`
	CostHours                *float64                                `gorm:"column:costHours" json:"costHours"`
	CostRateCents            *int64                                  `gorm:"column:costRateCents" json:"costRateCents"`
	CostTotalCents           *int64                                  `gorm:"column:costTotalCents" json:"costTotalCents"`
	DiscountCents            int64                                   `gorm:"not null;column:discountCents" json:"discountCents"`
	DiscountPercent          float64                                 `gorm:"not null;column:discountPercent" json:"discountPercent"`
	DiscountValueType        CannedServiceLaborDiscountValueTypeEnum `gorm:"not null;column:discountValueType" json:"discountValueType"`
	Hours                    float64                                 `gorm:"not null;column:hours" json:"hours"`
	LaborMatrixDate          *datatypes.DateTime                     `gorm:"column:laborMatrixDate" json:"laborMatrixDate"` // datetime when laborMatrixId was set, for determining if matrix has been changed
	LaborMatrixID            *string                                 `gorm:"column:laborMatrixId" json:"laborMatrixId"`
	Multiplier               float64                                 `gorm:"not null;column:multiplier" json:"multiplier"`
	MultiplierType           CannedServiceLaborMultiplierTypeEnum    `gorm:"not null;column:multiplierType" json:"multiplierType"`
	Name                     *string                                 `gorm:"column:name" json:"name"`
	Note                     string                                  `gorm:"not null;column:note" json:"note"`
	Ordinal                  float64                                 `gorm:"not null;column:ordinal" json:"ordinal"`
	RateCents                int64                                   `gorm:"not null;column:rateCents" json:"rateCents"`
	RateID                   *string                                 `gorm:"column:rateId" json:"rateId"`
	ShowHours                bool                                    `gorm:"not null;column:showHours" json:"showHours"`
	ShowNote                 bool                                    `gorm:"not null;column:showNote" json:"showNote"`
	SkillRequired            *CannedServiceLaborSkillRequiredEnum    `gorm:"column:skillRequired" json:"skillRequired"`
	SkillRequiredDescription *string                                 `gorm:"column:skillRequiredDescription" json:"skillRequiredDescription"`
	SourceItemID             *string                                 `gorm:"column:sourceItemId" json:"sourceItemId"`
	Taxable                  bool                                    `gorm:"not null;column:taxable" json:"taxable"`
}

func NewCannedServiceLabor

func NewCannedServiceLabor(buf []byte) (*CannedServiceLabor, error)

NewCannedServiceLabor returns a new model instance from an encoded buffer

func (*CannedServiceLabor) PrimaryKeys added in v0.0.4

func (m *CannedServiceLabor) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*CannedServiceLabor) String

func (m *CannedServiceLabor) String() string

String returns a string representation as JSON for this model

func (*CannedServiceLabor) TableName

func (m *CannedServiceLabor) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type CannedServiceLaborDiscountValueTypeEnum

type CannedServiceLaborDiscountValueTypeEnum string

CannedServiceLabor schema

const (
	CannedServiceLaborDiscountValueTypePercent    CannedServiceLaborDiscountValueTypeEnum = "Percent"
	CannedServiceLaborDiscountValueTypeFixedCents CannedServiceLaborDiscountValueTypeEnum = "FixedCents"
)

type CannedServiceLaborMultiplierTypeEnum

type CannedServiceLaborMultiplierTypeEnum string
const (
	CannedServiceLaborMultiplierTypeHours CannedServiceLaborMultiplierTypeEnum = "Hours"
	CannedServiceLaborMultiplierTypeRate  CannedServiceLaborMultiplierTypeEnum = "Rate"
)

type CannedServiceLaborSkillRequiredEnum

type CannedServiceLaborSkillRequiredEnum string
const (
	CannedServiceLaborSkillRequiredGeneral     CannedServiceLaborSkillRequiredEnum = "General"
	CannedServiceLaborSkillRequiredMaintenance CannedServiceLaborSkillRequiredEnum = "Maintenance"
	CannedServiceLaborSkillRequiredPrecision   CannedServiceLaborSkillRequiredEnum = "Precision"
)

type CannedServicePart

type CannedServicePart struct {
	ID          string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	LocationID  string              `gorm:"not null;column:locationId" json:"locationId"`

	BinLocation          string                                 `gorm:"not null;column:binLocation" json:"binLocation"`
	CannedServiceID      string                                 `gorm:"not null;column:cannedServiceId" json:"cannedServiceId"`
	CategoryID           *string                                `gorm:"column:categoryId" json:"categoryId"`
	DiscountCents        int64                                  `gorm:"not null;column:discountCents" json:"discountCents"`
	DiscountPercent      float64                                `gorm:"not null;column:discountPercent" json:"discountPercent"`
	DiscountValueType    CannedServicePartDiscountValueTypeEnum `gorm:"not null;column:discountValueType" json:"discountValueType"`
	InventoryPartID      *string                                `gorm:"column:inventoryPartId" json:"inventoryPartId"`
	Name                 string                                 `gorm:"not null;column:name" json:"name"`
	Note                 string                                 `gorm:"not null;column:note" json:"note"`
	Ordinal              float64                                `gorm:"not null;column:ordinal" json:"ordinal"`
	PartNumber           string                                 `gorm:"not null;column:partNumber" json:"partNumber"`
	PricingMatrixDate    *datatypes.DateTime                    `gorm:"column:pricingMatrixDate" json:"pricingMatrixDate"` // datetime when pricingMatrixId was set, for determining if matrix has been changed
	PricingMatrixID      *string                                `gorm:"column:pricingMatrixId" json:"pricingMatrixId"`
	Quantity             int64                                  `gorm:"not null;column:quantity" json:"quantity"`
	ReduceInventoryCount bool                                   `gorm:"not null;column:reduceInventoryCount" json:"reduceInventoryCount"`
	RetailCostCents      int64                                  `gorm:"not null;column:retailCostCents" json:"retailCostCents"`
	ShowCostAndQuantity  bool                                   `gorm:"not null;column:showCostAndQuantity" json:"showCostAndQuantity"`
	ShowNote             bool                                   `gorm:"not null;column:showNote" json:"showNote"`
	ShowPartNumber       bool                                   `gorm:"not null;column:showPartNumber" json:"showPartNumber"`
	SourceItemID         *string                                `gorm:"column:sourceItemId" json:"sourceItemId"`
	Taxable              bool                                   `gorm:"not null;column:taxable" json:"taxable"`
	VendorID             *string                                `gorm:"column:vendorId" json:"vendorId"`
	WholesaleCostCents   *int64                                 `gorm:"column:wholesaleCostCents" json:"wholesaleCostCents"`
}

func NewCannedServicePart

func NewCannedServicePart(buf []byte) (*CannedServicePart, error)

NewCannedServicePart returns a new model instance from an encoded buffer

func (*CannedServicePart) PrimaryKeys added in v0.0.4

func (m *CannedServicePart) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*CannedServicePart) String

func (m *CannedServicePart) String() string

String returns a string representation as JSON for this model

func (*CannedServicePart) TableName

func (m *CannedServicePart) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type CannedServicePartDiscountValueTypeEnum

type CannedServicePartDiscountValueTypeEnum string

CannedServicePart schema

const (
	CannedServicePartDiscountValueTypePercent    CannedServicePartDiscountValueTypeEnum = "Percent"
	CannedServicePartDiscountValueTypeFixedCents CannedServicePartDiscountValueTypeEnum = "FixedCents"
)

type CannedServicePstValueTypeEnum

type CannedServicePstValueTypeEnum string
const (
	CannedServicePstValueTypePercent    CannedServicePstValueTypeEnum = "Percent"
	CannedServicePstValueTypeFixedCents CannedServicePstValueTypeEnum = "FixedCents"
)

type CannedServiceShopSuppliesValueTypeEnum

type CannedServiceShopSuppliesValueTypeEnum string
const (
	CannedServiceShopSuppliesValueTypePercent    CannedServiceShopSuppliesValueTypeEnum = "Percent"
	CannedServiceShopSuppliesValueTypeFixedCents CannedServiceShopSuppliesValueTypeEnum = "FixedCents"
)

type CannedServiceSubcontract

type CannedServiceSubcontract struct {
	ID          string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	LocationID  string              `gorm:"not null;column:locationId" json:"locationId"`

	CannedServiceID   string                                        `gorm:"not null;column:cannedServiceId" json:"cannedServiceId"`
	CategoryID        *string                                       `gorm:"column:categoryId" json:"categoryId"`
	CostCents         int64                                         `gorm:"not null;column:costCents" json:"costCents"`
	DiscountCents     int64                                         `gorm:"not null;column:discountCents" json:"discountCents"`
	DiscountPercent   float64                                       `gorm:"not null;column:discountPercent" json:"discountPercent"`
	DiscountValueType CannedServiceSubcontractDiscountValueTypeEnum `gorm:"not null;column:discountValueType" json:"discountValueType"`
	Name              string                                        `gorm:"not null;column:name" json:"name"`
	Note              *string                                       `gorm:"column:note" json:"note"`
	Ordinal           float64                                       `gorm:"not null;column:ordinal" json:"ordinal"`
	RetailCostCents   int64                                         `gorm:"not null;column:retailCostCents" json:"retailCostCents"`
	ShowNote          bool                                          `gorm:"not null;column:showNote" json:"showNote"`
	SourceItemID      *string                                       `gorm:"column:sourceItemId" json:"sourceItemId"`
	Taxable           bool                                          `gorm:"not null;column:taxable" json:"taxable"`
	VendorID          *string                                       `gorm:"column:vendorId" json:"vendorId"`
}

func NewCannedServiceSubcontract

func NewCannedServiceSubcontract(buf []byte) (*CannedServiceSubcontract, error)

NewCannedServiceSubcontract returns a new model instance from an encoded buffer

func (*CannedServiceSubcontract) PrimaryKeys added in v0.0.4

func (m *CannedServiceSubcontract) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*CannedServiceSubcontract) String

func (m *CannedServiceSubcontract) String() string

String returns a string representation as JSON for this model

func (*CannedServiceSubcontract) TableName

func (m *CannedServiceSubcontract) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type CannedServiceSubcontractDiscountValueTypeEnum

type CannedServiceSubcontractDiscountValueTypeEnum string

CannedServiceSubcontract schema

const (
	CannedServiceSubcontractDiscountValueTypePercent    CannedServiceSubcontractDiscountValueTypeEnum = "Percent"
	CannedServiceSubcontractDiscountValueTypeFixedCents CannedServiceSubcontractDiscountValueTypeEnum = "FixedCents"
)

type CannedServiceTaxValueTypeEnum

type CannedServiceTaxValueTypeEnum string
const (
	CannedServiceTaxValueTypePercent    CannedServiceTaxValueTypeEnum = "Percent"
	CannedServiceTaxValueTypeFixedCents CannedServiceTaxValueTypeEnum = "FixedCents"
)

type CannedServiceTire

type CannedServiceTire struct {
	ID          string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	LocationID  string              `gorm:"not null;column:locationId" json:"locationId"`

	BinLocation           *string                                `gorm:"column:binLocation" json:"binLocation"`
	BrandID               *string                                `gorm:"column:brandId" json:"brandId"`
	CannedServiceID       string                                 `gorm:"not null;column:cannedServiceId" json:"cannedServiceId"`
	CategoryID            *string                                `gorm:"column:categoryId" json:"categoryId"`
	DiscountCents         int64                                  `gorm:"not null;column:discountCents" json:"discountCents"`
	DiscountPercent       float64                                `gorm:"not null;column:discountPercent" json:"discountPercent"`
	DiscountValueType     CannedServiceTireDiscountValueTypeEnum `gorm:"not null;column:discountValueType" json:"discountValueType"`
	FederalExciseTaxCents int64                                  `gorm:"not null;column:federalExciseTaxCents" json:"federalExciseTaxCents"`
	Model                 *string                                `gorm:"column:model" json:"model"`
	Name                  string                                 `gorm:"not null;column:name" json:"name"`
	Note                  *string                                `gorm:"column:note" json:"note"`
	Ordinal               float64                                `gorm:"not null;column:ordinal" json:"ordinal"`
	PartNumber            *string                                `gorm:"column:partNumber" json:"partNumber"`
	PricingMatrixDate     *datatypes.DateTime                    `gorm:"column:pricingMatrixDate" json:"pricingMatrixDate"` // datetime when pricingMatrixId was set, for determining if matrix has been changed api_schema(calculated)
	PricingMatrixID       *string                                `gorm:"column:pricingMatrixId" json:"pricingMatrixId"`
	Quantity              int64                                  `gorm:"not null;column:quantity" json:"quantity"`
	ReduceInventoryCount  bool                                   `gorm:"not null;column:reduceInventoryCount" json:"reduceInventoryCount"`
	RetailCostCents       int64                                  `gorm:"not null;column:retailCostCents" json:"retailCostCents"`
	Seasonality           *CannedServiceTireSeasonalityEnum      `gorm:"column:seasonality" json:"seasonality"`
	ShowNote              bool                                   `gorm:"not null;column:showNote" json:"showNote"`
	ShowPartNumber        bool                                   `gorm:"not null;column:showPartNumber" json:"showPartNumber"`
	ShowPriceAndQuantity  bool                                   `gorm:"not null;column:showPriceAndQuantity" json:"showPriceAndQuantity"`
	Size                  *string                                `gorm:"column:size" json:"size"`
	SizeFormat            CannedServiceTireSizeFormatEnum        `gorm:"not null;column:sizeFormat" json:"sizeFormat"`
	SourceItemID          *string                                `gorm:"column:sourceItemId" json:"sourceItemId"`
	Taxable               bool                                   `gorm:"not null;column:taxable" json:"taxable"`
	VendorID              *string                                `gorm:"column:vendorId" json:"vendorId"`
	WasteTireFee          int64                                  `gorm:"not null;column:wasteTireFee" json:"wasteTireFee"`
	WholesaleCostCents    *int64                                 `gorm:"column:wholesaleCostCents" json:"wholesaleCostCents"`
}

func NewCannedServiceTire

func NewCannedServiceTire(buf []byte) (*CannedServiceTire, error)

NewCannedServiceTire returns a new model instance from an encoded buffer

func (*CannedServiceTire) PrimaryKeys added in v0.0.4

func (m *CannedServiceTire) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*CannedServiceTire) String

func (m *CannedServiceTire) String() string

String returns a string representation as JSON for this model

func (*CannedServiceTire) TableName

func (m *CannedServiceTire) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type CannedServiceTireDiscountValueTypeEnum

type CannedServiceTireDiscountValueTypeEnum string

CannedServiceTire schema

const (
	CannedServiceTireDiscountValueTypePercent    CannedServiceTireDiscountValueTypeEnum = "Percent"
	CannedServiceTireDiscountValueTypeFixedCents CannedServiceTireDiscountValueTypeEnum = "FixedCents"
)

type CannedServiceTireSeasonalityEnum

type CannedServiceTireSeasonalityEnum string
const (
	CannedServiceTireSeasonalitySummer     CannedServiceTireSeasonalityEnum = "Summer"
	CannedServiceTireSeasonalityWinter     CannedServiceTireSeasonalityEnum = "Winter"
	CannedServiceTireSeasonalityAllSeasons CannedServiceTireSeasonalityEnum = "AllSeasons"
)

type CannedServiceTireSizeFormatEnum

type CannedServiceTireSizeFormatEnum string
const (
	CannedServiceTireSizeFormatConventional CannedServiceTireSizeFormatEnum = "Conventional"
	CannedServiceTireSizeFormatOffRoadSAE   CannedServiceTireSizeFormatEnum = "OffRoadSAE"
)

type Conversation

type Conversation struct {
	ID          string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	LocationID  string              `gorm:"not null;column:locationId" json:"locationId"`

	UPGRADEOrderID *string             `gorm:"column:UPGRADE_orderId" json:"UPGRADE_orderId"` // Boolean /// if the record has been deleted
	Archived       bool                `gorm:"not null;column:archived" json:"archived"`
	CustomerID     *string             `gorm:"column:customerId" json:"customerId"`
	Deleted        bool                `gorm:"not null;column:deleted" json:"deleted"`    // if the record has been deleted
	DeletedDate    *datatypes.DateTime `gorm:"column:deletedDate" json:"deletedDate"`     // the date that the record was deleted or null if not deleted
	DeletedReason  *string             `gorm:"column:deletedReason" json:"deletedReason"` // the reason that the record was deleted
	DeletedUserID  *string             `gorm:"column:deletedUserId" json:"deletedUserId"` // the user that deleted the record or null if not deleted
}

Conversation schema

func NewConversation

func NewConversation(buf []byte) (*Conversation, error)

NewConversation returns a new model instance from an encoded buffer

func (*Conversation) PrimaryKeys added in v0.0.4

func (m *Conversation) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*Conversation) String

func (m *Conversation) String() string

String returns a string representation as JSON for this model

func (*Conversation) TableName

func (m *Conversation) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type CoreCharge

type CoreCharge struct {
	ID          string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	LocationID  string              `gorm:"not null;column:locationId" json:"locationId"`

	AmountCents int64                `gorm:"not null;column:amountCents" json:"amountCents"`
	PartID      string               `gorm:"not null;column:partId" json:"partId"`
	Status      CoreChargeStatusEnum `gorm:"not null;column:status" json:"status"`
}

func NewCoreCharge

func NewCoreCharge(buf []byte) (*CoreCharge, error)

NewCoreCharge returns a new model instance from an encoded buffer

func (*CoreCharge) PrimaryKeys added in v0.0.4

func (m *CoreCharge) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*CoreCharge) String

func (m *CoreCharge) String() string

String returns a string representation as JSON for this model

func (*CoreCharge) TableName

func (m *CoreCharge) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type CoreChargeStatusEnum

type CoreChargeStatusEnum string

CoreCharge schema

const (
	CoreChargeStatusNotReady      CoreChargeStatusEnum = "NotReady"
	CoreChargeStatusReady         CoreChargeStatusEnum = "Ready"
	CoreChargeStatusPickedUp      CoreChargeStatusEnum = "PickedUp"
	CoreChargeStatusRefunded      CoreChargeStatusEnum = "Refunded"
	CoreChargeStatusNotRefundable CoreChargeStatusEnum = "NotRefundable"
)

type Customer

type Customer struct {
	ID           string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate  datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate  *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta         *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata     *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID    string              `gorm:"not null;column:companyId" json:"companyId"`
	CustomFields datatypes.JSON      `gorm:"column:customFields" json:"customFields"` // custom field values

	Address1               *string                             `gorm:"column:address1" json:"address1"`
	Address2               *string                             `gorm:"column:address2" json:"address2"`
	AppointmentCount       int64                               `gorm:"not null;column:appointmentCount" json:"appointmentCount"`
	City                   *string                             `gorm:"column:city" json:"city"`
	CompanyName            *string                             `gorm:"column:companyName" json:"companyName"`
	Country                *CustomerCountryEnum                `gorm:"column:country" json:"country"`
	CustomerType           CustomerCustomerTypeEnum            `gorm:"not null;column:customerType" json:"customerType"`
	DeferredServiceCount   int64                               `gorm:"not null;column:deferredServiceCount" json:"deferredServiceCount"`
	DiscountPercent        float64                             `gorm:"not null;column:discountPercent" json:"discountPercent"`
	DotNumber              *string                             `gorm:"column:dotNumber" json:"dotNumber"`
	FirstName              *string                             `gorm:"column:firstName" json:"firstName"`
	FleetID                *string                             `gorm:"column:fleetId" json:"fleetId"`
	LaborMatrixID          *string                             `gorm:"column:laborMatrixId" json:"laborMatrixId"`
	LaborRateID            *string                             `gorm:"column:laborRateId" json:"laborRateId"`
	LastName               *string                             `gorm:"column:lastName" json:"lastName"`
	LastTimeOrderWorked    *datatypes.DateTime                 `gorm:"column:lastTimeOrderWorked" json:"lastTimeOrderWorked"`
	MarketingOptIn         bool                                `gorm:"not null;column:marketingOptIn" json:"marketingOptIn"`
	MessageCount           int64                               `gorm:"not null;column:messageCount" json:"messageCount"`
	Note                   string                              `gorm:"not null;column:note" json:"note"`
	PaymentTermID          string                              `gorm:"not null;column:paymentTermId" json:"paymentTermId"`
	PostalCode             *string                             `gorm:"column:postalCode" json:"postalCode"`
	PreferredContactMethod *CustomerPreferredContactMethodEnum `gorm:"column:preferredContactMethod" json:"preferredContactMethod"`
	PricingMatrixID        *string                             `gorm:"column:pricingMatrixId" json:"pricingMatrixId"`
	ReferralSourceID       *string                             `gorm:"column:referralSourceId" json:"referralSourceId"`
	State                  *string                             `gorm:"column:state" json:"state"`
	StatementCount         int64                               `gorm:"not null;column:statementCount" json:"statementCount"`
	TaxExempt              bool                                `gorm:"not null;column:taxExempt" json:"taxExempt"`
	TransactionCount       int64                               `gorm:"not null;column:transactionCount" json:"transactionCount"`
}

func NewCustomer

func NewCustomer(buf []byte) (*Customer, error)

NewCustomer returns a new model instance from an encoded buffer

func (*Customer) PrimaryKeys added in v0.0.4

func (m *Customer) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*Customer) String

func (m *Customer) String() string

String returns a string representation as JSON for this model

func (*Customer) TableName

func (m *Customer) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type CustomerCountryEnum

type CustomerCountryEnum string

Customer schema

const (
	CustomerCountryUS CustomerCountryEnum = "US"
	CustomerCountryCA CustomerCountryEnum = "CA"
	CustomerCountryMX CustomerCountryEnum = "MX"
	CustomerCountryAF CustomerCountryEnum = "AF"
	CustomerCountryAX CustomerCountryEnum = "AX"
	CustomerCountryAL CustomerCountryEnum = "AL"
	CustomerCountryDZ CustomerCountryEnum = "DZ"
	CustomerCountryAS CustomerCountryEnum = "AS"
	CustomerCountryAD CustomerCountryEnum = "AD"
	CustomerCountryAO CustomerCountryEnum = "AO"
	CustomerCountryAI CustomerCountryEnum = "AI"
	CustomerCountryAQ CustomerCountryEnum = "AQ"
	CustomerCountryAG CustomerCountryEnum = "AG"
	CustomerCountryAR CustomerCountryEnum = "AR"
	CustomerCountryAM CustomerCountryEnum = "AM"
	CustomerCountryAW CustomerCountryEnum = "AW"
	CustomerCountryAU CustomerCountryEnum = "AU"
	CustomerCountryAT CustomerCountryEnum = "AT"
	CustomerCountryAZ CustomerCountryEnum = "AZ"
	CustomerCountryBS CustomerCountryEnum = "BS"
	CustomerCountryBH CustomerCountryEnum = "BH"
	CustomerCountryBD CustomerCountryEnum = "BD"
	CustomerCountryBB CustomerCountryEnum = "BB"
	CustomerCountryBY CustomerCountryEnum = "BY"
	CustomerCountryBE CustomerCountryEnum = "BE"
	CustomerCountryBZ CustomerCountryEnum = "BZ"
	CustomerCountryBJ CustomerCountryEnum = "BJ"
	CustomerCountryBM CustomerCountryEnum = "BM"
	CustomerCountryBT CustomerCountryEnum = "BT"
	CustomerCountryBO CustomerCountryEnum = "BO"
	CustomerCountryBQ CustomerCountryEnum = "BQ"
	CustomerCountryBA CustomerCountryEnum = "BA"
	CustomerCountryBW CustomerCountryEnum = "BW"
	CustomerCountryBV CustomerCountryEnum = "BV"
	CustomerCountryBR CustomerCountryEnum = "BR"
	CustomerCountryIO CustomerCountryEnum = "IO"
	CustomerCountryVG CustomerCountryEnum = "VG"
	CustomerCountryBN CustomerCountryEnum = "BN"
	CustomerCountryBG CustomerCountryEnum = "BG"
	CustomerCountryBF CustomerCountryEnum = "BF"
	CustomerCountryBI CustomerCountryEnum = "BI"
	CustomerCountryCV CustomerCountryEnum = "CV"
	CustomerCountryKH CustomerCountryEnum = "KH"
	CustomerCountryCM CustomerCountryEnum = "CM"
	CustomerCountryKY CustomerCountryEnum = "KY"
	CustomerCountryCF CustomerCountryEnum = "CF"
	CustomerCountryTD CustomerCountryEnum = "TD"
	CustomerCountryCL CustomerCountryEnum = "CL"
	CustomerCountryCN CustomerCountryEnum = "CN"
	CustomerCountryHK CustomerCountryEnum = "HK"
	CustomerCountryMO CustomerCountryEnum = "MO"
	CustomerCountryCX CustomerCountryEnum = "CX"
	CustomerCountryCC CustomerCountryEnum = "CC"
	CustomerCountryCO CustomerCountryEnum = "CO"
	CustomerCountryKM CustomerCountryEnum = "KM"
	CustomerCountryCG CustomerCountryEnum = "CG"
	CustomerCountryCK CustomerCountryEnum = "CK"
	CustomerCountryCR CustomerCountryEnum = "CR"
	CustomerCountryHR CustomerCountryEnum = "HR"
	CustomerCountryCU CustomerCountryEnum = "CU"
	CustomerCountryCW CustomerCountryEnum = "CW"
	CustomerCountryCY CustomerCountryEnum = "CY"
	CustomerCountryCZ CustomerCountryEnum = "CZ"
	CustomerCountryCI CustomerCountryEnum = "CI"
	CustomerCountryKP CustomerCountryEnum = "KP"
	CustomerCountryCD CustomerCountryEnum = "CD"
	CustomerCountryDK CustomerCountryEnum = "DK"
	CustomerCountryDJ CustomerCountryEnum = "DJ"
	CustomerCountryDM CustomerCountryEnum = "DM"
	CustomerCountryDO CustomerCountryEnum = "DO"
	CustomerCountryEC CustomerCountryEnum = "EC"
	CustomerCountryEG CustomerCountryEnum = "EG"
	CustomerCountrySV CustomerCountryEnum = "SV"
	CustomerCountryGQ CustomerCountryEnum = "GQ"
	CustomerCountryER CustomerCountryEnum = "ER"
	CustomerCountryEE CustomerCountryEnum = "EE"
	CustomerCountrySZ CustomerCountryEnum = "SZ"
	CustomerCountryET CustomerCountryEnum = "ET"
	CustomerCountryFK CustomerCountryEnum = "FK"
	CustomerCountryFO CustomerCountryEnum = "FO"
	CustomerCountryFJ CustomerCountryEnum = "FJ"
	CustomerCountryFI CustomerCountryEnum = "FI"
	CustomerCountryFR CustomerCountryEnum = "FR"
	CustomerCountryGF CustomerCountryEnum = "GF"
	CustomerCountryPF CustomerCountryEnum = "PF"
	CustomerCountryTF CustomerCountryEnum = "TF"
	CustomerCountryGA CustomerCountryEnum = "GA"
	CustomerCountryGM CustomerCountryEnum = "GM"
	CustomerCountryGE CustomerCountryEnum = "GE"
	CustomerCountryDE CustomerCountryEnum = "DE"
	CustomerCountryGH CustomerCountryEnum = "GH"
	CustomerCountryGI CustomerCountryEnum = "GI"
	CustomerCountryGR CustomerCountryEnum = "GR"
	CustomerCountryGL CustomerCountryEnum = "GL"
	CustomerCountryGD CustomerCountryEnum = "GD"
	CustomerCountryGP CustomerCountryEnum = "GP"
	CustomerCountryGU CustomerCountryEnum = "GU"
	CustomerCountryGT CustomerCountryEnum = "GT"
	CustomerCountryGG CustomerCountryEnum = "GG"
	CustomerCountryGN CustomerCountryEnum = "GN"
	CustomerCountryGW CustomerCountryEnum = "GW"
	CustomerCountryGY CustomerCountryEnum = "GY"
	CustomerCountryHT CustomerCountryEnum = "HT"
	CustomerCountryHM CustomerCountryEnum = "HM"
	CustomerCountryVA CustomerCountryEnum = "VA"
	CustomerCountryHN CustomerCountryEnum = "HN"
	CustomerCountryHU CustomerCountryEnum = "HU"
	CustomerCountryIS CustomerCountryEnum = "IS"
	CustomerCountryIN CustomerCountryEnum = "IN"
	CustomerCountryID CustomerCountryEnum = "ID"
	CustomerCountryIR CustomerCountryEnum = "IR"
	CustomerCountryIQ CustomerCountryEnum = "IQ"
	CustomerCountryIE CustomerCountryEnum = "IE"
	CustomerCountryIM CustomerCountryEnum = "IM"
	CustomerCountryIL CustomerCountryEnum = "IL"
	CustomerCountryIT CustomerCountryEnum = "IT"
	CustomerCountryJM CustomerCountryEnum = "JM"
	CustomerCountryJP CustomerCountryEnum = "JP"
	CustomerCountryJE CustomerCountryEnum = "JE"
	CustomerCountryJO CustomerCountryEnum = "JO"
	CustomerCountryKZ CustomerCountryEnum = "KZ"
	CustomerCountryKE CustomerCountryEnum = "KE"
	CustomerCountryKI CustomerCountryEnum = "KI"
	CustomerCountryKW CustomerCountryEnum = "KW"
	CustomerCountryKG CustomerCountryEnum = "KG"
	CustomerCountryLA CustomerCountryEnum = "LA"
	CustomerCountryLV CustomerCountryEnum = "LV"
	CustomerCountryLB CustomerCountryEnum = "LB"
	CustomerCountryLS CustomerCountryEnum = "LS"
	CustomerCountryLR CustomerCountryEnum = "LR"
	CustomerCountryLY CustomerCountryEnum = "LY"
	CustomerCountryLI CustomerCountryEnum = "LI"
	CustomerCountryLT CustomerCountryEnum = "LT"
	CustomerCountryLU CustomerCountryEnum = "LU"
	CustomerCountryMG CustomerCountryEnum = "MG"
	CustomerCountryMW CustomerCountryEnum = "MW"
	CustomerCountryMY CustomerCountryEnum = "MY"
	CustomerCountryMV CustomerCountryEnum = "MV"
	CustomerCountryML CustomerCountryEnum = "ML"
	CustomerCountryMT CustomerCountryEnum = "MT"
	CustomerCountryMH CustomerCountryEnum = "MH"
	CustomerCountryMQ CustomerCountryEnum = "MQ"
	CustomerCountryMR CustomerCountryEnum = "MR"
	CustomerCountryMU CustomerCountryEnum = "MU"
	CustomerCountryYT CustomerCountryEnum = "YT"
	CustomerCountryFM CustomerCountryEnum = "FM"
	CustomerCountryMC CustomerCountryEnum = "MC"
	CustomerCountryMN CustomerCountryEnum = "MN"
	CustomerCountryME CustomerCountryEnum = "ME"
	CustomerCountryMS CustomerCountryEnum = "MS"
	CustomerCountryMA CustomerCountryEnum = "MA"
	CustomerCountryMZ CustomerCountryEnum = "MZ"
	CustomerCountryMM CustomerCountryEnum = "MM"
	CustomerCountryNA CustomerCountryEnum = "NA"
	CustomerCountryNR CustomerCountryEnum = "NR"
	CustomerCountryNP CustomerCountryEnum = "NP"
	CustomerCountryNL CustomerCountryEnum = "NL"
	CustomerCountryNC CustomerCountryEnum = "NC"
	CustomerCountryNZ CustomerCountryEnum = "NZ"
	CustomerCountryNI CustomerCountryEnum = "NI"
	CustomerCountryNE CustomerCountryEnum = "NE"
	CustomerCountryNG CustomerCountryEnum = "NG"
	CustomerCountryNU CustomerCountryEnum = "NU"
	CustomerCountryNF CustomerCountryEnum = "NF"
	CustomerCountryMP CustomerCountryEnum = "MP"
	CustomerCountryNO CustomerCountryEnum = "NO"
	CustomerCountryOM CustomerCountryEnum = "OM"
	CustomerCountryPK CustomerCountryEnum = "PK"
	CustomerCountryPW CustomerCountryEnum = "PW"
	CustomerCountryPA CustomerCountryEnum = "PA"
	CustomerCountryPG CustomerCountryEnum = "PG"
	CustomerCountryPY CustomerCountryEnum = "PY"
	CustomerCountryPE CustomerCountryEnum = "PE"
	CustomerCountryPH CustomerCountryEnum = "PH"
	CustomerCountryPN CustomerCountryEnum = "PN"
	CustomerCountryPL CustomerCountryEnum = "PL"
	CustomerCountryPT CustomerCountryEnum = "PT"
	CustomerCountryPR CustomerCountryEnum = "PR"
	CustomerCountryQA CustomerCountryEnum = "QA"
	CustomerCountryKR CustomerCountryEnum = "KR"
	CustomerCountryMD CustomerCountryEnum = "MD"
	CustomerCountryRO CustomerCountryEnum = "RO"
	CustomerCountryRU CustomerCountryEnum = "RU"
	CustomerCountryRW CustomerCountryEnum = "RW"
	CustomerCountryRE CustomerCountryEnum = "RE"
	CustomerCountryBL CustomerCountryEnum = "BL"
	CustomerCountrySH CustomerCountryEnum = "SH"
	CustomerCountryKN CustomerCountryEnum = "KN"
	CustomerCountryLC CustomerCountryEnum = "LC"
	CustomerCountryMF CustomerCountryEnum = "MF"
	CustomerCountryPM CustomerCountryEnum = "PM"
	CustomerCountryVC CustomerCountryEnum = "VC"
	CustomerCountryWS CustomerCountryEnum = "WS"
	CustomerCountrySM CustomerCountryEnum = "SM"
	CustomerCountryST CustomerCountryEnum = "ST"
	CustomerCountrySA CustomerCountryEnum = "SA"
	CustomerCountrySN CustomerCountryEnum = "SN"
	CustomerCountryRS CustomerCountryEnum = "RS"
	CustomerCountrySC CustomerCountryEnum = "SC"
	CustomerCountrySL CustomerCountryEnum = "SL"
	CustomerCountrySG CustomerCountryEnum = "SG"
	CustomerCountrySX CustomerCountryEnum = "SX"
	CustomerCountrySK CustomerCountryEnum = "SK"
	CustomerCountrySI CustomerCountryEnum = "SI"
	CustomerCountrySB CustomerCountryEnum = "SB"
	CustomerCountrySO CustomerCountryEnum = "SO"
	CustomerCountryZA CustomerCountryEnum = "ZA"
	CustomerCountryGS CustomerCountryEnum = "GS"
	CustomerCountrySS CustomerCountryEnum = "SS"
	CustomerCountryES CustomerCountryEnum = "ES"
	CustomerCountryLK CustomerCountryEnum = "LK"
	CustomerCountryPS CustomerCountryEnum = "PS"
	CustomerCountrySD CustomerCountryEnum = "SD"
	CustomerCountrySR CustomerCountryEnum = "SR"
	CustomerCountrySJ CustomerCountryEnum = "SJ"
	CustomerCountrySE CustomerCountryEnum = "SE"
	CustomerCountryCH CustomerCountryEnum = "CH"
	CustomerCountrySY CustomerCountryEnum = "SY"
	CustomerCountryTW CustomerCountryEnum = "TW"
	CustomerCountryTJ CustomerCountryEnum = "TJ"
	CustomerCountryTH CustomerCountryEnum = "TH"
	CustomerCountryMK CustomerCountryEnum = "MK"
	CustomerCountryTL CustomerCountryEnum = "TL"
	CustomerCountryTG CustomerCountryEnum = "TG"
	CustomerCountryTK CustomerCountryEnum = "TK"
	CustomerCountryTO CustomerCountryEnum = "TO"
	CustomerCountryTT CustomerCountryEnum = "TT"
	CustomerCountryTN CustomerCountryEnum = "TN"
	CustomerCountryTR CustomerCountryEnum = "TR"
	CustomerCountryTM CustomerCountryEnum = "TM"
	CustomerCountryTC CustomerCountryEnum = "TC"
	CustomerCountryTV CustomerCountryEnum = "TV"
	CustomerCountryUG CustomerCountryEnum = "UG"
	CustomerCountryUA CustomerCountryEnum = "UA"
	CustomerCountryAE CustomerCountryEnum = "AE"
	CustomerCountryGB CustomerCountryEnum = "GB"
	CustomerCountryTZ CustomerCountryEnum = "TZ"
	CustomerCountryUM CustomerCountryEnum = "UM"
	CustomerCountryVI CustomerCountryEnum = "VI"
	CustomerCountryUY CustomerCountryEnum = "UY"
	CustomerCountryUZ CustomerCountryEnum = "UZ"
	CustomerCountryVU CustomerCountryEnum = "VU"
	CustomerCountryVE CustomerCountryEnum = "VE"
	CustomerCountryVN CustomerCountryEnum = "VN"
	CustomerCountryWF CustomerCountryEnum = "WF"
	CustomerCountryEH CustomerCountryEnum = "EH"
	CustomerCountryYE CustomerCountryEnum = "YE"
	CustomerCountryZM CustomerCountryEnum = "ZM"
	CustomerCountryZW CustomerCountryEnum = "ZW"
)

type CustomerCustomerTypeEnum

type CustomerCustomerTypeEnum string
const (
	CustomerCustomerTypeCustomer CustomerCustomerTypeEnum = "Customer"
	CustomerCustomerTypeFleet    CustomerCustomerTypeEnum = "Fleet"
)

type CustomerLocationConnection

type CustomerLocationConnection struct {
	CustomerID string `gorm:"primaryKey;not null;column:customerId" json:"customerId"`
	LocationID string `gorm:"primaryKey;not null;column:locationId" json:"locationId"`

	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
}

CustomerLocationConnection schema

func NewCustomerLocationConnection

func NewCustomerLocationConnection(buf []byte) (*CustomerLocationConnection, error)

NewCustomerLocationConnection returns a new model instance from an encoded buffer

func (*CustomerLocationConnection) PrimaryKeys added in v0.0.4

func (m *CustomerLocationConnection) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*CustomerLocationConnection) String

func (m *CustomerLocationConnection) String() string

String returns a string representation as JSON for this model

func (*CustomerLocationConnection) TableName

func (m *CustomerLocationConnection) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type CustomerPreferredContactMethodEnum

type CustomerPreferredContactMethodEnum string
const (
	CustomerPreferredContactMethodSMS   CustomerPreferredContactMethodEnum = "SMS"
	CustomerPreferredContactMethodEmail CustomerPreferredContactMethodEnum = "Email"
	CustomerPreferredContactMethodAll   CustomerPreferredContactMethodEnum = "All"
)

type Email

type Email struct {
	ID          string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	LocationID  string              `gorm:"not null;column:locationId" json:"locationId"`

	CustomerID string `gorm:"not null;column:customerId" json:"customerId"`
	Email      string `gorm:"not null;column:email" json:"email"`
	Primary    bool   `gorm:"not null;column:primary" json:"primary"`
	Subscribed bool   `gorm:"not null;column:subscribed" json:"subscribed"`
}

Email schema

func NewEmail

func NewEmail(buf []byte) (*Email, error)

NewEmail returns a new model instance from an encoded buffer

func (*Email) PrimaryKeys added in v0.0.4

func (m *Email) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*Email) String

func (m *Email) String() string

String returns a string representation as JSON for this model

func (*Email) TableName

func (m *Email) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type Fee

type Fee struct {
	ID          string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	LocationID  string              `gorm:"not null;column:locationId" json:"locationId"`

	AmountCents    int64                  `gorm:"not null;column:amountCents" json:"amountCents"`
	CategoryID     *string                `gorm:"column:categoryId" json:"categoryId"`
	FeeType        FeeFeeTypeEnum         `gorm:"not null;column:feeType" json:"feeType"`
	LaborID        *string                `gorm:"column:laborId" json:"laborId"`
	LineItemEntity *FeeLineItemEntityEnum `gorm:"column:lineItemEntity" json:"lineItemEntity"`
	Name           string                 `gorm:"not null;column:name" json:"name"`
	OrderID        string                 `gorm:"not null;column:orderId" json:"orderId"`
	Ordinal        float64                `gorm:"not null;column:ordinal" json:"ordinal"`
	PartID         *string                `gorm:"column:partId" json:"partId"`
	Percent        float64                `gorm:"not null;column:percent" json:"percent"`
	ServiceID      string                 `gorm:"not null;column:serviceId" json:"serviceId"`
	SourceItemID   *string                `gorm:"column:sourceItemId" json:"sourceItemId"`
	SubcontractID  *string                `gorm:"column:subcontractId" json:"subcontractId"`
	SubtotalCents  *int64                 `gorm:"column:subtotalCents" json:"subtotalCents"`
	TireID         *string                `gorm:"column:tireId" json:"tireId"`
}

func NewFee

func NewFee(buf []byte) (*Fee, error)

NewFee returns a new model instance from an encoded buffer

func (*Fee) PrimaryKeys added in v0.0.4

func (m *Fee) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*Fee) String

func (m *Fee) String() string

String returns a string representation as JSON for this model

func (*Fee) TableName

func (m *Fee) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type FeeFeeTypeEnum

type FeeFeeTypeEnum string

Fee schema

const (
	FeeFeeTypePercentLineItem FeeFeeTypeEnum = "PercentLineItem"
	FeeFeeTypePercentService  FeeFeeTypeEnum = "PercentService"
	FeeFeeTypeFixedCents      FeeFeeTypeEnum = "FixedCents"
)

type FeeLineItemEntityEnum

type FeeLineItemEntityEnum string
const (
	FeeLineItemEntityLabor       FeeLineItemEntityEnum = "Labor"
	FeeLineItemEntityPart        FeeLineItemEntityEnum = "Part"
	FeeLineItemEntitySubcontract FeeLineItemEntityEnum = "Subcontract"
	FeeLineItemEntityTire        FeeLineItemEntityEnum = "Tire"
)

type Inspection

type Inspection struct {
	ID          string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	LocationID  string              `gorm:"not null;column:locationId" json:"locationId"`

	Completed     bool                `gorm:"not null;column:completed" json:"completed"`
	CompletedByID *string             `gorm:"column:completedById" json:"completedById"`
	CompletedDate *datatypes.DateTime `gorm:"column:completedDate" json:"completedDate"`
	CreatedByID   *string             `gorm:"column:createdById" json:"createdById"`
	Name          string              `gorm:"not null;column:name" json:"name"`
	OrderID       string              `gorm:"not null;column:orderId" json:"orderId"`
	Ordinal       float64             `gorm:"not null;column:ordinal" json:"ordinal"`
	TemplateID    *string             `gorm:"column:templateId" json:"templateId"`
}

Inspection schema

func NewInspection

func NewInspection(buf []byte) (*Inspection, error)

NewInspection returns a new model instance from an encoded buffer

func (*Inspection) PrimaryKeys added in v0.0.4

func (m *Inspection) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*Inspection) String

func (m *Inspection) String() string

String returns a string representation as JSON for this model

func (*Inspection) TableName

func (m *Inspection) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type InspectionItem

type InspectionItem struct {
	ID          string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	LocationID  string              `gorm:"not null;column:locationId" json:"locationId"`

	Approved            bool                                  `gorm:"not null;column:approved" json:"approved"`
	AuthorizationStatus InspectionItemAuthorizationStatusEnum `gorm:"not null;column:authorizationStatus" json:"authorizationStatus"`
	InspectionDate      *datatypes.DateTime                   `gorm:"column:inspectionDate" json:"inspectionDate"`
	InspectionID        string                                `gorm:"not null;column:inspectionId" json:"inspectionId"`
	InspectorUserID     *string                               `gorm:"column:inspectorUserId" json:"inspectorUserId"`
	Message             string                                `gorm:"not null;column:message" json:"message"`
	Name                string                                `gorm:"not null;column:name" json:"name"`
	Ordinal             float64                               `gorm:"not null;column:ordinal" json:"ordinal"`
	Status              *InspectionItemStatusEnum             `gorm:"column:status" json:"status"`
}

func NewInspectionItem

func NewInspectionItem(buf []byte) (*InspectionItem, error)

NewInspectionItem returns a new model instance from an encoded buffer

func (*InspectionItem) PrimaryKeys added in v0.0.4

func (m *InspectionItem) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*InspectionItem) String

func (m *InspectionItem) String() string

String returns a string representation as JSON for this model

func (*InspectionItem) TableName

func (m *InspectionItem) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type InspectionItemAuthorizationStatusEnum

type InspectionItemAuthorizationStatusEnum string

InspectionItem schema

const (
	InspectionItemAuthorizationStatusUndecided  InspectionItemAuthorizationStatusEnum = "Undecided"
	InspectionItemAuthorizationStatusAuthorized InspectionItemAuthorizationStatusEnum = "Authorized"
	InspectionItemAuthorizationStatusDeclined   InspectionItemAuthorizationStatusEnum = "Declined"
)

type InspectionItemQuickNote

type InspectionItemQuickNote struct {
	ID          string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	LocationID  string              `gorm:"not null;column:locationId" json:"locationId"`

	CreatedByID *string `gorm:"column:createdById" json:"createdById"`
	Label       string  `gorm:"not null;column:label" json:"label"`
	Note        string  `gorm:"not null;column:note" json:"note"`
}

InspectionItemQuickNote schema

func NewInspectionItemQuickNote

func NewInspectionItemQuickNote(buf []byte) (*InspectionItemQuickNote, error)

NewInspectionItemQuickNote returns a new model instance from an encoded buffer

func (*InspectionItemQuickNote) PrimaryKeys added in v0.0.4

func (m *InspectionItemQuickNote) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*InspectionItemQuickNote) String

func (m *InspectionItemQuickNote) String() string

String returns a string representation as JSON for this model

func (*InspectionItemQuickNote) TableName

func (m *InspectionItemQuickNote) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type InspectionItemStatusEnum

type InspectionItemStatusEnum string
const (
	InspectionItemStatusGreen         InspectionItemStatusEnum = "Green"
	InspectionItemStatusYellow        InspectionItemStatusEnum = "Yellow"
	InspectionItemStatusRed           InspectionItemStatusEnum = "Red"
	InspectionItemStatusNotApplicable InspectionItemStatusEnum = "NotApplicable"
)

type InspectionTemplate

type InspectionTemplate struct {
	ID          string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	LocationID  string              `gorm:"not null;column:locationId" json:"locationId"`

	CreatedByID   *string             `gorm:"column:createdById" json:"createdById"`
	Deleted       bool                `gorm:"not null;column:deleted" json:"deleted"`    // if the record has been deleted
	DeletedDate   *datatypes.DateTime `gorm:"column:deletedDate" json:"deletedDate"`     // the date that the record was deleted or null if not deleted
	DeletedReason *string             `gorm:"column:deletedReason" json:"deletedReason"` // the reason that the record was deleted
	DeletedUserID *string             `gorm:"column:deletedUserId" json:"deletedUserId"` // the user that deleted the record or null if not deleted
	Name          string              `gorm:"not null;column:name" json:"name"`
}

InspectionTemplate schema

func NewInspectionTemplate

func NewInspectionTemplate(buf []byte) (*InspectionTemplate, error)

NewInspectionTemplate returns a new model instance from an encoded buffer

func (*InspectionTemplate) PrimaryKeys added in v0.0.4

func (m *InspectionTemplate) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*InspectionTemplate) String

func (m *InspectionTemplate) String() string

String returns a string representation as JSON for this model

func (*InspectionTemplate) TableName

func (m *InspectionTemplate) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type InspectionTemplateItem

type InspectionTemplateItem struct {
	ID          string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	LocationID  string              `gorm:"not null;column:locationId" json:"locationId"`

	InspectionTemplateID string                            `gorm:"not null;column:inspectionTemplateId" json:"inspectionTemplateId"`
	Message              string                            `gorm:"not null;column:message" json:"message"`
	Name                 string                            `gorm:"not null;column:name" json:"name"`
	Ordinal              float64                           `gorm:"not null;column:ordinal" json:"ordinal"`
	Status               *InspectionTemplateItemStatusEnum `gorm:"column:status" json:"status"`
}

func NewInspectionTemplateItem

func NewInspectionTemplateItem(buf []byte) (*InspectionTemplateItem, error)

NewInspectionTemplateItem returns a new model instance from an encoded buffer

func (*InspectionTemplateItem) PrimaryKeys added in v0.0.4

func (m *InspectionTemplateItem) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*InspectionTemplateItem) String

func (m *InspectionTemplateItem) String() string

String returns a string representation as JSON for this model

func (*InspectionTemplateItem) TableName

func (m *InspectionTemplateItem) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type InspectionTemplateItemStatusEnum

type InspectionTemplateItemStatusEnum string

InspectionTemplateItem schema

const (
	InspectionTemplateItemStatusGreen         InspectionTemplateItemStatusEnum = "Green"
	InspectionTemplateItemStatusYellow        InspectionTemplateItemStatusEnum = "Yellow"
	InspectionTemplateItemStatusRed           InspectionTemplateItemStatusEnum = "Red"
	InspectionTemplateItemStatusNotApplicable InspectionTemplateItemStatusEnum = "NotApplicable"
)

type InventoryCategory

type InventoryCategory struct {
	ID          string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	LocationID  string              `gorm:"not null;column:locationId" json:"locationId"`

	Name     string  `gorm:"not null;column:name" json:"name"`
	ParentID *string `gorm:"column:parentId" json:"parentId"`
}

InventoryCategory schema

func NewInventoryCategory

func NewInventoryCategory(buf []byte) (*InventoryCategory, error)

NewInventoryCategory returns a new model instance from an encoded buffer

func (*InventoryCategory) PrimaryKeys added in v0.0.4

func (m *InventoryCategory) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*InventoryCategory) String

func (m *InventoryCategory) String() string

String returns a string representation as JSON for this model

func (*InventoryCategory) TableName

func (m *InventoryCategory) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type InventoryFee

type InventoryFee struct {
	ID          string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	LocationID  string              `gorm:"not null;column:locationId" json:"locationId"`

	AmountCents   int64                   `gorm:"not null;column:amountCents" json:"amountCents"`
	CategoryID    *string                 `gorm:"column:categoryId" json:"categoryId"`
	Deleted       bool                    `gorm:"not null;column:deleted" json:"deleted"`    // if the record has been deleted
	DeletedDate   *datatypes.DateTime     `gorm:"column:deletedDate" json:"deletedDate"`     // the date that the record was deleted or null if not deleted
	DeletedReason *string                 `gorm:"column:deletedReason" json:"deletedReason"` // the reason that the record was deleted
	DeletedUserID *string                 `gorm:"column:deletedUserId" json:"deletedUserId"` // the user that deleted the record or null if not deleted
	FeeType       InventoryFeeFeeTypeEnum `gorm:"not null;column:feeType" json:"feeType"`
	Name          string                  `gorm:"not null;column:name" json:"name"`
	Percent       float64                 `gorm:"not null;column:percent" json:"percent"`
	UserID        *string                 `gorm:"column:userId" json:"userId"`
}

func NewInventoryFee

func NewInventoryFee(buf []byte) (*InventoryFee, error)

NewInventoryFee returns a new model instance from an encoded buffer

func (*InventoryFee) PrimaryKeys added in v0.0.4

func (m *InventoryFee) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*InventoryFee) String

func (m *InventoryFee) String() string

String returns a string representation as JSON for this model

func (*InventoryFee) TableName

func (m *InventoryFee) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type InventoryFeeFeeTypeEnum

type InventoryFeeFeeTypeEnum string

InventoryFee schema

const (
	InventoryFeeFeeTypePercentLineItem InventoryFeeFeeTypeEnum = "PercentLineItem"
	InventoryFeeFeeTypePercentService  InventoryFeeFeeTypeEnum = "PercentService"
	InventoryFeeFeeTypeFixedCents      InventoryFeeFeeTypeEnum = "FixedCents"
)

type InventoryLabor

type InventoryLabor struct {
	ID          string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	LocationID  string              `gorm:"not null;column:locationId" json:"locationId"`

	CategoryID               *string                             `gorm:"column:categoryId" json:"categoryId"`
	CostHours                *float64                            `gorm:"column:costHours" json:"costHours"`
	CostRateCents            *int64                              `gorm:"column:costRateCents" json:"costRateCents"`
	Deleted                  bool                                `gorm:"not null;column:deleted" json:"deleted"`    // if the record has been deleted
	DeletedDate              *datatypes.DateTime                 `gorm:"column:deletedDate" json:"deletedDate"`     // the date that the record was deleted or null if not deleted
	DeletedReason            *string                             `gorm:"column:deletedReason" json:"deletedReason"` // the reason that the record was deleted
	DeletedUserID            *string                             `gorm:"column:deletedUserId" json:"deletedUserId"` // the user that deleted the record or null if not deleted
	DiscountCents            int64                               `gorm:"not null;column:discountCents" json:"discountCents"`
	DiscountPercent          float64                             `gorm:"not null;column:discountPercent" json:"discountPercent"`
	DiscountValueType        InventoryLaborDiscountValueTypeEnum `gorm:"not null;column:discountValueType" json:"discountValueType"`
	Hours                    float64                             `gorm:"not null;column:hours" json:"hours"`
	LaborMatrixDate          *datatypes.DateTime                 `gorm:"column:laborMatrixDate" json:"laborMatrixDate"` // datetime when laborMatrixId was set, for determining if matrix has been changed
	LaborMatrixID            *string                             `gorm:"column:laborMatrixId" json:"laborMatrixId"`
	Multiplier               float64                             `gorm:"not null;column:multiplier" json:"multiplier"`
	MultiplierType           InventoryLaborMultiplierTypeEnum    `gorm:"not null;column:multiplierType" json:"multiplierType"`
	Name                     string                              `gorm:"not null;column:name" json:"name"`
	Note                     string                              `gorm:"not null;column:note" json:"note"`
	RateCents                int64                               `gorm:"not null;column:rateCents" json:"rateCents"`
	RateID                   *string                             `gorm:"column:rateId" json:"rateId"`
	ShowHours                bool                                `gorm:"not null;column:showHours" json:"showHours"`
	ShowNote                 bool                                `gorm:"not null;column:showNote" json:"showNote"`
	SkillRequired            *InventoryLaborSkillRequiredEnum    `gorm:"column:skillRequired" json:"skillRequired"`
	SkillRequiredDescription *string                             `gorm:"column:skillRequiredDescription" json:"skillRequiredDescription"`
	Taxable                  bool                                `gorm:"not null;column:taxable" json:"taxable"`
	TotalCostCents           *int64                              `gorm:"column:totalCostCents" json:"totalCostCents"`
	UserID                   *string                             `gorm:"column:userId" json:"userId"`
}

func NewInventoryLabor

func NewInventoryLabor(buf []byte) (*InventoryLabor, error)

NewInventoryLabor returns a new model instance from an encoded buffer

func (*InventoryLabor) PrimaryKeys added in v0.0.4

func (m *InventoryLabor) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*InventoryLabor) String

func (m *InventoryLabor) String() string

String returns a string representation as JSON for this model

func (*InventoryLabor) TableName

func (m *InventoryLabor) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type InventoryLaborDiscountValueTypeEnum added in v0.0.8

type InventoryLaborDiscountValueTypeEnum string

InventoryLabor schema

const (
	InventoryLaborDiscountValueTypePercent    InventoryLaborDiscountValueTypeEnum = "Percent"
	InventoryLaborDiscountValueTypeFixedCents InventoryLaborDiscountValueTypeEnum = "FixedCents"
)

type InventoryLaborMultiplierTypeEnum added in v0.0.8

type InventoryLaborMultiplierTypeEnum string
const (
	InventoryLaborMultiplierTypeHours InventoryLaborMultiplierTypeEnum = "Hours"
	InventoryLaborMultiplierTypeRate  InventoryLaborMultiplierTypeEnum = "Rate"
)

type InventoryLaborSkillRequiredEnum added in v0.0.8

type InventoryLaborSkillRequiredEnum string
const (
	InventoryLaborSkillRequiredGeneral     InventoryLaborSkillRequiredEnum = "General"
	InventoryLaborSkillRequiredMaintenance InventoryLaborSkillRequiredEnum = "Maintenance"
	InventoryLaborSkillRequiredPrecision   InventoryLaborSkillRequiredEnum = "Precision"
)

type InventoryPart

type InventoryPart struct {
	ID          string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	LocationID  string              `gorm:"not null;column:locationId" json:"locationId"`

	BinLocation        *string             `gorm:"column:binLocation" json:"binLocation"`
	CategoryID         *string             `gorm:"column:categoryId" json:"categoryId"`
	Deleted            bool                `gorm:"not null;column:deleted" json:"deleted"`    // if the record has been deleted
	DeletedDate        *datatypes.DateTime `gorm:"column:deletedDate" json:"deletedDate"`     // the date that the record was deleted or null if not deleted
	DeletedReason      *string             `gorm:"column:deletedReason" json:"deletedReason"` // the reason that the record was deleted
	DeletedUserID      *string             `gorm:"column:deletedUserId" json:"deletedUserId"` // the user that deleted the record or null if not deleted
	Name               string              `gorm:"not null;column:name" json:"name"`
	Note               *string             `gorm:"column:note" json:"note"`
	Number             string              `gorm:"not null;column:number" json:"number"`
	Quantity           float64             `gorm:"not null;column:quantity" json:"quantity"`
	RetailCostCents    int64               `gorm:"not null;column:retailCostCents" json:"retailCostCents"`
	Taxable            bool                `gorm:"not null;column:taxable" json:"taxable"`
	UserID             *string             `gorm:"column:userId" json:"userId"`
	VendorID           *string             `gorm:"column:vendorId" json:"vendorId"`
	WholesaleCostCents int64               `gorm:"not null;column:wholesaleCostCents" json:"wholesaleCostCents"`
}

InventoryPart schema

func NewInventoryPart

func NewInventoryPart(buf []byte) (*InventoryPart, error)

NewInventoryPart returns a new model instance from an encoded buffer

func (*InventoryPart) PrimaryKeys added in v0.0.4

func (m *InventoryPart) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*InventoryPart) String

func (m *InventoryPart) String() string

String returns a string representation as JSON for this model

func (*InventoryPart) TableName

func (m *InventoryPart) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type InventoryTire added in v0.0.8

type InventoryTire struct {
	ID          string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	LocationID  string              `gorm:"not null;column:locationId" json:"locationId"`

	AspectValue           *float64                           `gorm:"column:aspectValue" json:"aspectValue"`
	BinLocation           *string                            `gorm:"column:binLocation" json:"binLocation"`
	BrandID               *string                            `gorm:"column:brandId" json:"brandId"`
	CategoryID            *string                            `gorm:"column:categoryId" json:"categoryId"`
	CategoryType          *string                            `gorm:"column:categoryType" json:"categoryType"`
	Construction          *string                            `gorm:"column:construction" json:"construction"`
	CrossUnit             InventoryTireCrossUnitEnum         `gorm:"not null;column:crossUnit" json:"crossUnit"`
	CrossValue            *float64                           `gorm:"column:crossValue" json:"crossValue"`
	Deleted               bool                               `gorm:"not null;column:deleted" json:"deleted"`    // if the record has been deleted
	DeletedDate           *datatypes.DateTime                `gorm:"column:deletedDate" json:"deletedDate"`     // the date that the record was deleted or null if not deleted
	DeletedReason         *string                            `gorm:"column:deletedReason" json:"deletedReason"` // the reason that the record was deleted
	DeletedUserID         *string                            `gorm:"column:deletedUserId" json:"deletedUserId"` // the user that deleted the record or null if not deleted
	DiscountCents         int64                              `gorm:"not null;column:discountCents" json:"discountCents"`
	DiscountPercent       float64                            `gorm:"not null;column:discountPercent" json:"discountPercent"`
	DiscountValueType     InventoryTireDiscountValueTypeEnum `gorm:"not null;column:discountValueType" json:"discountValueType"`
	FederalExciseTaxCents int64                              `gorm:"not null;column:federalExciseTaxCents" json:"federalExciseTaxCents"`
	InventoryNumber       *string                            `gorm:"column:inventoryNumber" json:"inventoryNumber"`
	IsRunFlat             bool                               `gorm:"not null;column:isRunFlat" json:"isRunFlat"`
	IsStudded             bool                               `gorm:"not null;column:isStudded" json:"isStudded"`
	LoadIndex             *int64                             `gorm:"column:loadIndex" json:"loadIndex"`
	LoadRange             *string                            `gorm:"column:loadRange" json:"loadRange"`
	MaxTirePressurePSI    *float64                           `gorm:"column:maxTirePressurePSI" json:"maxTirePressurePSI"`
	Model                 *string                            `gorm:"column:model" json:"model"`
	Name                  string                             `gorm:"not null;column:name" json:"name"`
	Note                  *string                            `gorm:"column:note" json:"note"`
	OuterDiameterUnit     InventoryTireOuterDiameterUnitEnum `gorm:"not null;column:outerDiameterUnit" json:"outerDiameterUnit"`
	OuterDiameterValue    *float64                           `gorm:"column:outerDiameterValue" json:"outerDiameterValue"`
	PartNumber            *string                            `gorm:"column:partNumber" json:"partNumber"`
	PricingMatrixDate     *datatypes.DateTime                `gorm:"column:pricingMatrixDate" json:"pricingMatrixDate"` // datetime when pricingMatrixId was set, for determining if matrix has been changed api_schema(calculated)
	PricingMatrixID       *string                            `gorm:"column:pricingMatrixId" json:"pricingMatrixId"`
	Quantity              int64                              `gorm:"not null;column:quantity" json:"quantity"`
	RetailCostCents       int64                              `gorm:"not null;column:retailCostCents" json:"retailCostCents"`
	RimUnit               InventoryTireRimUnitEnum           `gorm:"not null;column:rimUnit" json:"rimUnit"`
	RimValue              *float64                           `gorm:"column:rimValue" json:"rimValue"`
	Seasonality           *InventoryTireSeasonalityEnum      `gorm:"column:seasonality" json:"seasonality"`
	ServiceType           *string                            `gorm:"column:serviceType" json:"serviceType"`
	ShowNote              bool                               `gorm:"not null;column:showNote" json:"showNote"`
	ShowPartNumber        bool                               `gorm:"not null;column:showPartNumber" json:"showPartNumber"`
	ShowPriceAndQuantity  bool                               `gorm:"not null;column:showPriceAndQuantity" json:"showPriceAndQuantity"`
	Size                  *string                            `gorm:"column:size" json:"size"`
	SizeFormat            InventoryTireSizeFormatEnum        `gorm:"not null;column:sizeFormat" json:"sizeFormat"`
	SpeedRating           *string                            `gorm:"column:speedRating" json:"speedRating"`
	Taxable               bool                               `gorm:"not null;column:taxable" json:"taxable"`
	TemperatureUTQG       *string                            `gorm:"column:temperature_UTQG" json:"temperature_UTQG"`
	TractionUTQG          *string                            `gorm:"column:traction_UTQG" json:"traction_UTQG"`
	TreadDepthUnit        InventoryTireTreadDepthUnitEnum    `gorm:"not null;column:treadDepthUnit" json:"treadDepthUnit"`
	TreadDepthValue       *float64                           `gorm:"column:treadDepthValue" json:"treadDepthValue"`
	TreadWearUTQG         *float64                           `gorm:"column:treadWear_UTQG" json:"treadWear_UTQG"`
	UserID                *string                            `gorm:"column:userId" json:"userId"`
	VendorID              *string                            `gorm:"column:vendorId" json:"vendorId"`
	WasteTireFee          int64                              `gorm:"not null;column:wasteTireFee" json:"wasteTireFee"`
	WholesaleCostCents    *int64                             `gorm:"column:wholesaleCostCents" json:"wholesaleCostCents"`
}

func NewInventoryTire added in v0.0.8

func NewInventoryTire(buf []byte) (*InventoryTire, error)

NewInventoryTire returns a new model instance from an encoded buffer

func (*InventoryTire) PrimaryKeys added in v0.0.8

func (m *InventoryTire) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*InventoryTire) String added in v0.0.8

func (m *InventoryTire) String() string

String returns a string representation as JSON for this model

func (*InventoryTire) TableName added in v0.0.8

func (m *InventoryTire) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type InventoryTireCrossUnitEnum added in v0.0.8

type InventoryTireCrossUnitEnum string

InventoryTire schema

const (
	InventoryTireCrossUnitmm InventoryTireCrossUnitEnum = "mm"
	InventoryTireCrossUnitin InventoryTireCrossUnitEnum = "in"
)

type InventoryTireDiscountValueTypeEnum added in v0.0.8

type InventoryTireDiscountValueTypeEnum string
const (
	InventoryTireDiscountValueTypePercent    InventoryTireDiscountValueTypeEnum = "Percent"
	InventoryTireDiscountValueTypeFixedCents InventoryTireDiscountValueTypeEnum = "FixedCents"
)

type InventoryTireOuterDiameterUnitEnum added in v0.0.8

type InventoryTireOuterDiameterUnitEnum string
const (
	InventoryTireOuterDiameterUnitmm InventoryTireOuterDiameterUnitEnum = "mm"
	InventoryTireOuterDiameterUnitin InventoryTireOuterDiameterUnitEnum = "in"
)

type InventoryTireRimUnitEnum added in v0.0.8

type InventoryTireRimUnitEnum string
const (
	InventoryTireRimUnitmm InventoryTireRimUnitEnum = "mm"
	InventoryTireRimUnitin InventoryTireRimUnitEnum = "in"
)

type InventoryTireSeasonalityEnum added in v0.0.8

type InventoryTireSeasonalityEnum string
const (
	InventoryTireSeasonalitySummer     InventoryTireSeasonalityEnum = "Summer"
	InventoryTireSeasonalityWinter     InventoryTireSeasonalityEnum = "Winter"
	InventoryTireSeasonalityAllSeasons InventoryTireSeasonalityEnum = "AllSeasons"
)

type InventoryTireSizeFormatEnum added in v0.0.8

type InventoryTireSizeFormatEnum string
const (
	InventoryTireSizeFormatConventional InventoryTireSizeFormatEnum = "Conventional"
	InventoryTireSizeFormatOffRoadSAE   InventoryTireSizeFormatEnum = "OffRoadSAE"
)

type InventoryTireTreadDepthUnitEnum added in v0.0.8

type InventoryTireTreadDepthUnitEnum string
const (
	InventoryTireTreadDepthUnitmm InventoryTireTreadDepthUnitEnum = "mm"
	InventoryTireTreadDepthUnitin InventoryTireTreadDepthUnitEnum = "in"
)

type Label

type Label struct {
	ID          string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	LocationID  string              `gorm:"not null;column:locationId" json:"locationId"`

	Color  string          `gorm:"not null;column:color" json:"color"`
	Entity LabelEntityEnum `gorm:"not null;column:entity" json:"entity"`
	Name   string          `gorm:"not null;column:name" json:"name"`
	Saved  bool            `gorm:"not null;column:saved" json:"saved"`
}

func NewLabel

func NewLabel(buf []byte) (*Label, error)

NewLabel returns a new model instance from an encoded buffer

func (*Label) PrimaryKeys added in v0.0.4

func (m *Label) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*Label) String

func (m *Label) String() string

String returns a string representation as JSON for this model

func (*Label) TableName

func (m *Label) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type LabelCannedServiceConnection

type LabelCannedServiceConnection struct {
	LabelID         string `gorm:"primaryKey;not null;column:labelId" json:"labelId"`
	CannedServiceID string `gorm:"primaryKey;not null;column:cannedServiceId" json:"cannedServiceId"`

	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	CreatedDate *datatypes.DateTime `gorm:"column:createdDate;column:createdDate" json:"createdDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
}

LabelCannedServiceConnection schema

func NewLabelCannedServiceConnection

func NewLabelCannedServiceConnection(buf []byte) (*LabelCannedServiceConnection, error)

NewLabelCannedServiceConnection returns a new model instance from an encoded buffer

func (*LabelCannedServiceConnection) PrimaryKeys added in v0.0.4

func (m *LabelCannedServiceConnection) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*LabelCannedServiceConnection) String

String returns a string representation as JSON for this model

func (*LabelCannedServiceConnection) TableName

func (m *LabelCannedServiceConnection) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type LabelCannedServiceFeeConnection

type LabelCannedServiceFeeConnection struct {
	LabelID            string `gorm:"primaryKey;not null;column:labelId" json:"labelId"`
	CannedServiceFeeID string `gorm:"primaryKey;not null;column:cannedServiceFeeId" json:"cannedServiceFeeId"`

	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
}

LabelCannedServiceFeeConnection schema

func NewLabelCannedServiceFeeConnection

func NewLabelCannedServiceFeeConnection(buf []byte) (*LabelCannedServiceFeeConnection, error)

NewLabelCannedServiceFeeConnection returns a new model instance from an encoded buffer

func (*LabelCannedServiceFeeConnection) PrimaryKeys added in v0.0.4

func (m *LabelCannedServiceFeeConnection) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*LabelCannedServiceFeeConnection) String

String returns a string representation as JSON for this model

func (*LabelCannedServiceFeeConnection) TableName

func (m *LabelCannedServiceFeeConnection) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type LabelCannedServiceLaborConnection

type LabelCannedServiceLaborConnection struct {
	LabelID              string `gorm:"primaryKey;not null;column:labelId" json:"labelId"`
	CannedServiceLaborID string `gorm:"primaryKey;not null;column:cannedServiceLaborId" json:"cannedServiceLaborId"`

	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
}

LabelCannedServiceLaborConnection schema

func NewLabelCannedServiceLaborConnection

func NewLabelCannedServiceLaborConnection(buf []byte) (*LabelCannedServiceLaborConnection, error)

NewLabelCannedServiceLaborConnection returns a new model instance from an encoded buffer

func (*LabelCannedServiceLaborConnection) PrimaryKeys added in v0.0.4

func (m *LabelCannedServiceLaborConnection) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*LabelCannedServiceLaborConnection) String

String returns a string representation as JSON for this model

func (*LabelCannedServiceLaborConnection) TableName

TableName returns the name of the table for this model which GORM will use when using this model

type LabelCannedServicePartConnection

type LabelCannedServicePartConnection struct {
	LabelID             string `gorm:"primaryKey;not null;column:labelId" json:"labelId"`
	CannedServicePartID string `gorm:"primaryKey;not null;column:cannedServicePartId" json:"cannedServicePartId"`

	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
}

LabelCannedServicePartConnection schema

func NewLabelCannedServicePartConnection

func NewLabelCannedServicePartConnection(buf []byte) (*LabelCannedServicePartConnection, error)

NewLabelCannedServicePartConnection returns a new model instance from an encoded buffer

func (*LabelCannedServicePartConnection) PrimaryKeys added in v0.0.4

func (m *LabelCannedServicePartConnection) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*LabelCannedServicePartConnection) String

String returns a string representation as JSON for this model

func (*LabelCannedServicePartConnection) TableName

TableName returns the name of the table for this model which GORM will use when using this model

type LabelCannedServiceSubcontractConnection

type LabelCannedServiceSubcontractConnection struct {
	LabelID                    string `gorm:"primaryKey;not null;column:labelId" json:"labelId"`
	CannedServiceSubcontractID string `gorm:"primaryKey;not null;column:cannedServiceSubcontractId" json:"cannedServiceSubcontractId"`

	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
}

LabelCannedServiceSubcontractConnection schema

func NewLabelCannedServiceSubcontractConnection

func NewLabelCannedServiceSubcontractConnection(buf []byte) (*LabelCannedServiceSubcontractConnection, error)

NewLabelCannedServiceSubcontractConnection returns a new model instance from an encoded buffer

func (*LabelCannedServiceSubcontractConnection) PrimaryKeys added in v0.0.4

PrimaryKeys returns an array of the primary keys for this model

func (*LabelCannedServiceSubcontractConnection) String

String returns a string representation as JSON for this model

func (*LabelCannedServiceSubcontractConnection) TableName

TableName returns the name of the table for this model which GORM will use when using this model

type LabelCannedServiceTireConnection

type LabelCannedServiceTireConnection struct {
	LabelID             string `gorm:"primaryKey;not null;column:labelId" json:"labelId"`
	CannedServiceTireID string `gorm:"primaryKey;not null;column:cannedServiceTireId" json:"cannedServiceTireId"`

	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
}

LabelCannedServiceTireConnection schema

func NewLabelCannedServiceTireConnection

func NewLabelCannedServiceTireConnection(buf []byte) (*LabelCannedServiceTireConnection, error)

NewLabelCannedServiceTireConnection returns a new model instance from an encoded buffer

func (*LabelCannedServiceTireConnection) PrimaryKeys added in v0.0.4

func (m *LabelCannedServiceTireConnection) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*LabelCannedServiceTireConnection) String

String returns a string representation as JSON for this model

func (*LabelCannedServiceTireConnection) TableName

TableName returns the name of the table for this model which GORM will use when using this model

type LabelCustomerConnection

type LabelCustomerConnection struct {
	LabelID    string `gorm:"primaryKey;not null;column:labelId" json:"labelId"`
	CustomerID string `gorm:"primaryKey;not null;column:customerId" json:"customerId"`

	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	CreatedDate *datatypes.DateTime `gorm:"column:createdDate;column:createdDate" json:"createdDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
}

LabelCustomerConnection schema

func NewLabelCustomerConnection

func NewLabelCustomerConnection(buf []byte) (*LabelCustomerConnection, error)

NewLabelCustomerConnection returns a new model instance from an encoded buffer

func (*LabelCustomerConnection) PrimaryKeys added in v0.0.4

func (m *LabelCustomerConnection) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*LabelCustomerConnection) String

func (m *LabelCustomerConnection) String() string

String returns a string representation as JSON for this model

func (*LabelCustomerConnection) TableName

func (m *LabelCustomerConnection) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type LabelEntityEnum

type LabelEntityEnum string

Label schema

const (
	LabelEntityCannedService            LabelEntityEnum = "CannedService"
	LabelEntityCannedServiceFee         LabelEntityEnum = "CannedServiceFee"
	LabelEntityCannedServiceLabor       LabelEntityEnum = "CannedServiceLabor"
	LabelEntityCannedServicePart        LabelEntityEnum = "CannedServicePart"
	LabelEntityCannedServiceSubcontract LabelEntityEnum = "CannedServiceSubcontract"
	LabelEntityCustomer                 LabelEntityEnum = "Customer"
	LabelEntityFee                      LabelEntityEnum = "Fee"
	LabelEntityLabor                    LabelEntityEnum = "Labor"
	LabelEntityOrder                    LabelEntityEnum = "Order"
	LabelEntityPart                     LabelEntityEnum = "Part"
	LabelEntityService                  LabelEntityEnum = "Service"
	LabelEntitySubcontract              LabelEntityEnum = "Subcontract"
	LabelEntityVehicle                  LabelEntityEnum = "Vehicle"
)

type LabelFeeConnection

type LabelFeeConnection struct {
	LabelID string `gorm:"primaryKey;not null;column:labelId" json:"labelId"`
	FeeID   string `gorm:"primaryKey;not null;column:feeId" json:"feeId"`

	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
}

LabelFeeConnection schema

func NewLabelFeeConnection

func NewLabelFeeConnection(buf []byte) (*LabelFeeConnection, error)

NewLabelFeeConnection returns a new model instance from an encoded buffer

func (*LabelFeeConnection) PrimaryKeys added in v0.0.4

func (m *LabelFeeConnection) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*LabelFeeConnection) String

func (m *LabelFeeConnection) String() string

String returns a string representation as JSON for this model

func (*LabelFeeConnection) TableName

func (m *LabelFeeConnection) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type LabelLaborConnection

type LabelLaborConnection struct {
	LabelID string `gorm:"primaryKey;not null;column:labelId" json:"labelId"`
	LaborID string `gorm:"primaryKey;not null;column:laborId" json:"laborId"`

	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
}

LabelLaborConnection schema

func NewLabelLaborConnection

func NewLabelLaborConnection(buf []byte) (*LabelLaborConnection, error)

NewLabelLaborConnection returns a new model instance from an encoded buffer

func (*LabelLaborConnection) PrimaryKeys added in v0.0.4

func (m *LabelLaborConnection) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*LabelLaborConnection) String

func (m *LabelLaborConnection) String() string

String returns a string representation as JSON for this model

func (*LabelLaborConnection) TableName

func (m *LabelLaborConnection) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type LabelOrderConnection

type LabelOrderConnection struct {
	LabelID string `gorm:"primaryKey;not null;column:labelId" json:"labelId"`
	OrderID string `gorm:"primaryKey;not null;column:orderId" json:"orderId"`

	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
}

LabelOrderConnection schema

func NewLabelOrderConnection

func NewLabelOrderConnection(buf []byte) (*LabelOrderConnection, error)

NewLabelOrderConnection returns a new model instance from an encoded buffer

func (*LabelOrderConnection) PrimaryKeys added in v0.0.4

func (m *LabelOrderConnection) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*LabelOrderConnection) String

func (m *LabelOrderConnection) String() string

String returns a string representation as JSON for this model

func (*LabelOrderConnection) TableName

func (m *LabelOrderConnection) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type LabelPartConnection

type LabelPartConnection struct {
	LabelID string `gorm:"primaryKey;not null;column:labelId" json:"labelId"`
	PartID  string `gorm:"primaryKey;not null;column:partId" json:"partId"`

	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
}

LabelPartConnection schema

func NewLabelPartConnection

func NewLabelPartConnection(buf []byte) (*LabelPartConnection, error)

NewLabelPartConnection returns a new model instance from an encoded buffer

func (*LabelPartConnection) PrimaryKeys added in v0.0.4

func (m *LabelPartConnection) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*LabelPartConnection) String

func (m *LabelPartConnection) String() string

String returns a string representation as JSON for this model

func (*LabelPartConnection) TableName

func (m *LabelPartConnection) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type LabelSubcontractConnection

type LabelSubcontractConnection struct {
	LabelID       string `gorm:"primaryKey;not null;column:labelId" json:"labelId"`
	SubcontractID string `gorm:"primaryKey;not null;column:subcontractId" json:"subcontractId"`

	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
}

LabelSubcontractConnection schema

func NewLabelSubcontractConnection

func NewLabelSubcontractConnection(buf []byte) (*LabelSubcontractConnection, error)

NewLabelSubcontractConnection returns a new model instance from an encoded buffer

func (*LabelSubcontractConnection) PrimaryKeys added in v0.0.4

func (m *LabelSubcontractConnection) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*LabelSubcontractConnection) String

func (m *LabelSubcontractConnection) String() string

String returns a string representation as JSON for this model

func (*LabelSubcontractConnection) TableName

func (m *LabelSubcontractConnection) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type LabelTireConnection

type LabelTireConnection struct {
	LabelID string `gorm:"primaryKey;not null;column:labelId" json:"labelId"`
	TireID  string `gorm:"primaryKey;not null;column:tireId" json:"tireId"`

	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
}

LabelTireConnection schema

func NewLabelTireConnection

func NewLabelTireConnection(buf []byte) (*LabelTireConnection, error)

NewLabelTireConnection returns a new model instance from an encoded buffer

func (*LabelTireConnection) PrimaryKeys added in v0.0.4

func (m *LabelTireConnection) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*LabelTireConnection) String

func (m *LabelTireConnection) String() string

String returns a string representation as JSON for this model

func (*LabelTireConnection) TableName

func (m *LabelTireConnection) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type LabelVehicleConnection

type LabelVehicleConnection struct {
	LabelID   string `gorm:"primaryKey;not null;column:labelId" json:"labelId"`
	VehicleID string `gorm:"primaryKey;not null;column:vehicleId" json:"vehicleId"`

	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	CreatedDate *datatypes.DateTime `gorm:"column:createdDate;column:createdDate" json:"createdDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
}

LabelVehicleConnection schema

func NewLabelVehicleConnection

func NewLabelVehicleConnection(buf []byte) (*LabelVehicleConnection, error)

NewLabelVehicleConnection returns a new model instance from an encoded buffer

func (*LabelVehicleConnection) PrimaryKeys added in v0.0.4

func (m *LabelVehicleConnection) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*LabelVehicleConnection) String

func (m *LabelVehicleConnection) String() string

String returns a string representation as JSON for this model

func (*LabelVehicleConnection) TableName

func (m *LabelVehicleConnection) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type Labor

type Labor struct {
	ID          string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	LocationID  string              `gorm:"not null;column:locationId" json:"locationId"`

	ApplicationID            *int64                     `gorm:"column:applicationId" json:"applicationId"`
	CategoryID               *string                    `gorm:"column:categoryId" json:"categoryId"`
	Completed                bool                       `gorm:"not null;column:completed" json:"completed"`
	CompletedDate            *datatypes.DateTime        `gorm:"column:completedDate" json:"completedDate"`
	CostHours                *float64                   `gorm:"column:costHours" json:"costHours"`
	CostRateCents            *int64                     `gorm:"column:costRateCents" json:"costRateCents"`
	CostTotalCents           *int64                     `gorm:"column:costTotalCents" json:"costTotalCents"`
	DiscountCents            int64                      `gorm:"not null;column:discountCents" json:"discountCents"`
	DiscountPercent          float64                    `gorm:"not null;column:discountPercent" json:"discountPercent"`
	DiscountValueType        LaborDiscountValueTypeEnum `gorm:"not null;column:discountValueType" json:"discountValueType"`
	Hours                    float64                    `gorm:"not null;column:hours" json:"hours"`
	LaborMatrixDate          *datatypes.DateTime        `gorm:"column:laborMatrixDate" json:"laborMatrixDate"` // datetime when laborMatrixId was set, for determining if matrix has been changed
	LaborMatrixID            *string                    `gorm:"column:laborMatrixId" json:"laborMatrixId"`
	Multiplier               float64                    `gorm:"not null;column:multiplier" json:"multiplier"`
	MultiplierType           LaborMultiplierTypeEnum    `gorm:"not null;column:multiplierType" json:"multiplierType"`
	Name                     *string                    `gorm:"column:name" json:"name"`
	Note                     string                     `gorm:"not null;column:note" json:"note"`
	OrderID                  string                     `gorm:"not null;column:orderId" json:"orderId"`
	Ordinal                  float64                    `gorm:"not null;column:ordinal" json:"ordinal"`
	RateCents                int64                      `gorm:"not null;column:rateCents" json:"rateCents"`
	RateID                   *string                    `gorm:"column:rateId" json:"rateId"`
	ServiceID                string                     `gorm:"not null;column:serviceId" json:"serviceId"`
	ShowHours                bool                       `gorm:"not null;column:showHours" json:"showHours"`
	ShowNote                 bool                       `gorm:"not null;column:showNote" json:"showNote"`
	SkillRequired            *LaborSkillRequiredEnum    `gorm:"column:skillRequired" json:"skillRequired"`
	SkillRequiredDescription *string                    `gorm:"column:skillRequiredDescription" json:"skillRequiredDescription"`
	SourceItemID             *string                    `gorm:"column:sourceItemId" json:"sourceItemId"`
	Taxable                  bool                       `gorm:"not null;column:taxable" json:"taxable"`
	TechnicianID             *string                    `gorm:"column:technicianId" json:"technicianId"`
}

func NewLabor

func NewLabor(buf []byte) (*Labor, error)

NewLabor returns a new model instance from an encoded buffer

func (*Labor) PrimaryKeys added in v0.0.4

func (m *Labor) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*Labor) String

func (m *Labor) String() string

String returns a string representation as JSON for this model

func (*Labor) TableName

func (m *Labor) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type LaborDiscountValueTypeEnum

type LaborDiscountValueTypeEnum string

Labor schema

const (
	LaborDiscountValueTypePercent    LaborDiscountValueTypeEnum = "Percent"
	LaborDiscountValueTypeFixedCents LaborDiscountValueTypeEnum = "FixedCents"
)

type LaborMatrix

type LaborMatrix struct {
	ID          string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	LocationID  string              `gorm:"not null;column:locationId" json:"locationId"`

	Default bool                `gorm:"not null;column:default" json:"default"`
	Name    string              `gorm:"not null;column:name" json:"name"`
	Type    LaborMatrixTypeEnum `gorm:"not null;column:type" json:"type"`
}

func NewLaborMatrix

func NewLaborMatrix(buf []byte) (*LaborMatrix, error)

NewLaborMatrix returns a new model instance from an encoded buffer

func (*LaborMatrix) PrimaryKeys added in v0.0.4

func (m *LaborMatrix) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*LaborMatrix) String

func (m *LaborMatrix) String() string

String returns a string representation as JSON for this model

func (*LaborMatrix) TableName

func (m *LaborMatrix) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type LaborMatrixRange

type LaborMatrixRange struct {
	ID          string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`

	End           *float64 `gorm:"column:end" json:"end"`
	LaborMatrixID string   `gorm:"not null;column:laborMatrixId" json:"laborMatrixId"`
	Multiplier    float64  `gorm:"not null;column:multiplier" json:"multiplier"`
	Start         float64  `gorm:"not null;column:start" json:"start"`
}

LaborMatrixRange schema

func NewLaborMatrixRange

func NewLaborMatrixRange(buf []byte) (*LaborMatrixRange, error)

NewLaborMatrixRange returns a new model instance from an encoded buffer

func (*LaborMatrixRange) PrimaryKeys added in v0.0.4

func (m *LaborMatrixRange) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*LaborMatrixRange) String

func (m *LaborMatrixRange) String() string

String returns a string representation as JSON for this model

func (*LaborMatrixRange) TableName

func (m *LaborMatrixRange) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type LaborMatrixTypeEnum

type LaborMatrixTypeEnum string

LaborMatrix schema

const (
	LaborMatrixTypeHours LaborMatrixTypeEnum = "Hours"
	LaborMatrixTypeRate  LaborMatrixTypeEnum = "Rate"
)

type LaborMultiplierTypeEnum

type LaborMultiplierTypeEnum string
const (
	LaborMultiplierTypeHours LaborMultiplierTypeEnum = "Hours"
	LaborMultiplierTypeRate  LaborMultiplierTypeEnum = "Rate"
)

type LaborRate

type LaborRate struct {
	ID          string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	LocationID  string              `gorm:"not null;column:locationId" json:"locationId"`

	Name       string `gorm:"not null;column:name" json:"name"`
	ValueCents int64  `gorm:"not null;column:valueCents" json:"valueCents"`
}

LaborRate schema

func NewLaborRate

func NewLaborRate(buf []byte) (*LaborRate, error)

NewLaborRate returns a new model instance from an encoded buffer

func (*LaborRate) PrimaryKeys added in v0.0.4

func (m *LaborRate) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*LaborRate) String

func (m *LaborRate) String() string

String returns a string representation as JSON for this model

func (*LaborRate) TableName

func (m *LaborRate) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type LaborSkillRequiredEnum

type LaborSkillRequiredEnum string
const (
	LaborSkillRequiredGeneral     LaborSkillRequiredEnum = "General"
	LaborSkillRequiredMaintenance LaborSkillRequiredEnum = "Maintenance"
	LaborSkillRequiredPrecision   LaborSkillRequiredEnum = "Precision"
)

type LatestPaymentReceipt added in v0.0.8

type LatestPaymentReceipt struct {
	ID          string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	LocationID  string              `gorm:"not null;column:locationId" json:"locationId"`

	Number int64 `gorm:"not null;column:number" json:"number"`
}

LatestPaymentReceipt schema

func NewLatestPaymentReceipt added in v0.0.8

func NewLatestPaymentReceipt(buf []byte) (*LatestPaymentReceipt, error)

NewLatestPaymentReceipt returns a new model instance from an encoded buffer

func (*LatestPaymentReceipt) PrimaryKeys added in v0.0.8

func (m *LatestPaymentReceipt) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*LatestPaymentReceipt) String added in v0.0.8

func (m *LatestPaymentReceipt) String() string

String returns a string representation as JSON for this model

func (*LatestPaymentReceipt) TableName added in v0.0.8

func (m *LatestPaymentReceipt) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type Location

type Location struct {
	ID          string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`

	Address1              string              `gorm:"not null;column:address1" json:"address1"`
	Address2              *string             `gorm:"column:address2" json:"address2"`
	City                  string              `gorm:"not null;column:city" json:"city"`
	ContactName           *string             `gorm:"column:contactName" json:"contactName"` // the location contact name
	Country               LocationCountryEnum `gorm:"not null;column:country" json:"country"`
	Email                 *string             `gorm:"column:email" json:"email"`                                 // the location email for generic inqueries
	LocationPhoneNumberID *string             `gorm:"column:locationPhoneNumberId" json:"locationPhoneNumberId"` // the location phone number
	Name                  string              `gorm:"not null;column:name" json:"name"`
	PostalCode            string              `gorm:"not null;column:postalCode" json:"postalCode"`
	State                 string              `gorm:"not null;column:state" json:"state"`
	Timezone              string              `gorm:"not null;column:timezone" json:"timezone"`
	Website               *string             `gorm:"column:website" json:"website"`
}

func NewLocation

func NewLocation(buf []byte) (*Location, error)

NewLocation returns a new model instance from an encoded buffer

func (*Location) PrimaryKeys added in v0.0.4

func (m *Location) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*Location) String

func (m *Location) String() string

String returns a string representation as JSON for this model

func (*Location) TableName

func (m *Location) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type LocationCountryEnum

type LocationCountryEnum string

Location schema

const (
	LocationCountryUS LocationCountryEnum = "US"
	LocationCountryCA LocationCountryEnum = "CA"
	LocationCountryMX LocationCountryEnum = "MX"
	LocationCountryAF LocationCountryEnum = "AF"
	LocationCountryAX LocationCountryEnum = "AX"
	LocationCountryAL LocationCountryEnum = "AL"
	LocationCountryDZ LocationCountryEnum = "DZ"
	LocationCountryAS LocationCountryEnum = "AS"
	LocationCountryAD LocationCountryEnum = "AD"
	LocationCountryAO LocationCountryEnum = "AO"
	LocationCountryAI LocationCountryEnum = "AI"
	LocationCountryAQ LocationCountryEnum = "AQ"
	LocationCountryAG LocationCountryEnum = "AG"
	LocationCountryAR LocationCountryEnum = "AR"
	LocationCountryAM LocationCountryEnum = "AM"
	LocationCountryAW LocationCountryEnum = "AW"
	LocationCountryAU LocationCountryEnum = "AU"
	LocationCountryAT LocationCountryEnum = "AT"
	LocationCountryAZ LocationCountryEnum = "AZ"
	LocationCountryBS LocationCountryEnum = "BS"
	LocationCountryBH LocationCountryEnum = "BH"
	LocationCountryBD LocationCountryEnum = "BD"
	LocationCountryBB LocationCountryEnum = "BB"
	LocationCountryBY LocationCountryEnum = "BY"
	LocationCountryBE LocationCountryEnum = "BE"
	LocationCountryBZ LocationCountryEnum = "BZ"
	LocationCountryBJ LocationCountryEnum = "BJ"
	LocationCountryBM LocationCountryEnum = "BM"
	LocationCountryBT LocationCountryEnum = "BT"
	LocationCountryBO LocationCountryEnum = "BO"
	LocationCountryBQ LocationCountryEnum = "BQ"
	LocationCountryBA LocationCountryEnum = "BA"
	LocationCountryBW LocationCountryEnum = "BW"
	LocationCountryBV LocationCountryEnum = "BV"
	LocationCountryBR LocationCountryEnum = "BR"
	LocationCountryIO LocationCountryEnum = "IO"
	LocationCountryVG LocationCountryEnum = "VG"
	LocationCountryBN LocationCountryEnum = "BN"
	LocationCountryBG LocationCountryEnum = "BG"
	LocationCountryBF LocationCountryEnum = "BF"
	LocationCountryBI LocationCountryEnum = "BI"
	LocationCountryCV LocationCountryEnum = "CV"
	LocationCountryKH LocationCountryEnum = "KH"
	LocationCountryCM LocationCountryEnum = "CM"
	LocationCountryKY LocationCountryEnum = "KY"
	LocationCountryCF LocationCountryEnum = "CF"
	LocationCountryTD LocationCountryEnum = "TD"
	LocationCountryCL LocationCountryEnum = "CL"
	LocationCountryCN LocationCountryEnum = "CN"
	LocationCountryHK LocationCountryEnum = "HK"
	LocationCountryMO LocationCountryEnum = "MO"
	LocationCountryCX LocationCountryEnum = "CX"
	LocationCountryCC LocationCountryEnum = "CC"
	LocationCountryCO LocationCountryEnum = "CO"
	LocationCountryKM LocationCountryEnum = "KM"
	LocationCountryCG LocationCountryEnum = "CG"
	LocationCountryCK LocationCountryEnum = "CK"
	LocationCountryCR LocationCountryEnum = "CR"
	LocationCountryHR LocationCountryEnum = "HR"
	LocationCountryCU LocationCountryEnum = "CU"
	LocationCountryCW LocationCountryEnum = "CW"
	LocationCountryCY LocationCountryEnum = "CY"
	LocationCountryCZ LocationCountryEnum = "CZ"
	LocationCountryCI LocationCountryEnum = "CI"
	LocationCountryKP LocationCountryEnum = "KP"
	LocationCountryCD LocationCountryEnum = "CD"
	LocationCountryDK LocationCountryEnum = "DK"
	LocationCountryDJ LocationCountryEnum = "DJ"
	LocationCountryDM LocationCountryEnum = "DM"
	LocationCountryDO LocationCountryEnum = "DO"
	LocationCountryEC LocationCountryEnum = "EC"
	LocationCountryEG LocationCountryEnum = "EG"
	LocationCountrySV LocationCountryEnum = "SV"
	LocationCountryGQ LocationCountryEnum = "GQ"
	LocationCountryER LocationCountryEnum = "ER"
	LocationCountryEE LocationCountryEnum = "EE"
	LocationCountrySZ LocationCountryEnum = "SZ"
	LocationCountryET LocationCountryEnum = "ET"
	LocationCountryFK LocationCountryEnum = "FK"
	LocationCountryFO LocationCountryEnum = "FO"
	LocationCountryFJ LocationCountryEnum = "FJ"
	LocationCountryFI LocationCountryEnum = "FI"
	LocationCountryFR LocationCountryEnum = "FR"
	LocationCountryGF LocationCountryEnum = "GF"
	LocationCountryPF LocationCountryEnum = "PF"
	LocationCountryTF LocationCountryEnum = "TF"
	LocationCountryGA LocationCountryEnum = "GA"
	LocationCountryGM LocationCountryEnum = "GM"
	LocationCountryGE LocationCountryEnum = "GE"
	LocationCountryDE LocationCountryEnum = "DE"
	LocationCountryGH LocationCountryEnum = "GH"
	LocationCountryGI LocationCountryEnum = "GI"
	LocationCountryGR LocationCountryEnum = "GR"
	LocationCountryGL LocationCountryEnum = "GL"
	LocationCountryGD LocationCountryEnum = "GD"
	LocationCountryGP LocationCountryEnum = "GP"
	LocationCountryGU LocationCountryEnum = "GU"
	LocationCountryGT LocationCountryEnum = "GT"
	LocationCountryGG LocationCountryEnum = "GG"
	LocationCountryGN LocationCountryEnum = "GN"
	LocationCountryGW LocationCountryEnum = "GW"
	LocationCountryGY LocationCountryEnum = "GY"
	LocationCountryHT LocationCountryEnum = "HT"
	LocationCountryHM LocationCountryEnum = "HM"
	LocationCountryVA LocationCountryEnum = "VA"
	LocationCountryHN LocationCountryEnum = "HN"
	LocationCountryHU LocationCountryEnum = "HU"
	LocationCountryIS LocationCountryEnum = "IS"
	LocationCountryIN LocationCountryEnum = "IN"
	LocationCountryID LocationCountryEnum = "ID"
	LocationCountryIR LocationCountryEnum = "IR"
	LocationCountryIQ LocationCountryEnum = "IQ"
	LocationCountryIE LocationCountryEnum = "IE"
	LocationCountryIM LocationCountryEnum = "IM"
	LocationCountryIL LocationCountryEnum = "IL"
	LocationCountryIT LocationCountryEnum = "IT"
	LocationCountryJM LocationCountryEnum = "JM"
	LocationCountryJP LocationCountryEnum = "JP"
	LocationCountryJE LocationCountryEnum = "JE"
	LocationCountryJO LocationCountryEnum = "JO"
	LocationCountryKZ LocationCountryEnum = "KZ"
	LocationCountryKE LocationCountryEnum = "KE"
	LocationCountryKI LocationCountryEnum = "KI"
	LocationCountryKW LocationCountryEnum = "KW"
	LocationCountryKG LocationCountryEnum = "KG"
	LocationCountryLA LocationCountryEnum = "LA"
	LocationCountryLV LocationCountryEnum = "LV"
	LocationCountryLB LocationCountryEnum = "LB"
	LocationCountryLS LocationCountryEnum = "LS"
	LocationCountryLR LocationCountryEnum = "LR"
	LocationCountryLY LocationCountryEnum = "LY"
	LocationCountryLI LocationCountryEnum = "LI"
	LocationCountryLT LocationCountryEnum = "LT"
	LocationCountryLU LocationCountryEnum = "LU"
	LocationCountryMG LocationCountryEnum = "MG"
	LocationCountryMW LocationCountryEnum = "MW"
	LocationCountryMY LocationCountryEnum = "MY"
	LocationCountryMV LocationCountryEnum = "MV"
	LocationCountryML LocationCountryEnum = "ML"
	LocationCountryMT LocationCountryEnum = "MT"
	LocationCountryMH LocationCountryEnum = "MH"
	LocationCountryMQ LocationCountryEnum = "MQ"
	LocationCountryMR LocationCountryEnum = "MR"
	LocationCountryMU LocationCountryEnum = "MU"
	LocationCountryYT LocationCountryEnum = "YT"
	LocationCountryFM LocationCountryEnum = "FM"
	LocationCountryMC LocationCountryEnum = "MC"
	LocationCountryMN LocationCountryEnum = "MN"
	LocationCountryME LocationCountryEnum = "ME"
	LocationCountryMS LocationCountryEnum = "MS"
	LocationCountryMA LocationCountryEnum = "MA"
	LocationCountryMZ LocationCountryEnum = "MZ"
	LocationCountryMM LocationCountryEnum = "MM"
	LocationCountryNA LocationCountryEnum = "NA"
	LocationCountryNR LocationCountryEnum = "NR"
	LocationCountryNP LocationCountryEnum = "NP"
	LocationCountryNL LocationCountryEnum = "NL"
	LocationCountryNC LocationCountryEnum = "NC"
	LocationCountryNZ LocationCountryEnum = "NZ"
	LocationCountryNI LocationCountryEnum = "NI"
	LocationCountryNE LocationCountryEnum = "NE"
	LocationCountryNG LocationCountryEnum = "NG"
	LocationCountryNU LocationCountryEnum = "NU"
	LocationCountryNF LocationCountryEnum = "NF"
	LocationCountryMP LocationCountryEnum = "MP"
	LocationCountryNO LocationCountryEnum = "NO"
	LocationCountryOM LocationCountryEnum = "OM"
	LocationCountryPK LocationCountryEnum = "PK"
	LocationCountryPW LocationCountryEnum = "PW"
	LocationCountryPA LocationCountryEnum = "PA"
	LocationCountryPG LocationCountryEnum = "PG"
	LocationCountryPY LocationCountryEnum = "PY"
	LocationCountryPE LocationCountryEnum = "PE"
	LocationCountryPH LocationCountryEnum = "PH"
	LocationCountryPN LocationCountryEnum = "PN"
	LocationCountryPL LocationCountryEnum = "PL"
	LocationCountryPT LocationCountryEnum = "PT"
	LocationCountryPR LocationCountryEnum = "PR"
	LocationCountryQA LocationCountryEnum = "QA"
	LocationCountryKR LocationCountryEnum = "KR"
	LocationCountryMD LocationCountryEnum = "MD"
	LocationCountryRO LocationCountryEnum = "RO"
	LocationCountryRU LocationCountryEnum = "RU"
	LocationCountryRW LocationCountryEnum = "RW"
	LocationCountryRE LocationCountryEnum = "RE"
	LocationCountryBL LocationCountryEnum = "BL"
	LocationCountrySH LocationCountryEnum = "SH"
	LocationCountryKN LocationCountryEnum = "KN"
	LocationCountryLC LocationCountryEnum = "LC"
	LocationCountryMF LocationCountryEnum = "MF"
	LocationCountryPM LocationCountryEnum = "PM"
	LocationCountryVC LocationCountryEnum = "VC"
	LocationCountryWS LocationCountryEnum = "WS"
	LocationCountrySM LocationCountryEnum = "SM"
	LocationCountryST LocationCountryEnum = "ST"
	LocationCountrySA LocationCountryEnum = "SA"
	LocationCountrySN LocationCountryEnum = "SN"
	LocationCountryRS LocationCountryEnum = "RS"
	LocationCountrySC LocationCountryEnum = "SC"
	LocationCountrySL LocationCountryEnum = "SL"
	LocationCountrySG LocationCountryEnum = "SG"
	LocationCountrySX LocationCountryEnum = "SX"
	LocationCountrySK LocationCountryEnum = "SK"
	LocationCountrySI LocationCountryEnum = "SI"
	LocationCountrySB LocationCountryEnum = "SB"
	LocationCountrySO LocationCountryEnum = "SO"
	LocationCountryZA LocationCountryEnum = "ZA"
	LocationCountryGS LocationCountryEnum = "GS"
	LocationCountrySS LocationCountryEnum = "SS"
	LocationCountryES LocationCountryEnum = "ES"
	LocationCountryLK LocationCountryEnum = "LK"
	LocationCountryPS LocationCountryEnum = "PS"
	LocationCountrySD LocationCountryEnum = "SD"
	LocationCountrySR LocationCountryEnum = "SR"
	LocationCountrySJ LocationCountryEnum = "SJ"
	LocationCountrySE LocationCountryEnum = "SE"
	LocationCountryCH LocationCountryEnum = "CH"
	LocationCountrySY LocationCountryEnum = "SY"
	LocationCountryTW LocationCountryEnum = "TW"
	LocationCountryTJ LocationCountryEnum = "TJ"
	LocationCountryTH LocationCountryEnum = "TH"
	LocationCountryMK LocationCountryEnum = "MK"
	LocationCountryTL LocationCountryEnum = "TL"
	LocationCountryTG LocationCountryEnum = "TG"
	LocationCountryTK LocationCountryEnum = "TK"
	LocationCountryTO LocationCountryEnum = "TO"
	LocationCountryTT LocationCountryEnum = "TT"
	LocationCountryTN LocationCountryEnum = "TN"
	LocationCountryTR LocationCountryEnum = "TR"
	LocationCountryTM LocationCountryEnum = "TM"
	LocationCountryTC LocationCountryEnum = "TC"
	LocationCountryTV LocationCountryEnum = "TV"
	LocationCountryUG LocationCountryEnum = "UG"
	LocationCountryUA LocationCountryEnum = "UA"
	LocationCountryAE LocationCountryEnum = "AE"
	LocationCountryGB LocationCountryEnum = "GB"
	LocationCountryTZ LocationCountryEnum = "TZ"
	LocationCountryUM LocationCountryEnum = "UM"
	LocationCountryVI LocationCountryEnum = "VI"
	LocationCountryUY LocationCountryEnum = "UY"
	LocationCountryUZ LocationCountryEnum = "UZ"
	LocationCountryVU LocationCountryEnum = "VU"
	LocationCountryVE LocationCountryEnum = "VE"
	LocationCountryVN LocationCountryEnum = "VN"
	LocationCountryWF LocationCountryEnum = "WF"
	LocationCountryEH LocationCountryEnum = "EH"
	LocationCountryYE LocationCountryEnum = "YE"
	LocationCountryZM LocationCountryEnum = "ZM"
	LocationCountryZW LocationCountryEnum = "ZW"
)

type Message

type Message struct {
	ID          string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	LocationID  string              `gorm:"not null;column:locationId" json:"locationId"`

	AuthorType     MessageAuthorTypeEnum   `gorm:"not null;column:authorType" json:"authorType"`
	ConversationID string                  `gorm:"not null;column:conversationId" json:"conversationId"`
	CustomerID     *string                 `gorm:"column:customerId" json:"customerId"`       // the id of the customer that authored the message
	Deleted        bool                    `gorm:"not null;column:deleted" json:"deleted"`    // if the record has been deleted
	DeletedDate    *datatypes.DateTime     `gorm:"column:deletedDate" json:"deletedDate"`     // the date that the record was deleted or null if not deleted
	DeletedReason  *string                 `gorm:"column:deletedReason" json:"deletedReason"` // the reason that the record was deleted
	DeletedUserID  *string                 `gorm:"column:deletedUserId" json:"deletedUserId"` // the user that deleted the record or null if not deleted
	EmailError     *string                 `gorm:"column:emailError" json:"emailError"`       // error sending email, if any
	EmailStatus    *MessageEmailStatusEnum `gorm:"column:emailStatus" json:"emailStatus"`
	Internal       *bool                   `gorm:"column:internal" json:"internal"` // true if internal note, is null if author is a Customer
	Origin         MessageOriginEnum       `gorm:"not null;column:origin" json:"origin"`
	SendEmail      *bool                   `gorm:"column:sendEmail" json:"sendEmail"` // if an email should be sent, is null if author is a Customer
	SendSms        *bool                   `gorm:"column:sendSms" json:"sendSms"`     // if an sms should be sent, is null if author is a Customer
	ShopRead       *bool                   `gorm:"column:shopRead" json:"shopRead"`   // true if someone at the shop has read a Customer message, is null if author is a User
	SmsError       *string                 `gorm:"column:smsError" json:"smsError"`   // error sending sms, if any
	SmsStatus      *MessageSmsStatusEnum   `gorm:"column:smsStatus" json:"smsStatus"`
	Text           string                  `gorm:"not null;column:text" json:"text"`
	UserID         *string                 `gorm:"column:userId" json:"userId"` // the user who authored the message
}

func NewMessage

func NewMessage(buf []byte) (*Message, error)

NewMessage returns a new model instance from an encoded buffer

func (*Message) PrimaryKeys added in v0.0.4

func (m *Message) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*Message) String

func (m *Message) String() string

String returns a string representation as JSON for this model

func (*Message) TableName

func (m *Message) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type MessageAuthorTypeEnum

type MessageAuthorTypeEnum string

Message schema

const (
	MessageAuthorTypeCustomer MessageAuthorTypeEnum = "Customer"
	MessageAuthorTypeUser     MessageAuthorTypeEnum = "User"
)

type MessageEmailStatusEnum

type MessageEmailStatusEnum string
const (
	MessageEmailStatusPending MessageEmailStatusEnum = "Pending"
	MessageEmailStatusSent    MessageEmailStatusEnum = "Sent"
	MessageEmailStatusRead    MessageEmailStatusEnum = "Read"
	MessageEmailStatusError   MessageEmailStatusEnum = "Error"
)

type MessageOriginEnum

type MessageOriginEnum string
const (
	MessageOriginWeb               MessageOriginEnum = "Web"
	MessageOriginMobile            MessageOriginEnum = "Mobile"
	MessageOriginCustomerOrderPage MessageOriginEnum = "CustomerOrderPage"
	MessageOriginSMS               MessageOriginEnum = "SMS"
	MessageOriginEmail             MessageOriginEnum = "Email"
)

type MessageSmsStatusEnum

type MessageSmsStatusEnum string
const (
	MessageSmsStatusPending MessageSmsStatusEnum = "Pending"
	MessageSmsStatusSent    MessageSmsStatusEnum = "Sent"
	MessageSmsStatusRead    MessageSmsStatusEnum = "Read"
	MessageSmsStatusError   MessageSmsStatusEnum = "Error"
)

type MileageLog added in v0.0.8

type MileageLog struct {
	ID          string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	LocationID  string              `gorm:"not null;column:locationId" json:"locationId"`

	Mileage     float64            `gorm:"not null;column:mileage" json:"mileage"`
	MileageDate datatypes.DateTime `gorm:"not null;column:mileageDate" json:"mileageDate"`
	OrderID     *string            `gorm:"column:orderId" json:"orderId"`
	Type        MileageLogTypeEnum `gorm:"not null;column:type" json:"type"`
	VehicleID   string             `gorm:"not null;column:vehicleId" json:"vehicleId"`
}

func NewMileageLog added in v0.0.8

func NewMileageLog(buf []byte) (*MileageLog, error)

NewMileageLog returns a new model instance from an encoded buffer

func (*MileageLog) PrimaryKeys added in v0.0.8

func (m *MileageLog) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*MileageLog) String added in v0.0.8

func (m *MileageLog) String() string

String returns a string representation as JSON for this model

func (*MileageLog) TableName added in v0.0.8

func (m *MileageLog) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type MileageLogTypeEnum added in v0.0.8

type MileageLogTypeEnum string

MileageLog schema

const (
	MileageLogTypeManualEntry MileageLogTypeEnum = "ManualEntry"
	MileageLogTypeOrderIn     MileageLogTypeEnum = "OrderIn"
	MileageLogTypeOrderOut    MileageLogTypeEnum = "OrderOut"
)

type Model

type Model interface {
	TableName() string
	PrimaryKeys() []string
	String() string
}

func NewFromModel

func NewFromModel(name string, buf []byte) (Model, error)

NewFromModel will return a model from a model name and buffer encoded as EncodingType

type Order

type Order struct {
	ID           string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate  datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate  *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta         *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata     *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID    string              `gorm:"not null;column:companyId" json:"companyId"`
	LocationID   string              `gorm:"not null;column:locationId" json:"locationId"`
	CustomFields datatypes.JSON      `gorm:"column:customFields" json:"customFields"` // custom field values

	AppointmentDates       datatypes.StringArray     `gorm:"not null;column:appointmentDates" json:"appointmentDates"`
	Archived               bool                      `gorm:"not null;column:archived" json:"archived"`
	AssignedTechnicianIds  datatypes.StringArray     `gorm:"not null;column:assignedTechnicianIds" json:"assignedTechnicianIds"`
	Authorized             bool                      `gorm:"not null;column:authorized" json:"authorized"`
	AuthorizedDate         *datatypes.DateTime       `gorm:"column:authorizedDate" json:"authorizedDate"`
	CoalescedName          *string                   `gorm:"column:coalescedName" json:"coalescedName"`
	Complaint              *string                   `gorm:"column:complaint" json:"complaint"`
	CompletedDate          *datatypes.DateTime       `gorm:"column:completedDate" json:"completedDate"`
	ConversationID         string                    `gorm:"not null;column:conversationId" json:"conversationId"`
	CustomerID             *string                   `gorm:"column:customerId" json:"customerId"`
	DeferredServiceCount   int64                     `gorm:"not null;column:deferredServiceCount" json:"deferredServiceCount"`
	Deleted                bool                      `gorm:"not null;column:deleted" json:"deleted"`    // if the record has been deleted
	DeletedDate            *datatypes.DateTime       `gorm:"column:deletedDate" json:"deletedDate"`     // the date that the record was deleted or null if not deleted
	DeletedReason          *string                   `gorm:"column:deletedReason" json:"deletedReason"` // the reason that the record was deleted
	DeletedUserID          *string                   `gorm:"column:deletedUserId" json:"deletedUserId"` // the user that deleted the record or null if not deleted
	DiscountCents          int64                     `gorm:"not null;column:discountCents" json:"discountCents"`
	DiscountPercent        float64                   `gorm:"not null;column:discountPercent" json:"discountPercent"`
	DueDate                *datatypes.DateTime       `gorm:"column:dueDate" json:"dueDate"`
	EmailID                *string                   `gorm:"column:emailId" json:"emailId"` // id of the email to use instead of the customer's default email
	EpaCents               int64                     `gorm:"not null;column:epaCents" json:"epaCents"`
	FeesCents              int64                     `gorm:"not null;column:feesCents" json:"feesCents"`
	GeneratedCustomerName  *string                   `gorm:"column:generatedCustomerName" json:"generatedCustomerName"` // "[firstName] [lastName]" pulled from the customer, if any
	GeneratedName          *string                   `gorm:"column:generatedName" json:"generatedName"`
	GeneratedVehicleName   *string                   `gorm:"column:generatedVehicleName" json:"generatedVehicleName"` // "[year] [make] [model] [submodel]" pulled from the vehicle, if any
	GstCents               int64                     `gorm:"not null;column:gstCents" json:"gstCents"`
	HstCents               int64                     `gorm:"not null;column:hstCents" json:"hstCents"`
	InspectionCount        int64                     `gorm:"not null;column:inspectionCount" json:"inspectionCount"`
	InspectionStatus       OrderInspectionStatusEnum `gorm:"not null;column:inspectionStatus" json:"inspectionStatus"`
	Invoiced               bool                      `gorm:"not null;column:invoiced" json:"invoiced"`
	InvoicedDate           *datatypes.DateTime       `gorm:"column:invoicedDate" json:"invoicedDate"`
	LaborCents             int64                     `gorm:"not null;column:laborCents" json:"laborCents"`
	MessageCount           int64                     `gorm:"not null;column:messageCount" json:"messageCount"`
	MileageIn              *float64                  `gorm:"column:mileageIn" json:"mileageIn"`
	MileageOut             *float64                  `gorm:"column:mileageOut" json:"mileageOut"`
	Name                   *string                   `gorm:"column:name" json:"name"`
	Number                 int64                     `gorm:"not null;column:number" json:"number"`
	OrderCreatedDate       datatypes.DateTime        `gorm:"not null;column:orderCreatedDate" json:"orderCreatedDate"` // allow user to override created date
	Paid                   bool                      `gorm:"not null;column:paid" json:"paid"`
	PaidCostCents          int64                     `gorm:"not null;column:paidCostCents" json:"paidCostCents"`
	PartsCents             int64                     `gorm:"not null;column:partsCents" json:"partsCents"`
	PhoneNumberID          *string                   `gorm:"column:phoneNumberId" json:"phoneNumberId"` // id of the phone number to use instead of the customer's default number
	Profitability          datatypes.JSON            `gorm:"column:profitability" json:"profitability"`
	PstCents               int64                     `gorm:"not null;column:pstCents" json:"pstCents"`
	PublicID               string                    `gorm:"not null;column:publicId" json:"publicId"`
	PurchaseOrderNumber    *string                   `gorm:"column:purchaseOrderNumber" json:"purchaseOrderNumber"`
	ReadOnly               bool                      `gorm:"not null;column:readOnly" json:"readOnly"`    // if this order should not be editable in the UI
	ReadOnlyReason         *string                   `gorm:"column:readOnlyReason" json:"readOnlyReason"` // a friendly explanation of why (eg. "migrated from previous system")
	Recommendation         *string                   `gorm:"column:recommendation" json:"recommendation"`
	RemainingCostCents     *int64                    `gorm:"column:remainingCostCents" json:"remainingCostCents"`
	SentToCarfax           bool                      `gorm:"not null;column:sentToCarfax" json:"sentToCarfax"`
	ServiceWriterID        *string                   `gorm:"column:serviceWriterId" json:"serviceWriterId"`
	ShopSuppliesCents      int64                     `gorm:"not null;column:shopSuppliesCents" json:"shopSuppliesCents"`
	ShopUnreadMessageCount int64                     `gorm:"not null;column:shopUnreadMessageCount" json:"shopUnreadMessageCount"`
	StatementID            *string                   `gorm:"column:statementId" json:"statementId"` // a statement this order included in
	SubcontractsCents      int64                     `gorm:"not null;column:subcontractsCents" json:"subcontractsCents"`
	TaxCents               int64                     `gorm:"not null;column:taxCents" json:"taxCents"`
	TaxConfigID            string                    `gorm:"not null;column:taxConfigId" json:"taxConfigId"`
	TiresCents             int64                     `gorm:"not null;column:tiresCents" json:"tiresCents"`
	TotalCostCents         int64                     `gorm:"not null;column:totalCostCents" json:"totalCostCents"`
	VehicleID              *string                   `gorm:"column:vehicleId" json:"vehicleId"`
	WorkflowStatusID       string                    `gorm:"not null;column:workflowStatusId" json:"workflowStatusId"`
	WorkflowStatusPosition float64                   `gorm:"not null;column:workflowStatusPosition" json:"workflowStatusPosition"`
}

func NewOrder

func NewOrder(buf []byte) (*Order, error)

NewOrder returns a new model instance from an encoded buffer

func (*Order) PrimaryKeys added in v0.0.4

func (m *Order) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*Order) String

func (m *Order) String() string

String returns a string representation as JSON for this model

func (*Order) TableName

func (m *Order) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type OrderInspectionStatusEnum

type OrderInspectionStatusEnum string

Order schema

const (
	OrderInspectionStatusNone         OrderInspectionStatusEnum = "None"
	OrderInspectionStatusCompleted    OrderInspectionStatusEnum = "Completed"
	OrderInspectionStatusNotCompleted OrderInspectionStatusEnum = "NotCompleted"
)

type Part

type Part struct {
	ID          string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	LocationID  string              `gorm:"not null;column:locationId" json:"locationId"`

	BinLocation          string                    `gorm:"not null;column:binLocation" json:"binLocation"`
	CategoryID           *string                   `gorm:"column:categoryId" json:"categoryId"`
	DiscountCents        int64                     `gorm:"not null;column:discountCents" json:"discountCents"`
	DiscountPercent      float64                   `gorm:"not null;column:discountPercent" json:"discountPercent"`
	DiscountValueType    PartDiscountValueTypeEnum `gorm:"not null;column:discountValueType" json:"discountValueType"`
	InventoryPartID      *string                   `gorm:"column:inventoryPartId" json:"inventoryPartId"`
	Name                 string                    `gorm:"not null;column:name" json:"name"`
	Note                 string                    `gorm:"not null;column:note" json:"note"`
	OrderID              string                    `gorm:"not null;column:orderId" json:"orderId"`
	Ordinal              float64                   `gorm:"not null;column:ordinal" json:"ordinal"`
	PartNumber           string                    `gorm:"not null;column:partNumber" json:"partNumber"`
	PricingMatrixDate    *datatypes.DateTime       `gorm:"column:pricingMatrixDate" json:"pricingMatrixDate"` // datetime when pricingMatrixId was set, for determining if matrix has been changed
	PricingMatrixID      *string                   `gorm:"column:pricingMatrixId" json:"pricingMatrixId"`
	Quantity             float64                   `gorm:"not null;column:quantity" json:"quantity"`
	ReduceInventoryCount bool                      `gorm:"not null;column:reduceInventoryCount" json:"reduceInventoryCount"`
	RetailCostCents      int64                     `gorm:"not null;column:retailCostCents" json:"retailCostCents"`
	ServiceID            string                    `gorm:"not null;column:serviceId" json:"serviceId"`
	ShowCostAndQuantity  bool                      `gorm:"not null;column:showCostAndQuantity" json:"showCostAndQuantity"`
	ShowNote             bool                      `gorm:"not null;column:showNote" json:"showNote"`
	ShowPartNumber       bool                      `gorm:"not null;column:showPartNumber" json:"showPartNumber"`
	SourceItemID         *string                   `gorm:"column:sourceItemId" json:"sourceItemId"`
	Taxable              bool                      `gorm:"not null;column:taxable" json:"taxable"`
	VendorID             *string                   `gorm:"column:vendorId" json:"vendorId"`
	WholesaleCostCents   *int64                    `gorm:"column:wholesaleCostCents" json:"wholesaleCostCents"`
}

func NewPart

func NewPart(buf []byte) (*Part, error)

NewPart returns a new model instance from an encoded buffer

func (*Part) PrimaryKeys added in v0.0.4

func (m *Part) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*Part) String

func (m *Part) String() string

String returns a string representation as JSON for this model

func (*Part) TableName

func (m *Part) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type PartDiscountValueTypeEnum

type PartDiscountValueTypeEnum string

Part schema

const (
	PartDiscountValueTypePercent    PartDiscountValueTypeEnum = "Percent"
	PartDiscountValueTypeFixedCents PartDiscountValueTypeEnum = "FixedCents"
)

type Payment

type Payment struct {
	ID          string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	LocationID  string              `gorm:"not null;column:locationId" json:"locationId"`

	Amount               int64                      `gorm:"not null;column:amount" json:"amount"`
	Bulk                 bool                       `gorm:"not null;column:bulk" json:"bulk"`
	CardConfirmation     *string                    `gorm:"column:cardConfirmation" json:"cardConfirmation"`
	CardDigits           *string                    `gorm:"column:cardDigits" json:"cardDigits"`
	CardName             *string                    `gorm:"column:cardName" json:"cardName"`
	CardType             *string                    `gorm:"column:cardType" json:"cardType"`
	ChargeFromPublicPage bool                       `gorm:"not null;column:chargeFromPublicPage" json:"chargeFromPublicPage"`
	CollectionType       PaymentCollectionTypeEnum  `gorm:"not null;column:collectionType" json:"collectionType"`
	DebitCard            bool                       `gorm:"not null;column:debitCard" json:"debitCard"`
	Deposit              bool                       `gorm:"not null;column:deposit" json:"deposit"`
	Note                 string                     `gorm:"not null;column:note" json:"note"`
	OrderID              string                     `gorm:"not null;column:orderId" json:"orderId"`
	PayerID              *string                    `gorm:"column:payerId" json:"payerId"`
	PaymentType          PaymentPaymentTypeEnum     `gorm:"not null;column:paymentType" json:"paymentType"`
	Provider             *PaymentProviderEnum       `gorm:"column:provider" json:"provider"`
	ProviderData         datatypes.JSON             `gorm:"column:providerData" json:"providerData"`
	ReceiptNumber        int64                      `gorm:"not null;column:receiptNumber" json:"receiptNumber"`
	StatementID          *string                    `gorm:"column:statementId" json:"statementId"`
	TransactionType      PaymentTransactionTypeEnum `gorm:"not null;column:transactionType" json:"transactionType"`
	UserData             datatypes.JSON             `gorm:"column:userData" json:"userData"`
}

func NewPayment

func NewPayment(buf []byte) (*Payment, error)

NewPayment returns a new model instance from an encoded buffer

func (*Payment) PrimaryKeys added in v0.0.4

func (m *Payment) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*Payment) String

func (m *Payment) String() string

String returns a string representation as JSON for this model

func (*Payment) TableName

func (m *Payment) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type PaymentCollectionTypeEnum

type PaymentCollectionTypeEnum string

Payment schema

const (
	PaymentCollectionTypeManual   PaymentCollectionTypeEnum = "Manual"
	PaymentCollectionTypeOnline   PaymentCollectionTypeEnum = "Online"
	PaymentCollectionTypeInPerson PaymentCollectionTypeEnum = "InPerson"
)

type PaymentPaymentTypeEnum

type PaymentPaymentTypeEnum string
const (
	PaymentPaymentTypeCheck PaymentPaymentTypeEnum = "Check"
	PaymentPaymentTypeCash  PaymentPaymentTypeEnum = "Cash"
	PaymentPaymentTypeCard  PaymentPaymentTypeEnum = "Card"
	PaymentPaymentTypeOther PaymentPaymentTypeEnum = "Other"
)

type PaymentProviderEnum

type PaymentProviderEnum string
const (
	PaymentProviderManual    PaymentProviderEnum = "Manual"
	PaymentProviderFirstMile PaymentProviderEnum = "FirstMile"
	PaymentProviderStripe    PaymentProviderEnum = "Stripe"
)

type PaymentTerm

type PaymentTerm struct {
	ID          string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	LocationID  string              `gorm:"not null;column:locationId" json:"locationId"`

	CustomerDefault bool    `gorm:"not null;column:customerDefault" json:"customerDefault"` // if it is the default for new customers
	DueInDays       float64 `gorm:"not null;column:dueInDays" json:"dueInDays"`
	Editable        bool    `gorm:"not null;column:editable" json:"editable"`         // if it is not a built-in payment term (eg. On Receipt)
	FleetDefault    bool    `gorm:"not null;column:fleetDefault" json:"fleetDefault"` // if it is the default for new fleets
	Name            string  `gorm:"not null;column:name" json:"name"`
	Note            string  `gorm:"not null;column:note" json:"note"`
}

PaymentTerm schema

func NewPaymentTerm

func NewPaymentTerm(buf []byte) (*PaymentTerm, error)

NewPaymentTerm returns a new model instance from an encoded buffer

func (*PaymentTerm) PrimaryKeys added in v0.0.4

func (m *PaymentTerm) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*PaymentTerm) String

func (m *PaymentTerm) String() string

String returns a string representation as JSON for this model

func (*PaymentTerm) TableName

func (m *PaymentTerm) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type PaymentTransactionTypeEnum

type PaymentTransactionTypeEnum string
const (
	PaymentTransactionTypeCharge   PaymentTransactionTypeEnum = "Charge"
	PaymentTransactionTypeRefund   PaymentTransactionTypeEnum = "Refund"
	PaymentTransactionTypeTransfer PaymentTransactionTypeEnum = "Transfer"
)

type PhoneNumber

type PhoneNumber struct {
	ID          string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	LocationID  string              `gorm:"not null;column:locationId" json:"locationId"`

	CarrierName       *string                         `gorm:"column:carrierName" json:"carrierName"`
	Country           *PhoneNumberCountryEnum         `gorm:"column:country" json:"country"`
	CustomerID        string                          `gorm:"not null;column:customerId" json:"customerId"`
	Extension         *string                         `gorm:"column:extension" json:"extension"`
	LastVerifiedDate  *datatypes.DateTime             `gorm:"column:lastVerifiedDate" json:"lastVerifiedDate"`
	MobileCountryCode *string                         `gorm:"column:mobileCountryCode" json:"mobileCountryCode"` // if a mobile number, the mobile country code
	MobileNetworkCode *string                         `gorm:"column:mobileNetworkCode" json:"mobileNetworkCode"` // if a mobile number, the mobile network code
	Number            string                          `gorm:"not null;column:number" json:"number"`
	OptIn             bool                            `gorm:"not null;column:optIn" json:"optIn"`
	OptInVerifiedDate *datatypes.DateTime             `gorm:"column:optInVerifiedDate" json:"optInVerifiedDate"`
	Primary           bool                            `gorm:"not null;column:primary" json:"primary"`
	Type              *PhoneNumberTypeEnum            `gorm:"column:type" json:"type"`
	UserDefinedType   *PhoneNumberUserDefinedTypeEnum `gorm:"column:userDefinedType" json:"userDefinedType"`
}

func NewPhoneNumber

func NewPhoneNumber(buf []byte) (*PhoneNumber, error)

NewPhoneNumber returns a new model instance from an encoded buffer

func (*PhoneNumber) PrimaryKeys added in v0.0.4

func (m *PhoneNumber) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*PhoneNumber) String

func (m *PhoneNumber) String() string

String returns a string representation as JSON for this model

func (*PhoneNumber) TableName

func (m *PhoneNumber) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type PhoneNumberCountryEnum

type PhoneNumberCountryEnum string

PhoneNumber schema

const (
	PhoneNumberCountryUS PhoneNumberCountryEnum = "US"
	PhoneNumberCountryCA PhoneNumberCountryEnum = "CA"
	PhoneNumberCountryMX PhoneNumberCountryEnum = "MX"
	PhoneNumberCountryAF PhoneNumberCountryEnum = "AF"
	PhoneNumberCountryAX PhoneNumberCountryEnum = "AX"
	PhoneNumberCountryAL PhoneNumberCountryEnum = "AL"
	PhoneNumberCountryDZ PhoneNumberCountryEnum = "DZ"
	PhoneNumberCountryAS PhoneNumberCountryEnum = "AS"
	PhoneNumberCountryAD PhoneNumberCountryEnum = "AD"
	PhoneNumberCountryAO PhoneNumberCountryEnum = "AO"
	PhoneNumberCountryAI PhoneNumberCountryEnum = "AI"
	PhoneNumberCountryAQ PhoneNumberCountryEnum = "AQ"
	PhoneNumberCountryAG PhoneNumberCountryEnum = "AG"
	PhoneNumberCountryAR PhoneNumberCountryEnum = "AR"
	PhoneNumberCountryAM PhoneNumberCountryEnum = "AM"
	PhoneNumberCountryAW PhoneNumberCountryEnum = "AW"
	PhoneNumberCountryAU PhoneNumberCountryEnum = "AU"
	PhoneNumberCountryAT PhoneNumberCountryEnum = "AT"
	PhoneNumberCountryAZ PhoneNumberCountryEnum = "AZ"
	PhoneNumberCountryBS PhoneNumberCountryEnum = "BS"
	PhoneNumberCountryBH PhoneNumberCountryEnum = "BH"
	PhoneNumberCountryBD PhoneNumberCountryEnum = "BD"
	PhoneNumberCountryBB PhoneNumberCountryEnum = "BB"
	PhoneNumberCountryBY PhoneNumberCountryEnum = "BY"
	PhoneNumberCountryBE PhoneNumberCountryEnum = "BE"
	PhoneNumberCountryBZ PhoneNumberCountryEnum = "BZ"
	PhoneNumberCountryBJ PhoneNumberCountryEnum = "BJ"
	PhoneNumberCountryBM PhoneNumberCountryEnum = "BM"
	PhoneNumberCountryBT PhoneNumberCountryEnum = "BT"
	PhoneNumberCountryBO PhoneNumberCountryEnum = "BO"
	PhoneNumberCountryBQ PhoneNumberCountryEnum = "BQ"
	PhoneNumberCountryBA PhoneNumberCountryEnum = "BA"
	PhoneNumberCountryBW PhoneNumberCountryEnum = "BW"
	PhoneNumberCountryBV PhoneNumberCountryEnum = "BV"
	PhoneNumberCountryBR PhoneNumberCountryEnum = "BR"
	PhoneNumberCountryIO PhoneNumberCountryEnum = "IO"
	PhoneNumberCountryVG PhoneNumberCountryEnum = "VG"
	PhoneNumberCountryBN PhoneNumberCountryEnum = "BN"
	PhoneNumberCountryBG PhoneNumberCountryEnum = "BG"
	PhoneNumberCountryBF PhoneNumberCountryEnum = "BF"
	PhoneNumberCountryBI PhoneNumberCountryEnum = "BI"
	PhoneNumberCountryCV PhoneNumberCountryEnum = "CV"
	PhoneNumberCountryKH PhoneNumberCountryEnum = "KH"
	PhoneNumberCountryCM PhoneNumberCountryEnum = "CM"
	PhoneNumberCountryKY PhoneNumberCountryEnum = "KY"
	PhoneNumberCountryCF PhoneNumberCountryEnum = "CF"
	PhoneNumberCountryTD PhoneNumberCountryEnum = "TD"
	PhoneNumberCountryCL PhoneNumberCountryEnum = "CL"
	PhoneNumberCountryCN PhoneNumberCountryEnum = "CN"
	PhoneNumberCountryHK PhoneNumberCountryEnum = "HK"
	PhoneNumberCountryMO PhoneNumberCountryEnum = "MO"
	PhoneNumberCountryCX PhoneNumberCountryEnum = "CX"
	PhoneNumberCountryCC PhoneNumberCountryEnum = "CC"
	PhoneNumberCountryCO PhoneNumberCountryEnum = "CO"
	PhoneNumberCountryKM PhoneNumberCountryEnum = "KM"
	PhoneNumberCountryCG PhoneNumberCountryEnum = "CG"
	PhoneNumberCountryCK PhoneNumberCountryEnum = "CK"
	PhoneNumberCountryCR PhoneNumberCountryEnum = "CR"
	PhoneNumberCountryHR PhoneNumberCountryEnum = "HR"
	PhoneNumberCountryCU PhoneNumberCountryEnum = "CU"
	PhoneNumberCountryCW PhoneNumberCountryEnum = "CW"
	PhoneNumberCountryCY PhoneNumberCountryEnum = "CY"
	PhoneNumberCountryCZ PhoneNumberCountryEnum = "CZ"
	PhoneNumberCountryCI PhoneNumberCountryEnum = "CI"
	PhoneNumberCountryKP PhoneNumberCountryEnum = "KP"
	PhoneNumberCountryCD PhoneNumberCountryEnum = "CD"
	PhoneNumberCountryDK PhoneNumberCountryEnum = "DK"
	PhoneNumberCountryDJ PhoneNumberCountryEnum = "DJ"
	PhoneNumberCountryDM PhoneNumberCountryEnum = "DM"
	PhoneNumberCountryDO PhoneNumberCountryEnum = "DO"
	PhoneNumberCountryEC PhoneNumberCountryEnum = "EC"
	PhoneNumberCountryEG PhoneNumberCountryEnum = "EG"
	PhoneNumberCountrySV PhoneNumberCountryEnum = "SV"
	PhoneNumberCountryGQ PhoneNumberCountryEnum = "GQ"
	PhoneNumberCountryER PhoneNumberCountryEnum = "ER"
	PhoneNumberCountryEE PhoneNumberCountryEnum = "EE"
	PhoneNumberCountrySZ PhoneNumberCountryEnum = "SZ"
	PhoneNumberCountryET PhoneNumberCountryEnum = "ET"
	PhoneNumberCountryFK PhoneNumberCountryEnum = "FK"
	PhoneNumberCountryFO PhoneNumberCountryEnum = "FO"
	PhoneNumberCountryFJ PhoneNumberCountryEnum = "FJ"
	PhoneNumberCountryFI PhoneNumberCountryEnum = "FI"
	PhoneNumberCountryFR PhoneNumberCountryEnum = "FR"
	PhoneNumberCountryGF PhoneNumberCountryEnum = "GF"
	PhoneNumberCountryPF PhoneNumberCountryEnum = "PF"
	PhoneNumberCountryTF PhoneNumberCountryEnum = "TF"
	PhoneNumberCountryGA PhoneNumberCountryEnum = "GA"
	PhoneNumberCountryGM PhoneNumberCountryEnum = "GM"
	PhoneNumberCountryGE PhoneNumberCountryEnum = "GE"
	PhoneNumberCountryDE PhoneNumberCountryEnum = "DE"
	PhoneNumberCountryGH PhoneNumberCountryEnum = "GH"
	PhoneNumberCountryGI PhoneNumberCountryEnum = "GI"
	PhoneNumberCountryGR PhoneNumberCountryEnum = "GR"
	PhoneNumberCountryGL PhoneNumberCountryEnum = "GL"
	PhoneNumberCountryGD PhoneNumberCountryEnum = "GD"
	PhoneNumberCountryGP PhoneNumberCountryEnum = "GP"
	PhoneNumberCountryGU PhoneNumberCountryEnum = "GU"
	PhoneNumberCountryGT PhoneNumberCountryEnum = "GT"
	PhoneNumberCountryGG PhoneNumberCountryEnum = "GG"
	PhoneNumberCountryGN PhoneNumberCountryEnum = "GN"
	PhoneNumberCountryGW PhoneNumberCountryEnum = "GW"
	PhoneNumberCountryGY PhoneNumberCountryEnum = "GY"
	PhoneNumberCountryHT PhoneNumberCountryEnum = "HT"
	PhoneNumberCountryHM PhoneNumberCountryEnum = "HM"
	PhoneNumberCountryVA PhoneNumberCountryEnum = "VA"
	PhoneNumberCountryHN PhoneNumberCountryEnum = "HN"
	PhoneNumberCountryHU PhoneNumberCountryEnum = "HU"
	PhoneNumberCountryIS PhoneNumberCountryEnum = "IS"
	PhoneNumberCountryIN PhoneNumberCountryEnum = "IN"
	PhoneNumberCountryID PhoneNumberCountryEnum = "ID"
	PhoneNumberCountryIR PhoneNumberCountryEnum = "IR"
	PhoneNumberCountryIQ PhoneNumberCountryEnum = "IQ"
	PhoneNumberCountryIE PhoneNumberCountryEnum = "IE"
	PhoneNumberCountryIM PhoneNumberCountryEnum = "IM"
	PhoneNumberCountryIL PhoneNumberCountryEnum = "IL"
	PhoneNumberCountryIT PhoneNumberCountryEnum = "IT"
	PhoneNumberCountryJM PhoneNumberCountryEnum = "JM"
	PhoneNumberCountryJP PhoneNumberCountryEnum = "JP"
	PhoneNumberCountryJE PhoneNumberCountryEnum = "JE"
	PhoneNumberCountryJO PhoneNumberCountryEnum = "JO"
	PhoneNumberCountryKZ PhoneNumberCountryEnum = "KZ"
	PhoneNumberCountryKE PhoneNumberCountryEnum = "KE"
	PhoneNumberCountryKI PhoneNumberCountryEnum = "KI"
	PhoneNumberCountryKW PhoneNumberCountryEnum = "KW"
	PhoneNumberCountryKG PhoneNumberCountryEnum = "KG"
	PhoneNumberCountryLA PhoneNumberCountryEnum = "LA"
	PhoneNumberCountryLV PhoneNumberCountryEnum = "LV"
	PhoneNumberCountryLB PhoneNumberCountryEnum = "LB"
	PhoneNumberCountryLS PhoneNumberCountryEnum = "LS"
	PhoneNumberCountryLR PhoneNumberCountryEnum = "LR"
	PhoneNumberCountryLY PhoneNumberCountryEnum = "LY"
	PhoneNumberCountryLI PhoneNumberCountryEnum = "LI"
	PhoneNumberCountryLT PhoneNumberCountryEnum = "LT"
	PhoneNumberCountryLU PhoneNumberCountryEnum = "LU"
	PhoneNumberCountryMG PhoneNumberCountryEnum = "MG"
	PhoneNumberCountryMW PhoneNumberCountryEnum = "MW"
	PhoneNumberCountryMY PhoneNumberCountryEnum = "MY"
	PhoneNumberCountryMV PhoneNumberCountryEnum = "MV"
	PhoneNumberCountryML PhoneNumberCountryEnum = "ML"
	PhoneNumberCountryMT PhoneNumberCountryEnum = "MT"
	PhoneNumberCountryMH PhoneNumberCountryEnum = "MH"
	PhoneNumberCountryMQ PhoneNumberCountryEnum = "MQ"
	PhoneNumberCountryMR PhoneNumberCountryEnum = "MR"
	PhoneNumberCountryMU PhoneNumberCountryEnum = "MU"
	PhoneNumberCountryYT PhoneNumberCountryEnum = "YT"
	PhoneNumberCountryFM PhoneNumberCountryEnum = "FM"
	PhoneNumberCountryMC PhoneNumberCountryEnum = "MC"
	PhoneNumberCountryMN PhoneNumberCountryEnum = "MN"
	PhoneNumberCountryME PhoneNumberCountryEnum = "ME"
	PhoneNumberCountryMS PhoneNumberCountryEnum = "MS"
	PhoneNumberCountryMA PhoneNumberCountryEnum = "MA"
	PhoneNumberCountryMZ PhoneNumberCountryEnum = "MZ"
	PhoneNumberCountryMM PhoneNumberCountryEnum = "MM"
	PhoneNumberCountryNA PhoneNumberCountryEnum = "NA"
	PhoneNumberCountryNR PhoneNumberCountryEnum = "NR"
	PhoneNumberCountryNP PhoneNumberCountryEnum = "NP"
	PhoneNumberCountryNL PhoneNumberCountryEnum = "NL"
	PhoneNumberCountryNC PhoneNumberCountryEnum = "NC"
	PhoneNumberCountryNZ PhoneNumberCountryEnum = "NZ"
	PhoneNumberCountryNI PhoneNumberCountryEnum = "NI"
	PhoneNumberCountryNE PhoneNumberCountryEnum = "NE"
	PhoneNumberCountryNG PhoneNumberCountryEnum = "NG"
	PhoneNumberCountryNU PhoneNumberCountryEnum = "NU"
	PhoneNumberCountryNF PhoneNumberCountryEnum = "NF"
	PhoneNumberCountryMP PhoneNumberCountryEnum = "MP"
	PhoneNumberCountryNO PhoneNumberCountryEnum = "NO"
	PhoneNumberCountryOM PhoneNumberCountryEnum = "OM"
	PhoneNumberCountryPK PhoneNumberCountryEnum = "PK"
	PhoneNumberCountryPW PhoneNumberCountryEnum = "PW"
	PhoneNumberCountryPA PhoneNumberCountryEnum = "PA"
	PhoneNumberCountryPG PhoneNumberCountryEnum = "PG"
	PhoneNumberCountryPY PhoneNumberCountryEnum = "PY"
	PhoneNumberCountryPE PhoneNumberCountryEnum = "PE"
	PhoneNumberCountryPH PhoneNumberCountryEnum = "PH"
	PhoneNumberCountryPN PhoneNumberCountryEnum = "PN"
	PhoneNumberCountryPL PhoneNumberCountryEnum = "PL"
	PhoneNumberCountryPT PhoneNumberCountryEnum = "PT"
	PhoneNumberCountryPR PhoneNumberCountryEnum = "PR"
	PhoneNumberCountryQA PhoneNumberCountryEnum = "QA"
	PhoneNumberCountryKR PhoneNumberCountryEnum = "KR"
	PhoneNumberCountryMD PhoneNumberCountryEnum = "MD"
	PhoneNumberCountryRO PhoneNumberCountryEnum = "RO"
	PhoneNumberCountryRU PhoneNumberCountryEnum = "RU"
	PhoneNumberCountryRW PhoneNumberCountryEnum = "RW"
	PhoneNumberCountryRE PhoneNumberCountryEnum = "RE"
	PhoneNumberCountryBL PhoneNumberCountryEnum = "BL"
	PhoneNumberCountrySH PhoneNumberCountryEnum = "SH"
	PhoneNumberCountryKN PhoneNumberCountryEnum = "KN"
	PhoneNumberCountryLC PhoneNumberCountryEnum = "LC"
	PhoneNumberCountryMF PhoneNumberCountryEnum = "MF"
	PhoneNumberCountryPM PhoneNumberCountryEnum = "PM"
	PhoneNumberCountryVC PhoneNumberCountryEnum = "VC"
	PhoneNumberCountryWS PhoneNumberCountryEnum = "WS"
	PhoneNumberCountrySM PhoneNumberCountryEnum = "SM"
	PhoneNumberCountryST PhoneNumberCountryEnum = "ST"
	PhoneNumberCountrySA PhoneNumberCountryEnum = "SA"
	PhoneNumberCountrySN PhoneNumberCountryEnum = "SN"
	PhoneNumberCountryRS PhoneNumberCountryEnum = "RS"
	PhoneNumberCountrySC PhoneNumberCountryEnum = "SC"
	PhoneNumberCountrySL PhoneNumberCountryEnum = "SL"
	PhoneNumberCountrySG PhoneNumberCountryEnum = "SG"
	PhoneNumberCountrySX PhoneNumberCountryEnum = "SX"
	PhoneNumberCountrySK PhoneNumberCountryEnum = "SK"
	PhoneNumberCountrySI PhoneNumberCountryEnum = "SI"
	PhoneNumberCountrySB PhoneNumberCountryEnum = "SB"
	PhoneNumberCountrySO PhoneNumberCountryEnum = "SO"
	PhoneNumberCountryZA PhoneNumberCountryEnum = "ZA"
	PhoneNumberCountryGS PhoneNumberCountryEnum = "GS"
	PhoneNumberCountrySS PhoneNumberCountryEnum = "SS"
	PhoneNumberCountryES PhoneNumberCountryEnum = "ES"
	PhoneNumberCountryLK PhoneNumberCountryEnum = "LK"
	PhoneNumberCountryPS PhoneNumberCountryEnum = "PS"
	PhoneNumberCountrySD PhoneNumberCountryEnum = "SD"
	PhoneNumberCountrySR PhoneNumberCountryEnum = "SR"
	PhoneNumberCountrySJ PhoneNumberCountryEnum = "SJ"
	PhoneNumberCountrySE PhoneNumberCountryEnum = "SE"
	PhoneNumberCountryCH PhoneNumberCountryEnum = "CH"
	PhoneNumberCountrySY PhoneNumberCountryEnum = "SY"
	PhoneNumberCountryTW PhoneNumberCountryEnum = "TW"
	PhoneNumberCountryTJ PhoneNumberCountryEnum = "TJ"
	PhoneNumberCountryTH PhoneNumberCountryEnum = "TH"
	PhoneNumberCountryMK PhoneNumberCountryEnum = "MK"
	PhoneNumberCountryTL PhoneNumberCountryEnum = "TL"
	PhoneNumberCountryTG PhoneNumberCountryEnum = "TG"
	PhoneNumberCountryTK PhoneNumberCountryEnum = "TK"
	PhoneNumberCountryTO PhoneNumberCountryEnum = "TO"
	PhoneNumberCountryTT PhoneNumberCountryEnum = "TT"
	PhoneNumberCountryTN PhoneNumberCountryEnum = "TN"
	PhoneNumberCountryTR PhoneNumberCountryEnum = "TR"
	PhoneNumberCountryTM PhoneNumberCountryEnum = "TM"
	PhoneNumberCountryTC PhoneNumberCountryEnum = "TC"
	PhoneNumberCountryTV PhoneNumberCountryEnum = "TV"
	PhoneNumberCountryUG PhoneNumberCountryEnum = "UG"
	PhoneNumberCountryUA PhoneNumberCountryEnum = "UA"
	PhoneNumberCountryAE PhoneNumberCountryEnum = "AE"
	PhoneNumberCountryGB PhoneNumberCountryEnum = "GB"
	PhoneNumberCountryTZ PhoneNumberCountryEnum = "TZ"
	PhoneNumberCountryUM PhoneNumberCountryEnum = "UM"
	PhoneNumberCountryVI PhoneNumberCountryEnum = "VI"
	PhoneNumberCountryUY PhoneNumberCountryEnum = "UY"
	PhoneNumberCountryUZ PhoneNumberCountryEnum = "UZ"
	PhoneNumberCountryVU PhoneNumberCountryEnum = "VU"
	PhoneNumberCountryVE PhoneNumberCountryEnum = "VE"
	PhoneNumberCountryVN PhoneNumberCountryEnum = "VN"
	PhoneNumberCountryWF PhoneNumberCountryEnum = "WF"
	PhoneNumberCountryEH PhoneNumberCountryEnum = "EH"
	PhoneNumberCountryYE PhoneNumberCountryEnum = "YE"
	PhoneNumberCountryZM PhoneNumberCountryEnum = "ZM"
	PhoneNumberCountryZW PhoneNumberCountryEnum = "ZW"
)

type PhoneNumberTypeEnum

type PhoneNumberTypeEnum string
const (
	PhoneNumberTypeMobile   PhoneNumberTypeEnum = "Mobile"
	PhoneNumberTypeLandline PhoneNumberTypeEnum = "Landline"
	PhoneNumberTypeVoIP     PhoneNumberTypeEnum = "VoIP"
	PhoneNumberTypeOther    PhoneNumberTypeEnum = "Other"
)

type PhoneNumberUserDefinedTypeEnum

type PhoneNumberUserDefinedTypeEnum string
const (
	PhoneNumberUserDefinedTypeMobile   PhoneNumberUserDefinedTypeEnum = "Mobile"
	PhoneNumberUserDefinedTypeWork     PhoneNumberUserDefinedTypeEnum = "Work"
	PhoneNumberUserDefinedTypeHome     PhoneNumberUserDefinedTypeEnum = "Home"
	PhoneNumberUserDefinedTypeOffice   PhoneNumberUserDefinedTypeEnum = "Office"
	PhoneNumberUserDefinedTypeFax      PhoneNumberUserDefinedTypeEnum = "Fax"
	PhoneNumberUserDefinedTypeVoIP     PhoneNumberUserDefinedTypeEnum = "VoIP"
	PhoneNumberUserDefinedTypeLandline PhoneNumberUserDefinedTypeEnum = "Landline"
	PhoneNumberUserDefinedTypeOther    PhoneNumberUserDefinedTypeEnum = "Other"
)

type PricingMatrix

type PricingMatrix struct {
	ID          string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	LocationID  string              `gorm:"not null;column:locationId" json:"locationId"`

	Default bool   `gorm:"not null;column:default" json:"default"`
	Name    string `gorm:"not null;column:name" json:"name"`
}

PricingMatrix schema

func NewPricingMatrix

func NewPricingMatrix(buf []byte) (*PricingMatrix, error)

NewPricingMatrix returns a new model instance from an encoded buffer

func (*PricingMatrix) PrimaryKeys added in v0.0.4

func (m *PricingMatrix) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*PricingMatrix) String

func (m *PricingMatrix) String() string

String returns a string representation as JSON for this model

func (*PricingMatrix) TableName

func (m *PricingMatrix) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type PricingMatrixRange

type PricingMatrixRange struct {
	ID          string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`

	EndCents        *int64  `gorm:"column:endCents" json:"endCents"`
	MarginPercent   float64 `gorm:"not null;column:marginPercent" json:"marginPercent"`
	MarkupPercent   float64 `gorm:"not null;column:markupPercent" json:"markupPercent"`
	PricingMatrixID string  `gorm:"not null;column:pricingMatrixId" json:"pricingMatrixId"`
	StartCents      int64   `gorm:"not null;column:startCents" json:"startCents"`
}

PricingMatrixRange schema

func NewPricingMatrixRange

func NewPricingMatrixRange(buf []byte) (*PricingMatrixRange, error)

NewPricingMatrixRange returns a new model instance from an encoded buffer

func (*PricingMatrixRange) PrimaryKeys added in v0.0.4

func (m *PricingMatrixRange) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*PricingMatrixRange) String

func (m *PricingMatrixRange) String() string

String returns a string representation as JSON for this model

func (*PricingMatrixRange) TableName

func (m *PricingMatrixRange) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type PurchaseOrder

type PurchaseOrder struct {
	ID          string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	LocationID  string              `gorm:"not null;column:locationId" json:"locationId"`

	FullfiledDate   *datatypes.DateTime        `gorm:"column:fullfiledDate" json:"fullfiledDate"`
	InvoiceNumber   *string                    `gorm:"column:invoiceNumber" json:"invoiceNumber"`
	Note            *string                    `gorm:"column:note" json:"note"`
	Number          string                     `gorm:"not null;column:number" json:"number"`
	OrderID         *string                    `gorm:"column:orderId" json:"orderId"`
	OrderedDate     *datatypes.DateTime        `gorm:"column:orderedDate" json:"orderedDate"`
	Provider        *PurchaseOrderProviderEnum `gorm:"column:provider" json:"provider"`
	ProviderData    datatypes.JSON             `gorm:"column:providerData" json:"providerData"`
	Session         datatypes.JSON             `gorm:"column:session" json:"session"`
	Status          PurchaseOrderStatusEnum    `gorm:"not null;column:status" json:"status"`
	TotalPriceCents int64                      `gorm:"not null;column:totalPriceCents" json:"totalPriceCents"`
}

func NewPurchaseOrder

func NewPurchaseOrder(buf []byte) (*PurchaseOrder, error)

NewPurchaseOrder returns a new model instance from an encoded buffer

func (*PurchaseOrder) PrimaryKeys added in v0.0.4

func (m *PurchaseOrder) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*PurchaseOrder) String

func (m *PurchaseOrder) String() string

String returns a string representation as JSON for this model

func (*PurchaseOrder) TableName

func (m *PurchaseOrder) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type PurchaseOrderItem

type PurchaseOrderItem struct {
	ID          string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	LocationID  string              `gorm:"not null;column:locationId" json:"locationId"`

	CoreChargesCents    int64                        `gorm:"not null;column:coreChargesCents" json:"coreChargesCents"`
	CostCents           int64                        `gorm:"not null;column:costCents" json:"costCents"`
	ExciseTaxCents      int64                        `gorm:"not null;column:exciseTaxCents" json:"exciseTaxCents"`
	ImageUrl            *string                      `gorm:"column:imageUrl" json:"imageUrl"`
	InventoryItemID     *string                      `gorm:"column:inventoryItemId" json:"inventoryItemId"`
	LineItemID          *string                      `gorm:"column:lineItemId" json:"lineItemId"`
	Name                string                       `gorm:"not null;column:name" json:"name"`
	Note                *string                      `gorm:"column:note" json:"note"`
	Number              *string                      `gorm:"column:number" json:"number"`
	ProviderData        datatypes.JSON               `gorm:"column:providerData" json:"providerData"`
	PurchaseOrderID     string                       `gorm:"not null;column:purchaseOrderId" json:"purchaseOrderId"`
	Quantity            int64                        `gorm:"not null;column:quantity" json:"quantity"`
	ShippingChargeCents int64                        `gorm:"not null;column:shippingChargeCents" json:"shippingChargeCents"`
	Status              *PurchaseOrderItemStatusEnum `gorm:"column:status" json:"status"`
	Type                PurchaseOrderItemTypeEnum    `gorm:"not null;column:type" json:"type"`
	VendorID            string                       `gorm:"not null;column:vendorId" json:"vendorId"`
}

func NewPurchaseOrderItem

func NewPurchaseOrderItem(buf []byte) (*PurchaseOrderItem, error)

NewPurchaseOrderItem returns a new model instance from an encoded buffer

func (*PurchaseOrderItem) PrimaryKeys added in v0.0.4

func (m *PurchaseOrderItem) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*PurchaseOrderItem) String

func (m *PurchaseOrderItem) String() string

String returns a string representation as JSON for this model

func (*PurchaseOrderItem) TableName

func (m *PurchaseOrderItem) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type PurchaseOrderItemStatusEnum

type PurchaseOrderItemStatusEnum string

PurchaseOrderItem schema

const (
	PurchaseOrderItemStatusAvailable    PurchaseOrderItemStatusEnum = "Available"
	PurchaseOrderItemStatusNotAvailable PurchaseOrderItemStatusEnum = "NotAvailable"
	PurchaseOrderItemStatusOrdered      PurchaseOrderItemStatusEnum = "Ordered"
)

type PurchaseOrderItemTypeEnum

type PurchaseOrderItemTypeEnum string
const (
	PurchaseOrderItemTypePart PurchaseOrderItemTypeEnum = "Part"
	PurchaseOrderItemTypeTire PurchaseOrderItemTypeEnum = "Tire"
)

type PurchaseOrderProviderEnum

type PurchaseOrderProviderEnum string

PurchaseOrder schema

const (
	PurchaseOrderProviderPartsTech PurchaseOrderProviderEnum = "PartsTech"
	PurchaseOrderProviderNexpart   PurchaseOrderProviderEnum = "Nexpart"
	PurchaseOrderProviderEpicor    PurchaseOrderProviderEnum = "Epicor"
	PurchaseOrderProviderWorldpac  PurchaseOrderProviderEnum = "Worldpac"
	PurchaseOrderProviderATD       PurchaseOrderProviderEnum = "ATD"
)

type PurchaseOrderStatusEnum

type PurchaseOrderStatusEnum string
const (
	PurchaseOrderStatusDraft     PurchaseOrderStatusEnum = "Draft"
	PurchaseOrderStatusOrdered   PurchaseOrderStatusEnum = "Ordered"
	PurchaseOrderStatusReceived  PurchaseOrderStatusEnum = "Received"
	PurchaseOrderStatusFullfiled PurchaseOrderStatusEnum = "Fullfiled"
	PurchaseOrderStatusCancelled PurchaseOrderStatusEnum = "Cancelled"
)

type ReferralSource

type ReferralSource struct {
	ID          string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	LocationID  string              `gorm:"not null;column:locationId" json:"locationId"`

	Name string `gorm:"not null;column:name" json:"name"`
}

ReferralSource schema

func NewReferralSource

func NewReferralSource(buf []byte) (*ReferralSource, error)

NewReferralSource returns a new model instance from an encoded buffer

func (*ReferralSource) PrimaryKeys added in v0.0.4

func (m *ReferralSource) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*ReferralSource) String

func (m *ReferralSource) String() string

String returns a string representation as JSON for this model

func (*ReferralSource) TableName

func (m *ReferralSource) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type Reminder

type Reminder struct {
	ID          string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`

	AppointmentID string           `gorm:"not null;column:appointmentId" json:"appointmentId"`
	Type          ReminderTypeEnum `gorm:"not null;column:type" json:"type"`
	Value         int64            `gorm:"not null;column:value" json:"value"`
}

func NewReminder

func NewReminder(buf []byte) (*Reminder, error)

NewReminder returns a new model instance from an encoded buffer

func (*Reminder) PrimaryKeys added in v0.0.4

func (m *Reminder) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*Reminder) String

func (m *Reminder) String() string

String returns a string representation as JSON for this model

func (*Reminder) TableName

func (m *Reminder) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type ReminderTypeEnum

type ReminderTypeEnum string

Reminder schema

const (
	ReminderTypeHours ReminderTypeEnum = "Hours"
	ReminderTypeDays  ReminderTypeEnum = "Days"
	ReminderTypeWeeks ReminderTypeEnum = "Weeks"
)

type Service

type Service struct {
	ID          string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	LocationID  string              `gorm:"not null;column:locationId" json:"locationId"`

	AuthorizationStatus         ServiceAuthorizationStatusEnum   `gorm:"not null;column:authorizationStatus" json:"authorizationStatus"`
	CalculatedDiscountCents     int64                            `gorm:"not null;column:calculatedDiscountCents" json:"calculatedDiscountCents"`
	CalculatedDiscountPercent   float64                          `gorm:"not null;column:calculatedDiscountPercent" json:"calculatedDiscountPercent"`
	CalculatedEpaCents          int64                            `gorm:"not null;column:calculatedEpaCents" json:"calculatedEpaCents"`
	CalculatedFeeCents          int64                            `gorm:"not null;column:calculatedFeeCents" json:"calculatedFeeCents"`
	CalculatedLaborCents        int64                            `gorm:"not null;column:calculatedLaborCents" json:"calculatedLaborCents"`
	CalculatedPartsCents        int64                            `gorm:"not null;column:calculatedPartsCents" json:"calculatedPartsCents"`
	CalculatedShopSuppliesCents int64                            `gorm:"not null;column:calculatedShopSuppliesCents" json:"calculatedShopSuppliesCents"`
	CalculatedSubcontractsCents int64                            `gorm:"not null;column:calculatedSubcontractsCents" json:"calculatedSubcontractsCents"`
	CalculatedTaxCents          int64                            `gorm:"not null;column:calculatedTaxCents" json:"calculatedTaxCents"`
	CalculatedTiresCents        int64                            `gorm:"not null;column:calculatedTiresCents" json:"calculatedTiresCents"`
	DeferredDate                *datatypes.DateTime              `gorm:"column:deferredDate" json:"deferredDate"`
	DeferredReason              *ServiceDeferredReasonEnum       `gorm:"column:deferredReason" json:"deferredReason"`
	DiscountCents               int64                            `gorm:"not null;column:discountCents" json:"discountCents"`
	DiscountPercent             float64                          `gorm:"not null;column:discountPercent" json:"discountPercent"`
	DiscountValueType           ServiceDiscountValueTypeEnum     `gorm:"not null;column:discountValueType" json:"discountValueType"`
	EpaCents                    int64                            `gorm:"not null;column:epaCents" json:"epaCents"`
	EpaPercent                  float64                          `gorm:"not null;column:epaPercent" json:"epaPercent"`
	EpaValueType                ServiceEpaValueTypeEnum          `gorm:"not null;column:epaValueType" json:"epaValueType"`
	ExcludedFromDeferred        bool                             `gorm:"not null;column:excludedFromDeferred" json:"excludedFromDeferred"` // service that has been removed from the deferred list
	GstCents                    int64                            `gorm:"not null;column:gstCents" json:"gstCents"`
	GstPercent                  float64                          `gorm:"not null;column:gstPercent" json:"gstPercent"`
	GstValueType                ServiceGstValueTypeEnum          `gorm:"not null;column:gstValueType" json:"gstValueType"`
	Hidden                      bool                             `gorm:"not null;column:hidden" json:"hidden"`
	HstCents                    int64                            `gorm:"not null;column:hstCents" json:"hstCents"`
	HstPercent                  float64                          `gorm:"not null;column:hstPercent" json:"hstPercent"`
	HstValueType                ServiceHstValueTypeEnum          `gorm:"not null;column:hstValueType" json:"hstValueType"`
	LumpSum                     bool                             `gorm:"not null;column:lumpSum" json:"lumpSum"`
	Name                        string                           `gorm:"not null;column:name" json:"name"`
	Note                        string                           `gorm:"not null;column:note" json:"note"`
	OrderID                     string                           `gorm:"not null;column:orderId" json:"orderId"`
	Ordinal                     float64                          `gorm:"not null;column:ordinal" json:"ordinal"`
	PstCents                    int64                            `gorm:"not null;column:pstCents" json:"pstCents"`
	PstPercent                  float64                          `gorm:"not null;column:pstPercent" json:"pstPercent"`
	PstValueType                ServicePstValueTypeEnum          `gorm:"not null;column:pstValueType" json:"pstValueType"`
	Recommended                 bool                             `gorm:"not null;column:recommended" json:"recommended"`
	Revived                     bool                             `gorm:"not null;column:revived" json:"revived"`                         // if a deferred service is re-added
	RevivedFromID               *string                          `gorm:"column:revivedFromId" json:"revivedFromId"`                      // service that was deferred and then re-added, used for chain of deferment tracing
	ShopSuppliesApplied         bool                             `gorm:"not null;column:shopSuppliesApplied" json:"shopSuppliesApplied"` // if SS max cap percentage should apply, always true if taxConfig SS setting is NoCap
	ShopSuppliesCents           int64                            `gorm:"not null;column:shopSuppliesCents" json:"shopSuppliesCents"`
	ShopSuppliesPercent         float64                          `gorm:"not null;column:shopSuppliesPercent" json:"shopSuppliesPercent"`
	ShopSuppliesValueType       ServiceShopSuppliesValueTypeEnum `gorm:"not null;column:shopSuppliesValueType" json:"shopSuppliesValueType"`
	SourceServiceID             *string                          `gorm:"column:sourceServiceId" json:"sourceServiceId"`
	TaxCents                    int64                            `gorm:"not null;column:taxCents" json:"taxCents"`
	TaxPercent                  float64                          `gorm:"not null;column:taxPercent" json:"taxPercent"`
	TaxValueType                ServiceTaxValueTypeEnum          `gorm:"not null;column:taxValueType" json:"taxValueType"`
	TotalCents                  int64                            `gorm:"not null;column:totalCents" json:"totalCents"`
}

func NewService

func NewService(buf []byte) (*Service, error)

NewService returns a new model instance from an encoded buffer

func (*Service) PrimaryKeys added in v0.0.4

func (m *Service) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*Service) String

func (m *Service) String() string

String returns a string representation as JSON for this model

func (*Service) TableName

func (m *Service) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type ServiceAuthorizationStatusEnum

type ServiceAuthorizationStatusEnum string

Service schema

const (
	ServiceAuthorizationStatusNotAuthorized ServiceAuthorizationStatusEnum = "NotAuthorized"
	ServiceAuthorizationStatusAuthorized    ServiceAuthorizationStatusEnum = "Authorized"
	ServiceAuthorizationStatusDeclined      ServiceAuthorizationStatusEnum = "Declined"
)

type ServiceDeferredReasonEnum

type ServiceDeferredReasonEnum string
const (
	ServiceDeferredReasonArchived              ServiceDeferredReasonEnum = "Archived"
	ServiceDeferredReasonDeclined              ServiceDeferredReasonEnum = "Declined"
	ServiceDeferredReasonInvoicedNotAuthorized ServiceDeferredReasonEnum = "InvoicedNotAuthorized"
)

type ServiceDiscountValueTypeEnum

type ServiceDiscountValueTypeEnum string
const (
	ServiceDiscountValueTypePercent    ServiceDiscountValueTypeEnum = "Percent"
	ServiceDiscountValueTypeFixedCents ServiceDiscountValueTypeEnum = "FixedCents"
)

type ServiceEpaValueTypeEnum

type ServiceEpaValueTypeEnum string
const (
	ServiceEpaValueTypePercent    ServiceEpaValueTypeEnum = "Percent"
	ServiceEpaValueTypeFixedCents ServiceEpaValueTypeEnum = "FixedCents"
)

type ServiceGstValueTypeEnum

type ServiceGstValueTypeEnum string
const (
	ServiceGstValueTypePercent    ServiceGstValueTypeEnum = "Percent"
	ServiceGstValueTypeFixedCents ServiceGstValueTypeEnum = "FixedCents"
)

type ServiceHstValueTypeEnum

type ServiceHstValueTypeEnum string
const (
	ServiceHstValueTypePercent    ServiceHstValueTypeEnum = "Percent"
	ServiceHstValueTypeFixedCents ServiceHstValueTypeEnum = "FixedCents"
)

type ServicePstValueTypeEnum

type ServicePstValueTypeEnum string
const (
	ServicePstValueTypePercent    ServicePstValueTypeEnum = "Percent"
	ServicePstValueTypeFixedCents ServicePstValueTypeEnum = "FixedCents"
)

type ServiceShopSuppliesValueTypeEnum

type ServiceShopSuppliesValueTypeEnum string
const (
	ServiceShopSuppliesValueTypePercent    ServiceShopSuppliesValueTypeEnum = "Percent"
	ServiceShopSuppliesValueTypeFixedCents ServiceShopSuppliesValueTypeEnum = "FixedCents"
)

type ServiceTaxValueTypeEnum

type ServiceTaxValueTypeEnum string
const (
	ServiceTaxValueTypePercent    ServiceTaxValueTypeEnum = "Percent"
	ServiceTaxValueTypeFixedCents ServiceTaxValueTypeEnum = "FixedCents"
)

type Statement

type Statement struct {
	ID          string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	LocationID  string              `gorm:"not null;column:locationId" json:"locationId"`

	CustomerID         string              `gorm:"not null;column:customerId" json:"customerId"`
	FromDate           datatypes.DateTime  `gorm:"not null;column:fromDate" json:"fromDate"`
	InvoicesCount      int64               `gorm:"not null;column:invoicesCount" json:"invoicesCount"`
	Name               *string             `gorm:"column:name" json:"name"`
	Paid               bool                `gorm:"not null;column:paid" json:"paid"`
	PaidCostCents      int64               `gorm:"not null;column:paidCostCents" json:"paidCostCents"`
	RemainingCostCents int64               `gorm:"not null;column:remainingCostCents" json:"remainingCostCents"`
	Sent               bool                `gorm:"not null;column:sent" json:"sent"`
	SentDate           *datatypes.DateTime `gorm:"column:sentDate" json:"sentDate"`
	ToDate             datatypes.DateTime  `gorm:"not null;column:toDate" json:"toDate"`
	TotalCostCents     int64               `gorm:"not null;column:totalCostCents" json:"totalCostCents"`
}

Statement schema

func NewStatement

func NewStatement(buf []byte) (*Statement, error)

NewStatement returns a new model instance from an encoded buffer

func (*Statement) PrimaryKeys added in v0.0.4

func (m *Statement) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*Statement) String

func (m *Statement) String() string

String returns a string representation as JSON for this model

func (*Statement) TableName

func (m *Statement) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type Subcontract

type Subcontract struct {
	ID          string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	LocationID  string              `gorm:"not null;column:locationId" json:"locationId"`

	CategoryID        *string                          `gorm:"column:categoryId" json:"categoryId"`
	CostCents         int64                            `gorm:"not null;column:costCents" json:"costCents"`
	DiscountCents     int64                            `gorm:"not null;column:discountCents" json:"discountCents"`
	DiscountPercent   float64                          `gorm:"not null;column:discountPercent" json:"discountPercent"`
	DiscountValueType SubcontractDiscountValueTypeEnum `gorm:"not null;column:discountValueType" json:"discountValueType"`
	Name              string                           `gorm:"not null;column:name" json:"name"`
	Note              *string                          `gorm:"column:note" json:"note"`
	OrderID           string                           `gorm:"not null;column:orderId" json:"orderId"`
	Ordinal           float64                          `gorm:"not null;column:ordinal" json:"ordinal"`
	RetailCostCents   int64                            `gorm:"not null;column:retailCostCents" json:"retailCostCents"`
	ServiceID         string                           `gorm:"not null;column:serviceId" json:"serviceId"`
	ShowNote          bool                             `gorm:"not null;column:showNote" json:"showNote"`
	SourceItemID      *string                          `gorm:"column:sourceItemId" json:"sourceItemId"`
	Taxable           bool                             `gorm:"not null;column:taxable" json:"taxable"`
	VendorID          *string                          `gorm:"column:vendorId" json:"vendorId"`
}

func NewSubcontract

func NewSubcontract(buf []byte) (*Subcontract, error)

NewSubcontract returns a new model instance from an encoded buffer

func (*Subcontract) PrimaryKeys added in v0.0.4

func (m *Subcontract) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*Subcontract) String

func (m *Subcontract) String() string

String returns a string representation as JSON for this model

func (*Subcontract) TableName

func (m *Subcontract) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type SubcontractDiscountValueTypeEnum

type SubcontractDiscountValueTypeEnum string

Subcontract schema

const (
	SubcontractDiscountValueTypePercent    SubcontractDiscountValueTypeEnum = "Percent"
	SubcontractDiscountValueTypeFixedCents SubcontractDiscountValueTypeEnum = "FixedCents"
)

type TaxConfig

type TaxConfig struct {
	ID          string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	LocationID  string              `gorm:"not null;column:locationId" json:"locationId"`

	EpaPercent                       float64                              `gorm:"not null;column:epaPercent" json:"epaPercent"`
	EpaTaxable                       bool                                 `gorm:"not null;column:epaTaxable" json:"epaTaxable"`
	GstPercent                       float64                              `gorm:"not null;column:gstPercent" json:"gstPercent"`
	Hash                             string                               `gorm:"not null;column:hash" json:"hash"`
	HstPercent                       float64                              `gorm:"not null;column:hstPercent" json:"hstPercent"`
	IncludeEpaOnLabor                bool                                 `gorm:"not null;column:includeEpaOnLabor" json:"includeEpaOnLabor"`
	IncludeEpaOnParts                bool                                 `gorm:"not null;column:includeEpaOnParts" json:"includeEpaOnParts"`
	LaborShopSupplies                bool                                 `gorm:"not null;column:laborShopSupplies" json:"laborShopSupplies"`
	LaborTaxable                     bool                                 `gorm:"not null;column:laborTaxable" json:"laborTaxable"`
	PartShopSupplies                 bool                                 `gorm:"not null;column:partShopSupplies" json:"partShopSupplies"`
	PartTaxable                      bool                                 `gorm:"not null;column:partTaxable" json:"partTaxable"`
	PriceCalculatorVersion           float64                              `gorm:"not null;column:priceCalculatorVersion" json:"priceCalculatorVersion"`
	PstPercent                       float64                              `gorm:"not null;column:pstPercent" json:"pstPercent"`
	RateID                           string                               `gorm:"not null;column:rateId" json:"rateId"`
	ShopSuppliesConfig               TaxConfigShopSuppliesConfigEnum      `gorm:"not null;column:shopSuppliesConfig" json:"shopSuppliesConfig"`
	ShopSuppliesMaxCapCents          int64                                `gorm:"not null;column:shopSuppliesMaxCapCents" json:"shopSuppliesMaxCapCents"`
	ShopSuppliesMaxCapServicePercent float64                              `gorm:"not null;column:shopSuppliesMaxCapServicePercent" json:"shopSuppliesMaxCapServicePercent"`
	ShopSuppliesServiceCents         int64                                `gorm:"not null;column:shopSuppliesServiceCents" json:"shopSuppliesServiceCents"`
	ShopSuppliesServicePercent       float64                              `gorm:"not null;column:shopSuppliesServicePercent" json:"shopSuppliesServicePercent"`
	ShopSuppliesServiceType          TaxConfigShopSuppliesServiceTypeEnum `gorm:"not null;column:shopSuppliesServiceType" json:"shopSuppliesServiceType"`
	ShopSuppliesTaxable              bool                                 `gorm:"not null;column:shopSuppliesTaxable" json:"shopSuppliesTaxable"`
	SubcontractTaxable               bool                                 `gorm:"not null;column:subcontractTaxable" json:"subcontractTaxable"`
	TaxPercent                       float64                              `gorm:"not null;column:taxPercent" json:"taxPercent"`
	TaxSystem                        TaxConfigTaxSystemEnum               `gorm:"not null;column:taxSystem" json:"taxSystem"`
	Version                          int64                                `gorm:"not null;column:version" json:"version"`
}

func NewTaxConfig

func NewTaxConfig(buf []byte) (*TaxConfig, error)

NewTaxConfig returns a new model instance from an encoded buffer

func (*TaxConfig) PrimaryKeys added in v0.0.4

func (m *TaxConfig) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*TaxConfig) String

func (m *TaxConfig) String() string

String returns a string representation as JSON for this model

func (*TaxConfig) TableName

func (m *TaxConfig) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type TaxConfigShopSuppliesConfigEnum

type TaxConfigShopSuppliesConfigEnum string

TaxConfig schema

const (
	TaxConfigShopSuppliesConfigNoCap    TaxConfigShopSuppliesConfigEnum = "NoCap"
	TaxConfigShopSuppliesConfigOrderCap TaxConfigShopSuppliesConfigEnum = "OrderCap"
)

type TaxConfigShopSuppliesServiceTypeEnum

type TaxConfigShopSuppliesServiceTypeEnum string
const (
	TaxConfigShopSuppliesServiceTypePercent    TaxConfigShopSuppliesServiceTypeEnum = "Percent"
	TaxConfigShopSuppliesServiceTypeFixedCents TaxConfigShopSuppliesServiceTypeEnum = "FixedCents"
)

type TaxConfigTaxSystemEnum

type TaxConfigTaxSystemEnum string
const (
	TaxConfigTaxSystemUS TaxConfigTaxSystemEnum = "US"
	TaxConfigTaxSystemCA TaxConfigTaxSystemEnum = "CA"
	TaxConfigTaxSystemMX TaxConfigTaxSystemEnum = "MX"
)

type Timesheet

type Timesheet struct {
	ID          string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	LocationID  string              `gorm:"not null;column:locationId" json:"locationId"`

	Activity         TimesheetActivityEnum          `gorm:"not null;column:activity" json:"activity"`
	ClockIn          datatypes.DateTime             `gorm:"not null;column:clockIn" json:"clockIn"`
	ClockInPlatform  *TimesheetClockInPlatformEnum  `gorm:"column:clockInPlatform" json:"clockInPlatform"`
	ClockOut         *datatypes.DateTime            `gorm:"column:clockOut" json:"clockOut"`
	ClockOutPlatform *TimesheetClockOutPlatformEnum `gorm:"column:clockOutPlatform" json:"clockOutPlatform"`
	Duration         *float64                       `gorm:"column:duration" json:"duration"`          // the amount of time clocked (in milliseconds)
	FlatRate         bool                           `gorm:"not null;column:flatRate" json:"flatRate"` // if the technician uses a flat rate
	InProgress       bool                           `gorm:"not null;column:inProgress" json:"inProgress"`
	LaborID          *string                        `gorm:"column:laborId" json:"laborId"`
	Note             string                         `gorm:"not null;column:note" json:"note"`
	Number           int64                          `gorm:"not null;column:number" json:"number"`
	OrderID          *string                        `gorm:"column:orderId" json:"orderId"`
	RateCents        *int64                         `gorm:"column:rateCents" json:"rateCents"`
	ServiceID        *string                        `gorm:"column:serviceId" json:"serviceId"`
	TechnicianID     string                         `gorm:"not null;column:technicianId" json:"technicianId"`
	Type             TimesheetTypeEnum              `gorm:"not null;column:type" json:"type"`
}

func NewTimesheet

func NewTimesheet(buf []byte) (*Timesheet, error)

NewTimesheet returns a new model instance from an encoded buffer

func (*Timesheet) PrimaryKeys added in v0.0.4

func (m *Timesheet) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*Timesheet) String

func (m *Timesheet) String() string

String returns a string representation as JSON for this model

func (*Timesheet) TableName

func (m *Timesheet) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type TimesheetActivityEnum

type TimesheetActivityEnum string

Timesheet schema

const (
	TimesheetActivityGeneral TimesheetActivityEnum = "General"
	TimesheetActivityOrder   TimesheetActivityEnum = "Order"
	TimesheetActivityService TimesheetActivityEnum = "Service"
	TimesheetActivityLabor   TimesheetActivityEnum = "Labor"
)

type TimesheetClockInPlatformEnum

type TimesheetClockInPlatformEnum string
const (
	TimesheetClockInPlatformWeb    TimesheetClockInPlatformEnum = "Web"
	TimesheetClockInPlatformMobile TimesheetClockInPlatformEnum = "Mobile"
)

type TimesheetClockOutPlatformEnum

type TimesheetClockOutPlatformEnum string
const (
	TimesheetClockOutPlatformWeb    TimesheetClockOutPlatformEnum = "Web"
	TimesheetClockOutPlatformMobile TimesheetClockOutPlatformEnum = "Mobile"
)

type TimesheetTypeEnum

type TimesheetTypeEnum string
const (
	TimesheetTypeTimeclock TimesheetTypeEnum = "Timeclock"
	TimesheetTypeManual    TimesheetTypeEnum = "Manual"
)

type Tire

type Tire struct {
	ID          string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	LocationID  string              `gorm:"not null;column:locationId" json:"locationId"`

	BinLocation           *string                   `gorm:"column:binLocation" json:"binLocation"`
	BrandID               *string                   `gorm:"column:brandId" json:"brandId"`
	CategoryID            *string                   `gorm:"column:categoryId" json:"categoryId"`
	DiscountCents         int64                     `gorm:"not null;column:discountCents" json:"discountCents"`
	DiscountPercent       float64                   `gorm:"not null;column:discountPercent" json:"discountPercent"`
	DiscountValueType     TireDiscountValueTypeEnum `gorm:"not null;column:discountValueType" json:"discountValueType"`
	FederalExciseTaxCents int64                     `gorm:"not null;column:federalExciseTaxCents" json:"federalExciseTaxCents"`
	Model                 *string                   `gorm:"column:model" json:"model"`
	Name                  string                    `gorm:"not null;column:name" json:"name"`
	Note                  *string                   `gorm:"column:note" json:"note"`
	OrderID               string                    `gorm:"not null;column:orderId" json:"orderId"`
	Ordinal               float64                   `gorm:"not null;column:ordinal" json:"ordinal"`
	PartNumber            *string                   `gorm:"column:partNumber" json:"partNumber"`
	PricingMatrixDate     *datatypes.DateTime       `gorm:"column:pricingMatrixDate" json:"pricingMatrixDate"` // datetime when pricingMatrixId was set, for determining if matrix has been changed
	PricingMatrixID       *string                   `gorm:"column:pricingMatrixId" json:"pricingMatrixId"`
	Quantity              float64                   `gorm:"not null;column:quantity" json:"quantity"`
	ReduceInventoryCount  bool                      `gorm:"not null;column:reduceInventoryCount" json:"reduceInventoryCount"`
	RetailCostCents       int64                     `gorm:"not null;column:retailCostCents" json:"retailCostCents"`
	Seasonality           *TireSeasonalityEnum      `gorm:"column:seasonality" json:"seasonality"`
	ServiceID             string                    `gorm:"not null;column:serviceId" json:"serviceId"`
	ShowNote              bool                      `gorm:"not null;column:showNote" json:"showNote"`
	ShowPartNumber        bool                      `gorm:"not null;column:showPartNumber" json:"showPartNumber"`
	ShowPriceAndQuantity  bool                      `gorm:"not null;column:showPriceAndQuantity" json:"showPriceAndQuantity"`
	Size                  *string                   `gorm:"column:size" json:"size"`
	SizeFormat            TireSizeFormatEnum        `gorm:"not null;column:sizeFormat" json:"sizeFormat"`
	SourceItemID          *string                   `gorm:"column:sourceItemId" json:"sourceItemId"`
	Taxable               bool                      `gorm:"not null;column:taxable" json:"taxable"`
	VendorID              *string                   `gorm:"column:vendorId" json:"vendorId"`
	WasteTireFee          int64                     `gorm:"not null;column:wasteTireFee" json:"wasteTireFee"`
	WholesaleCostCents    *int64                    `gorm:"column:wholesaleCostCents" json:"wholesaleCostCents"`
}

func NewTire

func NewTire(buf []byte) (*Tire, error)

NewTire returns a new model instance from an encoded buffer

func (*Tire) PrimaryKeys added in v0.0.4

func (m *Tire) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*Tire) String

func (m *Tire) String() string

String returns a string representation as JSON for this model

func (*Tire) TableName

func (m *Tire) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type TireDiscountValueTypeEnum

type TireDiscountValueTypeEnum string

Tire schema

const (
	TireDiscountValueTypePercent    TireDiscountValueTypeEnum = "Percent"
	TireDiscountValueTypeFixedCents TireDiscountValueTypeEnum = "FixedCents"
)

type TirePressureLog

type TirePressureLog struct {
	ID          string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	LocationID  string              `gorm:"not null;column:locationId" json:"locationId"`

	FrontLeft  *float64 `gorm:"column:frontLeft" json:"frontLeft"`
	FrontRight *float64 `gorm:"column:frontRight" json:"frontRight"`
	OrderID    string   `gorm:"not null;column:orderId" json:"orderId"`
	RearLeft   *float64 `gorm:"column:rearLeft" json:"rearLeft"`
	RearRight  *float64 `gorm:"column:rearRight" json:"rearRight"`
	VehicleID  string   `gorm:"not null;column:vehicleId" json:"vehicleId"`
}

TirePressureLog schema

func NewTirePressureLog

func NewTirePressureLog(buf []byte) (*TirePressureLog, error)

NewTirePressureLog returns a new model instance from an encoded buffer

func (*TirePressureLog) PrimaryKeys added in v0.0.4

func (m *TirePressureLog) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*TirePressureLog) String

func (m *TirePressureLog) String() string

String returns a string representation as JSON for this model

func (*TirePressureLog) TableName

func (m *TirePressureLog) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type TireSeasonalityEnum

type TireSeasonalityEnum string
const (
	TireSeasonalitySummer     TireSeasonalityEnum = "Summer"
	TireSeasonalityWinter     TireSeasonalityEnum = "Winter"
	TireSeasonalityAllSeasons TireSeasonalityEnum = "AllSeasons"
)

type TireSizeFormatEnum

type TireSizeFormatEnum string
const (
	TireSizeFormatConventional TireSizeFormatEnum = "Conventional"
	TireSizeFormatOffRoadSAE   TireSizeFormatEnum = "OffRoadSAE"
)

type TpiScan

type TpiScan struct {
	ID          string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	LocationID  string              `gorm:"not null;column:locationId" json:"locationId"`

	IsAlignmentRecommended bool                  `gorm:"not null;column:isAlignmentRecommended" json:"isAlignmentRecommended"`
	IsRotationRecommended  bool                  `gorm:"not null;column:isRotationRecommended" json:"isRotationRecommended"`
	PdfUrl                 string                `gorm:"not null;column:pdfUrl" json:"pdfUrl"`
	ScanDate               datatypes.DateTime    `gorm:"not null;column:scanDate" json:"scanDate"`
	ScannedBy              *string               `gorm:"column:scannedBy" json:"scannedBy"`
	VehicleConditions      datatypes.StringArray `gorm:"not null;column:vehicleConditions" json:"vehicleConditions"`
	VehicleID              *string               `gorm:"column:vehicleId" json:"vehicleId"`
}

TpiScan schema

func NewTpiScan

func NewTpiScan(buf []byte) (*TpiScan, error)

NewTpiScan returns a new model instance from an encoded buffer

func (*TpiScan) PrimaryKeys added in v0.0.4

func (m *TpiScan) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*TpiScan) String

func (m *TpiScan) String() string

String returns a string representation as JSON for this model

func (*TpiScan) TableName

func (m *TpiScan) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type TpiScanInspection

type TpiScanInspection struct {
	ID          string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	LocationID  string              `gorm:"not null;column:locationId" json:"locationId"`

	Name      string  `gorm:"not null;column:name" json:"name"`
	OrderID   string  `gorm:"not null;column:orderId" json:"orderId"`
	Ordinal   float64 `gorm:"not null;column:ordinal" json:"ordinal"`
	TpiScanID string  `gorm:"not null;column:tpiScanId" json:"tpiScanId"`
}

TpiScanInspection schema

func NewTpiScanInspection

func NewTpiScanInspection(buf []byte) (*TpiScanInspection, error)

NewTpiScanInspection returns a new model instance from an encoded buffer

func (*TpiScanInspection) PrimaryKeys added in v0.0.4

func (m *TpiScanInspection) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*TpiScanInspection) String

func (m *TpiScanInspection) String() string

String returns a string representation as JSON for this model

func (*TpiScanInspection) TableName

func (m *TpiScanInspection) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type User

type User struct {
	ID           string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate  datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate  *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta         *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata     *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID    string              `gorm:"not null;column:companyId" json:"companyId"`
	LocationID   *string             `gorm:"column:locationId" json:"locationId"`
	CustomFields datatypes.JSON      `gorm:"column:customFields" json:"customFields"` // custom field values

	CalendarColor *string `gorm:"column:calendarColor" json:"calendarColor"`
	FirstName     *string `gorm:"column:firstName" json:"firstName"`
	LastName      *string `gorm:"column:lastName" json:"lastName"`
}

User schema

func NewUser

func NewUser(buf []byte) (*User, error)

NewUser returns a new model instance from an encoded buffer

func (*User) PrimaryKeys added in v0.0.4

func (m *User) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*User) String

func (m *User) String() string

String returns a string representation as JSON for this model

func (*User) TableName

func (m *User) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type Vehicle

type Vehicle struct {
	ID           string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate  datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate  *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta         *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata     *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID    string              `gorm:"not null;column:companyId" json:"companyId"`
	CustomFields datatypes.JSON      `gorm:"column:customFields" json:"customFields"` // custom field values

	AppointmentCount     int64                          `gorm:"not null;column:appointmentCount" json:"appointmentCount"`
	Color                *VehicleColorEnum              `gorm:"column:color" json:"color"`
	CustomPhoto          bool                           `gorm:"not null;column:customPhoto" json:"customPhoto"`
	DeferredServiceCount int64                          `gorm:"not null;column:deferredServiceCount" json:"deferredServiceCount"`
	Drivetrain           *VehicleDrivetrainEnum         `gorm:"column:drivetrain" json:"drivetrain"`
	Engine               *string                        `gorm:"column:engine" json:"engine"`
	LicensePlate         *string                        `gorm:"column:licensePlate" json:"licensePlate"`
	LicensePlateCountry  VehicleLicensePlateCountryEnum `gorm:"not null;column:licensePlateCountry" json:"licensePlateCountry"`
	LicensePlateState    *string                        `gorm:"column:licensePlateState" json:"licensePlateState"`
	Make                 *string                        `gorm:"column:make" json:"make"`
	MakeID               *int64                         `gorm:"column:makeId" json:"makeId"` // vcdb make id
	MessageCount         int64                          `gorm:"not null;column:messageCount" json:"messageCount"`
	Mileage              *float64                       `gorm:"column:mileage" json:"mileage"`
	MileageLogCount      int64                          `gorm:"not null;column:mileageLogCount" json:"mileageLogCount"`
	MileageUnit          VehicleMileageUnitEnum         `gorm:"not null;column:mileageUnit" json:"mileageUnit"`
	Model                *string                        `gorm:"column:model" json:"model"`
	ModelID              *int64                         `gorm:"column:modelId" json:"modelId"` // vcdb model id
	Note                 string                         `gorm:"not null;column:note" json:"note"`
	Odometer             bool                           `gorm:"not null;column:odometer" json:"odometer"`
	OrderCount           int64                          `gorm:"not null;column:orderCount" json:"orderCount"`
	OwnerCount           int64                          `gorm:"not null;column:ownerCount" json:"ownerCount"`
	ProductionDate       *string                        `gorm:"column:productionDate" json:"productionDate"`
	Size                 VehicleSizeEnum                `gorm:"not null;column:size" json:"size"`
	StockPhoto           *bool                          `gorm:"column:stockPhoto" json:"stockPhoto"`
	Submodel             *string                        `gorm:"column:submodel" json:"submodel"`
	SubmodelID           *int64                         `gorm:"column:submodelId" json:"submodelId"` // vcdb submodel id
	TirePressureLogCount int64                          `gorm:"not null;column:tirePressureLogCount" json:"tirePressureLogCount"`
	Transmission         *VehicleTransmissionEnum       `gorm:"column:transmission" json:"transmission"`
	Type                 *VehicleTypeEnum               `gorm:"column:type" json:"type"`
	Unit                 *string                        `gorm:"column:unit" json:"unit"`
	VcdbVehicleID        *string                        `gorm:"column:vcdbVehicleId" json:"vcdbVehicleId"`
	Vin                  *string                        `gorm:"column:vin" json:"vin"`
	Year                 *int64                         `gorm:"column:year" json:"year"`
}

func NewVehicle

func NewVehicle(buf []byte) (*Vehicle, error)

NewVehicle returns a new model instance from an encoded buffer

func (*Vehicle) PrimaryKeys added in v0.0.4

func (m *Vehicle) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*Vehicle) String

func (m *Vehicle) String() string

String returns a string representation as JSON for this model

func (*Vehicle) TableName

func (m *Vehicle) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type VehicleColorEnum

type VehicleColorEnum string

Vehicle schema

const (
	VehicleColorWhite    VehicleColorEnum = "White"
	VehicleColorSilver   VehicleColorEnum = "Silver"
	VehicleColorGray     VehicleColorEnum = "Gray"
	VehicleColorBlack    VehicleColorEnum = "Black"
	VehicleColorBlue     VehicleColorEnum = "Blue"
	VehicleColorRed      VehicleColorEnum = "Red"
	VehicleColorBrown    VehicleColorEnum = "Brown"
	VehicleColorBurgundy VehicleColorEnum = "Burgundy"
	VehicleColorTan      VehicleColorEnum = "Tan"
	VehicleColorGold     VehicleColorEnum = "Gold"
	VehicleColorGreen    VehicleColorEnum = "Green"
	VehicleColorYellow   VehicleColorEnum = "Yellow"
	VehicleColorOrange   VehicleColorEnum = "Orange"
	VehicleColorPink     VehicleColorEnum = "Pink"
	VehicleColorPurple   VehicleColorEnum = "Purple"
	VehicleColorOther    VehicleColorEnum = "Other"
)

type VehicleDrivetrainEnum

type VehicleDrivetrainEnum string
const (
	VehicleDrivetrainRWD    VehicleDrivetrainEnum = "RWD"
	VehicleDrivetrainFWD    VehicleDrivetrainEnum = "FWD"
	VehicleDrivetrainFourWD VehicleDrivetrainEnum = "FourWD"
	VehicleDrivetrainAWD    VehicleDrivetrainEnum = "AWD"
)

type VehicleLicensePlateCountryEnum

type VehicleLicensePlateCountryEnum string
const (
	VehicleLicensePlateCountryUS VehicleLicensePlateCountryEnum = "US"
	VehicleLicensePlateCountryCA VehicleLicensePlateCountryEnum = "CA"
	VehicleLicensePlateCountryMX VehicleLicensePlateCountryEnum = "MX"
	VehicleLicensePlateCountryAF VehicleLicensePlateCountryEnum = "AF"
	VehicleLicensePlateCountryAX VehicleLicensePlateCountryEnum = "AX"
	VehicleLicensePlateCountryAL VehicleLicensePlateCountryEnum = "AL"
	VehicleLicensePlateCountryDZ VehicleLicensePlateCountryEnum = "DZ"
	VehicleLicensePlateCountryAS VehicleLicensePlateCountryEnum = "AS"
	VehicleLicensePlateCountryAD VehicleLicensePlateCountryEnum = "AD"
	VehicleLicensePlateCountryAO VehicleLicensePlateCountryEnum = "AO"
	VehicleLicensePlateCountryAI VehicleLicensePlateCountryEnum = "AI"
	VehicleLicensePlateCountryAQ VehicleLicensePlateCountryEnum = "AQ"
	VehicleLicensePlateCountryAG VehicleLicensePlateCountryEnum = "AG"
	VehicleLicensePlateCountryAR VehicleLicensePlateCountryEnum = "AR"
	VehicleLicensePlateCountryAM VehicleLicensePlateCountryEnum = "AM"
	VehicleLicensePlateCountryAW VehicleLicensePlateCountryEnum = "AW"
	VehicleLicensePlateCountryAU VehicleLicensePlateCountryEnum = "AU"
	VehicleLicensePlateCountryAT VehicleLicensePlateCountryEnum = "AT"
	VehicleLicensePlateCountryAZ VehicleLicensePlateCountryEnum = "AZ"
	VehicleLicensePlateCountryBS VehicleLicensePlateCountryEnum = "BS"
	VehicleLicensePlateCountryBH VehicleLicensePlateCountryEnum = "BH"
	VehicleLicensePlateCountryBD VehicleLicensePlateCountryEnum = "BD"
	VehicleLicensePlateCountryBB VehicleLicensePlateCountryEnum = "BB"
	VehicleLicensePlateCountryBY VehicleLicensePlateCountryEnum = "BY"
	VehicleLicensePlateCountryBE VehicleLicensePlateCountryEnum = "BE"
	VehicleLicensePlateCountryBZ VehicleLicensePlateCountryEnum = "BZ"
	VehicleLicensePlateCountryBJ VehicleLicensePlateCountryEnum = "BJ"
	VehicleLicensePlateCountryBM VehicleLicensePlateCountryEnum = "BM"
	VehicleLicensePlateCountryBT VehicleLicensePlateCountryEnum = "BT"
	VehicleLicensePlateCountryBO VehicleLicensePlateCountryEnum = "BO"
	VehicleLicensePlateCountryBQ VehicleLicensePlateCountryEnum = "BQ"
	VehicleLicensePlateCountryBA VehicleLicensePlateCountryEnum = "BA"
	VehicleLicensePlateCountryBW VehicleLicensePlateCountryEnum = "BW"
	VehicleLicensePlateCountryBV VehicleLicensePlateCountryEnum = "BV"
	VehicleLicensePlateCountryBR VehicleLicensePlateCountryEnum = "BR"
	VehicleLicensePlateCountryIO VehicleLicensePlateCountryEnum = "IO"
	VehicleLicensePlateCountryVG VehicleLicensePlateCountryEnum = "VG"
	VehicleLicensePlateCountryBN VehicleLicensePlateCountryEnum = "BN"
	VehicleLicensePlateCountryBG VehicleLicensePlateCountryEnum = "BG"
	VehicleLicensePlateCountryBF VehicleLicensePlateCountryEnum = "BF"
	VehicleLicensePlateCountryBI VehicleLicensePlateCountryEnum = "BI"
	VehicleLicensePlateCountryCV VehicleLicensePlateCountryEnum = "CV"
	VehicleLicensePlateCountryKH VehicleLicensePlateCountryEnum = "KH"
	VehicleLicensePlateCountryCM VehicleLicensePlateCountryEnum = "CM"
	VehicleLicensePlateCountryKY VehicleLicensePlateCountryEnum = "KY"
	VehicleLicensePlateCountryCF VehicleLicensePlateCountryEnum = "CF"
	VehicleLicensePlateCountryTD VehicleLicensePlateCountryEnum = "TD"
	VehicleLicensePlateCountryCL VehicleLicensePlateCountryEnum = "CL"
	VehicleLicensePlateCountryCN VehicleLicensePlateCountryEnum = "CN"
	VehicleLicensePlateCountryHK VehicleLicensePlateCountryEnum = "HK"
	VehicleLicensePlateCountryMO VehicleLicensePlateCountryEnum = "MO"
	VehicleLicensePlateCountryCX VehicleLicensePlateCountryEnum = "CX"
	VehicleLicensePlateCountryCC VehicleLicensePlateCountryEnum = "CC"
	VehicleLicensePlateCountryCO VehicleLicensePlateCountryEnum = "CO"
	VehicleLicensePlateCountryKM VehicleLicensePlateCountryEnum = "KM"
	VehicleLicensePlateCountryCG VehicleLicensePlateCountryEnum = "CG"
	VehicleLicensePlateCountryCK VehicleLicensePlateCountryEnum = "CK"
	VehicleLicensePlateCountryCR VehicleLicensePlateCountryEnum = "CR"
	VehicleLicensePlateCountryHR VehicleLicensePlateCountryEnum = "HR"
	VehicleLicensePlateCountryCU VehicleLicensePlateCountryEnum = "CU"
	VehicleLicensePlateCountryCW VehicleLicensePlateCountryEnum = "CW"
	VehicleLicensePlateCountryCY VehicleLicensePlateCountryEnum = "CY"
	VehicleLicensePlateCountryCZ VehicleLicensePlateCountryEnum = "CZ"
	VehicleLicensePlateCountryCI VehicleLicensePlateCountryEnum = "CI"
	VehicleLicensePlateCountryKP VehicleLicensePlateCountryEnum = "KP"
	VehicleLicensePlateCountryCD VehicleLicensePlateCountryEnum = "CD"
	VehicleLicensePlateCountryDK VehicleLicensePlateCountryEnum = "DK"
	VehicleLicensePlateCountryDJ VehicleLicensePlateCountryEnum = "DJ"
	VehicleLicensePlateCountryDM VehicleLicensePlateCountryEnum = "DM"
	VehicleLicensePlateCountryDO VehicleLicensePlateCountryEnum = "DO"
	VehicleLicensePlateCountryEC VehicleLicensePlateCountryEnum = "EC"
	VehicleLicensePlateCountryEG VehicleLicensePlateCountryEnum = "EG"
	VehicleLicensePlateCountrySV VehicleLicensePlateCountryEnum = "SV"
	VehicleLicensePlateCountryGQ VehicleLicensePlateCountryEnum = "GQ"
	VehicleLicensePlateCountryER VehicleLicensePlateCountryEnum = "ER"
	VehicleLicensePlateCountryEE VehicleLicensePlateCountryEnum = "EE"
	VehicleLicensePlateCountrySZ VehicleLicensePlateCountryEnum = "SZ"
	VehicleLicensePlateCountryET VehicleLicensePlateCountryEnum = "ET"
	VehicleLicensePlateCountryFK VehicleLicensePlateCountryEnum = "FK"
	VehicleLicensePlateCountryFO VehicleLicensePlateCountryEnum = "FO"
	VehicleLicensePlateCountryFJ VehicleLicensePlateCountryEnum = "FJ"
	VehicleLicensePlateCountryFI VehicleLicensePlateCountryEnum = "FI"
	VehicleLicensePlateCountryFR VehicleLicensePlateCountryEnum = "FR"
	VehicleLicensePlateCountryGF VehicleLicensePlateCountryEnum = "GF"
	VehicleLicensePlateCountryPF VehicleLicensePlateCountryEnum = "PF"
	VehicleLicensePlateCountryTF VehicleLicensePlateCountryEnum = "TF"
	VehicleLicensePlateCountryGA VehicleLicensePlateCountryEnum = "GA"
	VehicleLicensePlateCountryGM VehicleLicensePlateCountryEnum = "GM"
	VehicleLicensePlateCountryGE VehicleLicensePlateCountryEnum = "GE"
	VehicleLicensePlateCountryDE VehicleLicensePlateCountryEnum = "DE"
	VehicleLicensePlateCountryGH VehicleLicensePlateCountryEnum = "GH"
	VehicleLicensePlateCountryGI VehicleLicensePlateCountryEnum = "GI"
	VehicleLicensePlateCountryGR VehicleLicensePlateCountryEnum = "GR"
	VehicleLicensePlateCountryGL VehicleLicensePlateCountryEnum = "GL"
	VehicleLicensePlateCountryGD VehicleLicensePlateCountryEnum = "GD"
	VehicleLicensePlateCountryGP VehicleLicensePlateCountryEnum = "GP"
	VehicleLicensePlateCountryGU VehicleLicensePlateCountryEnum = "GU"
	VehicleLicensePlateCountryGT VehicleLicensePlateCountryEnum = "GT"
	VehicleLicensePlateCountryGG VehicleLicensePlateCountryEnum = "GG"
	VehicleLicensePlateCountryGN VehicleLicensePlateCountryEnum = "GN"
	VehicleLicensePlateCountryGW VehicleLicensePlateCountryEnum = "GW"
	VehicleLicensePlateCountryGY VehicleLicensePlateCountryEnum = "GY"
	VehicleLicensePlateCountryHT VehicleLicensePlateCountryEnum = "HT"
	VehicleLicensePlateCountryHM VehicleLicensePlateCountryEnum = "HM"
	VehicleLicensePlateCountryVA VehicleLicensePlateCountryEnum = "VA"
	VehicleLicensePlateCountryHN VehicleLicensePlateCountryEnum = "HN"
	VehicleLicensePlateCountryHU VehicleLicensePlateCountryEnum = "HU"
	VehicleLicensePlateCountryIS VehicleLicensePlateCountryEnum = "IS"
	VehicleLicensePlateCountryIN VehicleLicensePlateCountryEnum = "IN"
	VehicleLicensePlateCountryID VehicleLicensePlateCountryEnum = "ID"
	VehicleLicensePlateCountryIR VehicleLicensePlateCountryEnum = "IR"
	VehicleLicensePlateCountryIQ VehicleLicensePlateCountryEnum = "IQ"
	VehicleLicensePlateCountryIE VehicleLicensePlateCountryEnum = "IE"
	VehicleLicensePlateCountryIM VehicleLicensePlateCountryEnum = "IM"
	VehicleLicensePlateCountryIL VehicleLicensePlateCountryEnum = "IL"
	VehicleLicensePlateCountryIT VehicleLicensePlateCountryEnum = "IT"
	VehicleLicensePlateCountryJM VehicleLicensePlateCountryEnum = "JM"
	VehicleLicensePlateCountryJP VehicleLicensePlateCountryEnum = "JP"
	VehicleLicensePlateCountryJE VehicleLicensePlateCountryEnum = "JE"
	VehicleLicensePlateCountryJO VehicleLicensePlateCountryEnum = "JO"
	VehicleLicensePlateCountryKZ VehicleLicensePlateCountryEnum = "KZ"
	VehicleLicensePlateCountryKE VehicleLicensePlateCountryEnum = "KE"
	VehicleLicensePlateCountryKI VehicleLicensePlateCountryEnum = "KI"
	VehicleLicensePlateCountryKW VehicleLicensePlateCountryEnum = "KW"
	VehicleLicensePlateCountryKG VehicleLicensePlateCountryEnum = "KG"
	VehicleLicensePlateCountryLA VehicleLicensePlateCountryEnum = "LA"
	VehicleLicensePlateCountryLV VehicleLicensePlateCountryEnum = "LV"
	VehicleLicensePlateCountryLB VehicleLicensePlateCountryEnum = "LB"
	VehicleLicensePlateCountryLS VehicleLicensePlateCountryEnum = "LS"
	VehicleLicensePlateCountryLR VehicleLicensePlateCountryEnum = "LR"
	VehicleLicensePlateCountryLY VehicleLicensePlateCountryEnum = "LY"
	VehicleLicensePlateCountryLI VehicleLicensePlateCountryEnum = "LI"
	VehicleLicensePlateCountryLT VehicleLicensePlateCountryEnum = "LT"
	VehicleLicensePlateCountryLU VehicleLicensePlateCountryEnum = "LU"
	VehicleLicensePlateCountryMG VehicleLicensePlateCountryEnum = "MG"
	VehicleLicensePlateCountryMW VehicleLicensePlateCountryEnum = "MW"
	VehicleLicensePlateCountryMY VehicleLicensePlateCountryEnum = "MY"
	VehicleLicensePlateCountryMV VehicleLicensePlateCountryEnum = "MV"
	VehicleLicensePlateCountryML VehicleLicensePlateCountryEnum = "ML"
	VehicleLicensePlateCountryMT VehicleLicensePlateCountryEnum = "MT"
	VehicleLicensePlateCountryMH VehicleLicensePlateCountryEnum = "MH"
	VehicleLicensePlateCountryMQ VehicleLicensePlateCountryEnum = "MQ"
	VehicleLicensePlateCountryMR VehicleLicensePlateCountryEnum = "MR"
	VehicleLicensePlateCountryMU VehicleLicensePlateCountryEnum = "MU"
	VehicleLicensePlateCountryYT VehicleLicensePlateCountryEnum = "YT"
	VehicleLicensePlateCountryFM VehicleLicensePlateCountryEnum = "FM"
	VehicleLicensePlateCountryMC VehicleLicensePlateCountryEnum = "MC"
	VehicleLicensePlateCountryMN VehicleLicensePlateCountryEnum = "MN"
	VehicleLicensePlateCountryME VehicleLicensePlateCountryEnum = "ME"
	VehicleLicensePlateCountryMS VehicleLicensePlateCountryEnum = "MS"
	VehicleLicensePlateCountryMA VehicleLicensePlateCountryEnum = "MA"
	VehicleLicensePlateCountryMZ VehicleLicensePlateCountryEnum = "MZ"
	VehicleLicensePlateCountryMM VehicleLicensePlateCountryEnum = "MM"
	VehicleLicensePlateCountryNA VehicleLicensePlateCountryEnum = "NA"
	VehicleLicensePlateCountryNR VehicleLicensePlateCountryEnum = "NR"
	VehicleLicensePlateCountryNP VehicleLicensePlateCountryEnum = "NP"
	VehicleLicensePlateCountryNL VehicleLicensePlateCountryEnum = "NL"
	VehicleLicensePlateCountryNC VehicleLicensePlateCountryEnum = "NC"
	VehicleLicensePlateCountryNZ VehicleLicensePlateCountryEnum = "NZ"
	VehicleLicensePlateCountryNI VehicleLicensePlateCountryEnum = "NI"
	VehicleLicensePlateCountryNE VehicleLicensePlateCountryEnum = "NE"
	VehicleLicensePlateCountryNG VehicleLicensePlateCountryEnum = "NG"
	VehicleLicensePlateCountryNU VehicleLicensePlateCountryEnum = "NU"
	VehicleLicensePlateCountryNF VehicleLicensePlateCountryEnum = "NF"
	VehicleLicensePlateCountryMP VehicleLicensePlateCountryEnum = "MP"
	VehicleLicensePlateCountryNO VehicleLicensePlateCountryEnum = "NO"
	VehicleLicensePlateCountryOM VehicleLicensePlateCountryEnum = "OM"
	VehicleLicensePlateCountryPK VehicleLicensePlateCountryEnum = "PK"
	VehicleLicensePlateCountryPW VehicleLicensePlateCountryEnum = "PW"
	VehicleLicensePlateCountryPA VehicleLicensePlateCountryEnum = "PA"
	VehicleLicensePlateCountryPG VehicleLicensePlateCountryEnum = "PG"
	VehicleLicensePlateCountryPY VehicleLicensePlateCountryEnum = "PY"
	VehicleLicensePlateCountryPE VehicleLicensePlateCountryEnum = "PE"
	VehicleLicensePlateCountryPH VehicleLicensePlateCountryEnum = "PH"
	VehicleLicensePlateCountryPN VehicleLicensePlateCountryEnum = "PN"
	VehicleLicensePlateCountryPL VehicleLicensePlateCountryEnum = "PL"
	VehicleLicensePlateCountryPT VehicleLicensePlateCountryEnum = "PT"
	VehicleLicensePlateCountryPR VehicleLicensePlateCountryEnum = "PR"
	VehicleLicensePlateCountryQA VehicleLicensePlateCountryEnum = "QA"
	VehicleLicensePlateCountryKR VehicleLicensePlateCountryEnum = "KR"
	VehicleLicensePlateCountryMD VehicleLicensePlateCountryEnum = "MD"
	VehicleLicensePlateCountryRO VehicleLicensePlateCountryEnum = "RO"
	VehicleLicensePlateCountryRU VehicleLicensePlateCountryEnum = "RU"
	VehicleLicensePlateCountryRW VehicleLicensePlateCountryEnum = "RW"
	VehicleLicensePlateCountryRE VehicleLicensePlateCountryEnum = "RE"
	VehicleLicensePlateCountryBL VehicleLicensePlateCountryEnum = "BL"
	VehicleLicensePlateCountrySH VehicleLicensePlateCountryEnum = "SH"
	VehicleLicensePlateCountryKN VehicleLicensePlateCountryEnum = "KN"
	VehicleLicensePlateCountryLC VehicleLicensePlateCountryEnum = "LC"
	VehicleLicensePlateCountryMF VehicleLicensePlateCountryEnum = "MF"
	VehicleLicensePlateCountryPM VehicleLicensePlateCountryEnum = "PM"
	VehicleLicensePlateCountryVC VehicleLicensePlateCountryEnum = "VC"
	VehicleLicensePlateCountryWS VehicleLicensePlateCountryEnum = "WS"
	VehicleLicensePlateCountrySM VehicleLicensePlateCountryEnum = "SM"
	VehicleLicensePlateCountryST VehicleLicensePlateCountryEnum = "ST"
	VehicleLicensePlateCountrySA VehicleLicensePlateCountryEnum = "SA"
	VehicleLicensePlateCountrySN VehicleLicensePlateCountryEnum = "SN"
	VehicleLicensePlateCountryRS VehicleLicensePlateCountryEnum = "RS"
	VehicleLicensePlateCountrySC VehicleLicensePlateCountryEnum = "SC"
	VehicleLicensePlateCountrySL VehicleLicensePlateCountryEnum = "SL"
	VehicleLicensePlateCountrySG VehicleLicensePlateCountryEnum = "SG"
	VehicleLicensePlateCountrySX VehicleLicensePlateCountryEnum = "SX"
	VehicleLicensePlateCountrySK VehicleLicensePlateCountryEnum = "SK"
	VehicleLicensePlateCountrySI VehicleLicensePlateCountryEnum = "SI"
	VehicleLicensePlateCountrySB VehicleLicensePlateCountryEnum = "SB"
	VehicleLicensePlateCountrySO VehicleLicensePlateCountryEnum = "SO"
	VehicleLicensePlateCountryZA VehicleLicensePlateCountryEnum = "ZA"
	VehicleLicensePlateCountryGS VehicleLicensePlateCountryEnum = "GS"
	VehicleLicensePlateCountrySS VehicleLicensePlateCountryEnum = "SS"
	VehicleLicensePlateCountryES VehicleLicensePlateCountryEnum = "ES"
	VehicleLicensePlateCountryLK VehicleLicensePlateCountryEnum = "LK"
	VehicleLicensePlateCountryPS VehicleLicensePlateCountryEnum = "PS"
	VehicleLicensePlateCountrySD VehicleLicensePlateCountryEnum = "SD"
	VehicleLicensePlateCountrySR VehicleLicensePlateCountryEnum = "SR"
	VehicleLicensePlateCountrySJ VehicleLicensePlateCountryEnum = "SJ"
	VehicleLicensePlateCountrySE VehicleLicensePlateCountryEnum = "SE"
	VehicleLicensePlateCountryCH VehicleLicensePlateCountryEnum = "CH"
	VehicleLicensePlateCountrySY VehicleLicensePlateCountryEnum = "SY"
	VehicleLicensePlateCountryTW VehicleLicensePlateCountryEnum = "TW"
	VehicleLicensePlateCountryTJ VehicleLicensePlateCountryEnum = "TJ"
	VehicleLicensePlateCountryTH VehicleLicensePlateCountryEnum = "TH"
	VehicleLicensePlateCountryMK VehicleLicensePlateCountryEnum = "MK"
	VehicleLicensePlateCountryTL VehicleLicensePlateCountryEnum = "TL"
	VehicleLicensePlateCountryTG VehicleLicensePlateCountryEnum = "TG"
	VehicleLicensePlateCountryTK VehicleLicensePlateCountryEnum = "TK"
	VehicleLicensePlateCountryTO VehicleLicensePlateCountryEnum = "TO"
	VehicleLicensePlateCountryTT VehicleLicensePlateCountryEnum = "TT"
	VehicleLicensePlateCountryTN VehicleLicensePlateCountryEnum = "TN"
	VehicleLicensePlateCountryTR VehicleLicensePlateCountryEnum = "TR"
	VehicleLicensePlateCountryTM VehicleLicensePlateCountryEnum = "TM"
	VehicleLicensePlateCountryTC VehicleLicensePlateCountryEnum = "TC"
	VehicleLicensePlateCountryTV VehicleLicensePlateCountryEnum = "TV"
	VehicleLicensePlateCountryUG VehicleLicensePlateCountryEnum = "UG"
	VehicleLicensePlateCountryUA VehicleLicensePlateCountryEnum = "UA"
	VehicleLicensePlateCountryAE VehicleLicensePlateCountryEnum = "AE"
	VehicleLicensePlateCountryGB VehicleLicensePlateCountryEnum = "GB"
	VehicleLicensePlateCountryTZ VehicleLicensePlateCountryEnum = "TZ"
	VehicleLicensePlateCountryUM VehicleLicensePlateCountryEnum = "UM"
	VehicleLicensePlateCountryVI VehicleLicensePlateCountryEnum = "VI"
	VehicleLicensePlateCountryUY VehicleLicensePlateCountryEnum = "UY"
	VehicleLicensePlateCountryUZ VehicleLicensePlateCountryEnum = "UZ"
	VehicleLicensePlateCountryVU VehicleLicensePlateCountryEnum = "VU"
	VehicleLicensePlateCountryVE VehicleLicensePlateCountryEnum = "VE"
	VehicleLicensePlateCountryVN VehicleLicensePlateCountryEnum = "VN"
	VehicleLicensePlateCountryWF VehicleLicensePlateCountryEnum = "WF"
	VehicleLicensePlateCountryEH VehicleLicensePlateCountryEnum = "EH"
	VehicleLicensePlateCountryYE VehicleLicensePlateCountryEnum = "YE"
	VehicleLicensePlateCountryZM VehicleLicensePlateCountryEnum = "ZM"
	VehicleLicensePlateCountryZW VehicleLicensePlateCountryEnum = "ZW"
)

type VehicleLocationConnection

type VehicleLocationConnection struct {
	VehicleID  string `gorm:"primaryKey;not null;column:vehicleId" json:"vehicleId"`
	LocationID string `gorm:"primaryKey;not null;column:locationId" json:"locationId"`

	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
}

VehicleLocationConnection schema

func NewVehicleLocationConnection

func NewVehicleLocationConnection(buf []byte) (*VehicleLocationConnection, error)

NewVehicleLocationConnection returns a new model instance from an encoded buffer

func (*VehicleLocationConnection) PrimaryKeys added in v0.0.4

func (m *VehicleLocationConnection) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*VehicleLocationConnection) String

func (m *VehicleLocationConnection) String() string

String returns a string representation as JSON for this model

func (*VehicleLocationConnection) TableName

func (m *VehicleLocationConnection) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type VehicleMileageUnitEnum

type VehicleMileageUnitEnum string
const (
	VehicleMileageUnitMile      VehicleMileageUnitEnum = "Mile"
	VehicleMileageUnitKilometer VehicleMileageUnitEnum = "Kilometer"
)

type VehicleOwner

type VehicleOwner struct {
	VehicleID  string `gorm:"primaryKey;not null;column:vehicleId" json:"vehicleId"`
	CustomerID string `gorm:"primaryKey;not null;column:customerId" json:"customerId"`

	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
}

VehicleOwner schema

func NewVehicleOwner

func NewVehicleOwner(buf []byte) (*VehicleOwner, error)

NewVehicleOwner returns a new model instance from an encoded buffer

func (*VehicleOwner) PrimaryKeys added in v0.0.4

func (m *VehicleOwner) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*VehicleOwner) String

func (m *VehicleOwner) String() string

String returns a string representation as JSON for this model

func (*VehicleOwner) TableName

func (m *VehicleOwner) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type VehicleSizeEnum

type VehicleSizeEnum string
const (
	VehicleSizeHeavyDuty VehicleSizeEnum = "HeavyDuty"
	VehicleSizeLightDuty VehicleSizeEnum = "LightDuty"
	VehicleSizeOther     VehicleSizeEnum = "Other"
)

type VehicleTransmissionEnum

type VehicleTransmissionEnum string
const (
	VehicleTransmissionAutomatic           VehicleTransmissionEnum = "Automatic"
	VehicleTransmissionManual              VehicleTransmissionEnum = "Manual"
	VehicleTransmissionAutomaticCVT        VehicleTransmissionEnum = "AutomaticCVT"
	VehicleTransmissionAutomaticDualClutch VehicleTransmissionEnum = "AutomaticDualClutch"
)

type VehicleTypeEnum

type VehicleTypeEnum string
const (
	VehicleTypeConvertible VehicleTypeEnum = "Convertible"
	VehicleTypeCoupe       VehicleTypeEnum = "Coupe"
	VehicleTypeHatchback   VehicleTypeEnum = "Hatchback"
	VehicleTypeSUV         VehicleTypeEnum = "SUV"
	VehicleTypeSedan       VehicleTypeEnum = "Sedan"
	VehicleTypeTruck       VehicleTypeEnum = "Truck"
	VehicleTypeVan         VehicleTypeEnum = "Van"
	VehicleTypeWagon       VehicleTypeEnum = "Wagon"
	VehicleTypeBicycle     VehicleTypeEnum = "Bicycle"
	VehicleTypeBigRig      VehicleTypeEnum = "BigRig"
	VehicleTypeBoat        VehicleTypeEnum = "Boat"
	VehicleTypeMotorcycle  VehicleTypeEnum = "Motorcycle"
	VehicleTypeTrailer     VehicleTypeEnum = "Trailer"
	VehicleTypeOther       VehicleTypeEnum = "Other"
)

type Vendor

type Vendor struct {
	ID          string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	LocationID  string              `gorm:"not null;column:locationId" json:"locationId"`

	AccountNumber    *string            `gorm:"column:accountNumber" json:"accountNumber"`
	Address1         *string            `gorm:"column:address1" json:"address1"`
	Address2         *string            `gorm:"column:address2" json:"address2"`
	City             *string            `gorm:"column:city" json:"city"`
	ContactEmail     *string            `gorm:"column:contactEmail" json:"contactEmail"`
	ContactFirstName *string            `gorm:"column:contactFirstName" json:"contactFirstName"`
	ContactLastName  *string            `gorm:"column:contactLastName" json:"contactLastName"`
	ContactPhone     datatypes.JSON     `gorm:"column:contactPhone" json:"contactPhone"`
	Country          *VendorCountryEnum `gorm:"column:country" json:"country"`
	Name             string             `gorm:"not null;column:name" json:"name"`
	PostalCode       *string            `gorm:"column:postalCode" json:"postalCode"`
	State            *string            `gorm:"column:state" json:"state"`
	URL              *string            `gorm:"column:url" json:"url"`
}

func NewVendor

func NewVendor(buf []byte) (*Vendor, error)

NewVendor returns a new model instance from an encoded buffer

func (*Vendor) PrimaryKeys added in v0.0.4

func (m *Vendor) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*Vendor) String

func (m *Vendor) String() string

String returns a string representation as JSON for this model

func (*Vendor) TableName

func (m *Vendor) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

type VendorCountryEnum

type VendorCountryEnum string

Vendor schema

const (
	VendorCountryUS VendorCountryEnum = "US"
	VendorCountryCA VendorCountryEnum = "CA"
	VendorCountryMX VendorCountryEnum = "MX"
	VendorCountryAF VendorCountryEnum = "AF"
	VendorCountryAX VendorCountryEnum = "AX"
	VendorCountryAL VendorCountryEnum = "AL"
	VendorCountryDZ VendorCountryEnum = "DZ"
	VendorCountryAS VendorCountryEnum = "AS"
	VendorCountryAD VendorCountryEnum = "AD"
	VendorCountryAO VendorCountryEnum = "AO"
	VendorCountryAI VendorCountryEnum = "AI"
	VendorCountryAQ VendorCountryEnum = "AQ"
	VendorCountryAG VendorCountryEnum = "AG"
	VendorCountryAR VendorCountryEnum = "AR"
	VendorCountryAM VendorCountryEnum = "AM"
	VendorCountryAW VendorCountryEnum = "AW"
	VendorCountryAU VendorCountryEnum = "AU"
	VendorCountryAT VendorCountryEnum = "AT"
	VendorCountryAZ VendorCountryEnum = "AZ"
	VendorCountryBS VendorCountryEnum = "BS"
	VendorCountryBH VendorCountryEnum = "BH"
	VendorCountryBD VendorCountryEnum = "BD"
	VendorCountryBB VendorCountryEnum = "BB"
	VendorCountryBY VendorCountryEnum = "BY"
	VendorCountryBE VendorCountryEnum = "BE"
	VendorCountryBZ VendorCountryEnum = "BZ"
	VendorCountryBJ VendorCountryEnum = "BJ"
	VendorCountryBM VendorCountryEnum = "BM"
	VendorCountryBT VendorCountryEnum = "BT"
	VendorCountryBO VendorCountryEnum = "BO"
	VendorCountryBQ VendorCountryEnum = "BQ"
	VendorCountryBA VendorCountryEnum = "BA"
	VendorCountryBW VendorCountryEnum = "BW"
	VendorCountryBV VendorCountryEnum = "BV"
	VendorCountryBR VendorCountryEnum = "BR"
	VendorCountryIO VendorCountryEnum = "IO"
	VendorCountryVG VendorCountryEnum = "VG"
	VendorCountryBN VendorCountryEnum = "BN"
	VendorCountryBG VendorCountryEnum = "BG"
	VendorCountryBF VendorCountryEnum = "BF"
	VendorCountryBI VendorCountryEnum = "BI"
	VendorCountryCV VendorCountryEnum = "CV"
	VendorCountryKH VendorCountryEnum = "KH"
	VendorCountryCM VendorCountryEnum = "CM"
	VendorCountryKY VendorCountryEnum = "KY"
	VendorCountryCF VendorCountryEnum = "CF"
	VendorCountryTD VendorCountryEnum = "TD"
	VendorCountryCL VendorCountryEnum = "CL"
	VendorCountryCN VendorCountryEnum = "CN"
	VendorCountryHK VendorCountryEnum = "HK"
	VendorCountryMO VendorCountryEnum = "MO"
	VendorCountryCX VendorCountryEnum = "CX"
	VendorCountryCC VendorCountryEnum = "CC"
	VendorCountryCO VendorCountryEnum = "CO"
	VendorCountryKM VendorCountryEnum = "KM"
	VendorCountryCG VendorCountryEnum = "CG"
	VendorCountryCK VendorCountryEnum = "CK"
	VendorCountryCR VendorCountryEnum = "CR"
	VendorCountryHR VendorCountryEnum = "HR"
	VendorCountryCU VendorCountryEnum = "CU"
	VendorCountryCW VendorCountryEnum = "CW"
	VendorCountryCY VendorCountryEnum = "CY"
	VendorCountryCZ VendorCountryEnum = "CZ"
	VendorCountryCI VendorCountryEnum = "CI"
	VendorCountryKP VendorCountryEnum = "KP"
	VendorCountryCD VendorCountryEnum = "CD"
	VendorCountryDK VendorCountryEnum = "DK"
	VendorCountryDJ VendorCountryEnum = "DJ"
	VendorCountryDM VendorCountryEnum = "DM"
	VendorCountryDO VendorCountryEnum = "DO"
	VendorCountryEC VendorCountryEnum = "EC"
	VendorCountryEG VendorCountryEnum = "EG"
	VendorCountrySV VendorCountryEnum = "SV"
	VendorCountryGQ VendorCountryEnum = "GQ"
	VendorCountryER VendorCountryEnum = "ER"
	VendorCountryEE VendorCountryEnum = "EE"
	VendorCountrySZ VendorCountryEnum = "SZ"
	VendorCountryET VendorCountryEnum = "ET"
	VendorCountryFK VendorCountryEnum = "FK"
	VendorCountryFO VendorCountryEnum = "FO"
	VendorCountryFJ VendorCountryEnum = "FJ"
	VendorCountryFI VendorCountryEnum = "FI"
	VendorCountryFR VendorCountryEnum = "FR"
	VendorCountryGF VendorCountryEnum = "GF"
	VendorCountryPF VendorCountryEnum = "PF"
	VendorCountryTF VendorCountryEnum = "TF"
	VendorCountryGA VendorCountryEnum = "GA"
	VendorCountryGM VendorCountryEnum = "GM"
	VendorCountryGE VendorCountryEnum = "GE"
	VendorCountryDE VendorCountryEnum = "DE"
	VendorCountryGH VendorCountryEnum = "GH"
	VendorCountryGI VendorCountryEnum = "GI"
	VendorCountryGR VendorCountryEnum = "GR"
	VendorCountryGL VendorCountryEnum = "GL"
	VendorCountryGD VendorCountryEnum = "GD"
	VendorCountryGP VendorCountryEnum = "GP"
	VendorCountryGU VendorCountryEnum = "GU"
	VendorCountryGT VendorCountryEnum = "GT"
	VendorCountryGG VendorCountryEnum = "GG"
	VendorCountryGN VendorCountryEnum = "GN"
	VendorCountryGW VendorCountryEnum = "GW"
	VendorCountryGY VendorCountryEnum = "GY"
	VendorCountryHT VendorCountryEnum = "HT"
	VendorCountryHM VendorCountryEnum = "HM"
	VendorCountryVA VendorCountryEnum = "VA"
	VendorCountryHN VendorCountryEnum = "HN"
	VendorCountryHU VendorCountryEnum = "HU"
	VendorCountryIS VendorCountryEnum = "IS"
	VendorCountryIN VendorCountryEnum = "IN"
	VendorCountryID VendorCountryEnum = "ID"
	VendorCountryIR VendorCountryEnum = "IR"
	VendorCountryIQ VendorCountryEnum = "IQ"
	VendorCountryIE VendorCountryEnum = "IE"
	VendorCountryIM VendorCountryEnum = "IM"
	VendorCountryIL VendorCountryEnum = "IL"
	VendorCountryIT VendorCountryEnum = "IT"
	VendorCountryJM VendorCountryEnum = "JM"
	VendorCountryJP VendorCountryEnum = "JP"
	VendorCountryJE VendorCountryEnum = "JE"
	VendorCountryJO VendorCountryEnum = "JO"
	VendorCountryKZ VendorCountryEnum = "KZ"
	VendorCountryKE VendorCountryEnum = "KE"
	VendorCountryKI VendorCountryEnum = "KI"
	VendorCountryKW VendorCountryEnum = "KW"
	VendorCountryKG VendorCountryEnum = "KG"
	VendorCountryLA VendorCountryEnum = "LA"
	VendorCountryLV VendorCountryEnum = "LV"
	VendorCountryLB VendorCountryEnum = "LB"
	VendorCountryLS VendorCountryEnum = "LS"
	VendorCountryLR VendorCountryEnum = "LR"
	VendorCountryLY VendorCountryEnum = "LY"
	VendorCountryLI VendorCountryEnum = "LI"
	VendorCountryLT VendorCountryEnum = "LT"
	VendorCountryLU VendorCountryEnum = "LU"
	VendorCountryMG VendorCountryEnum = "MG"
	VendorCountryMW VendorCountryEnum = "MW"
	VendorCountryMY VendorCountryEnum = "MY"
	VendorCountryMV VendorCountryEnum = "MV"
	VendorCountryML VendorCountryEnum = "ML"
	VendorCountryMT VendorCountryEnum = "MT"
	VendorCountryMH VendorCountryEnum = "MH"
	VendorCountryMQ VendorCountryEnum = "MQ"
	VendorCountryMR VendorCountryEnum = "MR"
	VendorCountryMU VendorCountryEnum = "MU"
	VendorCountryYT VendorCountryEnum = "YT"
	VendorCountryFM VendorCountryEnum = "FM"
	VendorCountryMC VendorCountryEnum = "MC"
	VendorCountryMN VendorCountryEnum = "MN"
	VendorCountryME VendorCountryEnum = "ME"
	VendorCountryMS VendorCountryEnum = "MS"
	VendorCountryMA VendorCountryEnum = "MA"
	VendorCountryMZ VendorCountryEnum = "MZ"
	VendorCountryMM VendorCountryEnum = "MM"
	VendorCountryNA VendorCountryEnum = "NA"
	VendorCountryNR VendorCountryEnum = "NR"
	VendorCountryNP VendorCountryEnum = "NP"
	VendorCountryNL VendorCountryEnum = "NL"
	VendorCountryNC VendorCountryEnum = "NC"
	VendorCountryNZ VendorCountryEnum = "NZ"
	VendorCountryNI VendorCountryEnum = "NI"
	VendorCountryNE VendorCountryEnum = "NE"
	VendorCountryNG VendorCountryEnum = "NG"
	VendorCountryNU VendorCountryEnum = "NU"
	VendorCountryNF VendorCountryEnum = "NF"
	VendorCountryMP VendorCountryEnum = "MP"
	VendorCountryNO VendorCountryEnum = "NO"
	VendorCountryOM VendorCountryEnum = "OM"
	VendorCountryPK VendorCountryEnum = "PK"
	VendorCountryPW VendorCountryEnum = "PW"
	VendorCountryPA VendorCountryEnum = "PA"
	VendorCountryPG VendorCountryEnum = "PG"
	VendorCountryPY VendorCountryEnum = "PY"
	VendorCountryPE VendorCountryEnum = "PE"
	VendorCountryPH VendorCountryEnum = "PH"
	VendorCountryPN VendorCountryEnum = "PN"
	VendorCountryPL VendorCountryEnum = "PL"
	VendorCountryPT VendorCountryEnum = "PT"
	VendorCountryPR VendorCountryEnum = "PR"
	VendorCountryQA VendorCountryEnum = "QA"
	VendorCountryKR VendorCountryEnum = "KR"
	VendorCountryMD VendorCountryEnum = "MD"
	VendorCountryRO VendorCountryEnum = "RO"
	VendorCountryRU VendorCountryEnum = "RU"
	VendorCountryRW VendorCountryEnum = "RW"
	VendorCountryRE VendorCountryEnum = "RE"
	VendorCountryBL VendorCountryEnum = "BL"
	VendorCountrySH VendorCountryEnum = "SH"
	VendorCountryKN VendorCountryEnum = "KN"
	VendorCountryLC VendorCountryEnum = "LC"
	VendorCountryMF VendorCountryEnum = "MF"
	VendorCountryPM VendorCountryEnum = "PM"
	VendorCountryVC VendorCountryEnum = "VC"
	VendorCountryWS VendorCountryEnum = "WS"
	VendorCountrySM VendorCountryEnum = "SM"
	VendorCountryST VendorCountryEnum = "ST"
	VendorCountrySA VendorCountryEnum = "SA"
	VendorCountrySN VendorCountryEnum = "SN"
	VendorCountryRS VendorCountryEnum = "RS"
	VendorCountrySC VendorCountryEnum = "SC"
	VendorCountrySL VendorCountryEnum = "SL"
	VendorCountrySG VendorCountryEnum = "SG"
	VendorCountrySX VendorCountryEnum = "SX"
	VendorCountrySK VendorCountryEnum = "SK"
	VendorCountrySI VendorCountryEnum = "SI"
	VendorCountrySB VendorCountryEnum = "SB"
	VendorCountrySO VendorCountryEnum = "SO"
	VendorCountryZA VendorCountryEnum = "ZA"
	VendorCountryGS VendorCountryEnum = "GS"
	VendorCountrySS VendorCountryEnum = "SS"
	VendorCountryES VendorCountryEnum = "ES"
	VendorCountryLK VendorCountryEnum = "LK"
	VendorCountryPS VendorCountryEnum = "PS"
	VendorCountrySD VendorCountryEnum = "SD"
	VendorCountrySR VendorCountryEnum = "SR"
	VendorCountrySJ VendorCountryEnum = "SJ"
	VendorCountrySE VendorCountryEnum = "SE"
	VendorCountryCH VendorCountryEnum = "CH"
	VendorCountrySY VendorCountryEnum = "SY"
	VendorCountryTW VendorCountryEnum = "TW"
	VendorCountryTJ VendorCountryEnum = "TJ"
	VendorCountryTH VendorCountryEnum = "TH"
	VendorCountryMK VendorCountryEnum = "MK"
	VendorCountryTL VendorCountryEnum = "TL"
	VendorCountryTG VendorCountryEnum = "TG"
	VendorCountryTK VendorCountryEnum = "TK"
	VendorCountryTO VendorCountryEnum = "TO"
	VendorCountryTT VendorCountryEnum = "TT"
	VendorCountryTN VendorCountryEnum = "TN"
	VendorCountryTR VendorCountryEnum = "TR"
	VendorCountryTM VendorCountryEnum = "TM"
	VendorCountryTC VendorCountryEnum = "TC"
	VendorCountryTV VendorCountryEnum = "TV"
	VendorCountryUG VendorCountryEnum = "UG"
	VendorCountryUA VendorCountryEnum = "UA"
	VendorCountryAE VendorCountryEnum = "AE"
	VendorCountryGB VendorCountryEnum = "GB"
	VendorCountryTZ VendorCountryEnum = "TZ"
	VendorCountryUM VendorCountryEnum = "UM"
	VendorCountryVI VendorCountryEnum = "VI"
	VendorCountryUY VendorCountryEnum = "UY"
	VendorCountryUZ VendorCountryEnum = "UZ"
	VendorCountryVU VendorCountryEnum = "VU"
	VendorCountryVE VendorCountryEnum = "VE"
	VendorCountryVN VendorCountryEnum = "VN"
	VendorCountryWF VendorCountryEnum = "WF"
	VendorCountryEH VendorCountryEnum = "EH"
	VendorCountryYE VendorCountryEnum = "YE"
	VendorCountryZM VendorCountryEnum = "ZM"
	VendorCountryZW VendorCountryEnum = "ZW"
)

type WorkflowStatus

type WorkflowStatus struct {
	ID          string              `bson:"_id" gorm:"primaryKey;not null;column:id" json:"id"`
	CreatedDate datatypes.DateTime  `gorm:"column:createdDate;not null;column:createdDate" json:"createdDate"`
	UpdatedDate *datatypes.DateTime `gorm:"column:updatedDate;column:updatedDate" json:"updatedDate"`
	Meta        *datatypes.JSON     `gorm:"column:meta;not null;column:meta" json:"meta,omitempty"`    // the metadata about the most recent change to the row
	Metadata    *datatypes.JSON     `gorm:"column:metadata;column:metadata" json:"metadata,omitempty"` // metadata reserved for customers to control
	CompanyID   string              `gorm:"not null;column:companyId" json:"companyId"`
	LocationID  string              `gorm:"not null;column:locationId" json:"locationId"`

	ArchiveWhenInactive bool    `gorm:"not null;column:archiveWhenInactive" json:"archiveWhenInactive"`
	DaysToArchive       int64   `gorm:"not null;column:daysToArchive" json:"daysToArchive"`
	InvoiceWorkflow     bool    `gorm:"not null;column:invoiceWorkflow" json:"invoiceWorkflow"`
	Name                *string `gorm:"column:name" json:"name"`
	Position            float64 `gorm:"not null;column:position" json:"position"` // NOTE: this will be changed to an Int after the upgrade
}

WorkflowStatus schema

func NewWorkflowStatus

func NewWorkflowStatus(buf []byte) (*WorkflowStatus, error)

NewWorkflowStatus returns a new model instance from an encoded buffer

func (*WorkflowStatus) PrimaryKeys added in v0.0.4

func (m *WorkflowStatus) PrimaryKeys() []string

PrimaryKeys returns an array of the primary keys for this model

func (*WorkflowStatus) String

func (m *WorkflowStatus) String() string

String returns a string representation as JSON for this model

func (*WorkflowStatus) TableName

func (m *WorkflowStatus) TableName() string

TableName returns the name of the table for this model which GORM will use when using this model

Jump to

Keyboard shortcuts

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