finch-api 0.1.0.pre.alpha.4 → 0.1.0.pre.alpha.5
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 +2 -8
- data/lib/finch-api/client.rb +1 -1
- data/lib/finch-api/individuals_page.rb +4 -4
- data/lib/finch-api/models/access_token_create_params.rb +1 -1
- data/lib/finch-api/models/account_disconnect_params.rb +1 -1
- data/lib/finch-api/models/account_introspect_params.rb +1 -1
- data/lib/finch-api/models/connect/session_new_params.rb +1 -1
- data/lib/finch-api/models/connect/session_reauthenticate_params.rb +1 -1
- data/lib/finch-api/models/hris/benefit_create_params.rb +1 -1
- data/lib/finch-api/models/hris/benefit_list_params.rb +1 -1
- data/lib/finch-api/models/hris/benefit_list_supported_benefits_params.rb +1 -1
- data/lib/finch-api/models/hris/benefit_retrieve_params.rb +1 -1
- data/lib/finch-api/models/hris/benefit_update_params.rb +1 -1
- data/lib/finch-api/models/hris/benefits/individual_enroll_many_params.rb +1 -1
- data/lib/finch-api/models/hris/benefits/individual_enrolled_ids_params.rb +1 -1
- data/lib/finch-api/models/hris/benefits/individual_retrieve_many_benefits_params.rb +1 -1
- data/lib/finch-api/models/hris/benefits/individual_unenroll_many_params.rb +1 -1
- data/lib/finch-api/models/hris/company_retrieve_params.rb +1 -1
- data/lib/finch-api/models/hris/directory_list_individuals_params.rb +1 -1
- data/lib/finch-api/models/hris/directory_list_params.rb +1 -1
- data/lib/finch-api/models/hris/document_list_params.rb +1 -1
- data/lib/finch-api/models/hris/document_retreive_params.rb +1 -1
- data/lib/finch-api/models/hris/employment_retrieve_many_params.rb +1 -1
- data/lib/finch-api/models/hris/individual_retrieve_many_params.rb +1 -1
- data/lib/finch-api/models/hris/pay_statement_retrieve_many_params.rb +1 -1
- data/lib/finch-api/models/hris/payment_list_params.rb +1 -1
- data/lib/finch-api/models/jobs/automated_create_params.rb +1 -1
- data/lib/finch-api/models/jobs/automated_list_params.rb +1 -1
- data/lib/finch-api/models/jobs/automated_retrieve_params.rb +1 -1
- data/lib/finch-api/models/jobs/manual_retrieve_params.rb +1 -1
- data/lib/finch-api/models/payroll/pay_group_list_params.rb +1 -1
- data/lib/finch-api/models/payroll/pay_group_retrieve_params.rb +1 -1
- data/lib/finch-api/models/provider_list_params.rb +1 -1
- data/lib/finch-api/models/request_forwarding_forward_params.rb +1 -1
- data/lib/finch-api/models/sandbox/company_update_params.rb +1 -1
- data/lib/finch-api/models/sandbox/connection_create_params.rb +1 -1
- data/lib/finch-api/models/sandbox/connections/account_create_params.rb +1 -1
- data/lib/finch-api/models/sandbox/connections/account_update_params.rb +1 -1
- data/lib/finch-api/models/sandbox/directory_create_params.rb +1 -1
- data/lib/finch-api/models/sandbox/employment_update_params.rb +1 -1
- data/lib/finch-api/models/sandbox/individual_update_params.rb +1 -1
- data/lib/finch-api/models/sandbox/job_create_params.rb +1 -1
- data/lib/finch-api/models/sandbox/jobs/configuration_retrieve_params.rb +1 -1
- data/lib/finch-api/models/sandbox/jobs/configuration_update_params.rb +1 -1
- data/lib/finch-api/models/sandbox/payment_create_params.rb +1 -1
- data/lib/finch-api/page.rb +4 -4
- data/lib/finch-api/request_options.rb +0 -33
- data/lib/finch-api/responses_page.rb +3 -3
- data/lib/finch-api/single_page.rb +3 -3
- data/lib/finch-api/transport/base_client.rb +459 -0
- data/lib/finch-api/transport/pooled_net_requester.rb +182 -0
- data/lib/finch-api/type/array_of.rb +110 -0
- data/lib/finch-api/type/base_model.rb +355 -0
- data/lib/finch-api/type/base_page.rb +61 -0
- data/lib/finch-api/type/boolean_model.rb +52 -0
- data/lib/finch-api/type/converter.rb +211 -0
- data/lib/finch-api/type/enum.rb +105 -0
- data/lib/finch-api/type/hash_of.rb +136 -0
- data/lib/finch-api/type/request_parameters.rb +38 -0
- data/lib/finch-api/type/union.rb +204 -0
- data/lib/finch-api/type/unknown.rb +56 -0
- data/lib/finch-api/type.rb +23 -0
- data/lib/finch-api/version.rb +1 -1
- data/lib/finch-api.rb +13 -4
- data/rbi/lib/finch-api/client.rbi +1 -1
- data/rbi/lib/finch-api/individuals_page.rbi +1 -1
- data/rbi/lib/finch-api/models/access_token_create_params.rbi +1 -1
- data/rbi/lib/finch-api/models/account_disconnect_params.rbi +1 -1
- data/rbi/lib/finch-api/models/account_introspect_params.rbi +1 -1
- data/rbi/lib/finch-api/models/connect/session_new_params.rbi +1 -1
- data/rbi/lib/finch-api/models/connect/session_reauthenticate_params.rbi +1 -1
- data/rbi/lib/finch-api/models/hris/benefit_create_params.rbi +1 -1
- data/rbi/lib/finch-api/models/hris/benefit_list_params.rbi +1 -1
- data/rbi/lib/finch-api/models/hris/benefit_list_supported_benefits_params.rbi +1 -1
- data/rbi/lib/finch-api/models/hris/benefit_retrieve_params.rbi +1 -1
- data/rbi/lib/finch-api/models/hris/benefit_update_params.rbi +1 -1
- data/rbi/lib/finch-api/models/hris/benefits/individual_enroll_many_params.rbi +1 -1
- data/rbi/lib/finch-api/models/hris/benefits/individual_enrolled_ids_params.rbi +1 -1
- data/rbi/lib/finch-api/models/hris/benefits/individual_retrieve_many_benefits_params.rbi +1 -1
- data/rbi/lib/finch-api/models/hris/benefits/individual_unenroll_many_params.rbi +1 -1
- data/rbi/lib/finch-api/models/hris/company_retrieve_params.rbi +1 -1
- data/rbi/lib/finch-api/models/hris/directory_list_individuals_params.rbi +1 -1
- data/rbi/lib/finch-api/models/hris/directory_list_params.rbi +1 -1
- data/rbi/lib/finch-api/models/hris/document_list_params.rbi +1 -1
- data/rbi/lib/finch-api/models/hris/document_retreive_params.rbi +1 -1
- data/rbi/lib/finch-api/models/hris/employment_retrieve_many_params.rbi +1 -1
- data/rbi/lib/finch-api/models/hris/individual_retrieve_many_params.rbi +1 -1
- data/rbi/lib/finch-api/models/hris/pay_statement_retrieve_many_params.rbi +1 -1
- data/rbi/lib/finch-api/models/hris/payment_list_params.rbi +1 -1
- data/rbi/lib/finch-api/models/jobs/automated_create_params.rbi +1 -1
- data/rbi/lib/finch-api/models/jobs/automated_list_params.rbi +1 -1
- data/rbi/lib/finch-api/models/jobs/automated_retrieve_params.rbi +1 -1
- data/rbi/lib/finch-api/models/jobs/manual_retrieve_params.rbi +1 -1
- data/rbi/lib/finch-api/models/payroll/pay_group_list_params.rbi +1 -1
- data/rbi/lib/finch-api/models/payroll/pay_group_retrieve_params.rbi +1 -1
- data/rbi/lib/finch-api/models/provider_list_params.rbi +1 -1
- data/rbi/lib/finch-api/models/request_forwarding_forward_params.rbi +1 -1
- data/rbi/lib/finch-api/models/sandbox/company_update_params.rbi +1 -1
- data/rbi/lib/finch-api/models/sandbox/connection_create_params.rbi +1 -1
- data/rbi/lib/finch-api/models/sandbox/connections/account_create_params.rbi +1 -1
- data/rbi/lib/finch-api/models/sandbox/connections/account_update_params.rbi +1 -1
- data/rbi/lib/finch-api/models/sandbox/directory_create_params.rbi +1 -1
- data/rbi/lib/finch-api/models/sandbox/directory_create_response.rbi +1 -1
- data/rbi/lib/finch-api/models/sandbox/employment_update_params.rbi +1 -1
- data/rbi/lib/finch-api/models/sandbox/individual_update_params.rbi +1 -1
- data/rbi/lib/finch-api/models/sandbox/job_create_params.rbi +1 -1
- data/rbi/lib/finch-api/models/sandbox/jobs/configuration_retrieve_params.rbi +1 -1
- data/rbi/lib/finch-api/models/sandbox/jobs/configuration_retrieve_response.rbi +4 -1
- data/rbi/lib/finch-api/models/sandbox/jobs/configuration_update_params.rbi +1 -1
- data/rbi/lib/finch-api/models/sandbox/payment_create_params.rbi +1 -1
- data/rbi/lib/finch-api/page.rbi +1 -1
- data/rbi/lib/finch-api/request_options.rbi +0 -15
- data/rbi/lib/finch-api/responses_page.rbi +1 -1
- data/rbi/lib/finch-api/single_page.rbi +1 -1
- data/rbi/lib/finch-api/transport/base_client.rbi +204 -0
- data/rbi/lib/finch-api/transport/pooled_net_requester.rbi +64 -0
- data/rbi/lib/finch-api/type/array_of.rbi +82 -0
- data/rbi/lib/finch-api/type/base_model.rbi +191 -0
- data/rbi/lib/finch-api/type/base_page.rbi +38 -0
- data/rbi/lib/finch-api/type/boolean_model.rbi +41 -0
- data/rbi/lib/finch-api/type/converter.rbi +101 -0
- data/rbi/lib/finch-api/type/enum.rbi +58 -0
- data/rbi/lib/finch-api/type/hash_of.rbi +86 -0
- data/rbi/lib/finch-api/type/request_parameters.rbi +20 -0
- data/rbi/lib/finch-api/type/union.rbi +66 -0
- data/rbi/lib/finch-api/type/unknown.rbi +37 -0
- data/rbi/lib/finch-api/type.rbi +23 -0
- data/rbi/lib/finch-api/version.rbi +1 -1
- data/sig/finch-api/client.rbs +1 -1
- data/sig/finch-api/individuals_page.rbs +1 -1
- data/sig/finch-api/models/access_token_create_params.rbs +1 -1
- data/sig/finch-api/models/account_disconnect_params.rbs +1 -1
- data/sig/finch-api/models/account_introspect_params.rbs +1 -1
- data/sig/finch-api/models/connect/session_new_params.rbs +1 -1
- data/sig/finch-api/models/connect/session_reauthenticate_params.rbs +1 -1
- data/sig/finch-api/models/hris/benefit_create_params.rbs +1 -1
- data/sig/finch-api/models/hris/benefit_list_params.rbs +1 -1
- data/sig/finch-api/models/hris/benefit_list_supported_benefits_params.rbs +1 -1
- data/sig/finch-api/models/hris/benefit_retrieve_params.rbs +1 -1
- data/sig/finch-api/models/hris/benefit_update_params.rbs +1 -1
- data/sig/finch-api/models/hris/benefits/individual_enroll_many_params.rbs +1 -1
- data/sig/finch-api/models/hris/benefits/individual_enrolled_ids_params.rbs +1 -1
- data/sig/finch-api/models/hris/benefits/individual_retrieve_many_benefits_params.rbs +1 -1
- data/sig/finch-api/models/hris/benefits/individual_unenroll_many_params.rbs +1 -1
- data/sig/finch-api/models/hris/company_retrieve_params.rbs +1 -1
- data/sig/finch-api/models/hris/directory_list_individuals_params.rbs +1 -1
- data/sig/finch-api/models/hris/directory_list_params.rbs +1 -1
- data/sig/finch-api/models/hris/document_list_params.rbs +1 -1
- data/sig/finch-api/models/hris/document_retreive_params.rbs +1 -1
- data/sig/finch-api/models/hris/employment_retrieve_many_params.rbs +1 -1
- data/sig/finch-api/models/hris/individual_retrieve_many_params.rbs +1 -1
- data/sig/finch-api/models/hris/pay_statement_retrieve_many_params.rbs +1 -1
- data/sig/finch-api/models/hris/payment_list_params.rbs +1 -1
- data/sig/finch-api/models/jobs/automated_create_params.rbs +1 -1
- data/sig/finch-api/models/jobs/automated_list_params.rbs +1 -1
- data/sig/finch-api/models/jobs/automated_retrieve_params.rbs +1 -1
- data/sig/finch-api/models/jobs/manual_retrieve_params.rbs +1 -1
- data/sig/finch-api/models/payroll/pay_group_list_params.rbs +1 -1
- data/sig/finch-api/models/payroll/pay_group_retrieve_params.rbs +1 -1
- data/sig/finch-api/models/provider_list_params.rbs +1 -1
- data/sig/finch-api/models/request_forwarding_forward_params.rbs +1 -1
- data/sig/finch-api/models/sandbox/company_update_params.rbs +1 -1
- data/sig/finch-api/models/sandbox/connection_create_params.rbs +1 -1
- data/sig/finch-api/models/sandbox/connections/account_create_params.rbs +1 -1
- data/sig/finch-api/models/sandbox/connections/account_update_params.rbs +1 -1
- data/sig/finch-api/models/sandbox/directory_create_params.rbs +1 -1
- data/sig/finch-api/models/sandbox/employment_update_params.rbs +1 -1
- data/sig/finch-api/models/sandbox/individual_update_params.rbs +1 -1
- data/sig/finch-api/models/sandbox/job_create_params.rbs +1 -1
- data/sig/finch-api/models/sandbox/jobs/configuration_retrieve_params.rbs +1 -1
- data/sig/finch-api/models/sandbox/jobs/configuration_update_params.rbs +1 -1
- data/sig/finch-api/models/sandbox/payment_create_params.rbs +1 -1
- data/sig/finch-api/page.rbs +1 -1
- data/sig/finch-api/request_options.rbs +0 -10
- data/sig/finch-api/responses_page.rbs +1 -1
- data/sig/finch-api/single_page.rbs +1 -1
- data/sig/finch-api/transport/base_client.rbs +110 -0
- data/sig/finch-api/transport/pooled_net_requester.rbs +39 -0
- data/sig/finch-api/type/array_of.rbs +36 -0
- data/sig/finch-api/type/base_model.rbs +73 -0
- data/sig/finch-api/type/base_page.rbs +22 -0
- data/sig/finch-api/type/boolean_model.rbs +18 -0
- data/sig/finch-api/type/converter.rbs +36 -0
- data/sig/finch-api/type/enum.rbs +22 -0
- data/sig/finch-api/type/hash_of.rbs +36 -0
- data/sig/finch-api/type/request_parameters.rbs +13 -0
- data/sig/finch-api/type/union.rbs +37 -0
- data/sig/finch-api/type/unknown.rbs +18 -0
- data/sig/finch-api/type.rbs +22 -0
- data/sig/finch-api/version.rbs +1 -1
- metadata +40 -13
- data/lib/finch-api/base_client.rb +0 -457
- data/lib/finch-api/base_model.rb +0 -1174
- data/lib/finch-api/base_page.rb +0 -59
- data/lib/finch-api/pooled_net_requester.rb +0 -180
- data/rbi/lib/finch-api/base_client.rbi +0 -196
- data/rbi/lib/finch-api/base_model.rbi +0 -609
- data/rbi/lib/finch-api/base_page.rbi +0 -36
- data/rbi/lib/finch-api/pooled_net_requester.rbi +0 -59
- data/sig/finch-api/base_client.rbs +0 -106
- data/sig/finch-api/base_model.rbs +0 -248
- data/sig/finch-api/base_page.rbs +0 -20
- data/sig/finch-api/pooled_net_requester.rbs +0 -37
@@ -5,7 +5,7 @@ module FinchAPI
|
|
5
5
|
{ limit: Integer, offset: Integer } & FinchAPI::request_parameters
|
6
6
|
|
7
7
|
class AutomatedListParams < FinchAPI::BaseModel
|
8
|
-
extend FinchAPI::RequestParameters::Converter
|
8
|
+
extend FinchAPI::Type::RequestParameters::Converter
|
9
9
|
include FinchAPI::RequestParameters
|
10
10
|
|
11
11
|
attr_reader limit: Integer?
|
@@ -4,7 +4,7 @@ module FinchAPI
|
|
4
4
|
type automated_retrieve_params = { } & FinchAPI::request_parameters
|
5
5
|
|
6
6
|
class AutomatedRetrieveParams < FinchAPI::BaseModel
|
7
|
-
extend FinchAPI::RequestParameters::Converter
|
7
|
+
extend FinchAPI::Type::RequestParameters::Converter
|
8
8
|
include FinchAPI::RequestParameters
|
9
9
|
|
10
10
|
def initialize: (?request_options: FinchAPI::request_opts) -> void
|
@@ -4,7 +4,7 @@ module FinchAPI
|
|
4
4
|
type manual_retrieve_params = { } & FinchAPI::request_parameters
|
5
5
|
|
6
6
|
class ManualRetrieveParams < FinchAPI::BaseModel
|
7
|
-
extend FinchAPI::RequestParameters::Converter
|
7
|
+
extend FinchAPI::Type::RequestParameters::Converter
|
8
8
|
include FinchAPI::RequestParameters
|
9
9
|
|
10
10
|
def initialize: (?request_options: FinchAPI::request_opts) -> void
|
@@ -6,7 +6,7 @@ module FinchAPI
|
|
6
6
|
& FinchAPI::request_parameters
|
7
7
|
|
8
8
|
class PayGroupListParams < FinchAPI::BaseModel
|
9
|
-
extend FinchAPI::RequestParameters::Converter
|
9
|
+
extend FinchAPI::Type::RequestParameters::Converter
|
10
10
|
include FinchAPI::RequestParameters
|
11
11
|
|
12
12
|
attr_reader individual_id: String?
|
@@ -4,7 +4,7 @@ module FinchAPI
|
|
4
4
|
type pay_group_retrieve_params = { } & FinchAPI::request_parameters
|
5
5
|
|
6
6
|
class PayGroupRetrieveParams < FinchAPI::BaseModel
|
7
|
-
extend FinchAPI::RequestParameters::Converter
|
7
|
+
extend FinchAPI::Type::RequestParameters::Converter
|
8
8
|
include FinchAPI::RequestParameters
|
9
9
|
|
10
10
|
def initialize: (?request_options: FinchAPI::request_opts) -> void
|
@@ -3,7 +3,7 @@ module FinchAPI
|
|
3
3
|
type provider_list_params = { } & FinchAPI::request_parameters
|
4
4
|
|
5
5
|
class ProviderListParams < FinchAPI::BaseModel
|
6
|
-
extend FinchAPI::RequestParameters::Converter
|
6
|
+
extend FinchAPI::Type::RequestParameters::Converter
|
7
7
|
include FinchAPI::RequestParameters
|
8
8
|
|
9
9
|
def initialize: (?request_options: FinchAPI::request_opts) -> void
|
@@ -11,7 +11,7 @@ module FinchAPI
|
|
11
11
|
& FinchAPI::request_parameters
|
12
12
|
|
13
13
|
class RequestForwardingForwardParams < FinchAPI::BaseModel
|
14
|
-
extend FinchAPI::RequestParameters::Converter
|
14
|
+
extend FinchAPI::Type::RequestParameters::Converter
|
15
15
|
include FinchAPI::RequestParameters
|
16
16
|
|
17
17
|
attr_accessor method_: String
|
@@ -15,7 +15,7 @@ module FinchAPI
|
|
15
15
|
& FinchAPI::request_parameters
|
16
16
|
|
17
17
|
class CompanyUpdateParams < FinchAPI::BaseModel
|
18
|
-
extend FinchAPI::RequestParameters::Converter
|
18
|
+
extend FinchAPI::Type::RequestParameters::Converter
|
19
19
|
include FinchAPI::RequestParameters
|
20
20
|
|
21
21
|
attr_accessor accounts: ::Array[FinchAPI::Models::Sandbox::CompanyUpdateParams::Account]?
|
@@ -11,7 +11,7 @@ module FinchAPI
|
|
11
11
|
& FinchAPI::request_parameters
|
12
12
|
|
13
13
|
class ConnectionCreateParams < FinchAPI::BaseModel
|
14
|
-
extend FinchAPI::RequestParameters::Converter
|
14
|
+
extend FinchAPI::Type::RequestParameters::Converter
|
15
15
|
include FinchAPI::RequestParameters
|
16
16
|
|
17
17
|
attr_accessor provider_id: String
|
@@ -12,7 +12,7 @@ module FinchAPI
|
|
12
12
|
& FinchAPI::request_parameters
|
13
13
|
|
14
14
|
class AccountCreateParams < FinchAPI::BaseModel
|
15
|
-
extend FinchAPI::RequestParameters::Converter
|
15
|
+
extend FinchAPI::Type::RequestParameters::Converter
|
16
16
|
include FinchAPI::RequestParameters
|
17
17
|
|
18
18
|
attr_accessor company_id: String
|
@@ -7,7 +7,7 @@ module FinchAPI
|
|
7
7
|
& FinchAPI::request_parameters
|
8
8
|
|
9
9
|
class AccountUpdateParams < FinchAPI::BaseModel
|
10
|
-
extend FinchAPI::RequestParameters::Converter
|
10
|
+
extend FinchAPI::Type::RequestParameters::Converter
|
11
11
|
include FinchAPI::RequestParameters
|
12
12
|
|
13
13
|
attr_reader connection_status: FinchAPI::Models::connection_status_type?
|
@@ -8,7 +8,7 @@ module FinchAPI
|
|
8
8
|
& FinchAPI::request_parameters
|
9
9
|
|
10
10
|
class DirectoryCreateParams < FinchAPI::BaseModel
|
11
|
-
extend FinchAPI::RequestParameters::Converter
|
11
|
+
extend FinchAPI::Type::RequestParameters::Converter
|
12
12
|
include FinchAPI::RequestParameters
|
13
13
|
|
14
14
|
attr_reader body: ::Array[FinchAPI::Models::Sandbox::DirectoryCreateParams::Body]?
|
@@ -25,7 +25,7 @@ module FinchAPI
|
|
25
25
|
& FinchAPI::request_parameters
|
26
26
|
|
27
27
|
class EmploymentUpdateParams < FinchAPI::BaseModel
|
28
|
-
extend FinchAPI::RequestParameters::Converter
|
28
|
+
extend FinchAPI::Type::RequestParameters::Converter
|
29
29
|
include FinchAPI::RequestParameters
|
30
30
|
|
31
31
|
attr_accessor class_code: String?
|
@@ -19,7 +19,7 @@ module FinchAPI
|
|
19
19
|
& FinchAPI::request_parameters
|
20
20
|
|
21
21
|
class IndividualUpdateParams < FinchAPI::BaseModel
|
22
|
-
extend FinchAPI::RequestParameters::Converter
|
22
|
+
extend FinchAPI::Type::RequestParameters::Converter
|
23
23
|
include FinchAPI::RequestParameters
|
24
24
|
|
25
25
|
attr_accessor dob: String?
|
@@ -6,7 +6,7 @@ module FinchAPI
|
|
6
6
|
& FinchAPI::request_parameters
|
7
7
|
|
8
8
|
class JobCreateParams < FinchAPI::BaseModel
|
9
|
-
extend FinchAPI::RequestParameters::Converter
|
9
|
+
extend FinchAPI::Type::RequestParameters::Converter
|
10
10
|
include FinchAPI::RequestParameters
|
11
11
|
|
12
12
|
attr_accessor type: FinchAPI::Models::Sandbox::JobCreateParams::type_
|
@@ -5,7 +5,7 @@ module FinchAPI
|
|
5
5
|
type configuration_retrieve_params = { } & FinchAPI::request_parameters
|
6
6
|
|
7
7
|
class ConfigurationRetrieveParams < FinchAPI::BaseModel
|
8
|
-
extend FinchAPI::RequestParameters::Converter
|
8
|
+
extend FinchAPI::Type::RequestParameters::Converter
|
9
9
|
include FinchAPI::RequestParameters
|
10
10
|
|
11
11
|
def initialize: (?request_options: FinchAPI::request_opts) -> void
|
@@ -5,7 +5,7 @@ module FinchAPI
|
|
5
5
|
type configuration_update_params = { } & FinchAPI::request_parameters
|
6
6
|
|
7
7
|
class ConfigurationUpdateParams < FinchAPI::Models::Sandbox::Jobs::SandboxJobConfiguration
|
8
|
-
extend FinchAPI::RequestParameters::Converter
|
8
|
+
extend FinchAPI::Type::RequestParameters::Converter
|
9
9
|
include FinchAPI::RequestParameters
|
10
10
|
|
11
11
|
def initialize: (?request_options: FinchAPI::request_opts) -> void
|
@@ -10,7 +10,7 @@ module FinchAPI
|
|
10
10
|
& FinchAPI::request_parameters
|
11
11
|
|
12
12
|
class PaymentCreateParams < FinchAPI::BaseModel
|
13
|
-
extend FinchAPI::RequestParameters::Converter
|
13
|
+
extend FinchAPI::Type::RequestParameters::Converter
|
14
14
|
include FinchAPI::RequestParameters
|
15
15
|
|
16
16
|
attr_reader end_date: String?
|
data/sig/finch-api/page.rbs
CHANGED
@@ -2,16 +2,6 @@ module FinchAPI
|
|
2
2
|
type request_opts =
|
3
3
|
FinchAPI::RequestOptions | FinchAPI::request_options | ::Hash[Symbol, top]
|
4
4
|
|
5
|
-
type request_parameters = { request_options: FinchAPI::request_opts }
|
6
|
-
|
7
|
-
module RequestParameters
|
8
|
-
attr_accessor request_options: FinchAPI::request_opts
|
9
|
-
|
10
|
-
module Converter
|
11
|
-
def dump_request: (top params) -> [top, ::Hash[Symbol, top]]
|
12
|
-
end
|
13
|
-
end
|
14
|
-
|
15
5
|
type request_options =
|
16
6
|
{
|
17
7
|
idempotency_key: String?,
|
@@ -0,0 +1,110 @@
|
|
1
|
+
module FinchAPI
|
2
|
+
module Transport
|
3
|
+
class BaseClient
|
4
|
+
type request_components =
|
5
|
+
{
|
6
|
+
method: Symbol,
|
7
|
+
path: String | ::Array[String],
|
8
|
+
query: ::Hash[String, (::Array[String] | String)?]?,
|
9
|
+
headers: ::Hash[String, (String
|
10
|
+
| Integer
|
11
|
+
| ::Array[(String | Integer)?])?]?,
|
12
|
+
body: top?,
|
13
|
+
unwrap: Symbol?,
|
14
|
+
page: Class?,
|
15
|
+
stream: Class?,
|
16
|
+
model: FinchAPI::Type::Converter::input?,
|
17
|
+
options: FinchAPI::request_opts?
|
18
|
+
}
|
19
|
+
|
20
|
+
type request_input =
|
21
|
+
{
|
22
|
+
method: Symbol,
|
23
|
+
url: URI::Generic,
|
24
|
+
headers: ::Hash[String, String],
|
25
|
+
body: top,
|
26
|
+
max_retries: Integer,
|
27
|
+
timeout: Float
|
28
|
+
}
|
29
|
+
|
30
|
+
MAX_REDIRECTS: 20
|
31
|
+
|
32
|
+
PLATFORM_HEADERS: ::Hash[String, String]
|
33
|
+
|
34
|
+
def self.validate!: (
|
35
|
+
FinchAPI::Transport::BaseClient::request_components req
|
36
|
+
) -> void
|
37
|
+
|
38
|
+
def self.should_retry?: (
|
39
|
+
Integer status,
|
40
|
+
headers: ::Hash[String, String]
|
41
|
+
) -> bool
|
42
|
+
|
43
|
+
def self.follow_redirect: (
|
44
|
+
FinchAPI::Transport::BaseClient::request_input request,
|
45
|
+
status: Integer,
|
46
|
+
response_headers: ::Hash[String, String]
|
47
|
+
) -> FinchAPI::Transport::BaseClient::request_input
|
48
|
+
|
49
|
+
def self.reap_connection!: (
|
50
|
+
Integer | FinchAPI::APIConnectionError status,
|
51
|
+
stream: Enumerable[String]?
|
52
|
+
) -> void
|
53
|
+
|
54
|
+
# @api private
|
55
|
+
attr_accessor requester: FinchAPI::Transport::PooledNetRequester
|
56
|
+
|
57
|
+
def initialize: (
|
58
|
+
base_url: String,
|
59
|
+
?timeout: Float,
|
60
|
+
?max_retries: Integer,
|
61
|
+
?initial_retry_delay: Float,
|
62
|
+
?max_retry_delay: Float,
|
63
|
+
?headers: ::Hash[String, (String
|
64
|
+
| Integer
|
65
|
+
| ::Array[(String | Integer)?])?],
|
66
|
+
?idempotency_header: String?
|
67
|
+
) -> void
|
68
|
+
|
69
|
+
private def auth_headers: -> ::Hash[String, String]
|
70
|
+
|
71
|
+
private def generate_idempotency_key: -> String
|
72
|
+
|
73
|
+
private def build_request: (
|
74
|
+
FinchAPI::Transport::BaseClient::request_components req,
|
75
|
+
FinchAPI::request_options opts
|
76
|
+
) -> FinchAPI::Transport::BaseClient::request_input
|
77
|
+
|
78
|
+
private def retry_delay: (
|
79
|
+
::Hash[String, String] headers,
|
80
|
+
retry_count: Integer
|
81
|
+
) -> Float
|
82
|
+
|
83
|
+
private def send_request: (
|
84
|
+
FinchAPI::Transport::BaseClient::request_input request,
|
85
|
+
redirect_count: Integer,
|
86
|
+
retry_count: Integer,
|
87
|
+
send_retry_header: bool
|
88
|
+
) -> [Integer, top, Enumerable[String]]
|
89
|
+
|
90
|
+
def request:
|
91
|
+
(
|
92
|
+
Symbol method,
|
93
|
+
String | ::Array[String] path,
|
94
|
+
?query: ::Hash[String, (::Array[String] | String)?]?,
|
95
|
+
?headers: ::Hash[String, (String
|
96
|
+
| Integer
|
97
|
+
| ::Array[(String | Integer)?])?]?,
|
98
|
+
?body: top?,
|
99
|
+
?unwrap: Symbol?,
|
100
|
+
?page: Class?,
|
101
|
+
?stream: Class?,
|
102
|
+
?model: FinchAPI::Type::Converter::input?,
|
103
|
+
?options: FinchAPI::request_opts?
|
104
|
+
) -> top
|
105
|
+
| (FinchAPI::Transport::BaseClient::request_components req) -> top
|
106
|
+
|
107
|
+
def inspect: -> String
|
108
|
+
end
|
109
|
+
end
|
110
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
module FinchAPI
|
2
|
+
module Transport
|
3
|
+
class PooledNetRequester
|
4
|
+
type request =
|
5
|
+
{
|
6
|
+
method: Symbol,
|
7
|
+
url: URI::Generic,
|
8
|
+
headers: ::Hash[String, String],
|
9
|
+
body: top,
|
10
|
+
deadline: Float
|
11
|
+
}
|
12
|
+
|
13
|
+
KEEP_ALIVE_TIMEOUT: 30
|
14
|
+
|
15
|
+
def self.connect: (URI::Generic url) -> top
|
16
|
+
|
17
|
+
def self.calibrate_socket_timeout: (top conn, Float deadline) -> void
|
18
|
+
|
19
|
+
def self.build_request: (
|
20
|
+
FinchAPI::Transport::PooledNetRequester::request request
|
21
|
+
) {
|
22
|
+
(String arg0) -> void
|
23
|
+
} -> top
|
24
|
+
|
25
|
+
private def with_pool: (
|
26
|
+
URI::Generic url,
|
27
|
+
deadline: Float
|
28
|
+
) {
|
29
|
+
(top arg0) -> void
|
30
|
+
} -> void
|
31
|
+
|
32
|
+
def execute: (
|
33
|
+
FinchAPI::Transport::PooledNetRequester::request request
|
34
|
+
) -> [Integer, top, Enumerable[String]]
|
35
|
+
|
36
|
+
def initialize: (?size: Integer) -> void
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
module FinchAPI
|
2
|
+
module Type
|
3
|
+
class ArrayOf[Elem]
|
4
|
+
include FinchAPI::Type::Converter
|
5
|
+
|
6
|
+
def self.[]: (
|
7
|
+
::Hash[Symbol, top]
|
8
|
+
| ^-> FinchAPI::Type::Converter::input
|
9
|
+
| FinchAPI::Type::Converter::input type_info,
|
10
|
+
?::Hash[Symbol, top] spec
|
11
|
+
) -> instance
|
12
|
+
|
13
|
+
def ===: (top other) -> bool
|
14
|
+
|
15
|
+
def ==: (top other) -> bool
|
16
|
+
|
17
|
+
def coerce: (
|
18
|
+
Enumerable[Elem] | top value,
|
19
|
+
state: FinchAPI::Type::Converter::state
|
20
|
+
) -> (::Array[top] | top)
|
21
|
+
|
22
|
+
def dump: (Enumerable[Elem] | top value) -> (::Array[top] | top)
|
23
|
+
|
24
|
+
def item_type: -> Elem
|
25
|
+
|
26
|
+
def nilable?: -> bool
|
27
|
+
|
28
|
+
def initialize: (
|
29
|
+
::Hash[Symbol, top]
|
30
|
+
| ^-> FinchAPI::Type::Converter::input
|
31
|
+
| FinchAPI::Type::Converter::input type_info,
|
32
|
+
?::Hash[Symbol, top] spec
|
33
|
+
) -> void
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,73 @@
|
|
1
|
+
module FinchAPI
|
2
|
+
module Type
|
3
|
+
class BaseModel
|
4
|
+
extend FinchAPI::Type::Converter
|
5
|
+
|
6
|
+
type known_field =
|
7
|
+
{ mode: (:coerce | :dump)?, required: bool, nilable: bool }
|
8
|
+
|
9
|
+
def self.known_fields: -> ::Hash[Symbol, (FinchAPI::BaseModel::known_field
|
10
|
+
& { type_fn: (^-> FinchAPI::Type::Converter::input) })]
|
11
|
+
|
12
|
+
def self.fields: -> ::Hash[Symbol, (FinchAPI::BaseModel::known_field
|
13
|
+
& { type: FinchAPI::Type::Converter::input })]
|
14
|
+
|
15
|
+
private def self.add_field: (
|
16
|
+
Symbol name_sym,
|
17
|
+
required: bool,
|
18
|
+
type_info: {
|
19
|
+
const: (nil | bool | Integer | Float | Symbol)?,
|
20
|
+
enum: ^-> FinchAPI::Type::Converter::input?,
|
21
|
+
union: ^-> FinchAPI::Type::Converter::input?,
|
22
|
+
api_name: Symbol
|
23
|
+
}
|
24
|
+
| ^-> FinchAPI::Type::Converter::input
|
25
|
+
| FinchAPI::Type::Converter::input,
|
26
|
+
spec: ::Hash[Symbol, top]
|
27
|
+
) -> void
|
28
|
+
|
29
|
+
def self.required: (
|
30
|
+
Symbol name_sym,
|
31
|
+
::Hash[Symbol, top]
|
32
|
+
| ^-> FinchAPI::Type::Converter::input
|
33
|
+
| FinchAPI::Type::Converter::input type_info,
|
34
|
+
?::Hash[Symbol, top] spec
|
35
|
+
) -> void
|
36
|
+
|
37
|
+
def self.optional: (
|
38
|
+
Symbol name_sym,
|
39
|
+
::Hash[Symbol, top]
|
40
|
+
| ^-> FinchAPI::Type::Converter::input
|
41
|
+
| FinchAPI::Type::Converter::input type_info,
|
42
|
+
?::Hash[Symbol, top] spec
|
43
|
+
) -> void
|
44
|
+
|
45
|
+
private def self.request_only: { -> void } -> void
|
46
|
+
|
47
|
+
private def self.response_only: { -> void } -> void
|
48
|
+
|
49
|
+
def self.==: (top other) -> bool
|
50
|
+
|
51
|
+
def ==: (top other) -> bool
|
52
|
+
|
53
|
+
def self.coerce: (
|
54
|
+
FinchAPI::BaseModel | ::Hash[top, top] | top value,
|
55
|
+
state: FinchAPI::Type::Converter::state
|
56
|
+
) -> (instance | top)
|
57
|
+
|
58
|
+
def self.dump: (instance | top value) -> (::Hash[top, top] | top)
|
59
|
+
|
60
|
+
def []: (Symbol key) -> top?
|
61
|
+
|
62
|
+
def to_h: -> ::Hash[Symbol, top]
|
63
|
+
|
64
|
+
alias to_hash to_h
|
65
|
+
|
66
|
+
def deconstruct_keys: (::Array[Symbol]? keys) -> ::Hash[Symbol, top]
|
67
|
+
|
68
|
+
def initialize: (?::Hash[Symbol, top] | self data) -> void
|
69
|
+
|
70
|
+
def inspect: -> String
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
module FinchAPI
|
2
|
+
module Type
|
3
|
+
module BasePage[Elem]
|
4
|
+
def next_page?: -> bool
|
5
|
+
|
6
|
+
def next_page: -> self
|
7
|
+
|
8
|
+
def auto_paging_each: { (Elem arg0) -> void } -> void
|
9
|
+
|
10
|
+
def to_enum: -> Enumerable[Elem]
|
11
|
+
|
12
|
+
alias enum_for to_enum
|
13
|
+
|
14
|
+
def initialize: (
|
15
|
+
client: FinchAPI::Transport::BaseClient,
|
16
|
+
req: FinchAPI::Transport::BaseClient::request_components,
|
17
|
+
headers: ::Hash[String, String],
|
18
|
+
page_data: top
|
19
|
+
) -> void
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module FinchAPI
|
2
|
+
module Type
|
3
|
+
class BooleanModel
|
4
|
+
extend FinchAPI::Type::Converter
|
5
|
+
|
6
|
+
def self.===: (top other) -> bool
|
7
|
+
|
8
|
+
def self.==: (top other) -> bool
|
9
|
+
|
10
|
+
def self.coerce: (
|
11
|
+
bool | top value,
|
12
|
+
state: FinchAPI::Type::Converter::state
|
13
|
+
) -> (bool | top)
|
14
|
+
|
15
|
+
def self.dump: (bool | top value) -> (bool | top)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
module FinchAPI
|
2
|
+
module Type
|
3
|
+
module Converter
|
4
|
+
type input = FinchAPI::Type::Converter | Class
|
5
|
+
|
6
|
+
type state =
|
7
|
+
{
|
8
|
+
strictness: bool | :strong,
|
9
|
+
exactness: { yes: Integer, no: Integer, maybe: Integer },
|
10
|
+
branched: Integer
|
11
|
+
}
|
12
|
+
|
13
|
+
def coerce: (top value, state: FinchAPI::Type::Converter::state) -> top
|
14
|
+
|
15
|
+
def dump: (top value) -> top
|
16
|
+
|
17
|
+
def self.type_info: (
|
18
|
+
{
|
19
|
+
const: (nil | bool | Integer | Float | Symbol)?,
|
20
|
+
enum: ^-> FinchAPI::Type::Converter::input?,
|
21
|
+
union: ^-> FinchAPI::Type::Converter::input?
|
22
|
+
}
|
23
|
+
| ^-> FinchAPI::Type::Converter::input
|
24
|
+
| FinchAPI::Type::Converter::input spec
|
25
|
+
) -> (^-> top)
|
26
|
+
|
27
|
+
def self.coerce: (
|
28
|
+
FinchAPI::Type::Converter::input target,
|
29
|
+
top value,
|
30
|
+
?state: FinchAPI::Type::Converter::state
|
31
|
+
) -> top
|
32
|
+
|
33
|
+
def self.dump: (FinchAPI::Type::Converter::input target, top value) -> top
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
module FinchAPI
|
2
|
+
module Type
|
3
|
+
module Enum
|
4
|
+
include FinchAPI::Type::Converter
|
5
|
+
|
6
|
+
def self.values: -> ::Array[(nil | bool | Integer | Float | Symbol)]
|
7
|
+
|
8
|
+
private def self.finalize!: -> void
|
9
|
+
|
10
|
+
def ===: (top other) -> bool
|
11
|
+
|
12
|
+
def ==: (top other) -> bool
|
13
|
+
|
14
|
+
def coerce: (
|
15
|
+
String | Symbol | top value,
|
16
|
+
state: FinchAPI::Type::Converter::state
|
17
|
+
) -> (Symbol | top)
|
18
|
+
|
19
|
+
def dump: (Symbol | top value) -> (Symbol | top)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
module FinchAPI
|
2
|
+
module Type
|
3
|
+
class HashOf[Elem]
|
4
|
+
include FinchAPI::Type::Converter
|
5
|
+
|
6
|
+
def self.[]: (
|
7
|
+
::Hash[Symbol, top]
|
8
|
+
| ^-> FinchAPI::Type::Converter::input
|
9
|
+
| FinchAPI::Type::Converter::input type_info,
|
10
|
+
?::Hash[Symbol, top] spec
|
11
|
+
) -> instance
|
12
|
+
|
13
|
+
def ===: (top other) -> bool
|
14
|
+
|
15
|
+
def ==: (top other) -> bool
|
16
|
+
|
17
|
+
def coerce: (
|
18
|
+
::Hash[top, top] | top value,
|
19
|
+
state: FinchAPI::Type::Converter::state
|
20
|
+
) -> (::Hash[Symbol, top] | top)
|
21
|
+
|
22
|
+
def dump: (::Hash[top, top] | top value) -> (::Hash[Symbol, top] | top)
|
23
|
+
|
24
|
+
def item_type: -> Elem
|
25
|
+
|
26
|
+
def nilable?: -> bool
|
27
|
+
|
28
|
+
def initialize: (
|
29
|
+
::Hash[Symbol, top]
|
30
|
+
| ^-> FinchAPI::Type::Converter::input
|
31
|
+
| FinchAPI::Type::Converter::input type_info,
|
32
|
+
?::Hash[Symbol, top] spec
|
33
|
+
) -> void
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module FinchAPI
|
2
|
+
module Type
|
3
|
+
type request_parameters = { request_options: FinchAPI::request_opts }
|
4
|
+
|
5
|
+
module RequestParameters
|
6
|
+
attr_accessor request_options: FinchAPI::request_opts
|
7
|
+
|
8
|
+
module Converter
|
9
|
+
def dump_request: (top params) -> [top, ::Hash[Symbol, top]]
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|