Reader small image

You're reading from  Apple Pay Essentials

Product typeBook
Published inFeb 2016
Reading LevelBeginner
Publisher
ISBN-139781785886386
Edition1st Edition
Languages
Right arrow
Author (1)
Ernest Bruce
Ernest Bruce
author image
Ernest Bruce

Ernest Bruce is an accomplished technical writer and software engineer. He has worked for 13 years at Apple, Inc., where he held the position of Senior Technical Writer writing developer documentation. At Apple, Ernest specialized in writing documentation for the Xcode toolset, focusing on the Xcode user guide, and Xcode overview, as well as unit testing documentation and sample code. He also worked extensively on API documentation for the OS X and iOS platforms. Ernest helped design and develop the Xcode help articles that aid developers in getting around the user interface of the Xcode app. Before his years at Apple, Ernest worked as a programmer for Ping, Inc., where he helped manage the manufacturing processes using APL (A Programming Language). Ernest also has extensive experience in customer service, which has been instrumental to him developing content that readers find clear and easy to read, and that makes complex concepts more approachable. Ernest is the head of Nerd Brawn, LLC, a software development company that focuses on developing platforms that help people learn about their environment and each other in innovative ways. The company is also working on new techniques to present content on desktop computers, tablets, and mobile phones.
Read more about Ernest Bruce

Right arrow

Defining order management data structures


An order management system has, as a minimum, data structures representing products available for sale (inventory) and orders. To support the Apple Pay workflow, the system should also have a structure representing the supported shipping methods. The example project uses a MongoDB database to store this data, and the Mongoose data modeling module for Node.js. MongoDB is a document-based database system. Mongoose makes it easier to create documents from schemas and access the data in these documents.

The database for the example order management system has three collections: Product, ShippingMethod, and Order. A collection is similar to a table in a relational database system.

The Product collection stores information about each product offered for sale. The following table shows the fields available for product records within the collection:

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Apple Pay Essentials
Published in: Feb 2016Publisher: ISBN-13: 9781785886386

Author (1)

author image
Ernest Bruce

Ernest Bruce is an accomplished technical writer and software engineer. He has worked for 13 years at Apple, Inc., where he held the position of Senior Technical Writer writing developer documentation. At Apple, Ernest specialized in writing documentation for the Xcode toolset, focusing on the Xcode user guide, and Xcode overview, as well as unit testing documentation and sample code. He also worked extensively on API documentation for the OS X and iOS platforms. Ernest helped design and develop the Xcode help articles that aid developers in getting around the user interface of the Xcode app. Before his years at Apple, Ernest worked as a programmer for Ping, Inc., where he helped manage the manufacturing processes using APL (A Programming Language). Ernest also has extensive experience in customer service, which has been instrumental to him developing content that readers find clear and easy to read, and that makes complex concepts more approachable. Ernest is the head of Nerd Brawn, LLC, a software development company that focuses on developing platforms that help people learn about their environment and each other in innovative ways. The company is also working on new techniques to present content on desktop computers, tablets, and mobile phones.
Read more about Ernest Bruce

Field name

Description

name

This is the name of the product

description

This is a phrase describing...