tipalti-ruby 0.2.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 +4 -4
- data/README.md +30 -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 -3
- data/tipalti-ruby-0.1.0.gem +0 -0
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/README.md
CHANGED
@@ -65,6 +65,36 @@ Example: `client.payee_get('123abc')`
|
|
65
65
|
|
66
66
|
Example: `client.payee_list(filter: 'status=="ACTIVE"')`
|
67
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
|
+
|
68
98
|
### Token Management
|
69
99
|
|
70
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,12 +62,13 @@ 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
|
68
70
|
- lib/tipalti-ruby/error.rb
|
69
71
|
- lib/tipalti-ruby/version.rb
|
70
|
-
- tipalti-ruby-0.1.0.gem
|
71
72
|
homepage: https://github.com/riipen/tipalti-ruby
|
72
73
|
licenses:
|
73
74
|
- MIT
|
data/tipalti-ruby-0.1.0.gem
DELETED
Binary file
|