ionic-vhframeworks 10.8.2 → 10.8.4

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.
@@ -200,6 +200,7 @@ import { Subscription } from 'rxjs';
200
200
  })
201
201
  export class HomePage implements OnInit, OnDestroy {
202
202
  private PRODUCT_IDS: string[] = [
203
+ "inapp_xprinterpos_main_standard_1day,
203
204
  "inapp_xprinterpos_main_standard_1month",
204
205
  "inapp_xprinterpos_main_standard_12month",
205
206
  "inapp_xprinterpos_main_pro_1month",
@@ -243,7 +244,7 @@ export class HomePage implements OnInit, OnDestroy {
243
244
  const selectedProduct = this.products[this.selectedPlanIndex];
244
245
  if (selectedProduct) {
245
246
  console.log("==> product id", selectedProduct.id);
246
- this.iap2Service.purchase(selectedProduct.id);
247
+ this.iap2Service.purchase(selectedProduct.id, 'oIpCK6jgMxLHOPrwV1Sm');
247
248
  }
248
249
  }
249
250
  }
@@ -258,7 +259,7 @@ export declare class Iap2Service {
258
259
  * 👉 Nếu sai, store sẽ không nhận diện được sản phẩm.
259
260
  */
260
261
  private PRODUCT_IDS;
261
- private productID;
262
+ private app_product;
262
263
  private id_branch;
263
264
  /**
264
265
  * 🔹 Biến lưu instance store (được plugin quản lý)
@@ -297,9 +298,9 @@ export declare class Iap2Service {
297
298
  private registerHandlersForPurchase;
298
299
  /**
299
300
  * Thực hiện mua sản phẩm
300
- * @param productID - ID của sản phẩm cần mua
301
+ * @param app_product - sản phẩm trên chplay, appstore cần mua
301
302
  */
302
- purchase(productID: any, id_branch: string): void;
303
+ purchase(app_product: any, id_branch: string): void;
303
304
  /**
304
305
  * Refresh thông tin sản phẩm từ store
305
306
  * Cập nhật giá cả và thông tin sản phẩm mới nhất
@@ -6667,7 +6668,21 @@ export declare class VhQueryCafe {
6667
6668
  */
6668
6669
  getLicenseKEYs(query: any, projection?: object, sort?: object, limit?: number): Promise<unknown>;
6669
6670
  /**
6670
- * Tạo QR cho Shop quét thanh toán
6671
+ * Lấy về danh sách các ngân hàng (kèm logo) mà vietqr hỗ trợ tạo mã QR
6672
+ * @example:
6673
+ * this.vhQueryCafe.vietqr_getBanks()
6674
+ .then((rsp:any)=>{
6675
+ if(rsp.vcode === 0){
6676
+ }
6677
+ }, error=>{
6678
+ console.log(error)
6679
+ })
6680
+ * @returns Promise => rsp ={vcode, msg, data(array)} / error
6681
+ * vcode == 0: success
6682
+ */
6683
+ vietqr_getBanks(): Promise<unknown>;
6684
+ /**
6685
+ * Tạo mã QR cho Shop quét thanh toán vào tài khoản ngân hàng đã đăng ký Casso
6671
6686
  * @example:
6672
6687
  * this.vhQueryCafe.vietqr_generateQR('0909925354', 'LE DUC HUY', '970422', 'compact2', '674fd94a9ace7267deb685fd', 99000)
6673
6688
  .then((rsp:any)=>{
@@ -17637,7 +17652,21 @@ export declare class VhQuerySales {
17637
17652
  */
17638
17653
  getLicenseKEYs(query: any, projection?: object, sort?: object, limit?: number): Promise<unknown>;
17639
17654
  /**
17640
- * Tạo QR cho Shop quét thanh toán
17655
+ * Lấy về danh sách các ngân hàng (kèm logo) mà vietqr hỗ trợ tạo mã QR
17656
+ * @example:
17657
+ * this.vhQuerySales.vietqr_getBanks()
17658
+ .then((rsp:any)=>{
17659
+ if(rsp.vcode === 0){
17660
+ }
17661
+ }, error=>{
17662
+ console.log(error)
17663
+ })
17664
+ * @returns Promise => rsp ={vcode, msg, data(array)} / error
17665
+ * vcode == 0: success
17666
+ */
17667
+ vietqr_getBanks(): Promise<unknown>;
17668
+ /**
17669
+ * Tạo mã QR cho Shop quét thanh toán vào tài khoản ngân hàng đã đăng ký Casso
17641
17670
  * @example:
17642
17671
  * this.vhQuerySales.vietqr_generateQR('0909925354', 'LE DUC HUY', '970422', 'compact2', '674fd94a9ace7267deb685fd', 99000)
17643
17672
  .then((rsp:any)=>{
@@ -20795,7 +20824,7 @@ export declare class VhQueryDealer {
20795
20824
  */
20796
20825
  vietqr_getBanks(): Promise<unknown>;
20797
20826
  /**
20798
- * Tạo mã QR cho Đại quét thanh toán
20827
+ * Tạo mã QR cho Shop quét thanh toán vào tài khoản ngân hàng đã đăng ký Casso
20799
20828
  * @example:
20800
20829
  * this.vhQueryDealer.vietqr_generateQR('0909925354', 'LE DUC HUY', '970422', 'compact2', '674fd94a9ace7267deb685fd', 99000)
20801
20830
  .then((rsp:any)=>{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ionic-vhframeworks",
3
- "version": "10.8.2",
3
+ "version": "10.8.4",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^12.2.0",
6
6
  "@angular/core": "^12.2.0"