Skip to content

Commit 566ba53

Browse files
committed
Add CAEA methods
1 parent b9e53ce commit 566ba53

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

src/Class/ElectronicBilling.js

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,42 @@ module.exports = class ElectronicBilling extends AfipWebService {
163163
return result.ResultGet;
164164
}
165165

166+
/**
167+
* Create CAEA
168+
*
169+
* Send a request to AFIP servers to create a CAEA
170+
*
171+
* @param int period Time period
172+
* @param int fortnight Monthly fortnight (1 or 2)
173+
**/
174+
async createCAEA(period, fortnight)
175+
{
176+
const req = {
177+
'Periodo': period,
178+
'Orden': fortnight
179+
};
180+
181+
return (await this.executeRequest('FECAEASolicitar', req)).ResultGet;
182+
}
183+
184+
/**
185+
* Get CAEA
186+
*
187+
* Ask to AFIP servers for a CAEA information
188+
*
189+
* @param int period Time period
190+
* @param int fortnight Monthly fortnight (1 or 2)
191+
**/
192+
async getCAEA(period, fortnight)
193+
{
194+
const req = {
195+
'Periodo': period,
196+
'Orden': fortnight
197+
};
198+
199+
return (await this.executeRequest('FECAEAConsultar', req)).ResultGet;
200+
}
201+
166202
/**
167203
* Asks to AFIP Servers for sales points availables {@see WS
168204
* Specification item 4.11}

0 commit comments

Comments
 (0)