justifi 0.8.3 → 0.9.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: 3d7e3adbae85e1cbf91ddf89e842728ac743866becd785f66cfa49e9a9fece81
4
- data.tar.gz: c76d056a8503461fa50a7113fee88b6241d1004c39df89d923013f776eaf510a
3
+ metadata.gz: 82a9df0515849f544d804cf04d4bb75168da326e5666e60942ec876bd0b77869
4
+ data.tar.gz: c62ee0120e0414f4a482cd729a673e71fec47f388b55727c06a724afdf00f7d3
5
5
  SHA512:
6
- metadata.gz: 5d3ad3f09cf9d25593ddd86a93db3044593a2273faf5335dd15d0b80da37bc623e111a769116e06bfa037b25fc5646740788b4db77e667c70700d5f201397d5e
7
- data.tar.gz: 7b595936601ff3ad37ef3b7d5e84daf79461b7acb6d276665b9e71f0bcd87d428915d5ccf03c45a47d5225ac2e1a2ce5977e3bb7f75b0c7fb32b378e5c6bb3bc
6
+ metadata.gz: 0add9d65d10543923d07c89f1f99d72cbd9ae9c11da9d2a6960edc13ad4a76e1d3a10740a59e4dd635a51464c4c87f1a0360a7aa764e06fc91858f0d7eb90dc0
7
+ data.tar.gz: eceb3a2e2052ca4b689f85b38bfe884ff9a4bcc0f64c045f6b75788e7089aac4f3d14893a0ed8ff974c991de2db7abf2744f6d7fbe7598cb97fec729d75701e0
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Justifi
4
+ module Business
5
+ class << self
6
+ def create(params:, headers: {})
7
+ JustifiOperations.execute_post_request("/v1/entities/business", params, headers)
8
+ end
9
+
10
+ def list(params: {}, headers: {})
11
+ JustifiOperations.list("/v1/entities/business", params, headers)
12
+ end
13
+
14
+ def get(business_id:, headers: {})
15
+ JustifiOperations.execute_get_request("/v1/entities/business/#{business_id}",
16
+ {},
17
+ headers)
18
+ end
19
+
20
+ def update(business_id:, params:, headers: {})
21
+ JustifiOperations.execute_patch_request("/v1/entities/business/#{business_id}", params, headers)
22
+ end
23
+ end
24
+ end
25
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Justifi
4
- VERSION = "0.8.3"
4
+ VERSION = "0.9.0"
5
5
  end
data/lib/justifi.rb CHANGED
@@ -16,6 +16,7 @@ require "justifi/version"
16
16
  require "justifi/configuration"
17
17
  require "justifi/oauth"
18
18
  require "justifi/sub_account"
19
+ require "justifi/business"
19
20
  require "justifi/payment"
20
21
  require "justifi/refund"
21
22
  require "justifi/checkout"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: justifi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.3
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - JustiFi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-08-09 00:00:00.000000000 Z
11
+ date: 2024-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: byebug
@@ -162,6 +162,7 @@ files:
162
162
  - lib/justifi.rb
163
163
  - lib/justifi/api_operations.rb
164
164
  - lib/justifi/balance_transaction.rb
165
+ - lib/justifi/business.rb
165
166
  - lib/justifi/checkout.rb
166
167
  - lib/justifi/checkout_session.rb
167
168
  - lib/justifi/configuration.rb
@@ -204,7 +205,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
204
205
  - !ruby/object:Gem::Version
205
206
  version: '0'
206
207
  requirements: []
207
- rubygems_version: 3.2.32
208
+ rubygems_version: 3.0.3.1
208
209
  signing_key:
209
210
  specification_version: 4
210
211
  summary: JustiFi API wrapper gem