From d0659db53e9dedf275d441330884fdea69c95f06 Mon Sep 17 00:00:00 2001
From: Haidar <16521522@mahasiswa.itb.ac.id>
Date: Fri, 17 Nov 2023 04:38:05 +0700
Subject: [PATCH] feat: add checkCode template soap

---
 templates/soap_template.js | 34 +++++++++++++++++++++++++++++++++-
 1 file changed, 33 insertions(+), 1 deletion(-)

diff --git a/templates/soap_template.js b/templates/soap_template.js
index c6ea909..0b39292 100644
--- a/templates/soap_template.js
+++ b/templates/soap_template.js
@@ -54,6 +54,38 @@ const getHistory = {
   template: getHistory_soap_template
 };
 
-module.exports = { topup, buyProduct, getHistory };
+const checkCode_soap_template = `<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
+<Body>
+    <checkCode xmlns="http://service.example.org/">
+        <arg0 xmlns="">%s</arg0>
+        <arg1 xmlns="">%d</arg1>
+    </checkCode>
+</Body>
+</Envelope>">`;
+
+const checkCode = {
+  url: "http://localhost:8081/checkCode",
+  headers: headers,
+  template: checkCode_soap_template
+}
+
+const uangConverter_soap_template = `<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
+<Body>
+    <checkCode xmlns="http://service.example.org/">
+        <arg0 xmlns="">%s</arg0>
+        <arg1 xmlns="">%d</arg1>
+    </checkCode>
+</Body>
+</Envelope>`;
+
+const uangConverter = {
+  url: "http://localhost:8081/uangConverter",
+  headers: headers,
+  template: uangConverter_soap_template
+}
+
+
+
+module.exports = { topup, buyProduct, getHistory, checkCode, uangConverter };
 
 
-- 
GitLab