lithic 0.1.0.pre.alpha.54 → 0.1.0.pre.alpha.56
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 +39 -0
- data/README.md +1 -1
- data/lib/lithic/client.rb +4 -0
- data/lib/lithic/models/account_activity_list_response.rb +60 -148
- data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +60 -151
- data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +2 -2
- data/lib/lithic/models/account_holder_update_response.rb +4 -4
- data/lib/lithic/models/auth_rules/auth_rule_condition.rb +8 -51
- data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +8 -51
- data/lib/lithic/models/auth_rules/conditional_ach_action_parameters.rb +260 -0
- data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +207 -0
- data/lib/lithic/models/auth_rules/conditional_operation.rb +26 -0
- data/lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb +254 -0
- data/lib/lithic/models/auth_rules/conditional_value.rb +27 -0
- data/lib/lithic/models/auth_rules/v2_create_params.rb +46 -283
- data/lib/lithic/models/auth_rules/v2_create_response.rb +23 -510
- data/lib/lithic/models/auth_rules/v2_draft_params.rb +6 -248
- data/lib/lithic/models/auth_rules/v2_draft_response.rb +23 -510
- data/lib/lithic/models/auth_rules/v2_list_params.rb +3 -0
- data/lib/lithic/models/auth_rules/v2_list_response.rb +23 -510
- data/lib/lithic/models/auth_rules/v2_promote_response.rb +23 -510
- data/lib/lithic/models/auth_rules/v2_retrieve_features_response.rb +4 -11
- data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +23 -510
- data/lib/lithic/models/auth_rules/v2_update_response.rb +23 -510
- data/lib/lithic/models/auth_rules/velocity_limit_params.rb +4 -7
- data/lib/lithic/models/auth_rules/velocity_limit_period.rb +154 -0
- data/lib/lithic/models/book_transfer_response.rb +6 -5
- data/lib/lithic/models/category_details.rb +27 -0
- data/lib/lithic/models/dispute_v2.rb +555 -0
- data/lib/lithic/models/disputes_v2_list_params.rb +84 -0
- data/lib/lithic/models/disputes_v2_retrieve_params.rb +14 -0
- data/lib/lithic/models/event.rb +213 -69
- data/lib/lithic/models/event_list_params.rb +112 -6
- data/lib/lithic/models/event_subscription.rb +112 -6
- data/lib/lithic/models/events/subscription_create_params.rb +112 -6
- data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +12 -6
- data/lib/lithic/models/events/subscription_update_params.rb +112 -6
- data/lib/lithic/models/external_bank_account_address.rb +2 -2
- data/lib/lithic/models/external_bank_account_create_response.rb +18 -18
- data/lib/lithic/models/external_bank_account_list_response.rb +18 -18
- data/lib/lithic/models/external_bank_account_retrieve_response.rb +18 -18
- data/lib/lithic/models/external_bank_account_retry_micro_deposits_response.rb +18 -18
- data/lib/lithic/models/external_bank_account_retry_prenote_response.rb +18 -18
- data/lib/lithic/models/external_bank_account_unpause_params.rb +14 -0
- data/lib/lithic/models/external_bank_account_unpause_response.rb +242 -0
- data/lib/lithic/models/external_bank_account_update_response.rb +18 -18
- data/lib/lithic/models/external_bank_accounts/micro_deposit_create_response.rb +18 -18
- data/lib/lithic/models/external_payment.rb +3 -2
- data/lib/lithic/models/external_payment_list_params.rb +1 -0
- data/lib/lithic/models/financial_account.rb +5 -68
- data/lib/lithic/models/financial_accounts/category_balances.rb +29 -0
- data/lib/lithic/models/financial_accounts/financial_account_credit_config.rb +1 -64
- data/lib/lithic/models/financial_accounts/loan_tape.rb +35 -424
- data/lib/lithic/models/financial_accounts/statement.rb +73 -211
- data/lib/lithic/models/financial_event.rb +148 -0
- data/lib/lithic/models/financial_transaction.rb +3 -146
- data/lib/lithic/models/management_operation_list_params.rb +1 -0
- data/lib/lithic/models/management_operation_transaction.rb +5 -4
- data/lib/lithic/models/merchant.rb +70 -0
- data/lib/lithic/models/payment.rb +16 -14
- data/lib/lithic/models/payment_return_params.rb +62 -0
- data/lib/lithic/models/payment_simulate_action_params.rb +17 -1
- data/lib/lithic/models/statement_totals.rb +100 -0
- data/lib/lithic/models/three_ds/authentication_retrieve_response.rb +9 -9
- data/lib/lithic/models/tokenization.rb +189 -23
- data/lib/lithic/models/transaction.rb +15 -185
- data/lib/lithic/models/transactions/events/enhanced_data.rb +52 -43
- data/lib/lithic/models/transfer.rb +3 -146
- data/lib/lithic/models.rb +18 -0
- data/lib/lithic/resources/auth_rules/v2/backtests.rb +3 -5
- data/lib/lithic/resources/auth_rules/v2.rb +13 -56
- data/lib/lithic/resources/disputes_v2.rb +74 -0
- data/lib/lithic/resources/external_bank_accounts.rb +19 -0
- data/lib/lithic/resources/payments.rb +53 -1
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +18 -3
- data/rbi/lithic/client.rbi +3 -0
- data/rbi/lithic/models/account_activity_list_response.rbi +121 -544
- data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +121 -544
- data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +3 -6
- data/rbi/lithic/models/account_holder_update_response.rbi +6 -12
- data/rbi/lithic/models/auth_rules/auth_rule_condition.rbi +13 -139
- data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +13 -153
- data/rbi/lithic/models/auth_rules/conditional_ach_action_parameters.rbi +789 -0
- data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +437 -0
- data/rbi/lithic/models/auth_rules/conditional_operation.rbi +74 -0
- data/rbi/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbi +674 -0
- data/rbi/lithic/models/auth_rules/conditional_value.rbi +28 -0
- data/rbi/lithic/models/auth_rules/v2_create_params.rbi +112 -680
- data/rbi/lithic/models/auth_rules/v2_create_response.rbi +33 -1149
- data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +12 -575
- data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +33 -1149
- data/rbi/lithic/models/auth_rules/v2_list_params.rbi +15 -0
- data/rbi/lithic/models/auth_rules/v2_list_response.rbi +33 -1149
- data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +33 -1149
- data/rbi/lithic/models/auth_rules/v2_retrieve_features_response.rbi +9 -22
- data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +33 -1149
- data/rbi/lithic/models/auth_rules/v2_update_response.rbi +33 -1149
- data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +17 -29
- data/rbi/lithic/models/auth_rules/velocity_limit_period.rbi +223 -0
- data/rbi/lithic/models/book_transfer_response.rbi +16 -11
- data/rbi/lithic/models/category_details.rbi +43 -0
- data/rbi/lithic/models/dispute_v2.rbi +965 -0
- data/rbi/lithic/models/disputes_v2_list_params.rbi +129 -0
- data/rbi/lithic/models/disputes_v2_retrieve_params.rbi +27 -0
- data/rbi/lithic/models/event.rbi +348 -111
- data/rbi/lithic/models/event_list_params.rbi +155 -25
- data/rbi/lithic/models/event_subscription.rbi +155 -25
- data/rbi/lithic/models/events/subscription_create_params.rbi +155 -25
- data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +55 -25
- data/rbi/lithic/models/events/subscription_update_params.rbi +155 -25
- data/rbi/lithic/models/external_bank_account_address.rbi +3 -6
- data/rbi/lithic/models/external_bank_account_create_response.rbi +31 -51
- data/rbi/lithic/models/external_bank_account_list_response.rbi +31 -51
- data/rbi/lithic/models/external_bank_account_retrieve_response.rbi +31 -51
- data/rbi/lithic/models/external_bank_account_retry_micro_deposits_response.rbi +31 -51
- data/rbi/lithic/models/external_bank_account_retry_prenote_response.rbi +31 -51
- data/rbi/lithic/models/external_bank_account_unpause_params.rbi +30 -0
- data/rbi/lithic/models/external_bank_account_unpause_response.rbi +375 -0
- data/rbi/lithic/models/external_bank_account_update_response.rbi +31 -51
- data/rbi/lithic/models/external_bank_accounts/micro_deposit_create_response.rbi +31 -51
- data/rbi/lithic/models/external_payment.rbi +5 -6
- data/rbi/lithic/models/external_payment_list_params.rbi +5 -0
- data/rbi/lithic/models/financial_account.rbi +15 -136
- data/rbi/lithic/models/financial_accounts/category_balances.rbi +42 -0
- data/rbi/lithic/models/financial_accounts/financial_account_credit_config.rbi +3 -136
- data/rbi/lithic/models/financial_accounts/loan_tape.rbi +47 -679
- data/rbi/lithic/models/financial_accounts/statement.rbi +118 -348
- data/rbi/lithic/models/financial_event.rbi +409 -0
- data/rbi/lithic/models/financial_transaction.rbi +3 -509
- data/rbi/lithic/models/management_operation_list_params.rbi +5 -0
- data/rbi/lithic/models/management_operation_transaction.rbi +11 -12
- data/rbi/lithic/models/merchant.rbi +89 -0
- data/rbi/lithic/models/payment.rbi +27 -21
- data/rbi/lithic/models/payment_return_params.rbi +85 -0
- data/rbi/lithic/models/payment_simulate_action_params.rbi +22 -0
- data/rbi/lithic/models/statement_totals.rbi +128 -0
- data/rbi/lithic/models/three_ds/authentication_retrieve_response.rbi +12 -12
- data/rbi/lithic/models/tokenization.rbi +429 -34
- data/rbi/lithic/models/transaction.rbi +26 -336
- data/rbi/lithic/models/transactions/events/enhanced_data.rbi +77 -136
- data/rbi/lithic/models/transfer.rbi +4 -436
- data/rbi/lithic/models.rbi +19 -0
- data/rbi/lithic/resources/auth_rules/v2/backtests.rbi +0 -3
- data/rbi/lithic/resources/auth_rules/v2.rbi +29 -72
- data/rbi/lithic/resources/disputes_v2.rbi +64 -0
- data/rbi/lithic/resources/external_bank_accounts.rbi +10 -0
- data/rbi/lithic/resources/payments.rbi +52 -0
- data/sig/lithic/client.rbs +2 -0
- data/sig/lithic/models/account_activity_list_response.rbs +67 -221
- data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +67 -221
- data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +4 -6
- data/sig/lithic/models/account_holder_update_response.rbs +8 -12
- data/sig/lithic/models/auth_rules/auth_rule_condition.rbs +10 -61
- data/sig/lithic/models/auth_rules/conditional_3ds_action_parameters.rbs +10 -61
- data/sig/lithic/models/auth_rules/conditional_ach_action_parameters.rbs +293 -0
- data/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +112 -0
- data/sig/lithic/models/auth_rules/conditional_operation.rbs +34 -0
- data/sig/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbs +237 -0
- data/sig/lithic/models/auth_rules/conditional_value.rbs +15 -0
- data/sig/lithic/models/auth_rules/v2_create_params.rbs +32 -188
- data/sig/lithic/models/auth_rules/v2_create_response.rbs +15 -319
- data/sig/lithic/models/auth_rules/v2_draft_params.rbs +3 -159
- data/sig/lithic/models/auth_rules/v2_draft_response.rbs +15 -319
- data/sig/lithic/models/auth_rules/v2_list_params.rbs +9 -1
- data/sig/lithic/models/auth_rules/v2_list_response.rbs +15 -319
- data/sig/lithic/models/auth_rules/v2_promote_response.rbs +15 -319
- data/sig/lithic/models/auth_rules/v2_retrieve_features_response.rbs +4 -4
- data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +15 -319
- data/sig/lithic/models/auth_rules/v2_update_response.rbs +15 -319
- data/sig/lithic/models/auth_rules/velocity_limit_params.rbs +4 -4
- data/sig/lithic/models/auth_rules/velocity_limit_period.rbs +91 -0
- data/sig/lithic/models/book_transfer_response.rbs +10 -8
- data/sig/lithic/models/category_details.rbs +26 -0
- data/sig/lithic/models/dispute_v2.rbs +438 -0
- data/sig/lithic/models/disputes_v2_list_params.rbs +77 -0
- data/sig/lithic/models/disputes_v2_retrieve_params.rbs +15 -0
- data/sig/lithic/models/event.rbs +25 -13
- data/sig/lithic/models/event_list_params.rbs +25 -13
- data/sig/lithic/models/event_subscription.rbs +25 -13
- data/sig/lithic/models/events/subscription_create_params.rbs +25 -13
- data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +25 -13
- data/sig/lithic/models/events/subscription_update_params.rbs +25 -13
- data/sig/lithic/models/external_bank_account_address.rbs +4 -6
- data/sig/lithic/models/external_bank_account_create_response.rbs +36 -56
- data/sig/lithic/models/external_bank_account_list_response.rbs +36 -56
- data/sig/lithic/models/external_bank_account_retrieve_response.rbs +36 -56
- data/sig/lithic/models/external_bank_account_retry_micro_deposits_response.rbs +36 -56
- data/sig/lithic/models/external_bank_account_retry_prenote_response.rbs +36 -56
- data/sig/lithic/models/external_bank_account_unpause_params.rbs +15 -0
- data/sig/lithic/models/external_bank_account_unpause_response.rbs +162 -0
- data/sig/lithic/models/external_bank_account_update_response.rbs +36 -56
- data/sig/lithic/models/external_bank_accounts/micro_deposit_create_response.rbs +36 -56
- data/sig/lithic/models/external_payment.rbs +7 -7
- data/sig/lithic/models/external_payment_list_params.rbs +3 -1
- data/sig/lithic/models/financial_account.rbs +7 -49
- data/sig/lithic/models/financial_accounts/category_balances.rbs +24 -0
- data/sig/lithic/models/financial_accounts/financial_account_credit_config.rbs +3 -49
- data/sig/lithic/models/financial_accounts/loan_tape.rbs +48 -386
- data/sig/lithic/models/financial_accounts/statement.rbs +59 -192
- data/sig/lithic/models/financial_event.rbs +216 -0
- data/sig/lithic/models/financial_transaction.rbs +4 -217
- data/sig/lithic/models/management_operation_list_params.rbs +3 -1
- data/sig/lithic/models/management_operation_transaction.rbs +11 -13
- data/sig/lithic/models/merchant.rbs +50 -0
- data/sig/lithic/models/payment.rbs +17 -15
- data/sig/lithic/models/payment_return_params.rbs +46 -0
- data/sig/lithic/models/payment_simulate_action_params.rbs +14 -0
- data/sig/lithic/models/statement_totals.rbs +76 -0
- data/sig/lithic/models/tokenization.rbs +160 -13
- data/sig/lithic/models/transaction.rbs +17 -145
- data/sig/lithic/models/transactions/events/enhanced_data.rbs +78 -124
- data/sig/lithic/models/transfer.rbs +6 -219
- data/sig/lithic/models.rbs +18 -0
- data/sig/lithic/resources/auth_rules/v2.rbs +2 -12
- data/sig/lithic/resources/disputes_v2.rbs +24 -0
- data/sig/lithic/resources/external_bank_accounts.rbs +5 -0
- data/sig/lithic/resources/payments.rbs +12 -0
- metadata +56 -11
- data/lib/lithic/models/auth_rules/v2_apply_params.rb +0 -56
- data/lib/lithic/models/auth_rules/v2_apply_response.rb +0 -766
- data/lib/lithic/models/auth_rules/velocity_limit_params_period_window.rb +0 -248
- data/rbi/lithic/models/auth_rules/v2_apply_params.rbi +0 -86
- data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +0 -1638
- data/rbi/lithic/models/auth_rules/velocity_limit_params_period_window.rbi +0 -557
- data/sig/lithic/models/auth_rules/v2_apply_params.rbs +0 -54
- data/sig/lithic/models/auth_rules/v2_apply_response.rbs +0 -509
- data/sig/lithic/models/auth_rules/velocity_limit_params_period_window.rbs +0 -223
|
@@ -50,13 +50,14 @@ module Lithic
|
|
|
50
50
|
sig { returns(Integer) }
|
|
51
51
|
attr_accessor :pending_amount
|
|
52
52
|
|
|
53
|
-
#
|
|
54
|
-
sig { returns(Lithic::Payment::RelatedAccountTokens) }
|
|
53
|
+
# Account tokens related to a payment transaction
|
|
54
|
+
sig { returns(T.nilable(Lithic::Payment::RelatedAccountTokens)) }
|
|
55
55
|
attr_reader :related_account_tokens
|
|
56
56
|
|
|
57
57
|
sig do
|
|
58
58
|
params(
|
|
59
|
-
related_account_tokens:
|
|
59
|
+
related_account_tokens:
|
|
60
|
+
T.nilable(Lithic::Payment::RelatedAccountTokens::OrHash)
|
|
60
61
|
).void
|
|
61
62
|
end
|
|
62
63
|
attr_writer :related_account_tokens
|
|
@@ -123,7 +124,8 @@ module Lithic
|
|
|
123
124
|
Lithic::Payment::MethodAttributes::WireMethodAttributes::OrHash
|
|
124
125
|
),
|
|
125
126
|
pending_amount: Integer,
|
|
126
|
-
related_account_tokens:
|
|
127
|
+
related_account_tokens:
|
|
128
|
+
T.nilable(Lithic::Payment::RelatedAccountTokens::OrHash),
|
|
127
129
|
result: Lithic::Payment::Result::OrSymbol,
|
|
128
130
|
settled_amount: Integer,
|
|
129
131
|
source: Lithic::Payment::Source::OrSymbol,
|
|
@@ -158,7 +160,7 @@ module Lithic
|
|
|
158
160
|
method_attributes:,
|
|
159
161
|
# Pending amount in cents
|
|
160
162
|
pending_amount:,
|
|
161
|
-
#
|
|
163
|
+
# Account tokens related to a payment transaction
|
|
162
164
|
related_account_tokens:,
|
|
163
165
|
# Transaction result
|
|
164
166
|
result:,
|
|
@@ -198,7 +200,8 @@ module Lithic
|
|
|
198
200
|
method_: Lithic::Payment::Method::TaggedSymbol,
|
|
199
201
|
method_attributes: Lithic::Payment::MethodAttributes::Variants,
|
|
200
202
|
pending_amount: Integer,
|
|
201
|
-
related_account_tokens:
|
|
203
|
+
related_account_tokens:
|
|
204
|
+
T.nilable(Lithic::Payment::RelatedAccountTokens),
|
|
202
205
|
result: Lithic::Payment::Result::TaggedSymbol,
|
|
203
206
|
settled_amount: Integer,
|
|
204
207
|
source: Lithic::Payment::Source::TaggedSymbol,
|
|
@@ -567,6 +570,11 @@ module Lithic
|
|
|
567
570
|
:APPROVED,
|
|
568
571
|
Lithic::Payment::Event::DetailedResult::TaggedSymbol
|
|
569
572
|
)
|
|
573
|
+
DECLINED =
|
|
574
|
+
T.let(
|
|
575
|
+
:DECLINED,
|
|
576
|
+
Lithic::Payment::Event::DetailedResult::TaggedSymbol
|
|
577
|
+
)
|
|
570
578
|
FUNDS_INSUFFICIENT =
|
|
571
579
|
T.let(
|
|
572
580
|
:FUNDS_INSUFFICIENT,
|
|
@@ -791,6 +799,10 @@ module Lithic
|
|
|
791
799
|
)
|
|
792
800
|
end
|
|
793
801
|
|
|
802
|
+
# Type of wire message
|
|
803
|
+
sig { returns(T.nilable(String)) }
|
|
804
|
+
attr_accessor :wire_message_type
|
|
805
|
+
|
|
794
806
|
# Type of wire transfer
|
|
795
807
|
sig do
|
|
796
808
|
returns(
|
|
@@ -820,25 +832,20 @@ module Lithic
|
|
|
820
832
|
sig { returns(T.nilable(String)) }
|
|
821
833
|
attr_accessor :remittance_information
|
|
822
834
|
|
|
823
|
-
# Type of wire message
|
|
824
|
-
sig { returns(T.nilable(String)) }
|
|
825
|
-
attr_reader :wire_message_type
|
|
826
|
-
|
|
827
|
-
sig { params(wire_message_type: String).void }
|
|
828
|
-
attr_writer :wire_message_type
|
|
829
|
-
|
|
830
835
|
sig do
|
|
831
836
|
params(
|
|
837
|
+
wire_message_type: T.nilable(String),
|
|
832
838
|
wire_network:
|
|
833
839
|
Lithic::Payment::MethodAttributes::WireMethodAttributes::WireNetwork::OrSymbol,
|
|
834
840
|
creditor: Lithic::WirePartyDetails::OrHash,
|
|
835
841
|
debtor: Lithic::WirePartyDetails::OrHash,
|
|
836
842
|
message_id: T.nilable(String),
|
|
837
|
-
remittance_information: T.nilable(String)
|
|
838
|
-
wire_message_type: String
|
|
843
|
+
remittance_information: T.nilable(String)
|
|
839
844
|
).returns(T.attached_class)
|
|
840
845
|
end
|
|
841
846
|
def self.new(
|
|
847
|
+
# Type of wire message
|
|
848
|
+
wire_message_type:,
|
|
842
849
|
# Type of wire transfer
|
|
843
850
|
wire_network:,
|
|
844
851
|
creditor: nil,
|
|
@@ -847,22 +854,20 @@ module Lithic
|
|
|
847
854
|
# for tracking the message through the Fedwire system
|
|
848
855
|
message_id: nil,
|
|
849
856
|
# Payment details or invoice reference
|
|
850
|
-
remittance_information: nil
|
|
851
|
-
# Type of wire message
|
|
852
|
-
wire_message_type: nil
|
|
857
|
+
remittance_information: nil
|
|
853
858
|
)
|
|
854
859
|
end
|
|
855
860
|
|
|
856
861
|
sig do
|
|
857
862
|
override.returns(
|
|
858
863
|
{
|
|
864
|
+
wire_message_type: T.nilable(String),
|
|
859
865
|
wire_network:
|
|
860
866
|
Lithic::Payment::MethodAttributes::WireMethodAttributes::WireNetwork::TaggedSymbol,
|
|
861
867
|
creditor: Lithic::WirePartyDetails,
|
|
862
868
|
debtor: Lithic::WirePartyDetails,
|
|
863
869
|
message_id: T.nilable(String),
|
|
864
|
-
remittance_information: T.nilable(String)
|
|
865
|
-
wire_message_type: String
|
|
870
|
+
remittance_information: T.nilable(String)
|
|
866
871
|
}
|
|
867
872
|
)
|
|
868
873
|
end
|
|
@@ -931,7 +936,7 @@ module Lithic
|
|
|
931
936
|
sig { returns(T.nilable(String)) }
|
|
932
937
|
attr_accessor :business_account_token
|
|
933
938
|
|
|
934
|
-
#
|
|
939
|
+
# Account tokens related to a payment transaction
|
|
935
940
|
sig do
|
|
936
941
|
params(
|
|
937
942
|
account_token: T.nilable(String),
|
|
@@ -1005,6 +1010,7 @@ module Lithic
|
|
|
1005
1010
|
DECLINED = T.let(:DECLINED, Lithic::Payment::Status::TaggedSymbol)
|
|
1006
1011
|
REVERSED = T.let(:REVERSED, Lithic::Payment::Status::TaggedSymbol)
|
|
1007
1012
|
CANCELED = T.let(:CANCELED, Lithic::Payment::Status::TaggedSymbol)
|
|
1013
|
+
RETURNED = T.let(:RETURNED, Lithic::Payment::Status::TaggedSymbol)
|
|
1008
1014
|
|
|
1009
1015
|
sig do
|
|
1010
1016
|
override.returns(T::Array[Lithic::Payment::Status::TaggedSymbol])
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
class PaymentReturnParams < 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::PaymentReturnParams, Lithic::Internal::AnyHash)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# Globally unique identifier for the financial account
|
|
15
|
+
sig { returns(String) }
|
|
16
|
+
attr_accessor :financial_account_token
|
|
17
|
+
|
|
18
|
+
# ACH return reason code indicating the reason for returning the payment.
|
|
19
|
+
# Supported codes include R01-R53 and R80-R85. For a complete list of return codes
|
|
20
|
+
# and their meanings, see
|
|
21
|
+
# [ACH Return Reasons](https://docs.lithic.com/docs/ach-overview#ach-return-reasons)
|
|
22
|
+
sig { returns(String) }
|
|
23
|
+
attr_accessor :return_reason_code
|
|
24
|
+
|
|
25
|
+
# Optional additional information about the return. Limited to 44 characters
|
|
26
|
+
sig { returns(T.nilable(String)) }
|
|
27
|
+
attr_accessor :addenda
|
|
28
|
+
|
|
29
|
+
# Date of death in YYYY-MM-DD format. Required when using return codes **R14**
|
|
30
|
+
# (representative payee deceased) or **R15** (beneficiary or account holder
|
|
31
|
+
# deceased)
|
|
32
|
+
sig { returns(T.nilable(Date)) }
|
|
33
|
+
attr_accessor :date_of_death
|
|
34
|
+
|
|
35
|
+
# Optional memo for the return. Limited to 10 characters
|
|
36
|
+
sig { returns(T.nilable(String)) }
|
|
37
|
+
attr_accessor :memo
|
|
38
|
+
|
|
39
|
+
sig do
|
|
40
|
+
params(
|
|
41
|
+
financial_account_token: String,
|
|
42
|
+
return_reason_code: String,
|
|
43
|
+
addenda: T.nilable(String),
|
|
44
|
+
date_of_death: T.nilable(Date),
|
|
45
|
+
memo: T.nilable(String),
|
|
46
|
+
request_options: Lithic::RequestOptions::OrHash
|
|
47
|
+
).returns(T.attached_class)
|
|
48
|
+
end
|
|
49
|
+
def self.new(
|
|
50
|
+
# Globally unique identifier for the financial account
|
|
51
|
+
financial_account_token:,
|
|
52
|
+
# ACH return reason code indicating the reason for returning the payment.
|
|
53
|
+
# Supported codes include R01-R53 and R80-R85. For a complete list of return codes
|
|
54
|
+
# and their meanings, see
|
|
55
|
+
# [ACH Return Reasons](https://docs.lithic.com/docs/ach-overview#ach-return-reasons)
|
|
56
|
+
return_reason_code:,
|
|
57
|
+
# Optional additional information about the return. Limited to 44 characters
|
|
58
|
+
addenda: nil,
|
|
59
|
+
# Date of death in YYYY-MM-DD format. Required when using return codes **R14**
|
|
60
|
+
# (representative payee deceased) or **R15** (beneficiary or account holder
|
|
61
|
+
# deceased)
|
|
62
|
+
date_of_death: nil,
|
|
63
|
+
# Optional memo for the return. Limited to 10 characters
|
|
64
|
+
memo: nil,
|
|
65
|
+
request_options: {}
|
|
66
|
+
)
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
sig do
|
|
70
|
+
override.returns(
|
|
71
|
+
{
|
|
72
|
+
financial_account_token: String,
|
|
73
|
+
return_reason_code: String,
|
|
74
|
+
addenda: T.nilable(String),
|
|
75
|
+
date_of_death: T.nilable(Date),
|
|
76
|
+
memo: T.nilable(String),
|
|
77
|
+
request_options: Lithic::RequestOptions
|
|
78
|
+
}
|
|
79
|
+
)
|
|
80
|
+
end
|
|
81
|
+
def to_hash
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
end
|
|
@@ -15,6 +15,13 @@ module Lithic
|
|
|
15
15
|
sig { returns(Lithic::PaymentSimulateActionParams::EventType::OrSymbol) }
|
|
16
16
|
attr_accessor :event_type
|
|
17
17
|
|
|
18
|
+
# Date of Death for ACH Return
|
|
19
|
+
sig { returns(T.nilable(Date)) }
|
|
20
|
+
attr_reader :date_of_death
|
|
21
|
+
|
|
22
|
+
sig { params(date_of_death: Date).void }
|
|
23
|
+
attr_writer :date_of_death
|
|
24
|
+
|
|
18
25
|
# Decline reason
|
|
19
26
|
sig do
|
|
20
27
|
returns(
|
|
@@ -33,6 +40,13 @@ module Lithic
|
|
|
33
40
|
end
|
|
34
41
|
attr_writer :decline_reason
|
|
35
42
|
|
|
43
|
+
# Return Addenda
|
|
44
|
+
sig { returns(T.nilable(String)) }
|
|
45
|
+
attr_reader :return_addenda
|
|
46
|
+
|
|
47
|
+
sig { params(return_addenda: String).void }
|
|
48
|
+
attr_writer :return_addenda
|
|
49
|
+
|
|
36
50
|
# Return Reason Code
|
|
37
51
|
sig { returns(T.nilable(String)) }
|
|
38
52
|
attr_reader :return_reason_code
|
|
@@ -43,8 +57,10 @@ module Lithic
|
|
|
43
57
|
sig do
|
|
44
58
|
params(
|
|
45
59
|
event_type: Lithic::PaymentSimulateActionParams::EventType::OrSymbol,
|
|
60
|
+
date_of_death: Date,
|
|
46
61
|
decline_reason:
|
|
47
62
|
Lithic::PaymentSimulateActionParams::DeclineReason::OrSymbol,
|
|
63
|
+
return_addenda: String,
|
|
48
64
|
return_reason_code: String,
|
|
49
65
|
request_options: Lithic::RequestOptions::OrHash
|
|
50
66
|
).returns(T.attached_class)
|
|
@@ -52,8 +68,12 @@ module Lithic
|
|
|
52
68
|
def self.new(
|
|
53
69
|
# Event Type
|
|
54
70
|
event_type:,
|
|
71
|
+
# Date of Death for ACH Return
|
|
72
|
+
date_of_death: nil,
|
|
55
73
|
# Decline reason
|
|
56
74
|
decline_reason: nil,
|
|
75
|
+
# Return Addenda
|
|
76
|
+
return_addenda: nil,
|
|
57
77
|
# Return Reason Code
|
|
58
78
|
return_reason_code: nil,
|
|
59
79
|
request_options: {}
|
|
@@ -65,8 +85,10 @@ module Lithic
|
|
|
65
85
|
{
|
|
66
86
|
event_type:
|
|
67
87
|
Lithic::PaymentSimulateActionParams::EventType::OrSymbol,
|
|
88
|
+
date_of_death: Date,
|
|
68
89
|
decline_reason:
|
|
69
90
|
Lithic::PaymentSimulateActionParams::DeclineReason::OrSymbol,
|
|
91
|
+
return_addenda: String,
|
|
70
92
|
return_reason_code: String,
|
|
71
93
|
request_options: Lithic::RequestOptions
|
|
72
94
|
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
class StatementTotals < Lithic::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Lithic::StatementTotals, Lithic::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
# Opening balance transferred from previous account in cents
|
|
12
|
+
sig { returns(Integer) }
|
|
13
|
+
attr_accessor :balance_transfers
|
|
14
|
+
|
|
15
|
+
# ATM and cashback transactions in cents
|
|
16
|
+
sig { returns(Integer) }
|
|
17
|
+
attr_accessor :cash_advances
|
|
18
|
+
|
|
19
|
+
# Volume of credit management operation transactions less any balance transfers in
|
|
20
|
+
# cents
|
|
21
|
+
sig { returns(Integer) }
|
|
22
|
+
attr_accessor :credits
|
|
23
|
+
|
|
24
|
+
# Volume of debit management operation transactions less any interest in cents
|
|
25
|
+
sig { returns(Integer) }
|
|
26
|
+
attr_accessor :debits
|
|
27
|
+
|
|
28
|
+
# Volume of debit management operation transactions less any interest in cents
|
|
29
|
+
sig { returns(Integer) }
|
|
30
|
+
attr_accessor :fees
|
|
31
|
+
|
|
32
|
+
# Interest accrued in cents
|
|
33
|
+
sig { returns(Integer) }
|
|
34
|
+
attr_accessor :interest
|
|
35
|
+
|
|
36
|
+
# Any funds transfers which affective the balance in cents
|
|
37
|
+
sig { returns(Integer) }
|
|
38
|
+
attr_accessor :payments
|
|
39
|
+
|
|
40
|
+
# Net card transaction volume less any cash advances in cents
|
|
41
|
+
sig { returns(Integer) }
|
|
42
|
+
attr_accessor :purchases
|
|
43
|
+
|
|
44
|
+
# Breakdown of credits
|
|
45
|
+
sig { returns(T.nilable(T.anything)) }
|
|
46
|
+
attr_reader :credit_details
|
|
47
|
+
|
|
48
|
+
sig { params(credit_details: T.anything).void }
|
|
49
|
+
attr_writer :credit_details
|
|
50
|
+
|
|
51
|
+
# Breakdown of debits
|
|
52
|
+
sig { returns(T.nilable(T.anything)) }
|
|
53
|
+
attr_reader :debit_details
|
|
54
|
+
|
|
55
|
+
sig { params(debit_details: T.anything).void }
|
|
56
|
+
attr_writer :debit_details
|
|
57
|
+
|
|
58
|
+
# Breakdown of payments
|
|
59
|
+
sig { returns(T.nilable(T.anything)) }
|
|
60
|
+
attr_reader :payment_details
|
|
61
|
+
|
|
62
|
+
sig { params(payment_details: T.anything).void }
|
|
63
|
+
attr_writer :payment_details
|
|
64
|
+
|
|
65
|
+
sig do
|
|
66
|
+
params(
|
|
67
|
+
balance_transfers: Integer,
|
|
68
|
+
cash_advances: Integer,
|
|
69
|
+
credits: Integer,
|
|
70
|
+
debits: Integer,
|
|
71
|
+
fees: Integer,
|
|
72
|
+
interest: Integer,
|
|
73
|
+
payments: Integer,
|
|
74
|
+
purchases: Integer,
|
|
75
|
+
credit_details: T.anything,
|
|
76
|
+
debit_details: T.anything,
|
|
77
|
+
payment_details: T.anything
|
|
78
|
+
).returns(T.attached_class)
|
|
79
|
+
end
|
|
80
|
+
def self.new(
|
|
81
|
+
# Opening balance transferred from previous account in cents
|
|
82
|
+
balance_transfers:,
|
|
83
|
+
# ATM and cashback transactions in cents
|
|
84
|
+
cash_advances:,
|
|
85
|
+
# Volume of credit management operation transactions less any balance transfers in
|
|
86
|
+
# cents
|
|
87
|
+
credits:,
|
|
88
|
+
# Volume of debit management operation transactions less any interest in cents
|
|
89
|
+
debits:,
|
|
90
|
+
# Volume of debit management operation transactions less any interest in cents
|
|
91
|
+
fees:,
|
|
92
|
+
# Interest accrued in cents
|
|
93
|
+
interest:,
|
|
94
|
+
# Any funds transfers which affective the balance in cents
|
|
95
|
+
payments:,
|
|
96
|
+
# Net card transaction volume less any cash advances in cents
|
|
97
|
+
purchases:,
|
|
98
|
+
# Breakdown of credits
|
|
99
|
+
credit_details: nil,
|
|
100
|
+
# Breakdown of debits
|
|
101
|
+
debit_details: nil,
|
|
102
|
+
# Breakdown of payments
|
|
103
|
+
payment_details: nil
|
|
104
|
+
)
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
sig do
|
|
108
|
+
override.returns(
|
|
109
|
+
{
|
|
110
|
+
balance_transfers: Integer,
|
|
111
|
+
cash_advances: Integer,
|
|
112
|
+
credits: Integer,
|
|
113
|
+
debits: Integer,
|
|
114
|
+
fees: Integer,
|
|
115
|
+
interest: Integer,
|
|
116
|
+
payments: Integer,
|
|
117
|
+
purchases: Integer,
|
|
118
|
+
credit_details: T.anything,
|
|
119
|
+
debit_details: T.anything,
|
|
120
|
+
payment_details: T.anything
|
|
121
|
+
}
|
|
122
|
+
)
|
|
123
|
+
end
|
|
124
|
+
def to_hash
|
|
125
|
+
end
|
|
126
|
+
end
|
|
127
|
+
end
|
|
128
|
+
end
|
|
@@ -677,18 +677,18 @@ module Lithic
|
|
|
677
677
|
sig { returns(T.nilable(String)) }
|
|
678
678
|
attr_accessor :name
|
|
679
679
|
|
|
680
|
-
# Home phone number provided by the cardholder. Maps to EMV 3DS
|
|
681
|
-
# `homePhone.cc` and `homePhone.subscriber`.
|
|
680
|
+
# Home phone number in E.164 format provided by the cardholder. Maps to EMV 3DS
|
|
681
|
+
# fields `homePhone.cc` and `homePhone.subscriber`.
|
|
682
682
|
sig { returns(T.nilable(String)) }
|
|
683
683
|
attr_accessor :phone_number_home
|
|
684
684
|
|
|
685
|
-
# Mobile/cell phone number provided by the cardholder. Maps to EMV
|
|
686
|
-
# `mobilePhone.cc` and `mobilePhone.subscriber`.
|
|
685
|
+
# Mobile/cell phone number in E.164 format provided by the cardholder. Maps to EMV
|
|
686
|
+
# 3DS fields `mobilePhone.cc` and `mobilePhone.subscriber`.
|
|
687
687
|
sig { returns(T.nilable(String)) }
|
|
688
688
|
attr_accessor :phone_number_mobile
|
|
689
689
|
|
|
690
|
-
# Work phone number provided by the cardholder. Maps to EMV 3DS
|
|
691
|
-
# `workPhone.cc` and `workPhone.subscriber`.
|
|
690
|
+
# Work phone number in E.164 format provided by the cardholder. Maps to EMV 3DS
|
|
691
|
+
# fields `workPhone.cc` and `workPhone.subscriber`.
|
|
692
692
|
sig { returns(T.nilable(String)) }
|
|
693
693
|
attr_accessor :phone_number_work
|
|
694
694
|
|
|
@@ -745,14 +745,14 @@ module Lithic
|
|
|
745
745
|
email: nil,
|
|
746
746
|
# Name of the cardholder. Maps to EMV 3DS field `cardholderName`.
|
|
747
747
|
name: nil,
|
|
748
|
-
# Home phone number provided by the cardholder. Maps to EMV 3DS
|
|
749
|
-
# `homePhone.cc` and `homePhone.subscriber`.
|
|
748
|
+
# Home phone number in E.164 format provided by the cardholder. Maps to EMV 3DS
|
|
749
|
+
# fields `homePhone.cc` and `homePhone.subscriber`.
|
|
750
750
|
phone_number_home: nil,
|
|
751
|
-
# Mobile/cell phone number provided by the cardholder. Maps to EMV
|
|
752
|
-
# `mobilePhone.cc` and `mobilePhone.subscriber`.
|
|
751
|
+
# Mobile/cell phone number in E.164 format provided by the cardholder. Maps to EMV
|
|
752
|
+
# 3DS fields `mobilePhone.cc` and `mobilePhone.subscriber`.
|
|
753
753
|
phone_number_mobile: nil,
|
|
754
|
-
# Work phone number provided by the cardholder. Maps to EMV 3DS
|
|
755
|
-
# `workPhone.cc` and `workPhone.subscriber`.
|
|
754
|
+
# Work phone number in E.164 format provided by the cardholder. Maps to EMV 3DS
|
|
755
|
+
# fields `workPhone.cc` and `workPhone.subscriber`.
|
|
756
756
|
phone_number_work: nil,
|
|
757
757
|
# Object containing data on the shipping address provided during the transaction.
|
|
758
758
|
shipping_address: nil
|