increase 1.308.0 → 1.310.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/models/event.rb +0 -6
- data/lib/increase/models/event_list_params.rb +0 -6
- data/lib/increase/models/event_subscription.rb +0 -6
- data/lib/increase/models/event_subscription_create_params.rb +0 -6
- data/lib/increase/models/simulations/account_revenue_payment_create_params.rb +63 -0
- data/lib/increase/models/unwrap_webhook_event.rb +0 -6
- data/lib/increase/resources/simulations/account_revenue_payments.rb +51 -0
- data/lib/increase/resources/simulations.rb +4 -0
- data/lib/increase/version.rb +1 -1
- data/lib/increase.rb +2 -0
- data/rbi/increase/models/event.rbi +0 -14
- data/rbi/increase/models/event_list_params.rbi +0 -14
- data/rbi/increase/models/event_subscription.rbi +0 -14
- data/rbi/increase/models/event_subscription_create_params.rbi +0 -14
- data/rbi/increase/models/simulations/account_revenue_payment_create_params.rbi +95 -0
- data/rbi/increase/models/unwrap_webhook_event.rbi +0 -14
- data/rbi/increase/resources/simulations/account_revenue_payments.rbi +44 -0
- data/rbi/increase/resources/simulations.rbi +3 -0
- data/sig/increase/models/event.rbs +0 -8
- data/sig/increase/models/event_list_params.rbs +0 -8
- data/sig/increase/models/event_subscription.rbs +0 -8
- data/sig/increase/models/event_subscription_create_params.rbs +0 -8
- data/sig/increase/models/simulations/account_revenue_payment_create_params.rbs +54 -0
- data/sig/increase/models/unwrap_webhook_event.rbs +0 -8
- data/sig/increase/resources/simulations/account_revenue_payments.rbs +18 -0
- data/sig/increase/resources/simulations.rbs +2 -0
- metadata +7 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0e031a8bed8aeb92b372e9816281d01326f065909cbf1e23a68e69ca36ac5fa0
|
|
4
|
+
data.tar.gz: 91cf4a53fdc6387257509c15fae9fd43962a31686e397c830bbb097360207339
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 67248dbedfb8072d0c678732b5860ecc01b0d70cba2388a4e47db5ee351406b7903a7d83ff578d237a6b6a8dd255328dd7d91543f5b68802981253ab10f56313
|
|
7
|
+
data.tar.gz: 73b424d4b9901b6a39fcd7f6518a68934715e12eb61af17a69138e68b021995ed1dd29835a05250c0b3d069a8ca836c8e9983726d162661dc7b8fde1b6f67e3d
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.310.0 (2026-04-28)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v1.309.0...v1.310.0](https://github.com/Increase/increase-ruby/compare/v1.309.0...v1.310.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([9c049a9](https://github.com/Increase/increase-ruby/commit/9c049a9a1b71bdf6932fc8feafe348b33e96e289))
|
|
10
|
+
|
|
11
|
+
## 1.309.0 (2026-04-28)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v1.308.0...v1.309.0](https://github.com/Increase/increase-ruby/compare/v1.308.0...v1.309.0)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **api:** api update ([7ed5b8e](https://github.com/Increase/increase-ruby/commit/7ed5b8ed41c30aa9b10df342b6d4e543d5312a4b))
|
|
18
|
+
|
|
3
19
|
## 1.308.0 (2026-04-28)
|
|
4
20
|
|
|
5
21
|
Full Changelog: [v1.307.0...v1.308.0](https://github.com/Increase/increase-ruby/compare/v1.307.0...v1.308.0)
|
data/README.md
CHANGED
|
@@ -283,12 +283,6 @@ module Increase
|
|
|
283
283
|
# Occurs whenever an IntraFi Exclusion is updated.
|
|
284
284
|
INTRAFI_EXCLUSION_UPDATED = :"intrafi_exclusion.updated"
|
|
285
285
|
|
|
286
|
-
# Occurs whenever a Legacy Card Dispute is created.
|
|
287
|
-
LEGACY_CARD_DISPUTE_CREATED = :"legacy_card_dispute.created"
|
|
288
|
-
|
|
289
|
-
# Occurs whenever a Legacy Card Dispute is updated.
|
|
290
|
-
LEGACY_CARD_DISPUTE_UPDATED = :"legacy_card_dispute.updated"
|
|
291
|
-
|
|
292
286
|
# Occurs whenever a Lockbox is created.
|
|
293
287
|
LOCKBOX_CREATED = :"lockbox.created"
|
|
294
288
|
|
|
@@ -292,12 +292,6 @@ module Increase
|
|
|
292
292
|
# Occurs whenever an IntraFi Exclusion is updated.
|
|
293
293
|
INTRAFI_EXCLUSION_UPDATED = :"intrafi_exclusion.updated"
|
|
294
294
|
|
|
295
|
-
# Occurs whenever a Legacy Card Dispute is created.
|
|
296
|
-
LEGACY_CARD_DISPUTE_CREATED = :"legacy_card_dispute.created"
|
|
297
|
-
|
|
298
|
-
# Occurs whenever a Legacy Card Dispute is updated.
|
|
299
|
-
LEGACY_CARD_DISPUTE_UPDATED = :"legacy_card_dispute.updated"
|
|
300
|
-
|
|
301
295
|
# Occurs whenever a Lockbox is created.
|
|
302
296
|
LOCKBOX_CREATED = :"lockbox.created"
|
|
303
297
|
|
|
@@ -317,12 +317,6 @@ module Increase
|
|
|
317
317
|
# Occurs whenever an IntraFi Exclusion is updated.
|
|
318
318
|
INTRAFI_EXCLUSION_UPDATED = :"intrafi_exclusion.updated"
|
|
319
319
|
|
|
320
|
-
# Occurs whenever a Legacy Card Dispute is created.
|
|
321
|
-
LEGACY_CARD_DISPUTE_CREATED = :"legacy_card_dispute.created"
|
|
322
|
-
|
|
323
|
-
# Occurs whenever a Legacy Card Dispute is updated.
|
|
324
|
-
LEGACY_CARD_DISPUTE_UPDATED = :"legacy_card_dispute.updated"
|
|
325
|
-
|
|
326
320
|
# Occurs whenever a Lockbox is created.
|
|
327
321
|
LOCKBOX_CREATED = :"lockbox.created"
|
|
328
322
|
|
|
@@ -288,12 +288,6 @@ module Increase
|
|
|
288
288
|
# Occurs whenever an IntraFi Exclusion is updated.
|
|
289
289
|
INTRAFI_EXCLUSION_UPDATED = :"intrafi_exclusion.updated"
|
|
290
290
|
|
|
291
|
-
# Occurs whenever a Legacy Card Dispute is created.
|
|
292
|
-
LEGACY_CARD_DISPUTE_CREATED = :"legacy_card_dispute.created"
|
|
293
|
-
|
|
294
|
-
# Occurs whenever a Legacy Card Dispute is updated.
|
|
295
|
-
LEGACY_CARD_DISPUTE_UPDATED = :"legacy_card_dispute.updated"
|
|
296
|
-
|
|
297
291
|
# Occurs whenever a Lockbox is created.
|
|
298
292
|
LOCKBOX_CREATED = :"lockbox.created"
|
|
299
293
|
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Models
|
|
5
|
+
module Simulations
|
|
6
|
+
# @see Increase::Resources::Simulations::AccountRevenuePayments#create
|
|
7
|
+
class AccountRevenuePaymentCreateParams < Increase::Internal::Type::BaseModel
|
|
8
|
+
extend Increase::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Increase::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute account_id
|
|
12
|
+
# The identifier of the Account the Account Revenue Payment should be paid to.
|
|
13
|
+
#
|
|
14
|
+
# @return [String]
|
|
15
|
+
required :account_id, String
|
|
16
|
+
|
|
17
|
+
# @!attribute amount
|
|
18
|
+
# The account revenue amount in cents. Must be positive.
|
|
19
|
+
#
|
|
20
|
+
# @return [Integer]
|
|
21
|
+
required :amount, Integer
|
|
22
|
+
|
|
23
|
+
# @!attribute accrued_on_account_id
|
|
24
|
+
# The identifier of the Account the account revenue accrued on. Defaults to
|
|
25
|
+
# `account_id`.
|
|
26
|
+
#
|
|
27
|
+
# @return [String, nil]
|
|
28
|
+
optional :accrued_on_account_id, String
|
|
29
|
+
|
|
30
|
+
# @!attribute period_end
|
|
31
|
+
# The end of the account revenue period. If not provided, defaults to the current
|
|
32
|
+
# time.
|
|
33
|
+
#
|
|
34
|
+
# @return [Time, nil]
|
|
35
|
+
optional :period_end, Time
|
|
36
|
+
|
|
37
|
+
# @!attribute period_start
|
|
38
|
+
# The start of the account revenue period. If not provided, defaults to the
|
|
39
|
+
# current time.
|
|
40
|
+
#
|
|
41
|
+
# @return [Time, nil]
|
|
42
|
+
optional :period_start, Time
|
|
43
|
+
|
|
44
|
+
# @!method initialize(account_id:, amount:, accrued_on_account_id: nil, period_end: nil, period_start: nil, request_options: {})
|
|
45
|
+
# Some parameter documentations has been truncated, see
|
|
46
|
+
# {Increase::Models::Simulations::AccountRevenuePaymentCreateParams} for more
|
|
47
|
+
# details.
|
|
48
|
+
#
|
|
49
|
+
# @param account_id [String] The identifier of the Account the Account Revenue Payment should be paid to.
|
|
50
|
+
#
|
|
51
|
+
# @param amount [Integer] The account revenue amount in cents. Must be positive.
|
|
52
|
+
#
|
|
53
|
+
# @param accrued_on_account_id [String] The identifier of the Account the account revenue accrued on. Defaults to `accou
|
|
54
|
+
#
|
|
55
|
+
# @param period_end [Time] The end of the account revenue period. If not provided, defaults to the current
|
|
56
|
+
#
|
|
57
|
+
# @param period_start [Time] The start of the account revenue period. If not provided, defaults to the curren
|
|
58
|
+
#
|
|
59
|
+
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
@@ -282,12 +282,6 @@ module Increase
|
|
|
282
282
|
# Occurs whenever an IntraFi Exclusion is updated.
|
|
283
283
|
INTRAFI_EXCLUSION_UPDATED = :"intrafi_exclusion.updated"
|
|
284
284
|
|
|
285
|
-
# Occurs whenever a Legacy Card Dispute is created.
|
|
286
|
-
LEGACY_CARD_DISPUTE_CREATED = :"legacy_card_dispute.created"
|
|
287
|
-
|
|
288
|
-
# Occurs whenever a Legacy Card Dispute is updated.
|
|
289
|
-
LEGACY_CARD_DISPUTE_UPDATED = :"legacy_card_dispute.updated"
|
|
290
|
-
|
|
291
285
|
# Occurs whenever a Lockbox is created.
|
|
292
286
|
LOCKBOX_CREATED = :"lockbox.created"
|
|
293
287
|
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Resources
|
|
5
|
+
class Simulations
|
|
6
|
+
class AccountRevenuePayments
|
|
7
|
+
# Some parameter documentations has been truncated, see
|
|
8
|
+
# {Increase::Models::Simulations::AccountRevenuePaymentCreateParams} for more
|
|
9
|
+
# details.
|
|
10
|
+
#
|
|
11
|
+
# Simulates an account revenue payment to your account. In production, this
|
|
12
|
+
# happens automatically on the first of each month.
|
|
13
|
+
#
|
|
14
|
+
# @overload create(account_id:, amount:, accrued_on_account_id: nil, period_end: nil, period_start: nil, request_options: {})
|
|
15
|
+
#
|
|
16
|
+
# @param account_id [String] The identifier of the Account the Account Revenue Payment should be paid to.
|
|
17
|
+
#
|
|
18
|
+
# @param amount [Integer] The account revenue amount in cents. Must be positive.
|
|
19
|
+
#
|
|
20
|
+
# @param accrued_on_account_id [String] The identifier of the Account the account revenue accrued on. Defaults to `accou
|
|
21
|
+
#
|
|
22
|
+
# @param period_end [Time] The end of the account revenue period. If not provided, defaults to the current
|
|
23
|
+
#
|
|
24
|
+
# @param period_start [Time] The start of the account revenue period. If not provided, defaults to the curren
|
|
25
|
+
#
|
|
26
|
+
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
27
|
+
#
|
|
28
|
+
# @return [Increase::Models::Transaction]
|
|
29
|
+
#
|
|
30
|
+
# @see Increase::Models::Simulations::AccountRevenuePaymentCreateParams
|
|
31
|
+
def create(params)
|
|
32
|
+
parsed, options = Increase::Simulations::AccountRevenuePaymentCreateParams.dump_request(params)
|
|
33
|
+
@client.request(
|
|
34
|
+
method: :post,
|
|
35
|
+
path: "simulations/account_revenue_payments",
|
|
36
|
+
body: parsed,
|
|
37
|
+
model: Increase::Transaction,
|
|
38
|
+
options: options
|
|
39
|
+
)
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# @api private
|
|
43
|
+
#
|
|
44
|
+
# @param client [Increase::Client]
|
|
45
|
+
def initialize(client:)
|
|
46
|
+
@client = client
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
@@ -6,6 +6,9 @@ module Increase
|
|
|
6
6
|
# @return [Increase::Resources::Simulations::InterestPayments]
|
|
7
7
|
attr_reader :interest_payments
|
|
8
8
|
|
|
9
|
+
# @return [Increase::Resources::Simulations::AccountRevenuePayments]
|
|
10
|
+
attr_reader :account_revenue_payments
|
|
11
|
+
|
|
9
12
|
# @return [Increase::Resources::Simulations::CardAuthorizations]
|
|
10
13
|
attr_reader :card_authorizations
|
|
11
14
|
|
|
@@ -108,6 +111,7 @@ module Increase
|
|
|
108
111
|
def initialize(client:)
|
|
109
112
|
@client = client
|
|
110
113
|
@interest_payments = Increase::Resources::Simulations::InterestPayments.new(client: client)
|
|
114
|
+
@account_revenue_payments = Increase::Resources::Simulations::AccountRevenuePayments.new(client: client)
|
|
111
115
|
@card_authorizations = Increase::Resources::Simulations::CardAuthorizations.new(client: client)
|
|
112
116
|
@card_balance_inquiries = Increase::Resources::Simulations::CardBalanceInquiries.new(client: client)
|
|
113
117
|
@card_authorization_expirations =
|
data/lib/increase/version.rb
CHANGED
data/lib/increase.rb
CHANGED
|
@@ -284,6 +284,7 @@ require_relative "increase/models/real_time_payments_transfer_list_params"
|
|
|
284
284
|
require_relative "increase/models/real_time_payments_transfer_retrieve_params"
|
|
285
285
|
require_relative "increase/models/routing_number_list_params"
|
|
286
286
|
require_relative "increase/models/routing_number_list_response"
|
|
287
|
+
require_relative "increase/models/simulations/account_revenue_payment_create_params"
|
|
287
288
|
require_relative "increase/models/simulations/account_statement_create_params"
|
|
288
289
|
require_relative "increase/models/simulations/ach_transfer_acknowledge_params"
|
|
289
290
|
require_relative "increase/models/simulations/ach_transfer_create_notification_of_change_params"
|
|
@@ -407,6 +408,7 @@ require_relative "increase/resources/real_time_decisions"
|
|
|
407
408
|
require_relative "increase/resources/real_time_payments_transfers"
|
|
408
409
|
require_relative "increase/resources/routing_numbers"
|
|
409
410
|
require_relative "increase/resources/simulations"
|
|
411
|
+
require_relative "increase/resources/simulations/account_revenue_payments"
|
|
410
412
|
require_relative "increase/resources/simulations/account_statements"
|
|
411
413
|
require_relative "increase/resources/simulations/ach_transfers"
|
|
412
414
|
require_relative "increase/resources/simulations/card_authentications"
|
|
@@ -548,20 +548,6 @@ module Increase
|
|
|
548
548
|
Increase::Event::Category::TaggedSymbol
|
|
549
549
|
)
|
|
550
550
|
|
|
551
|
-
# Occurs whenever a Legacy Card Dispute is created.
|
|
552
|
-
LEGACY_CARD_DISPUTE_CREATED =
|
|
553
|
-
T.let(
|
|
554
|
-
:"legacy_card_dispute.created",
|
|
555
|
-
Increase::Event::Category::TaggedSymbol
|
|
556
|
-
)
|
|
557
|
-
|
|
558
|
-
# Occurs whenever a Legacy Card Dispute is updated.
|
|
559
|
-
LEGACY_CARD_DISPUTE_UPDATED =
|
|
560
|
-
T.let(
|
|
561
|
-
:"legacy_card_dispute.updated",
|
|
562
|
-
Increase::Event::Category::TaggedSymbol
|
|
563
|
-
)
|
|
564
|
-
|
|
565
551
|
# Occurs whenever a Lockbox is created.
|
|
566
552
|
LOCKBOX_CREATED =
|
|
567
553
|
T.let(:"lockbox.created", Increase::Event::Category::TaggedSymbol)
|
|
@@ -650,20 +650,6 @@ module Increase
|
|
|
650
650
|
Increase::EventListParams::Category::In::TaggedSymbol
|
|
651
651
|
)
|
|
652
652
|
|
|
653
|
-
# Occurs whenever a Legacy Card Dispute is created.
|
|
654
|
-
LEGACY_CARD_DISPUTE_CREATED =
|
|
655
|
-
T.let(
|
|
656
|
-
:"legacy_card_dispute.created",
|
|
657
|
-
Increase::EventListParams::Category::In::TaggedSymbol
|
|
658
|
-
)
|
|
659
|
-
|
|
660
|
-
# Occurs whenever a Legacy Card Dispute is updated.
|
|
661
|
-
LEGACY_CARD_DISPUTE_UPDATED =
|
|
662
|
-
T.let(
|
|
663
|
-
:"legacy_card_dispute.updated",
|
|
664
|
-
Increase::EventListParams::Category::In::TaggedSymbol
|
|
665
|
-
)
|
|
666
|
-
|
|
667
653
|
# Occurs whenever a Lockbox is created.
|
|
668
654
|
LOCKBOX_CREATED =
|
|
669
655
|
T.let(
|
|
@@ -675,20 +675,6 @@ module Increase
|
|
|
675
675
|
Increase::EventSubscription::SelectedEventCategory::EventCategory::TaggedSymbol
|
|
676
676
|
)
|
|
677
677
|
|
|
678
|
-
# Occurs whenever a Legacy Card Dispute is created.
|
|
679
|
-
LEGACY_CARD_DISPUTE_CREATED =
|
|
680
|
-
T.let(
|
|
681
|
-
:"legacy_card_dispute.created",
|
|
682
|
-
Increase::EventSubscription::SelectedEventCategory::EventCategory::TaggedSymbol
|
|
683
|
-
)
|
|
684
|
-
|
|
685
|
-
# Occurs whenever a Legacy Card Dispute is updated.
|
|
686
|
-
LEGACY_CARD_DISPUTE_UPDATED =
|
|
687
|
-
T.let(
|
|
688
|
-
:"legacy_card_dispute.updated",
|
|
689
|
-
Increase::EventSubscription::SelectedEventCategory::EventCategory::TaggedSymbol
|
|
690
|
-
)
|
|
691
|
-
|
|
692
678
|
# Occurs whenever a Lockbox is created.
|
|
693
679
|
LOCKBOX_CREATED =
|
|
694
680
|
T.let(
|
|
@@ -673,20 +673,6 @@ module Increase
|
|
|
673
673
|
Increase::EventSubscriptionCreateParams::SelectedEventCategory::EventCategory::TaggedSymbol
|
|
674
674
|
)
|
|
675
675
|
|
|
676
|
-
# Occurs whenever a Legacy Card Dispute is created.
|
|
677
|
-
LEGACY_CARD_DISPUTE_CREATED =
|
|
678
|
-
T.let(
|
|
679
|
-
:"legacy_card_dispute.created",
|
|
680
|
-
Increase::EventSubscriptionCreateParams::SelectedEventCategory::EventCategory::TaggedSymbol
|
|
681
|
-
)
|
|
682
|
-
|
|
683
|
-
# Occurs whenever a Legacy Card Dispute is updated.
|
|
684
|
-
LEGACY_CARD_DISPUTE_UPDATED =
|
|
685
|
-
T.let(
|
|
686
|
-
:"legacy_card_dispute.updated",
|
|
687
|
-
Increase::EventSubscriptionCreateParams::SelectedEventCategory::EventCategory::TaggedSymbol
|
|
688
|
-
)
|
|
689
|
-
|
|
690
676
|
# Occurs whenever a Lockbox is created.
|
|
691
677
|
LOCKBOX_CREATED =
|
|
692
678
|
T.let(
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Models
|
|
5
|
+
module Simulations
|
|
6
|
+
class AccountRevenuePaymentCreateParams < Increase::Internal::Type::BaseModel
|
|
7
|
+
extend Increase::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Increase::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
OrHash =
|
|
11
|
+
T.type_alias do
|
|
12
|
+
T.any(
|
|
13
|
+
Increase::Simulations::AccountRevenuePaymentCreateParams,
|
|
14
|
+
Increase::Internal::AnyHash
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
# The identifier of the Account the Account Revenue Payment should be paid to.
|
|
19
|
+
sig { returns(String) }
|
|
20
|
+
attr_accessor :account_id
|
|
21
|
+
|
|
22
|
+
# The account revenue amount in cents. Must be positive.
|
|
23
|
+
sig { returns(Integer) }
|
|
24
|
+
attr_accessor :amount
|
|
25
|
+
|
|
26
|
+
# The identifier of the Account the account revenue accrued on. Defaults to
|
|
27
|
+
# `account_id`.
|
|
28
|
+
sig { returns(T.nilable(String)) }
|
|
29
|
+
attr_reader :accrued_on_account_id
|
|
30
|
+
|
|
31
|
+
sig { params(accrued_on_account_id: String).void }
|
|
32
|
+
attr_writer :accrued_on_account_id
|
|
33
|
+
|
|
34
|
+
# The end of the account revenue period. If not provided, defaults to the current
|
|
35
|
+
# time.
|
|
36
|
+
sig { returns(T.nilable(Time)) }
|
|
37
|
+
attr_reader :period_end
|
|
38
|
+
|
|
39
|
+
sig { params(period_end: Time).void }
|
|
40
|
+
attr_writer :period_end
|
|
41
|
+
|
|
42
|
+
# The start of the account revenue period. If not provided, defaults to the
|
|
43
|
+
# current time.
|
|
44
|
+
sig { returns(T.nilable(Time)) }
|
|
45
|
+
attr_reader :period_start
|
|
46
|
+
|
|
47
|
+
sig { params(period_start: Time).void }
|
|
48
|
+
attr_writer :period_start
|
|
49
|
+
|
|
50
|
+
sig do
|
|
51
|
+
params(
|
|
52
|
+
account_id: String,
|
|
53
|
+
amount: Integer,
|
|
54
|
+
accrued_on_account_id: String,
|
|
55
|
+
period_end: Time,
|
|
56
|
+
period_start: Time,
|
|
57
|
+
request_options: Increase::RequestOptions::OrHash
|
|
58
|
+
).returns(T.attached_class)
|
|
59
|
+
end
|
|
60
|
+
def self.new(
|
|
61
|
+
# The identifier of the Account the Account Revenue Payment should be paid to.
|
|
62
|
+
account_id:,
|
|
63
|
+
# The account revenue amount in cents. Must be positive.
|
|
64
|
+
amount:,
|
|
65
|
+
# The identifier of the Account the account revenue accrued on. Defaults to
|
|
66
|
+
# `account_id`.
|
|
67
|
+
accrued_on_account_id: nil,
|
|
68
|
+
# The end of the account revenue period. If not provided, defaults to the current
|
|
69
|
+
# time.
|
|
70
|
+
period_end: nil,
|
|
71
|
+
# The start of the account revenue period. If not provided, defaults to the
|
|
72
|
+
# current time.
|
|
73
|
+
period_start: nil,
|
|
74
|
+
request_options: {}
|
|
75
|
+
)
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
sig do
|
|
79
|
+
override.returns(
|
|
80
|
+
{
|
|
81
|
+
account_id: String,
|
|
82
|
+
amount: Integer,
|
|
83
|
+
accrued_on_account_id: String,
|
|
84
|
+
period_end: Time,
|
|
85
|
+
period_start: Time,
|
|
86
|
+
request_options: Increase::RequestOptions
|
|
87
|
+
}
|
|
88
|
+
)
|
|
89
|
+
end
|
|
90
|
+
def to_hash
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
end
|
|
@@ -587,20 +587,6 @@ module Increase
|
|
|
587
587
|
Increase::UnwrapWebhookEvent::Category::TaggedSymbol
|
|
588
588
|
)
|
|
589
589
|
|
|
590
|
-
# Occurs whenever a Legacy Card Dispute is created.
|
|
591
|
-
LEGACY_CARD_DISPUTE_CREATED =
|
|
592
|
-
T.let(
|
|
593
|
-
:"legacy_card_dispute.created",
|
|
594
|
-
Increase::UnwrapWebhookEvent::Category::TaggedSymbol
|
|
595
|
-
)
|
|
596
|
-
|
|
597
|
-
# Occurs whenever a Legacy Card Dispute is updated.
|
|
598
|
-
LEGACY_CARD_DISPUTE_UPDATED =
|
|
599
|
-
T.let(
|
|
600
|
-
:"legacy_card_dispute.updated",
|
|
601
|
-
Increase::UnwrapWebhookEvent::Category::TaggedSymbol
|
|
602
|
-
)
|
|
603
|
-
|
|
604
590
|
# Occurs whenever a Lockbox is created.
|
|
605
591
|
LOCKBOX_CREATED =
|
|
606
592
|
T.let(
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Resources
|
|
5
|
+
class Simulations
|
|
6
|
+
class AccountRevenuePayments
|
|
7
|
+
# Simulates an account revenue payment to your account. In production, this
|
|
8
|
+
# happens automatically on the first of each month.
|
|
9
|
+
sig do
|
|
10
|
+
params(
|
|
11
|
+
account_id: String,
|
|
12
|
+
amount: Integer,
|
|
13
|
+
accrued_on_account_id: String,
|
|
14
|
+
period_end: Time,
|
|
15
|
+
period_start: Time,
|
|
16
|
+
request_options: Increase::RequestOptions::OrHash
|
|
17
|
+
).returns(Increase::Transaction)
|
|
18
|
+
end
|
|
19
|
+
def create(
|
|
20
|
+
# The identifier of the Account the Account Revenue Payment should be paid to.
|
|
21
|
+
account_id:,
|
|
22
|
+
# The account revenue amount in cents. Must be positive.
|
|
23
|
+
amount:,
|
|
24
|
+
# The identifier of the Account the account revenue accrued on. Defaults to
|
|
25
|
+
# `account_id`.
|
|
26
|
+
accrued_on_account_id: nil,
|
|
27
|
+
# The end of the account revenue period. If not provided, defaults to the current
|
|
28
|
+
# time.
|
|
29
|
+
period_end: nil,
|
|
30
|
+
# The start of the account revenue period. If not provided, defaults to the
|
|
31
|
+
# current time.
|
|
32
|
+
period_start: nil,
|
|
33
|
+
request_options: {}
|
|
34
|
+
)
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# @api private
|
|
38
|
+
sig { params(client: Increase::Client).returns(T.attached_class) }
|
|
39
|
+
def self.new(client:)
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
@@ -6,6 +6,9 @@ module Increase
|
|
|
6
6
|
sig { returns(Increase::Resources::Simulations::InterestPayments) }
|
|
7
7
|
attr_reader :interest_payments
|
|
8
8
|
|
|
9
|
+
sig { returns(Increase::Resources::Simulations::AccountRevenuePayments) }
|
|
10
|
+
attr_reader :account_revenue_payments
|
|
11
|
+
|
|
9
12
|
sig { returns(Increase::Resources::Simulations::CardAuthorizations) }
|
|
10
13
|
attr_reader :card_authorizations
|
|
11
14
|
|
|
@@ -113,8 +113,6 @@ module Increase
|
|
|
113
113
|
| :"intrafi_account_enrollment.updated"
|
|
114
114
|
| :"intrafi_exclusion.created"
|
|
115
115
|
| :"intrafi_exclusion.updated"
|
|
116
|
-
| :"legacy_card_dispute.created"
|
|
117
|
-
| :"legacy_card_dispute.updated"
|
|
118
116
|
| :"lockbox.created"
|
|
119
117
|
| :"lockbox.updated"
|
|
120
118
|
| :"oauth_connection.created"
|
|
@@ -369,12 +367,6 @@ module Increase
|
|
|
369
367
|
# Occurs whenever an IntraFi Exclusion is updated.
|
|
370
368
|
INTRAFI_EXCLUSION_UPDATED: :"intrafi_exclusion.updated"
|
|
371
369
|
|
|
372
|
-
# Occurs whenever a Legacy Card Dispute is created.
|
|
373
|
-
LEGACY_CARD_DISPUTE_CREATED: :"legacy_card_dispute.created"
|
|
374
|
-
|
|
375
|
-
# Occurs whenever a Legacy Card Dispute is updated.
|
|
376
|
-
LEGACY_CARD_DISPUTE_UPDATED: :"legacy_card_dispute.updated"
|
|
377
|
-
|
|
378
370
|
# Occurs whenever a Lockbox is created.
|
|
379
371
|
LOCKBOX_CREATED: :"lockbox.created"
|
|
380
372
|
|
|
@@ -155,8 +155,6 @@ module Increase
|
|
|
155
155
|
| :"intrafi_account_enrollment.updated"
|
|
156
156
|
| :"intrafi_exclusion.created"
|
|
157
157
|
| :"intrafi_exclusion.updated"
|
|
158
|
-
| :"legacy_card_dispute.created"
|
|
159
|
-
| :"legacy_card_dispute.updated"
|
|
160
158
|
| :"lockbox.created"
|
|
161
159
|
| :"lockbox.updated"
|
|
162
160
|
| :"oauth_connection.created"
|
|
@@ -411,12 +409,6 @@ module Increase
|
|
|
411
409
|
# Occurs whenever an IntraFi Exclusion is updated.
|
|
412
410
|
INTRAFI_EXCLUSION_UPDATED: :"intrafi_exclusion.updated"
|
|
413
411
|
|
|
414
|
-
# Occurs whenever a Legacy Card Dispute is created.
|
|
415
|
-
LEGACY_CARD_DISPUTE_CREATED: :"legacy_card_dispute.created"
|
|
416
|
-
|
|
417
|
-
# Occurs whenever a Legacy Card Dispute is updated.
|
|
418
|
-
LEGACY_CARD_DISPUTE_UPDATED: :"legacy_card_dispute.updated"
|
|
419
|
-
|
|
420
412
|
# Occurs whenever a Lockbox is created.
|
|
421
413
|
LOCKBOX_CREATED: :"lockbox.created"
|
|
422
414
|
|
|
@@ -139,8 +139,6 @@ module Increase
|
|
|
139
139
|
| :"intrafi_account_enrollment.updated"
|
|
140
140
|
| :"intrafi_exclusion.created"
|
|
141
141
|
| :"intrafi_exclusion.updated"
|
|
142
|
-
| :"legacy_card_dispute.created"
|
|
143
|
-
| :"legacy_card_dispute.updated"
|
|
144
142
|
| :"lockbox.created"
|
|
145
143
|
| :"lockbox.updated"
|
|
146
144
|
| :"oauth_connection.created"
|
|
@@ -395,12 +393,6 @@ module Increase
|
|
|
395
393
|
# Occurs whenever an IntraFi Exclusion is updated.
|
|
396
394
|
INTRAFI_EXCLUSION_UPDATED: :"intrafi_exclusion.updated"
|
|
397
395
|
|
|
398
|
-
# Occurs whenever a Legacy Card Dispute is created.
|
|
399
|
-
LEGACY_CARD_DISPUTE_CREATED: :"legacy_card_dispute.created"
|
|
400
|
-
|
|
401
|
-
# Occurs whenever a Legacy Card Dispute is updated.
|
|
402
|
-
LEGACY_CARD_DISPUTE_UPDATED: :"legacy_card_dispute.updated"
|
|
403
|
-
|
|
404
396
|
# Occurs whenever a Lockbox is created.
|
|
405
397
|
LOCKBOX_CREATED: :"lockbox.created"
|
|
406
398
|
|
|
@@ -142,8 +142,6 @@ module Increase
|
|
|
142
142
|
| :"intrafi_account_enrollment.updated"
|
|
143
143
|
| :"intrafi_exclusion.created"
|
|
144
144
|
| :"intrafi_exclusion.updated"
|
|
145
|
-
| :"legacy_card_dispute.created"
|
|
146
|
-
| :"legacy_card_dispute.updated"
|
|
147
145
|
| :"lockbox.created"
|
|
148
146
|
| :"lockbox.updated"
|
|
149
147
|
| :"oauth_connection.created"
|
|
@@ -398,12 +396,6 @@ module Increase
|
|
|
398
396
|
# Occurs whenever an IntraFi Exclusion is updated.
|
|
399
397
|
INTRAFI_EXCLUSION_UPDATED: :"intrafi_exclusion.updated"
|
|
400
398
|
|
|
401
|
-
# Occurs whenever a Legacy Card Dispute is created.
|
|
402
|
-
LEGACY_CARD_DISPUTE_CREATED: :"legacy_card_dispute.created"
|
|
403
|
-
|
|
404
|
-
# Occurs whenever a Legacy Card Dispute is updated.
|
|
405
|
-
LEGACY_CARD_DISPUTE_UPDATED: :"legacy_card_dispute.updated"
|
|
406
|
-
|
|
407
399
|
# Occurs whenever a Lockbox is created.
|
|
408
400
|
LOCKBOX_CREATED: :"lockbox.created"
|
|
409
401
|
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
module Increase
|
|
2
|
+
module Models
|
|
3
|
+
module Simulations
|
|
4
|
+
type account_revenue_payment_create_params =
|
|
5
|
+
{
|
|
6
|
+
account_id: String,
|
|
7
|
+
amount: Integer,
|
|
8
|
+
accrued_on_account_id: String,
|
|
9
|
+
period_end: Time,
|
|
10
|
+
period_start: Time
|
|
11
|
+
}
|
|
12
|
+
& Increase::Internal::Type::request_parameters
|
|
13
|
+
|
|
14
|
+
class AccountRevenuePaymentCreateParams < Increase::Internal::Type::BaseModel
|
|
15
|
+
extend Increase::Internal::Type::RequestParameters::Converter
|
|
16
|
+
include Increase::Internal::Type::RequestParameters
|
|
17
|
+
|
|
18
|
+
attr_accessor account_id: String
|
|
19
|
+
|
|
20
|
+
attr_accessor amount: Integer
|
|
21
|
+
|
|
22
|
+
attr_reader accrued_on_account_id: String?
|
|
23
|
+
|
|
24
|
+
def accrued_on_account_id=: (String) -> String
|
|
25
|
+
|
|
26
|
+
attr_reader period_end: Time?
|
|
27
|
+
|
|
28
|
+
def period_end=: (Time) -> Time
|
|
29
|
+
|
|
30
|
+
attr_reader period_start: Time?
|
|
31
|
+
|
|
32
|
+
def period_start=: (Time) -> Time
|
|
33
|
+
|
|
34
|
+
def initialize: (
|
|
35
|
+
account_id: String,
|
|
36
|
+
amount: Integer,
|
|
37
|
+
?accrued_on_account_id: String,
|
|
38
|
+
?period_end: Time,
|
|
39
|
+
?period_start: Time,
|
|
40
|
+
?request_options: Increase::request_opts
|
|
41
|
+
) -> void
|
|
42
|
+
|
|
43
|
+
def to_hash: -> {
|
|
44
|
+
account_id: String,
|
|
45
|
+
amount: Integer,
|
|
46
|
+
accrued_on_account_id: String,
|
|
47
|
+
period_end: Time,
|
|
48
|
+
period_start: Time,
|
|
49
|
+
request_options: Increase::RequestOptions
|
|
50
|
+
}
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
@@ -113,8 +113,6 @@ module Increase
|
|
|
113
113
|
| :"intrafi_account_enrollment.updated"
|
|
114
114
|
| :"intrafi_exclusion.created"
|
|
115
115
|
| :"intrafi_exclusion.updated"
|
|
116
|
-
| :"legacy_card_dispute.created"
|
|
117
|
-
| :"legacy_card_dispute.updated"
|
|
118
116
|
| :"lockbox.created"
|
|
119
117
|
| :"lockbox.updated"
|
|
120
118
|
| :"oauth_connection.created"
|
|
@@ -369,12 +367,6 @@ module Increase
|
|
|
369
367
|
# Occurs whenever an IntraFi Exclusion is updated.
|
|
370
368
|
INTRAFI_EXCLUSION_UPDATED: :"intrafi_exclusion.updated"
|
|
371
369
|
|
|
372
|
-
# Occurs whenever a Legacy Card Dispute is created.
|
|
373
|
-
LEGACY_CARD_DISPUTE_CREATED: :"legacy_card_dispute.created"
|
|
374
|
-
|
|
375
|
-
# Occurs whenever a Legacy Card Dispute is updated.
|
|
376
|
-
LEGACY_CARD_DISPUTE_UPDATED: :"legacy_card_dispute.updated"
|
|
377
|
-
|
|
378
370
|
# Occurs whenever a Lockbox is created.
|
|
379
371
|
LOCKBOX_CREATED: :"lockbox.created"
|
|
380
372
|
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
module Increase
|
|
2
|
+
module Resources
|
|
3
|
+
class Simulations
|
|
4
|
+
class AccountRevenuePayments
|
|
5
|
+
def create: (
|
|
6
|
+
account_id: String,
|
|
7
|
+
amount: Integer,
|
|
8
|
+
?accrued_on_account_id: String,
|
|
9
|
+
?period_end: Time,
|
|
10
|
+
?period_start: Time,
|
|
11
|
+
?request_options: Increase::request_opts
|
|
12
|
+
) -> Increase::Transaction
|
|
13
|
+
|
|
14
|
+
def initialize: (client: Increase::Client) -> void
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -3,6 +3,8 @@ module Increase
|
|
|
3
3
|
class Simulations
|
|
4
4
|
attr_reader interest_payments: Increase::Resources::Simulations::InterestPayments
|
|
5
5
|
|
|
6
|
+
attr_reader account_revenue_payments: Increase::Resources::Simulations::AccountRevenuePayments
|
|
7
|
+
|
|
6
8
|
attr_reader card_authorizations: Increase::Resources::Simulations::CardAuthorizations
|
|
7
9
|
|
|
8
10
|
attr_reader card_balance_inquiries: Increase::Resources::Simulations::CardBalanceInquiries
|
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.310.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Increase
|
|
@@ -314,6 +314,7 @@ files:
|
|
|
314
314
|
- lib/increase/models/real_time_payments_transfer_retrieve_params.rb
|
|
315
315
|
- lib/increase/models/routing_number_list_params.rb
|
|
316
316
|
- lib/increase/models/routing_number_list_response.rb
|
|
317
|
+
- lib/increase/models/simulations/account_revenue_payment_create_params.rb
|
|
317
318
|
- lib/increase/models/simulations/account_statement_create_params.rb
|
|
318
319
|
- lib/increase/models/simulations/ach_transfer_acknowledge_params.rb
|
|
319
320
|
- lib/increase/models/simulations/ach_transfer_create_notification_of_change_params.rb
|
|
@@ -437,6 +438,7 @@ files:
|
|
|
437
438
|
- lib/increase/resources/real_time_payments_transfers.rb
|
|
438
439
|
- lib/increase/resources/routing_numbers.rb
|
|
439
440
|
- lib/increase/resources/simulations.rb
|
|
441
|
+
- lib/increase/resources/simulations/account_revenue_payments.rb
|
|
440
442
|
- lib/increase/resources/simulations/account_statements.rb
|
|
441
443
|
- lib/increase/resources/simulations/ach_transfers.rb
|
|
442
444
|
- lib/increase/resources/simulations/card_authentications.rb
|
|
@@ -727,6 +729,7 @@ files:
|
|
|
727
729
|
- rbi/increase/models/real_time_payments_transfer_retrieve_params.rbi
|
|
728
730
|
- rbi/increase/models/routing_number_list_params.rbi
|
|
729
731
|
- rbi/increase/models/routing_number_list_response.rbi
|
|
732
|
+
- rbi/increase/models/simulations/account_revenue_payment_create_params.rbi
|
|
730
733
|
- rbi/increase/models/simulations/account_statement_create_params.rbi
|
|
731
734
|
- rbi/increase/models/simulations/ach_transfer_acknowledge_params.rbi
|
|
732
735
|
- rbi/increase/models/simulations/ach_transfer_create_notification_of_change_params.rbi
|
|
@@ -850,6 +853,7 @@ files:
|
|
|
850
853
|
- rbi/increase/resources/real_time_payments_transfers.rbi
|
|
851
854
|
- rbi/increase/resources/routing_numbers.rbi
|
|
852
855
|
- rbi/increase/resources/simulations.rbi
|
|
856
|
+
- rbi/increase/resources/simulations/account_revenue_payments.rbi
|
|
853
857
|
- rbi/increase/resources/simulations/account_statements.rbi
|
|
854
858
|
- rbi/increase/resources/simulations/ach_transfers.rbi
|
|
855
859
|
- rbi/increase/resources/simulations/card_authentications.rbi
|
|
@@ -1139,6 +1143,7 @@ files:
|
|
|
1139
1143
|
- sig/increase/models/real_time_payments_transfer_retrieve_params.rbs
|
|
1140
1144
|
- sig/increase/models/routing_number_list_params.rbs
|
|
1141
1145
|
- sig/increase/models/routing_number_list_response.rbs
|
|
1146
|
+
- sig/increase/models/simulations/account_revenue_payment_create_params.rbs
|
|
1142
1147
|
- sig/increase/models/simulations/account_statement_create_params.rbs
|
|
1143
1148
|
- sig/increase/models/simulations/ach_transfer_acknowledge_params.rbs
|
|
1144
1149
|
- sig/increase/models/simulations/ach_transfer_create_notification_of_change_params.rbs
|
|
@@ -1262,6 +1267,7 @@ files:
|
|
|
1262
1267
|
- sig/increase/resources/real_time_payments_transfers.rbs
|
|
1263
1268
|
- sig/increase/resources/routing_numbers.rbs
|
|
1264
1269
|
- sig/increase/resources/simulations.rbs
|
|
1270
|
+
- sig/increase/resources/simulations/account_revenue_payments.rbs
|
|
1265
1271
|
- sig/increase/resources/simulations/account_statements.rbs
|
|
1266
1272
|
- sig/increase/resources/simulations/ach_transfers.rbs
|
|
1267
1273
|
- sig/increase/resources/simulations/card_authentications.rbs
|