lithic 0.3.0 → 0.5.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.
Files changed (122) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +73 -0
  3. data/README.md +10 -1
  4. data/lib/lithic/internal/transport/pooled_net_requester.rb +1 -1
  5. data/lib/lithic/internal/util.rb +1 -1
  6. data/lib/lithic/models/account_holder.rb +14 -5
  7. data/lib/lithic/models/account_holder_create_params.rb +10 -1
  8. data/lib/lithic/models/account_holder_simulate_enrollment_review_params.rb +1 -0
  9. data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +14 -5
  10. data/lib/lithic/models/account_holder_update_params.rb +10 -1
  11. data/lib/lithic/models/account_holder_update_response.rb +14 -5
  12. data/lib/lithic/models/account_holder_updated_webhook_event.rb +10 -1
  13. data/lib/lithic/models/auth_rules/conditional_ach_action_parameters.rb +3 -3
  14. data/lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb +47 -21
  15. data/lib/lithic/models/auth_rules/v2_list_results_params.rb +70 -0
  16. data/lib/lithic/models/auth_rules/v2_list_results_response.rb +740 -0
  17. data/lib/lithic/models/auth_rules/velocity_limit_params.rb +21 -21
  18. data/lib/lithic/models/book_transfer_create_params.rb +9 -1
  19. data/lib/lithic/models/card_authorization_approval_request_webhook_event.rb +178 -25
  20. data/lib/lithic/models/card_create_params.rb +12 -5
  21. data/lib/lithic/models/card_updated_webhook_event.rb +40 -0
  22. data/lib/lithic/models/card_web_provision_response.rb +5 -5
  23. data/lib/lithic/models/event.rb +3 -0
  24. data/lib/lithic/models/event_list_params.rb +2 -0
  25. data/lib/lithic/models/event_subscription.rb +2 -0
  26. data/lib/lithic/models/events/subscription_create_params.rb +2 -0
  27. data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +1 -0
  28. data/lib/lithic/models/events/subscription_update_params.rb +2 -0
  29. data/lib/lithic/models/financial_transaction.rb +4 -2
  30. data/lib/lithic/models/kyb.rb +10 -1
  31. data/lib/lithic/models/non_pci_card.rb +8 -10
  32. data/lib/lithic/models/parsed_webhook_event.rb +13 -2
  33. data/lib/lithic/models/payment.rb +1 -1
  34. data/lib/lithic/models/payment_create_params.rb +1 -1
  35. data/lib/lithic/models/transaction.rb +10 -1
  36. data/lib/lithic/models/transaction_simulate_authorization_params.rb +25 -1
  37. data/lib/lithic/models/transaction_simulate_credit_authorization_advice_params.rb +25 -1
  38. data/lib/lithic/models.rb +2 -0
  39. data/lib/lithic/resources/account_holders.rb +6 -2
  40. data/lib/lithic/resources/auth_rules/v2.rb +42 -0
  41. data/lib/lithic/resources/book_transfers.rb +3 -1
  42. data/lib/lithic/resources/cards.rb +32 -22
  43. data/lib/lithic/resources/financial_accounts.rb +5 -5
  44. data/lib/lithic/resources/transactions.rb +14 -2
  45. data/lib/lithic/resources/webhooks.rb +1 -1
  46. data/lib/lithic/version.rb +1 -1
  47. data/lib/lithic.rb +3 -0
  48. data/rbi/lithic/internal/util.rbi +1 -1
  49. data/rbi/lithic/models/account_holder.rbi +19 -6
  50. data/rbi/lithic/models/account_holder_create_params.rbi +13 -0
  51. data/rbi/lithic/models/account_holder_simulate_enrollment_review_params.rbi +5 -0
  52. data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +19 -6
  53. data/rbi/lithic/models/account_holder_update_params.rbi +13 -0
  54. data/rbi/lithic/models/account_holder_update_response.rbi +19 -6
  55. data/rbi/lithic/models/account_holder_updated_webhook_event.rbi +13 -0
  56. data/rbi/lithic/models/auth_rules/conditional_ach_action_parameters.rbi +3 -3
  57. data/rbi/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbi +69 -30
  58. data/rbi/lithic/models/auth_rules/v2_list_results_params.rbi +112 -0
  59. data/rbi/lithic/models/auth_rules/v2_list_results_response.rbi +1826 -0
  60. data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +47 -45
  61. data/rbi/lithic/models/book_transfer_create_params.rbi +11 -0
  62. data/rbi/lithic/models/card_authorization_approval_request_webhook_event.rbi +337 -36
  63. data/rbi/lithic/models/card_create_params.rbi +15 -6
  64. data/rbi/lithic/models/card_updated_webhook_event.rbi +61 -0
  65. data/rbi/lithic/models/card_web_provision_response.rbi +5 -10
  66. data/rbi/lithic/models/event.rbi +5 -0
  67. data/rbi/lithic/models/event_list_params.rbi +6 -0
  68. data/rbi/lithic/models/event_subscription.rbi +6 -0
  69. data/rbi/lithic/models/events/subscription_create_params.rbi +6 -0
  70. data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +5 -0
  71. data/rbi/lithic/models/events/subscription_update_params.rbi +6 -0
  72. data/rbi/lithic/models/financial_transaction.rbi +8 -4
  73. data/rbi/lithic/models/kyb.rbi +13 -0
  74. data/rbi/lithic/models/non_pci_card.rbi +12 -15
  75. data/rbi/lithic/models/parsed_webhook_event.rbi +14 -0
  76. data/rbi/lithic/models/payment.rbi +5 -2
  77. data/rbi/lithic/models/transaction.rbi +10 -0
  78. data/rbi/lithic/models/transaction_simulate_authorization_params.rbi +33 -0
  79. data/rbi/lithic/models/transaction_simulate_credit_authorization_advice_params.rbi +33 -0
  80. data/rbi/lithic/models.rbi +2 -0
  81. data/rbi/lithic/resources/account_holders.rbi +8 -0
  82. data/rbi/lithic/resources/auth_rules/v2.rbi +42 -0
  83. data/rbi/lithic/resources/book_transfers.rbi +3 -0
  84. data/rbi/lithic/resources/cards.rbi +51 -45
  85. data/rbi/lithic/resources/financial_accounts.rbi +5 -5
  86. data/rbi/lithic/resources/transactions.rbi +18 -0
  87. data/rbi/lithic/resources/webhooks.rbi +62 -1
  88. data/sig/lithic/models/account_holder.rbs +7 -0
  89. data/sig/lithic/models/account_holder_create_params.rbs +7 -0
  90. data/sig/lithic/models/account_holder_simulate_enrollment_review_params.rbs +2 -1
  91. data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +7 -0
  92. data/sig/lithic/models/account_holder_update_params.rbs +7 -0
  93. data/sig/lithic/models/account_holder_update_response.rbs +7 -0
  94. data/sig/lithic/models/account_holder_updated_webhook_event.rbs +7 -0
  95. data/sig/lithic/models/auth_rules/v2_list_results_params.rbs +65 -0
  96. data/sig/lithic/models/auth_rules/v2_list_results_response.rbs +752 -0
  97. data/sig/lithic/models/auth_rules/velocity_limit_params.rbs +20 -16
  98. data/sig/lithic/models/book_transfer_create_params.rbs +7 -0
  99. data/sig/lithic/models/card_authorization_approval_request_webhook_event.rbs +96 -0
  100. data/sig/lithic/models/card_create_params.rbs +8 -1
  101. data/sig/lithic/models/card_updated_webhook_event.rbs +35 -0
  102. data/sig/lithic/models/card_web_provision_response.rbs +4 -10
  103. data/sig/lithic/models/event.rbs +2 -0
  104. data/sig/lithic/models/event_list_params.rbs +2 -0
  105. data/sig/lithic/models/event_subscription.rbs +2 -0
  106. data/sig/lithic/models/events/subscription_create_params.rbs +2 -0
  107. data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +2 -0
  108. data/sig/lithic/models/events/subscription_update_params.rbs +2 -0
  109. data/sig/lithic/models/kyb.rbs +7 -0
  110. data/sig/lithic/models/parsed_webhook_event.rbs +8 -0
  111. data/sig/lithic/models/payment.rbs +2 -2
  112. data/sig/lithic/models/transaction.rbs +5 -0
  113. data/sig/lithic/models/transaction_simulate_authorization_params.rbs +21 -0
  114. data/sig/lithic/models/transaction_simulate_credit_authorization_advice_params.rbs +22 -1
  115. data/sig/lithic/models.rbs +2 -0
  116. data/sig/lithic/resources/account_holders.rbs +2 -0
  117. data/sig/lithic/resources/auth_rules/v2.rbs +10 -0
  118. data/sig/lithic/resources/book_transfers.rbs +1 -0
  119. data/sig/lithic/resources/cards.rbs +1 -0
  120. data/sig/lithic/resources/transactions.rbs +6 -0
  121. data/sig/lithic/resources/webhooks.rbs +58 -1
  122. metadata +25 -2
@@ -97,11 +97,10 @@ module Lithic
97
97
  # wallet-enabled). _ `PHYSICAL` - Manufactured and sent to the cardholder. We
98
98
  # offer white label branding, credit, ATM, PIN debit, chip/EMV, NFC and magstripe
99
99
  # functionality. _ `SINGLE_USE` - Card is closed upon first successful
100
- # authorization. _ `MERCHANT_LOCKED` - _[Deprecated]_ Card is locked to the first
101
- # merchant that successfully authorizes the card. _ `UNLOCKED` - _[Deprecated]_
102
- # Similar behavior to VIRTUAL cards, please use VIRTUAL instead. _
103
- # `DIGITAL_WALLET` - _[Deprecated]_ Similar behavior to VIRTUAL cards, please use
104
- # VIRTUAL instead.
100
+ # authorization. _ `MERCHANT_LOCKED` - Card is locked to the first merchant that
101
+ # successfully authorizes the card. _ `UNLOCKED` - _[Deprecated]_ Similar behavior
102
+ # to VIRTUAL cards, please use VIRTUAL instead. _ `DIGITAL_WALLET` -
103
+ # _[Deprecated]_ Similar behavior to VIRTUAL cards, please use VIRTUAL instead.
105
104
  #
106
105
  # @return [Symbol, Lithic::Models::NonPCICard::Type]
107
106
  required :type, enum: -> { Lithic::NonPCICard::Type }
@@ -436,11 +435,10 @@ module Lithic
436
435
  # wallet-enabled). _ `PHYSICAL` - Manufactured and sent to the cardholder. We
437
436
  # offer white label branding, credit, ATM, PIN debit, chip/EMV, NFC and magstripe
438
437
  # functionality. _ `SINGLE_USE` - Card is closed upon first successful
439
- # authorization. _ `MERCHANT_LOCKED` - _[Deprecated]_ Card is locked to the first
440
- # merchant that successfully authorizes the card. _ `UNLOCKED` - _[Deprecated]_
441
- # Similar behavior to VIRTUAL cards, please use VIRTUAL instead. _
442
- # `DIGITAL_WALLET` - _[Deprecated]_ Similar behavior to VIRTUAL cards, please use
443
- # VIRTUAL instead.
438
+ # authorization. _ `MERCHANT_LOCKED` - Card is locked to the first merchant that
439
+ # successfully authorizes the card. _ `UNLOCKED` - _[Deprecated]_ Similar behavior
440
+ # to VIRTUAL cards, please use VIRTUAL instead. _ `DIGITAL_WALLET` -
441
+ # _[Deprecated]_ Similar behavior to VIRTUAL cards, please use VIRTUAL instead.
444
442
  #
445
443
  # @see Lithic::Models::NonPCICard#type
446
444
  module Type
@@ -46,6 +46,8 @@ module Lithic
46
46
 
47
47
  variant -> { Lithic::CardShippedWebhookEvent }
48
48
 
49
+ variant -> { Lithic::CardUpdatedWebhookEvent }
50
+
49
51
  variant -> { Lithic::CardTransactionUpdatedWebhookEvent }
50
52
 
51
53
  variant -> { Lithic::CardTransactionEnhancedDataCreatedWebhookEvent }
@@ -161,6 +163,13 @@ module Lithic
161
163
  # @return [String, nil]
162
164
  optional :external_id, String
163
165
 
166
+ # @!attribute naics_code
167
+ # 6-digit North American Industry Classification System (NAICS) code for the
168
+ # business. Only present if naics_code was included in the update request.
169
+ #
170
+ # @return [String, nil]
171
+ optional :naics_code, String
172
+
164
173
  # @!attribute nature_of_business
165
174
  # Short description of the company's line of business (i.e., what does the company
166
175
  # do?).
@@ -174,7 +183,7 @@ module Lithic
174
183
  # @return [String, nil]
175
184
  optional :website_url, String
176
185
 
177
- # @!method initialize(token:, update_request:, event_type: nil, external_id: nil, nature_of_business: nil, website_url: nil)
186
+ # @!method initialize(token:, update_request:, event_type: nil, external_id: nil, naics_code: nil, nature_of_business: nil, website_url: nil)
178
187
  # Some parameter documentations has been truncated, see
179
188
  # {Lithic::Models::ParsedWebhookEvent::KYBPayload} for more details.
180
189
  #
@@ -188,6 +197,8 @@ module Lithic
188
197
  #
189
198
  # @param external_id [String] A user provided id that can be used to link an account holder with an external s
190
199
  #
200
+ # @param naics_code [String] 6-digit North American Industry Classification System (NAICS) code for the busin
201
+ #
191
202
  # @param nature_of_business [String] Short description of the company's line of business (i.e., what does the company
192
203
  #
193
204
  # @param website_url [String] Company website URL.
@@ -811,7 +822,7 @@ module Lithic
811
822
  end
812
823
 
813
824
  # @!method self.variants
814
- # @return [Array(Lithic::Models::AccountHolderCreatedWebhookEvent, Lithic::Models::ParsedWebhookEvent::KYBPayload, Lithic::Models::ParsedWebhookEvent::KYCPayload, Lithic::Models::ParsedWebhookEvent::LegacyPayload, Lithic::Models::AccountHolderVerificationWebhookEvent, Lithic::Models::AccountHolderDocumentUpdatedWebhookEvent, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent, Lithic::Models::TokenizationDecisioningRequestWebhookEvent, Lithic::Models::AuthRulesBacktestReportCreatedWebhookEvent, Lithic::Models::BalanceUpdatedWebhookEvent, Lithic::Models::BookTransferTransactionCreatedWebhookEvent, Lithic::Models::BookTransferTransactionUpdatedWebhookEvent, Lithic::Models::CardCreatedWebhookEvent, Lithic::Models::CardConvertedWebhookEvent, Lithic::Models::CardRenewedWebhookEvent, Lithic::Models::CardReissuedWebhookEvent, Lithic::Models::CardShippedWebhookEvent, Lithic::Models::CardTransactionUpdatedWebhookEvent, Lithic::Models::CardTransactionEnhancedDataCreatedWebhookEvent, Lithic::Models::CardTransactionEnhancedDataUpdatedWebhookEvent, Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent, Lithic::Models::DigitalWalletTokenizationResultWebhookEvent, Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeWebhookEvent, Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeSentWebhookEvent, Lithic::Models::DigitalWalletTokenizationUpdatedWebhookEvent, Lithic::Models::DisputeUpdatedWebhookEvent, Lithic::Models::DisputeEvidenceUploadFailedWebhookEvent, Lithic::Models::ExternalBankAccountCreatedWebhookEvent, Lithic::Models::ExternalBankAccountUpdatedWebhookEvent, Lithic::Models::ExternalPaymentCreatedWebhookEvent, Lithic::Models::ExternalPaymentUpdatedWebhookEvent, Lithic::Models::FinancialAccountCreatedWebhookEvent, Lithic::Models::FinancialAccountUpdatedWebhookEvent, Lithic::Models::FundingEventCreatedWebhookEvent, Lithic::Models::LoanTapeCreatedWebhookEvent, Lithic::Models::LoanTapeUpdatedWebhookEvent, Lithic::Models::ManagementOperationCreatedWebhookEvent, Lithic::Models::ManagementOperationUpdatedWebhookEvent, Lithic::Models::InternalTransactionCreatedWebhookEvent, Lithic::Models::InternalTransactionUpdatedWebhookEvent, Lithic::Models::NetworkTotalCreatedWebhookEvent, Lithic::Models::NetworkTotalUpdatedWebhookEvent, Lithic::Models::PaymentTransactionCreatedWebhookEvent, Lithic::Models::PaymentTransactionUpdatedWebhookEvent, Lithic::Models::SettlementReportUpdatedWebhookEvent, Lithic::Models::StatementsCreatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationCreatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationUpdatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationChallengeWebhookEvent, Lithic::Models::TokenizationApprovalRequestWebhookEvent, Lithic::Models::TokenizationResultWebhookEvent, Lithic::Models::TokenizationTwoFactorAuthenticationCodeWebhookEvent, Lithic::Models::TokenizationTwoFactorAuthenticationCodeSentWebhookEvent, Lithic::Models::TokenizationUpdatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationApprovalRequestWebhookEvent, Lithic::Models::DisputeTransactionCreatedWebhookEvent, Lithic::Models::DisputeTransactionUpdatedWebhookEvent)]
825
+ # @return [Array(Lithic::Models::AccountHolderCreatedWebhookEvent, Lithic::Models::ParsedWebhookEvent::KYBPayload, Lithic::Models::ParsedWebhookEvent::KYCPayload, Lithic::Models::ParsedWebhookEvent::LegacyPayload, Lithic::Models::AccountHolderVerificationWebhookEvent, Lithic::Models::AccountHolderDocumentUpdatedWebhookEvent, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent, Lithic::Models::TokenizationDecisioningRequestWebhookEvent, Lithic::Models::AuthRulesBacktestReportCreatedWebhookEvent, Lithic::Models::BalanceUpdatedWebhookEvent, Lithic::Models::BookTransferTransactionCreatedWebhookEvent, Lithic::Models::BookTransferTransactionUpdatedWebhookEvent, Lithic::Models::CardCreatedWebhookEvent, Lithic::Models::CardConvertedWebhookEvent, Lithic::Models::CardRenewedWebhookEvent, Lithic::Models::CardReissuedWebhookEvent, Lithic::Models::CardShippedWebhookEvent, Lithic::Models::CardUpdatedWebhookEvent, Lithic::Models::CardTransactionUpdatedWebhookEvent, Lithic::Models::CardTransactionEnhancedDataCreatedWebhookEvent, Lithic::Models::CardTransactionEnhancedDataUpdatedWebhookEvent, Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent, Lithic::Models::DigitalWalletTokenizationResultWebhookEvent, Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeWebhookEvent, Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeSentWebhookEvent, Lithic::Models::DigitalWalletTokenizationUpdatedWebhookEvent, Lithic::Models::DisputeUpdatedWebhookEvent, Lithic::Models::DisputeEvidenceUploadFailedWebhookEvent, Lithic::Models::ExternalBankAccountCreatedWebhookEvent, Lithic::Models::ExternalBankAccountUpdatedWebhookEvent, Lithic::Models::ExternalPaymentCreatedWebhookEvent, Lithic::Models::ExternalPaymentUpdatedWebhookEvent, Lithic::Models::FinancialAccountCreatedWebhookEvent, Lithic::Models::FinancialAccountUpdatedWebhookEvent, Lithic::Models::FundingEventCreatedWebhookEvent, Lithic::Models::LoanTapeCreatedWebhookEvent, Lithic::Models::LoanTapeUpdatedWebhookEvent, Lithic::Models::ManagementOperationCreatedWebhookEvent, Lithic::Models::ManagementOperationUpdatedWebhookEvent, Lithic::Models::InternalTransactionCreatedWebhookEvent, Lithic::Models::InternalTransactionUpdatedWebhookEvent, Lithic::Models::NetworkTotalCreatedWebhookEvent, Lithic::Models::NetworkTotalUpdatedWebhookEvent, Lithic::Models::PaymentTransactionCreatedWebhookEvent, Lithic::Models::PaymentTransactionUpdatedWebhookEvent, Lithic::Models::SettlementReportUpdatedWebhookEvent, Lithic::Models::StatementsCreatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationCreatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationUpdatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationChallengeWebhookEvent, Lithic::Models::TokenizationApprovalRequestWebhookEvent, Lithic::Models::TokenizationResultWebhookEvent, Lithic::Models::TokenizationTwoFactorAuthenticationCodeWebhookEvent, Lithic::Models::TokenizationTwoFactorAuthenticationCodeSentWebhookEvent, Lithic::Models::TokenizationUpdatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationApprovalRequestWebhookEvent, Lithic::Models::DisputeTransactionCreatedWebhookEvent, Lithic::Models::DisputeTransactionUpdatedWebhookEvent)]
815
826
  end
816
827
  end
817
828
  end
@@ -650,7 +650,7 @@ module Lithic
650
650
  WIRE_INBOUND_ADMIN = :WIRE_INBOUND_ADMIN
651
651
  WIRE_OUTBOUND_PAYMENT = :WIRE_OUTBOUND_PAYMENT
652
652
  WIRE_OUTBOUND_ADMIN = :WIRE_OUTBOUND_ADMIN
653
- WIRE_DRAWDOWN_REQUEST = :WIRE_DRAWDOWN_REQUEST
653
+ WIRE_INBOUND_DRAWDOWN_REQUEST = :WIRE_INBOUND_DRAWDOWN_REQUEST
654
654
 
655
655
  # @!method self.values
656
656
  # @return [Array<Symbol>]
@@ -98,7 +98,7 @@ module Lithic
98
98
  # Number of days to hold the ACH payment
99
99
  #
100
100
  # @return [Integer, nil]
101
- optional :ach_hold_period, Integer, api_name: :ach_hold__period
101
+ optional :ach_hold_period, Integer
102
102
 
103
103
  # @!attribute addenda
104
104
  #
@@ -162,6 +162,13 @@ module Lithic
162
162
  # @return [Symbol, Lithic::Models::Transaction::Status]
163
163
  required :status, enum: -> { Lithic::Transaction::Status }
164
164
 
165
+ # @!attribute tags
166
+ # Key-value pairs for tagging resources. Tags allow you to associate arbitrary
167
+ # metadata with a resource for your own purposes.
168
+ #
169
+ # @return [Hash{Symbol=>String}]
170
+ required :tags, Lithic::Internal::Type::HashOf[String]
171
+
165
172
  # @!attribute token_info
166
173
  #
167
174
  # @return [Lithic::Models::TokenInfo, nil]
@@ -178,7 +185,7 @@ module Lithic
178
185
  # @return [Array<Lithic::Models::Transaction::Event>, nil]
179
186
  optional :events, -> { Lithic::Internal::Type::ArrayOf[Lithic::Transaction::Event] }
180
187
 
181
- # @!method initialize(token:, account_token:, acquirer_fee:, acquirer_reference_number:, amount:, amounts:, authorization_amount:, authorization_code:, avs:, card_token:, cardholder_authentication:, created:, financial_account_token:, merchant:, merchant_amount:, merchant_authorization_amount:, merchant_currency:, network:, network_risk_score:, pos:, result:, settled_amount:, status:, token_info:, updated:, events: nil)
188
+ # @!method initialize(token:, account_token:, acquirer_fee:, acquirer_reference_number:, amount:, amounts:, authorization_amount:, authorization_code:, avs:, card_token:, cardholder_authentication:, created:, financial_account_token:, merchant:, merchant_amount:, merchant_authorization_amount:, merchant_currency:, network:, network_risk_score:, pos:, result:, settled_amount:, status:, tags:, token_info:, updated:, events: nil)
182
189
  # Some parameter documentations has been truncated, see
183
190
  # {Lithic::Models::Transaction} for more details.
184
191
  #
@@ -228,6 +235,8 @@ module Lithic
228
235
  #
229
236
  # @param status [Symbol, Lithic::Models::Transaction::Status] Status of the transaction.
230
237
  #
238
+ # @param tags [Hash{Symbol=>String}] Key-value pairs for tagging resources. Tags allow you to associate arbitrary met
239
+ #
231
240
  # @param token_info [Lithic::Models::TokenInfo, nil]
232
241
  #
233
242
  # @param updated [Time] Date and time when the transaction last updated. UTC time zone.
@@ -37,12 +37,30 @@ module Lithic
37
37
  # @return [String, nil]
38
38
  optional :mcc, String
39
39
 
40
+ # @!attribute merchant_acceptor_city
41
+ # Merchant acceptor city
42
+ #
43
+ # @return [String, nil]
44
+ optional :merchant_acceptor_city, String
45
+
46
+ # @!attribute merchant_acceptor_country
47
+ # Merchant acceptor country code (ISO 3166-1 alpha-3)
48
+ #
49
+ # @return [String, nil]
50
+ optional :merchant_acceptor_country, String
51
+
40
52
  # @!attribute merchant_acceptor_id
41
53
  # Unique identifier to identify the payment card acceptor.
42
54
  #
43
55
  # @return [String, nil]
44
56
  optional :merchant_acceptor_id, String
45
57
 
58
+ # @!attribute merchant_acceptor_state
59
+ # Merchant acceptor state/province (ISO 3166-2 subdivision code)
60
+ #
61
+ # @return [String, nil]
62
+ optional :merchant_acceptor_state, String
63
+
46
64
  # @!attribute merchant_amount
47
65
  # Amount of the transaction to be simulated in currency specified in
48
66
  # merchant_currency, including any acquirer fees.
@@ -92,7 +110,7 @@ module Lithic
92
110
  # @return [Symbol, Lithic::Models::TransactionSimulateAuthorizationParams::Status, nil]
93
111
  optional :status, enum: -> { Lithic::TransactionSimulateAuthorizationParams::Status }
94
112
 
95
- # @!method initialize(amount:, descriptor:, pan:, mcc: nil, merchant_acceptor_id: nil, merchant_amount: nil, merchant_currency: nil, partial_approval_capable: nil, pin: nil, status: nil, request_options: {})
113
+ # @!method initialize(amount:, descriptor:, pan:, mcc: nil, merchant_acceptor_city: nil, merchant_acceptor_country: nil, merchant_acceptor_id: nil, merchant_acceptor_state: nil, merchant_amount: nil, merchant_currency: nil, partial_approval_capable: nil, pin: nil, status: nil, request_options: {})
96
114
  # Some parameter documentations has been truncated, see
97
115
  # {Lithic::Models::TransactionSimulateAuthorizationParams} for more details.
98
116
  #
@@ -104,8 +122,14 @@ module Lithic
104
122
  #
105
123
  # @param mcc [String] Merchant category code for the transaction to be simulated. A four-digit number
106
124
  #
125
+ # @param merchant_acceptor_city [String] Merchant acceptor city
126
+ #
127
+ # @param merchant_acceptor_country [String] Merchant acceptor country code (ISO 3166-1 alpha-3)
128
+ #
107
129
  # @param merchant_acceptor_id [String] Unique identifier to identify the payment card acceptor.
108
130
  #
131
+ # @param merchant_acceptor_state [String] Merchant acceptor state/province (ISO 3166-2 subdivision code)
132
+ #
109
133
  # @param merchant_amount [Integer] Amount of the transaction to be simulated in currency specified in merchant_curr
110
134
  #
111
135
  # @param merchant_currency [String] 3-character alphabetic ISO 4217 currency code. Note: Simulator only accepts USD,
@@ -35,13 +35,31 @@ module Lithic
35
35
  # @return [String, nil]
36
36
  optional :mcc, String
37
37
 
38
+ # @!attribute merchant_acceptor_city
39
+ # Merchant acceptor city
40
+ #
41
+ # @return [String, nil]
42
+ optional :merchant_acceptor_city, String
43
+
44
+ # @!attribute merchant_acceptor_country
45
+ # Merchant acceptor country code (ISO 3166-1 alpha-3)
46
+ #
47
+ # @return [String, nil]
48
+ optional :merchant_acceptor_country, String
49
+
38
50
  # @!attribute merchant_acceptor_id
39
51
  # Unique identifier to identify the payment card acceptor.
40
52
  #
41
53
  # @return [String, nil]
42
54
  optional :merchant_acceptor_id, String
43
55
 
44
- # @!method initialize(amount:, descriptor:, pan:, mcc: nil, merchant_acceptor_id: nil, request_options: {})
56
+ # @!attribute merchant_acceptor_state
57
+ # Merchant acceptor state/province (ISO 3166-2 subdivision code)
58
+ #
59
+ # @return [String, nil]
60
+ optional :merchant_acceptor_state, String
61
+
62
+ # @!method initialize(amount:, descriptor:, pan:, mcc: nil, merchant_acceptor_city: nil, merchant_acceptor_country: nil, merchant_acceptor_id: nil, merchant_acceptor_state: nil, request_options: {})
45
63
  # Some parameter documentations has been truncated, see
46
64
  # {Lithic::Models::TransactionSimulateCreditAuthorizationAdviceParams} for more
47
65
  # details.
@@ -54,8 +72,14 @@ module Lithic
54
72
  #
55
73
  # @param mcc [String] Merchant category code for the transaction to be simulated. A four-digit number
56
74
  #
75
+ # @param merchant_acceptor_city [String] Merchant acceptor city
76
+ #
77
+ # @param merchant_acceptor_country [String] Merchant acceptor country code (ISO 3166-1 alpha-3)
78
+ #
57
79
  # @param merchant_acceptor_id [String] Unique identifier to identify the payment card acceptor.
58
80
  #
81
+ # @param merchant_acceptor_state [String] Merchant acceptor state/province (ISO 3166-2 subdivision code)
82
+ #
59
83
  # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
60
84
  end
61
85
  end
data/lib/lithic/models.rb CHANGED
@@ -189,6 +189,8 @@ module Lithic
189
189
 
190
190
  CardTransactionUpdatedWebhookEvent = Lithic::Models::CardTransactionUpdatedWebhookEvent
191
191
 
192
+ CardUpdatedWebhookEvent = Lithic::Models::CardUpdatedWebhookEvent
193
+
192
194
  CardUpdateParams = Lithic::Models::CardUpdateParams
193
195
 
194
196
  CardWebProvisionParams = Lithic::Models::CardWebProvisionParams
@@ -15,7 +15,7 @@ module Lithic
15
15
  # process. This endpoint can only be used on accounts that are part of the program
16
16
  # that the calling API key manages.
17
17
  #
18
- # @overload create(business_entity:, tos_timestamp:, workflow:, individual:, address:, email:, first_name:, kyc_exemption_type:, last_name:, phone_number:, beneficial_owner_individuals: nil, control_person: nil, nature_of_business: nil, beneficial_owner_entities: nil, external_id: nil, kyb_passed_timestamp: nil, website_url: nil, kyc_passed_timestamp: nil, business_account_token: nil, request_options: {})
18
+ # @overload create(business_entity:, tos_timestamp:, workflow:, individual:, address:, email:, first_name:, kyc_exemption_type:, last_name:, phone_number:, beneficial_owner_individuals: nil, control_person: nil, nature_of_business: nil, beneficial_owner_entities: nil, external_id: nil, kyb_passed_timestamp: nil, naics_code: nil, website_url: nil, kyc_passed_timestamp: nil, business_account_token: nil, request_options: {})
19
19
  #
20
20
  # @param business_entity [Lithic::Models::AccountHolderCreateParams::BusinessEntity] Information for business for which the account is being opened.
21
21
  #
@@ -49,6 +49,8 @@ module Lithic
49
49
  #
50
50
  # @param kyb_passed_timestamp [String] An RFC 3339 timestamp indicating when precomputed KYB was completed on the busin
51
51
  #
52
+ # @param naics_code [String] 6-digit North American Industry Classification System (NAICS) code for the busin
53
+ #
52
54
  # @param website_url [String] Company website URL.
53
55
  #
54
56
  # @param kyc_passed_timestamp [String] An RFC 3339 timestamp indicating when precomputed KYC was completed on the indiv
@@ -106,7 +108,7 @@ module Lithic
106
108
  # process. This endpoint can only be used on existing accounts that are part of
107
109
  # the program that the calling API key manages.
108
110
  #
109
- # @overload update(account_holder_token, beneficial_owner_entities: nil, beneficial_owner_individuals: nil, business_entity: nil, control_person: nil, external_id: nil, nature_of_business: nil, website_url: nil, individual: nil, address: nil, business_account_token: nil, email: nil, first_name: nil, last_name: nil, legal_business_name: nil, phone_number: nil, request_options: {})
111
+ # @overload update(account_holder_token, beneficial_owner_entities: nil, beneficial_owner_individuals: nil, business_entity: nil, control_person: nil, external_id: nil, naics_code: nil, nature_of_business: nil, website_url: nil, individual: nil, address: nil, business_account_token: nil, email: nil, first_name: nil, last_name: nil, legal_business_name: nil, phone_number: nil, request_options: {})
110
112
  #
111
113
  # @param account_holder_token [String] Globally unique identifier for the account holder.
112
114
  #
@@ -120,6 +122,8 @@ module Lithic
120
122
  #
121
123
  # @param external_id [String] A user provided id that can be used to link an account holder with an external s
122
124
  #
125
+ # @param naics_code [String] 6-digit North American Industry Classification System (NAICS) code for the busin
126
+ #
123
127
  # @param nature_of_business [String] Short description of the company's line of business (i.e., what does the company
124
128
  #
125
129
  # @param website_url [String] Company website URL.
@@ -198,6 +198,48 @@ module Lithic
198
198
  )
199
199
  end
200
200
 
201
+ # Some parameter documentations has been truncated, see
202
+ # {Lithic::Models::AuthRules::V2ListResultsParams} for more details.
203
+ #
204
+ # Lists Auth Rule evaluation results.
205
+ #
206
+ # **Limitations:**
207
+ #
208
+ # - Results are available for the past 3 months only
209
+ # - At least one filter (`event_token` or `auth_rule_token`) must be provided
210
+ # - When filtering by `event_token`, pagination is not supported
211
+ #
212
+ # @overload list_results(auth_rule_token: nil, ending_before: nil, event_token: nil, has_actions: nil, page_size: nil, starting_after: nil, request_options: {})
213
+ #
214
+ # @param auth_rule_token [String] Filter by Auth Rule token
215
+ #
216
+ # @param ending_before [String] A cursor representing an item's token before which a page of results should end.
217
+ #
218
+ # @param event_token [String] Filter by event token
219
+ #
220
+ # @param has_actions [Boolean] Filter by whether the rule evaluation produced any actions. When not provided, a
221
+ #
222
+ # @param page_size [Integer] Page size (for pagination).
223
+ #
224
+ # @param starting_after [String] A cursor representing an item's token after which a page of results should begin
225
+ #
226
+ # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
227
+ #
228
+ # @return [Lithic::Internal::CursorPage<Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult, Lithic::Models::AuthRules::V2ListResultsResponse::Authentication3DSResult, Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult, Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult>]
229
+ #
230
+ # @see Lithic::Models::AuthRules::V2ListResultsParams
231
+ def list_results(params = {})
232
+ parsed, options = Lithic::AuthRules::V2ListResultsParams.dump_request(params)
233
+ @client.request(
234
+ method: :get,
235
+ path: "v2/auth_rules/results",
236
+ query: parsed,
237
+ page: Lithic::Internal::CursorPage,
238
+ model: Lithic::Models::AuthRules::V2ListResultsResponse,
239
+ options: options
240
+ )
241
+ end
242
+
201
243
  # Promotes the draft version of an Auth rule to the currently active version such
202
244
  # that it is enforced in the respective stream.
203
245
  #
@@ -9,7 +9,7 @@ module Lithic
9
9
  # Book transfer funds between two financial accounts or between a financial
10
10
  # account and card
11
11
  #
12
- # @overload create(amount:, category:, from_financial_account_token:, subtype:, to_financial_account_token:, type:, token: nil, external_id: nil, memo: nil, on_closed_account: nil, request_options: {})
12
+ # @overload create(amount:, category:, from_financial_account_token:, subtype:, to_financial_account_token:, type:, token: nil, external_id: nil, hold_token: nil, memo: nil, on_closed_account: nil, request_options: {})
13
13
  #
14
14
  # @param amount [Integer] Amount to be transferred in the currency's smallest unit (e.g., cents for USD).
15
15
  #
@@ -27,6 +27,8 @@ module Lithic
27
27
  #
28
28
  # @param external_id [String] External ID defined by the customer
29
29
  #
30
+ # @param hold_token [String] Token of an existing hold to settle when this transfer is initiated
31
+ #
30
32
  # @param memo [String] Optional descriptor for the transfer.
31
33
  #
32
34
  # @param on_closed_account [Symbol, Lithic::Models::BookTransferCreateParams::OnClosedAccount] What to do if the financial account is closed when posting an operation
@@ -15,47 +15,49 @@ module Lithic
15
15
  # Create a new virtual or physical card. Parameters `shipping_address` and
16
16
  # `product_id` only apply to physical cards.
17
17
  #
18
- # @overload create(type:, account_token: nil, bulk_order_token: nil, card_program_token: nil, carrier: nil, digital_card_art_token: nil, exp_month: nil, exp_year: nil, memo: nil, pin: nil, product_id: nil, replacement_account_token: nil, replacement_comment: nil, replacement_for: nil, replacement_substatus: nil, shipping_address: nil, shipping_method: nil, spend_limit: nil, spend_limit_duration: nil, state: nil, request_options: {})
18
+ # @overload create(type:, account_token: nil, bulk_order_token: nil, card_program_token: nil, carrier: nil, digital_card_art_token: nil, exp_month: nil, exp_year: nil, memo: nil, pin: nil, product_id: nil, replacement_account_token: nil, replacement_comment: nil, replacement_for: nil, replacement_substatus: nil, shipping_address: nil, shipping_method: nil, spend_limit: nil, spend_limit_duration: nil, state: nil, idempotency_key: nil, request_options: {})
19
19
  #
20
- # @param type [Symbol, Lithic::Models::CardCreateParams::Type] Card types:
20
+ # @param type [Symbol, Lithic::Models::CardCreateParams::Type] Body param: Card types:
21
21
  #
22
- # @param account_token [String] Globally unique identifier for the account that the card will be associated with
22
+ # @param account_token [String] Body param: Globally unique identifier for the account that the card will be ass
23
23
  #
24
- # @param bulk_order_token [String] Globally unique identifier for an existing bulk order to associate this card wit
24
+ # @param bulk_order_token [String] Body param: Globally unique identifier for an existing bulk order to associate t
25
25
  #
26
- # @param card_program_token [String] For card programs with more than one BIN range. This must be configured with Lit
26
+ # @param card_program_token [String] Body param: For card programs with more than one BIN range. This must be configu
27
27
  #
28
- # @param carrier [Lithic::Models::Carrier]
28
+ # @param carrier [Lithic::Models::Carrier] Body param
29
29
  #
30
- # @param digital_card_art_token [String] Specifies the digital card art to be displayed in the user’s digital wallet afte
30
+ # @param digital_card_art_token [String] Body param: Specifies the digital card art to be displayed in the user’s digital
31
31
  #
32
- # @param exp_month [String] Two digit (MM) expiry month. If neither `exp_month` nor `exp_year` is provided,
32
+ # @param exp_month [String] Body param: Two digit (MM) expiry month. If neither `exp_month` nor `exp_year` i
33
33
  #
34
- # @param exp_year [String] Four digit (yyyy) expiry year. If neither `exp_month` nor `exp_year` is provided
34
+ # @param exp_year [String] Body param: Four digit (yyyy) expiry year. If neither `exp_month` nor `exp_year`
35
35
  #
36
- # @param memo [String] Friendly name to identify the card.
36
+ # @param memo [String] Body param: Friendly name to identify the card.
37
37
  #
38
- # @param pin [String] Encrypted PIN block (in base64). Applies to cards of type `PHYSICAL` and `VIRTUA
38
+ # @param pin [String] Body param: Encrypted PIN block (in base64). Applies to cards of type `PHYSICAL`
39
39
  #
40
- # @param product_id [String] Only applicable to cards of type `PHYSICAL`. This must be configured with Lithic
40
+ # @param product_id [String] Body param: Only applicable to cards of type `PHYSICAL`. This must be configured
41
41
  #
42
- # @param replacement_account_token [String] Restricted field limited to select use cases. Lithic will reach out directly if
42
+ # @param replacement_account_token [String] Body param: Restricted field limited to select use cases. Lithic will reach out
43
43
  #
44
- # @param replacement_comment [String] Additional context or information related to the card that this card will replac
44
+ # @param replacement_comment [String] Body param: Additional context or information related to the card that this card
45
45
  #
46
- # @param replacement_for [String] Globally unique identifier for the card that this card will replace. If the card
46
+ # @param replacement_for [String] Body param: Globally unique identifier for the card that this card will replace.
47
47
  #
48
- # @param replacement_substatus [Symbol, Lithic::Models::CardCreateParams::ReplacementSubstatus] Card state substatus values for the card that this card will replace:
48
+ # @param replacement_substatus [Symbol, Lithic::Models::CardCreateParams::ReplacementSubstatus] Body param: Card state substatus values for the card that this card will replace
49
49
  #
50
- # @param shipping_address [Lithic::Models::ShippingAddress]
50
+ # @param shipping_address [Lithic::Models::ShippingAddress] Body param
51
51
  #
52
- # @param shipping_method [Symbol, Lithic::Models::CardCreateParams::ShippingMethod] Shipping method for the card. Only applies to cards of type PHYSICAL.
52
+ # @param shipping_method [Symbol, Lithic::Models::CardCreateParams::ShippingMethod] Body param: Shipping method for the card. Only applies to cards of type PHYSICAL
53
53
  #
54
- # @param spend_limit [Integer] Amount (in cents) to limit approved authorizations (e.g. 100000 would be a $1,00
54
+ # @param spend_limit [Integer] Body param: Amount (in cents) to limit approved authorizations (e.g. 100000 woul
55
55
  #
56
- # @param spend_limit_duration [Symbol, Lithic::Models::SpendLimitDuration] Spend limit duration values:
56
+ # @param spend_limit_duration [Symbol, Lithic::Models::SpendLimitDuration] Body param: Spend limit duration values:
57
+ #
58
+ # @param state [Symbol, Lithic::Models::CardCreateParams::State] Body param: Card state values:
57
59
  #
58
- # @param state [Symbol, Lithic::Models::CardCreateParams::State] Card state values:
60
+ # @param idempotency_key [String] Header param: Idempotency key for the request
59
61
  #
60
62
  # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
61
63
  #
@@ -64,7 +66,15 @@ module Lithic
64
66
  # @see Lithic::Models::CardCreateParams
65
67
  def create(params)
66
68
  parsed, options = Lithic::CardCreateParams.dump_request(params)
67
- @client.request(method: :post, path: "v1/cards", body: parsed, model: Lithic::Card, options: options)
69
+ header_params = {idempotency_key: "idempotency-key"}
70
+ @client.request(
71
+ method: :post,
72
+ path: "v1/cards",
73
+ headers: parsed.slice(*header_params.keys).transform_keys(header_params),
74
+ body: parsed.except(*header_params.keys),
75
+ model: Lithic::Card,
76
+ options: options
77
+ )
68
78
  end
69
79
 
70
80
  # Get card configuration such as spend limit and state.
@@ -22,15 +22,15 @@ module Lithic
22
22
  #
23
23
  # @overload create(nickname:, type:, account_token: nil, is_for_benefit_of: nil, idempotency_key: nil, request_options: {})
24
24
  #
25
- # @param nickname [String] Body param:
25
+ # @param nickname [String] Body param
26
26
  #
27
- # @param type [Symbol, Lithic::Models::FinancialAccountCreateParams::Type] Body param:
27
+ # @param type [Symbol, Lithic::Models::FinancialAccountCreateParams::Type] Body param
28
28
  #
29
- # @param account_token [String] Body param:
29
+ # @param account_token [String] Body param
30
30
  #
31
- # @param is_for_benefit_of [Boolean] Body param:
31
+ # @param is_for_benefit_of [Boolean] Body param
32
32
  #
33
- # @param idempotency_key [String] Header param:
33
+ # @param idempotency_key [String] Header param: Idempotency key for the request
34
34
  #
35
35
  # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
36
36
  #
@@ -105,7 +105,7 @@ module Lithic
105
105
  # [update account](https://docs.lithic.com/reference/patchaccountbytoken)
106
106
  # endpoint.
107
107
  #
108
- # @overload simulate_authorization(amount:, descriptor:, pan:, mcc: nil, merchant_acceptor_id: nil, merchant_amount: nil, merchant_currency: nil, partial_approval_capable: nil, pin: nil, status: nil, request_options: {})
108
+ # @overload simulate_authorization(amount:, descriptor:, pan:, mcc: nil, merchant_acceptor_city: nil, merchant_acceptor_country: nil, merchant_acceptor_id: nil, merchant_acceptor_state: nil, merchant_amount: nil, merchant_currency: nil, partial_approval_capable: nil, pin: nil, status: nil, request_options: {})
109
109
  #
110
110
  # @param amount [Integer] Amount (in cents) to authorize. For credit authorizations and financial credit a
111
111
  #
@@ -115,8 +115,14 @@ module Lithic
115
115
  #
116
116
  # @param mcc [String] Merchant category code for the transaction to be simulated. A four-digit number
117
117
  #
118
+ # @param merchant_acceptor_city [String] Merchant acceptor city
119
+ #
120
+ # @param merchant_acceptor_country [String] Merchant acceptor country code (ISO 3166-1 alpha-3)
121
+ #
118
122
  # @param merchant_acceptor_id [String] Unique identifier to identify the payment card acceptor.
119
123
  #
124
+ # @param merchant_acceptor_state [String] Merchant acceptor state/province (ISO 3166-2 subdivision code)
125
+ #
120
126
  # @param merchant_amount [Integer] Amount of the transaction to be simulated in currency specified in merchant_curr
121
127
  #
122
128
  # @param merchant_currency [String] 3-character alphabetic ISO 4217 currency code. Note: Simulator only accepts USD,
@@ -211,7 +217,7 @@ module Lithic
211
217
  # Simulates a credit authorization advice from the card network. This message
212
218
  # indicates that the network approved a credit authorization on your behalf.
213
219
  #
214
- # @overload simulate_credit_authorization_advice(amount:, descriptor:, pan:, mcc: nil, merchant_acceptor_id: nil, request_options: {})
220
+ # @overload simulate_credit_authorization_advice(amount:, descriptor:, pan:, mcc: nil, merchant_acceptor_city: nil, merchant_acceptor_country: nil, merchant_acceptor_id: nil, merchant_acceptor_state: nil, request_options: {})
215
221
  #
216
222
  # @param amount [Integer] Amount (in cents). Any value entered will be converted into a negative amount in
217
223
  #
@@ -221,8 +227,14 @@ module Lithic
221
227
  #
222
228
  # @param mcc [String] Merchant category code for the transaction to be simulated. A four-digit number
223
229
  #
230
+ # @param merchant_acceptor_city [String] Merchant acceptor city
231
+ #
232
+ # @param merchant_acceptor_country [String] Merchant acceptor country code (ISO 3166-1 alpha-3)
233
+ #
224
234
  # @param merchant_acceptor_id [String] Unique identifier to identify the payment card acceptor.
225
235
  #
236
+ # @param merchant_acceptor_state [String] Merchant acceptor state/province (ISO 3166-2 subdivision code)
237
+ #
226
238
  # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
227
239
  #
228
240
  # @return [Lithic::Models::TransactionSimulateCreditAuthorizationAdviceResponse]
@@ -32,7 +32,7 @@ module Lithic
32
32
  #
33
33
  # @param payload [String] The raw webhook payload as a string
34
34
  #
35
- # @return [Lithic::Models::AccountHolderCreatedWebhookEvent, Lithic::Models::ParsedWebhookEvent::KYBPayload, Lithic::Models::ParsedWebhookEvent::KYCPayload, Lithic::Models::ParsedWebhookEvent::LegacyPayload, Lithic::Models::AccountHolderVerificationWebhookEvent, Lithic::Models::AccountHolderDocumentUpdatedWebhookEvent, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent, Lithic::Models::TokenizationDecisioningRequestWebhookEvent, Lithic::Models::AuthRulesBacktestReportCreatedWebhookEvent, Lithic::Models::BalanceUpdatedWebhookEvent, Lithic::Models::BookTransferTransactionCreatedWebhookEvent, Lithic::Models::BookTransferTransactionUpdatedWebhookEvent, Lithic::Models::CardCreatedWebhookEvent, Lithic::Models::CardConvertedWebhookEvent, Lithic::Models::CardRenewedWebhookEvent, Lithic::Models::CardReissuedWebhookEvent, Lithic::Models::CardShippedWebhookEvent, Lithic::Models::CardTransactionUpdatedWebhookEvent, Lithic::Models::CardTransactionEnhancedDataCreatedWebhookEvent, Lithic::Models::CardTransactionEnhancedDataUpdatedWebhookEvent, Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent, Lithic::Models::DigitalWalletTokenizationResultWebhookEvent, Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeWebhookEvent, Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeSentWebhookEvent, Lithic::Models::DigitalWalletTokenizationUpdatedWebhookEvent, Lithic::Models::DisputeUpdatedWebhookEvent, Lithic::Models::DisputeEvidenceUploadFailedWebhookEvent, Lithic::Models::ExternalBankAccountCreatedWebhookEvent, Lithic::Models::ExternalBankAccountUpdatedWebhookEvent, Lithic::Models::ExternalPaymentCreatedWebhookEvent, Lithic::Models::ExternalPaymentUpdatedWebhookEvent, Lithic::Models::FinancialAccountCreatedWebhookEvent, Lithic::Models::FinancialAccountUpdatedWebhookEvent, Lithic::Models::FundingEventCreatedWebhookEvent, Lithic::Models::LoanTapeCreatedWebhookEvent, Lithic::Models::LoanTapeUpdatedWebhookEvent, Lithic::Models::ManagementOperationCreatedWebhookEvent, Lithic::Models::ManagementOperationUpdatedWebhookEvent, Lithic::Models::InternalTransactionCreatedWebhookEvent, Lithic::Models::InternalTransactionUpdatedWebhookEvent, Lithic::Models::NetworkTotalCreatedWebhookEvent, Lithic::Models::NetworkTotalUpdatedWebhookEvent, Lithic::Models::PaymentTransactionCreatedWebhookEvent, Lithic::Models::PaymentTransactionUpdatedWebhookEvent, Lithic::Models::SettlementReportUpdatedWebhookEvent, Lithic::Models::StatementsCreatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationCreatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationUpdatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationChallengeWebhookEvent, Lithic::Models::TokenizationApprovalRequestWebhookEvent, Lithic::Models::TokenizationResultWebhookEvent, Lithic::Models::TokenizationTwoFactorAuthenticationCodeWebhookEvent, Lithic::Models::TokenizationTwoFactorAuthenticationCodeSentWebhookEvent, Lithic::Models::TokenizationUpdatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationApprovalRequestWebhookEvent, Lithic::Models::DisputeTransactionCreatedWebhookEvent, Lithic::Models::DisputeTransactionUpdatedWebhookEvent]
35
+ # @return [Lithic::Models::AccountHolderCreatedWebhookEvent, Lithic::Models::ParsedWebhookEvent::KYBPayload, Lithic::Models::ParsedWebhookEvent::KYCPayload, Lithic::Models::ParsedWebhookEvent::LegacyPayload, Lithic::Models::AccountHolderVerificationWebhookEvent, Lithic::Models::AccountHolderDocumentUpdatedWebhookEvent, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent, Lithic::Models::TokenizationDecisioningRequestWebhookEvent, Lithic::Models::AuthRulesBacktestReportCreatedWebhookEvent, Lithic::Models::BalanceUpdatedWebhookEvent, Lithic::Models::BookTransferTransactionCreatedWebhookEvent, Lithic::Models::BookTransferTransactionUpdatedWebhookEvent, Lithic::Models::CardCreatedWebhookEvent, Lithic::Models::CardConvertedWebhookEvent, Lithic::Models::CardRenewedWebhookEvent, Lithic::Models::CardReissuedWebhookEvent, Lithic::Models::CardShippedWebhookEvent, Lithic::Models::CardUpdatedWebhookEvent, Lithic::Models::CardTransactionUpdatedWebhookEvent, Lithic::Models::CardTransactionEnhancedDataCreatedWebhookEvent, Lithic::Models::CardTransactionEnhancedDataUpdatedWebhookEvent, Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent, Lithic::Models::DigitalWalletTokenizationResultWebhookEvent, Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeWebhookEvent, Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeSentWebhookEvent, Lithic::Models::DigitalWalletTokenizationUpdatedWebhookEvent, Lithic::Models::DisputeUpdatedWebhookEvent, Lithic::Models::DisputeEvidenceUploadFailedWebhookEvent, Lithic::Models::ExternalBankAccountCreatedWebhookEvent, Lithic::Models::ExternalBankAccountUpdatedWebhookEvent, Lithic::Models::ExternalPaymentCreatedWebhookEvent, Lithic::Models::ExternalPaymentUpdatedWebhookEvent, Lithic::Models::FinancialAccountCreatedWebhookEvent, Lithic::Models::FinancialAccountUpdatedWebhookEvent, Lithic::Models::FundingEventCreatedWebhookEvent, Lithic::Models::LoanTapeCreatedWebhookEvent, Lithic::Models::LoanTapeUpdatedWebhookEvent, Lithic::Models::ManagementOperationCreatedWebhookEvent, Lithic::Models::ManagementOperationUpdatedWebhookEvent, Lithic::Models::InternalTransactionCreatedWebhookEvent, Lithic::Models::InternalTransactionUpdatedWebhookEvent, Lithic::Models::NetworkTotalCreatedWebhookEvent, Lithic::Models::NetworkTotalUpdatedWebhookEvent, Lithic::Models::PaymentTransactionCreatedWebhookEvent, Lithic::Models::PaymentTransactionUpdatedWebhookEvent, Lithic::Models::SettlementReportUpdatedWebhookEvent, Lithic::Models::StatementsCreatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationCreatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationUpdatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationChallengeWebhookEvent, Lithic::Models::TokenizationApprovalRequestWebhookEvent, Lithic::Models::TokenizationResultWebhookEvent, Lithic::Models::TokenizationTwoFactorAuthenticationCodeWebhookEvent, Lithic::Models::TokenizationTwoFactorAuthenticationCodeSentWebhookEvent, Lithic::Models::TokenizationUpdatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationApprovalRequestWebhookEvent, Lithic::Models::DisputeTransactionCreatedWebhookEvent, Lithic::Models::DisputeTransactionUpdatedWebhookEvent]
36
36
  def parse_unsafe(payload)
37
37
  parsed = JSON.parse(payload, symbolize_names: true)
38
38
  Lithic::Internal::Type::Converter.coerce(Lithic::Models::ParsedWebhookEvent, parsed)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Lithic
4
- VERSION = "0.3.0"
4
+ VERSION = "0.5.0"
5
5
  end
data/lib/lithic.rb CHANGED
@@ -127,6 +127,8 @@ require_relative "lithic/models/auth_rules/v2_create_params"
127
127
  require_relative "lithic/models/auth_rules/v2_delete_params"
128
128
  require_relative "lithic/models/auth_rules/v2_draft_params"
129
129
  require_relative "lithic/models/auth_rules/v2_list_params"
130
+ require_relative "lithic/models/auth_rules/v2_list_results_params"
131
+ require_relative "lithic/models/auth_rules/v2_list_results_response"
130
132
  require_relative "lithic/models/auth_rules/v2_promote_params"
131
133
  require_relative "lithic/models/auth_rules/v2_retrieve_features_params"
132
134
  require_relative "lithic/models/auth_rules/v2_retrieve_features_response"
@@ -185,6 +187,7 @@ require_relative "lithic/models/card_spend_limits"
185
187
  require_relative "lithic/models/card_transaction_enhanced_data_created_webhook_event"
186
188
  require_relative "lithic/models/card_transaction_enhanced_data_updated_webhook_event"
187
189
  require_relative "lithic/models/card_transaction_updated_webhook_event"
190
+ require_relative "lithic/models/card_updated_webhook_event"
188
191
  require_relative "lithic/models/card_update_params"
189
192
  require_relative "lithic/models/card_web_provision_params"
190
193
  require_relative "lithic/models/card_web_provision_response"
@@ -296,7 +296,7 @@ module Lithic
296
296
  end
297
297
 
298
298
  JSON_CONTENT =
299
- T.let(%r{^application/(?:vnd(?:\.[^.]+)*\+)?json(?!l)}, Regexp)
299
+ T.let(%r{^application/(?:[a-zA-Z0-9.-]+\+)?json(?!l)}, Regexp)
300
300
  JSONL_CONTENT =
301
301
  T.let(%r{^application/(:?x-(?:n|l)djson)|(:?(?:x-)?jsonl)}, Regexp)
302
302