[ofbiz-plugins] branch trunk updated: Improved: Adds plugin for integration of 1st Data payment gateway (OFBIZ-11837)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ofbiz-plugins] branch trunk updated: Improved: Adds plugin for integration of 1st Data payment gateway (OFBIZ-11837)

jleroux@apache.org
This is an automated email from the ASF dual-hosted git repository.

jleroux pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-plugins.git


The following commit(s) were added to refs/heads/trunk by this push:
     new c2925a4  Improved: Adds plugin for integration of 1st Data payment gateway (OFBIZ-11837)
c2925a4 is described below

commit c2925a43a46218524ac3004fdc526c4147c46bd5
Author: Jacques Le Roux <[hidden email]>
AuthorDate: Fri Jul 3 15:07:18 2020 +0200

    Improved: Adds plugin for integration of 1st Data payment gateway (OFBIZ-11837)
   
    Adds missing ASL2 license headers
---
 .../FirstDataPaymentServices.java                  | 42 +++++++++++++++++-----
 .../template/FirstDataPostAuthTemplate.json.ftl    | 20 ++++++++++-
 .../template/FirstDataPreAuthTemplate.json.ftl     | 20 ++++++++++-
 .../template/FirstDataRefundTemplate.json.ftl      | 20 ++++++++++-
 .../template/FirstDataReleaseTemplate.json.ftl     | 20 ++++++++++-
 .../template/FirstDataSaleTemplate.json.ftl        | 20 ++++++++++-
 6 files changed, 128 insertions(+), 14 deletions(-)

diff --git a/firstdatapaymentgateway/src/main/java/org/apache/ofbiz/firstdatapaymentgateway/FirstDataPaymentServices.java b/firstdatapaymentgateway/src/main/java/org/apache/ofbiz/firstdatapaymentgateway/FirstDataPaymentServices.java
index a3e6347..f7ea155 100644
--- a/firstdatapaymentgateway/src/main/java/org/apache/ofbiz/firstdatapaymentgateway/FirstDataPaymentServices.java
+++ b/firstdatapaymentgateway/src/main/java/org/apache/ofbiz/firstdatapaymentgateway/FirstDataPaymentServices.java
@@ -1,8 +1,34 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.apache.ofbiz.firstdatapaymentgateway;
 
-import com.fasterxml.jackson.core.type.TypeReference;
-import com.fasterxml.jackson.databind.ObjectMapper;
-import freemarker.template.TemplateException;
+import java.io.IOException;
+import java.io.StringWriter;
+import java.math.BigDecimal;
+import java.text.ParseException;
+import java.text.SimpleDateFormat;
+import java.util.Date;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Properties;
+import java.util.UUID;
+
 import org.apache.commons.codec.binary.Base64;
 import org.apache.commons.codec.binary.Hex;
 import org.apache.commons.codec.digest.HmacAlgorithms;
@@ -26,12 +52,10 @@ import org.apache.ofbiz.service.DispatchContext;
 import org.apache.ofbiz.service.ModelService;
 import org.apache.ofbiz.service.ServiceUtil;
 
-import java.io.IOException;
-import java.io.StringWriter;
-import java.math.BigDecimal;
-import java.text.ParseException;
-import java.text.SimpleDateFormat;
-import java.util.*;
+import com.fasterxml.jackson.core.type.TypeReference;
+import com.fasterxml.jackson.databind.ObjectMapper;
+
+import freemarker.template.TemplateException;
 
 public class FirstDataPaymentServices {
     private static final String MODULE = FirstDataPaymentServices.class.getName();
diff --git a/firstdatapaymentgateway/template/FirstDataPostAuthTemplate.json.ftl b/firstdatapaymentgateway/template/FirstDataPostAuthTemplate.json.ftl
index 16ddaa3..d0a646f 100644
--- a/firstdatapaymentgateway/template/FirstDataPostAuthTemplate.json.ftl
+++ b/firstdatapaymentgateway/template/FirstDataPostAuthTemplate.json.ftl
@@ -1,7 +1,25 @@
+<#--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
 {
   "requestType": "PostAuthTransaction",
   "transactionAmount": {
     "total": "${amount}",
     "currency": "${currency}"
   }
-}
\ No newline at end of file
+}
diff --git a/firstdatapaymentgateway/template/FirstDataPreAuthTemplate.json.ftl b/firstdatapaymentgateway/template/FirstDataPreAuthTemplate.json.ftl
index dbf7a04..15a50c4 100644
--- a/firstdatapaymentgateway/template/FirstDataPreAuthTemplate.json.ftl
+++ b/firstdatapaymentgateway/template/FirstDataPreAuthTemplate.json.ftl
@@ -1,3 +1,21 @@
+<#--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
 {
   "transactionAmount": {
     "total": "${amount}",
@@ -16,4 +34,4 @@
       }
     }
   }
-}
\ No newline at end of file
+}
diff --git a/firstdatapaymentgateway/template/FirstDataRefundTemplate.json.ftl b/firstdatapaymentgateway/template/FirstDataRefundTemplate.json.ftl
index fcfca65..e3ab18d 100644
--- a/firstdatapaymentgateway/template/FirstDataRefundTemplate.json.ftl
+++ b/firstdatapaymentgateway/template/FirstDataRefundTemplate.json.ftl
@@ -1,7 +1,25 @@
+<#--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
 {
   "requestType": "ReturnTransaction",
   "transactionAmount": {
     "total": "${amount}",
     "currency": "${currency}"
   }
-}
\ No newline at end of file
+}
diff --git a/firstdatapaymentgateway/template/FirstDataReleaseTemplate.json.ftl b/firstdatapaymentgateway/template/FirstDataReleaseTemplate.json.ftl
index d192979..3008ab7 100644
--- a/firstdatapaymentgateway/template/FirstDataReleaseTemplate.json.ftl
+++ b/firstdatapaymentgateway/template/FirstDataReleaseTemplate.json.ftl
@@ -1,4 +1,22 @@
+<#--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
 {
   "requestType": "VoidTransaction",
   "comments": "${comments}"
-}
\ No newline at end of file
+}
diff --git a/firstdatapaymentgateway/template/FirstDataSaleTemplate.json.ftl b/firstdatapaymentgateway/template/FirstDataSaleTemplate.json.ftl
index 06a0625..66f1f21 100644
--- a/firstdatapaymentgateway/template/FirstDataSaleTemplate.json.ftl
+++ b/firstdatapaymentgateway/template/FirstDataSaleTemplate.json.ftl
@@ -1,3 +1,21 @@
+<#--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
 {
   "transactionAmount": {
     "total": "${amount}",
@@ -16,4 +34,4 @@
       }
     }
   }
-}
\ No newline at end of file
+}