From bd02001603d5893f1095ed7d89f9f019c780fff8 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 2 Mar 2026 19:15:09 +0000 Subject: [PATCH 1/7] feat(api): add action_counts to rule performance reports and code to authorization actions --- .stats.yml | 6 +- lib/lithic.rb | 3 +- .../{rule_stats.rb => backtest_stats.rb} | 40 +- .../conditional_ach_action_parameters.rb | 18 +- ...ditional_tokenization_action_parameters.rb | 26 +- lib/lithic/models/auth_rules/report_stats.rb | 552 ++++++ .../models/auth_rules/v2/backtest_results.rb | 12 +- .../auth_rules/v2_list_results_params.rb | 20 +- .../auth_rules/v2_list_results_response.rb | 210 +- .../auth_rules/v2_retrieve_report_response.rb | 12 +- lib/lithic/resources/auth_rules/v2.rb | 8 +- .../{rule_stats.rbi => backtest_stats.rbi} | 62 +- .../conditional_ach_action_parameters.rbi | 24 +- ...itional_tokenization_action_parameters.rbi | 62 +- rbi/lithic/models/auth_rules/report_stats.rbi | 1754 +++++++++++++++++ .../models/auth_rules/v2/backtest_results.rbi | 19 +- .../auth_rules/v2_list_results_params.rbi | 26 + .../auth_rules/v2_list_results_response.rbi | 617 +++++- .../v2_retrieve_report_response.rbi | 16 +- rbi/lithic/resources/auth_rules/v2.rbi | 8 + .../{rule_stats.rbs => backtest_stats.rbs} | 37 +- .../conditional_ach_action_parameters.rbs | 16 +- ...itional_tokenization_action_parameters.rbs | 30 +- sig/lithic/models/auth_rules/report_stats.rbs | 696 +++++++ .../models/auth_rules/v2/backtest_results.rbs | 16 +- .../auth_rules/v2_list_results_params.rbs | 14 + .../auth_rules/v2_list_results_response.rbs | 269 ++- .../v2_retrieve_report_response.rbs | 16 +- sig/lithic/resources/auth_rules/v2.rbs | 2 + 29 files changed, 4180 insertions(+), 411 deletions(-) rename lib/lithic/models/auth_rules/{rule_stats.rb => backtest_stats.rb} (67%) create mode 100644 lib/lithic/models/auth_rules/report_stats.rb rename rbi/lithic/models/auth_rules/{rule_stats.rbi => backtest_stats.rbi} (72%) create mode 100644 rbi/lithic/models/auth_rules/report_stats.rbi rename sig/lithic/models/auth_rules/{rule_stats.rbs => backtest_stats.rbs} (61%) create mode 100644 sig/lithic/models/auth_rules/report_stats.rbs diff --git a/.stats.yml b/.stats.yml index c89f8408..17f87283 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 185 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-a45946df228eec554b3cd2491f658bd5a45cb91509da0a9f92d50468ea88072f.yml -openapi_spec_hash: 24c7c13e1e7385cab5442ca66091ffc6 -config_hash: 50031f78031362c2e4900222b9ce7ada +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-b29a4bd5ca21348ef426162cbd1fa21070f695572626e4e6faabfa14af38f0b0.yml +openapi_spec_hash: e7c285d6b7006d040ecb50a9d0d2fc17 +config_hash: fb5070d41fcabdedbc084b83964b592a diff --git a/lib/lithic.rb b/lib/lithic.rb index 995b537c..271c34ac 100644 --- a/lib/lithic.rb +++ b/lib/lithic.rb @@ -114,6 +114,7 @@ require_relative "lithic/models/api_status" require_relative "lithic/models/auth_rules/auth_rule" require_relative "lithic/models/auth_rules/auth_rule_condition" +require_relative "lithic/models/auth_rules/backtest_stats" require_relative "lithic/models/auth_rules/conditional_3ds_action_parameters" require_relative "lithic/models/auth_rules/conditional_ach_action_parameters" require_relative "lithic/models/auth_rules/conditional_attribute" @@ -124,7 +125,7 @@ require_relative "lithic/models/auth_rules/conditional_value" require_relative "lithic/models/auth_rules/event_stream" require_relative "lithic/models/auth_rules/merchant_lock_parameters" -require_relative "lithic/models/auth_rules/rule_stats" +require_relative "lithic/models/auth_rules/report_stats" require_relative "lithic/models/auth_rules/v2/backtest_create_params" require_relative "lithic/models/auth_rules/v2/backtest_create_response" require_relative "lithic/models/auth_rules/v2/backtest_retrieve_params" diff --git a/lib/lithic/models/auth_rules/rule_stats.rb b/lib/lithic/models/auth_rules/backtest_stats.rb similarity index 67% rename from lib/lithic/models/auth_rules/rule_stats.rb rename to lib/lithic/models/auth_rules/backtest_stats.rb index 5152203c..2874cbcb 100644 --- a/lib/lithic/models/auth_rules/rule_stats.rb +++ b/lib/lithic/models/auth_rules/backtest_stats.rb @@ -3,10 +3,10 @@ module Lithic module Models module AuthRules - class RuleStats < Lithic::Internal::Type::BaseModel + class BacktestStats < Lithic::Internal::Type::BaseModel # @!attribute approved # The total number of historical transactions approved by this rule during the - # relevant period, or the number of transactions that would have been approved if + # backtest period, or the number of transactions that would have been approved if # the rule was evaluated in shadow mode. # # @return [Integer, nil] @@ -14,7 +14,7 @@ class RuleStats < Lithic::Internal::Type::BaseModel # @!attribute challenged # The total number of historical transactions challenged by this rule during the - # relevant period, or the number of transactions that would have been challenged + # backtest period, or the number of transactions that would have been challenged # if the rule was evaluated in shadow mode. Currently applicable only for 3DS Auth # Rules. # @@ -23,7 +23,7 @@ class RuleStats < Lithic::Internal::Type::BaseModel # @!attribute declined # The total number of historical transactions declined by this rule during the - # relevant period, or the number of transactions that would have been declined if + # backtest period, or the number of transactions that would have been declined if # the rule was evaluated in shadow mode. # # @return [Integer, nil] @@ -32,8 +32,8 @@ class RuleStats < Lithic::Internal::Type::BaseModel # @!attribute examples # Example events and their outcomes. # - # @return [Array, nil] - optional :examples, -> { Lithic::Internal::Type::ArrayOf[Lithic::AuthRules::RuleStats::Example] } + # @return [Array, nil] + optional :examples, -> { Lithic::Internal::Type::ArrayOf[Lithic::AuthRules::BacktestStats::Example] } response_only do # @!attribute version @@ -46,30 +46,24 @@ class RuleStats < Lithic::Internal::Type::BaseModel # @!method initialize(approved: nil, challenged: nil, declined: nil, examples: nil, version: nil) # Some parameter documentations has been truncated, see - # {Lithic::Models::AuthRules::RuleStats} for more details. + # {Lithic::Models::AuthRules::BacktestStats} for more details. # - # @param approved [Integer] The total number of historical transactions approved by this rule during the rel + # @param approved [Integer] The total number of historical transactions approved by this rule during the bac # - # @param challenged [Integer] The total number of historical transactions challenged by this rule during the r + # @param challenged [Integer] The total number of historical transactions challenged by this rule during the b # - # @param declined [Integer] The total number of historical transactions declined by this rule during the rel + # @param declined [Integer] The total number of historical transactions declined by this rule during the bac # - # @param examples [Array] Example events and their outcomes. + # @param examples [Array] Example events and their outcomes. # # @param version [Integer] The version of the rule, this is incremented whenever the rule's parameters chan class Example < Lithic::Internal::Type::BaseModel - # @!attribute approved - # Whether the rule would have approved the request. - # - # @return [Boolean, nil] - optional :approved, Lithic::Internal::Type::Boolean - # @!attribute decision # The decision made by the rule for this event. # - # @return [Symbol, Lithic::Models::AuthRules::RuleStats::Example::Decision, nil] - optional :decision, enum: -> { Lithic::AuthRules::RuleStats::Example::Decision } + # @return [Symbol, Lithic::Models::AuthRules::BacktestStats::Example::Decision, nil] + optional :decision, enum: -> { Lithic::AuthRules::BacktestStats::Example::Decision } # @!attribute event_token # The event token. @@ -83,10 +77,8 @@ class Example < Lithic::Internal::Type::BaseModel # @return [Time, nil] optional :timestamp, Time - # @!method initialize(approved: nil, decision: nil, event_token: nil, timestamp: nil) - # @param approved [Boolean] Whether the rule would have approved the request. - # - # @param decision [Symbol, Lithic::Models::AuthRules::RuleStats::Example::Decision] The decision made by the rule for this event. + # @!method initialize(decision: nil, event_token: nil, timestamp: nil) + # @param decision [Symbol, Lithic::Models::AuthRules::BacktestStats::Example::Decision] The decision made by the rule for this event. # # @param event_token [String] The event token. # @@ -94,7 +86,7 @@ class Example < Lithic::Internal::Type::BaseModel # The decision made by the rule for this event. # - # @see Lithic::Models::AuthRules::RuleStats::Example#decision + # @see Lithic::Models::AuthRules::BacktestStats::Example#decision module Decision extend Lithic::Internal::Type::Enum diff --git a/lib/lithic/models/auth_rules/conditional_ach_action_parameters.rb b/lib/lithic/models/auth_rules/conditional_ach_action_parameters.rb index 50a92d7b..fdd66cca 100644 --- a/lib/lithic/models/auth_rules/conditional_ach_action_parameters.rb +++ b/lib/lithic/models/auth_rules/conditional_ach_action_parameters.rb @@ -7,7 +7,7 @@ class ConditionalACHActionParameters < Lithic::Internal::Type::BaseModel # @!attribute action # The action to take if the conditions are met. # - # @return [Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ApproveAction, Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ReturnAction] + # @return [Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ApproveActionACH, Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ReturnAction] required :action, union: -> { Lithic::AuthRules::ConditionalACHActionParameters::Action } # @!attribute conditions @@ -17,7 +17,7 @@ class ConditionalACHActionParameters < Lithic::Internal::Type::BaseModel -> { Lithic::Internal::Type::ArrayOf[Lithic::AuthRules::ConditionalACHActionParameters::Condition] } # @!method initialize(action:, conditions:) - # @param action [Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ApproveAction, Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ReturnAction] The action to take if the conditions are met. + # @param action [Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ApproveActionACH, Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ReturnAction] The action to take if the conditions are met. # # @param conditions [Array] @@ -27,24 +27,24 @@ class ConditionalACHActionParameters < Lithic::Internal::Type::BaseModel module Action extend Lithic::Internal::Type::Union - variant -> { Lithic::AuthRules::ConditionalACHActionParameters::Action::ApproveAction } + variant -> { Lithic::AuthRules::ConditionalACHActionParameters::Action::ApproveActionACH } variant -> { Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction } - class ApproveAction < Lithic::Internal::Type::BaseModel + class ApproveActionACH < Lithic::Internal::Type::BaseModel # @!attribute type # Approve the ACH transaction # - # @return [Symbol, Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ApproveAction::Type] + # @return [Symbol, Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ApproveActionACH::Type] required :type, - enum: -> { Lithic::AuthRules::ConditionalACHActionParameters::Action::ApproveAction::Type } + enum: -> { Lithic::AuthRules::ConditionalACHActionParameters::Action::ApproveActionACH::Type } # @!method initialize(type:) - # @param type [Symbol, Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ApproveAction::Type] Approve the ACH transaction + # @param type [Symbol, Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ApproveActionACH::Type] Approve the ACH transaction # Approve the ACH transaction # - # @see Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ApproveAction#type + # @see Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ApproveActionACH#type module Type extend Lithic::Internal::Type::Enum @@ -176,7 +176,7 @@ module Type end # @!method self.variants - # @return [Array(Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ApproveAction, Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ReturnAction)] + # @return [Array(Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ApproveActionACH, Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ReturnAction)] end class Condition < Lithic::Internal::Type::BaseModel diff --git a/lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb b/lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb index 1d4458f6..132ebd31 100644 --- a/lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb +++ b/lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb @@ -7,7 +7,7 @@ class ConditionalTokenizationActionParameters < Lithic::Internal::Type::BaseMode # @!attribute action # The action to take if the conditions are met. # - # @return [Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::RequireTfaAction] + # @return [Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineActionTokenization, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::RequireTfaAction] required :action, union: -> { Lithic::AuthRules::ConditionalTokenizationActionParameters::Action } # @!attribute conditions @@ -17,7 +17,7 @@ class ConditionalTokenizationActionParameters < Lithic::Internal::Type::BaseMode -> { Lithic::Internal::Type::ArrayOf[Lithic::AuthRules::ConditionalTokenizationActionParameters::Condition] } # @!method initialize(action:, conditions:) - # @param action [Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::RequireTfaAction] The action to take if the conditions are met. + # @param action [Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineActionTokenization, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::RequireTfaAction] The action to take if the conditions are met. # # @param conditions [Array] @@ -27,33 +27,33 @@ class ConditionalTokenizationActionParameters < Lithic::Internal::Type::BaseMode module Action extend Lithic::Internal::Type::Union - variant -> { Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction } + variant -> { Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineActionTokenization } variant -> { Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::RequireTfaAction } - class DeclineAction < Lithic::Internal::Type::BaseModel + class DeclineActionTokenization < Lithic::Internal::Type::BaseModel # @!attribute type # Decline the tokenization request # - # @return [Symbol, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction::Type] + # @return [Symbol, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineActionTokenization::Type] required :type, - enum: -> { Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction::Type } + enum: -> { Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineActionTokenization::Type } # @!attribute reason # Reason code for declining the tokenization request # - # @return [Symbol, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction::Reason, nil] + # @return [Symbol, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineActionTokenization::Reason, nil] optional :reason, - enum: -> { Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction::Reason } + enum: -> { Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineActionTokenization::Reason } # @!method initialize(type:, reason: nil) - # @param type [Symbol, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction::Type] Decline the tokenization request + # @param type [Symbol, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineActionTokenization::Type] Decline the tokenization request # - # @param reason [Symbol, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction::Reason] Reason code for declining the tokenization request + # @param reason [Symbol, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineActionTokenization::Reason] Reason code for declining the tokenization request # Decline the tokenization request # - # @see Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction#type + # @see Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineActionTokenization#type module Type extend Lithic::Internal::Type::Enum @@ -65,7 +65,7 @@ module Type # Reason code for declining the tokenization request # - # @see Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction#reason + # @see Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineActionTokenization#reason module Reason extend Lithic::Internal::Type::Enum @@ -148,7 +148,7 @@ module Reason end # @!method self.variants - # @return [Array(Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::RequireTfaAction)] + # @return [Array(Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineActionTokenization, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::RequireTfaAction)] end class Condition < Lithic::Internal::Type::BaseModel diff --git a/lib/lithic/models/auth_rules/report_stats.rb b/lib/lithic/models/auth_rules/report_stats.rb new file mode 100644 index 00000000..f326f168 --- /dev/null +++ b/lib/lithic/models/auth_rules/report_stats.rb @@ -0,0 +1,552 @@ +# frozen_string_literal: true + +module Lithic + module Models + module AuthRules + class ReportStats < Lithic::Internal::Type::BaseModel + # @!attribute action_counts + # A mapping of action types to the number of times that action was returned by + # this rule during the relevant period. Actions are the possible outcomes of a + # rule evaluation, such as DECLINE, CHALLENGE, REQUIRE_TFA, etc. In case rule + # didn't trigger any action, it's counted under NO_ACTION key. + # + # @return [Hash{Symbol=>Integer}, nil] + optional :action_counts, Lithic::Internal::Type::HashOf[Integer] + + # @!attribute approved + # @deprecated + # + # The total number of historical transactions approved by this rule during the + # relevant period, or the number of transactions that would have been approved if + # the rule was evaluated in shadow mode. + # + # @return [Integer, nil] + optional :approved, Integer + + # @!attribute challenged + # @deprecated + # + # The total number of historical transactions challenged by this rule during the + # relevant period, or the number of transactions that would have been challenged + # if the rule was evaluated in shadow mode. Currently applicable only for 3DS Auth + # Rules. + # + # @return [Integer, nil] + optional :challenged, Integer + + # @!attribute declined + # @deprecated + # + # The total number of historical transactions declined by this rule during the + # relevant period, or the number of transactions that would have been declined if + # the rule was evaluated in shadow mode. + # + # @return [Integer, nil] + optional :declined, Integer + + # @!attribute examples + # Example events and their outcomes. + # + # @return [Array, nil] + optional :examples, -> { Lithic::Internal::Type::ArrayOf[Lithic::AuthRules::ReportStats::Example] } + + # @!method initialize(action_counts: nil, approved: nil, challenged: nil, declined: nil, examples: nil) + # Some parameter documentations has been truncated, see + # {Lithic::Models::AuthRules::ReportStats} for more details. + # + # @param action_counts [Hash{Symbol=>Integer}] A mapping of action types to the number of times that action was returned by thi + # + # @param approved [Integer] The total number of historical transactions approved by this rule during the rel + # + # @param challenged [Integer] The total number of historical transactions challenged by this rule during the r + # + # @param declined [Integer] The total number of historical transactions declined by this rule during the rel + # + # @param examples [Array] Example events and their outcomes. + + class Example < Lithic::Internal::Type::BaseModel + # @!attribute actions + # The actions taken by the rule for this event. + # + # @return [Array, nil] + optional :actions, + -> { Lithic::Internal::Type::ArrayOf[union: Lithic::AuthRules::ReportStats::Example::Action] } + + # @!attribute approved + # @deprecated + # + # Whether the rule would have approved the request. + # + # @return [Boolean, nil] + optional :approved, Lithic::Internal::Type::Boolean + + # @!attribute decision + # @deprecated + # + # The decision made by the rule for this event. + # + # @return [Symbol, Lithic::Models::AuthRules::ReportStats::Example::Decision, nil] + optional :decision, enum: -> { Lithic::AuthRules::ReportStats::Example::Decision } + + # @!attribute event_token + # The event token. + # + # @return [String, nil] + optional :event_token, String + + # @!attribute timestamp + # The timestamp of the event. + # + # @return [Time, nil] + optional :timestamp, Time + + # @!method initialize(actions: nil, approved: nil, decision: nil, event_token: nil, timestamp: nil) + # @param actions [Array] The actions taken by the rule for this event. + # + # @param approved [Boolean] Whether the rule would have approved the request. + # + # @param decision [Symbol, Lithic::Models::AuthRules::ReportStats::Example::Decision] The decision made by the rule for this event. + # + # @param event_token [String] The event token. + # + # @param timestamp [Time] The timestamp of the event. + + module Action + extend Lithic::Internal::Type::Union + + variant -> { Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization } + + variant -> { Lithic::AuthRules::ReportStats::Example::Action::ChallengeActionAuthorization } + + variant -> { Lithic::AuthRules::ReportStats::Example::Action::ResultAuthentication3DSAction } + + variant -> { Lithic::AuthRules::ReportStats::Example::Action::DeclineActionTokenization } + + variant -> { Lithic::AuthRules::ReportStats::Example::Action::RequireTfaAction } + + variant -> { Lithic::AuthRules::ReportStats::Example::Action::ApproveActionACH } + + variant -> { Lithic::AuthRules::ReportStats::Example::Action::ReturnAction } + + class DeclineActionAuthorization < Lithic::Internal::Type::BaseModel + # @!attribute code + # The detailed result code explaining the specific reason for the decline + # + # @return [Symbol, Lithic::Models::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code] + required :code, + enum: -> { Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code } + + # @!attribute type + # + # @return [Symbol, Lithic::Models::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Type] + required :type, + enum: -> { Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Type } + + # @!method initialize(code:, type:) + # @param code [Symbol, Lithic::Models::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code] The detailed result code explaining the specific reason for the decline + # + # @param type [Symbol, Lithic::Models::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Type] + + # The detailed result code explaining the specific reason for the decline + # + # @see Lithic::Models::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization#code + module Code + extend Lithic::Internal::Type::Enum + + ACCOUNT_DAILY_SPEND_LIMIT_EXCEEDED = :ACCOUNT_DAILY_SPEND_LIMIT_EXCEEDED + ACCOUNT_DELINQUENT = :ACCOUNT_DELINQUENT + ACCOUNT_INACTIVE = :ACCOUNT_INACTIVE + ACCOUNT_LIFETIME_SPEND_LIMIT_EXCEEDED = :ACCOUNT_LIFETIME_SPEND_LIMIT_EXCEEDED + ACCOUNT_MONTHLY_SPEND_LIMIT_EXCEEDED = :ACCOUNT_MONTHLY_SPEND_LIMIT_EXCEEDED + ACCOUNT_PAUSED = :ACCOUNT_PAUSED + ACCOUNT_UNDER_REVIEW = :ACCOUNT_UNDER_REVIEW + ADDRESS_INCORRECT = :ADDRESS_INCORRECT + APPROVED = :APPROVED + AUTH_RULE_ALLOWED_COUNTRY = :AUTH_RULE_ALLOWED_COUNTRY + AUTH_RULE_ALLOWED_MCC = :AUTH_RULE_ALLOWED_MCC + AUTH_RULE_BLOCKED_COUNTRY = :AUTH_RULE_BLOCKED_COUNTRY + AUTH_RULE_BLOCKED_MCC = :AUTH_RULE_BLOCKED_MCC + AUTH_RULE = :AUTH_RULE + CARD_CLOSED = :CARD_CLOSED + CARD_CRYPTOGRAM_VALIDATION_FAILURE = :CARD_CRYPTOGRAM_VALIDATION_FAILURE + CARD_EXPIRED = :CARD_EXPIRED + CARD_EXPIRY_DATE_INCORRECT = :CARD_EXPIRY_DATE_INCORRECT + CARD_INVALID = :CARD_INVALID + CARD_NOT_ACTIVATED = :CARD_NOT_ACTIVATED + CARD_PAUSED = :CARD_PAUSED + CARD_PIN_INCORRECT = :CARD_PIN_INCORRECT + CARD_RESTRICTED = :CARD_RESTRICTED + CARD_SECURITY_CODE_INCORRECT = :CARD_SECURITY_CODE_INCORRECT + CARD_SPEND_LIMIT_EXCEEDED = :CARD_SPEND_LIMIT_EXCEEDED + CONTACT_CARD_ISSUER = :CONTACT_CARD_ISSUER + CUSTOMER_ASA_TIMEOUT = :CUSTOMER_ASA_TIMEOUT + CUSTOM_ASA_RESULT = :CUSTOM_ASA_RESULT + DECLINED = :DECLINED + DO_NOT_HONOR = :DO_NOT_HONOR + DRIVER_NUMBER_INVALID = :DRIVER_NUMBER_INVALID + FORMAT_ERROR = :FORMAT_ERROR + INSUFFICIENT_FUNDING_SOURCE_BALANCE = :INSUFFICIENT_FUNDING_SOURCE_BALANCE + INSUFFICIENT_FUNDS = :INSUFFICIENT_FUNDS + LITHIC_SYSTEM_ERROR = :LITHIC_SYSTEM_ERROR + LITHIC_SYSTEM_RATE_LIMIT = :LITHIC_SYSTEM_RATE_LIMIT + MALFORMED_ASA_RESPONSE = :MALFORMED_ASA_RESPONSE + MERCHANT_INVALID = :MERCHANT_INVALID + MERCHANT_LOCKED_CARD_ATTEMPTED_ELSEWHERE = :MERCHANT_LOCKED_CARD_ATTEMPTED_ELSEWHERE + MERCHANT_NOT_PERMITTED = :MERCHANT_NOT_PERMITTED + OVER_REVERSAL_ATTEMPTED = :OVER_REVERSAL_ATTEMPTED + PIN_BLOCKED = :PIN_BLOCKED + PROGRAM_CARD_SPEND_LIMIT_EXCEEDED = :PROGRAM_CARD_SPEND_LIMIT_EXCEEDED + PROGRAM_SUSPENDED = :PROGRAM_SUSPENDED + PROGRAM_USAGE_RESTRICTION = :PROGRAM_USAGE_RESTRICTION + REVERSAL_UNMATCHED = :REVERSAL_UNMATCHED + SECURITY_VIOLATION = :SECURITY_VIOLATION + SINGLE_USE_CARD_REATTEMPTED = :SINGLE_USE_CARD_REATTEMPTED + SUSPECTED_FRAUD = :SUSPECTED_FRAUD + TRANSACTION_INVALID = :TRANSACTION_INVALID + TRANSACTION_NOT_PERMITTED_TO_ACQUIRER_OR_TERMINAL = :TRANSACTION_NOT_PERMITTED_TO_ACQUIRER_OR_TERMINAL + TRANSACTION_NOT_PERMITTED_TO_ISSUER_OR_CARDHOLDER = :TRANSACTION_NOT_PERMITTED_TO_ISSUER_OR_CARDHOLDER + TRANSACTION_PREVIOUSLY_COMPLETED = :TRANSACTION_PREVIOUSLY_COMPLETED + UNAUTHORIZED_MERCHANT = :UNAUTHORIZED_MERCHANT + VEHICLE_NUMBER_INVALID = :VEHICLE_NUMBER_INVALID + CARDHOLDER_CHALLENGED = :CARDHOLDER_CHALLENGED + CARDHOLDER_CHALLENGE_FAILED = :CARDHOLDER_CHALLENGE_FAILED + + # @!method self.values + # @return [Array] + end + + # @see Lithic::Models::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization#type + module Type + extend Lithic::Internal::Type::Enum + + DECLINE = :DECLINE + + # @!method self.values + # @return [Array] + end + end + + class ChallengeActionAuthorization < Lithic::Internal::Type::BaseModel + # @!attribute type + # + # @return [Symbol, Lithic::Models::AuthRules::ReportStats::Example::Action::ChallengeActionAuthorization::Type] + required :type, + enum: -> { Lithic::AuthRules::ReportStats::Example::Action::ChallengeActionAuthorization::Type } + + # @!method initialize(type:) + # @param type [Symbol, Lithic::Models::AuthRules::ReportStats::Example::Action::ChallengeActionAuthorization::Type] + + # @see Lithic::Models::AuthRules::ReportStats::Example::Action::ChallengeActionAuthorization#type + module Type + extend Lithic::Internal::Type::Enum + + CHALLENGE = :CHALLENGE + + # @!method self.values + # @return [Array] + end + end + + class ResultAuthentication3DSAction < Lithic::Internal::Type::BaseModel + # @!attribute type + # + # @return [Symbol, Lithic::Models::AuthRules::ReportStats::Example::Action::ResultAuthentication3DSAction::Type] + required :type, + enum: -> { Lithic::AuthRules::ReportStats::Example::Action::ResultAuthentication3DSAction::Type } + + # @!method initialize(type:) + # @param type [Symbol, Lithic::Models::AuthRules::ReportStats::Example::Action::ResultAuthentication3DSAction::Type] + + # @see Lithic::Models::AuthRules::ReportStats::Example::Action::ResultAuthentication3DSAction#type + module Type + extend Lithic::Internal::Type::Enum + + DECLINE = :DECLINE + CHALLENGE = :CHALLENGE + + # @!method self.values + # @return [Array] + end + end + + class DeclineActionTokenization < Lithic::Internal::Type::BaseModel + # @!attribute type + # Decline the tokenization request + # + # @return [Symbol, Lithic::Models::AuthRules::ReportStats::Example::Action::DeclineActionTokenization::Type] + required :type, + enum: -> { Lithic::AuthRules::ReportStats::Example::Action::DeclineActionTokenization::Type } + + # @!attribute reason + # Reason code for declining the tokenization request + # + # @return [Symbol, Lithic::Models::AuthRules::ReportStats::Example::Action::DeclineActionTokenization::Reason, nil] + optional :reason, + enum: -> { Lithic::AuthRules::ReportStats::Example::Action::DeclineActionTokenization::Reason } + + # @!method initialize(type:, reason: nil) + # @param type [Symbol, Lithic::Models::AuthRules::ReportStats::Example::Action::DeclineActionTokenization::Type] Decline the tokenization request + # + # @param reason [Symbol, Lithic::Models::AuthRules::ReportStats::Example::Action::DeclineActionTokenization::Reason] Reason code for declining the tokenization request + + # Decline the tokenization request + # + # @see Lithic::Models::AuthRules::ReportStats::Example::Action::DeclineActionTokenization#type + module Type + extend Lithic::Internal::Type::Enum + + DECLINE = :DECLINE + + # @!method self.values + # @return [Array] + end + + # Reason code for declining the tokenization request + # + # @see Lithic::Models::AuthRules::ReportStats::Example::Action::DeclineActionTokenization#reason + module Reason + extend Lithic::Internal::Type::Enum + + ACCOUNT_SCORE_1 = :ACCOUNT_SCORE_1 + DEVICE_SCORE_1 = :DEVICE_SCORE_1 + ALL_WALLET_DECLINE_REASONS_PRESENT = :ALL_WALLET_DECLINE_REASONS_PRESENT + WALLET_RECOMMENDED_DECISION_RED = :WALLET_RECOMMENDED_DECISION_RED + CVC_MISMATCH = :CVC_MISMATCH + CARD_EXPIRY_MONTH_MISMATCH = :CARD_EXPIRY_MONTH_MISMATCH + CARD_EXPIRY_YEAR_MISMATCH = :CARD_EXPIRY_YEAR_MISMATCH + CARD_INVALID_STATE = :CARD_INVALID_STATE + CUSTOMER_RED_PATH = :CUSTOMER_RED_PATH + INVALID_CUSTOMER_RESPONSE = :INVALID_CUSTOMER_RESPONSE + NETWORK_FAILURE = :NETWORK_FAILURE + GENERIC_DECLINE = :GENERIC_DECLINE + DIGITAL_CARD_ART_REQUIRED = :DIGITAL_CARD_ART_REQUIRED + + # @!method self.values + # @return [Array] + end + end + + class RequireTfaAction < Lithic::Internal::Type::BaseModel + # @!attribute type + # Require two-factor authentication for the tokenization request + # + # @return [Symbol, Lithic::Models::AuthRules::ReportStats::Example::Action::RequireTfaAction::Type] + required :type, enum: -> { Lithic::AuthRules::ReportStats::Example::Action::RequireTfaAction::Type } + + # @!attribute reason + # Reason code for requiring two-factor authentication + # + # @return [Symbol, Lithic::Models::AuthRules::ReportStats::Example::Action::RequireTfaAction::Reason, nil] + optional :reason, enum: -> { Lithic::AuthRules::ReportStats::Example::Action::RequireTfaAction::Reason } + + # @!method initialize(type:, reason: nil) + # @param type [Symbol, Lithic::Models::AuthRules::ReportStats::Example::Action::RequireTfaAction::Type] Require two-factor authentication for the tokenization request + # + # @param reason [Symbol, Lithic::Models::AuthRules::ReportStats::Example::Action::RequireTfaAction::Reason] Reason code for requiring two-factor authentication + + # Require two-factor authentication for the tokenization request + # + # @see Lithic::Models::AuthRules::ReportStats::Example::Action::RequireTfaAction#type + module Type + extend Lithic::Internal::Type::Enum + + REQUIRE_TFA = :REQUIRE_TFA + + # @!method self.values + # @return [Array] + end + + # Reason code for requiring two-factor authentication + # + # @see Lithic::Models::AuthRules::ReportStats::Example::Action::RequireTfaAction#reason + module Reason + extend Lithic::Internal::Type::Enum + + WALLET_RECOMMENDED_TFA = :WALLET_RECOMMENDED_TFA + SUSPICIOUS_ACTIVITY = :SUSPICIOUS_ACTIVITY + DEVICE_RECENTLY_LOST = :DEVICE_RECENTLY_LOST + TOO_MANY_RECENT_ATTEMPTS = :TOO_MANY_RECENT_ATTEMPTS + TOO_MANY_RECENT_TOKENS = :TOO_MANY_RECENT_TOKENS + TOO_MANY_DIFFERENT_CARDHOLDERS = :TOO_MANY_DIFFERENT_CARDHOLDERS + OUTSIDE_HOME_TERRITORY = :OUTSIDE_HOME_TERRITORY + HAS_SUSPENDED_TOKENS = :HAS_SUSPENDED_TOKENS + HIGH_RISK = :HIGH_RISK + ACCOUNT_SCORE_LOW = :ACCOUNT_SCORE_LOW + DEVICE_SCORE_LOW = :DEVICE_SCORE_LOW + CARD_STATE_TFA = :CARD_STATE_TFA + HARDCODED_TFA = :HARDCODED_TFA + CUSTOMER_RULE_TFA = :CUSTOMER_RULE_TFA + DEVICE_HOST_CARD_EMULATION = :DEVICE_HOST_CARD_EMULATION + + # @!method self.values + # @return [Array] + end + end + + class ApproveActionACH < Lithic::Internal::Type::BaseModel + # @!attribute type + # Approve the ACH transaction + # + # @return [Symbol, Lithic::Models::AuthRules::ReportStats::Example::Action::ApproveActionACH::Type] + required :type, enum: -> { Lithic::AuthRules::ReportStats::Example::Action::ApproveActionACH::Type } + + # @!method initialize(type:) + # @param type [Symbol, Lithic::Models::AuthRules::ReportStats::Example::Action::ApproveActionACH::Type] Approve the ACH transaction + + # Approve the ACH transaction + # + # @see Lithic::Models::AuthRules::ReportStats::Example::Action::ApproveActionACH#type + module Type + extend Lithic::Internal::Type::Enum + + APPROVE = :APPROVE + + # @!method self.values + # @return [Array] + end + end + + class ReturnAction < Lithic::Internal::Type::BaseModel + # @!attribute code + # NACHA return code to use when returning the transaction. Note that the list of + # available return codes is subject to an allowlist configured at the program + # level + # + # @return [Symbol, Lithic::Models::AuthRules::ReportStats::Example::Action::ReturnAction::Code] + required :code, enum: -> { Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code } + + # @!attribute type + # Return the ACH transaction + # + # @return [Symbol, Lithic::Models::AuthRules::ReportStats::Example::Action::ReturnAction::Type] + required :type, enum: -> { Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Type } + + # @!method initialize(code:, type:) + # Some parameter documentations has been truncated, see + # {Lithic::Models::AuthRules::ReportStats::Example::Action::ReturnAction} for more + # details. + # + # @param code [Symbol, Lithic::Models::AuthRules::ReportStats::Example::Action::ReturnAction::Code] NACHA return code to use when returning the transaction. Note that the list of a + # + # @param type [Symbol, Lithic::Models::AuthRules::ReportStats::Example::Action::ReturnAction::Type] Return the ACH transaction + + # NACHA return code to use when returning the transaction. Note that the list of + # available return codes is subject to an allowlist configured at the program + # level + # + # @see Lithic::Models::AuthRules::ReportStats::Example::Action::ReturnAction#code + module Code + extend Lithic::Internal::Type::Enum + + R01 = :R01 + R02 = :R02 + R03 = :R03 + R04 = :R04 + R05 = :R05 + R06 = :R06 + R07 = :R07 + R08 = :R08 + R09 = :R09 + R10 = :R10 + R11 = :R11 + R12 = :R12 + R13 = :R13 + R14 = :R14 + R15 = :R15 + R16 = :R16 + R17 = :R17 + R18 = :R18 + R19 = :R19 + R20 = :R20 + R21 = :R21 + R22 = :R22 + R23 = :R23 + R24 = :R24 + R25 = :R25 + R26 = :R26 + R27 = :R27 + R28 = :R28 + R29 = :R29 + R30 = :R30 + R31 = :R31 + R32 = :R32 + R33 = :R33 + R34 = :R34 + R35 = :R35 + R36 = :R36 + R37 = :R37 + R38 = :R38 + R39 = :R39 + R40 = :R40 + R41 = :R41 + R42 = :R42 + R43 = :R43 + R44 = :R44 + R45 = :R45 + R46 = :R46 + R47 = :R47 + R50 = :R50 + R51 = :R51 + R52 = :R52 + R53 = :R53 + R61 = :R61 + R62 = :R62 + R67 = :R67 + R68 = :R68 + R69 = :R69 + R70 = :R70 + R71 = :R71 + R72 = :R72 + R73 = :R73 + R74 = :R74 + R75 = :R75 + R76 = :R76 + R77 = :R77 + R80 = :R80 + R81 = :R81 + R82 = :R82 + R83 = :R83 + R84 = :R84 + R85 = :R85 + + # @!method self.values + # @return [Array] + end + + # Return the ACH transaction + # + # @see Lithic::Models::AuthRules::ReportStats::Example::Action::ReturnAction#type + module Type + extend Lithic::Internal::Type::Enum + + RETURN = :RETURN + + # @!method self.values + # @return [Array] + end + end + + # @!method self.variants + # @return [Array(Lithic::Models::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization, Lithic::Models::AuthRules::ReportStats::Example::Action::ChallengeActionAuthorization, Lithic::Models::AuthRules::ReportStats::Example::Action::ResultAuthentication3DSAction, Lithic::Models::AuthRules::ReportStats::Example::Action::DeclineActionTokenization, Lithic::Models::AuthRules::ReportStats::Example::Action::RequireTfaAction, Lithic::Models::AuthRules::ReportStats::Example::Action::ApproveActionACH, Lithic::Models::AuthRules::ReportStats::Example::Action::ReturnAction)] + end + + # @deprecated + # + # The decision made by the rule for this event. + # + # @see Lithic::Models::AuthRules::ReportStats::Example#decision + module Decision + extend Lithic::Internal::Type::Enum + + APPROVED = :APPROVED + DECLINED = :DECLINED + CHALLENGED = :CHALLENGED + + # @!method self.values + # @return [Array] + end + end + end + end + end +end diff --git a/lib/lithic/models/auth_rules/v2/backtest_results.rb b/lib/lithic/models/auth_rules/v2/backtest_results.rb index feb64ad8..1eadd95f 100644 --- a/lib/lithic/models/auth_rules/v2/backtest_results.rb +++ b/lib/lithic/models/auth_rules/v2/backtest_results.rb @@ -33,17 +33,17 @@ class BacktestResults < Lithic::Internal::Type::BaseModel class Results < Lithic::Internal::Type::BaseModel # @!attribute current_version # - # @return [Lithic::Models::AuthRules::RuleStats, nil] - optional :current_version, -> { Lithic::AuthRules::RuleStats }, nil?: true + # @return [Lithic::Models::AuthRules::BacktestStats, nil] + optional :current_version, -> { Lithic::AuthRules::BacktestStats }, nil?: true # @!attribute draft_version # - # @return [Lithic::Models::AuthRules::RuleStats, nil] - optional :draft_version, -> { Lithic::AuthRules::RuleStats }, nil?: true + # @return [Lithic::Models::AuthRules::BacktestStats, nil] + optional :draft_version, -> { Lithic::AuthRules::BacktestStats }, nil?: true # @!method initialize(current_version: nil, draft_version: nil) - # @param current_version [Lithic::Models::AuthRules::RuleStats, nil] - # @param draft_version [Lithic::Models::AuthRules::RuleStats, nil] + # @param current_version [Lithic::Models::AuthRules::BacktestStats, nil] + # @param draft_version [Lithic::Models::AuthRules::BacktestStats, nil] end # @see Lithic::Models::AuthRules::V2::BacktestResults#simulation_parameters diff --git a/lib/lithic/models/auth_rules/v2_list_results_params.rb b/lib/lithic/models/auth_rules/v2_list_results_params.rb index ac74769a..f30fc6a6 100644 --- a/lib/lithic/models/auth_rules/v2_list_results_params.rb +++ b/lib/lithic/models/auth_rules/v2_list_results_params.rb @@ -14,6 +14,20 @@ class V2ListResultsParams < Lithic::Internal::Type::BaseModel # @return [String, nil] optional :auth_rule_token, String + # @!attribute begin_ + # Date string in RFC 3339 format. Only events evaluated after the specified time + # will be included. UTC time zone. + # + # @return [Time, nil] + optional :begin_, Time + + # @!attribute end_ + # Date string in RFC 3339 format. Only events evaluated before the specified time + # will be included. UTC time zone. + # + # @return [Time, nil] + optional :end_, Time + # @!attribute ending_before # A cursor representing an item's token before which a page of results should end. # Used to retrieve the previous page of results before this item. @@ -47,12 +61,16 @@ class V2ListResultsParams < Lithic::Internal::Type::BaseModel # @return [String, nil] optional :starting_after, String - # @!method initialize(auth_rule_token: nil, ending_before: nil, event_token: nil, has_actions: nil, page_size: nil, starting_after: nil, request_options: {}) + # @!method initialize(auth_rule_token: nil, begin_: nil, end_: nil, ending_before: nil, event_token: nil, has_actions: nil, page_size: nil, starting_after: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Lithic::Models::AuthRules::V2ListResultsParams} for more details. # # @param auth_rule_token [String] Filter by Auth Rule token # + # @param begin_ [Time] Date string in RFC 3339 format. Only events evaluated after the specified time w + # + # @param end_ [Time] Date string in RFC 3339 format. Only events evaluated before the specified time + # # @param ending_before [String] A cursor representing an item's token before which a page of results should end. # # @param event_token [String] Filter by event token diff --git a/lib/lithic/models/auth_rules/v2_list_results_response.rb b/lib/lithic/models/auth_rules/v2_list_results_response.rb index 4031863b..7ce3133f 100644 --- a/lib/lithic/models/auth_rules/v2_list_results_response.rb +++ b/lib/lithic/models/auth_rules/v2_list_results_response.rb @@ -27,9 +27,9 @@ class AuthorizationResult < Lithic::Internal::Type::BaseModel # @!attribute actions # Actions returned by the rule evaluation # - # @return [Array] + # @return [Array] required :actions, - -> { Lithic::Internal::Type::ArrayOf[Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action] } + -> { Lithic::Internal::Type::ArrayOf[union: Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action] } # @!attribute auth_rule_token # The Auth Rule token @@ -70,7 +70,7 @@ class AuthorizationResult < Lithic::Internal::Type::BaseModel # @!method initialize(token:, actions:, auth_rule_token:, evaluation_time:, event_token:, mode:, rule_version:, event_stream: :AUTHORIZATION) # @param token [String] Globally unique identifier for the evaluation # - # @param actions [Array] Actions returned by the rule evaluation + # @param actions [Array] Actions returned by the rule evaluation # # @param auth_rule_token [String] The Auth Rule token # @@ -84,34 +84,150 @@ class AuthorizationResult < Lithic::Internal::Type::BaseModel # # @param event_stream [Symbol, :AUTHORIZATION] The event stream during which the rule was evaluated - class Action < Lithic::Internal::Type::BaseModel - # @!attribute type - # - # @return [Symbol, Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::Type] - required :type, - enum: -> { Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::Type } + module Action + extend Lithic::Internal::Type::Union - # @!attribute explanation - # Optional explanation for why this action was taken - # - # @return [String, nil] - optional :explanation, String + variant -> { Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization } - # @!method initialize(type:, explanation: nil) - # @param type [Symbol, Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::Type] - # - # @param explanation [String] Optional explanation for why this action was taken + variant -> { Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::ChallengeActionAuthorization } - # @see Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action#type - module Type - extend Lithic::Internal::Type::Enum + class DeclineActionAuthorization < Lithic::Internal::Type::BaseModel + # @!attribute code + # The detailed result code explaining the specific reason for the decline + # + # @return [Symbol, Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code] + required :code, + enum: -> { Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code } - DECLINE = :DECLINE - CHALLENGE = :CHALLENGE + # @!attribute type + # + # @return [Symbol, Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Type] + required :type, + enum: -> { Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Type } - # @!method self.values - # @return [Array] + # @!attribute explanation + # Optional explanation for why this action was taken + # + # @return [String, nil] + optional :explanation, String + + # @!method initialize(code:, type:, explanation: nil) + # @param code [Symbol, Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code] The detailed result code explaining the specific reason for the decline + # + # @param type [Symbol, Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Type] + # + # @param explanation [String] Optional explanation for why this action was taken + + # The detailed result code explaining the specific reason for the decline + # + # @see Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization#code + module Code + extend Lithic::Internal::Type::Enum + + ACCOUNT_DAILY_SPEND_LIMIT_EXCEEDED = :ACCOUNT_DAILY_SPEND_LIMIT_EXCEEDED + ACCOUNT_DELINQUENT = :ACCOUNT_DELINQUENT + ACCOUNT_INACTIVE = :ACCOUNT_INACTIVE + ACCOUNT_LIFETIME_SPEND_LIMIT_EXCEEDED = :ACCOUNT_LIFETIME_SPEND_LIMIT_EXCEEDED + ACCOUNT_MONTHLY_SPEND_LIMIT_EXCEEDED = :ACCOUNT_MONTHLY_SPEND_LIMIT_EXCEEDED + ACCOUNT_PAUSED = :ACCOUNT_PAUSED + ACCOUNT_UNDER_REVIEW = :ACCOUNT_UNDER_REVIEW + ADDRESS_INCORRECT = :ADDRESS_INCORRECT + APPROVED = :APPROVED + AUTH_RULE_ALLOWED_COUNTRY = :AUTH_RULE_ALLOWED_COUNTRY + AUTH_RULE_ALLOWED_MCC = :AUTH_RULE_ALLOWED_MCC + AUTH_RULE_BLOCKED_COUNTRY = :AUTH_RULE_BLOCKED_COUNTRY + AUTH_RULE_BLOCKED_MCC = :AUTH_RULE_BLOCKED_MCC + AUTH_RULE = :AUTH_RULE + CARD_CLOSED = :CARD_CLOSED + CARD_CRYPTOGRAM_VALIDATION_FAILURE = :CARD_CRYPTOGRAM_VALIDATION_FAILURE + CARD_EXPIRED = :CARD_EXPIRED + CARD_EXPIRY_DATE_INCORRECT = :CARD_EXPIRY_DATE_INCORRECT + CARD_INVALID = :CARD_INVALID + CARD_NOT_ACTIVATED = :CARD_NOT_ACTIVATED + CARD_PAUSED = :CARD_PAUSED + CARD_PIN_INCORRECT = :CARD_PIN_INCORRECT + CARD_RESTRICTED = :CARD_RESTRICTED + CARD_SECURITY_CODE_INCORRECT = :CARD_SECURITY_CODE_INCORRECT + CARD_SPEND_LIMIT_EXCEEDED = :CARD_SPEND_LIMIT_EXCEEDED + CONTACT_CARD_ISSUER = :CONTACT_CARD_ISSUER + CUSTOMER_ASA_TIMEOUT = :CUSTOMER_ASA_TIMEOUT + CUSTOM_ASA_RESULT = :CUSTOM_ASA_RESULT + DECLINED = :DECLINED + DO_NOT_HONOR = :DO_NOT_HONOR + DRIVER_NUMBER_INVALID = :DRIVER_NUMBER_INVALID + FORMAT_ERROR = :FORMAT_ERROR + INSUFFICIENT_FUNDING_SOURCE_BALANCE = :INSUFFICIENT_FUNDING_SOURCE_BALANCE + INSUFFICIENT_FUNDS = :INSUFFICIENT_FUNDS + LITHIC_SYSTEM_ERROR = :LITHIC_SYSTEM_ERROR + LITHIC_SYSTEM_RATE_LIMIT = :LITHIC_SYSTEM_RATE_LIMIT + MALFORMED_ASA_RESPONSE = :MALFORMED_ASA_RESPONSE + MERCHANT_INVALID = :MERCHANT_INVALID + MERCHANT_LOCKED_CARD_ATTEMPTED_ELSEWHERE = :MERCHANT_LOCKED_CARD_ATTEMPTED_ELSEWHERE + MERCHANT_NOT_PERMITTED = :MERCHANT_NOT_PERMITTED + OVER_REVERSAL_ATTEMPTED = :OVER_REVERSAL_ATTEMPTED + PIN_BLOCKED = :PIN_BLOCKED + PROGRAM_CARD_SPEND_LIMIT_EXCEEDED = :PROGRAM_CARD_SPEND_LIMIT_EXCEEDED + PROGRAM_SUSPENDED = :PROGRAM_SUSPENDED + PROGRAM_USAGE_RESTRICTION = :PROGRAM_USAGE_RESTRICTION + REVERSAL_UNMATCHED = :REVERSAL_UNMATCHED + SECURITY_VIOLATION = :SECURITY_VIOLATION + SINGLE_USE_CARD_REATTEMPTED = :SINGLE_USE_CARD_REATTEMPTED + SUSPECTED_FRAUD = :SUSPECTED_FRAUD + TRANSACTION_INVALID = :TRANSACTION_INVALID + TRANSACTION_NOT_PERMITTED_TO_ACQUIRER_OR_TERMINAL = :TRANSACTION_NOT_PERMITTED_TO_ACQUIRER_OR_TERMINAL + TRANSACTION_NOT_PERMITTED_TO_ISSUER_OR_CARDHOLDER = :TRANSACTION_NOT_PERMITTED_TO_ISSUER_OR_CARDHOLDER + TRANSACTION_PREVIOUSLY_COMPLETED = :TRANSACTION_PREVIOUSLY_COMPLETED + UNAUTHORIZED_MERCHANT = :UNAUTHORIZED_MERCHANT + VEHICLE_NUMBER_INVALID = :VEHICLE_NUMBER_INVALID + CARDHOLDER_CHALLENGED = :CARDHOLDER_CHALLENGED + CARDHOLDER_CHALLENGE_FAILED = :CARDHOLDER_CHALLENGE_FAILED + + # @!method self.values + # @return [Array] + end + + # @see Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization#type + module Type + extend Lithic::Internal::Type::Enum + + DECLINE = :DECLINE + + # @!method self.values + # @return [Array] + end end + + class ChallengeActionAuthorization < Lithic::Internal::Type::BaseModel + # @!attribute type + # + # @return [Symbol, Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::ChallengeActionAuthorization::Type] + required :type, + enum: -> { Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::ChallengeActionAuthorization::Type } + + # @!attribute explanation + # Optional explanation for why this action was taken + # + # @return [String, nil] + optional :explanation, String + + # @!method initialize(type:, explanation: nil) + # @param type [Symbol, Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::ChallengeActionAuthorization::Type] + # + # @param explanation [String] Optional explanation for why this action was taken + + # @see Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::ChallengeActionAuthorization#type + module Type + extend Lithic::Internal::Type::Enum + + CHALLENGE = :CHALLENGE + + # @!method self.values + # @return [Array] + end + end + + # @!method self.variants + # @return [Array(Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization, Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::ChallengeActionAuthorization)] end # The state of the Auth Rule @@ -250,7 +366,7 @@ class TokenizationResult < Lithic::Internal::Type::BaseModel # @!attribute actions # Actions returned by the rule evaluation # - # @return [Array] + # @return [Array] required :actions, -> { Lithic::Internal::Type::ArrayOf[union: Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action] } @@ -293,7 +409,7 @@ class TokenizationResult < Lithic::Internal::Type::BaseModel # @!method initialize(token:, actions:, auth_rule_token:, evaluation_time:, event_token:, mode:, rule_version:, event_stream: :TOKENIZATION) # @param token [String] Globally unique identifier for the evaluation # - # @param actions [Array] Actions returned by the rule evaluation + # @param actions [Array] Actions returned by the rule evaluation # # @param auth_rule_token [String] The Auth Rule token # @@ -310,17 +426,17 @@ class TokenizationResult < Lithic::Internal::Type::BaseModel module Action extend Lithic::Internal::Type::Union - variant -> { Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction } + variant -> { Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineActionTokenization } variant -> { Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::RequireTfaAction } - class DeclineAction < Lithic::Internal::Type::BaseModel + class DeclineActionTokenization < Lithic::Internal::Type::BaseModel # @!attribute type # Decline the tokenization request # - # @return [Symbol, Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction::Type] + # @return [Symbol, Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineActionTokenization::Type] required :type, - enum: -> { Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction::Type } + enum: -> { Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineActionTokenization::Type } # @!attribute explanation # Optional explanation for why this action was taken @@ -331,20 +447,20 @@ class DeclineAction < Lithic::Internal::Type::BaseModel # @!attribute reason # Reason code for declining the tokenization request # - # @return [Symbol, Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction::Reason, nil] + # @return [Symbol, Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineActionTokenization::Reason, nil] optional :reason, - enum: -> { Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction::Reason } + enum: -> { Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineActionTokenization::Reason } # @!method initialize(type:, explanation: nil, reason: nil) - # @param type [Symbol, Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction::Type] Decline the tokenization request + # @param type [Symbol, Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineActionTokenization::Type] Decline the tokenization request # # @param explanation [String] Optional explanation for why this action was taken # - # @param reason [Symbol, Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction::Reason] Reason code for declining the tokenization request + # @param reason [Symbol, Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineActionTokenization::Reason] Reason code for declining the tokenization request # Decline the tokenization request # - # @see Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction#type + # @see Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineActionTokenization#type module Type extend Lithic::Internal::Type::Enum @@ -356,7 +472,7 @@ module Type # Reason code for declining the tokenization request # - # @see Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction#reason + # @see Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineActionTokenization#reason module Reason extend Lithic::Internal::Type::Enum @@ -447,7 +563,7 @@ module Reason end # @!method self.variants - # @return [Array(Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction, Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::RequireTfaAction)] + # @return [Array(Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineActionTokenization, Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::RequireTfaAction)] end # The state of the Auth Rule @@ -474,7 +590,7 @@ class ACHResult < Lithic::Internal::Type::BaseModel # @!attribute actions # Actions returned by the rule evaluation # - # @return [Array] + # @return [Array] required :actions, -> { Lithic::Internal::Type::ArrayOf[union: Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action] } @@ -518,7 +634,7 @@ class ACHResult < Lithic::Internal::Type::BaseModel # @!method initialize(token:, actions:, auth_rule_token:, evaluation_time:, event_stream:, event_token:, mode:, rule_version:) # @param token [String] Globally unique identifier for the evaluation # - # @param actions [Array] Actions returned by the rule evaluation + # @param actions [Array] Actions returned by the rule evaluation # # @param auth_rule_token [String] The Auth Rule token # @@ -535,17 +651,17 @@ class ACHResult < Lithic::Internal::Type::BaseModel module Action extend Lithic::Internal::Type::Union - variant -> { Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ApproveAction } + variant -> { Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ApproveActionACH } variant -> { Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ReturnAction } - class ApproveAction < Lithic::Internal::Type::BaseModel + class ApproveActionACH < Lithic::Internal::Type::BaseModel # @!attribute type # Approve the ACH transaction # - # @return [Symbol, Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ApproveAction::Type] + # @return [Symbol, Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ApproveActionACH::Type] required :type, - enum: -> { Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ApproveAction::Type } + enum: -> { Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ApproveActionACH::Type } # @!attribute explanation # Optional explanation for why this action was taken @@ -554,13 +670,13 @@ class ApproveAction < Lithic::Internal::Type::BaseModel optional :explanation, String # @!method initialize(type:, explanation: nil) - # @param type [Symbol, Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ApproveAction::Type] Approve the ACH transaction + # @param type [Symbol, Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ApproveActionACH::Type] Approve the ACH transaction # # @param explanation [String] Optional explanation for why this action was taken # Approve the ACH transaction # - # @see Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ApproveAction#type + # @see Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ApproveActionACH#type module Type extend Lithic::Internal::Type::Enum @@ -702,7 +818,7 @@ module Type end # @!method self.variants - # @return [Array(Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ApproveAction, Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ReturnAction)] + # @return [Array(Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ApproveActionACH, Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ReturnAction)] end # The event stream during which the rule was evaluated diff --git a/lib/lithic/models/auth_rules/v2_retrieve_report_response.rb b/lib/lithic/models/auth_rules/v2_retrieve_report_response.rb index 66d1c7a6..70220e01 100644 --- a/lib/lithic/models/auth_rules/v2_retrieve_report_response.rb +++ b/lib/lithic/models/auth_rules/v2_retrieve_report_response.rb @@ -43,8 +43,8 @@ class DailyStatistic < Lithic::Internal::Type::BaseModel # @!attribute current_version_statistics # Detailed statistics for the current version of the rule. # - # @return [Lithic::Models::AuthRules::RuleStats, nil] - required :current_version_statistics, -> { Lithic::AuthRules::RuleStats }, nil?: true + # @return [Lithic::Models::AuthRules::ReportStats, nil] + required :current_version_statistics, -> { Lithic::AuthRules::ReportStats }, nil?: true # @!attribute date # The date (UTC) for which the statistics are reported. @@ -55,15 +55,15 @@ class DailyStatistic < Lithic::Internal::Type::BaseModel # @!attribute draft_version_statistics # Detailed statistics for the draft version of the rule. # - # @return [Lithic::Models::AuthRules::RuleStats, nil] - required :draft_version_statistics, -> { Lithic::AuthRules::RuleStats }, nil?: true + # @return [Lithic::Models::AuthRules::ReportStats, nil] + required :draft_version_statistics, -> { Lithic::AuthRules::ReportStats }, nil?: true # @!method initialize(current_version_statistics:, date:, draft_version_statistics:) - # @param current_version_statistics [Lithic::Models::AuthRules::RuleStats, nil] Detailed statistics for the current version of the rule. + # @param current_version_statistics [Lithic::Models::AuthRules::ReportStats, nil] Detailed statistics for the current version of the rule. # # @param date [Date] The date (UTC) for which the statistics are reported. # - # @param draft_version_statistics [Lithic::Models::AuthRules::RuleStats, nil] Detailed statistics for the draft version of the rule. + # @param draft_version_statistics [Lithic::Models::AuthRules::ReportStats, nil] Detailed statistics for the draft version of the rule. end end end diff --git a/lib/lithic/resources/auth_rules/v2.rb b/lib/lithic/resources/auth_rules/v2.rb index 1ea26074..e5068a2e 100644 --- a/lib/lithic/resources/auth_rules/v2.rb +++ b/lib/lithic/resources/auth_rules/v2.rb @@ -209,10 +209,14 @@ def draft(auth_rule_token, params = {}) # - At least one filter (`event_token` or `auth_rule_token`) must be provided # - When filtering by `event_token`, pagination is not supported # - # @overload list_results(auth_rule_token: nil, ending_before: nil, event_token: nil, has_actions: nil, page_size: nil, starting_after: nil, request_options: {}) + # @overload list_results(auth_rule_token: nil, begin_: nil, end_: nil, ending_before: nil, event_token: nil, has_actions: nil, page_size: nil, starting_after: nil, request_options: {}) # # @param auth_rule_token [String] Filter by Auth Rule token # + # @param begin_ [Time] Date string in RFC 3339 format. Only events evaluated after the specified time w + # + # @param end_ [Time] Date string in RFC 3339 format. Only events evaluated before the specified time + # # @param ending_before [String] A cursor representing an item's token before which a page of results should end. # # @param event_token [String] Filter by event token @@ -233,7 +237,7 @@ def list_results(params = {}) @client.request( method: :get, path: "v2/auth_rules/results", - query: parsed, + query: parsed.transform_keys(begin_: "begin", end_: "end"), page: Lithic::Internal::CursorPage, model: Lithic::Models::AuthRules::V2ListResultsResponse, options: options diff --git a/rbi/lithic/models/auth_rules/rule_stats.rbi b/rbi/lithic/models/auth_rules/backtest_stats.rbi similarity index 72% rename from rbi/lithic/models/auth_rules/rule_stats.rbi rename to rbi/lithic/models/auth_rules/backtest_stats.rbi index 6760cdd7..ac8cd9c9 100644 --- a/rbi/lithic/models/auth_rules/rule_stats.rbi +++ b/rbi/lithic/models/auth_rules/backtest_stats.rbi @@ -3,14 +3,14 @@ module Lithic module Models module AuthRules - class RuleStats < Lithic::Internal::Type::BaseModel + class BacktestStats < Lithic::Internal::Type::BaseModel OrHash = T.type_alias do - T.any(Lithic::AuthRules::RuleStats, Lithic::Internal::AnyHash) + T.any(Lithic::AuthRules::BacktestStats, Lithic::Internal::AnyHash) end # The total number of historical transactions approved by this rule during the - # relevant period, or the number of transactions that would have been approved if + # backtest period, or the number of transactions that would have been approved if # the rule was evaluated in shadow mode. sig { returns(T.nilable(Integer)) } attr_reader :approved @@ -19,7 +19,7 @@ module Lithic attr_writer :approved # The total number of historical transactions challenged by this rule during the - # relevant period, or the number of transactions that would have been challenged + # backtest period, or the number of transactions that would have been challenged # if the rule was evaluated in shadow mode. Currently applicable only for 3DS Auth # Rules. sig { returns(T.nilable(Integer)) } @@ -29,7 +29,7 @@ module Lithic attr_writer :challenged # The total number of historical transactions declined by this rule during the - # relevant period, or the number of transactions that would have been declined if + # backtest period, or the number of transactions that would have been declined if # the rule was evaluated in shadow mode. sig { returns(T.nilable(Integer)) } attr_reader :declined @@ -39,13 +39,16 @@ module Lithic # Example events and their outcomes. sig do - returns(T.nilable(T::Array[Lithic::AuthRules::RuleStats::Example])) + returns( + T.nilable(T::Array[Lithic::AuthRules::BacktestStats::Example]) + ) end attr_reader :examples sig do params( - examples: T::Array[Lithic::AuthRules::RuleStats::Example::OrHash] + examples: + T::Array[Lithic::AuthRules::BacktestStats::Example::OrHash] ).void end attr_writer :examples @@ -63,22 +66,23 @@ module Lithic approved: Integer, challenged: Integer, declined: Integer, - examples: T::Array[Lithic::AuthRules::RuleStats::Example::OrHash], + examples: + T::Array[Lithic::AuthRules::BacktestStats::Example::OrHash], version: Integer ).returns(T.attached_class) end def self.new( # The total number of historical transactions approved by this rule during the - # relevant period, or the number of transactions that would have been approved if + # backtest period, or the number of transactions that would have been approved if # the rule was evaluated in shadow mode. approved: nil, # The total number of historical transactions challenged by this rule during the - # relevant period, or the number of transactions that would have been challenged + # backtest period, or the number of transactions that would have been challenged # if the rule was evaluated in shadow mode. Currently applicable only for 3DS Auth # Rules. challenged: nil, # The total number of historical transactions declined by this rule during the - # relevant period, or the number of transactions that would have been declined if + # backtest period, or the number of transactions that would have been declined if # the rule was evaluated in shadow mode. declined: nil, # Example events and their outcomes. @@ -95,7 +99,7 @@ module Lithic approved: Integer, challenged: Integer, declined: Integer, - examples: T::Array[Lithic::AuthRules::RuleStats::Example], + examples: T::Array[Lithic::AuthRules::BacktestStats::Example], version: Integer } ) @@ -107,23 +111,16 @@ module Lithic OrHash = T.type_alias do T.any( - Lithic::AuthRules::RuleStats::Example, + Lithic::AuthRules::BacktestStats::Example, Lithic::Internal::AnyHash ) end - # Whether the rule would have approved the request. - sig { returns(T.nilable(T::Boolean)) } - attr_reader :approved - - sig { params(approved: T::Boolean).void } - attr_writer :approved - # The decision made by the rule for this event. sig do returns( T.nilable( - Lithic::AuthRules::RuleStats::Example::Decision::TaggedSymbol + Lithic::AuthRules::BacktestStats::Example::Decision::TaggedSymbol ) ) end @@ -132,7 +129,7 @@ module Lithic sig do params( decision: - Lithic::AuthRules::RuleStats::Example::Decision::OrSymbol + Lithic::AuthRules::BacktestStats::Example::Decision::OrSymbol ).void end attr_writer :decision @@ -153,16 +150,13 @@ module Lithic sig do params( - approved: T::Boolean, decision: - Lithic::AuthRules::RuleStats::Example::Decision::OrSymbol, + Lithic::AuthRules::BacktestStats::Example::Decision::OrSymbol, event_token: String, timestamp: Time ).returns(T.attached_class) end def self.new( - # Whether the rule would have approved the request. - approved: nil, # The decision made by the rule for this event. decision: nil, # The event token. @@ -175,9 +169,8 @@ module Lithic sig do override.returns( { - approved: T::Boolean, decision: - Lithic::AuthRules::RuleStats::Example::Decision::TaggedSymbol, + Lithic::AuthRules::BacktestStats::Example::Decision::TaggedSymbol, event_token: String, timestamp: Time } @@ -192,30 +185,33 @@ module Lithic TaggedSymbol = T.type_alias do - T.all(Symbol, Lithic::AuthRules::RuleStats::Example::Decision) + T.all( + Symbol, + Lithic::AuthRules::BacktestStats::Example::Decision + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } APPROVED = T.let( :APPROVED, - Lithic::AuthRules::RuleStats::Example::Decision::TaggedSymbol + Lithic::AuthRules::BacktestStats::Example::Decision::TaggedSymbol ) DECLINED = T.let( :DECLINED, - Lithic::AuthRules::RuleStats::Example::Decision::TaggedSymbol + Lithic::AuthRules::BacktestStats::Example::Decision::TaggedSymbol ) CHALLENGED = T.let( :CHALLENGED, - Lithic::AuthRules::RuleStats::Example::Decision::TaggedSymbol + Lithic::AuthRules::BacktestStats::Example::Decision::TaggedSymbol ) sig do override.returns( T::Array[ - Lithic::AuthRules::RuleStats::Example::Decision::TaggedSymbol + Lithic::AuthRules::BacktestStats::Example::Decision::TaggedSymbol ] ) end diff --git a/rbi/lithic/models/auth_rules/conditional_ach_action_parameters.rbi b/rbi/lithic/models/auth_rules/conditional_ach_action_parameters.rbi index 3830a01a..3b662401 100644 --- a/rbi/lithic/models/auth_rules/conditional_ach_action_parameters.rbi +++ b/rbi/lithic/models/auth_rules/conditional_ach_action_parameters.rbi @@ -16,7 +16,7 @@ module Lithic sig do returns( T.any( - Lithic::AuthRules::ConditionalACHActionParameters::Action::ApproveAction, + Lithic::AuthRules::ConditionalACHActionParameters::Action::ApproveActionACH, Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction ) ) @@ -36,7 +36,7 @@ module Lithic params( action: T.any( - Lithic::AuthRules::ConditionalACHActionParameters::Action::ApproveAction::OrHash, + Lithic::AuthRules::ConditionalACHActionParameters::Action::ApproveActionACH::OrHash, Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::OrHash ), conditions: @@ -57,7 +57,7 @@ module Lithic { action: T.any( - Lithic::AuthRules::ConditionalACHActionParameters::Action::ApproveAction, + Lithic::AuthRules::ConditionalACHActionParameters::Action::ApproveActionACH, Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction ), conditions: @@ -77,16 +77,16 @@ module Lithic Variants = T.type_alias do T.any( - Lithic::AuthRules::ConditionalACHActionParameters::Action::ApproveAction, + Lithic::AuthRules::ConditionalACHActionParameters::Action::ApproveActionACH, Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction ) end - class ApproveAction < Lithic::Internal::Type::BaseModel + class ApproveActionACH < Lithic::Internal::Type::BaseModel OrHash = T.type_alias do T.any( - Lithic::AuthRules::ConditionalACHActionParameters::Action::ApproveAction, + Lithic::AuthRules::ConditionalACHActionParameters::Action::ApproveActionACH, Lithic::Internal::AnyHash ) end @@ -94,7 +94,7 @@ module Lithic # Approve the ACH transaction sig do returns( - Lithic::AuthRules::ConditionalACHActionParameters::Action::ApproveAction::Type::OrSymbol + Lithic::AuthRules::ConditionalACHActionParameters::Action::ApproveActionACH::Type::OrSymbol ) end attr_accessor :type @@ -102,7 +102,7 @@ module Lithic sig do params( type: - Lithic::AuthRules::ConditionalACHActionParameters::Action::ApproveAction::Type::OrSymbol + Lithic::AuthRules::ConditionalACHActionParameters::Action::ApproveActionACH::Type::OrSymbol ).returns(T.attached_class) end def self.new( @@ -115,7 +115,7 @@ module Lithic override.returns( { type: - Lithic::AuthRules::ConditionalACHActionParameters::Action::ApproveAction::Type::OrSymbol + Lithic::AuthRules::ConditionalACHActionParameters::Action::ApproveActionACH::Type::OrSymbol } ) end @@ -130,7 +130,7 @@ module Lithic T.type_alias do T.all( Symbol, - Lithic::AuthRules::ConditionalACHActionParameters::Action::ApproveAction::Type + Lithic::AuthRules::ConditionalACHActionParameters::Action::ApproveActionACH::Type ) end OrSymbol = T.type_alias { T.any(Symbol, String) } @@ -138,13 +138,13 @@ module Lithic APPROVE = T.let( :APPROVE, - Lithic::AuthRules::ConditionalACHActionParameters::Action::ApproveAction::Type::TaggedSymbol + Lithic::AuthRules::ConditionalACHActionParameters::Action::ApproveActionACH::Type::TaggedSymbol ) sig do override.returns( T::Array[ - Lithic::AuthRules::ConditionalACHActionParameters::Action::ApproveAction::Type::TaggedSymbol + Lithic::AuthRules::ConditionalACHActionParameters::Action::ApproveActionACH::Type::TaggedSymbol ] ) end diff --git a/rbi/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbi b/rbi/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbi index fdda71e1..a411dc37 100644 --- a/rbi/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbi +++ b/rbi/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbi @@ -16,7 +16,7 @@ module Lithic sig do returns( T.any( - Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction, + Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineActionTokenization, Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::RequireTfaAction ) ) @@ -36,7 +36,7 @@ module Lithic params( action: T.any( - Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction::OrHash, + Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineActionTokenization::OrHash, Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::RequireTfaAction::OrHash ), conditions: @@ -57,7 +57,7 @@ module Lithic { action: T.any( - Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction, + Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineActionTokenization, Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::RequireTfaAction ), conditions: @@ -77,16 +77,16 @@ module Lithic Variants = T.type_alias do T.any( - Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction, + Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineActionTokenization, Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::RequireTfaAction ) end - class DeclineAction < Lithic::Internal::Type::BaseModel + class DeclineActionTokenization < Lithic::Internal::Type::BaseModel OrHash = T.type_alias do T.any( - Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction, + Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineActionTokenization, Lithic::Internal::AnyHash ) end @@ -94,7 +94,7 @@ module Lithic # Decline the tokenization request sig do returns( - Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction::Type::OrSymbol + Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineActionTokenization::Type::OrSymbol ) end attr_accessor :type @@ -103,7 +103,7 @@ module Lithic sig do returns( T.nilable( - Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction::Reason::OrSymbol + Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineActionTokenization::Reason::OrSymbol ) ) end @@ -112,7 +112,7 @@ module Lithic sig do params( reason: - Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction::Reason::OrSymbol + Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineActionTokenization::Reason::OrSymbol ).void end attr_writer :reason @@ -120,9 +120,9 @@ module Lithic sig do params( type: - Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction::Type::OrSymbol, + Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineActionTokenization::Type::OrSymbol, reason: - Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction::Reason::OrSymbol + Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineActionTokenization::Reason::OrSymbol ).returns(T.attached_class) end def self.new( @@ -137,9 +137,9 @@ module Lithic override.returns( { type: - Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction::Type::OrSymbol, + Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineActionTokenization::Type::OrSymbol, reason: - Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction::Reason::OrSymbol + Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineActionTokenization::Reason::OrSymbol } ) end @@ -154,7 +154,7 @@ module Lithic T.type_alias do T.all( Symbol, - Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction::Type + Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineActionTokenization::Type ) end OrSymbol = T.type_alias { T.any(Symbol, String) } @@ -162,13 +162,13 @@ module Lithic DECLINE = T.let( :DECLINE, - Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction::Type::TaggedSymbol + Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineActionTokenization::Type::TaggedSymbol ) sig do override.returns( T::Array[ - Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction::Type::TaggedSymbol + Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineActionTokenization::Type::TaggedSymbol ] ) end @@ -184,7 +184,7 @@ module Lithic T.type_alias do T.all( Symbol, - Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction::Reason + Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineActionTokenization::Reason ) end OrSymbol = T.type_alias { T.any(Symbol, String) } @@ -192,73 +192,73 @@ module Lithic ACCOUNT_SCORE_1 = T.let( :ACCOUNT_SCORE_1, - Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction::Reason::TaggedSymbol + Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineActionTokenization::Reason::TaggedSymbol ) DEVICE_SCORE_1 = T.let( :DEVICE_SCORE_1, - Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction::Reason::TaggedSymbol + Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineActionTokenization::Reason::TaggedSymbol ) ALL_WALLET_DECLINE_REASONS_PRESENT = T.let( :ALL_WALLET_DECLINE_REASONS_PRESENT, - Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction::Reason::TaggedSymbol + Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineActionTokenization::Reason::TaggedSymbol ) WALLET_RECOMMENDED_DECISION_RED = T.let( :WALLET_RECOMMENDED_DECISION_RED, - Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction::Reason::TaggedSymbol + Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineActionTokenization::Reason::TaggedSymbol ) CVC_MISMATCH = T.let( :CVC_MISMATCH, - Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction::Reason::TaggedSymbol + Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineActionTokenization::Reason::TaggedSymbol ) CARD_EXPIRY_MONTH_MISMATCH = T.let( :CARD_EXPIRY_MONTH_MISMATCH, - Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction::Reason::TaggedSymbol + Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineActionTokenization::Reason::TaggedSymbol ) CARD_EXPIRY_YEAR_MISMATCH = T.let( :CARD_EXPIRY_YEAR_MISMATCH, - Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction::Reason::TaggedSymbol + Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineActionTokenization::Reason::TaggedSymbol ) CARD_INVALID_STATE = T.let( :CARD_INVALID_STATE, - Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction::Reason::TaggedSymbol + Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineActionTokenization::Reason::TaggedSymbol ) CUSTOMER_RED_PATH = T.let( :CUSTOMER_RED_PATH, - Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction::Reason::TaggedSymbol + Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineActionTokenization::Reason::TaggedSymbol ) INVALID_CUSTOMER_RESPONSE = T.let( :INVALID_CUSTOMER_RESPONSE, - Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction::Reason::TaggedSymbol + Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineActionTokenization::Reason::TaggedSymbol ) NETWORK_FAILURE = T.let( :NETWORK_FAILURE, - Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction::Reason::TaggedSymbol + Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineActionTokenization::Reason::TaggedSymbol ) GENERIC_DECLINE = T.let( :GENERIC_DECLINE, - Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction::Reason::TaggedSymbol + Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineActionTokenization::Reason::TaggedSymbol ) DIGITAL_CARD_ART_REQUIRED = T.let( :DIGITAL_CARD_ART_REQUIRED, - Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction::Reason::TaggedSymbol + Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineActionTokenization::Reason::TaggedSymbol ) sig do override.returns( T::Array[ - Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction::Reason::TaggedSymbol + Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineActionTokenization::Reason::TaggedSymbol ] ) end diff --git a/rbi/lithic/models/auth_rules/report_stats.rbi b/rbi/lithic/models/auth_rules/report_stats.rbi new file mode 100644 index 00000000..15ff00d9 --- /dev/null +++ b/rbi/lithic/models/auth_rules/report_stats.rbi @@ -0,0 +1,1754 @@ +# typed: strong + +module Lithic + module Models + module AuthRules + class ReportStats < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any(Lithic::AuthRules::ReportStats, Lithic::Internal::AnyHash) + end + + # A mapping of action types to the number of times that action was returned by + # this rule during the relevant period. Actions are the possible outcomes of a + # rule evaluation, such as DECLINE, CHALLENGE, REQUIRE_TFA, etc. In case rule + # didn't trigger any action, it's counted under NO_ACTION key. + sig { returns(T.nilable(T::Hash[Symbol, Integer])) } + attr_reader :action_counts + + sig { params(action_counts: T::Hash[Symbol, Integer]).void } + attr_writer :action_counts + + # The total number of historical transactions approved by this rule during the + # relevant period, or the number of transactions that would have been approved if + # the rule was evaluated in shadow mode. + sig { returns(T.nilable(Integer)) } + attr_reader :approved + + sig { params(approved: Integer).void } + attr_writer :approved + + # The total number of historical transactions challenged by this rule during the + # relevant period, or the number of transactions that would have been challenged + # if the rule was evaluated in shadow mode. Currently applicable only for 3DS Auth + # Rules. + sig { returns(T.nilable(Integer)) } + attr_reader :challenged + + sig { params(challenged: Integer).void } + attr_writer :challenged + + # The total number of historical transactions declined by this rule during the + # relevant period, or the number of transactions that would have been declined if + # the rule was evaluated in shadow mode. + sig { returns(T.nilable(Integer)) } + attr_reader :declined + + sig { params(declined: Integer).void } + attr_writer :declined + + # Example events and their outcomes. + sig do + returns(T.nilable(T::Array[Lithic::AuthRules::ReportStats::Example])) + end + attr_reader :examples + + sig do + params( + examples: T::Array[Lithic::AuthRules::ReportStats::Example::OrHash] + ).void + end + attr_writer :examples + + sig do + params( + action_counts: T::Hash[Symbol, Integer], + approved: Integer, + challenged: Integer, + declined: Integer, + examples: T::Array[Lithic::AuthRules::ReportStats::Example::OrHash] + ).returns(T.attached_class) + end + def self.new( + # A mapping of action types to the number of times that action was returned by + # this rule during the relevant period. Actions are the possible outcomes of a + # rule evaluation, such as DECLINE, CHALLENGE, REQUIRE_TFA, etc. In case rule + # didn't trigger any action, it's counted under NO_ACTION key. + action_counts: nil, + # The total number of historical transactions approved by this rule during the + # relevant period, or the number of transactions that would have been approved if + # the rule was evaluated in shadow mode. + approved: nil, + # The total number of historical transactions challenged by this rule during the + # relevant period, or the number of transactions that would have been challenged + # if the rule was evaluated in shadow mode. Currently applicable only for 3DS Auth + # Rules. + challenged: nil, + # The total number of historical transactions declined by this rule during the + # relevant period, or the number of transactions that would have been declined if + # the rule was evaluated in shadow mode. + declined: nil, + # Example events and their outcomes. + examples: nil + ) + end + + sig do + override.returns( + { + action_counts: T::Hash[Symbol, Integer], + approved: Integer, + challenged: Integer, + declined: Integer, + examples: T::Array[Lithic::AuthRules::ReportStats::Example] + } + ) + end + def to_hash + end + + class Example < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::AuthRules::ReportStats::Example, + Lithic::Internal::AnyHash + ) + end + + # The actions taken by the rule for this event. + sig do + returns( + T.nilable( + T::Array[ + Lithic::AuthRules::ReportStats::Example::Action::Variants + ] + ) + ) + end + attr_reader :actions + + sig do + params( + actions: + T::Array[ + T.any( + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::OrHash, + Lithic::AuthRules::ReportStats::Example::Action::ChallengeActionAuthorization::OrHash, + Lithic::AuthRules::ReportStats::Example::Action::ResultAuthentication3DSAction::OrHash, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionTokenization::OrHash, + Lithic::AuthRules::ReportStats::Example::Action::RequireTfaAction::OrHash, + Lithic::AuthRules::ReportStats::Example::Action::ApproveActionACH::OrHash, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::OrHash + ) + ] + ).void + end + attr_writer :actions + + # Whether the rule would have approved the request. + sig { returns(T.nilable(T::Boolean)) } + attr_reader :approved + + sig { params(approved: T::Boolean).void } + attr_writer :approved + + # The decision made by the rule for this event. + sig do + returns( + T.nilable( + Lithic::AuthRules::ReportStats::Example::Decision::TaggedSymbol + ) + ) + end + attr_reader :decision + + sig do + params( + decision: + Lithic::AuthRules::ReportStats::Example::Decision::OrSymbol + ).void + end + attr_writer :decision + + # The event token. + sig { returns(T.nilable(String)) } + attr_reader :event_token + + sig { params(event_token: String).void } + attr_writer :event_token + + # The timestamp of the event. + sig { returns(T.nilable(Time)) } + attr_reader :timestamp + + sig { params(timestamp: Time).void } + attr_writer :timestamp + + sig do + params( + actions: + T::Array[ + T.any( + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::OrHash, + Lithic::AuthRules::ReportStats::Example::Action::ChallengeActionAuthorization::OrHash, + Lithic::AuthRules::ReportStats::Example::Action::ResultAuthentication3DSAction::OrHash, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionTokenization::OrHash, + Lithic::AuthRules::ReportStats::Example::Action::RequireTfaAction::OrHash, + Lithic::AuthRules::ReportStats::Example::Action::ApproveActionACH::OrHash, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::OrHash + ) + ], + approved: T::Boolean, + decision: + Lithic::AuthRules::ReportStats::Example::Decision::OrSymbol, + event_token: String, + timestamp: Time + ).returns(T.attached_class) + end + def self.new( + # The actions taken by the rule for this event. + actions: nil, + # Whether the rule would have approved the request. + approved: nil, + # The decision made by the rule for this event. + decision: nil, + # The event token. + event_token: nil, + # The timestamp of the event. + timestamp: nil + ) + end + + sig do + override.returns( + { + actions: + T::Array[ + Lithic::AuthRules::ReportStats::Example::Action::Variants + ], + approved: T::Boolean, + decision: + Lithic::AuthRules::ReportStats::Example::Decision::TaggedSymbol, + event_token: String, + timestamp: Time + } + ) + end + def to_hash + end + + module Action + extend Lithic::Internal::Type::Union + + Variants = + T.type_alias do + T.any( + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization, + Lithic::AuthRules::ReportStats::Example::Action::ChallengeActionAuthorization, + Lithic::AuthRules::ReportStats::Example::Action::ResultAuthentication3DSAction, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionTokenization, + Lithic::AuthRules::ReportStats::Example::Action::RequireTfaAction, + Lithic::AuthRules::ReportStats::Example::Action::ApproveActionACH, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction + ) + end + + class DeclineActionAuthorization < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization, + Lithic::Internal::AnyHash + ) + end + + # The detailed result code explaining the specific reason for the decline + sig do + returns( + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + end + attr_accessor :code + + sig do + returns( + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Type::TaggedSymbol + ) + end + attr_accessor :type + + sig do + params( + code: + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::OrSymbol, + type: + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Type::OrSymbol + ).returns(T.attached_class) + end + def self.new( + # The detailed result code explaining the specific reason for the decline + code:, + type: + ) + end + + sig do + override.returns( + { + code: + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol, + type: + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Type::TaggedSymbol + } + ) + end + def to_hash + end + + # The detailed result code explaining the specific reason for the decline + module Code + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ACCOUNT_DAILY_SPEND_LIMIT_EXCEEDED = + T.let( + :ACCOUNT_DAILY_SPEND_LIMIT_EXCEEDED, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + ACCOUNT_DELINQUENT = + T.let( + :ACCOUNT_DELINQUENT, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + ACCOUNT_INACTIVE = + T.let( + :ACCOUNT_INACTIVE, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + ACCOUNT_LIFETIME_SPEND_LIMIT_EXCEEDED = + T.let( + :ACCOUNT_LIFETIME_SPEND_LIMIT_EXCEEDED, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + ACCOUNT_MONTHLY_SPEND_LIMIT_EXCEEDED = + T.let( + :ACCOUNT_MONTHLY_SPEND_LIMIT_EXCEEDED, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + ACCOUNT_PAUSED = + T.let( + :ACCOUNT_PAUSED, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + ACCOUNT_UNDER_REVIEW = + T.let( + :ACCOUNT_UNDER_REVIEW, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + ADDRESS_INCORRECT = + T.let( + :ADDRESS_INCORRECT, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + APPROVED = + T.let( + :APPROVED, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + AUTH_RULE_ALLOWED_COUNTRY = + T.let( + :AUTH_RULE_ALLOWED_COUNTRY, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + AUTH_RULE_ALLOWED_MCC = + T.let( + :AUTH_RULE_ALLOWED_MCC, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + AUTH_RULE_BLOCKED_COUNTRY = + T.let( + :AUTH_RULE_BLOCKED_COUNTRY, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + AUTH_RULE_BLOCKED_MCC = + T.let( + :AUTH_RULE_BLOCKED_MCC, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + AUTH_RULE = + T.let( + :AUTH_RULE, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + CARD_CLOSED = + T.let( + :CARD_CLOSED, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + CARD_CRYPTOGRAM_VALIDATION_FAILURE = + T.let( + :CARD_CRYPTOGRAM_VALIDATION_FAILURE, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + CARD_EXPIRED = + T.let( + :CARD_EXPIRED, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + CARD_EXPIRY_DATE_INCORRECT = + T.let( + :CARD_EXPIRY_DATE_INCORRECT, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + CARD_INVALID = + T.let( + :CARD_INVALID, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + CARD_NOT_ACTIVATED = + T.let( + :CARD_NOT_ACTIVATED, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + CARD_PAUSED = + T.let( + :CARD_PAUSED, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + CARD_PIN_INCORRECT = + T.let( + :CARD_PIN_INCORRECT, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + CARD_RESTRICTED = + T.let( + :CARD_RESTRICTED, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + CARD_SECURITY_CODE_INCORRECT = + T.let( + :CARD_SECURITY_CODE_INCORRECT, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + CARD_SPEND_LIMIT_EXCEEDED = + T.let( + :CARD_SPEND_LIMIT_EXCEEDED, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + CONTACT_CARD_ISSUER = + T.let( + :CONTACT_CARD_ISSUER, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + CUSTOMER_ASA_TIMEOUT = + T.let( + :CUSTOMER_ASA_TIMEOUT, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + CUSTOM_ASA_RESULT = + T.let( + :CUSTOM_ASA_RESULT, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + DECLINED = + T.let( + :DECLINED, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + DO_NOT_HONOR = + T.let( + :DO_NOT_HONOR, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + DRIVER_NUMBER_INVALID = + T.let( + :DRIVER_NUMBER_INVALID, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + FORMAT_ERROR = + T.let( + :FORMAT_ERROR, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + INSUFFICIENT_FUNDING_SOURCE_BALANCE = + T.let( + :INSUFFICIENT_FUNDING_SOURCE_BALANCE, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + INSUFFICIENT_FUNDS = + T.let( + :INSUFFICIENT_FUNDS, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + LITHIC_SYSTEM_ERROR = + T.let( + :LITHIC_SYSTEM_ERROR, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + LITHIC_SYSTEM_RATE_LIMIT = + T.let( + :LITHIC_SYSTEM_RATE_LIMIT, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + MALFORMED_ASA_RESPONSE = + T.let( + :MALFORMED_ASA_RESPONSE, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + MERCHANT_INVALID = + T.let( + :MERCHANT_INVALID, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + MERCHANT_LOCKED_CARD_ATTEMPTED_ELSEWHERE = + T.let( + :MERCHANT_LOCKED_CARD_ATTEMPTED_ELSEWHERE, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + MERCHANT_NOT_PERMITTED = + T.let( + :MERCHANT_NOT_PERMITTED, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + OVER_REVERSAL_ATTEMPTED = + T.let( + :OVER_REVERSAL_ATTEMPTED, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + PIN_BLOCKED = + T.let( + :PIN_BLOCKED, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + PROGRAM_CARD_SPEND_LIMIT_EXCEEDED = + T.let( + :PROGRAM_CARD_SPEND_LIMIT_EXCEEDED, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + PROGRAM_SUSPENDED = + T.let( + :PROGRAM_SUSPENDED, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + PROGRAM_USAGE_RESTRICTION = + T.let( + :PROGRAM_USAGE_RESTRICTION, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + REVERSAL_UNMATCHED = + T.let( + :REVERSAL_UNMATCHED, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + SECURITY_VIOLATION = + T.let( + :SECURITY_VIOLATION, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + SINGLE_USE_CARD_REATTEMPTED = + T.let( + :SINGLE_USE_CARD_REATTEMPTED, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + SUSPECTED_FRAUD = + T.let( + :SUSPECTED_FRAUD, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + TRANSACTION_INVALID = + T.let( + :TRANSACTION_INVALID, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + TRANSACTION_NOT_PERMITTED_TO_ACQUIRER_OR_TERMINAL = + T.let( + :TRANSACTION_NOT_PERMITTED_TO_ACQUIRER_OR_TERMINAL, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + TRANSACTION_NOT_PERMITTED_TO_ISSUER_OR_CARDHOLDER = + T.let( + :TRANSACTION_NOT_PERMITTED_TO_ISSUER_OR_CARDHOLDER, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + TRANSACTION_PREVIOUSLY_COMPLETED = + T.let( + :TRANSACTION_PREVIOUSLY_COMPLETED, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + UNAUTHORIZED_MERCHANT = + T.let( + :UNAUTHORIZED_MERCHANT, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + VEHICLE_NUMBER_INVALID = + T.let( + :VEHICLE_NUMBER_INVALID, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + CARDHOLDER_CHALLENGED = + T.let( + :CARDHOLDER_CHALLENGED, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + CARDHOLDER_CHALLENGE_FAILED = + T.let( + :CARDHOLDER_CHALLENGE_FAILED, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol + ] + ) + end + def self.values + end + end + + module Type + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + DECLINE = + T.let( + :DECLINE, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class ChallengeActionAuthorization < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::AuthRules::ReportStats::Example::Action::ChallengeActionAuthorization, + Lithic::Internal::AnyHash + ) + end + + sig do + returns( + Lithic::AuthRules::ReportStats::Example::Action::ChallengeActionAuthorization::Type::TaggedSymbol + ) + end + attr_accessor :type + + sig do + params( + type: + Lithic::AuthRules::ReportStats::Example::Action::ChallengeActionAuthorization::Type::OrSymbol + ).returns(T.attached_class) + end + def self.new(type:) + end + + sig do + override.returns( + { + type: + Lithic::AuthRules::ReportStats::Example::Action::ChallengeActionAuthorization::Type::TaggedSymbol + } + ) + end + def to_hash + end + + module Type + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Lithic::AuthRules::ReportStats::Example::Action::ChallengeActionAuthorization::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + CHALLENGE = + T.let( + :CHALLENGE, + Lithic::AuthRules::ReportStats::Example::Action::ChallengeActionAuthorization::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::AuthRules::ReportStats::Example::Action::ChallengeActionAuthorization::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class ResultAuthentication3DSAction < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::AuthRules::ReportStats::Example::Action::ResultAuthentication3DSAction, + Lithic::Internal::AnyHash + ) + end + + sig do + returns( + Lithic::AuthRules::ReportStats::Example::Action::ResultAuthentication3DSAction::Type::TaggedSymbol + ) + end + attr_accessor :type + + sig do + params( + type: + Lithic::AuthRules::ReportStats::Example::Action::ResultAuthentication3DSAction::Type::OrSymbol + ).returns(T.attached_class) + end + def self.new(type:) + end + + sig do + override.returns( + { + type: + Lithic::AuthRules::ReportStats::Example::Action::ResultAuthentication3DSAction::Type::TaggedSymbol + } + ) + end + def to_hash + end + + module Type + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Lithic::AuthRules::ReportStats::Example::Action::ResultAuthentication3DSAction::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + DECLINE = + T.let( + :DECLINE, + Lithic::AuthRules::ReportStats::Example::Action::ResultAuthentication3DSAction::Type::TaggedSymbol + ) + CHALLENGE = + T.let( + :CHALLENGE, + Lithic::AuthRules::ReportStats::Example::Action::ResultAuthentication3DSAction::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::AuthRules::ReportStats::Example::Action::ResultAuthentication3DSAction::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class DeclineActionTokenization < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionTokenization, + Lithic::Internal::AnyHash + ) + end + + # Decline the tokenization request + sig do + returns( + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionTokenization::Type::TaggedSymbol + ) + end + attr_accessor :type + + # Reason code for declining the tokenization request + sig do + returns( + T.nilable( + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionTokenization::Reason::TaggedSymbol + ) + ) + end + attr_reader :reason + + sig do + params( + reason: + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionTokenization::Reason::OrSymbol + ).void + end + attr_writer :reason + + sig do + params( + type: + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionTokenization::Type::OrSymbol, + reason: + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionTokenization::Reason::OrSymbol + ).returns(T.attached_class) + end + def self.new( + # Decline the tokenization request + type:, + # Reason code for declining the tokenization request + reason: nil + ) + end + + sig do + override.returns( + { + type: + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionTokenization::Type::TaggedSymbol, + reason: + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionTokenization::Reason::TaggedSymbol + } + ) + end + def to_hash + end + + # Decline the tokenization request + module Type + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionTokenization::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + DECLINE = + T.let( + :DECLINE, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionTokenization::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionTokenization::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + + # Reason code for declining the tokenization request + module Reason + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionTokenization::Reason + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ACCOUNT_SCORE_1 = + T.let( + :ACCOUNT_SCORE_1, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionTokenization::Reason::TaggedSymbol + ) + DEVICE_SCORE_1 = + T.let( + :DEVICE_SCORE_1, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionTokenization::Reason::TaggedSymbol + ) + ALL_WALLET_DECLINE_REASONS_PRESENT = + T.let( + :ALL_WALLET_DECLINE_REASONS_PRESENT, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionTokenization::Reason::TaggedSymbol + ) + WALLET_RECOMMENDED_DECISION_RED = + T.let( + :WALLET_RECOMMENDED_DECISION_RED, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionTokenization::Reason::TaggedSymbol + ) + CVC_MISMATCH = + T.let( + :CVC_MISMATCH, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionTokenization::Reason::TaggedSymbol + ) + CARD_EXPIRY_MONTH_MISMATCH = + T.let( + :CARD_EXPIRY_MONTH_MISMATCH, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionTokenization::Reason::TaggedSymbol + ) + CARD_EXPIRY_YEAR_MISMATCH = + T.let( + :CARD_EXPIRY_YEAR_MISMATCH, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionTokenization::Reason::TaggedSymbol + ) + CARD_INVALID_STATE = + T.let( + :CARD_INVALID_STATE, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionTokenization::Reason::TaggedSymbol + ) + CUSTOMER_RED_PATH = + T.let( + :CUSTOMER_RED_PATH, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionTokenization::Reason::TaggedSymbol + ) + INVALID_CUSTOMER_RESPONSE = + T.let( + :INVALID_CUSTOMER_RESPONSE, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionTokenization::Reason::TaggedSymbol + ) + NETWORK_FAILURE = + T.let( + :NETWORK_FAILURE, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionTokenization::Reason::TaggedSymbol + ) + GENERIC_DECLINE = + T.let( + :GENERIC_DECLINE, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionTokenization::Reason::TaggedSymbol + ) + DIGITAL_CARD_ART_REQUIRED = + T.let( + :DIGITAL_CARD_ART_REQUIRED, + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionTokenization::Reason::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionTokenization::Reason::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class RequireTfaAction < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::AuthRules::ReportStats::Example::Action::RequireTfaAction, + Lithic::Internal::AnyHash + ) + end + + # Require two-factor authentication for the tokenization request + sig do + returns( + Lithic::AuthRules::ReportStats::Example::Action::RequireTfaAction::Type::TaggedSymbol + ) + end + attr_accessor :type + + # Reason code for requiring two-factor authentication + sig do + returns( + T.nilable( + Lithic::AuthRules::ReportStats::Example::Action::RequireTfaAction::Reason::TaggedSymbol + ) + ) + end + attr_reader :reason + + sig do + params( + reason: + Lithic::AuthRules::ReportStats::Example::Action::RequireTfaAction::Reason::OrSymbol + ).void + end + attr_writer :reason + + sig do + params( + type: + Lithic::AuthRules::ReportStats::Example::Action::RequireTfaAction::Type::OrSymbol, + reason: + Lithic::AuthRules::ReportStats::Example::Action::RequireTfaAction::Reason::OrSymbol + ).returns(T.attached_class) + end + def self.new( + # Require two-factor authentication for the tokenization request + type:, + # Reason code for requiring two-factor authentication + reason: nil + ) + end + + sig do + override.returns( + { + type: + Lithic::AuthRules::ReportStats::Example::Action::RequireTfaAction::Type::TaggedSymbol, + reason: + Lithic::AuthRules::ReportStats::Example::Action::RequireTfaAction::Reason::TaggedSymbol + } + ) + end + def to_hash + end + + # Require two-factor authentication for the tokenization request + module Type + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Lithic::AuthRules::ReportStats::Example::Action::RequireTfaAction::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + REQUIRE_TFA = + T.let( + :REQUIRE_TFA, + Lithic::AuthRules::ReportStats::Example::Action::RequireTfaAction::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::AuthRules::ReportStats::Example::Action::RequireTfaAction::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + + # Reason code for requiring two-factor authentication + module Reason + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Lithic::AuthRules::ReportStats::Example::Action::RequireTfaAction::Reason + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + WALLET_RECOMMENDED_TFA = + T.let( + :WALLET_RECOMMENDED_TFA, + Lithic::AuthRules::ReportStats::Example::Action::RequireTfaAction::Reason::TaggedSymbol + ) + SUSPICIOUS_ACTIVITY = + T.let( + :SUSPICIOUS_ACTIVITY, + Lithic::AuthRules::ReportStats::Example::Action::RequireTfaAction::Reason::TaggedSymbol + ) + DEVICE_RECENTLY_LOST = + T.let( + :DEVICE_RECENTLY_LOST, + Lithic::AuthRules::ReportStats::Example::Action::RequireTfaAction::Reason::TaggedSymbol + ) + TOO_MANY_RECENT_ATTEMPTS = + T.let( + :TOO_MANY_RECENT_ATTEMPTS, + Lithic::AuthRules::ReportStats::Example::Action::RequireTfaAction::Reason::TaggedSymbol + ) + TOO_MANY_RECENT_TOKENS = + T.let( + :TOO_MANY_RECENT_TOKENS, + Lithic::AuthRules::ReportStats::Example::Action::RequireTfaAction::Reason::TaggedSymbol + ) + TOO_MANY_DIFFERENT_CARDHOLDERS = + T.let( + :TOO_MANY_DIFFERENT_CARDHOLDERS, + Lithic::AuthRules::ReportStats::Example::Action::RequireTfaAction::Reason::TaggedSymbol + ) + OUTSIDE_HOME_TERRITORY = + T.let( + :OUTSIDE_HOME_TERRITORY, + Lithic::AuthRules::ReportStats::Example::Action::RequireTfaAction::Reason::TaggedSymbol + ) + HAS_SUSPENDED_TOKENS = + T.let( + :HAS_SUSPENDED_TOKENS, + Lithic::AuthRules::ReportStats::Example::Action::RequireTfaAction::Reason::TaggedSymbol + ) + HIGH_RISK = + T.let( + :HIGH_RISK, + Lithic::AuthRules::ReportStats::Example::Action::RequireTfaAction::Reason::TaggedSymbol + ) + ACCOUNT_SCORE_LOW = + T.let( + :ACCOUNT_SCORE_LOW, + Lithic::AuthRules::ReportStats::Example::Action::RequireTfaAction::Reason::TaggedSymbol + ) + DEVICE_SCORE_LOW = + T.let( + :DEVICE_SCORE_LOW, + Lithic::AuthRules::ReportStats::Example::Action::RequireTfaAction::Reason::TaggedSymbol + ) + CARD_STATE_TFA = + T.let( + :CARD_STATE_TFA, + Lithic::AuthRules::ReportStats::Example::Action::RequireTfaAction::Reason::TaggedSymbol + ) + HARDCODED_TFA = + T.let( + :HARDCODED_TFA, + Lithic::AuthRules::ReportStats::Example::Action::RequireTfaAction::Reason::TaggedSymbol + ) + CUSTOMER_RULE_TFA = + T.let( + :CUSTOMER_RULE_TFA, + Lithic::AuthRules::ReportStats::Example::Action::RequireTfaAction::Reason::TaggedSymbol + ) + DEVICE_HOST_CARD_EMULATION = + T.let( + :DEVICE_HOST_CARD_EMULATION, + Lithic::AuthRules::ReportStats::Example::Action::RequireTfaAction::Reason::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::AuthRules::ReportStats::Example::Action::RequireTfaAction::Reason::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class ApproveActionACH < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::AuthRules::ReportStats::Example::Action::ApproveActionACH, + Lithic::Internal::AnyHash + ) + end + + # Approve the ACH transaction + sig do + returns( + Lithic::AuthRules::ReportStats::Example::Action::ApproveActionACH::Type::TaggedSymbol + ) + end + attr_accessor :type + + sig do + params( + type: + Lithic::AuthRules::ReportStats::Example::Action::ApproveActionACH::Type::OrSymbol + ).returns(T.attached_class) + end + def self.new( + # Approve the ACH transaction + type: + ) + end + + sig do + override.returns( + { + type: + Lithic::AuthRules::ReportStats::Example::Action::ApproveActionACH::Type::TaggedSymbol + } + ) + end + def to_hash + end + + # Approve the ACH transaction + module Type + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Lithic::AuthRules::ReportStats::Example::Action::ApproveActionACH::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + APPROVE = + T.let( + :APPROVE, + Lithic::AuthRules::ReportStats::Example::Action::ApproveActionACH::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::AuthRules::ReportStats::Example::Action::ApproveActionACH::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class ReturnAction < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction, + Lithic::Internal::AnyHash + ) + end + + # NACHA return code to use when returning the transaction. Note that the list of + # available return codes is subject to an allowlist configured at the program + # level + sig do + returns( + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + end + attr_accessor :code + + # Return the ACH transaction + sig do + returns( + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Type::TaggedSymbol + ) + end + attr_accessor :type + + sig do + params( + code: + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::OrSymbol, + type: + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Type::OrSymbol + ).returns(T.attached_class) + end + def self.new( + # NACHA return code to use when returning the transaction. Note that the list of + # available return codes is subject to an allowlist configured at the program + # level + code:, + # Return the ACH transaction + type: + ) + end + + sig do + override.returns( + { + code: + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol, + type: + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Type::TaggedSymbol + } + ) + end + def to_hash + end + + # NACHA return code to use when returning the transaction. Note that the list of + # available return codes is subject to an allowlist configured at the program + # level + module Code + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + R01 = + T.let( + :R01, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R02 = + T.let( + :R02, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R03 = + T.let( + :R03, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R04 = + T.let( + :R04, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R05 = + T.let( + :R05, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R06 = + T.let( + :R06, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R07 = + T.let( + :R07, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R08 = + T.let( + :R08, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R09 = + T.let( + :R09, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R10 = + T.let( + :R10, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R11 = + T.let( + :R11, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R12 = + T.let( + :R12, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R13 = + T.let( + :R13, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R14 = + T.let( + :R14, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R15 = + T.let( + :R15, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R16 = + T.let( + :R16, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R17 = + T.let( + :R17, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R18 = + T.let( + :R18, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R19 = + T.let( + :R19, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R20 = + T.let( + :R20, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R21 = + T.let( + :R21, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R22 = + T.let( + :R22, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R23 = + T.let( + :R23, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R24 = + T.let( + :R24, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R25 = + T.let( + :R25, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R26 = + T.let( + :R26, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R27 = + T.let( + :R27, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R28 = + T.let( + :R28, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R29 = + T.let( + :R29, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R30 = + T.let( + :R30, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R31 = + T.let( + :R31, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R32 = + T.let( + :R32, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R33 = + T.let( + :R33, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R34 = + T.let( + :R34, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R35 = + T.let( + :R35, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R36 = + T.let( + :R36, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R37 = + T.let( + :R37, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R38 = + T.let( + :R38, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R39 = + T.let( + :R39, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R40 = + T.let( + :R40, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R41 = + T.let( + :R41, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R42 = + T.let( + :R42, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R43 = + T.let( + :R43, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R44 = + T.let( + :R44, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R45 = + T.let( + :R45, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R46 = + T.let( + :R46, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R47 = + T.let( + :R47, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R50 = + T.let( + :R50, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R51 = + T.let( + :R51, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R52 = + T.let( + :R52, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R53 = + T.let( + :R53, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R61 = + T.let( + :R61, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R62 = + T.let( + :R62, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R67 = + T.let( + :R67, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R68 = + T.let( + :R68, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R69 = + T.let( + :R69, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R70 = + T.let( + :R70, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R71 = + T.let( + :R71, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R72 = + T.let( + :R72, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R73 = + T.let( + :R73, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R74 = + T.let( + :R74, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R75 = + T.let( + :R75, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R76 = + T.let( + :R76, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R77 = + T.let( + :R77, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R80 = + T.let( + :R80, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R81 = + T.let( + :R81, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R82 = + T.let( + :R82, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R83 = + T.let( + :R83, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R84 = + T.let( + :R84, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + R85 = + T.let( + :R85, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Code::TaggedSymbol + ] + ) + end + def self.values + end + end + + # Return the ACH transaction + module Type + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + RETURN = + T.let( + :RETURN, + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + sig do + override.returns( + T::Array[ + Lithic::AuthRules::ReportStats::Example::Action::Variants + ] + ) + end + def self.variants + end + end + + # The decision made by the rule for this event. + module Decision + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Lithic::AuthRules::ReportStats::Example::Decision) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + APPROVED = + T.let( + :APPROVED, + Lithic::AuthRules::ReportStats::Example::Decision::TaggedSymbol + ) + DECLINED = + T.let( + :DECLINED, + Lithic::AuthRules::ReportStats::Example::Decision::TaggedSymbol + ) + CHALLENGED = + T.let( + :CHALLENGED, + Lithic::AuthRules::ReportStats::Example::Decision::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::AuthRules::ReportStats::Example::Decision::TaggedSymbol + ] + ) + end + def self.values + end + end + end + end + end + end +end diff --git a/rbi/lithic/models/auth_rules/v2/backtest_results.rbi b/rbi/lithic/models/auth_rules/v2/backtest_results.rbi index cd0b6d26..aa798489 100644 --- a/rbi/lithic/models/auth_rules/v2/backtest_results.rbi +++ b/rbi/lithic/models/auth_rules/v2/backtest_results.rbi @@ -80,22 +80,24 @@ module Lithic ) end - sig { returns(T.nilable(Lithic::AuthRules::RuleStats)) } + sig { returns(T.nilable(Lithic::AuthRules::BacktestStats)) } attr_reader :current_version sig do params( - current_version: T.nilable(Lithic::AuthRules::RuleStats::OrHash) + current_version: + T.nilable(Lithic::AuthRules::BacktestStats::OrHash) ).void end attr_writer :current_version - sig { returns(T.nilable(Lithic::AuthRules::RuleStats)) } + sig { returns(T.nilable(Lithic::AuthRules::BacktestStats)) } attr_reader :draft_version sig do params( - draft_version: T.nilable(Lithic::AuthRules::RuleStats::OrHash) + draft_version: + T.nilable(Lithic::AuthRules::BacktestStats::OrHash) ).void end attr_writer :draft_version @@ -103,8 +105,9 @@ module Lithic sig do params( current_version: - T.nilable(Lithic::AuthRules::RuleStats::OrHash), - draft_version: T.nilable(Lithic::AuthRules::RuleStats::OrHash) + T.nilable(Lithic::AuthRules::BacktestStats::OrHash), + draft_version: + T.nilable(Lithic::AuthRules::BacktestStats::OrHash) ).returns(T.attached_class) end def self.new(current_version: nil, draft_version: nil) @@ -113,8 +116,8 @@ module Lithic sig do override.returns( { - current_version: T.nilable(Lithic::AuthRules::RuleStats), - draft_version: T.nilable(Lithic::AuthRules::RuleStats) + current_version: T.nilable(Lithic::AuthRules::BacktestStats), + draft_version: T.nilable(Lithic::AuthRules::BacktestStats) } ) end diff --git a/rbi/lithic/models/auth_rules/v2_list_results_params.rbi b/rbi/lithic/models/auth_rules/v2_list_results_params.rbi index 0f20ffb2..345dc2d5 100644 --- a/rbi/lithic/models/auth_rules/v2_list_results_params.rbi +++ b/rbi/lithic/models/auth_rules/v2_list_results_params.rbi @@ -22,6 +22,22 @@ module Lithic sig { params(auth_rule_token: String).void } attr_writer :auth_rule_token + # Date string in RFC 3339 format. Only events evaluated after the specified time + # will be included. UTC time zone. + sig { returns(T.nilable(Time)) } + attr_reader :begin_ + + sig { params(begin_: Time).void } + attr_writer :begin_ + + # Date string in RFC 3339 format. Only events evaluated before the specified time + # will be included. UTC time zone. + sig { returns(T.nilable(Time)) } + attr_reader :end_ + + sig { params(end_: Time).void } + attr_writer :end_ + # A cursor representing an item's token before which a page of results should end. # Used to retrieve the previous page of results before this item. sig { returns(T.nilable(String)) } @@ -63,6 +79,8 @@ module Lithic sig do params( auth_rule_token: String, + begin_: Time, + end_: Time, ending_before: String, event_token: String, has_actions: T::Boolean, @@ -74,6 +92,12 @@ module Lithic def self.new( # Filter by Auth Rule token auth_rule_token: nil, + # Date string in RFC 3339 format. Only events evaluated after the specified time + # will be included. UTC time zone. + begin_: nil, + # Date string in RFC 3339 format. Only events evaluated before the specified time + # will be included. UTC time zone. + end_: nil, # A cursor representing an item's token before which a page of results should end. # Used to retrieve the previous page of results before this item. ending_before: nil, @@ -95,6 +119,8 @@ module Lithic override.returns( { auth_rule_token: String, + begin_: Time, + end_: Time, ending_before: String, event_token: String, has_actions: T::Boolean, diff --git a/rbi/lithic/models/auth_rules/v2_list_results_response.rbi b/rbi/lithic/models/auth_rules/v2_list_results_response.rbi index ec17e4ee..f74c56f0 100644 --- a/rbi/lithic/models/auth_rules/v2_list_results_response.rbi +++ b/rbi/lithic/models/auth_rules/v2_list_results_response.rbi @@ -34,7 +34,7 @@ module Lithic sig do returns( T::Array[ - Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::Variants ] ) end @@ -73,7 +73,10 @@ module Lithic token: String, actions: T::Array[ - Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::OrHash + T.any( + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::OrHash, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::ChallengeActionAuthorization::OrHash + ) ], auth_rule_token: String, evaluation_time: Time, @@ -110,7 +113,7 @@ module Lithic token: String, actions: T::Array[ - Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::Variants ], auth_rule_token: String, evaluation_time: Time, @@ -125,88 +128,508 @@ module Lithic def to_hash end - class Action < Lithic::Internal::Type::BaseModel - OrHash = + module Action + extend Lithic::Internal::Type::Union + + Variants = T.type_alias do T.any( - Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action, - Lithic::Internal::AnyHash + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::ChallengeActionAuthorization ) end - sig do - returns( - Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::Type::TaggedSymbol - ) - end - attr_accessor :type + class DeclineActionAuthorization < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization, + Lithic::Internal::AnyHash + ) + end - # Optional explanation for why this action was taken - sig { returns(T.nilable(String)) } - attr_reader :explanation + # The detailed result code explaining the specific reason for the decline + sig do + returns( + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + end + attr_accessor :code - sig { params(explanation: String).void } - attr_writer :explanation + sig do + returns( + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Type::TaggedSymbol + ) + end + attr_accessor :type - sig do - params( - type: - Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::Type::OrSymbol, - explanation: String - ).returns(T.attached_class) - end - def self.new( - type:, # Optional explanation for why this action was taken - explanation: nil - ) - end + sig { returns(T.nilable(String)) } + attr_reader :explanation - sig do - override.returns( - { + sig { params(explanation: String).void } + attr_writer :explanation + + sig do + params( + code: + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::OrSymbol, type: - Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::Type::TaggedSymbol, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Type::OrSymbol, explanation: String - } + ).returns(T.attached_class) + end + def self.new( + # The detailed result code explaining the specific reason for the decline + code:, + type:, + # Optional explanation for why this action was taken + explanation: nil ) - end - def to_hash - end + end - module Type - extend Lithic::Internal::Type::Enum + sig do + override.returns( + { + code: + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol, + type: + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Type::TaggedSymbol, + explanation: String + } + ) + end + def to_hash + end - TaggedSymbol = + # The detailed result code explaining the specific reason for the decline + module Code + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ACCOUNT_DAILY_SPEND_LIMIT_EXCEEDED = + T.let( + :ACCOUNT_DAILY_SPEND_LIMIT_EXCEEDED, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + ACCOUNT_DELINQUENT = + T.let( + :ACCOUNT_DELINQUENT, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + ACCOUNT_INACTIVE = + T.let( + :ACCOUNT_INACTIVE, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + ACCOUNT_LIFETIME_SPEND_LIMIT_EXCEEDED = + T.let( + :ACCOUNT_LIFETIME_SPEND_LIMIT_EXCEEDED, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + ACCOUNT_MONTHLY_SPEND_LIMIT_EXCEEDED = + T.let( + :ACCOUNT_MONTHLY_SPEND_LIMIT_EXCEEDED, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + ACCOUNT_PAUSED = + T.let( + :ACCOUNT_PAUSED, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + ACCOUNT_UNDER_REVIEW = + T.let( + :ACCOUNT_UNDER_REVIEW, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + ADDRESS_INCORRECT = + T.let( + :ADDRESS_INCORRECT, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + APPROVED = + T.let( + :APPROVED, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + AUTH_RULE_ALLOWED_COUNTRY = + T.let( + :AUTH_RULE_ALLOWED_COUNTRY, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + AUTH_RULE_ALLOWED_MCC = + T.let( + :AUTH_RULE_ALLOWED_MCC, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + AUTH_RULE_BLOCKED_COUNTRY = + T.let( + :AUTH_RULE_BLOCKED_COUNTRY, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + AUTH_RULE_BLOCKED_MCC = + T.let( + :AUTH_RULE_BLOCKED_MCC, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + AUTH_RULE = + T.let( + :AUTH_RULE, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + CARD_CLOSED = + T.let( + :CARD_CLOSED, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + CARD_CRYPTOGRAM_VALIDATION_FAILURE = + T.let( + :CARD_CRYPTOGRAM_VALIDATION_FAILURE, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + CARD_EXPIRED = + T.let( + :CARD_EXPIRED, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + CARD_EXPIRY_DATE_INCORRECT = + T.let( + :CARD_EXPIRY_DATE_INCORRECT, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + CARD_INVALID = + T.let( + :CARD_INVALID, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + CARD_NOT_ACTIVATED = + T.let( + :CARD_NOT_ACTIVATED, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + CARD_PAUSED = + T.let( + :CARD_PAUSED, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + CARD_PIN_INCORRECT = + T.let( + :CARD_PIN_INCORRECT, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + CARD_RESTRICTED = + T.let( + :CARD_RESTRICTED, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + CARD_SECURITY_CODE_INCORRECT = + T.let( + :CARD_SECURITY_CODE_INCORRECT, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + CARD_SPEND_LIMIT_EXCEEDED = + T.let( + :CARD_SPEND_LIMIT_EXCEEDED, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + CONTACT_CARD_ISSUER = + T.let( + :CONTACT_CARD_ISSUER, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + CUSTOMER_ASA_TIMEOUT = + T.let( + :CUSTOMER_ASA_TIMEOUT, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + CUSTOM_ASA_RESULT = + T.let( + :CUSTOM_ASA_RESULT, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + DECLINED = + T.let( + :DECLINED, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + DO_NOT_HONOR = + T.let( + :DO_NOT_HONOR, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + DRIVER_NUMBER_INVALID = + T.let( + :DRIVER_NUMBER_INVALID, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + FORMAT_ERROR = + T.let( + :FORMAT_ERROR, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + INSUFFICIENT_FUNDING_SOURCE_BALANCE = + T.let( + :INSUFFICIENT_FUNDING_SOURCE_BALANCE, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + INSUFFICIENT_FUNDS = + T.let( + :INSUFFICIENT_FUNDS, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + LITHIC_SYSTEM_ERROR = + T.let( + :LITHIC_SYSTEM_ERROR, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + LITHIC_SYSTEM_RATE_LIMIT = + T.let( + :LITHIC_SYSTEM_RATE_LIMIT, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + MALFORMED_ASA_RESPONSE = + T.let( + :MALFORMED_ASA_RESPONSE, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + MERCHANT_INVALID = + T.let( + :MERCHANT_INVALID, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + MERCHANT_LOCKED_CARD_ATTEMPTED_ELSEWHERE = + T.let( + :MERCHANT_LOCKED_CARD_ATTEMPTED_ELSEWHERE, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + MERCHANT_NOT_PERMITTED = + T.let( + :MERCHANT_NOT_PERMITTED, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + OVER_REVERSAL_ATTEMPTED = + T.let( + :OVER_REVERSAL_ATTEMPTED, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + PIN_BLOCKED = + T.let( + :PIN_BLOCKED, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + PROGRAM_CARD_SPEND_LIMIT_EXCEEDED = + T.let( + :PROGRAM_CARD_SPEND_LIMIT_EXCEEDED, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + PROGRAM_SUSPENDED = + T.let( + :PROGRAM_SUSPENDED, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + PROGRAM_USAGE_RESTRICTION = + T.let( + :PROGRAM_USAGE_RESTRICTION, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + REVERSAL_UNMATCHED = + T.let( + :REVERSAL_UNMATCHED, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + SECURITY_VIOLATION = + T.let( + :SECURITY_VIOLATION, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + SINGLE_USE_CARD_REATTEMPTED = + T.let( + :SINGLE_USE_CARD_REATTEMPTED, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + SUSPECTED_FRAUD = + T.let( + :SUSPECTED_FRAUD, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + TRANSACTION_INVALID = + T.let( + :TRANSACTION_INVALID, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + TRANSACTION_NOT_PERMITTED_TO_ACQUIRER_OR_TERMINAL = + T.let( + :TRANSACTION_NOT_PERMITTED_TO_ACQUIRER_OR_TERMINAL, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + TRANSACTION_NOT_PERMITTED_TO_ISSUER_OR_CARDHOLDER = + T.let( + :TRANSACTION_NOT_PERMITTED_TO_ISSUER_OR_CARDHOLDER, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + TRANSACTION_PREVIOUSLY_COMPLETED = + T.let( + :TRANSACTION_PREVIOUSLY_COMPLETED, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + UNAUTHORIZED_MERCHANT = + T.let( + :UNAUTHORIZED_MERCHANT, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + VEHICLE_NUMBER_INVALID = + T.let( + :VEHICLE_NUMBER_INVALID, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + CARDHOLDER_CHALLENGED = + T.let( + :CARDHOLDER_CHALLENGED, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + CARDHOLDER_CHALLENGE_FAILED = + T.let( + :CARDHOLDER_CHALLENGE_FAILED, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol + ] + ) + end + def self.values + end + end + + module Type + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + DECLINE = + T.let( + :DECLINE, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class ChallengeActionAuthorization < Lithic::Internal::Type::BaseModel + OrHash = T.type_alias do - T.all( - Symbol, - Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::Type + T.any( + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::ChallengeActionAuthorization, + Lithic::Internal::AnyHash ) end - OrSymbol = T.type_alias { T.any(Symbol, String) } - DECLINE = - T.let( - :DECLINE, - Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::Type::TaggedSymbol - ) - CHALLENGE = - T.let( - :CHALLENGE, - Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::Type::TaggedSymbol + sig do + returns( + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::ChallengeActionAuthorization::Type::TaggedSymbol ) + end + attr_accessor :type + + # Optional explanation for why this action was taken + sig { returns(T.nilable(String)) } + attr_reader :explanation + + sig { params(explanation: String).void } + attr_writer :explanation + + sig do + params( + type: + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::ChallengeActionAuthorization::Type::OrSymbol, + explanation: String + ).returns(T.attached_class) + end + def self.new( + type:, + # Optional explanation for why this action was taken + explanation: nil + ) + end sig do override.returns( - T::Array[ - Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::Type::TaggedSymbol - ] + { + type: + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::ChallengeActionAuthorization::Type::TaggedSymbol, + explanation: String + } ) end - def self.values + def to_hash + end + + module Type + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::ChallengeActionAuthorization::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + CHALLENGE = + T.let( + :CHALLENGE, + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::ChallengeActionAuthorization::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::ChallengeActionAuthorization::Type::TaggedSymbol + ] + ) + end + def self.values + end end end + + sig do + override.returns( + T::Array[ + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::Variants + ] + ) + end + def self.variants + end end # The state of the Auth Rule @@ -530,7 +953,7 @@ module Lithic actions: T::Array[ T.any( - Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction::OrHash, + Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineActionTokenization::OrHash, Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::RequireTfaAction::OrHash ) ], @@ -590,16 +1013,16 @@ module Lithic Variants = T.type_alias do T.any( - Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction, + Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineActionTokenization, Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::RequireTfaAction ) end - class DeclineAction < Lithic::Internal::Type::BaseModel + class DeclineActionTokenization < Lithic::Internal::Type::BaseModel OrHash = T.type_alias do T.any( - Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction, + Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineActionTokenization, Lithic::Internal::AnyHash ) end @@ -607,7 +1030,7 @@ module Lithic # Decline the tokenization request sig do returns( - Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction::Type::TaggedSymbol + Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineActionTokenization::Type::TaggedSymbol ) end attr_accessor :type @@ -623,7 +1046,7 @@ module Lithic sig do returns( T.nilable( - Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction::Reason::TaggedSymbol + Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineActionTokenization::Reason::TaggedSymbol ) ) end @@ -632,7 +1055,7 @@ module Lithic sig do params( reason: - Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction::Reason::OrSymbol + Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineActionTokenization::Reason::OrSymbol ).void end attr_writer :reason @@ -640,10 +1063,10 @@ module Lithic sig do params( type: - Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction::Type::OrSymbol, + Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineActionTokenization::Type::OrSymbol, explanation: String, reason: - Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction::Reason::OrSymbol + Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineActionTokenization::Reason::OrSymbol ).returns(T.attached_class) end def self.new( @@ -660,10 +1083,10 @@ module Lithic override.returns( { type: - Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction::Type::TaggedSymbol, + Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineActionTokenization::Type::TaggedSymbol, explanation: String, reason: - Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction::Reason::TaggedSymbol + Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineActionTokenization::Reason::TaggedSymbol } ) end @@ -678,7 +1101,7 @@ module Lithic T.type_alias do T.all( Symbol, - Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction::Type + Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineActionTokenization::Type ) end OrSymbol = T.type_alias { T.any(Symbol, String) } @@ -686,13 +1109,13 @@ module Lithic DECLINE = T.let( :DECLINE, - Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction::Type::TaggedSymbol + Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineActionTokenization::Type::TaggedSymbol ) sig do override.returns( T::Array[ - Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction::Type::TaggedSymbol + Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineActionTokenization::Type::TaggedSymbol ] ) end @@ -708,7 +1131,7 @@ module Lithic T.type_alias do T.all( Symbol, - Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction::Reason + Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineActionTokenization::Reason ) end OrSymbol = T.type_alias { T.any(Symbol, String) } @@ -716,73 +1139,73 @@ module Lithic ACCOUNT_SCORE_1 = T.let( :ACCOUNT_SCORE_1, - Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction::Reason::TaggedSymbol + Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineActionTokenization::Reason::TaggedSymbol ) DEVICE_SCORE_1 = T.let( :DEVICE_SCORE_1, - Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction::Reason::TaggedSymbol + Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineActionTokenization::Reason::TaggedSymbol ) ALL_WALLET_DECLINE_REASONS_PRESENT = T.let( :ALL_WALLET_DECLINE_REASONS_PRESENT, - Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction::Reason::TaggedSymbol + Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineActionTokenization::Reason::TaggedSymbol ) WALLET_RECOMMENDED_DECISION_RED = T.let( :WALLET_RECOMMENDED_DECISION_RED, - Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction::Reason::TaggedSymbol + Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineActionTokenization::Reason::TaggedSymbol ) CVC_MISMATCH = T.let( :CVC_MISMATCH, - Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction::Reason::TaggedSymbol + Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineActionTokenization::Reason::TaggedSymbol ) CARD_EXPIRY_MONTH_MISMATCH = T.let( :CARD_EXPIRY_MONTH_MISMATCH, - Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction::Reason::TaggedSymbol + Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineActionTokenization::Reason::TaggedSymbol ) CARD_EXPIRY_YEAR_MISMATCH = T.let( :CARD_EXPIRY_YEAR_MISMATCH, - Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction::Reason::TaggedSymbol + Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineActionTokenization::Reason::TaggedSymbol ) CARD_INVALID_STATE = T.let( :CARD_INVALID_STATE, - Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction::Reason::TaggedSymbol + Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineActionTokenization::Reason::TaggedSymbol ) CUSTOMER_RED_PATH = T.let( :CUSTOMER_RED_PATH, - Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction::Reason::TaggedSymbol + Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineActionTokenization::Reason::TaggedSymbol ) INVALID_CUSTOMER_RESPONSE = T.let( :INVALID_CUSTOMER_RESPONSE, - Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction::Reason::TaggedSymbol + Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineActionTokenization::Reason::TaggedSymbol ) NETWORK_FAILURE = T.let( :NETWORK_FAILURE, - Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction::Reason::TaggedSymbol + Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineActionTokenization::Reason::TaggedSymbol ) GENERIC_DECLINE = T.let( :GENERIC_DECLINE, - Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction::Reason::TaggedSymbol + Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineActionTokenization::Reason::TaggedSymbol ) DIGITAL_CARD_ART_REQUIRED = T.let( :DIGITAL_CARD_ART_REQUIRED, - Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction::Reason::TaggedSymbol + Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineActionTokenization::Reason::TaggedSymbol ) sig do override.returns( T::Array[ - Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction::Reason::TaggedSymbol + Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineActionTokenization::Reason::TaggedSymbol ] ) end @@ -1105,7 +1528,7 @@ module Lithic actions: T::Array[ T.any( - Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ApproveAction::OrHash, + Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ApproveActionACH::OrHash, Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ReturnAction::OrHash ) ], @@ -1167,16 +1590,16 @@ module Lithic Variants = T.type_alias do T.any( - Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ApproveAction, + Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ApproveActionACH, Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ReturnAction ) end - class ApproveAction < Lithic::Internal::Type::BaseModel + class ApproveActionACH < Lithic::Internal::Type::BaseModel OrHash = T.type_alias do T.any( - Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ApproveAction, + Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ApproveActionACH, Lithic::Internal::AnyHash ) end @@ -1184,7 +1607,7 @@ module Lithic # Approve the ACH transaction sig do returns( - Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ApproveAction::Type::TaggedSymbol + Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ApproveActionACH::Type::TaggedSymbol ) end attr_accessor :type @@ -1199,7 +1622,7 @@ module Lithic sig do params( type: - Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ApproveAction::Type::OrSymbol, + Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ApproveActionACH::Type::OrSymbol, explanation: String ).returns(T.attached_class) end @@ -1215,7 +1638,7 @@ module Lithic override.returns( { type: - Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ApproveAction::Type::TaggedSymbol, + Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ApproveActionACH::Type::TaggedSymbol, explanation: String } ) @@ -1231,7 +1654,7 @@ module Lithic T.type_alias do T.all( Symbol, - Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ApproveAction::Type + Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ApproveActionACH::Type ) end OrSymbol = T.type_alias { T.any(Symbol, String) } @@ -1239,13 +1662,13 @@ module Lithic APPROVE = T.let( :APPROVE, - Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ApproveAction::Type::TaggedSymbol + Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ApproveActionACH::Type::TaggedSymbol ) sig do override.returns( T::Array[ - Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ApproveAction::Type::TaggedSymbol + Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ApproveActionACH::Type::TaggedSymbol ] ) end diff --git a/rbi/lithic/models/auth_rules/v2_retrieve_report_response.rbi b/rbi/lithic/models/auth_rules/v2_retrieve_report_response.rbi index 811df53e..1e1f2041 100644 --- a/rbi/lithic/models/auth_rules/v2_retrieve_report_response.rbi +++ b/rbi/lithic/models/auth_rules/v2_retrieve_report_response.rbi @@ -83,13 +83,13 @@ module Lithic end # Detailed statistics for the current version of the rule. - sig { returns(T.nilable(Lithic::AuthRules::RuleStats)) } + sig { returns(T.nilable(Lithic::AuthRules::ReportStats)) } attr_reader :current_version_statistics sig do params( current_version_statistics: - T.nilable(Lithic::AuthRules::RuleStats::OrHash) + T.nilable(Lithic::AuthRules::ReportStats::OrHash) ).void end attr_writer :current_version_statistics @@ -99,13 +99,13 @@ module Lithic attr_accessor :date # Detailed statistics for the draft version of the rule. - sig { returns(T.nilable(Lithic::AuthRules::RuleStats)) } + sig { returns(T.nilable(Lithic::AuthRules::ReportStats)) } attr_reader :draft_version_statistics sig do params( draft_version_statistics: - T.nilable(Lithic::AuthRules::RuleStats::OrHash) + T.nilable(Lithic::AuthRules::ReportStats::OrHash) ).void end attr_writer :draft_version_statistics @@ -113,10 +113,10 @@ module Lithic sig do params( current_version_statistics: - T.nilable(Lithic::AuthRules::RuleStats::OrHash), + T.nilable(Lithic::AuthRules::ReportStats::OrHash), date: Date, draft_version_statistics: - T.nilable(Lithic::AuthRules::RuleStats::OrHash) + T.nilable(Lithic::AuthRules::ReportStats::OrHash) ).returns(T.attached_class) end def self.new( @@ -133,10 +133,10 @@ module Lithic override.returns( { current_version_statistics: - T.nilable(Lithic::AuthRules::RuleStats), + T.nilable(Lithic::AuthRules::ReportStats), date: Date, draft_version_statistics: - T.nilable(Lithic::AuthRules::RuleStats) + T.nilable(Lithic::AuthRules::ReportStats) } ) end diff --git a/rbi/lithic/resources/auth_rules/v2.rbi b/rbi/lithic/resources/auth_rules/v2.rbi index 54f637da..c32be89e 100644 --- a/rbi/lithic/resources/auth_rules/v2.rbi +++ b/rbi/lithic/resources/auth_rules/v2.rbi @@ -209,6 +209,8 @@ module Lithic sig do params( auth_rule_token: String, + begin_: Time, + end_: Time, ending_before: String, event_token: String, has_actions: T::Boolean, @@ -224,6 +226,12 @@ module Lithic def list_results( # Filter by Auth Rule token auth_rule_token: nil, + # Date string in RFC 3339 format. Only events evaluated after the specified time + # will be included. UTC time zone. + begin_: nil, + # Date string in RFC 3339 format. Only events evaluated before the specified time + # will be included. UTC time zone. + end_: nil, # A cursor representing an item's token before which a page of results should end. # Used to retrieve the previous page of results before this item. ending_before: nil, diff --git a/sig/lithic/models/auth_rules/rule_stats.rbs b/sig/lithic/models/auth_rules/backtest_stats.rbs similarity index 61% rename from sig/lithic/models/auth_rules/rule_stats.rbs rename to sig/lithic/models/auth_rules/backtest_stats.rbs index 76cf0d3c..15570242 100644 --- a/sig/lithic/models/auth_rules/rule_stats.rbs +++ b/sig/lithic/models/auth_rules/backtest_stats.rbs @@ -1,16 +1,16 @@ module Lithic module Models module AuthRules - type rule_stats = + type backtest_stats = { approved: Integer, challenged: Integer, declined: Integer, - examples: ::Array[Lithic::AuthRules::RuleStats::Example], + examples: ::Array[Lithic::AuthRules::BacktestStats::Example], version: Integer } - class RuleStats < Lithic::Internal::Type::BaseModel + class BacktestStats < Lithic::Internal::Type::BaseModel attr_reader approved: Integer? def approved=: (Integer) -> Integer @@ -23,11 +23,11 @@ module Lithic def declined=: (Integer) -> Integer - attr_reader examples: ::Array[Lithic::AuthRules::RuleStats::Example]? + attr_reader examples: ::Array[Lithic::AuthRules::BacktestStats::Example]? def examples=: ( - ::Array[Lithic::AuthRules::RuleStats::Example] - ) -> ::Array[Lithic::AuthRules::RuleStats::Example] + ::Array[Lithic::AuthRules::BacktestStats::Example] + ) -> ::Array[Lithic::AuthRules::BacktestStats::Example] attr_reader version: Integer? @@ -37,7 +37,7 @@ module Lithic ?approved: Integer, ?challenged: Integer, ?declined: Integer, - ?examples: ::Array[Lithic::AuthRules::RuleStats::Example], + ?examples: ::Array[Lithic::AuthRules::BacktestStats::Example], ?version: Integer ) -> void @@ -45,28 +45,23 @@ module Lithic approved: Integer, challenged: Integer, declined: Integer, - examples: ::Array[Lithic::AuthRules::RuleStats::Example], + examples: ::Array[Lithic::AuthRules::BacktestStats::Example], version: Integer } type example = { - approved: bool, - decision: Lithic::Models::AuthRules::RuleStats::Example::decision, + decision: Lithic::Models::AuthRules::BacktestStats::Example::decision, event_token: String, timestamp: Time } class Example < Lithic::Internal::Type::BaseModel - attr_reader approved: bool? - - def approved=: (bool) -> bool - - attr_reader decision: Lithic::Models::AuthRules::RuleStats::Example::decision? + attr_reader decision: Lithic::Models::AuthRules::BacktestStats::Example::decision? def decision=: ( - Lithic::Models::AuthRules::RuleStats::Example::decision - ) -> Lithic::Models::AuthRules::RuleStats::Example::decision + Lithic::Models::AuthRules::BacktestStats::Example::decision + ) -> Lithic::Models::AuthRules::BacktestStats::Example::decision attr_reader event_token: String? @@ -77,15 +72,13 @@ module Lithic def timestamp=: (Time) -> Time def initialize: ( - ?approved: bool, - ?decision: Lithic::Models::AuthRules::RuleStats::Example::decision, + ?decision: Lithic::Models::AuthRules::BacktestStats::Example::decision, ?event_token: String, ?timestamp: Time ) -> void def to_hash: -> { - approved: bool, - decision: Lithic::Models::AuthRules::RuleStats::Example::decision, + decision: Lithic::Models::AuthRules::BacktestStats::Example::decision, event_token: String, timestamp: Time } @@ -99,7 +92,7 @@ module Lithic DECLINED: :DECLINED CHALLENGED: :CHALLENGED - def self?.values: -> ::Array[Lithic::Models::AuthRules::RuleStats::Example::decision] + def self?.values: -> ::Array[Lithic::Models::AuthRules::BacktestStats::Example::decision] end end end diff --git a/sig/lithic/models/auth_rules/conditional_ach_action_parameters.rbs b/sig/lithic/models/auth_rules/conditional_ach_action_parameters.rbs index 6958e51a..73541612 100644 --- a/sig/lithic/models/auth_rules/conditional_ach_action_parameters.rbs +++ b/sig/lithic/models/auth_rules/conditional_ach_action_parameters.rbs @@ -23,26 +23,26 @@ module Lithic } type action = - Lithic::AuthRules::ConditionalACHActionParameters::Action::ApproveAction + Lithic::AuthRules::ConditionalACHActionParameters::Action::ApproveActionACH | Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction module Action extend Lithic::Internal::Type::Union - type approve_action = + type approve_action_ach = { - type: Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ApproveAction::type_ + type: Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ApproveActionACH::type_ } - class ApproveAction < Lithic::Internal::Type::BaseModel - attr_accessor type: Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ApproveAction::type_ + class ApproveActionACH < Lithic::Internal::Type::BaseModel + attr_accessor type: Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ApproveActionACH::type_ def initialize: ( - type: Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ApproveAction::type_ + type: Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ApproveActionACH::type_ ) -> void def to_hash: -> { - type: Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ApproveAction::type_ + type: Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ApproveActionACH::type_ } type type_ = :APPROVE @@ -52,7 +52,7 @@ module Lithic APPROVE: :APPROVE - def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ApproveAction::type_] + def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ApproveActionACH::type_] end end diff --git a/sig/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbs b/sig/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbs index b435ba96..375a15d4 100644 --- a/sig/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbs +++ b/sig/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbs @@ -23,35 +23,35 @@ module Lithic } type action = - Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction + Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineActionTokenization | Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::RequireTfaAction module Action extend Lithic::Internal::Type::Union - type decline_action = + type decline_action_tokenization = { - type: Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction::type_, - reason: Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction::reason + type: Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineActionTokenization::type_, + reason: Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineActionTokenization::reason } - class DeclineAction < Lithic::Internal::Type::BaseModel - attr_accessor type: Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction::type_ + class DeclineActionTokenization < Lithic::Internal::Type::BaseModel + attr_accessor type: Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineActionTokenization::type_ - attr_reader reason: Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction::reason? + attr_reader reason: Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineActionTokenization::reason? def reason=: ( - Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction::reason - ) -> Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction::reason + Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineActionTokenization::reason + ) -> Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineActionTokenization::reason def initialize: ( - type: Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction::type_, - ?reason: Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction::reason + type: Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineActionTokenization::type_, + ?reason: Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineActionTokenization::reason ) -> void def to_hash: -> { - type: Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction::type_, - reason: Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction::reason + type: Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineActionTokenization::type_, + reason: Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineActionTokenization::reason } type type_ = :DECLINE @@ -61,7 +61,7 @@ module Lithic DECLINE: :DECLINE - def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction::type_] + def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineActionTokenization::type_] end type reason = @@ -96,7 +96,7 @@ module Lithic GENERIC_DECLINE: :GENERIC_DECLINE DIGITAL_CARD_ART_REQUIRED: :DIGITAL_CARD_ART_REQUIRED - def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction::reason] + def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineActionTokenization::reason] end end diff --git a/sig/lithic/models/auth_rules/report_stats.rbs b/sig/lithic/models/auth_rules/report_stats.rbs new file mode 100644 index 00000000..2b1b84ca --- /dev/null +++ b/sig/lithic/models/auth_rules/report_stats.rbs @@ -0,0 +1,696 @@ +module Lithic + module Models + module AuthRules + type report_stats = + { + action_counts: ::Hash[Symbol, Integer], + approved: Integer, + challenged: Integer, + declined: Integer, + examples: ::Array[Lithic::AuthRules::ReportStats::Example] + } + + class ReportStats < Lithic::Internal::Type::BaseModel + attr_reader action_counts: ::Hash[Symbol, Integer]? + + def action_counts=: (::Hash[Symbol, Integer]) -> ::Hash[Symbol, Integer] + + attr_reader approved: Integer? + + def approved=: (Integer) -> Integer + + attr_reader challenged: Integer? + + def challenged=: (Integer) -> Integer + + attr_reader declined: Integer? + + def declined=: (Integer) -> Integer + + attr_reader examples: ::Array[Lithic::AuthRules::ReportStats::Example]? + + def examples=: ( + ::Array[Lithic::AuthRules::ReportStats::Example] + ) -> ::Array[Lithic::AuthRules::ReportStats::Example] + + def initialize: ( + ?action_counts: ::Hash[Symbol, Integer], + ?approved: Integer, + ?challenged: Integer, + ?declined: Integer, + ?examples: ::Array[Lithic::AuthRules::ReportStats::Example] + ) -> void + + def to_hash: -> { + action_counts: ::Hash[Symbol, Integer], + approved: Integer, + challenged: Integer, + declined: Integer, + examples: ::Array[Lithic::AuthRules::ReportStats::Example] + } + + type example = + { + actions: ::Array[Lithic::Models::AuthRules::ReportStats::Example::action], + approved: bool, + decision: Lithic::Models::AuthRules::ReportStats::Example::decision, + event_token: String, + timestamp: Time + } + + class Example < Lithic::Internal::Type::BaseModel + attr_reader actions: ::Array[Lithic::Models::AuthRules::ReportStats::Example::action]? + + def actions=: ( + ::Array[Lithic::Models::AuthRules::ReportStats::Example::action] + ) -> ::Array[Lithic::Models::AuthRules::ReportStats::Example::action] + + attr_reader approved: bool? + + def approved=: (bool) -> bool + + attr_reader decision: Lithic::Models::AuthRules::ReportStats::Example::decision? + + def decision=: ( + Lithic::Models::AuthRules::ReportStats::Example::decision + ) -> Lithic::Models::AuthRules::ReportStats::Example::decision + + attr_reader event_token: String? + + def event_token=: (String) -> String + + attr_reader timestamp: Time? + + def timestamp=: (Time) -> Time + + def initialize: ( + ?actions: ::Array[Lithic::Models::AuthRules::ReportStats::Example::action], + ?approved: bool, + ?decision: Lithic::Models::AuthRules::ReportStats::Example::decision, + ?event_token: String, + ?timestamp: Time + ) -> void + + def to_hash: -> { + actions: ::Array[Lithic::Models::AuthRules::ReportStats::Example::action], + approved: bool, + decision: Lithic::Models::AuthRules::ReportStats::Example::decision, + event_token: String, + timestamp: Time + } + + type action = + Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization + | Lithic::AuthRules::ReportStats::Example::Action::ChallengeActionAuthorization + | Lithic::AuthRules::ReportStats::Example::Action::ResultAuthentication3DSAction + | Lithic::AuthRules::ReportStats::Example::Action::DeclineActionTokenization + | Lithic::AuthRules::ReportStats::Example::Action::RequireTfaAction + | Lithic::AuthRules::ReportStats::Example::Action::ApproveActionACH + | Lithic::AuthRules::ReportStats::Example::Action::ReturnAction + + module Action + extend Lithic::Internal::Type::Union + + type decline_action_authorization = + { + code: Lithic::Models::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::code, + type: Lithic::Models::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::type_ + } + + class DeclineActionAuthorization < Lithic::Internal::Type::BaseModel + attr_accessor code: Lithic::Models::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::code + + attr_accessor type: Lithic::Models::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::type_ + + def initialize: ( + code: Lithic::Models::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::code, + type: Lithic::Models::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::type_ + ) -> void + + def to_hash: -> { + code: Lithic::Models::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::code, + type: Lithic::Models::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::type_ + } + + type code = + :ACCOUNT_DAILY_SPEND_LIMIT_EXCEEDED + | :ACCOUNT_DELINQUENT + | :ACCOUNT_INACTIVE + | :ACCOUNT_LIFETIME_SPEND_LIMIT_EXCEEDED + | :ACCOUNT_MONTHLY_SPEND_LIMIT_EXCEEDED + | :ACCOUNT_PAUSED + | :ACCOUNT_UNDER_REVIEW + | :ADDRESS_INCORRECT + | :APPROVED + | :AUTH_RULE_ALLOWED_COUNTRY + | :AUTH_RULE_ALLOWED_MCC + | :AUTH_RULE_BLOCKED_COUNTRY + | :AUTH_RULE_BLOCKED_MCC + | :AUTH_RULE + | :CARD_CLOSED + | :CARD_CRYPTOGRAM_VALIDATION_FAILURE + | :CARD_EXPIRED + | :CARD_EXPIRY_DATE_INCORRECT + | :CARD_INVALID + | :CARD_NOT_ACTIVATED + | :CARD_PAUSED + | :CARD_PIN_INCORRECT + | :CARD_RESTRICTED + | :CARD_SECURITY_CODE_INCORRECT + | :CARD_SPEND_LIMIT_EXCEEDED + | :CONTACT_CARD_ISSUER + | :CUSTOMER_ASA_TIMEOUT + | :CUSTOM_ASA_RESULT + | :DECLINED + | :DO_NOT_HONOR + | :DRIVER_NUMBER_INVALID + | :FORMAT_ERROR + | :INSUFFICIENT_FUNDING_SOURCE_BALANCE + | :INSUFFICIENT_FUNDS + | :LITHIC_SYSTEM_ERROR + | :LITHIC_SYSTEM_RATE_LIMIT + | :MALFORMED_ASA_RESPONSE + | :MERCHANT_INVALID + | :MERCHANT_LOCKED_CARD_ATTEMPTED_ELSEWHERE + | :MERCHANT_NOT_PERMITTED + | :OVER_REVERSAL_ATTEMPTED + | :PIN_BLOCKED + | :PROGRAM_CARD_SPEND_LIMIT_EXCEEDED + | :PROGRAM_SUSPENDED + | :PROGRAM_USAGE_RESTRICTION + | :REVERSAL_UNMATCHED + | :SECURITY_VIOLATION + | :SINGLE_USE_CARD_REATTEMPTED + | :SUSPECTED_FRAUD + | :TRANSACTION_INVALID + | :TRANSACTION_NOT_PERMITTED_TO_ACQUIRER_OR_TERMINAL + | :TRANSACTION_NOT_PERMITTED_TO_ISSUER_OR_CARDHOLDER + | :TRANSACTION_PREVIOUSLY_COMPLETED + | :UNAUTHORIZED_MERCHANT + | :VEHICLE_NUMBER_INVALID + | :CARDHOLDER_CHALLENGED + | :CARDHOLDER_CHALLENGE_FAILED + + module Code + extend Lithic::Internal::Type::Enum + + ACCOUNT_DAILY_SPEND_LIMIT_EXCEEDED: :ACCOUNT_DAILY_SPEND_LIMIT_EXCEEDED + ACCOUNT_DELINQUENT: :ACCOUNT_DELINQUENT + ACCOUNT_INACTIVE: :ACCOUNT_INACTIVE + ACCOUNT_LIFETIME_SPEND_LIMIT_EXCEEDED: :ACCOUNT_LIFETIME_SPEND_LIMIT_EXCEEDED + ACCOUNT_MONTHLY_SPEND_LIMIT_EXCEEDED: :ACCOUNT_MONTHLY_SPEND_LIMIT_EXCEEDED + ACCOUNT_PAUSED: :ACCOUNT_PAUSED + ACCOUNT_UNDER_REVIEW: :ACCOUNT_UNDER_REVIEW + ADDRESS_INCORRECT: :ADDRESS_INCORRECT + APPROVED: :APPROVED + AUTH_RULE_ALLOWED_COUNTRY: :AUTH_RULE_ALLOWED_COUNTRY + AUTH_RULE_ALLOWED_MCC: :AUTH_RULE_ALLOWED_MCC + AUTH_RULE_BLOCKED_COUNTRY: :AUTH_RULE_BLOCKED_COUNTRY + AUTH_RULE_BLOCKED_MCC: :AUTH_RULE_BLOCKED_MCC + AUTH_RULE: :AUTH_RULE + CARD_CLOSED: :CARD_CLOSED + CARD_CRYPTOGRAM_VALIDATION_FAILURE: :CARD_CRYPTOGRAM_VALIDATION_FAILURE + CARD_EXPIRED: :CARD_EXPIRED + CARD_EXPIRY_DATE_INCORRECT: :CARD_EXPIRY_DATE_INCORRECT + CARD_INVALID: :CARD_INVALID + CARD_NOT_ACTIVATED: :CARD_NOT_ACTIVATED + CARD_PAUSED: :CARD_PAUSED + CARD_PIN_INCORRECT: :CARD_PIN_INCORRECT + CARD_RESTRICTED: :CARD_RESTRICTED + CARD_SECURITY_CODE_INCORRECT: :CARD_SECURITY_CODE_INCORRECT + CARD_SPEND_LIMIT_EXCEEDED: :CARD_SPEND_LIMIT_EXCEEDED + CONTACT_CARD_ISSUER: :CONTACT_CARD_ISSUER + CUSTOMER_ASA_TIMEOUT: :CUSTOMER_ASA_TIMEOUT + CUSTOM_ASA_RESULT: :CUSTOM_ASA_RESULT + DECLINED: :DECLINED + DO_NOT_HONOR: :DO_NOT_HONOR + DRIVER_NUMBER_INVALID: :DRIVER_NUMBER_INVALID + FORMAT_ERROR: :FORMAT_ERROR + INSUFFICIENT_FUNDING_SOURCE_BALANCE: :INSUFFICIENT_FUNDING_SOURCE_BALANCE + INSUFFICIENT_FUNDS: :INSUFFICIENT_FUNDS + LITHIC_SYSTEM_ERROR: :LITHIC_SYSTEM_ERROR + LITHIC_SYSTEM_RATE_LIMIT: :LITHIC_SYSTEM_RATE_LIMIT + MALFORMED_ASA_RESPONSE: :MALFORMED_ASA_RESPONSE + MERCHANT_INVALID: :MERCHANT_INVALID + MERCHANT_LOCKED_CARD_ATTEMPTED_ELSEWHERE: :MERCHANT_LOCKED_CARD_ATTEMPTED_ELSEWHERE + MERCHANT_NOT_PERMITTED: :MERCHANT_NOT_PERMITTED + OVER_REVERSAL_ATTEMPTED: :OVER_REVERSAL_ATTEMPTED + PIN_BLOCKED: :PIN_BLOCKED + PROGRAM_CARD_SPEND_LIMIT_EXCEEDED: :PROGRAM_CARD_SPEND_LIMIT_EXCEEDED + PROGRAM_SUSPENDED: :PROGRAM_SUSPENDED + PROGRAM_USAGE_RESTRICTION: :PROGRAM_USAGE_RESTRICTION + REVERSAL_UNMATCHED: :REVERSAL_UNMATCHED + SECURITY_VIOLATION: :SECURITY_VIOLATION + SINGLE_USE_CARD_REATTEMPTED: :SINGLE_USE_CARD_REATTEMPTED + SUSPECTED_FRAUD: :SUSPECTED_FRAUD + TRANSACTION_INVALID: :TRANSACTION_INVALID + TRANSACTION_NOT_PERMITTED_TO_ACQUIRER_OR_TERMINAL: :TRANSACTION_NOT_PERMITTED_TO_ACQUIRER_OR_TERMINAL + TRANSACTION_NOT_PERMITTED_TO_ISSUER_OR_CARDHOLDER: :TRANSACTION_NOT_PERMITTED_TO_ISSUER_OR_CARDHOLDER + TRANSACTION_PREVIOUSLY_COMPLETED: :TRANSACTION_PREVIOUSLY_COMPLETED + UNAUTHORIZED_MERCHANT: :UNAUTHORIZED_MERCHANT + VEHICLE_NUMBER_INVALID: :VEHICLE_NUMBER_INVALID + CARDHOLDER_CHALLENGED: :CARDHOLDER_CHALLENGED + CARDHOLDER_CHALLENGE_FAILED: :CARDHOLDER_CHALLENGE_FAILED + + def self?.values: -> ::Array[Lithic::Models::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::code] + end + + type type_ = :DECLINE + + module Type + extend Lithic::Internal::Type::Enum + + DECLINE: :DECLINE + + def self?.values: -> ::Array[Lithic::Models::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::type_] + end + end + + type challenge_action_authorization = + { + type: Lithic::Models::AuthRules::ReportStats::Example::Action::ChallengeActionAuthorization::type_ + } + + class ChallengeActionAuthorization < Lithic::Internal::Type::BaseModel + attr_accessor type: Lithic::Models::AuthRules::ReportStats::Example::Action::ChallengeActionAuthorization::type_ + + def initialize: ( + type: Lithic::Models::AuthRules::ReportStats::Example::Action::ChallengeActionAuthorization::type_ + ) -> void + + def to_hash: -> { + type: Lithic::Models::AuthRules::ReportStats::Example::Action::ChallengeActionAuthorization::type_ + } + + type type_ = :CHALLENGE + + module Type + extend Lithic::Internal::Type::Enum + + CHALLENGE: :CHALLENGE + + def self?.values: -> ::Array[Lithic::Models::AuthRules::ReportStats::Example::Action::ChallengeActionAuthorization::type_] + end + end + + type result_authentication3_ds_action = + { + type: Lithic::Models::AuthRules::ReportStats::Example::Action::ResultAuthentication3DSAction::type_ + } + + class ResultAuthentication3DSAction < Lithic::Internal::Type::BaseModel + attr_accessor type: Lithic::Models::AuthRules::ReportStats::Example::Action::ResultAuthentication3DSAction::type_ + + def initialize: ( + type: Lithic::Models::AuthRules::ReportStats::Example::Action::ResultAuthentication3DSAction::type_ + ) -> void + + def to_hash: -> { + type: Lithic::Models::AuthRules::ReportStats::Example::Action::ResultAuthentication3DSAction::type_ + } + + type type_ = :DECLINE | :CHALLENGE + + module Type + extend Lithic::Internal::Type::Enum + + DECLINE: :DECLINE + CHALLENGE: :CHALLENGE + + def self?.values: -> ::Array[Lithic::Models::AuthRules::ReportStats::Example::Action::ResultAuthentication3DSAction::type_] + end + end + + type decline_action_tokenization = + { + type: Lithic::Models::AuthRules::ReportStats::Example::Action::DeclineActionTokenization::type_, + reason: Lithic::Models::AuthRules::ReportStats::Example::Action::DeclineActionTokenization::reason + } + + class DeclineActionTokenization < Lithic::Internal::Type::BaseModel + attr_accessor type: Lithic::Models::AuthRules::ReportStats::Example::Action::DeclineActionTokenization::type_ + + attr_reader reason: Lithic::Models::AuthRules::ReportStats::Example::Action::DeclineActionTokenization::reason? + + def reason=: ( + Lithic::Models::AuthRules::ReportStats::Example::Action::DeclineActionTokenization::reason + ) -> Lithic::Models::AuthRules::ReportStats::Example::Action::DeclineActionTokenization::reason + + def initialize: ( + type: Lithic::Models::AuthRules::ReportStats::Example::Action::DeclineActionTokenization::type_, + ?reason: Lithic::Models::AuthRules::ReportStats::Example::Action::DeclineActionTokenization::reason + ) -> void + + def to_hash: -> { + type: Lithic::Models::AuthRules::ReportStats::Example::Action::DeclineActionTokenization::type_, + reason: Lithic::Models::AuthRules::ReportStats::Example::Action::DeclineActionTokenization::reason + } + + type type_ = :DECLINE + + module Type + extend Lithic::Internal::Type::Enum + + DECLINE: :DECLINE + + def self?.values: -> ::Array[Lithic::Models::AuthRules::ReportStats::Example::Action::DeclineActionTokenization::type_] + end + + type reason = + :ACCOUNT_SCORE_1 + | :DEVICE_SCORE_1 + | :ALL_WALLET_DECLINE_REASONS_PRESENT + | :WALLET_RECOMMENDED_DECISION_RED + | :CVC_MISMATCH + | :CARD_EXPIRY_MONTH_MISMATCH + | :CARD_EXPIRY_YEAR_MISMATCH + | :CARD_INVALID_STATE + | :CUSTOMER_RED_PATH + | :INVALID_CUSTOMER_RESPONSE + | :NETWORK_FAILURE + | :GENERIC_DECLINE + | :DIGITAL_CARD_ART_REQUIRED + + module Reason + extend Lithic::Internal::Type::Enum + + ACCOUNT_SCORE_1: :ACCOUNT_SCORE_1 + DEVICE_SCORE_1: :DEVICE_SCORE_1 + ALL_WALLET_DECLINE_REASONS_PRESENT: :ALL_WALLET_DECLINE_REASONS_PRESENT + WALLET_RECOMMENDED_DECISION_RED: :WALLET_RECOMMENDED_DECISION_RED + CVC_MISMATCH: :CVC_MISMATCH + CARD_EXPIRY_MONTH_MISMATCH: :CARD_EXPIRY_MONTH_MISMATCH + CARD_EXPIRY_YEAR_MISMATCH: :CARD_EXPIRY_YEAR_MISMATCH + CARD_INVALID_STATE: :CARD_INVALID_STATE + CUSTOMER_RED_PATH: :CUSTOMER_RED_PATH + INVALID_CUSTOMER_RESPONSE: :INVALID_CUSTOMER_RESPONSE + NETWORK_FAILURE: :NETWORK_FAILURE + GENERIC_DECLINE: :GENERIC_DECLINE + DIGITAL_CARD_ART_REQUIRED: :DIGITAL_CARD_ART_REQUIRED + + def self?.values: -> ::Array[Lithic::Models::AuthRules::ReportStats::Example::Action::DeclineActionTokenization::reason] + end + end + + type require_tfa_action = + { + type: Lithic::Models::AuthRules::ReportStats::Example::Action::RequireTfaAction::type_, + reason: Lithic::Models::AuthRules::ReportStats::Example::Action::RequireTfaAction::reason + } + + class RequireTfaAction < Lithic::Internal::Type::BaseModel + attr_accessor type: Lithic::Models::AuthRules::ReportStats::Example::Action::RequireTfaAction::type_ + + attr_reader reason: Lithic::Models::AuthRules::ReportStats::Example::Action::RequireTfaAction::reason? + + def reason=: ( + Lithic::Models::AuthRules::ReportStats::Example::Action::RequireTfaAction::reason + ) -> Lithic::Models::AuthRules::ReportStats::Example::Action::RequireTfaAction::reason + + def initialize: ( + type: Lithic::Models::AuthRules::ReportStats::Example::Action::RequireTfaAction::type_, + ?reason: Lithic::Models::AuthRules::ReportStats::Example::Action::RequireTfaAction::reason + ) -> void + + def to_hash: -> { + type: Lithic::Models::AuthRules::ReportStats::Example::Action::RequireTfaAction::type_, + reason: Lithic::Models::AuthRules::ReportStats::Example::Action::RequireTfaAction::reason + } + + type type_ = :REQUIRE_TFA + + module Type + extend Lithic::Internal::Type::Enum + + REQUIRE_TFA: :REQUIRE_TFA + + def self?.values: -> ::Array[Lithic::Models::AuthRules::ReportStats::Example::Action::RequireTfaAction::type_] + end + + type reason = + :WALLET_RECOMMENDED_TFA + | :SUSPICIOUS_ACTIVITY + | :DEVICE_RECENTLY_LOST + | :TOO_MANY_RECENT_ATTEMPTS + | :TOO_MANY_RECENT_TOKENS + | :TOO_MANY_DIFFERENT_CARDHOLDERS + | :OUTSIDE_HOME_TERRITORY + | :HAS_SUSPENDED_TOKENS + | :HIGH_RISK + | :ACCOUNT_SCORE_LOW + | :DEVICE_SCORE_LOW + | :CARD_STATE_TFA + | :HARDCODED_TFA + | :CUSTOMER_RULE_TFA + | :DEVICE_HOST_CARD_EMULATION + + module Reason + extend Lithic::Internal::Type::Enum + + WALLET_RECOMMENDED_TFA: :WALLET_RECOMMENDED_TFA + SUSPICIOUS_ACTIVITY: :SUSPICIOUS_ACTIVITY + DEVICE_RECENTLY_LOST: :DEVICE_RECENTLY_LOST + TOO_MANY_RECENT_ATTEMPTS: :TOO_MANY_RECENT_ATTEMPTS + TOO_MANY_RECENT_TOKENS: :TOO_MANY_RECENT_TOKENS + TOO_MANY_DIFFERENT_CARDHOLDERS: :TOO_MANY_DIFFERENT_CARDHOLDERS + OUTSIDE_HOME_TERRITORY: :OUTSIDE_HOME_TERRITORY + HAS_SUSPENDED_TOKENS: :HAS_SUSPENDED_TOKENS + HIGH_RISK: :HIGH_RISK + ACCOUNT_SCORE_LOW: :ACCOUNT_SCORE_LOW + DEVICE_SCORE_LOW: :DEVICE_SCORE_LOW + CARD_STATE_TFA: :CARD_STATE_TFA + HARDCODED_TFA: :HARDCODED_TFA + CUSTOMER_RULE_TFA: :CUSTOMER_RULE_TFA + DEVICE_HOST_CARD_EMULATION: :DEVICE_HOST_CARD_EMULATION + + def self?.values: -> ::Array[Lithic::Models::AuthRules::ReportStats::Example::Action::RequireTfaAction::reason] + end + end + + type approve_action_ach = + { + type: Lithic::Models::AuthRules::ReportStats::Example::Action::ApproveActionACH::type_ + } + + class ApproveActionACH < Lithic::Internal::Type::BaseModel + attr_accessor type: Lithic::Models::AuthRules::ReportStats::Example::Action::ApproveActionACH::type_ + + def initialize: ( + type: Lithic::Models::AuthRules::ReportStats::Example::Action::ApproveActionACH::type_ + ) -> void + + def to_hash: -> { + type: Lithic::Models::AuthRules::ReportStats::Example::Action::ApproveActionACH::type_ + } + + type type_ = :APPROVE + + module Type + extend Lithic::Internal::Type::Enum + + APPROVE: :APPROVE + + def self?.values: -> ::Array[Lithic::Models::AuthRules::ReportStats::Example::Action::ApproveActionACH::type_] + end + end + + type return_action = + { + code: Lithic::Models::AuthRules::ReportStats::Example::Action::ReturnAction::code, + type: Lithic::Models::AuthRules::ReportStats::Example::Action::ReturnAction::type_ + } + + class ReturnAction < Lithic::Internal::Type::BaseModel + attr_accessor code: Lithic::Models::AuthRules::ReportStats::Example::Action::ReturnAction::code + + attr_accessor type: Lithic::Models::AuthRules::ReportStats::Example::Action::ReturnAction::type_ + + def initialize: ( + code: Lithic::Models::AuthRules::ReportStats::Example::Action::ReturnAction::code, + type: Lithic::Models::AuthRules::ReportStats::Example::Action::ReturnAction::type_ + ) -> void + + def to_hash: -> { + code: Lithic::Models::AuthRules::ReportStats::Example::Action::ReturnAction::code, + type: Lithic::Models::AuthRules::ReportStats::Example::Action::ReturnAction::type_ + } + + type code = + :R01 + | :R02 + | :R03 + | :R04 + | :R05 + | :R06 + | :R07 + | :R08 + | :R09 + | :R10 + | :R11 + | :R12 + | :R13 + | :R14 + | :R15 + | :R16 + | :R17 + | :R18 + | :R19 + | :R20 + | :R21 + | :R22 + | :R23 + | :R24 + | :R25 + | :R26 + | :R27 + | :R28 + | :R29 + | :R30 + | :R31 + | :R32 + | :R33 + | :R34 + | :R35 + | :R36 + | :R37 + | :R38 + | :R39 + | :R40 + | :R41 + | :R42 + | :R43 + | :R44 + | :R45 + | :R46 + | :R47 + | :R50 + | :R51 + | :R52 + | :R53 + | :R61 + | :R62 + | :R67 + | :R68 + | :R69 + | :R70 + | :R71 + | :R72 + | :R73 + | :R74 + | :R75 + | :R76 + | :R77 + | :R80 + | :R81 + | :R82 + | :R83 + | :R84 + | :R85 + + module Code + extend Lithic::Internal::Type::Enum + + R01: :R01 + R02: :R02 + R03: :R03 + R04: :R04 + R05: :R05 + R06: :R06 + R07: :R07 + R08: :R08 + R09: :R09 + R10: :R10 + R11: :R11 + R12: :R12 + R13: :R13 + R14: :R14 + R15: :R15 + R16: :R16 + R17: :R17 + R18: :R18 + R19: :R19 + R20: :R20 + R21: :R21 + R22: :R22 + R23: :R23 + R24: :R24 + R25: :R25 + R26: :R26 + R27: :R27 + R28: :R28 + R29: :R29 + R30: :R30 + R31: :R31 + R32: :R32 + R33: :R33 + R34: :R34 + R35: :R35 + R36: :R36 + R37: :R37 + R38: :R38 + R39: :R39 + R40: :R40 + R41: :R41 + R42: :R42 + R43: :R43 + R44: :R44 + R45: :R45 + R46: :R46 + R47: :R47 + R50: :R50 + R51: :R51 + R52: :R52 + R53: :R53 + R61: :R61 + R62: :R62 + R67: :R67 + R68: :R68 + R69: :R69 + R70: :R70 + R71: :R71 + R72: :R72 + R73: :R73 + R74: :R74 + R75: :R75 + R76: :R76 + R77: :R77 + R80: :R80 + R81: :R81 + R82: :R82 + R83: :R83 + R84: :R84 + R85: :R85 + + def self?.values: -> ::Array[Lithic::Models::AuthRules::ReportStats::Example::Action::ReturnAction::code] + end + + type type_ = :RETURN + + module Type + extend Lithic::Internal::Type::Enum + + RETURN: :RETURN + + def self?.values: -> ::Array[Lithic::Models::AuthRules::ReportStats::Example::Action::ReturnAction::type_] + end + end + + def self?.variants: -> ::Array[Lithic::Models::AuthRules::ReportStats::Example::action] + end + + type decision = :APPROVED | :DECLINED | :CHALLENGED + + module Decision + extend Lithic::Internal::Type::Enum + + APPROVED: :APPROVED + DECLINED: :DECLINED + CHALLENGED: :CHALLENGED + + def self?.values: -> ::Array[Lithic::Models::AuthRules::ReportStats::Example::decision] + end + end + end + end + end +end diff --git a/sig/lithic/models/auth_rules/v2/backtest_results.rbs b/sig/lithic/models/auth_rules/v2/backtest_results.rbs index 14973279..a83b34ea 100644 --- a/sig/lithic/models/auth_rules/v2/backtest_results.rbs +++ b/sig/lithic/models/auth_rules/v2/backtest_results.rbs @@ -30,23 +30,23 @@ module Lithic type results = { - current_version: Lithic::AuthRules::RuleStats?, - draft_version: Lithic::AuthRules::RuleStats? + current_version: Lithic::AuthRules::BacktestStats?, + draft_version: Lithic::AuthRules::BacktestStats? } class Results < Lithic::Internal::Type::BaseModel - attr_accessor current_version: Lithic::AuthRules::RuleStats? + attr_accessor current_version: Lithic::AuthRules::BacktestStats? - attr_accessor draft_version: Lithic::AuthRules::RuleStats? + attr_accessor draft_version: Lithic::AuthRules::BacktestStats? def initialize: ( - ?current_version: Lithic::AuthRules::RuleStats?, - ?draft_version: Lithic::AuthRules::RuleStats? + ?current_version: Lithic::AuthRules::BacktestStats?, + ?draft_version: Lithic::AuthRules::BacktestStats? ) -> void def to_hash: -> { - current_version: Lithic::AuthRules::RuleStats?, - draft_version: Lithic::AuthRules::RuleStats? + current_version: Lithic::AuthRules::BacktestStats?, + draft_version: Lithic::AuthRules::BacktestStats? } end diff --git a/sig/lithic/models/auth_rules/v2_list_results_params.rbs b/sig/lithic/models/auth_rules/v2_list_results_params.rbs index 3b8fa094..b323743e 100644 --- a/sig/lithic/models/auth_rules/v2_list_results_params.rbs +++ b/sig/lithic/models/auth_rules/v2_list_results_params.rbs @@ -4,6 +4,8 @@ module Lithic type v2_list_results_params = { auth_rule_token: String, + begin_: Time, + end_: Time, ending_before: String, event_token: String, has_actions: bool, @@ -20,6 +22,14 @@ module Lithic def auth_rule_token=: (String) -> String + attr_reader begin_: Time? + + def begin_=: (Time) -> Time + + attr_reader end_: Time? + + def end_=: (Time) -> Time + attr_reader ending_before: String? def ending_before=: (String) -> String @@ -42,6 +52,8 @@ module Lithic def initialize: ( ?auth_rule_token: String, + ?begin_: Time, + ?end_: Time, ?ending_before: String, ?event_token: String, ?has_actions: bool, @@ -52,6 +64,8 @@ module Lithic def to_hash: -> { auth_rule_token: String, + begin_: Time, + end_: Time, ending_before: String, event_token: String, has_actions: bool, diff --git a/sig/lithic/models/auth_rules/v2_list_results_response.rbs b/sig/lithic/models/auth_rules/v2_list_results_response.rbs index 396958e5..0de57d4f 100644 --- a/sig/lithic/models/auth_rules/v2_list_results_response.rbs +++ b/sig/lithic/models/auth_rules/v2_list_results_response.rbs @@ -13,7 +13,7 @@ module Lithic type authorization_result = { token: String, - actions: ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action], + actions: ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::action], auth_rule_token: String, evaluation_time: Time, event_stream: :AUTHORIZATION, @@ -25,7 +25,7 @@ module Lithic class AuthorizationResult < Lithic::Internal::Type::BaseModel attr_accessor token: String - attr_accessor actions: ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action] + attr_accessor actions: ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::action] attr_accessor auth_rule_token: String @@ -41,7 +41,7 @@ module Lithic def initialize: ( token: String, - actions: ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action], + actions: ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::action], auth_rule_token: String, evaluation_time: Time, event_token: String, @@ -52,7 +52,7 @@ module Lithic def to_hash: -> { token: String, - actions: ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action], + actions: ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::action], auth_rule_token: String, evaluation_time: Time, event_stream: :AUTHORIZATION, @@ -62,38 +62,209 @@ module Lithic } type action = - { - type: Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::type_, - explanation: String - } + Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization + | Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::ChallengeActionAuthorization - class Action < Lithic::Internal::Type::BaseModel - attr_accessor type: Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::type_ + module Action + extend Lithic::Internal::Type::Union - attr_reader explanation: String? + type decline_action_authorization = + { + code: Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::code, + type: Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::type_, + explanation: String + } - def explanation=: (String) -> String + class DeclineActionAuthorization < Lithic::Internal::Type::BaseModel + attr_accessor code: Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::code - def initialize: ( - type: Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::type_, - ?explanation: String - ) -> void + attr_accessor type: Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::type_ - def to_hash: -> { - type: Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::type_, - explanation: String - } + attr_reader explanation: String? - type type_ = :DECLINE | :CHALLENGE + def explanation=: (String) -> String - module Type - extend Lithic::Internal::Type::Enum + def initialize: ( + code: Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::code, + type: Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::type_, + ?explanation: String + ) -> void - DECLINE: :DECLINE - CHALLENGE: :CHALLENGE + def to_hash: -> { + code: Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::code, + type: Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::type_, + explanation: String + } + + type code = + :ACCOUNT_DAILY_SPEND_LIMIT_EXCEEDED + | :ACCOUNT_DELINQUENT + | :ACCOUNT_INACTIVE + | :ACCOUNT_LIFETIME_SPEND_LIMIT_EXCEEDED + | :ACCOUNT_MONTHLY_SPEND_LIMIT_EXCEEDED + | :ACCOUNT_PAUSED + | :ACCOUNT_UNDER_REVIEW + | :ADDRESS_INCORRECT + | :APPROVED + | :AUTH_RULE_ALLOWED_COUNTRY + | :AUTH_RULE_ALLOWED_MCC + | :AUTH_RULE_BLOCKED_COUNTRY + | :AUTH_RULE_BLOCKED_MCC + | :AUTH_RULE + | :CARD_CLOSED + | :CARD_CRYPTOGRAM_VALIDATION_FAILURE + | :CARD_EXPIRED + | :CARD_EXPIRY_DATE_INCORRECT + | :CARD_INVALID + | :CARD_NOT_ACTIVATED + | :CARD_PAUSED + | :CARD_PIN_INCORRECT + | :CARD_RESTRICTED + | :CARD_SECURITY_CODE_INCORRECT + | :CARD_SPEND_LIMIT_EXCEEDED + | :CONTACT_CARD_ISSUER + | :CUSTOMER_ASA_TIMEOUT + | :CUSTOM_ASA_RESULT + | :DECLINED + | :DO_NOT_HONOR + | :DRIVER_NUMBER_INVALID + | :FORMAT_ERROR + | :INSUFFICIENT_FUNDING_SOURCE_BALANCE + | :INSUFFICIENT_FUNDS + | :LITHIC_SYSTEM_ERROR + | :LITHIC_SYSTEM_RATE_LIMIT + | :MALFORMED_ASA_RESPONSE + | :MERCHANT_INVALID + | :MERCHANT_LOCKED_CARD_ATTEMPTED_ELSEWHERE + | :MERCHANT_NOT_PERMITTED + | :OVER_REVERSAL_ATTEMPTED + | :PIN_BLOCKED + | :PROGRAM_CARD_SPEND_LIMIT_EXCEEDED + | :PROGRAM_SUSPENDED + | :PROGRAM_USAGE_RESTRICTION + | :REVERSAL_UNMATCHED + | :SECURITY_VIOLATION + | :SINGLE_USE_CARD_REATTEMPTED + | :SUSPECTED_FRAUD + | :TRANSACTION_INVALID + | :TRANSACTION_NOT_PERMITTED_TO_ACQUIRER_OR_TERMINAL + | :TRANSACTION_NOT_PERMITTED_TO_ISSUER_OR_CARDHOLDER + | :TRANSACTION_PREVIOUSLY_COMPLETED + | :UNAUTHORIZED_MERCHANT + | :VEHICLE_NUMBER_INVALID + | :CARDHOLDER_CHALLENGED + | :CARDHOLDER_CHALLENGE_FAILED - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::type_] + module Code + extend Lithic::Internal::Type::Enum + + ACCOUNT_DAILY_SPEND_LIMIT_EXCEEDED: :ACCOUNT_DAILY_SPEND_LIMIT_EXCEEDED + ACCOUNT_DELINQUENT: :ACCOUNT_DELINQUENT + ACCOUNT_INACTIVE: :ACCOUNT_INACTIVE + ACCOUNT_LIFETIME_SPEND_LIMIT_EXCEEDED: :ACCOUNT_LIFETIME_SPEND_LIMIT_EXCEEDED + ACCOUNT_MONTHLY_SPEND_LIMIT_EXCEEDED: :ACCOUNT_MONTHLY_SPEND_LIMIT_EXCEEDED + ACCOUNT_PAUSED: :ACCOUNT_PAUSED + ACCOUNT_UNDER_REVIEW: :ACCOUNT_UNDER_REVIEW + ADDRESS_INCORRECT: :ADDRESS_INCORRECT + APPROVED: :APPROVED + AUTH_RULE_ALLOWED_COUNTRY: :AUTH_RULE_ALLOWED_COUNTRY + AUTH_RULE_ALLOWED_MCC: :AUTH_RULE_ALLOWED_MCC + AUTH_RULE_BLOCKED_COUNTRY: :AUTH_RULE_BLOCKED_COUNTRY + AUTH_RULE_BLOCKED_MCC: :AUTH_RULE_BLOCKED_MCC + AUTH_RULE: :AUTH_RULE + CARD_CLOSED: :CARD_CLOSED + CARD_CRYPTOGRAM_VALIDATION_FAILURE: :CARD_CRYPTOGRAM_VALIDATION_FAILURE + CARD_EXPIRED: :CARD_EXPIRED + CARD_EXPIRY_DATE_INCORRECT: :CARD_EXPIRY_DATE_INCORRECT + CARD_INVALID: :CARD_INVALID + CARD_NOT_ACTIVATED: :CARD_NOT_ACTIVATED + CARD_PAUSED: :CARD_PAUSED + CARD_PIN_INCORRECT: :CARD_PIN_INCORRECT + CARD_RESTRICTED: :CARD_RESTRICTED + CARD_SECURITY_CODE_INCORRECT: :CARD_SECURITY_CODE_INCORRECT + CARD_SPEND_LIMIT_EXCEEDED: :CARD_SPEND_LIMIT_EXCEEDED + CONTACT_CARD_ISSUER: :CONTACT_CARD_ISSUER + CUSTOMER_ASA_TIMEOUT: :CUSTOMER_ASA_TIMEOUT + CUSTOM_ASA_RESULT: :CUSTOM_ASA_RESULT + DECLINED: :DECLINED + DO_NOT_HONOR: :DO_NOT_HONOR + DRIVER_NUMBER_INVALID: :DRIVER_NUMBER_INVALID + FORMAT_ERROR: :FORMAT_ERROR + INSUFFICIENT_FUNDING_SOURCE_BALANCE: :INSUFFICIENT_FUNDING_SOURCE_BALANCE + INSUFFICIENT_FUNDS: :INSUFFICIENT_FUNDS + LITHIC_SYSTEM_ERROR: :LITHIC_SYSTEM_ERROR + LITHIC_SYSTEM_RATE_LIMIT: :LITHIC_SYSTEM_RATE_LIMIT + MALFORMED_ASA_RESPONSE: :MALFORMED_ASA_RESPONSE + MERCHANT_INVALID: :MERCHANT_INVALID + MERCHANT_LOCKED_CARD_ATTEMPTED_ELSEWHERE: :MERCHANT_LOCKED_CARD_ATTEMPTED_ELSEWHERE + MERCHANT_NOT_PERMITTED: :MERCHANT_NOT_PERMITTED + OVER_REVERSAL_ATTEMPTED: :OVER_REVERSAL_ATTEMPTED + PIN_BLOCKED: :PIN_BLOCKED + PROGRAM_CARD_SPEND_LIMIT_EXCEEDED: :PROGRAM_CARD_SPEND_LIMIT_EXCEEDED + PROGRAM_SUSPENDED: :PROGRAM_SUSPENDED + PROGRAM_USAGE_RESTRICTION: :PROGRAM_USAGE_RESTRICTION + REVERSAL_UNMATCHED: :REVERSAL_UNMATCHED + SECURITY_VIOLATION: :SECURITY_VIOLATION + SINGLE_USE_CARD_REATTEMPTED: :SINGLE_USE_CARD_REATTEMPTED + SUSPECTED_FRAUD: :SUSPECTED_FRAUD + TRANSACTION_INVALID: :TRANSACTION_INVALID + TRANSACTION_NOT_PERMITTED_TO_ACQUIRER_OR_TERMINAL: :TRANSACTION_NOT_PERMITTED_TO_ACQUIRER_OR_TERMINAL + TRANSACTION_NOT_PERMITTED_TO_ISSUER_OR_CARDHOLDER: :TRANSACTION_NOT_PERMITTED_TO_ISSUER_OR_CARDHOLDER + TRANSACTION_PREVIOUSLY_COMPLETED: :TRANSACTION_PREVIOUSLY_COMPLETED + UNAUTHORIZED_MERCHANT: :UNAUTHORIZED_MERCHANT + VEHICLE_NUMBER_INVALID: :VEHICLE_NUMBER_INVALID + CARDHOLDER_CHALLENGED: :CARDHOLDER_CHALLENGED + CARDHOLDER_CHALLENGE_FAILED: :CARDHOLDER_CHALLENGE_FAILED + + def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::code] + end + + type type_ = :DECLINE + + module Type + extend Lithic::Internal::Type::Enum + + DECLINE: :DECLINE + + def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::type_] + end end + + type challenge_action_authorization = + { + type: Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::ChallengeActionAuthorization::type_, + explanation: String + } + + class ChallengeActionAuthorization < Lithic::Internal::Type::BaseModel + attr_accessor type: Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::ChallengeActionAuthorization::type_ + + attr_reader explanation: String? + + def explanation=: (String) -> String + + def initialize: ( + type: Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::ChallengeActionAuthorization::type_, + ?explanation: String + ) -> void + + def to_hash: -> { + type: Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::ChallengeActionAuthorization::type_, + explanation: String + } + + type type_ = :CHALLENGE + + module Type + extend Lithic::Internal::Type::Enum + + CHALLENGE: :CHALLENGE + + def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::ChallengeActionAuthorization::type_] + end + end + + def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::action] end type mode = :ACTIVE | :INACTIVE @@ -258,42 +429,42 @@ module Lithic } type action = - Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction + Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineActionTokenization | Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::RequireTfaAction module Action extend Lithic::Internal::Type::Union - type decline_action = + type decline_action_tokenization = { - type: Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction::type_, + type: Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineActionTokenization::type_, explanation: String, - reason: Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction::reason + reason: Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineActionTokenization::reason } - class DeclineAction < Lithic::Internal::Type::BaseModel - attr_accessor type: Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction::type_ + class DeclineActionTokenization < Lithic::Internal::Type::BaseModel + attr_accessor type: Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineActionTokenization::type_ attr_reader explanation: String? def explanation=: (String) -> String - attr_reader reason: Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction::reason? + attr_reader reason: Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineActionTokenization::reason? def reason=: ( - Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction::reason - ) -> Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction::reason + Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineActionTokenization::reason + ) -> Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineActionTokenization::reason def initialize: ( - type: Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction::type_, + type: Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineActionTokenization::type_, ?explanation: String, - ?reason: Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction::reason + ?reason: Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineActionTokenization::reason ) -> void def to_hash: -> { - type: Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction::type_, + type: Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineActionTokenization::type_, explanation: String, - reason: Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction::reason + reason: Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineActionTokenization::reason } type type_ = :DECLINE @@ -303,7 +474,7 @@ module Lithic DECLINE: :DECLINE - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction::type_] + def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineActionTokenization::type_] end type reason = @@ -338,7 +509,7 @@ module Lithic GENERIC_DECLINE: :GENERIC_DECLINE DIGITAL_CARD_ART_REQUIRED: :DIGITAL_CARD_ART_REQUIRED - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction::reason] + def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineActionTokenization::reason] end end @@ -491,32 +662,32 @@ module Lithic } type action = - Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ApproveAction + Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ApproveActionACH | Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ReturnAction module Action extend Lithic::Internal::Type::Union - type approve_action = + type approve_action_ach = { - type: Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ApproveAction::type_, + type: Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ApproveActionACH::type_, explanation: String } - class ApproveAction < Lithic::Internal::Type::BaseModel - attr_accessor type: Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ApproveAction::type_ + class ApproveActionACH < Lithic::Internal::Type::BaseModel + attr_accessor type: Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ApproveActionACH::type_ attr_reader explanation: String? def explanation=: (String) -> String def initialize: ( - type: Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ApproveAction::type_, + type: Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ApproveActionACH::type_, ?explanation: String ) -> void def to_hash: -> { - type: Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ApproveAction::type_, + type: Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ApproveActionACH::type_, explanation: String } @@ -527,7 +698,7 @@ module Lithic APPROVE: :APPROVE - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ApproveAction::type_] + def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ApproveActionACH::type_] end end diff --git a/sig/lithic/models/auth_rules/v2_retrieve_report_response.rbs b/sig/lithic/models/auth_rules/v2_retrieve_report_response.rbs index c2a5419f..736a1317 100644 --- a/sig/lithic/models/auth_rules/v2_retrieve_report_response.rbs +++ b/sig/lithic/models/auth_rules/v2_retrieve_report_response.rbs @@ -34,28 +34,28 @@ module Lithic type daily_statistic = { - current_version_statistics: Lithic::AuthRules::RuleStats?, + current_version_statistics: Lithic::AuthRules::ReportStats?, date: Date, - draft_version_statistics: Lithic::AuthRules::RuleStats? + draft_version_statistics: Lithic::AuthRules::ReportStats? } class DailyStatistic < Lithic::Internal::Type::BaseModel - attr_accessor current_version_statistics: Lithic::AuthRules::RuleStats? + attr_accessor current_version_statistics: Lithic::AuthRules::ReportStats? attr_accessor date: Date - attr_accessor draft_version_statistics: Lithic::AuthRules::RuleStats? + attr_accessor draft_version_statistics: Lithic::AuthRules::ReportStats? def initialize: ( - current_version_statistics: Lithic::AuthRules::RuleStats?, + current_version_statistics: Lithic::AuthRules::ReportStats?, date: Date, - draft_version_statistics: Lithic::AuthRules::RuleStats? + draft_version_statistics: Lithic::AuthRules::ReportStats? ) -> void def to_hash: -> { - current_version_statistics: Lithic::AuthRules::RuleStats?, + current_version_statistics: Lithic::AuthRules::ReportStats?, date: Date, - draft_version_statistics: Lithic::AuthRules::RuleStats? + draft_version_statistics: Lithic::AuthRules::ReportStats? } end end diff --git a/sig/lithic/resources/auth_rules/v2.rbs b/sig/lithic/resources/auth_rules/v2.rbs index a4fd3693..4ae767f8 100644 --- a/sig/lithic/resources/auth_rules/v2.rbs +++ b/sig/lithic/resources/auth_rules/v2.rbs @@ -60,6 +60,8 @@ module Lithic def list_results: ( ?auth_rule_token: String, + ?begin_: Time, + ?end_: Time, ?ending_before: String, ?event_token: String, ?has_actions: bool, From 7c54dcf052f9c13b7ab73862f80e279d1184e8ee Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 2 Mar 2026 19:49:22 +0000 Subject: [PATCH 2/7] feat(api): Remove deprecated beneficial owner entities field --- .stats.yml | 4 +- lib/lithic/models/account_holder.rb | 80 +--------- .../models/account_holder_create_params.rb | 73 +-------- ...der_simulate_enrollment_review_response.rb | 10 +- .../models/account_holder_update_params.rb | 81 +--------- .../models/account_holder_update_response.rb | 10 +- .../account_holder_updated_webhook_event.rb | 12 +- lib/lithic/models/kyb.rb | 72 +-------- lib/lithic/models/parsed_webhook_event.rb | 12 +- lib/lithic/resources/account_holders.rb | 8 +- .../resources/account_holders/entities.rb | 8 +- rbi/lithic/models/account_holder.rbi | 121 --------------- .../models/account_holder_create_params.rbi | 124 --------------- ...er_simulate_enrollment_review_response.rbi | 16 -- .../models/account_holder_update_params.rbi | 141 ------------------ .../models/account_holder_update_response.rbi | 17 --- .../account_holder_updated_webhook_event.rbi | 17 --- rbi/lithic/models/kyb.rbi | 109 -------------- rbi/lithic/models/parsed_webhook_event.rbi | 17 --- rbi/lithic/resources/account_holders.rbi | 12 -- .../resources/account_holders/entities.rbi | 8 +- sig/lithic/models/account_holder.rbs | 58 ------- .../models/account_holder_create_params.rbs | 55 ------- ...er_simulate_enrollment_review_response.rbs | 9 -- .../models/account_holder_update_params.rbs | 68 --------- .../models/account_holder_update_response.rbs | 9 -- .../account_holder_updated_webhook_event.rbs | 9 -- sig/lithic/models/kyb.rbs | 55 ------- sig/lithic/models/parsed_webhook_event.rbs | 9 -- sig/lithic/resources/account_holders.rbs | 2 - test/lithic/resources/account_holders_test.rb | 3 - 31 files changed, 20 insertions(+), 1209 deletions(-) diff --git a/.stats.yml b/.stats.yml index 17f87283..1cea7b96 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 185 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-b29a4bd5ca21348ef426162cbd1fa21070f695572626e4e6faabfa14af38f0b0.yml -openapi_spec_hash: e7c285d6b7006d040ecb50a9d0d2fc17 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-df289940d26615072a7c5c9dd4d32b9bc7a86d977642b377c58abbe7a4cb93d0.yml +openapi_spec_hash: 836bb078df7ac5f8d2dd5081c2e833be config_hash: fb5070d41fcabdedbc084b83964b592a diff --git a/lib/lithic/models/account_holder.rb b/lib/lithic/models/account_holder.rb index f3ae2686..8438ffe3 100644 --- a/lib/lithic/models/account_holder.rb +++ b/lib/lithic/models/account_holder.rb @@ -22,15 +22,6 @@ class AccountHolder < Lithic::Internal::Type::BaseModel # @return [String, nil] optional :account_token, String - # @!attribute beneficial_owner_entities - # @deprecated - # - # Deprecated. - # - # @return [Array, nil] - optional :beneficial_owner_entities, - -> { Lithic::Internal::Type::ArrayOf[Lithic::AccountHolder::BeneficialOwnerEntity] } - # @!attribute beneficial_owner_individuals # Only present when user_type == "BUSINESS". You must submit a list of all direct # and indirect individuals with 25% or more ownership in the company. A maximum of @@ -168,7 +159,7 @@ class AccountHolder < Lithic::Internal::Type::BaseModel # @return [String, nil] optional :website_url, String - # @!method initialize(token:, created:, account_token: nil, beneficial_owner_entities: nil, beneficial_owner_individuals: nil, business_account_token: nil, business_entity: nil, control_person: nil, email: nil, exemption_type: nil, external_id: nil, individual: nil, naics_code: nil, nature_of_business: nil, phone_number: nil, required_documents: nil, status: nil, status_reasons: nil, user_type: nil, verification_application: nil, website_url: nil) + # @!method initialize(token:, created:, account_token: nil, beneficial_owner_individuals: nil, business_account_token: nil, business_entity: nil, control_person: nil, email: nil, exemption_type: nil, external_id: nil, individual: nil, naics_code: nil, nature_of_business: nil, phone_number: nil, required_documents: nil, status: nil, status_reasons: nil, user_type: nil, verification_application: nil, website_url: nil) # Some parameter documentations has been truncated, see # {Lithic::Models::AccountHolder} for more details. # @@ -178,8 +169,6 @@ class AccountHolder < Lithic::Internal::Type::BaseModel # # @param account_token [String] Globally unique identifier for the account. # - # @param beneficial_owner_entities [Array] Deprecated. - # # @param beneficial_owner_individuals [Array] Only present when user_type == "BUSINESS". # # @param business_account_token [String] Only applicable for customers using the KYC-Exempt workflow to enroll authorized @@ -214,73 +203,6 @@ class AccountHolder < Lithic::Internal::Type::BaseModel # # @param website_url [String] Only present when user_type == "BUSINESS". Business's primary website. - class BeneficialOwnerEntity < Lithic::Internal::Type::BaseModel - # @!attribute address - # Business's physical address - PO boxes, UPS drops, and FedEx drops are not - # acceptable; APO/FPO are acceptable. - # - # @return [Lithic::Models::Address] - required :address, -> { Lithic::Address } - - # @!attribute dba_business_name - # Any name that the business operates under that is not its legal business name - # (if applicable). - # - # @return [String] - required :dba_business_name, String - - # @!attribute entity_token - # Globally unique identifier for the entity. - # - # @return [String] - required :entity_token, String - - # @!attribute government_id - # Government-issued identification number. US Federal Employer Identification - # Numbers (EIN) are currently supported, entered as full nine-digits, with or - # without hyphens. - # - # @return [String] - required :government_id, String - - # @!attribute legal_business_name - # Legal (formal) business name. - # - # @return [String] - required :legal_business_name, String - - # @!attribute phone_numbers - # One or more of the business's phone number(s), entered as a list in E.164 - # format. - # - # @return [Array] - required :phone_numbers, Lithic::Internal::Type::ArrayOf[String] - - # @!attribute parent_company - # Parent company name (if applicable). - # - # @return [String, nil] - optional :parent_company, String - - # @!method initialize(address:, dba_business_name:, entity_token:, government_id:, legal_business_name:, phone_numbers:, parent_company: nil) - # Some parameter documentations has been truncated, see - # {Lithic::Models::AccountHolder::BeneficialOwnerEntity} for more details. - # - # @param address [Lithic::Models::Address] Business's physical address - PO boxes, UPS drops, and FedEx drops are not accep - # - # @param dba_business_name [String] Any name that the business operates under that is not its legal business name (i - # - # @param entity_token [String] Globally unique identifier for the entity. - # - # @param government_id [String] Government-issued identification number. US Federal Employer Identification Numb - # - # @param legal_business_name [String] Legal (formal) business name. - # - # @param phone_numbers [Array] One or more of the business's phone number(s), entered as a list in E.164 format - # - # @param parent_company [String] Parent company name (if applicable). - end - class BeneficialOwnerIndividual < Lithic::Internal::Type::BaseModel # @!attribute address # Individual's current address diff --git a/lib/lithic/models/account_holder_create_params.rb b/lib/lithic/models/account_holder_create_params.rb index f47f1bb8..6b439021 100644 --- a/lib/lithic/models/account_holder_create_params.rb +++ b/lib/lithic/models/account_holder_create_params.rb @@ -59,15 +59,6 @@ class AccountHolderCreateParams < Lithic::Internal::Type::BaseModel # @return [Symbol, Lithic::Models::AccountHolderCreateParams::Workflow] required :workflow, enum: -> { Lithic::AccountHolderCreateParams::Workflow } - # @!attribute beneficial_owner_entities - # @deprecated - # - # Deprecated. - # - # @return [Array, nil] - optional :beneficial_owner_entities, - -> { Lithic::Internal::Type::ArrayOf[Lithic::AccountHolderCreateParams::BeneficialOwnerEntity] } - # @!attribute external_id # A user provided id that can be used to link an account holder with an external # system @@ -158,7 +149,7 @@ class AccountHolderCreateParams < Lithic::Internal::Type::BaseModel # @return [String, nil] optional :business_account_token, String - # @!method initialize(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: {}) + # @!method initialize(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, external_id: nil, kyb_passed_timestamp: nil, naics_code: nil, website_url: nil, kyc_passed_timestamp: nil, business_account_token: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Lithic::Models::AccountHolderCreateParams} for more details. # @@ -188,8 +179,6 @@ class AccountHolderCreateParams < Lithic::Internal::Type::BaseModel # # @param nature_of_business [String] Short description of the company's line of business (i.e., what does the company # - # @param beneficial_owner_entities [Array] Deprecated. - # # @param external_id [String] A user provided id that can be used to link an account holder with an external s # # @param kyb_passed_timestamp [String] An RFC 3339 timestamp indicating when precomputed KYB was completed on the busin @@ -421,66 +410,6 @@ module Workflow # @return [Array] end - class BeneficialOwnerEntity < Lithic::Internal::Type::BaseModel - # @!attribute address - # Business's physical address - PO boxes, UPS drops, and FedEx drops are not - # acceptable; APO/FPO are acceptable. - # - # @return [Lithic::Models::Address] - required :address, -> { Lithic::Address } - - # @!attribute government_id - # Government-issued identification number. US Federal Employer Identification - # Numbers (EIN) are currently supported, entered as full nine-digits, with or - # without hyphens. - # - # @return [String] - required :government_id, String - - # @!attribute legal_business_name - # Legal (formal) business name. - # - # @return [String] - required :legal_business_name, String - - # @!attribute phone_numbers - # One or more of the business's phone number(s), entered as a list in E.164 - # format. - # - # @return [Array] - required :phone_numbers, Lithic::Internal::Type::ArrayOf[String] - - # @!attribute dba_business_name - # Any name that the business operates under that is not its legal business name - # (if applicable). - # - # @return [String, nil] - optional :dba_business_name, String - - # @!attribute parent_company - # Parent company name (if applicable). - # - # @return [String, nil] - optional :parent_company, String - - # @!method initialize(address:, government_id:, legal_business_name:, phone_numbers:, dba_business_name: nil, parent_company: nil) - # Some parameter documentations has been truncated, see - # {Lithic::Models::AccountHolderCreateParams::BeneficialOwnerEntity} for more - # details. - # - # @param address [Lithic::Models::Address] Business's physical address - PO boxes, UPS drops, and FedEx drops are not accep - # - # @param government_id [String] Government-issued identification number. US Federal Employer Identification Numb - # - # @param legal_business_name [String] Legal (formal) business name. - # - # @param phone_numbers [Array] One or more of the business's phone number(s), entered as a list in E.164 format - # - # @param dba_business_name [String] Any name that the business operates under that is not its legal business name (i - # - # @param parent_company [String] Parent company name (if applicable). - end - class Individual < Lithic::Internal::Type::BaseModel # @!attribute address # Individual's current address - PO boxes, UPS drops, and FedEx drops are not diff --git a/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb b/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb index 2503f308..674278c9 100644 --- a/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +++ b/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb @@ -16,12 +16,6 @@ class AccountHolderSimulateEnrollmentReviewResponse < Lithic::Internal::Type::Ba # @return [String, nil] optional :account_token, String - # @!attribute beneficial_owner_entities - # Deprecated. - # - # @return [Array, nil] - optional :beneficial_owner_entities, -> { Lithic::Internal::Type::ArrayOf[Lithic::KYBBusinessEntity] } - # @!attribute beneficial_owner_individuals # Only present when user_type == "BUSINESS". You must submit a list of all direct # and indirect individuals with 25% or more ownership in the company. A maximum of @@ -173,7 +167,7 @@ class AccountHolderSimulateEnrollmentReviewResponse < Lithic::Internal::Type::Ba # @return [String, nil] optional :website_url, String - # @!method initialize(token: nil, account_token: nil, beneficial_owner_entities: nil, beneficial_owner_individuals: nil, business_account_token: nil, business_entity: nil, control_person: nil, created: nil, email: nil, exemption_type: nil, external_id: nil, individual: nil, naics_code: nil, nature_of_business: nil, phone_number: nil, required_documents: nil, status: nil, status_reasons: nil, user_type: nil, verification_application: nil, website_url: nil) + # @!method initialize(token: nil, account_token: nil, beneficial_owner_individuals: nil, business_account_token: nil, business_entity: nil, control_person: nil, created: nil, email: nil, exemption_type: nil, external_id: nil, individual: nil, naics_code: nil, nature_of_business: nil, phone_number: nil, required_documents: nil, status: nil, status_reasons: nil, user_type: nil, verification_application: nil, website_url: nil) # Some parameter documentations has been truncated, see # {Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse} for more # details. @@ -182,8 +176,6 @@ class AccountHolderSimulateEnrollmentReviewResponse < Lithic::Internal::Type::Ba # # @param account_token [String] Globally unique identifier for the account. # - # @param beneficial_owner_entities [Array] Deprecated. - # # @param beneficial_owner_individuals [Array] Only present when user_type == "BUSINESS". You must submit a list of all direct # # @param business_account_token [String, nil] Only applicable for customers using the KYC-Exempt workflow to enroll authorized diff --git a/lib/lithic/models/account_holder_update_params.rb b/lib/lithic/models/account_holder_update_params.rb index 6a354fb0..b772659c 100644 --- a/lib/lithic/models/account_holder_update_params.rb +++ b/lib/lithic/models/account_holder_update_params.rb @@ -7,15 +7,6 @@ class AccountHolderUpdateParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - # @!attribute beneficial_owner_entities - # @deprecated - # - # Deprecated. - # - # @return [Array, nil] - optional :beneficial_owner_entities, - -> { Lithic::Internal::Type::ArrayOf[Lithic::AccountHolderUpdateParams::BeneficialOwnerEntity] } - # @!attribute beneficial_owner_individuals # You must submit a list of all direct and indirect individuals with 25% or more # ownership in the company. A maximum of 4 beneficial owners can be submitted. If @@ -129,12 +120,10 @@ class AccountHolderUpdateParams < Lithic::Internal::Type::BaseModel # @return [String, nil] optional :phone_number, String - # @!method initialize(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: {}) + # @!method initialize(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: {}) # Some parameter documentations has been truncated, see # {Lithic::Models::AccountHolderUpdateParams} for more details. # - # @param beneficial_owner_entities [Array] Deprecated. - # # @param beneficial_owner_individuals [Array] You must submit a list of all direct and indirect individuals with 25% or more o # # @param business_entity [Lithic::Models::AccountHolderUpdateParams::BusinessEntity] Information for business for which the account is being opened and KYB is being @@ -167,74 +156,6 @@ class AccountHolderUpdateParams < Lithic::Internal::Type::BaseModel # # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] - class BeneficialOwnerEntity < Lithic::Internal::Type::BaseModel - # @!attribute entity_token - # Globally unique identifier for an entity. - # - # @return [String] - required :entity_token, String - - # @!attribute address - # Business''s physical address - PO boxes, UPS drops, and FedEx drops are not - # acceptable; APO/FPO are acceptable. - # - # @return [Lithic::Models::AddressUpdate, nil] - optional :address, -> { Lithic::AddressUpdate } - - # @!attribute dba_business_name - # Any name that the business operates under that is not its legal business name - # (if applicable). - # - # @return [String, nil] - optional :dba_business_name, String - - # @!attribute government_id - # Government-issued identification number. US Federal Employer Identification - # Numbers (EIN) are currently supported, entered as full nine-digits, with or - # without hyphens. - # - # @return [String, nil] - optional :government_id, String - - # @!attribute legal_business_name - # Legal (formal) business name. - # - # @return [String, nil] - optional :legal_business_name, String - - # @!attribute parent_company - # Parent company name (if applicable). - # - # @return [String, nil] - optional :parent_company, String - - # @!attribute phone_numbers - # One or more of the business's phone number(s), entered as a list in E.164 - # format. - # - # @return [Array, nil] - optional :phone_numbers, Lithic::Internal::Type::ArrayOf[String] - - # @!method initialize(entity_token:, address: nil, dba_business_name: nil, government_id: nil, legal_business_name: nil, parent_company: nil, phone_numbers: nil) - # Some parameter documentations has been truncated, see - # {Lithic::Models::AccountHolderUpdateParams::BeneficialOwnerEntity} for more - # details. - # - # @param entity_token [String] Globally unique identifier for an entity. - # - # @param address [Lithic::Models::AddressUpdate] Business''s physical address - PO boxes, UPS drops, and FedEx drops are not acce - # - # @param dba_business_name [String] Any name that the business operates under that is not its legal business name (i - # - # @param government_id [String] Government-issued identification number. US Federal Employer Identification Numb - # - # @param legal_business_name [String] Legal (formal) business name. - # - # @param parent_company [String] Parent company name (if applicable). - # - # @param phone_numbers [Array] One or more of the business's phone number(s), entered as a list in E.164 format - end - class BeneficialOwnerIndividual < Lithic::Internal::Type::BaseModel # @!attribute entity_token # Globally unique identifier for an entity. diff --git a/lib/lithic/models/account_holder_update_response.rb b/lib/lithic/models/account_holder_update_response.rb index e9b8e8fb..af945e51 100644 --- a/lib/lithic/models/account_holder_update_response.rb +++ b/lib/lithic/models/account_holder_update_response.rb @@ -23,12 +23,6 @@ class KYBKYCPatchResponse < Lithic::Internal::Type::BaseModel # @return [String, nil] optional :account_token, String - # @!attribute beneficial_owner_entities - # Deprecated. - # - # @return [Array, nil] - optional :beneficial_owner_entities, -> { Lithic::Internal::Type::ArrayOf[Lithic::KYBBusinessEntity] } - # @!attribute beneficial_owner_individuals # Only present when user_type == "BUSINESS". You must submit a list of all direct # and indirect individuals with 25% or more ownership in the company. A maximum of @@ -181,7 +175,7 @@ class KYBKYCPatchResponse < Lithic::Internal::Type::BaseModel # @return [String, nil] optional :website_url, String - # @!method initialize(token: nil, account_token: nil, beneficial_owner_entities: nil, beneficial_owner_individuals: nil, business_account_token: nil, business_entity: nil, control_person: nil, created: nil, email: nil, exemption_type: nil, external_id: nil, individual: nil, naics_code: nil, nature_of_business: nil, phone_number: nil, required_documents: nil, status: nil, status_reasons: nil, user_type: nil, verification_application: nil, website_url: nil) + # @!method initialize(token: nil, account_token: nil, beneficial_owner_individuals: nil, business_account_token: nil, business_entity: nil, control_person: nil, created: nil, email: nil, exemption_type: nil, external_id: nil, individual: nil, naics_code: nil, nature_of_business: nil, phone_number: nil, required_documents: nil, status: nil, status_reasons: nil, user_type: nil, verification_application: nil, website_url: nil) # Some parameter documentations has been truncated, see # {Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse} for more # details. @@ -190,8 +184,6 @@ class KYBKYCPatchResponse < Lithic::Internal::Type::BaseModel # # @param account_token [String] Globally unique identifier for the account. # - # @param beneficial_owner_entities [Array] Deprecated. - # # @param beneficial_owner_individuals [Array] Only present when user_type == "BUSINESS". You must submit a list of all direct # # @param business_account_token [String, nil] Only applicable for customers using the KYC-Exempt workflow to enroll authorized diff --git a/lib/lithic/models/account_holder_updated_webhook_event.rb b/lib/lithic/models/account_holder_updated_webhook_event.rb index 73c8e16a..9fc85e7b 100644 --- a/lib/lithic/models/account_holder_updated_webhook_event.rb +++ b/lib/lithic/models/account_holder_updated_webhook_event.rb @@ -83,14 +83,6 @@ class KYBPayload < Lithic::Internal::Type::BaseModel # @see Lithic::Models::AccountHolderUpdatedWebhookEvent::KYBPayload#update_request class UpdateRequest < Lithic::Internal::Type::BaseModel - # @!attribute beneficial_owner_entities - # @deprecated - # - # Deprecated. - # - # @return [Array, nil] - optional :beneficial_owner_entities, -> { Lithic::Internal::Type::ArrayOf[Lithic::KYBBusinessEntity] } - # @!attribute beneficial_owner_individuals # You must submit a list of all direct and indirect individuals with 25% or more # ownership in the company. A maximum of 4 beneficial owners can be submitted. If @@ -124,15 +116,13 @@ class UpdateRequest < Lithic::Internal::Type::BaseModel optional :control_person, -> { Lithic::AccountHolderUpdatedWebhookEvent::KYBPayload::UpdateRequest::ControlPerson } - # @!method initialize(beneficial_owner_entities: nil, beneficial_owner_individuals: nil, business_entity: nil, control_person: nil) + # @!method initialize(beneficial_owner_individuals: nil, business_entity: nil, control_person: nil) # Some parameter documentations has been truncated, see # {Lithic::Models::AccountHolderUpdatedWebhookEvent::KYBPayload::UpdateRequest} # for more details. # # Original request to update the account holder. # - # @param beneficial_owner_entities [Array] Deprecated. - # # @param beneficial_owner_individuals [Array] You must submit a list of all direct and indirect individuals with 25% or more o # # @param business_entity [Lithic::Models::KYBBusinessEntity] Information for business for which the account is being opened and KYB is being diff --git a/lib/lithic/models/kyb.rb b/lib/lithic/models/kyb.rb index 1021c701..c37bb815 100644 --- a/lib/lithic/models/kyb.rb +++ b/lib/lithic/models/kyb.rb @@ -56,15 +56,6 @@ class KYB < Lithic::Internal::Type::BaseModel # @return [Symbol, Lithic::Models::KYB::Workflow] required :workflow, enum: -> { Lithic::KYB::Workflow } - # @!attribute beneficial_owner_entities - # @deprecated - # - # Deprecated. - # - # @return [Array, nil] - optional :beneficial_owner_entities, - -> { Lithic::Internal::Type::ArrayOf[Lithic::KYB::BeneficialOwnerEntity] } - # @!attribute external_id # A user provided id that can be used to link an account holder with an external # system @@ -94,7 +85,7 @@ class KYB < Lithic::Internal::Type::BaseModel # @return [String, nil] optional :website_url, String - # @!method initialize(beneficial_owner_individuals:, business_entity:, control_person:, nature_of_business:, tos_timestamp:, workflow:, beneficial_owner_entities: nil, external_id: nil, kyb_passed_timestamp: nil, naics_code: nil, website_url: nil) + # @!method initialize(beneficial_owner_individuals:, business_entity:, control_person:, nature_of_business:, tos_timestamp:, workflow:, external_id: nil, kyb_passed_timestamp: nil, naics_code: nil, website_url: nil) # Some parameter documentations has been truncated, see {Lithic::Models::KYB} for # more details. # @@ -110,8 +101,6 @@ class KYB < Lithic::Internal::Type::BaseModel # # @param workflow [Symbol, Lithic::Models::KYB::Workflow] Specifies the type of KYB workflow to run. # - # @param beneficial_owner_entities [Array] Deprecated. - # # @param external_id [String] A user provided id that can be used to link an account holder with an external s # # @param kyb_passed_timestamp [String] An RFC 3339 timestamp indicating when precomputed KYB was completed on the busin @@ -341,65 +330,6 @@ module Workflow # @!method self.values # @return [Array] end - - class BeneficialOwnerEntity < Lithic::Internal::Type::BaseModel - # @!attribute address - # Business's physical address - PO boxes, UPS drops, and FedEx drops are not - # acceptable; APO/FPO are acceptable. - # - # @return [Lithic::Models::Address] - required :address, -> { Lithic::Address } - - # @!attribute government_id - # Government-issued identification number. US Federal Employer Identification - # Numbers (EIN) are currently supported, entered as full nine-digits, with or - # without hyphens. - # - # @return [String] - required :government_id, String - - # @!attribute legal_business_name - # Legal (formal) business name. - # - # @return [String] - required :legal_business_name, String - - # @!attribute phone_numbers - # One or more of the business's phone number(s), entered as a list in E.164 - # format. - # - # @return [Array] - required :phone_numbers, Lithic::Internal::Type::ArrayOf[String] - - # @!attribute dba_business_name - # Any name that the business operates under that is not its legal business name - # (if applicable). - # - # @return [String, nil] - optional :dba_business_name, String - - # @!attribute parent_company - # Parent company name (if applicable). - # - # @return [String, nil] - optional :parent_company, String - - # @!method initialize(address:, government_id:, legal_business_name:, phone_numbers:, dba_business_name: nil, parent_company: nil) - # Some parameter documentations has been truncated, see - # {Lithic::Models::KYB::BeneficialOwnerEntity} for more details. - # - # @param address [Lithic::Models::Address] Business's physical address - PO boxes, UPS drops, and FedEx drops are not accep - # - # @param government_id [String] Government-issued identification number. US Federal Employer Identification Numb - # - # @param legal_business_name [String] Legal (formal) business name. - # - # @param phone_numbers [Array] One or more of the business's phone number(s), entered as a list in E.164 format - # - # @param dba_business_name [String] Any name that the business operates under that is not its legal business name (i - # - # @param parent_company [String] Parent company name (if applicable). - end end end end diff --git a/lib/lithic/models/parsed_webhook_event.rb b/lib/lithic/models/parsed_webhook_event.rb index e4731586..315edf85 100644 --- a/lib/lithic/models/parsed_webhook_event.rb +++ b/lib/lithic/models/parsed_webhook_event.rb @@ -205,14 +205,6 @@ class KYBPayload < Lithic::Internal::Type::BaseModel # @see Lithic::Models::ParsedWebhookEvent::KYBPayload#update_request class UpdateRequest < Lithic::Internal::Type::BaseModel - # @!attribute beneficial_owner_entities - # @deprecated - # - # Deprecated. - # - # @return [Array, nil] - optional :beneficial_owner_entities, -> { Lithic::Internal::Type::ArrayOf[Lithic::KYBBusinessEntity] } - # @!attribute beneficial_owner_individuals # You must submit a list of all direct and indirect individuals with 25% or more # ownership in the company. A maximum of 4 beneficial owners can be submitted. If @@ -245,15 +237,13 @@ class UpdateRequest < Lithic::Internal::Type::BaseModel # @return [Lithic::Models::ParsedWebhookEvent::KYBPayload::UpdateRequest::ControlPerson, nil] optional :control_person, -> { Lithic::ParsedWebhookEvent::KYBPayload::UpdateRequest::ControlPerson } - # @!method initialize(beneficial_owner_entities: nil, beneficial_owner_individuals: nil, business_entity: nil, control_person: nil) + # @!method initialize(beneficial_owner_individuals: nil, business_entity: nil, control_person: nil) # Some parameter documentations has been truncated, see # {Lithic::Models::ParsedWebhookEvent::KYBPayload::UpdateRequest} for more # details. # # Original request to update the account holder. # - # @param beneficial_owner_entities [Array] Deprecated. - # # @param beneficial_owner_individuals [Array] You must submit a list of all direct and indirect individuals with 25% or more o # # @param business_entity [Lithic::Models::KYBBusinessEntity] Information for business for which the account is being opened and KYB is being diff --git a/lib/lithic/resources/account_holders.rb b/lib/lithic/resources/account_holders.rb index 7a7bb6b9..2f0d6292 100644 --- a/lib/lithic/resources/account_holders.rb +++ b/lib/lithic/resources/account_holders.rb @@ -18,7 +18,7 @@ class AccountHolders # process. This endpoint can only be used on accounts that are part of the program # that the calling API key manages. # - # @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: {}) + # @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, external_id: nil, kyb_passed_timestamp: nil, naics_code: nil, website_url: nil, kyc_passed_timestamp: nil, business_account_token: nil, request_options: {}) # # @param business_entity [Lithic::Models::AccountHolderCreateParams::BusinessEntity] Information for business for which the account is being opened. # @@ -46,8 +46,6 @@ class AccountHolders # # @param nature_of_business [String] Short description of the company's line of business (i.e., what does the company # - # @param beneficial_owner_entities [Array] Deprecated. - # # @param external_id [String] A user provided id that can be used to link an account holder with an external s # # @param kyb_passed_timestamp [String] An RFC 3339 timestamp indicating when precomputed KYB was completed on the busin @@ -111,12 +109,10 @@ def retrieve(account_holder_token, params = {}) # process. This endpoint can only be used on existing accounts that are part of # the program that the calling API key manages. # - # @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: {}) + # @overload update(account_holder_token, 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: {}) # # @param account_holder_token [String] Globally unique identifier for the account holder. # - # @param beneficial_owner_entities [Array] Deprecated. - # # @param beneficial_owner_individuals [Array] You must submit a list of all direct and indirect individuals with 25% or more o # # @param business_entity [Lithic::Models::AccountHolderUpdateParams::BusinessEntity] Information for business for which the account is being opened and KYB is being diff --git a/lib/lithic/resources/account_holders/entities.rb b/lib/lithic/resources/account_holders/entities.rb index 43920529..16f3e879 100644 --- a/lib/lithic/resources/account_holders/entities.rb +++ b/lib/lithic/resources/account_holders/entities.rb @@ -7,8 +7,8 @@ class Entities # Some parameter documentations has been truncated, see # {Lithic::Models::AccountHolders::EntityCreateParams} for more details. # - # Create a new beneficial owner or replace the control person entity on an - # existing KYB account holder. This endpoint is only applicable for account + # Create a new beneficial owner individual or replace the control person entity on + # an existing KYB account holder. This endpoint is only applicable for account # holders enrolled through a KYB workflow with the Persona KYB provider. A new # control person can only replace the existing one. A maximum of 4 beneficial # owners can be associated with an account holder. @@ -49,8 +49,8 @@ def create(account_holder_token, params) ) end - # Deactivate a beneficial owner entity on an existing KYB account holder. Only - # beneficial owner entities can be deactivated. + # Deactivate a beneficial owner individual on an existing KYB account holder. Only + # beneficial owner individuals can be deactivated. # # @overload delete(entity_token, account_holder_token:, request_options: {}) # diff --git a/rbi/lithic/models/account_holder.rbi b/rbi/lithic/models/account_holder.rbi index 00d02f61..b4e497f9 100644 --- a/rbi/lithic/models/account_holder.rbi +++ b/rbi/lithic/models/account_holder.rbi @@ -21,22 +21,6 @@ module Lithic sig { params(account_token: String).void } attr_writer :account_token - # Deprecated. - sig do - returns( - T.nilable(T::Array[Lithic::AccountHolder::BeneficialOwnerEntity]) - ) - end - attr_reader :beneficial_owner_entities - - sig do - params( - beneficial_owner_entities: - T::Array[Lithic::AccountHolder::BeneficialOwnerEntity::OrHash] - ).void - end - attr_writer :beneficial_owner_entities - # Only present when user_type == "BUSINESS". You must submit a list of all direct # and indirect individuals with 25% or more ownership in the company. A maximum of # 4 beneficial owners can be submitted. If no individual owns 25% of the company @@ -235,8 +219,6 @@ module Lithic token: String, created: Time, account_token: String, - beneficial_owner_entities: - T::Array[Lithic::AccountHolder::BeneficialOwnerEntity::OrHash], beneficial_owner_individuals: T::Array[Lithic::AccountHolder::BeneficialOwnerIndividual::OrHash], business_account_token: String, @@ -266,8 +248,6 @@ module Lithic created:, # Globally unique identifier for the account. account_token: nil, - # Deprecated. - beneficial_owner_entities: nil, # Only present when user_type == "BUSINESS". You must submit a list of all direct # and indirect individuals with 25% or more ownership in the company. A maximum of # 4 beneficial owners can be submitted. If no individual owns 25% of the company @@ -344,8 +324,6 @@ module Lithic token: String, created: Time, account_token: String, - beneficial_owner_entities: - T::Array[Lithic::AccountHolder::BeneficialOwnerEntity], beneficial_owner_individuals: T::Array[Lithic::AccountHolder::BeneficialOwnerIndividual], business_account_token: String, @@ -372,105 +350,6 @@ module Lithic def to_hash end - class BeneficialOwnerEntity < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::AccountHolder::BeneficialOwnerEntity, - Lithic::Internal::AnyHash - ) - end - - # Business's physical address - PO boxes, UPS drops, and FedEx drops are not - # acceptable; APO/FPO are acceptable. - sig { returns(Lithic::Address) } - attr_reader :address - - sig { params(address: Lithic::Address::OrHash).void } - attr_writer :address - - # Any name that the business operates under that is not its legal business name - # (if applicable). - sig { returns(String) } - attr_accessor :dba_business_name - - # Globally unique identifier for the entity. - sig { returns(String) } - attr_accessor :entity_token - - # Government-issued identification number. US Federal Employer Identification - # Numbers (EIN) are currently supported, entered as full nine-digits, with or - # without hyphens. - sig { returns(String) } - attr_accessor :government_id - - # Legal (formal) business name. - sig { returns(String) } - attr_accessor :legal_business_name - - # One or more of the business's phone number(s), entered as a list in E.164 - # format. - sig { returns(T::Array[String]) } - attr_accessor :phone_numbers - - # Parent company name (if applicable). - sig { returns(T.nilable(String)) } - attr_reader :parent_company - - sig { params(parent_company: String).void } - attr_writer :parent_company - - sig do - params( - address: Lithic::Address::OrHash, - dba_business_name: String, - entity_token: String, - government_id: String, - legal_business_name: String, - phone_numbers: T::Array[String], - parent_company: String - ).returns(T.attached_class) - end - def self.new( - # Business's physical address - PO boxes, UPS drops, and FedEx drops are not - # acceptable; APO/FPO are acceptable. - address:, - # Any name that the business operates under that is not its legal business name - # (if applicable). - dba_business_name:, - # Globally unique identifier for the entity. - entity_token:, - # Government-issued identification number. US Federal Employer Identification - # Numbers (EIN) are currently supported, entered as full nine-digits, with or - # without hyphens. - government_id:, - # Legal (formal) business name. - legal_business_name:, - # One or more of the business's phone number(s), entered as a list in E.164 - # format. - phone_numbers:, - # Parent company name (if applicable). - parent_company: nil - ) - end - - sig do - override.returns( - { - address: Lithic::Address, - dba_business_name: String, - entity_token: String, - government_id: String, - legal_business_name: String, - phone_numbers: T::Array[String], - parent_company: String - } - ) - end - def to_hash - end - end - class BeneficialOwnerIndividual < Lithic::Internal::Type::BaseModel OrHash = T.type_alias do diff --git a/rbi/lithic/models/account_holder_create_params.rbi b/rbi/lithic/models/account_holder_create_params.rbi index 388db64f..2cef3aa4 100644 --- a/rbi/lithic/models/account_holder_create_params.rbi +++ b/rbi/lithic/models/account_holder_create_params.rbi @@ -89,26 +89,6 @@ module Lithic sig { returns(Lithic::AccountHolderCreateParams::Workflow::OrSymbol) } attr_accessor :workflow - # Deprecated. - sig do - returns( - T.nilable( - T::Array[Lithic::AccountHolderCreateParams::BeneficialOwnerEntity] - ) - ) - end - attr_reader :beneficial_owner_entities - - sig do - params( - beneficial_owner_entities: - T::Array[ - Lithic::AccountHolderCreateParams::BeneficialOwnerEntity::OrHash - ] - ).void - end - attr_writer :beneficial_owner_entities - # A user provided id that can be used to link an account holder with an external # system sig { returns(T.nilable(String)) } @@ -224,10 +204,6 @@ module Lithic control_person: Lithic::AccountHolderCreateParams::ControlPerson::OrHash, nature_of_business: String, - beneficial_owner_entities: - T::Array[ - Lithic::AccountHolderCreateParams::BeneficialOwnerEntity::OrHash - ], external_id: String, kyb_passed_timestamp: String, naics_code: String, @@ -281,8 +257,6 @@ module Lithic # Short description of the company's line of business (i.e., what does the company # do?). nature_of_business: nil, - # Deprecated. - beneficial_owner_entities: nil, # A user provided id that can be used to link an account holder with an external # system external_id: nil, @@ -321,10 +295,6 @@ module Lithic nature_of_business: String, tos_timestamp: String, workflow: Lithic::AccountHolderCreateParams::Workflow::OrSymbol, - beneficial_owner_entities: - T::Array[ - Lithic::AccountHolderCreateParams::BeneficialOwnerEntity - ], external_id: String, kyb_passed_timestamp: String, naics_code: String, @@ -679,100 +649,6 @@ module Lithic end end - class BeneficialOwnerEntity < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::AccountHolderCreateParams::BeneficialOwnerEntity, - Lithic::Internal::AnyHash - ) - end - - # Business's physical address - PO boxes, UPS drops, and FedEx drops are not - # acceptable; APO/FPO are acceptable. - sig { returns(Lithic::Address) } - attr_reader :address - - sig { params(address: Lithic::Address::OrHash).void } - attr_writer :address - - # Government-issued identification number. US Federal Employer Identification - # Numbers (EIN) are currently supported, entered as full nine-digits, with or - # without hyphens. - sig { returns(String) } - attr_accessor :government_id - - # Legal (formal) business name. - sig { returns(String) } - attr_accessor :legal_business_name - - # One or more of the business's phone number(s), entered as a list in E.164 - # format. - sig { returns(T::Array[String]) } - attr_accessor :phone_numbers - - # Any name that the business operates under that is not its legal business name - # (if applicable). - sig { returns(T.nilable(String)) } - attr_reader :dba_business_name - - sig { params(dba_business_name: String).void } - attr_writer :dba_business_name - - # Parent company name (if applicable). - sig { returns(T.nilable(String)) } - attr_reader :parent_company - - sig { params(parent_company: String).void } - attr_writer :parent_company - - sig do - params( - address: Lithic::Address::OrHash, - government_id: String, - legal_business_name: String, - phone_numbers: T::Array[String], - dba_business_name: String, - parent_company: String - ).returns(T.attached_class) - end - def self.new( - # Business's physical address - PO boxes, UPS drops, and FedEx drops are not - # acceptable; APO/FPO are acceptable. - address:, - # Government-issued identification number. US Federal Employer Identification - # Numbers (EIN) are currently supported, entered as full nine-digits, with or - # without hyphens. - government_id:, - # Legal (formal) business name. - legal_business_name:, - # One or more of the business's phone number(s), entered as a list in E.164 - # format. - phone_numbers:, - # Any name that the business operates under that is not its legal business name - # (if applicable). - dba_business_name: nil, - # Parent company name (if applicable). - parent_company: nil - ) - end - - sig do - override.returns( - { - address: Lithic::Address, - government_id: String, - legal_business_name: String, - phone_numbers: T::Array[String], - dba_business_name: String, - parent_company: String - } - ) - end - def to_hash - end - end - class Individual < Lithic::Internal::Type::BaseModel OrHash = T.type_alias do diff --git a/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi b/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi index 2e06b2fe..ebdaed3c 100644 --- a/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +++ b/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi @@ -25,17 +25,6 @@ module Lithic sig { params(account_token: String).void } attr_writer :account_token - # Deprecated. - sig { returns(T.nilable(T::Array[Lithic::KYBBusinessEntity])) } - attr_reader :beneficial_owner_entities - - sig do - params( - beneficial_owner_entities: T::Array[Lithic::KYBBusinessEntity::OrHash] - ).void - end - attr_writer :beneficial_owner_entities - # Only present when user_type == "BUSINESS". You must submit a list of all direct # and indirect individuals with 25% or more ownership in the company. A maximum of # 4 beneficial owners can be submitted. If no individual owns 25% of the company @@ -301,8 +290,6 @@ module Lithic params( token: String, account_token: String, - beneficial_owner_entities: - T::Array[Lithic::KYBBusinessEntity::OrHash], beneficial_owner_individuals: T::Array[ Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::BeneficialOwnerIndividual::OrHash @@ -340,8 +327,6 @@ module Lithic token: nil, # Globally unique identifier for the account. account_token: nil, - # Deprecated. - beneficial_owner_entities: nil, # Only present when user_type == "BUSINESS". You must submit a list of all direct # and indirect individuals with 25% or more ownership in the company. A maximum of # 4 beneficial owners can be submitted. If no individual owns 25% of the company @@ -424,7 +409,6 @@ module Lithic { token: String, account_token: String, - beneficial_owner_entities: T::Array[Lithic::KYBBusinessEntity], beneficial_owner_individuals: T::Array[ Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::BeneficialOwnerIndividual diff --git a/rbi/lithic/models/account_holder_update_params.rbi b/rbi/lithic/models/account_holder_update_params.rbi index 0f63b1c1..7d5aa2a4 100644 --- a/rbi/lithic/models/account_holder_update_params.rbi +++ b/rbi/lithic/models/account_holder_update_params.rbi @@ -11,26 +11,6 @@ module Lithic T.any(Lithic::AccountHolderUpdateParams, Lithic::Internal::AnyHash) end - # Deprecated. - sig do - returns( - T.nilable( - T::Array[Lithic::AccountHolderUpdateParams::BeneficialOwnerEntity] - ) - ) - end - attr_reader :beneficial_owner_entities - - sig do - params( - beneficial_owner_entities: - T::Array[ - Lithic::AccountHolderUpdateParams::BeneficialOwnerEntity::OrHash - ] - ).void - end - attr_writer :beneficial_owner_entities - # You must submit a list of all direct and indirect individuals with 25% or more # ownership in the company. A maximum of 4 beneficial owners can be submitted. If # no individual owns 25% of the company you do not need to send beneficial owner @@ -193,10 +173,6 @@ module Lithic sig do params( - beneficial_owner_entities: - T::Array[ - Lithic::AccountHolderUpdateParams::BeneficialOwnerEntity::OrHash - ], beneficial_owner_individuals: T::Array[ Lithic::AccountHolderUpdateParams::BeneficialOwnerIndividual::OrHash @@ -221,8 +197,6 @@ module Lithic ).returns(T.attached_class) end def self.new( - # Deprecated. - beneficial_owner_entities: nil, # You must submit a list of all direct and indirect individuals with 25% or more # ownership in the company. A maximum of 4 beneficial owners can be submitted. If # no individual owns 25% of the company you do not need to send beneficial owner @@ -282,10 +256,6 @@ module Lithic sig do override.returns( { - beneficial_owner_entities: - T::Array[ - Lithic::AccountHolderUpdateParams::BeneficialOwnerEntity - ], beneficial_owner_individuals: T::Array[ Lithic::AccountHolderUpdateParams::BeneficialOwnerIndividual @@ -311,117 +281,6 @@ module Lithic def to_hash end - class BeneficialOwnerEntity < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::AccountHolderUpdateParams::BeneficialOwnerEntity, - Lithic::Internal::AnyHash - ) - end - - # Globally unique identifier for an entity. - sig { returns(String) } - attr_accessor :entity_token - - # Business''s physical address - PO boxes, UPS drops, and FedEx drops are not - # acceptable; APO/FPO are acceptable. - sig { returns(T.nilable(Lithic::AddressUpdate)) } - attr_reader :address - - sig { params(address: Lithic::AddressUpdate::OrHash).void } - attr_writer :address - - # Any name that the business operates under that is not its legal business name - # (if applicable). - sig { returns(T.nilable(String)) } - attr_reader :dba_business_name - - sig { params(dba_business_name: String).void } - attr_writer :dba_business_name - - # Government-issued identification number. US Federal Employer Identification - # Numbers (EIN) are currently supported, entered as full nine-digits, with or - # without hyphens. - sig { returns(T.nilable(String)) } - attr_reader :government_id - - sig { params(government_id: String).void } - attr_writer :government_id - - # Legal (formal) business name. - sig { returns(T.nilable(String)) } - attr_reader :legal_business_name - - sig { params(legal_business_name: String).void } - attr_writer :legal_business_name - - # Parent company name (if applicable). - sig { returns(T.nilable(String)) } - attr_reader :parent_company - - sig { params(parent_company: String).void } - attr_writer :parent_company - - # One or more of the business's phone number(s), entered as a list in E.164 - # format. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :phone_numbers - - sig { params(phone_numbers: T::Array[String]).void } - attr_writer :phone_numbers - - sig do - params( - entity_token: String, - address: Lithic::AddressUpdate::OrHash, - dba_business_name: String, - government_id: String, - legal_business_name: String, - parent_company: String, - phone_numbers: T::Array[String] - ).returns(T.attached_class) - end - def self.new( - # Globally unique identifier for an entity. - entity_token:, - # Business''s physical address - PO boxes, UPS drops, and FedEx drops are not - # acceptable; APO/FPO are acceptable. - address: nil, - # Any name that the business operates under that is not its legal business name - # (if applicable). - dba_business_name: nil, - # Government-issued identification number. US Federal Employer Identification - # Numbers (EIN) are currently supported, entered as full nine-digits, with or - # without hyphens. - government_id: nil, - # Legal (formal) business name. - legal_business_name: nil, - # Parent company name (if applicable). - parent_company: nil, - # One or more of the business's phone number(s), entered as a list in E.164 - # format. - phone_numbers: nil - ) - end - - sig do - override.returns( - { - entity_token: String, - address: Lithic::AddressUpdate, - dba_business_name: String, - government_id: String, - legal_business_name: String, - parent_company: String, - phone_numbers: T::Array[String] - } - ) - end - def to_hash - end - end - class BeneficialOwnerIndividual < Lithic::Internal::Type::BaseModel OrHash = T.type_alias do diff --git a/rbi/lithic/models/account_holder_update_response.rbi b/rbi/lithic/models/account_holder_update_response.rbi index 06b08dca..ef701d7d 100644 --- a/rbi/lithic/models/account_holder_update_response.rbi +++ b/rbi/lithic/models/account_holder_update_response.rbi @@ -36,18 +36,6 @@ module Lithic sig { params(account_token: String).void } attr_writer :account_token - # Deprecated. - sig { returns(T.nilable(T::Array[Lithic::KYBBusinessEntity])) } - attr_reader :beneficial_owner_entities - - sig do - params( - beneficial_owner_entities: - T::Array[Lithic::KYBBusinessEntity::OrHash] - ).void - end - attr_writer :beneficial_owner_entities - # Only present when user_type == "BUSINESS". You must submit a list of all direct # and indirect individuals with 25% or more ownership in the company. A maximum of # 4 beneficial owners can be submitted. If no individual owns 25% of the company @@ -313,8 +301,6 @@ module Lithic params( token: String, account_token: String, - beneficial_owner_entities: - T::Array[Lithic::KYBBusinessEntity::OrHash], beneficial_owner_individuals: T::Array[ Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::BeneficialOwnerIndividual::OrHash @@ -352,8 +338,6 @@ module Lithic token: nil, # Globally unique identifier for the account. account_token: nil, - # Deprecated. - beneficial_owner_entities: nil, # Only present when user_type == "BUSINESS". You must submit a list of all direct # and indirect individuals with 25% or more ownership in the company. A maximum of # 4 beneficial owners can be submitted. If no individual owns 25% of the company @@ -436,7 +420,6 @@ module Lithic { token: String, account_token: String, - beneficial_owner_entities: T::Array[Lithic::KYBBusinessEntity], beneficial_owner_individuals: T::Array[ Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::BeneficialOwnerIndividual diff --git a/rbi/lithic/models/account_holder_updated_webhook_event.rbi b/rbi/lithic/models/account_holder_updated_webhook_event.rbi index 15d0a4ce..b446b113 100644 --- a/rbi/lithic/models/account_holder_updated_webhook_event.rbi +++ b/rbi/lithic/models/account_holder_updated_webhook_event.rbi @@ -155,18 +155,6 @@ module Lithic ) end - # Deprecated. - sig { returns(T.nilable(T::Array[Lithic::KYBBusinessEntity])) } - attr_reader :beneficial_owner_entities - - sig do - params( - beneficial_owner_entities: - T::Array[Lithic::KYBBusinessEntity::OrHash] - ).void - end - attr_writer :beneficial_owner_entities - # You must submit a list of all direct and indirect individuals with 25% or more # ownership in the company. A maximum of 4 beneficial owners can be submitted. If # no individual owns 25% of the company you do not need to send beneficial owner @@ -232,8 +220,6 @@ module Lithic # Original request to update the account holder. sig do params( - beneficial_owner_entities: - T::Array[Lithic::KYBBusinessEntity::OrHash], beneficial_owner_individuals: T::Array[ Lithic::AccountHolderUpdatedWebhookEvent::KYBPayload::UpdateRequest::BeneficialOwnerIndividual::OrHash @@ -244,8 +230,6 @@ module Lithic ).returns(T.attached_class) end def self.new( - # Deprecated. - beneficial_owner_entities: nil, # You must submit a list of all direct and indirect individuals with 25% or more # ownership in the company. A maximum of 4 beneficial owners can be submitted. If # no individual owns 25% of the company you do not need to send beneficial owner @@ -271,7 +255,6 @@ module Lithic sig do override.returns( { - beneficial_owner_entities: T::Array[Lithic::KYBBusinessEntity], beneficial_owner_individuals: T::Array[ Lithic::AccountHolderUpdatedWebhookEvent::KYBPayload::UpdateRequest::BeneficialOwnerIndividual diff --git a/rbi/lithic/models/kyb.rbi b/rbi/lithic/models/kyb.rbi index 81060ed8..eeedb1a0 100644 --- a/rbi/lithic/models/kyb.rbi +++ b/rbi/lithic/models/kyb.rbi @@ -51,18 +51,6 @@ module Lithic sig { returns(Lithic::KYB::Workflow::OrSymbol) } attr_accessor :workflow - # Deprecated. - sig { returns(T.nilable(T::Array[Lithic::KYB::BeneficialOwnerEntity])) } - attr_reader :beneficial_owner_entities - - sig do - params( - beneficial_owner_entities: - T::Array[Lithic::KYB::BeneficialOwnerEntity::OrHash] - ).void - end - attr_writer :beneficial_owner_entities - # A user provided id that can be used to link an account holder with an external # system sig { returns(T.nilable(String)) } @@ -105,8 +93,6 @@ module Lithic nature_of_business: String, tos_timestamp: String, workflow: Lithic::KYB::Workflow::OrSymbol, - beneficial_owner_entities: - T::Array[Lithic::KYB::BeneficialOwnerEntity::OrHash], external_id: String, kyb_passed_timestamp: String, naics_code: String, @@ -142,8 +128,6 @@ module Lithic tos_timestamp:, # Specifies the type of KYB workflow to run. workflow:, - # Deprecated. - beneficial_owner_entities: nil, # A user provided id that can be used to link an account holder with an external # system external_id: nil, @@ -170,8 +154,6 @@ module Lithic nature_of_business: String, tos_timestamp: String, workflow: Lithic::KYB::Workflow::OrSymbol, - beneficial_owner_entities: - T::Array[Lithic::KYB::BeneficialOwnerEntity], external_id: String, kyb_passed_timestamp: String, naics_code: String, @@ -493,97 +475,6 @@ module Lithic def self.values end end - - class BeneficialOwnerEntity < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any(Lithic::KYB::BeneficialOwnerEntity, Lithic::Internal::AnyHash) - end - - # Business's physical address - PO boxes, UPS drops, and FedEx drops are not - # acceptable; APO/FPO are acceptable. - sig { returns(Lithic::Address) } - attr_reader :address - - sig { params(address: Lithic::Address::OrHash).void } - attr_writer :address - - # Government-issued identification number. US Federal Employer Identification - # Numbers (EIN) are currently supported, entered as full nine-digits, with or - # without hyphens. - sig { returns(String) } - attr_accessor :government_id - - # Legal (formal) business name. - sig { returns(String) } - attr_accessor :legal_business_name - - # One or more of the business's phone number(s), entered as a list in E.164 - # format. - sig { returns(T::Array[String]) } - attr_accessor :phone_numbers - - # Any name that the business operates under that is not its legal business name - # (if applicable). - sig { returns(T.nilable(String)) } - attr_reader :dba_business_name - - sig { params(dba_business_name: String).void } - attr_writer :dba_business_name - - # Parent company name (if applicable). - sig { returns(T.nilable(String)) } - attr_reader :parent_company - - sig { params(parent_company: String).void } - attr_writer :parent_company - - sig do - params( - address: Lithic::Address::OrHash, - government_id: String, - legal_business_name: String, - phone_numbers: T::Array[String], - dba_business_name: String, - parent_company: String - ).returns(T.attached_class) - end - def self.new( - # Business's physical address - PO boxes, UPS drops, and FedEx drops are not - # acceptable; APO/FPO are acceptable. - address:, - # Government-issued identification number. US Federal Employer Identification - # Numbers (EIN) are currently supported, entered as full nine-digits, with or - # without hyphens. - government_id:, - # Legal (formal) business name. - legal_business_name:, - # One or more of the business's phone number(s), entered as a list in E.164 - # format. - phone_numbers:, - # Any name that the business operates under that is not its legal business name - # (if applicable). - dba_business_name: nil, - # Parent company name (if applicable). - parent_company: nil - ) - end - - sig do - override.returns( - { - address: Lithic::Address, - government_id: String, - legal_business_name: String, - phone_numbers: T::Array[String], - dba_business_name: String, - parent_company: String - } - ) - end - def to_hash - end - end end end end diff --git a/rbi/lithic/models/parsed_webhook_event.rbi b/rbi/lithic/models/parsed_webhook_event.rbi index 9dbd4c3c..1869e891 100644 --- a/rbi/lithic/models/parsed_webhook_event.rbi +++ b/rbi/lithic/models/parsed_webhook_event.rbi @@ -206,18 +206,6 @@ module Lithic ) end - # Deprecated. - sig { returns(T.nilable(T::Array[Lithic::KYBBusinessEntity])) } - attr_reader :beneficial_owner_entities - - sig do - params( - beneficial_owner_entities: - T::Array[Lithic::KYBBusinessEntity::OrHash] - ).void - end - attr_writer :beneficial_owner_entities - # You must submit a list of all direct and indirect individuals with 25% or more # ownership in the company. A maximum of 4 beneficial owners can be submitted. If # no individual owns 25% of the company you do not need to send beneficial owner @@ -283,8 +271,6 @@ module Lithic # Original request to update the account holder. sig do params( - beneficial_owner_entities: - T::Array[Lithic::KYBBusinessEntity::OrHash], beneficial_owner_individuals: T::Array[ Lithic::ParsedWebhookEvent::KYBPayload::UpdateRequest::BeneficialOwnerIndividual::OrHash @@ -295,8 +281,6 @@ module Lithic ).returns(T.attached_class) end def self.new( - # Deprecated. - beneficial_owner_entities: nil, # You must submit a list of all direct and indirect individuals with 25% or more # ownership in the company. A maximum of 4 beneficial owners can be submitted. If # no individual owns 25% of the company you do not need to send beneficial owner @@ -322,7 +306,6 @@ module Lithic sig do override.returns( { - beneficial_owner_entities: T::Array[Lithic::KYBBusinessEntity], beneficial_owner_individuals: T::Array[ Lithic::ParsedWebhookEvent::KYBPayload::UpdateRequest::BeneficialOwnerIndividual diff --git a/rbi/lithic/resources/account_holders.rbi b/rbi/lithic/resources/account_holders.rbi index 76136675..3cde790b 100644 --- a/rbi/lithic/resources/account_holders.rbi +++ b/rbi/lithic/resources/account_holders.rbi @@ -35,10 +35,6 @@ module Lithic control_person: Lithic::AccountHolderCreateParams::ControlPerson::OrHash, nature_of_business: String, - beneficial_owner_entities: - T::Array[ - Lithic::AccountHolderCreateParams::BeneficialOwnerEntity::OrHash - ], external_id: String, kyb_passed_timestamp: String, naics_code: String, @@ -92,8 +88,6 @@ module Lithic # Short description of the company's line of business (i.e., what does the company # do?). nature_of_business: nil, - # Deprecated. - beneficial_owner_entities: nil, # A user provided id that can be used to link an account holder with an external # system external_id: nil, @@ -148,10 +142,6 @@ module Lithic sig do params( account_holder_token: String, - beneficial_owner_entities: - T::Array[ - Lithic::AccountHolderUpdateParams::BeneficialOwnerEntity::OrHash - ], beneficial_owner_individuals: T::Array[ Lithic::AccountHolderUpdateParams::BeneficialOwnerIndividual::OrHash @@ -178,8 +168,6 @@ module Lithic def update( # Globally unique identifier for the account holder. account_holder_token, - # Deprecated. - beneficial_owner_entities: nil, # You must submit a list of all direct and indirect individuals with 25% or more # ownership in the company. A maximum of 4 beneficial owners can be submitted. If # no individual owns 25% of the company you do not need to send beneficial owner diff --git a/rbi/lithic/resources/account_holders/entities.rbi b/rbi/lithic/resources/account_holders/entities.rbi index be313551..d9811ebe 100644 --- a/rbi/lithic/resources/account_holders/entities.rbi +++ b/rbi/lithic/resources/account_holders/entities.rbi @@ -4,8 +4,8 @@ module Lithic module Resources class AccountHolders class Entities - # Create a new beneficial owner or replace the control person entity on an - # existing KYB account holder. This endpoint is only applicable for account + # Create a new beneficial owner individual or replace the control person entity on + # an existing KYB account holder. This endpoint is only applicable for account # holders enrolled through a KYB workflow with the Persona KYB provider. A new # control person can only replace the existing one. A maximum of 4 beneficial # owners can be associated with an account holder. @@ -52,8 +52,8 @@ module Lithic ) end - # Deactivate a beneficial owner entity on an existing KYB account holder. Only - # beneficial owner entities can be deactivated. + # Deactivate a beneficial owner individual on an existing KYB account holder. Only + # beneficial owner individuals can be deactivated. sig do params( entity_token: String, diff --git a/sig/lithic/models/account_holder.rbs b/sig/lithic/models/account_holder.rbs index 47d6d6d9..e17ace23 100644 --- a/sig/lithic/models/account_holder.rbs +++ b/sig/lithic/models/account_holder.rbs @@ -5,7 +5,6 @@ module Lithic token: String, created: Time, account_token: String, - beneficial_owner_entities: ::Array[Lithic::AccountHolder::BeneficialOwnerEntity], beneficial_owner_individuals: ::Array[Lithic::AccountHolder::BeneficialOwnerIndividual], business_account_token: String, business_entity: Lithic::AccountHolder::BusinessEntity, @@ -34,12 +33,6 @@ module Lithic def account_token=: (String) -> String - attr_reader beneficial_owner_entities: ::Array[Lithic::AccountHolder::BeneficialOwnerEntity]? - - def beneficial_owner_entities=: ( - ::Array[Lithic::AccountHolder::BeneficialOwnerEntity] - ) -> ::Array[Lithic::AccountHolder::BeneficialOwnerEntity] - attr_reader beneficial_owner_individuals: ::Array[Lithic::AccountHolder::BeneficialOwnerIndividual]? def beneficial_owner_individuals=: ( @@ -132,7 +125,6 @@ module Lithic token: String, created: Time, ?account_token: String, - ?beneficial_owner_entities: ::Array[Lithic::AccountHolder::BeneficialOwnerEntity], ?beneficial_owner_individuals: ::Array[Lithic::AccountHolder::BeneficialOwnerIndividual], ?business_account_token: String, ?business_entity: Lithic::AccountHolder::BusinessEntity, @@ -156,7 +148,6 @@ module Lithic token: String, created: Time, account_token: String, - beneficial_owner_entities: ::Array[Lithic::AccountHolder::BeneficialOwnerEntity], beneficial_owner_individuals: ::Array[Lithic::AccountHolder::BeneficialOwnerIndividual], business_account_token: String, business_entity: Lithic::AccountHolder::BusinessEntity, @@ -176,55 +167,6 @@ module Lithic website_url: String } - type beneficial_owner_entity = - { - address: Lithic::Address, - dba_business_name: String, - entity_token: String, - government_id: String, - legal_business_name: String, - phone_numbers: ::Array[String], - parent_company: String - } - - class BeneficialOwnerEntity < Lithic::Internal::Type::BaseModel - attr_accessor address: Lithic::Address - - attr_accessor dba_business_name: String - - attr_accessor entity_token: String - - attr_accessor government_id: String - - attr_accessor legal_business_name: String - - attr_accessor phone_numbers: ::Array[String] - - attr_reader parent_company: String? - - def parent_company=: (String) -> String - - def initialize: ( - address: Lithic::Address, - dba_business_name: String, - entity_token: String, - government_id: String, - legal_business_name: String, - phone_numbers: ::Array[String], - ?parent_company: String - ) -> void - - def to_hash: -> { - address: Lithic::Address, - dba_business_name: String, - entity_token: String, - government_id: String, - legal_business_name: String, - phone_numbers: ::Array[String], - parent_company: String - } - end - type beneficial_owner_individual = { address: Lithic::Address, diff --git a/sig/lithic/models/account_holder_create_params.rbs b/sig/lithic/models/account_holder_create_params.rbs index be3a2178..001a0a61 100644 --- a/sig/lithic/models/account_holder_create_params.rbs +++ b/sig/lithic/models/account_holder_create_params.rbs @@ -8,7 +8,6 @@ module Lithic nature_of_business: String, tos_timestamp: String, workflow: Lithic::Models::AccountHolderCreateParams::workflow, - beneficial_owner_entities: ::Array[Lithic::AccountHolderCreateParams::BeneficialOwnerEntity], external_id: String, kyb_passed_timestamp: String, naics_code: String, @@ -51,12 +50,6 @@ module Lithic attr_accessor workflow: Lithic::Models::AccountHolderCreateParams::workflow - attr_reader beneficial_owner_entities: ::Array[Lithic::AccountHolderCreateParams::BeneficialOwnerEntity]? - - def beneficial_owner_entities=: ( - ::Array[Lithic::AccountHolderCreateParams::BeneficialOwnerEntity] - ) -> ::Array[Lithic::AccountHolderCreateParams::BeneficialOwnerEntity] - attr_reader external_id: String? def external_id=: (String) -> String @@ -109,7 +102,6 @@ module Lithic ?beneficial_owner_individuals: ::Array[Lithic::AccountHolderCreateParams::BeneficialOwnerIndividual], ?control_person: Lithic::AccountHolderCreateParams::ControlPerson, ?nature_of_business: String, - ?beneficial_owner_entities: ::Array[Lithic::AccountHolderCreateParams::BeneficialOwnerEntity], ?external_id: String, ?kyb_passed_timestamp: String, ?naics_code: String, @@ -126,7 +118,6 @@ module Lithic nature_of_business: String, tos_timestamp: String, workflow: Lithic::Models::AccountHolderCreateParams::workflow, - beneficial_owner_entities: ::Array[Lithic::AccountHolderCreateParams::BeneficialOwnerEntity], external_id: String, kyb_passed_timestamp: String, naics_code: String, @@ -301,52 +292,6 @@ module Lithic def self?.values: -> ::Array[Lithic::Models::AccountHolderCreateParams::workflow] end - type beneficial_owner_entity = - { - address: Lithic::Address, - government_id: String, - legal_business_name: String, - phone_numbers: ::Array[String], - dba_business_name: String, - parent_company: String - } - - class BeneficialOwnerEntity < Lithic::Internal::Type::BaseModel - attr_accessor address: Lithic::Address - - attr_accessor government_id: String - - attr_accessor legal_business_name: String - - attr_accessor phone_numbers: ::Array[String] - - attr_reader dba_business_name: String? - - def dba_business_name=: (String) -> String - - attr_reader parent_company: String? - - def parent_company=: (String) -> String - - def initialize: ( - address: Lithic::Address, - government_id: String, - legal_business_name: String, - phone_numbers: ::Array[String], - ?dba_business_name: String, - ?parent_company: String - ) -> void - - def to_hash: -> { - address: Lithic::Address, - government_id: String, - legal_business_name: String, - phone_numbers: ::Array[String], - dba_business_name: String, - parent_company: String - } - end - type individual = { address: Lithic::Address, diff --git a/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs b/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs index 4bc478ae..acb8afa1 100644 --- a/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +++ b/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs @@ -4,7 +4,6 @@ module Lithic { token: String, account_token: String, - beneficial_owner_entities: ::Array[Lithic::KYBBusinessEntity], beneficial_owner_individuals: ::Array[Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::BeneficialOwnerIndividual], business_account_token: String?, business_entity: Lithic::KYBBusinessEntity, @@ -34,12 +33,6 @@ module Lithic def account_token=: (String) -> String - attr_reader beneficial_owner_entities: ::Array[Lithic::KYBBusinessEntity]? - - def beneficial_owner_entities=: ( - ::Array[Lithic::KYBBusinessEntity] - ) -> ::Array[Lithic::KYBBusinessEntity] - attr_reader beneficial_owner_individuals: ::Array[Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::BeneficialOwnerIndividual]? def beneficial_owner_individuals=: ( @@ -133,7 +126,6 @@ module Lithic def initialize: ( ?token: String, ?account_token: String, - ?beneficial_owner_entities: ::Array[Lithic::KYBBusinessEntity], ?beneficial_owner_individuals: ::Array[Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::BeneficialOwnerIndividual], ?business_account_token: String?, ?business_entity: Lithic::KYBBusinessEntity, @@ -157,7 +149,6 @@ module Lithic def to_hash: -> { token: String, account_token: String, - beneficial_owner_entities: ::Array[Lithic::KYBBusinessEntity], beneficial_owner_individuals: ::Array[Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::BeneficialOwnerIndividual], business_account_token: String?, business_entity: Lithic::KYBBusinessEntity, diff --git a/sig/lithic/models/account_holder_update_params.rbs b/sig/lithic/models/account_holder_update_params.rbs index 76aff3b8..0d44cd88 100644 --- a/sig/lithic/models/account_holder_update_params.rbs +++ b/sig/lithic/models/account_holder_update_params.rbs @@ -2,7 +2,6 @@ module Lithic module Models type account_holder_update_params = { - beneficial_owner_entities: ::Array[Lithic::AccountHolderUpdateParams::BeneficialOwnerEntity], beneficial_owner_individuals: ::Array[Lithic::AccountHolderUpdateParams::BeneficialOwnerIndividual], business_entity: Lithic::AccountHolderUpdateParams::BusinessEntity, control_person: Lithic::AccountHolderUpdateParams::ControlPerson, @@ -25,12 +24,6 @@ module Lithic extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - attr_reader beneficial_owner_entities: ::Array[Lithic::AccountHolderUpdateParams::BeneficialOwnerEntity]? - - def beneficial_owner_entities=: ( - ::Array[Lithic::AccountHolderUpdateParams::BeneficialOwnerEntity] - ) -> ::Array[Lithic::AccountHolderUpdateParams::BeneficialOwnerEntity] - attr_reader beneficial_owner_individuals: ::Array[Lithic::AccountHolderUpdateParams::BeneficialOwnerIndividual]? def beneficial_owner_individuals=: ( @@ -100,7 +93,6 @@ module Lithic def phone_number=: (String) -> String def initialize: ( - ?beneficial_owner_entities: ::Array[Lithic::AccountHolderUpdateParams::BeneficialOwnerEntity], ?beneficial_owner_individuals: ::Array[Lithic::AccountHolderUpdateParams::BeneficialOwnerIndividual], ?business_entity: Lithic::AccountHolderUpdateParams::BusinessEntity, ?control_person: Lithic::AccountHolderUpdateParams::ControlPerson, @@ -120,7 +112,6 @@ module Lithic ) -> void def to_hash: -> { - beneficial_owner_entities: ::Array[Lithic::AccountHolderUpdateParams::BeneficialOwnerEntity], beneficial_owner_individuals: ::Array[Lithic::AccountHolderUpdateParams::BeneficialOwnerIndividual], business_entity: Lithic::AccountHolderUpdateParams::BusinessEntity, control_person: Lithic::AccountHolderUpdateParams::ControlPerson, @@ -139,65 +130,6 @@ module Lithic request_options: Lithic::RequestOptions } - type beneficial_owner_entity = - { - entity_token: String, - address: Lithic::AddressUpdate, - dba_business_name: String, - government_id: String, - legal_business_name: String, - parent_company: String, - phone_numbers: ::Array[String] - } - - class BeneficialOwnerEntity < Lithic::Internal::Type::BaseModel - attr_accessor entity_token: String - - attr_reader address: Lithic::AddressUpdate? - - def address=: (Lithic::AddressUpdate) -> Lithic::AddressUpdate - - attr_reader dba_business_name: String? - - def dba_business_name=: (String) -> String - - attr_reader government_id: String? - - def government_id=: (String) -> String - - attr_reader legal_business_name: String? - - def legal_business_name=: (String) -> String - - attr_reader parent_company: String? - - def parent_company=: (String) -> String - - attr_reader phone_numbers: ::Array[String]? - - def phone_numbers=: (::Array[String]) -> ::Array[String] - - def initialize: ( - entity_token: String, - ?address: Lithic::AddressUpdate, - ?dba_business_name: String, - ?government_id: String, - ?legal_business_name: String, - ?parent_company: String, - ?phone_numbers: ::Array[String] - ) -> void - - def to_hash: -> { - entity_token: String, - address: Lithic::AddressUpdate, - dba_business_name: String, - government_id: String, - legal_business_name: String, - parent_company: String, - phone_numbers: ::Array[String] - } - end - type beneficial_owner_individual = { entity_token: String, diff --git a/sig/lithic/models/account_holder_update_response.rbs b/sig/lithic/models/account_holder_update_response.rbs index eaa9554c..c75427eb 100644 --- a/sig/lithic/models/account_holder_update_response.rbs +++ b/sig/lithic/models/account_holder_update_response.rbs @@ -11,7 +11,6 @@ module Lithic { token: String, account_token: String, - beneficial_owner_entities: ::Array[Lithic::KYBBusinessEntity], beneficial_owner_individuals: ::Array[Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::BeneficialOwnerIndividual], business_account_token: String?, business_entity: Lithic::KYBBusinessEntity, @@ -41,12 +40,6 @@ module Lithic def account_token=: (String) -> String - attr_reader beneficial_owner_entities: ::Array[Lithic::KYBBusinessEntity]? - - def beneficial_owner_entities=: ( - ::Array[Lithic::KYBBusinessEntity] - ) -> ::Array[Lithic::KYBBusinessEntity] - attr_reader beneficial_owner_individuals: ::Array[Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::BeneficialOwnerIndividual]? def beneficial_owner_individuals=: ( @@ -140,7 +133,6 @@ module Lithic def initialize: ( ?token: String, ?account_token: String, - ?beneficial_owner_entities: ::Array[Lithic::KYBBusinessEntity], ?beneficial_owner_individuals: ::Array[Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::BeneficialOwnerIndividual], ?business_account_token: String?, ?business_entity: Lithic::KYBBusinessEntity, @@ -164,7 +156,6 @@ module Lithic def to_hash: -> { token: String, account_token: String, - beneficial_owner_entities: ::Array[Lithic::KYBBusinessEntity], beneficial_owner_individuals: ::Array[Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::BeneficialOwnerIndividual], business_account_token: String?, business_entity: Lithic::KYBBusinessEntity, diff --git a/sig/lithic/models/account_holder_updated_webhook_event.rbs b/sig/lithic/models/account_holder_updated_webhook_event.rbs index 81d30a5c..51ba8a50 100644 --- a/sig/lithic/models/account_holder_updated_webhook_event.rbs +++ b/sig/lithic/models/account_holder_updated_webhook_event.rbs @@ -68,19 +68,12 @@ module Lithic type update_request = { - beneficial_owner_entities: ::Array[Lithic::KYBBusinessEntity], beneficial_owner_individuals: ::Array[Lithic::AccountHolderUpdatedWebhookEvent::KYBPayload::UpdateRequest::BeneficialOwnerIndividual], business_entity: Lithic::KYBBusinessEntity, control_person: Lithic::AccountHolderUpdatedWebhookEvent::KYBPayload::UpdateRequest::ControlPerson } class UpdateRequest < Lithic::Internal::Type::BaseModel - attr_reader beneficial_owner_entities: ::Array[Lithic::KYBBusinessEntity]? - - def beneficial_owner_entities=: ( - ::Array[Lithic::KYBBusinessEntity] - ) -> ::Array[Lithic::KYBBusinessEntity] - attr_reader beneficial_owner_individuals: ::Array[Lithic::AccountHolderUpdatedWebhookEvent::KYBPayload::UpdateRequest::BeneficialOwnerIndividual]? def beneficial_owner_individuals=: ( @@ -100,14 +93,12 @@ module Lithic ) -> Lithic::AccountHolderUpdatedWebhookEvent::KYBPayload::UpdateRequest::ControlPerson def initialize: ( - ?beneficial_owner_entities: ::Array[Lithic::KYBBusinessEntity], ?beneficial_owner_individuals: ::Array[Lithic::AccountHolderUpdatedWebhookEvent::KYBPayload::UpdateRequest::BeneficialOwnerIndividual], ?business_entity: Lithic::KYBBusinessEntity, ?control_person: Lithic::AccountHolderUpdatedWebhookEvent::KYBPayload::UpdateRequest::ControlPerson ) -> void def to_hash: -> { - beneficial_owner_entities: ::Array[Lithic::KYBBusinessEntity], beneficial_owner_individuals: ::Array[Lithic::AccountHolderUpdatedWebhookEvent::KYBPayload::UpdateRequest::BeneficialOwnerIndividual], business_entity: Lithic::KYBBusinessEntity, control_person: Lithic::AccountHolderUpdatedWebhookEvent::KYBPayload::UpdateRequest::ControlPerson diff --git a/sig/lithic/models/kyb.rbs b/sig/lithic/models/kyb.rbs index 552e17c8..fd8d69e7 100644 --- a/sig/lithic/models/kyb.rbs +++ b/sig/lithic/models/kyb.rbs @@ -8,7 +8,6 @@ module Lithic nature_of_business: String, tos_timestamp: String, workflow: Lithic::Models::KYB::workflow, - beneficial_owner_entities: ::Array[Lithic::KYB::BeneficialOwnerEntity], external_id: String, kyb_passed_timestamp: String, naics_code: String, @@ -28,12 +27,6 @@ module Lithic attr_accessor workflow: Lithic::Models::KYB::workflow - attr_reader beneficial_owner_entities: ::Array[Lithic::KYB::BeneficialOwnerEntity]? - - def beneficial_owner_entities=: ( - ::Array[Lithic::KYB::BeneficialOwnerEntity] - ) -> ::Array[Lithic::KYB::BeneficialOwnerEntity] - attr_reader external_id: String? def external_id=: (String) -> String @@ -57,7 +50,6 @@ module Lithic nature_of_business: String, tos_timestamp: String, workflow: Lithic::Models::KYB::workflow, - ?beneficial_owner_entities: ::Array[Lithic::KYB::BeneficialOwnerEntity], ?external_id: String, ?kyb_passed_timestamp: String, ?naics_code: String, @@ -71,7 +63,6 @@ module Lithic nature_of_business: String, tos_timestamp: String, workflow: Lithic::Models::KYB::workflow, - beneficial_owner_entities: ::Array[Lithic::KYB::BeneficialOwnerEntity], external_id: String, kyb_passed_timestamp: String, naics_code: String, @@ -232,52 +223,6 @@ module Lithic def self?.values: -> ::Array[Lithic::Models::KYB::workflow] end - - type beneficial_owner_entity = - { - address: Lithic::Address, - government_id: String, - legal_business_name: String, - phone_numbers: ::Array[String], - dba_business_name: String, - parent_company: String - } - - class BeneficialOwnerEntity < Lithic::Internal::Type::BaseModel - attr_accessor address: Lithic::Address - - attr_accessor government_id: String - - attr_accessor legal_business_name: String - - attr_accessor phone_numbers: ::Array[String] - - attr_reader dba_business_name: String? - - def dba_business_name=: (String) -> String - - attr_reader parent_company: String? - - def parent_company=: (String) -> String - - def initialize: ( - address: Lithic::Address, - government_id: String, - legal_business_name: String, - phone_numbers: ::Array[String], - ?dba_business_name: String, - ?parent_company: String - ) -> void - - def to_hash: -> { - address: Lithic::Address, - government_id: String, - legal_business_name: String, - phone_numbers: ::Array[String], - dba_business_name: String, - parent_company: String - } - end end end end diff --git a/sig/lithic/models/parsed_webhook_event.rbs b/sig/lithic/models/parsed_webhook_event.rbs index 6dc46e21..46cdda92 100644 --- a/sig/lithic/models/parsed_webhook_event.rbs +++ b/sig/lithic/models/parsed_webhook_event.rbs @@ -123,19 +123,12 @@ module Lithic type update_request = { - beneficial_owner_entities: ::Array[Lithic::KYBBusinessEntity], beneficial_owner_individuals: ::Array[Lithic::ParsedWebhookEvent::KYBPayload::UpdateRequest::BeneficialOwnerIndividual], business_entity: Lithic::KYBBusinessEntity, control_person: Lithic::ParsedWebhookEvent::KYBPayload::UpdateRequest::ControlPerson } class UpdateRequest < Lithic::Internal::Type::BaseModel - attr_reader beneficial_owner_entities: ::Array[Lithic::KYBBusinessEntity]? - - def beneficial_owner_entities=: ( - ::Array[Lithic::KYBBusinessEntity] - ) -> ::Array[Lithic::KYBBusinessEntity] - attr_reader beneficial_owner_individuals: ::Array[Lithic::ParsedWebhookEvent::KYBPayload::UpdateRequest::BeneficialOwnerIndividual]? def beneficial_owner_individuals=: ( @@ -155,14 +148,12 @@ module Lithic ) -> Lithic::ParsedWebhookEvent::KYBPayload::UpdateRequest::ControlPerson def initialize: ( - ?beneficial_owner_entities: ::Array[Lithic::KYBBusinessEntity], ?beneficial_owner_individuals: ::Array[Lithic::ParsedWebhookEvent::KYBPayload::UpdateRequest::BeneficialOwnerIndividual], ?business_entity: Lithic::KYBBusinessEntity, ?control_person: Lithic::ParsedWebhookEvent::KYBPayload::UpdateRequest::ControlPerson ) -> void def to_hash: -> { - beneficial_owner_entities: ::Array[Lithic::KYBBusinessEntity], beneficial_owner_individuals: ::Array[Lithic::ParsedWebhookEvent::KYBPayload::UpdateRequest::BeneficialOwnerIndividual], business_entity: Lithic::KYBBusinessEntity, control_person: Lithic::ParsedWebhookEvent::KYBPayload::UpdateRequest::ControlPerson diff --git a/sig/lithic/resources/account_holders.rbs b/sig/lithic/resources/account_holders.rbs index f9aa5099..36114e87 100644 --- a/sig/lithic/resources/account_holders.rbs +++ b/sig/lithic/resources/account_holders.rbs @@ -17,7 +17,6 @@ module Lithic ?beneficial_owner_individuals: ::Array[Lithic::AccountHolderCreateParams::BeneficialOwnerIndividual], ?control_person: Lithic::AccountHolderCreateParams::ControlPerson, ?nature_of_business: String, - ?beneficial_owner_entities: ::Array[Lithic::AccountHolderCreateParams::BeneficialOwnerEntity], ?external_id: String, ?kyb_passed_timestamp: String, ?naics_code: String, @@ -34,7 +33,6 @@ module Lithic def update: ( String account_holder_token, - ?beneficial_owner_entities: ::Array[Lithic::AccountHolderUpdateParams::BeneficialOwnerEntity], ?beneficial_owner_individuals: ::Array[Lithic::AccountHolderUpdateParams::BeneficialOwnerIndividual], ?business_entity: Lithic::AccountHolderUpdateParams::BusinessEntity, ?control_person: Lithic::AccountHolderUpdateParams::ControlPerson, diff --git a/test/lithic/resources/account_holders_test.rb b/test/lithic/resources/account_holders_test.rb index 5c1cb075..6b297980 100644 --- a/test/lithic/resources/account_holders_test.rb +++ b/test/lithic/resources/account_holders_test.rb @@ -50,7 +50,6 @@ def test_retrieve token: String, created: Time, account_token: String | nil, - beneficial_owner_entities: ^(Lithic::Internal::Type::ArrayOf[Lithic::AccountHolder::BeneficialOwnerEntity]) | nil, beneficial_owner_individuals: ^(Lithic::Internal::Type::ArrayOf[Lithic::AccountHolder::BeneficialOwnerIndividual]) | nil, business_account_token: String | nil, business_entity: Lithic::AccountHolder::BusinessEntity | nil, @@ -106,7 +105,6 @@ def test_list token: String, created: Time, account_token: String | nil, - beneficial_owner_entities: ^(Lithic::Internal::Type::ArrayOf[Lithic::AccountHolder::BeneficialOwnerEntity]) | nil, beneficial_owner_individuals: ^(Lithic::Internal::Type::ArrayOf[Lithic::AccountHolder::BeneficialOwnerIndividual]) | nil, business_account_token: String | nil, business_entity: Lithic::AccountHolder::BusinessEntity | nil, @@ -197,7 +195,6 @@ def test_simulate_enrollment_review response => { token: String | nil, account_token: String | nil, - beneficial_owner_entities: ^(Lithic::Internal::Type::ArrayOf[Lithic::KYBBusinessEntity]) | nil, beneficial_owner_individuals: ^(Lithic::Internal::Type::ArrayOf[Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::BeneficialOwnerIndividual]) | nil, business_account_token: String | nil, business_entity: Lithic::KYBBusinessEntity | nil, From 6b16d86f054b238b7d2b91c9e0e62df67e88fbd7 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 2 Mar 2026 23:04:24 +0000 Subject: [PATCH 3/7] feat(api): Add Hold API for financial account fund reservations --- .stats.yml | 4 +-- lib/lithic/models/payment_create_params.rb | 23 +++++++++++++- lib/lithic/resources/payments.rb | 4 ++- rbi/lithic/models/payment_create_params.rbi | 34 +++++++++++++++++++++ rbi/lithic/resources/payments.rbi | 3 ++ sig/lithic/models/payment_create_params.rbs | 19 ++++++++++++ sig/lithic/resources/payments.rbs | 1 + 7 files changed, 84 insertions(+), 4 deletions(-) diff --git a/.stats.yml b/.stats.yml index 1cea7b96..3301005b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 185 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-df289940d26615072a7c5c9dd4d32b9bc7a86d977642b377c58abbe7a4cb93d0.yml -openapi_spec_hash: 836bb078df7ac5f8d2dd5081c2e833be +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-45bd51c1d7885bde620179da56671e3378571e301528c60975604c4fbaa2c800.yml +openapi_spec_hash: e1355583b829f269875b6f800078a9e0 config_hash: fb5070d41fcabdedbc084b83964b592a diff --git a/lib/lithic/models/payment_create_params.rb b/lib/lithic/models/payment_create_params.rb index efba70e3..14bc2e5e 100644 --- a/lib/lithic/models/payment_create_params.rb +++ b/lib/lithic/models/payment_create_params.rb @@ -44,6 +44,12 @@ class PaymentCreateParams < Lithic::Internal::Type::BaseModel # @return [String, nil] optional :token, String + # @!attribute hold + # Optional hold to settle when this payment is initiated. + # + # @return [Lithic::Models::PaymentCreateParams::Hold, nil] + optional :hold, -> { Lithic::PaymentCreateParams::Hold } + # @!attribute memo # # @return [String, nil] @@ -54,7 +60,7 @@ class PaymentCreateParams < Lithic::Internal::Type::BaseModel # @return [String, nil] optional :user_defined_id, String - # @!method initialize(amount:, external_bank_account_token:, financial_account_token:, method_:, method_attributes:, type:, token: nil, memo: nil, user_defined_id: nil, request_options: {}) + # @!method initialize(amount:, external_bank_account_token:, financial_account_token:, method_:, method_attributes:, type:, token: nil, hold: nil, memo: nil, user_defined_id: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Lithic::Models::PaymentCreateParams} for more details. # @@ -72,6 +78,8 @@ class PaymentCreateParams < Lithic::Internal::Type::BaseModel # # @param token [String] Customer-provided token that will serve as an idempotency token. This token will # + # @param hold [Lithic::Models::PaymentCreateParams::Hold] Optional hold to settle when this payment is initiated. + # # @param memo [String] # # @param user_defined_id [String] @@ -134,6 +142,19 @@ module Type # @!method self.values # @return [Array] end + + class Hold < Lithic::Internal::Type::BaseModel + # @!attribute token + # Token of the hold to settle when this payment is initiated. + # + # @return [String] + required :token, String + + # @!method initialize(token:) + # Optional hold to settle when this payment is initiated. + # + # @param token [String] Token of the hold to settle when this payment is initiated. + end end end end diff --git a/lib/lithic/resources/payments.rb b/lib/lithic/resources/payments.rb index 457ed732..25d54241 100644 --- a/lib/lithic/resources/payments.rb +++ b/lib/lithic/resources/payments.rb @@ -8,7 +8,7 @@ class Payments # # Initiates a payment between a financial account and an external bank account. # - # @overload create(amount:, external_bank_account_token:, financial_account_token:, method_:, method_attributes:, type:, token: nil, memo: nil, user_defined_id: nil, request_options: {}) + # @overload create(amount:, external_bank_account_token:, financial_account_token:, method_:, method_attributes:, type:, token: nil, hold: nil, memo: nil, user_defined_id: nil, request_options: {}) # # @param amount [Integer] # @@ -24,6 +24,8 @@ class Payments # # @param token [String] Customer-provided token that will serve as an idempotency token. This token will # + # @param hold [Lithic::Models::PaymentCreateParams::Hold] Optional hold to settle when this payment is initiated. + # # @param memo [String] # # @param user_defined_id [String] diff --git a/rbi/lithic/models/payment_create_params.rbi b/rbi/lithic/models/payment_create_params.rbi index 6ea918d5..7cee135d 100644 --- a/rbi/lithic/models/payment_create_params.rbi +++ b/rbi/lithic/models/payment_create_params.rbi @@ -45,6 +45,13 @@ module Lithic sig { params(token: String).void } attr_writer :token + # Optional hold to settle when this payment is initiated. + sig { returns(T.nilable(Lithic::PaymentCreateParams::Hold)) } + attr_reader :hold + + sig { params(hold: Lithic::PaymentCreateParams::Hold::OrHash).void } + attr_writer :hold + sig { returns(T.nilable(String)) } attr_reader :memo @@ -67,6 +74,7 @@ module Lithic Lithic::PaymentCreateParams::MethodAttributes::OrHash, type: Lithic::PaymentCreateParams::Type::OrSymbol, token: String, + hold: Lithic::PaymentCreateParams::Hold::OrHash, memo: String, user_defined_id: String, request_options: Lithic::RequestOptions::OrHash @@ -82,6 +90,8 @@ module Lithic # Customer-provided token that will serve as an idempotency token. This token will # become the transaction token. token: nil, + # Optional hold to settle when this payment is initiated. + hold: nil, memo: nil, user_defined_id: nil, request_options: {} @@ -98,6 +108,7 @@ module Lithic method_attributes: Lithic::PaymentCreateParams::MethodAttributes, type: Lithic::PaymentCreateParams::Type::OrSymbol, token: String, + hold: Lithic::PaymentCreateParams::Hold, memo: String, user_defined_id: String, request_options: Lithic::RequestOptions @@ -249,6 +260,29 @@ module Lithic def self.values end end + + class Hold < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any(Lithic::PaymentCreateParams::Hold, Lithic::Internal::AnyHash) + end + + # Token of the hold to settle when this payment is initiated. + sig { returns(String) } + attr_accessor :token + + # Optional hold to settle when this payment is initiated. + sig { params(token: String).returns(T.attached_class) } + def self.new( + # Token of the hold to settle when this payment is initiated. + token: + ) + end + + sig { override.returns({ token: String }) } + def to_hash + end + end end end end diff --git a/rbi/lithic/resources/payments.rbi b/rbi/lithic/resources/payments.rbi index bd1d9579..8e59659a 100644 --- a/rbi/lithic/resources/payments.rbi +++ b/rbi/lithic/resources/payments.rbi @@ -14,6 +14,7 @@ module Lithic Lithic::PaymentCreateParams::MethodAttributes::OrHash, type: Lithic::PaymentCreateParams::Type::OrSymbol, token: String, + hold: Lithic::PaymentCreateParams::Hold::OrHash, memo: String, user_defined_id: String, request_options: Lithic::RequestOptions::OrHash @@ -29,6 +30,8 @@ module Lithic # Customer-provided token that will serve as an idempotency token. This token will # become the transaction token. token: nil, + # Optional hold to settle when this payment is initiated. + hold: nil, memo: nil, user_defined_id: nil, request_options: {} diff --git a/sig/lithic/models/payment_create_params.rbs b/sig/lithic/models/payment_create_params.rbs index b0f71fca..4f6d15e7 100644 --- a/sig/lithic/models/payment_create_params.rbs +++ b/sig/lithic/models/payment_create_params.rbs @@ -9,6 +9,7 @@ module Lithic method_attributes: Lithic::PaymentCreateParams::MethodAttributes, type: Lithic::Models::PaymentCreateParams::type_, token: String, + hold: Lithic::PaymentCreateParams::Hold, memo: String, user_defined_id: String } @@ -34,6 +35,12 @@ module Lithic def token=: (String) -> String + attr_reader hold: Lithic::PaymentCreateParams::Hold? + + def hold=: ( + Lithic::PaymentCreateParams::Hold + ) -> Lithic::PaymentCreateParams::Hold + attr_reader memo: String? def memo=: (String) -> String @@ -50,6 +57,7 @@ module Lithic method_attributes: Lithic::PaymentCreateParams::MethodAttributes, type: Lithic::Models::PaymentCreateParams::type_, ?token: String, + ?hold: Lithic::PaymentCreateParams::Hold, ?memo: String, ?user_defined_id: String, ?request_options: Lithic::request_opts @@ -63,6 +71,7 @@ module Lithic method_attributes: Lithic::PaymentCreateParams::MethodAttributes, type: Lithic::Models::PaymentCreateParams::type_, token: String, + hold: Lithic::PaymentCreateParams::Hold, memo: String, user_defined_id: String, request_options: Lithic::RequestOptions @@ -130,6 +139,16 @@ module Lithic def self?.values: -> ::Array[Lithic::Models::PaymentCreateParams::type_] end + + type hold = { token: String } + + class Hold < Lithic::Internal::Type::BaseModel + attr_accessor token: String + + def initialize: (token: String) -> void + + def to_hash: -> { token: String } + end end end end diff --git a/sig/lithic/resources/payments.rbs b/sig/lithic/resources/payments.rbs index 250031f9..cbf52d48 100644 --- a/sig/lithic/resources/payments.rbs +++ b/sig/lithic/resources/payments.rbs @@ -9,6 +9,7 @@ module Lithic method_attributes: Lithic::PaymentCreateParams::MethodAttributes, type: Lithic::Models::PaymentCreateParams::type_, ?token: String, + ?hold: Lithic::PaymentCreateParams::Hold, ?memo: String, ?user_defined_id: String, ?request_options: Lithic::request_opts From 412e84f1d1e0b574fd791ea420fbf88707a6985a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 3 Mar 2026 01:44:46 +0000 Subject: [PATCH 4/7] chore(internal): codegen related update --- .github/workflows/ci.yml | 34 ++++++ lib/lithic/internal/util.rb | 31 +++++ lib/lithic/resources/account_activity.rb | 3 +- lib/lithic/resources/account_holders.rb | 3 +- lib/lithic/resources/accounts.rb | 3 +- lib/lithic/resources/auth_rules/v2.rb | 12 +- lib/lithic/resources/balances.rb | 3 +- lib/lithic/resources/book_transfers.rb | 3 +- lib/lithic/resources/card_bulk_orders.rb | 3 +- lib/lithic/resources/card_programs.rb | 3 +- lib/lithic/resources/cards.rb | 6 +- lib/lithic/resources/cards/balances.rb | 3 +- .../resources/cards/financial_transactions.rb | 3 +- .../resources/credit_products/prime_rates.rb | 3 +- lib/lithic/resources/digital_card_art.rb | 3 +- lib/lithic/resources/disputes.rb | 6 +- lib/lithic/resources/disputes_v2.rb | 3 +- lib/lithic/resources/events.rb | 6 +- lib/lithic/resources/events/subscriptions.rb | 12 +- .../resources/external_bank_accounts.rb | 3 +- lib/lithic/resources/external_payments.rb | 3 +- lib/lithic/resources/financial_accounts.rb | 3 +- .../resources/financial_accounts/balances.rb | 3 +- .../financial_transactions.rb | 3 +- .../interest_tier_schedule.rb | 3 +- .../financial_accounts/loan_tapes.rb | 3 +- .../financial_accounts/statements.rb | 3 +- .../statements/line_items.rb | 3 +- lib/lithic/resources/funding_events.rb | 3 +- lib/lithic/resources/management_operations.rb | 3 +- lib/lithic/resources/network_programs.rb | 3 +- lib/lithic/resources/payments.rb | 3 +- lib/lithic/resources/reports/settlement.rb | 3 +- .../reports/settlement/network_totals.rb | 3 +- lib/lithic/resources/responder_endpoints.rb | 6 +- lib/lithic/resources/tokenizations.rb | 3 +- lib/lithic/resources/transactions.rb | 3 +- lib/lithic/resources/transfer_limits.rb | 3 +- rbi/lithic/internal/util.rbi | 20 ++++ scripts/utils/upload-artifact.sh | 113 ++++++++++++++++++ sig/lithic/internal/util.rbs | 10 ++ 41 files changed, 300 insertions(+), 46 deletions(-) create mode 100755 scripts/utils/upload-artifact.sh diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1d20e873..8f996785 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,6 +13,40 @@ on: - 'stl-preview-base/**' jobs: + build: + timeout-minutes: 10 + name: build + permissions: + contents: read + id-token: write + runs-on: ${{ github.repository == 'stainless-sdks/lithic-ruby' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} + if: |- + github.repository == 'stainless-sdks/lithic-ruby' && + (github.event_name == 'push' || github.event.pull_request.head.repo.fork) + steps: + - uses: actions/checkout@v6 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + bundler-cache: false + - run: |- + bundle install + + - name: Get GitHub OIDC Token + if: github.repository == 'stainless-sdks/lithic-ruby' + id: github-oidc + uses: actions/github-script@v8 + with: + script: core.setOutput('github_token', await core.getIDToken()); + + - name: Build and upload gem artifacts + if: github.repository == 'stainless-sdks/lithic-ruby' + env: + URL: https://pkg.stainless.com/s + AUTH: ${{ steps.github-oidc.outputs.github_token }} + SHA: ${{ github.sha }} + PACKAGE_NAME: lithic + run: ./scripts/utils/upload-artifact.sh lint: timeout-minutes: 10 name: lint diff --git a/lib/lithic/internal/util.rb b/lib/lithic/internal/util.rb index c35d2723..9efafc4e 100644 --- a/lib/lithic/internal/util.rb +++ b/lib/lithic/internal/util.rb @@ -490,6 +490,37 @@ def writable_enum(&blk) JSONL_CONTENT = %r{^application/(:?x-(?:n|l)djson)|(:?(?:x-)?jsonl)} class << self + # @api private + # + # @param query [Hash{Symbol=>Object}] + # + # @return [Hash{Symbol=>Object}] + def encode_query_params(query) + out = {} + query.each { write_query_param_element!(out, _1, _2) } + out + end + + # @api private + # + # @param collection [Hash{Symbol=>Object}] + # @param key [String] + # @param element [Object] + # + # @return [nil] + private def write_query_param_element!(collection, key, element) + case element + in Hash + element.each do |name, value| + write_query_param_element!(collection, "#{key}[#{name}]", value) + end + in Array + collection[key] = element.map(&:to_s).join(",") + else + collection[key] = element.to_s + end + end + # @api private # # @param y [Enumerator::Yielder] diff --git a/lib/lithic/resources/account_activity.rb b/lib/lithic/resources/account_activity.rb index 4e3fbfc5..40e44bc0 100644 --- a/lib/lithic/resources/account_activity.rb +++ b/lib/lithic/resources/account_activity.rb @@ -39,10 +39,11 @@ class AccountActivity # @see Lithic::Models::AccountActivityListParams def list(params = {}) parsed, options = Lithic::AccountActivityListParams.dump_request(params) + query = Lithic::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: "v1/account_activity", - query: parsed.transform_keys(begin_: "begin", end_: "end"), + query: query.transform_keys(begin_: "begin", end_: "end"), page: Lithic::Internal::CursorPage, model: Lithic::Models::AccountActivityListResponse, options: options diff --git a/lib/lithic/resources/account_holders.rb b/lib/lithic/resources/account_holders.rb index 2f0d6292..5f0fadea 100644 --- a/lib/lithic/resources/account_holders.rb +++ b/lib/lithic/resources/account_holders.rb @@ -196,10 +196,11 @@ def update(account_holder_token, params = {}) # @see Lithic::Models::AccountHolderListParams def list(params = {}) parsed, options = Lithic::AccountHolderListParams.dump_request(params) + query = Lithic::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: "v1/account_holders", - query: parsed.transform_keys(begin_: "begin", end_: "end"), + query: query.transform_keys(begin_: "begin", end_: "end"), page: Lithic::Internal::SinglePage, model: Lithic::AccountHolder, options: options diff --git a/lib/lithic/resources/accounts.rb b/lib/lithic/resources/accounts.rb index 9369732f..ada65551 100644 --- a/lib/lithic/resources/accounts.rb +++ b/lib/lithic/resources/accounts.rb @@ -88,10 +88,11 @@ def update(account_token, params = {}) # @see Lithic::Models::AccountListParams def list(params = {}) parsed, options = Lithic::AccountListParams.dump_request(params) + query = Lithic::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: "v1/accounts", - query: parsed.transform_keys(begin_: "begin", end_: "end"), + query: query.transform_keys(begin_: "begin", end_: "end"), page: Lithic::Internal::CursorPage, model: Lithic::Account, options: options diff --git a/lib/lithic/resources/auth_rules/v2.rb b/lib/lithic/resources/auth_rules/v2.rb index e5068a2e..81f6992b 100644 --- a/lib/lithic/resources/auth_rules/v2.rb +++ b/lib/lithic/resources/auth_rules/v2.rb @@ -142,10 +142,11 @@ def update(auth_rule_token, params = {}) # @see Lithic::Models::AuthRules::V2ListParams def list(params = {}) parsed, options = Lithic::AuthRules::V2ListParams.dump_request(params) + query = Lithic::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: "v2/auth_rules", - query: parsed, + query: query, page: Lithic::Internal::CursorPage, model: Lithic::AuthRules::AuthRule, options: options @@ -234,10 +235,11 @@ def draft(auth_rule_token, params = {}) # @see Lithic::Models::AuthRules::V2ListResultsParams def list_results(params = {}) parsed, options = Lithic::AuthRules::V2ListResultsParams.dump_request(params) + query = Lithic::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: "v2/auth_rules/results", - query: parsed.transform_keys(begin_: "begin", end_: "end"), + query: query.transform_keys(begin_: "begin", end_: "end"), page: Lithic::Internal::CursorPage, model: Lithic::Models::AuthRules::V2ListResultsResponse, options: options @@ -286,10 +288,11 @@ def promote(auth_rule_token, params = {}) # @see Lithic::Models::AuthRules::V2RetrieveFeaturesParams def retrieve_features(auth_rule_token, params = {}) parsed, options = Lithic::AuthRules::V2RetrieveFeaturesParams.dump_request(params) + query = Lithic::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: ["v2/auth_rules/%1$s/features", auth_rule_token], - query: parsed, + query: query, model: Lithic::Models::AuthRules::V2RetrieveFeaturesResponse, options: options ) @@ -324,10 +327,11 @@ def retrieve_features(auth_rule_token, params = {}) # @see Lithic::Models::AuthRules::V2RetrieveReportParams def retrieve_report(auth_rule_token, params) parsed, options = Lithic::AuthRules::V2RetrieveReportParams.dump_request(params) + query = Lithic::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: ["v2/auth_rules/%1$s/report", auth_rule_token], - query: parsed.transform_keys(begin_: "begin", end_: "end"), + query: query.transform_keys(begin_: "begin", end_: "end"), model: Lithic::Models::AuthRules::V2RetrieveReportResponse, options: options ) diff --git a/lib/lithic/resources/balances.rb b/lib/lithic/resources/balances.rb index 87241a99..cbe2fe78 100644 --- a/lib/lithic/resources/balances.rb +++ b/lib/lithic/resources/balances.rb @@ -25,10 +25,11 @@ class Balances # @see Lithic::Models::BalanceListParams def list(params = {}) parsed, options = Lithic::BalanceListParams.dump_request(params) + query = Lithic::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: "v1/balances", - query: parsed, + query: query, page: Lithic::Internal::SinglePage, model: Lithic::Balance, options: options diff --git a/lib/lithic/resources/book_transfers.rb b/lib/lithic/resources/book_transfers.rb index 6c1ee905..722dbb4f 100644 --- a/lib/lithic/resources/book_transfers.rb +++ b/lib/lithic/resources/book_transfers.rb @@ -105,10 +105,11 @@ def retrieve(book_transfer_token, params = {}) # @see Lithic::Models::BookTransferListParams def list(params = {}) parsed, options = Lithic::BookTransferListParams.dump_request(params) + query = Lithic::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: "v1/book_transfers", - query: parsed.transform_keys(begin_: "begin", end_: "end"), + query: query.transform_keys(begin_: "begin", end_: "end"), page: Lithic::Internal::CursorPage, model: Lithic::BookTransferResponse, options: options diff --git a/lib/lithic/resources/card_bulk_orders.rb b/lib/lithic/resources/card_bulk_orders.rb index 9a203750..366c1723 100644 --- a/lib/lithic/resources/card_bulk_orders.rb +++ b/lib/lithic/resources/card_bulk_orders.rb @@ -106,10 +106,11 @@ def update(bulk_order_token, params) # @see Lithic::Models::CardBulkOrderListParams def list(params = {}) parsed, options = Lithic::CardBulkOrderListParams.dump_request(params) + query = Lithic::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: "v1/card_bulk_orders", - query: parsed.transform_keys(begin_: "begin", end_: "end"), + query: query.transform_keys(begin_: "begin", end_: "end"), page: Lithic::Internal::CursorPage, model: Lithic::CardBulkOrder, options: options diff --git a/lib/lithic/resources/card_programs.rb b/lib/lithic/resources/card_programs.rb index 89ee421d..c129805e 100644 --- a/lib/lithic/resources/card_programs.rb +++ b/lib/lithic/resources/card_programs.rb @@ -43,10 +43,11 @@ def retrieve(card_program_token, params = {}) # @see Lithic::Models::CardProgramListParams def list(params = {}) parsed, options = Lithic::CardProgramListParams.dump_request(params) + query = Lithic::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: "v1/card_programs", - query: parsed, + query: query, page: Lithic::Internal::CursorPage, model: Lithic::CardProgram, options: options diff --git a/lib/lithic/resources/cards.rb b/lib/lithic/resources/cards.rb index bcf5e7b3..37e40cb1 100644 --- a/lib/lithic/resources/cards.rb +++ b/lib/lithic/resources/cards.rb @@ -175,10 +175,11 @@ def update(card_token, params = {}) # @see Lithic::Models::CardListParams def list(params = {}) parsed, options = Lithic::CardListParams.dump_request(params) + query = Lithic::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: "v1/cards", - query: parsed.transform_keys(begin_: "begin", end_: "end"), + query: query.transform_keys(begin_: "begin", end_: "end"), page: Lithic::Internal::CursorPage, model: Lithic::NonPCICard, options: options @@ -268,10 +269,11 @@ def convert_physical(card_token, params) # @see Lithic::Models::CardEmbedParams def embed(params) parsed, options = Lithic::CardEmbedParams.dump_request(params) + query = Lithic::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: "v1/embed/card", - query: parsed, + query: query, headers: {"accept" => "text/html"}, model: String, options: options diff --git a/lib/lithic/resources/cards/balances.rb b/lib/lithic/resources/cards/balances.rb index cfe41701..31b1ee33 100644 --- a/lib/lithic/resources/cards/balances.rb +++ b/lib/lithic/resources/cards/balances.rb @@ -24,10 +24,11 @@ class Balances # @see Lithic::Models::Cards::BalanceListParams def list(card_token, params = {}) parsed, options = Lithic::Cards::BalanceListParams.dump_request(params) + query = Lithic::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: ["v1/cards/%1$s/balances", card_token], - query: parsed, + query: query, page: Lithic::Internal::SinglePage, model: Lithic::FinancialAccountBalance, options: options diff --git a/lib/lithic/resources/cards/financial_transactions.rb b/lib/lithic/resources/cards/financial_transactions.rb index c027ae62..e460b635 100644 --- a/lib/lithic/resources/cards/financial_transactions.rb +++ b/lib/lithic/resources/cards/financial_transactions.rb @@ -61,10 +61,11 @@ def retrieve(financial_transaction_token, params) # @see Lithic::Models::Cards::FinancialTransactionListParams def list(card_token, params = {}) parsed, options = Lithic::Cards::FinancialTransactionListParams.dump_request(params) + query = Lithic::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: ["v1/cards/%1$s/financial_transactions", card_token], - query: parsed.transform_keys(begin_: "begin", end_: "end"), + query: query.transform_keys(begin_: "begin", end_: "end"), page: Lithic::Internal::SinglePage, model: Lithic::FinancialTransaction, options: options diff --git a/lib/lithic/resources/credit_products/prime_rates.rb b/lib/lithic/resources/credit_products/prime_rates.rb index 76922865..a616c374 100644 --- a/lib/lithic/resources/credit_products/prime_rates.rb +++ b/lib/lithic/resources/credit_products/prime_rates.rb @@ -47,10 +47,11 @@ def create(credit_product_token, params) # @see Lithic::Models::CreditProducts::PrimeRateRetrieveParams def retrieve(credit_product_token, params = {}) parsed, options = Lithic::CreditProducts::PrimeRateRetrieveParams.dump_request(params) + query = Lithic::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: ["v1/credit_products/%1$s/prime_rates", credit_product_token], - query: parsed, + query: query, model: Lithic::Models::CreditProducts::PrimeRateRetrieveResponse, options: options ) diff --git a/lib/lithic/resources/digital_card_art.rb b/lib/lithic/resources/digital_card_art.rb index 3b94186a..3ac56db2 100644 --- a/lib/lithic/resources/digital_card_art.rb +++ b/lib/lithic/resources/digital_card_art.rb @@ -46,10 +46,11 @@ def retrieve(digital_card_art_token, params = {}) # @see Lithic::Models::DigitalCardArtListParams def list(params = {}) parsed, options = Lithic::DigitalCardArtListParams.dump_request(params) + query = Lithic::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: "v1/digital_card_art", - query: parsed, + query: query, page: Lithic::Internal::CursorPage, model: Lithic::DigitalCardArtAPI, options: options diff --git a/lib/lithic/resources/disputes.rb b/lib/lithic/resources/disputes.rb index ef91109b..047add2e 100644 --- a/lib/lithic/resources/disputes.rb +++ b/lib/lithic/resources/disputes.rb @@ -110,10 +110,11 @@ def update(dispute_token, params = {}) # @see Lithic::Models::DisputeListParams def list(params = {}) parsed, options = Lithic::DisputeListParams.dump_request(params) + query = Lithic::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: "v1/disputes", - query: parsed.transform_keys(begin_: "begin", end_: "end"), + query: query.transform_keys(begin_: "begin", end_: "end"), page: Lithic::Internal::CursorPage, model: Lithic::Dispute, options: options @@ -219,10 +220,11 @@ def initiate_evidence_upload(dispute_token, params = {}) # @see Lithic::Models::DisputeListEvidencesParams def list_evidences(dispute_token, params = {}) parsed, options = Lithic::DisputeListEvidencesParams.dump_request(params) + query = Lithic::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: ["v1/disputes/%1$s/evidences", dispute_token], - query: parsed.transform_keys(begin_: "begin", end_: "end"), + query: query.transform_keys(begin_: "begin", end_: "end"), page: Lithic::Internal::CursorPage, model: Lithic::DisputeEvidence, options: options diff --git a/lib/lithic/resources/disputes_v2.rb b/lib/lithic/resources/disputes_v2.rb index 806c916a..d92b14cb 100644 --- a/lib/lithic/resources/disputes_v2.rb +++ b/lib/lithic/resources/disputes_v2.rb @@ -53,10 +53,11 @@ def retrieve(dispute_token, params = {}) # @see Lithic::Models::DisputesV2ListParams def list(params = {}) parsed, options = Lithic::DisputesV2ListParams.dump_request(params) + query = Lithic::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: "v2/disputes", - query: parsed.transform_keys(begin_: "begin", end_: "end"), + query: query.transform_keys(begin_: "begin", end_: "end"), page: Lithic::Internal::CursorPage, model: Lithic::DisputeV2, options: options diff --git a/lib/lithic/resources/events.rb b/lib/lithic/resources/events.rb index 42f265a2..05e82ca2 100644 --- a/lib/lithic/resources/events.rb +++ b/lib/lithic/resources/events.rb @@ -56,10 +56,11 @@ def retrieve(event_token, params = {}) # @see Lithic::Models::EventListParams def list(params = {}) parsed, options = Lithic::EventListParams.dump_request(params) + query = Lithic::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: "v1/events", - query: parsed.transform_keys(begin_: "begin", end_: "end"), + query: query.transform_keys(begin_: "begin", end_: "end"), page: Lithic::Internal::CursorPage, model: Lithic::Event, options: options @@ -94,10 +95,11 @@ def list(params = {}) # @see Lithic::Models::EventListAttemptsParams def list_attempts(event_token, params = {}) parsed, options = Lithic::EventListAttemptsParams.dump_request(params) + query = Lithic::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: ["v1/events/%1$s/attempts", event_token], - query: parsed.transform_keys(begin_: "begin", end_: "end"), + query: query.transform_keys(begin_: "begin", end_: "end"), page: Lithic::Internal::CursorPage, model: Lithic::MessageAttempt, options: options diff --git a/lib/lithic/resources/events/subscriptions.rb b/lib/lithic/resources/events/subscriptions.rb index efc62169..ac1898e7 100644 --- a/lib/lithic/resources/events/subscriptions.rb +++ b/lib/lithic/resources/events/subscriptions.rb @@ -107,10 +107,11 @@ def update(event_subscription_token, params) # @see Lithic::Models::Events::SubscriptionListParams def list(params = {}) parsed, options = Lithic::Events::SubscriptionListParams.dump_request(params) + query = Lithic::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: "v1/event_subscriptions", - query: parsed, + query: query, page: Lithic::Internal::CursorPage, model: Lithic::EventSubscription, options: options @@ -164,10 +165,11 @@ def delete(event_subscription_token, params = {}) # @see Lithic::Models::Events::SubscriptionListAttemptsParams def list_attempts(event_subscription_token, params = {}) parsed, options = Lithic::Events::SubscriptionListAttemptsParams.dump_request(params) + query = Lithic::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: ["v1/event_subscriptions/%1$s/attempts", event_subscription_token], - query: parsed.transform_keys(begin_: "begin", end_: "end"), + query: query.transform_keys(begin_: "begin", end_: "end"), page: Lithic::Internal::CursorPage, model: Lithic::MessageAttempt, options: options @@ -194,10 +196,11 @@ def list_attempts(event_subscription_token, params = {}) # @see Lithic::Models::Events::SubscriptionRecoverParams def recover(event_subscription_token, params = {}) parsed, options = Lithic::Events::SubscriptionRecoverParams.dump_request(params) + query = Lithic::Internal::Util.encode_query_params(parsed) @client.request( method: :post, path: ["v1/event_subscriptions/%1$s/recover", event_subscription_token], - query: parsed.transform_keys(begin_: "begin", end_: "end"), + query: query.transform_keys(begin_: "begin", end_: "end"), model: NilClass, options: options ) @@ -227,10 +230,11 @@ def recover(event_subscription_token, params = {}) # @see Lithic::Models::Events::SubscriptionReplayMissingParams def replay_missing(event_subscription_token, params = {}) parsed, options = Lithic::Events::SubscriptionReplayMissingParams.dump_request(params) + query = Lithic::Internal::Util.encode_query_params(parsed) @client.request( method: :post, path: ["v1/event_subscriptions/%1$s/replay_missing", event_subscription_token], - query: parsed.transform_keys(begin_: "begin", end_: "end"), + query: query.transform_keys(begin_: "begin", end_: "end"), model: NilClass, options: options ) diff --git a/lib/lithic/resources/external_bank_accounts.rb b/lib/lithic/resources/external_bank_accounts.rb index 239f85f1..0b006c4d 100644 --- a/lib/lithic/resources/external_bank_accounts.rb +++ b/lib/lithic/resources/external_bank_accounts.rb @@ -157,10 +157,11 @@ def update(external_bank_account_token, params = {}) # @see Lithic::Models::ExternalBankAccountListParams def list(params = {}) parsed, options = Lithic::ExternalBankAccountListParams.dump_request(params) + query = Lithic::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: "v1/external_bank_accounts", - query: parsed, + query: query, page: Lithic::Internal::CursorPage, model: Lithic::Models::ExternalBankAccountListResponse, options: options diff --git a/lib/lithic/resources/external_payments.rb b/lib/lithic/resources/external_payments.rb index 75a572b3..71194e87 100644 --- a/lib/lithic/resources/external_payments.rb +++ b/lib/lithic/resources/external_payments.rb @@ -98,10 +98,11 @@ def retrieve(external_payment_token, params = {}) # @see Lithic::Models::ExternalPaymentListParams def list(params = {}) parsed, options = Lithic::ExternalPaymentListParams.dump_request(params) + query = Lithic::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: "v1/external_payments", - query: parsed.transform_keys(begin_: "begin", end_: "end"), + query: query.transform_keys(begin_: "begin", end_: "end"), page: Lithic::Internal::CursorPage, model: Lithic::ExternalPayment, options: options diff --git a/lib/lithic/resources/financial_accounts.rb b/lib/lithic/resources/financial_accounts.rb index d7ddbe5e..c691d921 100644 --- a/lib/lithic/resources/financial_accounts.rb +++ b/lib/lithic/resources/financial_accounts.rb @@ -115,10 +115,11 @@ def update(financial_account_token, params = {}) # @see Lithic::Models::FinancialAccountListParams def list(params = {}) parsed, options = Lithic::FinancialAccountListParams.dump_request(params) + query = Lithic::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: "v1/financial_accounts", - query: parsed, + query: query, page: Lithic::Internal::SinglePage, model: Lithic::FinancialAccount, options: options diff --git a/lib/lithic/resources/financial_accounts/balances.rb b/lib/lithic/resources/financial_accounts/balances.rb index 5e2add74..2656a71d 100644 --- a/lib/lithic/resources/financial_accounts/balances.rb +++ b/lib/lithic/resources/financial_accounts/balances.rb @@ -24,10 +24,11 @@ class Balances # @see Lithic::Models::FinancialAccounts::BalanceListParams def list(financial_account_token, params = {}) parsed, options = Lithic::FinancialAccounts::BalanceListParams.dump_request(params) + query = Lithic::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: ["v1/financial_accounts/%1$s/balances", financial_account_token], - query: parsed, + query: query, page: Lithic::Internal::SinglePage, model: Lithic::FinancialAccountBalance, options: options diff --git a/lib/lithic/resources/financial_accounts/financial_transactions.rb b/lib/lithic/resources/financial_accounts/financial_transactions.rb index c0ed03b6..c8bf3104 100644 --- a/lib/lithic/resources/financial_accounts/financial_transactions.rb +++ b/lib/lithic/resources/financial_accounts/financial_transactions.rb @@ -66,10 +66,11 @@ def retrieve(financial_transaction_token, params) # @see Lithic::Models::FinancialAccounts::FinancialTransactionListParams def list(financial_account_token, params = {}) parsed, options = Lithic::FinancialAccounts::FinancialTransactionListParams.dump_request(params) + query = Lithic::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: ["v1/financial_accounts/%1$s/financial_transactions", financial_account_token], - query: parsed.transform_keys(begin_: "begin", end_: "end"), + query: query.transform_keys(begin_: "begin", end_: "end"), page: Lithic::Internal::SinglePage, model: Lithic::FinancialTransaction, options: options diff --git a/lib/lithic/resources/financial_accounts/interest_tier_schedule.rb b/lib/lithic/resources/financial_accounts/interest_tier_schedule.rb index 5b5718d6..75ae2bfc 100644 --- a/lib/lithic/resources/financial_accounts/interest_tier_schedule.rb +++ b/lib/lithic/resources/financial_accounts/interest_tier_schedule.rb @@ -137,10 +137,11 @@ def update(effective_date, params) # @see Lithic::Models::FinancialAccounts::InterestTierScheduleListParams def list(financial_account_token, params = {}) parsed, options = Lithic::FinancialAccounts::InterestTierScheduleListParams.dump_request(params) + query = Lithic::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: ["v1/financial_accounts/%1$s/interest_tier_schedule", financial_account_token], - query: parsed, + query: query, page: Lithic::Internal::SinglePage, model: Lithic::FinancialAccounts::FinancialAccountsInterestTierSchedule, options: options diff --git a/lib/lithic/resources/financial_accounts/loan_tapes.rb b/lib/lithic/resources/financial_accounts/loan_tapes.rb index 4463bf06..9fdde99c 100644 --- a/lib/lithic/resources/financial_accounts/loan_tapes.rb +++ b/lib/lithic/resources/financial_accounts/loan_tapes.rb @@ -57,10 +57,11 @@ def retrieve(loan_tape_token, params) # @see Lithic::Models::FinancialAccounts::LoanTapeListParams def list(financial_account_token, params = {}) parsed, options = Lithic::FinancialAccounts::LoanTapeListParams.dump_request(params) + query = Lithic::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: ["v1/financial_accounts/%1$s/loan_tapes", financial_account_token], - query: parsed.transform_keys(begin_: "begin", end_: "end"), + query: query.transform_keys(begin_: "begin", end_: "end"), page: Lithic::Internal::CursorPage, model: Lithic::FinancialAccounts::LoanTape, options: options diff --git a/lib/lithic/resources/financial_accounts/statements.rb b/lib/lithic/resources/financial_accounts/statements.rb index 707fc2e1..9a9beefa 100644 --- a/lib/lithic/resources/financial_accounts/statements.rb +++ b/lib/lithic/resources/financial_accounts/statements.rb @@ -62,10 +62,11 @@ def retrieve(statement_token, params) # @see Lithic::Models::FinancialAccounts::StatementListParams def list(financial_account_token, params = {}) parsed, options = Lithic::FinancialAccounts::StatementListParams.dump_request(params) + query = Lithic::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: ["v1/financial_accounts/%1$s/statements", financial_account_token], - query: parsed.transform_keys(begin_: "begin", end_: "end"), + query: query.transform_keys(begin_: "begin", end_: "end"), page: Lithic::Internal::CursorPage, model: Lithic::FinancialAccounts::Statement, options: options diff --git a/lib/lithic/resources/financial_accounts/statements/line_items.rb b/lib/lithic/resources/financial_accounts/statements/line_items.rb index 8363aafc..a181fe49 100644 --- a/lib/lithic/resources/financial_accounts/statements/line_items.rb +++ b/lib/lithic/resources/financial_accounts/statements/line_items.rb @@ -30,6 +30,7 @@ class LineItems # @see Lithic::Models::FinancialAccounts::Statements::LineItemListParams def list(statement_token, params) parsed, options = Lithic::FinancialAccounts::Statements::LineItemListParams.dump_request(params) + query = Lithic::Internal::Util.encode_query_params(parsed) financial_account_token = parsed.delete(:financial_account_token) do raise ArgumentError.new("missing required path argument #{_1}") @@ -41,7 +42,7 @@ def list(statement_token, params) financial_account_token, statement_token ], - query: parsed, + query: query, page: Lithic::Internal::CursorPage, model: Lithic::FinancialAccounts::Statements::StatementLineItems::Data, options: options diff --git a/lib/lithic/resources/funding_events.rb b/lib/lithic/resources/funding_events.rb index 3f1d77b9..c7de4e29 100644 --- a/lib/lithic/resources/funding_events.rb +++ b/lib/lithic/resources/funding_events.rb @@ -43,10 +43,11 @@ def retrieve(funding_event_token, params = {}) # @see Lithic::Models::FundingEventListParams def list(params = {}) parsed, options = Lithic::FundingEventListParams.dump_request(params) + query = Lithic::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: "v1/funding_events", - query: parsed, + query: query, page: Lithic::Internal::CursorPage, model: Lithic::FundingEvent, options: options diff --git a/lib/lithic/resources/management_operations.rb b/lib/lithic/resources/management_operations.rb index 6a0c4212..9bf5599d 100644 --- a/lib/lithic/resources/management_operations.rb +++ b/lib/lithic/resources/management_operations.rb @@ -100,10 +100,11 @@ def retrieve(management_operation_token, params = {}) # @see Lithic::Models::ManagementOperationListParams def list(params = {}) parsed, options = Lithic::ManagementOperationListParams.dump_request(params) + query = Lithic::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: "v1/management_operations", - query: parsed.transform_keys(begin_: "begin", end_: "end"), + query: query.transform_keys(begin_: "begin", end_: "end"), page: Lithic::Internal::CursorPage, model: Lithic::ManagementOperationTransaction, options: options diff --git a/lib/lithic/resources/network_programs.rb b/lib/lithic/resources/network_programs.rb index 857139b7..e8fa57e0 100644 --- a/lib/lithic/resources/network_programs.rb +++ b/lib/lithic/resources/network_programs.rb @@ -43,10 +43,11 @@ def retrieve(network_program_token, params = {}) # @see Lithic::Models::NetworkProgramListParams def list(params = {}) parsed, options = Lithic::NetworkProgramListParams.dump_request(params) + query = Lithic::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: "v1/network_programs", - query: parsed.transform_keys(begin_: "begin", end_: "end"), + query: query.transform_keys(begin_: "begin", end_: "end"), page: Lithic::Internal::SinglePage, model: Lithic::NetworkProgram, options: options diff --git a/lib/lithic/resources/payments.rb b/lib/lithic/resources/payments.rb index 25d54241..7f12f251 100644 --- a/lib/lithic/resources/payments.rb +++ b/lib/lithic/resources/payments.rb @@ -101,10 +101,11 @@ def retrieve(payment_token, params = {}) # @see Lithic::Models::PaymentListParams def list(params = {}) parsed, options = Lithic::PaymentListParams.dump_request(params) + query = Lithic::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: "v1/payments", - query: parsed.transform_keys(begin_: "begin", end_: "end"), + query: query.transform_keys(begin_: "begin", end_: "end"), page: Lithic::Internal::CursorPage, model: Lithic::Payment, options: options diff --git a/lib/lithic/resources/reports/settlement.rb b/lib/lithic/resources/reports/settlement.rb index b5ebf4a2..4f47028e 100644 --- a/lib/lithic/resources/reports/settlement.rb +++ b/lib/lithic/resources/reports/settlement.rb @@ -29,10 +29,11 @@ class Settlement # @see Lithic::Models::Reports::SettlementListDetailsParams def list_details(report_date, params = {}) parsed, options = Lithic::Reports::SettlementListDetailsParams.dump_request(params) + query = Lithic::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: ["v1/reports/settlement/details/%1$s", report_date], - query: parsed, + query: query, page: Lithic::Internal::CursorPage, model: Lithic::SettlementDetail, options: options diff --git a/lib/lithic/resources/reports/settlement/network_totals.rb b/lib/lithic/resources/reports/settlement/network_totals.rb index a70e14bf..f8300f32 100644 --- a/lib/lithic/resources/reports/settlement/network_totals.rb +++ b/lib/lithic/resources/reports/settlement/network_totals.rb @@ -61,10 +61,11 @@ def retrieve(token, params = {}) # @see Lithic::Models::Reports::Settlement::NetworkTotalListParams def list(params = {}) parsed, options = Lithic::Reports::Settlement::NetworkTotalListParams.dump_request(params) + query = Lithic::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: "v1/reports/settlement/network_totals", - query: parsed.transform_keys(begin_: "begin", end_: "end"), + query: query.transform_keys(begin_: "begin", end_: "end"), page: Lithic::Internal::CursorPage, model: Lithic::NetworkTotal, options: options diff --git a/lib/lithic/resources/responder_endpoints.rb b/lib/lithic/resources/responder_endpoints.rb index 95f2df9d..43468f76 100644 --- a/lib/lithic/resources/responder_endpoints.rb +++ b/lib/lithic/resources/responder_endpoints.rb @@ -40,10 +40,11 @@ def create(params = {}) # @see Lithic::Models::ResponderEndpointDeleteParams def delete(params) parsed, options = Lithic::ResponderEndpointDeleteParams.dump_request(params) + query = Lithic::Internal::Util.encode_query_params(parsed) @client.request( method: :delete, path: "v1/responder_endpoints", - query: parsed, + query: query, model: NilClass, options: options ) @@ -62,10 +63,11 @@ def delete(params) # @see Lithic::Models::ResponderEndpointCheckStatusParams def check_status(params) parsed, options = Lithic::ResponderEndpointCheckStatusParams.dump_request(params) + query = Lithic::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: "v1/responder_endpoints", - query: parsed, + query: query, model: Lithic::ResponderEndpointStatus, options: options ) diff --git a/lib/lithic/resources/tokenizations.rb b/lib/lithic/resources/tokenizations.rb index 92c7b749..5ab741d8 100644 --- a/lib/lithic/resources/tokenizations.rb +++ b/lib/lithic/resources/tokenizations.rb @@ -53,10 +53,11 @@ def retrieve(tokenization_token, params = {}) # @see Lithic::Models::TokenizationListParams def list(params = {}) parsed, options = Lithic::TokenizationListParams.dump_request(params) + query = Lithic::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: "v1/tokenizations", - query: parsed.transform_keys(begin_: "begin", end_: "end"), + query: query.transform_keys(begin_: "begin", end_: "end"), page: Lithic::Internal::CursorPage, model: Lithic::Tokenization, options: options diff --git a/lib/lithic/resources/transactions.rb b/lib/lithic/resources/transactions.rb index 3ebaed0c..79503b9c 100644 --- a/lib/lithic/resources/transactions.rb +++ b/lib/lithic/resources/transactions.rb @@ -63,10 +63,11 @@ def retrieve(transaction_token, params = {}) # @see Lithic::Models::TransactionListParams def list(params = {}) parsed, options = Lithic::TransactionListParams.dump_request(params) + query = Lithic::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: "v1/transactions", - query: parsed.transform_keys(begin_: "begin", end_: "end"), + query: query.transform_keys(begin_: "begin", end_: "end"), page: Lithic::Internal::CursorPage, model: Lithic::Transaction, options: options diff --git a/lib/lithic/resources/transfer_limits.rb b/lib/lithic/resources/transfer_limits.rb index 8bb97464..68488490 100644 --- a/lib/lithic/resources/transfer_limits.rb +++ b/lib/lithic/resources/transfer_limits.rb @@ -16,10 +16,11 @@ class TransferLimits # @see Lithic::Models::TransferLimitListParams def list(params = {}) parsed, options = Lithic::TransferLimitListParams.dump_request(params) + query = Lithic::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: "v1/transfer_limits", - query: parsed, + query: query, page: Lithic::Internal::SinglePage, model: Lithic::TransferLimitsResponse::Data, options: options diff --git a/rbi/lithic/internal/util.rbi b/rbi/lithic/internal/util.rbi index cec0235e..e912ad70 100644 --- a/rbi/lithic/internal/util.rbi +++ b/rbi/lithic/internal/util.rbi @@ -301,6 +301,26 @@ module Lithic T.let(%r{^application/(:?x-(?:n|l)djson)|(:?(?:x-)?jsonl)}, Regexp) class << self + # @api private + sig do + params(query: Lithic::Internal::AnyHash).returns( + Lithic::Internal::AnyHash + ) + end + def encode_query_params(query) + end + + # @api private + sig do + params( + collection: Lithic::Internal::AnyHash, + key: String, + element: T.anything + ).void + end + private def write_query_param_element!(collection, key, element) + end + # @api private sig do params( diff --git a/scripts/utils/upload-artifact.sh b/scripts/utils/upload-artifact.sh new file mode 100755 index 00000000..05150a1e --- /dev/null +++ b/scripts/utils/upload-artifact.sh @@ -0,0 +1,113 @@ +#!/usr/bin/env bash + +set -euo pipefail + +# ANSI Color Codes +GREEN='\033[32m' +RED='\033[31m' +NC='\033[0m' # No Color + +DIST_DIR="dist" + +log_error() { + local msg="$1" + local headers="$2" + local body="$3" + echo -e "${RED}${msg}${NC}" + [[ -f "$headers" ]] && echo -e "${RED}Headers:$(cat "$headers")${NC}" + echo -e "${RED}Body: ${body}${NC}" + exit 1 +} + +upload_file() { + local file_name="$1" + local tmp_headers + tmp_headers=$(mktemp) + + if [ -f "$file_name" ]; then + echo -e "${GREEN}Processing file: $file_name${NC}" + pkg_file_name="${file_name#"${DIST_DIR}/"}" + + # Get signed URL for uploading artifact file + signed_url_response=$(curl -X POST -G "$URL" \ + -sS --retry 5 \ + -D "$tmp_headers" \ + --data-urlencode "filename=$pkg_file_name" \ + -H "Authorization: Bearer $AUTH" \ + -H "Content-Type: application/json") + + # Validate JSON and extract URL + if ! signed_url=$(echo "$signed_url_response" | jq -e -r '.url' 2>/dev/null) || [[ "$signed_url" == "null" ]]; then + log_error "Failed to get valid signed URL" "$tmp_headers" "$signed_url_response" + fi + + # Set content-type based on file extension + local extension="${file_name##*.}" + local content_type + case "$extension" in + gem) content_type="application/octet-stream" ;; + gz) content_type="application/gzip" ;; + rz) content_type="application/octet-stream" ;; + html) content_type="text/html" ;; + *) content_type="application/octet-stream" ;; + esac + + # Upload file + upload_response=$(curl -v -X PUT \ + --retry 5 \ + --retry-all-errors \ + -D "$tmp_headers" \ + -H "Content-Type: $content_type" \ + --data-binary "@${file_name}" "$signed_url" 2>&1) + + if ! echo "$upload_response" | grep -q "HTTP/[0-9.]* 200"; then + log_error "Failed to upload artifact file" "$tmp_headers" "$upload_response" + fi + + # Insert small throttle to reduce rate limiting risk + sleep 0.1 + fi +} + +walk_tree() { + local current_dir="$1" + + for entry in "$current_dir"/*; do + # Check that entry is valid + [ -e "$entry" ] || [ -h "$entry" ] || continue + + if [ -d "$entry" ]; then + walk_tree "$entry" + else + upload_file "$entry" + fi + done +} + +cd "$(dirname "$0")/../.." + +echo "::group::Building gem" +VERSION_FILE="lib/${PACKAGE_NAME}/version.rb" +if [[ ! -f "$VERSION_FILE" ]]; then + echo -e "${RED}Version file not found: ${VERSION_FILE}${NC}" + exit 1 +fi +SHORT_SHA="${SHA:0:7}" +sed -i.bak -E "s/(VERSION = \"[^\"]+)\"/\1.beta.${SHORT_SHA}\"/" "$VERSION_FILE" +rm -f "${VERSION_FILE}.bak" + +gem build +mkdir -p "${DIST_DIR}/gems" +mv ./*.gem "${DIST_DIR}/gems/" +echo "::endgroup::" + +echo "::group::Generating gem index" +gem generate_index --directory "$DIST_DIR" +echo "::endgroup::" + +echo "::group::Uploading to pkg.stainless.com" +walk_tree "$DIST_DIR" +echo "::endgroup::" + +echo -e "${GREEN}Gem artifacts uploaded to Stainless storage.${NC}" +echo -e "\033[32mInstallation: bundle remove lithic && bundle add lithic --source 'https://pkg.stainless.com/s/lithic-ruby/$SHA'\033[0m" diff --git a/sig/lithic/internal/util.rbs b/sig/lithic/internal/util.rbs index 825ae80c..469f1594 100644 --- a/sig/lithic/internal/util.rbs +++ b/sig/lithic/internal/util.rbs @@ -106,6 +106,16 @@ module Lithic JSON_CONTENT: Regexp JSONL_CONTENT: Regexp + def encode_query_params: ( + ::Hash[Symbol, top] query + ) -> ::Hash[Symbol, top] + + private def write_query_param_element!: ( + ::Hash[Symbol, top] collection, + String key, + top element + ) -> nil + def self?.write_multipart_content: ( Enumerator::Yielder y, val: top, From 7e729707f956646d1a85670884c152b9e1a5098c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 3 Mar 2026 22:12:12 +0000 Subject: [PATCH 5/7] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 3301005b..4f6a4f90 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 185 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-45bd51c1d7885bde620179da56671e3378571e301528c60975604c4fbaa2c800.yml -openapi_spec_hash: e1355583b829f269875b6f800078a9e0 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-ee8607f0a2cdcaee420935050334a439db8dd097be83023fccdaf1d6f9a7de14.yml +openapi_spec_hash: 0f21c68cdddb7c5bd99f42356d507393 config_hash: fb5070d41fcabdedbc084b83964b592a From 199e518f942530266541eef7343ff626dfbf7c10 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 5 Mar 2026 13:05:41 +0000 Subject: [PATCH 6/7] chore(internal): codegen related update --- ...nt_activity_retrieve_transaction_params.rb | 8 +- .../models/account_holder_create_params.rb | 816 ++++----- .../account_holder_list_documents_params.rb | 8 +- ...account_holder_retrieve_document_params.rb | 8 +- .../models/account_holder_retrieve_params.rb | 8 +- .../models/account_holder_update_params.rb | 933 +++++----- .../account_holder_upload_document_params.rb | 9 +- .../account_holders/entity_create_params.rb | 9 +- .../account_holders/entity_delete_params.rb | 8 +- lib/lithic/models/account_retrieve_params.rb | 8 +- .../account_retrieve_spend_limits_params.rb | 8 +- lib/lithic/models/account_update_params.rb | 9 +- .../auth_rules/v2/backtest_create_params.rb | 9 +- .../auth_rules/v2/backtest_retrieve_params.rb | 8 +- .../models/auth_rules/v2_create_params.rb | 451 +++-- .../models/auth_rules/v2_delete_params.rb | 8 +- .../models/auth_rules/v2_draft_params.rb | 9 +- .../models/auth_rules/v2_promote_params.rb | 8 +- .../auth_rules/v2_retrieve_features_params.rb | 8 +- .../models/auth_rules/v2_retrieve_params.rb | 8 +- .../auth_rules/v2_retrieve_report_params.rb | 9 +- .../models/auth_rules/v2_update_params.rb | 249 ++- .../models/book_transfer_retrieve_params.rb | 8 +- .../models/book_transfer_retry_params.rb | 9 +- .../models/book_transfer_reverse_params.rb | 9 +- .../models/card_bulk_order_retrieve_params.rb | 8 +- .../models/card_bulk_order_update_params.rb | 9 +- .../models/card_convert_physical_params.rb | 9 +- .../models/card_program_retrieve_params.rb | 8 +- lib/lithic/models/card_provision_params.rb | 9 +- lib/lithic/models/card_reissue_params.rb | 9 +- lib/lithic/models/card_renew_params.rb | 9 +- lib/lithic/models/card_retrieve_params.rb | 8 +- .../card_retrieve_spend_limits_params.rb | 8 +- lib/lithic/models/card_update_params.rb | 9 +- .../models/card_web_provision_params.rb | 9 +- .../models/cards/balance_list_params.rb | 9 +- .../financial_transaction_list_params.rb | 9 +- .../financial_transaction_retrieve_params.rb | 8 +- .../extended_credit_retrieve_params.rb | 8 +- .../prime_rate_create_params.rb | 10 +- .../prime_rate_retrieve_params.rb | 10 +- .../digital_card_art_retrieve_params.rb | 8 +- .../models/dispute_delete_evidence_params.rb | 8 +- lib/lithic/models/dispute_delete_params.rb | 8 +- ...dispute_initiate_evidence_upload_params.rb | 9 +- .../models/dispute_list_evidences_params.rb | 9 +- .../dispute_retrieve_evidence_params.rb | 8 +- lib/lithic/models/dispute_retrieve_params.rb | 8 +- lib/lithic/models/dispute_update_params.rb | 9 +- .../models/disputes_v2_retrieve_params.rb | 8 +- .../models/event_list_attempts_params.rb | 9 +- lib/lithic/models/event_retrieve_params.rb | 8 +- .../event_subscription_resend_params.rb | 8 +- .../events/subscription_delete_params.rb | 8 +- .../subscription_list_attempts_params.rb | 9 +- .../events/subscription_recover_params.rb | 9 +- .../subscription_replay_missing_params.rb | 9 +- .../events/subscription_retrieve_params.rb | 8 +- .../subscription_retrieve_secret_params.rb | 8 +- .../subscription_rotate_secret_params.rb | 8 +- ...scription_send_simulated_example_params.rb | 9 +- .../events/subscription_update_params.rb | 9 +- .../external_bank_account_create_params.rb | 586 +++++-- .../external_bank_account_retrieve_params.rb | 8 +- ...ank_account_retry_micro_deposits_params.rb | 8 +- ...ernal_bank_account_retry_prenote_params.rb | 8 +- .../external_bank_account_unpause_params.rb | 8 +- .../external_bank_account_update_params.rb | 9 +- .../micro_deposit_create_params.rb | 8 +- .../models/external_payment_cancel_params.rb | 8 +- .../models/external_payment_release_params.rb | 8 +- .../external_payment_retrieve_params.rb | 8 +- .../models/external_payment_reverse_params.rb | 8 +- .../models/external_payment_settle_params.rb | 8 +- ..._account_register_account_number_params.rb | 8 +- .../financial_account_retrieve_params.rb | 8 +- .../models/financial_account_update_params.rb | 8 +- .../financial_account_update_status_params.rb | 9 +- .../financial_accounts/balance_list_params.rb | 9 +- .../credit_configuration_retrieve_params.rb | 8 +- .../credit_configuration_update_params.rb | 9 +- .../financial_transaction_list_params.rb | 9 +- .../financial_transaction_retrieve_params.rb | 8 +- .../interest_tier_schedule_create_params.rb | 8 +- .../interest_tier_schedule_delete_params.rb | 8 +- .../interest_tier_schedule_list_params.rb | 9 +- .../interest_tier_schedule_retrieve_params.rb | 8 +- .../interest_tier_schedule_update_params.rb | 9 +- ...loan_tape_configuration_retrieve_params.rb | 10 +- .../loan_tape_list_params.rb | 10 +- .../loan_tape_retrieve_params.rb | 10 +- .../statement_list_params.rb | 10 +- .../statement_retrieve_params.rb | 10 +- .../statements/line_item_list_params.rb | 10 +- .../models/fraud/transaction_report_params.rb | 9 +- .../fraud/transaction_retrieve_params.rb | 8 +- .../funding_event_retrieve_details_params.rb | 8 +- .../models/funding_event_retrieve_params.rb | 8 +- .../management_operation_retrieve_params.rb | 8 +- .../management_operation_reverse_params.rb | 8 +- .../models/network_program_retrieve_params.rb | 8 +- lib/lithic/models/payment_retrieve_params.rb | 8 +- lib/lithic/models/payment_retry_params.rb | 8 +- lib/lithic/models/payment_return_params.rb | 9 +- .../models/payment_simulate_action_params.rb | 9 +- .../network_total_retrieve_params.rb | 8 +- .../reports/settlement_list_details_params.rb | 9 +- .../reports/settlement_summary_params.rb | 8 +- .../authentication_retrieve_params.rb | 8 +- .../models/tokenization_activate_params.rb | 8 +- .../models/tokenization_deactivate_params.rb | 8 +- .../models/tokenization_pause_params.rb | 8 +- ...enization_resend_activation_code_params.rb | 9 +- .../models/tokenization_retrieve_params.rb | 8 +- .../models/tokenization_unpause_params.rb | 8 +- ...nization_update_digital_card_art_params.rb | 9 +- ...transaction_expire_authorization_params.rb | 8 +- .../models/transaction_retrieve_params.rb | 8 +- ...nhanced_commercial_data_retrieve_params.rb | 8 +- ...nhanced_commercial_data_retrieve_params.rb | 8 +- lib/lithic/resources/account_holders.rb | 85 +- lib/lithic/resources/auth_rules/v2.rb | 51 +- .../resources/external_bank_accounts.rb | 42 +- ...t_activity_retrieve_transaction_params.rbi | 18 +- .../models/account_holder_create_params.rbi | 1284 ++++++-------- .../account_holder_list_documents_params.rbi | 21 +- ...ccount_holder_retrieve_document_params.rbi | 7 +- .../models/account_holder_retrieve_params.rbi | 21 +- .../models/account_holder_update_params.rbi | 1558 +++++++++-------- .../account_holder_upload_document_params.rbi | 6 + .../account_holders/entity_create_params.rbi | 6 + .../account_holders/entity_delete_params.rbi | 7 +- rbi/lithic/models/account_retrieve_params.rbi | 18 +- .../account_retrieve_spend_limits_params.rbi | 18 +- rbi/lithic/models/account_update_params.rbi | 6 + .../auth_rules/v2/backtest_create_params.rbi | 6 + .../v2/backtest_retrieve_params.rbi | 11 +- .../models/auth_rules/v2_create_params.rbi | 856 +++++++-- .../models/auth_rules/v2_delete_params.rbi | 18 +- .../models/auth_rules/v2_draft_params.rbi | 6 + .../models/auth_rules/v2_promote_params.rbi | 18 +- .../v2_retrieve_features_params.rbi | 12 +- .../models/auth_rules/v2_retrieve_params.rbi | 18 +- .../auth_rules/v2_retrieve_report_params.rbi | 6 + .../models/auth_rules/v2_update_params.rbi | 492 ++++-- .../models/book_transfer_retrieve_params.rbi | 21 +- .../models/book_transfer_retry_params.rbi | 11 +- .../models/book_transfer_reverse_params.rbi | 11 +- .../card_bulk_order_retrieve_params.rbi | 18 +- .../models/card_bulk_order_update_params.rbi | 6 + .../models/card_convert_physical_params.rbi | 6 + .../models/card_program_retrieve_params.rbi | 21 +- rbi/lithic/models/card_provision_params.rbi | 6 + rbi/lithic/models/card_reissue_params.rbi | 6 + rbi/lithic/models/card_renew_params.rbi | 6 + rbi/lithic/models/card_retrieve_params.rbi | 18 +- .../card_retrieve_spend_limits_params.rbi | 18 +- rbi/lithic/models/card_update_params.rbi | 6 + .../models/card_web_provision_params.rbi | 6 + .../models/cards/balance_list_params.rbi | 6 + .../financial_transaction_list_params.rbi | 6 + .../financial_transaction_retrieve_params.rbi | 16 +- .../extended_credit_retrieve_params.rbi | 21 +- .../prime_rate_create_params.rbi | 8 + .../prime_rate_retrieve_params.rbi | 8 + .../digital_card_art_retrieve_params.rbi | 21 +- .../models/dispute_delete_evidence_params.rbi | 12 +- rbi/lithic/models/dispute_delete_params.rbi | 18 +- ...ispute_initiate_evidence_upload_params.rbi | 11 +- .../models/dispute_list_evidences_params.rbi | 6 + .../dispute_retrieve_evidence_params.rbi | 12 +- rbi/lithic/models/dispute_retrieve_params.rbi | 18 +- rbi/lithic/models/dispute_update_params.rbi | 6 + .../models/disputes_v2_retrieve_params.rbi | 18 +- .../models/event_list_attempts_params.rbi | 6 + rbi/lithic/models/event_retrieve_params.rbi | 18 +- .../event_subscription_resend_params.rbi | 16 +- .../events/subscription_delete_params.rbi | 21 +- .../subscription_list_attempts_params.rbi | 6 + .../events/subscription_recover_params.rbi | 6 + .../subscription_replay_missing_params.rbi | 6 + .../events/subscription_retrieve_params.rbi | 21 +- .../subscription_retrieve_secret_params.rbi | 21 +- .../subscription_rotate_secret_params.rbi | 21 +- ...cription_send_simulated_example_params.rbi | 6 + .../events/subscription_update_params.rbi | 6 + .../external_bank_account_create_params.rbi | 904 +++++++--- .../external_bank_account_retrieve_params.rbi | 21 +- ...nk_account_retry_micro_deposits_params.rbi | 11 +- ...rnal_bank_account_retry_prenote_params.rbi | 11 +- .../external_bank_account_unpause_params.rbi | 21 +- .../external_bank_account_update_params.rbi | 6 + .../micro_deposit_create_params.rbi | 11 +- .../models/external_payment_cancel_params.rbi | 12 +- .../external_payment_release_params.rbi | 12 +- .../external_payment_retrieve_params.rbi | 21 +- .../external_payment_reverse_params.rbi | 12 +- .../models/external_payment_settle_params.rbi | 6 + ...account_register_account_number_params.rbi | 16 +- .../financial_account_retrieve_params.rbi | 21 +- .../financial_account_update_params.rbi | 12 +- ...financial_account_update_status_params.rbi | 6 + .../balance_list_params.rbi | 6 + .../credit_configuration_retrieve_params.rbi | 21 +- .../credit_configuration_update_params.rbi | 6 + .../financial_transaction_list_params.rbi | 6 + .../financial_transaction_retrieve_params.rbi | 11 +- .../interest_tier_schedule_create_params.rbi | 21 +- .../interest_tier_schedule_delete_params.rbi | 11 +- .../interest_tier_schedule_list_params.rbi | 6 + ...interest_tier_schedule_retrieve_params.rbi | 11 +- .../interest_tier_schedule_update_params.rbi | 6 + ...oan_tape_configuration_retrieve_params.rbi | 26 +- .../loan_tape_list_params.rbi | 8 + .../loan_tape_retrieve_params.rbi | 8 + .../statement_list_params.rbi | 8 + .../statement_retrieve_params.rbi | 8 + .../statements/line_item_list_params.rbi | 8 + .../fraud/transaction_report_params.rbi | 6 + .../fraud/transaction_retrieve_params.rbi | 21 +- .../funding_event_retrieve_details_params.rbi | 21 +- .../models/funding_event_retrieve_params.rbi | 21 +- .../management_operation_retrieve_params.rbi | 21 +- .../management_operation_reverse_params.rbi | 12 +- .../network_program_retrieve_params.rbi | 21 +- rbi/lithic/models/payment_retrieve_params.rbi | 18 +- rbi/lithic/models/payment_retry_params.rbi | 18 +- rbi/lithic/models/payment_return_params.rbi | 6 + .../models/payment_simulate_action_params.rbi | 6 + .../network_total_retrieve_params.rbi | 18 +- .../settlement_list_details_params.rbi | 6 + .../reports/settlement_summary_params.rbi | 18 +- .../authentication_retrieve_params.rbi | 21 +- .../models/tokenization_activate_params.rbi | 21 +- .../models/tokenization_deactivate_params.rbi | 21 +- .../models/tokenization_pause_params.rbi | 21 +- ...nization_resend_activation_code_params.rbi | 6 + .../models/tokenization_retrieve_params.rbi | 21 +- .../models/tokenization_unpause_params.rbi | 21 +- ...ization_update_digital_card_art_params.rbi | 6 + ...ransaction_expire_authorization_params.rbi | 18 +- .../models/transaction_retrieve_params.rbi | 18 +- ...hanced_commercial_data_retrieve_params.rbi | 21 +- ...hanced_commercial_data_retrieve_params.rbi | 18 +- rbi/lithic/resources/account_holders.rbi | 181 +- rbi/lithic/resources/auth_rules/v2.rbi | 88 +- .../resources/external_bank_accounts.rbi | 65 +- scripts/mock | 13 +- ...t_activity_retrieve_transaction_params.rbs | 14 +- .../models/account_holder_create_params.rbs | 515 +++--- .../account_holder_list_documents_params.rbs | 15 +- ...ccount_holder_retrieve_document_params.rbs | 6 +- .../models/account_holder_retrieve_params.rbs | 15 +- .../models/account_holder_update_params.rbs | 614 ++++--- .../account_holder_upload_document_params.rbs | 5 + .../account_holders/entity_create_params.rbs | 5 + .../account_holders/entity_delete_params.rbs | 6 +- sig/lithic/models/account_retrieve_params.rbs | 14 +- .../account_retrieve_spend_limits_params.rbs | 14 +- sig/lithic/models/account_update_params.rbs | 5 + .../auth_rules/v2/backtest_create_params.rbs | 6 +- .../v2/backtest_retrieve_params.rbs | 6 +- .../models/auth_rules/v2_create_params.rbs | 310 +++- .../models/auth_rules/v2_delete_params.rbs | 15 +- .../models/auth_rules/v2_draft_params.rbs | 9 +- .../models/auth_rules/v2_promote_params.rbs | 15 +- .../v2_retrieve_features_params.rbs | 6 +- .../models/auth_rules/v2_retrieve_params.rbs | 14 +- .../auth_rules/v2_retrieve_report_params.rbs | 6 +- .../models/auth_rules/v2_update_params.rbs | 199 ++- .../models/book_transfer_retrieve_params.rbs | 15 +- .../models/book_transfer_retry_params.rbs | 7 +- .../models/book_transfer_reverse_params.rbs | 12 +- .../card_bulk_order_retrieve_params.rbs | 14 +- .../models/card_bulk_order_update_params.rbs | 9 +- .../models/card_convert_physical_params.rbs | 5 + .../models/card_program_retrieve_params.rbs | 15 +- sig/lithic/models/card_provision_params.rbs | 5 + sig/lithic/models/card_reissue_params.rbs | 5 + sig/lithic/models/card_renew_params.rbs | 5 + sig/lithic/models/card_retrieve_params.rbs | 14 +- .../card_retrieve_spend_limits_params.rbs | 14 +- sig/lithic/models/card_update_params.rbs | 5 + .../models/card_web_provision_params.rbs | 5 + .../models/cards/balance_list_params.rbs | 10 +- .../financial_transaction_list_params.rbs | 5 + .../financial_transaction_retrieve_params.rbs | 7 +- .../extended_credit_retrieve_params.rbs | 15 +- .../prime_rate_create_params.rbs | 6 +- .../prime_rate_retrieve_params.rbs | 10 +- .../digital_card_art_retrieve_params.rbs | 15 +- .../models/dispute_delete_evidence_params.rbs | 7 +- sig/lithic/models/dispute_delete_params.rbs | 14 +- ...ispute_initiate_evidence_upload_params.rbs | 7 +- .../models/dispute_list_evidences_params.rbs | 5 + .../dispute_retrieve_evidence_params.rbs | 7 +- sig/lithic/models/dispute_retrieve_params.rbs | 14 +- sig/lithic/models/dispute_update_params.rbs | 5 + .../models/disputes_v2_retrieve_params.rbs | 14 +- .../models/event_list_attempts_params.rbs | 5 + sig/lithic/models/event_retrieve_params.rbs | 14 +- .../event_subscription_resend_params.rbs | 7 +- .../events/subscription_delete_params.rbs | 15 +- .../subscription_list_attempts_params.rbs | 5 + .../events/subscription_recover_params.rbs | 6 +- .../subscription_replay_missing_params.rbs | 6 +- .../events/subscription_retrieve_params.rbs | 15 +- .../subscription_retrieve_secret_params.rbs | 15 +- .../subscription_rotate_secret_params.rbs | 15 +- ...cription_send_simulated_example_params.rbs | 5 + .../events/subscription_update_params.rbs | 5 + .../external_bank_account_create_params.rbs | 440 +++-- .../external_bank_account_retrieve_params.rbs | 15 +- ...nk_account_retry_micro_deposits_params.rbs | 6 +- ...rnal_bank_account_retry_prenote_params.rbs | 6 +- .../external_bank_account_unpause_params.rbs | 15 +- .../external_bank_account_update_params.rbs | 5 + .../micro_deposit_create_params.rbs | 9 +- .../models/external_payment_cancel_params.rbs | 6 +- .../external_payment_release_params.rbs | 6 +- .../external_payment_retrieve_params.rbs | 15 +- .../external_payment_reverse_params.rbs | 6 +- .../models/external_payment_settle_params.rbs | 5 + ...account_register_account_number_params.rbs | 7 +- .../financial_account_retrieve_params.rbs | 15 +- .../financial_account_update_params.rbs | 7 +- ...financial_account_update_status_params.rbs | 5 + .../balance_list_params.rbs | 10 +- .../credit_configuration_retrieve_params.rbs | 15 +- .../credit_configuration_update_params.rbs | 5 + .../financial_transaction_list_params.rbs | 5 + .../financial_transaction_retrieve_params.rbs | 6 +- .../interest_tier_schedule_create_params.rbs | 17 +- .../interest_tier_schedule_delete_params.rbs | 6 +- .../interest_tier_schedule_list_params.rbs | 11 +- ...interest_tier_schedule_retrieve_params.rbs | 6 +- .../interest_tier_schedule_update_params.rbs | 11 +- ...oan_tape_configuration_retrieve_params.rbs | 15 +- .../loan_tape_list_params.rbs | 5 + .../loan_tape_retrieve_params.rbs | 6 +- .../statement_list_params.rbs | 5 + .../statement_retrieve_params.rbs | 6 +- .../statements/line_item_list_params.rbs | 5 + .../fraud/transaction_report_params.rbs | 5 + .../fraud/transaction_retrieve_params.rbs | 15 +- .../funding_event_retrieve_details_params.rbs | 15 +- .../models/funding_event_retrieve_params.rbs | 15 +- .../management_operation_retrieve_params.rbs | 15 +- .../management_operation_reverse_params.rbs | 6 +- .../network_program_retrieve_params.rbs | 15 +- sig/lithic/models/payment_retrieve_params.rbs | 14 +- sig/lithic/models/payment_retry_params.rbs | 14 +- sig/lithic/models/payment_return_params.rbs | 5 + .../models/payment_simulate_action_params.rbs | 5 + .../network_total_retrieve_params.rbs | 14 +- .../settlement_list_details_params.rbs | 11 +- .../reports/settlement_summary_params.rbs | 14 +- .../authentication_retrieve_params.rbs | 15 +- .../models/tokenization_activate_params.rbs | 15 +- .../models/tokenization_deactivate_params.rbs | 15 +- .../models/tokenization_pause_params.rbs | 15 +- ...nization_resend_activation_code_params.rbs | 5 + .../models/tokenization_retrieve_params.rbs | 15 +- .../models/tokenization_unpause_params.rbs | 15 +- ...ization_update_digital_card_art_params.rbs | 6 +- ...ransaction_expire_authorization_params.rbs | 14 +- .../models/transaction_retrieve_params.rbs | 14 +- ...hanced_commercial_data_retrieve_params.rbs | 15 +- ...hanced_commercial_data_retrieve_params.rbs | 14 +- sig/lithic/resources/account_holders.rbs | 36 +- sig/lithic/resources/auth_rules/v2.rbs | 18 +- .../resources/external_bank_accounts.rbs | 18 +- test/lithic/resources/account_holders_test.rb | 64 +- test/lithic/resources/auth_rules/v2_test.rb | 11 +- .../resources/external_bank_accounts_test.rb | 20 +- 376 files changed, 9489 insertions(+), 5056 deletions(-) diff --git a/lib/lithic/models/account_activity_retrieve_transaction_params.rb b/lib/lithic/models/account_activity_retrieve_transaction_params.rb index 6e601321..48b53772 100644 --- a/lib/lithic/models/account_activity_retrieve_transaction_params.rb +++ b/lib/lithic/models/account_activity_retrieve_transaction_params.rb @@ -7,7 +7,13 @@ class AccountActivityRetrieveTransactionParams < Lithic::Internal::Type::BaseMod extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - # @!method initialize(request_options: {}) + # @!attribute transaction_token + # + # @return [String] + required :transaction_token, String + + # @!method initialize(transaction_token:, request_options: {}) + # @param transaction_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/account_holder_create_params.rb b/lib/lithic/models/account_holder_create_params.rb index 6b439021..6f62f079 100644 --- a/lib/lithic/models/account_holder_create_params.rb +++ b/lib/lithic/models/account_holder_create_params.rb @@ -7,488 +7,348 @@ class AccountHolderCreateParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - # @!attribute beneficial_owner_individuals - # You can submit a list of all direct and indirect individuals with 25% or more - # ownership in the company. A maximum of 4 beneficial owners can be submitted. If - # no individual owns 25% of the company you do not need to send beneficial owner - # information. See - # [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf) - # (Section I) for more background on individuals that should be included. + # @!attribute body # - # @return [Array, nil] - optional :beneficial_owner_individuals, - -> { Lithic::Internal::Type::ArrayOf[Lithic::AccountHolderCreateParams::BeneficialOwnerIndividual] } + # @return [Lithic::Models::KYB, Lithic::Models::AccountHolderCreateParams::Body::KYBDelegated, Lithic::Models::KYC, Lithic::Models::KYCExempt] + required :body, union: -> { Lithic::AccountHolderCreateParams::Body } - # @!attribute business_entity - # Information for business for which the account is being opened. - # - # @return [Lithic::Models::AccountHolderCreateParams::BusinessEntity] - required :business_entity, -> { Lithic::AccountHolderCreateParams::BusinessEntity } - - # @!attribute control_person - # An individual with significant responsibility for managing the legal entity - # (e.g., a Chief Executive Officer, Chief Financial Officer, Chief Operating - # Officer, Managing Member, General Partner, President, Vice President, or - # Treasurer). This can be an executive, or someone who will have program-wide - # access to the cards that Lithic will provide. In some cases, this individual - # could also be a beneficial owner listed above. See - # [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf) - # (Section II) for more background. - # - # @return [Lithic::Models::AccountHolderCreateParams::ControlPerson, nil] - optional :control_person, -> { Lithic::AccountHolderCreateParams::ControlPerson } - - # @!attribute nature_of_business - # Short description of the company's line of business (i.e., what does the company - # do?). - # - # @return [String, nil] - optional :nature_of_business, String - - # @!attribute tos_timestamp - # An RFC 3339 timestamp indicating when the account holder accepted the applicable - # legal agreements (e.g., cardholder terms) as agreed upon during API customer's - # implementation with Lithic. - # - # @return [String] - required :tos_timestamp, String - - # @!attribute workflow - # Specifies the workflow type. This must be 'KYC_EXEMPT' - # - # @return [Symbol, Lithic::Models::AccountHolderCreateParams::Workflow] - required :workflow, enum: -> { Lithic::AccountHolderCreateParams::Workflow } - - # @!attribute external_id - # A user provided id that can be used to link an account holder with an external - # system - # - # @return [String, nil] - optional :external_id, String - - # @!attribute kyb_passed_timestamp - # An RFC 3339 timestamp indicating when precomputed KYB was completed on the - # business with a pass result. - # - # This field is required only if workflow type is `KYB_BYO`. - # - # @return [String, nil] - optional :kyb_passed_timestamp, String - - # @!attribute naics_code - # 6-digit North American Industry Classification System (NAICS) code for the - # business. - # - # @return [String, nil] - optional :naics_code, String - - # @!attribute website_url - # Company website URL. - # - # @return [String, nil] - optional :website_url, String - - # @!attribute individual - # Information on individual for whom the account is being opened and KYC is being - # run. - # - # @return [Lithic::Models::AccountHolderCreateParams::Individual] - required :individual, -> { Lithic::AccountHolderCreateParams::Individual } - - # @!attribute kyc_passed_timestamp - # An RFC 3339 timestamp indicating when precomputed KYC was completed on the - # individual with a pass result. - # - # This field is required only if workflow type is `KYC_BYO`. - # - # @return [String, nil] - optional :kyc_passed_timestamp, String - - # @!attribute address - # KYC Exempt user's current address - PO boxes, UPS drops, and FedEx drops are not - # acceptable; APO/FPO are acceptable. - # - # @return [Lithic::Models::Address] - required :address, -> { Lithic::Address } - - # @!attribute email - # The KYC Exempt user's email - # - # @return [String] - required :email, String - - # @!attribute first_name - # The KYC Exempt user's first name - # - # @return [String] - required :first_name, String - - # @!attribute kyc_exemption_type - # Specifies the type of KYC Exempt user - # - # @return [Symbol, Lithic::Models::AccountHolderCreateParams::KYCExemptionType] - required :kyc_exemption_type, enum: -> { Lithic::AccountHolderCreateParams::KYCExemptionType } - - # @!attribute last_name - # The KYC Exempt user's last name - # - # @return [String] - required :last_name, String - - # @!attribute phone_number - # The KYC Exempt user's phone number, entered in E.164 format. - # - # @return [String] - required :phone_number, String - - # @!attribute business_account_token - # Only applicable for customers using the KYC-Exempt workflow to enroll authorized - # users of businesses. Pass the account_token of the enrolled business associated - # with the AUTHORIZED_USER in this field. - # - # @return [String, nil] - optional :business_account_token, String - - # @!method initialize(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, external_id: nil, kyb_passed_timestamp: nil, naics_code: nil, website_url: nil, kyc_passed_timestamp: nil, business_account_token: nil, request_options: {}) - # Some parameter documentations has been truncated, see - # {Lithic::Models::AccountHolderCreateParams} for more details. - # - # @param business_entity [Lithic::Models::AccountHolderCreateParams::BusinessEntity] Information for business for which the account is being opened. - # - # @param tos_timestamp [String] An RFC 3339 timestamp indicating when the account holder accepted the applicable - # - # @param workflow [Symbol, Lithic::Models::AccountHolderCreateParams::Workflow] Specifies the workflow type. This must be 'KYC_EXEMPT' - # - # @param individual [Lithic::Models::AccountHolderCreateParams::Individual] Information on individual for whom the account is being opened and KYC is being - # - # @param address [Lithic::Models::Address] KYC Exempt user's current address - PO boxes, UPS drops, and FedEx drops are not - # - # @param email [String] The KYC Exempt user's email - # - # @param first_name [String] The KYC Exempt user's first name - # - # @param kyc_exemption_type [Symbol, Lithic::Models::AccountHolderCreateParams::KYCExemptionType] Specifies the type of KYC Exempt user - # - # @param last_name [String] The KYC Exempt user's last name - # - # @param phone_number [String] The KYC Exempt user's phone number, entered in E.164 format. - # - # @param beneficial_owner_individuals [Array] You can submit a list of all direct and indirect individuals with 25% or more ow - # - # @param control_person [Lithic::Models::AccountHolderCreateParams::ControlPerson] An individual with significant responsibility for managing the legal entity (e.g - # - # @param nature_of_business [String] Short description of the company's line of business (i.e., what does the company - # - # @param external_id [String] A user provided id that can be used to link an account holder with an external s - # - # @param kyb_passed_timestamp [String] An RFC 3339 timestamp indicating when precomputed KYB was completed on the busin - # - # @param naics_code [String] 6-digit North American Industry Classification System (NAICS) code for the busin - # - # @param website_url [String] Company website URL. - # - # @param kyc_passed_timestamp [String] An RFC 3339 timestamp indicating when precomputed KYC was completed on the indiv - # - # @param business_account_token [String] Only applicable for customers using the KYC-Exempt workflow to enroll authorized - # + # @!method initialize(body:, request_options: {}) + # @param body [Lithic::Models::KYB, Lithic::Models::AccountHolderCreateParams::Body::KYBDelegated, Lithic::Models::KYC, Lithic::Models::KYCExempt] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] - class BeneficialOwnerIndividual < Lithic::Internal::Type::BaseModel - # @!attribute address - # Individual's current address - PO boxes, UPS drops, and FedEx drops are not - # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported. - # - # @return [Lithic::Models::Address] - required :address, -> { Lithic::Address } - - # @!attribute dob - # Individual's date of birth, as an RFC 3339 date. - # - # @return [String] - required :dob, String - - # @!attribute email - # Individual's email address. If utilizing Lithic for chargeback processing, this - # customer email address may be used to communicate dispute status and resolution. - # - # @return [String] - required :email, String - - # @!attribute first_name - # Individual's first name, as it appears on government-issued identity documents. - # - # @return [String] - required :first_name, String - - # @!attribute government_id - # Government-issued identification number (required for identity verification and - # compliance with banking regulations). Social Security Numbers (SSN) and - # Individual Taxpayer Identification Numbers (ITIN) are currently supported, - # entered as full nine-digits, with or without hyphens - # - # @return [String] - required :government_id, String - - # @!attribute last_name - # Individual's last name, as it appears on government-issued identity documents. - # - # @return [String] - required :last_name, String - - # @!attribute phone_number - # Individual's phone number, entered in E.164 format. - # - # @return [String, nil] - optional :phone_number, String - - # @!method initialize(address:, dob:, email:, first_name:, government_id:, last_name:, phone_number: nil) - # Some parameter documentations has been truncated, see - # {Lithic::Models::AccountHolderCreateParams::BeneficialOwnerIndividual} for more - # details. - # - # Individuals associated with a KYB application. Phone number is optional. - # - # @param address [Lithic::Models::Address] Individual's current address - PO boxes, UPS drops, and FedEx drops are not acce - # - # @param dob [String] Individual's date of birth, as an RFC 3339 date. - # - # @param email [String] Individual's email address. - # - # @param first_name [String] Individual's first name, as it appears on government-issued identity documents. - # - # @param government_id [String] Government-issued identification number (required for identity verification and - # - # @param last_name [String] Individual's last name, as it appears on government-issued identity documents. - # - # @param phone_number [String] Individual's phone number, entered in E.164 format. - end - - class BusinessEntity < Lithic::Internal::Type::BaseModel - # @!attribute address - # Business's physical address - PO boxes, UPS drops, and FedEx drops are not - # acceptable; APO/FPO are acceptable. - # - # @return [Lithic::Models::Address] - required :address, -> { Lithic::Address } - - # @!attribute legal_business_name - # Legal (formal) business name. - # - # @return [String] - required :legal_business_name, String - - # @!attribute dba_business_name - # Any name that the business operates under that is not its legal business name - # (if applicable). - # - # @return [String, nil] - optional :dba_business_name, String - - # @!attribute government_id - # Government-issued identification number. US Federal Employer Identification - # Numbers (EIN) are currently supported, entered as full nine-digits, with or - # without hyphens. - # - # @return [String, nil] - optional :government_id, String - - # @!attribute parent_company - # Parent company name (if applicable). - # - # @return [String, nil] - optional :parent_company, String - - # @!attribute phone_numbers - # One or more of the business's phone number(s), entered as a list in E.164 - # format. - # - # @return [Array, nil] - optional :phone_numbers, Lithic::Internal::Type::ArrayOf[String] - - # @!method initialize(address:, legal_business_name:, dba_business_name: nil, government_id: nil, parent_company: nil, phone_numbers: nil) - # Some parameter documentations has been truncated, see - # {Lithic::Models::AccountHolderCreateParams::BusinessEntity} for more details. - # - # Information for business for which the account is being opened. - # - # @param address [Lithic::Models::Address] Business's physical address - PO boxes, UPS drops, and FedEx drops are not accep - # - # @param legal_business_name [String] Legal (formal) business name. - # - # @param dba_business_name [String] Any name that the business operates under that is not its legal business name (i - # - # @param government_id [String] Government-issued identification number. US Federal Employer Identification Numb - # - # @param parent_company [String] Parent company name (if applicable). - # - # @param phone_numbers [Array] One or more of the business's phone number(s), entered as a list in E.164 format - end - - class ControlPerson < Lithic::Internal::Type::BaseModel - # @!attribute address - # Individual's current address - PO boxes, UPS drops, and FedEx drops are not - # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported. - # - # @return [Lithic::Models::Address] - required :address, -> { Lithic::Address } - - # @!attribute dob - # Individual's date of birth, as an RFC 3339 date. - # - # @return [String] - required :dob, String - - # @!attribute email - # Individual's email address. If utilizing Lithic for chargeback processing, this - # customer email address may be used to communicate dispute status and resolution. - # - # @return [String] - required :email, String - - # @!attribute first_name - # Individual's first name, as it appears on government-issued identity documents. - # - # @return [String] - required :first_name, String - - # @!attribute government_id - # Government-issued identification number (required for identity verification and - # compliance with banking regulations). Social Security Numbers (SSN) and - # Individual Taxpayer Identification Numbers (ITIN) are currently supported, - # entered as full nine-digits, with or without hyphens - # - # @return [String] - required :government_id, String - - # @!attribute last_name - # Individual's last name, as it appears on government-issued identity documents. - # - # @return [String] - required :last_name, String - - # @!attribute phone_number - # Individual's phone number, entered in E.164 format. - # - # @return [String, nil] - optional :phone_number, String - - # @!method initialize(address:, dob:, email:, first_name:, government_id:, last_name:, phone_number: nil) - # Some parameter documentations has been truncated, see - # {Lithic::Models::AccountHolderCreateParams::ControlPerson} for more details. - # - # An individual with significant responsibility for managing the legal entity - # (e.g., a Chief Executive Officer, Chief Financial Officer, Chief Operating - # Officer, Managing Member, General Partner, President, Vice President, or - # Treasurer). This can be an executive, or someone who will have program-wide - # access to the cards that Lithic will provide. In some cases, this individual - # could also be a beneficial owner listed above. See - # [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf) - # (Section II) for more background. - # - # @param address [Lithic::Models::Address] Individual's current address - PO boxes, UPS drops, and FedEx drops are not acce - # - # @param dob [String] Individual's date of birth, as an RFC 3339 date. - # - # @param email [String] Individual's email address. - # - # @param first_name [String] Individual's first name, as it appears on government-issued identity documents. - # - # @param government_id [String] Government-issued identification number (required for identity verification and - # - # @param last_name [String] Individual's last name, as it appears on government-issued identity documents. - # - # @param phone_number [String] Individual's phone number, entered in E.164 format. - end - - # Specifies the workflow type. This must be 'KYC_EXEMPT' - module Workflow - extend Lithic::Internal::Type::Enum - - KYC_EXEMPT = :KYC_EXEMPT - - # @!method self.values - # @return [Array] - end - - class Individual < Lithic::Internal::Type::BaseModel - # @!attribute address - # Individual's current address - PO boxes, UPS drops, and FedEx drops are not - # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported. - # - # @return [Lithic::Models::Address] - required :address, -> { Lithic::Address } - - # @!attribute dob - # Individual's date of birth, as an RFC 3339 date. - # - # @return [String] - required :dob, String - - # @!attribute email - # Individual's email address. If utilizing Lithic for chargeback processing, this - # customer email address may be used to communicate dispute status and resolution. - # - # @return [String] - required :email, String - - # @!attribute first_name - # Individual's first name, as it appears on government-issued identity documents. - # - # @return [String] - required :first_name, String - - # @!attribute government_id - # Government-issued identification number (required for identity verification and - # compliance with banking regulations). Social Security Numbers (SSN) and - # Individual Taxpayer Identification Numbers (ITIN) are currently supported, - # entered as full nine-digits, with or without hyphens - # - # @return [String] - required :government_id, String - - # @!attribute last_name - # Individual's last name, as it appears on government-issued identity documents. - # - # @return [String] - required :last_name, String - - # @!attribute phone_number - # Individual's phone number, entered in E.164 format. - # - # @return [String] - required :phone_number, String - - # @!method initialize(address:, dob:, email:, first_name:, government_id:, last_name:, phone_number:) - # Some parameter documentations has been truncated, see - # {Lithic::Models::AccountHolderCreateParams::Individual} for more details. - # - # Information on individual for whom the account is being opened and KYC is being - # run. - # - # @param address [Lithic::Models::Address] Individual's current address - PO boxes, UPS drops, and FedEx drops are not acce - # - # @param dob [String] Individual's date of birth, as an RFC 3339 date. - # - # @param email [String] Individual's email address. - # - # @param first_name [String] Individual's first name, as it appears on government-issued identity documents. - # - # @param government_id [String] Government-issued identification number (required for identity verification and - # - # @param last_name [String] Individual's last name, as it appears on government-issued identity documents. - # - # @param phone_number [String] Individual's phone number, entered in E.164 format. - end - - # Specifies the type of KYC Exempt user - module KYCExemptionType - extend Lithic::Internal::Type::Enum - - AUTHORIZED_USER = :AUTHORIZED_USER - PREPAID_CARD_USER = :PREPAID_CARD_USER - - # @!method self.values - # @return [Array] + module Body + extend Lithic::Internal::Type::Union + + variant -> { Lithic::KYB } + + variant -> { Lithic::AccountHolderCreateParams::Body::KYBDelegated } + + variant -> { Lithic::KYC } + + variant -> { Lithic::KYCExempt } + + class KYBDelegated < Lithic::Internal::Type::BaseModel + # @!attribute business_entity + # Information for business for which the account is being opened. + # + # @return [Lithic::Models::AccountHolderCreateParams::Body::KYBDelegated::BusinessEntity] + required :business_entity, -> { Lithic::AccountHolderCreateParams::Body::KYBDelegated::BusinessEntity } + + # @!attribute beneficial_owner_individuals + # You can submit a list of all direct and indirect individuals with 25% or more + # ownership in the company. A maximum of 4 beneficial owners can be submitted. If + # no individual owns 25% of the company you do not need to send beneficial owner + # information. See + # [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf) + # (Section I) for more background on individuals that should be included. + # + # @return [Array, nil] + optional :beneficial_owner_individuals, + -> { Lithic::Internal::Type::ArrayOf[Lithic::AccountHolderCreateParams::Body::KYBDelegated::BeneficialOwnerIndividual] } + + # @!attribute control_person + # An individual with significant responsibility for managing the legal entity + # (e.g., a Chief Executive Officer, Chief Financial Officer, Chief Operating + # Officer, Managing Member, General Partner, President, Vice President, or + # Treasurer). This can be an executive, or someone who will have program-wide + # access to the cards that Lithic will provide. In some cases, this individual + # could also be a beneficial owner listed above. See + # [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf) + # (Section II) for more background. + # + # @return [Lithic::Models::AccountHolderCreateParams::Body::KYBDelegated::ControlPerson, nil] + optional :control_person, -> { Lithic::AccountHolderCreateParams::Body::KYBDelegated::ControlPerson } + + # @!attribute external_id + # A user provided id that can be used to link an account holder with an external + # system + # + # @return [String, nil] + optional :external_id, String + + # @!attribute naics_code + # 6-digit North American Industry Classification System (NAICS) code for the + # business. + # + # @return [String, nil] + optional :naics_code, String + + # @!attribute nature_of_business + # Short description of the company's line of business (i.e., what does the company + # do?). + # + # @return [String, nil] + optional :nature_of_business, String + + # @!attribute tos_timestamp + # An RFC 3339 timestamp indicating when the account holder accepted the applicable + # legal agreements (e.g., cardholder terms) as agreed upon during API customer's + # implementation with Lithic. + # + # @return [String, nil] + optional :tos_timestamp, String + + # @!attribute website_url + # Company website URL. + # + # @return [String, nil] + optional :website_url, String + + # @!attribute workflow + # Specifies the type of KYB workflow to run. + # + # @return [Symbol, Lithic::Models::AccountHolderCreateParams::Body::KYBDelegated::Workflow, nil] + optional :workflow, enum: -> { Lithic::AccountHolderCreateParams::Body::KYBDelegated::Workflow } + + # @!method initialize(business_entity:, beneficial_owner_individuals: nil, control_person: nil, external_id: nil, naics_code: nil, nature_of_business: nil, tos_timestamp: nil, website_url: nil, workflow: nil) + # Some parameter documentations has been truncated, see + # {Lithic::Models::AccountHolderCreateParams::Body::KYBDelegated} for more + # details. + # + # @param business_entity [Lithic::Models::AccountHolderCreateParams::Body::KYBDelegated::BusinessEntity] Information for business for which the account is being opened. + # + # @param beneficial_owner_individuals [Array] You can submit a list of all direct and indirect individuals with 25% or more ow + # + # @param control_person [Lithic::Models::AccountHolderCreateParams::Body::KYBDelegated::ControlPerson] An individual with significant responsibility for managing the legal entity (e.g + # + # @param external_id [String] A user provided id that can be used to link an account holder with an external s + # + # @param naics_code [String] 6-digit North American Industry Classification System (NAICS) code for the busin + # + # @param nature_of_business [String] Short description of the company's line of business (i.e., what does the company + # + # @param tos_timestamp [String] An RFC 3339 timestamp indicating when the account holder accepted the applicable + # + # @param website_url [String] Company website URL. + # + # @param workflow [Symbol, Lithic::Models::AccountHolderCreateParams::Body::KYBDelegated::Workflow] Specifies the type of KYB workflow to run. + + # @see Lithic::Models::AccountHolderCreateParams::Body::KYBDelegated#business_entity + class BusinessEntity < Lithic::Internal::Type::BaseModel + # @!attribute address + # Business's physical address - PO boxes, UPS drops, and FedEx drops are not + # acceptable; APO/FPO are acceptable. + # + # @return [Lithic::Models::Address] + required :address, -> { Lithic::Address } + + # @!attribute legal_business_name + # Legal (formal) business name. + # + # @return [String] + required :legal_business_name, String + + # @!attribute dba_business_name + # Any name that the business operates under that is not its legal business name + # (if applicable). + # + # @return [String, nil] + optional :dba_business_name, String + + # @!attribute government_id + # Government-issued identification number. US Federal Employer Identification + # Numbers (EIN) are currently supported, entered as full nine-digits, with or + # without hyphens. + # + # @return [String, nil] + optional :government_id, String + + # @!attribute parent_company + # Parent company name (if applicable). + # + # @return [String, nil] + optional :parent_company, String + + # @!attribute phone_numbers + # One or more of the business's phone number(s), entered as a list in E.164 + # format. + # + # @return [Array, nil] + optional :phone_numbers, Lithic::Internal::Type::ArrayOf[String] + + # @!method initialize(address:, legal_business_name:, dba_business_name: nil, government_id: nil, parent_company: nil, phone_numbers: nil) + # Some parameter documentations has been truncated, see + # {Lithic::Models::AccountHolderCreateParams::Body::KYBDelegated::BusinessEntity} + # for more details. + # + # Information for business for which the account is being opened. + # + # @param address [Lithic::Models::Address] Business's physical address - PO boxes, UPS drops, and FedEx drops are not accep + # + # @param legal_business_name [String] Legal (formal) business name. + # + # @param dba_business_name [String] Any name that the business operates under that is not its legal business name (i + # + # @param government_id [String] Government-issued identification number. US Federal Employer Identification Numb + # + # @param parent_company [String] Parent company name (if applicable). + # + # @param phone_numbers [Array] One or more of the business's phone number(s), entered as a list in E.164 format + end + + class BeneficialOwnerIndividual < Lithic::Internal::Type::BaseModel + # @!attribute address + # Individual's current address - PO boxes, UPS drops, and FedEx drops are not + # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported. + # + # @return [Lithic::Models::Address] + required :address, -> { Lithic::Address } + + # @!attribute dob + # Individual's date of birth, as an RFC 3339 date. + # + # @return [String] + required :dob, String + + # @!attribute email + # Individual's email address. If utilizing Lithic for chargeback processing, this + # customer email address may be used to communicate dispute status and resolution. + # + # @return [String] + required :email, String + + # @!attribute first_name + # Individual's first name, as it appears on government-issued identity documents. + # + # @return [String] + required :first_name, String + + # @!attribute government_id + # Government-issued identification number (required for identity verification and + # compliance with banking regulations). Social Security Numbers (SSN) and + # Individual Taxpayer Identification Numbers (ITIN) are currently supported, + # entered as full nine-digits, with or without hyphens + # + # @return [String] + required :government_id, String + + # @!attribute last_name + # Individual's last name, as it appears on government-issued identity documents. + # + # @return [String] + required :last_name, String + + # @!attribute phone_number + # Individual's phone number, entered in E.164 format. + # + # @return [String, nil] + optional :phone_number, String + + # @!method initialize(address:, dob:, email:, first_name:, government_id:, last_name:, phone_number: nil) + # Some parameter documentations has been truncated, see + # {Lithic::Models::AccountHolderCreateParams::Body::KYBDelegated::BeneficialOwnerIndividual} + # for more details. + # + # Individuals associated with a KYB application. Phone number is optional. + # + # @param address [Lithic::Models::Address] Individual's current address - PO boxes, UPS drops, and FedEx drops are not acce + # + # @param dob [String] Individual's date of birth, as an RFC 3339 date. + # + # @param email [String] Individual's email address. + # + # @param first_name [String] Individual's first name, as it appears on government-issued identity documents. + # + # @param government_id [String] Government-issued identification number (required for identity verification and + # + # @param last_name [String] Individual's last name, as it appears on government-issued identity documents. + # + # @param phone_number [String] Individual's phone number, entered in E.164 format. + end + + # @see Lithic::Models::AccountHolderCreateParams::Body::KYBDelegated#control_person + class ControlPerson < Lithic::Internal::Type::BaseModel + # @!attribute address + # Individual's current address - PO boxes, UPS drops, and FedEx drops are not + # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported. + # + # @return [Lithic::Models::Address] + required :address, -> { Lithic::Address } + + # @!attribute dob + # Individual's date of birth, as an RFC 3339 date. + # + # @return [String] + required :dob, String + + # @!attribute email + # Individual's email address. If utilizing Lithic for chargeback processing, this + # customer email address may be used to communicate dispute status and resolution. + # + # @return [String] + required :email, String + + # @!attribute first_name + # Individual's first name, as it appears on government-issued identity documents. + # + # @return [String] + required :first_name, String + + # @!attribute government_id + # Government-issued identification number (required for identity verification and + # compliance with banking regulations). Social Security Numbers (SSN) and + # Individual Taxpayer Identification Numbers (ITIN) are currently supported, + # entered as full nine-digits, with or without hyphens + # + # @return [String] + required :government_id, String + + # @!attribute last_name + # Individual's last name, as it appears on government-issued identity documents. + # + # @return [String] + required :last_name, String + + # @!attribute phone_number + # Individual's phone number, entered in E.164 format. + # + # @return [String, nil] + optional :phone_number, String + + # @!method initialize(address:, dob:, email:, first_name:, government_id:, last_name:, phone_number: nil) + # Some parameter documentations has been truncated, see + # {Lithic::Models::AccountHolderCreateParams::Body::KYBDelegated::ControlPerson} + # for more details. + # + # An individual with significant responsibility for managing the legal entity + # (e.g., a Chief Executive Officer, Chief Financial Officer, Chief Operating + # Officer, Managing Member, General Partner, President, Vice President, or + # Treasurer). This can be an executive, or someone who will have program-wide + # access to the cards that Lithic will provide. In some cases, this individual + # could also be a beneficial owner listed above. See + # [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf) + # (Section II) for more background. + # + # @param address [Lithic::Models::Address] Individual's current address - PO boxes, UPS drops, and FedEx drops are not acce + # + # @param dob [String] Individual's date of birth, as an RFC 3339 date. + # + # @param email [String] Individual's email address. + # + # @param first_name [String] Individual's first name, as it appears on government-issued identity documents. + # + # @param government_id [String] Government-issued identification number (required for identity verification and + # + # @param last_name [String] Individual's last name, as it appears on government-issued identity documents. + # + # @param phone_number [String] Individual's phone number, entered in E.164 format. + end + + # Specifies the type of KYB workflow to run. + # + # @see Lithic::Models::AccountHolderCreateParams::Body::KYBDelegated#workflow + module Workflow + extend Lithic::Internal::Type::Enum + + KYB_DELEGATED = :KYB_DELEGATED + + # @!method self.values + # @return [Array] + end + end + + # @!method self.variants + # @return [Array(Lithic::Models::KYB, Lithic::Models::AccountHolderCreateParams::Body::KYBDelegated, Lithic::Models::KYC, Lithic::Models::KYCExempt)] end end end diff --git a/lib/lithic/models/account_holder_list_documents_params.rb b/lib/lithic/models/account_holder_list_documents_params.rb index b04c056c..dfd29794 100644 --- a/lib/lithic/models/account_holder_list_documents_params.rb +++ b/lib/lithic/models/account_holder_list_documents_params.rb @@ -7,7 +7,13 @@ class AccountHolderListDocumentsParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - # @!method initialize(request_options: {}) + # @!attribute account_holder_token + # + # @return [String] + required :account_holder_token, String + + # @!method initialize(account_holder_token:, request_options: {}) + # @param account_holder_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/account_holder_retrieve_document_params.rb b/lib/lithic/models/account_holder_retrieve_document_params.rb index c42eb63e..0d8a4332 100644 --- a/lib/lithic/models/account_holder_retrieve_document_params.rb +++ b/lib/lithic/models/account_holder_retrieve_document_params.rb @@ -12,8 +12,14 @@ class AccountHolderRetrieveDocumentParams < Lithic::Internal::Type::BaseModel # @return [String] required :account_holder_token, String - # @!method initialize(account_holder_token:, request_options: {}) + # @!attribute document_token + # + # @return [String] + required :document_token, String + + # @!method initialize(account_holder_token:, document_token:, request_options: {}) # @param account_holder_token [String] + # @param document_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/account_holder_retrieve_params.rb b/lib/lithic/models/account_holder_retrieve_params.rb index 13d692c7..b190ac35 100644 --- a/lib/lithic/models/account_holder_retrieve_params.rb +++ b/lib/lithic/models/account_holder_retrieve_params.rb @@ -7,7 +7,13 @@ class AccountHolderRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - # @!method initialize(request_options: {}) + # @!attribute account_holder_token + # + # @return [String] + required :account_holder_token, String + + # @!method initialize(account_holder_token:, request_options: {}) + # @param account_holder_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/account_holder_update_params.rb b/lib/lithic/models/account_holder_update_params.rb index b772659c..8125590c 100644 --- a/lib/lithic/models/account_holder_update_params.rb +++ b/lib/lithic/models/account_holder_update_params.rb @@ -7,469 +7,540 @@ class AccountHolderUpdateParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - # @!attribute beneficial_owner_individuals - # You must submit a list of all direct and indirect individuals with 25% or more - # ownership in the company. A maximum of 4 beneficial owners can be submitted. If - # no individual owns 25% of the company you do not need to send beneficial owner - # information. See - # [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf) - # (Section I) for more background on individuals that should be included. + # @!attribute account_holder_token # - # @return [Array, nil] - optional :beneficial_owner_individuals, - -> { Lithic::Internal::Type::ArrayOf[Lithic::AccountHolderUpdateParams::BeneficialOwnerIndividual] } + # @return [String] + required :account_holder_token, String - # @!attribute business_entity - # Information for business for which the account is being opened and KYB is being - # run. + # @!attribute body + # The KYB request payload for updating a business. # - # @return [Lithic::Models::AccountHolderUpdateParams::BusinessEntity, nil] - optional :business_entity, -> { Lithic::AccountHolderUpdateParams::BusinessEntity } - - # @!attribute control_person - # An individual with significant responsibility for managing the legal entity - # (e.g., a Chief Executive Officer, Chief Financial Officer, Chief Operating - # Officer, Managing Member, General Partner, President, Vice President, or - # Treasurer). This can be an executive, or someone who will have program-wide - # access to the cards that Lithic will provide. In some cases, this individual - # could also be a beneficial owner listed above. See - # [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf) - # (Section II) for more background. - # - # @return [Lithic::Models::AccountHolderUpdateParams::ControlPerson, nil] - optional :control_person, -> { Lithic::AccountHolderUpdateParams::ControlPerson } + # @return [Lithic::Models::AccountHolderUpdateParams::Body::KYBPatchRequest, Lithic::Models::AccountHolderUpdateParams::Body::KYCPatchRequest, Lithic::Models::AccountHolderUpdateParams::Body::PatchRequest] + required :body, union: -> { Lithic::AccountHolderUpdateParams::Body } - # @!attribute external_id - # A user provided id that can be used to link an account holder with an external - # system + # @!method initialize(account_holder_token:, body:, request_options: {}) + # @param account_holder_token [String] # - # @return [String, nil] - optional :external_id, String - - # @!attribute naics_code - # 6-digit North American Industry Classification System (NAICS) code for the - # business. + # @param body [Lithic::Models::AccountHolderUpdateParams::Body::KYBPatchRequest, Lithic::Models::AccountHolderUpdateParams::Body::KYCPatchRequest, Lithic::Models::AccountHolderUpdateParams::Body::PatchRequest] The KYB request payload for updating a business. # - # @return [String, nil] - optional :naics_code, String + # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] - # @!attribute nature_of_business - # Short description of the company's line of business (i.e., what does the company - # do?). - # - # @return [String, nil] - optional :nature_of_business, String + # The KYB request payload for updating a business. + module Body + extend Lithic::Internal::Type::Union - # @!attribute website_url - # Company website URL. - # - # @return [String, nil] - optional :website_url, String + # The KYB request payload for updating a business. + variant -> { Lithic::AccountHolderUpdateParams::Body::KYBPatchRequest } - # @!attribute individual - # Information on the individual for whom the account is being opened and KYC is - # being run. - # - # @return [Lithic::Models::AccountHolderUpdateParams::Individual, nil] - optional :individual, -> { Lithic::AccountHolderUpdateParams::Individual } + # The KYC request payload for updating an account holder. + variant -> { Lithic::AccountHolderUpdateParams::Body::KYCPatchRequest } - # @!attribute address - # Allowed for: KYC-Exempt, BYO-KYC, BYO-KYB. - # - # @return [Lithic::Models::AddressUpdate, nil] - optional :address, -> { Lithic::AddressUpdate } + # The legacy request for updating an account holder. + variant -> { Lithic::AccountHolderUpdateParams::Body::PatchRequest } - # @!attribute business_account_token - # Allowed for: KYC-Exempt, BYO-KYC. The token of the business account to which the - # account holder is associated. - # - # @return [String, nil] - optional :business_account_token, String + class KYBPatchRequest < Lithic::Internal::Type::BaseModel + # @!attribute beneficial_owner_individuals + # You must submit a list of all direct and indirect individuals with 25% or more + # ownership in the company. A maximum of 4 beneficial owners can be submitted. If + # no individual owns 25% of the company you do not need to send beneficial owner + # information. See + # [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf) + # (Section I) for more background on individuals that should be included. + # + # @return [Array, nil] + optional :beneficial_owner_individuals, + -> { Lithic::Internal::Type::ArrayOf[Lithic::AccountHolderUpdateParams::Body::KYBPatchRequest::BeneficialOwnerIndividual] } - # @!attribute email - # Allowed for all Account Holders. Account holder's email address. The primary - # purpose of this field is for cardholder identification and verification during - # the digital wallet tokenization process. - # - # @return [String, nil] - optional :email, String + # @!attribute business_entity + # Information for business for which the account is being opened and KYB is being + # run. + # + # @return [Lithic::Models::AccountHolderUpdateParams::Body::KYBPatchRequest::BusinessEntity, nil] + optional :business_entity, -> { Lithic::AccountHolderUpdateParams::Body::KYBPatchRequest::BusinessEntity } + + # @!attribute control_person + # An individual with significant responsibility for managing the legal entity + # (e.g., a Chief Executive Officer, Chief Financial Officer, Chief Operating + # Officer, Managing Member, General Partner, President, Vice President, or + # Treasurer). This can be an executive, or someone who will have program-wide + # access to the cards that Lithic will provide. In some cases, this individual + # could also be a beneficial owner listed above. See + # [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf) + # (Section II) for more background. + # + # @return [Lithic::Models::AccountHolderUpdateParams::Body::KYBPatchRequest::ControlPerson, nil] + optional :control_person, -> { Lithic::AccountHolderUpdateParams::Body::KYBPatchRequest::ControlPerson } - # @!attribute first_name - # Allowed for KYC-Exempt, BYO-KYC. Account holder's first name. - # - # @return [String, nil] - optional :first_name, String + # @!attribute external_id + # A user provided id that can be used to link an account holder with an external + # system + # + # @return [String, nil] + optional :external_id, String - # @!attribute last_name - # Allowed for KYC-Exempt, BYO-KYC. Account holder's last name. - # - # @return [String, nil] - optional :last_name, String + # @!attribute naics_code + # 6-digit North American Industry Classification System (NAICS) code for the + # business. + # + # @return [String, nil] + optional :naics_code, String - # @!attribute legal_business_name - # Allowed for BYO-KYB. Legal business name of the account holder. - # - # @return [String, nil] - optional :legal_business_name, String + # @!attribute nature_of_business + # Short description of the company's line of business (i.e., what does the company + # do?). + # + # @return [String, nil] + optional :nature_of_business, String - # @!attribute phone_number - # Allowed for all Account Holders. Account holder's phone number, entered in E.164 - # format. The primary purpose of this field is for cardholder identification and - # verification during the digital wallet tokenization process. - # - # @return [String, nil] - optional :phone_number, String + # @!attribute website_url + # Company website URL. + # + # @return [String, nil] + optional :website_url, String - # @!method initialize(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: {}) - # Some parameter documentations has been truncated, see - # {Lithic::Models::AccountHolderUpdateParams} for more details. - # - # @param beneficial_owner_individuals [Array] You must submit a list of all direct and indirect individuals with 25% or more o - # - # @param business_entity [Lithic::Models::AccountHolderUpdateParams::BusinessEntity] Information for business for which the account is being opened and KYB is being - # - # @param control_person [Lithic::Models::AccountHolderUpdateParams::ControlPerson] An individual with significant responsibility for managing the legal entity (e.g - # - # @param external_id [String] A user provided id that can be used to link an account holder with an external s - # - # @param naics_code [String] 6-digit North American Industry Classification System (NAICS) code for the busin - # - # @param nature_of_business [String] Short description of the company's line of business (i.e., what does the company - # - # @param website_url [String] Company website URL. - # - # @param individual [Lithic::Models::AccountHolderUpdateParams::Individual] Information on the individual for whom the account is being opened and KYC is be - # - # @param address [Lithic::Models::AddressUpdate] Allowed for: KYC-Exempt, BYO-KYC, BYO-KYB. - # - # @param business_account_token [String] Allowed for: KYC-Exempt, BYO-KYC. The token of the business account to which the - # - # @param email [String] Allowed for all Account Holders. Account holder's email address. The primary pur - # - # @param first_name [String] Allowed for KYC-Exempt, BYO-KYC. Account holder's first name. - # - # @param last_name [String] Allowed for KYC-Exempt, BYO-KYC. Account holder's last name. - # - # @param legal_business_name [String] Allowed for BYO-KYB. Legal business name of the account holder. - # - # @param phone_number [String] Allowed for all Account Holders. Account holder's phone number, entered in E.164 - # - # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] + # @!method initialize(beneficial_owner_individuals: nil, business_entity: nil, control_person: nil, external_id: nil, naics_code: nil, nature_of_business: nil, website_url: nil) + # Some parameter documentations has been truncated, see + # {Lithic::Models::AccountHolderUpdateParams::Body::KYBPatchRequest} for more + # details. + # + # The KYB request payload for updating a business. + # + # @param beneficial_owner_individuals [Array] You must submit a list of all direct and indirect individuals with 25% or more o + # + # @param business_entity [Lithic::Models::AccountHolderUpdateParams::Body::KYBPatchRequest::BusinessEntity] Information for business for which the account is being opened and KYB is being + # + # @param control_person [Lithic::Models::AccountHolderUpdateParams::Body::KYBPatchRequest::ControlPerson] An individual with significant responsibility for managing the legal entity (e.g + # + # @param external_id [String] A user provided id that can be used to link an account holder with an external s + # + # @param naics_code [String] 6-digit North American Industry Classification System (NAICS) code for the busin + # + # @param nature_of_business [String] Short description of the company's line of business (i.e., what does the company + # + # @param website_url [String] Company website URL. + + class BeneficialOwnerIndividual < Lithic::Internal::Type::BaseModel + # @!attribute entity_token + # Globally unique identifier for an entity. + # + # @return [String] + required :entity_token, String + + # @!attribute address + # Individual's current address - PO boxes, UPS drops, and FedEx drops are not + # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported. + # + # @return [Lithic::Models::AddressUpdate, nil] + optional :address, -> { Lithic::AddressUpdate } + + # @!attribute dob + # Individual's date of birth, as an RFC 3339 date. + # + # @return [String, nil] + optional :dob, String + + # @!attribute email + # Individual's email address. If utilizing Lithic for chargeback processing, this + # customer email address may be used to communicate dispute status and resolution. + # + # @return [String, nil] + optional :email, String + + # @!attribute first_name + # Individual's first name, as it appears on government-issued identity documents. + # + # @return [String, nil] + optional :first_name, String + + # @!attribute last_name + # Individual's last name, as it appears on government-issued identity documents. + # + # @return [String, nil] + optional :last_name, String + + # @!attribute phone_number + # Individual's phone number, entered in E.164 format. + # + # @return [String, nil] + optional :phone_number, String + + request_only do + # @!attribute government_id + # Government-issued identification number (required for identity verification and + # compliance with banking regulations). Social Security Numbers (SSN) and + # Individual Taxpayer Identification Numbers (ITIN) are currently supported, + # entered as full nine-digits, with or without hyphens + # + # @return [String, nil] + optional :government_id, String + end + + # @!method initialize(entity_token:, address: nil, dob: nil, email: nil, first_name: nil, government_id: nil, last_name: nil, phone_number: nil) + # Some parameter documentations has been truncated, see + # {Lithic::Models::AccountHolderUpdateParams::Body::KYBPatchRequest::BeneficialOwnerIndividual} + # for more details. + # + # Individuals associated with a KYB application. Phone number is optional. + # + # @param entity_token [String] Globally unique identifier for an entity. + # + # @param address [Lithic::Models::AddressUpdate] Individual's current address - PO boxes, UPS drops, and FedEx drops are not acce + # + # @param dob [String] Individual's date of birth, as an RFC 3339 date. + # + # @param email [String] Individual's email address. If utilizing Lithic for chargeback processing, this + # + # @param first_name [String] Individual's first name, as it appears on government-issued identity documents. + # + # @param government_id [String] Government-issued identification number (required for identity verification and + # + # @param last_name [String] Individual's last name, as it appears on government-issued identity documents. + # + # @param phone_number [String] Individual's phone number, entered in E.164 format. + end + + # @see Lithic::Models::AccountHolderUpdateParams::Body::KYBPatchRequest#business_entity + class BusinessEntity < Lithic::Internal::Type::BaseModel + # @!attribute entity_token + # Globally unique identifier for an entity. + # + # @return [String] + required :entity_token, String + + # @!attribute address + # Business''s physical address - PO boxes, UPS drops, and FedEx drops are not + # acceptable; APO/FPO are acceptable. + # + # @return [Lithic::Models::AddressUpdate, nil] + optional :address, -> { Lithic::AddressUpdate } + + # @!attribute dba_business_name + # Any name that the business operates under that is not its legal business name + # (if applicable). + # + # @return [String, nil] + optional :dba_business_name, String + + # @!attribute government_id + # Government-issued identification number. US Federal Employer Identification + # Numbers (EIN) are currently supported, entered as full nine-digits, with or + # without hyphens. + # + # @return [String, nil] + optional :government_id, String + + # @!attribute legal_business_name + # Legal (formal) business name. + # + # @return [String, nil] + optional :legal_business_name, String + + # @!attribute parent_company + # Parent company name (if applicable). + # + # @return [String, nil] + optional :parent_company, String + + # @!attribute phone_numbers + # One or more of the business's phone number(s), entered as a list in E.164 + # format. + # + # @return [Array, nil] + optional :phone_numbers, Lithic::Internal::Type::ArrayOf[String] + + # @!method initialize(entity_token:, address: nil, dba_business_name: nil, government_id: nil, legal_business_name: nil, parent_company: nil, phone_numbers: nil) + # Some parameter documentations has been truncated, see + # {Lithic::Models::AccountHolderUpdateParams::Body::KYBPatchRequest::BusinessEntity} + # for more details. + # + # Information for business for which the account is being opened and KYB is being + # run. + # + # @param entity_token [String] Globally unique identifier for an entity. + # + # @param address [Lithic::Models::AddressUpdate] Business''s physical address - PO boxes, UPS drops, and FedEx drops are not acce + # + # @param dba_business_name [String] Any name that the business operates under that is not its legal business name (i + # + # @param government_id [String] Government-issued identification number. US Federal Employer Identification Numb + # + # @param legal_business_name [String] Legal (formal) business name. + # + # @param parent_company [String] Parent company name (if applicable). + # + # @param phone_numbers [Array] One or more of the business's phone number(s), entered as a list in E.164 format + end + + # @see Lithic::Models::AccountHolderUpdateParams::Body::KYBPatchRequest#control_person + class ControlPerson < Lithic::Internal::Type::BaseModel + # @!attribute entity_token + # Globally unique identifier for an entity. + # + # @return [String] + required :entity_token, String + + # @!attribute address + # Individual's current address - PO boxes, UPS drops, and FedEx drops are not + # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported. + # + # @return [Lithic::Models::AddressUpdate, nil] + optional :address, -> { Lithic::AddressUpdate } + + # @!attribute dob + # Individual's date of birth, as an RFC 3339 date. + # + # @return [String, nil] + optional :dob, String + + # @!attribute email + # Individual's email address. If utilizing Lithic for chargeback processing, this + # customer email address may be used to communicate dispute status and resolution. + # + # @return [String, nil] + optional :email, String + + # @!attribute first_name + # Individual's first name, as it appears on government-issued identity documents. + # + # @return [String, nil] + optional :first_name, String + + # @!attribute last_name + # Individual's last name, as it appears on government-issued identity documents. + # + # @return [String, nil] + optional :last_name, String + + # @!attribute phone_number + # Individual's phone number, entered in E.164 format. + # + # @return [String, nil] + optional :phone_number, String + + request_only do + # @!attribute government_id + # Government-issued identification number (required for identity verification and + # compliance with banking regulations). Social Security Numbers (SSN) and + # Individual Taxpayer Identification Numbers (ITIN) are currently supported, + # entered as full nine-digits, with or without hyphens + # + # @return [String, nil] + optional :government_id, String + end + + # @!method initialize(entity_token:, address: nil, dob: nil, email: nil, first_name: nil, government_id: nil, last_name: nil, phone_number: nil) + # Some parameter documentations has been truncated, see + # {Lithic::Models::AccountHolderUpdateParams::Body::KYBPatchRequest::ControlPerson} + # for more details. + # + # An individual with significant responsibility for managing the legal entity + # (e.g., a Chief Executive Officer, Chief Financial Officer, Chief Operating + # Officer, Managing Member, General Partner, President, Vice President, or + # Treasurer). This can be an executive, or someone who will have program-wide + # access to the cards that Lithic will provide. In some cases, this individual + # could also be a beneficial owner listed above. See + # [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf) + # (Section II) for more background. + # + # @param entity_token [String] Globally unique identifier for an entity. + # + # @param address [Lithic::Models::AddressUpdate] Individual's current address - PO boxes, UPS drops, and FedEx drops are not acce + # + # @param dob [String] Individual's date of birth, as an RFC 3339 date. + # + # @param email [String] Individual's email address. If utilizing Lithic for chargeback processing, this + # + # @param first_name [String] Individual's first name, as it appears on government-issued identity documents. + # + # @param government_id [String] Government-issued identification number (required for identity verification and + # + # @param last_name [String] Individual's last name, as it appears on government-issued identity documents. + # + # @param phone_number [String] Individual's phone number, entered in E.164 format. + end + end - class BeneficialOwnerIndividual < Lithic::Internal::Type::BaseModel - # @!attribute entity_token - # Globally unique identifier for an entity. - # - # @return [String] - required :entity_token, String - - # @!attribute address - # Individual's current address - PO boxes, UPS drops, and FedEx drops are not - # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported. - # - # @return [Lithic::Models::AddressUpdate, nil] - optional :address, -> { Lithic::AddressUpdate } - - # @!attribute dob - # Individual's date of birth, as an RFC 3339 date. - # - # @return [String, nil] - optional :dob, String - - # @!attribute email - # Individual's email address. If utilizing Lithic for chargeback processing, this - # customer email address may be used to communicate dispute status and resolution. - # - # @return [String, nil] - optional :email, String - - # @!attribute first_name - # Individual's first name, as it appears on government-issued identity documents. - # - # @return [String, nil] - optional :first_name, String - - # @!attribute last_name - # Individual's last name, as it appears on government-issued identity documents. - # - # @return [String, nil] - optional :last_name, String - - # @!attribute phone_number - # Individual's phone number, entered in E.164 format. - # - # @return [String, nil] - optional :phone_number, String - - request_only do - # @!attribute government_id - # Government-issued identification number (required for identity verification and - # compliance with banking regulations). Social Security Numbers (SSN) and - # Individual Taxpayer Identification Numbers (ITIN) are currently supported, - # entered as full nine-digits, with or without hyphens + class KYCPatchRequest < Lithic::Internal::Type::BaseModel + # @!attribute external_id + # A user provided id that can be used to link an account holder with an external + # system # # @return [String, nil] - optional :government_id, String + optional :external_id, String + + # @!attribute individual + # Information on the individual for whom the account is being opened and KYC is + # being run. + # + # @return [Lithic::Models::AccountHolderUpdateParams::Body::KYCPatchRequest::Individual, nil] + optional :individual, -> { Lithic::AccountHolderUpdateParams::Body::KYCPatchRequest::Individual } + + # @!method initialize(external_id: nil, individual: nil) + # Some parameter documentations has been truncated, see + # {Lithic::Models::AccountHolderUpdateParams::Body::KYCPatchRequest} for more + # details. + # + # The KYC request payload for updating an account holder. + # + # @param external_id [String] A user provided id that can be used to link an account holder with an external s + # + # @param individual [Lithic::Models::AccountHolderUpdateParams::Body::KYCPatchRequest::Individual] Information on the individual for whom the account is being opened and KYC is be + + # @see Lithic::Models::AccountHolderUpdateParams::Body::KYCPatchRequest#individual + class Individual < Lithic::Internal::Type::BaseModel + # @!attribute entity_token + # Globally unique identifier for an entity. + # + # @return [String] + required :entity_token, String + + # @!attribute address + # Individual's current address - PO boxes, UPS drops, and FedEx drops are not + # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported. + # + # @return [Lithic::Models::AddressUpdate, nil] + optional :address, -> { Lithic::AddressUpdate } + + # @!attribute dob + # Individual's date of birth, as an RFC 3339 date. + # + # @return [String, nil] + optional :dob, String + + # @!attribute email + # Individual's email address. If utilizing Lithic for chargeback processing, this + # customer email address may be used to communicate dispute status and resolution. + # + # @return [String, nil] + optional :email, String + + # @!attribute first_name + # Individual's first name, as it appears on government-issued identity documents. + # + # @return [String, nil] + optional :first_name, String + + # @!attribute last_name + # Individual's last name, as it appears on government-issued identity documents. + # + # @return [String, nil] + optional :last_name, String + + # @!attribute phone_number + # Individual's phone number, entered in E.164 format. + # + # @return [String, nil] + optional :phone_number, String + + request_only do + # @!attribute government_id + # Government-issued identification number (required for identity verification and + # compliance with banking regulations). Social Security Numbers (SSN) and + # Individual Taxpayer Identification Numbers (ITIN) are currently supported, + # entered as full nine-digits, with or without hyphens + # + # @return [String, nil] + optional :government_id, String + end + + # @!method initialize(entity_token:, address: nil, dob: nil, email: nil, first_name: nil, government_id: nil, last_name: nil, phone_number: nil) + # Some parameter documentations has been truncated, see + # {Lithic::Models::AccountHolderUpdateParams::Body::KYCPatchRequest::Individual} + # for more details. + # + # Information on the individual for whom the account is being opened and KYC is + # being run. + # + # @param entity_token [String] Globally unique identifier for an entity. + # + # @param address [Lithic::Models::AddressUpdate] Individual's current address - PO boxes, UPS drops, and FedEx drops are not acce + # + # @param dob [String] Individual's date of birth, as an RFC 3339 date. + # + # @param email [String] Individual's email address. If utilizing Lithic for chargeback processing, this + # + # @param first_name [String] Individual's first name, as it appears on government-issued identity documents. + # + # @param government_id [String] Government-issued identification number (required for identity verification and + # + # @param last_name [String] Individual's last name, as it appears on government-issued identity documents. + # + # @param phone_number [String] Individual's phone number, entered in E.164 format. + end end - # @!method initialize(entity_token:, address: nil, dob: nil, email: nil, first_name: nil, government_id: nil, last_name: nil, phone_number: nil) - # Some parameter documentations has been truncated, see - # {Lithic::Models::AccountHolderUpdateParams::BeneficialOwnerIndividual} for more - # details. - # - # Individuals associated with a KYB application. Phone number is optional. - # - # @param entity_token [String] Globally unique identifier for an entity. - # - # @param address [Lithic::Models::AddressUpdate] Individual's current address - PO boxes, UPS drops, and FedEx drops are not acce - # - # @param dob [String] Individual's date of birth, as an RFC 3339 date. - # - # @param email [String] Individual's email address. If utilizing Lithic for chargeback processing, this - # - # @param first_name [String] Individual's first name, as it appears on government-issued identity documents. - # - # @param government_id [String] Government-issued identification number (required for identity verification and - # - # @param last_name [String] Individual's last name, as it appears on government-issued identity documents. - # - # @param phone_number [String] Individual's phone number, entered in E.164 format. - end + class PatchRequest < Lithic::Internal::Type::BaseModel + # @!attribute address + # Allowed for: KYC-Exempt, BYO-KYC, BYO-KYB. + # + # @return [Lithic::Models::AddressUpdate, nil] + optional :address, -> { Lithic::AddressUpdate } - class BusinessEntity < Lithic::Internal::Type::BaseModel - # @!attribute entity_token - # Globally unique identifier for an entity. - # - # @return [String] - required :entity_token, String - - # @!attribute address - # Business''s physical address - PO boxes, UPS drops, and FedEx drops are not - # acceptable; APO/FPO are acceptable. - # - # @return [Lithic::Models::AddressUpdate, nil] - optional :address, -> { Lithic::AddressUpdate } - - # @!attribute dba_business_name - # Any name that the business operates under that is not its legal business name - # (if applicable). - # - # @return [String, nil] - optional :dba_business_name, String - - # @!attribute government_id - # Government-issued identification number. US Federal Employer Identification - # Numbers (EIN) are currently supported, entered as full nine-digits, with or - # without hyphens. - # - # @return [String, nil] - optional :government_id, String - - # @!attribute legal_business_name - # Legal (formal) business name. - # - # @return [String, nil] - optional :legal_business_name, String - - # @!attribute parent_company - # Parent company name (if applicable). - # - # @return [String, nil] - optional :parent_company, String - - # @!attribute phone_numbers - # One or more of the business's phone number(s), entered as a list in E.164 - # format. - # - # @return [Array, nil] - optional :phone_numbers, Lithic::Internal::Type::ArrayOf[String] - - # @!method initialize(entity_token:, address: nil, dba_business_name: nil, government_id: nil, legal_business_name: nil, parent_company: nil, phone_numbers: nil) - # Some parameter documentations has been truncated, see - # {Lithic::Models::AccountHolderUpdateParams::BusinessEntity} for more details. - # - # Information for business for which the account is being opened and KYB is being - # run. - # - # @param entity_token [String] Globally unique identifier for an entity. - # - # @param address [Lithic::Models::AddressUpdate] Business''s physical address - PO boxes, UPS drops, and FedEx drops are not acce - # - # @param dba_business_name [String] Any name that the business operates under that is not its legal business name (i - # - # @param government_id [String] Government-issued identification number. US Federal Employer Identification Numb - # - # @param legal_business_name [String] Legal (formal) business name. - # - # @param parent_company [String] Parent company name (if applicable). - # - # @param phone_numbers [Array] One or more of the business's phone number(s), entered as a list in E.164 format - end + # @!attribute business_account_token + # Allowed for: KYC-Exempt, BYO-KYC. The token of the business account to which the + # account holder is associated. + # + # @return [String, nil] + optional :business_account_token, String - class ControlPerson < Lithic::Internal::Type::BaseModel - # @!attribute entity_token - # Globally unique identifier for an entity. - # - # @return [String] - required :entity_token, String - - # @!attribute address - # Individual's current address - PO boxes, UPS drops, and FedEx drops are not - # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported. - # - # @return [Lithic::Models::AddressUpdate, nil] - optional :address, -> { Lithic::AddressUpdate } - - # @!attribute dob - # Individual's date of birth, as an RFC 3339 date. - # - # @return [String, nil] - optional :dob, String - - # @!attribute email - # Individual's email address. If utilizing Lithic for chargeback processing, this - # customer email address may be used to communicate dispute status and resolution. - # - # @return [String, nil] - optional :email, String - - # @!attribute first_name - # Individual's first name, as it appears on government-issued identity documents. - # - # @return [String, nil] - optional :first_name, String - - # @!attribute last_name - # Individual's last name, as it appears on government-issued identity documents. - # - # @return [String, nil] - optional :last_name, String - - # @!attribute phone_number - # Individual's phone number, entered in E.164 format. - # - # @return [String, nil] - optional :phone_number, String - - request_only do - # @!attribute government_id - # Government-issued identification number (required for identity verification and - # compliance with banking regulations). Social Security Numbers (SSN) and - # Individual Taxpayer Identification Numbers (ITIN) are currently supported, - # entered as full nine-digits, with or without hyphens + # @!attribute email + # Allowed for all Account Holders. Account holder's email address. The primary + # purpose of this field is for cardholder identification and verification during + # the digital wallet tokenization process. # # @return [String, nil] - optional :government_id, String - end + optional :email, String - # @!method initialize(entity_token:, address: nil, dob: nil, email: nil, first_name: nil, government_id: nil, last_name: nil, phone_number: nil) - # Some parameter documentations has been truncated, see - # {Lithic::Models::AccountHolderUpdateParams::ControlPerson} for more details. - # - # An individual with significant responsibility for managing the legal entity - # (e.g., a Chief Executive Officer, Chief Financial Officer, Chief Operating - # Officer, Managing Member, General Partner, President, Vice President, or - # Treasurer). This can be an executive, or someone who will have program-wide - # access to the cards that Lithic will provide. In some cases, this individual - # could also be a beneficial owner listed above. See - # [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf) - # (Section II) for more background. - # - # @param entity_token [String] Globally unique identifier for an entity. - # - # @param address [Lithic::Models::AddressUpdate] Individual's current address - PO boxes, UPS drops, and FedEx drops are not acce - # - # @param dob [String] Individual's date of birth, as an RFC 3339 date. - # - # @param email [String] Individual's email address. If utilizing Lithic for chargeback processing, this - # - # @param first_name [String] Individual's first name, as it appears on government-issued identity documents. - # - # @param government_id [String] Government-issued identification number (required for identity verification and - # - # @param last_name [String] Individual's last name, as it appears on government-issued identity documents. - # - # @param phone_number [String] Individual's phone number, entered in E.164 format. - end + # @!attribute first_name + # Allowed for KYC-Exempt, BYO-KYC. Account holder's first name. + # + # @return [String, nil] + optional :first_name, String + + # @!attribute last_name + # Allowed for KYC-Exempt, BYO-KYC. Account holder's last name. + # + # @return [String, nil] + optional :last_name, String + + # @!attribute legal_business_name + # Allowed for BYO-KYB. Legal business name of the account holder. + # + # @return [String, nil] + optional :legal_business_name, String - class Individual < Lithic::Internal::Type::BaseModel - # @!attribute entity_token - # Globally unique identifier for an entity. - # - # @return [String] - required :entity_token, String - - # @!attribute address - # Individual's current address - PO boxes, UPS drops, and FedEx drops are not - # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported. - # - # @return [Lithic::Models::AddressUpdate, nil] - optional :address, -> { Lithic::AddressUpdate } - - # @!attribute dob - # Individual's date of birth, as an RFC 3339 date. - # - # @return [String, nil] - optional :dob, String - - # @!attribute email - # Individual's email address. If utilizing Lithic for chargeback processing, this - # customer email address may be used to communicate dispute status and resolution. - # - # @return [String, nil] - optional :email, String - - # @!attribute first_name - # Individual's first name, as it appears on government-issued identity documents. - # - # @return [String, nil] - optional :first_name, String - - # @!attribute last_name - # Individual's last name, as it appears on government-issued identity documents. - # - # @return [String, nil] - optional :last_name, String - - # @!attribute phone_number - # Individual's phone number, entered in E.164 format. - # - # @return [String, nil] - optional :phone_number, String - - request_only do - # @!attribute government_id - # Government-issued identification number (required for identity verification and - # compliance with banking regulations). Social Security Numbers (SSN) and - # Individual Taxpayer Identification Numbers (ITIN) are currently supported, - # entered as full nine-digits, with or without hyphens + # @!attribute phone_number + # Allowed for all Account Holders. Account holder's phone number, entered in E.164 + # format. The primary purpose of this field is for cardholder identification and + # verification during the digital wallet tokenization process. # # @return [String, nil] - optional :government_id, String + optional :phone_number, String + + # @!method initialize(address: nil, business_account_token: nil, email: nil, first_name: nil, last_name: nil, legal_business_name: nil, phone_number: nil) + # Some parameter documentations has been truncated, see + # {Lithic::Models::AccountHolderUpdateParams::Body::PatchRequest} for more + # details. + # + # The legacy request for updating an account holder. + # + # @param address [Lithic::Models::AddressUpdate] Allowed for: KYC-Exempt, BYO-KYC, BYO-KYB. + # + # @param business_account_token [String] Allowed for: KYC-Exempt, BYO-KYC. The token of the business account to which the + # + # @param email [String] Allowed for all Account Holders. Account holder's email address. The primary pur + # + # @param first_name [String] Allowed for KYC-Exempt, BYO-KYC. Account holder's first name. + # + # @param last_name [String] Allowed for KYC-Exempt, BYO-KYC. Account holder's last name. + # + # @param legal_business_name [String] Allowed for BYO-KYB. Legal business name of the account holder. + # + # @param phone_number [String] Allowed for all Account Holders. Account holder's phone number, entered in E.164 end - # @!method initialize(entity_token:, address: nil, dob: nil, email: nil, first_name: nil, government_id: nil, last_name: nil, phone_number: nil) - # Some parameter documentations has been truncated, see - # {Lithic::Models::AccountHolderUpdateParams::Individual} for more details. - # - # Information on the individual for whom the account is being opened and KYC is - # being run. - # - # @param entity_token [String] Globally unique identifier for an entity. - # - # @param address [Lithic::Models::AddressUpdate] Individual's current address - PO boxes, UPS drops, and FedEx drops are not acce - # - # @param dob [String] Individual's date of birth, as an RFC 3339 date. - # - # @param email [String] Individual's email address. If utilizing Lithic for chargeback processing, this - # - # @param first_name [String] Individual's first name, as it appears on government-issued identity documents. - # - # @param government_id [String] Government-issued identification number (required for identity verification and - # - # @param last_name [String] Individual's last name, as it appears on government-issued identity documents. - # - # @param phone_number [String] Individual's phone number, entered in E.164 format. + # @!method self.variants + # @return [Array(Lithic::Models::AccountHolderUpdateParams::Body::KYBPatchRequest, Lithic::Models::AccountHolderUpdateParams::Body::KYCPatchRequest, Lithic::Models::AccountHolderUpdateParams::Body::PatchRequest)] end end end diff --git a/lib/lithic/models/account_holder_upload_document_params.rb b/lib/lithic/models/account_holder_upload_document_params.rb index 68692f94..471e7b5d 100644 --- a/lib/lithic/models/account_holder_upload_document_params.rb +++ b/lib/lithic/models/account_holder_upload_document_params.rb @@ -7,6 +7,11 @@ class AccountHolderUploadDocumentParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + # @!attribute account_holder_token + # + # @return [String] + required :account_holder_token, String + # @!attribute document_type # The type of document to upload # @@ -19,7 +24,9 @@ class AccountHolderUploadDocumentParams < Lithic::Internal::Type::BaseModel # @return [String] required :entity_token, String - # @!method initialize(document_type:, entity_token:, request_options: {}) + # @!method initialize(account_holder_token:, document_type:, entity_token:, request_options: {}) + # @param account_holder_token [String] + # # @param document_type [Symbol, Lithic::Models::AccountHolderUploadDocumentParams::DocumentType] The type of document to upload # # @param entity_token [String] Globally unique identifier for the entity. diff --git a/lib/lithic/models/account_holders/entity_create_params.rb b/lib/lithic/models/account_holders/entity_create_params.rb index 3ce5d8ff..8a25482d 100644 --- a/lib/lithic/models/account_holders/entity_create_params.rb +++ b/lib/lithic/models/account_holders/entity_create_params.rb @@ -8,6 +8,11 @@ class EntityCreateParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + # @!attribute account_holder_token + # + # @return [String] + required :account_holder_token, String + # @!attribute address # Individual's current address - PO boxes, UPS drops, and FedEx drops are not # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported. @@ -61,10 +66,12 @@ class EntityCreateParams < Lithic::Internal::Type::BaseModel # @return [Symbol, Lithic::Models::AccountHolders::EntityCreateParams::Type] required :type, enum: -> { Lithic::AccountHolders::EntityCreateParams::Type } - # @!method initialize(address:, dob:, email:, first_name:, government_id:, last_name:, phone_number:, type:, request_options: {}) + # @!method initialize(account_holder_token:, address:, dob:, email:, first_name:, government_id:, last_name:, phone_number:, type:, request_options: {}) # Some parameter documentations has been truncated, see # {Lithic::Models::AccountHolders::EntityCreateParams} for more details. # + # @param account_holder_token [String] + # # @param address [Lithic::Models::AccountHolders::EntityCreateParams::Address] Individual's current address - PO boxes, UPS drops, and FedEx drops are not acce # # @param dob [String] Individual's date of birth, as an RFC 3339 date. diff --git a/lib/lithic/models/account_holders/entity_delete_params.rb b/lib/lithic/models/account_holders/entity_delete_params.rb index 906d92a6..06b88b6d 100644 --- a/lib/lithic/models/account_holders/entity_delete_params.rb +++ b/lib/lithic/models/account_holders/entity_delete_params.rb @@ -13,8 +13,14 @@ class EntityDeleteParams < Lithic::Internal::Type::BaseModel # @return [String] required :account_holder_token, String - # @!method initialize(account_holder_token:, request_options: {}) + # @!attribute entity_token + # + # @return [String] + required :entity_token, String + + # @!method initialize(account_holder_token:, entity_token:, request_options: {}) # @param account_holder_token [String] + # @param entity_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/account_retrieve_params.rb b/lib/lithic/models/account_retrieve_params.rb index 9e3ff587..49e05744 100644 --- a/lib/lithic/models/account_retrieve_params.rb +++ b/lib/lithic/models/account_retrieve_params.rb @@ -7,7 +7,13 @@ class AccountRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - # @!method initialize(request_options: {}) + # @!attribute account_token + # + # @return [String] + required :account_token, String + + # @!method initialize(account_token:, request_options: {}) + # @param account_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/account_retrieve_spend_limits_params.rb b/lib/lithic/models/account_retrieve_spend_limits_params.rb index 597f30ae..5a255305 100644 --- a/lib/lithic/models/account_retrieve_spend_limits_params.rb +++ b/lib/lithic/models/account_retrieve_spend_limits_params.rb @@ -7,7 +7,13 @@ class AccountRetrieveSpendLimitsParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - # @!method initialize(request_options: {}) + # @!attribute account_token + # + # @return [String] + required :account_token, String + + # @!method initialize(account_token:, request_options: {}) + # @param account_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/account_update_params.rb b/lib/lithic/models/account_update_params.rb index 96698afb..c6a88f06 100644 --- a/lib/lithic/models/account_update_params.rb +++ b/lib/lithic/models/account_update_params.rb @@ -7,6 +7,11 @@ class AccountUpdateParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + # @!attribute account_token + # + # @return [String] + required :account_token, String + # @!attribute comment # Additional context or information related to the account. # @@ -88,10 +93,12 @@ class AccountUpdateParams < Lithic::Internal::Type::BaseModel # @return [Lithic::Models::AccountUpdateParams::VerificationAddress, nil] optional :verification_address, -> { Lithic::AccountUpdateParams::VerificationAddress } - # @!method initialize(comment: nil, daily_spend_limit: nil, lifetime_spend_limit: nil, monthly_spend_limit: nil, state: nil, substatus: nil, verification_address: nil, request_options: {}) + # @!method initialize(account_token:, comment: nil, daily_spend_limit: nil, lifetime_spend_limit: nil, monthly_spend_limit: nil, state: nil, substatus: nil, verification_address: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Lithic::Models::AccountUpdateParams} for more details. # + # @param account_token [String] + # # @param comment [String] Additional context or information related to the account. # # @param daily_spend_limit [Integer] Amount (in cents) for the account's daily spend limit (e.g. 100000 would be a $1 diff --git a/lib/lithic/models/auth_rules/v2/backtest_create_params.rb b/lib/lithic/models/auth_rules/v2/backtest_create_params.rb index c2ab97e2..f5924631 100644 --- a/lib/lithic/models/auth_rules/v2/backtest_create_params.rb +++ b/lib/lithic/models/auth_rules/v2/backtest_create_params.rb @@ -9,6 +9,11 @@ class BacktestCreateParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + # @!attribute auth_rule_token + # + # @return [String] + required :auth_rule_token, String + # @!attribute end_ # The end time of the backtest. # @@ -21,7 +26,9 @@ class BacktestCreateParams < Lithic::Internal::Type::BaseModel # @return [Time, nil] optional :start, Time - # @!method initialize(end_: nil, start: nil, request_options: {}) + # @!method initialize(auth_rule_token:, end_: nil, start: nil, request_options: {}) + # @param auth_rule_token [String] + # # @param end_ [Time] The end time of the backtest. # # @param start [Time] The start time of the backtest. diff --git a/lib/lithic/models/auth_rules/v2/backtest_retrieve_params.rb b/lib/lithic/models/auth_rules/v2/backtest_retrieve_params.rb index a0fb4880..724c829d 100644 --- a/lib/lithic/models/auth_rules/v2/backtest_retrieve_params.rb +++ b/lib/lithic/models/auth_rules/v2/backtest_retrieve_params.rb @@ -14,8 +14,14 @@ class BacktestRetrieveParams < Lithic::Internal::Type::BaseModel # @return [String] required :auth_rule_token, String - # @!method initialize(auth_rule_token:, request_options: {}) + # @!attribute auth_rule_backtest_token + # + # @return [String] + required :auth_rule_backtest_token, String + + # @!method initialize(auth_rule_token:, auth_rule_backtest_token:, request_options: {}) # @param auth_rule_token [String] + # @param auth_rule_backtest_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/auth_rules/v2_create_params.rb b/lib/lithic/models/auth_rules/v2_create_params.rb index 20f6fd75..04f18cd5 100644 --- a/lib/lithic/models/auth_rules/v2_create_params.rb +++ b/lib/lithic/models/auth_rules/v2_create_params.rb @@ -8,138 +8,363 @@ class V2CreateParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - # @!attribute parameters - # Parameters for the Auth Rule + # @!attribute body # - # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters] - required :parameters, union: -> { Lithic::AuthRules::V2CreateParams::Parameters } - - # @!attribute type - # The type of Auth Rule. For certain rule types, this determines the event stream - # during which it will be evaluated. For rules that can be applied to one of - # several event streams, the effective one is defined by the separate - # `event_stream` field. - # - # - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead. - # AUTHORIZATION event stream. - # - `VELOCITY_LIMIT`: AUTHORIZATION event stream. - # - `MERCHANT_LOCK`: AUTHORIZATION event stream. - # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION, - # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream. - # - # @return [Symbol, Lithic::Models::AuthRules::V2CreateParams::Type] - required :type, enum: -> { Lithic::AuthRules::V2CreateParams::Type } + # @return [Lithic::Models::AuthRules::V2CreateParams::Body::AccountLevelRule, Lithic::Models::AuthRules::V2CreateParams::Body::CardLevelRule, Lithic::Models::AuthRules::V2CreateParams::Body::ProgramLevelRule] + required :body, union: -> { Lithic::AuthRules::V2CreateParams::Body } - # @!attribute account_tokens - # Account tokens to which the Auth Rule applies. - # - # @return [Array, nil] - optional :account_tokens, Lithic::Internal::Type::ArrayOf[String] + # @!method initialize(body:, request_options: {}) + # @param body [Lithic::Models::AuthRules::V2CreateParams::Body::AccountLevelRule, Lithic::Models::AuthRules::V2CreateParams::Body::CardLevelRule, Lithic::Models::AuthRules::V2CreateParams::Body::ProgramLevelRule] + # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] - # @!attribute business_account_tokens - # Business Account tokens to which the Auth Rule applies. - # - # @return [Array, nil] - optional :business_account_tokens, Lithic::Internal::Type::ArrayOf[String] + module Body + extend Lithic::Internal::Type::Union - # @!attribute event_stream - # The event stream during which the rule will be evaluated. - # - # @return [Symbol, Lithic::Models::AuthRules::EventStream, nil] - optional :event_stream, enum: -> { Lithic::AuthRules::EventStream } + variant -> { Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule } - # @!attribute name - # Auth Rule Name - # - # @return [String, nil] - optional :name, String, nil?: true + variant -> { Lithic::AuthRules::V2CreateParams::Body::CardLevelRule } - # @!attribute card_tokens - # Card tokens to which the Auth Rule applies. - # - # @return [Array] - required :card_tokens, Lithic::Internal::Type::ArrayOf[String] + variant -> { Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule } - # @!attribute program_level - # Whether the Auth Rule applies to all authorizations on the card program. - # - # @return [Boolean] - required :program_level, Lithic::Internal::Type::Boolean + class AccountLevelRule < Lithic::Internal::Type::BaseModel + # @!attribute parameters + # Parameters for the Auth Rule + # + # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters] + required :parameters, union: -> { Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::Parameters } - # @!attribute excluded_card_tokens - # Card tokens to which the Auth Rule does not apply. - # - # @return [Array, nil] - optional :excluded_card_tokens, Lithic::Internal::Type::ArrayOf[String] + # @!attribute type + # The type of Auth Rule. For certain rule types, this determines the event stream + # during which it will be evaluated. For rules that can be applied to one of + # several event streams, the effective one is defined by the separate + # `event_stream` field. + # + # - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead. + # AUTHORIZATION event stream. + # - `VELOCITY_LIMIT`: AUTHORIZATION event stream. + # - `MERCHANT_LOCK`: AUTHORIZATION event stream. + # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION, + # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream. + # + # @return [Symbol, Lithic::Models::AuthRules::V2CreateParams::Body::AccountLevelRule::Type] + required :type, enum: -> { Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::Type } - # @!method initialize(parameters:, type:, card_tokens:, program_level:, account_tokens: nil, business_account_tokens: nil, event_stream: nil, name: nil, excluded_card_tokens: nil, request_options: {}) - # Some parameter documentations has been truncated, see - # {Lithic::Models::AuthRules::V2CreateParams} for more details. - # - # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters] Parameters for the Auth Rule - # - # @param type [Symbol, Lithic::Models::AuthRules::V2CreateParams::Type] The type of Auth Rule. For certain rule types, this determines the event stream - # - # @param card_tokens [Array] Card tokens to which the Auth Rule applies. - # - # @param program_level [Boolean] Whether the Auth Rule applies to all authorizations on the card program. - # - # @param account_tokens [Array] Account tokens to which the Auth Rule applies. - # - # @param business_account_tokens [Array] Business Account tokens to which the Auth Rule applies. - # - # @param event_stream [Symbol, Lithic::Models::AuthRules::EventStream] The event stream during which the rule will be evaluated. - # - # @param name [String, nil] Auth Rule Name - # - # @param excluded_card_tokens [Array] Card tokens to which the Auth Rule does not apply. - # - # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] + # @!attribute account_tokens + # Account tokens to which the Auth Rule applies. + # + # @return [Array, nil] + optional :account_tokens, Lithic::Internal::Type::ArrayOf[String] - # Parameters for the Auth Rule - module Parameters - extend Lithic::Internal::Type::Union + # @!attribute business_account_tokens + # Business Account tokens to which the Auth Rule applies. + # + # @return [Array, nil] + optional :business_account_tokens, Lithic::Internal::Type::ArrayOf[String] - # Deprecated: Use CONDITIONAL_ACTION instead. - variant -> { Lithic::AuthRules::ConditionalBlockParameters } + # @!attribute event_stream + # The event stream during which the rule will be evaluated. + # + # @return [Symbol, Lithic::Models::AuthRules::EventStream, nil] + optional :event_stream, enum: -> { Lithic::AuthRules::EventStream } - variant -> { Lithic::AuthRules::VelocityLimitParams } + # @!attribute name + # Auth Rule Name + # + # @return [String, nil] + optional :name, String, nil?: true - variant -> { Lithic::AuthRules::MerchantLockParameters } + # @!method initialize(parameters:, type:, account_tokens: nil, business_account_tokens: nil, event_stream: nil, name: nil) + # Some parameter documentations has been truncated, see + # {Lithic::Models::AuthRules::V2CreateParams::Body::AccountLevelRule} for more + # details. + # + # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters] Parameters for the Auth Rule + # + # @param type [Symbol, Lithic::Models::AuthRules::V2CreateParams::Body::AccountLevelRule::Type] The type of Auth Rule. For certain rule types, this determines the event stream + # + # @param account_tokens [Array] Account tokens to which the Auth Rule applies. + # + # @param business_account_tokens [Array] Business Account tokens to which the Auth Rule applies. + # + # @param event_stream [Symbol, Lithic::Models::AuthRules::EventStream] The event stream during which the rule will be evaluated. + # + # @param name [String, nil] Auth Rule Name - variant -> { Lithic::AuthRules::Conditional3DSActionParameters } + # Parameters for the Auth Rule + # + # @see Lithic::Models::AuthRules::V2CreateParams::Body::AccountLevelRule#parameters + module Parameters + extend Lithic::Internal::Type::Union - variant -> { Lithic::AuthRules::ConditionalAuthorizationActionParameters } + # Deprecated: Use CONDITIONAL_ACTION instead. + variant -> { Lithic::AuthRules::ConditionalBlockParameters } - variant -> { Lithic::AuthRules::ConditionalACHActionParameters } + variant -> { Lithic::AuthRules::VelocityLimitParams } - variant -> { Lithic::AuthRules::ConditionalTokenizationActionParameters } + variant -> { Lithic::AuthRules::MerchantLockParameters } - # @!method self.variants - # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters)] - end + variant -> { Lithic::AuthRules::Conditional3DSActionParameters } - # The type of Auth Rule. For certain rule types, this determines the event stream - # during which it will be evaluated. For rules that can be applied to one of - # several event streams, the effective one is defined by the separate - # `event_stream` field. - # - # - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead. - # AUTHORIZATION event stream. - # - `VELOCITY_LIMIT`: AUTHORIZATION event stream. - # - `MERCHANT_LOCK`: AUTHORIZATION event stream. - # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION, - # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream. - module Type - extend Lithic::Internal::Type::Enum - - CONDITIONAL_BLOCK = :CONDITIONAL_BLOCK - VELOCITY_LIMIT = :VELOCITY_LIMIT - MERCHANT_LOCK = :MERCHANT_LOCK - CONDITIONAL_ACTION = :CONDITIONAL_ACTION - - # @!method self.values - # @return [Array] + variant -> { Lithic::AuthRules::ConditionalAuthorizationActionParameters } + + variant -> { Lithic::AuthRules::ConditionalACHActionParameters } + + variant -> { Lithic::AuthRules::ConditionalTokenizationActionParameters } + + # @!method self.variants + # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters)] + end + + # The type of Auth Rule. For certain rule types, this determines the event stream + # during which it will be evaluated. For rules that can be applied to one of + # several event streams, the effective one is defined by the separate + # `event_stream` field. + # + # - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead. + # AUTHORIZATION event stream. + # - `VELOCITY_LIMIT`: AUTHORIZATION event stream. + # - `MERCHANT_LOCK`: AUTHORIZATION event stream. + # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION, + # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream. + # + # @see Lithic::Models::AuthRules::V2CreateParams::Body::AccountLevelRule#type + module Type + extend Lithic::Internal::Type::Enum + + CONDITIONAL_BLOCK = :CONDITIONAL_BLOCK + VELOCITY_LIMIT = :VELOCITY_LIMIT + MERCHANT_LOCK = :MERCHANT_LOCK + CONDITIONAL_ACTION = :CONDITIONAL_ACTION + + # @!method self.values + # @return [Array] + end + end + + class CardLevelRule < Lithic::Internal::Type::BaseModel + # @!attribute card_tokens + # Card tokens to which the Auth Rule applies. + # + # @return [Array] + required :card_tokens, Lithic::Internal::Type::ArrayOf[String] + + # @!attribute parameters + # Parameters for the Auth Rule + # + # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters] + required :parameters, union: -> { Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::Parameters } + + # @!attribute type + # The type of Auth Rule. For certain rule types, this determines the event stream + # during which it will be evaluated. For rules that can be applied to one of + # several event streams, the effective one is defined by the separate + # `event_stream` field. + # + # - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead. + # AUTHORIZATION event stream. + # - `VELOCITY_LIMIT`: AUTHORIZATION event stream. + # - `MERCHANT_LOCK`: AUTHORIZATION event stream. + # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION, + # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream. + # + # @return [Symbol, Lithic::Models::AuthRules::V2CreateParams::Body::CardLevelRule::Type] + required :type, enum: -> { Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::Type } + + # @!attribute event_stream + # The event stream during which the rule will be evaluated. + # + # @return [Symbol, Lithic::Models::AuthRules::EventStream, nil] + optional :event_stream, enum: -> { Lithic::AuthRules::EventStream } + + # @!attribute name + # Auth Rule Name + # + # @return [String, nil] + optional :name, String, nil?: true + + # @!method initialize(card_tokens:, parameters:, type:, event_stream: nil, name: nil) + # Some parameter documentations has been truncated, see + # {Lithic::Models::AuthRules::V2CreateParams::Body::CardLevelRule} for more + # details. + # + # @param card_tokens [Array] Card tokens to which the Auth Rule applies. + # + # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters] Parameters for the Auth Rule + # + # @param type [Symbol, Lithic::Models::AuthRules::V2CreateParams::Body::CardLevelRule::Type] The type of Auth Rule. For certain rule types, this determines the event stream + # + # @param event_stream [Symbol, Lithic::Models::AuthRules::EventStream] The event stream during which the rule will be evaluated. + # + # @param name [String, nil] Auth Rule Name + + # Parameters for the Auth Rule + # + # @see Lithic::Models::AuthRules::V2CreateParams::Body::CardLevelRule#parameters + module Parameters + extend Lithic::Internal::Type::Union + + # Deprecated: Use CONDITIONAL_ACTION instead. + variant -> { Lithic::AuthRules::ConditionalBlockParameters } + + variant -> { Lithic::AuthRules::VelocityLimitParams } + + variant -> { Lithic::AuthRules::MerchantLockParameters } + + variant -> { Lithic::AuthRules::Conditional3DSActionParameters } + + variant -> { Lithic::AuthRules::ConditionalAuthorizationActionParameters } + + variant -> { Lithic::AuthRules::ConditionalACHActionParameters } + + variant -> { Lithic::AuthRules::ConditionalTokenizationActionParameters } + + # @!method self.variants + # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters)] + end + + # The type of Auth Rule. For certain rule types, this determines the event stream + # during which it will be evaluated. For rules that can be applied to one of + # several event streams, the effective one is defined by the separate + # `event_stream` field. + # + # - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead. + # AUTHORIZATION event stream. + # - `VELOCITY_LIMIT`: AUTHORIZATION event stream. + # - `MERCHANT_LOCK`: AUTHORIZATION event stream. + # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION, + # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream. + # + # @see Lithic::Models::AuthRules::V2CreateParams::Body::CardLevelRule#type + module Type + extend Lithic::Internal::Type::Enum + + CONDITIONAL_BLOCK = :CONDITIONAL_BLOCK + VELOCITY_LIMIT = :VELOCITY_LIMIT + MERCHANT_LOCK = :MERCHANT_LOCK + CONDITIONAL_ACTION = :CONDITIONAL_ACTION + + # @!method self.values + # @return [Array] + end + end + + class ProgramLevelRule < Lithic::Internal::Type::BaseModel + # @!attribute parameters + # Parameters for the Auth Rule + # + # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters] + required :parameters, union: -> { Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::Parameters } + + # @!attribute program_level + # Whether the Auth Rule applies to all authorizations on the card program. + # + # @return [Boolean] + required :program_level, Lithic::Internal::Type::Boolean + + # @!attribute type + # The type of Auth Rule. For certain rule types, this determines the event stream + # during which it will be evaluated. For rules that can be applied to one of + # several event streams, the effective one is defined by the separate + # `event_stream` field. + # + # - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead. + # AUTHORIZATION event stream. + # - `VELOCITY_LIMIT`: AUTHORIZATION event stream. + # - `MERCHANT_LOCK`: AUTHORIZATION event stream. + # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION, + # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream. + # + # @return [Symbol, Lithic::Models::AuthRules::V2CreateParams::Body::ProgramLevelRule::Type] + required :type, enum: -> { Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::Type } + + # @!attribute event_stream + # The event stream during which the rule will be evaluated. + # + # @return [Symbol, Lithic::Models::AuthRules::EventStream, nil] + optional :event_stream, enum: -> { Lithic::AuthRules::EventStream } + + # @!attribute excluded_card_tokens + # Card tokens to which the Auth Rule does not apply. + # + # @return [Array, nil] + optional :excluded_card_tokens, Lithic::Internal::Type::ArrayOf[String] + + # @!attribute name + # Auth Rule Name + # + # @return [String, nil] + optional :name, String, nil?: true + + # @!method initialize(parameters:, program_level:, type:, event_stream: nil, excluded_card_tokens: nil, name: nil) + # Some parameter documentations has been truncated, see + # {Lithic::Models::AuthRules::V2CreateParams::Body::ProgramLevelRule} for more + # details. + # + # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters] Parameters for the Auth Rule + # + # @param program_level [Boolean] Whether the Auth Rule applies to all authorizations on the card program. + # + # @param type [Symbol, Lithic::Models::AuthRules::V2CreateParams::Body::ProgramLevelRule::Type] The type of Auth Rule. For certain rule types, this determines the event stream + # + # @param event_stream [Symbol, Lithic::Models::AuthRules::EventStream] The event stream during which the rule will be evaluated. + # + # @param excluded_card_tokens [Array] Card tokens to which the Auth Rule does not apply. + # + # @param name [String, nil] Auth Rule Name + + # Parameters for the Auth Rule + # + # @see Lithic::Models::AuthRules::V2CreateParams::Body::ProgramLevelRule#parameters + module Parameters + extend Lithic::Internal::Type::Union + + # Deprecated: Use CONDITIONAL_ACTION instead. + variant -> { Lithic::AuthRules::ConditionalBlockParameters } + + variant -> { Lithic::AuthRules::VelocityLimitParams } + + variant -> { Lithic::AuthRules::MerchantLockParameters } + + variant -> { Lithic::AuthRules::Conditional3DSActionParameters } + + variant -> { Lithic::AuthRules::ConditionalAuthorizationActionParameters } + + variant -> { Lithic::AuthRules::ConditionalACHActionParameters } + + variant -> { Lithic::AuthRules::ConditionalTokenizationActionParameters } + + # @!method self.variants + # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters)] + end + + # The type of Auth Rule. For certain rule types, this determines the event stream + # during which it will be evaluated. For rules that can be applied to one of + # several event streams, the effective one is defined by the separate + # `event_stream` field. + # + # - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead. + # AUTHORIZATION event stream. + # - `VELOCITY_LIMIT`: AUTHORIZATION event stream. + # - `MERCHANT_LOCK`: AUTHORIZATION event stream. + # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION, + # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream. + # + # @see Lithic::Models::AuthRules::V2CreateParams::Body::ProgramLevelRule#type + module Type + extend Lithic::Internal::Type::Enum + + CONDITIONAL_BLOCK = :CONDITIONAL_BLOCK + VELOCITY_LIMIT = :VELOCITY_LIMIT + MERCHANT_LOCK = :MERCHANT_LOCK + CONDITIONAL_ACTION = :CONDITIONAL_ACTION + + # @!method self.values + # @return [Array] + end + end + + # @!method self.variants + # @return [Array(Lithic::Models::AuthRules::V2CreateParams::Body::AccountLevelRule, Lithic::Models::AuthRules::V2CreateParams::Body::CardLevelRule, Lithic::Models::AuthRules::V2CreateParams::Body::ProgramLevelRule)] end end end diff --git a/lib/lithic/models/auth_rules/v2_delete_params.rb b/lib/lithic/models/auth_rules/v2_delete_params.rb index 980e0f5e..076f6545 100644 --- a/lib/lithic/models/auth_rules/v2_delete_params.rb +++ b/lib/lithic/models/auth_rules/v2_delete_params.rb @@ -8,7 +8,13 @@ class V2DeleteParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - # @!method initialize(request_options: {}) + # @!attribute auth_rule_token + # + # @return [String] + required :auth_rule_token, String + + # @!method initialize(auth_rule_token:, request_options: {}) + # @param auth_rule_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/auth_rules/v2_draft_params.rb b/lib/lithic/models/auth_rules/v2_draft_params.rb index f29e2f46..5f2da570 100644 --- a/lib/lithic/models/auth_rules/v2_draft_params.rb +++ b/lib/lithic/models/auth_rules/v2_draft_params.rb @@ -8,13 +8,20 @@ class V2DraftParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + # @!attribute auth_rule_token + # + # @return [String] + required :auth_rule_token, String + # @!attribute parameters # Parameters for the Auth Rule # # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, nil] optional :parameters, union: -> { Lithic::AuthRules::V2DraftParams::Parameters }, nil?: true - # @!method initialize(parameters: nil, request_options: {}) + # @!method initialize(auth_rule_token:, parameters: nil, request_options: {}) + # @param auth_rule_token [String] + # # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, nil] Parameters for the Auth Rule # # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] diff --git a/lib/lithic/models/auth_rules/v2_promote_params.rb b/lib/lithic/models/auth_rules/v2_promote_params.rb index fb495ac3..86f6bf46 100644 --- a/lib/lithic/models/auth_rules/v2_promote_params.rb +++ b/lib/lithic/models/auth_rules/v2_promote_params.rb @@ -8,7 +8,13 @@ class V2PromoteParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - # @!method initialize(request_options: {}) + # @!attribute auth_rule_token + # + # @return [String] + required :auth_rule_token, String + + # @!method initialize(auth_rule_token:, request_options: {}) + # @param auth_rule_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/auth_rules/v2_retrieve_features_params.rb b/lib/lithic/models/auth_rules/v2_retrieve_features_params.rb index 4259d133..490d36c2 100644 --- a/lib/lithic/models/auth_rules/v2_retrieve_features_params.rb +++ b/lib/lithic/models/auth_rules/v2_retrieve_features_params.rb @@ -8,6 +8,11 @@ class V2RetrieveFeaturesParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + # @!attribute auth_rule_token + # + # @return [String] + required :auth_rule_token, String + # @!attribute account_token # # @return [String, nil] @@ -18,7 +23,8 @@ class V2RetrieveFeaturesParams < Lithic::Internal::Type::BaseModel # @return [String, nil] optional :card_token, String - # @!method initialize(account_token: nil, card_token: nil, request_options: {}) + # @!method initialize(auth_rule_token:, account_token: nil, card_token: nil, request_options: {}) + # @param auth_rule_token [String] # @param account_token [String] # @param card_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] diff --git a/lib/lithic/models/auth_rules/v2_retrieve_params.rb b/lib/lithic/models/auth_rules/v2_retrieve_params.rb index 71a6d043..fc1943c2 100644 --- a/lib/lithic/models/auth_rules/v2_retrieve_params.rb +++ b/lib/lithic/models/auth_rules/v2_retrieve_params.rb @@ -8,7 +8,13 @@ class V2RetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - # @!method initialize(request_options: {}) + # @!attribute auth_rule_token + # + # @return [String] + required :auth_rule_token, String + + # @!method initialize(auth_rule_token:, request_options: {}) + # @param auth_rule_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/auth_rules/v2_retrieve_report_params.rb b/lib/lithic/models/auth_rules/v2_retrieve_report_params.rb index 18b5a74c..d32236fb 100644 --- a/lib/lithic/models/auth_rules/v2_retrieve_report_params.rb +++ b/lib/lithic/models/auth_rules/v2_retrieve_report_params.rb @@ -8,6 +8,11 @@ class V2RetrieveReportParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + # @!attribute auth_rule_token + # + # @return [String] + required :auth_rule_token, String + # @!attribute begin_ # Start date for the report # @@ -20,7 +25,9 @@ class V2RetrieveReportParams < Lithic::Internal::Type::BaseModel # @return [Date] required :end_, Date - # @!method initialize(begin_:, end_:, request_options: {}) + # @!method initialize(auth_rule_token:, begin_:, end_:, request_options: {}) + # @param auth_rule_token [String] + # # @param begin_ [Date] Start date for the report # # @param end_ [Date] End date for the report diff --git a/lib/lithic/models/auth_rules/v2_update_params.rb b/lib/lithic/models/auth_rules/v2_update_params.rb index b4ccdcc5..bfbf81f6 100644 --- a/lib/lithic/models/auth_rules/v2_update_params.rb +++ b/lib/lithic/models/auth_rules/v2_update_params.rb @@ -8,84 +8,201 @@ class V2UpdateParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - # @!attribute account_tokens - # Account tokens to which the Auth Rule applies. + # @!attribute auth_rule_token # - # @return [Array, nil] - optional :account_tokens, Lithic::Internal::Type::ArrayOf[String] + # @return [String] + required :auth_rule_token, String - # @!attribute business_account_tokens - # Business Account tokens to which the Auth Rule applies. + # @!attribute body # - # @return [Array, nil] - optional :business_account_tokens, Lithic::Internal::Type::ArrayOf[String] + # @return [Lithic::Models::AuthRules::V2UpdateParams::Body::AccountLevelRule, Lithic::Models::AuthRules::V2UpdateParams::Body::CardLevelRule, Lithic::Models::AuthRules::V2UpdateParams::Body::ProgramLevelRule] + required :body, union: -> { Lithic::AuthRules::V2UpdateParams::Body } - # @!attribute name - # Auth Rule Name - # - # @return [String, nil] - optional :name, String, nil?: true + # @!method initialize(auth_rule_token:, body:, request_options: {}) + # @param auth_rule_token [String] + # @param body [Lithic::Models::AuthRules::V2UpdateParams::Body::AccountLevelRule, Lithic::Models::AuthRules::V2UpdateParams::Body::CardLevelRule, Lithic::Models::AuthRules::V2UpdateParams::Body::ProgramLevelRule] + # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] - # @!attribute state - # The desired state of the Auth Rule. - # - # Note that only deactivating an Auth Rule through this endpoint is supported at - # this time. If you need to (re-)activate an Auth Rule the /promote endpoint - # should be used to promote a draft to the currently active version. - # - # @return [Symbol, Lithic::Models::AuthRules::V2UpdateParams::State, nil] - optional :state, enum: -> { Lithic::AuthRules::V2UpdateParams::State } + module Body + extend Lithic::Internal::Type::Union - # @!attribute card_tokens - # Card tokens to which the Auth Rule applies. - # - # @return [Array, nil] - optional :card_tokens, Lithic::Internal::Type::ArrayOf[String] + variant -> { Lithic::AuthRules::V2UpdateParams::Body::AccountLevelRule } - # @!attribute excluded_card_tokens - # Card tokens to which the Auth Rule does not apply. - # - # @return [Array, nil] - optional :excluded_card_tokens, Lithic::Internal::Type::ArrayOf[String] + variant -> { Lithic::AuthRules::V2UpdateParams::Body::CardLevelRule } - # @!attribute program_level - # Whether the Auth Rule applies to all authorizations on the card program. - # - # @return [Boolean, nil] - optional :program_level, Lithic::Internal::Type::Boolean + variant -> { Lithic::AuthRules::V2UpdateParams::Body::ProgramLevelRule } - # @!method initialize(account_tokens: nil, business_account_tokens: nil, name: nil, state: nil, card_tokens: nil, excluded_card_tokens: nil, program_level: nil, request_options: {}) - # Some parameter documentations has been truncated, see - # {Lithic::Models::AuthRules::V2UpdateParams} for more details. - # - # @param account_tokens [Array] Account tokens to which the Auth Rule applies. - # - # @param business_account_tokens [Array] Business Account tokens to which the Auth Rule applies. - # - # @param name [String, nil] Auth Rule Name - # - # @param state [Symbol, Lithic::Models::AuthRules::V2UpdateParams::State] The desired state of the Auth Rule. - # - # @param card_tokens [Array] Card tokens to which the Auth Rule applies. - # - # @param excluded_card_tokens [Array] Card tokens to which the Auth Rule does not apply. - # - # @param program_level [Boolean] Whether the Auth Rule applies to all authorizations on the card program. - # - # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] + class AccountLevelRule < Lithic::Internal::Type::BaseModel + # @!attribute account_tokens + # Account tokens to which the Auth Rule applies. + # + # @return [Array, nil] + optional :account_tokens, Lithic::Internal::Type::ArrayOf[String] - # The desired state of the Auth Rule. - # - # Note that only deactivating an Auth Rule through this endpoint is supported at - # this time. If you need to (re-)activate an Auth Rule the /promote endpoint - # should be used to promote a draft to the currently active version. - module State - extend Lithic::Internal::Type::Enum + # @!attribute business_account_tokens + # Business Account tokens to which the Auth Rule applies. + # + # @return [Array, nil] + optional :business_account_tokens, Lithic::Internal::Type::ArrayOf[String] + + # @!attribute name + # Auth Rule Name + # + # @return [String, nil] + optional :name, String, nil?: true + + # @!attribute state + # The desired state of the Auth Rule. + # + # Note that only deactivating an Auth Rule through this endpoint is supported at + # this time. If you need to (re-)activate an Auth Rule the /promote endpoint + # should be used to promote a draft to the currently active version. + # + # @return [Symbol, Lithic::Models::AuthRules::V2UpdateParams::Body::AccountLevelRule::State, nil] + optional :state, enum: -> { Lithic::AuthRules::V2UpdateParams::Body::AccountLevelRule::State } + + # @!method initialize(account_tokens: nil, business_account_tokens: nil, name: nil, state: nil) + # Some parameter documentations has been truncated, see + # {Lithic::Models::AuthRules::V2UpdateParams::Body::AccountLevelRule} for more + # details. + # + # @param account_tokens [Array] Account tokens to which the Auth Rule applies. + # + # @param business_account_tokens [Array] Business Account tokens to which the Auth Rule applies. + # + # @param name [String, nil] Auth Rule Name + # + # @param state [Symbol, Lithic::Models::AuthRules::V2UpdateParams::Body::AccountLevelRule::State] The desired state of the Auth Rule. + + # The desired state of the Auth Rule. + # + # Note that only deactivating an Auth Rule through this endpoint is supported at + # this time. If you need to (re-)activate an Auth Rule the /promote endpoint + # should be used to promote a draft to the currently active version. + # + # @see Lithic::Models::AuthRules::V2UpdateParams::Body::AccountLevelRule#state + module State + extend Lithic::Internal::Type::Enum + + INACTIVE = :INACTIVE + + # @!method self.values + # @return [Array] + end + end + + class CardLevelRule < Lithic::Internal::Type::BaseModel + # @!attribute card_tokens + # Card tokens to which the Auth Rule applies. + # + # @return [Array, nil] + optional :card_tokens, Lithic::Internal::Type::ArrayOf[String] + + # @!attribute name + # Auth Rule Name + # + # @return [String, nil] + optional :name, String, nil?: true + + # @!attribute state + # The desired state of the Auth Rule. + # + # Note that only deactivating an Auth Rule through this endpoint is supported at + # this time. If you need to (re-)activate an Auth Rule the /promote endpoint + # should be used to promote a draft to the currently active version. + # + # @return [Symbol, Lithic::Models::AuthRules::V2UpdateParams::Body::CardLevelRule::State, nil] + optional :state, enum: -> { Lithic::AuthRules::V2UpdateParams::Body::CardLevelRule::State } + + # @!method initialize(card_tokens: nil, name: nil, state: nil) + # Some parameter documentations has been truncated, see + # {Lithic::Models::AuthRules::V2UpdateParams::Body::CardLevelRule} for more + # details. + # + # @param card_tokens [Array] Card tokens to which the Auth Rule applies. + # + # @param name [String, nil] Auth Rule Name + # + # @param state [Symbol, Lithic::Models::AuthRules::V2UpdateParams::Body::CardLevelRule::State] The desired state of the Auth Rule. + + # The desired state of the Auth Rule. + # + # Note that only deactivating an Auth Rule through this endpoint is supported at + # this time. If you need to (re-)activate an Auth Rule the /promote endpoint + # should be used to promote a draft to the currently active version. + # + # @see Lithic::Models::AuthRules::V2UpdateParams::Body::CardLevelRule#state + module State + extend Lithic::Internal::Type::Enum + + INACTIVE = :INACTIVE + + # @!method self.values + # @return [Array] + end + end + + class ProgramLevelRule < Lithic::Internal::Type::BaseModel + # @!attribute excluded_card_tokens + # Card tokens to which the Auth Rule does not apply. + # + # @return [Array, nil] + optional :excluded_card_tokens, Lithic::Internal::Type::ArrayOf[String] + + # @!attribute name + # Auth Rule Name + # + # @return [String, nil] + optional :name, String, nil?: true + + # @!attribute program_level + # Whether the Auth Rule applies to all authorizations on the card program. + # + # @return [Boolean, nil] + optional :program_level, Lithic::Internal::Type::Boolean + + # @!attribute state + # The desired state of the Auth Rule. + # + # Note that only deactivating an Auth Rule through this endpoint is supported at + # this time. If you need to (re-)activate an Auth Rule the /promote endpoint + # should be used to promote a draft to the currently active version. + # + # @return [Symbol, Lithic::Models::AuthRules::V2UpdateParams::Body::ProgramLevelRule::State, nil] + optional :state, enum: -> { Lithic::AuthRules::V2UpdateParams::Body::ProgramLevelRule::State } + + # @!method initialize(excluded_card_tokens: nil, name: nil, program_level: nil, state: nil) + # Some parameter documentations has been truncated, see + # {Lithic::Models::AuthRules::V2UpdateParams::Body::ProgramLevelRule} for more + # details. + # + # @param excluded_card_tokens [Array] Card tokens to which the Auth Rule does not apply. + # + # @param name [String, nil] Auth Rule Name + # + # @param program_level [Boolean] Whether the Auth Rule applies to all authorizations on the card program. + # + # @param state [Symbol, Lithic::Models::AuthRules::V2UpdateParams::Body::ProgramLevelRule::State] The desired state of the Auth Rule. + + # The desired state of the Auth Rule. + # + # Note that only deactivating an Auth Rule through this endpoint is supported at + # this time. If you need to (re-)activate an Auth Rule the /promote endpoint + # should be used to promote a draft to the currently active version. + # + # @see Lithic::Models::AuthRules::V2UpdateParams::Body::ProgramLevelRule#state + module State + extend Lithic::Internal::Type::Enum + + INACTIVE = :INACTIVE - INACTIVE = :INACTIVE + # @!method self.values + # @return [Array] + end + end - # @!method self.values - # @return [Array] + # @!method self.variants + # @return [Array(Lithic::Models::AuthRules::V2UpdateParams::Body::AccountLevelRule, Lithic::Models::AuthRules::V2UpdateParams::Body::CardLevelRule, Lithic::Models::AuthRules::V2UpdateParams::Body::ProgramLevelRule)] end end end diff --git a/lib/lithic/models/book_transfer_retrieve_params.rb b/lib/lithic/models/book_transfer_retrieve_params.rb index a18af28b..ddd26e57 100644 --- a/lib/lithic/models/book_transfer_retrieve_params.rb +++ b/lib/lithic/models/book_transfer_retrieve_params.rb @@ -7,7 +7,13 @@ class BookTransferRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - # @!method initialize(request_options: {}) + # @!attribute book_transfer_token + # + # @return [String] + required :book_transfer_token, String + + # @!method initialize(book_transfer_token:, request_options: {}) + # @param book_transfer_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/book_transfer_retry_params.rb b/lib/lithic/models/book_transfer_retry_params.rb index 2cf400e4..ff195831 100644 --- a/lib/lithic/models/book_transfer_retry_params.rb +++ b/lib/lithic/models/book_transfer_retry_params.rb @@ -7,6 +7,11 @@ class BookTransferRetryParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + # @!attribute book_transfer_token + # + # @return [String] + required :book_transfer_token, String + # @!attribute retry_token # Customer-provided token that will serve as an idempotency token. This token will # become the transaction token. @@ -14,10 +19,12 @@ class BookTransferRetryParams < Lithic::Internal::Type::BaseModel # @return [String] required :retry_token, String - # @!method initialize(retry_token:, request_options: {}) + # @!method initialize(book_transfer_token:, retry_token:, request_options: {}) # Some parameter documentations has been truncated, see # {Lithic::Models::BookTransferRetryParams} for more details. # + # @param book_transfer_token [String] + # # @param retry_token [String] Customer-provided token that will serve as an idempotency token. This token will # # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] diff --git a/lib/lithic/models/book_transfer_reverse_params.rb b/lib/lithic/models/book_transfer_reverse_params.rb index f321e5f5..02b4b543 100644 --- a/lib/lithic/models/book_transfer_reverse_params.rb +++ b/lib/lithic/models/book_transfer_reverse_params.rb @@ -7,13 +7,20 @@ class BookTransferReverseParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + # @!attribute book_transfer_token + # + # @return [String] + required :book_transfer_token, String + # @!attribute memo # Optional descriptor for the reversal. # # @return [String, nil] optional :memo, String - # @!method initialize(memo: nil, request_options: {}) + # @!method initialize(book_transfer_token:, memo: nil, request_options: {}) + # @param book_transfer_token [String] + # # @param memo [String] Optional descriptor for the reversal. # # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] diff --git a/lib/lithic/models/card_bulk_order_retrieve_params.rb b/lib/lithic/models/card_bulk_order_retrieve_params.rb index 6ae632d1..792e719d 100644 --- a/lib/lithic/models/card_bulk_order_retrieve_params.rb +++ b/lib/lithic/models/card_bulk_order_retrieve_params.rb @@ -7,7 +7,13 @@ class CardBulkOrderRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - # @!method initialize(request_options: {}) + # @!attribute bulk_order_token + # + # @return [String] + required :bulk_order_token, String + + # @!method initialize(bulk_order_token:, request_options: {}) + # @param bulk_order_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/card_bulk_order_update_params.rb b/lib/lithic/models/card_bulk_order_update_params.rb index a0bdc3fd..eb159acd 100644 --- a/lib/lithic/models/card_bulk_order_update_params.rb +++ b/lib/lithic/models/card_bulk_order_update_params.rb @@ -7,13 +7,20 @@ class CardBulkOrderUpdateParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + # @!attribute bulk_order_token + # + # @return [String] + required :bulk_order_token, String + # @!attribute status # Status to update the bulk order to. Use LOCKED to finalize the order # # @return [Symbol, Lithic::Models::CardBulkOrderUpdateParams::Status] required :status, enum: -> { Lithic::CardBulkOrderUpdateParams::Status } - # @!method initialize(status:, request_options: {}) + # @!method initialize(bulk_order_token:, status:, request_options: {}) + # @param bulk_order_token [String] + # # @param status [Symbol, Lithic::Models::CardBulkOrderUpdateParams::Status] Status to update the bulk order to. Use LOCKED to finalize the order # # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] diff --git a/lib/lithic/models/card_convert_physical_params.rb b/lib/lithic/models/card_convert_physical_params.rb index 91c608c8..19eb76b8 100644 --- a/lib/lithic/models/card_convert_physical_params.rb +++ b/lib/lithic/models/card_convert_physical_params.rb @@ -7,6 +7,11 @@ class CardConvertPhysicalParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + # @!attribute card_token + # + # @return [String] + required :card_token, String + # @!attribute shipping_address # The shipping address this card will be sent to. # @@ -47,10 +52,12 @@ class CardConvertPhysicalParams < Lithic::Internal::Type::BaseModel # @return [Symbol, Lithic::Models::CardConvertPhysicalParams::ShippingMethod, nil] optional :shipping_method, enum: -> { Lithic::CardConvertPhysicalParams::ShippingMethod } - # @!method initialize(shipping_address:, carrier: nil, product_id: nil, shipping_method: nil, request_options: {}) + # @!method initialize(card_token:, shipping_address:, carrier: nil, product_id: nil, shipping_method: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Lithic::Models::CardConvertPhysicalParams} for more details. # + # @param card_token [String] + # # @param shipping_address [Lithic::Models::ShippingAddress] The shipping address this card will be sent to. # # @param carrier [Lithic::Models::Carrier] If omitted, the previous carrier will be used. diff --git a/lib/lithic/models/card_program_retrieve_params.rb b/lib/lithic/models/card_program_retrieve_params.rb index bff4a832..5f9059eb 100644 --- a/lib/lithic/models/card_program_retrieve_params.rb +++ b/lib/lithic/models/card_program_retrieve_params.rb @@ -7,7 +7,13 @@ class CardProgramRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - # @!method initialize(request_options: {}) + # @!attribute card_program_token + # + # @return [String] + required :card_program_token, String + + # @!method initialize(card_program_token:, request_options: {}) + # @param card_program_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/card_provision_params.rb b/lib/lithic/models/card_provision_params.rb index 50e5a319..e50c318b 100644 --- a/lib/lithic/models/card_provision_params.rb +++ b/lib/lithic/models/card_provision_params.rb @@ -7,6 +7,11 @@ class CardProvisionParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + # @!attribute card_token + # + # @return [String] + required :card_token, String + # @!attribute certificate # Only applicable if `digital_wallet` is `APPLE_PAY`. Omit to receive only # `activationData` in the response. Apple's public leaf certificate. Base64 @@ -54,10 +59,12 @@ class CardProvisionParams < Lithic::Internal::Type::BaseModel # @return [String, nil] optional :nonce_signature, String - # @!method initialize(certificate: nil, client_device_id: nil, client_wallet_account_id: nil, digital_wallet: nil, nonce: nil, nonce_signature: nil, request_options: {}) + # @!method initialize(card_token:, certificate: nil, client_device_id: nil, client_wallet_account_id: nil, digital_wallet: nil, nonce: nil, nonce_signature: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Lithic::Models::CardProvisionParams} for more details. # + # @param card_token [String] + # # @param certificate [String] Only applicable if `digital_wallet` is `APPLE_PAY`. Omit to receive only `activa # # @param client_device_id [String] Only applicable if `digital_wallet` is `GOOGLE_PAY` or `SAMSUNG_PAY` and the car diff --git a/lib/lithic/models/card_reissue_params.rb b/lib/lithic/models/card_reissue_params.rb index 15ba2323..3212f176 100644 --- a/lib/lithic/models/card_reissue_params.rb +++ b/lib/lithic/models/card_reissue_params.rb @@ -7,6 +7,11 @@ class CardReissueParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + # @!attribute card_token + # + # @return [String] + required :card_token, String + # @!attribute carrier # If omitted, the previous carrier will be used. # @@ -47,10 +52,12 @@ class CardReissueParams < Lithic::Internal::Type::BaseModel # @return [Symbol, Lithic::Models::CardReissueParams::ShippingMethod, nil] optional :shipping_method, enum: -> { Lithic::CardReissueParams::ShippingMethod } - # @!method initialize(carrier: nil, product_id: nil, shipping_address: nil, shipping_method: nil, request_options: {}) + # @!method initialize(card_token:, carrier: nil, product_id: nil, shipping_address: nil, shipping_method: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Lithic::Models::CardReissueParams} for more details. # + # @param card_token [String] + # # @param carrier [Lithic::Models::Carrier] If omitted, the previous carrier will be used. # # @param product_id [String] Specifies the configuration (e.g. physical card art) that the card should be man diff --git a/lib/lithic/models/card_renew_params.rb b/lib/lithic/models/card_renew_params.rb index e595ead3..2b7fcd07 100644 --- a/lib/lithic/models/card_renew_params.rb +++ b/lib/lithic/models/card_renew_params.rb @@ -7,6 +7,11 @@ class CardRenewParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + # @!attribute card_token + # + # @return [String] + required :card_token, String + # @!attribute shipping_address # The shipping address this card will be sent to. # @@ -61,10 +66,12 @@ class CardRenewParams < Lithic::Internal::Type::BaseModel # @return [Symbol, Lithic::Models::CardRenewParams::ShippingMethod, nil] optional :shipping_method, enum: -> { Lithic::CardRenewParams::ShippingMethod } - # @!method initialize(shipping_address:, carrier: nil, exp_month: nil, exp_year: nil, product_id: nil, shipping_method: nil, request_options: {}) + # @!method initialize(card_token:, shipping_address:, carrier: nil, exp_month: nil, exp_year: nil, product_id: nil, shipping_method: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Lithic::Models::CardRenewParams} for more details. # + # @param card_token [String] + # # @param shipping_address [Lithic::Models::ShippingAddress] The shipping address this card will be sent to. # # @param carrier [Lithic::Models::Carrier] If omitted, the previous carrier will be used. diff --git a/lib/lithic/models/card_retrieve_params.rb b/lib/lithic/models/card_retrieve_params.rb index 79c573f6..5849737a 100644 --- a/lib/lithic/models/card_retrieve_params.rb +++ b/lib/lithic/models/card_retrieve_params.rb @@ -7,7 +7,13 @@ class CardRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - # @!method initialize(request_options: {}) + # @!attribute card_token + # + # @return [String] + required :card_token, String + + # @!method initialize(card_token:, request_options: {}) + # @param card_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/card_retrieve_spend_limits_params.rb b/lib/lithic/models/card_retrieve_spend_limits_params.rb index 1dedb85e..54f39d40 100644 --- a/lib/lithic/models/card_retrieve_spend_limits_params.rb +++ b/lib/lithic/models/card_retrieve_spend_limits_params.rb @@ -7,7 +7,13 @@ class CardRetrieveSpendLimitsParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - # @!method initialize(request_options: {}) + # @!attribute card_token + # + # @return [String] + required :card_token, String + + # @!method initialize(card_token:, request_options: {}) + # @param card_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/card_update_params.rb b/lib/lithic/models/card_update_params.rb index e41e4fea..25e64130 100644 --- a/lib/lithic/models/card_update_params.rb +++ b/lib/lithic/models/card_update_params.rb @@ -7,6 +7,11 @@ class CardUpdateParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + # @!attribute card_token + # + # @return [String] + required :card_token, String + # @!attribute comment # Additional context or information related to the card. # @@ -122,10 +127,12 @@ class CardUpdateParams < Lithic::Internal::Type::BaseModel # @return [Symbol, Lithic::Models::CardUpdateParams::Substatus, nil] optional :substatus, enum: -> { Lithic::CardUpdateParams::Substatus } - # @!method initialize(comment: nil, digital_card_art_token: nil, memo: nil, network_program_token: nil, pin: nil, pin_status: nil, spend_limit: nil, spend_limit_duration: nil, state: nil, substatus: nil, request_options: {}) + # @!method initialize(card_token:, comment: nil, digital_card_art_token: nil, memo: nil, network_program_token: nil, pin: nil, pin_status: nil, spend_limit: nil, spend_limit_duration: nil, state: nil, substatus: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Lithic::Models::CardUpdateParams} for more details. # + # @param card_token [String] + # # @param comment [String] Additional context or information related to the card. # # @param digital_card_art_token [String] Specifies the digital card art to be displayed in the user’s digital wallet afte diff --git a/lib/lithic/models/card_web_provision_params.rb b/lib/lithic/models/card_web_provision_params.rb index 8d445336..9ecd1d68 100644 --- a/lib/lithic/models/card_web_provision_params.rb +++ b/lib/lithic/models/card_web_provision_params.rb @@ -7,6 +7,11 @@ class CardWebProvisionParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + # @!attribute card_token + # + # @return [String] + required :card_token, String + # @!attribute client_device_id # Only applicable if `digital_wallet` is GOOGLE_PAY. Google Pay Web Push # Provisioning device identifier required for the tokenization flow @@ -34,10 +39,12 @@ class CardWebProvisionParams < Lithic::Internal::Type::BaseModel # @return [String, nil] optional :server_session_id, String - # @!method initialize(client_device_id: nil, client_wallet_account_id: nil, digital_wallet: nil, server_session_id: nil, request_options: {}) + # @!method initialize(card_token:, client_device_id: nil, client_wallet_account_id: nil, digital_wallet: nil, server_session_id: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Lithic::Models::CardWebProvisionParams} for more details. # + # @param card_token [String] + # # @param client_device_id [String] Only applicable if `digital_wallet` is GOOGLE_PAY. Google Pay Web Push Provision # # @param client_wallet_account_id [String] Only applicable if `digital_wallet` is GOOGLE_PAY. Google Pay Web Push Provision diff --git a/lib/lithic/models/cards/balance_list_params.rb b/lib/lithic/models/cards/balance_list_params.rb index d95224d9..1dce25a3 100644 --- a/lib/lithic/models/cards/balance_list_params.rb +++ b/lib/lithic/models/cards/balance_list_params.rb @@ -8,6 +8,11 @@ class BalanceListParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + # @!attribute card_token + # + # @return [String] + required :card_token, String + # @!attribute balance_date # UTC date of the balance to retrieve. Defaults to latest available balance # @@ -22,10 +27,12 @@ class BalanceListParams < Lithic::Internal::Type::BaseModel # @return [String, nil] optional :last_transaction_event_token, String - # @!method initialize(balance_date: nil, last_transaction_event_token: nil, request_options: {}) + # @!method initialize(card_token:, balance_date: nil, last_transaction_event_token: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Lithic::Models::Cards::BalanceListParams} for more details. # + # @param card_token [String] + # # @param balance_date [Time] UTC date of the balance to retrieve. Defaults to latest available balance # # @param last_transaction_event_token [String] Balance after a given financial event occured. diff --git a/lib/lithic/models/cards/financial_transaction_list_params.rb b/lib/lithic/models/cards/financial_transaction_list_params.rb index 82b3364a..940e506d 100644 --- a/lib/lithic/models/cards/financial_transaction_list_params.rb +++ b/lib/lithic/models/cards/financial_transaction_list_params.rb @@ -8,6 +8,11 @@ class FinancialTransactionListParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + # @!attribute card_token + # + # @return [String] + required :card_token, String + # @!attribute begin_ # Date string in RFC 3339 format. Only entries created after the specified time # will be included. UTC time zone. @@ -54,10 +59,12 @@ class FinancialTransactionListParams < Lithic::Internal::Type::BaseModel # @return [Symbol, Lithic::Models::Cards::FinancialTransactionListParams::Status, nil] optional :status, enum: -> { Lithic::Cards::FinancialTransactionListParams::Status } - # @!method initialize(begin_: nil, category: nil, end_: nil, ending_before: nil, result: nil, starting_after: nil, status: nil, request_options: {}) + # @!method initialize(card_token:, begin_: nil, category: nil, end_: nil, ending_before: nil, result: nil, starting_after: nil, status: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Lithic::Models::Cards::FinancialTransactionListParams} for more details. # + # @param card_token [String] + # # @param begin_ [Time] Date string in RFC 3339 format. Only entries created after the specified time wi # # @param category [Symbol, Lithic::Models::Cards::FinancialTransactionListParams::Category] Financial Transaction category to be returned. diff --git a/lib/lithic/models/cards/financial_transaction_retrieve_params.rb b/lib/lithic/models/cards/financial_transaction_retrieve_params.rb index 5fdcbfe1..467aa8d4 100644 --- a/lib/lithic/models/cards/financial_transaction_retrieve_params.rb +++ b/lib/lithic/models/cards/financial_transaction_retrieve_params.rb @@ -13,8 +13,14 @@ class FinancialTransactionRetrieveParams < Lithic::Internal::Type::BaseModel # @return [String] required :card_token, String - # @!method initialize(card_token:, request_options: {}) + # @!attribute financial_transaction_token + # + # @return [String] + required :financial_transaction_token, String + + # @!method initialize(card_token:, financial_transaction_token:, request_options: {}) # @param card_token [String] + # @param financial_transaction_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/credit_products/extended_credit_retrieve_params.rb b/lib/lithic/models/credit_products/extended_credit_retrieve_params.rb index d66efda2..cad980c2 100644 --- a/lib/lithic/models/credit_products/extended_credit_retrieve_params.rb +++ b/lib/lithic/models/credit_products/extended_credit_retrieve_params.rb @@ -8,7 +8,13 @@ class ExtendedCreditRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - # @!method initialize(request_options: {}) + # @!attribute credit_product_token + # + # @return [String] + required :credit_product_token, String + + # @!method initialize(credit_product_token:, request_options: {}) + # @param credit_product_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/credit_products/prime_rate_create_params.rb b/lib/lithic/models/credit_products/prime_rate_create_params.rb index 090e9d49..5103b3b1 100644 --- a/lib/lithic/models/credit_products/prime_rate_create_params.rb +++ b/lib/lithic/models/credit_products/prime_rate_create_params.rb @@ -8,6 +8,12 @@ class PrimeRateCreateParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + # @!attribute credit_product_token + # Globally unique identifier for credit products. + # + # @return [String] + required :credit_product_token, String + # @!attribute effective_date # Date the rate goes into effect # @@ -20,7 +26,9 @@ class PrimeRateCreateParams < Lithic::Internal::Type::BaseModel # @return [String] required :rate, String - # @!method initialize(effective_date:, rate:, request_options: {}) + # @!method initialize(credit_product_token:, effective_date:, rate:, request_options: {}) + # @param credit_product_token [String] Globally unique identifier for credit products. + # # @param effective_date [Date] Date the rate goes into effect # # @param rate [String] The rate in decimal format diff --git a/lib/lithic/models/credit_products/prime_rate_retrieve_params.rb b/lib/lithic/models/credit_products/prime_rate_retrieve_params.rb index bd1e7770..1b27e145 100644 --- a/lib/lithic/models/credit_products/prime_rate_retrieve_params.rb +++ b/lib/lithic/models/credit_products/prime_rate_retrieve_params.rb @@ -8,6 +8,12 @@ class PrimeRateRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + # @!attribute credit_product_token + # Globally unique identifier for credit products. + # + # @return [String] + required :credit_product_token, String + # @!attribute ending_before # The effective date that the prime rates ends before # @@ -20,7 +26,9 @@ class PrimeRateRetrieveParams < Lithic::Internal::Type::BaseModel # @return [Date, nil] optional :starting_after, Date - # @!method initialize(ending_before: nil, starting_after: nil, request_options: {}) + # @!method initialize(credit_product_token:, ending_before: nil, starting_after: nil, request_options: {}) + # @param credit_product_token [String] Globally unique identifier for credit products. + # # @param ending_before [Date] The effective date that the prime rates ends before # # @param starting_after [Date] The effective date that the prime rate starts after diff --git a/lib/lithic/models/digital_card_art_retrieve_params.rb b/lib/lithic/models/digital_card_art_retrieve_params.rb index 0e424e5f..207e434a 100644 --- a/lib/lithic/models/digital_card_art_retrieve_params.rb +++ b/lib/lithic/models/digital_card_art_retrieve_params.rb @@ -7,7 +7,13 @@ class DigitalCardArtRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - # @!method initialize(request_options: {}) + # @!attribute digital_card_art_token + # + # @return [String] + required :digital_card_art_token, String + + # @!method initialize(digital_card_art_token:, request_options: {}) + # @param digital_card_art_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/dispute_delete_evidence_params.rb b/lib/lithic/models/dispute_delete_evidence_params.rb index 3bc0dbdf..27d813bd 100644 --- a/lib/lithic/models/dispute_delete_evidence_params.rb +++ b/lib/lithic/models/dispute_delete_evidence_params.rb @@ -12,8 +12,14 @@ class DisputeDeleteEvidenceParams < Lithic::Internal::Type::BaseModel # @return [String] required :dispute_token, String - # @!method initialize(dispute_token:, request_options: {}) + # @!attribute evidence_token + # + # @return [String] + required :evidence_token, String + + # @!method initialize(dispute_token:, evidence_token:, request_options: {}) # @param dispute_token [String] + # @param evidence_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/dispute_delete_params.rb b/lib/lithic/models/dispute_delete_params.rb index 4b5871fd..5ec3dcbb 100644 --- a/lib/lithic/models/dispute_delete_params.rb +++ b/lib/lithic/models/dispute_delete_params.rb @@ -7,7 +7,13 @@ class DisputeDeleteParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - # @!method initialize(request_options: {}) + # @!attribute dispute_token + # + # @return [String] + required :dispute_token, String + + # @!method initialize(dispute_token:, request_options: {}) + # @param dispute_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/dispute_initiate_evidence_upload_params.rb b/lib/lithic/models/dispute_initiate_evidence_upload_params.rb index 378f6acd..e2bcfd9e 100644 --- a/lib/lithic/models/dispute_initiate_evidence_upload_params.rb +++ b/lib/lithic/models/dispute_initiate_evidence_upload_params.rb @@ -7,13 +7,20 @@ class DisputeInitiateEvidenceUploadParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + # @!attribute dispute_token + # + # @return [String] + required :dispute_token, String + # @!attribute filename # Filename of the evidence. # # @return [String, nil] optional :filename, String - # @!method initialize(filename: nil, request_options: {}) + # @!method initialize(dispute_token:, filename: nil, request_options: {}) + # @param dispute_token [String] + # # @param filename [String] Filename of the evidence. # # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] diff --git a/lib/lithic/models/dispute_list_evidences_params.rb b/lib/lithic/models/dispute_list_evidences_params.rb index 8b9cc098..f94a3257 100644 --- a/lib/lithic/models/dispute_list_evidences_params.rb +++ b/lib/lithic/models/dispute_list_evidences_params.rb @@ -7,6 +7,11 @@ class DisputeListEvidencesParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + # @!attribute dispute_token + # + # @return [String] + required :dispute_token, String + # @!attribute begin_ # Date string in RFC 3339 format. Only entries created after the specified time # will be included. UTC time zone. @@ -41,10 +46,12 @@ class DisputeListEvidencesParams < Lithic::Internal::Type::BaseModel # @return [String, nil] optional :starting_after, String - # @!method initialize(begin_: nil, end_: nil, ending_before: nil, page_size: nil, starting_after: nil, request_options: {}) + # @!method initialize(dispute_token:, begin_: nil, end_: nil, ending_before: nil, page_size: nil, starting_after: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Lithic::Models::DisputeListEvidencesParams} for more details. # + # @param dispute_token [String] + # # @param begin_ [Time] Date string in RFC 3339 format. Only entries created after the specified time wi # # @param end_ [Time] Date string in RFC 3339 format. Only entries created before the specified time w diff --git a/lib/lithic/models/dispute_retrieve_evidence_params.rb b/lib/lithic/models/dispute_retrieve_evidence_params.rb index 440e5052..df8a3ddb 100644 --- a/lib/lithic/models/dispute_retrieve_evidence_params.rb +++ b/lib/lithic/models/dispute_retrieve_evidence_params.rb @@ -12,8 +12,14 @@ class DisputeRetrieveEvidenceParams < Lithic::Internal::Type::BaseModel # @return [String] required :dispute_token, String - # @!method initialize(dispute_token:, request_options: {}) + # @!attribute evidence_token + # + # @return [String] + required :evidence_token, String + + # @!method initialize(dispute_token:, evidence_token:, request_options: {}) # @param dispute_token [String] + # @param evidence_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/dispute_retrieve_params.rb b/lib/lithic/models/dispute_retrieve_params.rb index cac71219..c48de5df 100644 --- a/lib/lithic/models/dispute_retrieve_params.rb +++ b/lib/lithic/models/dispute_retrieve_params.rb @@ -7,7 +7,13 @@ class DisputeRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - # @!method initialize(request_options: {}) + # @!attribute dispute_token + # + # @return [String] + required :dispute_token, String + + # @!method initialize(dispute_token:, request_options: {}) + # @param dispute_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/dispute_update_params.rb b/lib/lithic/models/dispute_update_params.rb index 4d447134..e6b6b66e 100644 --- a/lib/lithic/models/dispute_update_params.rb +++ b/lib/lithic/models/dispute_update_params.rb @@ -7,6 +7,11 @@ class DisputeUpdateParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + # @!attribute dispute_token + # + # @return [String] + required :dispute_token, String + # @!attribute amount # Amount to dispute # @@ -31,7 +36,9 @@ class DisputeUpdateParams < Lithic::Internal::Type::BaseModel # @return [Symbol, Lithic::Models::DisputeUpdateParams::Reason, nil] optional :reason, enum: -> { Lithic::DisputeUpdateParams::Reason } - # @!method initialize(amount: nil, customer_filed_date: nil, customer_note: nil, reason: nil, request_options: {}) + # @!method initialize(dispute_token:, amount: nil, customer_filed_date: nil, customer_note: nil, reason: nil, request_options: {}) + # @param dispute_token [String] + # # @param amount [Integer] Amount to dispute # # @param customer_filed_date [Time] Date the customer filed the dispute diff --git a/lib/lithic/models/disputes_v2_retrieve_params.rb b/lib/lithic/models/disputes_v2_retrieve_params.rb index 73e78749..36d2940c 100644 --- a/lib/lithic/models/disputes_v2_retrieve_params.rb +++ b/lib/lithic/models/disputes_v2_retrieve_params.rb @@ -7,7 +7,13 @@ class DisputesV2RetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - # @!method initialize(request_options: {}) + # @!attribute dispute_token + # + # @return [String] + required :dispute_token, String + + # @!method initialize(dispute_token:, request_options: {}) + # @param dispute_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/event_list_attempts_params.rb b/lib/lithic/models/event_list_attempts_params.rb index 44ab7164..b4e9094f 100644 --- a/lib/lithic/models/event_list_attempts_params.rb +++ b/lib/lithic/models/event_list_attempts_params.rb @@ -7,6 +7,11 @@ class EventListAttemptsParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + # @!attribute event_token + # + # @return [String] + required :event_token, String + # @!attribute begin_ # Date string in RFC 3339 format. Only entries created after the specified time # will be included. UTC time zone. @@ -46,10 +51,12 @@ class EventListAttemptsParams < Lithic::Internal::Type::BaseModel # @return [Symbol, Lithic::Models::EventListAttemptsParams::Status, nil] optional :status, enum: -> { Lithic::EventListAttemptsParams::Status } - # @!method initialize(begin_: nil, end_: nil, ending_before: nil, page_size: nil, starting_after: nil, status: nil, request_options: {}) + # @!method initialize(event_token:, begin_: nil, end_: nil, ending_before: nil, page_size: nil, starting_after: nil, status: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Lithic::Models::EventListAttemptsParams} for more details. # + # @param event_token [String] + # # @param begin_ [Time] Date string in RFC 3339 format. Only entries created after the specified time wi # # @param end_ [Time] Date string in RFC 3339 format. Only entries created before the specified time w diff --git a/lib/lithic/models/event_retrieve_params.rb b/lib/lithic/models/event_retrieve_params.rb index 7be062e7..80ceaaac 100644 --- a/lib/lithic/models/event_retrieve_params.rb +++ b/lib/lithic/models/event_retrieve_params.rb @@ -7,7 +7,13 @@ class EventRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - # @!method initialize(request_options: {}) + # @!attribute event_token + # + # @return [String] + required :event_token, String + + # @!method initialize(event_token:, request_options: {}) + # @param event_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/events/event_subscription_resend_params.rb b/lib/lithic/models/events/event_subscription_resend_params.rb index ff1ea2ff..e36f6576 100644 --- a/lib/lithic/models/events/event_subscription_resend_params.rb +++ b/lib/lithic/models/events/event_subscription_resend_params.rb @@ -13,8 +13,14 @@ class EventSubscriptionResendParams < Lithic::Internal::Type::BaseModel # @return [String] required :event_token, String - # @!method initialize(event_token:, request_options: {}) + # @!attribute event_subscription_token + # + # @return [String] + required :event_subscription_token, String + + # @!method initialize(event_token:, event_subscription_token:, request_options: {}) # @param event_token [String] + # @param event_subscription_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/events/subscription_delete_params.rb b/lib/lithic/models/events/subscription_delete_params.rb index 49aa976e..c9cab5e7 100644 --- a/lib/lithic/models/events/subscription_delete_params.rb +++ b/lib/lithic/models/events/subscription_delete_params.rb @@ -8,7 +8,13 @@ class SubscriptionDeleteParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - # @!method initialize(request_options: {}) + # @!attribute event_subscription_token + # + # @return [String] + required :event_subscription_token, String + + # @!method initialize(event_subscription_token:, request_options: {}) + # @param event_subscription_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/events/subscription_list_attempts_params.rb b/lib/lithic/models/events/subscription_list_attempts_params.rb index 7e40122a..3b4c120f 100644 --- a/lib/lithic/models/events/subscription_list_attempts_params.rb +++ b/lib/lithic/models/events/subscription_list_attempts_params.rb @@ -8,6 +8,11 @@ class SubscriptionListAttemptsParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + # @!attribute event_subscription_token + # + # @return [String] + required :event_subscription_token, String + # @!attribute begin_ # Date string in RFC 3339 format. Only entries created after the specified time # will be included. UTC time zone. @@ -47,10 +52,12 @@ class SubscriptionListAttemptsParams < Lithic::Internal::Type::BaseModel # @return [Symbol, Lithic::Models::Events::SubscriptionListAttemptsParams::Status, nil] optional :status, enum: -> { Lithic::Events::SubscriptionListAttemptsParams::Status } - # @!method initialize(begin_: nil, end_: nil, ending_before: nil, page_size: nil, starting_after: nil, status: nil, request_options: {}) + # @!method initialize(event_subscription_token:, begin_: nil, end_: nil, ending_before: nil, page_size: nil, starting_after: nil, status: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Lithic::Models::Events::SubscriptionListAttemptsParams} for more details. # + # @param event_subscription_token [String] + # # @param begin_ [Time] Date string in RFC 3339 format. Only entries created after the specified time wi # # @param end_ [Time] Date string in RFC 3339 format. Only entries created before the specified time w diff --git a/lib/lithic/models/events/subscription_recover_params.rb b/lib/lithic/models/events/subscription_recover_params.rb index 011101e3..d8dc5741 100644 --- a/lib/lithic/models/events/subscription_recover_params.rb +++ b/lib/lithic/models/events/subscription_recover_params.rb @@ -8,6 +8,11 @@ class SubscriptionRecoverParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + # @!attribute event_subscription_token + # + # @return [String] + required :event_subscription_token, String + # @!attribute begin_ # Date string in RFC 3339 format. Only entries created after the specified time # will be included. UTC time zone. @@ -22,10 +27,12 @@ class SubscriptionRecoverParams < Lithic::Internal::Type::BaseModel # @return [Time, nil] optional :end_, Time - # @!method initialize(begin_: nil, end_: nil, request_options: {}) + # @!method initialize(event_subscription_token:, begin_: nil, end_: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Lithic::Models::Events::SubscriptionRecoverParams} for more details. # + # @param event_subscription_token [String] + # # @param begin_ [Time] Date string in RFC 3339 format. Only entries created after the specified time wi # # @param end_ [Time] Date string in RFC 3339 format. Only entries created before the specified time w diff --git a/lib/lithic/models/events/subscription_replay_missing_params.rb b/lib/lithic/models/events/subscription_replay_missing_params.rb index 8d580184..cd15f9e7 100644 --- a/lib/lithic/models/events/subscription_replay_missing_params.rb +++ b/lib/lithic/models/events/subscription_replay_missing_params.rb @@ -8,6 +8,11 @@ class SubscriptionReplayMissingParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + # @!attribute event_subscription_token + # + # @return [String] + required :event_subscription_token, String + # @!attribute begin_ # Date string in RFC 3339 format. Only entries created after the specified time # will be included. UTC time zone. @@ -22,10 +27,12 @@ class SubscriptionReplayMissingParams < Lithic::Internal::Type::BaseModel # @return [Time, nil] optional :end_, Time - # @!method initialize(begin_: nil, end_: nil, request_options: {}) + # @!method initialize(event_subscription_token:, begin_: nil, end_: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Lithic::Models::Events::SubscriptionReplayMissingParams} for more details. # + # @param event_subscription_token [String] + # # @param begin_ [Time] Date string in RFC 3339 format. Only entries created after the specified time wi # # @param end_ [Time] Date string in RFC 3339 format. Only entries created before the specified time w diff --git a/lib/lithic/models/events/subscription_retrieve_params.rb b/lib/lithic/models/events/subscription_retrieve_params.rb index eafa30ef..3ec6a45d 100644 --- a/lib/lithic/models/events/subscription_retrieve_params.rb +++ b/lib/lithic/models/events/subscription_retrieve_params.rb @@ -8,7 +8,13 @@ class SubscriptionRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - # @!method initialize(request_options: {}) + # @!attribute event_subscription_token + # + # @return [String] + required :event_subscription_token, String + + # @!method initialize(event_subscription_token:, request_options: {}) + # @param event_subscription_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/events/subscription_retrieve_secret_params.rb b/lib/lithic/models/events/subscription_retrieve_secret_params.rb index 9ecd2c5a..eaa8c145 100644 --- a/lib/lithic/models/events/subscription_retrieve_secret_params.rb +++ b/lib/lithic/models/events/subscription_retrieve_secret_params.rb @@ -8,7 +8,13 @@ class SubscriptionRetrieveSecretParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - # @!method initialize(request_options: {}) + # @!attribute event_subscription_token + # + # @return [String] + required :event_subscription_token, String + + # @!method initialize(event_subscription_token:, request_options: {}) + # @param event_subscription_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/events/subscription_rotate_secret_params.rb b/lib/lithic/models/events/subscription_rotate_secret_params.rb index 86f32389..d19c87a7 100644 --- a/lib/lithic/models/events/subscription_rotate_secret_params.rb +++ b/lib/lithic/models/events/subscription_rotate_secret_params.rb @@ -8,7 +8,13 @@ class SubscriptionRotateSecretParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - # @!method initialize(request_options: {}) + # @!attribute event_subscription_token + # + # @return [String] + required :event_subscription_token, String + + # @!method initialize(event_subscription_token:, request_options: {}) + # @param event_subscription_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/events/subscription_send_simulated_example_params.rb b/lib/lithic/models/events/subscription_send_simulated_example_params.rb index cb3f8074..2aec2fc5 100644 --- a/lib/lithic/models/events/subscription_send_simulated_example_params.rb +++ b/lib/lithic/models/events/subscription_send_simulated_example_params.rb @@ -8,13 +8,20 @@ class SubscriptionSendSimulatedExampleParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + # @!attribute event_subscription_token + # + # @return [String] + required :event_subscription_token, String + # @!attribute event_type # Event type to send example message for. # # @return [Symbol, Lithic::Models::Events::SubscriptionSendSimulatedExampleParams::EventType, nil] optional :event_type, enum: -> { Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType } - # @!method initialize(event_type: nil, request_options: {}) + # @!method initialize(event_subscription_token:, event_type: nil, request_options: {}) + # @param event_subscription_token [String] + # # @param event_type [Symbol, Lithic::Models::Events::SubscriptionSendSimulatedExampleParams::EventType] Event type to send example message for. # # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] diff --git a/lib/lithic/models/events/subscription_update_params.rb b/lib/lithic/models/events/subscription_update_params.rb index 619bc83d..0c942d0d 100644 --- a/lib/lithic/models/events/subscription_update_params.rb +++ b/lib/lithic/models/events/subscription_update_params.rb @@ -8,6 +8,11 @@ class SubscriptionUpdateParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + # @!attribute event_subscription_token + # + # @return [String] + required :event_subscription_token, String + # @!attribute url # URL to which event webhooks will be sent. URL must be a valid HTTPS address. # @@ -34,10 +39,12 @@ class SubscriptionUpdateParams < Lithic::Internal::Type::BaseModel optional :event_types, -> { Lithic::Internal::Type::ArrayOf[enum: Lithic::Events::SubscriptionUpdateParams::EventType] } - # @!method initialize(url:, description: nil, disabled: nil, event_types: nil, request_options: {}) + # @!method initialize(event_subscription_token:, url:, description: nil, disabled: nil, event_types: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Lithic::Models::Events::SubscriptionUpdateParams} for more details. # + # @param event_subscription_token [String] + # # @param url [String] URL to which event webhooks will be sent. URL must be a valid HTTPS address. # # @param description [String] Event subscription description. diff --git a/lib/lithic/models/external_bank_account_create_params.rb b/lib/lithic/models/external_bank_account_create_params.rb index b0f9c25a..3125045e 100644 --- a/lib/lithic/models/external_bank_account_create_params.rb +++ b/lib/lithic/models/external_bank_account_create_params.rb @@ -7,170 +7,476 @@ class ExternalBankAccountCreateParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - # @!attribute account_number - # Account Number + # @!attribute body # - # @return [String] - required :account_number, String + # @return [Lithic::Models::ExternalBankAccountCreateParams::Body::ExternallyVerified, Lithic::Models::ExternalBankAccountCreateParams::Body::Unverified, Lithic::Models::ExternalBankAccountCreateParams::Body::BankVerifiedCreateBankAccountAPIRequest] + required :body, union: -> { Lithic::ExternalBankAccountCreateParams::Body } - # @!attribute country - # The country that the bank account is located in using ISO 3166-1. We will only - # accept USA bank accounts e.g., USA - # - # @return [String] - required :country, String + # @!method initialize(body:, request_options: {}) + # @param body [Lithic::Models::ExternalBankAccountCreateParams::Body::ExternallyVerified, Lithic::Models::ExternalBankAccountCreateParams::Body::Unverified, Lithic::Models::ExternalBankAccountCreateParams::Body::BankVerifiedCreateBankAccountAPIRequest] + # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] - # @!attribute currency - # currency of the external account 3-character alphabetic ISO 4217 code - # - # @return [String] - required :currency, String + module Body + extend Lithic::Internal::Type::Union - # @!attribute financial_account_token - # The financial account token of the operating account to fund the micro deposits - # - # @return [String] - required :financial_account_token, String + discriminator :verification_method - # @!attribute owner - # Legal Name of the business or individual who owns the external account. This - # will appear in statements - # - # @return [String] - required :owner, String + variant :EXTERNALLY_VERIFIED, -> { Lithic::ExternalBankAccountCreateParams::Body::ExternallyVerified } - # @!attribute owner_type - # Owner Type - # - # @return [Symbol, Lithic::Models::OwnerType] - required :owner_type, enum: -> { Lithic::OwnerType } + variant :UNVERIFIED, -> { Lithic::ExternalBankAccountCreateParams::Body::Unverified } - # @!attribute routing_number - # Routing Number - # - # @return [String] - required :routing_number, String + variant -> { Lithic::ExternalBankAccountCreateParams::Body::BankVerifiedCreateBankAccountAPIRequest } - # @!attribute type - # Account Type - # - # @return [Symbol, Lithic::Models::ExternalBankAccountCreateParams::Type] - required :type, enum: -> { Lithic::ExternalBankAccountCreateParams::Type } + class BankVerifiedCreateBankAccountAPIRequest < Lithic::Internal::Type::BaseModel + # @!attribute account_number + # Account Number + # + # @return [String] + required :account_number, String - # @!attribute verification_method - # Verification Method - # - # @return [Symbol, Lithic::Models::ExternalBankAccountCreateParams::VerificationMethod] - required :verification_method, enum: -> { Lithic::ExternalBankAccountCreateParams::VerificationMethod } + # @!attribute country + # The country that the bank account is located in using ISO 3166-1. We will only + # accept USA bank accounts e.g., USA + # + # @return [String] + required :country, String - # @!attribute account_token - # Indicates which Lithic account the external account is associated with. For - # external accounts that are associated with the program, account_token field - # returned will be null - # - # @return [String, nil] - optional :account_token, String + # @!attribute currency + # currency of the external account 3-character alphabetic ISO 4217 code + # + # @return [String] + required :currency, String - # @!attribute address - # Address - # - # @return [Lithic::Models::ExternalBankAccountAddress, nil] - optional :address, -> { Lithic::ExternalBankAccountAddress } + # @!attribute financial_account_token + # The financial account token of the operating account to fund the micro deposits + # + # @return [String] + required :financial_account_token, String - # @!attribute company_id - # Optional field that helps identify bank accounts in receipts - # - # @return [String, nil] - optional :company_id, String + # @!attribute owner + # Legal Name of the business or individual who owns the external account. This + # will appear in statements + # + # @return [String] + required :owner, String - # @!attribute dob - # Date of Birth of the Individual that owns the external bank account - # - # @return [Date, nil] - optional :dob, Date + # @!attribute owner_type + # Owner Type + # + # @return [Symbol, Lithic::Models::OwnerType] + required :owner_type, enum: -> { Lithic::OwnerType } - # @!attribute doing_business_as - # Doing Business As - # - # @return [String, nil] - optional :doing_business_as, String + # @!attribute routing_number + # Routing Number + # + # @return [String] + required :routing_number, String - # @!attribute name - # The nickname for this External Bank Account - # - # @return [String, nil] - optional :name, String + # @!attribute type + # Account Type + # + # @return [Symbol, Lithic::Models::ExternalBankAccountCreateParams::Body::BankVerifiedCreateBankAccountAPIRequest::Type] + required :type, + enum: -> { Lithic::ExternalBankAccountCreateParams::Body::BankVerifiedCreateBankAccountAPIRequest::Type } - # @!attribute user_defined_id - # User Defined ID - # - # @return [String, nil] - optional :user_defined_id, String + # @!attribute verification_method + # Verification Method + # + # @return [Symbol, Lithic::Models::VerificationMethod] + required :verification_method, enum: -> { Lithic::VerificationMethod } - # @!attribute verification_enforcement - # - # @return [Boolean, nil] - optional :verification_enforcement, Lithic::Internal::Type::Boolean + # @!attribute account_token + # Indicates which Lithic account the external account is associated with. For + # external accounts that are associated with the program, account_token field + # returned will be null + # + # @return [String, nil] + optional :account_token, String - # @!method initialize(account_number:, country:, currency:, financial_account_token:, owner:, owner_type:, routing_number:, type:, verification_method:, account_token: nil, address: nil, company_id: nil, dob: nil, doing_business_as: nil, name: nil, user_defined_id: nil, verification_enforcement: nil, request_options: {}) - # Some parameter documentations has been truncated, see - # {Lithic::Models::ExternalBankAccountCreateParams} for more details. - # - # @param account_number [String] Account Number - # - # @param country [String] The country that the bank account is located in using ISO 3166-1. We will only a - # - # @param currency [String] currency of the external account 3-character alphabetic ISO 4217 code - # - # @param financial_account_token [String] The financial account token of the operating account to fund the micro deposits - # - # @param owner [String] Legal Name of the business or individual who owns the external account. This wil - # - # @param owner_type [Symbol, Lithic::Models::OwnerType] Owner Type - # - # @param routing_number [String] Routing Number - # - # @param type [Symbol, Lithic::Models::ExternalBankAccountCreateParams::Type] Account Type - # - # @param verification_method [Symbol, Lithic::Models::ExternalBankAccountCreateParams::VerificationMethod] Verification Method - # - # @param account_token [String] Indicates which Lithic account the external account is associated with. For exte - # - # @param address [Lithic::Models::ExternalBankAccountAddress] Address - # - # @param company_id [String] Optional field that helps identify bank accounts in receipts - # - # @param dob [Date] Date of Birth of the Individual that owns the external bank account - # - # @param doing_business_as [String] Doing Business As - # - # @param name [String] The nickname for this External Bank Account - # - # @param user_defined_id [String] User Defined ID - # - # @param verification_enforcement [Boolean] - # - # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] + # @!attribute address + # Address + # + # @return [Lithic::Models::ExternalBankAccountAddress, nil] + optional :address, -> { Lithic::ExternalBankAccountAddress } - # Account Type - module Type - extend Lithic::Internal::Type::Enum + # @!attribute company_id + # Optional field that helps identify bank accounts in receipts + # + # @return [String, nil] + optional :company_id, String - CHECKING = :CHECKING - SAVINGS = :SAVINGS + # @!attribute dob + # Date of Birth of the Individual that owns the external bank account + # + # @return [Date, nil] + optional :dob, Date - # @!method self.values - # @return [Array] - end + # @!attribute doing_business_as + # Doing Business As + # + # @return [String, nil] + optional :doing_business_as, String + + # @!attribute name + # The nickname for this External Bank Account + # + # @return [String, nil] + optional :name, String + + # @!attribute user_defined_id + # User Defined ID + # + # @return [String, nil] + optional :user_defined_id, String + + # @!attribute verification_enforcement + # + # @return [Boolean, nil] + optional :verification_enforcement, Lithic::Internal::Type::Boolean + + # @!method initialize(account_number:, country:, currency:, financial_account_token:, owner:, owner_type:, routing_number:, type:, verification_method:, account_token: nil, address: nil, company_id: nil, dob: nil, doing_business_as: nil, name: nil, user_defined_id: nil, verification_enforcement: nil) + # Some parameter documentations has been truncated, see + # {Lithic::Models::ExternalBankAccountCreateParams::Body::BankVerifiedCreateBankAccountAPIRequest} + # for more details. + # + # @param account_number [String] Account Number + # + # @param country [String] The country that the bank account is located in using ISO 3166-1. We will only a + # + # @param currency [String] currency of the external account 3-character alphabetic ISO 4217 code + # + # @param financial_account_token [String] The financial account token of the operating account to fund the micro deposits + # + # @param owner [String] Legal Name of the business or individual who owns the external account. This wil + # + # @param owner_type [Symbol, Lithic::Models::OwnerType] Owner Type + # + # @param routing_number [String] Routing Number + # + # @param type [Symbol, Lithic::Models::ExternalBankAccountCreateParams::Body::BankVerifiedCreateBankAccountAPIRequest::Type] Account Type + # + # @param verification_method [Symbol, Lithic::Models::VerificationMethod] Verification Method + # + # @param account_token [String] Indicates which Lithic account the external account is associated with. For exte + # + # @param address [Lithic::Models::ExternalBankAccountAddress] Address + # + # @param company_id [String] Optional field that helps identify bank accounts in receipts + # + # @param dob [Date] Date of Birth of the Individual that owns the external bank account + # + # @param doing_business_as [String] Doing Business As + # + # @param name [String] The nickname for this External Bank Account + # + # @param user_defined_id [String] User Defined ID + # + # @param verification_enforcement [Boolean] + + # Account Type + # + # @see Lithic::Models::ExternalBankAccountCreateParams::Body::BankVerifiedCreateBankAccountAPIRequest#type + module Type + extend Lithic::Internal::Type::Enum + + CHECKING = :CHECKING + SAVINGS = :SAVINGS + + # @!method self.values + # @return [Array] + end + end + + class ExternallyVerified < Lithic::Internal::Type::BaseModel + # @!attribute account_number + # Account Number + # + # @return [String] + required :account_number, String + + # @!attribute country + # The country that the bank account is located in using ISO 3166-1. We will only + # accept USA bank accounts e.g., USA + # + # @return [String] + required :country, String + + # @!attribute currency + # currency of the external account 3-character alphabetic ISO 4217 code + # + # @return [String] + required :currency, String + + # @!attribute owner + # Legal Name of the business or individual who owns the external account. This + # will appear in statements + # + # @return [String] + required :owner, String + + # @!attribute owner_type + # Owner Type + # + # @return [Symbol, Lithic::Models::OwnerType] + required :owner_type, enum: -> { Lithic::OwnerType } + + # @!attribute routing_number + # Routing Number + # + # @return [String] + required :routing_number, String + + # @!attribute type + # Account Type + # + # @return [Symbol, Lithic::Models::ExternalBankAccountCreateParams::Body::ExternallyVerified::Type] + required :type, enum: -> { Lithic::ExternalBankAccountCreateParams::Body::ExternallyVerified::Type } + + # @!attribute verification_method + # Verification Method + # + # @return [Symbol, :EXTERNALLY_VERIFIED] + required :verification_method, const: :EXTERNALLY_VERIFIED + + # @!attribute account_token + # Indicates which Lithic account the external account is associated with. For + # external accounts that are associated with the program, account_token field + # returned will be null + # + # @return [String, nil] + optional :account_token, String + + # @!attribute address + # Address + # + # @return [Lithic::Models::ExternalBankAccountAddress, nil] + optional :address, -> { Lithic::ExternalBankAccountAddress } + + # @!attribute company_id + # Optional field that helps identify bank accounts in receipts + # + # @return [String, nil] + optional :company_id, String + + # @!attribute dob + # Date of Birth of the Individual that owns the external bank account + # + # @return [Date, nil] + optional :dob, Date + + # @!attribute doing_business_as + # Doing Business As + # + # @return [String, nil] + optional :doing_business_as, String + + # @!attribute name + # The nickname for this External Bank Account + # + # @return [String, nil] + optional :name, String + + # @!attribute user_defined_id + # User Defined ID + # + # @return [String, nil] + optional :user_defined_id, String + + # @!method initialize(account_number:, country:, currency:, owner:, owner_type:, routing_number:, type:, account_token: nil, address: nil, company_id: nil, dob: nil, doing_business_as: nil, name: nil, user_defined_id: nil, verification_method: :EXTERNALLY_VERIFIED) + # Some parameter documentations has been truncated, see + # {Lithic::Models::ExternalBankAccountCreateParams::Body::ExternallyVerified} for + # more details. + # + # @param account_number [String] Account Number + # + # @param country [String] The country that the bank account is located in using ISO 3166-1. We will only a + # + # @param currency [String] currency of the external account 3-character alphabetic ISO 4217 code + # + # @param owner [String] Legal Name of the business or individual who owns the external account. This wil + # + # @param owner_type [Symbol, Lithic::Models::OwnerType] Owner Type + # + # @param routing_number [String] Routing Number + # + # @param type [Symbol, Lithic::Models::ExternalBankAccountCreateParams::Body::ExternallyVerified::Type] Account Type + # + # @param account_token [String] Indicates which Lithic account the external account is associated with. For exte + # + # @param address [Lithic::Models::ExternalBankAccountAddress] Address + # + # @param company_id [String] Optional field that helps identify bank accounts in receipts + # + # @param dob [Date] Date of Birth of the Individual that owns the external bank account + # + # @param doing_business_as [String] Doing Business As + # + # @param name [String] The nickname for this External Bank Account + # + # @param user_defined_id [String] User Defined ID + # + # @param verification_method [Symbol, :EXTERNALLY_VERIFIED] Verification Method + + # Account Type + # + # @see Lithic::Models::ExternalBankAccountCreateParams::Body::ExternallyVerified#type + module Type + extend Lithic::Internal::Type::Enum + + CHECKING = :CHECKING + SAVINGS = :SAVINGS + + # @!method self.values + # @return [Array] + end + end + + class Unverified < Lithic::Internal::Type::BaseModel + # @!attribute account_number + # Account Number + # + # @return [String] + required :account_number, String + + # @!attribute country + # The country that the bank account is located in using ISO 3166-1. We will only + # accept USA bank accounts e.g., USA + # + # @return [String] + required :country, String + + # @!attribute currency + # currency of the external account 3-character alphabetic ISO 4217 code + # + # @return [String] + required :currency, String + + # @!attribute owner + # Legal Name of the business or individual who owns the external account. This + # will appear in statements + # + # @return [String] + required :owner, String + + # @!attribute owner_type + # Owner Type + # + # @return [Symbol, Lithic::Models::OwnerType] + required :owner_type, enum: -> { Lithic::OwnerType } + + # @!attribute routing_number + # Routing Number + # + # @return [String] + required :routing_number, String + + # @!attribute type + # Account Type + # + # @return [Symbol, Lithic::Models::ExternalBankAccountCreateParams::Body::Unverified::Type] + required :type, enum: -> { Lithic::ExternalBankAccountCreateParams::Body::Unverified::Type } + + # @!attribute verification_method + # Verification Method + # + # @return [Symbol, :UNVERIFIED] + required :verification_method, const: :UNVERIFIED + + # @!attribute account_token + # Indicates which Lithic account the external account is associated with. For + # external accounts that are associated with the program, account_token field + # returned will be null + # + # @return [String, nil] + optional :account_token, String + + # @!attribute address + # Address + # + # @return [Lithic::Models::ExternalBankAccountAddress, nil] + optional :address, -> { Lithic::ExternalBankAccountAddress } + + # @!attribute company_id + # Optional field that helps identify bank accounts in receipts + # + # @return [String, nil] + optional :company_id, String + + # @!attribute dob + # Date of Birth of the Individual that owns the external bank account + # + # @return [Date, nil] + optional :dob, Date + + # @!attribute doing_business_as + # Doing Business As + # + # @return [String, nil] + optional :doing_business_as, String + + # @!attribute name + # The nickname for this External Bank Account + # + # @return [String, nil] + optional :name, String + + # @!attribute user_defined_id + # User Defined ID + # + # @return [String, nil] + optional :user_defined_id, String + + # @!method initialize(account_number:, country:, currency:, owner:, owner_type:, routing_number:, type:, account_token: nil, address: nil, company_id: nil, dob: nil, doing_business_as: nil, name: nil, user_defined_id: nil, verification_method: :UNVERIFIED) + # Some parameter documentations has been truncated, see + # {Lithic::Models::ExternalBankAccountCreateParams::Body::Unverified} for more + # details. + # + # @param account_number [String] Account Number + # + # @param country [String] The country that the bank account is located in using ISO 3166-1. We will only a + # + # @param currency [String] currency of the external account 3-character alphabetic ISO 4217 code + # + # @param owner [String] Legal Name of the business or individual who owns the external account. This wil + # + # @param owner_type [Symbol, Lithic::Models::OwnerType] Owner Type + # + # @param routing_number [String] Routing Number + # + # @param type [Symbol, Lithic::Models::ExternalBankAccountCreateParams::Body::Unverified::Type] Account Type + # + # @param account_token [String] Indicates which Lithic account the external account is associated with. For exte + # + # @param address [Lithic::Models::ExternalBankAccountAddress] Address + # + # @param company_id [String] Optional field that helps identify bank accounts in receipts + # + # @param dob [Date] Date of Birth of the Individual that owns the external bank account + # + # @param doing_business_as [String] Doing Business As + # + # @param name [String] The nickname for this External Bank Account + # + # @param user_defined_id [String] User Defined ID + # + # @param verification_method [Symbol, :UNVERIFIED] Verification Method + + # Account Type + # + # @see Lithic::Models::ExternalBankAccountCreateParams::Body::Unverified#type + module Type + extend Lithic::Internal::Type::Enum - # Verification Method - module VerificationMethod - extend Lithic::Internal::Type::Enum + CHECKING = :CHECKING + SAVINGS = :SAVINGS - UNVERIFIED = :UNVERIFIED + # @!method self.values + # @return [Array] + end + end - # @!method self.values - # @return [Array] + # @!method self.variants + # @return [Array(Lithic::Models::ExternalBankAccountCreateParams::Body::ExternallyVerified, Lithic::Models::ExternalBankAccountCreateParams::Body::Unverified, Lithic::Models::ExternalBankAccountCreateParams::Body::BankVerifiedCreateBankAccountAPIRequest)] end end end diff --git a/lib/lithic/models/external_bank_account_retrieve_params.rb b/lib/lithic/models/external_bank_account_retrieve_params.rb index 9abacb4e..af342144 100644 --- a/lib/lithic/models/external_bank_account_retrieve_params.rb +++ b/lib/lithic/models/external_bank_account_retrieve_params.rb @@ -7,7 +7,13 @@ class ExternalBankAccountRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - # @!method initialize(request_options: {}) + # @!attribute external_bank_account_token + # + # @return [String] + required :external_bank_account_token, String + + # @!method initialize(external_bank_account_token:, request_options: {}) + # @param external_bank_account_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/external_bank_account_retry_micro_deposits_params.rb b/lib/lithic/models/external_bank_account_retry_micro_deposits_params.rb index 887e105e..a8a6d3f0 100644 --- a/lib/lithic/models/external_bank_account_retry_micro_deposits_params.rb +++ b/lib/lithic/models/external_bank_account_retry_micro_deposits_params.rb @@ -7,12 +7,18 @@ class ExternalBankAccountRetryMicroDepositsParams < Lithic::Internal::Type::Base extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + # @!attribute external_bank_account_token + # + # @return [String] + required :external_bank_account_token, String + # @!attribute financial_account_token # # @return [String, nil] optional :financial_account_token, String - # @!method initialize(financial_account_token: nil, request_options: {}) + # @!method initialize(external_bank_account_token:, financial_account_token: nil, request_options: {}) + # @param external_bank_account_token [String] # @param financial_account_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end diff --git a/lib/lithic/models/external_bank_account_retry_prenote_params.rb b/lib/lithic/models/external_bank_account_retry_prenote_params.rb index b8b81a4b..da10ec77 100644 --- a/lib/lithic/models/external_bank_account_retry_prenote_params.rb +++ b/lib/lithic/models/external_bank_account_retry_prenote_params.rb @@ -7,12 +7,18 @@ class ExternalBankAccountRetryPrenoteParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + # @!attribute external_bank_account_token + # + # @return [String] + required :external_bank_account_token, String + # @!attribute financial_account_token # # @return [String, nil] optional :financial_account_token, String - # @!method initialize(financial_account_token: nil, request_options: {}) + # @!method initialize(external_bank_account_token:, financial_account_token: nil, request_options: {}) + # @param external_bank_account_token [String] # @param financial_account_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end diff --git a/lib/lithic/models/external_bank_account_unpause_params.rb b/lib/lithic/models/external_bank_account_unpause_params.rb index a3e3c3cf..aafab888 100644 --- a/lib/lithic/models/external_bank_account_unpause_params.rb +++ b/lib/lithic/models/external_bank_account_unpause_params.rb @@ -7,7 +7,13 @@ class ExternalBankAccountUnpauseParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - # @!method initialize(request_options: {}) + # @!attribute external_bank_account_token + # + # @return [String] + required :external_bank_account_token, String + + # @!method initialize(external_bank_account_token:, request_options: {}) + # @param external_bank_account_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/external_bank_account_update_params.rb b/lib/lithic/models/external_bank_account_update_params.rb index 461f594f..8d6e1ec0 100644 --- a/lib/lithic/models/external_bank_account_update_params.rb +++ b/lib/lithic/models/external_bank_account_update_params.rb @@ -7,6 +7,11 @@ class ExternalBankAccountUpdateParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + # @!attribute external_bank_account_token + # + # @return [String] + required :external_bank_account_token, String + # @!attribute address # Address # @@ -61,10 +66,12 @@ class ExternalBankAccountUpdateParams < Lithic::Internal::Type::BaseModel # @return [String, nil] optional :user_defined_id, String - # @!method initialize(address: nil, company_id: nil, dob: nil, doing_business_as: nil, name: nil, owner: nil, owner_type: nil, type: nil, user_defined_id: nil, request_options: {}) + # @!method initialize(external_bank_account_token:, address: nil, company_id: nil, dob: nil, doing_business_as: nil, name: nil, owner: nil, owner_type: nil, type: nil, user_defined_id: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Lithic::Models::ExternalBankAccountUpdateParams} for more details. # + # @param external_bank_account_token [String] + # # @param address [Lithic::Models::ExternalBankAccountAddress] Address # # @param company_id [String] Optional field that helps identify bank accounts in receipts diff --git a/lib/lithic/models/external_bank_accounts/micro_deposit_create_params.rb b/lib/lithic/models/external_bank_accounts/micro_deposit_create_params.rb index a7f2aea4..ec35c9ce 100644 --- a/lib/lithic/models/external_bank_accounts/micro_deposit_create_params.rb +++ b/lib/lithic/models/external_bank_accounts/micro_deposit_create_params.rb @@ -8,12 +8,18 @@ class MicroDepositCreateParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + # @!attribute external_bank_account_token + # + # @return [String] + required :external_bank_account_token, String + # @!attribute micro_deposits # # @return [Array] required :micro_deposits, Lithic::Internal::Type::ArrayOf[Integer] - # @!method initialize(micro_deposits:, request_options: {}) + # @!method initialize(external_bank_account_token:, micro_deposits:, request_options: {}) + # @param external_bank_account_token [String] # @param micro_deposits [Array] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end diff --git a/lib/lithic/models/external_payment_cancel_params.rb b/lib/lithic/models/external_payment_cancel_params.rb index fd40d367..307cdf3d 100644 --- a/lib/lithic/models/external_payment_cancel_params.rb +++ b/lib/lithic/models/external_payment_cancel_params.rb @@ -7,6 +7,11 @@ class ExternalPaymentCancelParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + # @!attribute external_payment_token + # + # @return [String] + required :external_payment_token, String + # @!attribute effective_date # # @return [Date] @@ -17,7 +22,8 @@ class ExternalPaymentCancelParams < Lithic::Internal::Type::BaseModel # @return [String, nil] optional :memo, String - # @!method initialize(effective_date:, memo: nil, request_options: {}) + # @!method initialize(external_payment_token:, effective_date:, memo: nil, request_options: {}) + # @param external_payment_token [String] # @param effective_date [Date] # @param memo [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] diff --git a/lib/lithic/models/external_payment_release_params.rb b/lib/lithic/models/external_payment_release_params.rb index a26ef554..ee0abc2e 100644 --- a/lib/lithic/models/external_payment_release_params.rb +++ b/lib/lithic/models/external_payment_release_params.rb @@ -7,6 +7,11 @@ class ExternalPaymentReleaseParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + # @!attribute external_payment_token + # + # @return [String] + required :external_payment_token, String + # @!attribute effective_date # # @return [Date] @@ -17,7 +22,8 @@ class ExternalPaymentReleaseParams < Lithic::Internal::Type::BaseModel # @return [String, nil] optional :memo, String - # @!method initialize(effective_date:, memo: nil, request_options: {}) + # @!method initialize(external_payment_token:, effective_date:, memo: nil, request_options: {}) + # @param external_payment_token [String] # @param effective_date [Date] # @param memo [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] diff --git a/lib/lithic/models/external_payment_retrieve_params.rb b/lib/lithic/models/external_payment_retrieve_params.rb index 36bfe170..82a4aaa7 100644 --- a/lib/lithic/models/external_payment_retrieve_params.rb +++ b/lib/lithic/models/external_payment_retrieve_params.rb @@ -7,7 +7,13 @@ class ExternalPaymentRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - # @!method initialize(request_options: {}) + # @!attribute external_payment_token + # + # @return [String] + required :external_payment_token, String + + # @!method initialize(external_payment_token:, request_options: {}) + # @param external_payment_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/external_payment_reverse_params.rb b/lib/lithic/models/external_payment_reverse_params.rb index f9835c35..ece047bc 100644 --- a/lib/lithic/models/external_payment_reverse_params.rb +++ b/lib/lithic/models/external_payment_reverse_params.rb @@ -7,6 +7,11 @@ class ExternalPaymentReverseParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + # @!attribute external_payment_token + # + # @return [String] + required :external_payment_token, String + # @!attribute effective_date # # @return [Date] @@ -17,7 +22,8 @@ class ExternalPaymentReverseParams < Lithic::Internal::Type::BaseModel # @return [String, nil] optional :memo, String - # @!method initialize(effective_date:, memo: nil, request_options: {}) + # @!method initialize(external_payment_token:, effective_date:, memo: nil, request_options: {}) + # @param external_payment_token [String] # @param effective_date [Date] # @param memo [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] diff --git a/lib/lithic/models/external_payment_settle_params.rb b/lib/lithic/models/external_payment_settle_params.rb index 896ca37f..a691812a 100644 --- a/lib/lithic/models/external_payment_settle_params.rb +++ b/lib/lithic/models/external_payment_settle_params.rb @@ -7,6 +7,11 @@ class ExternalPaymentSettleParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + # @!attribute external_payment_token + # + # @return [String] + required :external_payment_token, String + # @!attribute effective_date # # @return [Date] @@ -22,7 +27,8 @@ class ExternalPaymentSettleParams < Lithic::Internal::Type::BaseModel # @return [Symbol, Lithic::Models::ExternalPaymentSettleParams::ProgressTo, nil] optional :progress_to, enum: -> { Lithic::ExternalPaymentSettleParams::ProgressTo } - # @!method initialize(effective_date:, memo: nil, progress_to: nil, request_options: {}) + # @!method initialize(external_payment_token:, effective_date:, memo: nil, progress_to: nil, request_options: {}) + # @param external_payment_token [String] # @param effective_date [Date] # @param memo [String] # @param progress_to [Symbol, Lithic::Models::ExternalPaymentSettleParams::ProgressTo] diff --git a/lib/lithic/models/financial_account_register_account_number_params.rb b/lib/lithic/models/financial_account_register_account_number_params.rb index 5fe406d0..93f3c354 100644 --- a/lib/lithic/models/financial_account_register_account_number_params.rb +++ b/lib/lithic/models/financial_account_register_account_number_params.rb @@ -7,12 +7,18 @@ class FinancialAccountRegisterAccountNumberParams < Lithic::Internal::Type::Base extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + # @!attribute financial_account_token + # + # @return [String] + required :financial_account_token, String + # @!attribute account_number # # @return [String] required :account_number, String - # @!method initialize(account_number:, request_options: {}) + # @!method initialize(financial_account_token:, account_number:, request_options: {}) + # @param financial_account_token [String] # @param account_number [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end diff --git a/lib/lithic/models/financial_account_retrieve_params.rb b/lib/lithic/models/financial_account_retrieve_params.rb index 43519616..99234619 100644 --- a/lib/lithic/models/financial_account_retrieve_params.rb +++ b/lib/lithic/models/financial_account_retrieve_params.rb @@ -7,7 +7,13 @@ class FinancialAccountRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - # @!method initialize(request_options: {}) + # @!attribute financial_account_token + # + # @return [String] + required :financial_account_token, String + + # @!method initialize(financial_account_token:, request_options: {}) + # @param financial_account_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/financial_account_update_params.rb b/lib/lithic/models/financial_account_update_params.rb index 67f7d988..212ea937 100644 --- a/lib/lithic/models/financial_account_update_params.rb +++ b/lib/lithic/models/financial_account_update_params.rb @@ -7,12 +7,18 @@ class FinancialAccountUpdateParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + # @!attribute financial_account_token + # + # @return [String] + required :financial_account_token, String + # @!attribute nickname # # @return [String, nil] optional :nickname, String - # @!method initialize(nickname: nil, request_options: {}) + # @!method initialize(financial_account_token:, nickname: nil, request_options: {}) + # @param financial_account_token [String] # @param nickname [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end diff --git a/lib/lithic/models/financial_account_update_status_params.rb b/lib/lithic/models/financial_account_update_status_params.rb index 382850ca..9d9c5070 100644 --- a/lib/lithic/models/financial_account_update_status_params.rb +++ b/lib/lithic/models/financial_account_update_status_params.rb @@ -7,6 +7,11 @@ class FinancialAccountUpdateStatusParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + # @!attribute financial_account_token + # + # @return [String] + required :financial_account_token, String + # @!attribute status # Status of the financial account # @@ -25,7 +30,9 @@ class FinancialAccountUpdateStatusParams < Lithic::Internal::Type::BaseModel # @return [String, nil] optional :user_defined_status, String - # @!method initialize(status:, substatus:, user_defined_status: nil, request_options: {}) + # @!method initialize(financial_account_token:, status:, substatus:, user_defined_status: nil, request_options: {}) + # @param financial_account_token [String] + # # @param status [Symbol, Lithic::Models::FinancialAccountUpdateStatusParams::Status] Status of the financial account # # @param substatus [Symbol, Lithic::Models::FinancialAccountUpdateStatusParams::Substatus, nil] Substatus for the financial account diff --git a/lib/lithic/models/financial_accounts/balance_list_params.rb b/lib/lithic/models/financial_accounts/balance_list_params.rb index 5326db37..bb19db70 100644 --- a/lib/lithic/models/financial_accounts/balance_list_params.rb +++ b/lib/lithic/models/financial_accounts/balance_list_params.rb @@ -8,6 +8,11 @@ class BalanceListParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + # @!attribute financial_account_token + # + # @return [String] + required :financial_account_token, String + # @!attribute balance_date # UTC date of the balance to retrieve. Defaults to latest available balance # @@ -22,10 +27,12 @@ class BalanceListParams < Lithic::Internal::Type::BaseModel # @return [String, nil] optional :last_transaction_event_token, String - # @!method initialize(balance_date: nil, last_transaction_event_token: nil, request_options: {}) + # @!method initialize(financial_account_token:, balance_date: nil, last_transaction_event_token: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Lithic::Models::FinancialAccounts::BalanceListParams} for more details. # + # @param financial_account_token [String] + # # @param balance_date [Time] UTC date of the balance to retrieve. Defaults to latest available balance # # @param last_transaction_event_token [String] Balance after a given financial event occured. diff --git a/lib/lithic/models/financial_accounts/credit_configuration_retrieve_params.rb b/lib/lithic/models/financial_accounts/credit_configuration_retrieve_params.rb index fe36b165..32a7020c 100644 --- a/lib/lithic/models/financial_accounts/credit_configuration_retrieve_params.rb +++ b/lib/lithic/models/financial_accounts/credit_configuration_retrieve_params.rb @@ -8,7 +8,13 @@ class CreditConfigurationRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - # @!method initialize(request_options: {}) + # @!attribute financial_account_token + # + # @return [String] + required :financial_account_token, String + + # @!method initialize(financial_account_token:, request_options: {}) + # @param financial_account_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/financial_accounts/credit_configuration_update_params.rb b/lib/lithic/models/financial_accounts/credit_configuration_update_params.rb index 96d0efdb..af8563b6 100644 --- a/lib/lithic/models/financial_accounts/credit_configuration_update_params.rb +++ b/lib/lithic/models/financial_accounts/credit_configuration_update_params.rb @@ -8,6 +8,11 @@ class CreditConfigurationUpdateParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + # @!attribute financial_account_token + # + # @return [String] + required :financial_account_token, String + # @!attribute auto_collection_configuration # # @return [Lithic::Models::FinancialAccounts::CreditConfigurationUpdateParams::AutoCollectionConfiguration, nil] @@ -36,7 +41,9 @@ class CreditConfigurationUpdateParams < Lithic::Internal::Type::BaseModel # @return [String, nil] optional :tier, String - # @!method initialize(auto_collection_configuration: nil, credit_limit: nil, credit_product_token: nil, external_bank_account_token: nil, tier: nil, request_options: {}) + # @!method initialize(financial_account_token:, auto_collection_configuration: nil, credit_limit: nil, credit_product_token: nil, external_bank_account_token: nil, tier: nil, request_options: {}) + # @param financial_account_token [String] + # # @param auto_collection_configuration [Lithic::Models::FinancialAccounts::CreditConfigurationUpdateParams::AutoCollectionConfiguration] # # @param credit_limit [Integer] diff --git a/lib/lithic/models/financial_accounts/financial_transaction_list_params.rb b/lib/lithic/models/financial_accounts/financial_transaction_list_params.rb index 07977200..5b5da707 100644 --- a/lib/lithic/models/financial_accounts/financial_transaction_list_params.rb +++ b/lib/lithic/models/financial_accounts/financial_transaction_list_params.rb @@ -8,6 +8,11 @@ class FinancialTransactionListParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + # @!attribute financial_account_token + # + # @return [String] + required :financial_account_token, String + # @!attribute begin_ # Date string in RFC 3339 format. Only entries created after the specified time # will be included. UTC time zone. @@ -54,11 +59,13 @@ class FinancialTransactionListParams < Lithic::Internal::Type::BaseModel # @return [Symbol, Lithic::Models::FinancialAccounts::FinancialTransactionListParams::Status, nil] optional :status, enum: -> { Lithic::FinancialAccounts::FinancialTransactionListParams::Status } - # @!method initialize(begin_: nil, category: nil, end_: nil, ending_before: nil, result: nil, starting_after: nil, status: nil, request_options: {}) + # @!method initialize(financial_account_token:, begin_: nil, category: nil, end_: nil, ending_before: nil, result: nil, starting_after: nil, status: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Lithic::Models::FinancialAccounts::FinancialTransactionListParams} for more # details. # + # @param financial_account_token [String] + # # @param begin_ [Time] Date string in RFC 3339 format. Only entries created after the specified time wi # # @param category [Symbol, Lithic::Models::FinancialAccounts::FinancialTransactionListParams::Category] Financial Transaction category to be returned. diff --git a/lib/lithic/models/financial_accounts/financial_transaction_retrieve_params.rb b/lib/lithic/models/financial_accounts/financial_transaction_retrieve_params.rb index 250e490f..22565387 100644 --- a/lib/lithic/models/financial_accounts/financial_transaction_retrieve_params.rb +++ b/lib/lithic/models/financial_accounts/financial_transaction_retrieve_params.rb @@ -13,8 +13,14 @@ class FinancialTransactionRetrieveParams < Lithic::Internal::Type::BaseModel # @return [String] required :financial_account_token, String - # @!method initialize(financial_account_token:, request_options: {}) + # @!attribute financial_transaction_token + # + # @return [String] + required :financial_transaction_token, String + + # @!method initialize(financial_account_token:, financial_transaction_token:, request_options: {}) # @param financial_account_token [String] + # @param financial_transaction_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/financial_accounts/interest_tier_schedule_create_params.rb b/lib/lithic/models/financial_accounts/interest_tier_schedule_create_params.rb index 84c2b032..fd3c478d 100644 --- a/lib/lithic/models/financial_accounts/interest_tier_schedule_create_params.rb +++ b/lib/lithic/models/financial_accounts/interest_tier_schedule_create_params.rb @@ -8,7 +8,13 @@ class InterestTierScheduleCreateParams < Lithic::Models::FinancialAccounts::Fina extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - # @!method initialize(request_options: {}) + # @!attribute financial_account_token + # + # @return [String] + required :financial_account_token, String + + # @!method initialize(financial_account_token:, request_options: {}) + # @param financial_account_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/financial_accounts/interest_tier_schedule_delete_params.rb b/lib/lithic/models/financial_accounts/interest_tier_schedule_delete_params.rb index 8d995dc1..1e4cd303 100644 --- a/lib/lithic/models/financial_accounts/interest_tier_schedule_delete_params.rb +++ b/lib/lithic/models/financial_accounts/interest_tier_schedule_delete_params.rb @@ -13,8 +13,14 @@ class InterestTierScheduleDeleteParams < Lithic::Internal::Type::BaseModel # @return [String] required :financial_account_token, String - # @!method initialize(financial_account_token:, request_options: {}) + # @!attribute effective_date + # + # @return [Date] + required :effective_date, Date + + # @!method initialize(financial_account_token:, effective_date:, request_options: {}) # @param financial_account_token [String] + # @param effective_date [Date] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/financial_accounts/interest_tier_schedule_list_params.rb b/lib/lithic/models/financial_accounts/interest_tier_schedule_list_params.rb index c0ff2cd2..895c7908 100644 --- a/lib/lithic/models/financial_accounts/interest_tier_schedule_list_params.rb +++ b/lib/lithic/models/financial_accounts/interest_tier_schedule_list_params.rb @@ -8,6 +8,11 @@ class InterestTierScheduleListParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + # @!attribute financial_account_token + # + # @return [String] + required :financial_account_token, String + # @!attribute after_date # Return schedules with effective_date >= after_date (ISO format YYYY-MM-DD) # @@ -26,7 +31,9 @@ class InterestTierScheduleListParams < Lithic::Internal::Type::BaseModel # @return [Date, nil] optional :for_date, Date - # @!method initialize(after_date: nil, before_date: nil, for_date: nil, request_options: {}) + # @!method initialize(financial_account_token:, after_date: nil, before_date: nil, for_date: nil, request_options: {}) + # @param financial_account_token [String] + # # @param after_date [Date] Return schedules with effective_date >= after_date (ISO format YYYY-MM-DD) # # @param before_date [Date] Return schedules with effective_date <= before_date (ISO format YYYY-MM-DD) diff --git a/lib/lithic/models/financial_accounts/interest_tier_schedule_retrieve_params.rb b/lib/lithic/models/financial_accounts/interest_tier_schedule_retrieve_params.rb index 85395f11..df0c2197 100644 --- a/lib/lithic/models/financial_accounts/interest_tier_schedule_retrieve_params.rb +++ b/lib/lithic/models/financial_accounts/interest_tier_schedule_retrieve_params.rb @@ -13,8 +13,14 @@ class InterestTierScheduleRetrieveParams < Lithic::Internal::Type::BaseModel # @return [String] required :financial_account_token, String - # @!method initialize(financial_account_token:, request_options: {}) + # @!attribute effective_date + # + # @return [Date] + required :effective_date, Date + + # @!method initialize(financial_account_token:, effective_date:, request_options: {}) # @param financial_account_token [String] + # @param effective_date [Date] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/financial_accounts/interest_tier_schedule_update_params.rb b/lib/lithic/models/financial_accounts/interest_tier_schedule_update_params.rb index 3f23a21f..1e93739d 100644 --- a/lib/lithic/models/financial_accounts/interest_tier_schedule_update_params.rb +++ b/lib/lithic/models/financial_accounts/interest_tier_schedule_update_params.rb @@ -13,6 +13,11 @@ class InterestTierScheduleUpdateParams < Lithic::Internal::Type::BaseModel # @return [String] required :financial_account_token, String + # @!attribute effective_date + # + # @return [Date] + required :effective_date, Date + # @!attribute tier_name # Name of a tier contained in the credit product. Mutually exclusive with # tier_rates @@ -26,13 +31,15 @@ class InterestTierScheduleUpdateParams < Lithic::Internal::Type::BaseModel # @return [Object, nil] optional :tier_rates, Lithic::Internal::Type::Unknown - # @!method initialize(financial_account_token:, tier_name: nil, tier_rates: nil, request_options: {}) + # @!method initialize(financial_account_token:, effective_date:, tier_name: nil, tier_rates: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Lithic::Models::FinancialAccounts::InterestTierScheduleUpdateParams} for more # details. # # @param financial_account_token [String] # + # @param effective_date [Date] + # # @param tier_name [String] Name of a tier contained in the credit product. Mutually exclusive with tier_rat # # @param tier_rates [Object] Custom rates per category. Mutually exclusive with tier_name diff --git a/lib/lithic/models/financial_accounts/loan_tape_configuration_retrieve_params.rb b/lib/lithic/models/financial_accounts/loan_tape_configuration_retrieve_params.rb index bb07a88f..43de4ad4 100644 --- a/lib/lithic/models/financial_accounts/loan_tape_configuration_retrieve_params.rb +++ b/lib/lithic/models/financial_accounts/loan_tape_configuration_retrieve_params.rb @@ -8,7 +8,15 @@ class LoanTapeConfigurationRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - # @!method initialize(request_options: {}) + # @!attribute financial_account_token + # Globally unique identifier for financial account. + # + # @return [String] + required :financial_account_token, String + + # @!method initialize(financial_account_token:, request_options: {}) + # @param financial_account_token [String] Globally unique identifier for financial account. + # # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/financial_accounts/loan_tape_list_params.rb b/lib/lithic/models/financial_accounts/loan_tape_list_params.rb index ba8f0221..00aed2c4 100644 --- a/lib/lithic/models/financial_accounts/loan_tape_list_params.rb +++ b/lib/lithic/models/financial_accounts/loan_tape_list_params.rb @@ -8,6 +8,12 @@ class LoanTapeListParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + # @!attribute financial_account_token + # Globally unique identifier for financial account. + # + # @return [String] + required :financial_account_token, String + # @!attribute begin_ # Date string in RFC 3339 format. Only entries created after the specified date # will be included. @@ -42,10 +48,12 @@ class LoanTapeListParams < Lithic::Internal::Type::BaseModel # @return [String, nil] optional :starting_after, String - # @!method initialize(begin_: nil, end_: nil, ending_before: nil, page_size: nil, starting_after: nil, request_options: {}) + # @!method initialize(financial_account_token:, begin_: nil, end_: nil, ending_before: nil, page_size: nil, starting_after: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Lithic::Models::FinancialAccounts::LoanTapeListParams} for more details. # + # @param financial_account_token [String] Globally unique identifier for financial account. + # # @param begin_ [Date] Date string in RFC 3339 format. Only entries created after the specified date wi # # @param end_ [Date] Date string in RFC 3339 format. Only entries created before the specified date w diff --git a/lib/lithic/models/financial_accounts/loan_tape_retrieve_params.rb b/lib/lithic/models/financial_accounts/loan_tape_retrieve_params.rb index 658b0664..6034a24b 100644 --- a/lib/lithic/models/financial_accounts/loan_tape_retrieve_params.rb +++ b/lib/lithic/models/financial_accounts/loan_tape_retrieve_params.rb @@ -14,9 +14,17 @@ class LoanTapeRetrieveParams < Lithic::Internal::Type::BaseModel # @return [String] required :financial_account_token, String - # @!method initialize(financial_account_token:, request_options: {}) + # @!attribute loan_tape_token + # Globally unique identifier for loan tape. + # + # @return [String] + required :loan_tape_token, String + + # @!method initialize(financial_account_token:, loan_tape_token:, request_options: {}) # @param financial_account_token [String] Globally unique identifier for financial account. # + # @param loan_tape_token [String] Globally unique identifier for loan tape. + # # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/financial_accounts/statement_list_params.rb b/lib/lithic/models/financial_accounts/statement_list_params.rb index 4bdf148b..3bbb2a96 100644 --- a/lib/lithic/models/financial_accounts/statement_list_params.rb +++ b/lib/lithic/models/financial_accounts/statement_list_params.rb @@ -8,6 +8,12 @@ class StatementListParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + # @!attribute financial_account_token + # Globally unique identifier for financial account. + # + # @return [String] + required :financial_account_token, String + # @!attribute begin_ # Date string in RFC 3339 format. Only entries created after the specified date # will be included. @@ -48,10 +54,12 @@ class StatementListParams < Lithic::Internal::Type::BaseModel # @return [String, nil] optional :starting_after, String - # @!method initialize(begin_: nil, end_: nil, ending_before: nil, include_initial_statements: nil, page_size: nil, starting_after: nil, request_options: {}) + # @!method initialize(financial_account_token:, begin_: nil, end_: nil, ending_before: nil, include_initial_statements: nil, page_size: nil, starting_after: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Lithic::Models::FinancialAccounts::StatementListParams} for more details. # + # @param financial_account_token [String] Globally unique identifier for financial account. + # # @param begin_ [Date] Date string in RFC 3339 format. Only entries created after the specified date wi # # @param end_ [Date] Date string in RFC 3339 format. Only entries created before the specified date w diff --git a/lib/lithic/models/financial_accounts/statement_retrieve_params.rb b/lib/lithic/models/financial_accounts/statement_retrieve_params.rb index fece8c24..d061ed5b 100644 --- a/lib/lithic/models/financial_accounts/statement_retrieve_params.rb +++ b/lib/lithic/models/financial_accounts/statement_retrieve_params.rb @@ -14,9 +14,17 @@ class StatementRetrieveParams < Lithic::Internal::Type::BaseModel # @return [String] required :financial_account_token, String - # @!method initialize(financial_account_token:, request_options: {}) + # @!attribute statement_token + # Globally unique identifier for statements. + # + # @return [String] + required :statement_token, String + + # @!method initialize(financial_account_token:, statement_token:, request_options: {}) # @param financial_account_token [String] Globally unique identifier for financial account. # + # @param statement_token [String] Globally unique identifier for statements. + # # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/financial_accounts/statements/line_item_list_params.rb b/lib/lithic/models/financial_accounts/statements/line_item_list_params.rb index f98ba635..a5e4e30c 100644 --- a/lib/lithic/models/financial_accounts/statements/line_item_list_params.rb +++ b/lib/lithic/models/financial_accounts/statements/line_item_list_params.rb @@ -15,6 +15,12 @@ class LineItemListParams < Lithic::Internal::Type::BaseModel # @return [String] required :financial_account_token, String + # @!attribute statement_token + # Globally unique identifier for statements. + # + # @return [String] + required :statement_token, String + # @!attribute ending_before # A cursor representing an item's token before which a page of results should end. # Used to retrieve the previous page of results before this item. @@ -35,13 +41,15 @@ class LineItemListParams < Lithic::Internal::Type::BaseModel # @return [String, nil] optional :starting_after, String - # @!method initialize(financial_account_token:, ending_before: nil, page_size: nil, starting_after: nil, request_options: {}) + # @!method initialize(financial_account_token:, statement_token:, ending_before: nil, page_size: nil, starting_after: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Lithic::Models::FinancialAccounts::Statements::LineItemListParams} for more # details. # # @param financial_account_token [String] Globally unique identifier for financial account. # + # @param statement_token [String] Globally unique identifier for statements. + # # @param ending_before [String] A cursor representing an item's token before which a page of results should end. # # @param page_size [Integer] Page size (for pagination). diff --git a/lib/lithic/models/fraud/transaction_report_params.rb b/lib/lithic/models/fraud/transaction_report_params.rb index b3544725..52a1cb91 100644 --- a/lib/lithic/models/fraud/transaction_report_params.rb +++ b/lib/lithic/models/fraud/transaction_report_params.rb @@ -8,6 +8,11 @@ class TransactionReportParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + # @!attribute transaction_token + # + # @return [String] + required :transaction_token, String + # @!attribute fraud_status # The fraud status of the transaction, string (enum) supporting the following # values: @@ -57,10 +62,12 @@ class TransactionReportParams < Lithic::Internal::Type::BaseModel # @return [Symbol, Lithic::Models::Fraud::TransactionReportParams::FraudType, nil] optional :fraud_type, enum: -> { Lithic::Fraud::TransactionReportParams::FraudType } - # @!method initialize(fraud_status:, comment: nil, fraud_type: nil, request_options: {}) + # @!method initialize(transaction_token:, fraud_status:, comment: nil, fraud_type: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Lithic::Models::Fraud::TransactionReportParams} for more details. # + # @param transaction_token [String] + # # @param fraud_status [Symbol, Lithic::Models::Fraud::TransactionReportParams::FraudStatus] The fraud status of the transaction, string (enum) supporting the following valu # # @param comment [String] Optional field providing additional information or context about why the transac diff --git a/lib/lithic/models/fraud/transaction_retrieve_params.rb b/lib/lithic/models/fraud/transaction_retrieve_params.rb index 57947bcb..2f6d6931 100644 --- a/lib/lithic/models/fraud/transaction_retrieve_params.rb +++ b/lib/lithic/models/fraud/transaction_retrieve_params.rb @@ -8,7 +8,13 @@ class TransactionRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - # @!method initialize(request_options: {}) + # @!attribute transaction_token + # + # @return [String] + required :transaction_token, String + + # @!method initialize(transaction_token:, request_options: {}) + # @param transaction_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/funding_event_retrieve_details_params.rb b/lib/lithic/models/funding_event_retrieve_details_params.rb index b999f176..ec89258b 100644 --- a/lib/lithic/models/funding_event_retrieve_details_params.rb +++ b/lib/lithic/models/funding_event_retrieve_details_params.rb @@ -7,7 +7,13 @@ class FundingEventRetrieveDetailsParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - # @!method initialize(request_options: {}) + # @!attribute funding_event_token + # + # @return [String] + required :funding_event_token, String + + # @!method initialize(funding_event_token:, request_options: {}) + # @param funding_event_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/funding_event_retrieve_params.rb b/lib/lithic/models/funding_event_retrieve_params.rb index 7b104b9b..012465f4 100644 --- a/lib/lithic/models/funding_event_retrieve_params.rb +++ b/lib/lithic/models/funding_event_retrieve_params.rb @@ -7,7 +7,13 @@ class FundingEventRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - # @!method initialize(request_options: {}) + # @!attribute funding_event_token + # + # @return [String] + required :funding_event_token, String + + # @!method initialize(funding_event_token:, request_options: {}) + # @param funding_event_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/management_operation_retrieve_params.rb b/lib/lithic/models/management_operation_retrieve_params.rb index 573be726..46f348f4 100644 --- a/lib/lithic/models/management_operation_retrieve_params.rb +++ b/lib/lithic/models/management_operation_retrieve_params.rb @@ -7,7 +7,13 @@ class ManagementOperationRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - # @!method initialize(request_options: {}) + # @!attribute management_operation_token + # + # @return [String] + required :management_operation_token, String + + # @!method initialize(management_operation_token:, request_options: {}) + # @param management_operation_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/management_operation_reverse_params.rb b/lib/lithic/models/management_operation_reverse_params.rb index 064297b4..9ba27a76 100644 --- a/lib/lithic/models/management_operation_reverse_params.rb +++ b/lib/lithic/models/management_operation_reverse_params.rb @@ -7,6 +7,11 @@ class ManagementOperationReverseParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + # @!attribute management_operation_token + # + # @return [String] + required :management_operation_token, String + # @!attribute effective_date # # @return [Date] @@ -17,7 +22,8 @@ class ManagementOperationReverseParams < Lithic::Internal::Type::BaseModel # @return [String, nil] optional :memo, String - # @!method initialize(effective_date:, memo: nil, request_options: {}) + # @!method initialize(management_operation_token:, effective_date:, memo: nil, request_options: {}) + # @param management_operation_token [String] # @param effective_date [Date] # @param memo [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] diff --git a/lib/lithic/models/network_program_retrieve_params.rb b/lib/lithic/models/network_program_retrieve_params.rb index 80170a0e..a8844e4f 100644 --- a/lib/lithic/models/network_program_retrieve_params.rb +++ b/lib/lithic/models/network_program_retrieve_params.rb @@ -7,7 +7,13 @@ class NetworkProgramRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - # @!method initialize(request_options: {}) + # @!attribute network_program_token + # + # @return [String] + required :network_program_token, String + + # @!method initialize(network_program_token:, request_options: {}) + # @param network_program_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/payment_retrieve_params.rb b/lib/lithic/models/payment_retrieve_params.rb index 19bd8434..3114a8f5 100644 --- a/lib/lithic/models/payment_retrieve_params.rb +++ b/lib/lithic/models/payment_retrieve_params.rb @@ -7,7 +7,13 @@ class PaymentRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - # @!method initialize(request_options: {}) + # @!attribute payment_token + # + # @return [String] + required :payment_token, String + + # @!method initialize(payment_token:, request_options: {}) + # @param payment_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/payment_retry_params.rb b/lib/lithic/models/payment_retry_params.rb index ec3d9e58..a05f70db 100644 --- a/lib/lithic/models/payment_retry_params.rb +++ b/lib/lithic/models/payment_retry_params.rb @@ -7,7 +7,13 @@ class PaymentRetryParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - # @!method initialize(request_options: {}) + # @!attribute payment_token + # + # @return [String] + required :payment_token, String + + # @!method initialize(payment_token:, request_options: {}) + # @param payment_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/payment_return_params.rb b/lib/lithic/models/payment_return_params.rb index 4d89c243..51795f08 100644 --- a/lib/lithic/models/payment_return_params.rb +++ b/lib/lithic/models/payment_return_params.rb @@ -7,6 +7,11 @@ class PaymentReturnParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + # @!attribute payment_token + # + # @return [String] + required :payment_token, String + # @!attribute financial_account_token # Globally unique identifier for the financial account # @@ -42,10 +47,12 @@ class PaymentReturnParams < Lithic::Internal::Type::BaseModel # @return [String, nil] optional :memo, String, nil?: true - # @!method initialize(financial_account_token:, return_reason_code:, addenda: nil, date_of_death: nil, memo: nil, request_options: {}) + # @!method initialize(payment_token:, financial_account_token:, return_reason_code:, addenda: nil, date_of_death: nil, memo: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Lithic::Models::PaymentReturnParams} for more details. # + # @param payment_token [String] + # # @param financial_account_token [String] Globally unique identifier for the financial account # # @param return_reason_code [String] ACH return reason code indicating the reason for returning the payment. Supporte diff --git a/lib/lithic/models/payment_simulate_action_params.rb b/lib/lithic/models/payment_simulate_action_params.rb index d21e5b67..f5ac57c8 100644 --- a/lib/lithic/models/payment_simulate_action_params.rb +++ b/lib/lithic/models/payment_simulate_action_params.rb @@ -7,6 +7,11 @@ class PaymentSimulateActionParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + # @!attribute payment_token + # + # @return [String] + required :payment_token, String + # @!attribute event_type # Event Type # @@ -37,7 +42,9 @@ class PaymentSimulateActionParams < Lithic::Internal::Type::BaseModel # @return [String, nil] optional :return_reason_code, String - # @!method initialize(event_type:, date_of_death: nil, decline_reason: nil, return_addenda: nil, return_reason_code: nil, request_options: {}) + # @!method initialize(payment_token:, event_type:, date_of_death: nil, decline_reason: nil, return_addenda: nil, return_reason_code: nil, request_options: {}) + # @param payment_token [String] + # # @param event_type [Symbol, Lithic::Models::PaymentSimulateActionParams::EventType] Event Type # # @param date_of_death [Date] Date of Death for ACH Return diff --git a/lib/lithic/models/reports/settlement/network_total_retrieve_params.rb b/lib/lithic/models/reports/settlement/network_total_retrieve_params.rb index 5d7b5c71..bcbf038a 100644 --- a/lib/lithic/models/reports/settlement/network_total_retrieve_params.rb +++ b/lib/lithic/models/reports/settlement/network_total_retrieve_params.rb @@ -9,7 +9,13 @@ class NetworkTotalRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - # @!method initialize(request_options: {}) + # @!attribute token + # + # @return [String] + required :token, String + + # @!method initialize(token:, request_options: {}) + # @param token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/reports/settlement_list_details_params.rb b/lib/lithic/models/reports/settlement_list_details_params.rb index 19a10014..94fbaf6b 100644 --- a/lib/lithic/models/reports/settlement_list_details_params.rb +++ b/lib/lithic/models/reports/settlement_list_details_params.rb @@ -8,6 +8,11 @@ class SettlementListDetailsParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + # @!attribute report_date + # + # @return [Date] + required :report_date, Date + # @!attribute ending_before # A cursor representing an item's token before which a page of results should end. # Used to retrieve the previous page of results before this item. @@ -28,10 +33,12 @@ class SettlementListDetailsParams < Lithic::Internal::Type::BaseModel # @return [String, nil] optional :starting_after, String - # @!method initialize(ending_before: nil, page_size: nil, starting_after: nil, request_options: {}) + # @!method initialize(report_date:, ending_before: nil, page_size: nil, starting_after: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Lithic::Models::Reports::SettlementListDetailsParams} for more details. # + # @param report_date [Date] + # # @param ending_before [String] A cursor representing an item's token before which a page of results should end. # # @param page_size [Integer] Number of records per page. diff --git a/lib/lithic/models/reports/settlement_summary_params.rb b/lib/lithic/models/reports/settlement_summary_params.rb index b5a8c62d..19670424 100644 --- a/lib/lithic/models/reports/settlement_summary_params.rb +++ b/lib/lithic/models/reports/settlement_summary_params.rb @@ -8,7 +8,13 @@ class SettlementSummaryParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - # @!method initialize(request_options: {}) + # @!attribute report_date + # + # @return [Date] + required :report_date, Date + + # @!method initialize(report_date:, request_options: {}) + # @param report_date [Date] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/three_ds/authentication_retrieve_params.rb b/lib/lithic/models/three_ds/authentication_retrieve_params.rb index 7c413853..6c757ada 100644 --- a/lib/lithic/models/three_ds/authentication_retrieve_params.rb +++ b/lib/lithic/models/three_ds/authentication_retrieve_params.rb @@ -8,7 +8,13 @@ class AuthenticationRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - # @!method initialize(request_options: {}) + # @!attribute three_ds_authentication_token + # + # @return [String] + required :three_ds_authentication_token, String + + # @!method initialize(three_ds_authentication_token:, request_options: {}) + # @param three_ds_authentication_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/tokenization_activate_params.rb b/lib/lithic/models/tokenization_activate_params.rb index e7ca4b21..e73733b3 100644 --- a/lib/lithic/models/tokenization_activate_params.rb +++ b/lib/lithic/models/tokenization_activate_params.rb @@ -7,7 +7,13 @@ class TokenizationActivateParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - # @!method initialize(request_options: {}) + # @!attribute tokenization_token + # + # @return [String] + required :tokenization_token, String + + # @!method initialize(tokenization_token:, request_options: {}) + # @param tokenization_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/tokenization_deactivate_params.rb b/lib/lithic/models/tokenization_deactivate_params.rb index e2c21823..d1a527b9 100644 --- a/lib/lithic/models/tokenization_deactivate_params.rb +++ b/lib/lithic/models/tokenization_deactivate_params.rb @@ -7,7 +7,13 @@ class TokenizationDeactivateParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - # @!method initialize(request_options: {}) + # @!attribute tokenization_token + # + # @return [String] + required :tokenization_token, String + + # @!method initialize(tokenization_token:, request_options: {}) + # @param tokenization_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/tokenization_pause_params.rb b/lib/lithic/models/tokenization_pause_params.rb index db3aff86..f46154ab 100644 --- a/lib/lithic/models/tokenization_pause_params.rb +++ b/lib/lithic/models/tokenization_pause_params.rb @@ -7,7 +7,13 @@ class TokenizationPauseParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - # @!method initialize(request_options: {}) + # @!attribute tokenization_token + # + # @return [String] + required :tokenization_token, String + + # @!method initialize(tokenization_token:, request_options: {}) + # @param tokenization_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/tokenization_resend_activation_code_params.rb b/lib/lithic/models/tokenization_resend_activation_code_params.rb index e4ee299b..77d04608 100644 --- a/lib/lithic/models/tokenization_resend_activation_code_params.rb +++ b/lib/lithic/models/tokenization_resend_activation_code_params.rb @@ -7,6 +7,11 @@ class TokenizationResendActivationCodeParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + # @!attribute tokenization_token + # + # @return [String] + required :tokenization_token, String + # @!attribute activation_method_type # The communication method that the user has selected to use to receive the # authentication code. Supported Values: Sms = "TEXT_TO_CARDHOLDER_NUMBER". Email @@ -16,10 +21,12 @@ class TokenizationResendActivationCodeParams < Lithic::Internal::Type::BaseModel optional :activation_method_type, enum: -> { Lithic::TokenizationResendActivationCodeParams::ActivationMethodType } - # @!method initialize(activation_method_type: nil, request_options: {}) + # @!method initialize(tokenization_token:, activation_method_type: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Lithic::Models::TokenizationResendActivationCodeParams} for more details. # + # @param tokenization_token [String] + # # @param activation_method_type [Symbol, Lithic::Models::TokenizationResendActivationCodeParams::ActivationMethodType] The communication method that the user has selected to use to receive the authen # # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] diff --git a/lib/lithic/models/tokenization_retrieve_params.rb b/lib/lithic/models/tokenization_retrieve_params.rb index 79ef8ed4..01283d89 100644 --- a/lib/lithic/models/tokenization_retrieve_params.rb +++ b/lib/lithic/models/tokenization_retrieve_params.rb @@ -7,7 +7,13 @@ class TokenizationRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - # @!method initialize(request_options: {}) + # @!attribute tokenization_token + # + # @return [String] + required :tokenization_token, String + + # @!method initialize(tokenization_token:, request_options: {}) + # @param tokenization_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/tokenization_unpause_params.rb b/lib/lithic/models/tokenization_unpause_params.rb index 5c66efec..1708e74e 100644 --- a/lib/lithic/models/tokenization_unpause_params.rb +++ b/lib/lithic/models/tokenization_unpause_params.rb @@ -7,7 +7,13 @@ class TokenizationUnpauseParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - # @!method initialize(request_options: {}) + # @!attribute tokenization_token + # + # @return [String] + required :tokenization_token, String + + # @!method initialize(tokenization_token:, request_options: {}) + # @param tokenization_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/tokenization_update_digital_card_art_params.rb b/lib/lithic/models/tokenization_update_digital_card_art_params.rb index 18d9a2ca..0dd474c8 100644 --- a/lib/lithic/models/tokenization_update_digital_card_art_params.rb +++ b/lib/lithic/models/tokenization_update_digital_card_art_params.rb @@ -7,6 +7,11 @@ class TokenizationUpdateDigitalCardArtParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + # @!attribute tokenization_token + # + # @return [String] + required :tokenization_token, String + # @!attribute digital_card_art_token # Specifies the digital card art to be displayed in the user’s digital wallet for # a tokenization. This artwork must be approved by the network and configured by @@ -16,10 +21,12 @@ class TokenizationUpdateDigitalCardArtParams < Lithic::Internal::Type::BaseModel # @return [String, nil] optional :digital_card_art_token, String - # @!method initialize(digital_card_art_token: nil, request_options: {}) + # @!method initialize(tokenization_token:, digital_card_art_token: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Lithic::Models::TokenizationUpdateDigitalCardArtParams} for more details. # + # @param tokenization_token [String] + # # @param digital_card_art_token [String] Specifies the digital card art to be displayed in the user’s digital wallet for # # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] diff --git a/lib/lithic/models/transaction_expire_authorization_params.rb b/lib/lithic/models/transaction_expire_authorization_params.rb index cb4841ef..7de55198 100644 --- a/lib/lithic/models/transaction_expire_authorization_params.rb +++ b/lib/lithic/models/transaction_expire_authorization_params.rb @@ -7,7 +7,13 @@ class TransactionExpireAuthorizationParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - # @!method initialize(request_options: {}) + # @!attribute transaction_token + # + # @return [String] + required :transaction_token, String + + # @!method initialize(transaction_token:, request_options: {}) + # @param transaction_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/transaction_retrieve_params.rb b/lib/lithic/models/transaction_retrieve_params.rb index 9008a584..298fe520 100644 --- a/lib/lithic/models/transaction_retrieve_params.rb +++ b/lib/lithic/models/transaction_retrieve_params.rb @@ -7,7 +7,13 @@ class TransactionRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - # @!method initialize(request_options: {}) + # @!attribute transaction_token + # + # @return [String] + required :transaction_token, String + + # @!method initialize(transaction_token:, request_options: {}) + # @param transaction_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/transactions/enhanced_commercial_data_retrieve_params.rb b/lib/lithic/models/transactions/enhanced_commercial_data_retrieve_params.rb index 2ebd97d3..5fcb3567 100644 --- a/lib/lithic/models/transactions/enhanced_commercial_data_retrieve_params.rb +++ b/lib/lithic/models/transactions/enhanced_commercial_data_retrieve_params.rb @@ -8,7 +8,13 @@ class EnhancedCommercialDataRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - # @!method initialize(request_options: {}) + # @!attribute transaction_token + # + # @return [String] + required :transaction_token, String + + # @!method initialize(transaction_token:, request_options: {}) + # @param transaction_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/models/transactions/events/enhanced_commercial_data_retrieve_params.rb b/lib/lithic/models/transactions/events/enhanced_commercial_data_retrieve_params.rb index d9f6d21e..9be9427f 100644 --- a/lib/lithic/models/transactions/events/enhanced_commercial_data_retrieve_params.rb +++ b/lib/lithic/models/transactions/events/enhanced_commercial_data_retrieve_params.rb @@ -9,7 +9,13 @@ class EnhancedCommercialDataRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - # @!method initialize(request_options: {}) + # @!attribute event_token + # + # @return [String] + required :event_token, String + + # @!method initialize(event_token:, request_options: {}) + # @param event_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/lithic/resources/account_holders.rb b/lib/lithic/resources/account_holders.rb index 5f0fadea..dd567716 100644 --- a/lib/lithic/resources/account_holders.rb +++ b/lib/lithic/resources/account_holders.rb @@ -6,9 +6,6 @@ class AccountHolders # @return [Lithic::Resources::AccountHolders::Entities] attr_reader :entities - # Some parameter documentations has been truncated, see - # {Lithic::Models::AccountHolderCreateParams} for more details. - # # Create an account holder and initiate the appropriate onboarding workflow. # Account holders and accounts have a 1:1 relationship. When an account holder is # successfully created an associated account is also created. All calls to this @@ -18,46 +15,9 @@ class AccountHolders # process. This endpoint can only be used on accounts that are part of the program # that the calling API key manages. # - # @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, external_id: nil, kyb_passed_timestamp: nil, naics_code: nil, website_url: nil, kyc_passed_timestamp: nil, business_account_token: nil, request_options: {}) - # - # @param business_entity [Lithic::Models::AccountHolderCreateParams::BusinessEntity] Information for business for which the account is being opened. - # - # @param tos_timestamp [String] An RFC 3339 timestamp indicating when the account holder accepted the applicable - # - # @param workflow [Symbol, Lithic::Models::AccountHolderCreateParams::Workflow] Specifies the workflow type. This must be 'KYC_EXEMPT' - # - # @param individual [Lithic::Models::AccountHolderCreateParams::Individual] Information on individual for whom the account is being opened and KYC is being - # - # @param address [Lithic::Models::Address] KYC Exempt user's current address - PO boxes, UPS drops, and FedEx drops are not - # - # @param email [String] The KYC Exempt user's email - # - # @param first_name [String] The KYC Exempt user's first name - # - # @param kyc_exemption_type [Symbol, Lithic::Models::AccountHolderCreateParams::KYCExemptionType] Specifies the type of KYC Exempt user - # - # @param last_name [String] The KYC Exempt user's last name - # - # @param phone_number [String] The KYC Exempt user's phone number, entered in E.164 format. - # - # @param beneficial_owner_individuals [Array] You can submit a list of all direct and indirect individuals with 25% or more ow - # - # @param control_person [Lithic::Models::AccountHolderCreateParams::ControlPerson] An individual with significant responsibility for managing the legal entity (e.g - # - # @param nature_of_business [String] Short description of the company's line of business (i.e., what does the company - # - # @param external_id [String] A user provided id that can be used to link an account holder with an external s - # - # @param kyb_passed_timestamp [String] An RFC 3339 timestamp indicating when precomputed KYB was completed on the busin - # - # @param naics_code [String] 6-digit North American Industry Classification System (NAICS) code for the busin - # - # @param website_url [String] Company website URL. - # - # @param kyc_passed_timestamp [String] An RFC 3339 timestamp indicating when precomputed KYC was completed on the indiv - # - # @param business_account_token [String] Only applicable for customers using the KYC-Exempt workflow to enroll authorized + # @overload create(body:, request_options: {}) # + # @param body [Lithic::Models::KYB, Lithic::Models::AccountHolderCreateParams::Body::KYBDelegated, Lithic::Models::KYC, Lithic::Models::KYCExempt] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil] # # @return [Lithic::Models::AccountHolderCreateResponse] @@ -68,7 +28,7 @@ def create(params) @client.request( method: :post, path: "v1/account_holders", - body: parsed, + body: parsed[:body], model: Lithic::Models::AccountHolderCreateResponse, options: {timeout: 300, **options} ) @@ -95,9 +55,6 @@ def retrieve(account_holder_token, params = {}) ) end - # Some parameter documentations has been truncated, see - # {Lithic::Models::AccountHolderUpdateParams} for more details. - # # Update the information associated with a particular account holder (including # business owners and control persons associated to a business account). If Lithic # is performing KYB or KYC and additional verification is required we will run the @@ -109,51 +66,23 @@ def retrieve(account_holder_token, params = {}) # process. This endpoint can only be used on existing accounts that are part of # the program that the calling API key manages. # - # @overload update(account_holder_token, 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: {}) + # @overload update(account_holder_token, body:, request_options: {}) # # @param account_holder_token [String] Globally unique identifier for the account holder. # - # @param beneficial_owner_individuals [Array] You must submit a list of all direct and indirect individuals with 25% or more o - # - # @param business_entity [Lithic::Models::AccountHolderUpdateParams::BusinessEntity] Information for business for which the account is being opened and KYB is being - # - # @param control_person [Lithic::Models::AccountHolderUpdateParams::ControlPerson] An individual with significant responsibility for managing the legal entity (e.g - # - # @param external_id [String] A user provided id that can be used to link an account holder with an external s - # - # @param naics_code [String] 6-digit North American Industry Classification System (NAICS) code for the busin - # - # @param nature_of_business [String] Short description of the company's line of business (i.e., what does the company - # - # @param website_url [String] Company website URL. - # - # @param individual [Lithic::Models::AccountHolderUpdateParams::Individual] Information on the individual for whom the account is being opened and KYC is be - # - # @param address [Lithic::Models::AddressUpdate] Allowed for: KYC-Exempt, BYO-KYC, BYO-KYB. - # - # @param business_account_token [String] Allowed for: KYC-Exempt, BYO-KYC. The token of the business account to which the - # - # @param email [String] Allowed for all Account Holders. Account holder's email address. The primary pur - # - # @param first_name [String] Allowed for KYC-Exempt, BYO-KYC. Account holder's first name. - # - # @param last_name [String] Allowed for KYC-Exempt, BYO-KYC. Account holder's last name. - # - # @param legal_business_name [String] Allowed for BYO-KYB. Legal business name of the account holder. - # - # @param phone_number [String] Allowed for all Account Holders. Account holder's phone number, entered in E.164 + # @param body [Lithic::Models::AccountHolderUpdateParams::Body::KYBPatchRequest, Lithic::Models::AccountHolderUpdateParams::Body::KYCPatchRequest, Lithic::Models::AccountHolderUpdateParams::Body::PatchRequest] The KYB request payload for updating a business. # # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil] # # @return [Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse, Lithic::Models::AccountHolderUpdateResponse::PatchResponse] # # @see Lithic::Models::AccountHolderUpdateParams - def update(account_holder_token, params = {}) + def update(account_holder_token, params) parsed, options = Lithic::AccountHolderUpdateParams.dump_request(params) @client.request( method: :patch, path: ["v1/account_holders/%1$s", account_holder_token], - body: parsed, + body: parsed[:body], model: Lithic::Models::AccountHolderUpdateResponse, options: options ) diff --git a/lib/lithic/resources/auth_rules/v2.rb b/lib/lithic/resources/auth_rules/v2.rb index 81f6992b..89116b89 100644 --- a/lib/lithic/resources/auth_rules/v2.rb +++ b/lib/lithic/resources/auth_rules/v2.rb @@ -7,31 +7,11 @@ class V2 # @return [Lithic::Resources::AuthRules::V2::Backtests] attr_reader :backtests - # Some parameter documentations has been truncated, see - # {Lithic::Models::AuthRules::V2CreateParams} for more details. - # # Creates a new V2 Auth rule in draft mode # - # @overload create(parameters:, type:, card_tokens:, program_level:, account_tokens: nil, business_account_tokens: nil, event_stream: nil, name: nil, excluded_card_tokens: nil, request_options: {}) - # - # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters] Parameters for the Auth Rule - # - # @param type [Symbol, Lithic::Models::AuthRules::V2CreateParams::Type] The type of Auth Rule. For certain rule types, this determines the event stream - # - # @param card_tokens [Array] Card tokens to which the Auth Rule applies. - # - # @param program_level [Boolean] Whether the Auth Rule applies to all authorizations on the card program. - # - # @param account_tokens [Array] Account tokens to which the Auth Rule applies. - # - # @param business_account_tokens [Array] Business Account tokens to which the Auth Rule applies. - # - # @param event_stream [Symbol, Lithic::Models::AuthRules::EventStream] The event stream during which the rule will be evaluated. - # - # @param name [String, nil] Auth Rule Name - # - # @param excluded_card_tokens [Array] Card tokens to which the Auth Rule does not apply. + # @overload create(body:, request_options: {}) # + # @param body [Lithic::Models::AuthRules::V2CreateParams::Body::AccountLevelRule, Lithic::Models::AuthRules::V2CreateParams::Body::CardLevelRule, Lithic::Models::AuthRules::V2CreateParams::Body::ProgramLevelRule] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil] # # @return [Lithic::Models::AuthRules::AuthRule] @@ -42,7 +22,7 @@ def create(params) @client.request( method: :post, path: "v2/auth_rules", - body: parsed, + body: parsed[:body], model: Lithic::AuthRules::AuthRule, options: options ) @@ -67,44 +47,27 @@ def retrieve(auth_rule_token, params = {}) ) end - # Some parameter documentations has been truncated, see - # {Lithic::Models::AuthRules::V2UpdateParams} for more details. - # # Updates a V2 Auth rule's properties # # If `account_tokens`, `card_tokens`, `program_level`, or `excluded_card_tokens` # is provided, this will replace existing associations with the provided list of # entities. # - # @overload update(auth_rule_token, account_tokens: nil, business_account_tokens: nil, name: nil, state: nil, card_tokens: nil, excluded_card_tokens: nil, program_level: nil, request_options: {}) + # @overload update(auth_rule_token, body:, request_options: {}) # # @param auth_rule_token [String] - # - # @param account_tokens [Array] Account tokens to which the Auth Rule applies. - # - # @param business_account_tokens [Array] Business Account tokens to which the Auth Rule applies. - # - # @param name [String, nil] Auth Rule Name - # - # @param state [Symbol, Lithic::Models::AuthRules::V2UpdateParams::State] The desired state of the Auth Rule. - # - # @param card_tokens [Array] Card tokens to which the Auth Rule applies. - # - # @param excluded_card_tokens [Array] Card tokens to which the Auth Rule does not apply. - # - # @param program_level [Boolean] Whether the Auth Rule applies to all authorizations on the card program. - # + # @param body [Lithic::Models::AuthRules::V2UpdateParams::Body::AccountLevelRule, Lithic::Models::AuthRules::V2UpdateParams::Body::CardLevelRule, Lithic::Models::AuthRules::V2UpdateParams::Body::ProgramLevelRule] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil] # # @return [Lithic::Models::AuthRules::AuthRule] # # @see Lithic::Models::AuthRules::V2UpdateParams - def update(auth_rule_token, params = {}) + def update(auth_rule_token, params) parsed, options = Lithic::AuthRules::V2UpdateParams.dump_request(params) @client.request( method: :patch, path: ["v2/auth_rules/%1$s", auth_rule_token], - body: parsed, + body: parsed[:body], model: Lithic::AuthRules::AuthRule, options: options ) diff --git a/lib/lithic/resources/external_bank_accounts.rb b/lib/lithic/resources/external_bank_accounts.rb index 0b006c4d..f2563497 100644 --- a/lib/lithic/resources/external_bank_accounts.rb +++ b/lib/lithic/resources/external_bank_accounts.rb @@ -6,47 +6,11 @@ class ExternalBankAccounts # @return [Lithic::Resources::ExternalBankAccounts::MicroDeposits] attr_reader :micro_deposits - # Some parameter documentations has been truncated, see - # {Lithic::Models::ExternalBankAccountCreateParams} for more details. - # # Creates an external bank account within a program or Lithic account. # - # @overload create(account_number:, country:, currency:, financial_account_token:, owner:, owner_type:, routing_number:, type:, verification_method:, account_token: nil, address: nil, company_id: nil, dob: nil, doing_business_as: nil, name: nil, user_defined_id: nil, verification_enforcement: nil, request_options: {}) - # - # @param account_number [String] Account Number - # - # @param country [String] The country that the bank account is located in using ISO 3166-1. We will only a - # - # @param currency [String] currency of the external account 3-character alphabetic ISO 4217 code - # - # @param financial_account_token [String] The financial account token of the operating account to fund the micro deposits - # - # @param owner [String] Legal Name of the business or individual who owns the external account. This wil - # - # @param owner_type [Symbol, Lithic::Models::OwnerType] Owner Type - # - # @param routing_number [String] Routing Number - # - # @param type [Symbol, Lithic::Models::ExternalBankAccountCreateParams::Type] Account Type - # - # @param verification_method [Symbol, Lithic::Models::ExternalBankAccountCreateParams::VerificationMethod] Verification Method - # - # @param account_token [String] Indicates which Lithic account the external account is associated with. For exte - # - # @param address [Lithic::Models::ExternalBankAccountAddress] Address - # - # @param company_id [String] Optional field that helps identify bank accounts in receipts - # - # @param dob [Date] Date of Birth of the Individual that owns the external bank account - # - # @param doing_business_as [String] Doing Business As - # - # @param name [String] The nickname for this External Bank Account - # - # @param user_defined_id [String] User Defined ID - # - # @param verification_enforcement [Boolean] + # @overload create(body:, request_options: {}) # + # @param body [Lithic::Models::ExternalBankAccountCreateParams::Body::ExternallyVerified, Lithic::Models::ExternalBankAccountCreateParams::Body::Unverified, Lithic::Models::ExternalBankAccountCreateParams::Body::BankVerifiedCreateBankAccountAPIRequest] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil] # # @return [Lithic::Models::ExternalBankAccountCreateResponse] @@ -57,7 +21,7 @@ def create(params) @client.request( method: :post, path: "v1/external_bank_accounts", - body: parsed, + body: parsed[:body], model: Lithic::Models::ExternalBankAccountCreateResponse, options: options ) diff --git a/rbi/lithic/models/account_activity_retrieve_transaction_params.rbi b/rbi/lithic/models/account_activity_retrieve_transaction_params.rbi index 117358e9..a66e098c 100644 --- a/rbi/lithic/models/account_activity_retrieve_transaction_params.rbi +++ b/rbi/lithic/models/account_activity_retrieve_transaction_params.rbi @@ -14,15 +14,23 @@ module Lithic ) end + sig { returns(String) } + attr_accessor :transaction_token + sig do - params(request_options: Lithic::RequestOptions::OrHash).returns( - T.attached_class - ) + params( + transaction_token: String, + request_options: Lithic::RequestOptions::OrHash + ).returns(T.attached_class) end - def self.new(request_options: {}) + def self.new(transaction_token:, request_options: {}) end - sig { override.returns({ request_options: Lithic::RequestOptions }) } + sig do + override.returns( + { transaction_token: String, request_options: Lithic::RequestOptions } + ) + end def to_hash end end diff --git a/rbi/lithic/models/account_holder_create_params.rbi b/rbi/lithic/models/account_holder_create_params.rbi index 2cef3aa4..e7b5fb23 100644 --- a/rbi/lithic/models/account_holder_create_params.rbi +++ b/rbi/lithic/models/account_holder_create_params.rbi @@ -11,304 +11,43 @@ module Lithic T.any(Lithic::AccountHolderCreateParams, Lithic::Internal::AnyHash) end - # You can submit a list of all direct and indirect individuals with 25% or more - # ownership in the company. A maximum of 4 beneficial owners can be submitted. If - # no individual owns 25% of the company you do not need to send beneficial owner - # information. See - # [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf) - # (Section I) for more background on individuals that should be included. sig do returns( - T.nilable( - T::Array[ - Lithic::AccountHolderCreateParams::BeneficialOwnerIndividual - ] + T.any( + Lithic::KYB, + Lithic::AccountHolderCreateParams::Body::KYBDelegated, + Lithic::KYC, + Lithic::KYCExempt ) ) end - attr_reader :beneficial_owner_individuals + attr_accessor :body sig do params( - beneficial_owner_individuals: - T::Array[ - Lithic::AccountHolderCreateParams::BeneficialOwnerIndividual::OrHash - ] - ).void - end - attr_writer :beneficial_owner_individuals - - # Information for business for which the account is being opened. - sig { returns(Lithic::AccountHolderCreateParams::BusinessEntity) } - attr_reader :business_entity - - sig do - params( - business_entity: - Lithic::AccountHolderCreateParams::BusinessEntity::OrHash - ).void - end - attr_writer :business_entity - - # An individual with significant responsibility for managing the legal entity - # (e.g., a Chief Executive Officer, Chief Financial Officer, Chief Operating - # Officer, Managing Member, General Partner, President, Vice President, or - # Treasurer). This can be an executive, or someone who will have program-wide - # access to the cards that Lithic will provide. In some cases, this individual - # could also be a beneficial owner listed above. See - # [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf) - # (Section II) for more background. - sig do - returns(T.nilable(Lithic::AccountHolderCreateParams::ControlPerson)) - end - attr_reader :control_person - - sig do - params( - control_person: - Lithic::AccountHolderCreateParams::ControlPerson::OrHash - ).void - end - attr_writer :control_person - - # Short description of the company's line of business (i.e., what does the company - # do?). - sig { returns(T.nilable(String)) } - attr_reader :nature_of_business - - sig { params(nature_of_business: String).void } - attr_writer :nature_of_business - - # An RFC 3339 timestamp indicating when the account holder accepted the applicable - # legal agreements (e.g., cardholder terms) as agreed upon during API customer's - # implementation with Lithic. - sig { returns(String) } - attr_accessor :tos_timestamp - - # Specifies the workflow type. This must be 'KYC_EXEMPT' - sig { returns(Lithic::AccountHolderCreateParams::Workflow::OrSymbol) } - attr_accessor :workflow - - # A user provided id that can be used to link an account holder with an external - # system - sig { returns(T.nilable(String)) } - attr_reader :external_id - - sig { params(external_id: String).void } - attr_writer :external_id - - # An RFC 3339 timestamp indicating when precomputed KYB was completed on the - # business with a pass result. - # - # This field is required only if workflow type is `KYB_BYO`. - sig { returns(T.nilable(String)) } - attr_reader :kyb_passed_timestamp - - sig { params(kyb_passed_timestamp: String).void } - attr_writer :kyb_passed_timestamp - - # 6-digit North American Industry Classification System (NAICS) code for the - # business. - sig { returns(T.nilable(String)) } - attr_reader :naics_code - - sig { params(naics_code: String).void } - attr_writer :naics_code - - # Company website URL. - sig { returns(T.nilable(String)) } - attr_reader :website_url - - sig { params(website_url: String).void } - attr_writer :website_url - - # Information on individual for whom the account is being opened and KYC is being - # run. - sig { returns(Lithic::AccountHolderCreateParams::Individual) } - attr_reader :individual - - sig do - params( - individual: Lithic::AccountHolderCreateParams::Individual::OrHash - ).void - end - attr_writer :individual - - # An RFC 3339 timestamp indicating when precomputed KYC was completed on the - # individual with a pass result. - # - # This field is required only if workflow type is `KYC_BYO`. - sig { returns(T.nilable(String)) } - attr_reader :kyc_passed_timestamp - - sig { params(kyc_passed_timestamp: String).void } - attr_writer :kyc_passed_timestamp - - # KYC Exempt user's current address - PO boxes, UPS drops, and FedEx drops are not - # acceptable; APO/FPO are acceptable. - sig { returns(Lithic::Address) } - attr_reader :address - - sig { params(address: Lithic::Address::OrHash).void } - attr_writer :address - - # The KYC Exempt user's email - sig { returns(String) } - attr_accessor :email - - # The KYC Exempt user's first name - sig { returns(String) } - attr_accessor :first_name - - # Specifies the type of KYC Exempt user - sig do - returns(Lithic::AccountHolderCreateParams::KYCExemptionType::OrSymbol) - end - attr_accessor :kyc_exemption_type - - # The KYC Exempt user's last name - sig { returns(String) } - attr_accessor :last_name - - # The KYC Exempt user's phone number, entered in E.164 format. - sig { returns(String) } - attr_accessor :phone_number - - # Only applicable for customers using the KYC-Exempt workflow to enroll authorized - # users of businesses. Pass the account_token of the enrolled business associated - # with the AUTHORIZED_USER in this field. - sig { returns(T.nilable(String)) } - attr_reader :business_account_token - - sig { params(business_account_token: String).void } - attr_writer :business_account_token - - sig do - params( - business_entity: - Lithic::AccountHolderCreateParams::BusinessEntity::OrHash, - tos_timestamp: String, - workflow: Lithic::AccountHolderCreateParams::Workflow::OrSymbol, - individual: Lithic::AccountHolderCreateParams::Individual::OrHash, - address: Lithic::Address::OrHash, - email: String, - first_name: String, - kyc_exemption_type: - Lithic::AccountHolderCreateParams::KYCExemptionType::OrSymbol, - last_name: String, - phone_number: String, - beneficial_owner_individuals: - T::Array[ - Lithic::AccountHolderCreateParams::BeneficialOwnerIndividual::OrHash - ], - control_person: - Lithic::AccountHolderCreateParams::ControlPerson::OrHash, - nature_of_business: String, - external_id: String, - kyb_passed_timestamp: String, - naics_code: String, - website_url: String, - kyc_passed_timestamp: String, - business_account_token: String, + body: + T.any( + Lithic::KYB::OrHash, + Lithic::AccountHolderCreateParams::Body::KYBDelegated::OrHash, + Lithic::KYC::OrHash, + Lithic::KYCExempt::OrHash + ), request_options: Lithic::RequestOptions::OrHash ).returns(T.attached_class) end - def self.new( - # Information for business for which the account is being opened. - business_entity:, - # An RFC 3339 timestamp indicating when the account holder accepted the applicable - # legal agreements (e.g., cardholder terms) as agreed upon during API customer's - # implementation with Lithic. - tos_timestamp:, - # Specifies the workflow type. This must be 'KYC_EXEMPT' - workflow:, - # Information on individual for whom the account is being opened and KYC is being - # run. - individual:, - # KYC Exempt user's current address - PO boxes, UPS drops, and FedEx drops are not - # acceptable; APO/FPO are acceptable. - address:, - # The KYC Exempt user's email - email:, - # The KYC Exempt user's first name - first_name:, - # Specifies the type of KYC Exempt user - kyc_exemption_type:, - # The KYC Exempt user's last name - last_name:, - # The KYC Exempt user's phone number, entered in E.164 format. - phone_number:, - # You can submit a list of all direct and indirect individuals with 25% or more - # ownership in the company. A maximum of 4 beneficial owners can be submitted. If - # no individual owns 25% of the company you do not need to send beneficial owner - # information. See - # [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf) - # (Section I) for more background on individuals that should be included. - beneficial_owner_individuals: nil, - # An individual with significant responsibility for managing the legal entity - # (e.g., a Chief Executive Officer, Chief Financial Officer, Chief Operating - # Officer, Managing Member, General Partner, President, Vice President, or - # Treasurer). This can be an executive, or someone who will have program-wide - # access to the cards that Lithic will provide. In some cases, this individual - # could also be a beneficial owner listed above. See - # [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf) - # (Section II) for more background. - control_person: nil, - # Short description of the company's line of business (i.e., what does the company - # do?). - nature_of_business: nil, - # A user provided id that can be used to link an account holder with an external - # system - external_id: nil, - # An RFC 3339 timestamp indicating when precomputed KYB was completed on the - # business with a pass result. - # - # This field is required only if workflow type is `KYB_BYO`. - kyb_passed_timestamp: nil, - # 6-digit North American Industry Classification System (NAICS) code for the - # business. - naics_code: nil, - # Company website URL. - website_url: nil, - # An RFC 3339 timestamp indicating when precomputed KYC was completed on the - # individual with a pass result. - # - # This field is required only if workflow type is `KYC_BYO`. - kyc_passed_timestamp: nil, - # Only applicable for customers using the KYC-Exempt workflow to enroll authorized - # users of businesses. Pass the account_token of the enrolled business associated - # with the AUTHORIZED_USER in this field. - business_account_token: nil, - request_options: {} - ) + def self.new(body:, request_options: {}) end sig do override.returns( { - beneficial_owner_individuals: - T::Array[ - Lithic::AccountHolderCreateParams::BeneficialOwnerIndividual - ], - business_entity: Lithic::AccountHolderCreateParams::BusinessEntity, - control_person: Lithic::AccountHolderCreateParams::ControlPerson, - nature_of_business: String, - tos_timestamp: String, - workflow: Lithic::AccountHolderCreateParams::Workflow::OrSymbol, - external_id: String, - kyb_passed_timestamp: String, - naics_code: String, - website_url: String, - individual: Lithic::AccountHolderCreateParams::Individual, - kyc_passed_timestamp: String, - address: Lithic::Address, - email: String, - first_name: String, - kyc_exemption_type: - Lithic::AccountHolderCreateParams::KYCExemptionType::OrSymbol, - last_name: String, - phone_number: String, - business_account_token: String, + body: + T.any( + Lithic::KYB, + Lithic::AccountHolderCreateParams::Body::KYBDelegated, + Lithic::KYC, + Lithic::KYCExempt + ), request_options: Lithic::RequestOptions } ) @@ -316,466 +55,581 @@ module Lithic def to_hash end - class BeneficialOwnerIndividual < Lithic::Internal::Type::BaseModel - OrHash = + module Body + extend Lithic::Internal::Type::Union + + Variants = T.type_alias do T.any( - Lithic::AccountHolderCreateParams::BeneficialOwnerIndividual, - Lithic::Internal::AnyHash + Lithic::KYB, + Lithic::AccountHolderCreateParams::Body::KYBDelegated, + Lithic::KYC, + Lithic::KYCExempt ) end - # Individual's current address - PO boxes, UPS drops, and FedEx drops are not - # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported. - sig { returns(Lithic::Address) } - attr_reader :address - - sig { params(address: Lithic::Address::OrHash).void } - attr_writer :address - - # Individual's date of birth, as an RFC 3339 date. - sig { returns(String) } - attr_accessor :dob - - # Individual's email address. If utilizing Lithic for chargeback processing, this - # customer email address may be used to communicate dispute status and resolution. - sig { returns(String) } - attr_accessor :email - - # Individual's first name, as it appears on government-issued identity documents. - sig { returns(String) } - attr_accessor :first_name - - # Government-issued identification number (required for identity verification and - # compliance with banking regulations). Social Security Numbers (SSN) and - # Individual Taxpayer Identification Numbers (ITIN) are currently supported, - # entered as full nine-digits, with or without hyphens - sig { returns(String) } - attr_accessor :government_id - - # Individual's last name, as it appears on government-issued identity documents. - sig { returns(String) } - attr_accessor :last_name - - # Individual's phone number, entered in E.164 format. - sig { returns(T.nilable(String)) } - attr_reader :phone_number - - sig { params(phone_number: String).void } - attr_writer :phone_number - - # Individuals associated with a KYB application. Phone number is optional. - sig do - params( - address: Lithic::Address::OrHash, - dob: String, - email: String, - first_name: String, - government_id: String, - last_name: String, - phone_number: String - ).returns(T.attached_class) - end - def self.new( - # Individual's current address - PO boxes, UPS drops, and FedEx drops are not - # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported. - address:, - # Individual's date of birth, as an RFC 3339 date. - dob:, - # Individual's email address. If utilizing Lithic for chargeback processing, this - # customer email address may be used to communicate dispute status and resolution. - email:, - # Individual's first name, as it appears on government-issued identity documents. - first_name:, - # Government-issued identification number (required for identity verification and - # compliance with banking regulations). Social Security Numbers (SSN) and - # Individual Taxpayer Identification Numbers (ITIN) are currently supported, - # entered as full nine-digits, with or without hyphens - government_id:, - # Individual's last name, as it appears on government-issued identity documents. - last_name:, - # Individual's phone number, entered in E.164 format. - phone_number: nil - ) - end - - sig do - override.returns( - { - address: Lithic::Address, - dob: String, - email: String, - first_name: String, - government_id: String, - last_name: String, - phone_number: String - } - ) - end - def to_hash - end - end - - class BusinessEntity < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::AccountHolderCreateParams::BusinessEntity, - Lithic::Internal::AnyHash + class KYBDelegated < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::AccountHolderCreateParams::Body::KYBDelegated, + Lithic::Internal::AnyHash + ) + end + + # Information for business for which the account is being opened. + sig do + returns( + Lithic::AccountHolderCreateParams::Body::KYBDelegated::BusinessEntity ) end + attr_reader :business_entity - # Business's physical address - PO boxes, UPS drops, and FedEx drops are not - # acceptable; APO/FPO are acceptable. - sig { returns(Lithic::Address) } - attr_reader :address - - sig { params(address: Lithic::Address::OrHash).void } - attr_writer :address - - # Legal (formal) business name. - sig { returns(String) } - attr_accessor :legal_business_name - - # Any name that the business operates under that is not its legal business name - # (if applicable). - sig { returns(T.nilable(String)) } - attr_reader :dba_business_name - - sig { params(dba_business_name: String).void } - attr_writer :dba_business_name - - # Government-issued identification number. US Federal Employer Identification - # Numbers (EIN) are currently supported, entered as full nine-digits, with or - # without hyphens. - sig { returns(T.nilable(String)) } - attr_reader :government_id - - sig { params(government_id: String).void } - attr_writer :government_id - - # Parent company name (if applicable). - sig { returns(T.nilable(String)) } - attr_reader :parent_company - - sig { params(parent_company: String).void } - attr_writer :parent_company - - # One or more of the business's phone number(s), entered as a list in E.164 - # format. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :phone_numbers - - sig { params(phone_numbers: T::Array[String]).void } - attr_writer :phone_numbers - - # Information for business for which the account is being opened. - sig do - params( - address: Lithic::Address::OrHash, - legal_business_name: String, - dba_business_name: String, - government_id: String, - parent_company: String, - phone_numbers: T::Array[String] - ).returns(T.attached_class) - end - def self.new( - # Business's physical address - PO boxes, UPS drops, and FedEx drops are not - # acceptable; APO/FPO are acceptable. - address:, - # Legal (formal) business name. - legal_business_name:, - # Any name that the business operates under that is not its legal business name - # (if applicable). - dba_business_name: nil, - # Government-issued identification number. US Federal Employer Identification - # Numbers (EIN) are currently supported, entered as full nine-digits, with or - # without hyphens. - government_id: nil, - # Parent company name (if applicable). - parent_company: nil, - # One or more of the business's phone number(s), entered as a list in E.164 - # format. - phone_numbers: nil - ) - end - - sig do - override.returns( - { - address: Lithic::Address, - legal_business_name: String, - dba_business_name: String, - government_id: String, - parent_company: String, - phone_numbers: T::Array[String] - } - ) - end - def to_hash - end - end - - class ControlPerson < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::AccountHolderCreateParams::ControlPerson, - Lithic::Internal::AnyHash + sig do + params( + business_entity: + Lithic::AccountHolderCreateParams::Body::KYBDelegated::BusinessEntity::OrHash + ).void + end + attr_writer :business_entity + + # You can submit a list of all direct and indirect individuals with 25% or more + # ownership in the company. A maximum of 4 beneficial owners can be submitted. If + # no individual owns 25% of the company you do not need to send beneficial owner + # information. See + # [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf) + # (Section I) for more background on individuals that should be included. + sig do + returns( + T.nilable( + T::Array[ + Lithic::AccountHolderCreateParams::Body::KYBDelegated::BeneficialOwnerIndividual + ] + ) ) end - - # Individual's current address - PO boxes, UPS drops, and FedEx drops are not - # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported. - sig { returns(Lithic::Address) } - attr_reader :address - - sig { params(address: Lithic::Address::OrHash).void } - attr_writer :address - - # Individual's date of birth, as an RFC 3339 date. - sig { returns(String) } - attr_accessor :dob - - # Individual's email address. If utilizing Lithic for chargeback processing, this - # customer email address may be used to communicate dispute status and resolution. - sig { returns(String) } - attr_accessor :email - - # Individual's first name, as it appears on government-issued identity documents. - sig { returns(String) } - attr_accessor :first_name - - # Government-issued identification number (required for identity verification and - # compliance with banking regulations). Social Security Numbers (SSN) and - # Individual Taxpayer Identification Numbers (ITIN) are currently supported, - # entered as full nine-digits, with or without hyphens - sig { returns(String) } - attr_accessor :government_id - - # Individual's last name, as it appears on government-issued identity documents. - sig { returns(String) } - attr_accessor :last_name - - # Individual's phone number, entered in E.164 format. - sig { returns(T.nilable(String)) } - attr_reader :phone_number - - sig { params(phone_number: String).void } - attr_writer :phone_number - - # An individual with significant responsibility for managing the legal entity - # (e.g., a Chief Executive Officer, Chief Financial Officer, Chief Operating - # Officer, Managing Member, General Partner, President, Vice President, or - # Treasurer). This can be an executive, or someone who will have program-wide - # access to the cards that Lithic will provide. In some cases, this individual - # could also be a beneficial owner listed above. See - # [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf) - # (Section II) for more background. - sig do - params( - address: Lithic::Address::OrHash, - dob: String, - email: String, - first_name: String, - government_id: String, - last_name: String, - phone_number: String - ).returns(T.attached_class) - end - def self.new( - # Individual's current address - PO boxes, UPS drops, and FedEx drops are not - # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported. - address:, - # Individual's date of birth, as an RFC 3339 date. - dob:, - # Individual's email address. If utilizing Lithic for chargeback processing, this - # customer email address may be used to communicate dispute status and resolution. - email:, - # Individual's first name, as it appears on government-issued identity documents. - first_name:, - # Government-issued identification number (required for identity verification and - # compliance with banking regulations). Social Security Numbers (SSN) and - # Individual Taxpayer Identification Numbers (ITIN) are currently supported, - # entered as full nine-digits, with or without hyphens - government_id:, - # Individual's last name, as it appears on government-issued identity documents. - last_name:, - # Individual's phone number, entered in E.164 format. - phone_number: nil - ) - end - - sig do - override.returns( - { - address: Lithic::Address, - dob: String, - email: String, - first_name: String, - government_id: String, - last_name: String, - phone_number: String - } - ) - end - def to_hash - end - end - - # Specifies the workflow type. This must be 'KYC_EXEMPT' - module Workflow - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all(Symbol, Lithic::AccountHolderCreateParams::Workflow) + attr_reader :beneficial_owner_individuals + + sig do + params( + beneficial_owner_individuals: + T::Array[ + Lithic::AccountHolderCreateParams::Body::KYBDelegated::BeneficialOwnerIndividual::OrHash + ] + ).void end - OrSymbol = T.type_alias { T.any(Symbol, String) } + attr_writer :beneficial_owner_individuals + + # An individual with significant responsibility for managing the legal entity + # (e.g., a Chief Executive Officer, Chief Financial Officer, Chief Operating + # Officer, Managing Member, General Partner, President, Vice President, or + # Treasurer). This can be an executive, or someone who will have program-wide + # access to the cards that Lithic will provide. In some cases, this individual + # could also be a beneficial owner listed above. See + # [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf) + # (Section II) for more background. + sig do + returns( + T.nilable( + Lithic::AccountHolderCreateParams::Body::KYBDelegated::ControlPerson + ) + ) + end + attr_reader :control_person - KYC_EXEMPT = - T.let( - :KYC_EXEMPT, - Lithic::AccountHolderCreateParams::Workflow::TaggedSymbol - ) + sig do + params( + control_person: + Lithic::AccountHolderCreateParams::Body::KYBDelegated::ControlPerson::OrHash + ).void + end + attr_writer :control_person + + # A user provided id that can be used to link an account holder with an external + # system + sig { returns(T.nilable(String)) } + attr_reader :external_id + + sig { params(external_id: String).void } + attr_writer :external_id + + # 6-digit North American Industry Classification System (NAICS) code for the + # business. + sig { returns(T.nilable(String)) } + attr_reader :naics_code + + sig { params(naics_code: String).void } + attr_writer :naics_code + + # Short description of the company's line of business (i.e., what does the company + # do?). + sig { returns(T.nilable(String)) } + attr_reader :nature_of_business + + sig { params(nature_of_business: String).void } + attr_writer :nature_of_business + + # An RFC 3339 timestamp indicating when the account holder accepted the applicable + # legal agreements (e.g., cardholder terms) as agreed upon during API customer's + # implementation with Lithic. + sig { returns(T.nilable(String)) } + attr_reader :tos_timestamp + + sig { params(tos_timestamp: String).void } + attr_writer :tos_timestamp + + # Company website URL. + sig { returns(T.nilable(String)) } + attr_reader :website_url + + sig { params(website_url: String).void } + attr_writer :website_url + + # Specifies the type of KYB workflow to run. + sig do + returns( + T.nilable( + Lithic::AccountHolderCreateParams::Body::KYBDelegated::Workflow::OrSymbol + ) + ) + end + attr_reader :workflow - sig do - override.returns( - T::Array[Lithic::AccountHolderCreateParams::Workflow::TaggedSymbol] + sig do + params( + workflow: + Lithic::AccountHolderCreateParams::Body::KYBDelegated::Workflow::OrSymbol + ).void + end + attr_writer :workflow + + sig do + params( + business_entity: + Lithic::AccountHolderCreateParams::Body::KYBDelegated::BusinessEntity::OrHash, + beneficial_owner_individuals: + T::Array[ + Lithic::AccountHolderCreateParams::Body::KYBDelegated::BeneficialOwnerIndividual::OrHash + ], + control_person: + Lithic::AccountHolderCreateParams::Body::KYBDelegated::ControlPerson::OrHash, + external_id: String, + naics_code: String, + nature_of_business: String, + tos_timestamp: String, + website_url: String, + workflow: + Lithic::AccountHolderCreateParams::Body::KYBDelegated::Workflow::OrSymbol + ).returns(T.attached_class) + end + def self.new( + # Information for business for which the account is being opened. + business_entity:, + # You can submit a list of all direct and indirect individuals with 25% or more + # ownership in the company. A maximum of 4 beneficial owners can be submitted. If + # no individual owns 25% of the company you do not need to send beneficial owner + # information. See + # [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf) + # (Section I) for more background on individuals that should be included. + beneficial_owner_individuals: nil, + # An individual with significant responsibility for managing the legal entity + # (e.g., a Chief Executive Officer, Chief Financial Officer, Chief Operating + # Officer, Managing Member, General Partner, President, Vice President, or + # Treasurer). This can be an executive, or someone who will have program-wide + # access to the cards that Lithic will provide. In some cases, this individual + # could also be a beneficial owner listed above. See + # [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf) + # (Section II) for more background. + control_person: nil, + # A user provided id that can be used to link an account holder with an external + # system + external_id: nil, + # 6-digit North American Industry Classification System (NAICS) code for the + # business. + naics_code: nil, + # Short description of the company's line of business (i.e., what does the company + # do?). + nature_of_business: nil, + # An RFC 3339 timestamp indicating when the account holder accepted the applicable + # legal agreements (e.g., cardholder terms) as agreed upon during API customer's + # implementation with Lithic. + tos_timestamp: nil, + # Company website URL. + website_url: nil, + # Specifies the type of KYB workflow to run. + workflow: nil ) - end - def self.values - end - end + end - class Individual < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::AccountHolderCreateParams::Individual, - Lithic::Internal::AnyHash + sig do + override.returns( + { + business_entity: + Lithic::AccountHolderCreateParams::Body::KYBDelegated::BusinessEntity, + beneficial_owner_individuals: + T::Array[ + Lithic::AccountHolderCreateParams::Body::KYBDelegated::BeneficialOwnerIndividual + ], + control_person: + Lithic::AccountHolderCreateParams::Body::KYBDelegated::ControlPerson, + external_id: String, + naics_code: String, + nature_of_business: String, + tos_timestamp: String, + website_url: String, + workflow: + Lithic::AccountHolderCreateParams::Body::KYBDelegated::Workflow::OrSymbol + } ) end + def to_hash + end - # Individual's current address - PO boxes, UPS drops, and FedEx drops are not - # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported. - sig { returns(Lithic::Address) } - attr_reader :address - - sig { params(address: Lithic::Address::OrHash).void } - attr_writer :address - - # Individual's date of birth, as an RFC 3339 date. - sig { returns(String) } - attr_accessor :dob - - # Individual's email address. If utilizing Lithic for chargeback processing, this - # customer email address may be used to communicate dispute status and resolution. - sig { returns(String) } - attr_accessor :email - - # Individual's first name, as it appears on government-issued identity documents. - sig { returns(String) } - attr_accessor :first_name - - # Government-issued identification number (required for identity verification and - # compliance with banking regulations). Social Security Numbers (SSN) and - # Individual Taxpayer Identification Numbers (ITIN) are currently supported, - # entered as full nine-digits, with or without hyphens - sig { returns(String) } - attr_accessor :government_id - - # Individual's last name, as it appears on government-issued identity documents. - sig { returns(String) } - attr_accessor :last_name - - # Individual's phone number, entered in E.164 format. - sig { returns(String) } - attr_accessor :phone_number - - # Information on individual for whom the account is being opened and KYC is being - # run. - sig do - params( - address: Lithic::Address::OrHash, - dob: String, - email: String, - first_name: String, - government_id: String, - last_name: String, - phone_number: String - ).returns(T.attached_class) - end - def self.new( - # Individual's current address - PO boxes, UPS drops, and FedEx drops are not - # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported. - address:, - # Individual's date of birth, as an RFC 3339 date. - dob:, - # Individual's email address. If utilizing Lithic for chargeback processing, this - # customer email address may be used to communicate dispute status and resolution. - email:, - # Individual's first name, as it appears on government-issued identity documents. - first_name:, - # Government-issued identification number (required for identity verification and - # compliance with banking regulations). Social Security Numbers (SSN) and - # Individual Taxpayer Identification Numbers (ITIN) are currently supported, - # entered as full nine-digits, with or without hyphens - government_id:, - # Individual's last name, as it appears on government-issued identity documents. - last_name:, - # Individual's phone number, entered in E.164 format. - phone_number: - ) - end - - sig do - override.returns( - { - address: Lithic::Address, - dob: String, - email: String, - first_name: String, - government_id: String, - last_name: String, - phone_number: String - } - ) - end - def to_hash - end - end + class BusinessEntity < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::AccountHolderCreateParams::Body::KYBDelegated::BusinessEntity, + Lithic::Internal::AnyHash + ) + end + + # Business's physical address - PO boxes, UPS drops, and FedEx drops are not + # acceptable; APO/FPO are acceptable. + sig { returns(Lithic::Address) } + attr_reader :address + + sig { params(address: Lithic::Address::OrHash).void } + attr_writer :address + + # Legal (formal) business name. + sig { returns(String) } + attr_accessor :legal_business_name + + # Any name that the business operates under that is not its legal business name + # (if applicable). + sig { returns(T.nilable(String)) } + attr_reader :dba_business_name + + sig { params(dba_business_name: String).void } + attr_writer :dba_business_name + + # Government-issued identification number. US Federal Employer Identification + # Numbers (EIN) are currently supported, entered as full nine-digits, with or + # without hyphens. + sig { returns(T.nilable(String)) } + attr_reader :government_id + + sig { params(government_id: String).void } + attr_writer :government_id + + # Parent company name (if applicable). + sig { returns(T.nilable(String)) } + attr_reader :parent_company + + sig { params(parent_company: String).void } + attr_writer :parent_company + + # One or more of the business's phone number(s), entered as a list in E.164 + # format. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :phone_numbers + + sig { params(phone_numbers: T::Array[String]).void } + attr_writer :phone_numbers + + # Information for business for which the account is being opened. + sig do + params( + address: Lithic::Address::OrHash, + legal_business_name: String, + dba_business_name: String, + government_id: String, + parent_company: String, + phone_numbers: T::Array[String] + ).returns(T.attached_class) + end + def self.new( + # Business's physical address - PO boxes, UPS drops, and FedEx drops are not + # acceptable; APO/FPO are acceptable. + address:, + # Legal (formal) business name. + legal_business_name:, + # Any name that the business operates under that is not its legal business name + # (if applicable). + dba_business_name: nil, + # Government-issued identification number. US Federal Employer Identification + # Numbers (EIN) are currently supported, entered as full nine-digits, with or + # without hyphens. + government_id: nil, + # Parent company name (if applicable). + parent_company: nil, + # One or more of the business's phone number(s), entered as a list in E.164 + # format. + phone_numbers: nil + ) + end + + sig do + override.returns( + { + address: Lithic::Address, + legal_business_name: String, + dba_business_name: String, + government_id: String, + parent_company: String, + phone_numbers: T::Array[String] + } + ) + end + def to_hash + end + end - # Specifies the type of KYC Exempt user - module KYCExemptionType - extend Lithic::Internal::Type::Enum + class BeneficialOwnerIndividual < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::AccountHolderCreateParams::Body::KYBDelegated::BeneficialOwnerIndividual, + Lithic::Internal::AnyHash + ) + end + + # Individual's current address - PO boxes, UPS drops, and FedEx drops are not + # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported. + sig { returns(Lithic::Address) } + attr_reader :address + + sig { params(address: Lithic::Address::OrHash).void } + attr_writer :address + + # Individual's date of birth, as an RFC 3339 date. + sig { returns(String) } + attr_accessor :dob + + # Individual's email address. If utilizing Lithic for chargeback processing, this + # customer email address may be used to communicate dispute status and resolution. + sig { returns(String) } + attr_accessor :email + + # Individual's first name, as it appears on government-issued identity documents. + sig { returns(String) } + attr_accessor :first_name + + # Government-issued identification number (required for identity verification and + # compliance with banking regulations). Social Security Numbers (SSN) and + # Individual Taxpayer Identification Numbers (ITIN) are currently supported, + # entered as full nine-digits, with or without hyphens + sig { returns(String) } + attr_accessor :government_id + + # Individual's last name, as it appears on government-issued identity documents. + sig { returns(String) } + attr_accessor :last_name + + # Individual's phone number, entered in E.164 format. + sig { returns(T.nilable(String)) } + attr_reader :phone_number + + sig { params(phone_number: String).void } + attr_writer :phone_number + + # Individuals associated with a KYB application. Phone number is optional. + sig do + params( + address: Lithic::Address::OrHash, + dob: String, + email: String, + first_name: String, + government_id: String, + last_name: String, + phone_number: String + ).returns(T.attached_class) + end + def self.new( + # Individual's current address - PO boxes, UPS drops, and FedEx drops are not + # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported. + address:, + # Individual's date of birth, as an RFC 3339 date. + dob:, + # Individual's email address. If utilizing Lithic for chargeback processing, this + # customer email address may be used to communicate dispute status and resolution. + email:, + # Individual's first name, as it appears on government-issued identity documents. + first_name:, + # Government-issued identification number (required for identity verification and + # compliance with banking regulations). Social Security Numbers (SSN) and + # Individual Taxpayer Identification Numbers (ITIN) are currently supported, + # entered as full nine-digits, with or without hyphens + government_id:, + # Individual's last name, as it appears on government-issued identity documents. + last_name:, + # Individual's phone number, entered in E.164 format. + phone_number: nil + ) + end + + sig do + override.returns( + { + address: Lithic::Address, + dob: String, + email: String, + first_name: String, + government_id: String, + last_name: String, + phone_number: String + } + ) + end + def to_hash + end + end - TaggedSymbol = - T.type_alias do - T.all(Symbol, Lithic::AccountHolderCreateParams::KYCExemptionType) + class ControlPerson < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::AccountHolderCreateParams::Body::KYBDelegated::ControlPerson, + Lithic::Internal::AnyHash + ) + end + + # Individual's current address - PO boxes, UPS drops, and FedEx drops are not + # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported. + sig { returns(Lithic::Address) } + attr_reader :address + + sig { params(address: Lithic::Address::OrHash).void } + attr_writer :address + + # Individual's date of birth, as an RFC 3339 date. + sig { returns(String) } + attr_accessor :dob + + # Individual's email address. If utilizing Lithic for chargeback processing, this + # customer email address may be used to communicate dispute status and resolution. + sig { returns(String) } + attr_accessor :email + + # Individual's first name, as it appears on government-issued identity documents. + sig { returns(String) } + attr_accessor :first_name + + # Government-issued identification number (required for identity verification and + # compliance with banking regulations). Social Security Numbers (SSN) and + # Individual Taxpayer Identification Numbers (ITIN) are currently supported, + # entered as full nine-digits, with or without hyphens + sig { returns(String) } + attr_accessor :government_id + + # Individual's last name, as it appears on government-issued identity documents. + sig { returns(String) } + attr_accessor :last_name + + # Individual's phone number, entered in E.164 format. + sig { returns(T.nilable(String)) } + attr_reader :phone_number + + sig { params(phone_number: String).void } + attr_writer :phone_number + + # An individual with significant responsibility for managing the legal entity + # (e.g., a Chief Executive Officer, Chief Financial Officer, Chief Operating + # Officer, Managing Member, General Partner, President, Vice President, or + # Treasurer). This can be an executive, or someone who will have program-wide + # access to the cards that Lithic will provide. In some cases, this individual + # could also be a beneficial owner listed above. See + # [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf) + # (Section II) for more background. + sig do + params( + address: Lithic::Address::OrHash, + dob: String, + email: String, + first_name: String, + government_id: String, + last_name: String, + phone_number: String + ).returns(T.attached_class) + end + def self.new( + # Individual's current address - PO boxes, UPS drops, and FedEx drops are not + # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported. + address:, + # Individual's date of birth, as an RFC 3339 date. + dob:, + # Individual's email address. If utilizing Lithic for chargeback processing, this + # customer email address may be used to communicate dispute status and resolution. + email:, + # Individual's first name, as it appears on government-issued identity documents. + first_name:, + # Government-issued identification number (required for identity verification and + # compliance with banking regulations). Social Security Numbers (SSN) and + # Individual Taxpayer Identification Numbers (ITIN) are currently supported, + # entered as full nine-digits, with or without hyphens + government_id:, + # Individual's last name, as it appears on government-issued identity documents. + last_name:, + # Individual's phone number, entered in E.164 format. + phone_number: nil + ) + end + + sig do + override.returns( + { + address: Lithic::Address, + dob: String, + email: String, + first_name: String, + government_id: String, + last_name: String, + phone_number: String + } + ) + end + def to_hash + end end - OrSymbol = T.type_alias { T.any(Symbol, String) } - AUTHORIZED_USER = - T.let( - :AUTHORIZED_USER, - Lithic::AccountHolderCreateParams::KYCExemptionType::TaggedSymbol - ) - PREPAID_CARD_USER = - T.let( - :PREPAID_CARD_USER, - Lithic::AccountHolderCreateParams::KYCExemptionType::TaggedSymbol - ) + # Specifies the type of KYB workflow to run. + module Workflow + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Lithic::AccountHolderCreateParams::Body::KYBDelegated::Workflow + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + KYB_DELEGATED = + T.let( + :KYB_DELEGATED, + Lithic::AccountHolderCreateParams::Body::KYBDelegated::Workflow::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::AccountHolderCreateParams::Body::KYBDelegated::Workflow::TaggedSymbol + ] + ) + end + def self.values + end + end + end sig do override.returns( - T::Array[ - Lithic::AccountHolderCreateParams::KYCExemptionType::TaggedSymbol - ] + T::Array[Lithic::AccountHolderCreateParams::Body::Variants] ) end - def self.values + def self.variants end end end diff --git a/rbi/lithic/models/account_holder_list_documents_params.rbi b/rbi/lithic/models/account_holder_list_documents_params.rbi index 81dd5c71..a1c3f7f0 100644 --- a/rbi/lithic/models/account_holder_list_documents_params.rbi +++ b/rbi/lithic/models/account_holder_list_documents_params.rbi @@ -14,15 +14,26 @@ module Lithic ) end + sig { returns(String) } + attr_accessor :account_holder_token + sig do - params(request_options: Lithic::RequestOptions::OrHash).returns( - T.attached_class - ) + params( + account_holder_token: String, + request_options: Lithic::RequestOptions::OrHash + ).returns(T.attached_class) end - def self.new(request_options: {}) + def self.new(account_holder_token:, request_options: {}) end - sig { override.returns({ request_options: Lithic::RequestOptions }) } + sig do + override.returns( + { + account_holder_token: String, + request_options: Lithic::RequestOptions + } + ) + end def to_hash end end diff --git a/rbi/lithic/models/account_holder_retrieve_document_params.rbi b/rbi/lithic/models/account_holder_retrieve_document_params.rbi index 789bf59c..266526d6 100644 --- a/rbi/lithic/models/account_holder_retrieve_document_params.rbi +++ b/rbi/lithic/models/account_holder_retrieve_document_params.rbi @@ -17,19 +17,24 @@ module Lithic sig { returns(String) } attr_accessor :account_holder_token + sig { returns(String) } + attr_accessor :document_token + sig do params( account_holder_token: String, + document_token: String, request_options: Lithic::RequestOptions::OrHash ).returns(T.attached_class) end - def self.new(account_holder_token:, request_options: {}) + def self.new(account_holder_token:, document_token:, request_options: {}) end sig do override.returns( { account_holder_token: String, + document_token: String, request_options: Lithic::RequestOptions } ) diff --git a/rbi/lithic/models/account_holder_retrieve_params.rbi b/rbi/lithic/models/account_holder_retrieve_params.rbi index b50edcdb..6ea2e615 100644 --- a/rbi/lithic/models/account_holder_retrieve_params.rbi +++ b/rbi/lithic/models/account_holder_retrieve_params.rbi @@ -11,15 +11,26 @@ module Lithic T.any(Lithic::AccountHolderRetrieveParams, Lithic::Internal::AnyHash) end + sig { returns(String) } + attr_accessor :account_holder_token + sig do - params(request_options: Lithic::RequestOptions::OrHash).returns( - T.attached_class - ) + params( + account_holder_token: String, + request_options: Lithic::RequestOptions::OrHash + ).returns(T.attached_class) end - def self.new(request_options: {}) + def self.new(account_holder_token:, request_options: {}) end - sig { override.returns({ request_options: Lithic::RequestOptions }) } + sig do + override.returns( + { + account_holder_token: String, + request_options: Lithic::RequestOptions + } + ) + end def to_hash end end diff --git a/rbi/lithic/models/account_holder_update_params.rbi b/rbi/lithic/models/account_holder_update_params.rbi index 7d5aa2a4..bcbd543e 100644 --- a/rbi/lithic/models/account_holder_update_params.rbi +++ b/rbi/lithic/models/account_holder_update_params.rbi @@ -11,244 +11,37 @@ module Lithic T.any(Lithic::AccountHolderUpdateParams, Lithic::Internal::AnyHash) end - # You must submit a list of all direct and indirect individuals with 25% or more - # ownership in the company. A maximum of 4 beneficial owners can be submitted. If - # no individual owns 25% of the company you do not need to send beneficial owner - # information. See - # [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf) - # (Section I) for more background on individuals that should be included. + sig { returns(String) } + attr_accessor :account_holder_token + + # The KYB request payload for updating a business. sig do returns( - T.nilable( - T::Array[ - Lithic::AccountHolderUpdateParams::BeneficialOwnerIndividual - ] + T.any( + Lithic::AccountHolderUpdateParams::Body::KYBPatchRequest, + Lithic::AccountHolderUpdateParams::Body::KYCPatchRequest, + Lithic::AccountHolderUpdateParams::Body::PatchRequest ) ) end - attr_reader :beneficial_owner_individuals - - sig do - params( - beneficial_owner_individuals: - T::Array[ - Lithic::AccountHolderUpdateParams::BeneficialOwnerIndividual::OrHash - ] - ).void - end - attr_writer :beneficial_owner_individuals - - # Information for business for which the account is being opened and KYB is being - # run. - sig do - returns(T.nilable(Lithic::AccountHolderUpdateParams::BusinessEntity)) - end - attr_reader :business_entity - - sig do - params( - business_entity: - Lithic::AccountHolderUpdateParams::BusinessEntity::OrHash - ).void - end - attr_writer :business_entity - - # An individual with significant responsibility for managing the legal entity - # (e.g., a Chief Executive Officer, Chief Financial Officer, Chief Operating - # Officer, Managing Member, General Partner, President, Vice President, or - # Treasurer). This can be an executive, or someone who will have program-wide - # access to the cards that Lithic will provide. In some cases, this individual - # could also be a beneficial owner listed above. See - # [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf) - # (Section II) for more background. - sig do - returns(T.nilable(Lithic::AccountHolderUpdateParams::ControlPerson)) - end - attr_reader :control_person - - sig do - params( - control_person: - Lithic::AccountHolderUpdateParams::ControlPerson::OrHash - ).void - end - attr_writer :control_person - - # A user provided id that can be used to link an account holder with an external - # system - sig { returns(T.nilable(String)) } - attr_reader :external_id - - sig { params(external_id: String).void } - attr_writer :external_id - - # 6-digit North American Industry Classification System (NAICS) code for the - # business. - sig { returns(T.nilable(String)) } - attr_reader :naics_code - - sig { params(naics_code: String).void } - attr_writer :naics_code - - # Short description of the company's line of business (i.e., what does the company - # do?). - sig { returns(T.nilable(String)) } - attr_reader :nature_of_business - - sig { params(nature_of_business: String).void } - attr_writer :nature_of_business - - # Company website URL. - sig { returns(T.nilable(String)) } - attr_reader :website_url - - sig { params(website_url: String).void } - attr_writer :website_url - - # Information on the individual for whom the account is being opened and KYC is - # being run. - sig { returns(T.nilable(Lithic::AccountHolderUpdateParams::Individual)) } - attr_reader :individual - - sig do - params( - individual: Lithic::AccountHolderUpdateParams::Individual::OrHash - ).void - end - attr_writer :individual - - # Allowed for: KYC-Exempt, BYO-KYC, BYO-KYB. - sig { returns(T.nilable(Lithic::AddressUpdate)) } - attr_reader :address - - sig { params(address: Lithic::AddressUpdate::OrHash).void } - attr_writer :address - - # Allowed for: KYC-Exempt, BYO-KYC. The token of the business account to which the - # account holder is associated. - sig { returns(T.nilable(String)) } - attr_reader :business_account_token - - sig { params(business_account_token: String).void } - attr_writer :business_account_token - - # Allowed for all Account Holders. Account holder's email address. The primary - # purpose of this field is for cardholder identification and verification during - # the digital wallet tokenization process. - sig { returns(T.nilable(String)) } - attr_reader :email - - sig { params(email: String).void } - attr_writer :email - - # Allowed for KYC-Exempt, BYO-KYC. Account holder's first name. - sig { returns(T.nilable(String)) } - attr_reader :first_name - - sig { params(first_name: String).void } - attr_writer :first_name - - # Allowed for KYC-Exempt, BYO-KYC. Account holder's last name. - sig { returns(T.nilable(String)) } - attr_reader :last_name - - sig { params(last_name: String).void } - attr_writer :last_name - - # Allowed for BYO-KYB. Legal business name of the account holder. - sig { returns(T.nilable(String)) } - attr_reader :legal_business_name - - sig { params(legal_business_name: String).void } - attr_writer :legal_business_name - - # Allowed for all Account Holders. Account holder's phone number, entered in E.164 - # format. The primary purpose of this field is for cardholder identification and - # verification during the digital wallet tokenization process. - sig { returns(T.nilable(String)) } - attr_reader :phone_number - - sig { params(phone_number: String).void } - attr_writer :phone_number + attr_accessor :body sig do params( - beneficial_owner_individuals: - T::Array[ - Lithic::AccountHolderUpdateParams::BeneficialOwnerIndividual::OrHash - ], - business_entity: - Lithic::AccountHolderUpdateParams::BusinessEntity::OrHash, - control_person: - Lithic::AccountHolderUpdateParams::ControlPerson::OrHash, - external_id: String, - naics_code: String, - nature_of_business: String, - website_url: String, - individual: Lithic::AccountHolderUpdateParams::Individual::OrHash, - address: Lithic::AddressUpdate::OrHash, - business_account_token: String, - email: String, - first_name: String, - last_name: String, - legal_business_name: String, - phone_number: String, + account_holder_token: String, + body: + T.any( + Lithic::AccountHolderUpdateParams::Body::KYBPatchRequest::OrHash, + Lithic::AccountHolderUpdateParams::Body::KYCPatchRequest::OrHash, + Lithic::AccountHolderUpdateParams::Body::PatchRequest::OrHash + ), request_options: Lithic::RequestOptions::OrHash ).returns(T.attached_class) end def self.new( - # You must submit a list of all direct and indirect individuals with 25% or more - # ownership in the company. A maximum of 4 beneficial owners can be submitted. If - # no individual owns 25% of the company you do not need to send beneficial owner - # information. See - # [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf) - # (Section I) for more background on individuals that should be included. - beneficial_owner_individuals: nil, - # Information for business for which the account is being opened and KYB is being - # run. - business_entity: nil, - # An individual with significant responsibility for managing the legal entity - # (e.g., a Chief Executive Officer, Chief Financial Officer, Chief Operating - # Officer, Managing Member, General Partner, President, Vice President, or - # Treasurer). This can be an executive, or someone who will have program-wide - # access to the cards that Lithic will provide. In some cases, this individual - # could also be a beneficial owner listed above. See - # [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf) - # (Section II) for more background. - control_person: nil, - # A user provided id that can be used to link an account holder with an external - # system - external_id: nil, - # 6-digit North American Industry Classification System (NAICS) code for the - # business. - naics_code: nil, - # Short description of the company's line of business (i.e., what does the company - # do?). - nature_of_business: nil, - # Company website URL. - website_url: nil, - # Information on the individual for whom the account is being opened and KYC is - # being run. - individual: nil, - # Allowed for: KYC-Exempt, BYO-KYC, BYO-KYB. - address: nil, - # Allowed for: KYC-Exempt, BYO-KYC. The token of the business account to which the - # account holder is associated. - business_account_token: nil, - # Allowed for all Account Holders. Account holder's email address. The primary - # purpose of this field is for cardholder identification and verification during - # the digital wallet tokenization process. - email: nil, - # Allowed for KYC-Exempt, BYO-KYC. Account holder's first name. - first_name: nil, - # Allowed for KYC-Exempt, BYO-KYC. Account holder's last name. - last_name: nil, - # Allowed for BYO-KYB. Legal business name of the account holder. - legal_business_name: nil, - # Allowed for all Account Holders. Account holder's phone number, entered in E.164 - # format. The primary purpose of this field is for cardholder identification and - # verification during the digital wallet tokenization process. - phone_number: nil, + account_holder_token:, + # The KYB request payload for updating a business. + body:, request_options: {} ) end @@ -256,24 +49,13 @@ module Lithic sig do override.returns( { - beneficial_owner_individuals: - T::Array[ - Lithic::AccountHolderUpdateParams::BeneficialOwnerIndividual - ], - business_entity: Lithic::AccountHolderUpdateParams::BusinessEntity, - control_person: Lithic::AccountHolderUpdateParams::ControlPerson, - external_id: String, - naics_code: String, - nature_of_business: String, - website_url: String, - individual: Lithic::AccountHolderUpdateParams::Individual, - address: Lithic::AddressUpdate, - business_account_token: String, - email: String, - first_name: String, - last_name: String, - legal_business_name: String, - phone_number: String, + account_holder_token: String, + body: + T.any( + Lithic::AccountHolderUpdateParams::Body::KYBPatchRequest, + Lithic::AccountHolderUpdateParams::Body::KYCPatchRequest, + Lithic::AccountHolderUpdateParams::Body::PatchRequest + ), request_options: Lithic::RequestOptions } ) @@ -281,493 +63,881 @@ module Lithic def to_hash end - class BeneficialOwnerIndividual < Lithic::Internal::Type::BaseModel - OrHash = + # The KYB request payload for updating a business. + module Body + extend Lithic::Internal::Type::Union + + Variants = T.type_alias do T.any( - Lithic::AccountHolderUpdateParams::BeneficialOwnerIndividual, - Lithic::Internal::AnyHash + Lithic::AccountHolderUpdateParams::Body::KYBPatchRequest, + Lithic::AccountHolderUpdateParams::Body::KYCPatchRequest, + Lithic::AccountHolderUpdateParams::Body::PatchRequest ) end - # Globally unique identifier for an entity. - sig { returns(String) } - attr_accessor :entity_token - - # Individual's current address - PO boxes, UPS drops, and FedEx drops are not - # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported. - sig { returns(T.nilable(Lithic::AddressUpdate)) } - attr_reader :address - - sig { params(address: Lithic::AddressUpdate::OrHash).void } - attr_writer :address - - # Individual's date of birth, as an RFC 3339 date. - sig { returns(T.nilable(String)) } - attr_reader :dob - - sig { params(dob: String).void } - attr_writer :dob - - # Individual's email address. If utilizing Lithic for chargeback processing, this - # customer email address may be used to communicate dispute status and resolution. - sig { returns(T.nilable(String)) } - attr_reader :email - - sig { params(email: String).void } - attr_writer :email - - # Individual's first name, as it appears on government-issued identity documents. - sig { returns(T.nilable(String)) } - attr_reader :first_name - - sig { params(first_name: String).void } - attr_writer :first_name - - # Individual's last name, as it appears on government-issued identity documents. - sig { returns(T.nilable(String)) } - attr_reader :last_name - - sig { params(last_name: String).void } - attr_writer :last_name - - # Individual's phone number, entered in E.164 format. - sig { returns(T.nilable(String)) } - attr_reader :phone_number - - sig { params(phone_number: String).void } - attr_writer :phone_number - - # Government-issued identification number (required for identity verification and - # compliance with banking regulations). Social Security Numbers (SSN) and - # Individual Taxpayer Identification Numbers (ITIN) are currently supported, - # entered as full nine-digits, with or without hyphens - sig { returns(T.nilable(String)) } - attr_reader :government_id - - sig { params(government_id: String).void } - attr_writer :government_id + class KYBPatchRequest < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::AccountHolderUpdateParams::Body::KYBPatchRequest, + Lithic::Internal::AnyHash + ) + end + + # You must submit a list of all direct and indirect individuals with 25% or more + # ownership in the company. A maximum of 4 beneficial owners can be submitted. If + # no individual owns 25% of the company you do not need to send beneficial owner + # information. See + # [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf) + # (Section I) for more background on individuals that should be included. + sig do + returns( + T.nilable( + T::Array[ + Lithic::AccountHolderUpdateParams::Body::KYBPatchRequest::BeneficialOwnerIndividual + ] + ) + ) + end + attr_reader :beneficial_owner_individuals + + sig do + params( + beneficial_owner_individuals: + T::Array[ + Lithic::AccountHolderUpdateParams::Body::KYBPatchRequest::BeneficialOwnerIndividual::OrHash + ] + ).void + end + attr_writer :beneficial_owner_individuals + + # Information for business for which the account is being opened and KYB is being + # run. + sig do + returns( + T.nilable( + Lithic::AccountHolderUpdateParams::Body::KYBPatchRequest::BusinessEntity + ) + ) + end + attr_reader :business_entity - # Individuals associated with a KYB application. Phone number is optional. - sig do - params( - entity_token: String, - address: Lithic::AddressUpdate::OrHash, - dob: String, - email: String, - first_name: String, - government_id: String, - last_name: String, - phone_number: String - ).returns(T.attached_class) - end - def self.new( - # Globally unique identifier for an entity. - entity_token:, - # Individual's current address - PO boxes, UPS drops, and FedEx drops are not - # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported. - address: nil, - # Individual's date of birth, as an RFC 3339 date. - dob: nil, - # Individual's email address. If utilizing Lithic for chargeback processing, this - # customer email address may be used to communicate dispute status and resolution. - email: nil, - # Individual's first name, as it appears on government-issued identity documents. - first_name: nil, - # Government-issued identification number (required for identity verification and - # compliance with banking regulations). Social Security Numbers (SSN) and - # Individual Taxpayer Identification Numbers (ITIN) are currently supported, - # entered as full nine-digits, with or without hyphens - government_id: nil, - # Individual's last name, as it appears on government-issued identity documents. - last_name: nil, - # Individual's phone number, entered in E.164 format. - phone_number: nil - ) - end + sig do + params( + business_entity: + Lithic::AccountHolderUpdateParams::Body::KYBPatchRequest::BusinessEntity::OrHash + ).void + end + attr_writer :business_entity + + # An individual with significant responsibility for managing the legal entity + # (e.g., a Chief Executive Officer, Chief Financial Officer, Chief Operating + # Officer, Managing Member, General Partner, President, Vice President, or + # Treasurer). This can be an executive, or someone who will have program-wide + # access to the cards that Lithic will provide. In some cases, this individual + # could also be a beneficial owner listed above. See + # [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf) + # (Section II) for more background. + sig do + returns( + T.nilable( + Lithic::AccountHolderUpdateParams::Body::KYBPatchRequest::ControlPerson + ) + ) + end + attr_reader :control_person - sig do - override.returns( - { - entity_token: String, - address: Lithic::AddressUpdate, - dob: String, - email: String, - first_name: String, - government_id: String, - last_name: String, - phone_number: String - } + sig do + params( + control_person: + Lithic::AccountHolderUpdateParams::Body::KYBPatchRequest::ControlPerson::OrHash + ).void + end + attr_writer :control_person + + # A user provided id that can be used to link an account holder with an external + # system + sig { returns(T.nilable(String)) } + attr_reader :external_id + + sig { params(external_id: String).void } + attr_writer :external_id + + # 6-digit North American Industry Classification System (NAICS) code for the + # business. + sig { returns(T.nilable(String)) } + attr_reader :naics_code + + sig { params(naics_code: String).void } + attr_writer :naics_code + + # Short description of the company's line of business (i.e., what does the company + # do?). + sig { returns(T.nilable(String)) } + attr_reader :nature_of_business + + sig { params(nature_of_business: String).void } + attr_writer :nature_of_business + + # Company website URL. + sig { returns(T.nilable(String)) } + attr_reader :website_url + + sig { params(website_url: String).void } + attr_writer :website_url + + # The KYB request payload for updating a business. + sig do + params( + beneficial_owner_individuals: + T::Array[ + Lithic::AccountHolderUpdateParams::Body::KYBPatchRequest::BeneficialOwnerIndividual::OrHash + ], + business_entity: + Lithic::AccountHolderUpdateParams::Body::KYBPatchRequest::BusinessEntity::OrHash, + control_person: + Lithic::AccountHolderUpdateParams::Body::KYBPatchRequest::ControlPerson::OrHash, + external_id: String, + naics_code: String, + nature_of_business: String, + website_url: String + ).returns(T.attached_class) + end + def self.new( + # You must submit a list of all direct and indirect individuals with 25% or more + # ownership in the company. A maximum of 4 beneficial owners can be submitted. If + # no individual owns 25% of the company you do not need to send beneficial owner + # information. See + # [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf) + # (Section I) for more background on individuals that should be included. + beneficial_owner_individuals: nil, + # Information for business for which the account is being opened and KYB is being + # run. + business_entity: nil, + # An individual with significant responsibility for managing the legal entity + # (e.g., a Chief Executive Officer, Chief Financial Officer, Chief Operating + # Officer, Managing Member, General Partner, President, Vice President, or + # Treasurer). This can be an executive, or someone who will have program-wide + # access to the cards that Lithic will provide. In some cases, this individual + # could also be a beneficial owner listed above. See + # [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf) + # (Section II) for more background. + control_person: nil, + # A user provided id that can be used to link an account holder with an external + # system + external_id: nil, + # 6-digit North American Industry Classification System (NAICS) code for the + # business. + naics_code: nil, + # Short description of the company's line of business (i.e., what does the company + # do?). + nature_of_business: nil, + # Company website URL. + website_url: nil ) - end - def to_hash - end - end + end - class BusinessEntity < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::AccountHolderUpdateParams::BusinessEntity, - Lithic::Internal::AnyHash + sig do + override.returns( + { + beneficial_owner_individuals: + T::Array[ + Lithic::AccountHolderUpdateParams::Body::KYBPatchRequest::BeneficialOwnerIndividual + ], + business_entity: + Lithic::AccountHolderUpdateParams::Body::KYBPatchRequest::BusinessEntity, + control_person: + Lithic::AccountHolderUpdateParams::Body::KYBPatchRequest::ControlPerson, + external_id: String, + naics_code: String, + nature_of_business: String, + website_url: String + } ) end + def to_hash + end - # Globally unique identifier for an entity. - sig { returns(String) } - attr_accessor :entity_token - - # Business''s physical address - PO boxes, UPS drops, and FedEx drops are not - # acceptable; APO/FPO are acceptable. - sig { returns(T.nilable(Lithic::AddressUpdate)) } - attr_reader :address - - sig { params(address: Lithic::AddressUpdate::OrHash).void } - attr_writer :address - - # Any name that the business operates under that is not its legal business name - # (if applicable). - sig { returns(T.nilable(String)) } - attr_reader :dba_business_name - - sig { params(dba_business_name: String).void } - attr_writer :dba_business_name - - # Government-issued identification number. US Federal Employer Identification - # Numbers (EIN) are currently supported, entered as full nine-digits, with or - # without hyphens. - sig { returns(T.nilable(String)) } - attr_reader :government_id - - sig { params(government_id: String).void } - attr_writer :government_id - - # Legal (formal) business name. - sig { returns(T.nilable(String)) } - attr_reader :legal_business_name - - sig { params(legal_business_name: String).void } - attr_writer :legal_business_name - - # Parent company name (if applicable). - sig { returns(T.nilable(String)) } - attr_reader :parent_company - - sig { params(parent_company: String).void } - attr_writer :parent_company - - # One or more of the business's phone number(s), entered as a list in E.164 - # format. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :phone_numbers - - sig { params(phone_numbers: T::Array[String]).void } - attr_writer :phone_numbers + class BeneficialOwnerIndividual < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::AccountHolderUpdateParams::Body::KYBPatchRequest::BeneficialOwnerIndividual, + Lithic::Internal::AnyHash + ) + end + + # Globally unique identifier for an entity. + sig { returns(String) } + attr_accessor :entity_token + + # Individual's current address - PO boxes, UPS drops, and FedEx drops are not + # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported. + sig { returns(T.nilable(Lithic::AddressUpdate)) } + attr_reader :address + + sig { params(address: Lithic::AddressUpdate::OrHash).void } + attr_writer :address + + # Individual's date of birth, as an RFC 3339 date. + sig { returns(T.nilable(String)) } + attr_reader :dob + + sig { params(dob: String).void } + attr_writer :dob + + # Individual's email address. If utilizing Lithic for chargeback processing, this + # customer email address may be used to communicate dispute status and resolution. + sig { returns(T.nilable(String)) } + attr_reader :email + + sig { params(email: String).void } + attr_writer :email + + # Individual's first name, as it appears on government-issued identity documents. + sig { returns(T.nilable(String)) } + attr_reader :first_name + + sig { params(first_name: String).void } + attr_writer :first_name + + # Individual's last name, as it appears on government-issued identity documents. + sig { returns(T.nilable(String)) } + attr_reader :last_name + + sig { params(last_name: String).void } + attr_writer :last_name + + # Individual's phone number, entered in E.164 format. + sig { returns(T.nilable(String)) } + attr_reader :phone_number + + sig { params(phone_number: String).void } + attr_writer :phone_number + + # Government-issued identification number (required for identity verification and + # compliance with banking regulations). Social Security Numbers (SSN) and + # Individual Taxpayer Identification Numbers (ITIN) are currently supported, + # entered as full nine-digits, with or without hyphens + sig { returns(T.nilable(String)) } + attr_reader :government_id + + sig { params(government_id: String).void } + attr_writer :government_id + + # Individuals associated with a KYB application. Phone number is optional. + sig do + params( + entity_token: String, + address: Lithic::AddressUpdate::OrHash, + dob: String, + email: String, + first_name: String, + government_id: String, + last_name: String, + phone_number: String + ).returns(T.attached_class) + end + def self.new( + # Globally unique identifier for an entity. + entity_token:, + # Individual's current address - PO boxes, UPS drops, and FedEx drops are not + # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported. + address: nil, + # Individual's date of birth, as an RFC 3339 date. + dob: nil, + # Individual's email address. If utilizing Lithic for chargeback processing, this + # customer email address may be used to communicate dispute status and resolution. + email: nil, + # Individual's first name, as it appears on government-issued identity documents. + first_name: nil, + # Government-issued identification number (required for identity verification and + # compliance with banking regulations). Social Security Numbers (SSN) and + # Individual Taxpayer Identification Numbers (ITIN) are currently supported, + # entered as full nine-digits, with or without hyphens + government_id: nil, + # Individual's last name, as it appears on government-issued identity documents. + last_name: nil, + # Individual's phone number, entered in E.164 format. + phone_number: nil + ) + end + + sig do + override.returns( + { + entity_token: String, + address: Lithic::AddressUpdate, + dob: String, + email: String, + first_name: String, + government_id: String, + last_name: String, + phone_number: String + } + ) + end + def to_hash + end + end - # Information for business for which the account is being opened and KYB is being - # run. - sig do - params( - entity_token: String, - address: Lithic::AddressUpdate::OrHash, - dba_business_name: String, - government_id: String, - legal_business_name: String, - parent_company: String, - phone_numbers: T::Array[String] - ).returns(T.attached_class) - end - def self.new( - # Globally unique identifier for an entity. - entity_token:, - # Business''s physical address - PO boxes, UPS drops, and FedEx drops are not - # acceptable; APO/FPO are acceptable. - address: nil, - # Any name that the business operates under that is not its legal business name - # (if applicable). - dba_business_name: nil, - # Government-issued identification number. US Federal Employer Identification - # Numbers (EIN) are currently supported, entered as full nine-digits, with or - # without hyphens. - government_id: nil, - # Legal (formal) business name. - legal_business_name: nil, - # Parent company name (if applicable). - parent_company: nil, - # One or more of the business's phone number(s), entered as a list in E.164 - # format. - phone_numbers: nil - ) - end + class BusinessEntity < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::AccountHolderUpdateParams::Body::KYBPatchRequest::BusinessEntity, + Lithic::Internal::AnyHash + ) + end + + # Globally unique identifier for an entity. + sig { returns(String) } + attr_accessor :entity_token + + # Business''s physical address - PO boxes, UPS drops, and FedEx drops are not + # acceptable; APO/FPO are acceptable. + sig { returns(T.nilable(Lithic::AddressUpdate)) } + attr_reader :address + + sig { params(address: Lithic::AddressUpdate::OrHash).void } + attr_writer :address + + # Any name that the business operates under that is not its legal business name + # (if applicable). + sig { returns(T.nilable(String)) } + attr_reader :dba_business_name + + sig { params(dba_business_name: String).void } + attr_writer :dba_business_name + + # Government-issued identification number. US Federal Employer Identification + # Numbers (EIN) are currently supported, entered as full nine-digits, with or + # without hyphens. + sig { returns(T.nilable(String)) } + attr_reader :government_id + + sig { params(government_id: String).void } + attr_writer :government_id + + # Legal (formal) business name. + sig { returns(T.nilable(String)) } + attr_reader :legal_business_name + + sig { params(legal_business_name: String).void } + attr_writer :legal_business_name + + # Parent company name (if applicable). + sig { returns(T.nilable(String)) } + attr_reader :parent_company + + sig { params(parent_company: String).void } + attr_writer :parent_company + + # One or more of the business's phone number(s), entered as a list in E.164 + # format. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :phone_numbers + + sig { params(phone_numbers: T::Array[String]).void } + attr_writer :phone_numbers + + # Information for business for which the account is being opened and KYB is being + # run. + sig do + params( + entity_token: String, + address: Lithic::AddressUpdate::OrHash, + dba_business_name: String, + government_id: String, + legal_business_name: String, + parent_company: String, + phone_numbers: T::Array[String] + ).returns(T.attached_class) + end + def self.new( + # Globally unique identifier for an entity. + entity_token:, + # Business''s physical address - PO boxes, UPS drops, and FedEx drops are not + # acceptable; APO/FPO are acceptable. + address: nil, + # Any name that the business operates under that is not its legal business name + # (if applicable). + dba_business_name: nil, + # Government-issued identification number. US Federal Employer Identification + # Numbers (EIN) are currently supported, entered as full nine-digits, with or + # without hyphens. + government_id: nil, + # Legal (formal) business name. + legal_business_name: nil, + # Parent company name (if applicable). + parent_company: nil, + # One or more of the business's phone number(s), entered as a list in E.164 + # format. + phone_numbers: nil + ) + end + + sig do + override.returns( + { + entity_token: String, + address: Lithic::AddressUpdate, + dba_business_name: String, + government_id: String, + legal_business_name: String, + parent_company: String, + phone_numbers: T::Array[String] + } + ) + end + def to_hash + end + end - sig do - override.returns( - { - entity_token: String, - address: Lithic::AddressUpdate, - dba_business_name: String, - government_id: String, - legal_business_name: String, - parent_company: String, - phone_numbers: T::Array[String] - } - ) - end - def to_hash + class ControlPerson < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::AccountHolderUpdateParams::Body::KYBPatchRequest::ControlPerson, + Lithic::Internal::AnyHash + ) + end + + # Globally unique identifier for an entity. + sig { returns(String) } + attr_accessor :entity_token + + # Individual's current address - PO boxes, UPS drops, and FedEx drops are not + # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported. + sig { returns(T.nilable(Lithic::AddressUpdate)) } + attr_reader :address + + sig { params(address: Lithic::AddressUpdate::OrHash).void } + attr_writer :address + + # Individual's date of birth, as an RFC 3339 date. + sig { returns(T.nilable(String)) } + attr_reader :dob + + sig { params(dob: String).void } + attr_writer :dob + + # Individual's email address. If utilizing Lithic for chargeback processing, this + # customer email address may be used to communicate dispute status and resolution. + sig { returns(T.nilable(String)) } + attr_reader :email + + sig { params(email: String).void } + attr_writer :email + + # Individual's first name, as it appears on government-issued identity documents. + sig { returns(T.nilable(String)) } + attr_reader :first_name + + sig { params(first_name: String).void } + attr_writer :first_name + + # Individual's last name, as it appears on government-issued identity documents. + sig { returns(T.nilable(String)) } + attr_reader :last_name + + sig { params(last_name: String).void } + attr_writer :last_name + + # Individual's phone number, entered in E.164 format. + sig { returns(T.nilable(String)) } + attr_reader :phone_number + + sig { params(phone_number: String).void } + attr_writer :phone_number + + # Government-issued identification number (required for identity verification and + # compliance with banking regulations). Social Security Numbers (SSN) and + # Individual Taxpayer Identification Numbers (ITIN) are currently supported, + # entered as full nine-digits, with or without hyphens + sig { returns(T.nilable(String)) } + attr_reader :government_id + + sig { params(government_id: String).void } + attr_writer :government_id + + # An individual with significant responsibility for managing the legal entity + # (e.g., a Chief Executive Officer, Chief Financial Officer, Chief Operating + # Officer, Managing Member, General Partner, President, Vice President, or + # Treasurer). This can be an executive, or someone who will have program-wide + # access to the cards that Lithic will provide. In some cases, this individual + # could also be a beneficial owner listed above. See + # [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf) + # (Section II) for more background. + sig do + params( + entity_token: String, + address: Lithic::AddressUpdate::OrHash, + dob: String, + email: String, + first_name: String, + government_id: String, + last_name: String, + phone_number: String + ).returns(T.attached_class) + end + def self.new( + # Globally unique identifier for an entity. + entity_token:, + # Individual's current address - PO boxes, UPS drops, and FedEx drops are not + # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported. + address: nil, + # Individual's date of birth, as an RFC 3339 date. + dob: nil, + # Individual's email address. If utilizing Lithic for chargeback processing, this + # customer email address may be used to communicate dispute status and resolution. + email: nil, + # Individual's first name, as it appears on government-issued identity documents. + first_name: nil, + # Government-issued identification number (required for identity verification and + # compliance with banking regulations). Social Security Numbers (SSN) and + # Individual Taxpayer Identification Numbers (ITIN) are currently supported, + # entered as full nine-digits, with or without hyphens + government_id: nil, + # Individual's last name, as it appears on government-issued identity documents. + last_name: nil, + # Individual's phone number, entered in E.164 format. + phone_number: nil + ) + end + + sig do + override.returns( + { + entity_token: String, + address: Lithic::AddressUpdate, + dob: String, + email: String, + first_name: String, + government_id: String, + last_name: String, + phone_number: String + } + ) + end + def to_hash + end + end end - end - class ControlPerson < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::AccountHolderUpdateParams::ControlPerson, - Lithic::Internal::AnyHash + class KYCPatchRequest < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::AccountHolderUpdateParams::Body::KYCPatchRequest, + Lithic::Internal::AnyHash + ) + end + + # A user provided id that can be used to link an account holder with an external + # system + sig { returns(T.nilable(String)) } + attr_reader :external_id + + sig { params(external_id: String).void } + attr_writer :external_id + + # Information on the individual for whom the account is being opened and KYC is + # being run. + sig do + returns( + T.nilable( + Lithic::AccountHolderUpdateParams::Body::KYCPatchRequest::Individual + ) ) end + attr_reader :individual - # Globally unique identifier for an entity. - sig { returns(String) } - attr_accessor :entity_token - - # Individual's current address - PO boxes, UPS drops, and FedEx drops are not - # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported. - sig { returns(T.nilable(Lithic::AddressUpdate)) } - attr_reader :address - - sig { params(address: Lithic::AddressUpdate::OrHash).void } - attr_writer :address - - # Individual's date of birth, as an RFC 3339 date. - sig { returns(T.nilable(String)) } - attr_reader :dob - - sig { params(dob: String).void } - attr_writer :dob - - # Individual's email address. If utilizing Lithic for chargeback processing, this - # customer email address may be used to communicate dispute status and resolution. - sig { returns(T.nilable(String)) } - attr_reader :email - - sig { params(email: String).void } - attr_writer :email - - # Individual's first name, as it appears on government-issued identity documents. - sig { returns(T.nilable(String)) } - attr_reader :first_name - - sig { params(first_name: String).void } - attr_writer :first_name - - # Individual's last name, as it appears on government-issued identity documents. - sig { returns(T.nilable(String)) } - attr_reader :last_name - - sig { params(last_name: String).void } - attr_writer :last_name - - # Individual's phone number, entered in E.164 format. - sig { returns(T.nilable(String)) } - attr_reader :phone_number - - sig { params(phone_number: String).void } - attr_writer :phone_number - - # Government-issued identification number (required for identity verification and - # compliance with banking regulations). Social Security Numbers (SSN) and - # Individual Taxpayer Identification Numbers (ITIN) are currently supported, - # entered as full nine-digits, with or without hyphens - sig { returns(T.nilable(String)) } - attr_reader :government_id + sig do + params( + individual: + Lithic::AccountHolderUpdateParams::Body::KYCPatchRequest::Individual::OrHash + ).void + end + attr_writer :individual + + # The KYC request payload for updating an account holder. + sig do + params( + external_id: String, + individual: + Lithic::AccountHolderUpdateParams::Body::KYCPatchRequest::Individual::OrHash + ).returns(T.attached_class) + end + def self.new( + # A user provided id that can be used to link an account holder with an external + # system + external_id: nil, + # Information on the individual for whom the account is being opened and KYC is + # being run. + individual: nil + ) + end - sig { params(government_id: String).void } - attr_writer :government_id + sig do + override.returns( + { + external_id: String, + individual: + Lithic::AccountHolderUpdateParams::Body::KYCPatchRequest::Individual + } + ) + end + def to_hash + end - # An individual with significant responsibility for managing the legal entity - # (e.g., a Chief Executive Officer, Chief Financial Officer, Chief Operating - # Officer, Managing Member, General Partner, President, Vice President, or - # Treasurer). This can be an executive, or someone who will have program-wide - # access to the cards that Lithic will provide. In some cases, this individual - # could also be a beneficial owner listed above. See - # [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf) - # (Section II) for more background. - sig do - params( - entity_token: String, - address: Lithic::AddressUpdate::OrHash, - dob: String, - email: String, - first_name: String, - government_id: String, - last_name: String, - phone_number: String - ).returns(T.attached_class) - end - def self.new( - # Globally unique identifier for an entity. - entity_token:, - # Individual's current address - PO boxes, UPS drops, and FedEx drops are not - # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported. - address: nil, - # Individual's date of birth, as an RFC 3339 date. - dob: nil, - # Individual's email address. If utilizing Lithic for chargeback processing, this - # customer email address may be used to communicate dispute status and resolution. - email: nil, - # Individual's first name, as it appears on government-issued identity documents. - first_name: nil, - # Government-issued identification number (required for identity verification and - # compliance with banking regulations). Social Security Numbers (SSN) and - # Individual Taxpayer Identification Numbers (ITIN) are currently supported, - # entered as full nine-digits, with or without hyphens - government_id: nil, - # Individual's last name, as it appears on government-issued identity documents. - last_name: nil, - # Individual's phone number, entered in E.164 format. - phone_number: nil - ) + class Individual < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::AccountHolderUpdateParams::Body::KYCPatchRequest::Individual, + Lithic::Internal::AnyHash + ) + end + + # Globally unique identifier for an entity. + sig { returns(String) } + attr_accessor :entity_token + + # Individual's current address - PO boxes, UPS drops, and FedEx drops are not + # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported. + sig { returns(T.nilable(Lithic::AddressUpdate)) } + attr_reader :address + + sig { params(address: Lithic::AddressUpdate::OrHash).void } + attr_writer :address + + # Individual's date of birth, as an RFC 3339 date. + sig { returns(T.nilable(String)) } + attr_reader :dob + + sig { params(dob: String).void } + attr_writer :dob + + # Individual's email address. If utilizing Lithic for chargeback processing, this + # customer email address may be used to communicate dispute status and resolution. + sig { returns(T.nilable(String)) } + attr_reader :email + + sig { params(email: String).void } + attr_writer :email + + # Individual's first name, as it appears on government-issued identity documents. + sig { returns(T.nilable(String)) } + attr_reader :first_name + + sig { params(first_name: String).void } + attr_writer :first_name + + # Individual's last name, as it appears on government-issued identity documents. + sig { returns(T.nilable(String)) } + attr_reader :last_name + + sig { params(last_name: String).void } + attr_writer :last_name + + # Individual's phone number, entered in E.164 format. + sig { returns(T.nilable(String)) } + attr_reader :phone_number + + sig { params(phone_number: String).void } + attr_writer :phone_number + + # Government-issued identification number (required for identity verification and + # compliance with banking regulations). Social Security Numbers (SSN) and + # Individual Taxpayer Identification Numbers (ITIN) are currently supported, + # entered as full nine-digits, with or without hyphens + sig { returns(T.nilable(String)) } + attr_reader :government_id + + sig { params(government_id: String).void } + attr_writer :government_id + + # Information on the individual for whom the account is being opened and KYC is + # being run. + sig do + params( + entity_token: String, + address: Lithic::AddressUpdate::OrHash, + dob: String, + email: String, + first_name: String, + government_id: String, + last_name: String, + phone_number: String + ).returns(T.attached_class) + end + def self.new( + # Globally unique identifier for an entity. + entity_token:, + # Individual's current address - PO boxes, UPS drops, and FedEx drops are not + # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported. + address: nil, + # Individual's date of birth, as an RFC 3339 date. + dob: nil, + # Individual's email address. If utilizing Lithic for chargeback processing, this + # customer email address may be used to communicate dispute status and resolution. + email: nil, + # Individual's first name, as it appears on government-issued identity documents. + first_name: nil, + # Government-issued identification number (required for identity verification and + # compliance with banking regulations). Social Security Numbers (SSN) and + # Individual Taxpayer Identification Numbers (ITIN) are currently supported, + # entered as full nine-digits, with or without hyphens + government_id: nil, + # Individual's last name, as it appears on government-issued identity documents. + last_name: nil, + # Individual's phone number, entered in E.164 format. + phone_number: nil + ) + end + + sig do + override.returns( + { + entity_token: String, + address: Lithic::AddressUpdate, + dob: String, + email: String, + first_name: String, + government_id: String, + last_name: String, + phone_number: String + } + ) + end + def to_hash + end + end end - sig do - override.returns( - { - entity_token: String, - address: Lithic::AddressUpdate, - dob: String, + class PatchRequest < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::AccountHolderUpdateParams::Body::PatchRequest, + Lithic::Internal::AnyHash + ) + end + + # Allowed for: KYC-Exempt, BYO-KYC, BYO-KYB. + sig { returns(T.nilable(Lithic::AddressUpdate)) } + attr_reader :address + + sig { params(address: Lithic::AddressUpdate::OrHash).void } + attr_writer :address + + # Allowed for: KYC-Exempt, BYO-KYC. The token of the business account to which the + # account holder is associated. + sig { returns(T.nilable(String)) } + attr_reader :business_account_token + + sig { params(business_account_token: String).void } + attr_writer :business_account_token + + # Allowed for all Account Holders. Account holder's email address. The primary + # purpose of this field is for cardholder identification and verification during + # the digital wallet tokenization process. + sig { returns(T.nilable(String)) } + attr_reader :email + + sig { params(email: String).void } + attr_writer :email + + # Allowed for KYC-Exempt, BYO-KYC. Account holder's first name. + sig { returns(T.nilable(String)) } + attr_reader :first_name + + sig { params(first_name: String).void } + attr_writer :first_name + + # Allowed for KYC-Exempt, BYO-KYC. Account holder's last name. + sig { returns(T.nilable(String)) } + attr_reader :last_name + + sig { params(last_name: String).void } + attr_writer :last_name + + # Allowed for BYO-KYB. Legal business name of the account holder. + sig { returns(T.nilable(String)) } + attr_reader :legal_business_name + + sig { params(legal_business_name: String).void } + attr_writer :legal_business_name + + # Allowed for all Account Holders. Account holder's phone number, entered in E.164 + # format. The primary purpose of this field is for cardholder identification and + # verification during the digital wallet tokenization process. + sig { returns(T.nilable(String)) } + attr_reader :phone_number + + sig { params(phone_number: String).void } + attr_writer :phone_number + + # The legacy request for updating an account holder. + sig do + params( + address: Lithic::AddressUpdate::OrHash, + business_account_token: String, email: String, first_name: String, - government_id: String, last_name: String, + legal_business_name: String, phone_number: String - } + ).returns(T.attached_class) + end + def self.new( + # Allowed for: KYC-Exempt, BYO-KYC, BYO-KYB. + address: nil, + # Allowed for: KYC-Exempt, BYO-KYC. The token of the business account to which the + # account holder is associated. + business_account_token: nil, + # Allowed for all Account Holders. Account holder's email address. The primary + # purpose of this field is for cardholder identification and verification during + # the digital wallet tokenization process. + email: nil, + # Allowed for KYC-Exempt, BYO-KYC. Account holder's first name. + first_name: nil, + # Allowed for KYC-Exempt, BYO-KYC. Account holder's last name. + last_name: nil, + # Allowed for BYO-KYB. Legal business name of the account holder. + legal_business_name: nil, + # Allowed for all Account Holders. Account holder's phone number, entered in E.164 + # format. The primary purpose of this field is for cardholder identification and + # verification during the digital wallet tokenization process. + phone_number: nil ) - end - def to_hash - end - end + end - class Individual < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::AccountHolderUpdateParams::Individual, - Lithic::Internal::AnyHash + sig do + override.returns( + { + address: Lithic::AddressUpdate, + business_account_token: String, + email: String, + first_name: String, + last_name: String, + legal_business_name: String, + phone_number: String + } ) end - - # Globally unique identifier for an entity. - sig { returns(String) } - attr_accessor :entity_token - - # Individual's current address - PO boxes, UPS drops, and FedEx drops are not - # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported. - sig { returns(T.nilable(Lithic::AddressUpdate)) } - attr_reader :address - - sig { params(address: Lithic::AddressUpdate::OrHash).void } - attr_writer :address - - # Individual's date of birth, as an RFC 3339 date. - sig { returns(T.nilable(String)) } - attr_reader :dob - - sig { params(dob: String).void } - attr_writer :dob - - # Individual's email address. If utilizing Lithic for chargeback processing, this - # customer email address may be used to communicate dispute status and resolution. - sig { returns(T.nilable(String)) } - attr_reader :email - - sig { params(email: String).void } - attr_writer :email - - # Individual's first name, as it appears on government-issued identity documents. - sig { returns(T.nilable(String)) } - attr_reader :first_name - - sig { params(first_name: String).void } - attr_writer :first_name - - # Individual's last name, as it appears on government-issued identity documents. - sig { returns(T.nilable(String)) } - attr_reader :last_name - - sig { params(last_name: String).void } - attr_writer :last_name - - # Individual's phone number, entered in E.164 format. - sig { returns(T.nilable(String)) } - attr_reader :phone_number - - sig { params(phone_number: String).void } - attr_writer :phone_number - - # Government-issued identification number (required for identity verification and - # compliance with banking regulations). Social Security Numbers (SSN) and - # Individual Taxpayer Identification Numbers (ITIN) are currently supported, - # entered as full nine-digits, with or without hyphens - sig { returns(T.nilable(String)) } - attr_reader :government_id - - sig { params(government_id: String).void } - attr_writer :government_id - - # Information on the individual for whom the account is being opened and KYC is - # being run. - sig do - params( - entity_token: String, - address: Lithic::AddressUpdate::OrHash, - dob: String, - email: String, - first_name: String, - government_id: String, - last_name: String, - phone_number: String - ).returns(T.attached_class) - end - def self.new( - # Globally unique identifier for an entity. - entity_token:, - # Individual's current address - PO boxes, UPS drops, and FedEx drops are not - # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported. - address: nil, - # Individual's date of birth, as an RFC 3339 date. - dob: nil, - # Individual's email address. If utilizing Lithic for chargeback processing, this - # customer email address may be used to communicate dispute status and resolution. - email: nil, - # Individual's first name, as it appears on government-issued identity documents. - first_name: nil, - # Government-issued identification number (required for identity verification and - # compliance with banking regulations). Social Security Numbers (SSN) and - # Individual Taxpayer Identification Numbers (ITIN) are currently supported, - # entered as full nine-digits, with or without hyphens - government_id: nil, - # Individual's last name, as it appears on government-issued identity documents. - last_name: nil, - # Individual's phone number, entered in E.164 format. - phone_number: nil - ) + def to_hash + end end sig do override.returns( - { - entity_token: String, - address: Lithic::AddressUpdate, - dob: String, - email: String, - first_name: String, - government_id: String, - last_name: String, - phone_number: String - } + T::Array[Lithic::AccountHolderUpdateParams::Body::Variants] ) end - def to_hash + def self.variants end end end diff --git a/rbi/lithic/models/account_holder_upload_document_params.rbi b/rbi/lithic/models/account_holder_upload_document_params.rbi index ed7f8040..444e216d 100644 --- a/rbi/lithic/models/account_holder_upload_document_params.rbi +++ b/rbi/lithic/models/account_holder_upload_document_params.rbi @@ -14,6 +14,9 @@ module Lithic ) end + sig { returns(String) } + attr_accessor :account_holder_token + # The type of document to upload sig do returns( @@ -28,6 +31,7 @@ module Lithic sig do params( + account_holder_token: String, document_type: Lithic::AccountHolderUploadDocumentParams::DocumentType::OrSymbol, entity_token: String, @@ -35,6 +39,7 @@ module Lithic ).returns(T.attached_class) end def self.new( + account_holder_token:, # The type of document to upload document_type:, # Globally unique identifier for the entity. @@ -46,6 +51,7 @@ module Lithic sig do override.returns( { + account_holder_token: String, document_type: Lithic::AccountHolderUploadDocumentParams::DocumentType::OrSymbol, entity_token: String, diff --git a/rbi/lithic/models/account_holders/entity_create_params.rbi b/rbi/lithic/models/account_holders/entity_create_params.rbi index ee668873..4f03a6b4 100644 --- a/rbi/lithic/models/account_holders/entity_create_params.rbi +++ b/rbi/lithic/models/account_holders/entity_create_params.rbi @@ -15,6 +15,9 @@ module Lithic ) end + sig { returns(String) } + attr_accessor :account_holder_token + # Individual's current address - PO boxes, UPS drops, and FedEx drops are not # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported. sig { returns(Lithic::AccountHolders::EntityCreateParams::Address) } @@ -63,6 +66,7 @@ module Lithic sig do params( + account_holder_token: String, address: Lithic::AccountHolders::EntityCreateParams::Address::OrHash, dob: String, @@ -76,6 +80,7 @@ module Lithic ).returns(T.attached_class) end def self.new( + account_holder_token:, # Individual's current address - PO boxes, UPS drops, and FedEx drops are not # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported. address:, @@ -104,6 +109,7 @@ module Lithic sig do override.returns( { + account_holder_token: String, address: Lithic::AccountHolders::EntityCreateParams::Address, dob: String, email: String, diff --git a/rbi/lithic/models/account_holders/entity_delete_params.rbi b/rbi/lithic/models/account_holders/entity_delete_params.rbi index c8b5dd32..f959fc97 100644 --- a/rbi/lithic/models/account_holders/entity_delete_params.rbi +++ b/rbi/lithic/models/account_holders/entity_delete_params.rbi @@ -18,19 +18,24 @@ module Lithic sig { returns(String) } attr_accessor :account_holder_token + sig { returns(String) } + attr_accessor :entity_token + sig do params( account_holder_token: String, + entity_token: String, request_options: Lithic::RequestOptions::OrHash ).returns(T.attached_class) end - def self.new(account_holder_token:, request_options: {}) + def self.new(account_holder_token:, entity_token:, request_options: {}) end sig do override.returns( { account_holder_token: String, + entity_token: String, request_options: Lithic::RequestOptions } ) diff --git a/rbi/lithic/models/account_retrieve_params.rbi b/rbi/lithic/models/account_retrieve_params.rbi index b92b1786..847d0828 100644 --- a/rbi/lithic/models/account_retrieve_params.rbi +++ b/rbi/lithic/models/account_retrieve_params.rbi @@ -11,15 +11,23 @@ module Lithic T.any(Lithic::AccountRetrieveParams, Lithic::Internal::AnyHash) end + sig { returns(String) } + attr_accessor :account_token + sig do - params(request_options: Lithic::RequestOptions::OrHash).returns( - T.attached_class - ) + params( + account_token: String, + request_options: Lithic::RequestOptions::OrHash + ).returns(T.attached_class) end - def self.new(request_options: {}) + def self.new(account_token:, request_options: {}) end - sig { override.returns({ request_options: Lithic::RequestOptions }) } + sig do + override.returns( + { account_token: String, request_options: Lithic::RequestOptions } + ) + end def to_hash end end diff --git a/rbi/lithic/models/account_retrieve_spend_limits_params.rbi b/rbi/lithic/models/account_retrieve_spend_limits_params.rbi index 0a44b47a..c631ca92 100644 --- a/rbi/lithic/models/account_retrieve_spend_limits_params.rbi +++ b/rbi/lithic/models/account_retrieve_spend_limits_params.rbi @@ -14,15 +14,23 @@ module Lithic ) end + sig { returns(String) } + attr_accessor :account_token + sig do - params(request_options: Lithic::RequestOptions::OrHash).returns( - T.attached_class - ) + params( + account_token: String, + request_options: Lithic::RequestOptions::OrHash + ).returns(T.attached_class) end - def self.new(request_options: {}) + def self.new(account_token:, request_options: {}) end - sig { override.returns({ request_options: Lithic::RequestOptions }) } + sig do + override.returns( + { account_token: String, request_options: Lithic::RequestOptions } + ) + end def to_hash end end diff --git a/rbi/lithic/models/account_update_params.rbi b/rbi/lithic/models/account_update_params.rbi index 16186d9a..46bafb14 100644 --- a/rbi/lithic/models/account_update_params.rbi +++ b/rbi/lithic/models/account_update_params.rbi @@ -11,6 +11,9 @@ module Lithic T.any(Lithic::AccountUpdateParams, Lithic::Internal::AnyHash) end + sig { returns(String) } + attr_accessor :account_token + # Additional context or information related to the account. sig { returns(T.nilable(String)) } attr_reader :comment @@ -110,6 +113,7 @@ module Lithic sig do params( + account_token: String, comment: String, daily_spend_limit: Integer, lifetime_spend_limit: Integer, @@ -122,6 +126,7 @@ module Lithic ).returns(T.attached_class) end def self.new( + account_token:, # Additional context or information related to the account. comment: nil, # Amount (in cents) for the account's daily spend limit (e.g. 100000 would be a @@ -180,6 +185,7 @@ module Lithic sig do override.returns( { + account_token: String, comment: String, daily_spend_limit: Integer, lifetime_spend_limit: Integer, diff --git a/rbi/lithic/models/auth_rules/v2/backtest_create_params.rbi b/rbi/lithic/models/auth_rules/v2/backtest_create_params.rbi index c8c8c571..7a98059c 100644 --- a/rbi/lithic/models/auth_rules/v2/backtest_create_params.rbi +++ b/rbi/lithic/models/auth_rules/v2/backtest_create_params.rbi @@ -16,6 +16,9 @@ module Lithic ) end + sig { returns(String) } + attr_accessor :auth_rule_token + # The end time of the backtest. sig { returns(T.nilable(Time)) } attr_reader :end_ @@ -32,12 +35,14 @@ module Lithic sig do params( + auth_rule_token: String, end_: Time, start: Time, request_options: Lithic::RequestOptions::OrHash ).returns(T.attached_class) end def self.new( + auth_rule_token:, # The end time of the backtest. end_: nil, # The start time of the backtest. @@ -49,6 +54,7 @@ module Lithic sig do override.returns( { + auth_rule_token: String, end_: Time, start: Time, request_options: Lithic::RequestOptions diff --git a/rbi/lithic/models/auth_rules/v2/backtest_retrieve_params.rbi b/rbi/lithic/models/auth_rules/v2/backtest_retrieve_params.rbi index e8b90ec9..74a3a9c8 100644 --- a/rbi/lithic/models/auth_rules/v2/backtest_retrieve_params.rbi +++ b/rbi/lithic/models/auth_rules/v2/backtest_retrieve_params.rbi @@ -19,19 +19,28 @@ module Lithic sig { returns(String) } attr_accessor :auth_rule_token + sig { returns(String) } + attr_accessor :auth_rule_backtest_token + sig do params( auth_rule_token: String, + auth_rule_backtest_token: String, request_options: Lithic::RequestOptions::OrHash ).returns(T.attached_class) end - def self.new(auth_rule_token:, request_options: {}) + def self.new( + auth_rule_token:, + auth_rule_backtest_token:, + request_options: {} + ) end sig do override.returns( { auth_rule_token: String, + auth_rule_backtest_token: String, request_options: Lithic::RequestOptions } ) diff --git a/rbi/lithic/models/auth_rules/v2_create_params.rbi b/rbi/lithic/models/auth_rules/v2_create_params.rbi index da048ad0..57803fb8 100644 --- a/rbi/lithic/models/auth_rules/v2_create_params.rbi +++ b/rbi/lithic/models/auth_rules/v2_create_params.rbi @@ -12,155 +12,40 @@ module Lithic T.any(Lithic::AuthRules::V2CreateParams, Lithic::Internal::AnyHash) end - # Parameters for the Auth Rule sig do returns( T.any( - Lithic::AuthRules::ConditionalBlockParameters, - Lithic::AuthRules::VelocityLimitParams, - Lithic::AuthRules::MerchantLockParameters, - Lithic::AuthRules::Conditional3DSActionParameters, - Lithic::AuthRules::ConditionalAuthorizationActionParameters, - Lithic::AuthRules::ConditionalACHActionParameters, - Lithic::AuthRules::ConditionalTokenizationActionParameters + Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule, + Lithic::AuthRules::V2CreateParams::Body::CardLevelRule, + Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule ) ) end - attr_accessor :parameters - - # The type of Auth Rule. For certain rule types, this determines the event stream - # during which it will be evaluated. For rules that can be applied to one of - # several event streams, the effective one is defined by the separate - # `event_stream` field. - # - # - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead. - # AUTHORIZATION event stream. - # - `VELOCITY_LIMIT`: AUTHORIZATION event stream. - # - `MERCHANT_LOCK`: AUTHORIZATION event stream. - # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION, - # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream. - sig { returns(Lithic::AuthRules::V2CreateParams::Type::OrSymbol) } - attr_accessor :type - - # Account tokens to which the Auth Rule applies. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :account_tokens - - sig { params(account_tokens: T::Array[String]).void } - attr_writer :account_tokens - - # Business Account tokens to which the Auth Rule applies. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :business_account_tokens - - sig { params(business_account_tokens: T::Array[String]).void } - attr_writer :business_account_tokens - - # The event stream during which the rule will be evaluated. - sig { returns(T.nilable(Lithic::AuthRules::EventStream::OrSymbol)) } - attr_reader :event_stream - - sig do - params(event_stream: Lithic::AuthRules::EventStream::OrSymbol).void - end - attr_writer :event_stream - - # Auth Rule Name - sig { returns(T.nilable(String)) } - attr_accessor :name - - # Card tokens to which the Auth Rule applies. - sig { returns(T::Array[String]) } - attr_accessor :card_tokens - - # Whether the Auth Rule applies to all authorizations on the card program. - sig { returns(T::Boolean) } - attr_accessor :program_level - - # Card tokens to which the Auth Rule does not apply. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :excluded_card_tokens - - sig { params(excluded_card_tokens: T::Array[String]).void } - attr_writer :excluded_card_tokens + attr_accessor :body sig do params( - parameters: + body: T.any( - Lithic::AuthRules::ConditionalBlockParameters::OrHash, - Lithic::AuthRules::VelocityLimitParams::OrHash, - Lithic::AuthRules::MerchantLockParameters::OrHash, - Lithic::AuthRules::Conditional3DSActionParameters::OrHash, - Lithic::AuthRules::ConditionalAuthorizationActionParameters::OrHash, - Lithic::AuthRules::ConditionalACHActionParameters::OrHash, - Lithic::AuthRules::ConditionalTokenizationActionParameters::OrHash + Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::OrHash, + Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::OrHash, + Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::OrHash ), - type: Lithic::AuthRules::V2CreateParams::Type::OrSymbol, - card_tokens: T::Array[String], - program_level: T::Boolean, - account_tokens: T::Array[String], - business_account_tokens: T::Array[String], - event_stream: Lithic::AuthRules::EventStream::OrSymbol, - name: T.nilable(String), - excluded_card_tokens: T::Array[String], request_options: Lithic::RequestOptions::OrHash ).returns(T.attached_class) end - def self.new( - # Parameters for the Auth Rule - parameters:, - # The type of Auth Rule. For certain rule types, this determines the event stream - # during which it will be evaluated. For rules that can be applied to one of - # several event streams, the effective one is defined by the separate - # `event_stream` field. - # - # - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead. - # AUTHORIZATION event stream. - # - `VELOCITY_LIMIT`: AUTHORIZATION event stream. - # - `MERCHANT_LOCK`: AUTHORIZATION event stream. - # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION, - # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream. - type:, - # Card tokens to which the Auth Rule applies. - card_tokens:, - # Whether the Auth Rule applies to all authorizations on the card program. - program_level:, - # Account tokens to which the Auth Rule applies. - account_tokens: nil, - # Business Account tokens to which the Auth Rule applies. - business_account_tokens: nil, - # The event stream during which the rule will be evaluated. - event_stream: nil, - # Auth Rule Name - name: nil, - # Card tokens to which the Auth Rule does not apply. - excluded_card_tokens: nil, - request_options: {} - ) + def self.new(body:, request_options: {}) end sig do override.returns( { - parameters: + body: T.any( - Lithic::AuthRules::ConditionalBlockParameters, - Lithic::AuthRules::VelocityLimitParams, - Lithic::AuthRules::MerchantLockParameters, - Lithic::AuthRules::Conditional3DSActionParameters, - Lithic::AuthRules::ConditionalAuthorizationActionParameters, - Lithic::AuthRules::ConditionalACHActionParameters, - Lithic::AuthRules::ConditionalTokenizationActionParameters + Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule, + Lithic::AuthRules::V2CreateParams::Body::CardLevelRule, + Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule ), - type: Lithic::AuthRules::V2CreateParams::Type::OrSymbol, - account_tokens: T::Array[String], - business_account_tokens: T::Array[String], - event_stream: Lithic::AuthRules::EventStream::OrSymbol, - name: T.nilable(String), - card_tokens: T::Array[String], - program_level: T::Boolean, - excluded_card_tokens: T::Array[String], request_options: Lithic::RequestOptions } ) @@ -168,79 +53,688 @@ module Lithic def to_hash end - # Parameters for the Auth Rule - module Parameters + module Body extend Lithic::Internal::Type::Union Variants = T.type_alias do T.any( - Lithic::AuthRules::ConditionalBlockParameters, - Lithic::AuthRules::VelocityLimitParams, - Lithic::AuthRules::MerchantLockParameters, - Lithic::AuthRules::Conditional3DSActionParameters, - Lithic::AuthRules::ConditionalAuthorizationActionParameters, - Lithic::AuthRules::ConditionalACHActionParameters, - Lithic::AuthRules::ConditionalTokenizationActionParameters + Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule, + Lithic::AuthRules::V2CreateParams::Body::CardLevelRule, + Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule ) end - sig do - override.returns( - T::Array[Lithic::AuthRules::V2CreateParams::Parameters::Variants] + class AccountLevelRule < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule, + Lithic::Internal::AnyHash + ) + end + + # Parameters for the Auth Rule + sig do + returns( + T.any( + Lithic::AuthRules::ConditionalBlockParameters, + Lithic::AuthRules::VelocityLimitParams, + Lithic::AuthRules::MerchantLockParameters, + Lithic::AuthRules::Conditional3DSActionParameters, + Lithic::AuthRules::ConditionalAuthorizationActionParameters, + Lithic::AuthRules::ConditionalACHActionParameters, + Lithic::AuthRules::ConditionalTokenizationActionParameters + ) + ) + end + attr_accessor :parameters + + # The type of Auth Rule. For certain rule types, this determines the event stream + # during which it will be evaluated. For rules that can be applied to one of + # several event streams, the effective one is defined by the separate + # `event_stream` field. + # + # - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead. + # AUTHORIZATION event stream. + # - `VELOCITY_LIMIT`: AUTHORIZATION event stream. + # - `MERCHANT_LOCK`: AUTHORIZATION event stream. + # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION, + # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream. + sig do + returns( + Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::Type::OrSymbol + ) + end + attr_accessor :type + + # Account tokens to which the Auth Rule applies. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :account_tokens + + sig { params(account_tokens: T::Array[String]).void } + attr_writer :account_tokens + + # Business Account tokens to which the Auth Rule applies. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :business_account_tokens + + sig { params(business_account_tokens: T::Array[String]).void } + attr_writer :business_account_tokens + + # The event stream during which the rule will be evaluated. + sig { returns(T.nilable(Lithic::AuthRules::EventStream::OrSymbol)) } + attr_reader :event_stream + + sig do + params( + event_stream: Lithic::AuthRules::EventStream::OrSymbol + ).void + end + attr_writer :event_stream + + # Auth Rule Name + sig { returns(T.nilable(String)) } + attr_accessor :name + + sig do + params( + parameters: + T.any( + Lithic::AuthRules::ConditionalBlockParameters::OrHash, + Lithic::AuthRules::VelocityLimitParams::OrHash, + Lithic::AuthRules::MerchantLockParameters::OrHash, + Lithic::AuthRules::Conditional3DSActionParameters::OrHash, + Lithic::AuthRules::ConditionalAuthorizationActionParameters::OrHash, + Lithic::AuthRules::ConditionalACHActionParameters::OrHash, + Lithic::AuthRules::ConditionalTokenizationActionParameters::OrHash + ), + type: + Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::Type::OrSymbol, + account_tokens: T::Array[String], + business_account_tokens: T::Array[String], + event_stream: Lithic::AuthRules::EventStream::OrSymbol, + name: T.nilable(String) + ).returns(T.attached_class) + end + def self.new( + # Parameters for the Auth Rule + parameters:, + # The type of Auth Rule. For certain rule types, this determines the event stream + # during which it will be evaluated. For rules that can be applied to one of + # several event streams, the effective one is defined by the separate + # `event_stream` field. + # + # - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead. + # AUTHORIZATION event stream. + # - `VELOCITY_LIMIT`: AUTHORIZATION event stream. + # - `MERCHANT_LOCK`: AUTHORIZATION event stream. + # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION, + # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream. + type:, + # Account tokens to which the Auth Rule applies. + account_tokens: nil, + # Business Account tokens to which the Auth Rule applies. + business_account_tokens: nil, + # The event stream during which the rule will be evaluated. + event_stream: nil, + # Auth Rule Name + name: nil ) + end + + sig do + override.returns( + { + parameters: + T.any( + Lithic::AuthRules::ConditionalBlockParameters, + Lithic::AuthRules::VelocityLimitParams, + Lithic::AuthRules::MerchantLockParameters, + Lithic::AuthRules::Conditional3DSActionParameters, + Lithic::AuthRules::ConditionalAuthorizationActionParameters, + Lithic::AuthRules::ConditionalACHActionParameters, + Lithic::AuthRules::ConditionalTokenizationActionParameters + ), + type: + Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::Type::OrSymbol, + account_tokens: T::Array[String], + business_account_tokens: T::Array[String], + event_stream: Lithic::AuthRules::EventStream::OrSymbol, + name: T.nilable(String) + } + ) + end + def to_hash + end + + # Parameters for the Auth Rule + module Parameters + extend Lithic::Internal::Type::Union + + Variants = + T.type_alias do + T.any( + Lithic::AuthRules::ConditionalBlockParameters, + Lithic::AuthRules::VelocityLimitParams, + Lithic::AuthRules::MerchantLockParameters, + Lithic::AuthRules::Conditional3DSActionParameters, + Lithic::AuthRules::ConditionalAuthorizationActionParameters, + Lithic::AuthRules::ConditionalACHActionParameters, + Lithic::AuthRules::ConditionalTokenizationActionParameters + ) + end + + sig do + override.returns( + T::Array[ + Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::Parameters::Variants + ] + ) + end + def self.variants + end + end + + # The type of Auth Rule. For certain rule types, this determines the event stream + # during which it will be evaluated. For rules that can be applied to one of + # several event streams, the effective one is defined by the separate + # `event_stream` field. + # + # - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead. + # AUTHORIZATION event stream. + # - `VELOCITY_LIMIT`: AUTHORIZATION event stream. + # - `MERCHANT_LOCK`: AUTHORIZATION event stream. + # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION, + # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream. + module Type + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + CONDITIONAL_BLOCK = + T.let( + :CONDITIONAL_BLOCK, + Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::Type::TaggedSymbol + ) + VELOCITY_LIMIT = + T.let( + :VELOCITY_LIMIT, + Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::Type::TaggedSymbol + ) + MERCHANT_LOCK = + T.let( + :MERCHANT_LOCK, + Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::Type::TaggedSymbol + ) + CONDITIONAL_ACTION = + T.let( + :CONDITIONAL_ACTION, + Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::Type::TaggedSymbol + ] + ) + end + def self.values + end + end end - def self.variants - end - end - # The type of Auth Rule. For certain rule types, this determines the event stream - # during which it will be evaluated. For rules that can be applied to one of - # several event streams, the effective one is defined by the separate - # `event_stream` field. - # - # - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead. - # AUTHORIZATION event stream. - # - `VELOCITY_LIMIT`: AUTHORIZATION event stream. - # - `MERCHANT_LOCK`: AUTHORIZATION event stream. - # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION, - # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream. - module Type - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all(Symbol, Lithic::AuthRules::V2CreateParams::Type) + class CardLevelRule < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::AuthRules::V2CreateParams::Body::CardLevelRule, + Lithic::Internal::AnyHash + ) + end + + # Card tokens to which the Auth Rule applies. + sig { returns(T::Array[String]) } + attr_accessor :card_tokens + + # Parameters for the Auth Rule + sig do + returns( + T.any( + Lithic::AuthRules::ConditionalBlockParameters, + Lithic::AuthRules::VelocityLimitParams, + Lithic::AuthRules::MerchantLockParameters, + Lithic::AuthRules::Conditional3DSActionParameters, + Lithic::AuthRules::ConditionalAuthorizationActionParameters, + Lithic::AuthRules::ConditionalACHActionParameters, + Lithic::AuthRules::ConditionalTokenizationActionParameters + ) + ) end - OrSymbol = T.type_alias { T.any(Symbol, String) } + attr_accessor :parameters - CONDITIONAL_BLOCK = - T.let( - :CONDITIONAL_BLOCK, - Lithic::AuthRules::V2CreateParams::Type::TaggedSymbol - ) - VELOCITY_LIMIT = - T.let( - :VELOCITY_LIMIT, - Lithic::AuthRules::V2CreateParams::Type::TaggedSymbol - ) - MERCHANT_LOCK = - T.let( - :MERCHANT_LOCK, - Lithic::AuthRules::V2CreateParams::Type::TaggedSymbol + # The type of Auth Rule. For certain rule types, this determines the event stream + # during which it will be evaluated. For rules that can be applied to one of + # several event streams, the effective one is defined by the separate + # `event_stream` field. + # + # - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead. + # AUTHORIZATION event stream. + # - `VELOCITY_LIMIT`: AUTHORIZATION event stream. + # - `MERCHANT_LOCK`: AUTHORIZATION event stream. + # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION, + # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream. + sig do + returns( + Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::Type::OrSymbol + ) + end + attr_accessor :type + + # The event stream during which the rule will be evaluated. + sig { returns(T.nilable(Lithic::AuthRules::EventStream::OrSymbol)) } + attr_reader :event_stream + + sig do + params( + event_stream: Lithic::AuthRules::EventStream::OrSymbol + ).void + end + attr_writer :event_stream + + # Auth Rule Name + sig { returns(T.nilable(String)) } + attr_accessor :name + + sig do + params( + card_tokens: T::Array[String], + parameters: + T.any( + Lithic::AuthRules::ConditionalBlockParameters::OrHash, + Lithic::AuthRules::VelocityLimitParams::OrHash, + Lithic::AuthRules::MerchantLockParameters::OrHash, + Lithic::AuthRules::Conditional3DSActionParameters::OrHash, + Lithic::AuthRules::ConditionalAuthorizationActionParameters::OrHash, + Lithic::AuthRules::ConditionalACHActionParameters::OrHash, + Lithic::AuthRules::ConditionalTokenizationActionParameters::OrHash + ), + type: + Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::Type::OrSymbol, + event_stream: Lithic::AuthRules::EventStream::OrSymbol, + name: T.nilable(String) + ).returns(T.attached_class) + end + def self.new( + # Card tokens to which the Auth Rule applies. + card_tokens:, + # Parameters for the Auth Rule + parameters:, + # The type of Auth Rule. For certain rule types, this determines the event stream + # during which it will be evaluated. For rules that can be applied to one of + # several event streams, the effective one is defined by the separate + # `event_stream` field. + # + # - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead. + # AUTHORIZATION event stream. + # - `VELOCITY_LIMIT`: AUTHORIZATION event stream. + # - `MERCHANT_LOCK`: AUTHORIZATION event stream. + # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION, + # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream. + type:, + # The event stream during which the rule will be evaluated. + event_stream: nil, + # Auth Rule Name + name: nil ) - CONDITIONAL_ACTION = - T.let( - :CONDITIONAL_ACTION, - Lithic::AuthRules::V2CreateParams::Type::TaggedSymbol + end + + sig do + override.returns( + { + card_tokens: T::Array[String], + parameters: + T.any( + Lithic::AuthRules::ConditionalBlockParameters, + Lithic::AuthRules::VelocityLimitParams, + Lithic::AuthRules::MerchantLockParameters, + Lithic::AuthRules::Conditional3DSActionParameters, + Lithic::AuthRules::ConditionalAuthorizationActionParameters, + Lithic::AuthRules::ConditionalACHActionParameters, + Lithic::AuthRules::ConditionalTokenizationActionParameters + ), + type: + Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::Type::OrSymbol, + event_stream: Lithic::AuthRules::EventStream::OrSymbol, + name: T.nilable(String) + } + ) + end + def to_hash + end + + # Parameters for the Auth Rule + module Parameters + extend Lithic::Internal::Type::Union + + Variants = + T.type_alias do + T.any( + Lithic::AuthRules::ConditionalBlockParameters, + Lithic::AuthRules::VelocityLimitParams, + Lithic::AuthRules::MerchantLockParameters, + Lithic::AuthRules::Conditional3DSActionParameters, + Lithic::AuthRules::ConditionalAuthorizationActionParameters, + Lithic::AuthRules::ConditionalACHActionParameters, + Lithic::AuthRules::ConditionalTokenizationActionParameters + ) + end + + sig do + override.returns( + T::Array[ + Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::Parameters::Variants + ] + ) + end + def self.variants + end + end + + # The type of Auth Rule. For certain rule types, this determines the event stream + # during which it will be evaluated. For rules that can be applied to one of + # several event streams, the effective one is defined by the separate + # `event_stream` field. + # + # - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead. + # AUTHORIZATION event stream. + # - `VELOCITY_LIMIT`: AUTHORIZATION event stream. + # - `MERCHANT_LOCK`: AUTHORIZATION event stream. + # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION, + # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream. + module Type + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + CONDITIONAL_BLOCK = + T.let( + :CONDITIONAL_BLOCK, + Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::Type::TaggedSymbol + ) + VELOCITY_LIMIT = + T.let( + :VELOCITY_LIMIT, + Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::Type::TaggedSymbol + ) + MERCHANT_LOCK = + T.let( + :MERCHANT_LOCK, + Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::Type::TaggedSymbol + ) + CONDITIONAL_ACTION = + T.let( + :CONDITIONAL_ACTION, + Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class ProgramLevelRule < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule, + Lithic::Internal::AnyHash + ) + end + + # Parameters for the Auth Rule + sig do + returns( + T.any( + Lithic::AuthRules::ConditionalBlockParameters, + Lithic::AuthRules::VelocityLimitParams, + Lithic::AuthRules::MerchantLockParameters, + Lithic::AuthRules::Conditional3DSActionParameters, + Lithic::AuthRules::ConditionalAuthorizationActionParameters, + Lithic::AuthRules::ConditionalACHActionParameters, + Lithic::AuthRules::ConditionalTokenizationActionParameters + ) + ) + end + attr_accessor :parameters + + # Whether the Auth Rule applies to all authorizations on the card program. + sig { returns(T::Boolean) } + attr_accessor :program_level + + # The type of Auth Rule. For certain rule types, this determines the event stream + # during which it will be evaluated. For rules that can be applied to one of + # several event streams, the effective one is defined by the separate + # `event_stream` field. + # + # - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead. + # AUTHORIZATION event stream. + # - `VELOCITY_LIMIT`: AUTHORIZATION event stream. + # - `MERCHANT_LOCK`: AUTHORIZATION event stream. + # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION, + # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream. + sig do + returns( + Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::Type::OrSymbol + ) + end + attr_accessor :type + + # The event stream during which the rule will be evaluated. + sig { returns(T.nilable(Lithic::AuthRules::EventStream::OrSymbol)) } + attr_reader :event_stream + + sig do + params( + event_stream: Lithic::AuthRules::EventStream::OrSymbol + ).void + end + attr_writer :event_stream + + # Card tokens to which the Auth Rule does not apply. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :excluded_card_tokens + + sig { params(excluded_card_tokens: T::Array[String]).void } + attr_writer :excluded_card_tokens + + # Auth Rule Name + sig { returns(T.nilable(String)) } + attr_accessor :name + + sig do + params( + parameters: + T.any( + Lithic::AuthRules::ConditionalBlockParameters::OrHash, + Lithic::AuthRules::VelocityLimitParams::OrHash, + Lithic::AuthRules::MerchantLockParameters::OrHash, + Lithic::AuthRules::Conditional3DSActionParameters::OrHash, + Lithic::AuthRules::ConditionalAuthorizationActionParameters::OrHash, + Lithic::AuthRules::ConditionalACHActionParameters::OrHash, + Lithic::AuthRules::ConditionalTokenizationActionParameters::OrHash + ), + program_level: T::Boolean, + type: + Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::Type::OrSymbol, + event_stream: Lithic::AuthRules::EventStream::OrSymbol, + excluded_card_tokens: T::Array[String], + name: T.nilable(String) + ).returns(T.attached_class) + end + def self.new( + # Parameters for the Auth Rule + parameters:, + # Whether the Auth Rule applies to all authorizations on the card program. + program_level:, + # The type of Auth Rule. For certain rule types, this determines the event stream + # during which it will be evaluated. For rules that can be applied to one of + # several event streams, the effective one is defined by the separate + # `event_stream` field. + # + # - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead. + # AUTHORIZATION event stream. + # - `VELOCITY_LIMIT`: AUTHORIZATION event stream. + # - `MERCHANT_LOCK`: AUTHORIZATION event stream. + # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION, + # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream. + type:, + # The event stream during which the rule will be evaluated. + event_stream: nil, + # Card tokens to which the Auth Rule does not apply. + excluded_card_tokens: nil, + # Auth Rule Name + name: nil ) + end + + sig do + override.returns( + { + parameters: + T.any( + Lithic::AuthRules::ConditionalBlockParameters, + Lithic::AuthRules::VelocityLimitParams, + Lithic::AuthRules::MerchantLockParameters, + Lithic::AuthRules::Conditional3DSActionParameters, + Lithic::AuthRules::ConditionalAuthorizationActionParameters, + Lithic::AuthRules::ConditionalACHActionParameters, + Lithic::AuthRules::ConditionalTokenizationActionParameters + ), + program_level: T::Boolean, + type: + Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::Type::OrSymbol, + event_stream: Lithic::AuthRules::EventStream::OrSymbol, + excluded_card_tokens: T::Array[String], + name: T.nilable(String) + } + ) + end + def to_hash + end + + # Parameters for the Auth Rule + module Parameters + extend Lithic::Internal::Type::Union + + Variants = + T.type_alias do + T.any( + Lithic::AuthRules::ConditionalBlockParameters, + Lithic::AuthRules::VelocityLimitParams, + Lithic::AuthRules::MerchantLockParameters, + Lithic::AuthRules::Conditional3DSActionParameters, + Lithic::AuthRules::ConditionalAuthorizationActionParameters, + Lithic::AuthRules::ConditionalACHActionParameters, + Lithic::AuthRules::ConditionalTokenizationActionParameters + ) + end + + sig do + override.returns( + T::Array[ + Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::Parameters::Variants + ] + ) + end + def self.variants + end + end + + # The type of Auth Rule. For certain rule types, this determines the event stream + # during which it will be evaluated. For rules that can be applied to one of + # several event streams, the effective one is defined by the separate + # `event_stream` field. + # + # - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead. + # AUTHORIZATION event stream. + # - `VELOCITY_LIMIT`: AUTHORIZATION event stream. + # - `MERCHANT_LOCK`: AUTHORIZATION event stream. + # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION, + # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream. + module Type + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + CONDITIONAL_BLOCK = + T.let( + :CONDITIONAL_BLOCK, + Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::Type::TaggedSymbol + ) + VELOCITY_LIMIT = + T.let( + :VELOCITY_LIMIT, + Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::Type::TaggedSymbol + ) + MERCHANT_LOCK = + T.let( + :MERCHANT_LOCK, + Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::Type::TaggedSymbol + ) + CONDITIONAL_ACTION = + T.let( + :CONDITIONAL_ACTION, + Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + end sig do override.returns( - T::Array[Lithic::AuthRules::V2CreateParams::Type::TaggedSymbol] + T::Array[Lithic::AuthRules::V2CreateParams::Body::Variants] ) end - def self.values + def self.variants end end end diff --git a/rbi/lithic/models/auth_rules/v2_delete_params.rbi b/rbi/lithic/models/auth_rules/v2_delete_params.rbi index fc1ed151..a409c81c 100644 --- a/rbi/lithic/models/auth_rules/v2_delete_params.rbi +++ b/rbi/lithic/models/auth_rules/v2_delete_params.rbi @@ -12,15 +12,23 @@ module Lithic T.any(Lithic::AuthRules::V2DeleteParams, Lithic::Internal::AnyHash) end + sig { returns(String) } + attr_accessor :auth_rule_token + sig do - params(request_options: Lithic::RequestOptions::OrHash).returns( - T.attached_class - ) + params( + auth_rule_token: String, + request_options: Lithic::RequestOptions::OrHash + ).returns(T.attached_class) end - def self.new(request_options: {}) + def self.new(auth_rule_token:, request_options: {}) end - sig { override.returns({ request_options: Lithic::RequestOptions }) } + sig do + override.returns( + { auth_rule_token: String, request_options: Lithic::RequestOptions } + ) + end def to_hash end end diff --git a/rbi/lithic/models/auth_rules/v2_draft_params.rbi b/rbi/lithic/models/auth_rules/v2_draft_params.rbi index 5c0ee652..c8a91b9c 100644 --- a/rbi/lithic/models/auth_rules/v2_draft_params.rbi +++ b/rbi/lithic/models/auth_rules/v2_draft_params.rbi @@ -12,6 +12,9 @@ module Lithic T.any(Lithic::AuthRules::V2DraftParams, Lithic::Internal::AnyHash) end + sig { returns(String) } + attr_accessor :auth_rule_token + # Parameters for the Auth Rule sig do returns( @@ -32,6 +35,7 @@ module Lithic sig do params( + auth_rule_token: String, parameters: T.nilable( T.any( @@ -48,6 +52,7 @@ module Lithic ).returns(T.attached_class) end def self.new( + auth_rule_token:, # Parameters for the Auth Rule parameters: nil, request_options: {} @@ -57,6 +62,7 @@ module Lithic sig do override.returns( { + auth_rule_token: String, parameters: T.nilable( T.any( diff --git a/rbi/lithic/models/auth_rules/v2_promote_params.rbi b/rbi/lithic/models/auth_rules/v2_promote_params.rbi index dacea513..1090606a 100644 --- a/rbi/lithic/models/auth_rules/v2_promote_params.rbi +++ b/rbi/lithic/models/auth_rules/v2_promote_params.rbi @@ -12,15 +12,23 @@ module Lithic T.any(Lithic::AuthRules::V2PromoteParams, Lithic::Internal::AnyHash) end + sig { returns(String) } + attr_accessor :auth_rule_token + sig do - params(request_options: Lithic::RequestOptions::OrHash).returns( - T.attached_class - ) + params( + auth_rule_token: String, + request_options: Lithic::RequestOptions::OrHash + ).returns(T.attached_class) end - def self.new(request_options: {}) + def self.new(auth_rule_token:, request_options: {}) end - sig { override.returns({ request_options: Lithic::RequestOptions }) } + sig do + override.returns( + { auth_rule_token: String, request_options: Lithic::RequestOptions } + ) + end def to_hash end end diff --git a/rbi/lithic/models/auth_rules/v2_retrieve_features_params.rbi b/rbi/lithic/models/auth_rules/v2_retrieve_features_params.rbi index be5a8ed8..4f5981c8 100644 --- a/rbi/lithic/models/auth_rules/v2_retrieve_features_params.rbi +++ b/rbi/lithic/models/auth_rules/v2_retrieve_features_params.rbi @@ -15,6 +15,9 @@ module Lithic ) end + sig { returns(String) } + attr_accessor :auth_rule_token + sig { returns(T.nilable(String)) } attr_reader :account_token @@ -29,17 +32,24 @@ module Lithic sig do params( + auth_rule_token: String, account_token: String, card_token: String, request_options: Lithic::RequestOptions::OrHash ).returns(T.attached_class) end - def self.new(account_token: nil, card_token: nil, request_options: {}) + def self.new( + auth_rule_token:, + account_token: nil, + card_token: nil, + request_options: {} + ) end sig do override.returns( { + auth_rule_token: String, account_token: String, card_token: String, request_options: Lithic::RequestOptions diff --git a/rbi/lithic/models/auth_rules/v2_retrieve_params.rbi b/rbi/lithic/models/auth_rules/v2_retrieve_params.rbi index 376d7f90..01f6df99 100644 --- a/rbi/lithic/models/auth_rules/v2_retrieve_params.rbi +++ b/rbi/lithic/models/auth_rules/v2_retrieve_params.rbi @@ -15,15 +15,23 @@ module Lithic ) end + sig { returns(String) } + attr_accessor :auth_rule_token + sig do - params(request_options: Lithic::RequestOptions::OrHash).returns( - T.attached_class - ) + params( + auth_rule_token: String, + request_options: Lithic::RequestOptions::OrHash + ).returns(T.attached_class) end - def self.new(request_options: {}) + def self.new(auth_rule_token:, request_options: {}) end - sig { override.returns({ request_options: Lithic::RequestOptions }) } + sig do + override.returns( + { auth_rule_token: String, request_options: Lithic::RequestOptions } + ) + end def to_hash end end diff --git a/rbi/lithic/models/auth_rules/v2_retrieve_report_params.rbi b/rbi/lithic/models/auth_rules/v2_retrieve_report_params.rbi index 9f502dae..2a185f8e 100644 --- a/rbi/lithic/models/auth_rules/v2_retrieve_report_params.rbi +++ b/rbi/lithic/models/auth_rules/v2_retrieve_report_params.rbi @@ -15,6 +15,9 @@ module Lithic ) end + sig { returns(String) } + attr_accessor :auth_rule_token + # Start date for the report sig { returns(Date) } attr_accessor :begin_ @@ -25,12 +28,14 @@ module Lithic sig do params( + auth_rule_token: String, begin_: Date, end_: Date, request_options: Lithic::RequestOptions::OrHash ).returns(T.attached_class) end def self.new( + auth_rule_token:, # Start date for the report begin_:, # End date for the report @@ -42,6 +47,7 @@ module Lithic sig do override.returns( { + auth_rule_token: String, begin_: Date, end_: Date, request_options: Lithic::RequestOptions diff --git a/rbi/lithic/models/auth_rules/v2_update_params.rbi b/rbi/lithic/models/auth_rules/v2_update_params.rbi index 9b948b11..d30c6611 100644 --- a/rbi/lithic/models/auth_rules/v2_update_params.rbi +++ b/rbi/lithic/models/auth_rules/v2_update_params.rbi @@ -12,105 +12,45 @@ module Lithic T.any(Lithic::AuthRules::V2UpdateParams, Lithic::Internal::AnyHash) end - # Account tokens to which the Auth Rule applies. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :account_tokens - - sig { params(account_tokens: T::Array[String]).void } - attr_writer :account_tokens - - # Business Account tokens to which the Auth Rule applies. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :business_account_tokens - - sig { params(business_account_tokens: T::Array[String]).void } - attr_writer :business_account_tokens - - # Auth Rule Name - sig { returns(T.nilable(String)) } - attr_accessor :name - - # The desired state of the Auth Rule. - # - # Note that only deactivating an Auth Rule through this endpoint is supported at - # this time. If you need to (re-)activate an Auth Rule the /promote endpoint - # should be used to promote a draft to the currently active version. - sig do - returns(T.nilable(Lithic::AuthRules::V2UpdateParams::State::OrSymbol)) - end - attr_reader :state + sig { returns(String) } + attr_accessor :auth_rule_token sig do - params(state: Lithic::AuthRules::V2UpdateParams::State::OrSymbol).void + returns( + T.any( + Lithic::AuthRules::V2UpdateParams::Body::AccountLevelRule, + Lithic::AuthRules::V2UpdateParams::Body::CardLevelRule, + Lithic::AuthRules::V2UpdateParams::Body::ProgramLevelRule + ) + ) end - attr_writer :state - - # Card tokens to which the Auth Rule applies. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :card_tokens - - sig { params(card_tokens: T::Array[String]).void } - attr_writer :card_tokens - - # Card tokens to which the Auth Rule does not apply. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :excluded_card_tokens - - sig { params(excluded_card_tokens: T::Array[String]).void } - attr_writer :excluded_card_tokens - - # Whether the Auth Rule applies to all authorizations on the card program. - sig { returns(T.nilable(T::Boolean)) } - attr_reader :program_level - - sig { params(program_level: T::Boolean).void } - attr_writer :program_level + attr_accessor :body sig do params( - account_tokens: T::Array[String], - business_account_tokens: T::Array[String], - name: T.nilable(String), - state: Lithic::AuthRules::V2UpdateParams::State::OrSymbol, - card_tokens: T::Array[String], - excluded_card_tokens: T::Array[String], - program_level: T::Boolean, + auth_rule_token: String, + body: + T.any( + Lithic::AuthRules::V2UpdateParams::Body::AccountLevelRule::OrHash, + Lithic::AuthRules::V2UpdateParams::Body::CardLevelRule::OrHash, + Lithic::AuthRules::V2UpdateParams::Body::ProgramLevelRule::OrHash + ), request_options: Lithic::RequestOptions::OrHash ).returns(T.attached_class) end - def self.new( - # Account tokens to which the Auth Rule applies. - account_tokens: nil, - # Business Account tokens to which the Auth Rule applies. - business_account_tokens: nil, - # Auth Rule Name - name: nil, - # The desired state of the Auth Rule. - # - # Note that only deactivating an Auth Rule through this endpoint is supported at - # this time. If you need to (re-)activate an Auth Rule the /promote endpoint - # should be used to promote a draft to the currently active version. - state: nil, - # Card tokens to which the Auth Rule applies. - card_tokens: nil, - # Card tokens to which the Auth Rule does not apply. - excluded_card_tokens: nil, - # Whether the Auth Rule applies to all authorizations on the card program. - program_level: nil, - request_options: {} - ) + def self.new(auth_rule_token:, body:, request_options: {}) end sig do override.returns( { - account_tokens: T::Array[String], - business_account_tokens: T::Array[String], - name: T.nilable(String), - state: Lithic::AuthRules::V2UpdateParams::State::OrSymbol, - card_tokens: T::Array[String], - excluded_card_tokens: T::Array[String], - program_level: T::Boolean, + auth_rule_token: String, + body: + T.any( + Lithic::AuthRules::V2UpdateParams::Body::AccountLevelRule, + Lithic::AuthRules::V2UpdateParams::Body::CardLevelRule, + Lithic::AuthRules::V2UpdateParams::Body::ProgramLevelRule + ), request_options: Lithic::RequestOptions } ) @@ -118,32 +58,382 @@ module Lithic def to_hash end - # The desired state of the Auth Rule. - # - # Note that only deactivating an Auth Rule through this endpoint is supported at - # this time. If you need to (re-)activate an Auth Rule the /promote endpoint - # should be used to promote a draft to the currently active version. - module State - extend Lithic::Internal::Type::Enum + module Body + extend Lithic::Internal::Type::Union - TaggedSymbol = + Variants = T.type_alias do - T.all(Symbol, Lithic::AuthRules::V2UpdateParams::State) + T.any( + Lithic::AuthRules::V2UpdateParams::Body::AccountLevelRule, + Lithic::AuthRules::V2UpdateParams::Body::CardLevelRule, + Lithic::AuthRules::V2UpdateParams::Body::ProgramLevelRule + ) + end + + class AccountLevelRule < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::AuthRules::V2UpdateParams::Body::AccountLevelRule, + Lithic::Internal::AnyHash + ) + end + + # Account tokens to which the Auth Rule applies. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :account_tokens + + sig { params(account_tokens: T::Array[String]).void } + attr_writer :account_tokens + + # Business Account tokens to which the Auth Rule applies. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :business_account_tokens + + sig { params(business_account_tokens: T::Array[String]).void } + attr_writer :business_account_tokens + + # Auth Rule Name + sig { returns(T.nilable(String)) } + attr_accessor :name + + # The desired state of the Auth Rule. + # + # Note that only deactivating an Auth Rule through this endpoint is supported at + # this time. If you need to (re-)activate an Auth Rule the /promote endpoint + # should be used to promote a draft to the currently active version. + sig do + returns( + T.nilable( + Lithic::AuthRules::V2UpdateParams::Body::AccountLevelRule::State::OrSymbol + ) + ) + end + attr_reader :state + + sig do + params( + state: + Lithic::AuthRules::V2UpdateParams::Body::AccountLevelRule::State::OrSymbol + ).void + end + attr_writer :state + + sig do + params( + account_tokens: T::Array[String], + business_account_tokens: T::Array[String], + name: T.nilable(String), + state: + Lithic::AuthRules::V2UpdateParams::Body::AccountLevelRule::State::OrSymbol + ).returns(T.attached_class) + end + def self.new( + # Account tokens to which the Auth Rule applies. + account_tokens: nil, + # Business Account tokens to which the Auth Rule applies. + business_account_tokens: nil, + # Auth Rule Name + name: nil, + # The desired state of the Auth Rule. + # + # Note that only deactivating an Auth Rule through this endpoint is supported at + # this time. If you need to (re-)activate an Auth Rule the /promote endpoint + # should be used to promote a draft to the currently active version. + state: nil + ) + end + + sig do + override.returns( + { + account_tokens: T::Array[String], + business_account_tokens: T::Array[String], + name: T.nilable(String), + state: + Lithic::AuthRules::V2UpdateParams::Body::AccountLevelRule::State::OrSymbol + } + ) + end + def to_hash + end + + # The desired state of the Auth Rule. + # + # Note that only deactivating an Auth Rule through this endpoint is supported at + # this time. If you need to (re-)activate an Auth Rule the /promote endpoint + # should be used to promote a draft to the currently active version. + module State + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Lithic::AuthRules::V2UpdateParams::Body::AccountLevelRule::State + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + INACTIVE = + T.let( + :INACTIVE, + Lithic::AuthRules::V2UpdateParams::Body::AccountLevelRule::State::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::AuthRules::V2UpdateParams::Body::AccountLevelRule::State::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class CardLevelRule < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::AuthRules::V2UpdateParams::Body::CardLevelRule, + Lithic::Internal::AnyHash + ) + end + + # Card tokens to which the Auth Rule applies. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :card_tokens + + sig { params(card_tokens: T::Array[String]).void } + attr_writer :card_tokens + + # Auth Rule Name + sig { returns(T.nilable(String)) } + attr_accessor :name + + # The desired state of the Auth Rule. + # + # Note that only deactivating an Auth Rule through this endpoint is supported at + # this time. If you need to (re-)activate an Auth Rule the /promote endpoint + # should be used to promote a draft to the currently active version. + sig do + returns( + T.nilable( + Lithic::AuthRules::V2UpdateParams::Body::CardLevelRule::State::OrSymbol + ) + ) + end + attr_reader :state + + sig do + params( + state: + Lithic::AuthRules::V2UpdateParams::Body::CardLevelRule::State::OrSymbol + ).void + end + attr_writer :state + + sig do + params( + card_tokens: T::Array[String], + name: T.nilable(String), + state: + Lithic::AuthRules::V2UpdateParams::Body::CardLevelRule::State::OrSymbol + ).returns(T.attached_class) + end + def self.new( + # Card tokens to which the Auth Rule applies. + card_tokens: nil, + # Auth Rule Name + name: nil, + # The desired state of the Auth Rule. + # + # Note that only deactivating an Auth Rule through this endpoint is supported at + # this time. If you need to (re-)activate an Auth Rule the /promote endpoint + # should be used to promote a draft to the currently active version. + state: nil + ) + end + + sig do + override.returns( + { + card_tokens: T::Array[String], + name: T.nilable(String), + state: + Lithic::AuthRules::V2UpdateParams::Body::CardLevelRule::State::OrSymbol + } + ) + end + def to_hash + end + + # The desired state of the Auth Rule. + # + # Note that only deactivating an Auth Rule through this endpoint is supported at + # this time. If you need to (re-)activate an Auth Rule the /promote endpoint + # should be used to promote a draft to the currently active version. + module State + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Lithic::AuthRules::V2UpdateParams::Body::CardLevelRule::State + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + INACTIVE = + T.let( + :INACTIVE, + Lithic::AuthRules::V2UpdateParams::Body::CardLevelRule::State::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::AuthRules::V2UpdateParams::Body::CardLevelRule::State::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class ProgramLevelRule < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::AuthRules::V2UpdateParams::Body::ProgramLevelRule, + Lithic::Internal::AnyHash + ) + end + + # Card tokens to which the Auth Rule does not apply. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :excluded_card_tokens + + sig { params(excluded_card_tokens: T::Array[String]).void } + attr_writer :excluded_card_tokens + + # Auth Rule Name + sig { returns(T.nilable(String)) } + attr_accessor :name + + # Whether the Auth Rule applies to all authorizations on the card program. + sig { returns(T.nilable(T::Boolean)) } + attr_reader :program_level + + sig { params(program_level: T::Boolean).void } + attr_writer :program_level + + # The desired state of the Auth Rule. + # + # Note that only deactivating an Auth Rule through this endpoint is supported at + # this time. If you need to (re-)activate an Auth Rule the /promote endpoint + # should be used to promote a draft to the currently active version. + sig do + returns( + T.nilable( + Lithic::AuthRules::V2UpdateParams::Body::ProgramLevelRule::State::OrSymbol + ) + ) end - OrSymbol = T.type_alias { T.any(Symbol, String) } + attr_reader :state - INACTIVE = - T.let( - :INACTIVE, - Lithic::AuthRules::V2UpdateParams::State::TaggedSymbol + sig do + params( + state: + Lithic::AuthRules::V2UpdateParams::Body::ProgramLevelRule::State::OrSymbol + ).void + end + attr_writer :state + + sig do + params( + excluded_card_tokens: T::Array[String], + name: T.nilable(String), + program_level: T::Boolean, + state: + Lithic::AuthRules::V2UpdateParams::Body::ProgramLevelRule::State::OrSymbol + ).returns(T.attached_class) + end + def self.new( + # Card tokens to which the Auth Rule does not apply. + excluded_card_tokens: nil, + # Auth Rule Name + name: nil, + # Whether the Auth Rule applies to all authorizations on the card program. + program_level: nil, + # The desired state of the Auth Rule. + # + # Note that only deactivating an Auth Rule through this endpoint is supported at + # this time. If you need to (re-)activate an Auth Rule the /promote endpoint + # should be used to promote a draft to the currently active version. + state: nil ) + end + + sig do + override.returns( + { + excluded_card_tokens: T::Array[String], + name: T.nilable(String), + program_level: T::Boolean, + state: + Lithic::AuthRules::V2UpdateParams::Body::ProgramLevelRule::State::OrSymbol + } + ) + end + def to_hash + end + + # The desired state of the Auth Rule. + # + # Note that only deactivating an Auth Rule through this endpoint is supported at + # this time. If you need to (re-)activate an Auth Rule the /promote endpoint + # should be used to promote a draft to the currently active version. + module State + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Lithic::AuthRules::V2UpdateParams::Body::ProgramLevelRule::State + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + INACTIVE = + T.let( + :INACTIVE, + Lithic::AuthRules::V2UpdateParams::Body::ProgramLevelRule::State::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::AuthRules::V2UpdateParams::Body::ProgramLevelRule::State::TaggedSymbol + ] + ) + end + def self.values + end + end + end sig do override.returns( - T::Array[Lithic::AuthRules::V2UpdateParams::State::TaggedSymbol] + T::Array[Lithic::AuthRules::V2UpdateParams::Body::Variants] ) end - def self.values + def self.variants end end end diff --git a/rbi/lithic/models/book_transfer_retrieve_params.rbi b/rbi/lithic/models/book_transfer_retrieve_params.rbi index c0c17ce4..d6a06d26 100644 --- a/rbi/lithic/models/book_transfer_retrieve_params.rbi +++ b/rbi/lithic/models/book_transfer_retrieve_params.rbi @@ -11,15 +11,26 @@ module Lithic T.any(Lithic::BookTransferRetrieveParams, Lithic::Internal::AnyHash) end + sig { returns(String) } + attr_accessor :book_transfer_token + sig do - params(request_options: Lithic::RequestOptions::OrHash).returns( - T.attached_class - ) + params( + book_transfer_token: String, + request_options: Lithic::RequestOptions::OrHash + ).returns(T.attached_class) end - def self.new(request_options: {}) + def self.new(book_transfer_token:, request_options: {}) end - sig { override.returns({ request_options: Lithic::RequestOptions }) } + sig do + override.returns( + { + book_transfer_token: String, + request_options: Lithic::RequestOptions + } + ) + end def to_hash end end diff --git a/rbi/lithic/models/book_transfer_retry_params.rbi b/rbi/lithic/models/book_transfer_retry_params.rbi index cae34f2c..822f8dce 100644 --- a/rbi/lithic/models/book_transfer_retry_params.rbi +++ b/rbi/lithic/models/book_transfer_retry_params.rbi @@ -11,6 +11,9 @@ module Lithic T.any(Lithic::BookTransferRetryParams, Lithic::Internal::AnyHash) end + sig { returns(String) } + attr_accessor :book_transfer_token + # Customer-provided token that will serve as an idempotency token. This token will # become the transaction token. sig { returns(String) } @@ -18,11 +21,13 @@ module Lithic sig do params( + book_transfer_token: String, retry_token: String, request_options: Lithic::RequestOptions::OrHash ).returns(T.attached_class) end def self.new( + book_transfer_token:, # Customer-provided token that will serve as an idempotency token. This token will # become the transaction token. retry_token:, @@ -32,7 +37,11 @@ module Lithic sig do override.returns( - { retry_token: String, request_options: Lithic::RequestOptions } + { + book_transfer_token: String, + retry_token: String, + request_options: Lithic::RequestOptions + } ) end def to_hash diff --git a/rbi/lithic/models/book_transfer_reverse_params.rbi b/rbi/lithic/models/book_transfer_reverse_params.rbi index 58ea8b59..907c06fa 100644 --- a/rbi/lithic/models/book_transfer_reverse_params.rbi +++ b/rbi/lithic/models/book_transfer_reverse_params.rbi @@ -11,6 +11,9 @@ module Lithic T.any(Lithic::BookTransferReverseParams, Lithic::Internal::AnyHash) end + sig { returns(String) } + attr_accessor :book_transfer_token + # Optional descriptor for the reversal. sig { returns(T.nilable(String)) } attr_reader :memo @@ -20,11 +23,13 @@ module Lithic sig do params( + book_transfer_token: String, memo: String, request_options: Lithic::RequestOptions::OrHash ).returns(T.attached_class) end def self.new( + book_transfer_token:, # Optional descriptor for the reversal. memo: nil, request_options: {} @@ -33,7 +38,11 @@ module Lithic sig do override.returns( - { memo: String, request_options: Lithic::RequestOptions } + { + book_transfer_token: String, + memo: String, + request_options: Lithic::RequestOptions + } ) end def to_hash diff --git a/rbi/lithic/models/card_bulk_order_retrieve_params.rbi b/rbi/lithic/models/card_bulk_order_retrieve_params.rbi index 97a1f558..c3e41fa5 100644 --- a/rbi/lithic/models/card_bulk_order_retrieve_params.rbi +++ b/rbi/lithic/models/card_bulk_order_retrieve_params.rbi @@ -11,15 +11,23 @@ module Lithic T.any(Lithic::CardBulkOrderRetrieveParams, Lithic::Internal::AnyHash) end + sig { returns(String) } + attr_accessor :bulk_order_token + sig do - params(request_options: Lithic::RequestOptions::OrHash).returns( - T.attached_class - ) + params( + bulk_order_token: String, + request_options: Lithic::RequestOptions::OrHash + ).returns(T.attached_class) end - def self.new(request_options: {}) + def self.new(bulk_order_token:, request_options: {}) end - sig { override.returns({ request_options: Lithic::RequestOptions }) } + sig do + override.returns( + { bulk_order_token: String, request_options: Lithic::RequestOptions } + ) + end def to_hash end end diff --git a/rbi/lithic/models/card_bulk_order_update_params.rbi b/rbi/lithic/models/card_bulk_order_update_params.rbi index a167c247..97deb69c 100644 --- a/rbi/lithic/models/card_bulk_order_update_params.rbi +++ b/rbi/lithic/models/card_bulk_order_update_params.rbi @@ -11,17 +11,22 @@ module Lithic T.any(Lithic::CardBulkOrderUpdateParams, Lithic::Internal::AnyHash) end + sig { returns(String) } + attr_accessor :bulk_order_token + # Status to update the bulk order to. Use LOCKED to finalize the order sig { returns(Lithic::CardBulkOrderUpdateParams::Status::OrSymbol) } attr_accessor :status sig do params( + bulk_order_token: String, status: Lithic::CardBulkOrderUpdateParams::Status::OrSymbol, request_options: Lithic::RequestOptions::OrHash ).returns(T.attached_class) end def self.new( + bulk_order_token:, # Status to update the bulk order to. Use LOCKED to finalize the order status:, request_options: {} @@ -31,6 +36,7 @@ module Lithic sig do override.returns( { + bulk_order_token: String, status: Lithic::CardBulkOrderUpdateParams::Status::OrSymbol, request_options: Lithic::RequestOptions } diff --git a/rbi/lithic/models/card_convert_physical_params.rbi b/rbi/lithic/models/card_convert_physical_params.rbi index 64306945..b095e88f 100644 --- a/rbi/lithic/models/card_convert_physical_params.rbi +++ b/rbi/lithic/models/card_convert_physical_params.rbi @@ -11,6 +11,9 @@ module Lithic T.any(Lithic::CardConvertPhysicalParams, Lithic::Internal::AnyHash) end + sig { returns(String) } + attr_accessor :card_token + # The shipping address this card will be sent to. sig { returns(Lithic::ShippingAddress) } attr_reader :shipping_address @@ -66,6 +69,7 @@ module Lithic sig do params( + card_token: String, shipping_address: Lithic::ShippingAddress::OrHash, carrier: Lithic::Carrier::OrHash, product_id: String, @@ -75,6 +79,7 @@ module Lithic ).returns(T.attached_class) end def self.new( + card_token:, # The shipping address this card will be sent to. shipping_address:, # If omitted, the previous carrier will be used. @@ -106,6 +111,7 @@ module Lithic sig do override.returns( { + card_token: String, shipping_address: Lithic::ShippingAddress, carrier: Lithic::Carrier, product_id: String, diff --git a/rbi/lithic/models/card_program_retrieve_params.rbi b/rbi/lithic/models/card_program_retrieve_params.rbi index 9f4ad4e4..e5933487 100644 --- a/rbi/lithic/models/card_program_retrieve_params.rbi +++ b/rbi/lithic/models/card_program_retrieve_params.rbi @@ -11,15 +11,26 @@ module Lithic T.any(Lithic::CardProgramRetrieveParams, Lithic::Internal::AnyHash) end + sig { returns(String) } + attr_accessor :card_program_token + sig do - params(request_options: Lithic::RequestOptions::OrHash).returns( - T.attached_class - ) + params( + card_program_token: String, + request_options: Lithic::RequestOptions::OrHash + ).returns(T.attached_class) end - def self.new(request_options: {}) + def self.new(card_program_token:, request_options: {}) end - sig { override.returns({ request_options: Lithic::RequestOptions }) } + sig do + override.returns( + { + card_program_token: String, + request_options: Lithic::RequestOptions + } + ) + end def to_hash end end diff --git a/rbi/lithic/models/card_provision_params.rbi b/rbi/lithic/models/card_provision_params.rbi index 2c08943d..b941391a 100644 --- a/rbi/lithic/models/card_provision_params.rbi +++ b/rbi/lithic/models/card_provision_params.rbi @@ -11,6 +11,9 @@ module Lithic T.any(Lithic::CardProvisionParams, Lithic::Internal::AnyHash) end + sig { returns(String) } + attr_accessor :card_token + # Only applicable if `digital_wallet` is `APPLE_PAY`. Omit to receive only # `activationData` in the response. Apple's public leaf certificate. Base64 # encoded in PEM format with headers `(-----BEGIN CERTIFICATE-----)` and trailers @@ -72,6 +75,7 @@ module Lithic sig do params( + card_token: String, certificate: String, client_device_id: String, client_wallet_account_id: String, @@ -82,6 +86,7 @@ module Lithic ).returns(T.attached_class) end def self.new( + card_token:, # Only applicable if `digital_wallet` is `APPLE_PAY`. Omit to receive only # `activationData` in the response. Apple's public leaf certificate. Base64 # encoded in PEM format with headers `(-----BEGIN CERTIFICATE-----)` and trailers @@ -112,6 +117,7 @@ module Lithic sig do override.returns( { + card_token: String, certificate: String, client_device_id: String, client_wallet_account_id: String, diff --git a/rbi/lithic/models/card_reissue_params.rbi b/rbi/lithic/models/card_reissue_params.rbi index f4e4384b..a365e366 100644 --- a/rbi/lithic/models/card_reissue_params.rbi +++ b/rbi/lithic/models/card_reissue_params.rbi @@ -11,6 +11,9 @@ module Lithic T.any(Lithic::CardReissueParams, Lithic::Internal::AnyHash) end + sig { returns(String) } + attr_accessor :card_token + # If omitted, the previous carrier will be used. sig { returns(T.nilable(Lithic::Carrier)) } attr_reader :carrier @@ -63,6 +66,7 @@ module Lithic sig do params( + card_token: String, carrier: Lithic::Carrier::OrHash, product_id: String, shipping_address: Lithic::ShippingAddress::OrHash, @@ -71,6 +75,7 @@ module Lithic ).returns(T.attached_class) end def self.new( + card_token:, # If omitted, the previous carrier will be used. carrier: nil, # Specifies the configuration (e.g. physical card art) that the card should be @@ -102,6 +107,7 @@ module Lithic sig do override.returns( { + card_token: String, carrier: Lithic::Carrier, product_id: String, shipping_address: Lithic::ShippingAddress, diff --git a/rbi/lithic/models/card_renew_params.rbi b/rbi/lithic/models/card_renew_params.rbi index 71435ff4..819a10df 100644 --- a/rbi/lithic/models/card_renew_params.rbi +++ b/rbi/lithic/models/card_renew_params.rbi @@ -11,6 +11,9 @@ module Lithic T.any(Lithic::CardRenewParams, Lithic::Internal::AnyHash) end + sig { returns(String) } + attr_accessor :card_token + # The shipping address this card will be sent to. sig { returns(Lithic::ShippingAddress) } attr_reader :shipping_address @@ -79,6 +82,7 @@ module Lithic sig do params( + card_token: String, shipping_address: Lithic::ShippingAddress::OrHash, carrier: Lithic::Carrier::OrHash, exp_month: String, @@ -89,6 +93,7 @@ module Lithic ).returns(T.attached_class) end def self.new( + card_token:, # The shipping address this card will be sent to. shipping_address:, # If omitted, the previous carrier will be used. @@ -126,6 +131,7 @@ module Lithic sig do override.returns( { + card_token: String, shipping_address: Lithic::ShippingAddress, carrier: Lithic::Carrier, exp_month: String, diff --git a/rbi/lithic/models/card_retrieve_params.rbi b/rbi/lithic/models/card_retrieve_params.rbi index e95deaa2..9264bbc2 100644 --- a/rbi/lithic/models/card_retrieve_params.rbi +++ b/rbi/lithic/models/card_retrieve_params.rbi @@ -11,15 +11,23 @@ module Lithic T.any(Lithic::CardRetrieveParams, Lithic::Internal::AnyHash) end + sig { returns(String) } + attr_accessor :card_token + sig do - params(request_options: Lithic::RequestOptions::OrHash).returns( - T.attached_class - ) + params( + card_token: String, + request_options: Lithic::RequestOptions::OrHash + ).returns(T.attached_class) end - def self.new(request_options: {}) + def self.new(card_token:, request_options: {}) end - sig { override.returns({ request_options: Lithic::RequestOptions }) } + sig do + override.returns( + { card_token: String, request_options: Lithic::RequestOptions } + ) + end def to_hash end end diff --git a/rbi/lithic/models/card_retrieve_spend_limits_params.rbi b/rbi/lithic/models/card_retrieve_spend_limits_params.rbi index c0c7e2f6..a9730cee 100644 --- a/rbi/lithic/models/card_retrieve_spend_limits_params.rbi +++ b/rbi/lithic/models/card_retrieve_spend_limits_params.rbi @@ -14,15 +14,23 @@ module Lithic ) end + sig { returns(String) } + attr_accessor :card_token + sig do - params(request_options: Lithic::RequestOptions::OrHash).returns( - T.attached_class - ) + params( + card_token: String, + request_options: Lithic::RequestOptions::OrHash + ).returns(T.attached_class) end - def self.new(request_options: {}) + def self.new(card_token:, request_options: {}) end - sig { override.returns({ request_options: Lithic::RequestOptions }) } + sig do + override.returns( + { card_token: String, request_options: Lithic::RequestOptions } + ) + end def to_hash end end diff --git a/rbi/lithic/models/card_update_params.rbi b/rbi/lithic/models/card_update_params.rbi index 08a99645..9e78807b 100644 --- a/rbi/lithic/models/card_update_params.rbi +++ b/rbi/lithic/models/card_update_params.rbi @@ -11,6 +11,9 @@ module Lithic T.any(Lithic::CardUpdateParams, Lithic::Internal::AnyHash) end + sig { returns(String) } + attr_accessor :card_token + # Additional context or information related to the card. sig { returns(T.nilable(String)) } attr_reader :comment @@ -144,6 +147,7 @@ module Lithic sig do params( + card_token: String, comment: String, digital_card_art_token: String, memo: String, @@ -158,6 +162,7 @@ module Lithic ).returns(T.attached_class) end def self.new( + card_token:, # Additional context or information related to the card. comment: nil, # Specifies the digital card art to be displayed in the user’s digital wallet @@ -240,6 +245,7 @@ module Lithic sig do override.returns( { + card_token: String, comment: String, digital_card_art_token: String, memo: String, diff --git a/rbi/lithic/models/card_web_provision_params.rbi b/rbi/lithic/models/card_web_provision_params.rbi index 43dcbe30..607098cb 100644 --- a/rbi/lithic/models/card_web_provision_params.rbi +++ b/rbi/lithic/models/card_web_provision_params.rbi @@ -11,6 +11,9 @@ module Lithic T.any(Lithic::CardWebProvisionParams, Lithic::Internal::AnyHash) end + sig { returns(String) } + attr_accessor :card_token + # Only applicable if `digital_wallet` is GOOGLE_PAY. Google Pay Web Push # Provisioning device identifier required for the tokenization flow sig { returns(T.nilable(String)) } @@ -53,6 +56,7 @@ module Lithic sig do params( + card_token: String, client_device_id: String, client_wallet_account_id: String, digital_wallet: @@ -62,6 +66,7 @@ module Lithic ).returns(T.attached_class) end def self.new( + card_token:, # Only applicable if `digital_wallet` is GOOGLE_PAY. Google Pay Web Push # Provisioning device identifier required for the tokenization flow client_device_id: nil, @@ -80,6 +85,7 @@ module Lithic sig do override.returns( { + card_token: String, client_device_id: String, client_wallet_account_id: String, digital_wallet: diff --git a/rbi/lithic/models/cards/balance_list_params.rbi b/rbi/lithic/models/cards/balance_list_params.rbi index 05f1c101..26bff410 100644 --- a/rbi/lithic/models/cards/balance_list_params.rbi +++ b/rbi/lithic/models/cards/balance_list_params.rbi @@ -12,6 +12,9 @@ module Lithic T.any(Lithic::Cards::BalanceListParams, Lithic::Internal::AnyHash) end + sig { returns(String) } + attr_accessor :card_token + # UTC date of the balance to retrieve. Defaults to latest available balance sig { returns(T.nilable(Time)) } attr_reader :balance_date @@ -30,12 +33,14 @@ module Lithic sig do params( + card_token: String, balance_date: Time, last_transaction_event_token: String, request_options: Lithic::RequestOptions::OrHash ).returns(T.attached_class) end def self.new( + card_token:, # UTC date of the balance to retrieve. Defaults to latest available balance balance_date: nil, # Balance after a given financial event occured. For example, passing the @@ -49,6 +54,7 @@ module Lithic sig do override.returns( { + card_token: String, balance_date: Time, last_transaction_event_token: String, request_options: Lithic::RequestOptions diff --git a/rbi/lithic/models/cards/financial_transaction_list_params.rbi b/rbi/lithic/models/cards/financial_transaction_list_params.rbi index 4bba9eb0..400a3e43 100644 --- a/rbi/lithic/models/cards/financial_transaction_list_params.rbi +++ b/rbi/lithic/models/cards/financial_transaction_list_params.rbi @@ -15,6 +15,9 @@ module Lithic ) end + sig { returns(String) } + attr_accessor :card_token + # Date string in RFC 3339 format. Only entries created after the specified time # will be included. UTC time zone. sig { returns(T.nilable(Time)) } @@ -103,6 +106,7 @@ module Lithic sig do params( + card_token: String, begin_: Time, category: Lithic::Cards::FinancialTransactionListParams::Category::OrSymbol, @@ -117,6 +121,7 @@ module Lithic ).returns(T.attached_class) end def self.new( + card_token:, # Date string in RFC 3339 format. Only entries created after the specified time # will be included. UTC time zone. begin_: nil, @@ -142,6 +147,7 @@ module Lithic sig do override.returns( { + card_token: String, begin_: Time, category: Lithic::Cards::FinancialTransactionListParams::Category::OrSymbol, diff --git a/rbi/lithic/models/cards/financial_transaction_retrieve_params.rbi b/rbi/lithic/models/cards/financial_transaction_retrieve_params.rbi index 68f6146a..42bab820 100644 --- a/rbi/lithic/models/cards/financial_transaction_retrieve_params.rbi +++ b/rbi/lithic/models/cards/financial_transaction_retrieve_params.rbi @@ -18,18 +18,30 @@ module Lithic sig { returns(String) } attr_accessor :card_token + sig { returns(String) } + attr_accessor :financial_transaction_token + sig do params( card_token: String, + financial_transaction_token: String, request_options: Lithic::RequestOptions::OrHash ).returns(T.attached_class) end - def self.new(card_token:, request_options: {}) + def self.new( + card_token:, + financial_transaction_token:, + request_options: {} + ) end sig do override.returns( - { card_token: String, request_options: Lithic::RequestOptions } + { + card_token: String, + financial_transaction_token: String, + request_options: Lithic::RequestOptions + } ) end def to_hash diff --git a/rbi/lithic/models/credit_products/extended_credit_retrieve_params.rbi b/rbi/lithic/models/credit_products/extended_credit_retrieve_params.rbi index 445ec663..a9affc43 100644 --- a/rbi/lithic/models/credit_products/extended_credit_retrieve_params.rbi +++ b/rbi/lithic/models/credit_products/extended_credit_retrieve_params.rbi @@ -15,15 +15,26 @@ module Lithic ) end + sig { returns(String) } + attr_accessor :credit_product_token + sig do - params(request_options: Lithic::RequestOptions::OrHash).returns( - T.attached_class - ) + params( + credit_product_token: String, + request_options: Lithic::RequestOptions::OrHash + ).returns(T.attached_class) end - def self.new(request_options: {}) + def self.new(credit_product_token:, request_options: {}) end - sig { override.returns({ request_options: Lithic::RequestOptions }) } + sig do + override.returns( + { + credit_product_token: String, + request_options: Lithic::RequestOptions + } + ) + end def to_hash end end diff --git a/rbi/lithic/models/credit_products/prime_rate_create_params.rbi b/rbi/lithic/models/credit_products/prime_rate_create_params.rbi index acb52343..d72ef183 100644 --- a/rbi/lithic/models/credit_products/prime_rate_create_params.rbi +++ b/rbi/lithic/models/credit_products/prime_rate_create_params.rbi @@ -15,6 +15,10 @@ module Lithic ) end + # Globally unique identifier for credit products. + sig { returns(String) } + attr_accessor :credit_product_token + # Date the rate goes into effect sig { returns(Date) } attr_accessor :effective_date @@ -25,12 +29,15 @@ module Lithic sig do params( + credit_product_token: String, effective_date: Date, rate: String, request_options: Lithic::RequestOptions::OrHash ).returns(T.attached_class) end def self.new( + # Globally unique identifier for credit products. + credit_product_token:, # Date the rate goes into effect effective_date:, # The rate in decimal format @@ -42,6 +49,7 @@ module Lithic sig do override.returns( { + credit_product_token: String, effective_date: Date, rate: String, request_options: Lithic::RequestOptions diff --git a/rbi/lithic/models/credit_products/prime_rate_retrieve_params.rbi b/rbi/lithic/models/credit_products/prime_rate_retrieve_params.rbi index 177938d7..1faf7796 100644 --- a/rbi/lithic/models/credit_products/prime_rate_retrieve_params.rbi +++ b/rbi/lithic/models/credit_products/prime_rate_retrieve_params.rbi @@ -15,6 +15,10 @@ module Lithic ) end + # Globally unique identifier for credit products. + sig { returns(String) } + attr_accessor :credit_product_token + # The effective date that the prime rates ends before sig { returns(T.nilable(Date)) } attr_reader :ending_before @@ -31,12 +35,15 @@ module Lithic sig do params( + credit_product_token: String, ending_before: Date, starting_after: Date, request_options: Lithic::RequestOptions::OrHash ).returns(T.attached_class) end def self.new( + # Globally unique identifier for credit products. + credit_product_token:, # The effective date that the prime rates ends before ending_before: nil, # The effective date that the prime rate starts after @@ -48,6 +55,7 @@ module Lithic sig do override.returns( { + credit_product_token: String, ending_before: Date, starting_after: Date, request_options: Lithic::RequestOptions diff --git a/rbi/lithic/models/digital_card_art_retrieve_params.rbi b/rbi/lithic/models/digital_card_art_retrieve_params.rbi index 595f50af..bf522ad5 100644 --- a/rbi/lithic/models/digital_card_art_retrieve_params.rbi +++ b/rbi/lithic/models/digital_card_art_retrieve_params.rbi @@ -11,15 +11,26 @@ module Lithic T.any(Lithic::DigitalCardArtRetrieveParams, Lithic::Internal::AnyHash) end + sig { returns(String) } + attr_accessor :digital_card_art_token + sig do - params(request_options: Lithic::RequestOptions::OrHash).returns( - T.attached_class - ) + params( + digital_card_art_token: String, + request_options: Lithic::RequestOptions::OrHash + ).returns(T.attached_class) end - def self.new(request_options: {}) + def self.new(digital_card_art_token:, request_options: {}) end - sig { override.returns({ request_options: Lithic::RequestOptions }) } + sig do + override.returns( + { + digital_card_art_token: String, + request_options: Lithic::RequestOptions + } + ) + end def to_hash end end diff --git a/rbi/lithic/models/dispute_delete_evidence_params.rbi b/rbi/lithic/models/dispute_delete_evidence_params.rbi index 3b0deebf..2246ff1a 100644 --- a/rbi/lithic/models/dispute_delete_evidence_params.rbi +++ b/rbi/lithic/models/dispute_delete_evidence_params.rbi @@ -14,18 +14,26 @@ module Lithic sig { returns(String) } attr_accessor :dispute_token + sig { returns(String) } + attr_accessor :evidence_token + sig do params( dispute_token: String, + evidence_token: String, request_options: Lithic::RequestOptions::OrHash ).returns(T.attached_class) end - def self.new(dispute_token:, request_options: {}) + def self.new(dispute_token:, evidence_token:, request_options: {}) end sig do override.returns( - { dispute_token: String, request_options: Lithic::RequestOptions } + { + dispute_token: String, + evidence_token: String, + request_options: Lithic::RequestOptions + } ) end def to_hash diff --git a/rbi/lithic/models/dispute_delete_params.rbi b/rbi/lithic/models/dispute_delete_params.rbi index 99bae396..89017126 100644 --- a/rbi/lithic/models/dispute_delete_params.rbi +++ b/rbi/lithic/models/dispute_delete_params.rbi @@ -11,15 +11,23 @@ module Lithic T.any(Lithic::DisputeDeleteParams, Lithic::Internal::AnyHash) end + sig { returns(String) } + attr_accessor :dispute_token + sig do - params(request_options: Lithic::RequestOptions::OrHash).returns( - T.attached_class - ) + params( + dispute_token: String, + request_options: Lithic::RequestOptions::OrHash + ).returns(T.attached_class) end - def self.new(request_options: {}) + def self.new(dispute_token:, request_options: {}) end - sig { override.returns({ request_options: Lithic::RequestOptions }) } + sig do + override.returns( + { dispute_token: String, request_options: Lithic::RequestOptions } + ) + end def to_hash end end diff --git a/rbi/lithic/models/dispute_initiate_evidence_upload_params.rbi b/rbi/lithic/models/dispute_initiate_evidence_upload_params.rbi index 53e1244d..237bff94 100644 --- a/rbi/lithic/models/dispute_initiate_evidence_upload_params.rbi +++ b/rbi/lithic/models/dispute_initiate_evidence_upload_params.rbi @@ -14,6 +14,9 @@ module Lithic ) end + sig { returns(String) } + attr_accessor :dispute_token + # Filename of the evidence. sig { returns(T.nilable(String)) } attr_reader :filename @@ -23,11 +26,13 @@ module Lithic sig do params( + dispute_token: String, filename: String, request_options: Lithic::RequestOptions::OrHash ).returns(T.attached_class) end def self.new( + dispute_token:, # Filename of the evidence. filename: nil, request_options: {} @@ -36,7 +41,11 @@ module Lithic sig do override.returns( - { filename: String, request_options: Lithic::RequestOptions } + { + dispute_token: String, + filename: String, + request_options: Lithic::RequestOptions + } ) end def to_hash diff --git a/rbi/lithic/models/dispute_list_evidences_params.rbi b/rbi/lithic/models/dispute_list_evidences_params.rbi index 4dd9d07f..49f9150e 100644 --- a/rbi/lithic/models/dispute_list_evidences_params.rbi +++ b/rbi/lithic/models/dispute_list_evidences_params.rbi @@ -11,6 +11,9 @@ module Lithic T.any(Lithic::DisputeListEvidencesParams, Lithic::Internal::AnyHash) end + sig { returns(String) } + attr_accessor :dispute_token + # Date string in RFC 3339 format. Only entries created after the specified time # will be included. UTC time zone. sig { returns(T.nilable(Time)) } @@ -52,6 +55,7 @@ module Lithic sig do params( + dispute_token: String, begin_: Time, end_: Time, ending_before: String, @@ -61,6 +65,7 @@ module Lithic ).returns(T.attached_class) end def self.new( + dispute_token:, # Date string in RFC 3339 format. Only entries created after the specified time # will be included. UTC time zone. begin_: nil, @@ -82,6 +87,7 @@ module Lithic sig do override.returns( { + dispute_token: String, begin_: Time, end_: Time, ending_before: String, diff --git a/rbi/lithic/models/dispute_retrieve_evidence_params.rbi b/rbi/lithic/models/dispute_retrieve_evidence_params.rbi index 433b9bea..82eae6d3 100644 --- a/rbi/lithic/models/dispute_retrieve_evidence_params.rbi +++ b/rbi/lithic/models/dispute_retrieve_evidence_params.rbi @@ -17,18 +17,26 @@ module Lithic sig { returns(String) } attr_accessor :dispute_token + sig { returns(String) } + attr_accessor :evidence_token + sig do params( dispute_token: String, + evidence_token: String, request_options: Lithic::RequestOptions::OrHash ).returns(T.attached_class) end - def self.new(dispute_token:, request_options: {}) + def self.new(dispute_token:, evidence_token:, request_options: {}) end sig do override.returns( - { dispute_token: String, request_options: Lithic::RequestOptions } + { + dispute_token: String, + evidence_token: String, + request_options: Lithic::RequestOptions + } ) end def to_hash diff --git a/rbi/lithic/models/dispute_retrieve_params.rbi b/rbi/lithic/models/dispute_retrieve_params.rbi index a43718bd..3b62c519 100644 --- a/rbi/lithic/models/dispute_retrieve_params.rbi +++ b/rbi/lithic/models/dispute_retrieve_params.rbi @@ -11,15 +11,23 @@ module Lithic T.any(Lithic::DisputeRetrieveParams, Lithic::Internal::AnyHash) end + sig { returns(String) } + attr_accessor :dispute_token + sig do - params(request_options: Lithic::RequestOptions::OrHash).returns( - T.attached_class - ) + params( + dispute_token: String, + request_options: Lithic::RequestOptions::OrHash + ).returns(T.attached_class) end - def self.new(request_options: {}) + def self.new(dispute_token:, request_options: {}) end - sig { override.returns({ request_options: Lithic::RequestOptions }) } + sig do + override.returns( + { dispute_token: String, request_options: Lithic::RequestOptions } + ) + end def to_hash end end diff --git a/rbi/lithic/models/dispute_update_params.rbi b/rbi/lithic/models/dispute_update_params.rbi index bd4c554d..80c7d481 100644 --- a/rbi/lithic/models/dispute_update_params.rbi +++ b/rbi/lithic/models/dispute_update_params.rbi @@ -11,6 +11,9 @@ module Lithic T.any(Lithic::DisputeUpdateParams, Lithic::Internal::AnyHash) end + sig { returns(String) } + attr_accessor :dispute_token + # Amount to dispute sig { returns(T.nilable(Integer)) } attr_reader :amount @@ -41,6 +44,7 @@ module Lithic sig do params( + dispute_token: String, amount: Integer, customer_filed_date: Time, customer_note: String, @@ -49,6 +53,7 @@ module Lithic ).returns(T.attached_class) end def self.new( + dispute_token:, # Amount to dispute amount: nil, # Date the customer filed the dispute @@ -64,6 +69,7 @@ module Lithic sig do override.returns( { + dispute_token: String, amount: Integer, customer_filed_date: Time, customer_note: String, diff --git a/rbi/lithic/models/disputes_v2_retrieve_params.rbi b/rbi/lithic/models/disputes_v2_retrieve_params.rbi index 2432f72c..863a0419 100644 --- a/rbi/lithic/models/disputes_v2_retrieve_params.rbi +++ b/rbi/lithic/models/disputes_v2_retrieve_params.rbi @@ -11,15 +11,23 @@ module Lithic T.any(Lithic::DisputesV2RetrieveParams, Lithic::Internal::AnyHash) end + sig { returns(String) } + attr_accessor :dispute_token + sig do - params(request_options: Lithic::RequestOptions::OrHash).returns( - T.attached_class - ) + params( + dispute_token: String, + request_options: Lithic::RequestOptions::OrHash + ).returns(T.attached_class) end - def self.new(request_options: {}) + def self.new(dispute_token:, request_options: {}) end - sig { override.returns({ request_options: Lithic::RequestOptions }) } + sig do + override.returns( + { dispute_token: String, request_options: Lithic::RequestOptions } + ) + end def to_hash end end diff --git a/rbi/lithic/models/event_list_attempts_params.rbi b/rbi/lithic/models/event_list_attempts_params.rbi index d3a149d4..8327268b 100644 --- a/rbi/lithic/models/event_list_attempts_params.rbi +++ b/rbi/lithic/models/event_list_attempts_params.rbi @@ -11,6 +11,9 @@ module Lithic T.any(Lithic::EventListAttemptsParams, Lithic::Internal::AnyHash) end + sig { returns(String) } + attr_accessor :event_token + # Date string in RFC 3339 format. Only entries created after the specified time # will be included. UTC time zone. sig { returns(T.nilable(Time)) } @@ -62,6 +65,7 @@ module Lithic sig do params( + event_token: String, begin_: Time, end_: Time, ending_before: String, @@ -72,6 +76,7 @@ module Lithic ).returns(T.attached_class) end def self.new( + event_token:, # Date string in RFC 3339 format. Only entries created after the specified time # will be included. UTC time zone. begin_: nil, @@ -94,6 +99,7 @@ module Lithic sig do override.returns( { + event_token: String, begin_: Time, end_: Time, ending_before: String, diff --git a/rbi/lithic/models/event_retrieve_params.rbi b/rbi/lithic/models/event_retrieve_params.rbi index 9462e6dd..93cf5228 100644 --- a/rbi/lithic/models/event_retrieve_params.rbi +++ b/rbi/lithic/models/event_retrieve_params.rbi @@ -11,15 +11,23 @@ module Lithic T.any(Lithic::EventRetrieveParams, Lithic::Internal::AnyHash) end + sig { returns(String) } + attr_accessor :event_token + sig do - params(request_options: Lithic::RequestOptions::OrHash).returns( - T.attached_class - ) + params( + event_token: String, + request_options: Lithic::RequestOptions::OrHash + ).returns(T.attached_class) end - def self.new(request_options: {}) + def self.new(event_token:, request_options: {}) end - sig { override.returns({ request_options: Lithic::RequestOptions }) } + sig do + override.returns( + { event_token: String, request_options: Lithic::RequestOptions } + ) + end def to_hash end end diff --git a/rbi/lithic/models/events/event_subscription_resend_params.rbi b/rbi/lithic/models/events/event_subscription_resend_params.rbi index b798611f..42c906b2 100644 --- a/rbi/lithic/models/events/event_subscription_resend_params.rbi +++ b/rbi/lithic/models/events/event_subscription_resend_params.rbi @@ -18,18 +18,30 @@ module Lithic sig { returns(String) } attr_accessor :event_token + sig { returns(String) } + attr_accessor :event_subscription_token + sig do params( event_token: String, + event_subscription_token: String, request_options: Lithic::RequestOptions::OrHash ).returns(T.attached_class) end - def self.new(event_token:, request_options: {}) + def self.new( + event_token:, + event_subscription_token:, + request_options: {} + ) end sig do override.returns( - { event_token: String, request_options: Lithic::RequestOptions } + { + event_token: String, + event_subscription_token: String, + request_options: Lithic::RequestOptions + } ) end def to_hash diff --git a/rbi/lithic/models/events/subscription_delete_params.rbi b/rbi/lithic/models/events/subscription_delete_params.rbi index 7eb3b4cb..bbcf4fd0 100644 --- a/rbi/lithic/models/events/subscription_delete_params.rbi +++ b/rbi/lithic/models/events/subscription_delete_params.rbi @@ -15,15 +15,26 @@ module Lithic ) end + sig { returns(String) } + attr_accessor :event_subscription_token + sig do - params(request_options: Lithic::RequestOptions::OrHash).returns( - T.attached_class - ) + params( + event_subscription_token: String, + request_options: Lithic::RequestOptions::OrHash + ).returns(T.attached_class) end - def self.new(request_options: {}) + def self.new(event_subscription_token:, request_options: {}) end - sig { override.returns({ request_options: Lithic::RequestOptions }) } + sig do + override.returns( + { + event_subscription_token: String, + request_options: Lithic::RequestOptions + } + ) + end def to_hash end end diff --git a/rbi/lithic/models/events/subscription_list_attempts_params.rbi b/rbi/lithic/models/events/subscription_list_attempts_params.rbi index cfa6e92f..f1ada434 100644 --- a/rbi/lithic/models/events/subscription_list_attempts_params.rbi +++ b/rbi/lithic/models/events/subscription_list_attempts_params.rbi @@ -15,6 +15,9 @@ module Lithic ) end + sig { returns(String) } + attr_accessor :event_subscription_token + # Date string in RFC 3339 format. Only entries created after the specified time # will be included. UTC time zone. sig { returns(T.nilable(Time)) } @@ -73,6 +76,7 @@ module Lithic sig do params( + event_subscription_token: String, begin_: Time, end_: Time, ending_before: String, @@ -84,6 +88,7 @@ module Lithic ).returns(T.attached_class) end def self.new( + event_subscription_token:, # Date string in RFC 3339 format. Only entries created after the specified time # will be included. UTC time zone. begin_: nil, @@ -106,6 +111,7 @@ module Lithic sig do override.returns( { + event_subscription_token: String, begin_: Time, end_: Time, ending_before: String, diff --git a/rbi/lithic/models/events/subscription_recover_params.rbi b/rbi/lithic/models/events/subscription_recover_params.rbi index 14a62dc7..8302ef36 100644 --- a/rbi/lithic/models/events/subscription_recover_params.rbi +++ b/rbi/lithic/models/events/subscription_recover_params.rbi @@ -15,6 +15,9 @@ module Lithic ) end + sig { returns(String) } + attr_accessor :event_subscription_token + # Date string in RFC 3339 format. Only entries created after the specified time # will be included. UTC time zone. sig { returns(T.nilable(Time)) } @@ -33,12 +36,14 @@ module Lithic sig do params( + event_subscription_token: String, begin_: Time, end_: Time, request_options: Lithic::RequestOptions::OrHash ).returns(T.attached_class) end def self.new( + event_subscription_token:, # Date string in RFC 3339 format. Only entries created after the specified time # will be included. UTC time zone. begin_: nil, @@ -52,6 +57,7 @@ module Lithic sig do override.returns( { + event_subscription_token: String, begin_: Time, end_: Time, request_options: Lithic::RequestOptions diff --git a/rbi/lithic/models/events/subscription_replay_missing_params.rbi b/rbi/lithic/models/events/subscription_replay_missing_params.rbi index 89c21a25..957d90c0 100644 --- a/rbi/lithic/models/events/subscription_replay_missing_params.rbi +++ b/rbi/lithic/models/events/subscription_replay_missing_params.rbi @@ -15,6 +15,9 @@ module Lithic ) end + sig { returns(String) } + attr_accessor :event_subscription_token + # Date string in RFC 3339 format. Only entries created after the specified time # will be included. UTC time zone. sig { returns(T.nilable(Time)) } @@ -33,12 +36,14 @@ module Lithic sig do params( + event_subscription_token: String, begin_: Time, end_: Time, request_options: Lithic::RequestOptions::OrHash ).returns(T.attached_class) end def self.new( + event_subscription_token:, # Date string in RFC 3339 format. Only entries created after the specified time # will be included. UTC time zone. begin_: nil, @@ -52,6 +57,7 @@ module Lithic sig do override.returns( { + event_subscription_token: String, begin_: Time, end_: Time, request_options: Lithic::RequestOptions diff --git a/rbi/lithic/models/events/subscription_retrieve_params.rbi b/rbi/lithic/models/events/subscription_retrieve_params.rbi index 225d060a..4ca492f1 100644 --- a/rbi/lithic/models/events/subscription_retrieve_params.rbi +++ b/rbi/lithic/models/events/subscription_retrieve_params.rbi @@ -15,15 +15,26 @@ module Lithic ) end + sig { returns(String) } + attr_accessor :event_subscription_token + sig do - params(request_options: Lithic::RequestOptions::OrHash).returns( - T.attached_class - ) + params( + event_subscription_token: String, + request_options: Lithic::RequestOptions::OrHash + ).returns(T.attached_class) end - def self.new(request_options: {}) + def self.new(event_subscription_token:, request_options: {}) end - sig { override.returns({ request_options: Lithic::RequestOptions }) } + sig do + override.returns( + { + event_subscription_token: String, + request_options: Lithic::RequestOptions + } + ) + end def to_hash end end diff --git a/rbi/lithic/models/events/subscription_retrieve_secret_params.rbi b/rbi/lithic/models/events/subscription_retrieve_secret_params.rbi index 3362df2e..9c9706e0 100644 --- a/rbi/lithic/models/events/subscription_retrieve_secret_params.rbi +++ b/rbi/lithic/models/events/subscription_retrieve_secret_params.rbi @@ -15,15 +15,26 @@ module Lithic ) end + sig { returns(String) } + attr_accessor :event_subscription_token + sig do - params(request_options: Lithic::RequestOptions::OrHash).returns( - T.attached_class - ) + params( + event_subscription_token: String, + request_options: Lithic::RequestOptions::OrHash + ).returns(T.attached_class) end - def self.new(request_options: {}) + def self.new(event_subscription_token:, request_options: {}) end - sig { override.returns({ request_options: Lithic::RequestOptions }) } + sig do + override.returns( + { + event_subscription_token: String, + request_options: Lithic::RequestOptions + } + ) + end def to_hash end end diff --git a/rbi/lithic/models/events/subscription_rotate_secret_params.rbi b/rbi/lithic/models/events/subscription_rotate_secret_params.rbi index 3dd5586c..b5e79a4a 100644 --- a/rbi/lithic/models/events/subscription_rotate_secret_params.rbi +++ b/rbi/lithic/models/events/subscription_rotate_secret_params.rbi @@ -15,15 +15,26 @@ module Lithic ) end + sig { returns(String) } + attr_accessor :event_subscription_token + sig do - params(request_options: Lithic::RequestOptions::OrHash).returns( - T.attached_class - ) + params( + event_subscription_token: String, + request_options: Lithic::RequestOptions::OrHash + ).returns(T.attached_class) end - def self.new(request_options: {}) + def self.new(event_subscription_token:, request_options: {}) end - sig { override.returns({ request_options: Lithic::RequestOptions }) } + sig do + override.returns( + { + event_subscription_token: String, + request_options: Lithic::RequestOptions + } + ) + end def to_hash end end diff --git a/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi b/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi index 9d3ce05d..2331e07a 100644 --- a/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +++ b/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi @@ -15,6 +15,9 @@ module Lithic ) end + sig { returns(String) } + attr_accessor :event_subscription_token + # Event type to send example message for. sig do returns( @@ -35,12 +38,14 @@ module Lithic sig do params( + event_subscription_token: String, event_type: Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::OrSymbol, request_options: Lithic::RequestOptions::OrHash ).returns(T.attached_class) end def self.new( + event_subscription_token:, # Event type to send example message for. event_type: nil, request_options: {} @@ -50,6 +55,7 @@ module Lithic sig do override.returns( { + event_subscription_token: String, event_type: Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::OrSymbol, request_options: Lithic::RequestOptions diff --git a/rbi/lithic/models/events/subscription_update_params.rbi b/rbi/lithic/models/events/subscription_update_params.rbi index 56accacb..5bcae1ee 100644 --- a/rbi/lithic/models/events/subscription_update_params.rbi +++ b/rbi/lithic/models/events/subscription_update_params.rbi @@ -15,6 +15,9 @@ module Lithic ) end + sig { returns(String) } + attr_accessor :event_subscription_token + # URL to which event webhooks will be sent. URL must be a valid HTTPS address. sig { returns(String) } attr_accessor :url @@ -58,6 +61,7 @@ module Lithic sig do params( + event_subscription_token: String, url: String, description: String, disabled: T::Boolean, @@ -69,6 +73,7 @@ module Lithic ).returns(T.attached_class) end def self.new( + event_subscription_token:, # URL to which event webhooks will be sent. URL must be a valid HTTPS address. url:, # Event subscription description. @@ -85,6 +90,7 @@ module Lithic sig do override.returns( { + event_subscription_token: String, url: String, description: String, disabled: T::Boolean, diff --git a/rbi/lithic/models/external_bank_account_create_params.rbi b/rbi/lithic/models/external_bank_account_create_params.rbi index dc247ffd..255e90b1 100644 --- a/rbi/lithic/models/external_bank_account_create_params.rbi +++ b/rbi/lithic/models/external_bank_account_create_params.rbi @@ -14,191 +14,40 @@ module Lithic ) end - # Account Number - sig { returns(String) } - attr_accessor :account_number - - # The country that the bank account is located in using ISO 3166-1. We will only - # accept USA bank accounts e.g., USA - sig { returns(String) } - attr_accessor :country - - # currency of the external account 3-character alphabetic ISO 4217 code - sig { returns(String) } - attr_accessor :currency - - # The financial account token of the operating account to fund the micro deposits - sig { returns(String) } - attr_accessor :financial_account_token - - # Legal Name of the business or individual who owns the external account. This - # will appear in statements - sig { returns(String) } - attr_accessor :owner - - # Owner Type - sig { returns(Lithic::OwnerType::OrSymbol) } - attr_accessor :owner_type - - # Routing Number - sig { returns(String) } - attr_accessor :routing_number - - # Account Type - sig { returns(Lithic::ExternalBankAccountCreateParams::Type::OrSymbol) } - attr_accessor :type - - # Verification Method sig do returns( - Lithic::ExternalBankAccountCreateParams::VerificationMethod::OrSymbol + T.any( + Lithic::ExternalBankAccountCreateParams::Body::ExternallyVerified, + Lithic::ExternalBankAccountCreateParams::Body::Unverified, + Lithic::ExternalBankAccountCreateParams::Body::BankVerifiedCreateBankAccountAPIRequest + ) ) end - attr_accessor :verification_method - - # Indicates which Lithic account the external account is associated with. For - # external accounts that are associated with the program, account_token field - # returned will be null - sig { returns(T.nilable(String)) } - attr_reader :account_token - - sig { params(account_token: String).void } - attr_writer :account_token - - # Address - sig { returns(T.nilable(Lithic::ExternalBankAccountAddress)) } - attr_reader :address - - sig { params(address: Lithic::ExternalBankAccountAddress::OrHash).void } - attr_writer :address - - # Optional field that helps identify bank accounts in receipts - sig { returns(T.nilable(String)) } - attr_reader :company_id - - sig { params(company_id: String).void } - attr_writer :company_id - - # Date of Birth of the Individual that owns the external bank account - sig { returns(T.nilable(Date)) } - attr_reader :dob - - sig { params(dob: Date).void } - attr_writer :dob - - # Doing Business As - sig { returns(T.nilable(String)) } - attr_reader :doing_business_as - - sig { params(doing_business_as: String).void } - attr_writer :doing_business_as - - # The nickname for this External Bank Account - sig { returns(T.nilable(String)) } - attr_reader :name - - sig { params(name: String).void } - attr_writer :name - - # User Defined ID - sig { returns(T.nilable(String)) } - attr_reader :user_defined_id - - sig { params(user_defined_id: String).void } - attr_writer :user_defined_id - - sig { returns(T.nilable(T::Boolean)) } - attr_reader :verification_enforcement - - sig { params(verification_enforcement: T::Boolean).void } - attr_writer :verification_enforcement + attr_accessor :body sig do params( - account_number: String, - country: String, - currency: String, - financial_account_token: String, - owner: String, - owner_type: Lithic::OwnerType::OrSymbol, - routing_number: String, - type: Lithic::ExternalBankAccountCreateParams::Type::OrSymbol, - verification_method: - Lithic::ExternalBankAccountCreateParams::VerificationMethod::OrSymbol, - account_token: String, - address: Lithic::ExternalBankAccountAddress::OrHash, - company_id: String, - dob: Date, - doing_business_as: String, - name: String, - user_defined_id: String, - verification_enforcement: T::Boolean, + body: + T.any( + Lithic::ExternalBankAccountCreateParams::Body::ExternallyVerified::OrHash, + Lithic::ExternalBankAccountCreateParams::Body::Unverified::OrHash, + Lithic::ExternalBankAccountCreateParams::Body::BankVerifiedCreateBankAccountAPIRequest::OrHash + ), request_options: Lithic::RequestOptions::OrHash ).returns(T.attached_class) end - def self.new( - # Account Number - account_number:, - # The country that the bank account is located in using ISO 3166-1. We will only - # accept USA bank accounts e.g., USA - country:, - # currency of the external account 3-character alphabetic ISO 4217 code - currency:, - # The financial account token of the operating account to fund the micro deposits - financial_account_token:, - # Legal Name of the business or individual who owns the external account. This - # will appear in statements - owner:, - # Owner Type - owner_type:, - # Routing Number - routing_number:, - # Account Type - type:, - # Verification Method - verification_method:, - # Indicates which Lithic account the external account is associated with. For - # external accounts that are associated with the program, account_token field - # returned will be null - account_token: nil, - # Address - address: nil, - # Optional field that helps identify bank accounts in receipts - company_id: nil, - # Date of Birth of the Individual that owns the external bank account - dob: nil, - # Doing Business As - doing_business_as: nil, - # The nickname for this External Bank Account - name: nil, - # User Defined ID - user_defined_id: nil, - verification_enforcement: nil, - request_options: {} - ) + def self.new(body:, request_options: {}) end sig do override.returns( { - account_number: String, - country: String, - currency: String, - financial_account_token: String, - owner: String, - owner_type: Lithic::OwnerType::OrSymbol, - routing_number: String, - type: Lithic::ExternalBankAccountCreateParams::Type::OrSymbol, - verification_method: - Lithic::ExternalBankAccountCreateParams::VerificationMethod::OrSymbol, - account_token: String, - address: Lithic::ExternalBankAccountAddress, - company_id: String, - dob: Date, - doing_business_as: String, - name: String, - user_defined_id: String, - verification_enforcement: T::Boolean, + body: + T.any( + Lithic::ExternalBankAccountCreateParams::Body::ExternallyVerified, + Lithic::ExternalBankAccountCreateParams::Body::Unverified, + Lithic::ExternalBankAccountCreateParams::Body::BankVerifiedCreateBankAccountAPIRequest + ), request_options: Lithic::RequestOptions } ) @@ -206,65 +55,698 @@ module Lithic def to_hash end - # Account Type - module Type - extend Lithic::Internal::Type::Enum + module Body + extend Lithic::Internal::Type::Union - TaggedSymbol = + Variants = T.type_alias do - T.all(Symbol, Lithic::ExternalBankAccountCreateParams::Type) + T.any( + Lithic::ExternalBankAccountCreateParams::Body::ExternallyVerified, + Lithic::ExternalBankAccountCreateParams::Body::Unverified, + Lithic::ExternalBankAccountCreateParams::Body::BankVerifiedCreateBankAccountAPIRequest + ) end - OrSymbol = T.type_alias { T.any(Symbol, String) } - CHECKING = - T.let( - :CHECKING, - Lithic::ExternalBankAccountCreateParams::Type::TaggedSymbol - ) - SAVINGS = - T.let( - :SAVINGS, - Lithic::ExternalBankAccountCreateParams::Type::TaggedSymbol - ) + class BankVerifiedCreateBankAccountAPIRequest < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::ExternalBankAccountCreateParams::Body::BankVerifiedCreateBankAccountAPIRequest, + Lithic::Internal::AnyHash + ) + end + + # Account Number + sig { returns(String) } + attr_accessor :account_number + + # The country that the bank account is located in using ISO 3166-1. We will only + # accept USA bank accounts e.g., USA + sig { returns(String) } + attr_accessor :country + + # currency of the external account 3-character alphabetic ISO 4217 code + sig { returns(String) } + attr_accessor :currency + + # The financial account token of the operating account to fund the micro deposits + sig { returns(String) } + attr_accessor :financial_account_token + + # Legal Name of the business or individual who owns the external account. This + # will appear in statements + sig { returns(String) } + attr_accessor :owner + + # Owner Type + sig { returns(Lithic::OwnerType::OrSymbol) } + attr_accessor :owner_type + + # Routing Number + sig { returns(String) } + attr_accessor :routing_number + + # Account Type + sig do + returns( + Lithic::ExternalBankAccountCreateParams::Body::BankVerifiedCreateBankAccountAPIRequest::Type::OrSymbol + ) + end + attr_accessor :type - sig do - override.returns( - T::Array[ - Lithic::ExternalBankAccountCreateParams::Type::TaggedSymbol - ] + # Verification Method + sig { returns(Lithic::VerificationMethod::OrSymbol) } + attr_accessor :verification_method + + # Indicates which Lithic account the external account is associated with. For + # external accounts that are associated with the program, account_token field + # returned will be null + sig { returns(T.nilable(String)) } + attr_reader :account_token + + sig { params(account_token: String).void } + attr_writer :account_token + + # Address + sig { returns(T.nilable(Lithic::ExternalBankAccountAddress)) } + attr_reader :address + + sig do + params(address: Lithic::ExternalBankAccountAddress::OrHash).void + end + attr_writer :address + + # Optional field that helps identify bank accounts in receipts + sig { returns(T.nilable(String)) } + attr_reader :company_id + + sig { params(company_id: String).void } + attr_writer :company_id + + # Date of Birth of the Individual that owns the external bank account + sig { returns(T.nilable(Date)) } + attr_reader :dob + + sig { params(dob: Date).void } + attr_writer :dob + + # Doing Business As + sig { returns(T.nilable(String)) } + attr_reader :doing_business_as + + sig { params(doing_business_as: String).void } + attr_writer :doing_business_as + + # The nickname for this External Bank Account + sig { returns(T.nilable(String)) } + attr_reader :name + + sig { params(name: String).void } + attr_writer :name + + # User Defined ID + sig { returns(T.nilable(String)) } + attr_reader :user_defined_id + + sig { params(user_defined_id: String).void } + attr_writer :user_defined_id + + sig { returns(T.nilable(T::Boolean)) } + attr_reader :verification_enforcement + + sig { params(verification_enforcement: T::Boolean).void } + attr_writer :verification_enforcement + + sig do + params( + account_number: String, + country: String, + currency: String, + financial_account_token: String, + owner: String, + owner_type: Lithic::OwnerType::OrSymbol, + routing_number: String, + type: + Lithic::ExternalBankAccountCreateParams::Body::BankVerifiedCreateBankAccountAPIRequest::Type::OrSymbol, + verification_method: Lithic::VerificationMethod::OrSymbol, + account_token: String, + address: Lithic::ExternalBankAccountAddress::OrHash, + company_id: String, + dob: Date, + doing_business_as: String, + name: String, + user_defined_id: String, + verification_enforcement: T::Boolean + ).returns(T.attached_class) + end + def self.new( + # Account Number + account_number:, + # The country that the bank account is located in using ISO 3166-1. We will only + # accept USA bank accounts e.g., USA + country:, + # currency of the external account 3-character alphabetic ISO 4217 code + currency:, + # The financial account token of the operating account to fund the micro deposits + financial_account_token:, + # Legal Name of the business or individual who owns the external account. This + # will appear in statements + owner:, + # Owner Type + owner_type:, + # Routing Number + routing_number:, + # Account Type + type:, + # Verification Method + verification_method:, + # Indicates which Lithic account the external account is associated with. For + # external accounts that are associated with the program, account_token field + # returned will be null + account_token: nil, + # Address + address: nil, + # Optional field that helps identify bank accounts in receipts + company_id: nil, + # Date of Birth of the Individual that owns the external bank account + dob: nil, + # Doing Business As + doing_business_as: nil, + # The nickname for this External Bank Account + name: nil, + # User Defined ID + user_defined_id: nil, + verification_enforcement: nil ) + end + + sig do + override.returns( + { + account_number: String, + country: String, + currency: String, + financial_account_token: String, + owner: String, + owner_type: Lithic::OwnerType::OrSymbol, + routing_number: String, + type: + Lithic::ExternalBankAccountCreateParams::Body::BankVerifiedCreateBankAccountAPIRequest::Type::OrSymbol, + verification_method: Lithic::VerificationMethod::OrSymbol, + account_token: String, + address: Lithic::ExternalBankAccountAddress, + company_id: String, + dob: Date, + doing_business_as: String, + name: String, + user_defined_id: String, + verification_enforcement: T::Boolean + } + ) + end + def to_hash + end + + # Account Type + module Type + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Lithic::ExternalBankAccountCreateParams::Body::BankVerifiedCreateBankAccountAPIRequest::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + CHECKING = + T.let( + :CHECKING, + Lithic::ExternalBankAccountCreateParams::Body::BankVerifiedCreateBankAccountAPIRequest::Type::TaggedSymbol + ) + SAVINGS = + T.let( + :SAVINGS, + Lithic::ExternalBankAccountCreateParams::Body::BankVerifiedCreateBankAccountAPIRequest::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::ExternalBankAccountCreateParams::Body::BankVerifiedCreateBankAccountAPIRequest::Type::TaggedSymbol + ] + ) + end + def self.values + end + end end - def self.values - end - end - # Verification Method - module VerificationMethod - extend Lithic::Internal::Type::Enum + class ExternallyVerified < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::ExternalBankAccountCreateParams::Body::ExternallyVerified, + Lithic::Internal::AnyHash + ) + end + + # Account Number + sig { returns(String) } + attr_accessor :account_number + + # The country that the bank account is located in using ISO 3166-1. We will only + # accept USA bank accounts e.g., USA + sig { returns(String) } + attr_accessor :country + + # currency of the external account 3-character alphabetic ISO 4217 code + sig { returns(String) } + attr_accessor :currency + + # Legal Name of the business or individual who owns the external account. This + # will appear in statements + sig { returns(String) } + attr_accessor :owner + + # Owner Type + sig { returns(Lithic::OwnerType::OrSymbol) } + attr_accessor :owner_type + + # Routing Number + sig { returns(String) } + attr_accessor :routing_number + + # Account Type + sig do + returns( + Lithic::ExternalBankAccountCreateParams::Body::ExternallyVerified::Type::OrSymbol + ) + end + attr_accessor :type - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::ExternalBankAccountCreateParams::VerificationMethod + # Verification Method + sig { returns(Symbol) } + attr_accessor :verification_method + + # Indicates which Lithic account the external account is associated with. For + # external accounts that are associated with the program, account_token field + # returned will be null + sig { returns(T.nilable(String)) } + attr_reader :account_token + + sig { params(account_token: String).void } + attr_writer :account_token + + # Address + sig { returns(T.nilable(Lithic::ExternalBankAccountAddress)) } + attr_reader :address + + sig do + params(address: Lithic::ExternalBankAccountAddress::OrHash).void + end + attr_writer :address + + # Optional field that helps identify bank accounts in receipts + sig { returns(T.nilable(String)) } + attr_reader :company_id + + sig { params(company_id: String).void } + attr_writer :company_id + + # Date of Birth of the Individual that owns the external bank account + sig { returns(T.nilable(Date)) } + attr_reader :dob + + sig { params(dob: Date).void } + attr_writer :dob + + # Doing Business As + sig { returns(T.nilable(String)) } + attr_reader :doing_business_as + + sig { params(doing_business_as: String).void } + attr_writer :doing_business_as + + # The nickname for this External Bank Account + sig { returns(T.nilable(String)) } + attr_reader :name + + sig { params(name: String).void } + attr_writer :name + + # User Defined ID + sig { returns(T.nilable(String)) } + attr_reader :user_defined_id + + sig { params(user_defined_id: String).void } + attr_writer :user_defined_id + + sig do + params( + account_number: String, + country: String, + currency: String, + owner: String, + owner_type: Lithic::OwnerType::OrSymbol, + routing_number: String, + type: + Lithic::ExternalBankAccountCreateParams::Body::ExternallyVerified::Type::OrSymbol, + account_token: String, + address: Lithic::ExternalBankAccountAddress::OrHash, + company_id: String, + dob: Date, + doing_business_as: String, + name: String, + user_defined_id: String, + verification_method: Symbol + ).returns(T.attached_class) + end + def self.new( + # Account Number + account_number:, + # The country that the bank account is located in using ISO 3166-1. We will only + # accept USA bank accounts e.g., USA + country:, + # currency of the external account 3-character alphabetic ISO 4217 code + currency:, + # Legal Name of the business or individual who owns the external account. This + # will appear in statements + owner:, + # Owner Type + owner_type:, + # Routing Number + routing_number:, + # Account Type + type:, + # Indicates which Lithic account the external account is associated with. For + # external accounts that are associated with the program, account_token field + # returned will be null + account_token: nil, + # Address + address: nil, + # Optional field that helps identify bank accounts in receipts + company_id: nil, + # Date of Birth of the Individual that owns the external bank account + dob: nil, + # Doing Business As + doing_business_as: nil, + # The nickname for this External Bank Account + name: nil, + # User Defined ID + user_defined_id: nil, + # Verification Method + verification_method: :EXTERNALLY_VERIFIED + ) + end + + sig do + override.returns( + { + account_number: String, + country: String, + currency: String, + owner: String, + owner_type: Lithic::OwnerType::OrSymbol, + routing_number: String, + type: + Lithic::ExternalBankAccountCreateParams::Body::ExternallyVerified::Type::OrSymbol, + verification_method: Symbol, + account_token: String, + address: Lithic::ExternalBankAccountAddress, + company_id: String, + dob: Date, + doing_business_as: String, + name: String, + user_defined_id: String + } + ) + end + def to_hash + end + + # Account Type + module Type + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Lithic::ExternalBankAccountCreateParams::Body::ExternallyVerified::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + CHECKING = + T.let( + :CHECKING, + Lithic::ExternalBankAccountCreateParams::Body::ExternallyVerified::Type::TaggedSymbol + ) + SAVINGS = + T.let( + :SAVINGS, + Lithic::ExternalBankAccountCreateParams::Body::ExternallyVerified::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::ExternalBankAccountCreateParams::Body::ExternallyVerified::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Unverified < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::ExternalBankAccountCreateParams::Body::Unverified, + Lithic::Internal::AnyHash + ) + end + + # Account Number + sig { returns(String) } + attr_accessor :account_number + + # The country that the bank account is located in using ISO 3166-1. We will only + # accept USA bank accounts e.g., USA + sig { returns(String) } + attr_accessor :country + + # currency of the external account 3-character alphabetic ISO 4217 code + sig { returns(String) } + attr_accessor :currency + + # Legal Name of the business or individual who owns the external account. This + # will appear in statements + sig { returns(String) } + attr_accessor :owner + + # Owner Type + sig { returns(Lithic::OwnerType::OrSymbol) } + attr_accessor :owner_type + + # Routing Number + sig { returns(String) } + attr_accessor :routing_number + + # Account Type + sig do + returns( + Lithic::ExternalBankAccountCreateParams::Body::Unverified::Type::OrSymbol ) end - OrSymbol = T.type_alias { T.any(Symbol, String) } + attr_accessor :type + + # Verification Method + sig { returns(Symbol) } + attr_accessor :verification_method + + # Indicates which Lithic account the external account is associated with. For + # external accounts that are associated with the program, account_token field + # returned will be null + sig { returns(T.nilable(String)) } + attr_reader :account_token + + sig { params(account_token: String).void } + attr_writer :account_token + + # Address + sig { returns(T.nilable(Lithic::ExternalBankAccountAddress)) } + attr_reader :address - UNVERIFIED = - T.let( - :UNVERIFIED, - Lithic::ExternalBankAccountCreateParams::VerificationMethod::TaggedSymbol + sig do + params(address: Lithic::ExternalBankAccountAddress::OrHash).void + end + attr_writer :address + + # Optional field that helps identify bank accounts in receipts + sig { returns(T.nilable(String)) } + attr_reader :company_id + + sig { params(company_id: String).void } + attr_writer :company_id + + # Date of Birth of the Individual that owns the external bank account + sig { returns(T.nilable(Date)) } + attr_reader :dob + + sig { params(dob: Date).void } + attr_writer :dob + + # Doing Business As + sig { returns(T.nilable(String)) } + attr_reader :doing_business_as + + sig { params(doing_business_as: String).void } + attr_writer :doing_business_as + + # The nickname for this External Bank Account + sig { returns(T.nilable(String)) } + attr_reader :name + + sig { params(name: String).void } + attr_writer :name + + # User Defined ID + sig { returns(T.nilable(String)) } + attr_reader :user_defined_id + + sig { params(user_defined_id: String).void } + attr_writer :user_defined_id + + sig do + params( + account_number: String, + country: String, + currency: String, + owner: String, + owner_type: Lithic::OwnerType::OrSymbol, + routing_number: String, + type: + Lithic::ExternalBankAccountCreateParams::Body::Unverified::Type::OrSymbol, + account_token: String, + address: Lithic::ExternalBankAccountAddress::OrHash, + company_id: String, + dob: Date, + doing_business_as: String, + name: String, + user_defined_id: String, + verification_method: Symbol + ).returns(T.attached_class) + end + def self.new( + # Account Number + account_number:, + # The country that the bank account is located in using ISO 3166-1. We will only + # accept USA bank accounts e.g., USA + country:, + # currency of the external account 3-character alphabetic ISO 4217 code + currency:, + # Legal Name of the business or individual who owns the external account. This + # will appear in statements + owner:, + # Owner Type + owner_type:, + # Routing Number + routing_number:, + # Account Type + type:, + # Indicates which Lithic account the external account is associated with. For + # external accounts that are associated with the program, account_token field + # returned will be null + account_token: nil, + # Address + address: nil, + # Optional field that helps identify bank accounts in receipts + company_id: nil, + # Date of Birth of the Individual that owns the external bank account + dob: nil, + # Doing Business As + doing_business_as: nil, + # The nickname for this External Bank Account + name: nil, + # User Defined ID + user_defined_id: nil, + # Verification Method + verification_method: :UNVERIFIED ) + end + + sig do + override.returns( + { + account_number: String, + country: String, + currency: String, + owner: String, + owner_type: Lithic::OwnerType::OrSymbol, + routing_number: String, + type: + Lithic::ExternalBankAccountCreateParams::Body::Unverified::Type::OrSymbol, + verification_method: Symbol, + account_token: String, + address: Lithic::ExternalBankAccountAddress, + company_id: String, + dob: Date, + doing_business_as: String, + name: String, + user_defined_id: String + } + ) + end + def to_hash + end + + # Account Type + module Type + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Lithic::ExternalBankAccountCreateParams::Body::Unverified::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + CHECKING = + T.let( + :CHECKING, + Lithic::ExternalBankAccountCreateParams::Body::Unverified::Type::TaggedSymbol + ) + SAVINGS = + T.let( + :SAVINGS, + Lithic::ExternalBankAccountCreateParams::Body::Unverified::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::ExternalBankAccountCreateParams::Body::Unverified::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + end sig do override.returns( - T::Array[ - Lithic::ExternalBankAccountCreateParams::VerificationMethod::TaggedSymbol - ] + T::Array[Lithic::ExternalBankAccountCreateParams::Body::Variants] ) end - def self.values + def self.variants end end end diff --git a/rbi/lithic/models/external_bank_account_retrieve_params.rbi b/rbi/lithic/models/external_bank_account_retrieve_params.rbi index 23b123db..2d70703a 100644 --- a/rbi/lithic/models/external_bank_account_retrieve_params.rbi +++ b/rbi/lithic/models/external_bank_account_retrieve_params.rbi @@ -14,15 +14,26 @@ module Lithic ) end + sig { returns(String) } + attr_accessor :external_bank_account_token + sig do - params(request_options: Lithic::RequestOptions::OrHash).returns( - T.attached_class - ) + params( + external_bank_account_token: String, + request_options: Lithic::RequestOptions::OrHash + ).returns(T.attached_class) end - def self.new(request_options: {}) + def self.new(external_bank_account_token:, request_options: {}) end - sig { override.returns({ request_options: Lithic::RequestOptions }) } + sig do + override.returns( + { + external_bank_account_token: String, + request_options: Lithic::RequestOptions + } + ) + end def to_hash end end diff --git a/rbi/lithic/models/external_bank_account_retry_micro_deposits_params.rbi b/rbi/lithic/models/external_bank_account_retry_micro_deposits_params.rbi index fa0bb2f8..39b9b53d 100644 --- a/rbi/lithic/models/external_bank_account_retry_micro_deposits_params.rbi +++ b/rbi/lithic/models/external_bank_account_retry_micro_deposits_params.rbi @@ -14,6 +14,9 @@ module Lithic ) end + sig { returns(String) } + attr_accessor :external_bank_account_token + sig { returns(T.nilable(String)) } attr_reader :financial_account_token @@ -22,16 +25,22 @@ module Lithic sig do params( + external_bank_account_token: String, financial_account_token: String, request_options: Lithic::RequestOptions::OrHash ).returns(T.attached_class) end - def self.new(financial_account_token: nil, request_options: {}) + def self.new( + external_bank_account_token:, + financial_account_token: nil, + request_options: {} + ) end sig do override.returns( { + external_bank_account_token: String, financial_account_token: String, request_options: Lithic::RequestOptions } diff --git a/rbi/lithic/models/external_bank_account_retry_prenote_params.rbi b/rbi/lithic/models/external_bank_account_retry_prenote_params.rbi index e2e96581..7f58f7b4 100644 --- a/rbi/lithic/models/external_bank_account_retry_prenote_params.rbi +++ b/rbi/lithic/models/external_bank_account_retry_prenote_params.rbi @@ -14,6 +14,9 @@ module Lithic ) end + sig { returns(String) } + attr_accessor :external_bank_account_token + sig { returns(T.nilable(String)) } attr_reader :financial_account_token @@ -22,16 +25,22 @@ module Lithic sig do params( + external_bank_account_token: String, financial_account_token: String, request_options: Lithic::RequestOptions::OrHash ).returns(T.attached_class) end - def self.new(financial_account_token: nil, request_options: {}) + def self.new( + external_bank_account_token:, + financial_account_token: nil, + request_options: {} + ) end sig do override.returns( { + external_bank_account_token: String, financial_account_token: String, request_options: Lithic::RequestOptions } diff --git a/rbi/lithic/models/external_bank_account_unpause_params.rbi b/rbi/lithic/models/external_bank_account_unpause_params.rbi index 7cb0c83f..46874481 100644 --- a/rbi/lithic/models/external_bank_account_unpause_params.rbi +++ b/rbi/lithic/models/external_bank_account_unpause_params.rbi @@ -14,15 +14,26 @@ module Lithic ) end + sig { returns(String) } + attr_accessor :external_bank_account_token + sig do - params(request_options: Lithic::RequestOptions::OrHash).returns( - T.attached_class - ) + params( + external_bank_account_token: String, + request_options: Lithic::RequestOptions::OrHash + ).returns(T.attached_class) end - def self.new(request_options: {}) + def self.new(external_bank_account_token:, request_options: {}) end - sig { override.returns({ request_options: Lithic::RequestOptions }) } + sig do + override.returns( + { + external_bank_account_token: String, + request_options: Lithic::RequestOptions + } + ) + end def to_hash end end diff --git a/rbi/lithic/models/external_bank_account_update_params.rbi b/rbi/lithic/models/external_bank_account_update_params.rbi index 52f3cb6f..4604c16c 100644 --- a/rbi/lithic/models/external_bank_account_update_params.rbi +++ b/rbi/lithic/models/external_bank_account_update_params.rbi @@ -14,6 +14,9 @@ module Lithic ) end + sig { returns(String) } + attr_accessor :external_bank_account_token + # Address sig { returns(T.nilable(Lithic::ExternalBankAccountAddress)) } attr_reader :address @@ -87,6 +90,7 @@ module Lithic sig do params( + external_bank_account_token: String, address: Lithic::ExternalBankAccountAddress::OrHash, company_id: String, dob: Date, @@ -100,6 +104,7 @@ module Lithic ).returns(T.attached_class) end def self.new( + external_bank_account_token:, # Address address: nil, # Optional field that helps identify bank accounts in receipts @@ -125,6 +130,7 @@ module Lithic sig do override.returns( { + external_bank_account_token: String, address: Lithic::ExternalBankAccountAddress, company_id: String, dob: Date, diff --git a/rbi/lithic/models/external_bank_accounts/micro_deposit_create_params.rbi b/rbi/lithic/models/external_bank_accounts/micro_deposit_create_params.rbi index 116cab34..f3995598 100644 --- a/rbi/lithic/models/external_bank_accounts/micro_deposit_create_params.rbi +++ b/rbi/lithic/models/external_bank_accounts/micro_deposit_create_params.rbi @@ -15,21 +15,30 @@ module Lithic ) end + sig { returns(String) } + attr_accessor :external_bank_account_token + sig { returns(T::Array[Integer]) } attr_accessor :micro_deposits sig do params( + external_bank_account_token: String, micro_deposits: T::Array[Integer], request_options: Lithic::RequestOptions::OrHash ).returns(T.attached_class) end - def self.new(micro_deposits:, request_options: {}) + def self.new( + external_bank_account_token:, + micro_deposits:, + request_options: {} + ) end sig do override.returns( { + external_bank_account_token: String, micro_deposits: T::Array[Integer], request_options: Lithic::RequestOptions } diff --git a/rbi/lithic/models/external_payment_cancel_params.rbi b/rbi/lithic/models/external_payment_cancel_params.rbi index 4f58c07b..e1703af9 100644 --- a/rbi/lithic/models/external_payment_cancel_params.rbi +++ b/rbi/lithic/models/external_payment_cancel_params.rbi @@ -11,6 +11,9 @@ module Lithic T.any(Lithic::ExternalPaymentCancelParams, Lithic::Internal::AnyHash) end + sig { returns(String) } + attr_accessor :external_payment_token + sig { returns(Date) } attr_accessor :effective_date @@ -22,17 +25,24 @@ module Lithic sig do params( + external_payment_token: String, effective_date: Date, memo: String, request_options: Lithic::RequestOptions::OrHash ).returns(T.attached_class) end - def self.new(effective_date:, memo: nil, request_options: {}) + def self.new( + external_payment_token:, + effective_date:, + memo: nil, + request_options: {} + ) end sig do override.returns( { + external_payment_token: String, effective_date: Date, memo: String, request_options: Lithic::RequestOptions diff --git a/rbi/lithic/models/external_payment_release_params.rbi b/rbi/lithic/models/external_payment_release_params.rbi index 85a40b79..b73688a6 100644 --- a/rbi/lithic/models/external_payment_release_params.rbi +++ b/rbi/lithic/models/external_payment_release_params.rbi @@ -11,6 +11,9 @@ module Lithic T.any(Lithic::ExternalPaymentReleaseParams, Lithic::Internal::AnyHash) end + sig { returns(String) } + attr_accessor :external_payment_token + sig { returns(Date) } attr_accessor :effective_date @@ -22,17 +25,24 @@ module Lithic sig do params( + external_payment_token: String, effective_date: Date, memo: String, request_options: Lithic::RequestOptions::OrHash ).returns(T.attached_class) end - def self.new(effective_date:, memo: nil, request_options: {}) + def self.new( + external_payment_token:, + effective_date:, + memo: nil, + request_options: {} + ) end sig do override.returns( { + external_payment_token: String, effective_date: Date, memo: String, request_options: Lithic::RequestOptions diff --git a/rbi/lithic/models/external_payment_retrieve_params.rbi b/rbi/lithic/models/external_payment_retrieve_params.rbi index efcade42..925a0bae 100644 --- a/rbi/lithic/models/external_payment_retrieve_params.rbi +++ b/rbi/lithic/models/external_payment_retrieve_params.rbi @@ -14,15 +14,26 @@ module Lithic ) end + sig { returns(String) } + attr_accessor :external_payment_token + sig do - params(request_options: Lithic::RequestOptions::OrHash).returns( - T.attached_class - ) + params( + external_payment_token: String, + request_options: Lithic::RequestOptions::OrHash + ).returns(T.attached_class) end - def self.new(request_options: {}) + def self.new(external_payment_token:, request_options: {}) end - sig { override.returns({ request_options: Lithic::RequestOptions }) } + sig do + override.returns( + { + external_payment_token: String, + request_options: Lithic::RequestOptions + } + ) + end def to_hash end end diff --git a/rbi/lithic/models/external_payment_reverse_params.rbi b/rbi/lithic/models/external_payment_reverse_params.rbi index 055d8bde..bf6ab9db 100644 --- a/rbi/lithic/models/external_payment_reverse_params.rbi +++ b/rbi/lithic/models/external_payment_reverse_params.rbi @@ -11,6 +11,9 @@ module Lithic T.any(Lithic::ExternalPaymentReverseParams, Lithic::Internal::AnyHash) end + sig { returns(String) } + attr_accessor :external_payment_token + sig { returns(Date) } attr_accessor :effective_date @@ -22,17 +25,24 @@ module Lithic sig do params( + external_payment_token: String, effective_date: Date, memo: String, request_options: Lithic::RequestOptions::OrHash ).returns(T.attached_class) end - def self.new(effective_date:, memo: nil, request_options: {}) + def self.new( + external_payment_token:, + effective_date:, + memo: nil, + request_options: {} + ) end sig do override.returns( { + external_payment_token: String, effective_date: Date, memo: String, request_options: Lithic::RequestOptions diff --git a/rbi/lithic/models/external_payment_settle_params.rbi b/rbi/lithic/models/external_payment_settle_params.rbi index f5035902..4aa7ba6b 100644 --- a/rbi/lithic/models/external_payment_settle_params.rbi +++ b/rbi/lithic/models/external_payment_settle_params.rbi @@ -11,6 +11,9 @@ module Lithic T.any(Lithic::ExternalPaymentSettleParams, Lithic::Internal::AnyHash) end + sig { returns(String) } + attr_accessor :external_payment_token + sig { returns(Date) } attr_accessor :effective_date @@ -36,6 +39,7 @@ module Lithic sig do params( + external_payment_token: String, effective_date: Date, memo: String, progress_to: @@ -44,6 +48,7 @@ module Lithic ).returns(T.attached_class) end def self.new( + external_payment_token:, effective_date:, memo: nil, progress_to: nil, @@ -54,6 +59,7 @@ module Lithic sig do override.returns( { + external_payment_token: String, effective_date: Date, memo: String, progress_to: diff --git a/rbi/lithic/models/financial_account_register_account_number_params.rbi b/rbi/lithic/models/financial_account_register_account_number_params.rbi index 1e9b937b..ac81f778 100644 --- a/rbi/lithic/models/financial_account_register_account_number_params.rbi +++ b/rbi/lithic/models/financial_account_register_account_number_params.rbi @@ -14,21 +14,33 @@ module Lithic ) end + sig { returns(String) } + attr_accessor :financial_account_token + sig { returns(String) } attr_accessor :account_number sig do params( + financial_account_token: String, account_number: String, request_options: Lithic::RequestOptions::OrHash ).returns(T.attached_class) end - def self.new(account_number:, request_options: {}) + def self.new( + financial_account_token:, + account_number:, + request_options: {} + ) end sig do override.returns( - { account_number: String, request_options: Lithic::RequestOptions } + { + financial_account_token: String, + account_number: String, + request_options: Lithic::RequestOptions + } ) end def to_hash diff --git a/rbi/lithic/models/financial_account_retrieve_params.rbi b/rbi/lithic/models/financial_account_retrieve_params.rbi index 8153eac9..6c1c6f3e 100644 --- a/rbi/lithic/models/financial_account_retrieve_params.rbi +++ b/rbi/lithic/models/financial_account_retrieve_params.rbi @@ -14,15 +14,26 @@ module Lithic ) end + sig { returns(String) } + attr_accessor :financial_account_token + sig do - params(request_options: Lithic::RequestOptions::OrHash).returns( - T.attached_class - ) + params( + financial_account_token: String, + request_options: Lithic::RequestOptions::OrHash + ).returns(T.attached_class) end - def self.new(request_options: {}) + def self.new(financial_account_token:, request_options: {}) end - sig { override.returns({ request_options: Lithic::RequestOptions }) } + sig do + override.returns( + { + financial_account_token: String, + request_options: Lithic::RequestOptions + } + ) + end def to_hash end end diff --git a/rbi/lithic/models/financial_account_update_params.rbi b/rbi/lithic/models/financial_account_update_params.rbi index a64b0ce4..34d105c8 100644 --- a/rbi/lithic/models/financial_account_update_params.rbi +++ b/rbi/lithic/models/financial_account_update_params.rbi @@ -11,6 +11,9 @@ module Lithic T.any(Lithic::FinancialAccountUpdateParams, Lithic::Internal::AnyHash) end + sig { returns(String) } + attr_accessor :financial_account_token + sig { returns(T.nilable(String)) } attr_reader :nickname @@ -19,16 +22,21 @@ module Lithic sig do params( + financial_account_token: String, nickname: String, request_options: Lithic::RequestOptions::OrHash ).returns(T.attached_class) end - def self.new(nickname: nil, request_options: {}) + def self.new(financial_account_token:, nickname: nil, request_options: {}) end sig do override.returns( - { nickname: String, request_options: Lithic::RequestOptions } + { + financial_account_token: String, + nickname: String, + request_options: Lithic::RequestOptions + } ) end def to_hash diff --git a/rbi/lithic/models/financial_account_update_status_params.rbi b/rbi/lithic/models/financial_account_update_status_params.rbi index 98c1a269..b8dcad21 100644 --- a/rbi/lithic/models/financial_account_update_status_params.rbi +++ b/rbi/lithic/models/financial_account_update_status_params.rbi @@ -14,6 +14,9 @@ module Lithic ) end + sig { returns(String) } + attr_accessor :financial_account_token + # Status of the financial account sig do returns(Lithic::FinancialAccountUpdateStatusParams::Status::OrSymbol) @@ -39,6 +42,7 @@ module Lithic sig do params( + financial_account_token: String, status: Lithic::FinancialAccountUpdateStatusParams::Status::OrSymbol, substatus: T.nilable( @@ -49,6 +53,7 @@ module Lithic ).returns(T.attached_class) end def self.new( + financial_account_token:, # Status of the financial account status:, # Substatus for the financial account @@ -62,6 +67,7 @@ module Lithic sig do override.returns( { + financial_account_token: String, status: Lithic::FinancialAccountUpdateStatusParams::Status::OrSymbol, substatus: diff --git a/rbi/lithic/models/financial_accounts/balance_list_params.rbi b/rbi/lithic/models/financial_accounts/balance_list_params.rbi index 52fc8ad5..c54929e9 100644 --- a/rbi/lithic/models/financial_accounts/balance_list_params.rbi +++ b/rbi/lithic/models/financial_accounts/balance_list_params.rbi @@ -15,6 +15,9 @@ module Lithic ) end + sig { returns(String) } + attr_accessor :financial_account_token + # UTC date of the balance to retrieve. Defaults to latest available balance sig { returns(T.nilable(Time)) } attr_reader :balance_date @@ -33,12 +36,14 @@ module Lithic sig do params( + financial_account_token: String, balance_date: Time, last_transaction_event_token: String, request_options: Lithic::RequestOptions::OrHash ).returns(T.attached_class) end def self.new( + financial_account_token:, # UTC date of the balance to retrieve. Defaults to latest available balance balance_date: nil, # Balance after a given financial event occured. For example, passing the @@ -52,6 +57,7 @@ module Lithic sig do override.returns( { + financial_account_token: String, balance_date: Time, last_transaction_event_token: String, request_options: Lithic::RequestOptions diff --git a/rbi/lithic/models/financial_accounts/credit_configuration_retrieve_params.rbi b/rbi/lithic/models/financial_accounts/credit_configuration_retrieve_params.rbi index 87280f21..6383bc42 100644 --- a/rbi/lithic/models/financial_accounts/credit_configuration_retrieve_params.rbi +++ b/rbi/lithic/models/financial_accounts/credit_configuration_retrieve_params.rbi @@ -15,15 +15,26 @@ module Lithic ) end + sig { returns(String) } + attr_accessor :financial_account_token + sig do - params(request_options: Lithic::RequestOptions::OrHash).returns( - T.attached_class - ) + params( + financial_account_token: String, + request_options: Lithic::RequestOptions::OrHash + ).returns(T.attached_class) end - def self.new(request_options: {}) + def self.new(financial_account_token:, request_options: {}) end - sig { override.returns({ request_options: Lithic::RequestOptions }) } + sig do + override.returns( + { + financial_account_token: String, + request_options: Lithic::RequestOptions + } + ) + end def to_hash end end diff --git a/rbi/lithic/models/financial_accounts/credit_configuration_update_params.rbi b/rbi/lithic/models/financial_accounts/credit_configuration_update_params.rbi index 04e7b1a5..3e32f049 100644 --- a/rbi/lithic/models/financial_accounts/credit_configuration_update_params.rbi +++ b/rbi/lithic/models/financial_accounts/credit_configuration_update_params.rbi @@ -15,6 +15,9 @@ module Lithic ) end + sig { returns(String) } + attr_accessor :financial_account_token + sig do returns( T.nilable( @@ -60,6 +63,7 @@ module Lithic sig do params( + financial_account_token: String, auto_collection_configuration: Lithic::FinancialAccounts::CreditConfigurationUpdateParams::AutoCollectionConfiguration::OrHash, credit_limit: Integer, @@ -70,6 +74,7 @@ module Lithic ).returns(T.attached_class) end def self.new( + financial_account_token:, auto_collection_configuration: nil, credit_limit: nil, # Globally unique identifier for the credit product @@ -84,6 +89,7 @@ module Lithic sig do override.returns( { + financial_account_token: String, auto_collection_configuration: Lithic::FinancialAccounts::CreditConfigurationUpdateParams::AutoCollectionConfiguration, credit_limit: Integer, diff --git a/rbi/lithic/models/financial_accounts/financial_transaction_list_params.rbi b/rbi/lithic/models/financial_accounts/financial_transaction_list_params.rbi index f19693a7..c10ea0e2 100644 --- a/rbi/lithic/models/financial_accounts/financial_transaction_list_params.rbi +++ b/rbi/lithic/models/financial_accounts/financial_transaction_list_params.rbi @@ -15,6 +15,9 @@ module Lithic ) end + sig { returns(String) } + attr_accessor :financial_account_token + # Date string in RFC 3339 format. Only entries created after the specified time # will be included. UTC time zone. sig { returns(T.nilable(Time)) } @@ -103,6 +106,7 @@ module Lithic sig do params( + financial_account_token: String, begin_: Time, category: Lithic::FinancialAccounts::FinancialTransactionListParams::Category::OrSymbol, @@ -117,6 +121,7 @@ module Lithic ).returns(T.attached_class) end def self.new( + financial_account_token:, # Date string in RFC 3339 format. Only entries created after the specified time # will be included. UTC time zone. begin_: nil, @@ -142,6 +147,7 @@ module Lithic sig do override.returns( { + financial_account_token: String, begin_: Time, category: Lithic::FinancialAccounts::FinancialTransactionListParams::Category::OrSymbol, diff --git a/rbi/lithic/models/financial_accounts/financial_transaction_retrieve_params.rbi b/rbi/lithic/models/financial_accounts/financial_transaction_retrieve_params.rbi index 6fb82e79..004a95e0 100644 --- a/rbi/lithic/models/financial_accounts/financial_transaction_retrieve_params.rbi +++ b/rbi/lithic/models/financial_accounts/financial_transaction_retrieve_params.rbi @@ -18,19 +18,28 @@ module Lithic sig { returns(String) } attr_accessor :financial_account_token + sig { returns(String) } + attr_accessor :financial_transaction_token + sig do params( financial_account_token: String, + financial_transaction_token: String, request_options: Lithic::RequestOptions::OrHash ).returns(T.attached_class) end - def self.new(financial_account_token:, request_options: {}) + def self.new( + financial_account_token:, + financial_transaction_token:, + request_options: {} + ) end sig do override.returns( { financial_account_token: String, + financial_transaction_token: String, request_options: Lithic::RequestOptions } ) diff --git a/rbi/lithic/models/financial_accounts/interest_tier_schedule_create_params.rbi b/rbi/lithic/models/financial_accounts/interest_tier_schedule_create_params.rbi index 15e8b265..3edbc566 100644 --- a/rbi/lithic/models/financial_accounts/interest_tier_schedule_create_params.rbi +++ b/rbi/lithic/models/financial_accounts/interest_tier_schedule_create_params.rbi @@ -15,15 +15,26 @@ module Lithic ) end + sig { returns(String) } + attr_accessor :financial_account_token + sig do - params(request_options: Lithic::RequestOptions::OrHash).returns( - T.attached_class - ) + params( + financial_account_token: String, + request_options: Lithic::RequestOptions::OrHash + ).returns(T.attached_class) end - def self.new(request_options: {}) + def self.new(financial_account_token:, request_options: {}) end - sig { override.returns({ request_options: Lithic::RequestOptions }) } + sig do + override.returns( + { + financial_account_token: String, + request_options: Lithic::RequestOptions + } + ) + end def to_hash end end diff --git a/rbi/lithic/models/financial_accounts/interest_tier_schedule_delete_params.rbi b/rbi/lithic/models/financial_accounts/interest_tier_schedule_delete_params.rbi index 73abf0d6..393f408e 100644 --- a/rbi/lithic/models/financial_accounts/interest_tier_schedule_delete_params.rbi +++ b/rbi/lithic/models/financial_accounts/interest_tier_schedule_delete_params.rbi @@ -18,19 +18,28 @@ module Lithic sig { returns(String) } attr_accessor :financial_account_token + sig { returns(Date) } + attr_accessor :effective_date + sig do params( financial_account_token: String, + effective_date: Date, request_options: Lithic::RequestOptions::OrHash ).returns(T.attached_class) end - def self.new(financial_account_token:, request_options: {}) + def self.new( + financial_account_token:, + effective_date:, + request_options: {} + ) end sig do override.returns( { financial_account_token: String, + effective_date: Date, request_options: Lithic::RequestOptions } ) diff --git a/rbi/lithic/models/financial_accounts/interest_tier_schedule_list_params.rbi b/rbi/lithic/models/financial_accounts/interest_tier_schedule_list_params.rbi index 9482aa64..f446189f 100644 --- a/rbi/lithic/models/financial_accounts/interest_tier_schedule_list_params.rbi +++ b/rbi/lithic/models/financial_accounts/interest_tier_schedule_list_params.rbi @@ -15,6 +15,9 @@ module Lithic ) end + sig { returns(String) } + attr_accessor :financial_account_token + # Return schedules with effective_date >= after_date (ISO format YYYY-MM-DD) sig { returns(T.nilable(Date)) } attr_reader :after_date @@ -38,6 +41,7 @@ module Lithic sig do params( + financial_account_token: String, after_date: Date, before_date: Date, for_date: Date, @@ -45,6 +49,7 @@ module Lithic ).returns(T.attached_class) end def self.new( + financial_account_token:, # Return schedules with effective_date >= after_date (ISO format YYYY-MM-DD) after_date: nil, # Return schedules with effective_date <= before_date (ISO format YYYY-MM-DD) @@ -58,6 +63,7 @@ module Lithic sig do override.returns( { + financial_account_token: String, after_date: Date, before_date: Date, for_date: Date, diff --git a/rbi/lithic/models/financial_accounts/interest_tier_schedule_retrieve_params.rbi b/rbi/lithic/models/financial_accounts/interest_tier_schedule_retrieve_params.rbi index fe292f2a..aa142411 100644 --- a/rbi/lithic/models/financial_accounts/interest_tier_schedule_retrieve_params.rbi +++ b/rbi/lithic/models/financial_accounts/interest_tier_schedule_retrieve_params.rbi @@ -18,19 +18,28 @@ module Lithic sig { returns(String) } attr_accessor :financial_account_token + sig { returns(Date) } + attr_accessor :effective_date + sig do params( financial_account_token: String, + effective_date: Date, request_options: Lithic::RequestOptions::OrHash ).returns(T.attached_class) end - def self.new(financial_account_token:, request_options: {}) + def self.new( + financial_account_token:, + effective_date:, + request_options: {} + ) end sig do override.returns( { financial_account_token: String, + effective_date: Date, request_options: Lithic::RequestOptions } ) diff --git a/rbi/lithic/models/financial_accounts/interest_tier_schedule_update_params.rbi b/rbi/lithic/models/financial_accounts/interest_tier_schedule_update_params.rbi index a753c700..9e34149c 100644 --- a/rbi/lithic/models/financial_accounts/interest_tier_schedule_update_params.rbi +++ b/rbi/lithic/models/financial_accounts/interest_tier_schedule_update_params.rbi @@ -18,6 +18,9 @@ module Lithic sig { returns(String) } attr_accessor :financial_account_token + sig { returns(Date) } + attr_accessor :effective_date + # Name of a tier contained in the credit product. Mutually exclusive with # tier_rates sig { returns(T.nilable(String)) } @@ -36,6 +39,7 @@ module Lithic sig do params( financial_account_token: String, + effective_date: Date, tier_name: String, tier_rates: T.anything, request_options: Lithic::RequestOptions::OrHash @@ -43,6 +47,7 @@ module Lithic end def self.new( financial_account_token:, + effective_date:, # Name of a tier contained in the credit product. Mutually exclusive with # tier_rates tier_name: nil, @@ -56,6 +61,7 @@ module Lithic override.returns( { financial_account_token: String, + effective_date: Date, tier_name: String, tier_rates: T.anything, request_options: Lithic::RequestOptions diff --git a/rbi/lithic/models/financial_accounts/loan_tape_configuration_retrieve_params.rbi b/rbi/lithic/models/financial_accounts/loan_tape_configuration_retrieve_params.rbi index 29bdd55c..8619c56d 100644 --- a/rbi/lithic/models/financial_accounts/loan_tape_configuration_retrieve_params.rbi +++ b/rbi/lithic/models/financial_accounts/loan_tape_configuration_retrieve_params.rbi @@ -15,15 +15,31 @@ module Lithic ) end + # Globally unique identifier for financial account. + sig { returns(String) } + attr_accessor :financial_account_token + sig do - params(request_options: Lithic::RequestOptions::OrHash).returns( - T.attached_class - ) + params( + financial_account_token: String, + request_options: Lithic::RequestOptions::OrHash + ).returns(T.attached_class) end - def self.new(request_options: {}) + def self.new( + # Globally unique identifier for financial account. + financial_account_token:, + request_options: {} + ) end - sig { override.returns({ request_options: Lithic::RequestOptions }) } + sig do + override.returns( + { + financial_account_token: String, + request_options: Lithic::RequestOptions + } + ) + end def to_hash end end diff --git a/rbi/lithic/models/financial_accounts/loan_tape_list_params.rbi b/rbi/lithic/models/financial_accounts/loan_tape_list_params.rbi index fbb26562..fd0adc5f 100644 --- a/rbi/lithic/models/financial_accounts/loan_tape_list_params.rbi +++ b/rbi/lithic/models/financial_accounts/loan_tape_list_params.rbi @@ -15,6 +15,10 @@ module Lithic ) end + # Globally unique identifier for financial account. + sig { returns(String) } + attr_accessor :financial_account_token + # Date string in RFC 3339 format. Only entries created after the specified date # will be included. sig { returns(T.nilable(Date)) } @@ -56,6 +60,7 @@ module Lithic sig do params( + financial_account_token: String, begin_: Date, end_: Date, ending_before: String, @@ -65,6 +70,8 @@ module Lithic ).returns(T.attached_class) end def self.new( + # Globally unique identifier for financial account. + financial_account_token:, # Date string in RFC 3339 format. Only entries created after the specified date # will be included. begin_: nil, @@ -86,6 +93,7 @@ module Lithic sig do override.returns( { + financial_account_token: String, begin_: Date, end_: Date, ending_before: String, diff --git a/rbi/lithic/models/financial_accounts/loan_tape_retrieve_params.rbi b/rbi/lithic/models/financial_accounts/loan_tape_retrieve_params.rbi index a4f454aa..8f70fedb 100644 --- a/rbi/lithic/models/financial_accounts/loan_tape_retrieve_params.rbi +++ b/rbi/lithic/models/financial_accounts/loan_tape_retrieve_params.rbi @@ -19,15 +19,22 @@ module Lithic sig { returns(String) } attr_accessor :financial_account_token + # Globally unique identifier for loan tape. + sig { returns(String) } + attr_accessor :loan_tape_token + sig do params( financial_account_token: String, + loan_tape_token: String, request_options: Lithic::RequestOptions::OrHash ).returns(T.attached_class) end def self.new( # Globally unique identifier for financial account. financial_account_token:, + # Globally unique identifier for loan tape. + loan_tape_token:, request_options: {} ) end @@ -36,6 +43,7 @@ module Lithic override.returns( { financial_account_token: String, + loan_tape_token: String, request_options: Lithic::RequestOptions } ) diff --git a/rbi/lithic/models/financial_accounts/statement_list_params.rbi b/rbi/lithic/models/financial_accounts/statement_list_params.rbi index b9456226..708d8eda 100644 --- a/rbi/lithic/models/financial_accounts/statement_list_params.rbi +++ b/rbi/lithic/models/financial_accounts/statement_list_params.rbi @@ -15,6 +15,10 @@ module Lithic ) end + # Globally unique identifier for financial account. + sig { returns(String) } + attr_accessor :financial_account_token + # Date string in RFC 3339 format. Only entries created after the specified date # will be included. sig { returns(T.nilable(Date)) } @@ -63,6 +67,7 @@ module Lithic sig do params( + financial_account_token: String, begin_: Date, end_: Date, ending_before: String, @@ -73,6 +78,8 @@ module Lithic ).returns(T.attached_class) end def self.new( + # Globally unique identifier for financial account. + financial_account_token:, # Date string in RFC 3339 format. Only entries created after the specified date # will be included. begin_: nil, @@ -96,6 +103,7 @@ module Lithic sig do override.returns( { + financial_account_token: String, begin_: Date, end_: Date, ending_before: String, diff --git a/rbi/lithic/models/financial_accounts/statement_retrieve_params.rbi b/rbi/lithic/models/financial_accounts/statement_retrieve_params.rbi index 3574c9c8..c28a95be 100644 --- a/rbi/lithic/models/financial_accounts/statement_retrieve_params.rbi +++ b/rbi/lithic/models/financial_accounts/statement_retrieve_params.rbi @@ -19,15 +19,22 @@ module Lithic sig { returns(String) } attr_accessor :financial_account_token + # Globally unique identifier for statements. + sig { returns(String) } + attr_accessor :statement_token + sig do params( financial_account_token: String, + statement_token: String, request_options: Lithic::RequestOptions::OrHash ).returns(T.attached_class) end def self.new( # Globally unique identifier for financial account. financial_account_token:, + # Globally unique identifier for statements. + statement_token:, request_options: {} ) end @@ -36,6 +43,7 @@ module Lithic override.returns( { financial_account_token: String, + statement_token: String, request_options: Lithic::RequestOptions } ) diff --git a/rbi/lithic/models/financial_accounts/statements/line_item_list_params.rbi b/rbi/lithic/models/financial_accounts/statements/line_item_list_params.rbi index a3f9f2a6..2f99c0d7 100644 --- a/rbi/lithic/models/financial_accounts/statements/line_item_list_params.rbi +++ b/rbi/lithic/models/financial_accounts/statements/line_item_list_params.rbi @@ -20,6 +20,10 @@ module Lithic sig { returns(String) } attr_accessor :financial_account_token + # Globally unique identifier for statements. + sig { returns(String) } + attr_accessor :statement_token + # A cursor representing an item's token before which a page of results should end. # Used to retrieve the previous page of results before this item. sig { returns(T.nilable(String)) } @@ -46,6 +50,7 @@ module Lithic sig do params( financial_account_token: String, + statement_token: String, ending_before: String, page_size: Integer, starting_after: String, @@ -55,6 +60,8 @@ module Lithic def self.new( # Globally unique identifier for financial account. financial_account_token:, + # Globally unique identifier for statements. + statement_token:, # A cursor representing an item's token before which a page of results should end. # Used to retrieve the previous page of results before this item. ending_before: nil, @@ -71,6 +78,7 @@ module Lithic override.returns( { financial_account_token: String, + statement_token: String, ending_before: String, page_size: Integer, starting_after: String, diff --git a/rbi/lithic/models/fraud/transaction_report_params.rbi b/rbi/lithic/models/fraud/transaction_report_params.rbi index 6ed9051a..3e459c9c 100644 --- a/rbi/lithic/models/fraud/transaction_report_params.rbi +++ b/rbi/lithic/models/fraud/transaction_report_params.rbi @@ -15,6 +15,9 @@ module Lithic ) end + sig { returns(String) } + attr_accessor :transaction_token + # The fraud status of the transaction, string (enum) supporting the following # values: # @@ -79,6 +82,7 @@ module Lithic sig do params( + transaction_token: String, fraud_status: Lithic::Fraud::TransactionReportParams::FraudStatus::OrSymbol, comment: String, @@ -88,6 +92,7 @@ module Lithic ).returns(T.attached_class) end def self.new( + transaction_token:, # The fraud status of the transaction, string (enum) supporting the following # values: # @@ -132,6 +137,7 @@ module Lithic sig do override.returns( { + transaction_token: String, fraud_status: Lithic::Fraud::TransactionReportParams::FraudStatus::OrSymbol, comment: String, diff --git a/rbi/lithic/models/fraud/transaction_retrieve_params.rbi b/rbi/lithic/models/fraud/transaction_retrieve_params.rbi index 674b740f..d0800bf4 100644 --- a/rbi/lithic/models/fraud/transaction_retrieve_params.rbi +++ b/rbi/lithic/models/fraud/transaction_retrieve_params.rbi @@ -15,15 +15,26 @@ module Lithic ) end + sig { returns(String) } + attr_accessor :transaction_token + sig do - params(request_options: Lithic::RequestOptions::OrHash).returns( - T.attached_class - ) + params( + transaction_token: String, + request_options: Lithic::RequestOptions::OrHash + ).returns(T.attached_class) end - def self.new(request_options: {}) + def self.new(transaction_token:, request_options: {}) end - sig { override.returns({ request_options: Lithic::RequestOptions }) } + sig do + override.returns( + { + transaction_token: String, + request_options: Lithic::RequestOptions + } + ) + end def to_hash end end diff --git a/rbi/lithic/models/funding_event_retrieve_details_params.rbi b/rbi/lithic/models/funding_event_retrieve_details_params.rbi index b1973718..64dc35be 100644 --- a/rbi/lithic/models/funding_event_retrieve_details_params.rbi +++ b/rbi/lithic/models/funding_event_retrieve_details_params.rbi @@ -14,15 +14,26 @@ module Lithic ) end + sig { returns(String) } + attr_accessor :funding_event_token + sig do - params(request_options: Lithic::RequestOptions::OrHash).returns( - T.attached_class - ) + params( + funding_event_token: String, + request_options: Lithic::RequestOptions::OrHash + ).returns(T.attached_class) end - def self.new(request_options: {}) + def self.new(funding_event_token:, request_options: {}) end - sig { override.returns({ request_options: Lithic::RequestOptions }) } + sig do + override.returns( + { + funding_event_token: String, + request_options: Lithic::RequestOptions + } + ) + end def to_hash end end diff --git a/rbi/lithic/models/funding_event_retrieve_params.rbi b/rbi/lithic/models/funding_event_retrieve_params.rbi index 03a1ec5e..09544482 100644 --- a/rbi/lithic/models/funding_event_retrieve_params.rbi +++ b/rbi/lithic/models/funding_event_retrieve_params.rbi @@ -11,15 +11,26 @@ module Lithic T.any(Lithic::FundingEventRetrieveParams, Lithic::Internal::AnyHash) end + sig { returns(String) } + attr_accessor :funding_event_token + sig do - params(request_options: Lithic::RequestOptions::OrHash).returns( - T.attached_class - ) + params( + funding_event_token: String, + request_options: Lithic::RequestOptions::OrHash + ).returns(T.attached_class) end - def self.new(request_options: {}) + def self.new(funding_event_token:, request_options: {}) end - sig { override.returns({ request_options: Lithic::RequestOptions }) } + sig do + override.returns( + { + funding_event_token: String, + request_options: Lithic::RequestOptions + } + ) + end def to_hash end end diff --git a/rbi/lithic/models/management_operation_retrieve_params.rbi b/rbi/lithic/models/management_operation_retrieve_params.rbi index cc63393f..87a82218 100644 --- a/rbi/lithic/models/management_operation_retrieve_params.rbi +++ b/rbi/lithic/models/management_operation_retrieve_params.rbi @@ -14,15 +14,26 @@ module Lithic ) end + sig { returns(String) } + attr_accessor :management_operation_token + sig do - params(request_options: Lithic::RequestOptions::OrHash).returns( - T.attached_class - ) + params( + management_operation_token: String, + request_options: Lithic::RequestOptions::OrHash + ).returns(T.attached_class) end - def self.new(request_options: {}) + def self.new(management_operation_token:, request_options: {}) end - sig { override.returns({ request_options: Lithic::RequestOptions }) } + sig do + override.returns( + { + management_operation_token: String, + request_options: Lithic::RequestOptions + } + ) + end def to_hash end end diff --git a/rbi/lithic/models/management_operation_reverse_params.rbi b/rbi/lithic/models/management_operation_reverse_params.rbi index 7c03c905..1c76756b 100644 --- a/rbi/lithic/models/management_operation_reverse_params.rbi +++ b/rbi/lithic/models/management_operation_reverse_params.rbi @@ -14,6 +14,9 @@ module Lithic ) end + sig { returns(String) } + attr_accessor :management_operation_token + sig { returns(Date) } attr_accessor :effective_date @@ -25,17 +28,24 @@ module Lithic sig do params( + management_operation_token: String, effective_date: Date, memo: String, request_options: Lithic::RequestOptions::OrHash ).returns(T.attached_class) end - def self.new(effective_date:, memo: nil, request_options: {}) + def self.new( + management_operation_token:, + effective_date:, + memo: nil, + request_options: {} + ) end sig do override.returns( { + management_operation_token: String, effective_date: Date, memo: String, request_options: Lithic::RequestOptions diff --git a/rbi/lithic/models/network_program_retrieve_params.rbi b/rbi/lithic/models/network_program_retrieve_params.rbi index 343e6a3c..e56aecb5 100644 --- a/rbi/lithic/models/network_program_retrieve_params.rbi +++ b/rbi/lithic/models/network_program_retrieve_params.rbi @@ -11,15 +11,26 @@ module Lithic T.any(Lithic::NetworkProgramRetrieveParams, Lithic::Internal::AnyHash) end + sig { returns(String) } + attr_accessor :network_program_token + sig do - params(request_options: Lithic::RequestOptions::OrHash).returns( - T.attached_class - ) + params( + network_program_token: String, + request_options: Lithic::RequestOptions::OrHash + ).returns(T.attached_class) end - def self.new(request_options: {}) + def self.new(network_program_token:, request_options: {}) end - sig { override.returns({ request_options: Lithic::RequestOptions }) } + sig do + override.returns( + { + network_program_token: String, + request_options: Lithic::RequestOptions + } + ) + end def to_hash end end diff --git a/rbi/lithic/models/payment_retrieve_params.rbi b/rbi/lithic/models/payment_retrieve_params.rbi index 930fd01e..c5fa5cb3 100644 --- a/rbi/lithic/models/payment_retrieve_params.rbi +++ b/rbi/lithic/models/payment_retrieve_params.rbi @@ -11,15 +11,23 @@ module Lithic T.any(Lithic::PaymentRetrieveParams, Lithic::Internal::AnyHash) end + sig { returns(String) } + attr_accessor :payment_token + sig do - params(request_options: Lithic::RequestOptions::OrHash).returns( - T.attached_class - ) + params( + payment_token: String, + request_options: Lithic::RequestOptions::OrHash + ).returns(T.attached_class) end - def self.new(request_options: {}) + def self.new(payment_token:, request_options: {}) end - sig { override.returns({ request_options: Lithic::RequestOptions }) } + sig do + override.returns( + { payment_token: String, request_options: Lithic::RequestOptions } + ) + end def to_hash end end diff --git a/rbi/lithic/models/payment_retry_params.rbi b/rbi/lithic/models/payment_retry_params.rbi index 714a4bcb..17c18453 100644 --- a/rbi/lithic/models/payment_retry_params.rbi +++ b/rbi/lithic/models/payment_retry_params.rbi @@ -11,15 +11,23 @@ module Lithic T.any(Lithic::PaymentRetryParams, Lithic::Internal::AnyHash) end + sig { returns(String) } + attr_accessor :payment_token + sig do - params(request_options: Lithic::RequestOptions::OrHash).returns( - T.attached_class - ) + params( + payment_token: String, + request_options: Lithic::RequestOptions::OrHash + ).returns(T.attached_class) end - def self.new(request_options: {}) + def self.new(payment_token:, request_options: {}) end - sig { override.returns({ request_options: Lithic::RequestOptions }) } + sig do + override.returns( + { payment_token: String, request_options: Lithic::RequestOptions } + ) + end def to_hash end end diff --git a/rbi/lithic/models/payment_return_params.rbi b/rbi/lithic/models/payment_return_params.rbi index dcb3bccb..a2fb1cb1 100644 --- a/rbi/lithic/models/payment_return_params.rbi +++ b/rbi/lithic/models/payment_return_params.rbi @@ -11,6 +11,9 @@ module Lithic T.any(Lithic::PaymentReturnParams, Lithic::Internal::AnyHash) end + sig { returns(String) } + attr_accessor :payment_token + # Globally unique identifier for the financial account sig { returns(String) } attr_accessor :financial_account_token @@ -38,6 +41,7 @@ module Lithic sig do params( + payment_token: String, financial_account_token: String, return_reason_code: String, addenda: T.nilable(String), @@ -47,6 +51,7 @@ module Lithic ).returns(T.attached_class) end def self.new( + payment_token:, # Globally unique identifier for the financial account financial_account_token:, # ACH return reason code indicating the reason for returning the payment. @@ -69,6 +74,7 @@ module Lithic sig do override.returns( { + payment_token: String, financial_account_token: String, return_reason_code: String, addenda: T.nilable(String), diff --git a/rbi/lithic/models/payment_simulate_action_params.rbi b/rbi/lithic/models/payment_simulate_action_params.rbi index 4c6057d6..417a70bf 100644 --- a/rbi/lithic/models/payment_simulate_action_params.rbi +++ b/rbi/lithic/models/payment_simulate_action_params.rbi @@ -11,6 +11,9 @@ module Lithic T.any(Lithic::PaymentSimulateActionParams, Lithic::Internal::AnyHash) end + sig { returns(String) } + attr_accessor :payment_token + # Event Type sig { returns(Lithic::PaymentSimulateActionParams::EventType::OrSymbol) } attr_accessor :event_type @@ -56,6 +59,7 @@ module Lithic sig do params( + payment_token: String, event_type: Lithic::PaymentSimulateActionParams::EventType::OrSymbol, date_of_death: Date, decline_reason: @@ -66,6 +70,7 @@ module Lithic ).returns(T.attached_class) end def self.new( + payment_token:, # Event Type event_type:, # Date of Death for ACH Return @@ -83,6 +88,7 @@ module Lithic sig do override.returns( { + payment_token: String, event_type: Lithic::PaymentSimulateActionParams::EventType::OrSymbol, date_of_death: Date, diff --git a/rbi/lithic/models/reports/settlement/network_total_retrieve_params.rbi b/rbi/lithic/models/reports/settlement/network_total_retrieve_params.rbi index 414f8cca..727eabd0 100644 --- a/rbi/lithic/models/reports/settlement/network_total_retrieve_params.rbi +++ b/rbi/lithic/models/reports/settlement/network_total_retrieve_params.rbi @@ -16,15 +16,23 @@ module Lithic ) end + sig { returns(String) } + attr_accessor :token + sig do - params(request_options: Lithic::RequestOptions::OrHash).returns( - T.attached_class - ) + params( + token: String, + request_options: Lithic::RequestOptions::OrHash + ).returns(T.attached_class) end - def self.new(request_options: {}) + def self.new(token:, request_options: {}) end - sig { override.returns({ request_options: Lithic::RequestOptions }) } + sig do + override.returns( + { token: String, request_options: Lithic::RequestOptions } + ) + end def to_hash end end diff --git a/rbi/lithic/models/reports/settlement_list_details_params.rbi b/rbi/lithic/models/reports/settlement_list_details_params.rbi index c56184cb..3ff93fef 100644 --- a/rbi/lithic/models/reports/settlement_list_details_params.rbi +++ b/rbi/lithic/models/reports/settlement_list_details_params.rbi @@ -15,6 +15,9 @@ module Lithic ) end + sig { returns(Date) } + attr_accessor :report_date + # A cursor representing an item's token before which a page of results should end. # Used to retrieve the previous page of results before this item. sig { returns(T.nilable(String)) } @@ -40,6 +43,7 @@ module Lithic sig do params( + report_date: Date, ending_before: String, page_size: Integer, starting_after: String, @@ -47,6 +51,7 @@ module Lithic ).returns(T.attached_class) end def self.new( + report_date:, # A cursor representing an item's token before which a page of results should end. # Used to retrieve the previous page of results before this item. ending_before: nil, @@ -62,6 +67,7 @@ module Lithic sig do override.returns( { + report_date: Date, ending_before: String, page_size: Integer, starting_after: String, diff --git a/rbi/lithic/models/reports/settlement_summary_params.rbi b/rbi/lithic/models/reports/settlement_summary_params.rbi index 73de786b..7a4b05c6 100644 --- a/rbi/lithic/models/reports/settlement_summary_params.rbi +++ b/rbi/lithic/models/reports/settlement_summary_params.rbi @@ -15,15 +15,23 @@ module Lithic ) end + sig { returns(Date) } + attr_accessor :report_date + sig do - params(request_options: Lithic::RequestOptions::OrHash).returns( - T.attached_class - ) + params( + report_date: Date, + request_options: Lithic::RequestOptions::OrHash + ).returns(T.attached_class) end - def self.new(request_options: {}) + def self.new(report_date:, request_options: {}) end - sig { override.returns({ request_options: Lithic::RequestOptions }) } + sig do + override.returns( + { report_date: Date, request_options: Lithic::RequestOptions } + ) + end def to_hash end end diff --git a/rbi/lithic/models/three_ds/authentication_retrieve_params.rbi b/rbi/lithic/models/three_ds/authentication_retrieve_params.rbi index 4b4cdb9a..70e010ff 100644 --- a/rbi/lithic/models/three_ds/authentication_retrieve_params.rbi +++ b/rbi/lithic/models/three_ds/authentication_retrieve_params.rbi @@ -15,15 +15,26 @@ module Lithic ) end + sig { returns(String) } + attr_accessor :three_ds_authentication_token + sig do - params(request_options: Lithic::RequestOptions::OrHash).returns( - T.attached_class - ) + params( + three_ds_authentication_token: String, + request_options: Lithic::RequestOptions::OrHash + ).returns(T.attached_class) end - def self.new(request_options: {}) + def self.new(three_ds_authentication_token:, request_options: {}) end - sig { override.returns({ request_options: Lithic::RequestOptions }) } + sig do + override.returns( + { + three_ds_authentication_token: String, + request_options: Lithic::RequestOptions + } + ) + end def to_hash end end diff --git a/rbi/lithic/models/tokenization_activate_params.rbi b/rbi/lithic/models/tokenization_activate_params.rbi index fea90eb7..f00107c6 100644 --- a/rbi/lithic/models/tokenization_activate_params.rbi +++ b/rbi/lithic/models/tokenization_activate_params.rbi @@ -11,15 +11,26 @@ module Lithic T.any(Lithic::TokenizationActivateParams, Lithic::Internal::AnyHash) end + sig { returns(String) } + attr_accessor :tokenization_token + sig do - params(request_options: Lithic::RequestOptions::OrHash).returns( - T.attached_class - ) + params( + tokenization_token: String, + request_options: Lithic::RequestOptions::OrHash + ).returns(T.attached_class) end - def self.new(request_options: {}) + def self.new(tokenization_token:, request_options: {}) end - sig { override.returns({ request_options: Lithic::RequestOptions }) } + sig do + override.returns( + { + tokenization_token: String, + request_options: Lithic::RequestOptions + } + ) + end def to_hash end end diff --git a/rbi/lithic/models/tokenization_deactivate_params.rbi b/rbi/lithic/models/tokenization_deactivate_params.rbi index 997f6b6b..a135894a 100644 --- a/rbi/lithic/models/tokenization_deactivate_params.rbi +++ b/rbi/lithic/models/tokenization_deactivate_params.rbi @@ -11,15 +11,26 @@ module Lithic T.any(Lithic::TokenizationDeactivateParams, Lithic::Internal::AnyHash) end + sig { returns(String) } + attr_accessor :tokenization_token + sig do - params(request_options: Lithic::RequestOptions::OrHash).returns( - T.attached_class - ) + params( + tokenization_token: String, + request_options: Lithic::RequestOptions::OrHash + ).returns(T.attached_class) end - def self.new(request_options: {}) + def self.new(tokenization_token:, request_options: {}) end - sig { override.returns({ request_options: Lithic::RequestOptions }) } + sig do + override.returns( + { + tokenization_token: String, + request_options: Lithic::RequestOptions + } + ) + end def to_hash end end diff --git a/rbi/lithic/models/tokenization_pause_params.rbi b/rbi/lithic/models/tokenization_pause_params.rbi index 1976742c..2b0722a9 100644 --- a/rbi/lithic/models/tokenization_pause_params.rbi +++ b/rbi/lithic/models/tokenization_pause_params.rbi @@ -11,15 +11,26 @@ module Lithic T.any(Lithic::TokenizationPauseParams, Lithic::Internal::AnyHash) end + sig { returns(String) } + attr_accessor :tokenization_token + sig do - params(request_options: Lithic::RequestOptions::OrHash).returns( - T.attached_class - ) + params( + tokenization_token: String, + request_options: Lithic::RequestOptions::OrHash + ).returns(T.attached_class) end - def self.new(request_options: {}) + def self.new(tokenization_token:, request_options: {}) end - sig { override.returns({ request_options: Lithic::RequestOptions }) } + sig do + override.returns( + { + tokenization_token: String, + request_options: Lithic::RequestOptions + } + ) + end def to_hash end end diff --git a/rbi/lithic/models/tokenization_resend_activation_code_params.rbi b/rbi/lithic/models/tokenization_resend_activation_code_params.rbi index 4e17a819..12177ed5 100644 --- a/rbi/lithic/models/tokenization_resend_activation_code_params.rbi +++ b/rbi/lithic/models/tokenization_resend_activation_code_params.rbi @@ -14,6 +14,9 @@ module Lithic ) end + sig { returns(String) } + attr_accessor :tokenization_token + # The communication method that the user has selected to use to receive the # authentication code. Supported Values: Sms = "TEXT_TO_CARDHOLDER_NUMBER". Email # = "EMAIL_TO_CARDHOLDER_ADDRESS" @@ -36,12 +39,14 @@ module Lithic sig do params( + tokenization_token: String, activation_method_type: Lithic::TokenizationResendActivationCodeParams::ActivationMethodType::OrSymbol, request_options: Lithic::RequestOptions::OrHash ).returns(T.attached_class) end def self.new( + tokenization_token:, # The communication method that the user has selected to use to receive the # authentication code. Supported Values: Sms = "TEXT_TO_CARDHOLDER_NUMBER". Email # = "EMAIL_TO_CARDHOLDER_ADDRESS" @@ -53,6 +58,7 @@ module Lithic sig do override.returns( { + tokenization_token: String, activation_method_type: Lithic::TokenizationResendActivationCodeParams::ActivationMethodType::OrSymbol, request_options: Lithic::RequestOptions diff --git a/rbi/lithic/models/tokenization_retrieve_params.rbi b/rbi/lithic/models/tokenization_retrieve_params.rbi index 1872cb30..1eb38d9d 100644 --- a/rbi/lithic/models/tokenization_retrieve_params.rbi +++ b/rbi/lithic/models/tokenization_retrieve_params.rbi @@ -11,15 +11,26 @@ module Lithic T.any(Lithic::TokenizationRetrieveParams, Lithic::Internal::AnyHash) end + sig { returns(String) } + attr_accessor :tokenization_token + sig do - params(request_options: Lithic::RequestOptions::OrHash).returns( - T.attached_class - ) + params( + tokenization_token: String, + request_options: Lithic::RequestOptions::OrHash + ).returns(T.attached_class) end - def self.new(request_options: {}) + def self.new(tokenization_token:, request_options: {}) end - sig { override.returns({ request_options: Lithic::RequestOptions }) } + sig do + override.returns( + { + tokenization_token: String, + request_options: Lithic::RequestOptions + } + ) + end def to_hash end end diff --git a/rbi/lithic/models/tokenization_unpause_params.rbi b/rbi/lithic/models/tokenization_unpause_params.rbi index cdf8570b..a19a35fd 100644 --- a/rbi/lithic/models/tokenization_unpause_params.rbi +++ b/rbi/lithic/models/tokenization_unpause_params.rbi @@ -11,15 +11,26 @@ module Lithic T.any(Lithic::TokenizationUnpauseParams, Lithic::Internal::AnyHash) end + sig { returns(String) } + attr_accessor :tokenization_token + sig do - params(request_options: Lithic::RequestOptions::OrHash).returns( - T.attached_class - ) + params( + tokenization_token: String, + request_options: Lithic::RequestOptions::OrHash + ).returns(T.attached_class) end - def self.new(request_options: {}) + def self.new(tokenization_token:, request_options: {}) end - sig { override.returns({ request_options: Lithic::RequestOptions }) } + sig do + override.returns( + { + tokenization_token: String, + request_options: Lithic::RequestOptions + } + ) + end def to_hash end end diff --git a/rbi/lithic/models/tokenization_update_digital_card_art_params.rbi b/rbi/lithic/models/tokenization_update_digital_card_art_params.rbi index dc879e4d..0fe06edb 100644 --- a/rbi/lithic/models/tokenization_update_digital_card_art_params.rbi +++ b/rbi/lithic/models/tokenization_update_digital_card_art_params.rbi @@ -14,6 +14,9 @@ module Lithic ) end + sig { returns(String) } + attr_accessor :tokenization_token + # Specifies the digital card art to be displayed in the user’s digital wallet for # a tokenization. This artwork must be approved by the network and configured by # Lithic to use. See @@ -26,11 +29,13 @@ module Lithic sig do params( + tokenization_token: String, digital_card_art_token: String, request_options: Lithic::RequestOptions::OrHash ).returns(T.attached_class) end def self.new( + tokenization_token:, # Specifies the digital card art to be displayed in the user’s digital wallet for # a tokenization. This artwork must be approved by the network and configured by # Lithic to use. See @@ -43,6 +48,7 @@ module Lithic sig do override.returns( { + tokenization_token: String, digital_card_art_token: String, request_options: Lithic::RequestOptions } diff --git a/rbi/lithic/models/transaction_expire_authorization_params.rbi b/rbi/lithic/models/transaction_expire_authorization_params.rbi index 8b71d60a..6f819014 100644 --- a/rbi/lithic/models/transaction_expire_authorization_params.rbi +++ b/rbi/lithic/models/transaction_expire_authorization_params.rbi @@ -14,15 +14,23 @@ module Lithic ) end + sig { returns(String) } + attr_accessor :transaction_token + sig do - params(request_options: Lithic::RequestOptions::OrHash).returns( - T.attached_class - ) + params( + transaction_token: String, + request_options: Lithic::RequestOptions::OrHash + ).returns(T.attached_class) end - def self.new(request_options: {}) + def self.new(transaction_token:, request_options: {}) end - sig { override.returns({ request_options: Lithic::RequestOptions }) } + sig do + override.returns( + { transaction_token: String, request_options: Lithic::RequestOptions } + ) + end def to_hash end end diff --git a/rbi/lithic/models/transaction_retrieve_params.rbi b/rbi/lithic/models/transaction_retrieve_params.rbi index 0851b51c..63801408 100644 --- a/rbi/lithic/models/transaction_retrieve_params.rbi +++ b/rbi/lithic/models/transaction_retrieve_params.rbi @@ -11,15 +11,23 @@ module Lithic T.any(Lithic::TransactionRetrieveParams, Lithic::Internal::AnyHash) end + sig { returns(String) } + attr_accessor :transaction_token + sig do - params(request_options: Lithic::RequestOptions::OrHash).returns( - T.attached_class - ) + params( + transaction_token: String, + request_options: Lithic::RequestOptions::OrHash + ).returns(T.attached_class) end - def self.new(request_options: {}) + def self.new(transaction_token:, request_options: {}) end - sig { override.returns({ request_options: Lithic::RequestOptions }) } + sig do + override.returns( + { transaction_token: String, request_options: Lithic::RequestOptions } + ) + end def to_hash end end diff --git a/rbi/lithic/models/transactions/enhanced_commercial_data_retrieve_params.rbi b/rbi/lithic/models/transactions/enhanced_commercial_data_retrieve_params.rbi index c50a74e0..b28fc1f8 100644 --- a/rbi/lithic/models/transactions/enhanced_commercial_data_retrieve_params.rbi +++ b/rbi/lithic/models/transactions/enhanced_commercial_data_retrieve_params.rbi @@ -15,15 +15,26 @@ module Lithic ) end + sig { returns(String) } + attr_accessor :transaction_token + sig do - params(request_options: Lithic::RequestOptions::OrHash).returns( - T.attached_class - ) + params( + transaction_token: String, + request_options: Lithic::RequestOptions::OrHash + ).returns(T.attached_class) end - def self.new(request_options: {}) + def self.new(transaction_token:, request_options: {}) end - sig { override.returns({ request_options: Lithic::RequestOptions }) } + sig do + override.returns( + { + transaction_token: String, + request_options: Lithic::RequestOptions + } + ) + end def to_hash end end diff --git a/rbi/lithic/models/transactions/events/enhanced_commercial_data_retrieve_params.rbi b/rbi/lithic/models/transactions/events/enhanced_commercial_data_retrieve_params.rbi index 0495ca20..8c3aa3b9 100644 --- a/rbi/lithic/models/transactions/events/enhanced_commercial_data_retrieve_params.rbi +++ b/rbi/lithic/models/transactions/events/enhanced_commercial_data_retrieve_params.rbi @@ -16,15 +16,23 @@ module Lithic ) end + sig { returns(String) } + attr_accessor :event_token + sig do - params(request_options: Lithic::RequestOptions::OrHash).returns( - T.attached_class - ) + params( + event_token: String, + request_options: Lithic::RequestOptions::OrHash + ).returns(T.attached_class) end - def self.new(request_options: {}) + def self.new(event_token:, request_options: {}) end - sig { override.returns({ request_options: Lithic::RequestOptions }) } + sig do + override.returns( + { event_token: String, request_options: Lithic::RequestOptions } + ) + end def to_hash end end diff --git a/rbi/lithic/resources/account_holders.rbi b/rbi/lithic/resources/account_holders.rbi index 3cde790b..67c9be7e 100644 --- a/rbi/lithic/resources/account_holders.rbi +++ b/rbi/lithic/resources/account_holders.rbi @@ -16,102 +16,17 @@ module Lithic # that the calling API key manages. sig do params( - business_entity: - Lithic::AccountHolderCreateParams::BusinessEntity::OrHash, - tos_timestamp: String, - workflow: Lithic::AccountHolderCreateParams::Workflow::OrSymbol, - individual: Lithic::AccountHolderCreateParams::Individual::OrHash, - address: Lithic::Address::OrHash, - email: String, - first_name: String, - kyc_exemption_type: - Lithic::AccountHolderCreateParams::KYCExemptionType::OrSymbol, - last_name: String, - phone_number: String, - beneficial_owner_individuals: - T::Array[ - Lithic::AccountHolderCreateParams::BeneficialOwnerIndividual::OrHash - ], - control_person: - Lithic::AccountHolderCreateParams::ControlPerson::OrHash, - nature_of_business: String, - external_id: String, - kyb_passed_timestamp: String, - naics_code: String, - website_url: String, - kyc_passed_timestamp: String, - business_account_token: String, + body: + T.any( + Lithic::KYB::OrHash, + Lithic::AccountHolderCreateParams::Body::KYBDelegated::OrHash, + Lithic::KYC::OrHash, + Lithic::KYCExempt::OrHash + ), request_options: Lithic::RequestOptions::OrHash ).returns(Lithic::Models::AccountHolderCreateResponse) end - def create( - # Information for business for which the account is being opened. - business_entity:, - # An RFC 3339 timestamp indicating when the account holder accepted the applicable - # legal agreements (e.g., cardholder terms) as agreed upon during API customer's - # implementation with Lithic. - tos_timestamp:, - # Specifies the workflow type. This must be 'KYC_EXEMPT' - workflow:, - # Information on individual for whom the account is being opened and KYC is being - # run. - individual:, - # KYC Exempt user's current address - PO boxes, UPS drops, and FedEx drops are not - # acceptable; APO/FPO are acceptable. - address:, - # The KYC Exempt user's email - email:, - # The KYC Exempt user's first name - first_name:, - # Specifies the type of KYC Exempt user - kyc_exemption_type:, - # The KYC Exempt user's last name - last_name:, - # The KYC Exempt user's phone number, entered in E.164 format. - phone_number:, - # You can submit a list of all direct and indirect individuals with 25% or more - # ownership in the company. A maximum of 4 beneficial owners can be submitted. If - # no individual owns 25% of the company you do not need to send beneficial owner - # information. See - # [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf) - # (Section I) for more background on individuals that should be included. - beneficial_owner_individuals: nil, - # An individual with significant responsibility for managing the legal entity - # (e.g., a Chief Executive Officer, Chief Financial Officer, Chief Operating - # Officer, Managing Member, General Partner, President, Vice President, or - # Treasurer). This can be an executive, or someone who will have program-wide - # access to the cards that Lithic will provide. In some cases, this individual - # could also be a beneficial owner listed above. See - # [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf) - # (Section II) for more background. - control_person: nil, - # Short description of the company's line of business (i.e., what does the company - # do?). - nature_of_business: nil, - # A user provided id that can be used to link an account holder with an external - # system - external_id: nil, - # An RFC 3339 timestamp indicating when precomputed KYB was completed on the - # business with a pass result. - # - # This field is required only if workflow type is `KYB_BYO`. - kyb_passed_timestamp: nil, - # 6-digit North American Industry Classification System (NAICS) code for the - # business. - naics_code: nil, - # Company website URL. - website_url: nil, - # An RFC 3339 timestamp indicating when precomputed KYC was completed on the - # individual with a pass result. - # - # This field is required only if workflow type is `KYC_BYO`. - kyc_passed_timestamp: nil, - # Only applicable for customers using the KYC-Exempt workflow to enroll authorized - # users of businesses. Pass the account_token of the enrolled business associated - # with the AUTHORIZED_USER in this field. - business_account_token: nil, - request_options: {} - ) + def create(body:, request_options: {}) end # Get an Individual or Business Account Holder and/or their KYC or KYB evaluation @@ -142,84 +57,20 @@ module Lithic sig do params( account_holder_token: String, - beneficial_owner_individuals: - T::Array[ - Lithic::AccountHolderUpdateParams::BeneficialOwnerIndividual::OrHash - ], - business_entity: - Lithic::AccountHolderUpdateParams::BusinessEntity::OrHash, - control_person: - Lithic::AccountHolderUpdateParams::ControlPerson::OrHash, - external_id: String, - naics_code: String, - nature_of_business: String, - website_url: String, - individual: Lithic::AccountHolderUpdateParams::Individual::OrHash, - address: Lithic::AddressUpdate::OrHash, - business_account_token: String, - email: String, - first_name: String, - last_name: String, - legal_business_name: String, - phone_number: String, + body: + T.any( + Lithic::AccountHolderUpdateParams::Body::KYBPatchRequest::OrHash, + Lithic::AccountHolderUpdateParams::Body::KYCPatchRequest::OrHash, + Lithic::AccountHolderUpdateParams::Body::PatchRequest::OrHash + ), request_options: Lithic::RequestOptions::OrHash ).returns(Lithic::Models::AccountHolderUpdateResponse::Variants) end def update( # Globally unique identifier for the account holder. account_holder_token, - # You must submit a list of all direct and indirect individuals with 25% or more - # ownership in the company. A maximum of 4 beneficial owners can be submitted. If - # no individual owns 25% of the company you do not need to send beneficial owner - # information. See - # [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf) - # (Section I) for more background on individuals that should be included. - beneficial_owner_individuals: nil, - # Information for business for which the account is being opened and KYB is being - # run. - business_entity: nil, - # An individual with significant responsibility for managing the legal entity - # (e.g., a Chief Executive Officer, Chief Financial Officer, Chief Operating - # Officer, Managing Member, General Partner, President, Vice President, or - # Treasurer). This can be an executive, or someone who will have program-wide - # access to the cards that Lithic will provide. In some cases, this individual - # could also be a beneficial owner listed above. See - # [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf) - # (Section II) for more background. - control_person: nil, - # A user provided id that can be used to link an account holder with an external - # system - external_id: nil, - # 6-digit North American Industry Classification System (NAICS) code for the - # business. - naics_code: nil, - # Short description of the company's line of business (i.e., what does the company - # do?). - nature_of_business: nil, - # Company website URL. - website_url: nil, - # Information on the individual for whom the account is being opened and KYC is - # being run. - individual: nil, - # Allowed for: KYC-Exempt, BYO-KYC, BYO-KYB. - address: nil, - # Allowed for: KYC-Exempt, BYO-KYC. The token of the business account to which the - # account holder is associated. - business_account_token: nil, - # Allowed for all Account Holders. Account holder's email address. The primary - # purpose of this field is for cardholder identification and verification during - # the digital wallet tokenization process. - email: nil, - # Allowed for KYC-Exempt, BYO-KYC. Account holder's first name. - first_name: nil, - # Allowed for KYC-Exempt, BYO-KYC. Account holder's last name. - last_name: nil, - # Allowed for BYO-KYB. Legal business name of the account holder. - legal_business_name: nil, - # Allowed for all Account Holders. Account holder's phone number, entered in E.164 - # format. The primary purpose of this field is for cardholder identification and - # verification during the digital wallet tokenization process. - phone_number: nil, + # The KYB request payload for updating a business. + body:, request_options: {} ) end diff --git a/rbi/lithic/resources/auth_rules/v2.rbi b/rbi/lithic/resources/auth_rules/v2.rbi index c32be89e..0f85dc45 100644 --- a/rbi/lithic/resources/auth_rules/v2.rbi +++ b/rbi/lithic/resources/auth_rules/v2.rbi @@ -10,58 +10,16 @@ module Lithic # Creates a new V2 Auth rule in draft mode sig do params( - parameters: + body: T.any( - Lithic::AuthRules::ConditionalBlockParameters::OrHash, - Lithic::AuthRules::VelocityLimitParams::OrHash, - Lithic::AuthRules::MerchantLockParameters::OrHash, - Lithic::AuthRules::Conditional3DSActionParameters::OrHash, - Lithic::AuthRules::ConditionalAuthorizationActionParameters::OrHash, - Lithic::AuthRules::ConditionalACHActionParameters::OrHash, - Lithic::AuthRules::ConditionalTokenizationActionParameters::OrHash + Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::OrHash, + Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::OrHash, + Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::OrHash ), - type: Lithic::AuthRules::V2CreateParams::Type::OrSymbol, - card_tokens: T::Array[String], - program_level: T::Boolean, - account_tokens: T::Array[String], - business_account_tokens: T::Array[String], - event_stream: Lithic::AuthRules::EventStream::OrSymbol, - name: T.nilable(String), - excluded_card_tokens: T::Array[String], request_options: Lithic::RequestOptions::OrHash ).returns(Lithic::AuthRules::AuthRule) end - def create( - # Parameters for the Auth Rule - parameters:, - # The type of Auth Rule. For certain rule types, this determines the event stream - # during which it will be evaluated. For rules that can be applied to one of - # several event streams, the effective one is defined by the separate - # `event_stream` field. - # - # - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead. - # AUTHORIZATION event stream. - # - `VELOCITY_LIMIT`: AUTHORIZATION event stream. - # - `MERCHANT_LOCK`: AUTHORIZATION event stream. - # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION, - # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream. - type:, - # Card tokens to which the Auth Rule applies. - card_tokens:, - # Whether the Auth Rule applies to all authorizations on the card program. - program_level:, - # Account tokens to which the Auth Rule applies. - account_tokens: nil, - # Business Account tokens to which the Auth Rule applies. - business_account_tokens: nil, - # The event stream during which the rule will be evaluated. - event_stream: nil, - # Auth Rule Name - name: nil, - # Card tokens to which the Auth Rule does not apply. - excluded_card_tokens: nil, - request_options: {} - ) + def create(body:, request_options: {}) end # Fetches a V2 Auth rule by its token @@ -82,38 +40,16 @@ module Lithic sig do params( auth_rule_token: String, - account_tokens: T::Array[String], - business_account_tokens: T::Array[String], - name: T.nilable(String), - state: Lithic::AuthRules::V2UpdateParams::State::OrSymbol, - card_tokens: T::Array[String], - excluded_card_tokens: T::Array[String], - program_level: T::Boolean, + body: + T.any( + Lithic::AuthRules::V2UpdateParams::Body::AccountLevelRule::OrHash, + Lithic::AuthRules::V2UpdateParams::Body::CardLevelRule::OrHash, + Lithic::AuthRules::V2UpdateParams::Body::ProgramLevelRule::OrHash + ), request_options: Lithic::RequestOptions::OrHash ).returns(Lithic::AuthRules::AuthRule) end - def update( - auth_rule_token, - # Account tokens to which the Auth Rule applies. - account_tokens: nil, - # Business Account tokens to which the Auth Rule applies. - business_account_tokens: nil, - # Auth Rule Name - name: nil, - # The desired state of the Auth Rule. - # - # Note that only deactivating an Auth Rule through this endpoint is supported at - # this time. If you need to (re-)activate an Auth Rule the /promote endpoint - # should be used to promote a draft to the currently active version. - state: nil, - # Card tokens to which the Auth Rule applies. - card_tokens: nil, - # Card tokens to which the Auth Rule does not apply. - excluded_card_tokens: nil, - # Whether the Auth Rule applies to all authorizations on the card program. - program_level: nil, - request_options: {} - ) + def update(auth_rule_token, body:, request_options: {}) end # Lists V2 Auth rules diff --git a/rbi/lithic/resources/external_bank_accounts.rbi b/rbi/lithic/resources/external_bank_accounts.rbi index fb5a0264..fcfedd89 100644 --- a/rbi/lithic/resources/external_bank_accounts.rbi +++ b/rbi/lithic/resources/external_bank_accounts.rbi @@ -9,67 +9,16 @@ module Lithic # Creates an external bank account within a program or Lithic account. sig do params( - account_number: String, - country: String, - currency: String, - financial_account_token: String, - owner: String, - owner_type: Lithic::OwnerType::OrSymbol, - routing_number: String, - type: Lithic::ExternalBankAccountCreateParams::Type::OrSymbol, - verification_method: - Lithic::ExternalBankAccountCreateParams::VerificationMethod::OrSymbol, - account_token: String, - address: Lithic::ExternalBankAccountAddress::OrHash, - company_id: String, - dob: Date, - doing_business_as: String, - name: String, - user_defined_id: String, - verification_enforcement: T::Boolean, + body: + T.any( + Lithic::ExternalBankAccountCreateParams::Body::ExternallyVerified::OrHash, + Lithic::ExternalBankAccountCreateParams::Body::Unverified::OrHash, + Lithic::ExternalBankAccountCreateParams::Body::BankVerifiedCreateBankAccountAPIRequest::OrHash + ), request_options: Lithic::RequestOptions::OrHash ).returns(Lithic::Models::ExternalBankAccountCreateResponse) end - def create( - # Account Number - account_number:, - # The country that the bank account is located in using ISO 3166-1. We will only - # accept USA bank accounts e.g., USA - country:, - # currency of the external account 3-character alphabetic ISO 4217 code - currency:, - # The financial account token of the operating account to fund the micro deposits - financial_account_token:, - # Legal Name of the business or individual who owns the external account. This - # will appear in statements - owner:, - # Owner Type - owner_type:, - # Routing Number - routing_number:, - # Account Type - type:, - # Verification Method - verification_method:, - # Indicates which Lithic account the external account is associated with. For - # external accounts that are associated with the program, account_token field - # returned will be null - account_token: nil, - # Address - address: nil, - # Optional field that helps identify bank accounts in receipts - company_id: nil, - # Date of Birth of the Individual that owns the external bank account - dob: nil, - # Doing Business As - doing_business_as: nil, - # The nickname for this External Bank Account - name: nil, - # User Defined ID - user_defined_id: nil, - verification_enforcement: nil, - request_options: {} - ) + def create(body:, request_options: {}) end # Get the external bank account by token. diff --git a/scripts/mock b/scripts/mock index 0b28f6ea..bcf3b392 100755 --- a/scripts/mock +++ b/scripts/mock @@ -21,11 +21,22 @@ echo "==> Starting mock server with URL ${URL}" # Run prism mock on the given spec if [ "$1" == "--daemon" ]; then + # Pre-install the package so the download doesn't eat into the startup timeout + npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism --version + npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock "$URL" &> .prism.log & - # Wait for server to come online + # Wait for server to come online (max 30s) echo -n "Waiting for server" + attempts=0 while ! grep -q "✖ fatal\|Prism is listening" ".prism.log" ; do + attempts=$((attempts + 1)) + if [ "$attempts" -ge 300 ]; then + echo + echo "Timed out waiting for Prism server to start" + cat .prism.log + exit 1 + fi echo -n "." sleep 0.1 done diff --git a/sig/lithic/models/account_activity_retrieve_transaction_params.rbs b/sig/lithic/models/account_activity_retrieve_transaction_params.rbs index 14d791c5..ce7273df 100644 --- a/sig/lithic/models/account_activity_retrieve_transaction_params.rbs +++ b/sig/lithic/models/account_activity_retrieve_transaction_params.rbs @@ -1,15 +1,23 @@ module Lithic module Models type account_activity_retrieve_transaction_params = - { } & Lithic::Internal::Type::request_parameters + { transaction_token: String } & Lithic::Internal::Type::request_parameters class AccountActivityRetrieveTransactionParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - def initialize: (?request_options: Lithic::request_opts) -> void + attr_accessor transaction_token: String - def to_hash: -> { request_options: Lithic::RequestOptions } + def initialize: ( + transaction_token: String, + ?request_options: Lithic::request_opts + ) -> void + + def to_hash: -> { + transaction_token: String, + request_options: Lithic::RequestOptions + } end end end diff --git a/sig/lithic/models/account_holder_create_params.rbs b/sig/lithic/models/account_holder_create_params.rbs index 001a0a61..f0d690c0 100644 --- a/sig/lithic/models/account_holder_create_params.rbs +++ b/sig/lithic/models/account_holder_create_params.rbs @@ -1,353 +1,272 @@ module Lithic module Models type account_holder_create_params = - { - beneficial_owner_individuals: ::Array[Lithic::AccountHolderCreateParams::BeneficialOwnerIndividual], - business_entity: Lithic::AccountHolderCreateParams::BusinessEntity, - control_person: Lithic::AccountHolderCreateParams::ControlPerson, - nature_of_business: String, - tos_timestamp: String, - workflow: Lithic::Models::AccountHolderCreateParams::workflow, - external_id: String, - kyb_passed_timestamp: String, - naics_code: String, - website_url: String, - individual: Lithic::AccountHolderCreateParams::Individual, - kyc_passed_timestamp: String, - address: Lithic::Address, - email: String, - first_name: String, - kyc_exemption_type: Lithic::Models::AccountHolderCreateParams::kyc_exemption_type, - last_name: String, - phone_number: String, - business_account_token: String - } + { body: Lithic::Models::AccountHolderCreateParams::body } & Lithic::Internal::Type::request_parameters class AccountHolderCreateParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - attr_reader beneficial_owner_individuals: ::Array[Lithic::AccountHolderCreateParams::BeneficialOwnerIndividual]? - - def beneficial_owner_individuals=: ( - ::Array[Lithic::AccountHolderCreateParams::BeneficialOwnerIndividual] - ) -> ::Array[Lithic::AccountHolderCreateParams::BeneficialOwnerIndividual] - - attr_accessor business_entity: Lithic::AccountHolderCreateParams::BusinessEntity - - attr_reader control_person: Lithic::AccountHolderCreateParams::ControlPerson? - - def control_person=: ( - Lithic::AccountHolderCreateParams::ControlPerson - ) -> Lithic::AccountHolderCreateParams::ControlPerson - - attr_reader nature_of_business: String? - - def nature_of_business=: (String) -> String + attr_accessor body: Lithic::Models::AccountHolderCreateParams::body - attr_accessor tos_timestamp: String - - attr_accessor workflow: Lithic::Models::AccountHolderCreateParams::workflow - - attr_reader external_id: String? - - def external_id=: (String) -> String - - attr_reader kyb_passed_timestamp: String? + def initialize: ( + body: Lithic::Models::AccountHolderCreateParams::body, + ?request_options: Lithic::request_opts + ) -> void - def kyb_passed_timestamp=: (String) -> String + def to_hash: -> { + body: Lithic::Models::AccountHolderCreateParams::body, + request_options: Lithic::RequestOptions + } - attr_reader naics_code: String? + type body = + Lithic::KYB + | Lithic::AccountHolderCreateParams::Body::KYBDelegated + | Lithic::KYC + | Lithic::KYCExempt - def naics_code=: (String) -> String + module Body + extend Lithic::Internal::Type::Union - attr_reader website_url: String? + type kyb_delegated = + { + business_entity: Lithic::AccountHolderCreateParams::Body::KYBDelegated::BusinessEntity, + beneficial_owner_individuals: ::Array[Lithic::AccountHolderCreateParams::Body::KYBDelegated::BeneficialOwnerIndividual], + control_person: Lithic::AccountHolderCreateParams::Body::KYBDelegated::ControlPerson, + external_id: String, + naics_code: String, + nature_of_business: String, + tos_timestamp: String, + website_url: String, + workflow: Lithic::Models::AccountHolderCreateParams::Body::KYBDelegated::workflow + } - def website_url=: (String) -> String + class KYBDelegated < Lithic::Internal::Type::BaseModel + attr_accessor business_entity: Lithic::AccountHolderCreateParams::Body::KYBDelegated::BusinessEntity - attr_accessor individual: Lithic::AccountHolderCreateParams::Individual + attr_reader beneficial_owner_individuals: ::Array[Lithic::AccountHolderCreateParams::Body::KYBDelegated::BeneficialOwnerIndividual]? - attr_reader kyc_passed_timestamp: String? + def beneficial_owner_individuals=: ( + ::Array[Lithic::AccountHolderCreateParams::Body::KYBDelegated::BeneficialOwnerIndividual] + ) -> ::Array[Lithic::AccountHolderCreateParams::Body::KYBDelegated::BeneficialOwnerIndividual] - def kyc_passed_timestamp=: (String) -> String + attr_reader control_person: Lithic::AccountHolderCreateParams::Body::KYBDelegated::ControlPerson? - attr_accessor address: Lithic::Address + def control_person=: ( + Lithic::AccountHolderCreateParams::Body::KYBDelegated::ControlPerson + ) -> Lithic::AccountHolderCreateParams::Body::KYBDelegated::ControlPerson - attr_accessor email: String + attr_reader external_id: String? - attr_accessor first_name: String + def external_id=: (String) -> String - attr_accessor kyc_exemption_type: Lithic::Models::AccountHolderCreateParams::kyc_exemption_type + attr_reader naics_code: String? - attr_accessor last_name: String + def naics_code=: (String) -> String - attr_accessor phone_number: String + attr_reader nature_of_business: String? + + def nature_of_business=: (String) -> String - attr_reader business_account_token: String? + attr_reader tos_timestamp: String? - def business_account_token=: (String) -> String + def tos_timestamp=: (String) -> String - def initialize: ( - business_entity: Lithic::AccountHolderCreateParams::BusinessEntity, - tos_timestamp: String, - workflow: Lithic::Models::AccountHolderCreateParams::workflow, - individual: Lithic::AccountHolderCreateParams::Individual, - address: Lithic::Address, - email: String, - first_name: String, - kyc_exemption_type: Lithic::Models::AccountHolderCreateParams::kyc_exemption_type, - last_name: String, - phone_number: String, - ?beneficial_owner_individuals: ::Array[Lithic::AccountHolderCreateParams::BeneficialOwnerIndividual], - ?control_person: Lithic::AccountHolderCreateParams::ControlPerson, - ?nature_of_business: String, - ?external_id: String, - ?kyb_passed_timestamp: String, - ?naics_code: String, - ?website_url: String, - ?kyc_passed_timestamp: String, - ?business_account_token: String, - ?request_options: Lithic::request_opts - ) -> void + attr_reader website_url: String? - def to_hash: -> { - beneficial_owner_individuals: ::Array[Lithic::AccountHolderCreateParams::BeneficialOwnerIndividual], - business_entity: Lithic::AccountHolderCreateParams::BusinessEntity, - control_person: Lithic::AccountHolderCreateParams::ControlPerson, - nature_of_business: String, - tos_timestamp: String, - workflow: Lithic::Models::AccountHolderCreateParams::workflow, - external_id: String, - kyb_passed_timestamp: String, - naics_code: String, - website_url: String, - individual: Lithic::AccountHolderCreateParams::Individual, - kyc_passed_timestamp: String, - address: Lithic::Address, - email: String, - first_name: String, - kyc_exemption_type: Lithic::Models::AccountHolderCreateParams::kyc_exemption_type, - last_name: String, - phone_number: String, - business_account_token: String, - request_options: Lithic::RequestOptions - } + def website_url=: (String) -> String - type beneficial_owner_individual = - { - address: Lithic::Address, - dob: String, - email: String, - first_name: String, - government_id: String, - last_name: String, - phone_number: String - } - - class BeneficialOwnerIndividual < Lithic::Internal::Type::BaseModel - attr_accessor address: Lithic::Address - - attr_accessor dob: String - - attr_accessor email: String - - attr_accessor first_name: String - - attr_accessor government_id: String - - attr_accessor last_name: String - - attr_reader phone_number: String? - - def phone_number=: (String) -> String - - def initialize: ( - address: Lithic::Address, - dob: String, - email: String, - first_name: String, - government_id: String, - last_name: String, - ?phone_number: String - ) -> void - - def to_hash: -> { - address: Lithic::Address, - dob: String, - email: String, - first_name: String, - government_id: String, - last_name: String, - phone_number: String - } - end + attr_reader workflow: Lithic::Models::AccountHolderCreateParams::Body::KYBDelegated::workflow? - type business_entity = - { - address: Lithic::Address, - legal_business_name: String, - dba_business_name: String, - government_id: String, - parent_company: String, - phone_numbers: ::Array[String] - } + def workflow=: ( + Lithic::Models::AccountHolderCreateParams::Body::KYBDelegated::workflow + ) -> Lithic::Models::AccountHolderCreateParams::Body::KYBDelegated::workflow - class BusinessEntity < Lithic::Internal::Type::BaseModel - attr_accessor address: Lithic::Address + def initialize: ( + business_entity: Lithic::AccountHolderCreateParams::Body::KYBDelegated::BusinessEntity, + ?beneficial_owner_individuals: ::Array[Lithic::AccountHolderCreateParams::Body::KYBDelegated::BeneficialOwnerIndividual], + ?control_person: Lithic::AccountHolderCreateParams::Body::KYBDelegated::ControlPerson, + ?external_id: String, + ?naics_code: String, + ?nature_of_business: String, + ?tos_timestamp: String, + ?website_url: String, + ?workflow: Lithic::Models::AccountHolderCreateParams::Body::KYBDelegated::workflow + ) -> void - attr_accessor legal_business_name: String + def to_hash: -> { + business_entity: Lithic::AccountHolderCreateParams::Body::KYBDelegated::BusinessEntity, + beneficial_owner_individuals: ::Array[Lithic::AccountHolderCreateParams::Body::KYBDelegated::BeneficialOwnerIndividual], + control_person: Lithic::AccountHolderCreateParams::Body::KYBDelegated::ControlPerson, + external_id: String, + naics_code: String, + nature_of_business: String, + tos_timestamp: String, + website_url: String, + workflow: Lithic::Models::AccountHolderCreateParams::Body::KYBDelegated::workflow + } - attr_reader dba_business_name: String? + type business_entity = + { + address: Lithic::Address, + legal_business_name: String, + dba_business_name: String, + government_id: String, + parent_company: String, + phone_numbers: ::Array[String] + } + + class BusinessEntity < Lithic::Internal::Type::BaseModel + attr_accessor address: Lithic::Address + + attr_accessor legal_business_name: String + + attr_reader dba_business_name: String? - def dba_business_name=: (String) -> String + def dba_business_name=: (String) -> String - attr_reader government_id: String? + attr_reader government_id: String? - def government_id=: (String) -> String + def government_id=: (String) -> String - attr_reader parent_company: String? + attr_reader parent_company: String? - def parent_company=: (String) -> String + def parent_company=: (String) -> String - attr_reader phone_numbers: ::Array[String]? + attr_reader phone_numbers: ::Array[String]? - def phone_numbers=: (::Array[String]) -> ::Array[String] + def phone_numbers=: (::Array[String]) -> ::Array[String] - def initialize: ( - address: Lithic::Address, - legal_business_name: String, - ?dba_business_name: String, - ?government_id: String, - ?parent_company: String, - ?phone_numbers: ::Array[String] - ) -> void + def initialize: ( + address: Lithic::Address, + legal_business_name: String, + ?dba_business_name: String, + ?government_id: String, + ?parent_company: String, + ?phone_numbers: ::Array[String] + ) -> void - def to_hash: -> { - address: Lithic::Address, - legal_business_name: String, - dba_business_name: String, - government_id: String, - parent_company: String, - phone_numbers: ::Array[String] - } - end + def to_hash: -> { + address: Lithic::Address, + legal_business_name: String, + dba_business_name: String, + government_id: String, + parent_company: String, + phone_numbers: ::Array[String] + } + end - type control_person = - { - address: Lithic::Address, - dob: String, - email: String, - first_name: String, - government_id: String, - last_name: String, - phone_number: String - } - - class ControlPerson < Lithic::Internal::Type::BaseModel - attr_accessor address: Lithic::Address - - attr_accessor dob: String - - attr_accessor email: String - - attr_accessor first_name: String - - attr_accessor government_id: String - - attr_accessor last_name: String - - attr_reader phone_number: String? - - def phone_number=: (String) -> String - - def initialize: ( - address: Lithic::Address, - dob: String, - email: String, - first_name: String, - government_id: String, - last_name: String, - ?phone_number: String - ) -> void - - def to_hash: -> { - address: Lithic::Address, - dob: String, - email: String, - first_name: String, - government_id: String, - last_name: String, - phone_number: String - } - end + type beneficial_owner_individual = + { + address: Lithic::Address, + dob: String, + email: String, + first_name: String, + government_id: String, + last_name: String, + phone_number: String + } + + class BeneficialOwnerIndividual < Lithic::Internal::Type::BaseModel + attr_accessor address: Lithic::Address + + attr_accessor dob: String + + attr_accessor email: String + + attr_accessor first_name: String + + attr_accessor government_id: String + + attr_accessor last_name: String + + attr_reader phone_number: String? + + def phone_number=: (String) -> String + + def initialize: ( + address: Lithic::Address, + dob: String, + email: String, + first_name: String, + government_id: String, + last_name: String, + ?phone_number: String + ) -> void + + def to_hash: -> { + address: Lithic::Address, + dob: String, + email: String, + first_name: String, + government_id: String, + last_name: String, + phone_number: String + } + end - type workflow = :KYC_EXEMPT + type control_person = + { + address: Lithic::Address, + dob: String, + email: String, + first_name: String, + government_id: String, + last_name: String, + phone_number: String + } - module Workflow - extend Lithic::Internal::Type::Enum + class ControlPerson < Lithic::Internal::Type::BaseModel + attr_accessor address: Lithic::Address - KYC_EXEMPT: :KYC_EXEMPT + attr_accessor dob: String - def self?.values: -> ::Array[Lithic::Models::AccountHolderCreateParams::workflow] - end + attr_accessor email: String - type individual = - { - address: Lithic::Address, - dob: String, - email: String, - first_name: String, - government_id: String, - last_name: String, - phone_number: String - } - - class Individual < Lithic::Internal::Type::BaseModel - attr_accessor address: Lithic::Address - - attr_accessor dob: String - - attr_accessor email: String - - attr_accessor first_name: String - - attr_accessor government_id: String - - attr_accessor last_name: String - - attr_accessor phone_number: String - - def initialize: ( - address: Lithic::Address, - dob: String, - email: String, - first_name: String, - government_id: String, - last_name: String, - phone_number: String - ) -> void - - def to_hash: -> { - address: Lithic::Address, - dob: String, - email: String, - first_name: String, - government_id: String, - last_name: String, - phone_number: String - } - end + attr_accessor first_name: String - type kyc_exemption_type = :AUTHORIZED_USER | :PREPAID_CARD_USER + attr_accessor government_id: String + + attr_accessor last_name: String + + attr_reader phone_number: String? + + def phone_number=: (String) -> String + + def initialize: ( + address: Lithic::Address, + dob: String, + email: String, + first_name: String, + government_id: String, + last_name: String, + ?phone_number: String + ) -> void + + def to_hash: -> { + address: Lithic::Address, + dob: String, + email: String, + first_name: String, + government_id: String, + last_name: String, + phone_number: String + } + end + + type workflow = :KYB_DELEGATED - module KYCExemptionType - extend Lithic::Internal::Type::Enum + module Workflow + extend Lithic::Internal::Type::Enum + + KYB_DELEGATED: :KYB_DELEGATED - AUTHORIZED_USER: :AUTHORIZED_USER - PREPAID_CARD_USER: :PREPAID_CARD_USER + def self?.values: -> ::Array[Lithic::Models::AccountHolderCreateParams::Body::KYBDelegated::workflow] + end + end - def self?.values: -> ::Array[Lithic::Models::AccountHolderCreateParams::kyc_exemption_type] + def self?.variants: -> ::Array[Lithic::Models::AccountHolderCreateParams::body] end end end diff --git a/sig/lithic/models/account_holder_list_documents_params.rbs b/sig/lithic/models/account_holder_list_documents_params.rbs index aba44817..9f164415 100644 --- a/sig/lithic/models/account_holder_list_documents_params.rbs +++ b/sig/lithic/models/account_holder_list_documents_params.rbs @@ -1,15 +1,24 @@ module Lithic module Models type account_holder_list_documents_params = - { } & Lithic::Internal::Type::request_parameters + { account_holder_token: String } + & Lithic::Internal::Type::request_parameters class AccountHolderListDocumentsParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - def initialize: (?request_options: Lithic::request_opts) -> void + attr_accessor account_holder_token: String - def to_hash: -> { request_options: Lithic::RequestOptions } + def initialize: ( + account_holder_token: String, + ?request_options: Lithic::request_opts + ) -> void + + def to_hash: -> { + account_holder_token: String, + request_options: Lithic::RequestOptions + } end end end diff --git a/sig/lithic/models/account_holder_retrieve_document_params.rbs b/sig/lithic/models/account_holder_retrieve_document_params.rbs index 012d9ec7..c43ad215 100644 --- a/sig/lithic/models/account_holder_retrieve_document_params.rbs +++ b/sig/lithic/models/account_holder_retrieve_document_params.rbs @@ -1,7 +1,7 @@ module Lithic module Models type account_holder_retrieve_document_params = - { account_holder_token: String } + { account_holder_token: String, document_token: String } & Lithic::Internal::Type::request_parameters class AccountHolderRetrieveDocumentParams < Lithic::Internal::Type::BaseModel @@ -10,13 +10,17 @@ module Lithic attr_accessor account_holder_token: String + attr_accessor document_token: String + def initialize: ( account_holder_token: String, + document_token: String, ?request_options: Lithic::request_opts ) -> void def to_hash: -> { account_holder_token: String, + document_token: String, request_options: Lithic::RequestOptions } end diff --git a/sig/lithic/models/account_holder_retrieve_params.rbs b/sig/lithic/models/account_holder_retrieve_params.rbs index e9886efd..01a10f5b 100644 --- a/sig/lithic/models/account_holder_retrieve_params.rbs +++ b/sig/lithic/models/account_holder_retrieve_params.rbs @@ -1,15 +1,24 @@ module Lithic module Models type account_holder_retrieve_params = - { } & Lithic::Internal::Type::request_parameters + { account_holder_token: String } + & Lithic::Internal::Type::request_parameters class AccountHolderRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - def initialize: (?request_options: Lithic::request_opts) -> void + attr_accessor account_holder_token: String - def to_hash: -> { request_options: Lithic::RequestOptions } + def initialize: ( + account_holder_token: String, + ?request_options: Lithic::request_opts + ) -> void + + def to_hash: -> { + account_holder_token: String, + request_options: Lithic::RequestOptions + } end end end diff --git a/sig/lithic/models/account_holder_update_params.rbs b/sig/lithic/models/account_holder_update_params.rbs index 0d44cd88..ecbcea50 100644 --- a/sig/lithic/models/account_holder_update_params.rbs +++ b/sig/lithic/models/account_holder_update_params.rbs @@ -2,21 +2,8 @@ module Lithic module Models type account_holder_update_params = { - beneficial_owner_individuals: ::Array[Lithic::AccountHolderUpdateParams::BeneficialOwnerIndividual], - business_entity: Lithic::AccountHolderUpdateParams::BusinessEntity, - control_person: Lithic::AccountHolderUpdateParams::ControlPerson, - external_id: String, - naics_code: String, - nature_of_business: String, - website_url: String, - individual: Lithic::AccountHolderUpdateParams::Individual, - address: Lithic::AddressUpdate, - business_account_token: String, - email: String, - first_name: String, - last_name: String, - legal_business_name: String, - phone_number: String + account_holder_token: String, + body: Lithic::Models::AccountHolderUpdateParams::body } & Lithic::Internal::Type::request_parameters @@ -24,367 +11,444 @@ module Lithic extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - attr_reader beneficial_owner_individuals: ::Array[Lithic::AccountHolderUpdateParams::BeneficialOwnerIndividual]? + attr_accessor account_holder_token: String - def beneficial_owner_individuals=: ( - ::Array[Lithic::AccountHolderUpdateParams::BeneficialOwnerIndividual] - ) -> ::Array[Lithic::AccountHolderUpdateParams::BeneficialOwnerIndividual] + attr_accessor body: Lithic::Models::AccountHolderUpdateParams::body - attr_reader business_entity: Lithic::AccountHolderUpdateParams::BusinessEntity? + def initialize: ( + account_holder_token: String, + body: Lithic::Models::AccountHolderUpdateParams::body, + ?request_options: Lithic::request_opts + ) -> void - def business_entity=: ( - Lithic::AccountHolderUpdateParams::BusinessEntity - ) -> Lithic::AccountHolderUpdateParams::BusinessEntity + def to_hash: -> { + account_holder_token: String, + body: Lithic::Models::AccountHolderUpdateParams::body, + request_options: Lithic::RequestOptions + } - attr_reader control_person: Lithic::AccountHolderUpdateParams::ControlPerson? + type body = + Lithic::AccountHolderUpdateParams::Body::KYBPatchRequest + | Lithic::AccountHolderUpdateParams::Body::KYCPatchRequest + | Lithic::AccountHolderUpdateParams::Body::PatchRequest - def control_person=: ( - Lithic::AccountHolderUpdateParams::ControlPerson - ) -> Lithic::AccountHolderUpdateParams::ControlPerson + module Body + extend Lithic::Internal::Type::Union - attr_reader external_id: String? + type kyb_patch_request = + { + beneficial_owner_individuals: ::Array[Lithic::AccountHolderUpdateParams::Body::KYBPatchRequest::BeneficialOwnerIndividual], + business_entity: Lithic::AccountHolderUpdateParams::Body::KYBPatchRequest::BusinessEntity, + control_person: Lithic::AccountHolderUpdateParams::Body::KYBPatchRequest::ControlPerson, + external_id: String, + naics_code: String, + nature_of_business: String, + website_url: String + } - def external_id=: (String) -> String + class KYBPatchRequest < Lithic::Internal::Type::BaseModel + attr_reader beneficial_owner_individuals: ::Array[Lithic::AccountHolderUpdateParams::Body::KYBPatchRequest::BeneficialOwnerIndividual]? - attr_reader naics_code: String? + def beneficial_owner_individuals=: ( + ::Array[Lithic::AccountHolderUpdateParams::Body::KYBPatchRequest::BeneficialOwnerIndividual] + ) -> ::Array[Lithic::AccountHolderUpdateParams::Body::KYBPatchRequest::BeneficialOwnerIndividual] - def naics_code=: (String) -> String + attr_reader business_entity: Lithic::AccountHolderUpdateParams::Body::KYBPatchRequest::BusinessEntity? - attr_reader nature_of_business: String? + def business_entity=: ( + Lithic::AccountHolderUpdateParams::Body::KYBPatchRequest::BusinessEntity + ) -> Lithic::AccountHolderUpdateParams::Body::KYBPatchRequest::BusinessEntity - def nature_of_business=: (String) -> String + attr_reader control_person: Lithic::AccountHolderUpdateParams::Body::KYBPatchRequest::ControlPerson? - attr_reader website_url: String? + def control_person=: ( + Lithic::AccountHolderUpdateParams::Body::KYBPatchRequest::ControlPerson + ) -> Lithic::AccountHolderUpdateParams::Body::KYBPatchRequest::ControlPerson - def website_url=: (String) -> String + attr_reader external_id: String? - attr_reader individual: Lithic::AccountHolderUpdateParams::Individual? + def external_id=: (String) -> String - def individual=: ( - Lithic::AccountHolderUpdateParams::Individual - ) -> Lithic::AccountHolderUpdateParams::Individual + attr_reader naics_code: String? - attr_reader address: Lithic::AddressUpdate? + def naics_code=: (String) -> String - def address=: (Lithic::AddressUpdate) -> Lithic::AddressUpdate + attr_reader nature_of_business: String? - attr_reader business_account_token: String? + def nature_of_business=: (String) -> String - def business_account_token=: (String) -> String + attr_reader website_url: String? - attr_reader email: String? + def website_url=: (String) -> String - def email=: (String) -> String + def initialize: ( + ?beneficial_owner_individuals: ::Array[Lithic::AccountHolderUpdateParams::Body::KYBPatchRequest::BeneficialOwnerIndividual], + ?business_entity: Lithic::AccountHolderUpdateParams::Body::KYBPatchRequest::BusinessEntity, + ?control_person: Lithic::AccountHolderUpdateParams::Body::KYBPatchRequest::ControlPerson, + ?external_id: String, + ?naics_code: String, + ?nature_of_business: String, + ?website_url: String + ) -> void - attr_reader first_name: String? + def to_hash: -> { + beneficial_owner_individuals: ::Array[Lithic::AccountHolderUpdateParams::Body::KYBPatchRequest::BeneficialOwnerIndividual], + business_entity: Lithic::AccountHolderUpdateParams::Body::KYBPatchRequest::BusinessEntity, + control_person: Lithic::AccountHolderUpdateParams::Body::KYBPatchRequest::ControlPerson, + external_id: String, + naics_code: String, + nature_of_business: String, + website_url: String + } - def first_name=: (String) -> String + type beneficial_owner_individual = + { + entity_token: String, + address: Lithic::AddressUpdate, + dob: String, + email: String, + first_name: String, + government_id: String, + last_name: String, + phone_number: String + } - attr_reader last_name: String? + class BeneficialOwnerIndividual < Lithic::Internal::Type::BaseModel + attr_accessor entity_token: String - def last_name=: (String) -> String + attr_reader address: Lithic::AddressUpdate? - attr_reader legal_business_name: String? + def address=: (Lithic::AddressUpdate) -> Lithic::AddressUpdate - def legal_business_name=: (String) -> String + attr_reader dob: String? - attr_reader phone_number: String? + def dob=: (String) -> String - def phone_number=: (String) -> String + attr_reader email: String? - def initialize: ( - ?beneficial_owner_individuals: ::Array[Lithic::AccountHolderUpdateParams::BeneficialOwnerIndividual], - ?business_entity: Lithic::AccountHolderUpdateParams::BusinessEntity, - ?control_person: Lithic::AccountHolderUpdateParams::ControlPerson, - ?external_id: String, - ?naics_code: String, - ?nature_of_business: String, - ?website_url: String, - ?individual: Lithic::AccountHolderUpdateParams::Individual, - ?address: Lithic::AddressUpdate, - ?business_account_token: String, - ?email: String, - ?first_name: String, - ?last_name: String, - ?legal_business_name: String, - ?phone_number: String, - ?request_options: Lithic::request_opts - ) -> void + def email=: (String) -> String - def to_hash: -> { - beneficial_owner_individuals: ::Array[Lithic::AccountHolderUpdateParams::BeneficialOwnerIndividual], - business_entity: Lithic::AccountHolderUpdateParams::BusinessEntity, - control_person: Lithic::AccountHolderUpdateParams::ControlPerson, - external_id: String, - naics_code: String, - nature_of_business: String, - website_url: String, - individual: Lithic::AccountHolderUpdateParams::Individual, - address: Lithic::AddressUpdate, - business_account_token: String, - email: String, - first_name: String, - last_name: String, - legal_business_name: String, - phone_number: String, - request_options: Lithic::RequestOptions - } + attr_reader first_name: String? - type beneficial_owner_individual = - { - entity_token: String, - address: Lithic::AddressUpdate, - dob: String, - email: String, - first_name: String, - government_id: String, - last_name: String, - phone_number: String - } + def first_name=: (String) -> String - class BeneficialOwnerIndividual < Lithic::Internal::Type::BaseModel - attr_accessor entity_token: String + attr_reader last_name: String? - attr_reader address: Lithic::AddressUpdate? + def last_name=: (String) -> String - def address=: (Lithic::AddressUpdate) -> Lithic::AddressUpdate + attr_reader phone_number: String? - attr_reader dob: String? + def phone_number=: (String) -> String - def dob=: (String) -> String + attr_reader government_id: String? - attr_reader email: String? + def government_id=: (String) -> String - def email=: (String) -> String + def initialize: ( + entity_token: String, + ?address: Lithic::AddressUpdate, + ?dob: String, + ?email: String, + ?first_name: String, + ?government_id: String, + ?last_name: String, + ?phone_number: String + ) -> void - attr_reader first_name: String? + def to_hash: -> { + entity_token: String, + address: Lithic::AddressUpdate, + dob: String, + email: String, + first_name: String, + government_id: String, + last_name: String, + phone_number: String + } + end - def first_name=: (String) -> String + type business_entity = + { + entity_token: String, + address: Lithic::AddressUpdate, + dba_business_name: String, + government_id: String, + legal_business_name: String, + parent_company: String, + phone_numbers: ::Array[String] + } - attr_reader last_name: String? + class BusinessEntity < Lithic::Internal::Type::BaseModel + attr_accessor entity_token: String - def last_name=: (String) -> String + attr_reader address: Lithic::AddressUpdate? - attr_reader phone_number: String? + def address=: (Lithic::AddressUpdate) -> Lithic::AddressUpdate - def phone_number=: (String) -> String + attr_reader dba_business_name: String? - attr_reader government_id: String? + def dba_business_name=: (String) -> String - def government_id=: (String) -> String + attr_reader government_id: String? - def initialize: ( - entity_token: String, - ?address: Lithic::AddressUpdate, - ?dob: String, - ?email: String, - ?first_name: String, - ?government_id: String, - ?last_name: String, - ?phone_number: String - ) -> void + def government_id=: (String) -> String - def to_hash: -> { - entity_token: String, - address: Lithic::AddressUpdate, - dob: String, - email: String, - first_name: String, - government_id: String, - last_name: String, - phone_number: String - } - end + attr_reader legal_business_name: String? - type business_entity = - { - entity_token: String, - address: Lithic::AddressUpdate, - dba_business_name: String, - government_id: String, - legal_business_name: String, - parent_company: String, - phone_numbers: ::Array[String] - } + def legal_business_name=: (String) -> String - class BusinessEntity < Lithic::Internal::Type::BaseModel - attr_accessor entity_token: String + attr_reader parent_company: String? - attr_reader address: Lithic::AddressUpdate? + def parent_company=: (String) -> String - def address=: (Lithic::AddressUpdate) -> Lithic::AddressUpdate + attr_reader phone_numbers: ::Array[String]? - attr_reader dba_business_name: String? + def phone_numbers=: (::Array[String]) -> ::Array[String] - def dba_business_name=: (String) -> String + def initialize: ( + entity_token: String, + ?address: Lithic::AddressUpdate, + ?dba_business_name: String, + ?government_id: String, + ?legal_business_name: String, + ?parent_company: String, + ?phone_numbers: ::Array[String] + ) -> void - attr_reader government_id: String? + def to_hash: -> { + entity_token: String, + address: Lithic::AddressUpdate, + dba_business_name: String, + government_id: String, + legal_business_name: String, + parent_company: String, + phone_numbers: ::Array[String] + } + end - def government_id=: (String) -> String + type control_person = + { + entity_token: String, + address: Lithic::AddressUpdate, + dob: String, + email: String, + first_name: String, + government_id: String, + last_name: String, + phone_number: String + } - attr_reader legal_business_name: String? + class ControlPerson < Lithic::Internal::Type::BaseModel + attr_accessor entity_token: String - def legal_business_name=: (String) -> String + attr_reader address: Lithic::AddressUpdate? - attr_reader parent_company: String? + def address=: (Lithic::AddressUpdate) -> Lithic::AddressUpdate - def parent_company=: (String) -> String + attr_reader dob: String? - attr_reader phone_numbers: ::Array[String]? + def dob=: (String) -> String - def phone_numbers=: (::Array[String]) -> ::Array[String] + attr_reader email: String? - def initialize: ( - entity_token: String, - ?address: Lithic::AddressUpdate, - ?dba_business_name: String, - ?government_id: String, - ?legal_business_name: String, - ?parent_company: String, - ?phone_numbers: ::Array[String] - ) -> void + def email=: (String) -> String - def to_hash: -> { - entity_token: String, - address: Lithic::AddressUpdate, - dba_business_name: String, - government_id: String, - legal_business_name: String, - parent_company: String, - phone_numbers: ::Array[String] - } - end + attr_reader first_name: String? - type control_person = - { - entity_token: String, - address: Lithic::AddressUpdate, - dob: String, - email: String, - first_name: String, - government_id: String, - last_name: String, - phone_number: String - } + def first_name=: (String) -> String - class ControlPerson < Lithic::Internal::Type::BaseModel - attr_accessor entity_token: String + attr_reader last_name: String? - attr_reader address: Lithic::AddressUpdate? + def last_name=: (String) -> String - def address=: (Lithic::AddressUpdate) -> Lithic::AddressUpdate + attr_reader phone_number: String? - attr_reader dob: String? + def phone_number=: (String) -> String - def dob=: (String) -> String + attr_reader government_id: String? - attr_reader email: String? + def government_id=: (String) -> String - def email=: (String) -> String + def initialize: ( + entity_token: String, + ?address: Lithic::AddressUpdate, + ?dob: String, + ?email: String, + ?first_name: String, + ?government_id: String, + ?last_name: String, + ?phone_number: String + ) -> void - attr_reader first_name: String? + def to_hash: -> { + entity_token: String, + address: Lithic::AddressUpdate, + dob: String, + email: String, + first_name: String, + government_id: String, + last_name: String, + phone_number: String + } + end + end - def first_name=: (String) -> String + type kyc_patch_request = + { + external_id: String, + individual: Lithic::AccountHolderUpdateParams::Body::KYCPatchRequest::Individual + } - attr_reader last_name: String? + class KYCPatchRequest < Lithic::Internal::Type::BaseModel + attr_reader external_id: String? + + def external_id=: (String) -> String + + attr_reader individual: Lithic::AccountHolderUpdateParams::Body::KYCPatchRequest::Individual? + + def individual=: ( + Lithic::AccountHolderUpdateParams::Body::KYCPatchRequest::Individual + ) -> Lithic::AccountHolderUpdateParams::Body::KYCPatchRequest::Individual - def last_name=: (String) -> String + def initialize: ( + ?external_id: String, + ?individual: Lithic::AccountHolderUpdateParams::Body::KYCPatchRequest::Individual + ) -> void - attr_reader phone_number: String? + def to_hash: -> { + external_id: String, + individual: Lithic::AccountHolderUpdateParams::Body::KYCPatchRequest::Individual + } - def phone_number=: (String) -> String + type individual = + { + entity_token: String, + address: Lithic::AddressUpdate, + dob: String, + email: String, + first_name: String, + government_id: String, + last_name: String, + phone_number: String + } - attr_reader government_id: String? + class Individual < Lithic::Internal::Type::BaseModel + attr_accessor entity_token: String - def government_id=: (String) -> String + attr_reader address: Lithic::AddressUpdate? - def initialize: ( - entity_token: String, - ?address: Lithic::AddressUpdate, - ?dob: String, - ?email: String, - ?first_name: String, - ?government_id: String, - ?last_name: String, - ?phone_number: String - ) -> void + def address=: (Lithic::AddressUpdate) -> Lithic::AddressUpdate - def to_hash: -> { - entity_token: String, - address: Lithic::AddressUpdate, - dob: String, - email: String, - first_name: String, - government_id: String, - last_name: String, - phone_number: String - } - end + attr_reader dob: String? + + def dob=: (String) -> String + + attr_reader email: String? + + def email=: (String) -> String + + attr_reader first_name: String? + + def first_name=: (String) -> String + + attr_reader last_name: String? + + def last_name=: (String) -> String + + attr_reader phone_number: String? + + def phone_number=: (String) -> String + + attr_reader government_id: String? + + def government_id=: (String) -> String + + def initialize: ( + entity_token: String, + ?address: Lithic::AddressUpdate, + ?dob: String, + ?email: String, + ?first_name: String, + ?government_id: String, + ?last_name: String, + ?phone_number: String + ) -> void + + def to_hash: -> { + entity_token: String, + address: Lithic::AddressUpdate, + dob: String, + email: String, + first_name: String, + government_id: String, + last_name: String, + phone_number: String + } + end + end - type individual = - { - entity_token: String, - address: Lithic::AddressUpdate, - dob: String, - email: String, - first_name: String, - government_id: String, - last_name: String, - phone_number: String - } + type patch_request = + { + address: Lithic::AddressUpdate, + business_account_token: String, + email: String, + first_name: String, + last_name: String, + legal_business_name: String, + phone_number: String + } - class Individual < Lithic::Internal::Type::BaseModel - attr_accessor entity_token: String + class PatchRequest < Lithic::Internal::Type::BaseModel + attr_reader address: Lithic::AddressUpdate? - attr_reader address: Lithic::AddressUpdate? + def address=: (Lithic::AddressUpdate) -> Lithic::AddressUpdate - def address=: (Lithic::AddressUpdate) -> Lithic::AddressUpdate + attr_reader business_account_token: String? - attr_reader dob: String? + def business_account_token=: (String) -> String - def dob=: (String) -> String + attr_reader email: String? - attr_reader email: String? + def email=: (String) -> String - def email=: (String) -> String + attr_reader first_name: String? - attr_reader first_name: String? + def first_name=: (String) -> String - def first_name=: (String) -> String + attr_reader last_name: String? - attr_reader last_name: String? + def last_name=: (String) -> String - def last_name=: (String) -> String + attr_reader legal_business_name: String? - attr_reader phone_number: String? + def legal_business_name=: (String) -> String - def phone_number=: (String) -> String + attr_reader phone_number: String? - attr_reader government_id: String? + def phone_number=: (String) -> String - def government_id=: (String) -> String + def initialize: ( + ?address: Lithic::AddressUpdate, + ?business_account_token: String, + ?email: String, + ?first_name: String, + ?last_name: String, + ?legal_business_name: String, + ?phone_number: String + ) -> void - def initialize: ( - entity_token: String, - ?address: Lithic::AddressUpdate, - ?dob: String, - ?email: String, - ?first_name: String, - ?government_id: String, - ?last_name: String, - ?phone_number: String - ) -> void + def to_hash: -> { + address: Lithic::AddressUpdate, + business_account_token: String, + email: String, + first_name: String, + last_name: String, + legal_business_name: String, + phone_number: String + } + end - def to_hash: -> { - entity_token: String, - address: Lithic::AddressUpdate, - dob: String, - email: String, - first_name: String, - government_id: String, - last_name: String, - phone_number: String - } + def self?.variants: -> ::Array[Lithic::Models::AccountHolderUpdateParams::body] end end end diff --git a/sig/lithic/models/account_holder_upload_document_params.rbs b/sig/lithic/models/account_holder_upload_document_params.rbs index 70831cd1..a371b7cc 100644 --- a/sig/lithic/models/account_holder_upload_document_params.rbs +++ b/sig/lithic/models/account_holder_upload_document_params.rbs @@ -2,6 +2,7 @@ module Lithic module Models type account_holder_upload_document_params = { + account_holder_token: String, document_type: Lithic::Models::AccountHolderUploadDocumentParams::document_type, entity_token: String } @@ -11,17 +12,21 @@ module Lithic extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + attr_accessor account_holder_token: String + attr_accessor document_type: Lithic::Models::AccountHolderUploadDocumentParams::document_type attr_accessor entity_token: String def initialize: ( + account_holder_token: String, document_type: Lithic::Models::AccountHolderUploadDocumentParams::document_type, entity_token: String, ?request_options: Lithic::request_opts ) -> void def to_hash: -> { + account_holder_token: String, document_type: Lithic::Models::AccountHolderUploadDocumentParams::document_type, entity_token: String, request_options: Lithic::RequestOptions diff --git a/sig/lithic/models/account_holders/entity_create_params.rbs b/sig/lithic/models/account_holders/entity_create_params.rbs index b957ffcf..c689b40d 100644 --- a/sig/lithic/models/account_holders/entity_create_params.rbs +++ b/sig/lithic/models/account_holders/entity_create_params.rbs @@ -3,6 +3,7 @@ module Lithic module AccountHolders type entity_create_params = { + account_holder_token: String, address: Lithic::AccountHolders::EntityCreateParams::Address, dob: String, email: String, @@ -18,6 +19,8 @@ module Lithic extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + attr_accessor account_holder_token: String + attr_accessor address: Lithic::AccountHolders::EntityCreateParams::Address attr_accessor dob: String @@ -35,6 +38,7 @@ module Lithic attr_accessor type: Lithic::Models::AccountHolders::EntityCreateParams::type_ def initialize: ( + account_holder_token: String, address: Lithic::AccountHolders::EntityCreateParams::Address, dob: String, email: String, @@ -47,6 +51,7 @@ module Lithic ) -> void def to_hash: -> { + account_holder_token: String, address: Lithic::AccountHolders::EntityCreateParams::Address, dob: String, email: String, diff --git a/sig/lithic/models/account_holders/entity_delete_params.rbs b/sig/lithic/models/account_holders/entity_delete_params.rbs index f2c2beda..1433b667 100644 --- a/sig/lithic/models/account_holders/entity_delete_params.rbs +++ b/sig/lithic/models/account_holders/entity_delete_params.rbs @@ -2,7 +2,7 @@ module Lithic module Models module AccountHolders type entity_delete_params = - { account_holder_token: String } + { account_holder_token: String, entity_token: String } & Lithic::Internal::Type::request_parameters class EntityDeleteParams < Lithic::Internal::Type::BaseModel @@ -11,13 +11,17 @@ module Lithic attr_accessor account_holder_token: String + attr_accessor entity_token: String + def initialize: ( account_holder_token: String, + entity_token: String, ?request_options: Lithic::request_opts ) -> void def to_hash: -> { account_holder_token: String, + entity_token: String, request_options: Lithic::RequestOptions } end diff --git a/sig/lithic/models/account_retrieve_params.rbs b/sig/lithic/models/account_retrieve_params.rbs index b84c4ccd..255ece02 100644 --- a/sig/lithic/models/account_retrieve_params.rbs +++ b/sig/lithic/models/account_retrieve_params.rbs @@ -1,15 +1,23 @@ module Lithic module Models type account_retrieve_params = - { } & Lithic::Internal::Type::request_parameters + { account_token: String } & Lithic::Internal::Type::request_parameters class AccountRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - def initialize: (?request_options: Lithic::request_opts) -> void + attr_accessor account_token: String - def to_hash: -> { request_options: Lithic::RequestOptions } + def initialize: ( + account_token: String, + ?request_options: Lithic::request_opts + ) -> void + + def to_hash: -> { + account_token: String, + request_options: Lithic::RequestOptions + } end end end diff --git a/sig/lithic/models/account_retrieve_spend_limits_params.rbs b/sig/lithic/models/account_retrieve_spend_limits_params.rbs index 6390e6f4..b8054863 100644 --- a/sig/lithic/models/account_retrieve_spend_limits_params.rbs +++ b/sig/lithic/models/account_retrieve_spend_limits_params.rbs @@ -1,15 +1,23 @@ module Lithic module Models type account_retrieve_spend_limits_params = - { } & Lithic::Internal::Type::request_parameters + { account_token: String } & Lithic::Internal::Type::request_parameters class AccountRetrieveSpendLimitsParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - def initialize: (?request_options: Lithic::request_opts) -> void + attr_accessor account_token: String - def to_hash: -> { request_options: Lithic::RequestOptions } + def initialize: ( + account_token: String, + ?request_options: Lithic::request_opts + ) -> void + + def to_hash: -> { + account_token: String, + request_options: Lithic::RequestOptions + } end end end diff --git a/sig/lithic/models/account_update_params.rbs b/sig/lithic/models/account_update_params.rbs index f0a053a1..53d0311f 100644 --- a/sig/lithic/models/account_update_params.rbs +++ b/sig/lithic/models/account_update_params.rbs @@ -2,6 +2,7 @@ module Lithic module Models type account_update_params = { + account_token: String, comment: String, daily_spend_limit: Integer, lifetime_spend_limit: Integer, @@ -16,6 +17,8 @@ module Lithic extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + attr_accessor account_token: String + attr_reader comment: String? def comment=: (String) -> String @@ -51,6 +54,7 @@ module Lithic ) -> Lithic::AccountUpdateParams::VerificationAddress def initialize: ( + account_token: String, ?comment: String, ?daily_spend_limit: Integer, ?lifetime_spend_limit: Integer, @@ -62,6 +66,7 @@ module Lithic ) -> void def to_hash: -> { + account_token: String, comment: String, daily_spend_limit: Integer, lifetime_spend_limit: Integer, diff --git a/sig/lithic/models/auth_rules/v2/backtest_create_params.rbs b/sig/lithic/models/auth_rules/v2/backtest_create_params.rbs index e56cb51e..e641d5b1 100644 --- a/sig/lithic/models/auth_rules/v2/backtest_create_params.rbs +++ b/sig/lithic/models/auth_rules/v2/backtest_create_params.rbs @@ -3,13 +3,15 @@ module Lithic module AuthRules module V2 type backtest_create_params = - { end_: Time, start: Time } + { auth_rule_token: String, end_: Time, start: Time } & Lithic::Internal::Type::request_parameters class BacktestCreateParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + attr_accessor auth_rule_token: String + attr_reader end_: Time? def end_=: (Time) -> Time @@ -19,12 +21,14 @@ module Lithic def start=: (Time) -> Time def initialize: ( + auth_rule_token: String, ?end_: Time, ?start: Time, ?request_options: Lithic::request_opts ) -> void def to_hash: -> { + auth_rule_token: String, end_: Time, start: Time, request_options: Lithic::RequestOptions diff --git a/sig/lithic/models/auth_rules/v2/backtest_retrieve_params.rbs b/sig/lithic/models/auth_rules/v2/backtest_retrieve_params.rbs index aa788ee3..d6f417fe 100644 --- a/sig/lithic/models/auth_rules/v2/backtest_retrieve_params.rbs +++ b/sig/lithic/models/auth_rules/v2/backtest_retrieve_params.rbs @@ -3,7 +3,7 @@ module Lithic module AuthRules module V2 type backtest_retrieve_params = - { auth_rule_token: String } + { auth_rule_token: String, auth_rule_backtest_token: String } & Lithic::Internal::Type::request_parameters class BacktestRetrieveParams < Lithic::Internal::Type::BaseModel @@ -12,13 +12,17 @@ module Lithic attr_accessor auth_rule_token: String + attr_accessor auth_rule_backtest_token: String + def initialize: ( auth_rule_token: String, + auth_rule_backtest_token: String, ?request_options: Lithic::request_opts ) -> void def to_hash: -> { auth_rule_token: String, + auth_rule_backtest_token: String, request_options: Lithic::RequestOptions } end diff --git a/sig/lithic/models/auth_rules/v2_create_params.rbs b/sig/lithic/models/auth_rules/v2_create_params.rbs index 65d7fc46..fa436f3b 100644 --- a/sig/lithic/models/auth_rules/v2_create_params.rbs +++ b/sig/lithic/models/auth_rules/v2_create_params.rbs @@ -2,107 +2,269 @@ module Lithic module Models module AuthRules type v2_create_params = - { - parameters: Lithic::Models::AuthRules::V2CreateParams::parameters, - type: Lithic::Models::AuthRules::V2CreateParams::type_, - account_tokens: ::Array[String], - business_account_tokens: ::Array[String], - event_stream: Lithic::Models::AuthRules::event_stream, - name: String?, - card_tokens: ::Array[String], - program_level: bool, - excluded_card_tokens: ::Array[String] - } + { body: Lithic::Models::AuthRules::V2CreateParams::body } & Lithic::Internal::Type::request_parameters class V2CreateParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - attr_accessor parameters: Lithic::Models::AuthRules::V2CreateParams::parameters + attr_accessor body: Lithic::Models::AuthRules::V2CreateParams::body - attr_accessor type: Lithic::Models::AuthRules::V2CreateParams::type_ + def initialize: ( + body: Lithic::Models::AuthRules::V2CreateParams::body, + ?request_options: Lithic::request_opts + ) -> void - attr_reader account_tokens: ::Array[String]? + def to_hash: -> { + body: Lithic::Models::AuthRules::V2CreateParams::body, + request_options: Lithic::RequestOptions + } - def account_tokens=: (::Array[String]) -> ::Array[String] + type body = + Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule + | Lithic::AuthRules::V2CreateParams::Body::CardLevelRule + | Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule - attr_reader business_account_tokens: ::Array[String]? + module Body + extend Lithic::Internal::Type::Union - def business_account_tokens=: (::Array[String]) -> ::Array[String] + type account_level_rule = + { + parameters: Lithic::Models::AuthRules::V2CreateParams::Body::AccountLevelRule::parameters, + type: Lithic::Models::AuthRules::V2CreateParams::Body::AccountLevelRule::type_, + account_tokens: ::Array[String], + business_account_tokens: ::Array[String], + event_stream: Lithic::Models::AuthRules::event_stream, + name: String? + } - attr_reader event_stream: Lithic::Models::AuthRules::event_stream? + class AccountLevelRule < Lithic::Internal::Type::BaseModel + attr_accessor parameters: Lithic::Models::AuthRules::V2CreateParams::Body::AccountLevelRule::parameters - def event_stream=: ( - Lithic::Models::AuthRules::event_stream - ) -> Lithic::Models::AuthRules::event_stream + attr_accessor type: Lithic::Models::AuthRules::V2CreateParams::Body::AccountLevelRule::type_ - attr_accessor name: String? + attr_reader account_tokens: ::Array[String]? - attr_accessor card_tokens: ::Array[String] + def account_tokens=: (::Array[String]) -> ::Array[String] - attr_accessor program_level: bool + attr_reader business_account_tokens: ::Array[String]? - attr_reader excluded_card_tokens: ::Array[String]? + def business_account_tokens=: (::Array[String]) -> ::Array[String] - def excluded_card_tokens=: (::Array[String]) -> ::Array[String] + attr_reader event_stream: Lithic::Models::AuthRules::event_stream? - def initialize: ( - parameters: Lithic::Models::AuthRules::V2CreateParams::parameters, - type: Lithic::Models::AuthRules::V2CreateParams::type_, - card_tokens: ::Array[String], - program_level: bool, - ?account_tokens: ::Array[String], - ?business_account_tokens: ::Array[String], - ?event_stream: Lithic::Models::AuthRules::event_stream, - ?name: String?, - ?excluded_card_tokens: ::Array[String], - ?request_options: Lithic::request_opts - ) -> void + def event_stream=: ( + Lithic::Models::AuthRules::event_stream + ) -> Lithic::Models::AuthRules::event_stream - def to_hash: -> { - parameters: Lithic::Models::AuthRules::V2CreateParams::parameters, - type: Lithic::Models::AuthRules::V2CreateParams::type_, - account_tokens: ::Array[String], - business_account_tokens: ::Array[String], - event_stream: Lithic::Models::AuthRules::event_stream, - name: String?, - card_tokens: ::Array[String], - program_level: bool, - excluded_card_tokens: ::Array[String], - request_options: Lithic::RequestOptions - } + attr_accessor name: String? - type parameters = - Lithic::AuthRules::ConditionalBlockParameters - | Lithic::AuthRules::VelocityLimitParams - | Lithic::AuthRules::MerchantLockParameters - | Lithic::AuthRules::Conditional3DSActionParameters - | Lithic::AuthRules::ConditionalAuthorizationActionParameters - | Lithic::AuthRules::ConditionalACHActionParameters - | Lithic::AuthRules::ConditionalTokenizationActionParameters + def initialize: ( + parameters: Lithic::Models::AuthRules::V2CreateParams::Body::AccountLevelRule::parameters, + type: Lithic::Models::AuthRules::V2CreateParams::Body::AccountLevelRule::type_, + ?account_tokens: ::Array[String], + ?business_account_tokens: ::Array[String], + ?event_stream: Lithic::Models::AuthRules::event_stream, + ?name: String? + ) -> void - module Parameters - extend Lithic::Internal::Type::Union + def to_hash: -> { + parameters: Lithic::Models::AuthRules::V2CreateParams::Body::AccountLevelRule::parameters, + type: Lithic::Models::AuthRules::V2CreateParams::Body::AccountLevelRule::type_, + account_tokens: ::Array[String], + business_account_tokens: ::Array[String], + event_stream: Lithic::Models::AuthRules::event_stream, + name: String? + } - def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::parameters] - end + type parameters = + Lithic::AuthRules::ConditionalBlockParameters + | Lithic::AuthRules::VelocityLimitParams + | Lithic::AuthRules::MerchantLockParameters + | Lithic::AuthRules::Conditional3DSActionParameters + | Lithic::AuthRules::ConditionalAuthorizationActionParameters + | Lithic::AuthRules::ConditionalACHActionParameters + | Lithic::AuthRules::ConditionalTokenizationActionParameters + + module Parameters + extend Lithic::Internal::Type::Union + + def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::Body::AccountLevelRule::parameters] + end + + type type_ = + :CONDITIONAL_BLOCK + | :VELOCITY_LIMIT + | :MERCHANT_LOCK + | :CONDITIONAL_ACTION + + module Type + extend Lithic::Internal::Type::Enum + + CONDITIONAL_BLOCK: :CONDITIONAL_BLOCK + VELOCITY_LIMIT: :VELOCITY_LIMIT + MERCHANT_LOCK: :MERCHANT_LOCK + CONDITIONAL_ACTION: :CONDITIONAL_ACTION + + def self?.values: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::Body::AccountLevelRule::type_] + end + end + + type card_level_rule = + { + card_tokens: ::Array[String], + parameters: Lithic::Models::AuthRules::V2CreateParams::Body::CardLevelRule::parameters, + type: Lithic::Models::AuthRules::V2CreateParams::Body::CardLevelRule::type_, + event_stream: Lithic::Models::AuthRules::event_stream, + name: String? + } + + class CardLevelRule < Lithic::Internal::Type::BaseModel + attr_accessor card_tokens: ::Array[String] + + attr_accessor parameters: Lithic::Models::AuthRules::V2CreateParams::Body::CardLevelRule::parameters + + attr_accessor type: Lithic::Models::AuthRules::V2CreateParams::Body::CardLevelRule::type_ + + attr_reader event_stream: Lithic::Models::AuthRules::event_stream? + + def event_stream=: ( + Lithic::Models::AuthRules::event_stream + ) -> Lithic::Models::AuthRules::event_stream + + attr_accessor name: String? + + def initialize: ( + card_tokens: ::Array[String], + parameters: Lithic::Models::AuthRules::V2CreateParams::Body::CardLevelRule::parameters, + type: Lithic::Models::AuthRules::V2CreateParams::Body::CardLevelRule::type_, + ?event_stream: Lithic::Models::AuthRules::event_stream, + ?name: String? + ) -> void + + def to_hash: -> { + card_tokens: ::Array[String], + parameters: Lithic::Models::AuthRules::V2CreateParams::Body::CardLevelRule::parameters, + type: Lithic::Models::AuthRules::V2CreateParams::Body::CardLevelRule::type_, + event_stream: Lithic::Models::AuthRules::event_stream, + name: String? + } + + type parameters = + Lithic::AuthRules::ConditionalBlockParameters + | Lithic::AuthRules::VelocityLimitParams + | Lithic::AuthRules::MerchantLockParameters + | Lithic::AuthRules::Conditional3DSActionParameters + | Lithic::AuthRules::ConditionalAuthorizationActionParameters + | Lithic::AuthRules::ConditionalACHActionParameters + | Lithic::AuthRules::ConditionalTokenizationActionParameters + + module Parameters + extend Lithic::Internal::Type::Union + + def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::Body::CardLevelRule::parameters] + end + + type type_ = + :CONDITIONAL_BLOCK + | :VELOCITY_LIMIT + | :MERCHANT_LOCK + | :CONDITIONAL_ACTION + + module Type + extend Lithic::Internal::Type::Enum + + CONDITIONAL_BLOCK: :CONDITIONAL_BLOCK + VELOCITY_LIMIT: :VELOCITY_LIMIT + MERCHANT_LOCK: :MERCHANT_LOCK + CONDITIONAL_ACTION: :CONDITIONAL_ACTION + + def self?.values: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::Body::CardLevelRule::type_] + end + end + + type program_level_rule = + { + parameters: Lithic::Models::AuthRules::V2CreateParams::Body::ProgramLevelRule::parameters, + program_level: bool, + type: Lithic::Models::AuthRules::V2CreateParams::Body::ProgramLevelRule::type_, + event_stream: Lithic::Models::AuthRules::event_stream, + excluded_card_tokens: ::Array[String], + name: String? + } + + class ProgramLevelRule < Lithic::Internal::Type::BaseModel + attr_accessor parameters: Lithic::Models::AuthRules::V2CreateParams::Body::ProgramLevelRule::parameters + + attr_accessor program_level: bool + + attr_accessor type: Lithic::Models::AuthRules::V2CreateParams::Body::ProgramLevelRule::type_ + + attr_reader event_stream: Lithic::Models::AuthRules::event_stream? + + def event_stream=: ( + Lithic::Models::AuthRules::event_stream + ) -> Lithic::Models::AuthRules::event_stream + + attr_reader excluded_card_tokens: ::Array[String]? + + def excluded_card_tokens=: (::Array[String]) -> ::Array[String] + + attr_accessor name: String? + + def initialize: ( + parameters: Lithic::Models::AuthRules::V2CreateParams::Body::ProgramLevelRule::parameters, + program_level: bool, + type: Lithic::Models::AuthRules::V2CreateParams::Body::ProgramLevelRule::type_, + ?event_stream: Lithic::Models::AuthRules::event_stream, + ?excluded_card_tokens: ::Array[String], + ?name: String? + ) -> void + + def to_hash: -> { + parameters: Lithic::Models::AuthRules::V2CreateParams::Body::ProgramLevelRule::parameters, + program_level: bool, + type: Lithic::Models::AuthRules::V2CreateParams::Body::ProgramLevelRule::type_, + event_stream: Lithic::Models::AuthRules::event_stream, + excluded_card_tokens: ::Array[String], + name: String? + } + + type parameters = + Lithic::AuthRules::ConditionalBlockParameters + | Lithic::AuthRules::VelocityLimitParams + | Lithic::AuthRules::MerchantLockParameters + | Lithic::AuthRules::Conditional3DSActionParameters + | Lithic::AuthRules::ConditionalAuthorizationActionParameters + | Lithic::AuthRules::ConditionalACHActionParameters + | Lithic::AuthRules::ConditionalTokenizationActionParameters + + module Parameters + extend Lithic::Internal::Type::Union + + def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::Body::ProgramLevelRule::parameters] + end + + type type_ = + :CONDITIONAL_BLOCK + | :VELOCITY_LIMIT + | :MERCHANT_LOCK + | :CONDITIONAL_ACTION - type type_ = - :CONDITIONAL_BLOCK - | :VELOCITY_LIMIT - | :MERCHANT_LOCK - | :CONDITIONAL_ACTION + module Type + extend Lithic::Internal::Type::Enum - module Type - extend Lithic::Internal::Type::Enum + CONDITIONAL_BLOCK: :CONDITIONAL_BLOCK + VELOCITY_LIMIT: :VELOCITY_LIMIT + MERCHANT_LOCK: :MERCHANT_LOCK + CONDITIONAL_ACTION: :CONDITIONAL_ACTION - CONDITIONAL_BLOCK: :CONDITIONAL_BLOCK - VELOCITY_LIMIT: :VELOCITY_LIMIT - MERCHANT_LOCK: :MERCHANT_LOCK - CONDITIONAL_ACTION: :CONDITIONAL_ACTION + def self?.values: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::Body::ProgramLevelRule::type_] + end + end - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::type_] + def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::body] end end end diff --git a/sig/lithic/models/auth_rules/v2_delete_params.rbs b/sig/lithic/models/auth_rules/v2_delete_params.rbs index 038f1aae..4cb925c1 100644 --- a/sig/lithic/models/auth_rules/v2_delete_params.rbs +++ b/sig/lithic/models/auth_rules/v2_delete_params.rbs @@ -1,15 +1,24 @@ module Lithic module Models module AuthRules - type v2_delete_params = { } & Lithic::Internal::Type::request_parameters + type v2_delete_params = + { auth_rule_token: String } & Lithic::Internal::Type::request_parameters class V2DeleteParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - def initialize: (?request_options: Lithic::request_opts) -> void + attr_accessor auth_rule_token: String - def to_hash: -> { request_options: Lithic::RequestOptions } + def initialize: ( + auth_rule_token: String, + ?request_options: Lithic::request_opts + ) -> void + + def to_hash: -> { + auth_rule_token: String, + request_options: Lithic::RequestOptions + } end end end diff --git a/sig/lithic/models/auth_rules/v2_draft_params.rbs b/sig/lithic/models/auth_rules/v2_draft_params.rbs index e458a2b3..e212095b 100644 --- a/sig/lithic/models/auth_rules/v2_draft_params.rbs +++ b/sig/lithic/models/auth_rules/v2_draft_params.rbs @@ -2,21 +2,28 @@ module Lithic module Models module AuthRules type v2_draft_params = - { parameters: Lithic::Models::AuthRules::V2DraftParams::parameters? } + { + auth_rule_token: String, + parameters: Lithic::Models::AuthRules::V2DraftParams::parameters? + } & Lithic::Internal::Type::request_parameters class V2DraftParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + attr_accessor auth_rule_token: String + attr_accessor parameters: Lithic::Models::AuthRules::V2DraftParams::parameters? def initialize: ( + auth_rule_token: String, ?parameters: Lithic::Models::AuthRules::V2DraftParams::parameters?, ?request_options: Lithic::request_opts ) -> void def to_hash: -> { + auth_rule_token: String, parameters: Lithic::Models::AuthRules::V2DraftParams::parameters?, request_options: Lithic::RequestOptions } diff --git a/sig/lithic/models/auth_rules/v2_promote_params.rbs b/sig/lithic/models/auth_rules/v2_promote_params.rbs index 0bda7f72..aa01079f 100644 --- a/sig/lithic/models/auth_rules/v2_promote_params.rbs +++ b/sig/lithic/models/auth_rules/v2_promote_params.rbs @@ -1,15 +1,24 @@ module Lithic module Models module AuthRules - type v2_promote_params = { } & Lithic::Internal::Type::request_parameters + type v2_promote_params = + { auth_rule_token: String } & Lithic::Internal::Type::request_parameters class V2PromoteParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - def initialize: (?request_options: Lithic::request_opts) -> void + attr_accessor auth_rule_token: String - def to_hash: -> { request_options: Lithic::RequestOptions } + def initialize: ( + auth_rule_token: String, + ?request_options: Lithic::request_opts + ) -> void + + def to_hash: -> { + auth_rule_token: String, + request_options: Lithic::RequestOptions + } end end end diff --git a/sig/lithic/models/auth_rules/v2_retrieve_features_params.rbs b/sig/lithic/models/auth_rules/v2_retrieve_features_params.rbs index 459e530a..0a90aa1d 100644 --- a/sig/lithic/models/auth_rules/v2_retrieve_features_params.rbs +++ b/sig/lithic/models/auth_rules/v2_retrieve_features_params.rbs @@ -2,13 +2,15 @@ module Lithic module Models module AuthRules type v2_retrieve_features_params = - { account_token: String, card_token: String } + { auth_rule_token: String, account_token: String, card_token: String } & Lithic::Internal::Type::request_parameters class V2RetrieveFeaturesParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + attr_accessor auth_rule_token: String + attr_reader account_token: String? def account_token=: (String) -> String @@ -18,12 +20,14 @@ module Lithic def card_token=: (String) -> String def initialize: ( + auth_rule_token: String, ?account_token: String, ?card_token: String, ?request_options: Lithic::request_opts ) -> void def to_hash: -> { + auth_rule_token: String, account_token: String, card_token: String, request_options: Lithic::RequestOptions diff --git a/sig/lithic/models/auth_rules/v2_retrieve_params.rbs b/sig/lithic/models/auth_rules/v2_retrieve_params.rbs index 4ff1ff7a..ab04e4ed 100644 --- a/sig/lithic/models/auth_rules/v2_retrieve_params.rbs +++ b/sig/lithic/models/auth_rules/v2_retrieve_params.rbs @@ -2,15 +2,23 @@ module Lithic module Models module AuthRules type v2_retrieve_params = - { } & Lithic::Internal::Type::request_parameters + { auth_rule_token: String } & Lithic::Internal::Type::request_parameters class V2RetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - def initialize: (?request_options: Lithic::request_opts) -> void + attr_accessor auth_rule_token: String - def to_hash: -> { request_options: Lithic::RequestOptions } + def initialize: ( + auth_rule_token: String, + ?request_options: Lithic::request_opts + ) -> void + + def to_hash: -> { + auth_rule_token: String, + request_options: Lithic::RequestOptions + } end end end diff --git a/sig/lithic/models/auth_rules/v2_retrieve_report_params.rbs b/sig/lithic/models/auth_rules/v2_retrieve_report_params.rbs index ed966c16..7a8f3738 100644 --- a/sig/lithic/models/auth_rules/v2_retrieve_report_params.rbs +++ b/sig/lithic/models/auth_rules/v2_retrieve_report_params.rbs @@ -2,24 +2,28 @@ module Lithic module Models module AuthRules type v2_retrieve_report_params = - { begin_: Date, end_: Date } + { auth_rule_token: String, begin_: Date, end_: Date } & Lithic::Internal::Type::request_parameters class V2RetrieveReportParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + attr_accessor auth_rule_token: String + attr_accessor begin_: Date attr_accessor end_: Date def initialize: ( + auth_rule_token: String, begin_: Date, end_: Date, ?request_options: Lithic::request_opts ) -> void def to_hash: -> { + auth_rule_token: String, begin_: Date, end_: Date, request_options: Lithic::RequestOptions diff --git a/sig/lithic/models/auth_rules/v2_update_params.rbs b/sig/lithic/models/auth_rules/v2_update_params.rbs index 77bf19aa..ff05de20 100644 --- a/sig/lithic/models/auth_rules/v2_update_params.rbs +++ b/sig/lithic/models/auth_rules/v2_update_params.rbs @@ -3,13 +3,8 @@ module Lithic module AuthRules type v2_update_params = { - account_tokens: ::Array[String], - business_account_tokens: ::Array[String], - name: String?, - state: Lithic::Models::AuthRules::V2UpdateParams::state, - card_tokens: ::Array[String], - excluded_card_tokens: ::Array[String], - program_level: bool + auth_rule_token: String, + body: Lithic::Models::AuthRules::V2UpdateParams::body } & Lithic::Internal::Type::request_parameters @@ -17,64 +12,174 @@ module Lithic extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - attr_reader account_tokens: ::Array[String]? + attr_accessor auth_rule_token: String - def account_tokens=: (::Array[String]) -> ::Array[String] + attr_accessor body: Lithic::Models::AuthRules::V2UpdateParams::body - attr_reader business_account_tokens: ::Array[String]? + def initialize: ( + auth_rule_token: String, + body: Lithic::Models::AuthRules::V2UpdateParams::body, + ?request_options: Lithic::request_opts + ) -> void - def business_account_tokens=: (::Array[String]) -> ::Array[String] + def to_hash: -> { + auth_rule_token: String, + body: Lithic::Models::AuthRules::V2UpdateParams::body, + request_options: Lithic::RequestOptions + } - attr_accessor name: String? + type body = + Lithic::AuthRules::V2UpdateParams::Body::AccountLevelRule + | Lithic::AuthRules::V2UpdateParams::Body::CardLevelRule + | Lithic::AuthRules::V2UpdateParams::Body::ProgramLevelRule - attr_reader state: Lithic::Models::AuthRules::V2UpdateParams::state? + module Body + extend Lithic::Internal::Type::Union - def state=: ( - Lithic::Models::AuthRules::V2UpdateParams::state - ) -> Lithic::Models::AuthRules::V2UpdateParams::state + type account_level_rule = + { + account_tokens: ::Array[String], + business_account_tokens: ::Array[String], + name: String?, + state: Lithic::Models::AuthRules::V2UpdateParams::Body::AccountLevelRule::state + } - attr_reader card_tokens: ::Array[String]? + class AccountLevelRule < Lithic::Internal::Type::BaseModel + attr_reader account_tokens: ::Array[String]? - def card_tokens=: (::Array[String]) -> ::Array[String] + def account_tokens=: (::Array[String]) -> ::Array[String] - attr_reader excluded_card_tokens: ::Array[String]? + attr_reader business_account_tokens: ::Array[String]? - def excluded_card_tokens=: (::Array[String]) -> ::Array[String] + def business_account_tokens=: (::Array[String]) -> ::Array[String] - attr_reader program_level: bool? + attr_accessor name: String? - def program_level=: (bool) -> bool + attr_reader state: Lithic::Models::AuthRules::V2UpdateParams::Body::AccountLevelRule::state? - def initialize: ( - ?account_tokens: ::Array[String], - ?business_account_tokens: ::Array[String], - ?name: String?, - ?state: Lithic::Models::AuthRules::V2UpdateParams::state, - ?card_tokens: ::Array[String], - ?excluded_card_tokens: ::Array[String], - ?program_level: bool, - ?request_options: Lithic::request_opts - ) -> void + def state=: ( + Lithic::Models::AuthRules::V2UpdateParams::Body::AccountLevelRule::state + ) -> Lithic::Models::AuthRules::V2UpdateParams::Body::AccountLevelRule::state - def to_hash: -> { - account_tokens: ::Array[String], - business_account_tokens: ::Array[String], - name: String?, - state: Lithic::Models::AuthRules::V2UpdateParams::state, - card_tokens: ::Array[String], - excluded_card_tokens: ::Array[String], - program_level: bool, - request_options: Lithic::RequestOptions - } + def initialize: ( + ?account_tokens: ::Array[String], + ?business_account_tokens: ::Array[String], + ?name: String?, + ?state: Lithic::Models::AuthRules::V2UpdateParams::Body::AccountLevelRule::state + ) -> void + + def to_hash: -> { + account_tokens: ::Array[String], + business_account_tokens: ::Array[String], + name: String?, + state: Lithic::Models::AuthRules::V2UpdateParams::Body::AccountLevelRule::state + } + + type state = :INACTIVE + + module State + extend Lithic::Internal::Type::Enum + + INACTIVE: :INACTIVE + + def self?.values: -> ::Array[Lithic::Models::AuthRules::V2UpdateParams::Body::AccountLevelRule::state] + end + end + + type card_level_rule = + { + card_tokens: ::Array[String], + name: String?, + state: Lithic::Models::AuthRules::V2UpdateParams::Body::CardLevelRule::state + } + + class CardLevelRule < Lithic::Internal::Type::BaseModel + attr_reader card_tokens: ::Array[String]? + + def card_tokens=: (::Array[String]) -> ::Array[String] + + attr_accessor name: String? + + attr_reader state: Lithic::Models::AuthRules::V2UpdateParams::Body::CardLevelRule::state? + + def state=: ( + Lithic::Models::AuthRules::V2UpdateParams::Body::CardLevelRule::state + ) -> Lithic::Models::AuthRules::V2UpdateParams::Body::CardLevelRule::state + + def initialize: ( + ?card_tokens: ::Array[String], + ?name: String?, + ?state: Lithic::Models::AuthRules::V2UpdateParams::Body::CardLevelRule::state + ) -> void + + def to_hash: -> { + card_tokens: ::Array[String], + name: String?, + state: Lithic::Models::AuthRules::V2UpdateParams::Body::CardLevelRule::state + } + + type state = :INACTIVE + + module State + extend Lithic::Internal::Type::Enum + + INACTIVE: :INACTIVE + + def self?.values: -> ::Array[Lithic::Models::AuthRules::V2UpdateParams::Body::CardLevelRule::state] + end + end + + type program_level_rule = + { + excluded_card_tokens: ::Array[String], + name: String?, + program_level: bool, + state: Lithic::Models::AuthRules::V2UpdateParams::Body::ProgramLevelRule::state + } + + class ProgramLevelRule < Lithic::Internal::Type::BaseModel + attr_reader excluded_card_tokens: ::Array[String]? + + def excluded_card_tokens=: (::Array[String]) -> ::Array[String] + + attr_accessor name: String? + + attr_reader program_level: bool? + + def program_level=: (bool) -> bool + + attr_reader state: Lithic::Models::AuthRules::V2UpdateParams::Body::ProgramLevelRule::state? + + def state=: ( + Lithic::Models::AuthRules::V2UpdateParams::Body::ProgramLevelRule::state + ) -> Lithic::Models::AuthRules::V2UpdateParams::Body::ProgramLevelRule::state + + def initialize: ( + ?excluded_card_tokens: ::Array[String], + ?name: String?, + ?program_level: bool, + ?state: Lithic::Models::AuthRules::V2UpdateParams::Body::ProgramLevelRule::state + ) -> void + + def to_hash: -> { + excluded_card_tokens: ::Array[String], + name: String?, + program_level: bool, + state: Lithic::Models::AuthRules::V2UpdateParams::Body::ProgramLevelRule::state + } + + type state = :INACTIVE - type state = :INACTIVE + module State + extend Lithic::Internal::Type::Enum - module State - extend Lithic::Internal::Type::Enum + INACTIVE: :INACTIVE - INACTIVE: :INACTIVE + def self?.values: -> ::Array[Lithic::Models::AuthRules::V2UpdateParams::Body::ProgramLevelRule::state] + end + end - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2UpdateParams::state] + def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2UpdateParams::body] end end end diff --git a/sig/lithic/models/book_transfer_retrieve_params.rbs b/sig/lithic/models/book_transfer_retrieve_params.rbs index 698a1a42..941bb938 100644 --- a/sig/lithic/models/book_transfer_retrieve_params.rbs +++ b/sig/lithic/models/book_transfer_retrieve_params.rbs @@ -1,15 +1,24 @@ module Lithic module Models type book_transfer_retrieve_params = - { } & Lithic::Internal::Type::request_parameters + { book_transfer_token: String } + & Lithic::Internal::Type::request_parameters class BookTransferRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - def initialize: (?request_options: Lithic::request_opts) -> void + attr_accessor book_transfer_token: String - def to_hash: -> { request_options: Lithic::RequestOptions } + def initialize: ( + book_transfer_token: String, + ?request_options: Lithic::request_opts + ) -> void + + def to_hash: -> { + book_transfer_token: String, + request_options: Lithic::RequestOptions + } end end end diff --git a/sig/lithic/models/book_transfer_retry_params.rbs b/sig/lithic/models/book_transfer_retry_params.rbs index 39b32cd1..4491e1ab 100644 --- a/sig/lithic/models/book_transfer_retry_params.rbs +++ b/sig/lithic/models/book_transfer_retry_params.rbs @@ -1,20 +1,25 @@ module Lithic module Models type book_transfer_retry_params = - { retry_token: String } & Lithic::Internal::Type::request_parameters + { book_transfer_token: String, retry_token: String } + & Lithic::Internal::Type::request_parameters class BookTransferRetryParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + attr_accessor book_transfer_token: String + attr_accessor retry_token: String def initialize: ( + book_transfer_token: String, retry_token: String, ?request_options: Lithic::request_opts ) -> void def to_hash: -> { + book_transfer_token: String, retry_token: String, request_options: Lithic::RequestOptions } diff --git a/sig/lithic/models/book_transfer_reverse_params.rbs b/sig/lithic/models/book_transfer_reverse_params.rbs index 68da394e..11294ab7 100644 --- a/sig/lithic/models/book_transfer_reverse_params.rbs +++ b/sig/lithic/models/book_transfer_reverse_params.rbs @@ -1,22 +1,30 @@ module Lithic module Models type book_transfer_reverse_params = - { memo: String } & Lithic::Internal::Type::request_parameters + { book_transfer_token: String, memo: String } + & Lithic::Internal::Type::request_parameters class BookTransferReverseParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + attr_accessor book_transfer_token: String + attr_reader memo: String? def memo=: (String) -> String def initialize: ( + book_transfer_token: String, ?memo: String, ?request_options: Lithic::request_opts ) -> void - def to_hash: -> { memo: String, request_options: Lithic::RequestOptions } + def to_hash: -> { + book_transfer_token: String, + memo: String, + request_options: Lithic::RequestOptions + } end end end diff --git a/sig/lithic/models/card_bulk_order_retrieve_params.rbs b/sig/lithic/models/card_bulk_order_retrieve_params.rbs index b087d870..9ea27acd 100644 --- a/sig/lithic/models/card_bulk_order_retrieve_params.rbs +++ b/sig/lithic/models/card_bulk_order_retrieve_params.rbs @@ -1,15 +1,23 @@ module Lithic module Models type card_bulk_order_retrieve_params = - { } & Lithic::Internal::Type::request_parameters + { bulk_order_token: String } & Lithic::Internal::Type::request_parameters class CardBulkOrderRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - def initialize: (?request_options: Lithic::request_opts) -> void + attr_accessor bulk_order_token: String - def to_hash: -> { request_options: Lithic::RequestOptions } + def initialize: ( + bulk_order_token: String, + ?request_options: Lithic::request_opts + ) -> void + + def to_hash: -> { + bulk_order_token: String, + request_options: Lithic::RequestOptions + } end end end diff --git a/sig/lithic/models/card_bulk_order_update_params.rbs b/sig/lithic/models/card_bulk_order_update_params.rbs index 92f9d6e4..d3f63555 100644 --- a/sig/lithic/models/card_bulk_order_update_params.rbs +++ b/sig/lithic/models/card_bulk_order_update_params.rbs @@ -1,21 +1,28 @@ module Lithic module Models type card_bulk_order_update_params = - { status: Lithic::Models::CardBulkOrderUpdateParams::status } + { + bulk_order_token: String, + status: Lithic::Models::CardBulkOrderUpdateParams::status + } & Lithic::Internal::Type::request_parameters class CardBulkOrderUpdateParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + attr_accessor bulk_order_token: String + attr_accessor status: Lithic::Models::CardBulkOrderUpdateParams::status def initialize: ( + bulk_order_token: String, status: Lithic::Models::CardBulkOrderUpdateParams::status, ?request_options: Lithic::request_opts ) -> void def to_hash: -> { + bulk_order_token: String, status: Lithic::Models::CardBulkOrderUpdateParams::status, request_options: Lithic::RequestOptions } diff --git a/sig/lithic/models/card_convert_physical_params.rbs b/sig/lithic/models/card_convert_physical_params.rbs index 4a90698b..d8156440 100644 --- a/sig/lithic/models/card_convert_physical_params.rbs +++ b/sig/lithic/models/card_convert_physical_params.rbs @@ -2,6 +2,7 @@ module Lithic module Models type card_convert_physical_params = { + card_token: String, shipping_address: Lithic::ShippingAddress, carrier: Lithic::Carrier, product_id: String, @@ -13,6 +14,8 @@ module Lithic extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + attr_accessor card_token: String + attr_accessor shipping_address: Lithic::ShippingAddress attr_reader carrier: Lithic::Carrier? @@ -30,6 +33,7 @@ module Lithic ) -> Lithic::Models::CardConvertPhysicalParams::shipping_method def initialize: ( + card_token: String, shipping_address: Lithic::ShippingAddress, ?carrier: Lithic::Carrier, ?product_id: String, @@ -38,6 +42,7 @@ module Lithic ) -> void def to_hash: -> { + card_token: String, shipping_address: Lithic::ShippingAddress, carrier: Lithic::Carrier, product_id: String, diff --git a/sig/lithic/models/card_program_retrieve_params.rbs b/sig/lithic/models/card_program_retrieve_params.rbs index cd89dadd..ac093556 100644 --- a/sig/lithic/models/card_program_retrieve_params.rbs +++ b/sig/lithic/models/card_program_retrieve_params.rbs @@ -1,15 +1,24 @@ module Lithic module Models type card_program_retrieve_params = - { } & Lithic::Internal::Type::request_parameters + { card_program_token: String } + & Lithic::Internal::Type::request_parameters class CardProgramRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - def initialize: (?request_options: Lithic::request_opts) -> void + attr_accessor card_program_token: String - def to_hash: -> { request_options: Lithic::RequestOptions } + def initialize: ( + card_program_token: String, + ?request_options: Lithic::request_opts + ) -> void + + def to_hash: -> { + card_program_token: String, + request_options: Lithic::RequestOptions + } end end end diff --git a/sig/lithic/models/card_provision_params.rbs b/sig/lithic/models/card_provision_params.rbs index e03128f8..b0bb5e8f 100644 --- a/sig/lithic/models/card_provision_params.rbs +++ b/sig/lithic/models/card_provision_params.rbs @@ -2,6 +2,7 @@ module Lithic module Models type card_provision_params = { + card_token: String, certificate: String, client_device_id: String, client_wallet_account_id: String, @@ -15,6 +16,8 @@ module Lithic extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + attr_accessor card_token: String + attr_reader certificate: String? def certificate=: (String) -> String @@ -42,6 +45,7 @@ module Lithic def nonce_signature=: (String) -> String def initialize: ( + card_token: String, ?certificate: String, ?client_device_id: String, ?client_wallet_account_id: String, @@ -52,6 +56,7 @@ module Lithic ) -> void def to_hash: -> { + card_token: String, certificate: String, client_device_id: String, client_wallet_account_id: String, diff --git a/sig/lithic/models/card_reissue_params.rbs b/sig/lithic/models/card_reissue_params.rbs index 38fce05e..8b669e80 100644 --- a/sig/lithic/models/card_reissue_params.rbs +++ b/sig/lithic/models/card_reissue_params.rbs @@ -2,6 +2,7 @@ module Lithic module Models type card_reissue_params = { + card_token: String, carrier: Lithic::Carrier, product_id: String, shipping_address: Lithic::ShippingAddress, @@ -13,6 +14,8 @@ module Lithic extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + attr_accessor card_token: String + attr_reader carrier: Lithic::Carrier? def carrier=: (Lithic::Carrier) -> Lithic::Carrier @@ -34,6 +37,7 @@ module Lithic ) -> Lithic::Models::CardReissueParams::shipping_method def initialize: ( + card_token: String, ?carrier: Lithic::Carrier, ?product_id: String, ?shipping_address: Lithic::ShippingAddress, @@ -42,6 +46,7 @@ module Lithic ) -> void def to_hash: -> { + card_token: String, carrier: Lithic::Carrier, product_id: String, shipping_address: Lithic::ShippingAddress, diff --git a/sig/lithic/models/card_renew_params.rbs b/sig/lithic/models/card_renew_params.rbs index 7b7bd20d..2265b4a7 100644 --- a/sig/lithic/models/card_renew_params.rbs +++ b/sig/lithic/models/card_renew_params.rbs @@ -2,6 +2,7 @@ module Lithic module Models type card_renew_params = { + card_token: String, shipping_address: Lithic::ShippingAddress, carrier: Lithic::Carrier, exp_month: String, @@ -15,6 +16,8 @@ module Lithic extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + attr_accessor card_token: String + attr_accessor shipping_address: Lithic::ShippingAddress attr_reader carrier: Lithic::Carrier? @@ -40,6 +43,7 @@ module Lithic ) -> Lithic::Models::CardRenewParams::shipping_method def initialize: ( + card_token: String, shipping_address: Lithic::ShippingAddress, ?carrier: Lithic::Carrier, ?exp_month: String, @@ -50,6 +54,7 @@ module Lithic ) -> void def to_hash: -> { + card_token: String, shipping_address: Lithic::ShippingAddress, carrier: Lithic::Carrier, exp_month: String, diff --git a/sig/lithic/models/card_retrieve_params.rbs b/sig/lithic/models/card_retrieve_params.rbs index 155f2743..742754a6 100644 --- a/sig/lithic/models/card_retrieve_params.rbs +++ b/sig/lithic/models/card_retrieve_params.rbs @@ -1,15 +1,23 @@ module Lithic module Models type card_retrieve_params = - { } & Lithic::Internal::Type::request_parameters + { card_token: String } & Lithic::Internal::Type::request_parameters class CardRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - def initialize: (?request_options: Lithic::request_opts) -> void + attr_accessor card_token: String - def to_hash: -> { request_options: Lithic::RequestOptions } + def initialize: ( + card_token: String, + ?request_options: Lithic::request_opts + ) -> void + + def to_hash: -> { + card_token: String, + request_options: Lithic::RequestOptions + } end end end diff --git a/sig/lithic/models/card_retrieve_spend_limits_params.rbs b/sig/lithic/models/card_retrieve_spend_limits_params.rbs index e81b1902..e9cc96a4 100644 --- a/sig/lithic/models/card_retrieve_spend_limits_params.rbs +++ b/sig/lithic/models/card_retrieve_spend_limits_params.rbs @@ -1,15 +1,23 @@ module Lithic module Models type card_retrieve_spend_limits_params = - { } & Lithic::Internal::Type::request_parameters + { card_token: String } & Lithic::Internal::Type::request_parameters class CardRetrieveSpendLimitsParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - def initialize: (?request_options: Lithic::request_opts) -> void + attr_accessor card_token: String - def to_hash: -> { request_options: Lithic::RequestOptions } + def initialize: ( + card_token: String, + ?request_options: Lithic::request_opts + ) -> void + + def to_hash: -> { + card_token: String, + request_options: Lithic::RequestOptions + } end end end diff --git a/sig/lithic/models/card_update_params.rbs b/sig/lithic/models/card_update_params.rbs index 9f03c32b..082ea872 100644 --- a/sig/lithic/models/card_update_params.rbs +++ b/sig/lithic/models/card_update_params.rbs @@ -2,6 +2,7 @@ module Lithic module Models type card_update_params = { + card_token: String, comment: String, digital_card_art_token: String, memo: String, @@ -19,6 +20,8 @@ module Lithic extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + attr_accessor card_token: String + attr_reader comment: String? def comment=: (String) -> String @@ -68,6 +71,7 @@ module Lithic ) -> Lithic::Models::CardUpdateParams::substatus def initialize: ( + card_token: String, ?comment: String, ?digital_card_art_token: String, ?memo: String, @@ -82,6 +86,7 @@ module Lithic ) -> void def to_hash: -> { + card_token: String, comment: String, digital_card_art_token: String, memo: String, diff --git a/sig/lithic/models/card_web_provision_params.rbs b/sig/lithic/models/card_web_provision_params.rbs index 406363c0..f76beedd 100644 --- a/sig/lithic/models/card_web_provision_params.rbs +++ b/sig/lithic/models/card_web_provision_params.rbs @@ -2,6 +2,7 @@ module Lithic module Models type card_web_provision_params = { + card_token: String, client_device_id: String, client_wallet_account_id: String, digital_wallet: Lithic::Models::CardWebProvisionParams::digital_wallet, @@ -13,6 +14,8 @@ module Lithic extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + attr_accessor card_token: String + attr_reader client_device_id: String? def client_device_id=: (String) -> String @@ -32,6 +35,7 @@ module Lithic def server_session_id=: (String) -> String def initialize: ( + card_token: String, ?client_device_id: String, ?client_wallet_account_id: String, ?digital_wallet: Lithic::Models::CardWebProvisionParams::digital_wallet, @@ -40,6 +44,7 @@ module Lithic ) -> void def to_hash: -> { + card_token: String, client_device_id: String, client_wallet_account_id: String, digital_wallet: Lithic::Models::CardWebProvisionParams::digital_wallet, diff --git a/sig/lithic/models/cards/balance_list_params.rbs b/sig/lithic/models/cards/balance_list_params.rbs index aa91aca8..84eb6a99 100644 --- a/sig/lithic/models/cards/balance_list_params.rbs +++ b/sig/lithic/models/cards/balance_list_params.rbs @@ -2,13 +2,19 @@ module Lithic module Models module Cards type balance_list_params = - { balance_date: Time, last_transaction_event_token: String } + { + card_token: String, + balance_date: Time, + last_transaction_event_token: String + } & Lithic::Internal::Type::request_parameters class BalanceListParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + attr_accessor card_token: String + attr_reader balance_date: Time? def balance_date=: (Time) -> Time @@ -18,12 +24,14 @@ module Lithic def last_transaction_event_token=: (String) -> String def initialize: ( + card_token: String, ?balance_date: Time, ?last_transaction_event_token: String, ?request_options: Lithic::request_opts ) -> void def to_hash: -> { + card_token: String, balance_date: Time, last_transaction_event_token: String, request_options: Lithic::RequestOptions diff --git a/sig/lithic/models/cards/financial_transaction_list_params.rbs b/sig/lithic/models/cards/financial_transaction_list_params.rbs index c1bce35f..057c32e4 100644 --- a/sig/lithic/models/cards/financial_transaction_list_params.rbs +++ b/sig/lithic/models/cards/financial_transaction_list_params.rbs @@ -3,6 +3,7 @@ module Lithic module Cards type financial_transaction_list_params = { + card_token: String, begin_: Time, category: Lithic::Models::Cards::FinancialTransactionListParams::category, end_: Time, @@ -17,6 +18,8 @@ module Lithic extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + attr_accessor card_token: String + attr_reader begin_: Time? def begin_=: (Time) -> Time @@ -52,6 +55,7 @@ module Lithic ) -> Lithic::Models::Cards::FinancialTransactionListParams::status def initialize: ( + card_token: String, ?begin_: Time, ?category: Lithic::Models::Cards::FinancialTransactionListParams::category, ?end_: Time, @@ -63,6 +67,7 @@ module Lithic ) -> void def to_hash: -> { + card_token: String, begin_: Time, category: Lithic::Models::Cards::FinancialTransactionListParams::category, end_: Time, diff --git a/sig/lithic/models/cards/financial_transaction_retrieve_params.rbs b/sig/lithic/models/cards/financial_transaction_retrieve_params.rbs index df6e7b86..4ec37044 100644 --- a/sig/lithic/models/cards/financial_transaction_retrieve_params.rbs +++ b/sig/lithic/models/cards/financial_transaction_retrieve_params.rbs @@ -2,7 +2,8 @@ module Lithic module Models module Cards type financial_transaction_retrieve_params = - { card_token: String } & Lithic::Internal::Type::request_parameters + { card_token: String, financial_transaction_token: String } + & Lithic::Internal::Type::request_parameters class FinancialTransactionRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter @@ -10,13 +11,17 @@ module Lithic attr_accessor card_token: String + attr_accessor financial_transaction_token: String + def initialize: ( card_token: String, + financial_transaction_token: String, ?request_options: Lithic::request_opts ) -> void def to_hash: -> { card_token: String, + financial_transaction_token: String, request_options: Lithic::RequestOptions } end diff --git a/sig/lithic/models/credit_products/extended_credit_retrieve_params.rbs b/sig/lithic/models/credit_products/extended_credit_retrieve_params.rbs index 1405e029..784119ff 100644 --- a/sig/lithic/models/credit_products/extended_credit_retrieve_params.rbs +++ b/sig/lithic/models/credit_products/extended_credit_retrieve_params.rbs @@ -2,15 +2,24 @@ module Lithic module Models module CreditProducts type extended_credit_retrieve_params = - { } & Lithic::Internal::Type::request_parameters + { credit_product_token: String } + & Lithic::Internal::Type::request_parameters class ExtendedCreditRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - def initialize: (?request_options: Lithic::request_opts) -> void + attr_accessor credit_product_token: String - def to_hash: -> { request_options: Lithic::RequestOptions } + def initialize: ( + credit_product_token: String, + ?request_options: Lithic::request_opts + ) -> void + + def to_hash: -> { + credit_product_token: String, + request_options: Lithic::RequestOptions + } end end end diff --git a/sig/lithic/models/credit_products/prime_rate_create_params.rbs b/sig/lithic/models/credit_products/prime_rate_create_params.rbs index 0908224c..8e9875ce 100644 --- a/sig/lithic/models/credit_products/prime_rate_create_params.rbs +++ b/sig/lithic/models/credit_products/prime_rate_create_params.rbs @@ -2,24 +2,28 @@ module Lithic module Models module CreditProducts type prime_rate_create_params = - { effective_date: Date, rate: String } + { credit_product_token: String, effective_date: Date, rate: String } & Lithic::Internal::Type::request_parameters class PrimeRateCreateParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + attr_accessor credit_product_token: String + attr_accessor effective_date: Date attr_accessor rate: String def initialize: ( + credit_product_token: String, effective_date: Date, rate: String, ?request_options: Lithic::request_opts ) -> void def to_hash: -> { + credit_product_token: String, effective_date: Date, rate: String, request_options: Lithic::RequestOptions diff --git a/sig/lithic/models/credit_products/prime_rate_retrieve_params.rbs b/sig/lithic/models/credit_products/prime_rate_retrieve_params.rbs index 24c1a3e7..e4dd4987 100644 --- a/sig/lithic/models/credit_products/prime_rate_retrieve_params.rbs +++ b/sig/lithic/models/credit_products/prime_rate_retrieve_params.rbs @@ -2,13 +2,19 @@ module Lithic module Models module CreditProducts type prime_rate_retrieve_params = - { ending_before: Date, starting_after: Date } + { + credit_product_token: String, + ending_before: Date, + starting_after: Date + } & Lithic::Internal::Type::request_parameters class PrimeRateRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + attr_accessor credit_product_token: String + attr_reader ending_before: Date? def ending_before=: (Date) -> Date @@ -18,12 +24,14 @@ module Lithic def starting_after=: (Date) -> Date def initialize: ( + credit_product_token: String, ?ending_before: Date, ?starting_after: Date, ?request_options: Lithic::request_opts ) -> void def to_hash: -> { + credit_product_token: String, ending_before: Date, starting_after: Date, request_options: Lithic::RequestOptions diff --git a/sig/lithic/models/digital_card_art_retrieve_params.rbs b/sig/lithic/models/digital_card_art_retrieve_params.rbs index bf63cad1..1e730bc0 100644 --- a/sig/lithic/models/digital_card_art_retrieve_params.rbs +++ b/sig/lithic/models/digital_card_art_retrieve_params.rbs @@ -1,15 +1,24 @@ module Lithic module Models type digital_card_art_retrieve_params = - { } & Lithic::Internal::Type::request_parameters + { digital_card_art_token: String } + & Lithic::Internal::Type::request_parameters class DigitalCardArtRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - def initialize: (?request_options: Lithic::request_opts) -> void + attr_accessor digital_card_art_token: String - def to_hash: -> { request_options: Lithic::RequestOptions } + def initialize: ( + digital_card_art_token: String, + ?request_options: Lithic::request_opts + ) -> void + + def to_hash: -> { + digital_card_art_token: String, + request_options: Lithic::RequestOptions + } end end end diff --git a/sig/lithic/models/dispute_delete_evidence_params.rbs b/sig/lithic/models/dispute_delete_evidence_params.rbs index 8cde75a1..6da62dde 100644 --- a/sig/lithic/models/dispute_delete_evidence_params.rbs +++ b/sig/lithic/models/dispute_delete_evidence_params.rbs @@ -1,7 +1,8 @@ module Lithic module Models type dispute_delete_evidence_params = - { dispute_token: String } & Lithic::Internal::Type::request_parameters + { dispute_token: String, evidence_token: String } + & Lithic::Internal::Type::request_parameters class DisputeDeleteEvidenceParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter @@ -9,13 +10,17 @@ module Lithic attr_accessor dispute_token: String + attr_accessor evidence_token: String + def initialize: ( dispute_token: String, + evidence_token: String, ?request_options: Lithic::request_opts ) -> void def to_hash: -> { dispute_token: String, + evidence_token: String, request_options: Lithic::RequestOptions } end diff --git a/sig/lithic/models/dispute_delete_params.rbs b/sig/lithic/models/dispute_delete_params.rbs index cb38e231..087a43e0 100644 --- a/sig/lithic/models/dispute_delete_params.rbs +++ b/sig/lithic/models/dispute_delete_params.rbs @@ -1,15 +1,23 @@ module Lithic module Models type dispute_delete_params = - { } & Lithic::Internal::Type::request_parameters + { dispute_token: String } & Lithic::Internal::Type::request_parameters class DisputeDeleteParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - def initialize: (?request_options: Lithic::request_opts) -> void + attr_accessor dispute_token: String - def to_hash: -> { request_options: Lithic::RequestOptions } + def initialize: ( + dispute_token: String, + ?request_options: Lithic::request_opts + ) -> void + + def to_hash: -> { + dispute_token: String, + request_options: Lithic::RequestOptions + } end end end diff --git a/sig/lithic/models/dispute_initiate_evidence_upload_params.rbs b/sig/lithic/models/dispute_initiate_evidence_upload_params.rbs index 630dd343..2503bdae 100644 --- a/sig/lithic/models/dispute_initiate_evidence_upload_params.rbs +++ b/sig/lithic/models/dispute_initiate_evidence_upload_params.rbs @@ -1,22 +1,27 @@ module Lithic module Models type dispute_initiate_evidence_upload_params = - { filename: String } & Lithic::Internal::Type::request_parameters + { dispute_token: String, filename: String } + & Lithic::Internal::Type::request_parameters class DisputeInitiateEvidenceUploadParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + attr_accessor dispute_token: String + attr_reader filename: String? def filename=: (String) -> String def initialize: ( + dispute_token: String, ?filename: String, ?request_options: Lithic::request_opts ) -> void def to_hash: -> { + dispute_token: String, filename: String, request_options: Lithic::RequestOptions } diff --git a/sig/lithic/models/dispute_list_evidences_params.rbs b/sig/lithic/models/dispute_list_evidences_params.rbs index b4ec3528..97835349 100644 --- a/sig/lithic/models/dispute_list_evidences_params.rbs +++ b/sig/lithic/models/dispute_list_evidences_params.rbs @@ -2,6 +2,7 @@ module Lithic module Models type dispute_list_evidences_params = { + dispute_token: String, begin_: Time, end_: Time, ending_before: String, @@ -14,6 +15,8 @@ module Lithic extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + attr_accessor dispute_token: String + attr_reader begin_: Time? def begin_=: (Time) -> Time @@ -35,6 +38,7 @@ module Lithic def starting_after=: (String) -> String def initialize: ( + dispute_token: String, ?begin_: Time, ?end_: Time, ?ending_before: String, @@ -44,6 +48,7 @@ module Lithic ) -> void def to_hash: -> { + dispute_token: String, begin_: Time, end_: Time, ending_before: String, diff --git a/sig/lithic/models/dispute_retrieve_evidence_params.rbs b/sig/lithic/models/dispute_retrieve_evidence_params.rbs index 914ca648..a0e28e50 100644 --- a/sig/lithic/models/dispute_retrieve_evidence_params.rbs +++ b/sig/lithic/models/dispute_retrieve_evidence_params.rbs @@ -1,7 +1,8 @@ module Lithic module Models type dispute_retrieve_evidence_params = - { dispute_token: String } & Lithic::Internal::Type::request_parameters + { dispute_token: String, evidence_token: String } + & Lithic::Internal::Type::request_parameters class DisputeRetrieveEvidenceParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter @@ -9,13 +10,17 @@ module Lithic attr_accessor dispute_token: String + attr_accessor evidence_token: String + def initialize: ( dispute_token: String, + evidence_token: String, ?request_options: Lithic::request_opts ) -> void def to_hash: -> { dispute_token: String, + evidence_token: String, request_options: Lithic::RequestOptions } end diff --git a/sig/lithic/models/dispute_retrieve_params.rbs b/sig/lithic/models/dispute_retrieve_params.rbs index 59761b31..3227e267 100644 --- a/sig/lithic/models/dispute_retrieve_params.rbs +++ b/sig/lithic/models/dispute_retrieve_params.rbs @@ -1,15 +1,23 @@ module Lithic module Models type dispute_retrieve_params = - { } & Lithic::Internal::Type::request_parameters + { dispute_token: String } & Lithic::Internal::Type::request_parameters class DisputeRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - def initialize: (?request_options: Lithic::request_opts) -> void + attr_accessor dispute_token: String - def to_hash: -> { request_options: Lithic::RequestOptions } + def initialize: ( + dispute_token: String, + ?request_options: Lithic::request_opts + ) -> void + + def to_hash: -> { + dispute_token: String, + request_options: Lithic::RequestOptions + } end end end diff --git a/sig/lithic/models/dispute_update_params.rbs b/sig/lithic/models/dispute_update_params.rbs index 14757dc6..97cd0c71 100644 --- a/sig/lithic/models/dispute_update_params.rbs +++ b/sig/lithic/models/dispute_update_params.rbs @@ -2,6 +2,7 @@ module Lithic module Models type dispute_update_params = { + dispute_token: String, amount: Integer, customer_filed_date: Time, customer_note: String, @@ -13,6 +14,8 @@ module Lithic extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + attr_accessor dispute_token: String + attr_reader amount: Integer? def amount=: (Integer) -> Integer @@ -32,6 +35,7 @@ module Lithic ) -> Lithic::Models::DisputeUpdateParams::reason def initialize: ( + dispute_token: String, ?amount: Integer, ?customer_filed_date: Time, ?customer_note: String, @@ -40,6 +44,7 @@ module Lithic ) -> void def to_hash: -> { + dispute_token: String, amount: Integer, customer_filed_date: Time, customer_note: String, diff --git a/sig/lithic/models/disputes_v2_retrieve_params.rbs b/sig/lithic/models/disputes_v2_retrieve_params.rbs index a7e8da8c..f1149f49 100644 --- a/sig/lithic/models/disputes_v2_retrieve_params.rbs +++ b/sig/lithic/models/disputes_v2_retrieve_params.rbs @@ -1,15 +1,23 @@ module Lithic module Models type disputes_v2_retrieve_params = - { } & Lithic::Internal::Type::request_parameters + { dispute_token: String } & Lithic::Internal::Type::request_parameters class DisputesV2RetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - def initialize: (?request_options: Lithic::request_opts) -> void + attr_accessor dispute_token: String - def to_hash: -> { request_options: Lithic::RequestOptions } + def initialize: ( + dispute_token: String, + ?request_options: Lithic::request_opts + ) -> void + + def to_hash: -> { + dispute_token: String, + request_options: Lithic::RequestOptions + } end end end diff --git a/sig/lithic/models/event_list_attempts_params.rbs b/sig/lithic/models/event_list_attempts_params.rbs index 6d6dfdd7..c1b3f623 100644 --- a/sig/lithic/models/event_list_attempts_params.rbs +++ b/sig/lithic/models/event_list_attempts_params.rbs @@ -2,6 +2,7 @@ module Lithic module Models type event_list_attempts_params = { + event_token: String, begin_: Time, end_: Time, ending_before: String, @@ -15,6 +16,8 @@ module Lithic extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + attr_accessor event_token: String + attr_reader begin_: Time? def begin_=: (Time) -> Time @@ -42,6 +45,7 @@ module Lithic ) -> Lithic::Models::EventListAttemptsParams::status def initialize: ( + event_token: String, ?begin_: Time, ?end_: Time, ?ending_before: String, @@ -52,6 +56,7 @@ module Lithic ) -> void def to_hash: -> { + event_token: String, begin_: Time, end_: Time, ending_before: String, diff --git a/sig/lithic/models/event_retrieve_params.rbs b/sig/lithic/models/event_retrieve_params.rbs index e5a45a09..0a543794 100644 --- a/sig/lithic/models/event_retrieve_params.rbs +++ b/sig/lithic/models/event_retrieve_params.rbs @@ -1,15 +1,23 @@ module Lithic module Models type event_retrieve_params = - { } & Lithic::Internal::Type::request_parameters + { event_token: String } & Lithic::Internal::Type::request_parameters class EventRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - def initialize: (?request_options: Lithic::request_opts) -> void + attr_accessor event_token: String - def to_hash: -> { request_options: Lithic::RequestOptions } + def initialize: ( + event_token: String, + ?request_options: Lithic::request_opts + ) -> void + + def to_hash: -> { + event_token: String, + request_options: Lithic::RequestOptions + } end end end diff --git a/sig/lithic/models/events/event_subscription_resend_params.rbs b/sig/lithic/models/events/event_subscription_resend_params.rbs index c6171d83..b479636c 100644 --- a/sig/lithic/models/events/event_subscription_resend_params.rbs +++ b/sig/lithic/models/events/event_subscription_resend_params.rbs @@ -2,7 +2,8 @@ module Lithic module Models module Events type event_subscription_resend_params = - { event_token: String } & Lithic::Internal::Type::request_parameters + { event_token: String, event_subscription_token: String } + & Lithic::Internal::Type::request_parameters class EventSubscriptionResendParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter @@ -10,13 +11,17 @@ module Lithic attr_accessor event_token: String + attr_accessor event_subscription_token: String + def initialize: ( event_token: String, + event_subscription_token: String, ?request_options: Lithic::request_opts ) -> void def to_hash: -> { event_token: String, + event_subscription_token: String, request_options: Lithic::RequestOptions } end diff --git a/sig/lithic/models/events/subscription_delete_params.rbs b/sig/lithic/models/events/subscription_delete_params.rbs index 5f36e0a1..63c424b6 100644 --- a/sig/lithic/models/events/subscription_delete_params.rbs +++ b/sig/lithic/models/events/subscription_delete_params.rbs @@ -2,15 +2,24 @@ module Lithic module Models module Events type subscription_delete_params = - { } & Lithic::Internal::Type::request_parameters + { event_subscription_token: String } + & Lithic::Internal::Type::request_parameters class SubscriptionDeleteParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - def initialize: (?request_options: Lithic::request_opts) -> void + attr_accessor event_subscription_token: String - def to_hash: -> { request_options: Lithic::RequestOptions } + def initialize: ( + event_subscription_token: String, + ?request_options: Lithic::request_opts + ) -> void + + def to_hash: -> { + event_subscription_token: String, + request_options: Lithic::RequestOptions + } end end end diff --git a/sig/lithic/models/events/subscription_list_attempts_params.rbs b/sig/lithic/models/events/subscription_list_attempts_params.rbs index 4654a34c..4f69ab08 100644 --- a/sig/lithic/models/events/subscription_list_attempts_params.rbs +++ b/sig/lithic/models/events/subscription_list_attempts_params.rbs @@ -3,6 +3,7 @@ module Lithic module Events type subscription_list_attempts_params = { + event_subscription_token: String, begin_: Time, end_: Time, ending_before: String, @@ -16,6 +17,8 @@ module Lithic extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + attr_accessor event_subscription_token: String + attr_reader begin_: Time? def begin_=: (Time) -> Time @@ -43,6 +46,7 @@ module Lithic ) -> Lithic::Models::Events::SubscriptionListAttemptsParams::status def initialize: ( + event_subscription_token: String, ?begin_: Time, ?end_: Time, ?ending_before: String, @@ -53,6 +57,7 @@ module Lithic ) -> void def to_hash: -> { + event_subscription_token: String, begin_: Time, end_: Time, ending_before: String, diff --git a/sig/lithic/models/events/subscription_recover_params.rbs b/sig/lithic/models/events/subscription_recover_params.rbs index b0c15e46..50d6ceac 100644 --- a/sig/lithic/models/events/subscription_recover_params.rbs +++ b/sig/lithic/models/events/subscription_recover_params.rbs @@ -2,13 +2,15 @@ module Lithic module Models module Events type subscription_recover_params = - { begin_: Time, end_: Time } + { event_subscription_token: String, begin_: Time, end_: Time } & Lithic::Internal::Type::request_parameters class SubscriptionRecoverParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + attr_accessor event_subscription_token: String + attr_reader begin_: Time? def begin_=: (Time) -> Time @@ -18,12 +20,14 @@ module Lithic def end_=: (Time) -> Time def initialize: ( + event_subscription_token: String, ?begin_: Time, ?end_: Time, ?request_options: Lithic::request_opts ) -> void def to_hash: -> { + event_subscription_token: String, begin_: Time, end_: Time, request_options: Lithic::RequestOptions diff --git a/sig/lithic/models/events/subscription_replay_missing_params.rbs b/sig/lithic/models/events/subscription_replay_missing_params.rbs index 6a398fbd..915f8cb4 100644 --- a/sig/lithic/models/events/subscription_replay_missing_params.rbs +++ b/sig/lithic/models/events/subscription_replay_missing_params.rbs @@ -2,13 +2,15 @@ module Lithic module Models module Events type subscription_replay_missing_params = - { begin_: Time, end_: Time } + { event_subscription_token: String, begin_: Time, end_: Time } & Lithic::Internal::Type::request_parameters class SubscriptionReplayMissingParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + attr_accessor event_subscription_token: String + attr_reader begin_: Time? def begin_=: (Time) -> Time @@ -18,12 +20,14 @@ module Lithic def end_=: (Time) -> Time def initialize: ( + event_subscription_token: String, ?begin_: Time, ?end_: Time, ?request_options: Lithic::request_opts ) -> void def to_hash: -> { + event_subscription_token: String, begin_: Time, end_: Time, request_options: Lithic::RequestOptions diff --git a/sig/lithic/models/events/subscription_retrieve_params.rbs b/sig/lithic/models/events/subscription_retrieve_params.rbs index cc5e7247..6dbf526e 100644 --- a/sig/lithic/models/events/subscription_retrieve_params.rbs +++ b/sig/lithic/models/events/subscription_retrieve_params.rbs @@ -2,15 +2,24 @@ module Lithic module Models module Events type subscription_retrieve_params = - { } & Lithic::Internal::Type::request_parameters + { event_subscription_token: String } + & Lithic::Internal::Type::request_parameters class SubscriptionRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - def initialize: (?request_options: Lithic::request_opts) -> void + attr_accessor event_subscription_token: String - def to_hash: -> { request_options: Lithic::RequestOptions } + def initialize: ( + event_subscription_token: String, + ?request_options: Lithic::request_opts + ) -> void + + def to_hash: -> { + event_subscription_token: String, + request_options: Lithic::RequestOptions + } end end end diff --git a/sig/lithic/models/events/subscription_retrieve_secret_params.rbs b/sig/lithic/models/events/subscription_retrieve_secret_params.rbs index b4b24721..b6d432a4 100644 --- a/sig/lithic/models/events/subscription_retrieve_secret_params.rbs +++ b/sig/lithic/models/events/subscription_retrieve_secret_params.rbs @@ -2,15 +2,24 @@ module Lithic module Models module Events type subscription_retrieve_secret_params = - { } & Lithic::Internal::Type::request_parameters + { event_subscription_token: String } + & Lithic::Internal::Type::request_parameters class SubscriptionRetrieveSecretParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - def initialize: (?request_options: Lithic::request_opts) -> void + attr_accessor event_subscription_token: String - def to_hash: -> { request_options: Lithic::RequestOptions } + def initialize: ( + event_subscription_token: String, + ?request_options: Lithic::request_opts + ) -> void + + def to_hash: -> { + event_subscription_token: String, + request_options: Lithic::RequestOptions + } end end end diff --git a/sig/lithic/models/events/subscription_rotate_secret_params.rbs b/sig/lithic/models/events/subscription_rotate_secret_params.rbs index 463052d3..b238bf5c 100644 --- a/sig/lithic/models/events/subscription_rotate_secret_params.rbs +++ b/sig/lithic/models/events/subscription_rotate_secret_params.rbs @@ -2,15 +2,24 @@ module Lithic module Models module Events type subscription_rotate_secret_params = - { } & Lithic::Internal::Type::request_parameters + { event_subscription_token: String } + & Lithic::Internal::Type::request_parameters class SubscriptionRotateSecretParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - def initialize: (?request_options: Lithic::request_opts) -> void + attr_accessor event_subscription_token: String - def to_hash: -> { request_options: Lithic::RequestOptions } + def initialize: ( + event_subscription_token: String, + ?request_options: Lithic::request_opts + ) -> void + + def to_hash: -> { + event_subscription_token: String, + request_options: Lithic::RequestOptions + } end end end diff --git a/sig/lithic/models/events/subscription_send_simulated_example_params.rbs b/sig/lithic/models/events/subscription_send_simulated_example_params.rbs index f4ce767e..4872fff6 100644 --- a/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +++ b/sig/lithic/models/events/subscription_send_simulated_example_params.rbs @@ -3,6 +3,7 @@ module Lithic module Events type subscription_send_simulated_example_params = { + event_subscription_token: String, event_type: Lithic::Models::Events::SubscriptionSendSimulatedExampleParams::event_type } & Lithic::Internal::Type::request_parameters @@ -11,6 +12,8 @@ module Lithic extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + attr_accessor event_subscription_token: String + attr_reader event_type: Lithic::Models::Events::SubscriptionSendSimulatedExampleParams::event_type? def event_type=: ( @@ -18,11 +21,13 @@ module Lithic ) -> Lithic::Models::Events::SubscriptionSendSimulatedExampleParams::event_type def initialize: ( + event_subscription_token: String, ?event_type: Lithic::Models::Events::SubscriptionSendSimulatedExampleParams::event_type, ?request_options: Lithic::request_opts ) -> void def to_hash: -> { + event_subscription_token: String, event_type: Lithic::Models::Events::SubscriptionSendSimulatedExampleParams::event_type, request_options: Lithic::RequestOptions } diff --git a/sig/lithic/models/events/subscription_update_params.rbs b/sig/lithic/models/events/subscription_update_params.rbs index f2821310..de089fa7 100644 --- a/sig/lithic/models/events/subscription_update_params.rbs +++ b/sig/lithic/models/events/subscription_update_params.rbs @@ -3,6 +3,7 @@ module Lithic module Events type subscription_update_params = { + event_subscription_token: String, url: String, description: String, disabled: bool, @@ -14,6 +15,8 @@ module Lithic extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + attr_accessor event_subscription_token: String + attr_accessor url: String attr_reader description: String? @@ -31,6 +34,7 @@ module Lithic ) -> ::Array[Lithic::Models::Events::SubscriptionUpdateParams::event_type] def initialize: ( + event_subscription_token: String, url: String, ?description: String, ?disabled: bool, @@ -39,6 +43,7 @@ module Lithic ) -> void def to_hash: -> { + event_subscription_token: String, url: String, description: String, disabled: bool, diff --git a/sig/lithic/models/external_bank_account_create_params.rbs b/sig/lithic/models/external_bank_account_create_params.rbs index d5b22e30..e2a71c20 100644 --- a/sig/lithic/models/external_bank_account_create_params.rbs +++ b/sig/lithic/models/external_bank_account_create_params.rbs @@ -1,144 +1,388 @@ module Lithic module Models type external_bank_account_create_params = - { - account_number: String, - country: String, - currency: String, - financial_account_token: String, - owner: String, - owner_type: Lithic::Models::owner_type, - routing_number: String, - type: Lithic::Models::ExternalBankAccountCreateParams::type_, - verification_method: Lithic::Models::ExternalBankAccountCreateParams::verification_method, - account_token: String, - address: Lithic::ExternalBankAccountAddress, - company_id: String, - dob: Date, - doing_business_as: String, - name: String, - user_defined_id: String, - verification_enforcement: bool - } + { body: Lithic::Models::ExternalBankAccountCreateParams::body } & Lithic::Internal::Type::request_parameters class ExternalBankAccountCreateParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - attr_accessor account_number: String + attr_accessor body: Lithic::Models::ExternalBankAccountCreateParams::body - attr_accessor country: String + def initialize: ( + body: Lithic::Models::ExternalBankAccountCreateParams::body, + ?request_options: Lithic::request_opts + ) -> void - attr_accessor currency: String + def to_hash: -> { + body: Lithic::Models::ExternalBankAccountCreateParams::body, + request_options: Lithic::RequestOptions + } - attr_accessor financial_account_token: String + type body = + Lithic::ExternalBankAccountCreateParams::Body::ExternallyVerified + | Lithic::ExternalBankAccountCreateParams::Body::Unverified + | Lithic::ExternalBankAccountCreateParams::Body::BankVerifiedCreateBankAccountAPIRequest - attr_accessor owner: String + module Body + extend Lithic::Internal::Type::Union - attr_accessor owner_type: Lithic::Models::owner_type + type bank_verified_create_bank_account_api_request = + { + account_number: String, + country: String, + currency: String, + financial_account_token: String, + owner: String, + owner_type: Lithic::Models::owner_type, + routing_number: String, + type: Lithic::Models::ExternalBankAccountCreateParams::Body::BankVerifiedCreateBankAccountAPIRequest::type_, + verification_method: Lithic::Models::verification_method, + account_token: String, + address: Lithic::ExternalBankAccountAddress, + company_id: String, + dob: Date, + doing_business_as: String, + name: String, + user_defined_id: String, + verification_enforcement: bool + } - attr_accessor routing_number: String + class BankVerifiedCreateBankAccountAPIRequest < Lithic::Internal::Type::BaseModel + attr_accessor account_number: String - attr_accessor type: Lithic::Models::ExternalBankAccountCreateParams::type_ + attr_accessor country: String - attr_accessor verification_method: Lithic::Models::ExternalBankAccountCreateParams::verification_method + attr_accessor currency: String - attr_reader account_token: String? + attr_accessor financial_account_token: String - def account_token=: (String) -> String + attr_accessor owner: String - attr_reader address: Lithic::ExternalBankAccountAddress? + attr_accessor owner_type: Lithic::Models::owner_type - def address=: ( - Lithic::ExternalBankAccountAddress - ) -> Lithic::ExternalBankAccountAddress + attr_accessor routing_number: String + + attr_accessor type: Lithic::Models::ExternalBankAccountCreateParams::Body::BankVerifiedCreateBankAccountAPIRequest::type_ + + attr_accessor verification_method: Lithic::Models::verification_method + + attr_reader account_token: String? + + def account_token=: (String) -> String + + attr_reader address: Lithic::ExternalBankAccountAddress? + + def address=: ( + Lithic::ExternalBankAccountAddress + ) -> Lithic::ExternalBankAccountAddress + + attr_reader company_id: String? + + def company_id=: (String) -> String - attr_reader company_id: String? + attr_reader dob: Date? - def company_id=: (String) -> String + def dob=: (Date) -> Date - attr_reader dob: Date? + attr_reader doing_business_as: String? - def dob=: (Date) -> Date + def doing_business_as=: (String) -> String - attr_reader doing_business_as: String? + attr_reader name: String? - def doing_business_as=: (String) -> String + def name=: (String) -> String - attr_reader name: String? + attr_reader user_defined_id: String? - def name=: (String) -> String + def user_defined_id=: (String) -> String - attr_reader user_defined_id: String? + attr_reader verification_enforcement: bool? - def user_defined_id=: (String) -> String + def verification_enforcement=: (bool) -> bool - attr_reader verification_enforcement: bool? + def initialize: ( + account_number: String, + country: String, + currency: String, + financial_account_token: String, + owner: String, + owner_type: Lithic::Models::owner_type, + routing_number: String, + type: Lithic::Models::ExternalBankAccountCreateParams::Body::BankVerifiedCreateBankAccountAPIRequest::type_, + verification_method: Lithic::Models::verification_method, + ?account_token: String, + ?address: Lithic::ExternalBankAccountAddress, + ?company_id: String, + ?dob: Date, + ?doing_business_as: String, + ?name: String, + ?user_defined_id: String, + ?verification_enforcement: bool + ) -> void - def verification_enforcement=: (bool) -> bool + def to_hash: -> { + account_number: String, + country: String, + currency: String, + financial_account_token: String, + owner: String, + owner_type: Lithic::Models::owner_type, + routing_number: String, + type: Lithic::Models::ExternalBankAccountCreateParams::Body::BankVerifiedCreateBankAccountAPIRequest::type_, + verification_method: Lithic::Models::verification_method, + account_token: String, + address: Lithic::ExternalBankAccountAddress, + company_id: String, + dob: Date, + doing_business_as: String, + name: String, + user_defined_id: String, + verification_enforcement: bool + } - def initialize: ( - account_number: String, - country: String, - currency: String, - financial_account_token: String, - owner: String, - owner_type: Lithic::Models::owner_type, - routing_number: String, - type: Lithic::Models::ExternalBankAccountCreateParams::type_, - verification_method: Lithic::Models::ExternalBankAccountCreateParams::verification_method, - ?account_token: String, - ?address: Lithic::ExternalBankAccountAddress, - ?company_id: String, - ?dob: Date, - ?doing_business_as: String, - ?name: String, - ?user_defined_id: String, - ?verification_enforcement: bool, - ?request_options: Lithic::request_opts - ) -> void + type type_ = :CHECKING | :SAVINGS - def to_hash: -> { - account_number: String, - country: String, - currency: String, - financial_account_token: String, - owner: String, - owner_type: Lithic::Models::owner_type, - routing_number: String, - type: Lithic::Models::ExternalBankAccountCreateParams::type_, - verification_method: Lithic::Models::ExternalBankAccountCreateParams::verification_method, - account_token: String, - address: Lithic::ExternalBankAccountAddress, - company_id: String, - dob: Date, - doing_business_as: String, - name: String, - user_defined_id: String, - verification_enforcement: bool, - request_options: Lithic::RequestOptions - } + module Type + extend Lithic::Internal::Type::Enum - type type_ = :CHECKING | :SAVINGS + CHECKING: :CHECKING + SAVINGS: :SAVINGS - module Type - extend Lithic::Internal::Type::Enum + def self?.values: -> ::Array[Lithic::Models::ExternalBankAccountCreateParams::Body::BankVerifiedCreateBankAccountAPIRequest::type_] + end + end - CHECKING: :CHECKING - SAVINGS: :SAVINGS + type externally_verified = + { + account_number: String, + country: String, + currency: String, + owner: String, + owner_type: Lithic::Models::owner_type, + routing_number: String, + type: Lithic::Models::ExternalBankAccountCreateParams::Body::ExternallyVerified::type_, + verification_method: :EXTERNALLY_VERIFIED, + account_token: String, + address: Lithic::ExternalBankAccountAddress, + company_id: String, + dob: Date, + doing_business_as: String, + name: String, + user_defined_id: String + } + + class ExternallyVerified < Lithic::Internal::Type::BaseModel + attr_accessor account_number: String + + attr_accessor country: String + + attr_accessor currency: String + + attr_accessor owner: String + + attr_accessor owner_type: Lithic::Models::owner_type + + attr_accessor routing_number: String + + attr_accessor type: Lithic::Models::ExternalBankAccountCreateParams::Body::ExternallyVerified::type_ + + attr_accessor verification_method: :EXTERNALLY_VERIFIED + + attr_reader account_token: String? + + def account_token=: (String) -> String + + attr_reader address: Lithic::ExternalBankAccountAddress? + + def address=: ( + Lithic::ExternalBankAccountAddress + ) -> Lithic::ExternalBankAccountAddress + + attr_reader company_id: String? + + def company_id=: (String) -> String + + attr_reader dob: Date? + + def dob=: (Date) -> Date + + attr_reader doing_business_as: String? + + def doing_business_as=: (String) -> String + + attr_reader name: String? + + def name=: (String) -> String + + attr_reader user_defined_id: String? - def self?.values: -> ::Array[Lithic::Models::ExternalBankAccountCreateParams::type_] - end + def user_defined_id=: (String) -> String + + def initialize: ( + account_number: String, + country: String, + currency: String, + owner: String, + owner_type: Lithic::Models::owner_type, + routing_number: String, + type: Lithic::Models::ExternalBankAccountCreateParams::Body::ExternallyVerified::type_, + ?account_token: String, + ?address: Lithic::ExternalBankAccountAddress, + ?company_id: String, + ?dob: Date, + ?doing_business_as: String, + ?name: String, + ?user_defined_id: String, + ?verification_method: :EXTERNALLY_VERIFIED + ) -> void + + def to_hash: -> { + account_number: String, + country: String, + currency: String, + owner: String, + owner_type: Lithic::Models::owner_type, + routing_number: String, + type: Lithic::Models::ExternalBankAccountCreateParams::Body::ExternallyVerified::type_, + verification_method: :EXTERNALLY_VERIFIED, + account_token: String, + address: Lithic::ExternalBankAccountAddress, + company_id: String, + dob: Date, + doing_business_as: String, + name: String, + user_defined_id: String + } + + type type_ = :CHECKING | :SAVINGS + + module Type + extend Lithic::Internal::Type::Enum + + CHECKING: :CHECKING + SAVINGS: :SAVINGS + + def self?.values: -> ::Array[Lithic::Models::ExternalBankAccountCreateParams::Body::ExternallyVerified::type_] + end + end + + type unverified = + { + account_number: String, + country: String, + currency: String, + owner: String, + owner_type: Lithic::Models::owner_type, + routing_number: String, + type: Lithic::Models::ExternalBankAccountCreateParams::Body::Unverified::type_, + verification_method: :UNVERIFIED, + account_token: String, + address: Lithic::ExternalBankAccountAddress, + company_id: String, + dob: Date, + doing_business_as: String, + name: String, + user_defined_id: String + } + + class Unverified < Lithic::Internal::Type::BaseModel + attr_accessor account_number: String + + attr_accessor country: String + + attr_accessor currency: String + + attr_accessor owner: String + + attr_accessor owner_type: Lithic::Models::owner_type + + attr_accessor routing_number: String + + attr_accessor type: Lithic::Models::ExternalBankAccountCreateParams::Body::Unverified::type_ + + attr_accessor verification_method: :UNVERIFIED + + attr_reader account_token: String? + + def account_token=: (String) -> String + + attr_reader address: Lithic::ExternalBankAccountAddress? + + def address=: ( + Lithic::ExternalBankAccountAddress + ) -> Lithic::ExternalBankAccountAddress + + attr_reader company_id: String? + + def company_id=: (String) -> String + + attr_reader dob: Date? + + def dob=: (Date) -> Date + + attr_reader doing_business_as: String? + + def doing_business_as=: (String) -> String + + attr_reader name: String? + + def name=: (String) -> String + + attr_reader user_defined_id: String? + + def user_defined_id=: (String) -> String + + def initialize: ( + account_number: String, + country: String, + currency: String, + owner: String, + owner_type: Lithic::Models::owner_type, + routing_number: String, + type: Lithic::Models::ExternalBankAccountCreateParams::Body::Unverified::type_, + ?account_token: String, + ?address: Lithic::ExternalBankAccountAddress, + ?company_id: String, + ?dob: Date, + ?doing_business_as: String, + ?name: String, + ?user_defined_id: String, + ?verification_method: :UNVERIFIED + ) -> void + + def to_hash: -> { + account_number: String, + country: String, + currency: String, + owner: String, + owner_type: Lithic::Models::owner_type, + routing_number: String, + type: Lithic::Models::ExternalBankAccountCreateParams::Body::Unverified::type_, + verification_method: :UNVERIFIED, + account_token: String, + address: Lithic::ExternalBankAccountAddress, + company_id: String, + dob: Date, + doing_business_as: String, + name: String, + user_defined_id: String + } + + type type_ = :CHECKING | :SAVINGS - type verification_method = :UNVERIFIED + module Type + extend Lithic::Internal::Type::Enum - module VerificationMethod - extend Lithic::Internal::Type::Enum + CHECKING: :CHECKING + SAVINGS: :SAVINGS - UNVERIFIED: :UNVERIFIED + def self?.values: -> ::Array[Lithic::Models::ExternalBankAccountCreateParams::Body::Unverified::type_] + end + end - def self?.values: -> ::Array[Lithic::Models::ExternalBankAccountCreateParams::verification_method] + def self?.variants: -> ::Array[Lithic::Models::ExternalBankAccountCreateParams::body] end end end diff --git a/sig/lithic/models/external_bank_account_retrieve_params.rbs b/sig/lithic/models/external_bank_account_retrieve_params.rbs index eda41ad6..13c50e6b 100644 --- a/sig/lithic/models/external_bank_account_retrieve_params.rbs +++ b/sig/lithic/models/external_bank_account_retrieve_params.rbs @@ -1,15 +1,24 @@ module Lithic module Models type external_bank_account_retrieve_params = - { } & Lithic::Internal::Type::request_parameters + { external_bank_account_token: String } + & Lithic::Internal::Type::request_parameters class ExternalBankAccountRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - def initialize: (?request_options: Lithic::request_opts) -> void + attr_accessor external_bank_account_token: String - def to_hash: -> { request_options: Lithic::RequestOptions } + def initialize: ( + external_bank_account_token: String, + ?request_options: Lithic::request_opts + ) -> void + + def to_hash: -> { + external_bank_account_token: String, + request_options: Lithic::RequestOptions + } end end end diff --git a/sig/lithic/models/external_bank_account_retry_micro_deposits_params.rbs b/sig/lithic/models/external_bank_account_retry_micro_deposits_params.rbs index c69e7b68..fefdb6eb 100644 --- a/sig/lithic/models/external_bank_account_retry_micro_deposits_params.rbs +++ b/sig/lithic/models/external_bank_account_retry_micro_deposits_params.rbs @@ -1,23 +1,27 @@ module Lithic module Models type external_bank_account_retry_micro_deposits_params = - { financial_account_token: String } + { external_bank_account_token: String, financial_account_token: String } & Lithic::Internal::Type::request_parameters class ExternalBankAccountRetryMicroDepositsParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + attr_accessor external_bank_account_token: String + attr_reader financial_account_token: String? def financial_account_token=: (String) -> String def initialize: ( + external_bank_account_token: String, ?financial_account_token: String, ?request_options: Lithic::request_opts ) -> void def to_hash: -> { + external_bank_account_token: String, financial_account_token: String, request_options: Lithic::RequestOptions } diff --git a/sig/lithic/models/external_bank_account_retry_prenote_params.rbs b/sig/lithic/models/external_bank_account_retry_prenote_params.rbs index 79610f39..d78814b6 100644 --- a/sig/lithic/models/external_bank_account_retry_prenote_params.rbs +++ b/sig/lithic/models/external_bank_account_retry_prenote_params.rbs @@ -1,23 +1,27 @@ module Lithic module Models type external_bank_account_retry_prenote_params = - { financial_account_token: String } + { external_bank_account_token: String, financial_account_token: String } & Lithic::Internal::Type::request_parameters class ExternalBankAccountRetryPrenoteParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + attr_accessor external_bank_account_token: String + attr_reader financial_account_token: String? def financial_account_token=: (String) -> String def initialize: ( + external_bank_account_token: String, ?financial_account_token: String, ?request_options: Lithic::request_opts ) -> void def to_hash: -> { + external_bank_account_token: String, financial_account_token: String, request_options: Lithic::RequestOptions } diff --git a/sig/lithic/models/external_bank_account_unpause_params.rbs b/sig/lithic/models/external_bank_account_unpause_params.rbs index d16460af..7a978c80 100644 --- a/sig/lithic/models/external_bank_account_unpause_params.rbs +++ b/sig/lithic/models/external_bank_account_unpause_params.rbs @@ -1,15 +1,24 @@ module Lithic module Models type external_bank_account_unpause_params = - { } & Lithic::Internal::Type::request_parameters + { external_bank_account_token: String } + & Lithic::Internal::Type::request_parameters class ExternalBankAccountUnpauseParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - def initialize: (?request_options: Lithic::request_opts) -> void + attr_accessor external_bank_account_token: String - def to_hash: -> { request_options: Lithic::RequestOptions } + def initialize: ( + external_bank_account_token: String, + ?request_options: Lithic::request_opts + ) -> void + + def to_hash: -> { + external_bank_account_token: String, + request_options: Lithic::RequestOptions + } end end end diff --git a/sig/lithic/models/external_bank_account_update_params.rbs b/sig/lithic/models/external_bank_account_update_params.rbs index b68b6220..a8d94177 100644 --- a/sig/lithic/models/external_bank_account_update_params.rbs +++ b/sig/lithic/models/external_bank_account_update_params.rbs @@ -2,6 +2,7 @@ module Lithic module Models type external_bank_account_update_params = { + external_bank_account_token: String, address: Lithic::ExternalBankAccountAddress, company_id: String, dob: Date, @@ -18,6 +19,8 @@ module Lithic extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + attr_accessor external_bank_account_token: String + attr_reader address: Lithic::ExternalBankAccountAddress? def address=: ( @@ -61,6 +64,7 @@ module Lithic def user_defined_id=: (String) -> String def initialize: ( + external_bank_account_token: String, ?address: Lithic::ExternalBankAccountAddress, ?company_id: String, ?dob: Date, @@ -74,6 +78,7 @@ module Lithic ) -> void def to_hash: -> { + external_bank_account_token: String, address: Lithic::ExternalBankAccountAddress, company_id: String, dob: Date, diff --git a/sig/lithic/models/external_bank_accounts/micro_deposit_create_params.rbs b/sig/lithic/models/external_bank_accounts/micro_deposit_create_params.rbs index 64f45b8f..a386f151 100644 --- a/sig/lithic/models/external_bank_accounts/micro_deposit_create_params.rbs +++ b/sig/lithic/models/external_bank_accounts/micro_deposit_create_params.rbs @@ -2,21 +2,28 @@ module Lithic module Models module ExternalBankAccounts type micro_deposit_create_params = - { micro_deposits: ::Array[Integer] } + { + external_bank_account_token: String, + micro_deposits: ::Array[Integer] + } & Lithic::Internal::Type::request_parameters class MicroDepositCreateParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + attr_accessor external_bank_account_token: String + attr_accessor micro_deposits: ::Array[Integer] def initialize: ( + external_bank_account_token: String, micro_deposits: ::Array[Integer], ?request_options: Lithic::request_opts ) -> void def to_hash: -> { + external_bank_account_token: String, micro_deposits: ::Array[Integer], request_options: Lithic::RequestOptions } diff --git a/sig/lithic/models/external_payment_cancel_params.rbs b/sig/lithic/models/external_payment_cancel_params.rbs index fb048ca4..2b3b514c 100644 --- a/sig/lithic/models/external_payment_cancel_params.rbs +++ b/sig/lithic/models/external_payment_cancel_params.rbs @@ -1,13 +1,15 @@ module Lithic module Models type external_payment_cancel_params = - { effective_date: Date, memo: String } + { external_payment_token: String, effective_date: Date, memo: String } & Lithic::Internal::Type::request_parameters class ExternalPaymentCancelParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + attr_accessor external_payment_token: String + attr_accessor effective_date: Date attr_reader memo: String? @@ -15,12 +17,14 @@ module Lithic def memo=: (String) -> String def initialize: ( + external_payment_token: String, effective_date: Date, ?memo: String, ?request_options: Lithic::request_opts ) -> void def to_hash: -> { + external_payment_token: String, effective_date: Date, memo: String, request_options: Lithic::RequestOptions diff --git a/sig/lithic/models/external_payment_release_params.rbs b/sig/lithic/models/external_payment_release_params.rbs index 5a8e9bdc..7c0f40c6 100644 --- a/sig/lithic/models/external_payment_release_params.rbs +++ b/sig/lithic/models/external_payment_release_params.rbs @@ -1,13 +1,15 @@ module Lithic module Models type external_payment_release_params = - { effective_date: Date, memo: String } + { external_payment_token: String, effective_date: Date, memo: String } & Lithic::Internal::Type::request_parameters class ExternalPaymentReleaseParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + attr_accessor external_payment_token: String + attr_accessor effective_date: Date attr_reader memo: String? @@ -15,12 +17,14 @@ module Lithic def memo=: (String) -> String def initialize: ( + external_payment_token: String, effective_date: Date, ?memo: String, ?request_options: Lithic::request_opts ) -> void def to_hash: -> { + external_payment_token: String, effective_date: Date, memo: String, request_options: Lithic::RequestOptions diff --git a/sig/lithic/models/external_payment_retrieve_params.rbs b/sig/lithic/models/external_payment_retrieve_params.rbs index 11875943..4c8ea601 100644 --- a/sig/lithic/models/external_payment_retrieve_params.rbs +++ b/sig/lithic/models/external_payment_retrieve_params.rbs @@ -1,15 +1,24 @@ module Lithic module Models type external_payment_retrieve_params = - { } & Lithic::Internal::Type::request_parameters + { external_payment_token: String } + & Lithic::Internal::Type::request_parameters class ExternalPaymentRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - def initialize: (?request_options: Lithic::request_opts) -> void + attr_accessor external_payment_token: String - def to_hash: -> { request_options: Lithic::RequestOptions } + def initialize: ( + external_payment_token: String, + ?request_options: Lithic::request_opts + ) -> void + + def to_hash: -> { + external_payment_token: String, + request_options: Lithic::RequestOptions + } end end end diff --git a/sig/lithic/models/external_payment_reverse_params.rbs b/sig/lithic/models/external_payment_reverse_params.rbs index f22ee47a..8bdd084a 100644 --- a/sig/lithic/models/external_payment_reverse_params.rbs +++ b/sig/lithic/models/external_payment_reverse_params.rbs @@ -1,13 +1,15 @@ module Lithic module Models type external_payment_reverse_params = - { effective_date: Date, memo: String } + { external_payment_token: String, effective_date: Date, memo: String } & Lithic::Internal::Type::request_parameters class ExternalPaymentReverseParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + attr_accessor external_payment_token: String + attr_accessor effective_date: Date attr_reader memo: String? @@ -15,12 +17,14 @@ module Lithic def memo=: (String) -> String def initialize: ( + external_payment_token: String, effective_date: Date, ?memo: String, ?request_options: Lithic::request_opts ) -> void def to_hash: -> { + external_payment_token: String, effective_date: Date, memo: String, request_options: Lithic::RequestOptions diff --git a/sig/lithic/models/external_payment_settle_params.rbs b/sig/lithic/models/external_payment_settle_params.rbs index 7cb21bd2..a8fbd733 100644 --- a/sig/lithic/models/external_payment_settle_params.rbs +++ b/sig/lithic/models/external_payment_settle_params.rbs @@ -2,6 +2,7 @@ module Lithic module Models type external_payment_settle_params = { + external_payment_token: String, effective_date: Date, memo: String, progress_to: Lithic::Models::ExternalPaymentSettleParams::progress_to @@ -12,6 +13,8 @@ module Lithic extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + attr_accessor external_payment_token: String + attr_accessor effective_date: Date attr_reader memo: String? @@ -25,6 +28,7 @@ module Lithic ) -> Lithic::Models::ExternalPaymentSettleParams::progress_to def initialize: ( + external_payment_token: String, effective_date: Date, ?memo: String, ?progress_to: Lithic::Models::ExternalPaymentSettleParams::progress_to, @@ -32,6 +36,7 @@ module Lithic ) -> void def to_hash: -> { + external_payment_token: String, effective_date: Date, memo: String, progress_to: Lithic::Models::ExternalPaymentSettleParams::progress_to, diff --git a/sig/lithic/models/financial_account_register_account_number_params.rbs b/sig/lithic/models/financial_account_register_account_number_params.rbs index d520fc44..e1072ef0 100644 --- a/sig/lithic/models/financial_account_register_account_number_params.rbs +++ b/sig/lithic/models/financial_account_register_account_number_params.rbs @@ -1,20 +1,25 @@ module Lithic module Models type financial_account_register_account_number_params = - { account_number: String } & Lithic::Internal::Type::request_parameters + { financial_account_token: String, account_number: String } + & Lithic::Internal::Type::request_parameters class FinancialAccountRegisterAccountNumberParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + attr_accessor financial_account_token: String + attr_accessor account_number: String def initialize: ( + financial_account_token: String, account_number: String, ?request_options: Lithic::request_opts ) -> void def to_hash: -> { + financial_account_token: String, account_number: String, request_options: Lithic::RequestOptions } diff --git a/sig/lithic/models/financial_account_retrieve_params.rbs b/sig/lithic/models/financial_account_retrieve_params.rbs index 3aa7241f..cb7c26bb 100644 --- a/sig/lithic/models/financial_account_retrieve_params.rbs +++ b/sig/lithic/models/financial_account_retrieve_params.rbs @@ -1,15 +1,24 @@ module Lithic module Models type financial_account_retrieve_params = - { } & Lithic::Internal::Type::request_parameters + { financial_account_token: String } + & Lithic::Internal::Type::request_parameters class FinancialAccountRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - def initialize: (?request_options: Lithic::request_opts) -> void + attr_accessor financial_account_token: String - def to_hash: -> { request_options: Lithic::RequestOptions } + def initialize: ( + financial_account_token: String, + ?request_options: Lithic::request_opts + ) -> void + + def to_hash: -> { + financial_account_token: String, + request_options: Lithic::RequestOptions + } end end end diff --git a/sig/lithic/models/financial_account_update_params.rbs b/sig/lithic/models/financial_account_update_params.rbs index d441dec6..80e817f5 100644 --- a/sig/lithic/models/financial_account_update_params.rbs +++ b/sig/lithic/models/financial_account_update_params.rbs @@ -1,22 +1,27 @@ module Lithic module Models type financial_account_update_params = - { nickname: String } & Lithic::Internal::Type::request_parameters + { financial_account_token: String, nickname: String } + & Lithic::Internal::Type::request_parameters class FinancialAccountUpdateParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + attr_accessor financial_account_token: String + attr_reader nickname: String? def nickname=: (String) -> String def initialize: ( + financial_account_token: String, ?nickname: String, ?request_options: Lithic::request_opts ) -> void def to_hash: -> { + financial_account_token: String, nickname: String, request_options: Lithic::RequestOptions } diff --git a/sig/lithic/models/financial_account_update_status_params.rbs b/sig/lithic/models/financial_account_update_status_params.rbs index 637fe780..1ea4e0cd 100644 --- a/sig/lithic/models/financial_account_update_status_params.rbs +++ b/sig/lithic/models/financial_account_update_status_params.rbs @@ -2,6 +2,7 @@ module Lithic module Models type financial_account_update_status_params = { + financial_account_token: String, status: Lithic::Models::FinancialAccountUpdateStatusParams::status, substatus: Lithic::Models::FinancialAccountUpdateStatusParams::substatus?, user_defined_status: String @@ -12,6 +13,8 @@ module Lithic extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + attr_accessor financial_account_token: String + attr_accessor status: Lithic::Models::FinancialAccountUpdateStatusParams::status attr_accessor substatus: Lithic::Models::FinancialAccountUpdateStatusParams::substatus? @@ -21,6 +24,7 @@ module Lithic def user_defined_status=: (String) -> String def initialize: ( + financial_account_token: String, status: Lithic::Models::FinancialAccountUpdateStatusParams::status, substatus: Lithic::Models::FinancialAccountUpdateStatusParams::substatus?, ?user_defined_status: String, @@ -28,6 +32,7 @@ module Lithic ) -> void def to_hash: -> { + financial_account_token: String, status: Lithic::Models::FinancialAccountUpdateStatusParams::status, substatus: Lithic::Models::FinancialAccountUpdateStatusParams::substatus?, user_defined_status: String, diff --git a/sig/lithic/models/financial_accounts/balance_list_params.rbs b/sig/lithic/models/financial_accounts/balance_list_params.rbs index 50a2dd01..c90f8648 100644 --- a/sig/lithic/models/financial_accounts/balance_list_params.rbs +++ b/sig/lithic/models/financial_accounts/balance_list_params.rbs @@ -2,13 +2,19 @@ module Lithic module Models module FinancialAccounts type balance_list_params = - { balance_date: Time, last_transaction_event_token: String } + { + financial_account_token: String, + balance_date: Time, + last_transaction_event_token: String + } & Lithic::Internal::Type::request_parameters class BalanceListParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + attr_accessor financial_account_token: String + attr_reader balance_date: Time? def balance_date=: (Time) -> Time @@ -18,12 +24,14 @@ module Lithic def last_transaction_event_token=: (String) -> String def initialize: ( + financial_account_token: String, ?balance_date: Time, ?last_transaction_event_token: String, ?request_options: Lithic::request_opts ) -> void def to_hash: -> { + financial_account_token: String, balance_date: Time, last_transaction_event_token: String, request_options: Lithic::RequestOptions diff --git a/sig/lithic/models/financial_accounts/credit_configuration_retrieve_params.rbs b/sig/lithic/models/financial_accounts/credit_configuration_retrieve_params.rbs index bcf1b3a8..5906415b 100644 --- a/sig/lithic/models/financial_accounts/credit_configuration_retrieve_params.rbs +++ b/sig/lithic/models/financial_accounts/credit_configuration_retrieve_params.rbs @@ -2,15 +2,24 @@ module Lithic module Models module FinancialAccounts type credit_configuration_retrieve_params = - { } & Lithic::Internal::Type::request_parameters + { financial_account_token: String } + & Lithic::Internal::Type::request_parameters class CreditConfigurationRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - def initialize: (?request_options: Lithic::request_opts) -> void + attr_accessor financial_account_token: String - def to_hash: -> { request_options: Lithic::RequestOptions } + def initialize: ( + financial_account_token: String, + ?request_options: Lithic::request_opts + ) -> void + + def to_hash: -> { + financial_account_token: String, + request_options: Lithic::RequestOptions + } end end end diff --git a/sig/lithic/models/financial_accounts/credit_configuration_update_params.rbs b/sig/lithic/models/financial_accounts/credit_configuration_update_params.rbs index 7af86f1e..cb1dfa08 100644 --- a/sig/lithic/models/financial_accounts/credit_configuration_update_params.rbs +++ b/sig/lithic/models/financial_accounts/credit_configuration_update_params.rbs @@ -3,6 +3,7 @@ module Lithic module FinancialAccounts type credit_configuration_update_params = { + financial_account_token: String, auto_collection_configuration: Lithic::FinancialAccounts::CreditConfigurationUpdateParams::AutoCollectionConfiguration, credit_limit: Integer, credit_product_token: String, @@ -15,6 +16,8 @@ module Lithic extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + attr_accessor financial_account_token: String + attr_reader auto_collection_configuration: Lithic::FinancialAccounts::CreditConfigurationUpdateParams::AutoCollectionConfiguration? def auto_collection_configuration=: ( @@ -38,6 +41,7 @@ module Lithic def tier=: (String) -> String def initialize: ( + financial_account_token: String, ?auto_collection_configuration: Lithic::FinancialAccounts::CreditConfigurationUpdateParams::AutoCollectionConfiguration, ?credit_limit: Integer, ?credit_product_token: String, @@ -47,6 +51,7 @@ module Lithic ) -> void def to_hash: -> { + financial_account_token: String, auto_collection_configuration: Lithic::FinancialAccounts::CreditConfigurationUpdateParams::AutoCollectionConfiguration, credit_limit: Integer, credit_product_token: String, diff --git a/sig/lithic/models/financial_accounts/financial_transaction_list_params.rbs b/sig/lithic/models/financial_accounts/financial_transaction_list_params.rbs index ef830c11..ccca5115 100644 --- a/sig/lithic/models/financial_accounts/financial_transaction_list_params.rbs +++ b/sig/lithic/models/financial_accounts/financial_transaction_list_params.rbs @@ -3,6 +3,7 @@ module Lithic module FinancialAccounts type financial_transaction_list_params = { + financial_account_token: String, begin_: Time, category: Lithic::Models::FinancialAccounts::FinancialTransactionListParams::category, end_: Time, @@ -17,6 +18,8 @@ module Lithic extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + attr_accessor financial_account_token: String + attr_reader begin_: Time? def begin_=: (Time) -> Time @@ -52,6 +55,7 @@ module Lithic ) -> Lithic::Models::FinancialAccounts::FinancialTransactionListParams::status def initialize: ( + financial_account_token: String, ?begin_: Time, ?category: Lithic::Models::FinancialAccounts::FinancialTransactionListParams::category, ?end_: Time, @@ -63,6 +67,7 @@ module Lithic ) -> void def to_hash: -> { + financial_account_token: String, begin_: Time, category: Lithic::Models::FinancialAccounts::FinancialTransactionListParams::category, end_: Time, diff --git a/sig/lithic/models/financial_accounts/financial_transaction_retrieve_params.rbs b/sig/lithic/models/financial_accounts/financial_transaction_retrieve_params.rbs index 71b4f99b..d870ae4f 100644 --- a/sig/lithic/models/financial_accounts/financial_transaction_retrieve_params.rbs +++ b/sig/lithic/models/financial_accounts/financial_transaction_retrieve_params.rbs @@ -2,7 +2,7 @@ module Lithic module Models module FinancialAccounts type financial_transaction_retrieve_params = - { financial_account_token: String } + { financial_account_token: String, financial_transaction_token: String } & Lithic::Internal::Type::request_parameters class FinancialTransactionRetrieveParams < Lithic::Internal::Type::BaseModel @@ -11,13 +11,17 @@ module Lithic attr_accessor financial_account_token: String + attr_accessor financial_transaction_token: String + def initialize: ( financial_account_token: String, + financial_transaction_token: String, ?request_options: Lithic::request_opts ) -> void def to_hash: -> { financial_account_token: String, + financial_transaction_token: String, request_options: Lithic::RequestOptions } end diff --git a/sig/lithic/models/financial_accounts/interest_tier_schedule_create_params.rbs b/sig/lithic/models/financial_accounts/interest_tier_schedule_create_params.rbs index 40602d5f..8ec9860b 100644 --- a/sig/lithic/models/financial_accounts/interest_tier_schedule_create_params.rbs +++ b/sig/lithic/models/financial_accounts/interest_tier_schedule_create_params.rbs @@ -2,15 +2,26 @@ module Lithic module Models module FinancialAccounts type interest_tier_schedule_create_params = - { } & Lithic::Internal::Type::request_parameters + { financial_account_token: String } + & Lithic::Internal::Type::request_parameters class InterestTierScheduleCreateParams < Lithic::Models::FinancialAccounts::FinancialAccountsInterestTierSchedule extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - def initialize: (?request_options: Lithic::request_opts) -> void + def financial_account_token: -> String - def to_hash: -> { request_options: Lithic::RequestOptions } + def financial_account_token=: (String _) -> String + + def initialize: ( + financial_account_token: String, + ?request_options: Lithic::request_opts + ) -> void + + def to_hash: -> { + financial_account_token: String, + request_options: Lithic::RequestOptions + } end end end diff --git a/sig/lithic/models/financial_accounts/interest_tier_schedule_delete_params.rbs b/sig/lithic/models/financial_accounts/interest_tier_schedule_delete_params.rbs index 92660b9b..e7639b23 100644 --- a/sig/lithic/models/financial_accounts/interest_tier_schedule_delete_params.rbs +++ b/sig/lithic/models/financial_accounts/interest_tier_schedule_delete_params.rbs @@ -2,7 +2,7 @@ module Lithic module Models module FinancialAccounts type interest_tier_schedule_delete_params = - { financial_account_token: String } + { financial_account_token: String, effective_date: Date } & Lithic::Internal::Type::request_parameters class InterestTierScheduleDeleteParams < Lithic::Internal::Type::BaseModel @@ -11,13 +11,17 @@ module Lithic attr_accessor financial_account_token: String + attr_accessor effective_date: Date + def initialize: ( financial_account_token: String, + effective_date: Date, ?request_options: Lithic::request_opts ) -> void def to_hash: -> { financial_account_token: String, + effective_date: Date, request_options: Lithic::RequestOptions } end diff --git a/sig/lithic/models/financial_accounts/interest_tier_schedule_list_params.rbs b/sig/lithic/models/financial_accounts/interest_tier_schedule_list_params.rbs index c7448d2b..42787db8 100644 --- a/sig/lithic/models/financial_accounts/interest_tier_schedule_list_params.rbs +++ b/sig/lithic/models/financial_accounts/interest_tier_schedule_list_params.rbs @@ -2,13 +2,20 @@ module Lithic module Models module FinancialAccounts type interest_tier_schedule_list_params = - { after_date: Date, before_date: Date, for_date: Date } + { + financial_account_token: String, + after_date: Date, + before_date: Date, + for_date: Date + } & Lithic::Internal::Type::request_parameters class InterestTierScheduleListParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + attr_accessor financial_account_token: String + attr_reader after_date: Date? def after_date=: (Date) -> Date @@ -22,6 +29,7 @@ module Lithic def for_date=: (Date) -> Date def initialize: ( + financial_account_token: String, ?after_date: Date, ?before_date: Date, ?for_date: Date, @@ -29,6 +37,7 @@ module Lithic ) -> void def to_hash: -> { + financial_account_token: String, after_date: Date, before_date: Date, for_date: Date, diff --git a/sig/lithic/models/financial_accounts/interest_tier_schedule_retrieve_params.rbs b/sig/lithic/models/financial_accounts/interest_tier_schedule_retrieve_params.rbs index c8851243..631c587d 100644 --- a/sig/lithic/models/financial_accounts/interest_tier_schedule_retrieve_params.rbs +++ b/sig/lithic/models/financial_accounts/interest_tier_schedule_retrieve_params.rbs @@ -2,7 +2,7 @@ module Lithic module Models module FinancialAccounts type interest_tier_schedule_retrieve_params = - { financial_account_token: String } + { financial_account_token: String, effective_date: Date } & Lithic::Internal::Type::request_parameters class InterestTierScheduleRetrieveParams < Lithic::Internal::Type::BaseModel @@ -11,13 +11,17 @@ module Lithic attr_accessor financial_account_token: String + attr_accessor effective_date: Date + def initialize: ( financial_account_token: String, + effective_date: Date, ?request_options: Lithic::request_opts ) -> void def to_hash: -> { financial_account_token: String, + effective_date: Date, request_options: Lithic::RequestOptions } end diff --git a/sig/lithic/models/financial_accounts/interest_tier_schedule_update_params.rbs b/sig/lithic/models/financial_accounts/interest_tier_schedule_update_params.rbs index 03aec2bb..48bd39b1 100644 --- a/sig/lithic/models/financial_accounts/interest_tier_schedule_update_params.rbs +++ b/sig/lithic/models/financial_accounts/interest_tier_schedule_update_params.rbs @@ -2,7 +2,12 @@ module Lithic module Models module FinancialAccounts type interest_tier_schedule_update_params = - { financial_account_token: String, tier_name: String, tier_rates: top } + { + financial_account_token: String, + effective_date: Date, + tier_name: String, + tier_rates: top + } & Lithic::Internal::Type::request_parameters class InterestTierScheduleUpdateParams < Lithic::Internal::Type::BaseModel @@ -11,6 +16,8 @@ module Lithic attr_accessor financial_account_token: String + attr_accessor effective_date: Date + attr_reader tier_name: String? def tier_name=: (String) -> String @@ -21,6 +28,7 @@ module Lithic def initialize: ( financial_account_token: String, + effective_date: Date, ?tier_name: String, ?tier_rates: top, ?request_options: Lithic::request_opts @@ -28,6 +36,7 @@ module Lithic def to_hash: -> { financial_account_token: String, + effective_date: Date, tier_name: String, tier_rates: top, request_options: Lithic::RequestOptions diff --git a/sig/lithic/models/financial_accounts/loan_tape_configuration_retrieve_params.rbs b/sig/lithic/models/financial_accounts/loan_tape_configuration_retrieve_params.rbs index b63aaa97..c332bb65 100644 --- a/sig/lithic/models/financial_accounts/loan_tape_configuration_retrieve_params.rbs +++ b/sig/lithic/models/financial_accounts/loan_tape_configuration_retrieve_params.rbs @@ -2,15 +2,24 @@ module Lithic module Models module FinancialAccounts type loan_tape_configuration_retrieve_params = - { } & Lithic::Internal::Type::request_parameters + { financial_account_token: String } + & Lithic::Internal::Type::request_parameters class LoanTapeConfigurationRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - def initialize: (?request_options: Lithic::request_opts) -> void + attr_accessor financial_account_token: String - def to_hash: -> { request_options: Lithic::RequestOptions } + def initialize: ( + financial_account_token: String, + ?request_options: Lithic::request_opts + ) -> void + + def to_hash: -> { + financial_account_token: String, + request_options: Lithic::RequestOptions + } end end end diff --git a/sig/lithic/models/financial_accounts/loan_tape_list_params.rbs b/sig/lithic/models/financial_accounts/loan_tape_list_params.rbs index ebec4a3d..b3929596 100644 --- a/sig/lithic/models/financial_accounts/loan_tape_list_params.rbs +++ b/sig/lithic/models/financial_accounts/loan_tape_list_params.rbs @@ -3,6 +3,7 @@ module Lithic module FinancialAccounts type loan_tape_list_params = { + financial_account_token: String, begin_: Date, end_: Date, ending_before: String, @@ -15,6 +16,8 @@ module Lithic extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + attr_accessor financial_account_token: String + attr_reader begin_: Date? def begin_=: (Date) -> Date @@ -36,6 +39,7 @@ module Lithic def starting_after=: (String) -> String def initialize: ( + financial_account_token: String, ?begin_: Date, ?end_: Date, ?ending_before: String, @@ -45,6 +49,7 @@ module Lithic ) -> void def to_hash: -> { + financial_account_token: String, begin_: Date, end_: Date, ending_before: String, diff --git a/sig/lithic/models/financial_accounts/loan_tape_retrieve_params.rbs b/sig/lithic/models/financial_accounts/loan_tape_retrieve_params.rbs index d0c57b82..f6a3e993 100644 --- a/sig/lithic/models/financial_accounts/loan_tape_retrieve_params.rbs +++ b/sig/lithic/models/financial_accounts/loan_tape_retrieve_params.rbs @@ -2,7 +2,7 @@ module Lithic module Models module FinancialAccounts type loan_tape_retrieve_params = - { financial_account_token: String } + { financial_account_token: String, loan_tape_token: String } & Lithic::Internal::Type::request_parameters class LoanTapeRetrieveParams < Lithic::Internal::Type::BaseModel @@ -11,13 +11,17 @@ module Lithic attr_accessor financial_account_token: String + attr_accessor loan_tape_token: String + def initialize: ( financial_account_token: String, + loan_tape_token: String, ?request_options: Lithic::request_opts ) -> void def to_hash: -> { financial_account_token: String, + loan_tape_token: String, request_options: Lithic::RequestOptions } end diff --git a/sig/lithic/models/financial_accounts/statement_list_params.rbs b/sig/lithic/models/financial_accounts/statement_list_params.rbs index d20a76d1..4cdb77d6 100644 --- a/sig/lithic/models/financial_accounts/statement_list_params.rbs +++ b/sig/lithic/models/financial_accounts/statement_list_params.rbs @@ -3,6 +3,7 @@ module Lithic module FinancialAccounts type statement_list_params = { + financial_account_token: String, begin_: Date, end_: Date, ending_before: String, @@ -16,6 +17,8 @@ module Lithic extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + attr_accessor financial_account_token: String + attr_reader begin_: Date? def begin_=: (Date) -> Date @@ -41,6 +44,7 @@ module Lithic def starting_after=: (String) -> String def initialize: ( + financial_account_token: String, ?begin_: Date, ?end_: Date, ?ending_before: String, @@ -51,6 +55,7 @@ module Lithic ) -> void def to_hash: -> { + financial_account_token: String, begin_: Date, end_: Date, ending_before: String, diff --git a/sig/lithic/models/financial_accounts/statement_retrieve_params.rbs b/sig/lithic/models/financial_accounts/statement_retrieve_params.rbs index f5621ec2..b01c22e8 100644 --- a/sig/lithic/models/financial_accounts/statement_retrieve_params.rbs +++ b/sig/lithic/models/financial_accounts/statement_retrieve_params.rbs @@ -2,7 +2,7 @@ module Lithic module Models module FinancialAccounts type statement_retrieve_params = - { financial_account_token: String } + { financial_account_token: String, statement_token: String } & Lithic::Internal::Type::request_parameters class StatementRetrieveParams < Lithic::Internal::Type::BaseModel @@ -11,13 +11,17 @@ module Lithic attr_accessor financial_account_token: String + attr_accessor statement_token: String + def initialize: ( financial_account_token: String, + statement_token: String, ?request_options: Lithic::request_opts ) -> void def to_hash: -> { financial_account_token: String, + statement_token: String, request_options: Lithic::RequestOptions } end diff --git a/sig/lithic/models/financial_accounts/statements/line_item_list_params.rbs b/sig/lithic/models/financial_accounts/statements/line_item_list_params.rbs index e5acf475..cba515a8 100644 --- a/sig/lithic/models/financial_accounts/statements/line_item_list_params.rbs +++ b/sig/lithic/models/financial_accounts/statements/line_item_list_params.rbs @@ -5,6 +5,7 @@ module Lithic type line_item_list_params = { financial_account_token: String, + statement_token: String, ending_before: String, page_size: Integer, starting_after: String @@ -17,6 +18,8 @@ module Lithic attr_accessor financial_account_token: String + attr_accessor statement_token: String + attr_reader ending_before: String? def ending_before=: (String) -> String @@ -31,6 +34,7 @@ module Lithic def initialize: ( financial_account_token: String, + statement_token: String, ?ending_before: String, ?page_size: Integer, ?starting_after: String, @@ -39,6 +43,7 @@ module Lithic def to_hash: -> { financial_account_token: String, + statement_token: String, ending_before: String, page_size: Integer, starting_after: String, diff --git a/sig/lithic/models/fraud/transaction_report_params.rbs b/sig/lithic/models/fraud/transaction_report_params.rbs index 1c16711c..b05f0c5c 100644 --- a/sig/lithic/models/fraud/transaction_report_params.rbs +++ b/sig/lithic/models/fraud/transaction_report_params.rbs @@ -3,6 +3,7 @@ module Lithic module Fraud type transaction_report_params = { + transaction_token: String, fraud_status: Lithic::Models::Fraud::TransactionReportParams::fraud_status, comment: String, fraud_type: Lithic::Models::Fraud::TransactionReportParams::fraud_type @@ -13,6 +14,8 @@ module Lithic extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + attr_accessor transaction_token: String + attr_accessor fraud_status: Lithic::Models::Fraud::TransactionReportParams::fraud_status attr_reader comment: String? @@ -26,6 +29,7 @@ module Lithic ) -> Lithic::Models::Fraud::TransactionReportParams::fraud_type def initialize: ( + transaction_token: String, fraud_status: Lithic::Models::Fraud::TransactionReportParams::fraud_status, ?comment: String, ?fraud_type: Lithic::Models::Fraud::TransactionReportParams::fraud_type, @@ -33,6 +37,7 @@ module Lithic ) -> void def to_hash: -> { + transaction_token: String, fraud_status: Lithic::Models::Fraud::TransactionReportParams::fraud_status, comment: String, fraud_type: Lithic::Models::Fraud::TransactionReportParams::fraud_type, diff --git a/sig/lithic/models/fraud/transaction_retrieve_params.rbs b/sig/lithic/models/fraud/transaction_retrieve_params.rbs index 762dd494..9d84ca10 100644 --- a/sig/lithic/models/fraud/transaction_retrieve_params.rbs +++ b/sig/lithic/models/fraud/transaction_retrieve_params.rbs @@ -2,15 +2,24 @@ module Lithic module Models module Fraud type transaction_retrieve_params = - { } & Lithic::Internal::Type::request_parameters + { transaction_token: String } + & Lithic::Internal::Type::request_parameters class TransactionRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - def initialize: (?request_options: Lithic::request_opts) -> void + attr_accessor transaction_token: String - def to_hash: -> { request_options: Lithic::RequestOptions } + def initialize: ( + transaction_token: String, + ?request_options: Lithic::request_opts + ) -> void + + def to_hash: -> { + transaction_token: String, + request_options: Lithic::RequestOptions + } end end end diff --git a/sig/lithic/models/funding_event_retrieve_details_params.rbs b/sig/lithic/models/funding_event_retrieve_details_params.rbs index dbcd5fc1..eee4b684 100644 --- a/sig/lithic/models/funding_event_retrieve_details_params.rbs +++ b/sig/lithic/models/funding_event_retrieve_details_params.rbs @@ -1,15 +1,24 @@ module Lithic module Models type funding_event_retrieve_details_params = - { } & Lithic::Internal::Type::request_parameters + { funding_event_token: String } + & Lithic::Internal::Type::request_parameters class FundingEventRetrieveDetailsParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - def initialize: (?request_options: Lithic::request_opts) -> void + attr_accessor funding_event_token: String - def to_hash: -> { request_options: Lithic::RequestOptions } + def initialize: ( + funding_event_token: String, + ?request_options: Lithic::request_opts + ) -> void + + def to_hash: -> { + funding_event_token: String, + request_options: Lithic::RequestOptions + } end end end diff --git a/sig/lithic/models/funding_event_retrieve_params.rbs b/sig/lithic/models/funding_event_retrieve_params.rbs index 35122e1e..078ca03e 100644 --- a/sig/lithic/models/funding_event_retrieve_params.rbs +++ b/sig/lithic/models/funding_event_retrieve_params.rbs @@ -1,15 +1,24 @@ module Lithic module Models type funding_event_retrieve_params = - { } & Lithic::Internal::Type::request_parameters + { funding_event_token: String } + & Lithic::Internal::Type::request_parameters class FundingEventRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - def initialize: (?request_options: Lithic::request_opts) -> void + attr_accessor funding_event_token: String - def to_hash: -> { request_options: Lithic::RequestOptions } + def initialize: ( + funding_event_token: String, + ?request_options: Lithic::request_opts + ) -> void + + def to_hash: -> { + funding_event_token: String, + request_options: Lithic::RequestOptions + } end end end diff --git a/sig/lithic/models/management_operation_retrieve_params.rbs b/sig/lithic/models/management_operation_retrieve_params.rbs index 8a28e200..c6385cae 100644 --- a/sig/lithic/models/management_operation_retrieve_params.rbs +++ b/sig/lithic/models/management_operation_retrieve_params.rbs @@ -1,15 +1,24 @@ module Lithic module Models type management_operation_retrieve_params = - { } & Lithic::Internal::Type::request_parameters + { management_operation_token: String } + & Lithic::Internal::Type::request_parameters class ManagementOperationRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - def initialize: (?request_options: Lithic::request_opts) -> void + attr_accessor management_operation_token: String - def to_hash: -> { request_options: Lithic::RequestOptions } + def initialize: ( + management_operation_token: String, + ?request_options: Lithic::request_opts + ) -> void + + def to_hash: -> { + management_operation_token: String, + request_options: Lithic::RequestOptions + } end end end diff --git a/sig/lithic/models/management_operation_reverse_params.rbs b/sig/lithic/models/management_operation_reverse_params.rbs index d4def742..ecea4188 100644 --- a/sig/lithic/models/management_operation_reverse_params.rbs +++ b/sig/lithic/models/management_operation_reverse_params.rbs @@ -1,13 +1,15 @@ module Lithic module Models type management_operation_reverse_params = - { effective_date: Date, memo: String } + { management_operation_token: String, effective_date: Date, memo: String } & Lithic::Internal::Type::request_parameters class ManagementOperationReverseParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + attr_accessor management_operation_token: String + attr_accessor effective_date: Date attr_reader memo: String? @@ -15,12 +17,14 @@ module Lithic def memo=: (String) -> String def initialize: ( + management_operation_token: String, effective_date: Date, ?memo: String, ?request_options: Lithic::request_opts ) -> void def to_hash: -> { + management_operation_token: String, effective_date: Date, memo: String, request_options: Lithic::RequestOptions diff --git a/sig/lithic/models/network_program_retrieve_params.rbs b/sig/lithic/models/network_program_retrieve_params.rbs index 7ce7e43b..ee068d28 100644 --- a/sig/lithic/models/network_program_retrieve_params.rbs +++ b/sig/lithic/models/network_program_retrieve_params.rbs @@ -1,15 +1,24 @@ module Lithic module Models type network_program_retrieve_params = - { } & Lithic::Internal::Type::request_parameters + { network_program_token: String } + & Lithic::Internal::Type::request_parameters class NetworkProgramRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - def initialize: (?request_options: Lithic::request_opts) -> void + attr_accessor network_program_token: String - def to_hash: -> { request_options: Lithic::RequestOptions } + def initialize: ( + network_program_token: String, + ?request_options: Lithic::request_opts + ) -> void + + def to_hash: -> { + network_program_token: String, + request_options: Lithic::RequestOptions + } end end end diff --git a/sig/lithic/models/payment_retrieve_params.rbs b/sig/lithic/models/payment_retrieve_params.rbs index e59c3d53..87f61fc2 100644 --- a/sig/lithic/models/payment_retrieve_params.rbs +++ b/sig/lithic/models/payment_retrieve_params.rbs @@ -1,15 +1,23 @@ module Lithic module Models type payment_retrieve_params = - { } & Lithic::Internal::Type::request_parameters + { payment_token: String } & Lithic::Internal::Type::request_parameters class PaymentRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - def initialize: (?request_options: Lithic::request_opts) -> void + attr_accessor payment_token: String - def to_hash: -> { request_options: Lithic::RequestOptions } + def initialize: ( + payment_token: String, + ?request_options: Lithic::request_opts + ) -> void + + def to_hash: -> { + payment_token: String, + request_options: Lithic::RequestOptions + } end end end diff --git a/sig/lithic/models/payment_retry_params.rbs b/sig/lithic/models/payment_retry_params.rbs index f43e12a9..f81b9afc 100644 --- a/sig/lithic/models/payment_retry_params.rbs +++ b/sig/lithic/models/payment_retry_params.rbs @@ -1,15 +1,23 @@ module Lithic module Models type payment_retry_params = - { } & Lithic::Internal::Type::request_parameters + { payment_token: String } & Lithic::Internal::Type::request_parameters class PaymentRetryParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - def initialize: (?request_options: Lithic::request_opts) -> void + attr_accessor payment_token: String - def to_hash: -> { request_options: Lithic::RequestOptions } + def initialize: ( + payment_token: String, + ?request_options: Lithic::request_opts + ) -> void + + def to_hash: -> { + payment_token: String, + request_options: Lithic::RequestOptions + } end end end diff --git a/sig/lithic/models/payment_return_params.rbs b/sig/lithic/models/payment_return_params.rbs index 284b9e52..b9c6575b 100644 --- a/sig/lithic/models/payment_return_params.rbs +++ b/sig/lithic/models/payment_return_params.rbs @@ -2,6 +2,7 @@ module Lithic module Models type payment_return_params = { + payment_token: String, financial_account_token: String, return_reason_code: String, addenda: String?, @@ -14,6 +15,8 @@ module Lithic extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + attr_accessor payment_token: String + attr_accessor financial_account_token: String attr_accessor return_reason_code: String @@ -25,6 +28,7 @@ module Lithic attr_accessor memo: String? def initialize: ( + payment_token: String, financial_account_token: String, return_reason_code: String, ?addenda: String?, @@ -34,6 +38,7 @@ module Lithic ) -> void def to_hash: -> { + payment_token: String, financial_account_token: String, return_reason_code: String, addenda: String?, diff --git a/sig/lithic/models/payment_simulate_action_params.rbs b/sig/lithic/models/payment_simulate_action_params.rbs index 7be4f41c..62b44d9e 100644 --- a/sig/lithic/models/payment_simulate_action_params.rbs +++ b/sig/lithic/models/payment_simulate_action_params.rbs @@ -2,6 +2,7 @@ module Lithic module Models type payment_simulate_action_params = { + payment_token: String, event_type: Lithic::Models::PaymentSimulateActionParams::event_type, date_of_death: Date, decline_reason: Lithic::Models::PaymentSimulateActionParams::decline_reason, @@ -14,6 +15,8 @@ module Lithic extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + attr_accessor payment_token: String + attr_accessor event_type: Lithic::Models::PaymentSimulateActionParams::event_type attr_reader date_of_death: Date? @@ -35,6 +38,7 @@ module Lithic def return_reason_code=: (String) -> String def initialize: ( + payment_token: String, event_type: Lithic::Models::PaymentSimulateActionParams::event_type, ?date_of_death: Date, ?decline_reason: Lithic::Models::PaymentSimulateActionParams::decline_reason, @@ -44,6 +48,7 @@ module Lithic ) -> void def to_hash: -> { + payment_token: String, event_type: Lithic::Models::PaymentSimulateActionParams::event_type, date_of_death: Date, decline_reason: Lithic::Models::PaymentSimulateActionParams::decline_reason, diff --git a/sig/lithic/models/reports/settlement/network_total_retrieve_params.rbs b/sig/lithic/models/reports/settlement/network_total_retrieve_params.rbs index 66837d00..6e983b6e 100644 --- a/sig/lithic/models/reports/settlement/network_total_retrieve_params.rbs +++ b/sig/lithic/models/reports/settlement/network_total_retrieve_params.rbs @@ -3,15 +3,23 @@ module Lithic module Reports module Settlement type network_total_retrieve_params = - { } & Lithic::Internal::Type::request_parameters + { token: String } & Lithic::Internal::Type::request_parameters class NetworkTotalRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - def initialize: (?request_options: Lithic::request_opts) -> void + attr_accessor token: String - def to_hash: -> { request_options: Lithic::RequestOptions } + def initialize: ( + token: String, + ?request_options: Lithic::request_opts + ) -> void + + def to_hash: -> { + token: String, + request_options: Lithic::RequestOptions + } end end end diff --git a/sig/lithic/models/reports/settlement_list_details_params.rbs b/sig/lithic/models/reports/settlement_list_details_params.rbs index eb09baec..03aaf0e7 100644 --- a/sig/lithic/models/reports/settlement_list_details_params.rbs +++ b/sig/lithic/models/reports/settlement_list_details_params.rbs @@ -2,13 +2,20 @@ module Lithic module Models module Reports type settlement_list_details_params = - { ending_before: String, page_size: Integer, starting_after: String } + { + report_date: Date, + ending_before: String, + page_size: Integer, + starting_after: String + } & Lithic::Internal::Type::request_parameters class SettlementListDetailsParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + attr_accessor report_date: Date + attr_reader ending_before: String? def ending_before=: (String) -> String @@ -22,6 +29,7 @@ module Lithic def starting_after=: (String) -> String def initialize: ( + report_date: Date, ?ending_before: String, ?page_size: Integer, ?starting_after: String, @@ -29,6 +37,7 @@ module Lithic ) -> void def to_hash: -> { + report_date: Date, ending_before: String, page_size: Integer, starting_after: String, diff --git a/sig/lithic/models/reports/settlement_summary_params.rbs b/sig/lithic/models/reports/settlement_summary_params.rbs index 03df7280..01e7a144 100644 --- a/sig/lithic/models/reports/settlement_summary_params.rbs +++ b/sig/lithic/models/reports/settlement_summary_params.rbs @@ -2,15 +2,23 @@ module Lithic module Models module Reports type settlement_summary_params = - { } & Lithic::Internal::Type::request_parameters + { report_date: Date } & Lithic::Internal::Type::request_parameters class SettlementSummaryParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - def initialize: (?request_options: Lithic::request_opts) -> void + attr_accessor report_date: Date - def to_hash: -> { request_options: Lithic::RequestOptions } + def initialize: ( + report_date: Date, + ?request_options: Lithic::request_opts + ) -> void + + def to_hash: -> { + report_date: Date, + request_options: Lithic::RequestOptions + } end end end diff --git a/sig/lithic/models/three_ds/authentication_retrieve_params.rbs b/sig/lithic/models/three_ds/authentication_retrieve_params.rbs index 2edb0e44..a8b989f6 100644 --- a/sig/lithic/models/three_ds/authentication_retrieve_params.rbs +++ b/sig/lithic/models/three_ds/authentication_retrieve_params.rbs @@ -2,15 +2,24 @@ module Lithic module Models module ThreeDS type authentication_retrieve_params = - { } & Lithic::Internal::Type::request_parameters + { three_ds_authentication_token: String } + & Lithic::Internal::Type::request_parameters class AuthenticationRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - def initialize: (?request_options: Lithic::request_opts) -> void + attr_accessor three_ds_authentication_token: String - def to_hash: -> { request_options: Lithic::RequestOptions } + def initialize: ( + three_ds_authentication_token: String, + ?request_options: Lithic::request_opts + ) -> void + + def to_hash: -> { + three_ds_authentication_token: String, + request_options: Lithic::RequestOptions + } end end end diff --git a/sig/lithic/models/tokenization_activate_params.rbs b/sig/lithic/models/tokenization_activate_params.rbs index 4c026878..73cf7ccb 100644 --- a/sig/lithic/models/tokenization_activate_params.rbs +++ b/sig/lithic/models/tokenization_activate_params.rbs @@ -1,15 +1,24 @@ module Lithic module Models type tokenization_activate_params = - { } & Lithic::Internal::Type::request_parameters + { tokenization_token: String } + & Lithic::Internal::Type::request_parameters class TokenizationActivateParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - def initialize: (?request_options: Lithic::request_opts) -> void + attr_accessor tokenization_token: String - def to_hash: -> { request_options: Lithic::RequestOptions } + def initialize: ( + tokenization_token: String, + ?request_options: Lithic::request_opts + ) -> void + + def to_hash: -> { + tokenization_token: String, + request_options: Lithic::RequestOptions + } end end end diff --git a/sig/lithic/models/tokenization_deactivate_params.rbs b/sig/lithic/models/tokenization_deactivate_params.rbs index 89114c36..b0c37419 100644 --- a/sig/lithic/models/tokenization_deactivate_params.rbs +++ b/sig/lithic/models/tokenization_deactivate_params.rbs @@ -1,15 +1,24 @@ module Lithic module Models type tokenization_deactivate_params = - { } & Lithic::Internal::Type::request_parameters + { tokenization_token: String } + & Lithic::Internal::Type::request_parameters class TokenizationDeactivateParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - def initialize: (?request_options: Lithic::request_opts) -> void + attr_accessor tokenization_token: String - def to_hash: -> { request_options: Lithic::RequestOptions } + def initialize: ( + tokenization_token: String, + ?request_options: Lithic::request_opts + ) -> void + + def to_hash: -> { + tokenization_token: String, + request_options: Lithic::RequestOptions + } end end end diff --git a/sig/lithic/models/tokenization_pause_params.rbs b/sig/lithic/models/tokenization_pause_params.rbs index eb3d9114..98c3303b 100644 --- a/sig/lithic/models/tokenization_pause_params.rbs +++ b/sig/lithic/models/tokenization_pause_params.rbs @@ -1,15 +1,24 @@ module Lithic module Models type tokenization_pause_params = - { } & Lithic::Internal::Type::request_parameters + { tokenization_token: String } + & Lithic::Internal::Type::request_parameters class TokenizationPauseParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - def initialize: (?request_options: Lithic::request_opts) -> void + attr_accessor tokenization_token: String - def to_hash: -> { request_options: Lithic::RequestOptions } + def initialize: ( + tokenization_token: String, + ?request_options: Lithic::request_opts + ) -> void + + def to_hash: -> { + tokenization_token: String, + request_options: Lithic::RequestOptions + } end end end diff --git a/sig/lithic/models/tokenization_resend_activation_code_params.rbs b/sig/lithic/models/tokenization_resend_activation_code_params.rbs index 3dad92f6..35a7aff3 100644 --- a/sig/lithic/models/tokenization_resend_activation_code_params.rbs +++ b/sig/lithic/models/tokenization_resend_activation_code_params.rbs @@ -2,6 +2,7 @@ module Lithic module Models type tokenization_resend_activation_code_params = { + tokenization_token: String, activation_method_type: Lithic::Models::TokenizationResendActivationCodeParams::activation_method_type } & Lithic::Internal::Type::request_parameters @@ -10,6 +11,8 @@ module Lithic extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + attr_accessor tokenization_token: String + attr_reader activation_method_type: Lithic::Models::TokenizationResendActivationCodeParams::activation_method_type? def activation_method_type=: ( @@ -17,11 +20,13 @@ module Lithic ) -> Lithic::Models::TokenizationResendActivationCodeParams::activation_method_type def initialize: ( + tokenization_token: String, ?activation_method_type: Lithic::Models::TokenizationResendActivationCodeParams::activation_method_type, ?request_options: Lithic::request_opts ) -> void def to_hash: -> { + tokenization_token: String, activation_method_type: Lithic::Models::TokenizationResendActivationCodeParams::activation_method_type, request_options: Lithic::RequestOptions } diff --git a/sig/lithic/models/tokenization_retrieve_params.rbs b/sig/lithic/models/tokenization_retrieve_params.rbs index e87a026c..e14a7824 100644 --- a/sig/lithic/models/tokenization_retrieve_params.rbs +++ b/sig/lithic/models/tokenization_retrieve_params.rbs @@ -1,15 +1,24 @@ module Lithic module Models type tokenization_retrieve_params = - { } & Lithic::Internal::Type::request_parameters + { tokenization_token: String } + & Lithic::Internal::Type::request_parameters class TokenizationRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - def initialize: (?request_options: Lithic::request_opts) -> void + attr_accessor tokenization_token: String - def to_hash: -> { request_options: Lithic::RequestOptions } + def initialize: ( + tokenization_token: String, + ?request_options: Lithic::request_opts + ) -> void + + def to_hash: -> { + tokenization_token: String, + request_options: Lithic::RequestOptions + } end end end diff --git a/sig/lithic/models/tokenization_unpause_params.rbs b/sig/lithic/models/tokenization_unpause_params.rbs index c2fbd2d9..21e43f6b 100644 --- a/sig/lithic/models/tokenization_unpause_params.rbs +++ b/sig/lithic/models/tokenization_unpause_params.rbs @@ -1,15 +1,24 @@ module Lithic module Models type tokenization_unpause_params = - { } & Lithic::Internal::Type::request_parameters + { tokenization_token: String } + & Lithic::Internal::Type::request_parameters class TokenizationUnpauseParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - def initialize: (?request_options: Lithic::request_opts) -> void + attr_accessor tokenization_token: String - def to_hash: -> { request_options: Lithic::RequestOptions } + def initialize: ( + tokenization_token: String, + ?request_options: Lithic::request_opts + ) -> void + + def to_hash: -> { + tokenization_token: String, + request_options: Lithic::RequestOptions + } end end end diff --git a/sig/lithic/models/tokenization_update_digital_card_art_params.rbs b/sig/lithic/models/tokenization_update_digital_card_art_params.rbs index b4df2ed3..9ca7965a 100644 --- a/sig/lithic/models/tokenization_update_digital_card_art_params.rbs +++ b/sig/lithic/models/tokenization_update_digital_card_art_params.rbs @@ -1,23 +1,27 @@ module Lithic module Models type tokenization_update_digital_card_art_params = - { digital_card_art_token: String } + { tokenization_token: String, digital_card_art_token: String } & Lithic::Internal::Type::request_parameters class TokenizationUpdateDigitalCardArtParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + attr_accessor tokenization_token: String + attr_reader digital_card_art_token: String? def digital_card_art_token=: (String) -> String def initialize: ( + tokenization_token: String, ?digital_card_art_token: String, ?request_options: Lithic::request_opts ) -> void def to_hash: -> { + tokenization_token: String, digital_card_art_token: String, request_options: Lithic::RequestOptions } diff --git a/sig/lithic/models/transaction_expire_authorization_params.rbs b/sig/lithic/models/transaction_expire_authorization_params.rbs index 6bbc6be5..75b593b4 100644 --- a/sig/lithic/models/transaction_expire_authorization_params.rbs +++ b/sig/lithic/models/transaction_expire_authorization_params.rbs @@ -1,15 +1,23 @@ module Lithic module Models type transaction_expire_authorization_params = - { } & Lithic::Internal::Type::request_parameters + { transaction_token: String } & Lithic::Internal::Type::request_parameters class TransactionExpireAuthorizationParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - def initialize: (?request_options: Lithic::request_opts) -> void + attr_accessor transaction_token: String - def to_hash: -> { request_options: Lithic::RequestOptions } + def initialize: ( + transaction_token: String, + ?request_options: Lithic::request_opts + ) -> void + + def to_hash: -> { + transaction_token: String, + request_options: Lithic::RequestOptions + } end end end diff --git a/sig/lithic/models/transaction_retrieve_params.rbs b/sig/lithic/models/transaction_retrieve_params.rbs index 3e6bde73..e4922df1 100644 --- a/sig/lithic/models/transaction_retrieve_params.rbs +++ b/sig/lithic/models/transaction_retrieve_params.rbs @@ -1,15 +1,23 @@ module Lithic module Models type transaction_retrieve_params = - { } & Lithic::Internal::Type::request_parameters + { transaction_token: String } & Lithic::Internal::Type::request_parameters class TransactionRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - def initialize: (?request_options: Lithic::request_opts) -> void + attr_accessor transaction_token: String - def to_hash: -> { request_options: Lithic::RequestOptions } + def initialize: ( + transaction_token: String, + ?request_options: Lithic::request_opts + ) -> void + + def to_hash: -> { + transaction_token: String, + request_options: Lithic::RequestOptions + } end end end diff --git a/sig/lithic/models/transactions/enhanced_commercial_data_retrieve_params.rbs b/sig/lithic/models/transactions/enhanced_commercial_data_retrieve_params.rbs index b58447b1..a92027e1 100644 --- a/sig/lithic/models/transactions/enhanced_commercial_data_retrieve_params.rbs +++ b/sig/lithic/models/transactions/enhanced_commercial_data_retrieve_params.rbs @@ -2,15 +2,24 @@ module Lithic module Models module Transactions type enhanced_commercial_data_retrieve_params = - { } & Lithic::Internal::Type::request_parameters + { transaction_token: String } + & Lithic::Internal::Type::request_parameters class EnhancedCommercialDataRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - def initialize: (?request_options: Lithic::request_opts) -> void + attr_accessor transaction_token: String - def to_hash: -> { request_options: Lithic::RequestOptions } + def initialize: ( + transaction_token: String, + ?request_options: Lithic::request_opts + ) -> void + + def to_hash: -> { + transaction_token: String, + request_options: Lithic::RequestOptions + } end end end diff --git a/sig/lithic/models/transactions/events/enhanced_commercial_data_retrieve_params.rbs b/sig/lithic/models/transactions/events/enhanced_commercial_data_retrieve_params.rbs index ea3ef7e8..80d9cac1 100644 --- a/sig/lithic/models/transactions/events/enhanced_commercial_data_retrieve_params.rbs +++ b/sig/lithic/models/transactions/events/enhanced_commercial_data_retrieve_params.rbs @@ -3,15 +3,23 @@ module Lithic module Transactions module Events type enhanced_commercial_data_retrieve_params = - { } & Lithic::Internal::Type::request_parameters + { event_token: String } & Lithic::Internal::Type::request_parameters class EnhancedCommercialDataRetrieveParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters - def initialize: (?request_options: Lithic::request_opts) -> void + attr_accessor event_token: String - def to_hash: -> { request_options: Lithic::RequestOptions } + def initialize: ( + event_token: String, + ?request_options: Lithic::request_opts + ) -> void + + def to_hash: -> { + event_token: String, + request_options: Lithic::RequestOptions + } end end end diff --git a/sig/lithic/resources/account_holders.rbs b/sig/lithic/resources/account_holders.rbs index 36114e87..2087b805 100644 --- a/sig/lithic/resources/account_holders.rbs +++ b/sig/lithic/resources/account_holders.rbs @@ -4,25 +4,7 @@ module Lithic attr_reader entities: Lithic::Resources::AccountHolders::Entities def create: ( - business_entity: Lithic::AccountHolderCreateParams::BusinessEntity, - tos_timestamp: String, - workflow: Lithic::Models::AccountHolderCreateParams::workflow, - individual: Lithic::AccountHolderCreateParams::Individual, - address: Lithic::Address, - email: String, - first_name: String, - kyc_exemption_type: Lithic::Models::AccountHolderCreateParams::kyc_exemption_type, - last_name: String, - phone_number: String, - ?beneficial_owner_individuals: ::Array[Lithic::AccountHolderCreateParams::BeneficialOwnerIndividual], - ?control_person: Lithic::AccountHolderCreateParams::ControlPerson, - ?nature_of_business: String, - ?external_id: String, - ?kyb_passed_timestamp: String, - ?naics_code: String, - ?website_url: String, - ?kyc_passed_timestamp: String, - ?business_account_token: String, + body: Lithic::Models::AccountHolderCreateParams::body, ?request_options: Lithic::request_opts ) -> Lithic::Models::AccountHolderCreateResponse @@ -33,21 +15,7 @@ module Lithic def update: ( String account_holder_token, - ?beneficial_owner_individuals: ::Array[Lithic::AccountHolderUpdateParams::BeneficialOwnerIndividual], - ?business_entity: Lithic::AccountHolderUpdateParams::BusinessEntity, - ?control_person: Lithic::AccountHolderUpdateParams::ControlPerson, - ?external_id: String, - ?naics_code: String, - ?nature_of_business: String, - ?website_url: String, - ?individual: Lithic::AccountHolderUpdateParams::Individual, - ?address: Lithic::AddressUpdate, - ?business_account_token: String, - ?email: String, - ?first_name: String, - ?last_name: String, - ?legal_business_name: String, - ?phone_number: String, + body: Lithic::Models::AccountHolderUpdateParams::body, ?request_options: Lithic::request_opts ) -> Lithic::Models::account_holder_update_response diff --git a/sig/lithic/resources/auth_rules/v2.rbs b/sig/lithic/resources/auth_rules/v2.rbs index 4ae767f8..f79a5099 100644 --- a/sig/lithic/resources/auth_rules/v2.rbs +++ b/sig/lithic/resources/auth_rules/v2.rbs @@ -5,15 +5,7 @@ module Lithic attr_reader backtests: Lithic::Resources::AuthRules::V2::Backtests def create: ( - parameters: Lithic::Models::AuthRules::V2CreateParams::parameters, - type: Lithic::Models::AuthRules::V2CreateParams::type_, - card_tokens: ::Array[String], - program_level: bool, - ?account_tokens: ::Array[String], - ?business_account_tokens: ::Array[String], - ?event_stream: Lithic::Models::AuthRules::event_stream, - ?name: String?, - ?excluded_card_tokens: ::Array[String], + body: Lithic::Models::AuthRules::V2CreateParams::body, ?request_options: Lithic::request_opts ) -> Lithic::AuthRules::AuthRule @@ -24,13 +16,7 @@ module Lithic def update: ( String auth_rule_token, - ?account_tokens: ::Array[String], - ?business_account_tokens: ::Array[String], - ?name: String?, - ?state: Lithic::Models::AuthRules::V2UpdateParams::state, - ?card_tokens: ::Array[String], - ?excluded_card_tokens: ::Array[String], - ?program_level: bool, + body: Lithic::Models::AuthRules::V2UpdateParams::body, ?request_options: Lithic::request_opts ) -> Lithic::AuthRules::AuthRule diff --git a/sig/lithic/resources/external_bank_accounts.rbs b/sig/lithic/resources/external_bank_accounts.rbs index 621a3f2b..4fd67784 100644 --- a/sig/lithic/resources/external_bank_accounts.rbs +++ b/sig/lithic/resources/external_bank_accounts.rbs @@ -4,23 +4,7 @@ module Lithic attr_reader micro_deposits: Lithic::Resources::ExternalBankAccounts::MicroDeposits def create: ( - account_number: String, - country: String, - currency: String, - financial_account_token: String, - owner: String, - owner_type: Lithic::Models::owner_type, - routing_number: String, - type: Lithic::Models::ExternalBankAccountCreateParams::type_, - verification_method: Lithic::Models::ExternalBankAccountCreateParams::verification_method, - ?account_token: String, - ?address: Lithic::ExternalBankAccountAddress, - ?company_id: String, - ?dob: Date, - ?doing_business_as: String, - ?name: String, - ?user_defined_id: String, - ?verification_enforcement: bool, + body: Lithic::Models::ExternalBankAccountCreateParams::body, ?request_options: Lithic::request_opts ) -> Lithic::Models::ExternalBankAccountCreateResponse diff --git a/test/lithic/resources/account_holders_test.rb b/test/lithic/resources/account_holders_test.rb index 6b297980..f6f565bf 100644 --- a/test/lithic/resources/account_holders_test.rb +++ b/test/lithic/resources/account_holders_test.rb @@ -6,19 +6,53 @@ class Lithic::Test::Resources::AccountHoldersTest < Lithic::Test::ResourceTest def test_create_required_params response = @lithic.account_holders.create( - address: { - address1: "123 Old Forest Way", - city: "Omaha", - country: "USA", - postal_code: "68022", - state: "NE" - }, - email: "email", - first_name: "first_name", - kyc_exemption_type: :AUTHORIZED_USER, - last_name: "last_name", - phone_number: "phone_number", - workflow: :KYC_EXEMPT + body: { + beneficial_owner_individuals: [ + { + address: { + address1: "300 Normal Forest Way", + city: "Portland", + country: "USA", + postal_code: "90210", + state: "OR" + }, + dob: "1991-03-08T08:00:00Z", + email: "tim@left-earth.com", + first_name: "Timmy", + government_id: "211-23-1412", + last_name: "Turner" + } + ], + business_entity: { + address: { + address1: "123 Old Forest Way", + city: "Omaha", + country: "USA", + postal_code: "61022", + state: "NE" + }, + government_id: "12-3456789", + legal_business_name: "Busy Business, Inc.", + phone_numbers: ["+15555555555"] + }, + control_person: { + address: { + address1: "451 New Forest Way", + city: "Springfield", + country: "USA", + postal_code: "68022", + state: "IL" + }, + dob: "1991-03-08T08:00:00Z", + email: "tom@middle-pluto.com", + first_name: "Tom", + government_id: "111-23-1412", + last_name: "Timothy" + }, + nature_of_business: "Software company selling solutions to the restaurant industry", + tos_timestamp: "2022-03-08T08:00:00Z", + workflow: :KYB_BYO + } ) assert_pattern do @@ -71,8 +105,8 @@ def test_retrieve end end - def test_update - response = @lithic.account_holders.update("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") + def test_update_required_params + response = @lithic.account_holders.update("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", body: {}) assert_pattern do response => Lithic::Models::AccountHolderUpdateResponse diff --git a/test/lithic/resources/auth_rules/v2_test.rb b/test/lithic/resources/auth_rules/v2_test.rb index 2e661d38..f3e31407 100644 --- a/test/lithic/resources/auth_rules/v2_test.rb +++ b/test/lithic/resources/auth_rules/v2_test.rb @@ -6,9 +6,10 @@ class Lithic::Test::Resources::AuthRules::V2Test < Lithic::Test::ResourceTest def test_create_required_params response = @lithic.auth_rules.v2.create( - card_tokens: ["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"], - parameters: {conditions: [{attribute: :MCC, operation: :IS_ONE_OF, value: "string"}]}, - type: :CONDITIONAL_BLOCK + body: { + parameters: {conditions: [{attribute: :MCC, operation: :IS_ONE_OF, value: "string"}]}, + type: :CONDITIONAL_BLOCK + } ) assert_pattern do @@ -60,8 +61,8 @@ def test_retrieve end end - def test_update - response = @lithic.auth_rules.v2.update("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") + def test_update_required_params + response = @lithic.auth_rules.v2.update("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", body: {}) assert_pattern do response => Lithic::AuthRules::AuthRule diff --git a/test/lithic/resources/external_bank_accounts_test.rb b/test/lithic/resources/external_bank_accounts_test.rb index ffbb8ccb..d83c98c9 100644 --- a/test/lithic/resources/external_bank_accounts_test.rb +++ b/test/lithic/resources/external_bank_accounts_test.rb @@ -6,15 +6,17 @@ class Lithic::Test::Resources::ExternalBankAccountsTest < Lithic::Test::Resource def test_create_required_params response = @lithic.external_bank_accounts.create( - account_number: "12345678901234567", - country: "USD", - currency: "USD", - financial_account_token: "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", - owner: "owner", - owner_type: :INDIVIDUAL, - routing_number: "123456789", - type: :CHECKING, - verification_method: :MANUAL + body: { + account_number: "13719713158835300", + country: "USA", + currency: "USD", + financial_account_token: "dabadb3b-700c-41e3-8801-d5dfc84ebea0", + owner: "John Doe", + owner_type: :BUSINESS, + routing_number: "011103093", + type: :CHECKING, + verification_method: :MICRO_DEPOSIT + } ) assert_pattern do From 79ccf19c1facd7161b2b1d57c9e0e9b5ddfb03e8 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 5 Mar 2026 13:06:06 +0000 Subject: [PATCH 7/7] release: 0.7.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 16 ++++++++++++++++ Gemfile.lock | 2 +- README.md | 2 +- lib/lithic/version.rb | 2 +- 5 files changed, 20 insertions(+), 4 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 4208b5cb..1b77f506 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.6.0" + ".": "0.7.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 40944073..0c1585b2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,21 @@ # Changelog +## 0.7.0 (2026-03-05) + +Full Changelog: [v0.6.0...v0.7.0](https://github.com/lithic-com/lithic-ruby/compare/v0.6.0...v0.7.0) + +### Features + +* **api:** add action_counts to rule performance reports and code to authorization actions ([bd02001](https://github.com/lithic-com/lithic-ruby/commit/bd02001603d5893f1095ed7d89f9f019c780fff8)) +* **api:** Add Hold API for financial account fund reservations ([6b16d86](https://github.com/lithic-com/lithic-ruby/commit/6b16d86f054b238b7d2b91c9e0e62df67e88fbd7)) +* **api:** Remove deprecated beneficial owner entities field ([7c54dcf](https://github.com/lithic-com/lithic-ruby/commit/7c54dcf052f9c13b7ab73862f80e279d1184e8ee)) + + +### Chores + +* **internal:** codegen related update ([199e518](https://github.com/lithic-com/lithic-ruby/commit/199e518f942530266541eef7343ff626dfbf7c10)) +* **internal:** codegen related update ([412e84f](https://github.com/lithic-com/lithic-ruby/commit/412e84f1d1e0b574fd791ea420fbf88707a6985a)) + ## 0.6.0 (2026-02-27) Full Changelog: [v0.5.0...v0.6.0](https://github.com/lithic-com/lithic-ruby/compare/v0.5.0...v0.6.0) diff --git a/Gemfile.lock b/Gemfile.lock index 3252a6db..c8b7721f 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -18,7 +18,7 @@ GIT PATH remote: . specs: - lithic (0.6.0) + lithic (0.7.0) cgi connection_pool diff --git a/README.md b/README.md index 9c3d4109..f71bfa9e 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.6.0" +gem "lithic", "~> 0.7.0" ``` diff --git a/lib/lithic/version.rb b/lib/lithic/version.rb index 578f310f..bf8544e6 100644 --- a/lib/lithic/version.rb +++ b/lib/lithic/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Lithic - VERSION = "0.6.0" + VERSION = "0.7.0" end