increase 1.241.0 → 1.243.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/CHANGELOG.md +16 -0
- data/README.md +1 -1
- data/lib/increase/client.rb +7 -0
- data/lib/increase/models/beneficial_owner_update_params.rb +92 -0
- data/lib/increase/models.rb +2 -0
- data/lib/increase/resources/beneficial_owners.rb +27 -0
- data/lib/increase/resources/events.rb +11 -1
- data/lib/increase/version.rb +1 -1
- data/lib/increase.rb +2 -0
- data/rbi/increase/client.rbi +6 -0
- data/rbi/increase/models/beneficial_owner_update_params.rbi +151 -0
- data/rbi/increase/models.rbi +2 -0
- data/rbi/increase/resources/beneficial_owners.rbi +18 -0
- data/rbi/increase/resources/events.rbi +12 -2
- data/sig/increase/client.rbs +3 -0
- data/sig/increase/models/beneficial_owner_update_params.rbs +83 -0
- data/sig/increase/models.rbs +2 -0
- data/sig/increase/resources/beneficial_owners.rbs +6 -0
- data/sig/increase/resources/events.rbs +5 -1
- metadata +18 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d0e295da15aeecb29c4be017366f5464761d7075423ef1a75275116cc0bc8bce
|
|
4
|
+
data.tar.gz: '019a5d091730152904019de802312abccd1867c5a8ee66db6c6df18e36b84f02'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '09b7000fc7515a2d688d9d5511fc485a4db02f62c2eac4e72988824846977232982a87b5b3c643ceac2b7e44caf278394a0e8852830965be1dc022cf9c57ac48'
|
|
7
|
+
data.tar.gz: 656aa50c9f47b6ff1ca20392b8e2b1f5ea187f3c34fce75d7207fdc395ced126d0fc819276b2172aa2f4fc28cead7a22ae41d5d5edc3439249eb44dbc255ade4
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.243.0 (2026-03-11)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v1.242.0...v1.243.0](https://github.com/Increase/increase-ruby/compare/v1.242.0...v1.243.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([8a6513b](https://github.com/Increase/increase-ruby/commit/8a6513bcf67ab8f7d66e55aa6df26d21af4abb3a))
|
|
10
|
+
|
|
11
|
+
## 1.242.0 (2026-03-11)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v1.241.0...v1.242.0](https://github.com/Increase/increase-ruby/compare/v1.241.0...v1.242.0)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **client:** add webhook support ([227d6ab](https://github.com/Increase/increase-ruby/commit/227d6ab8bec444b348c61ae7b85969cd38dcd764))
|
|
18
|
+
|
|
3
19
|
## 1.241.0 (2026-03-11)
|
|
4
20
|
|
|
5
21
|
Full Changelog: [v1.240.0...v1.241.0](https://github.com/Increase/increase-ruby/compare/v1.240.0...v1.241.0)
|
data/README.md
CHANGED
data/lib/increase/client.rb
CHANGED
|
@@ -23,6 +23,9 @@ module Increase
|
|
|
23
23
|
# @return [String]
|
|
24
24
|
attr_reader :api_key
|
|
25
25
|
|
|
26
|
+
# @return [String, nil]
|
|
27
|
+
attr_reader :webhook_secret
|
|
28
|
+
|
|
26
29
|
# @return [Increase::Resources::Accounts]
|
|
27
30
|
attr_reader :accounts
|
|
28
31
|
|
|
@@ -210,6 +213,8 @@ module Increase
|
|
|
210
213
|
#
|
|
211
214
|
# @param api_key [String, nil] Defaults to `ENV["INCREASE_API_KEY"]`
|
|
212
215
|
#
|
|
216
|
+
# @param webhook_secret [String, nil] Defaults to `ENV["INCREASE_WEBHOOK_SECRET"]`
|
|
217
|
+
#
|
|
213
218
|
# @param environment [:production, :sandbox, nil] Specifies the environment to use for the API.
|
|
214
219
|
#
|
|
215
220
|
# Each environment maps to a different base URL:
|
|
@@ -231,6 +236,7 @@ module Increase
|
|
|
231
236
|
# @param idempotency_header [String]
|
|
232
237
|
def initialize(
|
|
233
238
|
api_key: ENV["INCREASE_API_KEY"],
|
|
239
|
+
webhook_secret: ENV["INCREASE_WEBHOOK_SECRET"],
|
|
234
240
|
environment: nil,
|
|
235
241
|
base_url: ENV["INCREASE_BASE_URL"],
|
|
236
242
|
max_retries: self.class::DEFAULT_MAX_RETRIES,
|
|
@@ -249,6 +255,7 @@ module Increase
|
|
|
249
255
|
end
|
|
250
256
|
|
|
251
257
|
@api_key = api_key.to_s
|
|
258
|
+
@webhook_secret = webhook_secret&.to_s
|
|
252
259
|
|
|
253
260
|
super(
|
|
254
261
|
base_url: base_url,
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Models
|
|
5
|
+
# @see Increase::Resources::BeneficialOwners#update
|
|
6
|
+
class BeneficialOwnerUpdateParams < Increase::Internal::Type::BaseModel
|
|
7
|
+
extend Increase::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Increase::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute entity_beneficial_owner_id
|
|
11
|
+
# The identifier of the Beneficial Owner to update.
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :entity_beneficial_owner_id, String
|
|
15
|
+
|
|
16
|
+
# @!attribute address
|
|
17
|
+
# The individual's physical address. Mail receiving locations like PO Boxes and
|
|
18
|
+
# PMB's are disallowed.
|
|
19
|
+
#
|
|
20
|
+
# @return [Increase::Models::BeneficialOwnerUpdateParams::Address, nil]
|
|
21
|
+
optional :address, -> { Increase::BeneficialOwnerUpdateParams::Address }
|
|
22
|
+
|
|
23
|
+
# @!method initialize(entity_beneficial_owner_id:, address: nil, request_options: {})
|
|
24
|
+
# Some parameter documentations has been truncated, see
|
|
25
|
+
# {Increase::Models::BeneficialOwnerUpdateParams} for more details.
|
|
26
|
+
#
|
|
27
|
+
# @param entity_beneficial_owner_id [String] The identifier of the Beneficial Owner to update.
|
|
28
|
+
#
|
|
29
|
+
# @param address [Increase::Models::BeneficialOwnerUpdateParams::Address] The individual's physical address. Mail receiving locations like PO Boxes and PM
|
|
30
|
+
#
|
|
31
|
+
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
|
|
32
|
+
|
|
33
|
+
class Address < Increase::Internal::Type::BaseModel
|
|
34
|
+
# @!attribute city
|
|
35
|
+
# The city, district, town, or village of the address.
|
|
36
|
+
#
|
|
37
|
+
# @return [String]
|
|
38
|
+
required :city, String
|
|
39
|
+
|
|
40
|
+
# @!attribute country
|
|
41
|
+
# The two-letter ISO 3166-1 alpha-2 code for the country of the address.
|
|
42
|
+
#
|
|
43
|
+
# @return [String]
|
|
44
|
+
required :country, String
|
|
45
|
+
|
|
46
|
+
# @!attribute line1
|
|
47
|
+
# The first line of the address. This is usually the street number and street.
|
|
48
|
+
#
|
|
49
|
+
# @return [String]
|
|
50
|
+
required :line1, String
|
|
51
|
+
|
|
52
|
+
# @!attribute line2
|
|
53
|
+
# The second line of the address. This might be the floor or room number.
|
|
54
|
+
#
|
|
55
|
+
# @return [String, nil]
|
|
56
|
+
optional :line2, String
|
|
57
|
+
|
|
58
|
+
# @!attribute state
|
|
59
|
+
# The two-letter United States Postal Service (USPS) abbreviation for the US
|
|
60
|
+
# state, province, or region of the address. Required in certain countries.
|
|
61
|
+
#
|
|
62
|
+
# @return [String, nil]
|
|
63
|
+
optional :state, String
|
|
64
|
+
|
|
65
|
+
# @!attribute zip
|
|
66
|
+
# The ZIP or postal code of the address. Required in certain countries.
|
|
67
|
+
#
|
|
68
|
+
# @return [String, nil]
|
|
69
|
+
optional :zip, String
|
|
70
|
+
|
|
71
|
+
# @!method initialize(city:, country:, line1:, line2: nil, state: nil, zip: nil)
|
|
72
|
+
# Some parameter documentations has been truncated, see
|
|
73
|
+
# {Increase::Models::BeneficialOwnerUpdateParams::Address} for more details.
|
|
74
|
+
#
|
|
75
|
+
# The individual's physical address. Mail receiving locations like PO Boxes and
|
|
76
|
+
# PMB's are disallowed.
|
|
77
|
+
#
|
|
78
|
+
# @param city [String] The city, district, town, or village of the address.
|
|
79
|
+
#
|
|
80
|
+
# @param country [String] The two-letter ISO 3166-1 alpha-2 code for the country of the address.
|
|
81
|
+
#
|
|
82
|
+
# @param line1 [String] The first line of the address. This is usually the street number and street.
|
|
83
|
+
#
|
|
84
|
+
# @param line2 [String] The second line of the address. This might be the floor or room number.
|
|
85
|
+
#
|
|
86
|
+
# @param state [String] The two-letter United States Postal Service (USPS) abbreviation for the US state
|
|
87
|
+
#
|
|
88
|
+
# @param zip [String] The ZIP or postal code of the address. Required in certain countries.
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
end
|
data/lib/increase/models.rb
CHANGED
|
@@ -107,6 +107,8 @@ module Increase
|
|
|
107
107
|
|
|
108
108
|
BeneficialOwnerRetrieveParams = Increase::Models::BeneficialOwnerRetrieveParams
|
|
109
109
|
|
|
110
|
+
BeneficialOwnerUpdateParams = Increase::Models::BeneficialOwnerUpdateParams
|
|
111
|
+
|
|
110
112
|
BookkeepingAccount = Increase::Models::BookkeepingAccount
|
|
111
113
|
|
|
112
114
|
BookkeepingAccountBalanceParams = Increase::Models::BookkeepingAccountBalanceParams
|
|
@@ -23,6 +23,33 @@ module Increase
|
|
|
23
23
|
)
|
|
24
24
|
end
|
|
25
25
|
|
|
26
|
+
# Some parameter documentations has been truncated, see
|
|
27
|
+
# {Increase::Models::BeneficialOwnerUpdateParams} for more details.
|
|
28
|
+
#
|
|
29
|
+
# Update a Beneficial Owner
|
|
30
|
+
#
|
|
31
|
+
# @overload update(entity_beneficial_owner_id, address: nil, request_options: {})
|
|
32
|
+
#
|
|
33
|
+
# @param entity_beneficial_owner_id [String] The identifier of the Beneficial Owner to update.
|
|
34
|
+
#
|
|
35
|
+
# @param address [Increase::Models::BeneficialOwnerUpdateParams::Address] The individual's physical address. Mail receiving locations like PO Boxes and PM
|
|
36
|
+
#
|
|
37
|
+
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
38
|
+
#
|
|
39
|
+
# @return [Increase::Models::EntityBeneficialOwner]
|
|
40
|
+
#
|
|
41
|
+
# @see Increase::Models::BeneficialOwnerUpdateParams
|
|
42
|
+
def update(entity_beneficial_owner_id, params = {})
|
|
43
|
+
parsed, options = Increase::BeneficialOwnerUpdateParams.dump_request(params)
|
|
44
|
+
@client.request(
|
|
45
|
+
method: :patch,
|
|
46
|
+
path: ["entity_beneficial_owners/%1$s", entity_beneficial_owner_id],
|
|
47
|
+
body: parsed,
|
|
48
|
+
model: Increase::EntityBeneficialOwner,
|
|
49
|
+
options: options
|
|
50
|
+
)
|
|
51
|
+
end
|
|
52
|
+
|
|
26
53
|
# Some parameter documentations has been truncated, see
|
|
27
54
|
# {Increase::Models::BeneficialOwnerListParams} for more details.
|
|
28
55
|
#
|
|
@@ -60,8 +60,18 @@ module Increase
|
|
|
60
60
|
|
|
61
61
|
# @param payload [String] The raw webhook payload as a string
|
|
62
62
|
#
|
|
63
|
+
# @param headers [Hash{String=>String}] The raw HTTP headers that came with the payload
|
|
64
|
+
#
|
|
65
|
+
# @param key [String, nil] The webhook signing key
|
|
66
|
+
#
|
|
63
67
|
# @return [Increase::Models::UnwrapWebhookEvent]
|
|
64
|
-
def unwrap(payload)
|
|
68
|
+
def unwrap(payload, headers:, key: @client.webhook_secret)
|
|
69
|
+
if key.nil?
|
|
70
|
+
raise ArgumentError.new("Cannot verify a webhook without a key on either the client's webhook_secret or passed in as an argument")
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
::StandardWebhooks::Webhook.new(Base64.strict_encode64(key)).verify(payload, headers)
|
|
74
|
+
|
|
65
75
|
parsed = JSON.parse(payload, symbolize_names: true)
|
|
66
76
|
Increase::Internal::Type::Converter.coerce(Increase::Models::UnwrapWebhookEvent, parsed)
|
|
67
77
|
end
|
data/lib/increase/version.rb
CHANGED
data/lib/increase.rb
CHANGED
|
@@ -30,6 +30,7 @@ end
|
|
|
30
30
|
|
|
31
31
|
# Gems.
|
|
32
32
|
require "connection_pool"
|
|
33
|
+
require "standardwebhooks"
|
|
33
34
|
|
|
34
35
|
# Package files.
|
|
35
36
|
require_relative "increase/version"
|
|
@@ -87,6 +88,7 @@ require_relative "increase/models/ach_transfer_retrieve_params"
|
|
|
87
88
|
require_relative "increase/models/balance_lookup"
|
|
88
89
|
require_relative "increase/models/beneficial_owner_list_params"
|
|
89
90
|
require_relative "increase/models/beneficial_owner_retrieve_params"
|
|
91
|
+
require_relative "increase/models/beneficial_owner_update_params"
|
|
90
92
|
require_relative "increase/models/bookkeeping_account"
|
|
91
93
|
require_relative "increase/models/bookkeeping_account_balance_params"
|
|
92
94
|
require_relative "increase/models/bookkeeping_account_create_params"
|
data/rbi/increase/client.rbi
CHANGED
|
@@ -22,6 +22,9 @@ module Increase
|
|
|
22
22
|
sig { returns(String) }
|
|
23
23
|
attr_reader :api_key
|
|
24
24
|
|
|
25
|
+
sig { returns(T.nilable(String)) }
|
|
26
|
+
attr_reader :webhook_secret
|
|
27
|
+
|
|
25
28
|
sig { returns(Increase::Resources::Accounts) }
|
|
26
29
|
attr_reader :accounts
|
|
27
30
|
|
|
@@ -205,6 +208,7 @@ module Increase
|
|
|
205
208
|
sig do
|
|
206
209
|
params(
|
|
207
210
|
api_key: T.nilable(String),
|
|
211
|
+
webhook_secret: T.nilable(String),
|
|
208
212
|
environment: T.nilable(T.any(Symbol, String)),
|
|
209
213
|
base_url: T.nilable(String),
|
|
210
214
|
max_retries: Integer,
|
|
@@ -217,6 +221,8 @@ module Increase
|
|
|
217
221
|
def self.new(
|
|
218
222
|
# Defaults to `ENV["INCREASE_API_KEY"]`
|
|
219
223
|
api_key: ENV["INCREASE_API_KEY"],
|
|
224
|
+
# Defaults to `ENV["INCREASE_WEBHOOK_SECRET"]`
|
|
225
|
+
webhook_secret: ENV["INCREASE_WEBHOOK_SECRET"],
|
|
220
226
|
# Specifies the environment to use for the API.
|
|
221
227
|
#
|
|
222
228
|
# Each environment maps to a different base URL:
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Models
|
|
5
|
+
class BeneficialOwnerUpdateParams < Increase::Internal::Type::BaseModel
|
|
6
|
+
extend Increase::Internal::Type::RequestParameters::Converter
|
|
7
|
+
include Increase::Internal::Type::RequestParameters
|
|
8
|
+
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(
|
|
12
|
+
Increase::BeneficialOwnerUpdateParams,
|
|
13
|
+
Increase::Internal::AnyHash
|
|
14
|
+
)
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
# The identifier of the Beneficial Owner to update.
|
|
18
|
+
sig { returns(String) }
|
|
19
|
+
attr_accessor :entity_beneficial_owner_id
|
|
20
|
+
|
|
21
|
+
# The individual's physical address. Mail receiving locations like PO Boxes and
|
|
22
|
+
# PMB's are disallowed.
|
|
23
|
+
sig { returns(T.nilable(Increase::BeneficialOwnerUpdateParams::Address)) }
|
|
24
|
+
attr_reader :address
|
|
25
|
+
|
|
26
|
+
sig do
|
|
27
|
+
params(
|
|
28
|
+
address: Increase::BeneficialOwnerUpdateParams::Address::OrHash
|
|
29
|
+
).void
|
|
30
|
+
end
|
|
31
|
+
attr_writer :address
|
|
32
|
+
|
|
33
|
+
sig do
|
|
34
|
+
params(
|
|
35
|
+
entity_beneficial_owner_id: String,
|
|
36
|
+
address: Increase::BeneficialOwnerUpdateParams::Address::OrHash,
|
|
37
|
+
request_options: Increase::RequestOptions::OrHash
|
|
38
|
+
).returns(T.attached_class)
|
|
39
|
+
end
|
|
40
|
+
def self.new(
|
|
41
|
+
# The identifier of the Beneficial Owner to update.
|
|
42
|
+
entity_beneficial_owner_id:,
|
|
43
|
+
# The individual's physical address. Mail receiving locations like PO Boxes and
|
|
44
|
+
# PMB's are disallowed.
|
|
45
|
+
address: nil,
|
|
46
|
+
request_options: {}
|
|
47
|
+
)
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
sig do
|
|
51
|
+
override.returns(
|
|
52
|
+
{
|
|
53
|
+
entity_beneficial_owner_id: String,
|
|
54
|
+
address: Increase::BeneficialOwnerUpdateParams::Address,
|
|
55
|
+
request_options: Increase::RequestOptions
|
|
56
|
+
}
|
|
57
|
+
)
|
|
58
|
+
end
|
|
59
|
+
def to_hash
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
class Address < Increase::Internal::Type::BaseModel
|
|
63
|
+
OrHash =
|
|
64
|
+
T.type_alias do
|
|
65
|
+
T.any(
|
|
66
|
+
Increase::BeneficialOwnerUpdateParams::Address,
|
|
67
|
+
Increase::Internal::AnyHash
|
|
68
|
+
)
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
# The city, district, town, or village of the address.
|
|
72
|
+
sig { returns(String) }
|
|
73
|
+
attr_accessor :city
|
|
74
|
+
|
|
75
|
+
# The two-letter ISO 3166-1 alpha-2 code for the country of the address.
|
|
76
|
+
sig { returns(String) }
|
|
77
|
+
attr_accessor :country
|
|
78
|
+
|
|
79
|
+
# The first line of the address. This is usually the street number and street.
|
|
80
|
+
sig { returns(String) }
|
|
81
|
+
attr_accessor :line1
|
|
82
|
+
|
|
83
|
+
# The second line of the address. This might be the floor or room number.
|
|
84
|
+
sig { returns(T.nilable(String)) }
|
|
85
|
+
attr_reader :line2
|
|
86
|
+
|
|
87
|
+
sig { params(line2: String).void }
|
|
88
|
+
attr_writer :line2
|
|
89
|
+
|
|
90
|
+
# The two-letter United States Postal Service (USPS) abbreviation for the US
|
|
91
|
+
# state, province, or region of the address. Required in certain countries.
|
|
92
|
+
sig { returns(T.nilable(String)) }
|
|
93
|
+
attr_reader :state
|
|
94
|
+
|
|
95
|
+
sig { params(state: String).void }
|
|
96
|
+
attr_writer :state
|
|
97
|
+
|
|
98
|
+
# The ZIP or postal code of the address. Required in certain countries.
|
|
99
|
+
sig { returns(T.nilable(String)) }
|
|
100
|
+
attr_reader :zip
|
|
101
|
+
|
|
102
|
+
sig { params(zip: String).void }
|
|
103
|
+
attr_writer :zip
|
|
104
|
+
|
|
105
|
+
# The individual's physical address. Mail receiving locations like PO Boxes and
|
|
106
|
+
# PMB's are disallowed.
|
|
107
|
+
sig do
|
|
108
|
+
params(
|
|
109
|
+
city: String,
|
|
110
|
+
country: String,
|
|
111
|
+
line1: String,
|
|
112
|
+
line2: String,
|
|
113
|
+
state: String,
|
|
114
|
+
zip: String
|
|
115
|
+
).returns(T.attached_class)
|
|
116
|
+
end
|
|
117
|
+
def self.new(
|
|
118
|
+
# The city, district, town, or village of the address.
|
|
119
|
+
city:,
|
|
120
|
+
# The two-letter ISO 3166-1 alpha-2 code for the country of the address.
|
|
121
|
+
country:,
|
|
122
|
+
# The first line of the address. This is usually the street number and street.
|
|
123
|
+
line1:,
|
|
124
|
+
# The second line of the address. This might be the floor or room number.
|
|
125
|
+
line2: nil,
|
|
126
|
+
# The two-letter United States Postal Service (USPS) abbreviation for the US
|
|
127
|
+
# state, province, or region of the address. Required in certain countries.
|
|
128
|
+
state: nil,
|
|
129
|
+
# The ZIP or postal code of the address. Required in certain countries.
|
|
130
|
+
zip: nil
|
|
131
|
+
)
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
sig do
|
|
135
|
+
override.returns(
|
|
136
|
+
{
|
|
137
|
+
city: String,
|
|
138
|
+
country: String,
|
|
139
|
+
line1: String,
|
|
140
|
+
line2: String,
|
|
141
|
+
state: String,
|
|
142
|
+
zip: String
|
|
143
|
+
}
|
|
144
|
+
)
|
|
145
|
+
end
|
|
146
|
+
def to_hash
|
|
147
|
+
end
|
|
148
|
+
end
|
|
149
|
+
end
|
|
150
|
+
end
|
|
151
|
+
end
|
data/rbi/increase/models.rbi
CHANGED
|
@@ -74,6 +74,8 @@ module Increase
|
|
|
74
74
|
BeneficialOwnerRetrieveParams =
|
|
75
75
|
Increase::Models::BeneficialOwnerRetrieveParams
|
|
76
76
|
|
|
77
|
+
BeneficialOwnerUpdateParams = Increase::Models::BeneficialOwnerUpdateParams
|
|
78
|
+
|
|
77
79
|
BookkeepingAccount = Increase::Models::BookkeepingAccount
|
|
78
80
|
|
|
79
81
|
BookkeepingAccountBalanceParams =
|
|
@@ -17,6 +17,24 @@ module Increase
|
|
|
17
17
|
)
|
|
18
18
|
end
|
|
19
19
|
|
|
20
|
+
# Update a Beneficial Owner
|
|
21
|
+
sig do
|
|
22
|
+
params(
|
|
23
|
+
entity_beneficial_owner_id: String,
|
|
24
|
+
address: Increase::BeneficialOwnerUpdateParams::Address::OrHash,
|
|
25
|
+
request_options: Increase::RequestOptions::OrHash
|
|
26
|
+
).returns(Increase::EntityBeneficialOwner)
|
|
27
|
+
end
|
|
28
|
+
def update(
|
|
29
|
+
# The identifier of the Beneficial Owner to update.
|
|
30
|
+
entity_beneficial_owner_id,
|
|
31
|
+
# The individual's physical address. Mail receiving locations like PO Boxes and
|
|
32
|
+
# PMB's are disallowed.
|
|
33
|
+
address: nil,
|
|
34
|
+
request_options: {}
|
|
35
|
+
)
|
|
36
|
+
end
|
|
37
|
+
|
|
20
38
|
# List Beneficial Owners
|
|
21
39
|
sig do
|
|
22
40
|
params(
|
|
@@ -42,10 +42,20 @@ module Increase
|
|
|
42
42
|
)
|
|
43
43
|
end
|
|
44
44
|
|
|
45
|
-
sig
|
|
45
|
+
sig do
|
|
46
|
+
params(
|
|
47
|
+
payload: String,
|
|
48
|
+
headers: T::Hash[String, String],
|
|
49
|
+
key: T.nilable(String)
|
|
50
|
+
).returns(Increase::UnwrapWebhookEvent)
|
|
51
|
+
end
|
|
46
52
|
def unwrap(
|
|
47
53
|
# The raw webhook payload as a string
|
|
48
|
-
payload
|
|
54
|
+
payload,
|
|
55
|
+
# The raw HTTP headers that came with the payload
|
|
56
|
+
headers:,
|
|
57
|
+
# The webhook signing key
|
|
58
|
+
key: @client.webhook_secret
|
|
49
59
|
)
|
|
50
60
|
end
|
|
51
61
|
|
data/sig/increase/client.rbs
CHANGED
|
@@ -15,6 +15,8 @@ module Increase
|
|
|
15
15
|
|
|
16
16
|
attr_reader api_key: String
|
|
17
17
|
|
|
18
|
+
attr_reader webhook_secret: String?
|
|
19
|
+
|
|
18
20
|
attr_reader accounts: Increase::Resources::Accounts
|
|
19
21
|
|
|
20
22
|
attr_reader account_numbers: Increase::Resources::AccountNumbers
|
|
@@ -135,6 +137,7 @@ module Increase
|
|
|
135
137
|
|
|
136
138
|
def initialize: (
|
|
137
139
|
?api_key: String?,
|
|
140
|
+
?webhook_secret: String?,
|
|
138
141
|
?environment: :production | :sandbox | nil,
|
|
139
142
|
?base_url: String?,
|
|
140
143
|
?max_retries: Integer,
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
module Increase
|
|
2
|
+
module Models
|
|
3
|
+
type beneficial_owner_update_params =
|
|
4
|
+
{
|
|
5
|
+
entity_beneficial_owner_id: String,
|
|
6
|
+
address: Increase::BeneficialOwnerUpdateParams::Address
|
|
7
|
+
}
|
|
8
|
+
& Increase::Internal::Type::request_parameters
|
|
9
|
+
|
|
10
|
+
class BeneficialOwnerUpdateParams < Increase::Internal::Type::BaseModel
|
|
11
|
+
extend Increase::Internal::Type::RequestParameters::Converter
|
|
12
|
+
include Increase::Internal::Type::RequestParameters
|
|
13
|
+
|
|
14
|
+
attr_accessor entity_beneficial_owner_id: String
|
|
15
|
+
|
|
16
|
+
attr_reader address: Increase::BeneficialOwnerUpdateParams::Address?
|
|
17
|
+
|
|
18
|
+
def address=: (
|
|
19
|
+
Increase::BeneficialOwnerUpdateParams::Address
|
|
20
|
+
) -> Increase::BeneficialOwnerUpdateParams::Address
|
|
21
|
+
|
|
22
|
+
def initialize: (
|
|
23
|
+
entity_beneficial_owner_id: String,
|
|
24
|
+
?address: Increase::BeneficialOwnerUpdateParams::Address,
|
|
25
|
+
?request_options: Increase::request_opts
|
|
26
|
+
) -> void
|
|
27
|
+
|
|
28
|
+
def to_hash: -> {
|
|
29
|
+
entity_beneficial_owner_id: String,
|
|
30
|
+
address: Increase::BeneficialOwnerUpdateParams::Address,
|
|
31
|
+
request_options: Increase::RequestOptions
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
type address =
|
|
35
|
+
{
|
|
36
|
+
city: String,
|
|
37
|
+
country: String,
|
|
38
|
+
:line1 => String,
|
|
39
|
+
:line2 => String,
|
|
40
|
+
state: String,
|
|
41
|
+
zip: String
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
class Address < Increase::Internal::Type::BaseModel
|
|
45
|
+
attr_accessor city: String
|
|
46
|
+
|
|
47
|
+
attr_accessor country: String
|
|
48
|
+
|
|
49
|
+
attr_accessor line1: String
|
|
50
|
+
|
|
51
|
+
attr_reader line2: String?
|
|
52
|
+
|
|
53
|
+
def line2=: (String) -> String
|
|
54
|
+
|
|
55
|
+
attr_reader state: String?
|
|
56
|
+
|
|
57
|
+
def state=: (String) -> String
|
|
58
|
+
|
|
59
|
+
attr_reader zip: String?
|
|
60
|
+
|
|
61
|
+
def zip=: (String) -> String
|
|
62
|
+
|
|
63
|
+
def initialize: (
|
|
64
|
+
city: String,
|
|
65
|
+
country: String,
|
|
66
|
+
line1: String,
|
|
67
|
+
?line2: String,
|
|
68
|
+
?state: String,
|
|
69
|
+
?zip: String
|
|
70
|
+
) -> void
|
|
71
|
+
|
|
72
|
+
def to_hash: -> {
|
|
73
|
+
city: String,
|
|
74
|
+
country: String,
|
|
75
|
+
:line1 => String,
|
|
76
|
+
:line2 => String,
|
|
77
|
+
state: String,
|
|
78
|
+
zip: String
|
|
79
|
+
}
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
end
|
data/sig/increase/models.rbs
CHANGED
|
@@ -67,6 +67,8 @@ module Increase
|
|
|
67
67
|
|
|
68
68
|
class BeneficialOwnerRetrieveParams = Increase::Models::BeneficialOwnerRetrieveParams
|
|
69
69
|
|
|
70
|
+
class BeneficialOwnerUpdateParams = Increase::Models::BeneficialOwnerUpdateParams
|
|
71
|
+
|
|
70
72
|
class BookkeepingAccount = Increase::Models::BookkeepingAccount
|
|
71
73
|
|
|
72
74
|
class BookkeepingAccountBalanceParams = Increase::Models::BookkeepingAccountBalanceParams
|
|
@@ -6,6 +6,12 @@ module Increase
|
|
|
6
6
|
?request_options: Increase::request_opts
|
|
7
7
|
) -> Increase::EntityBeneficialOwner
|
|
8
8
|
|
|
9
|
+
def update: (
|
|
10
|
+
String entity_beneficial_owner_id,
|
|
11
|
+
?address: Increase::BeneficialOwnerUpdateParams::Address,
|
|
12
|
+
?request_options: Increase::request_opts
|
|
13
|
+
) -> Increase::EntityBeneficialOwner
|
|
14
|
+
|
|
9
15
|
def list: (
|
|
10
16
|
entity_id: String,
|
|
11
17
|
?cursor: String,
|
|
@@ -15,7 +15,11 @@ module Increase
|
|
|
15
15
|
?request_options: Increase::request_opts
|
|
16
16
|
) -> Increase::Internal::Page[Increase::Event]
|
|
17
17
|
|
|
18
|
-
def unwrap: (
|
|
18
|
+
def unwrap: (
|
|
19
|
+
String payload,
|
|
20
|
+
headers: ::Hash[String, String],
|
|
21
|
+
?key: String?
|
|
22
|
+
) -> Increase::UnwrapWebhookEvent
|
|
19
23
|
|
|
20
24
|
def initialize: (client: Increase::Client) -> void
|
|
21
25
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: increase
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.243.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Increase
|
|
@@ -38,6 +38,20 @@ dependencies:
|
|
|
38
38
|
- - ">="
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
40
|
version: '0'
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: standardwebhooks
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - ">="
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: '0'
|
|
48
|
+
type: :runtime
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - ">="
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '0'
|
|
41
55
|
description:
|
|
42
56
|
email: dev-feedback@increase.com
|
|
43
57
|
executables: []
|
|
@@ -104,6 +118,7 @@ files:
|
|
|
104
118
|
- lib/increase/models/balance_lookup.rb
|
|
105
119
|
- lib/increase/models/beneficial_owner_list_params.rb
|
|
106
120
|
- lib/increase/models/beneficial_owner_retrieve_params.rb
|
|
121
|
+
- lib/increase/models/beneficial_owner_update_params.rb
|
|
107
122
|
- lib/increase/models/bookkeeping_account.rb
|
|
108
123
|
- lib/increase/models/bookkeeping_account_balance_params.rb
|
|
109
124
|
- lib/increase/models/bookkeeping_account_create_params.rb
|
|
@@ -519,6 +534,7 @@ files:
|
|
|
519
534
|
- rbi/increase/models/balance_lookup.rbi
|
|
520
535
|
- rbi/increase/models/beneficial_owner_list_params.rbi
|
|
521
536
|
- rbi/increase/models/beneficial_owner_retrieve_params.rbi
|
|
537
|
+
- rbi/increase/models/beneficial_owner_update_params.rbi
|
|
522
538
|
- rbi/increase/models/bookkeeping_account.rbi
|
|
523
539
|
- rbi/increase/models/bookkeeping_account_balance_params.rbi
|
|
524
540
|
- rbi/increase/models/bookkeeping_account_create_params.rbi
|
|
@@ -933,6 +949,7 @@ files:
|
|
|
933
949
|
- sig/increase/models/balance_lookup.rbs
|
|
934
950
|
- sig/increase/models/beneficial_owner_list_params.rbs
|
|
935
951
|
- sig/increase/models/beneficial_owner_retrieve_params.rbs
|
|
952
|
+
- sig/increase/models/beneficial_owner_update_params.rbs
|
|
936
953
|
- sig/increase/models/bookkeeping_account.rbs
|
|
937
954
|
- sig/increase/models/bookkeeping_account_balance_params.rbs
|
|
938
955
|
- sig/increase/models/bookkeeping_account_create_params.rbs
|