lithic 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +33 -0
- data/README.md +10 -1
- data/lib/lithic/internal/transport/pooled_net_requester.rb +1 -1
- data/lib/lithic/internal/util.rb +1 -1
- data/lib/lithic/models/account_holder.rb +14 -5
- data/lib/lithic/models/account_holder_create_params.rb +10 -1
- data/lib/lithic/models/account_holder_simulate_enrollment_review_params.rb +1 -0
- data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +14 -5
- data/lib/lithic/models/account_holder_update_params.rb +10 -1
- data/lib/lithic/models/account_holder_update_response.rb +14 -5
- data/lib/lithic/models/account_holder_updated_webhook_event.rb +10 -1
- data/lib/lithic/models/auth_rules/conditional_ach_action_parameters.rb +3 -3
- data/lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb +47 -21
- data/lib/lithic/models/auth_rules/v2_list_results_params.rb +70 -0
- data/lib/lithic/models/auth_rules/v2_list_results_response.rb +740 -0
- data/lib/lithic/models/book_transfer_create_params.rb +9 -1
- data/lib/lithic/models/card_authorization_approval_request_webhook_event.rb +178 -25
- data/lib/lithic/models/kyb.rb +10 -1
- data/lib/lithic/models/parsed_webhook_event.rb +10 -1
- data/lib/lithic/resources/account_holders.rb +6 -2
- data/lib/lithic/resources/auth_rules/v2.rb +42 -0
- data/lib/lithic/resources/book_transfers.rb +3 -1
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +2 -0
- data/rbi/lithic/internal/util.rbi +1 -1
- data/rbi/lithic/models/account_holder.rbi +19 -6
- data/rbi/lithic/models/account_holder_create_params.rbi +13 -0
- data/rbi/lithic/models/account_holder_simulate_enrollment_review_params.rbi +5 -0
- data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +19 -6
- data/rbi/lithic/models/account_holder_update_params.rbi +13 -0
- data/rbi/lithic/models/account_holder_update_response.rbi +19 -6
- data/rbi/lithic/models/account_holder_updated_webhook_event.rbi +13 -0
- data/rbi/lithic/models/auth_rules/conditional_ach_action_parameters.rbi +3 -3
- data/rbi/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbi +69 -30
- data/rbi/lithic/models/auth_rules/v2_list_results_params.rbi +112 -0
- data/rbi/lithic/models/auth_rules/v2_list_results_response.rbi +1826 -0
- data/rbi/lithic/models/book_transfer_create_params.rbi +11 -0
- data/rbi/lithic/models/card_authorization_approval_request_webhook_event.rbi +337 -36
- data/rbi/lithic/models/kyb.rbi +13 -0
- data/rbi/lithic/models/parsed_webhook_event.rbi +13 -0
- data/rbi/lithic/resources/account_holders.rbi +8 -0
- data/rbi/lithic/resources/auth_rules/v2.rbi +42 -0
- data/rbi/lithic/resources/book_transfers.rbi +3 -0
- data/sig/lithic/models/account_holder.rbs +7 -0
- data/sig/lithic/models/account_holder_create_params.rbs +7 -0
- data/sig/lithic/models/account_holder_simulate_enrollment_review_params.rbs +2 -1
- data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +7 -0
- data/sig/lithic/models/account_holder_update_params.rbs +7 -0
- data/sig/lithic/models/account_holder_update_response.rbs +7 -0
- data/sig/lithic/models/account_holder_updated_webhook_event.rbs +7 -0
- data/sig/lithic/models/auth_rules/v2_list_results_params.rbs +65 -0
- data/sig/lithic/models/auth_rules/v2_list_results_response.rbs +752 -0
- data/sig/lithic/models/book_transfer_create_params.rbs +7 -0
- data/sig/lithic/models/card_authorization_approval_request_webhook_event.rbs +96 -0
- data/sig/lithic/models/kyb.rbs +7 -0
- data/sig/lithic/models/parsed_webhook_event.rbs +7 -0
- data/sig/lithic/resources/account_holders.rbs +2 -0
- data/sig/lithic/resources/auth_rules/v2.rbs +10 -0
- data/sig/lithic/resources/book_transfers.rbs +1 -0
- metadata +8 -2
|
@@ -14,6 +14,7 @@ module Lithic
|
|
|
14
14
|
exemption_type: Lithic::Models::AccountHolder::exemption_type,
|
|
15
15
|
external_id: String,
|
|
16
16
|
individual: Lithic::AccountHolder::Individual,
|
|
17
|
+
naics_code: String,
|
|
17
18
|
nature_of_business: String,
|
|
18
19
|
phone_number: String,
|
|
19
20
|
required_documents: ::Array[Lithic::RequiredDocument],
|
|
@@ -81,6 +82,10 @@ module Lithic
|
|
|
81
82
|
Lithic::AccountHolder::Individual
|
|
82
83
|
) -> Lithic::AccountHolder::Individual
|
|
83
84
|
|
|
85
|
+
attr_reader naics_code: String?
|
|
86
|
+
|
|
87
|
+
def naics_code=: (String) -> String
|
|
88
|
+
|
|
84
89
|
attr_reader nature_of_business: String?
|
|
85
90
|
|
|
86
91
|
def nature_of_business=: (String) -> String
|
|
@@ -136,6 +141,7 @@ module Lithic
|
|
|
136
141
|
?exemption_type: Lithic::Models::AccountHolder::exemption_type,
|
|
137
142
|
?external_id: String,
|
|
138
143
|
?individual: Lithic::AccountHolder::Individual,
|
|
144
|
+
?naics_code: String,
|
|
139
145
|
?nature_of_business: String,
|
|
140
146
|
?phone_number: String,
|
|
141
147
|
?required_documents: ::Array[Lithic::RequiredDocument],
|
|
@@ -159,6 +165,7 @@ module Lithic
|
|
|
159
165
|
exemption_type: Lithic::Models::AccountHolder::exemption_type,
|
|
160
166
|
external_id: String,
|
|
161
167
|
individual: Lithic::AccountHolder::Individual,
|
|
168
|
+
naics_code: String,
|
|
162
169
|
nature_of_business: String,
|
|
163
170
|
phone_number: String,
|
|
164
171
|
required_documents: ::Array[Lithic::RequiredDocument],
|
|
@@ -11,6 +11,7 @@ module Lithic
|
|
|
11
11
|
beneficial_owner_entities: ::Array[Lithic::AccountHolderCreateParams::BeneficialOwnerEntity],
|
|
12
12
|
external_id: String,
|
|
13
13
|
kyb_passed_timestamp: String,
|
|
14
|
+
naics_code: String,
|
|
14
15
|
website_url: String,
|
|
15
16
|
individual: Lithic::AccountHolderCreateParams::Individual,
|
|
16
17
|
kyc_passed_timestamp: String,
|
|
@@ -64,6 +65,10 @@ module Lithic
|
|
|
64
65
|
|
|
65
66
|
def kyb_passed_timestamp=: (String) -> String
|
|
66
67
|
|
|
68
|
+
attr_reader naics_code: String?
|
|
69
|
+
|
|
70
|
+
def naics_code=: (String) -> String
|
|
71
|
+
|
|
67
72
|
attr_reader website_url: String?
|
|
68
73
|
|
|
69
74
|
def website_url=: (String) -> String
|
|
@@ -107,6 +112,7 @@ module Lithic
|
|
|
107
112
|
?beneficial_owner_entities: ::Array[Lithic::AccountHolderCreateParams::BeneficialOwnerEntity],
|
|
108
113
|
?external_id: String,
|
|
109
114
|
?kyb_passed_timestamp: String,
|
|
115
|
+
?naics_code: String,
|
|
110
116
|
?website_url: String,
|
|
111
117
|
?kyc_passed_timestamp: String,
|
|
112
118
|
?business_account_token: String,
|
|
@@ -123,6 +129,7 @@ module Lithic
|
|
|
123
129
|
beneficial_owner_entities: ::Array[Lithic::AccountHolderCreateParams::BeneficialOwnerEntity],
|
|
124
130
|
external_id: String,
|
|
125
131
|
kyb_passed_timestamp: String,
|
|
132
|
+
naics_code: String,
|
|
126
133
|
website_url: String,
|
|
127
134
|
individual: Lithic::AccountHolderCreateParams::Individual,
|
|
128
135
|
kyc_passed_timestamp: String,
|
|
@@ -42,13 +42,14 @@ module Lithic
|
|
|
42
42
|
request_options: Lithic::RequestOptions
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
type status = :ACCEPTED | :REJECTED
|
|
45
|
+
type status = :ACCEPTED | :REJECTED | :PENDING_REVIEW
|
|
46
46
|
|
|
47
47
|
module Status
|
|
48
48
|
extend Lithic::Internal::Type::Enum
|
|
49
49
|
|
|
50
50
|
ACCEPTED: :ACCEPTED
|
|
51
51
|
REJECTED: :REJECTED
|
|
52
|
+
PENDING_REVIEW: :PENDING_REVIEW
|
|
52
53
|
|
|
53
54
|
def self?.values: -> ::Array[Lithic::Models::AccountHolderSimulateEnrollmentReviewParams::status]
|
|
54
55
|
end
|
|
@@ -14,6 +14,7 @@ module Lithic
|
|
|
14
14
|
exemption_type: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::exemption_type,
|
|
15
15
|
external_id: String,
|
|
16
16
|
individual: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual,
|
|
17
|
+
naics_code: String,
|
|
17
18
|
nature_of_business: String,
|
|
18
19
|
phone_number: String,
|
|
19
20
|
required_documents: ::Array[Lithic::RequiredDocument],
|
|
@@ -83,6 +84,10 @@ module Lithic
|
|
|
83
84
|
Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual
|
|
84
85
|
) -> Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual
|
|
85
86
|
|
|
87
|
+
attr_reader naics_code: String?
|
|
88
|
+
|
|
89
|
+
def naics_code=: (String) -> String
|
|
90
|
+
|
|
86
91
|
attr_reader nature_of_business: String?
|
|
87
92
|
|
|
88
93
|
def nature_of_business=: (String) -> String
|
|
@@ -138,6 +143,7 @@ module Lithic
|
|
|
138
143
|
?exemption_type: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::exemption_type,
|
|
139
144
|
?external_id: String,
|
|
140
145
|
?individual: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual,
|
|
146
|
+
?naics_code: String,
|
|
141
147
|
?nature_of_business: String,
|
|
142
148
|
?phone_number: String,
|
|
143
149
|
?required_documents: ::Array[Lithic::RequiredDocument],
|
|
@@ -161,6 +167,7 @@ module Lithic
|
|
|
161
167
|
exemption_type: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::exemption_type,
|
|
162
168
|
external_id: String,
|
|
163
169
|
individual: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual,
|
|
170
|
+
naics_code: String,
|
|
164
171
|
nature_of_business: String,
|
|
165
172
|
phone_number: String,
|
|
166
173
|
required_documents: ::Array[Lithic::RequiredDocument],
|
|
@@ -7,6 +7,7 @@ module Lithic
|
|
|
7
7
|
business_entity: Lithic::AccountHolderUpdateParams::BusinessEntity,
|
|
8
8
|
control_person: Lithic::AccountHolderUpdateParams::ControlPerson,
|
|
9
9
|
external_id: String,
|
|
10
|
+
naics_code: String,
|
|
10
11
|
nature_of_business: String,
|
|
11
12
|
website_url: String,
|
|
12
13
|
individual: Lithic::AccountHolderUpdateParams::Individual,
|
|
@@ -52,6 +53,10 @@ module Lithic
|
|
|
52
53
|
|
|
53
54
|
def external_id=: (String) -> String
|
|
54
55
|
|
|
56
|
+
attr_reader naics_code: String?
|
|
57
|
+
|
|
58
|
+
def naics_code=: (String) -> String
|
|
59
|
+
|
|
55
60
|
attr_reader nature_of_business: String?
|
|
56
61
|
|
|
57
62
|
def nature_of_business=: (String) -> String
|
|
@@ -100,6 +105,7 @@ module Lithic
|
|
|
100
105
|
?business_entity: Lithic::AccountHolderUpdateParams::BusinessEntity,
|
|
101
106
|
?control_person: Lithic::AccountHolderUpdateParams::ControlPerson,
|
|
102
107
|
?external_id: String,
|
|
108
|
+
?naics_code: String,
|
|
103
109
|
?nature_of_business: String,
|
|
104
110
|
?website_url: String,
|
|
105
111
|
?individual: Lithic::AccountHolderUpdateParams::Individual,
|
|
@@ -119,6 +125,7 @@ module Lithic
|
|
|
119
125
|
business_entity: Lithic::AccountHolderUpdateParams::BusinessEntity,
|
|
120
126
|
control_person: Lithic::AccountHolderUpdateParams::ControlPerson,
|
|
121
127
|
external_id: String,
|
|
128
|
+
naics_code: String,
|
|
122
129
|
nature_of_business: String,
|
|
123
130
|
website_url: String,
|
|
124
131
|
individual: Lithic::AccountHolderUpdateParams::Individual,
|
|
@@ -21,6 +21,7 @@ module Lithic
|
|
|
21
21
|
exemption_type: Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::exemption_type,
|
|
22
22
|
external_id: String,
|
|
23
23
|
individual: Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::Individual,
|
|
24
|
+
naics_code: String,
|
|
24
25
|
nature_of_business: String,
|
|
25
26
|
phone_number: String,
|
|
26
27
|
required_documents: ::Array[Lithic::RequiredDocument],
|
|
@@ -90,6 +91,10 @@ module Lithic
|
|
|
90
91
|
Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::Individual
|
|
91
92
|
) -> Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::Individual
|
|
92
93
|
|
|
94
|
+
attr_reader naics_code: String?
|
|
95
|
+
|
|
96
|
+
def naics_code=: (String) -> String
|
|
97
|
+
|
|
93
98
|
attr_reader nature_of_business: String?
|
|
94
99
|
|
|
95
100
|
def nature_of_business=: (String) -> String
|
|
@@ -145,6 +150,7 @@ module Lithic
|
|
|
145
150
|
?exemption_type: Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::exemption_type,
|
|
146
151
|
?external_id: String,
|
|
147
152
|
?individual: Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::Individual,
|
|
153
|
+
?naics_code: String,
|
|
148
154
|
?nature_of_business: String,
|
|
149
155
|
?phone_number: String,
|
|
150
156
|
?required_documents: ::Array[Lithic::RequiredDocument],
|
|
@@ -168,6 +174,7 @@ module Lithic
|
|
|
168
174
|
exemption_type: Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::exemption_type,
|
|
169
175
|
external_id: String,
|
|
170
176
|
individual: Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::Individual,
|
|
177
|
+
naics_code: String,
|
|
171
178
|
nature_of_business: String,
|
|
172
179
|
phone_number: String,
|
|
173
180
|
required_documents: ::Array[Lithic::RequiredDocument],
|
|
@@ -14,6 +14,7 @@ module Lithic
|
|
|
14
14
|
update_request: Lithic::AccountHolderUpdatedWebhookEvent::KYBPayload::UpdateRequest,
|
|
15
15
|
event_type: Lithic::Models::AccountHolderUpdatedWebhookEvent::KYBPayload::event_type,
|
|
16
16
|
external_id: String,
|
|
17
|
+
naics_code: String,
|
|
17
18
|
nature_of_business: String,
|
|
18
19
|
website_url: String
|
|
19
20
|
}
|
|
@@ -33,6 +34,10 @@ module Lithic
|
|
|
33
34
|
|
|
34
35
|
def external_id=: (String) -> String
|
|
35
36
|
|
|
37
|
+
attr_reader naics_code: String?
|
|
38
|
+
|
|
39
|
+
def naics_code=: (String) -> String
|
|
40
|
+
|
|
36
41
|
attr_reader nature_of_business: String?
|
|
37
42
|
|
|
38
43
|
def nature_of_business=: (String) -> String
|
|
@@ -46,6 +51,7 @@ module Lithic
|
|
|
46
51
|
update_request: Lithic::AccountHolderUpdatedWebhookEvent::KYBPayload::UpdateRequest,
|
|
47
52
|
?event_type: Lithic::Models::AccountHolderUpdatedWebhookEvent::KYBPayload::event_type,
|
|
48
53
|
?external_id: String,
|
|
54
|
+
?naics_code: String,
|
|
49
55
|
?nature_of_business: String,
|
|
50
56
|
?website_url: String
|
|
51
57
|
) -> void
|
|
@@ -55,6 +61,7 @@ module Lithic
|
|
|
55
61
|
update_request: Lithic::AccountHolderUpdatedWebhookEvent::KYBPayload::UpdateRequest,
|
|
56
62
|
event_type: Lithic::Models::AccountHolderUpdatedWebhookEvent::KYBPayload::event_type,
|
|
57
63
|
external_id: String,
|
|
64
|
+
naics_code: String,
|
|
58
65
|
nature_of_business: String,
|
|
59
66
|
website_url: String
|
|
60
67
|
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
module Lithic
|
|
2
|
+
module Models
|
|
3
|
+
module AuthRules
|
|
4
|
+
type v2_list_results_params =
|
|
5
|
+
{
|
|
6
|
+
auth_rule_token: String,
|
|
7
|
+
ending_before: String,
|
|
8
|
+
event_token: String,
|
|
9
|
+
has_actions: bool,
|
|
10
|
+
page_size: Integer,
|
|
11
|
+
starting_after: String
|
|
12
|
+
}
|
|
13
|
+
& Lithic::Internal::Type::request_parameters
|
|
14
|
+
|
|
15
|
+
class V2ListResultsParams < Lithic::Internal::Type::BaseModel
|
|
16
|
+
extend Lithic::Internal::Type::RequestParameters::Converter
|
|
17
|
+
include Lithic::Internal::Type::RequestParameters
|
|
18
|
+
|
|
19
|
+
attr_reader auth_rule_token: String?
|
|
20
|
+
|
|
21
|
+
def auth_rule_token=: (String) -> String
|
|
22
|
+
|
|
23
|
+
attr_reader ending_before: String?
|
|
24
|
+
|
|
25
|
+
def ending_before=: (String) -> String
|
|
26
|
+
|
|
27
|
+
attr_reader event_token: String?
|
|
28
|
+
|
|
29
|
+
def event_token=: (String) -> String
|
|
30
|
+
|
|
31
|
+
attr_reader has_actions: bool?
|
|
32
|
+
|
|
33
|
+
def has_actions=: (bool) -> bool
|
|
34
|
+
|
|
35
|
+
attr_reader page_size: Integer?
|
|
36
|
+
|
|
37
|
+
def page_size=: (Integer) -> Integer
|
|
38
|
+
|
|
39
|
+
attr_reader starting_after: String?
|
|
40
|
+
|
|
41
|
+
def starting_after=: (String) -> String
|
|
42
|
+
|
|
43
|
+
def initialize: (
|
|
44
|
+
?auth_rule_token: String,
|
|
45
|
+
?ending_before: String,
|
|
46
|
+
?event_token: String,
|
|
47
|
+
?has_actions: bool,
|
|
48
|
+
?page_size: Integer,
|
|
49
|
+
?starting_after: String,
|
|
50
|
+
?request_options: Lithic::request_opts
|
|
51
|
+
) -> void
|
|
52
|
+
|
|
53
|
+
def to_hash: -> {
|
|
54
|
+
auth_rule_token: String,
|
|
55
|
+
ending_before: String,
|
|
56
|
+
event_token: String,
|
|
57
|
+
has_actions: bool,
|
|
58
|
+
page_size: Integer,
|
|
59
|
+
starting_after: String,
|
|
60
|
+
request_options: Lithic::RequestOptions
|
|
61
|
+
}
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|