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
|
@@ -62,66 +62,66 @@ module Lithic
|
|
|
62
62
|
# A customer identifier.
|
|
63
63
|
#
|
|
64
64
|
# @return [String, nil]
|
|
65
|
-
optional :customer_reference_number, String
|
|
65
|
+
optional :customer_reference_number, String, nil?: true
|
|
66
66
|
|
|
67
67
|
# @!attribute merchant_reference_number
|
|
68
68
|
# A merchant identifier.
|
|
69
69
|
#
|
|
70
70
|
# @return [String, nil]
|
|
71
|
-
optional :merchant_reference_number, String
|
|
71
|
+
optional :merchant_reference_number, String, nil?: true
|
|
72
72
|
|
|
73
73
|
# @!attribute order_date
|
|
74
74
|
# The date of the order.
|
|
75
75
|
#
|
|
76
76
|
# @return [Date, nil]
|
|
77
|
-
optional :order_date, Date
|
|
77
|
+
optional :order_date, Date, nil?: true
|
|
78
78
|
|
|
79
79
|
# @!method initialize(line_items:, tax:, customer_reference_number: nil, merchant_reference_number: nil, order_date: nil)
|
|
80
80
|
# @param line_items [Array<Lithic::Models::Transactions::Events::EnhancedData::Common::LineItem>]
|
|
81
81
|
#
|
|
82
82
|
# @param tax [Lithic::Models::Transactions::Events::EnhancedData::Common::Tax]
|
|
83
83
|
#
|
|
84
|
-
# @param customer_reference_number [String] A customer identifier.
|
|
84
|
+
# @param customer_reference_number [String, nil] A customer identifier.
|
|
85
85
|
#
|
|
86
|
-
# @param merchant_reference_number [String] A merchant identifier.
|
|
86
|
+
# @param merchant_reference_number [String, nil] A merchant identifier.
|
|
87
87
|
#
|
|
88
|
-
# @param order_date [Date] The date of the order.
|
|
88
|
+
# @param order_date [Date, nil] The date of the order.
|
|
89
89
|
|
|
90
90
|
class LineItem < Lithic::Internal::Type::BaseModel
|
|
91
91
|
# @!attribute amount
|
|
92
92
|
# The price of the item purchased in merchant currency.
|
|
93
93
|
#
|
|
94
94
|
# @return [String, nil]
|
|
95
|
-
optional :amount, String
|
|
95
|
+
optional :amount, String, nil?: true
|
|
96
96
|
|
|
97
97
|
# @!attribute description
|
|
98
98
|
# A human-readable description of the item.
|
|
99
99
|
#
|
|
100
100
|
# @return [String, nil]
|
|
101
|
-
optional :description, String
|
|
101
|
+
optional :description, String, nil?: true
|
|
102
102
|
|
|
103
103
|
# @!attribute product_code
|
|
104
104
|
# An identifier for the item purchased.
|
|
105
105
|
#
|
|
106
106
|
# @return [String, nil]
|
|
107
|
-
optional :product_code, String
|
|
107
|
+
optional :product_code, String, nil?: true
|
|
108
108
|
|
|
109
109
|
# @!attribute quantity
|
|
110
110
|
# The quantity of the item purchased.
|
|
111
111
|
#
|
|
112
112
|
# @return [String, nil]
|
|
113
|
-
optional :quantity, String
|
|
113
|
+
optional :quantity, String, nil?: true
|
|
114
114
|
|
|
115
115
|
# @!method initialize(amount: nil, description: nil, product_code: nil, quantity: nil)
|
|
116
116
|
# An L2/L3 enhanced commercial data line item.
|
|
117
117
|
#
|
|
118
|
-
# @param amount [String] The price of the item purchased in merchant currency.
|
|
118
|
+
# @param amount [String, nil] The price of the item purchased in merchant currency.
|
|
119
119
|
#
|
|
120
|
-
# @param description [String] A human-readable description of the item.
|
|
120
|
+
# @param description [String, nil] A human-readable description of the item.
|
|
121
121
|
#
|
|
122
|
-
# @param product_code [String] An identifier for the item purchased.
|
|
122
|
+
# @param product_code [String, nil] An identifier for the item purchased.
|
|
123
123
|
#
|
|
124
|
-
# @param quantity [String] The quantity of the item purchased.
|
|
124
|
+
# @param quantity [String, nil] The quantity of the item purchased.
|
|
125
125
|
end
|
|
126
126
|
|
|
127
127
|
# @see Lithic::Models::Transactions::Events::EnhancedData::Common#tax
|
|
@@ -130,26 +130,30 @@ module Lithic
|
|
|
130
130
|
# The amount of tax collected.
|
|
131
131
|
#
|
|
132
132
|
# @return [Integer, nil]
|
|
133
|
-
optional :amount, Integer
|
|
133
|
+
optional :amount, Integer, nil?: true
|
|
134
134
|
|
|
135
135
|
# @!attribute exempt
|
|
136
136
|
# A flag indicating whether the transaction is tax exempt or not.
|
|
137
137
|
#
|
|
138
138
|
# @return [Symbol, Lithic::Models::Transactions::Events::EnhancedData::Common::Tax::Exempt, nil]
|
|
139
|
-
optional :exempt,
|
|
139
|
+
optional :exempt,
|
|
140
|
+
enum: -> {
|
|
141
|
+
Lithic::Transactions::Events::EnhancedData::Common::Tax::Exempt
|
|
142
|
+
},
|
|
143
|
+
nil?: true
|
|
140
144
|
|
|
141
145
|
# @!attribute merchant_tax_id
|
|
142
146
|
# The tax ID of the merchant.
|
|
143
147
|
#
|
|
144
148
|
# @return [String, nil]
|
|
145
|
-
optional :merchant_tax_id, String
|
|
149
|
+
optional :merchant_tax_id, String, nil?: true
|
|
146
150
|
|
|
147
151
|
# @!method initialize(amount: nil, exempt: nil, merchant_tax_id: nil)
|
|
148
|
-
# @param amount [Integer] The amount of tax collected.
|
|
152
|
+
# @param amount [Integer, nil] The amount of tax collected.
|
|
149
153
|
#
|
|
150
|
-
# @param exempt [Symbol, Lithic::Models::Transactions::Events::EnhancedData::Common::Tax::Exempt] A flag indicating whether the transaction is tax exempt or not.
|
|
154
|
+
# @param exempt [Symbol, Lithic::Models::Transactions::Events::EnhancedData::Common::Tax::Exempt, nil] A flag indicating whether the transaction is tax exempt or not.
|
|
151
155
|
#
|
|
152
|
-
# @param merchant_tax_id [String] The tax ID of the merchant.
|
|
156
|
+
# @param merchant_tax_id [String, nil] The tax ID of the merchant.
|
|
153
157
|
|
|
154
158
|
# A flag indicating whether the transaction is tax exempt or not.
|
|
155
159
|
#
|
|
@@ -183,13 +187,13 @@ module Lithic
|
|
|
183
187
|
# zeros stripped.
|
|
184
188
|
#
|
|
185
189
|
# @return [String, nil]
|
|
186
|
-
optional :driver_number, String
|
|
190
|
+
optional :driver_number, String, nil?: true
|
|
187
191
|
|
|
188
192
|
# @!attribute odometer
|
|
189
193
|
# The odometer reading entered into the terminal at the time of sale.
|
|
190
194
|
#
|
|
191
195
|
# @return [Integer, nil]
|
|
192
|
-
optional :odometer, Integer
|
|
196
|
+
optional :odometer, Integer, nil?: true
|
|
193
197
|
|
|
194
198
|
# @!attribute service_type
|
|
195
199
|
# The type of fuel service.
|
|
@@ -202,7 +206,7 @@ module Lithic
|
|
|
202
206
|
# zeros stripped.
|
|
203
207
|
#
|
|
204
208
|
# @return [String, nil]
|
|
205
|
-
optional :vehicle_number, String
|
|
209
|
+
optional :vehicle_number, String, nil?: true
|
|
206
210
|
|
|
207
211
|
# @!method initialize(amount_totals:, fuel:, driver_number: nil, odometer: nil, service_type: nil, vehicle_number: nil)
|
|
208
212
|
# Some parameter documentations has been truncated, see
|
|
@@ -212,13 +216,13 @@ module Lithic
|
|
|
212
216
|
#
|
|
213
217
|
# @param fuel [Lithic::Models::Transactions::Events::EnhancedData::Fleet::Fuel]
|
|
214
218
|
#
|
|
215
|
-
# @param driver_number [String] The driver number entered into the terminal at the time of sale, with leading ze
|
|
219
|
+
# @param driver_number [String, nil] The driver number entered into the terminal at the time of sale, with leading ze
|
|
216
220
|
#
|
|
217
|
-
# @param odometer [Integer] The odometer reading entered into the terminal at the time of sale.
|
|
221
|
+
# @param odometer [Integer, nil] The odometer reading entered into the terminal at the time of sale.
|
|
218
222
|
#
|
|
219
223
|
# @param service_type [Symbol, Lithic::Models::Transactions::Events::EnhancedData::Fleet::ServiceType] The type of fuel service.
|
|
220
224
|
#
|
|
221
|
-
# @param vehicle_number [String] The vehicle number entered into the terminal at the time of sale, with leading z
|
|
225
|
+
# @param vehicle_number [String, nil] The vehicle number entered into the terminal at the time of sale, with leading z
|
|
222
226
|
|
|
223
227
|
# @see Lithic::Models::Transactions::Events::EnhancedData::Fleet#amount_totals
|
|
224
228
|
class AmountTotals < Lithic::Internal::Type::BaseModel
|
|
@@ -226,26 +230,26 @@ module Lithic
|
|
|
226
230
|
# The discount applied to the gross sale amount.
|
|
227
231
|
#
|
|
228
232
|
# @return [Integer, nil]
|
|
229
|
-
optional :discount, Integer
|
|
233
|
+
optional :discount, Integer, nil?: true
|
|
230
234
|
|
|
231
235
|
# @!attribute gross_sale
|
|
232
236
|
# The gross sale amount.
|
|
233
237
|
#
|
|
234
238
|
# @return [Integer, nil]
|
|
235
|
-
optional :gross_sale, Integer
|
|
239
|
+
optional :gross_sale, Integer, nil?: true
|
|
236
240
|
|
|
237
241
|
# @!attribute net_sale
|
|
238
242
|
# The amount after discount.
|
|
239
243
|
#
|
|
240
244
|
# @return [Integer, nil]
|
|
241
|
-
optional :net_sale, Integer
|
|
245
|
+
optional :net_sale, Integer, nil?: true
|
|
242
246
|
|
|
243
247
|
# @!method initialize(discount: nil, gross_sale: nil, net_sale: nil)
|
|
244
|
-
# @param discount [Integer] The discount applied to the gross sale amount.
|
|
248
|
+
# @param discount [Integer, nil] The discount applied to the gross sale amount.
|
|
245
249
|
#
|
|
246
|
-
# @param gross_sale [Integer] The gross sale amount.
|
|
250
|
+
# @param gross_sale [Integer, nil] The gross sale amount.
|
|
247
251
|
#
|
|
248
|
-
# @param net_sale [Integer] The amount after discount.
|
|
252
|
+
# @param net_sale [Integer, nil] The amount after discount.
|
|
249
253
|
end
|
|
250
254
|
|
|
251
255
|
# @see Lithic::Models::Transactions::Events::EnhancedData::Fleet#fuel
|
|
@@ -254,35 +258,40 @@ module Lithic
|
|
|
254
258
|
# The quantity of fuel purchased.
|
|
255
259
|
#
|
|
256
260
|
# @return [String, nil]
|
|
257
|
-
optional :quantity, String
|
|
261
|
+
optional :quantity, String, nil?: true
|
|
258
262
|
|
|
259
263
|
# @!attribute type
|
|
260
264
|
# The type of fuel purchased.
|
|
261
265
|
#
|
|
262
266
|
# @return [Symbol, Lithic::Models::Transactions::Events::EnhancedData::Fleet::Fuel::Type, nil]
|
|
263
|
-
optional :type,
|
|
267
|
+
optional :type,
|
|
268
|
+
enum: -> {
|
|
269
|
+
Lithic::Transactions::Events::EnhancedData::Fleet::Fuel::Type
|
|
270
|
+
},
|
|
271
|
+
nil?: true
|
|
264
272
|
|
|
265
273
|
# @!attribute unit_of_measure
|
|
266
274
|
# Unit of measure for fuel disbursement.
|
|
267
275
|
#
|
|
268
276
|
# @return [Symbol, Lithic::Models::Transactions::Events::EnhancedData::Fleet::Fuel::UnitOfMeasure, nil]
|
|
269
277
|
optional :unit_of_measure,
|
|
270
|
-
enum: -> { Lithic::Transactions::Events::EnhancedData::Fleet::Fuel::UnitOfMeasure }
|
|
278
|
+
enum: -> { Lithic::Transactions::Events::EnhancedData::Fleet::Fuel::UnitOfMeasure },
|
|
279
|
+
nil?: true
|
|
271
280
|
|
|
272
281
|
# @!attribute unit_price
|
|
273
282
|
# The price per unit of fuel.
|
|
274
283
|
#
|
|
275
284
|
# @return [Integer, nil]
|
|
276
|
-
optional :unit_price, Integer
|
|
285
|
+
optional :unit_price, Integer, nil?: true
|
|
277
286
|
|
|
278
287
|
# @!method initialize(quantity: nil, type: nil, unit_of_measure: nil, unit_price: nil)
|
|
279
|
-
# @param quantity [String] The quantity of fuel purchased.
|
|
288
|
+
# @param quantity [String, nil] The quantity of fuel purchased.
|
|
280
289
|
#
|
|
281
|
-
# @param type [Symbol, Lithic::Models::Transactions::Events::EnhancedData::Fleet::Fuel::Type] The type of fuel purchased.
|
|
290
|
+
# @param type [Symbol, Lithic::Models::Transactions::Events::EnhancedData::Fleet::Fuel::Type, nil] The type of fuel purchased.
|
|
282
291
|
#
|
|
283
|
-
# @param unit_of_measure [Symbol, Lithic::Models::Transactions::Events::EnhancedData::Fleet::Fuel::UnitOfMeasure] Unit of measure for fuel disbursement.
|
|
292
|
+
# @param unit_of_measure [Symbol, Lithic::Models::Transactions::Events::EnhancedData::Fleet::Fuel::UnitOfMeasure, nil] Unit of measure for fuel disbursement.
|
|
284
293
|
#
|
|
285
|
-
# @param unit_price [Integer] The price per unit of fuel.
|
|
294
|
+
# @param unit_price [Integer, nil] The price per unit of fuel.
|
|
286
295
|
|
|
287
296
|
# The type of fuel purchased.
|
|
288
297
|
#
|
|
@@ -42,8 +42,8 @@ module Lithic
|
|
|
42
42
|
# @!attribute events
|
|
43
43
|
# A list of all financial events that have modified this trasnfer.
|
|
44
44
|
#
|
|
45
|
-
# @return [Array<Lithic::Models::
|
|
46
|
-
optional :events, -> { Lithic::Internal::Type::ArrayOf[Lithic::
|
|
45
|
+
# @return [Array<Lithic::Models::FinancialEvent>, nil]
|
|
46
|
+
optional :events, -> { Lithic::Internal::Type::ArrayOf[Lithic::FinancialEvent] }
|
|
47
47
|
|
|
48
48
|
# @!attribute from_balance
|
|
49
49
|
# The updated balance of the sending financial account.
|
|
@@ -111,7 +111,7 @@ module Lithic
|
|
|
111
111
|
#
|
|
112
112
|
# @param descriptor [String] A string that provides a description of the transfer; may be useful to display t
|
|
113
113
|
#
|
|
114
|
-
# @param events [Array<Lithic::Models::
|
|
114
|
+
# @param events [Array<Lithic::Models::FinancialEvent>] A list of all financial events that have modified this trasnfer.
|
|
115
115
|
#
|
|
116
116
|
# @param from_balance [Array<Lithic::Models::Balance>] The updated balance of the sending financial account.
|
|
117
117
|
#
|
|
@@ -142,149 +142,6 @@ module Lithic
|
|
|
142
142
|
# @return [Array<Symbol>]
|
|
143
143
|
end
|
|
144
144
|
|
|
145
|
-
class Event < Lithic::Internal::Type::BaseModel
|
|
146
|
-
# @!attribute token
|
|
147
|
-
# Globally unique identifier.
|
|
148
|
-
#
|
|
149
|
-
# @return [String, nil]
|
|
150
|
-
optional :token, String
|
|
151
|
-
|
|
152
|
-
# @!attribute amount
|
|
153
|
-
# Amount of the financial event that has been settled in the currency's smallest
|
|
154
|
-
# unit (e.g., cents).
|
|
155
|
-
#
|
|
156
|
-
# @return [Integer, nil]
|
|
157
|
-
optional :amount, Integer
|
|
158
|
-
|
|
159
|
-
# @!attribute created
|
|
160
|
-
# Date and time when the financial event occurred. UTC time zone.
|
|
161
|
-
#
|
|
162
|
-
# @return [Time, nil]
|
|
163
|
-
optional :created, Time
|
|
164
|
-
|
|
165
|
-
# @!attribute result
|
|
166
|
-
# APPROVED financial events were successful while DECLINED financial events were
|
|
167
|
-
# declined by user, Lithic, or the network.
|
|
168
|
-
#
|
|
169
|
-
# @return [Symbol, Lithic::Models::Transfer::Event::Result, nil]
|
|
170
|
-
optional :result, enum: -> { Lithic::Transfer::Event::Result }
|
|
171
|
-
|
|
172
|
-
# @!attribute type
|
|
173
|
-
#
|
|
174
|
-
# @return [Symbol, Lithic::Models::Transfer::Event::Type, nil]
|
|
175
|
-
optional :type, enum: -> { Lithic::Transfer::Event::Type }
|
|
176
|
-
|
|
177
|
-
# @!method initialize(token: nil, amount: nil, created: nil, result: nil, type: nil)
|
|
178
|
-
# Some parameter documentations has been truncated, see
|
|
179
|
-
# {Lithic::Models::Transfer::Event} for more details.
|
|
180
|
-
#
|
|
181
|
-
# Financial Event
|
|
182
|
-
#
|
|
183
|
-
# @param token [String] Globally unique identifier.
|
|
184
|
-
#
|
|
185
|
-
# @param amount [Integer] Amount of the financial event that has been settled in the currency's smallest u
|
|
186
|
-
#
|
|
187
|
-
# @param created [Time] Date and time when the financial event occurred. UTC time zone.
|
|
188
|
-
#
|
|
189
|
-
# @param result [Symbol, Lithic::Models::Transfer::Event::Result] APPROVED financial events were successful while DECLINED financial events were d
|
|
190
|
-
#
|
|
191
|
-
# @param type [Symbol, Lithic::Models::Transfer::Event::Type]
|
|
192
|
-
|
|
193
|
-
# APPROVED financial events were successful while DECLINED financial events were
|
|
194
|
-
# declined by user, Lithic, or the network.
|
|
195
|
-
#
|
|
196
|
-
# @see Lithic::Models::Transfer::Event#result
|
|
197
|
-
module Result
|
|
198
|
-
extend Lithic::Internal::Type::Enum
|
|
199
|
-
|
|
200
|
-
APPROVED = :APPROVED
|
|
201
|
-
DECLINED = :DECLINED
|
|
202
|
-
|
|
203
|
-
# @!method self.values
|
|
204
|
-
# @return [Array<Symbol>]
|
|
205
|
-
end
|
|
206
|
-
|
|
207
|
-
# @see Lithic::Models::Transfer::Event#type
|
|
208
|
-
module Type
|
|
209
|
-
extend Lithic::Internal::Type::Enum
|
|
210
|
-
|
|
211
|
-
ACH_ORIGINATION_CANCELLED = :ACH_ORIGINATION_CANCELLED
|
|
212
|
-
ACH_ORIGINATION_INITIATED = :ACH_ORIGINATION_INITIATED
|
|
213
|
-
ACH_ORIGINATION_PROCESSED = :ACH_ORIGINATION_PROCESSED
|
|
214
|
-
ACH_ORIGINATION_RELEASED = :ACH_ORIGINATION_RELEASED
|
|
215
|
-
ACH_ORIGINATION_REJECTED = :ACH_ORIGINATION_REJECTED
|
|
216
|
-
ACH_ORIGINATION_REVIEWED = :ACH_ORIGINATION_REVIEWED
|
|
217
|
-
ACH_ORIGINATION_SETTLED = :ACH_ORIGINATION_SETTLED
|
|
218
|
-
ACH_RECEIPT_PROCESSED = :ACH_RECEIPT_PROCESSED
|
|
219
|
-
ACH_RECEIPT_RELEASED = :ACH_RECEIPT_RELEASED
|
|
220
|
-
ACH_RECEIPT_SETTLED = :ACH_RECEIPT_SETTLED
|
|
221
|
-
ACH_RETURN_INITIATED = :ACH_RETURN_INITIATED
|
|
222
|
-
ACH_RETURN_PROCESSED = :ACH_RETURN_PROCESSED
|
|
223
|
-
ACH_RETURN_REJECTED = :ACH_RETURN_REJECTED
|
|
224
|
-
ACH_RETURN_SETTLED = :ACH_RETURN_SETTLED
|
|
225
|
-
AUTHORIZATION = :AUTHORIZATION
|
|
226
|
-
AUTHORIZATION_ADVICE = :AUTHORIZATION_ADVICE
|
|
227
|
-
AUTHORIZATION_EXPIRY = :AUTHORIZATION_EXPIRY
|
|
228
|
-
AUTHORIZATION_REVERSAL = :AUTHORIZATION_REVERSAL
|
|
229
|
-
BALANCE_INQUIRY = :BALANCE_INQUIRY
|
|
230
|
-
BILLING_ERROR = :BILLING_ERROR
|
|
231
|
-
BILLING_ERROR_REVERSAL = :BILLING_ERROR_REVERSAL
|
|
232
|
-
CARD_TO_CARD = :CARD_TO_CARD
|
|
233
|
-
CASH_BACK = :CASH_BACK
|
|
234
|
-
CASH_BACK_REVERSAL = :CASH_BACK_REVERSAL
|
|
235
|
-
CLEARING = :CLEARING
|
|
236
|
-
COLLECTION = :COLLECTION
|
|
237
|
-
CORRECTION_CREDIT = :CORRECTION_CREDIT
|
|
238
|
-
CORRECTION_DEBIT = :CORRECTION_DEBIT
|
|
239
|
-
CREDIT_AUTHORIZATION = :CREDIT_AUTHORIZATION
|
|
240
|
-
CREDIT_AUTHORIZATION_ADVICE = :CREDIT_AUTHORIZATION_ADVICE
|
|
241
|
-
CURRENCY_CONVERSION = :CURRENCY_CONVERSION
|
|
242
|
-
CURRENCY_CONVERSION_REVERSAL = :CURRENCY_CONVERSION_REVERSAL
|
|
243
|
-
DISPUTE_WON = :DISPUTE_WON
|
|
244
|
-
EXTERNAL_ACH_CANCELED = :EXTERNAL_ACH_CANCELED
|
|
245
|
-
EXTERNAL_ACH_INITIATED = :EXTERNAL_ACH_INITIATED
|
|
246
|
-
EXTERNAL_ACH_RELEASED = :EXTERNAL_ACH_RELEASED
|
|
247
|
-
EXTERNAL_ACH_REVERSED = :EXTERNAL_ACH_REVERSED
|
|
248
|
-
EXTERNAL_ACH_SETTLED = :EXTERNAL_ACH_SETTLED
|
|
249
|
-
EXTERNAL_CHECK_CANCELED = :EXTERNAL_CHECK_CANCELED
|
|
250
|
-
EXTERNAL_CHECK_INITIATED = :EXTERNAL_CHECK_INITIATED
|
|
251
|
-
EXTERNAL_CHECK_RELEASED = :EXTERNAL_CHECK_RELEASED
|
|
252
|
-
EXTERNAL_CHECK_REVERSED = :EXTERNAL_CHECK_REVERSED
|
|
253
|
-
EXTERNAL_CHECK_SETTLED = :EXTERNAL_CHECK_SETTLED
|
|
254
|
-
EXTERNAL_TRANSFER_CANCELED = :EXTERNAL_TRANSFER_CANCELED
|
|
255
|
-
EXTERNAL_TRANSFER_INITIATED = :EXTERNAL_TRANSFER_INITIATED
|
|
256
|
-
EXTERNAL_TRANSFER_RELEASED = :EXTERNAL_TRANSFER_RELEASED
|
|
257
|
-
EXTERNAL_TRANSFER_REVERSED = :EXTERNAL_TRANSFER_REVERSED
|
|
258
|
-
EXTERNAL_TRANSFER_SETTLED = :EXTERNAL_TRANSFER_SETTLED
|
|
259
|
-
EXTERNAL_WIRE_CANCELED = :EXTERNAL_WIRE_CANCELED
|
|
260
|
-
EXTERNAL_WIRE_INITIATED = :EXTERNAL_WIRE_INITIATED
|
|
261
|
-
EXTERNAL_WIRE_RELEASED = :EXTERNAL_WIRE_RELEASED
|
|
262
|
-
EXTERNAL_WIRE_REVERSED = :EXTERNAL_WIRE_REVERSED
|
|
263
|
-
EXTERNAL_WIRE_SETTLED = :EXTERNAL_WIRE_SETTLED
|
|
264
|
-
FINANCIAL_AUTHORIZATION = :FINANCIAL_AUTHORIZATION
|
|
265
|
-
FINANCIAL_CREDIT_AUTHORIZATION = :FINANCIAL_CREDIT_AUTHORIZATION
|
|
266
|
-
INTEREST = :INTEREST
|
|
267
|
-
INTEREST_REVERSAL = :INTEREST_REVERSAL
|
|
268
|
-
INTERNAL_ADJUSTMENT = :INTERNAL_ADJUSTMENT
|
|
269
|
-
LATE_PAYMENT = :LATE_PAYMENT
|
|
270
|
-
LATE_PAYMENT_REVERSAL = :LATE_PAYMENT_REVERSAL
|
|
271
|
-
LOSS_WRITE_OFF = :LOSS_WRITE_OFF
|
|
272
|
-
PROVISIONAL_CREDIT = :PROVISIONAL_CREDIT
|
|
273
|
-
PROVISIONAL_CREDIT_REVERSAL = :PROVISIONAL_CREDIT_REVERSAL
|
|
274
|
-
SERVICE = :SERVICE
|
|
275
|
-
RETURN = :RETURN
|
|
276
|
-
RETURN_REVERSAL = :RETURN_REVERSAL
|
|
277
|
-
TRANSFER = :TRANSFER
|
|
278
|
-
TRANSFER_INSUFFICIENT_FUNDS = :TRANSFER_INSUFFICIENT_FUNDS
|
|
279
|
-
RETURNED_PAYMENT = :RETURNED_PAYMENT
|
|
280
|
-
RETURNED_PAYMENT_REVERSAL = :RETURNED_PAYMENT_REVERSAL
|
|
281
|
-
LITHIC_NETWORK_PAYMENT = :LITHIC_NETWORK_PAYMENT
|
|
282
|
-
|
|
283
|
-
# @!method self.values
|
|
284
|
-
# @return [Array<Symbol>]
|
|
285
|
-
end
|
|
286
|
-
end
|
|
287
|
-
|
|
288
145
|
# APPROVED transactions were successful while DECLINED transactions were declined
|
|
289
146
|
# by user, Lithic, or the network.
|
|
290
147
|
#
|
data/lib/lithic/models.rb
CHANGED
|
@@ -148,6 +148,8 @@ module Lithic
|
|
|
148
148
|
|
|
149
149
|
Carrier = Lithic::Models::Carrier
|
|
150
150
|
|
|
151
|
+
CategoryDetails = Lithic::Models::CategoryDetails
|
|
152
|
+
|
|
151
153
|
ClientAPIStatusParams = Lithic::Models::ClientAPIStatusParams
|
|
152
154
|
|
|
153
155
|
CreditProducts = Lithic::Models::CreditProducts
|
|
@@ -180,8 +182,14 @@ module Lithic
|
|
|
180
182
|
|
|
181
183
|
DisputeRetrieveParams = Lithic::Models::DisputeRetrieveParams
|
|
182
184
|
|
|
185
|
+
DisputesV2ListParams = Lithic::Models::DisputesV2ListParams
|
|
186
|
+
|
|
187
|
+
DisputesV2RetrieveParams = Lithic::Models::DisputesV2RetrieveParams
|
|
188
|
+
|
|
183
189
|
DisputeUpdateParams = Lithic::Models::DisputeUpdateParams
|
|
184
190
|
|
|
191
|
+
DisputeV2 = Lithic::Models::DisputeV2
|
|
192
|
+
|
|
185
193
|
Document = Lithic::Models::Document
|
|
186
194
|
|
|
187
195
|
Event = Lithic::Models::Event
|
|
@@ -210,6 +218,8 @@ module Lithic
|
|
|
210
218
|
|
|
211
219
|
ExternalBankAccounts = Lithic::Models::ExternalBankAccounts
|
|
212
220
|
|
|
221
|
+
ExternalBankAccountUnpauseParams = Lithic::Models::ExternalBankAccountUnpauseParams
|
|
222
|
+
|
|
213
223
|
ExternalBankAccountUpdateParams = Lithic::Models::ExternalBankAccountUpdateParams
|
|
214
224
|
|
|
215
225
|
ExternalPayment = Lithic::Models::ExternalPayment
|
|
@@ -248,6 +258,8 @@ module Lithic
|
|
|
248
258
|
|
|
249
259
|
FinancialAccountUpdateStatusParams = Lithic::Models::FinancialAccountUpdateStatusParams
|
|
250
260
|
|
|
261
|
+
FinancialEvent = Lithic::Models::FinancialEvent
|
|
262
|
+
|
|
251
263
|
FinancialTransaction = Lithic::Models::FinancialTransaction
|
|
252
264
|
|
|
253
265
|
Fraud = Lithic::Models::Fraud
|
|
@@ -278,6 +290,8 @@ module Lithic
|
|
|
278
290
|
|
|
279
291
|
ManagementOperationTransaction = Lithic::Models::ManagementOperationTransaction
|
|
280
292
|
|
|
293
|
+
Merchant = Lithic::Models::Merchant
|
|
294
|
+
|
|
281
295
|
MessageAttempt = Lithic::Models::MessageAttempt
|
|
282
296
|
|
|
283
297
|
NetworkProgram = Lithic::Models::NetworkProgram
|
|
@@ -300,6 +314,8 @@ module Lithic
|
|
|
300
314
|
|
|
301
315
|
PaymentRetryParams = Lithic::Models::PaymentRetryParams
|
|
302
316
|
|
|
317
|
+
PaymentReturnParams = Lithic::Models::PaymentReturnParams
|
|
318
|
+
|
|
303
319
|
PaymentSimulateActionParams = Lithic::Models::PaymentSimulateActionParams
|
|
304
320
|
|
|
305
321
|
PaymentSimulateReceiptParams = Lithic::Models::PaymentSimulateReceiptParams
|
|
@@ -332,6 +348,8 @@ module Lithic
|
|
|
332
348
|
|
|
333
349
|
SpendLimitDuration = Lithic::Models::SpendLimitDuration
|
|
334
350
|
|
|
351
|
+
StatementTotals = Lithic::Models::StatementTotals
|
|
352
|
+
|
|
335
353
|
ThreeDS = Lithic::Models::ThreeDS
|
|
336
354
|
|
|
337
355
|
Tokenization = Lithic::Models::Tokenization
|
|
@@ -14,7 +14,7 @@ module Lithic
|
|
|
14
14
|
#
|
|
15
15
|
# @overload create(parameters:, type:, card_tokens:, program_level:, account_tokens: nil, business_account_tokens: nil, event_stream: nil, name: nil, excluded_card_tokens: nil, request_options: {})
|
|
16
16
|
#
|
|
17
|
-
# @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters] Parameters for the Auth Rule
|
|
17
|
+
# @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters] Parameters for the Auth Rule
|
|
18
18
|
#
|
|
19
19
|
# @param type [Symbol, Lithic::Models::AuthRules::V2CreateParams::Type] The type of Auth Rule. For certain rule types, this determines the event stream
|
|
20
20
|
#
|
|
@@ -178,7 +178,7 @@ module Lithic
|
|
|
178
178
|
#
|
|
179
179
|
# @param auth_rule_token [String]
|
|
180
180
|
#
|
|
181
|
-
# @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, nil] Parameters for the Auth Rule
|
|
181
|
+
# @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, nil] Parameters for the Auth Rule
|
|
182
182
|
#
|
|
183
183
|
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
184
184
|
#
|
|
@@ -19,7 +19,7 @@ module Lithic
|
|
|
19
19
|
#
|
|
20
20
|
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
21
21
|
#
|
|
22
|
-
# @return [Lithic::Models::
|
|
22
|
+
# @return [Lithic::Models::Dispute]
|
|
23
23
|
#
|
|
24
24
|
# @see Lithic::Models::DisputeCreateParams
|
|
25
25
|
def create(params)
|
|
@@ -28,7 +28,7 @@ module Lithic
|
|
|
28
28
|
method: :post,
|
|
29
29
|
path: "v1/disputes",
|
|
30
30
|
body: parsed,
|
|
31
|
-
model: Lithic::
|
|
31
|
+
model: Lithic::Dispute,
|
|
32
32
|
options: options
|
|
33
33
|
)
|
|
34
34
|
end
|
|
@@ -40,14 +40,14 @@ module Lithic
|
|
|
40
40
|
# @param dispute_token [String]
|
|
41
41
|
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
42
42
|
#
|
|
43
|
-
# @return [Lithic::Models::
|
|
43
|
+
# @return [Lithic::Models::Dispute]
|
|
44
44
|
#
|
|
45
45
|
# @see Lithic::Models::DisputeRetrieveParams
|
|
46
46
|
def retrieve(dispute_token, params = {})
|
|
47
47
|
@client.request(
|
|
48
48
|
method: :get,
|
|
49
49
|
path: ["v1/disputes/%1$s", dispute_token],
|
|
50
|
-
model: Lithic::
|
|
50
|
+
model: Lithic::Dispute,
|
|
51
51
|
options: params[:request_options]
|
|
52
52
|
)
|
|
53
53
|
end
|
|
@@ -68,7 +68,7 @@ module Lithic
|
|
|
68
68
|
#
|
|
69
69
|
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
70
70
|
#
|
|
71
|
-
# @return [Lithic::Models::
|
|
71
|
+
# @return [Lithic::Models::Dispute]
|
|
72
72
|
#
|
|
73
73
|
# @see Lithic::Models::DisputeUpdateParams
|
|
74
74
|
def update(dispute_token, params = {})
|
|
@@ -77,7 +77,7 @@ module Lithic
|
|
|
77
77
|
method: :patch,
|
|
78
78
|
path: ["v1/disputes/%1$s", dispute_token],
|
|
79
79
|
body: parsed,
|
|
80
|
-
model: Lithic::
|
|
80
|
+
model: Lithic::Dispute,
|
|
81
81
|
options: options
|
|
82
82
|
)
|
|
83
83
|
end
|
|
@@ -105,7 +105,7 @@ module Lithic
|
|
|
105
105
|
#
|
|
106
106
|
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
107
107
|
#
|
|
108
|
-
# @return [Lithic::Internal::CursorPage<Lithic::Models::
|
|
108
|
+
# @return [Lithic::Internal::CursorPage<Lithic::Models::Dispute>]
|
|
109
109
|
#
|
|
110
110
|
# @see Lithic::Models::DisputeListParams
|
|
111
111
|
def list(params = {})
|
|
@@ -115,7 +115,7 @@ module Lithic
|
|
|
115
115
|
path: "v1/disputes",
|
|
116
116
|
query: parsed.transform_keys(begin_: "begin", end_: "end"),
|
|
117
117
|
page: Lithic::Internal::CursorPage,
|
|
118
|
-
model: Lithic::
|
|
118
|
+
model: Lithic::Dispute,
|
|
119
119
|
options: options
|
|
120
120
|
)
|
|
121
121
|
end
|
|
@@ -127,14 +127,14 @@ module Lithic
|
|
|
127
127
|
# @param dispute_token [String]
|
|
128
128
|
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
129
129
|
#
|
|
130
|
-
# @return [Lithic::Models::
|
|
130
|
+
# @return [Lithic::Models::Dispute]
|
|
131
131
|
#
|
|
132
132
|
# @see Lithic::Models::DisputeDeleteParams
|
|
133
133
|
def delete(dispute_token, params = {})
|
|
134
134
|
@client.request(
|
|
135
135
|
method: :delete,
|
|
136
136
|
path: ["v1/disputes/%1$s", dispute_token],
|
|
137
|
-
model: Lithic::
|
|
137
|
+
model: Lithic::Dispute,
|
|
138
138
|
options: params[:request_options]
|
|
139
139
|
)
|
|
140
140
|
end
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Resources
|
|
5
|
+
class DisputesV2
|
|
6
|
+
# Retrieves a specific dispute by its token.
|
|
7
|
+
#
|
|
8
|
+
# @overload retrieve(dispute_token, request_options: {})
|
|
9
|
+
#
|
|
10
|
+
# @param dispute_token [String] Token of the dispute to retrieve.
|
|
11
|
+
#
|
|
12
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
13
|
+
#
|
|
14
|
+
# @return [Lithic::Models::DisputeV2]
|
|
15
|
+
#
|
|
16
|
+
# @see Lithic::Models::DisputesV2RetrieveParams
|
|
17
|
+
def retrieve(dispute_token, params = {})
|
|
18
|
+
@client.request(
|
|
19
|
+
method: :get,
|
|
20
|
+
path: ["v2/disputes/%1$s", dispute_token],
|
|
21
|
+
model: Lithic::DisputeV2,
|
|
22
|
+
options: params[:request_options]
|
|
23
|
+
)
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# Some parameter documentations has been truncated, see
|
|
27
|
+
# {Lithic::Models::DisputesV2ListParams} for more details.
|
|
28
|
+
#
|
|
29
|
+
# Returns a paginated list of disputes.
|
|
30
|
+
#
|
|
31
|
+
# @overload list(account_token: nil, begin_: nil, card_token: nil, disputed_transaction_token: nil, end_: nil, ending_before: nil, page_size: nil, starting_after: nil, request_options: {})
|
|
32
|
+
#
|
|
33
|
+
# @param account_token [String] Filter by account token.
|
|
34
|
+
#
|
|
35
|
+
# @param begin_ [Time] RFC 3339 timestamp for filtering by created date, inclusive.
|
|
36
|
+
#
|
|
37
|
+
# @param card_token [String] Filter by card token.
|
|
38
|
+
#
|
|
39
|
+
# @param disputed_transaction_token [String] Filter by the token of the transaction being disputed. Corresponds with transact
|
|
40
|
+
#
|
|
41
|
+
# @param end_ [Time] RFC 3339 timestamp for filtering by created date, inclusive.
|
|
42
|
+
#
|
|
43
|
+
# @param ending_before [String] A cursor representing an item's token before which a page of results should end.
|
|
44
|
+
#
|
|
45
|
+
# @param page_size [Integer] Number of items to return.
|
|
46
|
+
#
|
|
47
|
+
# @param starting_after [String] A cursor representing an item's token after which a page of results should begin
|
|
48
|
+
#
|
|
49
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
50
|
+
#
|
|
51
|
+
# @return [Lithic::Internal::CursorPage<Lithic::Models::DisputeV2>]
|
|
52
|
+
#
|
|
53
|
+
# @see Lithic::Models::DisputesV2ListParams
|
|
54
|
+
def list(params = {})
|
|
55
|
+
parsed, options = Lithic::DisputesV2ListParams.dump_request(params)
|
|
56
|
+
@client.request(
|
|
57
|
+
method: :get,
|
|
58
|
+
path: "v2/disputes",
|
|
59
|
+
query: parsed.transform_keys(begin_: "begin", end_: "end"),
|
|
60
|
+
page: Lithic::Internal::CursorPage,
|
|
61
|
+
model: Lithic::DisputeV2,
|
|
62
|
+
options: options
|
|
63
|
+
)
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# @api private
|
|
67
|
+
#
|
|
68
|
+
# @param client [Lithic::Client]
|
|
69
|
+
def initialize(client:)
|
|
70
|
+
@client = client
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|