yaka 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 36c144585b7419aad297e628678093039ee6b896bc48ba43c155928574988079
4
+ data.tar.gz: b9088bdef6e24e0a2ab2c38784f722bf64c25d0d31d903c3c7bda6b468285cc6
5
+ SHA512:
6
+ metadata.gz: 8375c0979cc280b0d2b722846e9e1f2fc20918e7b8c341c9230c72bf5640fc790ed0b4b64acf64a14db0e74a3c107bb0293543a996ba9867da25faed6dc33b63
7
+ data.tar.gz: 3097195b9e4054ef88c4a84c1fca9cce5132e2e7b732714d43e96173a1b1e3804fd58f15191cfe644e9c05691641aea2b87b9a309eaf318e335dd57b2189e0f3
data/.gitignore ADDED
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.6.3
data/.travis.yml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ sudo: false
3
+ language: ruby
4
+ cache: bundler
5
+ rvm:
6
+ - 2.6.3
7
+ before_install: gem install bundler -v 1.17.2
data/CHANGELOG.md ADDED
@@ -0,0 +1,3 @@
1
+
2
+ # 0.0.1
3
+ Initial release
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at gophan1992@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in yaka.gemspec
6
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,59 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ yaka (0.0.1)
5
+ dry-configurable
6
+ faker
7
+ faraday
8
+ oj
9
+ pry
10
+
11
+ GEM
12
+ remote: https://rubygems.org/
13
+ specs:
14
+ coderay (1.1.2)
15
+ concurrent-ruby (1.1.5)
16
+ diff-lcs (1.3)
17
+ dry-configurable (0.8.3)
18
+ concurrent-ruby (~> 1.0)
19
+ dry-core (~> 0.4, >= 0.4.7)
20
+ dry-core (0.4.7)
21
+ concurrent-ruby (~> 1.0)
22
+ faker (1.9.3)
23
+ i18n (>= 0.7)
24
+ faraday (0.15.4)
25
+ multipart-post (>= 1.2, < 3)
26
+ i18n (1.6.0)
27
+ concurrent-ruby (~> 1.0)
28
+ method_source (0.9.2)
29
+ multipart-post (2.1.1)
30
+ oj (3.7.12)
31
+ pry (0.12.2)
32
+ coderay (~> 1.1.0)
33
+ method_source (~> 0.9.0)
34
+ rake (10.5.0)
35
+ rspec (3.8.0)
36
+ rspec-core (~> 3.8.0)
37
+ rspec-expectations (~> 3.8.0)
38
+ rspec-mocks (~> 3.8.0)
39
+ rspec-core (3.8.0)
40
+ rspec-support (~> 3.8.0)
41
+ rspec-expectations (3.8.3)
42
+ diff-lcs (>= 1.2.0, < 2.0)
43
+ rspec-support (~> 3.8.0)
44
+ rspec-mocks (3.8.0)
45
+ diff-lcs (>= 1.2.0, < 2.0)
46
+ rspec-support (~> 3.8.0)
47
+ rspec-support (3.8.0)
48
+
49
+ PLATFORMS
50
+ ruby
51
+
52
+ DEPENDENCIES
53
+ bundler (~> 1.17)
54
+ rake (~> 10.0)
55
+ rspec (~> 3.0)
56
+ yaka!
57
+
58
+ BUNDLED WITH
59
+ 1.17.2
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 Igor Pavlov
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,41 @@
1
+ # yakaa
2
+
3
+ This gem is used to accept and receive payments from [Yandex Kassa](https://kassa.yandex.ru/docs/checkout-api/?shell).
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'yaka'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install yaka
20
+
21
+ ## Usage
22
+
23
+ TODO: Write usage instructions here
24
+
25
+ ## Development
26
+
27
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
28
+
29
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
30
+
31
+ ## Contributing
32
+
33
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/yaka. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
34
+
35
+ ## License
36
+
37
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
38
+
39
+ ## Code of Conduct
40
+
41
+ Everyone interacting in the yaka project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/yaka/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "yaka"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "pry"
14
+ Pry.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Yaka
4
+ class Amount < SerializableObject
5
+ REQUIRED_FIELDS = %i[value currency].freeze
6
+ OPTIONAL_FIELDS = %i[].freeze
7
+
8
+ attr_accessor(*REQUIRED_FIELDS)
9
+
10
+ def initialize(value:, currency: 'RUB')
11
+ @value = value
12
+ @currency = currency
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Yaka
4
+ module ClassMethods
5
+ HOST_URL = 'https://payment.yandex.net'
6
+ PAYMENTS_URL = '/api/v3/payments'
7
+
8
+ def publish_payment(payment, token = nil)
9
+ raise Yaka::Error, 'Only payment should be sent to API' unless payment.is_a?(Yaka::Payment)
10
+
11
+ data = payment.to_json
12
+
13
+ conn = Faraday.new(url: HOST_URL) # create a new Connection with base URL
14
+ conn.basic_auth(Yaka.config.shop_id, Yaka.config.private_key) # set the Authentication header
15
+
16
+ @result = conn.post do |req|
17
+ req.url PAYMENTS_URL
18
+ req.headers['Content-Type'] = 'application/json'
19
+ req.headers['Idempotence-Key'] = token
20
+ req.body = data
21
+ end
22
+
23
+ JSON.parse(@result.body)
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Yaka
4
+ class Payment < SerializableObject
5
+
6
+ REQUIRED_FIELDS = %i[amount confirmation capture].freeze
7
+ OPTIONAL_FIELDS = %i[description receipt payment_token metadata].freeze
8
+
9
+ attr_accessor(*REQUIRED_FIELDS)
10
+ attr_accessor(*OPTIONAL_FIELDS)
11
+
12
+ def initialize(amount:, client_ip: nil, description: nil, metadata: nil, receipt: nil, payment_token: nil, confirmation: { type: "redirect", return_url: Yaka.config.redirect_url}, capture: true)
13
+ @amount = amount
14
+ @receipt = receipt
15
+ @description = description
16
+ @payment_token = payment_token
17
+ @confirmation = confirmation
18
+ @capture = capture
19
+ @metadata = metadata
20
+ @client_ip = client_ip
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Yaka
4
+ class Receipt < SerializableObject
5
+ # Tax system codes
6
+ # 1: Общая система налогообложения
7
+ # 2: Упрощенная (УСН, доходы)
8
+ # 3: Упрощенная (УСН, доходы минус расходы)
9
+ # 4: Единый налог на вмененный доход (ЕНВД)
10
+ # 5: Единый сельскохозяйственный налог (ЕСН)
11
+ # 6: Патентная система налогообложения
12
+
13
+ REQUIRED_FIELDS = %i[items].freeze
14
+ OPTIONAL_FIELDS = %i[phone email tax_system_code].freeze
15
+
16
+ attr_accessor(*REQUIRED_FIELDS)
17
+ attr_accessor(*OPTIONAL_FIELDS)
18
+
19
+ def initialize(items: [], phone: nil, email: nil, tax_system_code: nil)
20
+ @items = items
21
+ @phone = phone
22
+ @email = email
23
+ @tax_system_code = tax_system_code
24
+ raise Yaka::Error, 'Invalid input parameters: phone or email should be present' if @phone.nil? && @email.nil?
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,66 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Yaka
4
+ class ReceiptItem < SerializableObject
5
+ # Vat codes
6
+ #
7
+ # 1: Без НДС
8
+ # 2: НДС по ставке 0%
9
+ # 3: НДС по ставке 10%
10
+ # 4: НДС чека по ставке 20%
11
+ # 5: НДС чека по расчетной ставке 10/110
12
+ # 6: НДС чека по расчетной ставке 20/120
13
+ #
14
+ # Payment subjects
15
+ # commodity: Товар
16
+ # excise: Подакцизный товар
17
+ # job: Работа
18
+ # service: Услуга
19
+ # gambling_bet: Ставка в азартной игре
20
+ # gambling_prize: Выигрыш в азартной игре
21
+ # lottery: Лотерейный билет
22
+ # lottery_prize: Выигрыш в лотерею
23
+ # intellectual_activity: Результаты интеллектуальной деятельности
24
+ # payment: Платеж
25
+ # agent_commission: Агентское вознаграждение
26
+ # property_right: Имущественные права
27
+ # non_operating_gain: Внереализационный доход
28
+ # insurance_premium: Страховой сбор
29
+ # sales_tax: Торговый сбор
30
+ # resort_fee: Курортный сбор
31
+ # composite: Несколько вариантов
32
+ # another: Другое
33
+ #
34
+ # Payment mode
35
+ # full_prepayment: Полная предоплата
36
+ # partial_prepayment: Частичная предоплата
37
+ # advance: Аванс
38
+ # full_payment: Полный расчет
39
+ # partial_payment: Частичный расчет и кредит
40
+ # credit: Кредит
41
+ # credit_payment: Выплата по кредиту
42
+ REQUIRED_FIELDS = %i[description amount quantity vat_code].freeze
43
+ OPTIONAL_FIELDS = %i[payment_subject payment_mode].freeze
44
+
45
+ attr_accessor(*REQUIRED_FIELDS)
46
+ attr_accessor(*OPTIONAL_FIELDS)
47
+
48
+ def initialize(description:, amount:, quantity:, vat_code:, payment_subject: nil, payment_mode: nil)
49
+ @description = description
50
+ @amount = amount
51
+ @quantity = quantity
52
+ @vat_code = vat_code
53
+ @payment_subject = payment_subject
54
+ @payment_mode = payment_mode
55
+ end
56
+
57
+ def to_json(*_args)
58
+ {
59
+ description: @description,
60
+ amount: @amount,
61
+ quantity: @quantity,
62
+ vat_code: @vat_code
63
+ }.to_json
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,19 @@
1
+ module Yaka
2
+ class SerializableObject
3
+ def to_json(*_args)
4
+ required_fields = self.class.const_get(:REQUIRED_FIELDS)
5
+ initial = required_fields.each_with_object({}) do |field_name, result|
6
+ result[field_name] = public_send(field_name)
7
+ end
8
+
9
+ optional_fields = self.class.const_get(:OPTIONAL_FIELDS)
10
+
11
+ optional_fields.each do |field_name|
12
+ value = public_send(field_name)
13
+ initial[field_name] = value unless value.nil?
14
+ end
15
+
16
+ initial.to_json
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,3 @@
1
+ module Yaka
2
+ VERSION = "0.0.1"
3
+ end
data/lib/yaka.rb ADDED
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'dry-configurable'
4
+ require 'yaka/version'
5
+ require 'yaka/serializable_object'
6
+ require 'yaka/amount'
7
+ require 'yaka/class_methods'
8
+ require 'yaka/payment'
9
+ require 'yaka/receipt'
10
+ require 'yaka/receipt_item'
11
+ require 'faraday'
12
+
13
+ module Yaka
14
+ class Error < StandardError; end
15
+
16
+ extend Dry::Configurable
17
+
18
+ setting :shop_id, '123123.cer'
19
+
20
+ setting :private_key, 'ololo'
21
+
22
+ setting :redirect_url, 'example.com/callbacks'
23
+
24
+ extend ClassMethods
25
+ end
data/yaka.gemspec ADDED
@@ -0,0 +1,47 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "yaka/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "yaka"
8
+ spec.version = Yaka::VERSION
9
+ spec.authors = ["Igor Pavlov"]
10
+ spec.email = ["gophan1992@gmail.com"]
11
+
12
+ spec.summary = %q{This is a modern version of yandex kassa implementation}
13
+ spec.description = %q{This gem is used to receive and process yandex kassa payments.}
14
+ spec.homepage = "https://github.com/beastia/yaka"
15
+ spec.license = "MIT"
16
+
17
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
19
+ if spec.respond_to?(:metadata)
20
+ spec.metadata["allowed_push_host"] = "https://rubygems.org"
21
+
22
+ spec.metadata["homepage_uri"] = spec.homepage
23
+ spec.metadata["source_code_uri"] = "https://github.com/beastia/yaka"
24
+ spec.metadata["changelog_uri"] = "https://github.com/beastia/yaka/blob/master/CHANGELOG.md"
25
+ else
26
+ raise "RubyGems 2.0 or newer is required to protect against " \
27
+ "public gem pushes."
28
+ end
29
+
30
+ # Specify which files should be added to the gem when it is released.
31
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
32
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
33
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
34
+ end
35
+ spec.bindir = "exe"
36
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
37
+ spec.require_paths = ["lib"]
38
+
39
+ spec.add_development_dependency "bundler", "~> 1.17"
40
+ spec.add_development_dependency "rake", "~> 10.0"
41
+ spec.add_development_dependency "rspec", "~> 3.0"
42
+ spec.add_dependency "pry"
43
+ spec.add_dependency 'dry-configurable'
44
+ spec.add_dependency 'oj'
45
+ spec.add_dependency 'faraday'
46
+ spec.add_dependency 'faker'
47
+ end
metadata ADDED
@@ -0,0 +1,181 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: yaka
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Igor Pavlov
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2019-06-03 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.17'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.17'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: pry
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: dry-configurable
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: oj
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: faraday
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: faker
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ description: This gem is used to receive and process yandex kassa payments.
126
+ email:
127
+ - gophan1992@gmail.com
128
+ executables: []
129
+ extensions: []
130
+ extra_rdoc_files: []
131
+ files:
132
+ - ".gitignore"
133
+ - ".rspec"
134
+ - ".ruby-version"
135
+ - ".travis.yml"
136
+ - CHANGELOG.md
137
+ - CODE_OF_CONDUCT.md
138
+ - Gemfile
139
+ - Gemfile.lock
140
+ - LICENSE.txt
141
+ - README.md
142
+ - Rakefile
143
+ - bin/console
144
+ - bin/setup
145
+ - lib/yaka.rb
146
+ - lib/yaka/amount.rb
147
+ - lib/yaka/class_methods.rb
148
+ - lib/yaka/payment.rb
149
+ - lib/yaka/receipt.rb
150
+ - lib/yaka/receipt_item.rb
151
+ - lib/yaka/serializable_object.rb
152
+ - lib/yaka/version.rb
153
+ - yaka.gemspec
154
+ homepage: https://github.com/beastia/yaka
155
+ licenses:
156
+ - MIT
157
+ metadata:
158
+ allowed_push_host: https://rubygems.org
159
+ homepage_uri: https://github.com/beastia/yaka
160
+ source_code_uri: https://github.com/beastia/yaka
161
+ changelog_uri: https://github.com/beastia/yaka/blob/master/CHANGELOG.md
162
+ post_install_message:
163
+ rdoc_options: []
164
+ require_paths:
165
+ - lib
166
+ required_ruby_version: !ruby/object:Gem::Requirement
167
+ requirements:
168
+ - - ">="
169
+ - !ruby/object:Gem::Version
170
+ version: '0'
171
+ required_rubygems_version: !ruby/object:Gem::Requirement
172
+ requirements:
173
+ - - ">="
174
+ - !ruby/object:Gem::Version
175
+ version: '0'
176
+ requirements: []
177
+ rubygems_version: 3.0.3
178
+ signing_key:
179
+ specification_version: 4
180
+ summary: This is a modern version of yandex kassa implementation
181
+ test_files: []