lithic 0.19.0 → 0.20.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 +36 -0
- data/README.md +1 -1
- data/lib/lithic/client.rb +4 -0
- data/lib/lithic/models/auth_rules/ach_payment_update_action.rb +1 -0
- data/lib/lithic/models/auth_rules/card_transaction_update_action.rb +1 -0
- data/lib/lithic/models/auth_rules/v2_list_results_response.rb +2 -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/card.rb +2 -2
- 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/financial_account.rb +14 -1
- data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +3 -0
- data/lib/lithic/models/financial_event.rb +3 -0
- data/lib/lithic/models/payment.rb +67 -9
- data/lib/lithic/models/tokenization_simulate_params.rb +2 -2
- 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 +6 -0
- data/lib/lithic/resources/blockchain_recipients.rb +57 -0
- data/lib/lithic/resources/cards.rb +29 -2
- data/lib/lithic/resources/disputes_v2.rb +3 -1
- 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 +4 -0
- data/rbi/lithic/client.rbi +3 -0
- data/rbi/lithic/models/auth_rules/ach_payment_update_action.rbi +5 -0
- data/rbi/lithic/models/auth_rules/card_transaction_update_action.rbi +5 -0
- data/rbi/lithic/models/auth_rules/v2_list_results_response.rbi +10 -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/card.rbi +2 -2
- 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/financial_account.rbi +12 -0
- data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +15 -0
- data/rbi/lithic/models/financial_event.rbi +12 -0
- data/rbi/lithic/models/payment.rbi +106 -10
- data/rbi/lithic/models/tokenization_simulate_params.rbi +2 -2
- 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 +7 -0
- data/rbi/lithic/resources/blockchain_recipients.rbi +51 -0
- data/rbi/lithic/resources/cards.rbi +27 -6
- data/rbi/lithic/resources/disputes_v2.rbi +4 -0
- data/rbi/lithic/resources/tokenizations.rbi +1 -1
- data/rbi/lithic/resources/transaction_monitoring/cases.rbi +3 -1
- data/sig/lithic/client.rbs +2 -0
- data/sig/lithic/models/auth_rules/ach_payment_update_action.rbs +2 -1
- data/sig/lithic/models/auth_rules/card_transaction_update_action.rbs +2 -1
- data/sig/lithic/models/auth_rules/v2_list_results_response.rbs +4 -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/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/financial_account.rbs +5 -0
- data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +6 -0
- data/sig/lithic/models/financial_event.rbs +6 -0
- data/sig/lithic/models/payment.rbs +31 -1
- data/sig/lithic/models/transaction_monitoring/case_entity.rbs +7 -5
- data/sig/lithic/models.rbs +6 -0
- data/sig/lithic/resources/blockchain_recipients.rbs +18 -0
- data/sig/lithic/resources/cards.rbs +6 -0
- data/sig/lithic/resources/disputes_v2.rbs +1 -0
- metadata +14 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9a1dad385b89d74fc7b9228fc05beafec83f75a70f844981c069f5363224516c
|
|
4
|
+
data.tar.gz: ebf7bf2cb414e22297cec903a453e582a65ae88bcc9452a7151905d261504332
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e8c7901fb8cfcddae62cf0652149ce81862fb297ac35ee9e4494bdfee61a455feaa15821eeceaa13e41effba6ebfc3f87a6a10a9713d8110de617c5eff7252fe
|
|
7
|
+
data.tar.gz: 9e5d08fa9e5d110aab84ffe6e9afac0e093db30b2cdf41a582995669c342c94dffe7134d8cac89b96a975fa1ebe6f14d8e303e7f6a0bae8b6a393cb5ca5a3777
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,41 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.20.0 (2026-08-31)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.19.0...v0.20.0](https://github.com/lithic-com/lithic-ruby/compare/v0.19.0...v0.20.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** add blockchain_addresses field to FinancialAccount model ([c46e82c](https://github.com/lithic-com/lithic-ruby/commit/c46e82cc5bf4560c31adc1ebd6e991b55a1c3f2d))
|
|
10
|
+
* **api:** add blockchain_recipients resource ([437d522](https://github.com/lithic-com/lithic-ruby/commit/437d5226c1c6b1dfd8faaa70787e8b2ea533f14a))
|
|
11
|
+
* **api:** add claim_token field/param and WRITE_OFF_REVERSED to disputes v2 ([d32fe12](https://github.com/lithic-com/lithic-ruby/commit/d32fe12d9edaa339a12b61333e542f24c67f3c2e))
|
|
12
|
+
* **api:** add limit_cash_amount and limit_cash_count to velocity limit params ([4e4dfb7](https://github.com/lithic-com/lithic-ruby/commit/4e4dfb78069500939027ed67d445d63160cd9e1c))
|
|
13
|
+
* **api:** add PROGRAM scope to auth rules, FINANCIAL_ACCOUNT/PROGRAM to case_entity ([1520693](https://github.com/lithic-com/lithic-ruby/commit/15206930f871b13afd3852083c6bf778a83e6eb9))
|
|
14
|
+
* **api:** add reassign_account method to cards ([2f6bdfa](https://github.com/lithic-com/lithic-ruby/commit/2f6bdfaf9f1c6c9128e765e10b495252ca9711ce))
|
|
15
|
+
* **api:** add STABLECOIN enum value to payment type ([5151e5d](https://github.com/lithic-com/lithic-ruby/commit/5151e5d6276054b59f41d32af07efae6badabcbb))
|
|
16
|
+
* **api:** add stablecoin event types to payment/financial_event/statement_line_items ([2f1fbca](https://github.com/lithic-com/lithic-ruby/commit/2f1fbca332e111e3624d834a774db3f7d979f4a4))
|
|
17
|
+
* **api:** add STABLECOIN method, make method_attributes nullable in Payment ([6ecbe70](https://github.com/lithic-com/lithic-ruby/commit/6ecbe702c2e3d1cd3e5623cecf46e4bc02fb3b41))
|
|
18
|
+
* **api:** add stablecoin payment method type to payments ([80e026a](https://github.com/lithic-com/lithic-ruby/commit/80e026ae4b67579db63140dcaa70c44409b47b83))
|
|
19
|
+
* **api:** add stablecoin_inbound/stablecoin_outbound to payment type enum ([087861b](https://github.com/lithic-com/lithic-ruby/commit/087861b820756e52b92ff69b5d7929109e27ba59))
|
|
20
|
+
* Make blockchain recipient account_token nullable ([ce96330](https://github.com/lithic-com/lithic-ruby/commit/ce96330d08b6f3b9bbc4ee1011dcc7080f839a38))
|
|
21
|
+
* Remove stablecoin transfer type ([41e80f8](https://github.com/lithic-com/lithic-ruby/commit/41e80f87c3b3a3167f97c4657acd71cf28bc3074))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Bug Fixes
|
|
25
|
+
|
|
26
|
+
* **types:** rename event data variants, remove type discriminator in dispute_v2 ([aeedd0a](https://github.com/lithic-com/lithic-ruby/commit/aeedd0ab75d527323dc8a748af1ea86a95f52ac5))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Chores
|
|
30
|
+
|
|
31
|
+
* **internal:** allow the mock server port to be set with STAINLESS_MOCK_PORT ([0fbeb86](https://github.com/lithic-com/lithic-ruby/commit/0fbeb86633809668c1bd304a40b2f23860b232be))
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### Documentation
|
|
35
|
+
|
|
36
|
+
* **api:** update client_device_id and client_wallet_account_id descriptions in card provision ([e5cd94f](https://github.com/lithic-com/lithic-ruby/commit/e5cd94f58dbafc40ab1f2e25182b4b559d2ed258))
|
|
37
|
+
* **api:** update cvv field documentation in Card and tokenization ([b520213](https://github.com/lithic-com/lithic-ruby/commit/b520213ceec3af853f96b5ca9e8ef32a34169a0a))
|
|
38
|
+
|
|
3
39
|
## 0.19.0 (2026-07-30)
|
|
4
40
|
|
|
5
41
|
Full Changelog: [v0.18.1...v0.19.0](https://github.com/lithic-com/lithic-ruby/compare/v0.18.1...v0.19.0)
|
data/README.md
CHANGED
data/lib/lithic/client.rb
CHANGED
|
@@ -83,6 +83,9 @@ module Lithic
|
|
|
83
83
|
# @return [Lithic::Resources::ExternalBankAccounts]
|
|
84
84
|
attr_reader :external_bank_accounts
|
|
85
85
|
|
|
86
|
+
# @return [Lithic::Resources::BlockchainRecipients]
|
|
87
|
+
attr_reader :blockchain_recipients
|
|
88
|
+
|
|
86
89
|
# @return [Lithic::Resources::Payments]
|
|
87
90
|
attr_reader :payments
|
|
88
91
|
|
|
@@ -240,6 +243,7 @@ module Lithic
|
|
|
240
243
|
@transactions = Lithic::Resources::Transactions.new(client: self)
|
|
241
244
|
@responder_endpoints = Lithic::Resources::ResponderEndpoints.new(client: self)
|
|
242
245
|
@external_bank_accounts = Lithic::Resources::ExternalBankAccounts.new(client: self)
|
|
246
|
+
@blockchain_recipients = Lithic::Resources::BlockchainRecipients.new(client: self)
|
|
243
247
|
@payments = Lithic::Resources::Payments.new(client: self)
|
|
244
248
|
@three_ds = Lithic::Resources::ThreeDS.new(client: self)
|
|
245
249
|
@reports = Lithic::Resources::Reports.new(client: self)
|
|
@@ -1059,6 +1059,7 @@ module Lithic
|
|
|
1059
1059
|
|
|
1060
1060
|
CARD = :CARD
|
|
1061
1061
|
ACCOUNT = :ACCOUNT
|
|
1062
|
+
PROGRAM = :PROGRAM
|
|
1062
1063
|
|
|
1063
1064
|
# @!method self.values
|
|
1064
1065
|
# @return [Array<Symbol>]
|
|
@@ -1269,6 +1270,7 @@ module Lithic
|
|
|
1269
1270
|
extend Lithic::Internal::Type::Enum
|
|
1270
1271
|
|
|
1271
1272
|
FINANCIAL_ACCOUNT = :FINANCIAL_ACCOUNT
|
|
1273
|
+
PROGRAM = :PROGRAM
|
|
1272
1274
|
|
|
1273
1275
|
# @!method self.values
|
|
1274
1276
|
# @return [Array<Symbol>]
|
|
@@ -29,6 +29,25 @@ module Lithic
|
|
|
29
29
|
# @return [Integer, nil]
|
|
30
30
|
optional :limit_amount, Integer, nil?: true
|
|
31
31
|
|
|
32
|
+
# @!attribute limit_cash_amount
|
|
33
|
+
# The maximum amount of cash spend velocity allowed in the period in minor units
|
|
34
|
+
# (the smallest unit of a currency, e.g. cents for USD). Cash spend covers ATM
|
|
35
|
+
# withdrawals, cash disbursements, and purchases with cashback. Transactions
|
|
36
|
+
# exceeding this limit will be declined.
|
|
37
|
+
#
|
|
38
|
+
# @return [Integer, nil]
|
|
39
|
+
optional :limit_cash_amount, Integer, nil?: true
|
|
40
|
+
|
|
41
|
+
# @!attribute limit_cash_count
|
|
42
|
+
# The number of cash spend velocity impacting transactions may not exceed this
|
|
43
|
+
# limit in the period. Transactions exceeding this limit will be declined. A cash
|
|
44
|
+
# velocity impacting transaction is an ATM withdrawal, cash disbursement, or
|
|
45
|
+
# purchase with cashback that has been authorized, and optionally settled, or a
|
|
46
|
+
# force post (a transaction that settled without prior authorization).
|
|
47
|
+
#
|
|
48
|
+
# @return [Integer, nil]
|
|
49
|
+
optional :limit_cash_count, Integer, nil?: true
|
|
50
|
+
|
|
32
51
|
# @!attribute limit_count
|
|
33
52
|
# The number of spend velocity impacting transactions may not exceed this limit in
|
|
34
53
|
# the period. Transactions exceeding this limit will be declined. A spend velocity
|
|
@@ -39,7 +58,7 @@ module Lithic
|
|
|
39
58
|
# @return [Integer, nil]
|
|
40
59
|
optional :limit_count, Integer, nil?: true
|
|
41
60
|
|
|
42
|
-
# @!method initialize(period:, scope:, filters: nil, limit_amount: nil, limit_count: nil)
|
|
61
|
+
# @!method initialize(period:, scope:, filters: nil, limit_amount: nil, limit_cash_amount: nil, limit_cash_count: nil, limit_count: nil)
|
|
43
62
|
# Some parameter documentations has been truncated, see
|
|
44
63
|
# {Lithic::Models::AuthRules::VelocityLimitParams} for more details.
|
|
45
64
|
#
|
|
@@ -51,6 +70,10 @@ module Lithic
|
|
|
51
70
|
#
|
|
52
71
|
# @param limit_amount [Integer, nil] The maximum amount of spend velocity allowed in the period in minor units (the s
|
|
53
72
|
#
|
|
73
|
+
# @param limit_cash_amount [Integer, nil] The maximum amount of cash spend velocity allowed in the period in minor units (
|
|
74
|
+
#
|
|
75
|
+
# @param limit_cash_count [Integer, nil] The number of cash spend velocity impacting transactions may not exceed this lim
|
|
76
|
+
#
|
|
54
77
|
# @param limit_count [Integer, nil] The number of spend velocity impacting transactions may not exceed this limit in
|
|
55
78
|
|
|
56
79
|
# The scope the velocity is calculated for
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
# @see Lithic::Resources::BlockchainRecipients#create
|
|
6
|
+
class BlockchainRecipient < Lithic::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute token
|
|
8
|
+
# A globally unique identifier for this blockchain recipient
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
required :token, String
|
|
12
|
+
|
|
13
|
+
# @!attribute account_token
|
|
14
|
+
# The financial account the blockchain recipient belongs to, or null when the
|
|
15
|
+
# recipient is registered against the program rather than a financial account
|
|
16
|
+
#
|
|
17
|
+
# @return [String, nil]
|
|
18
|
+
required :account_token, String, nil?: true
|
|
19
|
+
|
|
20
|
+
# @!attribute address_tag
|
|
21
|
+
# An optional tag or memo used by some chains to identify the destination of a
|
|
22
|
+
# transfer within a shared address
|
|
23
|
+
#
|
|
24
|
+
# @return [String, nil]
|
|
25
|
+
required :address_tag, String, nil?: true
|
|
26
|
+
|
|
27
|
+
# @!attribute chain
|
|
28
|
+
# The blockchain network that the address belongs to
|
|
29
|
+
#
|
|
30
|
+
# @return [String]
|
|
31
|
+
required :chain, String
|
|
32
|
+
|
|
33
|
+
# @!attribute created
|
|
34
|
+
# An ISO 8601 string representing when this blockchain recipient was created
|
|
35
|
+
#
|
|
36
|
+
# @return [Time]
|
|
37
|
+
required :created, Time
|
|
38
|
+
|
|
39
|
+
# @!attribute external_id
|
|
40
|
+
# The identifier the recipient is registered under with the payment provider
|
|
41
|
+
#
|
|
42
|
+
# @return [String, nil]
|
|
43
|
+
required :external_id, String, nil?: true
|
|
44
|
+
|
|
45
|
+
# @!attribute name
|
|
46
|
+
# The nickname for this blockchain recipient
|
|
47
|
+
#
|
|
48
|
+
# @return [String, nil]
|
|
49
|
+
required :name, String, nil?: true
|
|
50
|
+
|
|
51
|
+
# @!attribute owner
|
|
52
|
+
# Legal name of the business or individual who owns the blockchain address
|
|
53
|
+
#
|
|
54
|
+
# @return [String]
|
|
55
|
+
required :owner, String
|
|
56
|
+
|
|
57
|
+
# @!attribute owner_type
|
|
58
|
+
# Owner Type
|
|
59
|
+
#
|
|
60
|
+
# @return [Symbol, Lithic::Models::OwnerType]
|
|
61
|
+
required :owner_type, enum: -> { Lithic::OwnerType }
|
|
62
|
+
|
|
63
|
+
# @!attribute program_id
|
|
64
|
+
# Globally unique identifier for the program the blockchain recipient is
|
|
65
|
+
# associated with
|
|
66
|
+
#
|
|
67
|
+
# @return [String]
|
|
68
|
+
required :program_id, String
|
|
69
|
+
|
|
70
|
+
# @!attribute state
|
|
71
|
+
# Account State
|
|
72
|
+
#
|
|
73
|
+
# @return [Symbol, Lithic::Models::BlockchainRecipient::State]
|
|
74
|
+
required :state, enum: -> { Lithic::BlockchainRecipient::State }
|
|
75
|
+
|
|
76
|
+
# @!attribute updated
|
|
77
|
+
# An ISO 8601 string representing when this blockchain recipient was last updated
|
|
78
|
+
#
|
|
79
|
+
# @return [Time]
|
|
80
|
+
required :updated, Time
|
|
81
|
+
|
|
82
|
+
# @!attribute verification_state
|
|
83
|
+
# Verification State
|
|
84
|
+
#
|
|
85
|
+
# @return [Symbol, Lithic::Models::BlockchainRecipient::VerificationState]
|
|
86
|
+
required :verification_state, enum: -> { Lithic::BlockchainRecipient::VerificationState }
|
|
87
|
+
|
|
88
|
+
# @!method initialize(token:, account_token:, address_tag:, chain:, created:, external_id:, name:, owner:, owner_type:, program_id:, state:, updated:, verification_state:)
|
|
89
|
+
# Some parameter documentations has been truncated, see
|
|
90
|
+
# {Lithic::Models::BlockchainRecipient} for more details.
|
|
91
|
+
#
|
|
92
|
+
# @param token [String] A globally unique identifier for this blockchain recipient
|
|
93
|
+
#
|
|
94
|
+
# @param account_token [String, nil] The financial account the blockchain recipient belongs to, or null when the reci
|
|
95
|
+
#
|
|
96
|
+
# @param address_tag [String, nil] An optional tag or memo used by some chains to identify the destination of a tra
|
|
97
|
+
#
|
|
98
|
+
# @param chain [String] The blockchain network that the address belongs to
|
|
99
|
+
#
|
|
100
|
+
# @param created [Time] An ISO 8601 string representing when this blockchain recipient was created
|
|
101
|
+
#
|
|
102
|
+
# @param external_id [String, nil] The identifier the recipient is registered under with the payment provider
|
|
103
|
+
#
|
|
104
|
+
# @param name [String, nil] The nickname for this blockchain recipient
|
|
105
|
+
#
|
|
106
|
+
# @param owner [String] Legal name of the business or individual who owns the blockchain address
|
|
107
|
+
#
|
|
108
|
+
# @param owner_type [Symbol, Lithic::Models::OwnerType] Owner Type
|
|
109
|
+
#
|
|
110
|
+
# @param program_id [String] Globally unique identifier for the program the blockchain recipient is associate
|
|
111
|
+
#
|
|
112
|
+
# @param state [Symbol, Lithic::Models::BlockchainRecipient::State] Account State
|
|
113
|
+
#
|
|
114
|
+
# @param updated [Time] An ISO 8601 string representing when this blockchain recipient was last updated
|
|
115
|
+
#
|
|
116
|
+
# @param verification_state [Symbol, Lithic::Models::BlockchainRecipient::VerificationState] Verification State
|
|
117
|
+
|
|
118
|
+
# Account State
|
|
119
|
+
#
|
|
120
|
+
# @see Lithic::Models::BlockchainRecipient#state
|
|
121
|
+
module State
|
|
122
|
+
extend Lithic::Internal::Type::Enum
|
|
123
|
+
|
|
124
|
+
ENABLED = :ENABLED
|
|
125
|
+
CLOSED = :CLOSED
|
|
126
|
+
PAUSED = :PAUSED
|
|
127
|
+
|
|
128
|
+
# @!method self.values
|
|
129
|
+
# @return [Array<Symbol>]
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
# Verification State
|
|
133
|
+
#
|
|
134
|
+
# @see Lithic::Models::BlockchainRecipient#verification_state
|
|
135
|
+
module VerificationState
|
|
136
|
+
extend Lithic::Internal::Type::Enum
|
|
137
|
+
|
|
138
|
+
PENDING = :PENDING
|
|
139
|
+
ENABLED = :ENABLED
|
|
140
|
+
FAILED_VERIFICATION = :FAILED_VERIFICATION
|
|
141
|
+
INSUFFICIENT_FUNDS = :INSUFFICIENT_FUNDS
|
|
142
|
+
|
|
143
|
+
# @!method self.values
|
|
144
|
+
# @return [Array<Symbol>]
|
|
145
|
+
end
|
|
146
|
+
end
|
|
147
|
+
end
|
|
148
|
+
end
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
# @see Lithic::Resources::BlockchainRecipients#create
|
|
6
|
+
class BlockchainRecipientCreateParams < Lithic::Internal::Type::BaseModel
|
|
7
|
+
extend Lithic::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Lithic::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute account_token
|
|
11
|
+
# The financial account the blockchain recipient belongs to
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :account_token, String
|
|
15
|
+
|
|
16
|
+
# @!attribute address
|
|
17
|
+
# The blockchain address funds will be withdrawn to
|
|
18
|
+
#
|
|
19
|
+
# @return [String]
|
|
20
|
+
required :address, String
|
|
21
|
+
|
|
22
|
+
# @!attribute chain
|
|
23
|
+
# The blockchain network that the address belongs to
|
|
24
|
+
#
|
|
25
|
+
# @return [String]
|
|
26
|
+
required :chain, String
|
|
27
|
+
|
|
28
|
+
# @!attribute owner
|
|
29
|
+
# Legal name of the business or individual who owns the blockchain address
|
|
30
|
+
#
|
|
31
|
+
# @return [String]
|
|
32
|
+
required :owner, String
|
|
33
|
+
|
|
34
|
+
# @!attribute owner_type
|
|
35
|
+
# Owner Type
|
|
36
|
+
#
|
|
37
|
+
# @return [Symbol, Lithic::Models::OwnerType]
|
|
38
|
+
required :owner_type, enum: -> { Lithic::OwnerType }
|
|
39
|
+
|
|
40
|
+
# @!attribute address_tag
|
|
41
|
+
# An optional tag or memo used by some chains to identify the destination of a
|
|
42
|
+
# transfer within a shared address
|
|
43
|
+
#
|
|
44
|
+
# @return [String, nil]
|
|
45
|
+
optional :address_tag, String
|
|
46
|
+
|
|
47
|
+
# @!attribute name
|
|
48
|
+
# The nickname for this blockchain recipient
|
|
49
|
+
#
|
|
50
|
+
# @return [String, nil]
|
|
51
|
+
optional :name, String
|
|
52
|
+
|
|
53
|
+
# @!method initialize(account_token:, address:, chain:, owner:, owner_type:, address_tag: nil, name: nil, request_options: {})
|
|
54
|
+
# Some parameter documentations has been truncated, see
|
|
55
|
+
# {Lithic::Models::BlockchainRecipientCreateParams} for more details.
|
|
56
|
+
#
|
|
57
|
+
# @param account_token [String] The financial account the blockchain recipient belongs to
|
|
58
|
+
#
|
|
59
|
+
# @param address [String] The blockchain address funds will be withdrawn to
|
|
60
|
+
#
|
|
61
|
+
# @param chain [String] The blockchain network that the address belongs to
|
|
62
|
+
#
|
|
63
|
+
# @param owner [String] Legal name of the business or individual who owns the blockchain address
|
|
64
|
+
#
|
|
65
|
+
# @param owner_type [Symbol, Lithic::Models::OwnerType] Owner Type
|
|
66
|
+
#
|
|
67
|
+
# @param address_tag [String] An optional tag or memo used by some chains to identify the destination of a tra
|
|
68
|
+
#
|
|
69
|
+
# @param name [String] The nickname for this blockchain recipient
|
|
70
|
+
#
|
|
71
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
data/lib/lithic/models/card.rb
CHANGED
|
@@ -5,7 +5,7 @@ module Lithic
|
|
|
5
5
|
# @see Lithic::Resources::Cards#create
|
|
6
6
|
class Card < Lithic::Models::NonPCICard
|
|
7
7
|
# @!attribute cvv
|
|
8
|
-
# Three digit
|
|
8
|
+
# Three or four digit CVV printed on the card. Amex cards use four digit CVVs
|
|
9
9
|
#
|
|
10
10
|
# @return [String, nil]
|
|
11
11
|
optional :cvv, String
|
|
@@ -24,7 +24,7 @@ module Lithic
|
|
|
24
24
|
#
|
|
25
25
|
# Card details with potentially PCI sensitive information for Enterprise customers
|
|
26
26
|
#
|
|
27
|
-
# @param cvv [String] Three digit
|
|
27
|
+
# @param cvv [String] Three or four digit CVV printed on the card. Amex cards use four digit CVVs
|
|
28
28
|
#
|
|
29
29
|
# @param pan [String] Primary Account Number (PAN) (i.e. the card number). Customers must be PCI compl
|
|
30
30
|
end
|
|
@@ -22,17 +22,19 @@ module Lithic
|
|
|
22
22
|
optional :certificate, String
|
|
23
23
|
|
|
24
24
|
# @!attribute client_device_id
|
|
25
|
-
# Only applicable if `digital_wallet` is `GOOGLE_PAY` or `SAMSUNG_PAY
|
|
26
|
-
#
|
|
27
|
-
#
|
|
25
|
+
# Only applicable if `digital_wallet` is `GOOGLE_PAY` or `SAMSUNG_PAY`. Stable
|
|
26
|
+
# device identification set by the wallet provider. Required for both wallets
|
|
27
|
+
# regardless of network, though the value is only used for cards on the Visa
|
|
28
|
+
# network and is ignored on Amex and Mastercard.
|
|
28
29
|
#
|
|
29
30
|
# @return [String, nil]
|
|
30
31
|
optional :client_device_id, String
|
|
31
32
|
|
|
32
33
|
# @!attribute client_wallet_account_id
|
|
33
|
-
# Only applicable if `digital_wallet` is `GOOGLE_PAY` or `SAMSUNG_PAY
|
|
34
|
-
#
|
|
35
|
-
#
|
|
34
|
+
# Only applicable if `digital_wallet` is `GOOGLE_PAY` or `SAMSUNG_PAY`. Consumer
|
|
35
|
+
# ID that identifies the wallet account holder entity. Required for both wallets
|
|
36
|
+
# regardless of network, though the value is only used for cards on the Visa
|
|
37
|
+
# network and is ignored on Amex and Mastercard.
|
|
36
38
|
#
|
|
37
39
|
# @return [String, nil]
|
|
38
40
|
optional :client_wallet_account_id, String
|
|
@@ -67,9 +69,9 @@ module Lithic
|
|
|
67
69
|
#
|
|
68
70
|
# @param certificate [String] Only applicable if `digital_wallet` is `APPLE_PAY`. Omit to receive only `activa
|
|
69
71
|
#
|
|
70
|
-
# @param client_device_id [String] Only applicable if `digital_wallet` is `GOOGLE_PAY` or `SAMSUNG_PAY
|
|
72
|
+
# @param client_device_id [String] Only applicable if `digital_wallet` is `GOOGLE_PAY` or `SAMSUNG_PAY`. Stable dev
|
|
71
73
|
#
|
|
72
|
-
# @param client_wallet_account_id [String] Only applicable if `digital_wallet` is `GOOGLE_PAY` or `SAMSUNG_PAY
|
|
74
|
+
# @param client_wallet_account_id [String] Only applicable if `digital_wallet` is `GOOGLE_PAY` or `SAMSUNG_PAY`. Consumer I
|
|
73
75
|
#
|
|
74
76
|
# @param digital_wallet [Symbol, Lithic::Models::CardProvisionParams::DigitalWallet] Name of digital wallet provider.
|
|
75
77
|
#
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
# @see Lithic::Resources::Cards#reassign_account
|
|
6
|
+
class CardReassignAccountParams < Lithic::Internal::Type::BaseModel
|
|
7
|
+
extend Lithic::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Lithic::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute card_token
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :card_token, String
|
|
14
|
+
|
|
15
|
+
# @!attribute new_account_token
|
|
16
|
+
# Globally unique identifier for the account to associate with the card
|
|
17
|
+
#
|
|
18
|
+
# @return [String]
|
|
19
|
+
required :new_account_token, String
|
|
20
|
+
|
|
21
|
+
# @!method initialize(card_token:, new_account_token:, request_options: {})
|
|
22
|
+
# @param card_token [String]
|
|
23
|
+
#
|
|
24
|
+
# @param new_account_token [String] Globally unique identifier for the account to associate with the card
|
|
25
|
+
#
|
|
26
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|