tipalti-ruby 0.1.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/README.md +37 -0
- data/lib/tipalti-ruby/actions/payee.rb +4 -0
- data/lib/tipalti-ruby/actions/payment.rb +11 -0
- data/lib/tipalti-ruby/actions/payment_batch.rb +15 -0
- data/lib/tipalti-ruby/client.rb +2 -0
- data/lib/tipalti-ruby/version.rb +1 -1
- data/lib/tipalti-ruby.rb +2 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 03acb5dc31ac3a0e27fa741be01e2907a530f7aae8eb1bd595b2102fa252157a
|
4
|
+
data.tar.gz: 9c8f59917796065a0f429d512c57a3f58075ce162d95be2088584ed087c1599c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ceb685c7bd0d0d340be0615905b96778144bf9877c5be553da23eb3a65f56e6449ab1448d6327b574e9f858b1ba84b772311e2ca35e456fbb84b90678b9fef44
|
7
|
+
data.tar.gz: e39a013089b6ba6ee17d192f2a72fda89c49ab979d6efd7058a092c2df386bf6fcb03c883b84d71f1fdefccbd2a8afdd82c921735ed743a44eb82d944cb53297
|
data/CHANGELOG.md
CHANGED
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
|
@@ -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
|
data/lib/tipalti-ruby/client.rb
CHANGED
data/lib/tipalti-ruby/version.rb
CHANGED
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.
|
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-
|
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
|