lithic 0.1.0.pre.alpha.54 → 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 +39 -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/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/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 +207 -0
- 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 +46 -283
- data/lib/lithic/models/auth_rules/v2_create_response.rb +23 -510
- data/lib/lithic/models/auth_rules/v2_draft_params.rb +6 -248
- data/lib/lithic/models/auth_rules/v2_draft_response.rb +23 -510
- data/lib/lithic/models/auth_rules/v2_list_params.rb +3 -0
- data/lib/lithic/models/auth_rules/v2_list_response.rb +23 -510
- data/lib/lithic/models/auth_rules/v2_promote_response.rb +23 -510
- data/lib/lithic/models/auth_rules/v2_retrieve_features_response.rb +4 -11
- data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +23 -510
- data/lib/lithic/models/auth_rules/v2_update_response.rb +23 -510
- 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 +6 -5
- data/lib/lithic/models/category_details.rb +27 -0
- 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/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/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 +5 -68
- data/lib/lithic/models/financial_accounts/category_balances.rb +29 -0
- data/lib/lithic/models/financial_accounts/financial_account_credit_config.rb +1 -64
- data/lib/lithic/models/financial_accounts/loan_tape.rb +35 -424
- data/lib/lithic/models/financial_accounts/statement.rb +73 -211
- 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 +16 -14
- data/lib/lithic/models/payment_return_params.rb +62 -0
- data/lib/lithic/models/payment_simulate_action_params.rb +17 -1
- 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/tokenization.rb +189 -23
- data/lib/lithic/models/transaction.rb +15 -185
- data/lib/lithic/models/transactions/events/enhanced_data.rb +52 -43
- data/lib/lithic/models/transfer.rb +3 -146
- data/lib/lithic/models.rb +18 -0
- 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_v2.rb +74 -0
- data/lib/lithic/resources/external_bank_accounts.rb +19 -0
- data/lib/lithic/resources/payments.rb +53 -1
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +18 -3
- 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/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/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 +437 -0
- 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 +112 -680
- data/rbi/lithic/models/auth_rules/v2_create_response.rbi +33 -1149
- data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +12 -575
- data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +33 -1149
- data/rbi/lithic/models/auth_rules/v2_list_params.rbi +15 -0
- data/rbi/lithic/models/auth_rules/v2_list_response.rbi +33 -1149
- data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +33 -1149
- data/rbi/lithic/models/auth_rules/v2_retrieve_features_response.rbi +9 -22
- data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +33 -1149
- data/rbi/lithic/models/auth_rules/v2_update_response.rbi +33 -1149
- 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 +16 -11
- data/rbi/lithic/models/category_details.rbi +43 -0
- 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/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/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 +15 -136
- data/rbi/lithic/models/financial_accounts/category_balances.rbi +42 -0
- data/rbi/lithic/models/financial_accounts/financial_account_credit_config.rbi +3 -136
- data/rbi/lithic/models/financial_accounts/loan_tape.rbi +47 -679
- data/rbi/lithic/models/financial_accounts/statement.rbi +118 -348
- 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 +27 -21
- data/rbi/lithic/models/payment_return_params.rbi +85 -0
- data/rbi/lithic/models/payment_simulate_action_params.rbi +22 -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/tokenization.rbi +429 -34
- data/rbi/lithic/models/transaction.rbi +26 -336
- data/rbi/lithic/models/transactions/events/enhanced_data.rbi +77 -136
- data/rbi/lithic/models/transfer.rbi +4 -436
- data/rbi/lithic/models.rbi +19 -0
- data/rbi/lithic/resources/auth_rules/v2/backtests.rbi +0 -3
- data/rbi/lithic/resources/auth_rules/v2.rbi +29 -72
- 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 +52 -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/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/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 +112 -0
- 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 +32 -188
- data/sig/lithic/models/auth_rules/v2_create_response.rbs +15 -319
- data/sig/lithic/models/auth_rules/v2_draft_params.rbs +3 -159
- data/sig/lithic/models/auth_rules/v2_draft_response.rbs +15 -319
- data/sig/lithic/models/auth_rules/v2_list_params.rbs +9 -1
- data/sig/lithic/models/auth_rules/v2_list_response.rbs +15 -319
- data/sig/lithic/models/auth_rules/v2_promote_response.rbs +15 -319
- data/sig/lithic/models/auth_rules/v2_retrieve_features_response.rbs +4 -4
- data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +15 -319
- data/sig/lithic/models/auth_rules/v2_update_response.rbs +15 -319
- 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 +10 -8
- data/sig/lithic/models/category_details.rbs +26 -0
- 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/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/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 +7 -49
- data/sig/lithic/models/financial_accounts/category_balances.rbs +24 -0
- data/sig/lithic/models/financial_accounts/financial_account_credit_config.rbs +3 -49
- data/sig/lithic/models/financial_accounts/loan_tape.rbs +48 -386
- data/sig/lithic/models/financial_accounts/statement.rbs +59 -192
- 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 +17 -15
- data/sig/lithic/models/payment_return_params.rbs +46 -0
- data/sig/lithic/models/payment_simulate_action_params.rbs +14 -0
- data/sig/lithic/models/statement_totals.rbs +76 -0
- data/sig/lithic/models/tokenization.rbs +160 -13
- data/sig/lithic/models/transaction.rbs +17 -145
- 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/auth_rules/v2.rbs +2 -12
- 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 +12 -0
- metadata +56 -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
|
@@ -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
|
-
# @return [
|
|
95
|
-
optional :amount,
|
|
94
|
+
# @return [String, nil]
|
|
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
|
-
# @return [
|
|
113
|
-
optional :quantity,
|
|
112
|
+
# @return [String, nil]
|
|
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 [
|
|
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 [
|
|
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
|
|
@@ -253,36 +257,41 @@ module Lithic
|
|
|
253
257
|
# @!attribute quantity
|
|
254
258
|
# The quantity of fuel purchased.
|
|
255
259
|
#
|
|
256
|
-
# @return [
|
|
257
|
-
optional :quantity,
|
|
260
|
+
# @return [String, nil]
|
|
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 [
|
|
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
|
|
@@ -33,7 +33,7 @@ module Lithic
|
|
|
33
33
|
#
|
|
34
34
|
# @overload create(auth_rule_token, end_: nil, start: nil, request_options: {})
|
|
35
35
|
#
|
|
36
|
-
# @param auth_rule_token [String]
|
|
36
|
+
# @param auth_rule_token [String]
|
|
37
37
|
#
|
|
38
38
|
# @param end_ [Time] The end time of the backtest.
|
|
39
39
|
#
|
|
@@ -76,10 +76,8 @@ module Lithic
|
|
|
76
76
|
#
|
|
77
77
|
# @overload retrieve(auth_rule_backtest_token, auth_rule_token:, request_options: {})
|
|
78
78
|
#
|
|
79
|
-
# @param auth_rule_backtest_token [String]
|
|
80
|
-
#
|
|
81
|
-
# @param auth_rule_token [String] Globally unique identifier for the Auth Rule.
|
|
82
|
-
#
|
|
79
|
+
# @param auth_rule_backtest_token [String]
|
|
80
|
+
# @param auth_rule_token [String]
|
|
83
81
|
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
84
82
|
#
|
|
85
83
|
# @return [Lithic::Models::AuthRules::V2::BacktestResults]
|
|
@@ -12,7 +12,11 @@ module Lithic
|
|
|
12
12
|
#
|
|
13
13
|
# Creates a new V2 Auth rule in draft mode
|
|
14
14
|
#
|
|
15
|
-
# @overload create(card_tokens:, program_level:, account_tokens: nil, business_account_tokens: nil, event_stream: nil, name: nil,
|
|
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
|
+
#
|
|
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
|
+
#
|
|
19
|
+
# @param type [Symbol, Lithic::Models::AuthRules::V2CreateParams::Type] The type of Auth Rule. For certain rule types, this determines the event stream
|
|
16
20
|
#
|
|
17
21
|
# @param card_tokens [Array<String>] Card tokens to which the Auth Rule applies.
|
|
18
22
|
#
|
|
@@ -26,10 +30,6 @@ module Lithic
|
|
|
26
30
|
#
|
|
27
31
|
# @param name [String, nil] Auth Rule Name
|
|
28
32
|
#
|
|
29
|
-
# @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters] Parameters for the Auth Rule
|
|
30
|
-
#
|
|
31
|
-
# @param type [Symbol, Lithic::Models::AuthRules::V2CreateParams::Type] The type of Auth Rule. For certain rule types, this determines the event stream
|
|
32
|
-
#
|
|
33
33
|
# @param excluded_card_tokens [Array<String>] Card tokens to which the Auth Rule does not apply.
|
|
34
34
|
#
|
|
35
35
|
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
@@ -52,8 +52,7 @@ module Lithic
|
|
|
52
52
|
#
|
|
53
53
|
# @overload retrieve(auth_rule_token, request_options: {})
|
|
54
54
|
#
|
|
55
|
-
# @param auth_rule_token [String]
|
|
56
|
-
#
|
|
55
|
+
# @param auth_rule_token [String]
|
|
57
56
|
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
58
57
|
#
|
|
59
58
|
# @return [Lithic::Models::AuthRules::V2RetrieveResponse]
|
|
@@ -79,7 +78,7 @@ module Lithic
|
|
|
79
78
|
#
|
|
80
79
|
# @overload update(auth_rule_token, account_tokens: nil, business_account_tokens: nil, name: nil, state: nil, card_tokens: nil, excluded_card_tokens: nil, program_level: nil, request_options: {})
|
|
81
80
|
#
|
|
82
|
-
# @param auth_rule_token [String]
|
|
81
|
+
# @param auth_rule_token [String]
|
|
83
82
|
#
|
|
84
83
|
# @param account_tokens [Array<String>] Account tokens to which the Auth Rule applies.
|
|
85
84
|
#
|
|
@@ -155,8 +154,7 @@ module Lithic
|
|
|
155
154
|
#
|
|
156
155
|
# @overload delete(auth_rule_token, request_options: {})
|
|
157
156
|
#
|
|
158
|
-
# @param auth_rule_token [String]
|
|
159
|
-
#
|
|
157
|
+
# @param auth_rule_token [String]
|
|
160
158
|
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
161
159
|
#
|
|
162
160
|
# @return [nil]
|
|
@@ -171,43 +169,6 @@ module Lithic
|
|
|
171
169
|
)
|
|
172
170
|
end
|
|
173
171
|
|
|
174
|
-
# @deprecated
|
|
175
|
-
#
|
|
176
|
-
# Associates a V2 Auth rule with a card program, the provided account(s) or
|
|
177
|
-
# card(s).
|
|
178
|
-
#
|
|
179
|
-
# Prefer using the `PATCH` method for this operation.
|
|
180
|
-
#
|
|
181
|
-
# @overload apply(auth_rule_token, card_tokens:, program_level:, account_tokens: nil, business_account_tokens: nil, excluded_card_tokens: nil, request_options: {})
|
|
182
|
-
#
|
|
183
|
-
# @param auth_rule_token [String] Globally unique identifier for the Auth Rule.
|
|
184
|
-
#
|
|
185
|
-
# @param card_tokens [Array<String>] Card tokens to which the Auth Rule applies.
|
|
186
|
-
#
|
|
187
|
-
# @param program_level [Boolean] Whether the Auth Rule applies to all authorizations on the card program.
|
|
188
|
-
#
|
|
189
|
-
# @param account_tokens [Array<String>] Account tokens to which the Auth Rule applies.
|
|
190
|
-
#
|
|
191
|
-
# @param business_account_tokens [Array<String>] Business Account tokens to which the Auth Rule applies.
|
|
192
|
-
#
|
|
193
|
-
# @param excluded_card_tokens [Array<String>] Card tokens to which the Auth Rule does not apply.
|
|
194
|
-
#
|
|
195
|
-
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
196
|
-
#
|
|
197
|
-
# @return [Lithic::Models::AuthRules::V2ApplyResponse]
|
|
198
|
-
#
|
|
199
|
-
# @see Lithic::Models::AuthRules::V2ApplyParams
|
|
200
|
-
def apply(auth_rule_token, params)
|
|
201
|
-
parsed, options = Lithic::AuthRules::V2ApplyParams.dump_request(params)
|
|
202
|
-
@client.request(
|
|
203
|
-
method: :post,
|
|
204
|
-
path: ["v2/auth_rules/%1$s/apply", auth_rule_token],
|
|
205
|
-
body: parsed,
|
|
206
|
-
model: Lithic::Models::AuthRules::V2ApplyResponse,
|
|
207
|
-
options: options
|
|
208
|
-
)
|
|
209
|
-
end
|
|
210
|
-
|
|
211
172
|
# Creates a new draft version of a rule that will be ran in shadow mode.
|
|
212
173
|
#
|
|
213
174
|
# This can also be utilized to reset the draft parameters, causing a draft version
|
|
@@ -215,9 +176,9 @@ module Lithic
|
|
|
215
176
|
#
|
|
216
177
|
# @overload draft(auth_rule_token, parameters: nil, request_options: {})
|
|
217
178
|
#
|
|
218
|
-
# @param auth_rule_token [String]
|
|
179
|
+
# @param auth_rule_token [String]
|
|
219
180
|
#
|
|
220
|
-
# @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::
|
|
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
|
|
221
182
|
#
|
|
222
183
|
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
223
184
|
#
|
|
@@ -240,8 +201,7 @@ module Lithic
|
|
|
240
201
|
#
|
|
241
202
|
# @overload promote(auth_rule_token, request_options: {})
|
|
242
203
|
#
|
|
243
|
-
# @param auth_rule_token [String]
|
|
244
|
-
#
|
|
204
|
+
# @param auth_rule_token [String]
|
|
245
205
|
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
246
206
|
#
|
|
247
207
|
# @return [Lithic::Models::AuthRules::V2PromoteResponse]
|
|
@@ -268,12 +228,9 @@ module Lithic
|
|
|
268
228
|
#
|
|
269
229
|
# @overload retrieve_features(auth_rule_token, account_token: nil, card_token: nil, request_options: {})
|
|
270
230
|
#
|
|
271
|
-
# @param auth_rule_token [String]
|
|
272
|
-
#
|
|
231
|
+
# @param auth_rule_token [String]
|
|
273
232
|
# @param account_token [String]
|
|
274
|
-
#
|
|
275
233
|
# @param card_token [String]
|
|
276
|
-
#
|
|
277
234
|
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
278
235
|
#
|
|
279
236
|
# @return [Lithic::Models::AuthRules::V2RetrieveFeaturesResponse]
|
|
@@ -306,7 +263,7 @@ module Lithic
|
|
|
306
263
|
#
|
|
307
264
|
# @overload retrieve_report(auth_rule_token, begin_:, end_:, request_options: {})
|
|
308
265
|
#
|
|
309
|
-
# @param auth_rule_token [String]
|
|
266
|
+
# @param auth_rule_token [String]
|
|
310
267
|
#
|
|
311
268
|
# @param begin_ [Date] Start date for the report
|
|
312
269
|
#
|