lithic 0.21.0 → 0.22.0
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 -10
- data/lib/lithic/internal/type/union.rb +21 -7
- data/lib/lithic/models/account_holder_create_params.rb +4 -2
- data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +120 -66
- data/lib/lithic/models/account_holder_update_params.rb +6 -3
- data/lib/lithic/models/account_holder_update_response.rb +156 -86
- data/lib/lithic/models/account_holder_updated_webhook_event.rb +120 -66
- data/lib/lithic/models/account_holders/account_holder_entity.rb +35 -19
- data/lib/lithic/models/account_holders/entity_create_params.rb +39 -21
- data/lib/lithic/models/address.rb +33 -19
- data/lib/lithic/models/address_update.rb +27 -11
- data/lib/lithic/models/auth_rules/auth_rule.rb +55 -27
- data/lib/lithic/models/auth_rules/auth_rule_condition.rb +189 -6
- data/lib/lithic/models/auth_rules/auth_rule_entities.rb +47 -0
- data/lib/lithic/models/auth_rules/auth_rule_entities_response.rb +31 -0
- data/lib/lithic/models/auth_rules/auth_rule_entity.rb +150 -0
- data/lib/lithic/models/auth_rules/auth_rule_version.rb +3 -6
- data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +33 -6
- data/lib/lithic/models/auth_rules/conditional_attribute.rb +101 -5
- data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +3 -439
- data/lib/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rb +7 -0
- data/lib/lithic/models/auth_rules/merchant_lock_parameters.rb +11 -1
- data/lib/lithic/models/auth_rules/v2_create_params.rb +203 -45
- data/lib/lithic/models/auth_rules/v2_draft_params.rb +3 -6
- data/lib/lithic/models/auth_rules/v2_list_params.rb +5 -3
- data/lib/lithic/models/auth_rules/v2_update_entities_params.rb +39 -0
- data/lib/lithic/models/auth_rules/v2_update_params.rb +133 -12
- data/lib/lithic/models/card_authorization.rb +11 -1
- data/lib/lithic/models/card_create_params.rb +11 -1
- data/lib/lithic/models/card_update_params.rb +12 -1
- data/lib/lithic/models/financial_accounts/installment_plans/installment_plan_statement.rb +279 -0
- data/lib/lithic/models/financial_accounts/installment_plans/statement_list_params.rb +106 -0
- data/lib/lithic/models/financial_accounts/installment_plans/statement_retrieve_params.rb +42 -0
- data/lib/lithic/models/financial_accounts/loan_tape.rb +62 -1
- data/lib/lithic/models/kyb.rb +4 -2
- data/lib/lithic/models/kyb_business_entity.rb +35 -19
- data/lib/lithic/models/kyc.rb +2 -1
- data/lib/lithic/models/non_pci_card.rb +11 -1
- data/lib/lithic/models/parsed_webhook_event.rb +120 -66
- data/lib/lithic/models/payment.rb +2 -1
- data/lib/lithic/models/transaction.rb +2 -1
- data/lib/lithic/models/transaction_simulate_authorization_params.rb +28 -4
- data/lib/lithic/models/transaction_simulate_credit_authorization_advice_params.rb +11 -1
- data/lib/lithic/models/transaction_simulate_return_params.rb +24 -1
- data/lib/lithic/resources/auth_rules/v2/backtests.rb +8 -8
- data/lib/lithic/resources/auth_rules/v2.rb +44 -8
- data/lib/lithic/resources/cards.rb +6 -2
- data/lib/lithic/resources/financial_accounts/installment_plans/statements.rb +107 -0
- data/lib/lithic/resources/financial_accounts/installment_plans.rb +4 -0
- data/lib/lithic/resources/transactions.rb +17 -4
- data/lib/lithic/resources/webhooks.rb +18 -0
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +8 -1
- data/rbi/lithic/models/account_holder_create_params.rbi +8 -4
- data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +195 -90
- data/rbi/lithic/models/account_holder_update_params.rbi +12 -6
- data/rbi/lithic/models/account_holder_update_response.rbi +254 -117
- data/rbi/lithic/models/account_holder_updated_webhook_event.rbi +195 -90
- data/rbi/lithic/models/account_holders/account_holder_entity.rbi +59 -27
- data/rbi/lithic/models/account_holders/entity_create_params.rbi +65 -30
- data/rbi/lithic/models/address.rbi +57 -29
- data/rbi/lithic/models/address_update.rbi +50 -24
- data/rbi/lithic/models/auth_rules/auth_rule.rbi +53 -19
- data/rbi/lithic/models/auth_rules/auth_rule_condition.rbi +442 -13
- data/rbi/lithic/models/auth_rules/auth_rule_entities.rbi +163 -0
- data/rbi/lithic/models/auth_rules/auth_rule_entities_response.rbi +72 -0
- data/rbi/lithic/models/auth_rules/auth_rule_entity.rbi +199 -0
- data/rbi/lithic/models/auth_rules/auth_rule_version.rbi +0 -2
- data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +67 -9
- data/rbi/lithic/models/auth_rules/conditional_attribute.rbi +193 -5
- data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +3 -939
- data/rbi/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbi +14 -0
- data/rbi/lithic/models/auth_rules/merchant_lock_parameters.rbi +14 -3
- data/rbi/lithic/models/auth_rules/v2_create_params.rbi +325 -50
- data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +0 -4
- data/rbi/lithic/models/auth_rules/v2_list_params.rbi +6 -3
- data/rbi/lithic/models/auth_rules/v2_update_entities_params.rbi +68 -0
- data/rbi/lithic/models/auth_rules/v2_update_params.rbi +198 -5
- data/rbi/lithic/models/card_authorization.rbi +12 -0
- data/rbi/lithic/models/card_create_params.rbi +15 -0
- data/rbi/lithic/models/card_update_params.rbi +17 -0
- data/rbi/lithic/models/financial_accounts/installment_plans/installment_plan_statement.rbi +452 -0
- data/rbi/lithic/models/financial_accounts/installment_plans/statement_list_params.rbi +191 -0
- data/rbi/lithic/models/financial_accounts/installment_plans/statement_retrieve_params.rbi +66 -0
- data/rbi/lithic/models/financial_accounts/loan_tape.rbi +119 -0
- data/rbi/lithic/models/kyb.rbi +8 -4
- data/rbi/lithic/models/kyb_business_entity.rbi +59 -27
- data/rbi/lithic/models/kyc.rbi +4 -2
- data/rbi/lithic/models/non_pci_card.rbi +12 -0
- data/rbi/lithic/models/parsed_webhook_event.rbi +195 -90
- data/rbi/lithic/models/payment.rbi +4 -2
- data/rbi/lithic/models/transaction.rbi +4 -2
- data/rbi/lithic/models/transaction_simulate_authorization_params.rbi +42 -4
- data/rbi/lithic/models/transaction_simulate_credit_authorization_advice_params.rbi +15 -0
- data/rbi/lithic/models/transaction_simulate_return_params.rbi +30 -0
- data/rbi/lithic/resources/account_holders/entities.rbi +2 -1
- data/rbi/lithic/resources/auth_rules/v2/backtests.rbi +8 -8
- data/rbi/lithic/resources/auth_rules/v2.rbi +43 -8
- data/rbi/lithic/resources/cards.rbi +11 -0
- data/rbi/lithic/resources/financial_accounts/installment_plans/statements.rbi +86 -0
- data/rbi/lithic/resources/financial_accounts/installment_plans.rbi +7 -0
- data/rbi/lithic/resources/transactions.rbi +31 -2
- data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +39 -39
- data/sig/lithic/models/account_holder_update_response.rbs +52 -52
- data/sig/lithic/models/account_holder_updated_webhook_event.rbs +39 -39
- data/sig/lithic/models/account_holders/account_holder_entity.rbs +13 -13
- data/sig/lithic/models/account_holders/entity_create_params.rbs +13 -13
- data/sig/lithic/models/address.rbs +13 -13
- data/sig/lithic/models/address_update.rbs +8 -12
- data/sig/lithic/models/auth_rules/auth_rule.rbs +8 -7
- data/sig/lithic/models/auth_rules/auth_rule_condition.rbs +89 -3
- data/sig/lithic/models/auth_rules/auth_rule_entities.rbs +37 -0
- data/sig/lithic/models/auth_rules/auth_rule_entities_response.rbs +29 -0
- data/sig/lithic/models/auth_rules/auth_rule_entity.rbs +80 -0
- data/sig/lithic/models/auth_rules/auth_rule_version.rbs +1 -2
- data/sig/lithic/models/auth_rules/conditional_3ds_action_parameters.rbs +10 -0
- data/sig/lithic/models/auth_rules/conditional_attribute.rbs +46 -0
- data/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +4 -204
- data/sig/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbs +2 -0
- data/sig/lithic/models/auth_rules/merchant_lock_parameters.rbs +10 -3
- data/sig/lithic/models/auth_rules/v2_create_params.rbs +86 -16
- data/sig/lithic/models/auth_rules/v2_draft_params.rbs +1 -2
- data/sig/lithic/models/auth_rules/v2_update_entities_params.rbs +46 -0
- data/sig/lithic/models/auth_rules/v2_update_params.rbs +47 -1
- data/sig/lithic/models/card_authorization.rbs +5 -0
- data/sig/lithic/models/card_create_params.rbs +7 -0
- data/sig/lithic/models/card_update_params.rbs +8 -1
- data/sig/lithic/models/financial_accounts/installment_plans/installment_plan_statement.rbs +191 -0
- data/sig/lithic/models/financial_accounts/installment_plans/statement_list_params.rbs +90 -0
- data/sig/lithic/models/financial_accounts/installment_plans/statement_retrieve_params.rbs +40 -0
- data/sig/lithic/models/financial_accounts/loan_tape.rbs +47 -0
- data/sig/lithic/models/kyb_business_entity.rbs +13 -13
- data/sig/lithic/models/non_pci_card.rbs +5 -0
- data/sig/lithic/models/parsed_webhook_event.rbs +39 -39
- data/sig/lithic/models/transaction_simulate_authorization_params.rbs +14 -0
- data/sig/lithic/models/transaction_simulate_credit_authorization_advice_params.rbs +7 -0
- data/sig/lithic/models/transaction_simulate_return_params.rbs +19 -1
- data/sig/lithic/resources/auth_rules/v2.rbs +7 -0
- data/sig/lithic/resources/cards.rbs +2 -0
- data/sig/lithic/resources/financial_accounts/installment_plans/statements.rbs +30 -0
- data/sig/lithic/resources/financial_accounts/installment_plans.rbs +2 -0
- data/sig/lithic/resources/transactions.rbs +5 -0
- metadata +26 -5
- data/lib/lithic/models/auth_rules/conditional_block_parameters.rb +0 -20
- data/rbi/lithic/models/auth_rules/conditional_block_parameters.rbi +0 -37
- data/sig/lithic/models/auth_rules/conditional_block_parameters.rbs +0 -20
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
module Lithic
|
|
2
|
+
module Models
|
|
3
|
+
module FinancialAccounts
|
|
4
|
+
module InstallmentPlans
|
|
5
|
+
type statement_retrieve_params =
|
|
6
|
+
{
|
|
7
|
+
financial_account_token: String,
|
|
8
|
+
installment_plan_token: String,
|
|
9
|
+
statement_token: String
|
|
10
|
+
}
|
|
11
|
+
& Lithic::Internal::Type::request_parameters
|
|
12
|
+
|
|
13
|
+
class StatementRetrieveParams < Lithic::Internal::Type::BaseModel
|
|
14
|
+
extend Lithic::Internal::Type::RequestParameters::Converter
|
|
15
|
+
include Lithic::Internal::Type::RequestParameters
|
|
16
|
+
|
|
17
|
+
attr_accessor financial_account_token: String
|
|
18
|
+
|
|
19
|
+
attr_accessor installment_plan_token: String
|
|
20
|
+
|
|
21
|
+
attr_accessor statement_token: String
|
|
22
|
+
|
|
23
|
+
def initialize: (
|
|
24
|
+
financial_account_token: String,
|
|
25
|
+
installment_plan_token: String,
|
|
26
|
+
statement_token: String,
|
|
27
|
+
?request_options: Lithic::request_opts
|
|
28
|
+
) -> void
|
|
29
|
+
|
|
30
|
+
def to_hash: -> {
|
|
31
|
+
financial_account_token: String,
|
|
32
|
+
installment_plan_token: String,
|
|
33
|
+
statement_token: String,
|
|
34
|
+
request_options: Lithic::RequestOptions
|
|
35
|
+
}
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -18,6 +18,7 @@ module Lithic
|
|
|
18
18
|
interest_details: Lithic::FinancialAccounts::LoanTape::InterestDetails?,
|
|
19
19
|
minimum_payment_balance: Lithic::FinancialAccounts::LoanTape::MinimumPaymentBalance,
|
|
20
20
|
payment_allocation: Lithic::FinancialAccounts::LoanTape::PaymentAllocation,
|
|
21
|
+
payment_only_allocation: Lithic::FinancialAccounts::LoanTape::PaymentOnlyAllocation?,
|
|
21
22
|
period_totals: Lithic::StatementTotals,
|
|
22
23
|
previous_statement_balance: Lithic::FinancialAccounts::LoanTape::PreviousStatementBalance,
|
|
23
24
|
starting_balance: Integer,
|
|
@@ -59,6 +60,8 @@ module Lithic
|
|
|
59
60
|
|
|
60
61
|
attr_accessor payment_allocation: Lithic::FinancialAccounts::LoanTape::PaymentAllocation
|
|
61
62
|
|
|
63
|
+
attr_accessor payment_only_allocation: Lithic::FinancialAccounts::LoanTape::PaymentOnlyAllocation?
|
|
64
|
+
|
|
62
65
|
attr_accessor period_totals: Lithic::StatementTotals
|
|
63
66
|
|
|
64
67
|
attr_accessor previous_statement_balance: Lithic::FinancialAccounts::LoanTape::PreviousStatementBalance
|
|
@@ -91,6 +94,7 @@ module Lithic
|
|
|
91
94
|
interest_details: Lithic::FinancialAccounts::LoanTape::InterestDetails?,
|
|
92
95
|
minimum_payment_balance: Lithic::FinancialAccounts::LoanTape::MinimumPaymentBalance,
|
|
93
96
|
payment_allocation: Lithic::FinancialAccounts::LoanTape::PaymentAllocation,
|
|
97
|
+
payment_only_allocation: Lithic::FinancialAccounts::LoanTape::PaymentOnlyAllocation?,
|
|
94
98
|
period_totals: Lithic::StatementTotals,
|
|
95
99
|
previous_statement_balance: Lithic::FinancialAccounts::LoanTape::PreviousStatementBalance,
|
|
96
100
|
starting_balance: Integer,
|
|
@@ -117,6 +121,7 @@ module Lithic
|
|
|
117
121
|
interest_details: Lithic::FinancialAccounts::LoanTape::InterestDetails?,
|
|
118
122
|
minimum_payment_balance: Lithic::FinancialAccounts::LoanTape::MinimumPaymentBalance,
|
|
119
123
|
payment_allocation: Lithic::FinancialAccounts::LoanTape::PaymentAllocation,
|
|
124
|
+
payment_only_allocation: Lithic::FinancialAccounts::LoanTape::PaymentOnlyAllocation?,
|
|
120
125
|
period_totals: Lithic::StatementTotals,
|
|
121
126
|
previous_statement_balance: Lithic::FinancialAccounts::LoanTape::PreviousStatementBalance,
|
|
122
127
|
starting_balance: Integer,
|
|
@@ -391,6 +396,48 @@ module Lithic
|
|
|
391
396
|
}
|
|
392
397
|
end
|
|
393
398
|
|
|
399
|
+
type payment_only_allocation =
|
|
400
|
+
{
|
|
401
|
+
fee_details: Lithic::CategoryDetails?,
|
|
402
|
+
fees: Integer,
|
|
403
|
+
interest: Integer,
|
|
404
|
+
interest_details: Lithic::CategoryDetails?,
|
|
405
|
+
principal: Integer,
|
|
406
|
+
principal_details: Lithic::CategoryDetails?
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
class PaymentOnlyAllocation < Lithic::Internal::Type::BaseModel
|
|
410
|
+
attr_accessor fee_details: Lithic::CategoryDetails?
|
|
411
|
+
|
|
412
|
+
attr_accessor fees: Integer
|
|
413
|
+
|
|
414
|
+
attr_accessor interest: Integer
|
|
415
|
+
|
|
416
|
+
attr_accessor interest_details: Lithic::CategoryDetails?
|
|
417
|
+
|
|
418
|
+
attr_accessor principal: Integer
|
|
419
|
+
|
|
420
|
+
attr_accessor principal_details: Lithic::CategoryDetails?
|
|
421
|
+
|
|
422
|
+
def initialize: (
|
|
423
|
+
fee_details: Lithic::CategoryDetails?,
|
|
424
|
+
fees: Integer,
|
|
425
|
+
interest: Integer,
|
|
426
|
+
interest_details: Lithic::CategoryDetails?,
|
|
427
|
+
principal: Integer,
|
|
428
|
+
principal_details: Lithic::CategoryDetails?
|
|
429
|
+
) -> void
|
|
430
|
+
|
|
431
|
+
def to_hash: -> {
|
|
432
|
+
fee_details: Lithic::CategoryDetails?,
|
|
433
|
+
fees: Integer,
|
|
434
|
+
interest: Integer,
|
|
435
|
+
interest_details: Lithic::CategoryDetails?,
|
|
436
|
+
principal: Integer,
|
|
437
|
+
principal_details: Lithic::CategoryDetails?
|
|
438
|
+
}
|
|
439
|
+
end
|
|
440
|
+
|
|
394
441
|
type previous_statement_balance =
|
|
395
442
|
{ amount: Integer, remaining: Integer }
|
|
396
443
|
|
|
@@ -48,9 +48,9 @@ module Lithic
|
|
|
48
48
|
:address1 => String,
|
|
49
49
|
city: String,
|
|
50
50
|
country: String,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
:
|
|
51
|
+
:address2 => String,
|
|
52
|
+
postal_code: String?,
|
|
53
|
+
state: String?
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
class Address < Lithic::Internal::Type::BaseModel
|
|
@@ -60,30 +60,30 @@ module Lithic
|
|
|
60
60
|
|
|
61
61
|
attr_accessor country: String
|
|
62
62
|
|
|
63
|
-
attr_accessor postal_code: String
|
|
64
|
-
|
|
65
|
-
attr_accessor state: String
|
|
66
|
-
|
|
67
63
|
attr_reader address2: String?
|
|
68
64
|
|
|
69
65
|
def address2=: (String) -> String
|
|
70
66
|
|
|
67
|
+
attr_accessor postal_code: String?
|
|
68
|
+
|
|
69
|
+
attr_accessor state: String?
|
|
70
|
+
|
|
71
71
|
def initialize: (
|
|
72
72
|
address1: String,
|
|
73
73
|
city: String,
|
|
74
74
|
country: String,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
?
|
|
75
|
+
?address2: String,
|
|
76
|
+
?postal_code: String?,
|
|
77
|
+
?state: String?
|
|
78
78
|
) -> void
|
|
79
79
|
|
|
80
80
|
def to_hash: -> {
|
|
81
81
|
:address1 => String,
|
|
82
82
|
city: String,
|
|
83
83
|
country: String,
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
:
|
|
84
|
+
:address2 => String,
|
|
85
|
+
postal_code: String?,
|
|
86
|
+
state: String?
|
|
87
87
|
}
|
|
88
88
|
end
|
|
89
89
|
end
|
|
@@ -12,6 +12,7 @@ module Lithic
|
|
|
12
12
|
spend_limit: Integer,
|
|
13
13
|
spend_limit_duration: Lithic::Models::spend_limit_duration,
|
|
14
14
|
state: Lithic::Models::NonPCICard::state,
|
|
15
|
+
tags: ::Hash[Symbol, String],
|
|
15
16
|
type: Lithic::Models::NonPCICard::type_,
|
|
16
17
|
auth_rule_tokens: ::Array[String],
|
|
17
18
|
bulk_order_token: String?,
|
|
@@ -50,6 +51,8 @@ module Lithic
|
|
|
50
51
|
|
|
51
52
|
attr_accessor state: Lithic::Models::NonPCICard::state
|
|
52
53
|
|
|
54
|
+
attr_accessor tags: ::Hash[Symbol, String]
|
|
55
|
+
|
|
53
56
|
attr_accessor type: Lithic::Models::NonPCICard::type_
|
|
54
57
|
|
|
55
58
|
attr_reader auth_rule_tokens: ::Array[String]?
|
|
@@ -107,6 +110,7 @@ module Lithic
|
|
|
107
110
|
spend_limit: Integer,
|
|
108
111
|
spend_limit_duration: Lithic::Models::spend_limit_duration,
|
|
109
112
|
state: Lithic::Models::NonPCICard::state,
|
|
113
|
+
tags: ::Hash[Symbol, String],
|
|
110
114
|
type: Lithic::Models::NonPCICard::type_,
|
|
111
115
|
?auth_rule_tokens: ::Array[String],
|
|
112
116
|
?bulk_order_token: String?,
|
|
@@ -135,6 +139,7 @@ module Lithic
|
|
|
135
139
|
spend_limit: Integer,
|
|
136
140
|
spend_limit_duration: Lithic::Models::spend_limit_duration,
|
|
137
141
|
state: Lithic::Models::NonPCICard::state,
|
|
142
|
+
tags: ::Hash[Symbol, String],
|
|
138
143
|
type: Lithic::Models::NonPCICard::type_,
|
|
139
144
|
auth_rule_tokens: ::Array[String],
|
|
140
145
|
bulk_order_token: String?,
|
|
@@ -230,9 +230,9 @@ module Lithic
|
|
|
230
230
|
:address1 => String,
|
|
231
231
|
city: String,
|
|
232
232
|
country: String,
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
:
|
|
233
|
+
:address2 => String,
|
|
234
|
+
postal_code: String?,
|
|
235
|
+
state: String?
|
|
236
236
|
}
|
|
237
237
|
|
|
238
238
|
class Address < Lithic::Internal::Type::BaseModel
|
|
@@ -242,30 +242,30 @@ module Lithic
|
|
|
242
242
|
|
|
243
243
|
attr_accessor country: String
|
|
244
244
|
|
|
245
|
-
attr_accessor postal_code: String
|
|
246
|
-
|
|
247
|
-
attr_accessor state: String
|
|
248
|
-
|
|
249
245
|
attr_reader address2: String?
|
|
250
246
|
|
|
251
247
|
def address2=: (String) -> String
|
|
252
248
|
|
|
249
|
+
attr_accessor postal_code: String?
|
|
250
|
+
|
|
251
|
+
attr_accessor state: String?
|
|
252
|
+
|
|
253
253
|
def initialize: (
|
|
254
254
|
address1: String,
|
|
255
255
|
city: String,
|
|
256
256
|
country: String,
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
?
|
|
257
|
+
?address2: String,
|
|
258
|
+
?postal_code: String?,
|
|
259
|
+
?state: String?
|
|
260
260
|
) -> void
|
|
261
261
|
|
|
262
262
|
def to_hash: -> {
|
|
263
263
|
:address1 => String,
|
|
264
264
|
city: String,
|
|
265
265
|
country: String,
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
:
|
|
266
|
+
:address2 => String,
|
|
267
|
+
postal_code: String?,
|
|
268
|
+
state: String?
|
|
269
269
|
}
|
|
270
270
|
end
|
|
271
271
|
end
|
|
@@ -332,9 +332,9 @@ module Lithic
|
|
|
332
332
|
:address1 => String,
|
|
333
333
|
city: String,
|
|
334
334
|
country: String,
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
:
|
|
335
|
+
:address2 => String,
|
|
336
|
+
postal_code: String?,
|
|
337
|
+
state: String?
|
|
338
338
|
}
|
|
339
339
|
|
|
340
340
|
class Address < Lithic::Internal::Type::BaseModel
|
|
@@ -344,30 +344,30 @@ module Lithic
|
|
|
344
344
|
|
|
345
345
|
attr_accessor country: String
|
|
346
346
|
|
|
347
|
-
attr_accessor postal_code: String
|
|
348
|
-
|
|
349
|
-
attr_accessor state: String
|
|
350
|
-
|
|
351
347
|
attr_reader address2: String?
|
|
352
348
|
|
|
353
349
|
def address2=: (String) -> String
|
|
354
350
|
|
|
351
|
+
attr_accessor postal_code: String?
|
|
352
|
+
|
|
353
|
+
attr_accessor state: String?
|
|
354
|
+
|
|
355
355
|
def initialize: (
|
|
356
356
|
address1: String,
|
|
357
357
|
city: String,
|
|
358
358
|
country: String,
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
?
|
|
359
|
+
?address2: String,
|
|
360
|
+
?postal_code: String?,
|
|
361
|
+
?state: String?
|
|
362
362
|
) -> void
|
|
363
363
|
|
|
364
364
|
def to_hash: -> {
|
|
365
365
|
:address1 => String,
|
|
366
366
|
city: String,
|
|
367
367
|
country: String,
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
:
|
|
368
|
+
:address2 => String,
|
|
369
|
+
postal_code: String?,
|
|
370
|
+
state: String?
|
|
371
371
|
}
|
|
372
372
|
end
|
|
373
373
|
end
|
|
@@ -503,9 +503,9 @@ module Lithic
|
|
|
503
503
|
:address1 => String,
|
|
504
504
|
city: String,
|
|
505
505
|
country: String,
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
:
|
|
506
|
+
:address2 => String,
|
|
507
|
+
postal_code: String?,
|
|
508
|
+
state: String?
|
|
509
509
|
}
|
|
510
510
|
|
|
511
511
|
class Address < Lithic::Internal::Type::BaseModel
|
|
@@ -515,30 +515,30 @@ module Lithic
|
|
|
515
515
|
|
|
516
516
|
attr_accessor country: String
|
|
517
517
|
|
|
518
|
-
attr_accessor postal_code: String
|
|
519
|
-
|
|
520
|
-
attr_accessor state: String
|
|
521
|
-
|
|
522
518
|
attr_reader address2: String?
|
|
523
519
|
|
|
524
520
|
def address2=: (String) -> String
|
|
525
521
|
|
|
522
|
+
attr_accessor postal_code: String?
|
|
523
|
+
|
|
524
|
+
attr_accessor state: String?
|
|
525
|
+
|
|
526
526
|
def initialize: (
|
|
527
527
|
address1: String,
|
|
528
528
|
city: String,
|
|
529
529
|
country: String,
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
?
|
|
530
|
+
?address2: String,
|
|
531
|
+
?postal_code: String?,
|
|
532
|
+
?state: String?
|
|
533
533
|
) -> void
|
|
534
534
|
|
|
535
535
|
def to_hash: -> {
|
|
536
536
|
:address1 => String,
|
|
537
537
|
city: String,
|
|
538
538
|
country: String,
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
:
|
|
539
|
+
:address2 => String,
|
|
540
|
+
postal_code: String?,
|
|
541
|
+
state: String?
|
|
542
542
|
}
|
|
543
543
|
end
|
|
544
544
|
end
|
|
@@ -5,6 +5,7 @@ module Lithic
|
|
|
5
5
|
amount: Integer,
|
|
6
6
|
descriptor: String,
|
|
7
7
|
pan: String,
|
|
8
|
+
billing_currency: String,
|
|
8
9
|
mcc: String,
|
|
9
10
|
merchant_acceptor_city: String,
|
|
10
11
|
merchant_acceptor_country: String,
|
|
@@ -14,6 +15,7 @@ module Lithic
|
|
|
14
15
|
merchant_currency: String,
|
|
15
16
|
partial_approval_capable: bool,
|
|
16
17
|
pin: String,
|
|
18
|
+
settlement_currency: String,
|
|
17
19
|
status: Lithic::Models::TransactionSimulateAuthorizationParams::status
|
|
18
20
|
}
|
|
19
21
|
& Lithic::Internal::Type::request_parameters
|
|
@@ -28,6 +30,10 @@ module Lithic
|
|
|
28
30
|
|
|
29
31
|
attr_accessor pan: String
|
|
30
32
|
|
|
33
|
+
attr_reader billing_currency: String?
|
|
34
|
+
|
|
35
|
+
def billing_currency=: (String) -> String
|
|
36
|
+
|
|
31
37
|
attr_reader mcc: String?
|
|
32
38
|
|
|
33
39
|
def mcc=: (String) -> String
|
|
@@ -64,6 +70,10 @@ module Lithic
|
|
|
64
70
|
|
|
65
71
|
def pin=: (String) -> String
|
|
66
72
|
|
|
73
|
+
attr_reader settlement_currency: String?
|
|
74
|
+
|
|
75
|
+
def settlement_currency=: (String) -> String
|
|
76
|
+
|
|
67
77
|
attr_reader status: Lithic::Models::TransactionSimulateAuthorizationParams::status?
|
|
68
78
|
|
|
69
79
|
def status=: (
|
|
@@ -74,6 +84,7 @@ module Lithic
|
|
|
74
84
|
amount: Integer,
|
|
75
85
|
descriptor: String,
|
|
76
86
|
pan: String,
|
|
87
|
+
?billing_currency: String,
|
|
77
88
|
?mcc: String,
|
|
78
89
|
?merchant_acceptor_city: String,
|
|
79
90
|
?merchant_acceptor_country: String,
|
|
@@ -83,6 +94,7 @@ module Lithic
|
|
|
83
94
|
?merchant_currency: String,
|
|
84
95
|
?partial_approval_capable: bool,
|
|
85
96
|
?pin: String,
|
|
97
|
+
?settlement_currency: String,
|
|
86
98
|
?status: Lithic::Models::TransactionSimulateAuthorizationParams::status,
|
|
87
99
|
?request_options: Lithic::request_opts
|
|
88
100
|
) -> void
|
|
@@ -91,6 +103,7 @@ module Lithic
|
|
|
91
103
|
amount: Integer,
|
|
92
104
|
descriptor: String,
|
|
93
105
|
pan: String,
|
|
106
|
+
billing_currency: String,
|
|
94
107
|
mcc: String,
|
|
95
108
|
merchant_acceptor_city: String,
|
|
96
109
|
merchant_acceptor_country: String,
|
|
@@ -100,6 +113,7 @@ module Lithic
|
|
|
100
113
|
merchant_currency: String,
|
|
101
114
|
partial_approval_capable: bool,
|
|
102
115
|
pin: String,
|
|
116
|
+
settlement_currency: String,
|
|
103
117
|
status: Lithic::Models::TransactionSimulateAuthorizationParams::status,
|
|
104
118
|
request_options: Lithic::RequestOptions
|
|
105
119
|
}
|
|
@@ -5,6 +5,7 @@ module Lithic
|
|
|
5
5
|
amount: Integer,
|
|
6
6
|
descriptor: String,
|
|
7
7
|
pan: String,
|
|
8
|
+
billing_currency: String,
|
|
8
9
|
mcc: String,
|
|
9
10
|
merchant_acceptor_city: String,
|
|
10
11
|
merchant_acceptor_country: String,
|
|
@@ -23,6 +24,10 @@ module Lithic
|
|
|
23
24
|
|
|
24
25
|
attr_accessor pan: String
|
|
25
26
|
|
|
27
|
+
attr_reader billing_currency: String?
|
|
28
|
+
|
|
29
|
+
def billing_currency=: (String) -> String
|
|
30
|
+
|
|
26
31
|
attr_reader mcc: String?
|
|
27
32
|
|
|
28
33
|
def mcc=: (String) -> String
|
|
@@ -47,6 +52,7 @@ module Lithic
|
|
|
47
52
|
amount: Integer,
|
|
48
53
|
descriptor: String,
|
|
49
54
|
pan: String,
|
|
55
|
+
?billing_currency: String,
|
|
50
56
|
?mcc: String,
|
|
51
57
|
?merchant_acceptor_city: String,
|
|
52
58
|
?merchant_acceptor_country: String,
|
|
@@ -59,6 +65,7 @@ module Lithic
|
|
|
59
65
|
amount: Integer,
|
|
60
66
|
descriptor: String,
|
|
61
67
|
pan: String,
|
|
68
|
+
billing_currency: String,
|
|
62
69
|
mcc: String,
|
|
63
70
|
merchant_acceptor_city: String,
|
|
64
71
|
merchant_acceptor_country: String,
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
module Lithic
|
|
2
2
|
module Models
|
|
3
3
|
type transaction_simulate_return_params =
|
|
4
|
-
{
|
|
4
|
+
{
|
|
5
|
+
amount: Integer,
|
|
6
|
+
descriptor: String,
|
|
7
|
+
pan: String,
|
|
8
|
+
billing_currency: String,
|
|
9
|
+
settlement_currency: String
|
|
10
|
+
}
|
|
5
11
|
& Lithic::Internal::Type::request_parameters
|
|
6
12
|
|
|
7
13
|
class TransactionSimulateReturnParams < Lithic::Internal::Type::BaseModel
|
|
@@ -14,10 +20,20 @@ module Lithic
|
|
|
14
20
|
|
|
15
21
|
attr_accessor pan: String
|
|
16
22
|
|
|
23
|
+
attr_reader billing_currency: String?
|
|
24
|
+
|
|
25
|
+
def billing_currency=: (String) -> String
|
|
26
|
+
|
|
27
|
+
attr_reader settlement_currency: String?
|
|
28
|
+
|
|
29
|
+
def settlement_currency=: (String) -> String
|
|
30
|
+
|
|
17
31
|
def initialize: (
|
|
18
32
|
amount: Integer,
|
|
19
33
|
descriptor: String,
|
|
20
34
|
pan: String,
|
|
35
|
+
?billing_currency: String,
|
|
36
|
+
?settlement_currency: String,
|
|
21
37
|
?request_options: Lithic::request_opts
|
|
22
38
|
) -> void
|
|
23
39
|
|
|
@@ -25,6 +41,8 @@ module Lithic
|
|
|
25
41
|
amount: Integer,
|
|
26
42
|
descriptor: String,
|
|
27
43
|
pan: String,
|
|
44
|
+
billing_currency: String,
|
|
45
|
+
settlement_currency: String,
|
|
28
46
|
request_options: Lithic::RequestOptions
|
|
29
47
|
}
|
|
30
48
|
end
|
|
@@ -80,6 +80,13 @@ module Lithic
|
|
|
80
80
|
?request_options: Lithic::request_opts
|
|
81
81
|
) -> Lithic::Models::AuthRules::V2RetrieveReportResponse
|
|
82
82
|
|
|
83
|
+
def update_entities: (
|
|
84
|
+
String auth_rule_token,
|
|
85
|
+
?add: Lithic::AuthRules::AuthRuleEntities,
|
|
86
|
+
?remove: Lithic::AuthRules::AuthRuleEntities,
|
|
87
|
+
?request_options: Lithic::request_opts
|
|
88
|
+
) -> Lithic::AuthRules::AuthRule
|
|
89
|
+
|
|
83
90
|
def initialize: (client: Lithic::Client) -> void
|
|
84
91
|
end
|
|
85
92
|
end
|
|
@@ -26,6 +26,7 @@ module Lithic
|
|
|
26
26
|
?spend_limit: Integer,
|
|
27
27
|
?spend_limit_duration: Lithic::Models::spend_limit_duration,
|
|
28
28
|
?state: Lithic::Models::CardCreateParams::state,
|
|
29
|
+
?tags: ::Hash[Symbol, String],
|
|
29
30
|
?idempotency_key: String,
|
|
30
31
|
?request_options: Lithic::request_opts
|
|
31
32
|
) -> Lithic::Card
|
|
@@ -47,6 +48,7 @@ module Lithic
|
|
|
47
48
|
?spend_limit_duration: Lithic::Models::spend_limit_duration,
|
|
48
49
|
?state: Lithic::Models::CardUpdateParams::state,
|
|
49
50
|
?substatus: Lithic::Models::CardUpdateParams::substatus,
|
|
51
|
+
?tags: ::Hash[Symbol, String?],
|
|
50
52
|
?request_options: Lithic::request_opts
|
|
51
53
|
) -> Lithic::Card
|
|
52
54
|
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
module Lithic
|
|
2
|
+
module Resources
|
|
3
|
+
class FinancialAccounts
|
|
4
|
+
class InstallmentPlans
|
|
5
|
+
class Statements
|
|
6
|
+
def retrieve: (
|
|
7
|
+
String statement_token,
|
|
8
|
+
financial_account_token: String,
|
|
9
|
+
installment_plan_token: String,
|
|
10
|
+
?request_options: Lithic::request_opts
|
|
11
|
+
) -> Lithic::FinancialAccounts::InstallmentPlans::InstallmentPlanStatement
|
|
12
|
+
|
|
13
|
+
def list: (
|
|
14
|
+
String installment_plan_token,
|
|
15
|
+
financial_account_token: String,
|
|
16
|
+
?begin_: Date,
|
|
17
|
+
?end_: Date,
|
|
18
|
+
?ending_before: String,
|
|
19
|
+
?page_size: Integer,
|
|
20
|
+
?starting_after: String,
|
|
21
|
+
?state: Lithic::Models::FinancialAccounts::InstallmentPlans::StatementListParams::state?,
|
|
22
|
+
?request_options: Lithic::request_opts
|
|
23
|
+
) -> Lithic::Internal::CursorPage[Lithic::FinancialAccounts::InstallmentPlans::InstallmentPlanStatement]
|
|
24
|
+
|
|
25
|
+
def initialize: (client: Lithic::Client) -> void
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -38,6 +38,7 @@ module Lithic
|
|
|
38
38
|
amount: Integer,
|
|
39
39
|
descriptor: String,
|
|
40
40
|
pan: String,
|
|
41
|
+
?billing_currency: String,
|
|
41
42
|
?mcc: String,
|
|
42
43
|
?merchant_acceptor_city: String,
|
|
43
44
|
?merchant_acceptor_country: String,
|
|
@@ -47,6 +48,7 @@ module Lithic
|
|
|
47
48
|
?merchant_currency: String,
|
|
48
49
|
?partial_approval_capable: bool,
|
|
49
50
|
?pin: String,
|
|
51
|
+
?settlement_currency: String,
|
|
50
52
|
?status: Lithic::Models::TransactionSimulateAuthorizationParams::status,
|
|
51
53
|
?request_options: Lithic::request_opts
|
|
52
54
|
) -> Lithic::Models::TransactionSimulateAuthorizationResponse
|
|
@@ -67,6 +69,7 @@ module Lithic
|
|
|
67
69
|
amount: Integer,
|
|
68
70
|
descriptor: String,
|
|
69
71
|
pan: String,
|
|
72
|
+
?billing_currency: String,
|
|
70
73
|
?mcc: String,
|
|
71
74
|
?merchant_acceptor_city: String,
|
|
72
75
|
?merchant_acceptor_country: String,
|
|
@@ -79,6 +82,8 @@ module Lithic
|
|
|
79
82
|
amount: Integer,
|
|
80
83
|
descriptor: String,
|
|
81
84
|
pan: String,
|
|
85
|
+
?billing_currency: String,
|
|
86
|
+
?settlement_currency: String,
|
|
82
87
|
?request_options: Lithic::request_opts
|
|
83
88
|
) -> Lithic::Models::TransactionSimulateReturnResponse
|
|
84
89
|
|