ionic-vhframeworks 9.5.3 → 9.5.5
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.
|
@@ -5812,6 +5812,58 @@ export declare class VhQueryCafe {
|
|
|
5812
5812
|
* @return Promise => package ={} or null / error
|
|
5813
5813
|
*/
|
|
5814
5814
|
getPackage(id_package: any): Promise<unknown>;
|
|
5815
|
+
/**
|
|
5816
|
+
* @example:
|
|
5817
|
+
* this.vhQueryCafe.updateLicenseKEY('5fb6780ca2148e09806c5b01', {total:990000})
|
|
5818
|
+
.then((response)=>{
|
|
5819
|
+
console.log('updateLicenseKEY', response);
|
|
5820
|
+
}, error=>{
|
|
5821
|
+
console.log('error', error);
|
|
5822
|
+
})
|
|
5823
|
+
* @param id_licenseKEY
|
|
5824
|
+
* @param value
|
|
5825
|
+
* @return Promise => response = undefined / error
|
|
5826
|
+
*/
|
|
5827
|
+
updateLicenseKEY(id_licenseKEY: string, value: any): Promise<unknown>;
|
|
5828
|
+
/**
|
|
5829
|
+
* @example:
|
|
5830
|
+
* let time = new Date();
|
|
5831
|
+
* time.setDate(time.getDate()-7);
|
|
5832
|
+
* this.vhQueryCafe.getLicenseKEYs({payment_type:{$eq:5}}, {},{},0)
|
|
5833
|
+
.then((payments)=>{
|
|
5834
|
+
console.log('getLicenseKEYs', payments);
|
|
5835
|
+
})
|
|
5836
|
+
* @param query
|
|
5837
|
+
* @param projection — đang tìm hiểu, tạm thời để giá trị là {}
|
|
5838
|
+
* @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
|
|
5839
|
+
* @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
|
|
5840
|
+
* @return — Array -> array = [{},{},...]
|
|
5841
|
+
*/
|
|
5842
|
+
getLicenseKEYs(query: any, projection?: object, sort?: object, limit?: number): Promise<unknown>;
|
|
5843
|
+
/**
|
|
5844
|
+
* Tạo mã QR cho Shop quét thanh toán
|
|
5845
|
+
* @example:
|
|
5846
|
+
* this.vhQueryCafe.vietqr_generateQR('0909925354', 'LE DUC HUY', '970422', 'compact2', '674fd94a9ace7267deb685fd', 99000)
|
|
5847
|
+
.then((rsp:any)=>{
|
|
5848
|
+
if(rsp.vcode === 0){
|
|
5849
|
+
}
|
|
5850
|
+
}, error=>{
|
|
5851
|
+
console.log(error)
|
|
5852
|
+
})
|
|
5853
|
+
* @param accountNo: số tài khoản ngân hàng
|
|
5854
|
+
* @param accountName: tên chủ tài khoản
|
|
5855
|
+
* @param acqId: mã bin của ngân hàng (lấy từ hàm vietqr_getBanks())
|
|
5856
|
+
* @param template: compact2, compact, qr_only, print
|
|
5857
|
+
+ compact2: 540x640 Bao gồm : Mã QR, các logo , thông tin chuyển khoản
|
|
5858
|
+
+ compact: 540x540 QR kèm logo VietQR, Napas, ngân hàng
|
|
5859
|
+
+ qr_only: 480x480 Trả về ảnh QR đơn giản, chỉ bao gồm QR
|
|
5860
|
+
+ print: 600x776 Bao gồm : Mã QR, các logo và đầy đủ thông tin chuyển khoản
|
|
5861
|
+
* @param id_bill: _id của đơn hàng
|
|
5862
|
+
* @param amount: tổng tiền khách phải thanh toán
|
|
5863
|
+
* @returns Promise => rsp ={vcode, msg, data(img_base64)} / error
|
|
5864
|
+
* vcode == 0: success
|
|
5865
|
+
*/
|
|
5866
|
+
vietqr_generateQR(accountNo: string, accountName: string, acqId: string, template: string, id_payment: string, amount: number): Promise<unknown>;
|
|
5815
5867
|
private publishObservableEventPromotions;
|
|
5816
5868
|
private observableLocalPromotions;
|
|
5817
5869
|
/**
|
|
@@ -22749,7 +22801,7 @@ export declare class VhQuerySales {
|
|
|
22749
22801
|
syncCollections_Desktop(): Promise<unknown>;
|
|
22750
22802
|
/**
|
|
22751
22803
|
* @example:
|
|
22752
|
-
this.vhQuerySales.
|
|
22804
|
+
this.vhQuerySales.syncCollections_Sales365_Desktop().then((bool:any)=>{
|
|
22753
22805
|
if(bool){
|
|
22754
22806
|
do something...
|
|
22755
22807
|
}
|