lithic 0.15.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +35 -0
- data/README.md +1 -1
- data/lib/lithic/client.rb +4 -0
- data/lib/lithic/internal/transport/base_client.rb +4 -1
- data/lib/lithic/models/account.rb +2 -2
- data/lib/lithic/models/account_holders/account_holder_entity.rb +3 -16
- data/lib/lithic/models/account_holders/entity_create_params.rb +3 -14
- data/lib/lithic/models/auth_rules/ach_payment_update_action.rb +108 -0
- data/lib/lithic/models/auth_rules/auth_rule.rb +18 -12
- data/lib/lithic/models/auth_rules/auth_rule_version.rb +5 -3
- data/lib/lithic/models/auth_rules/conditional_ach_payment_update_action_parameters.rb +142 -0
- data/lib/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rb +18 -20
- data/lib/lithic/models/auth_rules/conditional_card_transaction_update_action_parameters.rb +195 -9
- data/lib/lithic/models/auth_rules/event_stream.rb +1 -0
- data/lib/lithic/models/auth_rules/rule_feature.rb +52 -7
- data/lib/lithic/models/auth_rules/typescript_code_parameters.rb +2 -2
- data/lib/lithic/models/auth_rules/v2_create_params.rb +39 -27
- data/lib/lithic/models/auth_rules/v2_draft_params.rb +5 -3
- data/lib/lithic/models/auth_rules/v2_list_results_response.rb +426 -1
- data/lib/lithic/models/card.rb +1 -1
- data/lib/lithic/models/card_authorization.rb +117 -11
- data/lib/lithic/models/financial_accounts/loan_tape.rb +9 -1
- data/lib/lithic/models/payment.rb +13 -1
- data/lib/lithic/models/transaction_monitoring/case_activity_entry.rb +74 -0
- data/lib/lithic/models/transaction_monitoring/case_activity_type.rb +35 -0
- data/lib/lithic/models/transaction_monitoring/case_card.rb +37 -0
- data/lib/lithic/models/transaction_monitoring/case_entity.rb +50 -0
- data/lib/lithic/models/transaction_monitoring/case_list_activity_params.rb +53 -0
- data/lib/lithic/models/transaction_monitoring/case_list_params.rb +136 -0
- data/lib/lithic/models/transaction_monitoring/case_list_transactions_params.rb +53 -0
- data/lib/lithic/models/transaction_monitoring/case_priority.rb +20 -0
- data/lib/lithic/models/transaction_monitoring/case_retrieve_cards_params.rb +22 -0
- data/lib/lithic/models/transaction_monitoring/case_retrieve_cards_response.rb +11 -0
- data/lib/lithic/models/transaction_monitoring/case_retrieve_params.rb +22 -0
- data/lib/lithic/models/transaction_monitoring/case_sort_order.rb +29 -0
- data/lib/lithic/models/transaction_monitoring/case_status.rb +31 -0
- data/lib/lithic/models/transaction_monitoring/case_transaction.rb +53 -0
- data/lib/lithic/models/transaction_monitoring/case_update_params.rb +116 -0
- data/lib/lithic/models/transaction_monitoring/cases/case_file.rb +141 -0
- data/lib/lithic/models/transaction_monitoring/cases/comment_create_params.rb +47 -0
- data/lib/lithic/models/transaction_monitoring/cases/comment_delete_params.rb +30 -0
- data/lib/lithic/models/transaction_monitoring/cases/comment_update_params.rb +54 -0
- data/lib/lithic/models/transaction_monitoring/cases/file_create_params.rb +33 -0
- data/lib/lithic/models/transaction_monitoring/cases/file_delete_params.rb +30 -0
- data/lib/lithic/models/transaction_monitoring/cases/file_list_params.rb +54 -0
- data/lib/lithic/models/transaction_monitoring/cases/file_retrieve_params.rb +30 -0
- data/lib/lithic/models/transaction_monitoring/cases/file_status.rb +26 -0
- data/lib/lithic/models/transaction_monitoring/cases/upload_constraints.rb +31 -0
- data/lib/lithic/models/transaction_monitoring/entity_type.rb +18 -0
- data/lib/lithic/models/transaction_monitoring/monitoring_case.rb +168 -0
- data/lib/lithic/models/transaction_monitoring/queue.rb +120 -0
- data/lib/lithic/models/transaction_monitoring/queue_create_params.rb +32 -0
- data/lib/lithic/models/transaction_monitoring/queue_delete_params.rb +22 -0
- data/lib/lithic/models/transaction_monitoring/queue_list_params.rb +45 -0
- data/lib/lithic/models/transaction_monitoring/queue_retrieve_params.rb +22 -0
- data/lib/lithic/models/transaction_monitoring/queue_update_params.rb +39 -0
- data/lib/lithic/models/transaction_monitoring/resolution_outcome.rb +28 -0
- data/lib/lithic/models/transaction_route_params.rb +29 -0
- data/lib/lithic/models.rb +4 -0
- data/lib/lithic/resources/account_holders/entities.rb +1 -1
- data/lib/lithic/resources/auth_rules/v2.rb +2 -2
- data/lib/lithic/resources/cards.rb +2 -2
- data/lib/lithic/resources/transaction_monitoring/cases/comments.rb +111 -0
- data/lib/lithic/resources/transaction_monitoring/cases/files.rb +131 -0
- data/lib/lithic/resources/transaction_monitoring/cases.rb +228 -0
- data/lib/lithic/resources/transaction_monitoring/queues.rb +137 -0
- data/lib/lithic/resources/transaction_monitoring.rb +22 -0
- data/lib/lithic/resources/transactions.rb +25 -0
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +42 -0
- data/rbi/lithic/client.rbi +3 -0
- data/rbi/lithic/models/account.rbi +3 -3
- data/rbi/lithic/models/account_holders/account_holder_entity.rbi +3 -40
- data/rbi/lithic/models/account_holders/entity_create_params.rbi +3 -37
- data/rbi/lithic/models/auth_rules/ach_payment_update_action.rbi +237 -0
- data/rbi/lithic/models/auth_rules/auth_rule.rbi +16 -9
- data/rbi/lithic/models/auth_rules/auth_rule_version.rbi +2 -0
- data/rbi/lithic/models/auth_rules/conditional_ach_payment_update_action_parameters.rbi +298 -0
- data/rbi/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbi +29 -29
- data/rbi/lithic/models/auth_rules/conditional_card_transaction_update_action_parameters.rbi +395 -12
- data/rbi/lithic/models/auth_rules/event_stream.rbi +5 -0
- data/rbi/lithic/models/auth_rules/rule_feature.rbi +77 -6
- data/rbi/lithic/models/auth_rules/typescript_code_parameters.rbi +6 -0
- data/rbi/lithic/models/auth_rules/v2_create_params.rbi +48 -27
- data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +4 -0
- data/rbi/lithic/models/auth_rules/v2_list_results_response.rbi +826 -1
- data/rbi/lithic/models/card.rbi +2 -2
- data/rbi/lithic/models/card_authorization.rbi +246 -17
- data/rbi/lithic/models/financial_accounts/loan_tape.rbi +8 -0
- data/rbi/lithic/models/payment.rbi +13 -0
- data/rbi/lithic/models/transaction_monitoring/case_activity_entry.rbi +107 -0
- data/rbi/lithic/models/transaction_monitoring/case_activity_type.rbi +84 -0
- data/rbi/lithic/models/transaction_monitoring/case_card.rbi +60 -0
- data/rbi/lithic/models/transaction_monitoring/case_entity.rbi +101 -0
- data/rbi/lithic/models/transaction_monitoring/case_list_activity_params.rbi +83 -0
- data/rbi/lithic/models/transaction_monitoring/case_list_params.rbi +220 -0
- data/rbi/lithic/models/transaction_monitoring/case_list_transactions_params.rbi +83 -0
- data/rbi/lithic/models/transaction_monitoring/case_priority.rbi +44 -0
- data/rbi/lithic/models/transaction_monitoring/case_retrieve_cards_params.rbi +40 -0
- data/rbi/lithic/models/transaction_monitoring/case_retrieve_cards_response.rbi +15 -0
- data/rbi/lithic/models/transaction_monitoring/case_retrieve_params.rbi +40 -0
- data/rbi/lithic/models/transaction_monitoring/case_sort_order.rbi +64 -0
- data/rbi/lithic/models/transaction_monitoring/case_status.rbi +63 -0
- data/rbi/lithic/models/transaction_monitoring/case_transaction.rbi +75 -0
- data/rbi/lithic/models/transaction_monitoring/case_update_params.rbi +201 -0
- data/rbi/lithic/models/transaction_monitoring/cases/case_file.rbi +188 -0
- data/rbi/lithic/models/transaction_monitoring/cases/comment_create_params.rbi +71 -0
- data/rbi/lithic/models/transaction_monitoring/cases/comment_delete_params.rbi +50 -0
- data/rbi/lithic/models/transaction_monitoring/cases/comment_update_params.rbi +77 -0
- data/rbi/lithic/models/transaction_monitoring/cases/file_create_params.rbi +56 -0
- data/rbi/lithic/models/transaction_monitoring/cases/file_delete_params.rbi +50 -0
- data/rbi/lithic/models/transaction_monitoring/cases/file_list_params.rbi +85 -0
- data/rbi/lithic/models/transaction_monitoring/cases/file_retrieve_params.rbi +50 -0
- data/rbi/lithic/models/transaction_monitoring/cases/file_status.rbi +51 -0
- data/rbi/lithic/models/transaction_monitoring/cases/upload_constraints.rbi +51 -0
- data/rbi/lithic/models/transaction_monitoring/entity_type.rbi +37 -0
- data/rbi/lithic/models/transaction_monitoring/monitoring_case.rbi +226 -0
- data/rbi/lithic/models/transaction_monitoring/queue.rbi +189 -0
- data/rbi/lithic/models/transaction_monitoring/queue_create_params.rbi +56 -0
- data/rbi/lithic/models/transaction_monitoring/queue_delete_params.rbi +40 -0
- data/rbi/lithic/models/transaction_monitoring/queue_list_params.rbi +77 -0
- data/rbi/lithic/models/transaction_monitoring/queue_retrieve_params.rbi +40 -0
- data/rbi/lithic/models/transaction_monitoring/queue_update_params.rbi +65 -0
- data/rbi/lithic/models/transaction_monitoring/resolution_outcome.rbi +61 -0
- data/rbi/lithic/models/transaction_route_params.rbi +49 -0
- data/rbi/lithic/models.rbi +4 -0
- data/rbi/lithic/resources/account_holders/entities.rbi +1 -1
- data/rbi/lithic/resources/auth_rules/v2.rbi +1 -0
- data/rbi/lithic/resources/cards.rbi +2 -2
- data/rbi/lithic/resources/transaction_monitoring/cases/comments.rbi +81 -0
- data/rbi/lithic/resources/transaction_monitoring/cases/files.rbi +98 -0
- data/rbi/lithic/resources/transaction_monitoring/cases.rbi +230 -0
- data/rbi/lithic/resources/transaction_monitoring/queues.rbi +103 -0
- data/rbi/lithic/resources/transaction_monitoring.rbi +18 -0
- data/rbi/lithic/resources/transactions.rbi +18 -0
- data/sig/lithic/client.rbs +2 -0
- data/sig/lithic/models/account_holders/account_holder_entity.rbs +4 -15
- data/sig/lithic/models/account_holders/entity_create_params.rbs +4 -15
- data/sig/lithic/models/auth_rules/ach_payment_update_action.rbs +99 -0
- data/sig/lithic/models/auth_rules/auth_rule.rbs +2 -0
- data/sig/lithic/models/auth_rules/auth_rule_version.rbs +1 -0
- data/sig/lithic/models/auth_rules/conditional_ach_payment_update_action_parameters.rbs +81 -0
- data/sig/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbs +16 -16
- data/sig/lithic/models/auth_rules/conditional_card_transaction_update_action_parameters.rbs +73 -3
- data/sig/lithic/models/auth_rules/event_stream.rbs +2 -0
- data/sig/lithic/models/auth_rules/rule_feature.rbs +31 -0
- data/sig/lithic/models/auth_rules/v2_create_params.rbs +3 -0
- data/sig/lithic/models/auth_rules/v2_draft_params.rbs +1 -0
- data/sig/lithic/models/auth_rules/v2_list_results_response.rbs +355 -0
- data/sig/lithic/models/card_authorization.rbs +84 -10
- data/sig/lithic/models/financial_accounts/loan_tape.rbs +5 -0
- data/sig/lithic/models/payment.rbs +7 -0
- data/sig/lithic/models/transaction_monitoring/case_activity_entry.rbs +47 -0
- data/sig/lithic/models/transaction_monitoring/case_activity_type.rbs +32 -0
- data/sig/lithic/models/transaction_monitoring/case_card.rbs +32 -0
- data/sig/lithic/models/transaction_monitoring/case_entity.rbs +38 -0
- data/sig/lithic/models/transaction_monitoring/case_list_activity_params.rbs +49 -0
- data/sig/lithic/models/transaction_monitoring/case_list_params.rbs +125 -0
- data/sig/lithic/models/transaction_monitoring/case_list_transactions_params.rbs +49 -0
- data/sig/lithic/models/transaction_monitoring/case_priority.rbs +18 -0
- data/sig/lithic/models/transaction_monitoring/case_retrieve_cards_params.rbs +25 -0
- data/sig/lithic/models/transaction_monitoring/case_retrieve_cards_response.rbs +10 -0
- data/sig/lithic/models/transaction_monitoring/case_retrieve_params.rbs +25 -0
- data/sig/lithic/models/transaction_monitoring/case_sort_order.rbs +26 -0
- data/sig/lithic/models/transaction_monitoring/case_status.rbs +21 -0
- data/sig/lithic/models/transaction_monitoring/case_transaction.rbs +42 -0
- data/sig/lithic/models/transaction_monitoring/case_update_params.rbs +91 -0
- data/sig/lithic/models/transaction_monitoring/cases/case_file.rbs +86 -0
- data/sig/lithic/models/transaction_monitoring/cases/comment_create_params.rbs +38 -0
- data/sig/lithic/models/transaction_monitoring/cases/comment_delete_params.rbs +32 -0
- data/sig/lithic/models/transaction_monitoring/cases/comment_update_params.rbs +47 -0
- data/sig/lithic/models/transaction_monitoring/cases/file_create_params.rbs +32 -0
- data/sig/lithic/models/transaction_monitoring/cases/file_delete_params.rbs +32 -0
- data/sig/lithic/models/transaction_monitoring/cases/file_list_params.rbs +51 -0
- data/sig/lithic/models/transaction_monitoring/cases/file_retrieve_params.rbs +32 -0
- data/sig/lithic/models/transaction_monitoring/cases/file_status.rbs +19 -0
- data/sig/lithic/models/transaction_monitoring/cases/upload_constraints.rbs +26 -0
- data/sig/lithic/models/transaction_monitoring/entity_type.rbs +16 -0
- data/sig/lithic/models/transaction_monitoring/monitoring_case.rbs +102 -0
- data/sig/lithic/models/transaction_monitoring/queue.rbs +101 -0
- data/sig/lithic/models/transaction_monitoring/queue_create_params.rbs +30 -0
- data/sig/lithic/models/transaction_monitoring/queue_delete_params.rbs +25 -0
- data/sig/lithic/models/transaction_monitoring/queue_list_params.rbs +40 -0
- data/sig/lithic/models/transaction_monitoring/queue_retrieve_params.rbs +25 -0
- data/sig/lithic/models/transaction_monitoring/queue_update_params.rbs +36 -0
- data/sig/lithic/models/transaction_monitoring/resolution_outcome.rbs +24 -0
- data/sig/lithic/models/transaction_route_params.rbs +28 -0
- data/sig/lithic/models.rbs +4 -0
- data/sig/lithic/resources/account_holders/entities.rbs +1 -1
- data/sig/lithic/resources/transaction_monitoring/cases/comments.rbs +32 -0
- data/sig/lithic/resources/transaction_monitoring/cases/files.rbs +37 -0
- data/sig/lithic/resources/transaction_monitoring/cases.rbs +71 -0
- data/sig/lithic/resources/transaction_monitoring/queues.rbs +39 -0
- data/sig/lithic/resources/transaction_monitoring.rbs +11 -0
- data/sig/lithic/resources/transactions.rbs +6 -0
- metadata +128 -2
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
module AuthRules
|
|
6
|
+
class ConditionalACHPaymentUpdateActionParameters < Lithic::Internal::Type::BaseModel
|
|
7
|
+
OrHash =
|
|
8
|
+
T.type_alias do
|
|
9
|
+
T.any(
|
|
10
|
+
Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters,
|
|
11
|
+
Lithic::Internal::AnyHash
|
|
12
|
+
)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
# The action to take if the conditions are met.
|
|
16
|
+
sig do
|
|
17
|
+
returns(
|
|
18
|
+
T.any(
|
|
19
|
+
Lithic::AuthRules::ACHPaymentUpdateAction::TagAction,
|
|
20
|
+
Lithic::AuthRules::ACHPaymentUpdateAction::CreateCaseAction
|
|
21
|
+
)
|
|
22
|
+
)
|
|
23
|
+
end
|
|
24
|
+
attr_accessor :action
|
|
25
|
+
|
|
26
|
+
sig do
|
|
27
|
+
returns(
|
|
28
|
+
T::Array[
|
|
29
|
+
Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters::Condition
|
|
30
|
+
]
|
|
31
|
+
)
|
|
32
|
+
end
|
|
33
|
+
attr_accessor :conditions
|
|
34
|
+
|
|
35
|
+
sig do
|
|
36
|
+
params(
|
|
37
|
+
action:
|
|
38
|
+
T.any(
|
|
39
|
+
Lithic::AuthRules::ACHPaymentUpdateAction::TagAction::OrHash,
|
|
40
|
+
Lithic::AuthRules::ACHPaymentUpdateAction::CreateCaseAction::OrHash
|
|
41
|
+
),
|
|
42
|
+
conditions:
|
|
43
|
+
T::Array[
|
|
44
|
+
Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters::Condition::OrHash
|
|
45
|
+
]
|
|
46
|
+
).returns(T.attached_class)
|
|
47
|
+
end
|
|
48
|
+
def self.new(
|
|
49
|
+
# The action to take if the conditions are met.
|
|
50
|
+
action:,
|
|
51
|
+
conditions:
|
|
52
|
+
)
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
sig do
|
|
56
|
+
override.returns(
|
|
57
|
+
{
|
|
58
|
+
action:
|
|
59
|
+
T.any(
|
|
60
|
+
Lithic::AuthRules::ACHPaymentUpdateAction::TagAction,
|
|
61
|
+
Lithic::AuthRules::ACHPaymentUpdateAction::CreateCaseAction
|
|
62
|
+
),
|
|
63
|
+
conditions:
|
|
64
|
+
T::Array[
|
|
65
|
+
Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters::Condition
|
|
66
|
+
]
|
|
67
|
+
}
|
|
68
|
+
)
|
|
69
|
+
end
|
|
70
|
+
def to_hash
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
class Condition < Lithic::Internal::Type::BaseModel
|
|
74
|
+
OrHash =
|
|
75
|
+
T.type_alias do
|
|
76
|
+
T.any(
|
|
77
|
+
Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters::Condition,
|
|
78
|
+
Lithic::Internal::AnyHash
|
|
79
|
+
)
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# The attribute to target.
|
|
83
|
+
#
|
|
84
|
+
# The following attributes may be targeted:
|
|
85
|
+
#
|
|
86
|
+
# - `TRANSACTION_AMOUNT`: The total amount of the ACH payment in minor units
|
|
87
|
+
# (cents), calculated as the sum of the settled and pending amounts. Use an
|
|
88
|
+
# integer value.
|
|
89
|
+
# - `SEC_CODE`: Standard Entry Class code indicating the type of ACH transaction.
|
|
90
|
+
# Valid values include PPD (Prearranged Payment and Deposit Entry), CCD
|
|
91
|
+
# (Corporate Credit or Debit Entry), WEB (Internet-Initiated/Mobile Entry), TEL
|
|
92
|
+
# (Telephone-Initiated Entry), and others.
|
|
93
|
+
# - `RETURN_REASON_CODE`: NACHA return reason code associated with the payment
|
|
94
|
+
# (for example, `R01`).
|
|
95
|
+
# - `ACCOUNT_AGE`: The age of the account in seconds at the time of the payment.
|
|
96
|
+
# Use an integer value. For programs where Lithic does not manage or retain
|
|
97
|
+
# account holder data, this attribute does not evaluate.
|
|
98
|
+
# - `EXTERNAL_BANK_ACCOUNT_AGE`: The age of the external bank account in seconds
|
|
99
|
+
# at the time of the payment. Use an integer value.
|
|
100
|
+
# - `EXTERNAL_BANK_ACCOUNT_VERIFICATION_METHOD`: The method used to verify the
|
|
101
|
+
# external bank account. Valid values are `MANUAL`, `MICRO_DEPOSIT`, `PRENOTE`,
|
|
102
|
+
# `EXTERNALLY_VERIFIED`, or `UNVERIFIED`.
|
|
103
|
+
# - `EXTERNAL_BANK_ACCOUNT_VERIFICATION_STATE`: The verification state of the
|
|
104
|
+
# external bank account. Valid values are `PENDING`, `ENABLED`,
|
|
105
|
+
# `FAILED_VERIFICATION`, or `INSUFFICIENT_FUNDS`.
|
|
106
|
+
# - `EXTERNAL_BANK_ACCOUNT_OWNER_TYPE`: The owner type of the external bank
|
|
107
|
+
# account. Valid values are `INDIVIDUAL` or `BUSINESS`.
|
|
108
|
+
# - `ACH_EVENT_TYPE`: The type of ACH payment event being evaluated. Valid values
|
|
109
|
+
# include `ACH_ORIGINATION_INITIATED`, `ACH_ORIGINATION_REVIEWED`,
|
|
110
|
+
# `ACH_ORIGINATION_CANCELLED`, `ACH_ORIGINATION_PROCESSED`,
|
|
111
|
+
# `ACH_ORIGINATION_SETTLED`, `ACH_ORIGINATION_RELEASED`,
|
|
112
|
+
# `ACH_ORIGINATION_REJECTED`, `ACH_RECEIPT_PROCESSED`, `ACH_RECEIPT_SETTLED`,
|
|
113
|
+
# `ACH_RECEIPT_RELEASED`, `ACH_RECEIPT_RELEASED_EARLY`, `ACH_RETURN_INITIATED`,
|
|
114
|
+
# `ACH_RETURN_PROCESSED`, `ACH_RETURN_SETTLED`, and `ACH_RETURN_REJECTED`.
|
|
115
|
+
sig do
|
|
116
|
+
returns(
|
|
117
|
+
Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters::Condition::Attribute::OrSymbol
|
|
118
|
+
)
|
|
119
|
+
end
|
|
120
|
+
attr_accessor :attribute
|
|
121
|
+
|
|
122
|
+
# The operation to apply to the attribute
|
|
123
|
+
sig { returns(Lithic::AuthRules::ConditionalOperation::OrSymbol) }
|
|
124
|
+
attr_accessor :operation
|
|
125
|
+
|
|
126
|
+
# A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
|
127
|
+
sig { returns(Lithic::AuthRules::ConditionalValue::Variants) }
|
|
128
|
+
attr_accessor :value
|
|
129
|
+
|
|
130
|
+
sig do
|
|
131
|
+
params(
|
|
132
|
+
attribute:
|
|
133
|
+
Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters::Condition::Attribute::OrSymbol,
|
|
134
|
+
operation: Lithic::AuthRules::ConditionalOperation::OrSymbol,
|
|
135
|
+
value: Lithic::AuthRules::ConditionalValue::Variants
|
|
136
|
+
).returns(T.attached_class)
|
|
137
|
+
end
|
|
138
|
+
def self.new(
|
|
139
|
+
# The attribute to target.
|
|
140
|
+
#
|
|
141
|
+
# The following attributes may be targeted:
|
|
142
|
+
#
|
|
143
|
+
# - `TRANSACTION_AMOUNT`: The total amount of the ACH payment in minor units
|
|
144
|
+
# (cents), calculated as the sum of the settled and pending amounts. Use an
|
|
145
|
+
# integer value.
|
|
146
|
+
# - `SEC_CODE`: Standard Entry Class code indicating the type of ACH transaction.
|
|
147
|
+
# Valid values include PPD (Prearranged Payment and Deposit Entry), CCD
|
|
148
|
+
# (Corporate Credit or Debit Entry), WEB (Internet-Initiated/Mobile Entry), TEL
|
|
149
|
+
# (Telephone-Initiated Entry), and others.
|
|
150
|
+
# - `RETURN_REASON_CODE`: NACHA return reason code associated with the payment
|
|
151
|
+
# (for example, `R01`).
|
|
152
|
+
# - `ACCOUNT_AGE`: The age of the account in seconds at the time of the payment.
|
|
153
|
+
# Use an integer value. For programs where Lithic does not manage or retain
|
|
154
|
+
# account holder data, this attribute does not evaluate.
|
|
155
|
+
# - `EXTERNAL_BANK_ACCOUNT_AGE`: The age of the external bank account in seconds
|
|
156
|
+
# at the time of the payment. Use an integer value.
|
|
157
|
+
# - `EXTERNAL_BANK_ACCOUNT_VERIFICATION_METHOD`: The method used to verify the
|
|
158
|
+
# external bank account. Valid values are `MANUAL`, `MICRO_DEPOSIT`, `PRENOTE`,
|
|
159
|
+
# `EXTERNALLY_VERIFIED`, or `UNVERIFIED`.
|
|
160
|
+
# - `EXTERNAL_BANK_ACCOUNT_VERIFICATION_STATE`: The verification state of the
|
|
161
|
+
# external bank account. Valid values are `PENDING`, `ENABLED`,
|
|
162
|
+
# `FAILED_VERIFICATION`, or `INSUFFICIENT_FUNDS`.
|
|
163
|
+
# - `EXTERNAL_BANK_ACCOUNT_OWNER_TYPE`: The owner type of the external bank
|
|
164
|
+
# account. Valid values are `INDIVIDUAL` or `BUSINESS`.
|
|
165
|
+
# - `ACH_EVENT_TYPE`: The type of ACH payment event being evaluated. Valid values
|
|
166
|
+
# include `ACH_ORIGINATION_INITIATED`, `ACH_ORIGINATION_REVIEWED`,
|
|
167
|
+
# `ACH_ORIGINATION_CANCELLED`, `ACH_ORIGINATION_PROCESSED`,
|
|
168
|
+
# `ACH_ORIGINATION_SETTLED`, `ACH_ORIGINATION_RELEASED`,
|
|
169
|
+
# `ACH_ORIGINATION_REJECTED`, `ACH_RECEIPT_PROCESSED`, `ACH_RECEIPT_SETTLED`,
|
|
170
|
+
# `ACH_RECEIPT_RELEASED`, `ACH_RECEIPT_RELEASED_EARLY`, `ACH_RETURN_INITIATED`,
|
|
171
|
+
# `ACH_RETURN_PROCESSED`, `ACH_RETURN_SETTLED`, and `ACH_RETURN_REJECTED`.
|
|
172
|
+
attribute:,
|
|
173
|
+
# The operation to apply to the attribute
|
|
174
|
+
operation:,
|
|
175
|
+
# A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
|
176
|
+
value:
|
|
177
|
+
)
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
sig do
|
|
181
|
+
override.returns(
|
|
182
|
+
{
|
|
183
|
+
attribute:
|
|
184
|
+
Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters::Condition::Attribute::OrSymbol,
|
|
185
|
+
operation: Lithic::AuthRules::ConditionalOperation::OrSymbol,
|
|
186
|
+
value: Lithic::AuthRules::ConditionalValue::Variants
|
|
187
|
+
}
|
|
188
|
+
)
|
|
189
|
+
end
|
|
190
|
+
def to_hash
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
# The attribute to target.
|
|
194
|
+
#
|
|
195
|
+
# The following attributes may be targeted:
|
|
196
|
+
#
|
|
197
|
+
# - `TRANSACTION_AMOUNT`: The total amount of the ACH payment in minor units
|
|
198
|
+
# (cents), calculated as the sum of the settled and pending amounts. Use an
|
|
199
|
+
# integer value.
|
|
200
|
+
# - `SEC_CODE`: Standard Entry Class code indicating the type of ACH transaction.
|
|
201
|
+
# Valid values include PPD (Prearranged Payment and Deposit Entry), CCD
|
|
202
|
+
# (Corporate Credit or Debit Entry), WEB (Internet-Initiated/Mobile Entry), TEL
|
|
203
|
+
# (Telephone-Initiated Entry), and others.
|
|
204
|
+
# - `RETURN_REASON_CODE`: NACHA return reason code associated with the payment
|
|
205
|
+
# (for example, `R01`).
|
|
206
|
+
# - `ACCOUNT_AGE`: The age of the account in seconds at the time of the payment.
|
|
207
|
+
# Use an integer value. For programs where Lithic does not manage or retain
|
|
208
|
+
# account holder data, this attribute does not evaluate.
|
|
209
|
+
# - `EXTERNAL_BANK_ACCOUNT_AGE`: The age of the external bank account in seconds
|
|
210
|
+
# at the time of the payment. Use an integer value.
|
|
211
|
+
# - `EXTERNAL_BANK_ACCOUNT_VERIFICATION_METHOD`: The method used to verify the
|
|
212
|
+
# external bank account. Valid values are `MANUAL`, `MICRO_DEPOSIT`, `PRENOTE`,
|
|
213
|
+
# `EXTERNALLY_VERIFIED`, or `UNVERIFIED`.
|
|
214
|
+
# - `EXTERNAL_BANK_ACCOUNT_VERIFICATION_STATE`: The verification state of the
|
|
215
|
+
# external bank account. Valid values are `PENDING`, `ENABLED`,
|
|
216
|
+
# `FAILED_VERIFICATION`, or `INSUFFICIENT_FUNDS`.
|
|
217
|
+
# - `EXTERNAL_BANK_ACCOUNT_OWNER_TYPE`: The owner type of the external bank
|
|
218
|
+
# account. Valid values are `INDIVIDUAL` or `BUSINESS`.
|
|
219
|
+
# - `ACH_EVENT_TYPE`: The type of ACH payment event being evaluated. Valid values
|
|
220
|
+
# include `ACH_ORIGINATION_INITIATED`, `ACH_ORIGINATION_REVIEWED`,
|
|
221
|
+
# `ACH_ORIGINATION_CANCELLED`, `ACH_ORIGINATION_PROCESSED`,
|
|
222
|
+
# `ACH_ORIGINATION_SETTLED`, `ACH_ORIGINATION_RELEASED`,
|
|
223
|
+
# `ACH_ORIGINATION_REJECTED`, `ACH_RECEIPT_PROCESSED`, `ACH_RECEIPT_SETTLED`,
|
|
224
|
+
# `ACH_RECEIPT_RELEASED`, `ACH_RECEIPT_RELEASED_EARLY`, `ACH_RETURN_INITIATED`,
|
|
225
|
+
# `ACH_RETURN_PROCESSED`, `ACH_RETURN_SETTLED`, and `ACH_RETURN_REJECTED`.
|
|
226
|
+
module Attribute
|
|
227
|
+
extend Lithic::Internal::Type::Enum
|
|
228
|
+
|
|
229
|
+
TaggedSymbol =
|
|
230
|
+
T.type_alias do
|
|
231
|
+
T.all(
|
|
232
|
+
Symbol,
|
|
233
|
+
Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters::Condition::Attribute
|
|
234
|
+
)
|
|
235
|
+
end
|
|
236
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
237
|
+
|
|
238
|
+
TRANSACTION_AMOUNT =
|
|
239
|
+
T.let(
|
|
240
|
+
:TRANSACTION_AMOUNT,
|
|
241
|
+
Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters::Condition::Attribute::TaggedSymbol
|
|
242
|
+
)
|
|
243
|
+
SEC_CODE =
|
|
244
|
+
T.let(
|
|
245
|
+
:SEC_CODE,
|
|
246
|
+
Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters::Condition::Attribute::TaggedSymbol
|
|
247
|
+
)
|
|
248
|
+
RETURN_REASON_CODE =
|
|
249
|
+
T.let(
|
|
250
|
+
:RETURN_REASON_CODE,
|
|
251
|
+
Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters::Condition::Attribute::TaggedSymbol
|
|
252
|
+
)
|
|
253
|
+
ACCOUNT_AGE =
|
|
254
|
+
T.let(
|
|
255
|
+
:ACCOUNT_AGE,
|
|
256
|
+
Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters::Condition::Attribute::TaggedSymbol
|
|
257
|
+
)
|
|
258
|
+
EXTERNAL_BANK_ACCOUNT_AGE =
|
|
259
|
+
T.let(
|
|
260
|
+
:EXTERNAL_BANK_ACCOUNT_AGE,
|
|
261
|
+
Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters::Condition::Attribute::TaggedSymbol
|
|
262
|
+
)
|
|
263
|
+
EXTERNAL_BANK_ACCOUNT_VERIFICATION_METHOD =
|
|
264
|
+
T.let(
|
|
265
|
+
:EXTERNAL_BANK_ACCOUNT_VERIFICATION_METHOD,
|
|
266
|
+
Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters::Condition::Attribute::TaggedSymbol
|
|
267
|
+
)
|
|
268
|
+
EXTERNAL_BANK_ACCOUNT_VERIFICATION_STATE =
|
|
269
|
+
T.let(
|
|
270
|
+
:EXTERNAL_BANK_ACCOUNT_VERIFICATION_STATE,
|
|
271
|
+
Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters::Condition::Attribute::TaggedSymbol
|
|
272
|
+
)
|
|
273
|
+
EXTERNAL_BANK_ACCOUNT_OWNER_TYPE =
|
|
274
|
+
T.let(
|
|
275
|
+
:EXTERNAL_BANK_ACCOUNT_OWNER_TYPE,
|
|
276
|
+
Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters::Condition::Attribute::TaggedSymbol
|
|
277
|
+
)
|
|
278
|
+
ACH_EVENT_TYPE =
|
|
279
|
+
T.let(
|
|
280
|
+
:ACH_EVENT_TYPE,
|
|
281
|
+
Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters::Condition::Attribute::TaggedSymbol
|
|
282
|
+
)
|
|
283
|
+
|
|
284
|
+
sig do
|
|
285
|
+
override.returns(
|
|
286
|
+
T::Array[
|
|
287
|
+
Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters::Condition::Attribute::TaggedSymbol
|
|
288
|
+
]
|
|
289
|
+
)
|
|
290
|
+
end
|
|
291
|
+
def self.values
|
|
292
|
+
end
|
|
293
|
+
end
|
|
294
|
+
end
|
|
295
|
+
end
|
|
296
|
+
end
|
|
297
|
+
end
|
|
298
|
+
end
|
|
@@ -12,21 +12,21 @@ module Lithic
|
|
|
12
12
|
)
|
|
13
13
|
end
|
|
14
14
|
|
|
15
|
-
# The hold adjustment to apply if the conditions are met
|
|
15
|
+
# The hold adjustment to apply if the conditions are met.
|
|
16
16
|
sig do
|
|
17
17
|
returns(
|
|
18
|
-
Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::
|
|
18
|
+
Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action
|
|
19
19
|
)
|
|
20
20
|
end
|
|
21
|
-
attr_reader :
|
|
21
|
+
attr_reader :action
|
|
22
22
|
|
|
23
23
|
sig do
|
|
24
24
|
params(
|
|
25
|
-
|
|
26
|
-
Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::
|
|
25
|
+
action:
|
|
26
|
+
Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action::OrHash
|
|
27
27
|
).void
|
|
28
28
|
end
|
|
29
|
-
attr_writer :
|
|
29
|
+
attr_writer :action
|
|
30
30
|
|
|
31
31
|
sig do
|
|
32
32
|
returns(
|
|
@@ -39,8 +39,8 @@ module Lithic
|
|
|
39
39
|
|
|
40
40
|
sig do
|
|
41
41
|
params(
|
|
42
|
-
|
|
43
|
-
Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::
|
|
42
|
+
action:
|
|
43
|
+
Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action::OrHash,
|
|
44
44
|
conditions:
|
|
45
45
|
T::Array[
|
|
46
46
|
Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Condition::OrHash
|
|
@@ -48,8 +48,8 @@ module Lithic
|
|
|
48
48
|
).returns(T.attached_class)
|
|
49
49
|
end
|
|
50
50
|
def self.new(
|
|
51
|
-
# The hold adjustment to apply if the conditions are met
|
|
52
|
-
|
|
51
|
+
# The hold adjustment to apply if the conditions are met.
|
|
52
|
+
action:,
|
|
53
53
|
conditions:
|
|
54
54
|
)
|
|
55
55
|
end
|
|
@@ -57,8 +57,8 @@ module Lithic
|
|
|
57
57
|
sig do
|
|
58
58
|
override.returns(
|
|
59
59
|
{
|
|
60
|
-
|
|
61
|
-
Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::
|
|
60
|
+
action:
|
|
61
|
+
Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action,
|
|
62
62
|
conditions:
|
|
63
63
|
T::Array[
|
|
64
64
|
Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Condition
|
|
@@ -69,11 +69,11 @@ module Lithic
|
|
|
69
69
|
def to_hash
|
|
70
70
|
end
|
|
71
71
|
|
|
72
|
-
class
|
|
72
|
+
class Action < Lithic::Internal::Type::BaseModel
|
|
73
73
|
OrHash =
|
|
74
74
|
T.type_alias do
|
|
75
75
|
T.any(
|
|
76
|
-
Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::
|
|
76
|
+
Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action,
|
|
77
77
|
Lithic::Internal::AnyHash
|
|
78
78
|
)
|
|
79
79
|
end
|
|
@@ -86,7 +86,7 @@ module Lithic
|
|
|
86
86
|
# - `ADD_AMOUNT`: The value is added to the hold amount in cents.
|
|
87
87
|
sig do
|
|
88
88
|
returns(
|
|
89
|
-
Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::
|
|
89
|
+
Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action::Mode::OrSymbol
|
|
90
90
|
)
|
|
91
91
|
end
|
|
92
92
|
attr_accessor :mode
|
|
@@ -94,7 +94,7 @@ module Lithic
|
|
|
94
94
|
# The type of adjustment to apply
|
|
95
95
|
sig do
|
|
96
96
|
returns(
|
|
97
|
-
Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::
|
|
97
|
+
Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action::Type::OrSymbol
|
|
98
98
|
)
|
|
99
99
|
end
|
|
100
100
|
attr_accessor :type
|
|
@@ -103,13 +103,13 @@ module Lithic
|
|
|
103
103
|
sig { returns(Integer) }
|
|
104
104
|
attr_accessor :value
|
|
105
105
|
|
|
106
|
-
# The hold adjustment to apply if the conditions are met
|
|
106
|
+
# The hold adjustment to apply if the conditions are met.
|
|
107
107
|
sig do
|
|
108
108
|
params(
|
|
109
109
|
mode:
|
|
110
|
-
Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::
|
|
110
|
+
Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action::Mode::OrSymbol,
|
|
111
111
|
type:
|
|
112
|
-
Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::
|
|
112
|
+
Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action::Type::OrSymbol,
|
|
113
113
|
value: Integer
|
|
114
114
|
).returns(T.attached_class)
|
|
115
115
|
end
|
|
@@ -132,9 +132,9 @@ module Lithic
|
|
|
132
132
|
override.returns(
|
|
133
133
|
{
|
|
134
134
|
mode:
|
|
135
|
-
Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::
|
|
135
|
+
Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action::Mode::OrSymbol,
|
|
136
136
|
type:
|
|
137
|
-
Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::
|
|
137
|
+
Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action::Type::OrSymbol,
|
|
138
138
|
value: Integer
|
|
139
139
|
}
|
|
140
140
|
)
|
|
@@ -155,7 +155,7 @@ module Lithic
|
|
|
155
155
|
T.type_alias do
|
|
156
156
|
T.all(
|
|
157
157
|
Symbol,
|
|
158
|
-
Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::
|
|
158
|
+
Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action::Mode
|
|
159
159
|
)
|
|
160
160
|
end
|
|
161
161
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
@@ -163,23 +163,23 @@ module Lithic
|
|
|
163
163
|
REPLACE_WITH_AMOUNT =
|
|
164
164
|
T.let(
|
|
165
165
|
:REPLACE_WITH_AMOUNT,
|
|
166
|
-
Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::
|
|
166
|
+
Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action::Mode::TaggedSymbol
|
|
167
167
|
)
|
|
168
168
|
ADD_PERCENTAGE =
|
|
169
169
|
T.let(
|
|
170
170
|
:ADD_PERCENTAGE,
|
|
171
|
-
Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::
|
|
171
|
+
Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action::Mode::TaggedSymbol
|
|
172
172
|
)
|
|
173
173
|
ADD_AMOUNT =
|
|
174
174
|
T.let(
|
|
175
175
|
:ADD_AMOUNT,
|
|
176
|
-
Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::
|
|
176
|
+
Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action::Mode::TaggedSymbol
|
|
177
177
|
)
|
|
178
178
|
|
|
179
179
|
sig do
|
|
180
180
|
override.returns(
|
|
181
181
|
T::Array[
|
|
182
|
-
Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::
|
|
182
|
+
Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action::Mode::TaggedSymbol
|
|
183
183
|
]
|
|
184
184
|
)
|
|
185
185
|
end
|
|
@@ -195,7 +195,7 @@ module Lithic
|
|
|
195
195
|
T.type_alias do
|
|
196
196
|
T.all(
|
|
197
197
|
Symbol,
|
|
198
|
-
Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::
|
|
198
|
+
Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action::Type
|
|
199
199
|
)
|
|
200
200
|
end
|
|
201
201
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
@@ -203,13 +203,13 @@ module Lithic
|
|
|
203
203
|
HOLD_ADJUSTMENT =
|
|
204
204
|
T.let(
|
|
205
205
|
:HOLD_ADJUSTMENT,
|
|
206
|
-
Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::
|
|
206
|
+
Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action::Type::TaggedSymbol
|
|
207
207
|
)
|
|
208
208
|
|
|
209
209
|
sig do
|
|
210
210
|
override.returns(
|
|
211
211
|
T::Array[
|
|
212
|
-
Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::
|
|
212
|
+
Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action::Type::TaggedSymbol
|
|
213
213
|
]
|
|
214
214
|
)
|
|
215
215
|
end
|