increase 1.126.0 → 1.127.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 +8 -0
- data/README.md +1 -1
- data/lib/increase/models/pending_transaction.rb +11 -27
- data/lib/increase/version.rb +1 -1
- data/rbi/increase/models/pending_transaction.rbi +12 -45
- data/sig/increase/models/pending_transaction.rbs +5 -19
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ac6e841d3947e209dc04ea6ab706983db956b1c9e28a78bedf0e503a773be583
|
|
4
|
+
data.tar.gz: e6595bce8627db8cfc748ee7be9faf2fd18ea59658ed8b04dbaade8c3712edf2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 27135780b901399a6ba4815aa46ee9edad1db375604af9a146f9c2bb65f16247b74f6e3d5a18e7c6753f53eb8330a68c73d5b4880dcec2e7a396ece52ac524a7
|
|
7
|
+
data.tar.gz: 7771d40c7e4b771217e0819a44d91f04e7da8b75d87cf25339f2bcc6cda1e921a216c941a0560934d46254dd45ae2456c9a63e2b23cdaa371f81e8e6648bbc33
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.127.0 (2025-10-31)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v1.126.0...v1.127.0](https://github.com/Increase/increase-ruby/compare/v1.126.0...v1.127.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([9a07f39](https://github.com/Increase/increase-ruby/commit/9a07f39ddb7aa466e35b7dbb8c88a136baa2ab59))
|
|
10
|
+
|
|
3
11
|
## 1.126.0 (2025-10-31)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v1.125.0...v1.126.0](https://github.com/Increase/increase-ruby/compare/v1.125.0...v1.126.0)
|
data/README.md
CHANGED
|
@@ -23,13 +23,6 @@ module Increase
|
|
|
23
23
|
# @return [Integer]
|
|
24
24
|
required :amount, Integer
|
|
25
25
|
|
|
26
|
-
# @!attribute balance_impact
|
|
27
|
-
# How the Pending Transaction affects the balance of its Account while its status
|
|
28
|
-
# is `pending`.
|
|
29
|
-
#
|
|
30
|
-
# @return [Symbol, Increase::Models::PendingTransaction::BalanceImpact]
|
|
31
|
-
required :balance_impact, enum: -> { Increase::PendingTransaction::BalanceImpact }
|
|
32
|
-
|
|
33
26
|
# @!attribute completed_at
|
|
34
27
|
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date on which the Pending
|
|
35
28
|
# Transaction was completed.
|
|
@@ -60,6 +53,14 @@ module Increase
|
|
|
60
53
|
# @return [String]
|
|
61
54
|
required :description, String
|
|
62
55
|
|
|
56
|
+
# @!attribute held_amount
|
|
57
|
+
# The amount that this Pending Transaction decrements the available balance of its
|
|
58
|
+
# Account. This is usually the same as `amount`, but will differ if the amount is
|
|
59
|
+
# positive.
|
|
60
|
+
#
|
|
61
|
+
# @return [Integer]
|
|
62
|
+
required :held_amount, Integer
|
|
63
|
+
|
|
63
64
|
# @!attribute route_id
|
|
64
65
|
# The identifier for the route this Pending Transaction came through. Routes are
|
|
65
66
|
# things like cards and ACH details.
|
|
@@ -95,7 +96,7 @@ module Increase
|
|
|
95
96
|
# @return [Symbol, Increase::Models::PendingTransaction::Type]
|
|
96
97
|
required :type, enum: -> { Increase::PendingTransaction::Type }
|
|
97
98
|
|
|
98
|
-
# @!method initialize(id:, account_id:, amount:,
|
|
99
|
+
# @!method initialize(id:, account_id:, amount:, completed_at:, created_at:, currency:, description:, held_amount:, route_id:, route_type:, source:, status:, type:)
|
|
99
100
|
# Some parameter documentations has been truncated, see
|
|
100
101
|
# {Increase::Models::PendingTransaction} for more details.
|
|
101
102
|
#
|
|
@@ -110,8 +111,6 @@ module Increase
|
|
|
110
111
|
#
|
|
111
112
|
# @param amount [Integer] The Pending Transaction amount in the minor unit of its currency. For dollars, f
|
|
112
113
|
#
|
|
113
|
-
# @param balance_impact [Symbol, Increase::Models::PendingTransaction::BalanceImpact] How the Pending Transaction affects the balance of its Account while its status
|
|
114
|
-
#
|
|
115
114
|
# @param completed_at [Time, nil] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date on which the Pending
|
|
116
115
|
#
|
|
117
116
|
# @param created_at [Time] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date on which the Pending
|
|
@@ -120,6 +119,8 @@ module Increase
|
|
|
120
119
|
#
|
|
121
120
|
# @param description [String] For a Pending Transaction related to a transfer, this is the description you pro
|
|
122
121
|
#
|
|
122
|
+
# @param held_amount [Integer] The amount that this Pending Transaction decrements the available balance of its
|
|
123
|
+
#
|
|
123
124
|
# @param route_id [String, nil] The identifier for the route this Pending Transaction came through. Routes are t
|
|
124
125
|
#
|
|
125
126
|
# @param route_type [Symbol, Increase::Models::PendingTransaction::RouteType, nil] The type of the route this Pending Transaction came through.
|
|
@@ -130,23 +131,6 @@ module Increase
|
|
|
130
131
|
#
|
|
131
132
|
# @param type [Symbol, Increase::Models::PendingTransaction::Type] A constant representing the object's type. For this resource it will always be `
|
|
132
133
|
|
|
133
|
-
# How the Pending Transaction affects the balance of its Account while its status
|
|
134
|
-
# is `pending`.
|
|
135
|
-
#
|
|
136
|
-
# @see Increase::Models::PendingTransaction#balance_impact
|
|
137
|
-
module BalanceImpact
|
|
138
|
-
extend Increase::Internal::Type::Enum
|
|
139
|
-
|
|
140
|
-
# This Pending Transaction will decrement the available balance on the Account while its status is `pending`.
|
|
141
|
-
AFFECTS_AVAILABLE_BALANCE = :affects_available_balance
|
|
142
|
-
|
|
143
|
-
# This Pending Transaction does not affect the available balance on the Account.
|
|
144
|
-
NONE = :none
|
|
145
|
-
|
|
146
|
-
# @!method self.values
|
|
147
|
-
# @return [Array<Symbol>]
|
|
148
|
-
end
|
|
149
|
-
|
|
150
134
|
# The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the Pending
|
|
151
135
|
# Transaction's currency. This will match the currency on the Pending
|
|
152
136
|
# Transaction's Account.
|
data/lib/increase/version.rb
CHANGED
|
@@ -21,11 +21,6 @@ module Increase
|
|
|
21
21
|
sig { returns(Integer) }
|
|
22
22
|
attr_accessor :amount
|
|
23
23
|
|
|
24
|
-
# How the Pending Transaction affects the balance of its Account while its status
|
|
25
|
-
# is `pending`.
|
|
26
|
-
sig { returns(Increase::PendingTransaction::BalanceImpact::TaggedSymbol) }
|
|
27
|
-
attr_accessor :balance_impact
|
|
28
|
-
|
|
29
24
|
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date on which the Pending
|
|
30
25
|
# Transaction was completed.
|
|
31
26
|
sig { returns(T.nilable(Time)) }
|
|
@@ -48,6 +43,12 @@ module Increase
|
|
|
48
43
|
sig { returns(String) }
|
|
49
44
|
attr_accessor :description
|
|
50
45
|
|
|
46
|
+
# The amount that this Pending Transaction decrements the available balance of its
|
|
47
|
+
# Account. This is usually the same as `amount`, but will differ if the amount is
|
|
48
|
+
# positive.
|
|
49
|
+
sig { returns(Integer) }
|
|
50
|
+
attr_accessor :held_amount
|
|
51
|
+
|
|
51
52
|
# The identifier for the route this Pending Transaction came through. Routes are
|
|
52
53
|
# things like cards and ACH details.
|
|
53
54
|
sig { returns(T.nilable(String)) }
|
|
@@ -89,11 +90,11 @@ module Increase
|
|
|
89
90
|
id: String,
|
|
90
91
|
account_id: String,
|
|
91
92
|
amount: Integer,
|
|
92
|
-
balance_impact: Increase::PendingTransaction::BalanceImpact::OrSymbol,
|
|
93
93
|
completed_at: T.nilable(Time),
|
|
94
94
|
created_at: Time,
|
|
95
95
|
currency: Increase::PendingTransaction::Currency::OrSymbol,
|
|
96
96
|
description: String,
|
|
97
|
+
held_amount: Integer,
|
|
97
98
|
route_id: T.nilable(String),
|
|
98
99
|
route_type:
|
|
99
100
|
T.nilable(Increase::PendingTransaction::RouteType::OrSymbol),
|
|
@@ -110,9 +111,6 @@ module Increase
|
|
|
110
111
|
# The Pending Transaction amount in the minor unit of its currency. For dollars,
|
|
111
112
|
# for example, this is cents.
|
|
112
113
|
amount:,
|
|
113
|
-
# How the Pending Transaction affects the balance of its Account while its status
|
|
114
|
-
# is `pending`.
|
|
115
|
-
balance_impact:,
|
|
116
114
|
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date on which the Pending
|
|
117
115
|
# Transaction was completed.
|
|
118
116
|
completed_at:,
|
|
@@ -127,6 +125,10 @@ module Increase
|
|
|
127
125
|
# provide. For a Pending Transaction related to a payment, this is the description
|
|
128
126
|
# the vendor provides.
|
|
129
127
|
description:,
|
|
128
|
+
# The amount that this Pending Transaction decrements the available balance of its
|
|
129
|
+
# Account. This is usually the same as `amount`, but will differ if the amount is
|
|
130
|
+
# positive.
|
|
131
|
+
held_amount:,
|
|
130
132
|
# The identifier for the route this Pending Transaction came through. Routes are
|
|
131
133
|
# things like cards and ACH details.
|
|
132
134
|
route_id:,
|
|
@@ -151,12 +153,11 @@ module Increase
|
|
|
151
153
|
id: String,
|
|
152
154
|
account_id: String,
|
|
153
155
|
amount: Integer,
|
|
154
|
-
balance_impact:
|
|
155
|
-
Increase::PendingTransaction::BalanceImpact::TaggedSymbol,
|
|
156
156
|
completed_at: T.nilable(Time),
|
|
157
157
|
created_at: Time,
|
|
158
158
|
currency: Increase::PendingTransaction::Currency::TaggedSymbol,
|
|
159
159
|
description: String,
|
|
160
|
+
held_amount: Integer,
|
|
160
161
|
route_id: T.nilable(String),
|
|
161
162
|
route_type:
|
|
162
163
|
T.nilable(Increase::PendingTransaction::RouteType::TaggedSymbol),
|
|
@@ -169,40 +170,6 @@ module Increase
|
|
|
169
170
|
def to_hash
|
|
170
171
|
end
|
|
171
172
|
|
|
172
|
-
# How the Pending Transaction affects the balance of its Account while its status
|
|
173
|
-
# is `pending`.
|
|
174
|
-
module BalanceImpact
|
|
175
|
-
extend Increase::Internal::Type::Enum
|
|
176
|
-
|
|
177
|
-
TaggedSymbol =
|
|
178
|
-
T.type_alias do
|
|
179
|
-
T.all(Symbol, Increase::PendingTransaction::BalanceImpact)
|
|
180
|
-
end
|
|
181
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
182
|
-
|
|
183
|
-
# This Pending Transaction will decrement the available balance on the Account while its status is `pending`.
|
|
184
|
-
AFFECTS_AVAILABLE_BALANCE =
|
|
185
|
-
T.let(
|
|
186
|
-
:affects_available_balance,
|
|
187
|
-
Increase::PendingTransaction::BalanceImpact::TaggedSymbol
|
|
188
|
-
)
|
|
189
|
-
|
|
190
|
-
# This Pending Transaction does not affect the available balance on the Account.
|
|
191
|
-
NONE =
|
|
192
|
-
T.let(
|
|
193
|
-
:none,
|
|
194
|
-
Increase::PendingTransaction::BalanceImpact::TaggedSymbol
|
|
195
|
-
)
|
|
196
|
-
|
|
197
|
-
sig do
|
|
198
|
-
override.returns(
|
|
199
|
-
T::Array[Increase::PendingTransaction::BalanceImpact::TaggedSymbol]
|
|
200
|
-
)
|
|
201
|
-
end
|
|
202
|
-
def self.values
|
|
203
|
-
end
|
|
204
|
-
end
|
|
205
|
-
|
|
206
173
|
# The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the Pending
|
|
207
174
|
# Transaction's currency. This will match the currency on the Pending
|
|
208
175
|
# Transaction's Account.
|
|
@@ -5,11 +5,11 @@ module Increase
|
|
|
5
5
|
id: String,
|
|
6
6
|
account_id: String,
|
|
7
7
|
amount: Integer,
|
|
8
|
-
balance_impact: Increase::Models::PendingTransaction::balance_impact,
|
|
9
8
|
completed_at: Time?,
|
|
10
9
|
created_at: Time,
|
|
11
10
|
currency: Increase::Models::PendingTransaction::currency,
|
|
12
11
|
description: String,
|
|
12
|
+
held_amount: Integer,
|
|
13
13
|
route_id: String?,
|
|
14
14
|
route_type: Increase::Models::PendingTransaction::route_type?,
|
|
15
15
|
source: Increase::PendingTransaction::Source,
|
|
@@ -24,8 +24,6 @@ module Increase
|
|
|
24
24
|
|
|
25
25
|
attr_accessor amount: Integer
|
|
26
26
|
|
|
27
|
-
attr_accessor balance_impact: Increase::Models::PendingTransaction::balance_impact
|
|
28
|
-
|
|
29
27
|
attr_accessor completed_at: Time?
|
|
30
28
|
|
|
31
29
|
attr_accessor created_at: Time
|
|
@@ -34,6 +32,8 @@ module Increase
|
|
|
34
32
|
|
|
35
33
|
attr_accessor description: String
|
|
36
34
|
|
|
35
|
+
attr_accessor held_amount: Integer
|
|
36
|
+
|
|
37
37
|
attr_accessor route_id: String?
|
|
38
38
|
|
|
39
39
|
attr_accessor route_type: Increase::Models::PendingTransaction::route_type?
|
|
@@ -48,11 +48,11 @@ module Increase
|
|
|
48
48
|
id: String,
|
|
49
49
|
account_id: String,
|
|
50
50
|
amount: Integer,
|
|
51
|
-
balance_impact: Increase::Models::PendingTransaction::balance_impact,
|
|
52
51
|
completed_at: Time?,
|
|
53
52
|
created_at: Time,
|
|
54
53
|
currency: Increase::Models::PendingTransaction::currency,
|
|
55
54
|
description: String,
|
|
55
|
+
held_amount: Integer,
|
|
56
56
|
route_id: String?,
|
|
57
57
|
route_type: Increase::Models::PendingTransaction::route_type?,
|
|
58
58
|
source: Increase::PendingTransaction::Source,
|
|
@@ -64,11 +64,11 @@ module Increase
|
|
|
64
64
|
id: String,
|
|
65
65
|
account_id: String,
|
|
66
66
|
amount: Integer,
|
|
67
|
-
balance_impact: Increase::Models::PendingTransaction::balance_impact,
|
|
68
67
|
completed_at: Time?,
|
|
69
68
|
created_at: Time,
|
|
70
69
|
currency: Increase::Models::PendingTransaction::currency,
|
|
71
70
|
description: String,
|
|
71
|
+
held_amount: Integer,
|
|
72
72
|
route_id: String?,
|
|
73
73
|
route_type: Increase::Models::PendingTransaction::route_type?,
|
|
74
74
|
source: Increase::PendingTransaction::Source,
|
|
@@ -76,20 +76,6 @@ module Increase
|
|
|
76
76
|
type: Increase::Models::PendingTransaction::type_
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
type balance_impact = :affects_available_balance | :none
|
|
80
|
-
|
|
81
|
-
module BalanceImpact
|
|
82
|
-
extend Increase::Internal::Type::Enum
|
|
83
|
-
|
|
84
|
-
# This Pending Transaction will decrement the available balance on the Account while its status is `pending`.
|
|
85
|
-
AFFECTS_AVAILABLE_BALANCE: :affects_available_balance
|
|
86
|
-
|
|
87
|
-
# This Pending Transaction does not affect the available balance on the Account.
|
|
88
|
-
NONE: :none
|
|
89
|
-
|
|
90
|
-
def self?.values: -> ::Array[Increase::Models::PendingTransaction::balance_impact]
|
|
91
|
-
end
|
|
92
|
-
|
|
93
79
|
type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD
|
|
94
80
|
|
|
95
81
|
module Currency
|