redemption-kit-ionic-helper
v0.0.25
Published
Plugin ti integrate ELite Finfinity SDK in IONIC app
Readme
redemption-kit-ionic-helper
Plugin ti integrate ELite Finfinity SDK in IONIC app
Install
npm install redemption-kit-ionic-helper
npx cap syncAPI
initialize(...)launch(...)initializeAndLaunch(...)getPointBalance(...)getTransactionHistory(...)getRedemptionOptions()getBanners(...)getGiftVouchers()getOfferCategories()getOffers(...)getBillPayCategories()searchProducts(...)clearSession()- Interfaces
- Type Aliases
initialize(...)
initialize(options: { apiKey: string; customerID: string; sessionTimeout?: number; }) => Promise<{ value: string; }>| Param | Type |
| ------------- | ----------------------------------------------------------------------------- |
| options | { apiKey: string; customerID: string; sessionTimeout?: number; } |
Returns: Promise<{ value: string; }>
launch(...)
launch(options?: { redirection?: Object | undefined; } | undefined) => Promise<{ value: string; }>| Param | Type |
| ------------- | ------------------------------------------------------------ |
| options | { redirection?: Object; } |
Returns: Promise<{ value: string; }>
initializeAndLaunch(...)
initializeAndLaunch(options: { apiKey: string; customerID: string; sessionTimeout?: number; }) => Promise<{ value: string; }>| Param | Type |
| ------------- | ----------------------------------------------------------------------------- |
| options | { apiKey: string; customerID: string; sessionTimeout?: number; } |
Returns: Promise<{ value: string; }>
getPointBalance(...)
getPointBalance(options?: { kind: string; } | undefined) => Promise<{ value: string; }>| Param | Type |
| ------------- | ------------------------------ |
| options | { kind: string; } |
Returns: Promise<{ value: string; }>
getTransactionHistory(...)
getTransactionHistory(options: { transactionType?: string; startDate?: number; endDate?: number; }) => Promise<{ value: string; }>| Param | Type |
| ------------- | -------------------------------------------------------------------------------- |
| options | { transactionType?: string; startDate?: number; endDate?: number; } |
Returns: Promise<{ value: string; }>
getRedemptionOptions()
getRedemptionOptions() => Promise<{ value: string; }>Returns: Promise<{ value: string; }>
getBanners(...)
getBanners(options?: { moduleName: string; } | undefined) => Promise<{ value: string; }>| Param | Type |
| ------------- | ------------------------------------ |
| options | { moduleName: string; } |
Returns: Promise<{ value: string; }>
getGiftVouchers()
getGiftVouchers() => Promise<{ value: string; }>Returns: Promise<{ value: string; }>
getOfferCategories()
getOfferCategories() => Promise<{ value: string; }>Returns: Promise<{ value: string; }>
getOffers(...)
getOffers(options: { type: string; }) => Promise<{ value: string; }>| Param | Type |
| ------------- | ------------------------------ |
| options | { type: string; } |
Returns: Promise<{ value: string; }>
getBillPayCategories()
getBillPayCategories() => Promise<{ value: string; }>Returns: Promise<{ value: string; }>
searchProducts(...)
searchProducts(options: { type: string; keyword: string; }) => Promise<{ value: string; }>| Param | Type |
| ------------- | ----------------------------------------------- |
| options | { type: string; keyword: string; } |
Returns: Promise<{ value: string; }>
clearSession()
clearSession() => Promise<{ value: string; }>Returns: Promise<{ value: string; }>
Interfaces
Object
Provides functionality common to all JavaScript objects.
| Prop | Type | Description |
| ----------------- | --------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| constructor | Function | The initial value of Object.prototype.constructor is the standard built-in Object constructor. |
| Method | Signature | Description | | ------------------------ | --------------------------------------------------------- | ------------------------------------------------------------------------ | | toString | () => string | Returns a string representation of an object. | | toLocaleString | () => string | Returns a date converted to a string using the current locale. | | valueOf | () => Object | Returns the primitive value of the specified object. | | hasOwnProperty | (v: PropertyKey) => boolean | Determines whether an object has a property with the specified name. | | isPrototypeOf | (v: Object) => boolean | Determines whether an object exists in another object's prototype chain. | | propertyIsEnumerable | (v: PropertyKey) => boolean | Determines whether a specified property is enumerable. |
Function
Creates a new function.
| Prop | Type |
| --------------- | --------------------------------------------- |
| prototype | any |
| length | number |
| arguments | any |
| caller | Function |
| Method | Signature | Description | | ------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | apply | (this: Function, thisArg: any, argArray?: any) => any | Calls the function, substituting the specified object for the this value of the function, and the specified array for the arguments of the function. | | call | (this: Function, thisArg: any, ...argArray: any[]) => any | Calls a method of an object, substituting another object for the current object. | | bind | (this: Function, thisArg: any, ...argArray: any[]) => any | For a given function, creates a bound function that has the same body as the original function. The this object of the bound function is associated with the specified object, and has the specified initial parameters. | | toString | () => string | Returns a string representation of a function. |
FunctionDeclaration
| Prop | Type | Description |
| -------- | ------------------------------------------------- | ------------------------------------------------------------------------------------------- |
| id | Identifier | It is null when a function declaration is a part of the export default function statement |
Identifier
| Prop | Type |
| ---------- | --------------------------------------------------- |
| type | 'Identifier' |
| name | string |
FunctionExpression
| Prop | Type |
| ---------- | ------------------------------------------------------------------- |
| id | Identifier | null |
| type | 'FunctionExpression' |
| body | BlockStatement |
BlockStatement
| Prop | Type |
| ------------------- | ----------------------------------------------------------- |
| type | 'BlockStatement' |
| body | Statement[] |
| innerComments | Comment[] |
ExpressionStatement
| Prop | Type |
| ---------------- | --------------------------------------------------------------------- |
| type | 'ExpressionStatement' |
| expression | Expression |
ExpressionMap
| Prop | Type |
| ------------------------------ | ----------------------------------------------------------------------------- |
| ArrayExpression | ArrayExpression |
| ArrowFunctionExpression | ArrowFunctionExpression |
| AssignmentExpression | AssignmentExpression |
| AwaitExpression | AwaitExpression |
| BinaryExpression | BinaryExpression |
| CallExpression | CallExpression |
| ChainExpression | ChainExpression |
| ClassExpression | ClassExpression |
| ConditionalExpression | ConditionalExpression |
| FunctionExpression | FunctionExpression |
| Identifier | Identifier |
| ImportExpression | ImportExpression |
| Literal | Literal |
| LogicalExpression | LogicalExpression |
| MemberExpression | MemberExpression |
| MetaProperty | MetaProperty |
| NewExpression | NewExpression |
| ObjectExpression | ObjectExpression |
| SequenceExpression | SequenceExpression |
| TaggedTemplateExpression | TaggedTemplateExpression |
| TemplateLiteral | TemplateLiteral |
| ThisExpression | ThisExpression |
| UnaryExpression | UnaryExpression |
| UpdateExpression | UpdateExpression |
| YieldExpression | YieldExpression |
ArrayExpression
| Prop | Type |
| -------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
| type | 'ArrayExpression' |
| elements | Array<Expression | SpreadElement | null> |
Array
| Prop | Type | Description |
| ------------ | ------------------- | ------------------------------------------------------------------------------------------------------ |
| length | number | Gets or sets the length of the array. This is a number one higher than the highest index in the array. |
| Method | Signature | Description | | ------------------ | ----------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | toString | () => string | Returns a string representation of an array. | | toLocaleString | () => string | Returns a string representation of an array. The elements are converted to string using their toLocalString methods. | | pop | () => T | undefined | Removes the last element from an array and returns it. If the array is empty, undefined is returned and the array is not modified. | | push | (...items: T[]) => number | Appends new elements to the end of an array, and returns the new length of the array. | | concat | (...items: ConcatArray<T>[]) => T[] | Combines two or more arrays. This method returns a new array without modifying any existing arrays. | | concat | (...items: (T | ConcatArray<T>)[]) => T[] | Combines two or more arrays. This method returns a new array without modifying any existing arrays. | | join | (separator?: string | undefined) => string | Adds all the elements of an array into a string, separated by the specified separator string. | | reverse | () => T[] | Reverses the elements in an array in place. This method mutates the array and returns a reference to the same array. | | shift | () => T | undefined | Removes the first element from an array and returns it. If the array is empty, undefined is returned and the array is not modified. | | slice | (start?: number | undefined, end?: number | undefined) => T[] | Returns a copy of a section of an array. For both start and end, a negative index can be used to indicate an offset from the end of the array. For example, -2 refers to the second to last element of the array. | | sort | (compareFn?: ((a: T, b: T) => number) | undefined) => this | Sorts an array in place. This method mutates the array and returns a reference to the same array. | | splice | (start: number, deleteCount?: number | undefined) => T[] | Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements. | | splice | (start: number, deleteCount: number, ...items: T[]) => T[] | Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements. | | unshift | (...items: T[]) => number | Inserts new elements at the start of an array, and returns the new length of the array. | | indexOf | (searchElement: T, fromIndex?: number | undefined) => number | Returns the index of the first occurrence of a value in an array, or -1 if it is not present. | | lastIndexOf | (searchElement: T, fromIndex?: number | undefined) => number | Returns the index of the last occurrence of a specified value in an array, or -1 if it is not present. | | every | <S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any) => this is S[] | Determines whether all the members of an array satisfy the specified test. | | every | (predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any) => boolean | Determines whether all the members of an array satisfy the specified test. | | some | (predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any) => boolean | Determines whether the specified callback function returns true for any element of an array. | | forEach | (callbackfn: (value: T, index: number, array: T[]) => void, thisArg?: any) => void | Performs the specified action for each element in an array. | | map | <U>(callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any) => U[] | Calls a defined callback function on each element of an array, and returns an array that contains the results. | | filter | <S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any) => S[] | Returns the elements of an array that meet the condition specified in a callback function. | | filter | (predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any) => T[] | Returns the elements of an array that meet the condition specified in a callback function. | | reduce | (callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T) => T | Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. | | reduce | (callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T) => T | | | reduce | <U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U) => U | Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. | | reduceRight | (callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T) => T | Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. | | reduceRight | (callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T) => T | | | reduceRight | <U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U) => U | Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. |
ConcatArray
| Prop | Type |
| ------------ | ------------------- |
| length | number |
| Method | Signature | | --------- | ------------------------------------------------------------------ | | join | (separator?: string | undefined) => string | | slice | (start?: number | undefined, end?: number | undefined) => T[] |
SpreadElement
| Prop | Type |
| -------------- | --------------------------------------------------------- |
| type | 'SpreadElement' |
| argument | Expression |
ArrowFunctionExpression
| Prop | Type |
| ---------------- | ------------------------------------------------------------------------------------------------- |
| type | 'ArrowFunctionExpression' |
| expression | boolean |
| body | Expression | BlockStatement |
AssignmentExpression
| Prop | Type |
| -------------- | ----------------------------------------------------------------------- |
| type | 'AssignmentExpression' |
| operator | AssignmentOperator |
| left | Pattern |
| right | Expression |
ObjectPattern
| Prop | Type |
| ---------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| type | 'ObjectPattern' |
| properties | Array<AssignmentProperty | RestElement> |
AssignmentProperty
| Prop | Type |
| ------------ | ------------------------------------------- |
| value | Pattern |
| kind | 'init' |
| method | boolean |
RestElement
| Prop | Type |
| -------------- | ----------------------------------------------------- |
| type | 'RestElement' |
| argument | Pattern |
ArrayPattern
| Prop | Type |
| -------------- | ------------------------------------------------------------------------------------- |
| type | 'ArrayPattern' |
| elements | Array<Pattern | null> |
AssignmentPattern
| Prop | Type |
| ----------- | ----------------------------------------------------------------- |
| type | 'AssignmentPattern' |
| left | Pattern |
| right | Expression |
MemberExpression
| Prop | Type |
| -------------- | ------------------------------------------------------------------------------------------------------- |
| type | 'MemberExpression' |
| object | Expression | Super |
| property | Expression | PrivateIdentifier |
| computed | boolean |
| optional | boolean |
Super
| Prop | Type |
| ---------- | ----------------------------------------- |
| type | 'Super' |
PrivateIdentifier
| Prop | Type |
| ---------- | ----------------------------------------------------------------- |
| type | 'PrivateIdentifier' |
| name | string |
AwaitExpression
| Prop | Type |
| -------------- | ------------------------------------------------------------- |
| type | 'AwaitExpression' |
| argument | Expression |
BinaryExpression
| Prop | Type |
| -------------- | ------------------------------------------------------------------------------------------------------- |
| type | 'BinaryExpression' |
| operator | BinaryOperator |
| left | Expression | PrivateIdentifier |
| right | Expression |
SimpleCallExpression
| Prop | Type |
| -------------- | ----------------------------------------------------------- |
| type | 'CallExpression' |
| optional | boolean |
NewExpression
| Prop | Type |
| ---------- | --------------------------------------------------------- |
| type | 'NewExpression' |
ChainExpression
| Prop | Type |
| ---------------- | ------------------------------------------------------------- |
| type | 'ChainExpression' |
| expression | ChainElement |
ClassExpression
| Prop | Type |
| ---------- | ------------------------------------------------------------- |
| type | 'ClassExpression' |
| id | Identifier | null |
ConditionalExpression
| Prop | Type |
| ---------------- | ------------------------------------------------------------------------- |
| type | 'ConditionalExpression' |
| test | Expression |
| alternate | Expression |
| consequent | Expression |
ImportExpression
| Prop | Type |
| ------------- | --------------------------------------------------------------- |
| type | 'ImportExpression' |
| source | Expression |
| options | Expression | null |
SimpleLiteral
| Prop | Type |
| ----------- | ------------------------------------------------ |
| type | 'Literal' |
| value | string | number | boolean | null |
| raw | string |
RegExpLiteral
| Prop | Type |
| ----------- | ------------------------------------------------- |
| type | 'Literal' |
| value | RegExp | null |
| regex | { pattern: string; flags: string; } |
| raw | string |
RegExp
| Prop | Type | Description |
| ---------------- | -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| source | string | Returns a copy of the text of the regular expression pattern. Read-only. The regExp argument is a Regular expression object. It can be a variable name or a literal. |
| global | boolean | Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only. |
| ignoreCase | boolean | Returns a Boolean value indicating the state of the ignoreCase flag (i) used with a regular expression. Default is false. Read-only. |
| multiline | boolean | Returns a Boolean value indicating the state of the multiline flag (m) used with a regular expression. Default is false. Read-only. |
| lastIndex | number | |
| Method | Signature | Description | | ----------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | | exec | (string: string) => RegExpExecArray | null | Executes a search on a string using a regular expression pattern, and returns an array containing the results of that search. | | test | (string: string) => boolean | Returns a Boolean value that indicates whether or not a pattern exists in a searched string. | | compile | () => this | |
RegExpExecArray
| Prop | Type |
| ----------- | ------------------- |
| index | number |
| input | string |
BigIntLiteral
| Prop | Type |
| ------------ | --------------------------------------------- |
| type | 'Literal' |
| value | bigint | null |
| bigint | string |
| raw | string |
LogicalExpression
| Prop | Type |
| -------------- | ----------------------------------------------------------------- |
| type | 'LogicalExpression' |
| operator | LogicalOperator |
| left | Expression |
| right | Expression |
MetaProperty
| Prop | Type |
| -------------- | ------------------------------------------------------- |
| type | 'MetaProperty' |
| meta | Identifier |
| property | Identifier |
ObjectExpression
| Prop | Type |
| ---------------- | ----------------------------------------------------------------------------------------------------------------------------- |
| type | 'ObjectExpression' |
| properties | Array<Property | SpreadElement> |
Property
| Prop | Type |
| --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| type | 'Property' |
| key | Expression | PrivateIdentifier |
| value | ClassExpression | ArrayExpression | ArrowFunctionExpression | AssignmentExpression | AwaitExpression | BinaryExpression | SimpleCallExpression | NewExpression | ChainExpression | ConditionalExpression | FunctionExpression | Identifier | ImportExpression | SimpleLiteral | RegExpLiteral | BigIntLiteral | LogicalExpression | MemberExpression | MetaProperty | ObjectExpression | SequenceExpression | TaggedTemplateExpression | TemplateLiteral | ThisExpression | UnaryExpression | UpdateExpression | YieldExpression | ObjectPattern | ArrayPattern | RestElement | AssignmentPattern |
| kind | 'init' | 'get' | 'set' |
| method | boolean |
| shorthand | boolean |
| computed | boolean |
SequenceExpression
| Prop | Type |
| ----------------- | ------------------------------------------------------------------- |
| type | 'SequenceExpression' |
| expressions | Expression[] |
TaggedTemplateExpression
| Prop | Type |
| ----------- | ------------------------------------------------------------------------------- |
| type | 'TaggedTemplateExpression' |
| tag | Expression |
| quasi | TemplateLiteral |
TemplateLiteral
| Prop | Type |
| ----------------- | ------------------------------------------------------------- |
| type | 'TemplateLiteral' |
| quasis | TemplateElement[] |
| expressions | Expression[] |
TemplateElement
| Prop | Type |
| ----------- | ------------------------------------------------------------- |
| type | 'TemplateElement' |
| tail | boolean |
| value | { cooked?: string | null; raw: string; } |
ThisExpression
| Prop | Type |
| ---------- | ----------------------------------------------------------- |
| type | 'ThisExpression' |
UnaryExpression
| Prop | Type |
| -------------- | ------------------------------------------------------------- |
| type | 'UnaryExpression' |
| operator | UnaryOperator |
| prefix | true |
| argument | Expression |
UpdateExpression
| Prop | Type |
| -------------- | --------------------------------------------------------------- |
| type | 'UpdateExpression' |
| operator | UpdateOperator |
| argument | Expression |
| prefix | boolean |
YieldExpression
| Prop | Type |
| -------------- | ------------------------------------------------------------- |
| type | 'YieldExpression' |
| argument | Expression | null |
| delegate | boolean |
StaticBlock
| Prop | Type |
| ---------- | ----------------------------------------------------- |
| type | 'StaticBlock' |
EmptyStatement
| Prop | Type |
| ---------- | ----------------------------------------------------------- |
| type | 'EmptyStatement' |
DebuggerStatement
| Prop | Type |
| ---------- | ----------------------------------------------------------------- |
| type | 'DebuggerStatement' |
WithStatement
| Prop | Type |
| ------------ | --------------------------------------------------------- |
| type | 'WithStatement' |
| object | Expression |
| body | Statement |
ReturnStatement
| Prop | Type |
| -------------- | ------------------------------------------------------------- |
| type | 'ReturnStatement' |
| argument | Expression | null |
LabeledStatement
| Prop | Type |
| ----------- | --------------------------------------------------------------- |
| type | 'LabeledStatement' |
| label | Identifier |
| body | Statement |
BreakStatement
| Prop | Type |
| ----------- | ----------------------------------------------------------- |
| type | 'BreakStatement' |
| label | Identifier | null |
ContinueStatement
| Prop | Type |
| ----------- | ----------------------------------------------------------------- |
| type | 'ContinueStatement' |
| label | Identifier | null |
IfStatement
| Prop | Type |
| ---------------- | ------------------------------------------------------- |
| type | 'IfStatement' |
| test | Expression |
| consequent | Statement |
| alternate | Statement | null |
SwitchStatement
| Prop | Type |
| ------------------ | ------------------------------------------------------------- |
| type | 'SwitchStatement' |
| discriminant | Expression |
| cases | SwitchCase[] |
SwitchCase
| Prop | Type |
| ---------------- | --------------------------------------------------------- |
| type | 'SwitchCase' |
| test | Expression | null |
| consequent | Statement[] |
ThrowStatement
| Prop | Type |
| -------------- | ----------------------------------------------------------- |
| type | 'Thro
