Skip to content

Commit 0abe92b

Browse files
committed
Fix missing setters for generic web services
1 parent 3e52665 commit 0abe92b

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

src/Afip.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ Afip.prototype.getLastRequestXML = async function() {
159159
* @param {string} service Web Service name
160160
* @param {any} options Web Service options
161161
*
162-
* @return AfipWebService Token Authorization for AFIP Web Service
162+
* @return AfipWebService New AFIP Web Service
163163
**/
164164
Afip.prototype.WebService = function (service, options = {}) {
165165
options['service'] = service;

src/Class/AfipWebService.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,22 @@ module.exports = class AfipWebService {
5959
**/
6060
this.options = options;
6161

62+
if (options['WSDL']) {
63+
this.WSDL = options['WSDL'];
64+
}
65+
66+
if (options['URL']) {
67+
this.URL = options['URL'];
68+
}
69+
70+
if (options['WSDL_TEST']) {
71+
this.WSDL_TEST = options['WSDL_TEST'];
72+
}
73+
74+
if (options['URL_TEST']) {
75+
this.URL_TEST = options['URL_TEST'];
76+
}
77+
6278
if (options['generic'] === true) {
6379
if (typeof options['service'] === 'undefined') {
6480
throw new Error("service field is required in options");

0 commit comments

Comments
 (0)