/** * Created by wisestone on 2018-02-13. */ 'use strict'; define(['app'], function (app) { app.factory("Payment", ['$http', '$log', function ($http, $log) { return { paymentOneTime : function (parameter) { return $http.post("payment/paymentOneTime", parameter).then(function (response) { $log.debug("정기 결재 결과 : ", response); return response; }); }, immediateAddUser : function (parameter) { return $http.post("payment/immediateAddUser", parameter).then(function (response) { $log.debug("추가 결재 결과 : ", response); return response; }); }, cancelNextPayment : function (parameter) { return $http.post("payment/cancelNextPayment", parameter).then(function (response) { $log.debug("정기 결재 취소 결과 : ", response); return response; }); }, detail : function (parameter) { return $http.post("payment/detail", parameter).then(function (response) { $log.debug("정기 결재 정보 결과 : ", response); return response; }); }, modify : function (parameter) { return $http.post("payment/modify", parameter).then(function (response) { $log.debug("정기 결재 변경 결과 : ", response); return response; }); } } } ]) });