LoyaltyProgramController

LoyaltyProgramController

Controller for loyalty programs.

Constructor

new LoyaltyProgramController()

Source:

Methods

create(loyalty_program) → {Promise.<any>}

Create a new Loyalty Program, returns LoyaltyProgram _id if successful

Source:
Parameters:
Name Type Description
loyalty_program Object

The LoyaltyProgram object input

Returns:
Type:
Promise.<any>
  • The id of the LoyaltyProgram object

delete(id) → {Promise.<any>}

Delete a Loyalty Program

Source:
Parameters:
Name Type Description
id string

The id of the Loyalty Program

Returns:
Type:
Promise.<any>
  • Return string

update(id, loyalty_program) → {Promise.<any>}

Update an existing Loyalty Program, returns LoyaltyProgram _id if successful

Source:
Parameters:
Name Type Description
id Object

ID of the LoyaltyProgram object to update

loyalty_program Object

The LoyaltyProgram update object input

Returns:
Type:
Promise.<any>
  • The id of the LoyaltyProgram object