File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ Afip.prototype.getLastRequestXML = async function() {
159
159
* @param {string } service Web Service name
160
160
* @param {any } options Web Service options
161
161
*
162
- * @return AfipWebService Token Authorization for AFIP Web Service
162
+ * @return AfipWebService New AFIP Web Service
163
163
**/
164
164
Afip . prototype . WebService = function ( service , options = { } ) {
165
165
options [ 'service' ] = service ;
Original file line number Diff line number Diff line change @@ -59,6 +59,22 @@ module.exports = class AfipWebService {
59
59
**/
60
60
this . options = options ;
61
61
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
+
62
78
if ( options [ 'generic' ] === true ) {
63
79
if ( typeof options [ 'service' ] === 'undefined' ) {
64
80
throw new Error ( "service field is required in options" ) ;
You can’t perform that action at this time.
0 commit comments