ionic-vhframeworks 9.5.0 → 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.
|
|
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(),
|