ionic-vhframeworks 10.1.0 → 10.1.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.
@@ -20821,8 +20821,177 @@ export declare class VhEinvoice {
20821
20821
  * {"code": "3", "message": "Token hết hạn hoặc không đúng vui lòng kiểm tra lại!", "error": "Token hết hạn hoặc không đúng vui lòng kiểm tra lại!", "ok": false}
20822
20822
  */
20823
20823
  getTypeInvoiceSeries_byMinvoice(taxcode: string, token: string, Type?: number): Promise<any>;
20824
- createBill_noSign_byMinvoice(taxcode: string, username: string, password: string): Promise<any>;
20825
- createBill_Sign_byMinvoice(taxcode: string, username: string, password: string): void;
20824
+ /**
20825
+ * Hàm tra cứu số thuế
20826
+ * @example
20827
+ * this.vhEinvoice.searchTaxCodeV2_byMinvoice(tax)
20828
+ .then(()=>{
20829
+ //-----------your code here-----------
20830
+ },(error:any)=>{
20831
+ console.log('error', error)
20832
+ })
20833
+ * @param tax
20834
+ * @returns Promise => obj
20835
+ */
20836
+ searchTaxCodeV2_byMinvoice(tax: string): Promise<any>;
20837
+ /**
20838
+ * Hàm lấy về danh sách các ký tự hóa đơn đẵ đăng ký với thuế
20839
+ * @example
20840
+ * this.vhEinvoice.getInfoInvoice_byMinvoice(taxcode, token, params)
20841
+ .then(()=>{
20842
+ //-----------your code here-----------
20843
+ },(error:any)=>{
20844
+ console.log('error', error)
20845
+ })
20846
+ * @param taxcode
20847
+ * @param token
20848
+ * @param params:
20849
+ * Ý nghĩa params:
20850
+ * {number: 2, seri: '1C22TMX'} : Lấy thông tin hoá đơn thông qua Ký hiệu và Số hoá đơn
20851
+ * seri: Ký hiệu hóa đơn theo nghị định 123 cần lấy thông tin ('1C22TMX')
20852
+ * number: Số hóa đơn cần lấy thông tin (1,2,3...)
20853
+ * {id: '3a06a343-ff4d-21cd-fe31-2c5a0824636f'} : Lấy thông tin hoá đơn thông qua id tích hợp từ đối tác
20854
+ * id: ID hóa đơn do M-Invoice trả về
20855
+ * {keyApi: '720rv2222Q'} : Lấy thông tin hoá đơn thông qua keyApi tích hợp từ đối tác
20856
+ * keyApi: Key tích hợp từ đối tác truyền sang
20857
+ * @returns Promise => {"code": "00", "message": "Thành công"}
20858
+ */
20859
+ getInfoInvoice_byMinvoice(taxcode: string, token: string, params: any): Promise<any>;
20860
+ /**
20861
+ * Hàm lấy file xml thông qua id của hoá đơn
20862
+ * @example
20863
+ * this.vhEinvoice.exportXml_byMinvoice(taxcode, token, params)
20864
+ .then(()=>{
20865
+ //-----------your code here-----------
20866
+ },(error:any)=>{
20867
+ console.log('error', error)
20868
+ })
20869
+ * @param taxcode
20870
+ * @param token
20871
+ * @param params:
20872
+ * Ý nghĩa params:
20873
+ * {id: '3a06a343-ff4d-21cd-fe31-2c5a0824636f'} : Lấy thông tin hoá đơn thông qua id tích hợp từ đối tác
20874
+ * id: ID hóa đơn do M-Invoice trả về
20875
+ * @returns Promise => {"code": "00", "message": "Thành công"}
20876
+ */
20877
+ exportXml_byMinvoice(taxcode: string, token: string, params: any): Promise<any>;
20878
+ /**
20879
+ * Hàm lấy thông tin hóa đơn từ ngày - đến ngày và ký hiệu
20880
+ * @example
20881
+ * this.vhEinvoice.getInvoices_byMinvoice(taxcode, token, query)
20882
+ .then((data)=>{
20883
+ //-----------your code here-----------
20884
+ },(error:any)=>{
20885
+ console.log('error', error)
20886
+ })
20887
+ * @param taxcode
20888
+ * @param editmode
20889
+ * @param query: {
20890
+ "tuNgay": "2024-01-01",
20891
+ "denngay": "2024-01-29",
20892
+ "khieu": "1K24TDN",
20893
+ "start": 0,
20894
+ "count": 20,
20895
+ "coChiTiet": true
20896
+ }
20897
+ * @returns Promise => {"code": "00", "message": null, "ok": true, "total": 4, "data": [{},{}...]}
20898
+ */
20899
+ getInvoices_byMinvoice(taxcode: string, token: string, query: any): Promise<any>;
20900
+ /**
20901
+ * Hàm Thêm mới, sửa, xóa hóa đơn Chờ ký
20902
+ * @example
20903
+ * this.vhEinvoice.createBill_noSign_byMinvoice(taxcode, token, editmode, data)
20904
+ .then((data)=>{
20905
+ //-----------your code here-----------
20906
+ },(error:any)=>{
20907
+ console.log('error', error)
20908
+ })
20909
+ * @param taxcode
20910
+ * @param editmode
20911
+ * @param data
20912
+ * @returns Promise => {"code": "00", "message": null, "ok": true, "data": {}}
20913
+ */
20914
+ createBill_noSign_byMinvoice(taxcode: string, token: string, editmode: string, data: any): Promise<any>;
20915
+ /**
20916
+ * Hàm Thêm mới, sửa, xóa hóa đơn Chờ ký
20917
+ * @example
20918
+ * this.vhEinvoice.createBill_Sign_byMinvoice(taxcode, token, editmode, data)
20919
+ .then((data)=>{
20920
+ //-----------your code here-----------
20921
+ },(error:any)=>{
20922
+ console.log('error', error)
20923
+ })
20924
+ * @param taxcode
20925
+ * @param token
20926
+ * @param editmode
20927
+ * @param data
20928
+ * @returns Promise => {"code": "00", "message": null, "ok": true, "data": {}}
20929
+ */
20930
+ createBill_Sign_byMinvoice(taxcode: string, token: string, editmode: string, data: any): Promise<any>;
20931
+ /**
20932
+ * Hàm ký hóa đơn
20933
+ * @example
20934
+ * this.vhEinvoice.createBill_Sign_byMinvoice(taxcode, token, editmode, data)
20935
+ .then((data)=>{
20936
+ //-----------your code here-----------
20937
+ },(error:any)=>{
20938
+ console.log('error', error)
20939
+ })
20940
+ * @param taxcode
20941
+ * @param token
20942
+ * @param hoadon68_id : "5fc578a6-1ca1-46f9-ab4f-6a0de4b54c32"
20943
+ * @returns Promise => {"code": "00", "message": null, "ok": true, "data": {}}
20944
+ */
20945
+ signBill_byMinvoice(taxcode: string, token: string, hoadon68_id: string): Promise<any>;
20946
+ /**
20947
+ * Hàm hủy hóa đơn
20948
+ * @example
20949
+ * this.vhEinvoice.deleteBill_byMinvoice(taxcode, token, inv_InvoiceAuth_id, ngayvb, ghi_chu)
20950
+ .then((data)=>{
20951
+ //-----------your code here-----------
20952
+ },(error:any)=>{
20953
+ console.log('error', error)
20954
+ })
20955
+ * @param taxcode
20956
+ * @param token
20957
+ * @param inv_InvoiceAuth_id : "26da72ec-a3c4-49d0-90de-2d6a9fb2bdab"
20958
+ * @param ngayvb : "2022-09-11"
20959
+ * @param ghi_chu : "Sai thông tin tổng tiền hóa đơn, chưa gửi cho khách hàng"
20960
+ * @returns Promise => {"code": "00", "message": "Thành công"}
20961
+ */
20962
+ deleteBill_byMinvoice(taxcode: string, token: string, inv_InvoiceAuth_id: string, ngayvb: string, ghi_chu: string): Promise<any>;
20963
+ /**
20964
+ * Hàm điều chỉnh hóa đơn
20965
+ * @example
20966
+ * this.vhEinvoice.updateBill_byMinvoice(taxcode, token, inv_InvoiceAuth_id, inv_invoiceIssuedDate, data)
20967
+ .then((data)=>{
20968
+ //-----------your code here-----------
20969
+ },(error:any)=>{
20970
+ console.log('error', error)
20971
+ })
20972
+ * @param taxcode
20973
+ * @param token
20974
+ * @param inv_InvoiceAuth_id : "26da72ec-a3c4-49d0-90de-2d6a9fb2bdab"
20975
+ * @param inv_invoiceIssuedDate
20976
+ * @param data
20977
+ * @returns Promise => {"code": "00", "message": "Thành công"}
20978
+ */
20979
+ updateBill_byMinvoice(taxcode: string, token: string, inv_InvoiceAuth_id: string, inv_invoiceIssuedDate: string, data: any): Promise<any>;
20980
+ /**
20981
+ * Hàm điều chỉnh hóa đơn
20982
+ * @example
20983
+ * this.vhEinvoice.replaceBill_byMinvoice(taxcode, token, data)
20984
+ .then((data)=>{
20985
+ //-----------your code here-----------
20986
+ },(error:any)=>{
20987
+ console.log('error', error)
20988
+ })
20989
+ * @param taxcode
20990
+ * @param token
20991
+ * @param data
20992
+ * @returns Promise => {"code": "00", "message": "Thành công"}
20993
+ */
20994
+ replaceBill_byMinvoice(taxcode: string, token: string, data: any): Promise<any>;
20826
20995
  static ɵfac: i0.ɵɵFactoryDeclaration<VhEinvoice, never>;
20827
20996
  static ɵprov: i0.ɵɵInjectableDeclaration<VhEinvoice>;
20828
20997
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ionic-vhframeworks",
3
- "version": "10.1.0",
3
+ "version": "10.1.2",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^12.2.0",
6
6
  "@angular/core": "^12.2.0"