increase 1.278.1 → 1.279.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/internal/util.rb +17 -3
- data/lib/increase/models/group.rb +1 -49
- data/lib/increase/version.rb +1 -1
- data/rbi/increase/internal/util.rbi +8 -0
- data/rbi/increase/models/group.rbi +0 -65
- data/sig/increase/internal/util.rbs +4 -0
- data/sig/increase/models/group.rbs +1 -43
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b5f892862c9f260100b15adb9e899123e69d312ba958d37351b86a46d172acd5
|
|
4
|
+
data.tar.gz: a42178b0eb83c3416ff51fc98f6ad0c33b839b090555072b64fbd8399733822c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1c2ff3c84a07bf2a6f8b2f5d2654c3dd5ecaa8d3aee866e1283d086e27afce8507702e4590f19b8d3ac8daa72f9fd88f608b2e8162fb46386b27ab5f85ae878f
|
|
7
|
+
data.tar.gz: a7d91b24bbdd29df688adb2578444575725d1fa7d9c5e55c703e31af5c8f1392ce9805dd3d27959323163bd26a47a51a8c15889d5136d4b898a8446dfe5e3028
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.279.0 (2026-04-02)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v1.278.2...v1.279.0](https://github.com/Increase/increase-ruby/compare/v1.278.2...v1.279.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([9c9129c](https://github.com/Increase/increase-ruby/commit/9c9129c08341d5b8d6187e070c8a9fb40f18d96f))
|
|
10
|
+
|
|
11
|
+
## 1.278.2 (2026-03-31)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v1.278.1...v1.278.2](https://github.com/Increase/increase-ruby/compare/v1.278.1...v1.278.2)
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* align path encoding with RFC 3986 section 3.3 ([d78df6c](https://github.com/Increase/increase-ruby/commit/d78df6ce7d11866bc5f8ad6f8ba80813fd63bd79))
|
|
18
|
+
|
|
3
19
|
## 1.278.1 (2026-03-31)
|
|
4
20
|
|
|
5
21
|
Full Changelog: [v1.278.0...v1.278.1](https://github.com/Increase/increase-ruby/compare/v1.278.0...v1.278.1)
|
data/README.md
CHANGED
|
@@ -237,6 +237,11 @@ module Increase
|
|
|
237
237
|
end
|
|
238
238
|
end
|
|
239
239
|
|
|
240
|
+
# @type [Regexp]
|
|
241
|
+
#
|
|
242
|
+
# https://www.rfc-editor.org/rfc/rfc3986.html#section-3.3
|
|
243
|
+
RFC_3986_NOT_PCHARS = /[^A-Za-z0-9\-._~!$&'()*+,;=:@]+/
|
|
244
|
+
|
|
240
245
|
class << self
|
|
241
246
|
# @api private
|
|
242
247
|
#
|
|
@@ -247,6 +252,15 @@ module Increase
|
|
|
247
252
|
"#{uri.scheme}://#{uri.host}#{":#{uri.port}" unless uri.port == uri.default_port}"
|
|
248
253
|
end
|
|
249
254
|
|
|
255
|
+
# @api private
|
|
256
|
+
#
|
|
257
|
+
# @param path [String, Integer]
|
|
258
|
+
#
|
|
259
|
+
# @return [String]
|
|
260
|
+
def encode_path(path)
|
|
261
|
+
path.to_s.gsub(Increase::Internal::Util::RFC_3986_NOT_PCHARS) { ERB::Util.url_encode(_1) }
|
|
262
|
+
end
|
|
263
|
+
|
|
250
264
|
# @api private
|
|
251
265
|
#
|
|
252
266
|
# @param path [String, Array<String>]
|
|
@@ -259,7 +273,7 @@ module Increase
|
|
|
259
273
|
in []
|
|
260
274
|
""
|
|
261
275
|
in [String => p, *interpolations]
|
|
262
|
-
encoded = interpolations.map {
|
|
276
|
+
encoded = interpolations.map { encode_path(_1) }
|
|
263
277
|
format(p, *encoded)
|
|
264
278
|
end
|
|
265
279
|
end
|
|
@@ -576,10 +590,10 @@ module Increase
|
|
|
576
590
|
|
|
577
591
|
case val
|
|
578
592
|
in Increase::FilePart unless val.filename.nil?
|
|
579
|
-
filename =
|
|
593
|
+
filename = encode_path(val.filename)
|
|
580
594
|
y << "; filename=\"#{filename}\""
|
|
581
595
|
in Pathname | IO
|
|
582
|
-
filename =
|
|
596
|
+
filename = encode_path(::File.basename(val.to_path))
|
|
583
597
|
y << "; filename=\"#{filename}\""
|
|
584
598
|
else
|
|
585
599
|
end
|
|
@@ -10,18 +10,6 @@ module Increase
|
|
|
10
10
|
# @return [String]
|
|
11
11
|
required :id, String
|
|
12
12
|
|
|
13
|
-
# @!attribute ach_debit_status
|
|
14
|
-
# If the Group is allowed to create ACH debits.
|
|
15
|
-
#
|
|
16
|
-
# @return [Symbol, Increase::Models::Group::ACHDebitStatus]
|
|
17
|
-
required :ach_debit_status, enum: -> { Increase::Group::ACHDebitStatus }
|
|
18
|
-
|
|
19
|
-
# @!attribute activation_status
|
|
20
|
-
# If the Group is activated or not.
|
|
21
|
-
#
|
|
22
|
-
# @return [Symbol, Increase::Models::Group::ActivationStatus]
|
|
23
|
-
required :activation_status, enum: -> { Increase::Group::ActivationStatus }
|
|
24
|
-
|
|
25
13
|
# @!attribute created_at
|
|
26
14
|
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the Group
|
|
27
15
|
# was created.
|
|
@@ -36,7 +24,7 @@ module Increase
|
|
|
36
24
|
# @return [Symbol, Increase::Models::Group::Type]
|
|
37
25
|
required :type, enum: -> { Increase::Group::Type }
|
|
38
26
|
|
|
39
|
-
# @!method initialize(id:,
|
|
27
|
+
# @!method initialize(id:, created_at:, type:)
|
|
40
28
|
# Some parameter documentations has been truncated, see {Increase::Models::Group}
|
|
41
29
|
# for more details.
|
|
42
30
|
#
|
|
@@ -47,46 +35,10 @@ module Increase
|
|
|
47
35
|
#
|
|
48
36
|
# @param id [String] The Group identifier.
|
|
49
37
|
#
|
|
50
|
-
# @param ach_debit_status [Symbol, Increase::Models::Group::ACHDebitStatus] If the Group is allowed to create ACH debits.
|
|
51
|
-
#
|
|
52
|
-
# @param activation_status [Symbol, Increase::Models::Group::ActivationStatus] If the Group is activated or not.
|
|
53
|
-
#
|
|
54
38
|
# @param created_at [Time] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the Group w
|
|
55
39
|
#
|
|
56
40
|
# @param type [Symbol, Increase::Models::Group::Type] A constant representing the object's type. For this resource it will always be `
|
|
57
41
|
|
|
58
|
-
# If the Group is allowed to create ACH debits.
|
|
59
|
-
#
|
|
60
|
-
# @see Increase::Models::Group#ach_debit_status
|
|
61
|
-
module ACHDebitStatus
|
|
62
|
-
extend Increase::Internal::Type::Enum
|
|
63
|
-
|
|
64
|
-
# The Group cannot make ACH debits.
|
|
65
|
-
DISABLED = :disabled
|
|
66
|
-
|
|
67
|
-
# The Group can make ACH debits.
|
|
68
|
-
ENABLED = :enabled
|
|
69
|
-
|
|
70
|
-
# @!method self.values
|
|
71
|
-
# @return [Array<Symbol>]
|
|
72
|
-
end
|
|
73
|
-
|
|
74
|
-
# If the Group is activated or not.
|
|
75
|
-
#
|
|
76
|
-
# @see Increase::Models::Group#activation_status
|
|
77
|
-
module ActivationStatus
|
|
78
|
-
extend Increase::Internal::Type::Enum
|
|
79
|
-
|
|
80
|
-
# The Group is not activated.
|
|
81
|
-
UNACTIVATED = :unactivated
|
|
82
|
-
|
|
83
|
-
# The Group is activated.
|
|
84
|
-
ACTIVATED = :activated
|
|
85
|
-
|
|
86
|
-
# @!method self.values
|
|
87
|
-
# @return [Array<Symbol>]
|
|
88
|
-
end
|
|
89
|
-
|
|
90
42
|
# A constant representing the object's type. For this resource it will always be
|
|
91
43
|
# `group`.
|
|
92
44
|
#
|
data/lib/increase/version.rb
CHANGED
|
@@ -148,12 +148,20 @@ module Increase
|
|
|
148
148
|
end
|
|
149
149
|
end
|
|
150
150
|
|
|
151
|
+
# https://www.rfc-editor.org/rfc/rfc3986.html#section-3.3
|
|
152
|
+
RFC_3986_NOT_PCHARS = T.let(/[^A-Za-z0-9\-._~!$&'()*+,;=:@]+/, Regexp)
|
|
153
|
+
|
|
151
154
|
class << self
|
|
152
155
|
# @api private
|
|
153
156
|
sig { params(uri: URI::Generic).returns(String) }
|
|
154
157
|
def uri_origin(uri)
|
|
155
158
|
end
|
|
156
159
|
|
|
160
|
+
# @api private
|
|
161
|
+
sig { params(path: T.any(String, Integer)).returns(String) }
|
|
162
|
+
def encode_path(path)
|
|
163
|
+
end
|
|
164
|
+
|
|
157
165
|
# @api private
|
|
158
166
|
sig { params(path: T.any(String, T::Array[String])).returns(String) }
|
|
159
167
|
def interpolate_path(path)
|
|
@@ -10,14 +10,6 @@ module Increase
|
|
|
10
10
|
sig { returns(String) }
|
|
11
11
|
attr_accessor :id
|
|
12
12
|
|
|
13
|
-
# If the Group is allowed to create ACH debits.
|
|
14
|
-
sig { returns(Increase::Group::ACHDebitStatus::TaggedSymbol) }
|
|
15
|
-
attr_accessor :ach_debit_status
|
|
16
|
-
|
|
17
|
-
# If the Group is activated or not.
|
|
18
|
-
sig { returns(Increase::Group::ActivationStatus::TaggedSymbol) }
|
|
19
|
-
attr_accessor :activation_status
|
|
20
|
-
|
|
21
13
|
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the Group
|
|
22
14
|
# was created.
|
|
23
15
|
sig { returns(Time) }
|
|
@@ -35,8 +27,6 @@ module Increase
|
|
|
35
27
|
sig do
|
|
36
28
|
params(
|
|
37
29
|
id: String,
|
|
38
|
-
ach_debit_status: Increase::Group::ACHDebitStatus::OrSymbol,
|
|
39
|
-
activation_status: Increase::Group::ActivationStatus::OrSymbol,
|
|
40
30
|
created_at: Time,
|
|
41
31
|
type: Increase::Group::Type::OrSymbol
|
|
42
32
|
).returns(T.attached_class)
|
|
@@ -44,10 +34,6 @@ module Increase
|
|
|
44
34
|
def self.new(
|
|
45
35
|
# The Group identifier.
|
|
46
36
|
id:,
|
|
47
|
-
# If the Group is allowed to create ACH debits.
|
|
48
|
-
ach_debit_status:,
|
|
49
|
-
# If the Group is activated or not.
|
|
50
|
-
activation_status:,
|
|
51
37
|
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the Group
|
|
52
38
|
# was created.
|
|
53
39
|
created_at:,
|
|
@@ -61,8 +47,6 @@ module Increase
|
|
|
61
47
|
override.returns(
|
|
62
48
|
{
|
|
63
49
|
id: String,
|
|
64
|
-
ach_debit_status: Increase::Group::ACHDebitStatus::TaggedSymbol,
|
|
65
|
-
activation_status: Increase::Group::ActivationStatus::TaggedSymbol,
|
|
66
50
|
created_at: Time,
|
|
67
51
|
type: Increase::Group::Type::TaggedSymbol
|
|
68
52
|
}
|
|
@@ -71,55 +55,6 @@ module Increase
|
|
|
71
55
|
def to_hash
|
|
72
56
|
end
|
|
73
57
|
|
|
74
|
-
# If the Group is allowed to create ACH debits.
|
|
75
|
-
module ACHDebitStatus
|
|
76
|
-
extend Increase::Internal::Type::Enum
|
|
77
|
-
|
|
78
|
-
TaggedSymbol =
|
|
79
|
-
T.type_alias { T.all(Symbol, Increase::Group::ACHDebitStatus) }
|
|
80
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
81
|
-
|
|
82
|
-
# The Group cannot make ACH debits.
|
|
83
|
-
DISABLED =
|
|
84
|
-
T.let(:disabled, Increase::Group::ACHDebitStatus::TaggedSymbol)
|
|
85
|
-
|
|
86
|
-
# The Group can make ACH debits.
|
|
87
|
-
ENABLED = T.let(:enabled, Increase::Group::ACHDebitStatus::TaggedSymbol)
|
|
88
|
-
|
|
89
|
-
sig do
|
|
90
|
-
override.returns(
|
|
91
|
-
T::Array[Increase::Group::ACHDebitStatus::TaggedSymbol]
|
|
92
|
-
)
|
|
93
|
-
end
|
|
94
|
-
def self.values
|
|
95
|
-
end
|
|
96
|
-
end
|
|
97
|
-
|
|
98
|
-
# If the Group is activated or not.
|
|
99
|
-
module ActivationStatus
|
|
100
|
-
extend Increase::Internal::Type::Enum
|
|
101
|
-
|
|
102
|
-
TaggedSymbol =
|
|
103
|
-
T.type_alias { T.all(Symbol, Increase::Group::ActivationStatus) }
|
|
104
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
105
|
-
|
|
106
|
-
# The Group is not activated.
|
|
107
|
-
UNACTIVATED =
|
|
108
|
-
T.let(:unactivated, Increase::Group::ActivationStatus::TaggedSymbol)
|
|
109
|
-
|
|
110
|
-
# The Group is activated.
|
|
111
|
-
ACTIVATED =
|
|
112
|
-
T.let(:activated, Increase::Group::ActivationStatus::TaggedSymbol)
|
|
113
|
-
|
|
114
|
-
sig do
|
|
115
|
-
override.returns(
|
|
116
|
-
T::Array[Increase::Group::ActivationStatus::TaggedSymbol]
|
|
117
|
-
)
|
|
118
|
-
end
|
|
119
|
-
def self.values
|
|
120
|
-
end
|
|
121
|
-
end
|
|
122
|
-
|
|
123
58
|
# A constant representing the object's type. For this resource it will always be
|
|
124
59
|
# `group`.
|
|
125
60
|
module Type
|
|
@@ -45,8 +45,12 @@ module Increase
|
|
|
45
45
|
-> top?
|
|
46
46
|
} -> top?
|
|
47
47
|
|
|
48
|
+
RFC_3986_NOT_PCHARS: Regexp
|
|
49
|
+
|
|
48
50
|
def self?.uri_origin: (URI::Generic uri) -> String
|
|
49
51
|
|
|
52
|
+
def self?.encode_path: (String | Integer path) -> String
|
|
53
|
+
|
|
50
54
|
def self?.interpolate_path: (String | ::Array[String] path) -> String
|
|
51
55
|
|
|
52
56
|
def self?.decode_query: (String? query) -> ::Hash[String, ::Array[String]]
|
|
@@ -1,69 +1,27 @@
|
|
|
1
1
|
module Increase
|
|
2
2
|
module Models
|
|
3
3
|
type group =
|
|
4
|
-
{
|
|
5
|
-
id: String,
|
|
6
|
-
ach_debit_status: Increase::Models::Group::ach_debit_status,
|
|
7
|
-
activation_status: Increase::Models::Group::activation_status,
|
|
8
|
-
created_at: Time,
|
|
9
|
-
type: Increase::Models::Group::type_
|
|
10
|
-
}
|
|
4
|
+
{ id: String, created_at: Time, type: Increase::Models::Group::type_ }
|
|
11
5
|
|
|
12
6
|
class Group < Increase::Internal::Type::BaseModel
|
|
13
7
|
attr_accessor id: String
|
|
14
8
|
|
|
15
|
-
attr_accessor ach_debit_status: Increase::Models::Group::ach_debit_status
|
|
16
|
-
|
|
17
|
-
attr_accessor activation_status: Increase::Models::Group::activation_status
|
|
18
|
-
|
|
19
9
|
attr_accessor created_at: Time
|
|
20
10
|
|
|
21
11
|
attr_accessor type: Increase::Models::Group::type_
|
|
22
12
|
|
|
23
13
|
def initialize: (
|
|
24
14
|
id: String,
|
|
25
|
-
ach_debit_status: Increase::Models::Group::ach_debit_status,
|
|
26
|
-
activation_status: Increase::Models::Group::activation_status,
|
|
27
15
|
created_at: Time,
|
|
28
16
|
type: Increase::Models::Group::type_
|
|
29
17
|
) -> void
|
|
30
18
|
|
|
31
19
|
def to_hash: -> {
|
|
32
20
|
id: String,
|
|
33
|
-
ach_debit_status: Increase::Models::Group::ach_debit_status,
|
|
34
|
-
activation_status: Increase::Models::Group::activation_status,
|
|
35
21
|
created_at: Time,
|
|
36
22
|
type: Increase::Models::Group::type_
|
|
37
23
|
}
|
|
38
24
|
|
|
39
|
-
type ach_debit_status = :disabled | :enabled
|
|
40
|
-
|
|
41
|
-
module ACHDebitStatus
|
|
42
|
-
extend Increase::Internal::Type::Enum
|
|
43
|
-
|
|
44
|
-
# The Group cannot make ACH debits.
|
|
45
|
-
DISABLED: :disabled
|
|
46
|
-
|
|
47
|
-
# The Group can make ACH debits.
|
|
48
|
-
ENABLED: :enabled
|
|
49
|
-
|
|
50
|
-
def self?.values: -> ::Array[Increase::Models::Group::ach_debit_status]
|
|
51
|
-
end
|
|
52
|
-
|
|
53
|
-
type activation_status = :unactivated | :activated
|
|
54
|
-
|
|
55
|
-
module ActivationStatus
|
|
56
|
-
extend Increase::Internal::Type::Enum
|
|
57
|
-
|
|
58
|
-
# The Group is not activated.
|
|
59
|
-
UNACTIVATED: :unactivated
|
|
60
|
-
|
|
61
|
-
# The Group is activated.
|
|
62
|
-
ACTIVATED: :activated
|
|
63
|
-
|
|
64
|
-
def self?.values: -> ::Array[Increase::Models::Group::activation_status]
|
|
65
|
-
end
|
|
66
|
-
|
|
67
25
|
type type_ = :group
|
|
68
26
|
|
|
69
27
|
module Type
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: increase
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.279.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Increase
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-04-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|