lithic 0.19.0 → 0.21.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 +61 -0
- data/README.md +1 -1
- data/lib/lithic/client.rb +4 -0
- data/lib/lithic/models/account_activity_list_params.rb +1 -0
- data/lib/lithic/models/account_activity_list_response.rb +1 -0
- data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +1 -0
- data/lib/lithic/models/auth_rules/ach_payment_update_action.rb +1 -0
- data/lib/lithic/models/auth_rules/auth_rule.rb +5 -0
- data/lib/lithic/models/auth_rules/card_transaction_update_action.rb +1 -0
- data/lib/lithic/models/auth_rules/report_stats.rb +1 -0
- data/lib/lithic/models/auth_rules/v2_create_params.rb +15 -0
- data/lib/lithic/models/auth_rules/v2_list_results_response.rb +3 -0
- data/lib/lithic/models/auth_rules/velocity_limit_params.rb +24 -1
- data/lib/lithic/models/blockchain_recipient.rb +148 -0
- data/lib/lithic/models/blockchain_recipient_create_params.rb +74 -0
- data/lib/lithic/models/blockchain_recipient_retrieve_params.rb +20 -0
- data/lib/lithic/models/card.rb +2 -2
- data/lib/lithic/models/card_pin_updated_webhook_event.rb +87 -0
- data/lib/lithic/models/card_provision_params.rb +10 -8
- data/lib/lithic/models/card_reassign_account_params.rb +29 -0
- data/lib/lithic/models/dispute_v2.rb +178 -130
- data/lib/lithic/models/disputes_v2_list_params.rb +10 -1
- data/lib/lithic/models/event.rb +5 -0
- data/lib/lithic/models/event_list_params.rb +3 -0
- data/lib/lithic/models/event_subscription.rb +3 -0
- data/lib/lithic/models/events/subscription_create_params.rb +3 -0
- data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +1 -0
- data/lib/lithic/models/events/subscription_update_params.rb +3 -0
- data/lib/lithic/models/external_payment.rb +6 -0
- data/lib/lithic/models/external_payment_create_params.rb +1 -0
- data/lib/lithic/models/external_payment_list_params.rb +1 -0
- data/lib/lithic/models/financial_account.rb +14 -1
- data/lib/lithic/models/financial_accounts/installment_plan.rb +311 -0
- data/lib/lithic/models/financial_accounts/installment_plan_list_params.rb +75 -0
- data/lib/lithic/models/financial_accounts/installment_plan_retrieve_params.rb +32 -0
- data/lib/lithic/models/financial_accounts/open_to_buy.rb +36 -0
- data/lib/lithic/models/financial_accounts/open_to_buy_retrieve_params.rb +22 -0
- data/lib/lithic/models/financial_accounts/open_to_buy_summary.rb +46 -0
- data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +13 -0
- data/lib/lithic/models/financial_accounts/transaction_category_balances.rb +34 -0
- data/lib/lithic/models/financial_event.rb +12 -0
- data/lib/lithic/models/management_operation_create_params.rb +4 -0
- data/lib/lithic/models/management_operation_transaction.rb +4 -0
- data/lib/lithic/models/parsed_webhook_event.rb +3 -1
- data/lib/lithic/models/payment.rb +68 -9
- data/lib/lithic/models/payment_create_stablecoin_params.rb +99 -0
- data/lib/lithic/models/payment_create_stablecoin_response.rb +19 -0
- data/lib/lithic/models/payment_list_params.rb +1 -0
- data/lib/lithic/models/payment_retry_params.rb +28 -1
- data/lib/lithic/models/payment_simulate_action_params.rb +1 -0
- data/lib/lithic/models/three_ds_authentication.rb +126 -1
- data/lib/lithic/models/tokenization_simulate_params.rb +2 -2
- data/lib/lithic/models/transaction.rb +2 -0
- data/lib/lithic/models/transaction_monitoring/case_entity.rb +13 -4
- data/lib/lithic/models/transaction_monitoring/case_list_params.rb +4 -2
- data/lib/lithic/models.rb +12 -0
- data/lib/lithic/resources/blockchain_recipients.rb +80 -0
- data/lib/lithic/resources/cards.rb +33 -4
- data/lib/lithic/resources/disputes_v2.rb +3 -1
- data/lib/lithic/resources/financial_accounts/installment_plans.rb +82 -0
- data/lib/lithic/resources/financial_accounts/open_to_buy.rb +48 -0
- data/lib/lithic/resources/financial_accounts.rb +8 -0
- data/lib/lithic/resources/payments.rb +71 -3
- data/lib/lithic/resources/tokenizations.rb +1 -1
- data/lib/lithic/resources/transaction_monitoring/cases.rb +1 -1
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +17 -0
- data/rbi/lithic/client.rbi +3 -0
- data/rbi/lithic/models/account_activity_list_params.rbi +5 -0
- data/rbi/lithic/models/account_activity_list_response.rbi +5 -0
- data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +5 -0
- data/rbi/lithic/models/auth_rules/ach_payment_update_action.rbi +5 -0
- data/rbi/lithic/models/auth_rules/auth_rule.rbi +7 -0
- data/rbi/lithic/models/auth_rules/card_transaction_update_action.rbi +5 -0
- data/rbi/lithic/models/auth_rules/report_stats.rbi +5 -0
- data/rbi/lithic/models/auth_rules/v2_create_params.rbi +33 -0
- data/rbi/lithic/models/auth_rules/v2_list_results_response.rbi +15 -0
- data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +30 -0
- data/rbi/lithic/models/blockchain_recipient.rbi +209 -0
- data/rbi/lithic/models/blockchain_recipient_create_params.rbi +102 -0
- data/rbi/lithic/models/blockchain_recipient_retrieve_params.rbi +41 -0
- data/rbi/lithic/models/card.rbi +2 -2
- data/rbi/lithic/models/card_pin_updated_webhook_event.rbi +166 -0
- data/rbi/lithic/models/card_provision_params.rbi +16 -12
- data/rbi/lithic/models/card_reassign_account_params.rbi +49 -0
- data/rbi/lithic/models/dispute_v2.rbi +285 -181
- data/rbi/lithic/models/disputes_v2_list_params.rbi +13 -0
- data/rbi/lithic/models/event.rbi +8 -0
- data/rbi/lithic/models/event_list_params.rbi +7 -0
- data/rbi/lithic/models/event_subscription.rbi +7 -0
- data/rbi/lithic/models/events/subscription_create_params.rbi +7 -0
- data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +5 -0
- data/rbi/lithic/models/events/subscription_update_params.rbi +7 -0
- data/rbi/lithic/models/external_payment.rbi +30 -0
- data/rbi/lithic/models/external_payment_create_params.rbi +5 -0
- data/rbi/lithic/models/external_payment_list_params.rbi +5 -0
- data/rbi/lithic/models/financial_account.rbi +12 -0
- data/rbi/lithic/models/financial_accounts/installment_plan.rbi +528 -0
- data/rbi/lithic/models/financial_accounts/installment_plan_list_params.rbi +155 -0
- data/rbi/lithic/models/financial_accounts/installment_plan_retrieve_params.rbi +56 -0
- data/rbi/lithic/models/financial_accounts/open_to_buy.rbi +64 -0
- data/rbi/lithic/models/financial_accounts/open_to_buy_retrieve_params.rbi +43 -0
- data/rbi/lithic/models/financial_accounts/open_to_buy_summary.rbi +73 -0
- data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +65 -0
- data/rbi/lithic/models/financial_accounts/transaction_category_balances.rbi +81 -0
- data/rbi/lithic/models/financial_event.rbi +47 -0
- data/rbi/lithic/models/management_operation_create_params.rbi +20 -0
- data/rbi/lithic/models/management_operation_transaction.rbi +20 -0
- data/rbi/lithic/models/parsed_webhook_event.rbi +1 -0
- data/rbi/lithic/models/payment.rbi +108 -10
- data/rbi/lithic/models/payment_create_stablecoin_params.rbi +162 -0
- data/rbi/lithic/models/payment_create_stablecoin_response.rbi +34 -0
- data/rbi/lithic/models/payment_list_params.rbi +2 -0
- data/rbi/lithic/models/payment_retry_params.rbi +47 -2
- data/rbi/lithic/models/payment_simulate_action_params.rbi +5 -0
- data/rbi/lithic/models/three_ds_authentication.rbi +292 -0
- data/rbi/lithic/models/tokenization_simulate_params.rbi +2 -2
- data/rbi/lithic/models/transaction.rbi +10 -0
- data/rbi/lithic/models/transaction_monitoring/case_entity.rbi +27 -5
- data/rbi/lithic/models/transaction_monitoring/case_list_params.rbi +6 -2
- data/rbi/lithic/models.rbi +14 -0
- data/rbi/lithic/resources/blockchain_recipients.rbi +65 -0
- data/rbi/lithic/resources/cards.rbi +31 -8
- data/rbi/lithic/resources/disputes_v2.rbi +4 -0
- data/rbi/lithic/resources/financial_accounts/installment_plans.rbi +66 -0
- data/rbi/lithic/resources/financial_accounts/open_to_buy.rbi +40 -0
- data/rbi/lithic/resources/financial_accounts.rbi +6 -0
- data/rbi/lithic/resources/payments.rbi +68 -2
- data/rbi/lithic/resources/tokenizations.rbi +1 -1
- data/rbi/lithic/resources/transaction_monitoring/cases.rbi +3 -1
- data/rbi/lithic/resources/webhooks.rbi +1 -0
- data/sig/lithic/client.rbs +2 -0
- data/sig/lithic/models/account_activity_list_params.rbs +2 -0
- data/sig/lithic/models/account_activity_list_response.rbs +2 -0
- data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +2 -0
- data/sig/lithic/models/auth_rules/ach_payment_update_action.rbs +2 -1
- data/sig/lithic/models/auth_rules/auth_rule.rbs +2 -0
- data/sig/lithic/models/auth_rules/card_transaction_update_action.rbs +2 -1
- data/sig/lithic/models/auth_rules/report_stats.rbs +2 -0
- data/sig/lithic/models/auth_rules/v2_create_params.rbs +6 -0
- data/sig/lithic/models/auth_rules/v2_list_results_response.rbs +6 -2
- data/sig/lithic/models/auth_rules/velocity_limit_params.rbs +10 -0
- data/sig/lithic/models/blockchain_recipient.rbs +106 -0
- data/sig/lithic/models/blockchain_recipient_create_params.rbs +60 -0
- data/sig/lithic/models/blockchain_recipient_retrieve_params.rbs +24 -0
- data/sig/lithic/models/card_pin_updated_webhook_event.rbs +60 -0
- data/sig/lithic/models/card_reassign_account_params.rbs +28 -0
- data/sig/lithic/models/dispute_v2.rbs +145 -101
- data/sig/lithic/models/disputes_v2_list_params.rbs +7 -0
- data/sig/lithic/models/event.rbs +2 -0
- data/sig/lithic/models/event_list_params.rbs +2 -0
- data/sig/lithic/models/event_subscription.rbs +2 -0
- data/sig/lithic/models/events/subscription_create_params.rbs +2 -0
- data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +2 -0
- data/sig/lithic/models/events/subscription_update_params.rbs +2 -0
- data/sig/lithic/models/external_payment.rbs +12 -0
- data/sig/lithic/models/external_payment_create_params.rbs +2 -0
- data/sig/lithic/models/external_payment_list_params.rbs +2 -0
- data/sig/lithic/models/financial_account.rbs +5 -0
- data/sig/lithic/models/financial_accounts/installment_plan.rbs +227 -0
- data/sig/lithic/models/financial_accounts/installment_plan_list_params.rbs +69 -0
- data/sig/lithic/models/financial_accounts/installment_plan_retrieve_params.rbs +30 -0
- data/sig/lithic/models/financial_accounts/open_to_buy.rbs +27 -0
- data/sig/lithic/models/financial_accounts/open_to_buy_retrieve_params.rbs +26 -0
- data/sig/lithic/models/financial_accounts/open_to_buy_summary.rbs +32 -0
- data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +26 -0
- data/sig/lithic/models/financial_accounts/transaction_category_balances.rbs +32 -0
- data/sig/lithic/models/financial_event.rbs +24 -0
- data/sig/lithic/models/management_operation_create_params.rbs +8 -0
- data/sig/lithic/models/management_operation_transaction.rbs +8 -0
- data/sig/lithic/models/parsed_webhook_event.rbs +1 -0
- data/sig/lithic/models/payment.rbs +33 -1
- data/sig/lithic/models/payment_create_stablecoin_params.rbs +84 -0
- data/sig/lithic/models/payment_create_stablecoin_response.rbs +15 -0
- data/sig/lithic/models/payment_list_params.rbs +2 -1
- data/sig/lithic/models/payment_retry_params.rbs +24 -1
- data/sig/lithic/models/payment_simulate_action_params.rbs +2 -0
- data/sig/lithic/models/three_ds_authentication.rbs +77 -0
- data/sig/lithic/models/transaction.rbs +4 -0
- data/sig/lithic/models/transaction_monitoring/case_entity.rbs +7 -5
- data/sig/lithic/models.rbs +12 -0
- data/sig/lithic/resources/blockchain_recipients.rbs +23 -0
- data/sig/lithic/resources/cards.rbs +6 -0
- data/sig/lithic/resources/disputes_v2.rbs +1 -0
- data/sig/lithic/resources/financial_accounts/installment_plans.rbs +24 -0
- data/sig/lithic/resources/financial_accounts/open_to_buy.rbs +14 -0
- data/sig/lithic/resources/financial_accounts.rbs +4 -0
- data/sig/lithic/resources/payments.rbs +12 -0
- data/sig/lithic/resources/webhooks.rbs +1 -0
- metadata +53 -2
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
class BlockchainRecipient < Lithic::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Lithic::BlockchainRecipient, Lithic::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
# A globally unique identifier for this blockchain recipient
|
|
12
|
+
sig { returns(String) }
|
|
13
|
+
attr_accessor :token
|
|
14
|
+
|
|
15
|
+
# The financial account the blockchain recipient belongs to, or null when the
|
|
16
|
+
# recipient is registered against the program rather than a financial account
|
|
17
|
+
sig { returns(T.nilable(String)) }
|
|
18
|
+
attr_accessor :account_token
|
|
19
|
+
|
|
20
|
+
# An optional tag or memo used by some chains to identify the destination of a
|
|
21
|
+
# transfer within a shared address
|
|
22
|
+
sig { returns(T.nilable(String)) }
|
|
23
|
+
attr_accessor :address_tag
|
|
24
|
+
|
|
25
|
+
# The blockchain network that the address belongs to
|
|
26
|
+
sig { returns(String) }
|
|
27
|
+
attr_accessor :chain
|
|
28
|
+
|
|
29
|
+
# An ISO 8601 string representing when this blockchain recipient was created
|
|
30
|
+
sig { returns(Time) }
|
|
31
|
+
attr_accessor :created
|
|
32
|
+
|
|
33
|
+
# The identifier the recipient is registered under with the payment provider
|
|
34
|
+
sig { returns(T.nilable(String)) }
|
|
35
|
+
attr_accessor :external_id
|
|
36
|
+
|
|
37
|
+
# The nickname for this blockchain recipient
|
|
38
|
+
sig { returns(T.nilable(String)) }
|
|
39
|
+
attr_accessor :name
|
|
40
|
+
|
|
41
|
+
# Legal name of the business or individual who owns the blockchain address
|
|
42
|
+
sig { returns(String) }
|
|
43
|
+
attr_accessor :owner
|
|
44
|
+
|
|
45
|
+
# Owner Type
|
|
46
|
+
sig { returns(Lithic::OwnerType::TaggedSymbol) }
|
|
47
|
+
attr_accessor :owner_type
|
|
48
|
+
|
|
49
|
+
# Globally unique identifier for the program the blockchain recipient is
|
|
50
|
+
# associated with
|
|
51
|
+
sig { returns(String) }
|
|
52
|
+
attr_accessor :program_id
|
|
53
|
+
|
|
54
|
+
# Account State
|
|
55
|
+
sig { returns(Lithic::BlockchainRecipient::State::TaggedSymbol) }
|
|
56
|
+
attr_accessor :state
|
|
57
|
+
|
|
58
|
+
# An ISO 8601 string representing when this blockchain recipient was last updated
|
|
59
|
+
sig { returns(Time) }
|
|
60
|
+
attr_accessor :updated
|
|
61
|
+
|
|
62
|
+
# Verification State
|
|
63
|
+
sig do
|
|
64
|
+
returns(Lithic::BlockchainRecipient::VerificationState::TaggedSymbol)
|
|
65
|
+
end
|
|
66
|
+
attr_accessor :verification_state
|
|
67
|
+
|
|
68
|
+
sig do
|
|
69
|
+
params(
|
|
70
|
+
token: String,
|
|
71
|
+
account_token: T.nilable(String),
|
|
72
|
+
address_tag: T.nilable(String),
|
|
73
|
+
chain: String,
|
|
74
|
+
created: Time,
|
|
75
|
+
external_id: T.nilable(String),
|
|
76
|
+
name: T.nilable(String),
|
|
77
|
+
owner: String,
|
|
78
|
+
owner_type: Lithic::OwnerType::OrSymbol,
|
|
79
|
+
program_id: String,
|
|
80
|
+
state: Lithic::BlockchainRecipient::State::OrSymbol,
|
|
81
|
+
updated: Time,
|
|
82
|
+
verification_state:
|
|
83
|
+
Lithic::BlockchainRecipient::VerificationState::OrSymbol
|
|
84
|
+
).returns(T.attached_class)
|
|
85
|
+
end
|
|
86
|
+
def self.new(
|
|
87
|
+
# A globally unique identifier for this blockchain recipient
|
|
88
|
+
token:,
|
|
89
|
+
# The financial account the blockchain recipient belongs to, or null when the
|
|
90
|
+
# recipient is registered against the program rather than a financial account
|
|
91
|
+
account_token:,
|
|
92
|
+
# An optional tag or memo used by some chains to identify the destination of a
|
|
93
|
+
# transfer within a shared address
|
|
94
|
+
address_tag:,
|
|
95
|
+
# The blockchain network that the address belongs to
|
|
96
|
+
chain:,
|
|
97
|
+
# An ISO 8601 string representing when this blockchain recipient was created
|
|
98
|
+
created:,
|
|
99
|
+
# The identifier the recipient is registered under with the payment provider
|
|
100
|
+
external_id:,
|
|
101
|
+
# The nickname for this blockchain recipient
|
|
102
|
+
name:,
|
|
103
|
+
# Legal name of the business or individual who owns the blockchain address
|
|
104
|
+
owner:,
|
|
105
|
+
# Owner Type
|
|
106
|
+
owner_type:,
|
|
107
|
+
# Globally unique identifier for the program the blockchain recipient is
|
|
108
|
+
# associated with
|
|
109
|
+
program_id:,
|
|
110
|
+
# Account State
|
|
111
|
+
state:,
|
|
112
|
+
# An ISO 8601 string representing when this blockchain recipient was last updated
|
|
113
|
+
updated:,
|
|
114
|
+
# Verification State
|
|
115
|
+
verification_state:
|
|
116
|
+
)
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
sig do
|
|
120
|
+
override.returns(
|
|
121
|
+
{
|
|
122
|
+
token: String,
|
|
123
|
+
account_token: T.nilable(String),
|
|
124
|
+
address_tag: T.nilable(String),
|
|
125
|
+
chain: String,
|
|
126
|
+
created: Time,
|
|
127
|
+
external_id: T.nilable(String),
|
|
128
|
+
name: T.nilable(String),
|
|
129
|
+
owner: String,
|
|
130
|
+
owner_type: Lithic::OwnerType::TaggedSymbol,
|
|
131
|
+
program_id: String,
|
|
132
|
+
state: Lithic::BlockchainRecipient::State::TaggedSymbol,
|
|
133
|
+
updated: Time,
|
|
134
|
+
verification_state:
|
|
135
|
+
Lithic::BlockchainRecipient::VerificationState::TaggedSymbol
|
|
136
|
+
}
|
|
137
|
+
)
|
|
138
|
+
end
|
|
139
|
+
def to_hash
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
# Account State
|
|
143
|
+
module State
|
|
144
|
+
extend Lithic::Internal::Type::Enum
|
|
145
|
+
|
|
146
|
+
TaggedSymbol =
|
|
147
|
+
T.type_alias { T.all(Symbol, Lithic::BlockchainRecipient::State) }
|
|
148
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
149
|
+
|
|
150
|
+
ENABLED =
|
|
151
|
+
T.let(:ENABLED, Lithic::BlockchainRecipient::State::TaggedSymbol)
|
|
152
|
+
CLOSED =
|
|
153
|
+
T.let(:CLOSED, Lithic::BlockchainRecipient::State::TaggedSymbol)
|
|
154
|
+
PAUSED =
|
|
155
|
+
T.let(:PAUSED, Lithic::BlockchainRecipient::State::TaggedSymbol)
|
|
156
|
+
|
|
157
|
+
sig do
|
|
158
|
+
override.returns(
|
|
159
|
+
T::Array[Lithic::BlockchainRecipient::State::TaggedSymbol]
|
|
160
|
+
)
|
|
161
|
+
end
|
|
162
|
+
def self.values
|
|
163
|
+
end
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
# Verification State
|
|
167
|
+
module VerificationState
|
|
168
|
+
extend Lithic::Internal::Type::Enum
|
|
169
|
+
|
|
170
|
+
TaggedSymbol =
|
|
171
|
+
T.type_alias do
|
|
172
|
+
T.all(Symbol, Lithic::BlockchainRecipient::VerificationState)
|
|
173
|
+
end
|
|
174
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
175
|
+
|
|
176
|
+
PENDING =
|
|
177
|
+
T.let(
|
|
178
|
+
:PENDING,
|
|
179
|
+
Lithic::BlockchainRecipient::VerificationState::TaggedSymbol
|
|
180
|
+
)
|
|
181
|
+
ENABLED =
|
|
182
|
+
T.let(
|
|
183
|
+
:ENABLED,
|
|
184
|
+
Lithic::BlockchainRecipient::VerificationState::TaggedSymbol
|
|
185
|
+
)
|
|
186
|
+
FAILED_VERIFICATION =
|
|
187
|
+
T.let(
|
|
188
|
+
:FAILED_VERIFICATION,
|
|
189
|
+
Lithic::BlockchainRecipient::VerificationState::TaggedSymbol
|
|
190
|
+
)
|
|
191
|
+
INSUFFICIENT_FUNDS =
|
|
192
|
+
T.let(
|
|
193
|
+
:INSUFFICIENT_FUNDS,
|
|
194
|
+
Lithic::BlockchainRecipient::VerificationState::TaggedSymbol
|
|
195
|
+
)
|
|
196
|
+
|
|
197
|
+
sig do
|
|
198
|
+
override.returns(
|
|
199
|
+
T::Array[
|
|
200
|
+
Lithic::BlockchainRecipient::VerificationState::TaggedSymbol
|
|
201
|
+
]
|
|
202
|
+
)
|
|
203
|
+
end
|
|
204
|
+
def self.values
|
|
205
|
+
end
|
|
206
|
+
end
|
|
207
|
+
end
|
|
208
|
+
end
|
|
209
|
+
end
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
class BlockchainRecipientCreateParams < Lithic::Internal::Type::BaseModel
|
|
6
|
+
extend Lithic::Internal::Type::RequestParameters::Converter
|
|
7
|
+
include Lithic::Internal::Type::RequestParameters
|
|
8
|
+
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(
|
|
12
|
+
Lithic::BlockchainRecipientCreateParams,
|
|
13
|
+
Lithic::Internal::AnyHash
|
|
14
|
+
)
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
# The financial account the blockchain recipient belongs to
|
|
18
|
+
sig { returns(String) }
|
|
19
|
+
attr_accessor :account_token
|
|
20
|
+
|
|
21
|
+
# The blockchain address funds will be withdrawn to
|
|
22
|
+
sig { returns(String) }
|
|
23
|
+
attr_accessor :address
|
|
24
|
+
|
|
25
|
+
# The blockchain network that the address belongs to
|
|
26
|
+
sig { returns(String) }
|
|
27
|
+
attr_accessor :chain
|
|
28
|
+
|
|
29
|
+
# Legal name of the business or individual who owns the blockchain address
|
|
30
|
+
sig { returns(String) }
|
|
31
|
+
attr_accessor :owner
|
|
32
|
+
|
|
33
|
+
# Owner Type
|
|
34
|
+
sig { returns(Lithic::OwnerType::OrSymbol) }
|
|
35
|
+
attr_accessor :owner_type
|
|
36
|
+
|
|
37
|
+
# An optional tag or memo used by some chains to identify the destination of a
|
|
38
|
+
# transfer within a shared address
|
|
39
|
+
sig { returns(T.nilable(String)) }
|
|
40
|
+
attr_reader :address_tag
|
|
41
|
+
|
|
42
|
+
sig { params(address_tag: String).void }
|
|
43
|
+
attr_writer :address_tag
|
|
44
|
+
|
|
45
|
+
# The nickname for this blockchain recipient
|
|
46
|
+
sig { returns(T.nilable(String)) }
|
|
47
|
+
attr_reader :name
|
|
48
|
+
|
|
49
|
+
sig { params(name: String).void }
|
|
50
|
+
attr_writer :name
|
|
51
|
+
|
|
52
|
+
sig do
|
|
53
|
+
params(
|
|
54
|
+
account_token: String,
|
|
55
|
+
address: String,
|
|
56
|
+
chain: String,
|
|
57
|
+
owner: String,
|
|
58
|
+
owner_type: Lithic::OwnerType::OrSymbol,
|
|
59
|
+
address_tag: String,
|
|
60
|
+
name: String,
|
|
61
|
+
request_options: Lithic::RequestOptions::OrHash
|
|
62
|
+
).returns(T.attached_class)
|
|
63
|
+
end
|
|
64
|
+
def self.new(
|
|
65
|
+
# The financial account the blockchain recipient belongs to
|
|
66
|
+
account_token:,
|
|
67
|
+
# The blockchain address funds will be withdrawn to
|
|
68
|
+
address:,
|
|
69
|
+
# The blockchain network that the address belongs to
|
|
70
|
+
chain:,
|
|
71
|
+
# Legal name of the business or individual who owns the blockchain address
|
|
72
|
+
owner:,
|
|
73
|
+
# Owner Type
|
|
74
|
+
owner_type:,
|
|
75
|
+
# An optional tag or memo used by some chains to identify the destination of a
|
|
76
|
+
# transfer within a shared address
|
|
77
|
+
address_tag: nil,
|
|
78
|
+
# The nickname for this blockchain recipient
|
|
79
|
+
name: nil,
|
|
80
|
+
request_options: {}
|
|
81
|
+
)
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
sig do
|
|
85
|
+
override.returns(
|
|
86
|
+
{
|
|
87
|
+
account_token: String,
|
|
88
|
+
address: String,
|
|
89
|
+
chain: String,
|
|
90
|
+
owner: String,
|
|
91
|
+
owner_type: Lithic::OwnerType::OrSymbol,
|
|
92
|
+
address_tag: String,
|
|
93
|
+
name: String,
|
|
94
|
+
request_options: Lithic::RequestOptions
|
|
95
|
+
}
|
|
96
|
+
)
|
|
97
|
+
end
|
|
98
|
+
def to_hash
|
|
99
|
+
end
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
class BlockchainRecipientRetrieveParams < Lithic::Internal::Type::BaseModel
|
|
6
|
+
extend Lithic::Internal::Type::RequestParameters::Converter
|
|
7
|
+
include Lithic::Internal::Type::RequestParameters
|
|
8
|
+
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(
|
|
12
|
+
Lithic::BlockchainRecipientRetrieveParams,
|
|
13
|
+
Lithic::Internal::AnyHash
|
|
14
|
+
)
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
sig { returns(String) }
|
|
18
|
+
attr_accessor :blockchain_recipient_token
|
|
19
|
+
|
|
20
|
+
sig do
|
|
21
|
+
params(
|
|
22
|
+
blockchain_recipient_token: String,
|
|
23
|
+
request_options: Lithic::RequestOptions::OrHash
|
|
24
|
+
).returns(T.attached_class)
|
|
25
|
+
end
|
|
26
|
+
def self.new(blockchain_recipient_token:, request_options: {})
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
sig do
|
|
30
|
+
override.returns(
|
|
31
|
+
{
|
|
32
|
+
blockchain_recipient_token: String,
|
|
33
|
+
request_options: Lithic::RequestOptions
|
|
34
|
+
}
|
|
35
|
+
)
|
|
36
|
+
end
|
|
37
|
+
def to_hash
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
data/rbi/lithic/models/card.rbi
CHANGED
|
@@ -5,7 +5,7 @@ module Lithic
|
|
|
5
5
|
class Card < Lithic::Models::NonPCICard
|
|
6
6
|
OrHash = T.type_alias { T.any(Lithic::Card, Lithic::Internal::AnyHash) }
|
|
7
7
|
|
|
8
|
-
# Three digit
|
|
8
|
+
# Three or four digit CVV printed on the card. Amex cards use four digit CVVs
|
|
9
9
|
sig { returns(T.nilable(String)) }
|
|
10
10
|
attr_reader :cvv
|
|
11
11
|
|
|
@@ -24,7 +24,7 @@ module Lithic
|
|
|
24
24
|
# Card details with potentially PCI sensitive information for Enterprise customers
|
|
25
25
|
sig { params(cvv: String, pan: String).returns(T.attached_class) }
|
|
26
26
|
def self.new(
|
|
27
|
-
# Three digit
|
|
27
|
+
# Three or four digit CVV printed on the card. Amex cards use four digit CVVs
|
|
28
28
|
cvv: nil,
|
|
29
29
|
# Primary Account Number (PAN) (i.e. the card number). Customers must be PCI
|
|
30
30
|
# compliant to have PAN returned as a field in production. Please contact
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
class CardPinUpdatedWebhookEvent < Lithic::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Lithic::CardPinUpdatedWebhookEvent, Lithic::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
# The token of the card whose PIN or PIN status was updated
|
|
12
|
+
sig { returns(String) }
|
|
13
|
+
attr_accessor :card_token
|
|
14
|
+
|
|
15
|
+
# The type of event that occurred.
|
|
16
|
+
sig { returns(Symbol) }
|
|
17
|
+
attr_accessor :event_type
|
|
18
|
+
|
|
19
|
+
# The card's PIN status after the update
|
|
20
|
+
sig do
|
|
21
|
+
returns(Lithic::CardPinUpdatedWebhookEvent::PinStatus::TaggedSymbol)
|
|
22
|
+
end
|
|
23
|
+
attr_accessor :pin_status
|
|
24
|
+
|
|
25
|
+
# The reason for the PIN update:
|
|
26
|
+
#
|
|
27
|
+
# - `PIN_SET` - The PIN was set for the first time; `pin_status` is `OK`
|
|
28
|
+
# - `PIN_CHANGED` - The PIN was changed, including when changing a blocked PIN;
|
|
29
|
+
# `pin_status` is `OK`
|
|
30
|
+
# - `PIN_UNBLOCKED` - The PIN was unblocked without changing it; `pin_status` is
|
|
31
|
+
# `OK`
|
|
32
|
+
# - `EXCESSIVE_PIN_ATTEMPTS` - The PIN was blocked due to excessive incorrect PIN
|
|
33
|
+
# attempts; `pin_status` is `BLOCKED`
|
|
34
|
+
sig do
|
|
35
|
+
returns(Lithic::CardPinUpdatedWebhookEvent::StatusReason::TaggedSymbol)
|
|
36
|
+
end
|
|
37
|
+
attr_accessor :status_reason
|
|
38
|
+
|
|
39
|
+
sig do
|
|
40
|
+
params(
|
|
41
|
+
card_token: String,
|
|
42
|
+
pin_status: Lithic::CardPinUpdatedWebhookEvent::PinStatus::OrSymbol,
|
|
43
|
+
status_reason:
|
|
44
|
+
Lithic::CardPinUpdatedWebhookEvent::StatusReason::OrSymbol,
|
|
45
|
+
event_type: Symbol
|
|
46
|
+
).returns(T.attached_class)
|
|
47
|
+
end
|
|
48
|
+
def self.new(
|
|
49
|
+
# The token of the card whose PIN or PIN status was updated
|
|
50
|
+
card_token:,
|
|
51
|
+
# The card's PIN status after the update
|
|
52
|
+
pin_status:,
|
|
53
|
+
# The reason for the PIN update:
|
|
54
|
+
#
|
|
55
|
+
# - `PIN_SET` - The PIN was set for the first time; `pin_status` is `OK`
|
|
56
|
+
# - `PIN_CHANGED` - The PIN was changed, including when changing a blocked PIN;
|
|
57
|
+
# `pin_status` is `OK`
|
|
58
|
+
# - `PIN_UNBLOCKED` - The PIN was unblocked without changing it; `pin_status` is
|
|
59
|
+
# `OK`
|
|
60
|
+
# - `EXCESSIVE_PIN_ATTEMPTS` - The PIN was blocked due to excessive incorrect PIN
|
|
61
|
+
# attempts; `pin_status` is `BLOCKED`
|
|
62
|
+
status_reason:,
|
|
63
|
+
# The type of event that occurred.
|
|
64
|
+
event_type: :"card.pin_updated"
|
|
65
|
+
)
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
sig do
|
|
69
|
+
override.returns(
|
|
70
|
+
{
|
|
71
|
+
card_token: String,
|
|
72
|
+
event_type: Symbol,
|
|
73
|
+
pin_status:
|
|
74
|
+
Lithic::CardPinUpdatedWebhookEvent::PinStatus::TaggedSymbol,
|
|
75
|
+
status_reason:
|
|
76
|
+
Lithic::CardPinUpdatedWebhookEvent::StatusReason::TaggedSymbol
|
|
77
|
+
}
|
|
78
|
+
)
|
|
79
|
+
end
|
|
80
|
+
def to_hash
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# The card's PIN status after the update
|
|
84
|
+
module PinStatus
|
|
85
|
+
extend Lithic::Internal::Type::Enum
|
|
86
|
+
|
|
87
|
+
TaggedSymbol =
|
|
88
|
+
T.type_alias do
|
|
89
|
+
T.all(Symbol, Lithic::CardPinUpdatedWebhookEvent::PinStatus)
|
|
90
|
+
end
|
|
91
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
92
|
+
|
|
93
|
+
OK =
|
|
94
|
+
T.let(
|
|
95
|
+
:OK,
|
|
96
|
+
Lithic::CardPinUpdatedWebhookEvent::PinStatus::TaggedSymbol
|
|
97
|
+
)
|
|
98
|
+
BLOCKED =
|
|
99
|
+
T.let(
|
|
100
|
+
:BLOCKED,
|
|
101
|
+
Lithic::CardPinUpdatedWebhookEvent::PinStatus::TaggedSymbol
|
|
102
|
+
)
|
|
103
|
+
|
|
104
|
+
sig do
|
|
105
|
+
override.returns(
|
|
106
|
+
T::Array[
|
|
107
|
+
Lithic::CardPinUpdatedWebhookEvent::PinStatus::TaggedSymbol
|
|
108
|
+
]
|
|
109
|
+
)
|
|
110
|
+
end
|
|
111
|
+
def self.values
|
|
112
|
+
end
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# The reason for the PIN update:
|
|
116
|
+
#
|
|
117
|
+
# - `PIN_SET` - The PIN was set for the first time; `pin_status` is `OK`
|
|
118
|
+
# - `PIN_CHANGED` - The PIN was changed, including when changing a blocked PIN;
|
|
119
|
+
# `pin_status` is `OK`
|
|
120
|
+
# - `PIN_UNBLOCKED` - The PIN was unblocked without changing it; `pin_status` is
|
|
121
|
+
# `OK`
|
|
122
|
+
# - `EXCESSIVE_PIN_ATTEMPTS` - The PIN was blocked due to excessive incorrect PIN
|
|
123
|
+
# attempts; `pin_status` is `BLOCKED`
|
|
124
|
+
module StatusReason
|
|
125
|
+
extend Lithic::Internal::Type::Enum
|
|
126
|
+
|
|
127
|
+
TaggedSymbol =
|
|
128
|
+
T.type_alias do
|
|
129
|
+
T.all(Symbol, Lithic::CardPinUpdatedWebhookEvent::StatusReason)
|
|
130
|
+
end
|
|
131
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
132
|
+
|
|
133
|
+
PIN_SET =
|
|
134
|
+
T.let(
|
|
135
|
+
:PIN_SET,
|
|
136
|
+
Lithic::CardPinUpdatedWebhookEvent::StatusReason::TaggedSymbol
|
|
137
|
+
)
|
|
138
|
+
PIN_CHANGED =
|
|
139
|
+
T.let(
|
|
140
|
+
:PIN_CHANGED,
|
|
141
|
+
Lithic::CardPinUpdatedWebhookEvent::StatusReason::TaggedSymbol
|
|
142
|
+
)
|
|
143
|
+
PIN_UNBLOCKED =
|
|
144
|
+
T.let(
|
|
145
|
+
:PIN_UNBLOCKED,
|
|
146
|
+
Lithic::CardPinUpdatedWebhookEvent::StatusReason::TaggedSymbol
|
|
147
|
+
)
|
|
148
|
+
EXCESSIVE_PIN_ATTEMPTS =
|
|
149
|
+
T.let(
|
|
150
|
+
:EXCESSIVE_PIN_ATTEMPTS,
|
|
151
|
+
Lithic::CardPinUpdatedWebhookEvent::StatusReason::TaggedSymbol
|
|
152
|
+
)
|
|
153
|
+
|
|
154
|
+
sig do
|
|
155
|
+
override.returns(
|
|
156
|
+
T::Array[
|
|
157
|
+
Lithic::CardPinUpdatedWebhookEvent::StatusReason::TaggedSymbol
|
|
158
|
+
]
|
|
159
|
+
)
|
|
160
|
+
end
|
|
161
|
+
def self.values
|
|
162
|
+
end
|
|
163
|
+
end
|
|
164
|
+
end
|
|
165
|
+
end
|
|
166
|
+
end
|
|
@@ -24,18 +24,20 @@ module Lithic
|
|
|
24
24
|
sig { params(certificate: String).void }
|
|
25
25
|
attr_writer :certificate
|
|
26
26
|
|
|
27
|
-
# Only applicable if `digital_wallet` is `GOOGLE_PAY` or `SAMSUNG_PAY
|
|
28
|
-
#
|
|
29
|
-
#
|
|
27
|
+
# Only applicable if `digital_wallet` is `GOOGLE_PAY` or `SAMSUNG_PAY`. Stable
|
|
28
|
+
# device identification set by the wallet provider. Required for both wallets
|
|
29
|
+
# regardless of network, though the value is only used for cards on the Visa
|
|
30
|
+
# network and is ignored on Amex and Mastercard.
|
|
30
31
|
sig { returns(T.nilable(String)) }
|
|
31
32
|
attr_reader :client_device_id
|
|
32
33
|
|
|
33
34
|
sig { params(client_device_id: String).void }
|
|
34
35
|
attr_writer :client_device_id
|
|
35
36
|
|
|
36
|
-
# Only applicable if `digital_wallet` is `GOOGLE_PAY` or `SAMSUNG_PAY
|
|
37
|
-
#
|
|
38
|
-
#
|
|
37
|
+
# Only applicable if `digital_wallet` is `GOOGLE_PAY` or `SAMSUNG_PAY`. Consumer
|
|
38
|
+
# ID that identifies the wallet account holder entity. Required for both wallets
|
|
39
|
+
# regardless of network, though the value is only used for cards on the Visa
|
|
40
|
+
# network and is ignored on Amex and Mastercard.
|
|
39
41
|
sig { returns(T.nilable(String)) }
|
|
40
42
|
attr_reader :client_wallet_account_id
|
|
41
43
|
|
|
@@ -92,13 +94,15 @@ module Lithic
|
|
|
92
94
|
# encoded in PEM format with headers `(-----BEGIN CERTIFICATE-----)` and trailers
|
|
93
95
|
# omitted. Provided by the device's wallet.
|
|
94
96
|
certificate: nil,
|
|
95
|
-
# Only applicable if `digital_wallet` is `GOOGLE_PAY` or `SAMSUNG_PAY
|
|
96
|
-
#
|
|
97
|
-
#
|
|
97
|
+
# Only applicable if `digital_wallet` is `GOOGLE_PAY` or `SAMSUNG_PAY`. Stable
|
|
98
|
+
# device identification set by the wallet provider. Required for both wallets
|
|
99
|
+
# regardless of network, though the value is only used for cards on the Visa
|
|
100
|
+
# network and is ignored on Amex and Mastercard.
|
|
98
101
|
client_device_id: nil,
|
|
99
|
-
# Only applicable if `digital_wallet` is `GOOGLE_PAY` or `SAMSUNG_PAY
|
|
100
|
-
#
|
|
101
|
-
#
|
|
102
|
+
# Only applicable if `digital_wallet` is `GOOGLE_PAY` or `SAMSUNG_PAY`. Consumer
|
|
103
|
+
# ID that identifies the wallet account holder entity. Required for both wallets
|
|
104
|
+
# regardless of network, though the value is only used for cards on the Visa
|
|
105
|
+
# network and is ignored on Amex and Mastercard.
|
|
102
106
|
client_wallet_account_id: nil,
|
|
103
107
|
# Name of digital wallet provider.
|
|
104
108
|
digital_wallet: nil,
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
class CardReassignAccountParams < Lithic::Internal::Type::BaseModel
|
|
6
|
+
extend Lithic::Internal::Type::RequestParameters::Converter
|
|
7
|
+
include Lithic::Internal::Type::RequestParameters
|
|
8
|
+
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(Lithic::CardReassignAccountParams, Lithic::Internal::AnyHash)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
sig { returns(String) }
|
|
15
|
+
attr_accessor :card_token
|
|
16
|
+
|
|
17
|
+
# Globally unique identifier for the account to associate with the card
|
|
18
|
+
sig { returns(String) }
|
|
19
|
+
attr_accessor :new_account_token
|
|
20
|
+
|
|
21
|
+
sig do
|
|
22
|
+
params(
|
|
23
|
+
card_token: String,
|
|
24
|
+
new_account_token: String,
|
|
25
|
+
request_options: Lithic::RequestOptions::OrHash
|
|
26
|
+
).returns(T.attached_class)
|
|
27
|
+
end
|
|
28
|
+
def self.new(
|
|
29
|
+
card_token:,
|
|
30
|
+
# Globally unique identifier for the account to associate with the card
|
|
31
|
+
new_account_token:,
|
|
32
|
+
request_options: {}
|
|
33
|
+
)
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
sig do
|
|
37
|
+
override.returns(
|
|
38
|
+
{
|
|
39
|
+
card_token: String,
|
|
40
|
+
new_account_token: String,
|
|
41
|
+
request_options: Lithic::RequestOptions
|
|
42
|
+
}
|
|
43
|
+
)
|
|
44
|
+
end
|
|
45
|
+
def to_hash
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|