lithic 0.1.0.pre.alpha.39 → 0.1.0.pre.alpha.41
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 +24 -0
- data/README.md +1 -1
- data/lib/lithic/client.rb +8 -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.rb +88 -1
- data/lib/lithic/models/account_activity_list_params.rb +156 -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/account_update_params.rb +86 -1
- data/lib/lithic/models/aggregate_balance.rb +1 -0
- data/lib/lithic/models/aggregate_balance_list_params.rb +1 -0
- data/lib/lithic/models/auth_rules/auth_rule_condition.rb +5 -1
- data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +12 -22
- data/lib/lithic/models/auth_rules/v2_list_params.rb +1 -0
- data/lib/lithic/models/auth_rules/velocity_limit_params.rb +3 -25
- data/lib/lithic/models/auth_rules/velocity_limit_params_period_window.rb +226 -16
- data/lib/lithic/models/balance.rb +1 -0
- data/lib/lithic/models/balance_list_params.rb +1 -0
- 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/card_create_params.rb +90 -1
- data/lib/lithic/models/card_program.rb +10 -1
- data/lib/lithic/models/card_update_params.rb +98 -1
- data/lib/lithic/models/cards/balance_list_response.rb +1 -0
- data/lib/lithic/models/document.rb +1 -3
- data/lib/lithic/models/events/subscription_create_params.rb +1 -3
- data/lib/lithic/models/events/subscription_update_params.rb +1 -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/external_resource.rb +34 -0
- data/lib/lithic/models/external_resource_type.rb +18 -0
- data/lib/lithic/models/financial_account.rb +1 -0
- data/lib/lithic/models/financial_account_list_params.rb +1 -0
- data/lib/lithic/models/financial_accounts/balance_list_response.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_create_params.rb +30 -1
- data/lib/lithic/models/management_operation_transaction.rb +100 -52
- data/lib/lithic/models/network_program.rb +41 -0
- data/lib/lithic/models/network_program_list_params.rb +43 -0
- data/lib/lithic/models/network_program_retrieve_params.rb +14 -0
- data/lib/lithic/models/non_pci_card.rb +88 -1
- data/lib/lithic/models/payment.rb +60 -1
- data/lib/lithic/models/payment_simulate_action_params.rb +1 -0
- 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 +145 -12
- 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 +31 -20
- 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 +16 -0
- data/lib/lithic/resources/account_activity.rb +80 -0
- data/lib/lithic/resources/account_holders.rb +9 -9
- data/lib/lithic/resources/accounts.rb +5 -1
- data/lib/lithic/resources/book_transfers.rb +7 -3
- data/lib/lithic/resources/cards.rb +12 -2
- data/lib/lithic/resources/management_operations.rb +13 -1
- data/lib/lithic/resources/network_programs.rb +64 -0
- 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 +13 -2
- data/rbi/lithic/client.rbi +6 -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.rbi +131 -0
- data/rbi/lithic/models/account_activity_list_params.rbi +359 -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/account_update_params.rbi +159 -0
- data/rbi/lithic/models/aggregate_balance.rbi +5 -0
- data/rbi/lithic/models/aggregate_balance_list_params.rbi +5 -0
- data/rbi/lithic/models/auth_rules/auth_rule_condition.rbi +20 -0
- data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +26 -15
- data/rbi/lithic/models/auth_rules/v2_list_params.rbi +2 -0
- data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +18 -25
- data/rbi/lithic/models/auth_rules/velocity_limit_params_period_window.rbi +527 -31
- data/rbi/lithic/models/balance.rbi +2 -0
- data/rbi/lithic/models/balance_list_params.rbi +5 -0
- 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/card_create_params.rbi +190 -0
- data/rbi/lithic/models/card_program.rbi +13 -0
- data/rbi/lithic/models/card_update_params.rbi +168 -0
- data/rbi/lithic/models/cards/balance_list_response.rbi +5 -0
- data/rbi/lithic/models/external_payment.rbi +147 -60
- data/rbi/lithic/models/external_resource.rbi +57 -0
- data/rbi/lithic/models/external_resource_type.rbi +26 -0
- data/rbi/lithic/models/financial_account.rbi +5 -0
- data/rbi/lithic/models/financial_account_list_params.rbi +5 -0
- data/rbi/lithic/models/financial_accounts/balance_list_response.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_create_params.rbi +59 -0
- data/rbi/lithic/models/management_operation_transaction.rbi +230 -84
- data/rbi/lithic/models/network_program.rbi +61 -0
- data/rbi/lithic/models/network_program_list_params.rbi +72 -0
- data/rbi/lithic/models/network_program_retrieve_params.rbi +27 -0
- data/rbi/lithic/models/non_pci_card.rbi +133 -3
- data/rbi/lithic/models/payment.rbi +103 -3
- data/rbi/lithic/models/payment_simulate_action_params.rbi +5 -0
- 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 +222 -19
- data/rbi/lithic/models/transaction.rbi +23 -31
- data/rbi/lithic/models/transfer.rbi +1 -0
- data/rbi/lithic/models/wire_party_details.rbi +61 -0
- data/rbi/lithic/models.rbi +17 -0
- data/rbi/lithic/resources/account_activity.rbi +80 -0
- data/rbi/lithic/resources/account_holders.rbi +28 -29
- data/rbi/lithic/resources/accounts.rbi +32 -0
- data/rbi/lithic/resources/book_transfers.rbi +9 -2
- data/rbi/lithic/resources/cards.rbi +70 -0
- data/rbi/lithic/resources/management_operations.rbi +4 -0
- data/rbi/lithic/resources/network_programs.rbi +48 -0
- data/rbi/lithic/resources/reports/settlement.rbi +1 -1
- data/rbi/lithic/resources/tokenizations.rbi +1 -1
- data/sig/lithic/client.rbs +4 -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.rbs +41 -0
- 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/account_update_params.rbs +41 -0
- data/sig/lithic/models/aggregate_balance.rbs +2 -1
- data/sig/lithic/models/aggregate_balance_list_params.rbs +2 -1
- 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_list_params.rbs +2 -1
- data/sig/lithic/models/auth_rules/velocity_limit_params.rbs +4 -14
- data/sig/lithic/models/auth_rules/velocity_limit_params_period_window.rbs +212 -7
- data/sig/lithic/models/balance.rbs +2 -1
- data/sig/lithic/models/balance_list_params.rbs +2 -1
- 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/card_create_params.rbs +47 -0
- data/sig/lithic/models/card_program.rbs +7 -0
- data/sig/lithic/models/card_update_params.rbs +55 -1
- data/sig/lithic/models/cards/balance_list_response.rbs +2 -1
- data/sig/lithic/models/external_payment.rbs +91 -40
- data/sig/lithic/models/external_resource.rbs +32 -0
- data/sig/lithic/models/external_resource_type.rbs +16 -0
- data/sig/lithic/models/financial_account.rbs +2 -0
- data/sig/lithic/models/financial_account_list_params.rbs +2 -1
- data/sig/lithic/models/financial_accounts/balance_list_response.rbs +2 -1
- data/sig/lithic/models/instance_financial_account_type.rbs +2 -0
- data/sig/lithic/models/management_operation_create_params.rbs +20 -0
- data/sig/lithic/models/management_operation_transaction.rbs +98 -42
- data/sig/lithic/models/network_program.rbs +35 -0
- data/sig/lithic/models/network_program_list_params.rbs +38 -0
- data/sig/lithic/models/network_program_retrieve_params.rbs +15 -0
- data/sig/lithic/models/non_pci_card.rbs +55 -3
- data/sig/lithic/models/payment.rbs +61 -3
- data/sig/lithic/models/payment_simulate_action_params.rbs +2 -0
- data/sig/lithic/models/settlement_detail.rbs +2 -0
- data/sig/lithic/models/three_ds/authentication_retrieve_response.rbs +90 -3
- data/sig/lithic/models/transaction.rbs +2 -6
- data/sig/lithic/models/wire_party_details.rbs +35 -0
- data/sig/lithic/models.rbs +16 -0
- data/sig/lithic/resources/account_activity.rbs +27 -0
- data/sig/lithic/resources/account_holders.rbs +3 -3
- data/sig/lithic/resources/accounts.rbs +2 -0
- data/sig/lithic/resources/book_transfers.rbs +2 -0
- data/sig/lithic/resources/cards.rbs +5 -0
- data/sig/lithic/resources/management_operations.rbs +1 -0
- data/sig/lithic/resources/network_programs.rbs +19 -0
- data/sig/lithic/resources/tokenizations.rbs +1 -1
- metadata +38 -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
@@ -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
|
# Create a new virtual or physical card. Parameters `shipping_address` and
|
19
19
|
# `product_id` only apply to physical cards.
|
20
20
|
#
|
21
|
-
# @overload create(type:, account_token: nil, card_program_token: nil, carrier: nil, digital_card_art_token: nil, exp_month: nil, exp_year: nil, memo: nil, pin: nil, product_id: nil, replacement_account_token: nil, replacement_for: nil, shipping_address: nil, shipping_method: nil, spend_limit: nil, spend_limit_duration: nil, state: nil, request_options: {})
|
21
|
+
# @overload create(type:, account_token: nil, card_program_token: nil, carrier: nil, digital_card_art_token: nil, exp_month: nil, exp_year: nil, memo: nil, pin: nil, product_id: nil, replacement_account_token: nil, replacement_comment: nil, replacement_for: nil, replacement_substatus: nil, shipping_address: nil, shipping_method: nil, spend_limit: nil, spend_limit_duration: nil, state: nil, request_options: {})
|
22
22
|
#
|
23
23
|
# @param type [Symbol, Lithic::Models::CardCreateParams::Type] Card types:
|
24
24
|
#
|
@@ -42,8 +42,12 @@ module Lithic
|
|
42
42
|
#
|
43
43
|
# @param replacement_account_token [String] Restricted field limited to select use cases. Lithic will reach out directly if
|
44
44
|
#
|
45
|
+
# @param replacement_comment [String] Additional context or information related to the card that this card will replac
|
46
|
+
#
|
45
47
|
# @param replacement_for [String] Globally unique identifier for the card that this card will replace. If the card
|
46
48
|
#
|
49
|
+
# @param replacement_substatus [Symbol, Lithic::Models::CardCreateParams::ReplacementSubstatus] Card state substatus values for the card that this card will replace:
|
50
|
+
#
|
47
51
|
# @param shipping_address [Lithic::Models::ShippingAddress]
|
48
52
|
#
|
49
53
|
# @param shipping_method [Symbol, Lithic::Models::CardCreateParams::ShippingMethod] Shipping method for the card. Only applies to cards of type PHYSICAL.
|
@@ -92,14 +96,18 @@ module Lithic
|
|
92
96
|
# _Note: setting a card to a `CLOSED` state is a final action that cannot be
|
93
97
|
# undone._
|
94
98
|
#
|
95
|
-
# @overload update(card_token, digital_card_art_token: nil, memo: nil, pin: nil, pin_status: nil, spend_limit: nil, spend_limit_duration: nil, state: nil, request_options: {})
|
99
|
+
# @overload update(card_token, comment: nil, digital_card_art_token: nil, memo: nil, network_program_token: nil, pin: nil, pin_status: nil, spend_limit: nil, spend_limit_duration: nil, state: nil, substatus: nil, request_options: {})
|
96
100
|
#
|
97
101
|
# @param card_token [String]
|
98
102
|
#
|
103
|
+
# @param comment [String] Additional context or information related to the card.
|
104
|
+
#
|
99
105
|
# @param digital_card_art_token [String] Specifies the digital card art to be displayed in the user’s digital wallet afte
|
100
106
|
#
|
101
107
|
# @param memo [String] Friendly name to identify the card.
|
102
108
|
#
|
109
|
+
# @param network_program_token [String] Globally unique identifier for the card's network program. Currently applicable
|
110
|
+
#
|
103
111
|
# @param pin [String] Encrypted PIN block (in base64). Only applies to cards of type `PHYSICAL` and `V
|
104
112
|
#
|
105
113
|
# @param pin_status [Symbol, Lithic::Models::CardUpdateParams::PinStatus] Indicates if a card is blocked due a PIN status issue (e.g. excessive incorrect
|
@@ -110,6 +118,8 @@ module Lithic
|
|
110
118
|
#
|
111
119
|
# @param state [Symbol, Lithic::Models::CardUpdateParams::State] Card state values:
|
112
120
|
#
|
121
|
+
# @param substatus [Symbol, Lithic::Models::CardUpdateParams::Substatus] Card state substatus values:
|
122
|
+
#
|
113
123
|
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
114
124
|
#
|
115
125
|
# @return [Lithic::Models::Card]
|
@@ -5,18 +5,30 @@ module Lithic
|
|
5
5
|
class ManagementOperations
|
6
6
|
# Create management operation
|
7
7
|
#
|
8
|
-
# @overload create(amount:, category:, direction:, effective_date:, event_type:, financial_account_token:, token: nil, memo: nil, subtype: nil, user_defined_id: nil, request_options: {})
|
8
|
+
# @overload create(amount:, category:, direction:, effective_date:, event_type:, financial_account_token:, token: nil, memo: nil, on_closed_account: nil, subtype: nil, user_defined_id: nil, request_options: {})
|
9
9
|
#
|
10
10
|
# @param amount [Integer]
|
11
|
+
#
|
11
12
|
# @param category [Symbol, Lithic::Models::ManagementOperationCreateParams::Category]
|
13
|
+
#
|
12
14
|
# @param direction [Symbol, Lithic::Models::ManagementOperationCreateParams::Direction]
|
15
|
+
#
|
13
16
|
# @param effective_date [Date]
|
17
|
+
#
|
14
18
|
# @param event_type [Symbol, Lithic::Models::ManagementOperationCreateParams::EventType]
|
19
|
+
#
|
15
20
|
# @param financial_account_token [String]
|
21
|
+
#
|
16
22
|
# @param token [String]
|
23
|
+
#
|
17
24
|
# @param memo [String]
|
25
|
+
#
|
26
|
+
# @param on_closed_account [Symbol, Lithic::Models::ManagementOperationCreateParams::OnClosedAccount] What to do if the financial account is closed when posting an operation
|
27
|
+
#
|
18
28
|
# @param subtype [String]
|
29
|
+
#
|
19
30
|
# @param user_defined_id [String]
|
31
|
+
#
|
20
32
|
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
21
33
|
#
|
22
34
|
# @return [Lithic::Models::ManagementOperationTransaction]
|
@@ -0,0 +1,64 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Lithic
|
4
|
+
module Resources
|
5
|
+
class NetworkPrograms
|
6
|
+
# Get network program.
|
7
|
+
#
|
8
|
+
# @overload retrieve(network_program_token, request_options: {})
|
9
|
+
#
|
10
|
+
# @param network_program_token [String] Globally unique identifier for the network program.
|
11
|
+
#
|
12
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
13
|
+
#
|
14
|
+
# @return [Lithic::Models::NetworkProgram]
|
15
|
+
#
|
16
|
+
# @see Lithic::Models::NetworkProgramRetrieveParams
|
17
|
+
def retrieve(network_program_token, params = {})
|
18
|
+
@client.request(
|
19
|
+
method: :get,
|
20
|
+
path: ["v1/network_programs/%1$s", network_program_token],
|
21
|
+
model: Lithic::NetworkProgram,
|
22
|
+
options: params[:request_options]
|
23
|
+
)
|
24
|
+
end
|
25
|
+
|
26
|
+
# Some parameter documentations has been truncated, see
|
27
|
+
# {Lithic::Models::NetworkProgramListParams} for more details.
|
28
|
+
#
|
29
|
+
# List network programs.
|
30
|
+
#
|
31
|
+
# @overload list(begin_: nil, end_: nil, page_size: nil, request_options: {})
|
32
|
+
#
|
33
|
+
# @param begin_ [Time] Date string in RFC 3339 format. Only entries created after the specified time wi
|
34
|
+
#
|
35
|
+
# @param end_ [Time] Date string in RFC 3339 format. Only entries created before the specified time w
|
36
|
+
#
|
37
|
+
# @param page_size [Integer] Page size (for pagination).
|
38
|
+
#
|
39
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
40
|
+
#
|
41
|
+
# @return [Lithic::Internal::SinglePage<Lithic::Models::NetworkProgram>]
|
42
|
+
#
|
43
|
+
# @see Lithic::Models::NetworkProgramListParams
|
44
|
+
def list(params = {})
|
45
|
+
parsed, options = Lithic::NetworkProgramListParams.dump_request(params)
|
46
|
+
@client.request(
|
47
|
+
method: :get,
|
48
|
+
path: "v1/network_programs",
|
49
|
+
query: parsed.transform_keys(begin_: "begin", end_: "end"),
|
50
|
+
page: Lithic::Internal::SinglePage,
|
51
|
+
model: Lithic::NetworkProgram,
|
52
|
+
options: options
|
53
|
+
)
|
54
|
+
end
|
55
|
+
|
56
|
+
# @api private
|
57
|
+
#
|
58
|
+
# @param client [Lithic::Client]
|
59
|
+
def initialize(client:)
|
60
|
+
@client = client
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
@@ -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"
|
@@ -213,6 +218,8 @@ require_relative "lithic/models/external_payment_release_params"
|
|
213
218
|
require_relative "lithic/models/external_payment_retrieve_params"
|
214
219
|
require_relative "lithic/models/external_payment_reverse_params"
|
215
220
|
require_relative "lithic/models/external_payment_settle_params"
|
221
|
+
require_relative "lithic/models/external_resource"
|
222
|
+
require_relative "lithic/models/external_resource_type"
|
216
223
|
require_relative "lithic/models/financial_account"
|
217
224
|
require_relative "lithic/models/financial_account_create_params"
|
218
225
|
require_relative "lithic/models/financial_account_list_params"
|
@@ -258,6 +265,9 @@ require_relative "lithic/models/management_operation_retrieve_params"
|
|
258
265
|
require_relative "lithic/models/management_operation_reverse_params"
|
259
266
|
require_relative "lithic/models/management_operation_transaction"
|
260
267
|
require_relative "lithic/models/message_attempt"
|
268
|
+
require_relative "lithic/models/network_program"
|
269
|
+
require_relative "lithic/models/network_program_list_params"
|
270
|
+
require_relative "lithic/models/network_program_retrieve_params"
|
261
271
|
require_relative "lithic/models/owner_type"
|
262
272
|
require_relative "lithic/models/payment_create_params"
|
263
273
|
require_relative "lithic/models/payment_create_response"
|
@@ -310,14 +320,12 @@ require_relative "lithic/models/tokenization_list_params"
|
|
310
320
|
require_relative "lithic/models/tokenization_pause_params"
|
311
321
|
require_relative "lithic/models/tokenization_resend_activation_code_params"
|
312
322
|
require_relative "lithic/models/tokenization_retrieve_params"
|
313
|
-
require_relative "lithic/models/tokenization_retrieve_response"
|
314
323
|
require_relative "lithic/models/tokenization_secret"
|
315
324
|
require_relative "lithic/models/tokenization_simulate_params"
|
316
325
|
require_relative "lithic/models/tokenization_simulate_response"
|
317
326
|
require_relative "lithic/models/tokenization_unpause_params"
|
318
327
|
require_relative "lithic/models/tokenization_update_digital_card_art_params"
|
319
328
|
require_relative "lithic/models/tokenization_update_digital_card_art_response"
|
320
|
-
require_relative "lithic/models/transaction"
|
321
329
|
require_relative "lithic/models/transaction_expire_authorization_params"
|
322
330
|
require_relative "lithic/models/transaction_list_params"
|
323
331
|
require_relative "lithic/models/transaction_retrieve_params"
|
@@ -342,7 +350,9 @@ require_relative "lithic/models/transaction_simulate_void_response"
|
|
342
350
|
require_relative "lithic/models/transfer"
|
343
351
|
require_relative "lithic/models/transfer_create_params"
|
344
352
|
require_relative "lithic/models/verification_method"
|
353
|
+
require_relative "lithic/models/wire_party_details"
|
345
354
|
require_relative "lithic/models"
|
355
|
+
require_relative "lithic/resources/account_activity"
|
346
356
|
require_relative "lithic/resources/account_holders"
|
347
357
|
require_relative "lithic/resources/accounts"
|
348
358
|
require_relative "lithic/resources/aggregate_balances"
|
@@ -379,6 +389,7 @@ require_relative "lithic/resources/fraud"
|
|
379
389
|
require_relative "lithic/resources/fraud/transactions"
|
380
390
|
require_relative "lithic/resources/funding_events"
|
381
391
|
require_relative "lithic/resources/management_operations"
|
392
|
+
require_relative "lithic/resources/network_programs"
|
382
393
|
require_relative "lithic/resources/payments"
|
383
394
|
require_relative "lithic/resources/reports"
|
384
395
|
require_relative "lithic/resources/reports/settlement"
|
data/rbi/lithic/client.rbi
CHANGED
@@ -103,6 +103,12 @@ module Lithic
|
|
103
103
|
sig { returns(Lithic::Resources::Fraud) }
|
104
104
|
attr_reader :fraud
|
105
105
|
|
106
|
+
sig { returns(Lithic::Resources::NetworkPrograms) }
|
107
|
+
attr_reader :network_programs
|
108
|
+
|
109
|
+
sig { returns(Lithic::Resources::AccountActivity) }
|
110
|
+
attr_reader :account_activity
|
111
|
+
|
106
112
|
# Status of api
|
107
113
|
sig do
|
108
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
|
|
@@ -66,6 +66,46 @@ module Lithic
|
|
66
66
|
sig { params(cardholder_currency: String).void }
|
67
67
|
attr_writer :cardholder_currency
|
68
68
|
|
69
|
+
# Additional context or information related to the account.
|
70
|
+
sig { returns(T.nilable(String)) }
|
71
|
+
attr_reader :comment
|
72
|
+
|
73
|
+
sig { params(comment: String).void }
|
74
|
+
attr_writer :comment
|
75
|
+
|
76
|
+
# Account state substatus values:
|
77
|
+
#
|
78
|
+
# - `FRAUD_IDENTIFIED` - The account has been recognized as being created or used
|
79
|
+
# with stolen or fabricated identity information, encompassing both true
|
80
|
+
# identity theft and synthetic identities.
|
81
|
+
# - `SUSPICIOUS_ACTIVITY` - The account has exhibited suspicious behavior, such as
|
82
|
+
# unauthorized access or fraudulent transactions, necessitating further
|
83
|
+
# investigation.
|
84
|
+
# - `RISK_VIOLATION` - The account has been involved in deliberate misuse by the
|
85
|
+
# legitimate account holder. Examples include disputing valid transactions
|
86
|
+
# without cause, falsely claiming non-receipt of goods, or engaging in
|
87
|
+
# intentional bust-out schemes to exploit account services.
|
88
|
+
# - `END_USER_REQUEST` - The account holder has voluntarily requested the closure
|
89
|
+
# of the account for personal reasons. This encompasses situations such as
|
90
|
+
# bankruptcy, other financial considerations, or the account holder's death.
|
91
|
+
# - `ISSUER_REQUEST` - The issuer has initiated the closure of the account due to
|
92
|
+
# business strategy, risk management, inactivity, product changes, regulatory
|
93
|
+
# concerns, or violations of terms and conditions.
|
94
|
+
# - `NOT_ACTIVE` - The account has not had any transactions or payment activity
|
95
|
+
# within a specified period. This status applies to accounts that are paused or
|
96
|
+
# closed due to inactivity.
|
97
|
+
# - `INTERNAL_REVIEW` - The account is temporarily paused pending further internal
|
98
|
+
# review. In future implementations, this status may prevent clients from
|
99
|
+
# activating the account via APIs until the review is completed.
|
100
|
+
# - `OTHER` - The reason for the account's current status does not fall into any
|
101
|
+
# of the above categories. A comment should be provided to specify the
|
102
|
+
# particular reason.
|
103
|
+
sig { returns(T.nilable(Lithic::Account::Substatus::TaggedSymbol)) }
|
104
|
+
attr_reader :substatus
|
105
|
+
|
106
|
+
sig { params(substatus: Lithic::Account::Substatus::OrSymbol).void }
|
107
|
+
attr_writer :substatus
|
108
|
+
|
69
109
|
sig { returns(T.nilable(Lithic::Account::VerificationAddress)) }
|
70
110
|
attr_reader :verification_address
|
71
111
|
|
@@ -85,6 +125,8 @@ module Lithic
|
|
85
125
|
account_holder: Lithic::Account::AccountHolder::OrHash,
|
86
126
|
auth_rule_tokens: T::Array[String],
|
87
127
|
cardholder_currency: String,
|
128
|
+
comment: String,
|
129
|
+
substatus: Lithic::Account::Substatus::OrSymbol,
|
88
130
|
verification_address: Lithic::Account::VerificationAddress::OrHash
|
89
131
|
).returns(T.attached_class)
|
90
132
|
end
|
@@ -121,6 +163,36 @@ module Lithic
|
|
121
163
|
auth_rule_tokens: nil,
|
122
164
|
# 3-character alphabetic ISO 4217 code for the currency of the cardholder.
|
123
165
|
cardholder_currency: nil,
|
166
|
+
# Additional context or information related to the account.
|
167
|
+
comment: nil,
|
168
|
+
# Account state substatus values:
|
169
|
+
#
|
170
|
+
# - `FRAUD_IDENTIFIED` - The account has been recognized as being created or used
|
171
|
+
# with stolen or fabricated identity information, encompassing both true
|
172
|
+
# identity theft and synthetic identities.
|
173
|
+
# - `SUSPICIOUS_ACTIVITY` - The account has exhibited suspicious behavior, such as
|
174
|
+
# unauthorized access or fraudulent transactions, necessitating further
|
175
|
+
# investigation.
|
176
|
+
# - `RISK_VIOLATION` - The account has been involved in deliberate misuse by the
|
177
|
+
# legitimate account holder. Examples include disputing valid transactions
|
178
|
+
# without cause, falsely claiming non-receipt of goods, or engaging in
|
179
|
+
# intentional bust-out schemes to exploit account services.
|
180
|
+
# - `END_USER_REQUEST` - The account holder has voluntarily requested the closure
|
181
|
+
# of the account for personal reasons. This encompasses situations such as
|
182
|
+
# bankruptcy, other financial considerations, or the account holder's death.
|
183
|
+
# - `ISSUER_REQUEST` - The issuer has initiated the closure of the account due to
|
184
|
+
# business strategy, risk management, inactivity, product changes, regulatory
|
185
|
+
# concerns, or violations of terms and conditions.
|
186
|
+
# - `NOT_ACTIVE` - The account has not had any transactions or payment activity
|
187
|
+
# within a specified period. This status applies to accounts that are paused or
|
188
|
+
# closed due to inactivity.
|
189
|
+
# - `INTERNAL_REVIEW` - The account is temporarily paused pending further internal
|
190
|
+
# review. In future implementations, this status may prevent clients from
|
191
|
+
# activating the account via APIs until the review is completed.
|
192
|
+
# - `OTHER` - The reason for the account's current status does not fall into any
|
193
|
+
# of the above categories. A comment should be provided to specify the
|
194
|
+
# particular reason.
|
195
|
+
substatus: nil,
|
124
196
|
verification_address: nil
|
125
197
|
)
|
126
198
|
end
|
@@ -135,6 +207,8 @@ module Lithic
|
|
135
207
|
account_holder: Lithic::Account::AccountHolder,
|
136
208
|
auth_rule_tokens: T::Array[String],
|
137
209
|
cardholder_currency: String,
|
210
|
+
comment: String,
|
211
|
+
substatus: Lithic::Account::Substatus::TaggedSymbol,
|
138
212
|
verification_address: Lithic::Account::VerificationAddress
|
139
213
|
}
|
140
214
|
)
|
@@ -275,6 +349,63 @@ module Lithic
|
|
275
349
|
end
|
276
350
|
end
|
277
351
|
|
352
|
+
# Account state substatus values:
|
353
|
+
#
|
354
|
+
# - `FRAUD_IDENTIFIED` - The account has been recognized as being created or used
|
355
|
+
# with stolen or fabricated identity information, encompassing both true
|
356
|
+
# identity theft and synthetic identities.
|
357
|
+
# - `SUSPICIOUS_ACTIVITY` - The account has exhibited suspicious behavior, such as
|
358
|
+
# unauthorized access or fraudulent transactions, necessitating further
|
359
|
+
# investigation.
|
360
|
+
# - `RISK_VIOLATION` - The account has been involved in deliberate misuse by the
|
361
|
+
# legitimate account holder. Examples include disputing valid transactions
|
362
|
+
# without cause, falsely claiming non-receipt of goods, or engaging in
|
363
|
+
# intentional bust-out schemes to exploit account services.
|
364
|
+
# - `END_USER_REQUEST` - The account holder has voluntarily requested the closure
|
365
|
+
# of the account for personal reasons. This encompasses situations such as
|
366
|
+
# bankruptcy, other financial considerations, or the account holder's death.
|
367
|
+
# - `ISSUER_REQUEST` - The issuer has initiated the closure of the account due to
|
368
|
+
# business strategy, risk management, inactivity, product changes, regulatory
|
369
|
+
# concerns, or violations of terms and conditions.
|
370
|
+
# - `NOT_ACTIVE` - The account has not had any transactions or payment activity
|
371
|
+
# within a specified period. This status applies to accounts that are paused or
|
372
|
+
# closed due to inactivity.
|
373
|
+
# - `INTERNAL_REVIEW` - The account is temporarily paused pending further internal
|
374
|
+
# review. In future implementations, this status may prevent clients from
|
375
|
+
# activating the account via APIs until the review is completed.
|
376
|
+
# - `OTHER` - The reason for the account's current status does not fall into any
|
377
|
+
# of the above categories. A comment should be provided to specify the
|
378
|
+
# particular reason.
|
379
|
+
module Substatus
|
380
|
+
extend Lithic::Internal::Type::Enum
|
381
|
+
|
382
|
+
TaggedSymbol =
|
383
|
+
T.type_alias { T.all(Symbol, Lithic::Account::Substatus) }
|
384
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
385
|
+
|
386
|
+
FRAUD_IDENTIFIED =
|
387
|
+
T.let(:FRAUD_IDENTIFIED, Lithic::Account::Substatus::TaggedSymbol)
|
388
|
+
SUSPICIOUS_ACTIVITY =
|
389
|
+
T.let(:SUSPICIOUS_ACTIVITY, Lithic::Account::Substatus::TaggedSymbol)
|
390
|
+
RISK_VIOLATION =
|
391
|
+
T.let(:RISK_VIOLATION, Lithic::Account::Substatus::TaggedSymbol)
|
392
|
+
END_USER_REQUEST =
|
393
|
+
T.let(:END_USER_REQUEST, Lithic::Account::Substatus::TaggedSymbol)
|
394
|
+
ISSUER_REQUEST =
|
395
|
+
T.let(:ISSUER_REQUEST, Lithic::Account::Substatus::TaggedSymbol)
|
396
|
+
NOT_ACTIVE =
|
397
|
+
T.let(:NOT_ACTIVE, Lithic::Account::Substatus::TaggedSymbol)
|
398
|
+
INTERNAL_REVIEW =
|
399
|
+
T.let(:INTERNAL_REVIEW, Lithic::Account::Substatus::TaggedSymbol)
|
400
|
+
OTHER = T.let(:OTHER, Lithic::Account::Substatus::TaggedSymbol)
|
401
|
+
|
402
|
+
sig do
|
403
|
+
override.returns(T::Array[Lithic::Account::Substatus::TaggedSymbol])
|
404
|
+
end
|
405
|
+
def self.values
|
406
|
+
end
|
407
|
+
end
|
408
|
+
|
278
409
|
class VerificationAddress < Lithic::Internal::Type::BaseModel
|
279
410
|
OrHash =
|
280
411
|
T.type_alias do
|