App

App

Main entry point of the SDK

Constructor

new App()

Construct the App instance.

Source:

Classes

ExplorePage
FlashSale
LoyaltyCard
LoyaltyProgram
Payout
RedeemableItem
Tip

Members

Category

Get category related methods.

Source:

Coupon

Get coupon related methods.

Source:

Customer

Get customer related methods.

Source:

CustomerToken

Get customer token related methods.

Source:

Employee

Get employee related methods.

Source:

EmployeeToken

Get employee token related methods.

Source:

Graph

Get graph related methods.

Source:

HeadOffice

Get head office related methods.

Source:

Image

Get image services methods.

Source:

Get menu item related methods.

Source:

Modifier

Get modifier related methods.

Source:

Order

Get order related methods.

Source:

Survey

Get survey related methods

Source:

Util

Get utility methods.

Source:

Validation

Get validation services methods.

Source:

Vendor

Get vendor related methods.

Source:

Verification

Get verification services methods.

Source:

Methods

getAdaptor() → {CheaprEatsGraphQLAdaptor}

Get current network adaptor instance

Source:
Returns:
Type:
CheaprEatsGraphQLAdaptor

getAuthenticationToken() → {null|string}

Get current authentication token

Source:
Returns:
Type:
null | string

getConfiguration() → {Object}

Get Configuration

Source:
Returns:
Type:
Object

isCompatible() → {null|boolean}

Determine if current SDK Version in compatible

Source:
Returns:
Type:
null | boolean

setApolloEndpoint(endpoint)

Set Apollo endpoint. WARNING: END OF LIFE Please use setGraphQLEndpointInstead

Deprecated:
  • Yes
Source:
Parameters:
Name Type Description
endpoint

setAuthenticationToken(token)

Set current authentication token

Source:
Parameters:
Name Type Description
token

setGraphQLEndpoint(endpoint)

Set GraphQL endpoint.

Source:
Parameters:
Name Type Description
endpoint

setImageDistributionEndpoint(endpoint)

Set imageEndpoint.distribution

Source:
Parameters:
Name Type Description
endpoint

setImageEndpoint(endpoint)

Set imageEndpoint.production

Source:
Parameters:
Name Type Description
endpoint

setValidationEndpoint(endpoint)

Set validationEndpoint.production

Source:
Parameters:
Name Type Description
endpoint

setVerificationEndpoint(endpoint)

Set verificationEndpoint.production

Source:
Parameters:
Name Type Description
endpoint