tipalti-ruby 0.1.0 → 0.3.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '083353594c3e8a1cc241532f294013094f9415a7541d4a2c5d2374527a498ca3'
4
- data.tar.gz: 3a4d12a766b0c4541a86f20f443b7ff40c24ceb1346fc7b4087fed8af54e1bbb
3
+ metadata.gz: 03acb5dc31ac3a0e27fa741be01e2907a530f7aae8eb1bd595b2102fa252157a
4
+ data.tar.gz: 9c8f59917796065a0f429d512c57a3f58075ce162d95be2088584ed087c1599c
5
5
  SHA512:
6
- metadata.gz: 7cdbfcda272242bf4522dd2f81d1bcb0bc2bd0fa8103c2acc7260434c8be95ca27f7c3564cf7510d0ef2ca5cbf3ea87af55f696bc12f849fad6b7d8021cd1374
7
- data.tar.gz: 18de865a751a63dd0c62ce117c25c4cf882349b1503f52795e5a2dad1a7d7041ee60c08c9b901abc89eb96d554cf511c1ed2856dd7104e876aec54eb6e715ed0
6
+ metadata.gz: ceb685c7bd0d0d340be0615905b96778144bf9877c5be553da23eb3a65f56e6449ab1448d6327b574e9f858b1ba84b772311e2ca35e456fbb84b90678b9fef44
7
+ data.tar.gz: e39a013089b6ba6ee17d192f2a72fda89c49ab979d6efd7058a092c2df386bf6fcb03c883b84d71f1fdefccbd2a8afdd82c921735ed743a44eb82d944cb53297
data/CHANGELOG.md CHANGED
@@ -1 +1,13 @@
1
+ ## v0.2.0
2
+
3
+ - Added payees get endpoint
4
+
5
+ ## v0.1.0
6
+
7
+ Initial release of the gem.
8
+
9
+ - Added payees list endpoint
10
+ - Added payees create endpoint
11
+ - Added OAuth token refresh endpoint
12
+
1
13
  ## [Unreleased]
data/README.md CHANGED
@@ -1,3 +1,4 @@
1
+ [![Gem Version](https://badge.fury.io/rb/tipalti-ruby.svg)](https://badge.fury.io/rb/tipalti-ruby)
1
2
  [![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
 
3
4
  # Tiplaty Ruby
@@ -52,12 +53,48 @@ For use of each endpoint and available attributes or filtering criteria, please
52
53
 
53
54
  Example: `client.payee_create(refCode: '123abc')`
54
55
 
56
+ #### Payees get
57
+
58
+ [API docs](https://documentation.tipalti.com/reference/get_api-v1-payees-id)
59
+
60
+ Example: `client.payee_get('123abc')`
61
+
55
62
  #### Payees list
56
63
 
57
64
  [API docs](https://documentation.tipalti.com/reference/get_api-v1-payees)
58
65
 
59
66
  Example: `client.payee_list(filter: 'status=="ACTIVE"')`
60
67
 
68
+ #### Payment batches create
69
+
70
+ [API docs](https://documentation.tipalti.com/reference/post_api-v1-payment-batches)
71
+
72
+ Example:
73
+
74
+ ```ruby
75
+ client.payment_batch_create({
76
+ paymentInstructions: [
77
+ {
78
+ payeeId: '123456',
79
+ amountSubmitted: { amount: 5, currency: 'USD' },
80
+ refCode: '123ref'
81
+ }
82
+ ]
83
+ })
84
+ ```
85
+
86
+ #### Payment batches instructions get
87
+
88
+ [API docs](https://documentation.tipalti.com/reference/get_api-v1-payment-batches-id-instructions)
89
+
90
+ Example: `client.payment_batch_instructions_get('3456789')`
91
+
92
+ #### Payments get
93
+
94
+ [API docs](https://documentation.tipalti.com/reference/get_api-v1-payments-id)
95
+
96
+ Example: `client.payment_get('123abc')`
97
+
61
98
  ### Token Management
62
99
 
63
100
  #### Refresh
@@ -7,6 +7,10 @@ module Tipalti
7
7
  connection.post("/api/v1/payees", **params)
8
8
  end
9
9
 
10
+ def payee_get(id)
11
+ connection.get("/api/v1/payees/#{id}")
12
+ end
13
+
10
14
  def payee_list(**params)
11
15
  connection.get("/api/v1/payees", **params)
12
16
  end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Tipalti
4
+ module Actions
5
+ module Payment
6
+ def payment_get(id)
7
+ connection.get("/api/v1/payments/#{id}")
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Tipalti
4
+ module Actions
5
+ module PaymentBatch
6
+ def payment_batch_create(**params)
7
+ connection.post("/api/v1/payment-batches", **params)
8
+ end
9
+
10
+ def payment_batch_instructions_get(id)
11
+ connection.get("/api/v1/payment-batches/#{id}/instructions")
12
+ end
13
+ end
14
+ end
15
+ end
@@ -3,6 +3,8 @@
3
3
  module Tipalti
4
4
  class Client
5
5
  include Tipalti::Actions::Payee
6
+ include Tipalti::Actions::Payment
7
+ include Tipalti::Actions::PaymentBatch
6
8
  include Tipalti::Actions::Token
7
9
 
8
10
  BASE_URL_P = "https://api-p.tipalti.com"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Tipalti
4
- VERSION = "0.1.0"
4
+ VERSION = "0.3.0"
5
5
  end
data/lib/tipalti-ruby.rb CHANGED
@@ -3,6 +3,8 @@
3
3
  $LOAD_PATH.unshift File.dirname(__FILE__)
4
4
 
5
5
  require "tipalti-ruby/actions/payee"
6
+ require "tipalti-ruby/actions/payment"
7
+ require "tipalti-ruby/actions/payment_batch"
6
8
  require "tipalti-ruby/actions/token"
7
9
  require "tipalti-ruby/client"
8
10
  require "tipalti-ruby/connection"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tipalti-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordan Ell
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-08-04 00:00:00.000000000 Z
11
+ date: 2023-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -62,6 +62,8 @@ files:
62
62
  - Rakefile
63
63
  - lib/tipalti-ruby.rb
64
64
  - lib/tipalti-ruby/actions/payee.rb
65
+ - lib/tipalti-ruby/actions/payment.rb
66
+ - lib/tipalti-ruby/actions/payment_batch.rb
65
67
  - lib/tipalti-ruby/actions/token.rb
66
68
  - lib/tipalti-ruby/client.rb
67
69
  - lib/tipalti-ruby/connection.rb