From 6ec05c3de17691c84339866b5aed51b9807076ce Mon Sep 17 00:00:00 2001 From: christianheidorn Date: Fri, 30 Sep 2016 08:09:07 +0000 Subject: [PATCH 1/2] Added Checksums & JSON/Data Methods --- .idea/copyright/profiles_settings.xml | 3 + .idea/encodings.xml | 6 + .idea/laravel-paymill.iml | 8 + .idea/misc.xml | 13 ++ .idea/modules.xml | 8 + .idea/vcs.xml | 6 + .idea/workspace.xml | 208 ++++++++++++++++++++ src/Threesquared/LaravelPaymill/Paymill.php | 15 ++ 8 files changed, 267 insertions(+) create mode 100644 .idea/copyright/profiles_settings.xml create mode 100644 .idea/encodings.xml create mode 100644 .idea/laravel-paymill.iml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml create mode 100644 .idea/workspace.xml diff --git a/.idea/copyright/profiles_settings.xml b/.idea/copyright/profiles_settings.xml new file mode 100644 index 0000000..e7bedf3 --- /dev/null +++ b/.idea/copyright/profiles_settings.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 0000000..97626ba --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/laravel-paymill.iml b/.idea/laravel-paymill.iml new file mode 100644 index 0000000..c956989 --- /dev/null +++ b/.idea/laravel-paymill.iml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..72abef0 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..d9b2bc5 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..029345a --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,208 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1475222653865 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/Threesquared/LaravelPaymill/Paymill.php b/src/Threesquared/LaravelPaymill/Paymill.php index 1ec52f0..ef82bbf 100644 --- a/src/Threesquared/LaravelPaymill/Paymill.php +++ b/src/Threesquared/LaravelPaymill/Paymill.php @@ -72,6 +72,11 @@ public function subscription($id = null) return $this->createModel('Paymill\Models\Request\Subscription', $id); } + public function checksum($id = null) + { + return $this->createModel('Paymill\Models\Request\Checksum', $id); + } + /** * Create the Paymill model * @@ -125,6 +130,16 @@ public function delete() return $this->request->delete($this->model); } + public function json() + { + return $this->request->getJSONObject($this->model); + } + + public function data() + { + return $this->request->getDataAsArray($this->model); + } + /** * Return the Paymill request class * @return Request From 451528ed9e5a27623798df792342ff430873a94c Mon Sep 17 00:00:00 2001 From: christianheidorn Date: Fri, 30 Sep 2016 08:14:33 +0000 Subject: [PATCH 2/2] Added Checksums & JSON/Data Methods --- .gitignore | 1 + .idea/copyright/profiles_settings.xml | 3 - .idea/encodings.xml | 6 - .idea/laravel-paymill.iml | 8 - .idea/misc.xml | 13 -- .idea/modules.xml | 8 - .idea/vcs.xml | 6 - .idea/workspace.xml | 208 -------------------------- 8 files changed, 1 insertion(+), 252 deletions(-) delete mode 100644 .idea/copyright/profiles_settings.xml delete mode 100644 .idea/encodings.xml delete mode 100644 .idea/laravel-paymill.iml delete mode 100644 .idea/misc.xml delete mode 100644 .idea/modules.xml delete mode 100644 .idea/vcs.xml delete mode 100644 .idea/workspace.xml diff --git a/.gitignore b/.gitignore index 5826402..a27ea09 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ composer.phar composer.lock .DS_Store +/.idea/ \ No newline at end of file diff --git a/.idea/copyright/profiles_settings.xml b/.idea/copyright/profiles_settings.xml deleted file mode 100644 index e7bedf3..0000000 --- a/.idea/copyright/profiles_settings.xml +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml deleted file mode 100644 index 97626ba..0000000 --- a/.idea/encodings.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/laravel-paymill.iml b/.idea/laravel-paymill.iml deleted file mode 100644 index c956989..0000000 --- a/.idea/laravel-paymill.iml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml deleted file mode 100644 index 72abef0..0000000 --- a/.idea/misc.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index d9b2bc5..0000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 94a25f7..0000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml deleted file mode 100644 index 029345a..0000000 --- a/.idea/workspace.xml +++ /dev/null @@ -1,208 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - true - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1475222653865 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file