increase 1.284.1 → 1.287.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 (51) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +185 -0
  3. data/README.md +1 -1
  4. data/lib/increase/client.rb +4 -0
  5. data/lib/increase/models/entity_onboarding_session.rb +135 -0
  6. data/lib/increase/models/entity_onboarding_session_create_params.rb +45 -0
  7. data/lib/increase/models/entity_onboarding_session_expire_params.rb +22 -0
  8. data/lib/increase/models/entity_onboarding_session_list_params.rb +85 -0
  9. data/lib/increase/models/entity_onboarding_session_retrieve_params.rb +22 -0
  10. data/lib/increase/models/export.rb +53 -10
  11. data/lib/increase/models/export_create_params.rb +51 -33
  12. data/lib/increase/models/export_list_params.rb +3 -0
  13. data/lib/increase/models/simulations/entity_onboarding_session_submit_params.rb +24 -0
  14. data/lib/increase/models.rb +10 -0
  15. data/lib/increase/resources/entity_onboarding_sessions.rb +116 -0
  16. data/lib/increase/resources/exports.rb +3 -1
  17. data/lib/increase/resources/simulations/entity_onboarding_sessions.rb +39 -0
  18. data/lib/increase/resources/simulations.rb +5 -0
  19. data/lib/increase/version.rb +1 -1
  20. data/lib/increase.rb +8 -0
  21. data/rbi/increase/client.rbi +3 -0
  22. data/rbi/increase/models/entity_onboarding_session.rbi +190 -0
  23. data/rbi/increase/models/entity_onboarding_session_create_params.rbi +73 -0
  24. data/rbi/increase/models/entity_onboarding_session_expire_params.rbi +46 -0
  25. data/rbi/increase/models/entity_onboarding_session_list_params.rbi +194 -0
  26. data/rbi/increase/models/entity_onboarding_session_retrieve_params.rbi +46 -0
  27. data/rbi/increase/models/export.rbi +92 -11
  28. data/rbi/increase/models/export_create_params.rbi +101 -50
  29. data/rbi/increase/models/export_list_params.rbi +7 -0
  30. data/rbi/increase/models/simulations/entity_onboarding_session_submit_params.rbi +48 -0
  31. data/rbi/increase/models.rbi +14 -0
  32. data/rbi/increase/resources/entity_onboarding_sessions.rbi +90 -0
  33. data/rbi/increase/resources/exports.rbi +5 -0
  34. data/rbi/increase/resources/simulations/entity_onboarding_sessions.rbi +31 -0
  35. data/rbi/increase/resources/simulations.rbi +5 -0
  36. data/sig/increase/client.rbs +2 -0
  37. data/sig/increase/models/entity_onboarding_session.rbs +89 -0
  38. data/sig/increase/models/entity_onboarding_session_create_params.rbs +34 -0
  39. data/sig/increase/models/entity_onboarding_session_expire_params.rbs +24 -0
  40. data/sig/increase/models/entity_onboarding_session_list_params.rbs +86 -0
  41. data/sig/increase/models/entity_onboarding_session_retrieve_params.rbs +24 -0
  42. data/sig/increase/models/export.rbs +41 -5
  43. data/sig/increase/models/export_create_params.rbs +45 -22
  44. data/sig/increase/models/export_list_params.rbs +4 -0
  45. data/sig/increase/models/simulations/entity_onboarding_session_submit_params.rbs +26 -0
  46. data/sig/increase/models.rbs +10 -0
  47. data/sig/increase/resources/entity_onboarding_sessions.rbs +32 -0
  48. data/sig/increase/resources/exports.rbs +1 -0
  49. data/sig/increase/resources/simulations/entity_onboarding_sessions.rbs +14 -0
  50. data/sig/increase/resources/simulations.rbs +2 -0
  51. metadata +26 -2
@@ -0,0 +1,190 @@
1
+ # typed: strong
2
+
3
+ module Increase
4
+ module Models
5
+ class EntityOnboardingSession < Increase::Internal::Type::BaseModel
6
+ OrHash =
7
+ T.type_alias do
8
+ T.any(Increase::EntityOnboardingSession, Increase::Internal::AnyHash)
9
+ end
10
+
11
+ # The Entity Onboarding Session's identifier.
12
+ sig { returns(String) }
13
+ attr_accessor :id
14
+
15
+ # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
16
+ # the Entity Onboarding Session was created.
17
+ sig { returns(Time) }
18
+ attr_accessor :created_at
19
+
20
+ # The identifier of the Entity associated with this session, if one has been
21
+ # created or was provided when creating the session.
22
+ sig { returns(T.nilable(String)) }
23
+ attr_accessor :entity_id
24
+
25
+ # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
26
+ # the Entity Onboarding Session will expire.
27
+ sig { returns(Time) }
28
+ attr_accessor :expires_at
29
+
30
+ # The idempotency key you chose for this object. This value is unique across
31
+ # Increase and is used to ensure that a request is only processed once. Learn more
32
+ # about [idempotency](https://increase.com/documentation/idempotency-keys).
33
+ sig { returns(T.nilable(String)) }
34
+ attr_accessor :idempotency_key
35
+
36
+ # The identifier of the Program the Entity will be onboarded to.
37
+ sig { returns(String) }
38
+ attr_accessor :program_id
39
+
40
+ # The URL to redirect to after the onboarding session is complete. Increase will
41
+ # include the query parameters `entity_onboarding_session_id` and `entity_id` when
42
+ # redirecting.
43
+ sig { returns(String) }
44
+ attr_accessor :redirect_url
45
+
46
+ # The URL containing the onboarding form. You should share this link with your
47
+ # customer. Only present when the session is active.
48
+ sig { returns(T.nilable(String)) }
49
+ attr_accessor :session_url
50
+
51
+ # The status of the onboarding session.
52
+ sig { returns(Increase::EntityOnboardingSession::Status::TaggedSymbol) }
53
+ attr_accessor :status
54
+
55
+ # A constant representing the object's type. For this resource it will always be
56
+ # `entity_onboarding_session`.
57
+ sig { returns(Increase::EntityOnboardingSession::Type::TaggedSymbol) }
58
+ attr_accessor :type
59
+
60
+ # Entity Onboarding Sessions let your customers onboard themselves by completing
61
+ # Increase-hosted forms. Create a session and redirect your customer to the
62
+ # returned URL. When they're done, they'll be redirected back to your site. This
63
+ # API is used for [hosted onboarding](/documentation/hosted-onboarding).
64
+ sig do
65
+ params(
66
+ id: String,
67
+ created_at: Time,
68
+ entity_id: T.nilable(String),
69
+ expires_at: Time,
70
+ idempotency_key: T.nilable(String),
71
+ program_id: String,
72
+ redirect_url: String,
73
+ session_url: T.nilable(String),
74
+ status: Increase::EntityOnboardingSession::Status::OrSymbol,
75
+ type: Increase::EntityOnboardingSession::Type::OrSymbol
76
+ ).returns(T.attached_class)
77
+ end
78
+ def self.new(
79
+ # The Entity Onboarding Session's identifier.
80
+ id:,
81
+ # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
82
+ # the Entity Onboarding Session was created.
83
+ created_at:,
84
+ # The identifier of the Entity associated with this session, if one has been
85
+ # created or was provided when creating the session.
86
+ entity_id:,
87
+ # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
88
+ # the Entity Onboarding Session will expire.
89
+ expires_at:,
90
+ # The idempotency key you chose for this object. This value is unique across
91
+ # Increase and is used to ensure that a request is only processed once. Learn more
92
+ # about [idempotency](https://increase.com/documentation/idempotency-keys).
93
+ idempotency_key:,
94
+ # The identifier of the Program the Entity will be onboarded to.
95
+ program_id:,
96
+ # The URL to redirect to after the onboarding session is complete. Increase will
97
+ # include the query parameters `entity_onboarding_session_id` and `entity_id` when
98
+ # redirecting.
99
+ redirect_url:,
100
+ # The URL containing the onboarding form. You should share this link with your
101
+ # customer. Only present when the session is active.
102
+ session_url:,
103
+ # The status of the onboarding session.
104
+ status:,
105
+ # A constant representing the object's type. For this resource it will always be
106
+ # `entity_onboarding_session`.
107
+ type:
108
+ )
109
+ end
110
+
111
+ sig do
112
+ override.returns(
113
+ {
114
+ id: String,
115
+ created_at: Time,
116
+ entity_id: T.nilable(String),
117
+ expires_at: Time,
118
+ idempotency_key: T.nilable(String),
119
+ program_id: String,
120
+ redirect_url: String,
121
+ session_url: T.nilable(String),
122
+ status: Increase::EntityOnboardingSession::Status::TaggedSymbol,
123
+ type: Increase::EntityOnboardingSession::Type::TaggedSymbol
124
+ }
125
+ )
126
+ end
127
+ def to_hash
128
+ end
129
+
130
+ # The status of the onboarding session.
131
+ module Status
132
+ extend Increase::Internal::Type::Enum
133
+
134
+ TaggedSymbol =
135
+ T.type_alias do
136
+ T.all(Symbol, Increase::EntityOnboardingSession::Status)
137
+ end
138
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
139
+
140
+ # The Entity Onboarding Session is active.
141
+ ACTIVE =
142
+ T.let(
143
+ :active,
144
+ Increase::EntityOnboardingSession::Status::TaggedSymbol
145
+ )
146
+
147
+ # The Entity Onboarding Session has expired.
148
+ EXPIRED =
149
+ T.let(
150
+ :expired,
151
+ Increase::EntityOnboardingSession::Status::TaggedSymbol
152
+ )
153
+
154
+ sig do
155
+ override.returns(
156
+ T::Array[Increase::EntityOnboardingSession::Status::TaggedSymbol]
157
+ )
158
+ end
159
+ def self.values
160
+ end
161
+ end
162
+
163
+ # A constant representing the object's type. For this resource it will always be
164
+ # `entity_onboarding_session`.
165
+ module Type
166
+ extend Increase::Internal::Type::Enum
167
+
168
+ TaggedSymbol =
169
+ T.type_alias do
170
+ T.all(Symbol, Increase::EntityOnboardingSession::Type)
171
+ end
172
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
173
+
174
+ ENTITY_ONBOARDING_SESSION =
175
+ T.let(
176
+ :entity_onboarding_session,
177
+ Increase::EntityOnboardingSession::Type::TaggedSymbol
178
+ )
179
+
180
+ sig do
181
+ override.returns(
182
+ T::Array[Increase::EntityOnboardingSession::Type::TaggedSymbol]
183
+ )
184
+ end
185
+ def self.values
186
+ end
187
+ end
188
+ end
189
+ end
190
+ end
@@ -0,0 +1,73 @@
1
+ # typed: strong
2
+
3
+ module Increase
4
+ module Models
5
+ class EntityOnboardingSessionCreateParams < 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::EntityOnboardingSessionCreateParams,
13
+ Increase::Internal::AnyHash
14
+ )
15
+ end
16
+
17
+ # The identifier of the Program the Entity will be onboarded to.
18
+ sig { returns(String) }
19
+ attr_accessor :program_id
20
+
21
+ # The URL to redirect the customer to after they complete the onboarding form. The
22
+ # redirect will include `entity_onboarding_session_id` and `entity_id` query
23
+ # parameters.
24
+ sig { returns(String) }
25
+ attr_accessor :redirect_url
26
+
27
+ # The identifier of an existing Entity to associate with the onboarding session.
28
+ # If provided, the onboarding form will display any outstanding tasks required to
29
+ # complete the Entity's onboarding.
30
+ sig { returns(T.nilable(String)) }
31
+ attr_reader :entity_id
32
+
33
+ sig { params(entity_id: String).void }
34
+ attr_writer :entity_id
35
+
36
+ sig do
37
+ params(
38
+ program_id: String,
39
+ redirect_url: String,
40
+ entity_id: String,
41
+ request_options: Increase::RequestOptions::OrHash
42
+ ).returns(T.attached_class)
43
+ end
44
+ def self.new(
45
+ # The identifier of the Program the Entity will be onboarded to.
46
+ program_id:,
47
+ # The URL to redirect the customer to after they complete the onboarding form. The
48
+ # redirect will include `entity_onboarding_session_id` and `entity_id` query
49
+ # parameters.
50
+ redirect_url:,
51
+ # The identifier of an existing Entity to associate with the onboarding session.
52
+ # If provided, the onboarding form will display any outstanding tasks required to
53
+ # complete the Entity's onboarding.
54
+ entity_id: nil,
55
+ request_options: {}
56
+ )
57
+ end
58
+
59
+ sig do
60
+ override.returns(
61
+ {
62
+ program_id: String,
63
+ redirect_url: String,
64
+ entity_id: String,
65
+ request_options: Increase::RequestOptions
66
+ }
67
+ )
68
+ end
69
+ def to_hash
70
+ end
71
+ end
72
+ end
73
+ end
@@ -0,0 +1,46 @@
1
+ # typed: strong
2
+
3
+ module Increase
4
+ module Models
5
+ class EntityOnboardingSessionExpireParams < 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::EntityOnboardingSessionExpireParams,
13
+ Increase::Internal::AnyHash
14
+ )
15
+ end
16
+
17
+ # The identifier of the Entity Onboarding Session to expire.
18
+ sig { returns(String) }
19
+ attr_accessor :entity_onboarding_session_id
20
+
21
+ sig do
22
+ params(
23
+ entity_onboarding_session_id: String,
24
+ request_options: Increase::RequestOptions::OrHash
25
+ ).returns(T.attached_class)
26
+ end
27
+ def self.new(
28
+ # The identifier of the Entity Onboarding Session to expire.
29
+ entity_onboarding_session_id:,
30
+ request_options: {}
31
+ )
32
+ end
33
+
34
+ sig do
35
+ override.returns(
36
+ {
37
+ entity_onboarding_session_id: String,
38
+ request_options: Increase::RequestOptions
39
+ }
40
+ )
41
+ end
42
+ def to_hash
43
+ end
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,194 @@
1
+ # typed: strong
2
+
3
+ module Increase
4
+ module Models
5
+ class EntityOnboardingSessionListParams < 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::EntityOnboardingSessionListParams,
13
+ Increase::Internal::AnyHash
14
+ )
15
+ end
16
+
17
+ # Return the page of entries after this one.
18
+ sig { returns(T.nilable(String)) }
19
+ attr_reader :cursor
20
+
21
+ sig { params(cursor: String).void }
22
+ attr_writer :cursor
23
+
24
+ # Filter records to the one with the specified `idempotency_key` you chose for
25
+ # that object. This value is unique across Increase and is used to ensure that a
26
+ # request is only processed once. Learn more about
27
+ # [idempotency](https://increase.com/documentation/idempotency-keys).
28
+ sig { returns(T.nilable(String)) }
29
+ attr_reader :idempotency_key
30
+
31
+ sig { params(idempotency_key: String).void }
32
+ attr_writer :idempotency_key
33
+
34
+ # Limit the size of the list that is returned. The default (and maximum) is 100
35
+ # objects.
36
+ sig { returns(T.nilable(Integer)) }
37
+ attr_reader :limit
38
+
39
+ sig { params(limit: Integer).void }
40
+ attr_writer :limit
41
+
42
+ sig do
43
+ returns(T.nilable(Increase::EntityOnboardingSessionListParams::Status))
44
+ end
45
+ attr_reader :status
46
+
47
+ sig do
48
+ params(
49
+ status: Increase::EntityOnboardingSessionListParams::Status::OrHash
50
+ ).void
51
+ end
52
+ attr_writer :status
53
+
54
+ sig do
55
+ params(
56
+ cursor: String,
57
+ idempotency_key: String,
58
+ limit: Integer,
59
+ status: Increase::EntityOnboardingSessionListParams::Status::OrHash,
60
+ request_options: Increase::RequestOptions::OrHash
61
+ ).returns(T.attached_class)
62
+ end
63
+ def self.new(
64
+ # Return the page of entries after this one.
65
+ cursor: nil,
66
+ # Filter records to the one with the specified `idempotency_key` you chose for
67
+ # that object. This value is unique across Increase and is used to ensure that a
68
+ # request is only processed once. Learn more about
69
+ # [idempotency](https://increase.com/documentation/idempotency-keys).
70
+ idempotency_key: nil,
71
+ # Limit the size of the list that is returned. The default (and maximum) is 100
72
+ # objects.
73
+ limit: nil,
74
+ status: nil,
75
+ request_options: {}
76
+ )
77
+ end
78
+
79
+ sig do
80
+ override.returns(
81
+ {
82
+ cursor: String,
83
+ idempotency_key: String,
84
+ limit: Integer,
85
+ status: Increase::EntityOnboardingSessionListParams::Status,
86
+ request_options: Increase::RequestOptions
87
+ }
88
+ )
89
+ end
90
+ def to_hash
91
+ end
92
+
93
+ class Status < Increase::Internal::Type::BaseModel
94
+ OrHash =
95
+ T.type_alias do
96
+ T.any(
97
+ Increase::EntityOnboardingSessionListParams::Status,
98
+ Increase::Internal::AnyHash
99
+ )
100
+ end
101
+
102
+ # Filter Entity Onboarding Session for those with the specified status or
103
+ # statuses. For GET requests, this should be encoded as a comma-delimited string,
104
+ # such as `?in=one,two,three`.
105
+ sig do
106
+ returns(
107
+ T.nilable(
108
+ T::Array[
109
+ Increase::EntityOnboardingSessionListParams::Status::In::OrSymbol
110
+ ]
111
+ )
112
+ )
113
+ end
114
+ attr_reader :in_
115
+
116
+ sig do
117
+ params(
118
+ in_:
119
+ T::Array[
120
+ Increase::EntityOnboardingSessionListParams::Status::In::OrSymbol
121
+ ]
122
+ ).void
123
+ end
124
+ attr_writer :in_
125
+
126
+ sig do
127
+ params(
128
+ in_:
129
+ T::Array[
130
+ Increase::EntityOnboardingSessionListParams::Status::In::OrSymbol
131
+ ]
132
+ ).returns(T.attached_class)
133
+ end
134
+ def self.new(
135
+ # Filter Entity Onboarding Session for those with the specified status or
136
+ # statuses. For GET requests, this should be encoded as a comma-delimited string,
137
+ # such as `?in=one,two,three`.
138
+ in_: nil
139
+ )
140
+ end
141
+
142
+ sig do
143
+ override.returns(
144
+ {
145
+ in_:
146
+ T::Array[
147
+ Increase::EntityOnboardingSessionListParams::Status::In::OrSymbol
148
+ ]
149
+ }
150
+ )
151
+ end
152
+ def to_hash
153
+ end
154
+
155
+ module In
156
+ extend Increase::Internal::Type::Enum
157
+
158
+ TaggedSymbol =
159
+ T.type_alias do
160
+ T.all(
161
+ Symbol,
162
+ Increase::EntityOnboardingSessionListParams::Status::In
163
+ )
164
+ end
165
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
166
+
167
+ # The Entity Onboarding Session is active.
168
+ ACTIVE =
169
+ T.let(
170
+ :active,
171
+ Increase::EntityOnboardingSessionListParams::Status::In::TaggedSymbol
172
+ )
173
+
174
+ # The Entity Onboarding Session has expired.
175
+ EXPIRED =
176
+ T.let(
177
+ :expired,
178
+ Increase::EntityOnboardingSessionListParams::Status::In::TaggedSymbol
179
+ )
180
+
181
+ sig do
182
+ override.returns(
183
+ T::Array[
184
+ Increase::EntityOnboardingSessionListParams::Status::In::TaggedSymbol
185
+ ]
186
+ )
187
+ end
188
+ def self.values
189
+ end
190
+ end
191
+ end
192
+ end
193
+ end
194
+ end
@@ -0,0 +1,46 @@
1
+ # typed: strong
2
+
3
+ module Increase
4
+ module Models
5
+ class EntityOnboardingSessionRetrieveParams < 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::EntityOnboardingSessionRetrieveParams,
13
+ Increase::Internal::AnyHash
14
+ )
15
+ end
16
+
17
+ # The identifier of the Entity Onboarding Session.
18
+ sig { returns(String) }
19
+ attr_accessor :entity_onboarding_session_id
20
+
21
+ sig do
22
+ params(
23
+ entity_onboarding_session_id: String,
24
+ request_options: Increase::RequestOptions::OrHash
25
+ ).returns(T.attached_class)
26
+ end
27
+ def self.new(
28
+ # The identifier of the Entity Onboarding Session.
29
+ entity_onboarding_session_id:,
30
+ request_options: {}
31
+ )
32
+ end
33
+
34
+ sig do
35
+ override.returns(
36
+ {
37
+ entity_onboarding_session_id: String,
38
+ request_options: Increase::RequestOptions
39
+ }
40
+ )
41
+ end
42
+ def to_hash
43
+ end
44
+ end
45
+ end
46
+ end