From 3fa7cba9c07bc338113ba38c007cedb99f175ceb Mon Sep 17 00:00:00 2001 From: Nicolas Martinez V Date: Wed, 15 Dec 2021 17:44:49 -0300 Subject: [PATCH] feat: add recursive parse to camel and back to snake --- CHANGELOG.md | 1 + docs/assets/search.js | 2 +- docs/index.html | 2 +- .../interfaces_Error.IErrorResponse.html | 2 +- .../interfaces_Headers.IHeaders.html | 2 +- .../interfaces_Options.IOptions.html | 2 +- .../interfaces_Request.IRequest.html | 2 +- ...aptureRequestData.ICaptureRequestData.html | 2 +- ...ctionCreate.ITransactionCreateRequest.html | 2 +- .../interfaces_Response.IResponse.html | 2 +- ...tionCommit.ITransactionCommitResponse.html | 1 + ...tionCreate.ITransactionCreateResponse.html | 2 +- ...tionStatus.ITransactionStatusResponse.html | 1 + docs/modules.html | 2 +- docs/modules/index.html | 2 +- docs/modules/interfaces.html | 2 +- docs/modules/interfaces_Error.html | 2 +- docs/modules/interfaces_Headers.html | 2 +- docs/modules/interfaces_Options.html | 2 +- docs/modules/interfaces_Request.html | 2 +- ...interfaces_Request_CaptureRequestData.html | 2 +- .../interfaces_Request_transactionCreate.html | 2 +- docs/modules/interfaces_Response.html | 2 +- ...interfaces_Response_transactionCommit.html | 1 + ...interfaces_Response_transactionCreate.html | 2 +- ...interfaces_Response_transactionStatus.html | 1 + .../modules_webpayPlus_transaction.html | 6 +++-- src/utils/request.ts | 7 +++--- src/utils/stringFunctions.ts | 22 +++++++++++++++++++ 29 files changed, 56 insertions(+), 26 deletions(-) create mode 100644 docs/interfaces/interfaces_Response_transactionCommit.ITransactionCommitResponse.html create mode 100644 docs/interfaces/interfaces_Response_transactionStatus.ITransactionStatusResponse.html create mode 100644 docs/modules/interfaces_Response_transactionCommit.html create mode 100644 docs/modules/interfaces_Response_transactionStatus.html diff --git a/CHANGELOG.md b/CHANGELOG.md index 488ec8b..2e3f8f0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/docs/assets/search.js b/docs/assets/search.js index 911b01f..1eaa03a 100644 --- a/docs/assets/search.js +++ b/docs/assets/search.js @@ -1 +1 @@ -window.searchData = {"kinds":{"2":"Module","64":"Function","256":"Interface","1024":"Property","16777216":"Reference"},"rows":[{"id":0,"kind":2,"name":"index","url":"modules/index.html","classes":"tsd-kind-module"},{"id":1,"kind":2,"name":"interfaces/Error","url":"modules/interfaces_Error.html","classes":"tsd-kind-module"},{"id":2,"kind":256,"name":"IErrorResponse","url":"interfaces/interfaces_Error.IErrorResponse.html","classes":"tsd-kind-interface tsd-parent-kind-module","parent":"interfaces/Error"},{"id":3,"kind":1024,"name":"status","url":"interfaces/interfaces_Error.IErrorResponse.html#status","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Error.IErrorResponse"},{"id":4,"kind":1024,"name":"message","url":"interfaces/interfaces_Error.IErrorResponse.html#message","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Error.IErrorResponse"},{"id":5,"kind":2,"name":"interfaces/Headers","url":"modules/interfaces_Headers.html","classes":"tsd-kind-module"},{"id":6,"kind":256,"name":"IHeaders","url":"interfaces/interfaces_Headers.IHeaders.html","classes":"tsd-kind-interface tsd-parent-kind-module","parent":"interfaces/Headers"},{"id":7,"kind":1024,"name":"Content-Type","url":"interfaces/interfaces_Headers.IHeaders.html#Content_Type","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Headers.IHeaders"},{"id":8,"kind":1024,"name":"Content-Length","url":"interfaces/interfaces_Headers.IHeaders.html#Content_Length","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Headers.IHeaders"},{"id":9,"kind":1024,"name":"Tbk-Api-Key-Id","url":"interfaces/interfaces_Headers.IHeaders.html#Tbk_Api_Key_Id","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Headers.IHeaders"},{"id":10,"kind":1024,"name":"Tbk-Api-Key-Secret","url":"interfaces/interfaces_Headers.IHeaders.html#Tbk_Api_Key_Secret","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Headers.IHeaders"},{"id":11,"kind":2,"name":"interfaces/Options","url":"modules/interfaces_Options.html","classes":"tsd-kind-module"},{"id":12,"kind":256,"name":"IOptions","url":"interfaces/interfaces_Options.IOptions.html","classes":"tsd-kind-interface tsd-parent-kind-module","parent":"interfaces/Options"},{"id":13,"kind":1024,"name":"commerceCode","url":"interfaces/interfaces_Options.IOptions.html#commerceCode","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Options.IOptions"},{"id":14,"kind":1024,"name":"apiKey","url":"interfaces/interfaces_Options.IOptions.html#apiKey","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Options.IOptions"},{"id":15,"kind":1024,"name":"environment","url":"interfaces/interfaces_Options.IOptions.html#environment","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Options.IOptions"},{"id":16,"kind":2,"name":"interfaces/Request/CaptureRequestData","url":"modules/interfaces_Request_CaptureRequestData.html","classes":"tsd-kind-module"},{"id":17,"kind":256,"name":"ICaptureRequestData","url":"interfaces/interfaces_Request_CaptureRequestData.ICaptureRequestData.html","classes":"tsd-kind-interface tsd-parent-kind-module","parent":"interfaces/Request/CaptureRequestData"},{"id":18,"kind":1024,"name":"buyOrder","url":"interfaces/interfaces_Request_CaptureRequestData.ICaptureRequestData.html#buyOrder","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Request/CaptureRequestData.ICaptureRequestData"},{"id":19,"kind":1024,"name":"sessionId","url":"interfaces/interfaces_Request_CaptureRequestData.ICaptureRequestData.html#sessionId","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Request/CaptureRequestData.ICaptureRequestData"},{"id":20,"kind":1024,"name":"amount","url":"interfaces/interfaces_Request_CaptureRequestData.ICaptureRequestData.html#amount","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Request/CaptureRequestData.ICaptureRequestData"},{"id":21,"kind":1024,"name":"returnUrl","url":"interfaces/interfaces_Request_CaptureRequestData.ICaptureRequestData.html#returnUrl","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Request/CaptureRequestData.ICaptureRequestData"},{"id":22,"kind":2,"name":"interfaces/Request","url":"modules/interfaces_Request.html","classes":"tsd-kind-module"},{"id":23,"kind":256,"name":"IRequest","url":"interfaces/interfaces_Request.IRequest.html","classes":"tsd-kind-interface tsd-parent-kind-module","parent":"interfaces/Request"},{"id":24,"kind":1024,"name":"method","url":"interfaces/interfaces_Request.IRequest.html#method","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Request.IRequest"},{"id":25,"kind":1024,"name":"path","url":"interfaces/interfaces_Request.IRequest.html#path","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Request.IRequest"},{"id":26,"kind":1024,"name":"headers","url":"interfaces/interfaces_Request.IRequest.html#headers","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Request.IRequest"},{"id":27,"kind":1024,"name":"body","url":"interfaces/interfaces_Request.IRequest.html#body","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Request.IRequest"},{"id":28,"kind":1024,"name":"url","url":"interfaces/interfaces_Request.IRequest.html#url","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Request.IRequest"},{"id":29,"kind":1024,"name":"timeout","url":"interfaces/interfaces_Request.IRequest.html#timeout","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Request.IRequest"},{"id":30,"kind":2,"name":"interfaces/Request/transactionCreate","url":"modules/interfaces_Request_transactionCreate.html","classes":"tsd-kind-module"},{"id":31,"kind":256,"name":"ITransactionCreateRequest","url":"interfaces/interfaces_Request_transactionCreate.ITransactionCreateRequest.html","classes":"tsd-kind-interface tsd-parent-kind-module","parent":"interfaces/Request/transactionCreate"},{"id":32,"kind":1024,"name":"buyOrder","url":"interfaces/interfaces_Request_transactionCreate.ITransactionCreateRequest.html#buyOrder","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Request/transactionCreate.ITransactionCreateRequest"},{"id":33,"kind":1024,"name":"sessionId","url":"interfaces/interfaces_Request_transactionCreate.ITransactionCreateRequest.html#sessionId","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Request/transactionCreate.ITransactionCreateRequest"},{"id":34,"kind":1024,"name":"amount","url":"interfaces/interfaces_Request_transactionCreate.ITransactionCreateRequest.html#amount","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Request/transactionCreate.ITransactionCreateRequest"},{"id":35,"kind":1024,"name":"returnUrl","url":"interfaces/interfaces_Request_transactionCreate.ITransactionCreateRequest.html#returnUrl","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Request/transactionCreate.ITransactionCreateRequest"},{"id":36,"kind":2,"name":"interfaces/Response","url":"modules/interfaces_Response.html","classes":"tsd-kind-module"},{"id":37,"kind":256,"name":"IResponse","url":"interfaces/interfaces_Response.IResponse.html","classes":"tsd-kind-interface tsd-parent-kind-module","parent":"interfaces/Response"},{"id":38,"kind":1024,"name":"status","url":"interfaces/interfaces_Response.IResponse.html#status","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Response.IResponse"},{"id":39,"kind":1024,"name":"data","url":"interfaces/interfaces_Response.IResponse.html#data","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Response.IResponse"},{"id":40,"kind":2,"name":"interfaces/Response/transactionCreate","url":"modules/interfaces_Response_transactionCreate.html","classes":"tsd-kind-module"},{"id":41,"kind":256,"name":"ITransactionCreateResponse","url":"interfaces/interfaces_Response_transactionCreate.ITransactionCreateResponse.html","classes":"tsd-kind-interface tsd-parent-kind-module","parent":"interfaces/Response/transactionCreate"},{"id":42,"kind":1024,"name":"token","url":"interfaces/interfaces_Response_transactionCreate.ITransactionCreateResponse.html#token","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Response/transactionCreate.ITransactionCreateResponse"},{"id":43,"kind":1024,"name":"url","url":"interfaces/interfaces_Response_transactionCreate.ITransactionCreateResponse.html#url","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Response/transactionCreate.ITransactionCreateResponse"},{"id":44,"kind":2,"name":"interfaces","url":"modules/interfaces.html","classes":"tsd-kind-module"},{"id":45,"kind":2,"name":"modules/webpayPlus/transaction","url":"modules/modules_webpayPlus_transaction.html","classes":"tsd-kind-module"},{"id":46,"kind":64,"name":"create","url":"modules/modules_webpayPlus_transaction.html#create","classes":"tsd-kind-function tsd-parent-kind-module","parent":"modules/webpayPlus/transaction"},{"id":47,"kind":16777216,"name":"Transaction","url":"modules/index.html#Transaction","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"index"},{"id":48,"kind":16777216,"name":"IRequest","url":"modules/interfaces.html#IRequest","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"interfaces"},{"id":49,"kind":16777216,"name":"IResponse","url":"modules/interfaces.html#IResponse","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"interfaces"},{"id":50,"kind":16777216,"name":"IHeaders","url":"modules/interfaces.html#IHeaders","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"interfaces"},{"id":51,"kind":16777216,"name":"IOptions","url":"modules/interfaces.html#IOptions","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"interfaces"},{"id":52,"kind":16777216,"name":"IErrorResponse","url":"modules/interfaces.html#IErrorResponse","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"interfaces"},{"id":53,"kind":16777216,"name":"ITransactionCreateResponse","url":"modules/interfaces.html#ITransactionCreateResponse","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"interfaces"}],"index":{"version":"2.3.9","fields":["name","parent"],"fieldVectors":[["name/0",[0,32.633]],["parent/0",[]],["name/1",[1,32.633]],["parent/1",[]],["name/2",[2,32.633]],["parent/2",[1,2.798]],["name/3",[3,32.633]],["parent/3",[4,2.798]],["name/4",[5,38.026]],["parent/4",[4,2.798]],["name/5",[6,32.633]],["parent/5",[]],["name/6",[7,32.633]],["parent/6",[6,2.798]],["name/7",[8,23.713,9,27.632]],["parent/7",[10,2.266]],["name/8",[8,23.713,11,27.632]],["parent/8",[10,2.266]],["name/9",[12,15.332,13,15.332,14,15.332,15,17.865]],["parent/9",[10,2.266]],["name/10",[12,15.332,13,15.332,14,15.332,16,17.865]],["parent/10",[10,2.266]],["name/11",[17,32.633]],["parent/11",[]],["name/12",[18,32.633]],["parent/12",[17,2.798]],["name/13",[19,38.026]],["parent/13",[20,2.494]],["name/14",[21,38.026]],["parent/14",[20,2.494]],["name/15",[22,38.026]],["parent/15",[20,2.494]],["name/16",[23,32.633]],["parent/16",[]],["name/17",[24,38.026]],["parent/17",[23,2.798]],["name/18",[25,32.633]],["parent/18",[26,2.266]],["name/19",[27,32.633]],["parent/19",[26,2.266]],["name/20",[28,32.633]],["parent/20",[26,2.266]],["name/21",[29,32.633]],["parent/21",[26,2.266]],["name/22",[30,32.633]],["parent/22",[]],["name/23",[31,32.633]],["parent/23",[30,2.798]],["name/24",[32,38.026]],["parent/24",[33,1.933]],["name/25",[34,38.026]],["parent/25",[33,1.933]],["name/26",[35,38.026]],["parent/26",[33,1.933]],["name/27",[36,38.026]],["parent/27",[33,1.933]],["name/28",[37,32.633]],["parent/28",[33,1.933]],["name/29",[38,38.026]],["parent/29",[33,1.933]],["name/30",[39,32.633]],["parent/30",[]],["name/31",[40,38.026]],["parent/31",[39,2.798]],["name/32",[25,32.633]],["parent/32",[41,2.266]],["name/33",[27,32.633]],["parent/33",[41,2.266]],["name/34",[28,32.633]],["parent/34",[41,2.266]],["name/35",[29,32.633]],["parent/35",[41,2.266]],["name/36",[42,32.633]],["parent/36",[]],["name/37",[43,32.633]],["parent/37",[42,2.798]],["name/38",[3,32.633]],["parent/38",[44,2.798]],["name/39",[45,38.026]],["parent/39",[44,2.798]],["name/40",[46,32.633]],["parent/40",[]],["name/41",[47,32.633]],["parent/41",[46,2.798]],["name/42",[48,38.026]],["parent/42",[49,2.798]],["name/43",[37,32.633]],["parent/43",[49,2.798]],["name/44",[50,21.035]],["parent/44",[]],["name/45",[51,32.633]],["parent/45",[]],["name/46",[52,38.026]],["parent/46",[51,2.798]],["name/47",[53,38.026]],["parent/47",[0,2.798]],["name/48",[31,32.633]],["parent/48",[50,1.804]],["name/49",[43,32.633]],["parent/49",[50,1.804]],["name/50",[7,32.633]],["parent/50",[50,1.804]],["name/51",[18,32.633]],["parent/51",[50,1.804]],["name/52",[2,32.633]],["parent/52",[50,1.804]],["name/53",[47,32.633]],["parent/53",[50,1.804]]],"invertedIndex":[["amount",{"_index":28,"name":{"20":{},"34":{}},"parent":{}}],["api",{"_index":13,"name":{"9":{},"10":{}},"parent":{}}],["apikey",{"_index":21,"name":{"14":{}},"parent":{}}],["body",{"_index":36,"name":{"27":{}},"parent":{}}],["buyorder",{"_index":25,"name":{"18":{},"32":{}},"parent":{}}],["commercecode",{"_index":19,"name":{"13":{}},"parent":{}}],["content",{"_index":8,"name":{"7":{},"8":{}},"parent":{}}],["create",{"_index":52,"name":{"46":{}},"parent":{}}],["data",{"_index":45,"name":{"39":{}},"parent":{}}],["environment",{"_index":22,"name":{"15":{}},"parent":{}}],["headers",{"_index":35,"name":{"26":{}},"parent":{}}],["icapturerequestdata",{"_index":24,"name":{"17":{}},"parent":{}}],["id",{"_index":15,"name":{"9":{}},"parent":{}}],["ierrorresponse",{"_index":2,"name":{"2":{},"52":{}},"parent":{}}],["iheaders",{"_index":7,"name":{"6":{},"50":{}},"parent":{}}],["index",{"_index":0,"name":{"0":{}},"parent":{"47":{}}}],["interfaces",{"_index":50,"name":{"44":{}},"parent":{"48":{},"49":{},"50":{},"51":{},"52":{},"53":{}}}],["interfaces/error",{"_index":1,"name":{"1":{}},"parent":{"2":{}}}],["interfaces/error.ierrorresponse",{"_index":4,"name":{},"parent":{"3":{},"4":{}}}],["interfaces/headers",{"_index":6,"name":{"5":{}},"parent":{"6":{}}}],["interfaces/headers.iheaders",{"_index":10,"name":{},"parent":{"7":{},"8":{},"9":{},"10":{}}}],["interfaces/options",{"_index":17,"name":{"11":{}},"parent":{"12":{}}}],["interfaces/options.ioptions",{"_index":20,"name":{},"parent":{"13":{},"14":{},"15":{}}}],["interfaces/request",{"_index":30,"name":{"22":{}},"parent":{"23":{}}}],["interfaces/request.irequest",{"_index":33,"name":{},"parent":{"24":{},"25":{},"26":{},"27":{},"28":{},"29":{}}}],["interfaces/request/capturerequestdata",{"_index":23,"name":{"16":{}},"parent":{"17":{}}}],["interfaces/request/capturerequestdata.icapturerequestdata",{"_index":26,"name":{},"parent":{"18":{},"19":{},"20":{},"21":{}}}],["interfaces/request/transactioncreate",{"_index":39,"name":{"30":{}},"parent":{"31":{}}}],["interfaces/request/transactioncreate.itransactioncreaterequest",{"_index":41,"name":{},"parent":{"32":{},"33":{},"34":{},"35":{}}}],["interfaces/response",{"_index":42,"name":{"36":{}},"parent":{"37":{}}}],["interfaces/response.iresponse",{"_index":44,"name":{},"parent":{"38":{},"39":{}}}],["interfaces/response/transactioncreate",{"_index":46,"name":{"40":{}},"parent":{"41":{}}}],["interfaces/response/transactioncreate.itransactioncreateresponse",{"_index":49,"name":{},"parent":{"42":{},"43":{}}}],["ioptions",{"_index":18,"name":{"12":{},"51":{}},"parent":{}}],["irequest",{"_index":31,"name":{"23":{},"48":{}},"parent":{}}],["iresponse",{"_index":43,"name":{"37":{},"49":{}},"parent":{}}],["itransactioncreaterequest",{"_index":40,"name":{"31":{}},"parent":{}}],["itransactioncreateresponse",{"_index":47,"name":{"41":{},"53":{}},"parent":{}}],["key",{"_index":14,"name":{"9":{},"10":{}},"parent":{}}],["length",{"_index":11,"name":{"8":{}},"parent":{}}],["message",{"_index":5,"name":{"4":{}},"parent":{}}],["method",{"_index":32,"name":{"24":{}},"parent":{}}],["modules/webpayplus/transaction",{"_index":51,"name":{"45":{}},"parent":{"46":{}}}],["path",{"_index":34,"name":{"25":{}},"parent":{}}],["returnurl",{"_index":29,"name":{"21":{},"35":{}},"parent":{}}],["secret",{"_index":16,"name":{"10":{}},"parent":{}}],["sessionid",{"_index":27,"name":{"19":{},"33":{}},"parent":{}}],["status",{"_index":3,"name":{"3":{},"38":{}},"parent":{}}],["tbk",{"_index":12,"name":{"9":{},"10":{}},"parent":{}}],["timeout",{"_index":38,"name":{"29":{}},"parent":{}}],["token",{"_index":48,"name":{"42":{}},"parent":{}}],["transaction",{"_index":53,"name":{"47":{}},"parent":{}}],["type",{"_index":9,"name":{"7":{}},"parent":{}}],["url",{"_index":37,"name":{"28":{},"43":{}},"parent":{}}]],"pipeline":[]}} \ No newline at end of file +window.searchData = {"kinds":{"2":"Module","64":"Function","256":"Interface","1024":"Property","16777216":"Reference"},"rows":[{"id":0,"kind":2,"name":"index","url":"modules/index.html","classes":"tsd-kind-module"},{"id":1,"kind":2,"name":"interfaces/Error","url":"modules/interfaces_Error.html","classes":"tsd-kind-module"},{"id":2,"kind":256,"name":"IErrorResponse","url":"interfaces/interfaces_Error.IErrorResponse.html","classes":"tsd-kind-interface tsd-parent-kind-module","parent":"interfaces/Error"},{"id":3,"kind":1024,"name":"status","url":"interfaces/interfaces_Error.IErrorResponse.html#status","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Error.IErrorResponse"},{"id":4,"kind":1024,"name":"message","url":"interfaces/interfaces_Error.IErrorResponse.html#message","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Error.IErrorResponse"},{"id":5,"kind":2,"name":"interfaces/Headers","url":"modules/interfaces_Headers.html","classes":"tsd-kind-module"},{"id":6,"kind":256,"name":"IHeaders","url":"interfaces/interfaces_Headers.IHeaders.html","classes":"tsd-kind-interface tsd-parent-kind-module","parent":"interfaces/Headers"},{"id":7,"kind":1024,"name":"Content-Type","url":"interfaces/interfaces_Headers.IHeaders.html#Content_Type","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Headers.IHeaders"},{"id":8,"kind":1024,"name":"Content-Length","url":"interfaces/interfaces_Headers.IHeaders.html#Content_Length","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Headers.IHeaders"},{"id":9,"kind":1024,"name":"Tbk-Api-Key-Id","url":"interfaces/interfaces_Headers.IHeaders.html#Tbk_Api_Key_Id","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Headers.IHeaders"},{"id":10,"kind":1024,"name":"Tbk-Api-Key-Secret","url":"interfaces/interfaces_Headers.IHeaders.html#Tbk_Api_Key_Secret","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Headers.IHeaders"},{"id":11,"kind":2,"name":"interfaces/Options","url":"modules/interfaces_Options.html","classes":"tsd-kind-module"},{"id":12,"kind":256,"name":"IOptions","url":"interfaces/interfaces_Options.IOptions.html","classes":"tsd-kind-interface tsd-parent-kind-module","parent":"interfaces/Options"},{"id":13,"kind":1024,"name":"commerceCode","url":"interfaces/interfaces_Options.IOptions.html#commerceCode","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Options.IOptions"},{"id":14,"kind":1024,"name":"apiKey","url":"interfaces/interfaces_Options.IOptions.html#apiKey","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Options.IOptions"},{"id":15,"kind":1024,"name":"environment","url":"interfaces/interfaces_Options.IOptions.html#environment","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Options.IOptions"},{"id":16,"kind":2,"name":"interfaces/Request/CaptureRequestData","url":"modules/interfaces_Request_CaptureRequestData.html","classes":"tsd-kind-module"},{"id":17,"kind":256,"name":"ICaptureRequestData","url":"interfaces/interfaces_Request_CaptureRequestData.ICaptureRequestData.html","classes":"tsd-kind-interface tsd-parent-kind-module","parent":"interfaces/Request/CaptureRequestData"},{"id":18,"kind":1024,"name":"buyOrder","url":"interfaces/interfaces_Request_CaptureRequestData.ICaptureRequestData.html#buyOrder","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Request/CaptureRequestData.ICaptureRequestData"},{"id":19,"kind":1024,"name":"sessionId","url":"interfaces/interfaces_Request_CaptureRequestData.ICaptureRequestData.html#sessionId","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Request/CaptureRequestData.ICaptureRequestData"},{"id":20,"kind":1024,"name":"amount","url":"interfaces/interfaces_Request_CaptureRequestData.ICaptureRequestData.html#amount","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Request/CaptureRequestData.ICaptureRequestData"},{"id":21,"kind":1024,"name":"returnUrl","url":"interfaces/interfaces_Request_CaptureRequestData.ICaptureRequestData.html#returnUrl","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Request/CaptureRequestData.ICaptureRequestData"},{"id":22,"kind":2,"name":"interfaces/Request","url":"modules/interfaces_Request.html","classes":"tsd-kind-module"},{"id":23,"kind":256,"name":"IRequest","url":"interfaces/interfaces_Request.IRequest.html","classes":"tsd-kind-interface tsd-parent-kind-module","parent":"interfaces/Request"},{"id":24,"kind":1024,"name":"method","url":"interfaces/interfaces_Request.IRequest.html#method","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Request.IRequest"},{"id":25,"kind":1024,"name":"path","url":"interfaces/interfaces_Request.IRequest.html#path","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Request.IRequest"},{"id":26,"kind":1024,"name":"headers","url":"interfaces/interfaces_Request.IRequest.html#headers","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Request.IRequest"},{"id":27,"kind":1024,"name":"body","url":"interfaces/interfaces_Request.IRequest.html#body","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Request.IRequest"},{"id":28,"kind":1024,"name":"url","url":"interfaces/interfaces_Request.IRequest.html#url","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Request.IRequest"},{"id":29,"kind":1024,"name":"timeout","url":"interfaces/interfaces_Request.IRequest.html#timeout","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Request.IRequest"},{"id":30,"kind":2,"name":"interfaces/Request/transactionCreate","url":"modules/interfaces_Request_transactionCreate.html","classes":"tsd-kind-module"},{"id":31,"kind":256,"name":"ITransactionCreateRequest","url":"interfaces/interfaces_Request_transactionCreate.ITransactionCreateRequest.html","classes":"tsd-kind-interface tsd-parent-kind-module","parent":"interfaces/Request/transactionCreate"},{"id":32,"kind":1024,"name":"buyOrder","url":"interfaces/interfaces_Request_transactionCreate.ITransactionCreateRequest.html#buyOrder","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Request/transactionCreate.ITransactionCreateRequest"},{"id":33,"kind":1024,"name":"sessionId","url":"interfaces/interfaces_Request_transactionCreate.ITransactionCreateRequest.html#sessionId","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Request/transactionCreate.ITransactionCreateRequest"},{"id":34,"kind":1024,"name":"amount","url":"interfaces/interfaces_Request_transactionCreate.ITransactionCreateRequest.html#amount","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Request/transactionCreate.ITransactionCreateRequest"},{"id":35,"kind":1024,"name":"returnUrl","url":"interfaces/interfaces_Request_transactionCreate.ITransactionCreateRequest.html#returnUrl","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Request/transactionCreate.ITransactionCreateRequest"},{"id":36,"kind":2,"name":"interfaces/Response","url":"modules/interfaces_Response.html","classes":"tsd-kind-module"},{"id":37,"kind":256,"name":"IResponse","url":"interfaces/interfaces_Response.IResponse.html","classes":"tsd-kind-interface tsd-parent-kind-module","parent":"interfaces/Response"},{"id":38,"kind":1024,"name":"status","url":"interfaces/interfaces_Response.IResponse.html#status","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Response.IResponse"},{"id":39,"kind":1024,"name":"data","url":"interfaces/interfaces_Response.IResponse.html#data","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Response.IResponse"},{"id":40,"kind":2,"name":"interfaces/Response/transactionCommit","url":"modules/interfaces_Response_transactionCommit.html","classes":"tsd-kind-module"},{"id":41,"kind":256,"name":"ITransactionCommitResponse","url":"interfaces/interfaces_Response_transactionCommit.ITransactionCommitResponse.html","classes":"tsd-kind-interface tsd-parent-kind-module","parent":"interfaces/Response/transactionCommit"},{"id":42,"kind":1024,"name":"vci","url":"interfaces/interfaces_Response_transactionCommit.ITransactionCommitResponse.html#vci","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"interfaces/Response/transactionCommit.ITransactionCommitResponse"},{"id":43,"kind":1024,"name":"amount","url":"interfaces/interfaces_Response_transactionCommit.ITransactionCommitResponse.html#amount","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"interfaces/Response/transactionCommit.ITransactionCommitResponse"},{"id":44,"kind":1024,"name":"status","url":"interfaces/interfaces_Response_transactionCommit.ITransactionCommitResponse.html#status","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"interfaces/Response/transactionCommit.ITransactionCommitResponse"},{"id":45,"kind":1024,"name":"buyOrder","url":"interfaces/interfaces_Response_transactionCommit.ITransactionCommitResponse.html#buyOrder","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"interfaces/Response/transactionCommit.ITransactionCommitResponse"},{"id":46,"kind":1024,"name":"sessionId","url":"interfaces/interfaces_Response_transactionCommit.ITransactionCommitResponse.html#sessionId","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"interfaces/Response/transactionCommit.ITransactionCommitResponse"},{"id":47,"kind":1024,"name":"cardDetail","url":"interfaces/interfaces_Response_transactionCommit.ITransactionCommitResponse.html#cardDetail","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"interfaces/Response/transactionCommit.ITransactionCommitResponse"},{"id":48,"kind":1024,"name":"accountingDate","url":"interfaces/interfaces_Response_transactionCommit.ITransactionCommitResponse.html#accountingDate","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"interfaces/Response/transactionCommit.ITransactionCommitResponse"},{"id":49,"kind":1024,"name":"transactionDate","url":"interfaces/interfaces_Response_transactionCommit.ITransactionCommitResponse.html#transactionDate","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"interfaces/Response/transactionCommit.ITransactionCommitResponse"},{"id":50,"kind":1024,"name":"authorizationCode","url":"interfaces/interfaces_Response_transactionCommit.ITransactionCommitResponse.html#authorizationCode","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"interfaces/Response/transactionCommit.ITransactionCommitResponse"},{"id":51,"kind":1024,"name":"paymentTypeCode","url":"interfaces/interfaces_Response_transactionCommit.ITransactionCommitResponse.html#paymentTypeCode","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"interfaces/Response/transactionCommit.ITransactionCommitResponse"},{"id":52,"kind":1024,"name":"responseCode","url":"interfaces/interfaces_Response_transactionCommit.ITransactionCommitResponse.html#responseCode","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"interfaces/Response/transactionCommit.ITransactionCommitResponse"},{"id":53,"kind":1024,"name":"installmentsNumber","url":"interfaces/interfaces_Response_transactionCommit.ITransactionCommitResponse.html#installmentsNumber","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"interfaces/Response/transactionCommit.ITransactionCommitResponse"},{"id":54,"kind":1024,"name":"installmentsAmount","url":"interfaces/interfaces_Response_transactionCommit.ITransactionCommitResponse.html#installmentsAmount","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"interfaces/Response/transactionCommit.ITransactionCommitResponse"},{"id":55,"kind":1024,"name":"balance","url":"interfaces/interfaces_Response_transactionCommit.ITransactionCommitResponse.html#balance","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"interfaces/Response/transactionCommit.ITransactionCommitResponse"},{"id":56,"kind":2,"name":"interfaces/Response/transactionCreate","url":"modules/interfaces_Response_transactionCreate.html","classes":"tsd-kind-module"},{"id":57,"kind":256,"name":"ITransactionCreateResponse","url":"interfaces/interfaces_Response_transactionCreate.ITransactionCreateResponse.html","classes":"tsd-kind-interface tsd-parent-kind-module","parent":"interfaces/Response/transactionCreate"},{"id":58,"kind":1024,"name":"token","url":"interfaces/interfaces_Response_transactionCreate.ITransactionCreateResponse.html#token","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Response/transactionCreate.ITransactionCreateResponse"},{"id":59,"kind":1024,"name":"url","url":"interfaces/interfaces_Response_transactionCreate.ITransactionCreateResponse.html#url","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Response/transactionCreate.ITransactionCreateResponse"},{"id":60,"kind":2,"name":"interfaces/Response/transactionStatus","url":"modules/interfaces_Response_transactionStatus.html","classes":"tsd-kind-module"},{"id":61,"kind":256,"name":"ITransactionStatusResponse","url":"interfaces/interfaces_Response_transactionStatus.ITransactionStatusResponse.html","classes":"tsd-kind-interface tsd-parent-kind-module","parent":"interfaces/Response/transactionStatus"},{"id":62,"kind":1024,"name":"vci","url":"interfaces/interfaces_Response_transactionStatus.ITransactionStatusResponse.html#vci","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Response/transactionStatus.ITransactionStatusResponse"},{"id":63,"kind":1024,"name":"amount","url":"interfaces/interfaces_Response_transactionStatus.ITransactionStatusResponse.html#amount","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Response/transactionStatus.ITransactionStatusResponse"},{"id":64,"kind":1024,"name":"status","url":"interfaces/interfaces_Response_transactionStatus.ITransactionStatusResponse.html#status","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Response/transactionStatus.ITransactionStatusResponse"},{"id":65,"kind":1024,"name":"buyOrder","url":"interfaces/interfaces_Response_transactionStatus.ITransactionStatusResponse.html#buyOrder","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Response/transactionStatus.ITransactionStatusResponse"},{"id":66,"kind":1024,"name":"sessionId","url":"interfaces/interfaces_Response_transactionStatus.ITransactionStatusResponse.html#sessionId","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Response/transactionStatus.ITransactionStatusResponse"},{"id":67,"kind":1024,"name":"cardDetail","url":"interfaces/interfaces_Response_transactionStatus.ITransactionStatusResponse.html#cardDetail","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Response/transactionStatus.ITransactionStatusResponse"},{"id":68,"kind":1024,"name":"accountingDate","url":"interfaces/interfaces_Response_transactionStatus.ITransactionStatusResponse.html#accountingDate","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Response/transactionStatus.ITransactionStatusResponse"},{"id":69,"kind":1024,"name":"transactionDate","url":"interfaces/interfaces_Response_transactionStatus.ITransactionStatusResponse.html#transactionDate","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Response/transactionStatus.ITransactionStatusResponse"},{"id":70,"kind":1024,"name":"authorizationCode","url":"interfaces/interfaces_Response_transactionStatus.ITransactionStatusResponse.html#authorizationCode","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Response/transactionStatus.ITransactionStatusResponse"},{"id":71,"kind":1024,"name":"paymentTypeCode","url":"interfaces/interfaces_Response_transactionStatus.ITransactionStatusResponse.html#paymentTypeCode","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Response/transactionStatus.ITransactionStatusResponse"},{"id":72,"kind":1024,"name":"responseCode","url":"interfaces/interfaces_Response_transactionStatus.ITransactionStatusResponse.html#responseCode","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Response/transactionStatus.ITransactionStatusResponse"},{"id":73,"kind":1024,"name":"installmentsNumber","url":"interfaces/interfaces_Response_transactionStatus.ITransactionStatusResponse.html#installmentsNumber","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Response/transactionStatus.ITransactionStatusResponse"},{"id":74,"kind":1024,"name":"installmentsAmount","url":"interfaces/interfaces_Response_transactionStatus.ITransactionStatusResponse.html#installmentsAmount","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Response/transactionStatus.ITransactionStatusResponse"},{"id":75,"kind":1024,"name":"balance","url":"interfaces/interfaces_Response_transactionStatus.ITransactionStatusResponse.html#balance","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"interfaces/Response/transactionStatus.ITransactionStatusResponse"},{"id":76,"kind":2,"name":"interfaces","url":"modules/interfaces.html","classes":"tsd-kind-module"},{"id":77,"kind":2,"name":"modules/webpayPlus/transaction","url":"modules/modules_webpayPlus_transaction.html","classes":"tsd-kind-module"},{"id":78,"kind":64,"name":"create","url":"modules/modules_webpayPlus_transaction.html#create","classes":"tsd-kind-function tsd-parent-kind-module","parent":"modules/webpayPlus/transaction"},{"id":79,"kind":64,"name":"commit","url":"modules/modules_webpayPlus_transaction.html#commit","classes":"tsd-kind-function tsd-parent-kind-module","parent":"modules/webpayPlus/transaction"},{"id":80,"kind":16777216,"name":"Transaction","url":"modules/index.html#Transaction","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"index"},{"id":81,"kind":16777216,"name":"IRequest","url":"modules/interfaces.html#IRequest","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"interfaces"},{"id":82,"kind":16777216,"name":"IResponse","url":"modules/interfaces.html#IResponse","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"interfaces"},{"id":83,"kind":16777216,"name":"IHeaders","url":"modules/interfaces.html#IHeaders","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"interfaces"},{"id":84,"kind":16777216,"name":"IOptions","url":"modules/interfaces.html#IOptions","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"interfaces"},{"id":85,"kind":16777216,"name":"IErrorResponse","url":"modules/interfaces.html#IErrorResponse","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"interfaces"},{"id":86,"kind":16777216,"name":"ITransactionCommitResponse","url":"modules/interfaces.html#ITransactionCommitResponse","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"interfaces"},{"id":87,"kind":16777216,"name":"ITransactionCreateResponse","url":"modules/interfaces.html#ITransactionCreateResponse","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"interfaces"},{"id":88,"kind":16777216,"name":"ITransactionStatusResponse","url":"modules/interfaces.html#ITransactionStatusResponse","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"interfaces"}],"index":{"version":"2.3.9","fields":["name","parent"],"fieldVectors":[["name/0",[0,37.086]],["parent/0",[]],["name/1",[1,37.086]],["parent/1",[]],["name/2",[2,37.086]],["parent/2",[1,3.349]],["name/3",[3,31.003]],["parent/3",[4,3.349]],["name/4",[5,42.373]],["parent/4",[4,3.349]],["name/5",[6,37.086]],["parent/5",[]],["name/6",[7,37.086]],["parent/6",[6,3.349]],["name/7",[8,26.711,9,30.518]],["parent/7",[10,2.8]],["name/8",[8,26.711,11,30.518]],["parent/8",[10,2.8]],["name/9",[12,17.127,13,17.127,14,17.127,15,19.568]],["parent/9",[10,2.8]],["name/10",[12,17.127,13,17.127,14,17.127,16,19.568]],["parent/10",[10,2.8]],["name/11",[17,37.086]],["parent/11",[]],["name/12",[18,37.086]],["parent/12",[17,3.349]],["name/13",[19,42.373]],["parent/13",[20,3.035]],["name/14",[21,42.373]],["parent/14",[20,3.035]],["name/15",[22,42.373]],["parent/15",[20,3.035]],["name/16",[23,37.086]],["parent/16",[]],["name/17",[24,42.373]],["parent/17",[23,3.349]],["name/18",[25,31.003]],["parent/18",[26,2.8]],["name/19",[27,31.003]],["parent/19",[26,2.8]],["name/20",[28,31.003]],["parent/20",[26,2.8]],["name/21",[29,37.086]],["parent/21",[26,2.8]],["name/22",[30,37.086]],["parent/22",[]],["name/23",[31,37.086]],["parent/23",[30,3.349]],["name/24",[32,42.373]],["parent/24",[33,2.456]],["name/25",[34,42.373]],["parent/25",[33,2.456]],["name/26",[35,42.373]],["parent/26",[33,2.456]],["name/27",[36,42.373]],["parent/27",[33,2.456]],["name/28",[37,37.086]],["parent/28",[33,2.456]],["name/29",[38,42.373]],["parent/29",[33,2.456]],["name/30",[39,37.086]],["parent/30",[]],["name/31",[40,42.373]],["parent/31",[39,3.349]],["name/32",[25,31.003]],["parent/32",[41,2.8]],["name/33",[27,31.003]],["parent/33",[41,2.8]],["name/34",[28,31.003]],["parent/34",[41,2.8]],["name/35",[29,37.086]],["parent/35",[41,2.8]],["name/36",[42,37.086]],["parent/36",[]],["name/37",[43,37.086]],["parent/37",[42,3.349]],["name/38",[3,31.003]],["parent/38",[44,3.349]],["name/39",[45,42.373]],["parent/39",[44,3.349]],["name/40",[46,37.086]],["parent/40",[]],["name/41",[47,37.086]],["parent/41",[46,3.349]],["name/42",[48,37.086]],["parent/42",[49,1.706]],["name/43",[28,31.003]],["parent/43",[49,1.706]],["name/44",[3,31.003]],["parent/44",[49,1.706]],["name/45",[25,31.003]],["parent/45",[49,1.706]],["name/46",[27,31.003]],["parent/46",[49,1.706]],["name/47",[50,37.086]],["parent/47",[49,1.706]],["name/48",[51,37.086]],["parent/48",[49,1.706]],["name/49",[52,37.086]],["parent/49",[49,1.706]],["name/50",[53,37.086]],["parent/50",[49,1.706]],["name/51",[54,37.086]],["parent/51",[49,1.706]],["name/52",[55,37.086]],["parent/52",[49,1.706]],["name/53",[56,37.086]],["parent/53",[49,1.706]],["name/54",[57,37.086]],["parent/54",[49,1.706]],["name/55",[58,37.086]],["parent/55",[49,1.706]],["name/56",[59,37.086]],["parent/56",[]],["name/57",[60,37.086]],["parent/57",[59,3.349]],["name/58",[61,42.373]],["parent/58",[62,3.349]],["name/59",[37,37.086]],["parent/59",[62,3.349]],["name/60",[63,37.086]],["parent/60",[]],["name/61",[64,37.086]],["parent/61",[63,3.349]],["name/62",[48,37.086]],["parent/62",[65,1.706]],["name/63",[28,31.003]],["parent/63",[65,1.706]],["name/64",[3,31.003]],["parent/64",[65,1.706]],["name/65",[25,31.003]],["parent/65",[65,1.706]],["name/66",[27,31.003]],["parent/66",[65,1.706]],["name/67",[50,37.086]],["parent/67",[65,1.706]],["name/68",[51,37.086]],["parent/68",[65,1.706]],["name/69",[52,37.086]],["parent/69",[65,1.706]],["name/70",[53,37.086]],["parent/70",[65,1.706]],["name/71",[54,37.086]],["parent/71",[65,1.706]],["name/72",[55,37.086]],["parent/72",[65,1.706]],["name/73",[56,37.086]],["parent/73",[65,1.706]],["name/74",[57,37.086]],["parent/74",[65,1.706]],["name/75",[58,37.086]],["parent/75",[65,1.706]],["name/76",[66,23.27]],["parent/76",[]],["name/77",[67,33.604]],["parent/77",[]],["name/78",[68,42.373]],["parent/78",[67,3.035]],["name/79",[69,42.373]],["parent/79",[67,3.035]],["name/80",[70,42.373]],["parent/80",[0,3.349]],["name/81",[31,37.086]],["parent/81",[66,2.101]],["name/82",[43,37.086]],["parent/82",[66,2.101]],["name/83",[7,37.086]],["parent/83",[66,2.101]],["name/84",[18,37.086]],["parent/84",[66,2.101]],["name/85",[2,37.086]],["parent/85",[66,2.101]],["name/86",[47,37.086]],["parent/86",[66,2.101]],["name/87",[60,37.086]],["parent/87",[66,2.101]],["name/88",[64,37.086]],["parent/88",[66,2.101]]],"invertedIndex":[["accountingdate",{"_index":51,"name":{"48":{},"68":{}},"parent":{}}],["amount",{"_index":28,"name":{"20":{},"34":{},"43":{},"63":{}},"parent":{}}],["api",{"_index":13,"name":{"9":{},"10":{}},"parent":{}}],["apikey",{"_index":21,"name":{"14":{}},"parent":{}}],["authorizationcode",{"_index":53,"name":{"50":{},"70":{}},"parent":{}}],["balance",{"_index":58,"name":{"55":{},"75":{}},"parent":{}}],["body",{"_index":36,"name":{"27":{}},"parent":{}}],["buyorder",{"_index":25,"name":{"18":{},"32":{},"45":{},"65":{}},"parent":{}}],["carddetail",{"_index":50,"name":{"47":{},"67":{}},"parent":{}}],["commercecode",{"_index":19,"name":{"13":{}},"parent":{}}],["commit",{"_index":69,"name":{"79":{}},"parent":{}}],["content",{"_index":8,"name":{"7":{},"8":{}},"parent":{}}],["create",{"_index":68,"name":{"78":{}},"parent":{}}],["data",{"_index":45,"name":{"39":{}},"parent":{}}],["environment",{"_index":22,"name":{"15":{}},"parent":{}}],["headers",{"_index":35,"name":{"26":{}},"parent":{}}],["icapturerequestdata",{"_index":24,"name":{"17":{}},"parent":{}}],["id",{"_index":15,"name":{"9":{}},"parent":{}}],["ierrorresponse",{"_index":2,"name":{"2":{},"85":{}},"parent":{}}],["iheaders",{"_index":7,"name":{"6":{},"83":{}},"parent":{}}],["index",{"_index":0,"name":{"0":{}},"parent":{"80":{}}}],["installmentsamount",{"_index":57,"name":{"54":{},"74":{}},"parent":{}}],["installmentsnumber",{"_index":56,"name":{"53":{},"73":{}},"parent":{}}],["interfaces",{"_index":66,"name":{"76":{}},"parent":{"81":{},"82":{},"83":{},"84":{},"85":{},"86":{},"87":{},"88":{}}}],["interfaces/error",{"_index":1,"name":{"1":{}},"parent":{"2":{}}}],["interfaces/error.ierrorresponse",{"_index":4,"name":{},"parent":{"3":{},"4":{}}}],["interfaces/headers",{"_index":6,"name":{"5":{}},"parent":{"6":{}}}],["interfaces/headers.iheaders",{"_index":10,"name":{},"parent":{"7":{},"8":{},"9":{},"10":{}}}],["interfaces/options",{"_index":17,"name":{"11":{}},"parent":{"12":{}}}],["interfaces/options.ioptions",{"_index":20,"name":{},"parent":{"13":{},"14":{},"15":{}}}],["interfaces/request",{"_index":30,"name":{"22":{}},"parent":{"23":{}}}],["interfaces/request.irequest",{"_index":33,"name":{},"parent":{"24":{},"25":{},"26":{},"27":{},"28":{},"29":{}}}],["interfaces/request/capturerequestdata",{"_index":23,"name":{"16":{}},"parent":{"17":{}}}],["interfaces/request/capturerequestdata.icapturerequestdata",{"_index":26,"name":{},"parent":{"18":{},"19":{},"20":{},"21":{}}}],["interfaces/request/transactioncreate",{"_index":39,"name":{"30":{}},"parent":{"31":{}}}],["interfaces/request/transactioncreate.itransactioncreaterequest",{"_index":41,"name":{},"parent":{"32":{},"33":{},"34":{},"35":{}}}],["interfaces/response",{"_index":42,"name":{"36":{}},"parent":{"37":{}}}],["interfaces/response.iresponse",{"_index":44,"name":{},"parent":{"38":{},"39":{}}}],["interfaces/response/transactioncommit",{"_index":46,"name":{"40":{}},"parent":{"41":{}}}],["interfaces/response/transactioncommit.itransactioncommitresponse",{"_index":49,"name":{},"parent":{"42":{},"43":{},"44":{},"45":{},"46":{},"47":{},"48":{},"49":{},"50":{},"51":{},"52":{},"53":{},"54":{},"55":{}}}],["interfaces/response/transactioncreate",{"_index":59,"name":{"56":{}},"parent":{"57":{}}}],["interfaces/response/transactioncreate.itransactioncreateresponse",{"_index":62,"name":{},"parent":{"58":{},"59":{}}}],["interfaces/response/transactionstatus",{"_index":63,"name":{"60":{}},"parent":{"61":{}}}],["interfaces/response/transactionstatus.itransactionstatusresponse",{"_index":65,"name":{},"parent":{"62":{},"63":{},"64":{},"65":{},"66":{},"67":{},"68":{},"69":{},"70":{},"71":{},"72":{},"73":{},"74":{},"75":{}}}],["ioptions",{"_index":18,"name":{"12":{},"84":{}},"parent":{}}],["irequest",{"_index":31,"name":{"23":{},"81":{}},"parent":{}}],["iresponse",{"_index":43,"name":{"37":{},"82":{}},"parent":{}}],["itransactioncommitresponse",{"_index":47,"name":{"41":{},"86":{}},"parent":{}}],["itransactioncreaterequest",{"_index":40,"name":{"31":{}},"parent":{}}],["itransactioncreateresponse",{"_index":60,"name":{"57":{},"87":{}},"parent":{}}],["itransactionstatusresponse",{"_index":64,"name":{"61":{},"88":{}},"parent":{}}],["key",{"_index":14,"name":{"9":{},"10":{}},"parent":{}}],["length",{"_index":11,"name":{"8":{}},"parent":{}}],["message",{"_index":5,"name":{"4":{}},"parent":{}}],["method",{"_index":32,"name":{"24":{}},"parent":{}}],["modules/webpayplus/transaction",{"_index":67,"name":{"77":{}},"parent":{"78":{},"79":{}}}],["path",{"_index":34,"name":{"25":{}},"parent":{}}],["paymenttypecode",{"_index":54,"name":{"51":{},"71":{}},"parent":{}}],["responsecode",{"_index":55,"name":{"52":{},"72":{}},"parent":{}}],["returnurl",{"_index":29,"name":{"21":{},"35":{}},"parent":{}}],["secret",{"_index":16,"name":{"10":{}},"parent":{}}],["sessionid",{"_index":27,"name":{"19":{},"33":{},"46":{},"66":{}},"parent":{}}],["status",{"_index":3,"name":{"3":{},"38":{},"44":{},"64":{}},"parent":{}}],["tbk",{"_index":12,"name":{"9":{},"10":{}},"parent":{}}],["timeout",{"_index":38,"name":{"29":{}},"parent":{}}],["token",{"_index":61,"name":{"58":{}},"parent":{}}],["transaction",{"_index":70,"name":{"80":{}},"parent":{}}],["transactiondate",{"_index":52,"name":{"49":{},"69":{}},"parent":{}}],["type",{"_index":9,"name":{"7":{}},"parent":{}}],["url",{"_index":37,"name":{"28":{},"59":{}},"parent":{}}],["vci",{"_index":48,"name":{"42":{},"62":{}},"parent":{}}]],"pipeline":[]}} \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index c293ee1..3e9a2f1 100644 --- a/docs/index.html +++ b/docs/index.html @@ -66,4 +66,4 @@

Roadmap

  • Update docs
  • -

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/interfaces/interfaces_Error.IErrorResponse.html b/docs/interfaces/interfaces_Error.IErrorResponse.html index fd7b28b..7ace2bc 100644 --- a/docs/interfaces/interfaces_Error.IErrorResponse.html +++ b/docs/interfaces/interfaces_Error.IErrorResponse.html @@ -1 +1 @@ -IErrorResponse | transbank-sdk-node
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Generated using TypeDoc

    \ No newline at end of file +IErrorResponse | transbank-sdk-node
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/interfaces/interfaces_Headers.IHeaders.html b/docs/interfaces/interfaces_Headers.IHeaders.html index 300e8cc..b7f5a1e 100644 --- a/docs/interfaces/interfaces_Headers.IHeaders.html +++ b/docs/interfaces/interfaces_Headers.IHeaders.html @@ -1 +1 @@ -IHeaders | transbank-sdk-node
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Generated using TypeDoc

    \ No newline at end of file +IHeaders | transbank-sdk-node
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/interfaces/interfaces_Options.IOptions.html b/docs/interfaces/interfaces_Options.IOptions.html index fbf1421..80a9715 100644 --- a/docs/interfaces/interfaces_Options.IOptions.html +++ b/docs/interfaces/interfaces_Options.IOptions.html @@ -1 +1 @@ -IOptions | transbank-sdk-node
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Generated using TypeDoc

    \ No newline at end of file +IOptions | transbank-sdk-node
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/interfaces/interfaces_Request.IRequest.html b/docs/interfaces/interfaces_Request.IRequest.html index 5e53aa9..bf18cb4 100644 --- a/docs/interfaces/interfaces_Request.IRequest.html +++ b/docs/interfaces/interfaces_Request.IRequest.html @@ -1 +1 @@ -IRequest | transbank-sdk-node
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Generated using TypeDoc

    \ No newline at end of file +IRequest | transbank-sdk-node
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/interfaces/interfaces_Request_CaptureRequestData.ICaptureRequestData.html b/docs/interfaces/interfaces_Request_CaptureRequestData.ICaptureRequestData.html index e3d0e1d..999d6f1 100644 --- a/docs/interfaces/interfaces_Request_CaptureRequestData.ICaptureRequestData.html +++ b/docs/interfaces/interfaces_Request_CaptureRequestData.ICaptureRequestData.html @@ -1 +1 @@ -ICaptureRequestData | transbank-sdk-node
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Generated using TypeDoc

    \ No newline at end of file +ICaptureRequestData | transbank-sdk-node
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/interfaces/interfaces_Request_transactionCreate.ITransactionCreateRequest.html b/docs/interfaces/interfaces_Request_transactionCreate.ITransactionCreateRequest.html index 199d56b..5571927 100644 --- a/docs/interfaces/interfaces_Request_transactionCreate.ITransactionCreateRequest.html +++ b/docs/interfaces/interfaces_Request_transactionCreate.ITransactionCreateRequest.html @@ -1 +1 @@ -ITransactionCreateRequest | transbank-sdk-node
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Generated using TypeDoc

    \ No newline at end of file +ITransactionCreateRequest | transbank-sdk-node
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/interfaces/interfaces_Response.IResponse.html b/docs/interfaces/interfaces_Response.IResponse.html index 78df65e..ed0376b 100644 --- a/docs/interfaces/interfaces_Response.IResponse.html +++ b/docs/interfaces/interfaces_Response.IResponse.html @@ -1 +1 @@ -IResponse | transbank-sdk-node
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Generated using TypeDoc

    \ No newline at end of file +IResponse | transbank-sdk-node
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/interfaces/interfaces_Response_transactionCommit.ITransactionCommitResponse.html b/docs/interfaces/interfaces_Response_transactionCommit.ITransactionCommitResponse.html new file mode 100644 index 0000000..6b3e8ad --- /dev/null +++ b/docs/interfaces/interfaces_Response_transactionCommit.ITransactionCommitResponse.html @@ -0,0 +1 @@ +ITransactionCommitResponse | transbank-sdk-node
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Hierarchy

    Index

    Properties

    vci

    vci: string

    amount

    amount: number

    status

    status: "INITIALIZED" | "AUTHORIZED" | "REVERSED" | "FAILED" | "NULLIFIED" | "PARTIALLY_NULLIFIED" | "CAPTURED"

    buyOrder

    buyOrder: string

    sessionId

    sessionId: string

    cardDetail

    cardDetail: ICardDetails

    accountingDate

    accountingDate: string

    transactionDate

    transactionDate: Date

    authorizationCode

    authorizationCode: string

    paymentTypeCode

    paymentTypeCode: "VD" | "VN" | "VC" | "SI" | "S2" | "NC" | "VP"

    responseCode

    responseCode: 0 | -1 | -2 | -3 | -4 | -5

    installmentsNumber

    installmentsNumber: number

    installmentsAmount

    installmentsAmount: number

    balance

    balance: number

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/interfaces/interfaces_Response_transactionCreate.ITransactionCreateResponse.html b/docs/interfaces/interfaces_Response_transactionCreate.ITransactionCreateResponse.html index d969c19..fa418d9 100644 --- a/docs/interfaces/interfaces_Response_transactionCreate.ITransactionCreateResponse.html +++ b/docs/interfaces/interfaces_Response_transactionCreate.ITransactionCreateResponse.html @@ -1 +1 @@ -ITransactionCreateResponse | transbank-sdk-node
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Generated using TypeDoc

    \ No newline at end of file +ITransactionCreateResponse | transbank-sdk-node
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/interfaces/interfaces_Response_transactionStatus.ITransactionStatusResponse.html b/docs/interfaces/interfaces_Response_transactionStatus.ITransactionStatusResponse.html new file mode 100644 index 0000000..a5b93b9 --- /dev/null +++ b/docs/interfaces/interfaces_Response_transactionStatus.ITransactionStatusResponse.html @@ -0,0 +1 @@ +ITransactionStatusResponse | transbank-sdk-node
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Hierarchy

    Index

    Properties

    vci

    vci: string

    amount

    amount: number

    status

    status: "INITIALIZED" | "AUTHORIZED" | "REVERSED" | "FAILED" | "NULLIFIED" | "PARTIALLY_NULLIFIED" | "CAPTURED"

    buyOrder

    buyOrder: string

    sessionId

    sessionId: string

    cardDetail

    cardDetail: ICardDetails

    accountingDate

    accountingDate: string

    transactionDate

    transactionDate: Date

    authorizationCode

    authorizationCode: string

    paymentTypeCode

    paymentTypeCode: "VD" | "VN" | "VC" | "SI" | "S2" | "NC" | "VP"

    responseCode

    responseCode: 0 | -1 | -2 | -3 | -4 | -5

    installmentsNumber

    installmentsNumber: number

    installmentsAmount

    installmentsAmount: number

    balance

    balance: number

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/modules.html b/docs/modules.html index 8df9ed6..271c386 100644 --- a/docs/modules.html +++ b/docs/modules.html @@ -1 +1 @@ -transbank-sdk-node
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    transbank-sdk-node

    Generated using TypeDoc

    \ No newline at end of file +transbank-sdk-node
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    transbank-sdk-node

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/modules/index.html b/docs/modules/index.html index f7b3d2e..3b23ec0 100644 --- a/docs/modules/index.html +++ b/docs/modules/index.html @@ -1 +1 @@ -index | transbank-sdk-node
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Generated using TypeDoc

    \ No newline at end of file +index | transbank-sdk-node
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/modules/interfaces.html b/docs/modules/interfaces.html index 9463726..e4fdbb6 100644 --- a/docs/modules/interfaces.html +++ b/docs/modules/interfaces.html @@ -1 +1 @@ -interfaces | transbank-sdk-node
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Generated using TypeDoc

    \ No newline at end of file +interfaces | transbank-sdk-node
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/modules/interfaces_Error.html b/docs/modules/interfaces_Error.html index 3a68d96..496c152 100644 --- a/docs/modules/interfaces_Error.html +++ b/docs/modules/interfaces_Error.html @@ -1 +1 @@ -interfaces/Error | transbank-sdk-node
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Module interfaces/Error

    Generated using TypeDoc

    \ No newline at end of file +interfaces/Error | transbank-sdk-node
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Module interfaces/Error

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/modules/interfaces_Headers.html b/docs/modules/interfaces_Headers.html index af89e39..2f30b31 100644 --- a/docs/modules/interfaces_Headers.html +++ b/docs/modules/interfaces_Headers.html @@ -1 +1 @@ -interfaces/Headers | transbank-sdk-node
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Module interfaces/Headers

    Generated using TypeDoc

    \ No newline at end of file +interfaces/Headers | transbank-sdk-node
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Module interfaces/Headers

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/modules/interfaces_Options.html b/docs/modules/interfaces_Options.html index ea74470..2a4566d 100644 --- a/docs/modules/interfaces_Options.html +++ b/docs/modules/interfaces_Options.html @@ -1 +1 @@ -interfaces/Options | transbank-sdk-node
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Module interfaces/Options

    Generated using TypeDoc

    \ No newline at end of file +interfaces/Options | transbank-sdk-node
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Module interfaces/Options

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/modules/interfaces_Request.html b/docs/modules/interfaces_Request.html index 644f66e..9e97626 100644 --- a/docs/modules/interfaces_Request.html +++ b/docs/modules/interfaces_Request.html @@ -1 +1 @@ -interfaces/Request | transbank-sdk-node
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Module interfaces/Request

    Generated using TypeDoc

    \ No newline at end of file +interfaces/Request | transbank-sdk-node
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Module interfaces/Request

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/modules/interfaces_Request_CaptureRequestData.html b/docs/modules/interfaces_Request_CaptureRequestData.html index dcb9d3c..42e40b5 100644 --- a/docs/modules/interfaces_Request_CaptureRequestData.html +++ b/docs/modules/interfaces_Request_CaptureRequestData.html @@ -1 +1 @@ -interfaces/Request/CaptureRequestData | transbank-sdk-node
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Module interfaces/Request/CaptureRequestData

    Generated using TypeDoc

    \ No newline at end of file +interfaces/Request/CaptureRequestData | transbank-sdk-node
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Module interfaces/Request/CaptureRequestData

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/modules/interfaces_Request_transactionCreate.html b/docs/modules/interfaces_Request_transactionCreate.html index 4b16332..fbd0625 100644 --- a/docs/modules/interfaces_Request_transactionCreate.html +++ b/docs/modules/interfaces_Request_transactionCreate.html @@ -1 +1 @@ -interfaces/Request/transactionCreate | transbank-sdk-node
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Module interfaces/Request/transactionCreate

    Generated using TypeDoc

    \ No newline at end of file +interfaces/Request/transactionCreate | transbank-sdk-node
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Module interfaces/Request/transactionCreate

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/modules/interfaces_Response.html b/docs/modules/interfaces_Response.html index 97e1673..60d5a03 100644 --- a/docs/modules/interfaces_Response.html +++ b/docs/modules/interfaces_Response.html @@ -1 +1 @@ -interfaces/Response | transbank-sdk-node
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Module interfaces/Response

    Generated using TypeDoc

    \ No newline at end of file +interfaces/Response | transbank-sdk-node
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Module interfaces/Response

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/modules/interfaces_Response_transactionCommit.html b/docs/modules/interfaces_Response_transactionCommit.html new file mode 100644 index 0000000..03b1826 --- /dev/null +++ b/docs/modules/interfaces_Response_transactionCommit.html @@ -0,0 +1 @@ +interfaces/Response/transactionCommit | transbank-sdk-node
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Module interfaces/Response/transactionCommit

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/modules/interfaces_Response_transactionCreate.html b/docs/modules/interfaces_Response_transactionCreate.html index e524d99..87c947a 100644 --- a/docs/modules/interfaces_Response_transactionCreate.html +++ b/docs/modules/interfaces_Response_transactionCreate.html @@ -1 +1 @@ -interfaces/Response/transactionCreate | transbank-sdk-node
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Module interfaces/Response/transactionCreate

    Generated using TypeDoc

    \ No newline at end of file +interfaces/Response/transactionCreate | transbank-sdk-node
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Module interfaces/Response/transactionCreate

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/modules/interfaces_Response_transactionStatus.html b/docs/modules/interfaces_Response_transactionStatus.html new file mode 100644 index 0000000..6c79b7e --- /dev/null +++ b/docs/modules/interfaces_Response_transactionStatus.html @@ -0,0 +1 @@ +interfaces/Response/transactionStatus | transbank-sdk-node
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Module interfaces/Response/transactionStatus

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/modules/modules_webpayPlus_transaction.html b/docs/modules/modules_webpayPlus_transaction.html index b01aff4..e5c7973 100644 --- a/docs/modules/modules_webpayPlus_transaction.html +++ b/docs/modules/modules_webpayPlus_transaction.html @@ -1,4 +1,4 @@ -modules/webpayPlus/transaction | transbank-sdk-node
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Module modules/webpayPlus/transaction

    Index

    Functions

    Functions

    create

    commit

    Generated using TypeDoc

    \ No newline at end of file diff --git a/src/utils/request.ts b/src/utils/request.ts index 20b8479..a73987a 100644 --- a/src/utils/request.ts +++ b/src/utils/request.ts @@ -3,7 +3,7 @@ import axios, { AxiosError, AxiosRequestConfig as RequestConfig } from 'axios'; import { IRequest, IResponse, IErrorResponse, } from '~/interfaces'; -import { toUnderScoreKeys } from './stringFunctions'; +import { toCamelCaseKeys, toUnderScoreKeys } from './stringFunctions'; function isAxiosError(candidate: any): candidate is AxiosError { return candidate.isAxiosError === true; @@ -22,10 +22,11 @@ export async function request(req: IRequest): Promise payload.data = toUnderScoreKeys(req.body); } try { - const { status, data } = await axios.request(payload); + const { status, data } = await axios + .request(payload); return { status, - data, + data: toCamelCaseKeys(data), } as IResponse; } catch (error: any) { if (error.message.includes('timeout')) { diff --git a/src/utils/stringFunctions.ts b/src/utils/stringFunctions.ts index 4525914..6f94463 100644 --- a/src/utils/stringFunctions.ts +++ b/src/utils/stringFunctions.ts @@ -2,10 +2,32 @@ function toCase(s: string): string { return s.replace(/([A-Z])/g, '_$1').toLowerCase(); } +function toCamel(s: string): string { + return s.toLowerCase() + .replace(/([-_][a-z])/, (g) => (g + .toUpperCase() + .replace('-', '') + .replace('_', ''))); +} + export function toUnderScoreKeys(obj:any): any { const newObj: any = {}; Object.keys(obj).forEach((v) => { + if (typeof obj[v] === 'object') { + newObj[toCase(v)] = toUnderScoreKeys(obj[v]); + } newObj[toCase(v)] = obj[v]; }); return newObj; } + +export function toCamelCaseKeys(obj: any): any { + const newObj: any = {}; + Object.keys(obj).forEach((v) => { + if (typeof obj[v] === 'object') { + newObj[toCamel(v)] = toCamelCaseKeys(obj[v]); + } + newObj[toCamel(v)] = obj[v]; + }); + return newObj; +}