0.1.4 • Published 8 years ago

omnivore-sdk v0.1.4

Weekly downloads
22
License
MIT
Repository
-
Last release
8 years ago

omnivore-sdk

Usage

const Omnivore = require('omnivore-sdk');
const omnivore = new Omnivore('my-omnivore-api-key');

omnivore.Locations.getAll().then(locations => {
  // Do something with locations!
  console.log(locations);

  const locationId = location[0].id;

  omnivore['Tender Types'].getAll({
    locationId
  }).then(tenderTypes => {
    console.log(tenderTypes);
  });

}).catch(error => {
  // Handle errors
  console.error(error);
});

Operations

Locations

getAll

getById

  • id

Employees

getAll

  • locationId

getById

  • locationId
  • employeeId

Order Types

getAll

  • locationId

getById

  • locationId
  • orderTypeId

Tables

getAll

  • locationId

getById

  • locationId
  • tableId

Tender Types

getAll

  • locationId

getById

  • locationId
  • tenderTypeId

Revenue Centers

getAll

  • locationId

getById

  • locationId
  • revenueCenterId

Discounts

getAll

  • locationId

getById

  • locationId
  • discountId

Tickets

getAll

  • locationId

openTicket

  • locationId
  • body

getById

  • locationId
  • ticketId

voidById

  • locationId
  • ticketId
  • body

getTicketDiscounts

  • locationId
  • ticketId

applyTicketDiscount

  • locationId
  • ticketId
  • body

getTicketDiscount

  • locationId
  • ticketId
  • ticketDiscountId

getTicketItems

  • locationId
  • ticketId

addTicketItem

  • locationId
  • ticketId
  • body

voidTicketItem

  • locationId
  • ticketId
  • ticketItemId

getTicketItemById

  • locationId
  • ticketId
  • ticketItemId

getTicketItemModifiers

  • locationId
  • ticketId
  • ticketItemId

getTicketItemModifierById

  • locationId
  • ticketId
  • ticketItemId
  • ticketItemModifierId

getTicketItemDiscounts

  • locationId
  • ticketId
  • ticketItemId

getTicketItemDiscountById

  • locationId
  • ticketId
  • ticketItemId
  • ticketItemDiscountId

getPayments

  • locationId
  • ticketId

getTicketPaymentById

  • locationId
  • ticketId
  • paymentId

Menus

get

  • locationId

getCategories

  • locationId

getCategoryById

  • locationId
  • categoryId

getItems

  • locationId

getMenuItemById

  • locationId
  • menuItemId

getModifiers

  • locationId

getModifierById

  • locationId
  • modifierId

getModifierGroups

  • locationId
  • menuItemId

getModifierGroupById

  • locationId
  • menuItemId
  • modifierGroupId
0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago