ya_kassa 0.1.1 → 0.1.2
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 +4 -4
- data/lib/ya_kassa.rb +15 -2
- data/lib/ya_kassa/v3/concerns/validatable.rb +1 -1
- data/lib/ya_kassa/v3/utilites/string.rb +15 -0
- data/lib/ya_kassa/v3/validators/is_a.rb +1 -1
- data/lib/ya_kassa/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 27d105c629b48bb20da70b1c32875e415aebac380716cd3111f8d95db61e56a1
|
|
4
|
+
data.tar.gz: d9cc8728bc3e2107603c1d291f442c85d3911b82413fc1fce68f167fd7794f36
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a516f1cd2551f5239a0364576269a92300bc4d5cd6a96b8c847de4b47ef8dca6d05929c9202469784039350ba977f9dafd30861221fa075ad6ec5baff9d2e8fd
|
|
7
|
+
data.tar.gz: e5227f7018087cdd78998d2d13c4b18a2c4f07337ed1c58cfcc866d98c46e539c4741f996c43b50f3f7a154f425d505d1f559a65bd6b5bf2d8a3e8be4ca90b7c
|
data/lib/ya_kassa.rb
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
require "ya_kassa/version"
|
|
2
2
|
|
|
3
3
|
module YaKassa
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
require 'ya_kassa/v3/utilites/string'
|
|
5
|
+
require 'ya_kassa/v3/concerns/attributable'
|
|
6
|
+
require 'ya_kassa/v3/concerns/validatable'
|
|
7
|
+
require 'ya_kassa/v3/base_request'
|
|
8
|
+
require 'ya_kassa/v3/base_response'
|
|
9
|
+
require 'ya_kassa/v3/payment_cancel_request'
|
|
10
|
+
require 'ya_kassa/v3/payment_capture_request'
|
|
11
|
+
require 'ya_kassa/v3/payment_request'
|
|
12
|
+
require 'ya_kassa/v3/payment_response'
|
|
13
|
+
require 'ya_kassa/v3/payment_status_request'
|
|
14
|
+
require 'ya_kassa/v3/receipt_request'
|
|
15
|
+
require 'ya_kassa/v3/receipt_response'
|
|
16
|
+
require 'ya_kassa/v3/refund_request'
|
|
17
|
+
require 'ya_kassa/v3/refund_response'
|
|
18
|
+
require 'ya_kassa/v3/router'
|
|
6
19
|
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module YaKassa
|
|
2
|
+
module V3
|
|
3
|
+
module Utilites
|
|
4
|
+
class String
|
|
5
|
+
# copied from activesupport/lib/active_support/inflector
|
|
6
|
+
def self.constantize(camel_cased_word)
|
|
7
|
+
unless /\A(?:::)?([A-Z]\w*(?:::[A-Z]\w*)*)\z/ =~ camel_cased_word
|
|
8
|
+
raise NameError, "#{camel_cased_word.inspect} is not a valid constant name!"
|
|
9
|
+
end
|
|
10
|
+
Object.module_eval("::#{$1}", __FILE__, __LINE__)
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
data/lib/ya_kassa/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ya_kassa
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- nikulinaleksandr
|
|
@@ -87,6 +87,7 @@ files:
|
|
|
87
87
|
- lib/ya_kassa/v3/refund_request.rb
|
|
88
88
|
- lib/ya_kassa/v3/refund_response.rb
|
|
89
89
|
- lib/ya_kassa/v3/router.rb
|
|
90
|
+
- lib/ya_kassa/v3/utilites/string.rb
|
|
90
91
|
- lib/ya_kassa/v3/validators/base.rb
|
|
91
92
|
- lib/ya_kassa/v3/validators/float_or_nil.rb
|
|
92
93
|
- lib/ya_kassa/v3/validators/is_a.rb
|