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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e37b79098df7e8046fedbea14803044851d44347bbda381f355824d8ba60adc6
4
- data.tar.gz: 439fcc44613745ed6e6d21e7ee232c274959e555cf43e08f233ece4a5c69244b
3
+ metadata.gz: 03acb5dc31ac3a0e27fa741be01e2907a530f7aae8eb1bd595b2102fa252157a
4
+ data.tar.gz: 9c8f59917796065a0f429d512c57a3f58075ce162d95be2088584ed087c1599c
5
5
  SHA512:
6
- metadata.gz: 0e00bf980e2487d0f9f8af3c9bd178340f23ed8f89df1277ab02731cf63a2bcae7f72ea1d7980bce3cc977479b6124287d2f842458408d52dc1c23b478df0d71
7
- data.tar.gz: 1433b3cc4992fdf63d5ccab4b8fc1de771b1fa7815f3db1f924712ab73afc248a463a337a310c3814328a3269252d902a68a8cee026c191210acb0592a538bcd
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,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.2.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.2.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,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
Binary file