@slick-pay-algeria/slickpay-npm
v1.0.0
Published
Node.js module for Slick-Pay API implementation.
Downloads
336
Readme
Description
Node.js module for Slick-Pay API implementation.
Installation
Just run this command line :
npm i @slick-pay-algeria/slickpay-npm
How to use?
Important: Please check the online documentation for more details about Slick-Pay API requests parameters & responses.
User
class Account {
constructor(publicKey: string, sandbox: boolean);
store(data: any): Promise<any>; // Store a new account in storage.
show(uuid: string): Promise<any>; // Get the specified account data.
index(offset?: number, page?: number): Promise<any>; // Get a listing of the user account.
update(uuid: string, data: any): Promise<any>; // Update the specified account in storage.
destroy(uuid: string): Promise<any>; // Remove the specified account from storage.
}
class Contact {
constructor(publicKey: string, sandbox: boolean);
store(data: any): Promise<any>; // Store a new contact in storage.
show(uuid: string): Promise<any>; // Get the specified contact data.
index(offset?: number, page?: number): Promise<any>; // Get a listing of the user contact.
update(uuid: string, data: any): Promise<any>; // Update the specified contact in storage.
destroy(uuid: string): Promise<any>; // Remove the specified contact from storage.
}
class Transfer {
constructor(publicKey: string, sandbox: boolean);
commission(amount: number): Promise<any>; // Calculate transfer commission.
store(data: any): Promise<any>; // Store a new transfer in storage.
show(id: number): Promise<any>; // Get the specified transfer data.
index(offset?: number, page?: number): Promise<any>; // Get a listing of the user transfer.
update(id: number, data: any): Promise<any>; // Update the specified transfer in storage.
destroy(id: number): Promise<any>; // Remove the specified transfer from storage.
}
class Aggregation {
constructor(publicKey: string, sandbox: boolean);
commission(amount: number): Promise<any>; // Calculate aggregation commission.
store(data: any): Promise<any>; // Store a new aggregation in storage.
show(id: number): Promise<any>; // Get the specified aggregation data.
index(offset?: number, page?: number): Promise<any>; // Get a listing of the user aggregation.
update(id: number, data: any): Promise<any>; // Update the specified aggregation in storage.
destroy(id: number): Promise<any>; // Remove the specified aggregation from storage.
}
class Invoice {
constructor(publicKey: string, sandbox: boolean);
commission(amount: number): Promise<any>; // Calculate invoice commission.
store(data: any): Promise<any>; // Store a new invoice in storage.
show(id: number): Promise<any>; // Get the specified invoice data.
index(offset?: number, page?: number): Promise<any>; // Get a listing of the user invoice.
update(id: number, data: any): Promise<any>; // Update the specified invoice in storage.
destroy(id: number): Promise<any>; // Remove the specified invoice from storage.
}
Merchant
class MerchantInvoice {
constructor(publicKey: string, sandbox: boolean);
store(data: any): Promise<any>; // Store a new invoice in storage.
show(id: number): Promise<any>; // Get the specified invoice data.
index(offset?: number, page?: number): Promise<any>; // Get a listing of the merchant invoice.
update(id: number, data: any): Promise<any>; // Update the specified invoice in storage.
destroy(id: number): Promise<any>; // Remove the specified invoice from storage.
}