ionic-vhframeworks 9.5.0 → 9.5.2

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.
@@ -21613,29 +21613,6 @@ export declare class VhQuerySales {
21613
21613
  })
21614
21614
  */
21615
21615
  fix_mot_lan_duy_nhat_inventory_null(): Promise<unknown>;
21616
- /**
21617
- * Lấy về thông tin Đại lý từ mã đại lý (dealercode)
21618
- * @example:
21619
- * this.vhQuerySales.getDealer_byDealerCode()
21620
- .then((dealer)=>{
21621
- if(dealer){
21622
- console.log('getDealer_byDealerCode', dealer);
21623
- }
21624
- }, error=>{
21625
- console.log(error);
21626
- })
21627
- * @param dealercode
21628
- * @returns object or null
21629
- */
21630
- getDealer_byDealerCode(dealercode: any): Promise<unknown>;
21631
- /**
21632
- * Lấy về tất cả các người đă đăng ký dùng APP thuộc quản lý của Đại lý (IDdealer)
21633
- * @param starttime
21634
- * @param endtime
21635
- * @param IDdealer
21636
- * @returns Array
21637
- */
21638
- getEndUsersAPP_byTime_byDealer(starttime: any, endtime: any, IDdealer: any): Promise<unknown>;
21639
21616
  private getYear;
21640
21617
  private getYearsArray;
21641
21618
  private getYearsArray_fromQuery;
@@ -25683,7 +25660,7 @@ export declare class VhQuerySales {
25683
25660
  /**
25684
25661
  * Tạo mã QR cho Đại lý quét thanh toán
25685
25662
  * @example:
25686
- * this.vhQuerySales.vietqr_generateQR('0909925354', 'LE DUC HUY', '970422', 'compact2', '674fd94a9ace7267deb685fd', 99000)
25663
+ * this.vhQuerySales.vietqr_generateQR_byDealer('0909925354', 'LE DUC HUY', '970422', 'compact2', '674fd94a9ace7267deb685fd', 99000)
25687
25664
  .then((rsp:any)=>{
25688
25665
  if(rsp.vcode === 0){
25689
25666
  }
@@ -25705,6 +25682,30 @@ export declare class VhQuerySales {
25705
25682
  */
25706
25683
  vietqr_generateQR_byDealer(accountNo: string, accountName: string, acqId: string, template: string, id_payment: string, amount: number): Promise<unknown>;
25707
25684
  /**
25685
+ * Tạo mã QR cho Shop quét thanh toán
25686
+ * @example:
25687
+ * this.vhQuerySales.vietqr_generateQR_byShop('0909925354', 'LE DUC HUY', '970422', 'compact2', '674fd94a9ace7267deb685fd', 99000)
25688
+ .then((rsp:any)=>{
25689
+ if(rsp.vcode === 0){
25690
+ }
25691
+ }, error=>{
25692
+ console.log(error)
25693
+ })
25694
+ * @param accountNo: số tài khoản ngân hàng
25695
+ * @param accountName: tên chủ tài khoản
25696
+ * @param acqId: mã bin của ngân hàng (lấy từ hàm vietqr_getBanks())
25697
+ * @param template: compact2, compact, qr_only, print
25698
+ + compact2: 540x640 Bao gồm : Mã QR, các logo , thông tin chuyển khoản
25699
+ + compact: 540x540 QR kèm logo VietQR, Napas, ngân hàng
25700
+ + qr_only: 480x480 Trả về ảnh QR đơn giản, chỉ bao gồm QR
25701
+ + print: 600x776 Bao gồm : Mã QR, các logo và đầy đủ thông tin chuyển khoản
25702
+ * @param id_bill: _id của đơn hàng
25703
+ * @param amount: tổng tiền khách phải thanh toán
25704
+ * @returns Promise => rsp ={vcode, msg, data(img_base64)} / error
25705
+ * vcode == 0: success
25706
+ */
25707
+ vietqr_generateQR_byShop(accountNo: string, accountName: string, acqId: string, template: string, id_payment: string, amount: number): Promise<unknown>;
25708
+ /**
25708
25709
  * @example:
25709
25710
  * let data = {
25710
25711
  date: new Date(),
@@ -25893,9 +25894,9 @@ export declare class VhQuerySales {
25893
25894
  getPackage_byDealer(id_package: any): Promise<unknown>;
25894
25895
  /**
25895
25896
  * @example:
25896
- * this.vhQuerySales.updateLiceseKEY_byDealer('5fb6780ca2148e09806c5b01', {total:990000})
25897
+ * this.vhQuerySales.updateLicenseKEY_byDealer('5fb6780ca2148e09806c5b01', {total:990000})
25897
25898
  .then((response)=>{
25898
- console.log('updateLiceseKEY_byDealer', response);
25899
+ console.log('updateLicenseKEY_byDealer', response);
25899
25900
  }, error=>{
25900
25901
  console.log('error', error);
25901
25902
  })
@@ -25904,14 +25905,14 @@ export declare class VhQuerySales {
25904
25905
  * @param value
25905
25906
  * @return Promise => response = undefined / error
25906
25907
  */
25907
- updateLiceseKEY_byDealer(id_dealer: string, id_licenseKEY: string, value: any): Promise<unknown>;
25908
+ updateLicenseKEY_byDealer(id_dealer: string, id_licenseKEY: string, value: any): Promise<unknown>;
25908
25909
  /**
25909
25910
  * @example:
25910
25911
  * let time = new Date();
25911
25912
  * time.setDate(time.getDate()-7);
25912
- * this.vhQuerySales.getPayments_byDealer({payment_type:{$eq:5}}, {},{},0)
25913
+ * this.vhQuerySales.getLicenseKEYs_byDealer({payment_type:{$eq:5}}, {},{},0)
25913
25914
  .then((payments)=>{
25914
- console.log('getPayments_byDealer', payments);
25915
+ console.log('getLicenseKEYs_byDealer', payments);
25915
25916
  })
25916
25917
  * @param query
25917
25918
  * @param projection — đang tìm hiểu, tạm thời để giá trị là {}
@@ -25919,28 +25920,28 @@ export declare class VhQuerySales {
25919
25920
  * @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
25920
25921
  * @return — Array -> array = [{},{},...]
25921
25922
  */
25922
- getLiceseKEYs_byDealer(query: any, projection?: object, sort?: object, limit?: number): Promise<unknown>;
25923
+ getLicenseKEYs_byDealer(query: any, projection?: object, sort?: object, limit?: number): Promise<unknown>;
25923
25924
  /**
25924
- * @example:
25925
- * this.vhQuerySales.updateLiceseKEY_byStote('5fb6780ca2148e09806c5b01', {total:990000})
25926
- .then((response)=>{
25927
- console.log('updateLiceseKEY_byStote', response);
25928
- }, error=>{
25929
- console.log('error', error);
25930
- })
25931
- * @param id_dealer
25932
- * @param id_licenseKEY
25933
- * @param value
25934
- * @return Promise => response = undefined / error
25935
- */
25936
- updateLiceseKEY_byStote(id_store: string, id_licenseKEY: string, value: any): Promise<unknown>;
25925
+ * @example:
25926
+ * this.vhQuerySales.updateLicenseKEY_byStore('5fb6780ca2148e09806c5b01', {total:990000})
25927
+ .then((response)=>{
25928
+ console.log('updateLicenseKEY_byStore', response);
25929
+ }, error=>{
25930
+ console.log('error', error);
25931
+ })
25932
+ * @param id_store
25933
+ * @param id_licenseKEY
25934
+ * @param value
25935
+ * @return Promise => response = undefined / error
25936
+ */
25937
+ updateLicenseKEY_byStore(id_store: string, id_licenseKEY: string, value: any): Promise<unknown>;
25937
25938
  /**
25938
25939
  * @example:
25939
25940
  * let time = new Date();
25940
25941
  * time.setDate(time.getDate()-7);
25941
- * this.vhQuerySales.getLiceseKEYs_byStote({payment_type:{$eq:5}}, {},{},0)
25942
+ * this.vhQuerySales.getLicenseKEYs_byStore({payment_type:{$eq:5}}, {},{},0)
25942
25943
  .then((payments)=>{
25943
- console.log('getLiceseKEYs_byStote', payments);
25944
+ console.log('getLicenseKEYs_byStore', payments);
25944
25945
  })
25945
25946
  * @param query
25946
25947
  * @param projection — đang tìm hiểu, tạm thời để giá trị là {}
@@ -25948,7 +25949,40 @@ export declare class VhQuerySales {
25948
25949
  * @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
25949
25950
  * @return — Array -> array = [{},{},...]
25950
25951
  */
25951
- getLiceseKEYs_byStote(query: any, projection?: object, sort?: object, limit?: number): Promise<unknown>;
25952
+ getLicenseKEYs_byStore(query: any, projection?: object, sort?: object, limit?: number): Promise<unknown>;
25953
+ /**
25954
+ * Lấy về thông tin Đại lý từ mã đại lý (dealercode)
25955
+ * @example:
25956
+ * this.vhQuerySales.getDealer_byDealerCode()
25957
+ .then((dealer)=>{
25958
+ if(dealer){
25959
+ console.log('getDealer_byDealerCode', dealer);
25960
+ }
25961
+ }, error=>{
25962
+ console.log(error);
25963
+ })
25964
+ * @param dealercode
25965
+ * @returns object or null
25966
+ */
25967
+ getDealer_byDealerCode(dealercode: any): Promise<unknown>;
25968
+ /**
25969
+ * Lấy về tất cả các Shop đăng ký dùng APP thuộc quản lý của Đại lý (IDdealer)
25970
+ * @param starttime
25971
+ * @param endtime
25972
+ * @param IDdealer
25973
+ * @returns Array
25974
+ */
25975
+ getStoresAPP_byTime_byDealer(starttime: any, endtime: any, IDdealer: any): Promise<unknown>;
25976
+ /**
25977
+ * @example:
25978
+ * this.vhQuerySales.getBranchs_byIDstore('5fb67fda87c0f21d484cbdf3')
25979
+ .then((branchs)=>{
25980
+ console.log('getBranchs_byIDstore', branchs);
25981
+ })
25982
+ * @param id_store
25983
+ * @return Promise => Array -> array = [{},{},...]
25984
+ */
25985
+ getBranchs_byIDstore(id_store: any): Promise<unknown>;
25952
25986
  private publishObservableEventPromotions;
25953
25987
  private observableLocalPromotions;
25954
25988
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ionic-vhframeworks",
3
- "version": "9.5.0",
3
+ "version": "9.5.2",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^12.2.0",
6
6
  "@angular/core": "^12.2.0"