securionpay 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/securionpay/payment_methods.rb +23 -0
- data/lib/securionpay/version.rb +1 -1
- data/lib/securionpay.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94a230d639cd3a0ffcb455e7156a8d80fe4f549b8189ea87c23ee47c073decc8
|
4
|
+
data.tar.gz: 00eb8e9b2137f969212f1895d8d9dbc1245cfdbcd1e473729513a1e7d2434b8d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c8a45558c53a14073954cc42a32f5110af06f0969b3a56bd7698124d79a6dd3af63c2571ac8e6e8bc2ee80dc150529db388ec1b84d89027f03a113691e7494b
|
7
|
+
data.tar.gz: 517a4b484b3abcf558625d3c9bb07cf26f4c88b76d9fcf4f4d9f0458febb4742f7f287d712ddca64fe1fafee00cd4c0bb1baf3661609e363a83c5b214df8d39f
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module SecurionPay
|
4
|
+
class PaymentMethods
|
5
|
+
extend TransactionBase
|
6
|
+
|
7
|
+
def self.create(params)
|
8
|
+
communicator.post("#{Configuration.api_url}/payment-methods", json: params)
|
9
|
+
end
|
10
|
+
|
11
|
+
def self.retrieve(plan_id)
|
12
|
+
communicator.get("#{Configuration.api_url}/payment-methods/#{plan_id}")
|
13
|
+
end
|
14
|
+
|
15
|
+
def self.delete(plan_id)
|
16
|
+
communicator.delete("#{Configuration.api_url}/payment-methods/#{plan_id}")
|
17
|
+
end
|
18
|
+
|
19
|
+
def self.list(params = nil)
|
20
|
+
communicator.get("#{Configuration.api_url}/payment-methods", query: params)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
data/lib/securionpay/version.rb
CHANGED
data/lib/securionpay.rb
CHANGED
@@ -16,6 +16,7 @@ require 'securionpay/disputes'
|
|
16
16
|
require 'securionpay/events'
|
17
17
|
require 'securionpay/file_uploads'
|
18
18
|
require 'securionpay/fraud_warnings'
|
19
|
+
require 'securionpay/payment_methods'
|
19
20
|
require 'securionpay/plans'
|
20
21
|
require 'securionpay/subscriptions'
|
21
22
|
require 'securionpay/tokens'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: securionpay
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SecurionPay Team
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -185,6 +185,7 @@ files:
|
|
185
185
|
- lib/securionpay/events.rb
|
186
186
|
- lib/securionpay/file_uploads.rb
|
187
187
|
- lib/securionpay/fraud_warnings.rb
|
188
|
+
- lib/securionpay/payment_methods.rb
|
188
189
|
- lib/securionpay/plans.rb
|
189
190
|
- lib/securionpay/securion_pay_exception.rb
|
190
191
|
- lib/securionpay/subscriptions.rb
|