lithic 0.1.0.pre.alpha.54 → 0.1.0.pre.alpha.55
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 +19 -0
- data/README.md +1 -1
- data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +2 -2
- data/lib/lithic/models/account_holder_update_response.rb +4 -4
- data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +252 -0
- data/lib/lithic/models/auth_rules/v2_create_params.rb +38 -284
- data/lib/lithic/models/auth_rules/v2_create_response.rb +8 -508
- data/lib/lithic/models/auth_rules/v2_draft_params.rb +4 -250
- data/lib/lithic/models/auth_rules/v2_draft_response.rb +8 -508
- data/lib/lithic/models/auth_rules/v2_list_response.rb +8 -508
- data/lib/lithic/models/auth_rules/v2_promote_response.rb +8 -508
- data/lib/lithic/models/auth_rules/v2_retrieve_features_response.rb +4 -11
- data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +8 -508
- data/lib/lithic/models/auth_rules/v2_update_response.rb +8 -508
- data/lib/lithic/models/auth_rules/velocity_limit_params.rb +4 -7
- data/lib/lithic/models/auth_rules/velocity_limit_period.rb +154 -0
- data/lib/lithic/models/book_transfer_response.rb +5 -5
- data/lib/lithic/models/dispute.rb +510 -242
- data/lib/lithic/models/dispute_create_response.rb +326 -0
- data/lib/lithic/models/dispute_delete_response.rb +326 -0
- data/lib/lithic/models/dispute_list_response.rb +326 -0
- data/lib/lithic/models/dispute_retrieve_response.rb +326 -0
- data/lib/lithic/models/dispute_update_response.rb +326 -0
- data/lib/lithic/models/event.rb +213 -69
- data/lib/lithic/models/event_list_params.rb +112 -6
- data/lib/lithic/models/event_subscription.rb +112 -6
- data/lib/lithic/models/events/subscription_create_params.rb +112 -6
- data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +12 -6
- data/lib/lithic/models/events/subscription_update_params.rb +112 -6
- data/lib/lithic/models/financial_account.rb +1 -65
- data/lib/lithic/models/financial_accounts/financial_account_credit_config.rb +1 -64
- data/lib/lithic/models/financial_accounts/loan_tape.rb +99 -3
- data/lib/lithic/models/financial_accounts/statement.rb +66 -2
- data/lib/lithic/models/payment.rb +9 -9
- data/lib/lithic/models/payment_simulate_action_params.rb +17 -1
- data/lib/lithic/models/tokenization.rb +189 -23
- data/lib/lithic/models/transaction.rb +12 -116
- data/lib/lithic/models/transactions/events/enhanced_data.rb +9 -9
- data/lib/lithic/resources/auth_rules/v2/backtests.rb +3 -5
- data/lib/lithic/resources/auth_rules/v2.rb +13 -56
- data/lib/lithic/resources/disputes.rb +10 -10
- data/lib/lithic/resources/payments.rb +5 -1
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +7 -3
- data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +3 -6
- data/rbi/lithic/models/account_holder_update_response.rbi +6 -12
- data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +577 -0
- data/rbi/lithic/models/auth_rules/v2_create_params.rbi +85 -679
- data/rbi/lithic/models/auth_rules/v2_create_response.rbi +4 -1146
- data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +4 -575
- data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +4 -1146
- data/rbi/lithic/models/auth_rules/v2_list_response.rbi +4 -1146
- data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +4 -1146
- data/rbi/lithic/models/auth_rules/v2_retrieve_features_response.rbi +9 -22
- data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +4 -1146
- data/rbi/lithic/models/auth_rules/v2_update_response.rbi +4 -1146
- data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +17 -29
- data/rbi/lithic/models/auth_rules/velocity_limit_period.rbi +223 -0
- data/rbi/lithic/models/book_transfer_response.rbi +14 -11
- data/rbi/lithic/models/dispute.rbi +942 -395
- data/rbi/lithic/models/dispute_create_response.rbi +599 -0
- data/rbi/lithic/models/dispute_delete_response.rbi +599 -0
- data/rbi/lithic/models/dispute_list_response.rbi +582 -0
- data/rbi/lithic/models/dispute_retrieve_response.rbi +601 -0
- data/rbi/lithic/models/dispute_update_response.rbi +599 -0
- data/rbi/lithic/models/event.rbi +348 -111
- data/rbi/lithic/models/event_list_params.rbi +155 -25
- data/rbi/lithic/models/event_subscription.rbi +155 -25
- data/rbi/lithic/models/events/subscription_create_params.rbi +155 -25
- data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +55 -25
- data/rbi/lithic/models/events/subscription_update_params.rbi +155 -25
- data/rbi/lithic/models/financial_account.rbi +3 -132
- data/rbi/lithic/models/financial_accounts/financial_account_credit_config.rbi +3 -136
- data/rbi/lithic/models/financial_accounts/loan_tape.rbi +132 -9
- data/rbi/lithic/models/financial_accounts/statement.rbi +88 -6
- data/rbi/lithic/models/payment.rbi +11 -14
- data/rbi/lithic/models/payment_simulate_action_params.rbi +22 -0
- data/rbi/lithic/models/tokenization.rbi +429 -34
- data/rbi/lithic/models/transaction.rbi +22 -246
- data/rbi/lithic/models/transactions/events/enhanced_data.rbi +12 -12
- data/rbi/lithic/resources/auth_rules/v2/backtests.rbi +0 -3
- data/rbi/lithic/resources/auth_rules/v2.rbi +24 -72
- data/rbi/lithic/resources/disputes.rbi +7 -5
- data/rbi/lithic/resources/payments.rbi +6 -0
- data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +4 -6
- data/sig/lithic/models/account_holder_update_response.rbs +8 -12
- data/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +163 -0
- data/sig/lithic/models/auth_rules/v2_create_params.rbs +22 -188
- data/sig/lithic/models/auth_rules/v2_create_response.rbs +2 -318
- data/sig/lithic/models/auth_rules/v2_draft_params.rbs +1 -159
- data/sig/lithic/models/auth_rules/v2_draft_response.rbs +2 -318
- data/sig/lithic/models/auth_rules/v2_list_response.rbs +2 -318
- data/sig/lithic/models/auth_rules/v2_promote_response.rbs +2 -318
- data/sig/lithic/models/auth_rules/v2_retrieve_features_response.rbs +4 -4
- data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +2 -318
- data/sig/lithic/models/auth_rules/v2_update_response.rbs +2 -318
- data/sig/lithic/models/auth_rules/velocity_limit_params.rbs +4 -4
- data/sig/lithic/models/auth_rules/velocity_limit_period.rbs +91 -0
- data/sig/lithic/models/book_transfer_response.rbs +7 -7
- data/sig/lithic/models/dispute.rbs +417 -157
- data/sig/lithic/models/dispute_create_response.rbs +210 -0
- data/sig/lithic/models/dispute_delete_response.rbs +210 -0
- data/sig/lithic/models/dispute_list_response.rbs +210 -0
- data/sig/lithic/models/dispute_retrieve_response.rbs +210 -0
- data/sig/lithic/models/dispute_update_response.rbs +210 -0
- data/sig/lithic/models/event.rbs +25 -13
- data/sig/lithic/models/event_list_params.rbs +25 -13
- data/sig/lithic/models/event_subscription.rbs +25 -13
- data/sig/lithic/models/events/subscription_create_params.rbs +25 -13
- data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +25 -13
- data/sig/lithic/models/events/subscription_update_params.rbs +25 -13
- data/sig/lithic/models/financial_account.rbs +3 -45
- data/sig/lithic/models/financial_accounts/financial_account_credit_config.rbs +3 -49
- data/sig/lithic/models/financial_accounts/loan_tape.rbs +87 -9
- data/sig/lithic/models/financial_accounts/statement.rbs +58 -6
- data/sig/lithic/models/payment.rbs +8 -10
- data/sig/lithic/models/payment_simulate_action_params.rbs +14 -0
- data/sig/lithic/models/tokenization.rbs +160 -13
- data/sig/lithic/models/transaction.rbs +13 -94
- data/sig/lithic/models/transactions/events/enhanced_data.rbs +15 -15
- data/sig/lithic/resources/auth_rules/v2.rbs +2 -12
- data/sig/lithic/resources/disputes.rbs +5 -5
- data/sig/lithic/resources/payments.rbs +2 -0
- metadata +23 -11
- data/lib/lithic/models/auth_rules/v2_apply_params.rb +0 -56
- data/lib/lithic/models/auth_rules/v2_apply_response.rb +0 -766
- data/lib/lithic/models/auth_rules/velocity_limit_params_period_window.rb +0 -248
- data/rbi/lithic/models/auth_rules/v2_apply_params.rbi +0 -86
- data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +0 -1638
- data/rbi/lithic/models/auth_rules/velocity_limit_params_period_window.rbi +0 -557
- data/sig/lithic/models/auth_rules/v2_apply_params.rbs +0 -54
- data/sig/lithic/models/auth_rules/v2_apply_response.rbs +0 -509
- data/sig/lithic/models/auth_rules/velocity_limit_params_period_window.rbs +0 -223
|
@@ -102,8 +102,10 @@ module Lithic
|
|
|
102
102
|
params(
|
|
103
103
|
payment_token: String,
|
|
104
104
|
event_type: Lithic::PaymentSimulateActionParams::EventType::OrSymbol,
|
|
105
|
+
date_of_death: Date,
|
|
105
106
|
decline_reason:
|
|
106
107
|
Lithic::PaymentSimulateActionParams::DeclineReason::OrSymbol,
|
|
108
|
+
return_addenda: String,
|
|
107
109
|
return_reason_code: String,
|
|
108
110
|
request_options: Lithic::RequestOptions::OrHash
|
|
109
111
|
).returns(Lithic::Models::PaymentSimulateActionResponse)
|
|
@@ -112,8 +114,12 @@ module Lithic
|
|
|
112
114
|
payment_token,
|
|
113
115
|
# Event Type
|
|
114
116
|
event_type:,
|
|
117
|
+
# Date of Death for ACH Return
|
|
118
|
+
date_of_death: nil,
|
|
115
119
|
# Decline reason
|
|
116
120
|
decline_reason: nil,
|
|
121
|
+
# Return Addenda
|
|
122
|
+
return_addenda: nil,
|
|
117
123
|
# Return Reason Code
|
|
118
124
|
return_reason_code: nil,
|
|
119
125
|
request_options: {}
|
|
@@ -6,7 +6,7 @@ module Lithic
|
|
|
6
6
|
account_token: String,
|
|
7
7
|
beneficial_owner_entities: ::Array[Lithic::KYBBusinessEntity],
|
|
8
8
|
beneficial_owner_individuals: ::Array[Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::BeneficialOwnerIndividual],
|
|
9
|
-
business_account_token: String
|
|
9
|
+
business_account_token: String?,
|
|
10
10
|
business_entity: Lithic::KYBBusinessEntity,
|
|
11
11
|
control_person: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::ControlPerson,
|
|
12
12
|
created: Time,
|
|
@@ -45,9 +45,7 @@ module Lithic
|
|
|
45
45
|
::Array[Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::BeneficialOwnerIndividual]
|
|
46
46
|
) -> ::Array[Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::BeneficialOwnerIndividual]
|
|
47
47
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
def business_account_token=: (String) -> String
|
|
48
|
+
attr_accessor business_account_token: String?
|
|
51
49
|
|
|
52
50
|
attr_reader business_entity: Lithic::KYBBusinessEntity?
|
|
53
51
|
|
|
@@ -132,7 +130,7 @@ module Lithic
|
|
|
132
130
|
?account_token: String,
|
|
133
131
|
?beneficial_owner_entities: ::Array[Lithic::KYBBusinessEntity],
|
|
134
132
|
?beneficial_owner_individuals: ::Array[Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::BeneficialOwnerIndividual],
|
|
135
|
-
?business_account_token: String
|
|
133
|
+
?business_account_token: String?,
|
|
136
134
|
?business_entity: Lithic::KYBBusinessEntity,
|
|
137
135
|
?control_person: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::ControlPerson,
|
|
138
136
|
?created: Time,
|
|
@@ -155,7 +153,7 @@ module Lithic
|
|
|
155
153
|
account_token: String,
|
|
156
154
|
beneficial_owner_entities: ::Array[Lithic::KYBBusinessEntity],
|
|
157
155
|
beneficial_owner_individuals: ::Array[Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::BeneficialOwnerIndividual],
|
|
158
|
-
business_account_token: String
|
|
156
|
+
business_account_token: String?,
|
|
159
157
|
business_entity: Lithic::KYBBusinessEntity,
|
|
160
158
|
control_person: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::ControlPerson,
|
|
161
159
|
created: Time,
|
|
@@ -13,7 +13,7 @@ module Lithic
|
|
|
13
13
|
account_token: String,
|
|
14
14
|
beneficial_owner_entities: ::Array[Lithic::KYBBusinessEntity],
|
|
15
15
|
beneficial_owner_individuals: ::Array[Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::BeneficialOwnerIndividual],
|
|
16
|
-
business_account_token: String
|
|
16
|
+
business_account_token: String?,
|
|
17
17
|
business_entity: Lithic::KYBBusinessEntity,
|
|
18
18
|
control_person: Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::ControlPerson,
|
|
19
19
|
created: Time,
|
|
@@ -52,9 +52,7 @@ module Lithic
|
|
|
52
52
|
::Array[Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::BeneficialOwnerIndividual]
|
|
53
53
|
) -> ::Array[Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::BeneficialOwnerIndividual]
|
|
54
54
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
def business_account_token=: (String) -> String
|
|
55
|
+
attr_accessor business_account_token: String?
|
|
58
56
|
|
|
59
57
|
attr_reader business_entity: Lithic::KYBBusinessEntity?
|
|
60
58
|
|
|
@@ -139,7 +137,7 @@ module Lithic
|
|
|
139
137
|
?account_token: String,
|
|
140
138
|
?beneficial_owner_entities: ::Array[Lithic::KYBBusinessEntity],
|
|
141
139
|
?beneficial_owner_individuals: ::Array[Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::BeneficialOwnerIndividual],
|
|
142
|
-
?business_account_token: String
|
|
140
|
+
?business_account_token: String?,
|
|
143
141
|
?business_entity: Lithic::KYBBusinessEntity,
|
|
144
142
|
?control_person: Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::ControlPerson,
|
|
145
143
|
?created: Time,
|
|
@@ -162,7 +160,7 @@ module Lithic
|
|
|
162
160
|
account_token: String,
|
|
163
161
|
beneficial_owner_entities: ::Array[Lithic::KYBBusinessEntity],
|
|
164
162
|
beneficial_owner_individuals: ::Array[Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::BeneficialOwnerIndividual],
|
|
165
|
-
business_account_token: String
|
|
163
|
+
business_account_token: String?,
|
|
166
164
|
business_entity: Lithic::KYBBusinessEntity,
|
|
167
165
|
control_person: Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::ControlPerson,
|
|
168
166
|
created: Time,
|
|
@@ -694,7 +692,7 @@ module Lithic
|
|
|
694
692
|
{
|
|
695
693
|
token: String,
|
|
696
694
|
address: Lithic::Models::AccountHolderUpdateResponse::PatchResponse::Address,
|
|
697
|
-
business_account_token: String
|
|
695
|
+
business_account_token: String?,
|
|
698
696
|
email: String,
|
|
699
697
|
first_name: String,
|
|
700
698
|
last_name: String,
|
|
@@ -713,9 +711,7 @@ module Lithic
|
|
|
713
711
|
Lithic::Models::AccountHolderUpdateResponse::PatchResponse::Address
|
|
714
712
|
) -> Lithic::Models::AccountHolderUpdateResponse::PatchResponse::Address
|
|
715
713
|
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
def business_account_token=: (String) -> String
|
|
714
|
+
attr_accessor business_account_token: String?
|
|
719
715
|
|
|
720
716
|
attr_reader email: String?
|
|
721
717
|
|
|
@@ -740,7 +736,7 @@ module Lithic
|
|
|
740
736
|
def initialize: (
|
|
741
737
|
?token: String,
|
|
742
738
|
?address: Lithic::Models::AccountHolderUpdateResponse::PatchResponse::Address,
|
|
743
|
-
?business_account_token: String
|
|
739
|
+
?business_account_token: String?,
|
|
744
740
|
?email: String,
|
|
745
741
|
?first_name: String,
|
|
746
742
|
?last_name: String,
|
|
@@ -751,7 +747,7 @@ module Lithic
|
|
|
751
747
|
def to_hash: -> {
|
|
752
748
|
token: String,
|
|
753
749
|
address: Lithic::Models::AccountHolderUpdateResponse::PatchResponse::Address,
|
|
754
|
-
business_account_token: String
|
|
750
|
+
business_account_token: String?,
|
|
755
751
|
email: String,
|
|
756
752
|
first_name: String,
|
|
757
753
|
last_name: String,
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
module Lithic
|
|
2
|
+
module Models
|
|
3
|
+
module AuthRules
|
|
4
|
+
type conditional_authorization_action_parameters =
|
|
5
|
+
{
|
|
6
|
+
action: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::action,
|
|
7
|
+
conditions: ::Array[Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition]
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel
|
|
11
|
+
attr_accessor action: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::action
|
|
12
|
+
|
|
13
|
+
attr_accessor conditions: ::Array[Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition]
|
|
14
|
+
|
|
15
|
+
def initialize: (
|
|
16
|
+
action: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::action,
|
|
17
|
+
conditions: ::Array[Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition]
|
|
18
|
+
) -> void
|
|
19
|
+
|
|
20
|
+
def to_hash: -> {
|
|
21
|
+
action: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::action,
|
|
22
|
+
conditions: ::Array[Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition]
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
type action = :DECLINE | :CHALLENGE
|
|
26
|
+
|
|
27
|
+
module Action
|
|
28
|
+
extend Lithic::Internal::Type::Enum
|
|
29
|
+
|
|
30
|
+
DECLINE: :DECLINE
|
|
31
|
+
CHALLENGE: :CHALLENGE
|
|
32
|
+
|
|
33
|
+
def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::action]
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
type condition =
|
|
37
|
+
{
|
|
38
|
+
attribute: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::attribute,
|
|
39
|
+
operation: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::operation,
|
|
40
|
+
value: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::value
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
class Condition < Lithic::Internal::Type::BaseModel
|
|
44
|
+
attr_reader attribute: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::attribute?
|
|
45
|
+
|
|
46
|
+
def attribute=: (
|
|
47
|
+
Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::attribute
|
|
48
|
+
) -> Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::attribute
|
|
49
|
+
|
|
50
|
+
attr_reader operation: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::operation?
|
|
51
|
+
|
|
52
|
+
def operation=: (
|
|
53
|
+
Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::operation
|
|
54
|
+
) -> Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::operation
|
|
55
|
+
|
|
56
|
+
attr_reader value: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::value?
|
|
57
|
+
|
|
58
|
+
def value=: (
|
|
59
|
+
Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::value
|
|
60
|
+
) -> Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::value
|
|
61
|
+
|
|
62
|
+
def initialize: (
|
|
63
|
+
?attribute: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::attribute,
|
|
64
|
+
?operation: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::operation,
|
|
65
|
+
?value: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::value
|
|
66
|
+
) -> void
|
|
67
|
+
|
|
68
|
+
def to_hash: -> {
|
|
69
|
+
attribute: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::attribute,
|
|
70
|
+
operation: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::operation,
|
|
71
|
+
value: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::value
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
type attribute =
|
|
75
|
+
:MCC
|
|
76
|
+
| :COUNTRY
|
|
77
|
+
| :CURRENCY
|
|
78
|
+
| :MERCHANT_ID
|
|
79
|
+
| :DESCRIPTOR
|
|
80
|
+
| :LIABILITY_SHIFT
|
|
81
|
+
| :PAN_ENTRY_MODE
|
|
82
|
+
| :TRANSACTION_AMOUNT
|
|
83
|
+
| :CASH_AMOUNT
|
|
84
|
+
| :RISK_SCORE
|
|
85
|
+
| :CARD_TRANSACTION_COUNT_15M
|
|
86
|
+
| :CARD_TRANSACTION_COUNT_1H
|
|
87
|
+
| :CARD_TRANSACTION_COUNT_24H
|
|
88
|
+
| :CARD_STATE
|
|
89
|
+
| :PIN_ENTERED
|
|
90
|
+
| :PIN_STATUS
|
|
91
|
+
| :WALLET_TYPE
|
|
92
|
+
| :TRANSACTION_INITIATOR
|
|
93
|
+
| :ADDRESS_MATCH
|
|
94
|
+
|
|
95
|
+
module Attribute
|
|
96
|
+
extend Lithic::Internal::Type::Enum
|
|
97
|
+
|
|
98
|
+
MCC: :MCC
|
|
99
|
+
COUNTRY: :COUNTRY
|
|
100
|
+
CURRENCY: :CURRENCY
|
|
101
|
+
MERCHANT_ID: :MERCHANT_ID
|
|
102
|
+
DESCRIPTOR: :DESCRIPTOR
|
|
103
|
+
LIABILITY_SHIFT: :LIABILITY_SHIFT
|
|
104
|
+
PAN_ENTRY_MODE: :PAN_ENTRY_MODE
|
|
105
|
+
TRANSACTION_AMOUNT: :TRANSACTION_AMOUNT
|
|
106
|
+
CASH_AMOUNT: :CASH_AMOUNT
|
|
107
|
+
RISK_SCORE: :RISK_SCORE
|
|
108
|
+
CARD_TRANSACTION_COUNT_15_M: :CARD_TRANSACTION_COUNT_15M
|
|
109
|
+
CARD_TRANSACTION_COUNT_1_H: :CARD_TRANSACTION_COUNT_1H
|
|
110
|
+
CARD_TRANSACTION_COUNT_24_H: :CARD_TRANSACTION_COUNT_24H
|
|
111
|
+
CARD_STATE: :CARD_STATE
|
|
112
|
+
PIN_ENTERED: :PIN_ENTERED
|
|
113
|
+
PIN_STATUS: :PIN_STATUS
|
|
114
|
+
WALLET_TYPE: :WALLET_TYPE
|
|
115
|
+
TRANSACTION_INITIATOR: :TRANSACTION_INITIATOR
|
|
116
|
+
ADDRESS_MATCH: :ADDRESS_MATCH
|
|
117
|
+
|
|
118
|
+
def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::attribute]
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
type operation =
|
|
122
|
+
:IS_ONE_OF
|
|
123
|
+
| :IS_NOT_ONE_OF
|
|
124
|
+
| :MATCHES
|
|
125
|
+
| :DOES_NOT_MATCH
|
|
126
|
+
| :IS_EQUAL_TO
|
|
127
|
+
| :IS_NOT_EQUAL_TO
|
|
128
|
+
| :IS_GREATER_THAN
|
|
129
|
+
| :IS_GREATER_THAN_OR_EQUAL_TO
|
|
130
|
+
| :IS_LESS_THAN
|
|
131
|
+
| :IS_LESS_THAN_OR_EQUAL_TO
|
|
132
|
+
|
|
133
|
+
module Operation
|
|
134
|
+
extend Lithic::Internal::Type::Enum
|
|
135
|
+
|
|
136
|
+
IS_ONE_OF: :IS_ONE_OF
|
|
137
|
+
IS_NOT_ONE_OF: :IS_NOT_ONE_OF
|
|
138
|
+
MATCHES: :MATCHES
|
|
139
|
+
DOES_NOT_MATCH: :DOES_NOT_MATCH
|
|
140
|
+
IS_EQUAL_TO: :IS_EQUAL_TO
|
|
141
|
+
IS_NOT_EQUAL_TO: :IS_NOT_EQUAL_TO
|
|
142
|
+
IS_GREATER_THAN: :IS_GREATER_THAN
|
|
143
|
+
IS_GREATER_THAN_OR_EQUAL_TO: :IS_GREATER_THAN_OR_EQUAL_TO
|
|
144
|
+
IS_LESS_THAN: :IS_LESS_THAN
|
|
145
|
+
IS_LESS_THAN_OR_EQUAL_TO: :IS_LESS_THAN_OR_EQUAL_TO
|
|
146
|
+
|
|
147
|
+
def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::operation]
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
type value = String | Integer | ::Array[String]
|
|
151
|
+
|
|
152
|
+
module Value
|
|
153
|
+
extend Lithic::Internal::Type::Union
|
|
154
|
+
|
|
155
|
+
def self?.variants: -> ::Array[Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::value]
|
|
156
|
+
|
|
157
|
+
StringArray: Lithic::Internal::Type::Converter
|
|
158
|
+
end
|
|
159
|
+
end
|
|
160
|
+
end
|
|
161
|
+
end
|
|
162
|
+
end
|
|
163
|
+
end
|
|
@@ -3,12 +3,12 @@ module Lithic
|
|
|
3
3
|
module AuthRules
|
|
4
4
|
type v2_create_params =
|
|
5
5
|
{
|
|
6
|
+
parameters: Lithic::Models::AuthRules::V2CreateParams::parameters,
|
|
7
|
+
type: Lithic::Models::AuthRules::V2CreateParams::type_,
|
|
6
8
|
account_tokens: ::Array[String],
|
|
7
9
|
business_account_tokens: ::Array[String],
|
|
8
10
|
event_stream: Lithic::Models::AuthRules::V2CreateParams::event_stream,
|
|
9
11
|
name: String?,
|
|
10
|
-
parameters: Lithic::Models::AuthRules::V2CreateParams::parameters,
|
|
11
|
-
type: Lithic::Models::AuthRules::V2CreateParams::type_,
|
|
12
12
|
card_tokens: ::Array[String],
|
|
13
13
|
program_level: bool,
|
|
14
14
|
excluded_card_tokens: ::Array[String]
|
|
@@ -19,6 +19,10 @@ module Lithic
|
|
|
19
19
|
extend Lithic::Internal::Type::RequestParameters::Converter
|
|
20
20
|
include Lithic::Internal::Type::RequestParameters
|
|
21
21
|
|
|
22
|
+
attr_accessor parameters: Lithic::Models::AuthRules::V2CreateParams::parameters
|
|
23
|
+
|
|
24
|
+
attr_accessor type: Lithic::Models::AuthRules::V2CreateParams::type_
|
|
25
|
+
|
|
22
26
|
attr_reader account_tokens: ::Array[String]?
|
|
23
27
|
|
|
24
28
|
def account_tokens=: (::Array[String]) -> ::Array[String]
|
|
@@ -35,18 +39,6 @@ module Lithic
|
|
|
35
39
|
|
|
36
40
|
attr_accessor name: String?
|
|
37
41
|
|
|
38
|
-
attr_reader parameters: Lithic::Models::AuthRules::V2CreateParams::parameters?
|
|
39
|
-
|
|
40
|
-
def parameters=: (
|
|
41
|
-
Lithic::Models::AuthRules::V2CreateParams::parameters
|
|
42
|
-
) -> Lithic::Models::AuthRules::V2CreateParams::parameters
|
|
43
|
-
|
|
44
|
-
attr_reader type: Lithic::Models::AuthRules::V2CreateParams::type_?
|
|
45
|
-
|
|
46
|
-
def type=: (
|
|
47
|
-
Lithic::Models::AuthRules::V2CreateParams::type_
|
|
48
|
-
) -> Lithic::Models::AuthRules::V2CreateParams::type_
|
|
49
|
-
|
|
50
42
|
attr_accessor card_tokens: ::Array[String]
|
|
51
43
|
|
|
52
44
|
attr_accessor program_level: bool
|
|
@@ -56,210 +48,41 @@ module Lithic
|
|
|
56
48
|
def excluded_card_tokens=: (::Array[String]) -> ::Array[String]
|
|
57
49
|
|
|
58
50
|
def initialize: (
|
|
51
|
+
parameters: Lithic::Models::AuthRules::V2CreateParams::parameters,
|
|
52
|
+
type: Lithic::Models::AuthRules::V2CreateParams::type_,
|
|
59
53
|
card_tokens: ::Array[String],
|
|
60
54
|
program_level: bool,
|
|
61
55
|
?account_tokens: ::Array[String],
|
|
62
56
|
?business_account_tokens: ::Array[String],
|
|
63
57
|
?event_stream: Lithic::Models::AuthRules::V2CreateParams::event_stream,
|
|
64
58
|
?name: String?,
|
|
65
|
-
?parameters: Lithic::Models::AuthRules::V2CreateParams::parameters,
|
|
66
|
-
?type: Lithic::Models::AuthRules::V2CreateParams::type_,
|
|
67
59
|
?excluded_card_tokens: ::Array[String],
|
|
68
60
|
?request_options: Lithic::request_opts
|
|
69
61
|
) -> void
|
|
70
62
|
|
|
71
63
|
def to_hash: -> {
|
|
64
|
+
parameters: Lithic::Models::AuthRules::V2CreateParams::parameters,
|
|
65
|
+
type: Lithic::Models::AuthRules::V2CreateParams::type_,
|
|
72
66
|
account_tokens: ::Array[String],
|
|
73
67
|
business_account_tokens: ::Array[String],
|
|
74
68
|
event_stream: Lithic::Models::AuthRules::V2CreateParams::event_stream,
|
|
75
69
|
name: String?,
|
|
76
|
-
parameters: Lithic::Models::AuthRules::V2CreateParams::parameters,
|
|
77
|
-
type: Lithic::Models::AuthRules::V2CreateParams::type_,
|
|
78
70
|
card_tokens: ::Array[String],
|
|
79
71
|
program_level: bool,
|
|
80
72
|
excluded_card_tokens: ::Array[String],
|
|
81
73
|
request_options: Lithic::RequestOptions
|
|
82
74
|
}
|
|
83
75
|
|
|
84
|
-
type event_stream = :AUTHORIZATION | :THREE_DS_AUTHENTICATION
|
|
85
|
-
|
|
86
|
-
module EventStream
|
|
87
|
-
extend Lithic::Internal::Type::Enum
|
|
88
|
-
|
|
89
|
-
AUTHORIZATION: :AUTHORIZATION
|
|
90
|
-
THREE_DS_AUTHENTICATION: :THREE_DS_AUTHENTICATION
|
|
91
|
-
|
|
92
|
-
def self?.values: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::event_stream]
|
|
93
|
-
end
|
|
94
|
-
|
|
95
76
|
type parameters =
|
|
96
77
|
Lithic::AuthRules::ConditionalBlockParameters
|
|
97
78
|
| Lithic::AuthRules::VelocityLimitParams
|
|
98
79
|
| Lithic::AuthRules::MerchantLockParameters
|
|
99
80
|
| Lithic::AuthRules::Conditional3DSActionParameters
|
|
100
|
-
| Lithic::AuthRules::
|
|
81
|
+
| Lithic::AuthRules::ConditionalAuthorizationActionParameters
|
|
101
82
|
|
|
102
83
|
module Parameters
|
|
103
84
|
extend Lithic::Internal::Type::Union
|
|
104
85
|
|
|
105
|
-
type conditional_authorization_action_parameters =
|
|
106
|
-
{
|
|
107
|
-
action: Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::action,
|
|
108
|
-
conditions: ::Array[Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition]
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel
|
|
112
|
-
attr_accessor action: Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::action
|
|
113
|
-
|
|
114
|
-
attr_accessor conditions: ::Array[Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition]
|
|
115
|
-
|
|
116
|
-
def initialize: (
|
|
117
|
-
action: Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::action,
|
|
118
|
-
conditions: ::Array[Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition]
|
|
119
|
-
) -> void
|
|
120
|
-
|
|
121
|
-
def to_hash: -> {
|
|
122
|
-
action: Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::action,
|
|
123
|
-
conditions: ::Array[Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition]
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
type action = :DECLINE | :CHALLENGE
|
|
127
|
-
|
|
128
|
-
module Action
|
|
129
|
-
extend Lithic::Internal::Type::Enum
|
|
130
|
-
|
|
131
|
-
DECLINE: :DECLINE
|
|
132
|
-
CHALLENGE: :CHALLENGE
|
|
133
|
-
|
|
134
|
-
def self?.values: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::action]
|
|
135
|
-
end
|
|
136
|
-
|
|
137
|
-
type condition =
|
|
138
|
-
{
|
|
139
|
-
attribute: Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute,
|
|
140
|
-
operation: Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::operation,
|
|
141
|
-
value: Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::value
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
class Condition < Lithic::Internal::Type::BaseModel
|
|
145
|
-
attr_reader attribute: Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute?
|
|
146
|
-
|
|
147
|
-
def attribute=: (
|
|
148
|
-
Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute
|
|
149
|
-
) -> Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute
|
|
150
|
-
|
|
151
|
-
attr_reader operation: Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::operation?
|
|
152
|
-
|
|
153
|
-
def operation=: (
|
|
154
|
-
Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::operation
|
|
155
|
-
) -> Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::operation
|
|
156
|
-
|
|
157
|
-
attr_reader value: Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::value?
|
|
158
|
-
|
|
159
|
-
def value=: (
|
|
160
|
-
Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::value
|
|
161
|
-
) -> Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::value
|
|
162
|
-
|
|
163
|
-
def initialize: (
|
|
164
|
-
?attribute: Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute,
|
|
165
|
-
?operation: Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::operation,
|
|
166
|
-
?value: Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::value
|
|
167
|
-
) -> void
|
|
168
|
-
|
|
169
|
-
def to_hash: -> {
|
|
170
|
-
attribute: Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute,
|
|
171
|
-
operation: Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::operation,
|
|
172
|
-
value: Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::value
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
type attribute =
|
|
176
|
-
:MCC
|
|
177
|
-
| :COUNTRY
|
|
178
|
-
| :CURRENCY
|
|
179
|
-
| :MERCHANT_ID
|
|
180
|
-
| :DESCRIPTOR
|
|
181
|
-
| :LIABILITY_SHIFT
|
|
182
|
-
| :PAN_ENTRY_MODE
|
|
183
|
-
| :TRANSACTION_AMOUNT
|
|
184
|
-
| :CASH_AMOUNT
|
|
185
|
-
| :RISK_SCORE
|
|
186
|
-
| :CARD_TRANSACTION_COUNT_15M
|
|
187
|
-
| :CARD_TRANSACTION_COUNT_1H
|
|
188
|
-
| :CARD_TRANSACTION_COUNT_24H
|
|
189
|
-
| :CARD_STATE
|
|
190
|
-
| :PIN_ENTERED
|
|
191
|
-
| :PIN_STATUS
|
|
192
|
-
| :WALLET_TYPE
|
|
193
|
-
| :TRANSACTION_INITIATOR
|
|
194
|
-
| :ADDRESS_MATCH
|
|
195
|
-
|
|
196
|
-
module Attribute
|
|
197
|
-
extend Lithic::Internal::Type::Enum
|
|
198
|
-
|
|
199
|
-
MCC: :MCC
|
|
200
|
-
COUNTRY: :COUNTRY
|
|
201
|
-
CURRENCY: :CURRENCY
|
|
202
|
-
MERCHANT_ID: :MERCHANT_ID
|
|
203
|
-
DESCRIPTOR: :DESCRIPTOR
|
|
204
|
-
LIABILITY_SHIFT: :LIABILITY_SHIFT
|
|
205
|
-
PAN_ENTRY_MODE: :PAN_ENTRY_MODE
|
|
206
|
-
TRANSACTION_AMOUNT: :TRANSACTION_AMOUNT
|
|
207
|
-
CASH_AMOUNT: :CASH_AMOUNT
|
|
208
|
-
RISK_SCORE: :RISK_SCORE
|
|
209
|
-
CARD_TRANSACTION_COUNT_15_M: :CARD_TRANSACTION_COUNT_15M
|
|
210
|
-
CARD_TRANSACTION_COUNT_1_H: :CARD_TRANSACTION_COUNT_1H
|
|
211
|
-
CARD_TRANSACTION_COUNT_24_H: :CARD_TRANSACTION_COUNT_24H
|
|
212
|
-
CARD_STATE: :CARD_STATE
|
|
213
|
-
PIN_ENTERED: :PIN_ENTERED
|
|
214
|
-
PIN_STATUS: :PIN_STATUS
|
|
215
|
-
WALLET_TYPE: :WALLET_TYPE
|
|
216
|
-
TRANSACTION_INITIATOR: :TRANSACTION_INITIATOR
|
|
217
|
-
ADDRESS_MATCH: :ADDRESS_MATCH
|
|
218
|
-
|
|
219
|
-
def self?.values: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute]
|
|
220
|
-
end
|
|
221
|
-
|
|
222
|
-
type operation =
|
|
223
|
-
:IS_ONE_OF
|
|
224
|
-
| :IS_NOT_ONE_OF
|
|
225
|
-
| :MATCHES
|
|
226
|
-
| :DOES_NOT_MATCH
|
|
227
|
-
| :IS_EQUAL_TO
|
|
228
|
-
| :IS_NOT_EQUAL_TO
|
|
229
|
-
| :IS_GREATER_THAN
|
|
230
|
-
| :IS_GREATER_THAN_OR_EQUAL_TO
|
|
231
|
-
| :IS_LESS_THAN
|
|
232
|
-
| :IS_LESS_THAN_OR_EQUAL_TO
|
|
233
|
-
|
|
234
|
-
module Operation
|
|
235
|
-
extend Lithic::Internal::Type::Enum
|
|
236
|
-
|
|
237
|
-
IS_ONE_OF: :IS_ONE_OF
|
|
238
|
-
IS_NOT_ONE_OF: :IS_NOT_ONE_OF
|
|
239
|
-
MATCHES: :MATCHES
|
|
240
|
-
DOES_NOT_MATCH: :DOES_NOT_MATCH
|
|
241
|
-
IS_EQUAL_TO: :IS_EQUAL_TO
|
|
242
|
-
IS_NOT_EQUAL_TO: :IS_NOT_EQUAL_TO
|
|
243
|
-
IS_GREATER_THAN: :IS_GREATER_THAN
|
|
244
|
-
IS_GREATER_THAN_OR_EQUAL_TO: :IS_GREATER_THAN_OR_EQUAL_TO
|
|
245
|
-
IS_LESS_THAN: :IS_LESS_THAN
|
|
246
|
-
IS_LESS_THAN_OR_EQUAL_TO: :IS_LESS_THAN_OR_EQUAL_TO
|
|
247
|
-
|
|
248
|
-
def self?.values: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::operation]
|
|
249
|
-
end
|
|
250
|
-
|
|
251
|
-
type value = String | Integer | ::Array[String]
|
|
252
|
-
|
|
253
|
-
module Value
|
|
254
|
-
extend Lithic::Internal::Type::Union
|
|
255
|
-
|
|
256
|
-
def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::value]
|
|
257
|
-
|
|
258
|
-
StringArray: Lithic::Internal::Type::Converter
|
|
259
|
-
end
|
|
260
|
-
end
|
|
261
|
-
end
|
|
262
|
-
|
|
263
86
|
def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::parameters]
|
|
264
87
|
end
|
|
265
88
|
|
|
@@ -279,6 +102,17 @@ module Lithic
|
|
|
279
102
|
|
|
280
103
|
def self?.values: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::type_]
|
|
281
104
|
end
|
|
105
|
+
|
|
106
|
+
type event_stream = :AUTHORIZATION | :THREE_DS_AUTHENTICATION
|
|
107
|
+
|
|
108
|
+
module EventStream
|
|
109
|
+
extend Lithic::Internal::Type::Enum
|
|
110
|
+
|
|
111
|
+
AUTHORIZATION: :AUTHORIZATION
|
|
112
|
+
THREE_DS_AUTHENTICATION: :THREE_DS_AUTHENTICATION
|
|
113
|
+
|
|
114
|
+
def self?.values: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::event_stream]
|
|
115
|
+
end
|
|
282
116
|
end
|
|
283
117
|
end
|
|
284
118
|
end
|