lithic 0.1.0.pre.alpha.55 → 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 +20 -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/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 +8 -53
- 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 +14 -5
- data/lib/lithic/models/auth_rules/v2_create_response.rb +21 -8
- data/lib/lithic/models/auth_rules/v2_draft_params.rb +7 -3
- data/lib/lithic/models/auth_rules/v2_draft_response.rb +21 -8
- data/lib/lithic/models/auth_rules/v2_list_params.rb +3 -0
- data/lib/lithic/models/auth_rules/v2_list_response.rb +21 -8
- data/lib/lithic/models/auth_rules/v2_promote_response.rb +21 -8
- data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +21 -8
- data/lib/lithic/models/auth_rules/v2_update_response.rb +21 -8
- data/lib/lithic/models/book_transfer_response.rb +1 -0
- data/lib/lithic/models/category_details.rb +27 -0
- data/lib/lithic/models/dispute.rb +242 -510
- 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/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 +4 -3
- data/lib/lithic/models/financial_accounts/category_balances.rb +29 -0
- data/lib/lithic/models/financial_accounts/loan_tape.rb +35 -520
- data/lib/lithic/models/financial_accounts/statement.rb +73 -275
- 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 +7 -5
- data/lib/lithic/models/payment_return_params.rb +62 -0
- 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/transaction.rb +3 -69
- data/lib/lithic/models/transactions/events/enhanced_data.rb +49 -40
- data/lib/lithic/models/transfer.rb +3 -146
- data/lib/lithic/models.rb +18 -0
- data/lib/lithic/resources/auth_rules/v2.rb +2 -2
- data/lib/lithic/resources/disputes.rb +10 -10
- 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 +48 -0
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +16 -5
- 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/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 +13 -153
- 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 +33 -7
- data/rbi/lithic/models/auth_rules/v2_create_response.rbi +33 -7
- data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +12 -4
- data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +33 -7
- data/rbi/lithic/models/auth_rules/v2_list_params.rbi +15 -0
- data/rbi/lithic/models/auth_rules/v2_list_response.rbi +33 -7
- data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +33 -7
- data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +33 -7
- data/rbi/lithic/models/auth_rules/v2_update_response.rbi +33 -7
- data/rbi/lithic/models/book_transfer_response.rbi +2 -0
- data/rbi/lithic/models/category_details.rbi +43 -0
- data/rbi/lithic/models/dispute.rbi +395 -942
- 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/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 +12 -4
- data/rbi/lithic/models/financial_accounts/category_balances.rbi +42 -0
- data/rbi/lithic/models/financial_accounts/loan_tape.rbi +47 -802
- data/rbi/lithic/models/financial_accounts/statement.rbi +118 -430
- 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 +16 -7
- data/rbi/lithic/models/payment_return_params.rbi +85 -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/transaction.rbi +4 -90
- data/rbi/lithic/models/transactions/events/enhanced_data.rbi +74 -133
- data/rbi/lithic/models/transfer.rbi +4 -436
- data/rbi/lithic/models.rbi +19 -0
- data/rbi/lithic/resources/auth_rules/v2.rbi +8 -3
- data/rbi/lithic/resources/disputes.rbi +5 -7
- 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 +46 -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/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 +10 -61
- 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 +11 -1
- data/sig/lithic/models/auth_rules/v2_create_response.rbs +13 -1
- data/sig/lithic/models/auth_rules/v2_draft_params.rbs +2 -0
- data/sig/lithic/models/auth_rules/v2_draft_response.rbs +13 -1
- data/sig/lithic/models/auth_rules/v2_list_params.rbs +9 -1
- data/sig/lithic/models/auth_rules/v2_list_response.rbs +13 -1
- data/sig/lithic/models/auth_rules/v2_promote_response.rbs +13 -1
- data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +13 -1
- data/sig/lithic/models/auth_rules/v2_update_response.rbs +13 -1
- data/sig/lithic/models/book_transfer_response.rbs +3 -1
- data/sig/lithic/models/category_details.rbs +26 -0
- data/sig/lithic/models/dispute.rbs +157 -417
- 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/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 +4 -4
- data/sig/lithic/models/financial_accounts/category_balances.rbs +24 -0
- data/sig/lithic/models/financial_accounts/loan_tape.rbs +48 -464
- data/sig/lithic/models/financial_accounts/statement.rbs +59 -244
- 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 +9 -5
- data/sig/lithic/models/payment_return_params.rbs +46 -0
- data/sig/lithic/models/statement_totals.rbs +76 -0
- data/sig/lithic/models/transaction.rbs +4 -51
- 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/disputes.rbs +5 -5
- 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 +10 -0
- metadata +50 -17
- data/lib/lithic/models/dispute_create_response.rb +0 -326
- data/lib/lithic/models/dispute_delete_response.rb +0 -326
- data/lib/lithic/models/dispute_list_response.rb +0 -326
- data/lib/lithic/models/dispute_retrieve_response.rb +0 -326
- data/lib/lithic/models/dispute_update_response.rb +0 -326
- data/rbi/lithic/models/dispute_create_response.rbi +0 -599
- data/rbi/lithic/models/dispute_delete_response.rbi +0 -599
- data/rbi/lithic/models/dispute_list_response.rbi +0 -582
- data/rbi/lithic/models/dispute_retrieve_response.rbi +0 -601
- data/rbi/lithic/models/dispute_update_response.rbi +0 -599
- data/sig/lithic/models/dispute_create_response.rbs +0 -210
- data/sig/lithic/models/dispute_delete_response.rbs +0 -210
- data/sig/lithic/models/dispute_list_response.rbs +0 -210
- data/sig/lithic/models/dispute_retrieve_response.rbs +0 -210
- data/sig/lithic/models/dispute_update_response.rbs +0 -210
|
@@ -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,
|
|
@@ -928,7 +936,7 @@ module Lithic
|
|
|
928
936
|
sig { returns(T.nilable(String)) }
|
|
929
937
|
attr_accessor :business_account_token
|
|
930
938
|
|
|
931
|
-
#
|
|
939
|
+
# Account tokens related to a payment transaction
|
|
932
940
|
sig do
|
|
933
941
|
params(
|
|
934
942
|
account_token: T.nilable(String),
|
|
@@ -1002,6 +1010,7 @@ module Lithic
|
|
|
1002
1010
|
DECLINED = T.let(:DECLINED, Lithic::Payment::Status::TaggedSymbol)
|
|
1003
1011
|
REVERSED = T.let(:REVERSED, Lithic::Payment::Status::TaggedSymbol)
|
|
1004
1012
|
CANCELED = T.let(:CANCELED, Lithic::Payment::Status::TaggedSymbol)
|
|
1013
|
+
RETURNED = T.let(:RETURNED, Lithic::Payment::Status::TaggedSymbol)
|
|
1005
1014
|
|
|
1006
1015
|
sig do
|
|
1007
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
|
|
@@ -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
|
|
@@ -76,10 +76,10 @@ module Lithic
|
|
|
76
76
|
sig { returns(T.nilable(String)) }
|
|
77
77
|
attr_accessor :financial_account_token
|
|
78
78
|
|
|
79
|
-
sig { returns(Lithic::
|
|
79
|
+
sig { returns(Lithic::Merchant) }
|
|
80
80
|
attr_reader :merchant
|
|
81
81
|
|
|
82
|
-
sig { params(merchant: Lithic::
|
|
82
|
+
sig { params(merchant: Lithic::Merchant::OrHash).void }
|
|
83
83
|
attr_writer :merchant
|
|
84
84
|
|
|
85
85
|
# Analogous to the 'amount', but in the merchant currency.
|
|
@@ -160,7 +160,7 @@ module Lithic
|
|
|
160
160
|
T.nilable(Lithic::Transaction::CardholderAuthentication::OrHash),
|
|
161
161
|
created: Time,
|
|
162
162
|
financial_account_token: T.nilable(String),
|
|
163
|
-
merchant: Lithic::
|
|
163
|
+
merchant: Lithic::Merchant::OrHash,
|
|
164
164
|
merchant_amount: T.nilable(Integer),
|
|
165
165
|
merchant_authorization_amount: T.nilable(Integer),
|
|
166
166
|
merchant_currency: String,
|
|
@@ -252,7 +252,7 @@ module Lithic
|
|
|
252
252
|
T.nilable(Lithic::Transaction::CardholderAuthentication),
|
|
253
253
|
created: Time,
|
|
254
254
|
financial_account_token: T.nilable(String),
|
|
255
|
-
merchant: Lithic::
|
|
255
|
+
merchant: Lithic::Merchant,
|
|
256
256
|
merchant_amount: T.nilable(Integer),
|
|
257
257
|
merchant_authorization_amount: T.nilable(Integer),
|
|
258
258
|
merchant_currency: String,
|
|
@@ -820,92 +820,6 @@ module Lithic
|
|
|
820
820
|
end
|
|
821
821
|
end
|
|
822
822
|
|
|
823
|
-
class Merchant < Lithic::Internal::Type::BaseModel
|
|
824
|
-
OrHash =
|
|
825
|
-
T.type_alias do
|
|
826
|
-
T.any(Lithic::Transaction::Merchant, Lithic::Internal::AnyHash)
|
|
827
|
-
end
|
|
828
|
-
|
|
829
|
-
# Unique alphanumeric identifier for the payment card acceptor (merchant).
|
|
830
|
-
sig { returns(String) }
|
|
831
|
-
attr_accessor :acceptor_id
|
|
832
|
-
|
|
833
|
-
# Unique numeric identifier of the acquiring institution.
|
|
834
|
-
sig { returns(String) }
|
|
835
|
-
attr_accessor :acquiring_institution_id
|
|
836
|
-
|
|
837
|
-
# City of card acceptor. Note that in many cases, particularly in card-not-present
|
|
838
|
-
# transactions, merchants may send through a phone number or URL in this field.
|
|
839
|
-
sig { returns(String) }
|
|
840
|
-
attr_accessor :city
|
|
841
|
-
|
|
842
|
-
# Country or entity of card acceptor. Possible values are: (1) all ISO 3166-1
|
|
843
|
-
# alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for Netherlands Antilles.
|
|
844
|
-
sig { returns(String) }
|
|
845
|
-
attr_accessor :country
|
|
846
|
-
|
|
847
|
-
# Short description of card acceptor.
|
|
848
|
-
sig { returns(String) }
|
|
849
|
-
attr_accessor :descriptor
|
|
850
|
-
|
|
851
|
-
# Merchant category code (MCC). A four-digit number listed in ISO 18245. An MCC is
|
|
852
|
-
# used to classify a business by the types of goods or services it provides.
|
|
853
|
-
sig { returns(String) }
|
|
854
|
-
attr_accessor :mcc
|
|
855
|
-
|
|
856
|
-
# Geographic state of card acceptor.
|
|
857
|
-
sig { returns(String) }
|
|
858
|
-
attr_accessor :state
|
|
859
|
-
|
|
860
|
-
sig do
|
|
861
|
-
params(
|
|
862
|
-
acceptor_id: String,
|
|
863
|
-
acquiring_institution_id: String,
|
|
864
|
-
city: String,
|
|
865
|
-
country: String,
|
|
866
|
-
descriptor: String,
|
|
867
|
-
mcc: String,
|
|
868
|
-
state: String
|
|
869
|
-
).returns(T.attached_class)
|
|
870
|
-
end
|
|
871
|
-
def self.new(
|
|
872
|
-
# Unique alphanumeric identifier for the payment card acceptor (merchant).
|
|
873
|
-
acceptor_id:,
|
|
874
|
-
# Unique numeric identifier of the acquiring institution.
|
|
875
|
-
acquiring_institution_id:,
|
|
876
|
-
# City of card acceptor. Note that in many cases, particularly in card-not-present
|
|
877
|
-
# transactions, merchants may send through a phone number or URL in this field.
|
|
878
|
-
city:,
|
|
879
|
-
# Country or entity of card acceptor. Possible values are: (1) all ISO 3166-1
|
|
880
|
-
# alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for Netherlands Antilles.
|
|
881
|
-
country:,
|
|
882
|
-
# Short description of card acceptor.
|
|
883
|
-
descriptor:,
|
|
884
|
-
# Merchant category code (MCC). A four-digit number listed in ISO 18245. An MCC is
|
|
885
|
-
# used to classify a business by the types of goods or services it provides.
|
|
886
|
-
mcc:,
|
|
887
|
-
# Geographic state of card acceptor.
|
|
888
|
-
state:
|
|
889
|
-
)
|
|
890
|
-
end
|
|
891
|
-
|
|
892
|
-
sig do
|
|
893
|
-
override.returns(
|
|
894
|
-
{
|
|
895
|
-
acceptor_id: String,
|
|
896
|
-
acquiring_institution_id: String,
|
|
897
|
-
city: String,
|
|
898
|
-
country: String,
|
|
899
|
-
descriptor: String,
|
|
900
|
-
mcc: String,
|
|
901
|
-
state: String
|
|
902
|
-
}
|
|
903
|
-
)
|
|
904
|
-
end
|
|
905
|
-
def to_hash
|
|
906
|
-
end
|
|
907
|
-
end
|
|
908
|
-
|
|
909
823
|
# Card network of the authorization. Value is `UNKNOWN` when Lithic cannot
|
|
910
824
|
# determine the network code from the upstream provider.
|
|
911
825
|
module Network
|