increase 1.362.0 → 1.364.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.
Files changed (165) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/increase/client.rb +8 -16
  4. data/lib/increase/models/account_number.rb +51 -81
  5. data/lib/increase/models/account_number_create_params.rb +41 -75
  6. data/lib/increase/models/account_number_list_params.rb +39 -39
  7. data/lib/increase/models/account_number_update_params.rb +48 -79
  8. data/lib/increase/models/ach_transfer.rb +38 -23
  9. data/lib/increase/models/card_payment.rb +6 -0
  10. data/lib/increase/models/card_update_params.rb +12 -8
  11. data/lib/increase/models/check_transfer.rb +58 -44
  12. data/lib/increase/models/check_transfer_create_params.rb +35 -21
  13. data/lib/increase/models/checkbook.rb +352 -0
  14. data/lib/increase/models/checkbook_check.rb +100 -0
  15. data/lib/increase/models/checkbook_check_list_params.rb +61 -0
  16. data/lib/increase/models/checkbook_check_retrieve_params.rb +22 -0
  17. data/lib/increase/models/checkbook_check_stop_params.rb +22 -0
  18. data/lib/increase/models/checkbook_create_params.rb +111 -0
  19. data/lib/increase/models/checkbook_list_params.rb +104 -0
  20. data/lib/increase/models/checkbook_retrieve_params.rb +22 -0
  21. data/lib/increase/models/checkbook_stop_params.rb +22 -0
  22. data/lib/increase/models/declined_transaction.rb +10 -1
  23. data/lib/increase/models/entity.rb +1 -65
  24. data/lib/increase/models/entity_create_params.rb +1 -65
  25. data/lib/increase/models/entity_update_params.rb +1 -57
  26. data/lib/increase/models/export.rb +12 -1
  27. data/lib/increase/models/export_create_params.rb +26 -4
  28. data/lib/increase/models/inbound_ach_transfer.rb +6 -6
  29. data/lib/increase/models/inbound_check_deposit.rb +12 -1
  30. data/lib/increase/models/inbound_real_time_payments_transfer.rb +10 -1
  31. data/lib/increase/models/inbound_real_time_payments_transfer_return_params.rb +36 -0
  32. data/lib/increase/models/real_time_decision.rb +65 -1
  33. data/lib/increase/models/real_time_payments_transfer.rb +21 -1
  34. data/lib/increase/models/simulations/checkbook_mail_params.rb +24 -0
  35. data/lib/increase/models/transaction.rb +27 -5
  36. data/lib/increase/models.rb +21 -20
  37. data/lib/increase/resources/account_numbers.rb +19 -16
  38. data/lib/increase/resources/checkbook_checks.rb +90 -0
  39. data/lib/increase/resources/checkbooks.rb +127 -0
  40. data/lib/increase/resources/entities.rb +2 -12
  41. data/lib/increase/resources/inbound_real_time_payments_transfers.rb +28 -0
  42. data/lib/increase/resources/simulations/checkbooks.rb +38 -0
  43. data/lib/increase/resources/simulations.rb +4 -0
  44. data/lib/increase/version.rb +1 -1
  45. data/lib/increase.rb +14 -14
  46. data/rbi/increase/client.rbi +6 -12
  47. data/rbi/increase/models/account_number.rbi +86 -173
  48. data/rbi/increase/models/account_number_create_params.rbi +87 -165
  49. data/rbi/increase/models/account_number_list_params.rbi +106 -105
  50. data/rbi/increase/models/account_number_update_params.rbi +105 -190
  51. data/rbi/increase/models/ach_transfer.rbi +35 -23
  52. data/rbi/increase/models/card_payment.rbi +14 -0
  53. data/rbi/increase/models/card_update_params.rbi +17 -15
  54. data/rbi/increase/models/check_transfer.rbi +72 -54
  55. data/rbi/increase/models/check_transfer_create_params.rbi +55 -21
  56. data/rbi/increase/models/checkbook.rbi +507 -0
  57. data/rbi/increase/models/checkbook_check.rbi +142 -0
  58. data/rbi/increase/models/checkbook_check_list_params.rbi +96 -0
  59. data/rbi/increase/models/{oauth_connection_retrieve_params.rbi → checkbook_check_retrieve_params.rbi} +8 -8
  60. data/rbi/increase/models/{oauth_application_retrieve_params.rbi → checkbook_check_stop_params.rbi} +8 -11
  61. data/rbi/increase/models/checkbook_create_params.rbi +178 -0
  62. data/rbi/increase/models/checkbook_list_params.rbi +198 -0
  63. data/rbi/increase/models/checkbook_retrieve_params.rbi +40 -0
  64. data/rbi/increase/models/checkbook_stop_params.rbi +40 -0
  65. data/rbi/increase/models/declined_transaction.rbi +8 -0
  66. data/rbi/increase/models/entity.rbi +0 -97
  67. data/rbi/increase/models/entity_create_params.rbi +0 -119
  68. data/rbi/increase/models/entity_update_params.rbi +0 -108
  69. data/rbi/increase/models/export.rbi +15 -3
  70. data/rbi/increase/models/export_create_params.rbi +27 -3
  71. data/rbi/increase/models/inbound_ach_transfer.rbi +6 -6
  72. data/rbi/increase/models/inbound_check_deposit.rbi +10 -0
  73. data/rbi/increase/models/inbound_real_time_payments_transfer.rbi +8 -0
  74. data/rbi/increase/models/inbound_real_time_payments_transfer_return_params.rbi +61 -0
  75. data/rbi/increase/models/real_time_decision.rbi +134 -3
  76. data/rbi/increase/models/real_time_payments_transfer.rbi +18 -0
  77. data/rbi/increase/models/simulations/checkbook_mail_params.rbi +45 -0
  78. data/rbi/increase/models/transaction.rbi +33 -3
  79. data/rbi/increase/models.rbi +21 -22
  80. data/rbi/increase/resources/account_numbers.rbi +24 -19
  81. data/rbi/increase/resources/checkbook_checks.rbi +69 -0
  82. data/rbi/increase/resources/checkbooks.rbi +96 -0
  83. data/rbi/increase/resources/entities.rbi +0 -11
  84. data/rbi/increase/resources/inbound_real_time_payments_transfers.rbi +19 -0
  85. data/rbi/increase/resources/simulations/checkbooks.rbi +30 -0
  86. data/rbi/increase/resources/simulations.rbi +3 -0
  87. data/sig/increase/client.rbs +4 -8
  88. data/sig/increase/models/account_number.rbs +34 -66
  89. data/sig/increase/models/account_number_create_params.rbs +30 -64
  90. data/sig/increase/models/account_number_list_params.rbs +44 -44
  91. data/sig/increase/models/account_number_update_params.rbs +39 -77
  92. data/sig/increase/models/ach_transfer.rbs +4 -4
  93. data/sig/increase/models/card_payment.rbs +8 -0
  94. data/sig/increase/models/card_update_params.rbs +7 -11
  95. data/sig/increase/models/check_transfer.rbs +59 -49
  96. data/sig/increase/models/check_transfer_create_params.rbs +20 -12
  97. data/sig/increase/models/checkbook.rbs +272 -0
  98. data/sig/increase/models/checkbook_check.rbs +76 -0
  99. data/sig/increase/models/checkbook_check_list_params.rbs +56 -0
  100. data/sig/increase/models/{oauth_connection_retrieve_params.rbs → checkbook_check_retrieve_params.rbs} +6 -6
  101. data/sig/increase/models/{oauth_application_retrieve_params.rbs → checkbook_check_stop_params.rbs} +6 -6
  102. data/sig/increase/models/checkbook_create_params.rbs +90 -0
  103. data/sig/increase/models/checkbook_list_params.rbs +97 -0
  104. data/sig/increase/models/checkbook_retrieve_params.rbs +23 -0
  105. data/sig/increase/models/checkbook_stop_params.rbs +23 -0
  106. data/sig/increase/models/declined_transaction.rbs +5 -0
  107. data/sig/increase/models/entity.rbs +0 -46
  108. data/sig/increase/models/entity_create_params.rbs +0 -55
  109. data/sig/increase/models/entity_update_params.rbs +0 -48
  110. data/sig/increase/models/export.rbs +13 -3
  111. data/sig/increase/models/export_create_params.rbs +7 -0
  112. data/sig/increase/models/inbound_check_deposit.rbs +5 -0
  113. data/sig/increase/models/inbound_real_time_payments_transfer.rbs +5 -0
  114. data/sig/increase/models/inbound_real_time_payments_transfer_return_params.rbs +30 -0
  115. data/sig/increase/models/real_time_decision.rbs +69 -3
  116. data/sig/increase/models/real_time_payments_transfer.rbs +10 -0
  117. data/sig/increase/models/simulations/checkbook_mail_params.rbs +25 -0
  118. data/sig/increase/models/transaction.rbs +26 -5
  119. data/sig/increase/models.rbs +20 -20
  120. data/sig/increase/resources/account_numbers.rbs +5 -5
  121. data/sig/increase/resources/checkbook_checks.rbs +26 -0
  122. data/sig/increase/resources/checkbooks.rbs +33 -0
  123. data/sig/increase/resources/entities.rbs +0 -3
  124. data/sig/increase/resources/inbound_real_time_payments_transfers.rbs +6 -0
  125. data/sig/increase/resources/simulations/checkbooks.rbs +14 -0
  126. data/sig/increase/resources/simulations.rbs +2 -0
  127. metadata +45 -45
  128. data/lib/increase/models/group.rb +0 -57
  129. data/lib/increase/models/group_retrieve_params.rb +0 -14
  130. data/lib/increase/models/oauth_application.rb +0 -111
  131. data/lib/increase/models/oauth_application_list_params.rb +0 -129
  132. data/lib/increase/models/oauth_application_retrieve_params.rb +0 -22
  133. data/lib/increase/models/oauth_connection.rb +0 -107
  134. data/lib/increase/models/oauth_connection_list_params.rb +0 -88
  135. data/lib/increase/models/oauth_connection_retrieve_params.rb +0 -22
  136. data/lib/increase/models/oauth_token.rb +0 -76
  137. data/lib/increase/models/oauth_token_create_params.rb +0 -85
  138. data/lib/increase/resources/groups.rb +0 -32
  139. data/lib/increase/resources/oauth_applications.rb +0 -68
  140. data/lib/increase/resources/oauth_connections.rb +0 -70
  141. data/lib/increase/resources/oauth_tokens.rb +0 -54
  142. data/rbi/increase/models/group.rbi +0 -74
  143. data/rbi/increase/models/group_retrieve_params.rbi +0 -27
  144. data/rbi/increase/models/oauth_application.rbi +0 -146
  145. data/rbi/increase/models/oauth_application_list_params.rbi +0 -263
  146. data/rbi/increase/models/oauth_connection.rbi +0 -142
  147. data/rbi/increase/models/oauth_connection_list_params.rbi +0 -187
  148. data/rbi/increase/models/oauth_token.rbi +0 -106
  149. data/rbi/increase/models/oauth_token_create_params.rbi +0 -133
  150. data/rbi/increase/resources/groups.rbi +0 -21
  151. data/rbi/increase/resources/oauth_applications.rbi +0 -50
  152. data/rbi/increase/resources/oauth_connections.rbi +0 -52
  153. data/rbi/increase/resources/oauth_tokens.rbi +0 -44
  154. data/sig/increase/models/group.rbs +0 -36
  155. data/sig/increase/models/group_retrieve_params.rbs +0 -15
  156. data/sig/increase/models/oauth_application.rbs +0 -74
  157. data/sig/increase/models/oauth_application_list_params.rbs +0 -123
  158. data/sig/increase/models/oauth_connection.rbs +0 -74
  159. data/sig/increase/models/oauth_connection_list_params.rbs +0 -86
  160. data/sig/increase/models/oauth_token.rbs +0 -55
  161. data/sig/increase/models/oauth_token_create_params.rbs +0 -68
  162. data/sig/increase/resources/groups.rbs +0 -11
  163. data/sig/increase/resources/oauth_applications.rbs +0 -20
  164. data/sig/increase/resources/oauth_connections.rbs +0 -20
  165. data/sig/increase/resources/oauth_tokens.rbs +0 -16
@@ -1,27 +0,0 @@
1
- # typed: strong
2
-
3
- module Increase
4
- module Models
5
- class GroupRetrieveParams < 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(Increase::GroupRetrieveParams, Increase::Internal::AnyHash)
12
- end
13
-
14
- sig do
15
- params(request_options: Increase::RequestOptions::OrHash).returns(
16
- T.attached_class
17
- )
18
- end
19
- def self.new(request_options: {})
20
- end
21
-
22
- sig { override.returns({ request_options: Increase::RequestOptions }) }
23
- def to_hash
24
- end
25
- end
26
- end
27
- end
@@ -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,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