lithic 0.21.0 → 0.23.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 +50 -0
- data/README.md +1 -10
- data/lib/lithic/client.rb +4 -0
- data/lib/lithic/internal/type/union.rb +21 -7
- data/lib/lithic/models/account_activity_list_params.rb +1 -0
- data/lib/lithic/models/account_activity_list_response.rb +2 -24
- data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +2 -24
- data/lib/lithic/models/account_holder_create_params.rb +4 -2
- data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +120 -66
- data/lib/lithic/models/account_holder_update_params.rb +6 -3
- data/lib/lithic/models/account_holder_update_response.rb +156 -86
- data/lib/lithic/models/account_holder_updated_webhook_event.rb +120 -66
- data/lib/lithic/models/account_holders/account_holder_entity.rb +35 -19
- data/lib/lithic/models/account_holders/entity_create_params.rb +39 -21
- data/lib/lithic/models/address.rb +33 -19
- data/lib/lithic/models/address_update.rb +27 -11
- data/lib/lithic/models/auth_rules/auth_rule.rb +55 -27
- data/lib/lithic/models/auth_rules/auth_rule_condition.rb +189 -6
- data/lib/lithic/models/auth_rules/auth_rule_entities.rb +47 -0
- data/lib/lithic/models/auth_rules/auth_rule_entities_response.rb +31 -0
- data/lib/lithic/models/auth_rules/auth_rule_entity.rb +150 -0
- data/lib/lithic/models/auth_rules/auth_rule_version.rb +3 -6
- data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +33 -6
- data/lib/lithic/models/auth_rules/conditional_attribute.rb +101 -5
- data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +3 -439
- data/lib/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rb +7 -0
- data/lib/lithic/models/auth_rules/merchant_lock_parameters.rb +11 -1
- data/lib/lithic/models/auth_rules/v2_create_params.rb +203 -45
- data/lib/lithic/models/auth_rules/v2_draft_params.rb +3 -6
- data/lib/lithic/models/auth_rules/v2_list_params.rb +5 -3
- data/lib/lithic/models/auth_rules/v2_update_entities_params.rb +39 -0
- data/lib/lithic/models/auth_rules/v2_update_params.rb +133 -12
- data/lib/lithic/models/book_transfer_create_params.rb +1 -0
- data/lib/lithic/models/book_transfer_response.rb +1 -0
- data/lib/lithic/models/card_authorization.rb +12 -1
- data/lib/lithic/models/card_create_params.rb +11 -1
- data/lib/lithic/models/card_update_params.rb +12 -1
- data/lib/lithic/models/cards/financial_transaction_list_params.rb +9 -1
- data/lib/lithic/models/claim_created_webhook_event.rb +15 -1
- data/lib/lithic/models/claim_updated_webhook_event.rb +15 -1
- data/lib/lithic/models/financial_account_balance.rb +6 -6
- data/lib/lithic/models/financial_accounts/credit_configuration_update_params.rb +9 -2
- data/lib/lithic/models/financial_accounts/financial_transaction_list_params.rb +9 -1
- data/lib/lithic/models/financial_accounts/installment_plans/installment_plan_statement.rb +279 -0
- data/lib/lithic/models/financial_accounts/installment_plans/statement_list_params.rb +106 -0
- data/lib/lithic/models/financial_accounts/installment_plans/statement_retrieve_params.rb +42 -0
- data/lib/lithic/models/financial_accounts/interest_tier_schedule.rb +6 -6
- data/lib/lithic/models/financial_accounts/interest_tier_schedule_update_params.rb +6 -6
- data/lib/lithic/models/financial_accounts/loan_tape.rb +71 -2
- data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +5 -0
- data/lib/lithic/models/financial_event.rb +4 -0
- data/lib/lithic/models/funding_event_list_params.rb +28 -1
- data/lib/lithic/models/hold.rb +24 -28
- data/lib/lithic/models/ip_range_retrieve_params.rb +14 -0
- data/lib/lithic/models/ip_range_retrieve_response.rb +25 -0
- data/lib/lithic/models/kyb.rb +4 -2
- data/lib/lithic/models/kyb_business_entity.rb +35 -19
- data/lib/lithic/models/kyc.rb +2 -1
- data/lib/lithic/models/non_pci_card.rb +11 -1
- data/lib/lithic/models/parsed_webhook_event.rb +120 -66
- data/lib/lithic/models/payment.rb +3 -1
- data/lib/lithic/models/transaction.rb +11 -4
- data/lib/lithic/models/transaction_simulate_authorization_params.rb +28 -4
- data/lib/lithic/models/transaction_simulate_credit_authorization_advice_params.rb +11 -1
- data/lib/lithic/models/transaction_simulate_return_params.rb +24 -1
- data/lib/lithic/models/transactions/events/enhanced_data.rb +27 -3
- data/lib/lithic/models/transfer_limits_response.rb +9 -1
- data/lib/lithic/models.rb +2 -0
- data/lib/lithic/resources/auth_rules/v2/backtests.rb +8 -8
- data/lib/lithic/resources/auth_rules/v2.rb +44 -8
- data/lib/lithic/resources/cards/financial_transactions.rb +5 -3
- data/lib/lithic/resources/cards.rb +6 -2
- data/lib/lithic/resources/financial_accounts/credit_configuration.rb +9 -2
- data/lib/lithic/resources/financial_accounts/financial_transactions.rb +5 -3
- data/lib/lithic/resources/financial_accounts/installment_plans/statements.rb +107 -0
- data/lib/lithic/resources/financial_accounts/installment_plans.rb +4 -0
- data/lib/lithic/resources/financial_accounts/interest_tier_schedule.rb +6 -6
- data/lib/lithic/resources/funding_events.rb +8 -2
- data/lib/lithic/resources/ip_ranges.rb +36 -0
- data/lib/lithic/resources/transactions.rb +17 -4
- data/lib/lithic/resources/webhooks.rb +20 -0
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +11 -1
- data/rbi/lithic/client.rbi +3 -0
- data/rbi/lithic/models/account_activity_list_params.rbi +5 -0
- data/rbi/lithic/models/account_activity_list_response.rbi +6 -75
- data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +6 -75
- data/rbi/lithic/models/account_holder_create_params.rbi +8 -4
- data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +195 -90
- data/rbi/lithic/models/account_holder_update_params.rbi +12 -6
- data/rbi/lithic/models/account_holder_update_response.rbi +254 -117
- data/rbi/lithic/models/account_holder_updated_webhook_event.rbi +195 -90
- data/rbi/lithic/models/account_holders/account_holder_entity.rbi +59 -27
- data/rbi/lithic/models/account_holders/entity_create_params.rbi +65 -30
- data/rbi/lithic/models/address.rbi +57 -29
- data/rbi/lithic/models/address_update.rbi +50 -24
- data/rbi/lithic/models/auth_rules/auth_rule.rbi +53 -19
- data/rbi/lithic/models/auth_rules/auth_rule_condition.rbi +442 -13
- data/rbi/lithic/models/auth_rules/auth_rule_entities.rbi +163 -0
- data/rbi/lithic/models/auth_rules/auth_rule_entities_response.rbi +72 -0
- data/rbi/lithic/models/auth_rules/auth_rule_entity.rbi +199 -0
- data/rbi/lithic/models/auth_rules/auth_rule_version.rbi +0 -2
- data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +67 -9
- data/rbi/lithic/models/auth_rules/conditional_attribute.rbi +193 -5
- data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +3 -939
- data/rbi/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbi +14 -0
- data/rbi/lithic/models/auth_rules/merchant_lock_parameters.rbi +14 -3
- data/rbi/lithic/models/auth_rules/v2_create_params.rbi +325 -50
- data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +0 -4
- data/rbi/lithic/models/auth_rules/v2_list_params.rbi +6 -3
- data/rbi/lithic/models/auth_rules/v2_update_entities_params.rbi +68 -0
- data/rbi/lithic/models/auth_rules/v2_update_params.rbi +198 -5
- data/rbi/lithic/models/book_transfer_create_params.rbi +5 -0
- data/rbi/lithic/models/book_transfer_response.rbi +5 -0
- data/rbi/lithic/models/card_authorization.rbi +14 -0
- data/rbi/lithic/models/card_create_params.rbi +15 -0
- data/rbi/lithic/models/card_update_params.rbi +17 -0
- data/rbi/lithic/models/cards/financial_transaction_list_params.rbi +11 -0
- data/rbi/lithic/models/claim_created_webhook_event.rbi +14 -0
- data/rbi/lithic/models/claim_updated_webhook_event.rbi +14 -0
- data/rbi/lithic/models/financial_account_balance.rbi +6 -6
- data/rbi/lithic/models/financial_accounts/credit_configuration_update_params.rbi +8 -2
- data/rbi/lithic/models/financial_accounts/financial_transaction_list_params.rbi +11 -0
- data/rbi/lithic/models/financial_accounts/installment_plans/installment_plan_statement.rbi +452 -0
- data/rbi/lithic/models/financial_accounts/installment_plans/statement_list_params.rbi +191 -0
- data/rbi/lithic/models/financial_accounts/installment_plans/statement_retrieve_params.rbi +66 -0
- data/rbi/lithic/models/financial_accounts/interest_tier_schedule.rbi +9 -18
- data/rbi/lithic/models/financial_accounts/interest_tier_schedule_update_params.rbi +9 -18
- data/rbi/lithic/models/financial_accounts/loan_tape.rbi +143 -3
- data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +25 -0
- data/rbi/lithic/models/financial_event.rbi +17 -0
- data/rbi/lithic/models/funding_event_list_params.rbi +39 -0
- data/rbi/lithic/models/hold.rbi +28 -29
- data/rbi/lithic/models/ip_range_retrieve_params.rbi +27 -0
- data/rbi/lithic/models/ip_range_retrieve_response.rbi +40 -0
- data/rbi/lithic/models/kyb.rbi +8 -4
- data/rbi/lithic/models/kyb_business_entity.rbi +59 -27
- data/rbi/lithic/models/kyc.rbi +4 -2
- data/rbi/lithic/models/non_pci_card.rbi +12 -0
- data/rbi/lithic/models/parsed_webhook_event.rbi +195 -90
- data/rbi/lithic/models/payment.rbi +5 -2
- data/rbi/lithic/models/transaction.rbi +15 -6
- data/rbi/lithic/models/transaction_simulate_authorization_params.rbi +42 -4
- data/rbi/lithic/models/transaction_simulate_credit_authorization_advice_params.rbi +15 -0
- data/rbi/lithic/models/transaction_simulate_return_params.rbi +30 -0
- data/rbi/lithic/models/transactions/events/enhanced_data.rbi +25 -5
- data/rbi/lithic/models/transfer_limits_response.rbi +8 -0
- data/rbi/lithic/models.rbi +2 -0
- data/rbi/lithic/resources/account_holders/entities.rbi +2 -1
- data/rbi/lithic/resources/auth_rules/v2/backtests.rbi +8 -8
- data/rbi/lithic/resources/auth_rules/v2.rbi +43 -8
- data/rbi/lithic/resources/cards/financial_transactions.rbi +4 -1
- data/rbi/lithic/resources/cards.rbi +11 -0
- data/rbi/lithic/resources/financial_accounts/credit_configuration.rbi +8 -2
- data/rbi/lithic/resources/financial_accounts/financial_transactions.rbi +4 -1
- data/rbi/lithic/resources/financial_accounts/installment_plans/statements.rbi +86 -0
- data/rbi/lithic/resources/financial_accounts/installment_plans.rbi +7 -0
- data/rbi/lithic/resources/financial_accounts/interest_tier_schedule.rbi +6 -6
- data/rbi/lithic/resources/funding_events.rbi +12 -0
- data/rbi/lithic/resources/ip_ranges.rbi +25 -0
- data/rbi/lithic/resources/transactions.rbi +31 -2
- data/sig/lithic/client.rbs +2 -0
- data/sig/lithic/models/account_activity_list_params.rbs +2 -0
- data/sig/lithic/models/account_activity_list_response.rbs +3 -32
- data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +3 -32
- data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +39 -39
- data/sig/lithic/models/account_holder_update_response.rbs +52 -52
- data/sig/lithic/models/account_holder_updated_webhook_event.rbs +39 -39
- data/sig/lithic/models/account_holders/account_holder_entity.rbs +13 -13
- data/sig/lithic/models/account_holders/entity_create_params.rbs +13 -13
- data/sig/lithic/models/address.rbs +13 -13
- data/sig/lithic/models/address_update.rbs +8 -12
- data/sig/lithic/models/auth_rules/auth_rule.rbs +8 -7
- data/sig/lithic/models/auth_rules/auth_rule_condition.rbs +89 -3
- data/sig/lithic/models/auth_rules/auth_rule_entities.rbs +37 -0
- data/sig/lithic/models/auth_rules/auth_rule_entities_response.rbs +29 -0
- data/sig/lithic/models/auth_rules/auth_rule_entity.rbs +80 -0
- data/sig/lithic/models/auth_rules/auth_rule_version.rbs +1 -2
- data/sig/lithic/models/auth_rules/conditional_3ds_action_parameters.rbs +10 -0
- data/sig/lithic/models/auth_rules/conditional_attribute.rbs +46 -0
- data/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +4 -204
- data/sig/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbs +2 -0
- data/sig/lithic/models/auth_rules/merchant_lock_parameters.rbs +10 -3
- data/sig/lithic/models/auth_rules/v2_create_params.rbs +86 -16
- data/sig/lithic/models/auth_rules/v2_draft_params.rbs +1 -2
- data/sig/lithic/models/auth_rules/v2_update_entities_params.rbs +46 -0
- data/sig/lithic/models/auth_rules/v2_update_params.rbs +47 -1
- data/sig/lithic/models/book_transfer_create_params.rbs +2 -0
- data/sig/lithic/models/book_transfer_response.rbs +2 -0
- data/sig/lithic/models/card_authorization.rbs +13 -1
- data/sig/lithic/models/card_create_params.rbs +7 -0
- data/sig/lithic/models/card_update_params.rbs +8 -1
- data/sig/lithic/models/cards/financial_transaction_list_params.rbs +7 -0
- data/sig/lithic/models/claim_created_webhook_event.rbs +5 -0
- data/sig/lithic/models/claim_updated_webhook_event.rbs +5 -0
- data/sig/lithic/models/financial_account_balance.rbs +8 -8
- data/sig/lithic/models/financial_accounts/financial_transaction_list_params.rbs +7 -0
- data/sig/lithic/models/financial_accounts/installment_plans/installment_plan_statement.rbs +191 -0
- data/sig/lithic/models/financial_accounts/installment_plans/statement_list_params.rbs +90 -0
- data/sig/lithic/models/financial_accounts/installment_plans/statement_retrieve_params.rbs +40 -0
- data/sig/lithic/models/financial_accounts/interest_tier_schedule.rbs +12 -18
- data/sig/lithic/models/financial_accounts/interest_tier_schedule_update_params.rbs +12 -18
- data/sig/lithic/models/financial_accounts/loan_tape.rbs +55 -3
- data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +10 -0
- data/sig/lithic/models/financial_event.rbs +8 -0
- data/sig/lithic/models/funding_event_list_params.rbs +26 -1
- data/sig/lithic/models/hold.rbs +22 -30
- data/sig/lithic/models/ip_range_retrieve_params.rbs +15 -0
- data/sig/lithic/models/ip_range_retrieve_response.rbs +16 -0
- data/sig/lithic/models/kyb_business_entity.rbs +13 -13
- data/sig/lithic/models/non_pci_card.rbs +5 -0
- data/sig/lithic/models/parsed_webhook_event.rbs +39 -39
- data/sig/lithic/models/payment.rbs +2 -0
- data/sig/lithic/models/transaction.rbs +12 -5
- data/sig/lithic/models/transaction_simulate_authorization_params.rbs +14 -0
- data/sig/lithic/models/transaction_simulate_credit_authorization_advice_params.rbs +7 -0
- data/sig/lithic/models/transaction_simulate_return_params.rbs +19 -1
- data/sig/lithic/models/transactions/events/enhanced_data.rbs +13 -3
- data/sig/lithic/models/transfer_limits_response.rbs +5 -0
- data/sig/lithic/models.rbs +2 -0
- data/sig/lithic/resources/auth_rules/v2.rbs +7 -0
- data/sig/lithic/resources/cards/financial_transactions.rbs +2 -1
- data/sig/lithic/resources/cards.rbs +2 -0
- data/sig/lithic/resources/financial_accounts/financial_transactions.rbs +2 -1
- data/sig/lithic/resources/financial_accounts/installment_plans/statements.rbs +30 -0
- data/sig/lithic/resources/financial_accounts/installment_plans.rbs +2 -0
- data/sig/lithic/resources/financial_accounts/interest_tier_schedule.rbs +6 -6
- data/sig/lithic/resources/funding_events.rbs +3 -0
- data/sig/lithic/resources/ip_ranges.rbs +11 -0
- data/sig/lithic/resources/transactions.rbs +5 -0
- metadata +36 -10
- data/lib/lithic/models/auth_rules/conditional_block_parameters.rb +0 -20
- data/rbi/lithic/models/auth_rules/conditional_block_parameters.rbi +0 -37
- data/sig/lithic/models/auth_rules/conditional_block_parameters.rbs +0 -20
|
@@ -11,6 +11,22 @@ module Lithic
|
|
|
11
11
|
T.any(Lithic::FundingEventListParams, Lithic::Internal::AnyHash)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
+
# Date string in RFC 3339 format. Only entries created after the specified time
|
|
15
|
+
# will be included. UTC time zone.
|
|
16
|
+
sig { returns(T.nilable(Time)) }
|
|
17
|
+
attr_reader :begin_
|
|
18
|
+
|
|
19
|
+
sig { params(begin_: Time).void }
|
|
20
|
+
attr_writer :begin_
|
|
21
|
+
|
|
22
|
+
# Date string in RFC 3339 format. Only entries created before the specified time
|
|
23
|
+
# will be included. UTC time zone.
|
|
24
|
+
sig { returns(T.nilable(Time)) }
|
|
25
|
+
attr_reader :end_
|
|
26
|
+
|
|
27
|
+
sig { params(end_: Time).void }
|
|
28
|
+
attr_writer :end_
|
|
29
|
+
|
|
14
30
|
# A cursor representing an item's token before which a page of results should end.
|
|
15
31
|
# Used to retrieve the previous page of results before this item.
|
|
16
32
|
sig { returns(T.nilable(String)) }
|
|
@@ -19,6 +35,14 @@ module Lithic
|
|
|
19
35
|
sig { params(ending_before: String).void }
|
|
20
36
|
attr_writer :ending_before
|
|
21
37
|
|
|
38
|
+
# Only funding events with a settlement breakout for this network settlement date
|
|
39
|
+
# will be included.
|
|
40
|
+
sig { returns(T.nilable(Date)) }
|
|
41
|
+
attr_reader :network_settlement_date
|
|
42
|
+
|
|
43
|
+
sig { params(network_settlement_date: Date).void }
|
|
44
|
+
attr_writer :network_settlement_date
|
|
45
|
+
|
|
22
46
|
# Page size (for pagination).
|
|
23
47
|
sig { returns(T.nilable(Integer)) }
|
|
24
48
|
attr_reader :page_size
|
|
@@ -36,16 +60,28 @@ module Lithic
|
|
|
36
60
|
|
|
37
61
|
sig do
|
|
38
62
|
params(
|
|
63
|
+
begin_: Time,
|
|
64
|
+
end_: Time,
|
|
39
65
|
ending_before: String,
|
|
66
|
+
network_settlement_date: Date,
|
|
40
67
|
page_size: Integer,
|
|
41
68
|
starting_after: String,
|
|
42
69
|
request_options: Lithic::RequestOptions::OrHash
|
|
43
70
|
).returns(T.attached_class)
|
|
44
71
|
end
|
|
45
72
|
def self.new(
|
|
73
|
+
# Date string in RFC 3339 format. Only entries created after the specified time
|
|
74
|
+
# will be included. UTC time zone.
|
|
75
|
+
begin_: nil,
|
|
76
|
+
# Date string in RFC 3339 format. Only entries created before the specified time
|
|
77
|
+
# will be included. UTC time zone.
|
|
78
|
+
end_: nil,
|
|
46
79
|
# A cursor representing an item's token before which a page of results should end.
|
|
47
80
|
# Used to retrieve the previous page of results before this item.
|
|
48
81
|
ending_before: nil,
|
|
82
|
+
# Only funding events with a settlement breakout for this network settlement date
|
|
83
|
+
# will be included.
|
|
84
|
+
network_settlement_date: nil,
|
|
49
85
|
# Page size (for pagination).
|
|
50
86
|
page_size: nil,
|
|
51
87
|
# A cursor representing an item's token after which a page of results should
|
|
@@ -58,7 +94,10 @@ module Lithic
|
|
|
58
94
|
sig do
|
|
59
95
|
override.returns(
|
|
60
96
|
{
|
|
97
|
+
begin_: Time,
|
|
98
|
+
end_: Time,
|
|
61
99
|
ending_before: String,
|
|
100
|
+
network_settlement_date: Date,
|
|
62
101
|
page_size: Integer,
|
|
63
102
|
starting_after: String,
|
|
64
103
|
request_options: Lithic::RequestOptions
|
data/rbi/lithic/models/hold.rbi
CHANGED
|
@@ -13,10 +13,6 @@ module Lithic
|
|
|
13
13
|
sig { returns(Time) }
|
|
14
14
|
attr_accessor :created
|
|
15
15
|
|
|
16
|
-
# Status of a hold transaction
|
|
17
|
-
sig { returns(Lithic::Hold::Status::TaggedSymbol) }
|
|
18
|
-
attr_accessor :status
|
|
19
|
-
|
|
20
16
|
# ISO 8601 timestamp of when the transaction was last updated
|
|
21
17
|
sig { returns(Time) }
|
|
22
18
|
attr_accessor :updated
|
|
@@ -63,6 +59,13 @@ module Lithic
|
|
|
63
59
|
sig { params(result: Lithic::Hold::Result::OrSymbol).void }
|
|
64
60
|
attr_writer :result
|
|
65
61
|
|
|
62
|
+
# Status of a hold transaction
|
|
63
|
+
sig { returns(T.nilable(Lithic::Hold::Status::TaggedSymbol)) }
|
|
64
|
+
attr_reader :status
|
|
65
|
+
|
|
66
|
+
sig { params(status: Lithic::Hold::Status::OrSymbol).void }
|
|
67
|
+
attr_writer :status
|
|
68
|
+
|
|
66
69
|
sig { returns(T.nilable(String)) }
|
|
67
70
|
attr_accessor :user_defined_id
|
|
68
71
|
|
|
@@ -74,7 +77,6 @@ module Lithic
|
|
|
74
77
|
params(
|
|
75
78
|
token: String,
|
|
76
79
|
created: Time,
|
|
77
|
-
status: Lithic::Hold::Status::OrSymbol,
|
|
78
80
|
updated: Time,
|
|
79
81
|
currency: String,
|
|
80
82
|
events: T::Array[Lithic::HoldEvent::OrHash],
|
|
@@ -83,6 +85,7 @@ module Lithic
|
|
|
83
85
|
financial_account_token: String,
|
|
84
86
|
pending_amount: Integer,
|
|
85
87
|
result: Lithic::Hold::Result::OrSymbol,
|
|
88
|
+
status: Lithic::Hold::Status::OrSymbol,
|
|
86
89
|
user_defined_id: T.nilable(String)
|
|
87
90
|
).returns(T.attached_class)
|
|
88
91
|
end
|
|
@@ -91,8 +94,6 @@ module Lithic
|
|
|
91
94
|
token:,
|
|
92
95
|
# ISO 8601 timestamp of when the transaction was created
|
|
93
96
|
created:,
|
|
94
|
-
# Status of a hold transaction
|
|
95
|
-
status:,
|
|
96
97
|
# ISO 8601 timestamp of when the transaction was last updated
|
|
97
98
|
updated:,
|
|
98
99
|
currency: nil,
|
|
@@ -105,6 +106,8 @@ module Lithic
|
|
|
105
106
|
# Current pending amount (0 when resolved)
|
|
106
107
|
pending_amount: nil,
|
|
107
108
|
result: nil,
|
|
109
|
+
# Status of a hold transaction
|
|
110
|
+
status: nil,
|
|
108
111
|
user_defined_id: nil
|
|
109
112
|
)
|
|
110
113
|
end
|
|
@@ -114,7 +117,6 @@ module Lithic
|
|
|
114
117
|
{
|
|
115
118
|
token: String,
|
|
116
119
|
created: Time,
|
|
117
|
-
status: Lithic::Hold::Status::TaggedSymbol,
|
|
118
120
|
updated: Time,
|
|
119
121
|
currency: String,
|
|
120
122
|
events: T::Array[Lithic::HoldEvent],
|
|
@@ -123,6 +125,7 @@ module Lithic
|
|
|
123
125
|
financial_account_token: String,
|
|
124
126
|
pending_amount: Integer,
|
|
125
127
|
result: Lithic::Hold::Result::TaggedSymbol,
|
|
128
|
+
status: Lithic::Hold::Status::TaggedSymbol,
|
|
126
129
|
user_defined_id: T.nilable(String)
|
|
127
130
|
}
|
|
128
131
|
)
|
|
@@ -130,27 +133,6 @@ module Lithic
|
|
|
130
133
|
def to_hash
|
|
131
134
|
end
|
|
132
135
|
|
|
133
|
-
# Status of a hold transaction
|
|
134
|
-
module Status
|
|
135
|
-
extend Lithic::Internal::Type::Enum
|
|
136
|
-
|
|
137
|
-
TaggedSymbol = T.type_alias { T.all(Symbol, Lithic::Hold::Status) }
|
|
138
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
139
|
-
|
|
140
|
-
PENDING = T.let(:PENDING, Lithic::Hold::Status::TaggedSymbol)
|
|
141
|
-
SETTLED = T.let(:SETTLED, Lithic::Hold::Status::TaggedSymbol)
|
|
142
|
-
EXPIRED = T.let(:EXPIRED, Lithic::Hold::Status::TaggedSymbol)
|
|
143
|
-
VOIDED = T.let(:VOIDED, Lithic::Hold::Status::TaggedSymbol)
|
|
144
|
-
DECLINED = T.let(:DECLINED, Lithic::Hold::Status::TaggedSymbol)
|
|
145
|
-
REVERSED = T.let(:REVERSED, Lithic::Hold::Status::TaggedSymbol)
|
|
146
|
-
CANCELED = T.let(:CANCELED, Lithic::Hold::Status::TaggedSymbol)
|
|
147
|
-
RETURNED = T.let(:RETURNED, Lithic::Hold::Status::TaggedSymbol)
|
|
148
|
-
|
|
149
|
-
sig { override.returns(T::Array[Lithic::Hold::Status::TaggedSymbol]) }
|
|
150
|
-
def self.values
|
|
151
|
-
end
|
|
152
|
-
end
|
|
153
|
-
|
|
154
136
|
# HOLD - Hold Transaction
|
|
155
137
|
module Family
|
|
156
138
|
extend Lithic::Internal::Type::Enum
|
|
@@ -178,6 +160,23 @@ module Lithic
|
|
|
178
160
|
def self.values
|
|
179
161
|
end
|
|
180
162
|
end
|
|
163
|
+
|
|
164
|
+
# Status of a hold transaction
|
|
165
|
+
module Status
|
|
166
|
+
extend Lithic::Internal::Type::Enum
|
|
167
|
+
|
|
168
|
+
TaggedSymbol = T.type_alias { T.all(Symbol, Lithic::Hold::Status) }
|
|
169
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
170
|
+
|
|
171
|
+
PENDING = T.let(:PENDING, Lithic::Hold::Status::TaggedSymbol)
|
|
172
|
+
SETTLED = T.let(:SETTLED, Lithic::Hold::Status::TaggedSymbol)
|
|
173
|
+
EXPIRED = T.let(:EXPIRED, Lithic::Hold::Status::TaggedSymbol)
|
|
174
|
+
VOIDED = T.let(:VOIDED, Lithic::Hold::Status::TaggedSymbol)
|
|
175
|
+
|
|
176
|
+
sig { override.returns(T::Array[Lithic::Hold::Status::TaggedSymbol]) }
|
|
177
|
+
def self.values
|
|
178
|
+
end
|
|
179
|
+
end
|
|
181
180
|
end
|
|
182
181
|
end
|
|
183
182
|
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
class IPRangeRetrieveParams < Lithic::Internal::Type::BaseModel
|
|
6
|
+
extend Lithic::Internal::Type::RequestParameters::Converter
|
|
7
|
+
include Lithic::Internal::Type::RequestParameters
|
|
8
|
+
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(Lithic::IPRangeRetrieveParams, Lithic::Internal::AnyHash)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
sig do
|
|
15
|
+
params(request_options: Lithic::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: Lithic::RequestOptions }) }
|
|
23
|
+
def to_hash
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
class IPRangeRetrieveResponse < Lithic::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
Lithic::Models::IPRangeRetrieveResponse,
|
|
10
|
+
Lithic::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# IP ranges that responder requests are sent from, in CIDR notation
|
|
15
|
+
sig { returns(T::Array[String]) }
|
|
16
|
+
attr_accessor :responders
|
|
17
|
+
|
|
18
|
+
# Date and time the IP ranges were last changed
|
|
19
|
+
sig { returns(Time) }
|
|
20
|
+
attr_accessor :updated
|
|
21
|
+
|
|
22
|
+
sig do
|
|
23
|
+
params(responders: T::Array[String], updated: Time).returns(
|
|
24
|
+
T.attached_class
|
|
25
|
+
)
|
|
26
|
+
end
|
|
27
|
+
def self.new(
|
|
28
|
+
# IP ranges that responder requests are sent from, in CIDR notation
|
|
29
|
+
responders:,
|
|
30
|
+
# Date and time the IP ranges were last changed
|
|
31
|
+
updated:
|
|
32
|
+
)
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
sig { override.returns({ responders: T::Array[String], updated: Time }) }
|
|
36
|
+
def to_hash
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
data/rbi/lithic/models/kyb.rbi
CHANGED
|
@@ -176,7 +176,8 @@ module Lithic
|
|
|
176
176
|
end
|
|
177
177
|
|
|
178
178
|
# Individual's current address - PO boxes, UPS drops, and FedEx drops are not
|
|
179
|
-
# acceptable; APO/FPO are acceptable. Only USA addresses are
|
|
179
|
+
# acceptable; APO/FPO are acceptable. Only USA addresses are supported for the KYB
|
|
180
|
+
# and KYC workflows.
|
|
180
181
|
sig { returns(Lithic::Address) }
|
|
181
182
|
attr_reader :address
|
|
182
183
|
|
|
@@ -228,7 +229,8 @@ module Lithic
|
|
|
228
229
|
end
|
|
229
230
|
def self.new(
|
|
230
231
|
# Individual's current address - PO boxes, UPS drops, and FedEx drops are not
|
|
231
|
-
# acceptable; APO/FPO are acceptable. Only USA addresses are
|
|
232
|
+
# acceptable; APO/FPO are acceptable. Only USA addresses are supported for the KYB
|
|
233
|
+
# and KYC workflows.
|
|
232
234
|
address:,
|
|
233
235
|
# Individual's date of birth, as an RFC 3339 date.
|
|
234
236
|
dob:,
|
|
@@ -366,7 +368,8 @@ module Lithic
|
|
|
366
368
|
end
|
|
367
369
|
|
|
368
370
|
# Individual's current address - PO boxes, UPS drops, and FedEx drops are not
|
|
369
|
-
# acceptable; APO/FPO are acceptable. Only USA addresses are
|
|
371
|
+
# acceptable; APO/FPO are acceptable. Only USA addresses are supported for the KYB
|
|
372
|
+
# and KYC workflows.
|
|
370
373
|
sig { returns(Lithic::Address) }
|
|
371
374
|
attr_reader :address
|
|
372
375
|
|
|
@@ -425,7 +428,8 @@ module Lithic
|
|
|
425
428
|
end
|
|
426
429
|
def self.new(
|
|
427
430
|
# Individual's current address - PO boxes, UPS drops, and FedEx drops are not
|
|
428
|
-
# acceptable; APO/FPO are acceptable. Only USA addresses are
|
|
431
|
+
# acceptable; APO/FPO are acceptable. Only USA addresses are supported for the KYB
|
|
432
|
+
# and KYC workflows.
|
|
429
433
|
address:,
|
|
430
434
|
# Individual's date of birth, as an RFC 3339 date.
|
|
431
435
|
dob:,
|
|
@@ -103,21 +103,12 @@ module Lithic
|
|
|
103
103
|
sig { returns(String) }
|
|
104
104
|
attr_accessor :city
|
|
105
105
|
|
|
106
|
-
# Valid country code
|
|
107
|
-
#
|
|
106
|
+
# Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character
|
|
107
|
+
# format. Supported countries depend on the onboarding workflow used for the
|
|
108
|
+
# account holder.
|
|
108
109
|
sig { returns(String) }
|
|
109
110
|
attr_accessor :country
|
|
110
111
|
|
|
111
|
-
# Valid postal code. Only USA ZIP codes are currently supported, entered as a
|
|
112
|
-
# five-digit ZIP or nine-digit ZIP+4.
|
|
113
|
-
sig { returns(String) }
|
|
114
|
-
attr_accessor :postal_code
|
|
115
|
-
|
|
116
|
-
# Valid state code. Only USA state codes are currently supported, entered in
|
|
117
|
-
# uppercase ISO 3166-2 two-character format.
|
|
118
|
-
sig { returns(String) }
|
|
119
|
-
attr_accessor :state
|
|
120
|
-
|
|
121
112
|
# Unit or apartment number (if applicable).
|
|
122
113
|
sig { returns(T.nilable(String)) }
|
|
123
114
|
attr_reader :address2
|
|
@@ -125,6 +116,31 @@ module Lithic
|
|
|
125
116
|
sig { params(address2: String).void }
|
|
126
117
|
attr_writer :address2
|
|
127
118
|
|
|
119
|
+
# Valid postal code. For USA addresses, enter either a five-digit postal code or a
|
|
120
|
+
# nine-digit postal code (ZIP+4) using the format 12345-1234. Required for all
|
|
121
|
+
# countries except the following, which do not use postal codes: ABW, AGO, ARE,
|
|
122
|
+
# ATG, BDI, BEN, BFA, BHS, BLZ, BOL, BWA, CIV, CMR, COD, COG, COK, COM, DJI, DMA,
|
|
123
|
+
# ERI, FJI, GAB, GMB, GNQ, GRD, GUY, HKG, KIR, MAC, MLI, MRT, NIU, NRU, QAT, RWA,
|
|
124
|
+
# SLB, SLE, SSD, SUR, SXM, SYC, TGO, TKL, TLS, TON, TUV, UGA, VUT, YEM, ZWE
|
|
125
|
+
sig { returns(T.nilable(String)) }
|
|
126
|
+
attr_accessor :postal_code
|
|
127
|
+
|
|
128
|
+
# Valid state, province, or subdivision code, entered as the uppercase ISO 3166-2
|
|
129
|
+
# code for the country without the country prefix. For example, `CA` for
|
|
130
|
+
# California. Optional unless the address is in one of the following countries,
|
|
131
|
+
# where it is required:
|
|
132
|
+
#
|
|
133
|
+
# - `USA`
|
|
134
|
+
# - `CAN`
|
|
135
|
+
# - `AUS`
|
|
136
|
+
# - `CHN`
|
|
137
|
+
# - `KOR`
|
|
138
|
+
# - `MEX`
|
|
139
|
+
# - `MYS`
|
|
140
|
+
# - `NZL`
|
|
141
|
+
sig { returns(T.nilable(String)) }
|
|
142
|
+
attr_accessor :state
|
|
143
|
+
|
|
128
144
|
# Business''s physical address - PO boxes, UPS drops, and FedEx drops are not
|
|
129
145
|
# acceptable; APO/FPO are acceptable.
|
|
130
146
|
sig do
|
|
@@ -132,9 +148,9 @@ module Lithic
|
|
|
132
148
|
address1: String,
|
|
133
149
|
city: String,
|
|
134
150
|
country: String,
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
151
|
+
address2: String,
|
|
152
|
+
postal_code: T.nilable(String),
|
|
153
|
+
state: T.nilable(String)
|
|
138
154
|
).returns(T.attached_class)
|
|
139
155
|
end
|
|
140
156
|
def self.new(
|
|
@@ -142,17 +158,33 @@ module Lithic
|
|
|
142
158
|
address1:,
|
|
143
159
|
# Name of city.
|
|
144
160
|
city:,
|
|
145
|
-
# Valid country code
|
|
146
|
-
#
|
|
161
|
+
# Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character
|
|
162
|
+
# format. Supported countries depend on the onboarding workflow used for the
|
|
163
|
+
# account holder.
|
|
147
164
|
country:,
|
|
148
|
-
# Valid postal code. Only USA ZIP codes are currently supported, entered as a
|
|
149
|
-
# five-digit ZIP or nine-digit ZIP+4.
|
|
150
|
-
postal_code:,
|
|
151
|
-
# Valid state code. Only USA state codes are currently supported, entered in
|
|
152
|
-
# uppercase ISO 3166-2 two-character format.
|
|
153
|
-
state:,
|
|
154
165
|
# Unit or apartment number (if applicable).
|
|
155
|
-
address2: nil
|
|
166
|
+
address2: nil,
|
|
167
|
+
# Valid postal code. For USA addresses, enter either a five-digit postal code or a
|
|
168
|
+
# nine-digit postal code (ZIP+4) using the format 12345-1234. Required for all
|
|
169
|
+
# countries except the following, which do not use postal codes: ABW, AGO, ARE,
|
|
170
|
+
# ATG, BDI, BEN, BFA, BHS, BLZ, BOL, BWA, CIV, CMR, COD, COG, COK, COM, DJI, DMA,
|
|
171
|
+
# ERI, FJI, GAB, GMB, GNQ, GRD, GUY, HKG, KIR, MAC, MLI, MRT, NIU, NRU, QAT, RWA,
|
|
172
|
+
# SLB, SLE, SSD, SUR, SXM, SYC, TGO, TKL, TLS, TON, TUV, UGA, VUT, YEM, ZWE
|
|
173
|
+
postal_code: nil,
|
|
174
|
+
# Valid state, province, or subdivision code, entered as the uppercase ISO 3166-2
|
|
175
|
+
# code for the country without the country prefix. For example, `CA` for
|
|
176
|
+
# California. Optional unless the address is in one of the following countries,
|
|
177
|
+
# where it is required:
|
|
178
|
+
#
|
|
179
|
+
# - `USA`
|
|
180
|
+
# - `CAN`
|
|
181
|
+
# - `AUS`
|
|
182
|
+
# - `CHN`
|
|
183
|
+
# - `KOR`
|
|
184
|
+
# - `MEX`
|
|
185
|
+
# - `MYS`
|
|
186
|
+
# - `NZL`
|
|
187
|
+
state: nil
|
|
156
188
|
)
|
|
157
189
|
end
|
|
158
190
|
|
|
@@ -162,9 +194,9 @@ module Lithic
|
|
|
162
194
|
address1: String,
|
|
163
195
|
city: String,
|
|
164
196
|
country: String,
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
197
|
+
address2: String,
|
|
198
|
+
postal_code: T.nilable(String),
|
|
199
|
+
state: T.nilable(String)
|
|
168
200
|
}
|
|
169
201
|
)
|
|
170
202
|
end
|
data/rbi/lithic/models/kyc.rbi
CHANGED
|
@@ -92,7 +92,8 @@ module Lithic
|
|
|
92
92
|
end
|
|
93
93
|
|
|
94
94
|
# Individual's current address - PO boxes, UPS drops, and FedEx drops are not
|
|
95
|
-
# acceptable; APO/FPO are acceptable. Only USA addresses are
|
|
95
|
+
# acceptable; APO/FPO are acceptable. Only USA addresses are supported for the KYB
|
|
96
|
+
# and KYC workflows.
|
|
96
97
|
sig { returns(Lithic::Address) }
|
|
97
98
|
attr_reader :address
|
|
98
99
|
|
|
@@ -142,7 +143,8 @@ module Lithic
|
|
|
142
143
|
end
|
|
143
144
|
def self.new(
|
|
144
145
|
# Individual's current address - PO boxes, UPS drops, and FedEx drops are not
|
|
145
|
-
# acceptable; APO/FPO are acceptable. Only USA addresses are
|
|
146
|
+
# acceptable; APO/FPO are acceptable. Only USA addresses are supported for the KYB
|
|
147
|
+
# and KYC workflows.
|
|
146
148
|
address:,
|
|
147
149
|
# Individual's date of birth, as an RFC 3339 date.
|
|
148
150
|
dob:,
|
|
@@ -78,6 +78,12 @@ module Lithic
|
|
|
78
78
|
sig { returns(Lithic::NonPCICard::State::TaggedSymbol) }
|
|
79
79
|
attr_accessor :state
|
|
80
80
|
|
|
81
|
+
# Key-value pairs for tagging resources. Tags allow you to associate arbitrary
|
|
82
|
+
# metadata with a resource for your own purposes. A resource can have at most 50
|
|
83
|
+
# tags, with keys up to 40 characters and values up to 500 characters
|
|
84
|
+
sig { returns(T::Hash[Symbol, String]) }
|
|
85
|
+
attr_accessor :tags
|
|
86
|
+
|
|
81
87
|
# Card types: _ `VIRTUAL` - Card will authorize at any merchant and can be added
|
|
82
88
|
# to a digital wallet like Apple Pay or Google Pay (if the card program is digital
|
|
83
89
|
# wallet-enabled). _ `PHYSICAL` - Manufactured and sent to the cardholder. We
|
|
@@ -215,6 +221,7 @@ module Lithic
|
|
|
215
221
|
spend_limit: Integer,
|
|
216
222
|
spend_limit_duration: Lithic::SpendLimitDuration::OrSymbol,
|
|
217
223
|
state: Lithic::NonPCICard::State::OrSymbol,
|
|
224
|
+
tags: T::Hash[Symbol, String],
|
|
218
225
|
type: Lithic::NonPCICard::Type::OrSymbol,
|
|
219
226
|
auth_rule_tokens: T::Array[String],
|
|
220
227
|
bulk_order_token: T.nilable(String),
|
|
@@ -280,6 +287,10 @@ module Lithic
|
|
|
280
287
|
# In sandbox, the same daily batch fulfillment occurs, but no cards are actually
|
|
281
288
|
# manufactured.
|
|
282
289
|
state:,
|
|
290
|
+
# Key-value pairs for tagging resources. Tags allow you to associate arbitrary
|
|
291
|
+
# metadata with a resource for your own purposes. A resource can have at most 50
|
|
292
|
+
# tags, with keys up to 40 characters and values up to 500 characters
|
|
293
|
+
tags:,
|
|
283
294
|
# Card types: _ `VIRTUAL` - Card will authorize at any merchant and can be added
|
|
284
295
|
# to a digital wallet like Apple Pay or Google Pay (if the card program is digital
|
|
285
296
|
# wallet-enabled). _ `PHYSICAL` - Manufactured and sent to the cardholder. We
|
|
@@ -366,6 +377,7 @@ module Lithic
|
|
|
366
377
|
spend_limit: Integer,
|
|
367
378
|
spend_limit_duration: Lithic::SpendLimitDuration::TaggedSymbol,
|
|
368
379
|
state: Lithic::NonPCICard::State::TaggedSymbol,
|
|
380
|
+
tags: T::Hash[Symbol, String],
|
|
369
381
|
type: Lithic::NonPCICard::Type::TaggedSymbol,
|
|
370
382
|
auth_rule_tokens: T::Array[String],
|
|
371
383
|
bulk_order_token: T.nilable(String),
|