lithic 0.2.0 → 0.3.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 +38 -0
- data/README.md +1 -1
- data/lib/lithic/client.rb +5 -10
- data/lib/lithic/internal/transport/pooled_net_requester.rb +12 -10
- data/lib/lithic/internal/util.rb +7 -2
- data/lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb +5 -0
- data/lib/lithic/models/book_transfer_retry_params.rb +26 -0
- data/lib/lithic/models/{asa_request_webhook_event.rb → card_authorization_approval_request_webhook_event.rb} +151 -129
- data/lib/lithic/models/external_payment_create_params.rb +15 -1
- data/lib/lithic/models/financial_account.rb +33 -25
- data/lib/lithic/models/financial_account_update_status_params.rb +9 -1
- data/lib/lithic/models/financial_accounts/loan_tape.rb +52 -3
- data/lib/lithic/models/management_operation_create_params.rb +6 -1
- data/lib/lithic/models/parsed_webhook_event.rb +3 -4
- data/lib/lithic/models/payment.rb +10 -1
- data/lib/lithic/models/three_ds_authentication_approval_request_webhook_event.rb +17 -0
- data/lib/lithic/models/transaction.rb +2 -0
- data/lib/lithic/models/transfer_limit_list_params.rb +22 -0
- data/lib/lithic/models/transfer_limits_response.rb +274 -0
- data/lib/lithic/models.rb +12 -6
- data/lib/lithic/resources/book_transfers.rb +27 -0
- data/lib/lithic/resources/cards.rb +1 -5
- data/lib/lithic/resources/external_payments.rb +13 -1
- data/lib/lithic/resources/financial_accounts.rb +3 -1
- data/lib/lithic/resources/management_operations.rb +4 -1
- data/lib/lithic/resources/transfer_limits.rb +37 -0
- data/lib/lithic/resources/webhooks.rb +3 -2
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +6 -7
- data/rbi/lithic/client.rbi +3 -3
- data/rbi/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbi +11 -0
- data/rbi/lithic/models/book_transfer_retry_params.rbi +42 -0
- data/rbi/lithic/models/{asa_request_webhook_event.rbi → card_authorization_approval_request_webhook_event.rbi} +394 -256
- data/rbi/lithic/models/external_payment_create_params.rbi +4 -0
- data/rbi/lithic/models/financial_account.rbi +62 -54
- data/rbi/lithic/models/financial_account_update_status_params.rbi +11 -0
- data/rbi/lithic/models/financial_accounts/loan_tape.rbi +93 -4
- data/rbi/lithic/models/management_operation_create_params.rbi +4 -0
- data/rbi/lithic/models/parsed_webhook_event.rbi +2 -2
- data/rbi/lithic/models/payment.rbi +13 -3
- data/rbi/lithic/models/three_ds_authentication_approval_request_webhook_event.rbi +27 -0
- data/rbi/lithic/models/transaction.rbi +10 -0
- data/rbi/lithic/models/transfer_limit_list_params.rbi +43 -0
- data/rbi/lithic/models/transfer_limits_response.rbi +604 -0
- data/rbi/lithic/models.rbi +12 -6
- data/rbi/lithic/resources/book_transfers.rbi +18 -0
- data/rbi/lithic/resources/cards.rbi +1 -4
- data/rbi/lithic/resources/external_payments.rbi +2 -0
- data/rbi/lithic/resources/financial_accounts.rbi +3 -0
- data/rbi/lithic/resources/management_operations.rbi +2 -0
- data/rbi/lithic/resources/transfer_limits.rbi +28 -0
- data/rbi/lithic/resources/webhooks.rbi +2 -124
- data/sig/lithic/client.rbs +2 -2
- data/sig/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbs +2 -0
- data/sig/lithic/models/book_transfer_retry_params.rbs +23 -0
- data/sig/lithic/models/{asa_request_webhook_event.rbs → card_authorization_approval_request_webhook_event.rbs} +161 -156
- data/sig/lithic/models/financial_account.rbs +32 -27
- data/sig/lithic/models/financial_account_update_status_params.rbs +8 -1
- data/sig/lithic/models/financial_accounts/loan_tape.rbs +46 -4
- data/sig/lithic/models/parsed_webhook_event.rbs +2 -2
- data/sig/lithic/models/payment.rbs +10 -3
- data/sig/lithic/models/three_ds_authentication_approval_request_webhook_event.rbs +22 -0
- data/sig/lithic/models/transaction.rbs +4 -0
- data/sig/lithic/models/transfer_limit_list_params.rbs +22 -0
- data/sig/lithic/models/transfer_limits_response.rbs +232 -0
- data/sig/lithic/models.rbs +10 -6
- data/sig/lithic/resources/book_transfers.rbs +6 -0
- data/sig/lithic/resources/cards.rbs +0 -2
- data/sig/lithic/resources/financial_accounts.rbs +1 -0
- data/sig/lithic/resources/transfer_limits.rbs +12 -0
- data/sig/lithic/resources/webhooks.rbs +2 -116
- metadata +20 -23
- data/lib/lithic/models/aggregate_balance.rb +0 -113
- data/lib/lithic/models/aggregate_balance_list_params.rb +0 -35
- data/lib/lithic/models/cards/aggregate_balance_list_params.rb +0 -32
- data/lib/lithic/models/cards/aggregate_balance_list_response.rb +0 -92
- data/lib/lithic/resources/aggregate_balances.rb +0 -38
- data/lib/lithic/resources/cards/aggregate_balances.rb +0 -41
- data/rbi/lithic/models/aggregate_balance.rbi +0 -164
- data/rbi/lithic/models/aggregate_balance_list_params.rbi +0 -104
- data/rbi/lithic/models/cards/aggregate_balance_list_params.rbi +0 -62
- data/rbi/lithic/models/cards/aggregate_balance_list_response.rbi +0 -115
- data/rbi/lithic/resources/aggregate_balances.rbi +0 -28
- data/rbi/lithic/resources/cards/aggregate_balances.rbi +0 -35
- data/sig/lithic/models/aggregate_balance.rbs +0 -78
- data/sig/lithic/models/aggregate_balance_list_params.rbs +0 -43
- data/sig/lithic/models/cards/aggregate_balance_list_params.rbs +0 -34
- data/sig/lithic/models/cards/aggregate_balance_list_response.rbs +0 -62
- data/sig/lithic/resources/aggregate_balances.rbs +0 -12
- data/sig/lithic/resources/cards/aggregate_balances.rbs +0 -15
|
@@ -113,6 +113,7 @@ module Lithic
|
|
|
113
113
|
T.nilable(
|
|
114
114
|
Lithic::FinancialAccountUpdateStatusParams::Substatus::OrSymbol
|
|
115
115
|
),
|
|
116
|
+
user_defined_status: String,
|
|
116
117
|
request_options: Lithic::RequestOptions::OrHash
|
|
117
118
|
).returns(Lithic::FinancialAccount)
|
|
118
119
|
end
|
|
@@ -123,6 +124,8 @@ module Lithic
|
|
|
123
124
|
status:,
|
|
124
125
|
# Substatus for the financial account
|
|
125
126
|
substatus:,
|
|
127
|
+
# User-defined status for the financial account
|
|
128
|
+
user_defined_status: nil,
|
|
126
129
|
request_options: {}
|
|
127
130
|
)
|
|
128
131
|
end
|
|
@@ -30,6 +30,8 @@ module Lithic
|
|
|
30
30
|
effective_date:,
|
|
31
31
|
event_type:,
|
|
32
32
|
financial_account_token:,
|
|
33
|
+
# Customer-provided token that will serve as an idempotency token. This token will
|
|
34
|
+
# become the transaction token.
|
|
33
35
|
token: nil,
|
|
34
36
|
memo: nil,
|
|
35
37
|
# What to do if the financial account is closed when posting an operation
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Resources
|
|
5
|
+
class TransferLimits
|
|
6
|
+
# Get transfer limits for a specified date
|
|
7
|
+
sig do
|
|
8
|
+
params(
|
|
9
|
+
date: Date,
|
|
10
|
+
request_options: Lithic::RequestOptions::OrHash
|
|
11
|
+
).returns(
|
|
12
|
+
Lithic::Internal::SinglePage[Lithic::TransferLimitsResponse::Data]
|
|
13
|
+
)
|
|
14
|
+
end
|
|
15
|
+
def list(
|
|
16
|
+
# Date for which to retrieve transfer limits (ISO 8601 format)
|
|
17
|
+
date: nil,
|
|
18
|
+
request_options: {}
|
|
19
|
+
)
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
# @api private
|
|
23
|
+
sig { params(client: Lithic::Client).returns(T.attached_class) }
|
|
24
|
+
def self.new(client:)
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -8,134 +8,12 @@ module Lithic
|
|
|
8
8
|
payload: String,
|
|
9
9
|
headers: T::Hash[String, String],
|
|
10
10
|
secret: T.nilable(String)
|
|
11
|
-
).returns(
|
|
12
|
-
T.any(
|
|
13
|
-
Lithic::AccountHolderCreatedWebhookEvent,
|
|
14
|
-
Lithic::ParsedWebhookEvent::KYBPayload,
|
|
15
|
-
Lithic::ParsedWebhookEvent::KYCPayload,
|
|
16
|
-
Lithic::ParsedWebhookEvent::LegacyPayload,
|
|
17
|
-
Lithic::AccountHolderVerificationWebhookEvent,
|
|
18
|
-
Lithic::AccountHolderDocumentUpdatedWebhookEvent,
|
|
19
|
-
Lithic::AsaRequestWebhookEvent,
|
|
20
|
-
Lithic::TokenizationDecisioningRequestWebhookEvent,
|
|
21
|
-
Lithic::AuthRulesBacktestReportCreatedWebhookEvent,
|
|
22
|
-
Lithic::BalanceUpdatedWebhookEvent,
|
|
23
|
-
Lithic::BookTransferTransactionCreatedWebhookEvent,
|
|
24
|
-
Lithic::BookTransferTransactionUpdatedWebhookEvent,
|
|
25
|
-
Lithic::CardCreatedWebhookEvent,
|
|
26
|
-
Lithic::CardConvertedWebhookEvent,
|
|
27
|
-
Lithic::CardRenewedWebhookEvent,
|
|
28
|
-
Lithic::CardReissuedWebhookEvent,
|
|
29
|
-
Lithic::CardShippedWebhookEvent,
|
|
30
|
-
Lithic::CardTransactionUpdatedWebhookEvent,
|
|
31
|
-
Lithic::CardTransactionEnhancedDataCreatedWebhookEvent,
|
|
32
|
-
Lithic::CardTransactionEnhancedDataUpdatedWebhookEvent,
|
|
33
|
-
Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent,
|
|
34
|
-
Lithic::DigitalWalletTokenizationResultWebhookEvent,
|
|
35
|
-
Lithic::DigitalWalletTokenizationTwoFactorAuthenticationCodeWebhookEvent,
|
|
36
|
-
Lithic::DigitalWalletTokenizationTwoFactorAuthenticationCodeSentWebhookEvent,
|
|
37
|
-
Lithic::DigitalWalletTokenizationUpdatedWebhookEvent,
|
|
38
|
-
Lithic::DisputeUpdatedWebhookEvent,
|
|
39
|
-
Lithic::DisputeEvidenceUploadFailedWebhookEvent,
|
|
40
|
-
Lithic::ExternalBankAccountCreatedWebhookEvent,
|
|
41
|
-
Lithic::ExternalBankAccountUpdatedWebhookEvent,
|
|
42
|
-
Lithic::ExternalPaymentCreatedWebhookEvent,
|
|
43
|
-
Lithic::ExternalPaymentUpdatedWebhookEvent,
|
|
44
|
-
Lithic::FinancialAccountCreatedWebhookEvent,
|
|
45
|
-
Lithic::FinancialAccountUpdatedWebhookEvent,
|
|
46
|
-
Lithic::FundingEventCreatedWebhookEvent,
|
|
47
|
-
Lithic::LoanTapeCreatedWebhookEvent,
|
|
48
|
-
Lithic::LoanTapeUpdatedWebhookEvent,
|
|
49
|
-
Lithic::ManagementOperationCreatedWebhookEvent,
|
|
50
|
-
Lithic::ManagementOperationUpdatedWebhookEvent,
|
|
51
|
-
Lithic::InternalTransactionCreatedWebhookEvent,
|
|
52
|
-
Lithic::InternalTransactionUpdatedWebhookEvent,
|
|
53
|
-
Lithic::NetworkTotalCreatedWebhookEvent,
|
|
54
|
-
Lithic::NetworkTotalUpdatedWebhookEvent,
|
|
55
|
-
Lithic::PaymentTransactionCreatedWebhookEvent,
|
|
56
|
-
Lithic::PaymentTransactionUpdatedWebhookEvent,
|
|
57
|
-
Lithic::SettlementReportUpdatedWebhookEvent,
|
|
58
|
-
Lithic::StatementsCreatedWebhookEvent,
|
|
59
|
-
Lithic::ThreeDSAuthenticationCreatedWebhookEvent,
|
|
60
|
-
Lithic::ThreeDSAuthenticationUpdatedWebhookEvent,
|
|
61
|
-
Lithic::ThreeDSAuthenticationChallengeWebhookEvent,
|
|
62
|
-
Lithic::TokenizationApprovalRequestWebhookEvent,
|
|
63
|
-
Lithic::TokenizationResultWebhookEvent,
|
|
64
|
-
Lithic::TokenizationTwoFactorAuthenticationCodeWebhookEvent,
|
|
65
|
-
Lithic::TokenizationTwoFactorAuthenticationCodeSentWebhookEvent,
|
|
66
|
-
Lithic::TokenizationUpdatedWebhookEvent,
|
|
67
|
-
Lithic::ThreeDSAuthentication,
|
|
68
|
-
Lithic::DisputeTransactionCreatedWebhookEvent,
|
|
69
|
-
Lithic::DisputeTransactionUpdatedWebhookEvent
|
|
70
|
-
)
|
|
71
|
-
)
|
|
11
|
+
).returns(Lithic::ParsedWebhookEvent::Variants)
|
|
72
12
|
end
|
|
73
13
|
def parse(payload, headers:, secret: nil)
|
|
74
14
|
end
|
|
75
15
|
|
|
76
|
-
sig
|
|
77
|
-
params(payload: String).returns(
|
|
78
|
-
T.any(
|
|
79
|
-
Lithic::AccountHolderCreatedWebhookEvent,
|
|
80
|
-
Lithic::ParsedWebhookEvent::KYBPayload,
|
|
81
|
-
Lithic::ParsedWebhookEvent::KYCPayload,
|
|
82
|
-
Lithic::ParsedWebhookEvent::LegacyPayload,
|
|
83
|
-
Lithic::AccountHolderVerificationWebhookEvent,
|
|
84
|
-
Lithic::AccountHolderDocumentUpdatedWebhookEvent,
|
|
85
|
-
Lithic::AsaRequestWebhookEvent,
|
|
86
|
-
Lithic::TokenizationDecisioningRequestWebhookEvent,
|
|
87
|
-
Lithic::AuthRulesBacktestReportCreatedWebhookEvent,
|
|
88
|
-
Lithic::BalanceUpdatedWebhookEvent,
|
|
89
|
-
Lithic::BookTransferTransactionCreatedWebhookEvent,
|
|
90
|
-
Lithic::BookTransferTransactionUpdatedWebhookEvent,
|
|
91
|
-
Lithic::CardCreatedWebhookEvent,
|
|
92
|
-
Lithic::CardConvertedWebhookEvent,
|
|
93
|
-
Lithic::CardRenewedWebhookEvent,
|
|
94
|
-
Lithic::CardReissuedWebhookEvent,
|
|
95
|
-
Lithic::CardShippedWebhookEvent,
|
|
96
|
-
Lithic::CardTransactionUpdatedWebhookEvent,
|
|
97
|
-
Lithic::CardTransactionEnhancedDataCreatedWebhookEvent,
|
|
98
|
-
Lithic::CardTransactionEnhancedDataUpdatedWebhookEvent,
|
|
99
|
-
Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent,
|
|
100
|
-
Lithic::DigitalWalletTokenizationResultWebhookEvent,
|
|
101
|
-
Lithic::DigitalWalletTokenizationTwoFactorAuthenticationCodeWebhookEvent,
|
|
102
|
-
Lithic::DigitalWalletTokenizationTwoFactorAuthenticationCodeSentWebhookEvent,
|
|
103
|
-
Lithic::DigitalWalletTokenizationUpdatedWebhookEvent,
|
|
104
|
-
Lithic::DisputeUpdatedWebhookEvent,
|
|
105
|
-
Lithic::DisputeEvidenceUploadFailedWebhookEvent,
|
|
106
|
-
Lithic::ExternalBankAccountCreatedWebhookEvent,
|
|
107
|
-
Lithic::ExternalBankAccountUpdatedWebhookEvent,
|
|
108
|
-
Lithic::ExternalPaymentCreatedWebhookEvent,
|
|
109
|
-
Lithic::ExternalPaymentUpdatedWebhookEvent,
|
|
110
|
-
Lithic::FinancialAccountCreatedWebhookEvent,
|
|
111
|
-
Lithic::FinancialAccountUpdatedWebhookEvent,
|
|
112
|
-
Lithic::FundingEventCreatedWebhookEvent,
|
|
113
|
-
Lithic::LoanTapeCreatedWebhookEvent,
|
|
114
|
-
Lithic::LoanTapeUpdatedWebhookEvent,
|
|
115
|
-
Lithic::ManagementOperationCreatedWebhookEvent,
|
|
116
|
-
Lithic::ManagementOperationUpdatedWebhookEvent,
|
|
117
|
-
Lithic::InternalTransactionCreatedWebhookEvent,
|
|
118
|
-
Lithic::InternalTransactionUpdatedWebhookEvent,
|
|
119
|
-
Lithic::NetworkTotalCreatedWebhookEvent,
|
|
120
|
-
Lithic::NetworkTotalUpdatedWebhookEvent,
|
|
121
|
-
Lithic::PaymentTransactionCreatedWebhookEvent,
|
|
122
|
-
Lithic::PaymentTransactionUpdatedWebhookEvent,
|
|
123
|
-
Lithic::SettlementReportUpdatedWebhookEvent,
|
|
124
|
-
Lithic::StatementsCreatedWebhookEvent,
|
|
125
|
-
Lithic::ThreeDSAuthenticationCreatedWebhookEvent,
|
|
126
|
-
Lithic::ThreeDSAuthenticationUpdatedWebhookEvent,
|
|
127
|
-
Lithic::ThreeDSAuthenticationChallengeWebhookEvent,
|
|
128
|
-
Lithic::TokenizationApprovalRequestWebhookEvent,
|
|
129
|
-
Lithic::TokenizationResultWebhookEvent,
|
|
130
|
-
Lithic::TokenizationTwoFactorAuthenticationCodeWebhookEvent,
|
|
131
|
-
Lithic::TokenizationTwoFactorAuthenticationCodeSentWebhookEvent,
|
|
132
|
-
Lithic::TokenizationUpdatedWebhookEvent,
|
|
133
|
-
Lithic::ThreeDSAuthentication,
|
|
134
|
-
Lithic::DisputeTransactionCreatedWebhookEvent,
|
|
135
|
-
Lithic::DisputeTransactionUpdatedWebhookEvent
|
|
136
|
-
)
|
|
137
|
-
)
|
|
138
|
-
end
|
|
16
|
+
sig { params(payload: String).returns(Lithic::ParsedWebhookEvent::Variants) }
|
|
139
17
|
def parse_unsafe(payload)
|
|
140
18
|
end
|
|
141
19
|
|
data/sig/lithic/client.rbs
CHANGED
|
@@ -33,8 +33,6 @@ module Lithic
|
|
|
33
33
|
|
|
34
34
|
attr_reader balances: Lithic::Resources::Balances
|
|
35
35
|
|
|
36
|
-
attr_reader aggregate_balances: Lithic::Resources::AggregateBalances
|
|
37
|
-
|
|
38
36
|
attr_reader disputes: Lithic::Resources::Disputes
|
|
39
37
|
|
|
40
38
|
attr_reader disputes_v2: Lithic::Resources::DisputesV2
|
|
@@ -79,6 +77,8 @@ module Lithic
|
|
|
79
77
|
|
|
80
78
|
attr_reader account_activity: Lithic::Resources::AccountActivity
|
|
81
79
|
|
|
80
|
+
attr_reader transfer_limits: Lithic::Resources::TransferLimits
|
|
81
|
+
|
|
82
82
|
attr_reader webhooks: Lithic::Resources::Webhooks
|
|
83
83
|
|
|
84
84
|
def api_status: (
|
|
@@ -215,6 +215,7 @@ module Lithic
|
|
|
215
215
|
| :WALLET_RECOMMENDATION_REASONS
|
|
216
216
|
| :TOKEN_REQUESTOR_ID
|
|
217
217
|
| :WALLET_TOKEN_STATUS
|
|
218
|
+
| :CARD_STATE
|
|
218
219
|
|
|
219
220
|
module Attribute
|
|
220
221
|
extend Lithic::Internal::Type::Enum
|
|
@@ -229,6 +230,7 @@ module Lithic
|
|
|
229
230
|
WALLET_RECOMMENDATION_REASONS: :WALLET_RECOMMENDATION_REASONS
|
|
230
231
|
TOKEN_REQUESTOR_ID: :TOKEN_REQUESTOR_ID
|
|
231
232
|
WALLET_TOKEN_STATUS: :WALLET_TOKEN_STATUS
|
|
233
|
+
CARD_STATE: :CARD_STATE
|
|
232
234
|
|
|
233
235
|
def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Condition::attribute]
|
|
234
236
|
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
module Lithic
|
|
2
|
+
module Models
|
|
3
|
+
type book_transfer_retry_params =
|
|
4
|
+
{ retry_token: String } & Lithic::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class BookTransferRetryParams < Lithic::Internal::Type::BaseModel
|
|
7
|
+
extend Lithic::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Lithic::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
attr_accessor retry_token: String
|
|
11
|
+
|
|
12
|
+
def initialize: (
|
|
13
|
+
retry_token: String,
|
|
14
|
+
?request_options: Lithic::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
retry_token: String,
|
|
19
|
+
request_options: Lithic::RequestOptions
|
|
20
|
+
}
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|