lithic 0.1.0.pre.alpha.6 → 0.1.0.pre.alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +8 -1
- data/lib/lithic/client.rb +3 -3
- data/lib/lithic/internal/transport/base_client.rb +2 -2
- data/lib/lithic/internal/transport/pooled_net_requester.rb +15 -6
- data/lib/lithic/internal/type/array_of.rb +12 -2
- data/lib/lithic/internal/type/base_model.rb +23 -22
- data/lib/lithic/internal/type/boolean.rb +5 -1
- data/lib/lithic/internal/type/converter.rb +62 -39
- data/lib/lithic/internal/type/enum.rb +13 -9
- data/lib/lithic/internal/type/hash_of.rb +6 -2
- data/lib/lithic/internal/type/io_like.rb +75 -0
- data/lib/lithic/internal/type/request_parameters.rb +11 -2
- data/lib/lithic/internal/type/union.rb +7 -3
- data/lib/lithic/internal/type/unknown.rb +5 -1
- data/lib/lithic/internal/util.rb +81 -26
- data/lib/lithic/models/account.rb +37 -37
- data/lib/lithic/models/account_holder.rb +58 -55
- data/lib/lithic/models/account_holder_create_params.rb +59 -59
- data/lib/lithic/models/account_holder_create_response.rb +6 -6
- data/lib/lithic/models/account_holder_list_params.rb +10 -10
- data/lib/lithic/models/account_holder_simulate_enrollment_document_review_params.rb +2 -2
- data/lib/lithic/models/account_holder_simulate_enrollment_review_params.rb +1 -1
- data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +71 -71
- data/lib/lithic/models/account_holder_update_params.rb +56 -64
- data/lib/lithic/models/account_holder_update_response.rb +75 -75
- data/lib/lithic/models/account_list_params.rb +6 -6
- data/lib/lithic/models/account_spend_limits.rb +6 -6
- data/lib/lithic/models/account_update_params.rb +14 -14
- data/lib/lithic/models/address.rb +5 -5
- data/lib/lithic/models/address_update.rb +3 -3
- data/lib/lithic/models/aggregate_balance.rb +4 -4
- data/lib/lithic/models/auth_rules/auth_rule.rb +6 -6
- data/lib/lithic/models/auth_rules/auth_rule_condition.rb +44 -44
- data/lib/lithic/models/auth_rules/conditional_attribute.rb +44 -44
- data/lib/lithic/models/auth_rules/v2/backtest_results.rb +10 -10
- data/lib/lithic/models/auth_rules/v2_apply_response.rb +2 -2
- data/lib/lithic/models/auth_rules/v2_create_response.rb +2 -2
- data/lib/lithic/models/auth_rules/v2_draft_response.rb +2 -2
- data/lib/lithic/models/auth_rules/v2_list_params.rb +2 -2
- data/lib/lithic/models/auth_rules/v2_list_response.rb +2 -2
- data/lib/lithic/models/auth_rules/v2_promote_response.rb +2 -2
- data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +2 -2
- data/lib/lithic/models/auth_rules/v2_update_params.rb +6 -6
- data/lib/lithic/models/auth_rules/v2_update_response.rb +2 -2
- data/lib/lithic/models/auth_rules/velocity_limit_params.rb +14 -14
- data/lib/lithic/models/auth_rules/velocity_limit_params_period_window.rb +5 -5
- data/lib/lithic/models/balance.rb +4 -4
- data/lib/lithic/models/balance_list_params.rb +1 -1
- data/lib/lithic/models/book_transfer_create_params.rb +4 -4
- data/lib/lithic/models/book_transfer_list_params.rb +7 -7
- data/lib/lithic/models/book_transfer_response.rb +14 -14
- data/lib/lithic/models/card.rb +110 -110
- data/lib/lithic/models/card_convert_physical_params.rb +22 -22
- data/lib/lithic/models/card_create_params.rb +93 -93
- data/lib/lithic/models/card_list_params.rb +6 -6
- data/lib/lithic/models/card_program.rb +1 -1
- data/lib/lithic/models/card_program_list_params.rb +2 -2
- data/lib/lithic/models/card_provision_params.rb +11 -11
- data/lib/lithic/models/card_reissue_params.rb +22 -22
- data/lib/lithic/models/card_renew_params.rb +24 -24
- data/lib/lithic/models/card_spend_limits.rb +6 -6
- data/lib/lithic/models/card_update_params.rb +33 -33
- data/lib/lithic/models/cards/aggregate_balance_list_response.rb +4 -4
- data/lib/lithic/models/cards/balance_list_params.rb +2 -2
- data/lib/lithic/models/cards/balance_list_response.rb +4 -4
- data/lib/lithic/models/cards/financial_transaction_list_params.rb +6 -6
- data/lib/lithic/models/digital_card_art_list_params.rb +2 -2
- data/lib/lithic/models/dispute.rb +88 -88
- data/lib/lithic/models/dispute_evidence.rb +11 -11
- data/lib/lithic/models/dispute_list_evidences_params.rb +6 -6
- data/lib/lithic/models/dispute_list_params.rb +6 -6
- data/lib/lithic/models/document.rb +6 -6
- data/lib/lithic/models/event.rb +51 -51
- data/lib/lithic/models/event_list_attempts_params.rb +6 -6
- data/lib/lithic/models/event_list_params.rb +6 -6
- data/lib/lithic/models/events/subscription_create_params.rb +1 -1
- data/lib/lithic/models/events/subscription_list_attempts_params.rb +6 -6
- data/lib/lithic/models/events/subscription_list_params.rb +2 -2
- data/lib/lithic/models/events/subscription_recover_params.rb +4 -4
- data/lib/lithic/models/events/subscription_replay_missing_params.rb +4 -4
- data/lib/lithic/models/events/subscription_update_params.rb +1 -1
- data/lib/lithic/models/external_bank_account_create_params.rb +4 -4
- data/lib/lithic/models/external_bank_account_create_response.rb +11 -11
- data/lib/lithic/models/external_bank_account_list_params.rb +2 -2
- data/lib/lithic/models/external_bank_account_list_response.rb +11 -11
- data/lib/lithic/models/external_bank_account_retrieve_response.rb +11 -11
- data/lib/lithic/models/external_bank_account_retry_micro_deposits_response.rb +11 -11
- data/lib/lithic/models/external_bank_account_retry_prenote_response.rb +11 -11
- data/lib/lithic/models/external_bank_account_update_params.rb +1 -1
- data/lib/lithic/models/external_bank_account_update_response.rb +11 -11
- data/lib/lithic/models/external_bank_accounts/micro_deposit_create_response.rb +11 -11
- data/lib/lithic/models/external_payment_list_params.rb +7 -7
- data/lib/lithic/models/financial_account_create_params.rb +1 -1
- data/lib/lithic/models/financial_accounts/balance_list_params.rb +2 -2
- data/lib/lithic/models/financial_accounts/balance_list_response.rb +4 -4
- data/lib/lithic/models/financial_accounts/financial_transaction_list_params.rb +6 -6
- data/lib/lithic/models/financial_accounts/loan_tape.rb +13 -13
- data/lib/lithic/models/financial_accounts/loan_tape_list_params.rb +6 -6
- data/lib/lithic/models/financial_accounts/statement.rb +6 -6
- data/lib/lithic/models/financial_accounts/statement_list_params.rb +6 -6
- data/lib/lithic/models/financial_accounts/statements/line_item_list_params.rb +2 -2
- data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +2 -1
- data/lib/lithic/models/financial_transaction.rb +35 -34
- data/lib/lithic/models/kyb.rb +47 -47
- data/lib/lithic/models/kyb_business_entity.rb +9 -9
- data/lib/lithic/models/kyc.rb +12 -12
- data/lib/lithic/models/kyc_exempt.rb +4 -4
- data/lib/lithic/models/management_operation_list_params.rb +7 -7
- data/lib/lithic/models/management_operation_transaction.rb +36 -0
- data/lib/lithic/models/message_attempt.rb +1 -1
- data/lib/lithic/models/payment.rb +66 -54
- data/lib/lithic/models/payment_create_params.rb +1 -1
- data/lib/lithic/models/payment_list_params.rb +6 -6
- data/lib/lithic/models/reports/settlement/network_total_list_params.rb +7 -7
- data/lib/lithic/models/reports/settlement/network_total_list_response.rb +7 -7
- data/lib/lithic/models/reports/settlement/network_total_retrieve_response.rb +7 -7
- data/lib/lithic/models/reports/settlement_list_details_params.rb +2 -2
- data/lib/lithic/models/required_document.rb +2 -2
- data/lib/lithic/models/settlement_detail.rb +5 -5
- data/lib/lithic/models/settlement_report.rb +15 -15
- data/lib/lithic/models/settlement_summary_details.rb +3 -3
- data/lib/lithic/models/shipping_address.rb +9 -9
- data/lib/lithic/models/spend_limit_duration.rb +10 -10
- data/lib/lithic/models/three_ds/authentication_retrieve_response.rb +97 -97
- data/lib/lithic/models/three_ds/authentication_simulate_otp_entry_params.rb +1 -1
- data/lib/lithic/models/three_ds/authentication_simulate_params.rb +7 -7
- data/lib/lithic/models/three_ds/authentication_simulate_response.rb +1 -1
- data/lib/lithic/models/three_ds/challenge_response.rb +3 -3
- data/lib/lithic/models/tokenization.rb +5 -5
- data/lib/lithic/models/tokenization_list_params.rb +6 -6
- data/lib/lithic/models/tokenization_resend_activation_code_params.rb +4 -4
- data/lib/lithic/models/tokenization_simulate_params.rb +3 -3
- data/lib/lithic/models/tokenization_update_digital_card_art_params.rb +3 -3
- data/lib/lithic/models/transaction.rb +95 -95
- data/lib/lithic/models/transaction_list_params.rb +8 -8
- data/lib/lithic/models/transaction_simulate_authorization_advice_params.rb +1 -1
- data/lib/lithic/models/transaction_simulate_authorization_params.rb +38 -38
- data/lib/lithic/models/transaction_simulate_authorization_response.rb +1 -1
- data/lib/lithic/models/transaction_simulate_clearing_params.rb +7 -7
- data/lib/lithic/models/transaction_simulate_credit_authorization_params.rb +4 -4
- data/lib/lithic/models/transaction_simulate_void_params.rb +7 -7
- data/lib/lithic/models/transactions/events/enhanced_data.rb +2 -2
- data/lib/lithic/models/transfer.rb +25 -24
- data/lib/lithic/models/transfer_create_params.rb +4 -4
- data/lib/lithic/request_options.rb +7 -7
- data/lib/lithic/resources/account_holders.rb +52 -52
- data/lib/lithic/resources/accounts.rb +7 -7
- data/lib/lithic/resources/aggregate_balances.rb +1 -1
- data/lib/lithic/resources/auth_rules/v2/backtests.rb +38 -38
- data/lib/lithic/resources/auth_rules/v2.rb +58 -58
- data/lib/lithic/resources/auth_stream_enrollment.rb +8 -8
- data/lib/lithic/resources/book_transfers.rb +2 -2
- data/lib/lithic/resources/cards/financial_transactions.rb +1 -1
- data/lib/lithic/resources/cards.rb +63 -63
- data/lib/lithic/resources/disputes.rb +6 -6
- data/lib/lithic/resources/events/subscriptions.rb +8 -8
- data/lib/lithic/resources/events.rb +2 -2
- data/lib/lithic/resources/external_payments.rb +1 -1
- data/lib/lithic/resources/financial_accounts/financial_transactions.rb +1 -1
- data/lib/lithic/resources/financial_accounts/loan_tapes.rb +1 -1
- data/lib/lithic/resources/financial_accounts/statements.rb +1 -1
- data/lib/lithic/resources/financial_accounts.rb +1 -1
- data/lib/lithic/resources/management_operations.rb +1 -1
- data/lib/lithic/resources/payments.rb +2 -2
- data/lib/lithic/resources/reports/settlement/network_totals.rb +1 -1
- data/lib/lithic/resources/three_ds/authentication.rb +6 -6
- data/lib/lithic/resources/three_ds/decisioning.rb +8 -8
- data/lib/lithic/resources/tokenization_decisioning.rb +7 -7
- data/lib/lithic/resources/tokenizations.rb +46 -46
- data/lib/lithic/resources/transactions/enhanced_commercial_data.rb +1 -1
- data/lib/lithic/resources/transactions/events/enhanced_commercial_data.rb +1 -1
- data/lib/lithic/resources/transactions.rb +24 -24
- data/lib/lithic/resources/transfers.rb +1 -1
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +1 -0
- data/rbi/lib/lithic/client.rbi +6 -9
- data/rbi/lib/lithic/errors.rbi +3 -6
- data/rbi/lib/lithic/internal/cursor_page.rbi +1 -2
- data/rbi/lib/lithic/internal/single_page.rbi +1 -2
- data/rbi/lib/lithic/internal/transport/base_client.rbi +13 -27
- data/rbi/lib/lithic/internal/transport/pooled_net_requester.rbi +8 -14
- data/rbi/lib/lithic/internal/type/array_of.rbi +16 -22
- data/rbi/lib/lithic/internal/type/base_model.rbi +51 -66
- data/rbi/lib/lithic/internal/type/base_page.rbi +5 -10
- data/rbi/lib/lithic/internal/type/boolean.rbi +16 -10
- data/rbi/lib/lithic/internal/type/converter.rbi +42 -38
- data/rbi/lib/lithic/internal/type/enum.rbi +24 -21
- data/rbi/lib/lithic/internal/type/hash_of.rbi +13 -18
- data/rbi/lib/lithic/internal/type/io_like.rbi +49 -0
- data/rbi/lib/lithic/internal/type/request_parameters.rbi +1 -2
- data/rbi/lib/lithic/internal/type/union.rbi +17 -23
- data/rbi/lib/lithic/internal/type/unknown.rbi +12 -12
- data/rbi/lib/lithic/internal/util.rbi +67 -70
- data/rbi/lib/lithic/internal.rbi +1 -1
- data/rbi/lib/lithic/models/account.rbi +46 -56
- data/rbi/lib/lithic/models/account_financial_account_type.rbi +1 -2
- data/rbi/lib/lithic/models/account_holder.rbi +81 -99
- data/rbi/lib/lithic/models/account_holder_create_params.rbi +73 -90
- data/rbi/lib/lithic/models/account_holder_create_response.rbi +9 -12
- data/rbi/lib/lithic/models/account_holder_list_documents_params.rbi +2 -4
- data/rbi/lib/lithic/models/account_holder_list_documents_response.rbi +2 -4
- data/rbi/lib/lithic/models/account_holder_list_params.rbi +10 -13
- data/rbi/lib/lithic/models/account_holder_retrieve_document_params.rbi +2 -4
- data/rbi/lib/lithic/models/account_holder_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/account_holder_simulate_enrollment_document_review_params.rbi +6 -11
- data/rbi/lib/lithic/models/account_holder_simulate_enrollment_review_params.rbi +5 -9
- data/rbi/lib/lithic/models/account_holder_simulate_enrollment_review_response.rbi +103 -123
- data/rbi/lib/lithic/models/account_holder_update_params.rbi +68 -94
- data/rbi/lib/lithic/models/account_holder_update_response.rbi +135 -140
- data/rbi/lib/lithic/models/account_holder_upload_document_params.rbi +3 -6
- data/rbi/lib/lithic/models/account_list_params.rbi +5 -6
- data/rbi/lib/lithic/models/account_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/account_retrieve_spend_limits_params.rbi +2 -4
- data/rbi/lib/lithic/models/account_spend_limits.rbi +14 -22
- data/rbi/lib/lithic/models/account_update_params.rbi +19 -25
- data/rbi/lib/lithic/models/address.rbi +7 -9
- data/rbi/lib/lithic/models/address_update.rbi +5 -7
- data/rbi/lib/lithic/models/aggregate_balance.rbi +7 -11
- data/rbi/lib/lithic/models/aggregate_balance_list_params.rbi +3 -6
- data/rbi/lib/lithic/models/api_status.rbi +2 -4
- data/rbi/lib/lithic/models/auth_rules/auth_rule.rbi +9 -13
- data/rbi/lib/lithic/models/auth_rules/auth_rule_condition.rbi +48 -52
- data/rbi/lib/lithic/models/auth_rules/conditional_attribute.rbi +45 -46
- data/rbi/lib/lithic/models/auth_rules/conditional_block_parameters.rbi +2 -4
- data/rbi/lib/lithic/models/auth_rules/v2/backtest_create_params.rbi +2 -4
- data/rbi/lib/lithic/models/auth_rules/v2/backtest_create_response.rbi +2 -4
- data/rbi/lib/lithic/models/auth_rules/v2/backtest_results.rbi +40 -54
- data/rbi/lib/lithic/models/auth_rules/v2/backtest_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/auth_rules/v2_apply_params.rbi +1 -2
- data/rbi/lib/lithic/models/auth_rules/v2_apply_response.rbi +12 -23
- data/rbi/lib/lithic/models/auth_rules/v2_create_params.rbi +4 -9
- data/rbi/lib/lithic/models/auth_rules/v2_create_response.rbi +12 -23
- data/rbi/lib/lithic/models/auth_rules/v2_delete_params.rbi +2 -4
- data/rbi/lib/lithic/models/auth_rules/v2_draft_params.rbi +3 -6
- data/rbi/lib/lithic/models/auth_rules/v2_draft_response.rbi +12 -23
- data/rbi/lib/lithic/models/auth_rules/v2_list_params.rbi +4 -7
- data/rbi/lib/lithic/models/auth_rules/v2_list_response.rbi +12 -23
- data/rbi/lib/lithic/models/auth_rules/v2_promote_params.rbi +2 -4
- data/rbi/lib/lithic/models/auth_rules/v2_promote_response.rbi +12 -23
- data/rbi/lib/lithic/models/auth_rules/v2_report_params.rbi +2 -4
- data/rbi/lib/lithic/models/auth_rules/v2_report_response.rbi +2 -4
- data/rbi/lib/lithic/models/auth_rules/v2_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/auth_rules/v2_retrieve_response.rbi +12 -23
- data/rbi/lib/lithic/models/auth_rules/v2_update_params.rbi +9 -13
- data/rbi/lib/lithic/models/auth_rules/v2_update_response.rbi +12 -23
- data/rbi/lib/lithic/models/auth_rules/velocity_limit_params.rbi +19 -24
- data/rbi/lib/lithic/models/auth_rules/velocity_limit_params_period_window.rbi +6 -7
- data/rbi/lib/lithic/models/auth_stream_enrollment_retrieve_secret_params.rbi +2 -4
- data/rbi/lib/lithic/models/auth_stream_enrollment_rotate_secret_params.rbi +2 -4
- data/rbi/lib/lithic/models/auth_stream_secret.rbi +2 -4
- data/rbi/lib/lithic/models/balance.rbi +7 -11
- data/rbi/lib/lithic/models/balance_list_params.rbi +4 -8
- data/rbi/lib/lithic/models/book_transfer_create_params.rbi +8 -13
- data/rbi/lib/lithic/models/book_transfer_list_params.rbi +10 -16
- data/rbi/lib/lithic/models/book_transfer_response.rbi +23 -33
- data/rbi/lib/lithic/models/book_transfer_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/book_transfer_reverse_params.rbi +2 -4
- data/rbi/lib/lithic/models/card.rbi +117 -127
- data/rbi/lib/lithic/models/card_convert_physical_params.rbi +24 -26
- data/rbi/lib/lithic/models/card_create_params.rbi +98 -104
- data/rbi/lib/lithic/models/card_embed_params.rbi +2 -4
- data/rbi/lib/lithic/models/card_list_params.rbi +7 -11
- data/rbi/lib/lithic/models/card_program.rbi +3 -6
- data/rbi/lib/lithic/models/card_program_list_params.rbi +4 -6
- data/rbi/lib/lithic/models/card_program_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/card_provision_params.rbi +14 -18
- data/rbi/lib/lithic/models/card_provision_response.rbi +2 -4
- data/rbi/lib/lithic/models/card_reissue_params.rbi +24 -26
- data/rbi/lib/lithic/models/card_renew_params.rbi +27 -31
- data/rbi/lib/lithic/models/card_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/card_retrieve_spend_limits_params.rbi +2 -4
- data/rbi/lib/lithic/models/card_search_by_pan_params.rbi +2 -4
- data/rbi/lib/lithic/models/card_spend_limits.rbi +14 -22
- data/rbi/lib/lithic/models/card_update_params.rbi +37 -42
- data/rbi/lib/lithic/models/cards/aggregate_balance_list_params.rbi +2 -4
- data/rbi/lib/lithic/models/cards/aggregate_balance_list_response.rbi +6 -9
- data/rbi/lib/lithic/models/cards/balance_list_params.rbi +4 -6
- data/rbi/lib/lithic/models/cards/balance_list_response.rbi +7 -11
- data/rbi/lib/lithic/models/cards/financial_transaction_list_params.rbi +9 -15
- data/rbi/lib/lithic/models/cards/financial_transaction_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/carrier.rbi +2 -4
- data/rbi/lib/lithic/models/client_api_status_params.rbi +2 -4
- data/rbi/lib/lithic/models/credit_products/extended_credit.rbi +2 -4
- data/rbi/lib/lithic/models/credit_products/extended_credit_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/credit_products/prime_rate_create_params.rbi +2 -4
- data/rbi/lib/lithic/models/credit_products/prime_rate_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/credit_products/prime_rate_retrieve_response.rbi +4 -8
- data/rbi/lib/lithic/models/digital_card_art.rbi +2 -4
- data/rbi/lib/lithic/models/digital_card_art_list_params.rbi +4 -6
- data/rbi/lib/lithic/models/digital_card_art_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/dispute.rbi +93 -99
- data/rbi/lib/lithic/models/dispute_create_params.rbi +2 -4
- data/rbi/lib/lithic/models/dispute_delete_evidence_params.rbi +2 -4
- data/rbi/lib/lithic/models/dispute_delete_params.rbi +2 -4
- data/rbi/lib/lithic/models/dispute_evidence.rbi +13 -15
- data/rbi/lib/lithic/models/dispute_initiate_evidence_upload_params.rbi +2 -4
- data/rbi/lib/lithic/models/dispute_list_evidences_params.rbi +5 -6
- data/rbi/lib/lithic/models/dispute_list_params.rbi +7 -11
- data/rbi/lib/lithic/models/dispute_retrieve_evidence_params.rbi +2 -4
- data/rbi/lib/lithic/models/dispute_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/dispute_update_params.rbi +2 -4
- data/rbi/lib/lithic/models/document.rbi +13 -21
- data/rbi/lib/lithic/models/event.rbi +58 -61
- data/rbi/lib/lithic/models/event_list_attempts_params.rbi +7 -11
- data/rbi/lib/lithic/models/event_list_params.rbi +7 -11
- data/rbi/lib/lithic/models/event_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/event_subscription.rbi +3 -6
- data/rbi/lib/lithic/models/events/event_subscription_resend_params.rbi +2 -4
- data/rbi/lib/lithic/models/events/subscription_create_params.rbi +4 -7
- data/rbi/lib/lithic/models/events/subscription_delete_params.rbi +2 -4
- data/rbi/lib/lithic/models/events/subscription_list_attempts_params.rbi +7 -11
- data/rbi/lib/lithic/models/events/subscription_list_params.rbi +4 -6
- data/rbi/lib/lithic/models/events/subscription_recover_params.rbi +4 -6
- data/rbi/lib/lithic/models/events/subscription_replay_missing_params.rbi +4 -6
- data/rbi/lib/lithic/models/events/subscription_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/events/subscription_retrieve_secret_params.rbi +2 -4
- data/rbi/lib/lithic/models/events/subscription_retrieve_secret_response.rbi +2 -4
- data/rbi/lib/lithic/models/events/subscription_rotate_secret_params.rbi +2 -4
- data/rbi/lib/lithic/models/events/subscription_send_simulated_example_params.rbi +3 -6
- data/rbi/lib/lithic/models/events/subscription_update_params.rbi +4 -7
- data/rbi/lib/lithic/models/external_bank_account_address.rbi +2 -4
- data/rbi/lib/lithic/models/external_bank_account_create_params.rbi +8 -13
- data/rbi/lib/lithic/models/external_bank_account_create_response.rbi +18 -26
- data/rbi/lib/lithic/models/external_bank_account_list_params.rbi +7 -13
- data/rbi/lib/lithic/models/external_bank_account_list_response.rbi +18 -26
- data/rbi/lib/lithic/models/external_bank_account_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/external_bank_account_retrieve_response.rbi +18 -26
- data/rbi/lib/lithic/models/external_bank_account_retry_micro_deposits_params.rbi +2 -4
- data/rbi/lib/lithic/models/external_bank_account_retry_micro_deposits_response.rbi +18 -26
- data/rbi/lib/lithic/models/external_bank_account_retry_prenote_params.rbi +2 -4
- data/rbi/lib/lithic/models/external_bank_account_retry_prenote_response.rbi +16 -22
- data/rbi/lib/lithic/models/external_bank_account_update_params.rbi +4 -8
- data/rbi/lib/lithic/models/external_bank_account_update_response.rbi +18 -26
- data/rbi/lib/lithic/models/external_bank_accounts/micro_deposit_create_params.rbi +2 -4
- data/rbi/lib/lithic/models/external_bank_accounts/micro_deposit_create_response.rbi +18 -26
- data/rbi/lib/lithic/models/external_payment.rbi +10 -21
- data/rbi/lib/lithic/models/external_payment_cancel_params.rbi +2 -4
- data/rbi/lib/lithic/models/external_payment_create_params.rbi +5 -11
- data/rbi/lib/lithic/models/external_payment_list_params.rbi +10 -16
- data/rbi/lib/lithic/models/external_payment_release_params.rbi +2 -4
- data/rbi/lib/lithic/models/external_payment_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/external_payment_reverse_params.rbi +2 -4
- data/rbi/lib/lithic/models/external_payment_settle_params.rbi +3 -6
- data/rbi/lib/lithic/models/financial_account.rbi +9 -20
- data/rbi/lib/lithic/models/financial_account_create_params.rbi +2 -4
- data/rbi/lib/lithic/models/financial_account_list_params.rbi +3 -6
- data/rbi/lib/lithic/models/financial_account_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/financial_account_update_params.rbi +2 -4
- data/rbi/lib/lithic/models/financial_account_update_status_params.rbi +4 -8
- data/rbi/lib/lithic/models/financial_accounts/balance_list_params.rbi +4 -6
- data/rbi/lib/lithic/models/financial_accounts/balance_list_response.rbi +7 -11
- data/rbi/lib/lithic/models/financial_accounts/credit_configuration_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/financial_accounts/credit_configuration_update_params.rbi +2 -5
- data/rbi/lib/lithic/models/financial_accounts/financial_account_credit_config.rbi +4 -9
- data/rbi/lib/lithic/models/financial_accounts/financial_transaction_list_params.rbi +9 -15
- data/rbi/lib/lithic/models/financial_accounts/financial_transaction_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/financial_accounts/loan_tape.rbi +51 -91
- data/rbi/lib/lithic/models/financial_accounts/loan_tape_list_params.rbi +5 -6
- data/rbi/lib/lithic/models/financial_accounts/loan_tape_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/financial_accounts/statement.rbi +30 -56
- data/rbi/lib/lithic/models/financial_accounts/statement_list_params.rbi +6 -9
- data/rbi/lib/lithic/models/financial_accounts/statement_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/financial_accounts/statements/line_item_list_params.rbi +3 -4
- data/rbi/lib/lithic/models/financial_accounts/statements/statement_line_items.rbi +12 -14
- data/rbi/lib/lithic/models/financial_accounts/statements.rbi +2 -4
- data/rbi/lib/lithic/models/financial_transaction.rbi +44 -53
- data/rbi/lib/lithic/models/instance_financial_account_type.rbi +1 -2
- data/rbi/lib/lithic/models/kyb.rbi +58 -72
- data/rbi/lib/lithic/models/kyb_business_entity.rbi +13 -18
- data/rbi/lib/lithic/models/kyc.rbi +17 -22
- data/rbi/lib/lithic/models/kyc_exempt.rbi +8 -13
- data/rbi/lib/lithic/models/management_operation_create_params.rbi +5 -11
- data/rbi/lib/lithic/models/management_operation_list_params.rbi +9 -14
- data/rbi/lib/lithic/models/management_operation_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/management_operation_reverse_params.rbi +2 -4
- data/rbi/lib/lithic/models/management_operation_transaction.rbi +60 -20
- data/rbi/lib/lithic/models/message_attempt.rbi +3 -5
- data/rbi/lib/lithic/models/owner_type.rbi +1 -2
- data/rbi/lib/lithic/models/payment.rbi +85 -89
- data/rbi/lib/lithic/models/payment_create_params.rbi +8 -16
- data/rbi/lib/lithic/models/payment_create_response.rbi +2 -4
- data/rbi/lib/lithic/models/payment_list_params.rbi +9 -15
- data/rbi/lib/lithic/models/payment_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/payment_retry_params.rbi +2 -4
- data/rbi/lib/lithic/models/payment_retry_response.rbi +2 -4
- data/rbi/lib/lithic/models/payment_simulate_action_params.rbi +4 -8
- data/rbi/lib/lithic/models/payment_simulate_action_response.rbi +3 -6
- data/rbi/lib/lithic/models/payment_simulate_receipt_params.rbi +2 -4
- data/rbi/lib/lithic/models/payment_simulate_receipt_response.rbi +3 -6
- data/rbi/lib/lithic/models/payment_simulate_release_params.rbi +2 -4
- data/rbi/lib/lithic/models/payment_simulate_release_response.rbi +3 -6
- data/rbi/lib/lithic/models/payment_simulate_return_params.rbi +2 -4
- data/rbi/lib/lithic/models/payment_simulate_return_response.rbi +3 -6
- data/rbi/lib/lithic/models/reports/settlement/network_total_list_params.rbi +8 -12
- data/rbi/lib/lithic/models/reports/settlement/network_total_list_response.rbi +12 -18
- data/rbi/lib/lithic/models/reports/settlement/network_total_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/reports/settlement/network_total_retrieve_response.rbi +12 -18
- data/rbi/lib/lithic/models/reports/settlement_list_details_params.rbi +4 -6
- data/rbi/lib/lithic/models/reports/settlement_summary_params.rbi +2 -4
- data/rbi/lib/lithic/models/required_document.rbi +4 -6
- data/rbi/lib/lithic/models/responder_endpoint_check_status_params.rbi +3 -6
- data/rbi/lib/lithic/models/responder_endpoint_create_params.rbi +3 -6
- data/rbi/lib/lithic/models/responder_endpoint_create_response.rbi +2 -4
- data/rbi/lib/lithic/models/responder_endpoint_delete_params.rbi +3 -6
- data/rbi/lib/lithic/models/responder_endpoint_status.rbi +2 -4
- data/rbi/lib/lithic/models/settlement_detail.rbi +11 -18
- data/rbi/lib/lithic/models/settlement_report.rbi +17 -20
- data/rbi/lib/lithic/models/settlement_summary_details.rbi +6 -10
- data/rbi/lib/lithic/models/shipping_address.rbi +11 -14
- data/rbi/lib/lithic/models/spend_limit_duration.rbi +11 -12
- data/rbi/lib/lithic/models/three_ds/authentication_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/three_ds/authentication_retrieve_response.rbi +137 -176
- data/rbi/lib/lithic/models/three_ds/authentication_simulate_otp_entry_params.rbi +3 -5
- data/rbi/lib/lithic/models/three_ds/authentication_simulate_params.rbi +14 -21
- data/rbi/lib/lithic/models/three_ds/authentication_simulate_response.rbi +3 -5
- data/rbi/lib/lithic/models/three_ds/challenge_response.rbi +5 -7
- data/rbi/lib/lithic/models/three_ds/challenge_result.rbi +1 -2
- data/rbi/lib/lithic/models/three_ds/decisioning_challenge_response_params.rbi +2 -4
- data/rbi/lib/lithic/models/three_ds/decisioning_retrieve_secret_params.rbi +2 -4
- data/rbi/lib/lithic/models/three_ds/decisioning_retrieve_secret_response.rbi +2 -4
- data/rbi/lib/lithic/models/three_ds/decisioning_rotate_secret_params.rbi +2 -4
- data/rbi/lib/lithic/models/tokenization.rbi +14 -24
- data/rbi/lib/lithic/models/tokenization_activate_params.rbi +2 -4
- data/rbi/lib/lithic/models/tokenization_deactivate_params.rbi +2 -4
- data/rbi/lib/lithic/models/tokenization_decisioning_retrieve_secret_params.rbi +2 -4
- data/rbi/lib/lithic/models/tokenization_decisioning_rotate_secret_params.rbi +2 -4
- data/rbi/lib/lithic/models/tokenization_decisioning_rotate_secret_response.rbi +2 -4
- data/rbi/lib/lithic/models/tokenization_list_params.rbi +7 -11
- data/rbi/lib/lithic/models/tokenization_pause_params.rbi +2 -4
- data/rbi/lib/lithic/models/tokenization_resend_activation_code_params.rbi +7 -10
- data/rbi/lib/lithic/models/tokenization_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/tokenization_retrieve_response.rbi +2 -4
- data/rbi/lib/lithic/models/tokenization_secret.rbi +2 -4
- data/rbi/lib/lithic/models/tokenization_simulate_params.rbi +7 -12
- data/rbi/lib/lithic/models/tokenization_simulate_response.rbi +2 -4
- data/rbi/lib/lithic/models/tokenization_unpause_params.rbi +2 -4
- data/rbi/lib/lithic/models/tokenization_update_digital_card_art_params.rbi +5 -7
- data/rbi/lib/lithic/models/tokenization_update_digital_card_art_response.rbi +2 -4
- data/rbi/lib/lithic/models/transaction.rbi +168 -236
- data/rbi/lib/lithic/models/transaction_expire_authorization_params.rbi +2 -4
- data/rbi/lib/lithic/models/transaction_list_params.rbi +10 -15
- data/rbi/lib/lithic/models/transaction_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/transaction_simulate_authorization_advice_params.rbi +3 -5
- data/rbi/lib/lithic/models/transaction_simulate_authorization_advice_response.rbi +2 -4
- data/rbi/lib/lithic/models/transaction_simulate_authorization_params.rbi +41 -45
- data/rbi/lib/lithic/models/transaction_simulate_authorization_response.rbi +3 -5
- data/rbi/lib/lithic/models/transaction_simulate_clearing_params.rbi +9 -11
- data/rbi/lib/lithic/models/transaction_simulate_clearing_response.rbi +2 -4
- data/rbi/lib/lithic/models/transaction_simulate_credit_authorization_params.rbi +6 -8
- data/rbi/lib/lithic/models/transaction_simulate_credit_authorization_response.rbi +2 -4
- data/rbi/lib/lithic/models/transaction_simulate_return_params.rbi +2 -4
- data/rbi/lib/lithic/models/transaction_simulate_return_response.rbi +2 -4
- data/rbi/lib/lithic/models/transaction_simulate_return_reversal_params.rbi +2 -4
- data/rbi/lib/lithic/models/transaction_simulate_return_reversal_response.rbi +2 -4
- data/rbi/lib/lithic/models/transaction_simulate_void_params.rbi +10 -13
- data/rbi/lib/lithic/models/transaction_simulate_void_response.rbi +2 -4
- data/rbi/lib/lithic/models/transactions/enhanced_commercial_data_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/transactions/enhanced_commercial_data_retrieve_response.rbi +2 -4
- data/rbi/lib/lithic/models/transactions/events/enhanced_commercial_data_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/transactions/events/enhanced_data.rbi +21 -35
- data/rbi/lib/lithic/models/transfer.rbi +34 -43
- data/rbi/lib/lithic/models/transfer_create_params.rbi +6 -8
- data/rbi/lib/lithic/models/verification_method.rbi +1 -2
- data/rbi/lib/lithic/request_options.rbi +9 -11
- data/rbi/lib/lithic/resources/account_holders.rbi +118 -145
- data/rbi/lib/lithic/resources/accounts.rbi +26 -35
- data/rbi/lib/lithic/resources/aggregate_balances.rbi +3 -6
- data/rbi/lib/lithic/resources/auth_rules/v2/backtests.rbi +40 -45
- data/rbi/lib/lithic/resources/auth_rules/v2.rbi +69 -88
- data/rbi/lib/lithic/resources/auth_rules.rbi +1 -2
- data/rbi/lib/lithic/resources/auth_stream_enrollment.rbi +11 -14
- data/rbi/lib/lithic/resources/balances.rbi +3 -6
- data/rbi/lib/lithic/resources/book_transfers.rbi +15 -24
- data/rbi/lib/lithic/resources/card_programs.rbi +5 -10
- data/rbi/lib/lithic/resources/cards/aggregate_balances.rbi +2 -5
- data/rbi/lib/lithic/resources/cards/balances.rbi +4 -7
- data/rbi/lib/lithic/resources/cards/financial_transactions.rbi +7 -12
- data/rbi/lib/lithic/resources/cards.rbi +215 -236
- data/rbi/lib/lithic/resources/credit_products/extended_credit.rbi +2 -5
- data/rbi/lib/lithic/resources/credit_products/prime_rates.rbi +3 -8
- data/rbi/lib/lithic/resources/credit_products.rbi +1 -2
- data/rbi/lib/lithic/resources/digital_card_art.rbi +8 -13
- data/rbi/lib/lithic/resources/disputes.rbi +22 -37
- data/rbi/lib/lithic/resources/events/event_subscriptions.rbi +2 -4
- data/rbi/lib/lithic/resources/events/subscriptions.rbi +29 -48
- data/rbi/lib/lithic/resources/events.rbi +12 -18
- data/rbi/lib/lithic/resources/external_bank_accounts/micro_deposits.rbi +2 -4
- data/rbi/lib/lithic/resources/external_bank_accounts.rbi +18 -23
- data/rbi/lib/lithic/resources/external_payments.rbi +13 -28
- data/rbi/lib/lithic/resources/financial_accounts/balances.rbi +4 -7
- data/rbi/lib/lithic/resources/financial_accounts/credit_configuration.rbi +3 -8
- data/rbi/lib/lithic/resources/financial_accounts/financial_transactions.rbi +7 -12
- data/rbi/lib/lithic/resources/financial_accounts/loan_tapes.rbi +7 -12
- data/rbi/lib/lithic/resources/financial_accounts/statements/line_items.rbi +5 -8
- data/rbi/lib/lithic/resources/financial_accounts/statements.rbi +7 -12
- data/rbi/lib/lithic/resources/financial_accounts.rbi +7 -16
- data/rbi/lib/lithic/resources/management_operations.rbi +10 -19
- data/rbi/lib/lithic/resources/payments.rbi +14 -29
- data/rbi/lib/lithic/resources/reports/settlement/network_totals.rbi +8 -13
- data/rbi/lib/lithic/resources/reports/settlement.rbi +5 -10
- data/rbi/lib/lithic/resources/reports.rbi +1 -2
- data/rbi/lib/lithic/resources/responder_endpoints.rbi +4 -11
- data/rbi/lib/lithic/resources/three_ds/authentication.rbi +12 -19
- data/rbi/lib/lithic/resources/three_ds/decisioning.rbi +15 -20
- data/rbi/lib/lithic/resources/three_ds.rbi +1 -2
- data/rbi/lib/lithic/resources/tokenization_decisioning.rbi +10 -13
- data/rbi/lib/lithic/resources/tokenizations.rbi +66 -85
- data/rbi/lib/lithic/resources/transactions/enhanced_commercial_data.rbi +3 -6
- data/rbi/lib/lithic/resources/transactions/events/enhanced_commercial_data.rbi +3 -6
- data/rbi/lib/lithic/resources/transactions/events.rbi +1 -2
- data/rbi/lib/lithic/resources/transactions.rbi +79 -100
- data/rbi/lib/lithic/resources/transfers.rbi +7 -10
- data/sig/lithic/internal/transport/pooled_net_requester.rbs +1 -1
- data/sig/lithic/internal/type/array_of.rbs +5 -2
- data/sig/lithic/internal/type/base_model.rbs +5 -2
- data/sig/lithic/internal/type/boolean.rbs +5 -2
- data/sig/lithic/internal/type/converter.rbs +11 -5
- data/sig/lithic/internal/type/enum.rbs +5 -2
- data/sig/lithic/internal/type/hash_of.rbs +5 -2
- data/sig/lithic/internal/type/io_like.rbs +23 -0
- data/sig/lithic/internal/type/union.rbs +5 -2
- data/sig/lithic/internal/type/unknown.rbs +5 -2
- data/sig/lithic/internal/util.rbs +17 -2
- data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +2 -0
- data/sig/lithic/models/financial_transaction.rbs +2 -0
- data/sig/lithic/models/management_operation_transaction.rbs +27 -0
- data/sig/lithic/models/payment.rbs +8 -2
- data/sig/lithic/models/transfer.rbs +2 -0
- metadata +5 -2
@@ -6,30 +6,30 @@ module Lithic
|
|
6
6
|
class V2
|
7
7
|
class Backtests
|
8
8
|
# Initiates a request to asynchronously generate a backtest for an authorization
|
9
|
-
#
|
10
|
-
#
|
11
|
-
#
|
12
|
-
#
|
13
|
-
#
|
14
|
-
#
|
15
|
-
#
|
16
|
-
#
|
17
|
-
#
|
9
|
+
# rule. During backtesting, both the active version (if one exists) and the draft
|
10
|
+
# version of the Authorization Rule are evaluated by replaying historical
|
11
|
+
# transaction data against the rule's conditions. This process allows customers to
|
12
|
+
# simulate and understand the effects of proposed rule changes before deployment.
|
13
|
+
# The generated backtest report provides detailed results showing whether the
|
14
|
+
# draft version of the Auth Rule would have approved or declined historical
|
15
|
+
# transactions which were processed during the backtest period. These reports help
|
16
|
+
# evaluate how changes to rule configurations might affect overall transaction
|
17
|
+
# approval rates.
|
18
18
|
#
|
19
|
-
#
|
20
|
-
#
|
21
|
-
#
|
22
|
-
#
|
23
|
-
#
|
24
|
-
#
|
19
|
+
# The generated backtest report will be delivered asynchronously through a webhook
|
20
|
+
# with `event_type` = `auth_rules.backtest_report.created`. See the docs on
|
21
|
+
# setting up [webhook subscriptions](https://docs.lithic.com/docs/events-api). It
|
22
|
+
# is also possible to request backtest reports on-demand through the
|
23
|
+
# `/v2/auth_rules/{auth_rule_token}/backtests/{auth_rule_backtest_token}`
|
24
|
+
# endpoint.
|
25
25
|
#
|
26
|
-
#
|
27
|
-
#
|
28
|
-
#
|
29
|
-
#
|
30
|
-
#
|
31
|
-
#
|
32
|
-
#
|
26
|
+
# Lithic currently supports backtesting for `CONDITIONAL_BLOCK` rules. Backtesting
|
27
|
+
# for `VELOCITY_LIMIT` rules is generally not supported. In specific cases (i.e.
|
28
|
+
# where Lithic has pre-calculated the requested velocity metrics for historical
|
29
|
+
# transactions), a backtest may be feasible. However, such cases are uncommon and
|
30
|
+
# customers should not anticipate support for velocity backtests under most
|
31
|
+
# configurations. If a historical transaction does not feature the required inputs
|
32
|
+
# to evaluate the rule, then it will not be included in the final backtest report.
|
33
33
|
sig do
|
34
34
|
params(
|
35
35
|
auth_rule_token: String,
|
@@ -47,27 +47,25 @@ module Lithic
|
|
47
47
|
# The start time of the backtest.
|
48
48
|
start: nil,
|
49
49
|
request_options: {}
|
50
|
-
)
|
51
|
-
end
|
52
|
-
|
50
|
+
); end
|
53
51
|
# Returns the backtest results of an authorization rule (if available).
|
54
52
|
#
|
55
|
-
#
|
56
|
-
#
|
57
|
-
#
|
58
|
-
#
|
59
|
-
#
|
60
|
-
#
|
61
|
-
#
|
53
|
+
# Backtesting is an asynchronous process that requires time to complete. If a
|
54
|
+
# customer retrieves the backtest results using this endpoint before the report is
|
55
|
+
# fully generated, the response will return null for `results.current_version` and
|
56
|
+
# `results.draft_version`. Customers are advised to wait for the backtest creation
|
57
|
+
# process to complete (as indicated by the webhook event
|
58
|
+
# auth_rules.backtest_report.created) before retrieving results from this
|
59
|
+
# endpoint.
|
62
60
|
#
|
63
|
-
#
|
64
|
-
#
|
65
|
-
#
|
66
|
-
#
|
67
|
-
#
|
68
|
-
#
|
69
|
-
#
|
70
|
-
#
|
61
|
+
# Backtesting is an asynchronous process, while the backtest is being processed,
|
62
|
+
# results will not be available which will cause `results.current_version` and
|
63
|
+
# `results.draft_version` objects to contain `null`. The entries in `results` will
|
64
|
+
# also always represent the configuration of the rule at the time requests are
|
65
|
+
# made to this endpoint. For example, the results for `current_version` in the
|
66
|
+
# served backtest report will be consistent with which version of the rule is
|
67
|
+
# currently activated in the Auth Stream, regardless of which version of the rule
|
68
|
+
# was active in the Auth Stream at the time a backtest is requested.
|
71
69
|
sig do
|
72
70
|
params(
|
73
71
|
auth_rule_backtest_token: String,
|
@@ -82,13 +80,10 @@ module Lithic
|
|
82
80
|
# Globally unique identifier for the Auth Rule.
|
83
81
|
auth_rule_token:,
|
84
82
|
request_options: {}
|
85
|
-
)
|
86
|
-
end
|
87
|
-
|
83
|
+
); end
|
88
84
|
# @api private
|
89
85
|
sig { params(client: Lithic::Client).returns(T.attached_class) }
|
90
|
-
def self.new(client:)
|
91
|
-
end
|
86
|
+
def self.new(client:); end
|
92
87
|
end
|
93
88
|
end
|
94
89
|
end
|
@@ -41,9 +41,7 @@ module Lithic
|
|
41
41
|
# Card tokens to which the Auth Rule does not apply.
|
42
42
|
excluded_card_tokens: nil,
|
43
43
|
request_options: {}
|
44
|
-
)
|
45
|
-
end
|
46
|
-
|
44
|
+
); end
|
47
45
|
# Fetches a V2 authorization rule by its token
|
48
46
|
sig do
|
49
47
|
params(
|
@@ -56,14 +54,12 @@ module Lithic
|
|
56
54
|
# Globally unique identifier for the Auth Rule.
|
57
55
|
auth_rule_token,
|
58
56
|
request_options: {}
|
59
|
-
)
|
60
|
-
end
|
61
|
-
|
57
|
+
); end
|
62
58
|
# Updates a V2 authorization rule's properties
|
63
59
|
#
|
64
|
-
#
|
65
|
-
#
|
66
|
-
#
|
60
|
+
# If `account_tokens`, `card_tokens`, `program_level`, or `excluded_card_tokens`
|
61
|
+
# is provided, this will replace existing associations with the provided list of
|
62
|
+
# entities.
|
67
63
|
sig do
|
68
64
|
params(
|
69
65
|
auth_rule_token: String,
|
@@ -86,9 +82,9 @@ module Lithic
|
|
86
82
|
name: nil,
|
87
83
|
# The desired state of the Auth Rule.
|
88
84
|
#
|
89
|
-
#
|
90
|
-
#
|
91
|
-
#
|
85
|
+
# Note that only deactivating an Auth Rule through this endpoint is supported at
|
86
|
+
# this time. If you need to (re-)activate an Auth Rule the /promote endpoint
|
87
|
+
# should be used to promote a draft to the currently active version.
|
92
88
|
state: nil,
|
93
89
|
# Card tokens to which the Auth Rule applies.
|
94
90
|
card_tokens: nil,
|
@@ -97,9 +93,7 @@ module Lithic
|
|
97
93
|
# Whether the Auth Rule applies to all authorizations on the card program.
|
98
94
|
program_level: nil,
|
99
95
|
request_options: {}
|
100
|
-
)
|
101
|
-
end
|
102
|
-
|
96
|
+
); end
|
103
97
|
# Lists V2 authorization rules
|
104
98
|
sig do
|
105
99
|
params(
|
@@ -118,17 +112,15 @@ module Lithic
|
|
118
112
|
# Only return Authorization Rules that are bound to the provided card token.
|
119
113
|
card_token: nil,
|
120
114
|
# A cursor representing an item's token before which a page of results should end.
|
121
|
-
#
|
115
|
+
# Used to retrieve the previous page of results before this item.
|
122
116
|
ending_before: nil,
|
123
117
|
# Page size (for pagination).
|
124
118
|
page_size: nil,
|
125
119
|
# A cursor representing an item's token after which a page of results should
|
126
|
-
#
|
120
|
+
# begin. Used to retrieve the next page of results after this item.
|
127
121
|
starting_after: nil,
|
128
122
|
request_options: {}
|
129
|
-
)
|
130
|
-
end
|
131
|
-
|
123
|
+
); end
|
132
124
|
# Deletes a V2 authorization rule
|
133
125
|
sig do
|
134
126
|
params(
|
@@ -141,13 +133,11 @@ module Lithic
|
|
141
133
|
# Globally unique identifier for the Auth Rule.
|
142
134
|
auth_rule_token,
|
143
135
|
request_options: {}
|
144
|
-
)
|
145
|
-
end
|
146
|
-
|
136
|
+
); end
|
147
137
|
# Associates a V2 authorization rule with a card program, the provided account(s)
|
148
|
-
#
|
138
|
+
# or card(s).
|
149
139
|
#
|
150
|
-
#
|
140
|
+
# Prefer using the `PATCH` method for this operation.
|
151
141
|
sig do
|
152
142
|
params(
|
153
143
|
auth_rule_token: String,
|
@@ -171,13 +161,11 @@ module Lithic
|
|
171
161
|
# Card tokens to which the Auth Rule does not apply.
|
172
162
|
excluded_card_tokens: nil,
|
173
163
|
request_options: {}
|
174
|
-
)
|
175
|
-
end
|
176
|
-
|
164
|
+
); end
|
177
165
|
# Creates a new draft version of a rule that will be ran in shadow mode.
|
178
166
|
#
|
179
|
-
#
|
180
|
-
#
|
167
|
+
# This can also be utilized to reset the draft parameters, causing a draft version
|
168
|
+
# to no longer be ran in shadow mode.
|
181
169
|
sig do
|
182
170
|
params(
|
183
171
|
auth_rule_token: String,
|
@@ -198,11 +186,9 @@ module Lithic
|
|
198
186
|
# Parameters for the Auth Rule
|
199
187
|
parameters: nil,
|
200
188
|
request_options: {}
|
201
|
-
)
|
202
|
-
end
|
203
|
-
|
189
|
+
); end
|
204
190
|
# Promotes the draft version of an authorization rule to the currently active
|
205
|
-
#
|
191
|
+
# version such that it is enforced in the authorization stream.
|
206
192
|
sig do
|
207
193
|
params(
|
208
194
|
auth_rule_token: String,
|
@@ -214,60 +200,58 @@ module Lithic
|
|
214
200
|
# Globally unique identifier for the Auth Rule.
|
215
201
|
auth_rule_token,
|
216
202
|
request_options: {}
|
217
|
-
)
|
218
|
-
end
|
219
|
-
|
203
|
+
); end
|
220
204
|
# Requests a performance report of an authorization rule to be asynchronously
|
221
|
-
#
|
222
|
-
#
|
223
|
-
#
|
224
|
-
#
|
225
|
-
#
|
205
|
+
# generated. Reports can only be run on rules in draft or active mode and will
|
206
|
+
# included approved and declined statistics as well as examples. The generated
|
207
|
+
# report will be delivered asynchronously through a webhook with `event_type` =
|
208
|
+
# `auth_rules.performance_report.created`. See the docs on setting up
|
209
|
+
# [webhook subscriptions](https://docs.lithic.com/docs/events-api).
|
226
210
|
#
|
227
|
-
#
|
228
|
-
#
|
229
|
-
#
|
230
|
-
#
|
231
|
-
#
|
232
|
-
#
|
233
|
-
#
|
234
|
-
#
|
211
|
+
# Reports are generated based on data collected by Lithic's authorization
|
212
|
+
# processing system in the trailing week. The performance of the auth rule will be
|
213
|
+
# assessed on the configuration of the auth rule at the time the report is
|
214
|
+
# requested. This implies that if a performance report is requested, right after
|
215
|
+
# updating an auth rule, depending on the number of authorizations processed for a
|
216
|
+
# card program, it may be the case that no data is available for the report.
|
217
|
+
# Therefore Lithic recommends to decouple making updates to an Auth Rule, and
|
218
|
+
# requesting performance reports.
|
235
219
|
#
|
236
|
-
#
|
220
|
+
# To make this concrete, consider the following example:
|
237
221
|
#
|
238
|
-
#
|
239
|
-
#
|
240
|
-
#
|
241
|
-
#
|
242
|
-
#
|
243
|
-
#
|
244
|
-
#
|
245
|
-
#
|
246
|
-
#
|
247
|
-
#
|
248
|
-
#
|
249
|
-
#
|
250
|
-
#
|
251
|
-
#
|
252
|
-
#
|
253
|
-
#
|
254
|
-
#
|
255
|
-
#
|
256
|
-
#
|
257
|
-
#
|
258
|
-
#
|
259
|
-
#
|
260
|
-
#
|
261
|
-
#
|
262
|
-
#
|
263
|
-
#
|
264
|
-
#
|
222
|
+
# 1. At time `t`, a new Auth Rule is created, and applies to all authorizations on
|
223
|
+
# a card program. The Auth Rule has not yet been promoted, causing the draft
|
224
|
+
# version of the rule to be applied in shadow mode.
|
225
|
+
# 2. At time `t + 1 hour` a performance report is requested for the Auth Rule.
|
226
|
+
# This performance report will _only_ contain data for the Auth Rule being
|
227
|
+
# executed in the window between `t` and `t + 1 hour`. This is because Lithic's
|
228
|
+
# transaction processing system will only start capturing data for the Auth
|
229
|
+
# Rule at the time it is created.
|
230
|
+
# 3. At time `t + 2 hours` the draft version of the Auth Rule is promoted to the
|
231
|
+
# active version of the Auth Rule by calling the
|
232
|
+
# `/v2/auth_rules/{auth_rule_token}/promote` endpoint. If a performance report
|
233
|
+
# is requested at this moment it will still only contain data for this version
|
234
|
+
# of the rule, but the window of available data will now span from `t` to
|
235
|
+
# `t + 2 hours`.
|
236
|
+
# 4. At time `t + 3 hours` a new version of the rule is drafted by calling the
|
237
|
+
# `/v2/auth_rules/{auth_rule_token}/draft` endpoint. If a performance report is
|
238
|
+
# requested right at this moment, it will only contain data for authorizations
|
239
|
+
# to which both the active version and the draft version is applied. Lithic
|
240
|
+
# does this to ensure that performance reports represent a fair comparison
|
241
|
+
# between rules. Because there may be no authorizations in this window, and
|
242
|
+
# because there may be some lag before data is available in a performance
|
243
|
+
# report, the requested performance report could contain no to little data.
|
244
|
+
# 5. At time `t + 4 hours` another performance report is requested: this time the
|
245
|
+
# performance report will contain data from the window between `t + 3 hours`
|
246
|
+
# and `t + 4 hours`, for any authorizations to which both the current version
|
247
|
+
# of the authorization rule (in enforcing mode) and the draft version of the
|
248
|
+
# authorization rule (in shadow mode) applied.
|
265
249
|
#
|
266
|
-
#
|
267
|
-
#
|
268
|
-
#
|
269
|
-
#
|
270
|
-
#
|
250
|
+
# Note that generating a report may take up to 15 minutes and that delivery is not
|
251
|
+
# guaranteed. Customers are required to have created an event subscription to
|
252
|
+
# receive the webhook. Additionally, there is a delay of approximately 15 minutes
|
253
|
+
# between when Lithic's transaction processing systems have processed the
|
254
|
+
# transaction, and when a transaction will be included in the report.
|
271
255
|
sig do
|
272
256
|
params(
|
273
257
|
auth_rule_token: String,
|
@@ -279,13 +263,10 @@ module Lithic
|
|
279
263
|
# Globally unique identifier for the Auth Rule.
|
280
264
|
auth_rule_token,
|
281
265
|
request_options: {}
|
282
|
-
)
|
283
|
-
end
|
284
|
-
|
266
|
+
); end
|
285
267
|
# @api private
|
286
268
|
sig { params(client: Lithic::Client).returns(T.attached_class) }
|
287
|
-
def self.new(client:)
|
288
|
-
end
|
269
|
+
def self.new(client:); end
|
289
270
|
end
|
290
271
|
end
|
291
272
|
end
|
@@ -4,32 +4,29 @@ module Lithic
|
|
4
4
|
module Resources
|
5
5
|
class AuthStreamEnrollment
|
6
6
|
# Retrieve the ASA HMAC secret key. If one does not exist for your program yet,
|
7
|
-
#
|
8
|
-
#
|
9
|
-
#
|
10
|
-
#
|
11
|
-
#
|
7
|
+
# calling this endpoint will create one for you. The headers (which you can use to
|
8
|
+
# verify webhooks) will begin appearing shortly after calling this endpoint for
|
9
|
+
# the first time. See
|
10
|
+
# [this page](https://docs.lithic.com/docs/auth-stream-access-asa#asa-webhook-verification)
|
11
|
+
# for more detail about verifying ASA webhooks.
|
12
12
|
sig do
|
13
13
|
params(request_options: T.nilable(T.any(Lithic::RequestOptions, Lithic::Internal::AnyHash)))
|
14
14
|
.returns(Lithic::Models::AuthStreamSecret)
|
15
15
|
end
|
16
|
-
def retrieve_secret(request_options: {})
|
17
|
-
end
|
16
|
+
def retrieve_secret(request_options: {}); end
|
18
17
|
|
19
18
|
# Generate a new ASA HMAC secret key. The old ASA HMAC secret key will be
|
20
|
-
#
|
21
|
-
#
|
22
|
-
#
|
19
|
+
# deactivated 24 hours after a successful request to this endpoint. Make a
|
20
|
+
# [`GET /auth_stream/secret`](https://docs.lithic.com/reference/getauthstreamsecret)
|
21
|
+
# request to retrieve the new secret key.
|
23
22
|
sig do
|
24
23
|
params(request_options: T.nilable(T.any(Lithic::RequestOptions, Lithic::Internal::AnyHash))).void
|
25
24
|
end
|
26
|
-
def rotate_secret(request_options: {})
|
27
|
-
end
|
25
|
+
def rotate_secret(request_options: {}); end
|
28
26
|
|
29
27
|
# @api private
|
30
28
|
sig { params(client: Lithic::Client).returns(T.attached_class) }
|
31
|
-
def self.new(client:)
|
32
|
-
end
|
29
|
+
def self.new(client:); end
|
33
30
|
end
|
34
31
|
end
|
35
32
|
end
|
@@ -18,20 +18,17 @@ module Lithic
|
|
18
18
|
# List balances for all financial accounts of a given account_token.
|
19
19
|
account_token: nil,
|
20
20
|
# UTC date and time of the balances to retrieve. Defaults to latest available
|
21
|
-
#
|
21
|
+
# balances
|
22
22
|
balance_date: nil,
|
23
23
|
# List balances for all financial accounts of a given business_account_token.
|
24
24
|
business_account_token: nil,
|
25
25
|
# List balances for a given Financial Account type.
|
26
26
|
financial_account_type: nil,
|
27
27
|
request_options: {}
|
28
|
-
)
|
29
|
-
end
|
30
|
-
|
28
|
+
); end
|
31
29
|
# @api private
|
32
30
|
sig { params(client: Lithic::Client).returns(T.attached_class) }
|
33
|
-
def self.new(client:)
|
34
|
-
end
|
31
|
+
def self.new(client:); end
|
35
32
|
end
|
36
33
|
end
|
37
34
|
end
|
@@ -4,7 +4,7 @@ module Lithic
|
|
4
4
|
module Resources
|
5
5
|
class BookTransfers
|
6
6
|
# Book transfer funds between two financial accounts or between a financial
|
7
|
-
#
|
7
|
+
# account and card
|
8
8
|
sig do
|
9
9
|
params(
|
10
10
|
amount: Integer,
|
@@ -21,29 +21,27 @@ module Lithic
|
|
21
21
|
end
|
22
22
|
def create(
|
23
23
|
# Amount to be transferred in the currency’s smallest unit (e.g., cents for USD).
|
24
|
-
#
|
24
|
+
# This should always be a positive value.
|
25
25
|
amount:,
|
26
26
|
# Category of the book transfer
|
27
27
|
category:,
|
28
28
|
# Globally unique identifier for the financial account or card that will send the
|
29
|
-
#
|
29
|
+
# funds. Accepted type dependent on the program's use case.
|
30
30
|
from_financial_account_token:,
|
31
31
|
# The program specific subtype code for the specified category/type.
|
32
32
|
subtype:,
|
33
33
|
# Globally unique identifier for the financial account or card that will receive
|
34
|
-
#
|
34
|
+
# the funds. Accepted type dependent on the program's use case.
|
35
35
|
to_financial_account_token:,
|
36
36
|
# Type of book_transfer
|
37
37
|
type:,
|
38
38
|
# Customer-provided token that will serve as an idempotency token. This token will
|
39
|
-
#
|
39
|
+
# become the transaction token.
|
40
40
|
token: nil,
|
41
41
|
# Optional descriptor for the transfer.
|
42
42
|
memo: nil,
|
43
43
|
request_options: {}
|
44
|
-
)
|
45
|
-
end
|
46
|
-
|
44
|
+
); end
|
47
45
|
# Get book transfer by token
|
48
46
|
sig do
|
49
47
|
params(
|
@@ -56,9 +54,7 @@ module Lithic
|
|
56
54
|
# Id of the book transfer to retrieve
|
57
55
|
book_transfer_token,
|
58
56
|
request_options: {}
|
59
|
-
)
|
60
|
-
end
|
61
|
-
|
57
|
+
); end
|
62
58
|
# List book transfers
|
63
59
|
sig do
|
64
60
|
params(
|
@@ -80,33 +76,31 @@ module Lithic
|
|
80
76
|
def list(
|
81
77
|
account_token: nil,
|
82
78
|
# Date string in RFC 3339 format. Only entries created after the specified time
|
83
|
-
#
|
79
|
+
# will be included. UTC time zone.
|
84
80
|
begin_: nil,
|
85
81
|
business_account_token: nil,
|
86
82
|
# Book Transfer category to be returned.
|
87
83
|
category: nil,
|
88
84
|
# Date string in RFC 3339 format. Only entries created before the specified time
|
89
|
-
#
|
85
|
+
# will be included. UTC time zone.
|
90
86
|
end_: nil,
|
91
87
|
# A cursor representing an item's token before which a page of results should end.
|
92
|
-
#
|
88
|
+
# Used to retrieve the previous page of results before this item.
|
93
89
|
ending_before: nil,
|
94
90
|
# Globally unique identifier for the financial account or card that will send the
|
95
|
-
#
|
91
|
+
# funds. Accepted type dependent on the program's use case.
|
96
92
|
financial_account_token: nil,
|
97
93
|
# Page size (for pagination).
|
98
94
|
page_size: nil,
|
99
95
|
# Book transfer result to be returned.
|
100
96
|
result: nil,
|
101
97
|
# A cursor representing an item's token after which a page of results should
|
102
|
-
#
|
98
|
+
# begin. Used to retrieve the next page of results after this item.
|
103
99
|
starting_after: nil,
|
104
100
|
# Book transfer status to be returned.
|
105
101
|
status: nil,
|
106
102
|
request_options: {}
|
107
|
-
)
|
108
|
-
end
|
109
|
-
|
103
|
+
); end
|
110
104
|
# Reverse a book transfer
|
111
105
|
sig do
|
112
106
|
params(
|
@@ -122,13 +116,10 @@ module Lithic
|
|
122
116
|
# Optional descriptor for the reversal.
|
123
117
|
memo: nil,
|
124
118
|
request_options: {}
|
125
|
-
)
|
126
|
-
end
|
127
|
-
|
119
|
+
); end
|
128
120
|
# @api private
|
129
121
|
sig { params(client: Lithic::Client).returns(T.attached_class) }
|
130
|
-
def self.new(client:)
|
131
|
-
end
|
122
|
+
def self.new(client:); end
|
132
123
|
end
|
133
124
|
end
|
134
125
|
end
|
@@ -15,9 +15,7 @@ module Lithic
|
|
15
15
|
# Globally unique identifier for the card program.
|
16
16
|
card_program_token,
|
17
17
|
request_options: {}
|
18
|
-
)
|
19
|
-
end
|
20
|
-
|
18
|
+
); end
|
21
19
|
# List card programs.
|
22
20
|
sig do
|
23
21
|
params(
|
@@ -30,21 +28,18 @@ module Lithic
|
|
30
28
|
end
|
31
29
|
def list(
|
32
30
|
# A cursor representing an item's token before which a page of results should end.
|
33
|
-
#
|
31
|
+
# Used to retrieve the previous page of results before this item.
|
34
32
|
ending_before: nil,
|
35
33
|
# Page size (for pagination).
|
36
34
|
page_size: nil,
|
37
35
|
# A cursor representing an item's token after which a page of results should
|
38
|
-
#
|
36
|
+
# begin. Used to retrieve the next page of results after this item.
|
39
37
|
starting_after: nil,
|
40
38
|
request_options: {}
|
41
|
-
)
|
42
|
-
end
|
43
|
-
|
39
|
+
); end
|
44
40
|
# @api private
|
45
41
|
sig { params(client: Lithic::Client).returns(T.attached_class) }
|
46
|
-
def self.new(client:)
|
47
|
-
end
|
42
|
+
def self.new(client:); end
|
48
43
|
end
|
49
44
|
end
|
50
45
|
end
|
@@ -19,13 +19,10 @@ module Lithic
|
|
19
19
|
# Business to retrieve aggregate balances for.
|
20
20
|
business_account_token: nil,
|
21
21
|
request_options: {}
|
22
|
-
)
|
23
|
-
end
|
24
|
-
|
22
|
+
); end
|
25
23
|
# @api private
|
26
24
|
sig { params(client: Lithic::Client).returns(T.attached_class) }
|
27
|
-
def self.new(client:)
|
28
|
-
end
|
25
|
+
def self.new(client:); end
|
29
26
|
end
|
30
27
|
end
|
31
28
|
end
|
@@ -19,17 +19,14 @@ module Lithic
|
|
19
19
|
# UTC date of the balance to retrieve. Defaults to latest available balance
|
20
20
|
balance_date: nil,
|
21
21
|
# Balance after a given financial event occured. For example, passing the
|
22
|
-
#
|
23
|
-
#
|
22
|
+
# event_token of a $5 CARD_CLEARING financial event will return a balance
|
23
|
+
# decreased by $5
|
24
24
|
last_transaction_event_token: nil,
|
25
25
|
request_options: {}
|
26
|
-
)
|
27
|
-
end
|
28
|
-
|
26
|
+
); end
|
29
27
|
# @api private
|
30
28
|
sig { params(client: Lithic::Client).returns(T.attached_class) }
|
31
|
-
def self.new(client:)
|
32
|
-
end
|
29
|
+
def self.new(client:); end
|
33
30
|
end
|
34
31
|
end
|
35
32
|
end
|