ionic-vhframeworks 9.4.9 → 9.5.1

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.
@@ -25683,7 +25683,7 @@ export declare class VhQuerySales {
25683
25683
  /**
25684
25684
  * Tạo mã QR cho Đại lý quét thanh toán
25685
25685
  * @example:
25686
- * this.vhQuerySales.vietqr_generateQR('0909925354', 'LE DUC HUY', '970422', 'compact2', '674fd94a9ace7267deb685fd', 99000)
25686
+ * this.vhQuerySales.vietqr_generateQR_byDealer('0909925354', 'LE DUC HUY', '970422', 'compact2', '674fd94a9ace7267deb685fd', 99000)
25687
25687
  .then((rsp:any)=>{
25688
25688
  if(rsp.vcode === 0){
25689
25689
  }
@@ -25705,6 +25705,30 @@ export declare class VhQuerySales {
25705
25705
  */
25706
25706
  vietqr_generateQR_byDealer(accountNo: string, accountName: string, acqId: string, template: string, id_payment: string, amount: number): Promise<unknown>;
25707
25707
  /**
25708
+ * Tạo mã QR cho Shop quét thanh toán
25709
+ * @example:
25710
+ * this.vhQuerySales.vietqr_generateQR_byShop('0909925354', 'LE DUC HUY', '970422', 'compact2', '674fd94a9ace7267deb685fd', 99000)
25711
+ .then((rsp:any)=>{
25712
+ if(rsp.vcode === 0){
25713
+ }
25714
+ }, error=>{
25715
+ console.log(error)
25716
+ })
25717
+ * @param accountNo: số tài khoản ngân hàng
25718
+ * @param accountName: tên chủ tài khoản
25719
+ * @param acqId: mã bin của ngân hàng (lấy từ hàm vietqr_getBanks())
25720
+ * @param template: compact2, compact, qr_only, print
25721
+ + compact2: 540x640 Bao gồm : Mã QR, các logo , thông tin chuyển khoản
25722
+ + compact: 540x540 QR kèm logo VietQR, Napas, ngân hàng
25723
+ + qr_only: 480x480 Trả về ảnh QR đơn giản, chỉ bao gồm QR
25724
+ + print: 600x776 Bao gồm : Mã QR, các logo và đầy đủ thông tin chuyển khoản
25725
+ * @param id_bill: _id của đơn hàng
25726
+ * @param amount: tổng tiền khách phải thanh toán
25727
+ * @returns Promise => rsp ={vcode, msg, data(img_base64)} / error
25728
+ * vcode == 0: success
25729
+ */
25730
+ vietqr_generateQR_byShop(accountNo: string, accountName: string, acqId: string, template: string, id_payment: string, amount: number): Promise<unknown>;
25731
+ /**
25708
25732
  * @example:
25709
25733
  * let data = {
25710
25734
  date: new Date(),
@@ -25891,6 +25915,64 @@ export declare class VhQuerySales {
25891
25915
  * @return Promise => package ={} or null / error
25892
25916
  */
25893
25917
  getPackage_byDealer(id_package: any): Promise<unknown>;
25918
+ /**
25919
+ * @example:
25920
+ * this.vhQuerySales.updateLiceseKEY_byDealer('5fb6780ca2148e09806c5b01', {total:990000})
25921
+ .then((response)=>{
25922
+ console.log('updateLiceseKEY_byDealer', response);
25923
+ }, error=>{
25924
+ console.log('error', error);
25925
+ })
25926
+ * @param id_dealer
25927
+ * @param id_licenseKEY
25928
+ * @param value
25929
+ * @return Promise => response = undefined / error
25930
+ */
25931
+ updateLiceseKEY_byDealer(id_dealer: string, id_licenseKEY: string, value: any): Promise<unknown>;
25932
+ /**
25933
+ * @example:
25934
+ * let time = new Date();
25935
+ * time.setDate(time.getDate()-7);
25936
+ * this.vhQuerySales.getPayments_byDealer({payment_type:{$eq:5}}, {},{},0)
25937
+ .then((payments)=>{
25938
+ console.log('getPayments_byDealer', payments);
25939
+ })
25940
+ * @param query
25941
+ * @param projection — đang tìm hiểu, tạm thời để giá trị là {}
25942
+ * @param sort — null hoặc {}:không sắp xếp; {date:1}: sắp xếp theo ASC; {date:-1}: sắp xếp theo DESC
25943
+ * @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
25944
+ * @return — Array -> array = [{},{},...]
25945
+ */
25946
+ getLiceseKEYs_byDealer(query: any, projection?: object, sort?: object, limit?: number): Promise<unknown>;
25947
+ /**
25948
+ * @example:
25949
+ * this.vhQuerySales.updateLiceseKEY_byStote('5fb6780ca2148e09806c5b01', {total:990000})
25950
+ .then((response)=>{
25951
+ console.log('updateLiceseKEY_byStote', response);
25952
+ }, error=>{
25953
+ console.log('error', error);
25954
+ })
25955
+ * @param id_dealer
25956
+ * @param id_licenseKEY
25957
+ * @param value
25958
+ * @return Promise => response = undefined / error
25959
+ */
25960
+ updateLiceseKEY_byStote(id_store: string, id_licenseKEY: string, value: any): Promise<unknown>;
25961
+ /**
25962
+ * @example:
25963
+ * let time = new Date();
25964
+ * time.setDate(time.getDate()-7);
25965
+ * this.vhQuerySales.getLiceseKEYs_byStote({payment_type:{$eq:5}}, {},{},0)
25966
+ .then((payments)=>{
25967
+ console.log('getLiceseKEYs_byStote', payments);
25968
+ })
25969
+ * @param query
25970
+ * @param projection — đang tìm hiểu, tạm thời để giá trị là {}
25971
+ * @param sort — null hoặc {}:không sắp xếp; {date:1}: sắp xếp theo ASC; {date:-1}: sắp xếp theo DESC
25972
+ * @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
25973
+ * @return — Array -> array = [{},{},...]
25974
+ */
25975
+ getLiceseKEYs_byStote(query: any, projection?: object, sort?: object, limit?: number): Promise<unknown>;
25894
25976
  private publishObservableEventPromotions;
25895
25977
  private observableLocalPromotions;
25896
25978
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ionic-vhframeworks",
3
- "version": "9.4.9",
3
+ "version": "9.5.1",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^12.2.0",
6
6
  "@angular/core": "^12.2.0"