increase 1.362.0 → 1.363.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/README.md +1 -1
- data/lib/increase/client.rb +0 -16
- data/lib/increase/models/ach_transfer.rb +38 -23
- data/lib/increase/models/check_transfer.rb +58 -44
- data/lib/increase/models/check_transfer_create_params.rb +35 -21
- data/lib/increase/models/export.rb +12 -1
- data/lib/increase/models/export_create_params.rb +26 -4
- data/lib/increase/models/inbound_real_time_payments_transfer.rb +10 -1
- data/lib/increase/models/inbound_real_time_payments_transfer_return_params.rb +36 -0
- data/lib/increase/models/real_time_payments_transfer.rb +21 -1
- data/lib/increase/models/transaction.rb +3 -3
- data/lib/increase/models.rb +3 -20
- data/lib/increase/resources/inbound_real_time_payments_transfers.rb +28 -0
- data/lib/increase/version.rb +1 -1
- data/lib/increase.rb +1 -14
- data/rbi/increase/client.rbi +0 -12
- data/rbi/increase/models/ach_transfer.rbi +35 -23
- data/rbi/increase/models/check_transfer.rbi +72 -54
- data/rbi/increase/models/check_transfer_create_params.rbi +55 -21
- data/rbi/increase/models/export.rbi +15 -3
- data/rbi/increase/models/export_create_params.rbi +27 -3
- data/rbi/increase/models/inbound_real_time_payments_transfer.rbi +8 -0
- data/rbi/increase/models/inbound_real_time_payments_transfer_return_params.rbi +61 -0
- data/rbi/increase/models/real_time_payments_transfer.rbi +18 -0
- data/rbi/increase/models/transaction.rbi +3 -3
- data/rbi/increase/models.rbi +3 -22
- data/rbi/increase/resources/inbound_real_time_payments_transfers.rbi +19 -0
- data/sig/increase/client.rbs +0 -8
- data/sig/increase/models/ach_transfer.rbs +4 -4
- data/sig/increase/models/check_transfer.rbs +59 -49
- data/sig/increase/models/check_transfer_create_params.rbs +20 -12
- data/sig/increase/models/export.rbs +13 -3
- data/sig/increase/models/export_create_params.rbs +7 -0
- data/sig/increase/models/inbound_real_time_payments_transfer.rbs +5 -0
- data/sig/increase/models/inbound_real_time_payments_transfer_return_params.rbs +30 -0
- data/sig/increase/models/real_time_payments_transfer.rbs +10 -0
- data/sig/increase/models/transaction.rbs +4 -4
- data/sig/increase/models.rbs +2 -20
- data/sig/increase/resources/inbound_real_time_payments_transfers.rbs +6 -0
- metadata +6 -45
- data/lib/increase/models/group.rb +0 -57
- data/lib/increase/models/group_retrieve_params.rb +0 -14
- data/lib/increase/models/oauth_application.rb +0 -111
- data/lib/increase/models/oauth_application_list_params.rb +0 -129
- data/lib/increase/models/oauth_application_retrieve_params.rb +0 -22
- data/lib/increase/models/oauth_connection.rb +0 -107
- data/lib/increase/models/oauth_connection_list_params.rb +0 -88
- data/lib/increase/models/oauth_connection_retrieve_params.rb +0 -22
- data/lib/increase/models/oauth_token.rb +0 -76
- data/lib/increase/models/oauth_token_create_params.rb +0 -85
- data/lib/increase/resources/groups.rb +0 -32
- data/lib/increase/resources/oauth_applications.rb +0 -68
- data/lib/increase/resources/oauth_connections.rb +0 -70
- data/lib/increase/resources/oauth_tokens.rb +0 -54
- data/rbi/increase/models/group.rbi +0 -74
- data/rbi/increase/models/group_retrieve_params.rbi +0 -27
- data/rbi/increase/models/oauth_application.rbi +0 -146
- data/rbi/increase/models/oauth_application_list_params.rbi +0 -263
- data/rbi/increase/models/oauth_application_retrieve_params.rbi +0 -46
- data/rbi/increase/models/oauth_connection.rbi +0 -142
- data/rbi/increase/models/oauth_connection_list_params.rbi +0 -187
- data/rbi/increase/models/oauth_connection_retrieve_params.rbi +0 -46
- data/rbi/increase/models/oauth_token.rbi +0 -106
- data/rbi/increase/models/oauth_token_create_params.rbi +0 -133
- data/rbi/increase/resources/groups.rbi +0 -21
- data/rbi/increase/resources/oauth_applications.rbi +0 -50
- data/rbi/increase/resources/oauth_connections.rbi +0 -52
- data/rbi/increase/resources/oauth_tokens.rbi +0 -44
- data/sig/increase/models/group.rbs +0 -36
- data/sig/increase/models/group_retrieve_params.rbs +0 -15
- data/sig/increase/models/oauth_application.rbs +0 -74
- data/sig/increase/models/oauth_application_list_params.rbs +0 -123
- data/sig/increase/models/oauth_application_retrieve_params.rbs +0 -24
- data/sig/increase/models/oauth_connection.rbs +0 -74
- data/sig/increase/models/oauth_connection_list_params.rbs +0 -86
- data/sig/increase/models/oauth_connection_retrieve_params.rbs +0 -24
- data/sig/increase/models/oauth_token.rbs +0 -55
- data/sig/increase/models/oauth_token_create_params.rbs +0 -68
- data/sig/increase/resources/groups.rbs +0 -11
- data/sig/increase/resources/oauth_applications.rbs +0 -20
- data/sig/increase/resources/oauth_connections.rbs +0 -20
- data/sig/increase/resources/oauth_tokens.rbs +0 -16
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Increase
|
|
4
|
-
module Models
|
|
5
|
-
class OAuthApplication < Increase::Internal::Type::BaseModel
|
|
6
|
-
OrHash =
|
|
7
|
-
T.type_alias do
|
|
8
|
-
T.any(Increase::OAuthApplication, Increase::Internal::AnyHash)
|
|
9
|
-
end
|
|
10
|
-
|
|
11
|
-
# The OAuth Application's identifier.
|
|
12
|
-
sig { returns(String) }
|
|
13
|
-
attr_accessor :id
|
|
14
|
-
|
|
15
|
-
# The OAuth Application's client_id. Use this to authenticate with the OAuth
|
|
16
|
-
# Application.
|
|
17
|
-
sig { returns(String) }
|
|
18
|
-
attr_accessor :client_id
|
|
19
|
-
|
|
20
|
-
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp when the OAuth
|
|
21
|
-
# Application was created.
|
|
22
|
-
sig { returns(Time) }
|
|
23
|
-
attr_accessor :created_at
|
|
24
|
-
|
|
25
|
-
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp when the OAuth
|
|
26
|
-
# Application was deleted.
|
|
27
|
-
sig { returns(T.nilable(Time)) }
|
|
28
|
-
attr_accessor :deleted_at
|
|
29
|
-
|
|
30
|
-
# The name you chose for this OAuth Application.
|
|
31
|
-
sig { returns(T.nilable(String)) }
|
|
32
|
-
attr_accessor :name
|
|
33
|
-
|
|
34
|
-
# Whether the application is active.
|
|
35
|
-
sig { returns(Increase::OAuthApplication::Status::TaggedSymbol) }
|
|
36
|
-
attr_accessor :status
|
|
37
|
-
|
|
38
|
-
# A constant representing the object's type. For this resource it will always be
|
|
39
|
-
# `oauth_application`.
|
|
40
|
-
sig { returns(Increase::OAuthApplication::Type::TaggedSymbol) }
|
|
41
|
-
attr_accessor :type
|
|
42
|
-
|
|
43
|
-
# An OAuth Application lets you build an application for others to use with their
|
|
44
|
-
# Increase data. You can create an OAuth Application via the Dashboard and read
|
|
45
|
-
# information about it with the API. Learn more about OAuth
|
|
46
|
-
# [here](https://increase.com/documentation/oauth).
|
|
47
|
-
sig do
|
|
48
|
-
params(
|
|
49
|
-
id: String,
|
|
50
|
-
client_id: String,
|
|
51
|
-
created_at: Time,
|
|
52
|
-
deleted_at: T.nilable(Time),
|
|
53
|
-
name: T.nilable(String),
|
|
54
|
-
status: Increase::OAuthApplication::Status::OrSymbol,
|
|
55
|
-
type: Increase::OAuthApplication::Type::OrSymbol
|
|
56
|
-
).returns(T.attached_class)
|
|
57
|
-
end
|
|
58
|
-
def self.new(
|
|
59
|
-
# The OAuth Application's identifier.
|
|
60
|
-
id:,
|
|
61
|
-
# The OAuth Application's client_id. Use this to authenticate with the OAuth
|
|
62
|
-
# Application.
|
|
63
|
-
client_id:,
|
|
64
|
-
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp when the OAuth
|
|
65
|
-
# Application was created.
|
|
66
|
-
created_at:,
|
|
67
|
-
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp when the OAuth
|
|
68
|
-
# Application was deleted.
|
|
69
|
-
deleted_at:,
|
|
70
|
-
# The name you chose for this OAuth Application.
|
|
71
|
-
name:,
|
|
72
|
-
# Whether the application is active.
|
|
73
|
-
status:,
|
|
74
|
-
# A constant representing the object's type. For this resource it will always be
|
|
75
|
-
# `oauth_application`.
|
|
76
|
-
type:
|
|
77
|
-
)
|
|
78
|
-
end
|
|
79
|
-
|
|
80
|
-
sig do
|
|
81
|
-
override.returns(
|
|
82
|
-
{
|
|
83
|
-
id: String,
|
|
84
|
-
client_id: String,
|
|
85
|
-
created_at: Time,
|
|
86
|
-
deleted_at: T.nilable(Time),
|
|
87
|
-
name: T.nilable(String),
|
|
88
|
-
status: Increase::OAuthApplication::Status::TaggedSymbol,
|
|
89
|
-
type: Increase::OAuthApplication::Type::TaggedSymbol
|
|
90
|
-
}
|
|
91
|
-
)
|
|
92
|
-
end
|
|
93
|
-
def to_hash
|
|
94
|
-
end
|
|
95
|
-
|
|
96
|
-
# Whether the application is active.
|
|
97
|
-
module Status
|
|
98
|
-
extend Increase::Internal::Type::Enum
|
|
99
|
-
|
|
100
|
-
TaggedSymbol =
|
|
101
|
-
T.type_alias { T.all(Symbol, Increase::OAuthApplication::Status) }
|
|
102
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
103
|
-
|
|
104
|
-
# The application is active and can be used by your users.
|
|
105
|
-
ACTIVE =
|
|
106
|
-
T.let(:active, Increase::OAuthApplication::Status::TaggedSymbol)
|
|
107
|
-
|
|
108
|
-
# The application is deleted.
|
|
109
|
-
DELETED =
|
|
110
|
-
T.let(:deleted, Increase::OAuthApplication::Status::TaggedSymbol)
|
|
111
|
-
|
|
112
|
-
sig do
|
|
113
|
-
override.returns(
|
|
114
|
-
T::Array[Increase::OAuthApplication::Status::TaggedSymbol]
|
|
115
|
-
)
|
|
116
|
-
end
|
|
117
|
-
def self.values
|
|
118
|
-
end
|
|
119
|
-
end
|
|
120
|
-
|
|
121
|
-
# A constant representing the object's type. For this resource it will always be
|
|
122
|
-
# `oauth_application`.
|
|
123
|
-
module Type
|
|
124
|
-
extend Increase::Internal::Type::Enum
|
|
125
|
-
|
|
126
|
-
TaggedSymbol =
|
|
127
|
-
T.type_alias { T.all(Symbol, Increase::OAuthApplication::Type) }
|
|
128
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
129
|
-
|
|
130
|
-
OAUTH_APPLICATION =
|
|
131
|
-
T.let(
|
|
132
|
-
:oauth_application,
|
|
133
|
-
Increase::OAuthApplication::Type::TaggedSymbol
|
|
134
|
-
)
|
|
135
|
-
|
|
136
|
-
sig do
|
|
137
|
-
override.returns(
|
|
138
|
-
T::Array[Increase::OAuthApplication::Type::TaggedSymbol]
|
|
139
|
-
)
|
|
140
|
-
end
|
|
141
|
-
def self.values
|
|
142
|
-
end
|
|
143
|
-
end
|
|
144
|
-
end
|
|
145
|
-
end
|
|
146
|
-
end
|
|
@@ -1,263 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Increase
|
|
4
|
-
module Models
|
|
5
|
-
class OAuthApplicationListParams < 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::OAuthApplicationListParams,
|
|
13
|
-
Increase::Internal::AnyHash
|
|
14
|
-
)
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
sig do
|
|
18
|
-
returns(T.nilable(Increase::OAuthApplicationListParams::CreatedAt))
|
|
19
|
-
end
|
|
20
|
-
attr_reader :created_at
|
|
21
|
-
|
|
22
|
-
sig do
|
|
23
|
-
params(
|
|
24
|
-
created_at: Increase::OAuthApplicationListParams::CreatedAt::OrHash
|
|
25
|
-
).void
|
|
26
|
-
end
|
|
27
|
-
attr_writer :created_at
|
|
28
|
-
|
|
29
|
-
# Return the page of entries after this one.
|
|
30
|
-
sig { returns(T.nilable(String)) }
|
|
31
|
-
attr_reader :cursor
|
|
32
|
-
|
|
33
|
-
sig { params(cursor: String).void }
|
|
34
|
-
attr_writer :cursor
|
|
35
|
-
|
|
36
|
-
# Limit the size of the list that is returned. The default (and maximum) is 100
|
|
37
|
-
# objects.
|
|
38
|
-
#
|
|
39
|
-
# Defaults to `100`.
|
|
40
|
-
sig { returns(T.nilable(Integer)) }
|
|
41
|
-
attr_reader :limit
|
|
42
|
-
|
|
43
|
-
sig { params(limit: Integer).void }
|
|
44
|
-
attr_writer :limit
|
|
45
|
-
|
|
46
|
-
sig { returns(T.nilable(Increase::OAuthApplicationListParams::Status)) }
|
|
47
|
-
attr_reader :status
|
|
48
|
-
|
|
49
|
-
sig do
|
|
50
|
-
params(
|
|
51
|
-
status: Increase::OAuthApplicationListParams::Status::OrHash
|
|
52
|
-
).void
|
|
53
|
-
end
|
|
54
|
-
attr_writer :status
|
|
55
|
-
|
|
56
|
-
sig do
|
|
57
|
-
params(
|
|
58
|
-
created_at: Increase::OAuthApplicationListParams::CreatedAt::OrHash,
|
|
59
|
-
cursor: String,
|
|
60
|
-
limit: Integer,
|
|
61
|
-
status: Increase::OAuthApplicationListParams::Status::OrHash,
|
|
62
|
-
request_options: Increase::RequestOptions::OrHash
|
|
63
|
-
).returns(T.attached_class)
|
|
64
|
-
end
|
|
65
|
-
def self.new(
|
|
66
|
-
created_at: nil,
|
|
67
|
-
# Return the page of entries after this one.
|
|
68
|
-
cursor: nil,
|
|
69
|
-
# Limit the size of the list that is returned. The default (and maximum) is 100
|
|
70
|
-
# objects.
|
|
71
|
-
#
|
|
72
|
-
# Defaults to `100`.
|
|
73
|
-
limit: nil,
|
|
74
|
-
status: nil,
|
|
75
|
-
request_options: {}
|
|
76
|
-
)
|
|
77
|
-
end
|
|
78
|
-
|
|
79
|
-
sig do
|
|
80
|
-
override.returns(
|
|
81
|
-
{
|
|
82
|
-
created_at: Increase::OAuthApplicationListParams::CreatedAt,
|
|
83
|
-
cursor: String,
|
|
84
|
-
limit: Integer,
|
|
85
|
-
status: Increase::OAuthApplicationListParams::Status,
|
|
86
|
-
request_options: Increase::RequestOptions
|
|
87
|
-
}
|
|
88
|
-
)
|
|
89
|
-
end
|
|
90
|
-
def to_hash
|
|
91
|
-
end
|
|
92
|
-
|
|
93
|
-
class CreatedAt < Increase::Internal::Type::BaseModel
|
|
94
|
-
OrHash =
|
|
95
|
-
T.type_alias do
|
|
96
|
-
T.any(
|
|
97
|
-
Increase::OAuthApplicationListParams::CreatedAt,
|
|
98
|
-
Increase::Internal::AnyHash
|
|
99
|
-
)
|
|
100
|
-
end
|
|
101
|
-
|
|
102
|
-
# Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
103
|
-
# timestamp.
|
|
104
|
-
sig { returns(T.nilable(Time)) }
|
|
105
|
-
attr_reader :after
|
|
106
|
-
|
|
107
|
-
sig { params(after: Time).void }
|
|
108
|
-
attr_writer :after
|
|
109
|
-
|
|
110
|
-
# Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
111
|
-
# timestamp.
|
|
112
|
-
sig { returns(T.nilable(Time)) }
|
|
113
|
-
attr_reader :before
|
|
114
|
-
|
|
115
|
-
sig { params(before: Time).void }
|
|
116
|
-
attr_writer :before
|
|
117
|
-
|
|
118
|
-
# Return results on or after this
|
|
119
|
-
# [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
120
|
-
sig { returns(T.nilable(Time)) }
|
|
121
|
-
attr_reader :on_or_after
|
|
122
|
-
|
|
123
|
-
sig { params(on_or_after: Time).void }
|
|
124
|
-
attr_writer :on_or_after
|
|
125
|
-
|
|
126
|
-
# Return results on or before this
|
|
127
|
-
# [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
128
|
-
sig { returns(T.nilable(Time)) }
|
|
129
|
-
attr_reader :on_or_before
|
|
130
|
-
|
|
131
|
-
sig { params(on_or_before: Time).void }
|
|
132
|
-
attr_writer :on_or_before
|
|
133
|
-
|
|
134
|
-
sig do
|
|
135
|
-
params(
|
|
136
|
-
after: Time,
|
|
137
|
-
before: Time,
|
|
138
|
-
on_or_after: Time,
|
|
139
|
-
on_or_before: Time
|
|
140
|
-
).returns(T.attached_class)
|
|
141
|
-
end
|
|
142
|
-
def self.new(
|
|
143
|
-
# Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
144
|
-
# timestamp.
|
|
145
|
-
after: nil,
|
|
146
|
-
# Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
147
|
-
# timestamp.
|
|
148
|
-
before: nil,
|
|
149
|
-
# Return results on or after this
|
|
150
|
-
# [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
151
|
-
on_or_after: nil,
|
|
152
|
-
# Return results on or before this
|
|
153
|
-
# [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
154
|
-
on_or_before: nil
|
|
155
|
-
)
|
|
156
|
-
end
|
|
157
|
-
|
|
158
|
-
sig do
|
|
159
|
-
override.returns(
|
|
160
|
-
{ after: Time, before: Time, on_or_after: Time, on_or_before: Time }
|
|
161
|
-
)
|
|
162
|
-
end
|
|
163
|
-
def to_hash
|
|
164
|
-
end
|
|
165
|
-
end
|
|
166
|
-
|
|
167
|
-
class Status < Increase::Internal::Type::BaseModel
|
|
168
|
-
OrHash =
|
|
169
|
-
T.type_alias do
|
|
170
|
-
T.any(
|
|
171
|
-
Increase::OAuthApplicationListParams::Status,
|
|
172
|
-
Increase::Internal::AnyHash
|
|
173
|
-
)
|
|
174
|
-
end
|
|
175
|
-
|
|
176
|
-
# Return results whose value is in the provided list. For GET requests, this
|
|
177
|
-
# should be encoded as a comma-delimited string, such as `?in=one,two,three`.
|
|
178
|
-
sig do
|
|
179
|
-
returns(
|
|
180
|
-
T.nilable(
|
|
181
|
-
T::Array[
|
|
182
|
-
Increase::OAuthApplicationListParams::Status::In::OrSymbol
|
|
183
|
-
]
|
|
184
|
-
)
|
|
185
|
-
)
|
|
186
|
-
end
|
|
187
|
-
attr_reader :in_
|
|
188
|
-
|
|
189
|
-
sig do
|
|
190
|
-
params(
|
|
191
|
-
in_:
|
|
192
|
-
T::Array[
|
|
193
|
-
Increase::OAuthApplicationListParams::Status::In::OrSymbol
|
|
194
|
-
]
|
|
195
|
-
).void
|
|
196
|
-
end
|
|
197
|
-
attr_writer :in_
|
|
198
|
-
|
|
199
|
-
sig do
|
|
200
|
-
params(
|
|
201
|
-
in_:
|
|
202
|
-
T::Array[
|
|
203
|
-
Increase::OAuthApplicationListParams::Status::In::OrSymbol
|
|
204
|
-
]
|
|
205
|
-
).returns(T.attached_class)
|
|
206
|
-
end
|
|
207
|
-
def self.new(
|
|
208
|
-
# Return results whose value is in the provided list. For GET requests, this
|
|
209
|
-
# should be encoded as a comma-delimited string, such as `?in=one,two,three`.
|
|
210
|
-
in_: nil
|
|
211
|
-
)
|
|
212
|
-
end
|
|
213
|
-
|
|
214
|
-
sig do
|
|
215
|
-
override.returns(
|
|
216
|
-
{
|
|
217
|
-
in_:
|
|
218
|
-
T::Array[
|
|
219
|
-
Increase::OAuthApplicationListParams::Status::In::OrSymbol
|
|
220
|
-
]
|
|
221
|
-
}
|
|
222
|
-
)
|
|
223
|
-
end
|
|
224
|
-
def to_hash
|
|
225
|
-
end
|
|
226
|
-
|
|
227
|
-
module In
|
|
228
|
-
extend Increase::Internal::Type::Enum
|
|
229
|
-
|
|
230
|
-
TaggedSymbol =
|
|
231
|
-
T.type_alias do
|
|
232
|
-
T.all(Symbol, Increase::OAuthApplicationListParams::Status::In)
|
|
233
|
-
end
|
|
234
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
235
|
-
|
|
236
|
-
# The application is active and can be used by your users.
|
|
237
|
-
ACTIVE =
|
|
238
|
-
T.let(
|
|
239
|
-
:active,
|
|
240
|
-
Increase::OAuthApplicationListParams::Status::In::TaggedSymbol
|
|
241
|
-
)
|
|
242
|
-
|
|
243
|
-
# The application is deleted.
|
|
244
|
-
DELETED =
|
|
245
|
-
T.let(
|
|
246
|
-
:deleted,
|
|
247
|
-
Increase::OAuthApplicationListParams::Status::In::TaggedSymbol
|
|
248
|
-
)
|
|
249
|
-
|
|
250
|
-
sig do
|
|
251
|
-
override.returns(
|
|
252
|
-
T::Array[
|
|
253
|
-
Increase::OAuthApplicationListParams::Status::In::TaggedSymbol
|
|
254
|
-
]
|
|
255
|
-
)
|
|
256
|
-
end
|
|
257
|
-
def self.values
|
|
258
|
-
end
|
|
259
|
-
end
|
|
260
|
-
end
|
|
261
|
-
end
|
|
262
|
-
end
|
|
263
|
-
end
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Increase
|
|
4
|
-
module Models
|
|
5
|
-
class OAuthApplicationRetrieveParams < 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::OAuthApplicationRetrieveParams,
|
|
13
|
-
Increase::Internal::AnyHash
|
|
14
|
-
)
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
# The identifier of the OAuth Application.
|
|
18
|
-
sig { returns(String) }
|
|
19
|
-
attr_accessor :oauth_application_id
|
|
20
|
-
|
|
21
|
-
sig do
|
|
22
|
-
params(
|
|
23
|
-
oauth_application_id: String,
|
|
24
|
-
request_options: Increase::RequestOptions::OrHash
|
|
25
|
-
).returns(T.attached_class)
|
|
26
|
-
end
|
|
27
|
-
def self.new(
|
|
28
|
-
# The identifier of the OAuth Application.
|
|
29
|
-
oauth_application_id:,
|
|
30
|
-
request_options: {}
|
|
31
|
-
)
|
|
32
|
-
end
|
|
33
|
-
|
|
34
|
-
sig do
|
|
35
|
-
override.returns(
|
|
36
|
-
{
|
|
37
|
-
oauth_application_id: String,
|
|
38
|
-
request_options: Increase::RequestOptions
|
|
39
|
-
}
|
|
40
|
-
)
|
|
41
|
-
end
|
|
42
|
-
def to_hash
|
|
43
|
-
end
|
|
44
|
-
end
|
|
45
|
-
end
|
|
46
|
-
end
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Increase
|
|
4
|
-
module Models
|
|
5
|
-
class OAuthConnection < Increase::Internal::Type::BaseModel
|
|
6
|
-
OrHash =
|
|
7
|
-
T.type_alias do
|
|
8
|
-
T.any(Increase::OAuthConnection, Increase::Internal::AnyHash)
|
|
9
|
-
end
|
|
10
|
-
|
|
11
|
-
# The OAuth Connection's identifier.
|
|
12
|
-
sig { returns(String) }
|
|
13
|
-
attr_accessor :id
|
|
14
|
-
|
|
15
|
-
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp when the OAuth
|
|
16
|
-
# Connection was created.
|
|
17
|
-
sig { returns(Time) }
|
|
18
|
-
attr_accessor :created_at
|
|
19
|
-
|
|
20
|
-
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp when the OAuth
|
|
21
|
-
# Connection was deleted.
|
|
22
|
-
sig { returns(T.nilable(Time)) }
|
|
23
|
-
attr_accessor :deleted_at
|
|
24
|
-
|
|
25
|
-
# The identifier of the Group that has authorized your OAuth application.
|
|
26
|
-
sig { returns(String) }
|
|
27
|
-
attr_accessor :group_id
|
|
28
|
-
|
|
29
|
-
# The identifier of the OAuth application this connection is for.
|
|
30
|
-
sig { returns(String) }
|
|
31
|
-
attr_accessor :oauth_application_id
|
|
32
|
-
|
|
33
|
-
# Whether the connection is active.
|
|
34
|
-
sig { returns(Increase::OAuthConnection::Status::TaggedSymbol) }
|
|
35
|
-
attr_accessor :status
|
|
36
|
-
|
|
37
|
-
# A constant representing the object's type. For this resource it will always be
|
|
38
|
-
# `oauth_connection`.
|
|
39
|
-
sig { returns(Increase::OAuthConnection::Type::TaggedSymbol) }
|
|
40
|
-
attr_accessor :type
|
|
41
|
-
|
|
42
|
-
# When a user authorizes your OAuth application, an OAuth Connection object is
|
|
43
|
-
# created. Learn more about OAuth
|
|
44
|
-
# [here](https://increase.com/documentation/oauth).
|
|
45
|
-
sig do
|
|
46
|
-
params(
|
|
47
|
-
id: String,
|
|
48
|
-
created_at: Time,
|
|
49
|
-
deleted_at: T.nilable(Time),
|
|
50
|
-
group_id: String,
|
|
51
|
-
oauth_application_id: String,
|
|
52
|
-
status: Increase::OAuthConnection::Status::OrSymbol,
|
|
53
|
-
type: Increase::OAuthConnection::Type::OrSymbol
|
|
54
|
-
).returns(T.attached_class)
|
|
55
|
-
end
|
|
56
|
-
def self.new(
|
|
57
|
-
# The OAuth Connection's identifier.
|
|
58
|
-
id:,
|
|
59
|
-
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp when the OAuth
|
|
60
|
-
# Connection was created.
|
|
61
|
-
created_at:,
|
|
62
|
-
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp when the OAuth
|
|
63
|
-
# Connection was deleted.
|
|
64
|
-
deleted_at:,
|
|
65
|
-
# The identifier of the Group that has authorized your OAuth application.
|
|
66
|
-
group_id:,
|
|
67
|
-
# The identifier of the OAuth application this connection is for.
|
|
68
|
-
oauth_application_id:,
|
|
69
|
-
# Whether the connection is active.
|
|
70
|
-
status:,
|
|
71
|
-
# A constant representing the object's type. For this resource it will always be
|
|
72
|
-
# `oauth_connection`.
|
|
73
|
-
type:
|
|
74
|
-
)
|
|
75
|
-
end
|
|
76
|
-
|
|
77
|
-
sig do
|
|
78
|
-
override.returns(
|
|
79
|
-
{
|
|
80
|
-
id: String,
|
|
81
|
-
created_at: Time,
|
|
82
|
-
deleted_at: T.nilable(Time),
|
|
83
|
-
group_id: String,
|
|
84
|
-
oauth_application_id: String,
|
|
85
|
-
status: Increase::OAuthConnection::Status::TaggedSymbol,
|
|
86
|
-
type: Increase::OAuthConnection::Type::TaggedSymbol
|
|
87
|
-
}
|
|
88
|
-
)
|
|
89
|
-
end
|
|
90
|
-
def to_hash
|
|
91
|
-
end
|
|
92
|
-
|
|
93
|
-
# Whether the connection is active.
|
|
94
|
-
module Status
|
|
95
|
-
extend Increase::Internal::Type::Enum
|
|
96
|
-
|
|
97
|
-
TaggedSymbol =
|
|
98
|
-
T.type_alias { T.all(Symbol, Increase::OAuthConnection::Status) }
|
|
99
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
100
|
-
|
|
101
|
-
# The OAuth connection is active.
|
|
102
|
-
ACTIVE = T.let(:active, Increase::OAuthConnection::Status::TaggedSymbol)
|
|
103
|
-
|
|
104
|
-
# The OAuth connection is permanently deactivated.
|
|
105
|
-
INACTIVE =
|
|
106
|
-
T.let(:inactive, Increase::OAuthConnection::Status::TaggedSymbol)
|
|
107
|
-
|
|
108
|
-
sig do
|
|
109
|
-
override.returns(
|
|
110
|
-
T::Array[Increase::OAuthConnection::Status::TaggedSymbol]
|
|
111
|
-
)
|
|
112
|
-
end
|
|
113
|
-
def self.values
|
|
114
|
-
end
|
|
115
|
-
end
|
|
116
|
-
|
|
117
|
-
# A constant representing the object's type. For this resource it will always be
|
|
118
|
-
# `oauth_connection`.
|
|
119
|
-
module Type
|
|
120
|
-
extend Increase::Internal::Type::Enum
|
|
121
|
-
|
|
122
|
-
TaggedSymbol =
|
|
123
|
-
T.type_alias { T.all(Symbol, Increase::OAuthConnection::Type) }
|
|
124
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
125
|
-
|
|
126
|
-
OAUTH_CONNECTION =
|
|
127
|
-
T.let(
|
|
128
|
-
:oauth_connection,
|
|
129
|
-
Increase::OAuthConnection::Type::TaggedSymbol
|
|
130
|
-
)
|
|
131
|
-
|
|
132
|
-
sig do
|
|
133
|
-
override.returns(
|
|
134
|
-
T::Array[Increase::OAuthConnection::Type::TaggedSymbol]
|
|
135
|
-
)
|
|
136
|
-
end
|
|
137
|
-
def self.values
|
|
138
|
-
end
|
|
139
|
-
end
|
|
140
|
-
end
|
|
141
|
-
end
|
|
142
|
-
end
|