diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 8f3e0a49..b4e9013b 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.15.0" + ".": "0.16.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 29c3961c..17fba7ce 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 195 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-efe780032e44b3cf0f6914407e43bce6aa7176fa50aa6ec018f93c1f28af8490.yml -openapi_spec_hash: fcb4ca53ca59978f23f21d7c74fcc0b0 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-99f95bae0a9466a3c3032c867cae9878877c1602f2d68c2441813ce2c8dc8f87.yml +openapi_spec_hash: 047fd5b9c00f6acddd3e4f5dc203a4ed config_hash: a0a579b0564a5c18568a78f5ba2b6653 diff --git a/CHANGELOG.md b/CHANGELOG.md index e01432b6..900a8b5e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,21 @@ # Changelog +## 0.16.0 (2026-06-09) + +Full Changelog: [v0.15.0...v0.16.0](https://github.com/lithic-com/lithic-ruby/compare/v0.15.0...v0.16.0) + +### Features + +* **api:** Add created field to Challenge object ([e442303](https://github.com/lithic-com/lithic-ruby/commit/e44230324af07930c8cc84b3035677df54bc031f)) +* **api:** add day_of_period field to loan_tape ([71ab28b](https://github.com/lithic-com/lithic-ruby/commit/71ab28b5af8e6118b2133bc8ed190520b6be2396)) +* **api:** add hold_adjustment_action variant to auth_rules action parameter ([bae640f](https://github.com/lithic-com/lithic-ruby/commit/bae640faf01eef0b956cb24eaa73f92c40536082)) +* **api:** add NVS name_validation fields to ASA request and response ([5747fda](https://github.com/lithic-com/lithic-ruby/commit/5747fda7c1065d257bc60d03e770f66be8677d48)) + + +### Documentation + +* **api:** update support contact from email to URL in account/card resources ([bd7f679](https://github.com/lithic-com/lithic-ruby/commit/bd7f67927187e7daa99059f5e9190c1df79424c3)) + ## 0.15.0 (2026-05-27) Full Changelog: [v0.14.0...v0.15.0](https://github.com/lithic-com/lithic-ruby/compare/v0.14.0...v0.15.0) diff --git a/Gemfile.lock b/Gemfile.lock index e7eac2d0..45901084 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - lithic (0.15.0) + lithic (0.16.0) cgi connection_pool diff --git a/README.md b/README.md index 15a508f1..4506a0ed 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ To use this gem, install via Bundler by adding the following to your application ```ruby -gem "lithic", "~> 0.15.0" +gem "lithic", "~> 0.16.0" ``` diff --git a/lib/lithic/models/account.rb b/lib/lithic/models/account.rb index 8a8c7c61..1e118c7e 100644 --- a/lib/lithic/models/account.rb +++ b/lib/lithic/models/account.rb @@ -38,7 +38,7 @@ class Account < Lithic::Internal::Type::BaseModel # accounts are unable to be transitioned to `ACTIVE` or `PAUSED` states. # Accounts can be manually set to `CLOSED`, or this can be done by Lithic due to # failure to pass KYB/KYC or for risk/compliance reasons. Please contact - # [support@lithic.com](mailto:support@lithic.com) if you believe this was done + # [support.lithic.com](https://support.lithic.com/) if you believe this was done # by mistake. # # @return [Symbol, Lithic::Models::Account::State] @@ -177,7 +177,7 @@ class SpendLimit < Lithic::Internal::Type::BaseModel # accounts are unable to be transitioned to `ACTIVE` or `PAUSED` states. # Accounts can be manually set to `CLOSED`, or this can be done by Lithic due to # failure to pass KYB/KYC or for risk/compliance reasons. Please contact - # [support@lithic.com](mailto:support@lithic.com) if you believe this was done + # [support.lithic.com](https://support.lithic.com/) if you believe this was done # by mistake. # # @see Lithic::Models::Account#state diff --git a/lib/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rb b/lib/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rb index 8b117e49..6f6178fc 100644 --- a/lib/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rb +++ b/lib/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rb @@ -4,11 +4,11 @@ module Lithic module Models module AuthRules class ConditionalAuthorizationAdjustmentParameters < Lithic::Internal::Type::BaseModel - # @!attribute adjustment - # The hold adjustment to apply if the conditions are met + # @!attribute action + # The hold adjustment to apply if the conditions are met. # - # @return [Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment] - required :adjustment, -> { Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment } + # @return [Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action] + required :action, -> { Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action } # @!attribute conditions # @@ -16,13 +16,13 @@ class ConditionalAuthorizationAdjustmentParameters < Lithic::Internal::Type::Bas required :conditions, -> { Lithic::Internal::Type::ArrayOf[Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Condition] } - # @!method initialize(adjustment:, conditions:) - # @param adjustment [Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment] The hold adjustment to apply if the conditions are met + # @!method initialize(action:, conditions:) + # @param action [Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action] The hold adjustment to apply if the conditions are met. # # @param conditions [Array] - # @see Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters#adjustment - class Adjustment < Lithic::Internal::Type::BaseModel + # @see Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters#action + class Action < Lithic::Internal::Type::BaseModel # @!attribute mode # The mode of the hold adjustment, determining how the value is interpreted: # @@ -31,16 +31,14 @@ class Adjustment < Lithic::Internal::Type::BaseModel # represents a 10% increase, 0 represents no change. # - `ADD_AMOUNT`: The value is added to the hold amount in cents. # - # @return [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment::Mode] - required :mode, - enum: -> { Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment::Mode } + # @return [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action::Mode] + required :mode, enum: -> { Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action::Mode } # @!attribute type # The type of adjustment to apply # - # @return [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment::Type] - required :type, - enum: -> { Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment::Type } + # @return [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action::Type] + required :type, enum: -> { Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action::Type } # @!attribute value # The value used for the hold adjustment, interpreted based on the mode @@ -50,14 +48,14 @@ class Adjustment < Lithic::Internal::Type::BaseModel # @!method initialize(mode:, type:, value:) # Some parameter documentations has been truncated, see - # {Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment} + # {Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action} # for more details. # - # The hold adjustment to apply if the conditions are met + # The hold adjustment to apply if the conditions are met. # - # @param mode [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment::Mode] The mode of the hold adjustment, determining how the value is interpreted: + # @param mode [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action::Mode] The mode of the hold adjustment, determining how the value is interpreted: # - # @param type [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment::Type] The type of adjustment to apply + # @param type [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action::Type] The type of adjustment to apply # # @param value [Integer] The value used for the hold adjustment, interpreted based on the mode @@ -68,7 +66,7 @@ class Adjustment < Lithic::Internal::Type::BaseModel # represents a 10% increase, 0 represents no change. # - `ADD_AMOUNT`: The value is added to the hold amount in cents. # - # @see Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment#mode + # @see Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action#mode module Mode extend Lithic::Internal::Type::Enum @@ -82,7 +80,7 @@ module Mode # The type of adjustment to apply # - # @see Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment#type + # @see Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action#type module Type extend Lithic::Internal::Type::Enum diff --git a/lib/lithic/models/card.rb b/lib/lithic/models/card.rb index 75c62148..cf117a9b 100644 --- a/lib/lithic/models/card.rb +++ b/lib/lithic/models/card.rb @@ -13,7 +13,7 @@ class Card < Lithic::Models::NonPCICard # @!attribute pan # Primary Account Number (PAN) (i.e. the card number). Customers must be PCI # compliant to have PAN returned as a field in production. Please contact - # support@lithic.com for questions. + # https://support.lithic.com/ for questions. # # @return [String, nil] optional :pan, String diff --git a/lib/lithic/models/card_authorization.rb b/lib/lithic/models/card_authorization.rb index 3f54f069..b77e9ec0 100644 --- a/lib/lithic/models/card_authorization.rb +++ b/lib/lithic/models/card_authorization.rb @@ -110,6 +110,14 @@ class CardAuthorization < Lithic::Internal::Type::BaseModel # @return [String] required :merchant_currency, String + # @!attribute name_validation + # Network name validation data, present when the card network requested name + # validation for this transaction. Contains the cardholder name provided by the + # network and Lithic's computed match result against KYC data on file. + # + # @return [Lithic::Models::CardAuthorization::NameValidation, nil] + required :name_validation, -> { Lithic::CardAuthorization::NameValidation }, nil?: true + # @!attribute service_location # Where the cardholder received the service, when different from the card acceptor # location. This is populated from network data elements such as Mastercard DE-122 @@ -233,7 +241,7 @@ class CardAuthorization < Lithic::Internal::Type::BaseModel # @return [Time, nil] optional :ttl, Time - # @!method initialize(token:, acquirer_fee:, amount:, amounts:, authorization_amount:, avs:, card:, cardholder_currency:, cash_amount:, created:, merchant:, merchant_amount:, merchant_currency:, service_location:, settled_amount:, status:, transaction_initiator:, account_type: nil, cardholder_authentication: nil, cashback: nil, conversion_rate: nil, event_token: nil, fleet_info: nil, latest_challenge: nil, network: nil, network_risk_score: nil, network_specific_data: nil, pos: nil, token_info: nil, ttl: nil) + # @!method initialize(token:, acquirer_fee:, amount:, amounts:, authorization_amount:, avs:, card:, cardholder_currency:, cash_amount:, created:, merchant:, merchant_amount:, merchant_currency:, name_validation:, service_location:, settled_amount:, status:, transaction_initiator:, account_type: nil, cardholder_authentication: nil, cashback: nil, conversion_rate: nil, event_token: nil, fleet_info: nil, latest_challenge: nil, network: nil, network_risk_score: nil, network_specific_data: nil, pos: nil, token_info: nil, ttl: nil) # Some parameter documentations has been truncated, see # {Lithic::Models::CardAuthorization} for more details. # @@ -265,6 +273,8 @@ class CardAuthorization < Lithic::Internal::Type::BaseModel # # @param merchant_currency [String] 3-character alphabetic ISO 4217 code for the local currency of the transaction. # + # @param name_validation [Lithic::Models::CardAuthorization::NameValidation, nil] Network name validation data, present when the card network requested name valid + # # @param service_location [Lithic::Models::CardAuthorization::ServiceLocation, nil] Where the cardholder received the service, when different from the card acceptor # # @param settled_amount [Integer] Deprecated, use `amounts`. Amount (in cents) of the transaction that has been se @@ -623,6 +633,94 @@ class Merchant < Lithic::Models::Merchant # @param street_address [String, nil] Street address of card acceptor. end + # @see Lithic::Models::CardAuthorization#name_validation + class NameValidation < Lithic::Internal::Type::BaseModel + # @!attribute name + # Cardholder name as provided by the card network. + # + # @return [Lithic::Models::CardAuthorization::NameValidation::Name] + required :name, -> { Lithic::CardAuthorization::NameValidation::Name } + + # @!attribute name_on_file_match + # Lithic's computed match result comparing the network-provided name to the name + # on file. + # + # @return [Lithic::Models::CardAuthorization::NameValidation::NameOnFileMatch] + required :name_on_file_match, -> { Lithic::CardAuthorization::NameValidation::NameOnFileMatch } + + # @!method initialize(name:, name_on_file_match:) + # Some parameter documentations has been truncated, see + # {Lithic::Models::CardAuthorization::NameValidation} for more details. + # + # Network name validation data, present when the card network requested name + # validation for this transaction. Contains the cardholder name provided by the + # network and Lithic's computed match result against KYC data on file. + # + # @param name [Lithic::Models::CardAuthorization::NameValidation::Name] Cardholder name as provided by the card network. + # + # @param name_on_file_match [Lithic::Models::CardAuthorization::NameValidation::NameOnFileMatch] Lithic's computed match result comparing the network-provided name to the name o + + # @see Lithic::Models::CardAuthorization::NameValidation#name + class Name < Lithic::Internal::Type::BaseModel + # @!attribute first + # First name + # + # @return [String] + required :first, String + + # @!attribute last + # Last name + # + # @return [String] + required :last, String + + # @!attribute middle + # Middle name + # + # @return [String, nil] + required :middle, String, nil?: true + + # @!method initialize(first:, last:, middle:) + # Cardholder name as provided by the card network. + # + # @param first [String] First name + # + # @param last [String] Last name + # + # @param middle [String, nil] Middle name + end + + # @see Lithic::Models::CardAuthorization::NameValidation#name_on_file_match + class NameOnFileMatch < Lithic::Internal::Type::BaseModel + # @!attribute full_name + # Overall name match result. + # + # @return [Symbol, Lithic::Models::CardAuthorization::NameValidation::NameOnFileMatch::FullName] + required :full_name, enum: -> { Lithic::CardAuthorization::NameValidation::NameOnFileMatch::FullName } + + # @!method initialize(full_name:) + # Lithic's computed match result comparing the network-provided name to the name + # on file. + # + # @param full_name [Symbol, Lithic::Models::CardAuthorization::NameValidation::NameOnFileMatch::FullName] Overall name match result. + + # Overall name match result. + # + # @see Lithic::Models::CardAuthorization::NameValidation::NameOnFileMatch#full_name + module FullName + extend Lithic::Internal::Type::Enum + + MATCH = :MATCH + PARTIAL_MATCH = :PARTIAL_MATCH + NO_MATCH = :NO_MATCH + UNVERIFIED = :UNVERIFIED + + # @!method self.values + # @return [Array] + end + end + end + # @see Lithic::Models::CardAuthorization#service_location class ServiceLocation < Lithic::Internal::Type::BaseModel # @!attribute city @@ -793,6 +891,19 @@ module FleetRestrictionCode # @see Lithic::Models::CardAuthorization#latest_challenge class LatestChallenge < Lithic::Internal::Type::BaseModel + # @!attribute completed_at + # The date and time when the Authorization Challenge was completed in UTC. Filled + # only if the challenge has been completed. + # + # @return [Time, nil] + required :completed_at, Time, nil?: true + + # @!attribute created + # The date and time when the Authorization Challenge was created in UTC + # + # @return [Time] + required :created, Time + # @!attribute method_ # The method used to deliver the challenge to the cardholder # @@ -821,27 +932,22 @@ class LatestChallenge < Lithic::Internal::Type::BaseModel # @return [Symbol, Lithic::Models::CardAuthorization::LatestChallenge::Status] required :status, enum: -> { Lithic::CardAuthorization::LatestChallenge::Status } - # @!attribute completed_at - # The date and time when the Authorization Challenge was completed in UTC. Present - # only if the status is `COMPLETED`. - # - # @return [Time, nil] - optional :completed_at, Time - - # @!method initialize(method_:, phone_number:, status:, completed_at: nil) + # @!method initialize(completed_at:, created:, method_:, phone_number:, status:) # Some parameter documentations has been truncated, see # {Lithic::Models::CardAuthorization::LatestChallenge} for more details. # # The latest Authorization Challenge that was issued to the cardholder for this # merchant. # + # @param completed_at [Time, nil] The date and time when the Authorization Challenge was completed in UTC. Filled + # + # @param created [Time] The date and time when the Authorization Challenge was created in UTC + # # @param method_ [Symbol, Lithic::Models::CardAuthorization::LatestChallenge::Method] The method used to deliver the challenge to the cardholder # # @param phone_number [String, nil] The phone number used for sending the Authorization Challenge. Present only when # # @param status [Symbol, Lithic::Models::CardAuthorization::LatestChallenge::Status] The status of the Authorization Challenge - # - # @param completed_at [Time] The date and time when the Authorization Challenge was completed in UTC. Present # The method used to deliver the challenge to the cardholder # diff --git a/lib/lithic/models/financial_accounts/loan_tape.rb b/lib/lithic/models/financial_accounts/loan_tape.rb index cb8f4c2e..ba2ae2d1 100644 --- a/lib/lithic/models/financial_accounts/loan_tape.rb +++ b/lib/lithic/models/financial_accounts/loan_tape.rb @@ -126,13 +126,19 @@ class LoanTape < Lithic::Internal::Type::BaseModel # @return [Lithic::Models::StatementTotals] required :ytd_totals, -> { Lithic::StatementTotals } + # @!attribute day_of_period + # Day of the billing period that this loan tape covers, starting at 1 + # + # @return [Integer, nil] + optional :day_of_period, Integer, nil?: true + # @!attribute tier # Interest tier to which this account belongs to # # @return [String, nil] optional :tier, String, nil?: true - # @!method initialize(token:, account_standing:, available_credit:, balances:, created:, credit_limit:, credit_product_token:, date:, day_totals:, ending_balance:, excess_credits:, financial_account_token:, interest_details:, minimum_payment_balance:, payment_allocation:, period_totals:, previous_statement_balance:, starting_balance:, updated:, version:, ytd_totals:, tier: nil) + # @!method initialize(token:, account_standing:, available_credit:, balances:, created:, credit_limit:, credit_product_token:, date:, day_totals:, ending_balance:, excess_credits:, financial_account_token:, interest_details:, minimum_payment_balance:, payment_allocation:, period_totals:, previous_statement_balance:, starting_balance:, updated:, version:, ytd_totals:, day_of_period: nil, tier: nil) # Some parameter documentations has been truncated, see # {Lithic::Models::FinancialAccounts::LoanTape} for more details. # @@ -178,6 +184,8 @@ class LoanTape < Lithic::Internal::Type::BaseModel # # @param ytd_totals [Lithic::Models::StatementTotals] # + # @param day_of_period [Integer, nil] Day of the billing period that this loan tape covers, starting at 1 + # # @param tier [String, nil] Interest tier to which this account belongs to # @see Lithic::Models::FinancialAccounts::LoanTape#account_standing diff --git a/lib/lithic/resources/cards.rb b/lib/lithic/resources/cards.rb index 029ef58d..7eb72a22 100644 --- a/lib/lithic/resources/cards.rb +++ b/lib/lithic/resources/cards.rb @@ -453,8 +453,8 @@ def retrieve_spend_limits(card_token, params = {}) # Get card configuration such as spend limit and state. Customers must be PCI # compliant to use this endpoint. Please contact - # [support@lithic.com](mailto:support@lithic.com) for questions. _Note: this is a - # `POST` endpoint because it is more secure to send sensitive data in a request + # [support.lithic.com](https://support.lithic.com/) for questions. _Note: this is + # a `POST` endpoint because it is more secure to send sensitive data in a request # body than in a URL._ # # @overload search_by_pan(pan:, request_options: {}) diff --git a/lib/lithic/version.rb b/lib/lithic/version.rb index ae44fd3a..2f7f1028 100644 --- a/lib/lithic/version.rb +++ b/lib/lithic/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Lithic - VERSION = "0.15.0" + VERSION = "0.16.0" end diff --git a/rbi/lithic/models/account.rbi b/rbi/lithic/models/account.rbi index 73441f0a..d94090bb 100644 --- a/rbi/lithic/models/account.rbi +++ b/rbi/lithic/models/account.rbi @@ -36,7 +36,7 @@ module Lithic # accounts are unable to be transitioned to `ACTIVE` or `PAUSED` states. # Accounts can be manually set to `CLOSED`, or this can be done by Lithic due to # failure to pass KYB/KYC or for risk/compliance reasons. Please contact - # [support@lithic.com](mailto:support@lithic.com) if you believe this was done + # [support.lithic.com](https://support.lithic.com/) if you believe this was done # by mistake. sig { returns(Lithic::Account::State::TaggedSymbol) } attr_accessor :state @@ -149,7 +149,7 @@ module Lithic # accounts are unable to be transitioned to `ACTIVE` or `PAUSED` states. # Accounts can be manually set to `CLOSED`, or this can be done by Lithic due to # failure to pass KYB/KYC or for risk/compliance reasons. Please contact - # [support@lithic.com](mailto:support@lithic.com) if you believe this was done + # [support.lithic.com](https://support.lithic.com/) if you believe this was done # by mistake. state:, account_holder: nil, @@ -269,7 +269,7 @@ module Lithic # accounts are unable to be transitioned to `ACTIVE` or `PAUSED` states. # Accounts can be manually set to `CLOSED`, or this can be done by Lithic due to # failure to pass KYB/KYC or for risk/compliance reasons. Please contact - # [support@lithic.com](mailto:support@lithic.com) if you believe this was done + # [support.lithic.com](https://support.lithic.com/) if you believe this was done # by mistake. module State extend Lithic::Internal::Type::Enum diff --git a/rbi/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbi b/rbi/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbi index 0d98b214..0eedd3bc 100644 --- a/rbi/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbi +++ b/rbi/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbi @@ -12,21 +12,21 @@ module Lithic ) end - # The hold adjustment to apply if the conditions are met + # The hold adjustment to apply if the conditions are met. sig do returns( - Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment + Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action ) end - attr_reader :adjustment + attr_reader :action sig do params( - adjustment: - Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment::OrHash + action: + Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action::OrHash ).void end - attr_writer :adjustment + attr_writer :action sig do returns( @@ -39,8 +39,8 @@ module Lithic sig do params( - adjustment: - Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment::OrHash, + action: + Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action::OrHash, conditions: T::Array[ Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Condition::OrHash @@ -48,8 +48,8 @@ module Lithic ).returns(T.attached_class) end def self.new( - # The hold adjustment to apply if the conditions are met - adjustment:, + # The hold adjustment to apply if the conditions are met. + action:, conditions: ) end @@ -57,8 +57,8 @@ module Lithic sig do override.returns( { - adjustment: - Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment, + action: + Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action, conditions: T::Array[ Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Condition @@ -69,11 +69,11 @@ module Lithic def to_hash end - class Adjustment < Lithic::Internal::Type::BaseModel + class Action < Lithic::Internal::Type::BaseModel OrHash = T.type_alias do T.any( - Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment, + Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action, Lithic::Internal::AnyHash ) end @@ -86,7 +86,7 @@ module Lithic # - `ADD_AMOUNT`: The value is added to the hold amount in cents. sig do returns( - Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment::Mode::OrSymbol + Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action::Mode::OrSymbol ) end attr_accessor :mode @@ -94,7 +94,7 @@ module Lithic # The type of adjustment to apply sig do returns( - Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment::Type::OrSymbol + Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action::Type::OrSymbol ) end attr_accessor :type @@ -103,13 +103,13 @@ module Lithic sig { returns(Integer) } attr_accessor :value - # The hold adjustment to apply if the conditions are met + # The hold adjustment to apply if the conditions are met. sig do params( mode: - Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment::Mode::OrSymbol, + Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action::Mode::OrSymbol, type: - Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment::Type::OrSymbol, + Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action::Type::OrSymbol, value: Integer ).returns(T.attached_class) end @@ -132,9 +132,9 @@ module Lithic override.returns( { mode: - Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment::Mode::OrSymbol, + Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action::Mode::OrSymbol, type: - Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment::Type::OrSymbol, + Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action::Type::OrSymbol, value: Integer } ) @@ -155,7 +155,7 @@ module Lithic T.type_alias do T.all( Symbol, - Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment::Mode + Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action::Mode ) end OrSymbol = T.type_alias { T.any(Symbol, String) } @@ -163,23 +163,23 @@ module Lithic REPLACE_WITH_AMOUNT = T.let( :REPLACE_WITH_AMOUNT, - Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment::Mode::TaggedSymbol + Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action::Mode::TaggedSymbol ) ADD_PERCENTAGE = T.let( :ADD_PERCENTAGE, - Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment::Mode::TaggedSymbol + Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action::Mode::TaggedSymbol ) ADD_AMOUNT = T.let( :ADD_AMOUNT, - Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment::Mode::TaggedSymbol + Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action::Mode::TaggedSymbol ) sig do override.returns( T::Array[ - Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment::Mode::TaggedSymbol + Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action::Mode::TaggedSymbol ] ) end @@ -195,7 +195,7 @@ module Lithic T.type_alias do T.all( Symbol, - Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment::Type + Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action::Type ) end OrSymbol = T.type_alias { T.any(Symbol, String) } @@ -203,13 +203,13 @@ module Lithic HOLD_ADJUSTMENT = T.let( :HOLD_ADJUSTMENT, - Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment::Type::TaggedSymbol + Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action::Type::TaggedSymbol ) sig do override.returns( T::Array[ - Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment::Type::TaggedSymbol + Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action::Type::TaggedSymbol ] ) end diff --git a/rbi/lithic/models/card.rbi b/rbi/lithic/models/card.rbi index e7c510f5..61acefb0 100644 --- a/rbi/lithic/models/card.rbi +++ b/rbi/lithic/models/card.rbi @@ -14,7 +14,7 @@ module Lithic # Primary Account Number (PAN) (i.e. the card number). Customers must be PCI # compliant to have PAN returned as a field in production. Please contact - # support@lithic.com for questions. + # https://support.lithic.com/ for questions. sig { returns(T.nilable(String)) } attr_reader :pan @@ -28,7 +28,7 @@ module Lithic cvv: nil, # Primary Account Number (PAN) (i.e. the card number). Customers must be PCI # compliant to have PAN returned as a field in production. Please contact - # support@lithic.com for questions. + # https://support.lithic.com/ for questions. pan: nil ) end diff --git a/rbi/lithic/models/card_authorization.rbi b/rbi/lithic/models/card_authorization.rbi index 50830e84..f068d17e 100644 --- a/rbi/lithic/models/card_authorization.rbi +++ b/rbi/lithic/models/card_authorization.rbi @@ -91,6 +91,20 @@ module Lithic sig { returns(String) } attr_accessor :merchant_currency + # Network name validation data, present when the card network requested name + # validation for this transaction. Contains the cardholder name provided by the + # network and Lithic's computed match result against KYC data on file. + sig { returns(T.nilable(Lithic::CardAuthorization::NameValidation)) } + attr_reader :name_validation + + sig do + params( + name_validation: + T.nilable(Lithic::CardAuthorization::NameValidation::OrHash) + ).void + end + attr_writer :name_validation + # Where the cardholder received the service, when different from the card acceptor # location. This is populated from network data elements such as Mastercard DE-122 # SE1 SF9-14 and Visa F34 DS02. @@ -263,6 +277,8 @@ module Lithic merchant: Lithic::CardAuthorization::Merchant::OrHash, merchant_amount: Integer, merchant_currency: String, + name_validation: + T.nilable(Lithic::CardAuthorization::NameValidation::OrHash), service_location: T.nilable(Lithic::CardAuthorization::ServiceLocation::OrHash), settled_amount: Integer, @@ -331,6 +347,10 @@ module Lithic merchant_amount:, # 3-character alphabetic ISO 4217 code for the local currency of the transaction. merchant_currency:, + # Network name validation data, present when the card network requested name + # validation for this transaction. Contains the cardholder name provided by the + # network and Lithic's computed match result against KYC data on file. + name_validation:, # Where the cardholder received the service, when different from the card acceptor # location. This is populated from network data elements such as Mastercard DE-122 # SE1 SF9-14 and Visa F34 DS02. @@ -401,6 +421,8 @@ module Lithic merchant: Lithic::CardAuthorization::Merchant, merchant_amount: Integer, merchant_currency: String, + name_validation: + T.nilable(Lithic::CardAuthorization::NameValidation), service_location: T.nilable(Lithic::CardAuthorization::ServiceLocation), settled_amount: Integer, @@ -1042,6 +1064,209 @@ module Lithic end end + class NameValidation < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::CardAuthorization::NameValidation, + Lithic::Internal::AnyHash + ) + end + + # Cardholder name as provided by the card network. + sig { returns(Lithic::CardAuthorization::NameValidation::Name) } + attr_reader :name + + sig do + params( + name: Lithic::CardAuthorization::NameValidation::Name::OrHash + ).void + end + attr_writer :name + + # Lithic's computed match result comparing the network-provided name to the name + # on file. + sig do + returns(Lithic::CardAuthorization::NameValidation::NameOnFileMatch) + end + attr_reader :name_on_file_match + + sig do + params( + name_on_file_match: + Lithic::CardAuthorization::NameValidation::NameOnFileMatch::OrHash + ).void + end + attr_writer :name_on_file_match + + # Network name validation data, present when the card network requested name + # validation for this transaction. Contains the cardholder name provided by the + # network and Lithic's computed match result against KYC data on file. + sig do + params( + name: Lithic::CardAuthorization::NameValidation::Name::OrHash, + name_on_file_match: + Lithic::CardAuthorization::NameValidation::NameOnFileMatch::OrHash + ).returns(T.attached_class) + end + def self.new( + # Cardholder name as provided by the card network. + name:, + # Lithic's computed match result comparing the network-provided name to the name + # on file. + name_on_file_match: + ) + end + + sig do + override.returns( + { + name: Lithic::CardAuthorization::NameValidation::Name, + name_on_file_match: + Lithic::CardAuthorization::NameValidation::NameOnFileMatch + } + ) + end + def to_hash + end + + class Name < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::CardAuthorization::NameValidation::Name, + Lithic::Internal::AnyHash + ) + end + + # First name + sig { returns(String) } + attr_accessor :first + + # Last name + sig { returns(String) } + attr_accessor :last + + # Middle name + sig { returns(T.nilable(String)) } + attr_accessor :middle + + # Cardholder name as provided by the card network. + sig do + params( + first: String, + last: String, + middle: T.nilable(String) + ).returns(T.attached_class) + end + def self.new( + # First name + first:, + # Last name + last:, + # Middle name + middle: + ) + end + + sig do + override.returns( + { first: String, last: String, middle: T.nilable(String) } + ) + end + def to_hash + end + end + + class NameOnFileMatch < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::CardAuthorization::NameValidation::NameOnFileMatch, + Lithic::Internal::AnyHash + ) + end + + # Overall name match result. + sig do + returns( + Lithic::CardAuthorization::NameValidation::NameOnFileMatch::FullName::TaggedSymbol + ) + end + attr_accessor :full_name + + # Lithic's computed match result comparing the network-provided name to the name + # on file. + sig do + params( + full_name: + Lithic::CardAuthorization::NameValidation::NameOnFileMatch::FullName::OrSymbol + ).returns(T.attached_class) + end + def self.new( + # Overall name match result. + full_name: + ) + end + + sig do + override.returns( + { + full_name: + Lithic::CardAuthorization::NameValidation::NameOnFileMatch::FullName::TaggedSymbol + } + ) + end + def to_hash + end + + # Overall name match result. + module FullName + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Lithic::CardAuthorization::NameValidation::NameOnFileMatch::FullName + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + MATCH = + T.let( + :MATCH, + Lithic::CardAuthorization::NameValidation::NameOnFileMatch::FullName::TaggedSymbol + ) + PARTIAL_MATCH = + T.let( + :PARTIAL_MATCH, + Lithic::CardAuthorization::NameValidation::NameOnFileMatch::FullName::TaggedSymbol + ) + NO_MATCH = + T.let( + :NO_MATCH, + Lithic::CardAuthorization::NameValidation::NameOnFileMatch::FullName::TaggedSymbol + ) + UNVERIFIED = + T.let( + :UNVERIFIED, + Lithic::CardAuthorization::NameValidation::NameOnFileMatch::FullName::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::CardAuthorization::NameValidation::NameOnFileMatch::FullName::TaggedSymbol + ] + ) + end + def self.values + end + end + end + end + class ServiceLocation < Lithic::Internal::Type::BaseModel OrHash = T.type_alias do @@ -1381,6 +1606,15 @@ module Lithic ) end + # The date and time when the Authorization Challenge was completed in UTC. Filled + # only if the challenge has been completed. + sig { returns(T.nilable(Time)) } + attr_accessor :completed_at + + # The date and time when the Authorization Challenge was created in UTC + sig { returns(Time) } + attr_accessor :created + # The method used to deliver the challenge to the cardholder # # - `SMS` - Challenge was delivered via SMS @@ -1411,27 +1645,24 @@ module Lithic end attr_accessor :status - # The date and time when the Authorization Challenge was completed in UTC. Present - # only if the status is `COMPLETED`. - sig { returns(T.nilable(Time)) } - attr_reader :completed_at - - sig { params(completed_at: Time).void } - attr_writer :completed_at - # The latest Authorization Challenge that was issued to the cardholder for this # merchant. sig do params( + completed_at: T.nilable(Time), + created: Time, method_: Lithic::CardAuthorization::LatestChallenge::Method::OrSymbol, phone_number: T.nilable(String), - status: - Lithic::CardAuthorization::LatestChallenge::Status::OrSymbol, - completed_at: Time + status: Lithic::CardAuthorization::LatestChallenge::Status::OrSymbol ).returns(T.attached_class) end def self.new( + # The date and time when the Authorization Challenge was completed in UTC. Filled + # only if the challenge has been completed. + completed_at:, + # The date and time when the Authorization Challenge was created in UTC + created:, # The method used to deliver the challenge to the cardholder # # - `SMS` - Challenge was delivered via SMS @@ -1447,22 +1678,20 @@ module Lithic # - `PENDING` - Challenge is still open # - `EXPIRED` - Challenge has expired without being completed # - `ERROR` - There was an error processing the challenge - status:, - # The date and time when the Authorization Challenge was completed in UTC. Present - # only if the status is `COMPLETED`. - completed_at: nil + status: ) end sig do override.returns( { + completed_at: T.nilable(Time), + created: Time, method_: Lithic::CardAuthorization::LatestChallenge::Method::TaggedSymbol, phone_number: T.nilable(String), status: - Lithic::CardAuthorization::LatestChallenge::Status::TaggedSymbol, - completed_at: Time + Lithic::CardAuthorization::LatestChallenge::Status::TaggedSymbol } ) end diff --git a/rbi/lithic/models/financial_accounts/loan_tape.rbi b/rbi/lithic/models/financial_accounts/loan_tape.rbi index 7b44d44f..cb00dfee 100644 --- a/rbi/lithic/models/financial_accounts/loan_tape.rbi +++ b/rbi/lithic/models/financial_accounts/loan_tape.rbi @@ -157,6 +157,10 @@ module Lithic sig { params(ytd_totals: Lithic::StatementTotals::OrHash).void } attr_writer :ytd_totals + # Day of the billing period that this loan tape covers, starting at 1 + sig { returns(T.nilable(Integer)) } + attr_accessor :day_of_period + # Interest tier to which this account belongs to sig { returns(T.nilable(String)) } attr_accessor :tier @@ -191,6 +195,7 @@ module Lithic updated: Time, version: Integer, ytd_totals: Lithic::StatementTotals::OrHash, + day_of_period: T.nilable(Integer), tier: T.nilable(String) ).returns(T.attached_class) end @@ -232,6 +237,8 @@ module Lithic # Version number of the loan tape. This starts at 1 version:, ytd_totals:, + # Day of the billing period that this loan tape covers, starting at 1 + day_of_period: nil, # Interest tier to which this account belongs to tier: nil ) @@ -266,6 +273,7 @@ module Lithic updated: Time, version: Integer, ytd_totals: Lithic::StatementTotals, + day_of_period: T.nilable(Integer), tier: T.nilable(String) } ) diff --git a/rbi/lithic/resources/cards.rbi b/rbi/lithic/resources/cards.rbi index 73ea5372..dacf2039 100644 --- a/rbi/lithic/resources/cards.rbi +++ b/rbi/lithic/resources/cards.rbi @@ -624,8 +624,8 @@ module Lithic # Get card configuration such as spend limit and state. Customers must be PCI # compliant to use this endpoint. Please contact - # [support@lithic.com](mailto:support@lithic.com) for questions. _Note: this is a - # `POST` endpoint because it is more secure to send sensitive data in a request + # [support.lithic.com](https://support.lithic.com/) for questions. _Note: this is + # a `POST` endpoint because it is more secure to send sensitive data in a request # body than in a URL._ sig do params( diff --git a/sig/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbs b/sig/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbs index 78663ca9..0a353c6b 100644 --- a/sig/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbs +++ b/sig/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbs @@ -3,48 +3,48 @@ module Lithic module AuthRules type conditional_authorization_adjustment_parameters = { - adjustment: Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment, + action: Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action, conditions: ::Array[Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Condition] } class ConditionalAuthorizationAdjustmentParameters < Lithic::Internal::Type::BaseModel - attr_accessor adjustment: Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment + attr_accessor action: Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action attr_accessor conditions: ::Array[Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Condition] def initialize: ( - adjustment: Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment, + action: Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action, conditions: ::Array[Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Condition] ) -> void def to_hash: -> { - adjustment: Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment, + action: Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action, conditions: ::Array[Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Condition] } - type adjustment = + type action = { - mode: Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment::mode, - type: Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment::type_, + mode: Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action::mode, + type: Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action::type_, value: Integer } - class Adjustment < Lithic::Internal::Type::BaseModel - attr_accessor mode: Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment::mode + class Action < Lithic::Internal::Type::BaseModel + attr_accessor mode: Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action::mode - attr_accessor type: Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment::type_ + attr_accessor type: Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action::type_ attr_accessor value: Integer def initialize: ( - mode: Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment::mode, - type: Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment::type_, + mode: Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action::mode, + type: Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action::type_, value: Integer ) -> void def to_hash: -> { - mode: Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment::mode, - type: Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment::type_, + mode: Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action::mode, + type: Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action::type_, value: Integer } @@ -57,7 +57,7 @@ module Lithic ADD_PERCENTAGE: :ADD_PERCENTAGE ADD_AMOUNT: :ADD_AMOUNT - def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment::mode] + def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action::mode] end type type_ = :HOLD_ADJUSTMENT @@ -67,7 +67,7 @@ module Lithic HOLD_ADJUSTMENT: :HOLD_ADJUSTMENT - def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment::type_] + def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action::type_] end end diff --git a/sig/lithic/models/card_authorization.rbs b/sig/lithic/models/card_authorization.rbs index 948ebba7..3e3653d1 100644 --- a/sig/lithic/models/card_authorization.rbs +++ b/sig/lithic/models/card_authorization.rbs @@ -15,6 +15,7 @@ module Lithic merchant: Lithic::CardAuthorization::Merchant, merchant_amount: Integer, merchant_currency: String, + name_validation: Lithic::CardAuthorization::NameValidation?, service_location: Lithic::CardAuthorization::ServiceLocation?, settled_amount: Integer, status: Lithic::Models::CardAuthorization::status, @@ -61,6 +62,8 @@ module Lithic attr_accessor merchant_currency: String + attr_accessor name_validation: Lithic::CardAuthorization::NameValidation? + attr_accessor service_location: Lithic::CardAuthorization::ServiceLocation? attr_accessor settled_amount: Integer @@ -137,6 +140,7 @@ module Lithic merchant: Lithic::CardAuthorization::Merchant, merchant_amount: Integer, merchant_currency: String, + name_validation: Lithic::CardAuthorization::NameValidation?, service_location: Lithic::CardAuthorization::ServiceLocation?, settled_amount: Integer, status: Lithic::Models::CardAuthorization::status, @@ -170,6 +174,7 @@ module Lithic merchant: Lithic::CardAuthorization::Merchant, merchant_amount: Integer, merchant_currency: String, + name_validation: Lithic::CardAuthorization::NameValidation?, service_location: Lithic::CardAuthorization::ServiceLocation?, settled_amount: Integer, status: Lithic::Models::CardAuthorization::status, @@ -452,6 +457,72 @@ module Lithic } end + type name_validation = + { + name: Lithic::CardAuthorization::NameValidation::Name, + name_on_file_match: Lithic::CardAuthorization::NameValidation::NameOnFileMatch + } + + class NameValidation < Lithic::Internal::Type::BaseModel + attr_accessor name: Lithic::CardAuthorization::NameValidation::Name + + attr_accessor name_on_file_match: Lithic::CardAuthorization::NameValidation::NameOnFileMatch + + def initialize: ( + name: Lithic::CardAuthorization::NameValidation::Name, + name_on_file_match: Lithic::CardAuthorization::NameValidation::NameOnFileMatch + ) -> void + + def to_hash: -> { + name: Lithic::CardAuthorization::NameValidation::Name, + name_on_file_match: Lithic::CardAuthorization::NameValidation::NameOnFileMatch + } + + type name_ = { first: String, last: String, middle: String? } + + class Name < Lithic::Internal::Type::BaseModel + attr_accessor first: String + + attr_accessor last: String + + attr_accessor middle: String? + + def initialize: (first: String, last: String, middle: String?) -> void + + def to_hash: -> { first: String, last: String, middle: String? } + end + + type name_on_file_match = + { + full_name: Lithic::Models::CardAuthorization::NameValidation::NameOnFileMatch::full_name + } + + class NameOnFileMatch < Lithic::Internal::Type::BaseModel + attr_accessor full_name: Lithic::Models::CardAuthorization::NameValidation::NameOnFileMatch::full_name + + def initialize: ( + full_name: Lithic::Models::CardAuthorization::NameValidation::NameOnFileMatch::full_name + ) -> void + + def to_hash: -> { + full_name: Lithic::Models::CardAuthorization::NameValidation::NameOnFileMatch::full_name + } + + type full_name = :MATCH | :PARTIAL_MATCH | :NO_MATCH | :UNVERIFIED + + module FullName + extend Lithic::Internal::Type::Enum + + MATCH: :MATCH + PARTIAL_MATCH: :PARTIAL_MATCH + NO_MATCH: :NO_MATCH + UNVERIFIED: :UNVERIFIED + + def self?.values: -> ::Array[Lithic::Models::CardAuthorization::NameValidation::NameOnFileMatch::full_name] + end + end + end + type service_location = { city: String?, @@ -588,35 +659,38 @@ module Lithic type latest_challenge = { + completed_at: Time?, + created: Time, method_: Lithic::Models::CardAuthorization::LatestChallenge::method_, phone_number: String?, - status: Lithic::Models::CardAuthorization::LatestChallenge::status, - completed_at: Time + status: Lithic::Models::CardAuthorization::LatestChallenge::status } class LatestChallenge < Lithic::Internal::Type::BaseModel + attr_accessor completed_at: Time? + + attr_accessor created: Time + attr_accessor method_: Lithic::Models::CardAuthorization::LatestChallenge::method_ attr_accessor phone_number: String? attr_accessor status: Lithic::Models::CardAuthorization::LatestChallenge::status - attr_reader completed_at: Time? - - def completed_at=: (Time) -> Time - def initialize: ( + completed_at: Time?, + created: Time, method_: Lithic::Models::CardAuthorization::LatestChallenge::method_, phone_number: String?, - status: Lithic::Models::CardAuthorization::LatestChallenge::status, - ?completed_at: Time + status: Lithic::Models::CardAuthorization::LatestChallenge::status ) -> void def to_hash: -> { + completed_at: Time?, + created: Time, method_: Lithic::Models::CardAuthorization::LatestChallenge::method_, phone_number: String?, - status: Lithic::Models::CardAuthorization::LatestChallenge::status, - completed_at: Time + status: Lithic::Models::CardAuthorization::LatestChallenge::status } type method_ = :SMS | :OUT_OF_BAND diff --git a/sig/lithic/models/financial_accounts/loan_tape.rbs b/sig/lithic/models/financial_accounts/loan_tape.rbs index dea4a048..c008dff6 100644 --- a/sig/lithic/models/financial_accounts/loan_tape.rbs +++ b/sig/lithic/models/financial_accounts/loan_tape.rbs @@ -24,6 +24,7 @@ module Lithic updated: Time, version: Integer, ytd_totals: Lithic::StatementTotals, + day_of_period: Integer?, tier: String? } @@ -70,6 +71,8 @@ module Lithic attr_accessor ytd_totals: Lithic::StatementTotals + attr_accessor day_of_period: Integer? + attr_accessor tier: String? def initialize: ( @@ -94,6 +97,7 @@ module Lithic updated: Time, version: Integer, ytd_totals: Lithic::StatementTotals, + ?day_of_period: Integer?, ?tier: String? ) -> void @@ -119,6 +123,7 @@ module Lithic updated: Time, version: Integer, ytd_totals: Lithic::StatementTotals, + day_of_period: Integer?, tier: String? } diff --git a/test/lithic/resources/financial_accounts/loan_tapes_test.rb b/test/lithic/resources/financial_accounts/loan_tapes_test.rb index 1e42f8f4..837a0129 100644 --- a/test/lithic/resources/financial_accounts/loan_tapes_test.rb +++ b/test/lithic/resources/financial_accounts/loan_tapes_test.rb @@ -37,6 +37,7 @@ def test_retrieve_required_params updated: Time, version: Integer, ytd_totals: Lithic::StatementTotals, + day_of_period: Integer | nil, tier: String | nil } end @@ -79,6 +80,7 @@ def test_list updated: Time, version: Integer, ytd_totals: Lithic::StatementTotals, + day_of_period: Integer | nil, tier: String | nil } end