ionic-vhframeworks 9.1.7 → 9.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11981,6 +11981,44 @@ export declare class VhQueryAutoWeb {
11981
11981
  private configChanged;
11982
11982
  private renderer;
11983
11983
  constructor(vhMGDB_database: VhMGDB_database, vhMGDB_socketMongoDB: VhMGDB_socketMongoDB, vhQuery: VhQuery, vhAuth: VhAuth, vhMGDB_rootdatabase: VhMGDB_rootdatabase, vhMGDB_auth: VhMGDB_auth, vhOTP: VhOTP, vhAlgorithm: VhAlgorithm, vhBuildAutoWeb: VhBuildAutoWeb, vhDesignAutoWeb: VhDesignAutoWeb, vhEventMediator: VhEventMediator, http: HttpClient, renderFactory: RendererFactory2);
11984
+ /**
11985
+ * Lấy về danh sách các ngân hàng (kèm logo) mà vietqr hỗ trợ tạo mã QR
11986
+ * @example:
11987
+ * this.vhQueryAutoWeb.vietqr_getBanks()
11988
+ .then((rsp:any)=>{
11989
+ if(rsp.vcode === 0){
11990
+ }
11991
+ }, error=>{
11992
+ console.log(error)
11993
+ })
11994
+ * @returns Promise => rsp ={vcode, msg, data(array)} / error
11995
+ * vcode == 0: success
11996
+ */
11997
+ vietqr_getBanks(): Promise<unknown>;
11998
+ /**
11999
+ * Tạo mã QR cho khách hàng quét thanh toán
12000
+ * @example:
12001
+ * this.vhQueryAutoWeb.vietqr_generateQR('0909925354', 'LE DUC HUY', '970422', 'compact2', '674fd94a9ace7267deb685fd', 99000)
12002
+ .then((rsp:any)=>{
12003
+ if(rsp.vcode === 0){
12004
+ }
12005
+ }, error=>{
12006
+ console.log(error)
12007
+ })
12008
+ * @param accountNo: số tài khoản ngân hàng
12009
+ * @param accountName: tên chủ tài khoản
12010
+ * @param acqId: mã bin của ngân hàng (lấy từ hàm vietqr_getBanks())
12011
+ * @param template: compact2, compact, qr_only, print
12012
+ + compact2: 540x640 Bao gồm : Mã QR, các logo , thông tin chuyển khoản
12013
+ + compact: 540x540 QR kèm logo VietQR, Napas, ngân hàng
12014
+ + qr_only: 480x480 Trả về ảnh QR đơn giản, chỉ bao gồm QR
12015
+ + print: 600x776 Bao gồm : Mã QR, các logo và đầy đủ thông tin chuyển khoản
12016
+ * @param id_bill: _id của đơn hàng
12017
+ * @param amount: tổng tiền khách phải thanh toán
12018
+ * @returns Promise => rsp ={vcode, msg, data(img_base64)} / error
12019
+ * vcode == 0: success
12020
+ */
12021
+ vietqr_generateQR(accountNo: string, accountName: string, acqId: string, template: string, id_bill: string, amount: number): Promise<unknown>;
11984
12022
  /**
11985
12023
  * Hàm tạo template theo chuẩn flexbox từ tempplate theo chuẩn position
11986
12024
  * @example:
@@ -18732,6 +18770,24 @@ export declare class VhBuildAutoWeb {
18732
18770
  * @returns
18733
18771
  */
18734
18772
  getDetailObject_byObject(object: any): Promise<unknown>;
18773
+ /**
18774
+ * @example:
18775
+ * this.vhBuildAutoWeb.vietqr_generateQR({})
18776
+ .then((rsp)=>{
18777
+ if(rsp.vcode === 0){
18778
+ console.log('dynamic_addDoc_fromDatabase', rsp.data);
18779
+ }
18780
+ }, error=>{
18781
+ console.log('error', error);
18782
+ })
18783
+ * @param colname
18784
+ * @param data
18785
+ * @return Promise => rsp ={vcode, msg, data(img_base64)} / error
18786
+ * @notice : hàm này chỉ get được dữ liệu sau khi khách hàng hoặc nhân viên đã đăng nhập, ở giao diện thiết kế dùng thư viện vhDesignAutoWeb
18787
+ * chưa thấy cần thiết kiểm tra bảo mật này nên chưa thêm dòng lệnh kiểm tra và trả về vcode=11
18788
+ * vcode == 0: success
18789
+ */
18790
+ vietqr_generateQR(data: any): Promise<unknown>;
18735
18791
  /**
18736
18792
  * @example:
18737
18793
  * this.vhBuildAutoWeb.dynamic_addDoc_fromDatabase('atw_pages',{name:name: 'Quảng cáo 1'})
@@ -20004,6 +20060,24 @@ export declare class VhDesignAutoWeb {
20004
20060
  * @return Array(object) => array = [{},{},...]
20005
20061
  */
20006
20062
  getlocalBranchs(): any[];
20063
+ /**
20064
+ * @example:
20065
+ * this.vhDesignAutoWeb.vietqr_generateQR({})
20066
+ .then((rsp)=>{
20067
+ if(rsp.vcode === 0){
20068
+ console.log('dynamic_addDoc_fromDatabase', rsp.data);
20069
+ }
20070
+ }, error=>{
20071
+ console.log('error', error);
20072
+ })
20073
+ * @param colname
20074
+ * @param data
20075
+ * @return Promise => rsp ={vcode, msg, data(img_base64)} / error
20076
+ * @notice : hàm này chỉ get được dữ liệu sau khi khách hàng hoặc nhân viên đã đăng nhập, ở giao diện thiết kế dùng thư viện vhDesignAutoWeb
20077
+ * chưa thấy cần thiết kiểm tra bảo mật này nên chưa thêm dòng lệnh kiểm tra và trả về vcode=11
20078
+ * vcode == 0: success
20079
+ */
20080
+ vietqr_generateQR(data: any): Promise<unknown>;
20007
20081
  /**
20008
20082
  * @example:
20009
20083
  * this.vhDesignAutoWeb.dynamic_addDoc_fromDatabase('atw_pages',{name:name: 'Quảng cáo 1'})
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ionic-vhframeworks",
3
- "version": "9.1.7",
3
+ "version": "9.1.8",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^12.2.0",
6
6
  "@angular/core": "^12.2.0"