Skip to content

Commit 7bdd9c3

Browse files
committed
Update type definition
1 parent 5a35560 commit 7bdd9c3

File tree

3 files changed

+53
-1
lines changed

3 files changed

+53
-1
lines changed

types/Afip.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ declare class Afip {
1717
ElectronicBilling: ElectronicBilling;
1818
RegisterScopeFour: RegisterScopeFour;
1919
RegisterScopeFive: RegisterScopeFive;
20-
RegisterInscriptionProof: RegisterScopeFive;
20+
RegisterInscriptionProof: RegisterInscriptionProof;
2121
RegisterScopeTen: RegisterScopeTen;
2222
RegisterScopeThirteen: RegisterScopeThirteen;
2323
private GetServiceTA;
@@ -46,6 +46,7 @@ declare class Afip {
4646
import ElectronicBilling = require("./Class/ElectronicBilling");
4747
import RegisterScopeFour = require("./Class/RegisterScopeFour");
4848
import RegisterScopeFive = require("./Class/RegisterScopeFive");
49+
import RegisterInscriptionProof = require("./Class/RegisterInscriptionProof");
4950
import RegisterScopeTen = require("./Class/RegisterScopeTen");
5051
import RegisterScopeThirteen = require("./Class/RegisterScopeThirteen");
5152
import AfipWebService = require("./Class/AfipWebService");

types/Class/ElectronicBilling.d.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,24 @@ declare class ElectronicBilling extends AfipWebService {
6161
* {@see WS Specification item 4.19} or null if there not exists
6262
**/
6363
getVoucherInfo(number: any, salesPoint: any, type: any): Promise<any>;
64+
/**
65+
* Create CAEA
66+
*
67+
* Send a request to AFIP servers to create a CAEA
68+
*
69+
* @param int period Time period
70+
* @param int fortnight Monthly fortnight (1 or 2)
71+
**/
72+
createCAEA(period: any, fortnight: any): Promise<any>;
73+
/**
74+
* Get CAEA
75+
*
76+
* Ask to AFIP servers for a CAEA information
77+
*
78+
* @param int period Time period
79+
* @param int fortnight Monthly fortnight (1 or 2)
80+
**/
81+
getCAEA(period: any, fortnight: any): Promise<any>;
6482
/**
6583
* Asks to AFIP Servers for sales points availables {@see WS
6684
* Specification item 4.11}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
export = RegisterInscriptionProof;
2+
declare class RegisterInscriptionProof extends AfipWebService {
3+
constructor(afip: any);
4+
/**
5+
* Asks to web service for servers status {@see WS
6+
* Specification item 3.1}
7+
*
8+
* @return object { appserver : Web Service status,
9+
* dbserver : Database status, authserver : Autentication
10+
* server status}
11+
**/
12+
getServerStatus(): Promise<any>;
13+
/**
14+
* Asks to web service for taxpayer details {@see WS
15+
* Specification item 3.2}
16+
*
17+
* @throws Exception if exists an error in response
18+
*
19+
* @return object|null if taxpayer does not exists, return null,
20+
* if it exists, returns full response {@see
21+
* WS Specification item 3.2.2}
22+
**/
23+
getTaxpayerDetails(identifier: any): Promise<any>;
24+
/**
25+
* Asks to web service for taxpayers details
26+
*
27+
* @throws Exception if exists an error in response
28+
*
29+
* @return [object] returns web service full response
30+
**/
31+
getTaxpayersDetails(identifiers: any): Promise<any>;
32+
}
33+
import AfipWebService = require("./AfipWebService");

0 commit comments

Comments
 (0)