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
|
@@ -3,208 +3,468 @@ module Lithic
|
|
|
3
3
|
type dispute =
|
|
4
4
|
{
|
|
5
5
|
token: String,
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
account_token: String,
|
|
7
|
+
card_token: String,
|
|
8
|
+
case_id: String?,
|
|
8
9
|
created: Time,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
resolution_date: Time?,
|
|
19
|
-
resolution_note: String?,
|
|
20
|
-
resolution_reason: Lithic::Models::Dispute::resolution_reason?,
|
|
21
|
-
status: Lithic::Models::Dispute::status,
|
|
22
|
-
transaction_token: String
|
|
10
|
+
currency: String,
|
|
11
|
+
disposition: Lithic::Models::Dispute::disposition?,
|
|
12
|
+
events: ::Array[Lithic::Dispute::Event],
|
|
13
|
+
liability_allocation: Lithic::Dispute::LiabilityAllocation,
|
|
14
|
+
merchant: Lithic::Dispute::Merchant,
|
|
15
|
+
network: Lithic::Models::Dispute::network,
|
|
16
|
+
status: Lithic::Models::Dispute::status?,
|
|
17
|
+
transaction_series: Lithic::Dispute::TransactionSeries?,
|
|
18
|
+
updated: Time
|
|
23
19
|
}
|
|
24
20
|
|
|
25
21
|
class Dispute < Lithic::Internal::Type::BaseModel
|
|
26
22
|
attr_accessor token: String
|
|
27
23
|
|
|
28
|
-
attr_accessor
|
|
24
|
+
attr_accessor account_token: String
|
|
29
25
|
|
|
30
|
-
attr_accessor
|
|
26
|
+
attr_accessor card_token: String
|
|
31
27
|
|
|
32
|
-
attr_accessor
|
|
33
|
-
|
|
34
|
-
attr_accessor customer_filed_date: Time?
|
|
35
|
-
|
|
36
|
-
attr_accessor customer_note: String?
|
|
28
|
+
attr_accessor case_id: String?
|
|
37
29
|
|
|
38
|
-
attr_accessor
|
|
39
|
-
|
|
40
|
-
attr_accessor network_filed_date: Time?
|
|
41
|
-
|
|
42
|
-
attr_accessor network_reason_code: String?
|
|
30
|
+
attr_accessor created: Time
|
|
43
31
|
|
|
44
|
-
attr_accessor
|
|
32
|
+
attr_accessor currency: String
|
|
45
33
|
|
|
46
|
-
attr_accessor
|
|
34
|
+
attr_accessor disposition: Lithic::Models::Dispute::disposition?
|
|
47
35
|
|
|
48
|
-
attr_accessor
|
|
36
|
+
attr_accessor events: ::Array[Lithic::Dispute::Event]
|
|
49
37
|
|
|
50
|
-
attr_accessor
|
|
38
|
+
attr_accessor liability_allocation: Lithic::Dispute::LiabilityAllocation
|
|
51
39
|
|
|
52
|
-
attr_accessor
|
|
40
|
+
attr_accessor merchant: Lithic::Dispute::Merchant
|
|
53
41
|
|
|
54
|
-
attr_accessor
|
|
42
|
+
attr_accessor network: Lithic::Models::Dispute::network
|
|
55
43
|
|
|
56
|
-
attr_accessor
|
|
44
|
+
attr_accessor status: Lithic::Models::Dispute::status?
|
|
57
45
|
|
|
58
|
-
attr_accessor
|
|
46
|
+
attr_accessor transaction_series: Lithic::Dispute::TransactionSeries?
|
|
59
47
|
|
|
60
|
-
attr_accessor
|
|
48
|
+
attr_accessor updated: Time
|
|
61
49
|
|
|
62
50
|
def initialize: (
|
|
63
51
|
token: String,
|
|
64
|
-
|
|
65
|
-
|
|
52
|
+
account_token: String,
|
|
53
|
+
card_token: String,
|
|
54
|
+
case_id: String?,
|
|
66
55
|
created: Time,
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
resolution_date: Time?,
|
|
77
|
-
resolution_note: String?,
|
|
78
|
-
resolution_reason: Lithic::Models::Dispute::resolution_reason?,
|
|
79
|
-
status: Lithic::Models::Dispute::status,
|
|
80
|
-
transaction_token: String
|
|
56
|
+
currency: String,
|
|
57
|
+
disposition: Lithic::Models::Dispute::disposition?,
|
|
58
|
+
events: ::Array[Lithic::Dispute::Event],
|
|
59
|
+
liability_allocation: Lithic::Dispute::LiabilityAllocation,
|
|
60
|
+
merchant: Lithic::Dispute::Merchant,
|
|
61
|
+
network: Lithic::Models::Dispute::network,
|
|
62
|
+
status: Lithic::Models::Dispute::status?,
|
|
63
|
+
transaction_series: Lithic::Dispute::TransactionSeries?,
|
|
64
|
+
updated: Time
|
|
81
65
|
) -> void
|
|
82
66
|
|
|
83
67
|
def to_hash: -> {
|
|
84
68
|
token: String,
|
|
85
|
-
|
|
86
|
-
|
|
69
|
+
account_token: String,
|
|
70
|
+
card_token: String,
|
|
71
|
+
case_id: String?,
|
|
87
72
|
created: Time,
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
resolution_date: Time?,
|
|
98
|
-
resolution_note: String?,
|
|
99
|
-
resolution_reason: Lithic::Models::Dispute::resolution_reason?,
|
|
100
|
-
status: Lithic::Models::Dispute::status,
|
|
101
|
-
transaction_token: String
|
|
73
|
+
currency: String,
|
|
74
|
+
disposition: Lithic::Models::Dispute::disposition?,
|
|
75
|
+
events: ::Array[Lithic::Dispute::Event],
|
|
76
|
+
liability_allocation: Lithic::Dispute::LiabilityAllocation,
|
|
77
|
+
merchant: Lithic::Dispute::Merchant,
|
|
78
|
+
network: Lithic::Models::Dispute::network,
|
|
79
|
+
status: Lithic::Models::Dispute::status?,
|
|
80
|
+
transaction_series: Lithic::Dispute::TransactionSeries?,
|
|
81
|
+
updated: Time
|
|
102
82
|
}
|
|
103
83
|
|
|
104
|
-
type
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
| :DUPLICATED
|
|
108
|
-
| :FRAUD_CARD_NOT_PRESENT
|
|
109
|
-
| :FRAUD_CARD_PRESENT
|
|
110
|
-
| :FRAUD_OTHER
|
|
111
|
-
| :GOODS_SERVICES_NOT_AS_DESCRIBED
|
|
112
|
-
| :GOODS_SERVICES_NOT_RECEIVED
|
|
113
|
-
| :INCORRECT_AMOUNT
|
|
114
|
-
| :MISSING_AUTH
|
|
115
|
-
| :OTHER
|
|
116
|
-
| :PROCESSING_ERROR
|
|
117
|
-
| :RECURRING_TRANSACTION_NOT_CANCELLED
|
|
118
|
-
| :REFUND_NOT_PROCESSED
|
|
119
|
-
|
|
120
|
-
module Reason
|
|
84
|
+
type disposition = :WON | :LOST | :PARTIALLY_WON | :WITHDRAWN | :DENIED
|
|
85
|
+
|
|
86
|
+
module Disposition
|
|
121
87
|
extend Lithic::Internal::Type::Enum
|
|
122
88
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
GOODS_SERVICES_NOT_RECEIVED: :GOODS_SERVICES_NOT_RECEIVED
|
|
131
|
-
INCORRECT_AMOUNT: :INCORRECT_AMOUNT
|
|
132
|
-
MISSING_AUTH: :MISSING_AUTH
|
|
133
|
-
OTHER: :OTHER
|
|
134
|
-
PROCESSING_ERROR: :PROCESSING_ERROR
|
|
135
|
-
RECURRING_TRANSACTION_NOT_CANCELLED: :RECURRING_TRANSACTION_NOT_CANCELLED
|
|
136
|
-
REFUND_NOT_PROCESSED: :REFUND_NOT_PROCESSED
|
|
137
|
-
|
|
138
|
-
def self?.values: -> ::Array[Lithic::Models::Dispute::reason]
|
|
89
|
+
WON: :WON
|
|
90
|
+
LOST: :LOST
|
|
91
|
+
PARTIALLY_WON: :PARTIALLY_WON
|
|
92
|
+
WITHDRAWN: :WITHDRAWN
|
|
93
|
+
DENIED: :DENIED
|
|
94
|
+
|
|
95
|
+
def self?.values: -> ::Array[Lithic::Models::Dispute::disposition]
|
|
139
96
|
end
|
|
140
97
|
|
|
141
|
-
type
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
98
|
+
type event =
|
|
99
|
+
{
|
|
100
|
+
token: String,
|
|
101
|
+
created: Time,
|
|
102
|
+
data: Lithic::Models::Dispute::Event::data,
|
|
103
|
+
type: Lithic::Models::Dispute::Event::type_
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
class Event < Lithic::Internal::Type::BaseModel
|
|
107
|
+
attr_accessor token: String
|
|
108
|
+
|
|
109
|
+
attr_accessor created: Time
|
|
110
|
+
|
|
111
|
+
attr_accessor data: Lithic::Models::Dispute::Event::data
|
|
112
|
+
|
|
113
|
+
attr_accessor type: Lithic::Models::Dispute::Event::type_
|
|
114
|
+
|
|
115
|
+
def initialize: (
|
|
116
|
+
token: String,
|
|
117
|
+
created: Time,
|
|
118
|
+
data: Lithic::Models::Dispute::Event::data,
|
|
119
|
+
type: Lithic::Models::Dispute::Event::type_
|
|
120
|
+
) -> void
|
|
121
|
+
|
|
122
|
+
def to_hash: -> {
|
|
123
|
+
token: String,
|
|
124
|
+
created: Time,
|
|
125
|
+
data: Lithic::Models::Dispute::Event::data,
|
|
126
|
+
type: Lithic::Models::Dispute::Event::type_
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
type data =
|
|
130
|
+
Lithic::Dispute::Event::Data::WorkflowEventData
|
|
131
|
+
| Lithic::Dispute::Event::Data::FinancialEventData
|
|
132
|
+
| Lithic::Dispute::Event::Data::CardholderLiabilityEventData
|
|
133
|
+
|
|
134
|
+
module Data
|
|
135
|
+
extend Lithic::Internal::Type::Union
|
|
136
|
+
|
|
137
|
+
type workflow_event_data =
|
|
138
|
+
{
|
|
139
|
+
action: Lithic::Models::Dispute::Event::Data::WorkflowEventData::action,
|
|
140
|
+
amount: Integer?,
|
|
141
|
+
disposition: Lithic::Models::Dispute::Event::Data::WorkflowEventData::disposition?,
|
|
142
|
+
reason: String?,
|
|
143
|
+
stage: Lithic::Models::Dispute::Event::Data::WorkflowEventData::stage
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
class WorkflowEventData < Lithic::Internal::Type::BaseModel
|
|
147
|
+
attr_accessor action: Lithic::Models::Dispute::Event::Data::WorkflowEventData::action
|
|
148
|
+
|
|
149
|
+
attr_accessor amount: Integer?
|
|
150
|
+
|
|
151
|
+
attr_accessor disposition: Lithic::Models::Dispute::Event::Data::WorkflowEventData::disposition?
|
|
152
|
+
|
|
153
|
+
attr_accessor reason: String?
|
|
154
|
+
|
|
155
|
+
attr_accessor stage: Lithic::Models::Dispute::Event::Data::WorkflowEventData::stage
|
|
156
|
+
|
|
157
|
+
def initialize: (
|
|
158
|
+
action: Lithic::Models::Dispute::Event::Data::WorkflowEventData::action,
|
|
159
|
+
amount: Integer?,
|
|
160
|
+
disposition: Lithic::Models::Dispute::Event::Data::WorkflowEventData::disposition?,
|
|
161
|
+
reason: String?,
|
|
162
|
+
stage: Lithic::Models::Dispute::Event::Data::WorkflowEventData::stage
|
|
163
|
+
) -> void
|
|
164
|
+
|
|
165
|
+
def to_hash: -> {
|
|
166
|
+
action: Lithic::Models::Dispute::Event::Data::WorkflowEventData::action,
|
|
167
|
+
amount: Integer?,
|
|
168
|
+
disposition: Lithic::Models::Dispute::Event::Data::WorkflowEventData::disposition?,
|
|
169
|
+
reason: String?,
|
|
170
|
+
stage: Lithic::Models::Dispute::Event::Data::WorkflowEventData::stage
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
type action = :OPENED | :CLOSED | :REOPENED
|
|
174
|
+
|
|
175
|
+
module Action
|
|
176
|
+
extend Lithic::Internal::Type::Enum
|
|
177
|
+
|
|
178
|
+
OPENED: :OPENED
|
|
179
|
+
CLOSED: :CLOSED
|
|
180
|
+
REOPENED: :REOPENED
|
|
181
|
+
|
|
182
|
+
def self?.values: -> ::Array[Lithic::Models::Dispute::Event::Data::WorkflowEventData::action]
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
type disposition =
|
|
186
|
+
:WON | :LOST | :PARTIALLY_WON | :WITHDRAWN | :DENIED
|
|
187
|
+
|
|
188
|
+
module Disposition
|
|
189
|
+
extend Lithic::Internal::Type::Enum
|
|
190
|
+
|
|
191
|
+
WON: :WON
|
|
192
|
+
LOST: :LOST
|
|
193
|
+
PARTIALLY_WON: :PARTIALLY_WON
|
|
194
|
+
WITHDRAWN: :WITHDRAWN
|
|
195
|
+
DENIED: :DENIED
|
|
196
|
+
|
|
197
|
+
def self?.values: -> ::Array[Lithic::Models::Dispute::Event::Data::WorkflowEventData::disposition]
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
type stage = :CLAIM
|
|
201
|
+
|
|
202
|
+
module Stage
|
|
203
|
+
extend Lithic::Internal::Type::Enum
|
|
204
|
+
|
|
205
|
+
CLAIM: :CLAIM
|
|
206
|
+
|
|
207
|
+
def self?.values: -> ::Array[Lithic::Models::Dispute::Event::Data::WorkflowEventData::stage]
|
|
208
|
+
end
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
type financial_event_data =
|
|
212
|
+
{
|
|
213
|
+
amount: Integer,
|
|
214
|
+
polarity: Lithic::Models::Dispute::Event::Data::FinancialEventData::polarity,
|
|
215
|
+
stage: Lithic::Models::Dispute::Event::Data::FinancialEventData::stage
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
class FinancialEventData < Lithic::Internal::Type::BaseModel
|
|
219
|
+
attr_accessor amount: Integer
|
|
220
|
+
|
|
221
|
+
attr_accessor polarity: Lithic::Models::Dispute::Event::Data::FinancialEventData::polarity
|
|
222
|
+
|
|
223
|
+
attr_accessor stage: Lithic::Models::Dispute::Event::Data::FinancialEventData::stage
|
|
224
|
+
|
|
225
|
+
def initialize: (
|
|
226
|
+
amount: Integer,
|
|
227
|
+
polarity: Lithic::Models::Dispute::Event::Data::FinancialEventData::polarity,
|
|
228
|
+
stage: Lithic::Models::Dispute::Event::Data::FinancialEventData::stage
|
|
229
|
+
) -> void
|
|
230
|
+
|
|
231
|
+
def to_hash: -> {
|
|
232
|
+
amount: Integer,
|
|
233
|
+
polarity: Lithic::Models::Dispute::Event::Data::FinancialEventData::polarity,
|
|
234
|
+
stage: Lithic::Models::Dispute::Event::Data::FinancialEventData::stage
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
type polarity = :CREDIT | :DEBIT
|
|
238
|
+
|
|
239
|
+
module Polarity
|
|
240
|
+
extend Lithic::Internal::Type::Enum
|
|
241
|
+
|
|
242
|
+
CREDIT: :CREDIT
|
|
243
|
+
DEBIT: :DEBIT
|
|
244
|
+
|
|
245
|
+
def self?.values: -> ::Array[Lithic::Models::Dispute::Event::Data::FinancialEventData::polarity]
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
type stage =
|
|
249
|
+
:CHARGEBACK
|
|
250
|
+
| :REPRESENTMENT
|
|
251
|
+
| :PREARBITRATION
|
|
252
|
+
| :ARBITRATION
|
|
253
|
+
| :COLLABORATION
|
|
254
|
+
|
|
255
|
+
module Stage
|
|
256
|
+
extend Lithic::Internal::Type::Enum
|
|
257
|
+
|
|
258
|
+
CHARGEBACK: :CHARGEBACK
|
|
259
|
+
REPRESENTMENT: :REPRESENTMENT
|
|
260
|
+
PREARBITRATION: :PREARBITRATION
|
|
261
|
+
ARBITRATION: :ARBITRATION
|
|
262
|
+
COLLABORATION: :COLLABORATION
|
|
263
|
+
|
|
264
|
+
def self?.values: -> ::Array[Lithic::Models::Dispute::Event::Data::FinancialEventData::stage]
|
|
265
|
+
end
|
|
266
|
+
end
|
|
267
|
+
|
|
268
|
+
type cardholder_liability_event_data =
|
|
269
|
+
{
|
|
270
|
+
action: Lithic::Models::Dispute::Event::Data::CardholderLiabilityEventData::action,
|
|
271
|
+
amount: Integer,
|
|
272
|
+
reason: String
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
class CardholderLiabilityEventData < Lithic::Internal::Type::BaseModel
|
|
276
|
+
attr_accessor action: Lithic::Models::Dispute::Event::Data::CardholderLiabilityEventData::action
|
|
277
|
+
|
|
278
|
+
attr_accessor amount: Integer
|
|
279
|
+
|
|
280
|
+
attr_accessor reason: String
|
|
281
|
+
|
|
282
|
+
def initialize: (
|
|
283
|
+
action: Lithic::Models::Dispute::Event::Data::CardholderLiabilityEventData::action,
|
|
284
|
+
amount: Integer,
|
|
285
|
+
reason: String
|
|
286
|
+
) -> void
|
|
287
|
+
|
|
288
|
+
def to_hash: -> {
|
|
289
|
+
action: Lithic::Models::Dispute::Event::Data::CardholderLiabilityEventData::action,
|
|
290
|
+
amount: Integer,
|
|
291
|
+
reason: String
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
type action =
|
|
295
|
+
:PROVISIONAL_CREDIT_GRANTED
|
|
296
|
+
| :PROVISIONAL_CREDIT_REVERSED
|
|
297
|
+
| :WRITTEN_OFF
|
|
298
|
+
|
|
299
|
+
module Action
|
|
300
|
+
extend Lithic::Internal::Type::Enum
|
|
301
|
+
|
|
302
|
+
PROVISIONAL_CREDIT_GRANTED: :PROVISIONAL_CREDIT_GRANTED
|
|
303
|
+
PROVISIONAL_CREDIT_REVERSED: :PROVISIONAL_CREDIT_REVERSED
|
|
304
|
+
WRITTEN_OFF: :WRITTEN_OFF
|
|
305
|
+
|
|
306
|
+
def self?.values: -> ::Array[Lithic::Models::Dispute::Event::Data::CardholderLiabilityEventData::action]
|
|
307
|
+
end
|
|
308
|
+
end
|
|
309
|
+
|
|
310
|
+
def self?.variants: -> ::Array[Lithic::Models::Dispute::Event::data]
|
|
311
|
+
end
|
|
312
|
+
|
|
313
|
+
type type_ = :WORKFLOW | :FINANCIAL | :CARDHOLDER_LIABILITY
|
|
314
|
+
|
|
315
|
+
module Type
|
|
316
|
+
extend Lithic::Internal::Type::Enum
|
|
317
|
+
|
|
318
|
+
WORKFLOW: :WORKFLOW
|
|
319
|
+
FINANCIAL: :FINANCIAL
|
|
320
|
+
CARDHOLDER_LIABILITY: :CARDHOLDER_LIABILITY
|
|
321
|
+
|
|
322
|
+
def self?.values: -> ::Array[Lithic::Models::Dispute::Event::type_]
|
|
323
|
+
end
|
|
324
|
+
end
|
|
325
|
+
|
|
326
|
+
type liability_allocation =
|
|
327
|
+
{
|
|
328
|
+
denied_amount: Integer,
|
|
329
|
+
original_amount: Integer,
|
|
330
|
+
recovered_amount: Integer,
|
|
331
|
+
remaining_amount: Integer,
|
|
332
|
+
written_off_amount: Integer
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
class LiabilityAllocation < Lithic::Internal::Type::BaseModel
|
|
336
|
+
attr_accessor denied_amount: Integer
|
|
337
|
+
|
|
338
|
+
attr_accessor original_amount: Integer
|
|
339
|
+
|
|
340
|
+
attr_accessor recovered_amount: Integer
|
|
341
|
+
|
|
342
|
+
attr_accessor remaining_amount: Integer
|
|
343
|
+
|
|
344
|
+
attr_accessor written_off_amount: Integer
|
|
345
|
+
|
|
346
|
+
def initialize: (
|
|
347
|
+
denied_amount: Integer,
|
|
348
|
+
original_amount: Integer,
|
|
349
|
+
recovered_amount: Integer,
|
|
350
|
+
remaining_amount: Integer,
|
|
351
|
+
written_off_amount: Integer
|
|
352
|
+
) -> void
|
|
353
|
+
|
|
354
|
+
def to_hash: -> {
|
|
355
|
+
denied_amount: Integer,
|
|
356
|
+
original_amount: Integer,
|
|
357
|
+
recovered_amount: Integer,
|
|
358
|
+
remaining_amount: Integer,
|
|
359
|
+
written_off_amount: Integer
|
|
360
|
+
}
|
|
361
|
+
end
|
|
362
|
+
|
|
363
|
+
type merchant =
|
|
364
|
+
{
|
|
365
|
+
acceptor_id: String,
|
|
366
|
+
acquiring_institution_id: String,
|
|
367
|
+
city: String,
|
|
368
|
+
country: String,
|
|
369
|
+
descriptor: String,
|
|
370
|
+
mcc: String,
|
|
371
|
+
state: String
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
class Merchant < Lithic::Internal::Type::BaseModel
|
|
375
|
+
attr_accessor acceptor_id: String
|
|
376
|
+
|
|
377
|
+
attr_accessor acquiring_institution_id: String
|
|
378
|
+
|
|
379
|
+
attr_accessor city: String
|
|
380
|
+
|
|
381
|
+
attr_accessor country: String
|
|
382
|
+
|
|
383
|
+
attr_accessor descriptor: String
|
|
384
|
+
|
|
385
|
+
attr_accessor mcc: String
|
|
386
|
+
|
|
387
|
+
attr_accessor state: String
|
|
388
|
+
|
|
389
|
+
def initialize: (
|
|
390
|
+
acceptor_id: String,
|
|
391
|
+
acquiring_institution_id: String,
|
|
392
|
+
city: String,
|
|
393
|
+
country: String,
|
|
394
|
+
descriptor: String,
|
|
395
|
+
mcc: String,
|
|
396
|
+
state: String
|
|
397
|
+
) -> void
|
|
398
|
+
|
|
399
|
+
def to_hash: -> {
|
|
400
|
+
acceptor_id: String,
|
|
401
|
+
acquiring_institution_id: String,
|
|
402
|
+
city: String,
|
|
403
|
+
country: String,
|
|
404
|
+
descriptor: String,
|
|
405
|
+
mcc: String,
|
|
406
|
+
state: String
|
|
407
|
+
}
|
|
408
|
+
end
|
|
409
|
+
|
|
410
|
+
type network = :VISA | :MASTERCARD
|
|
411
|
+
|
|
412
|
+
module Network
|
|
161
413
|
extend Lithic::Internal::Type::Enum
|
|
162
414
|
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
NO_DISPUTE_RIGHTS_3DS: :NO_DISPUTE_RIGHTS_3DS
|
|
166
|
-
NO_DISPUTE_RIGHTS_BELOW_THRESHOLD: :NO_DISPUTE_RIGHTS_BELOW_THRESHOLD
|
|
167
|
-
NO_DISPUTE_RIGHTS_CONTACTLESS: :NO_DISPUTE_RIGHTS_CONTACTLESS
|
|
168
|
-
NO_DISPUTE_RIGHTS_HYBRID: :NO_DISPUTE_RIGHTS_HYBRID
|
|
169
|
-
NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS: :NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS
|
|
170
|
-
NO_DISPUTE_RIGHTS_OTHER: :NO_DISPUTE_RIGHTS_OTHER
|
|
171
|
-
PAST_FILING_DATE: :PAST_FILING_DATE
|
|
172
|
-
PREARBITRATION_REJECTED: :PREARBITRATION_REJECTED
|
|
173
|
-
PROCESSOR_REJECTED_OTHER: :PROCESSOR_REJECTED_OTHER
|
|
174
|
-
REFUNDED: :REFUNDED
|
|
175
|
-
REFUNDED_AFTER_CHARGEBACK: :REFUNDED_AFTER_CHARGEBACK
|
|
176
|
-
WITHDRAWN: :WITHDRAWN
|
|
177
|
-
WON_ARBITRATION: :WON_ARBITRATION
|
|
178
|
-
WON_FIRST_CHARGEBACK: :WON_FIRST_CHARGEBACK
|
|
179
|
-
WON_PREARBITRATION: :WON_PREARBITRATION
|
|
415
|
+
VISA: :VISA
|
|
416
|
+
MASTERCARD: :MASTERCARD
|
|
180
417
|
|
|
181
|
-
def self?.values: -> ::Array[Lithic::Models::Dispute::
|
|
418
|
+
def self?.values: -> ::Array[Lithic::Models::Dispute::network]
|
|
182
419
|
end
|
|
183
420
|
|
|
184
|
-
type status =
|
|
185
|
-
:ARBITRATION
|
|
186
|
-
| :CASE_CLOSED
|
|
187
|
-
| :CASE_WON
|
|
188
|
-
| :NEW
|
|
189
|
-
| :PENDING_CUSTOMER
|
|
190
|
-
| :PREARBITRATION
|
|
191
|
-
| :REPRESENTMENT
|
|
192
|
-
| :SUBMITTED
|
|
421
|
+
type status = :OPEN | :CLOSED
|
|
193
422
|
|
|
194
423
|
module Status
|
|
195
424
|
extend Lithic::Internal::Type::Enum
|
|
196
425
|
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
CASE_WON: :CASE_WON
|
|
200
|
-
NEW: :NEW
|
|
201
|
-
PENDING_CUSTOMER: :PENDING_CUSTOMER
|
|
202
|
-
PREARBITRATION: :PREARBITRATION
|
|
203
|
-
REPRESENTMENT: :REPRESENTMENT
|
|
204
|
-
SUBMITTED: :SUBMITTED
|
|
426
|
+
OPEN: :OPEN
|
|
427
|
+
CLOSED: :CLOSED
|
|
205
428
|
|
|
206
429
|
def self?.values: -> ::Array[Lithic::Models::Dispute::status]
|
|
207
430
|
end
|
|
431
|
+
|
|
432
|
+
type transaction_series =
|
|
433
|
+
{
|
|
434
|
+
related_transaction_event_token: String?,
|
|
435
|
+
related_transaction_token: String,
|
|
436
|
+
type: Lithic::Models::Dispute::TransactionSeries::type_
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
class TransactionSeries < Lithic::Internal::Type::BaseModel
|
|
440
|
+
attr_accessor related_transaction_event_token: String?
|
|
441
|
+
|
|
442
|
+
attr_accessor related_transaction_token: String
|
|
443
|
+
|
|
444
|
+
attr_accessor type: Lithic::Models::Dispute::TransactionSeries::type_
|
|
445
|
+
|
|
446
|
+
def initialize: (
|
|
447
|
+
related_transaction_event_token: String?,
|
|
448
|
+
related_transaction_token: String,
|
|
449
|
+
type: Lithic::Models::Dispute::TransactionSeries::type_
|
|
450
|
+
) -> void
|
|
451
|
+
|
|
452
|
+
def to_hash: -> {
|
|
453
|
+
related_transaction_event_token: String?,
|
|
454
|
+
related_transaction_token: String,
|
|
455
|
+
type: Lithic::Models::Dispute::TransactionSeries::type_
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
type type_ = :DISPUTE
|
|
459
|
+
|
|
460
|
+
module Type
|
|
461
|
+
extend Lithic::Internal::Type::Enum
|
|
462
|
+
|
|
463
|
+
DISPUTE: :DISPUTE
|
|
464
|
+
|
|
465
|
+
def self?.values: -> ::Array[Lithic::Models::Dispute::TransactionSeries::type_]
|
|
466
|
+
end
|
|
467
|
+
end
|
|
208
468
|
end
|
|
209
469
|
end
|
|
210
470
|
end
|