tipalti-ruby 0.1.0

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: '083353594c3e8a1cc241532f294013094f9415a7541d4a2c5d2374527a498ca3'
4
+ data.tar.gz: 3a4d12a766b0c4541a86f20f443b7ff40c24ceb1346fc7b4087fed8af54e1bbb
5
+ SHA512:
6
+ metadata.gz: 7cdbfcda272242bf4522dd2f81d1bcb0bc2bd0fa8103c2acc7260434c8be95ca27f7c3564cf7510d0ef2ca5cbf3ea87af55f696bc12f849fad6b7d8021cd1374
7
+ data.tar.gz: 18de865a751a63dd0c62ce117c25c4cf882349b1503f52795e5a2dad1a7d7041ee60c08c9b901abc89eb96d554cf511c1ed2856dd7104e876aec54eb6e715ed0
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,49 @@
1
+ require:
2
+ - rubocop-rspec
3
+
4
+ AllCops:
5
+ NewCops: enable
6
+ SuggestExtensions: false
7
+ TargetRubyVersion: 2.6
8
+
9
+ Metrics/BlockLength:
10
+ Enabled: true
11
+ Exclude:
12
+ - spec/**/*
13
+
14
+ Naming/FileName:
15
+ Enabled: true
16
+ Exclude:
17
+ - lib/tipalti-ruby.rb
18
+
19
+ RSpec/ExampleLength:
20
+ Enabled: false
21
+
22
+ RSpec/FilePath:
23
+ Enabled: false
24
+
25
+ RSpec/InstanceVariable:
26
+ Enabled: false
27
+
28
+ RSpec/MultipleMemoizedHelpers:
29
+ Enabled: false
30
+
31
+ RSpec/SubjectStub:
32
+ Enabled: false
33
+
34
+ RSpec/VerifiedDoubles:
35
+ Enabled: false
36
+
37
+ Style/Documentation:
38
+ Enabled: false
39
+
40
+ Style/StringLiterals:
41
+ Enabled: true
42
+ EnforcedStyle: double_quotes
43
+
44
+ Style/StringLiteralsInInterpolation:
45
+ Enabled: true
46
+ EnforcedStyle: double_quotes
47
+
48
+ Layout/LineLength:
49
+ Max: 150
data/CHANGELOG.md ADDED
@@ -0,0 +1 @@
1
+ ## [Unreleased]
@@ -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 me@jordanell.com. 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,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "faraday", "~> 1.0", ">= 1.0.0"
6
+ gem "oauth2", "~> 2.0"
7
+
8
+ group :development, :test do
9
+ gem "rake", "~> 13.0.6"
10
+ gem "rspec", "~> 3.12.0"
11
+ gem "rspec_junit_formatter", "~> 0.6.0"
12
+ gem "rubocop", "~> 1.52.1"
13
+ gem "rubocop-rspec", "~> 2.22.0"
14
+ gem "webmock", "~> 3.18.1"
15
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,118 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ addressable (2.8.5)
5
+ public_suffix (>= 2.0.2, < 6.0)
6
+ ast (2.4.2)
7
+ crack (0.4.5)
8
+ rexml
9
+ diff-lcs (1.5.0)
10
+ faraday (1.10.3)
11
+ faraday-em_http (~> 1.0)
12
+ faraday-em_synchrony (~> 1.0)
13
+ faraday-excon (~> 1.1)
14
+ faraday-httpclient (~> 1.0)
15
+ faraday-multipart (~> 1.0)
16
+ faraday-net_http (~> 1.0)
17
+ faraday-net_http_persistent (~> 1.0)
18
+ faraday-patron (~> 1.0)
19
+ faraday-rack (~> 1.0)
20
+ faraday-retry (~> 1.0)
21
+ ruby2_keywords (>= 0.0.4)
22
+ faraday-em_http (1.0.0)
23
+ faraday-em_synchrony (1.0.0)
24
+ faraday-excon (1.1.0)
25
+ faraday-httpclient (1.0.1)
26
+ faraday-multipart (1.0.4)
27
+ multipart-post (~> 2)
28
+ faraday-net_http (1.0.1)
29
+ faraday-net_http_persistent (1.2.0)
30
+ faraday-patron (1.0.0)
31
+ faraday-rack (1.0.0)
32
+ faraday-retry (1.0.3)
33
+ hashdiff (1.0.1)
34
+ hashie (5.0.0)
35
+ json (2.6.3)
36
+ jwt (2.7.1)
37
+ multi_xml (0.6.0)
38
+ multipart-post (2.3.0)
39
+ oauth2 (2.0.9)
40
+ faraday (>= 0.17.3, < 3.0)
41
+ jwt (>= 1.0, < 3.0)
42
+ multi_xml (~> 0.5)
43
+ rack (>= 1.2, < 4)
44
+ snaky_hash (~> 2.0)
45
+ version_gem (~> 1.1)
46
+ parallel (1.23.0)
47
+ parser (3.2.2.3)
48
+ ast (~> 2.4.1)
49
+ racc
50
+ public_suffix (5.0.3)
51
+ racc (1.7.1)
52
+ rack (3.0.8)
53
+ rainbow (3.1.1)
54
+ rake (13.0.6)
55
+ regexp_parser (2.8.1)
56
+ rexml (3.2.6)
57
+ rspec (3.12.0)
58
+ rspec-core (~> 3.12.0)
59
+ rspec-expectations (~> 3.12.0)
60
+ rspec-mocks (~> 3.12.0)
61
+ rspec-core (3.12.2)
62
+ rspec-support (~> 3.12.0)
63
+ rspec-expectations (3.12.3)
64
+ diff-lcs (>= 1.2.0, < 2.0)
65
+ rspec-support (~> 3.12.0)
66
+ rspec-mocks (3.12.6)
67
+ diff-lcs (>= 1.2.0, < 2.0)
68
+ rspec-support (~> 3.12.0)
69
+ rspec-support (3.12.1)
70
+ rspec_junit_formatter (0.6.0)
71
+ rspec-core (>= 2, < 4, != 2.12.0)
72
+ rubocop (1.52.1)
73
+ json (~> 2.3)
74
+ parallel (~> 1.10)
75
+ parser (>= 3.2.2.3)
76
+ rainbow (>= 2.2.2, < 4.0)
77
+ regexp_parser (>= 1.8, < 3.0)
78
+ rexml (>= 3.2.5, < 4.0)
79
+ rubocop-ast (>= 1.28.0, < 2.0)
80
+ ruby-progressbar (~> 1.7)
81
+ unicode-display_width (>= 2.4.0, < 3.0)
82
+ rubocop-ast (1.29.0)
83
+ parser (>= 3.2.1.0)
84
+ rubocop-capybara (2.18.0)
85
+ rubocop (~> 1.41)
86
+ rubocop-factory_bot (2.23.1)
87
+ rubocop (~> 1.33)
88
+ rubocop-rspec (2.22.0)
89
+ rubocop (~> 1.33)
90
+ rubocop-capybara (~> 2.17)
91
+ rubocop-factory_bot (~> 2.22)
92
+ ruby-progressbar (1.13.0)
93
+ ruby2_keywords (0.0.5)
94
+ snaky_hash (2.0.1)
95
+ hashie
96
+ version_gem (~> 1.1, >= 1.1.1)
97
+ unicode-display_width (2.4.2)
98
+ version_gem (1.1.3)
99
+ webmock (3.18.1)
100
+ addressable (>= 2.8.0)
101
+ crack (>= 0.3.2)
102
+ hashdiff (>= 0.4.0, < 2.0.0)
103
+
104
+ PLATFORMS
105
+ x86_64-linux
106
+
107
+ DEPENDENCIES
108
+ faraday (~> 1.0, >= 1.0.0)
109
+ oauth2 (~> 2.0)
110
+ rake (~> 13.0.6)
111
+ rspec (~> 3.12.0)
112
+ rspec_junit_formatter (~> 0.6.0)
113
+ rubocop (~> 1.52.1)
114
+ rubocop-rspec (~> 2.22.0)
115
+ webmock (~> 3.18.1)
116
+
117
+ BUNDLED WITH
118
+ 2.4.10
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Riipen
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 all
13
+ 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 THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,91 @@
1
+ [![CircleCI](https://dl.circleci.com/status-badge/img/gh/riipen/tipalti-ruby/tree/main.svg?style=svg)](https://dl.circleci.com/status-badge/redirect/gh/riipen/tipalti-ruby/tree/main)
2
+
3
+ # Tiplaty Ruby
4
+
5
+ An API client for Tipalti in ruby.
6
+
7
+
8
+ ## Installation
9
+
10
+ Add to your `Gemfile`:
11
+
12
+ ```ruby
13
+ gem 'tipalti-ruby'
14
+ ```
15
+
16
+ Then `bundle install`.
17
+
18
+ ## Usage
19
+
20
+ The Tipalti API uses OAuth to authenticate API requests.
21
+
22
+ First you need ot get an access code externally by following the [Tipalti authorization flow](https://documentation.tipalti.com/docs/authorization-flow).
23
+
24
+ Then you can create a Tipalti API client.
25
+
26
+ ```ruby
27
+ client = Tipalti::Client.new(
28
+ client_id: 'client_id', # Tipalti developer app client id
29
+ client_secret: 'client_secret', # Tipalti developer app client id
30
+ access_token: 'access_token', # Access token from authorization flow
31
+ refresh_token: 'refresh_token', # Frefresh token from authorization flow
32
+ code_verifier: 'secret', # Code verifier from authorization flow
33
+ )
34
+ ```
35
+
36
+ You can use the Tipalti sandbox by setting `client.sanbox = true` or as part of the client initialization
37
+
38
+ ```ruby
39
+ client = Tipalti::Client.new(
40
+ ...
41
+ sandbox: true
42
+ )
43
+ ```
44
+
45
+ ### Endpoints
46
+
47
+ For use of each endpoint and available attributes or filtering criteria, please consult the [Tipalti API reference](https://documentation.tipalti.com/reference/introduction).
48
+
49
+ #### Payees create
50
+
51
+ [API docs](https://documentation.tipalti.com/reference/post_api-v1-payees)
52
+
53
+ Example: `client.payee_create(refCode: '123abc')`
54
+
55
+ #### Payees list
56
+
57
+ [API docs](https://documentation.tipalti.com/reference/get_api-v1-payees)
58
+
59
+ Example: `client.payee_list(filter: 'status=="ACTIVE"')`
60
+
61
+ ### Token Management
62
+
63
+ #### Refresh
64
+
65
+ If your OAuth access token has expired, you can use the client to refresh your token.
66
+
67
+ [API docs](https://documentation.tipalti.com/docs/step-5-get-a-new-access-token-using-a-refresh-token#response)
68
+
69
+ `client.token_refresh`
70
+
71
+ This will return this [response object](https://documentation.tipalti.com/docs/step-5-get-a-new-access-token-using-a-refresh-token#response) as well as update the client to use the new access token on successful refresh.
72
+
73
+ ### Errors
74
+
75
+ Any error code returned by the Tipalti API will result in one of the following expections
76
+
77
+ |Code|Exception|
78
+ |----|---------|
79
+ |400| Tipalti::BadRequest|
80
+ |401| Tipalti::Unauthorized|
81
+ |403| Tipalti::Forbidden|
82
+ |404| Tipalti::NotFound|
83
+ |429| Tipalti::TooManyRequests|
84
+ |400| Tipalti::ClientError|
85
+ |500| Tipalti::InternalServerError|
86
+ |503| Tipalti::ServiceUnavailable|
87
+ |500| Tipalti::ServerError|
88
+
89
+ ## License
90
+
91
+ Copyright (C) 2023 Jordan Ell. See [LICENSE](https://github.com/riipen/tipalti-ruby/blob/master/LICENSE.md) for details.
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,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Tipalti
4
+ module Actions
5
+ module Payee
6
+ def payee_create(**params)
7
+ connection.post("/api/v1/payees", **params)
8
+ end
9
+
10
+ def payee_list(**params)
11
+ connection.get("/api/v1/payees", **params)
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Tipalti
4
+ module Actions
5
+ module Token
6
+ def token_refresh
7
+ response = connection_token.post("/connect/token",
8
+ client_id: @client_id,
9
+ client_secret: @client_secret,
10
+ grant_type: "refresh_token",
11
+ refresh_token: @refresh_token,
12
+ code_verifier: @code_verifier)
13
+
14
+ # Refresh the client values inline
15
+ @access_token = response["access_token"]
16
+ @refresh_token = response["refresh_token"]
17
+
18
+ # Give a chance to the invoker of the client to do something with the response
19
+ response
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,40 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Tipalti
4
+ class Client
5
+ include Tipalti::Actions::Payee
6
+ include Tipalti::Actions::Token
7
+
8
+ BASE_URL_P = "https://api-p.tipalti.com"
9
+ BASE_URL_S = "https://api-sb.tipalti.com"
10
+ TOKEN_URL_P = "https://sso.tipalti.com"
11
+ TOKEN_URL_S = "https://sso.sandbox.tipalti.com"
12
+
13
+ attr_accessor :sandbox
14
+
15
+ def initialize(client_id:, client_secret:, access_token:, refresh_token: nil, code_verifier: nil, sandbox: false) # rubocop:disable Metrics/ParameterLists
16
+ @client_id = client_id
17
+ @client_secret = client_secret
18
+ @access_token = access_token
19
+ @refresh_token = refresh_token
20
+ @code_verifier = code_verifier
21
+ @sandbox = sandbox
22
+ end
23
+
24
+ def base_url
25
+ @sandbox ? BASE_URL_S : BASE_URL_P
26
+ end
27
+
28
+ def connection
29
+ Connection.new(access_token: @access_token, url: base_url)
30
+ end
31
+
32
+ def connection_token
33
+ Connection.new(access_token: @access_token, url: token_url)
34
+ end
35
+
36
+ def token_url
37
+ @sandbox ? TOKEN_URL_S : TOKEN_URL_P
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,58 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "faraday"
4
+
5
+ module Tipalti
6
+ class Connection
7
+ attr_accessor :access_token, :url
8
+
9
+ def initialize(url:, access_token: nil)
10
+ @access_token = access_token
11
+ @url = url
12
+ end
13
+
14
+ def delete(path, **params)
15
+ request(:delete, path, params)
16
+ end
17
+
18
+ def get(path, **params)
19
+ request(:get, path, params)
20
+ end
21
+
22
+ def head(path, **params)
23
+ request(:head, path, params)
24
+ end
25
+
26
+ def post(path, **params)
27
+ request(:post, path, params)
28
+ end
29
+
30
+ def put(path, **params)
31
+ request(:put, path, params)
32
+ end
33
+
34
+ private
35
+
36
+ def request(method, path, params)
37
+ response = connection.public_send(method, path, params) do |request|
38
+ request.headers["accept"] = "application/json"
39
+ request.headers["authorization"] = "Bearer #{@access_token}" if @access_token
40
+ end
41
+
42
+ error = Error.from_response(response)
43
+
44
+ raise error if error
45
+
46
+ response.body
47
+ end
48
+
49
+ def connection
50
+ @connection ||= Faraday.new(url: @url) do |c|
51
+ c.request :json, content_type: /\bjson$/
52
+ c.response :json, content_type: /\bjson$/
53
+ c.request :url_encoded, content_type: /x-www-form-urlencoded/
54
+ c.adapter Faraday.default_adapter
55
+ end
56
+ end
57
+ end
58
+ end
@@ -0,0 +1,47 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Tipalti
4
+ class Error < StandardError
5
+ def self.from_response(response) # rubocop:disable Metrics/CyclomaticComplexity, Metrics/MethodLength:
6
+ klass =
7
+ case response.status
8
+ when 400 then BadRequest
9
+ when 401 then Unauthorized
10
+ when 403 then Forbidden
11
+ when 404 then NotFound
12
+ when 429 then TooManyRequests
13
+ when 400..499 then ClientError
14
+ when 500 then InternalServerError
15
+ when 503 then ServiceUnavailable
16
+ when 500..599 then ServerError
17
+ end
18
+
19
+ klass&.new(response)
20
+ end
21
+
22
+ def initialize(response = nil)
23
+ @response = response
24
+
25
+ super(build_error_message)
26
+ end
27
+
28
+ private
29
+
30
+ def build_error_message
31
+ return nil if @response.nil? || ![400, 409].include?(@response.status) || !@response.body["errors"]
32
+
33
+ "#{@response.body.dig("errors", 0, "code")}: #{@response.body.dig("errors", 0, "message")}"
34
+ end
35
+ end
36
+
37
+ class ClientError < Error; end
38
+ class BadRequest < Error; end
39
+ class Unauthorized < Error; end
40
+ class Forbidden < Error; end
41
+ class NotFound < Error; end
42
+ class TooManyRequests < Error; end
43
+ class ServerError < Error; end
44
+ class InternalServerError < Error; end
45
+ class BadGateway < Error; end
46
+ class ServiceUnavailable < Error; end
47
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Tipalti
4
+ VERSION = "0.1.0"
5
+ end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ $LOAD_PATH.unshift File.dirname(__FILE__)
4
+
5
+ require "tipalti-ruby/actions/payee"
6
+ require "tipalti-ruby/actions/token"
7
+ require "tipalti-ruby/client"
8
+ require "tipalti-ruby/connection"
9
+ require "tipalti-ruby/error"
10
+ require "tipalti-ruby/version"
metadata ADDED
@@ -0,0 +1,97 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tipalti-ruby
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Jordan Ell
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2023-08-04 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
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 1.0.0
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '1.0'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 1.0.0
33
+ - !ruby/object:Gem::Dependency
34
+ name: oauth2
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '2.0'
40
+ type: :runtime
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '2.0'
47
+ description: An API client for Tipalti in ruby.
48
+ email:
49
+ - me@jordanell.com
50
+ executables: []
51
+ extensions: []
52
+ extra_rdoc_files: []
53
+ files:
54
+ - ".rspec"
55
+ - ".rubocop.yml"
56
+ - CHANGELOG.md
57
+ - CODE_OF_CONDUCT.md
58
+ - Gemfile
59
+ - Gemfile.lock
60
+ - LICENSE
61
+ - README.md
62
+ - Rakefile
63
+ - lib/tipalti-ruby.rb
64
+ - lib/tipalti-ruby/actions/payee.rb
65
+ - lib/tipalti-ruby/actions/token.rb
66
+ - lib/tipalti-ruby/client.rb
67
+ - lib/tipalti-ruby/connection.rb
68
+ - lib/tipalti-ruby/error.rb
69
+ - lib/tipalti-ruby/version.rb
70
+ homepage: https://github.com/riipen/tipalti-ruby
71
+ licenses:
72
+ - MIT
73
+ metadata:
74
+ homepage_uri: https://github.com/riipen/tipalti-ruby
75
+ source_code_uri: https://github.com/riipen/tipalti-ruby
76
+ changelog_uri: https://github.com/riipen/tipalti-ruby/blob/master/CHANGELOG.md
77
+ rubygems_mfa_required: 'true'
78
+ post_install_message:
79
+ rdoc_options: []
80
+ require_paths:
81
+ - lib
82
+ required_ruby_version: !ruby/object:Gem::Requirement
83
+ requirements:
84
+ - - ">="
85
+ - !ruby/object:Gem::Version
86
+ version: 2.6.0
87
+ required_rubygems_version: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - ">="
90
+ - !ruby/object:Gem::Version
91
+ version: '0'
92
+ requirements: []
93
+ rubygems_version: 3.3.26
94
+ signing_key:
95
+ specification_version: 4
96
+ summary: An API client for Tipalti in ruby.
97
+ test_files: []