diff --git a/docs-old/.vuepress/components/Foo/Bar.vue b/docs-old/.vuepress/components/Foo/Bar.vue deleted file mode 100755 index 7ee8286..0000000 --- a/docs-old/.vuepress/components/Foo/Bar.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - diff --git a/docs-old/.vuepress/components/OtherComponent.vue b/docs-old/.vuepress/components/OtherComponent.vue deleted file mode 100755 index 1d97c7c..0000000 --- a/docs-old/.vuepress/components/OtherComponent.vue +++ /dev/null @@ -1,3 +0,0 @@ - diff --git a/docs-old/.vuepress/components/demo-component.vue b/docs-old/.vuepress/components/demo-component.vue deleted file mode 100755 index 7d49de7..0000000 --- a/docs-old/.vuepress/components/demo-component.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - diff --git a/docs-old/.vuepress/config.js b/docs-old/.vuepress/config.js deleted file mode 100755 index 9b023f6..0000000 --- a/docs-old/.vuepress/config.js +++ /dev/null @@ -1,104 +0,0 @@ -const { description } = require("../../package"); - -module.exports = { - // base: '/afip.ts/', - - /** - * Ref:https://v1.vuepress.vuejs.org/config/#title - */ - title: "AfipTs", - /** - * Ref:https://v1.vuepress.vuejs.org/config/#description - */ - description: description, - - /** - * Extra tags to be injected to the page HTML `` - * - * ref:https://v1.vuepress.vuejs.org/config/#head - */ - head: [ - ["meta", { name: "theme-color", content: "#3eaf7c" }], - ["meta", { name: "apple-mobile-web-app-capable", content: "yes" }], - [ - "meta", - { name: "apple-mobile-web-app-status-bar-style", content: "black" }, - ], - ], - - /** - * Theme configuration, here is the default theme configuration for VuePress. - * - * ref:https://v1.vuepress.vuejs.org/theme/default-theme-config.html - */ - themeConfig: { - repo: "https://github.com/ralcorta/afip.ts", - editLinks: true, - docsDir: "docs", - docsBranch: "main", - editLinkText: "Editar", - lastUpdated: true, - nav: [ - { - text: "Guia", - link: "/guide/", - }, - { - text: "Contribuir", - link: "/contributions/", - }, - // { - // text: 'Config', - // link: '/config/' - // } - ], - sidebar: { - "/guide/": [ - { - title: "Guia", - collapsable: false, - children: [ - "", - "basic-use", - "config", - "behaviour", - "Facturación-Electrónica", - "Consulta-al-padron-de-AFIP-alcance-4", - "Consulta-al-padron-de-AFIP-alcance-5", - "Consulta-al-padron-de-AFIP-alcance-10", - "Consulta-al-padron-de-AFIP-alcance-13", - ], - }, - ], - // '/contributions/': [ - // { - // title: 'Support', - // collapsable: false, - // children: [ - // '', - // ] - // }, - // ], - }, - }, - - /** - * Apply plugins,ref:https://v1.vuepress.vuejs.org/zh/plugin/ - */ - plugins: ["@vuepress/plugin-back-to-top", "@vuepress/plugin-medium-zoom"], - - locales: { - // The key is the path for the locale to be nested under. - // As a special case, the default locale can use '/' as its path. - "/": { - lang: "es", // this will be set as the lang attribute on - title: "Afip.ts", - description: "SDK para Web Services de Afip", - }, - "/en/": { - lang: "en-US", - title: "Afip.ts", - description: "Nodejs Package to use Afip Web Services", - }, - }, -}; diff --git a/docs-old/.vuepress/dist/404.html b/docs-old/.vuepress/dist/404.html deleted file mode 100644 index 8ed655f..0000000 --- a/docs-old/.vuepress/dist/404.html +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - Afip.ts - - - - - - - - - - - -

404

How did we get here?
- Take me home. -
- - - diff --git a/docs-old/.vuepress/dist/assets/css/0.styles.b083db7c.css b/docs-old/.vuepress/dist/assets/css/0.styles.b083db7c.css deleted file mode 100644 index c571a51..0000000 --- a/docs-old/.vuepress/dist/assets/css/0.styles.b083db7c.css +++ /dev/null @@ -1 +0,0 @@ -code[class*=language-],pre[class*=language-]{color:#ccc;background:none;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;hyphens:none}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background:#2d2d2d}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.block-comment,.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#999}.token.punctuation{color:#ccc}.token.attr-name,.token.deleted,.token.namespace,.token.tag{color:#e2777a}.token.function-name{color:#6196cc}.token.boolean,.token.function,.token.number{color:#f08d49}.token.class-name,.token.constant,.token.property,.token.symbol{color:#f8c555}.token.atrule,.token.builtin,.token.important,.token.keyword,.token.selector{color:#cc99cd}.token.attr-value,.token.char,.token.regex,.token.string,.token.variable{color:#7ec699}.token.entity,.token.operator,.token.url{color:#67cdcc}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}.token.inserted{color:green}.theme-default-content code{color:#476582;padding:.25rem .5rem;margin:0;font-size:.85em;background-color:rgba(27,31,35,.05);border-radius:3px}.theme-default-content code .token.deleted{color:#ec5975}.theme-default-content code .token.inserted{color:#3eaf7c}.theme-default-content pre,.theme-default-content pre[class*=language-]{line-height:1.4;padding:1.25rem 1.5rem;margin:.85rem 0;background-color:#282c34;border-radius:6px;overflow:auto}.theme-default-content pre[class*=language-] code,.theme-default-content pre code{color:#fff;padding:0;background-color:transparent;border-radius:0}div[class*=language-]{position:relative;background-color:#282c34;border-radius:6px}div[class*=language-] .highlight-lines{-webkit-user-select:none;user-select:none;padding-top:1.3rem;position:absolute;top:0;left:0;width:100%;line-height:1.4}div[class*=language-] .highlight-lines .highlighted{background-color:rgba(0,0,0,.66)}div[class*=language-] pre,div[class*=language-] pre[class*=language-]{background:transparent;position:relative;z-index:1}div[class*=language-]:before{position:absolute;z-index:3;top:.8em;right:1em;font-size:.75rem;color:hsla(0,0%,100%,.4)}div[class*=language-]:not(.line-numbers-mode) .line-numbers-wrapper{display:none}div[class*=language-].line-numbers-mode .highlight-lines .highlighted{position:relative}div[class*=language-].line-numbers-mode .highlight-lines .highlighted:before{content:" ";position:absolute;z-index:3;left:0;top:0;display:block;width:3.5rem;height:100%;background-color:rgba(0,0,0,.66)}div[class*=language-].line-numbers-mode pre{padding-left:4.5rem;vertical-align:middle}div[class*=language-].line-numbers-mode .line-numbers-wrapper{position:absolute;top:0;width:3.5rem;text-align:center;color:hsla(0,0%,100%,.3);padding:1.25rem 0;line-height:1.4}div[class*=language-].line-numbers-mode .line-numbers-wrapper br{-webkit-user-select:none;user-select:none}div[class*=language-].line-numbers-mode .line-numbers-wrapper .line-number{position:relative;z-index:4;-webkit-user-select:none;user-select:none;font-size:.85em}div[class*=language-].line-numbers-mode:after{content:"";position:absolute;z-index:2;top:0;left:0;width:3.5rem;height:100%;border-radius:6px 0 0 6px;border-right:1px solid rgba(0,0,0,.66);background-color:#282c34}div[class~=language-js]:before{content:"js"}div[class~=language-ts]:before{content:"ts"}div[class~=language-html]:before{content:"html"}div[class~=language-md]:before{content:"md"}div[class~=language-vue]:before{content:"vue"}div[class~=language-css]:before{content:"css"}div[class~=language-sass]:before{content:"sass"}div[class~=language-scss]:before{content:"scss"}div[class~=language-less]:before{content:"less"}div[class~=language-stylus]:before{content:"stylus"}div[class~=language-go]:before{content:"go"}div[class~=language-java]:before{content:"java"}div[class~=language-c]:before{content:"c"}div[class~=language-sh]:before{content:"sh"}div[class~=language-yaml]:before{content:"yaml"}div[class~=language-py]:before{content:"py"}div[class~=language-docker]:before{content:"docker"}div[class~=language-dockerfile]:before{content:"dockerfile"}div[class~=language-makefile]:before{content:"makefile"}div[class~=language-javascript]:before{content:"js"}div[class~=language-typescript]:before{content:"ts"}div[class~=language-markup]:before{content:"html"}div[class~=language-markdown]:before{content:"md"}div[class~=language-json]:before{content:"json"}div[class~=language-ruby]:before{content:"rb"}div[class~=language-python]:before{content:"py"}div[class~=language-bash]:before{content:"sh"}div[class~=language-php]:before{content:"php"}.custom-block .custom-block-title{font-weight:600;margin-bottom:-.4rem}.custom-block.danger,.custom-block.tip,.custom-block.warning{padding:.1rem 1.5rem;border-left-width:.5rem;border-left-style:solid;margin:1rem 0}.custom-block.tip{background-color:#f3f5f7;border-color:#42b983}.custom-block.warning{background-color:rgba(255,229,100,.3);border-color:#e7c000;color:#6b5900}.custom-block.warning .custom-block-title{color:#b29400}.custom-block.warning a{color:#2c3e50}.custom-block.danger{background-color:#ffe6e6;border-color:#c00;color:#4d0000}.custom-block.danger .custom-block-title{color:#900}.custom-block.danger a{color:#2c3e50}.custom-block.details{display:block;position:relative;border-radius:2px;margin:1.6em 0;padding:1.6em;background-color:#eee}.custom-block.details h4{margin-top:0}.custom-block.details figure:last-child,.custom-block.details p:last-child{margin-bottom:0;padding-bottom:0}.custom-block.details summary{outline:none;cursor:pointer}.arrow{display:inline-block;width:0;height:0}.arrow.up{border-bottom:6px solid #ccc}.arrow.down,.arrow.up{border-left:4px solid transparent;border-right:4px solid transparent}.arrow.down{border-top:6px solid #ccc}.arrow.right{border-left:6px solid #ccc}.arrow.left,.arrow.right{border-top:4px solid transparent;border-bottom:4px solid transparent}.arrow.left{border-right:6px solid #ccc}.theme-default-content:not(.custom){max-width:740px;margin:0 auto;padding:2rem 2.5rem}@media (max-width:959px){.theme-default-content:not(.custom){padding:2rem}}@media (max-width:419px){.theme-default-content:not(.custom){padding:1.5rem}}.table-of-contents .badge{vertical-align:middle}body,html{padding:0;margin:0;background-color:#fff}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:16px;color:#2c3e50}.page{padding-left:20rem}.navbar{z-index:20;right:0;height:3.6rem;background-color:#fff;box-sizing:border-box;border-bottom:1px solid #eaecef}.navbar,.sidebar-mask{position:fixed;top:0;left:0}.sidebar-mask{z-index:9;width:100vw;height:100vh;display:none}.sidebar{font-size:16px;background-color:#fff;width:20rem;position:fixed;z-index:10;margin:0;top:3.6rem;left:0;bottom:0;box-sizing:border-box;border-right:1px solid #eaecef;overflow-y:auto}.theme-default-content:not(.custom)>:first-child{margin-top:3.6rem}.theme-default-content:not(.custom) a:hover{text-decoration:underline}.theme-default-content:not(.custom) p.demo{padding:1rem 1.5rem;border:1px solid #ddd;border-radius:4px}.theme-default-content:not(.custom) img{max-width:100%}.theme-default-content.custom{padding:0;margin:0}.theme-default-content.custom img{max-width:100%}a{font-weight:500;text-decoration:none}a,p a code{color:#3eaf7c}p a code{font-weight:400}kbd{background:#eee;border:.15rem solid #ddd;border-bottom:.25rem solid #ddd;border-radius:.15rem;padding:0 .15em}blockquote{font-size:1rem;color:#999;border-left:.2rem solid #dfe2e5;margin:1rem 0;padding:.25rem 0 .25rem 1rem}blockquote>p{margin:0}ol,ul{padding-left:1.2em}strong{font-weight:600}h1,h2,h3,h4,h5,h6{font-weight:600;line-height:1.25}.theme-default-content:not(.custom)>h1,.theme-default-content:not(.custom)>h2,.theme-default-content:not(.custom)>h3,.theme-default-content:not(.custom)>h4,.theme-default-content:not(.custom)>h5,.theme-default-content:not(.custom)>h6{margin-top:-3.1rem;padding-top:4.6rem;margin-bottom:0}.theme-default-content:not(.custom)>h1:first-child,.theme-default-content:not(.custom)>h2:first-child,.theme-default-content:not(.custom)>h3:first-child,.theme-default-content:not(.custom)>h4:first-child,.theme-default-content:not(.custom)>h5:first-child,.theme-default-content:not(.custom)>h6:first-child{margin-top:-1.5rem;margin-bottom:1rem}.theme-default-content:not(.custom)>h1:first-child+.custom-block,.theme-default-content:not(.custom)>h1:first-child+p,.theme-default-content:not(.custom)>h1:first-child+pre,.theme-default-content:not(.custom)>h2:first-child+.custom-block,.theme-default-content:not(.custom)>h2:first-child+p,.theme-default-content:not(.custom)>h2:first-child+pre,.theme-default-content:not(.custom)>h3:first-child+.custom-block,.theme-default-content:not(.custom)>h3:first-child+p,.theme-default-content:not(.custom)>h3:first-child+pre,.theme-default-content:not(.custom)>h4:first-child+.custom-block,.theme-default-content:not(.custom)>h4:first-child+p,.theme-default-content:not(.custom)>h4:first-child+pre,.theme-default-content:not(.custom)>h5:first-child+.custom-block,.theme-default-content:not(.custom)>h5:first-child+p,.theme-default-content:not(.custom)>h5:first-child+pre,.theme-default-content:not(.custom)>h6:first-child+.custom-block,.theme-default-content:not(.custom)>h6:first-child+p,.theme-default-content:not(.custom)>h6:first-child+pre{margin-top:2rem}h1:focus .header-anchor,h1:hover .header-anchor,h2:focus .header-anchor,h2:hover .header-anchor,h3:focus .header-anchor,h3:hover .header-anchor,h4:focus .header-anchor,h4:hover .header-anchor,h5:focus .header-anchor,h5:hover .header-anchor,h6:focus .header-anchor,h6:hover .header-anchor{opacity:1}h1{font-size:2.2rem}h2{font-size:1.65rem;padding-bottom:.3rem;border-bottom:1px solid #eaecef}h3{font-size:1.35rem}a.header-anchor{font-size:.85em;float:left;margin-left:-.87em;padding-right:.23em;margin-top:.125em;opacity:0}a.header-anchor:focus,a.header-anchor:hover{text-decoration:none}.line-number,code,kbd{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}ol,p,ul{line-height:1.7}hr{border:0;border-top:1px solid #eaecef}table{border-collapse:collapse;margin:1rem 0;display:block;overflow-x:auto}tr{border-top:1px solid #dfe2e5}tr:nth-child(2n){background-color:#f6f8fa}td,th{border:1px solid #dfe2e5;padding:.6em 1em}.theme-container.sidebar-open .sidebar-mask{display:block}.theme-container.no-navbar .theme-default-content:not(.custom)>h1,.theme-container.no-navbar h2,.theme-container.no-navbar h3,.theme-container.no-navbar h4,.theme-container.no-navbar h5,.theme-container.no-navbar h6{margin-top:1.5rem;padding-top:0}.theme-container.no-navbar .sidebar{top:0}@media (min-width:720px){.theme-container.no-sidebar .sidebar{display:none}.theme-container.no-sidebar .page{padding-left:0}}@media (max-width:959px){.sidebar{font-size:15px;width:16.4rem}.page{padding-left:16.4rem}}@media (max-width:719px){.sidebar{top:0;padding-top:3.6rem;transform:translateX(-100%);transition:transform .2s ease}.page{padding-left:0}.theme-container.sidebar-open .sidebar{transform:translateX(0)}.theme-container.no-navbar .sidebar{padding-top:0}}@media (max-width:419px){h1{font-size:1.9rem}.theme-default-content div[class*=language-]{margin:.85rem -1.5rem;border-radius:0}}.home .hero img{max-width:450px!important}#nprogress{pointer-events:none}#nprogress .bar{background:#3eaf7c;position:fixed;z-index:1031;top:0;left:0;width:100%;height:2px}#nprogress .peg{display:block;position:absolute;right:0;width:100px;height:100%;box-shadow:0 0 10px #3eaf7c,0 0 5px #3eaf7c;opacity:1;transform:rotate(3deg) translateY(-4px)}#nprogress .spinner{display:block;position:fixed;z-index:1031;top:15px;right:15px}#nprogress .spinner-icon{width:18px;height:18px;box-sizing:border-box;border-color:#3eaf7c transparent transparent #3eaf7c;border-style:solid;border-width:2px;border-radius:50%;animation:nprogress-spinner .4s linear infinite}.nprogress-custom-parent{overflow:hidden;position:relative}.nprogress-custom-parent #nprogress .bar,.nprogress-custom-parent #nprogress .spinner{position:absolute}@keyframes nprogress-spinner{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.icon.outbound{color:#aaa;display:inline-block;vertical-align:middle;position:relative;top:-1px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.home{padding:3.6rem 2rem 0;max-width:960px;margin:0 auto;display:block}.home .hero{text-align:center}.home .hero img{max-width:100%;max-height:280px;display:block;margin:3rem auto 1.5rem}.home .hero h1{font-size:3rem}.home .hero .action,.home .hero .description,.home .hero h1{margin:1.8rem auto}.home .hero .description{max-width:35rem;font-size:1.6rem;line-height:1.3;color:#6a8bad}.home .hero .action-button{display:inline-block;font-size:1.2rem;color:#fff;background-color:#3eaf7c;padding:.8rem 1.6rem;border-radius:4px;transition:background-color .1s ease;box-sizing:border-box;border-bottom:1px solid #389d70}.home .hero .action-button:hover{background-color:#4abf8a}.home .features{border-top:1px solid #eaecef;padding:1.2rem 0;margin-top:2.5rem;display:flex;flex-wrap:wrap;align-items:flex-start;align-content:stretch;justify-content:space-between}.home .feature{flex-grow:1;flex-basis:30%;max-width:30%}.home .feature h2{font-size:1.4rem;font-weight:500;border-bottom:none;padding-bottom:0;color:#3a5169}.home .feature p{color:#4e6e8e}.home .footer{padding:2.5rem;border-top:1px solid #eaecef;text-align:center;color:#4e6e8e}@media (max-width:719px){.home .features{flex-direction:column}.home .feature{max-width:100%;padding:0 2.5rem}}@media (max-width:419px){.home{padding-left:1.5rem;padding-right:1.5rem}.home .hero img{max-height:210px;margin:2rem auto 1.2rem}.home .hero h1{font-size:2rem}.home .hero .action,.home .hero .description,.home .hero h1{margin:1.2rem auto}.home .hero .description{font-size:1.2rem}.home .hero .action-button{font-size:1rem;padding:.6rem 1.2rem}.home .feature h2{font-size:1.25rem}}.search-box{display:inline-block;position:relative;margin-right:1rem}.search-box input{cursor:text;width:10rem;height:2rem;color:#4e6e8e;display:inline-block;border:1px solid #cfd4db;border-radius:2rem;font-size:.9rem;line-height:2rem;padding:0 .5rem 0 2rem;outline:none;transition:all .2s ease;background:#fff url(/assets/img/search.83621669.svg) .6rem .5rem no-repeat;background-size:1rem}.search-box input:focus{cursor:auto;border-color:#3eaf7c}.search-box .suggestions{background:#fff;width:20rem;position:absolute;top:2rem;border:1px solid #cfd4db;border-radius:6px;padding:.4rem;list-style-type:none}.search-box .suggestions.align-right{right:0}.search-box .suggestion{line-height:1.4;padding:.4rem .6rem;border-radius:4px;cursor:pointer}.search-box .suggestion a{white-space:normal;color:#5d82a6}.search-box .suggestion a .page-title{font-weight:600}.search-box .suggestion a .header{font-size:.9em;margin-left:.25em}.search-box .suggestion.focused{background-color:#f3f4f5}.search-box .suggestion.focused a{color:#3eaf7c}@media (max-width:959px){.search-box input{cursor:pointer;width:0;border-color:transparent;position:relative}.search-box input:focus{cursor:text;left:0;width:10rem}}@media (-ms-high-contrast:none){.search-box input{height:2rem}}@media (max-width:959px) and (min-width:719px){.search-box .suggestions{left:0}}@media (max-width:719px){.search-box{margin-right:0}.search-box input{left:1rem}.search-box .suggestions{right:0}}@media (max-width:419px){.search-box .suggestions{width:calc(100vw - 4rem)}.search-box input:focus{width:8rem}}.sidebar-button{cursor:pointer;display:none;width:1.25rem;height:1.25rem;position:absolute;padding:.6rem;top:.6rem;left:1rem}.sidebar-button .icon{display:block;width:1.25rem;height:1.25rem}@media (max-width:719px){.sidebar-button{display:block}}.dropdown-enter,.dropdown-leave-to{height:0!important}.dropdown-wrapper{cursor:pointer}.dropdown-wrapper .dropdown-title,.dropdown-wrapper .mobile-dropdown-title{display:block;font-size:.9rem;font-family:inherit;cursor:inherit;padding:inherit;line-height:1.4rem;background:transparent;border:none;font-weight:500;color:#2c3e50}.dropdown-wrapper .dropdown-title:hover,.dropdown-wrapper .mobile-dropdown-title:hover{border-color:transparent}.dropdown-wrapper .dropdown-title .arrow,.dropdown-wrapper .mobile-dropdown-title .arrow{vertical-align:middle;margin-top:-1px;margin-left:.4rem}.dropdown-wrapper .mobile-dropdown-title{display:none;font-weight:600}.dropdown-wrapper .mobile-dropdown-title font-size inherit:hover{color:#3eaf7c}.dropdown-wrapper .nav-dropdown .dropdown-item{color:inherit;line-height:1.7rem}.dropdown-wrapper .nav-dropdown .dropdown-item h4{margin:.45rem 0 0;border-top:1px solid #eee;padding:1rem 1.5rem .45rem 1.25rem}.dropdown-wrapper .nav-dropdown .dropdown-item .dropdown-subitem-wrapper{padding:0;list-style:none}.dropdown-wrapper .nav-dropdown .dropdown-item .dropdown-subitem-wrapper .dropdown-subitem{font-size:.9em}.dropdown-wrapper .nav-dropdown .dropdown-item a{display:block;line-height:1.7rem;position:relative;border-bottom:none;font-weight:400;margin-bottom:0;padding:0 1.5rem 0 1.25rem}.dropdown-wrapper .nav-dropdown .dropdown-item a.router-link-active,.dropdown-wrapper .nav-dropdown .dropdown-item a:hover{color:#3eaf7c}.dropdown-wrapper .nav-dropdown .dropdown-item a.router-link-active:after{content:"";width:0;height:0;border-left:5px solid #3eaf7c;border-top:3px solid transparent;border-bottom:3px solid transparent;position:absolute;top:calc(50% - 2px);left:9px}.dropdown-wrapper .nav-dropdown .dropdown-item:first-child h4{margin-top:0;padding-top:0;border-top:0}@media (max-width:719px){.dropdown-wrapper.open .dropdown-title{margin-bottom:.5rem}.dropdown-wrapper .dropdown-title{display:none}.dropdown-wrapper .mobile-dropdown-title{display:block}.dropdown-wrapper .nav-dropdown{transition:height .1s ease-out;overflow:hidden}.dropdown-wrapper .nav-dropdown .dropdown-item h4{border-top:0;margin-top:0;padding-top:0}.dropdown-wrapper .nav-dropdown .dropdown-item>a,.dropdown-wrapper .nav-dropdown .dropdown-item h4{font-size:15px;line-height:2rem}.dropdown-wrapper .nav-dropdown .dropdown-item .dropdown-subitem{font-size:14px;padding-left:1rem}}@media (min-width:719px){.dropdown-wrapper{height:1.8rem}.dropdown-wrapper.open .nav-dropdown,.dropdown-wrapper:hover .nav-dropdown{display:block!important}.dropdown-wrapper.open:blur{display:none}.dropdown-wrapper .nav-dropdown{display:none;height:auto!important;box-sizing:border-box;max-height:calc(100vh - 2.7rem);overflow-y:auto;position:absolute;top:100%;right:0;background-color:#fff;padding:.6rem 0;border:1px solid;border-color:#ddd #ddd #ccc;text-align:left;border-radius:.25rem;white-space:nowrap;margin:0}}.nav-links{display:inline-block}.nav-links a{line-height:1.4rem;color:inherit}.nav-links a.router-link-active,.nav-links a:hover{color:#3eaf7c}.nav-links .nav-item{position:relative;display:inline-block;margin-left:1.5rem;line-height:2rem}.nav-links .nav-item:first-child{margin-left:0}.nav-links .repo-link{margin-left:1.5rem}@media (max-width:719px){.nav-links .nav-item,.nav-links .repo-link{margin-left:0}}@media (min-width:719px){.nav-links a.router-link-active,.nav-links a:hover{color:#2c3e50}.nav-item>a:not(.external).router-link-active,.nav-item>a:not(.external):hover{margin-bottom:-2px;border-bottom:2px solid #46bd87}}.navbar{padding:.7rem 1.5rem;line-height:2.2rem}.navbar a,.navbar img,.navbar span{display:inline-block}.navbar .logo{height:2.2rem;min-width:2.2rem;margin-right:.8rem;vertical-align:top}.navbar .site-name{font-size:1.3rem;font-weight:600;color:#2c3e50;position:relative}.navbar .links{padding-left:1.5rem;box-sizing:border-box;background-color:#fff;white-space:nowrap;font-size:.9rem;position:absolute;right:1.5rem;top:.7rem;display:flex}.navbar .links .search-box{flex:0 0 auto;vertical-align:top}@media (max-width:719px){.navbar{padding-left:4rem}.navbar .can-hide{display:none}.navbar .links{padding-left:1.5rem}.navbar .site-name{width:calc(100vw - 9.4rem);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}}.page-edit{max-width:740px;margin:0 auto;padding:2rem 2.5rem}@media (max-width:959px){.page-edit{padding:2rem}}@media (max-width:419px){.page-edit{padding:1.5rem}}.page-edit{padding-top:1rem;padding-bottom:1rem;overflow:auto}.page-edit .edit-link{display:inline-block}.page-edit .edit-link a{color:#4e6e8e;margin-right:.25rem}.page-edit .last-updated{float:right;font-size:.9em}.page-edit .last-updated .prefix{font-weight:500;color:#4e6e8e}.page-edit .last-updated .time{font-weight:400;color:#767676}@media (max-width:719px){.page-edit .edit-link{margin-bottom:.5rem}.page-edit .last-updated{font-size:.8em;float:none;text-align:left}}.page-nav{max-width:740px;margin:0 auto;padding:2rem 2.5rem}@media (max-width:959px){.page-nav{padding:2rem}}@media (max-width:419px){.page-nav{padding:1.5rem}}.page-nav{padding-top:1rem;padding-bottom:0}.page-nav .inner{min-height:2rem;margin-top:0;border-top:1px solid #eaecef;padding-top:1rem;overflow:auto}.page-nav .next{float:right}.page{padding-bottom:2rem;display:block}.sidebar-group .sidebar-group{padding-left:.5em}.sidebar-group:not(.collapsable) .sidebar-heading:not(.clickable){cursor:auto;color:inherit}.sidebar-group.is-sub-group{padding-left:0}.sidebar-group.is-sub-group>.sidebar-heading{font-size:.95em;line-height:1.4;font-weight:400;padding-left:2rem}.sidebar-group.is-sub-group>.sidebar-heading:not(.clickable){opacity:.5}.sidebar-group.is-sub-group>.sidebar-group-items{padding-left:1rem}.sidebar-group.is-sub-group>.sidebar-group-items>li>.sidebar-link{font-size:.95em;border-left:none}.sidebar-group.depth-2>.sidebar-heading{border-left:none}.sidebar-heading{color:#2c3e50;transition:color .15s ease;cursor:pointer;font-size:1.1em;font-weight:700;padding:.35rem 1.5rem .35rem 1.25rem;width:100%;box-sizing:border-box;margin:0;border-left:.25rem solid transparent}.sidebar-heading.open,.sidebar-heading:hover{color:inherit}.sidebar-heading .arrow{position:relative;top:-.12em;left:.5em}.sidebar-heading.clickable.active{font-weight:600;color:#3eaf7c;border-left-color:#3eaf7c}.sidebar-heading.clickable:hover{color:#3eaf7c}.sidebar-group-items{transition:height .1s ease-out;font-size:.95em;overflow:hidden}.sidebar .sidebar-sub-headers{padding-left:1rem;font-size:.95em}a.sidebar-link{font-size:1em;font-weight:400;display:inline-block;color:#2c3e50;border-left:.25rem solid transparent;padding:.35rem 1rem .35rem 1.25rem;line-height:1.4;width:100%;box-sizing:border-box}a.sidebar-link:hover{color:#3eaf7c}a.sidebar-link.active{font-weight:600;color:#3eaf7c;border-left-color:#3eaf7c}.sidebar-group a.sidebar-link{padding-left:2rem}.sidebar-sub-headers a.sidebar-link{padding-top:.25rem;padding-bottom:.25rem;border-left:none}.sidebar-sub-headers a.sidebar-link.active{font-weight:500}.sidebar ul{padding:0;margin:0;list-style-type:none}.sidebar a{display:inline-block}.sidebar .nav-links{display:none;border-bottom:1px solid #eaecef;padding:.5rem 0 .75rem}.sidebar .nav-links a{font-weight:600}.sidebar .nav-links .nav-item,.sidebar .nav-links .repo-link{display:block;line-height:1.25rem;font-size:1.1em;padding:.5rem 0 .5rem 1.5rem}.sidebar>.sidebar-links{padding:1.5rem 0}.sidebar>.sidebar-links>li>a.sidebar-link{font-size:1.1em;line-height:1.7;font-weight:700}.sidebar>.sidebar-links>li:not(:first-child){margin-top:.75rem}@media (max-width:719px){.sidebar .nav-links{display:block}.sidebar .nav-links .dropdown-wrapper .nav-dropdown .dropdown-item a.router-link-active:after{top:calc(1rem - 2px)}.sidebar>.sidebar-links{padding:1rem 0}}.theme-code-block[data-v-396279e5]{display:none}.theme-code-block__active[data-v-396279e5]{display:block}.theme-code-block>pre[data-v-396279e5]{background-color:orange}.badge[data-v-5a14436c]{display:inline-block;font-size:14px;height:18px;line-height:18px;border-radius:3px;padding:0 6px;color:#fff}.badge.green[data-v-5a14436c],.badge.tip[data-v-5a14436c],.badge[data-v-5a14436c]{background-color:#42b983}.badge.error[data-v-5a14436c]{background-color:#da5961}.badge.warn[data-v-5a14436c],.badge.warning[data-v-5a14436c],.badge.yellow[data-v-5a14436c]{background-color:#e7c000}.badge+.badge[data-v-5a14436c]{margin-left:5px}.theme-code-group__nav[data-v-6b582350]{margin-bottom:-35px;background-color:#282c34;padding-bottom:22px;border-top-left-radius:6px;border-top-right-radius:6px;padding-left:10px;padding-top:10px}.theme-code-group__ul[data-v-6b582350]{margin:auto 0;padding-left:0;display:inline-flex;list-style:none}.theme-code-group__nav-tab[data-v-6b582350]{border:0;padding:5px;cursor:pointer;background-color:transparent;font-size:.85em;line-height:1.4;color:hsla(0,0%,100%,.9);font-weight:600}.theme-code-group__nav-tab-active[data-v-6b582350]{border-bottom:1px solid #42b983}.pre-blank[data-v-6b582350]{color:#42b983} \ No newline at end of file diff --git a/docs-old/.vuepress/dist/assets/img/search.83621669.svg b/docs-old/.vuepress/dist/assets/img/search.83621669.svg deleted file mode 100644 index 03d8391..0000000 --- a/docs-old/.vuepress/dist/assets/img/search.83621669.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/docs-old/.vuepress/dist/assets/js/10.187fe4a1.js b/docs-old/.vuepress/dist/assets/js/10.187fe4a1.js deleted file mode 100644 index 8e28d75..0000000 --- a/docs-old/.vuepress/dist/assets/js/10.187fe4a1.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{281:function(t,n,s){"use strict";s.r(n);var e=s(14),o=Object(e.a)({},(function(){return(0,this._self._c)("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}})}),[],!1,null,null,null);n.default=o.exports}}]); \ No newline at end of file diff --git a/docs-old/.vuepress/dist/assets/js/11.2889eef5.js b/docs-old/.vuepress/dist/assets/js/11.2889eef5.js deleted file mode 100644 index 5d2d156..0000000 --- a/docs-old/.vuepress/dist/assets/js/11.2889eef5.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[11],{282:function(e,t,a){"use strict";a.r(t);var r=a(14),s=Object(r.a)({},(function(){var e=this,t=e._self._c;return t("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[t("h1",{attrs:{id:"contribuciones"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#contribuciones"}},[e._v("#")]),e._v(" Contribuciones")]),e._v(" "),t("h3",{attrs:{id:"commit"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#commit"}},[e._v("#")]),e._v(" Commit")]),e._v(" "),t("p",[e._v("Usamos "),t("a",{attrs:{href:"https://www.npmjs.com/package/semantic-release",target:"_blank",rel:"noopener noreferrer"}},[e._v('"semantic release library"'),t("OutboundLink")],1),e._v(" (https://www.npmjs.com/package/semantic-release) para generar nuestras nuevas versiones, tags y changelogs. Para esto necesitamos specificar un mensaje en los commits con un formato que permita determinar que version es aumentada, y tambien ayudar a mejorar el CHANGELOG.md")]),e._v(" "),t("table",[t("thead",[t("tr",[t("th",[e._v("Commit message")]),e._v(" "),t("th",[e._v("Release type")])])]),e._v(" "),t("tbody",[t("tr",[t("td",[t("code",[e._v("fix(pencil): stop graphite breaking when too much pressure applied")])]),e._v(" "),t("td",[e._v("Patch Release")])]),e._v(" "),t("tr",[t("td",[t("code",[e._v("feat(pencil): add 'graphiteWidth' option")])]),e._v(" "),t("td",[t("s",[e._v("Minor")]),e._v(" Feature Release")])]),e._v(" "),t("tr",[t("td",[t("code",[e._v("perf(pencil): remove graphiteWidth option")]),t("br"),t("br"),t("code",[e._v("BREAKING CHANGE: The graphiteWidth option has been removed.")]),t("br"),t("code",[e._v("The default graphite width of 10mm is always used for performance reasons.")])]),e._v(" "),t("td",[t("s",[e._v("Major")]),e._v(" Breaking Release")])])])])])}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs-old/.vuepress/dist/assets/js/12.fa959fd4.js b/docs-old/.vuepress/dist/assets/js/12.fa959fd4.js deleted file mode 100644 index b556dfe..0000000 --- a/docs-old/.vuepress/dist/assets/js/12.fa959fd4.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[12],{285:function(t,s,n){"use strict";n.r(s);var a=n(14),i=Object(a.a)({},(function(){var t=this._self._c;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h2",{attrs:{id:"translation"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#translation"}},[this._v("#")]),this._v(" Translation")]),this._v(" "),t("ul",[t("li",[this._v("Status: "),t("code",[this._v("Comming soon...")])])])])}),[],!1,null,null,null);s.default=i.exports}}]); \ No newline at end of file diff --git a/docs-old/.vuepress/dist/assets/js/13.ab1b102b.js b/docs-old/.vuepress/dist/assets/js/13.ab1b102b.js deleted file mode 100644 index 25e2eb6..0000000 --- a/docs-old/.vuepress/dist/assets/js/13.ab1b102b.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[13],{283:function(e,t,a){"use strict";a.r(t);var s=a(14),n=Object(s.a)({},(function(){var e=this,t=e._self._c;return t("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[t("h1",{attrs:{id:"padron-de-afip-alcance-10"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#padron-de-afip-alcance-10"}},[e._v("#")]),e._v(" Padrón de AFIP alcance 10")]),e._v(" "),t("p",[e._v("Los métodos de este Web Service se encuentran disponibles en "),t("code",[e._v("afip.registerScopeTenService")])]),e._v(" "),t("p",[e._v("La especificación de este Web Service se encuentra disponible en http://www.afip.gob.ar/ws/ws_sr_padron_a10/manual_ws_sr_padron_a10_v1.1.pdf")]),e._v(" "),t("h3",{attrs:{id:"metodos-disponibles"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#metodos-disponibles"}},[e._v("#")]),e._v(" Métodos disponibles")]),e._v(" "),t("ol",[t("li",[t("a",{attrs:{href:"#obtener-datos-del-contribuyente"}},[e._v("Obtener datos del contribuyente "),t("em",[e._v("(getPersona)")])])]),e._v(" "),t("li",[t("a",{attrs:{href:"#obtener-estado-del-servidor"}},[e._v("Obtener estado del servidor")])])]),e._v(" "),t("h2",{attrs:{id:"obtener-datos-del-contribuyente"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#obtener-datos-del-contribuyente"}},[e._v("#")]),e._v(" Obtener datos del contribuyente")]),e._v(" "),t("p",[e._v("Debemos utilizar el metodo "),t("code",[e._v("getTaxpayerDetails")]),e._v(" pasando como parámetro el documento identificador del contribuyente, por ej. el CUIT. Nos devolvera un objeto con los detalles o "),t("code",[e._v("null")]),e._v(" en caso de no existir en el padrón")]),e._v(" "),t("div",{staticClass:"language-js extra-class"},[t("pre",{pre:!0,attrs:{class:"language-js"}},[t("code",[t("span",{pre:!0,attrs:{class:"token keyword"}},[e._v("const")]),e._v(" taxpayerDetails "),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v("=")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token keyword"}},[e._v("await")]),e._v(" afip"),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(".")]),e._v("registerScopeTenService"),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(".")]),t("span",{pre:!0,attrs:{class:"token function"}},[e._v("getTaxpayerDetails")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("(")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token number"}},[e._v("20111111111")]),e._v("\n"),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(")")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(";")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token comment"}},[e._v("//Devuelve los datos del contribuyente correspondiente al identificador 20111111111")]),e._v("\n")])])]),t("p",[e._v("Para mas información acerca de este método ver el item 3.2 de la "),t("a",{attrs:{href:"http://www.afip.gob.ar/ws/ws_sr_padron_a10/manual_ws_sr_padron_a10_v1.1.pdf",target:"_blank",rel:"noopener noreferrer"}},[e._v("especificación del Web service"),t("OutboundLink")],1)]),e._v(" "),t("h2",{attrs:{id:"obtener-estado-del-servidor"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#obtener-estado-del-servidor"}},[e._v("#")]),e._v(" Obtener estado del servidor")]),e._v(" "),t("p",[e._v("Para esto utilizaremos el método "),t("code",[e._v("getServerStatus")])]),e._v(" "),t("div",{staticClass:"language-js extra-class"},[t("pre",{pre:!0,attrs:{class:"language-js"}},[t("code",[t("span",{pre:!0,attrs:{class:"token keyword"}},[e._v("const")]),e._v(" serverStatus "),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v("=")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token keyword"}},[e._v("await")]),e._v(" afip"),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(".")]),e._v("registerScopeTenService"),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(".")]),t("span",{pre:!0,attrs:{class:"token function"}},[e._v("getServerStatus")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("(")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(")")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(";")]),e._v("\n\nconsole"),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(".")]),t("span",{pre:!0,attrs:{class:"token function"}},[e._v("log")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("(")]),t("span",{pre:!0,attrs:{class:"token string"}},[e._v('"Este es el estado del servidor:"')]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(")")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(";")]),e._v("\nconsole"),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(".")]),t("span",{pre:!0,attrs:{class:"token function"}},[e._v("log")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("(")]),e._v("serverStatus"),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(")")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(";")]),e._v("\n")])])]),t("p",[e._v("Para mas información acerca de este método ver el item 3.1 de la "),t("a",{attrs:{href:"http://www.afip.gob.ar/ws/ws_sr_padron_a10/manual_ws_sr_padron_a10_v1.1.pdf",target:"_blank",rel:"noopener noreferrer"}},[e._v("especificación del Web service"),t("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=n.exports}}]); \ No newline at end of file diff --git a/docs-old/.vuepress/dist/assets/js/14.0b212dd3.js b/docs-old/.vuepress/dist/assets/js/14.0b212dd3.js deleted file mode 100644 index 1e3aa09..0000000 --- a/docs-old/.vuepress/dist/assets/js/14.0b212dd3.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[14],{284:function(e,t,a){"use strict";a.r(t);var s=a(14),n=Object(s.a)({},(function(){var e=this,t=e._self._c;return t("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[t("h1",{attrs:{id:"padron-de-afip-alcance-13"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#padron-de-afip-alcance-13"}},[e._v("#")]),e._v(" Padrón de AFIP alcance 13")]),e._v(" "),t("p",[e._v("Los métodos de este Web Service se encuentran disponibles en "),t("code",[e._v("afip.registerScopeTThirteenService")])]),e._v(" "),t("p",[e._v("La especificación de este Web Service se encuentra disponible en http://www.afip.gob.ar/ws/ws-padron-a13/manual-ws-sr-padron-a13-v1.2.pdf")]),e._v(" "),t("h3",{attrs:{id:"metodos-disponibles"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#metodos-disponibles"}},[e._v("#")]),e._v(" Métodos disponibles")]),e._v(" "),t("ol",[t("li",[t("a",{attrs:{href:"#obtener-datos-del-contribuyente"}},[e._v("Obtener datos del contribuyente "),t("em",[e._v("(getPersona)")])])]),e._v(" "),t("li",[t("a",{attrs:{href:"#obtener-cuit-a-partir-de-un-dni"}},[e._v("Obtener CUIT a partir de un DNI")])]),e._v(" "),t("li",[t("a",{attrs:{href:"#obtener-estado-del-servidor"}},[e._v("Obtener estado del servidor")])])]),e._v(" "),t("h2",{attrs:{id:"obtener-datos-del-contribuyente"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#obtener-datos-del-contribuyente"}},[e._v("#")]),e._v(" Obtener datos del contribuyente")]),e._v(" "),t("p",[e._v("Debemos utilizar el metodo "),t("code",[e._v("getTaxpayerDetails")]),e._v(" pasando como parámetro el documento identificador del contribuyente, por ej. el CUIT. Nos devolvera un objeto con los detalles o "),t("code",[e._v("null")]),e._v(" en caso de no existir en el padrón")]),e._v(" "),t("div",{staticClass:"language-js extra-class"},[t("pre",{pre:!0,attrs:{class:"language-js"}},[t("code",[t("span",{pre:!0,attrs:{class:"token keyword"}},[e._v("const")]),e._v(" taxpayerDetails "),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v("=")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token keyword"}},[e._v("await")]),e._v(" afip"),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(".")]),e._v("registerScopeTThirteenService"),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(".")]),t("span",{pre:!0,attrs:{class:"token function"}},[e._v("getTaxpayerDetails")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("(")]),t("span",{pre:!0,attrs:{class:"token number"}},[e._v("20111111111")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(")")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(";")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token comment"}},[e._v("//Devuelve los datos del contribuyente correspondiente al identificador 20111111111")]),e._v("\n")])])]),t("p",[e._v("Para mas información acerca de este método ver el item 3.2 de la "),t("a",{attrs:{href:"http://www.afip.gob.ar/ws/ws-padron-a13/manual-ws-sr-padron-a13-v1.2.pdf",target:"_blank",rel:"noopener noreferrer"}},[e._v("especificación del Web service"),t("OutboundLink")],1)]),e._v(" "),t("h2",{attrs:{id:"obtener-cuit-a-partir-de-un-dni"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#obtener-cuit-a-partir-de-un-dni"}},[e._v("#")]),e._v(" Obtener CUIT a partir de un DNI")]),e._v(" "),t("p",[e._v("Debemos utilizar el metodo "),t("code",[e._v("getTaxIDByDocument")]),e._v(" pasando como parámetro el DNI del contribuyente. Nos devolverá el CUIT o "),t("code",[e._v("null")]),e._v(" en caso de no existir en el padrón")]),e._v(" "),t("div",{staticClass:"language-js extra-class"},[t("pre",{pre:!0,attrs:{class:"language-js"}},[t("code",[t("span",{pre:!0,attrs:{class:"token keyword"}},[e._v("const")]),e._v(" taxID "),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v("=")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token keyword"}},[e._v("await")]),e._v(" afip"),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(".")]),e._v("registerScopeTThirteenService"),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(".")]),t("span",{pre:!0,attrs:{class:"token function"}},[e._v("getTaxIDByDocument")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("(")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token number"}},[e._v("11111111")]),e._v("\n"),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(")")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(";")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token comment"}},[e._v("//Devuelve el CUIT correspondiente al DNI 11111111")]),e._v("\n")])])]),t("h2",{attrs:{id:"obtener-estado-del-servidor"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#obtener-estado-del-servidor"}},[e._v("#")]),e._v(" Obtener estado del servidor")]),e._v(" "),t("p",[e._v("Para esto utilizaremos el método "),t("code",[e._v("getServerStatus")])]),e._v(" "),t("div",{staticClass:"language-js extra-class"},[t("pre",{pre:!0,attrs:{class:"language-js"}},[t("code",[t("span",{pre:!0,attrs:{class:"token keyword"}},[e._v("const")]),e._v(" serverStatus "),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v("=")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token keyword"}},[e._v("await")]),e._v(" afip"),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(".")]),e._v("registerScopeTThirteenService"),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(".")]),t("span",{pre:!0,attrs:{class:"token function"}},[e._v("getServerStatus")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("(")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(")")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(";")]),e._v("\n\nconsole"),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(".")]),t("span",{pre:!0,attrs:{class:"token function"}},[e._v("log")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("(")]),t("span",{pre:!0,attrs:{class:"token string"}},[e._v('"Este es el estado del servidor:"')]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(")")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(";")]),e._v("\nconsole"),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(".")]),t("span",{pre:!0,attrs:{class:"token function"}},[e._v("log")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("(")]),e._v("serverStatus"),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(")")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(";")]),e._v("\n")])])]),t("p",[e._v("Para mas información acerca de este método ver el item 3.1 de la "),t("a",{attrs:{href:"http://www.afip.gob.ar/ws/ws-padron-a13/manual-ws-sr-padron-a13-v1.2.pdf",target:"_blank",rel:"noopener noreferrer"}},[e._v("especificación del Web service"),t("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=n.exports}}]); \ No newline at end of file diff --git a/docs-old/.vuepress/dist/assets/js/15.78803646.js b/docs-old/.vuepress/dist/assets/js/15.78803646.js deleted file mode 100644 index 11b78d7..0000000 --- a/docs-old/.vuepress/dist/assets/js/15.78803646.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[15],{288:function(e,t,a){"use strict";a.r(t);var s=a(14),r=Object(s.a)({},(function(){var e=this,t=e._self._c;return t("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[t("h1",{attrs:{id:"padron-de-afip-alcance-4"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#padron-de-afip-alcance-4"}},[e._v("#")]),e._v(" Padrón de AFIP alcance 4")]),e._v(" "),t("p",[e._v("Los métodos de este Web Service se encuentran disponibles en "),t("code",[e._v("afip.registerScopeFourService")])]),e._v(" "),t("p",[e._v("La especificación de este Web Service se encuentra disponible en http://www.afip.gob.ar/ws/ws_sr_padron_a4/manual_ws_sr_padron_a4_v1.1.pdf")]),e._v(" "),t("h3",{attrs:{id:"metodos-disponibles"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#metodos-disponibles"}},[e._v("#")]),e._v(" Métodos disponibles")]),e._v(" "),t("ol",[t("li",[t("a",{attrs:{href:"#obtener-datos-del-contribuyente"}},[e._v("Obtener datos del contribuyente "),t("em",[e._v("(getPersona)")])])]),e._v(" "),t("li",[t("a",{attrs:{href:"#obtener-estado-del-servidor"}},[e._v("Obtener estado del servidor")])])]),e._v(" "),t("h2",{attrs:{id:"obtener-datos-del-contribuyente"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#obtener-datos-del-contribuyente"}},[e._v("#")]),e._v(" Obtener datos del contribuyente")]),e._v(" "),t("p",[e._v("Debemos utilizar el metodo "),t("code",[e._v("getTaxpayerDetails")]),e._v(" pasando como parámetro el documento identificador del contribuyente, por ej. el CUIT. Nos devolvera un objeto con los detalles o "),t("code",[e._v("null")]),e._v(" en caso de no existir en el padrón")]),e._v(" "),t("div",{staticClass:"language-js extra-class"},[t("pre",{pre:!0,attrs:{class:"language-js"}},[t("code",[t("span",{pre:!0,attrs:{class:"token keyword"}},[e._v("const")]),e._v(" taxpayerDetails "),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v("=")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token keyword"}},[e._v("await")]),e._v(" afip"),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(".")]),e._v("registerScopeFourService"),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(".")]),t("span",{pre:!0,attrs:{class:"token function"}},[e._v("getTaxpayerDetails")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("(")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token number"}},[e._v("20111111111")]),e._v("\n"),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(")")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(";")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token comment"}},[e._v("//Devuelve los datos del contribuyente correspondiente al identificador 20111111111")]),e._v("\n")])])]),t("p",[e._v("Para mas información acerca de este método ver el item 3.2 de la "),t("a",{attrs:{href:"http://www.afip.gob.ar/ws/ws_sr_padron_a4/manual_ws_sr_padron_a4_v1.1.pdf",target:"_blank",rel:"noopener noreferrer"}},[e._v("especificación del Web service"),t("OutboundLink")],1)]),e._v(" "),t("h2",{attrs:{id:"obtener-estado-del-servidor"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#obtener-estado-del-servidor"}},[e._v("#")]),e._v(" Obtener estado del servidor")]),e._v(" "),t("p",[e._v("Para esto utilizaremos el método "),t("code",[e._v("getServerStatus")])]),e._v(" "),t("div",{staticClass:"language-js extra-class"},[t("pre",{pre:!0,attrs:{class:"language-js"}},[t("code",[t("span",{pre:!0,attrs:{class:"token keyword"}},[e._v("const")]),e._v(" serverStatus "),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v("=")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token keyword"}},[e._v("await")]),e._v(" afip"),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(".")]),e._v("registerScopeFourService"),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(".")]),t("span",{pre:!0,attrs:{class:"token function"}},[e._v("getServerStatus")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("(")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(")")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(";")]),e._v("\n\nconsole"),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(".")]),t("span",{pre:!0,attrs:{class:"token function"}},[e._v("log")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("(")]),t("span",{pre:!0,attrs:{class:"token string"}},[e._v('"Este es el estado del servidor:"')]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(")")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(";")]),e._v("\nconsole"),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(".")]),t("span",{pre:!0,attrs:{class:"token function"}},[e._v("log")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("(")]),e._v("serverStatus"),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(")")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(";")]),e._v("\n")])])]),t("p",[e._v("Para mas información acerca de este método ver el item 3.1 de la "),t("a",{attrs:{href:"http://www.afip.gob.ar/ws/ws_sr_padron_a4/manual_ws_sr_padron_a4_v1.1.pdf",target:"_blank",rel:"noopener noreferrer"}},[e._v("especificación del Web service"),t("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=r.exports}}]); \ No newline at end of file diff --git a/docs-old/.vuepress/dist/assets/js/16.be3ba69e.js b/docs-old/.vuepress/dist/assets/js/16.be3ba69e.js deleted file mode 100644 index ab24704..0000000 --- a/docs-old/.vuepress/dist/assets/js/16.be3ba69e.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[16],{286:function(e,t,s){"use strict";s.r(t);var a=s(14),n=Object(a.a)({},(function(){var e=this,t=e._self._c;return t("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[t("h1",{attrs:{id:"padron-de-afip-alcance-5"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#padron-de-afip-alcance-5"}},[e._v("#")]),e._v(" Padrón de AFIP alcance 5")]),e._v(" "),t("p",[e._v("Los métodos de este Web Service se encuentran disponibles en "),t("code",[e._v("afip.registerScopeFiveService")])]),e._v(" "),t("p",[e._v("La especificación de este Web Service se encuentra disponible en http://www.afip.gob.ar/ws/ws_sr_padron_a5/manual_ws_sr_padron_a5_v1.0.pdf")]),e._v(" "),t("h3",{attrs:{id:"metodos-disponibles"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#metodos-disponibles"}},[e._v("#")]),e._v(" Métodos disponibles")]),e._v(" "),t("ol",[t("li",[t("a",{attrs:{href:"#obtener-datos-del-contribuyente"}},[e._v("Obtener datos del contribuyente "),t("em",[e._v("(getPersona)")])])]),e._v(" "),t("li",[t("a",{attrs:{href:"#obtener-datos-de-m%C3%BAltiples-contribuyentes"}},[e._v("Obtener datos de múltiples contribuyentes")])]),e._v(" "),t("li",[t("a",{attrs:{href:"#obtener-estado-del-servidor"}},[e._v("Obtener estado del servidor")])])]),e._v(" "),t("h2",{attrs:{id:"obtener-datos-del-contribuyente"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#obtener-datos-del-contribuyente"}},[e._v("#")]),e._v(" Obtener datos del contribuyente")]),e._v(" "),t("p",[e._v("Debemos utilizar el metodo "),t("code",[e._v("getTaxpayerDetails")]),e._v(" pasando como parámetro el documento identificador del contribuyente, por ej. el CUIT. Nos devolvera un objeto con los detalles o "),t("code",[e._v("null")]),e._v(" en caso de no existir en el padrón")]),e._v(" "),t("div",{staticClass:"language-js extra-class"},[t("pre",{pre:!0,attrs:{class:"language-js"}},[t("code",[t("span",{pre:!0,attrs:{class:"token keyword"}},[e._v("const")]),e._v(" taxpayerDetails "),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v("=")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token keyword"}},[e._v("await")]),e._v(" afip"),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(".")]),e._v("registerScopeFiveService"),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(".")]),t("span",{pre:!0,attrs:{class:"token function"}},[e._v("getTaxpayerDetails")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("(")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token number"}},[e._v("20111111111")]),e._v("\n"),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(")")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(";")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token comment"}},[e._v("//Devuelve los datos del contribuyente correspondiente al identificador 20111111111")]),e._v("\n")])])]),t("p",[e._v("Para mas información acerca de este método ver el item 3.2 de la "),t("a",{attrs:{href:"http://www.afip.gob.ar/ws/ws_sr_padron_a5/manual_ws_sr_padron_a5_v1.0.pdf",target:"_blank",rel:"noopener noreferrer"}},[e._v("especificación del Web service"),t("OutboundLink")],1)]),e._v(" "),t("h2",{attrs:{id:"obtener-datos-de-multiples-contribuyentes"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#obtener-datos-de-multiples-contribuyentes"}},[e._v("#")]),e._v(" Obtener datos de múltiples contribuyentes")]),e._v(" "),t("p",[e._v("Debemos utilizar el método "),t("code",[e._v("getTaxpayersDetails")]),e._v(" pasando como parámetro un array con los documentos identificadores de los contribuyentes. Nos devolverá un array con los detalles de cada contribuyente.")]),e._v(" "),t("div",{staticClass:"language-js extra-class"},[t("pre",{pre:!0,attrs:{class:"language-js"}},[t("code",[t("span",{pre:!0,attrs:{class:"token keyword"}},[e._v("const")]),e._v(" taxpayersDetails "),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v("=")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token keyword"}},[e._v("await")]),e._v(" afip"),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(".")]),e._v("registerScopeFiveService"),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(".")]),t("span",{pre:!0,attrs:{class:"token function"}},[e._v("getTaxpayersDetails")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("(")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("[")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token number"}},[e._v("20111111111")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token number"}},[e._v("20111111112")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("]")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(")")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(";")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token comment"}},[e._v("//Devuelve los datos de los contribuyentes correspondientes a los identificadores 20111111111y 20111111112")]),e._v("\n")])])]),t("h2",{attrs:{id:"obtener-estado-del-servidor"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#obtener-estado-del-servidor"}},[e._v("#")]),e._v(" Obtener estado del servidor")]),e._v(" "),t("p",[e._v("Para esto utilizaremos el método "),t("code",[e._v("getServerStatus")])]),e._v(" "),t("div",{staticClass:"language-js extra-class"},[t("pre",{pre:!0,attrs:{class:"language-js"}},[t("code",[t("span",{pre:!0,attrs:{class:"token keyword"}},[e._v("const")]),e._v(" serverStatus "),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v("=")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token keyword"}},[e._v("await")]),e._v(" afip"),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(".")]),e._v("registerScopeFiveService"),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(".")]),t("span",{pre:!0,attrs:{class:"token function"}},[e._v("getServerStatus")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("(")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(")")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(";")]),e._v("\n\nconsole"),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(".")]),t("span",{pre:!0,attrs:{class:"token function"}},[e._v("log")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("(")]),t("span",{pre:!0,attrs:{class:"token string"}},[e._v('"Este es el estado del servidor:"')]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(")")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(";")]),e._v("\nconsole"),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(".")]),t("span",{pre:!0,attrs:{class:"token function"}},[e._v("log")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("(")]),e._v("serverStatus"),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(")")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(";")]),e._v("\n")])])]),t("p",[e._v("Para mas información acerca de este método ver el item 3.1 de la "),t("a",{attrs:{href:"http://www.afip.gob.ar/ws/ws_sr_padron_a5/manual_ws_sr_padron_a5_v1.0.pdf",target:"_blank",rel:"noopener noreferrer"}},[e._v("especificación del Web service"),t("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=n.exports}}]); \ No newline at end of file diff --git a/docs-old/.vuepress/dist/assets/js/17.42b01cb9.js b/docs-old/.vuepress/dist/assets/js/17.42b01cb9.js deleted file mode 100644 index 387f3db..0000000 --- a/docs-old/.vuepress/dist/assets/js/17.42b01cb9.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[17],{287:function(t,e,a){"use strict";a.r(e);var s=a(14),n=Object(s.a)({},(function(){var t=this,e=t._self._c;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"facturacion-electronica"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#facturacion-electronica"}},[t._v("#")]),t._v(" Facturación Electrónica")]),t._v(" "),e("p",[t._v("Los métodos de este Web Service se encuentran disponibles en "),e("code",[t._v("afip.electronicBillingService")])]),t._v(" "),e("p",[t._v("La especificación de este Web Service se encuentra disponible "),e("a",{attrs:{href:"http://www.afip.gob.ar/fe/documentos/manual_desarrollador_COMPG_v2_10.pdf",target:"_blank",rel:"noopener noreferrer"}},[t._v("aquí"),e("OutboundLink")],1)]),t._v(" "),e("strong"),t._v(" "),e("p",[e("code",[t._v("Nota:")]),t._v("\nHablaremos de "),e("code",[t._v("comprobante")]),t._v(" indistintamente si es una "),e("code",[t._v("factura")]),t._v(", nota de crédito, etc")]),t._v(" "),e("h2",{attrs:{id:"indice"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#indice"}},[t._v("#")]),t._v(" Indice")]),t._v(" "),e("ul",[e("li",[e("a",{attrs:{href:"#facturaci%C3%B3n-electr%C3%B3nica"}},[t._v("Facturación Electrónica")]),t._v(" "),e("ul",[e("li",[e("a",{attrs:{href:"#indice"}},[t._v("Indice")])]),t._v(" "),e("li",[e("a",{attrs:{href:"#obtener-n%C3%BAmero-del-%C3%BAltimo-comprobante-creado"}},[t._v("Obtener número del último comprobante creado")])]),t._v(" "),e("li",[e("a",{attrs:{href:"#crear-y-asignar-cae-a-un-comprobante"}},[t._v("Crear y asignar CAE a un comprobante")])]),t._v(" "),e("li",[e("a",{attrs:{href:"#crear-y-asignar-cae-a-siguiente-comprobante"}},[t._v("Crear y asignar CAE a siguiente comprobante")])]),t._v(" "),e("li",[e("a",{attrs:{href:"#obtener-informaci%C3%B3n-de-un-comprobante"}},[t._v("Obtener información de un comprobante")])]),t._v(" "),e("li",[e("a",{attrs:{href:"#obtener-puntos-de-venta-disponibles"}},[t._v("Obtener puntos de venta disponibles")])]),t._v(" "),e("li",[e("a",{attrs:{href:"#obtener-tipos-de-comprobantes-disponibles"}},[t._v("Obtener tipos de comprobantes disponibles")])]),t._v(" "),e("li",[e("a",{attrs:{href:"#obtener-tipos-de-conceptos-disponibles"}},[t._v("Obtener tipos de conceptos disponibles")])]),t._v(" "),e("li",[e("a",{attrs:{href:"#obtener-tipos-de-documentos-disponibles"}},[t._v("Obtener tipos de documentos disponibles")])]),t._v(" "),e("li",[e("a",{attrs:{href:"#obtener-tipos-de-al%C3%ADcuotas-disponibles"}},[t._v("Obtener tipos de alícuotas disponibles")])]),t._v(" "),e("li",[e("a",{attrs:{href:"#obtener-tipos-de-monedas-disponibles"}},[t._v("Obtener tipos de monedas disponibles")])]),t._v(" "),e("li",[e("a",{attrs:{href:"#obtener-tipos-de-opciones-disponibles-para-el-comprobante"}},[t._v("Obtener tipos de opciones disponibles para el comprobante")])]),t._v(" "),e("li",[e("a",{attrs:{href:"#obtener-tipos-de-tributos-disponibles"}},[t._v("Obtener tipos de tributos disponibles")])]),t._v(" "),e("li",[e("a",{attrs:{href:"#obtener-estado-del-servidor"}},[t._v("Obtener estado del servidor")])])])])]),t._v(" "),e("hr"),t._v(" "),e("h2",{attrs:{id:"obtener-numero-del-ultimo-comprobante-creado"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#obtener-numero-del-ultimo-comprobante-creado"}},[t._v("#")]),t._v(" Obtener número del último comprobante creado")]),t._v(" "),e("p",[t._v("Debemos utilizar el método "),e("code",[t._v("getLastVoucher")]),t._v(" con los parámetros punto de venta y tipo de comprobante que queremos consultar.")]),t._v(" "),e("div",{staticClass:"language-js extra-class"},[e("pre",{pre:!0,attrs:{class:"language-js"}},[e("code",[e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" lastVoucher "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("await")]),t._v(" afip"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("electronicBillingService"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("getLastVoucher")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token number"}},[t._v("6")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("//Devuelve el número del último comprobante creado para el punto de venta 1 y el tipo de comprobante 6 (Factura B)")]),t._v("\n")])])]),e("p",[t._v("Para mas información acerca de este método ver el item 4.15 de la "),e("a",{attrs:{href:"http://www.afip.gob.ar/fe/documentos/manual_desarrollador_COMPG_v2_10.pdf",target:"_blank",rel:"noopener noreferrer"}},[t._v("especificación del Web service"),e("OutboundLink")],1)]),t._v(" "),e("h2",{attrs:{id:"crear-y-asignar-cae-a-un-comprobante"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#crear-y-asignar-cae-a-un-comprobante"}},[t._v("#")]),t._v(" Crear y asignar CAE a un comprobante")]),t._v(" "),e("p",[t._v("Debemos utilizar el método "),e("code",[t._v("createVoucher")]),t._v(" pasándole como parámetro un Objeto con los detalles del comprobante y si queremos tener la respuesta completa enviada por el WS debemos pasarle como segundo parámetro "),e("code",[t._v("true")]),t._v(", en caso de no enviarle el segundo parámetro nos devolverá como respuesta "),e("code",[t._v("{ CAE : CAE asignado el comprobante, CAEFchVto : Fecha de vencimiento del CAE (yyyy-mm-dd) }")]),t._v(".")]),t._v(" "),e("div",{staticClass:"language-js extra-class"},[e("pre",{pre:!0,attrs:{class:"language-js"}},[e("code",[e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" date "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Date")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("Date"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("now")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("-")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Date")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("getTimezoneOffset")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("*")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token number"}},[t._v("60000")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("toISOString")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("split")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token string"}},[t._v('"T"')]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),e("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("let")]),t._v(" data "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("CantReg")]),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Cantidad de comprobantes a registrar")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("PtoVta")]),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Punto de venta")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("CbteTipo")]),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token number"}},[t._v("6")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Tipo de comprobante (ver tipos disponibles)")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("Concepto")]),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Concepto del Comprobante: (1)Productos, (2)Servicios, (3)Productos y Servicios")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("DocTipo")]),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token number"}},[t._v("99")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Tipo de documento del comprador (99 consumidor final, ver tipos disponibles)")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("DocNro")]),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Número de documento del comprador (0 consumidor final)")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("CbteDesde")]),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Número de comprobante o numero del primer comprobante en caso de ser mas de uno")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("CbteHasta")]),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Número de comprobante o numero del último comprobante en caso de ser mas de uno")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("CbteFch")]),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("parseInt")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("date"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("replace")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token regex"}},[e("span",{pre:!0,attrs:{class:"token regex-delimiter"}},[t._v("/")]),e("span",{pre:!0,attrs:{class:"token regex-source language-regex"}},[t._v("-")]),e("span",{pre:!0,attrs:{class:"token regex-delimiter"}},[t._v("/")]),e("span",{pre:!0,attrs:{class:"token regex-flags"}},[t._v("g")])]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v('""')]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// (Opcional) Fecha del comprobante (yyyymmdd) o fecha actual si es nulo")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("ImpTotal")]),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token number"}},[t._v("121")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Importe total del comprobante")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("ImpTotConc")]),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Importe neto no gravado")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("ImpNeto")]),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token number"}},[t._v("100")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Importe neto gravado")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("ImpOpEx")]),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Importe exento de IVA")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("ImpIVA")]),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token number"}},[t._v("21")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("//Importe total de IVA")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("ImpTrib")]),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("//Importe total de tributos")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("MonId")]),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v('"PES"')]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("//Tipo de moneda usada en el comprobante (ver tipos disponibles)('PES' para pesos argentinos)")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("MonCotiz")]),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Cotización de la moneda usada (1 para pesos argentinos)")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("Iva")]),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// (Opcional) Alícuotas asociadas al comprobante")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("Id")]),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token number"}},[t._v("5")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Id del tipo de IVA (5 para 21%)(ver tipos disponibles)")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("BaseImp")]),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token number"}},[t._v("100")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Base imponible")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("Importe")]),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token number"}},[t._v("21")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Importe")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" res "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("await")]),t._v(" afip"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("electronicBillingService"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("createVoucher")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("data"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),e("p",[t._v("Este método acepta mas parámetros, pueden ver todos los parámetros disponibles "),e("a",{attrs:{href:"https://github.com/valiulab/afip.ts/blob/main/src/interfaces/index.ts#L5",target:"_blank",rel:"noopener noreferrer"}},[t._v("Aqui"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("Para mas información acerca de este método ver el item 4.1 de la "),e("a",{attrs:{href:"http://www.afip.gob.ar/fe/documentos/manual_desarrollador_COMPG_v2_10.pdf",target:"_blank",rel:"noopener noreferrer"}},[t._v("especificación del Web service"),e("OutboundLink")],1)]),t._v(" "),e("h2",{attrs:{id:"crear-y-asignar-cae-a-siguiente-comprobante"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#crear-y-asignar-cae-a-siguiente-comprobante"}},[t._v("#")]),t._v(" Crear y asignar CAE a siguiente comprobante")]),t._v(" "),e("p",[t._v("Debemos utilizar el método "),e("code",[t._v("createNextVoucher")]),t._v(" pasándole como parámetro un Objeto con los detalles del comprobante al igual que el método "),e("code",[t._v("createVoucher")]),t._v(", nos devolverá como respuesta "),e("code",[t._v("{ CAE : CAE asignado al comprobante, CAEFchVto : Fecha de vencimiento del CAE (yyyy-mm-dd), voucher_number : Número asignado al comprobante }")]),t._v(".")]),t._v(" "),e("div",{staticClass:"language-js extra-class"},[e("pre",{pre:!0,attrs:{class:"language-js"}},[e("code",[e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" res "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("await")]),t._v(" afip"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("electronicBillingService"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("createNextVoucher")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("data"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),e("h2",{attrs:{id:"obtener-informacion-de-un-comprobante"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#obtener-informacion-de-un-comprobante"}},[t._v("#")]),t._v(" Obtener información de un comprobante")]),t._v(" "),e("p",[t._v("Con este método podemos obtener toda la información relacionada a un comprobante o simplemente saber si el comprobante existe, debemos ejecutar el método "),e("code",[t._v("getVoucherInfo")]),t._v(" pasándole como parámetros el número de comprobante, el punto de venta y el tipo de comprobante, nos devolverá un Objeto con toda la información del comprobante o "),e("code",[t._v("null")]),t._v(" si el comprobante no existe.")]),t._v(" "),e("div",{staticClass:"language-js extra-class"},[e("pre",{pre:!0,attrs:{class:"language-js"}},[e("code",[e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" voucherInfo "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("await")]),t._v(" afip"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("electronicBillingService"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("getVoucherInfo")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token number"}},[t._v("6")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("//Devuelve la información del comprobante 1 para el punto de venta 1 y el tipo de comprobante 6 (Factura B)")]),t._v("\n\n"),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("if")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("voucherInfo "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("===")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("null")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n console"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("log")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token string"}},[t._v('"El comprobante no existe"')]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("else")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n console"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("log")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token string"}},[t._v('"Esta es la información del comprobante:"')]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n console"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("log")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("voucherInfo"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),e("p",[t._v("Para mas información acerca de este método ver el item 4.19 de la "),e("a",{attrs:{href:"http://www.afip.gob.ar/fe/documentos/manual_desarrollador_COMPG_v2_10.pdf",target:"_blank",rel:"noopener noreferrer"}},[t._v("especificación del Web service"),e("OutboundLink")],1)]),t._v(" "),e("h2",{attrs:{id:"obtener-puntos-de-venta-disponibles"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#obtener-puntos-de-venta-disponibles"}},[t._v("#")]),t._v(" Obtener puntos de venta disponibles")]),t._v(" "),e("div",{staticClass:"language-js extra-class"},[e("pre",{pre:!0,attrs:{class:"language-js"}},[e("code",[e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" salesPoints "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("await")]),t._v(" afip"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("electronicBillingService"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("getSalesPoints")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),e("h2",{attrs:{id:"obtener-tipos-de-comprobantes-disponibles"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#obtener-tipos-de-comprobantes-disponibles"}},[t._v("#")]),t._v(" Obtener tipos de comprobantes disponibles")]),t._v(" "),e("div",{staticClass:"language-js extra-class"},[e("pre",{pre:!0,attrs:{class:"language-js"}},[e("code",[e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" voucherTypes "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("await")]),t._v(" afip"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("electronicBillingService"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("getVoucherTypes")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),e("p",[t._v("Para mas información acerca de este método ver el item 4.4 de la "),e("a",{attrs:{href:"http://www.afip.gob.ar/fe/documentos/manual_desarrollador_COMPG_v2_10.pdf",target:"_blank",rel:"noopener noreferrer"}},[t._v("especificación del Web service"),e("OutboundLink")],1)]),t._v(" "),e("h2",{attrs:{id:"obtener-tipos-de-conceptos-disponibles"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#obtener-tipos-de-conceptos-disponibles"}},[t._v("#")]),t._v(" Obtener tipos de conceptos disponibles")]),t._v(" "),e("div",{staticClass:"language-js extra-class"},[e("pre",{pre:!0,attrs:{class:"language-js"}},[e("code",[e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" conceptTypes "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("await")]),t._v(" afip"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("electronicBillingService"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("getConceptTypes")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),e("p",[t._v("Para mas información acerca de este método ver el item 4.5 de la "),e("a",{attrs:{href:"http://www.afip.gob.ar/fe/documentos/manual_desarrollador_COMPG_v2_10.pdf",target:"_blank",rel:"noopener noreferrer"}},[t._v("especificación del Web service"),e("OutboundLink")],1)]),t._v(" "),e("h2",{attrs:{id:"obtener-tipos-de-documentos-disponibles"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#obtener-tipos-de-documentos-disponibles"}},[t._v("#")]),t._v(" Obtener tipos de documentos disponibles")]),t._v(" "),e("div",{staticClass:"language-js extra-class"},[e("pre",{pre:!0,attrs:{class:"language-js"}},[e("code",[e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" documentTypes "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("await")]),t._v(" afip"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("electronicBillingService"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("getDocumentTypes")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),e("p",[t._v("Para mas información acerca de este método ver el item 4.6 de la "),e("a",{attrs:{href:"http://www.afip.gob.ar/fe/documentos/manual_desarrollador_COMPG_v2_10.pdf",target:"_blank",rel:"noopener noreferrer"}},[t._v("especificación del Web service"),e("OutboundLink")],1)]),t._v(" "),e("h2",{attrs:{id:"obtener-tipos-de-alicuotas-disponibles"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#obtener-tipos-de-alicuotas-disponibles"}},[t._v("#")]),t._v(" Obtener tipos de alícuotas disponibles")]),t._v(" "),e("div",{staticClass:"language-js extra-class"},[e("pre",{pre:!0,attrs:{class:"language-js"}},[e("code",[e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" aloquotTypes "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("await")]),t._v(" afip"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("electronicBillingService"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("getAliquotTypes")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),e("p",[t._v("Para mas información acerca de este método ver el item 4.7 de la "),e("a",{attrs:{href:"http://www.afip.gob.ar/fe/documentos/manual_desarrollador_COMPG_v2_10.pdf",target:"_blank",rel:"noopener noreferrer"}},[t._v("especificación del Web service"),e("OutboundLink")],1)]),t._v(" "),e("h2",{attrs:{id:"obtener-tipos-de-monedas-disponibles"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#obtener-tipos-de-monedas-disponibles"}},[t._v("#")]),t._v(" Obtener tipos de monedas disponibles")]),t._v(" "),e("div",{staticClass:"language-js extra-class"},[e("pre",{pre:!0,attrs:{class:"language-js"}},[e("code",[e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" currenciesTypes "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("await")]),t._v(" afip"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("electronicBillingService"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("getCurrenciesTypes")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),e("p",[t._v("Para mas información acerca de este método ver el item 4.8 de la "),e("a",{attrs:{href:"http://www.afip.gob.ar/fe/documentos/manual_desarrollador_COMPG_v2_10.pdf",target:"_blank",rel:"noopener noreferrer"}},[t._v("especificación del Web service"),e("OutboundLink")],1)]),t._v(" "),e("h2",{attrs:{id:"obtener-tipos-de-opciones-disponibles-para-el-comprobante"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#obtener-tipos-de-opciones-disponibles-para-el-comprobante"}},[t._v("#")]),t._v(" Obtener tipos de opciones disponibles para el comprobante")]),t._v(" "),e("div",{staticClass:"language-js extra-class"},[e("pre",{pre:!0,attrs:{class:"language-js"}},[e("code",[e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" optionTypes "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("await")]),t._v(" afip"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("electronicBillingService"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("getOptionsTypes")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),e("p",[t._v("Para mas información acerca de este método ver el item 4.9 de la "),e("a",{attrs:{href:"http://www.afip.gob.ar/fe/documentos/manual_desarrollador_COMPG_v2_10.pdf",target:"_blank",rel:"noopener noreferrer"}},[t._v("especificacion del Web service"),e("OutboundLink")],1)]),t._v(" "),e("h2",{attrs:{id:"obtener-tipos-de-tributos-disponibles"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#obtener-tipos-de-tributos-disponibles"}},[t._v("#")]),t._v(" Obtener tipos de tributos disponibles")]),t._v(" "),e("div",{staticClass:"language-js extra-class"},[e("pre",{pre:!0,attrs:{class:"language-js"}},[e("code",[e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" taxTypes "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("await")]),t._v(" afip"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("electronicBillingService"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("getTaxTypes")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),e("p",[t._v("Para mas información acerca de este método ver el item 4.10 de la "),e("a",{attrs:{href:"http://www.afip.gob.ar/fe/documentos/manual_desarrollador_COMPG_v2_10.pdf",target:"_blank",rel:"noopener noreferrer"}},[t._v("especificación del Web service"),e("OutboundLink")],1)]),t._v(" "),e("h2",{attrs:{id:"obtener-estado-del-servidor"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#obtener-estado-del-servidor"}},[t._v("#")]),t._v(" Obtener estado del servidor")]),t._v(" "),e("p",[t._v("Para esto utilizaremos el método "),e("code",[t._v("getServerStatus")])]),t._v(" "),e("div",{staticClass:"language-js extra-class"},[e("pre",{pre:!0,attrs:{class:"language-js"}},[e("code",[e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" serverStatus "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("await")]),t._v(" afip"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("electronicBillingService"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("getServerStatus")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\nconsole"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("log")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token string"}},[t._v('"Este es el estado del servidor:"')]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\nconsole"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("log")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("serverStatus"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs-old/.vuepress/dist/assets/js/18.2bc3d897.js b/docs-old/.vuepress/dist/assets/js/18.2bc3d897.js deleted file mode 100644 index 20eff41..0000000 --- a/docs-old/.vuepress/dist/assets/js/18.2bc3d897.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[18],{289:function(a,r,e){"use strict";e.r(r);var s=e(14),t=Object(s.a)({},(function(){var a=this,r=a._self._c;return r("ContentSlotsDistributor",{attrs:{"slot-key":a.$parent.slotKey}},[r("h1",{attrs:{id:"introduction"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#introduction"}},[a._v("#")]),a._v(" Introduction")]),a._v(" "),r("h2",{attrs:{id:"servicios-disponibles"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#servicios-disponibles"}},[a._v("#")]),a._v(" Servicios disponibles")]),a._v(" "),r("p",[a._v("Actualmente la SDK soporta los siguientes servicios de afip:")]),a._v(" "),r("ul",[r("li",[a._v("Web Serices - "),r("a",{attrs:{href:"https://www.afip.gob.ar/ws/documentacion/catalogo.asp",target:"_blank",rel:"noopener noreferrer"}},[a._v("Doc"),r("OutboundLink")],1),a._v(" "),r("ul",[r("li",[a._v("Autenticación - "),r("a",{attrs:{href:"https://www.afip.gob.ar/ws/WSAA/WSAAmanualDev.pdf",target:"_blank",rel:"noopener noreferrer"}},[a._v("Doc"),r("OutboundLink")],1)]),a._v(" "),r("li",[a._v("Factura electronica - "),r("a",{attrs:{href:"https://www.afip.gob.ar/fe/ayuda//documentos/Manual-desarrollador-V.2.21.pdf",target:"_blank",rel:"noopener noreferrer"}},[a._v("Doc"),r("OutboundLink")],1)]),a._v(" "),r("li",[a._v("Padron alcance 4 - "),r("a",{attrs:{href:"https://www.afip.gob.ar/ws/ws_sr_padron_a4/manual_ws_sr_padron_a4_v1.2.pdf",target:"_blank",rel:"noopener noreferrer"}},[a._v("Doc"),r("OutboundLink")],1)]),a._v(" "),r("li",[a._v("Padron alcance 5 - "),r("a",{attrs:{href:"https://www.afip.gob.ar/ws/ws_sr_padron_a5/manual_ws_sr_padron_a5_v1.0.pdf",target:"_blank",rel:"noopener noreferrer"}},[a._v("Doc"),r("OutboundLink")],1)]),a._v(" "),r("li",[a._v("Padron alcance 10 - "),r("a",{attrs:{href:"https://www.afip.gob.ar/ws/ws_sr_padron_a10/manual_ws_sr_padron_a10_v1.1.pdf",target:"_blank",rel:"noopener noreferrer"}},[a._v("Doc"),r("OutboundLink")],1)]),a._v(" "),r("li",[a._v("Padron alcance 13 - "),r("a",{attrs:{href:"https://www.afip.gob.ar/ws/ws-padron-a13/manual-ws-sr-padron-a13-v1.2.pdf",target:"_blank",rel:"noopener noreferrer"}},[a._v("Doc"),r("OutboundLink")],1)])])])]),a._v(" "),r("p",[a._v("Si deseas aportar y queres integrar un nuevo servicio, puedes hacer fork del repositorio y generar un PR con los cambios para que los evaluemos y los sumemos!")]),a._v(" "),r("h2",{attrs:{id:"intalacion"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#intalacion"}},[a._v("#")]),a._v(" Intalación")]),a._v(" "),r("h5",{attrs:{id:"npm"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#npm"}},[a._v("#")]),a._v(" NPM")]),a._v(" "),r("div",{staticClass:"language-sh extra-class"},[r("pre",{pre:!0,attrs:{class:"language-sh"}},[r("code",[r("span",{pre:!0,attrs:{class:"token function"}},[a._v("npm")]),a._v(" i afip.ts "),r("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--save")]),a._v("\n")])])]),r("h5",{attrs:{id:"yarn"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#yarn"}},[a._v("#")]),a._v(" Yarn")]),a._v(" "),r("div",{staticClass:"language-sh extra-class"},[r("pre",{pre:!0,attrs:{class:"language-sh"}},[r("code",[r("span",{pre:!0,attrs:{class:"token function"}},[a._v("yarn")]),a._v(" "),r("span",{pre:!0,attrs:{class:"token function"}},[a._v("add")]),a._v(" afip.ts\n")])])]),r("h3",{attrs:{id:"requisitos-previos"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#requisitos-previos"}},[a._v("#")]),a._v(" Requisitos previos")]),a._v(" "),r("p",[a._v("Se debe tener los certificados emitidos por AFIP, ya sean para los servidores de homologacion o produccion. Estos seran requeridos por la instancia de Afip para la autenticacion a travez del servicio WSAA.")])])}),[],!1,null,null,null);r.default=t.exports}}]); \ No newline at end of file diff --git a/docs-old/.vuepress/dist/assets/js/19.38f649d1.js b/docs-old/.vuepress/dist/assets/js/19.38f649d1.js deleted file mode 100644 index 55bf137..0000000 --- a/docs-old/.vuepress/dist/assets/js/19.38f649d1.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[19],{290:function(t,a,s){"use strict";s.r(a);var e=s(14),n=Object(e.a)({},(function(){var t=this,a=t._self._c;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"uso-basico"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#uso-basico"}},[t._v("#")]),t._v(" Uso Básico")]),t._v(" "),a("h3",{attrs:{id:"ejemplo-basico"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ejemplo-basico"}},[t._v("#")]),t._v(" Ejemplo basico:")]),t._v(" "),a("p",[t._v("Para usar la SDK debemos instanciar la clase "),a("code",[t._v("Afip")]),t._v(" con los siguientes minimos datos:")]),t._v(" "),a("ul",[a("li",[a("a",{attrs:{href:"https://www.afip.gob.ar/ws/documentacion/certificados.asp",target:"_blank",rel:"noopener noreferrer"}},[a("code",[t._v("key")]),a("OutboundLink")],1),t._v(" : Contenido de la clave privada generada para Afip")]),t._v(" "),a("li",[a("a",{attrs:{href:"https://www.afip.gob.ar/ws/documentacion/certificados.asp",target:"_blank",rel:"noopener noreferrer"}},[a("code",[t._v("cert")]),a("OutboundLink")],1),t._v(" : Contenido del certificado generado en Afip")]),t._v(" "),a("li",[a("code",[t._v("cuit")]),t._v(" : Cuit del usuario")])]),t._v(" "),a("p",[t._v("Esto data como resultado un objecto con los respectivos servicios disponibles para usar, como por ejemplo "),a("code",[t._v("electronicBillingService")]),t._v(":")]),t._v(" "),a("div",{staticClass:"language-ts extra-class"},[a("pre",{pre:!0,attrs:{class:"language-ts"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v(" Afip "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"afip.ts"')]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" afip"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" Afip "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Afip")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n key"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"private_key_content"')]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n cert"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"crt_content"')]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n cuit"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("20111111112")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" voucher "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("await")]),t._v(" afip"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("electronicBillingService"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("createInvoice")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// voucher data")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("br"),t._v(" "),a("p",[t._v("La clase Afip recibe como parametro en el constructor el contexto (Ver type). Ahi esta explicado todos los comportamientos que puede tomar afip.")])])}),[],!1,null,null,null);a.default=n.exports}}]); \ No newline at end of file diff --git a/docs-old/.vuepress/dist/assets/js/2.069cfa5f.js b/docs-old/.vuepress/dist/assets/js/2.069cfa5f.js deleted file mode 100644 index 4271df1..0000000 --- a/docs-old/.vuepress/dist/assets/js/2.069cfa5f.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{238:function(t,e,n){"use strict";n.d(e,"d",(function(){return s})),n.d(e,"a",(function(){return a})),n.d(e,"i",(function(){return r})),n.d(e,"f",(function(){return l})),n.d(e,"g",(function(){return u})),n.d(e,"h",(function(){return c})),n.d(e,"b",(function(){return h})),n.d(e,"e",(function(){return p})),n.d(e,"k",(function(){return d})),n.d(e,"l",(function(){return f})),n.d(e,"c",(function(){return m})),n.d(e,"j",(function(){return b}));n(91);const s=/#.*$/,i=/\.(md|html)$/,a=/\/$/,r=/^[a-z]+:/i;function o(t){return decodeURI(t).replace(s,"").replace(i,"")}function l(t){return r.test(t)}function u(t){return/^mailto:/.test(t)}function c(t){return/^tel:/.test(t)}function h(t){if(l(t))return t;const e=t.match(s),n=e?e[0]:"",i=o(t);return a.test(i)?t:i+".html"+n}function p(t,e){const n=decodeURIComponent(t.hash),i=function(t){const e=t.match(s);if(e)return e[0]}(e);if(i&&n!==i)return!1;return o(t.path)===o(e)}function d(t,e,n){if(l(e))return{type:"external",path:e};n&&(e=function(t,e,n){const s=t.charAt(0);if("/"===s)return t;if("?"===s||"#"===s)return e+t;const i=e.split("/");n&&i[i.length-1]||i.pop();const a=t.replace(/^\//,"").split("/");for(let t=0;tfunction t(e,n,s,i=1){if("string"==typeof e)return d(n,e,s);if(Array.isArray(e))return Object.assign(d(n,e[0],s),{title:e[1]});{const a=e.children||[];return 0===a.length&&e.path?Object.assign(d(n,e.path,s),{title:e.title}):{type:"group",path:e.path,title:e.title,sidebarDepth:e.sidebarDepth,initialOpenGroupIndex:e.initialOpenGroupIndex,children:a.map(e=>t(e,n,s,i+1)),collapsable:!1!==e.collapsable}}}(t,i,n)):[]}return[]}function g(t){const e=m(t.headers||[]);return[{type:"group",collapsable:!1,title:t.title,path:null,children:e.map(e=>({type:"auto",title:e.title,basePath:t.path,path:t.path+"#"+e.slug,children:e.children||[]}))}]}function m(t){let e;return(t=t.map(t=>Object.assign({},t))).forEach(t=>{2===t.level?e=t:e&&(e.children||(e.children=[])).push(t)}),t.filter(t=>2===t.level)}function b(t){return Object.assign(t,{type:t.items&&t.items.length?"links":"link"})}},239:function(t,e,n){},240:function(t,e,n){},241:function(t,e,n){},242:function(t,e,n){},243:function(t,e,n){},244:function(t,e,n){},245:function(t,e,n){},246:function(t,e){t.exports=function(t){return null==t}},247:function(t,e,n){},248:function(t,e,n){},249:function(t,e,n){},250:function(t,e,n){},251:function(t,e,n){},252:function(t,e,n){},256:function(t,e,n){"use strict";n.r(e);var s=n(238),i={name:"SidebarGroup",components:{DropdownTransition:n(257).a},props:["item","open","collapsable","depth"],beforeCreate(){this.$options.components.SidebarLinks=n(256).default},methods:{isActive:s.e}},a=(n(269),n(14)),r=Object(a.a)(i,(function(){var t=this,e=t._self._c;return e("section",{staticClass:"sidebar-group",class:[{collapsable:t.collapsable,"is-sub-group":0!==t.depth},"depth-"+t.depth]},[t.item.path?e("RouterLink",{staticClass:"sidebar-heading clickable",class:{open:t.open,active:t.isActive(t.$route,t.item.path)},attrs:{to:t.item.path},nativeOn:{click:function(e){return t.$emit("toggle")}}},[e("span",[t._v(t._s(t.item.title))]),t._v(" "),t.collapsable?e("span",{staticClass:"arrow",class:t.open?"down":"right"}):t._e()]):e("p",{staticClass:"sidebar-heading",class:{open:t.open},on:{click:function(e){return t.$emit("toggle")}}},[e("span",[t._v(t._s(t.item.title))]),t._v(" "),t.collapsable?e("span",{staticClass:"arrow",class:t.open?"down":"right"}):t._e()]),t._v(" "),e("DropdownTransition",[t.open||!t.collapsable?e("SidebarLinks",{staticClass:"sidebar-group-items",attrs:{items:t.item.children,"sidebar-depth":t.item.sidebarDepth,"initial-open-group-index":t.item.initialOpenGroupIndex,depth:t.depth+1}}):t._e()],1)],1)}),[],!1,null,null,null).exports;function o(t,e,n,s,i){const a={props:{to:e,activeClass:"",exactActiveClass:""},class:{active:s,"sidebar-link":!0}};return i>2&&(a.style={"padding-left":i+"rem"}),t("RouterLink",a,n)}function l(t,e,n,i,a,r=1){return!e||r>a?null:t("ul",{class:"sidebar-sub-headers"},e.map(e=>{const u=Object(s.e)(i,n+"#"+e.slug);return t("li",{class:"sidebar-sub-header"},[o(t,n+"#"+e.slug,e.title,u,e.level-1),l(t,e.children,n,i,a,r+1)])}))}var u={functional:!0,props:["item","sidebarDepth"],render(t,{parent:{$page:e,$site:n,$route:i,$themeConfig:a,$themeLocaleConfig:r},props:{item:u,sidebarDepth:c}}){const h=Object(s.e)(i,u.path),p="auto"===u.type?h||u.children.some(t=>Object(s.e)(i,u.basePath+"#"+t.slug)):h,d="external"===u.type?function(t,e,n){return t("a",{attrs:{href:e,target:"_blank",rel:"noopener noreferrer"},class:{"sidebar-link":!0}},[n,t("OutboundLink")])}(t,u.path,u.title||u.path):o(t,u.path,u.title||u.path,p),f=[e.frontmatter.sidebarDepth,c,r.sidebarDepth,a.sidebarDepth,1].find(t=>void 0!==t),g=r.displayAllHeaders||a.displayAllHeaders;if("auto"===u.type)return[d,l(t,u.children,u.basePath,i,f)];if((p||g)&&u.headers&&!s.d.test(u.path)){return[d,l(t,Object(s.c)(u.headers),u.path,i,f)]}return d}};n(270);function c(t,e){if("group"===e.type){const n=e.path&&Object(s.e)(t,e.path),i=e.children.some(e=>"group"===e.type?c(t,e):"page"===e.type&&Object(s.e)(t,e.path));return n||i}return!1}var h={name:"SidebarLinks",components:{SidebarGroup:r,SidebarLink:Object(a.a)(u,void 0,void 0,!1,null,null,null).exports},props:["items","depth","sidebarDepth","initialOpenGroupIndex"],data(){return{openGroupIndex:this.initialOpenGroupIndex||0}},watch:{$route(){this.refreshIndex()}},created(){this.refreshIndex()},methods:{refreshIndex(){const t=function(t,e){for(let n=0;n-1&&(this.openGroupIndex=t)},toggleGroup(t){this.openGroupIndex=t===this.openGroupIndex?-1:t},isActive(t){return Object(s.e)(this.$route,t.regularPath)}}},p=Object(a.a)(h,(function(){var t=this,e=t._self._c;return t.items.length?e("ul",{staticClass:"sidebar-links"},t._l(t.items,(function(n,s){return e("li",{key:s},["group"===n.type?e("SidebarGroup",{attrs:{item:n,open:s===t.openGroupIndex,collapsable:n.collapsable||n.collapsible,depth:t.depth},on:{toggle:function(e){return t.toggleGroup(s)}}}):e("SidebarLink",{attrs:{"sidebar-depth":t.sidebarDepth,item:n}})],1)})),0):t._e()}),[],!1,null,null,null);e.default=p.exports},257:function(t,e,n){"use strict";var s={name:"DropdownTransition",methods:{setHeight(t){t.style.height=t.scrollHeight+"px"},unsetHeight(t){t.style.height=""}}},i=(n(261),n(14)),a=Object(i.a)(s,(function(){return(0,this._self._c)("transition",{attrs:{name:"dropdown"},on:{enter:this.setHeight,"after-enter":this.unsetHeight,"before-leave":this.setHeight}},[this._t("default")],2)}),[],!1,null,null,null);e.a=a.exports},258:function(t,e,n){"use strict";n(239)},259:function(t,e,n){"use strict";n(240)},260:function(t,e,n){"use strict";n(241)},261:function(t,e,n){"use strict";n(242)},262:function(t,e,n){"use strict";n(243)},263:function(t,e,n){"use strict";n(244)},264:function(t,e,n){"use strict";n(245)},265:function(t,e,n){"use strict";n(247)},266:function(t,e,n){var s=n(11),i=n(3),a=n(10);t.exports=function(t){return"string"==typeof t||!i(t)&&a(t)&&"[object String]"==s(t)}},267:function(t,e,n){"use strict";n(248)},268:function(t,e,n){"use strict";n(249)},269:function(t,e,n){"use strict";n(250)},270:function(t,e,n){"use strict";n(251)},271:function(t,e,n){"use strict";n(252)},275:function(t,e,n){"use strict";n.r(e);var s=n(238),i={name:"NavLink",props:{item:{required:!0}},computed:{link(){return Object(s.b)(this.item.link)},exact(){return this.$site.locales?Object.keys(this.$site.locales).some(t=>t===this.link):"/"===this.link},isNonHttpURI(){return Object(s.g)(this.link)||Object(s.h)(this.link)},isBlankTarget(){return"_blank"===this.target},isInternal(){return!Object(s.f)(this.link)&&!this.isBlankTarget},target(){return this.isNonHttpURI?null:this.item.target?this.item.target:Object(s.f)(this.link)?"_blank":""},rel(){return this.isNonHttpURI||!1===this.item.rel?null:this.item.rel?this.item.rel:this.isBlankTarget?"noopener noreferrer":null}},methods:{focusoutAction(){this.$emit("focusout")}}},a=n(14),r=Object(a.a)(i,(function(){var t=this,e=t._self._c;return t.isInternal?e("RouterLink",{staticClass:"nav-link",attrs:{to:t.link,exact:t.exact},nativeOn:{focusout:function(e){return t.focusoutAction.apply(null,arguments)}}},[t._v("\n "+t._s(t.item.text)+"\n")]):e("a",{staticClass:"nav-link external",attrs:{href:t.link,target:t.target,rel:t.rel},on:{focusout:t.focusoutAction}},[t._v("\n "+t._s(t.item.text)+"\n "),t.isBlankTarget?e("OutboundLink"):t._e()],1)}),[],!1,null,null,null).exports,o={name:"Home",components:{NavLink:r},computed:{data(){return this.$page.frontmatter},actionLink(){return{link:this.data.actionLink,text:this.data.actionText}}}},l=(n(258),Object(a.a)(o,(function(){var t=this,e=t._self._c;return e("main",{staticClass:"home",attrs:{"aria-labelledby":null!==t.data.heroText?"main-title":null}},[e("header",{staticClass:"hero"},[t.data.heroImage?e("img",{attrs:{src:t.$withBase(t.data.heroImage),alt:t.data.heroAlt||"hero"}}):t._e(),t._v(" "),null!==t.data.heroText?e("h1",{attrs:{id:"main-title"}},[t._v("\n "+t._s(t.data.heroText||t.$title||"Hello")+"\n ")]):t._e(),t._v(" "),null!==t.data.tagline?e("p",{staticClass:"description"},[t._v("\n "+t._s(t.data.tagline||t.$description||"Welcome to your VuePress site")+"\n ")]):t._e(),t._v(" "),t.data.actionText&&t.data.actionLink?e("p",{staticClass:"action"},[e("NavLink",{staticClass:"action-button",attrs:{item:t.actionLink}})],1):t._e()]),t._v(" "),t.data.features&&t.data.features.length?e("div",{staticClass:"features"},t._l(t.data.features,(function(n,s){return e("div",{key:s,staticClass:"feature"},[e("h2",[t._v(t._s(n.title))]),t._v(" "),e("p",[t._v(t._s(n.details))])])})),0):t._e(),t._v(" "),e("Content",{staticClass:"theme-default-content custom"}),t._v(" "),t.data.footer?e("div",{staticClass:"footer"},[t._v("\n "+t._s(t.data.footer)+"\n ")]):e("Content",{staticClass:"footer",attrs:{"slot-key":"footer"}})],1)}),[],!1,null,null,null).exports),u=(n(91),n(92)),c=n.n(u),h=(t,e,n=null)=>{let s=c()(e,"title","");return c()(e,"frontmatter.tags")&&(s+=" "+e.frontmatter.tags.join(" ")),n&&(s+=" "+n),p(t,s)};const p=(t,e)=>{const n=t=>t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),s=new RegExp("[^\0-]"),i=t.split(/\s+/g).map(t=>t.trim()).filter(t=>!!t);if(s.test(t))return i.some(t=>e.toLowerCase().indexOf(t)>-1);{const s=t.endsWith(" ");return new RegExp(i.map((t,e)=>i.length!==e+1||s?`(?=.*\\b${n(t)}\\b)`:`(?=.*\\b${n(t)})`).join("")+".+","gi").test(e)}};var d={name:"SearchBox",data:()=>({query:"",focused:!1,focusIndex:0,placeholder:void 0}),computed:{showSuggestions(){return this.focused&&this.suggestions&&this.suggestions.length},suggestions(){const t=this.query.trim().toLowerCase();if(!t)return;const{pages:e}=this.$site,n=this.$site.themeConfig.searchMaxSuggestions||5,s=this.$localePath,i=[];for(let a=0;a=n);a++){const r=e[a];if(this.getPageLocalePath(r)===s&&this.isSearchable(r))if(h(t,r))i.push(r);else if(r.headers)for(let e=0;e=n);e++){const n=r.headers[e];n.title&&h(t,r,n.title)&&i.push(Object.assign({},r,{path:r.path+"#"+n.slug,header:n}))}}return i},alignRight(){return(this.$site.themeConfig.nav||[]).length+(this.$site.repo?1:0)<=2}},mounted(){this.placeholder=this.$site.themeConfig.searchPlaceholder||"",document.addEventListener("keydown",this.onHotkey)},beforeDestroy(){document.removeEventListener("keydown",this.onHotkey)},methods:{getPageLocalePath(t){for(const e in this.$site.locales||{})if("/"!==e&&0===t.path.indexOf(e))return e;return"/"},isSearchable(t){let e=null;return null===e||(e=Array.isArray(e)?e:new Array(e),e.filter(e=>t.path.match(e)).length>0)},onHotkey(t){t.srcElement===document.body&&["s","/"].includes(t.key)&&(this.$refs.input.focus(),t.preventDefault())},onUp(){this.showSuggestions&&(this.focusIndex>0?this.focusIndex--:this.focusIndex=this.suggestions.length-1)},onDown(){this.showSuggestions&&(this.focusIndex "+t._s(n.header.title))]):t._e()])])})),0):t._e()])}),[],!1,null,null,null).exports),g=(n(260),Object(a.a)({},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"sidebar-button",on:{click:function(e){return t.$emit("toggle-sidebar")}}},[e("svg",{staticClass:"icon",attrs:{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",viewBox:"0 0 448 512"}},[e("path",{attrs:{fill:"currentColor",d:"M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"}})])])}),[],!1,null,null,null).exports),m=n(257),b=n(93),v=n.n(b),k={name:"DropdownLink",components:{NavLink:r,DropdownTransition:m.a},props:{item:{required:!0}},data:()=>({open:!1}),computed:{dropdownAriaLabel(){return this.item.ariaLabel||this.item.text}},watch:{$route(){this.open=!1}},methods:{setOpen(t){this.open=t},isLastItemOfArray:(t,e)=>v()(e)===t,handleDropdown(){0===event.detail&&this.setOpen(!this.open)}}},_=(n(262),{name:"NavLinks",components:{NavLink:r,DropdownLink:Object(a.a)(k,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"dropdown-wrapper",class:{open:t.open}},[e("button",{staticClass:"dropdown-title",attrs:{type:"button","aria-label":t.dropdownAriaLabel},on:{click:t.handleDropdown}},[e("span",{staticClass:"title"},[t._v(t._s(t.item.text))]),t._v(" "),e("span",{staticClass:"arrow down"})]),t._v(" "),e("button",{staticClass:"mobile-dropdown-title",attrs:{type:"button","aria-label":t.dropdownAriaLabel},on:{click:function(e){return t.setOpen(!t.open)}}},[e("span",{staticClass:"title"},[t._v(t._s(t.item.text))]),t._v(" "),e("span",{staticClass:"arrow",class:t.open?"down":"right"})]),t._v(" "),e("DropdownTransition",[e("ul",{directives:[{name:"show",rawName:"v-show",value:t.open,expression:"open"}],staticClass:"nav-dropdown"},t._l(t.item.items,(function(n,s){return e("li",{key:n.link||s,staticClass:"dropdown-item"},["links"===n.type?e("h4",[t._v("\n "+t._s(n.text)+"\n ")]):t._e(),t._v(" "),"links"===n.type?e("ul",{staticClass:"dropdown-subitem-wrapper"},t._l(n.items,(function(s){return e("li",{key:s.link,staticClass:"dropdown-subitem"},[e("NavLink",{attrs:{item:s},on:{focusout:function(e){t.isLastItemOfArray(s,n.items)&&t.isLastItemOfArray(n,t.item.items)&&t.setOpen(!1)}}})],1)})),0):e("NavLink",{attrs:{item:n},on:{focusout:function(e){t.isLastItemOfArray(n,t.item.items)&&t.setOpen(!1)}}})],1)})),0)])],1)}),[],!1,null,null,null).exports},computed:{userNav(){return this.$themeLocaleConfig.nav||this.$site.themeConfig.nav||[]},nav(){const{locales:t}=this.$site;if(t&&Object.keys(t).length>1){const e=this.$page.path,n=this.$router.options.routes,s=this.$site.themeConfig.locales||{},i={text:this.$themeLocaleConfig.selectText||"Languages",ariaLabel:this.$themeLocaleConfig.ariaLabel||"Select language",items:Object.keys(t).map(i=>{const a=t[i],r=s[i]&&s[i].label||a.lang;let o;return a.lang===this.$lang?o=e:(o=e.replace(this.$localeConfig.path,i),n.some(t=>t.path===o)||(o=i)),{text:r,link:o}})};return[...this.userNav,i]}return this.userNav},userLinks(){return(this.nav||[]).map(t=>Object.assign(Object(s.j)(t),{items:(t.items||[]).map(s.j)}))},repoLink(){const{repo:t}=this.$site.themeConfig;return t?/^https?:/.test(t)?t:"https://github.com/"+t:null},repoLabel(){if(!this.repoLink)return;if(this.$site.themeConfig.repoLabel)return this.$site.themeConfig.repoLabel;const t=this.repoLink.match(/^https?:\/\/[^/]+/)[0],e=["GitHub","GitLab","Bitbucket"];for(let n=0;n({linksWrapMaxWidth:null}),computed:{algolia(){return this.$themeLocaleConfig.algolia||this.$site.themeConfig.algolia||{}},isAlgoliaSearch(){return this.algolia&&this.algolia.apiKey&&this.algolia.indexName}},mounted(){const t=parseInt(C(this.$el,"paddingLeft"))+parseInt(C(this.$el,"paddingRight")),e=()=>{document.documentElement.clientWidth<719?this.linksWrapMaxWidth=null:this.linksWrapMaxWidth=this.$el.offsetWidth-t-(this.$refs.siteName&&this.$refs.siteName.offsetWidth||0)};e(),window.addEventListener("resize",e,!1)}},$=(n(264),Object(a.a)(L,(function(){var t=this,e=t._self._c;return e("header",{staticClass:"navbar"},[e("SidebarButton",{on:{"toggle-sidebar":function(e){return t.$emit("toggle-sidebar")}}}),t._v(" "),e("RouterLink",{staticClass:"home-link",attrs:{to:t.$localePath}},[t.$site.themeConfig.logo?e("img",{staticClass:"logo",attrs:{src:t.$withBase(t.$site.themeConfig.logo),alt:t.$siteTitle}}):t._e(),t._v(" "),t.$siteTitle?e("span",{ref:"siteName",staticClass:"site-name",class:{"can-hide":t.$site.themeConfig.logo}},[t._v(t._s(t.$siteTitle))]):t._e()]),t._v(" "),e("div",{staticClass:"links",style:t.linksWrapMaxWidth?{"max-width":t.linksWrapMaxWidth+"px"}:{}},[t.isAlgoliaSearch?e("AlgoliaSearchBox",{attrs:{options:t.algolia}}):!1!==t.$site.themeConfig.search&&!1!==t.$page.frontmatter.search?e("SearchBox"):t._e(),t._v(" "),e("NavLinks",{staticClass:"can-hide"})],1)],1)}),[],!1,null,null,null).exports),y=n(246),w=n.n(y),O={name:"PageEdit",computed:{lastUpdated(){return this.$page.lastUpdated},lastUpdatedText(){return"string"==typeof this.$themeLocaleConfig.lastUpdated?this.$themeLocaleConfig.lastUpdated:"string"==typeof this.$site.themeConfig.lastUpdated?this.$site.themeConfig.lastUpdated:"Last Updated"},editLink(){const t=w()(this.$page.frontmatter.editLink)?this.$site.themeConfig.editLinks:this.$page.frontmatter.editLink,{repo:e,docsDir:n="",docsBranch:s="master",docsRepo:i=e}=this.$site.themeConfig;return t&&i&&this.$page.relativePath?this.createEditLink(e,i,n,s,this.$page.relativePath):null},editLinkText(){return this.$themeLocaleConfig.editLinkText||this.$site.themeConfig.editLinkText||"Edit this page"}},methods:{createEditLink(t,e,n,i,a){if(/bitbucket.org/.test(e)){return e.replace(s.a,"")+"/src"+`/${i}/`+(n?n.replace(s.a,"")+"/":"")+a+`?mode=edit&spa=0&at=${i}&fileviewer=file-view-default`}if(/gitlab.com/.test(e)){return e.replace(s.a,"")+"/-/edit"+`/${i}/`+(n?n.replace(s.a,"")+"/":"")+a}return(s.i.test(e)?e:"https://github.com/"+e).replace(s.a,"")+"/edit"+`/${i}/`+(n?n.replace(s.a,"")+"/":"")+a}}},S=(n(265),Object(a.a)(O,(function(){var t=this,e=t._self._c;return e("footer",{staticClass:"page-edit"},[t.editLink?e("div",{staticClass:"edit-link"},[e("a",{attrs:{href:t.editLink,target:"_blank",rel:"noopener noreferrer"}},[t._v(t._s(t.editLinkText))]),t._v(" "),e("OutboundLink")],1):t._e(),t._v(" "),t.lastUpdated?e("div",{staticClass:"last-updated"},[e("span",{staticClass:"prefix"},[t._v(t._s(t.lastUpdatedText)+":")]),t._v(" "),e("span",{staticClass:"time"},[t._v(t._s(t.lastUpdated))])]):t._e()])}),[],!1,null,null,null).exports),I=n(266),j=n.n(I),N={name:"PageNav",props:["sidebarItems"],computed:{prev(){return P(T.PREV,this)},next(){return P(T.NEXT,this)}}};const T={NEXT:{resolveLink:function(t,e){return A(t,e,1)},getThemeLinkConfig:({nextLinks:t})=>t,getPageLinkConfig:({frontmatter:t})=>t.next},PREV:{resolveLink:function(t,e){return A(t,e,-1)},getThemeLinkConfig:({prevLinks:t})=>t,getPageLinkConfig:({frontmatter:t})=>t.prev}};function P(t,{$themeConfig:e,$page:n,$route:i,$site:a,sidebarItems:r}){const{resolveLink:o,getThemeLinkConfig:l,getPageLinkConfig:u}=t,c=l(e),h=u(n),p=w()(h)?c:h;return!1===p?void 0:j()(p)?Object(s.k)(a.pages,p,i.path):o(n,r)}function A(t,e,n){const s=[];!function t(e,n){for(let s=0,i=e.length;s({isSidebarOpen:!1}),computed:{shouldShowNavbar(){const{themeConfig:t}=this.$site,{frontmatter:e}=this.$page;return!1!==e.navbar&&!1!==t.navbar&&(this.$title||t.logo||t.repo||t.nav||this.$themeLocaleConfig.nav)},shouldShowSidebar(){const{frontmatter:t}=this.$page;return!t.home&&!1!==t.sidebar&&this.sidebarItems.length},sidebarItems(){return Object(s.l)(this.$page,this.$page.regularPath,this.$site,this.$localePath)},pageClasses(){const t=this.$page.frontmatter.pageClass;return[{"no-navbar":!this.shouldShowNavbar,"sidebar-open":this.isSidebarOpen,"no-sidebar":!this.shouldShowSidebar},t]}},mounted(){this.$router.afterEach(()=>{this.isSidebarOpen=!1})},methods:{toggleSidebar(t){this.isSidebarOpen="boolean"==typeof t?t:!this.isSidebarOpen,this.$emit("toggle-sidebar",this.isSidebarOpen)},onTouchStart(t){this.touchStart={x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY}},onTouchEnd(t){const e=t.changedTouches[0].clientX-this.touchStart.x,n=t.changedTouches[0].clientY-this.touchStart.y;Math.abs(e)>Math.abs(n)&&Math.abs(e)>40&&(e>0&&this.touchStart.x<=80?this.toggleSidebar(!0):this.toggleSidebar(!1))}}}),G=Object(a.a)(U,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"theme-container",class:t.pageClasses,on:{touchstart:t.onTouchStart,touchend:t.onTouchEnd}},[t.shouldShowNavbar?e("Navbar",{on:{"toggle-sidebar":t.toggleSidebar}}):t._e(),t._v(" "),e("div",{staticClass:"sidebar-mask",on:{click:function(e){return t.toggleSidebar(!1)}}}),t._v(" "),e("Sidebar",{attrs:{items:t.sidebarItems},on:{"toggle-sidebar":t.toggleSidebar},scopedSlots:t._u([{key:"top",fn:function(){return[t._t("sidebar-top")]},proxy:!0},{key:"bottom",fn:function(){return[t._t("sidebar-bottom")]},proxy:!0}],null,!0)}),t._v(" "),t.$page.frontmatter.home?e("Home"):e("Page",{attrs:{"sidebar-items":t.sidebarItems},scopedSlots:t._u([{key:"top",fn:function(){return[t._t("page-top")]},proxy:!0},{key:"bottom",fn:function(){return[t._t("page-bottom")]},proxy:!0}],null,!0)})],1)}),[],!1,null,null,null);e.default=G.exports}}]); \ No newline at end of file diff --git a/docs-old/.vuepress/dist/assets/js/20.36179c32.js b/docs-old/.vuepress/dist/assets/js/20.36179c32.js deleted file mode 100644 index c10b948..0000000 --- a/docs-old/.vuepress/dist/assets/js/20.36179c32.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[20],{292:function(e,o,a){"use strict";a.r(o);var s=a(14),n=Object(s.a)({},(function(){var e=this,o=e._self._c;return o("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[o("h1",{attrs:{id:"comportamiento"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#comportamiento"}},[e._v("#")]),e._v(" Comportamiento")]),e._v(" "),o("p",[e._v("Para poder comunicarse con los Web Services de AFIP se debe autenticar con su servicio de "),o("a",{attrs:{href:"https://www.afip.gob.ar/ws/WSAA/WSAAmanualDev.pdf",target:"_blank",rel:"noopener noreferrer"}},[e._v("WSAA"),o("OutboundLink")],1),e._v(" el cual retorna los tokens necesarios con una validez de hasta 12 horas.\nEste servicio de autenticacion solo puede ser llamado cada 2 minutos en los servidores de produccion y hasta 10 minutos en los servidores de homologiacion.")]),e._v(" "),o("p",[e._v("Para esto otros paquetes internamente generan archivos donde guardan estos tokens de manera local en el servidor usando el file sistem de Node (require('fs')). Esto es un problema cuando se ejecuta sobre funciones serverless como las Lambdas de AWS.")]),e._v(" "),o("p",[e._v("Este paquete permite manejar los tickets de acceso (TA que devuelve con los tokens AFIP) de manera personals si se desea, permitiendo tomar datos y guardarlos donde les sea mas conveniente, como en una BD, un S3, o algun storage provider.")]),e._v(" "),o("p",[e._v("Aun asi, si no se quiere manejar personalmente y que se guarden en el servidor, pueden no especificar nada en el contexto de la clase Afip al momento de instanciarlo y este guardara JSONs con los tokens dentro de la carpeta del paquete (Por default root/src/auth/tickets, aunque se puede cambiar desde el constructor).")])])}),[],!1,null,null,null);o.default=n.exports}}]); \ No newline at end of file diff --git a/docs-old/.vuepress/dist/assets/js/21.f7887449.js b/docs-old/.vuepress/dist/assets/js/21.f7887449.js deleted file mode 100644 index 0df6efb..0000000 --- a/docs-old/.vuepress/dist/assets/js/21.f7887449.js +++ /dev/null @@ -1,441 +0,0 @@ -(window.webpackJsonp = window.webpackJsonp || []).push([ - [21], - { - 291: function (t, e, a) { - "use strict"; - a.r(e); - var s = a(14), - n = Object(s.a)( - {}, - function () { - var t = this, - e = t._self._c; - return e( - "ContentSlotsDistributor", - { attrs: { "slot-key": t.$parent.slotKey } }, - [ - e("h1", { attrs: { id: "contexto" } }, [ - e( - "a", - { - staticClass: "header-anchor", - attrs: { href: "#contexto" }, - }, - [t._v("#")] - ), - t._v(" Contexto"), - ]), - t._v(" "), - e("h3", { attrs: { id: "afip-context" } }, [ - e( - "a", - { - staticClass: "header-anchor", - attrs: { href: "#afip-context" }, - }, - [t._v("#")] - ), - t._v(" Afip Context:"), - ]), - t._v(" "), - e("p", [ - t._v("La clase "), - e("code", [t._v("Afip")]), - t._v(" recibe como parametro un objecto de tipo "), - e("code", [t._v("Context")]), - t._v( - " el cual provee de los datos basicos necesarios para el uso de los Web Services de Afip, como tambien de como debe comportarse:" - ), - ]), - t._v(" "), - e("div", { staticClass: "language-ts extra-class" }, [ - e("pre", { pre: !0, attrs: { class: "language-ts" } }, [ - e("code", [ - e( - "span", - { pre: !0, attrs: { class: "token keyword" } }, - [t._v("const")] - ), - t._v(" instance "), - e( - "span", - { pre: !0, attrs: { class: "token operator" } }, - [t._v("=")] - ), - t._v(" "), - e( - "span", - { pre: !0, attrs: { class: "token keyword" } }, - [t._v("new")] - ), - t._v(" "), - e( - "span", - { pre: !0, attrs: { class: "token class-name" } }, - [t._v("Afip")] - ), - e( - "span", - { pre: !0, attrs: { class: "token punctuation" } }, - [t._v("(")] - ), - t._v("Context"), - e( - "span", - { pre: !0, attrs: { class: "token punctuation" } }, - [t._v(")")] - ), - e( - "span", - { pre: !0, attrs: { class: "token punctuation" } }, - [t._v(";")] - ), - t._v("\n"), - ]), - ]), - ]), - e("ul", [ - e("li", [ - e("code", [t._v("Context")]), - t._v(":\n"), - e("ul", [ - e("li", [ - e("code", [t._v("production")]), - t._v(" "), - e("small", [t._v("(boolean)")]), - t._v( - ": Flag que permite indicar si se usara los servicios de produccion o de homologacion (Testing)." - ), - ]), - t._v(" "), - e("li", [ - e("code", [t._v("cert")]), - t._v(" "), - e("small", [t._v("*(string)")]), - t._v(": Contenido del certificado "), - e("code", [t._v("(.crt)")]), - t._v("."), - ]), - t._v(" "), - e("li", [ - e("code", [t._v("key")]), - t._v(" "), - e("small", [t._v("*(string)")]), - t._v(": Contenido de la llave privada."), - ]), - t._v(" "), - e("li", [ - e("code", [t._v("cuit")]), - t._v(" "), - e("small", [t._v("*(number)")]), - t._v(": Cuit del usuario a usar."), - ]), - t._v(" "), - e("li", [ - e("code", [t._v("credentials")]), - t._v(" "), - e("small", [t._v("(WSAuthTokens)")]), - t._v(": Objeto de tipo WSAuthTokens ("), - e( - "a", - { - attrs: { - href: "https://github.com/valiulab/afip.ts/blob/main/src/auth/types.ts#L5", - target: "_blank", - rel: "noopener noreferrer", - }, - }, - [t._v("Ver"), e("OutboundLink")], - 1 - ), - t._v( - "). Aca es donde se asigna los tokens de autenticacion si es que tiene alguno guardado." - ), - ]), - t._v(" "), - e("li", [ - e("code", [t._v("handleTicket")]), - t._v(" "), - e("small", [t._v("(boolean)")]), - t._v( - ": Flag que indica si los tickets de autenticacion son manejados localmente automaticamente por el package o van a ser dados por el desarrollador (Mas adelante se indicara como hacer log in y luego pasar los tokens antes de una llamada al Web Service deseado). Esto es util cuando se desea usar el package sobre una " - ), - e("code", [t._v("lambda")]), - t._v( - ", ya que en estas no podremos guardar localemnte los tokens." - ), - ]), - t._v(" "), - e("li", [ - e("code", [t._v("ticketPath")]), - t._v(" "), - e("small", [t._v("(string)")]), - t._v( - ": Ruta preferencial donde se desea guardaran los tokens obtenidos desde el servicio WSAA si no se desea la carpeta default." - ), - ]), - ]), - ]), - ]), - t._v(" "), - e("br"), - t._v("\nContext Type code:\n"), - e("div", { staticClass: "language-ts extra-class" }, [ - e("pre", { pre: !0, attrs: { class: "language-ts" } }, [ - e("code", [ - e( - "span", - { pre: !0, attrs: { class: "token keyword" } }, - [t._v("type")] - ), - t._v(" "), - e( - "span", - { pre: !0, attrs: { class: "token class-name" } }, - [t._v("Context")] - ), - t._v(" "), - e( - "span", - { pre: !0, attrs: { class: "token operator" } }, - [t._v("=")] - ), - t._v(" "), - e( - "span", - { pre: !0, attrs: { class: "token punctuation" } }, - [t._v("{")] - ), - t._v("\n "), - e( - "span", - { pre: !0, attrs: { class: "token comment" } }, - [ - t._v( - "/**\n * Flag for production or testing environment\n *\n * @var boolean\n **/" - ), - ] - ), - t._v("\n production"), - e( - "span", - { pre: !0, attrs: { class: "token operator" } }, - [t._v("?")] - ), - e( - "span", - { pre: !0, attrs: { class: "token operator" } }, - [t._v(":")] - ), - t._v(" "), - e( - "span", - { pre: !0, attrs: { class: "token builtin" } }, - [t._v("boolean")] - ), - e( - "span", - { pre: !0, attrs: { class: "token punctuation" } }, - [t._v(";")] - ), - t._v("\n\n "), - e( - "span", - { pre: !0, attrs: { class: "token comment" } }, - [ - t._v( - "/**\n * Content file for the X.509 certificate in PEM format\n *\n * @var string\n **/" - ), - ] - ), - t._v("\n cert"), - e( - "span", - { pre: !0, attrs: { class: "token operator" } }, - [t._v(":")] - ), - t._v(" "), - e( - "span", - { pre: !0, attrs: { class: "token builtin" } }, - [t._v("string")] - ), - e( - "span", - { pre: !0, attrs: { class: "token punctuation" } }, - [t._v(";")] - ), - t._v("\n\n "), - e( - "span", - { pre: !0, attrs: { class: "token comment" } }, - [ - t._v( - "/**\n * Content file for the private key correspoding to CERT (PEM)\n *\n * @var string\n **/" - ), - ] - ), - t._v("\n key"), - e( - "span", - { pre: !0, attrs: { class: "token operator" } }, - [t._v(":")] - ), - t._v(" "), - e( - "span", - { pre: !0, attrs: { class: "token builtin" } }, - [t._v("string")] - ), - e( - "span", - { pre: !0, attrs: { class: "token punctuation" } }, - [t._v(";")] - ), - t._v("\n\n "), - e( - "span", - { pre: !0, attrs: { class: "token comment" } }, - [ - t._v( - "/**\n * The CUIT to use\n *\n * @var int\n **/" - ), - ] - ), - t._v("\n cuit"), - e( - "span", - { pre: !0, attrs: { class: "token operator" } }, - [t._v(":")] - ), - t._v(" "), - e( - "span", - { pre: !0, attrs: { class: "token builtin" } }, - [t._v("number")] - ), - e( - "span", - { pre: !0, attrs: { class: "token punctuation" } }, - [t._v(";")] - ), - t._v("\n\n "), - e( - "span", - { pre: !0, attrs: { class: "token comment" } }, - [ - t._v( - "/**\n * Tokens object if you have one created before\n *\n * @var credentials\n **/" - ), - ] - ), - t._v("\n credentials"), - e( - "span", - { pre: !0, attrs: { class: "token operator" } }, - [t._v("?")] - ), - e( - "span", - { pre: !0, attrs: { class: "token operator" } }, - [t._v(":")] - ), - t._v(" WSAuthTokens"), - e( - "span", - { pre: !0, attrs: { class: "token punctuation" } }, - [t._v(";")] - ), - t._v("\n\n "), - e( - "span", - { pre: !0, attrs: { class: "token comment" } }, - [ - t._v( - "/**\n * Flag that if is true, the access tickets data is handled by the developer, otherwise is saved locally.\n */" - ), - ] - ), - t._v("\n handleTicket"), - e( - "span", - { pre: !0, attrs: { class: "token operator" } }, - [t._v("?")] - ), - e( - "span", - { pre: !0, attrs: { class: "token operator" } }, - [t._v(":")] - ), - t._v(" "), - e( - "span", - { pre: !0, attrs: { class: "token builtin" } }, - [t._v("boolean")] - ), - e( - "span", - { pre: !0, attrs: { class: "token punctuation" } }, - [t._v(";")] - ), - t._v("\n\n "), - e( - "span", - { pre: !0, attrs: { class: "token comment" } }, - [ - t._v( - "/**\n * The path of the auth obj if the package is auto managed\n */" - ), - ] - ), - t._v("\n ticketPath"), - e( - "span", - { pre: !0, attrs: { class: "token operator" } }, - [t._v("?")] - ), - e( - "span", - { pre: !0, attrs: { class: "token operator" } }, - [t._v(":")] - ), - t._v(" "), - e( - "span", - { pre: !0, attrs: { class: "token builtin" } }, - [t._v("string")] - ), - e( - "span", - { pre: !0, attrs: { class: "token punctuation" } }, - [t._v(";")] - ), - t._v("\n"), - e( - "span", - { pre: !0, attrs: { class: "token punctuation" } }, - [t._v("}")] - ), - e( - "span", - { pre: !0, attrs: { class: "token punctuation" } }, - [t._v(";")] - ), - t._v("\n"), - ]), - ]), - ]), - e("br"), - ] - ); - }, - [], - !1, - null, - null, - null - ); - e.default = n.exports; - }, - }, -]); diff --git a/docs-old/.vuepress/dist/assets/js/3.76c141f8.js b/docs-old/.vuepress/dist/assets/js/3.76c141f8.js deleted file mode 100644 index 2016c0e..0000000 --- a/docs-old/.vuepress/dist/assets/js/3.76c141f8.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{254:function(t,e,n){},273:function(t,e,n){"use strict";n(254)},294:function(t,e,n){"use strict";n.r(e);var i={functional:!0,props:{type:{type:String,default:"tip"},text:String,vertical:{type:String,default:"top"}},render:(t,{props:e,slots:n})=>t("span",{class:["badge",e.type],style:{verticalAlign:e.vertical}},e.text||n().default)},p=(n(273),n(14)),a=Object(p.a)(i,void 0,void 0,!1,null,"5a14436c",null);e.default=a.exports}}]); \ No newline at end of file diff --git a/docs-old/.vuepress/dist/assets/js/4.7c6fcfa0.js b/docs-old/.vuepress/dist/assets/js/4.7c6fcfa0.js deleted file mode 100644 index 6721c84..0000000 --- a/docs-old/.vuepress/dist/assets/js/4.7c6fcfa0.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{253:function(t,e,s){},272:function(t,e,s){"use strict";s(253)},279:function(t,e,s){"use strict";s.r(e);var a={name:"CodeBlock",props:{title:{type:String,required:!0},active:{type:Boolean,default:!1}},mounted(){this.$parent&&this.$parent.loadTabs&&this.$parent.loadTabs()}},i=(s(272),s(14)),n=Object(i.a)(a,(function(){return(0,this._self._c)("div",{staticClass:"theme-code-block",class:{"theme-code-block__active":this.active}},[this._t("default")],2)}),[],!1,null,"396279e5",null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs-old/.vuepress/dist/assets/js/5.b87e8bfd.js b/docs-old/.vuepress/dist/assets/js/5.b87e8bfd.js deleted file mode 100644 index 55c75ac..0000000 --- a/docs-old/.vuepress/dist/assets/js/5.b87e8bfd.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{255:function(e,t,a){},274:function(e,t,a){"use strict";a(255)},280:function(e,t,a){"use strict";a.r(t);var o={name:"CodeGroup",data:()=>({codeTabs:[],activeCodeTabIndex:-1}),watch:{activeCodeTabIndex(e){this.activateCodeTab(e)}},mounted(){this.loadTabs()},methods:{changeCodeTab(e){this.activeCodeTabIndex=e},loadTabs(){this.codeTabs=(this.$slots.default||[]).filter(e=>Boolean(e.componentOptions)).map((e,t)=>(""===e.componentOptions.propsData.active&&(this.activeCodeTabIndex=t),{title:e.componentOptions.propsData.title,elm:e.elm})),-1===this.activeCodeTabIndex&&this.codeTabs.length>0&&(this.activeCodeTabIndex=0),this.activateCodeTab(0)},activateCodeTab(e){this.codeTabs.forEach(e=>{e.elm&&e.elm.classList.remove("theme-code-block__active")}),this.codeTabs[e].elm&&this.codeTabs[e].elm.classList.add("theme-code-block__active")}}},s=(a(274),a(14)),c=Object(s.a)(o,(function(){var e=this,t=e._self._c;return t("ClientOnly",[t("div",{staticClass:"theme-code-group"},[t("div",{staticClass:"theme-code-group__nav"},[t("ul",{staticClass:"theme-code-group__ul"},e._l(e.codeTabs,(function(a,o){return t("li",{key:a.title,staticClass:"theme-code-group__li"},[t("button",{staticClass:"theme-code-group__nav-tab",class:{"theme-code-group__nav-tab-active":o===e.activeCodeTabIndex},on:{click:function(t){return e.changeCodeTab(o)}}},[e._v("\n "+e._s(a.title)+"\n ")])])})),0)]),e._v(" "),e._t("default"),e._v(" "),e.codeTabs.length<1?t("pre",{staticClass:"pre-blank"},[e._v("// Make sure to add code blocks to your code group")]):e._e()],2)])}),[],!1,null,"6b582350",null);t.default=c.exports}}]); \ No newline at end of file diff --git a/docs-old/.vuepress/dist/assets/js/6.5cfac2d9.js b/docs-old/.vuepress/dist/assets/js/6.5cfac2d9.js deleted file mode 100644 index f9d4fc4..0000000 --- a/docs-old/.vuepress/dist/assets/js/6.5cfac2d9.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{278:function(s,t,n){"use strict";n.r(t);var i={data:()=>({msg:"Hello this is "})},l=n(14),o=Object(l.a)(i,(function(){return(0,this._self._c)("p",{staticClass:"demo"},[this._v("\n "+this._s(this.msg)+"\n")])}),[],!1,null,null,null);t.default=o.exports}}]); \ No newline at end of file diff --git a/docs-old/.vuepress/dist/assets/js/7.2ff11ce9.js b/docs-old/.vuepress/dist/assets/js/7.2ff11ce9.js deleted file mode 100644 index 9c4fba6..0000000 --- a/docs-old/.vuepress/dist/assets/js/7.2ff11ce9.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{293:function(n,s,t){"use strict";t.r(s);var e=t(14),o=Object(e.a)({},(function(){return(0,this._self._c)("p",{staticClass:"demo"},[this._v("This is another component")])}),[],!1,null,null,null);s.default=o.exports}}]); \ No newline at end of file diff --git a/docs-old/.vuepress/dist/assets/js/8.12978275.js b/docs-old/.vuepress/dist/assets/js/8.12978275.js deleted file mode 100644 index b9c4b9a..0000000 --- a/docs-old/.vuepress/dist/assets/js/8.12978275.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{277:function(s,t,n){"use strict";n.r(t);var e={data:()=>({msg:"Hello this is "})},i=n(14),o=Object(i.a)(e,(function(){return(0,this._self._c)("p",{staticClass:"demo"},[this._v("\n "+this._s(this.msg)+"\n")])}),[],!1,null,null,null);t.default=o.exports}}]); \ No newline at end of file diff --git a/docs-old/.vuepress/dist/assets/js/9.4315a776.js b/docs-old/.vuepress/dist/assets/js/9.4315a776.js deleted file mode 100644 index 0eeb091..0000000 --- a/docs-old/.vuepress/dist/assets/js/9.4315a776.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[9],{276:function(t,e,s){"use strict";s.r(e);const o=["There's nothing here.","How did we get here?","That's a Four-Oh-Four.","Looks like we've got some broken links."];var n={methods:{getMsg:()=>o[Math.floor(Math.random()*o.length)]}},h=s(14),i=Object(h.a)(n,(function(){var t=this._self._c;return t("div",{staticClass:"theme-container"},[t("div",{staticClass:"theme-default-content"},[t("h1",[this._v("404")]),this._v(" "),t("blockquote",[this._v(this._s(this.getMsg()))]),this._v(" "),t("RouterLink",{attrs:{to:"/"}},[this._v("\n Take me home.\n ")])],1)])}),[],!1,null,null,null);e.default=i.exports}}]); \ No newline at end of file diff --git a/docs-old/.vuepress/dist/assets/js/app.4f800eba.js b/docs-old/.vuepress/dist/assets/js/app.4f800eba.js deleted file mode 100644 index da6f04e..0000000 --- a/docs-old/.vuepress/dist/assets/js/app.4f800eba.js +++ /dev/null @@ -1,16 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[0],[]]);!function(t){function e(e){for(var r,a,s=e[0],c=e[1],u=e[2],f=0,p=[];f
'};function o(t,e,n){return tn?n:t}function i(t){return 100*(-1+t)}n.configure=function(t){var e,n;for(e in t)void 0!==(n=t[e])&&t.hasOwnProperty(e)&&(r[e]=n);return this},n.status=null,n.set=function(t){var e=n.isStarted();t=o(t,r.minimum,1),n.status=1===t?null:t;var c=n.render(!e),u=c.querySelector(r.barSelector),l=r.speed,f=r.easing;return c.offsetWidth,a((function(e){""===r.positionUsing&&(r.positionUsing=n.getPositioningCSS()),s(u,function(t,e,n){var o;return(o="translate3d"===r.positionUsing?{transform:"translate3d("+i(t)+"%,0,0)"}:"translate"===r.positionUsing?{transform:"translate("+i(t)+"%,0)"}:{"margin-left":i(t)+"%"}).transition="all "+e+"ms "+n,o}(t,l,f)),1===t?(s(c,{transition:"none",opacity:1}),c.offsetWidth,setTimeout((function(){s(c,{transition:"all "+l+"ms linear",opacity:0}),setTimeout((function(){n.remove(),e()}),l)}),l)):setTimeout(e,l)})),this},n.isStarted=function(){return"number"==typeof n.status},n.start=function(){n.status||n.set(0);var t=function(){setTimeout((function(){n.status&&(n.trickle(),t())}),r.trickleSpeed)};return r.trickle&&t(),this},n.done=function(t){return t||n.status?n.inc(.3+.5*Math.random()).set(1):this},n.inc=function(t){var e=n.status;return e?("number"!=typeof t&&(t=(1-e)*o(Math.random()*e,.1,.95)),e=o(e+t,0,.994),n.set(e)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},t=0,e=0,n.promise=function(r){return r&&"resolved"!==r.state()?(0===e&&n.start(),t++,e++,r.always((function(){0==--e?(t=0,n.done()):n.set((t-e)/t)})),this):this},n.render=function(t){if(n.isRendered())return document.getElementById("nprogress");u(document.documentElement,"nprogress-busy");var e=document.createElement("div");e.id="nprogress",e.innerHTML=r.template;var o,a=e.querySelector(r.barSelector),c=t?"-100":i(n.status||0),l=document.querySelector(r.parent);return s(a,{transition:"all 0 linear",transform:"translate3d("+c+"%,0,0)"}),r.showSpinner||(o=e.querySelector(r.spinnerSelector))&&p(o),l!=document.body&&u(l,"nprogress-custom-parent"),l.appendChild(e),e},n.remove=function(){l(document.documentElement,"nprogress-busy"),l(document.querySelector(r.parent),"nprogress-custom-parent");var t=document.getElementById("nprogress");t&&p(t)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var t=document.body.style,e="WebkitTransform"in t?"Webkit":"MozTransform"in t?"Moz":"msTransform"in t?"ms":"OTransform"in t?"O":"";return e+"Perspective"in t?"translate3d":e+"Transform"in t?"translate":"margin"};var a=function(){var t=[];function e(){var n=t.shift();n&&n(e)}return function(n){t.push(n),1==t.length&&e()}}(),s=function(){var t=["Webkit","O","Moz","ms"],e={};function n(n){return n=n.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(t,e){return e.toUpperCase()})),e[n]||(e[n]=function(e){var n=document.body.style;if(e in n)return e;for(var r,o=t.length,i=e.charAt(0).toUpperCase()+e.slice(1);o--;)if((r=t[o]+i)in n)return r;return e}(n))}function r(t,e,r){e=n(e),t.style[e]=r}return function(t,e){var n,o,i=arguments;if(2==i.length)for(n in e)void 0!==(o=e[n])&&e.hasOwnProperty(n)&&r(t,n,o);else r(t,i[1],i[2])}}();function c(t,e){return("string"==typeof t?t:f(t)).indexOf(" "+e+" ")>=0}function u(t,e){var n=f(t),r=n+e;c(n,e)||(t.className=r.substring(1))}function l(t,e){var n,r=f(t);c(t,e)&&(n=r.replace(" "+e+" "," "),t.className=n.substring(1,n.length-1))}function f(t){return(" "+(t.className||"")+" ").replace(/\s+/gi," ")}function p(t){t&&t.parentNode&&t.parentNode.removeChild(t)}return n})?r.call(e,n,e,t):r)||(t.exports=o)},function(t,e,n){var r=n(1),o=n(44).f,i=n(16),a=n(104),s=n(31),c=n(62),u=n(120);t.exports=function(t,e){var n,l,f,p,d,h=t.target,v=t.global,m=t.stat;if(n=v?r:m?r[h]||s(h,{}):(r[h]||{}).prototype)for(l in e){if(p=e[l],f=t.dontCallGetSet?(d=o(n,l))&&d.value:n[l],!u(v?l:h+(m?".":"#")+l,t.forced)&&void 0!==f){if(typeof p==typeof f)continue;c(p,f)}(t.sham||f&&f.sham)&&i(p,"sham",!0),a(n,l,p,t)}}},function(t,e,n){var r=n(26),o=Function.prototype.call;t.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},function(t,e,n){var r=n(2);t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(45),o=n(47);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(1),o=n(57),i=n(7),a=n(59),s=n(54),c=n(53),u=o("wks"),l=r.Symbol,f=l&&l.for,p=c?l:l&&l.withoutSetter||a;t.exports=function(t){if(!i(u,t)||!s&&"string"!=typeof u[t]){var e="Symbol."+t;s&&i(l,t)?u[t]=l[t]:u[t]=c&&f?f(e):p(e)}return u[t]}},function(t,e,n){var r=n(1),o=n(31),i=r["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,e,n){var r=n(1),o=Object.defineProperty;t.exports=function(t,e){try{o(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},function(t,e,n){var r=n(47),o=Object;t.exports=function(t){return o(r(t))}},function(t,e,n){var r=n(8),o=String,i=TypeError;t.exports=function(t){if(r(t))return t;throw i(o(t)+" is not an object")}},function(t,e,n){var r=n(117);t.exports=function(t){return r(t.length)}},function(t,e,n){var r=n(142),o=n(10),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(t){return o(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=c},function(t,e,n){var r=n(9)(n(6),"Map");t.exports=r},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,n){var r=n(162),o=n(169),i=n(171),a=n(172),s=n(173);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1&&t%1==0&&t<=9007199254740991}},function(t,e,n){var r=n(3),o=n(42),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!o(t))||(a.test(t)||!i.test(t)||null!=e&&t in Object(e))}},function(t,e,n){var r=n(11),o=n(10);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==r(t)}},function(t,e){t.exports=function(t){return t}},function(t,e,n){var r=n(4),o=n(25),i=n(96),a=n(27),s=n(28),c=n(49),u=n(7),l=n(60),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=s(t),e=c(e),l)try{return f(t,e)}catch(t){}if(u(t,e))return a(!o(i.f,t,e),t[e])}},function(t,e,n){var r=n(5),o=n(2),i=n(12),a=Object,s=r("".split);t.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?s(t,""):a(t)}:a},function(t,e,n){var r=n(26),o=Function.prototype,i=o.call,a=r&&o.bind.bind(i,i);t.exports=r?a:function(t){return function(){return i.apply(t,arguments)}}},function(t,e,n){var r=n(48),o=TypeError;t.exports=function(t){if(r(t))throw o("Can't call method on "+t);return t}},function(t,e){t.exports=function(t){return null==t}},function(t,e,n){var r=n(97),o=n(51);t.exports=function(t){var e=r(t,"string");return o(e)?e:e+""}},function(t,e){var n="object"==typeof document&&document.all,r=void 0===n&&void 0!==n;t.exports={all:n,IS_HTMLDDA:r}},function(t,e,n){var r=n(15),o=n(0),i=n(52),a=n(53),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return o(e)&&i(e.prototype,s(t))}},function(t,e,n){var r=n(5);t.exports=r({}.isPrototypeOf)},function(t,e,n){var r=n(54);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,n){var r=n(55),o=n(2);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(t,e,n){var r,o,i=n(1),a=n(98),s=i.process,c=i.Deno,u=s&&s.versions||c&&c.version,l=u&&u.v8;l&&(o=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),t.exports=o},function(t,e,n){var r=n(0),o=n(100),i=TypeError;t.exports=function(t){if(r(t))return t;throw i(o(t)+" is not a function")}},function(t,e,n){var r=n(58),o=n(30);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.26.0",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.0/LICENSE",source:"https://github.com/zloirock/core-js"})},function(t,e){t.exports=!1},function(t,e,n){var r=n(5),o=0,i=Math.random(),a=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++o+i,36)}},function(t,e,n){var r=n(4),o=n(2),i=n(102);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,e){t.exports={}},function(t,e,n){var r=n(7),o=n(111),i=n(44),a=n(17);t.exports=function(t,e,n){for(var s=o(e),c=a.f,u=i.f,l=0;ll))return!1;var p=c.get(t),d=c.get(e);if(p&&d)return p==e&&d==t;var h=-1,v=!0,m=2&n?new r:void 0;for(c.set(t,e),c.set(e,t);++h-1&&t%1==0&&t]/;t.exports=function(t){var e,n=""+t,o=r.exec(n);if(!o)return n;var i="",a=0,s=0;for(a=o.index;a=e||n<0||m&&t-u>=i}function x(){var t=d();if(_(t))return w(t);s=setTimeout(x,function(t){var n=e-(t-c);return m?p(n,i-(t-u)):n}(t))}function w(t){return s=void 0,y&&r?g(t):(r=o=void 0,a)}function O(){var t=d(),n=_(t);if(r=arguments,o=this,c=t,n){if(void 0===s)return b(c);if(m)return s=setTimeout(x,e),g(c)}return void 0===s&&(s=setTimeout(x,e)),a}return e=v(e)||0,h(n)&&(l=!!n.leading,i=(m="maxWait"in n)?f(v(n.maxWait)||0,e):i,y="trailing"in n?!!n.trailing:y),O.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=c=o=s=void 0},O.flush=function(){return void 0===s?a:w(d())},O}},function(t,e,n){"use strict";var r=n(24),o=n(32),i=n(34),a=n(124),s=n(126),c=n(2)((function(){return 4294967297!==[].push.call({length:4294967296},1)})),u=!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}();r({target:"Array",proto:!0,arity:1,forced:c||u},{push:function(t){var e=o(this),n=i(e),r=arguments.length;s(n+r);for(var c=0;c79&&a<83},{reduce:function(t){var e=arguments.length;return o(this,t,e,e>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:r},function(t,e,n){var r=n(25),o=n(8),i=n(51),a=n(99),s=n(101),c=n(29),u=TypeError,l=c("toPrimitive");t.exports=function(t,e){if(!o(t)||i(t))return t;var n,c=a(t,l);if(c){if(void 0===e&&(e="default"),n=r(c,t,e),!o(n)||i(n))return n;throw u("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},function(t,e,n){var r=n(15);t.exports=r("navigator","userAgent")||""},function(t,e,n){var r=n(56),o=n(48);t.exports=function(t,e){var n=t[e];return o(n)?void 0:r(n)}},function(t,e){var n=String;t.exports=function(t){try{return n(t)}catch(t){return"Object"}}},function(t,e,n){var r=n(25),o=n(0),i=n(8),a=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&o(n=t.toString)&&!i(s=r(n,t)))return s;if(o(n=t.valueOf)&&!i(s=r(n,t)))return s;if("string"!==e&&o(n=t.toString)&&!i(s=r(n,t)))return s;throw a("Can't convert object to primitive value")}},function(t,e,n){var r=n(1),o=n(8),i=r.document,a=o(i)&&o(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},function(t,e,n){var r=n(4),o=n(2);t.exports=r&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},function(t,e,n){var r=n(0),o=n(17),i=n(105),a=n(31);t.exports=function(t,e,n,s){s||(s={});var c=s.enumerable,u=void 0!==s.name?s.name:e;if(r(n)&&i(n,u,s),s.global)c?t[e]=n:a(e,n);else{try{s.unsafe?t[e]&&(c=!0):delete t[e]}catch(t){}c?t[e]=n:o.f(t,e,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},function(t,e,n){var r=n(2),o=n(0),i=n(7),a=n(4),s=n(106).CONFIGURABLE,c=n(107),u=n(108),l=u.enforce,f=u.get,p=Object.defineProperty,d=a&&!r((function(){return 8!==p((function(){}),"length",{value:8}).length})),h=String(String).split("String"),v=t.exports=function(t,e,n){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!i(t,"name")||s&&t.name!==e)&&(a?p(t,"name",{value:e,configurable:!0}):t.name=e),d&&n&&i(n,"arity")&&t.length!==n.arity&&p(t,"length",{value:n.arity});try{n&&i(n,"constructor")&&n.constructor?a&&p(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=l(t);return i(r,"source")||(r.source=h.join("string"==typeof e?e:"")),t};Function.prototype.toString=v((function(){return o(this)&&f(this).source||c(this)}),"toString")},function(t,e,n){var r=n(4),o=n(7),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=o(i,"name"),c=s&&"something"===function(){}.name,u=s&&(!r||r&&a(i,"name").configurable);t.exports={EXISTS:s,PROPER:c,CONFIGURABLE:u}},function(t,e,n){var r=n(5),o=n(0),i=n(30),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return a(t)}),t.exports=i.inspectSource},function(t,e,n){var r,o,i,a=n(109),s=n(1),c=n(8),u=n(16),l=n(7),f=n(30),p=n(110),d=n(61),h=s.TypeError,v=s.WeakMap;if(a||f.state){var m=f.state||(f.state=new v);m.get=m.get,m.has=m.has,m.set=m.set,r=function(t,e){if(m.has(t))throw h("Object already initialized");return e.facade=t,m.set(t,e),e},o=function(t){return m.get(t)||{}},i=function(t){return m.has(t)}}else{var y=p("state");d[y]=!0,r=function(t,e){if(l(t,y))throw h("Object already initialized");return e.facade=t,u(t,y,e),e},o=function(t){return l(t,y)?t[y]:{}},i=function(t){return l(t,y)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!c(e)||(n=o(e)).type!==t)throw h("Incompatible receiver, "+t+" required");return n}}}},function(t,e,n){var r=n(1),o=n(0),i=r.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},function(t,e,n){var r=n(57),o=n(59),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,e,n){var r=n(15),o=n(5),i=n(112),a=n(119),s=n(33),c=o([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(s(t)),n=a.f;return n?c(e,n(t)):e}},function(t,e,n){var r=n(113),o=n(118).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(5),o=n(7),i=n(28),a=n(114).indexOf,s=n(61),c=r([].push);t.exports=function(t,e){var n,r=i(t),u=0,l=[];for(n in r)!o(s,n)&&o(r,n)&&c(l,n);for(;e.length>u;)o(r,n=e[u++])&&(~a(l,n)||c(l,n));return l}},function(t,e,n){var r=n(28),o=n(115),i=n(34),a=function(t){return function(e,n,a){var s,c=r(e),u=i(c),l=o(a,u);if(t&&n!=n){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((t||l in c)&&c[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},function(t,e,n){var r=n(63),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var e=+t;return(e>0?r:n)(e)}},function(t,e,n){var r=n(63),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(2),o=n(0),i=/#|\.prototype\./,a=function(t,e){var n=c[s(t)];return n==l||n!=u&&(o(e)?r(e):!!e)},s=a.normalize=function(t){return String(t).replace(i,".").toLowerCase()},c=a.data={},u=a.NATIVE="N",l=a.POLYFILL="P";t.exports=a},function(t,e,n){var r=n(56),o=n(32),i=n(45),a=n(34),s=TypeError,c=function(t){return function(e,n,c,u){r(n);var l=o(e),f=i(l),p=a(l),d=t?p-1:0,h=t?-1:1;if(c<2)for(;;){if(d in f){u=f[d],d+=h;break}if(d+=h,t?d<0:p<=d)throw s("Reduce of empty array with no initial value")}for(;t?d>=0:p>d;d+=h)d in f&&(u=n(u,f[d],d,l));return u}};t.exports={left:c(!1),right:c(!0)}},function(t,e,n){"use strict";var r=n(2);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){return 1},1)}))}},function(t,e,n){var r=n(12),o=n(1);t.exports="process"==r(o.process)},function(t,e,n){"use strict";var r=n(4),o=n(125),i=TypeError,a=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=s?function(t,e){if(o(t)&&!a(t,"length").writable)throw i("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},function(t,e,n){var r=n(12);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e){var n=TypeError;t.exports=function(t){if(t>9007199254740991)throw n("Maximum allowed index exceeded");return t}},function(t,e,n){var r=n(24),o=n(1),i=n(128),a=n(129),s=o.WebAssembly,c=7!==Error("e",{cause:7}).cause,u=function(t,e){var n={};n[t]=a(t,e,c),r({global:!0,constructor:!0,arity:1,forced:c},n)},l=function(t,e){if(s&&s[t]){var n={};n[t]=a("WebAssembly."+t,e,c),r({target:"WebAssembly",stat:!0,constructor:!0,arity:1,forced:c},n)}};u("Error",(function(t){return function(e){return i(t,this,arguments)}})),u("EvalError",(function(t){return function(e){return i(t,this,arguments)}})),u("RangeError",(function(t){return function(e){return i(t,this,arguments)}})),u("ReferenceError",(function(t){return function(e){return i(t,this,arguments)}})),u("SyntaxError",(function(t){return function(e){return i(t,this,arguments)}})),u("TypeError",(function(t){return function(e){return i(t,this,arguments)}})),u("URIError",(function(t){return function(e){return i(t,this,arguments)}})),l("CompileError",(function(t){return function(e){return i(t,this,arguments)}})),l("LinkError",(function(t){return function(e){return i(t,this,arguments)}})),l("RuntimeError",(function(t){return function(e){return i(t,this,arguments)}}))},function(t,e,n){var r=n(26),o=Function.prototype,i=o.apply,a=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(i):function(){return a.apply(i,arguments)})},function(t,e,n){"use strict";var r=n(15),o=n(7),i=n(16),a=n(52),s=n(64),c=n(62),u=n(131),l=n(132),f=n(133),p=n(137),d=n(138),h=n(139),v=n(4),m=n(58);t.exports=function(t,e,n,y){var g=y?2:1,b=t.split("."),_=b[b.length-1],x=r.apply(null,b);if(x){var w=x.prototype;if(!m&&o(w,"cause")&&delete w.cause,!n)return x;var O=r("Error"),C=e((function(t,e){var n=f(y?e:t,void 0),r=y?new x(t):new x;return void 0!==n&&i(r,"message",n),h&&i(r,"stack",d(r.stack,2)),this&&a(w,this)&&l(r,this,C),arguments.length>g&&p(r,arguments[g]),r}));if(C.prototype=w,"Error"!==_?s?s(C,O):c(C,O,{name:!0}):v&&"stackTraceLimit"in x&&(u(C,x,"stackTraceLimit"),u(C,x,"prepareStackTrace")),c(C,x),!m)try{w.name!==_&&i(w,"name",_),w.constructor=C}catch(t){}return C}}},function(t,e,n){var r=n(0),o=String,i=TypeError;t.exports=function(t){if("object"==typeof t||r(t))return t;throw i("Can't set "+o(t)+" as a prototype")}},function(t,e,n){var r=n(17).f;t.exports=function(t,e,n){n in t||r(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})}},function(t,e,n){var r=n(0),o=n(8),i=n(64);t.exports=function(t,e,n){var a,s;return i&&r(a=e.constructor)&&a!==n&&o(s=a.prototype)&&s!==n.prototype&&i(t,s),t}},function(t,e,n){var r=n(134);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:r(t)}},function(t,e,n){var r=n(135),o=String;t.exports=function(t){if("Symbol"===r(t))throw TypeError("Cannot convert a Symbol value to a string");return o(t)}},function(t,e,n){var r=n(136),o=n(0),i=n(12),a=n(29)("toStringTag"),s=Object,c="Arguments"==i(function(){return arguments}());t.exports=r?i:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=s(t),a))?n:c?i(e):"Object"==(r=i(e))&&o(e.callee)?"Arguments":r}},function(t,e,n){var r={};r[n(29)("toStringTag")]="z",t.exports="[object z]"===String(r)},function(t,e,n){var r=n(8),o=n(16);t.exports=function(t,e){r(e)&&"cause"in e&&o(t,"cause",e.cause)}},function(t,e,n){var r=n(5),o=Error,i=r("".replace),a=String(o("zxcasd").stack),s=/\n\s*at [^:]*:[^\n]*/,c=s.test(a);t.exports=function(t,e){if(c&&"string"==typeof t&&!o.prepareStackTrace)for(;e--;)t=i(t,s,"");return t}},function(t,e,n){var r=n(2),o=n(27);t.exports=!r((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",o(1,7)),7!==t.stack)}))},function(t,e,n){var r=n(65),o=n(141);t.exports=function t(e,n,i,a,s){var c=-1,u=e.length;for(i||(i=o),s||(s=[]);++c0&&i(l)?n>1?t(l,n-1,i,a,s):r(s,l):a||(s[s.length]=l)}return s}},function(t,e,n){var r=n(13),o=n(35),i=n(3),a=r?r.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},function(t,e,n){var r=n(11),o=n(10);t.exports=function(t){return o(t)&&"[object Arguments]"==r(t)}},function(t,e,n){var r=n(13),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;t.exports=function(t){var e=i.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(t){}var o=a.call(t);return r&&(e?t[s]=n:delete t[s]),o}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e,n){var r=n(146),o=n(202),i=n(43),a=n(3),s=n(212);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?a(t)?o(t[0],t[1]):r(t):s(t)}},function(t,e,n){var r=n(147),o=n(201),i=n(83);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},function(t,e,n){var r=n(67),o=n(71);t.exports=function(t,e,n,i){var a=n.length,s=a,c=!i;if(null==t)return!s;for(t=Object(t);a--;){var u=n[a];if(c&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++a-1}},function(t,e,n){var r=n(19);t.exports=function(t,e){var n=this.__data__,o=r(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this}},function(t,e,n){var r=n(18);t.exports=function(){this.__data__=new r,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var r=n(18),o=n(36),i=n(38);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(t,e),this.size=n.size,this}},function(t,e,n){var r=n(69),o=n(159),i=n(37),a=n(70),s=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,f=u.hasOwnProperty,p=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(r(t)?p:s).test(a(t))}},function(t,e,n){var r,o=n(160),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!i&&i in t}},function(t,e,n){var r=n(6)["__core-js_shared__"];t.exports=r},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,n){var r=n(163),o=n(18),i=n(36);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},function(t,e,n){var r=n(164),o=n(165),i=n(166),a=n(167),s=n(168);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,n){var r=n(73),o=n(224),i=n(229),a=n(74),s=n(230),c=n(39);t.exports=function(t,e,n){var u=-1,l=o,f=t.length,p=!0,d=[],h=d;if(n)p=!1,l=i;else if(f>=200){var v=e?null:s(t);if(v)return c(v);p=!1,l=a,h=new r}else h=e?[]:d;t:for(;++u-1}},function(t,e,n){var r=n(226),o=n(227),i=n(228);t.exports=function(t,e,n){return e==e?i(t,e,n):r(t,o,n)}},function(t,e){t.exports=function(t,e,n,r){for(var o=t.length,i=n+(r?1:-1);r?i--:++i=0&&Math.floor(e)===e&&isFinite(t)}function v(t){return a(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function m(t){return null==t?"":Array.isArray(t)||p(t)&&t.toString===f?JSON.stringify(t,null,2):String(t)}function y(t){var e=parseFloat(t);return isNaN(e)?t:e}function g(t,e){for(var n=Object.create(null),r=t.split(","),o=0;o-1)return t.splice(r,1)}}var x=Object.prototype.hasOwnProperty;function w(t,e){return x.call(t,e)}function O(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var C=/-(\w)/g,$=O((function(t){return t.replace(C,(function(t,e){return e?e.toUpperCase():""}))})),j=O((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),S=/\B([A-Z])/g,k=O((function(t){return t.replace(S,"-$1").toLowerCase()}));var E=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n};function A(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function P(t,e){for(var n in e)t[n]=e[n];return t}function T(t){for(var e={},n=0;n0,Z=J&&J.indexOf("edge/")>0;J&&J.indexOf("android");var Q=J&&/iphone|ipad|ipod|ios/.test(J);J&&/chrome\/\d+/.test(J),J&&/phantomjs/.test(J);var tt,et=J&&J.match(/firefox\/(\d+)/),nt={}.watch,rt=!1;if(G)try{var ot={};Object.defineProperty(ot,"passive",{get:function(){rt=!0}}),window.addEventListener("test-passive",null,ot)}catch(t){}var it=function(){return void 0===tt&&(tt=!G&&"undefined"!=typeof global&&(global.process&&"server"===global.process.env.VUE_ENV)),tt},at=G&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function st(t){return"function"==typeof t&&/native code/.test(t.toString())}var ct,ut="undefined"!=typeof Symbol&&st(Symbol)&&"undefined"!=typeof Reflect&&st(Reflect.ownKeys);ct="undefined"!=typeof Set&&st(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var lt=null;function ft(t){void 0===t&&(t=null),t||lt&<._scope.off(),lt=t,t&&t._scope.on()}var pt=function(){function t(t,e,n,r,o,i,a,s){this.tag=t,this.data=e,this.children=n,this.text=r,this.elm=o,this.ns=void 0,this.context=i,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}return Object.defineProperty(t.prototype,"child",{get:function(){return this.componentInstance},enumerable:!1,configurable:!0}),t}(),dt=function(t){void 0===t&&(t="");var e=new pt;return e.text=t,e.isComment=!0,e};function ht(t){return new pt(void 0,void 0,void 0,String(t))}function vt(t){var e=new pt(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}var mt=0,yt=[],gt=function(){function t(){this._pending=!1,this.id=mt++,this.subs=[]}return t.prototype.addSub=function(t){this.subs.push(t)},t.prototype.removeSub=function(t){this.subs[this.subs.indexOf(t)]=null,this._pending||(this._pending=!0,yt.push(this))},t.prototype.depend=function(e){t.target&&t.target.addDep(this)},t.prototype.notify=function(t){var e=this.subs.filter((function(t){return t}));for(var n=0,r=e.length;n0&&(Xt((u=t(u,"".concat(n||"","_").concat(r)))[0])&&Xt(f)&&(p[l]=ht(f.text+u[0].text),u.shift()),p.push.apply(p,u)):c(u)?Xt(f)?p[l]=ht(f.text+u):""!==u&&p.push(ht(u)):Xt(u)&&Xt(f)?p[l]=ht(f.text+u.text):(s(e._isVList)&&a(u.tag)&&i(u.key)&&a(n)&&(u.key="__vlist".concat(n,"_").concat(r,"__")),p.push(u)));return p}(t):void 0}function Xt(t){return a(t)&&a(t.text)&&!1===t.isComment}function Yt(t,e){var n,r,i,s,c=null;if(o(t)||"string"==typeof t)for(c=new Array(t.length),n=0,r=t.length;n0,s=e?!!e.$stable:!a,c=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(s&&o&&o!==r&&c===o.$key&&!a&&!o.$hasNormal)return o;for(var u in i={},e)e[u]&&"$"!==u[0]&&(i[u]=me(t,n,u,e[u]))}else i={};for(var l in n)l in i||(i[l]=ye(n,l));return e&&Object.isExtensible(e)&&(e._normalized=i),H(i,"$stable",s),H(i,"$key",c),H(i,"$hasNormal",a),i}function me(t,e,n,r){var i=function(){var e=lt;ft(t);var n=arguments.length?r.apply(null,arguments):r({}),i=(n=n&&"object"==typeof n&&!o(n)?[n]:Jt(n))&&n[0];return ft(e),n&&(!i||1===n.length&&i.isComment&&!he(i))?void 0:n};return r.proxy&&Object.defineProperty(e,n,{get:i,enumerable:!0,configurable:!0}),i}function ye(t,e){return function(){return t[e]}}function ge(t){return{get attrs(){if(!t._attrsProxy){var e=t._attrsProxy={};H(e,"_v_attr_proxy",!0),be(e,t.$attrs,r,t,"$attrs")}return t._attrsProxy},get listeners(){t._listenersProxy||be(t._listenersProxy={},t.$listeners,r,t,"$listeners");return t._listenersProxy},get slots(){return function(t){t._slotsProxy||xe(t._slotsProxy={},t.$scopedSlots);return t._slotsProxy}(t)},emit:E(t.$emit,t),expose:function(e){e&&Object.keys(e).forEach((function(n){return Nt(t,e,n)}))}}}function be(t,e,n,r,o){var i=!1;for(var a in e)a in t?e[a]!==n[a]&&(i=!0):(i=!0,_e(t,a,r,o));for(var a in t)a in e||(i=!0,delete t[a]);return i}function _e(t,e,n,r){Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){return n[r][e]}})}function xe(t,e){for(var n in e)t[n]=e[n];for(var n in t)n in e||delete t[n]}var we=null;function Oe(t,e){return(t.__esModule||ut&&"Module"===t[Symbol.toStringTag])&&(t=t.default),l(t)?e.extend(t):t}function Ce(t){if(o(t))for(var e=0;edocument.createEvent("Event").timeStamp&&(un=function(){return ln.now()})}var fn=function(t,e){if(t.post){if(!e.post)return 1}else if(e.post)return-1;return t.id-e.id};function pn(){var t,e;for(cn=un(),an=!0,en.sort(fn),sn=0;snsn&&en[n].id>t.id;)n--;en.splice(n+1,0,t)}else en.push(t);on||(on=!0,Ue(pn))}}function hn(t,e){if(t){for(var n=Object.create(null),r=ut?Reflect.ownKeys(t):Object.keys(t),o=0;o-1)if(i&&!w(o,"default"))a=!1;else if(""===a||a===k(t)){var c=Mn(String,o.type);(c<0||s-1:"string"==typeof t?t.split(",").indexOf(e)>-1:!!d(t)&&t.test(e)}function Yn(t,e){var n=t.cache,r=t.keys,o=t._vnode;for(var i in n){var a=n[i];if(a){var s=a.name;s&&!e(s)&&Zn(n,i,r,o)}}}function Zn(t,e,n,r){var o=t[e];!o||r&&o.tag===r.tag||o.componentInstance.$destroy(),t[e]=null,_(n,e)}Kn.prototype._init=function(t){var e=this;e._uid=Hn++,e._isVue=!0,e.__v_skip=!0,e._scope=new zt(!0),e._scope._vm=!0,t&&t._isComponent?function(t,e){var n=t.$options=Object.create(t.constructor.options),r=e._parentVnode;n.parent=e.parent,n._parentVnode=r;var o=r.componentOptions;n.propsData=o.propsData,n._parentListeners=o.listeners,n._renderChildren=o.children,n._componentTag=o.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=An(Wn(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._provided=n?n._provided:Object.create(null),t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(e),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&Je(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,n=t.$vnode=e._parentVnode,o=n&&n.context;t.$slots=pe(e._renderChildren,o),t.$scopedSlots=n?ve(t.$parent,n.data.scopedSlots,t.$slots):r,t._c=function(e,n,r,o){return $e(t,e,n,r,o,!1)},t.$createElement=function(e,n,r,o){return $e(t,e,n,r,o,!0)};var i=n&&n.data;Rt(t,"$attrs",i&&i.attrs||r,null,!0),Rt(t,"$listeners",e._parentListeners||r,null,!0)}(e),tn(e,"beforeCreate",void 0,!1),function(t){var e=hn(t.$options.inject,t);e&&(Pt(!1),Object.keys(e).forEach((function(n){Rt(t,n,e[n])})),Pt(!0))}(e),Un(e),function(t){var e=t.$options.provide;if(e){var n=u(e)?e.call(t):e;if(!l(n))return;for(var r=Vt(t),o=ut?Reflect.ownKeys(n):Object.keys(n),i=0;i1?A(n):n;for(var r=A(arguments,1),o='event handler for "'.concat(t,'"'),i=0,a=n.length;iparseInt(this.max)&&Zn(t,e[0],e,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)Zn(this.cache,t,this.keys)},mounted:function(){var t=this;this.cacheVNode(),this.$watch("include",(function(e){Yn(t,(function(t){return Xn(e,t)}))})),this.$watch("exclude",(function(e){Yn(t,(function(t){return!Xn(e,t)}))}))},updated:function(){this.cacheVNode()},render:function(){var t=this.$slots.default,e=Ce(t),n=e&&e.componentOptions;if(n){var r=Jn(n),o=this.include,i=this.exclude;if(o&&(!r||!Xn(o,r))||i&&r&&Xn(i,r))return e;var a=this.cache,s=this.keys,c=null==e.key?n.Ctor.cid+(n.tag?"::".concat(n.tag):""):e.key;a[c]?(e.componentInstance=a[c].componentInstance,_(s,c),s.push(c)):(this.vnodeToCache=e,this.keyToCache=c),e.data.keepAlive=!0}return e||t&&t[0]}}};!function(t){var e={get:function(){return z}};Object.defineProperty(t,"config",e),t.util={warn:On,extend:P,mergeOptions:An,defineReactive:Rt},t.set=Mt,t.delete=Ft,t.nextTick=Ue,t.observable=function(t){return Lt(t),t},t.options=Object.create(null),N.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,P(t.options.components,tr),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=A(arguments,1);return n.unshift(this),u(t.install)?t.install.apply(t,n):u(t)&&t.apply(null,n),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=An(this.options,t),this}}(t),Gn(t),function(t){N.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&p(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&u(n)&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}(t)}(Kn),Object.defineProperty(Kn.prototype,"$isServer",{get:it}),Object.defineProperty(Kn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Kn,"FunctionalRenderContext",{value:vn}),Kn.version="2.7.13";var er=g("style,class"),nr=g("input,textarea,option,select,progress"),rr=g("contenteditable,draggable,spellcheck"),or=g("events,caret,typing,plaintext-only"),ir=g("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),ar="http://www.w3.org/1999/xlink",sr=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},cr=function(t){return sr(t)?t.slice(6,t.length):""},ur=function(t){return null==t||!1===t};function lr(t){for(var e=t.data,n=t,r=t;a(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(e=fr(r.data,e));for(;a(n=n.parent);)n&&n.data&&(e=fr(e,n.data));return function(t,e){if(a(t)||a(e))return pr(t,dr(e));return""}(e.staticClass,e.class)}function fr(t,e){return{staticClass:pr(t.staticClass,e.staticClass),class:a(t.class)?[t.class,e.class]:e.class}}function pr(t,e){return t?e?t+" "+e:t:e||""}function dr(t){return Array.isArray(t)?function(t){for(var e,n="",r=0,o=t.length;r-1?Fr(t,e,n):ir(e)?ur(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):rr(e)?t.setAttribute(e,function(t,e){return ur(e)||"false"===e?"false":"contenteditable"===t&&or(e)?e:"true"}(e,n)):sr(e)?ur(n)?t.removeAttributeNS(ar,cr(e)):t.setAttributeNS(ar,e,n):Fr(t,e,n)}function Fr(t,e,n){if(ur(n))t.removeAttribute(e);else{if(X&&!Y&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var Dr={create:Rr,update:Rr};function Ur(t,e){var n=e.elm,r=e.data,o=t.data;if(!(i(r.staticClass)&&i(r.class)&&(i(o)||i(o.staticClass)&&i(o.class)))){var s=lr(e),c=n._transitionClasses;a(c)&&(s=pr(s,dr(c))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var Nr,Br={create:Ur,update:Ur};function zr(t,e,n){var r=Nr;return function o(){var i=e.apply(null,arguments);null!==i&&Hr(t,o,n,r)}}var Vr=Pe&&!(et&&Number(et[1])<=53);function qr(t,e,n,r){if(Vr){var o=cn,i=e;e=i._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=o||t.timeStamp<=0||t.target.ownerDocument!==document)return i.apply(this,arguments)}}Nr.addEventListener(t,e,rt?{capture:n,passive:r}:n)}function Hr(t,e,n,r){(r||Nr).removeEventListener(t,e._wrapper||e,n)}function Wr(t,e){if(!i(t.data.on)||!i(e.data.on)){var n=e.data.on||{},r=t.data.on||{};Nr=e.elm||t.elm,function(t){if(a(t.__r)){var e=X?"change":"input";t[e]=[].concat(t.__r,t[e]||[]),delete t.__r}a(t.__c)&&(t.change=[].concat(t.__c,t.change||[]),delete t.__c)}(n),Wt(n,r,qr,Hr,zr,e.context),Nr=void 0}}var Kr,Gr={create:Wr,update:Wr,destroy:function(t){return Wr(t,Cr)}};function Jr(t,e){if(!i(t.data.domProps)||!i(e.data.domProps)){var n,r,o=e.elm,c=t.data.domProps||{},u=e.data.domProps||{};for(n in(a(u.__ob__)||s(u._v_attr_proxy))&&(u=e.data.domProps=P({},u)),c)n in u||(o[n]="");for(n in u){if(r=u[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),r===c[n])continue;1===o.childNodes.length&&o.removeChild(o.childNodes[0])}if("value"===n&&"PROGRESS"!==o.tagName){o._value=r;var l=i(r)?"":String(r);Xr(o,l)&&(o.value=l)}else if("innerHTML"===n&&mr(o.tagName)&&i(o.innerHTML)){(Kr=Kr||document.createElement("div")).innerHTML="".concat(r,"");for(var f=Kr.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;f.firstChild;)o.appendChild(f.firstChild)}else if(r!==c[n])try{o[n]=r}catch(t){}}}}function Xr(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}(t,e)||function(t,e){var n=t.value,r=t._vModifiers;if(a(r)){if(r.number)return y(n)!==y(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}(t,e))}var Yr={create:Jr,update:Jr},Zr=O((function(t){var e={},n=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach((function(t){if(t){var r=t.split(n);r.length>1&&(e[r[0].trim()]=r[1].trim())}})),e}));function Qr(t){var e=to(t.style);return t.staticStyle?P(t.staticStyle,e):e}function to(t){return Array.isArray(t)?T(t):"string"==typeof t?Zr(t):t}var eo,no=/^--/,ro=/\s*!important$/,oo=function(t,e,n){if(no.test(e))t.style.setProperty(e,n);else if(ro.test(n))t.style.setProperty(k(e),n.replace(ro,""),"important");else{var r=ao(e);if(Array.isArray(n))for(var o=0,i=n.length;o-1?e.split(uo).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" ".concat(t.getAttribute("class")||""," ");n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function fo(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(uo).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" ".concat(t.getAttribute("class")||""," "),r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}function po(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&P(e,ho(t.name||"v")),P(e,t),e}return"string"==typeof t?ho(t):void 0}}var ho=O((function(t){return{enterClass:"".concat(t,"-enter"),enterToClass:"".concat(t,"-enter-to"),enterActiveClass:"".concat(t,"-enter-active"),leaveClass:"".concat(t,"-leave"),leaveToClass:"".concat(t,"-leave-to"),leaveActiveClass:"".concat(t,"-leave-active")}})),vo=G&&!Y,mo="transition",yo="transitionend",go="animation",bo="animationend";vo&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(mo="WebkitTransition",yo="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(go="WebkitAnimation",bo="webkitAnimationEnd"));var _o=G?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function xo(t){_o((function(){_o(t)}))}function wo(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),lo(t,e))}function Oo(t,e){t._transitionClasses&&_(t._transitionClasses,e),fo(t,e)}function Co(t,e,n){var r=jo(t,e),o=r.type,i=r.timeout,a=r.propCount;if(!o)return n();var s="transition"===o?yo:bo,c=0,u=function(){t.removeEventListener(s,l),n()},l=function(e){e.target===t&&++c>=a&&u()};setTimeout((function(){c0&&(n="transition",l=a,f=i.length):"animation"===e?u>0&&(n="animation",l=u,f=c.length):f=(n=(l=Math.max(a,u))>0?a>u?"transition":"animation":null)?"transition"===n?i.length:c.length:0,{type:n,timeout:l,propCount:f,hasTransform:"transition"===n&&$o.test(r[mo+"Property"])}}function So(t,e){for(;t.length1}function Io(t,e){!0!==e.data.show&&Eo(e)}var Lo=function(t){var e,n,r={},u=t.modules,l=t.nodeOps;for(e=0;e<$r.length;++e)for(r[$r[e]]=[],n=0;nh?_(t,i(n[y+1])?null:n[y+1].elm,n,d,y,r):d>y&&w(e,f,h)}(f,v,y,n,u):a(y)?(a(t.text)&&l.setTextContent(f,""),_(f,null,y,0,y.length-1,n)):a(v)?w(v,0,v.length-1):a(t.text)&&l.setTextContent(f,""):t.text!==e.text&&l.setTextContent(f,e.text),a(h)&&a(d=h.hook)&&a(d=d.postpatch)&&d(t,e)}}}function j(t,e,n){if(s(n)&&a(t.parent))t.parent.data.pendingInsert=e;else for(var r=0;r-1,a.selected!==i&&(a.selected=i);else if(M(Uo(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));o||(t.selectedIndex=-1)}}function Do(t,e){return e.every((function(e){return!M(e,t)}))}function Uo(t){return"_value"in t?t._value:t.value}function No(t){t.target.composing=!0}function Bo(t){t.target.composing&&(t.target.composing=!1,zo(t.target,"input"))}function zo(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function Vo(t){return!t.componentInstance||t.data&&t.data.transition?t:Vo(t.componentInstance._vnode)}var qo={model:Ro,show:{bind:function(t,e,n){var r=e.value,o=(n=Vo(n)).data&&n.data.transition,i=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&o?(n.data.show=!0,Eo(n,(function(){t.style.display=i}))):t.style.display=r?i:"none"},update:function(t,e,n){var r=e.value;!r!=!e.oldValue&&((n=Vo(n)).data&&n.data.transition?(n.data.show=!0,r?Eo(n,(function(){t.style.display=t.__vOriginalDisplay})):Ao(n,(function(){t.style.display="none"}))):t.style.display=r?t.__vOriginalDisplay:"none")},unbind:function(t,e,n,r,o){o||(t.style.display=t.__vOriginalDisplay)}}},Ho={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Wo(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?Wo(Ce(e.children)):t}function Ko(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var o=n._parentListeners;for(var r in o)e[$(r)]=o[r];return e}function Go(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var Jo=function(t){return t.tag||he(t)},Xo=function(t){return"show"===t.name},Yo={name:"transition",props:Ho,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(Jo)).length){0;var r=this.mode;0;var o=n[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return o;var i=Wo(o);if(!i)return o;if(this._leaving)return Go(t,o);var a="__transition-".concat(this._uid,"-");i.key=null==i.key?i.isComment?a+"comment":a+i.tag:c(i.key)?0===String(i.key).indexOf(a)?i.key:a+i.key:i.key;var s=(i.data||(i.data={})).transition=Ko(this),u=this._vnode,l=Wo(u);if(i.data.directives&&i.data.directives.some(Xo)&&(i.data.show=!0),l&&l.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(i,l)&&!he(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var f=l.data.transition=P({},s);if("out-in"===r)return this._leaving=!0,Kt(f,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),Go(t,o);if("in-out"===r){if(he(i))return u;var p,d=function(){p()};Kt(s,"afterEnter",d),Kt(s,"enterCancelled",d),Kt(f,"delayLeave",(function(t){p=t}))}}return o}}},Zo=P({tag:String,moveClass:String},Ho);function Qo(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function ti(t){t.data.newPos=t.elm.getBoundingClientRect()}function ei(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,o=e.top-n.top;if(r||o){t.data.moved=!0;var i=t.elm.style;i.transform=i.WebkitTransform="translate(".concat(r,"px,").concat(o,"px)"),i.transitionDuration="0s"}}delete Zo.mode;var ni={Transition:Yo,TransitionGroup:{props:Zo,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var o=Ye(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,o(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,o=this.$slots.default||[],i=this.children=[],a=Ko(this),s=0;s-1?gr[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:gr[t]=/HTMLUnknownElement/.test(e.toString())},P(Kn.options.directives,qo),P(Kn.options.components,ni),Kn.prototype.__patch__=G?Lo:I,Kn.prototype.$mount=function(t,e){return function(t,e,n){var r;t.$el=e,t.$options.render||(t.$options.render=dt),tn(t,"beforeMount"),r=function(){t._update(t._render(),n)},new He(t,r,I,{before:function(){t._isMounted&&!t._isDestroyed&&tn(t,"beforeUpdate")}},!0),n=!1;var o=t._preWatchers;if(o)for(var i=0;i=0&&(e=t.slice(r),t=t.slice(0,r));var o=t.indexOf("?");return o>=0&&(n=t.slice(o+1),t=t.slice(0,o)),{path:t,query:n,hash:e}}(o.path||""),u=e&&e.path||"/",l=c.path?Oi(c.path,u,n||o.append):u,f=function(t,e,n){void 0===e&&(e={});var r,o=n||li;try{r=o(t||"")}catch(t){r={}}for(var i in e){var a=e[i];r[i]=Array.isArray(a)?a.map(ui):ui(a)}return r}(c.query,o.query,r&&r.options.parseQuery),p=o.hash||c.hash;return p&&"#"!==p.charAt(0)&&(p="#"+p),{_normalized:!0,path:l,query:f,hash:p}}var qi,Hi=function(){},Wi={name:"RouterLink",props:{to:{type:[String,Object],required:!0},tag:{type:String,default:"a"},custom:Boolean,exact:Boolean,exactPath:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:[String,Array],default:"click"}},render:function(t){var e=this,n=this.$router,r=this.$route,o=n.resolve(this.to,r,this.append),i=o.location,a=o.route,s=o.href,c={},u=n.options.linkActiveClass,l=n.options.linkExactActiveClass,f=null==u?"router-link-active":u,p=null==l?"router-link-exact-active":l,d=null==this.activeClass?f:this.activeClass,h=null==this.exactActiveClass?p:this.exactActiveClass,v=a.redirectedFrom?di(null,Vi(a.redirectedFrom),null,n):a;c[h]=gi(r,v,this.exactPath),c[d]=this.exact||this.exactPath?c[h]:function(t,e){return 0===t.path.replace(pi,"/").indexOf(e.path.replace(pi,"/"))&&(!e.hash||t.hash===e.hash)&&function(t,e){for(var n in e)if(!(n in t))return!1;return!0}(t.query,e.query)}(r,v);var m=c[h]?this.ariaCurrentValue:null,y=function(t){Ki(t)&&(e.replace?n.replace(i,Hi):n.push(i,Hi))},g={click:Ki};Array.isArray(this.event)?this.event.forEach((function(t){g[t]=y})):g[this.event]=y;var b={class:c},_=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:s,route:a,navigate:y,isActive:c[d],isExactActive:c[h]});if(_){if(1===_.length)return _[0];if(_.length>1||!_.length)return 0===_.length?t():t("span",{},_)}if("a"===this.tag)b.on=g,b.attrs={href:s,"aria-current":m};else{var x=function t(e){var n;if(e)for(var r=0;r-1&&(s.params[p]=n.params[p]);return s.path=zi(l.path,s.params),c(l,s,a)}if(s.path){s.params={};for(var d=0;d-1}function Ca(t,e){return Oa(t)&&t._isRouter&&(null==e||t.type===e)}function $a(t,e,n){var r=function(o){o>=t.length?n():t[o]?e(t[o],(function(){r(o+1)})):r(o+1)};r(0)}function ja(t){return function(e,n,r){var o=!1,i=0,a=null;Sa(t,(function(t,e,n,s){if("function"==typeof t&&void 0===t.cid){o=!0,i++;var c,u=Aa((function(e){var o;((o=e).__esModule||Ea&&"Module"===o[Symbol.toStringTag])&&(e=e.default),t.resolved="function"==typeof e?e:qi.extend(e),n.components[s]=e,--i<=0&&r()})),l=Aa((function(t){var e="Failed to resolve async component "+s+": "+t;a||(a=Oa(t)?t:new Error(e),r(a))}));try{c=t(u,l)}catch(t){l(t)}if(c)if("function"==typeof c.then)c.then(u,l);else{var f=c.component;f&&"function"==typeof f.then&&f.then(u,l)}}})),o||r()}}function Sa(t,e){return ka(t.map((function(t){return Object.keys(t.components).map((function(n){return e(t.components[n],t.instances[n],t,n)}))})))}function ka(t){return Array.prototype.concat.apply([],t)}var Ea="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function Aa(t){var e=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!e)return e=!0,t.apply(this,n)}}var Pa=function(t,e){this.router=t,this.base=function(t){if(!t)if(Gi){var e=document.querySelector("base");t=(t=e&&e.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else t="/";"/"!==t.charAt(0)&&(t="/"+t);return t.replace(/\/$/,"")}(e),this.current=vi,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function Ta(t,e,n,r){var o=Sa(t,(function(t,r,o,i){var a=function(t,e){"function"!=typeof t&&(t=qi.extend(t));return t.options[e]}(t,e);if(a)return Array.isArray(a)?a.map((function(t){return n(t,r,o,i)})):n(a,r,o,i)}));return ka(r?o.reverse():o)}function Ia(t,e){if(e)return function(){return t.apply(e,arguments)}}Pa.prototype.listen=function(t){this.cb=t},Pa.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},Pa.prototype.onError=function(t){this.errorCbs.push(t)},Pa.prototype.transitionTo=function(t,e,n){var r,o=this;try{r=this.router.match(t,this.current)}catch(t){throw this.errorCbs.forEach((function(e){e(t)})),t}var i=this.current;this.confirmTransition(r,(function(){o.updateRoute(r),e&&e(r),o.ensureURL(),o.router.afterHooks.forEach((function(t){t&&t(r,i)})),o.ready||(o.ready=!0,o.readyCbs.forEach((function(t){t(r)})))}),(function(t){n&&n(t),t&&!o.ready&&(Ca(t,ga.redirected)&&i===vi||(o.ready=!0,o.readyErrorCbs.forEach((function(e){e(t)}))))}))},Pa.prototype.confirmTransition=function(t,e,n){var r=this,o=this.current;this.pending=t;var i,a,s=function(t){!Ca(t)&&Oa(t)&&(r.errorCbs.length?r.errorCbs.forEach((function(e){e(t)})):console.error(t)),n&&n(t)},c=t.matched.length-1,u=o.matched.length-1;if(gi(t,o)&&c===u&&t.matched[c]===o.matched[u])return this.ensureURL(),t.hash&&aa(this.router,o,t,!1),s(((a=xa(i=o,t,ga.duplicated,'Avoided redundant navigation to current location: "'+i.fullPath+'".')).name="NavigationDuplicated",a));var l=function(t,e){var n,r=Math.max(t.length,e.length);for(n=0;n0)){var e=this.router,n=e.options.scrollBehavior,r=va&&n;r&&this.listeners.push(ia());var o=function(){var n=t.current,o=Ra(t.base);t.current===vi&&o===t._startLocation||t.transitionTo(o,(function(t){r&&aa(e,t,n,!0)}))};window.addEventListener("popstate",o),this.listeners.push((function(){window.removeEventListener("popstate",o)}))}},e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,n){var r=this,o=this.current;this.transitionTo(t,(function(t){ma(Ci(r.base+t.fullPath)),aa(r.router,t,o,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this,o=this.current;this.transitionTo(t,(function(t){ya(Ci(r.base+t.fullPath)),aa(r.router,t,o,!1),e&&e(t)}),n)},e.prototype.ensureURL=function(t){if(Ra(this.base)!==this.current.fullPath){var e=Ci(this.base+this.current.fullPath);t?ma(e):ya(e)}},e.prototype.getCurrentLocation=function(){return Ra(this.base)},e}(Pa);function Ra(t){var e=window.location.pathname,n=e.toLowerCase(),r=t.toLowerCase();return!t||n!==r&&0!==n.indexOf(Ci(r+"/"))||(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}var Ma=function(t){function e(e,n,r){t.call(this,e,n),r&&function(t){var e=Ra(t);if(!/^\/#/.test(e))return window.location.replace(Ci(t+"/#"+e)),!0}(this.base)||Fa()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router.options.scrollBehavior,n=va&&e;n&&this.listeners.push(ia());var r=function(){var e=t.current;Fa()&&t.transitionTo(Da(),(function(r){n&&aa(t.router,r,e,!0),va||Ba(r.fullPath)}))},o=va?"popstate":"hashchange";window.addEventListener(o,r),this.listeners.push((function(){window.removeEventListener(o,r)}))}},e.prototype.push=function(t,e,n){var r=this,o=this.current;this.transitionTo(t,(function(t){Na(t.fullPath),aa(r.router,t,o,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this,o=this.current;this.transitionTo(t,(function(t){Ba(t.fullPath),aa(r.router,t,o,!1),e&&e(t)}),n)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;Da()!==e&&(t?Na(e):Ba(e))},e.prototype.getCurrentLocation=function(){return Da()},e}(Pa);function Fa(){var t=Da();return"/"===t.charAt(0)||(Ba("/"+t),!1)}function Da(){var t=window.location.href,e=t.indexOf("#");return e<0?"":t=t.slice(e+1)}function Ua(t){var e=window.location.href,n=e.indexOf("#");return(n>=0?e.slice(0,n):e)+"#"+t}function Na(t){va?ma(Ua(t)):window.location.hash=t}function Ba(t){va?ya(Ua(t)):window.location.replace(Ua(t))}var za=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index+1).concat(t),r.index++,e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index).concat(t),e&&e(t)}),n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,(function(){var t=e.current;e.index=n,e.updateRoute(r),e.router.afterHooks.forEach((function(e){e&&e(r,t)}))}),(function(t){Ca(t,ga.duplicated)&&(e.index=n)}))}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(Pa),Va=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=Yi(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!va&&!1!==t.fallback,this.fallback&&(e="hash"),Gi||(e="abstract"),this.mode=e,e){case"history":this.history=new La(this,t.base);break;case"hash":this.history=new Ma(this,t.base,this.fallback);break;case"abstract":this.history=new za(this,t.base);break;default:0}},qa={currentRoute:{configurable:!0}};Va.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},qa.currentRoute.get=function(){return this.history&&this.history.current},Va.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",(function(){var n=e.apps.indexOf(t);n>-1&&e.apps.splice(n,1),e.app===t&&(e.app=e.apps[0]||null),e.app||e.history.teardown()})),!this.app){this.app=t;var n=this.history;if(n instanceof La||n instanceof Ma){var r=function(t){n.setupListeners(),function(t){var r=n.current,o=e.options.scrollBehavior;va&&o&&"fullPath"in t&&aa(e,t,r,!1)}(t)};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen((function(t){e.apps.forEach((function(e){e._route=t}))}))}},Va.prototype.beforeEach=function(t){return Wa(this.beforeHooks,t)},Va.prototype.beforeResolve=function(t){return Wa(this.resolveHooks,t)},Va.prototype.afterEach=function(t){return Wa(this.afterHooks,t)},Va.prototype.onReady=function(t,e){this.history.onReady(t,e)},Va.prototype.onError=function(t){this.history.onError(t)},Va.prototype.push=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){r.history.push(t,e,n)}));this.history.push(t,e,n)},Va.prototype.replace=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){r.history.replace(t,e,n)}));this.history.replace(t,e,n)},Va.prototype.go=function(t){this.history.go(t)},Va.prototype.back=function(){this.go(-1)},Va.prototype.forward=function(){this.go(1)},Va.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map((function(t){return Object.keys(t.components).map((function(e){return t.components[e]}))}))):[]},Va.prototype.resolve=function(t,e,n){var r=Vi(t,e=e||this.history.current,n,this),o=this.match(r,e),i=o.redirectedFrom||o.fullPath;return{location:r,route:o,href:function(t,e,n){var r="hash"===n?"#"+e:e;return t?Ci(t+"/"+r):r}(this.history.base,i,this.mode),normalizedTo:r,resolved:o}},Va.prototype.getRoutes=function(){return this.matcher.getRoutes()},Va.prototype.addRoute=function(t,e){this.matcher.addRoute(t,e),this.history.current!==vi&&this.history.transitionTo(this.history.getCurrentLocation())},Va.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==vi&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Va.prototype,qa);var Ha=Va;function Wa(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}Va.install=function t(e){if(!t.installed||qi!==e){t.installed=!0,qi=e;var n=function(t){return void 0!==t},r=function(t,e){var r=t.$options._parentVnode;n(r)&&n(r=r.data)&&n(r=r.registerRouteInstance)&&r(t,e)};e.mixin({beforeCreate:function(){n(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,r(this,this)},destroyed:function(){r(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",xi),e.component("RouterLink",Wi);var o=e.config.optionMergeStrategies;o.beforeRouteEnter=o.beforeRouteLeave=o.beforeRouteUpdate=o.created}},Va.version="3.6.5",Va.isNavigationFailure=Ca,Va.NavigationFailureType=ga,Va.START_LOCATION=vi,Gi&&window.Vue&&window.Vue.use(Va);n(95);n(91),n(127);var Ka={NotFound:()=>n.e(9).then(n.bind(null,276)),Layout:()=>Promise.all([n.e(0),n.e(2)]).then(n.bind(null,275))},Ga={"v-be22f10a":()=>n.e(10).then(n.bind(null,281)),"v-50f7eb53":()=>n.e(11).then(n.bind(null,282)),"v-0eab9680":()=>n.e(13).then(n.bind(null,283)),"v-890b9640":()=>n.e(14).then(n.bind(null,284)),"v-9e361cea":()=>n.e(12).then(n.bind(null,285)),"v-ef35a548":()=>n.e(16).then(n.bind(null,286)),"v-8e4397cc":()=>n.e(17).then(n.bind(null,287)),"v-58d7ba5e":()=>n.e(15).then(n.bind(null,288)),"v-0160173e":()=>n.e(18).then(n.bind(null,289)),"v-72fab520":()=>n.e(19).then(n.bind(null,290)),"v-a1030a7c":()=>n.e(21).then(n.bind(null,291)),"v-3cf7d340":()=>n.e(20).then(n.bind(null,292))};function Ja(t){const e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}const Xa=/-(\w)/g,Ya=Ja(t=>t.replace(Xa,(t,e)=>e?e.toUpperCase():"")),Za=/\B([A-Z])/g,Qa=Ja(t=>t.replace(Za,"-$1").toLowerCase()),ts=Ja(t=>t.charAt(0).toUpperCase()+t.slice(1));function es(t,e){if(!e)return;if(t(e))return t(e);return e.includes("-")?t(ts(Ya(e))):t(ts(e))||t(Qa(e))}const ns=Object.assign({},Ka,Ga),rs=t=>ns[t],os=t=>Ga[t],is=t=>Ka[t],as=t=>Kn.component(t);function ss(t){return es(os,t)}function cs(t){return es(is,t)}function us(t){return es(rs,t)}function ls(t){return es(as,t)}function fs(...t){return Promise.all(t.filter(t=>t).map(async t=>{if(!ls(t)&&us(t)){const e=await us(t)();Kn.component(t,e.default)}}))}function ps(t,e){"undefined"!=typeof window&&window.__VUEPRESS__&&(window.__VUEPRESS__[t]=e)}var ds=n(88),hs=n.n(ds),vs=n(89),ms=n.n(vs),ys={created(){if(this.siteMeta=this.$site.headTags.filter(([t])=>"meta"===t).map(([t,e])=>e),this.$ssrContext){const e=this.getMergedMetaTags();this.$ssrContext.title=this.$title,this.$ssrContext.lang=this.$lang,this.$ssrContext.pageMeta=(t=e)?t.map(t=>{let e="{e+=` ${n}="${ms()(t[n])}"`}),e+">"}).join("\n "):"",this.$ssrContext.canonicalLink=bs(this.$canonicalUrl)}var t},mounted(){this.currentMetaTags=[...document.querySelectorAll("meta")],this.updateMeta(),this.updateCanonicalLink()},methods:{updateMeta(){document.title=this.$title,document.documentElement.lang=this.$lang;const t=this.getMergedMetaTags();this.currentMetaTags=_s(t,this.currentMetaTags)},getMergedMetaTags(){const t=this.$page.frontmatter.meta||[];return hs()([{name:"description",content:this.$description}],t,this.siteMeta,xs)},updateCanonicalLink(){gs(),this.$canonicalUrl&&document.head.insertAdjacentHTML("beforeend",bs(this.$canonicalUrl))}},watch:{$page(){this.updateMeta(),this.updateCanonicalLink()}},beforeDestroy(){_s(null,this.currentMetaTags),gs()}};function gs(){const t=document.querySelector("link[rel='canonical']");t&&t.remove()}function bs(t=""){return t?``:""}function _s(t,e){if(e&&[...e].filter(t=>t.parentNode===document.head).forEach(t=>document.head.removeChild(t)),t)return t.map(t=>{const e=document.createElement("meta");return Object.keys(t).forEach(n=>{e.setAttribute(n,t[n])}),document.head.appendChild(e),e})}function xs(t){for(const e of["name","property","itemprop"])if(t.hasOwnProperty(e))return t[e]+e;return JSON.stringify(t)}var ws=n(90),Os={mounted(){window.addEventListener("scroll",this.onScroll)},methods:{onScroll:n.n(ws)()((function(){this.setActiveHash()}),300),setActiveHash(){const t=[].slice.call(document.querySelectorAll(".sidebar-link")),e=[].slice.call(document.querySelectorAll(".header-anchor")).filter(e=>t.some(t=>t.hash===e.hash)),n=Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop),r=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight),o=window.innerHeight+n;for(let t=0;t=i.parentElement.offsetTop+10&&(!a||n{this.$nextTick(()=>{this.$vuepress.$set("disableScrollBehavior",!1)})})}}}},beforeDestroy(){window.removeEventListener("scroll",this.onScroll)}},Cs=n(23),$s=n.n(Cs),js=[ys,Os,{mounted(){$s.a.configure({showSpinner:!1}),this.$router.beforeEach((t,e,n)=>{t.path===e.path||Kn.component(t.name)||$s.a.start(),n()}),this.$router.afterEach(()=>{$s.a.done(),this.isSidebarOpen=!1})}}],Ss={name:"GlobalLayout",computed:{layout(){const t=this.getLayout();return ps("layout",t),Kn.component(t)}},methods:{getLayout(){if(this.$page.path){const t=this.$page.frontmatter.layout;return t&&(this.$vuepress.getLayoutAsyncComponent(t)||this.$vuepress.getVueComponent(t))?t:"Layout"}return"NotFound"}}},ks=n(14),Es=Object(ks.a)(Ss,(function(){return(0,this._self._c)(this.layout,{tag:"component"})}),[],!1,null,null,null).exports;!function(t,e,n){switch(e){case"components":t[e]||(t[e]={}),Object.assign(t[e],n);break;case"mixins":t[e]||(t[e]=[]),t[e].push(...n);break;default:throw new Error("Unknown option name.")}}(Es,"mixins",js);const As=[{name:"v-be22f10a",path:"/",component:Es,beforeEnter:(t,e,n)=>{fs("Layout","v-be22f10a").then(n)}},{path:"/index.html",redirect:"/"},{name:"v-50f7eb53",path:"/contributions/",component:Es,beforeEnter:(t,e,n)=>{fs("Layout","v-50f7eb53").then(n)}},{path:"/contributions/index.html",redirect:"/contributions/"},{name:"v-0eab9680",path:"/guide/Consulta-al-padron-de-AFIP-alcance-10.html",component:Es,beforeEnter:(t,e,n)=>{fs("Layout","v-0eab9680").then(n)}},{name:"v-890b9640",path:"/guide/Consulta-al-padron-de-AFIP-alcance-13.html",component:Es,beforeEnter:(t,e,n)=>{fs("Layout","v-890b9640").then(n)}},{name:"v-9e361cea",path:"/en/",component:Es,beforeEnter:(t,e,n)=>{fs("Layout","v-9e361cea").then(n)}},{path:"/en/index.html",redirect:"/en/"},{name:"v-ef35a548",path:"/guide/Consulta-al-padron-de-AFIP-alcance-5.html",component:Es,beforeEnter:(t,e,n)=>{fs("Layout","v-ef35a548").then(n)}},{name:"v-8e4397cc",path:"/guide/Facturaci%C3%B3n-Electr%C3%B3nica.html",component:Es,beforeEnter:(t,e,n)=>{fs("Layout","v-8e4397cc").then(n)}},{path:"/guide/Facturación-Electrónica.html",redirect:"/guide/Facturaci%C3%B3n-Electr%C3%B3nica.html"},{path:"/guide/Facturación-Electrónica.html",redirect:"/guide/Facturaci%C3%B3n-Electr%C3%B3nica.html"},{name:"v-58d7ba5e",path:"/guide/Consulta-al-padron-de-AFIP-alcance-4.html",component:Es,beforeEnter:(t,e,n)=>{fs("Layout","v-58d7ba5e").then(n)}},{name:"v-0160173e",path:"/guide/",component:Es,beforeEnter:(t,e,n)=>{fs("Layout","v-0160173e").then(n)}},{path:"/guide/index.html",redirect:"/guide/"},{name:"v-72fab520",path:"/guide/basic-use.html",component:Es,beforeEnter:(t,e,n)=>{fs("Layout","v-72fab520").then(n)}},{name:"v-a1030a7c",path:"/guide/config.html",component:Es,beforeEnter:(t,e,n)=>{fs("Layout","v-a1030a7c").then(n)}},{name:"v-3cf7d340",path:"/guide/behaviour.html",component:Es,beforeEnter:(t,e,n)=>{fs("Layout","v-3cf7d340").then(n)}},{path:"*",component:Es}],Ps={title:"AfipTs",description:"Afip typescript SDK",base:"/",headTags:[["meta",{name:"theme-color",content:"#3eaf7c"}],["meta",{name:"apple-mobile-web-app-capable",content:"yes"}],["meta",{name:"apple-mobile-web-app-status-bar-style",content:"black"}]],pages:[{title:"Home",frontmatter:{home:!0,heroImage:"https://user-images.githubusercontent.com/19806540/198080937-468e851b-2ae4-40a7-b2c5-cb929ff7749a.png",tagline:"SDK para Web Services de Afip",actionText:"Start →",actionLink:"/guide/",features:[{title:"Typescript First",details:"Escrito desde el comienzo en typescript."},{title:"Serverless Support",details:"Manejo personalizado de tokens de acceso para ser utilizado en aplicaciones serverless."},{title:"Facil y simple",details:"Simple de usar y configurar."}],footer:"Made by Rodrigo Alcorta with ❤️"},regularPath:"/",relativePath:"README.md",key:"v-be22f10a",path:"/",lastUpdated:"8/11/2022, 22:56:27",lastUpdatedTimestamp:1667958987e3},{title:"Contribuciones",frontmatter:{},regularPath:"/contributions/",relativePath:"contributions/README.md",key:"v-50f7eb53",path:"/contributions/",headers:[{level:3,title:"Commit",slug:"commit"}],lastUpdated:"3/11/2022, 0:20:09",lastUpdatedTimestamp:1667445609e3},{title:"Padrón de AFIP alcance 10",frontmatter:{},regularPath:"/guide/Consulta-al-padron-de-AFIP-alcance-10.html",relativePath:"guide/Consulta-al-padron-de-AFIP-alcance-10.md",key:"v-0eab9680",path:"/guide/Consulta-al-padron-de-AFIP-alcance-10.html",headers:[{level:3,title:"Métodos disponibles",slug:"metodos-disponibles"},{level:2,title:"Obtener datos del contribuyente",slug:"obtener-datos-del-contribuyente"},{level:2,title:"Obtener estado del servidor",slug:"obtener-estado-del-servidor"}],lastUpdated:"7/11/2022, 22:00:12",lastUpdatedTimestamp:1667869212e3},{title:"Padrón de AFIP alcance 13",frontmatter:{},regularPath:"/guide/Consulta-al-padron-de-AFIP-alcance-13.html",relativePath:"guide/Consulta-al-padron-de-AFIP-alcance-13.md",key:"v-890b9640",path:"/guide/Consulta-al-padron-de-AFIP-alcance-13.html",headers:[{level:3,title:"Métodos disponibles",slug:"metodos-disponibles"},{level:2,title:"Obtener datos del contribuyente",slug:"obtener-datos-del-contribuyente"},{level:2,title:"Obtener CUIT a partir de un DNI",slug:"obtener-cuit-a-partir-de-un-dni"},{level:2,title:"Obtener estado del servidor",slug:"obtener-estado-del-servidor"}],lastUpdated:"7/11/2022, 22:00:12",lastUpdatedTimestamp:1667869212e3},{title:"Home",frontmatter:{home:!0,footer:"Made by Rodrigo Alcorta with ❤️"},regularPath:"/en/",relativePath:"en/README.md",key:"v-9e361cea",path:"/en/",headers:[{level:2,title:"Translation",slug:"translation"}],lastUpdated:"11/8/2022, 10:56:27 PM",lastUpdatedTimestamp:1667958987e3},{title:"Padrón de AFIP alcance 5",frontmatter:{},regularPath:"/guide/Consulta-al-padron-de-AFIP-alcance-5.html",relativePath:"guide/Consulta-al-padron-de-AFIP-alcance-5.md",key:"v-ef35a548",path:"/guide/Consulta-al-padron-de-AFIP-alcance-5.html",headers:[{level:3,title:"Métodos disponibles",slug:"metodos-disponibles"},{level:2,title:"Obtener datos del contribuyente",slug:"obtener-datos-del-contribuyente"},{level:2,title:"Obtener datos de múltiples contribuyentes",slug:"obtener-datos-de-multiples-contribuyentes"},{level:2,title:"Obtener estado del servidor",slug:"obtener-estado-del-servidor"}],lastUpdated:"7/11/2022, 22:00:12",lastUpdatedTimestamp:1667869212e3},{title:"Facturación Electrónica",frontmatter:{},regularPath:"/guide/Facturaci%C3%B3n-Electr%C3%B3nica.html",relativePath:"guide/Facturación-Electrónica.md",key:"v-8e4397cc",path:"/guide/Facturaci%C3%B3n-Electr%C3%B3nica.html",headers:[{level:2,title:"Indice",slug:"indice"},{level:2,title:"Obtener número del último comprobante creado",slug:"obtener-numero-del-ultimo-comprobante-creado"},{level:2,title:"Crear y asignar CAE a un comprobante",slug:"crear-y-asignar-cae-a-un-comprobante"},{level:2,title:"Crear y asignar CAE a siguiente comprobante",slug:"crear-y-asignar-cae-a-siguiente-comprobante"},{level:2,title:"Obtener información de un comprobante",slug:"obtener-informacion-de-un-comprobante"},{level:2,title:"Obtener puntos de venta disponibles",slug:"obtener-puntos-de-venta-disponibles"},{level:2,title:"Obtener tipos de comprobantes disponibles",slug:"obtener-tipos-de-comprobantes-disponibles"},{level:2,title:"Obtener tipos de conceptos disponibles",slug:"obtener-tipos-de-conceptos-disponibles"},{level:2,title:"Obtener tipos de documentos disponibles",slug:"obtener-tipos-de-documentos-disponibles"},{level:2,title:"Obtener tipos de alícuotas disponibles",slug:"obtener-tipos-de-alicuotas-disponibles"},{level:2,title:"Obtener tipos de monedas disponibles",slug:"obtener-tipos-de-monedas-disponibles"},{level:2,title:"Obtener tipos de opciones disponibles para el comprobante",slug:"obtener-tipos-de-opciones-disponibles-para-el-comprobante"},{level:2,title:"Obtener tipos de tributos disponibles",slug:"obtener-tipos-de-tributos-disponibles"},{level:2,title:"Obtener estado del servidor",slug:"obtener-estado-del-servidor"}],lastUpdated:"31/1/2023, 16:06:11",lastUpdatedTimestamp:1675191971e3},{title:"Padrón de AFIP alcance 4",frontmatter:{},regularPath:"/guide/Consulta-al-padron-de-AFIP-alcance-4.html",relativePath:"guide/Consulta-al-padron-de-AFIP-alcance-4.md",key:"v-58d7ba5e",path:"/guide/Consulta-al-padron-de-AFIP-alcance-4.html",headers:[{level:3,title:"Métodos disponibles",slug:"metodos-disponibles"},{level:2,title:"Obtener datos del contribuyente",slug:"obtener-datos-del-contribuyente"},{level:2,title:"Obtener estado del servidor",slug:"obtener-estado-del-servidor"}],lastUpdated:"7/11/2022, 22:00:12",lastUpdatedTimestamp:1667869212e3},{title:"Introduction",frontmatter:{},regularPath:"/guide/",relativePath:"guide/README.md",key:"v-0160173e",path:"/guide/",headers:[{level:2,title:"Servicios disponibles",slug:"servicios-disponibles"},{level:2,title:"Intalación",slug:"intalacion"},{level:3,title:"Requisitos previos",slug:"requisitos-previos"}],lastUpdated:"31/1/2023, 16:06:11",lastUpdatedTimestamp:1675191971e3},{title:"Uso Básico",frontmatter:{},regularPath:"/guide/basic-use.html",relativePath:"guide/basic-use.md",key:"v-72fab520",path:"/guide/basic-use.html",headers:[{level:3,title:"Ejemplo basico:",slug:"ejemplo-basico"}],lastUpdated:"31/1/2023, 16:06:11",lastUpdatedTimestamp:1675191971e3},{title:"Contexto",frontmatter:{},regularPath:"/guide/config.html",relativePath:"guide/config.md",key:"v-a1030a7c",path:"/guide/config.html",headers:[{level:3,title:"Afip Context:",slug:"afip-context"}],lastUpdated:"31/1/2023, 16:06:11",lastUpdatedTimestamp:1675191971e3},{title:"Comportamiento",frontmatter:{},regularPath:"/guide/behaviour.html",relativePath:"guide/behaviour.md",key:"v-3cf7d340",path:"/guide/behaviour.html",lastUpdated:"1/11/2022, 20:29:19",lastUpdatedTimestamp:1667345359e3}],themeConfig:{repo:"https://github.com/ralcorta/afip.ts",editLinks:!0,docsDir:"docs",docsBranch:"main",editLinkText:"Editar",lastUpdated:!0,nav:[{text:"Guia",link:"/guide/"},{text:"Contribuir",link:"/contributions/"}],sidebar:{"/guide/":[{title:"Guia",collapsable:!1,children:["","basic-use","config","behaviour","Facturación-Electrónica","Consulta-al-padron-de-AFIP-alcance-4","Consulta-al-padron-de-AFIP-alcance-5","Consulta-al-padron-de-AFIP-alcance-10","Consulta-al-padron-de-AFIP-alcance-13"]}]}},locales:{"/":{lang:"es",title:"Afip.ts",description:"SDK para Web Services de Afip",path:"/"},"/en/":{lang:"en-US",title:"Afip.ts",description:"Nodejs Package to use Afip Web Services",path:"/en/"}}};n(233);Kn.component("OtherComponent",()=>n.e(7).then(n.bind(null,293))),Kn.component("demo-component",()=>n.e(8).then(n.bind(null,277))),Kn.component("Foo-Bar",()=>n.e(6).then(n.bind(null,278))),Kn.component("CodeBlock",()=>Promise.all([n.e(0),n.e(4)]).then(n.bind(null,279))),Kn.component("Badge",()=>Promise.all([n.e(0),n.e(3)]).then(n.bind(null,294))),Kn.component("CodeGroup",()=>Promise.all([n.e(0),n.e(5)]).then(n.bind(null,280)));n(234);var Ts=[({Vue:t,options:e,router:n,siteData:r})=>{},{},({Vue:t})=>{t.mixin({computed:{$dataBlock(){return this.$options.__data__block__}}})},{},{}],Is=[];class Ls extends class{constructor(){this.store=new Kn({data:{state:{}}})}$get(t){return this.store.state[t]}$set(t,e){Kn.set(this.store.state,t,e)}$emit(...t){this.store.$emit(...t)}$on(...t){this.store.$on(...t)}}{}Object.assign(Ls.prototype,{getPageAsyncComponent:ss,getLayoutAsyncComponent:cs,getAsyncComponent:us,getVueComponent:ls});var Rs={install(t){const e=new Ls;t.$vuepress=e,t.prototype.$vuepress=e}};function Ms(t,e){const n=e.toLowerCase();return t.options.routes.some(t=>t.path.toLowerCase()===n)}var Fs={props:{pageKey:String,slotKey:{type:String,default:"default"}},render(t){const e=this.pageKey||this.$parent.$page.key;return ps("pageKey",e),Kn.component(e)||Kn.component(e,ss(e)),Kn.component(e)?t(e):t("")}},Ds={functional:!0,props:{slotKey:String,required:!0},render:(t,{props:e,slots:n})=>t("div",{class:["content__"+e.slotKey]},n()[e.slotKey])},Us={computed:{openInNewWindowTitle(){return this.$themeLocaleConfig.openNewWindowText||"(opens new window)"}}},Ns=(n(235),n(236),Object(ks.a)(Us,(function(){var t=this._self._c;return t("span",[t("svg",{staticClass:"icon outbound",attrs:{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",x:"0px",y:"0px",viewBox:"0 0 100 100",width:"15",height:"15"}},[t("path",{attrs:{fill:"currentColor",d:"M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"}}),this._v(" "),t("polygon",{attrs:{fill:"currentColor",points:"45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"}})]),this._v(" "),t("span",{staticClass:"sr-only"},[this._v(this._s(this.openInNewWindowTitle))])])}),[],!1,null,null,null).exports),Bs={functional:!0,render(t,{parent:e,children:n}){if(e._isMounted)return n;e.$once("hook:mounted",()=>{e.$forceUpdate()})}};Kn.config.productionTip=!1,Kn.use(Ha),Kn.use(Rs),Kn.mixin(function(t,e,n=Kn){!function(t){t.locales&&Object.keys(t.locales).forEach(e=>{t.locales[e].path=e});Object.freeze(t)}(e),n.$vuepress.$set("siteData",e);const r=new(t(n.$vuepress.$get("siteData"))),o=Object.getOwnPropertyDescriptors(Object.getPrototypeOf(r)),i={};return Object.keys(o).reduce((t,e)=>(e.startsWith("$")&&(t[e]=o[e].get),t),i),{computed:i}}(t=>class{setPage(t){this.__page=t}get $site(){return t}get $themeConfig(){return this.$site.themeConfig}get $frontmatter(){return this.$page.frontmatter}get $localeConfig(){const{locales:t={}}=this.$site;let e,n;for(const r in t)"/"===r?n=t[r]:0===this.$page.path.indexOf(r)&&(e=t[r]);return e||n||{}}get $siteTitle(){return this.$localeConfig.title||this.$site.title||""}get $canonicalUrl(){const{canonicalUrl:t}=this.$page.frontmatter;return"string"==typeof t&&t}get $title(){const t=this.$page,{metaTitle:e}=this.$page.frontmatter;if("string"==typeof e)return e;const n=this.$siteTitle,r=t.frontmatter.home?null:t.frontmatter.title||t.title;return n?r?r+" | "+n:n:r||"VuePress"}get $description(){const t=function(t){if(t){const e=t.filter(t=>"description"===t.name)[0];if(e)return e.content}}(this.$page.frontmatter.meta);return t||(this.$page.frontmatter.description||this.$localeConfig.description||this.$site.description||"")}get $lang(){return this.$page.frontmatter.lang||this.$localeConfig.lang||"en-US"}get $localePath(){return this.$localeConfig.path||"/"}get $themeLocaleConfig(){return(this.$site.themeConfig.locales||{})[this.$localePath]||{}}get $page(){return this.__page?this.__page:function(t,e){for(let n=0;nn||(t.hash?!Kn.$vuepress.$get("disableScrollBehavior")&&{selector:decodeURIComponent(t.hash)}:{x:0,y:0})});!function(t){t.beforeEach((e,n,r)=>{if(Ms(t,e.path))r();else if(/(\/|\.html)$/.test(e.path))if(/\/$/.test(e.path)){const n=e.path.replace(/\/$/,"")+".html";Ms(t,n)?r(n):r()}else r();else{const n=e.path+"/",o=e.path+".html";Ms(t,o)?r(o):Ms(t,n)?r(n):r()}})}(n);const r={};try{await Promise.all(Ts.filter(t=>"function"==typeof t).map(e=>e({Vue:Kn,options:r,router:n,siteData:Ps,isServer:t})))}catch(t){console.error(t)}return{app:new Kn(Object.assign(r,{router:n,render:t=>t("div",{attrs:{id:"app"}},[t("RouterView",{ref:"layout"}),t("div",{class:"global-ui"},Is.map(e=>t(e)))])})),router:n}}(!1).then(({app:t,router:e})=>{e.onReady(()=>{t.$mount("#app")})})}]); \ No newline at end of file diff --git a/docs-old/.vuepress/dist/contributions/index.html b/docs-old/.vuepress/dist/contributions/index.html deleted file mode 100644 index 8734f0e..0000000 --- a/docs-old/.vuepress/dist/contributions/index.html +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - Contribuciones | Afip.ts - - - - - - - - - - - -

# Contribuciones

# Commit

Usamos "semantic release library" (opens new window) (https://www.npmjs.com/package/semantic-release) para generar nuestras nuevas versiones, tags y changelogs. Para esto necesitamos specificar un mensaje en los commits con un formato que permita determinar que version es aumentada, y tambien ayudar a mejorar el CHANGELOG.md

Commit message Release type
fix(pencil): stop graphite breaking when too much pressure applied Patch Release
feat(pencil): add 'graphiteWidth' option Minor Feature Release
perf(pencil): remove graphiteWidth option

BREAKING CHANGE: The graphiteWidth option has been removed.
The default graphite width of 10mm is always used for performance reasons.
Major Breaking Release
Last Updated: 3/11/2022, 0:20:09
- - - diff --git a/docs-old/.vuepress/dist/en/index.html b/docs-old/.vuepress/dist/en/index.html deleted file mode 100644 index 370e711..0000000 --- a/docs-old/.vuepress/dist/en/index.html +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - Afip.ts - - - - - - - - - - - -

- Afip.ts -

- Nodejs Package to use Afip Web Services -

# Translation

  • Status: Comming soon...
- - - diff --git a/docs-old/.vuepress/dist/guide/Consulta-al-padron-de-AFIP-alcance-10.html b/docs-old/.vuepress/dist/guide/Consulta-al-padron-de-AFIP-alcance-10.html deleted file mode 100644 index 1851038..0000000 --- a/docs-old/.vuepress/dist/guide/Consulta-al-padron-de-AFIP-alcance-10.html +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - Padrón de AFIP alcance 10 | Afip.ts - - - - - - - - - - - -

# Padrón de AFIP alcance 10

Los métodos de este Web Service se encuentran disponibles en afip.registerScopeTenService

La especificación de este Web Service se encuentra disponible en http://www.afip.gob.ar/ws/ws_sr_padron_a10/manual_ws_sr_padron_a10_v1.1.pdf

# Métodos disponibles

  1. Obtener datos del contribuyente (getPersona)
  2. Obtener estado del servidor

# Obtener datos del contribuyente

Debemos utilizar el metodo getTaxpayerDetails pasando como parámetro el documento identificador del contribuyente, por ej. el CUIT. Nos devolvera un objeto con los detalles o null en caso de no existir en el padrón

const taxpayerDetails = await afip.registerScopeTenService.getTaxpayerDetails(
-  20111111111
-); //Devuelve los datos del contribuyente correspondiente al identificador 20111111111
-

Para mas información acerca de este método ver el item 3.2 de la especificación del Web service (opens new window)

# Obtener estado del servidor

Para esto utilizaremos el método getServerStatus

const serverStatus = await afip.registerScopeTenService.getServerStatus();
-
-console.log("Este es el estado del servidor:");
-console.log(serverStatus);
-

Para mas información acerca de este método ver el item 3.1 de la especificación del Web service (opens new window)

Last Updated: 7/11/2022, 22:00:12
- - - diff --git a/docs-old/.vuepress/dist/guide/Consulta-al-padron-de-AFIP-alcance-13.html b/docs-old/.vuepress/dist/guide/Consulta-al-padron-de-AFIP-alcance-13.html deleted file mode 100644 index 3666dbc..0000000 --- a/docs-old/.vuepress/dist/guide/Consulta-al-padron-de-AFIP-alcance-13.html +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - Padrón de AFIP alcance 13 | Afip.ts - - - - - - - - - - - -

# Padrón de AFIP alcance 13

Los métodos de este Web Service se encuentran disponibles en afip.registerScopeTThirteenService

La especificación de este Web Service se encuentra disponible en http://www.afip.gob.ar/ws/ws-padron-a13/manual-ws-sr-padron-a13-v1.2.pdf

# Métodos disponibles

  1. Obtener datos del contribuyente (getPersona)
  2. Obtener CUIT a partir de un DNI
  3. Obtener estado del servidor

# Obtener datos del contribuyente

Debemos utilizar el metodo getTaxpayerDetails pasando como parámetro el documento identificador del contribuyente, por ej. el CUIT. Nos devolvera un objeto con los detalles o null en caso de no existir en el padrón

const taxpayerDetails =
-  await afip.registerScopeTThirteenService.getTaxpayerDetails(20111111111); //Devuelve los datos del contribuyente correspondiente al identificador 20111111111
-

Para mas información acerca de este método ver el item 3.2 de la especificación del Web service (opens new window)

# Obtener CUIT a partir de un DNI

Debemos utilizar el metodo getTaxIDByDocument pasando como parámetro el DNI del contribuyente. Nos devolverá el CUIT o null en caso de no existir en el padrón

const taxID = await afip.registerScopeTThirteenService.getTaxIDByDocument(
-  11111111
-); //Devuelve el CUIT correspondiente al DNI 11111111
-

# Obtener estado del servidor

Para esto utilizaremos el método getServerStatus

const serverStatus = await afip.registerScopeTThirteenService.getServerStatus();
-
-console.log("Este es el estado del servidor:");
-console.log(serverStatus);
-

Para mas información acerca de este método ver el item 3.1 de la especificación del Web service (opens new window)

Last Updated: 7/11/2022, 22:00:12
- - - diff --git a/docs-old/.vuepress/dist/guide/Consulta-al-padron-de-AFIP-alcance-4.html b/docs-old/.vuepress/dist/guide/Consulta-al-padron-de-AFIP-alcance-4.html deleted file mode 100644 index 1915bf4..0000000 --- a/docs-old/.vuepress/dist/guide/Consulta-al-padron-de-AFIP-alcance-4.html +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - Padrón de AFIP alcance 4 | Afip.ts - - - - - - - - - - - -

# Padrón de AFIP alcance 4

Los métodos de este Web Service se encuentran disponibles en afip.registerScopeFourService

La especificación de este Web Service se encuentra disponible en http://www.afip.gob.ar/ws/ws_sr_padron_a4/manual_ws_sr_padron_a4_v1.1.pdf

# Métodos disponibles

  1. Obtener datos del contribuyente (getPersona)
  2. Obtener estado del servidor

# Obtener datos del contribuyente

Debemos utilizar el metodo getTaxpayerDetails pasando como parámetro el documento identificador del contribuyente, por ej. el CUIT. Nos devolvera un objeto con los detalles o null en caso de no existir en el padrón

const taxpayerDetails = await afip.registerScopeFourService.getTaxpayerDetails(
-  20111111111
-); //Devuelve los datos del contribuyente correspondiente al identificador 20111111111
-

Para mas información acerca de este método ver el item 3.2 de la especificación del Web service (opens new window)

# Obtener estado del servidor

Para esto utilizaremos el método getServerStatus

const serverStatus = await afip.registerScopeFourService.getServerStatus();
-
-console.log("Este es el estado del servidor:");
-console.log(serverStatus);
-

Para mas información acerca de este método ver el item 3.1 de la especificación del Web service (opens new window)

Last Updated: 7/11/2022, 22:00:12
- - - diff --git a/docs-old/.vuepress/dist/guide/Consulta-al-padron-de-AFIP-alcance-5.html b/docs-old/.vuepress/dist/guide/Consulta-al-padron-de-AFIP-alcance-5.html deleted file mode 100644 index 908800c..0000000 --- a/docs-old/.vuepress/dist/guide/Consulta-al-padron-de-AFIP-alcance-5.html +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - Padrón de AFIP alcance 5 | Afip.ts - - - - - - - - - - - -

# Padrón de AFIP alcance 5

Los métodos de este Web Service se encuentran disponibles en afip.registerScopeFiveService

La especificación de este Web Service se encuentra disponible en http://www.afip.gob.ar/ws/ws_sr_padron_a5/manual_ws_sr_padron_a5_v1.0.pdf

# Métodos disponibles

  1. Obtener datos del contribuyente (getPersona)
  2. Obtener datos de múltiples contribuyentes
  3. Obtener estado del servidor

# Obtener datos del contribuyente

Debemos utilizar el metodo getTaxpayerDetails pasando como parámetro el documento identificador del contribuyente, por ej. el CUIT. Nos devolvera un objeto con los detalles o null en caso de no existir en el padrón

const taxpayerDetails = await afip.registerScopeFiveService.getTaxpayerDetails(
-  20111111111
-); //Devuelve los datos del contribuyente correspondiente al identificador 20111111111
-

Para mas información acerca de este método ver el item 3.2 de la especificación del Web service (opens new window)

# Obtener datos de múltiples contribuyentes

Debemos utilizar el método getTaxpayersDetails pasando como parámetro un array con los documentos identificadores de los contribuyentes. Nos devolverá un array con los detalles de cada contribuyente.

const taxpayersDetails =
-  await afip.registerScopeFiveService.getTaxpayersDetails([
-    20111111111, 20111111112,
-  ]); //Devuelve los datos de los contribuyentes correspondientes a los identificadores 20111111111y 20111111112
-

# Obtener estado del servidor

Para esto utilizaremos el método getServerStatus

const serverStatus = await afip.registerScopeFiveService.getServerStatus();
-
-console.log("Este es el estado del servidor:");
-console.log(serverStatus);
-

Para mas información acerca de este método ver el item 3.1 de la especificación del Web service (opens new window)

Last Updated: 7/11/2022, 22:00:12
- - - diff --git "a/docs-old/.vuepress/dist/guide/Facturaci\303\263n-Electr\303\263nica.html" "b/docs-old/.vuepress/dist/guide/Facturaci\303\263n-Electr\303\263nica.html" deleted file mode 100644 index 673e3d5..0000000 --- "a/docs-old/.vuepress/dist/guide/Facturaci\303\263n-Electr\303\263nica.html" +++ /dev/null @@ -1,106 +0,0 @@ - - - - - - Facturación Electrónica | Afip.ts - - - - - - - - - - - -

# Facturación Electrónica

Los métodos de este Web Service se encuentran disponibles en afip.electronicBillingService

La especificación de este Web Service se encuentra disponible aquí (opens new window)

Nota: -Hablaremos de comprobante indistintamente si es una factura, nota de crédito, etc

# Indice


# Obtener número del último comprobante creado

Debemos utilizar el método getLastVoucher con los parámetros punto de venta y tipo de comprobante que queremos consultar.

const lastVoucher = await afip.electronicBillingService.getLastVoucher(1, 6); //Devuelve el número del último comprobante creado para el punto de venta 1 y el tipo de comprobante 6 (Factura B)
-

Para mas información acerca de este método ver el item 4.15 de la especificación del Web service (opens new window)

# Crear y asignar CAE a un comprobante

Debemos utilizar el método createVoucher pasándole como parámetro un Objeto con los detalles del comprobante y si queremos tener la respuesta completa enviada por el WS debemos pasarle como segundo parámetro true, en caso de no enviarle el segundo parámetro nos devolverá como respuesta { CAE : CAE asignado el comprobante, CAEFchVto : Fecha de vencimiento del CAE (yyyy-mm-dd) }.

const date = new Date(Date.now() - new Date().getTimezoneOffset() * 60000)
-  .toISOString()
-  .split("T")[0];
-
-let data = {
-  CantReg: 1, // Cantidad de comprobantes a registrar
-  PtoVta: 1, // Punto de venta
-  CbteTipo: 6, // Tipo de comprobante (ver tipos disponibles)
-  Concepto: 1, // Concepto del Comprobante: (1)Productos, (2)Servicios, (3)Productos y Servicios
-  DocTipo: 99, // Tipo de documento del comprador (99 consumidor final, ver tipos disponibles)
-  DocNro: 0, // Número de documento del comprador (0 consumidor final)
-  CbteDesde: 1, // Número de comprobante o numero del primer comprobante en caso de ser mas de uno
-  CbteHasta: 1, // Número de comprobante o numero del último comprobante en caso de ser mas de uno
-  CbteFch: parseInt(date.replace(/-/g, "")), // (Opcional) Fecha del comprobante (yyyymmdd) o fecha actual si es nulo
-  ImpTotal: 121, // Importe total del comprobante
-  ImpTotConc: 0, // Importe neto no gravado
-  ImpNeto: 100, // Importe neto gravado
-  ImpOpEx: 0, // Importe exento de IVA
-  ImpIVA: 21, //Importe total de IVA
-  ImpTrib: 0, //Importe total de tributos
-  MonId: "PES", //Tipo de moneda usada en el comprobante (ver tipos disponibles)('PES' para pesos argentinos)
-  MonCotiz: 1, // Cotización de la moneda usada (1 para pesos argentinos)
-  Iva: [
-    // (Opcional) Alícuotas asociadas al comprobante
-    {
-      Id: 5, // Id del tipo de IVA (5 para 21%)(ver tipos disponibles)
-      BaseImp: 100, // Base imponible
-      Importe: 21, // Importe
-    },
-  ],
-};
-
-const res = await afip.electronicBillingService.createVoucher(data);
-

Este método acepta mas parámetros, pueden ver todos los parámetros disponibles Aqui (opens new window)

Para mas información acerca de este método ver el item 4.1 de la especificación del Web service (opens new window)

# Crear y asignar CAE a siguiente comprobante

Debemos utilizar el método createNextVoucher pasándole como parámetro un Objeto con los detalles del comprobante al igual que el método createVoucher, nos devolverá como respuesta { CAE : CAE asignado al comprobante, CAEFchVto : Fecha de vencimiento del CAE (yyyy-mm-dd), voucher_number : Número asignado al comprobante }.

const res = await afip.electronicBillingService.createNextVoucher(data);
-

# Obtener información de un comprobante

Con este método podemos obtener toda la información relacionada a un comprobante o simplemente saber si el comprobante existe, debemos ejecutar el método getVoucherInfo pasándole como parámetros el número de comprobante, el punto de venta y el tipo de comprobante, nos devolverá un Objeto con toda la información del comprobante o null si el comprobante no existe.

const voucherInfo = await afip.electronicBillingService.getVoucherInfo(1, 1, 6); //Devuelve la información del comprobante 1 para el punto de venta 1 y el tipo de comprobante 6 (Factura B)
-
-if (voucherInfo === null) {
-  console.log("El comprobante no existe");
-} else {
-  console.log("Esta es la información del comprobante:");
-  console.log(voucherInfo);
-}
-

Para mas información acerca de este método ver el item 4.19 de la especificación del Web service (opens new window)

# Obtener puntos de venta disponibles

const salesPoints = await afip.electronicBillingService.getSalesPoints();
-

# Obtener tipos de comprobantes disponibles

const voucherTypes = await afip.electronicBillingService.getVoucherTypes();
-

Para mas información acerca de este método ver el item 4.4 de la especificación del Web service (opens new window)

# Obtener tipos de conceptos disponibles

const conceptTypes = await afip.electronicBillingService.getConceptTypes();
-

Para mas información acerca de este método ver el item 4.5 de la especificación del Web service (opens new window)

# Obtener tipos de documentos disponibles

const documentTypes = await afip.electronicBillingService.getDocumentTypes();
-

Para mas información acerca de este método ver el item 4.6 de la especificación del Web service (opens new window)

# Obtener tipos de alícuotas disponibles

const aloquotTypes = await afip.electronicBillingService.getAliquotTypes();
-

Para mas información acerca de este método ver el item 4.7 de la especificación del Web service (opens new window)

# Obtener tipos de monedas disponibles

const currenciesTypes =
-  await afip.electronicBillingService.getCurrenciesTypes();
-

Para mas información acerca de este método ver el item 4.8 de la especificación del Web service (opens new window)

# Obtener tipos de opciones disponibles para el comprobante

const optionTypes = await afip.electronicBillingService.getOptionsTypes();
-

Para mas información acerca de este método ver el item 4.9 de la especificacion del Web service (opens new window)

# Obtener tipos de tributos disponibles

const taxTypes = await afip.electronicBillingService.getTaxTypes();
-

Para mas información acerca de este método ver el item 4.10 de la especificación del Web service (opens new window)

# Obtener estado del servidor

Para esto utilizaremos el método getServerStatus

const serverStatus = await afip.electronicBillingService.getServerStatus();
-
-console.log("Este es el estado del servidor:");
-console.log(serverStatus);
-
Last Updated: 31/1/2023, 16:06:11
- - - diff --git a/docs-old/.vuepress/dist/guide/basic-use.html b/docs-old/.vuepress/dist/guide/basic-use.html deleted file mode 100644 index 8e41050..0000000 --- a/docs-old/.vuepress/dist/guide/basic-use.html +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - Uso Básico | Afip.ts - - - - - - - - - - - -

# Uso Básico

# Ejemplo basico:

Para usar la SDK debemos instanciar la clase Afip con los siguientes minimos datos:

Esto data como resultado un objecto con los respectivos servicios disponibles para usar, como por ejemplo electronicBillingService:

import { Afip } from "afip.ts";
-
-const afip: Afip = new Afip({
-  key: "private_key_content",
-  cert: "crt_content",
-  cuit: 20111111112,
-});
-
-const voucher = await afip.electronicBillingService.createInvoice({
-  // voucher data
-});
-

La clase Afip recibe como parametro en el constructor el contexto (Ver type). Ahi esta explicado todos los comportamientos que puede tomar afip.

Last Updated: 31/1/2023, 16:06:11
- - - diff --git a/docs-old/.vuepress/dist/guide/behaviour.html b/docs-old/.vuepress/dist/guide/behaviour.html deleted file mode 100644 index d5f6bbf..0000000 --- a/docs-old/.vuepress/dist/guide/behaviour.html +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - Comportamiento | Afip.ts - - - - - - - - - - - -

# Comportamiento

Para poder comunicarse con los Web Services de AFIP se debe autenticar con su servicio de WSAA (opens new window) el cual retorna los tokens necesarios con una validez de hasta 12 horas. -Este servicio de autenticacion solo puede ser llamado cada 2 minutos en los servidores de produccion y hasta 10 minutos en los servidores de homologiacion.

Para esto otros paquetes internamente generan archivos donde guardan estos tokens de manera local en el servidor usando el file sistem de Node (require('fs')). Esto es un problema cuando se ejecuta sobre funciones serverless como las Lambdas de AWS.

Este paquete permite manejar los tickets de acceso (TA que devuelve con los tokens AFIP) de manera personals si se desea, permitiendo tomar datos y guardarlos donde les sea mas conveniente, como en una BD, un S3, o algun storage provider.

Aun asi, si no se quiere manejar personalmente y que se guarden en el servidor, pueden no especificar nada en el contexto de la clase Afip al momento de instanciarlo y este guardara JSONs con los tokens dentro de la carpeta del paquete (Por default root/src/auth/tickets, aunque se puede cambiar desde el constructor).

Last Updated: 1/11/2022, 20:29:19
- - - diff --git a/docs-old/.vuepress/dist/guide/config.html b/docs-old/.vuepress/dist/guide/config.html deleted file mode 100644 index ad0ff7d..0000000 --- a/docs-old/.vuepress/dist/guide/config.html +++ /dev/null @@ -1,99 +0,0 @@ - - - - - - Contexto | Afip.ts - - - - - - - - - - - -

# Contexto

# Afip Context:

La clase Afip recibe como parametro un objecto de tipo Context el cual provee de los datos basicos necesarios para el uso de los Web Services de Afip, como tambien de como debe comportarse:

const instance = new Afip(Context);
-
  • Context: -
    • production (boolean): Flag que permite indicar si se usara los servicios de produccion o de homologacion (Testing).
    • cert *(string): Contenido del certificado (.crt).
    • key *(string): Contenido de la llave privada.
    • cuit *(number): Cuit del usuario a usar.
    • credentials (WSAuthTokens): Objeto de tipo WSAuthTokens (Ver (opens new window)). Aca es donde se asigna los tokens de autenticacion si es que tiene alguno guardado.
    • handleTicket (boolean): Flag que indica si los tickets de autenticacion son manejados localmente automaticamente por el package o van a ser dados por el desarrollador (Mas adelante se indicara como hacer log in y luego pasar los tokens antes de una llamada al Web Service deseado). Esto es util cuando se desea usar el package sobre una lambda, ya que en estas no podremos guardar localemnte los tokens.
    • ticketPath (string): Ruta preferencial donde se desea guardaran los tokens obtenidos desde el servicio WSAA si no se desea la carpeta default.

-Context Type code: -
type Context = {
-  /**
-   * Flag for production or testing environment
-   *
-   * @var boolean
-   **/
-  production?: boolean;
-
-  /**
-   * Content file for the X.509 certificate in PEM format
-   *
-   * @var string
-   **/
-  cert: string;
-
-  /**
-   * Content file for the private key correspoding to CERT (PEM)
-   *
-   * @var string
-   **/
-  key: string;
-
-  /**
-   * The CUIT to use
-   *
-   * @var int
-   **/
-  cuit: number;
-
-  /**
-   * Tokens object if you have one created before
-   *
-   * @var credentials
-   **/
-  credentials?: WSAuthTokens;
-
-  /**
-   * Flag that if is true, the access tickets data is handled by the developer, otherwise is saved locally.
-   */
-  handleTicket?: boolean;
-
-  /**
-   * The path of the auth obj if the package is auto managed
-   */
-  ticketPath?: string;
-};
-

Last Updated: 31/1/2023, 16:06:11
- - - diff --git a/docs-old/.vuepress/dist/guide/index.html b/docs-old/.vuepress/dist/guide/index.html deleted file mode 100644 index a02b829..0000000 --- a/docs-old/.vuepress/dist/guide/index.html +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - Introduction | Afip.ts - - - - - - - - - - - -

# Introduction

# Servicios disponibles

Actualmente la SDK soporta los siguientes servicios de afip:

Si deseas aportar y queres integrar un nuevo servicio, puedes hacer fork del repositorio y generar un PR con los cambios para que los evaluemos y los sumemos!

# Intalación

# NPM
npm i afip.ts --save
-
# Yarn
yarn add afip.ts
-

# Requisitos previos

Se debe tener los certificados emitidos por AFIP, ya sean para los servidores de homologacion o produccion. Estos seran requeridos por la instancia de Afip para la autenticacion a travez del servicio WSAA.

Last Updated: 31/1/2023, 16:06:11
- - - diff --git a/docs-old/.vuepress/dist/index.html b/docs-old/.vuepress/dist/index.html deleted file mode 100644 index 531afd7..0000000 --- a/docs-old/.vuepress/dist/index.html +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - Afip.ts - - - - - - - - - - - -
hero

- Afip.ts -

- SDK para Web Services de Afip -

- Start → -

Typescript First

Escrito desde el comienzo en typescript.

Serverless Support

Manejo personalizado de tokens de acceso para ser utilizado en aplicaciones serverless.

Facil y simple

Simple de usar y configurar.

- - - diff --git a/docs-old/.vuepress/enhanceApp.js b/docs-old/.vuepress/enhanceApp.js deleted file mode 100755 index 8452a86..0000000 --- a/docs-old/.vuepress/enhanceApp.js +++ /dev/null @@ -1,14 +0,0 @@ -/** - * Client app enhancement file. - * - * https://v1.vuepress.vuejs.org/guide/basic-config.html#app-level-enhancements - */ - -export default ({ - Vue, // the version of Vue being used in the VuePress app - options, // the options for the root Vue instance - router, // the router instance for the app - siteData // site metadata -}) => { - // ...apply enhancements for the site. -} diff --git a/docs-old/.vuepress/styles/index.styl b/docs-old/.vuepress/styles/index.styl deleted file mode 100755 index 420feb9..0000000 --- a/docs-old/.vuepress/styles/index.styl +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Custom Styles here. - * - * ref:https://v1.vuepress.vuejs.org/config/#index-styl - */ - -.home .hero img - max-width 450px!important diff --git a/docs-old/.vuepress/styles/palette.styl b/docs-old/.vuepress/styles/palette.styl deleted file mode 100755 index 6490cb3..0000000 --- a/docs-old/.vuepress/styles/palette.styl +++ /dev/null @@ -1,10 +0,0 @@ -/** - * Custom palette here. - * - * ref:https://v1.vuepress.vuejs.org/zh/config/#palette-styl - */ - -$accentColor = #3eaf7c -$textColor = #2c3e50 -$borderColor = #eaecef -$codeBgColor = #282c34 diff --git a/docs-old/README.md b/docs-old/README.md deleted file mode 100755 index fdedc10..0000000 --- a/docs-old/README.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -home: true -heroImage: https://user-images.githubusercontent.com/19806540/198080937-468e851b-2ae4-40a7-b2c5-cb929ff7749a.png -tagline: SDK para Web Services de Afip -actionText: Start → -actionLink: /guide/ -features: - - title: Typescript First - details: Escrito desde el comienzo en typescript. - - title: Serverless Support - details: Manejo personalizado de tokens de acceso para ser utilizado en aplicaciones serverless. - - title: Facil y simple - details: Simple de usar y configurar. -footer: Made by Rodrigo Alcorta with ❤️ ---- diff --git a/docs-old/contributions/README.md b/docs-old/contributions/README.md deleted file mode 100644 index 9e47adf..0000000 --- a/docs-old/contributions/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# Contribuciones - -### Commit - -Usamos ["semantic release library"](https://www.npmjs.com/package/semantic-release) (https://www.npmjs.com/package/semantic-release) para generar nuestras nuevas versiones, tags y changelogs. Para esto necesitamos specificar un mensaje en los commits con un formato que permita determinar que version es aumentada, y tambien ayudar a mejorar el CHANGELOG.md - -| Commit message | Release type | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------- | -| `fix(pencil): stop graphite breaking when too much pressure applied` | Patch Release | -| `feat(pencil): add 'graphiteWidth' option` | ~~Minor~~ Feature Release | -| `perf(pencil): remove graphiteWidth option`

`BREAKING CHANGE: The graphiteWidth option has been removed.`
`The default graphite width of 10mm is always used for performance reasons.` | ~~Major~~ Breaking Release | diff --git a/docs-old/en/README.md b/docs-old/en/README.md deleted file mode 100755 index 2cf9d7a..0000000 --- a/docs-old/en/README.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -home: true -footer: Made by Rodrigo Alcorta with ❤️ ---- - -## Translation - -- Status: `Comming soon...` diff --git a/docs-old/guide/Consulta-al-padron-de-AFIP-alcance-10.md b/docs-old/guide/Consulta-al-padron-de-AFIP-alcance-10.md deleted file mode 100644 index f614cca..0000000 --- a/docs-old/guide/Consulta-al-padron-de-AFIP-alcance-10.md +++ /dev/null @@ -1,35 +0,0 @@ -# Padrón de AFIP alcance 10 - -Los métodos de este Web Service se encuentran disponibles en `afip.registerScopeTenService` - -La especificación de este Web Service se encuentra disponible en http://www.afip.gob.ar/ws/ws_sr_padron_a10/manual_ws_sr_padron_a10_v1.1.pdf - -### Métodos disponibles - -1. [Obtener datos del contribuyente _(getPersona)_](#obtener-datos-del-contribuyente) -2. [Obtener estado del servidor](#obtener-estado-del-servidor) - -## Obtener datos del contribuyente - -Debemos utilizar el metodo `getTaxpayerDetails` pasando como parámetro el documento identificador del contribuyente, por ej. el CUIT. Nos devolvera un objeto con los detalles o `null` en caso de no existir en el padrón - -```js -const taxpayerDetails = await afip.registerScopeTenService.getTaxpayerDetails( - 20111111111 -); //Devuelve los datos del contribuyente correspondiente al identificador 20111111111 -``` - -Para mas información acerca de este método ver el item 3.2 de la [especificación del Web service](http://www.afip.gob.ar/ws/ws_sr_padron_a10/manual_ws_sr_padron_a10_v1.1.pdf) - -## Obtener estado del servidor - -Para esto utilizaremos el método `getServerStatus` - -```js -const serverStatus = await afip.registerScopeTenService.getServerStatus(); - -console.log("Este es el estado del servidor:"); -console.log(serverStatus); -``` - -Para mas información acerca de este método ver el item 3.1 de la [especificación del Web service](http://www.afip.gob.ar/ws/ws_sr_padron_a10/manual_ws_sr_padron_a10_v1.1.pdf) diff --git a/docs-old/guide/Consulta-al-padron-de-AFIP-alcance-13.md b/docs-old/guide/Consulta-al-padron-de-AFIP-alcance-13.md deleted file mode 100644 index 0ff6bb3..0000000 --- a/docs-old/guide/Consulta-al-padron-de-AFIP-alcance-13.md +++ /dev/null @@ -1,45 +0,0 @@ -# Padrón de AFIP alcance 13 - -Los métodos de este Web Service se encuentran disponibles en `afip.registerScopeTThirteenService` - -La especificación de este Web Service se encuentra disponible en http://www.afip.gob.ar/ws/ws-padron-a13/manual-ws-sr-padron-a13-v1.2.pdf - -### Métodos disponibles - -1. [Obtener datos del contribuyente _(getPersona)_](#obtener-datos-del-contribuyente) -2. [Obtener CUIT a partir de un DNI](#obtener-cuit-a-partir-de-un-dni) -3. [Obtener estado del servidor](#obtener-estado-del-servidor) - -## Obtener datos del contribuyente - -Debemos utilizar el metodo `getTaxpayerDetails` pasando como parámetro el documento identificador del contribuyente, por ej. el CUIT. Nos devolvera un objeto con los detalles o `null` en caso de no existir en el padrón - -```js -const taxpayerDetails = - await afip.registerScopeTThirteenService.getTaxpayerDetails(20111111111); //Devuelve los datos del contribuyente correspondiente al identificador 20111111111 -``` - -Para mas información acerca de este método ver el item 3.2 de la [especificación del Web service](http://www.afip.gob.ar/ws/ws-padron-a13/manual-ws-sr-padron-a13-v1.2.pdf) - -## Obtener CUIT a partir de un DNI - -Debemos utilizar el metodo `getTaxIDByDocument` pasando como parámetro el DNI del contribuyente. Nos devolverá el CUIT o `null` en caso de no existir en el padrón - -```js -const taxID = await afip.registerScopeTThirteenService.getTaxIDByDocument( - 11111111 -); //Devuelve el CUIT correspondiente al DNI 11111111 -``` - -## Obtener estado del servidor - -Para esto utilizaremos el método `getServerStatus` - -```js -const serverStatus = await afip.registerScopeTThirteenService.getServerStatus(); - -console.log("Este es el estado del servidor:"); -console.log(serverStatus); -``` - -Para mas información acerca de este método ver el item 3.1 de la [especificación del Web service](http://www.afip.gob.ar/ws/ws-padron-a13/manual-ws-sr-padron-a13-v1.2.pdf) diff --git a/docs-old/guide/Consulta-al-padron-de-AFIP-alcance-4.md b/docs-old/guide/Consulta-al-padron-de-AFIP-alcance-4.md deleted file mode 100644 index b40bc48..0000000 --- a/docs-old/guide/Consulta-al-padron-de-AFIP-alcance-4.md +++ /dev/null @@ -1,35 +0,0 @@ -# Padrón de AFIP alcance 4 - -Los métodos de este Web Service se encuentran disponibles en `afip.registerScopeFourService` - -La especificación de este Web Service se encuentra disponible en http://www.afip.gob.ar/ws/ws_sr_padron_a4/manual_ws_sr_padron_a4_v1.1.pdf - -### Métodos disponibles - -1. [Obtener datos del contribuyente _(getPersona)_](#obtener-datos-del-contribuyente) -2. [Obtener estado del servidor](#obtener-estado-del-servidor) - -## Obtener datos del contribuyente - -Debemos utilizar el metodo `getTaxpayerDetails` pasando como parámetro el documento identificador del contribuyente, por ej. el CUIT. Nos devolvera un objeto con los detalles o `null` en caso de no existir en el padrón - -```js -const taxpayerDetails = await afip.registerScopeFourService.getTaxpayerDetails( - 20111111111 -); //Devuelve los datos del contribuyente correspondiente al identificador 20111111111 -``` - -Para mas información acerca de este método ver el item 3.2 de la [especificación del Web service](http://www.afip.gob.ar/ws/ws_sr_padron_a4/manual_ws_sr_padron_a4_v1.1.pdf) - -## Obtener estado del servidor - -Para esto utilizaremos el método `getServerStatus` - -```js -const serverStatus = await afip.registerScopeFourService.getServerStatus(); - -console.log("Este es el estado del servidor:"); -console.log(serverStatus); -``` - -Para mas información acerca de este método ver el item 3.1 de la [especificación del Web service](http://www.afip.gob.ar/ws/ws_sr_padron_a4/manual_ws_sr_padron_a4_v1.1.pdf) diff --git a/docs-old/guide/Consulta-al-padron-de-AFIP-alcance-5.md b/docs-old/guide/Consulta-al-padron-de-AFIP-alcance-5.md deleted file mode 100644 index 2af246e..0000000 --- a/docs-old/guide/Consulta-al-padron-de-AFIP-alcance-5.md +++ /dev/null @@ -1,47 +0,0 @@ -# Padrón de AFIP alcance 5 - -Los métodos de este Web Service se encuentran disponibles en `afip.registerScopeFiveService` - -La especificación de este Web Service se encuentra disponible en http://www.afip.gob.ar/ws/ws_sr_padron_a5/manual_ws_sr_padron_a5_v1.0.pdf - -### Métodos disponibles - -1. [Obtener datos del contribuyente _(getPersona)_](#obtener-datos-del-contribuyente) -2. [Obtener datos de múltiples contribuyentes](#obtener-datos-de-múltiples-contribuyentes) -3. [Obtener estado del servidor](#obtener-estado-del-servidor) - -## Obtener datos del contribuyente - -Debemos utilizar el metodo `getTaxpayerDetails` pasando como parámetro el documento identificador del contribuyente, por ej. el CUIT. Nos devolvera un objeto con los detalles o `null` en caso de no existir en el padrón - -```js -const taxpayerDetails = await afip.registerScopeFiveService.getTaxpayerDetails( - 20111111111 -); //Devuelve los datos del contribuyente correspondiente al identificador 20111111111 -``` - -Para mas información acerca de este método ver el item 3.2 de la [especificación del Web service](http://www.afip.gob.ar/ws/ws_sr_padron_a5/manual_ws_sr_padron_a5_v1.0.pdf) - -## Obtener datos de múltiples contribuyentes - -Debemos utilizar el método `getTaxpayersDetails` pasando como parámetro un array con los documentos identificadores de los contribuyentes. Nos devolverá un array con los detalles de cada contribuyente. - -```js -const taxpayersDetails = - await afip.registerScopeFiveService.getTaxpayersDetails([ - 20111111111, 20111111112, - ]); //Devuelve los datos de los contribuyentes correspondientes a los identificadores 20111111111y 20111111112 -``` - -## Obtener estado del servidor - -Para esto utilizaremos el método `getServerStatus` - -```js -const serverStatus = await afip.registerScopeFiveService.getServerStatus(); - -console.log("Este es el estado del servidor:"); -console.log(serverStatus); -``` - -Para mas información acerca de este método ver el item 3.1 de la [especificación del Web service](http://www.afip.gob.ar/ws/ws_sr_padron_a5/manual_ws_sr_padron_a5_v1.0.pdf) diff --git "a/docs-old/guide/Facturaci\303\263n-Electr\303\263nica.md" "b/docs-old/guide/Facturaci\303\263n-Electr\303\263nica.md" deleted file mode 100755 index 1b18595..0000000 --- "a/docs-old/guide/Facturaci\303\263n-Electr\303\263nica.md" +++ /dev/null @@ -1,184 +0,0 @@ -# Facturación Electrónica - -Los métodos de este Web Service se encuentran disponibles en `afip.electronicBillingService` - -La especificación de este Web Service se encuentra disponible [aquí](http://www.afip.gob.ar/fe/documentos/manual_desarrollador_COMPG_v2_10.pdf) - - - - -`Nota:` -Hablaremos de `comprobante` indistintamente si es una `factura`, nota de crédito, etc - -## Indice - -- [Facturación Electrónica](#facturación-electrónica) - - [Indice](#indice) - - [Obtener número del último comprobante creado](#obtener-número-del-último-comprobante-creado) - - [Crear y asignar CAE a un comprobante](#crear-y-asignar-cae-a-un-comprobante) - - [Crear y asignar CAE a siguiente comprobante](#crear-y-asignar-cae-a-siguiente-comprobante) - - [Obtener información de un comprobante](#obtener-información-de-un-comprobante) - - [Obtener puntos de venta disponibles](#obtener-puntos-de-venta-disponibles) - - [Obtener tipos de comprobantes disponibles](#obtener-tipos-de-comprobantes-disponibles) - - [Obtener tipos de conceptos disponibles](#obtener-tipos-de-conceptos-disponibles) - - [Obtener tipos de documentos disponibles](#obtener-tipos-de-documentos-disponibles) - - [Obtener tipos de alícuotas disponibles](#obtener-tipos-de-alícuotas-disponibles) - - [Obtener tipos de monedas disponibles](#obtener-tipos-de-monedas-disponibles) - - [Obtener tipos de opciones disponibles para el comprobante](#obtener-tipos-de-opciones-disponibles-para-el-comprobante) - - [Obtener tipos de tributos disponibles](#obtener-tipos-de-tributos-disponibles) - - [Obtener estado del servidor](#obtener-estado-del-servidor) - ---- - -## Obtener número del último comprobante creado - -Debemos utilizar el método `getLastVoucher` con los parámetros punto de venta y tipo de comprobante que queremos consultar. - -```js -const lastVoucher = await afip.electronicBillingService.getLastVoucher(1, 6); //Devuelve el número del último comprobante creado para el punto de venta 1 y el tipo de comprobante 6 (Factura B) -``` - -Para mas información acerca de este método ver el item 4.15 de la [especificación del Web service](http://www.afip.gob.ar/fe/documentos/manual_desarrollador_COMPG_v2_10.pdf) - -## Crear y asignar CAE a un comprobante - -Debemos utilizar el método `createVoucher` pasándole como parámetro un Objeto con los detalles del comprobante y si queremos tener la respuesta completa enviada por el WS debemos pasarle como segundo parámetro `true`, en caso de no enviarle el segundo parámetro nos devolverá como respuesta `{ CAE : CAE asignado el comprobante, CAEFchVto : Fecha de vencimiento del CAE (yyyy-mm-dd) }`. - -```js -const date = new Date(Date.now() - new Date().getTimezoneOffset() * 60000) - .toISOString() - .split("T")[0]; - -let data = { - CantReg: 1, // Cantidad de comprobantes a registrar - PtoVta: 1, // Punto de venta - CbteTipo: 6, // Tipo de comprobante (ver tipos disponibles) - Concepto: 1, // Concepto del Comprobante: (1)Productos, (2)Servicios, (3)Productos y Servicios - DocTipo: 99, // Tipo de documento del comprador (99 consumidor final, ver tipos disponibles) - DocNro: 0, // Número de documento del comprador (0 consumidor final) - CbteDesde: 1, // Número de comprobante o numero del primer comprobante en caso de ser mas de uno - CbteHasta: 1, // Número de comprobante o numero del último comprobante en caso de ser mas de uno - CbteFch: parseInt(date.replace(/-/g, "")), // (Opcional) Fecha del comprobante (yyyymmdd) o fecha actual si es nulo - ImpTotal: 121, // Importe total del comprobante - ImpTotConc: 0, // Importe neto no gravado - ImpNeto: 100, // Importe neto gravado - ImpOpEx: 0, // Importe exento de IVA - ImpIVA: 21, //Importe total de IVA - ImpTrib: 0, //Importe total de tributos - MonId: "PES", //Tipo de moneda usada en el comprobante (ver tipos disponibles)('PES' para pesos argentinos) - MonCotiz: 1, // Cotización de la moneda usada (1 para pesos argentinos) - Iva: [ - // (Opcional) Alícuotas asociadas al comprobante - { - Id: 5, // Id del tipo de IVA (5 para 21%)(ver tipos disponibles) - BaseImp: 100, // Base imponible - Importe: 21, // Importe - }, - ], -}; - -const res = await afip.electronicBillingService.createVoucher(data); -``` - -Este método acepta mas parámetros, pueden ver todos los parámetros disponibles [Aqui](https://github.com/valiulab/afip.ts/blob/main/src/interfaces/index.ts#L5) - -Para mas información acerca de este método ver el item 4.1 de la [especificación del Web service](http://www.afip.gob.ar/fe/documentos/manual_desarrollador_COMPG_v2_10.pdf) - -## Crear y asignar CAE a siguiente comprobante - -Debemos utilizar el método `createNextVoucher` pasándole como parámetro un Objeto con los detalles del comprobante al igual que el método `createVoucher`, nos devolverá como respuesta `{ CAE : CAE asignado al comprobante, CAEFchVto : Fecha de vencimiento del CAE (yyyy-mm-dd), voucher_number : Número asignado al comprobante }`. - -```js -const res = await afip.electronicBillingService.createNextVoucher(data); -``` - -## Obtener información de un comprobante - -Con este método podemos obtener toda la información relacionada a un comprobante o simplemente saber si el comprobante existe, debemos ejecutar el método `getVoucherInfo` pasándole como parámetros el número de comprobante, el punto de venta y el tipo de comprobante, nos devolverá un Objeto con toda la información del comprobante o `null` si el comprobante no existe. - -```js -const voucherInfo = await afip.electronicBillingService.getVoucherInfo(1, 1, 6); //Devuelve la información del comprobante 1 para el punto de venta 1 y el tipo de comprobante 6 (Factura B) - -if (voucherInfo === null) { - console.log("El comprobante no existe"); -} else { - console.log("Esta es la información del comprobante:"); - console.log(voucherInfo); -} -``` - -Para mas información acerca de este método ver el item 4.19 de la [especificación del Web service](http://www.afip.gob.ar/fe/documentos/manual_desarrollador_COMPG_v2_10.pdf) - -## Obtener puntos de venta disponibles - -```js -const salesPoints = await afip.electronicBillingService.getSalesPoints(); -``` - -## Obtener tipos de comprobantes disponibles - -```js -const voucherTypes = await afip.electronicBillingService.getVoucherTypes(); -``` - -Para mas información acerca de este método ver el item 4.4 de la [especificación del Web service](http://www.afip.gob.ar/fe/documentos/manual_desarrollador_COMPG_v2_10.pdf) - -## Obtener tipos de conceptos disponibles - -```js -const conceptTypes = await afip.electronicBillingService.getConceptTypes(); -``` - -Para mas información acerca de este método ver el item 4.5 de la [especificación del Web service](http://www.afip.gob.ar/fe/documentos/manual_desarrollador_COMPG_v2_10.pdf) - -## Obtener tipos de documentos disponibles - -```js -const documentTypes = await afip.electronicBillingService.getDocumentTypes(); -``` - -Para mas información acerca de este método ver el item 4.6 de la [especificación del Web service](http://www.afip.gob.ar/fe/documentos/manual_desarrollador_COMPG_v2_10.pdf) - -## Obtener tipos de alícuotas disponibles - -```js -const aloquotTypes = await afip.electronicBillingService.getAliquotTypes(); -``` - -Para mas información acerca de este método ver el item 4.7 de la [especificación del Web service](http://www.afip.gob.ar/fe/documentos/manual_desarrollador_COMPG_v2_10.pdf) - -## Obtener tipos de monedas disponibles - -```js -const currenciesTypes = - await afip.electronicBillingService.getCurrenciesTypes(); -``` - -Para mas información acerca de este método ver el item 4.8 de la [especificación del Web service](http://www.afip.gob.ar/fe/documentos/manual_desarrollador_COMPG_v2_10.pdf) - -## Obtener tipos de opciones disponibles para el comprobante - -```js -const optionTypes = await afip.electronicBillingService.getOptionsTypes(); -``` - -Para mas información acerca de este método ver el item 4.9 de la [especificacion del Web service](http://www.afip.gob.ar/fe/documentos/manual_desarrollador_COMPG_v2_10.pdf) - -## Obtener tipos de tributos disponibles - -```js -const taxTypes = await afip.electronicBillingService.getTaxTypes(); -``` - -Para mas información acerca de este método ver el item 4.10 de la [especificación del Web service](http://www.afip.gob.ar/fe/documentos/manual_desarrollador_COMPG_v2_10.pdf) - -## Obtener estado del servidor - -Para esto utilizaremos el método `getServerStatus` - -```js -const serverStatus = await afip.electronicBillingService.getServerStatus(); - -console.log("Este es el estado del servidor:"); -console.log(serverStatus); -``` diff --git a/docs-old/guide/README.md b/docs-old/guide/README.md deleted file mode 100755 index 5a3700c..0000000 --- a/docs-old/guide/README.md +++ /dev/null @@ -1,33 +0,0 @@ -# Introduction - -## Servicios disponibles - -Actualmente la SDK soporta los siguientes servicios de afip: - -- Web Serices - [Doc](https://www.afip.gob.ar/ws/documentacion/catalogo.asp) - - Autenticación - [Doc](https://www.afip.gob.ar/ws/WSAA/WSAAmanualDev.pdf) - - Factura electronica - [Doc](https://www.afip.gob.ar/fe/ayuda//documentos/Manual-desarrollador-V.2.21.pdf) - - Padron alcance 4 - [Doc](https://www.afip.gob.ar/ws/ws_sr_padron_a4/manual_ws_sr_padron_a4_v1.2.pdf) - - Padron alcance 5 - [Doc](https://www.afip.gob.ar/ws/ws_sr_padron_a5/manual_ws_sr_padron_a5_v1.0.pdf) - - Padron alcance 10 - [Doc](https://www.afip.gob.ar/ws/ws_sr_padron_a10/manual_ws_sr_padron_a10_v1.1.pdf) - - Padron alcance 13 - [Doc](https://www.afip.gob.ar/ws/ws-padron-a13/manual-ws-sr-padron-a13-v1.2.pdf) - -Si deseas aportar y queres integrar un nuevo servicio, puedes hacer fork del repositorio y generar un PR con los cambios para que los evaluemos y los sumemos! - -## Intalación - -##### NPM - -```sh -npm i afip.ts --save -``` - -##### Yarn - -```sh -yarn add afip.ts -``` - -### Requisitos previos - -Se debe tener los certificados emitidos por AFIP, ya sean para los servidores de homologacion o produccion. Estos seran requeridos por la instancia de Afip para la autenticacion a travez del servicio WSAA. diff --git a/docs-old/guide/basic-use.md b/docs-old/guide/basic-use.md deleted file mode 100755 index e7b4d25..0000000 --- a/docs-old/guide/basic-use.md +++ /dev/null @@ -1,29 +0,0 @@ -# Uso Básico - -### Ejemplo basico: - -Para usar la SDK debemos instanciar la clase `Afip` con los siguientes minimos datos: - -- [`key`](https://www.afip.gob.ar/ws/documentacion/certificados.asp) : Contenido de la clave privada generada para Afip -- [`cert`](https://www.afip.gob.ar/ws/documentacion/certificados.asp) : Contenido del certificado generado en Afip -- `cuit` : Cuit del usuario - -Esto data como resultado un objecto con los respectivos servicios disponibles para usar, como por ejemplo `electronicBillingService`: - -```ts -import { Afip } from "afip.ts"; - -const afip: Afip = new Afip({ - key: "private_key_content", - cert: "crt_content", - cuit: 20111111112, -}); - -const voucher = await afip.electronicBillingService.createInvoice({ - // voucher data -}); -``` - -
- -La clase Afip recibe como parametro en el constructor el contexto (Ver type). Ahi esta explicado todos los comportamientos que puede tomar afip. diff --git a/docs-old/guide/behaviour.md b/docs-old/guide/behaviour.md deleted file mode 100755 index b29556a..0000000 --- a/docs-old/guide/behaviour.md +++ /dev/null @@ -1,10 +0,0 @@ -# Comportamiento - -Para poder comunicarse con los Web Services de AFIP se debe autenticar con su servicio de [WSAA](https://www.afip.gob.ar/ws/WSAA/WSAAmanualDev.pdf) el cual retorna los tokens necesarios con una validez de hasta 12 horas. -Este servicio de autenticacion solo puede ser llamado cada 2 minutos en los servidores de produccion y hasta 10 minutos en los servidores de homologiacion. - -Para esto otros paquetes internamente generan archivos donde guardan estos tokens de manera local en el servidor usando el file sistem de Node (require('fs')). Esto es un problema cuando se ejecuta sobre funciones serverless como las Lambdas de AWS. - -Este paquete permite manejar los tickets de acceso (TA que devuelve con los tokens AFIP) de manera personals si se desea, permitiendo tomar datos y guardarlos donde les sea mas conveniente, como en una BD, un S3, o algun storage provider. - -Aun asi, si no se quiere manejar personalmente y que se guarden en el servidor, pueden no especificar nada en el contexto de la clase Afip al momento de instanciarlo y este guardara JSONs con los tokens dentro de la carpeta del paquete (Por default root/src/auth/tickets, aunque se puede cambiar desde el constructor). diff --git a/docs-old/guide/config.md b/docs-old/guide/config.md deleted file mode 100755 index 7c6149d..0000000 --- a/docs-old/guide/config.md +++ /dev/null @@ -1,72 +0,0 @@ -# Contexto - -### Afip Context: - -La clase `Afip` recibe como parametro un objecto de tipo `Context` el cual provee de los datos basicos necesarios para el uso de los Web Services de Afip, como tambien de como debe comportarse: - -```ts -const instance = new Afip(Context); -``` - -- `Context`: - - `production` (boolean): Flag que permite indicar si se usara los servicios de produccion o de homologacion (Testing). - - `cert` \*(string): Contenido del certificado `(.crt)`. - - `key` \*(string): Contenido de la llave privada. - - `cuit` \*(number): Cuit del usuario a usar. - - `credentials` (WSAuthTokens): Objeto de tipo WSAuthTokens ([Ver](https://github.com/valiulab/afip.ts/blob/main/src/auth/types.ts#L5)). Aca es donde se asigna los tokens de autenticacion si es que tiene alguno guardado. - - `handleTicket` (boolean): Flag que indica si los tickets de autenticacion son manejados localmente automaticamente por el package o van a ser dados por el desarrollador (Mas adelante se indicara como hacer log in y luego pasar los tokens antes de una llamada al Web Service deseado). Esto es util cuando se desea usar el package sobre una `lambda`, ya que en estas no podremos guardar localemnte los tokens. - - `ticketPath` (string): Ruta preferencial donde se desea guardaran los tokens obtenidos desde el servicio WSAA si no se desea la carpeta default. - -
-Context Type code: - -```ts -type Context = { - /** - * Flag for production or testing environment - * - * @var boolean - **/ - production?: boolean; - - /** - * Content file for the X.509 certificate in PEM format - * - * @var string - **/ - cert: string; - - /** - * Content file for the private key correspoding to CERT (PEM) - * - * @var string - **/ - key: string; - - /** - * The CUIT to use - * - * @var int - **/ - cuit: number; - - /** - * Tokens object if you have one created before - * - * @var credentials - **/ - credentials?: WSAuthTokens; - - /** - * Flag that if is true, the access tickets data is handled by the developer, otherwise is saved locally. - */ - handleTicket?: boolean; - - /** - * The path of the auth obj if the package is auto managed - */ - ticketPath?: string; -}; -``` - -