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
|
@@ -61,29 +61,29 @@ module Lithic
|
|
|
61
61
|
# data with the cardholder KYC data if it exists. Valid values are `MATCH`,
|
|
62
62
|
# `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`.
|
|
63
63
|
#
|
|
64
|
-
# @return [Symbol, Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition::Attribute
|
|
65
|
-
|
|
64
|
+
# @return [Symbol, Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition::Attribute]
|
|
65
|
+
required :attribute, enum: -> { Lithic::AuthRules::Conditional3DSActionParameters::Condition::Attribute }
|
|
66
66
|
|
|
67
67
|
# @!attribute operation
|
|
68
68
|
# The operation to apply to the attribute
|
|
69
69
|
#
|
|
70
|
-
# @return [Symbol, Lithic::Models::AuthRules::
|
|
71
|
-
|
|
70
|
+
# @return [Symbol, Lithic::Models::AuthRules::ConditionalOperation]
|
|
71
|
+
required :operation, enum: -> { Lithic::AuthRules::ConditionalOperation }
|
|
72
72
|
|
|
73
73
|
# @!attribute value
|
|
74
74
|
# A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
|
75
75
|
#
|
|
76
|
-
# @return [String, Integer, Array<String
|
|
77
|
-
|
|
76
|
+
# @return [String, Integer, Array<String>]
|
|
77
|
+
required :value, union: -> { Lithic::AuthRules::ConditionalValue }
|
|
78
78
|
|
|
79
|
-
# @!method initialize(attribute
|
|
79
|
+
# @!method initialize(attribute:, operation:, value:)
|
|
80
80
|
# Some parameter documentations has been truncated, see
|
|
81
81
|
# {Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition} for more
|
|
82
82
|
# details.
|
|
83
83
|
#
|
|
84
84
|
# @param attribute [Symbol, Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition::Attribute] The attribute to target.
|
|
85
85
|
#
|
|
86
|
-
# @param operation [Symbol, Lithic::Models::AuthRules::
|
|
86
|
+
# @param operation [Symbol, Lithic::Models::AuthRules::ConditionalOperation] The operation to apply to the attribute
|
|
87
87
|
#
|
|
88
88
|
# @param value [String, Integer, Array<String>] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
|
89
89
|
|
|
@@ -129,49 +129,6 @@ module Lithic
|
|
|
129
129
|
# @!method self.values
|
|
130
130
|
# @return [Array<Symbol>]
|
|
131
131
|
end
|
|
132
|
-
|
|
133
|
-
# The operation to apply to the attribute
|
|
134
|
-
#
|
|
135
|
-
# @see Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition#operation
|
|
136
|
-
module Operation
|
|
137
|
-
extend Lithic::Internal::Type::Enum
|
|
138
|
-
|
|
139
|
-
IS_ONE_OF = :IS_ONE_OF
|
|
140
|
-
IS_NOT_ONE_OF = :IS_NOT_ONE_OF
|
|
141
|
-
MATCHES = :MATCHES
|
|
142
|
-
DOES_NOT_MATCH = :DOES_NOT_MATCH
|
|
143
|
-
IS_EQUAL_TO = :IS_EQUAL_TO
|
|
144
|
-
IS_NOT_EQUAL_TO = :IS_NOT_EQUAL_TO
|
|
145
|
-
IS_GREATER_THAN = :IS_GREATER_THAN
|
|
146
|
-
IS_GREATER_THAN_OR_EQUAL_TO = :IS_GREATER_THAN_OR_EQUAL_TO
|
|
147
|
-
IS_LESS_THAN = :IS_LESS_THAN
|
|
148
|
-
IS_LESS_THAN_OR_EQUAL_TO = :IS_LESS_THAN_OR_EQUAL_TO
|
|
149
|
-
|
|
150
|
-
# @!method self.values
|
|
151
|
-
# @return [Array<Symbol>]
|
|
152
|
-
end
|
|
153
|
-
|
|
154
|
-
# A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
|
155
|
-
#
|
|
156
|
-
# @see Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition#value
|
|
157
|
-
module Value
|
|
158
|
-
extend Lithic::Internal::Type::Union
|
|
159
|
-
|
|
160
|
-
# A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
|
161
|
-
variant String
|
|
162
|
-
|
|
163
|
-
# A number, to be used with `IS_GREATER_THAN`, `IS_GREATER_THAN_OR_EQUAL_TO`, `IS_LESS_THAN`, `IS_LESS_THAN_OR_EQUAL_TO`, `IS_EQUAL_TO`, or `IS_NOT_EQUAL_TO`
|
|
164
|
-
variant Integer
|
|
165
|
-
|
|
166
|
-
# An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF`
|
|
167
|
-
variant -> { Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition::Value::StringArray }
|
|
168
|
-
|
|
169
|
-
# @!method self.variants
|
|
170
|
-
# @return [Array(String, Integer, Array<String>)]
|
|
171
|
-
|
|
172
|
-
# @type [Lithic::Internal::Type::Converter]
|
|
173
|
-
StringArray = Lithic::Internal::Type::ArrayOf[String]
|
|
174
|
-
end
|
|
175
132
|
end
|
|
176
133
|
end
|
|
177
134
|
end
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
module AuthRules
|
|
6
|
+
class ConditionalACHActionParameters < Lithic::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute action
|
|
8
|
+
# The action to take if the conditions are met
|
|
9
|
+
#
|
|
10
|
+
# @return [Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ApproveAction, Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ReturnAction]
|
|
11
|
+
required :action, union: -> { Lithic::AuthRules::ConditionalACHActionParameters::Action }
|
|
12
|
+
|
|
13
|
+
# @!attribute conditions
|
|
14
|
+
#
|
|
15
|
+
# @return [Array<Lithic::Models::AuthRules::ConditionalACHActionParameters::Condition>]
|
|
16
|
+
required :conditions,
|
|
17
|
+
-> { Lithic::Internal::Type::ArrayOf[Lithic::AuthRules::ConditionalACHActionParameters::Condition] }
|
|
18
|
+
|
|
19
|
+
# @!method initialize(action:, conditions:)
|
|
20
|
+
# @param action [Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ApproveAction, Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ReturnAction] The action to take if the conditions are met
|
|
21
|
+
#
|
|
22
|
+
# @param conditions [Array<Lithic::Models::AuthRules::ConditionalACHActionParameters::Condition>]
|
|
23
|
+
|
|
24
|
+
# The action to take if the conditions are met
|
|
25
|
+
#
|
|
26
|
+
# @see Lithic::Models::AuthRules::ConditionalACHActionParameters#action
|
|
27
|
+
module Action
|
|
28
|
+
extend Lithic::Internal::Type::Union
|
|
29
|
+
|
|
30
|
+
variant -> { Lithic::AuthRules::ConditionalACHActionParameters::Action::ApproveAction }
|
|
31
|
+
|
|
32
|
+
variant -> { Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction }
|
|
33
|
+
|
|
34
|
+
class ApproveAction < Lithic::Internal::Type::BaseModel
|
|
35
|
+
# @!attribute type
|
|
36
|
+
# Approve the ACH transaction
|
|
37
|
+
#
|
|
38
|
+
# @return [Symbol, Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ApproveAction::Type]
|
|
39
|
+
required :type,
|
|
40
|
+
enum: -> { Lithic::AuthRules::ConditionalACHActionParameters::Action::ApproveAction::Type }
|
|
41
|
+
|
|
42
|
+
# @!method initialize(type:)
|
|
43
|
+
# @param type [Symbol, Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ApproveAction::Type] Approve the ACH transaction
|
|
44
|
+
|
|
45
|
+
# Approve the ACH transaction
|
|
46
|
+
#
|
|
47
|
+
# @see Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ApproveAction#type
|
|
48
|
+
module Type
|
|
49
|
+
extend Lithic::Internal::Type::Enum
|
|
50
|
+
|
|
51
|
+
APPROVE = :APPROVE
|
|
52
|
+
|
|
53
|
+
# @!method self.values
|
|
54
|
+
# @return [Array<Symbol>]
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
class ReturnAction < Lithic::Internal::Type::BaseModel
|
|
59
|
+
# @!attribute code
|
|
60
|
+
# NACHA return code to use when returning the transaction. Note that the list of
|
|
61
|
+
# available return codes is subject to an allowlist configured at the program
|
|
62
|
+
# level
|
|
63
|
+
#
|
|
64
|
+
# @return [Symbol, Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code]
|
|
65
|
+
required :code, enum: -> { Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code }
|
|
66
|
+
|
|
67
|
+
# @!attribute type
|
|
68
|
+
# Return the ACH transaction
|
|
69
|
+
#
|
|
70
|
+
# @return [Symbol, Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Type]
|
|
71
|
+
required :type, enum: -> { Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Type }
|
|
72
|
+
|
|
73
|
+
# @!method initialize(code:, type:)
|
|
74
|
+
# Some parameter documentations has been truncated, see
|
|
75
|
+
# {Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ReturnAction}
|
|
76
|
+
# for more details.
|
|
77
|
+
#
|
|
78
|
+
# @param code [Symbol, Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code] NACHA return code to use when returning the transaction. Note that the list of a
|
|
79
|
+
#
|
|
80
|
+
# @param type [Symbol, Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Type] Return the ACH transaction
|
|
81
|
+
|
|
82
|
+
# NACHA return code to use when returning the transaction. Note that the list of
|
|
83
|
+
# available return codes is subject to an allowlist configured at the program
|
|
84
|
+
# level
|
|
85
|
+
#
|
|
86
|
+
# @see Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ReturnAction#code
|
|
87
|
+
module Code
|
|
88
|
+
extend Lithic::Internal::Type::Enum
|
|
89
|
+
|
|
90
|
+
R01 = :R01
|
|
91
|
+
R02 = :R02
|
|
92
|
+
R03 = :R03
|
|
93
|
+
R04 = :R04
|
|
94
|
+
R05 = :R05
|
|
95
|
+
R06 = :R06
|
|
96
|
+
R07 = :R07
|
|
97
|
+
R08 = :R08
|
|
98
|
+
R09 = :R09
|
|
99
|
+
R10 = :R10
|
|
100
|
+
R11 = :R11
|
|
101
|
+
R12 = :R12
|
|
102
|
+
R13 = :R13
|
|
103
|
+
R14 = :R14
|
|
104
|
+
R15 = :R15
|
|
105
|
+
R16 = :R16
|
|
106
|
+
R17 = :R17
|
|
107
|
+
R18 = :R18
|
|
108
|
+
R19 = :R19
|
|
109
|
+
R20 = :R20
|
|
110
|
+
R21 = :R21
|
|
111
|
+
R22 = :R22
|
|
112
|
+
R23 = :R23
|
|
113
|
+
R24 = :R24
|
|
114
|
+
R25 = :R25
|
|
115
|
+
R26 = :R26
|
|
116
|
+
R27 = :R27
|
|
117
|
+
R28 = :R28
|
|
118
|
+
R29 = :R29
|
|
119
|
+
R30 = :R30
|
|
120
|
+
R31 = :R31
|
|
121
|
+
R32 = :R32
|
|
122
|
+
R33 = :R33
|
|
123
|
+
R34 = :R34
|
|
124
|
+
R35 = :R35
|
|
125
|
+
R36 = :R36
|
|
126
|
+
R37 = :R37
|
|
127
|
+
R38 = :R38
|
|
128
|
+
R39 = :R39
|
|
129
|
+
R40 = :R40
|
|
130
|
+
R41 = :R41
|
|
131
|
+
R42 = :R42
|
|
132
|
+
R43 = :R43
|
|
133
|
+
R44 = :R44
|
|
134
|
+
R45 = :R45
|
|
135
|
+
R46 = :R46
|
|
136
|
+
R47 = :R47
|
|
137
|
+
R50 = :R50
|
|
138
|
+
R51 = :R51
|
|
139
|
+
R52 = :R52
|
|
140
|
+
R53 = :R53
|
|
141
|
+
R61 = :R61
|
|
142
|
+
R62 = :R62
|
|
143
|
+
R67 = :R67
|
|
144
|
+
R68 = :R68
|
|
145
|
+
R69 = :R69
|
|
146
|
+
R70 = :R70
|
|
147
|
+
R71 = :R71
|
|
148
|
+
R72 = :R72
|
|
149
|
+
R73 = :R73
|
|
150
|
+
R74 = :R74
|
|
151
|
+
R75 = :R75
|
|
152
|
+
R76 = :R76
|
|
153
|
+
R77 = :R77
|
|
154
|
+
R80 = :R80
|
|
155
|
+
R81 = :R81
|
|
156
|
+
R82 = :R82
|
|
157
|
+
R83 = :R83
|
|
158
|
+
R84 = :R84
|
|
159
|
+
R85 = :R85
|
|
160
|
+
|
|
161
|
+
# @!method self.values
|
|
162
|
+
# @return [Array<Symbol>]
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
# Return the ACH transaction
|
|
166
|
+
#
|
|
167
|
+
# @see Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ReturnAction#type
|
|
168
|
+
module Type
|
|
169
|
+
extend Lithic::Internal::Type::Enum
|
|
170
|
+
|
|
171
|
+
RETURN = :RETURN
|
|
172
|
+
|
|
173
|
+
# @!method self.values
|
|
174
|
+
# @return [Array<Symbol>]
|
|
175
|
+
end
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
# @!method self.variants
|
|
179
|
+
# @return [Array(Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ApproveAction, Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ReturnAction)]
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
class Condition < Lithic::Internal::Type::BaseModel
|
|
183
|
+
# @!attribute attribute
|
|
184
|
+
# The attribute to target.
|
|
185
|
+
#
|
|
186
|
+
# The following attributes may be targeted:
|
|
187
|
+
#
|
|
188
|
+
# - `COMPANY_NAME`: The name of the company initiating the ACH transaction.
|
|
189
|
+
# - `COMPANY_ID`: The company ID (also known as Standard Entry Class (SEC) Company
|
|
190
|
+
# ID) of the entity initiating the ACH transaction.
|
|
191
|
+
# - `TIMESTAMP`: The timestamp of the ACH transaction in ISO 8601 format.
|
|
192
|
+
# - `TRANSACTION_AMOUNT`: The amount of the ACH transaction in minor units
|
|
193
|
+
# (cents).
|
|
194
|
+
# - `SEC_CODE`: Standard Entry Class code indicating the type of ACH transaction.
|
|
195
|
+
# Valid values include PPD (Prearranged Payment and Deposit Entry), CCD
|
|
196
|
+
# (Corporate Credit or Debit Entry), WEB (Internet-Initiated/Mobile Entry), TEL
|
|
197
|
+
# (Telephone-Initiated Entry), and others.
|
|
198
|
+
# - `MEMO`: Optional memo or description field included with the ACH transaction.
|
|
199
|
+
#
|
|
200
|
+
# @return [Symbol, Lithic::Models::AuthRules::ConditionalACHActionParameters::Condition::Attribute]
|
|
201
|
+
required :attribute, enum: -> { Lithic::AuthRules::ConditionalACHActionParameters::Condition::Attribute }
|
|
202
|
+
|
|
203
|
+
# @!attribute operation
|
|
204
|
+
# The operation to apply to the attribute
|
|
205
|
+
#
|
|
206
|
+
# @return [Symbol, Lithic::Models::AuthRules::ConditionalOperation]
|
|
207
|
+
required :operation, enum: -> { Lithic::AuthRules::ConditionalOperation }
|
|
208
|
+
|
|
209
|
+
# @!attribute value
|
|
210
|
+
# A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
|
211
|
+
#
|
|
212
|
+
# @return [String, Integer, Array<String>]
|
|
213
|
+
required :value, union: -> { Lithic::AuthRules::ConditionalValue }
|
|
214
|
+
|
|
215
|
+
# @!method initialize(attribute:, operation:, value:)
|
|
216
|
+
# Some parameter documentations has been truncated, see
|
|
217
|
+
# {Lithic::Models::AuthRules::ConditionalACHActionParameters::Condition} for more
|
|
218
|
+
# details.
|
|
219
|
+
#
|
|
220
|
+
# @param attribute [Symbol, Lithic::Models::AuthRules::ConditionalACHActionParameters::Condition::Attribute] The attribute to target.
|
|
221
|
+
#
|
|
222
|
+
# @param operation [Symbol, Lithic::Models::AuthRules::ConditionalOperation] The operation to apply to the attribute
|
|
223
|
+
#
|
|
224
|
+
# @param value [String, Integer, Array<String>] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
|
225
|
+
|
|
226
|
+
# The attribute to target.
|
|
227
|
+
#
|
|
228
|
+
# The following attributes may be targeted:
|
|
229
|
+
#
|
|
230
|
+
# - `COMPANY_NAME`: The name of the company initiating the ACH transaction.
|
|
231
|
+
# - `COMPANY_ID`: The company ID (also known as Standard Entry Class (SEC) Company
|
|
232
|
+
# ID) of the entity initiating the ACH transaction.
|
|
233
|
+
# - `TIMESTAMP`: The timestamp of the ACH transaction in ISO 8601 format.
|
|
234
|
+
# - `TRANSACTION_AMOUNT`: The amount of the ACH transaction in minor units
|
|
235
|
+
# (cents).
|
|
236
|
+
# - `SEC_CODE`: Standard Entry Class code indicating the type of ACH transaction.
|
|
237
|
+
# Valid values include PPD (Prearranged Payment and Deposit Entry), CCD
|
|
238
|
+
# (Corporate Credit or Debit Entry), WEB (Internet-Initiated/Mobile Entry), TEL
|
|
239
|
+
# (Telephone-Initiated Entry), and others.
|
|
240
|
+
# - `MEMO`: Optional memo or description field included with the ACH transaction.
|
|
241
|
+
#
|
|
242
|
+
# @see Lithic::Models::AuthRules::ConditionalACHActionParameters::Condition#attribute
|
|
243
|
+
module Attribute
|
|
244
|
+
extend Lithic::Internal::Type::Enum
|
|
245
|
+
|
|
246
|
+
COMPANY_NAME = :COMPANY_NAME
|
|
247
|
+
COMPANY_ID = :COMPANY_ID
|
|
248
|
+
TIMESTAMP = :TIMESTAMP
|
|
249
|
+
TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT
|
|
250
|
+
SEC_CODE = :SEC_CODE
|
|
251
|
+
MEMO = :MEMO
|
|
252
|
+
|
|
253
|
+
# @!method self.values
|
|
254
|
+
# @return [Array<Symbol>]
|
|
255
|
+
end
|
|
256
|
+
end
|
|
257
|
+
end
|
|
258
|
+
end
|
|
259
|
+
end
|
|
260
|
+
end
|
|
@@ -91,32 +91,30 @@ module Lithic
|
|
|
91
91
|
# data with the cardholder KYC data if it exists. Valid values are `MATCH`,
|
|
92
92
|
# `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`.
|
|
93
93
|
#
|
|
94
|
-
# @return [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute
|
|
95
|
-
|
|
94
|
+
# @return [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute]
|
|
95
|
+
required :attribute,
|
|
96
96
|
enum: -> { Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute }
|
|
97
97
|
|
|
98
98
|
# @!attribute operation
|
|
99
99
|
# The operation to apply to the attribute
|
|
100
100
|
#
|
|
101
|
-
# @return [Symbol, Lithic::Models::AuthRules::
|
|
102
|
-
|
|
103
|
-
enum: -> { Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Operation }
|
|
101
|
+
# @return [Symbol, Lithic::Models::AuthRules::ConditionalOperation]
|
|
102
|
+
required :operation, enum: -> { Lithic::AuthRules::ConditionalOperation }
|
|
104
103
|
|
|
105
104
|
# @!attribute value
|
|
106
105
|
# A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
|
107
106
|
#
|
|
108
|
-
# @return [String, Integer, Array<String
|
|
109
|
-
|
|
110
|
-
union: -> { Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Value }
|
|
107
|
+
# @return [String, Integer, Array<String>]
|
|
108
|
+
required :value, union: -> { Lithic::AuthRules::ConditionalValue }
|
|
111
109
|
|
|
112
|
-
# @!method initialize(attribute
|
|
110
|
+
# @!method initialize(attribute:, operation:, value:)
|
|
113
111
|
# Some parameter documentations has been truncated, see
|
|
114
112
|
# {Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition}
|
|
115
113
|
# for more details.
|
|
116
114
|
#
|
|
117
115
|
# @param attribute [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute] The attribute to target.
|
|
118
116
|
#
|
|
119
|
-
# @param operation [Symbol, Lithic::Models::AuthRules::
|
|
117
|
+
# @param operation [Symbol, Lithic::Models::AuthRules::ConditionalOperation] The operation to apply to the attribute
|
|
120
118
|
#
|
|
121
119
|
# @param value [String, Integer, Array<String>] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
|
122
120
|
|
|
@@ -202,49 +200,6 @@ module Lithic
|
|
|
202
200
|
# @!method self.values
|
|
203
201
|
# @return [Array<Symbol>]
|
|
204
202
|
end
|
|
205
|
-
|
|
206
|
-
# The operation to apply to the attribute
|
|
207
|
-
#
|
|
208
|
-
# @see Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition#operation
|
|
209
|
-
module Operation
|
|
210
|
-
extend Lithic::Internal::Type::Enum
|
|
211
|
-
|
|
212
|
-
IS_ONE_OF = :IS_ONE_OF
|
|
213
|
-
IS_NOT_ONE_OF = :IS_NOT_ONE_OF
|
|
214
|
-
MATCHES = :MATCHES
|
|
215
|
-
DOES_NOT_MATCH = :DOES_NOT_MATCH
|
|
216
|
-
IS_EQUAL_TO = :IS_EQUAL_TO
|
|
217
|
-
IS_NOT_EQUAL_TO = :IS_NOT_EQUAL_TO
|
|
218
|
-
IS_GREATER_THAN = :IS_GREATER_THAN
|
|
219
|
-
IS_GREATER_THAN_OR_EQUAL_TO = :IS_GREATER_THAN_OR_EQUAL_TO
|
|
220
|
-
IS_LESS_THAN = :IS_LESS_THAN
|
|
221
|
-
IS_LESS_THAN_OR_EQUAL_TO = :IS_LESS_THAN_OR_EQUAL_TO
|
|
222
|
-
|
|
223
|
-
# @!method self.values
|
|
224
|
-
# @return [Array<Symbol>]
|
|
225
|
-
end
|
|
226
|
-
|
|
227
|
-
# A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
|
228
|
-
#
|
|
229
|
-
# @see Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition#value
|
|
230
|
-
module Value
|
|
231
|
-
extend Lithic::Internal::Type::Union
|
|
232
|
-
|
|
233
|
-
# A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
|
234
|
-
variant String
|
|
235
|
-
|
|
236
|
-
# A number, to be used with `IS_GREATER_THAN`, `IS_GREATER_THAN_OR_EQUAL_TO`, `IS_LESS_THAN`, `IS_LESS_THAN_OR_EQUAL_TO`, `IS_EQUAL_TO`, or `IS_NOT_EQUAL_TO`
|
|
237
|
-
variant Integer
|
|
238
|
-
|
|
239
|
-
# An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF`
|
|
240
|
-
variant -> { Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Value::StringArray }
|
|
241
|
-
|
|
242
|
-
# @!method self.variants
|
|
243
|
-
# @return [Array(String, Integer, Array<String>)]
|
|
244
|
-
|
|
245
|
-
# @type [Lithic::Internal::Type::Converter]
|
|
246
|
-
StringArray = Lithic::Internal::Type::ArrayOf[String]
|
|
247
|
-
end
|
|
248
203
|
end
|
|
249
204
|
end
|
|
250
205
|
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
module AuthRules
|
|
6
|
+
# The operation to apply to the attribute
|
|
7
|
+
module ConditionalOperation
|
|
8
|
+
extend Lithic::Internal::Type::Enum
|
|
9
|
+
|
|
10
|
+
IS_ONE_OF = :IS_ONE_OF
|
|
11
|
+
IS_NOT_ONE_OF = :IS_NOT_ONE_OF
|
|
12
|
+
MATCHES = :MATCHES
|
|
13
|
+
DOES_NOT_MATCH = :DOES_NOT_MATCH
|
|
14
|
+
IS_EQUAL_TO = :IS_EQUAL_TO
|
|
15
|
+
IS_NOT_EQUAL_TO = :IS_NOT_EQUAL_TO
|
|
16
|
+
IS_GREATER_THAN = :IS_GREATER_THAN
|
|
17
|
+
IS_GREATER_THAN_OR_EQUAL_TO = :IS_GREATER_THAN_OR_EQUAL_TO
|
|
18
|
+
IS_LESS_THAN = :IS_LESS_THAN
|
|
19
|
+
IS_LESS_THAN_OR_EQUAL_TO = :IS_LESS_THAN_OR_EQUAL_TO
|
|
20
|
+
|
|
21
|
+
# @!method self.values
|
|
22
|
+
# @return [Array<Symbol>]
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|