Module
toast_data_core
Module toast_data_core
API
DatabaseConnectorImplToastConnectorTokenObjectPool
Remote functions
upsertOrdersupsertCashEntriesupsertTimeEntriesupsertItemSelectionsupsertItemSelectionEntriesupsertPaymentEntriesupsertModiferEntriesupsertKitchenTimingsupsertCheckDetailItemsupsertForDataRecordHistorygetExistingOrderIdsgetExistingCheckIdsgetExistingPaymentIdsgetExistingModifierSelectionIdsgetExistingItemSelectionIdsgetExistingKitchentEntriesIdsgetExistingCashEntriesIdsgetExistingTimeEntriesIdsgetToastNoMappinggetStoreByGuidgetDataPersistingInProgressRestuarantsdeleteAllCashEntriesdeleteAllCheksdeleteAllKitchenTimingsdeleteAllModifiersdeleteAllOrdersdeleteAllPaymentsdeleteAllSelectionsdeleteAllTimeEntriesupdateDailySalesupdateAllDailySales
Remote functions
getTimeEntriesgetRestourentConfiggetEmployeegetJobgetPaymentGuidsgetPaymentbyIdgetPaymentsgetCashDrawergetDiningOptiongetServiceAreagetRevenueCentergetRestourentServicegetVoidReasongetSalesCategorygetTablegetPrintergetOrdersgetCashEntriesgetRestaurantsgetOrdergetMenuGroupgetMenuItemgetMenugetPayoutReasongetNoSaleReasongetMenuOptionGroup
Definitions
AppliedDiscountsItemAppliedServiceChargesItemAppliedTaxesItemApproverOrShiftReviewSubjectCashDrawerCashEntryChecksItemCreatorOrShiftReviewSubjectDailySalesDataHistoryRecordEmployeeEmployee1EmployeeReferenceFatTuesdayConfigurationGeneralItemItemGroupItemSelectionJobJobReferenceKitchenTimingDbEntryLastModifiedDeviceMenuModifiersItemNoSaleReasonOptionGroupOrderOrderDBEntryPaymentDbEntryPaymentsItemPayoutReasonQueryDataRefundTransactionRestaurantRestaurantListRestourentConfigSalesCategoryTaxRateTimeEntryTimeEntryBreakToastNoConfigTokenTokenRequestTokenResponseWageOverride
DatabaseConnector
upsertOrdersupsertItemSelectionsupsertItemSelectionEntriesupsertCashEntriesupsertTimeEntriesupsertPaymentEntriesupsertModiferEntriesupsertKitchenTimingsupsertCheckDetailItemsupsertForDataRecordHistorygetExistingOrderIdsgetExistingCheckIdsgetExistingPaymentIdsgetExistingModifierSelectionIdsgetExistingItemSelectionIdsgetExistingKitchentEntriesIdsgetExistingCashEntriesIdsgetExistingTimeEntriesIdsgetToastNoMappinggetStoreByGuidgetDataPersistingInProgressRestuarantsdeleteAllOrdersdeleteAllCheksdeleteAllSelectionsdeleteAllPaymentsdeleteAllModifiersdeleteAllKitchenTimingsdeleteAllCashEntriesdeleteAllTimeEntriesupdateDailySalesupdateAllDailySales
QueryProviderfattuesday/toast_data_core
1.0.2
Prints "Hello, World!" with a main function. [//]: # (above is the module summary)
Module Overview
Provides an overview about the module when generating the API documentations. For example, refer to https://lib.ballerina.io/ballerina/io/latest
Functions
getLastDateEnd
function getLastDateEnd() returns string
getLastDateEndWithZ
function getLastDateEndWithZ() returns string
getLastDateStart
function getLastDateStart() returns string
getLastDateYYYYMMDD
function getLastDateYYYYMMDD() returns string
hello
Returns the string Hello
with the input string name.
Parameters
- name string - name as a string
Return Type
- string - "Hello, " with the input string name
processKitchenTimingsEntries
function processKitchenTimingsEntries(ToastConnector toastConnector, DatabaseConnector databaseConnector, Order[] orders, Restaurant restourent) returns error?
Parameters
- toastConnector ToastConnector -
- databaseConnector DatabaseConnector -
- orders Order[] -
- restourent Restaurant -
processModifierSelectionEntries
function processModifierSelectionEntries(ToastConnector toastConnector, DatabaseConnector databaseConnector, Order[] orders, Restaurant restourent) returns error?
Parameters
- toastConnector ToastConnector -
- databaseConnector DatabaseConnector -
- orders Order[] -
- restourent Restaurant -
processTimeEntries
function processTimeEntries(ToastConnector toastConnector, DatabaseConnector databaseConnector, Restaurant restourent, string startDate, string endDate, string businessDate) returns error?
Parameters
- toastConnector ToastConnector -
- databaseConnector DatabaseConnector -
- restourent Restaurant -
- startDate string -
- endDate string -
- businessDate string -
startProcessing
function startProcessing(FatTuesdayConfiguration fatTuesdayConfiguration, RestaurantList resturantList, string startDate, string endDate, string businessDate, boolean isDeletionEnabled, int? retries) returns error?
Parameters
- fatTuesdayConfiguration FatTuesdayConfiguration -
- resturantList RestaurantList -
- startDate string -
- endDate string -
- businessDate string -
- isDeletionEnabled boolean -
- retries int? (default 0) -
Clients
toast_data_core: DatabaseConnectorImpl
upsertOrders
Remote Function
function upsertOrders(Restaurant restaurant, OrderDBEntry[] orders) returns error?
upsertCashEntries
Remote Function
function upsertCashEntries(Restaurant restaurant, CashEntry[] cashEntries) returns error?
upsertTimeEntries
Remote Function
Parameters
- timeEntries TimeEntry[] -
upsertItemSelections
Remote Function
function upsertItemSelections(Restaurant restaurant, Order orderItem) returns error?
Upserts item selections
Return Type
- error? - error if failed to upsert
upsertItemSelectionEntries
Remote Function
function upsertItemSelectionEntries(Restaurant restaurant, ItemSelection[] itemSelections) returns error?
upsertPaymentEntries
Remote Function
function upsertPaymentEntries(PaymentDbEntry[] paymentEntries) returns error?
Parameters
- paymentEntries PaymentDbEntry[] -
upsertModiferEntries
Remote Function
function upsertModiferEntries(ModifiersItem[] modiferEntries) returns error?
Parameters
- modiferEntries ModifiersItem[] -
upsertKitchenTimings
Remote Function
function upsertKitchenTimings(KitchenTimingDbEntry[] kitchenTimings) returns error?
Parameters
- kitchenTimings KitchenTimingDbEntry[] -
upsertCheckDetailItems
Remote Function
function upsertCheckDetailItems(ChecksItem[] checkItems) returns error?
Parameters
- checkItems ChecksItem[] -
upsertForDataRecordHistory
Remote Function
function upsertForDataRecordHistory(string restaurantGuid, int status, string businessDate) returns error?
getExistingOrderIds
Remote Function
getExistingCheckIds
Remote Function
getExistingPaymentIds
Remote Function
getExistingModifierSelectionIds
Remote Function
function getExistingModifierSelectionIds(string businessDate, string toastNumber) returns map<string>|error
getExistingItemSelectionIds
Remote Function
function getExistingItemSelectionIds(string businessDate, string toastNumber) returns map<string>|error
getExistingKitchentEntriesIds
Remote Function
function getExistingKitchentEntriesIds(string businessDate, string toastNumber) returns map<string>|error
getExistingCashEntriesIds
Remote Function
function getExistingCashEntriesIds(string businessDate, string toastNumber) returns map<string>|error
getExistingTimeEntriesIds
Remote Function
function getExistingTimeEntriesIds(string businessDate, string toastNumber) returns map<string>|error
getToastNoMapping
Remote Function
getStoreByGuid
Remote Function
function getStoreByGuid(string resturantGuid) returns ToastNoConfig|error
Parameters
- resturantGuid string -
getDataPersistingInProgressRestuarants
Remote Function
Parameters
- businessDate string -
deleteAllCashEntries
Remote Function
deleteAllCheks
Remote Function
deleteAllKitchenTimings
Remote Function
deleteAllModifiers
Remote Function
deleteAllOrders
Remote Function
deleteAllPayments
Remote Function
deleteAllSelections
Remote Function
deleteAllTimeEntries
Remote Function
updateDailySales
Remote Function
function updateDailySales(DailySales dailySales) returns error?
Parameters
- dailySales DailySales -
updateAllDailySales
Remote Function
function updateAllDailySales(DailySales[] dailySales) returns error?
Parameters
- dailySales DailySales[] -
toast_data_core: ToastConnector
getTimeEntries
Remote Function
function getTimeEntries(string startDate, string endDate, string businessDate, string restourentGuid) returns TimeEntry[]|error
getRestourentConfig
Remote Function
function getRestourentConfig(string restourentGuid) returns RestourentConfig|error
Parameters
- restourentGuid string -
getEmployee
Remote Function
getJob
Remote Function
getPaymentGuids
Remote Function
getPaymentbyId
Remote Function
function getPaymentbyId(string restourentGuid, string paymentguid) returns PaymentsItem|error
getPayments
Remote Function
function getPayments(string restourentGuid, string businessDate) returns PaymentsItem[]
getCashDrawer
Remote Function
function getCashDrawer(string restourentGuid, string cashDrawerId) returns CashDrawer|error?
getDiningOption
Remote Function
function getDiningOption(string restourentGuid, string diningOptionGuid) returns record { guid string, entityType string, externalId string|(), curbside boolean, name string, behavior string, anydata... }|error
getServiceArea
Remote Function
function getServiceArea(string restourentGuid, string serviceAreaGuid) returns record { guid string, entityType string, externalId string|(), revenueCenter record { guid string, entityType string, externalId string|(), name string|(), description string|(), anydata... }|(), name string|(), anydata... }|error
getRevenueCenter
Remote Function
function getRevenueCenter(string restourentGuid, string revenueCenterGuid) returns record { guid string, entityType string, externalId string|(), name string|(), description string|(), anydata... }|error
getRestourentService
Remote Function
function getRestourentService(string restourentGuid, string restourentServiceGuid) returns record { guid string, entityType string, externalId string|(), name string|(), anydata... }|error
getVoidReason
Remote Function
function getVoidReason(string restourentGuid, string voidReasonGuid) returns record { guid string, entityType string, externalId string|(), name string|(), anydata... }|error
getSalesCategory
Remote Function
function getSalesCategory(string restourentGuid, string salesCategoryGuid) returns SalesCategory|error
getTable
Remote Function
function getTable(string restourentGuid, string tableGuid) returns record { guid string, entityType string, externalId string|(), name string, anydata... }|error
getPrinter
Remote Function
function getPrinter(string restourentGuid, string printerGuid) returns record { id string|(), guid string|(), entityType string|(), name string|(), anydata... }|error
getOrders
Remote Function
function getOrders(string restaurantGuid, string startDate, string endDate, string businessDate) returns Order[]|error
getCashEntries
Remote Function
getRestaurants
Remote Function
function getRestaurants() returns Restaurant[]|error
getOrder
Remote Function
getMenuGroup
Remote Function
function getMenuGroup(string restaurantGuid, string menuGroupGuid) returns record { guid string, entityType string, externalId anydata, images anydata, inheritOptionGroups anydata, inheritUnitOfMeasure anydata, items anydata, menu anydata, name string|(), optionGroups anydata, orderableOnline anydata, parent anydata, subgroups anydata, unitOfMeasure anydata, visibility anydata, anydata... }|error
getMenuItem
Remote Function
getMenu
Remote Function
getPayoutReason
Remote Function
function getPayoutReason(string restaurantGuid, string payOutGuid) returns PayoutReason|error
getNoSaleReason
Remote Function
function getNoSaleReason(string restaurantGuid, string noSaleGuid) returns NoSaleReason|error
getMenuOptionGroup
Remote Function
function getMenuOptionGroup(string restaurantGuid, string optionGroupGuid) returns OptionGroup|error
toast_data_core: TokenObjectPool
Records
toast_data_core: AppliedDiscountsItem
Fields
- guid anydata -
- entityType anydata -
- externalId anydata -
- name string -
- discountAmount decimal -
- nonTaxDiscountAmount decimal -
- discount anydata -
- triggers anydata[] -
- approver anydata -
- processingState anydata -
- loyaltyDetails anydata -
- comboItems anydata[] -
- appliedPromoCode anydata -
- discountType anydata -
- discountPercent anydata -
toast_data_core: AppliedServiceChargesItem
Fields
- guid string -
- entityType string -
- externalId string -
- chargeAmount int -
- chargeType string -
- name string -
- delivery boolean -
- takeout boolean -
- dineIn boolean -
- gratuity boolean -
- taxable boolean -
- tags string[]? -
- serviceChargeCalculation string -
toast_data_core: AppliedTaxesItem
Fields
- guid string -
- entityType string -
- taxRate TaxRate -
- name string -
- 'type string -
- facilitatorCollectAndRemitTax boolean -
toast_data_core: ApproverOrShiftReviewSubject
Fields
- guid string -
- entityType string -
toast_data_core: CashDrawer
Fields
- guid string -
- entityType string -
- externalId string? -
toast_data_core: CashEntry
Fields
- guid string -
- entityType string -
- amount float -
- reason string? -
- date string -
- 'type string -
- cashDrawer CashDrawer -
- payoutReason PayoutReason? -
- noSaleReason NoSaleReason? -
- undoes string? -
- employee1 Employee? -
- employee2 Employee? -
- creatorOrShiftReviewSubject CreatorOrShiftReviewSubject? -
- approverOrShiftReviewSubject ApproverOrShiftReviewSubject? -
- employee1Name string? -
- employee2Name string? -
- isExisting boolean? -
- toastNo string? -
- id int? -
toast_data_core: ChecksItem
Fields
- locationCode string? -
- guid string -
- entityType string -
- externalId string -
- taxExempt boolean -
- displayNumber string -
- payments PaymentsItem[] -
- appliedServiceCharges AppliedServiceChargesItem[] -
- appliedDiscounts AppliedDiscountsItem[] -
- amount decimal -
- netAmount decimal? -
- taxAmount decimal -
- tipAmount decimal? -
- totalAmount decimal -
- totalDiscountAmount decimal? -
- tabName string -
- paymentStatus string -
- voided boolean -
- voidDate string? -
- voidBusinessDate int? -
- paidDate string? -
- pickedUpDate string? -
- selections ItemSelection[] -
- serverName string? -
- toastNumber string? -
- openedDate string? -
- customerName string? -
- tenderedAmount decimal? -
- discount decimal? -
- isExisting boolean? -
- tender string? -
- itemDescription string? -
- numberOfGuests int? -
- reasonOfDiscount string? -
- id int? -
toast_data_core: CreatorOrShiftReviewSubject
Fields
- guid string -
- entityType string -
toast_data_core: DailySales
Fields
- storeCode string -
- netSales decimal -
- date string -
toast_data_core: DataHistoryRecord
Fields
- id int -
- businessDate string -
- restaurantGuid string -
- status int -
toast_data_core: Employee
Fields
- guid string -
- entityType string -
- externalId string? -
- createdDate string? -
- modifiedDate string? -
- deletedDate string? -
- firstName string? -
- chosenName string? -
- lastName string? -
- email string? -
- phoneNumber string? -
- passcode string? -
- externalEmployeeId string? -
- deleted boolean? -
- disabled boolean? -
- jobReferences JobReference[]? -
- wageOverrides WageOverride[]? -
- v2EmployeeGuid string? -
toast_data_core: Employee1
Fields
- guid string -
- entityType string -
- externalId string? -
toast_data_core: EmployeeReference
Fields
- guid string -
- entityType string -
- externalId string -
toast_data_core: FatTuesdayConfiguration
Read Only
Fields
- dbHost string -
- dbUser string -
- dbPass string -
- dbName string -
- dbPort int -
- toastApiUrl string -
- toastClientId string -
- toastClientSecret string -
toast_data_core: General
Fields
- name string -
- locationName string? -
- locationCode string -
- description string -
- timeZone string -
- closeoutHour int -
- managementGroupGuid string -
- currencyCode string -
toast_data_core: Item
Fields
- guid string -
- entityType string -
- externalId anydata -
- multiLocationId string? -
- calories anydata? -
- images anydata? -
- inheritOptionGroups anydata? -
- inheritUnitOfMeasure anydata? -
- items anydata? -
- name string? -
- optionGroups anydata? -
- orderableOnline anydata? -
- unitOfMeasure anydata? -
- visibility anydata? -
- plu string? -
- sku string? -
- 'type string? -
toast_data_core: ItemGroup
Fields
- guid string -
- entityType string -
- externalId anydata -
- multiLocationId string? -
toast_data_core: ItemSelection
Fields
- guid string -
- entityType string -
- externalId string? -
- item Item? -
- itemGroup ItemGroup? -
- optionGroup OptionGroup? -
- quantity decimal -
- seatNumber int -
- unitOfMeasure string -
- selectionType string? -
- salesCategory SalesCategory? -
- appliedDiscounts AppliedDiscountsItem[] -
- deferred boolean -
- preDiscountPrice decimal -
- price decimal -
- tax decimal -
- voided boolean -
- voidDate string -
- voidBusinessDate int -
- refundDetails record { refundAmount int, taxRefundAmount int, refundTransaction RefundTransaction, anydata... }? -
- displayName string -
- createdDate string -
- modifiedDate string -
- modifiers ModifiersItem[] -
- fulfillmentStatus string -
- taxInclusion string -
- appliedTaxes anydata[] -
- openPriceAmount decimal? -
- receiptLinePrice decimal? -
- optionGroupPricingMode string? -
- externalPriceAmount decimal? -
- storedValueTransactionId int? -
- menuGroup string? -
- menuItem string? -
- menu string? -
- orderId string? -
- orderNumber string? -
- orderOpenedDate string? -
- serverName string? -
- diningAreaName string? -
- restaurantService string? -
- checkGuid string? -
- grossPrice decimal? -
- discount decimal? -
- netPrice decimal? -
- tabName string? -
- isExisting boolean? -
- toastNo string? -
- plu string? -
- sku string? -
- tableNumber string? -
- id int? -
toast_data_core: Job
Fields
- guid string -
- entityType string -
- externalId string -
- title string -
- code string -
toast_data_core: JobReference
Fields
- guid string -
- entityType string -
- externalId string? -
toast_data_core: KitchenTimingDbEntry
Fields
- id int? -
- toastNumber string -
- importDate string? -
- kitchenTimingsId string -
- server string? -
- checkNumber string -
- tableNumber string? -
- checkOpened string -
- station string? -
- expediterLevel string -
- firedDate string -
- fulfilledDate string -
- fulfillmentTime string -
- fulfilledBy string -
- isExisting boolean? -
toast_data_core: LastModifiedDevice
Fields
- id string? -
toast_data_core: Menu
Fields
- guid string -
- entityType string -
- externalId anydata? -
- images anydata? -
- groups anydata? -
- name string? -
- orderableOnline anydata? -
- unitOfMeasure anydata? -
- visibility anydata? -
toast_data_core: ModifiersItem
Fields
- guid string -
- entityType string -
- externalId anydata -
- deferred boolean -
- preDiscountPrice decimal -
- optionGroup OptionGroup? -
- displayName string -
- appliedDiscounts anydata[] -
- modifiers ModifiersItem[] -
- seatNumber int -
- voidDate string -
- fulfillmentStatus string -
- optionGroupPricingMode string? -
- salesCategory SalesCategory -
- selectionType string -
- price decimal -
- voided boolean -
- appliedTaxes anydata[] -
- itemGroup anydata -
- item Item? -
- taxInclusion string -
- receiptLinePrice decimal? -
- unitOfMeasure string -
- refundDetails record { refundAmount int, taxRefundAmount int, refundTransaction RefundTransaction, anydata... }? -
- tax decimal -
- voidBusinessDate anydata -
- createdDate string -
- preModifier anydata? -
- modifiedDate string -
- orderId string? -
- checkId string? -
- selectionId string? -
- server string? -
- tableName string? -
- orderNumber string? -
- diningArea string? -
- 'service string? -
- diningOptionName string? -
- toastNumber string? -
- openedDate string? -
- modifierId string? -
- isExisting boolean? -
- masterId string? -
- parentItemSelectionMenuId string? -
- parentItemSelectionMenuName string? -
- id int? -
toast_data_core: NoSaleReason
Fields
- guid string -
- entityType string -
- name string? -
toast_data_core: OptionGroup
Fields
- guid string -
- entityType string -
- externalId anydata? -
- multiLocationId string? -
- items anydata? -
- name string? -
- options anydata[]? -
- minSelections anydata? -
- maxSelections anydata? -
toast_data_core: Order
Fields
- guid string -
- entityType string -
- externalId string -
- openedDate string -
- modifiedDate string -
- promisedDate string -
- channelGuid string -
- checks ChecksItem[] -
- 'source string -
- receiptToken string? -
- duration decimal -
- numberOfGuests int -
- voided boolean -
- paidDate string? -
- closedDate string? -
- deletedDate string -
- deleted boolean -
- businessDate int -
- server Employee -
- pricingFeatures string[] -
- approvalStatus string -
- guestOrderStatus string? -
- createdDate string -
- initialDate int? -
- createdInTestMode boolean -
- estimatedFulfillmentDate string? -
- tabName string? -
- serverName string? -
- isExisting boolean? -
- toastNo string? -
toast_data_core: OrderDBEntry
Closed record
Fields
- orderId string -
- orderNumber string -
- toastNumber string -
- checkNumber string -
- openedAt string -
- createdAt string -
- numberOfGuests int -
- tabName string -
- server string -
- tableNumber string -
- revenueCenter string -
- diningArea string -
- serviceName string -
- diningOptions string -
- discountAmount decimal -
- amount decimal -
- tax decimal -
- tip decimal -
- gratuity decimal -
- total decimal -
- voided boolean -
- paidAt string -
- closedAt string -
- duration decimal -
- orderSource string -
- isExisting boolean?(default false) -
- id int? -
toast_data_core: PaymentDbEntry
Fields
- toastNumber string? -
- importDate string? -
- paymentId string -
- orderId string -
- orderNumber string -
- paidDate string -
- orderDate string -
- checkId string -
- checkNumber string -
- tabName string -
- server string? -
- tableName string -
- diningArea string? -
- 'service string? -
- houseAcctNumber string -
- amount decimal -
- tip decimal -
- gratuity decimal -
- total decimal -
- swipedCardAmount decimal -
- keyedCardAmount decimal -
- amountTendered decimal -
- refunded string -
- 'refundDate string -
- refundAmount decimal -
- refundTipAmount decimal -
- voidUser string? -
- voidApprover string? -
- voidDate string -
- status string -
- 'type string -
- cashDrawer string? -
- cardType string -
- otherType string -
- email string? -
- phone string? -
- last4CardDigits string -
- creditCardFees decimal -
- receipt string -
- 'source string -
- added string? -
- diningOption string? -
- cashDrawerObj CashDrawer? -
- isExisting boolean? -
- id int? -
toast_data_core: PaymentsItem
Fields
- guid string -
- entityType string -
- externalId string -
- originalProcessingFee decimal -
- server Employee -
- cashDrawer CashDrawer -
- lastModifiedDevice LastModifiedDevice -
- refundStatus string -
- isProcessedOffline boolean -
- 'type string -
- voidInfo record { voidUser record { guid string, entityType string, externalId string|(), anydata... }|(), voidApprover record { guid string, entityType string, externalId string|(), anydata... }|(), voidDate string|(), voidBusinessDate int|(), voidReason record { guid string, entityType string, externalId string|(), name string|(), anydata... }|(), anydata... } -
- paymentCardToken string? -
- checkGuid string -
- paidDate string -
- orderGuid string -
- cardEntryMode anydata -
- cardPaymentId anydata? -
- paymentStatus string -
- amount decimal -
- tipAmount decimal -
- amountTendered decimal -
- cardType string -
- houseAccount string -
- mcaRepaymentAmount decimal -
- paidBusinessDate int -
- last4Digits string -
toast_data_core: PayoutReason
Fields
- guid string -
- entityType string -
- name string? -
toast_data_core: QueryData
Fields
- id string -
- guid string -
toast_data_core: RefundTransaction
Fields
- guid string -
- entityType string -
toast_data_core: Restaurant
Fields
- restaurantGuid string -
- restaurantName string -
- locationName string -
- toastNo string? -
- restourentConfig RestourentConfig? -
toast_data_core: RestaurantList
Read Only
Fields
- guids string[] -
toast_data_core: RestourentConfig
Fields
- guid string -
- general General -
- urls anydata? -
- location anydata? -
- schedules anydata? -
- delivery anydata? -
- onlineOrdering anydata? -
- prepTimes anydata? -
toast_data_core: SalesCategory
Fields
- guid string -
- entityType string -
- externalId string? -
- name string? -
toast_data_core: TaxRate
Fields
- guid string -
- entityType string -
toast_data_core: TimeEntry
Fields
- guid string -
- entityType string -
- externalId string -
- nonCashSales float -
- outDate string -
- overtimeHours float -
- breaks TimeEntryBreak[] -
- employeeReference EmployeeReference -
- shiftReference anydata -
- nonCashGratuityServiceCharges float -
- inDate string -
- regularHours float -
- jobReference JobReference -
- tipsWithheld float -
- businessDate string -
- cashGratuityServiceCharges float -
- createdDate string -
- deleted boolean -
- deletedDate string -
- cashSales float -
- hourlyWage float -
- nonCashTips float -
- modifiedDate string -
- declaredCashTips float -
- autoClockedOut boolean? -
- timeEntriedId string? -
- toastNumber string? -
- locationCode string? -
- employeeGuid string? -
- emploeeExternald string? -
- employee string? -
- jobId string? -
- jobGuid string? -
- jobTittle string? -
- jobCode string? -
- totalHours float? -
- unpaidBreakTime float? -
- paidBreakTime float? -
- payableHours float? -
- totalTips float? -
- regularPay float? -
- overTimePay float? -
- totalPay float? -
- isExisting boolean? -
- convertedInDate string? -
- convertedOutDate string? -
- id int? -
toast_data_core: TimeEntryBreak
Fields
- guid string -
- breakType anydata -
- paid boolean -
- inDate string -
- outDate string -
- missed boolean -
- auditResponse boolean -
toast_data_core: ToastNoConfig
Fields
- locationGuid string -
- toastNumber string -
- storeCode string -
toast_data_core: Token
Fields
- tokenType string -
- scope string -
- expiresIn int -
- accessToken string -
toast_data_core: TokenRequest
Fields
- clientId string -
- clientSecret string -
- userAccessType string -
toast_data_core: TokenResponse
Fields
- token Token -
- status string -
toast_data_core: WageOverride
Fields
- wage decimal -
- jobReference JobReference -
Object types
toast_data_core: DatabaseConnector
upsertOrders
Remote Function
function upsertOrders(Restaurant restaurant, OrderDBEntry[] orders) returns error?
upsertItemSelections
Remote Function
function upsertItemSelections(Restaurant restaurant, Order orderItem) returns error?
upsertItemSelectionEntries
Remote Function
function upsertItemSelectionEntries(Restaurant restaurant, ItemSelection[] itemSelections) returns error?
upsertCashEntries
Remote Function
function upsertCashEntries(Restaurant restaurant, CashEntry[] cashEntries) returns error?
upsertTimeEntries
Remote Function
Parameters
- timeEntries TimeEntry[] -
upsertPaymentEntries
Remote Function
function upsertPaymentEntries(PaymentDbEntry[] paymentEntries) returns error?
Parameters
- paymentEntries PaymentDbEntry[] -
upsertModiferEntries
Remote Function
function upsertModiferEntries(ModifiersItem[] modiferEntries) returns error?
Parameters
- modiferEntries ModifiersItem[] -
upsertKitchenTimings
Remote Function
function upsertKitchenTimings(KitchenTimingDbEntry[] kitchenTimings) returns error?
Parameters
- kitchenTimings KitchenTimingDbEntry[] -
upsertCheckDetailItems
Remote Function
function upsertCheckDetailItems(ChecksItem[] checkItems) returns error?
Parameters
- checkItems ChecksItem[] -
upsertForDataRecordHistory
Remote Function
function upsertForDataRecordHistory(string restaurantGuid, int status, string businessDate) returns error?
getExistingOrderIds
Remote Function
getExistingCheckIds
Remote Function
getExistingPaymentIds
Remote Function
getExistingModifierSelectionIds
Remote Function
function getExistingModifierSelectionIds(string businessDate, string toastNumber) returns map<string>|error
getExistingItemSelectionIds
Remote Function
function getExistingItemSelectionIds(string businessDate, string toastNumber) returns map<string>|error
getExistingKitchentEntriesIds
Remote Function
function getExistingKitchentEntriesIds(string businessDate, string toastNumber) returns map<string>|error
getExistingCashEntriesIds
Remote Function
function getExistingCashEntriesIds(string businessDate, string toastNumber) returns map<string>|error
getExistingTimeEntriesIds
Remote Function
function getExistingTimeEntriesIds(string businessDate, string toastNumber) returns map<string>|error
getToastNoMapping
Remote Function
getStoreByGuid
Remote Function
function getStoreByGuid(string resturantGuid) returns ToastNoConfig|error
Parameters
- resturantGuid string -
getDataPersistingInProgressRestuarants
Remote Function
Parameters
- businessDate string -
deleteAllOrders
Remote Function
deleteAllCheks
Remote Function
deleteAllSelections
Remote Function
deleteAllPayments
Remote Function
deleteAllModifiers
Remote Function
deleteAllKitchenTimings
Remote Function
deleteAllCashEntries
Remote Function
deleteAllTimeEntries
Remote Function
updateDailySales
Remote Function
function updateDailySales(DailySales dailySales) returns error?
Parameters
- dailySales DailySales -
updateAllDailySales
Remote Function
function updateAllDailySales(DailySales[] dailySales) returns error?
Parameters
- dailySales DailySales[] -
toast_data_core: QueryProvider
Import
import fattuesday/toast_data_core;
Metadata
Released date: about 1 year ago
Version: 1.0.2
Compatibility
Platform: java11
Ballerina version: 2201.7.2
Pull count
Total: 334
Current verison: 0
Weekly downloads