Skip to content

Commit

Permalink
feat: add recursive parse to camel and back to snake
Browse files Browse the repository at this point in the history
  • Loading branch information
themakunga committed Dec 15, 2021
1 parent 98df836 commit 3fa7cba
Show file tree
Hide file tree
Showing 29 changed files with 56 additions and 26 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

### Commits

- feat: add autodocs deploy [`98df836`](https://github.com/42devs/transbank-sdk-node/commit/98df83649d58ae7ae81dd3ea7c23e104cfcba40d)
- feat: add native request async handler [`4511abc`](https://github.com/42devs/transbank-sdk-node/commit/4511abcb7d2f16d5cef313a7ba223d42a4eba6c2)
- fix: test request [`19dd797`](https://github.com/42devs/transbank-sdk-node/commit/19dd7979244caf2be263672c2932b69cafcf664a)
- feat: change request method [`9e72bdf`](https://github.com/42devs/transbank-sdk-node/commit/9e72bdf54454b25af06d691cfceafe5bea62c361)
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/search.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@ <h2>Roadmap</h2>
</li>
<li><input disabled="" type="checkbox"> Update docs</li>
</ul>
</div></div><div class="col-4 col-menu menu-sticky-wrap menu-highlight"><nav class="tsd-navigation primary"><ul><li class="current"><a href="modules.html">Modules</a></li><li class=" tsd-kind-module"><a href="modules/index.html">index</a></li><li class=" tsd-kind-module"><a href="modules/interfaces_Error.html">interfaces/<wbr/>Error</a></li><li class=" tsd-kind-module"><a href="modules/interfaces_Headers.html">interfaces/<wbr/>Headers</a></li><li class=" tsd-kind-module"><a href="modules/interfaces_Options.html">interfaces/<wbr/>Options</a></li><li class=" tsd-kind-module"><a href="modules/interfaces_Request_CaptureRequestData.html">interfaces/<wbr/>Request/<wbr/>Capture<wbr/>Request<wbr/>Data</a></li><li class=" tsd-kind-module"><a href="modules/interfaces_Request.html">interfaces/<wbr/>Request</a></li><li class=" tsd-kind-module"><a href="modules/interfaces_Request_transactionCreate.html">interfaces/<wbr/>Request/transaction<wbr/>Create</a></li><li class=" tsd-kind-module"><a href="modules/interfaces_Response.html">interfaces/<wbr/>Response</a></li><li class=" tsd-kind-module"><a href="modules/interfaces_Response_transactionCreate.html">interfaces/<wbr/>Response/transaction<wbr/>Create</a></li><li class=" tsd-kind-module"><a href="modules/interfaces.html">interfaces</a></li><li class=" tsd-kind-module"><a href="modules/modules_webpayPlus_transaction.html">modules/webpay<wbr/>Plus/transaction</a></li></ul></nav></div></div></div><footer class="with-border-bottom"><div class="container"><h2>Legend</h2><div class="tsd-legend-group"><ul class="tsd-legend"><li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li></ul></div><h2>Settings</h2><p>Theme <select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></p></div></footer><div class="container tsd-generator"><p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div><div class="overlay"></div><script src="assets/main.js"></script></body></html>
</div></div><div class="col-4 col-menu menu-sticky-wrap menu-highlight"><nav class="tsd-navigation primary"><ul><li class="current"><a href="modules.html">Modules</a></li><li class=" tsd-kind-module"><a href="modules/index.html">index</a></li><li class=" tsd-kind-module"><a href="modules/interfaces_Error.html">interfaces/<wbr/>Error</a></li><li class=" tsd-kind-module"><a href="modules/interfaces_Headers.html">interfaces/<wbr/>Headers</a></li><li class=" tsd-kind-module"><a href="modules/interfaces_Options.html">interfaces/<wbr/>Options</a></li><li class=" tsd-kind-module"><a href="modules/interfaces_Request_CaptureRequestData.html">interfaces/<wbr/>Request/<wbr/>Capture<wbr/>Request<wbr/>Data</a></li><li class=" tsd-kind-module"><a href="modules/interfaces_Request.html">interfaces/<wbr/>Request</a></li><li class=" tsd-kind-module"><a href="modules/interfaces_Request_transactionCreate.html">interfaces/<wbr/>Request/transaction<wbr/>Create</a></li><li class=" tsd-kind-module"><a href="modules/interfaces_Response.html">interfaces/<wbr/>Response</a></li><li class=" tsd-kind-module"><a href="modules/interfaces_Response_transactionCommit.html">interfaces/<wbr/>Response/transaction<wbr/>Commit</a></li><li class=" tsd-kind-module"><a href="modules/interfaces_Response_transactionCreate.html">interfaces/<wbr/>Response/transaction<wbr/>Create</a></li><li class=" tsd-kind-module"><a href="modules/interfaces_Response_transactionStatus.html">interfaces/<wbr/>Response/transaction<wbr/>Status</a></li><li class=" tsd-kind-module"><a href="modules/interfaces.html">interfaces</a></li><li class=" tsd-kind-module"><a href="modules/modules_webpayPlus_transaction.html">modules/webpay<wbr/>Plus/transaction</a></li></ul></nav></div></div></div><footer class="with-border-bottom"><div class="container"><h2>Legend</h2><div class="tsd-legend-group"><ul class="tsd-legend"><li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li></ul></div><h2>Settings</h2><p>Theme <select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></p></div></footer><div class="container tsd-generator"><p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div><div class="overlay"></div><script src="assets/main.js"></script></body></html>
2 changes: 1 addition & 1 deletion docs/interfaces/interfaces_Error.IErrorResponse.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>IErrorResponse | transbank-sdk-node</title><meta name="description" content="Documentation for transbank-sdk-node"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.body.classList.add(localStorage.getItem("tsd-theme") || "os")</script><header><div class="tsd-page-toolbar"><div class="container"><div class="table-wrap"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption">Search</label><input type="text" id="tsd-search-field"/></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">transbank-sdk-node</a></div><div class="table-cell" id="tsd-widgets"><div id="tsd-filter"><a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a><div class="tsd-filter-group"><div class="tsd-select" id="tsd-filter-visibility"><span class="tsd-select-label">All</span><ul class="tsd-select-list"><li data-value="public">Public</li><li data-value="protected">Public/Protected</li><li data-value="private" class="selected">All</li></ul></div> <input type="checkbox" id="tsd-filter-inherited" checked/><label class="tsd-widget" for="tsd-filter-inherited">Inherited</label><input type="checkbox" id="tsd-filter-externals" checked/><label class="tsd-widget" for="tsd-filter-externals">Externals</label></div></div><a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a></div></div></div></div><div class="tsd-page-title"><div class="container"><ul class="tsd-breadcrumb"><li><a href="../modules.html">transbank-sdk-node</a></li><li><a href="../modules/interfaces_Error.html">interfaces/Error</a></li><li><a href="interfaces_Error.IErrorResponse.html">IErrorResponse</a></li></ul><h1>Interface IErrorResponse</h1></div></div></header><div class="container container-main"><div class="row"><div class="col-8 col-content"><section class="tsd-panel tsd-hierarchy"><h3>Hierarchy</h3><ul class="tsd-hierarchy"><li><span class="target">IErrorResponse</span></li></ul></section><section class="tsd-panel-group tsd-index-group"><h2>Index</h2><section class="tsd-panel tsd-index-panel"><div class="tsd-index-content"><section class="tsd-index-section "><h3>Properties</h3><ul class="tsd-index-list"><li class="tsd-kind-property tsd-parent-kind-interface"><a href="interfaces_Error.IErrorResponse.html#status" class="tsd-kind-icon">status</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="interfaces_Error.IErrorResponse.html#message" class="tsd-kind-icon">message</a></li></ul></section></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Properties</h2><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a id="status" class="tsd-anchor"></a><h3>status</h3><div class="tsd-signature tsd-kind-icon">status<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/42devs/transbank-sdk-node/blob/0a27cd4/src/interfaces/Error.ts#L2">interfaces/Error.ts:2</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a id="message" class="tsd-anchor"></a><h3>message</h3><div class="tsd-signature tsd-kind-icon">message<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/42devs/transbank-sdk-node/blob/0a27cd4/src/interfaces/Error.ts#L3">interfaces/Error.ts:3</a></li></ul></aside></section></section></div><div class="col-4 col-menu menu-sticky-wrap menu-highlight"><nav class="tsd-navigation primary"><ul><li class=""><a href="../modules.html">Modules</a></li><li class=" tsd-kind-module"><a href="../modules/index.html">index</a></li><li class="current tsd-kind-module"><a href="../modules/interfaces_Error.html">interfaces/<wbr/>Error</a></li><li class=" tsd-kind-module"><a href="../modules/interfaces_Headers.html">interfaces/<wbr/>Headers</a></li><li class=" tsd-kind-module"><a href="../modules/interfaces_Options.html">interfaces/<wbr/>Options</a></li><li class=" tsd-kind-module"><a href="../modules/interfaces_Request_CaptureRequestData.html">interfaces/<wbr/>Request/<wbr/>Capture<wbr/>Request<wbr/>Data</a></li><li class=" tsd-kind-module"><a href="../modules/interfaces_Request.html">interfaces/<wbr/>Request</a></li><li class=" tsd-kind-module"><a href="../modules/interfaces_Request_transactionCreate.html">interfaces/<wbr/>Request/transaction<wbr/>Create</a></li><li class=" tsd-kind-module"><a href="../modules/interfaces_Response.html">interfaces/<wbr/>Response</a></li><li class=" tsd-kind-module"><a href="../modules/interfaces_Response_transactionCreate.html">interfaces/<wbr/>Response/transaction<wbr/>Create</a></li><li class=" tsd-kind-module"><a href="../modules/interfaces.html">interfaces</a></li><li class=" tsd-kind-module"><a href="../modules/modules_webpayPlus_transaction.html">modules/webpay<wbr/>Plus/transaction</a></li></ul></nav><nav class="tsd-navigation secondary menu-sticky"><ul><li class="current tsd-kind-interface tsd-parent-kind-module"><a href="interfaces_Error.IErrorResponse.html" class="tsd-kind-icon">IError<wbr/>Response</a><ul><li class="tsd-kind-property tsd-parent-kind-interface"><a href="interfaces_Error.IErrorResponse.html#status" class="tsd-kind-icon">status</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="interfaces_Error.IErrorResponse.html#message" class="tsd-kind-icon">message</a></li></ul></li></ul></nav></div></div></div><footer class="with-border-bottom"><div class="container"><h2>Legend</h2><div class="tsd-legend-group"><ul class="tsd-legend"><li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li><li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li></ul></div><h2>Settings</h2><p>Theme <select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></p></div></footer><div class="container tsd-generator"><p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div><div class="overlay"></div><script src="../assets/main.js"></script></body></html>
<!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>IErrorResponse | transbank-sdk-node</title><meta name="description" content="Documentation for transbank-sdk-node"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.body.classList.add(localStorage.getItem("tsd-theme") || "os")</script><header><div class="tsd-page-toolbar"><div class="container"><div class="table-wrap"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption">Search</label><input type="text" id="tsd-search-field"/></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">transbank-sdk-node</a></div><div class="table-cell" id="tsd-widgets"><div id="tsd-filter"><a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a><div class="tsd-filter-group"><div class="tsd-select" id="tsd-filter-visibility"><span class="tsd-select-label">All</span><ul class="tsd-select-list"><li data-value="public">Public</li><li data-value="protected">Public/Protected</li><li data-value="private" class="selected">All</li></ul></div> <input type="checkbox" id="tsd-filter-inherited" checked/><label class="tsd-widget" for="tsd-filter-inherited">Inherited</label><input type="checkbox" id="tsd-filter-externals" checked/><label class="tsd-widget" for="tsd-filter-externals">Externals</label></div></div><a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a></div></div></div></div><div class="tsd-page-title"><div class="container"><ul class="tsd-breadcrumb"><li><a href="../modules.html">transbank-sdk-node</a></li><li><a href="../modules/interfaces_Error.html">interfaces/Error</a></li><li><a href="interfaces_Error.IErrorResponse.html">IErrorResponse</a></li></ul><h1>Interface IErrorResponse</h1></div></div></header><div class="container container-main"><div class="row"><div class="col-8 col-content"><section class="tsd-panel tsd-hierarchy"><h3>Hierarchy</h3><ul class="tsd-hierarchy"><li><span class="target">IErrorResponse</span></li></ul></section><section class="tsd-panel-group tsd-index-group"><h2>Index</h2><section class="tsd-panel tsd-index-panel"><div class="tsd-index-content"><section class="tsd-index-section "><h3>Properties</h3><ul class="tsd-index-list"><li class="tsd-kind-property tsd-parent-kind-interface"><a href="interfaces_Error.IErrorResponse.html#status" class="tsd-kind-icon">status</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="interfaces_Error.IErrorResponse.html#message" class="tsd-kind-icon">message</a></li></ul></section></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Properties</h2><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a id="status" class="tsd-anchor"></a><h3>status</h3><div class="tsd-signature tsd-kind-icon">status<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/42devs/transbank-sdk-node/blob/98df836/src/interfaces/Error.ts#L2">interfaces/Error.ts:2</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a id="message" class="tsd-anchor"></a><h3>message</h3><div class="tsd-signature tsd-kind-icon">message<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/42devs/transbank-sdk-node/blob/98df836/src/interfaces/Error.ts#L3">interfaces/Error.ts:3</a></li></ul></aside></section></section></div><div class="col-4 col-menu menu-sticky-wrap menu-highlight"><nav class="tsd-navigation primary"><ul><li class=""><a href="../modules.html">Modules</a></li><li class=" tsd-kind-module"><a href="../modules/index.html">index</a></li><li class="current tsd-kind-module"><a href="../modules/interfaces_Error.html">interfaces/<wbr/>Error</a></li><li class=" tsd-kind-module"><a href="../modules/interfaces_Headers.html">interfaces/<wbr/>Headers</a></li><li class=" tsd-kind-module"><a href="../modules/interfaces_Options.html">interfaces/<wbr/>Options</a></li><li class=" tsd-kind-module"><a href="../modules/interfaces_Request_CaptureRequestData.html">interfaces/<wbr/>Request/<wbr/>Capture<wbr/>Request<wbr/>Data</a></li><li class=" tsd-kind-module"><a href="../modules/interfaces_Request.html">interfaces/<wbr/>Request</a></li><li class=" tsd-kind-module"><a href="../modules/interfaces_Request_transactionCreate.html">interfaces/<wbr/>Request/transaction<wbr/>Create</a></li><li class=" tsd-kind-module"><a href="../modules/interfaces_Response.html">interfaces/<wbr/>Response</a></li><li class=" tsd-kind-module"><a href="../modules/interfaces_Response_transactionCommit.html">interfaces/<wbr/>Response/transaction<wbr/>Commit</a></li><li class=" tsd-kind-module"><a href="../modules/interfaces_Response_transactionCreate.html">interfaces/<wbr/>Response/transaction<wbr/>Create</a></li><li class=" tsd-kind-module"><a href="../modules/interfaces_Response_transactionStatus.html">interfaces/<wbr/>Response/transaction<wbr/>Status</a></li><li class=" tsd-kind-module"><a href="../modules/interfaces.html">interfaces</a></li><li class=" tsd-kind-module"><a href="../modules/modules_webpayPlus_transaction.html">modules/webpay<wbr/>Plus/transaction</a></li></ul></nav><nav class="tsd-navigation secondary menu-sticky"><ul><li class="current tsd-kind-interface tsd-parent-kind-module"><a href="interfaces_Error.IErrorResponse.html" class="tsd-kind-icon">IError<wbr/>Response</a><ul><li class="tsd-kind-property tsd-parent-kind-interface"><a href="interfaces_Error.IErrorResponse.html#status" class="tsd-kind-icon">status</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="interfaces_Error.IErrorResponse.html#message" class="tsd-kind-icon">message</a></li></ul></li></ul></nav></div></div></div><footer class="with-border-bottom"><div class="container"><h2>Legend</h2><div class="tsd-legend-group"><ul class="tsd-legend"><li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li><li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li></ul></div><h2>Settings</h2><p>Theme <select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></p></div></footer><div class="container tsd-generator"><p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div><div class="overlay"></div><script src="../assets/main.js"></script></body></html>
Loading

0 comments on commit 3fa7cba

Please sign in to comment.