models

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

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

Go to latest
Published: Oct 2, 2019 License: GPL-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CountryCollection                         = "countries" // Countries contains country names
	StatesCollection                          = "states"
	CitiesCollection                          = "cities"
	LocationWiseFareCollection                = "location_wise_fares"
	OAuthApplicationsCollection               = "oauth_applications"
	OAuthAccessTokensCollection               = "oauth_access_tokens"
	OAuthAuthorizationCodeCollection          = "oauth_access_tokens"
	OAuthRefreshTokensCollection              = "oauth_refresh_tokens"
	OAuthScopesCollection                     = "oauth_scopes"
	UserLocationLogCollection                 = "user_location_log" // User & Driver Locations
	CouponCollection                          = "coupons"
	ServiceCompaniesCollection                = "service_companies"
	ServiceProvidersCollection                = "service_providers"
	ServiceProviderLocationCollection         = "service_providers_location" //Service Provider Locations
	ServicesCollection                        = "services"
	ServiceCategoriesCollection               = "service_categories"
	ServiceTypesCollection                    = "service_types"
	ServiceVehicleTypesCollection             = "service_vehicle_types"
	CurrenciesCollection                      = "currencies"
	DocumentTypesCollection                   = "document_types"
	DocumentsCollection                       = "documents"
	UsersCollection                           = "users"
	UserRoleGroups                            = "user_role_groups"
	UserRolesCollection                       = "user_roles"
	UserEmailsCollection                      = "user_emails"
	UserPhoneNumbersCollection                = "user_mobile_numbers"
	PictureUploadsCollection                  = "picture_uploads"
	ReviewsCollection                         = "reviews"
	StoreReviewsCollection                    = "store_reviews"
	AdvertisementBannersCollection            = "advertisement_banners"
	VehicleBrandsCollection                   = "vehicle_brands"
	HelpDetailsCollection                     = "help_details"
	HelpCategoriesCollection                  = "help_categories"
	VehicleModelsCollection                   = "vehicle_models"
	VehicleMakeCollection                     = "vehicle_make"
	FAQsCategoryCollection                    = "faqs_categories"
	FAQsCollection                            = "faqs"
	GeoFenceLocationCollection                = "geo_fenced_locations"
	GeoFenceRestrictedAreaCollection          = "geo_fenced_restricted_areas"
	ProductsCollection                        = "products"
	ProductCategoriesCollection               = "product_categories"
	JobsCollection                            = "jobs"
	EnterpriseAccountsCollection              = "enterprise_accounts"
	OrdersCollection                          = "orders"
	DeliveryChargesCollection                 = "delivery_charges"
	BankAccountsCollection                    = "bank_accounts"
	SubscriptionsCollection                   = "subscriptions"
	WalletsCollection                         = "wallets"
	WalletTransactionsCollection              = "transactions"
	OrderNotesCollection                      = "order_notes"
	InvoiceCollection                         = "invoices"
	BINDataCollection                         = "card_bin_data"
	MerchantPromotionsCollection              = "merchant_promotions"
	UserAuditLogsCollection                   = "users_audit_logs"
	ChangePasswordRequestsCollection          = "users_change_password_requests"
	PaymentsCollection                        = "payments"
	MerchantsCollection                       = "merchants"
	UserRewardsTransactionsCollection         = "rewards_transactions"
	InstallationsCollection                   = "installations"
	WebhooksCollection                        = "webhooks"
	WebhookLogsCollection                     = "webhooks_logs"
	SettlementsCollection                     = "settlements"
	UPIVPACollection                          = "upi_vpas"
	NotificationsCollection                   = "notifications"
	EmailTemplateCollection                   = "email_templates"
	SMSTemplateCollection                     = "sms_templates"
	TokensCollection                          = "encrypted_tokens"
	StoresCollection                          = "stores"
	StoreVehicleTypesCollection               = "store_vehicle_types"
	UserPaymentMethodsCollection              = "user_payment_methods"
	PaymentMethodsCollection                  = "payment_methods"
	CardsCollection                           = "cards"
	CampaignsCollection                       = "campaigns"
	AlertsCollection                          = "alerts"
	ChatCollection                            = "chat"
	ChatMessageCollection                     = "chat_messages"
	RentalPackageCollection                   = "rental_packages"
	BusinessTripReasonCollection              = "business_trip_reasons"
	DeliveryVehicleTypeCollection             = "delivery_vehicle_types"
	GeneralLabelCollection                    = "general_labels"
	FoodDeliveryLabelCollection               = "food_delivery_labels"
	GroceryDeliveryLabelCollection            = "grocery_delivery_label"
	WineDeliveryLabelCollection               = "wine_delivery_labels"
	OrderStatusUtilityCollection              = "order_status_utilities"
	PackageTypeCollection                     = "package_types"
	PageCollection                            = "pages"
	AdminReportCollection                     = "admin_reports"
	StorePaymentReportCollection              = "store_payment_reports"
	ProviderPaymentReportCollection           = "provider_payments"
	CancelledReportCollection                 = "cancelled_reports"
	UserWalletReportCollection                = "user_wallets"
	ProviderLogReportCollection               = "provider_logs"
	JobRequestAcceptanceReportCollection      = "job_request_acceptances"
	JobTimeVarianceCollection                 = "job_time_variances"
	RideProfileTypeCollection                 = "ride_profile_types"
	AirportSurchargeCollection                = "airport_surcharges"
	VisitLocationCollection                   = "visit_locations"
	NewsletterSubscribersCollection           = "newsletter_subscribers"
	MarketSettingsCollection                  = "market_settings"
	SEOSettingsCollection                     = "seo_settings"
	AppVersionsCollection                     = "app_versions"
	DeliveryChargeUtilitiesCollection         = "delivery_charge_utility"
	ServiceProviderVehiclesCollection         = "service_provider_vehicles"
	EnterpriseAccountPaymentReportsCollection = "enterprise_account_payment_reports"
	CancelReasonCollection                    = "cancel_reason"
	JobLaterBookingCollection                 = "job_later_bookings"
	PushNotificationsCollection               = "push_notifications"
	ProviderWalletTransactionsCollection      = "provider_wallet_transactions"
	WithdrawalsCollection                     = "withdrawals"
	RestaurantsCollection                     = "restaurant"
	RequiredDocumentsCollection               = "required_documents"
	ProductAttributeTermCollection            = "product_attribute_terms"
	ProductReviewCollection                   = "product_review_collections"
	ProductShippingClassCollection            = "product_shipping_classes"
	ProductTagCollection                      = "product_tags"
	ProductVariationCollection                = "product_variations"
	ProductDownloadCollection                 = "product_downloads"

	UserRoleCollection            = "user_roles"
	UserRoleGroupCollection       = "user_roles"
	UserRolePermissionsCollection = "user_role_permissions"
	PasswordTokenCollection       = "password_tokens"
	EmergencyContactsCollection   = "emergency_contacts"
	AddressesCollection           = "addresses"
	CartCollection                = "carts"
	ProductBrandCollection        = "product_brands"
	ProductCollectionCollection   = "product_collections"
	CustomersCollection           = "customers"
	BlogsCollection               = "blogs"
	BlogPostsCollection           = "blog_posts"
	StoreLocationsCollection      = "store_locations"
	ProductMetadataCollection     = "product_metadatas"
	//Default cache time
	DefaultRedisCacheTime = time.Hour * 2
)

collections

Variables

View Source
var AllEnterpriseAccountType = []EnterpriseAccountType{
	EnterpriseAccountTypeBusiness,
}
View Source
var AllStoreVehicleTypeLocation = []StoreVehicleTypeLocation{
	StoreVehicleTypeLocationAll,
}

Functions

func DeleteAccessToken

func DeleteAccessToken(token string) (bool, error)

DeleteAccessTokenByID deletes the access tokens by id.

func DeleteAccessTokenByFilter

func DeleteAccessTokenByFilter(filter bson.D) (bool, error)

DeleteAccessTokenByFilter deletes the access tokens by filter.

func DeleteAccessTokenByID

func DeleteAccessTokenByID(ID string) (bool, error)

DeleteAccessTokenByID deletes the access tokens by id.

func DeleteAccessTokensByFilter

func DeleteAccessTokensByFilter(filter bson.D) (bool, error)

DeleteAccessTokensByFilter deletes refresh tokens by filtering.

func DeleteAddressByID

func DeleteAddressByID(ID string) (bool, error)

DeleteAddressByID deletes the address by ID.

func DeleteAdvertisementBannerByID

func DeleteAdvertisementBannerByID(ID string) (bool, error)

DeleteAdvertisementBannerByID deletes the advertisement banners by ID.

func DeleteAirportSurchargeByID

func DeleteAirportSurchargeByID(ID string) (bool, error)

DeleteAirportSurchargeByID deletes airport surcharge.

func DeleteAppVersionByID

func DeleteAppVersionByID(ID string) (bool, error)

DeleteAppVersionByID deletes app version by id.

func DeleteAuthorizationCodeByID

func DeleteAuthorizationCodeByID(ID string) (bool, error)

DeleteRefreshTokenByID deletes refresh tokens by id.

func DeleteBankAccountByID

func DeleteBankAccountByID(ID string) (bool, error)

DeleteBankAccountByID deletes bank account by id.

func DeleteBusinessTripReasonByID

func DeleteBusinessTripReasonByID(ID string) (bool, error)

DeleteBusinessTripReasonByID deletes the business trip reason by id.

func DeleteCampaignByID

func DeleteCampaignByID(ID string) (bool, error)

DeleteCampaignByID deletes the campaign by id.

func DeleteCancelReasonByID

func DeleteCancelReasonByID(ID string) (bool, error)

DeleteCancelReasonByID deletes the cancel reason by id.

func DeleteCardByID

func DeleteCardByID(ID string) (bool, error)

DeleteCardByID deletes the card by id.

func DeleteCartByID

func DeleteCartByID(ID string) (bool, error)

DeleteCartByID deletes the carts by ID.

func DeleteChatByID

func DeleteChatByID(ID string) (bool, error)

DeleteChatByID deletes the chat by id.

func DeleteChatMessageByID

func DeleteChatMessageByID(ID string) (bool, error)

DeleteChatMessageByID deletes the chat message by id.

func DeleteCity

func DeleteCity(ID string) (bool, error)

DeleteCity deletes the city by id.

func DeleteCountry

func DeleteCountry(ID string) (bool, error)

DeleteCountry deletes the country.

func DeleteCouponByID

func DeleteCouponByID(ID string) (bool, error)

DeleteCouponByID deletes coupon by id.

func DeleteCurrencyByID

func DeleteCurrencyByID(ID string) (bool, error)

DeleteCurrencyByID deletes currency by id.

func DeleteCustomerByID

func DeleteCustomerByID(ID string) (bool, error)

DeleteCustomerByID deletes customer by id.

func DeleteDeclineAlertByID

func DeleteDeclineAlertByID(ID string) (bool, error)

DeleteDeclineAlertByID deletes the decline alert by id.

func DeleteDeliveryChargeByID

func DeleteDeliveryChargeByID(ID string) (bool, error)

DeleteDeliveryChargeByID deletes the delivery charge using id.

func DeleteDeliveryChargesUtilityByID

func DeleteDeliveryChargesUtilityByID(ID string) (bool, error)

DeleteDeliveryChargesUtilityByID deletes delivery charge utility by id.

func DeleteDeliveryVehicleTypeByID

func DeleteDeliveryVehicleTypeByID(ID string) (bool, error)

DeleteDeliveryVehicleTypeByID deletes the delivery vehicle type by id.

func DeleteDocumentByID

func DeleteDocumentByID(ID string) (bool, error)

DeleteDocumentByID deletes the document by id.

func DeleteEmailTemplateByID

func DeleteEmailTemplateByID(ID string) (bool, error)

DeleteEmailTemplateByID deletes email templates by id.

func DeleteEmergencyContactByID

func DeleteEmergencyContactByID(ID string) (bool, error)

DeleteEmergencyContactByID deletes the emergency contact by ID.

func DeleteEnterpriseAccountByID

func DeleteEnterpriseAccountByID(ID string) (bool, error)

DeleteEnterpriseAccountByID deletes the enterprise account by id.

func DeleteFAQByID

func DeleteFAQByID(ID string) (bool, error)

DeleteFAQByID deletes the faq by id.

func DeleteFAQCategoryByID

func DeleteFAQCategoryByID(ID string) (bool, error)

DeleteFAQCategoryByID deletes the faq category by id.

func DeleteFoodDeliveryLabelByID

func DeleteFoodDeliveryLabelByID(ID string) (bool, error)

DeleteFoodDeliveryLabelByID deletes food delivery label.

func DeleteGeneralLabelByID

func DeleteGeneralLabelByID(ID string) (bool, error)

DeleteGeneralLabelByID deletes general label by id.

func DeleteGeoFenceLocationByID

func DeleteGeoFenceLocationByID(ID string) (bool, error)

DeleteGeoFenceLocationByID deletes geo fence location by id.

func DeleteGeoFenceRestrictedAreaByID

func DeleteGeoFenceRestrictedAreaByID(ID string) (bool, error)

DeleteGeoFenceRestrictedAreaByID deletes geo fence restricted area.

func DeleteGroceryDeliveryLabelByID

func DeleteGroceryDeliveryLabelByID(ID string) (bool, error)

DeleteGroceryDeliveryLabelByID deletes grocery delivery label by id.

func DeleteHelpCategoryByID

func DeleteHelpCategoryByID(ID string) (bool, error)

DeleteHelpCategoryByID deletes the help categories by id.

func DeleteHelpDetailByID

func DeleteHelpDetailByID(ID string) (bool, error)

DeleteHelpDetailByID deletes the help details by id.

func DeleteInstallationByID

func DeleteInstallationByID(ID string) (bool, error)

DeleteInstallationByID deletes installation by id.

func DeleteLocationWiseFareByID

func DeleteLocationWiseFareByID(ID string) (bool, error)

DeleteLocationWiseFareByID deletes location wise fare by id.

func DeleteMerchantByID

func DeleteMerchantByID(ID string) (bool, error)

DeleteMerchantByID deletes the merchant by id.

func DeleteNotificationByID

func DeleteNotificationByID(ID string) (bool, error)

DeleteNotificationByID deletes notifications by id.

func DeleteOAuthApplicationByID

func DeleteOAuthApplicationByID(ID string) (bool, error)

DeleteOAuthApplicationByID deletes oauth application.

func DeleteOrderByID

func DeleteOrderByID(ID string) (bool, error)

DeleteOrderByID deletes orders by id.

func DeleteOrderNoteByID

func DeleteOrderNoteByID(ID string) (bool, error)

DeleteOrderNoteByID deletes order note by id.

func DeleteOrderStatusUtilityByID

func DeleteOrderStatusUtilityByID(ID string) (bool, error)

DeleteOrderStatusUtilityByID deletes order status utility by id.

func DeletePackageTypeByID

func DeletePackageTypeByID(ID string) (bool, error)

DeletePackageTypeByID deletes package type by id.

func DeletePageByID

func DeletePageByID(ID string) (bool, error)

DeletePageByID deletes page by id.

func DeleteProductAttributeByID

func DeleteProductAttributeByID(ID string) (bool, error)

DeleteProductAttributeByID deletes product attribute by id.

func DeleteProductAttributeTermByID

func DeleteProductAttributeTermByID(ID string) (bool, error)

DeleteProductAttributeTermByID deletes product by id.

func DeleteProductBrandByID

func DeleteProductBrandByID(ID string) (bool, error)

DeleteProductBrandByID deletes the advertisement banners by ID.

func DeleteProductByID

func DeleteProductByID(ID string) (bool, error)

DeleteProductByID deletes product by id.

func DeleteProductCategoryByID

func DeleteProductCategoryByID(ID string) (bool, error)

DeleteProductCategoryByID deletes product category by id.

func DeleteProductCollectionByID

func DeleteProductCollectionByID(ID string) (bool, error)

DeleteProductCollectionByID deletes the advertisement banners by ID.

func DeleteProductDownloadByID

func DeleteProductDownloadByID(ID string) (bool, error)

DeleteProductDownloadByID deletes product download by id.

func DeleteProductImageByID

func DeleteProductImageByID(ID string) (bool, error)

DeleteProductImageByID deletes product image by id.

func DeleteProductMetadataByID

func DeleteProductMetadataByID(ID string) (bool, error)

DeleteProductMetadataByID deletes productMetadata by id.

func DeleteProductReviewByID

func DeleteProductReviewByID(ID string) (bool, error)

DeleteProductReviewByID deletes product review by id.

func DeleteProductShippingClassByID

func DeleteProductShippingClassByID(ID string) (bool, error)

DeleteProductShippingClassByID deletes product shipping class by id.

func DeleteProductTagByID

func DeleteProductTagByID(ID string) (bool, error)

DeleteProductTagByID deletes product tag by id.

func DeleteProductVariationByID

func DeleteProductVariationByID(ID string) (bool, error)

DeleteProductVariationByID deletes product variation by id.

func DeleteRefreshTokenByID

func DeleteRefreshTokenByID(ID string) (bool, error)

DeleteRefreshTokenByID deletes refresh tokens by id.

func DeleteRefreshTokensByFilter

func DeleteRefreshTokensByFilter(filter bson.D) (bool, error)

DeleteRefreshTokenByFilter deletes refresh tokens by filtering.

func DeleteRentalPackageByID

func DeleteRentalPackageByID(ID string) (bool, error)

DeleteRentalPackageByID deletes rental package by id.

func DeleteRequiredDocumentByID

func DeleteRequiredDocumentByID(ID string) (bool, error)

DeleteRequiredDocumentByID deletes requiredDocument by id.

func DeleteRestaurantByID

func DeleteRestaurantByID(ID string) (bool, error)

DeleteRestaurantByID deletes the restaurant by id.

func DeleteReviewByID

func DeleteReviewByID(ID string) (bool, error)

DeleteReviewByID deletes reviews by id.

func DeleteRideProfileTypeByID

func DeleteRideProfileTypeByID(ID string) (bool, error)

DeleteRideProfileTypeByID deletes ride profile type by id.

func DeleteSMSTemplateByID

func DeleteSMSTemplateByID(ID string) (bool, error)

DeleteSMSTemplateByID deletes sms template by id.

func DeleteServiceByID

func DeleteServiceByID(ID string) (bool, error)

DeleteServiceByID deletes service by id.

func DeleteServiceCompanyByID

func DeleteServiceCompanyByID(ID string) (bool, error)

DeleteServiceCompanyByID deletes the company by id.

func DeleteServiceProviderByID

func DeleteServiceProviderByID(ID string) (bool, error)

DeleteServiceProviderByID deletes service provider by id.

func DeleteServiceProviderLocationByID

func DeleteServiceProviderLocationByID(ID string) (bool, error)

DeleteServiceProviderLocationByID deletes provider location.

func DeleteServiceProviderVehicleByID

func DeleteServiceProviderVehicleByID(ID string) (bool, error)

DeleteServiceProviderVehicleByID deletes service provider vehicle.

func DeleteServiceSubCategoryByID

func DeleteServiceSubCategoryByID(ID string) (bool, error)

DeleteServiceSubCategoryByID deletes service sub category.

func DeleteServiceTypeByID

func DeleteServiceTypeByID(ID string) (bool, error)

DeleteServiceTypeByID deletes service type by id.

func DeleteServiceVehicleTypeByID

func DeleteServiceVehicleTypeByID(ID string) (bool, error)

DeleteServiceVehicleTypeByID deletes service vehicle type.

func DeleteState

func DeleteState(ID string) (bool, error)

DeleteState deletes the state.

func DeleteStoreByID

func DeleteStoreByID(ID string) (bool, error)

DeleteStoreByID deletes store by id.

func DeleteStoreLocationByID

func DeleteStoreLocationByID(ID string) (bool, error)

DeleteStoreLocationByID deletes store location by id.

func DeleteStoreReviewByID

func DeleteStoreReviewByID(ID string) (bool, error)

DeleteStoreReviewByID deletes store reviews by id.

func DeleteStoreVehicleTypeByID

func DeleteStoreVehicleTypeByID(ID string) (bool, error)

DeleteStoreVehicleTypeByID deletes store vehicle type by id.

func DeleteSubscriptionByID

func DeleteSubscriptionByID(ID string) (bool, error)

DeleteSubscriptionByID deletes subscription by id.

func DeleteUserByID

func DeleteUserByID(ID string) (bool, error)

DeleteUserByID deletes user by id.

func DeleteUserLocationByID

func DeleteUserLocationByID(ID string) (bool, error)

DeleteUserLocationByID deletes user location by id.

func DeleteUserPaymentMethodByID

func DeleteUserPaymentMethodByID(ID string) (bool, error)

DeleteUserPaymentMethodByID deletes user payment method by id.

func DeleteUserRoleByID

func DeleteUserRoleByID(ID string) (bool, error)

DeleteUserRoleByID deletes user role by id.

func DeleteUserRoleGroupByID

func DeleteUserRoleGroupByID(ID string) (bool, error)

DeleteUserRoleGroupByID deletes user role group by id.

func DeleteUserRolePermissionByID

func DeleteUserRolePermissionByID(ID string) (bool, error)

DeleteUserRolePermissionByID deletes user role Permissions by id.

func DeleteVehicleMakeByID

func DeleteVehicleMakeByID(ID string) (bool, error)

DeleteVehicleMakeByID deletes vehicle make by id.

func DeleteVehicleModelByID

func DeleteVehicleModelByID(ID string) (bool, error)

DeleteVehicleModelByID deletes vehicle model by id.

func DeleteVisitLocationByID

func DeleteVisitLocationByID(ID string) (bool, error)

DeleteVisitLocationByID deletes visit location by id.

func DeleteWalletByID

func DeleteWalletByID(ID string) (bool, error)

DeleteWalletByID deletes wallet by id.

func DeleteWebhookByID

func DeleteWebhookByID(ID string) (bool, error)

DeleteWebhookByID deletes webhook by id.

func DeleteWineDeliveryLabelByID

func DeleteWineDeliveryLabelByID(ID string) (bool, error)

DeleteWineDeliveryLabelByID deletes wine delivery label by id.

func FromCursor

func FromCursor(value string) (string, error)

FromCursor converts opaque cursor to a string

func GetCoreServiceScopes

func GetCoreServiceScopes() []string

func GetMergedUserPermissions

func GetMergedUserPermissions(userId string) *[]string

func GetMergedUserRoles

func GetMergedUserRoles(userId string) *[]*UserRole

func GetRoleGroupRoles

func GetRoleGroupRoles(roleGroupName string) *[]*UserRole

GetRoleGroupRoles returns role group roles.

func GetUserRoleGroupsByUserID

func GetUserRoleGroupsByUserID(userId string) *[]*UserRoleGroup

GetUserRoleGroupsByUserID

func GetUserRoles

func GetUserRoles(userID string) (userRoles *[]*UserRole)

GetUserRoles returns user roles.

func MarshalID

func MarshalID(id primitive.ObjectID) graphql.Marshaler

Lets redefine the base ID type to use object id from mongodb library

func MarshalTimestamp

func MarshalTimestamp(t time.Time) graphql.Marshaler

func SendEmail

func SendEmail(from string, to string, templateID string, language string, data interface{}, attachments []string) error

SendEmail sends email via smtp, attachments passed here are uploaded (already present) in Google Cloud Storage

func ToCursor

func ToCursor(value string) string

ToCursor converts string to a opaque cursor

func UnmarshalID

func UnmarshalID(v interface{}) (primitive.ObjectID, error)

And the same for the unmarshal

func UnmarshalTimestamp

func UnmarshalTimestamp(v interface{}) (time.Time, error)

Types

type AccessToken

type AccessToken struct {
	ID               primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt        time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt        *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt        time.Time          `json:"updatedAt" bson:"updatedAt"`
	ExpiresAt        time.Time          `json:"expiresAt" bson:"expiresAt"`
	AccessToken      string             `json:"accessToken" bson:"accessToken"`
	TokenType        string             `json:"tokenType" bson:"tokenType"`
	RefreshToken     *RefreshToken      `json:"refreshToken" bson:"refreshToken,omitempty"`
	ExpiresIn        int                `json:"expiresIn" bson:"expiresIn"`
	AuthenticationID string             `json:"authenticationId" bson:"authenticationId"`
	Authentication   string             `json:"authentication" bson:"authentication"`
	ClientID         string             `json:"clientId" bson:"clientId"`
	UserID           string             `json:"userId" bson:"userId"`
	Scope            string             `json:"scope" bson:"scope"`
	Metadata         interface{}        `json:"metadata" bson:"metadata"` //User Device, Client, Grant Type, IP Address etc.,
}

AccessToken represents access token.

func CreateAccessToken

func CreateAccessToken(accessToken *AccessToken) (*AccessToken, error)

CreateAccessToken creates new access tokens.

func GetAccessTokenByFilter

func GetAccessTokenByFilter(filter bson.D) (*AccessToken, error)

GetAccessTokenByFilter gives requested access tokens by id.

func GetAccessTokenByID

func GetAccessTokenByID(ID string) (*AccessToken, error)

GetAccessTokenByID gives requested access tokens by id.

func GetAccessTokens

func GetAccessTokens(filter bson.D, limit int, after *string, before *string, first *int, last *int) (accessTokens []*AccessToken, totalCount int64, hasPrevious, hasNext bool, err error)

GetAccessTokens gives a list of access tokens.

func NewOAuthAccessToken

func NewOAuthAccessToken(client *OAuthApplication, user *User, expiresIn int, scope string) *AccessToken

NewOauthAccessToken creates new OauthAccessToken instance

func UpdateAccessToken

func UpdateAccessToken(accessToken *AccessToken) (*AccessToken, error)

UpdateAccessToken updates the access tokens.

func (*AccessToken) MarshalBinary

func (accessToken *AccessToken) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*AccessToken) UnmarshalBinary

func (accessToken *AccessToken) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type ActionType

type ActionType string
const (
	Created     ActionType = "created"
	Updated     ActionType = "updated"
	Deleted     ActionType = "deleted"
	Blocked     ActionType = "blocked"
	Unblocked   ActionType = "unblocked"
	Accepted    ActionType = "accepted"
	Declined    ActionType = "declined"
	Delivered   ActionType = "delivered"
	Closed      ActionType = "closed"
	LoggedIn    ActionType = "logged in"
	LoggedOut   ActionType = "logged out"
	Activated   ActionType = "activated"
	Deactivated ActionType = "deactivated"
	Cancelled   ActionType = "cancelled"
	Requested   ActionType = "requested"
	Verified    ActionType = "verified"
	Assigned    ActionType = "assigned"
	Unassigned  ActionType = "unassigned"
	Reset       ActionType = "reset"
)

type AddAddressInput

type AddAddressInput struct {
	Name               string  `json:"name"`
	FirstName          string  `json:"firstName"`
	LastName           string  `json:"lastName"`
	CompanyName        *string `json:"companyName"`
	AddressDescription string  `json:"addressDescription"`
	City               string  `json:"city"`
	State              string  `json:"state"`
	Country            string  `json:"country"`
	PostCode           int     `json:"postCode"`
	Latitude           float64 `json:"latitude"`
	Longitute          float64 `json:"longitute"`
}

type AddAirportSurchargeInput

type AddAirportSurchargeInput struct {
	AirportLocation  string `json:"airportLocation"`
	PickUpSurcharge  string `json:"pickUpSurcharge"`
	DropOffSurcharge string `json:"dropOffSurcharge"`
	VehicleType      string `json:"vehicleType"`
	IsActive         bool   `json:"isActive"`
}

type AddAppVersionInput

type AddAppVersionInput struct {
	MinimumVersion string `json:"minimumVersion"`
	LatestVersion  string `json:"latestVersion"`
	DownloadURL    string `json:"downloadUrl"`
	Channel        string `json:"channel"`
}

type AddBankDetailsInput

type AddBankDetailsInput struct {
	Email              string  `json:"email"`
	AccountHolderName  string  `json:"accountHolderName"`
	AccountNumber      int     `json:"accountNumber"`
	BankName           string  `json:"bankName"`
	BankLocation       string  `json:"bankLocation"`
	BankCountry        string  `json:"bankCountry"`
	SwiftCode          string  `json:"swiftCode"`
	IfscCode           string  `json:"ifscCode"`
	Metadata           *string `json:"metadata"`
	Country            string  `json:"country"`
	Currency           string  `json:"currency"`
	DefaultForCurrency bool    `json:"defaultForCurrency"`
	Fingerprint        string  `json:"fingerprint"`
	RoutingNumber      string  `json:"routingNumber"`
}

type AddBannerInput

type AddBannerInput struct {
	BannerName      string     `json:"bannerName"`
	BannerImage     string     `json:"bannerImage"`
	DisplayOrder    int        `json:"displayOrder"`
	RedirectURL     string     `json:"redirectURL"`
	TimePeriod      string     `json:"timePeriod"`
	AddedDate       time.Time  `json:"addedDate"`
	TotalImpression string     `json:"totalImpression"`
	UsedImpression  string     `json:"usedImpression"`
	Validity        Validity   `json:"validity"`
	ClickCount      ClickCount `json:"clickCount"`
	IsActive        bool       `json:"isActive"`
}

type AddBusinessTripReasonInput

type AddBusinessTripReasonInput struct {
	TripReason       string `json:"tripReason"`
	ProfileShortName string `json:"profileShortName"`
	OrganizationType string `json:"organizationType"`
	ProfileTitle     string `json:"profileTitle"`
	TitleDescription string `json:"titleDescription"`
	Reason           string `json:"reason"`
	IsActive         bool   `json:"isActive"`
}

type AddCancelReasonInput

type AddCancelReasonInput struct {
	Reason      string `json:"reason"`
	ServiceType string `json:"serviceType"`
	Order       string `json:"order"`
	IsActive    bool   `json:"isActive"`
}

type AddCityInput

type AddCityInput struct {
	CountryName string `json:"countryName"`
	CountryCode string `json:"countryCode"`
	StateName   string `json:"stateName"`
	StateCode   string `json:"stateCode"`
	CityName    string `json:"cityName"`
	IsActive    bool   `json:"isActive"`
}

type AddCountryInput

type AddCountryInput struct {
	CountryName     string        `json:"countryName"`
	Code            string        `json:"code"`
	PhoneCode       string        `json:"phoneCode"`
	DistanceUnit    DistanceUnits `json:"distanceUnit"`
	EmergencyNumber string        `json:"emergencyNumber"`
	Tax             string        `json:"tax"`
	IsActive        bool          `json:"isActive"`
}

type AddCouponInput

type AddCouponInput struct {
	Code           string           `json:"code"`
	Description    string           `json:"description"`
	DiscountAmount float64          `json:"discountAmount"`
	DiscountType   string           `json:"discountType"`
	Validity       string           `json:"validity"`
	ValidityStart  time.Time        `json:"validityStart"`
	ValidityExpire time.Time        `json:"validityExpire"`
	UsageLimit     int              `json:"usageLimit"`
	UsedLimit      int              `json:"usedLimit"`
	Type           CouponType       `json:"type"`
	ServiceType    CouponSystemType `json:"serviceType"`
	IsActive       bool             `json:"isActive"`
}

type AddCurrencyInput

type AddCurrencyInput struct {
	Country         string `json:"country"`
	Name            string `json:"name"`
	CurrencyCode    string `json:"currencyCode"`
	Ratio           string `json:"ratio"`
	ThresholdAmount string `json:"thresholdAmount"`
	Symbol          string `json:"symbol"`
	IsDefault       bool   `json:"isDefault"`
}

type AddCustomerInput

type AddCustomerInput struct {
	Email            string         `json:"email"`
	FirstName        string         `json:"firstName"`
	LastName         string         `json:"lastName"`
	Role             string         `json:"role"`
	Username         string         `json:"username"`
	IsPayingCustomer bool           `json:"isPayingCustomer"`
	AvatarURL        string         `json:"avatarURL"`
	Shipping         *ShippingInput `json:"shipping"`
	Billing          *BillingInput  `json:"billing"`
}

type AddDeliveryChargeInput

type AddDeliveryChargeInput struct {
	LocationName                    string `json:"locationName"`
	OrderPrice                      int    `json:"orderPrice"`
	OrderDeliveryChargesAboveAmount int    `json:"orderDeliveryChargesAboveAmount"`
	OrderDeliveryChargesBelowAmount int    `json:"orderDeliveryChargesBelowAmount"`
	FreeOrderDeliveryCharges        int    `json:"freeOrderDeliveryCharges"`
	FreeDeliveryRadius              int    `json:"freeDeliveryRadius"`
	OrderTotal                      int    `json:"orderTotal"`
	IsActive                        bool   `json:"isActive"`
}

type AddDeliveryChargesUtilityInput

type AddDeliveryChargesUtilityInput struct {
	Location                        string `json:"location"`
	OrderPrice                      int    `json:"orderPrice"`
	OrderDeliveryChargesAboveAmout  int    `json:"orderDeliveryChargesAboveAmout"`
	OrderDeliveryChargesBelowAmount int    `json:"orderDeliveryChargesBelowAmount"`
	FreeDeliveryForOrderAmountAbove int    `json:"freeDeliveryForOrderAmountAbove"`
	FreeDeliveryRadius              int    `json:"freeDeliveryRadius"`
}

type AddDeliveryVehicleTypeInput

type AddDeliveryVehicleTypeInput struct {
	VehicleType                     string  `json:"vehicleType"`
	Location                        string  `json:"location"`
	DeliveryChargeForCompletedOrder float64 `json:"deliveryChargeForCompletedOrder"`
	DeliveryChargeForCancelledOrder float64 `json:"deliveryChargeForCancelledOrder"`
	DeliveryRadius                  float64 `json:"deliveryRadius"`
	Order                           int     `json:"order"`
	IsActive                        bool    `json:"isActive"`
}

type AddDocumentInput

type AddDocumentInput struct {
	ExpiryDate   string               `json:"expiryDate"`
	Name         string               `json:"name"`
	URL          string               `json:"url"`
	BelongsTo    string               `json:"belongsTo"`
	UploaderType DocumentUploaderType `json:"uploaderType"`
	IsActive     bool                 `json:"isActive"`
}

type AddEmailTemplateInput

type AddEmailTemplateInput struct {
	Subject    string `json:"subject"`
	Purpose    string `json:"purpose"`
	From       string `json:"from"`
	TextBody   string `json:"textBody"`
	HTMLBody   string `json:"htmlBody"`
	Language   string `json:"language"`
	TemplateID string `json:"templateId"`
}

type AddEmergencyContactInput

type AddEmergencyContactInput struct {
	Name     string `json:"name"`
	MobileNo int    `json:"mobileNo"`
	EmailID  string `json:"emailID"`
}

type AddEnterpriseAccountInput

type AddEnterpriseAccountInput struct {
	OrganizationName string           `json:"organizationName"`
	OrganizationType string           `json:"organizationType"`
	PaymentMethod    string           `json:"paymentMethod"`
	Email            string           `json:"email"`
	Country          string           `json:"country"`
	State            string           `json:"state"`
	City             string           `json:"city"`
	Address          *AddAddressInput `json:"address"`
	ZipCode          string           `json:"zipCode"`
	Language         string           `json:"language"`
	PaymentBy        PaymentBy        `json:"paymentBy"`
	Phone            string           `json:"phone"`
	IsActive         bool             `json:"isActive"`
}

type AddFAQCategoryInput

type AddFAQCategoryInput struct {
	IsActive     bool   `json:"isActive"`
	DisplayOrder int    `json:"displayOrder"`
	Label        string `json:"label"`
}

type AddFAQInput

type AddFAQInput struct {
	Category     string `json:"category"`
	IsActive     bool   `json:"isActive"`
	DisplayOrder int    `json:"displayOrder"`
	Question     string `json:"question"`
	Answer       string `json:"answer"`
}

type AddFoodDeliveryLabelInput

type AddFoodDeliveryLabelInput struct {
	Code                   string `json:"code"`
	ValueInEnglishLanguage string `json:"valueInEnglishLanguage"`
	LanguageLabel          string `json:"languageLabel"`
	IsActive               bool   `json:"isActive"`
}

type AddGeneralLabelInput

type AddGeneralLabelInput struct {
	Code                   string `json:"code"`
	ValueInEnglishLanguage string `json:"valueInEnglishLanguage"`
	LanguageLabel          string `json:"languageLabel"`
	IsActive               bool   `json:"isActive"`
}

type AddGeoFenceLocationInput

type AddGeoFenceLocationInput struct {
	Name         string `json:"name"`
	Country      string `json:"country"`
	LocationFor  string `json:"locationFor"`
	LocationType string `json:"LocationType"`
	IsActive     bool   `json:"IsActive"`
	GeoJSON      string `json:"GeoJSON"`
}

type AddGeoFenceRestrictedAreaInput

type AddGeoFenceRestrictedAreaInput struct {
	Address         string       `json:"address"`
	Area            string       `json:"area"`
	IsActive        bool         `json:"isActive"`
	GeoLocationArea string       `json:"geoLocationArea"`
	RestrictArea    RestrictArea `json:"restrictArea"`
	RestrictType    RestrictType `json:"restrictType"`
}

type AddGroceryDeliveryLabelInput

type AddGroceryDeliveryLabelInput struct {
	Code                   string `json:"code"`
	ValueInEnglishLanguage string `json:"valueInEnglishLanguage"`
	LanguageLabel          string `json:"languageLabel"`
	IsActive               bool   `json:"isActive"`
}

type AddHelpCategoryInput

type AddHelpCategoryInput struct {
	IsActive    bool            `json:"isActive"`
	Order       string          `json:"order"`
	Title       string          `json:"title"`
	CategoryFor HelpCategoryFor `json:"categoryFor"`
}

type AddHelpDetailInput

type AddHelpDetailInput struct {
	Category HelpDetailCategory `json:"category"`
	IsActive bool               `json:"isActive"`
	Order    string             `json:"order"`
	Question string             `json:"question"`
	Answer   string             `json:"answer"`
}

type AddLocationWiseFareInput

type AddLocationWiseFareInput struct {
	SourceLocation      string `json:"sourceLocation"`
	DestinationLocation string `json:"destinationLocation"`
	FlatFare            string `json:"flatFare"`
	VehicleType         string `json:"vehicleType"`
	IsActive            bool   `json:"isActive"`
}

type AddManageDocumentInput

type AddManageDocumentInput struct {
	DocumentFor  DocumentFor `json:"documentFor"`
	Country      string      `json:"country"`
	ExpireOnDate bool        `json:"expireOnDate"`
	DocumentName string      `json:"documentName"`
	IsActive     bool        `json:"isActive"`
}

type AddOAuthApplicationInput

type AddOAuthApplicationInput struct {
	AppName            string             `json:"appName"`
	PublisherName      string             `json:"publisherName"`
	ClientDescription  string             `json:"clientDescription"`
	RedirectURL        string             `json:"redirectURL"`
	Scopes             []string           `json:"scopes"`
	Developers         []string           `json:"developers"`
	DevelopmentUsers   []string           `json:"developmentUsers"`
	AppIcon            string             `json:"appIcon"`
	AllowImplicitGrant AllowImplicitGrant `json:"allowImplicitGrant"`
	WhiteListedDomains []string           `json:"whiteListedDomains"`
	TermsOfServiceURL  string             `json:"termsOfServiceURL"`
	PrivacyURL         string             `json:"privacyURL"`
	Website            string             `json:"website"`
	ContactEmail       string             `json:"contactEmail"`
}

type AddOrderInput

type AddOrderInput struct {
	OrderItems         *OrderItemInput    `json:"orderItems"`
	ServiceType        string             `json:"serviceType"`
	Coupon             string             `json:"coupon"`
	ProviderID         primitive.ObjectID `json:"providerID"`
	Currency           *CurrencyInput     `json:"currency"`
	DiscountAmount     float64            `json:"discountAmount"`
	DiscountTax        float64            `json:"discountTax"`
	ShippingTotal      float64            `json:"shippingTotal"`
	ShippingTax        float64            `json:"shippingTax"`
	CartTax            float64            `json:"cartTax"`
	OrderTotalAmount   float64            `json:"orderTotalAmount"`
	TotalTax           float64            `json:"totalTax"`
	PricesIncludeTax   bool               `json:"pricesIncludeTax"`
	Billing            *BillingInput      `json:"billing"`
	Shipping           *ShippingInput     `json:"shipping"`
	PaymentMethod      PaymentMethodType  `json:"paymentMethod"`
	PaymentMethodTitle string             `json:"paymentMethodTitle"`
}

type AddOrderNoteInput

type AddOrderNoteInput struct {
	Author       string `json:"author"`
	Note         string `json:"note"`
	CustomerNote bool   `json:"customerNote"`
	IsActive     bool   `json:"isActive"`
}

type AddOrderStatusUtilityInput

type AddOrderStatusUtilityInput struct {
	StatusTitle       string `json:"statusTitle"`
	StatusDescription string `json:"statusDescription"`
	IsActive          bool   `json:"isActive"`
}

type AddPackageType

type AddPackageType struct {
	ID          primitive.ObjectID `json:"id"`
	PackageType string             `json:"packageType"`
	Language    string             `json:"language"`
	IsActive    bool               `json:"isActive"`
}

type AddPackageTypeInput

type AddPackageTypeInput struct {
	PackageType string `json:"packageType"`
	Language    string `json:"language"`
	IsActive    bool   `json:"isActive"`
}

type AddPageInput

type AddPageInput struct {
	Name        string `json:"name"`
	Title       string `json:"title"`
	Body        string `json:"body"`
	Description string `json:"description"`
	Language    string `json:"language"`
	IsActive    *bool  `json:"isActive"`
}

type AddPaymentMethod

type AddPaymentMethod string
const (
	AddPaymentMethodStripe    AddPaymentMethod = "STRIPE"
	AddPaymentMethodBraintree AddPaymentMethod = "BRAINTREE"
	AddPaymentMethodPaymaya   AddPaymentMethod = "PAYMAYA"
	AddPaymentMethodOmise     AddPaymentMethod = "OMISE"
	AddPaymentMethodAdyen     AddPaymentMethod = "ADYEN"
	AddPaymentMethodXendit    AddPaymentMethod = "XENDIT"
)

func (AddPaymentMethod) IsValid

func (e AddPaymentMethod) IsValid() bool

func (AddPaymentMethod) MarshalGQL

func (e AddPaymentMethod) MarshalGQL(w io.Writer)

func (AddPaymentMethod) String

func (e AddPaymentMethod) String() string

func (*AddPaymentMethod) UnmarshalGQL

func (e *AddPaymentMethod) UnmarshalGQL(v interface{}) error

type AddProductAttributeInput

type AddProductAttributeInput struct {
	Name        string   `json:"name"`
	Slug        string   `json:"slug"`
	Type        string   `json:"type"`
	OrderBy     string   `json:"orderBy"`
	HasArchives bool     `json:"hasArchives"`
	Position    int      `json:"position"`
	Visible     bool     `json:"visible"`
	Variation   bool     `json:"variation"`
	Option      []string `json:"option"`
}

type AddProductAttributeTermInput

type AddProductAttributeTermInput struct {
	Name        string `json:"name"`
	Slug        string `json:"slug"`
	Description string `json:"description"`
	MenuOrder   int    `json:"menuOrder"`
	Count       int    `json:"count"`
}

type AddProductBrandInput

type AddProductBrandInput struct {
	Type          string   `json:"type"`
	IsActive      bool     `json:"isActive"`
	Name          string   `json:"name"`
	Slug          string   `json:"slug"`
	Description   string   `json:"description"`
	Relationships []string `json:"relationships"`
}

type AddProductCategoryInput

type AddProductCategoryInput struct {
	Name         string                `json:"name"`
	Slug         string                `json:"slug"`
	Parent       int                   `json:"parent"`
	Store        string                `json:"store"`
	Description  string                `json:"description"`
	DisplayOrder int                   `json:"displayOrder"`
	Display      string                `json:"display"`
	ServiceType  StoreCategory         `json:"serviceType"`
	MenuCategory string                `json:"menuCategory"`
	MenuOrder    int                   `json:"menuOrder"`
	Count        int                   `json:"count"`
	Image        *AddProductImageInput `json:"image"`
}

type AddProductCollectionInput

type AddProductCollectionInput struct {
	Type          string   `json:"type"`
	IsActive      bool     `json:"isActive"`
	Name          string   `json:"name"`
	Description   string   `json:"description"`
	Slug          string   `json:"slug"`
	Relationships []string `json:"relationships"`
}

type AddProductDownloadInput

type AddProductDownloadInput struct {
	Name string `json:"name"`
	File string `json:"file"`
}

type AddProductImageInput

type AddProductImageInput struct {
	Src  string `json:"src"`
	Name string `json:"name"`
	Alt  string `json:"alt"`
}

type AddProductInput

type AddProductInput struct {
	Name              string                      `json:"name"`
	MenuItem          string                      `json:"menuItem"`
	Slug              string                      `json:"slug"`
	Permalink         string                      `json:"permalink"`
	Type              string                      `json:"type"`
	Status            ProductStatus               `json:"status"`
	IsFeatured        bool                        `json:"isFeatured"`
	ItemTagName       string                      `json:"itemTagName"`
	CatalogVisibility string                      `json:"catalogVisibility"`
	Description       string                      `json:"description"`
	ShortDescription  string                      `json:"shortDescription"`
	Sku               string                      `json:"sku"`
	Price             float64                     `json:"price"`
	RegularPrice      float64                     `json:"regularPrice"`
	ServiceType       StoreCategory               `json:"serviceType"`
	SalePrice         float64                     `json:"salePrice"`
	DateOnSaleFrom    time.Time                   `json:"dateOnSaleFrom"`
	DateOnSaleTo      time.Time                   `json:"dateOnSaleTo"`
	PriceHTML         string                      `json:"priceHtml"`
	OnSale            bool                        `json:"onSale"`
	Purchasable       bool                        `json:"purchasable"`
	TotalSales        int                         `json:"totalSales"`
	Store             string                      `json:"Store"`
	Virtual           bool                        `json:"virtual"`
	DisplayOrder      int                         `json:"displayOrder"`
	Downloadable      bool                        `json:"downloadable"`
	Downloads         []*AddProductDownloadInput  `json:"downloads"`
	DownloadLimit     int                         `json:"downloadLimit"`
	DownloadExpiry    int                         `json:"downloadExpiry"`
	ExternalURL       string                      `json:"externalUrl"`
	ButtonText        string                      `json:"buttonText"`
	TaxStatus         string                      `json:"taxStatus"`
	TaxClass          string                      `json:"taxClass"`
	ManageStock       bool                        `json:"manageStock"`
	StockQuantity     int                         `json:"stockQuantity"`
	StockStatus       string                      `json:"stockStatus"`
	BackOrders        string                      `json:"backOrders"`
	BackOrdersAllowed bool                        `json:"backOrdersAllowed"`
	BackOrdered       bool                        `json:"backOrdered"`
	SoldIndividually  bool                        `json:"soldIndividually"`
	Weight            float64                     `json:"weight"`
	ShippingRequired  bool                        `json:"shippingRequired"`
	ShippingTaxable   bool                        `json:"shippingTaxable"`
	ShippingClass     string                      `json:"shippingClass"`
	ShippingClassID   string                      `json:"shippingClassId"`
	ReviewsAllowed    bool                        `json:"reviewsAllowed"`
	AverageRating     string                      `json:"averageRating"`
	RatingCount       int                         `json:"ratingCount"`
	ParentID          string                      `json:"parentId"`
	PurchaseNote      string                      `json:"purchaseNote"`
	MenuOrder         int                         `json:"menuOrder"`
	MetaData          []*AddProductMetadataInput  `json:"metaData"`
	GroupedProducts   []string                    `json:"groupedProducts"`
	Variations        []string                    `json:"variations"`
	DefaultAttributes []*AddProductAttributeInput `json:"defaultAttributes"`
	Attributes        []*AddProductAttributeInput `json:"attributes"`
	Images            []*AddProductImageInput     `json:"images"`
	Tags              []*AddProductTagInput       `json:"tags"`
	Categories        []*AddProductCategoryInput  `json:"categories"`
	CrossSellIds      []string                    `json:"crossSellIds"`
	UpsellIds         []string                    `json:"upsellIds"`
	RelatedIds        []string                    `json:"relatedIds"`
	Dimensions        *ProductDimensionsInput     `json:"dimensions"`
}

type AddProductMetadataInput

type AddProductMetadataInput struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type AddProductReviewInput

type AddProductReviewInput struct {
	ProductID          string                   `json:"productID"`
	Status             ProductStatus            `json:"status"`
	Reviewer           string                   `json:"reviewer"`
	ReviewerEmail      string                   `json:"reviewerEmail"`
	Review             string                   `json:"review"`
	Rating             int                      `json:"rating"`
	Verified           bool                     `json:"verified"`
	ReviewerAvatarURLs *ReviewerAvatarUrlsInput `json:"reviewerAvatarURLs"`
}

type AddProductTagInput

type AddProductTagInput struct {
	Name        string `json:"name"`
	Slug        string `json:"slug"`
	Description string `json:"description"`
	Count       int    `json:"count"`
}

type AddProductVariationInput

type AddProductVariationInput struct {
	ParentProductID   string                      `json:"parentProductID"`
	Description       string                      `json:"description"`
	Permalink         string                      `json:"permalink"`
	Sku               string                      `json:"sku"`
	Price             float64                     `json:"price"`
	RegularPrice      float64                     `json:"regularPrice"`
	SalePrice         float64                     `json:"salePrice"`
	DateOnSaleFrom    time.Time                   `json:"dateOnSaleFrom"`
	DateOnSaleTo      time.Time                   `json:"dateOnSaleTo"`
	OnSale            bool                        `json:"onSale"`
	Status            ProductStatus               `json:"status"`
	Purchasable       bool                        `json:"purchasable"`
	Virtual           bool                        `json:"virtual"`
	Downloadable      bool                        `json:"downloadable"`
	DownloadLimit     int                         `json:"downloadLimit"`
	DownloadExpiry    int                         `json:"downloadExpiry"`
	TaxStatus         string                      `json:"taxStatus"`
	TaxClass          string                      `json:"taxClass"`
	ManageStock       bool                        `json:"manageStock"`
	StockQuantity     int                         `json:"stockQuantity"`
	StockStatus       string                      `json:"stockStatus"`
	BackOrders        string                      `json:"backOrders"`
	BackOrdersAllowed bool                        `json:"backOrdersAllowed"`
	BackOrdered       bool                        `json:"backOrdered"`
	Weight            float64                     `json:"weight"`
	ShippingClass     string                      `json:"shippingClass"`
	ShippingClassID   string                      `json:"shippingClassId"`
	MenuOrder         int                         `json:"menuOrder"`
	MetaData          []*AddProductMetadataInput  `json:"metaData"`
	Attributes        []*AddProductAttributeInput `json:"attributes"`
	Image             *AddProductImageInput       `json:"image"`
	Dimensions        *ProductDimensionsInput     `json:"dimensions"`
	Downloads         []*AddProductDownloadInput  `json:"downloads"`
}

type AddRentalPackageInput

type AddRentalPackageInput struct {
	Name                   string `json:"name"`
	RentalTotalPrice       int    `json:"rentalTotalPrice"`
	RentalMiles            int    `json:"rentalMiles"`
	RentalHour             int    `json:"rentalHour"`
	AdditionalPricePerMile int    `json:"additionalPricePerMile"`
	AdditionalPricePerMin  int    `json:"additionalPricePerMin"`
}

type AddReviewInput

type AddReviewInput struct {
	JobID                 primitive.ObjectID `json:"jobId"`
	UserName              string             `json:"userName"`
	UserAverageRating     float64            `json:"userAverageRating"`
	ProviderAverageRating float64            `json:"providerAverageRating"`
	ProviderName          string             `json:"providerName"`
	UserRating            float64            `json:"userRating"`
	ProviderRating        float64            `json:"providerRating"`
	Type                  ReviewType         `json:"type"`
	From                  string             `json:"from"`
	To                    string             `json:"to"`
	Date                  time.Time          `json:"date"`
	Comment               string             `json:"comment"`
	IsActive              bool               `json:"isActive"`
}

type AddRideProfileTypeInput

type AddRideProfileTypeInput struct {
	ProfileShortName string `json:"profileShortName"`
	OrganizationType string `json:"organizationType"`
	ProfileTitle     string `json:"profileTitle"`
	TitleDescription string `json:"titleDescription"`
	ScreenHeading    string `json:"screenHeading"`
	ScreenTitle      string `json:"screenTitle"`
	ButtonText       string `json:"buttonText"`
	ProfileIcon      string `json:"profileIcon"`
	WelcomePicture   string `json:"welcomePicture"`
	IsActive         *bool  `json:"isActive"`
}

type AddServiceCompanyInput

type AddServiceCompanyInput struct {
	Name           string           `json:"name"`
	ProvidersCount int              `json:"providersCount"`
	Email          string           `json:"email"`
	IsActive       bool             `json:"isActive"`
	Country        string           `json:"country"`
	State          string           `json:"state"`
	City           string           `json:"city"`
	Address        *AddAddressInput `json:"address"`
	Zipcode        string           `json:"zipcode"`
	Phone          string           `json:"phone"`
	Language       string           `json:"language"`
	VatNo          string           `json:"vatNo"`
}

type AddServiceInput

type AddServiceInput struct {
	Name                      string           `json:"name"`
	PriceBasedOn              PriceBasedOn     `json:"priceBasedOn"`
	CommissionOnMaterial      bool             `json:"commissionOnMaterial"`
	Category                  ServiceCategory  `json:"category"`
	UserCancellationTimeLimit int              `json:"userCancellationTimeLimit"`
	UserCancellationCharges   float64          `json:"userCancellationCharges"`
	WaitingTimeLimit          int              `json:"waitingTimeLimit"`
	WaitingCharges            float64          `json:"waitingCharges"`
	CategoryViewType          CategoryViewType `json:"categoryViewType"`
	Icon                      string           `json:"icon"`
	Tags                      []string         `json:"tags"`
	DisplayOrder              int              `json:"displayOrder"`
	IsActive                  bool             `json:"isActive"`
}

type AddServiceProviderInput

type AddServiceProviderInput struct {
	FirstName          string             `json:"firstName"`
	LastName           string             `json:"lastName"`
	Email              string             `json:"email"`
	Gender             Gender             `json:"gender"`
	ProfilePicture     string             `json:"profilePicture"`
	Country            string             `json:"country"`
	State              string             `json:"state"`
	City               string             `json:"city"`
	Address            *AddAddressInput   `json:"address"`
	ZipCode            int                `json:"zipCode"`
	MobileNumber       int                `json:"mobileNumber"`
	Company            string             `json:"company"`
	Language           string             `json:"language"`
	Currency           string             `json:"currency"`
	BankAccountDetails primitive.ObjectID `json:"bankAccountDetails"`
	ServiceDescription string             `json:"serviceDescription"`
	CompanyID          string             `json:"companyID"`
	Metadata           *string            `json:"metadata"`
}

type AddServiceProviderVehicleInput

type AddServiceProviderVehicleInput struct {
	VehicleCompanyName  string                      `json:"vehicleCompanyName"`
	VehicleModelName    string                      `json:"vehicleModelName"`
	VehicleYear         string                      `json:"vehicleYear"`
	VehicleNumber       string                      `json:"vehicleNumber"`
	VehicleColor        string                      `json:"vehicleColor"`
	VehicleImageURL     string                      `json:"vehicleImageUrl"`
	VehicleLicensePlate string                      `json:"vehicleLicensePlate"`
	ServiceCompanyID    string                      `json:"serviceCompanyId"`
	EnabledServiceType  []*VehicleServiceTypesInput `json:"enabledServiceType"`
}

type AddServiceSubCategoryInput

type AddServiceSubCategoryInput struct {
	ServiceID    string `json:"serviceID"`
	Name         string `json:"name"`
	Description  string `json:"description"`
	Icon         string `json:"icon"`
	BannerImage  string `json:"bannerImage"`
	DisplayOrder int    `json:"displayOrder"`
	IsActive     bool   `json:"isActive"`
	ServiceType  string `json:"serviceType"`
}

type AddServiceTypeInput

type AddServiceTypeInput struct {
	ServiceCategory      string   `json:"serviceCategory"`
	ServiceSubCategoryID string   `json:"ServiceSubCategoryID"`
	ServiceType          string   `json:"serviceType"`
	ServiceDescription   string   `json:"serviceDescription"`
	Location             string   `json:"location"`
	FareType             FareType `json:"fareType"`
	ServiceCharge        float64  `json:"serviceCharge"`
	Commission           float64  `json:"commission"`
	AllowQuantity        bool     `json:"allowQuantity"`
	DisplayOrder         int      `json:"displayOrder"`
	IsActive             bool     `json:"isActive"`
}

type AddServiceVehicleTypeInput

type AddServiceVehicleTypeInput struct {
	VehicleServiceType           VehicleServiceType `json:"vehicleServiceType"`
	EnablePoolRide               bool               `json:"enablePoolRide"`
	VehicleType                  VehicleType        `json:"vehicleType"`
	VehicleCategory              VehicleCategory    `json:"vehicleCategory"`
	Location                     string             `json:"location"`
	PricePerKms                  float64            `json:"pricePerKms"`
	PricePerMinute               float64            `json:"pricePerMinute"`
	BaseFare                     float64            `json:"baseFare"`
	Commission                   float64            `json:"commission"`
	MinimumFare                  float64            `json:"minimumFare"`
	UserCancellationTimeLimit    int                `json:"userCancellationTimeLimit"`
	UserCancellationCharges      float64            `json:"userCancellationCharges"`
	WaitingTimeLimit             int                `json:"waitingTimeLimit"`
	WaitingCharges               float64            `json:"waitingCharges"`
	InTransitWaitingFeePerMinute float64            `json:"inTransitWaitingFeePerMinute"`
	PersonCapacity               int                `json:"personCapacity"`
	PeakTimeSurcharge            bool               `json:"peakTimeSurcharge"`
	NightCharges                 bool               `json:"nightCharges"`
	VehiclePicture               string             `json:"vehiclePicture"`
	Order                        int                `json:"order"`
	IsActive                     bool               `json:"isActive"`
}

type AddSmsTemplateInput

type AddSmsTemplateInput struct {
	Code       string `json:"code"`
	Body       string `json:"body"`
	Language   string `json:"language"`
	TemplateID string `json:"templateId"`
	Purpose    string `json:"purpose"`
	Title      string `json:"title"`
}

type AddStateInput

type AddStateInput struct {
	CountryName string `json:"countryName"`
	CountryCode string `json:"countryCode"`
	StateName   string `json:"stateName"`
	StateCode   string `json:"stateCode"`
	IsActive    bool   `json:"isActive"`
}

type AddStoreInput

type AddStoreInput struct {
	StoreName                string                   `json:"storeName"`
	ServiceCategory          StoreCategory            `json:"serviceCategory"`
	Email                    string                   `json:"email"`
	Password                 string                   `json:"password"`
	StoreAddress             *AddAddressInput         `json:"storeAddress"`
	StoreLocation            []*AddStoreLocationInput `json:"storeLocation"`
	ZipCode                  string                   `json:"zipCode"`
	Country                  string                   `json:"country"`
	State                    string                   `json:"state"`
	ContactPersonName        string                   `json:"contactPersonName"`
	MobileNumber             string                   `json:"mobileNumber"`
	Language                 string                   `json:"language"`
	AvailableStoreItemTypes  string                   `json:"availableStoreItemTypes"`
	Slot1                    time.Time                `json:"slot1"`
	Slot2                    time.Time                `json:"slot2"`
	MinimumAmountPerOrder    float64                  `json:"minimumAmountPerOrder"`
	AdditionalPackingCharges float64                  `json:"additionalPackingCharges"`
	MaxOrderQuantity         string                   `json:"maxOrderQuantity"`
	EstimatedOrderTime       int                      `json:"estimatedOrderTime"`
	OfferAppliesOn           OfferAppliesOn           `json:"offerAppliesOn"`
	BankAccountDetails       *UpdateBankDetailsInput  `json:"bankAccountDetails"`
}

type AddStoreLocationInput

type AddStoreLocationInput struct {
	StoreID           *primitive.ObjectID `json:"storeID"`
	StoreLocationName string              `json:"storeLocationName"`
	StoreAddress      *AddAddressInput    `json:"storeAddress"`
}

type AddStoreVehicleTypeInput

type AddStoreVehicleTypeInput struct {
	Type                      string                   `json:"type"`
	Location                  StoreVehicleTypeLocation `json:"location"`
	ChargesForCompletedOrders int                      `json:"chargesForCompletedOrders"`
	ChargesForCancelledOrders int                      `json:"chargesForCancelledOrders"`
	DeliveryRadius            int                      `json:"deliveryRadius"`
	Order                     int                      `json:"order"`
	IsActive                  bool                     `json:"isActive"`
}

type AddUserInput

type AddUserInput struct {
	FirstName    string `json:"firstName"`
	MobileNo     string `json:"mobileNo"`
	LastName     string `json:"lastName"`
	Email        string `json:"email"`
	Password     string `json:"password"`
	Gender       Gender `json:"gender"`
	ProfilePhoto string `json:"profilePhoto"`
	Phone        int    `json:"phone"`
	Language     string `json:"language"`
	Currency     string `json:"currency"`
	IsActive     bool   `json:"isActive"`
}

type AddUserRoleGroupInput

type AddUserRoleGroupInput struct {
	Name        string   `json:"name"`
	Roles       []string `json:"roles"`
	Description string   `json:"description"`
}

type AddUserRoleInput

type AddUserRoleInput struct {
	Name        string   `json:"name"`
	Description string   `json:"description"`
	Permissions []string `json:"permissions"`
}

type AddVehicleMakeInput

type AddVehicleMakeInput struct {
	Make     string `json:"make"`
	IsActive bool   `json:"isActive"`
}

type AddVehicleModelInput

type AddVehicleModelInput struct {
	Make     string `json:"make"`
	Model    string `json:"model"`
	IsActive bool   `json:"isActive"`
}

type AddVisitLocationInput

type AddVisitLocationInput struct {
	DestinationTitle string `json:"destinationTitle"`
	Destination      string `json:"destination"`
	IsActive         bool   `json:"isActive"`
}

type AddWebhookInput

type AddWebhookInput struct {
	URL         string   `json:"url"`
	EventTopics []string `json:"eventTopics"`
	Secret      string   `json:"secret"`
	IsEnabled   bool     `json:"isEnabled"`
}

type AddWineDeliveryLabelInput

type AddWineDeliveryLabelInput struct {
	Code                   string `json:"code"`
	ValueInEnglishLanguage string `json:"valueInEnglishLanguage"`
	LanguageLabel          string `json:"languageLabel"`
	IsActive               bool   `json:"isActive"`
}

type Address

type Address struct {
	ID                 primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt          time.Time          `json:"createdAt" bson:"createdAt" `
	DeletedAt          *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt          time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy          primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	Name               string             `json:"name" bson:"name"`
	FirstName          string             `json:"firstName" bson:"firstName"`
	LastName           string             `json:"lastName" bson:"lastName"`
	CompanyName        string             `json:"companyName" bson:"companyName"`
	City               City               `json:"city" bson:"city"`
	State              State              `json:"state" bson:"state"`
	Country            Country            `json:"country" bson:"country"`
	PostCode           int                `json:"postCode" bson:"postCode"`
	AddressDescription string             `json:"addressDescription" bson:"addressDescription"`
	Latitude           float64            `json:"latitude" bson:"latitude"`
	Longitute          float64            `json:"longitute" bson:"longitude"`
}

Address user address with latitude and longitude

func CreateAddress

func CreateAddress(address Address) (*Address, error)

CreateAddress creates new address.

func GetAddressByID

func GetAddressByID(ID string) *Address

GetAddressByID gets address by ID.

func GetAddresses

func GetAddresses(filter bson.D, limit int, after *string, before *string, first *int, last *int) (addresses []*Address, totalCount int64, hasPrevious, hasNext bool, err error)

GetAddresses gets the array of addresses.

func GetBlogPosts

func GetBlogPosts(filter bson.D, limit int, after *string, before *string, first *int, last *int) (addresses []*Address, totalCount int64, hasPrevious, hasNext bool, err error)

func UpdateAddress

func UpdateAddress(address *Address) (*Address, error)

UpdateAddress updates the address.

func (*Address) MarshalBinary

func (address *Address) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*Address) UnmarshalBinary

func (address *Address) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type AddressConnection

type AddressConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*AddressEdge `json:"edges"`
	// A list of nodes.
	Nodes []*Address `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of addresses

type AddressEdge

type AddressEdge struct {
	Cursor string   `json:"cursor"`
	Node   *Address `json:"node"`
}

Paginating the node EmergencyContact

type AdminDashboard

type AdminDashboard struct {
	ID                primitive.ObjectID       `json:"id,omitempty" bson:"_id,omitempty"`
	SiteStatistics    SiteStatistics           `json:"siteStatistics" bson:"siteStatistics"`
	JobStatistics     JobStatistics            `json:"jobStatistics" bson:"jobStatistics"`
	JobsOverview      JobsOverview             `json:"jobsOverview" bson:"jobsOverview"`
	ProvidersOverview ProvidersOverview        `json:"providersOverview" bson:"providersOverview"`
	LatestJobs        []*LatestJobs            `json:"latestJobs" bson:"latestJobs"`
	NotificationPanel []*DashboardNotification `json:"notificationPanel" bson:"notificationPanel"`
}

AdminDashboard represents a admin dashboard.

type AdminReport

type AdminReport struct {
	ID                 primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt          time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt          *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt          time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy          primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	ServiceType        string             `json:"serviceType" bson:"serviceType"`
	OrderNo            string             `json:"orderNo" bson:"orderNo"`
	OrderDate          time.Time          `json:"orderDate" bson:"orderDate"`
	OrderAmount        string             `json:"orderAmount" bson:"orderAmount"`
	SiteCommission     string             `json:"siteCommission" bson:"siteCommission"`
	DeliveryCharges    string             `json:"deliveryCharges" bson:"deliveryCharges"`
	OutstandingAmount  string             `json:"outstandingAmount" bson:"outstandingAmount"`
	DriverAmount       string             `json:"driverAmount" bson:"driverAmount"`
	AdminEarningAmount string             `json:"adminEarningAmount" bson:"adminEarningAmount"`
	OrderStatus        string             `json:"orderStatus" bson:"orderStatus"`
	PaymentMethod      PaymentType        `json:"paymentMethod" bson:"paymentMethod"`
	IsActive           bool               `json:"isActive" bson:"isActive"`
}

AdminReport represents a admin report.

func GetAdminReportByID

func GetAdminReportByID(ID string) (*AdminReport, error)

GetAdminReportByID gives the admin report by id.

func GetAdminReports

func GetAdminReports(filter bson.D, limit int, after *string, before *string, first *int, last *int) (adminReports []*AdminReport, totalCount int64, hasPrevious, hasNext bool, err error)

GetAdminReports gives a list of admin reports.

func (*AdminReport) MarshalBinary

func (adminReport *AdminReport) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*AdminReport) UnmarshalBinary

func (adminReport *AdminReport) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type AdminReportConnection

type AdminReportConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*AdminReportEdge `json:"edges"`
	// A list of nodes.
	Nodes []*AdminReport `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of AdminReport

type AdminReportEdge

type AdminReportEdge struct {
	Cursor string       `json:"cursor"`
	Node   *AdminReport `json:"node"`
}

Paginating the node AdminReport

type AdvertisementBanner

type AdvertisementBanner struct {
	ID              primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt       time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt       time.Time          `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt       time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy       primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	BannerImage     string             `json:"bannerImage" bson:"bannerImage"`
	BannerName      string             `json:"bannerName" bson:"bannerName"`
	DisplayOrder    int                `json:"displayOrder" bson:"displayOrder"`
	RedirectURL     string             `json:"redirectURL" bson:"redirectURL"`
	TimePeriod      string             `json:"timePeriod" bson:"timePeriod"`
	AddedDate       time.Time          `json:"addedDate" bson:"addedDate"`
	TotalImpression string             `json:"totalImpression" bson:"totalImpression"`
	UsedImpression  string             `json:"usedImpression" bson:"usedImpression"`
	Validity        Validity           `json:"validity" bson:"validity"`
	ClickCount      ClickCount         `json:"clickCount" bson:"clickCount"`
	IsActive        bool               `json:"isActive" bson:"isActive"`
}

AdvertisementBanner represents a advertisement banner.

func CreateAdvertisementBanner

func CreateAdvertisementBanner(adBanner AdvertisementBanner) (*AdvertisementBanner, error)

CreateAdvertisementBanner creates new advertisement banner.

func GetAdvertisementBannerByID

func GetAdvertisementBannerByID(ID string) *AdvertisementBanner

GetAdvertisementBannerByID gets advertisement banners by ID.

func GetAdvertisementBanners

func GetAdvertisementBanners(filter bson.D, limit int, after *string, before *string, first *int, last *int) (adBanners []*AdvertisementBanner, totalCount int64, hasPrevious, hasNext bool, err error)

GetAdvertisementBanners gets the array of advertisement banners.

func UpdateAdvertisementBanner

func UpdateAdvertisementBanner(c *AdvertisementBanner) (*AdvertisementBanner, error)

UpdateAdvertisementBanner updates the advertisement banners.

func (*AdvertisementBanner) MarshalBinary

func (adBanner *AdvertisementBanner) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*AdvertisementBanner) UnmarshalBinary

func (adBanner *AdvertisementBanner) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type AdvertisementBannerConnection

type AdvertisementBannerConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*AdvertisementBannerEdge `json:"edges"`
	// A list of nodes.
	Nodes []*AdvertisementBanner `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of AdvertisementBanner

type AdvertisementBannerEdge

type AdvertisementBannerEdge struct {
	Cursor string               `json:"cursor"`
	Node   *AdvertisementBanner `json:"node"`
}

Paginating the node AdvertisementBanner

type AirportSurcharge

type AirportSurcharge struct {
	ID               primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt        time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt        *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt        time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy        primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	AirportLocation  string             `json:"airportLocation" bson:"airportLocation"`
	PickUpSurcharge  string             `json:"pickUpSurcharge" bson:"pickUpSurcharge"`
	DropOffSurcharge string             `json:"dropOffSurcharge" bson:"dropOffSurcharge"`
	VehicleType      string             `json:"vehicleType" bson:"vehicleType"`
	IsActive         bool               `json:"isActive" bson:"isActive"`
}

AirportSurcharge represents a of airport surcharge.

func CreateAirportSurcharge

func CreateAirportSurcharge(airportSurcharge AirportSurcharge) (*AirportSurcharge, error)

CreateAirportSurcharge creates airport surcharge.

func GetAirportSurchargeByID

func GetAirportSurchargeByID(ID string) (*AirportSurcharge, error)

GetAirportSurchargeByID gives airport surcharge by id.

func GetAirportSurcharges

func GetAirportSurcharges(filter bson.D, limit int, after *string, before *string, first *int, last *int) (airportSurcharges []*AirportSurcharge, totalCount int64, hasPrevious, hasNext bool, err error)

GetAirportSurcharges gives a list of airport surcharges.

func UpdateAirportSurcharge

func UpdateAirportSurcharge(c *AirportSurcharge) (*AirportSurcharge, error)

UpdateAirportSurcharge updates airport surcharge.

func (*AirportSurcharge) MarshalBinary

func (airportSurcharge *AirportSurcharge) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*AirportSurcharge) UnmarshalBinary

func (airportSurcharge *AirportSurcharge) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type AirportSurchargeConnection

type AirportSurchargeConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*AirportSurchargeEdge `json:"edges"`
	// A list of nodes.
	Nodes []*AirportSurcharge `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of AirportSurcharge

type AirportSurchargeEdge

type AirportSurchargeEdge struct {
	Cursor string            `json:"cursor"`
	Node   *AirportSurcharge `json:"node"`
}

Paginating the node AirportSurcharge

type AirportSurchargeSearch

type AirportSurchargeSearch string
const (
	AirportSurchargeSearchAll             AirportSurchargeSearch = "ALL"
	AirportSurchargeSearchAirportLocation AirportSurchargeSearch = "AIRPORT_LOCATION"
	AirportSurchargeSearchVehicleType     AirportSurchargeSearch = "VEHICLE_TYPE"
)

func (AirportSurchargeSearch) IsValid

func (e AirportSurchargeSearch) IsValid() bool

func (AirportSurchargeSearch) MarshalGQL

func (e AirportSurchargeSearch) MarshalGQL(w io.Writer)

func (AirportSurchargeSearch) String

func (e AirportSurchargeSearch) String() string

func (*AirportSurchargeSearch) UnmarshalGQL

func (e *AirportSurchargeSearch) UnmarshalGQL(v interface{}) error

type AirportSurchargeSelectStatus

type AirportSurchargeSelectStatus string
const (
	AirportSurchargeSelectStatusActive   AirportSurchargeSelectStatus = "ACTIVE"
	AirportSurchargeSelectStatusInactive AirportSurchargeSelectStatus = "INACTIVE"
	AirportSurchargeSelectStatusDelete   AirportSurchargeSelectStatus = "DELETE"
)

func (AirportSurchargeSelectStatus) IsValid

func (e AirportSurchargeSelectStatus) IsValid() bool

func (AirportSurchargeSelectStatus) MarshalGQL

func (e AirportSurchargeSelectStatus) MarshalGQL(w io.Writer)

func (AirportSurchargeSelectStatus) String

func (*AirportSurchargeSelectStatus) UnmarshalGQL

func (e *AirportSurchargeSelectStatus) UnmarshalGQL(v interface{}) error

type AllowImplicitGrant

type AllowImplicitGrant string
const (
	AllowImplicitGrantAllow    AllowImplicitGrant = "ALLOW"
	AllowImplicitGrantDisallow AllowImplicitGrant = "DISALLOW"
)

func (AllowImplicitGrant) IsValid

func (e AllowImplicitGrant) IsValid() bool

func (AllowImplicitGrant) MarshalGQL

func (e AllowImplicitGrant) MarshalGQL(w io.Writer)

func (AllowImplicitGrant) String

func (e AllowImplicitGrant) String() string

func (*AllowImplicitGrant) UnmarshalGQL

func (e *AllowImplicitGrant) UnmarshalGQL(v interface{}) error

type AppSetting

type AppSetting struct {
	BookingAcceptTime                           int                        `json:"bookingAcceptTime"`
	SinchSecretKey                              string                     `json:"sinchSecretKey"`
	SinchEnvironmentHost                        string                     `json:"sinchEnvironmentHost"`
	SinchAppKey                                 string                     `json:"sinchAppKey"`
	DeliveryVerificationMethod                  DeliveryVerificationMethod `json:"deliveryVerificationMethod"`
	EnableRideLater                             bool                       `json:"enableRideLater"`
	AllowProviderEditVehicleDetails             bool                       `json:"allowProviderEditVehicleDetails"`
	SurgeCharge                                 bool                       `json:"surgeCharge"`
	PublishDriverDistanceLimit                  int                        `json:"publishDriverDistanceLimit"`
	EnablePool                                  bool                       `json:"enablePool"`
	RadiusAroundUser                            int                        `json:"radiusAroundUser"`
	RadiusAroundUserForPool                     int                        `json:"radiusAroundUserForPool"`
	RadiusAroundUserProviderDestinationForPool  int                        `json:"radiusAroundUserProviderDestinationForPool"`
	RadiusAroundUserForDestinationEnabledDriver int                        `json:"radiusAroundUserForDestinationEnabledDriver"`
	LiveChatLicenceNumber                       string                     `json:"liveChatLicenceNumber"`
	SelectedContacts                            int                        `json:"selectedContacts"`
	MaxDriveDestinations                        string                     `json:"maxDriveDestinations"`
	MaxStopOverPoints                           string                     `json:"maxStopOverPoints"`
	PemFileName                                 string                     `json:"pemFileName"`
	TimeForProviderToReach                      int                        `json:"timeForProviderToReach"`
	OnlineProviderListLimit                     int                        `json:"onlineProviderListLimit"`
	CabRequestMethod                            CabRequestMethod           `json:"cabRequestMethod"`
	ProviderTimeout                             int                        `json:"providerTimeout"`
	EnableRouteCalculation                      bool                       `json:"enableRouteCalculation"`
	EnableRouteOptimisation                     bool                       `json:"enableRouteOptimisation"`
	MaxDestinationMultiDelivery                 int                        `json:"maxDestinationMultiDelivery"`
	EnableSurgeChargeOnRental                   bool                       `json:"enableSurgeChargeOnRental"`
	EnableWaitingChargeOnRental                 bool                       `json:"enableWaitingChargeOnRental"`
	EnableWaitingChargeOnFlatFare               bool                       `json:"enableWaitingChargeOnFlatFare"`
	EnableGoogleDirectionForDriver              bool                       `json:"enableGoogleDirectionForDriver"`
	EnableGoogleDirectionForUser                bool                       `json:"enableGoogleDirectionForUser"`
	GoogleServerPassengerKeyIos                 string                     `json:"googleServerPassengerKeyIOS"`
	GoogleAppPassengerKeyIos                    string                     `json:"googleAppPassengerKeyIOS"`
	GoogleServerDriverKeyIos                    string                     `json:"googleServerDriverKeyIOS"`
	GoogleAppDriverKeyIos                       string                     `json:"googleAppDriverKeyIOS"`
	GoogleServerPassengerKeyAndroid             string                     `json:"googleServerPassengerKeyAndroid"`
	GoogleServerDriverKeyAndroid                string                     `json:"googleServerDriverKeyAndroid"`
	EnableFavoriteStore                         bool                       `json:"enableFavoriteStore"`
	EnableFavoriteDriver                        bool                       `json:"enableFavoriteDriver"`
	EnableHandicapAccessibility                 bool                       `json:"enableHandicapAccessibility"`
	EnableGenderBasedRequest                    bool                       `json:"enableGenderBasedRequest"`
	EnableTaxiHailProviderApp                   bool                       `json:"enableTaxiHailProviderApp"`
	EnableLiveChat                              bool                       `json:"enableLiveChat"`
	EnableChildSeatAccessibility                bool                       `json:"enableChildSeatAccessibility"`
	EnableBookForSomeoneElse                    bool                       `json:"enableBookForSomeoneElse"`
	EnableAdvertisementBannerRider              bool                       `json:"enableAdvertisementBannerRider"`
	EnableAdvertisementBannerDriver             bool                       `json:"enableAdvertisementBannerDriver"`
	EnableAdvertisementBannerRestaurants        bool                       `json:"enableAdvertisementBannerRestaurants"`
	DisplayAdvertisementTime                    int                        `json:"displayAdvertisementTime"`
	EnableNews                                  bool                       `json:"enableNews"`
	EnableAirportSurcharge                      bool                       `json:"enableAirportSurcharge"`
	EnableTransitShopping                       bool                       `json:"enableTransitShopping"`
	EnableNewsletterSubscription                bool                       `json:"enableNewsletterSubscription"`
	WaybillConfiguration                        bool                       `json:"waybillConfiguration"`
	ServiceProviderFlow                         ServiceProviderFlow        `json:"serviceProviderFlow"`
	EnableDriverDestinationsFeature             bool                       `json:"enableDriverDestinationsFeature"`
	ResetTimeForDriverDestinations              time.Time                  `json:"resetTimeForDriverDestinations"`
	EnableStopOverPoint                         bool                       `json:"enableStopOverPoint"`
}

type AppSettingInput

type AppSettingInput struct {
	BookingAcceptTime                           int                        `json:"bookingAcceptTime"`
	SinchSecretKey                              string                     `json:"sinchSecretKey"`
	SinchEnvironmentHost                        string                     `json:"sinchEnvironmentHost"`
	SinchAppKey                                 string                     `json:"sinchAppKey"`
	DeliveryVerificationMethod                  DeliveryVerificationMethod `json:"deliveryVerificationMethod"`
	EnableRideLater                             bool                       `json:"enableRideLater"`
	AllowProviderEditVehicleDetails             bool                       `json:"allowProviderEditVehicleDetails"`
	SurgeCharge                                 bool                       `json:"surgeCharge"`
	PublishDriverDistanceLimit                  int                        `json:"publishDriverDistanceLimit"`
	EnablePool                                  bool                       `json:"enablePool"`
	RadiusAroundUser                            int                        `json:"radiusAroundUser"`
	RadiusAroundUserForPool                     int                        `json:"radiusAroundUserForPool"`
	RadiusAroundUserProviderDestinationForPool  int                        `json:"radiusAroundUserProviderDestinationForPool"`
	RadiusAroundUserForDestinationEnabledDriver int                        `json:"radiusAroundUserForDestinationEnabledDriver"`
	LiveChatLicenceNumber                       string                     `json:"liveChatLicenceNumber"`
	SelectedContacts                            int                        `json:"selectedContacts"`
	MaxDriveDestinations                        string                     `json:"maxDriveDestinations"`
	MaxStopOverPoints                           string                     `json:"maxStopOverPoints"`
	PemFileName                                 string                     `json:"pemFileName"`
	TimeForProviderToReach                      int                        `json:"timeForProviderToReach"`
	OnlineProviderListLimit                     int                        `json:"onlineProviderListLimit"`
	CabRequestMethod                            CabRequestMethod           `json:"cabRequestMethod"`
	ProviderTimeout                             int                        `json:"providerTimeout"`
	EnableRouteCalculation                      bool                       `json:"enableRouteCalculation"`
	EnableRouteOptimisation                     bool                       `json:"enableRouteOptimisation"`
	MaxDestinationMultiDelivery                 int                        `json:"maxDestinationMultiDelivery"`
	EnableSurgeChargeOnRental                   bool                       `json:"enableSurgeChargeOnRental"`
	EnableWaitingChargeOnRental                 bool                       `json:"enableWaitingChargeOnRental"`
	EnableWaitingChargeOnFlatFare               bool                       `json:"enableWaitingChargeOnFlatFare"`
	EnableGoogleDirectionForDriver              bool                       `json:"enableGoogleDirectionForDriver"`
	EnableGoogleDirectionForUser                bool                       `json:"enableGoogleDirectionForUser"`
	GoogleServerPassengerKeyIos                 string                     `json:"googleServerPassengerKeyIOS"`
	GoogleAppPassengerKeyIos                    string                     `json:"googleAppPassengerKeyIOS"`
	GoogleServerDriverKeyIos                    string                     `json:"googleServerDriverKeyIOS"`
	GoogleAppDriverKeyIos                       string                     `json:"googleAppDriverKeyIOS"`
	GoogleServerPassengerKeyAndroid             string                     `json:"googleServerPassengerKeyAndroid"`
	GoogleServerDriverKeyAndroid                string                     `json:"googleServerDriverKeyAndroid"`
	EnableFavoriteStore                         bool                       `json:"enableFavoriteStore"`
	EnableFavoriteDriver                        bool                       `json:"enableFavoriteDriver"`
	EnableHandicapAccessibility                 bool                       `json:"enableHandicapAccessibility"`
	EnableGenderBasedRequest                    bool                       `json:"enableGenderBasedRequest"`
	EnableTaxiHailProviderApp                   bool                       `json:"enableTaxiHailProviderApp"`
	EnableLiveChat                              bool                       `json:"enableLiveChat"`
	EnableChildSeatAccessibility                bool                       `json:"enableChildSeatAccessibility"`
	EnableBookForSomeoneElse                    bool                       `json:"enableBookForSomeoneElse"`
	EnableAdvertisementBannerRider              bool                       `json:"enableAdvertisementBannerRider"`
	EnableAdvertisementBannerDriver             bool                       `json:"enableAdvertisementBannerDriver"`
	EnableAdvertisementBannerRestaurants        bool                       `json:"enableAdvertisementBannerRestaurants"`
	DisplayAdvertisementTime                    int                        `json:"displayAdvertisementTime"`
	EnableNews                                  bool                       `json:"enableNews"`
	EnableAirportSurcharge                      bool                       `json:"enableAirportSurcharge"`
	EnableTransitShopping                       bool                       `json:"enableTransitShopping"`
	EnableNewsletterSubscription                bool                       `json:"enableNewsletterSubscription"`
	WaybillConfiguration                        bool                       `json:"waybillConfiguration"`
	ServiceProviderFlow                         ServiceProviderFlow        `json:"serviceProviderFlow"`
	EnableDriverDestinationsFeature             bool                       `json:"enableDriverDestinationsFeature"`
	ResetTimeForDriverDestinations              time.Time                  `json:"resetTimeForDriverDestinations"`
	EnableStopOverPoint                         bool                       `json:"enableStopOverPoint"`
}

type AppStatus

type AppStatus string
const (
	AppStatusDevelopment AppStatus = "DEVELOPMENT"
	AppStatusProduction  AppStatus = "PRODUCTION"
)

func (AppStatus) IsValid

func (e AppStatus) IsValid() bool

func (AppStatus) MarshalGQL

func (e AppStatus) MarshalGQL(w io.Writer)

func (AppStatus) String

func (e AppStatus) String() string

func (*AppStatus) UnmarshalGQL

func (e *AppStatus) UnmarshalGQL(v interface{}) error

type AppVersion

type AppVersion struct {
	ID             primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt      time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt      *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt      time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy      primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	MinimumVersion string             `json:"minimumVersion" bson:"minimumVersion"`
	LatestVersion  string             `json:"latestVersion" bson:"latestVersion"`
	DownloadURL    string             `json:"downloadUrl" bson:"downloadUrl"`
	Channel        string             `json:"channel" bson:"channel"`
	IsActive       bool               `json:"isActive" bson:"isActive"`
}

AppVersion represents a app version.

func CreateAppVersion

func CreateAppVersion(appVersion AppVersion) (*AppVersion, error)

CreateAppVersion is used to create new app versions.

func GetAppLatestVersion

func GetAppLatestVersion() (*AppVersion, error)

GetAppLatestVersion returns the latest app version.

func GetAppVersionByID

func GetAppVersionByID(ID string) *AppVersion

GetAppVersionByID returns requested app version by id.

func GetAppVersions

func GetAppVersions(filter bson.D, limit int, after *string, before *string, first *int, last *int) (appVersions []*AppVersion, totalCount int64, hasPrevious, hasNext bool, err error)

GetAppVersions returns a list of app versions.

func UpdateAppVersion

func UpdateAppVersion(c *AppVersion) (*AppVersion, error)

UpdateAppVersion updates the current app version.

func (*AppVersion) MarshalBinary

func (appVersion *AppVersion) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*AppVersion) UnmarshalBinary

func (appVersion *AppVersion) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type AppearanceSetting

type AppearanceSetting struct {
	CompanyNameInEmail     string `json:"companyNameInEmail"`
	CopyrightAdminFooter   string `json:"copyrightAdminFooter"`
	CopyrightWebsiteFooter string `json:"copyrightWebsiteFooter"`
	SupportEmail           string `json:"supportEmail"`
	AndroidAppLink         string `json:"androidAppLink"`
	IphoneAppLink          string `json:"iphoneAppLink"`
	CompanyAddress         string `json:"companyAddress"`
	SupportPhone           string `json:"supportPhone"`
}

type AppearanceSettingInput

type AppearanceSettingInput struct {
	CompanyNameInEmail     string `json:"companyNameInEmail"`
	CopyrightAdminFooter   string `json:"copyrightAdminFooter"`
	CopyrightWebsiteFooter string `json:"copyrightWebsiteFooter"`
	SupportEmail           string `json:"supportEmail"`
	AndroidAppLink         string `json:"androidAppLink"`
	IphoneAppLink          string `json:"iphoneAppLink"`
	CompanyAddress         string `json:"companyAddress"`
	SupportPhone           string `json:"supportPhone"`
}

type AuthPayload

type AuthPayload struct {
	Token string `json:"token"`
	User  *User  `json:"user"`
}

type Authority

type Authority struct {
	ID        primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt time.Time          `json:"updatedAt" bson:"updatedAt"`
	Name      string
}

Authority represents authority.

type AuthorizationCode

type AuthorizationCode struct {
	ID          primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt   time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt   *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt   time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy   primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	ClientID    string             `json:"clientId" bson:"clientId"`
	UserID      string             `json:"userId" bson:"userId"`
	Client      *OAuthApplication
	User        *User
	Code        string `json:"code" bson:"code"`
	RedirectURL *string
	ExpiresAt   time.Time
	Scope       string
}

OauthAuthorizationCode ...

func CreateAuthorizationCode

func CreateAuthorizationCode(authCode *AuthorizationCode) (*AuthorizationCode, error)

CreateAuthorizationCode creates new access tokens.

func GetAuthorizationCodeByFilter

func GetAuthorizationCodeByFilter(filter bson.D) *AuthorizationCode

GetAccessTokenByFilter gives requested access tokens by id.

func NewOAuthAuthorizationCode

func NewOAuthAuthorizationCode(client *OAuthApplication, user *User, expiresIn int, redirectURI, scope string) *AuthorizationCode

NewOauthAuthorizationCode creates new OauthAuthorizationCode instance

type AuthorizedGrantType

type AuthorizedGrantType string

AuthorizedGrantType represents authorized grant type.

const (
	// ImplicitGrant represents authorized grant type as implicit.
	ImplicitGrant AuthorizedGrantType = "implicit"
	// RefreshTokenGrant represents authorized grant type as refresh token.
	RefreshTokenGrant AuthorizedGrantType = "refreshToken"
	//PasswordGrant represents authorized grant type as password.
	PasswordGrant AuthorizedGrantType = "password"
	//AuthCodeGrant represents authorized grant type as authorization code.
	AuthCodeGrant AuthorizedGrantType = "authorizationCode"
)

type BalanceFor

type BalanceFor string
const (
	BalanceForBooking BalanceFor = "BOOKING"
	BalanceForDeposit BalanceFor = "DEPOSIT"
)

func (BalanceFor) IsValid

func (e BalanceFor) IsValid() bool

func (BalanceFor) MarshalGQL

func (e BalanceFor) MarshalGQL(w io.Writer)

func (BalanceFor) String

func (e BalanceFor) String() string

func (*BalanceFor) UnmarshalGQL

func (e *BalanceFor) UnmarshalGQL(v interface{}) error

type BankAccount

type BankAccount struct {
	ID                    primitive.ObjectID           `json:"id,omitempty" bson:"_id,omitempty"`
	UserID                primitive.ObjectID           `json:"userID" bson:"userID"`
	CreatedAt             time.Time                    `json:"createdAt" bson:"createdAt"`
	DeletedAt             *time.Time                   `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt             time.Time                    `json:"updatedAt" bson:"updatedAt"`
	CreatedBy             primitive.ObjectID           `json:"createdBy" bson:"createdBy"`
	AccountHolderName     string                       `json:"accountHolderName" bson:"accountHolderName"`
	AccountHolderType     BankAccountAccountHolderType `json:"accountHolderType" json:"accountHolderType"`
	BankName              string                       `json:"bankName" bson:"bankName"`
	Country               string                       `json:"country" bson:"country"`
	Currency              primitive.ObjectID           `json:"currency" bson:"currency"`
	DefaultForCurrency    bool                         `json:"defaultForCurrency" bson:"defaultForCurrency"`
	Fingerprint           string                       `json:"fingerprint" bson:"fingerprint"`
	AccountNumber         string                       `json:"accountNumber" bson:"accountNumber"`
	Metadata              map[string]string            `json:"metadata" bson:"metadata"`
	RoutingNumber         string                       `json:"routingNumber" bson:"routingNumber"`
	Status                BankAccountStatus            `json:"status" bson:"status"`
	BankLocation          string                       `json:"bankLocation" bson:"bankLocation"`
	BankCountry           string                       `json:"bankCountry" bson:"bankCountry"`
	SwiftCode             string                       `json:"swiftCode" bson:"swiftCode"`
	IfscCode              string                       `json:"ifscCode" bson:"ifscCode"`
	IsVerified            bool                         `json:"isVerified" bson:"isVerified"`
	VerifiedAt            *time.Time                   `json:"verifiedAt,omitempty" bson:"verifiedAt,omitempty"`
	VerifiedBy            primitive.ObjectID           `json:"verifiedBy" bson:"verifiedBy"`
	VerificationDocuments []Document                   `json:"verificationDocuments" bson:"verificationDocuments"`
}

BankAccount represents a bank account.

func CreateBankAccount

func CreateBankAccount(bankAccount *BankAccount) (*BankAccount, error)

CreateBankAccount creates new bank account.

func GetBankAccountByID

func GetBankAccountByID(ID string) (*BankAccount, error)

GetBankAccountByID gets requested bank account by id.

func GetBankAccountByUserID

func GetBankAccountByUserID(ID string) (*BankAccount, error)

GetBankAccountByUserID gets requested bank account by id.

func GetBankAccounts

func GetBankAccounts(filter bson.D, limit int, after *string, before *string, first *int, last *int) (bankAccounts []*BankAccount, totalCount int64, hasPrevious, hasNext bool, err error)

GetBankAccounts gives the array of bank accounts.

func UpdateBankAccount

func UpdateBankAccount(c *BankAccount) (*BankAccount, error)

UpdateBankAccount updates bank account.

func (*BankAccount) MarshalBinary

func (bankAccount *BankAccount) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*BankAccount) UnmarshalBinary

func (bankAccount *BankAccount) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type BankAccountAccountHolderType

type BankAccountAccountHolderType string

BankAccountAccountHolderType is the list of allowed values for the bank account holder type.

const (
	BankAccountAccountHolderTypeCompany    BankAccountAccountHolderType = "company"
	BankAccountAccountHolderTypeIndividual BankAccountAccountHolderType = "individual"
)

List of values that BankAccountAccountHolderType can take.

type BankAccountDetails

type BankAccountDetails struct {
	Email              string            `json:"email"`
	AccountHolderName  string            `json:"accountHolderName"`
	AccountNumber      int               `json:"accountNumber"`
	BankName           string            `json:"bankName"`
	BankLocation       string            `json:"bankLocation"`
	BankCountry        string            `json:"bankCountry"`
	SwiftCode          string            `json:"swiftCode"`
	IfscCode           string            `json:"ifscCode"`
	Metadata           *string           `json:"metadata"`
	Country            string            `json:"country"`
	Currency           *Currency         `json:"currency"`
	DefaultForCurrency bool              `json:"defaultForCurrency"`
	Fingerprint        string            `json:"fingerprint"`
	RoutingNumber      string            `json:"routingNumber"`
	Status             BankAccountStatus `json:"status"`
}

type BankAccountStatus

type BankAccountStatus string
const (
	BankAccountStatusErrored            BankAccountStatus = "ERRORED"
	BankAccountStatusNew                BankAccountStatus = "NEW"
	BankAccountStatusValidated          BankAccountStatus = "VALIDATED"
	BankAccountStatusVerificationFailed BankAccountStatus = "VERIFICATION_FAILED"
	BankAccountStatusVerified           BankAccountStatus = "VERIFIED"
)

func (BankAccountStatus) IsValid

func (e BankAccountStatus) IsValid() bool

func (BankAccountStatus) MarshalGQL

func (e BankAccountStatus) MarshalGQL(w io.Writer)

func (BankAccountStatus) String

func (e BankAccountStatus) String() string

func (*BankAccountStatus) UnmarshalGQL

func (e *BankAccountStatus) UnmarshalGQL(v interface{}) error

type BannerStatusInput

type BannerStatusInput string
const (
	BannerStatusInputActive   BannerStatusInput = "ACTIVE"
	BannerStatusInputInactive BannerStatusInput = "INACTIVE"
	BannerStatusInputDeleted  BannerStatusInput = "DELETED"
)

func (BannerStatusInput) IsValid

func (e BannerStatusInput) IsValid() bool

func (BannerStatusInput) MarshalGQL

func (e BannerStatusInput) MarshalGQL(w io.Writer)

func (BannerStatusInput) String

func (e BannerStatusInput) String() string

func (*BannerStatusInput) UnmarshalGQL

func (e *BannerStatusInput) UnmarshalGQL(v interface{}) error

type BannersType

type BannersType string
const (
	BannersTypeAll  BannersType = "All"
	BannersTypeName BannersType = "NAME"
	BannersTypeURL  BannersType = "URL"
)

func (BannersType) IsValid

func (e BannersType) IsValid() bool

func (BannersType) MarshalGQL

func (e BannersType) MarshalGQL(w io.Writer)

func (BannersType) String

func (e BannersType) String() string

func (*BannersType) UnmarshalGQL

func (e *BannersType) UnmarshalGQL(v interface{}) error

type Billing

type Billing struct {
	FirstName string `json:"firstName"`
	LastName  string `json:"lastName"`
	Company   string `json:"company"`
	Address1  string `json:"address1"`
	Address2  string `json:"address2"`
	City      string `json:"city"`
	State     string `json:"state"`
	Postcode  string `json:"postcode"`
	Country   string `json:"country"`
	Email     string `json:"email"`
	Phone     string `json:"phone"`
}

type BillingInput

type BillingInput struct {
	FirstName string `json:"firstName"`
	LastName  string `json:"lastName"`
	Company   string `json:"company"`
	Address1  string `json:"address1"`
	Address2  string `json:"address2"`
	City      string `json:"city"`
	State     string `json:"state"`
	Postcode  string `json:"postcode"`
	Country   string `json:"country"`
	Email     string `json:"email"`
	Phone     string `json:"phone"`
}

type Blog

type Blog struct {
}

type BlogPost

type BlogPost struct {
}

type Booking

type Booking struct {
	JobID     *primitive.ObjectID `json:"jobId"`
	VehicleID *primitive.ObjectID `json:"vehicleId"`
}

type BookingFareEstimate

type BookingFareEstimate struct {
	BaseFare  *float64 `json:"baseFare"`
	Distance  *float64 `json:"distance"`
	Time      *float64 `json:"time"`
	TotalFare *float64 `json:"totalFare"`
}

type BookingInput

type BookingInput struct {
	FirstName            string                    `json:"firstName"`
	LastName             string                    `json:"lastName"`
	Email                *string                   `json:"email"`
	Country              string                    `json:"country"`
	MobileNumber         int                       `json:"mobileNumber"`
	ServiceSubCategoryID primitive.ObjectID        `json:"serviceSubCategoryID"`
	RideDetails          *RideDetailsInput         `json:"rideDetails"`
	DeliveryDetails      *DeliveryDetailsInput     `json:"deliveryDetails"`
	OtherServiceDetails  *OtherServiceDetailsInput `json:"otherServiceDetails"`
	Coupon               string                    `json:"coupon"`
	ProviderID           string                    `json:"providerId"`
}

type BookingType

type BookingType string
const (
	BookingTypeRide          BookingType = "RIDE"
	BookingTypeDelivery      BookingType = "DELIVERY"
	BookingTypeOtherServices BookingType = "OTHER_SERVICES"
)

func (BookingType) IsValid

func (e BookingType) IsValid() bool

func (BookingType) MarshalGQL

func (e BookingType) MarshalGQL(w io.Writer)

func (BookingType) String

func (e BookingType) String() string

func (*BookingType) UnmarshalGQL

func (e *BookingType) UnmarshalGQL(v interface{}) error

type BusinessTripReason

type BusinessTripReason struct {
	ID               primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt        time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt        *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt        time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy        primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	TripReason       string             `json:"tripReason" bson:"tripReason"`
	ProfileShortName string             `json:"profileShortName" bson:"profileShortName"`
	OrganizationType string             `json:"organizationType" bson:"organizationType"`
	ProfileTitle     string             `json:"profileTitle" bson:"profileTitle"`
	TitleDescription string             `json:"titleDescription" bson:"titleDescription"`
	Reason           string             `json:"reason" bson:"reason"`
	IsActive         bool               `json:"isActive" bson:"isActive"`
}

BusinessTripReason represents a business trip reason.

func CreateBusinessTripReason

func CreateBusinessTripReason(businessTripReason BusinessTripReason) (*BusinessTripReason, error)

CreateBusinessTripReason creates new business trip reason.

func GetBusinessTripReasonByID

func GetBusinessTripReasonByID(ID string) *BusinessTripReason

GetBusinessTripReasonByID gives the requested business trip reason by id.

func GetBusinessTripReasons

func GetBusinessTripReasons(filter bson.D, limit int, after *string, before *string, first *int, last *int) (businessTripReasons []*BusinessTripReason, totalCount int64, hasPrevious, hasNext bool, err error)

GetBusinessTripReasons gives the array of business trip reasons.

func UpdateBusinessTripReason

func UpdateBusinessTripReason(c *BusinessTripReason) (*BusinessTripReason, error)

UpdateBusinessTripReason updates the business trip reason.

func (*BusinessTripReason) MarshalBinary

func (businessTripReason *BusinessTripReason) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*BusinessTripReason) UnmarshalBinary

func (businessTripReason *BusinessTripReason) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type BusinessTripReasonConnection

type BusinessTripReasonConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*BusinessTripReasonEdge `json:"edges"`
	// A list of nodes.
	Nodes []*BusinessTripReason `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of BusinessTripReason

type BusinessTripReasonEdge

type BusinessTripReasonEdge struct {
	Cursor string              `json:"cursor"`
	Node   *BusinessTripReason `json:"node"`
}

Paginating the node BusinessTripReason

type BusinessTripReasonType

type BusinessTripReasonType string
const (
	BusinessTripReasonTypeAll              BusinessTripReasonType = "ALL"
	BusinessTripReasonTypeTripReason       BusinessTripReasonType = "TRIP_REASON"
	BusinessTripReasonTypeProfileShortname BusinessTripReasonType = "PROFILE_SHORTNAME"
	BusinessTripReasonTypeOrganizationType BusinessTripReasonType = "ORGANIZATION_TYPE"
	BusinessTripReasonTypeProfileTitle     BusinessTripReasonType = "PROFILE_TITLE"
	BusinessTripReasonTypeTitleDescription BusinessTripReasonType = "TITLE_DESCRIPTION"
)

func (BusinessTripReasonType) IsValid

func (e BusinessTripReasonType) IsValid() bool

func (BusinessTripReasonType) MarshalGQL

func (e BusinessTripReasonType) MarshalGQL(w io.Writer)

func (BusinessTripReasonType) String

func (e BusinessTripReasonType) String() string

func (*BusinessTripReasonType) UnmarshalGQL

func (e *BusinessTripReasonType) UnmarshalGQL(v interface{}) error

type CabRequestMethod

type CabRequestMethod string
const (
	CabRequestMethodAll      CabRequestMethod = "ALL"
	CabRequestMethodDistance CabRequestMethod = "DISTANCE"
	CabRequestMethodTime     CabRequestMethod = "TIME"
)

func (CabRequestMethod) IsValid

func (e CabRequestMethod) IsValid() bool

func (CabRequestMethod) MarshalGQL

func (e CabRequestMethod) MarshalGQL(w io.Writer)

func (CabRequestMethod) String

func (e CabRequestMethod) String() string

func (*CabRequestMethod) UnmarshalGQL

func (e *CabRequestMethod) UnmarshalGQL(v interface{}) error

type Campaign

type Campaign struct {
	ID              primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt       time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt       *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt       time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy       string             `json:"createdBy" bson:"createdBy"`
	Image           string             `json:"image" bson:"image"`
	Title           string             `json:"title" bson:"title"`
	Description     string             `json:"description" bson:"description"`
	Active          bool               `json:"active" bson:"active"`
	ServiceCategory string             `json:"serviceCategory" bson:"serviceCategory"`
}

Campaign represents a in app campaign.

func CreateCampaign

func CreateCampaign(campaign Campaign) (*Campaign, error)

CreateCampaign creates new campaigns.

func GetCampaignByID

func GetCampaignByID(ID string) (*Campaign, error)

GetCampaignByID gives requested campaign by id.

func GetCampaigns

func GetCampaigns(filter bson.D, limit int, after *string, before *string, first *int, last *int) (campaigns []*Campaign, totalCount int64, hasPrevious, hasNext bool, err error)

GetCampaigns gives an array of campaigns.

func UpdateCampaign

func UpdateCampaign(c *Campaign) (*Campaign, error)

UpdateCampaign updates the campaign.

func (*Campaign) MarshalBinary

func (campaign *Campaign) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*Campaign) UnmarshalBinary

func (campaign *Campaign) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type CancelReason

type CancelReason struct {
	ID          primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt   time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt   *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt   time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy   primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	Reason      string             `json:"reason" bson:"reason"`
	ServiceType string             `json:"serviceType" bson:"serviceType"`
	Order       string             `json:"order" bson:"order"`
	IsActive    bool               `json:"isActive" bson:"isActive"`
}

CancelReason represents a cancel reason.

func CreateCancelReason

func CreateCancelReason(cancelReason CancelReason) (*CancelReason, error)

CreateCancelReason creates new cancel reason.

func GetCancelReasonByID

func GetCancelReasonByID(ID string) *CancelReason

GetCancelReasonByID gives the requested cancel reason by id.

func GetCancelReasons

func GetCancelReasons(filter bson.D, limit int, after *string, before *string, first *int, last *int) (cancelReasons []*CancelReason, totalCount int64, hasPrevious, hasNext bool, err error)

GetCancelReasons gives an array of cancel reasons.

func UpdateCancelReason

func UpdateCancelReason(c *CancelReason) (*CancelReason, error)

UpdateCancelReason updates the reason.

func (*CancelReason) MarshalBinary

func (cancelReason *CancelReason) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*CancelReason) UnmarshalBinary

func (cancelReason *CancelReason) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type CancelReasonConnection

type CancelReasonConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*CancelReasonEdge `json:"edges"`
	// A list of nodes.
	Nodes []*CancelReason `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of CancelReason

type CancelReasonEdge

type CancelReasonEdge struct {
	Cursor string        `json:"cursor"`
	Node   *CancelReason `json:"node"`
}

Paginating the node CancelReason

type CancelReasonServiceType

type CancelReasonServiceType string
const (
	CancelReasonServiceTypeRide       CancelReasonServiceType = "RIDE"
	CancelReasonServiceTypeDeliver    CancelReasonServiceType = "DELIVER"
	CancelReasonServiceTypeService    CancelReasonServiceType = "SERVICE"
	CancelReasonServiceTypeDeliverAll CancelReasonServiceType = "DELIVER_ALL"
)

func (CancelReasonServiceType) IsValid

func (e CancelReasonServiceType) IsValid() bool

func (CancelReasonServiceType) MarshalGQL

func (e CancelReasonServiceType) MarshalGQL(w io.Writer)

func (CancelReasonServiceType) String

func (e CancelReasonServiceType) String() string

func (*CancelReasonServiceType) UnmarshalGQL

func (e *CancelReasonServiceType) UnmarshalGQL(v interface{}) error

type CancelledJobServiceType

type CancelledJobServiceType string
const (
	CancelledJobServiceTypeRide          CancelledJobServiceType = "RIDE"
	CancelledJobServiceTypeDelivery      CancelledJobServiceType = "DELIVERY"
	CancelledJobServiceTypeOtherServices CancelledJobServiceType = "OTHER_SERVICES"
	CancelledJobServiceTypeRidePool      CancelledJobServiceType = "RIDE_POOL"
)

func (CancelledJobServiceType) IsValid

func (e CancelledJobServiceType) IsValid() bool

func (CancelledJobServiceType) MarshalGQL

func (e CancelledJobServiceType) MarshalGQL(w io.Writer)

func (CancelledJobServiceType) String

func (e CancelledJobServiceType) String() string

func (*CancelledJobServiceType) UnmarshalGQL

func (e *CancelledJobServiceType) UnmarshalGQL(v interface{}) error

type CancelledReport

type CancelledReport struct {
	ID                  primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt           time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt           *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt           time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy           primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	ServiceType         string             `json:"serviceType" bson:"serviceType"`
	OrderNumber         string             `json:"orderNumber" bson:"orderNumber"`
	OrderDate           time.Time          `json:"orderDate" bson:"orderDate"`
	PayoutStore         string             `json:"payoutStore" bson:"payoutStore"`
	PayoutDriver        string             `json:"payoutDriver" bson:"payoutDriver"`
	CancellationCharges string             `json:"cancellationCharges" bson:"cancellationCharges"`
	OrderStatus         string             `json:"orderStatus" bson:"orderStatus"`
	PaymentMethod       PaymentType        `json:"paymentMethod" bson:"paymentMethod"`
	Action              PaymentStatus      `json:"action" bson:"action"`
	IsActive            bool               `json:"isActive" bson:"isActive"`
}

CancelledReport represents a cancelled report.

func GetCancelledReportByID

func GetCancelledReportByID(ID string) (*CancelledReport, error)

GetCancelledReportByID gives a cancelled report by id.

func GetCancelledReports

func GetCancelledReports(filter bson.D, limit int, after *string, before *string, first *int, last *int) (cancelledReports []*CancelledReport, totalCount int64, hasPrevious, hasNext bool, err error)

GetCancelledReports gives a list of cancelled report.

func (*CancelledReport) MarshalBinary

func (cancelledReport *CancelledReport) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*CancelledReport) UnmarshalBinary

func (cancelledReport *CancelledReport) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type CancelledReportConnection

type CancelledReportConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*CancelledReportEdge `json:"edges"`
	// A list of nodes.
	Nodes []*CancelledReport `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of CancelledReport

type CancelledReportEdge

type CancelledReportEdge struct {
	Cursor string           `json:"cursor"`
	Node   *CancelledReport `json:"node"`
}

Paginating the node CancelledReport

type Card

type Card struct {
	ID             primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt      time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt      *time.Time         `json:"-,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt      time.Time          `json:"updatedAt" bson:"updatedAt"`
	AddressCity    string             `json:"addressCity" bson:"addressCity"`
	AddressCountry string             `json:"addressCountry" bson:"addressCountry"`
	AddressLine1   string             `json:"addressLine1" bson:"addressLine1"`
	//AddressLine1Check  CardVerification `json:"address_line1_check"`
	AddressLine2 string `json:"addressLine2" bson:"addressLine2"`
	AddressState string `json:"addressState" bson:"addressState"`
	AddressZip   string `json:"addressZip" bson:"addressZip"`
	//AddressZipCheck    CardVerification `json:"address_zip_check"`
	//Brand              CardBrand        `json:"brand"`
	//CVCCheck           CardVerification `json:"cvc_check"`
	Country            string   `json:"country" bson:"country"`
	Currency           Currency `json:"currency" bson:"currency"`
	User               *User    `json:"user" bson:"user"`
	DefaultForCurrency bool     `json:"defaultForCurrency" bson:"defaultForCurrency"`
	Deleted            bool     `json:"deleted" bson:"deleted"`

	// Description is a succinct summary of the card's information.
	//
	// Please note that this field is for internal use only and is not returned
	// as part of standard API requests.
	Description string `json:"description"`

	DynamicLast4 string `json:"dynamicLast4"`
	ExpMonth     uint8  `json:"expMonth"`
	ExpYear      uint16 `json:"expYear"`
	Fingerprint  string `json:"fingerprint"`

	// IIN is the card's "Issuer Identification Number".
	//
	// Please note that this field is for internal use only and is not returned
	// as part of standard API requests.
	IIN string `json:"iin"`

	// Issuer is a bank or financial institution that provides the card.
	//
	// Please note that this field is for internal use only and is not returned
	// as part of standard API requests.
	Issuer string `json:"issuer"`

	Last4    string `json:"last4"`
	Metadata string `json:"metadata"`
	Name     string `json:"name"`
}

Card represents a card.

func CreateCard

func CreateCard(card Card) (*Card, error)

CreateCard creates new cards.

func GetCardByID

func GetCardByID(ID string) (*Card, error)

GetCardByID gives the requested card by id.

func GetCards

func GetCards(filter bson.D, limit int, after *string, before *string, first *int, last *int) (cards []*Card, totalCount int64, hasPrevious, hasNext bool, err error)

GetCards gives an array of cards.

func UpdateCard

func UpdateCard(c *Card) (*Card, error)

UpdateCard updates the card.

func (*Card) MarshalBinary

func (card *Card) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*Card) UnmarshalBinary

func (card *Card) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type Cart

type Cart struct {
	ID        primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	UserID    primitive.ObjectID `json:"userID" bson:"userID"`
	StoreID   string             `json:"storeID" bson:"storeID"`
	Items     []CartItem         `json:"cartItems" bson:"cartItems"`
}

func CreateCart

func CreateCart(cart *Cart) (*Cart, error)

CreateCart creates new cart.

func GetCartByFilter

func GetCartByFilter(filter bson.D) (*Cart, error)

GetCartByID gets carts by ID.

func GetCartByID

func GetCartByID(ID string) *Cart

GetCartByID gets carts by ID.

func GetCarts

func GetCarts(filter bson.D, limit int, after *string, before *string, first *int, last *int) (carts []*Cart, totalCount int64, hasPrevious, hasNext bool, err error)

GetCarts gets the array of carts.

func UpdateCart

func UpdateCart(c *Cart) (*Cart, error)

UpdateCart updates the carts.

func (*Cart) MarshalBinary

func (cart *Cart) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*Cart) UnmarshalBinary

func (cart *Cart) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type CartConnection

type CartConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*CartEdge `json:"edges"`
	// A list of nodes.
	Nodes []*Cart `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of Carts

type CartEdge

type CartEdge struct {
	Cursor string `json:"cursor"`
	Node   *Cart  `json:"node"`
}

Paginating the node Cart

type CartItem

type CartItem struct {
	ProductID   primitive.ObjectID  `json:"productID" bson:"productID"`
	Quantity    int                 `json:"quantity" bson:"quantity"`
	VariationID *primitive.ObjectID `json:"variationID" bson:"variationID"`
	Type        CartItemType        `json:"type" bson:"type"`
}

type CartItemType

type CartItemType string
const (
	CartItemTypeProduct    CartItemType = "PRODUCT"
	CartItemTypeCustomItem CartItemType = "CUSTOM_ITEM"
	CartItemTypePromotion  CartItemType = "PROMOTION"
)

func (CartItemType) IsValid

func (e CartItemType) IsValid() bool

func (CartItemType) MarshalGQL

func (e CartItemType) MarshalGQL(w io.Writer)

func (CartItemType) String

func (e CartItemType) String() string

func (*CartItemType) UnmarshalGQL

func (e *CartItemType) UnmarshalGQL(v interface{}) error

type CategoryViewType

type CategoryViewType string
const (
	CategoryViewTypeIcon       CategoryViewType = "ICON"
	CategoryViewTypeBanner     CategoryViewType = "BANNER"
	CategoryViewTypeIconBanner CategoryViewType = "ICON_BANNER"
)

func (CategoryViewType) IsValid

func (e CategoryViewType) IsValid() bool

func (CategoryViewType) MarshalGQL

func (e CategoryViewType) MarshalGQL(w io.Writer)

func (CategoryViewType) String

func (e CategoryViewType) String() string

func (*CategoryViewType) UnmarshalGQL

func (e *CategoryViewType) UnmarshalGQL(v interface{}) error

type Chat

type Chat struct {
	ID         primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt  time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt  *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt  time.Time          `json:"updatedAt" bson:"updatedAt"`
	Name       string             `json:"name" bson:"name"`
	CreatedBy  primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	StartedBy  primitive.ObjectID `json:"startedBy" bson:"startedBy"`
	Agents     []*SupportAgent    `json:"agents" bson:"agents"`
	Messages   []*ChatMessage     `json:"messages" bson:"messages"`
	Tags       []*string          `json:"tags" bson:"tags"`
	Department *SupportDepartment `json:"department" bson:"department"`
	Rating     *string            `json:"rating" bson:"rating"`
	Comment    *string            `json:"comment" bson:"comment"`
	Notes      []*ChatNote        `json:"notes" bson:"notes"`
}

Chat represents a support chat message.

func CreateChat

func CreateChat(chat Chat) (*Chat, error)

CreateChat creates a new chat.

func GetChatByID

func GetChatByID(ID string) (*Chat, error)

GetChatByID gives the requested chat by id.

func GetChats

func GetChats(filter bson.D, limit int, after *string, before *string, first *int, last *int) (chats []*Chat, totalCount int64, hasPrevious, hasNext bool, err error)

GetChats gives an array of chats.

func UpdateChat

func UpdateChat(c *Chat) (*Chat, error)

UpdateChat updates the chat.

func (*Chat) MarshalBinary

func (chat *Chat) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*Chat) UnmarshalBinary

func (chat *Chat) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type ChatMessage

type ChatMessage struct {
	ID          primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	ChatID      string             `json:"chatId" bson:"chatId"`
	CreatedAt   time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt   *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt   time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy   primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	Message     string             `json:"message" bson:"message"`
	AgentReadAt *time.Time         `json:"agentReadAt" bson:"agentReadAt"`
	UserReadAt  *time.Time         `json:"userReadAt" bson:"userReadAt"`
	Type        ChatMessageType    `json:"type" bson:"type"`
}

ChatMessage represents a chat message.

func CreateChatMessage

func CreateChatMessage(chatMessage ChatMessage) (*ChatMessage, error)

CreateChatMessage creates new chat messages.

func GetChatMessageByID

func GetChatMessageByID(ID string) (*ChatMessage, error)

GetChatMessageByID gives the requested chat message by id.

func GetChatMessages

func GetChatMessages(filter bson.D, limit int, after *string, before *string, first *int, last *int) (chatMessages []*ChatMessage, totalCount int64, hasPrevious, hasNext bool, err error)

GetChatMessages gives an array of chat messages.

func UpdateChatMessage

func UpdateChatMessage(c *ChatMessage) (*ChatMessage, error)

UpdateChatMessage updates the chat message.

func (*ChatMessage) MarshalBinary

func (chatMessage *ChatMessage) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*ChatMessage) UnmarshalBinary

func (chatMessage *ChatMessage) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type ChatMessageType

type ChatMessageType string
const (
	ChatMessageTypeLiveChat       ChatMessageType = "LIVE_CHAT"
	ChatMessageTypeOfflineMessage ChatMessageType = "OFFLINE_MESSAGE"
)

func (ChatMessageType) IsValid

func (e ChatMessageType) IsValid() bool

func (ChatMessageType) MarshalGQL

func (e ChatMessageType) MarshalGQL(w io.Writer)

func (ChatMessageType) String

func (e ChatMessageType) String() string

func (*ChatMessageType) UnmarshalGQL

func (e *ChatMessageType) UnmarshalGQL(v interface{}) error

type ChatNote

type ChatNote struct {
	Type      *string   `json:"type"`
	Message   string    `json:"message"`
	CreatedBy string    `json:"createdBy"`
	CreatedAt time.Time `json:"createdAt"`
}

type City

type City struct {
	ID          primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt   time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt   *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt   time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy   primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	CountryName string             `json:"countryName" bson:"countryName"`
	CountryCode string             `json:"countryCode" bson:"countryCode"`
	StateName   string             `json:"stateName" bson:"stateName"`
	StateCode   string             `json:"stateCode" bson:"stateCode"`
	CityName    string             `json:"cityName" bson:"cityName"`
	IsActive    bool               `json:"isActive" bson:"isActive"`
}

City represents a city.

func CreateCity

func CreateCity(city City) (*City, error)

CreateCity creates new cities.

func GetCities

func GetCities(filter bson.D, limit int, after *string, before *string, first *int, last *int) (cities []*City, totalCount int64, hasPrevious, hasNext bool, err error)

GetCities gives an array of cities.

func GetCityByCode

func GetCityByCode(code string) (*City, error)

GetCityByCode gives the requested city using code.

func GetCityByID

func GetCityByID(ID string) (*City, error)

GetCityByID gives the requested city by id.

func UpdateCity

func UpdateCity(c *City) (*City, error)

UpdateCity updates the cities.

func (*City) MarshalBinary

func (city *City) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*City) UnmarshalBinary

func (city *City) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type CityConnection

type CityConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*CityEdge `json:"edges"`
	// A list of nodes.
	Nodes []*City `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of City

type CityEdge

type CityEdge struct {
	Cursor string `json:"cursor"`
	Node   *City  `json:"node"`
}

Paginating the node City

type CityType

type CityType string
const (
	CityTypeAll     CityType = "ALL"
	CityTypeCity    CityType = "CITY"
	CityTypeState   CityType = "STATE"
	CityTypeCountry CityType = "COUNTRY"
	CityTypeStatus  CityType = "STATUS"
)

func (CityType) IsValid

func (e CityType) IsValid() bool

func (CityType) MarshalGQL

func (e CityType) MarshalGQL(w io.Writer)

func (CityType) String

func (e CityType) String() string

func (*CityType) UnmarshalGQL

func (e *CityType) UnmarshalGQL(v interface{}) error

type ClickCount

type ClickCount string
const (
	ClickCountLimited   ClickCount = "LIMITED"
	ClickCountUnlimited ClickCount = "UNLIMITED"
)

func (ClickCount) IsValid

func (e ClickCount) IsValid() bool

func (ClickCount) MarshalGQL

func (e ClickCount) MarshalGQL(w io.Writer)

func (ClickCount) String

func (e ClickCount) String() string

func (*ClickCount) UnmarshalGQL

func (e *ClickCount) UnmarshalGQL(v interface{}) error

type Collection

type Collection struct {
	Href string `json:"href" bson:"href"`
}

Collection represents collection.

type CompaniesSearchType

type CompaniesSearchType string
const (
	CompaniesSearchTypeName   CompaniesSearchType = "NAME"
	CompaniesSearchTypeEmail  CompaniesSearchType = "EMAIL"
	CompaniesSearchTypeMobile CompaniesSearchType = "MOBILE"
)

func (CompaniesSearchType) IsValid

func (e CompaniesSearchType) IsValid() bool

func (CompaniesSearchType) MarshalGQL

func (e CompaniesSearchType) MarshalGQL(w io.Writer)

func (CompaniesSearchType) String

func (e CompaniesSearchType) String() string

func (*CompaniesSearchType) UnmarshalGQL

func (e *CompaniesSearchType) UnmarshalGQL(v interface{}) error

type CompaniesStatus

type CompaniesStatus string
const (
	CompaniesStatusActive   CompaniesStatus = "ACTIVE"
	CompaniesStatusInactive CompaniesStatus = "INACTIVE"
	CompaniesStatusDelete   CompaniesStatus = "DELETE"
)

func (CompaniesStatus) IsValid

func (e CompaniesStatus) IsValid() bool

func (CompaniesStatus) MarshalGQL

func (e CompaniesStatus) MarshalGQL(w io.Writer)

func (CompaniesStatus) String

func (e CompaniesStatus) String() string

func (*CompaniesStatus) UnmarshalGQL

func (e *CompaniesStatus) UnmarshalGQL(v interface{}) error

type Country

type Country struct {
	ID              primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt       time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt       *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt       time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy       primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	CountryName     string             `json:"countryName" bson:"countryName"`
	Continent       string             `json:"continent" bson:"continent"`
	Code            string             `json:"code" bson:"code"`
	PhoneCode       string             `json:"phoneCode" bson:"phoneCode"`
	DistanceUnit    string             `json:"distanceUnit" bson:"distanceUnit"`
	EmergencyNumber string             `json:"emergencyNumber" bson:"emergencyNumber"`
	Tax             map[string]string  `json:"tax" bson:"tax"`
	IsActive        bool               `json:"isActive" bson:"isActive"`
}

Country represents a country.

func CreateCountry

func CreateCountry(country Country) (*Country, error)

CreateCountry creates new countries.

func GetCountries

func GetCountries(filter bson.D, limit int, after *string, before *string, first *int, last *int) (countries []*Country, totalCount int64, hasPrevious, hasNext bool, err error)

GetCountries gives an array of countries.

func GetCountryByCode

func GetCountryByCode(code string) (*Country, error)

GetCountryByCode gives the requested country using code.

func GetCountryByID

func GetCountryByID(ID string) (*Country, error)

GetCountryByID gives the requested country using id.

func UpdateCountry

func UpdateCountry(c *Country) (*Country, error)

UpdateCountry updates the countries.

func (*Country) MarshalBinary

func (country *Country) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*Country) UnmarshalBinary

func (country *Country) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type CountryConnection

type CountryConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*CountryEdge `json:"edges"`
	// A list of nodes.
	Nodes []*Country `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of Country

type CountryEdge

type CountryEdge struct {
	Cursor string   `json:"cursor"`
	Node   *Country `json:"node"`
}

Paginating the node Country

type CountryStatus

type CountryStatus string
const (
	CountryStatusActive   CountryStatus = "ACTIVE"
	CountryStatusInactive CountryStatus = "INACTIVE"
	CountryStatusDelete   CountryStatus = "DELETE"
)

func (CountryStatus) IsValid

func (e CountryStatus) IsValid() bool

func (CountryStatus) MarshalGQL

func (e CountryStatus) MarshalGQL(w io.Writer)

func (CountryStatus) String

func (e CountryStatus) String() string

func (*CountryStatus) UnmarshalGQL

func (e *CountryStatus) UnmarshalGQL(v interface{}) error

type CountryType

type CountryType string
const (
	CountryTypeAll     CountryType = "ALL"
	CountryTypeCountry CountryType = "COUNTRY"
	CountryTypeCode    CountryType = "CODE"
)

func (CountryType) IsValid

func (e CountryType) IsValid() bool

func (CountryType) MarshalGQL

func (e CountryType) MarshalGQL(w io.Writer)

func (CountryType) String

func (e CountryType) String() string

func (*CountryType) UnmarshalGQL

func (e *CountryType) UnmarshalGQL(v interface{}) error

type Coupon

type Coupon struct {
	ID                        primitive.ObjectID   `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt                 time.Time            `json:"createdAt" bson:"createdAt"`
	DeletedAt                 time.Time            `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt                 time.Time            `json:"updatedAt" bson:"updatedAt"`
	CreatedBy                 primitive.ObjectID   `json:"createdBy" bson:"createdBy"`
	Code                      string               `json:"code" bson:"code"`
	Description               string               `json:"description" bson:"description"`
	DiscountAmount            float64              `json:"discountAmount" bson:"discountAmount"`
	DiscountType              string               `json:"discountType" bson:"discountType"` //percentage / flat
	Validity                  string               `json:"validity" bson:"validity"`         //permanent or set timings
	ValidityStart             time.Time            `json:"validityStart" bson:"validityStart"`
	ValidityExpire            time.Time            `json:"validityExpire" bson:"validityExpire"`
	UsageLimit                int                  `json:"usageLimit" bson:"usageLimit"`
	UsedLimit                 int                  `json:"usedLimit" bson:"usedLimit"`
	Type                      CouponType           `json:"type" bson:"type"`
	ServiceType               CouponSystemType     `json:"serviceType" bson:"serviceType"`
	IsActive                  bool                 `json:"isActive" bson:"isActive"`
	IndividualUse             bool                 `json:"individualUse"`
	ProductIds                []primitive.ObjectID `json:"productIDs"`
	ExcludedProductIds        []primitive.ObjectID `json:"excludedProductIDs"`
	UsageLimitPerUser         int                  `json:"usageLimitPerUser"`
	LimitUsageToXItems        int                  `json:"limitUsageToXItems"`
	FreeShipping              bool                 `json:"freeShipping"`
	ProductCategories         []primitive.ObjectID `json:"productCategories"`
	ExcludedProductCategories []primitive.ObjectID `json:"excludedProductCategories"`
	ExcludeSaleItems          bool                 `json:"excludeSaleItems"`
	MinimumAmount             float64              `json:"minimumAmount"`
	MaximumAmount             float64              `json:"maximumAmount"`
	EmailRestrictions         []string             `json:"emailRestrictions"`
	UsedBy                    []primitive.ObjectID `json:"usedBy"`
	MetaData                  MetaData             `json:"metaData"`
}

Coupon represents a coupon.

func CreateCoupon

func CreateCoupon(coupon Coupon) (*Coupon, error)

CreateCoupon creates new coupon.

func GetCouponByFilter

func GetCouponByFilter(filter bson.D) *Coupon

GetCouponByFilter gives requested coupon by filter.

func GetCouponByID

func GetCouponByID(ID string) *Coupon

GetCouponByID gives requested coupon by id.

func GetCoupons

func GetCoupons(filter bson.D, limit int, after *string, before *string, first *int, last *int) (coupons []*Coupon, totalCount int64, hasPrevious, hasNext bool, err error)

GetCoupons gives a list of coupons.

func UpdateCoupon

func UpdateCoupon(c *Coupon) (*Coupon, error)

UpdateCoupon updates coupon.

func (*Coupon) MarshalBinary

func (coupon *Coupon) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*Coupon) UnmarshalBinary

func (coupon *Coupon) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type CouponConnection

type CouponConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*CouponEdge `json:"edges"`
	// A list of nodes.
	Nodes []*Coupon `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of Coupon

type CouponEdge

type CouponEdge struct {
	Cursor string  `json:"cursor"`
	Node   *Coupon `json:"node"`
}

Paginating the node Coupon

type CouponLines

type CouponLines struct {
	ID          primitive.ObjectID `json:"id"`
	Code        string             `json:"code"`
	Discount    string             `json:"discount"`
	DiscountTax string             `json:"discountTax"`
	MetaData    *MetaData          `json:"metaData"`
}

type CouponStatus

type CouponStatus string
const (
	CouponStatusActive   CouponStatus = "ACTIVE"
	CouponStatusInactive CouponStatus = "INACTIVE"
	CouponStatusDelete   CouponStatus = "DELETE"
)

func (CouponStatus) IsValid

func (e CouponStatus) IsValid() bool

func (CouponStatus) MarshalGQL

func (e CouponStatus) MarshalGQL(w io.Writer)

func (CouponStatus) String

func (e CouponStatus) String() string

func (*CouponStatus) UnmarshalGQL

func (e *CouponStatus) UnmarshalGQL(v interface{}) error

type CouponSystemType

type CouponSystemType string
const (
	CouponSystemTypeRide        CouponSystemType = "RIDE"
	CouponSystemTypeDelivery    CouponSystemType = "DELIVERY"
	CouponSystemTypeUberx       CouponSystemType = "UBERX"
	CouponSystemTypeDeliveryall CouponSystemType = "DELIVERYALL"
)

func (CouponSystemType) IsValid

func (e CouponSystemType) IsValid() bool

func (CouponSystemType) MarshalGQL

func (e CouponSystemType) MarshalGQL(w io.Writer)

func (CouponSystemType) String

func (e CouponSystemType) String() string

func (*CouponSystemType) UnmarshalGQL

func (e *CouponSystemType) UnmarshalGQL(v interface{}) error

type CouponType

type CouponType string
const (
	CouponTypeGiftCode   CouponType = "GIFT_CODE"
	CouponTypeValidity   CouponType = "VALIDITY"
	CouponTypeSystemType CouponType = "SYSTEM_TYPE"
	CouponTypeStatus     CouponType = "STATUS"
)

func (CouponType) IsValid

func (e CouponType) IsValid() bool

func (CouponType) MarshalGQL

func (e CouponType) MarshalGQL(w io.Writer)

func (CouponType) String

func (e CouponType) String() string

func (*CouponType) UnmarshalGQL

func (e *CouponType) UnmarshalGQL(v interface{}) error

type Currency

type Currency struct {
	ID              primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt       time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt       *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt       time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy       primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	Country         string             `json:"country" bson:"country"`
	Name            string             `json:"name" bson:"name"`
	CurrencyCode    string             `json:"currencyCode" bson:"currencyCode"`
	Ratio           string             `json:"ratio" bson:"ratio"`
	ThresholdAmount string             `json:"thresholdAmount" bson:"thresholdAmount"`
	Symbol          string             `json:"symbol" bson:"symbol"`
	IsDefault       bool               `json:"isDefault" bson:"isDefault"`
	IsActive        bool               `json:"isActive" bson:"isActive"`
}

Currency represents a currency.

func CreateCurrency

func CreateCurrency(currency Currency) (*Currency, error)

CreateCurrency creates new currency.

func GetCurrencies

func GetCurrencies(filter bson.D, limit int, after *string, before *string, first *int, last *int) (currencies []*Currency, totalCount int64, hasPrevious, hasNext bool, err error)

GetCurrencies gives an array of currencies.

func GetCurrencyByID

func GetCurrencyByID(ID string) (*Currency, error)

GetCurrencyByID gives requested currency by id.

func UpdateCurrency

func UpdateCurrency(c *Currency) (*Currency, error)

UpdateCurrency updates the currency.

func (*Currency) MarshalBinary

func (currency *Currency) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*Currency) UnmarshalBinary

func (currency *Currency) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type CurrencyConnection

type CurrencyConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*CurrencyEdge `json:"edges"`
	// A list of nodes.
	Nodes []*Currency `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of currencies

type CurrencyEdge

type CurrencyEdge struct {
	Cursor string    `json:"cursor"`
	Node   *Currency `json:"node"`
}

Paginating the node FAQ

type CurrencyInput

type CurrencyInput struct {
	CurrencyCode    string `json:"currencyCode"`
	Ratio           string `json:"ratio"`
	ThresholdAmount string `json:"thresholdAmount"`
	Symbol          string `json:"symbol"`
	IsDefault       bool   `json:"isDefault"`
}

type Customer

type Customer struct {
	ID               primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt        time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt        time.Time          `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt        time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy        primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	Email            string             `json:"email" bson:"email"`
	FirstName        string             `json:"firstName" bson:"firstName"`
	LastName         string             `json:"lastName" bson:"lastName"`
	Role             string             `json:"role" bson:"role"`
	Username         string             `json:"username" bson:"username"`
	Billing          Billing            `json:"billing" bson:"billing"`
	Shipping         Shipping           `json:"shipping" bson:"shipping"`
	IsPayingCustomer bool               `json:"isPayingCustomer" bson:"isPayingCustomer"`
	AvatarURL        string             `json:"avatarURL" bson:"avatarURL"`
	MetaData         MetaData           `json:"metaData" bson:"metaData"`
	IsActive         bool               `json:"isActive" bson:"isActive"`
}

func CreateCustomer

func CreateCustomer(customer Customer) (*Customer, error)

CreateCustomer creates new customer.

func GetCustomerByID

func GetCustomerByID(ID string) (*Customer, error)

GetCustomerByID gives customer by id.

func GetCustomers

func GetCustomers(filter bson.D, limit int, after *string, before *string, first *int, last *int) (customers []*Customer, totalCount int64, hasPrevious, hasNext bool, err error)

GetCustomers gives a list of customers.

func UpdateCustomer

func UpdateCustomer(s *Customer) (*Customer, error)

UpdateCustomer updates customer.

func (*Customer) MarshalBinary

func (customer *Customer) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*Customer) UnmarshalBinary

func (customer *Customer) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type CustomerConnection

type CustomerConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*CustomerEdge `json:"edges"`
	// A list of nodes.
	Nodes []*Customer `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

type CustomerEdge

type CustomerEdge struct {
	Cursor string    `json:"cursor"`
	Node   *Customer `json:"node"`
}

Paginating the node Customer

type DashboardNotification

type DashboardNotification struct {
	Action    string    `json:"action"`
	Actor     *User     `json:"actor"`
	CreatedAt time.Time `json:"createdAt"`
}

type DeclineAlert

type DeclineAlert struct {
	ID                         primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt                  time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt                  *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt                  time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy                  string             `json:"createdBy" bson:"createdBy"`
	ProviderName               string             `json:"providerName" bson:"providerName"`
	Email                      string             `json:"email" bson:"email"`
	TotalCancelledTrips        int                `json:"totalCancelledTrips" bson:"totalCancelledTrips"`
	TotalDeclinedTrips         int                `json:"totalDeclinedTrips" bson:"totalDeclinedTrips"`
	TotalCancelledTripsTillNow int                `json:"totalCancelledTripsTillNow" bson:"totalCancelledTripsTillNow"`
	TotalDeclinedTripsTillNow  int                `json:"totalDeclinedTripsTillNow" bson:"totalDeclinedTripsTillNow"`
	BlockProvider              bool               `json:"blockProvider" bson:"blockProvider"`
	BlockDate                  time.Time          `json:"blockDate" bson:"blockDate"`
	UserName                   string             `json:"userName" bson:"userName" `
	BlockUser                  bool               `json:"blockUser" bson:"blockUser"`
	IsActive                   bool               `json:"isActive" bson:"isActive"`
}

DeclineAlert represents a decline alert.

func CreateDeclineAlert

func CreateDeclineAlert(declineAlert DeclineAlert) (*DeclineAlert, error)

CreateDeclineAlert creates decline alert.

func UpdateDeclineAlert

func UpdateDeclineAlert(c *DeclineAlert) (*DeclineAlert, error)

UpdateDeclineAlert updates the decline alerts.

func (*DeclineAlert) MarshalBinary

func (declineAlert *DeclineAlert) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*DeclineAlert) UnmarshalBinary

func (declineAlert *DeclineAlert) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type DeclineAlertForProvider

type DeclineAlertForProvider struct {
	ID                         primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt                  time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt                  *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt                  time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy                  string             `json:"createdBy" bson:"createdBy"`
	ProviderName               primitive.ObjectID `json:"providerName" bson:"providerName"`
	Email                      string             `json:"email" bson:"email"`
	TotalCancelledTrips        string             `json:"totalCancelledTrips" bson:"totalCancelledTrips"`
	TotalDeclinedTrips         string             `json:"totalDeclinedTrips" bson:"totalDeclinedTrips"`
	TotalCancelledTripsTillNow string             `json:"totalCancelledTripsTillNow" bson:"totalCancelledTripsTillNow"`
	TotalDeclinedTripsTillNow  string             `json:"totalDeclinedTripsTillNow" bson:"totalDeclinedTripsTillNow"`
	BlockProvider              bool               `json:"blockProvider" bson:"blockProvider"`
	BlockDate                  string             `json:"blockDate" bson:"blockDate"`
}

DeclineAlertForProvider represents a decline alert for provider.

func GetDeclineAlertForProviderByID

func GetDeclineAlertForProviderByID(ID string) *DeclineAlertForProvider

GetDeclineAlertForProviderByID gives the requested alert by id.

func GetDeclineAlertsForProviders

func GetDeclineAlertsForProviders(filter bson.D, limit int, after *string, before *string, first *int, last *int) (alerts []*DeclineAlertForProvider, totalCount int64, hasPrevious, hasNext bool, err error)

GetDeclineAlertsForProviders gives an array of alerts for providers.

type DeclineAlertForProviderConnection

type DeclineAlertForProviderConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*DeclineAlertForProviderEdge `json:"edges"`
	// A list of nodes.
	Nodes []*DeclineAlertForProvider `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of DeclineAlertForProvider

type DeclineAlertForProviderEdge

type DeclineAlertForProviderEdge struct {
	Cursor string                   `json:"cursor"`
	Node   *DeclineAlertForProvider `json:"node"`
}

Paginating the node DeclineAlertForProvider

type DeclineAlertForProviderStatus

type DeclineAlertForProviderStatus string
const (
	DeclineAlertForProviderStatusBlocked   DeclineAlertForProviderStatus = "BLOCKED"
	DeclineAlertForProviderStatusUnblocked DeclineAlertForProviderStatus = "UNBLOCKED"
)

func (DeclineAlertForProviderStatus) IsValid

func (e DeclineAlertForProviderStatus) IsValid() bool

func (DeclineAlertForProviderStatus) MarshalGQL

func (e DeclineAlertForProviderStatus) MarshalGQL(w io.Writer)

func (DeclineAlertForProviderStatus) String

func (*DeclineAlertForProviderStatus) UnmarshalGQL

func (e *DeclineAlertForProviderStatus) UnmarshalGQL(v interface{}) error

type DeclineAlertForProviderType

type DeclineAlertForProviderType string
const (
	DeclineAlertForProviderTypeAll          DeclineAlertForProviderType = "ALL"
	DeclineAlertForProviderTypeProviderName DeclineAlertForProviderType = "PROVIDER_NAME"
	DeclineAlertForProviderTypeEmail        DeclineAlertForProviderType = "EMAIL"
)

func (DeclineAlertForProviderType) IsValid

func (e DeclineAlertForProviderType) IsValid() bool

func (DeclineAlertForProviderType) MarshalGQL

func (e DeclineAlertForProviderType) MarshalGQL(w io.Writer)

func (DeclineAlertForProviderType) String

func (*DeclineAlertForProviderType) UnmarshalGQL

func (e *DeclineAlertForProviderType) UnmarshalGQL(v interface{}) error

type DeclineAlertForUser

type DeclineAlertForUser struct {
	ID                         primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt                  time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt                  *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt                  time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy                  string             `json:"createdBy" bson:"createdBy"`
	UserName                   string             `json:"userName" bson:"userName"`
	Email                      string             `json:"email" bson:"email"`
	TotalCancelledTrips        string             `json:"totalCancelledTrips" bson:"totalCancelledTrips"`
	TotalCancelledTripsTillNow string             `json:"totalCancelledTripsTillNow" bson:"totalCancelledTripsTillNow"`
	BlockUser                  bool               `json:"blockUser" bson:"blockUser"`
	BlockDate                  string             `json:"blockDate" bson:"blockDate"`
}

DeclineAlertForUser represents a decline alert for user.

func GetDeclineAlertForUserByID

func GetDeclineAlertForUserByID(ID string) *DeclineAlertForUser

GetDeclineAlertForUserByID gives the requested alert by id.

func GetDeclineAlertsForUsers

func GetDeclineAlertsForUsers(filter bson.D, limit int, after *string, before *string, first *int, last *int) (alerts []*DeclineAlertForUser, totalCount int64, hasPrevious, hasNext bool, err error)

GetDeclineAlertsForUsers returns a list of decline alerts for users.

type DeclineAlertForUserConnection

type DeclineAlertForUserConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*DeclineAlertForUserEdge `json:"edges"`
	// A list of nodes.
	Nodes []*DeclineAlertForUser `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of DeclineAlertForUser

type DeclineAlertForUserEdge

type DeclineAlertForUserEdge struct {
	Cursor string               `json:"cursor"`
	Node   *DeclineAlertForUser `json:"node"`
}

Paginating the node DeclineAlertForUser

type DeclineAlertForUserStatus

type DeclineAlertForUserStatus string
const (
	DeclineAlertForUserStatusBlocked   DeclineAlertForUserStatus = "BLOCKED"
	DeclineAlertForUserStatusUnblocked DeclineAlertForUserStatus = "UNBLOCKED"
)

func (DeclineAlertForUserStatus) IsValid

func (e DeclineAlertForUserStatus) IsValid() bool

func (DeclineAlertForUserStatus) MarshalGQL

func (e DeclineAlertForUserStatus) MarshalGQL(w io.Writer)

func (DeclineAlertForUserStatus) String

func (e DeclineAlertForUserStatus) String() string

func (*DeclineAlertForUserStatus) UnmarshalGQL

func (e *DeclineAlertForUserStatus) UnmarshalGQL(v interface{}) error

type DeclineAlertForUserType

type DeclineAlertForUserType string
const (
	DeclineAlertForUserTypeAll   DeclineAlertForUserType = "ALL"
	DeclineAlertForUserTypeName  DeclineAlertForUserType = "NAME"
	DeclineAlertForUserTypeEmail DeclineAlertForUserType = "EMAIL"
)

func (DeclineAlertForUserType) IsValid

func (e DeclineAlertForUserType) IsValid() bool

func (DeclineAlertForUserType) MarshalGQL

func (e DeclineAlertForUserType) MarshalGQL(w io.Writer)

func (DeclineAlertForUserType) String

func (e DeclineAlertForUserType) String() string

func (*DeclineAlertForUserType) UnmarshalGQL

func (e *DeclineAlertForUserType) UnmarshalGQL(v interface{}) error

type DeliverPickUpType

type DeliverPickUpType string
const (
	DeliverPickUpTypeDeliverNow   DeliverPickUpType = "DELIVER_NOW"
	DeliverPickUpTypeDeliverLater DeliverPickUpType = "DELIVER_LATER"
)

func (DeliverPickUpType) IsValid

func (e DeliverPickUpType) IsValid() bool

func (DeliverPickUpType) MarshalGQL

func (e DeliverPickUpType) MarshalGQL(w io.Writer)

func (DeliverPickUpType) String

func (e DeliverPickUpType) String() string

func (*DeliverPickUpType) UnmarshalGQL

func (e *DeliverPickUpType) UnmarshalGQL(v interface{}) error

type DeliveryCharge

type DeliveryCharge struct {
	ID                              primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt                       time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt                       *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt                       time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy                       primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	LocationName                    string             `json:"locationName" bson:"locationName"`
	OrderPrice                      int                `json:"orderPrice" bson:"orderPrice"`
	OrderDeliveryChargesAboveAmount int                `json:"orderDeliveryChargesAboveAmount" bson:"orderDeliveryChargesAboveAmount"`
	OrderDeliveryChargesBelowAmount int                `json:"orderDeliveryChargesBelowAmount" bson:"orderDeliveryChargesBelowAmount"`
	FreeOrderDeliveryCharges        int                `json:"freeOrderDeliveryCharges" bson:"freeOrderDeliveryCharges"`
	FreeDeliveryRadius              int                `json:"freeDeliveryRadius" bson:"freeDeliveryRadius"`
	OrderTotal                      int                `json:"orderTotal" bson:"orderTotal"`
	IsActive                        bool               `json:"isActive" bson:"isActive"`
}

DeliveryCharge represents a delivery charge.

func CreateDeliveryCharge

func CreateDeliveryCharge(deliveryCharge DeliveryCharge) (*DeliveryCharge, error)

CreateDeliveryCharge creates new delivery charge.

func GetDeliveryChargeByID

func GetDeliveryChargeByID(ID string) (*DeliveryCharge, error)

GetDeliveryChargeByID gives the requested delivery charge using id.

func GetDeliveryCharges

func GetDeliveryCharges(filter bson.D, limit int, after *string, before *string, first *int, last *int) (deliveryCharges []*DeliveryCharge, totalCount int64, hasPrevious, hasNext bool, err error)

GetDeliveryCharges gives an array of delivery charges.

func UpdateDeliveryCharge

func UpdateDeliveryCharge(d *DeliveryCharge) (*DeliveryCharge, error)

UpdateDeliveryCharge updates the delivery charges.

func (*DeliveryCharge) MarshalBinary

func (deliveryCharge *DeliveryCharge) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*DeliveryCharge) UnmarshalBinary

func (deliveryCharge *DeliveryCharge) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type DeliveryChargeConnection

type DeliveryChargeConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*DeliveryChargeEdge `json:"edges"`
	// A list of nodes.
	Nodes []*DeliveryCharge `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of DeliveryCharges

type DeliveryChargeEdge

type DeliveryChargeEdge struct {
	Cursor string          `json:"cursor"`
	Node   *DeliveryCharge `json:"node"`
}

Paginating the node DeliveryCharges

type DeliveryChargesSearch

type DeliveryChargesSearch string
const (
	DeliveryChargesSearchAll         DeliveryChargesSearch = "ALL"
	DeliveryChargesSearchLocation    DeliveryChargesSearch = "LOCATION"
	DeliveryChargesSearchOrderAmount DeliveryChargesSearch = "ORDER_AMOUNT"
)

func (DeliveryChargesSearch) IsValid

func (e DeliveryChargesSearch) IsValid() bool

func (DeliveryChargesSearch) MarshalGQL

func (e DeliveryChargesSearch) MarshalGQL(w io.Writer)

func (DeliveryChargesSearch) String

func (e DeliveryChargesSearch) String() string

func (*DeliveryChargesSearch) UnmarshalGQL

func (e *DeliveryChargesSearch) UnmarshalGQL(v interface{}) error

type DeliveryChargesSelectStatus

type DeliveryChargesSelectStatus string
const (
	DeliveryChargesSelectStatusActive   DeliveryChargesSelectStatus = "ACTIVE"
	DeliveryChargesSelectStatusInactive DeliveryChargesSelectStatus = "INACTIVE"
	DeliveryChargesSelectStatusDelete   DeliveryChargesSelectStatus = "DELETE"
)

func (DeliveryChargesSelectStatus) IsValid

func (e DeliveryChargesSelectStatus) IsValid() bool

func (DeliveryChargesSelectStatus) MarshalGQL

func (e DeliveryChargesSelectStatus) MarshalGQL(w io.Writer)

func (DeliveryChargesSelectStatus) String

func (*DeliveryChargesSelectStatus) UnmarshalGQL

func (e *DeliveryChargesSelectStatus) UnmarshalGQL(v interface{}) error

type DeliveryChargesUtility

type DeliveryChargesUtility struct {
	ID                              primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt                       time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt                       *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt                       time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy                       primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	Location                        string             `json:"location" bson:"location"`
	OrderPrice                      int                `json:"orderPrice" bson:"orderPrice"`
	OrderDeliveryChargesAboveAmout  int                `json:"orderDeliveryChargesAboveAmout" bson:"orderDeliveryChargesAboveAmout"`
	OrderDeliveryChargesBelowAmount int                `json:"orderDeliveryChargesBelowAmount" bson:"orderDeliveryChargesBelowAmount"`
	FreeOrderDeliveryCharges        int                `json:"freeOrderDeliveryCharges" bson:"freeOrderDeliveryCharges"`
	FreeDeliveryRadius              int                `json:"freeDeliveryRadius" bson:"freeDeliveryRadius"`
	IsActive                        bool               `json:"isActive" bson:"isActive"`
}

DeliveryChargesUtility represents delivery charge utility.

func CreateDeliveryChargesUtility

func CreateDeliveryChargesUtility(deliveryChargesUtility DeliveryChargesUtility) (*DeliveryChargesUtility, error)

CreateDeliveryChargesUtility creates new delivery charge utility.

func GetDeliveryChargesUtilities

func GetDeliveryChargesUtilities(filter bson.D, limit int, after *string, before *string, first *int, last *int) (deliveryChargesUtilities []*DeliveryChargesUtility, totalCount int64, hasPrevious, hasNext bool, err error)

GetDeliveryChargesUtilities returns a list of delivery charge utilities.

func GetDeliveryChargesUtilityByID

func GetDeliveryChargesUtilityByID(ID string) (*DeliveryChargesUtility, error)

GetDeliveryChargesUtilityByID returns requested delivery charge utility by id.

func UpdateDeliveryChargesUtility

func UpdateDeliveryChargesUtility(c *DeliveryChargesUtility) (*DeliveryChargesUtility, error)

UpdateDeliveryChargesUtility updates delivery charge utility.

func (*DeliveryChargesUtility) MarshalBinary

func (deliveryChargesUtility *DeliveryChargesUtility) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*DeliveryChargesUtility) UnmarshalBinary

func (deliveryChargesUtility *DeliveryChargesUtility) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type DeliveryChargesUtilityConnection

type DeliveryChargesUtilityConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*DeliveryChargesUtilityEdge `json:"edges"`
	// A list of nodes.
	Nodes []*DeliveryChargesUtility `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of DeliveryChargesUtility

type DeliveryChargesUtilityEdge

type DeliveryChargesUtilityEdge struct {
	Cursor string                  `json:"cursor"`
	Node   *DeliveryChargesUtility `json:"node"`
}

Paginating the node DeliveryChargesUtility

type DeliveryChargesUtilityStatus

type DeliveryChargesUtilityStatus string
const (
	DeliveryChargesUtilityStatusActive   DeliveryChargesUtilityStatus = "ACTIVE"
	DeliveryChargesUtilityStatusInactive DeliveryChargesUtilityStatus = "INACTIVE"
	DeliveryChargesUtilityStatusDeleted  DeliveryChargesUtilityStatus = "DELETED"
)

func (DeliveryChargesUtilityStatus) IsValid

func (e DeliveryChargesUtilityStatus) IsValid() bool

func (DeliveryChargesUtilityStatus) MarshalGQL

func (e DeliveryChargesUtilityStatus) MarshalGQL(w io.Writer)

func (DeliveryChargesUtilityStatus) String

func (*DeliveryChargesUtilityStatus) UnmarshalGQL

func (e *DeliveryChargesUtilityStatus) UnmarshalGQL(v interface{}) error

type DeliveryChargesUtilityType

type DeliveryChargesUtilityType string
const (
	DeliveryChargesUtilityTypeAll         DeliveryChargesUtilityType = "ALL"
	DeliveryChargesUtilityTypeLocation    DeliveryChargesUtilityType = "LOCATION"
	DeliveryChargesUtilityTypeOrderAmount DeliveryChargesUtilityType = "ORDER_AMOUNT"
)

func (DeliveryChargesUtilityType) IsValid

func (e DeliveryChargesUtilityType) IsValid() bool

func (DeliveryChargesUtilityType) MarshalGQL

func (e DeliveryChargesUtilityType) MarshalGQL(w io.Writer)

func (DeliveryChargesUtilityType) String

func (*DeliveryChargesUtilityType) UnmarshalGQL

func (e *DeliveryChargesUtilityType) UnmarshalGQL(v interface{}) error

type DeliveryDetailsInput

type DeliveryDetailsInput struct {
	PackageType           string             `json:"packageType"`
	RecipientName         string             `json:"recipientName"`
	RecipientMobileNumber int                `json:"recipientMobileNumber"`
	PickUpLocation        *AddAddressInput   `json:"pickUpLocation"`
	DropOffLocation       *AddAddressInput   `json:"dropOffLocation"`
	PickUpInstructions    *string            `json:"pickUpInstructions"`
	DeliveryInstructions  *string            `json:"deliveryInstructions"`
	PackageDetails        *string            `json:"packageDetails"`
	PickUpType            *DeliverPickUpType `json:"pickUpType"`
	DeliverLater          time.Time          `json:"deliverLater"`
}

type DeliveryVehicleSearchType

type DeliveryVehicleSearchType string
const (
	DeliveryVehicleSearchTypeAll                             DeliveryVehicleSearchType = "ALL"
	DeliveryVehicleSearchTypeVehicleType                     DeliveryVehicleSearchType = "VEHICLE_TYPE"
	DeliveryVehicleSearchTypeDeliveryChargeForCompletedOrder DeliveryVehicleSearchType = "DELIVERY_CHARGE_FOR_COMPLETED_ORDER"
	DeliveryVehicleSearchTypeDeliveryChargeForCancelledOrder DeliveryVehicleSearchType = "DELIVERY_CHARGE_FOR_CANCELLED_ORDER"
	DeliveryVehicleSearchTypeDeliveryRadius                  DeliveryVehicleSearchType = "DELIVERY_RADIUS"
)

func (DeliveryVehicleSearchType) IsValid

func (e DeliveryVehicleSearchType) IsValid() bool

func (DeliveryVehicleSearchType) MarshalGQL

func (e DeliveryVehicleSearchType) MarshalGQL(w io.Writer)

func (DeliveryVehicleSearchType) String

func (e DeliveryVehicleSearchType) String() string

func (*DeliveryVehicleSearchType) UnmarshalGQL

func (e *DeliveryVehicleSearchType) UnmarshalGQL(v interface{}) error

type DeliveryVehicleType

type DeliveryVehicleType struct {
	ID                              primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt                       time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt                       *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt                       time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy                       primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	VehicleType                     string             `json:"vehicleType" bson:"vehicleType"`
	Location                        string             `json:"location" bson:"location"`
	DeliveryChargeForCompletedOrder float64            `json:"deliveryChargeForCompletedOrder" bson:"deliveryChargeForCompletedOrder"`
	DeliveryChargeForCancelledOrder float64            `json:"deliveryChargeForCancelledOrder" bson:"deliveryChargeForCancelledOrder"`
	DeliveryRadius                  float64            `json:"deliveryRadius" bson:"deliveryRadius"`
	Order                           int                `json:"order" bson:"order"`
	IsActive                        bool               `json:"isActive" bson:"isActive"`
}

DeliveryVehicleType represents a delivery vehicle type.

func CreateDeliveryVehicleType

func CreateDeliveryVehicleType(deliveryVehicleType DeliveryVehicleType) (*DeliveryVehicleType, error)

CreateDeliveryVehicleType creates new delivery vehicle types.

func GetDeliveryVehicleTypeByID

func GetDeliveryVehicleTypeByID(ID string) (*DeliveryVehicleType, error)

GetDeliveryVehicleTypeByID gives the requested delivery vehicle type using id.

func GetDeliveryVehicleTypes

func GetDeliveryVehicleTypes(filter bson.D, limit int, after *string, before *string, first *int, last *int) (deliveryVehicleTypes []*DeliveryVehicleType, totalCount int64, hasPrevious, hasNext bool, err error)

GetDeliveryVehicleTypes gives an array of delivery vehicle types.

func UpdateDeliveryVehicleType

func UpdateDeliveryVehicleType(c *DeliveryVehicleType) (*DeliveryVehicleType, error)

UpdateDeliveryVehicleType updates the delivery vehicle type.

func (*DeliveryVehicleType) MarshalBinary

func (deliveryVehicleType *DeliveryVehicleType) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*DeliveryVehicleType) UnmarshalBinary

func (deliveryVehicleType *DeliveryVehicleType) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type DeliveryVehicleTypeConnection

type DeliveryVehicleTypeConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*DeliveryVehicleTypeEdge `json:"edges"`
	// A list of nodes.
	Nodes []*DeliveryVehicleType `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of DeliveryVehicleType

type DeliveryVehicleTypeEdge

type DeliveryVehicleTypeEdge struct {
	Cursor string               `json:"cursor"`
	Node   *DeliveryVehicleType `json:"node"`
}

Paginating the node DeliveryVehicleType

type DeliveryVehicleTypeStatus

type DeliveryVehicleTypeStatus string
const (
	DeliveryVehicleTypeStatusActive   DeliveryVehicleTypeStatus = "ACTIVE"
	DeliveryVehicleTypeStatusInactive DeliveryVehicleTypeStatus = "INACTIVE"
	DeliveryVehicleTypeStatusDeleted  DeliveryVehicleTypeStatus = "DELETED"
)

func (DeliveryVehicleTypeStatus) IsValid

func (e DeliveryVehicleTypeStatus) IsValid() bool

func (DeliveryVehicleTypeStatus) MarshalGQL

func (e DeliveryVehicleTypeStatus) MarshalGQL(w io.Writer)

func (DeliveryVehicleTypeStatus) String

func (e DeliveryVehicleTypeStatus) String() string

func (*DeliveryVehicleTypeStatus) UnmarshalGQL

func (e *DeliveryVehicleTypeStatus) UnmarshalGQL(v interface{}) error

type DeliveryVerificationMethod

type DeliveryVerificationMethod string
const (
	DeliveryVerificationMethodSignature DeliveryVerificationMethod = "SIGNATURE"
	DeliveryVerificationMethodCode      DeliveryVerificationMethod = "CODE"
	DeliveryVerificationMethodNone      DeliveryVerificationMethod = "NONE"
)

func (DeliveryVerificationMethod) IsValid

func (e DeliveryVerificationMethod) IsValid() bool

func (DeliveryVerificationMethod) MarshalGQL

func (e DeliveryVerificationMethod) MarshalGQL(w io.Writer)

func (DeliveryVerificationMethod) String

func (*DeliveryVerificationMethod) UnmarshalGQL

func (e *DeliveryVerificationMethod) UnmarshalGQL(v interface{}) error

type DeviceType

type DeviceType string
const (
	DeviceTypeAndroid DeviceType = "ANDROID"
	DeviceTypeIos     DeviceType = "IOS"
)

func (DeviceType) IsValid

func (e DeviceType) IsValid() bool

func (DeviceType) MarshalGQL

func (e DeviceType) MarshalGQL(w io.Writer)

func (DeviceType) String

func (e DeviceType) String() string

func (*DeviceType) UnmarshalGQL

func (e *DeviceType) UnmarshalGQL(v interface{}) error

type Discount

type Discount struct {
	Coupon       *Coupon   `json:"coupon"`
	Customer     string    `json:"customer"`
	Deleted      bool      `json:"deleted"`
	End          time.Time `json:"end"`
	Start        time.Time `json:"start"`
	Subscription string    `json:"subscription"`
}

type DisplayPrice

type DisplayPrice struct {
	PriceWithTax    int `json:"priceWithTax"`
	PriceWithoutTax int `json:"priceWithoutTax"`
}

type DistanceUnits

type DistanceUnits string
const (
	DistanceUnitsKms   DistanceUnits = "KMS"
	DistanceUnitsMiles DistanceUnits = "MILES"
)

func (DistanceUnits) IsValid

func (e DistanceUnits) IsValid() bool

func (DistanceUnits) MarshalGQL

func (e DistanceUnits) MarshalGQL(w io.Writer)

func (DistanceUnits) String

func (e DistanceUnits) String() string

func (*DistanceUnits) UnmarshalGQL

func (e *DistanceUnits) UnmarshalGQL(v interface{}) error

type Document

type Document struct {
	ID           primitive.ObjectID   `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt    time.Time            `json:"createdAt" bson:"createdAt"`
	DeletedAt    *time.Time           `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt    time.Time            `json:"updatedAt" bson:"updatedAt"`
	CreatedBy    primitive.ObjectID   `json:"createdBy" bson:"createdBy"`
	ExpiryDate   time.Time            `json:"expiryDate" bson:"expiryDate"`
	Name         string               `json:"name" bson:"name"`
	URL          string               `json:"url" bson:"url"`
	BelongsTo    string               `json:"belongsTo" bson:"belongsTo"`
	UploaderType DocumentUploaderType `json:"uploaderType" bson:"uploaderType"`
	IsActive     bool                 `json:"isActive" bson:"isActive"`
}

Document represents a document.

func CreateDocument

func CreateDocument(document Document) (*Document, error)

CreateDocument creates new documents.

func GetDocumentByID

func GetDocumentByID(ID string) (*Document, error)

GetDocumentByID gives the requested document using id.

func GetDocuments

func GetDocuments(filter bson.D, limit int, after *string, before *string, first *int, last *int) (documents []*Document, totalCount int64, hasPrevious, hasNext bool, err error)

GetDocuments gives an array of documents.

func UpdateDocument

func UpdateDocument(c *Document) (*Document, error)

UpdateDocument updates the documents.

func (*Document) MarshalBinary

func (document *Document) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*Document) UnmarshalBinary

func (document *Document) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type DocumentConnection

type DocumentConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*DocumentEdge `json:"edges"`
	// A list of nodes.
	Nodes []*Document `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of Document

type DocumentEdge

type DocumentEdge struct {
	Cursor string    `json:"cursor"`
	Node   *Document `json:"node"`
}

Paginating the node Document

type DocumentFor

type DocumentFor string
const (
	DocumentForCar      DocumentFor = "CAR"
	DocumentForCompany  DocumentFor = "COMPANY"
	DocumentForProvider DocumentFor = "PROVIDER"
	DocumentForStore    DocumentFor = "STORE"
)

func (DocumentFor) IsValid

func (e DocumentFor) IsValid() bool

func (DocumentFor) MarshalGQL

func (e DocumentFor) MarshalGQL(w io.Writer)

func (DocumentFor) String

func (e DocumentFor) String() string

func (*DocumentFor) UnmarshalGQL

func (e *DocumentFor) UnmarshalGQL(v interface{}) error

type DocumentType

type DocumentType string
const (
	DocumentTypeAll          DocumentType = "ALL"
	DocumentTypeCountry      DocumentType = "COUNTRY"
	DocumentTypeDocumentName DocumentType = "DOCUMENT_NAME"
	DocumentTypeDocumentFor  DocumentType = "DOCUMENT_FOR"
	DocumentTypeStatus       DocumentType = "STATUS"
)

func (DocumentType) IsValid

func (e DocumentType) IsValid() bool

func (DocumentType) MarshalGQL

func (e DocumentType) MarshalGQL(w io.Writer)

func (DocumentType) String

func (e DocumentType) String() string

func (*DocumentType) UnmarshalGQL

func (e *DocumentType) UnmarshalGQL(v interface{}) error

type DocumentUploaderType

type DocumentUploaderType string
const (
	DocumentUploaderTypeUser                   DocumentUploaderType = "USER"
	DocumentUploaderTypeServiceProvider        DocumentUploaderType = "SERVICE_PROVIDER"
	DocumentUploaderTypeServiceProviderCompany DocumentUploaderType = "SERVICE_PROVIDER_COMPANY"
	DocumentUploaderTypeRestaurant             DocumentUploaderType = "RESTAURANT"
	DocumentUploaderTypeGroceryStore           DocumentUploaderType = "GROCERY_STORE"
	DocumentUploaderTypeWineStore              DocumentUploaderType = "WINE_STORE"
)

func (DocumentUploaderType) IsValid

func (e DocumentUploaderType) IsValid() bool

func (DocumentUploaderType) MarshalGQL

func (e DocumentUploaderType) MarshalGQL(w io.Writer)

func (DocumentUploaderType) String

func (e DocumentUploaderType) String() string

func (*DocumentUploaderType) UnmarshalGQL

func (e *DocumentUploaderType) UnmarshalGQL(v interface{}) error

type EmailMessage

type EmailMessage struct {
	From        string      `json:"from" bson:"from"`
	To          string      `json:"to" bson:"to"`
	TemplateID  string      `json:"templateId" bson:"templateId"`
	Language    string      `json:"language" bson:"language"`
	Data        interface{} `json:"data" bson:"data"`
	Attachments []string    `json:"attachments" bson:"attachments"`
}

EmailMessage represents a email message.

type EmailSetting

type EmailSetting struct {
	EmailFromName string `json:"emailFromName"`
	AdminEmail    string `json:"adminEmail"`
	NoReplyEmail  string `json:"noReplyEmail"`
}

type EmailSettingInput

type EmailSettingInput struct {
	EmailFromName string `json:"emailFromName"`
	AdminEmail    string `json:"adminEmail"`
	NoReplyEmail  string `json:"noReplyEmail"`
}

type EmailTemplate

type EmailTemplate struct {
	ID         primitive.ObjectID `json:"_id,omitempty" bson:"_id,omitempty"`
	CreatedAt  time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt  *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt  time.Time          `json:"updatedAt"bson:"updatedAt"`
	CreatedBy  primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	Subject    string             `json:"subject" bson:"subject"`
	From       string             `json:"from" bson:"from"`
	HTMLBody   string             `json:"htmlBody" bson:"htmlBody"`
	TextBody   string             `json:"textBody" bson:"textBody"`
	Purpose    string             `json:"purpose" bson:"purpose" `
	Language   string             `json:"language" bson:"language"`
	TemplateID string             `json:"templateId" bson:"templateId"`
}

EmailTemplate represents a email template.

func CreateEmailTemplate

func CreateEmailTemplate(emailTemplate *EmailTemplate) (*EmailTemplate, error)

CreateEmailTemplate creates new email templates.

func GetEmailContents

func GetEmailContents(templateID string, language string) *EmailTemplate

GetEmailContents returns email contents.

func GetEmailTemplateByFilter

func GetEmailTemplateByFilter(filter bson.D) (*EmailTemplate, error)

GetEmailTemplateByFilter gives the email template after a specified filter.

func GetEmailTemplateByID

func GetEmailTemplateByID(ID string) (*EmailTemplate, error)

GetEmailTemplateByID gives the requested email template using id.

func GetEmailTemplates

func GetEmailTemplates(filter bson.D, limit int, after *string, before *string, first *int, last *int) (emailTemplates []*EmailTemplate, totalCount int64, hasPrevious, hasNext bool, err error)

GetEmailTemplates gives an array of email templates.

func UpdateEmailTemplate

func UpdateEmailTemplate(e *EmailTemplate) (*EmailTemplate, error)

UpdateEmailTemplate updates email templates.

func (*EmailTemplate) MarshalBinary

func (et *EmailTemplate) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*EmailTemplate) UnmarshalBinary

func (et *EmailTemplate) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type EmailTemplateConnection

type EmailTemplateConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*EmailTemplateEdge `json:"edges"`
	// A list of nodes.
	Nodes []*EmailTemplate `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of EmailTemplate

type EmailTemplateEdge

type EmailTemplateEdge struct {
	Cursor string         `json:"cursor"`
	Node   *EmailTemplate `json:"node"`
}

Paginating the node EmailTemplate

type EmailTemplateSearchType

type EmailTemplateSearchType string
const (
	EmailTemplateSearchTypeAll          EmailTemplateSearchType = "ALL"
	EmailTemplateSearchTypeEmailSubject EmailTemplateSearchType = "EMAIL_SUBJECT"
	EmailTemplateSearchTypePurpose      EmailTemplateSearchType = "PURPOSE"
)

func (EmailTemplateSearchType) IsValid

func (e EmailTemplateSearchType) IsValid() bool

func (EmailTemplateSearchType) MarshalGQL

func (e EmailTemplateSearchType) MarshalGQL(w io.Writer)

func (EmailTemplateSearchType) String

func (e EmailTemplateSearchType) String() string

func (*EmailTemplateSearchType) UnmarshalGQL

func (e *EmailTemplateSearchType) UnmarshalGQL(v interface{}) error

type EmergencyContact

type EmergencyContact struct {
	ID        primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt time.Time          `json:"createdAt" bson:"createdAt" `
	DeletedAt *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	Name      string             `json:"name" bson:"name"`
	MobileNo  int                `json:"mobileNo" bson:"mobileNo"`
	EmailID   string             `json:"emailID" bson:"emailID"`
}

EmergencyContact represents a emergency contact.

func CreateEmergencyContact

func CreateEmergencyContact(emergencyContact EmergencyContact) (*EmergencyContact, error)

CreateEmergencyContact creates new emergency contact.

func GetEmergencyContactByID

func GetEmergencyContactByID(ID string) (*EmergencyContact, error)

GetEmergencyContactByID gets emergency Contact by ID.

func GetEmergencyContacts

func GetEmergencyContacts(filter bson.D, limit int, after *string, before *string, first *int, last *int) (emergencyContacts []*EmergencyContact, totalCount int64, hasPrevious, hasNext bool, err error)

GetEmergencyContacts gets the array of emergency contacts.

func UpdateEmergencyContact

func UpdateEmergencyContact(emergencyContact *EmergencyContact) (*EmergencyContact, error)

UpdateEmergencyContact updates the emergency contact.

func (*EmergencyContact) MarshalBinary

func (emergencyContact *EmergencyContact) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*EmergencyContact) UnmarshalBinary

func (emergencyContact *EmergencyContact) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type EmergencyContactConnection

type EmergencyContactConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*EmergencyContactEdge `json:"edges"`
	// A list of nodes.
	Nodes []*EmergencyContact `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of EmergencyContacts

type EmergencyContactEdge

type EmergencyContactEdge struct {
	Cursor string            `json:"cursor"`
	Node   *EmergencyContact `json:"node"`
}

Paginating the node EmergencyContact

type EnterpriseAccount

type EnterpriseAccount struct {
	ID               primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt        time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt        *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt        time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy        primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	OrganizationName string             `json:"organizationName" bson:"organizationName"`
	OrganizationType string             `json:"organizationType" bson:"organizationType"`
	PaymentMethod    string             `json:"paymentMethod" bson:"paymentMethod"`
	Email            string             `json:"email" bson:"email"`
	Country          string             `json:"country" bson:"country"`
	State            string             `json:"state" bson:"state"`
	City             string             `json:"city" bson:"city"`
	Address          Address            `json:"address" bson:"address"`
	ZipCode          string             `json:"zipCode" bson:"zipCode"`
	Language         string             `json:"language" bson:"language"`
	PaymentBy        PaymentBy          `json:"paymentBy" bson:"paymentBy"`
	Phone            string             `json:"phone" bson:"phone"`
	IsActive         bool               `json:"isActive" bson:"isActive"`
}

EnterpriseAccount represents a enterprise account.

func CreateEnterpriseAccount

func CreateEnterpriseAccount(enterpriseAccount EnterpriseAccount) (*EnterpriseAccount, error)

CreateEnterpriseAccount creates new enterprise accounts.

func GetEnterpriseAccountByID

func GetEnterpriseAccountByID(ID string) (*EnterpriseAccount, error)

GetEnterpriseAccountByID gives requested enterprise account using id.

func GetEnterpriseAccounts

func GetEnterpriseAccounts(filter bson.D, limit int, after *string, before *string, first *int, last *int) (enterpriseAccounts []*EnterpriseAccount, totalCount int64, hasPrevious, hasNext bool, err error)

GetEnterpriseAccounts gives an array of enterprise accounts.

func UpdateEnterpriseAccount

func UpdateEnterpriseAccount(c *EnterpriseAccount) (*EnterpriseAccount, error)

UpdateEnterpriseAccount updates the enterprise accounts.

func (*EnterpriseAccount) MarshalBinary

func (enterpriseAccount *EnterpriseAccount) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*EnterpriseAccount) UnmarshalBinary

func (enterpriseAccount *EnterpriseAccount) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type EnterpriseAccountConnection

type EnterpriseAccountConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*EnterpriseAccountEdge `json:"edges"`
	// A list of nodes.
	Nodes []*EnterpriseAccount `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of Enterprise account connection

type EnterpriseAccountEdge

type EnterpriseAccountEdge struct {
	Cursor string             `json:"cursor"`
	Node   *EnterpriseAccount `json:"node"`
}

Paginating the node Enterprise Account

type EnterpriseAccountPaymentReport

type EnterpriseAccountPaymentReport struct {
	ID                        primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt                 time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt                 *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt                 time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy                 primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	JobType                   string             `json:"jobType" bson:"jobType"`
	RideJobNo                 string             `json:"rideJobNo" bson:"rideJobNo"`
	User                      string             `json:"user" bson:"user"`
	JobDate                   string             `json:"jobDate" bson:"jobDate"`
	TotalFare                 string             `json:"totalFare" bson:"totalFare"`
	PlatformFees              string             `json:"platformFees" bson:"platformFees"`
	WalletDebit               string             `json:"walletDebit" bson:"walletDebit"`
	Tip                       string             `json:"tip" bson:"tip"`
	JobOutstandingAmount      string             `json:"jobOutstandingAmount" bson:"jobOutstandingAmount"`
	OrganizationPayAmount     string             `json:"organizationPayAmount" bson:"organizationPayAmount"`
	JobStatus                 string             `json:"jobStatus" bson:"jobStatus"`
	PaymentMethod             string             `json:"paymentMethod" bson:"paymentMethod"`
	OrganizationPaymentStatus string             `json:"organizationPaymentStatus" bson:"organizationPaymentStatus"`
	CancelledRideJobNo        string             `json:"cancelledRideJobNo" bson:"cancelledRideJobNo"`
	Organization              string             `json:"organization" bson:"organization"`
	Provider                  string             `json:"provider" bson:"provider"`
	TotalCancellationFees     string             `json:"totalCancellationFees" bson:"totalCancellationFees"`
	ProviderPaymentStatus     string             `json:"providerPaymentStatus" bson:"providerPaymentStatus"`
	IsActive                  bool               `json:"isActive" bson:"isActive"`
}

EnterpriseAccountPaymentReport represents enterprise account payment report.

func GetEnterpriseAccountPaymentReportByID

func GetEnterpriseAccountPaymentReportByID(ID string) (*EnterpriseAccountPaymentReport, error)

GetEnterpriseAccountPaymentReportByID gives the request enterprise account payment report by ID

func GetEnterpriseAccountPaymentReports

func GetEnterpriseAccountPaymentReports(filter bson.D, limit int, after *string, before *string, first *int, last *int) (enterpriseAccountReports []*EnterpriseAccountPaymentReport, totalCount int64, hasPrevious, hasNext bool, err error)

GetEnterpriseAccountPaymentReports gives an array of enterprise account payment reports

func (*EnterpriseAccountPaymentReport) MarshalBinary

func (enterpriseAccountPaymentReport *EnterpriseAccountPaymentReport) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*EnterpriseAccountPaymentReport) UnmarshalBinary

func (enterpriseAccountPaymentReport *EnterpriseAccountPaymentReport) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type EnterpriseAccountPaymentReportConnection

type EnterpriseAccountPaymentReportConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*EnterpriseAccountPaymentReportEdge `json:"edges"`
	// A list of nodes.
	Nodes []*EnterpriseAccountPaymentReport `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of EnterpriseAccountPaymentReport

type EnterpriseAccountPaymentReportEdge

type EnterpriseAccountPaymentReportEdge struct {
	Cursor string                          `json:"cursor"`
	Node   *EnterpriseAccountPaymentReport `json:"node"`
}

Paginating the node EnterpriseAccountPaymentReport

type EnterpriseAccountPaymentReportSelectProviderPaymentStatus

type EnterpriseAccountPaymentReportSelectProviderPaymentStatus string
const (
	EnterpriseAccountPaymentReportSelectProviderPaymentStatusSettled   EnterpriseAccountPaymentReportSelectProviderPaymentStatus = "SETTLED"
	EnterpriseAccountPaymentReportSelectProviderPaymentStatusUnsettled EnterpriseAccountPaymentReportSelectProviderPaymentStatus = "UNSETTLED"
)

func (EnterpriseAccountPaymentReportSelectProviderPaymentStatus) IsValid

func (EnterpriseAccountPaymentReportSelectProviderPaymentStatus) MarshalGQL

func (EnterpriseAccountPaymentReportSelectProviderPaymentStatus) String

func (*EnterpriseAccountPaymentReportSelectProviderPaymentStatus) UnmarshalGQL

type EnterpriseAccountPaymentReportSelectUserPaymentStatus

type EnterpriseAccountPaymentReportSelectUserPaymentStatus string
const (
	EnterpriseAccountPaymentReportSelectUserPaymentStatusPaidByUserYes EnterpriseAccountPaymentReportSelectUserPaymentStatus = "PAID_BY_USER_YES"
	EnterpriseAccountPaymentReportSelectUserPaymentStatusPaidByUserNo  EnterpriseAccountPaymentReportSelectUserPaymentStatus = "PAID_BY_USER_NO"
)

func (EnterpriseAccountPaymentReportSelectUserPaymentStatus) IsValid

func (EnterpriseAccountPaymentReportSelectUserPaymentStatus) MarshalGQL

func (EnterpriseAccountPaymentReportSelectUserPaymentStatus) String

func (*EnterpriseAccountPaymentReportSelectUserPaymentStatus) UnmarshalGQL

func (e *EnterpriseAccountPaymentReportSelectUserPaymentStatus) UnmarshalGQL(v interface{}) error

type EnterpriseAccountPaymentReportServiceType

type EnterpriseAccountPaymentReportServiceType string
const (
	EnterpriseAccountPaymentReportServiceTypeRide       EnterpriseAccountPaymentReportServiceType = "RIDE"
	EnterpriseAccountPaymentReportServiceTypeRentalRide EnterpriseAccountPaymentReportServiceType = "RENTAL_RIDE"
	EnterpriseAccountPaymentReportServiceTypeRidePool   EnterpriseAccountPaymentReportServiceType = "RIDE_POOL"
)

func (EnterpriseAccountPaymentReportServiceType) IsValid

func (EnterpriseAccountPaymentReportServiceType) MarshalGQL

func (EnterpriseAccountPaymentReportServiceType) String

func (*EnterpriseAccountPaymentReportServiceType) UnmarshalGQL

func (e *EnterpriseAccountPaymentReportServiceType) UnmarshalGQL(v interface{}) error

type EnterpriseAccountSearchType

type EnterpriseAccountSearchType string
const (
	EnterpriseAccountSearchTypeAll              EnterpriseAccountSearchType = "ALL"
	EnterpriseAccountSearchTypeOrganizationName EnterpriseAccountSearchType = "ORGANIZATION_NAME"
	EnterpriseAccountSearchTypeOrganizationType EnterpriseAccountSearchType = "ORGANIZATION_TYPE"
	EnterpriseAccountSearchTypeEmail            EnterpriseAccountSearchType = "EMAIL"
	EnterpriseAccountSearchTypeMobile           EnterpriseAccountSearchType = "MOBILE"
)

func (EnterpriseAccountSearchType) IsValid

func (e EnterpriseAccountSearchType) IsValid() bool

func (EnterpriseAccountSearchType) MarshalGQL

func (e EnterpriseAccountSearchType) MarshalGQL(w io.Writer)

func (EnterpriseAccountSearchType) String

func (*EnterpriseAccountSearchType) UnmarshalGQL

func (e *EnterpriseAccountSearchType) UnmarshalGQL(v interface{}) error

type EnterpriseAccountStatus

type EnterpriseAccountStatus string
const (
	EnterpriseAccountStatusActive   EnterpriseAccountStatus = "ACTIVE"
	EnterpriseAccountStatusInactive EnterpriseAccountStatus = "INACTIVE"
	EnterpriseAccountStatusDelete   EnterpriseAccountStatus = "DELETE"
)

func (EnterpriseAccountStatus) IsValid

func (e EnterpriseAccountStatus) IsValid() bool

func (EnterpriseAccountStatus) MarshalGQL

func (e EnterpriseAccountStatus) MarshalGQL(w io.Writer)

func (EnterpriseAccountStatus) String

func (e EnterpriseAccountStatus) String() string

func (*EnterpriseAccountStatus) UnmarshalGQL

func (e *EnterpriseAccountStatus) UnmarshalGQL(v interface{}) error

type EnterpriseAccountType

type EnterpriseAccountType string
const (
	EnterpriseAccountTypeBusiness EnterpriseAccountType = "BUSINESS"
)

func (EnterpriseAccountType) IsValid

func (e EnterpriseAccountType) IsValid() bool

func (EnterpriseAccountType) MarshalGQL

func (e EnterpriseAccountType) MarshalGQL(w io.Writer)

func (EnterpriseAccountType) String

func (e EnterpriseAccountType) String() string

func (*EnterpriseAccountType) UnmarshalGQL

func (e *EnterpriseAccountType) UnmarshalGQL(v interface{}) error

type FAQ

type FAQ struct {
	ID           primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt    time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt    *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt    time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy    primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	Category     primitive.ObjectID `json:"category" bson:"category"`
	DisplayOrder int                `json:"displayOrder" bson:"displayOrder"`
	Question     string             `json:"question" bson:"question"`
	Answer       string             `json:"answer" bson:"answer"`
	IsActive     bool               `json:"isActive" bson:"isActive"`
}

FAQ represents an faq.

func CreateFAQ

func CreateFAQ(faq FAQ) (*FAQ, error)

CreateFAQ creates new faqs.

func GetFAQByID

func GetFAQByID(ID string) (*FAQ, error)

GetFAQByID gives the requested faq using id.

func GetFAQs

func GetFAQs(filter bson.D, limit int, after *string, before *string, first *int, last *int) (faqs []*FAQ, totalCount int64, hasPrevious, hasNext bool, err error)

GetFAQs gives an array of faqs.

func UpdateFAQ

func UpdateFAQ(c *FAQ) (*FAQ, error)

UpdateFAQ updates faq.

func (*FAQ) MarshalBinary

func (faq *FAQ) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*FAQ) UnmarshalBinary

func (faq *FAQ) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type FAQCategory

type FAQCategory struct {
	ID           primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt    time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt    *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt    time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy    primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	DisplayOrder int                `json:"displayOrder" bson:"displayOrder"`
	Label        string             `json:"label" bson:"label"`
	IsActive     bool               `json:"isActive" bson:"isActive"`
}

FAQCategory represents a faq category.

func CreateFAQCategory

func CreateFAQCategory(faqCategory FAQCategory) (*FAQCategory, error)

CreateFAQCategory creates new faq categories.

func GetFAQCategories

func GetFAQCategories(filter bson.D, limit int, after *string, before *string, first *int, last *int) (faqCategories []*FAQCategory, totalCount int64, hasPrevious, hasNext bool, err error)

GetFAQCategories gives an array of faq categories.

func GetFAQCategoryByID

func GetFAQCategoryByID(ID string) (*FAQCategory, error)

GetFAQCategoryByID gives the requested faq using id.

func UpdateFAQCategory

func UpdateFAQCategory(c *FAQCategory) (*FAQCategory, error)

UpdateFAQCategory updates the faq cateories.

func (*FAQCategory) MarshalBinary

func (faqCategory *FAQCategory) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*FAQCategory) UnmarshalBinary

func (faqCategory *FAQCategory) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type FAQCategoryConnection

type FAQCategoryConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*FAQCategoryEdge `json:"edges"`
	// A list of nodes.
	Nodes []*FAQCategory `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of FAQCategory

type FAQCategoryEdge

type FAQCategoryEdge struct {
	Cursor string       `json:"cursor"`
	Node   *FAQCategory `json:"node"`
}

Paginating the node FAQCategory

type FAQCategorySearchType

type FAQCategorySearchType string
const (
	FAQCategorySearchTypeAll    FAQCategorySearchType = "ALL"
	FAQCategorySearchTypeTitle  FAQCategorySearchType = "TITLE"
	FAQCategorySearchTypeOrder  FAQCategorySearchType = "ORDER"
	FAQCategorySearchTypeStatus FAQCategorySearchType = "STATUS"
)

func (FAQCategorySearchType) IsValid

func (e FAQCategorySearchType) IsValid() bool

func (FAQCategorySearchType) MarshalGQL

func (e FAQCategorySearchType) MarshalGQL(w io.Writer)

func (FAQCategorySearchType) String

func (e FAQCategorySearchType) String() string

func (*FAQCategorySearchType) UnmarshalGQL

func (e *FAQCategorySearchType) UnmarshalGQL(v interface{}) error

type FAQConnection

type FAQConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*FAQEdge `json:"edges"`
	// A list of nodes.
	Nodes []*FAQ `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of FAQ

type FAQEdge

type FAQEdge struct {
	Cursor string `json:"cursor"`
	Node   *FAQ   `json:"node"`
}

Paginating the node FAQ

type FAQType

type FAQType string
const (
	FAQTypeAll      FAQType = "ALL"
	FAQTypeTitle    FAQType = "TITLE"
	FAQTypeCategory FAQType = "CATEGORY"
	FAQTypeOrder    FAQType = "ORDER"
	FAQTypeStatus   FAQType = "STATUS"
)

func (FAQType) IsValid

func (e FAQType) IsValid() bool

func (FAQType) MarshalGQL

func (e FAQType) MarshalGQL(w io.Writer)

func (FAQType) String

func (e FAQType) String() string

func (*FAQType) UnmarshalGQL

func (e *FAQType) UnmarshalGQL(v interface{}) error

type FareType

type FareType string
const (
	FareTypeFixed           FareType = "FIXED"
	FareTypeHourly          FareType = "HOURLY"
	FareTypeTimeAndDistance FareType = "TIME_AND_DISTANCE"
)

func (FareType) IsValid

func (e FareType) IsValid() bool

func (FareType) MarshalGQL

func (e FareType) MarshalGQL(w io.Writer)

func (FareType) String

func (e FareType) String() string

func (*FareType) UnmarshalGQL

func (e *FareType) UnmarshalGQL(v interface{}) error

type FeeLines

type FeeLines struct {
	ID        primitive.ObjectID `json:"id"`
	Name      string             `json:"name"`
	TaxClass  string             `json:"taxClass"`
	TaxStatus string             `json:"taxStatus"`
	Total     string             `json:"total"`
	TotalTax  string             `json:"totalTax"`
	Taxes     *Taxes             `json:"taxes"`
	MetaData  *MetaData          `json:"metaData"`
}

type File

type File struct {
	ID   string `json:"id"`
	Name string `json:"name"`
	URL  string `json:"url"`
}

The `File` type represents the response of uploading a file.

type FoodDeliveryLabel

type FoodDeliveryLabel struct {
	ID                     primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt              time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt              *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt              time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy              primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	Code                   string             `json:"code" bson:"code"`
	ValueInEnglishLanguage string             `json:"valueInEnglishLanguage" bson:"valueInEnglishLanguage"`
	LanguageLabel          string             `json:"languageLabel" bson:"languageLabel"`
	IsActive               bool               `json:"isActive" bson:"isActive"`
}

FoodDeliveryLabel represents a food delivery label.

func CreateFoodDeliveryLabel

func CreateFoodDeliveryLabel(foodDeliveryLabel FoodDeliveryLabel) (*FoodDeliveryLabel, error)

CreateFoodDeliveryLabel creates new food delivery label.

func GetFoodDeliveryLabelByID

func GetFoodDeliveryLabelByID(ID string) (*FoodDeliveryLabel, error)

GetFoodDeliveryLabelByID gives requested food delivery label by id.

func GetFoodDeliveryLabels

func GetFoodDeliveryLabels(filter bson.D, limit int, after *string, before *string, first *int, last *int) (foodDeliveryLabels []*FoodDeliveryLabel, totalCount int64, hasPrevious, hasNext bool, err error)

GetFoodDeliveryLabels gives a list of food delivery labels.

func UpdateFoodDeliveryLabel

func UpdateFoodDeliveryLabel(c *FoodDeliveryLabel) (*FoodDeliveryLabel, error)

UpdateFoodDeliveryLabel updates the food delivery label.

func (*FoodDeliveryLabel) MarshalBinary

func (foodDeliveryLabel *FoodDeliveryLabel) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*FoodDeliveryLabel) UnmarshalBinary

func (foodDeliveryLabel *FoodDeliveryLabel) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type FoodDeliveryLabelConnection

type FoodDeliveryLabelConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*FoodDeliveryLabelEdge `json:"edges"`
	// A list of nodes.
	Nodes []*FoodDeliveryLabel `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of FoodDeliveryLabel

type FoodDeliveryLabelEdge

type FoodDeliveryLabelEdge struct {
	Cursor string             `json:"cursor"`
	Node   *FoodDeliveryLabel `json:"node"`
}

Paginating the node FoodDeliveryLabel

type FoodDeliveryLabelSearch

type FoodDeliveryLabelSearch string
const (
	FoodDeliveryLabelSearchAll                    FoodDeliveryLabelSearch = "ALL"
	FoodDeliveryLabelSearchCode                   FoodDeliveryLabelSearch = "CODE"
	FoodDeliveryLabelSearchValueInEnglishLanguage FoodDeliveryLabelSearch = "VALUE_IN_ENGLISH_LANGUAGE"
)

func (FoodDeliveryLabelSearch) IsValid

func (e FoodDeliveryLabelSearch) IsValid() bool

func (FoodDeliveryLabelSearch) MarshalGQL

func (e FoodDeliveryLabelSearch) MarshalGQL(w io.Writer)

func (FoodDeliveryLabelSearch) String

func (e FoodDeliveryLabelSearch) String() string

func (*FoodDeliveryLabelSearch) UnmarshalGQL

func (e *FoodDeliveryLabelSearch) UnmarshalGQL(v interface{}) error

type Gender

type Gender string
const (
	GenderMale   Gender = "MALE"
	GenderFemale Gender = "FEMALE"
	GenderOthers Gender = "OTHERS"
)

func (Gender) IsValid

func (e Gender) IsValid() bool

func (Gender) MarshalGQL

func (e Gender) MarshalGQL(w io.Writer)

func (Gender) String

func (e Gender) String() string

func (*Gender) UnmarshalGQL

func (e *Gender) UnmarshalGQL(v interface{}) error

type GeneralLabel

type GeneralLabel struct {
	ID                     primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt              time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt              *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt              time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy              primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	Code                   string             `json:"code" bson:"code"`
	ValueInEnglishLanguage string             `json:"valueInEnglishLanguage" bson:"valueInEnglishLanguage"`
	LanguageLabel          string             `json:"languageLabel" bson:"languageLabel"`
	IsActive               bool               `json:"isActive" bson:"isActive"`
}

GeneralLabel represents a general label.

func CreateGeneralLabel

func CreateGeneralLabel(generalLabel GeneralLabel) (*GeneralLabel, error)

CreateGeneralLabel creates new general label.

func GetGeneralLabelByID

func GetGeneralLabelByID(ID string) (*GeneralLabel, error)

GetGeneralLabelByID gives requested general label by id.

func GetGeneralLabels

func GetGeneralLabels(filter bson.D, limit int, after *string, before *string, first *int, last *int) (generalLabels []*GeneralLabel, totalCount int64, hasPrevious, hasNext bool, err error)

GetGeneralLabels gives a list of general labels.

func UpdateGeneralLabel

func UpdateGeneralLabel(c *GeneralLabel) (*GeneralLabel, error)

UpdateGeneralLabel updates general label.

func (*GeneralLabel) MarshalBinary

func (generalLabel *GeneralLabel) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*GeneralLabel) UnmarshalBinary

func (generalLabel *GeneralLabel) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type GeneralLabelConnection

type GeneralLabelConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*GeneralLabelEdge `json:"edges"`
	// A list of nodes.
	Nodes []*GeneralLabel `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of GeneralLabel

type GeneralLabelEdge

type GeneralLabelEdge struct {
	Cursor string        `json:"cursor"`
	Node   *GeneralLabel `json:"node"`
}

Paginating the node GeneralLabel

type GeneralLabelSearch

type GeneralLabelSearch string
const (
	GeneralLabelSearchAll                    GeneralLabelSearch = "ALL"
	GeneralLabelSearchCode                   GeneralLabelSearch = "CODE"
	GeneralLabelSearchValueInEnglishLanguage GeneralLabelSearch = "VALUE_IN_ENGLISH_LANGUAGE"
)

func (GeneralLabelSearch) IsValid

func (e GeneralLabelSearch) IsValid() bool

func (GeneralLabelSearch) MarshalGQL

func (e GeneralLabelSearch) MarshalGQL(w io.Writer)

func (GeneralLabelSearch) String

func (e GeneralLabelSearch) String() string

func (*GeneralLabelSearch) UnmarshalGQL

func (e *GeneralLabelSearch) UnmarshalGQL(v interface{}) error

type GeneralSetting

type GeneralSetting struct {
	ProjectName                     string        `json:"projectName"`
	CurrencyUpdateRatio             string        `json:"currencyUpdateRatio"`
	EnableProviderPhoneVerification bool          `json:"enableProviderPhoneVerification"`
	EnableProviderEmailVerification bool          `json:"enableProviderEmailVerification"`
	EnableUserPhoneVerification     bool          `json:"enableUserPhoneVerification"`
	EnableUserEmailVerification     bool          `json:"enableUserEmailVerification"`
	AdminCountryIsd                 string        `json:"adminCountryISD"`
	CountryCode                     string        `json:"countryCode"`
	DefaultDistanceUnit             DistanceUnits `json:"defaultDistanceUnit"`
	DisplayRecord                   string        `json:"displayRecord"`
	ReferralAmount                  string        `json:"referralAmount"`
	PoliceNumber                    string        `json:"policeNumber"`
	GoogleAnalyticsCode             string        `json:"googleAnalyticsCode"`
	EnableReferralSystem            bool          `json:"enableReferralSystem"`
	FixedWalletAmount1              int           `json:"fixedWalletAmount1"`
	FixedWalletAmount2              int           `json:"fixedWalletAmount2"`
	FixedWalletAmount3              int           `json:"fixedWalletAmount3"`
	FlagDrivers                     int           `json:"flagDrivers"`
}

type GeneralSettingInput

type GeneralSettingInput struct {
	ProjectName                     string        `json:"projectName"`
	CurrencyUpdateRatio             string        `json:"currencyUpdateRatio"`
	EnableProviderPhoneVerification bool          `json:"enableProviderPhoneVerification"`
	EnableProviderEmailVerification bool          `json:"enableProviderEmailVerification"`
	EnableUserPhoneVerification     bool          `json:"enableUserPhoneVerification"`
	EnableUserEmailVerification     bool          `json:"enableUserEmailVerification"`
	AdminCountryIsd                 string        `json:"adminCountryISD"`
	CountryCode                     string        `json:"countryCode"`
	DefaultDistanceUnit             DistanceUnits `json:"defaultDistanceUnit"`
	DisplayRecord                   string        `json:"displayRecord"`
	ReferralAmount                  string        `json:"referralAmount"`
	PoliceNumber                    string        `json:"policeNumber"`
	GoogleAnalyticsCode             string        `json:"googleAnalyticsCode"`
	EnableReferralSystem            bool          `json:"enableReferralSystem"`
	FixedWalletAmount1              int           `json:"fixedWalletAmount1"`
	FixedWalletAmount2              int           `json:"fixedWalletAmount2"`
	FixedWalletAmount3              int           `json:"fixedWalletAmount3"`
	FlagDrivers                     int           `json:"flagDrivers"`
}

type GeoFenceLocation

type GeoFenceLocation struct {
	ID           primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt    time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt    *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt    time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy    primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	LocationType string             `json:"locationType" bson:"locationType"`
	IsActive     bool               `json:"isActive" bson:"isActive"`
	Name         string             `json:"name" bson:"name"`
	Country      string             `json:"country" bson:"country"`
	GeoJSON      string             `json:"geoJson" bson:"geoJson"`
	LocationFor  string             `json:"locationFor" bson:"locationFor"`
}

GeoFenceLocation represents a geo fenced location.

func CreateGeoFenceLocation

func CreateGeoFenceLocation(location GeoFenceLocation) (*GeoFenceLocation, error)

CreateGeoFenceLocation creates new geo fenced location.

func GetGeoFenceLocationByID

func GetGeoFenceLocationByID(ID string) (*GeoFenceLocation, error)

GetGeoFenceLocationByID gives requested geo fenced location by id.

func GetGeoFenceLocations

func GetGeoFenceLocations(filter bson.D, limit int, after *string, before *string, first *int, last *int) (geoFenceLocations []*GeoFenceLocation, totalCount int64, hasPrevious, hasNext bool, err error)

GetGeoFenceLocations gives a list of geo fence location.

func UpdateGeoFenceLocation

func UpdateGeoFenceLocation(location *GeoFenceLocation) (*GeoFenceLocation, error)

UpdateGeoFenceLocation updates geo fence location.

func (*GeoFenceLocation) MarshalBinary

func (location *GeoFenceLocation) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*GeoFenceLocation) UnmarshalBinary

func (location *GeoFenceLocation) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type GeoFenceLocationConnection

type GeoFenceLocationConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*GeoFenceLocationEdge `json:"edges"`
	// A list of nodes.
	Nodes []*GeoFenceLocation `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of GeoFenceLocation

type GeoFenceLocationEdge

type GeoFenceLocationEdge struct {
	Cursor string            `json:"cursor"`
	Node   *GeoFenceLocation `json:"node"`
}

Paginating the node GeoFenceLocation

type GeoFenceLocationSearchType

type GeoFenceLocationSearchType string
const (
	GeoFenceLocationSearchTypeAll         GeoFenceLocationSearchType = "ALL"
	GeoFenceLocationSearchTypeLocation    GeoFenceLocationSearchType = "LOCATION"
	GeoFenceLocationSearchTypeCountry     GeoFenceLocationSearchType = "COUNTRY"
	GeoFenceLocationSearchTypeLocationFor GeoFenceLocationSearchType = "LOCATION_FOR"
)

func (GeoFenceLocationSearchType) IsValid

func (e GeoFenceLocationSearchType) IsValid() bool

func (GeoFenceLocationSearchType) MarshalGQL

func (e GeoFenceLocationSearchType) MarshalGQL(w io.Writer)

func (GeoFenceLocationSearchType) String

func (*GeoFenceLocationSearchType) UnmarshalGQL

func (e *GeoFenceLocationSearchType) UnmarshalGQL(v interface{}) error

type GeoFenceLocationStatus

type GeoFenceLocationStatus string
const (
	GeoFenceLocationStatusActive   GeoFenceLocationStatus = "ACTIVE"
	GeoFenceLocationStatusInactive GeoFenceLocationStatus = "INACTIVE"
	GeoFenceLocationStatusDeleted  GeoFenceLocationStatus = "DELETED"
)

func (GeoFenceLocationStatus) IsValid

func (e GeoFenceLocationStatus) IsValid() bool

func (GeoFenceLocationStatus) MarshalGQL

func (e GeoFenceLocationStatus) MarshalGQL(w io.Writer)

func (GeoFenceLocationStatus) String

func (e GeoFenceLocationStatus) String() string

func (*GeoFenceLocationStatus) UnmarshalGQL

func (e *GeoFenceLocationStatus) UnmarshalGQL(v interface{}) error

type GeoFenceRestrictedArea

type GeoFenceRestrictedArea struct {
	ID              primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt       time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt       *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt       time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy       primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	Address         string             `json:"address" bson:"address"`
	Area            string             `json:"area" bson:"area"`
	RestrictType    RestrictType       `json:"restrictType" bson:"restrictType"`
	RestrictArea    RestrictArea       `json:"restrictArea" bson:"restrictArea"`
	GeoLocationArea string             `json:"geoLocationArea" bson:"geoLocationArea"`
	IsActive        bool               `json:"isActive" bson:"isActive"`
}

GeoFenceRestrictedArea represents a geo fence restriction area.

func CreateGeoFenceRestrictedArea

func CreateGeoFenceRestrictedArea(geoFenceRestrictedArea GeoFenceRestrictedArea) (*GeoFenceRestrictedArea, error)

CreateGeoFenceRestrictedArea creates geo fence restricted area.

func GetGeoFenceRestrictedAreaByID

func GetGeoFenceRestrictedAreaByID(ID string) (*GeoFenceRestrictedArea, error)

GetGeoFenceRestrictedAreaByID gives geo fence restricted area by id.

func GetGeoFenceRestrictedAreas

func GetGeoFenceRestrictedAreas(filter bson.D, limit int, after *string, before *string, first *int, last *int) (geoFenceRestrictedAreas []*GeoFenceRestrictedArea, totalCount int64, hasPrevious, hasNext bool, err error)

GetGeoFenceRestrictedAreas gives a list of geo fence restricted areas.

func UpdateGeoFenceRestrictedArea

func UpdateGeoFenceRestrictedArea(c *GeoFenceRestrictedArea) (*GeoFenceRestrictedArea, error)

UpdateGeoFenceRestrictedArea updates geo fence restricted area.

func (*GeoFenceRestrictedArea) MarshalBinary

func (geoFenceRestrictedArea *GeoFenceRestrictedArea) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*GeoFenceRestrictedArea) UnmarshalBinary

func (geoFenceRestrictedArea *GeoFenceRestrictedArea) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type GeoFenceRestrictedAreaConnection

type GeoFenceRestrictedAreaConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*GeoFenceRestrictedAreaEdge `json:"edges"`
	// A list of nodes.
	Nodes []*GeoFenceRestrictedArea `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of GeoFenceRestrictedArea

type GeoFenceRestrictedAreaEdge

type GeoFenceRestrictedAreaEdge struct {
	Cursor string                  `json:"cursor"`
	Node   *GeoFenceRestrictedArea `json:"node"`
}

Paginating the node GeoFenceRestrictedArea

type GeoFenceRestrictedAreaSearchType

type GeoFenceRestrictedAreaSearchType string
const (
	GeoFenceRestrictedAreaSearchTypeAll     GeoFenceRestrictedAreaSearchType = "ALL"
	GeoFenceRestrictedAreaSearchTypeAddress GeoFenceRestrictedAreaSearchType = "ADDRESS"
)

func (GeoFenceRestrictedAreaSearchType) IsValid

func (GeoFenceRestrictedAreaSearchType) MarshalGQL

func (e GeoFenceRestrictedAreaSearchType) MarshalGQL(w io.Writer)

func (GeoFenceRestrictedAreaSearchType) String

func (*GeoFenceRestrictedAreaSearchType) UnmarshalGQL

func (e *GeoFenceRestrictedAreaSearchType) UnmarshalGQL(v interface{}) error

type GeoFenceRestrictedAreaStatus

type GeoFenceRestrictedAreaStatus string
const (
	GeoFenceRestrictedAreaStatusActive   GeoFenceRestrictedAreaStatus = "ACTIVE"
	GeoFenceRestrictedAreaStatusInactive GeoFenceRestrictedAreaStatus = "INACTIVE"
	GeoFenceRestrictedAreaStatusDeleted  GeoFenceRestrictedAreaStatus = "DELETED"
)

func (GeoFenceRestrictedAreaStatus) IsValid

func (e GeoFenceRestrictedAreaStatus) IsValid() bool

func (GeoFenceRestrictedAreaStatus) MarshalGQL

func (e GeoFenceRestrictedAreaStatus) MarshalGQL(w io.Writer)

func (GeoFenceRestrictedAreaStatus) String

func (*GeoFenceRestrictedAreaStatus) UnmarshalGQL

func (e *GeoFenceRestrictedAreaStatus) UnmarshalGQL(v interface{}) error

type GodsView

type GodsView struct {
	Latitude  float64 `json:"latitude"`
	Longitude float64 `json:"longitude"`
}

type GodsViewConnection

type GodsViewConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*GodsViewEdge `json:"edges"`
	// A list of nodes.
	Nodes []*GodsView `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of GodsView

type GodsViewEdge

type GodsViewEdge struct {
	Cursor string    `json:"cursor"`
	Node   *GodsView `json:"node"`
}

Paginating the node GodsView

type GroceryDeliveryLabel

type GroceryDeliveryLabel struct {
	ID                     primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt              time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt              *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt              time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy              primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	Code                   string             `json:"code" bson:"code"`
	ValueInEnglishLanguage string             `json:"valueInEnglishLanguage" bson:"valueInEnglishLanguage"`
	LanguageLabel          string             `json:"languageLabel" bson:"languageLabel"`
	IsActive               bool               `json:"isActive" bson:"isActive"`
}

GroceryDeliveryLabel represents a grocery delivery label.

func CreateGroceryDeliveryLabel

func CreateGroceryDeliveryLabel(groceryDeliveryLabel GroceryDeliveryLabel) (*GroceryDeliveryLabel, error)

CreateGroceryDeliveryLabel creates new grocery delivery label.

func GetGroceryDeliveryLabelByID

func GetGroceryDeliveryLabelByID(ID string) (*GroceryDeliveryLabel, error)

GetGroceryDeliveryLabelByID gives requested grocery delivery label by id.

func GetGroceryDeliveryLabels

func GetGroceryDeliveryLabels(filter bson.D, limit int, after *string, before *string, first *int, last *int) (groceryDeliveryLabels []*GroceryDeliveryLabel, totalCount int64, hasPrevious, hasNext bool, err error)

GetGroceryDeliveryLabels gives a list of grocery delivery label.

func UpdateGroceryDeliveryLabel

func UpdateGroceryDeliveryLabel(c *GroceryDeliveryLabel) (*GroceryDeliveryLabel, error)

UpdateGroceryDeliveryLabel updates grocery delivery label.

func (*GroceryDeliveryLabel) MarshalBinary

func (groceryDeliveryLabel *GroceryDeliveryLabel) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*GroceryDeliveryLabel) UnmarshalBinary

func (groceryDeliveryLabel *GroceryDeliveryLabel) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type GroceryDeliveryLabelConnection

type GroceryDeliveryLabelConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*GroceryDeliveryLabelEdge `json:"edges"`
	// A list of nodes.
	Nodes []*GroceryDeliveryLabel `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of GroceryDeliveryLabel

type GroceryDeliveryLabelEdge

type GroceryDeliveryLabelEdge struct {
	Cursor string                `json:"cursor"`
	Node   *GroceryDeliveryLabel `json:"node"`
}

Paginating the node GroceryDeliveryLabel

type GroceryDeliveryLabelSearch

type GroceryDeliveryLabelSearch string
const (
	GroceryDeliveryLabelSearchAll                    GroceryDeliveryLabelSearch = "ALL"
	GroceryDeliveryLabelSearchCode                   GroceryDeliveryLabelSearch = "CODE"
	GroceryDeliveryLabelSearchValueInEnglishLanguage GroceryDeliveryLabelSearch = "VALUE_IN_ENGLISH_LANGUAGE"
)

func (GroceryDeliveryLabelSearch) IsValid

func (e GroceryDeliveryLabelSearch) IsValid() bool

func (GroceryDeliveryLabelSearch) MarshalGQL

func (e GroceryDeliveryLabelSearch) MarshalGQL(w io.Writer)

func (GroceryDeliveryLabelSearch) String

func (*GroceryDeliveryLabelSearch) UnmarshalGQL

func (e *GroceryDeliveryLabelSearch) UnmarshalGQL(v interface{}) error

type HeatView

type HeatView struct {
	Latitude  float64 `json:"latitude"`
	Longitude float64 `json:"longitude"`
}

type HeatViewConnection

type HeatViewConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*HeatViewEdge `json:"edges"`
	// A list of nodes.
	Nodes []*HeatView `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of HeatView

type HeatViewEdge

type HeatViewEdge struct {
	Cursor string    `json:"cursor"`
	Node   *HeatView `json:"node"`
}

Paginating the node HeatView

type HelpCategory

type HelpCategory struct {
	ID          primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt   time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt   *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt   time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy   primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	Order       string             `json:"order" bson:"order"`
	Title       string             `json:"title" bson:"title"`
	CategoryFor HelpCategoryFor    `json:"categoryFor" bson:"categoryFor"`
	IsActive    bool               `json:"isActive" bson:"isActive"`
}

HelpCategory represents a help category.

func CreateHelpCategory

func CreateHelpCategory(helpCategory HelpCategory) (*HelpCategory, error)

CreateHelpCategory creates new help category.

func GetHelpCategories

func GetHelpCategories(filter bson.D, limit int, after *string, before *string, first *int, last *int) (helpCategories []*HelpCategory, totalCount int64, hasPrevious, hasNext bool, err error)

GetHelpCategories gives an array of help categories.

func GetHelpCategoryByID

func GetHelpCategoryByID(ID string) (*HelpCategory, error)

GetHelpCategoryByID gives requested help category by id.

func UpdateHelpCategory

func UpdateHelpCategory(c *HelpCategory) (*HelpCategory, error)

UpdateHelpCategory updates the help category.

func (*HelpCategory) MarshalBinary

func (helpCategory *HelpCategory) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*HelpCategory) UnmarshalBinary

func (helpCategory *HelpCategory) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type HelpCategoryConnection

type HelpCategoryConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*HelpCategoryEdge `json:"edges"`
	// A list of nodes.
	Nodes []*HelpCategory `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of HelpCategory

type HelpCategoryEdge

type HelpCategoryEdge struct {
	Cursor string        `json:"cursor"`
	Node   *HelpCategory `json:"node"`
}

Paginating the node HelpCategory

type HelpCategoryFor

type HelpCategoryFor string
const (
	HelpCategoryForGeneral    HelpCategoryFor = "GENERAL"
	HelpCategoryForDeliverall HelpCategoryFor = "DELIVERALL"
)

func (HelpCategoryFor) IsValid

func (e HelpCategoryFor) IsValid() bool

func (HelpCategoryFor) MarshalGQL

func (e HelpCategoryFor) MarshalGQL(w io.Writer)

func (HelpCategoryFor) String

func (e HelpCategoryFor) String() string

func (*HelpCategoryFor) UnmarshalGQL

func (e *HelpCategoryFor) UnmarshalGQL(v interface{}) error

type HelpCategoryType

type HelpCategoryType string
const (
	HelpCategoryTypeAll    HelpCategoryType = "ALL"
	HelpCategoryTypeTitle  HelpCategoryType = "TITLE"
	HelpCategoryTypeOrder  HelpCategoryType = "ORDER"
	HelpCategoryTypeStatus HelpCategoryType = "STATUS"
)

func (HelpCategoryType) IsValid

func (e HelpCategoryType) IsValid() bool

func (HelpCategoryType) MarshalGQL

func (e HelpCategoryType) MarshalGQL(w io.Writer)

func (HelpCategoryType) String

func (e HelpCategoryType) String() string

func (*HelpCategoryType) UnmarshalGQL

func (e *HelpCategoryType) UnmarshalGQL(v interface{}) error

type HelpDetail

type HelpDetail struct {
	ID        primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	Category  HelpDetailCategory `json:"category" bson:"category"`
	Order     string             `json:"order" bson:"order"`
	Question  string             `json:"question" bson:"question"`
	Answer    string             `json:"answer" bson:"answer"`
	IsActive  bool               `json:"isActive" bson:"isActive"`
}

HelpDetail represents a help detail.

func CreateHelpDetail

func CreateHelpDetail(helpDetail HelpDetail) (*HelpDetail, error)

CreateHelpDetail creates new help details.

func GetHelpDetailByID

func GetHelpDetailByID(ID string) (*HelpDetail, error)

GetHelpDetailByID gives the requested help detail using id.

func GetHelpDetails

func GetHelpDetails(filter bson.D, limit int, after *string, before *string, first *int, last *int) (helpDetails []*HelpDetail, totalCount int64, hasPrevious, hasNext bool, err error)

GetHelpDetails gives an array of help details.

func UpdateHelpDetail

func UpdateHelpDetail(c *HelpDetail) (*HelpDetail, error)

UpdateHelpDetail updates the help detail.

func (*HelpDetail) MarshalBinary

func (helpDetail *HelpDetail) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*HelpDetail) UnmarshalBinary

func (helpDetail *HelpDetail) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type HelpDetailCategory

type HelpDetailCategory string
const (
	HelpDetailCategoryDriverWasUnprofessional  HelpDetailCategory = "DRIVER_WAS_UNPROFESSIONAL"
	HelpDetailCategoryILostAnItem              HelpDetailCategory = "I_LOST_AN_ITEM"
	HelpDetailCategoryIWantToCancelTheOrder    HelpDetailCategory = "I_WANT_TO_CANCEL_THE_ORDER"
	HelpDetailCategoryIssueWithOrderOrDelivery HelpDetailCategory = "ISSUE_WITH_ORDER_OR_DELIVERY"
	HelpDetailCategoryVehicleWasDifferent      HelpDetailCategory = "VEHICLE_WAS_DIFFERENT"
)

func (HelpDetailCategory) IsValid

func (e HelpDetailCategory) IsValid() bool

func (HelpDetailCategory) MarshalGQL

func (e HelpDetailCategory) MarshalGQL(w io.Writer)

func (HelpDetailCategory) String

func (e HelpDetailCategory) String() string

func (*HelpDetailCategory) UnmarshalGQL

func (e *HelpDetailCategory) UnmarshalGQL(v interface{}) error

type HelpDetailConnection

type HelpDetailConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*HelpDetailEdge `json:"edges"`
	// A list of nodes.
	Nodes []*HelpDetail `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of HelpDetail

type HelpDetailEdge

type HelpDetailEdge struct {
	Cursor string      `json:"cursor"`
	Node   *HelpDetail `json:"node"`
}

Paginating the node HelpDetail

type HelpDetailType

type HelpDetailType string
const (
	HelpDetailTypeAll      HelpDetailType = "ALL"
	HelpDetailTypeTitle    HelpDetailType = "TITLE"
	HelpDetailTypeCategory HelpDetailType = "CATEGORY"
	HelpDetailTypeOrder    HelpDetailType = "ORDER"
	HelpDetailTypeStatus   HelpDetailType = "STATUS"
)

func (HelpDetailType) IsValid

func (e HelpDetailType) IsValid() bool

func (HelpDetailType) MarshalGQL

func (e HelpDetailType) MarshalGQL(w io.Writer)

func (HelpDetailType) String

func (e HelpDetailType) String() string

func (*HelpDetailType) UnmarshalGQL

func (e *HelpDetailType) UnmarshalGQL(v interface{}) error

type HotelPaymentReport

type HotelPaymentReport struct {
	BookedBy              string `json:"bookedBy"`
	JobNo                 string `json:"jobNo"`
	HotelName             string `json:"hotelName"`
	Provider              string `json:"provider"`
	User                  string `json:"user"`
	JobDate               string `json:"jobDate"`
	TotalFare             string `json:"totalFare"`
	BaseFare              string `json:"baseFare"`
	HotelBookingCharge    string `json:"hotelBookingCharge"`
	BookingFees           string `json:"bookingFees"`
	HotelPayAmount        string `json:"hotelPayAmount"`
	JobStatus             string `json:"jobStatus"`
	PaymentMethod         string `json:"paymentMethod"`
	ProviderPaymentStatus string `json:"providerPaymentStatus"`
}

type HotelPaymentReportProviderPaymentStatus

type HotelPaymentReportProviderPaymentStatus string
const (
	HotelPaymentReportProviderPaymentStatusSettled   HotelPaymentReportProviderPaymentStatus = "SETTLED"
	HotelPaymentReportProviderPaymentStatusUnsettled HotelPaymentReportProviderPaymentStatus = "UNSETTLED"
)

func (HotelPaymentReportProviderPaymentStatus) IsValid

func (HotelPaymentReportProviderPaymentStatus) MarshalGQL

func (HotelPaymentReportProviderPaymentStatus) String

func (*HotelPaymentReportProviderPaymentStatus) UnmarshalGQL

func (e *HotelPaymentReportProviderPaymentStatus) UnmarshalGQL(v interface{}) error

type Installation

type Installation struct {
	ID                 primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt          time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt          *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt          time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy          primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	UserID             string             `json:"userId,omitempty" bson:"userId,omitempty"`
	DeviceID           string             `json:"deviceId" bson:"deviceId" validate:"required"`
	FcmToken           string             `bson:"fcmToken" json:"fcmToken" validate:"required"`
	DeviceWidth        float64            `json:"deviceWidth" bson:"deviceWidth"`
	DeviceHeight       float64            `json:"deviceHeight" bson:"deviceHeight"`
	DeviceCountry      string             `json:"deviceCountry,omitempty" bson:"deviceCountry,omitempty"`
	Badge              string             `json:"badge,omitempty" bson:"badge,omitempty"`
	DeviceManufacturer string             `json:"deviceManufacturer,omitempty" bson:"deviceManufacturer,omitempty"`
	SystemVersion      string             `json:"systemVersion,omitempty" bson:"systemVersion,omitempty"`
	AppIdentifier      string             `json:"appIdentifier" validate:"required" bson:"appIdentifier"`
	AppName            string             `json:"appName" bson:"appName" validate:"required"`
	DeviceLocale       string             `json:"deviceLocale,omitempty" bson:"deviceLocale,omitempty"`
	DeviceType         string             `json:"deviceType,omitempty" bson:"deviceType,omitempty"` //android or ios
	Channels           []string           `json:"channels,omitempty" bson:"channels,omitempty"`
	DeviceBrand        string             `json:"deviceBrand,omitempty" bson:"deviceBrand,omitempty"`
	DeviceModel        string             `json:"deviceModel,omitempty" bson:"deviceModel,omitempty"`
	BuildNumber        string             `json:"buildNumber,omitempty" bson:"buildNumber,omitempty"`
	TimeZone           string             `json:"timeZone,omitempty" validate:"required" bson:"timeZone,omitempty"`
	AppVersion         string             `json:"appVersion,omitempty" validate:"required" bson:"appVersion,omitempty"`
}

Installation represents a installation.

func CreateInstallation

func CreateInstallation(installation *Installation) (*Installation, error)

CreateInstallation creates installation.

func GetInstallationByID

func GetInstallationByID(ID string) (*Installation, error)

GetInstallationByID gives the requested installation using id.

func GetInstallations

func GetInstallations(filter bson.D, limit int, after *string, before *string, first *int, last *int) (installations []*Installation, totalCount int64, hasPrevious, hasNext bool, err error)

GetInstallations gives an list of installations.

func UpdateInstallation

func UpdateInstallation(c *Installation) (*Installation, error)

UpdateInstallation updates installation.

func (*Installation) MarshalBinary

func (installation *Installation) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*Installation) UnmarshalBinary

func (installation *Installation) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type InstallationConnection

type InstallationConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*InstallationEdge `json:"edges"`
	// A list of nodes.
	Nodes []*Installation `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of Installation

type InstallationEdge

type InstallationEdge struct {
	Cursor string        `json:"cursor"`
	Node   *Installation `json:"node"`
}

Paginating the node Installation

type InstallationInput

type InstallationInput struct {
	UserID             string     `json:"userId"`
	FcmToken           string     `json:"fcmToken"`
	DeviceID           string     `json:"deviceId"`
	DeviceWidth        string     `json:"deviceWidth"`
	AppVersion         string     `json:"appVersion"`
	DeviceType         DeviceType `json:"deviceType"`
	DeviceHeight       string     `json:"deviceHeight"`
	DeviceCountry      string     `json:"deviceCountry"`
	Badge              string     `json:"badge"`
	DeviceManufacturer string     `json:"deviceManufacturer"`
	SystemVersion      string     `json:"systemVersion"`
	AppIdentifier      string     `json:"appIdentifier"`
	AppName            string     `json:"appName"`
	DeviceLocale       string     `json:"deviceLocale"`
	Channels           []*string  `json:"channels"`
	DeviceBrand        string     `json:"deviceBrand"`
	DeviceModel        string     `json:"deviceModel"`
	BuildNumber        string     `json:"buildNumber"`
	TimeZone           string     `json:"timeZone"`
}

type InstallationSetting

type InstallationSetting struct {
	DisablePubnub                bool            `json:"disablePubnub"`
	EnableCorporateProfile       bool            `json:"enableCorporateProfile"`
	EnableSocketCluster          bool            `json:"enableSocketCluster"`
	GoogleProjectID              string          `json:"googleProjectID"`
	GoogleKeyForPushNotification string          `json:"googleKeyForPushNotification"`
	PassPhraseforPem             int             `json:"passPhraseforPEM"`
	FetchTripStatus              int             `json:"fetchTripStatus"`
	EnablePubnub                 bool            `json:"enablePubnub"`
	PubSubTechnique              PubSubTechnique `json:"pubSubTechnique"`
	MinAutoComplete              int             `json:"minAutoComplete"`
	YalgaarClientKey             string          `json:"yalgaarClientKey"`
	PubnubPublishKey             string          `json:"pubnubPublishKey"`
	PubnubSubscribeKey           string          `json:"pubnubSubscribeKey"`
	PubnubSecretKey              string          `json:"pubnubSecretKey"`
	GoogleKeyForWebPanel         string          `json:"googleKeyForWebPanel"`
	TollCostCalculation          bool            `json:"tollCostCalculation"`
	TollCostAppID                string          `json:"tollCostAppID"`
	TollCostAppCode              string          `json:"tollCostAppCode"`
	PubnubUUID                   string          `json:"pubnubUUID"`
}

type InstallationSettingInput

type InstallationSettingInput struct {
	DisablePubnub                bool            `json:"disablePubnub"`
	EnableCorporateProfile       bool            `json:"enableCorporateProfile"`
	EnableSocketCluster          bool            `json:"enableSocketCluster"`
	GoogleProjectID              string          `json:"googleProjectID"`
	GoogleKeyForPushNotification string          `json:"googleKeyForPushNotification"`
	PassPhraseforPem             int             `json:"passPhraseforPEM"`
	FetchTripStatus              int             `json:"fetchTripStatus"`
	EnablePubnub                 bool            `json:"enablePubnub"`
	PubSubTechnique              PubSubTechnique `json:"pubSubTechnique"`
	MinAutoComplete              int             `json:"minAutoComplete"`
	YalgaarClientKey             string          `json:"yalgaarClientKey"`
	PubnubPublishKey             string          `json:"pubnubPublishKey"`
	PubnubSubscribeKey           string          `json:"pubnubSubscribeKey"`
	PubnubSecretKey              string          `json:"pubnubSecretKey"`
	GoogleKeyForWebPanel         string          `json:"googleKeyForWebPanel"`
	TollCostCalculation          bool            `json:"tollCostCalculation"`
	TollCostAppID                string          `json:"tollCostAppID"`
	TollCostAppCode              string          `json:"tollCostAppCode"`
	PubnubUUID                   string          `json:"pubnubUUID"`
}

type Invoice

type Invoice struct {
	ID           primitive.ObjectID `json:"id"`
	JobID        primitive.ObjectID `json:"jobId"`
	FromAddress  *Address           `json:"fromAddress"`
	ToAddress    *Address           `json:"toAddress"`
	JobStartTime time.Time          `json:"jobStartTime"`
	JobEndTime   time.Time          `json:"jobEndTime"`
	Distance     float64            `json:"distance"`
	BaseFare     float64            `json:"baseFare"`
	Commission   float64            `json:"commission"`
	VehicleType  string             `json:"vehicleType"`
}

type ItemCategoryType

type ItemCategoryType string
const (
	ItemCategoryTypeAll            ItemCategoryType = "ALL"
	ItemCategoryTypeTitle          ItemCategoryType = "TITLE"
	ItemCategoryTypeRestaurantName ItemCategoryType = "RESTAURANT_NAME"
)

func (ItemCategoryType) IsValid

func (e ItemCategoryType) IsValid() bool

func (ItemCategoryType) MarshalGQL

func (e ItemCategoryType) MarshalGQL(w io.Writer)

func (ItemCategoryType) String

func (e ItemCategoryType) String() string

func (*ItemCategoryType) UnmarshalGQL

func (e *ItemCategoryType) UnmarshalGQL(v interface{}) error

type ItemTagName

type ItemTagName string
const (
	ItemTagNameBestseller ItemTagName = "BESTSELLER"
	ItemTagNameNewlyAdded ItemTagName = "NEWLY_ADDED"
	ItemTagNamePromoted   ItemTagName = "PROMOTED"
)

func (ItemTagName) IsValid

func (e ItemTagName) IsValid() bool

func (ItemTagName) MarshalGQL

func (e ItemTagName) MarshalGQL(w io.Writer)

func (ItemTagName) String

func (e ItemTagName) String() string

func (*ItemTagName) UnmarshalGQL

func (e *ItemTagName) UnmarshalGQL(v interface{}) error

type Job

type Job struct {
	ID                  primitive.ObjectID    `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt           time.Time             `json:"createdAt" bson:"createdAt"`
	DeletedAt           *time.Time            `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt           time.Time             `json:"updatedAt" bson:"updatedAt"`
	CreatedBy           primitive.ObjectID    `json:"createdBy" bson:"createdBy"`
	CancelledAt         *time.Time            `json:"cancelledAt" bson:"cancelledAt"`
	JobType             ServiceCategory       `json:"jobType" bson:"jobType"`
	BookedFor           string                `json:"bookedFor" bson:"bookedFor"`
	BookingNumber       string                `json:"bookingNumber" bson:"bookingNumber"`
	ToAddress           Address               `json:"toAddress" bson:"toAddress"`
	FromAddress         Address               `json:"fromAddress" bson:"fromAddress"`
	JobDate             time.Time             `json:"jobDate" bson:"jobDate"`
	CompanyID           string                `json:"companyId" bson:"companyId"`
	ProviderID          string                `json:"providerId" bson:"providerId"`
	UserID              string                `json:"userId" bson:"userId"`
	ServiceVehicleID    *primitive.ObjectID   `bson:"serviceVehicleID"`
	FareAmount          float64               `json:"fareAmount" bson:"fareAmount"`
	EstimatedFareAmount float64               `json:"estimatedFareAmount" bson:"estimatedFareAmount"`
	ServiceType         string                `json:"serviceType" bson:"serviceType"`
	ServiceOrderItems   *[]*ServiceOrderInput `json:"serviceOrderItems" bson:"serviceOrderItems"`
	InvoiceID           string                `json:"invoiceId" bson:"invoiceId"`
}

Job represents a job.

func CreateJob

func CreateJob(job *Job) (*Job, error)

CreateJob creates new job.

func GetJobByID

func GetJobByID(ID string) (*Job, error)

GetJobByID gives the requested job by id.

func GetJobs

func GetJobs(filter bson.D, limit int, after *string, before *string, first *int, last *int) (jobs []*Job, totalCount int64, hasPrevious, hasNext bool, err error)

GetJobs gives a list of jobs.

func (*Job) MarshalBinary

func (job *Job) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*Job) UnmarshalBinary

func (job *Job) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type JobConnection

type JobConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*JobEdge `json:"edges"`
	// A list of nodes.
	Nodes []*Job `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of Job

type JobEdge

type JobEdge struct {
	Cursor string `json:"cursor"`
	Node   *Job   `json:"node"`
}

Paginating the node Job

type JobLaterBooking

type JobLaterBooking struct {
	ID                          primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt                   time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt                   *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt                   time.Time          `json:"updatedAt" bson:"updatedAt"`
	JobType                     string             `json:"jobType" bson:"jobType"`
	BookedBy                    string             `json:"bookedBy" bson:"bookedBy"`
	BookingNumber               int                `json:"bookingNumber" bson:"bookingNumber"`
	Users                       string             `json:"users" bson:"users"`
	Date                        time.Time          `json:"date" bson:"date"`
	ExpectedSourceLocation      Address            `json:"expectedSourceLocation" bson:"expectedSourceLocation"`
	ExpectedDestinationLocation Address            `json:"expectedDestinationLocation" bson:"expectedDestinationLocation"`
	Provider                    string             `json:"provider" bson:"provider"`
	JobDetails                  string             `json:"jobDetails" bson:"jobDetails"`
	Status                      string             `json:"status" bson:"status"`
	IsActive                    bool               `json:"isActive" bson:"isActive"`
}

JobLaterBooking represents a job later booking.

func GetJobLaterBookingByID

func GetJobLaterBookingByID(ID string) *JobLaterBooking

GetJobLaterBookingByID gives the requested job later booking by id.

func GetJobLaterBookings

func GetJobLaterBookings(filter bson.D, limit int, after *string, before *string, first *int, last *int) (jobLaterBookings []*JobLaterBooking, totalCount int64, hasPrevious, hasNext bool, err error)

GetJobLaterBookings gives an array of job later booking.

func (*JobLaterBooking) MarshalBinary

func (jobLaterBooking *JobLaterBooking) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*JobLaterBooking) UnmarshalBinary

func (jobLaterBooking *JobLaterBooking) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type JobLaterBookingConnection

type JobLaterBookingConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*JobLaterBookingEdge `json:"edges"`
	// A list of nodes.
	Nodes []*JobLaterBooking `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of JobLaterBooking

type JobLaterBookingEdge

type JobLaterBookingEdge struct {
	Cursor string           `json:"cursor"`
	Node   *JobLaterBooking `json:"node"`
}

Paginating the node JobLaterBooking

type JobLaterSearchServiceType

type JobLaterSearchServiceType string
const (
	JobLaterSearchServiceTypeRide          JobLaterSearchServiceType = "RIDE"
	JobLaterSearchServiceTypeRentalRide    JobLaterSearchServiceType = "RENTAL_RIDE"
	JobLaterSearchServiceTypeDelivery      JobLaterSearchServiceType = "DELIVERY"
	JobLaterSearchServiceTypeOtherServices JobLaterSearchServiceType = "OTHER_SERVICES"
)

func (JobLaterSearchServiceType) IsValid

func (e JobLaterSearchServiceType) IsValid() bool

func (JobLaterSearchServiceType) MarshalGQL

func (e JobLaterSearchServiceType) MarshalGQL(w io.Writer)

func (JobLaterSearchServiceType) String

func (e JobLaterSearchServiceType) String() string

func (*JobLaterSearchServiceType) UnmarshalGQL

func (e *JobLaterSearchServiceType) UnmarshalGQL(v interface{}) error

type JobLaterType

type JobLaterType string
const (
	JobLaterTypeAll                         JobLaterType = "ALL"
	JobLaterTypeUsers                       JobLaterType = "USERS"
	JobLaterTypeExpectedSourceLocation      JobLaterType = "EXPECTED_SOURCE_LOCATION"
	JobLaterTypeExpectedDestinationLocation JobLaterType = "EXPECTED_DESTINATION_LOCATION"
	JobLaterTypeBookingNumber               JobLaterType = "BOOKING_NUMBER"
	JobLaterTypeStatus                      JobLaterType = "STATUS"
)

func (JobLaterType) IsValid

func (e JobLaterType) IsValid() bool

func (JobLaterType) MarshalGQL

func (e JobLaterType) MarshalGQL(w io.Writer)

func (JobLaterType) String

func (e JobLaterType) String() string

func (*JobLaterType) UnmarshalGQL

func (e *JobLaterType) UnmarshalGQL(v interface{}) error

type JobRequestAcceptanceReport

type JobRequestAcceptanceReport struct {
	ID                          primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt                   time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt                   *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt                   time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy                   primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	ProviderName                string             `json:"providerName" bson:"providerName"`
	TotalJobRequests            string             `json:"totalJobRequests" bson:"totalJobRequests"`
	RequestsAcceptedJobREquests string             `json:"requestsAcceptedJobREquests" bson:"requestsAcceptedJobREquests"`
	RequestsDeclined            string             `json:"requestsDeclined" bson:"requestsDeclined"`
	RequestsTimedOut            string             `json:"requestsTimedOut" bson:"requestsTimedOut"`
	MissedAttempts              string             `json:"missedAttempts" bson:"missedAttempts"`
	InProcessRequests           string             `json:"inProcessRequests" bson:"inProcessRequests"`
	AcceptancePercentage        string             `json:"acceptancePercentage" bson:"acceptancePercentage"`
	IsActive                    bool               `json:"isActive" bson:"isActive"`
}

JobRequestAcceptanceReport represents a job request acceptance report.

func GetJobRequestAcceptanceReportByID

func GetJobRequestAcceptanceReportByID(ID string) (*JobRequestAcceptanceReport, error)

GetJobRequestAcceptanceReportByID gives a job request acceptance report by id.

func GetJobRequestAcceptanceReports

func GetJobRequestAcceptanceReports(filter bson.D, limit int, after *string, before *string, first *int, last *int) (jobRequestAcceptanceReports []*JobRequestAcceptanceReport, totalCount int64, hasPrevious, hasNext bool, err error)

GetJobRequestAcceptanceReports gives a list of job request acceptance reports.

func (*JobRequestAcceptanceReport) MarshalBinary

func (jobRequestAcceptanceReport *JobRequestAcceptanceReport) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*JobRequestAcceptanceReport) UnmarshalBinary

func (jobRequestAcceptanceReport *JobRequestAcceptanceReport) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type JobRequestAcceptanceReportConnection

type JobRequestAcceptanceReportConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*JobRequestAcceptanceReportEdge `json:"edges"`
	// A list of nodes.
	Nodes []*JobRequestAcceptanceReport `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of JobRequestAcceptanceReport

type JobRequestAcceptanceReportEdge

type JobRequestAcceptanceReportEdge struct {
	Cursor string                      `json:"cursor"`
	Node   *JobRequestAcceptanceReport `json:"node"`
}

Paginating the node JobRequestAcceptanceReport

type JobServiceType

type JobServiceType string
const (
	JobServiceTypeRide          JobServiceType = "RIDE"
	JobServiceTypeHailRide      JobServiceType = "HAIL_RIDE"
	JobServiceTypeRentalRide    JobServiceType = "RENTAL_RIDE"
	JobServiceTypeDelivery      JobServiceType = "DELIVERY"
	JobServiceTypeMultiDelivery JobServiceType = "MULTI_DELIVERY"
	JobServiceTypeOtherServices JobServiceType = "OTHER_SERVICES"
	JobServiceTypeRidePool      JobServiceType = "RIDE_POOL"
)

func (JobServiceType) IsValid

func (e JobServiceType) IsValid() bool

func (JobServiceType) MarshalGQL

func (e JobServiceType) MarshalGQL(w io.Writer)

func (JobServiceType) String

func (e JobServiceType) String() string

func (*JobServiceType) UnmarshalGQL

func (e *JobServiceType) UnmarshalGQL(v interface{}) error

type JobStatistics

type JobStatistics struct {
	TotalJobs     int `json:"totalJobs"`
	OnGoingJobs   int `json:"onGoingJobs"`
	CancelledJobs int `json:"cancelledJobs"`
	CompletedJobs int `json:"completedJobs"`
}

type JobStatus

type JobStatus string

Status of given Job

const (
	JobStatusAllStatus        JobStatus = "ALL_STATUS"
	JobStatusOnGoingRideOrJob JobStatus = "ON_GOING_RIDE_OR_JOB"
	JobStatusCompleted        JobStatus = "COMPLETED"
	JobStatusCancelled        JobStatus = "CANCELLED"
)

func (JobStatus) IsValid

func (e JobStatus) IsValid() bool

func (JobStatus) MarshalGQL

func (e JobStatus) MarshalGQL(w io.Writer)

func (JobStatus) String

func (e JobStatus) String() string

func (*JobStatus) UnmarshalGQL

func (e *JobStatus) UnmarshalGQL(v interface{}) error

type JobTimeVariance

type JobTimeVariance struct {
	ID            primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt     time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt     *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt     time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy     primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	BookingNo     string             `json:"bookingNo" bson:"bookingNo"`
	Address       string             `json:"address" bson:"address"`
	JobDate       string             `json:"jobDate" bson:"jobDate"`
	Provider      string             `json:"provider" bson:"provider"`
	EstimatedTime string             `json:"estimatedTime" bson:"estimatedTime"`
	ActualTime    string             `json:"actualTime" bson:"actualTime"`
	Variance      string             `json:"variance" bson:"variance"`
	IsActive      bool               `json:"isActive" bson:"isActive"`
}

JobTimeVariance represents a job time variance.

func GetJobTimeVarianceByID

func GetJobTimeVarianceByID(ID string) (*JobTimeVariance, error)

GetJobTimeVarianceByID gives a job time variance by id.

func GetJobTimeVariances

func GetJobTimeVariances(filter bson.D, limit int, after *string, before *string, first *int, last *int) (jobTimeVariances []*JobTimeVariance, totalCount int64, hasPrevious, hasNext bool, err error)

GetJobTimeVariances gives a list of job time variances.

func (*JobTimeVariance) MarshalBinary

func (jobTimeVariance *JobTimeVariance) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*JobTimeVariance) UnmarshalBinary

func (jobTimeVariance *JobTimeVariance) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type JobTimeVarianceConnection

type JobTimeVarianceConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*JobTimeVarianceEdge `json:"edges"`
	// A list of nodes.
	Nodes []*JobTimeVariance `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of JobTimeVariance

type JobTimeVarianceEdge

type JobTimeVarianceEdge struct {
	Cursor string           `json:"cursor"`
	Node   *JobTimeVariance `json:"node"`
}

Paginating the node JobTimeVariance

type JobUpdate

type JobUpdate struct {
	CreatedAt            time.Time  `json:"createdAt"`
	Status               string     `json:"status"`
	EndedAt              *time.Time `json:"endedAt"`
	Latitude             float64    `json:"latitude"`
	Longitude            float64    `json:"longitude"`
	ProviderID           string     `json:"providerId"`
	DeliveryTimeEstimate time.Time  `json:"deliveryTimeEstimate"`
	Order                *Order     `json:"order"`
}

type JobsOverview

type JobsOverview struct {
	Today     int `json:"today"`
	ThisWeek  int `json:"thisWeek"`
	ThisMonth int `json:"thisMonth"`
	ThisYear  int `json:"thisYear"`
	Completed int `json:"completed"`
	OnGoing   int `json:"onGoing"`
	Cancelled int `json:"cancelled"`
}

type Language

type Language struct {
	ID        primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy string             `json:"createdBy" bson:"createdBy"`
	Name      string             `json:"name"`
	Code      string             `json:"code"`
}

Language represents a i18n language.

type LatestJobs

type LatestJobs struct {
	User            *User     `json:"user"`
	Status          JobStatus `json:"status"`
	CreatedAt       time.Time `json:"createdAt"`
	StartingAddress *Address  `json:"startingAddress"`
	EndingAddress   *Address  `json:"endingAddress"`
}

type LineItems

type LineItems struct {
	ID          int      `json:"id"`
	Name        string   `json:"name"`
	ProductID   int      `json:"productID"`
	VariationID int      `json:"variationID"`
	Quantity    int      `json:"quantity"`
	TaxClass    string   `json:"taxClass"`
	Subtotal    string   `json:"subtotal"`
	SubtotalTax string   `json:"subtotalTax"`
	Total       string   `json:"total"`
	TotalTax    string   `json:"totalTax"`
	Sku         string   `json:"sku"`
	Price       int      `json:"price"`
	MetaData    []string `json:"metaData"`
	Taxes       []*Taxes `json:"taxes"`
}
type Links struct {
	Self       []Self       `json:"self" bson:"self"`
	Collection []Collection `json:"collection" bson:"collection"`
}

Links represents links.

type Location

type Location struct {
	Type        string    `json:"type" bson:"type"`
	Coordinates []float64 `json:"coordinates" bson:"coordinates"`
}

Location represents a location.

type LocationFor

type LocationFor string
const (
	LocationForRestrictionArea    LocationFor = "RESTRICTION_AREA"
	LocationForVehicleType        LocationFor = "VEHICLE_TYPE"
	LocationForLocationWiseFare   LocationFor = "LOCATION_WISE_FARE"
	LocationForUserDeliveryCharge LocationFor = "USER_DELIVERY_CHARGE"
	LocationForAirportSurcharge   LocationFor = "AIRPORT_SURCHARGE"
)

func (LocationFor) IsValid

func (e LocationFor) IsValid() bool

func (LocationFor) MarshalGQL

func (e LocationFor) MarshalGQL(w io.Writer)

func (LocationFor) String

func (e LocationFor) String() string

func (*LocationFor) UnmarshalGQL

func (e *LocationFor) UnmarshalGQL(v interface{}) error

type LocationWiseFare

type LocationWiseFare struct {
	ID                  primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt           time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt           *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt           time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy           primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	SourceLocation      string             `json:"sourceLocation" bson:"sourceLocation"`
	DestinationLocation string             `json:"destinationLocation" bson:"destinationLocation"`
	FlatFare            string             `json:"flatFare" bson:"flatFare"`
	VehicleType         string             `json:"vehicleType" bson:"vehicleType"`
	IsActive            bool               `json:"isActive" bson:"isActive"`
}

LocationWiseFare represents a location wise fare.

func CreateLocationWiseFare

func CreateLocationWiseFare(fare LocationWiseFare) (*LocationWiseFare, error)

CreateLocationWiseFare creates location wise fare.

func GetLocationWiseFareByID

func GetLocationWiseFareByID(ID string) (*LocationWiseFare, error)

GetLocationWiseFareByID gives requested location wise fare by id.

func GetLocationWiseFares

func GetLocationWiseFares(filter bson.D, limit int, after *string, before *string, first *int, last *int) (locationWiseFares []*LocationWiseFare, totalCount int64, hasPrevious, hasNext bool, err error)

GetLocationWiseFares gives a list of location wise fares.

func UpdateLocationWiseFare

func UpdateLocationWiseFare(c *LocationWiseFare) (*LocationWiseFare, error)

UpdateLocationWiseFare updates location wise fare.

func (*LocationWiseFare) MarshalBinary

func (fare *LocationWiseFare) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*LocationWiseFare) UnmarshalBinary

func (fare *LocationWiseFare) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type LocationWiseFareConnection

type LocationWiseFareConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*LocationWiseFareEdge `json:"edges"`
	// A list of nodes.
	Nodes []*LocationWiseFare `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of LocationWiseFare

type LocationWiseFareEdge

type LocationWiseFareEdge struct {
	Cursor string            `json:"cursor"`
	Node   *LocationWiseFare `json:"node"`
}

Paginating the node LocationWiseFare

type LocationWiseFareSearch

type LocationWiseFareSearch string
const (
	LocationWiseFareSearchAll                 LocationWiseFareSearch = "ALL"
	LocationWiseFareSearchSourceLocation      LocationWiseFareSearch = "SOURCE_LOCATION"
	LocationWiseFareSearchDestinationLocation LocationWiseFareSearch = "DESTINATION_LOCATION"
	LocationWiseFareSearchFlatFare            LocationWiseFareSearch = "FLAT_FARE"
	LocationWiseFareSearchVehicleType         LocationWiseFareSearch = "VEHICLE_TYPE"
)

func (LocationWiseFareSearch) IsValid

func (e LocationWiseFareSearch) IsValid() bool

func (LocationWiseFareSearch) MarshalGQL

func (e LocationWiseFareSearch) MarshalGQL(w io.Writer)

func (LocationWiseFareSearch) String

func (e LocationWiseFareSearch) String() string

func (*LocationWiseFareSearch) UnmarshalGQL

func (e *LocationWiseFareSearch) UnmarshalGQL(v interface{}) error

type LocationWiseFareSelectStatus

type LocationWiseFareSelectStatus string
const (
	LocationWiseFareSelectStatusActive   LocationWiseFareSelectStatus = "ACTIVE"
	LocationWiseFareSelectStatusInactive LocationWiseFareSelectStatus = "INACTIVE"
	LocationWiseFareSelectStatusDelete   LocationWiseFareSelectStatus = "DELETE"
)

func (LocationWiseFareSelectStatus) IsValid

func (e LocationWiseFareSelectStatus) IsValid() bool

func (LocationWiseFareSelectStatus) MarshalGQL

func (e LocationWiseFareSelectStatus) MarshalGQL(w io.Writer)

func (LocationWiseFareSelectStatus) String

func (*LocationWiseFareSelectStatus) UnmarshalGQL

func (e *LocationWiseFareSelectStatus) UnmarshalGQL(v interface{}) error

type MarketSettings

type MarketSettings struct {
	ID           primitive.ObjectID  `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt    time.Time           `json:"createdAt" bson:"createdAt"`
	DeletedAt    *time.Time          `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt    time.Time           `json:"updatedAt" bson:"updatedAt"`
	General      GeneralSetting      `json:"general" bson:"general"`
	Email        EmailSetting        `json:"email" bson:"email"`
	Appearance   AppearanceSetting   `json:"appearance" bson:"appearance"`
	Sms          SMSSetting          `json:"sms" bson:"sms"`
	SocialMedia  SocialMediaSetting  `json:"socialMedia" bson:"socialMedia"`
	App          AppSetting          `json:"app" bson:"app"`
	Installation InstallationSetting `json:"installation" bson:"installation"`
	Store        StoreSetting        `json:"store" bson:"store"`
	Payment      PaymentSetting      `json:"payment" bson:"payment"`
	IsActive     bool                `json:"isActive" bson:"isActive"`
}

MarketSettings represents a market settings.

func CreateMarketSettings

func CreateMarketSettings(setting *MarketSettings) (*MarketSettings, error)

CreateMarketSettings creates market settings.

func GetMarketSettings

func GetMarketSettings(filter bson.D, limit int, after *string, before *string, first *int, last *int) (marketSettings []*MarketSettings, totalCount int64, hasPrevious, hasNext bool, err error)

GetMarketSettings gives a list of market settings.

func GetMarketSettingsByID

func GetMarketSettingsByID(ID string) (*MarketSettings, error)

GetMarketSettingsByID gives market settings by id.

func (*MarketSettings) MarshalBinary

func (setting *MarketSettings) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*MarketSettings) UnmarshalBinary

func (setting *MarketSettings) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type MarketStatistics

type MarketStatistics struct {
	ID *string `json:"id"`
}

type Merchant

type Merchant struct {
	ID                primitive.ObjectID     `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt         time.Time              `json:"createdAt" bson:"createdAt"`
	DeletedAt         *time.Time             `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt         time.Time              `json:"updatedAt" bson:"updatedAt"`
	CreatedBy         string                 `json:"createdBy" bson:"createdBy"`
	MID               string                 `json:"mid" bson:"mid"`
	Zipcode           string                 `json:"zipcode" bson:"zipcode"`
	Email             string                 `json:"email" bson:"email"`
	MobileNo          string                 `json:"mobileNo" bson:"mobileNo"`
	City              string                 `json:"city" bson:"city"`
	State             string                 `json:"state" bson:"state"`
	Country           string                 `json:"country" bson:"country"`
	Currency          string                 `json:"currency" bson:"currency"`
	Name              string                 `json:"name" bson:"name"`
	IsApproved        bool                   `json:"isApproved" bson:"isApproved"`
	IsApprovedOn      time.Time              `json:"isApprovedOn" bson:"isApprovedOn"`
	IsActive          bool                   `json:"isActive" bson:"isActive"`
	IsLocked          bool                   `json:"isLocked" bson:"isLocked"`
	BusinessType      string                 `json:"businessType" bson:"businessType"`
	BillingLabel      string                 `json:"billingLabel" bson:"billingLabel"`
	BusinessModel     string                 `json:"businessModel" bson:"businessModel"`
	WebsiteURL        string                 `json:"websiteUrl" bson:"websiteUrl"`
	GSTNumber         string                 `json:"gstNumber" bson:"gstNumber"`
	CINNumber         string                 `json:"cinNumber" bson:"cinNumber"`
	PANNumber         string                 `json:"panNumber" bson:"panNumber"`
	Address           string                 `json:"address" bson:"address"`
	BankAccount       string                 `json:"bankAccount" bson:"bankAccount"`
	BusinessDocuments []Document             `json:"businessDocuments" bson:"businessDocuments"`
	Users             []string               `json:"users" bson:"users"`
	MCC               string                 `json:"mcc" bson:"mcc"`
	Metadata          map[string]interface{} `json:"metadata" bson:"metadata"`
}

Merchant represents a merchant.

func CreateMerchant

func CreateMerchant(merchant Merchant) (*Merchant, error)

CreateMerchant creates merchant.

func GetMerchants

func GetMerchants(filter bson.D, limit int, after *string, before *string, first *int, last *int) (merchants []*Merchant, totalCount int64, hasPrevious, hasNext bool, err error)

GetMerchants gives a list of merchants.

func GetMerchantsByUserID

func GetMerchantsByUserID(uid string) []Merchant

GetMerchantsByUserID gives a list of merchants.

func UpdateMerchant

func UpdateMerchant(c *Merchant) (*Merchant, error)

UpdateMerchant updates the merchant.

func (*Merchant) GetMerchantByMID

func (m *Merchant) GetMerchantByMID(mid string) (*Merchant, error)

GetMerchantByMID gives requested merchant details by id.

func (*Merchant) MarshalBinary

func (merchant *Merchant) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*Merchant) UnmarshalBinary

func (merchant *Merchant) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type MetaData

type MetaData struct {
	ID    int    `json:"id"`
	Key   string `json:"key"`
	Value string `json:"value"`
}

type NearByVehicle

type NearByVehicle struct {
	Latitude   float64 `json:"latitude"`
	Longitude  float64 `json:"longitude"`
	ID         string  `json:"id"`
	Type       string  `json:"type"`
	DriverID   string  `json:"driverId"`
	IsOccupied bool    `json:"isOccupied"`
}

type NewsletterSubscriber

type NewsletterSubscriber struct {
	ID        primitive.ObjectID         `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt time.Time                  `json:"createdAt" bson:"createdAt"`
	DeletedAt *time.Time                 `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt time.Time                  `json:"updatedAt" bson:"updatedAt"`
	CreatedBy string                     `json:"createdBy" bson:"createdBy"`
	Name      string                     `json:"name" bson:"name"`
	Email     string                     `json:"email" bson:"email"`
	Status    NewsletterSubscriberStatus `json:"status" bson:"status"`
	Date      time.Time                  `json:"date" bson:"date"`
	IPAddress string                     `json:"ipAddress" bson:"ipAddress"`
	IsActive  bool                       `json:"isActive" bson:"isActive"`
}

NewsletterSubscriber represents a news letter subscriber.

func CreateNewsletterSubscriber

func CreateNewsletterSubscriber(newsletterSubscriber NewsletterSubscriber) (*NewsletterSubscriber, error)

CreateNewsletterSubscriber creates new news letter subscriber.

func GetNewsletterSubscriberByID

func GetNewsletterSubscriberByID(ID string) (*NewsletterSubscriber, error)

GetNewsletterSubscriberByID gives requested news letter subscriber by id.

func GetNewsletterSubscribers

func GetNewsletterSubscribers(filter bson.D, limit int, after *string, before *string, first *int, last *int) (newsletterSubscribers []*NewsletterSubscriber, totalCount int64, hasPrevious, hasNext bool, err error)

GetNewsletterSubscribers gives a list of news letter subscribers.

func (*NewsletterSubscriber) MarshalBinary

func (newsletterSubscriber *NewsletterSubscriber) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*NewsletterSubscriber) UnmarshalBinary

func (newsletterSubscriber *NewsletterSubscriber) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type NewsletterSubscriberConnection

type NewsletterSubscriberConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*NewsletterSubscriberEdge `json:"edges"`
	// A list of nodes.
	Nodes []*NewsletterSubscriber `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of NewsletterSubscriber

type NewsletterSubscriberEdge

type NewsletterSubscriberEdge struct {
	Cursor string                `json:"cursor"`
	Node   *NewsletterSubscriber `json:"node"`
}

Paginating the node NewsletterSubscriber

type NewsletterSubscriberStatus

type NewsletterSubscriberStatus string
const (
	NewsletterSubscriberStatusSubscribe   NewsletterSubscriberStatus = "SUBSCRIBE"
	NewsletterSubscriberStatusUnsubscribe NewsletterSubscriberStatus = "UNSUBSCRIBE"
)

func (NewsletterSubscriberStatus) IsValid

func (e NewsletterSubscriberStatus) IsValid() bool

func (NewsletterSubscriberStatus) MarshalGQL

func (e NewsletterSubscriberStatus) MarshalGQL(w io.Writer)

func (NewsletterSubscriberStatus) String

func (*NewsletterSubscriberStatus) UnmarshalGQL

func (e *NewsletterSubscriberStatus) UnmarshalGQL(v interface{}) error

type NewsletterSubscriberType

type NewsletterSubscriberType string
const (
	NewsletterSubscriberTypeAll   NewsletterSubscriberType = "ALL"
	NewsletterSubscriberTypeName  NewsletterSubscriberType = "NAME"
	NewsletterSubscriberTypeEmail NewsletterSubscriberType = "EMAIL"
)

func (NewsletterSubscriberType) IsValid

func (e NewsletterSubscriberType) IsValid() bool

func (NewsletterSubscriberType) MarshalGQL

func (e NewsletterSubscriberType) MarshalGQL(w io.Writer)

func (NewsletterSubscriberType) String

func (e NewsletterSubscriberType) String() string

func (*NewsletterSubscriberType) UnmarshalGQL

func (e *NewsletterSubscriberType) UnmarshalGQL(v interface{}) error

type Notification

type Notification struct {
	ID        primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt time.Time          `json:"updatedAt" bson:"updatedAt"`
	IsActive  bool               `json:"isActive" bson:"isActive"`
}

Notification represents a notification.

func CreateNotification

func CreateNotification(notification Notification) (*Notification, error)

CreateNotification creates new notification.

func GetNotificationByID

func GetNotificationByID(ID string) (*Notification, error)

GetNotificationByID gives requested notification by id.

func GetNotifications

func GetNotifications(filter bson.D, limit int, after *string, before *string, first *int, last *int) (notifications []*Notification, totalCount int64, hasPrevious, hasNext bool, err error)

GetNotifications gives a list of notifications.

func UpdateNotification

func UpdateNotification(c *Notification) (*Notification, error)

UpdateNotification updates notifications.

func (*Notification) MarshalBinary

func (notification *Notification) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*Notification) UnmarshalBinary

func (notification *Notification) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type OAuthApplication

type OAuthApplication struct {
	ID                      primitive.ObjectID    `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt               time.Time             `json:"createdAt" bson:"createdAt"`
	DeletedAt               *time.Time            `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt               time.Time             `json:"updatedAt" bson:"updatedAt"`
	CreatedBy               primitive.ObjectID    `json:"createdBy" bson:"createdBy"`
	ClientID                string                `json:"clientId" bson:"clientId"`
	ClientSecret            string                `json:"clientSecret" bson:"clientSecret"`
	ClientDescription       string                `json:"clientDescription" bson:"clientDescription"`
	AccessTokenValiditySecs uint32                `json:"accessTokenValiditySecs" bson:"accessTokenValiditySecs"`
	Authorities             []Authority           `json:"authorities" bson:"authorities"`
	AuthorizedGrantTypes    []AuthorizedGrantType `json:"authorizedGrantTypes" bson:"authorizedGrantTypes"`
	AppName                 string                `json:"appName" bson:"appName"`
	PublisherName           string                `json:"publisherName" bson:"publisherName"`
	RedirectURL             string                `json:"redirectURLs" bson:"redirectURLs"`
	Scopes                  []string              `json:"scopes" bson:"scopes"`
	Developers              []string              `json:"developers" bson:"developers"`
	DevelopmentUsers        []string              `json:"developmentUsers" bson:"developmentUsers"`
	AppIcon                 string                `json:"appIcon" bson:"appIcon"`
	AllowImplicitGrant      AllowImplicitGrant    `json:"allowImplicitGrant" bson:"allowImplicitGrant"`
	WhiteListedDomains      []string              `json:"whiteListedDomains" bson:"whiteListedDomains"`
	TermsOfServiceURL       string                `json:"termsOfServiceURL" bson:"termsOfServiceURL"`
	PrivacyURL              string                `json:"privacyURL" bson:"privacyURL"`
	Website                 string                `json:"website" bson:"website"`
	ContactEmail            string                `json:"contactEmail" bson:"contactEmail"`
	IsActive                bool                  `json:"isActive" bson:"isActive"`
}

OAuthApplication represents a oauth application.

func CreateOAuthApplication

func CreateOAuthApplication(oAuthApplication OAuthApplication) (*OAuthApplication, error)

CreateOAuthApplication creates new oauth application.

func GetOAuthApplicationByFilter

func GetOAuthApplicationByFilter(filter bson.D) *OAuthApplication

GetOAuthApplicationByFilter gives the oauth application by filter.

func GetOAuthApplicationByID

func GetOAuthApplicationByID(ID string) (*OAuthApplication, error)

GetOAuthApplicationByID gives requested oauth application by id.

func GetOAuthApplications

func GetOAuthApplications(filter bson.D, limit int, after *string, before *string, first *int, last *int) (oAuthApps []*OAuthApplication, totalCount int64, hasPrevious, hasNext bool, err error)

GetOAuthApplications gives a list of oauth applications.

func UpdateOAuthApplication

func UpdateOAuthApplication(c *OAuthApplication) (*OAuthApplication, error)

UpdateOAuthApplication updates oauth applications.

func (*OAuthApplication) MarshalBinary

func (app *OAuthApplication) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*OAuthApplication) UnmarshalBinary

func (app *OAuthApplication) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type OAuthApplicationConnection

type OAuthApplicationConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*OAuthApplicationEdge `json:"edges"`
	// A list of nodes.
	Nodes []*OAuthApplication `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

type OAuthApplicationEdge

type OAuthApplicationEdge struct {
	Cursor string            `json:"cursor"`
	Node   *OAuthApplication `json:"node"`
}

Paginating the node OAuthApplication

type OAuthApplicationStatistics

type OAuthApplicationStatistics struct {
	Stats string `json:"stats" bson:"stats"`
}

OAuthApplicationStatistics represents oauth application statistics.

type OAuthScope

type OAuthScope struct {
	ID          primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt   time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt   *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt   time.Time          `json:"updatedAt" bson:"updatedAt"`
	Scope       string             `json:"scope" bson:"scope"`
	Description *string            `json:"description" bson:"description"`
	IsDefault   bool               `json:"isDefault" bson:"isDefault"`
}

OAuthScope ...

func GetOAuthScopesByFilter

func GetOAuthScopesByFilter(filter bson.D, limit int, after *string, before *string, first *int, last *int) (oAuthScopes []*OAuthScope, totalCount int64, hasPrevious, hasNext bool, err error)

GetOAuthScopesByFilter gives requested oauth application by id.

type OfferAppliesOn

type OfferAppliesOn string
const (
	OfferAppliesOnNone       OfferAppliesOn = "NONE"
	OfferAppliesOnFirstOrder OfferAppliesOn = "FIRST_ORDER"
	OfferAppliesOnAllOrders  OfferAppliesOn = "ALL_ORDERS"
)

func (OfferAppliesOn) IsValid

func (e OfferAppliesOn) IsValid() bool

func (OfferAppliesOn) MarshalGQL

func (e OfferAppliesOn) MarshalGQL(w io.Writer)

func (OfferAppliesOn) String

func (e OfferAppliesOn) String() string

func (*OfferAppliesOn) UnmarshalGQL

func (e *OfferAppliesOn) UnmarshalGQL(v interface{}) error

type Order

type Order struct {
	ID                           primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt                    time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt                    *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt                    time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy                    primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	ParentID                     primitive.ObjectID `json:"parentID" bson:"parentID"`
	OrderNumber                  int                `json:"orderNumber" bson:"orderNumber"`
	OrderType                    string             `json:"orderType" bson:"orderType"`
	StoreID                      primitive.ObjectID `json:"storeId" bson:"storeId"`
	OrderItems                   OrderItem          `json:"orderItems" bson:"orderItems"`
	ServiceType                  string             `json:"serviceType" bson:"serviceType"`
	Coupon                       string             `json:"coupon" bson:"coupon"`
	ProviderID                   primitive.ObjectID `json:"providerId" bson:"providerId"`
	DeliveryDriver               string             `json:"deliveryDriver" bson:"deliveryDriver"`
	DeliveryAddress              Address            `json:"deliveryAddress" bson:"deliveryAddress"`
	ExpectedEarning              float64            `json:"expectedEarning" bson:"expectedEarning"`
	EarnedAmount                 float64            `json:"earnedAmount" bson:"earnedAmount"`
	CancellationAndRefundDetails string             `json:"cancellationAndRefundDetails" bson:"cancellationAndRefundDetails"`
	OrderKey                     string             `json:"orderKey" bson:"orderKey"`
	CreatedVia                   string             `json:"createdVia" bson:"createdVia"`
	Version                      string             `json:"version" bson:"version"`
	OrderStatus                  OrderStatus        `json:"orderStatus" bson:"orderStatus"`
	Currency                     Currency           `json:"currency" bson:"currency"`
	DiscountAmount               float64            `json:"discountAmount" bson:"discountAmount"`
	DiscountTax                  float64            `json:"discountTax" bson:"discountTax"`
	ShippingTotal                float64            `json:"shippingTotal" bson:"shippingTotal"`
	ShippingTax                  float64            `json:"shippingTax" bson:"shippingTax"`
	CartTax                      float64            `json:"cartTax" bson:"cartTax"`
	OrderTotalAmount             float64            `json:"orderTotalAmount" bson:"orderTotalAmount"`
	TotalTax                     float64            `json:"totalTax" bson:"totalTax"`
	PricesIncludeTax             bool               `json:"pricesIncludeTax" bson:"pricesIncludeTax"`
	CustomerID                   primitive.ObjectID `json:"customerID" bson:"customerID"`
	CustomerIPAddress            string             `json:"customerIPAddress" bson:"customerIPAddress"`
	CustomerUserAgent            string             `json:"customerUserAgent" bson:"customerUserAgent"`
	CustomerNote                 string             `json:"customerNote" bson:"customerNote"`
	Billing                      Billing            `json:"billing" bson:"billing"`
	Shipping                     Shipping           `json:"shipping" bson:"shipping"`
	PaymentMethod                PaymentMethod      `json:"paymentMethod" bson:"paymentMethod"`
	PaymentMethodTitle           string             `json:"paymentMethodTitle" bson:"paymentMethodTitle"`
	TransactionID                primitive.ObjectID `json:"transactionID" bson:"transactionID"`
	DatePaid                     time.Time          `json:"datePaid" bson:"datePaid"`
	DateCompleted                time.Time          `json:"dateCompleted" bson:"dateCompleted"`
	CartHash                     string             `json:"cartHash" bson:"cartHash"`
	Metadata                     MetaData           `json:"metadata" bson:"metadata"`
	LineItems                    LineItems          `json:"lineItems" bson:"lineItems"`
	TaxLines                     TaxLines           `json:"taxLines" bson:"taxLines"`
	ShippingLine                 ShippingLines      `json:"shippingLines" bson:"shippingLines"`
	FeeLines                     FeeLines           `json:"feeLines" bson:"feeLines"`
	CouponLines                  CouponLines        `json:"couponLines" bson:"couponLines"`
	Refunds                      Refunds            `json:"refunds" bson:"refunds"`
	IsActive                     bool               `json:"isActive" bson:"isActive"`
}

Order represents a order.

func CreateOrder

func CreateOrder(order Order) (*Order, error)

CreateOrder creates new order.

func GetOrderByID

func GetOrderByID(ID string) (*Order, error)

GetOrderByID gives requested order by id.

func GetOrders

func GetOrders(filter bson.D, limit int, after *string, before *string, first *int, last *int) (orders []*Order, totalCount int64, hasPrevious, hasNext bool, err error)

GetOrders gives a list of orders.

func UpdateOrder

func UpdateOrder(o *Order) (*Order, error)

UpdateOrder updates orders.

func (*Order) MarshalBinary

func (order *Order) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*Order) UnmarshalBinary

func (order *Order) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type OrderConnection

type OrderConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*OrderEdge `json:"edges"`
	// A list of nodes.
	Nodes []*Order `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of Order

type OrderEdge

type OrderEdge struct {
	Cursor string `json:"cursor"`
	Node   *Order `json:"node"`
}

Paginating the node Order

type OrderItem

type OrderItem struct {
	ID       primitive.ObjectID `json:"id"`
	Name     string             `json:"name"`
	Quantity int                `json:"quantity"`
}

type OrderItemInput

type OrderItemInput struct {
	ID       primitive.ObjectID `json:"id"`
	Name     string             `json:"name"`
	Quantity int                `json:"quantity"`
}

type OrderNote

type OrderNote struct {
	ID           primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt    time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt    *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt    time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy    primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	Author       string             `json:"author" bson:"author"`
	Note         string             `json:"note" bson:"note"`
	CustomerNote bool               `json:"customerNote" bson:"customerNote"`
	IsActive     bool               `json:"isActive" bson:"isActive"`
}

func CreateOrderNote

func CreateOrderNote(orderNote OrderNote) (*OrderNote, error)

CreateOrderNote creates new order note.

func GetOrderNoteByID

func GetOrderNoteByID(ID string) (*OrderNote, error)

GetOrderNoteByID gives order note by id.

func GetOrderNotes

func GetOrderNotes(filter bson.D, limit int, after *string, before *string, first *int, last *int) (orderNotes []*OrderNote, totalCount int64, hasPrevious, hasNext bool, err error)

GetOrderNotes gives a list of order notes.

func UpdateOrderNote

func UpdateOrderNote(s *OrderNote) (*OrderNote, error)

UpdateOrderNote updates order note.

func (*OrderNote) MarshalBinary

func (orderNote *OrderNote) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*OrderNote) UnmarshalBinary

func (orderNote *OrderNote) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type OrderNoteConnection

type OrderNoteConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*OrderNoteEdge `json:"edges"`
	// A list of nodes.
	Nodes []*OrderNote `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

type OrderNoteEdge

type OrderNoteEdge struct {
	Cursor string     `json:"cursor"`
	Node   *OrderNote `json:"node"`
}

Paginating the node OrderNote

type OrderStatus

type OrderStatus string
const (
	OrderStatusPlaced     OrderStatus = "PLACED"
	OrderStatusDeclined   OrderStatus = "DECLINED"
	OrderStatusDelivered  OrderStatus = "DELIVERED"
	OrderStatusProcessing OrderStatus = "PROCESSING"
)

func (OrderStatus) IsValid

func (e OrderStatus) IsValid() bool

func (OrderStatus) MarshalGQL

func (e OrderStatus) MarshalGQL(w io.Writer)

func (OrderStatus) String

func (e OrderStatus) String() string

func (*OrderStatus) UnmarshalGQL

func (e *OrderStatus) UnmarshalGQL(v interface{}) error

type OrderStatusUtility

type OrderStatusUtility struct {
	ID                primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt         time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt         *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt         time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy         primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	StatusTitle       string             `json:"statusTitle" bson:"statusTitle"`
	StatusDescription string             `json:"statusDescription" bson:"statusDescription"`
	IsActive          bool               `json:"isActive" bson:"isActive"`
}

OrderStatusUtility represents a order status utility.

func CreateOrderStatusUtility

func CreateOrderStatusUtility(orderStatusUtility OrderStatusUtility) (*OrderStatusUtility, error)

CreateOrderStatusUtility creates new order status utility.

func GetOrderStatusUtilityByID

func GetOrderStatusUtilityByID(ID string) (*OrderStatusUtility, error)

GetOrderStatusUtilityByID gives requested order status utility by id.

func GetOrderstatusUtilities

func GetOrderstatusUtilities(filter bson.D, limit int, after *string, before *string, first *int, last *int) (orderSatusUtilities []*OrderStatusUtility, totalCount int64, hasPrevious, hasNext bool, err error)

GetOrderstatusUtilities gives a list of order status utilities.

func UpdateOrderStatusUtility

func UpdateOrderStatusUtility(c *OrderStatusUtility) (*OrderStatusUtility, error)

UpdateOrderStatusUtility updates order status utility.

func (*OrderStatusUtility) MarshalBinary

func (orderStatusUtility *OrderStatusUtility) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*OrderStatusUtility) UnmarshalBinary

func (orderStatusUtility *OrderStatusUtility) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type OrderStatusUtilityConnection

type OrderStatusUtilityConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*OrderStatusUtilityEdge `json:"edges"`
	// A list of nodes.
	Nodes []*OrderStatusUtility `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of OrderStatusUtility

type OrderStatusUtilityEdge

type OrderStatusUtilityEdge struct {
	Cursor string              `json:"cursor"`
	Node   *OrderStatusUtility `json:"node"`
}

Paginating the node OrderStatusUtility

type OrderStatusUtilitySearchType

type OrderStatusUtilitySearchType string
const (
	OrderStatusUtilitySearchTypeStatusTitle       OrderStatusUtilitySearchType = "STATUS_TITLE"
	OrderStatusUtilitySearchTypeStatusDescription OrderStatusUtilitySearchType = "STATUS_DESCRIPTION"
)

func (OrderStatusUtilitySearchType) IsValid

func (e OrderStatusUtilitySearchType) IsValid() bool

func (OrderStatusUtilitySearchType) MarshalGQL

func (e OrderStatusUtilitySearchType) MarshalGQL(w io.Writer)

func (OrderStatusUtilitySearchType) String

func (*OrderStatusUtilitySearchType) UnmarshalGQL

func (e *OrderStatusUtilitySearchType) UnmarshalGQL(v interface{}) error

type OtherServiceDetailsInput

type OtherServiceDetailsInput struct {
	ServiceOrderItems []*ServiceOrderInput `json:"serviceOrderItems"`
	Schedule          *time.Time           `json:"schedule"`
	DeliveryAddress   *AddAddressInput     `json:"deliveryAddress"`
}

type PackageType

type PackageType struct {
	ID          primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt   time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt   *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt   time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy   primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	PackageType string             `json:"packageType" bson:"packageType"`
	Language    string             `json:"language" bson:"language"`
	IsActive    bool               `json:"isActive" bson:"isActive"`
}

PackageType represents a package type.

func CreatePackageType

func CreatePackageType(packageType PackageType) (*PackageType, error)

CreatePackageType creates new package type.

func GetPackageTypeByID

func GetPackageTypeByID(ID string) (*PackageType, error)

GetPackageTypeByID gives requested package type by id.

func GetPackageTypes

func GetPackageTypes(filter bson.D, limit int, after *string, before *string, first *int, last *int) (packageTypes []*PackageType, totalCount int64, hasPrevious, hasNext bool, err error)

GetPackageTypes gives a list of package types.

func UpdatePackageType

func UpdatePackageType(p *PackageType) (*PackageType, error)

UpdatePackageType updates package type.

func (*PackageType) MarshalBinary

func (packageType *PackageType) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*PackageType) UnmarshalBinary

func (packageType *PackageType) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type PackageTypeConnection

type PackageTypeConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*PackageTypeEdge `json:"edges"`
	// A list of nodes.
	Nodes []*PackageType `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of PackageType

type PackageTypeEdge

type PackageTypeEdge struct {
	Cursor string       `json:"cursor"`
	Node   *PackageType `json:"node"`
}

Paginating the node PackageType

type Page

type Page struct {
	ID          primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt   time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt   *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt   time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy   primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	Name        string             `json:"name" bson:"name"`
	Title       string             `json:"title" bson:"title"`
	Body        string             `json:"body" bson:"body"`
	Description string             `json:"description" bson:"description"`
	Language    string             `json:"language" bson:"language"`
	IsActive    bool               `json:"isActive" bson:"isActive"`
}

Page represents a page.

func CreatePage

func CreatePage(page Page) (*Page, error)

CreatePage creates new page.

func GetPageByID

func GetPageByID(ID string) (*Page, error)

GetPageByID gives requested page by id.

func GetPages

func GetPages(filter bson.D, limit int, after *string, before *string, first *int, last *int) (pages []*Page, totalCount int64, hasPrevious, hasNext bool, err error)

GetPages gives a list of pages.

func UpdatePage

func UpdatePage(c *Page) (*Page, error)

UpdatePage updates page.

func (*Page) MarshalBinary

func (page *Page) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*Page) UnmarshalBinary

func (page *Page) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type PageConnection

type PageConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*PageEdge `json:"edges"`
	// A list of nodes.
	Nodes []*Page `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of Page

type PageEdge

type PageEdge struct {
	Cursor string `json:"cursor"`
	Node   *Page  `json:"node"`
}

Paginating the node Page

type PageInfo

type PageInfo struct {
	// When paginating forwards, the cursor to continue.
	StartCursor string `json:"startCursor"`
	// When paginating backwards, the cursor to continue.
	EndCursor string `json:"endCursor"`
	// When paginating forwards, are there more items?
	HasNextPage bool `json:"hasNextPage"`
	// When paginating backwards, are there more items?
	HasPreviousPage bool `json:"hasPreviousPage"`
}

Information to aid in pagination.

type PageInfoUtility

type PageInfoUtility struct {
	Filter          bson.D
	Limit           int
	HasNextPage     bool
	HasPreviousPage bool
	QueryOpts       options.FindOptions
}

func PaginationUtility

func PaginationUtility(after *string, before *string, first *int, last *int, count *int) (*PageInfoUtility, error)

type PageType

type PageType string
const (
	PageTypeAll   PageType = "ALL"
	PageTypeName  PageType = "NAME"
	PageTypeTitle PageType = "TITLE"
)

func (PageType) IsValid

func (e PageType) IsValid() bool

func (PageType) MarshalGQL

func (e PageType) MarshalGQL(w io.Writer)

func (PageType) String

func (e PageType) String() string

func (*PageType) UnmarshalGQL

func (e *PageType) UnmarshalGQL(v interface{}) error

type PaidEarning

type PaidEarning struct {
	ID                     primitive.ObjectID `json:"id"`
	BookingDate            time.Time          `json:"bookingDate"`
	FareAmount             float64            `json:"fareAmount"`
	Commission             float64            `json:"commission"`
	BookingCharge          float64            `json:"bookingCharge"`
	Tip                    float64            `json:"tip"`
	PaymentAfterCommission float64            `json:"paymentAfterCommission"`
	PaymentMethod          PaymentMethodType  `json:"paymentMethod"`
	Invoice                *Invoice           `json:"invoice"`
}

type PaidEarningConnection

type PaidEarningConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*PaidEarningEdge `json:"edges"`
	// A list of nodes.
	Nodes []*PaidEarning `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of PaidEarning

type PaidEarningEdge

type PaidEarningEdge struct {
	Cursor string       `json:"cursor"`
	Node   *PaidEarning `json:"node"`
}

Paginating the node PaidEarning

type PasswordToken

type PasswordToken struct {
	ID        primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt time.Time          `json:"createdAt" bson:"createdAt"`
	ExpiresAt time.Time          `json:"expiresAt" bson:"expiresAt"`
	UserID    primitive.ObjectID `json:"userID" bson:"userID"`
	Metadata  map[string]string  `json:"metadata" bson:"metadata"`
	Token     string             `json:"token" bson:"token"`
	TokenType TokenType          `json:"tokenType" bson:"tokenType"`
}

func CreatePasswordToken

func CreatePasswordToken(passwordToken *PasswordToken) (*PasswordToken, error)

CreatePasswordToken creates new password token

func GetPasswordToken

func GetPasswordToken(token string) (*PasswordToken, error)

GetPasswordTokenByID gives password token by token

type PaymentBy

type PaymentBy string
const (
	PaymentByUser         PaymentBy = "USER"
	PaymentByOrganization PaymentBy = "ORGANIZATION"
)

func (PaymentBy) IsValid

func (e PaymentBy) IsValid() bool

func (PaymentBy) MarshalGQL

func (e PaymentBy) MarshalGQL(w io.Writer)

func (PaymentBy) String

func (e PaymentBy) String() string

func (*PaymentBy) UnmarshalGQL

func (e *PaymentBy) UnmarshalGQL(v interface{}) error

type PaymentEnvironment

type PaymentEnvironment string
const (
	PaymentEnvironmentTest PaymentEnvironment = "TEST"
	PaymentEnvironmentLive PaymentEnvironment = "LIVE"
)

func (PaymentEnvironment) IsValid

func (e PaymentEnvironment) IsValid() bool

func (PaymentEnvironment) MarshalGQL

func (e PaymentEnvironment) MarshalGQL(w io.Writer)

func (PaymentEnvironment) String

func (e PaymentEnvironment) String() string

func (*PaymentEnvironment) UnmarshalGQL

func (e *PaymentEnvironment) UnmarshalGQL(v interface{}) error

type PaymentMethod

type PaymentMethod struct {
	ID        primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt *time.Time         `json:"-,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt time.Time          `json:"updatedAt" bson:"updatedAt"`
	Name      string             `json:"name" bson:"name"`
	Type      PaymentMethodType  `json:"type" bson:"type"`
	UserID    string             `json:"userId" bson:"userId"`
}

PaymentMethod represents a payment method.

func CreatePaymentMethod

func CreatePaymentMethod(paymentInstrument PaymentMethod) (*PaymentMethod, error)

CreatePaymentMethod creates payment method.

func GetPaymentMethodByID

func GetPaymentMethodByID(ID string) (*PaymentMethod, error)

GetPaymentMethodByID gives a payment method by id.

func GetPaymentMethods

func GetPaymentMethods(filter bson.D, limit int, after *string, before *string, first *int, last *int) (userPaymentMethods []*PaymentMethod, totalCount int64, hasPrevious, hasNext bool, err error)

GetPaymentMethods gives a list of payment methods.

func UpdateuserPaymentMethod

func UpdateuserPaymentMethod(paymentInstrument *PaymentMethod) (*PaymentMethod, error)

UpdateuserPaymentMethod updates user payment method.

func (*PaymentMethod) MarshalBinary

func (paymentInstrument *PaymentMethod) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*PaymentMethod) UnmarshalBinary

func (paymentInstrument *PaymentMethod) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type PaymentMethodType

type PaymentMethodType string
const (
	PaymentMethodTypeCash       PaymentMethodType = "CASH"
	PaymentMethodTypeDebit      PaymentMethodType = "DEBIT"
	PaymentMethodTypeCredit     PaymentMethodType = "CREDIT"
	PaymentMethodTypeNetbanking PaymentMethodType = "NETBANKING"
	PaymentMethodTypeUpi        PaymentMethodType = "UPI"
	PaymentMethodTypeWallet     PaymentMethodType = "WALLET"
)

func (PaymentMethodType) IsValid

func (e PaymentMethodType) IsValid() bool

func (PaymentMethodType) MarshalGQL

func (e PaymentMethodType) MarshalGQL(w io.Writer)

func (PaymentMethodType) String

func (e PaymentMethodType) String() string

func (*PaymentMethodType) UnmarshalGQL

func (e *PaymentMethodType) UnmarshalGQL(v interface{}) error

type PaymentMode

type PaymentMode string
const (
	PaymentModeCash     PaymentMode = "CASH"
	PaymentModeCard     PaymentMode = "CARD"
	PaymentModeCashCard PaymentMode = "CASH_CARD"
)

func (PaymentMode) IsValid

func (e PaymentMode) IsValid() bool

func (PaymentMode) MarshalGQL

func (e PaymentMode) MarshalGQL(w io.Writer)

func (PaymentMode) String

func (e PaymentMode) String() string

func (*PaymentMode) UnmarshalGQL

func (e *PaymentMode) UnmarshalGQL(v interface{}) error

type PaymentReportServiceType

type PaymentReportServiceType string
const (
	PaymentReportServiceTypeRide          PaymentReportServiceType = "RIDE"
	PaymentReportServiceTypeHailRide      PaymentReportServiceType = "HAIL_RIDE"
	PaymentReportServiceTypeRentalRide    PaymentReportServiceType = "RENTAL_RIDE"
	PaymentReportServiceTypeDelivery      PaymentReportServiceType = "DELIVERY"
	PaymentReportServiceTypeOtherServices PaymentReportServiceType = "OTHER_SERVICES"
	PaymentReportServiceTypeRidePool      PaymentReportServiceType = "RIDE_POOL"
)

func (PaymentReportServiceType) IsValid

func (e PaymentReportServiceType) IsValid() bool

func (PaymentReportServiceType) MarshalGQL

func (e PaymentReportServiceType) MarshalGQL(w io.Writer)

func (PaymentReportServiceType) String

func (e PaymentReportServiceType) String() string

func (*PaymentReportServiceType) UnmarshalGQL

func (e *PaymentReportServiceType) UnmarshalGQL(v interface{}) error

type PaymentSetting

type PaymentSetting struct {
	AppPaymentEnvironment         PaymentEnvironment `json:"appPaymentEnvironment"`
	PaymentMode                   PaymentMode        `json:"paymentMode"`
	AddPaymentMethod              AddPaymentMethod   `json:"addPaymentMethod"`
	EnableProviderCommission      bool               `json:"enableProviderCommission"`
	MinimumWalletAmount           int                `json:"minimumWalletAmount"`
	StripePublisherSandboxModeKey string             `json:"stripePublisherSandboxModeKey"`
	StripePublisherLiveModeKey    string             `json:"stripePublisherLiveModeKey"`
	StripeSecretSandboxModeKey    string             `json:"stripeSecretSandboxModeKey"`
	StripeSecretLiveModeKey       string             `json:"stripeSecretLiveModeKey"`
}

type PaymentSettingInput

type PaymentSettingInput struct {
	AppPaymentEnvironment         PaymentEnvironment `json:"appPaymentEnvironment"`
	PaymentMode                   PaymentMode        `json:"paymentMode"`
	AddPaymentMethod              AddPaymentMethod   `json:"addPaymentMethod"`
	EnableProviderCommission      bool               `json:"enableProviderCommission"`
	MinimumWalletAmount           int                `json:"minimumWalletAmount"`
	StripePublisherSandboxModeKey string             `json:"stripePublisherSandboxModeKey"`
	StripePublisherLiveModeKey    string             `json:"stripePublisherLiveModeKey"`
	StripeSecretSandboxModeKey    string             `json:"stripeSecretSandboxModeKey"`
	StripeSecretLiveModeKey       string             `json:"stripeSecretLiveModeKey"`
}

type PaymentSource

type PaymentSource struct {
	BankAccount *BankAccount `json:"-"`
	Card        *Card        `json:"-"`
	Deleted     bool         `json:"deleted"`
	ID          string       `json:"id"`
	//SourceObject *Source           `json:"-"`
	Type PaymentSourceType `json:"object"`
}

PaymentSource describes the payment source used to make a Charge. The Type should indicate which object is fleshed out (eg. BitcoinReceiver or Card) For more details see https://stripe.com/docs/api#retrieve_charge

type PaymentSourceType

type PaymentSourceType string

PaymentSourceType consts represent valid payment sources.

const (
	PaymentSourceTypeAccount         PaymentSourceType = "account"
	PaymentSourceTypeBankAccount     PaymentSourceType = "bank_account"
	PaymentSourceTypeBitcoinReceiver PaymentSourceType = "bitcoin_receiver"
	PaymentSourceTypeCard            PaymentSourceType = "card"
	PaymentSourceTypeObject          PaymentSourceType = "source"
)

List of values that PaymentSourceType can take.

type PaymentStatus

type PaymentStatus string
const (
	PaymentStatusSettled   PaymentStatus = "SETTLED"
	PaymentStatusUnsettled PaymentStatus = "UNSETTLED"
)

func (PaymentStatus) IsValid

func (e PaymentStatus) IsValid() bool

func (PaymentStatus) MarshalGQL

func (e PaymentStatus) MarshalGQL(w io.Writer)

func (PaymentStatus) String

func (e PaymentStatus) String() string

func (*PaymentStatus) UnmarshalGQL

func (e *PaymentStatus) UnmarshalGQL(v interface{}) error

type PaymentType

type PaymentType string
const (
	PaymentTypeCash         PaymentType = "CASH"
	PaymentTypeCard         PaymentType = "CARD"
	PaymentTypeOrganization PaymentType = "ORGANIZATION"
)

func (PaymentType) IsValid

func (e PaymentType) IsValid() bool

func (PaymentType) MarshalGQL

func (e PaymentType) MarshalGQL(w io.Writer)

func (PaymentType) String

func (e PaymentType) String() string

func (*PaymentType) UnmarshalGQL

func (e *PaymentType) UnmarshalGQL(v interface{}) error

type PlanTransformUsage

type PlanTransformUsage struct {
	DivideBy int64                               `json:"divideBy"`
	Round    SubscriptionPlanTransformUsageRound `json:"round"`
}

PlanTransformUsage represents the bucket billing configuration.

type PriceBasedOn

type PriceBasedOn string
const (
	PriceBasedOnSiteAdministrator PriceBasedOn = "SITE_ADMINISTRATOR"
	PriceBasedOnProvider          PriceBasedOn = "PROVIDER"
)

func (PriceBasedOn) IsValid

func (e PriceBasedOn) IsValid() bool

func (PriceBasedOn) MarshalGQL

func (e PriceBasedOn) MarshalGQL(w io.Writer)

func (PriceBasedOn) String

func (e PriceBasedOn) String() string

func (*PriceBasedOn) UnmarshalGQL

func (e *PriceBasedOn) UnmarshalGQL(v interface{}) error

type Product

type Product struct {
	ID                primitive.ObjectID   `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt         time.Time            `json:"createdAt" bson:"createdAt"`
	DeletedAt         *time.Time           `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt         time.Time            `json:"updatedAt" bson:"updatedAt"`
	CreatedBy         primitive.ObjectID   `json:"createdBy" bson:"createdBy"`
	Name              string               `json:"name" bson:"name"`
	MenuItem          string               `json:"item" bson:"item"`
	Slug              string               `json:"slug" bson:"slug"`
	Permalink         string               `json:"permalink" bson:"permalink"`
	Type              ProductType          `json:"type" bson:"type"`
	Status            string               `json:"status" bson:"status"`
	IsFeatured        bool                 `json:"featured" bson:"featured"`
	ItemTagName       string               `json:"itemTagName" bson:"itemTagName"`
	CatalogVisibility string               `json:"catalogVisibility" bson:"catalogVisibility"`
	Description       string               `json:"description" bson:"description"`
	ShortDescription  string               `json:"shortDescription" bson:"shortDescription"`
	Sku               string               `json:"sku" bson:"sku"`
	Price             float64              `json:"price" bson:"price"`
	RegularPrice      float64              `json:"regularPrice" bson:"regularPrice"`
	ServiceType       StoreCategory        `json:"serviceType" bson:"serviceType"`
	SalePrice         float64              `json:"salePrice" bson:"salePrice"`
	DateOnSaleFrom    time.Time            `json:"dateOnSaleFrom" bson:"dateOnSaleFrom"`
	DateOnSaleTo      time.Time            `json:"dateOnSaleTo" bson:"dateOnSaleTo"`
	PriceHTML         string               `json:"priceHtml" bson:"priceHtml"`
	OnSale            bool                 `json:"onSale" bson:"onSale"`
	Purchasable       bool                 `json:"purchasable" bson:"purchasable"`
	TotalSales        int                  `json:"totalSales" bson:"totalSales"`
	Store             string               `json:"store" bson:"store"`
	Virtual           bool                 `json:"virtual" bson:"virtual"`
	DisplayOrder      int                  `json:"displayOrder" bson:"displayOrder"`
	Downloadable      bool                 `json:"downloadable" bson:"downloadable"`
	Downloads         []ProductDownload    `json:"downloads" bson:"downloads"`
	DownloadLimit     int                  `json:"downloadLimit" bson:"downloadLimit"`
	DownloadExpiry    int                  `json:"downloadExpiry" bson:"downloadExpiry"`
	ExternalURL       string               `json:"externalUrl" bson:"externalUrl"`
	ButtonText        string               `json:"buttonText" bson:"buttonText"`
	TaxStatus         string               `json:"taxStatus" bson:"taxStatus"`
	TaxClass          string               `json:"taxClass" bson:"taxClass"`
	ManageStock       bool                 `json:"manageStock" bson:"manageStock"`
	StockQuantity     int                  `json:"stockQuantity" bson:"stockQuantity"`
	StockStatus       string               `json:"stockStatus" bson:"stockStatus"`
	BackOrders        string               `json:"backOrders" bson:"backOrders"`
	BackOrdersAllowed bool                 `json:"backOrdersAllowed" bson:"backOrdersAllowed"`
	BackOrdered       bool                 `json:"backOrdered" bson:"backOrdered"`
	SoldIndividually  bool                 `json:"soldIndividually" bson:"soldIndividually"`
	Weight            float64              `json:"weight" bson:"weight"`
	Dimensions        ProductDimensions    `json:"dimensions" bson:"dimensions"`
	ShippingRequired  bool                 `json:"shippingRequired" bson:"shippingRequired"`
	ShippingTaxable   bool                 `json:"shippingTaxable" bson:"shippingTaxable"`
	ShippingClass     string               `json:"shippingClass" bson:"shippingClass"`
	ShippingClassID   string               `json:"shippingClassId" bson:"shippingClassId"`
	ReviewsAllowed    bool                 `json:"reviewsAllowed" bson:"reviewsAllowed"`
	AverageRating     string               `json:"averageRating" bson:"averageRating"`
	RatingCount       int                  `json:"ratingCount" bson:"ratingCount"`
	RelatedIds        []string             `json:"relatedIds" bson:"relatedIds"`
	UpsellIds         []string             `json:"upsellIds" bson:"upsellIds"`
	CrossSellIds      []string             `json:"crossSellIds" bson:"crossSellIds"`
	ParentID          string               `json:"parentId" bson:"parentId"`
	PurchaseNote      string               `json:"purchaseNote" bson:"purchaseNote"`
	Categories        []ProductCategory    `json:"categories" bson:"categories"`
	Tags              []ProductTag         `json:"tags" bson:"tags"`
	Images            []ProductImage       `json:"images" bson:"images"`
	Attributes        []ProductAttribute   `json:"attributes" bson:"attributes"`
	DefaultAttributes []ProductAttribute   `json:"defaultAttributes" bson:"defaultAttributes"`
	Variations        []primitive.ObjectID `json:"variations" bson:"variations"`
	GroupedProducts   []primitive.ObjectID `json:"groupedProducts" bson:"groupedProducts"`
	MenuOrder         int                  `json:"menuOrder" bson:"menuOrder"`
	MetaData          []ProductMetadata    `json:"metaData" bson:"metaData"`
	IsActive          bool                 `json:"isActive" bson:"isActive"`
}

Product represents a product.

func CreateProduct

func CreateProduct(product Product) (*Product, error)

CreateProduct creates new products.

func GetProductByID

func GetProductByID(ID string) *Product

GetProductByID gives requested product by id.

func GetProducts

func GetProducts(filter bson.D, limit int, after *string, before *string, first *int, last *int) (products []*Product, totalCount int64, hasPrevious, hasNext bool, err error)

GetProducts gives a list of products.

func UpdateProduct

func UpdateProduct(p *Product) (*Product, error)

UpdateProduct updates the product.

func (*Product) MarshalBinary

func (product *Product) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*Product) UnmarshalBinary

func (product *Product) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type ProductAttribute

type ProductAttribute struct {
	ID          primitive.ObjectID `json:"id" bson:"id"`
	CreatedAt   time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt   *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt   time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy   primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	Name        string             `json:"name" bson:"name"`
	Slug        string             `json:"slug" bson:"slug"`
	Type        string             `json:"type" bson:"type"`
	OrderBy     string             `json:"orderBy" bson:"orderBy"`
	HasArchives bool               `json:"hasArchives" bson:"hasArchives"`
	Position    int                `json:"position" bson:"position"`
	Visible     bool               `json:"visible" bson:"visible"`
	Variation   bool               `json:"variation" bson:"variation"`
	Option      []string           `json:"option" bson:"option"`
}

ProductAttribute represents product attribute.

func CreateProductAttribute

func CreateProductAttribute(product ProductAttribute) (*ProductAttribute, error)

CreateProductAttribute creates new product attributes.

func GetProductAttributeByID

func GetProductAttributeByID(ID string) (*ProductAttribute, error)

GetProductAttributeByID gives requested product attribute by id.

func GetProductAttributes

func GetProductAttributes(filter bson.D, limit int, after *string, before *string, first *int, last *int) (prodAttributes []*ProductAttribute, totalCount int64, hasPrevious, hasNext bool, err error)

GetProductAttributes gives a list of product attributes.

func UpdateProductAttribute

func UpdateProductAttribute(product *ProductAttribute) *ProductAttribute

UpdateProductAttribute updates the product attribute.

func (*ProductAttribute) MarshalBinary

func (product *ProductAttribute) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*ProductAttribute) UnmarshalBinary

func (product *ProductAttribute) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type ProductAttributeConnection

type ProductAttributeConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*ProductAttributeEdge `json:"edges"`
	// A list of nodes.
	Nodes []*ProductAttribute `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of Product Attributes

type ProductAttributeEdge

type ProductAttributeEdge struct {
	Cursor string            `json:"cursor"`
	Node   *ProductAttribute `json:"node"`
}

Paginating the node product attribute

type ProductAttributeTerm

type ProductAttributeTerm struct {
	ID          primitive.ObjectID `json:"id" bson:"id"`
	CreatedAt   time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt   time.Time          `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt   time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy   primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	Name        string             `json:"name" bson:"name"`
	Slug        string             `json:"slug" bson:"slug"`
	Description string             `json:"description" bson:"description"`
	MenuOrder   int                `json:"menuOrder" bson:"menuOrder"`
	Count       int                `json:"count" bson:"count"`
	Links       Links              `json:"links" bson:"links"`
}

ProductAttributeTerm represents product attribute term.

func CreateProductAttributeTerm

func CreateProductAttributeTerm(productAttributeTerm ProductAttributeTerm) (*ProductAttributeTerm, error)

CreateProductAttributeTerm creates new product attribute terms.

func GetProductAttributeTermByID

func GetProductAttributeTermByID(ID string) *ProductAttributeTerm

GetProductAttributeTermByID gives requested product attribute term by id.

func GetProductAttributeTerms

func GetProductAttributeTerms(filter bson.D, limit int, after *string, before *string, first *int, last *int) (prodAttributeTerms []*ProductAttributeTerm, totalCount int64, hasPrevious, hasNext bool, err error)

GetProducts gives a list of products.

func UpdateProductAttributeTerm

func UpdateProductAttributeTerm(p *ProductAttributeTerm) *ProductAttributeTerm

UpdateProductAttributeTerm updates the product.

func (*ProductAttributeTerm) MarshalBinary

func (product *ProductAttributeTerm) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*ProductAttributeTerm) UnmarshalBinary

func (product *ProductAttributeTerm) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type ProductAttributeTermConnection

type ProductAttributeTermConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*ProductAttributeTermEdge `json:"edges"`
	// A list of nodes.
	Nodes []*ProductAttributeTerm `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of Product Attributes Terms

type ProductAttributeTermEdge

type ProductAttributeTermEdge struct {
	Cursor string                `json:"cursor"`
	Node   *ProductAttributeTerm `json:"node"`
}

Paginating the node product attribute terms

type ProductBrand

type ProductBrand struct {
	ID            primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt     time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt     time.Time          `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt     time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy     primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	Type          string             `json:"type" bson:"type"`
	IsActive      bool               `json:"isActive" bson:"isActive"`
	Name          string             `json:"name" bson:"name"`
	Slug          string             `json:"slug" bson:"slug"`
	Description   string             `json:"description" bson:"description"`
	Relationships []string           `json:"relationships" bson:"relationships"`
}

func CreateProductBrand

func CreateProductBrand(productBrand ProductBrand) (*ProductBrand, error)

CreateProductBrand creates new advertisement banner.

func GetProductBrandByID

func GetProductBrandByID(ID string) *ProductBrand

GetProductBrandByID gets advertisement banners by ID.

func GetProductBrands

func GetProductBrands(filter bson.D, limit int, after *string, before *string, first *int, last *int) (productBrands []*ProductBrand, totalCount int64, hasPrevious, hasNext bool, err error)

GetProductBrands gets the array of advertisement banners.

func UpdateProductBrand

func UpdateProductBrand(c *ProductBrand) (*ProductBrand, error)

UpdateProductBrand updates the advertisement banners.

func (*ProductBrand) MarshalBinary

func (productBrand *ProductBrand) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*ProductBrand) UnmarshalBinary

func (productBrand *ProductBrand) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type ProductBrandConnection

type ProductBrandConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*ProductBrandEdge `json:"edges"`
	// A list of nodes.
	Nodes []*ProductBrand `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of Brands

type ProductBrandEdge

type ProductBrandEdge struct {
	Cursor string        `json:"cursor"`
	Node   *ProductBrand `json:"node"`
}

Paginating the node brand

type ProductCategory

type ProductCategory struct {
	ID           primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt    time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt    time.Time          `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt    time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy    primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	Name         string             `json:"name" bson:"name"`
	Slug         string             `json:"slug" bson:"slug"`
	Parent       int                `json:"parent" bson:"parent"`
	Store        string             `json:"store" bson:"store"`
	Description  string             `json:"description" bson:"description"`
	DisplayOrder int                `json:"displayOrder" bson:"displayOrder"`
	Display      string             `json:"display" bson:"display"`
	Image        ProductImage       `json:"image" bson:"image"`
	ServiceType  StoreCategory      `json:"serviceType" bson:"serviceType"`
	MenuCategory string             `json:"menuCategory" bson:"menuCategory"`
	MenuOrder    int                `json:"menuOrder" bson:"menuOrder"`
	Count        int                `json:"count" bson:"count"`
	IsActive     bool               `json:"isActive" bson:"isActive"`
}

ProductCategory represents a product category.

func CreateProductCategory

func CreateProductCategory(productCategory ProductCategory) (*ProductCategory, error)

CreateProductCategory creates new product category.

func GetProductCategories

func GetProductCategories(filter bson.D, limit int, after *string, before *string, first *int, last *int) (prodCategories []*ProductCategory, totalCount int64, hasPrevious, hasNext bool, err error)

GetProductCategories gives a list of product actegories.

func GetProductCategoryByID

func GetProductCategoryByID(ID string) *ProductCategory

GetProductCategoryByID gives a product category by id.

func UpdateProductCategory

func UpdateProductCategory(p *ProductCategory) (*ProductCategory, error)

UpdateProductCategory updates product category.

func (*ProductCategory) MarshalBinary

func (productCategory *ProductCategory) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*ProductCategory) UnmarshalBinary

func (productCategory *ProductCategory) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type ProductCategoryConnection

type ProductCategoryConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*ProductCategoryEdge `json:"edges"`
	// A list of nodes.
	Nodes []*ProductCategory `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of ProductCategory

type ProductCategoryEdge

type ProductCategoryEdge struct {
	Cursor string           `json:"cursor"`
	Node   *ProductCategory `json:"node"`
}

Paginating the node ProductCategory

type ProductCollection

type ProductCollection struct {
	ID            primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt     time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt     time.Time          `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt     time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy     primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	Type          string             `json:"type" bson:"type"`
	IsActive      bool               `json:"isActive" bson:"isActive"`
	Name          string             `json:"name" bson:"name"`
	Description   string             `json:"description" bson:"description"`
	Slug          string             `json:"slug" bson:"slug"`
	Relationships []*ProductData     `json:"relationships" bson:"relationships"`
}

func CreateProductCollection

func CreateProductCollection(productCollection ProductCollection) (*ProductCollection, error)

CreateProductCollection creates new advertisement banner.

func GetProductCollectionByID

func GetProductCollectionByID(ID string) *ProductCollection

GetProductCollectionByID gets advertisement banners by ID.

func GetProductCollections

func GetProductCollections(filter bson.D, limit int, after *string, before *string, first *int, last *int) (productCollections []*ProductCollection, totalCount int64, hasPrevious, hasNext bool, err error)

GetProductCollections gets the array of advertisement banners.

func UpdateProductCollection

func UpdateProductCollection(c *ProductCollection) (*ProductCollection, error)

UpdateProductCollection updates the advertisement banners.

func (*ProductCollection) MarshalBinary

func (productCollection *ProductCollection) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*ProductCollection) UnmarshalBinary

func (productCollection *ProductCollection) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type ProductCollectionConnection

type ProductCollectionConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*ProductCollectionEdge `json:"edges"`
	// A list of nodes.
	Nodes []*ProductCollection `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of Product Collection

type ProductCollectionEdge

type ProductCollectionEdge struct {
	Cursor string             `json:"cursor"`
	Node   *ProductCollection `json:"node"`
}

Paginating the node Collections

type ProductConnection

type ProductConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*ProductEdge `json:"edges"`
	// A list of nodes.
	Nodes []*Product `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of Product

type ProductData

type ProductData struct {
	ID   primitive.ObjectID `json:"id"`
	Type string             `json:"type"`
}

type ProductDimensions

type ProductDimensions struct {
	Length float64 `json:"length" bson:"length"`
	Width  float64 `json:"width" bson:"width"`
	Height float64 `json:"height" bson:"height"`
}

ProductDimensions represents the dimensions of a product.

type ProductDimensionsInput

type ProductDimensionsInput struct {
	Length float64 `json:"length"`
	Width  float64 `json:"width"`
	Height float64 `json:"height"`
}

type ProductDownload

type ProductDownload struct {
	ID        primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	Name      string             `json:"name" bson:"name"`
	File      string             `json:"file" bson:"file"`
}

ProductDownload represents downloaded products.

func CreateProductDownload

func CreateProductDownload(product ProductDownload) (*ProductDownload, error)

CreateProductDownload creates new product download.

func GetProductDownloadByID

func GetProductDownloadByID(ID string) (*ProductDownload, error)

GetProductDownloadByID gives requested product download by id.

func GetProductDownloads

func GetProductDownloads(filter bson.D, limit int, after *string, before *string, first *int, last *int) (prodDownloads []*ProductDownload, totalCount int64, hasPrevious, hasNext bool, err error)

GetProductDownloads gives a list of product downloads.

func UpdateProductDownload

func UpdateProductDownload(product *ProductDownload) *ProductDownload

UpdateProductDownload updates the product download.

func (*ProductDownload) MarshalBinary

func (product *ProductDownload) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*ProductDownload) UnmarshalBinary

func (product *ProductDownload) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type ProductDownloadConnection

type ProductDownloadConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*ProductDownloadEdge `json:"edges"`
	// A list of nodes.
	Nodes []*ProductDownload `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of ProductDownload

type ProductDownloadEdge

type ProductDownloadEdge struct {
	Cursor string           `json:"cursor"`
	Node   *ProductDownload `json:"node"`
}

Paginating the node product download

type ProductEdge

type ProductEdge struct {
	Cursor string   `json:"cursor"`
	Node   *Product `json:"node"`
}

Paginating the node Product

type ProductImage

type ProductImage struct {
	ID        primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	Src       string             `json:"src" bson:"src"`
	Name      string             `json:"name" bson:"name"`
	Alt       string             `json:"alt" bson:"alt"`
}

ProductImages represents images of the product.

func CreateProductImage

func CreateProductImage(product ProductImage) (*ProductImage, error)

CreateProductImage creates new product images.

func GetProductImageByID

func GetProductImageByID(ID string) *ProductImage

GetProductImageByID gives requested product image by id.

func GetProductImages

func GetProductImages(filter bson.D, limit int, after *string, before *string, first *int, last *int) (prodImages []*ProductImage, totalCount int64, hasPrevious, hasNext bool, err error)

GetProductImages gives a list of product images.

func UpdateProductImage

func UpdateProductImage(product *ProductImage) *ProductImage

UpdateProductImage updates the product images.

func (*ProductImage) MarshalBinary

func (product *ProductImage) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*ProductImage) UnmarshalBinary

func (product *ProductImage) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type ProductImageConnection

type ProductImageConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*ProductImageEdge `json:"edges"`
	// A list of nodes.
	Nodes []*ProductImage `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of ProductImage

type ProductImageEdge

type ProductImageEdge struct {
	Cursor string        `json:"cursor"`
	Node   *ProductImage `json:"node"`
}

Paginating the node product image

type ProductMetadata

type ProductMetadata struct {
	ID        primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	Key       string             `json:"key" bson:"key"`
	Value     string             `json:"value" bson:"value"`
}

ProductMetadata represents product metadata.

func CreateProductMetadata

func CreateProductMetadata(productMetadata ProductMetadata) (*ProductMetadata, error)

CreateProductMetadata creates new productMetadata.

func GetProductMetadataByID

func GetProductMetadataByID(ID string) *ProductMetadata

GetProductMetadataByID gives requested productMetadata by id.

func GetProductMetadatas

func GetProductMetadatas(filter bson.D, limit int, after *string, before *string, first *int, last *int) (productMetadatas []*ProductMetadata, totalCount int64, hasPrevious, hasNext bool, err error)

GetProductMetadatas gives a list of product metadata.

func UpdateProductMetadata

func UpdateProductMetadata(c *ProductMetadata) *ProductMetadata

UpdateProductMetadata updates product metadata.

func (*ProductMetadata) MarshalBinary

func (productMetadata *ProductMetadata) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*ProductMetadata) UnmarshalBinary

func (productMetadata *ProductMetadata) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type ProductMetadataConnection

type ProductMetadataConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*ProductMetadataEdge `json:"edges"`
	// A list of nodes.
	Nodes []*ProductMetadata `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of Product Metadata

type ProductMetadataEdge

type ProductMetadataEdge struct {
	Cursor string           `json:"cursor"`
	Node   *ProductMetadata `json:"node"`
}

Paginating the node product Metadata

type ProductReview

type ProductReview struct {
	ID                 primitive.ObjectID `json:"id" bson:"_id"`
	CreatedAt          time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt          *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt          time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy          primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	ProductID          primitive.ObjectID `json:"productID" bson:"productID"`
	Status             string             `json:"status" bson:"status"`
	Reviewer           string             `json:"reviewer" bson:"reviewer"`
	ReviewerEmail      string             `json:"reviewerEmail" bson:"reviewerEmail"`
	Review             string             `json:"review" bson:"review"`
	Rating             int                `json:"rating" bson:"rating"`
	Verified           bool               `json:"verified" bson:"verified"`
	ReviewerAvatarURLs ReviewerAvatarUrls `json:"reviewerAvatarURLs" bson:"reviewerAvatarURLs"`
}

ProductReview represents product review.

func CreateProductReview

func CreateProductReview(productReview ProductReview) (*ProductReview, error)

CreateProductReview creates new product review.

func GetProductReviewByID

func GetProductReviewByID(ID string) *ProductReview

GetProductReviewByID gives a product review by id.

func GetProductReviews

func GetProductReviews(filter bson.D, limit int, after *string, before *string, first *int, last *int) (prodReviews []*ProductReview, totalCount int64, hasPrevious, hasNext bool, err error)

GetProductReviews gives a list of product reviews.

func UpdateProductReview

func UpdateProductReview(productReview *ProductReview) *ProductReview

UpdateProductReview updates product review.

func (*ProductReview) MarshalBinary

func (productReview *ProductReview) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*ProductReview) UnmarshalBinary

func (productReview *ProductReview) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type ProductReviewConnection

type ProductReviewConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*ProductReviewEdge `json:"edges"`
	// A list of nodes.
	Nodes []*ProductReview `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of Product Reviews

type ProductReviewEdge

type ProductReviewEdge struct {
	Cursor string         `json:"cursor"`
	Node   *ProductReview `json:"node"`
}

Paginating the node Collections

type ProductSearchType

type ProductSearchType string
const (
	ProductSearchTypeAll            ProductSearchType = "ALL"
	ProductSearchTypeItem           ProductSearchType = "ITEM"
	ProductSearchTypeCategory       ProductSearchType = "CATEGORY"
	ProductSearchTypeRestaurantName ProductSearchType = "RESTAURANT_NAME"
)

func (ProductSearchType) IsValid

func (e ProductSearchType) IsValid() bool

func (ProductSearchType) MarshalGQL

func (e ProductSearchType) MarshalGQL(w io.Writer)

func (ProductSearchType) String

func (e ProductSearchType) String() string

func (*ProductSearchType) UnmarshalGQL

func (e *ProductSearchType) UnmarshalGQL(v interface{}) error

type ProductShippingClass

type ProductShippingClass struct {
	ID          primitive.ObjectID `json:"id" json:"id"`
	CreatedAt   time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt   time.Time          `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt   time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy   primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	Name        string             `json:"name" json:"name"`
	Slug        string             `json:"slug" json:"slug"`
	Description string             `json:"description" json:"description"`
	Count       int                `json:"count" json:"count"`
	Links       Links              `json:"links" json:"links"`
}

ProductShippingClass represents product shipping class.

func CreateProductShippingClass

func CreateProductShippingClass(productShippingClass ProductShippingClass) (*ProductShippingClass, error)

CreateProductShippingClass creates new product shipping class.

func GetProductShippingClassByID

func GetProductShippingClassByID(ID string) *ProductShippingClass

GetProductShippingClassByID gives a product shipping class by id.

func GetProductShippingClasses

func GetProductShippingClasses(filter bson.D, limit int, after *string, before *string, first *int, last *int) (prodShippingClasses []*ProductShippingClass, totalCount int64, hasPrevious, hasNext bool, err error)

GetProductShippingClasses gives a list of product shipping classes.

func UpdateProductShippingClass

func UpdateProductShippingClass(p *ProductShippingClass) *ProductShippingClass

UpdateProductShippingClass updates product shipping class.

func (*ProductShippingClass) MarshalBinary

func (productShippingClass *ProductShippingClass) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*ProductShippingClass) UnmarshalBinary

func (productShippingClass *ProductShippingClass) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type ProductStatus

type ProductStatus string
const (
	ProductStatusActive   ProductStatus = "ACTIVE"
	ProductStatusInactive ProductStatus = "INACTIVE"
	ProductStatusDeleted  ProductStatus = "DELETED"
	ProductStatusPublish  ProductStatus = "PUBLISH"
	ProductStatusPost     ProductStatus = "POST"
	ProductStatusDraft    ProductStatus = "DRAFT"
	ProductStatusPending  ProductStatus = "PENDING"
	ProductStatusPrivate  ProductStatus = "PRIVATE"
)

func (ProductStatus) IsValid

func (e ProductStatus) IsValid() bool

func (ProductStatus) MarshalGQL

func (e ProductStatus) MarshalGQL(w io.Writer)

func (ProductStatus) String

func (e ProductStatus) String() string

func (*ProductStatus) UnmarshalGQL

func (e *ProductStatus) UnmarshalGQL(v interface{}) error

type ProductTag

type ProductTag struct {
	ID          primitive.ObjectID `json:"id" bson:"id"`
	CreatedAt   time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt   time.Time          `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt   time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy   primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	Name        string             `json:"name" bson:"name"`
	Slug        string             `json:"slug" bson:"slug"`
	Description string             `json:"description" bson:"description"`
	Count       int                `json:"count" bson:"count"`
	Links       Links              `json:"links" bson:"links"`
}

ProductTag represents product tag.

func CreateProductTag

func CreateProductTag(productTag ProductTag) (*ProductTag, error)

CreateProductTag creates new product tag.

func GetProductTagByID

func GetProductTagByID(ID string) *ProductTag

GetProductTagByID gives a product tag by id.

func GetProductTags

func GetProductTags(filter bson.D, limit int, after *string, before *string, first *int, last *int) (prodTags []*ProductTag, totalCount int64, hasPrevious, hasNext bool, err error)

GetProductTags gives a list of product tags.

func UpdateProductTag

func UpdateProductTag(p *ProductTag) *ProductTag

UpdateProductTag updates product tag.

func (*ProductTag) MarshalBinary

func (productTag *ProductTag) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*ProductTag) UnmarshalBinary

func (productTag *ProductTag) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type ProductTagConnection

type ProductTagConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*ProductTagEdge `json:"edges"`
	// A list of nodes.
	Nodes []*ProductTag `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of ProductTag

type ProductTagEdge

type ProductTagEdge struct {
	Cursor string      `json:"cursor"`
	Node   *ProductTag `json:"node"`
}

Paginating the node product Tag

type ProductType

type ProductType string

ProductType is the type of a product.

const (
	ProductTypeGood    ProductType = "good"
	ProductTypeService ProductType = "service"

	ProductTypeSimple   ProductType = "simple"
	ProductTypeGrouped  ProductType = "grouped"
	ProductTypeExternal ProductType = "external"
	ProductTypeVariable ProductType = "variable"
)

List of values that ProductType can take.

type ProductVariation

type ProductVariation struct {
	ID                primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt         time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt         *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt         time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy         primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	Description       string             `json:"description" bson:"description"`
	ParentProductID   string             `json:"parentProductID" bson:"parentProductID"`
	Permalink         string             `json:"permalink" bson:"permalink"`
	Sku               string             `json:"sku" bson:"sku"`
	Price             float64            `json:"price" bson:"price"`
	RegularPrice      float64            `json:"regularPrice" bson:"regularPrice"`
	SalePrice         float64            `json:"salePrice" bson:"salePrice"`
	DateOnSaleFrom    time.Time          `json:"dateOnSaleFrom" bson:"dateOnSaleFrom"`
	DateOnSaleTo      time.Time          `json:"dateOnSaleTo" bson:"dateOnSaleTo"`
	OnSale            bool               `json:"onSale" bson:"onSale"`
	Status            ProductStatus      `json:"status" bson:"status"`
	Purchasable       bool               `json:"purchasable" bson:"purchasable"`
	Virtual           bool               `json:"virtual" bson:"virtual"`
	Downloadable      bool               `json:"downloadable" bson:"downloadable"`
	Downloads         []ProductDownload  `json:"downloads" bson:"downloads"`
	DownloadLimit     int                `json:"downloadLimit" bson:"downloadLimit"`
	DownloadExpiry    int                `json:"downloadExpiry" bson:"downloadExpiry"`
	TaxStatus         string             `json:"taxStatus" bson:"taxStatus"`
	TaxClass          string             `json:"taxClass" bson:"taxClass"`
	ManageStock       bool               `json:"manageStock" bson:"manageStock"`
	StockQuantity     int                `json:"stockQuantity" bson:"stockQuantity"`
	StockStatus       string             `json:"stockStatus" bson:"stockStatus"`
	BackOrders        string             `json:"backOrders" bson:"backOrders"`
	BackOrdersAllowed bool               `json:"backOrdersAllowed" bson:"backOrdersAllowed"`
	BackOrdered       bool               `json:"backOrdered" bson:"backOrdered"`
	Weight            float64            `json:"weight" bson:"weight"`
	Dimensions        ProductDimensions  `json:"dimensions" bson:"dimensions"`
	ShippingClass     string             `json:"shippingClass" bson:"shippingClass"`
	ShippingClassID   string             `json:"shippingClassId" bson:"shippingClassId"`
	Image             ProductImage       `json:"images" bson:"images"`
	Attributes        []ProductAttribute `json:"attributes" bson:"attributes"`
	MenuOrder         int                `json:"menuOrder" bson:"menuOrder"`
	MetaData          []ProductMetadata  `json:"metaData" bson:"metaData"`
}

ProductVariation represents product variation.

func CreateProductVariation

func CreateProductVariation(productVariation ProductVariation) (*ProductVariation, error)

CreateProductVariation creates new product variation.

func GetProductVariationByID

func GetProductVariationByID(ID primitive.ObjectID) (*ProductVariation, error)

GetProductVariationByID gives a product variation by id.

func GetProductVariations

func GetProductVariations(filter bson.D, limit int, after *string, before *string, first *int, last *int) (prodVariations []*ProductVariation, totalCount int64, hasPrevious, hasNext bool, err error)

GetProductVariations gives a list of product variations.

func UpdateProductVariation

func UpdateProductVariation(productVariation *ProductVariation) *ProductVariation

UpdateProductVariation updates product variation.

func (*ProductVariation) MarshalBinary

func (productVariation *ProductVariation) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*ProductVariation) UnmarshalBinary

func (productVariation *ProductVariation) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type ProductVariationConnection

type ProductVariationConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*ProductVariationEdge `json:"edges"`
	// A list of nodes.
	Nodes []*ProductVariation `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of ProductVariations

type ProductVariationEdge

type ProductVariationEdge struct {
	Cursor string            `json:"cursor"`
	Node   *ProductVariation `json:"node"`
}

Paginating the node Product Variation

type ProviderLogReport

type ProviderLogReport struct {
	ID              primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt       time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt       *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt       time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy       primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	Name            string             `json:"name" bson:"name"`
	EMail           string             `json:"eMail" bson:"eMail"`
	OnlineTime      string             `json:"onlineTime" bson:"onlineTime"`
	OfflineTime     string             `json:"offlineTime" bson:"offlineTime"`
	TotalHoursLogIn string             `json:"totalHoursLogIn" bson:"totalHoursLogIn"`
	IsActive        bool               `json:"isActive" bson:"isActive"`
}

ProviderLogReport represents a provider lob report.

func GetProviderLogReportByID

func GetProviderLogReportByID(ID string) (*ProviderLogReport, error)

GetProviderLogReportByID gives a provider log report by id.

func GetProviderLogReports

func GetProviderLogReports(filter bson.D, limit int, after *string, before *string, first *int, last *int) (providerLogReports []*ProviderLogReport, totalCount int64, hasPrevious, hasNext bool, err error)

GetProviderLogReports gives a list of provider log reports.

func (*ProviderLogReport) MarshalBinary

func (providerLogReport *ProviderLogReport) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*ProviderLogReport) UnmarshalBinary

func (providerLogReport *ProviderLogReport) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type ProviderLogReportConnection

type ProviderLogReportConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*ProviderLogReportEdge `json:"edges"`
	// A list of nodes.
	Nodes []*ProviderLogReport `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of ProviderLogReport

type ProviderLogReportEdge

type ProviderLogReportEdge struct {
	Cursor string             `json:"cursor"`
	Node   *ProviderLogReport `json:"node"`
}

Paginating the node ProviderLogReport

type ProviderPaymentReport

type ProviderPaymentReport struct {
	ID                                                   primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt                                            time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt                                            *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt                                            time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy                                            primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	ProviderName                                         string             `json:"providerName" bson:"providerName"`
	ProviderBankDetails                                  string             `json:"providerBankDetails" bson:"providerBankDetails"`
	TotalJobCommissionTakeFromProviderForCashJobs        string             `json:"totalJobCommissionTakeFromProviderForCashJobs" bson:"totalJobCommissionTakeFromProviderForCashJobs"`
	TotalJobAmountPayToProviderForCardJobs               string             `json:"totalJobAmountPayToProviderForCardJobs" bson:"totalJobAmountPayToProviderForCardJobs"`
	TotalFare                                            string             `json:"totalFare" bson:"totalFare"`
	TotalCashReceived                                    string             `json:"totalCashReceived" bson:"totalCashReceived"`
	TotalTaxAmountPayToProvider                          string             `json:"totalTaxAmountPayToProvider" bson:"totalTaxAmountPayToProvider"`
	TotalTipAmountPayToProvider                          string             `json:"totalTipAmountPayToProvider" bson:"totalTipAmountPayToProvider"`
	TotalWalletAdjustmentAmountPaytoProviderForCashJobs  string             `json:"totalWalletAdjustmentAmountPaytoProviderForCashJobs" bson:"totalWalletAdjustmentAmountPaytoProviderForCashJobs"`
	TotalCouponDiscountAmountPayToProviderForCashJobs    string             `json:"totalCouponDiscountAmountPayToProviderForCashJobs" bson:"totalCouponDiscountAmountPayToProviderForCashJobs"`
	TotalJobOutstandingAmountTakeFromProviderForCashJobs string             `json:"totalJobOutstandingAmountTakeFromProviderForCashJobs" bson:"totalJobOutstandingAmountTakeFromProviderForCashJobs"`
	TotalJobBookingFeeForCash                            string             `json:"totalJobBookingFeeForCash" bson:"totalJobBookingFeeForCash"`
	FinalAmountPayToProvider                             string             `json:"finalAmountPayToProvider" bson:"finalAmountPayToProvider"`
	FinalAmountToTakebackFromProvider                    string             `json:"finalAmountToTakebackFromProvider" bson:"finalAmountToTakebackFromProvider"`
	ProviderPaymentStatus                                string             `json:"providerPaymentStatus" bson:"providerPaymentStatus"`
	IsActive                                             bool               `json:"isActive" bson:"isActive"`
}

ProviderPaymentReport represents a provider payment report.

func GetProviderPaymentReportByID

func GetProviderPaymentReportByID(ID string) (*ProviderPaymentReport, error)

GetProviderPaymentReportByID gives provider payment report by id.

func GetProviderPaymentReports

func GetProviderPaymentReports(filter bson.D, limit int, after *string, before *string, first *int, last *int) (providerPaymentReports []*ProviderPaymentReport, totalCount int64, hasPrevious, hasNext bool, err error)

GetProviderPaymentReports gives a list of provider payment reports.

func (*ProviderPaymentReport) MarshalBinary

func (providerPaymentReport *ProviderPaymentReport) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*ProviderPaymentReport) UnmarshalBinary

func (providerPaymentReport *ProviderPaymentReport) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type ProviderPaymentReportConnection

type ProviderPaymentReportConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*ProviderPaymentReportEdge `json:"edges"`
	// A list of nodes.
	Nodes []*ProviderPaymentReport `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of ProviderPaymentReport

type ProviderPaymentReportEdge

type ProviderPaymentReportEdge struct {
	Cursor string                 `json:"cursor"`
	Node   *ProviderPaymentReport `json:"node"`
}

Paginating the node ProviderPaymentReport

type ProviderReview

type ProviderReview struct {
	OrderNumber    string    `json:"orderNumber"`
	FromUserName   string    `json:"fromUserName"`
	ToProviderName string    `json:"toProviderName"`
	Rate           string    `json:"rate"`
	Date           time.Time `json:"date"`
	Comment        string    `json:"comment"`
}

type ProviderStatus

type ProviderStatus string
const (
	ProviderStatusActive   ProviderStatus = "ACTIVE"
	ProviderStatusInactive ProviderStatus = "INACTIVE"
	ProviderStatusDeleted  ProviderStatus = "DELETED"
)

func (ProviderStatus) IsValid

func (e ProviderStatus) IsValid() bool

func (ProviderStatus) MarshalGQL

func (e ProviderStatus) MarshalGQL(w io.Writer)

func (ProviderStatus) String

func (e ProviderStatus) String() string

func (*ProviderStatus) UnmarshalGQL

func (e *ProviderStatus) UnmarshalGQL(v interface{}) error

type ProviderVehicleStatus

type ProviderVehicleStatus string
const (
	ProviderVehicleStatusActive   ProviderVehicleStatus = "ACTIVE"
	ProviderVehicleStatusInactive ProviderVehicleStatus = "INACTIVE"
	ProviderVehicleStatusDeleted  ProviderVehicleStatus = "DELETED"
)

func (ProviderVehicleStatus) IsValid

func (e ProviderVehicleStatus) IsValid() bool

func (ProviderVehicleStatus) MarshalGQL

func (e ProviderVehicleStatus) MarshalGQL(w io.Writer)

func (ProviderVehicleStatus) String

func (e ProviderVehicleStatus) String() string

func (*ProviderVehicleStatus) UnmarshalGQL

func (e *ProviderVehicleStatus) UnmarshalGQL(v interface{}) error

type ProviderVehicleType

type ProviderVehicleType string
const (
	ProviderVehicleTypeAll         ProviderVehicleType = "ALL"
	ProviderVehicleTypeVehicle     ProviderVehicleType = "VEHICLE"
	ProviderVehicleTypeCompany     ProviderVehicleType = "COMPANY"
	ProviderVehicleTypeDriver      ProviderVehicleType = "DRIVER"
	ProviderVehicleTypeVehicleType ProviderVehicleType = "VEHICLE_TYPE"
)

func (ProviderVehicleType) IsValid

func (e ProviderVehicleType) IsValid() bool

func (ProviderVehicleType) MarshalGQL

func (e ProviderVehicleType) MarshalGQL(w io.Writer)

func (ProviderVehicleType) String

func (e ProviderVehicleType) String() string

func (*ProviderVehicleType) UnmarshalGQL

func (e *ProviderVehicleType) UnmarshalGQL(v interface{}) error

type ProviderWalletTransaction

type ProviderWalletTransaction struct {
	ID          primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	Description string             `json:"description" bson:"description"`
	Amount      float64            `json:"amount" bson:"amount"`
	BalanceFor  BalanceFor         `json:"balanceFor" bson:"balanceFor"`
	CreatedAt   time.Time          `json:"createdAt" bson:"createdAt"`
	CreatedBy   primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	Type        TransactionType    `json:"type" bson:"type"`
	Balance     float64            `json:"balance" bson:"balance"`
}

ProviderWalletTransaction represents a provider wallet transaction.

func GetProviderWalletTransactionByID

func GetProviderWalletTransactionByID(ID string) (*ProviderWalletTransaction, error)

GetProviderWalletTransactionByID gives a provider wallet transaction by id.

func GetProviderWalletTransactions

func GetProviderWalletTransactions(filter bson.D, limit int, after *string, before *string, first *int, last *int) (providerWalletTransactions []*ProviderWalletTransaction, totalCount int64, hasPrevious, hasNext bool, err error)

GetProviderWalletTransactions gives a list of provider wallet transaction.

func (*ProviderWalletTransaction) MarshalBinary

func (transaction *ProviderWalletTransaction) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*ProviderWalletTransaction) UnmarshalBinary

func (transaction *ProviderWalletTransaction) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type ProviderWalletTransactionConnection

type ProviderWalletTransactionConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*ProviderWalletTransactionEdge `json:"edges"`
	// A list of nodes.
	Nodes []*ProviderWalletTransaction `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of ProviderWalletTransaction

type ProviderWalletTransactionEdge

type ProviderWalletTransactionEdge struct {
	Cursor string                     `json:"cursor"`
	Node   *ProviderWalletTransaction `json:"node"`
}

Paginating the node ProviderWalletTransaction

type ProvidersOverview

type ProvidersOverview struct {
	Today     int `json:"today"`
	ThisWeek  int `json:"thisWeek"`
	ThisMonth int `json:"thisMonth"`
	ThisYear  int `json:"thisYear"`
	Active    int `json:"active"`
	Pending   int `json:"pending"`
}

type PubSubTechnique

type PubSubTechnique string
const (
	PubSubTechniquePubnub        PubSubTechnique = "PUBNUB"
	PubSubTechniqueSocketCluster PubSubTechnique = "SOCKET_CLUSTER"
	PubSubTechniqueYalgaar       PubSubTechnique = "YALGAAR"
	PubSubTechniqueNone          PubSubTechnique = "NONE"
)

func (PubSubTechnique) IsValid

func (e PubSubTechnique) IsValid() bool

func (PubSubTechnique) MarshalGQL

func (e PubSubTechnique) MarshalGQL(w io.Writer)

func (PubSubTechnique) String

func (e PubSubTechnique) String() string

func (*PubSubTechnique) UnmarshalGQL

func (e *PubSubTechnique) UnmarshalGQL(v interface{}) error

type PushNotification

type PushNotification struct {
	ID      primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	Success bool               `json:"success" bson:"success"`
	Message string             `json:"message" bson:"message"`
}

PushNotification represents push notification.

func GetPushNotificationByID

func GetPushNotificationByID(ID string) (*PushNotification, error)

GetPushNotificationByID returns the requested push notification by id.

func (*PushNotification) MarshalBinary

func (notification *PushNotification) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*PushNotification) UnmarshalBinary

func (notification *PushNotification) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type PushNotificationInput

type PushNotificationInput struct {
	UserType      UserTypeOptions `json:"UserType"`
	SelectedUsers []string        `json:"SelectedUsers"`
	Title         string          `json:"Title"`
	Message       string          `json:"Message"`
	Payload       string          `json:"Payload"`
}

type RecentUnpaidEarning

type RecentUnpaidEarning struct {
	ID                     primitive.ObjectID `json:"id"`
	BookingDate            time.Time          `json:"bookingDate"`
	FareAmount             float64            `json:"fareAmount"`
	Commission             float64            `json:"commission"`
	BookingCharge          float64            `json:"bookingCharge"`
	Tip                    float64            `json:"tip"`
	PaymentAfterCommission float64            `json:"paymentAfterCommission"`
	PaymentMethod          PaymentMethodType  `json:"paymentMethod"`
	Invoice                *Invoice           `json:"invoice"`
}

type RecentUnpaidEarningConnection

type RecentUnpaidEarningConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*RecentUnpaidEarningEdge `json:"edges"`
	// A list of nodes.
	Nodes []*RecentUnpaidEarning `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of RecentUnpaidEarning

type RecentUnpaidEarningEdge

type RecentUnpaidEarningEdge struct {
	Cursor string               `json:"cursor"`
	Node   *RecentUnpaidEarning `json:"node"`
}

Paginating the node RecentUnpaidEarning

type ReferralReport

type ReferralReport struct {
	Provider *UserReferralReport `json:"provider"`
	User     *UserReferralReport `json:"user"`
}

type RefreshToken

type RefreshToken struct {
	ID             primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt      time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt      *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt      time.Time          `json:"updatedAt" bson:"updatedAt"`
	ExpiresAt      time.Time          `json:"expiresAt" bson:"expiresAt"`
	ClientID       string             `json:"clientId" bson:"clientId"`
	UserID         string             `json:"userId" bson:"userId"`
	Token          string             `json:"token"`
	Scope          string             `json:"scope"`
	Authentication string             `json:"authentication"`
}

RefreshToken represents refresh token.

func CreateRefreshToken

func CreateRefreshToken(refreshToken *RefreshToken) (*RefreshToken, error)

CreateRefreshToken creates new refresh tokens.

func GetRefreshTokenByFilter

func GetRefreshTokenByFilter(filter bson.D) *RefreshToken

GetRefreshTokenByFilter gives the requested refresh token.

func GetRefreshTokenByID

func GetRefreshTokenByID(ID string) (*RefreshToken, error)

GetRefreshTokenByID gives the requested refresh token.

func GetRefreshTokens

func GetRefreshTokens(filter bson.D, limit int, after *string, before *string, first *int, last *int) (refreshTokens []*RefreshToken, totalCount int64, hasPrevious, hasNext bool, err error)

GetRefreshTokens gives a list of refresh tokens.

func NewOAuthRefreshToken

func NewOAuthRefreshToken(client *OAuthApplication, user *User, expiresIn int, scope string) *RefreshToken

NewOAuthRefreshToken creates new OauthRefreshToken instance

func UpdateRefreshToken

func UpdateRefreshToken(c *RefreshToken) (*RefreshToken, error)

UpdateRefreshToken updates refresh tokens.

func (*RefreshToken) Client

func (r *RefreshToken) Client() *OAuthApplication

func (*RefreshToken) MarshalBinary

func (refreshToken *RefreshToken) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*RefreshToken) UnmarshalBinary

func (refreshToken *RefreshToken) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

func (*RefreshToken) User

func (r *RefreshToken) User() *User

type Refunds

type Refunds struct {
	ID     primitive.ObjectID `json:"id"`
	Reason string             `json:"reason"`
	Total  float64            `json:"total"`
}

type RentalPackage

type RentalPackage struct {
	ID                     primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt              time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt              *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt              time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy              primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	Name                   string             `json:"name" bson:"name"`
	RentalTotalPrice       int                `json:"rentalTotalPrice" bson:"rentalTotalPrice"`
	RentalMiles            int                `json:"rentalMiles" bson:"rentalMiles"`
	RentalHour             int                `json:"rentalHour" bson:"rentalHour"`
	AdditionalPricePerMile int                `json:"additionalPricePerMile" bson:"additionalPricePerMile"`
	AdditionalPricePerMin  int                `json:"additionalPricePerMin" bson:"additionalPricePerMin"`
}

RentalPackage represents a rental package.

func CreateRentalPackage

func CreateRentalPackage(rentalPackage RentalPackage) (*RentalPackage, error)

CreateRentalPackage creates a rental package.

func GetRentalPackageByID

func GetRentalPackageByID(ID string) (*RentalPackage, error)

GetRentalPackageByID gives a rental package by id.

func GetRentalPackages

func GetRentalPackages(filter bson.D, limit int, after *string, before *string, first *int, last *int) (rentalPacks []*RentalPackage, totalCount int64, hasPrevious, hasNext bool, err error)

GetRentalPackages gives a list of rental packages.

func UpdateRentalPackage

func UpdateRentalPackage(c *RentalPackage) (*RentalPackage, error)

UpdateRentalPackage updates rental packages.

func (*RentalPackage) MarshalBinary

func (rentalPackage *RentalPackage) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*RentalPackage) UnmarshalBinary

func (rentalPackage *RentalPackage) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type RentalPackageConnection

type RentalPackageConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*RentalPackageEdge `json:"edges"`
	// A list of nodes.
	Nodes []*RentalPackage `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of rental packages

type RentalPackageEdge

type RentalPackageEdge struct {
	Cursor string         `json:"cursor"`
	Node   *RentalPackage `json:"node"`
}

Paginating the node RentalPackages

type RequiredDocument

type RequiredDocument struct {
	ID           primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt    time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt    *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt    time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy    primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	DocumentFor  DocumentFor        `json:"documentFor" bson:"documentFor"`
	Country      Country            `json:"country" bson:"country"`
	ExpireOnDate bool               `json:"expireOnDate" bson:"expireOnDate"`
	DocumentName string             `json:"documentName" bson:"documentName"`
	IsActive     bool               `json:"isActive" bson:"isActive"`
}

RequiredDocument represents Manage Documents

func CreateRequiredDocument

func CreateRequiredDocument(requiredDocument RequiredDocument) (*RequiredDocument, error)

CreateRequiredDocument creates new requiredDocument.

func GetRequiredDocumentByID

func GetRequiredDocumentByID(ID string) (*RequiredDocument, error)

GetRequiredDocumentByID gives requiredDocument by id.

func GetRequiredDocuments

func GetRequiredDocuments(filter bson.D, limit int, after *string, before *string, first *int, last *int) (requiredDocuments []*RequiredDocument, totalCount int64, hasPrevious, hasNext bool, err error)

GetRequiredDocuments gives a list of requiredDocuments.

func UpdateRequiredDocument

func UpdateRequiredDocument(s *RequiredDocument) (*RequiredDocument, error)

UpdateRequiredDocument updates requiredDocument.

func (*RequiredDocument) MarshalBinary

func (requiredDocument *RequiredDocument) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*RequiredDocument) UnmarshalBinary

func (requiredDocument *RequiredDocument) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type RequiredDocumentConnection

type RequiredDocumentConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*RequiredDocumentEdge `json:"edges"`
	// A list of nodes.
	Nodes []*RequiredDocument `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of Document

type RequiredDocumentEdge

type RequiredDocumentEdge struct {
	Cursor string            `json:"cursor"`
	Node   *RequiredDocument `json:"node"`
}

Paginating the node Document

type Restaurant

type Restaurant struct {
	ID        primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	Name      string             `json:"name" bson:"name"`
	IsActive  bool               `json:"isActive" bson:"isActive"`
}

Restaurant represents a restaurant.

func CreateRestaurant

func CreateRestaurant(restaurant Restaurant) (*Restaurant, error)

CreateRestaurant creates new restaurant.

func GetRestaurantByID

func GetRestaurantByID(ID string) (*Restaurant, error)

GetRestaurantByID gives the requested restaurant by id.

func GetRestaurants

func GetRestaurants(filter bson.D, limit int, after *string, before *string, first *int, last *int) (restaurants []*Restaurant, totalCount int64, hasPrevious, hasNext bool, err error)

GetRestaurants gives an array of restaurants.

func UpdateRestaurant

func UpdateRestaurant(c *Restaurant) (*Restaurant, error)

UpdateRestaurant updates the restaurant.

func (*Restaurant) MarshalBinary

func (restaurant *Restaurant) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*Restaurant) UnmarshalBinary

func (restaurant *Restaurant) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type RestaurantConnection

type RestaurantConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*RestaurantEdge `json:"edges"`
	// A list of nodes.
	Nodes []*Restaurant `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

type RestaurantEdge

type RestaurantEdge struct {
	Cursor string      `json:"cursor"`
	Node   *Restaurant `json:"node"`
}

type RestaurantReview

type RestaurantReview struct {
	OrderNumber      string    `json:"orderNumber"`
	FromUserName     string    `json:"fromUserName"`
	ToRestaurantName string    `json:"toRestaurantName"`
	Rate             string    `json:"rate"`
	Date             time.Time `json:"date"`
	Comment          string    `json:"comment"`
}

type RestrictArea

type RestrictArea string
const (
	RestrictAreaAll     RestrictArea = "ALL"
	RestrictAreaPickup  RestrictArea = "PICKUP"
	RestrictAreaDropoff RestrictArea = "DROPOFF"
)

func (RestrictArea) IsValid

func (e RestrictArea) IsValid() bool

func (RestrictArea) MarshalGQL

func (e RestrictArea) MarshalGQL(w io.Writer)

func (RestrictArea) String

func (e RestrictArea) String() string

func (*RestrictArea) UnmarshalGQL

func (e *RestrictArea) UnmarshalGQL(v interface{}) error

type RestrictType

type RestrictType string
const (
	RestrictTypeAllowed    RestrictType = "ALLOWED"
	RestrictTypeDisallowed RestrictType = "DISALLOWED"
)

func (RestrictType) IsValid

func (e RestrictType) IsValid() bool

func (RestrictType) MarshalGQL

func (e RestrictType) MarshalGQL(w io.Writer)

func (RestrictType) String

func (e RestrictType) String() string

func (*RestrictType) UnmarshalGQL

func (e *RestrictType) UnmarshalGQL(v interface{}) error

type Review

type Review struct {
	ID                    primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt             time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt             *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt             time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy             primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	JobID                 primitive.ObjectID `json:"jobNumber" bson:"jobNumber"`
	UserID                string             `json:"userID" bson:"userID"`
	UserAverageRating     float64            `json:"userAverageRating" bson:"userAverageRating"`
	ProviderAverageRating float64            `json:"providerAverageRating" bson:"providerAverageRating"`
	ProviderID            string             `json:"providerID" bson:"providerID"`
	UserName              string             `json:"userName" bson:"userName"`
	ProviderName          string             `json:"providerName" bson:"providerName"`
	UserRating            float64            `json:"userRating" bson:"userRating"`
	ProviderRating        float64            `json:"providerRating" bson:"providerRating"`
	Type                  ReviewType         `json:"type" bson:"type"` //ride , store , service , delivery
	From                  string             `json:"from" bson:"from"`
	To                    string             `json:"to" bson:"to"`
	Date                  time.Time          `json:"date" bson:"date"`
	Comment               string             `json:"comment" bson:"comment"`
	IsActive              bool               `json:"isActive" bson:"isActive"`
}

Review represents a review.

func CreateReview

func CreateReview(review Review) (*Review, error)

CreateReview creates new reviews.

func GetReviewByID

func GetReviewByID(ID string) (*Review, error)

GetReviewByID gives review by id.

func GetReviews

func GetReviews(filter bson.D, limit int, after *string, before *string, first *int, last *int) (reviews []*Review, totalCount int64, hasPrevious, hasNext bool, err error)

GetReviews gives a list of reviews.

func UpdateReview

func UpdateReview(c *Review) (*Review, error)

UpdateReview updates reviews.

func (*Review) MarshalBinary

func (review *Review) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*Review) UnmarshalBinary

func (review *Review) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type ReviewConnection

type ReviewConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*ReviewEdge `json:"edges"`
	// A list of nodes.
	Nodes []*Review `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of Review

type ReviewEdge

type ReviewEdge struct {
	Cursor string  `json:"cursor"`
	Node   *Review `json:"node"`
}

Paginating the node Review

type ReviewType

type ReviewType string
const (
	ReviewTypeRideNumber ReviewType = "RIDE_NUMBER"
	ReviewTypeDriverName ReviewType = "DRIVER_NAME"
	ReviewTypeRiderName  ReviewType = "RIDER_NAME"
	ReviewTypeRate       ReviewType = "RATE"
)

func (ReviewType) IsValid

func (e ReviewType) IsValid() bool

func (ReviewType) MarshalGQL

func (e ReviewType) MarshalGQL(w io.Writer)

func (ReviewType) String

func (e ReviewType) String() string

func (*ReviewType) UnmarshalGQL

func (e *ReviewType) UnmarshalGQL(v interface{}) error

type ReviewUserType

type ReviewUserType string
const (
	ReviewUserTypeProviders ReviewUserType = "PROVIDERS"
	ReviewUserTypeUsers     ReviewUserType = "USERS"
)

func (ReviewUserType) IsValid

func (e ReviewUserType) IsValid() bool

func (ReviewUserType) MarshalGQL

func (e ReviewUserType) MarshalGQL(w io.Writer)

func (ReviewUserType) String

func (e ReviewUserType) String() string

func (*ReviewUserType) UnmarshalGQL

func (e *ReviewUserType) UnmarshalGQL(v interface{}) error

type ReviewerAvatarUrls

type ReviewerAvatarUrls struct {
	ID    primitive.ObjectID `json:"id"`
	Num24 string             `json:"num24"`
	Num48 string             `json:"num48"`
	Num96 string             `json:"num96"`
}

type ReviewerAvatarUrlsInput

type ReviewerAvatarUrlsInput struct {
	Num24 string `json:"num24"`
	Num48 string `json:"num48"`
	Num96 string `json:"num96"`
}

type RideDetailsInput

type RideDetailsInput struct {
	VehicleType           string           `json:"vehicleType"`
	PickUpType            RidePickUpType   `json:"pickUpType"`
	PickUpLocation        *AddAddressInput `json:"pickUpLocation"`
	DropOffLocation       *AddAddressInput `json:"dropOffLocation"`
	RideLater             time.Time        `json:"RideLater"`
	LadiesRide            *bool            `json:"ladiesRide"`
	HandicapAccessibility *bool            `json:"handicapAccessibility"`
	ChildSeat             *bool            `json:"childSeat"`
}

type RidePickUpType

type RidePickUpType string
const (
	RidePickUpTypeRideNow   RidePickUpType = "RIDE_NOW"
	RidePickUpTypeRideLater RidePickUpType = "RIDE_LATER"
)

func (RidePickUpType) IsValid

func (e RidePickUpType) IsValid() bool

func (RidePickUpType) MarshalGQL

func (e RidePickUpType) MarshalGQL(w io.Writer)

func (RidePickUpType) String

func (e RidePickUpType) String() string

func (*RidePickUpType) UnmarshalGQL

func (e *RidePickUpType) UnmarshalGQL(v interface{}) error

type RideProfileSearchType

type RideProfileSearchType string
const (
	RideProfileSearchTypeAll         RideProfileSearchType = "ALL"
	RideProfileSearchTypeProfileName RideProfileSearchType = "PROFILE_NAME"
	RideProfileSearchTypeTitle       RideProfileSearchType = "TITLE"
	RideProfileSearchTypeSubTitle    RideProfileSearchType = "SUB_TITLE"
)

func (RideProfileSearchType) IsValid

func (e RideProfileSearchType) IsValid() bool

func (RideProfileSearchType) MarshalGQL

func (e RideProfileSearchType) MarshalGQL(w io.Writer)

func (RideProfileSearchType) String

func (e RideProfileSearchType) String() string

func (*RideProfileSearchType) UnmarshalGQL

func (e *RideProfileSearchType) UnmarshalGQL(v interface{}) error

type RideProfileType

type RideProfileType struct {
	ID               primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt        time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt        *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt        time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy        primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	ProfileShortName string             `json:"profileShortName" bson:"profileShortName"`
	OrganizationType string             `json:"organizationType" bson:"organizationType"`
	ProfileTitle     string             `json:"profileTitle" bson:"profileTitle"`
	TitleDescription string             `json:"titleDescription" bson:"titleDescription"`
	ScreenHeading    string             `json:"screenHeading" bson:"screenHeading"`
	ScreenTitle      string             `json:"screenTitle" bson:"screenTitle"`
	ButtonText       string             `json:"buttonText" bson:"buttonText"`
	ProfileIcon      string             `json:"profileIcon" bson:"profileIcon"`
	WelcomePicture   string             `json:"welcomePicture" bson:"welcomePicture"`
	IsActive         bool               `json:"isActive" bson:"isActive"`
}

RideProfileType represents a ride profile type.

func CreateRideProfileType

func CreateRideProfileType(rideProfileType RideProfileType) (*RideProfileType, error)

CreateRideProfileType creates new ride profile type.

func GetRideProfileTypeByID

func GetRideProfileTypeByID(ID string) (*RideProfileType, error)

GetRideProfileTypeByID gives ride profile type by id.

func GetRideProfileTypes

func GetRideProfileTypes(filter bson.D, limit int, after *string, before *string, first *int, last *int) (rideProfileTypes []*RideProfileType, totalCount int64, hasPrevious, hasNext bool, err error)

GetRideProfileTypes gives a list of ride profile type.

func UpdateRideProfileType

func UpdateRideProfileType(c *RideProfileType) (*RideProfileType, error)

UpdateRideProfileType updates ride profile types.

func (*RideProfileType) MarshalBinary

func (rideProfileType *RideProfileType) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*RideProfileType) UnmarshalBinary

func (rideProfileType *RideProfileType) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type RideProfileTypeConnection

type RideProfileTypeConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*RideProfileTypeEdge `json:"edges"`
	// A list of nodes.
	Nodes []*RideProfileType `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of RideProfileType

type RideProfileTypeEdge

type RideProfileTypeEdge struct {
	Cursor string           `json:"cursor"`
	Node   *RideProfileType `json:"node"`
}

Paginating the node RideProfileType

type SEOSetting

type SEOSetting struct {
	ID              primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt       time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt       *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt       time.Time          `json:"updatedAt" bson:"updatedAt"`
	PageName        string             `json:"pageName" bson:"pageName"`
	PageTitle       string             `json:"pageTitle" bson:"pageTitle"`
	MetaKeyword     string             `json:"metaKeyword" bson:"metaKeyword"`
	MetaDescription string             `json:"metaDescription" bson:"metaDescription"`
	IsActive        bool               `json:"isActive" bson:"isActive"`
}

SEOSetting represents a seo settings.

func CreateSEOSetting

func CreateSEOSetting(seoSetting *SEOSetting) (*SEOSetting, error)

CreateSEOSetting creates new seo settings.

func GetSEOSettingByID

func GetSEOSettingByID(ID string) (*SEOSetting, error)

GetSEOSettingByID gives seo settigns by id.

func GetSEOSettings

func GetSEOSettings(filter bson.D, limit int, after *string, before *string, first *int, last *int) (seoSettings []*SEOSetting, totalCount int64, hasPrevious, hasNext bool, err error)

GetSEOSettings gives a list of seo settings.

func (*SEOSetting) MarshalBinary

func (seoSetting *SEOSetting) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*SEOSetting) UnmarshalBinary

func (seoSetting *SEOSetting) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type SEOSettingConnection

type SEOSettingConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*SEOSettingEdge `json:"edges"`
	// A list of nodes.
	Nodes []*SEOSetting `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of SEOSetting

type SEOSettingEdge

type SEOSettingEdge struct {
	Cursor string      `json:"cursor"`
	Node   *SEOSetting `json:"node"`
}

Paginating the node SEOSetting

type SEOSettingType

type SEOSettingType string
const (
	SEOSettingTypeAll      SEOSettingType = "ALL"
	SEOSettingTypePageName SEOSettingType = "PAGE_NAME"
)

func (SEOSettingType) IsValid

func (e SEOSettingType) IsValid() bool

func (SEOSettingType) MarshalGQL

func (e SEOSettingType) MarshalGQL(w io.Writer)

func (SEOSettingType) String

func (e SEOSettingType) String() string

func (*SEOSettingType) UnmarshalGQL

func (e *SEOSettingType) UnmarshalGQL(v interface{}) error

type SMSSetting

type SMSSetting struct {
	TwilioSid       string `json:"twilioSID"`
	TwilioAuthToken string `json:"twilioAuthToken"`
	TwilioMobile    string `json:"twilioMobile"`
}

type SMSSettingInput

type SMSSettingInput struct {
	TwilioSid       string `json:"twilioSID"`
	TwilioAuthToken string `json:"twilioAuthToken"`
	TwilioMobile    string `json:"twilioMobile"`
}

type SMSTemplate

type SMSTemplate struct {
	ID         primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt  time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt  time.Time          `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt  time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy  primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	Title      string             `json:"title" bson:"title"`
	Body       string             `json:"body" bson:"body"`
	Code       string             `json:"code" bson:"code"`
	Language   string             `json:"language" bson:"language"`
	Purpose    string             `json:"purpose" bson:"purpose" `
	TemplateID string             `json:"templateId" bson:"templateId"`
}

SMSTemplate represents a sms template.

func CreateSMSTemplate

func CreateSMSTemplate(smsTemplate *SMSTemplate) (*SMSTemplate, error)

CreateSMSTemplate creates new sms template.

func GetSMSTemplateByID

func GetSMSTemplateByID(ID string) (*SMSTemplate, error)

GetSMSTemplateByID gives sms template by id.

func GetSMSTemplates

func GetSMSTemplates(filter bson.D, limit int, after *string, before *string, first *int, last *int) (smsTemplates []*SMSTemplate, totalCount int64, hasPrevious, hasNext bool, err error)

GetSMSTemplates gives a list of sms templates.

func UpdateSMSTemplate

func UpdateSMSTemplate(e *SMSTemplate) (*SMSTemplate, error)

UpdateSMSTemplate updates sms template.

func (*SMSTemplate) MarshalBinary

func (smsTemplate *SMSTemplate) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*SMSTemplate) UnmarshalBinary

func (smsTemplate *SMSTemplate) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type SMSTemplateConnection

type SMSTemplateConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*SMSTemplateEdge `json:"edges"`
	// A list of nodes.
	Nodes []*SMSTemplate `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of SMSTemplate

type SMSTemplateEdge

type SMSTemplateEdge struct {
	Cursor string       `json:"cursor"`
	Node   *SMSTemplate `json:"node"`
}

Paginating the node SMSTemplate

type SMSTemplateSearchType

type SMSTemplateSearchType string
const (
	SMSTemplateSearchTypeAll      SMSTemplateSearchType = "ALL"
	SMSTemplateSearchTypeSmsTitle SMSTemplateSearchType = "SMS_TITLE"
	SMSTemplateSearchTypeSmsCode  SMSTemplateSearchType = "SMS_CODE"
)

func (SMSTemplateSearchType) IsValid

func (e SMSTemplateSearchType) IsValid() bool

func (SMSTemplateSearchType) MarshalGQL

func (e SMSTemplateSearchType) MarshalGQL(w io.Writer)

func (SMSTemplateSearchType) String

func (e SMSTemplateSearchType) String() string

func (*SMSTemplateSearchType) UnmarshalGQL

func (e *SMSTemplateSearchType) UnmarshalGQL(v interface{}) error

type SearchCancelReasonStatus

type SearchCancelReasonStatus string
const (
	SearchCancelReasonStatusActive   SearchCancelReasonStatus = "ACTIVE"
	SearchCancelReasonStatusInactive SearchCancelReasonStatus = "INACTIVE"
)

func (SearchCancelReasonStatus) IsValid

func (e SearchCancelReasonStatus) IsValid() bool

func (SearchCancelReasonStatus) MarshalGQL

func (e SearchCancelReasonStatus) MarshalGQL(w io.Writer)

func (SearchCancelReasonStatus) String

func (e SearchCancelReasonStatus) String() string

func (*SearchCancelReasonStatus) UnmarshalGQL

func (e *SearchCancelReasonStatus) UnmarshalGQL(v interface{}) error

type SearchCancelReasonType

type SearchCancelReasonType string
const (
	SearchCancelReasonTypeAll    SearchCancelReasonType = "ALL"
	SearchCancelReasonTypeReason SearchCancelReasonType = "REASON"
)

func (SearchCancelReasonType) IsValid

func (e SearchCancelReasonType) IsValid() bool

func (SearchCancelReasonType) MarshalGQL

func (e SearchCancelReasonType) MarshalGQL(w io.Writer)

func (SearchCancelReasonType) String

func (e SearchCancelReasonType) String() string

func (*SearchCancelReasonType) UnmarshalGQL

func (e *SearchCancelReasonType) UnmarshalGQL(v interface{}) error

type SearchPackageType

type SearchPackageType string
const (
	SearchPackageTypeAll         SearchPackageType = "ALL"
	SearchPackageTypePackageType SearchPackageType = "PACKAGE_TYPE"
)

func (SearchPackageType) IsValid

func (e SearchPackageType) IsValid() bool

func (SearchPackageType) MarshalGQL

func (e SearchPackageType) MarshalGQL(w io.Writer)

func (SearchPackageType) String

func (e SearchPackageType) String() string

func (*SearchPackageType) UnmarshalGQL

func (e *SearchPackageType) UnmarshalGQL(v interface{}) error

type SearchPackageTypeStatus

type SearchPackageTypeStatus string
const (
	SearchPackageTypeStatusActive   SearchPackageTypeStatus = "ACTIVE"
	SearchPackageTypeStatusInactive SearchPackageTypeStatus = "INACTIVE"
)

func (SearchPackageTypeStatus) IsValid

func (e SearchPackageTypeStatus) IsValid() bool

func (SearchPackageTypeStatus) MarshalGQL

func (e SearchPackageTypeStatus) MarshalGQL(w io.Writer)

func (SearchPackageTypeStatus) String

func (e SearchPackageTypeStatus) String() string

func (*SearchPackageTypeStatus) UnmarshalGQL

func (e *SearchPackageTypeStatus) UnmarshalGQL(v interface{}) error

type SearchProviderType

type SearchProviderType string
const (
	SearchProviderTypeProviderName SearchProviderType = "PROVIDER_NAME"
	SearchProviderTypeCompanyName  SearchProviderType = "COMPANY_NAME"
	SearchProviderTypeEMail        SearchProviderType = "E_MAIL"
	SearchProviderTypeMobileNumber SearchProviderType = "MOBILE_NUMBER"
)

func (SearchProviderType) IsValid

func (e SearchProviderType) IsValid() bool

func (SearchProviderType) MarshalGQL

func (e SearchProviderType) MarshalGQL(w io.Writer)

func (SearchProviderType) String

func (e SearchProviderType) String() string

func (*SearchProviderType) UnmarshalGQL

func (e *SearchProviderType) UnmarshalGQL(v interface{}) error

type SelectProviderPaymentStatus

type SelectProviderPaymentStatus string
const (
	SelectProviderPaymentStatusSettled   SelectProviderPaymentStatus = "SETTLED"
	SelectProviderPaymentStatusUnsettled SelectProviderPaymentStatus = "UNSETTLED"
)

func (SelectProviderPaymentStatus) IsValid

func (e SelectProviderPaymentStatus) IsValid() bool

func (SelectProviderPaymentStatus) MarshalGQL

func (e SelectProviderPaymentStatus) MarshalGQL(w io.Writer)

func (SelectProviderPaymentStatus) String

func (*SelectProviderPaymentStatus) UnmarshalGQL

func (e *SelectProviderPaymentStatus) UnmarshalGQL(v interface{}) error

type Self

type Self struct {
	Href string `json:"href" bson:"href"`
}

Self represents self.

type Service

type Service struct {
	ID                        primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt                 time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt                 *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt                 time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy                 primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	Name                      string             `json:"name" bson:"name"`
	PriceBasedOn              PriceBasedOn       `json:"priceBasedOn" bson:"priceBasedOn"`
	CommissionOnMaterial      bool               `json:"commissionOnMaterial" bson:"commissionOnMaterial"`
	Category                  ServiceCategory    `json:"category" bson:"category"`
	UserCancellationTimeLimit int                `json:"userCancellationTimeLimit" bson:"userCancellationTimeLimit"`
	UserCancellationCharges   float64            `json:"userCancellationCharges" bson:"userCancellationCharges"`
	WaitingTimeLimit          int                `json:"waitingTimeLimit" bson:"waitingTimeLimit"`
	WaitingCharges            float64            `json:"waitingCharges" bson:"waitingCharges"`
	CategoryViewType          CategoryViewType   `json:"categoryViewType" bson:"categoryViewType"`
	DisplayOrder              int                `json:"displayOrder" bson:"displayOrder"`
	Icon                      string             `json:"icon" bson:"icon"`
	Tags                      []string           `json:"tags" bson:"tags"`
	IsActive                  bool               `json:"isActive" bson:"isActive"`
}

Service represents a service.

func CreateService

func CreateService(service Service) (*Service, error)

CreateService creates new service.

func GetServiceByID

func GetServiceByID(ID string) *Service

GetServiceByID gives service by id.

func GetServices

func GetServices(filter bson.D, limit int, after *string, before *string, first *int, last *int) (services []*Service, totalCount int64, hasPrevious, hasNext bool, err error)

GetServices gives a list of services.

func UpdateService

func UpdateService(s *Service) (*Service, error)

UpdateService updates service.

func (*Service) MarshalBinary

func (service *Service) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*Service) UnmarshalBinary

func (service *Service) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type ServiceCategory

type ServiceCategory string
const (
	ServiceCategoryTaxiService         ServiceCategory = "TAXI_SERVICE"
	ServiceCategoryProfessionalService ServiceCategory = "PROFESSIONAL_SERVICE"
	ServiceCategoryRentalService       ServiceCategory = "RENTAL_SERVICE"
	ServiceCategoryDeliveryService     ServiceCategory = "DELIVERY_SERVICE"
)

func (ServiceCategory) IsValid

func (e ServiceCategory) IsValid() bool

func (ServiceCategory) MarshalGQL

func (e ServiceCategory) MarshalGQL(w io.Writer)

func (ServiceCategory) String

func (e ServiceCategory) String() string

func (*ServiceCategory) UnmarshalGQL

func (e *ServiceCategory) UnmarshalGQL(v interface{}) error

type ServiceCompaniesConnection

type ServiceCompaniesConnection struct {
	TotalCount int                   `json:"totalCount"`
	Nodes      []*ServiceCompany     `json:"nodes"`
	Edges      []*ServiceCompanyEdge `json:"edges"`
	PageInfo   *PageInfo             `json:"pageInfo"`
}

type ServiceCompany

type ServiceCompany struct {
	ID        primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	Name      string             `json:"name" bson:"name"`
	Email     string             `json:"email" bson:"email"`
	Country   string             `json:"country" bson:"country"`
	State     string             `json:"state" bson:"state"`
	City      string             `json:"city" bson:"city"`
	Address   Address            `json:"address" bson:"address"`
	ZipCode   string             `json:"zipcode" bson:"zipcode"`
	Phone     string             `json:"phone" bson:"phone"`
	Language  string             `json:"language" bson:"language"`
	VATNo     string             `json:"vatNo" bson:"vatNo"`
	IsActive  bool               `json:"isActive" bson:"isActive"`
}

ServiceCompany represents a company.

func CreateServiceCompany

func CreateServiceCompany(company ServiceCompany) (*ServiceCompany, error)

CreateServiceCompany creates new company.

func GetServiceCompanies

func GetServiceCompanies(filter bson.D, limit int, after *string, before *string, first *int, last *int) (serviceCompanies []*ServiceCompany, totalCount int64, hasPrevious, hasNext bool, err error)

GetServiceCompanies gives an array of companies.

func GetServiceCompanyByID

func GetServiceCompanyByID(ID string) *ServiceCompany

GetServiceCompanyByID gives the requested company by id.

func UpdateServiceCompany

func UpdateServiceCompany(c *ServiceCompany) (*ServiceCompany, error)

UpdateServiceCompany updates the company.

func (*ServiceCompany) MarshalBinary

func (company *ServiceCompany) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*ServiceCompany) UnmarshalBinary

func (company *ServiceCompany) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type ServiceCompanyEdge

type ServiceCompanyEdge struct {
	Cursor string          `json:"cursor"`
	Node   *ServiceCompany `json:"node"`
}

type ServiceConnection

type ServiceConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*ServiceEdge `json:"edges"`
	// A list of nodes.
	Nodes []*Service `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

type ServiceEdge

type ServiceEdge struct {
	Cursor string   `json:"cursor"`
	Node   *Service `json:"node"`
}

type ServiceOrderInput

type ServiceOrderInput struct {
	ServiceTypeID primitive.ObjectID `json:"serviceTypeID"`
	Quantity      int                `json:"quantity"`
	DeliveryNotes string             `json:"deliveryNotes"`
}

type ServiceProvider

type ServiceProvider struct {
	ID                 primitive.ObjectID     `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt          time.Time              `json:"createdAt" bson:"createdAt"`
	DeletedAt          *time.Time             `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt          time.Time              `json:"updatedAt" bson:"updatedAt"`
	CreatedBy          primitive.ObjectID     `json:"createdBy" bson:"createdBy"`
	Blocked            bool                   `json:"blocked" bson:"blocked"`
	User               primitive.ObjectID     `json:"user" bson:"user"`
	CompanyID          primitive.ObjectID     `json:"companyId" bson:"companyId"`
	BankDetails        primitive.ObjectID     `json:"bankDetails" bson:"bankDetails"`
	Metadata           map[string]interface{} `json:"metadata" bson:"metadata"`
	FirstName          string                 `json:"firstName" bson:"firstName"`
	LastName           string                 `json:"lastName" bson:"lastName"`
	Email              string                 `json:"email" bson:"email"`
	Password           string                 `json:"password" bson:"password"`
	Gender             Gender                 `json:"gender" bson:"gender"`
	ProfilePicture     string                 `json:"profilePicture" bson:"profilePicture"`
	Country            string                 `json:"country" bson:"country"`
	State              string                 `json:"state" bson:"state"`
	City               string                 `json:"city" bson:"city"`
	Address            Address                `json:"address" bson:"address"`
	ZipCode            int                    `json:"zipCode" bson:"zipCode"`
	MobileNumber       string                 `json:"mobileNumber" bson:"mobileNumber"`
	Language           string                 `json:"language" bson:"language"`
	Currency           string                 `json:"currency" bson:"currency"`
	ServiceCategory    []ServiceCategory      `json:"serviceCategory" bson:"serviceCategory"`
	ServiceSubCategory []primitive.ObjectID   `json:"serviceSubCategory" bson:"serviceSubCategory"`
	ApprovedAt         *time.Time             `json:"approvedAt" bson:"approvedAt"`
	ApprovedBy         *primitive.ObjectID    `json:"approvedBy" bson:"approvedBy"`
	IsActive           bool                   `json:"isActive" bson:"isActive"`
}

ServiceProvider represents a service provider.

func CreateServiceProvider

func CreateServiceProvider(serviceProvider *ServiceProvider) (*ServiceProvider, error)

CreateServiceProvider creates new service provider.

func GetServiceProviderByFilter

func GetServiceProviderByFilter(filter bson.D) *ServiceProvider

GetServiceProviderByFilter gives service provider by filter.

func GetServiceProviderByID

func GetServiceProviderByID(ID string) *ServiceProvider

GetServiceProviderByID gives service provider by id.

func GetServiceProviders

func GetServiceProviders(filter bson.D, limit int, after *string, before *string, first *int, last *int) (serviceProviders []*ServiceProvider, totalCount int64, hasPrevious, hasNext bool, err error)

GetServiceProviders gives a list of service provider.

func UpdateServiceProvider

func UpdateServiceProvider(s *ServiceProvider) (*ServiceProvider, error)

UpdateServiceProvider updates service provider.

func (*ServiceProvider) MarshalBinary

func (serviceProvider *ServiceProvider) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*ServiceProvider) UnmarshalBinary

func (serviceProvider *ServiceProvider) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type ServiceProviderConnection

type ServiceProviderConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*ServiceProviderEdge `json:"edges"`
	// A list of nodes.
	Nodes []*ServiceProvider `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of ServiceProvider

type ServiceProviderEdge

type ServiceProviderEdge struct {
	Cursor string           `json:"cursor"`
	Node   *ServiceProvider `json:"node"`
}

Paginating the node ServiceProvider

type ServiceProviderFlow

type ServiceProviderFlow string
const (
	ServiceProviderFlowService  ServiceProviderFlow = "SERVICE"
	ServiceProviderFlowProvider ServiceProviderFlow = "PROVIDER"
)

func (ServiceProviderFlow) IsValid

func (e ServiceProviderFlow) IsValid() bool

func (ServiceProviderFlow) MarshalGQL

func (e ServiceProviderFlow) MarshalGQL(w io.Writer)

func (ServiceProviderFlow) String

func (e ServiceProviderFlow) String() string

func (*ServiceProviderFlow) UnmarshalGQL

func (e *ServiceProviderFlow) UnmarshalGQL(v interface{}) error

type ServiceProviderLocation

type ServiceProviderLocation struct {
	ID                primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	ServiceProviderID string             `json:"serviceProviderID" bson:"serviceProviderID"`
	CreatedAt         time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt         *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt         time.Time          `json:"updatedAt" bson:"updatedAt"`
	Location          Location           `json:"location" bson:"location"`
}

ServiceProviderLocation Driver's current location

func CreateServiceProviderLocation

func CreateServiceProviderLocation(serviceProviderLocation *ServiceProviderLocation) (*ServiceProviderLocation, error)

CreateServiceProviderLocation creates new service provider location.

func GetServiceProviderLocationByID

func GetServiceProviderLocationByID(ID string) (*ServiceProviderLocation, error)

GetServiceProviderLocationByID gives service provider by id.

func GetServiceProviderLocations

func GetServiceProviderLocations(filter bson.D, limit int, after *string, before *string, first *int, last *int) (serviceProviderLocations []*ServiceProviderLocation, totalCount int64, hasPrevious, hasNext bool, err error)

GetServiceProviderLocations gives a list of provider locations.

func UpdateServiceProviderLocation

func UpdateServiceProviderLocation(c *ServiceProviderLocation) (*ServiceProviderLocation, error)

UpdateServiceProviderLocation updates provider location.

func (*ServiceProviderLocation) MarshalBinary

func (serviceProviderLocation *ServiceProviderLocation) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*ServiceProviderLocation) UnmarshalBinary

func (serviceProviderLocation *ServiceProviderLocation) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type ServiceProviderProfileInput

type ServiceProviderProfileInput struct {
	ID                 primitive.ObjectID      `json:"id"`
	Address            *UpdateAddressInput     `json:"address"`
	Language           string                  `json:"language"`
	BankAccountDetails *UpdateBankDetailsInput `json:"bankAccountDetails"`
	RequiredDocuments  *UpdateDocumentInput    `json:"requiredDocuments"`
}

type ServiceProviderSignUpInput

type ServiceProviderSignUpInput struct {
	ServiceCategory    ServiceCategory      `json:"serviceCategory"`
	ServiceSubCategory primitive.ObjectID   `json:"serviceSubCategory"`
	Address            *AddAddressInput     `json:"address"`
	BankAccountDetails *AddBankDetailsInput `json:"bankAccountDetails"`
}

type ServiceProviderVehicle

type ServiceProviderVehicle struct {
	ID                  primitive.ObjectID     `json:"id"`
	VehicleCompanyName  string                 `json:"vehicleCompanyName"`
	VehicleModelName    string                 `json:"vehicleModelName"`
	VehicleYear         string                 `json:"vehicleYear"`
	VehicleNumber       string                 `json:"vehicleNumber"`
	VehicleColor        string                 `json:"vehicleColor"`
	VehicleImageURL     string                 `json:"vehicleImageUrl"`
	VehicleLicensePlate string                 `json:"vehicleLicensePlate"`
	ServiceCompanyID    string                 `json:"serviceCompanyId"`
	EnabledServiceType  []*VehicleServiceTypes `json:"enabledServiceType"`
	IsActive            bool                   `json:"isActive"`
}

type ServiceProviderVehicleDetails

type ServiceProviderVehicleDetails struct {
	ID                  primitive.ObjectID    `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt           time.Time             `json:"createdAt" bson:"createdAt"`
	DeletedAt           *time.Time            `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt           time.Time             `json:"updatedAt" bson:"updatedAt"`
	CreatedBy           primitive.ObjectID    `json:"createdBy" bson:"createdBy"`
	ServiceProviderID   string                `json:"serviceProviderId" bson:"serviceProviderId"`
	ServiceCompanyID    string                `json:"serviceCompanyId" bson:"serviceCompanyId"`
	VehicleCompanyName  string                `json:"vehicleCompanyName" bson:"vehicleCompanyName"`
	VehicleModelName    string                `json:"vehicleModelName" bson:"vehicleModelName"`
	VehicleYear         string                `json:"vehicleYear" bson:"vehicleYear"`
	VehicleNumber       string                `json:"vehicleNumber" bson:"vehicleNumber"`
	VehicleColor        string                `json:"vehicleColor" bson:"vehicleColor"`
	VehicleImageURL     string                `json:"vehicleImageUrl" bson:"vehicleImageUrl"`
	VehicleLicensePlate string                `json:"vehicleLicensePlate" bson:"vehicleLicensePlate"`
	VehicleType         string                `json:"vehicleType" bson:"vehicleType"`
	EnabledServiceType  []VehicleServiceTypes `json:"enabledServiceType" bson:"enabledServiceType"`
	IsActive            bool                  `json:"isActive" bson:"isActive"`
}

ServiceProviderVehicleDetails represents a service provider vehicle.

func CreateServiceProviderVehicle

func CreateServiceProviderVehicle(serviceProviderVehicleDetails ServiceProviderVehicleDetails) (*ServiceProviderVehicleDetails, error)

CreateServiceProviderVehicle creates service provider vehicle.

func GetServiceProviderVehicleByID

func GetServiceProviderVehicleByID(ID string) (*ServiceProviderVehicleDetails, error)

GetServiceProviderVehicleByID gives service provider vehicle by id.

func GetServiceProviderVehicles

func GetServiceProviderVehicles(filter bson.D, limit int, after *string, before *string, first *int, last *int) (serviceProviderVehicles []*ServiceProviderVehicleDetails, totalCount int64, hasPrevious, hasNext bool, err error)

GetServiceProviderVehicles gives a list of service provider vehicles.

func UpdateServiceProviderVehicle

func UpdateServiceProviderVehicle(serviceProviderVehicle *ServiceProviderVehicleDetails) (*ServiceProviderVehicleDetails, error)

UpdateServiceProviderVehicle updates service provider vehicle.

func (*ServiceProviderVehicleDetails) MarshalBinary

func (serviceProviderVehicleDetails *ServiceProviderVehicleDetails) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*ServiceProviderVehicleDetails) UnmarshalBinary

func (serviceProviderVehicleDetails *ServiceProviderVehicleDetails) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type ServiceProviderVehicleDetailsConnection

type ServiceProviderVehicleDetailsConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*ServiceProviderVehicleDetailsEdge `json:"edges"`
	// A list of nodes.
	Nodes []*ServiceProviderVehicleDetails `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of ProviderVehicleDetails

type ServiceProviderVehicleDetailsEdge

type ServiceProviderVehicleDetailsEdge struct {
	Cursor string                         `json:"cursor"`
	Node   *ServiceProviderVehicleDetails `json:"node"`
}

Paginating the node ProviderVehicleDetails

type ServiceStatus

type ServiceStatus string
const (
	ServiceStatusActive   ServiceStatus = "ACTIVE"
	ServiceStatusInactive ServiceStatus = "INACTIVE"
)

func (ServiceStatus) IsValid

func (e ServiceStatus) IsValid() bool

func (ServiceStatus) MarshalGQL

func (e ServiceStatus) MarshalGQL(w io.Writer)

func (ServiceStatus) String

func (e ServiceStatus) String() string

func (*ServiceStatus) UnmarshalGQL

func (e *ServiceStatus) UnmarshalGQL(v interface{}) error

type ServiceSubCategory

type ServiceSubCategory struct {
	ID           primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	ServiceID    string             `json:"serviceId" bson:"serviceId"` // parent service id
	CreatedAt    time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt    *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt    time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy    primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	Name         string             `json:"name" bson:"name"`
	ServiceType  string             `json:"serviceType" bson:"serviceType"`
	DisplayOrder int                `json:"displayOrder" bson:"displayOrder"`
	Description  string             `json:"description" bson:"description"`
	Icon         string             `json:"icon" bson:"icon"`
	BannerImage  string             `json:"bannerImage" bson:"bannerImage"`
	IsActive     bool               `json:"isActive" bson:"isActive"`
}

ServiceSubCategory represents a service sub category.

func CreateServiceSubCategory

func CreateServiceSubCategory(serviceSubCategory ServiceSubCategory) (*ServiceSubCategory, error)

CreateServiceSubCategory creates new service sub categories.

func GetServiceSubCategories

func GetServiceSubCategories(filter bson.D, limit int, after *string, before *string, first *int, last *int) (serviceSubCategories []*ServiceSubCategory, totalCount int64, hasPrevious, hasNext bool, err error)

GetServiceSubCategories gives a list of service sub categories.

func GetServiceSubCategoryByID

func GetServiceSubCategoryByID(ID string) *ServiceSubCategory

GetServiceSubCategoryByID gives service sub category by id.

func UpdateServiceSubCategory

func UpdateServiceSubCategory(s *ServiceSubCategory) (*ServiceSubCategory, error)

UpdateServiceSubCategory updates survice sub category.

func (*ServiceSubCategory) MarshalBinary

func (serviceSubCategory *ServiceSubCategory) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*ServiceSubCategory) UnmarshalBinary

func (serviceSubCategory *ServiceSubCategory) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type ServiceSubCategoryConnection

type ServiceSubCategoryConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*ServiceSubCategoryEdge `json:"edges"`
	// A list of nodes.
	Nodes []*ServiceSubCategory `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of ServiceSubCategory

type ServiceSubCategoryEdge

type ServiceSubCategoryEdge struct {
	Cursor string              `json:"cursor"`
	Node   *ServiceSubCategory `json:"node"`
}

Paginating the node ServiceCategory

type ServiceSubCategoryStatus

type ServiceSubCategoryStatus string
const (
	ServiceSubCategoryStatusActive   ServiceSubCategoryStatus = "ACTIVE"
	ServiceSubCategoryStatusInactive ServiceSubCategoryStatus = "INACTIVE"
	ServiceSubCategoryStatusDeleted  ServiceSubCategoryStatus = "DELETED"
)

func (ServiceSubCategoryStatus) IsValid

func (e ServiceSubCategoryStatus) IsValid() bool

func (ServiceSubCategoryStatus) MarshalGQL

func (e ServiceSubCategoryStatus) MarshalGQL(w io.Writer)

func (ServiceSubCategoryStatus) String

func (e ServiceSubCategoryStatus) String() string

func (*ServiceSubCategoryStatus) UnmarshalGQL

func (e *ServiceSubCategoryStatus) UnmarshalGQL(v interface{}) error

type ServiceType

type ServiceType struct {
	ID                   primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	ServiceSubCategoryID string             `json:"serviceSubCategoryId" bson:"serviceSubCategoryId"`
	CreatedAt            time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt            *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt            time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy            primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	ServiceType          string             `json:"serviceType" bson:"serviceType"`
	DisplayOrder         int                `json:"displayOrder" bson:"displayOrder"`
	Location             string             `json:"location" bson:"location"`
	IsActive             bool               `json:"isActive" bson:"isActive"`
	ServiceCategory      string             `json:"serviceCategory" bson:"serviceCategory"`
	ServiceDescription   string             `json:"serviceDescription" bson:"serviceDescription"`
	FareType             FareType           `json:"fareType" bson:"fareType"`
	ServiceCharge        float64            `json:"serviceCharge" bson:"serviceCharge"`
	Commission           float64            `json:"commission" bson:"commission"`
	AllowQuantity        bool               `json:"allowQuantity" bson:"allowQuantity"`
}

ServiceType represents a service type.

func CreateServiceType

func CreateServiceType(serviceType ServiceType) (*ServiceType, error)

CreateServiceType creates service type.

func GetServiceTypeByID

func GetServiceTypeByID(ID string) (*ServiceType, error)

GetServiceTypeByID gives service type by id.

func GetServiceTypes

func GetServiceTypes(filter bson.D, limit int, after *string, before *string, first *int, last *int) (serviceTypes []*ServiceType, totalCount int64, hasPrevious, hasNext bool, err error)

GetServiceTypes gives a list of service types.

func UpdateServiceType

func UpdateServiceType(s *ServiceType) (*ServiceType, error)

UpdateServiceType updates service type.

func (*ServiceType) MarshalBinary

func (serviceType *ServiceType) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*ServiceType) UnmarshalBinary

func (serviceType *ServiceType) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type ServiceTypeConnection

type ServiceTypeConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*ServiceTypeEdge `json:"edges"`
	// A list of nodes.
	Nodes []*ServiceType `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of service types

type ServiceTypeEdge

type ServiceTypeEdge struct {
	Cursor string       `json:"cursor"`
	Node   *ServiceType `json:"node"`
}

Paginating the node ServiceType

type ServiceTypeStatus

type ServiceTypeStatus string
const (
	ServiceTypeStatusActive   ServiceTypeStatus = "ACTIVE"
	ServiceTypeStatusInactive ServiceTypeStatus = "INACTIVE"
	ServiceTypeStatusDeleted  ServiceTypeStatus = "DELETED"
)

func (ServiceTypeStatus) IsValid

func (e ServiceTypeStatus) IsValid() bool

func (ServiceTypeStatus) MarshalGQL

func (e ServiceTypeStatus) MarshalGQL(w io.Writer)

func (ServiceTypeStatus) String

func (e ServiceTypeStatus) String() string

func (*ServiceTypeStatus) UnmarshalGQL

func (e *ServiceTypeStatus) UnmarshalGQL(v interface{}) error

type ServiceVehicleServiceType

type ServiceVehicleServiceType string
const (
	ServiceVehicleServiceTypeAll            ServiceVehicleServiceType = "ALL"
	ServiceVehicleServiceTypeVehicleType    ServiceVehicleServiceType = "VEHICLE_TYPE"
	ServiceVehicleServiceTypePricePerKms    ServiceVehicleServiceType = "PRICE_PER_KMS"
	ServiceVehicleServiceTypePricePerMinute ServiceVehicleServiceType = "PRICE_PER_MINUTE"
	ServiceVehicleServiceTypePersonCapacity ServiceVehicleServiceType = "PERSON_CAPACITY"
	ServiceVehicleServiceTypeLocation       ServiceVehicleServiceType = "LOCATION"
	ServiceVehicleServiceTypeServiceType    ServiceVehicleServiceType = "SERVICE_TYPE"
)

func (ServiceVehicleServiceType) IsValid

func (e ServiceVehicleServiceType) IsValid() bool

func (ServiceVehicleServiceType) MarshalGQL

func (e ServiceVehicleServiceType) MarshalGQL(w io.Writer)

func (ServiceVehicleServiceType) String

func (e ServiceVehicleServiceType) String() string

func (*ServiceVehicleServiceType) UnmarshalGQL

func (e *ServiceVehicleServiceType) UnmarshalGQL(v interface{}) error

type ServiceVehicleType

type ServiceVehicleType struct {
	ID                           primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt                    time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt                    time.Time          `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt                    time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy                    primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	VehicleServiceType           VehicleServiceType `json:"vehicleServiceType" bson:"vehicleServiceType"`
	EnablePoolRide               bool               `json:"enablePoolRide" bson:"enablePoolRide"`
	VehicleType                  VehicleType        `json:"vehicleType" bson:"vehicleType"`
	VehicleCategory              VehicleCategory    `json:"vehicleCategory" bson:"vehicleCategory"`
	Location                     string             `json:"location" bson:"location"`
	PricePerKms                  float64            `json:"pricePerKms" bson:"pricePerKms"`
	PricePerMinute               float64            `json:"pricePerMinute" bson:"pricePerMinute"`
	BaseFare                     float64            `json:"baseFare" bson:"baseFare"`
	Commission                   float64            `json:"commission" bson:"commission"`
	MinimumFare                  float64            `json:"minimumFare" bson:"minimumFare"`
	UserCancellationTimeLimit    int                `json:"userCancellationTimeLimit" bson:"userCancellationTimeLimit"`
	UserCancellationCharges      float64            `json:"userCancellationCharges" bson:"userCancellationCharges"`
	WaitingTimeLimit             int                `json:"waitingTimeLimit" bson:"waitingTimeLimit"`
	WaitingCharges               float64            `json:"waitingCharges" bson:"waitingCharges"`
	InTransitWaitingFeePerMinute float64            `json:"inTransitWaitingFeePerMinute" bson:"inTransitWaitingFeePerMinute"`
	PersonCapacity               int                `json:"personCapacity" bson:"personCapacity"`
	PeakTimeSurcharge            bool               `json:"peakTimeSurcharge" bson:"peakTimeSurcharge"`
	NightCharges                 bool               `json:"nightCharges" bson:"nightCharges"`
	VehiclePicture               string             `json:"vehiclePicture" bson:"vehiclePicture"`
	Order                        int                `json:"Order" bson:"Order"`
	IsActive                     bool               `json:"isActive" bson:"isActive"`
}

ServiceVehicleType represents a service vehicle type.

func CreateServiceVehicleType

func CreateServiceVehicleType(serviceVehicleType ServiceVehicleType) (*ServiceVehicleType, error)

CreateServiceVehicleType creates service vehicle type.

func GetServiceVehicleTypeByID

func GetServiceVehicleTypeByID(ID string) (*ServiceVehicleType, error)

GetServiceVehicleTypeByID gives a service vehicle type by id.

func GetServiceVehicleTypes

func GetServiceVehicleTypes(filter bson.D, limit int, after *string, before *string, first *int, last *int) (serviceVehicleTypes []*ServiceVehicleType, totalCount int64, hasPrevious, hasNext bool, err error)

GetServiceVehicleTypes gives a list of service vehicle type.

func UpdateServiceVehicleType

func UpdateServiceVehicleType(s *ServiceVehicleType) (*ServiceVehicleType, error)

UpdateServiceVehicleType updates service vehicle type.

func (*ServiceVehicleType) MarshalBinary

func (serviceVehicleType *ServiceVehicleType) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*ServiceVehicleType) UnmarshalBinary

func (serviceVehicleType *ServiceVehicleType) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type ServiceVehicleTypeConnection

type ServiceVehicleTypeConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*ServiceVehicleTypeEdge `json:"edges"`
	// A list of nodes.
	Nodes []*ServiceVehicleType `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of ServiceVehicleType

type ServiceVehicleTypeEdge

type ServiceVehicleTypeEdge struct {
	Cursor string              `json:"cursor"`
	Node   *ServiceVehicleType `json:"node"`
}

Paginating the node ServiceVehicleType

type ServiceVehicleTypeStatus

type ServiceVehicleTypeStatus string
const (
	ServiceVehicleTypeStatusActive   ServiceVehicleTypeStatus = "ACTIVE"
	ServiceVehicleTypeStatusInactive ServiceVehicleTypeStatus = "INACTIVE"
	ServiceVehicleTypeStatusDeleted  ServiceVehicleTypeStatus = "DELETED"
)

func (ServiceVehicleTypeStatus) IsValid

func (e ServiceVehicleTypeStatus) IsValid() bool

func (ServiceVehicleTypeStatus) MarshalGQL

func (e ServiceVehicleTypeStatus) MarshalGQL(w io.Writer)

func (ServiceVehicleTypeStatus) String

func (e ServiceVehicleTypeStatus) String() string

func (*ServiceVehicleTypeStatus) UnmarshalGQL

func (e *ServiceVehicleTypeStatus) UnmarshalGQL(v interface{}) error

type Shipping

type Shipping struct {
	FirstName string `json:"firstName"`
	LastName  string `json:"lastName"`
	Company   string `json:"company"`
	Address1  string `json:"address1"`
	Address2  string `json:"address2"`
	City      string `json:"city"`
	State     string `json:"state"`
	Postcode  string `json:"postcode"`
	Country   string `json:"country"`
}

type ShippingInput

type ShippingInput struct {
	FirstName string `json:"firstName"`
	LastName  string `json:"lastName"`
	Company   string `json:"company"`
	Address1  string `json:"address1"`
	Address2  string `json:"address2"`
	City      string `json:"city"`
	State     string `json:"state"`
	Postcode  string `json:"postcode"`
	Country   string `json:"country"`
}

type ShippingLines

type ShippingLines struct {
	ID          int      `json:"id"`
	MethodTitle string   `json:"methodTitle"`
	MethodID    string   `json:"methodID"`
	Total       string   `json:"total"`
	TotalTax    string   `json:"totalTax"`
	MetaData    []string `json:"metaData"`
	Taxes       []string `json:"taxes"`
}

type SiteStatistics

type SiteStatistics struct {
	Users         int `json:"users"`
	Providers     int `json:"providers"`
	Companies     int `json:"companies"`
	Totalearnings int `json:"totalearnings"`
}

type SmsTemplateConnection

type SmsTemplateConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*SMSTemplateEdge `json:"edges"`
	// A list of nodes.
	Nodes []*SMSTemplate `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of SMS templates

type SocialAuthProvder

type SocialAuthProvder string
const (
	SocialAuthProvderFacebook SocialAuthProvder = "FACEBOOK"
	SocialAuthProvderGoogle   SocialAuthProvder = "GOOGLE"
)

func (SocialAuthProvder) IsValid

func (e SocialAuthProvder) IsValid() bool

func (SocialAuthProvder) MarshalGQL

func (e SocialAuthProvder) MarshalGQL(w io.Writer)

func (SocialAuthProvder) String

func (e SocialAuthProvder) String() string

func (*SocialAuthProvder) UnmarshalGQL

func (e *SocialAuthProvder) UnmarshalGQL(v interface{}) error

type SocialMediaSetting

type SocialMediaSetting struct {
	FacebookAppID                    string `json:"facebookAppID"`
	Facebook                         string `json:"facebook"`
	Twitter                          string `json:"twitter"`
	LinkedIn                         string `json:"linkedIn"`
	Instagram                        string `json:"instagram"`
	TwitterConsumerSecret            string `json:"twitterConsumerSecret"`
	TwitterConsumerKey               string `json:"twitterConsumerKey"`
	TwitterToken                     string `json:"twitterToken"`
	TwitterTokenSecret               string `json:"twitterTokenSecret"`
	GooglePlusAppName                string `json:"googlePlusAppName"`
	GooglePlusClientID               string `json:"googlePlusClientID"`
	GooglePlusSecretKey              string `json:"googlePlusSecretKey"`
	GooglePlusRedirectURI            string `json:"googlePlusRedirectURI"`
	GooglePlusSiteLink               string `json:"googlePlusSiteLink"`
	EnableGooglePlusLoginForProvider bool   `json:"enableGooglePlusLoginForProvider"`
	EnableGooglePlusLoginForUser     bool   `json:"enableGooglePlusLoginForUser"`
	EnableFacebookLoginForProvider   bool   `json:"enableFacebookLoginForProvider"`
	EnableFacebookLoginForUser       bool   `json:"enableFacebookLoginForUser"`
	EnableTwitterLoginForProvider    bool   `json:"enableTwitterLoginForProvider"`
	EnableTwitterLoginForUser        bool   `json:"enableTwitterLoginForUser"`
	EnableLinkedInLoginForProvider   bool   `json:"enableLinkedInLoginForProvider"`
	EnableLinkedInLoginForUser       bool   `json:"enableLinkedInLoginForUser"`
	FooterGoogleLink                 string `json:"footerGoogleLink"`
	LinkedInAppID                    string `json:"linkedInAppID"`
	FacebookSecretKey                string `json:"facebookSecretKey"`
	LinkedInSecretKey                string `json:"linkedInSecretKey"`
}

type SocialMediaSettingInput

type SocialMediaSettingInput struct {
	FacebookAppID                    string `json:"facebookAppID"`
	Facebook                         string `json:"facebook"`
	Twitter                          string `json:"twitter"`
	LinkedIn                         string `json:"linkedIn"`
	Instagram                        string `json:"instagram"`
	TwitterConsumerSecret            string `json:"twitterConsumerSecret"`
	TwitterConsumerKey               string `json:"twitterConsumerKey"`
	TwitterToken                     string `json:"twitterToken"`
	TwitterTokenSecret               string `json:"twitterTokenSecret"`
	GooglePlusAppName                string `json:"googlePlusAppName"`
	GooglePlusClientID               string `json:"googlePlusClientID"`
	GooglePlusSecretKey              string `json:"googlePlusSecretKey"`
	GooglePlusRedirectURI            string `json:"googlePlusRedirectURI"`
	GooglePlusSiteLink               string `json:"googlePlusSiteLink"`
	EnableGooglePlusLoginForProvider bool   `json:"enableGooglePlusLoginForProvider"`
	EnableGooglePlusLoginForUser     bool   `json:"enableGooglePlusLoginForUser"`
	EnableFacebookLoginForProvider   bool   `json:"enableFacebookLoginForProvider"`
	EnableFacebookLoginForUser       bool   `json:"enableFacebookLoginForUser"`
	EnableTwitterLoginForProvider    bool   `json:"enableTwitterLoginForProvider"`
	EnableTwitterLoginForUser        bool   `json:"enableTwitterLoginForUser"`
	EnableLinkedInLoginForProvider   bool   `json:"enableLinkedInLoginForProvider"`
	EnableLinkedInLoginForUser       bool   `json:"enableLinkedInLoginForUser"`
	FooterGoogleLink                 string `json:"footerGoogleLink"`
	LinkedInAppID                    string `json:"linkedInAppID"`
	FacebookSecretKey                string `json:"facebookSecretKey"`
	LinkedInSecretKey                string `json:"linkedInSecretKey"`
}

type State

type State struct {
	ID          primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt   time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt   *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt   time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy   primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	CountryName string             `json:"countryName" bson:"countryName"`
	CountryCode string             `json:"countryCode" bson:"countryCode"`
	StateName   string             `json:"stateName" bson:"stateName"`
	StateCode   string             `json:"stateCode" bson:"stateCode"`
	IsActive    bool               `json:"isActive" bson:"isActive"`
}

State represents a state.

func CreateState

func CreateState(state State) (*State, error)

CreateState creates new states.

func GetState

func GetState(countryCode string, stateCode string) (*State, error)

GetState gives the requested state.

func GetStateByID

func GetStateByID(ID string) (*State, error)

GetStateByID gives the requested state by id.

func GetStates

func GetStates(filter bson.D, limit int, after *string, before *string, first *int, last *int) (states []*State, totalCount int64, hasPrevious, hasNext bool, err error)

GetStates gives an array of states.

func UpdateState

func UpdateState(c *State) (*State, error)

UpdateState updates the states.

func (*State) MarshalBinary

func (state *State) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*State) UnmarshalBinary

func (state *State) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type StateConnection

type StateConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*StateEdge `json:"edges"`
	// A list of nodes.
	Nodes []*State `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of State

type StateEdge

type StateEdge struct {
	Cursor string `json:"cursor"`
	Node   *State `json:"node"`
}

Paginating the node State

type StateType

type StateType string
const (
	StateTypeAll     StateType = "ALL"
	StateTypeCode    StateType = "CODE"
	StateTypeState   StateType = "STATE"
	StateTypeCountry StateType = "COUNTRY"
	StateTypeStatus  StateType = "STATUS"
)

func (StateType) IsValid

func (e StateType) IsValid() bool

func (StateType) MarshalGQL

func (e StateType) MarshalGQL(w io.Writer)

func (StateType) String

func (e StateType) String() string

func (*StateType) UnmarshalGQL

func (e *StateType) UnmarshalGQL(v interface{}) error

type Store

type Store struct {
	ID                       primitive.ObjectID  `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt                time.Time           `json:"createdAt" bson:"createdAt"`
	DeletedAt                *time.Time          `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt                time.Time           `json:"updatedAt" bson:"updatedAt"`
	CreatedBy                primitive.ObjectID  `json:"createdBy" bson:"createdBy"`
	StoreName                string              `json:"storeName" bson:"storeName"`
	StoreLocation            StoreLocation       `json:"storeLocation" bson:"storeLocation"`
	ServiceCategory          StoreCategory       `json:"serviceCategory" bson:"serviceCategory"`
	Email                    string              `json:"email" bson:"email"`
	Password                 string              `json:"password" bson:"password"`
	StoreAddress             Address             `json:"storeAddress" bson:"storeAddress"`
	ZipCode                  string              `json:"zipCode" bson:"zipCode"`
	Country                  string              `json:"country" bson:"country"`
	State                    string              `json:"state" bson:"state"`
	ContactPersonName        string              `json:"contactPersonName" bson:"contactPersonName"`
	MobileNumber             string              `json:"mobileNumber" bson:"mobileNumber"`
	Language                 string              `json:"language" bson:"language"`
	AvailableStoreItemTypes  string              `json:"availableStoreItemTypes" bson:"availableStoreItemTypes"`
	Slot1                    time.Time           `json:"slot1" bson:"slot1"`
	Slot2                    time.Time           `json:"slot2" bson:"slot2"`
	MinimumAmountPerOrder    float64             `json:"minimumAmountPerOrder" bson:"minimumAmountPerOrder"`
	AdditionalPackingCharges float64             `json:"additionalPackingCharges" bson:"additionalPackingCharges"`
	MaxOrderQuantity         string              `json:"maxOrderQuantity" bson:"maxOrderQuantity"`
	EstimatedOrderTime       int                 `json:"estimatedOrderTime" bson:"estimatedOrderTime"`
	OfferAppliesOn           OfferAppliesOn      `json:"offerAppliesOn" bson:"offerAppliesOn"`
	BankAccountDetails       primitive.ObjectID  `json:"bankAccountDetails" bson:"bankAccountDetails"`
	IsActive                 bool                `json:"isActive" bson:"isActive"`
	IsMultiLocationEnabled   bool                `json:"isMultiLocationEnabled"`
	Blocked                  bool                `json:"blocked" bson:"blocked"`
	ApprovedAt               *time.Time          `json:"approvedAt" bson:"approvedAt"`
	ApprovedBy               *primitive.ObjectID `json:"approvedBy" bson:"approvedBy"`
}

Store represents a store.

func CreateStore

func CreateStore(store Store) (*Store, error)

CreateStore creates a store.

func GetStoreByFilter

func GetStoreByFilter(filter bson.D) (*Store, error)

GetStoreByFilter gives a store by query filter.

func GetStoreByID

func GetStoreByID(ID string) *Store

GetStoreByID gives a store by id.

func GetStores

func GetStores(filter bson.D, limit int, after *string, before *string, first *int, last *int) (stores []*Store, totalCount int64, hasPrevious, hasNext bool, err error)

GetStores gives a list of stores.

func UpdateStore

func UpdateStore(s *Store) (*Store, error)

UpdateStore updates store.

func (*Store) MarshalBinary

func (store *Store) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*Store) UnmarshalBinary

func (store *Store) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type StoreCategory

type StoreCategory string
const (
	StoreCategoryFoodDelivery    StoreCategory = "FOOD_DELIVERY"
	StoreCategoryGroceryDelivery StoreCategory = "GROCERY_DELIVERY"
	StoreCategoryWineDelivery    StoreCategory = "WINE_DELIVERY"
)

func (StoreCategory) IsValid

func (e StoreCategory) IsValid() bool

func (StoreCategory) MarshalGQL

func (e StoreCategory) MarshalGQL(w io.Writer)

func (StoreCategory) String

func (e StoreCategory) String() string

func (*StoreCategory) UnmarshalGQL

func (e *StoreCategory) UnmarshalGQL(v interface{}) error

type StoreConnection

type StoreConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*StoreEdge `json:"edges"`
	// A list of nodes.
	Nodes []*Store `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of Stores

type StoreDetails

type StoreDetails struct {
	ID              primitive.ObjectID `json:"id"`
	StoreName       string             `json:"storeName"`
	Email           string             `json:"email"`
	ServiceCategory string             `json:"serviceCategory"`
	ItemCategories  int                `json:"itemCategories"`
	MobileNumber    int                `json:"mobileNumber"`
	EditDocuments   string             `json:"editDocuments"`
}

type StoreEdge

type StoreEdge struct {
	Cursor string `json:"cursor"`
	Node   *Store `json:"node"`
}

Paginating the node StoreDetails

type StoreLocation

type StoreLocation struct {
	ID                primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt         time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt         *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt         time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy         primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	StoreID           primitive.ObjectID `json:"storeID" bson:"storeID"`
	StoreLocationName string             `json:"storeLocation" bson:"storeLocation"`
	StoreAddress      Address            `json:"storeAddress" bson:"storeAddress"`
}

func CreateStoreLocation

func CreateStoreLocation(store StoreLocation) (*StoreLocation, error)

CreateStoreLocation creates a store location.

func GetStoreLocationByID

func GetStoreLocationByID(ID string) (*StoreLocation, error)

GetStoreLocationByID gives a store location by id.

func GetStoreLocations

func GetStoreLocations(filter bson.D, limit int, after *string, before *string, first *int, last *int) (stores []*StoreLocation, totalCount int64, hasPrevious, hasNext bool, err error)

GetStoreLocations gives a list of store locations.

func UpdateStoreLocation

func UpdateStoreLocation(store *StoreLocation) (*StoreLocation, error)

UpdateStoreLocation updates store location.

type StoreLocationConnection

type StoreLocationConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*StoreLocationEdge `json:"edges"`
	// A list of nodes.
	Nodes []*StoreLocation `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of Store locations

type StoreLocationEdge

type StoreLocationEdge struct {
	Cursor string         `json:"cursor"`
	Node   *StoreLocation `json:"node"`
}

Paginating the node StoreLocation

type StoreOrder

type StoreOrder struct {
	OrderID                      primitive.ObjectID `json:"orderID"`
	OrderDate                    time.Time          `json:"orderDate"`
	UserName                     string             `json:"userName"`
	StoreName                    string             `json:"storeName"`
	ProviderName                 string             `json:"providerName"`
	DeliveryDriver               string             `json:"deliveryDriver"`
	OrderTotalAmount             float64            `json:"orderTotalAmount"`
	ServiceType                  string             `json:"serviceType"`
	OrderStatus                  string             `json:"orderStatus"`
	PaymentMethod                string             `json:"paymentMethod"`
	CancellationAndRefundDetails string             `json:"cancellationAndRefundDetails"`
}

type StorePaymentReport

type StorePaymentReport struct {
	ID                primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt         time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt         *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt         time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy         primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	SelectStore       string             `json:"selectStore" bson:"selectStore"`
	ServiceType       string             `json:"serviceType" bson:"serviceType"`
	StoreName         string             `json:"storeName" bson:"storeName"`
	StoreAccountName  string             `json:"storeAccountName" bson:"storeAccountName"`
	BankName          string             `json:"bankName" bson:"bankName"`
	AccountNumber     string             `json:"accountNumber" bson:"accountNumber"`
	SortCode          string             `json:"sortCode" bson:"sortCode"`
	FinalAmount       string             `json:"finalAmount" bson:"finalAmount"`
	PaymentStatus     PaymentStatus      `json:"paymentStatus" bson:"paymentStatus"`
	PaymentMethod     PaymentType        `json:"paymentMethod" bson:"paymentMethod"`
	OrderNumber       string             `json:"orderNumber" bson:"orderNumber"`
	ProviderName      string             `json:"providerName" bson:"providerName"`
	UserName          string             `json:"userName" bson:"userName"`
	OrderDate         time.Time          `json:"orderDate" bson:"orderDate"`
	OrderStatus       string             `json:"orderStatus" bson:"orderStatus"`
	OrderAmount       string             `json:"orderAmount" bson:"orderAmount"`
	SiteCommission    string             `json:"siteCommission" bson:"siteCommission"`
	DeliveryCharges   string             `json:"deliveryCharges" bson:"deliveryCharges"`
	OfferAmount       string             `json:"offerAmount" bson:"offerAmount"`
	OutstandingAmount string             `json:"outstandingAmount" bson:"outstandingAmount"`
	StoreAmount       string             `json:"storeAmount" bson:"storeAmount"`
	IsActive          bool               `json:"isActive" bson:"isActive"`
}

StorePaymentReport represents a store payment report.

func GetStorePaymentReportByID

func GetStorePaymentReportByID(ID string) (*StorePaymentReport, error)

GetStorePaymentReportByID gives a store payment report by id.

func GetStorePaymentReports

func GetStorePaymentReports(filter bson.D, limit int, after *string, before *string, first *int, last *int) (storePaymentReports []*StorePaymentReport, totalCount int64, hasPrevious, hasNext bool, err error)

GetStorePaymentReports gives a list of store payment reports.

func (*StorePaymentReport) MarshalBinary

func (storePaymentReport *StorePaymentReport) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*StorePaymentReport) UnmarshalBinary

func (storePaymentReport *StorePaymentReport) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type StorePaymentReportConnection

type StorePaymentReportConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*StorePaymentReportEdge `json:"edges"`
	// A list of nodes.
	Nodes []*StorePaymentReport `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of StorePaymentReport

type StorePaymentReportEdge

type StorePaymentReportEdge struct {
	Cursor string              `json:"cursor"`
	Node   *StorePaymentReport `json:"node"`
}

Paginating the node StorePaymentReport

type StoreReview

type StoreReview struct {
	ID         primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt  time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt  *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt  time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy  primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	Restaurant RestaurantReview   `json:"restaurant" bson:"restaurant"`
	Providers  ProviderReview     `json:"providers" bson:"providers"`
	Users      UserReview         `json:"users" bson:"users"`
	IsActive   bool               `json:"isActive" bson:"isActive"`
}

StoreReview represents a store review.

func CreateStoreReview

func CreateStoreReview(storeReview StoreReview) (*StoreReview, error)

CreateStoreReview creates store review.

func GetStoreReviewByID

func GetStoreReviewByID(ID string) (*StoreReview, error)

GetStoreReviewByID gives a store review by id.

func GetStoreReviews

func GetStoreReviews(filter bson.D, limit int, after *string, before *string, first *int, last *int) (storeReviews []*StoreReview, totalCount int64, hasPrevious, hasNext bool, err error)

GetStoreReviews gives a list of store reviews.

func UpdateStoreReview

func UpdateStoreReview(c *StoreReview) (*StoreReview, error)

UpdateStoreReview updates store reviews.

func (*StoreReview) MarshalBinary

func (storeReview *StoreReview) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*StoreReview) UnmarshalBinary

func (storeReview *StoreReview) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type StoreReviewConnection

type StoreReviewConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*StoreReviewEdge `json:"edges"`
	// A list of nodes.
	Nodes []*StoreReview `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of StoreReview

type StoreReviewEdge

type StoreReviewEdge struct {
	Cursor string       `json:"cursor"`
	Node   *StoreReview `json:"node"`
}

Paginating the node StoreReview

type StoreReviewType

type StoreReviewType string
const (
	StoreReviewTypeAll            StoreReviewType = "ALL"
	StoreReviewTypeOrderName      StoreReviewType = "ORDER_NAME"
	StoreReviewTypeRestaurantName StoreReviewType = "RESTAURANT_NAME"
	StoreReviewTypeUsersName      StoreReviewType = "USERS_NAME"
	StoreReviewTypeRate           StoreReviewType = "RATE"
)

func (StoreReviewType) IsValid

func (e StoreReviewType) IsValid() bool

func (StoreReviewType) MarshalGQL

func (e StoreReviewType) MarshalGQL(w io.Writer)

func (StoreReviewType) String

func (e StoreReviewType) String() string

func (*StoreReviewType) UnmarshalGQL

func (e *StoreReviewType) UnmarshalGQL(v interface{}) error

type StoreSetting

type StoreSetting struct {
	OnlineStoreListDistance           int  `json:"onlineStoreListDistance"`
	AdminCommission                   int  `json:"adminCommission"`
	UserCancellationCharge            int  `json:"userCancellationCharge"`
	EnableRestaurantEmailVerification bool `json:"enableRestaurantEmailVerification"`
	EnableRestaurantPhoneVerification bool `json:"enableRestaurantPhoneVerification"`
}

type StoreSettingInput

type StoreSettingInput struct {
	OnlineStoreListDistance           int  `json:"onlineStoreListDistance"`
	AdminCommission                   int  `json:"adminCommission"`
	UserCancellationCharge            int  `json:"userCancellationCharge"`
	EnableRestaurantEmailVerification bool `json:"enableRestaurantEmailVerification"`
	EnableRestaurantPhoneVerification bool `json:"enableRestaurantPhoneVerification"`
}

type StoreSignUpInput

type StoreSignUpInput struct {
	StoreName          string                   `json:"storeName"`
	ServiceCategory    StoreCategory            `json:"serviceCategory"`
	Email              string                   `json:"email"`
	StoreLocation      []*AddStoreLocationInput `json:"storeLocation"`
	StoreAddress       *AddAddressInput         `json:"storeAddress"`
	ZipCode            string                   `json:"zipCode"`
	Country            string                   `json:"country"`
	State              string                   `json:"state"`
	ContactPersonName  string                   `json:"contactPersonName"`
	MobileNumber       string                   `json:"mobileNumber"`
	Language           string                   `json:"language"`
	BankAccountDetails primitive.ObjectID       `json:"bankAccountDetails"`
}

type StoreStatus

type StoreStatus string
const (
	StoreStatusActive   StoreStatus = "ACTIVE"
	StoreStatusInactive StoreStatus = "INACTIVE"
	StoreStatusDeleted  StoreStatus = "DELETED"
)

func (StoreStatus) IsValid

func (e StoreStatus) IsValid() bool

func (StoreStatus) MarshalGQL

func (e StoreStatus) MarshalGQL(w io.Writer)

func (StoreStatus) String

func (e StoreStatus) String() string

func (*StoreStatus) UnmarshalGQL

func (e *StoreStatus) UnmarshalGQL(v interface{}) error

type StoreType

type StoreType string
const (
	StoreTypeAll          StoreType = "ALL"
	StoreTypeName         StoreType = "NAME"
	StoreTypeEMail        StoreType = "E_MAIL"
	StoreTypeMobileNumber StoreType = "MOBILE_NUMBER"
)

func (StoreType) IsValid

func (e StoreType) IsValid() bool

func (StoreType) MarshalGQL

func (e StoreType) MarshalGQL(w io.Writer)

func (StoreType) String

func (e StoreType) String() string

func (*StoreType) UnmarshalGQL

func (e *StoreType) UnmarshalGQL(v interface{}) error

type StoreVehicleType

type StoreVehicleType struct {
	ID                        primitive.ObjectID       `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt                 time.Time                `json:"createdAt" bson:"createdAt"`
	DeletedAt                 *time.Time               `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt                 time.Time                `json:"updatedAt" bson:"updatedAt"`
	CreatedBy                 primitive.ObjectID       `json:"createdBy" bson:"createdBy"`
	Type                      string                   `json:"type" bson:"type"`
	Location                  StoreVehicleTypeLocation `json:"location" bson:"location"`
	ChargesForCompletedOrders int                      `json:"chargesForCompletedOrders" bson:"chargesForCompletedOrders"`
	ChargesForCancelledOrders int                      `json:"chargesForCancelledOrders" bson:"chargesForCancelledOrders"`
	DeliveryRadius            int                      `json:"deliveryRadius" bson:"deliveryRadius"`
	Order                     int                      `json:"order" bson:"order"`
	IsActive                  bool                     `json:"isActive" bson:"isActive"`
}

StoreVehicleType represents a store vehicle type.

func CreateStoreVehicleType

func CreateStoreVehicleType(storeVehicleType StoreVehicleType) (*StoreVehicleType, error)

CreateStoreVehicleType creates store vehicle type.

func GetStoreVehicleTypeByID

func GetStoreVehicleTypeByID(ID string) (*StoreVehicleType, error)

GetStoreVehicleTypeByID gives a store vehicle type by id.

func GetStoreVehicleTypes

func GetStoreVehicleTypes(filter bson.D, limit int, after *string, before *string, first *int, last *int) (storeVehicleTypes []*StoreVehicleType, totalCount int64, hasPrevious, hasNext bool, err error)

GetStoreVehicleTypes gives a list of store vehicle types.

func UpdateStoreVehicleType

func UpdateStoreVehicleType(s *StoreVehicleType) (*StoreVehicleType, error)

UpdateStoreVehicleType updates store vehicle type.

func (*StoreVehicleType) MarshalBinary

func (storeVehicleType *StoreVehicleType) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*StoreVehicleType) UnmarshalBinary

func (storeVehicleType *StoreVehicleType) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type StoreVehicleTypeConnection

type StoreVehicleTypeConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*StoreVehicleTypeEdge `json:"edges"`
	// A list of nodes.
	Nodes []*StoreVehicleType `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of StoreVehicleType

type StoreVehicleTypeEdge

type StoreVehicleTypeEdge struct {
	Cursor string            `json:"cursor"`
	Node   *StoreVehicleType `json:"node"`
}

Paginating the node StoreVehicleType

type StoreVehicleTypeLocation

type StoreVehicleTypeLocation string
const (
	StoreVehicleTypeLocationAll StoreVehicleTypeLocation = "ALL"
)

func (StoreVehicleTypeLocation) IsValid

func (e StoreVehicleTypeLocation) IsValid() bool

func (StoreVehicleTypeLocation) MarshalGQL

func (e StoreVehicleTypeLocation) MarshalGQL(w io.Writer)

func (StoreVehicleTypeLocation) String

func (e StoreVehicleTypeLocation) String() string

func (*StoreVehicleTypeLocation) UnmarshalGQL

func (e *StoreVehicleTypeLocation) UnmarshalGQL(v interface{}) error

type StoreVehicleTypeSearch

type StoreVehicleTypeSearch string
const (
	StoreVehicleTypeSearchAll                                       StoreVehicleTypeSearch = "ALL"
	StoreVehicleTypeSearchType                                      StoreVehicleTypeSearch = "TYPE"
	StoreVehicleTypeSearchDeliveryChargesPerOrderForCompletedOrders StoreVehicleTypeSearch = "DELIVERY_CHARGES_PER_ORDER_FOR_COMPLETED_ORDERS"
	StoreVehicleTypeSearchDeliveryChargesPerOrderForCancelledOrders StoreVehicleTypeSearch = "DELIVERY_CHARGES_PER_ORDER_FOR_CANCELLED_ORDERS"
	StoreVehicleTypeSearchDeliveryRadius                            StoreVehicleTypeSearch = "DELIVERY_RADIUS"
)

func (StoreVehicleTypeSearch) IsValid

func (e StoreVehicleTypeSearch) IsValid() bool

func (StoreVehicleTypeSearch) MarshalGQL

func (e StoreVehicleTypeSearch) MarshalGQL(w io.Writer)

func (StoreVehicleTypeSearch) String

func (e StoreVehicleTypeSearch) String() string

func (*StoreVehicleTypeSearch) UnmarshalGQL

func (e *StoreVehicleTypeSearch) UnmarshalGQL(v interface{}) error

type StoreVehicleTypeStatus

type StoreVehicleTypeStatus string
const (
	StoreVehicleTypeStatusActive   StoreVehicleTypeStatus = "ACTIVE"
	StoreVehicleTypeStatusInactive StoreVehicleTypeStatus = "INACTIVE"
	StoreVehicleTypeStatusDelete   StoreVehicleTypeStatus = "DELETE"
)

func (StoreVehicleTypeStatus) IsValid

func (e StoreVehicleTypeStatus) IsValid() bool

func (StoreVehicleTypeStatus) MarshalGQL

func (e StoreVehicleTypeStatus) MarshalGQL(w io.Writer)

func (StoreVehicleTypeStatus) String

func (e StoreVehicleTypeStatus) String() string

func (*StoreVehicleTypeStatus) UnmarshalGQL

func (e *StoreVehicleTypeStatus) UnmarshalGQL(v interface{}) error

type SubscriberPayload

type SubscriberPayload struct {
	ID        *primitive.ObjectID         `json:"id"`
	Name      *string                     `json:"name"`
	Email     *string                     `json:"email"`
	Status    *NewsletterSubscriberStatus `json:"status"`
	Date      *time.Time                  `json:"date"`
	IPAddress *string                     `json:"ipAddress"`
}

type Subscription

type Subscription struct {
	ID                    primitive.ObjectID             `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt             time.Time                      `json:"createdAt" bson:"createdAt"`
	DeletedAt             *time.Time                     `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt             time.Time                      `json:"updatedAt" bson:"updatedAt"`
	CreatedBy             primitive.ObjectID             `json:"createdBy" bson:"createdBy"`
	ApplicationFeePercent float64                        `json:"applicationFeePercent"`
	Billing               SubscriptionBilling            `json:"billing"`
	BillingCycleAnchor    int64                          `json:"billingCycleAnchor"`
	BillingThresholds     *SubscriptionBillingThresholds `json:"billingThresholds"`
	CancelAt              int64                          `json:"cancelAt"`
	CancelAtPeriodEnd     bool                           `json:"cancelAtPeriodEnd"`
	CanceledAt            time.Time                      `json:"canceledAt"`
	Created               int64                          `json:"created"`
	CurrentPeriodEnd      int64                          `json:"currentPeriodEnd"`
	CurrentPeriodStart    int64                          `json:"currentPeriodStart"`
	Customer              *Customer                      `json:"customer"`
	DaysUntilDue          int64                          `json:"daysUntilDue"`
	DefaultPaymentMethod  *PaymentMethod                 `json:"defaultPaymentMethod"`
	DefaultSource         *PaymentSource                 `json:"defaultSource"`
	DefaultTaxRates       []*TaxRate                     `json:"defaultTaxRates"`
	Discount              *Discount                      `json:"discount"`
	EndedAt               int64                          `json:"endedAt"`
	Items                 *SubscriptionItem              `json:"items"`
	LatestInvoice         *Invoice                       `json:"latestInvoice"`
	Livemode              bool                           `json:"livemode"`
	Metadata              map[string]string              `json:"metadata"`
	Object                string                         `json:"object"`
	//OnBehalfOf            *Account                       `json:"onBehalfOf"`
	Plan      *SubscriptionPlan  `json:"plan"`
	Quantity  int64              `json:"quantity"`
	StartDate int64              `json:"startDate"`
	Status    SubscriptionStatus `json:"status"`
	//TransferData          *SubscriptionTransferData      `json:"transferData"`
	TrialEnd   time.Time `json:"trialEnd"`
	TrialStart time.Time `json:"trialStart"`
}

func CreateSubscription

func CreateSubscription(subscription Subscription) (*Subscription, error)

CreateSubscription creates new subscriptions.

func GetSubscriptionByID

func GetSubscriptionByID(ID string) *Subscription

GetSubscriptionByID gives requested subscription by id.

func GetSubscriptions

func GetSubscriptions(filter bson.D, limit int, after *string, before *string, first *int, last *int) (subscriptions []*Subscription, totalCount int64, hasPrevious, hasNext bool, err error)

GetSubscriptions gives a list of subscriptions.

func UpdateSubscription

func UpdateSubscription(p *Subscription) (*Subscription, error)

UpdateSubscription updates the subscription.

func (*Subscription) MarshalBinary

func (subscription *Subscription) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*Subscription) UnmarshalBinary

func (subscription *Subscription) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type SubscriptionBilling

type SubscriptionBilling string

SubscriptionBilling is the type of billing method for this subscription's invoices.

const (
	SubscriptionBillingChargeAutomatically SubscriptionBilling = "charge_automatically"
	SubscriptionBillingSendInvoice         SubscriptionBilling = "send_invoice"
)

List of values that SubscriptionBilling can take.

type SubscriptionBillingThresholds

type SubscriptionBillingThresholds struct {
	AmountGTE               int64 `json:"amountGte"`
	ResetBillingCycleAnchor bool  `json:"resetBillingCycleAnchor"`
}

SubscriptionBillingThresholds is a structure representing the billing thresholds for a subscription.

type SubscriptionItem

type SubscriptionItem struct {
	BillingThresholds SubscriptionItemBillingThresholds `json:"billingThresholds"`
	Created           int64                             `json:"created"`
	Deleted           bool                              `json:"deleted"`
	ID                string                            `json:"id"`
	Metadata          map[string]string                 `json:"metadata"`
	Plan              *SubscriptionPlan                 `json:"plan"`
	Quantity          int64                             `json:"quantity"`
	Subscription      string                            `json:"subscription"`
	TaxRates          []*TaxRate                        `json:"taxRates"`
}

SubscriptionItem is the resource representing a Stripe subscription item. For more details see https://stripe.com/docs/api#subscription_items.

type SubscriptionItemBillingThresholds

type SubscriptionItemBillingThresholds struct {
	UsageGTE int64 `json:"usageGte"`
}

SubscriptionItemBillingThresholds is a structure representing the billing thresholds for a subscription item.

type SubscriptionPlan

type SubscriptionPlan struct {
	ID              primitive.ObjectID            `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt       time.Time                     `json:"createdAt" bson:"createdAt"`
	DeletedAt       *time.Time                    `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt       time.Time                     `json:"updatedAt" bson:"updatedAt"`
	CreatedBy       primitive.ObjectID            `json:"createdBy" bson:"createdBy"`
	Active          bool                          `json:"active"`
	AggregateUsage  string                        `json:"aggregateUsage"`
	Amount          int64                         `json:"amount"`
	BillingScheme   SubscriptionPlanBillingScheme `json:"billingScheme"`
	Created         int64                         `json:"created"`
	Currency        Currency                      `json:"currency"`
	Deleted         bool                          `json:"deleted"`
	Interval        SubscriptionPlanInterval      `json:"interval"`
	IntervalCount   int64                         `json:"intervalCount"`
	Livemode        bool                          `json:"livemode"`
	Metadata        map[string]string             `json:"metadata"`
	Nickname        string                        `json:"nickname"`
	Product         *Product                      `json:"product"`
	Tiers           []*SubscriptionPlanTier       `json:"tiers"`
	TiersMode       string                        `json:"tiersMode"`
	TransformUsage  *PlanTransformUsage           `json:"transformUsage"`
	TrialPeriodDays int64                         `json:"trialPeriodDays"`
	UsageType       SubscriptionPlanUsageType     `json:"usageType"`
}

type SubscriptionPlanAggregateUsage

type SubscriptionPlanAggregateUsage string

PlanAggregateUsage is the list of allowed values for a plan's aggregate usage.

const (
	SubscriptionPlanAggregateUsageLastDuringPeriod SubscriptionPlanAggregateUsage = "lastDuringPeriod"
	SubscriptionPlanAggregateUsageLastEver         SubscriptionPlanAggregateUsage = "lastEver"
	SubscriptionPlanAggregateUsageMax              SubscriptionPlanAggregateUsage = "max"
	SubscriptionPlanAggregateUsageSum              SubscriptionPlanAggregateUsage = "sum"
)

List of values that PlanAggregateUsage can take.

type SubscriptionPlanBillingScheme

type SubscriptionPlanBillingScheme string

PlanBillingScheme is the list of allowed values for a plan's billing scheme.

const (
	SubscriptionPlanBillingSchemePerUnit SubscriptionPlanBillingScheme = "perUnit"
	SubscriptionPlanBillingSchemeTiered  SubscriptionPlanBillingScheme = "tiered"
)

List of values that PlanBillingScheme can take.

type SubscriptionPlanInterval

type SubscriptionPlanInterval string

PlanInterval is the list of allowed values for a plan's interval.

const (
	SubscriptionPlanIntervalDay   SubscriptionPlanInterval = "day"
	SubscriptionPlanIntervalWeek  SubscriptionPlanInterval = "week"
	SubscriptionPlanIntervalMonth SubscriptionPlanInterval = "month"
	SubscriptionPlanIntervalYear  SubscriptionPlanInterval = "year"
)

List of values that PlanInterval can take.

type SubscriptionPlanTier

type SubscriptionPlanTier struct {
	FlatAmount int64 `json:"flat_amount"`
	UnitAmount int64 `json:"unit_amount"`
	UpTo       int64 `json:"up_to"`
}

PlanTier configures tiered pricing

type SubscriptionPlanTiersMode

type SubscriptionPlanTiersMode string

PlanTiersMode is the list of allowed values for a plan's tiers mode.

const (
	SubscriptionPlanTiersModeGraduated SubscriptionPlanTiersMode = "graduated"
	SubscriptionPlanTiersModeVolume    SubscriptionPlanTiersMode = "volume"
)

List of values that PlanTiersMode can take.

type SubscriptionPlanTransformUsageRound

type SubscriptionPlanTransformUsageRound string

PlanTransformUsageRound is the list of allowed values for a plan's transform usage round logic.

const (
	SubscriptionPlanTransformUsageRoundDown SubscriptionPlanTransformUsageRound = "down"
	SubscriptionPlanTransformUsageRoundUp   SubscriptionPlanTransformUsageRound = "up"
)

List of values that PlanTransformUsageRound can take.

type SubscriptionPlanUsageType

type SubscriptionPlanUsageType string

PlanUsageType is the list of allowed values for a plan's usage type.

const (
	SubscriptionPlanUsageTypeLicensed SubscriptionPlanUsageType = "licensed"
	SubscriptionPlanUsageTypeMetered  SubscriptionPlanUsageType = "metered"
)

List of values that PlanUsageType can take.

type SubscriptionStatus

type SubscriptionStatus string

SubscriptionStatus is the list of allowed values for the subscription's status.

const (
	SubscriptionStatusActive            SubscriptionStatus = "active"
	SubscriptionStatusAll               SubscriptionStatus = "all"
	SubscriptionStatusCanceled          SubscriptionStatus = "canceled"
	SubscriptionStatusIncomplete        SubscriptionStatus = "incomplete"
	SubscriptionStatusIncompleteExpired SubscriptionStatus = "incomplete_expired"
	SubscriptionStatusPastDue           SubscriptionStatus = "past_due"
	SubscriptionStatusTrialing          SubscriptionStatus = "trialing"
	SubscriptionStatusUnpaid            SubscriptionStatus = "unpaid"
)

List of values that SubscriptionStatus can take.

type SupportAgent

type SupportAgent struct {
	ID          primitive.ObjectID   `json:"id"`
	User        string               `json:"user"`
	CreatedAt   time.Time            `json:"createdAt"`
	UpdatedAt   time.Time            `json:"updatedAt"`
	IsEnabled   bool                 `json:"isEnabled"`
	Departments []*SupportDepartment `json:"departments"`
	Skills      []*SupportSkills     `json:"skills"`
}

type SupportDepartment

type SupportDepartment struct {
	ID          primitive.ObjectID `json:"id"`
	Name        string             `json:"name"`
	Description string             `json:"description"`
	CreatedAt   time.Time          `json:"createdAt"`
	UpdatedAt   time.Time          `json:"updatedAt"`
	IsEnabled   bool               `json:"isEnabled"`
}

type SupportSkills

type SupportSkills struct {
	ID   primitive.ObjectID `json:"id"`
	Name string             `json:"name"`
}

type TaxLines

type TaxLines struct {
	ID               int      `json:"id"`
	RateCode         string   `json:"rateCode"`
	RateID           int      `json:"rateID"`
	Label            string   `json:"label"`
	Compound         bool     `json:"compound"`
	TaxTotal         string   `json:"taxTotal"`
	ShippingTaxTotal string   `json:"shippingTaxTotal"`
	MetaData         []string `json:"metaData"`
}

type TaxRate

type TaxRate struct {
	Active       bool               `json:"active"`
	Description  string             `json:"description"`
	DisplayName  string             `json:"display_name"`
	ID           primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt    time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt    *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt    time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy    primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	Inclusive    bool               `json:"inclusive"`
	Jurisdiction string             `json:"jurisdiction"`
	Livemode     bool               `json:"livemode"`
	Metadata     map[string]string  `json:"metadata"`
	Percentage   float64            `json:"percentage"`
}

TaxRate is the resource representing a Stripe tax rate. For more details see https://stripe.com/docs/api/tax_rates/object.

type Taxes

type Taxes struct {
	ID       int    `json:"id"`
	Total    string `json:"total"`
	Subtotal string `json:"subtotal"`
}

type TokenType

type TokenType string
const (
	ChangePassword  TokenType = "ChangePasswordToken"
	RequestPassword TokenType = "RequestPasswordToken"
)

type TransactionType

type TransactionType string
const (
	TransactionTypeDebit  TransactionType = "DEBIT"
	TransactionTypeCredit TransactionType = "CREDIT"
)

func (TransactionType) IsValid

func (e TransactionType) IsValid() bool

func (TransactionType) MarshalGQL

func (e TransactionType) MarshalGQL(w io.Writer)

func (TransactionType) String

func (e TransactionType) String() string

func (*TransactionType) UnmarshalGQL

func (e *TransactionType) UnmarshalGQL(v interface{}) error

type Translation

type Translation struct {
	ID           primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt    time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt    *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt    time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy    string             `json:"createdBy" bson:"createdBy"`
	Key          string             `json:"key" bson:"key"`
	Translations map[string]string  `json:"translations" bson:"translations"`
}

Translation represents a translation.

type UnitPrice

type UnitPrice struct {
	Amount      int    `json:"amount"`
	Currency    string `json:"currency"`
	IncludesTax bool   `json:"includesTax"`
}

type UpdateAddressInput

type UpdateAddressInput struct {
	ID                 primitive.ObjectID `json:"id"`
	Name               string             `json:"name"`
	FirstName          string             `json:"firstName"`
	LastName           string             `json:"lastName"`
	CompanyName        *string            `json:"companyName"`
	AddressDescription string             `json:"addressDescription"`
	City               string             `json:"city"`
	State              string             `json:"state"`
	Country            string             `json:"country"`
	PostCode           int                `json:"postCode"`
	Latitude           float64            `json:"latitude"`
	Longitute          float64            `json:"longitute"`
}

type UpdateAirportSurchargeInput

type UpdateAirportSurchargeInput struct {
	ID               primitive.ObjectID `json:"id"`
	AirportLocation  string             `json:"airportLocation"`
	PickUpSurcharge  string             `json:"pickUpSurcharge"`
	DropOffSurcharge string             `json:"dropOffSurcharge"`
	VehicleType      string             `json:"vehicleType"`
	IsActive         bool               `json:"isActive"`
}

type UpdateAppVersionInput

type UpdateAppVersionInput struct {
	ID             primitive.ObjectID `json:"id"`
	MinimumVersion string             `json:"minimumVersion"`
	LatestVersion  string             `json:"latestVersion"`
	DownloadURL    string             `json:"downloadUrl"`
	Channel        string             `json:"channel"`
}

type UpdateBankDetailsInput

type UpdateBankDetailsInput struct {
	ID                 primitive.ObjectID `json:"id"`
	Email              string             `json:"email"`
	AccountHolderName  string             `json:"accountHolderName"`
	AccountNumber      int                `json:"accountNumber"`
	BankName           string             `json:"bankName"`
	BankLocation       string             `json:"bankLocation"`
	BankCountry        string             `json:"bankCountry"`
	SwiftCode          string             `json:"swiftCode"`
	IfscCode           string             `json:"ifscCode"`
	Metadata           *string            `json:"metadata"`
	Country            string             `json:"country"`
	Currency           string             `json:"currency"`
	DefaultForCurrency bool               `json:"defaultForCurrency"`
	Fingerprint        string             `json:"fingerprint"`
	RoutingNumber      string             `json:"routingNumber"`
}

type UpdateBannerInput

type UpdateBannerInput struct {
	ID              primitive.ObjectID `json:"id"`
	BannerName      string             `json:"bannerName"`
	BannerImage     string             `json:"bannerImage"`
	DisplayOrder    int                `json:"displayOrder"`
	RedirectURL     string             `json:"redirectURL"`
	TimePeriod      string             `json:"timePeriod"`
	AddedDate       time.Time          `json:"addedDate"`
	TotalImpression string             `json:"totalImpression"`
	UsedImpression  string             `json:"usedImpression"`
	Validity        Validity           `json:"validity"`
	ClickCount      ClickCount         `json:"clickCount"`
	IsActive        bool               `json:"isActive"`
}

type UpdateBusinessTripReasonInput

type UpdateBusinessTripReasonInput struct {
	ID               primitive.ObjectID `json:"id"`
	TripReason       string             `json:"tripReason"`
	ProfileShortName string             `json:"profileShortName"`
	OrganizationType string             `json:"organizationType"`
	ProfileTitle     string             `json:"profileTitle"`
	TitleDescription string             `json:"titleDescription"`
	Reason           string             `json:"reason"`
	IsActive         bool               `json:"isActive"`
}

type UpdateCancelReasonInput

type UpdateCancelReasonInput struct {
	ID          string `json:"id"`
	Reason      string `json:"reason"`
	ServiceType string `json:"serviceType"`
	Order       string `json:"order"`
	IsActive    bool   `json:"isActive"`
}

type UpdateCityInput

type UpdateCityInput struct {
	ID          primitive.ObjectID `json:"id"`
	CountryName string             `json:"countryName"`
	CountryCode string             `json:"countryCode"`
	StateName   string             `json:"stateName"`
	StateCode   string             `json:"stateCode"`
	CityName    string             `json:"cityName"`
	IsActive    bool               `json:"isActive"`
}

type UpdateCountryInput

type UpdateCountryInput struct {
	ID              primitive.ObjectID `json:"id"`
	CountryName     string             `json:"countryName"`
	Code            string             `json:"code"`
	PhoneCode       string             `json:"phoneCode"`
	DistanceUnit    DistanceUnits      `json:"distanceUnit"`
	EmergencyNumber string             `json:"emergencyNumber"`
	Tax             string             `json:"tax"`
	IsActive        bool               `json:"isActive"`
}

type UpdateCouponInput

type UpdateCouponInput struct {
	ID             primitive.ObjectID `json:"id"`
	Code           string             `json:"code"`
	Description    *string            `json:"description"`
	DiscountAmount float64            `json:"discountAmount"`
	DiscountType   string             `json:"discountType"`
	Validity       string             `json:"validity"`
	ValidityStart  time.Time          `json:"validityStart"`
	ValidityExpire time.Time          `json:"validityExpire"`
	UsageLimit     int                `json:"usageLimit"`
	Type           CouponType         `json:"type"`
	UsedLimit      int                `json:"usedLimit"`
	ServiceType    CouponSystemType   `json:"serviceType"`
	IsActive       bool               `json:"isActive"`
}

type UpdateCurrencyInput

type UpdateCurrencyInput struct {
	ID              primitive.ObjectID `json:"id"`
	Country         string             `json:"country"`
	Name            string             `json:"name"`
	CurrencyCode    string             `json:"currencyCode"`
	Ratio           string             `json:"ratio"`
	ThresholdAmount string             `json:"thresholdAmount"`
	Symbol          string             `json:"symbol"`
	IsDefault       bool               `json:"isDefault"`
}

type UpdateCustomerInput

type UpdateCustomerInput struct {
	ID               primitive.ObjectID `json:"id"`
	Email            string             `json:"email"`
	FirstName        string             `json:"firstName"`
	LastName         string             `json:"lastName"`
	Role             string             `json:"role"`
	Username         string             `json:"username"`
	IsPayingCustomer bool               `json:"isPayingCustomer"`
	AvatarURL        string             `json:"avatarURL"`
	Shipping         *ShippingInput     `json:"shipping"`
	Billing          *BillingInput      `json:"billing"`
}

type UpdateDeliveryChargeInput

type UpdateDeliveryChargeInput struct {
	ID                              primitive.ObjectID `json:"id"`
	LocationName                    string             `json:"locationName"`
	OrderPrice                      int                `json:"orderPrice"`
	OrderDeliveryChargesAboveAmount int                `json:"orderDeliveryChargesAboveAmount"`
	OrderDeliveryChargesBelowAmount int                `json:"orderDeliveryChargesBelowAmount"`
	FreeOrderDeliveryCharges        int                `json:"freeOrderDeliveryCharges"`
	FreeDeliveryRadius              int                `json:"freeDeliveryRadius"`
	OrderTotal                      int                `json:"orderTotal"`
	IsActive                        bool               `json:"isActive"`
}

type UpdateDeliveryChargesUtilityInput

type UpdateDeliveryChargesUtilityInput struct {
	ID                              primitive.ObjectID `json:"id"`
	Location                        string             `json:"location"`
	OrderPrice                      int                `json:"orderPrice"`
	OrderDeliveryChargesAboveAmout  int                `json:"orderDeliveryChargesAboveAmout"`
	OrderDeliveryChargesBelowAmount int                `json:"orderDeliveryChargesBelowAmount"`
	FreeDeliveryForOrderAmountAbove int                `json:"freeDeliveryForOrderAmountAbove"`
	FreeDeliveryRadius              int                `json:"freeDeliveryRadius"`
}

type UpdateDeliveryVehicleTypeInput

type UpdateDeliveryVehicleTypeInput struct {
	ID                              primitive.ObjectID `json:"id"`
	VehicleType                     string             `json:"vehicleType"`
	Location                        string             `json:"location"`
	DeliveryChargeForCompletedOrder float64            `json:"deliveryChargeForCompletedOrder"`
	DeliveryChargeForCancelledOrder float64            `json:"deliveryChargeForCancelledOrder"`
	DeliveryRadius                  float64            `json:"deliveryRadius"`
	Order                           int                `json:"order"`
	IsActive                        bool               `json:"isActive"`
}

type UpdateDocumentInput

type UpdateDocumentInput struct {
	ID           primitive.ObjectID   `json:"id"`
	ExpiryDate   string               `json:"expiryDate"`
	Name         string               `json:"name"`
	URL          string               `json:"url"`
	BelongsTo    string               `json:"belongsTo"`
	UploaderType DocumentUploaderType `json:"uploaderType"`
	IsActive     bool                 `json:"isActive"`
}

type UpdateEmailTemplateInput

type UpdateEmailTemplateInput struct {
	ID         primitive.ObjectID `json:"id"`
	Subject    string             `json:"subject"`
	Purpose    string             `json:"purpose"`
	From       string             `json:"from"`
	TextBody   string             `json:"textBody"`
	HTMLBody   string             `json:"htmlBody"`
	Language   string             `json:"language"`
	TemplateID string             `json:"templateId"`
}

type UpdateEmergencyContactInput

type UpdateEmergencyContactInput struct {
	ID       primitive.ObjectID `json:"id"`
	Name     string             `json:"name"`
	MobileNo int                `json:"mobileNo"`
	EmailID  string             `json:"emailID"`
}

type UpdateEnterpriseAccountInput

type UpdateEnterpriseAccountInput struct {
	ID               primitive.ObjectID `json:"id"`
	OrganizationName string             `json:"organizationName"`
	OrganizationType string             `json:"organizationType"`
	PaymentMethod    string             `json:"paymentMethod"`
	Email            string             `json:"email"`
	Country          string             `json:"country"`
	State            string             `json:"state"`
	City             string             `json:"city"`
	Address          *AddAddressInput   `json:"address"`
	ZipCode          string             `json:"zipCode"`
	Language         string             `json:"language"`
	PaymentBy        PaymentBy          `json:"paymentBy"`
	Phone            string             `json:"phone"`
	IsActive         bool               `json:"isActive"`
}

type UpdateFAQCategoryInput

type UpdateFAQCategoryInput struct {
	ID           primitive.ObjectID `json:"id"`
	IsActive     bool               `json:"isActive"`
	DisplayOrder int                `json:"displayOrder"`
	Label        string             `json:"label"`
}

type UpdateFAQInput

type UpdateFAQInput struct {
	ID           primitive.ObjectID `json:"id"`
	Category     string             `json:"category"`
	IsActive     bool               `json:"isActive"`
	DisplayOrder int                `json:"displayOrder"`
	Question     string             `json:"question"`
	Answer       string             `json:"answer"`
}

type UpdateFoodDeliveryLabelInput

type UpdateFoodDeliveryLabelInput struct {
	ID                     primitive.ObjectID `json:"id"`
	Code                   string             `json:"code"`
	ValueInEnglishLanguage string             `json:"valueInEnglishLanguage"`
	LanguageLabel          string             `json:"languageLabel"`
	IsActive               bool               `json:"isActive"`
}

type UpdateGeneralLabelInput

type UpdateGeneralLabelInput struct {
	ID                     primitive.ObjectID `json:"id"`
	Code                   string             `json:"code"`
	ValueInEnglishLanguage string             `json:"valueInEnglishLanguage"`
	LanguageLabel          string             `json:"languageLabel"`
	IsActive               bool               `json:"isActive"`
}

type UpdateGeoFenceLocationInput

type UpdateGeoFenceLocationInput struct {
	ID           primitive.ObjectID `json:"id"`
	Name         string             `json:"name"`
	Country      string             `json:"country"`
	LocationFor  string             `json:"locationFor"`
	LocationType string             `json:"LocationType"`
	IsActive     bool               `json:"IsActive"`
	GeoJSON      string             `json:"GeoJSON"`
}

type UpdateGeoFenceRestrictedAreaInput

type UpdateGeoFenceRestrictedAreaInput struct {
	ID              primitive.ObjectID `json:"id"`
	Address         string             `json:"address"`
	Area            string             `json:"area"`
	IsActive        bool               `json:"isActive"`
	GeoLocationArea string             `json:"geoLocationArea"`
	RestrictArea    RestrictArea       `json:"restrictArea"`
	RestrictType    RestrictType       `json:"restrictType"`
}

type UpdateGroceryDeliveryLabelInput

type UpdateGroceryDeliveryLabelInput struct {
	ID                     primitive.ObjectID `json:"id"`
	Code                   string             `json:"code"`
	ValueInEnglishLanguage string             `json:"valueInEnglishLanguage"`
	LanguageLabel          string             `json:"languageLabel"`
	IsActive               bool               `json:"isActive"`
}

type UpdateHelpCategoryInput

type UpdateHelpCategoryInput struct {
	ID          primitive.ObjectID `json:"id"`
	IsActive    bool               `json:"isActive"`
	Order       string             `json:"order"`
	Title       string             `json:"title"`
	CategoryFor HelpCategoryFor    `json:"categoryFor"`
}

type UpdateHelpDetailInput

type UpdateHelpDetailInput struct {
	ID       primitive.ObjectID `json:"id"`
	Category HelpDetailCategory `json:"category"`
	IsActive bool               `json:"isActive"`
	Order    string             `json:"order"`
	Question string             `json:"question"`
	Answer   string             `json:"answer"`
}

type UpdateLocationWiseFareInput

type UpdateLocationWiseFareInput struct {
	ID                  primitive.ObjectID `json:"id"`
	SourceLocation      string             `json:"sourceLocation"`
	DestinationLocation string             `json:"destinationLocation"`
	FlatFare            string             `json:"flatFare"`
	VehicleType         string             `json:"vehicleType"`
	IsActive            bool               `json:"isActive"`
}

type UpdateManageDocumentInput

type UpdateManageDocumentInput struct {
	ID           primitive.ObjectID `json:"id"`
	DocumentFor  DocumentFor        `json:"documentFor"`
	Country      string             `json:"country"`
	ExpireOnDate bool               `json:"expireOnDate"`
	DocumentName string             `json:"documentName"`
	IsActive     bool               `json:"isActive"`
}

type UpdateMarketSettingsInput

type UpdateMarketSettingsInput struct {
	ID           primitive.ObjectID        `json:"id"`
	General      *GeneralSettingInput      `json:"general"`
	Email        *EmailSettingInput        `json:"email"`
	Appearance   *AppearanceSettingInput   `json:"appearance"`
	Sms          *SMSSettingInput          `json:"sms"`
	SocialMedia  *SocialMediaSettingInput  `json:"socialMedia"`
	App          *AppSettingInput          `json:"app"`
	Installation *InstallationSettingInput `json:"installation"`
	Store        *StoreSettingInput        `json:"store"`
	Payment      *PaymentSettingInput      `json:"payment"`
}

type UpdateOAuthApplicationInput

type UpdateOAuthApplicationInput struct {
	ID                 primitive.ObjectID `json:"id"`
	AppName            string             `json:"appName"`
	PublisherName      string             `json:"publisherName"`
	ClientDescription  string             `json:"clientDescription"`
	RedirectURL        string             `json:"redirectURL"`
	Scopes             []string           `json:"scopes"`
	Developers         []string           `json:"developers"`
	DevelopmentUsers   []string           `json:"developmentUsers"`
	AppIcon            string             `json:"appIcon"`
	AllowImplicitGrant AllowImplicitGrant `json:"allowImplicitGrant"`
	WhiteListedDomains []*string          `json:"whiteListedDomains"`
	TermsOfServiceURL  string             `json:"termsOfServiceURL"`
	PrivacyURL         string             `json:"privacyURL"`
	Website            string             `json:"website"`
	ContactEmail       string             `json:"contactEmail"`
}

type UpdateOrderInput

type UpdateOrderInput struct {
	ID                 primitive.ObjectID `json:"id"`
	OrderItems         *OrderItemInput    `json:"orderItems"`
	ServiceType        string             `json:"serviceType"`
	Coupon             string             `json:"coupon"`
	ProviderID         primitive.ObjectID `json:"providerID"`
	Currency           *CurrencyInput     `json:"currency"`
	DiscountAmount     float64            `json:"discountAmount"`
	DiscountTax        float64            `json:"discountTax"`
	ShippingTotal      float64            `json:"shippingTotal"`
	ShippingTax        float64            `json:"shippingTax"`
	CartTax            float64            `json:"cartTax"`
	OrderTotalAmount   float64            `json:"orderTotalAmount"`
	TotalTax           float64            `json:"totalTax"`
	PricesIncludeTax   bool               `json:"pricesIncludeTax"`
	Billing            *BillingInput      `json:"billing"`
	Shipping           *ShippingInput     `json:"shipping"`
	PaymentMethod      PaymentMethodType  `json:"paymentMethod"`
	PaymentMethodTitle string             `json:"paymentMethodTitle"`
}

type UpdateOrderNoteInput

type UpdateOrderNoteInput struct {
	ID           primitive.ObjectID `json:"id"`
	Author       string             `json:"author"`
	Note         string             `json:"note"`
	CustomerNote bool               `json:"customerNote"`
	IsActive     bool               `json:"isActive"`
}

type UpdateOrderStatusUtilityInput

type UpdateOrderStatusUtilityInput struct {
	ID                primitive.ObjectID `json:"id"`
	StatusTitle       string             `json:"statusTitle"`
	StatusDescription string             `json:"statusDescription"`
	IsActive          bool               `json:"isActive"`
}

type UpdatePackageTypeInput

type UpdatePackageTypeInput struct {
	ID          primitive.ObjectID `json:"id"`
	PackageType string             `json:"packageType"`
	Language    string             `json:"language"`
	IsActive    bool               `json:"isActive"`
}

type UpdatePageInput

type UpdatePageInput struct {
	ID          primitive.ObjectID `json:"id"`
	Name        string             `json:"name"`
	Title       string             `json:"title"`
	Body        string             `json:"body"`
	Description string             `json:"description"`
	Language    string             `json:"language"`
	IsActive    *bool              `json:"isActive"`
}

type UpdateProductAttributeInput

type UpdateProductAttributeInput struct {
	ID          primitive.ObjectID `json:"id"`
	Name        string             `json:"name"`
	Slug        string             `json:"slug"`
	Type        string             `json:"type"`
	OrderBy     string             `json:"orderBy"`
	HasArchives bool               `json:"hasArchives"`
	Position    int                `json:"position"`
	Visible     bool               `json:"visible"`
	Variation   bool               `json:"variation"`
	Option      []string           `json:"option"`
}

type UpdateProductAttributeTermInput

type UpdateProductAttributeTermInput struct {
	ID          primitive.ObjectID `json:"id"`
	Name        string             `json:"name"`
	Slug        string             `json:"slug"`
	Description string             `json:"description"`
	MenuOrder   int                `json:"menuOrder"`
	Count       int                `json:"count"`
}

type UpdateProductBrandInput

type UpdateProductBrandInput struct {
	ID            primitive.ObjectID `json:"id"`
	Type          string             `json:"type"`
	IsActive      bool               `json:"isActive"`
	Name          string             `json:"name"`
	Slug          string             `json:"slug"`
	Description   string             `json:"description"`
	Relationships []string           `json:"relationships"`
}

type UpdateProductCategoryInput

type UpdateProductCategoryInput struct {
	ID           primitive.ObjectID    `json:"id"`
	Name         string                `json:"name"`
	Slug         string                `json:"slug"`
	Parent       int                   `json:"parent"`
	Store        string                `json:"store"`
	Description  string                `json:"description"`
	DisplayOrder int                   `json:"displayOrder"`
	Display      string                `json:"display"`
	ServiceType  StoreCategory         `json:"serviceType"`
	MenuCategory string                `json:"menuCategory"`
	MenuOrder    int                   `json:"menuOrder"`
	Count        int                   `json:"count"`
	Image        *AddProductImageInput `json:"image"`
}

type UpdateProductCollectionInput

type UpdateProductCollectionInput struct {
	ID            primitive.ObjectID `json:"id"`
	Type          string             `json:"type"`
	IsActive      bool               `json:"isActive"`
	Name          string             `json:"name"`
	Description   string             `json:"description"`
	Slug          string             `json:"slug"`
	Relationships []string           `json:"relationships"`
}

type UpdateProductDownloadInput

type UpdateProductDownloadInput struct {
	ID   primitive.ObjectID `json:"id"`
	Name string             `json:"name"`
	File string             `json:"file"`
}

type UpdateProductImageInput

type UpdateProductImageInput struct {
	ID   primitive.ObjectID `json:"id"`
	Src  string             `json:"src"`
	Name string             `json:"name"`
	Alt  string             `json:"alt"`
}

type UpdateProductInput

type UpdateProductInput struct {
	ID                primitive.ObjectID             `json:"id"`
	Name              string                         `json:"name"`
	MenuItem          string                         `json:"menuItem"`
	Slug              string                         `json:"slug"`
	Permalink         string                         `json:"permalink"`
	Type              string                         `json:"type"`
	Status            ProductStatus                  `json:"status"`
	IsFeatured        bool                           `json:"isFeatured"`
	ItemTagName       string                         `json:"itemTagName"`
	CatalogVisibility string                         `json:"catalogVisibility"`
	Description       string                         `json:"description"`
	ShortDescription  string                         `json:"shortDescription"`
	Sku               string                         `json:"sku"`
	Price             float64                        `json:"price"`
	RegularPrice      float64                        `json:"regularPrice"`
	ServiceType       StoreCategory                  `json:"serviceType"`
	SalePrice         float64                        `json:"salePrice"`
	DateOnSaleFrom    time.Time                      `json:"dateOnSaleFrom"`
	DateOnSaleTo      time.Time                      `json:"dateOnSaleTo"`
	PriceHTML         string                         `json:"priceHtml"`
	OnSale            bool                           `json:"onSale"`
	Purchasable       bool                           `json:"purchasable"`
	TotalSales        int                            `json:"totalSales"`
	Store             string                         `json:"Store"`
	Virtual           bool                           `json:"virtual"`
	DisplayOrder      int                            `json:"displayOrder"`
	Downloadable      bool                           `json:"downloadable"`
	Downloads         []*AddProductDownloadInput     `json:"downloads"`
	DownloadLimit     int                            `json:"downloadLimit"`
	DownloadExpiry    int                            `json:"downloadExpiry"`
	ExternalURL       string                         `json:"externalUrl"`
	ButtonText        string                         `json:"buttonText"`
	TaxStatus         string                         `json:"taxStatus"`
	TaxClass          string                         `json:"taxClass"`
	ManageStock       bool                           `json:"manageStock"`
	StockQuantity     int                            `json:"stockQuantity"`
	StockStatus       string                         `json:"stockStatus"`
	BackOrders        string                         `json:"backOrders"`
	BackOrdersAllowed bool                           `json:"backOrdersAllowed"`
	BackOrdered       bool                           `json:"backOrdered"`
	SoldIndividually  bool                           `json:"soldIndividually"`
	Weight            float64                        `json:"weight"`
	ShippingRequired  bool                           `json:"shippingRequired"`
	ShippingTaxable   bool                           `json:"shippingTaxable"`
	ShippingClass     string                         `json:"shippingClass"`
	ShippingClassID   string                         `json:"shippingClassId"`
	ReviewsAllowed    bool                           `json:"reviewsAllowed"`
	AverageRating     string                         `json:"averageRating"`
	RatingCount       int                            `json:"ratingCount"`
	ParentID          string                         `json:"parentId"`
	PurchaseNote      string                         `json:"purchaseNote"`
	MenuOrder         int                            `json:"menuOrder"`
	MetaData          []*UpdateProductMetadataInput  `json:"metaData"`
	GroupedProducts   []string                       `json:"groupedProducts"`
	Variations        []string                       `json:"variations"`
	DefaultAttributes []*UpdateProductAttributeInput `json:"defaultAttributes"`
	Attributes        []*UpdateProductAttributeInput `json:"attributes"`
	Images            []*UpdateProductImageInput     `json:"images"`
	Tags              []*UpdateProductTagInput       `json:"tags"`
	Categories        []*UpdateProductCategoryInput  `json:"categories"`
	CrossSellIds      []string                       `json:"crossSellIds"`
	UpsellIds         []string                       `json:"upsellIds"`
	RelatedIds        []string                       `json:"relatedIds"`
	Dimensions        *ProductDimensionsInput        `json:"dimensions"`
}

type UpdateProductMetadataInput

type UpdateProductMetadataInput struct {
	ID    primitive.ObjectID `json:"id"`
	Key   string             `json:"key"`
	Value string             `json:"value"`
}

type UpdateProductReviewInput

type UpdateProductReviewInput struct {
	ID                 primitive.ObjectID       `json:"id"`
	ProductID          string                   `json:"productID"`
	Status             ProductStatus            `json:"status"`
	Reviewer           string                   `json:"reviewer"`
	ReviewerEmail      string                   `json:"reviewerEmail"`
	Review             string                   `json:"review"`
	Rating             int                      `json:"rating"`
	Verified           bool                     `json:"verified"`
	ReviewerAvatarURLs *ReviewerAvatarUrlsInput `json:"reviewerAvatarURLs"`
}

type UpdateProductTagInput

type UpdateProductTagInput struct {
	ID          primitive.ObjectID `json:"id"`
	Name        string             `json:"name"`
	Slug        string             `json:"slug"`
	Description string             `json:"description"`
	Count       int                `json:"count"`
}

type UpdateProductVariationInput

type UpdateProductVariationInput struct {
	ID                primitive.ObjectID             `json:"id"`
	ParentProductID   string                         `json:"parentProductID"`
	Description       string                         `json:"description"`
	Permalink         string                         `json:"permalink"`
	Sku               string                         `json:"sku"`
	Price             float64                        `json:"price"`
	RegularPrice      float64                        `json:"regularPrice"`
	SalePrice         float64                        `json:"salePrice"`
	DateOnSaleFrom    time.Time                      `json:"dateOnSaleFrom"`
	DateOnSaleTo      time.Time                      `json:"dateOnSaleTo"`
	OnSale            bool                           `json:"onSale"`
	Status            ProductStatus                  `json:"status"`
	Purchasable       bool                           `json:"purchasable"`
	Virtual           bool                           `json:"virtual"`
	Downloadable      bool                           `json:"downloadable"`
	DownloadLimit     int                            `json:"downloadLimit"`
	DownloadExpiry    int                            `json:"downloadExpiry"`
	TaxStatus         string                         `json:"taxStatus"`
	TaxClass          string                         `json:"taxClass"`
	ManageStock       bool                           `json:"manageStock"`
	StockQuantity     int                            `json:"stockQuantity"`
	StockStatus       string                         `json:"stockStatus"`
	BackOrders        string                         `json:"backOrders"`
	BackOrdersAllowed bool                           `json:"backOrdersAllowed"`
	BackOrdered       bool                           `json:"backOrdered"`
	Weight            float64                        `json:"weight"`
	ShippingClass     string                         `json:"shippingClass"`
	ShippingClassID   string                         `json:"shippingClassId"`
	MenuOrder         int                            `json:"menuOrder"`
	MetaData          []*UpdateProductMetadataInput  `json:"metaData"`
	Attributes        []*UpdateProductAttributeInput `json:"attributes"`
	Image             *UpdateProductImageInput       `json:"image"`
	Dimensions        *ProductDimensionsInput        `json:"dimensions"`
	Downloads         []*UpdateProductDownloadInput  `json:"downloads"`
}

type UpdateRentalPackageInput

type UpdateRentalPackageInput struct {
	ID                     primitive.ObjectID `json:"id"`
	Name                   string             `json:"name"`
	RentalTotalPrice       int                `json:"rentalTotalPrice"`
	RentalMiles            int                `json:"rentalMiles"`
	RentalHour             int                `json:"rentalHour"`
	AdditionalPricePerMile int                `json:"additionalPricePerMile"`
	AdditionalPricePerMin  int                `json:"additionalPricePerMin"`
}

type UpdateReviewInput

type UpdateReviewInput struct {
	ID                    primitive.ObjectID `json:"id"`
	JobID                 primitive.ObjectID `json:"jobId"`
	UserName              string             `json:"userName"`
	UserAverageRating     float64            `json:"userAverageRating"`
	ProviderAverageRating float64            `json:"providerAverageRating"`
	ProviderName          string             `json:"providerName"`
	UserRating            float64            `json:"userRating"`
	ProviderRating        float64            `json:"providerRating"`
	Type                  ReviewType         `json:"type"`
	From                  string             `json:"from"`
	To                    string             `json:"to"`
	Date                  time.Time          `json:"date"`
	Comment               string             `json:"comment"`
	IsActive              bool               `json:"isActive"`
}

type UpdateRideProfileTypeInput

type UpdateRideProfileTypeInput struct {
	ID               primitive.ObjectID `json:"id"`
	ProfileShortName string             `json:"profileShortName"`
	OrganizationType string             `json:"organizationType"`
	ProfileTitle     string             `json:"profileTitle"`
	TitleDescription string             `json:"titleDescription"`
	ScreenHeading    string             `json:"screenHeading"`
	ScreenTitle      string             `json:"screenTitle"`
	ButtonText       string             `json:"buttonText"`
	ProfileIcon      string             `json:"profileIcon"`
	WelcomePicture   string             `json:"welcomePicture"`
	IsActive         *bool              `json:"isActive"`
}

type UpdateSEOSettingInput

type UpdateSEOSettingInput struct {
	ID              *primitive.ObjectID `json:"id"`
	PageName        *string             `json:"pageName"`
	PageTitle       *string             `json:"pageTitle"`
	MetaKeyword     *string             `json:"metaKeyword"`
	MetaDescription *string             `json:"metaDescription"`
}

type UpdateServiceCompanyInput

type UpdateServiceCompanyInput struct {
	ID             primitive.ObjectID  `json:"id"`
	Name           string              `json:"name"`
	ProvidersCount int                 `json:"providersCount"`
	Email          string              `json:"email"`
	IsActive       bool                `json:"isActive"`
	Country        string              `json:"country"`
	State          string              `json:"state"`
	City           string              `json:"city"`
	Address        *UpdateAddressInput `json:"address"`
	Zipcode        string              `json:"zipcode"`
	Phone          string              `json:"phone"`
	Language       string              `json:"language"`
	VatNo          string              `json:"vatNo"`
}

type UpdateServiceInput

type UpdateServiceInput struct {
	ID                        primitive.ObjectID `json:"id"`
	Name                      string             `json:"name"`
	PriceBasedOn              PriceBasedOn       `json:"priceBasedOn"`
	CommissionOnMaterial      bool               `json:"commissionOnMaterial"`
	Category                  ServiceCategory    `json:"category"`
	UserCancellationTimeLimit int                `json:"userCancellationTimeLimit"`
	UserCancellationCharges   float64            `json:"userCancellationCharges"`
	WaitingTimeLimit          int                `json:"waitingTimeLimit"`
	WaitingCharges            float64            `json:"waitingCharges"`
	CategoryViewType          CategoryViewType   `json:"categoryViewType"`
	Icon                      string             `json:"icon"`
	DisplayOrder              int                `json:"displayOrder"`
	Tags                      []string           `json:"tags"`
	IsActive                  bool               `json:"isActive"`
}

type UpdateServiceProviderInput

type UpdateServiceProviderInput struct {
	ID                 primitive.ObjectID `json:"id"`
	FirstName          string             `json:"firstName"`
	LastName           string             `json:"lastName"`
	Email              string             `json:"email"`
	Gender             Gender             `json:"gender"`
	ProfilePicture     string             `json:"profilePicture"`
	Country            string             `json:"country"`
	State              string             `json:"state"`
	City               string             `json:"city"`
	Address            *AddAddressInput   `json:"address"`
	ZipCode            int                `json:"zipCode"`
	MobileNumber       int                `json:"mobileNumber"`
	Company            string             `json:"company"`
	Language           string             `json:"language"`
	Currency           string             `json:"currency"`
	BankAccountDetails primitive.ObjectID `json:"bankAccountDetails"`
	ServiceDescription string             `json:"serviceDescription"`
	CompanyID          string             `json:"companyID"`
	Metadata           *string            `json:"metadata"`
}

type UpdateServiceProviderVehicleInput

type UpdateServiceProviderVehicleInput struct {
	ID                  primitive.ObjectID          `json:"id"`
	VehicleCompanyName  string                      `json:"vehicleCompanyName"`
	VehicleModelName    string                      `json:"vehicleModelName"`
	VehicleYear         string                      `json:"vehicleYear"`
	VehicleNumber       string                      `json:"vehicleNumber"`
	VehicleColor        string                      `json:"vehicleColor"`
	VehicleImageURL     string                      `json:"vehicleImageUrl"`
	VehicleLicensePlate string                      `json:"vehicleLicensePlate"`
	ServiceCompanyID    string                      `json:"serviceCompanyId"`
	EnabledServiceType  []*VehicleServiceTypesInput `json:"enabledServiceType"`
}

type UpdateServiceSubCategoryInput

type UpdateServiceSubCategoryInput struct {
	ID           primitive.ObjectID `json:"id"`
	ServiceID    string             `json:"serviceID"`
	Name         string             `json:"name"`
	Description  string             `json:"description"`
	ServiceType  string             `json:"serviceType"`
	Icon         string             `json:"icon"`
	BannerImage  string             `json:"bannerImage"`
	DisplayOrder int                `json:"displayOrder"`
	IsActive     bool               `json:"isActive"`
}

type UpdateServiceTypeInput

type UpdateServiceTypeInput struct {
	ID                   primitive.ObjectID `json:"id"`
	ServiceCategory      string             `json:"serviceCategory"`
	ServiceSubCategoryID string             `json:"ServiceSubCategoryID"`
	ServiceType          string             `json:"serviceType"`
	ServiceDescription   string             `json:"serviceDescription"`
	Location             string             `json:"location"`
	FareType             FareType           `json:"fareType"`
	ServiceCharge        float64            `json:"serviceCharge"`
	Commission           float64            `json:"commission"`
	AllowQuantity        bool               `json:"allowQuantity"`
	DisplayOrder         int                `json:"displayOrder"`
	IsActive             bool               `json:"isActive"`
}

type UpdateServiceVehicleTypeInput

type UpdateServiceVehicleTypeInput struct {
	ID                           primitive.ObjectID `json:"id"`
	VehicleServiceType           VehicleServiceType `json:"vehicleServiceType"`
	EnablePoolRide               bool               `json:"enablePoolRide"`
	VehicleType                  VehicleType        `json:"vehicleType"`
	VehicleCategory              VehicleCategory    `json:"vehicleCategory"`
	Location                     string             `json:"location"`
	PricePerKms                  float64            `json:"pricePerKms"`
	PricePerMinute               float64            `json:"pricePerMinute"`
	BaseFare                     float64            `json:"baseFare"`
	Commission                   float64            `json:"commission"`
	MinimumFare                  float64            `json:"minimumFare"`
	UserCancellationTimeLimit    int                `json:"userCancellationTimeLimit"`
	UserCancellationCharges      float64            `json:"userCancellationCharges"`
	WaitingTimeLimit             int                `json:"waitingTimeLimit"`
	WaitingCharges               float64            `json:"waitingCharges"`
	InTransitWaitingFeePerMinute float64            `json:"inTransitWaitingFeePerMinute"`
	PersonCapacity               int                `json:"personCapacity"`
	PeakTimeSurcharge            bool               `json:"peakTimeSurcharge"`
	NightCharges                 bool               `json:"nightCharges"`
	VehiclePicture               string             `json:"vehiclePicture"`
	Order                        int                `json:"order"`
	IsActive                     bool               `json:"isActive"`
}

type UpdateSmsTemplateInput

type UpdateSmsTemplateInput struct {
	ID         primitive.ObjectID `json:"id"`
	Code       string             `json:"code"`
	Body       string             `json:"body"`
	Language   string             `json:"language"`
	TemplateID string             `json:"templateId"`
	Purpose    string             `json:"purpose"`
	Title      string             `json:"title"`
}

type UpdateStateInput

type UpdateStateInput struct {
	ID          primitive.ObjectID `json:"id"`
	CountryName string             `json:"countryName"`
	CountryCode string             `json:"countryCode"`
	StateName   string             `json:"stateName"`
	StateCode   string             `json:"stateCode"`
	IsActive    bool               `json:"isActive"`
}

type UpdateStoreInput

type UpdateStoreInput struct {
	ID                       primitive.ObjectID          `json:"id"`
	StoreName                string                      `json:"storeName"`
	ServiceCategory          StoreCategory               `json:"serviceCategory"`
	Email                    string                      `json:"email"`
	Password                 string                      `json:"password"`
	StoreLocation            []*UpdateStoreLocationInput `json:"storeLocation"`
	StoreAddress             *AddAddressInput            `json:"storeAddress"`
	ZipCode                  string                      `json:"zipCode"`
	Country                  string                      `json:"country"`
	State                    string                      `json:"state"`
	ContactPersonName        string                      `json:"contactPersonName"`
	MobileNumber             string                      `json:"mobileNumber"`
	Language                 string                      `json:"language"`
	AvailableStoreItemTypes  string                      `json:"availableStoreItemTypes"`
	Slot1                    time.Time                   `json:"slot1"`
	Slot2                    time.Time                   `json:"slot2"`
	MinimumAmountPerOrder    float64                     `json:"minimumAmountPerOrder"`
	AdditionalPackingCharges float64                     `json:"additionalPackingCharges"`
	MaxOrderQuantity         string                      `json:"maxOrderQuantity"`
	EstimatedOrderTime       int                         `json:"estimatedOrderTime"`
	OfferAppliesOn           OfferAppliesOn              `json:"offerAppliesOn"`
	BankAccountDetails       *UpdateBankDetailsInput     `json:"bankAccountDetails"`
}

type UpdateStoreLocationInput

type UpdateStoreLocationInput struct {
	ID                primitive.ObjectID  `json:"id"`
	StoreID           primitive.ObjectID  `json:"storeID"`
	StoreLocationName string              `json:"storeLocationName"`
	StoreAddress      *UpdateAddressInput `json:"storeAddress"`
}

type UpdateStoreVehicleTypeInput

type UpdateStoreVehicleTypeInput struct {
	ID                        primitive.ObjectID       `json:"id"`
	Type                      string                   `json:"type"`
	Location                  StoreVehicleTypeLocation `json:"location"`
	ChargesForCompletedOrders int                      `json:"chargesForCompletedOrders"`
	ChargesForCancelledOrders int                      `json:"chargesForCancelledOrders"`
	DeliveryRadius            int                      `json:"deliveryRadius"`
	Order                     int                      `json:"order"`
	IsActive                  bool                     `json:"isActive"`
}

type UpdateUserInput

type UpdateUserInput struct {
	ID           primitive.ObjectID `json:"id"`
	FirstName    string             `json:"firstName"`
	LastName     string             `json:"lastName"`
	Email        string             `json:"email"`
	MobileNo     string             `json:"mobileNo"`
	Password     string             `json:"password"`
	Gender       Gender             `json:"gender"`
	ProfilePhoto string             `json:"profilePhoto"`
	Phone        int                `json:"phone"`
	Language     string             `json:"language"`
	Currency     string             `json:"currency"`
	IsActive     bool               `json:"isActive"`
}

type UpdateUserRoleGroupInput

type UpdateUserRoleGroupInput struct {
	ID          primitive.ObjectID `json:"id"`
	Name        string             `json:"name"`
	Roles       []string           `json:"roles"`
	Description string             `json:"description"`
}

type UpdateUserRoleInput

type UpdateUserRoleInput struct {
	ID          primitive.ObjectID `json:"id"`
	Name        string             `json:"name"`
	Description string             `json:"description"`
	Permissions []string           `json:"permissions"`
}

type UpdateVehicleMakeInput

type UpdateVehicleMakeInput struct {
	ID       primitive.ObjectID `json:"id"`
	Make     string             `json:"make"`
	IsActive bool               `json:"isActive"`
}

type UpdateVehicleModelInput

type UpdateVehicleModelInput struct {
	ID       primitive.ObjectID `json:"id"`
	Make     string             `json:"make"`
	Model    string             `json:"model"`
	IsActive bool               `json:"isActive"`
}

type UpdateVisitLocationInput

type UpdateVisitLocationInput struct {
	ID               primitive.ObjectID `json:"id"`
	DestinationTitle string             `json:"destinationTitle"`
	Destination      string             `json:"destination"`
	IsActive         bool               `json:"isActive"`
}

type UpdateWebhookInput

type UpdateWebhookInput struct {
	ID          primitive.ObjectID `json:"id"`
	URL         string             `json:"url"`
	EventTopics []string           `json:"eventTopics"`
	Secret      string             `json:"secret"`
	IsEnabled   bool               `json:"isEnabled"`
}

type UpdateWineDeliveryLabelInput

type UpdateWineDeliveryLabelInput struct {
	ID                     primitive.ObjectID `json:"id"`
	Code                   string             `json:"code"`
	ValueInEnglishLanguage string             `json:"valueInEnglishLanguage"`
	LanguageLabel          string             `json:"languageLabel"`
	IsActive               bool               `json:"isActive"`
}

type UploadFile

type UploadFile struct {
	ID   int            `json:"id"`
	File graphql.Upload `json:"file"`
}

The `UploadFile` type represents the request for uploading a file with certain payload.

type User

type User struct {
	ID               primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt        time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt        *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt        time.Time          `json:"updatedAt" bson:"updatedAt"`
	FirstName        string             `json:"firstName,required" bson:"firstName"`
	LastName         string             `json:"lastName,required" bson:"lastName"`
	Email            string             `json:"email" bson:"email"`
	MobileNo         string             `json:"mobileNo,required" bson:"mobileNo"`
	Roles            []string           `json:"roles" bson:"roles"`
	RoleGroups       []string           `json:"roleGroups" bson:"roleGroups"`
	Password         string             `json:"password,required" bson:"password"`
	Country          string             `json:"country,required" bson:"country,required"`
	State            string             `json:"state,required" bson:"state,required"`
	City             string             `json:"city,required" bson:"city,required"`
	OTP              string             `json:"otp" bson:"otp"`
	IsActive         bool               `json:"isActive" bson:"isActive"`
	IsMobileVerified bool               `json:"isMobileVerified" bson:"isMobileVerified"`
	IsEmailVerified  bool               `json:"isEmailVerified" bson:"isEmailVerified"`
	IsLocked         bool               `json:"isLocked" bson:"isLocked"`
	Gender           Gender             `json:"gender,required" bson:"gender,required"`
	DateOfBirth      time.Time          `json:"dateOfBirth" bson:"dateOfBirth"`
	ReferralCode     string             `json:"referralCode" bson:"referralCode"`
	Language         string             `json:"language" bson:"language"`
}

User represents a user.

func CreateUser

func CreateUser(user *User) (*User, error)

CreateUser creates new user.

func GetUserByFilter

func GetUserByFilter(filter bson.D) *User

GetUserByFilter returns user by given filter

func GetUserByID

func GetUserByID(ID string) *User

GetUserByID gives user by id.

func GetUsers

func GetUsers(filter bson.D, limit int, after *string, before *string, first *int, last *int) (users []*User, totalCount int64, hasPrevious, hasNext bool, err error)

GetUsers gives a list of users.

func UpdateUser

func UpdateUser(user *User) (*User, error)

UpdateUser updates user.

func (*User) MarshalBinary

func (user *User) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*User) UnmarshalBinary

func (user *User) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type UserAuditLog

type UserAuditLog struct {
	ID             primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt      time.Time          `json:"createdAt" bson:"createdAt"`
	UserID         string             `json:"userID" bson:"userID"`
	ActionType     ActionType         `json:"actionType" bson:"actionType"`
	ActionMetadata map[string]string  `json:"actionMetadata" bson:"actionMetadata"`
	ObjectID       string             `json:"objectID" bson:"objectID"`
	ObjectName     string             `json:"objectName" bson:"objectName"`
	ObjectData     interface{}        `json:"objectData" bson:"objectData"`
}

UserAuditLog represents a user audit log.

func CreateUserAuditLog

func CreateUserAuditLog(userAuditLog *UserAuditLog) (*UserAuditLog, error)

CreateUserAuditLog creates new userAuditLog.

func GetUserAuditLogByID

func GetUserAuditLogByID(ID string) (*UserAuditLog, error)

GetUserAuditLogByID gives userAuditLog by id.

func GetUserAuditLogs

func GetUserAuditLogs(filter bson.D, limit int, after *string, before *string, first *int, last *int) (userAuditLogs []*UserAuditLog, totalCount int64, hasPrevious, hasNext bool, err error)

GetUserAuditLogs gives a list of userAuditLogs.

type UserConnection

type UserConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*UserEdge `json:"edges"`
	// A list of nodes.
	Nodes []*User `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of User

type UserEdge

type UserEdge struct {
	Cursor string `json:"cursor"`
	Node   *User  `json:"node"`
}

Paginating the node User

type UserLocation

type UserLocation struct {
	ID        primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt time.Time          `json:"updatedAt" bson:"updatedAt"`
	UserID    string             `json:"userID" bson:"userID"`
	Location  Location           `json:"location" bson:"location"`
}

UserLocation represents a users current location.

func CreateUserLocation

func CreateUserLocation(userLocation *UserLocation) (*UserLocation, error)

CreateUserLocation creates new user location.

func GetUserLocationByID

func GetUserLocationByID(ID string) (*UserLocation, error)

GetUserLocationByID gives a user location by id.

func GetUserLocations

func GetUserLocations(filter bson.D, limit int, after *string, before *string, first *int, last *int) (userLocations []*UserLocation, totalCount int64, hasPrevious, hasNext bool, err error)

GetUserLocations gives a list of user locations.

func UpdateUserLocation

func UpdateUserLocation(c *UserLocation) (*UserLocation, error)

UpdateUserLocation updates user location.

func (*UserLocation) MarshalBinary

func (userLocation *UserLocation) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*UserLocation) UnmarshalBinary

func (userLocation *UserLocation) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type UserReferralReport

type UserReferralReport struct {
	ID                   primitive.ObjectID `json:"id"`
	MemberName           string             `json:"memberName"`
	TotalMembersReferred string             `json:"totalMembersReferred"`
	TotalAmountEarned    string             `json:"totalAmountEarned"`
	DateReferred         string             `json:"dateReferred"`
}

type UserReview

type UserReview struct {
	OrderNumber      string    `json:"orderNumber"`
	FromProviderName string    `json:"fromProviderName"`
	ToUserName       string    `json:"toUserName"`
	Rate             string    `json:"rate"`
	Date             time.Time `json:"date"`
	Comment          string    `json:"comment"`
}

type UserRole

type UserRole struct {
	ID          primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt   time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt   *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt   time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy   primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	Name        string             `json:"name" bson:"name"`
	Description string             `json:"description" bson:"description"`
	Permissions []string           `json:"permissions" bson:"permissions"`
}

UserRole represents a user role.

func CreateUserRole

func CreateUserRole(userRole UserRole) (*UserRole, error)

CreateUserRole creates new user role.

func GetAllUserRoles

func GetAllUserRoles(filter bson.D, limit int, after *string, before *string, first *int, last *int) (allUserRoles []*UserRole, totalCount int64, hasPrevious, hasNext bool, err error)

GetAllUserRoles gives a list of user roles.

func GetRoleByName

func GetRoleByName(roleName string) *UserRole

GetRoleByName returns role by name.

func GetUserRoleByID

func GetUserRoleByID(ID string) (*UserRole, error)

GetUserRoleByID gives the requested user role by id.

func UpdateUserRole

func UpdateUserRole(userRole *UserRole) (*UserRole, error)

UpdateUserRole updates the user role.

func (*UserRole) MarshalBinary

func (userRole *UserRole) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*UserRole) UnmarshalBinary

func (userRole *UserRole) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type UserRoleConnection

type UserRoleConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*UserRoleEdge `json:"edges"`
	// A list of nodes.
	Nodes []*UserRole `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of User roles

type UserRoleEdge

type UserRoleEdge struct {
	Cursor string    `json:"cursor"`
	Node   *UserRole `json:"node"`
}

Paginating the node UserRole

type UserRoleGroup

type UserRoleGroup struct {
	ID          primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt   time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt   *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt   time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy   primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	Name        string             `json:"name" bson:"name"`
	Roles       []string           `json:"roles" bson:"roles"`
	Description string             `json:"description" bson:"description"`
}

UserRoleGroup represents user role group.

func CreateUserRoleGroup

func CreateUserRoleGroup(userRoleGroup *UserRoleGroup) (*UserRoleGroup, error)

CreateUserRoleGroup creates new user role group.

func GetUserRoleGroupByFilter

func GetUserRoleGroupByFilter(filter bson.D) *UserRoleGroup

GetUserRoleGroupByFilter returns user role group by id.

func GetUserRoleGroups

func GetUserRoleGroups(filter bson.D, limit int, after *string, before *string, first *int, last *int) (userRoleGroups []*UserRoleGroup, totalCount int64, hasPrevious, hasNext bool, err error)

func UpdateUserRoleGroup

func UpdateUserRoleGroup(userRoleGroup *UserRoleGroup) (*UserRoleGroup, error)

UpdateUserRoleGroup updates the user role group.

func (*UserRoleGroup) MarshalBinary

func (userRoleGroup *UserRoleGroup) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*UserRoleGroup) UnmarshalBinary

func (userRoleGroup *UserRoleGroup) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type UserRoleGroupConnection

type UserRoleGroupConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*UserRoleGroupEdge `json:"edges"`
	// A list of nodes.
	Nodes []*UserRoleGroup `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of User role groups

type UserRoleGroupEdge

type UserRoleGroupEdge struct {
	Cursor string         `json:"cursor"`
	Node   *UserRoleGroup `json:"node"`
}

Paginating the node UserRoleGroup

type UserRolePermissions

type UserRolePermissions struct {
	ID        primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy string             `json:"createdBy" bson:"createdBy"`
	Service   string             `json:"service" bson:"service"`
	Actions   []string           `json:"actions" bson:"actions"`
}

UserRolePermissions represents a user role permissions.

func CreateUserRolePermission

func CreateUserRolePermission(userRolePermission UserRolePermissions) (*UserRolePermissions, error)

CreateUserRolePermission creates new user role permission.

func GetUserRolePermissionByID

func GetUserRolePermissionByID(ID string) (*UserRolePermissions, error)

GetUserRolePermissionByID gives requested user role permission by id.

func GetUserRolePermissions

func GetUserRolePermissions(filter bson.D, limit int, after *string, before *string, first *int, last *int) (userRolePermissions []*UserRolePermissions, totalCount int64, hasPrevious, hasNext bool, err error)

func GetUserRolePermissionsByFilter

func GetUserRolePermissionsByFilter(filter bson.D) *UserRolePermissions

func UpdateUserRolePermission

func UpdateUserRolePermission(userRolePermission *UserRolePermissions) *UserRolePermissions

UpdateUserRolePermission updates the user role group.

func (*UserRolePermissions) MarshalBinary

func (userRolePermission *UserRolePermissions) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*UserRolePermissions) UnmarshalBinary

func (userRolePermission *UserRolePermissions) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type UserSearchType

type UserSearchType string
const (
	UserSearchTypeName   UserSearchType = "NAME"
	UserSearchTypeEmail  UserSearchType = "EMAIL"
	UserSearchTypeMobile UserSearchType = "MOBILE"
)

func (UserSearchType) IsValid

func (e UserSearchType) IsValid() bool

func (UserSearchType) MarshalGQL

func (e UserSearchType) MarshalGQL(w io.Writer)

func (UserSearchType) String

func (e UserSearchType) String() string

func (*UserSearchType) UnmarshalGQL

func (e *UserSearchType) UnmarshalGQL(v interface{}) error

type UserSignUpDetails

type UserSignUpDetails struct {
	FirstName    string     `json:"firstName"`
	LastName     string     `json:"lastName"`
	Email        string     `json:"email"`
	Password     string     `json:"password"`
	MobileNo     *string    `json:"mobileNo"`
	Country      *string    `json:"country"`
	State        *string    `json:"state"`
	City         *string    `json:"city"`
	Gender       string     `json:"gender"`
	DateOfBirth  *time.Time `json:"dateOfBirth"`
	ReferralCode *string    `json:"referralCode"`
}

type UserStatus

type UserStatus string
const (
	UserStatusActive   UserStatus = "ACTIVE"
	UserStatusInactive UserStatus = "INACTIVE"
	UserStatusDelete   UserStatus = "DELETE"
)

func (UserStatus) IsValid

func (e UserStatus) IsValid() bool

func (UserStatus) MarshalGQL

func (e UserStatus) MarshalGQL(w io.Writer)

func (UserStatus) String

func (e UserStatus) String() string

func (*UserStatus) UnmarshalGQL

func (e *UserStatus) UnmarshalGQL(v interface{}) error

type UserTypeOptions

type UserTypeOptions string
const (
	UserTypeOptionsAllUsers             UserTypeOptions = "ALL_USERS"
	UserTypeOptionsAllProviders         UserTypeOptions = "ALL_PROVIDERS"
	UserTypeOptionsAllLoggedinProviders UserTypeOptions = "ALL_LOGGEDIN_PROVIDERS"
	UserTypeOptionsAllLoggedinUsers     UserTypeOptions = "ALL_LOGGEDIN_USERS"
	UserTypeOptionsAllStores            UserTypeOptions = "ALL_STORES"
	UserTypeOptionsAllInactiveUsers     UserTypeOptions = "ALL_INACTIVE_USERS"
	UserTypeOptionsAllInactiveProviders UserTypeOptions = "ALL_INACTIVE_PROVIDERS"
	UserTypeOptionsAllLoggedinStores    UserTypeOptions = "ALL_LOGGEDIN_STORES"
	UserTypeOptionsAllInactiveStores    UserTypeOptions = "ALL_INACTIVE_STORES"
)

func (UserTypeOptions) IsValid

func (e UserTypeOptions) IsValid() bool

func (UserTypeOptions) MarshalGQL

func (e UserTypeOptions) MarshalGQL(w io.Writer)

func (UserTypeOptions) String

func (e UserTypeOptions) String() string

func (*UserTypeOptions) UnmarshalGQL

func (e *UserTypeOptions) UnmarshalGQL(v interface{}) error

type UserWalletReport

type UserWalletReport struct {
	ID              primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt       time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt       *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt       time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy       primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	Description     string             `json:"description" bson:"description"`
	Amount          string             `json:"amount" bson:"amount"`
	BookingNo       string             `json:"bookingNo" bson:"bookingNo"`
	TransactionDate string             `json:"transactionDate" bson:"transactionDate"`
	BalanceType     string             `json:"balanceType" bson:"balanceType"`
	Type            string             `json:"type" bson:"type"`
	Balance         string             `json:"balance" bson:"balance"`
	IsActive        bool               `json:"isActive" bson:"isActive"`
}

UserWalletReport represents a user wallet report.

func GetUserWalletReportByID

func GetUserWalletReportByID(ID string) (*UserWalletReport, error)

GetUserWalletReportByID gives a user wallet report by id.

func GetUserWalletReports

func GetUserWalletReports(filter bson.D, limit int, after *string, before *string, first *int, last *int) (userWalletReports []*UserWalletReport, totalCount int64, hasPrevious, hasNext bool, err error)

GetUserWalletReports gives a list of user wallet reports.

func (*UserWalletReport) MarshalBinary

func (userWalletReport *UserWalletReport) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*UserWalletReport) UnmarshalBinary

func (userWalletReport *UserWalletReport) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type UserWalletReportConnection

type UserWalletReportConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*UserWalletReportEdge `json:"edges"`
	// A list of nodes.
	Nodes []*UserWalletReport `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of UserWalletReport

type UserWalletReportEdge

type UserWalletReportEdge struct {
	Cursor string            `json:"cursor"`
	Node   *UserWalletReport `json:"node"`
}

Paginating the node UserWalletReport

type UserWalletReportSearchByBalanceType

type UserWalletReportSearchByBalanceType string
const (
	UserWalletReportSearchByBalanceTypeDeposit    UserWalletReportSearchByBalanceType = "DEPOSIT"
	UserWalletReportSearchByBalanceTypeBooking    UserWalletReportSearchByBalanceType = "BOOKING"
	UserWalletReportSearchByBalanceTypeRefund     UserWalletReportSearchByBalanceType = "REFUND"
	UserWalletReportSearchByBalanceTypeWithdrawal UserWalletReportSearchByBalanceType = "WITHDRAWAL"
	UserWalletReportSearchByBalanceTypeCharges    UserWalletReportSearchByBalanceType = "CHARGES"
	UserWalletReportSearchByBalanceTypeReferral   UserWalletReportSearchByBalanceType = "REFERRAL"
)

func (UserWalletReportSearchByBalanceType) IsValid

func (UserWalletReportSearchByBalanceType) MarshalGQL

func (UserWalletReportSearchByBalanceType) String

func (*UserWalletReportSearchByBalanceType) UnmarshalGQL

func (e *UserWalletReportSearchByBalanceType) UnmarshalGQL(v interface{}) error

type UserWalletReportSearchByUserType

type UserWalletReportSearchByUserType string
const (
	UserWalletReportSearchByUserTypeProvider UserWalletReportSearchByUserType = "PROVIDER"
	UserWalletReportSearchByUserTypeUser     UserWalletReportSearchByUserType = "USER"
)

func (UserWalletReportSearchByUserType) IsValid

func (UserWalletReportSearchByUserType) MarshalGQL

func (e UserWalletReportSearchByUserType) MarshalGQL(w io.Writer)

func (UserWalletReportSearchByUserType) String

func (*UserWalletReportSearchByUserType) UnmarshalGQL

func (e *UserWalletReportSearchByUserType) UnmarshalGQL(v interface{}) error

type Validity

type Validity string
const (
	ValidityPermanent Validity = "PERMANENT"
	ValidityCustom    Validity = "CUSTOM"
)

func (Validity) IsValid

func (e Validity) IsValid() bool

func (Validity) MarshalGQL

func (e Validity) MarshalGQL(w io.Writer)

func (Validity) String

func (e Validity) String() string

func (*Validity) UnmarshalGQL

func (e *Validity) UnmarshalGQL(v interface{}) error

type Vehicle

type Vehicle struct {
	ID        primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy primitive.ObjectID `json:"createdBy" bson:"createdBy"`
}

Vehicle represents a vehicle.

type VehicleCategory

type VehicleCategory string
const (
	VehicleCategoryHatchback        VehicleCategory = "HATCHBACK"
	VehicleCategorySedan            VehicleCategory = "SEDAN"
	VehicleCategorySuv              VehicleCategory = "SUV"
	VehicleCategoryVan              VehicleCategory = "VAN"
	VehicleCategoryLuxuriousCar     VehicleCategory = "LUXURIOUS_CAR"
	VehicleCategoryHeavyDutyVehicle VehicleCategory = "HEAVY_DUTY_VEHICLE"
)

func (VehicleCategory) IsValid

func (e VehicleCategory) IsValid() bool

func (VehicleCategory) MarshalGQL

func (e VehicleCategory) MarshalGQL(w io.Writer)

func (VehicleCategory) String

func (e VehicleCategory) String() string

func (*VehicleCategory) UnmarshalGQL

func (e *VehicleCategory) UnmarshalGQL(v interface{}) error

type VehicleMake

type VehicleMake struct {
	ID        primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	IsActive  bool               `json:"isActive" bson:"isActive"`
	Make      string             `json:"make" bson:"make"`
}

VehicleMake represents a vehicle make.

func CreateVehicleMake

func CreateVehicleMake(vehicleMake VehicleMake) (*VehicleMake, error)

CreateVehicleMake creates vehicle make.

func GetVehicleMakeByID

func GetVehicleMakeByID(ID string) (*VehicleMake, error)

GetVehicleMakeByID gives vehicle make by id.

func GetVehicleMakes

func GetVehicleMakes(filter bson.D, limit int, after *string, before *string, first *int, last *int) (vehiclesMakes []*VehicleMake, totalCount int64, hasPrevious, hasNext bool, err error)

GetVehicleMakes gives a list of vehicle makes.

func UpdateVehicleMake

func UpdateVehicleMake(s *VehicleMake) (*VehicleMake, error)

UpdateVehicleMake updates vehicle make.

func (*VehicleMake) MarshalBinary

func (vehicleMake *VehicleMake) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*VehicleMake) UnmarshalBinary

func (vehicleMake *VehicleMake) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type VehicleMakeConnection

type VehicleMakeConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*VehicleMakeEdge `json:"edges"`
	// A list of nodes.
	Nodes []*VehicleMake `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of VehicleMake

type VehicleMakeEdge

type VehicleMakeEdge struct {
	Cursor string       `json:"cursor"`
	Node   *VehicleMake `json:"node"`
}

Paginating the node VehicleMake

type VehicleMakeType

type VehicleMakeType string
const (
	VehicleMakeTypeAll    VehicleMakeType = "ALL"
	VehicleMakeTypeMake   VehicleMakeType = "MAKE"
	VehicleMakeTypeStatus VehicleMakeType = "STATUS"
)

func (VehicleMakeType) IsValid

func (e VehicleMakeType) IsValid() bool

func (VehicleMakeType) MarshalGQL

func (e VehicleMakeType) MarshalGQL(w io.Writer)

func (VehicleMakeType) String

func (e VehicleMakeType) String() string

func (*VehicleMakeType) UnmarshalGQL

func (e *VehicleMakeType) UnmarshalGQL(v interface{}) error

type VehicleModel

type VehicleModel struct {
	ID        primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	IsActive  bool               `json:"isActive" bson:"isActive"`
	Model     string             `json:"model" bson:"model"`
	Make      string             `json:"make" bson:"make"`
}

VehicleModel represents a vehicle model.

func CreateVehicleModel

func CreateVehicleModel(vehicleModel VehicleModel) (*VehicleModel, error)

CreateVehicleModel creates vehicle model.

func GetVehicleModelByID

func GetVehicleModelByID(ID string) (*VehicleModel, error)

GetVehicleModelByID gives a vehicle model by id.

func GetVehicleModels

func GetVehicleModels(filter bson.D, limit int, after *string, before *string, first *int, last *int) (vehicleModels []*VehicleModel, totalCount int64, hasPrevious, hasNext bool, err error)

GetVehicleModels gives a list of vehicle models.

func UpdateVehicleModel

func UpdateVehicleModel(s *VehicleModel) (*VehicleModel, error)

UpdateVehicleModel updates vehicle model.

func (*VehicleModel) MarshalBinary

func (vehicleModel *VehicleModel) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*VehicleModel) UnmarshalBinary

func (vehicleModel *VehicleModel) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type VehicleModelConnection

type VehicleModelConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*VehicleModelEdge `json:"edges"`
	// A list of nodes.
	Nodes []*VehicleModel `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of VehicleModel

type VehicleModelEdge

type VehicleModelEdge struct {
	Cursor string        `json:"cursor"`
	Node   *VehicleModel `json:"node"`
}

Paginating the node VehicleModel

type VehicleModelSearchType

type VehicleModelSearchType string
const (
	VehicleModelSearchTypeAll    VehicleModelSearchType = "ALL"
	VehicleModelSearchTypeTitle  VehicleModelSearchType = "TITLE"
	VehicleModelSearchTypeMake   VehicleModelSearchType = "MAKE"
	VehicleModelSearchTypeStatus VehicleModelSearchType = "STATUS"
)

func (VehicleModelSearchType) IsValid

func (e VehicleModelSearchType) IsValid() bool

func (VehicleModelSearchType) MarshalGQL

func (e VehicleModelSearchType) MarshalGQL(w io.Writer)

func (VehicleModelSearchType) String

func (e VehicleModelSearchType) String() string

func (*VehicleModelSearchType) UnmarshalGQL

func (e *VehicleModelSearchType) UnmarshalGQL(v interface{}) error

type VehicleServiceOption

type VehicleServiceOption struct {
	ID         string `json:"id"`
	IsEnabled  bool   `json:"isEnabled"`
	OptionName string `json:"optionName"`
}

type VehicleServiceOptionInput

type VehicleServiceOptionInput struct {
	ID         string `json:"id"`
	IsEnabled  bool   `json:"isEnabled"`
	OptionName string `json:"optionName"`
}

type VehicleServiceType

type VehicleServiceType string
const (
	VehicleServiceTypeRide     VehicleServiceType = "RIDE"
	VehicleServiceTypeDelivery VehicleServiceType = "DELIVERY"
)

func (VehicleServiceType) IsValid

func (e VehicleServiceType) IsValid() bool

func (VehicleServiceType) MarshalGQL

func (e VehicleServiceType) MarshalGQL(w io.Writer)

func (VehicleServiceType) String

func (e VehicleServiceType) String() string

func (*VehicleServiceType) UnmarshalGQL

func (e *VehicleServiceType) UnmarshalGQL(v interface{}) error

type VehicleServiceTypes

type VehicleServiceTypes struct {
	ServiceID      primitive.ObjectID      `json:"serviceId"`
	ServiceName    string                  `json:"serviceName"`
	IsEnabled      bool                    `json:"isEnabled"`
	ServiceOptions []*VehicleServiceOption `json:"serviceOptions"`
}

type VehicleServiceTypesInput

type VehicleServiceTypesInput struct {
	ServiceID      primitive.ObjectID           `json:"serviceId"`
	ServiceName    string                       `json:"serviceName"`
	IsEnabled      bool                         `json:"isEnabled"`
	ServiceOptions []*VehicleServiceOptionInput `json:"serviceOptions"`
}

type VehicleStatusType

type VehicleStatusType string
const (
	VehicleStatusTypeEnrouteToPickup VehicleStatusType = "ENROUTE_TO_PICKUP"
	VehicleStatusTypeReachedPickup   VehicleStatusType = "REACHED_PICKUP"
	VehicleStatusTypeJourneyStarted  VehicleStatusType = "JOURNEY_STARTED"
	VehicleStatusTypeAvailable       VehicleStatusType = "AVAILABLE"
	VehicleStatusTypeAll             VehicleStatusType = "ALL"
)

func (VehicleStatusType) IsValid

func (e VehicleStatusType) IsValid() bool

func (VehicleStatusType) MarshalGQL

func (e VehicleStatusType) MarshalGQL(w io.Writer)

func (VehicleStatusType) String

func (e VehicleStatusType) String() string

func (*VehicleStatusType) UnmarshalGQL

func (e *VehicleStatusType) UnmarshalGQL(v interface{}) error

type VehicleType

type VehicleType string
const (
	VehicleTypeCar      VehicleType = "CAR"
	VehicleTypeMotoBike VehicleType = "MOTO_BIKE"
	VehicleTypeCycle    VehicleType = "CYCLE"
	VehicleTypeTruck    VehicleType = "TRUCK"
)

func (VehicleType) IsValid

func (e VehicleType) IsValid() bool

func (VehicleType) MarshalGQL

func (e VehicleType) MarshalGQL(w io.Writer)

func (VehicleType) String

func (e VehicleType) String() string

func (*VehicleType) UnmarshalGQL

func (e *VehicleType) UnmarshalGQL(v interface{}) error

type VisitLocation

type VisitLocation struct {
	ID               primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt        time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt        *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt        time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy        primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	DestinationTitle string             `json:"destinationTitle" bson:"destinationTitle"`
	Destination      string             `json:"destination" bson:"destination"`
	IsActive         bool               `json:"isActive" bson:"isActive"`
}

VisitLocation represents a visit location.

func CreateVisitLocation

func CreateVisitLocation(visitLocation VisitLocation) (*VisitLocation, error)

CreateVisitLocation creates visit location.

func GetVisitLocationByID

func GetVisitLocationByID(ID string) (*VisitLocation, error)

GetVisitLocationByID gives visit location by id.

func GetVisitLocations

func GetVisitLocations(filter bson.D, limit int, after *string, before *string, first *int, last *int) (visitLocations []*VisitLocation, totalCount int64, hasPrevious, hasNext bool, err error)

GetVisitLocations gives a list of visit locations.

func UpdateVisitLocation

func UpdateVisitLocation(c *VisitLocation) (*VisitLocation, error)

UpdateVisitLocation updates visit location.

func (*VisitLocation) MarshalBinary

func (visitLocation *VisitLocation) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*VisitLocation) UnmarshalBinary

func (visitLocation *VisitLocation) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type VisitLocationConnection

type VisitLocationConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*VisitLocationEdge `json:"edges"`
	// A list of nodes.
	Nodes []*VisitLocation `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of VisitLocation

type VisitLocationEdge

type VisitLocationEdge struct {
	Cursor string         `json:"cursor"`
	Node   *VisitLocation `json:"node"`
}

Paginating the node VisitLocation

type VisitLocationType

type VisitLocationType string
const (
	VisitLocationTypeAll                      VisitLocationType = "ALL"
	VisitLocationTypeDestinationLocationTitle VisitLocationType = "DESTINATION_LOCATION_TITLE"
	VisitLocationTypeDestinationLocation      VisitLocationType = "DESTINATION_LOCATION"
	VisitLocationTypeStatus                   VisitLocationType = "STATUS"
)

func (VisitLocationType) IsValid

func (e VisitLocationType) IsValid() bool

func (VisitLocationType) MarshalGQL

func (e VisitLocationType) MarshalGQL(w io.Writer)

func (VisitLocationType) String

func (e VisitLocationType) String() string

func (*VisitLocationType) UnmarshalGQL

func (e *VisitLocationType) UnmarshalGQL(v interface{}) error

type Wallet

type Wallet struct {
	ID         primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	UserID     string             `json:"userId" bson:"userId"`
	CreatedAt  time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt  *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt  time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy  primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	WalletType string             `json:"walletType" bson:"walletType"` //wallet type - user wallet , driver wallet
}

Wallet represents a wallet.

func CreateWallet

func CreateWallet(wallet Wallet) (*Wallet, error)

CreateWallet creates wallet.

func GetWalletByID

func GetWalletByID(ID string) (*Wallet, error)

GetWalletByID gives a wallet by id.

func GetWallets

func GetWallets(filter bson.D, limit int, after *string, before *string, first *int, last *int) (wallets []*Wallet, totalCount int64, hasPrevious, hasNext bool, err error)

GetWallets gives a list of wallets.

func UpdateWallet

func UpdateWallet(c *Wallet) (*Wallet, error)

UpdateWallet updates wallet.

func (*Wallet) MarshalBinary

func (wallet *Wallet) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*Wallet) UnmarshalBinary

func (wallet *Wallet) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type WalletTransaction

type WalletTransaction struct {
	ID               primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	WalletID         string             `json:"walletId" bson:"walletId"`
	CreatedAt        time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt        *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt        time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy        primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	Description      string             `json:"description" bson:"description"`
	Amount           float64            `json:"amount" bson:"amount"`
	BalanceFor       BalanceFor         `json:"balanceFor" bson:"balanceFor"`
	Type             TransactionType    `json:"type" bson:"type"` //credit / debit
	RemainingBalance float64            `json:"remainingBalance" bson:"remainingBalance"`
	Metadata         interface{}        `json:"metadata" bson:"metadata"`
}

WalletTransaction represents a wallet transaction.

func CreateWalletTransaction

func CreateWalletTransaction(walletTransaction WalletTransaction) (*WalletTransaction, error)

CreateWalletTransaction creates wallet transaction.

func GetWalletTransactionByID

func GetWalletTransactionByID(ID string) (*WalletTransaction, error)

GetWalletTransactionByID gives wallet transaction by id.

func GetWalletTransactions

func GetWalletTransactions(filter bson.D, limit int, after *string, before *string, first *int, last *int) (walletTransactions []*WalletTransaction, totalCount int64, hasPrevious, hasNext bool, err error)

GetWalletTransactions gives a list of wallet transaction.

func (*WalletTransaction) MarshalBinary

func (walletTransaction *WalletTransaction) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*WalletTransaction) UnmarshalBinary

func (walletTransaction *WalletTransaction) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type WalletTransactionConnection

type WalletTransactionConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*WalletTransactionEdge `json:"edges"`
	// A list of nodes.
	Nodes []*WalletTransaction `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of WalletTransaction

type WalletTransactionEdge

type WalletTransactionEdge struct {
	Cursor string             `json:"cursor"`
	Node   *WalletTransaction `json:"node"`
}

Paginating the node WalletTransaction

type WalletTransactionType

type WalletTransactionType string
const (
	WalletTransactionTypeCredit WalletTransactionType = "CREDIT"
	WalletTransactionTypeDebit  WalletTransactionType = "DEBIT"
)

func (WalletTransactionType) IsValid

func (e WalletTransactionType) IsValid() bool

func (WalletTransactionType) MarshalGQL

func (e WalletTransactionType) MarshalGQL(w io.Writer)

func (WalletTransactionType) String

func (e WalletTransactionType) String() string

func (*WalletTransactionType) UnmarshalGQL

func (e *WalletTransactionType) UnmarshalGQL(v interface{}) error

type Webhook

type Webhook struct {
	ID          primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt   time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt   time.Time          `json:"-" bson:"deletedAt,omitempty"`
	UpdatedAt   time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy   primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	AppID       string             `json:"appId" bson:"appId"`
	URL         string             `json:"url" bson:"url"`
	EventTopics []string           `json:"events" bson:"events"`
	Secret      string             `json:"secret" bson:"secret"`
	IsActive    bool               `json:"isActive" bson:"isActive"`
}

Webhook represents a developer webhook.

func CreateWebhook

func CreateWebhook(webhook Webhook) (*Webhook, error)

CreateWebhook creates webhook.

func GetWebhookByID

func GetWebhookByID(ID string) (*Webhook, error)

GetWebhookByID gives webhook by id.

func GetWebhooks

func GetWebhooks(filter bson.D, limit int, after *string, before *string, first *int, last *int) (webhooks []*Webhook, totalCount int64, hasPrevious, hasNext bool, err error)

GetWebhooks gives a list of webhooks.

func UpdateWebhook

func UpdateWebhook(c *Webhook) (*Webhook, error)

UpdateWebhook updates webhook.

func (*Webhook) MarshalBinary

func (wh *Webhook) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*Webhook) UnmarshalBinary

func (wh *Webhook) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type WebhookEdge

type WebhookEdge struct {
	Cursor string   `json:"cursor"`
	Node   *Webhook `json:"node"`
}

Paginating the node Webhook

type WebhookLog

type WebhookLog struct {
	ID                   primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	WebhookID            string             `json:"webhookId" bson:"webhookId"`
	CreatedAt            time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt            time.Time          `json:"-" bson:"deletedAt,omitempty"`
	UpdatedAt            time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy            string             `json:"createdBy" bson:"createdBy"`
	EventType            string             `json:"eventType" bson:"eventType"`
	Payload              string             `json:"payload" bson:"payload"`
	ClientResponseStatus string             `json:"clientResponseStatus" bson:"clientResponseStatus"`
	ClientResponseCode   int                `json:"clientResponseCode" bson:"clientResponseCode"`
}

WebhookLog represents a webhooklog.

func GetWebhookLogByID

func GetWebhookLogByID(ID string) (*WebhookLog, error)

GetWebhookLogByID gives a webhook log by id.

func GetWebhookLogs

func GetWebhookLogs(filter bson.D, limit int, after *string, before *string, first *int, last *int) (webhookLogs []*WebhookLog, totalCount int64, hasPrevious, hasNext bool, err error)

GetWebhookLogs gives a list of webhook logs.

func (*WebhookLog) MarshalBinary

func (webhookLog *WebhookLog) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*WebhookLog) UnmarshalBinary

func (webhookLog *WebhookLog) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type WebhookLogConnection

type WebhookLogConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*WebhookLogEdge `json:"edges"`
	// A list of nodes.
	Nodes []*WebhookLog `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

type WebhookLogEdge

type WebhookLogEdge struct {
	Cursor string      `json:"cursor"`
	Node   *WebhookLog `json:"node"`
}

Paginating the node

type WebhookStatistics

type WebhookStatistics struct {
	Stats string `json:"stats" bson:"stats"`
}

WebhookStatistics represents webhook statistics.

type WebhooksConnection

type WebhooksConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*WebhookEdge `json:"edges"`
	// A list of nodes.
	Nodes []*Webhook `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

type WineDeliveryLabel

type WineDeliveryLabel struct {
	ID                     primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt              time.Time          `json:"createdAt" bson:"createdAt"`
	DeletedAt              *time.Time         `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	UpdatedAt              time.Time          `json:"updatedAt" bson:"updatedAt"`
	CreatedBy              primitive.ObjectID `json:"createdBy" bson:"createdBy"`
	Code                   string             `json:"code" bson:"code"`
	ValueInEnglishLanguage string             `json:"valueInEnglishLanguage" bson:"valueInEnglishLanguage"`
	LanguageLabel          string             `json:"languageLabel" bson:"languageLabel"`
	IsActive               bool               `json:"isActive" bson:"isActive"`
}

WineDeliveryLabel represents a wine delivery label.

func CreateWineDeliveryLabel

func CreateWineDeliveryLabel(wineDeliveryLabel WineDeliveryLabel) (*WineDeliveryLabel, error)

CreateWineDeliveryLabel creates new wine delivery label.

func GetWineDeliveryLabelByID

func GetWineDeliveryLabelByID(ID string) (*WineDeliveryLabel, error)

GetWineDeliveryLabelByID gives requested wine delivery label by id.

func GetWineDeliveryLabels

func GetWineDeliveryLabels(filter bson.D, limit int, after *string, before *string, first *int, last *int) (wineDeliveryLabels []*WineDeliveryLabel, totalCount int64, hasPrevious, hasNext bool, err error)

GetWineDeliveryLabels gives a list of wine delivery labels.

func UpdateWineDeliveryLabel

func UpdateWineDeliveryLabel(c *WineDeliveryLabel) (*WineDeliveryLabel, error)

UpdateWineDeliveryLabel updates wine delivery label.

func (*WineDeliveryLabel) MarshalBinary

func (wineDeliveryLabel *WineDeliveryLabel) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*WineDeliveryLabel) UnmarshalBinary

func (wineDeliveryLabel *WineDeliveryLabel) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type WineDeliveryLabelConnection

type WineDeliveryLabelConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*WineDeliveryLabelEdge `json:"edges"`
	// A list of nodes.
	Nodes []*WineDeliveryLabel `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of WineDeliveryLabel

type WineDeliveryLabelEdge

type WineDeliveryLabelEdge struct {
	Cursor string             `json:"cursor"`
	Node   *WineDeliveryLabel `json:"node"`
}

Paginating the node WineDeliveryLabel

type WineDeliveryLabelSearch

type WineDeliveryLabelSearch string
const (
	WineDeliveryLabelSearchAll                    WineDeliveryLabelSearch = "ALL"
	WineDeliveryLabelSearchCode                   WineDeliveryLabelSearch = "CODE"
	WineDeliveryLabelSearchValueInEnglishLanguage WineDeliveryLabelSearch = "VALUE_IN_ENGLISH_LANGUAGE"
)

func (WineDeliveryLabelSearch) IsValid

func (e WineDeliveryLabelSearch) IsValid() bool

func (WineDeliveryLabelSearch) MarshalGQL

func (e WineDeliveryLabelSearch) MarshalGQL(w io.Writer)

func (WineDeliveryLabelSearch) String

func (e WineDeliveryLabelSearch) String() string

func (*WineDeliveryLabelSearch) UnmarshalGQL

func (e *WineDeliveryLabelSearch) UnmarshalGQL(v interface{}) error

type Withdrawal

type Withdrawal struct {
	ID                     primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	BookingDate            time.Time          `json:"bookingDate" bson:"bookingDate"`
	FareAmount             float64            `json:"fareAmount" bson:"fareAmount"`
	Commission             float64            `json:"commission" bson:"commission"`
	BookingCharge          float64            `json:"bookingCharge" bson:"bookingCharge"`
	Tip                    float64            `json:"tip" bson:"tip"`
	PaymentAfterCommission float64            `json:"paymentAfterCommission" bson:"paymentAfterCommission"`
	PaymentMethod          PaymentMethod      `json:"paymentMethod" bson:"paymentMethod"`
	Invoice                Invoice            `json:"invoice" bson:"invoice"`
}

Withdrawal represents a withdrawal.

func GetWithdrawalByID

func GetWithdrawalByID(ID string) (*Withdrawal, error)

GetWithdrawalByID gives withdrawal by id.

func GetWithdrawals

func GetWithdrawals(filter bson.D, limit int, after *string, before *string, first *int, last *int) (withdrawals []*Withdrawal, totalCount int64, hasPrevious, hasNext bool, err error)

GetWithdrawals gives a list of withdrawals.

func (*Withdrawal) MarshalBinary

func (withdrawal *Withdrawal) MarshalBinary() ([]byte, error)

MarshalBinary required for the redis cache to work

func (*Withdrawal) UnmarshalBinary

func (withdrawal *Withdrawal) UnmarshalBinary(data []byte) error

UnmarshalBinary required for the redis cache to work

type WithdrawalConnection

type WithdrawalConnection struct {
	// Total number of nodes
	TotalCount int `json:"totalCount"`
	// A list of edges
	Edges []*WithdrawalEdge `json:"edges"`
	// A list of nodes.
	Nodes []*Withdrawal `json:"nodes"`
	// Information to aid in pagination.
	PageInfo *PageInfo `json:"pageInfo"`
}

List of Withdrawal

type WithdrawalEdge

type WithdrawalEdge struct {
	Cursor string      `json:"cursor"`
	Node   *Withdrawal `json:"node"`
}

Paginating the node Withdrawal

Jump to

Keyboard shortcuts

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