securionpay 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9b95512e478342f2458ccf71e6bde4439f90d1d5930831d261ab239cd30c9c43
4
- data.tar.gz: dc91f41e4c309ef05e2823f777981a1f6eef085ff5ad595cb91fe0bd94159874
3
+ metadata.gz: 94a230d639cd3a0ffcb455e7156a8d80fe4f549b8189ea87c23ee47c073decc8
4
+ data.tar.gz: 00eb8e9b2137f969212f1895d8d9dbc1245cfdbcd1e473729513a1e7d2434b8d
5
5
  SHA512:
6
- metadata.gz: e23dd58edb84394e0d00a6bbf2001167a6aee5a7b2020c43adf2059f0184a57164cec75b67005d27498b8a2c5f08e23c9edbf9896a94f5b616616751de58b819
7
- data.tar.gz: 89aff8b416b289c5711eec238de4acb5553afb6cf82a3ae365597f6892d7098065800c1fdac0232e7fe5ee77f74e8c4e567863fd2136bbd37e5a75b0ef8f27dc
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SecurionPay
4
- VERSION = '1.0.0'
4
+ VERSION = '1.1.0'
5
5
  end
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.0.0
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-04-28 00:00:00.000000000 Z
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