lithic 0.1.0.pre.alpha.40 → 0.1.0.pre.alpha.42
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 +22 -0
- data/README.md +1 -1
- data/lib/lithic/client.rb +4 -0
- data/lib/lithic/internal/transport/base_client.rb +1 -1
- data/lib/lithic/internal/transport/pooled_net_requester.rb +1 -9
- data/lib/lithic/internal/type/array_of.rb +1 -0
- data/lib/lithic/internal/type/base_model.rb +3 -1
- data/lib/lithic/internal/type/converter.rb +27 -0
- data/lib/lithic/internal/type/hash_of.rb +1 -0
- data/lib/lithic/internal/type/union.rb +9 -7
- data/lib/lithic/internal/util.rb +1 -1
- data/lib/lithic/models/account_activity_list_params.rb +158 -0
- data/lib/lithic/models/account_activity_list_response.rb +1435 -0
- data/lib/lithic/models/account_activity_retrieve_transaction_params.rb +14 -0
- data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +1451 -0
- data/lib/lithic/models/account_holder.rb +16 -19
- data/lib/lithic/models/account_holder_create_params.rb +41 -47
- data/lib/lithic/models/account_holder_simulate_enrollment_review_params.rb +1 -3
- data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +25 -20
- data/lib/lithic/models/account_holder_update_params.rb +2 -6
- data/lib/lithic/models/account_holder_update_response.rb +25 -20
- data/lib/lithic/models/auth_rules/auth_rule_condition.rb +5 -1
- data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +8 -12
- data/lib/lithic/models/auth_rules/v2_apply_params.rb +13 -5
- data/lib/lithic/models/auth_rules/v2_apply_response.rb +510 -18
- data/lib/lithic/models/auth_rules/v2_create_params.rb +283 -16
- data/lib/lithic/models/auth_rules/v2_create_response.rb +510 -18
- data/lib/lithic/models/auth_rules/v2_draft_params.rb +239 -3
- data/lib/lithic/models/auth_rules/v2_draft_response.rb +510 -18
- data/lib/lithic/models/auth_rules/v2_list_params.rb +11 -1
- data/lib/lithic/models/auth_rules/v2_list_response.rb +510 -18
- data/lib/lithic/models/auth_rules/v2_promote_response.rb +510 -18
- data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +510 -18
- data/lib/lithic/models/auth_rules/v2_update_params.rb +1 -9
- data/lib/lithic/models/auth_rules/v2_update_response.rb +510 -18
- data/lib/lithic/models/auth_rules/velocity_limit_params_period_window.rb +4 -16
- data/lib/lithic/models/book_transfer_create_params.rb +34 -6
- data/lib/lithic/models/book_transfer_response.rb +124 -28
- data/lib/lithic/models/document.rb +1 -3
- data/lib/lithic/models/event.rb +6 -0
- data/lib/lithic/models/event_list_params.rb +2 -0
- data/lib/lithic/models/event_subscription.rb +2 -0
- data/lib/lithic/models/events/subscription_create_params.rb +3 -3
- data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +2 -0
- data/lib/lithic/models/events/subscription_update_params.rb +3 -3
- data/lib/lithic/models/external_bank_account_list_params.rb +2 -6
- data/lib/lithic/models/external_payment.rb +89 -48
- data/lib/lithic/models/financial_account.rb +1 -0
- data/lib/lithic/models/financial_accounts/loan_tape.rb +5 -18
- data/lib/lithic/models/financial_accounts/statement.rb +3 -10
- data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +2 -7
- data/lib/lithic/models/financial_transaction.rb +2 -0
- data/lib/lithic/models/instance_financial_account_type.rb +1 -0
- data/lib/lithic/models/kyb.rb +2 -2
- data/lib/lithic/models/management_operation_transaction.rb +90 -63
- data/lib/lithic/models/payment.rb +60 -1
- data/lib/lithic/models/reports/settlement_list_details_params.rb +2 -2
- data/lib/lithic/models/settlement_detail.rb +1 -0
- data/lib/lithic/models/three_ds/authentication_retrieve_response.rb +173 -38
- data/lib/lithic/models/three_ds/authentication_simulate_params.rb +1 -4
- data/lib/lithic/models/tokenization.rb +1 -1
- data/lib/lithic/models/transaction.rb +4 -0
- data/lib/lithic/models/transactions/events/enhanced_data.rb +3 -11
- data/lib/lithic/models/transfer.rb +2 -0
- data/lib/lithic/models/wire_party_details.rb +40 -0
- data/lib/lithic/models.rb +6 -0
- data/lib/lithic/resources/account_activity.rb +80 -0
- data/lib/lithic/resources/account_holders.rb +9 -9
- data/lib/lithic/resources/auth_rules/v2/backtests.rb +3 -3
- data/lib/lithic/resources/auth_rules/v2.rb +19 -13
- data/lib/lithic/resources/book_transfers.rb +7 -3
- data/lib/lithic/resources/reports/settlement.rb +1 -1
- data/lib/lithic/resources/tokenizations.rb +2 -2
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +7 -2
- data/rbi/lithic/client.rbi +3 -0
- data/rbi/lithic/errors.rbi +2 -2
- data/rbi/lithic/internal/transport/base_client.rbi +1 -1
- data/rbi/lithic/internal/type/converter.rbi +46 -0
- data/rbi/lithic/internal/type/union.rbi +7 -2
- data/rbi/lithic/models/account_activity_list_params.rbi +347 -0
- data/rbi/lithic/models/account_activity_list_response.rbi +3367 -0
- data/rbi/lithic/models/account_activity_retrieve_transaction_params.rbi +30 -0
- data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +3369 -0
- data/rbi/lithic/models/account_holder.rbi +21 -23
- data/rbi/lithic/models/account_holder_create_params.rbi +87 -65
- data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +36 -30
- data/rbi/lithic/models/account_holder_update_response.rbi +36 -30
- data/rbi/lithic/models/auth_rules/auth_rule_condition.rbi +20 -0
- data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +20 -0
- data/rbi/lithic/models/auth_rules/v2_apply_params.rbi +19 -5
- data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +1128 -18
- data/rbi/lithic/models/auth_rules/v2_create_params.rbi +646 -21
- data/rbi/lithic/models/auth_rules/v2_create_response.rbi +1128 -18
- data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +554 -4
- data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +1128 -18
- data/rbi/lithic/models/auth_rules/v2_list_params.rbi +18 -0
- data/rbi/lithic/models/auth_rules/v2_list_response.rbi +1128 -18
- data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +1128 -18
- data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +1128 -18
- data/rbi/lithic/models/auth_rules/v2_update_params.rbi +0 -11
- data/rbi/lithic/models/auth_rules/v2_update_response.rbi +1128 -18
- data/rbi/lithic/models/book_transfer_create_params.rbi +75 -5
- data/rbi/lithic/models/book_transfer_response.rbi +320 -38
- data/rbi/lithic/models/event.rbi +16 -0
- data/rbi/lithic/models/event_list_params.rbi +10 -0
- data/rbi/lithic/models/event_subscription.rbi +10 -0
- data/rbi/lithic/models/events/subscription_create_params.rbi +10 -0
- data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +10 -0
- data/rbi/lithic/models/events/subscription_update_params.rbi +10 -0
- data/rbi/lithic/models/external_payment.rbi +147 -60
- data/rbi/lithic/models/financial_account.rbi +5 -0
- data/rbi/lithic/models/financial_transaction.rbi +1 -0
- data/rbi/lithic/models/instance_financial_account_type.rbi +5 -0
- data/rbi/lithic/models/kyb.rbi +2 -2
- data/rbi/lithic/models/management_operation_transaction.rbi +226 -95
- data/rbi/lithic/models/payment.rbi +103 -3
- data/rbi/lithic/models/reports/settlement_list_details_params.rbi +2 -2
- data/rbi/lithic/models/settlement_detail.rbi +2 -0
- data/rbi/lithic/models/three_ds/authentication_retrieve_response.rbi +267 -60
- data/rbi/lithic/models/transaction.rbi +17 -0
- data/rbi/lithic/models/transfer.rbi +1 -0
- data/rbi/lithic/models/wire_party_details.rbi +61 -0
- data/rbi/lithic/models.rbi +7 -0
- data/rbi/lithic/resources/account_activity.rbi +80 -0
- data/rbi/lithic/resources/account_holders.rbi +28 -29
- data/rbi/lithic/resources/auth_rules/v2/backtests.rbi +3 -3
- data/rbi/lithic/resources/auth_rules/v2.rbi +28 -14
- data/rbi/lithic/resources/book_transfers.rbi +9 -2
- data/rbi/lithic/resources/reports/settlement.rbi +1 -1
- data/rbi/lithic/resources/tokenizations.rbi +1 -1
- data/sig/lithic/client.rbs +2 -0
- data/sig/lithic/internal/transport/base_client.rbs +1 -1
- data/sig/lithic/internal/type/converter.rbs +17 -0
- data/sig/lithic/internal/type/union.rbs +2 -2
- data/sig/lithic/models/account_activity_list_params.rbs +173 -0
- data/sig/lithic/models/account_activity_list_response.rbs +1353 -0
- data/sig/lithic/models/account_activity_retrieve_transaction_params.rbs +15 -0
- data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +1353 -0
- data/sig/lithic/models/account_holder_create_params.rbs +33 -19
- data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +10 -3
- data/sig/lithic/models/account_holder_update_response.rbs +10 -3
- data/sig/lithic/models/auth_rules/auth_rule_condition.rbs +8 -0
- data/sig/lithic/models/auth_rules/conditional_3ds_action_parameters.rbs +8 -0
- data/sig/lithic/models/auth_rules/v2_apply_params.rbs +11 -2
- data/sig/lithic/models/auth_rules/v2_apply_response.rbs +317 -2
- data/sig/lithic/models/auth_rules/v2_create_params.rbs +188 -4
- data/sig/lithic/models/auth_rules/v2_create_response.rbs +317 -2
- data/sig/lithic/models/auth_rules/v2_draft_params.rbs +155 -0
- data/sig/lithic/models/auth_rules/v2_draft_response.rbs +317 -2
- data/sig/lithic/models/auth_rules/v2_list_params.rbs +10 -1
- data/sig/lithic/models/auth_rules/v2_list_response.rbs +317 -2
- data/sig/lithic/models/auth_rules/v2_promote_response.rbs +317 -2
- data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +317 -2
- data/sig/lithic/models/auth_rules/v2_update_params.rbs +0 -7
- data/sig/lithic/models/auth_rules/v2_update_response.rbs +317 -2
- data/sig/lithic/models/book_transfer_create_params.rbs +30 -1
- data/sig/lithic/models/book_transfer_response.rbs +134 -15
- data/sig/lithic/models/event.rbs +4 -0
- data/sig/lithic/models/event_list_params.rbs +4 -0
- data/sig/lithic/models/event_subscription.rbs +4 -0
- data/sig/lithic/models/events/subscription_create_params.rbs +4 -0
- data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +4 -0
- data/sig/lithic/models/events/subscription_update_params.rbs +4 -0
- data/sig/lithic/models/external_payment.rbs +91 -40
- data/sig/lithic/models/financial_account.rbs +2 -0
- data/sig/lithic/models/instance_financial_account_type.rbs +2 -0
- data/sig/lithic/models/management_operation_transaction.rbs +95 -44
- data/sig/lithic/models/payment.rbs +61 -3
- data/sig/lithic/models/settlement_detail.rbs +2 -0
- data/sig/lithic/models/three_ds/authentication_retrieve_response.rbs +110 -23
- data/sig/lithic/models/transaction.rbs +10 -2
- data/sig/lithic/models/wire_party_details.rbs +35 -0
- data/sig/lithic/models.rbs +6 -0
- data/sig/lithic/resources/account_activity.rbs +27 -0
- data/sig/lithic/resources/account_holders.rbs +3 -3
- data/sig/lithic/resources/auth_rules/v2.rbs +6 -3
- data/sig/lithic/resources/book_transfers.rbs +2 -0
- data/sig/lithic/resources/tokenizations.rbs +1 -1
- metadata +20 -5
- data/lib/lithic/models/tokenization_retrieve_response.rb +0 -16
- data/rbi/lithic/models/tokenization_retrieve_response.rbi +0 -31
- data/sig/lithic/models/tokenization_retrieve_response.rbs +0 -15
@@ -0,0 +1,80 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Lithic
|
4
|
+
module Resources
|
5
|
+
class AccountActivity
|
6
|
+
# Some parameter documentations has been truncated, see
|
7
|
+
# {Lithic::Models::AccountActivityListParams} for more details.
|
8
|
+
#
|
9
|
+
# Retrieve a list of transactions across all public accounts.
|
10
|
+
#
|
11
|
+
# @overload list(account_token: nil, begin_: nil, business_account_token: nil, category: nil, end_: nil, ending_before: nil, financial_account_token: nil, page_size: nil, result: nil, starting_after: nil, status: nil, request_options: {})
|
12
|
+
#
|
13
|
+
# @param account_token [String] Filter by account token
|
14
|
+
#
|
15
|
+
# @param begin_ [Time] Date string in RFC 3339 format. Only entries created after the specified time wi
|
16
|
+
#
|
17
|
+
# @param business_account_token [String] Filter by business account token
|
18
|
+
#
|
19
|
+
# @param category [Symbol, Lithic::Models::AccountActivityListParams::Category] Filter by transaction category
|
20
|
+
#
|
21
|
+
# @param end_ [Time] Date string in RFC 3339 format. Only entries created before the specified time w
|
22
|
+
#
|
23
|
+
# @param ending_before [String] A cursor representing an item's token before which a page of results should end.
|
24
|
+
#
|
25
|
+
# @param financial_account_token [String] Filter by financial account token
|
26
|
+
#
|
27
|
+
# @param page_size [Integer] Page size (for pagination).
|
28
|
+
#
|
29
|
+
# @param result [Symbol, Lithic::Models::AccountActivityListParams::Result] Filter by transaction result
|
30
|
+
#
|
31
|
+
# @param starting_after [String] A cursor representing an item's token after which a page of results should begin
|
32
|
+
#
|
33
|
+
# @param status [Symbol, Lithic::Models::AccountActivityListParams::Status] Filter by transaction status
|
34
|
+
#
|
35
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
36
|
+
#
|
37
|
+
# @return [Lithic::Internal::CursorPage<Lithic::Models::AccountActivityListResponse::FinancialTransaction, Lithic::Models::AccountActivityListResponse::BookTransferTransaction, Lithic::Models::AccountActivityListResponse::CardTransaction, Lithic::Models::AccountActivityListResponse::PaymentTransaction, Lithic::Models::ExternalPayment, Lithic::Models::ManagementOperationTransaction>]
|
38
|
+
#
|
39
|
+
# @see Lithic::Models::AccountActivityListParams
|
40
|
+
def list(params = {})
|
41
|
+
parsed, options = Lithic::AccountActivityListParams.dump_request(params)
|
42
|
+
@client.request(
|
43
|
+
method: :get,
|
44
|
+
path: "v1/account_activity",
|
45
|
+
query: parsed.transform_keys(begin_: "begin", end_: "end"),
|
46
|
+
page: Lithic::Internal::CursorPage,
|
47
|
+
model: Lithic::Models::AccountActivityListResponse,
|
48
|
+
options: options
|
49
|
+
)
|
50
|
+
end
|
51
|
+
|
52
|
+
# Retrieve a single transaction
|
53
|
+
#
|
54
|
+
# @overload retrieve_transaction(transaction_token, request_options: {})
|
55
|
+
#
|
56
|
+
# @param transaction_token [String] The unique identifier for the transaction
|
57
|
+
#
|
58
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
59
|
+
#
|
60
|
+
# @return [Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction, Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction, Lithic::Models::AccountActivityRetrieveTransactionResponse::CardTransaction, Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction, Lithic::Models::ExternalPayment, Lithic::Models::ManagementOperationTransaction]
|
61
|
+
#
|
62
|
+
# @see Lithic::Models::AccountActivityRetrieveTransactionParams
|
63
|
+
def retrieve_transaction(transaction_token, params = {})
|
64
|
+
@client.request(
|
65
|
+
method: :get,
|
66
|
+
path: ["v1/account_activity/%1$s", transaction_token],
|
67
|
+
model: Lithic::Models::AccountActivityRetrieveTransactionResponse,
|
68
|
+
options: params[:request_options]
|
69
|
+
)
|
70
|
+
end
|
71
|
+
|
72
|
+
# @api private
|
73
|
+
#
|
74
|
+
# @param client [Lithic::Client]
|
75
|
+
def initialize(client:)
|
76
|
+
@client = client
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
@@ -15,15 +15,9 @@ module Lithic
|
|
15
15
|
# process. This endpoint can only be used on accounts that are part of the program
|
16
16
|
# that the calling API key manages.
|
17
17
|
#
|
18
|
-
# @overload create(
|
18
|
+
# @overload create(business_entity:, tos_timestamp:, workflow:, individual:, address:, email:, first_name:, kyc_exemption_type:, last_name:, phone_number:, beneficial_owner_individuals: nil, control_person: nil, nature_of_business: nil, beneficial_owner_entities: nil, external_id: nil, kyb_passed_timestamp: nil, website_url: nil, kyc_passed_timestamp: nil, business_account_token: nil, request_options: {})
|
19
19
|
#
|
20
|
-
# @param
|
21
|
-
#
|
22
|
-
# @param business_entity [Lithic::Models::AccountHolderCreateParams::BusinessEntity] Information for business for which the account is being opened and KYB is being
|
23
|
-
#
|
24
|
-
# @param control_person [Lithic::Models::AccountHolderCreateParams::ControlPerson] An individual with significant responsibility for managing the legal entity (e.g
|
25
|
-
#
|
26
|
-
# @param nature_of_business [String] Short description of the company's line of business (i.e., what does the company
|
20
|
+
# @param business_entity [Lithic::Models::AccountHolderCreateParams::BusinessEntity] Information for business for which the account is being opened.
|
27
21
|
#
|
28
22
|
# @param tos_timestamp [String] An RFC 3339 timestamp indicating when the account holder accepted the applicable
|
29
23
|
#
|
@@ -43,11 +37,17 @@ module Lithic
|
|
43
37
|
#
|
44
38
|
# @param phone_number [String] The KYC Exempt user's phone number, entered in E.164 format.
|
45
39
|
#
|
40
|
+
# @param beneficial_owner_individuals [Array<Lithic::Models::AccountHolderCreateParams::BeneficialOwnerIndividual>] You can submit a list of all direct and indirect individuals with 25% or more ow
|
41
|
+
#
|
42
|
+
# @param control_person [Lithic::Models::AccountHolderCreateParams::ControlPerson] An individual with significant responsibility for managing the legal entity (e.g
|
43
|
+
#
|
44
|
+
# @param nature_of_business [String] Short description of the company's line of business (i.e., what does the company
|
45
|
+
#
|
46
46
|
# @param beneficial_owner_entities [Array<Lithic::Models::AccountHolderCreateParams::BeneficialOwnerEntity>] Deprecated.
|
47
47
|
#
|
48
48
|
# @param external_id [String] A user provided id that can be used to link an account holder with an external s
|
49
49
|
#
|
50
|
-
# @param kyb_passed_timestamp [String] An RFC 3339 timestamp indicating when precomputed
|
50
|
+
# @param kyb_passed_timestamp [String] An RFC 3339 timestamp indicating when precomputed KYB was completed on the busin
|
51
51
|
#
|
52
52
|
# @param website_url [String] Company website URL.
|
53
53
|
#
|
@@ -23,9 +23,9 @@ module Lithic
|
|
23
23
|
# endpoint.
|
24
24
|
#
|
25
25
|
# Lithic currently supports backtesting for `CONDITIONAL_BLOCK` /
|
26
|
-
# `
|
27
|
-
#
|
28
|
-
#
|
26
|
+
# `CONDITIONAL_ACTION` rules. Backtesting for `VELOCITY_LIMIT` rules is generally
|
27
|
+
# not supported. In specific cases (i.e. where Lithic has pre-calculated the
|
28
|
+
# requested velocity metrics for historical transactions), a backtest may be
|
29
29
|
# feasible. However, such cases are uncommon and customers should not anticipate
|
30
30
|
# support for velocity backtests under most configurations. If a historical
|
31
31
|
# transaction does not feature the required inputs to evaluate the rule, then it
|
@@ -12,19 +12,23 @@ module Lithic
|
|
12
12
|
#
|
13
13
|
# Creates a new V2 Auth rule in draft mode
|
14
14
|
#
|
15
|
-
# @overload create(
|
16
|
-
#
|
17
|
-
# @param account_tokens [Array<String>] Account tokens to which the Auth Rule applies.
|
15
|
+
# @overload create(card_tokens:, program_level:, account_tokens: nil, business_account_tokens: nil, event_stream: nil, name: nil, parameters: nil, type: nil, excluded_card_tokens: nil, request_options: {})
|
18
16
|
#
|
19
17
|
# @param card_tokens [Array<String>] Card tokens to which the Auth Rule applies.
|
20
18
|
#
|
21
19
|
# @param program_level [Boolean] Whether the Auth Rule applies to all authorizations on the card program.
|
22
20
|
#
|
21
|
+
# @param account_tokens [Array<String>] Account tokens to which the Auth Rule applies.
|
22
|
+
#
|
23
|
+
# @param business_account_tokens [Array<String>] Business Account tokens to which the Auth Rule applies.
|
24
|
+
#
|
25
|
+
# @param event_stream [Symbol, Lithic::Models::AuthRules::V2CreateParams::EventStream] The event stream during which the rule will be evaluated.
|
26
|
+
#
|
23
27
|
# @param name [String, nil] Auth Rule Name
|
24
28
|
#
|
25
|
-
# @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters] Parameters for the Auth Rule
|
29
|
+
# @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters] Parameters for the Auth Rule
|
26
30
|
#
|
27
|
-
# @param type [Symbol, Lithic::Models::AuthRules::V2CreateParams::Type] The type of Auth Rule.
|
31
|
+
# @param type [Symbol, Lithic::Models::AuthRules::V2CreateParams::Type] The type of Auth Rule. For certain rule types, this determines the event stream
|
28
32
|
#
|
29
33
|
# @param excluded_card_tokens [Array<String>] Card tokens to which the Auth Rule does not apply.
|
30
34
|
#
|
@@ -73,12 +77,10 @@ module Lithic
|
|
73
77
|
# is provided, this will replace existing associations with the provided list of
|
74
78
|
# entities.
|
75
79
|
#
|
76
|
-
# @overload update(auth_rule_token,
|
80
|
+
# @overload update(auth_rule_token, name: nil, state: nil, card_tokens: nil, excluded_card_tokens: nil, program_level: nil, request_options: {})
|
77
81
|
#
|
78
82
|
# @param auth_rule_token [String] Globally unique identifier for the Auth Rule.
|
79
83
|
#
|
80
|
-
# @param account_tokens [Array<String>] Account tokens to which the Auth Rule applies.
|
81
|
-
#
|
82
84
|
# @param name [String, nil] Auth Rule Name
|
83
85
|
#
|
84
86
|
# @param state [Symbol, Lithic::Models::AuthRules::V2UpdateParams::State] The desired state of the Auth Rule.
|
@@ -110,10 +112,12 @@ module Lithic
|
|
110
112
|
#
|
111
113
|
# Lists V2 Auth rules
|
112
114
|
#
|
113
|
-
# @overload list(account_token: nil, card_token: nil, ending_before: nil, event_stream: nil, page_size: nil, scope: nil, starting_after: nil, request_options: {})
|
115
|
+
# @overload list(account_token: nil, business_account_token: nil, card_token: nil, ending_before: nil, event_stream: nil, page_size: nil, scope: nil, starting_after: nil, request_options: {})
|
114
116
|
#
|
115
117
|
# @param account_token [String] Only return Auth Rules that are bound to the provided account token.
|
116
118
|
#
|
119
|
+
# @param business_account_token [String] Only return Auth Rules that are bound to the provided business account token.
|
120
|
+
#
|
117
121
|
# @param card_token [String] Only return Auth Rules that are bound to the provided card token.
|
118
122
|
#
|
119
123
|
# @param ending_before [String] A cursor representing an item's token before which a page of results should end.
|
@@ -170,16 +174,18 @@ module Lithic
|
|
170
174
|
#
|
171
175
|
# Prefer using the `PATCH` method for this operation.
|
172
176
|
#
|
173
|
-
# @overload apply(auth_rule_token,
|
177
|
+
# @overload apply(auth_rule_token, card_tokens:, program_level:, account_tokens: nil, business_account_tokens: nil, excluded_card_tokens: nil, request_options: {})
|
174
178
|
#
|
175
179
|
# @param auth_rule_token [String] Globally unique identifier for the Auth Rule.
|
176
180
|
#
|
177
|
-
# @param account_tokens [Array<String>] Account tokens to which the Auth Rule applies.
|
178
|
-
#
|
179
181
|
# @param card_tokens [Array<String>] Card tokens to which the Auth Rule applies.
|
180
182
|
#
|
181
183
|
# @param program_level [Boolean] Whether the Auth Rule applies to all authorizations on the card program.
|
182
184
|
#
|
185
|
+
# @param account_tokens [Array<String>] Account tokens to which the Auth Rule applies.
|
186
|
+
#
|
187
|
+
# @param business_account_tokens [Array<String>] Business Account tokens to which the Auth Rule applies.
|
188
|
+
#
|
183
189
|
# @param excluded_card_tokens [Array<String>] Card tokens to which the Auth Rule does not apply.
|
184
190
|
#
|
185
191
|
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
@@ -207,7 +213,7 @@ module Lithic
|
|
207
213
|
#
|
208
214
|
# @param auth_rule_token [String] Globally unique identifier for the Auth Rule.
|
209
215
|
#
|
210
|
-
# @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, nil] Parameters for the Auth Rule
|
216
|
+
# @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters, nil] Parameters for the Auth Rule
|
211
217
|
#
|
212
218
|
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
213
219
|
#
|
@@ -9,9 +9,9 @@ module Lithic
|
|
9
9
|
# Book transfer funds between two financial accounts or between a financial
|
10
10
|
# account and card
|
11
11
|
#
|
12
|
-
# @overload create(amount:, category:, from_financial_account_token:, subtype:, to_financial_account_token:, type:, token: nil, memo: nil, request_options: {})
|
12
|
+
# @overload create(amount:, category:, from_financial_account_token:, subtype:, to_financial_account_token:, type:, token: nil, external_id: nil, memo: nil, on_closed_account: nil, request_options: {})
|
13
13
|
#
|
14
|
-
# @param amount [Integer] Amount to be transferred in the currency
|
14
|
+
# @param amount [Integer] Amount to be transferred in the currency's smallest unit (e.g., cents for USD).
|
15
15
|
#
|
16
16
|
# @param category [Symbol, Lithic::Models::BookTransferCreateParams::Category] Category of the book transfer
|
17
17
|
#
|
@@ -21,12 +21,16 @@ module Lithic
|
|
21
21
|
#
|
22
22
|
# @param to_financial_account_token [String] Globally unique identifier for the financial account or card that will receive t
|
23
23
|
#
|
24
|
-
# @param type [Symbol, Lithic::Models::BookTransferCreateParams::Type] Type of
|
24
|
+
# @param type [Symbol, Lithic::Models::BookTransferCreateParams::Type] Type of the book transfer
|
25
25
|
#
|
26
26
|
# @param token [String] Customer-provided token that will serve as an idempotency token. This token will
|
27
27
|
#
|
28
|
+
# @param external_id [String] External ID defined by the customer
|
29
|
+
#
|
28
30
|
# @param memo [String] Optional descriptor for the transfer.
|
29
31
|
#
|
32
|
+
# @param on_closed_account [Symbol, Lithic::Models::BookTransferCreateParams::OnClosedAccount] What to do if the financial account is closed when posting an operation
|
33
|
+
#
|
30
34
|
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
31
35
|
#
|
32
36
|
# @return [Lithic::Models::BookTransferResponse]
|
@@ -18,7 +18,7 @@ module Lithic
|
|
18
18
|
#
|
19
19
|
# @param ending_before [String] A cursor representing an item's token before which a page of results should end.
|
20
20
|
#
|
21
|
-
# @param page_size [Integer]
|
21
|
+
# @param page_size [Integer] Number of records per page.
|
22
22
|
#
|
23
23
|
# @param starting_after [String] A cursor representing an item's token after which a page of results should begin
|
24
24
|
#
|
@@ -11,14 +11,14 @@ module Lithic
|
|
11
11
|
#
|
12
12
|
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
13
13
|
#
|
14
|
-
# @return [Lithic::Models::
|
14
|
+
# @return [Lithic::Models::Tokenization]
|
15
15
|
#
|
16
16
|
# @see Lithic::Models::TokenizationRetrieveParams
|
17
17
|
def retrieve(tokenization_token, params = {})
|
18
18
|
@client.request(
|
19
19
|
method: :get,
|
20
20
|
path: ["v1/tokenizations/%1$s", tokenization_token],
|
21
|
-
model: Lithic::
|
21
|
+
model: Lithic::Tokenization,
|
22
22
|
options: params[:request_options]
|
23
23
|
)
|
24
24
|
end
|
data/lib/lithic/version.rb
CHANGED
data/lib/lithic.rb
CHANGED
@@ -52,10 +52,15 @@ require_relative "lithic/internal/transport/pooled_net_requester"
|
|
52
52
|
require_relative "lithic/client"
|
53
53
|
require_relative "lithic/internal/cursor_page"
|
54
54
|
require_relative "lithic/internal/single_page"
|
55
|
+
require_relative "lithic/models/transaction"
|
55
56
|
require_relative "lithic/models/non_pci_card"
|
56
57
|
require_relative "lithic/models/payment"
|
57
58
|
require_relative "lithic/models/three_ds/challenge_response"
|
58
59
|
require_relative "lithic/models/account"
|
60
|
+
require_relative "lithic/models/account_activity_list_params"
|
61
|
+
require_relative "lithic/models/account_activity_list_response"
|
62
|
+
require_relative "lithic/models/account_activity_retrieve_transaction_params"
|
63
|
+
require_relative "lithic/models/account_activity_retrieve_transaction_response"
|
59
64
|
require_relative "lithic/models/account_financial_account_type"
|
60
65
|
require_relative "lithic/models/account_holder"
|
61
66
|
require_relative "lithic/models/account_holder_create_params"
|
@@ -315,14 +320,12 @@ require_relative "lithic/models/tokenization_list_params"
|
|
315
320
|
require_relative "lithic/models/tokenization_pause_params"
|
316
321
|
require_relative "lithic/models/tokenization_resend_activation_code_params"
|
317
322
|
require_relative "lithic/models/tokenization_retrieve_params"
|
318
|
-
require_relative "lithic/models/tokenization_retrieve_response"
|
319
323
|
require_relative "lithic/models/tokenization_secret"
|
320
324
|
require_relative "lithic/models/tokenization_simulate_params"
|
321
325
|
require_relative "lithic/models/tokenization_simulate_response"
|
322
326
|
require_relative "lithic/models/tokenization_unpause_params"
|
323
327
|
require_relative "lithic/models/tokenization_update_digital_card_art_params"
|
324
328
|
require_relative "lithic/models/tokenization_update_digital_card_art_response"
|
325
|
-
require_relative "lithic/models/transaction"
|
326
329
|
require_relative "lithic/models/transaction_expire_authorization_params"
|
327
330
|
require_relative "lithic/models/transaction_list_params"
|
328
331
|
require_relative "lithic/models/transaction_retrieve_params"
|
@@ -347,7 +350,9 @@ require_relative "lithic/models/transaction_simulate_void_response"
|
|
347
350
|
require_relative "lithic/models/transfer"
|
348
351
|
require_relative "lithic/models/transfer_create_params"
|
349
352
|
require_relative "lithic/models/verification_method"
|
353
|
+
require_relative "lithic/models/wire_party_details"
|
350
354
|
require_relative "lithic/models"
|
355
|
+
require_relative "lithic/resources/account_activity"
|
351
356
|
require_relative "lithic/resources/account_holders"
|
352
357
|
require_relative "lithic/resources/accounts"
|
353
358
|
require_relative "lithic/resources/aggregate_balances"
|
data/rbi/lithic/client.rbi
CHANGED
@@ -106,6 +106,9 @@ module Lithic
|
|
106
106
|
sig { returns(Lithic::Resources::NetworkPrograms) }
|
107
107
|
attr_reader :network_programs
|
108
108
|
|
109
|
+
sig { returns(Lithic::Resources::AccountActivity) }
|
110
|
+
attr_reader :account_activity
|
111
|
+
|
109
112
|
# Status of api
|
110
113
|
sig do
|
111
114
|
params(request_options: Lithic::RequestOptions::OrHash).returns(
|
data/rbi/lithic/errors.rbi
CHANGED
@@ -86,6 +86,52 @@ module Lithic
|
|
86
86
|
def self.type_info(spec)
|
87
87
|
end
|
88
88
|
|
89
|
+
# @api private
|
90
|
+
sig do
|
91
|
+
params(
|
92
|
+
type_info:
|
93
|
+
T.any(
|
94
|
+
{
|
95
|
+
const:
|
96
|
+
T.nilable(
|
97
|
+
T.any(NilClass, T::Boolean, Integer, Float, Symbol)
|
98
|
+
),
|
99
|
+
enum:
|
100
|
+
T.nilable(
|
101
|
+
T.proc.returns(Lithic::Internal::Type::Converter::Input)
|
102
|
+
),
|
103
|
+
union:
|
104
|
+
T.nilable(
|
105
|
+
T.proc.returns(Lithic::Internal::Type::Converter::Input)
|
106
|
+
)
|
107
|
+
},
|
108
|
+
T.proc.returns(Lithic::Internal::Type::Converter::Input),
|
109
|
+
Lithic::Internal::Type::Converter::Input
|
110
|
+
),
|
111
|
+
spec:
|
112
|
+
T.any(
|
113
|
+
{
|
114
|
+
const:
|
115
|
+
T.nilable(
|
116
|
+
T.any(NilClass, T::Boolean, Integer, Float, Symbol)
|
117
|
+
),
|
118
|
+
enum:
|
119
|
+
T.nilable(
|
120
|
+
T.proc.returns(Lithic::Internal::Type::Converter::Input)
|
121
|
+
),
|
122
|
+
union:
|
123
|
+
T.nilable(
|
124
|
+
T.proc.returns(Lithic::Internal::Type::Converter::Input)
|
125
|
+
)
|
126
|
+
},
|
127
|
+
T.proc.returns(Lithic::Internal::Type::Converter::Input),
|
128
|
+
Lithic::Internal::Type::Converter::Input
|
129
|
+
)
|
130
|
+
).returns(Lithic::Internal::AnyHash)
|
131
|
+
end
|
132
|
+
def self.meta_info(type_info, spec)
|
133
|
+
end
|
134
|
+
|
89
135
|
# @api private
|
90
136
|
sig do
|
91
137
|
params(translate_names: T::Boolean).returns(
|
@@ -16,7 +16,8 @@ module Lithic
|
|
16
16
|
T::Array[
|
17
17
|
[
|
18
18
|
T.nilable(Symbol),
|
19
|
-
T.proc.returns(Lithic::Internal::Type::Converter::Input)
|
19
|
+
T.proc.returns(Lithic::Internal::Type::Converter::Input),
|
20
|
+
Lithic::Internal::AnyHash
|
20
21
|
]
|
21
22
|
]
|
22
23
|
)
|
@@ -25,7 +26,11 @@ module Lithic
|
|
25
26
|
end
|
26
27
|
|
27
28
|
# @api private
|
28
|
-
sig
|
29
|
+
sig do
|
30
|
+
returns(
|
31
|
+
T::Array[[T.nilable(Symbol), T.anything, Lithic::Internal::AnyHash]]
|
32
|
+
)
|
33
|
+
end
|
29
34
|
protected def derefed_variants
|
30
35
|
end
|
31
36
|
|