sbrf_merchant 0.1.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
+ SHA1:
3
+ metadata.gz: 1c7b0abcb8bb7d3a491a2cdabb2c991a6bb2d082
4
+ data.tar.gz: 9b8475c67e089e38d5b382e964fe698f78ffc3a9
5
+ SHA512:
6
+ metadata.gz: bde079a916f893446f0f08627155082455b56ac6782519c85fe1ca39b6ef778f5ac67a9cdb242aa0ff6cc61c76795d7d14eef5cddcfe39d33a37e6abb3dbbc31
7
+ data.tar.gz: 0f00b3553e6aad115ffc14042ca747219ebe0c5d779eb90b53f9ff49fb8ad5e9067f43d6416b68dff46ca7c95ec30826e140d2094bdfb94a7d7877c702fa82c8
data/.editorconfig ADDED
@@ -0,0 +1,12 @@
1
+ root = true
2
+
3
+ [*]
4
+ indent_style = space
5
+ indent_size = 2
6
+ end_of_line = lf
7
+ charset = utf-8
8
+ trim_trailing_whitespace = true
9
+ insert_final_newline = true
10
+
11
+ [*.{sh,markdown}]
12
+ indent_size = 4
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/.travis.yml ADDED
@@ -0,0 +1,9 @@
1
+ sudo: false
2
+ language: ruby
3
+ cache: bundler
4
+ rvm:
5
+ - 2.5.1
6
+ - 2.4.4
7
+ - 2.3.7
8
+ - 2.2.10
9
+ before_install: gem install bundler -v 1.16.5
data/CHANGELOG.md ADDED
@@ -0,0 +1,2 @@
1
+ # Changelog 0.1.1
2
+ - Add support of OneStage Order (register, cancel, refund, status)
@@ -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 kozlovea8@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 sberbank_merchant_api.gemspec
6
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Eugene Kozlov
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,75 @@
1
+ # Sberbank Merchant [![Build Status](https://travis-ci.org/abstractart/sbrf_merchant.svg?branch=master)](https://travis-ci.org/abstractart/sbrf_merchant) [![Gem Version](https://badge.fury.io/rb/sbrf_merchant.svg)](https://badge.fury.io/rb/sbrf_merchant)
2
+ Ruby wrapper for the Sberbank Merchant API. [Documentation (RU)](https://securepayments.sberbank.ru/wiki/doku.php/integration:api:start)
3
+ ## Installation
4
+
5
+ ### Manually from RubyGems.org ###
6
+
7
+ ```sh
8
+ % gem install sbrf_merchant
9
+ ```
10
+
11
+ ### Or if you are using Bundler ###
12
+
13
+ ```ruby
14
+ # Gemfile
15
+ gem 'sbrf_merchant'
16
+ ```
17
+
18
+ ## Configuration
19
+
20
+ ```ruby
21
+ SbrfMerchant.configure do |config|
22
+ config.userName = '<Merchant Username>'
23
+ config.password = '<Merchant Password>'
24
+ config.host = '<Sberbank API Host>'
25
+ end
26
+ ```
27
+
28
+ # Usage Examples
29
+ ```ruby
30
+ # First of all you need create order object
31
+ new_order = SbrfMerchant::Order::OneStage.new(orderNumber: orderNumber)
32
+ already_created_order = SbrfMerchant::Order::OneStage.new(orderNumber: orderNumber, orderId: orderId)
33
+ ```
34
+ ## Register Order
35
+ ```ruby
36
+ require 'securerandom'
37
+ order = SbrfMerchant::Order::OneStage.new(orderNumber: SecureRandom.hex)
38
+ response = order.register(amount: 10000, returnUrl: 'http:/localhost:3000')
39
+
40
+ order.orderId # returns unique Id in Sberbank system
41
+ response.success? # true
42
+ response.formUrl # "https://3dsec.sberbank.ru/payment/merchants/sbersafe/payment_ru.html?mdOrder=<orderId>"
43
+ ```
44
+ ## Order Status
45
+ ```ruby
46
+ order = SbrfMerchant::Order::OneStage.new(orderNumber: orderNumber, orderId: orderId)
47
+ response = order.get_info
48
+ response.not_paid? # true or false
49
+ ```
50
+ ## Refund
51
+ ```ruby
52
+
53
+ refund_amount = 1000
54
+ order = SbrfMerchant::Order::OneStage.new(orderNumber: orderNumber, orderId: orderId)
55
+ response = order.refund(refund_amount)
56
+ response.success? # true or false
57
+ ```
58
+ ## Cancel
59
+ ```ruby
60
+
61
+ order = SbrfMerchant::Order::OneStage.new(orderNumber: orderNumber, orderId: orderId)
62
+ response = order.cancel
63
+ response.success? # true or false
64
+ ```
65
+ ## Supported Ruby Versions (Travis CI)
66
+
67
+ - 2.5.1
68
+ - 2.4.4
69
+ - 2.3.7
70
+ - 2.2.10
71
+
72
+ ## Copyright
73
+ Copyright (c) 2018 Eugene Kozlov. See [LICENSE][] for details.
74
+
75
+ [license]: LICENSE.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 'sbrf_merchant'
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 'irb'
14
+ IRB.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,16 @@
1
+ require 'sbrf_merchant/order/one_stage'
2
+
3
+ module SbrfMerchant
4
+ class << self
5
+ attr_accessor :configuration
6
+ end
7
+
8
+ def self.configure
9
+ self.configuration ||= Configuration.new
10
+ yield(configuration)
11
+ end
12
+
13
+ class Configuration
14
+ attr_accessor :host, :userName, :password
15
+ end
16
+ end
@@ -0,0 +1,13 @@
1
+ module SbrfMerchant
2
+ module Api
3
+ module Action
4
+ REST = '/payment/rest/'.freeze
5
+ module OneStage
6
+ REFUND_ORDER = "#{REST}refund.do".freeze
7
+ REGISTER_ORDER = "#{REST}register.do".freeze
8
+ ORDER_STATUS = "#{REST}getOrderStatusExtended.do".freeze
9
+ CANCEL_ORDER = "#{REST}reverse.do".freeze
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,33 @@
1
+ require 'faraday'
2
+ require 'active_support/core_ext/hash/indifferent_access'
3
+ require 'json'
4
+
5
+ module SbrfMerchant
6
+ module Api
7
+ class Client
8
+ attr_accessor :host, :userName, :password
9
+
10
+ def initialize(host:, userName:, password:)
11
+ @host = host
12
+ @userName = userName
13
+ @password = password
14
+ end
15
+
16
+ def process_request(path, params)
17
+ JSON.parse(http_client.post(path, params).body).with_indifferent_access
18
+ end
19
+
20
+ private
21
+
22
+ def http_client
23
+ @client ||= Faraday.new(
24
+ url: host,
25
+ params: {
26
+ userName: userName,
27
+ password: password
28
+ }
29
+ )
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,7 @@
1
+ module SbrfMerchant
2
+ module Api
3
+ module ErrorCode
4
+ SUCCESS = 0
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,13 @@
1
+ module SbrfMerchant
2
+ module Api
3
+ module OrderStatus
4
+ NOT_PAID = 0
5
+ PREAUTHORIZED_AMOUNT_HOLD = 1
6
+ COMPLETED = 2
7
+ CANCEL = 3
8
+ REFUND = 4
9
+ AUTH_ON_BANK_ISSUER_SIDE = 5
10
+ REJECTED = 6
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,17 @@
1
+ require 'dry-container'
2
+
3
+ module SbrfMerchant
4
+ module Config
5
+ class Container
6
+ extend Dry::Container::Mixin
7
+
8
+ register 'api_client' do
9
+ SbrfMerchant::Api::Client.new(
10
+ host: SbrfMerchant.configuration.host,
11
+ userName: SbrfMerchant.configuration.userName,
12
+ password: SbrfMerchant.configuration.password
13
+ )
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,79 @@
1
+ require 'sbrf_merchant/api/client'
2
+ require 'sbrf_merchant/api/action'
3
+ require 'sbrf_merchant/config/container'
4
+ require 'dry-auto_inject'
5
+ require 'sbrf_merchant/response/base'
6
+ require 'sbrf_merchant/response/create_order'
7
+ require 'sbrf_merchant/response/order_status'
8
+
9
+ module SbrfMerchant
10
+ module Order
11
+ class OneStage
12
+ include Dry::AutoInject(Config::Container).hash['api_client']
13
+
14
+ def register(**args)
15
+ response = Response::CreateOrder.new(
16
+ api_client.process_request(
17
+ SbrfMerchant::Api::Action::OneStage::REGISTER_ORDER,
18
+ args.merge(default_request_params)
19
+ )
20
+ )
21
+ @orderId = response.orderId
22
+
23
+ response
24
+ end
25
+
26
+ def get_info
27
+ Response::OrderStatus.new(
28
+ api_client.process_request(
29
+ SbrfMerchant::Api::Action::OneStage::ORDER_STATUS,
30
+ default_request_params
31
+ )
32
+ )
33
+ end
34
+
35
+ def initialize(orderId: nil, orderNumber: nil, api_client:)
36
+ @orderId = orderId
37
+ @orderNumber = orderNumber
38
+ @api_client = api_client
39
+ end
40
+
41
+ def cancel
42
+ Response::Base.new(
43
+ api_client.process_request(
44
+ SbrfMerchant::Api::Action::OneStage::CANCEL_ORDER,
45
+ default_request_params
46
+ )
47
+ )
48
+ end
49
+
50
+ def refund(amount)
51
+ Response::Base.new(
52
+ api_client.process_request(
53
+ SbrfMerchant::Api::Action::OneStage::REFUND_ORDER,
54
+ default_request_params.merge(amount: amount)
55
+ )
56
+ )
57
+ end
58
+
59
+ def orderId
60
+ @orderId.freeze
61
+ end
62
+
63
+ def orderNumber
64
+ @orderNumber.freeze
65
+ end
66
+
67
+ private
68
+
69
+ def default_request_params
70
+ params = {}
71
+
72
+ params[:orderId] = orderId if orderId
73
+ params[:orderNumber] = orderNumber if orderNumber
74
+
75
+ params
76
+ end
77
+ end
78
+ end
79
+ end
@@ -0,0 +1,17 @@
1
+ require 'sbrf_merchant/api/error_code'
2
+ module SbrfMerchant
3
+ module Response
4
+ class Base
5
+ attr_reader :errorCode, :errorMessage
6
+
7
+ def initialize(args = {})
8
+ @errorCode = args[:errorCode]
9
+ @errorMessage = args[:errorMessage]
10
+ end
11
+
12
+ def success?
13
+ errorCode == SbrfMerchant::Api::ErrorCode::SUCCESS
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,17 @@
1
+ module SbrfMerchant
2
+ module Response
3
+ class CreateOrder < Response::Base
4
+ attr_reader :formUrl, :orderId
5
+
6
+ def initialize(args = {})
7
+ super(args)
8
+ @formUrl = args[:formUrl]
9
+ @orderId = args[:orderId]
10
+ end
11
+
12
+ def success?
13
+ !formUrl.nil? && !orderId.nil?
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,68 @@
1
+ module SbrfMerchant
2
+ module Response
3
+ class OrderStatus < Response::Base
4
+ AVAILABLE_FIELDS = %i[
5
+ orderNumber
6
+ orderStatus
7
+ actionCode
8
+ actionCodeDescription
9
+ amount
10
+ currency
11
+ date
12
+ ip
13
+ merchantOrderParams
14
+ attributes
15
+ cardAuthInfo
16
+ authDateTime
17
+ terminalId
18
+ authRefnum
19
+ paymentAmountInfo
20
+ bankInfo
21
+ ].freeze
22
+
23
+ attr_reader(*AVAILABLE_FIELDS)
24
+
25
+ def initialize(args = {})
26
+ super(args)
27
+
28
+ AVAILABLE_FIELDS.each do |field|
29
+ instance_variable_set("@#{field}", args[field]) unless args[field].nil?
30
+ end
31
+ end
32
+
33
+ def not_paid?
34
+ status_equals?(OrderStatus::NOT_PAID)
35
+ end
36
+
37
+ def preauthorized?
38
+ status_equals?(OrderStatus::PREAUTHORIZED_AMOUNT_HOLD)
39
+ end
40
+
41
+ def completed?
42
+ status_equals?(OrderStatus::COMPLETED)
43
+ end
44
+
45
+ def cancelled?
46
+ status_equals?(OrderStatus::CANCEL)
47
+ end
48
+
49
+ def refunded?
50
+ status_equals?(OrderStatus::REFUND)
51
+ end
52
+
53
+ def auth_on_bank_issuer_side?
54
+ status_equals?(OrderStatus::AUTH_ON_BANK_ISSUER_SIDE)
55
+ end
56
+
57
+ def rejected?
58
+ status_equals?(OrderStatus::REJECTED)
59
+ end
60
+
61
+ private
62
+
63
+ def status_equals?(status)
64
+ orderStatus == status
65
+ end
66
+ end
67
+ end
68
+ end
@@ -0,0 +1,3 @@
1
+ module SbrfMerchant
2
+ VERSION = '0.1.1'.freeze
3
+ end
@@ -0,0 +1,31 @@
1
+ lib = File.expand_path('lib', __dir__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+ require 'sbrf_merchant/version'
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = 'sbrf_merchant'
7
+ spec.version = SbrfMerchant::VERSION
8
+ spec.authors = ['Eugene Kozlov']
9
+ spec.email = ['kozlovea8@gmail.com']
10
+
11
+ spec.summary = 'Sberbank Merchant'
12
+ spec.description = 'Sberbank Merchant API Client for Ruby'
13
+ spec.homepage = 'https://github.com/abstractart/sbrf_merchant'
14
+ spec.license = 'MIT'
15
+
16
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
17
+ f.match(%r{^(test|spec|features)/})
18
+ end
19
+ spec.bindir = 'exe'
20
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
+ spec.require_paths = ['lib']
22
+
23
+ spec.add_development_dependency 'bundler', '~> 1.16'
24
+ spec.add_development_dependency 'pry'
25
+ spec.add_development_dependency 'rake', '~> 10.0'
26
+ spec.add_development_dependency 'rspec', '~> 3.0'
27
+ spec.add_runtime_dependency 'activesupport'
28
+ spec.add_runtime_dependency 'dry-auto_inject'
29
+ spec.add_runtime_dependency 'faraday'
30
+ spec.add_runtime_dependency 'json'
31
+ end
metadata ADDED
@@ -0,0 +1,180 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: sbrf_merchant
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - Eugene Kozlov
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2018-09-29 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.16'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.16'
27
+ - !ruby/object:Gem::Dependency
28
+ name: pry
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '10.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '10.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: activesupport
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: dry-auto_inject
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: json
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: Sberbank Merchant API Client for Ruby
126
+ email:
127
+ - kozlovea8@gmail.com
128
+ executables: []
129
+ extensions: []
130
+ extra_rdoc_files: []
131
+ files:
132
+ - ".editorconfig"
133
+ - ".gitignore"
134
+ - ".rspec"
135
+ - ".travis.yml"
136
+ - CHANGELOG.md
137
+ - CODE_OF_CONDUCT.md
138
+ - Gemfile
139
+ - LICENSE.txt
140
+ - README.md
141
+ - Rakefile
142
+ - bin/console
143
+ - bin/setup
144
+ - lib/sbrf_merchant.rb
145
+ - lib/sbrf_merchant/api/action.rb
146
+ - lib/sbrf_merchant/api/client.rb
147
+ - lib/sbrf_merchant/api/error_code.rb
148
+ - lib/sbrf_merchant/api/order_status.rb
149
+ - lib/sbrf_merchant/config/container.rb
150
+ - lib/sbrf_merchant/order/one_stage.rb
151
+ - lib/sbrf_merchant/response/base.rb
152
+ - lib/sbrf_merchant/response/create_order.rb
153
+ - lib/sbrf_merchant/response/order_status.rb
154
+ - lib/sbrf_merchant/version.rb
155
+ - sbrf_merchant.gemspec
156
+ homepage: https://github.com/abstractart/sbrf_merchant
157
+ licenses:
158
+ - MIT
159
+ metadata: {}
160
+ post_install_message:
161
+ rdoc_options: []
162
+ require_paths:
163
+ - lib
164
+ required_ruby_version: !ruby/object:Gem::Requirement
165
+ requirements:
166
+ - - ">="
167
+ - !ruby/object:Gem::Version
168
+ version: '0'
169
+ required_rubygems_version: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ requirements: []
175
+ rubyforge_project:
176
+ rubygems_version: 2.6.14
177
+ signing_key:
178
+ specification_version: 4
179
+ summary: Sberbank Merchant
180
+ test_files: []