payassist 0.1.1

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 277745d29064bc245231e5a6a87239ec33482a2c12eb147fe6b63b70ba446872
4
+ data.tar.gz: e6e2f4d60f43fc9e71b53db38ec6f882c86a4390ef2d9bc61f8434a4cafcdd13
5
+ SHA512:
6
+ metadata.gz: d7163895435b2913bc49e9b7aea5ac9c258eb5cfa0d0f00a51e682d150737ef0e57589fcc0df0f2a397e461383065d3d78f45c904cb33e7f408383268edc5204
7
+ data.tar.gz: d6e787894e2d09a24628ac53d6714f2161a205616282ff4ceea8bd39dfa419297c91b5fda2c1aed2d10e5539796f86f2abce900b1ab3f5e700a950ab2a1de20f
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,21 @@
1
+ require:
2
+ - rubocop-rspec
3
+ - rubocop-rake
4
+
5
+ AllCops:
6
+ TargetRubyVersion: 2.6
7
+ NewCops: enable
8
+
9
+ Style/StringLiterals:
10
+ Enabled: true
11
+ EnforcedStyle: double_quotes
12
+
13
+ Style/StringLiteralsInInterpolation:
14
+ Enabled: true
15
+ EnforcedStyle: double_quotes
16
+
17
+ Layout/LineLength:
18
+ Max: 120
19
+
20
+ Lint/DuplicateMethods:
21
+ Enabled: false
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2024-04-01
4
+
5
+ - Initial release
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at a.kuznetsov@okft.io. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile ADDED
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in firekassa.gemspec
6
+ gemspec
7
+
8
+ gem "rake", "~> 13.0"
9
+
10
+ gem "rspec", "~> 3.0"
11
+
12
+ gem "rubocop", "~> 1.21"
13
+ gem "rubocop-rake"
14
+ gem "rubocop-rspec"
data/Gemfile.lock ADDED
@@ -0,0 +1,112 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ payassist (0.1.1)
5
+ faraday (~> 1.0)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ addressable (2.8.4)
11
+ public_suffix (>= 2.0.2, < 6.0)
12
+ ast (2.4.2)
13
+ coderay (1.1.3)
14
+ crack (0.4.5)
15
+ rexml
16
+ diff-lcs (1.5.0)
17
+ faraday (1.10.3)
18
+ faraday-em_http (~> 1.0)
19
+ faraday-em_synchrony (~> 1.0)
20
+ faraday-excon (~> 1.1)
21
+ faraday-httpclient (~> 1.0)
22
+ faraday-multipart (~> 1.0)
23
+ faraday-net_http (~> 1.0)
24
+ faraday-net_http_persistent (~> 1.0)
25
+ faraday-patron (~> 1.0)
26
+ faraday-rack (~> 1.0)
27
+ faraday-retry (~> 1.0)
28
+ ruby2_keywords (>= 0.0.4)
29
+ faraday-em_http (1.0.0)
30
+ faraday-em_synchrony (1.0.0)
31
+ faraday-excon (1.1.0)
32
+ faraday-httpclient (1.0.1)
33
+ faraday-multipart (1.0.4)
34
+ multipart-post (~> 2)
35
+ faraday-net_http (1.0.1)
36
+ faraday-net_http_persistent (1.2.0)
37
+ faraday-patron (1.0.0)
38
+ faraday-rack (1.0.0)
39
+ faraday-retry (1.0.3)
40
+ hashdiff (1.0.1)
41
+ json (2.6.3)
42
+ method_source (1.0.0)
43
+ multipart-post (2.3.0)
44
+ parallel (1.22.1)
45
+ parser (3.2.1.0)
46
+ ast (~> 2.4.1)
47
+ pry (0.14.2)
48
+ coderay (~> 1.1)
49
+ method_source (~> 1.0)
50
+ public_suffix (5.0.1)
51
+ rainbow (3.1.1)
52
+ rake (13.0.6)
53
+ regexp_parser (2.7.0)
54
+ rexml (3.2.5)
55
+ rspec (3.9.0)
56
+ rspec-core (~> 3.9.0)
57
+ rspec-expectations (~> 3.9.0)
58
+ rspec-mocks (~> 3.9.0)
59
+ rspec-core (3.9.1)
60
+ rspec-support (~> 3.9.1)
61
+ rspec-expectations (3.9.0)
62
+ diff-lcs (>= 1.2.0, < 2.0)
63
+ rspec-support (~> 3.9.0)
64
+ rspec-mocks (3.9.1)
65
+ diff-lcs (>= 1.2.0, < 2.0)
66
+ rspec-support (~> 3.9.0)
67
+ rspec-support (3.9.2)
68
+ rubocop (1.45.1)
69
+ json (~> 2.3)
70
+ parallel (~> 1.10)
71
+ parser (>= 3.2.0.0)
72
+ rainbow (>= 2.2.2, < 4.0)
73
+ regexp_parser (>= 1.8, < 3.0)
74
+ rexml (>= 3.2.5, < 4.0)
75
+ rubocop-ast (>= 1.24.1, < 2.0)
76
+ ruby-progressbar (~> 1.7)
77
+ unicode-display_width (>= 2.4.0, < 3.0)
78
+ rubocop-ast (1.26.0)
79
+ parser (>= 3.2.1.0)
80
+ rubocop-capybara (2.17.1)
81
+ rubocop (~> 1.41)
82
+ rubocop-rake (0.6.0)
83
+ rubocop (~> 1.0)
84
+ rubocop-rspec (2.19.0)
85
+ rubocop (~> 1.33)
86
+ rubocop-capybara (~> 2.17)
87
+ ruby-progressbar (1.13.0)
88
+ ruby2_keywords (0.0.5)
89
+ unicode-display_width (2.4.2)
90
+ vcr (5.1.0)
91
+ webmock (3.18.1)
92
+ addressable (>= 2.8.0)
93
+ crack (>= 0.3.2)
94
+ hashdiff (>= 0.4.0, < 2.0.0)
95
+
96
+ PLATFORMS
97
+ arm64-darwin-21
98
+ x86_64-linux
99
+
100
+ DEPENDENCIES
101
+ payassist!
102
+ pry (~> 0.12)
103
+ rake (~> 13.0)
104
+ rspec (~> 3.0)
105
+ rubocop (~> 1.21)
106
+ rubocop-rake
107
+ rubocop-rspec
108
+ vcr (~> 5.1)
109
+ webmock (~> 3.18)
110
+
111
+ BUNDLED WITH
112
+ 2.4.7
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2024 Alexey Kuznetsov
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,56 @@
1
+ # Payassist
2
+
3
+ Ruby client for https://developer.payassist.io/ru/p2p
4
+
5
+ ## Installation
6
+
7
+ bundle install payassist
8
+
9
+ ## Usage
10
+
11
+ ```ruby
12
+
13
+ Payassist.configure do |config|
14
+ config.base_url = "https://api.payassist.io/p2p"
15
+ config.client_id = "<YOUR CLIENT ID>"
16
+ config.client_secret = "<YOUR CLIENT SECRET>"
17
+ end
18
+
19
+ # To get balance
20
+ balance_data = Payassist::Balance.new.get({
21
+ "provider" => ["CARD"],
22
+ "currency" => ["RUB"]
23
+ })['responseData']['accounts']
24
+
25
+ # Deposit money on account
26
+ bill_payment_data = Payassist::BillPayment.new.create_host2host(request_data)['responseData']
27
+
28
+ # To proceed withdrawal
29
+ transfer_data = Payassist::Transfer.new.p2card(request_data)['responseData']
30
+
31
+ # To check transactions
32
+ transactions_data = Payassist::Transaction.new.list(request_data)['responseData']
33
+
34
+ # To list SBP banks
35
+ banks_data = Payassist::Bank.new.all['responseData']
36
+
37
+ ```
38
+ **See more data in tests!**
39
+
40
+ ## Development
41
+
42
+ 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.
43
+
44
+ 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 the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
45
+
46
+ ## Contributing
47
+
48
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/payassist. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/payassist/blob/main/CODE_OF_CONDUCT.md).
49
+
50
+ ## License
51
+
52
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
53
+
54
+ ## Code of Conduct
55
+
56
+ Everyone interacting in the Payassist project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/payassist/blob/main/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ require "rubocop/rake_task"
9
+
10
+ RuboCop::RakeTask.new
11
+
12
+ task default: %i[spec rubocop]
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "payassist/config"
4
+ require "payassist/client"
5
+
6
+ module Payassist
7
+ # Get balance API
8
+ class Balance < Client
9
+ def get(data)
10
+ body = prepare_body("accountsBalance", data)
11
+ send_request(path: "accounts/fetch-balance", body: body)
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "payassist/config"
4
+ require "payassist/client"
5
+
6
+ module Payassist
7
+ # Get Banks API
8
+ class Bank < Client
9
+ def all
10
+ body = prepare_body("BanksAll", {})
11
+ send_request(path: "bank/all", body: body, method: :get)
12
+ end
13
+
14
+ def by_phone(number)
15
+ body = prepare_body("BanksAllByNumber", {})
16
+ send_request(path: "bank/#{number}", body: body, method: :get)
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "payassist/config"
4
+ require "payassist/client"
5
+
6
+ module Payassist
7
+ # Invoice API
8
+ class BillPayment < Client
9
+ def create_invoice(data)
10
+ body = prepare_body("CreateBillInvoice", data)
11
+ send_request(path: "bill-payment/invoice/create", body: body)
12
+ end
13
+
14
+ def create_invoice_host2host(data)
15
+ body = prepare_body("CreateBillInvoiceHost2Host", data)
16
+ send_request(path: "bill-payment/invoice-host2host/create", body: body)
17
+ end
18
+
19
+ def rate_p2p
20
+ body = prepare_body("PayRateExchange", {})
21
+ send_request(path: "bill-payment/rate_p2p", body: body)
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,73 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Base implementation of the MTN API client
4
+
5
+ # Includes methods common to collections, disbursements and remittances
6
+
7
+ require "faraday"
8
+ require "base64"
9
+
10
+ require "payassist/config"
11
+ require "payassist/errors"
12
+
13
+ module Payassist
14
+ # Base API client
15
+ class Client
16
+ def send_request(path:, headers: {}, body: {}, method: :post)
17
+ conn = faraday_with_block(url: Payassist.config.base_url)
18
+ conn.headers = build_headers(headers)
19
+ case method.to_s
20
+ when "get" then response = conn.get(path, body)
21
+ when "post" then response = conn.post(path, body.to_json)
22
+ end
23
+ interpret_response(response)
24
+ end
25
+
26
+ def interpret_response(resp)
27
+ body = resp.body.empty? ? "" : JSON.parse(resp.body)
28
+ response = {
29
+ body: body,
30
+ code: resp.status
31
+ }
32
+ handle_error(response[:body], response[:code]) unless resp.status >= 200 && resp.status < 300
33
+ body
34
+ end
35
+
36
+ def handle_error(response_body, response_code)
37
+ raise Payassist::Error.new(response_body, response_code)
38
+ end
39
+
40
+ private
41
+
42
+ def prepare_body(tx_name, data)
43
+ {
44
+ "header" => {
45
+ "txName" => tx_name
46
+ },
47
+ "reqData" => data
48
+ }
49
+ end
50
+
51
+ def build_headers(headers)
52
+ {
53
+ "Authorization" => "Basic #{build_api_token}",
54
+ "Content-Type" => "application/json"
55
+ }.merge(headers)
56
+ end
57
+
58
+ def faraday_with_block(options)
59
+ Faraday.new(options)
60
+ block = Payassist.config.faraday_block
61
+ if block
62
+ Faraday.new(options, &block)
63
+ else
64
+ Faraday.new(options)
65
+ end
66
+ end
67
+
68
+ def build_api_token
69
+ str = "#{Payassist.config.client_id}:#{Payassist.config.client_secret}"
70
+ Base64.encode64(str).gsub(/\n/, "")
71
+ end
72
+ end
73
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Payassist
4
+ # Configuration storage
5
+ class Config
6
+ attr_accessor :base_url, :client_secret, :client_id, :faraday_block
7
+
8
+ def initialize
9
+ @base_url = nil
10
+ @client_secret = nil
11
+ @client_id = nil
12
+ @faraday_block = nil
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Error handling for unsuccessful responses from the Payassist API
4
+
5
+ module Payassist
6
+ # Standard API error
7
+ class Error < StandardError
8
+ attr_reader :code, :data
9
+
10
+ def initialize(message, code)
11
+ @code = code
12
+ @data = message
13
+ super("Error code #{code} #{message}")
14
+ end
15
+ end
16
+
17
+ # Validation error
18
+ class ValidationError < StandardError
19
+ def initialize(msg = message)
20
+ super(msg)
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "payassist/config"
4
+ require "payassist/client"
5
+
6
+ module Payassist
7
+ # Get transactions data API
8
+ class Transaction < Client
9
+ def list(data)
10
+ body = prepare_body("fetchMerchTx", data)
11
+ send_request(path: "transfer/get-merchant-tx", body: body)
12
+ end
13
+
14
+ def get(data)
15
+ body = prepare_body("fetchOrderInfo", data)
16
+ send_request(path: "transfer/get-order-info", body: body)
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "payassist/config"
4
+ require "payassist/client"
5
+
6
+ module Payassist
7
+ # Transfer API
8
+ class Transfer < Client
9
+ def p2card(data)
10
+ body = prepare_body("P2Card", data)
11
+ send_request(path: "transfer/send-card-external", body: body)
12
+ end
13
+
14
+ def sbp(data)
15
+ body = prepare_body("SBP", data)
16
+ send_request(path: "transfer/send-sbp-external", body: body)
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Payassist
4
+ VERSION = "0.1.1"
5
+ end
data/lib/payassist.rb ADDED
@@ -0,0 +1,29 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "payassist/config"
4
+ require "payassist/version"
5
+
6
+ require "payassist/balance"
7
+ require "payassist/bank"
8
+ require "payassist/transfer"
9
+ require "payassist/bill_payment"
10
+ require "payassist/transaction"
11
+
12
+ # Head module
13
+ module Payassist
14
+ class << self
15
+ attr_accessor :config
16
+ end
17
+
18
+ def self.config
19
+ @config ||= Config.new
20
+ end
21
+
22
+ def self.reset
23
+ @config = Config.new
24
+ end
25
+
26
+ def self.configure
27
+ yield(config)
28
+ end
29
+ end
data/payassist.gemspec ADDED
@@ -0,0 +1,45 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/payassist/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "payassist"
7
+ spec.version = Payassist::VERSION
8
+ spec.authors = ["Alexey Kuznetsov"]
9
+ spec.email = ["a.kuznetsov@okft.io"]
10
+
11
+ spec.summary = "Ruby Client of Payassist API"
12
+ spec.description = "Ruby Client of Payassist API"
13
+ spec.homepage = "https://developer.payassist.io/ru/p2p/#intro"
14
+ spec.license = "MIT"
15
+ spec.required_ruby_version = ">= 2.6.0"
16
+
17
+ spec.metadata["allowed_push_host"] = "https://rubygems.org"
18
+
19
+ spec.metadata["homepage_uri"] = spec.homepage
20
+ spec.metadata["source_code_uri"] = "https://github.com/lxkuz/payassist-ruby-client"
21
+ spec.metadata["changelog_uri"] = "https://github.com/lxkuz/payassist-ruby-client/blob/main/CHANGELOG.md"
22
+
23
+ # Specify which files should be added to the gem when it is released.
24
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
25
+ spec.files = Dir.chdir(__dir__) do
26
+ `git ls-files -z`.split("\x0").reject do |f|
27
+ (File.expand_path(f) == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|circleci)|appveyor)})
28
+ end
29
+ end
30
+ spec.bindir = "exe"
31
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
32
+ spec.require_paths = ["lib"]
33
+
34
+ # Uncomment to register a new dependency of your gem
35
+ # spec.add_dependency "example-gem", "~> 1.0"
36
+
37
+ # For more information and examples about making a new gem, check out our
38
+ # guide at: https://bundler.io/guides/creating_gem.html
39
+
40
+ spec.add_dependency "faraday", "~> 1.0"
41
+ spec.add_development_dependency "pry", "~> 0.12"
42
+ spec.add_development_dependency "vcr", "~> 5.1"
43
+ spec.add_development_dependency "webmock", "~> 3.18"
44
+ spec.metadata["rubygems_mfa_required"] = "true"
45
+ end
data/sig/payassist.rbs ADDED
@@ -0,0 +1,4 @@
1
+ module Payassist
2
+ VERSION: String
3
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
+ end
metadata ADDED
@@ -0,0 +1,125 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: payassist
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - Alexey Kuznetsov
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2024-04-09 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: faraday
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.0'
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.12'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0.12'
41
+ - !ruby/object:Gem::Dependency
42
+ name: vcr
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '5.1'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '5.1'
55
+ - !ruby/object:Gem::Dependency
56
+ name: webmock
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3.18'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3.18'
69
+ description: Ruby Client of Payassist API
70
+ email:
71
+ - a.kuznetsov@okft.io
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - ".rspec"
77
+ - ".rubocop.yml"
78
+ - CHANGELOG.md
79
+ - CODE_OF_CONDUCT.md
80
+ - Gemfile
81
+ - Gemfile.lock
82
+ - LICENSE.txt
83
+ - README.md
84
+ - Rakefile
85
+ - lib/payassist.rb
86
+ - lib/payassist/balance.rb
87
+ - lib/payassist/bank.rb
88
+ - lib/payassist/bill_payment.rb
89
+ - lib/payassist/client.rb
90
+ - lib/payassist/config.rb
91
+ - lib/payassist/errors.rb
92
+ - lib/payassist/transaction.rb
93
+ - lib/payassist/transfer.rb
94
+ - lib/payassist/version.rb
95
+ - payassist.gemspec
96
+ - sig/payassist.rbs
97
+ homepage: https://developer.payassist.io/ru/p2p/#intro
98
+ licenses:
99
+ - MIT
100
+ metadata:
101
+ allowed_push_host: https://rubygems.org
102
+ homepage_uri: https://developer.payassist.io/ru/p2p/#intro
103
+ source_code_uri: https://github.com/lxkuz/payassist-ruby-client
104
+ changelog_uri: https://github.com/lxkuz/payassist-ruby-client/blob/main/CHANGELOG.md
105
+ rubygems_mfa_required: 'true'
106
+ post_install_message:
107
+ rdoc_options: []
108
+ require_paths:
109
+ - lib
110
+ required_ruby_version: !ruby/object:Gem::Requirement
111
+ requirements:
112
+ - - ">="
113
+ - !ruby/object:Gem::Version
114
+ version: 2.6.0
115
+ required_rubygems_version: !ruby/object:Gem::Requirement
116
+ requirements:
117
+ - - ">="
118
+ - !ruby/object:Gem::Version
119
+ version: '0'
120
+ requirements: []
121
+ rubygems_version: 3.1.6
122
+ signing_key:
123
+ specification_version: 4
124
+ summary: Ruby Client of Payassist API
125
+ test_files: []