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
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9e9f6ed3184bfb671fac6deab7e1e5a01108b92a3f4adc97e15bd4539c5d69d1
|
|
4
|
+
data.tar.gz: d9f0cd5fa590316ed27b0de33185eff8342f2fa4e885720f6648d4f871d8ef5b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9958c2f72d732e9b67960ffc80a089edf988feaaed6347d6946c4efa56aae6898d549507dfa3921b5399d2d099a0fa3bc204b8c4967a4ebf11b4e6494cdb56b1
|
|
7
|
+
data.tar.gz: ea002ba56ac10e779df7971feea5b3b6b752b3172feaf69e22abf4248df595b4574e17af419b6f690156b1c0f3663cf81b4a3f43da79eb24b3ef2de02eac4fc1
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,66 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.21.0 (2026-09-18)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.20.0...v0.21.0](https://github.com/lithic-com/lithic-ruby/compare/v0.20.0...v0.21.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* [CARDS-5174] Add reiusse/renew 409 error ([2fc8f3b](https://github.com/lithic-com/lithic-ruby/commit/2fc8f3b93ff2e392d8eda8e343d21e423c214191))
|
|
10
|
+
* [TRE-14464] Update /retry payments endpoint to accept method ([6031d67](https://github.com/lithic-com/lithic-ruby/commit/6031d6794afd8c3a4b121cf2f7368e0ac40867c0))
|
|
11
|
+
* [TRE-14524] Add Open to buy API spec ([bdf043e](https://github.com/lithic-com/lithic-ruby/commit/bdf043e53ac45964c091134b25fb7a3023948397))
|
|
12
|
+
* Add missing blockchain/stablecoin endpoints to the spec ([3e8c0dc](https://github.com/lithic-com/lithic-ruby/commit/3e8c0dcdaa7169ba0a47bea4493e71d778af8853))
|
|
13
|
+
* **api:** add EXTERNAL_STABLECOIN category and events to payment resources ([518aebb](https://github.com/lithic-com/lithic-ruby/commit/518aebb0cf94cbc0b1ca1ef85a94a71c5bf1983e))
|
|
14
|
+
* **api:** add FEE/FEE_REVERSAL to financial_event, statement_line_items, management_operation ([04690f1](https://github.com/lithic-com/lithic-ruby/commit/04690f1542cb3f213da8695507a371c4f0a5aed4))
|
|
15
|
+
* **api:** add OTHER enum value to auth_rules type field ([1bb4cc8](https://github.com/lithic-com/lithic-ruby/commit/1bb4cc80ab6e025ebf0d6fcdd88c5b62cbb602a0))
|
|
16
|
+
* **api:** add psd2_context field to three_ds_authentication ([19e526e](https://github.com/lithic-com/lithic-ruby/commit/19e526e916227881e91ac1dac42e75d86132451e))
|
|
17
|
+
* **api:** add retrieve/list methods to financial_accounts installment_plans ([13b25f3](https://github.com/lithic-com/lithic-ruby/commit/13b25f3cef123eedc918ab5730aacb64114175fe))
|
|
18
|
+
* **api:** add STABLECOIN_REVIEWED event type to payment simulate action ([766c658](https://github.com/lithic-com/lithic-ruby/commit/766c658645a79accfca85707ce6d5c087d93959e))
|
|
19
|
+
* AUTH-3759: Add DECLINE_SCA_REQUIRED and SCA_REQUIRED enum entries ([e784b27](https://github.com/lithic-com/lithic-ruby/commit/e784b275c2690eb0d2ab4a36a3ee9f5af2f79b0b))
|
|
20
|
+
* TRE-14349: add installment plan management operation event types ([bd71bde](https://github.com/lithic-com/lithic-ruby/commit/bd71bde5d20641e236b5b2e95908293bf0ef48e9))
|
|
21
|
+
* TRE-14429: Document the stablecoin payments endpoint ([050c7bd](https://github.com/lithic-com/lithic-ruby/commit/050c7bdd679e3c090c6e1819c0aa3405e3cbfc0c))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Documentation
|
|
25
|
+
|
|
26
|
+
* Document the card.pin_updated webhook ([b96e92e](https://github.com/lithic-com/lithic-ruby/commit/b96e92e36fa4ae4dab543d1cc639d807f810b967))
|
|
27
|
+
|
|
28
|
+
## 0.20.0 (2026-08-31)
|
|
29
|
+
|
|
30
|
+
Full Changelog: [v0.19.0...v0.20.0](https://github.com/lithic-com/lithic-ruby/compare/v0.19.0...v0.20.0)
|
|
31
|
+
|
|
32
|
+
### Features
|
|
33
|
+
|
|
34
|
+
* **api:** add blockchain_addresses field to FinancialAccount model ([c46e82c](https://github.com/lithic-com/lithic-ruby/commit/c46e82cc5bf4560c31adc1ebd6e991b55a1c3f2d))
|
|
35
|
+
* **api:** add blockchain_recipients resource ([437d522](https://github.com/lithic-com/lithic-ruby/commit/437d5226c1c6b1dfd8faaa70787e8b2ea533f14a))
|
|
36
|
+
* **api:** add claim_token field/param and WRITE_OFF_REVERSED to disputes v2 ([d32fe12](https://github.com/lithic-com/lithic-ruby/commit/d32fe12d9edaa339a12b61333e542f24c67f3c2e))
|
|
37
|
+
* **api:** add limit_cash_amount and limit_cash_count to velocity limit params ([4e4dfb7](https://github.com/lithic-com/lithic-ruby/commit/4e4dfb78069500939027ed67d445d63160cd9e1c))
|
|
38
|
+
* **api:** add PROGRAM scope to auth rules, FINANCIAL_ACCOUNT/PROGRAM to case_entity ([1520693](https://github.com/lithic-com/lithic-ruby/commit/15206930f871b13afd3852083c6bf778a83e6eb9))
|
|
39
|
+
* **api:** add reassign_account method to cards ([2f6bdfa](https://github.com/lithic-com/lithic-ruby/commit/2f6bdfaf9f1c6c9128e765e10b495252ca9711ce))
|
|
40
|
+
* **api:** add STABLECOIN enum value to payment type ([5151e5d](https://github.com/lithic-com/lithic-ruby/commit/5151e5d6276054b59f41d32af07efae6badabcbb))
|
|
41
|
+
* **api:** add stablecoin event types to payment/financial_event/statement_line_items ([2f1fbca](https://github.com/lithic-com/lithic-ruby/commit/2f1fbca332e111e3624d834a774db3f7d979f4a4))
|
|
42
|
+
* **api:** add STABLECOIN method, make method_attributes nullable in Payment ([6ecbe70](https://github.com/lithic-com/lithic-ruby/commit/6ecbe702c2e3d1cd3e5623cecf46e4bc02fb3b41))
|
|
43
|
+
* **api:** add stablecoin payment method type to payments ([80e026a](https://github.com/lithic-com/lithic-ruby/commit/80e026ae4b67579db63140dcaa70c44409b47b83))
|
|
44
|
+
* **api:** add stablecoin_inbound/stablecoin_outbound to payment type enum ([087861b](https://github.com/lithic-com/lithic-ruby/commit/087861b820756e52b92ff69b5d7929109e27ba59))
|
|
45
|
+
* Make blockchain recipient account_token nullable ([ce96330](https://github.com/lithic-com/lithic-ruby/commit/ce96330d08b6f3b9bbc4ee1011dcc7080f839a38))
|
|
46
|
+
* Remove stablecoin transfer type ([41e80f8](https://github.com/lithic-com/lithic-ruby/commit/41e80f87c3b3a3167f97c4657acd71cf28bc3074))
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
### Bug Fixes
|
|
50
|
+
|
|
51
|
+
* **types:** rename event data variants, remove type discriminator in dispute_v2 ([aeedd0a](https://github.com/lithic-com/lithic-ruby/commit/aeedd0ab75d527323dc8a748af1ea86a95f52ac5))
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
### Chores
|
|
55
|
+
|
|
56
|
+
* **internal:** allow the mock server port to be set with STAINLESS_MOCK_PORT ([0fbeb86](https://github.com/lithic-com/lithic-ruby/commit/0fbeb86633809668c1bd304a40b2f23860b232be))
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
### Documentation
|
|
60
|
+
|
|
61
|
+
* **api:** update client_device_id and client_wallet_account_id descriptions in card provision ([e5cd94f](https://github.com/lithic-com/lithic-ruby/commit/e5cd94f58dbafc40ab1f2e25182b4b559d2ed258))
|
|
62
|
+
* **api:** update cvv field documentation in Card and tokenization ([b520213](https://github.com/lithic-com/lithic-ruby/commit/b520213ceec3af853f96b5ca9e8ef32a34169a0a))
|
|
63
|
+
|
|
3
64
|
## 0.19.0 (2026-07-30)
|
|
4
65
|
|
|
5
66
|
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)
|
|
@@ -123,6 +123,7 @@ module Lithic
|
|
|
123
123
|
EXTERNAL_CHECK = :EXTERNAL_CHECK
|
|
124
124
|
EXTERNAL_FEDNOW = :EXTERNAL_FEDNOW
|
|
125
125
|
EXTERNAL_RTP = :EXTERNAL_RTP
|
|
126
|
+
EXTERNAL_STABLECOIN = :EXTERNAL_STABLECOIN
|
|
126
127
|
EXTERNAL_TRANSFER = :EXTERNAL_TRANSFER
|
|
127
128
|
EXTERNAL_WIRE = :EXTERNAL_WIRE
|
|
128
129
|
MANAGEMENT_ADJUSTMENT = :MANAGEMENT_ADJUSTMENT
|
|
@@ -162,6 +162,7 @@ module Lithic
|
|
|
162
162
|
EXTERNAL_CHECK = :EXTERNAL_CHECK
|
|
163
163
|
EXTERNAL_FEDNOW = :EXTERNAL_FEDNOW
|
|
164
164
|
EXTERNAL_RTP = :EXTERNAL_RTP
|
|
165
|
+
EXTERNAL_STABLECOIN = :EXTERNAL_STABLECOIN
|
|
165
166
|
EXTERNAL_TRANSFER = :EXTERNAL_TRANSFER
|
|
166
167
|
EXTERNAL_WIRE = :EXTERNAL_WIRE
|
|
167
168
|
MANAGEMENT_ADJUSTMENT = :MANAGEMENT_ADJUSTMENT
|
|
@@ -165,6 +165,7 @@ module Lithic
|
|
|
165
165
|
EXTERNAL_CHECK = :EXTERNAL_CHECK
|
|
166
166
|
EXTERNAL_FEDNOW = :EXTERNAL_FEDNOW
|
|
167
167
|
EXTERNAL_RTP = :EXTERNAL_RTP
|
|
168
|
+
EXTERNAL_STABLECOIN = :EXTERNAL_STABLECOIN
|
|
168
169
|
EXTERNAL_TRANSFER = :EXTERNAL_TRANSFER
|
|
169
170
|
EXTERNAL_WIRE = :EXTERNAL_WIRE
|
|
170
171
|
MANAGEMENT_ADJUSTMENT = :MANAGEMENT_ADJUSTMENT
|
|
@@ -86,6 +86,8 @@ module Lithic
|
|
|
86
86
|
# - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
87
87
|
# ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
|
|
88
88
|
# ACH_PAYMENT_UPDATE event stream.
|
|
89
|
+
# - `OTHER`: A rule whose type is not exposed through this API. Rules of this type
|
|
90
|
+
# are read-only; `OTHER` cannot be used when creating a rule.
|
|
89
91
|
#
|
|
90
92
|
# @return [Symbol, Lithic::Models::AuthRules::AuthRule::Type]
|
|
91
93
|
required :type, enum: -> { Lithic::AuthRules::AuthRule::Type }
|
|
@@ -339,6 +341,8 @@ module Lithic
|
|
|
339
341
|
# - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
340
342
|
# ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
|
|
341
343
|
# ACH_PAYMENT_UPDATE event stream.
|
|
344
|
+
# - `OTHER`: A rule whose type is not exposed through this API. Rules of this type
|
|
345
|
+
# are read-only; `OTHER` cannot be used when creating a rule.
|
|
342
346
|
#
|
|
343
347
|
# @see Lithic::Models::AuthRules::AuthRule#type
|
|
344
348
|
module Type
|
|
@@ -349,6 +353,7 @@ module Lithic
|
|
|
349
353
|
MERCHANT_LOCK = :MERCHANT_LOCK
|
|
350
354
|
CONDITIONAL_ACTION = :CONDITIONAL_ACTION
|
|
351
355
|
TYPESCRIPT_CODE = :TYPESCRIPT_CODE
|
|
356
|
+
OTHER = :OTHER
|
|
352
357
|
|
|
353
358
|
# @!method self.values
|
|
354
359
|
# @return [Array<Symbol>]
|
|
@@ -166,6 +166,7 @@ module Lithic
|
|
|
166
166
|
PROGRAM_SUSPENDED = :PROGRAM_SUSPENDED
|
|
167
167
|
PROGRAM_USAGE_RESTRICTION = :PROGRAM_USAGE_RESTRICTION
|
|
168
168
|
REVERSAL_UNMATCHED = :REVERSAL_UNMATCHED
|
|
169
|
+
SCA_REQUIRED = :SCA_REQUIRED
|
|
169
170
|
SECURITY_VIOLATION = :SECURITY_VIOLATION
|
|
170
171
|
SINGLE_USE_CARD_REATTEMPTED = :SINGLE_USE_CARD_REATTEMPTED
|
|
171
172
|
SUSPECTED_FRAUD = :SUSPECTED_FRAUD
|
|
@@ -49,6 +49,8 @@ module Lithic
|
|
|
49
49
|
# - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
50
50
|
# ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
|
|
51
51
|
# ACH_PAYMENT_UPDATE event stream.
|
|
52
|
+
# - `OTHER`: A rule whose type is not exposed through this API. Rules of this type
|
|
53
|
+
# are read-only; `OTHER` cannot be used when creating a rule.
|
|
52
54
|
#
|
|
53
55
|
# @return [Symbol, Lithic::Models::AuthRules::V2CreateParams::Body::AccountLevelRule::Type]
|
|
54
56
|
required :type, enum: -> { Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::Type }
|
|
@@ -143,6 +145,8 @@ module Lithic
|
|
|
143
145
|
# - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
144
146
|
# ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
|
|
145
147
|
# ACH_PAYMENT_UPDATE event stream.
|
|
148
|
+
# - `OTHER`: A rule whose type is not exposed through this API. Rules of this type
|
|
149
|
+
# are read-only; `OTHER` cannot be used when creating a rule.
|
|
146
150
|
#
|
|
147
151
|
# @see Lithic::Models::AuthRules::V2CreateParams::Body::AccountLevelRule#type
|
|
148
152
|
module Type
|
|
@@ -153,6 +157,7 @@ module Lithic
|
|
|
153
157
|
MERCHANT_LOCK = :MERCHANT_LOCK
|
|
154
158
|
CONDITIONAL_ACTION = :CONDITIONAL_ACTION
|
|
155
159
|
TYPESCRIPT_CODE = :TYPESCRIPT_CODE
|
|
160
|
+
OTHER = :OTHER
|
|
156
161
|
|
|
157
162
|
# @!method self.values
|
|
158
163
|
# @return [Array<Symbol>]
|
|
@@ -188,6 +193,8 @@ module Lithic
|
|
|
188
193
|
# - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
189
194
|
# ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
|
|
190
195
|
# ACH_PAYMENT_UPDATE event stream.
|
|
196
|
+
# - `OTHER`: A rule whose type is not exposed through this API. Rules of this type
|
|
197
|
+
# are read-only; `OTHER` cannot be used when creating a rule.
|
|
191
198
|
#
|
|
192
199
|
# @return [Symbol, Lithic::Models::AuthRules::V2CreateParams::Body::CardLevelRule::Type]
|
|
193
200
|
required :type, enum: -> { Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::Type }
|
|
@@ -268,6 +275,8 @@ module Lithic
|
|
|
268
275
|
# - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
269
276
|
# ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
|
|
270
277
|
# ACH_PAYMENT_UPDATE event stream.
|
|
278
|
+
# - `OTHER`: A rule whose type is not exposed through this API. Rules of this type
|
|
279
|
+
# are read-only; `OTHER` cannot be used when creating a rule.
|
|
271
280
|
#
|
|
272
281
|
# @see Lithic::Models::AuthRules::V2CreateParams::Body::CardLevelRule#type
|
|
273
282
|
module Type
|
|
@@ -278,6 +287,7 @@ module Lithic
|
|
|
278
287
|
MERCHANT_LOCK = :MERCHANT_LOCK
|
|
279
288
|
CONDITIONAL_ACTION = :CONDITIONAL_ACTION
|
|
280
289
|
TYPESCRIPT_CODE = :TYPESCRIPT_CODE
|
|
290
|
+
OTHER = :OTHER
|
|
281
291
|
|
|
282
292
|
# @!method self.values
|
|
283
293
|
# @return [Array<Symbol>]
|
|
@@ -313,6 +323,8 @@ module Lithic
|
|
|
313
323
|
# - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
314
324
|
# ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
|
|
315
325
|
# ACH_PAYMENT_UPDATE event stream.
|
|
326
|
+
# - `OTHER`: A rule whose type is not exposed through this API. Rules of this type
|
|
327
|
+
# are read-only; `OTHER` cannot be used when creating a rule.
|
|
316
328
|
#
|
|
317
329
|
# @return [Symbol, Lithic::Models::AuthRules::V2CreateParams::Body::ProgramLevelRule::Type]
|
|
318
330
|
required :type, enum: -> { Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::Type }
|
|
@@ -417,6 +429,8 @@ module Lithic
|
|
|
417
429
|
# - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
418
430
|
# ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
|
|
419
431
|
# ACH_PAYMENT_UPDATE event stream.
|
|
432
|
+
# - `OTHER`: A rule whose type is not exposed through this API. Rules of this type
|
|
433
|
+
# are read-only; `OTHER` cannot be used when creating a rule.
|
|
420
434
|
#
|
|
421
435
|
# @see Lithic::Models::AuthRules::V2CreateParams::Body::ProgramLevelRule#type
|
|
422
436
|
module Type
|
|
@@ -427,6 +441,7 @@ module Lithic
|
|
|
427
441
|
MERCHANT_LOCK = :MERCHANT_LOCK
|
|
428
442
|
CONDITIONAL_ACTION = :CONDITIONAL_ACTION
|
|
429
443
|
TYPESCRIPT_CODE = :TYPESCRIPT_CODE
|
|
444
|
+
OTHER = :OTHER
|
|
430
445
|
|
|
431
446
|
# @!method self.values
|
|
432
447
|
# @return [Array<Symbol>]
|
|
@@ -182,6 +182,7 @@ module Lithic
|
|
|
182
182
|
PROGRAM_SUSPENDED = :PROGRAM_SUSPENDED
|
|
183
183
|
PROGRAM_USAGE_RESTRICTION = :PROGRAM_USAGE_RESTRICTION
|
|
184
184
|
REVERSAL_UNMATCHED = :REVERSAL_UNMATCHED
|
|
185
|
+
SCA_REQUIRED = :SCA_REQUIRED
|
|
185
186
|
SECURITY_VIOLATION = :SECURITY_VIOLATION
|
|
186
187
|
SINGLE_USE_CARD_REATTEMPTED = :SINGLE_USE_CARD_REATTEMPTED
|
|
187
188
|
SUSPECTED_FRAUD = :SUSPECTED_FRAUD
|
|
@@ -1059,6 +1060,7 @@ module Lithic
|
|
|
1059
1060
|
|
|
1060
1061
|
CARD = :CARD
|
|
1061
1062
|
ACCOUNT = :ACCOUNT
|
|
1063
|
+
PROGRAM = :PROGRAM
|
|
1062
1064
|
|
|
1063
1065
|
# @!method self.values
|
|
1064
1066
|
# @return [Array<Symbol>]
|
|
@@ -1269,6 +1271,7 @@ module Lithic
|
|
|
1269
1271
|
extend Lithic::Internal::Type::Enum
|
|
1270
1272
|
|
|
1271
1273
|
FINANCIAL_ACCOUNT = :FINANCIAL_ACCOUNT
|
|
1274
|
+
PROGRAM = :PROGRAM
|
|
1272
1275
|
|
|
1273
1276
|
# @!method self.values
|
|
1274
1277
|
# @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
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
# @see Lithic::Resources::BlockchainRecipients#retrieve
|
|
6
|
+
class BlockchainRecipientRetrieveParams < Lithic::Internal::Type::BaseModel
|
|
7
|
+
extend Lithic::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Lithic::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute blockchain_recipient_token
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :blockchain_recipient_token, String
|
|
14
|
+
|
|
15
|
+
# @!method initialize(blockchain_recipient_token:, request_options: {})
|
|
16
|
+
# @param blockchain_recipient_token [String]
|
|
17
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
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
|