lithic 0.1.0.pre.alpha.16 → 0.1.0.pre.alpha.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +34 -0
- data/README.md +7 -7
- data/lib/lithic/file_part.rb +55 -0
- data/lib/lithic/internal/cursor_page.rb +1 -1
- data/lib/lithic/internal/single_page.rb +1 -1
- data/lib/lithic/internal/transport/base_client.rb +7 -7
- data/lib/lithic/internal/transport/pooled_net_requester.rb +1 -1
- data/lib/lithic/internal/type/array_of.rb +2 -0
- data/lib/lithic/internal/type/base_model.rb +1 -1
- data/lib/lithic/internal/type/base_page.rb +1 -1
- data/lib/lithic/internal/type/converter.rb +1 -1
- data/lib/lithic/internal/type/{io_like.rb → file_input.rb} +8 -4
- data/lib/lithic/internal/type/hash_of.rb +2 -0
- data/lib/lithic/internal/util.rb +69 -61
- data/lib/lithic/models/account.rb +50 -19
- data/lib/lithic/models/account_holder.rb +139 -59
- data/lib/lithic/models/account_holder_create_params.rb +144 -52
- data/lib/lithic/models/account_holder_create_response.rb +18 -7
- data/lib/lithic/models/account_holder_list_params.rb +33 -11
- data/lib/lithic/models/account_holder_simulate_enrollment_document_review_params.rb +13 -4
- data/lib/lithic/models/account_holder_simulate_enrollment_review_params.rb +10 -3
- data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +169 -60
- data/lib/lithic/models/account_holder_update_params.rb +147 -53
- data/lib/lithic/models/account_holder_update_response.rb +202 -74
- data/lib/lithic/models/account_holder_upload_document_params.rb +4 -2
- data/lib/lithic/models/account_list_params.rb +17 -5
- data/lib/lithic/models/account_spend_limits.rb +27 -9
- data/lib/lithic/models/account_update_params.rb +17 -5
- data/lib/lithic/models/address.rb +17 -6
- data/lib/lithic/models/address_update.rb +17 -6
- data/lib/lithic/models/aggregate_balance.rb +26 -10
- data/lib/lithic/models/aggregate_balance_list_params.rb +2 -1
- data/lib/lithic/models/auth_rules/auth_rule.rb +24 -9
- data/lib/lithic/models/auth_rules/auth_rule_condition.rb +8 -3
- data/lib/lithic/models/auth_rules/v2/backtest_create_params.rb +4 -2
- data/lib/lithic/models/auth_rules/v2/backtest_create_response.rb +1 -1
- data/lib/lithic/models/auth_rules/v2/backtest_results.rb +46 -18
- data/lib/lithic/models/auth_rules/v2_apply_params.rb +8 -4
- data/lib/lithic/models/auth_rules/v2_apply_response.rb +31 -12
- data/lib/lithic/models/auth_rules/v2_create_params.rb +14 -7
- data/lib/lithic/models/auth_rules/v2_create_response.rb +31 -12
- data/lib/lithic/models/auth_rules/v2_draft_params.rb +2 -1
- data/lib/lithic/models/auth_rules/v2_draft_response.rb +31 -12
- data/lib/lithic/models/auth_rules/v2_list_params.rb +15 -5
- data/lib/lithic/models/auth_rules/v2_list_response.rb +31 -12
- data/lib/lithic/models/auth_rules/v2_promote_response.rb +31 -12
- data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +32 -12
- data/lib/lithic/models/auth_rules/v2_update_params.rb +15 -6
- data/lib/lithic/models/auth_rules/v2_update_response.rb +31 -12
- data/lib/lithic/models/auth_rules/velocity_limit_params.rb +27 -7
- data/lib/lithic/models/auth_stream_secret.rb +1 -1
- data/lib/lithic/models/balance.rb +26 -10
- data/lib/lithic/models/balance_list_params.rb +12 -4
- data/lib/lithic/models/book_transfer_create_params.rb +23 -8
- data/lib/lithic/models/book_transfer_list_params.rb +28 -9
- data/lib/lithic/models/book_transfer_response.rb +54 -20
- data/lib/lithic/models/book_transfer_reverse_params.rb +2 -1
- data/lib/lithic/models/card.rb +33 -0
- data/lib/lithic/models/card_convert_physical_params.rb +12 -4
- data/lib/lithic/models/card_create_params.rb +45 -15
- data/lib/lithic/models/card_embed_params.rb +4 -2
- data/lib/lithic/models/card_list_params.rb +21 -7
- data/lib/lithic/models/card_program.rb +17 -7
- data/lib/lithic/models/card_program_list_params.rb +11 -3
- data/lib/lithic/models/card_provision_params.rb +20 -6
- data/lib/lithic/models/card_reissue_params.rb +12 -4
- data/lib/lithic/models/card_renew_params.rb +18 -6
- data/lib/lithic/models/card_search_by_pan_params.rb +2 -1
- data/lib/lithic/models/card_spend_limits.rb +27 -9
- data/lib/lithic/models/card_update_params.rb +21 -7
- data/lib/lithic/models/cards/aggregate_balance_list_params.rb +4 -2
- data/lib/lithic/models/cards/aggregate_balance_list_response.rb +24 -9
- data/lib/lithic/models/cards/balance_list_params.rb +7 -2
- data/lib/lithic/models/cards/balance_list_response.rb +26 -10
- data/lib/lithic/models/cards/financial_transaction_list_params.rb +21 -7
- data/lib/lithic/models/carrier.rb +1 -1
- data/lib/lithic/models/credit_products/prime_rate_create_params.rb +4 -2
- data/lib/lithic/models/credit_products/prime_rate_retrieve_params.rb +4 -2
- data/lib/lithic/models/credit_products/prime_rate_retrieve_response.rb +6 -4
- data/lib/lithic/models/digital_card_art.rb +13 -7
- data/lib/lithic/models/digital_card_art_list_params.rb +11 -3
- data/lib/lithic/models/dispute.rb +40 -18
- data/lib/lithic/models/dispute_create_params.rb +10 -5
- data/lib/lithic/models/dispute_evidence.rb +17 -7
- data/lib/lithic/models/dispute_initiate_evidence_upload_params.rb +2 -1
- data/lib/lithic/models/dispute_list_evidences_params.rb +17 -5
- data/lib/lithic/models/dispute_list_params.rb +21 -7
- data/lib/lithic/models/dispute_update_params.rb +8 -4
- data/lib/lithic/models/document.rb +31 -14
- data/lib/lithic/models/event.rb +9 -3
- data/lib/lithic/models/event_list_attempts_params.rb +18 -5
- data/lib/lithic/models/event_list_params.rb +21 -7
- data/lib/lithic/models/event_subscription.rb +7 -3
- data/lib/lithic/models/events/subscription_create_params.rb +12 -4
- data/lib/lithic/models/events/subscription_list_attempts_params.rb +18 -5
- data/lib/lithic/models/events/subscription_list_params.rb +11 -3
- data/lib/lithic/models/events/subscription_recover_params.rb +9 -2
- data/lib/lithic/models/events/subscription_replay_missing_params.rb +9 -2
- data/lib/lithic/models/events/subscription_retrieve_secret_response.rb +1 -1
- data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +2 -1
- data/lib/lithic/models/events/subscription_update_params.rb +12 -4
- data/lib/lithic/models/external_bank_account_create_params.rb +40 -16
- data/lib/lithic/models/external_bank_account_create_response.rb +53 -22
- data/lib/lithic/models/external_bank_account_list_params.rb +17 -3
- data/lib/lithic/models/external_bank_account_list_response.rb +53 -22
- data/lib/lithic/models/external_bank_account_retrieve_response.rb +53 -22
- data/lib/lithic/models/external_bank_account_retry_micro_deposits_response.rb +54 -22
- data/lib/lithic/models/external_bank_account_retry_prenote_response.rb +53 -22
- data/lib/lithic/models/external_bank_account_update_params.rb +21 -8
- data/lib/lithic/models/external_bank_account_update_response.rb +53 -22
- data/lib/lithic/models/external_bank_accounts/micro_deposit_create_response.rb +54 -22
- data/lib/lithic/models/external_payment_list_params.rb +27 -9
- data/lib/lithic/models/financial_account.rb +25 -8
- data/lib/lithic/models/financial_account_list_params.rb +6 -3
- data/lib/lithic/models/financial_account_update_status_params.rb +4 -2
- data/lib/lithic/models/financial_accounts/balance_list_params.rb +7 -2
- data/lib/lithic/models/financial_accounts/balance_list_response.rb +26 -10
- data/lib/lithic/models/financial_accounts/credit_configuration_update_params.rb +6 -2
- data/lib/lithic/models/financial_accounts/financial_account_credit_config.rb +12 -5
- data/lib/lithic/models/financial_accounts/financial_transaction_list_params.rb +22 -7
- data/lib/lithic/models/financial_accounts/loan_tape.rb +119 -47
- data/lib/lithic/models/financial_accounts/loan_tape_list_params.rb +17 -5
- data/lib/lithic/models/financial_accounts/loan_tape_retrieve_params.rb +2 -1
- data/lib/lithic/models/financial_accounts/statement.rb +97 -40
- data/lib/lithic/models/financial_accounts/statement_list_params.rb +19 -6
- data/lib/lithic/models/financial_accounts/statement_retrieve_params.rb +2 -1
- data/lib/lithic/models/financial_accounts/statements/line_item_list_params.rb +14 -4
- data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +25 -9
- data/lib/lithic/models/financial_transaction.rb +42 -15
- data/lib/lithic/models/kyb.rb +101 -36
- data/lib/lithic/models/kyb_business_entity.rb +35 -12
- data/lib/lithic/models/kyc.rb +34 -12
- data/lib/lithic/models/kyc_exempt.rb +23 -9
- data/lib/lithic/models/management_operation_list_params.rb +25 -8
- data/lib/lithic/models/message_attempt.rb +17 -7
- data/lib/lithic/models/{card_list_response.rb → non_pci_card.rb} +96 -51
- data/lib/lithic/models/payment.rb +52 -18
- data/lib/lithic/models/payment_create_params.rb +14 -1
- data/lib/lithic/models/payment_create_response.rb +1 -1
- data/lib/lithic/models/payment_list_params.rb +23 -5
- data/lib/lithic/models/payment_retry_response.rb +1 -1
- data/lib/lithic/models/payment_simulate_action_params.rb +6 -3
- data/lib/lithic/models/payment_simulate_action_response.rb +5 -3
- data/lib/lithic/models/payment_simulate_receipt_params.rb +14 -5
- data/lib/lithic/models/payment_simulate_receipt_response.rb +5 -3
- data/lib/lithic/models/payment_simulate_release_params.rb +2 -1
- data/lib/lithic/models/payment_simulate_release_response.rb +5 -3
- data/lib/lithic/models/payment_simulate_return_params.rb +4 -2
- data/lib/lithic/models/payment_simulate_return_response.rb +5 -3
- data/lib/lithic/models/reports/settlement/network_total_list_params.rb +30 -11
- data/lib/lithic/models/reports/settlement/network_total_list_response.rb +39 -14
- data/lib/lithic/models/reports/settlement/network_total_retrieve_response.rb +39 -14
- data/lib/lithic/models/reports/settlement_list_details_params.rb +11 -3
- data/lib/lithic/models/required_document.rb +10 -3
- data/lib/lithic/models/responder_endpoint_check_status_params.rb +2 -1
- data/lib/lithic/models/responder_endpoint_create_params.rb +4 -2
- data/lib/lithic/models/responder_endpoint_create_response.rb +1 -1
- data/lib/lithic/models/responder_endpoint_delete_params.rb +2 -1
- data/lib/lithic/models/responder_endpoint_status.rb +3 -2
- data/lib/lithic/models/settlement_detail.rb +50 -21
- data/lib/lithic/models/settlement_report.rb +29 -10
- data/lib/lithic/models/settlement_summary_details.rb +21 -8
- data/lib/lithic/models/shipping_address.rb +31 -11
- data/lib/lithic/models/three_ds/authentication_retrieve_response.rb +215 -71
- data/lib/lithic/models/three_ds/authentication_simulate_otp_entry_params.rb +9 -2
- data/lib/lithic/models/three_ds/authentication_simulate_params.rb +28 -8
- data/lib/lithic/models/three_ds/authentication_simulate_response.rb +5 -1
- data/lib/lithic/models/three_ds/challenge_response.rb +7 -2
- data/lib/lithic/models/three_ds/decisioning_retrieve_secret_response.rb +1 -1
- data/lib/lithic/models/tokenization.rb +37 -17
- data/lib/lithic/models/tokenization_decisioning_rotate_secret_response.rb +1 -1
- data/lib/lithic/models/tokenization_list_params.rb +22 -8
- data/lib/lithic/models/tokenization_resend_activation_code_params.rb +6 -1
- data/lib/lithic/models/tokenization_secret.rb +1 -1
- data/lib/lithic/models/tokenization_simulate_params.rb +22 -8
- data/lib/lithic/models/tokenization_update_digital_card_art_params.rb +6 -1
- data/lib/lithic/models/transaction.rb +248 -89
- data/lib/lithic/models/transaction_list_params.rb +26 -9
- data/lib/lithic/models/transaction_simulate_authorization_advice_params.rb +8 -2
- data/lib/lithic/models/transaction_simulate_authorization_advice_response.rb +3 -2
- data/lib/lithic/models/transaction_simulate_authorization_params.rb +27 -10
- data/lib/lithic/models/transaction_simulate_authorization_response.rb +7 -2
- data/lib/lithic/models/transaction_simulate_clearing_params.rb +8 -2
- data/lib/lithic/models/transaction_simulate_clearing_response.rb +1 -1
- data/lib/lithic/models/transaction_simulate_credit_authorization_params.rb +15 -5
- data/lib/lithic/models/transaction_simulate_credit_authorization_response.rb +3 -2
- data/lib/lithic/models/transaction_simulate_return_params.rb +6 -3
- data/lib/lithic/models/transaction_simulate_return_response.rb +3 -2
- data/lib/lithic/models/transaction_simulate_return_reversal_params.rb +2 -1
- data/lib/lithic/models/transaction_simulate_return_reversal_response.rb +1 -1
- data/lib/lithic/models/transaction_simulate_void_params.rb +10 -3
- data/lib/lithic/models/transaction_simulate_void_response.rb +1 -1
- data/lib/lithic/models/transactions/events/enhanced_data.rb +52 -24
- data/lib/lithic/models/transfer.rb +46 -17
- data/lib/lithic/models/transfer_create_params.rb +17 -5
- data/lib/lithic/resources/account_holders.rb +166 -60
- data/lib/lithic/resources/accounts.rb +40 -13
- data/lib/lithic/resources/aggregate_balances.rb +2 -1
- data/lib/lithic/resources/auth_rules/v2/backtests.rb +10 -5
- data/lib/lithic/resources/auth_rules/v2.rb +68 -30
- data/lib/lithic/resources/balances.rb +12 -4
- data/lib/lithic/resources/book_transfers.rb +57 -20
- data/lib/lithic/resources/card_programs.rb +13 -4
- data/lib/lithic/resources/cards/aggregate_balances.rb +4 -2
- data/lib/lithic/resources/cards/balances.rb +8 -2
- data/lib/lithic/resources/cards/financial_transactions.rb +25 -8
- data/lib/lithic/resources/cards.rb +177 -69
- data/lib/lithic/resources/credit_products/extended_credit.rb +2 -1
- data/lib/lithic/resources/credit_products/prime_rates.rb +12 -6
- data/lib/lithic/resources/digital_card_art.rb +17 -4
- data/lib/lithic/resources/disputes.rb +61 -22
- data/lib/lithic/resources/events/subscriptions.rb +78 -21
- data/lib/lithic/resources/events.rb +40 -12
- data/lib/lithic/resources/external_bank_accounts.rb +79 -27
- data/lib/lithic/resources/external_payments.rb +46 -14
- data/lib/lithic/resources/financial_accounts/balances.rb +9 -3
- data/lib/lithic/resources/financial_accounts/credit_configuration.rb +10 -4
- data/lib/lithic/resources/financial_accounts/financial_transactions.rb +28 -10
- data/lib/lithic/resources/financial_accounts/loan_tapes.rb +23 -8
- data/lib/lithic/resources/financial_accounts/statements/line_items.rb +16 -5
- data/lib/lithic/resources/financial_accounts/statements.rb +25 -9
- data/lib/lithic/resources/financial_accounts.rb +22 -11
- data/lib/lithic/resources/management_operations.rb +31 -10
- data/lib/lithic/resources/payments.rb +64 -17
- data/lib/lithic/resources/reports/settlement/network_totals.rb +32 -12
- data/lib/lithic/resources/reports/settlement.rb +15 -5
- data/lib/lithic/resources/responder_endpoints.rb +8 -4
- data/lib/lithic/resources/three_ds/authentication.rb +21 -5
- data/lib/lithic/resources/three_ds/decisioning.rb +8 -2
- data/lib/lithic/resources/tokenizations.rb +70 -25
- data/lib/lithic/resources/transactions/enhanced_commercial_data.rb +2 -1
- data/lib/lithic/resources/transactions/events/enhanced_commercial_data.rb +2 -1
- data/lib/lithic/resources/transactions.rb +106 -37
- data/lib/lithic/resources/transfers.rb +17 -5
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +4 -9
- data/rbi/lib/lithic/file_part.rbi +34 -0
- data/rbi/lib/lithic/internal/transport/base_client.rbi +17 -3
- data/rbi/lib/lithic/internal/type/{io_like.rbi → file_input.rbi} +6 -2
- data/rbi/lib/lithic/internal/util.rbi +24 -19
- data/rbi/lib/lithic/models/account.rbi +62 -6
- data/rbi/lib/lithic/models/account_holder.rbi +139 -8
- data/rbi/lib/lithic/models/account_holder_create_params.rbi +131 -6
- data/rbi/lib/lithic/models/account_holder_create_response.rbi +14 -3
- data/rbi/lib/lithic/models/account_holder_list_params.rbi +19 -0
- data/rbi/lib/lithic/models/account_holder_simulate_enrollment_document_review_params.rbi +5 -0
- data/rbi/lib/lithic/models/account_holder_simulate_enrollment_review_params.rbi +10 -2
- data/rbi/lib/lithic/models/account_holder_simulate_enrollment_review_response.rbi +172 -17
- data/rbi/lib/lithic/models/account_holder_update_params.rbi +99 -0
- data/rbi/lib/lithic/models/account_holder_update_response.rbi +176 -19
- data/rbi/lib/lithic/models/account_holder_upload_document_params.rbi +7 -2
- data/rbi/lib/lithic/models/account_list_params.rbi +10 -3
- data/rbi/lib/lithic/models/account_spend_limits.rbi +30 -6
- data/rbi/lib/lithic/models/account_update_params.rbi +16 -0
- data/rbi/lib/lithic/models/address.rbi +19 -2
- data/rbi/lib/lithic/models/address_update.rbi +17 -2
- data/rbi/lib/lithic/models/aggregate_balance.rbi +14 -0
- data/rbi/lib/lithic/models/aggregate_balance_list_params.rbi +5 -2
- data/rbi/lib/lithic/models/auth_rules/auth_rule.rbi +15 -0
- data/rbi/lib/lithic/models/auth_rules/auth_rule_condition.rbi +54 -2
- data/rbi/lib/lithic/models/auth_rules/v2/backtest_create_params.rbi +7 -2
- data/rbi/lib/lithic/models/auth_rules/v2/backtest_create_response.rbi +4 -2
- data/rbi/lib/lithic/models/auth_rules/v2/backtest_results.rbi +60 -12
- data/rbi/lib/lithic/models/auth_rules/v2_apply_params.rbi +5 -3
- data/rbi/lib/lithic/models/auth_rules/v2_apply_response.rbi +22 -4
- data/rbi/lib/lithic/models/auth_rules/v2_create_params.rbi +7 -0
- data/rbi/lib/lithic/models/auth_rules/v2_create_response.rbi +22 -4
- data/rbi/lib/lithic/models/auth_rules/v2_draft_params.rbi +5 -2
- data/rbi/lib/lithic/models/auth_rules/v2_draft_response.rbi +22 -4
- data/rbi/lib/lithic/models/auth_rules/v2_list_params.rbi +7 -0
- data/rbi/lib/lithic/models/auth_rules/v2_list_response.rbi +22 -4
- data/rbi/lib/lithic/models/auth_rules/v2_promote_response.rbi +22 -4
- data/rbi/lib/lithic/models/auth_rules/v2_retrieve_response.rbi +22 -4
- data/rbi/lib/lithic/models/auth_rules/v2_update_params.rbi +10 -0
- data/rbi/lib/lithic/models/auth_rules/v2_update_response.rbi +22 -4
- data/rbi/lib/lithic/models/auth_rules/velocity_limit_params.rbi +33 -5
- data/rbi/lib/lithic/models/auth_stream_secret.rbi +4 -2
- data/rbi/lib/lithic/models/balance.rbi +14 -0
- data/rbi/lib/lithic/models/balance_list_params.rbi +5 -0
- data/rbi/lib/lithic/models/book_transfer_create_params.rbi +12 -0
- data/rbi/lib/lithic/models/book_transfer_list_params.rbi +14 -0
- data/rbi/lib/lithic/models/book_transfer_response.rbi +41 -2
- data/rbi/lib/lithic/models/book_transfer_reverse_params.rbi +5 -2
- data/rbi/lib/lithic/models/card.rbi +36 -0
- data/rbi/lib/lithic/models/card_convert_physical_params.rbi +18 -3
- data/rbi/lib/lithic/models/card_create_params.rbi +84 -0
- data/rbi/lib/lithic/models/card_embed_params.rbi +7 -2
- data/rbi/lib/lithic/models/card_list_params.rbi +11 -0
- data/rbi/lib/lithic/models/card_program.rbi +8 -0
- data/rbi/lib/lithic/models/card_program_list_params.rbi +11 -2
- data/rbi/lib/lithic/models/card_provision_params.rbi +17 -0
- data/rbi/lib/lithic/models/card_reissue_params.rbi +18 -3
- data/rbi/lib/lithic/models/card_renew_params.rbi +21 -0
- data/rbi/lib/lithic/models/card_search_by_pan_params.rbi +5 -2
- data/rbi/lib/lithic/models/card_spend_limits.rbi +30 -6
- data/rbi/lib/lithic/models/card_update_params.rbi +35 -0
- data/rbi/lib/lithic/models/cards/aggregate_balance_list_params.rbi +7 -2
- data/rbi/lib/lithic/models/cards/aggregate_balance_list_response.rbi +13 -0
- data/rbi/lib/lithic/models/cards/balance_list_params.rbi +9 -2
- data/rbi/lib/lithic/models/cards/balance_list_response.rbi +14 -0
- data/rbi/lib/lithic/models/cards/financial_transaction_list_params.rbi +11 -0
- data/rbi/lib/lithic/models/carrier.rbi +4 -2
- data/rbi/lib/lithic/models/credit_products/prime_rate_create_params.rbi +7 -2
- data/rbi/lib/lithic/models/credit_products/prime_rate_retrieve_params.rbi +7 -2
- data/rbi/lib/lithic/models/credit_products/prime_rate_retrieve_response.rbi +12 -4
- data/rbi/lib/lithic/models/digital_card_art.rbi +8 -3
- data/rbi/lib/lithic/models/digital_card_art_list_params.rbi +11 -2
- data/rbi/lib/lithic/models/dispute.rbi +66 -0
- data/rbi/lib/lithic/models/dispute_create_params.rbi +6 -3
- data/rbi/lib/lithic/models/dispute_evidence.rbi +15 -3
- data/rbi/lib/lithic/models/dispute_initiate_evidence_upload_params.rbi +5 -2
- data/rbi/lib/lithic/models/dispute_list_evidences_params.rbi +10 -3
- data/rbi/lib/lithic/models/dispute_list_params.rbi +11 -0
- data/rbi/lib/lithic/models/dispute_update_params.rbi +5 -3
- data/rbi/lib/lithic/models/document.rbi +27 -3
- data/rbi/lib/lithic/models/event.rbi +39 -2
- data/rbi/lib/lithic/models/event_list_attempts_params.rbi +9 -0
- data/rbi/lib/lithic/models/event_list_params.rbi +11 -0
- data/rbi/lib/lithic/models/event_subscription.rbi +10 -2
- data/rbi/lib/lithic/models/events/subscription_create_params.rbi +12 -2
- data/rbi/lib/lithic/models/events/subscription_list_attempts_params.rbi +9 -0
- data/rbi/lib/lithic/models/events/subscription_list_params.rbi +11 -2
- data/rbi/lib/lithic/models/events/subscription_recover_params.rbi +9 -2
- data/rbi/lib/lithic/models/events/subscription_replay_missing_params.rbi +9 -2
- data/rbi/lib/lithic/models/events/subscription_retrieve_secret_response.rbi +4 -2
- data/rbi/lib/lithic/models/events/subscription_send_simulated_example_params.rbi +5 -2
- data/rbi/lib/lithic/models/events/subscription_update_params.rbi +12 -2
- data/rbi/lib/lithic/models/external_bank_account_create_params.rbi +20 -0
- data/rbi/lib/lithic/models/external_bank_account_create_response.rbi +33 -0
- data/rbi/lib/lithic/models/external_bank_account_list_params.rbi +5 -0
- data/rbi/lib/lithic/models/external_bank_account_list_response.rbi +33 -0
- data/rbi/lib/lithic/models/external_bank_account_retrieve_response.rbi +33 -0
- data/rbi/lib/lithic/models/external_bank_account_retry_micro_deposits_response.rbi +33 -0
- data/rbi/lib/lithic/models/external_bank_account_retry_prenote_response.rbi +33 -0
- data/rbi/lib/lithic/models/external_bank_account_update_params.rbi +9 -0
- data/rbi/lib/lithic/models/external_bank_account_update_response.rbi +33 -0
- data/rbi/lib/lithic/models/external_bank_accounts/micro_deposit_create_response.rbi +33 -0
- data/rbi/lib/lithic/models/external_payment_list_params.rbi +14 -0
- data/rbi/lib/lithic/models/financial_account.rbi +8 -0
- data/rbi/lib/lithic/models/financial_account_list_params.rbi +9 -2
- data/rbi/lib/lithic/models/financial_account_update_status_params.rbi +7 -2
- data/rbi/lib/lithic/models/financial_accounts/balance_list_params.rbi +9 -2
- data/rbi/lib/lithic/models/financial_accounts/balance_list_response.rbi +14 -0
- data/rbi/lib/lithic/models/financial_accounts/credit_configuration_update_params.rbi +2 -0
- data/rbi/lib/lithic/models/financial_accounts/financial_account_credit_config.rbi +5 -0
- data/rbi/lib/lithic/models/financial_accounts/financial_transaction_list_params.rbi +11 -0
- data/rbi/lib/lithic/models/financial_accounts/loan_tape.rbi +94 -13
- data/rbi/lib/lithic/models/financial_accounts/loan_tape_list_params.rbi +10 -3
- data/rbi/lib/lithic/models/financial_accounts/loan_tape_retrieve_params.rbi +5 -2
- data/rbi/lib/lithic/models/financial_accounts/statement.rbi +72 -10
- data/rbi/lib/lithic/models/financial_accounts/statement_list_params.rbi +10 -0
- data/rbi/lib/lithic/models/financial_accounts/statement_retrieve_params.rbi +5 -2
- data/rbi/lib/lithic/models/financial_accounts/statements/line_item_list_params.rbi +7 -3
- data/rbi/lib/lithic/models/financial_accounts/statements/statement_line_items.rbi +10 -0
- data/rbi/lib/lithic/models/financial_transaction.rbi +44 -2
- data/rbi/lib/lithic/models/kyb.rbi +94 -4
- data/rbi/lib/lithic/models/kyb_business_entity.rbi +28 -2
- data/rbi/lib/lithic/models/kyc.rbi +40 -4
- data/rbi/lib/lithic/models/kyc_exempt.rbi +13 -0
- data/rbi/lib/lithic/models/management_operation_list_params.rbi +13 -0
- data/rbi/lib/lithic/models/message_attempt.rbi +10 -3
- data/rbi/lib/lithic/models/{card_list_response.rbi → non_pci_card.rbi} +137 -62
- data/rbi/lib/lithic/models/payment.rbi +57 -2
- data/rbi/lib/lithic/models/payment_create_params.rbi +2 -0
- data/rbi/lib/lithic/models/payment_create_response.rbi +4 -2
- data/rbi/lib/lithic/models/payment_list_params.rbi +9 -0
- data/rbi/lib/lithic/models/payment_retry_response.rbi +4 -2
- data/rbi/lib/lithic/models/payment_simulate_action_params.rbi +9 -2
- data/rbi/lib/lithic/models/payment_simulate_action_response.rbi +8 -2
- data/rbi/lib/lithic/models/payment_simulate_receipt_params.rbi +13 -3
- data/rbi/lib/lithic/models/payment_simulate_receipt_response.rbi +8 -2
- data/rbi/lib/lithic/models/payment_simulate_release_params.rbi +5 -2
- data/rbi/lib/lithic/models/payment_simulate_release_response.rbi +8 -2
- data/rbi/lib/lithic/models/payment_simulate_return_params.rbi +7 -2
- data/rbi/lib/lithic/models/payment_simulate_return_response.rbi +8 -2
- data/rbi/lib/lithic/models/reports/settlement/network_total_list_params.rbi +16 -0
- data/rbi/lib/lithic/models/reports/settlement/network_total_list_response.rbi +26 -2
- data/rbi/lib/lithic/models/reports/settlement/network_total_retrieve_response.rbi +26 -2
- data/rbi/lib/lithic/models/reports/settlement_list_details_params.rbi +11 -2
- data/rbi/lib/lithic/models/required_document.rbi +10 -2
- data/rbi/lib/lithic/models/responder_endpoint_check_status_params.rbi +5 -2
- data/rbi/lib/lithic/models/responder_endpoint_create_params.rbi +7 -2
- data/rbi/lib/lithic/models/responder_endpoint_create_response.rbi +4 -2
- data/rbi/lib/lithic/models/responder_endpoint_delete_params.rbi +5 -2
- data/rbi/lib/lithic/models/responder_endpoint_status.rbi +6 -2
- data/rbi/lib/lithic/models/settlement_detail.rbi +26 -0
- data/rbi/lib/lithic/models/settlement_report.rbi +25 -0
- data/rbi/lib/lithic/models/settlement_summary_details.rbi +11 -0
- data/rbi/lib/lithic/models/shipping_address.rbi +20 -0
- data/rbi/lib/lithic/models/three_ds/authentication_retrieve_response.rbi +165 -19
- data/rbi/lib/lithic/models/three_ds/authentication_simulate_otp_entry_params.rbi +8 -2
- data/rbi/lib/lithic/models/three_ds/authentication_simulate_params.rbi +31 -6
- data/rbi/lib/lithic/models/three_ds/authentication_simulate_response.rbi +5 -2
- data/rbi/lib/lithic/models/three_ds/challenge_response.rbi +9 -2
- data/rbi/lib/lithic/models/three_ds/decisioning_retrieve_secret_response.rbi +4 -2
- data/rbi/lib/lithic/models/tokenization.rbi +27 -2
- data/rbi/lib/lithic/models/tokenization_decisioning_rotate_secret_response.rbi +4 -2
- data/rbi/lib/lithic/models/tokenization_list_params.rbi +11 -0
- data/rbi/lib/lithic/models/tokenization_resend_activation_code_params.rbi +7 -2
- data/rbi/lib/lithic/models/tokenization_secret.rbi +4 -2
- data/rbi/lib/lithic/models/tokenization_simulate_params.rbi +11 -0
- data/rbi/lib/lithic/models/tokenization_update_digital_card_art_params.rbi +8 -2
- data/rbi/lib/lithic/models/transaction.rbi +246 -35
- data/rbi/lib/lithic/models/transaction_list_params.rbi +14 -0
- data/rbi/lib/lithic/models/transaction_simulate_authorization_advice_params.rbi +8 -2
- data/rbi/lib/lithic/models/transaction_simulate_authorization_advice_response.rbi +6 -2
- data/rbi/lib/lithic/models/transaction_simulate_authorization_params.rbi +35 -0
- data/rbi/lib/lithic/models/transaction_simulate_authorization_response.rbi +7 -2
- data/rbi/lib/lithic/models/transaction_simulate_clearing_params.rbi +15 -2
- data/rbi/lib/lithic/models/transaction_simulate_clearing_response.rbi +4 -2
- data/rbi/lib/lithic/models/transaction_simulate_credit_authorization_params.rbi +17 -2
- data/rbi/lib/lithic/models/transaction_simulate_credit_authorization_response.rbi +6 -2
- data/rbi/lib/lithic/models/transaction_simulate_return_params.rbi +9 -2
- data/rbi/lib/lithic/models/transaction_simulate_return_response.rbi +6 -2
- data/rbi/lib/lithic/models/transaction_simulate_return_reversal_params.rbi +5 -2
- data/rbi/lib/lithic/models/transaction_simulate_return_reversal_response.rbi +4 -2
- data/rbi/lib/lithic/models/transaction_simulate_void_params.rbi +14 -2
- data/rbi/lib/lithic/models/transaction_simulate_void_response.rbi +4 -2
- data/rbi/lib/lithic/models/transactions/events/enhanced_data.rbi +57 -16
- data/rbi/lib/lithic/models/transfer.rbi +41 -2
- data/rbi/lib/lithic/models/transfer_create_params.rbi +17 -2
- data/rbi/lib/lithic/resources/cards.rbi +8 -8
- data/sig/lithic/file_part.rbs +21 -0
- data/sig/lithic/internal/transport/base_client.rbs +9 -3
- data/sig/lithic/internal/type/{io_like.rbs → file_input.rbs} +1 -1
- data/sig/lithic/internal/util.rbs +14 -12
- data/sig/lithic/models/card.rbs +19 -0
- data/sig/lithic/models/{card_list_response.rbs → non_pci_card.rbs} +31 -31
- data/sig/lithic/resources/cards.rbs +8 -8
- metadata +14 -29
- data/lib/lithic/models/card_convert_physical_response.rb +0 -393
- data/lib/lithic/models/card_create_response.rb +0 -392
- data/lib/lithic/models/card_reissue_response.rb +0 -392
- data/lib/lithic/models/card_renew_response.rb +0 -392
- data/lib/lithic/models/card_retrieve_response.rb +0 -392
- data/lib/lithic/models/card_search_by_pan_response.rb +0 -392
- data/lib/lithic/models/card_update_response.rb +0 -392
- data/rbi/lib/lithic/models/card_convert_physical_response.rbi +0 -467
- data/rbi/lib/lithic/models/card_create_response.rbi +0 -458
- data/rbi/lib/lithic/models/card_reissue_response.rbi +0 -458
- data/rbi/lib/lithic/models/card_renew_response.rbi +0 -457
- data/rbi/lib/lithic/models/card_retrieve_response.rbi +0 -459
- data/rbi/lib/lithic/models/card_search_by_pan_response.rbi +0 -461
- data/rbi/lib/lithic/models/card_update_response.rbi +0 -458
- data/sig/lithic/models/card_convert_physical_response.rbs +0 -257
- data/sig/lithic/models/card_create_response.rbs +0 -257
- data/sig/lithic/models/card_reissue_response.rbs +0 -257
- data/sig/lithic/models/card_renew_response.rbs +0 -257
- data/sig/lithic/models/card_retrieve_response.rbs +0 -257
- data/sig/lithic/models/card_search_by_pan_response.rbs +0 -257
- data/sig/lithic/models/card_update_response.rbs +0 -257
@@ -77,15 +77,23 @@ module Lithic
|
|
77
77
|
.returns(T.attached_class)
|
78
78
|
end
|
79
79
|
def self.new(
|
80
|
+
# Auth Rule Token
|
80
81
|
token:,
|
82
|
+
# Account tokens to which the Auth Rule applies.
|
81
83
|
account_tokens:,
|
84
|
+
# Card tokens to which the Auth Rule applies.
|
82
85
|
card_tokens:,
|
83
86
|
current_version:,
|
84
87
|
draft_version:,
|
88
|
+
# Auth Rule Name
|
85
89
|
name:,
|
90
|
+
# Whether the Auth Rule applies to all authorizations on the card program.
|
86
91
|
program_level:,
|
92
|
+
# The state of the Auth Rule
|
87
93
|
state:,
|
94
|
+
# The type of Auth Rule
|
88
95
|
type:,
|
96
|
+
# Card tokens to which the Auth Rule does not apply.
|
89
97
|
excluded_card_tokens: nil
|
90
98
|
); end
|
91
99
|
sig do
|
@@ -135,8 +143,13 @@ module Lithic
|
|
135
143
|
)
|
136
144
|
.returns(T.attached_class)
|
137
145
|
end
|
138
|
-
def self.new(
|
139
|
-
|
146
|
+
def self.new(
|
147
|
+
# Parameters for the Auth Rule
|
148
|
+
parameters:,
|
149
|
+
# The version of the rule, this is incremented whenever the rule's parameters
|
150
|
+
# change.
|
151
|
+
version:
|
152
|
+
); end
|
140
153
|
sig do
|
141
154
|
override
|
142
155
|
.returns(
|
@@ -193,8 +206,13 @@ module Lithic
|
|
193
206
|
)
|
194
207
|
.returns(T.attached_class)
|
195
208
|
end
|
196
|
-
def self.new(
|
197
|
-
|
209
|
+
def self.new(
|
210
|
+
# Parameters for the Auth Rule
|
211
|
+
parameters:,
|
212
|
+
# The version of the rule, this is incremented whenever the rule's parameters
|
213
|
+
# change.
|
214
|
+
version:
|
215
|
+
); end
|
198
216
|
sig do
|
199
217
|
override
|
200
218
|
.returns(
|
@@ -63,11 +63,21 @@ module Lithic
|
|
63
63
|
.returns(T.attached_class)
|
64
64
|
end
|
65
65
|
def self.new(
|
66
|
+
# Account tokens to which the Auth Rule applies.
|
66
67
|
account_tokens: nil,
|
68
|
+
# Auth Rule Name
|
67
69
|
name: nil,
|
70
|
+
# The desired state of the Auth Rule.
|
71
|
+
#
|
72
|
+
# Note that only deactivating an Auth Rule through this endpoint is supported at
|
73
|
+
# this time. If you need to (re-)activate an Auth Rule the /promote endpoint
|
74
|
+
# should be used to promote a draft to the currently active version.
|
68
75
|
state: nil,
|
76
|
+
# Card tokens to which the Auth Rule applies.
|
69
77
|
card_tokens: nil,
|
78
|
+
# Card tokens to which the Auth Rule does not apply.
|
70
79
|
excluded_card_tokens: nil,
|
80
|
+
# Whether the Auth Rule applies to all authorizations on the card program.
|
71
81
|
program_level: nil,
|
72
82
|
request_options: {}
|
73
83
|
); end
|
@@ -77,15 +77,23 @@ module Lithic
|
|
77
77
|
.returns(T.attached_class)
|
78
78
|
end
|
79
79
|
def self.new(
|
80
|
+
# Auth Rule Token
|
80
81
|
token:,
|
82
|
+
# Account tokens to which the Auth Rule applies.
|
81
83
|
account_tokens:,
|
84
|
+
# Card tokens to which the Auth Rule applies.
|
82
85
|
card_tokens:,
|
83
86
|
current_version:,
|
84
87
|
draft_version:,
|
88
|
+
# Auth Rule Name
|
85
89
|
name:,
|
90
|
+
# Whether the Auth Rule applies to all authorizations on the card program.
|
86
91
|
program_level:,
|
92
|
+
# The state of the Auth Rule
|
87
93
|
state:,
|
94
|
+
# The type of Auth Rule
|
88
95
|
type:,
|
96
|
+
# Card tokens to which the Auth Rule does not apply.
|
89
97
|
excluded_card_tokens: nil
|
90
98
|
); end
|
91
99
|
sig do
|
@@ -135,8 +143,13 @@ module Lithic
|
|
135
143
|
)
|
136
144
|
.returns(T.attached_class)
|
137
145
|
end
|
138
|
-
def self.new(
|
139
|
-
|
146
|
+
def self.new(
|
147
|
+
# Parameters for the Auth Rule
|
148
|
+
parameters:,
|
149
|
+
# The version of the rule, this is incremented whenever the rule's parameters
|
150
|
+
# change.
|
151
|
+
version:
|
152
|
+
); end
|
140
153
|
sig do
|
141
154
|
override
|
142
155
|
.returns(
|
@@ -193,8 +206,13 @@ module Lithic
|
|
193
206
|
)
|
194
207
|
.returns(T.attached_class)
|
195
208
|
end
|
196
|
-
def self.new(
|
197
|
-
|
209
|
+
def self.new(
|
210
|
+
# Parameters for the Auth Rule
|
211
|
+
parameters:,
|
212
|
+
# The version of the rule, this is incremented whenever the rule's parameters
|
213
|
+
# change.
|
214
|
+
version:
|
215
|
+
); end
|
198
216
|
sig do
|
199
217
|
override
|
200
218
|
.returns(
|
@@ -45,8 +45,23 @@ module Lithic
|
|
45
45
|
)
|
46
46
|
.returns(T.attached_class)
|
47
47
|
end
|
48
|
-
def self.new(
|
49
|
-
|
48
|
+
def self.new(
|
49
|
+
filters:,
|
50
|
+
# The size of the trailing window to calculate Spend Velocity over in seconds. The
|
51
|
+
# minimum value is 10 seconds, and the maximum value is 2678400 seconds (31 days).
|
52
|
+
period:,
|
53
|
+
scope:,
|
54
|
+
# The maximum amount of spend velocity allowed in the period in minor units (the
|
55
|
+
# smallest unit of a currency, e.g. cents for USD). Transactions exceeding this
|
56
|
+
# limit will be declined.
|
57
|
+
limit_amount: nil,
|
58
|
+
# The number of spend velocity impacting transactions may not exceed this limit in
|
59
|
+
# the period. Transactions exceeding this limit will be declined. A spend velocity
|
60
|
+
# impacting transaction is a transaction that has been authorized, and optionally
|
61
|
+
# settled, or a force post (a transaction that settled without prior
|
62
|
+
# authorization).
|
63
|
+
limit_count: nil
|
64
|
+
); end
|
50
65
|
sig do
|
51
66
|
override
|
52
67
|
.returns(
|
@@ -93,9 +108,22 @@ module Lithic
|
|
93
108
|
)
|
94
109
|
.returns(T.attached_class)
|
95
110
|
end
|
96
|
-
def self.new(
|
97
|
-
|
98
|
-
|
111
|
+
def self.new(
|
112
|
+
# ISO-3166-1 alpha-3 Country Codes to exclude from the velocity calculation.
|
113
|
+
# Transactions matching any of the provided will be excluded from the calculated
|
114
|
+
# velocity.
|
115
|
+
exclude_countries: nil,
|
116
|
+
# Merchant Category Codes to exclude from the velocity calculation. Transactions
|
117
|
+
# matching this MCC will be excluded from the calculated velocity.
|
118
|
+
exclude_mccs: nil,
|
119
|
+
# ISO-3166-1 alpha-3 Country Codes to include in the velocity calculation.
|
120
|
+
# Transactions not matching any of the provided will not be included in the
|
121
|
+
# calculated velocity.
|
122
|
+
include_countries: nil,
|
123
|
+
# Merchant Category Codes to include in the velocity calculation. Transactions not
|
124
|
+
# matching this MCC will not be included in the calculated velocity.
|
125
|
+
include_mccs: nil
|
126
|
+
); end
|
99
127
|
sig do
|
100
128
|
override
|
101
129
|
.returns(
|
@@ -11,8 +11,10 @@ module Lithic
|
|
11
11
|
attr_writer :secret
|
12
12
|
|
13
13
|
sig { params(secret: String).returns(T.attached_class) }
|
14
|
-
def self.new(
|
15
|
-
|
14
|
+
def self.new(
|
15
|
+
# The shared HMAC ASA secret
|
16
|
+
secret: nil
|
17
|
+
); end
|
16
18
|
sig { override.returns({secret: String}) }
|
17
19
|
def to_hash; end
|
18
20
|
end
|
@@ -64,15 +64,29 @@ module Lithic
|
|
64
64
|
.returns(T.attached_class)
|
65
65
|
end
|
66
66
|
def self.new(
|
67
|
+
# Funds available for spend in the currency's smallest unit (e.g., cents for USD)
|
67
68
|
available_amount:,
|
69
|
+
# Date and time for when the balance was first created.
|
68
70
|
created:,
|
71
|
+
# 3-character alphabetic ISO 4217 code for the local currency of the balance.
|
69
72
|
currency:,
|
73
|
+
# Globally unique identifier for the financial account that holds this balance.
|
70
74
|
financial_account_token:,
|
75
|
+
# Type of financial account.
|
71
76
|
financial_account_type:,
|
77
|
+
# Globally unique identifier for the last financial transaction event that
|
78
|
+
# impacted this balance.
|
72
79
|
last_transaction_event_token:,
|
80
|
+
# Globally unique identifier for the last financial transaction that impacted this
|
81
|
+
# balance.
|
73
82
|
last_transaction_token:,
|
83
|
+
# Funds not available for spend due to card authorizations or pending ACH release.
|
84
|
+
# Shown in the currency's smallest unit (e.g., cents for USD).
|
74
85
|
pending_amount:,
|
86
|
+
# The sum of available and pending balance in the currency's smallest unit (e.g.,
|
87
|
+
# cents for USD).
|
75
88
|
total_amount:,
|
89
|
+
# Date and time for when the balance was last updated.
|
76
90
|
updated:
|
77
91
|
); end
|
78
92
|
sig do
|
@@ -46,9 +46,14 @@ module Lithic
|
|
46
46
|
.returns(T.attached_class)
|
47
47
|
end
|
48
48
|
def self.new(
|
49
|
+
# List balances for all financial accounts of a given account_token.
|
49
50
|
account_token: nil,
|
51
|
+
# UTC date and time of the balances to retrieve. Defaults to latest available
|
52
|
+
# balances
|
50
53
|
balance_date: nil,
|
54
|
+
# List balances for all financial accounts of a given business_account_token.
|
51
55
|
business_account_token: nil,
|
56
|
+
# List balances for a given Financial Account type.
|
52
57
|
financial_account_type: nil,
|
53
58
|
request_options: {}
|
54
59
|
); end
|
@@ -63,13 +63,25 @@ module Lithic
|
|
63
63
|
.returns(T.attached_class)
|
64
64
|
end
|
65
65
|
def self.new(
|
66
|
+
# Amount to be transferred in the currency’s smallest unit (e.g., cents for USD).
|
67
|
+
# This should always be a positive value.
|
66
68
|
amount:,
|
69
|
+
# Category of the book transfer
|
67
70
|
category:,
|
71
|
+
# Globally unique identifier for the financial account or card that will send the
|
72
|
+
# funds. Accepted type dependent on the program's use case.
|
68
73
|
from_financial_account_token:,
|
74
|
+
# The program specific subtype code for the specified category/type.
|
69
75
|
subtype:,
|
76
|
+
# Globally unique identifier for the financial account or card that will receive
|
77
|
+
# the funds. Accepted type dependent on the program's use case.
|
70
78
|
to_financial_account_token:,
|
79
|
+
# Type of book_transfer
|
71
80
|
type:,
|
81
|
+
# Customer-provided token that will serve as an idempotency token. This token will
|
82
|
+
# become the transaction token.
|
72
83
|
token: nil,
|
84
|
+
# Optional descriptor for the transfer.
|
73
85
|
memo: nil,
|
74
86
|
request_options: {}
|
75
87
|
); end
|
@@ -105,15 +105,29 @@ module Lithic
|
|
105
105
|
end
|
106
106
|
def self.new(
|
107
107
|
account_token: nil,
|
108
|
+
# Date string in RFC 3339 format. Only entries created after the specified time
|
109
|
+
# will be included. UTC time zone.
|
108
110
|
begin_: nil,
|
109
111
|
business_account_token: nil,
|
112
|
+
# Book Transfer category to be returned.
|
110
113
|
category: nil,
|
114
|
+
# Date string in RFC 3339 format. Only entries created before the specified time
|
115
|
+
# will be included. UTC time zone.
|
111
116
|
end_: nil,
|
117
|
+
# A cursor representing an item's token before which a page of results should end.
|
118
|
+
# Used to retrieve the previous page of results before this item.
|
112
119
|
ending_before: nil,
|
120
|
+
# Globally unique identifier for the financial account or card that will send the
|
121
|
+
# funds. Accepted type dependent on the program's use case.
|
113
122
|
financial_account_token: nil,
|
123
|
+
# Page size (for pagination).
|
114
124
|
page_size: nil,
|
125
|
+
# Book transfer result to be returned.
|
115
126
|
result: nil,
|
127
|
+
# A cursor representing an item's token after which a page of results should
|
128
|
+
# begin. Used to retrieve the next page of results after this item.
|
116
129
|
starting_after: nil,
|
130
|
+
# Book transfer status to be returned.
|
117
131
|
status: nil,
|
118
132
|
request_options: {}
|
119
133
|
); end
|
@@ -78,17 +78,38 @@ module Lithic
|
|
78
78
|
.returns(T.attached_class)
|
79
79
|
end
|
80
80
|
def self.new(
|
81
|
+
# Customer-provided token that will serve as an idempotency token. This token will
|
82
|
+
# become the transaction token.
|
81
83
|
token:,
|
84
|
+
# Category of the book transfer
|
82
85
|
category:,
|
86
|
+
# Date and time when the transfer occurred. UTC time zone.
|
83
87
|
created:,
|
88
|
+
# 3-character alphabetic ISO 4217 code for the settling currency of the
|
89
|
+
# transaction.
|
84
90
|
currency:,
|
91
|
+
# A list of all financial events that have modified this transfer.
|
85
92
|
events:,
|
93
|
+
# Globally unique identifier for the financial account or card that will send the
|
94
|
+
# funds. Accepted type dependent on the program's use case.
|
86
95
|
from_financial_account_token:,
|
96
|
+
# Pending amount of the transaction in the currency's smallest unit (e.g., cents),
|
97
|
+
# including any acquirer fees. The value of this field will go to zero over time
|
98
|
+
# once the financial transaction is settled.
|
87
99
|
pending_amount:,
|
100
|
+
# APPROVED transactions were successful while DECLINED transactions were declined
|
101
|
+
# by user, Lithic, or the network.
|
88
102
|
result:,
|
103
|
+
# Amount of the transaction that has been settled in the currency's smallest unit
|
104
|
+
# (e.g., cents).
|
89
105
|
settled_amount:,
|
106
|
+
# Status types: _ `DECLINED` - The transfer was declined. _ `REVERSED` - The
|
107
|
+
# transfer was reversed \* `SETTLED` - The transfer is completed.
|
90
108
|
status:,
|
109
|
+
# Globally unique identifier for the financial account or card that will receive
|
110
|
+
# the funds. Accepted type dependent on the program's use case.
|
91
111
|
to_financial_account_token:,
|
112
|
+
# Date and time when the financial transaction was last updated. UTC time zone.
|
92
113
|
updated:
|
93
114
|
); end
|
94
115
|
sig do
|
@@ -180,8 +201,26 @@ module Lithic
|
|
180
201
|
)
|
181
202
|
.returns(T.attached_class)
|
182
203
|
end
|
183
|
-
def self.new(
|
184
|
-
|
204
|
+
def self.new(
|
205
|
+
# Globally unique identifier.
|
206
|
+
token:,
|
207
|
+
# Amount of the financial event that has been settled in the currency's smallest
|
208
|
+
# unit (e.g., cents).
|
209
|
+
amount:,
|
210
|
+
# Date and time when the financial event occurred. UTC time zone.
|
211
|
+
created:,
|
212
|
+
# Detailed Results
|
213
|
+
detailed_results:,
|
214
|
+
# Memo for the transfer.
|
215
|
+
memo:,
|
216
|
+
# APPROVED financial events were successful while DECLINED financial events were
|
217
|
+
# declined by user, Lithic, or the network.
|
218
|
+
result:,
|
219
|
+
# The program specific subtype code for the specified category/type.
|
220
|
+
subtype:,
|
221
|
+
# Type of the book transfer
|
222
|
+
type:
|
223
|
+
); end
|
185
224
|
sig do
|
186
225
|
override
|
187
226
|
.returns(
|
@@ -17,8 +17,11 @@ module Lithic
|
|
17
17
|
params(memo: String, request_options: T.any(Lithic::RequestOptions, Lithic::Internal::AnyHash))
|
18
18
|
.returns(T.attached_class)
|
19
19
|
end
|
20
|
-
def self.new(
|
21
|
-
|
20
|
+
def self.new(
|
21
|
+
# Optional descriptor for the reversal.
|
22
|
+
memo: nil,
|
23
|
+
request_options: {}
|
24
|
+
); end
|
22
25
|
sig { override.returns({memo: String, request_options: Lithic::RequestOptions}) }
|
23
26
|
def to_hash; end
|
24
27
|
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module Lithic
|
4
|
+
module Models
|
5
|
+
class Card < Lithic::Models::NonPCICard
|
6
|
+
# Three digit cvv printed on the back of the card.
|
7
|
+
sig { returns(T.nilable(String)) }
|
8
|
+
attr_reader :cvv
|
9
|
+
|
10
|
+
sig { params(cvv: String).void }
|
11
|
+
attr_writer :cvv
|
12
|
+
|
13
|
+
# Primary Account Number (PAN) (i.e. the card number). Customers must be PCI
|
14
|
+
# compliant to have PAN returned as a field in production. Please contact
|
15
|
+
# support@lithic.com for questions.
|
16
|
+
sig { returns(T.nilable(String)) }
|
17
|
+
attr_reader :pan
|
18
|
+
|
19
|
+
sig { params(pan: String).void }
|
20
|
+
attr_writer :pan
|
21
|
+
|
22
|
+
# Card details with potentially PCI sensitive information for Enterprise customers
|
23
|
+
sig { params(cvv: String, pan: String).returns(T.attached_class) }
|
24
|
+
def self.new(
|
25
|
+
# Three digit cvv printed on the back of the card.
|
26
|
+
cvv: nil,
|
27
|
+
# Primary Account Number (PAN) (i.e. the card number). Customers must be PCI
|
28
|
+
# compliant to have PAN returned as a field in production. Please contact
|
29
|
+
# support@lithic.com for questions.
|
30
|
+
pan: nil
|
31
|
+
); end
|
32
|
+
sig { override.returns({cvv: String, pan: String}) }
|
33
|
+
def to_hash; end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -58,14 +58,29 @@ module Lithic
|
|
58
58
|
.returns(T.attached_class)
|
59
59
|
end
|
60
60
|
def self.new(
|
61
|
+
# The shipping address this card will be sent to.
|
61
62
|
shipping_address:,
|
63
|
+
# If omitted, the previous carrier will be used.
|
62
64
|
carrier: nil,
|
65
|
+
# Specifies the configuration (e.g. physical card art) that the card should be
|
66
|
+
# manufactured with, and only applies to cards of type `PHYSICAL`. This must be
|
67
|
+
# configured with Lithic before use.
|
63
68
|
product_id: nil,
|
69
|
+
# Shipping method for the card. Only applies to cards of type PHYSICAL. Use of
|
70
|
+
# options besides `STANDARD` require additional permissions.
|
71
|
+
#
|
72
|
+
# - `STANDARD` - USPS regular mail or similar international option, with no
|
73
|
+
# tracking
|
74
|
+
# - `STANDARD_WITH_TRACKING` - USPS regular mail or similar international option,
|
75
|
+
# with tracking
|
76
|
+
# - `PRIORITY` - USPS Priority, 1-3 day shipping, with tracking
|
77
|
+
# - `EXPRESS` - FedEx Express, 3-day shipping, with tracking
|
78
|
+
# - `2_DAY` - FedEx 2-day shipping, with tracking
|
79
|
+
# - `EXPEDITED` - FedEx Standard Overnight or similar international option, with
|
80
|
+
# tracking
|
64
81
|
shipping_method: nil,
|
65
82
|
request_options: {}
|
66
|
-
)
|
67
|
-
end
|
68
|
-
|
83
|
+
); end
|
69
84
|
sig do
|
70
85
|
override
|
71
86
|
.returns(
|
@@ -213,22 +213,106 @@ module Lithic
|
|
213
213
|
.returns(T.attached_class)
|
214
214
|
end
|
215
215
|
def self.new(
|
216
|
+
# Card types:
|
217
|
+
#
|
218
|
+
# - `VIRTUAL` - Card will authorize at any merchant and can be added to a digital
|
219
|
+
# wallet like Apple Pay or Google Pay (if the card program is digital
|
220
|
+
# wallet-enabled).
|
221
|
+
# - `PHYSICAL` - Manufactured and sent to the cardholder. We offer white label
|
222
|
+
# branding, credit, ATM, PIN debit, chip/EMV, NFC and magstripe functionality.
|
223
|
+
# Reach out at [lithic.com/contact](https://lithic.com/contact) for more
|
224
|
+
# information.
|
225
|
+
# - `SINGLE_USE` - Card is closed upon first successful authorization.
|
226
|
+
# - `MERCHANT_LOCKED` - _[Deprecated]_ Card is locked to the first merchant that
|
227
|
+
# successfully authorizes the card.
|
228
|
+
# - `UNLOCKED` - _[Deprecated]_ Similar behavior to VIRTUAL cards, please use
|
229
|
+
# VIRTUAL instead.
|
230
|
+
# - `DIGITAL_WALLET` - _[Deprecated]_ Similar behavior to VIRTUAL cards, please
|
231
|
+
# use VIRTUAL instead.
|
216
232
|
type:,
|
233
|
+
# Globally unique identifier for the account that the card will be associated
|
234
|
+
# with. Required for programs enrolling users using the
|
235
|
+
# [/account_holders endpoint](https://docs.lithic.com/docs/account-holders-kyc).
|
236
|
+
# See [Managing Your Program](doc:managing-your-program) for more information.
|
217
237
|
account_token: nil,
|
238
|
+
# For card programs with more than one BIN range. This must be configured with
|
239
|
+
# Lithic before use. Identifies the card program/BIN range under which to create
|
240
|
+
# the card. If omitted, will utilize the program's default `card_program_token`.
|
241
|
+
# In Sandbox, use 00000000-0000-0000-1000-000000000000 and
|
242
|
+
# 00000000-0000-0000-2000-000000000000 to test creating cards on specific card
|
243
|
+
# programs.
|
218
244
|
card_program_token: nil,
|
219
245
|
carrier: nil,
|
246
|
+
# Specifies the digital card art to be displayed in the user’s digital wallet
|
247
|
+
# after tokenization. This artwork must be approved by Mastercard and configured
|
248
|
+
# by Lithic to use. See
|
249
|
+
# [Flexible Card Art Guide](https://docs.lithic.com/docs/about-digital-wallets#flexible-card-art).
|
220
250
|
digital_card_art_token: nil,
|
251
|
+
# Two digit (MM) expiry month. If neither `exp_month` nor `exp_year` is provided,
|
252
|
+
# an expiration date will be generated.
|
221
253
|
exp_month: nil,
|
254
|
+
# Four digit (yyyy) expiry year. If neither `exp_month` nor `exp_year` is
|
255
|
+
# provided, an expiration date will be generated.
|
222
256
|
exp_year: nil,
|
257
|
+
# Friendly name to identify the card.
|
223
258
|
memo: nil,
|
259
|
+
# Encrypted PIN block (in base64). Applies to cards of type `PHYSICAL` and
|
260
|
+
# `VIRTUAL`. See
|
261
|
+
# [Encrypted PIN Block](https://docs.lithic.com/docs/cards#encrypted-pin-block).
|
224
262
|
pin: nil,
|
263
|
+
# Only applicable to cards of type `PHYSICAL`. This must be configured with Lithic
|
264
|
+
# before use. Specifies the configuration (i.e., physical card art) that the card
|
265
|
+
# should be manufactured with.
|
225
266
|
product_id: nil,
|
267
|
+
# Restricted field limited to select use cases. Lithic will reach out directly if
|
268
|
+
# this field should be used. Globally unique identifier for the replacement card's
|
269
|
+
# account. If this field is specified, `replacement_for` must also be specified.
|
270
|
+
# If `replacement_for` is specified and this field is omitted, the replacement
|
271
|
+
# card's account will be inferred from the card being replaced.
|
226
272
|
replacement_account_token: nil,
|
273
|
+
# Globally unique identifier for the card that this card will replace. If the card
|
274
|
+
# type is `PHYSICAL` it will be replaced by a `PHYSICAL` card. If the card type is
|
275
|
+
# `VIRTUAL` it will be replaced by a `VIRTUAL` card.
|
227
276
|
replacement_for: nil,
|
228
277
|
shipping_address: nil,
|
278
|
+
# Shipping method for the card. Only applies to cards of type PHYSICAL. Use of
|
279
|
+
# options besides `STANDARD` require additional permissions.
|
280
|
+
#
|
281
|
+
# - `STANDARD` - USPS regular mail or similar international option, with no
|
282
|
+
# tracking
|
283
|
+
# - `STANDARD_WITH_TRACKING` - USPS regular mail or similar international option,
|
284
|
+
# with tracking
|
285
|
+
# - `PRIORITY` - USPS Priority, 1-3 day shipping, with tracking
|
286
|
+
# - `EXPRESS` - FedEx Express, 3-day shipping, with tracking
|
287
|
+
# - `2_DAY` - FedEx 2-day shipping, with tracking
|
288
|
+
# - `EXPEDITED` - FedEx Standard Overnight or similar international option, with
|
289
|
+
# tracking
|
229
290
|
shipping_method: nil,
|
291
|
+
# Amount (in cents) to limit approved authorizations (e.g. 100000 would be a
|
292
|
+
# $1,000 limit). Transaction requests above the spend limit will be declined. Note
|
293
|
+
# that a spend limit of 0 is effectively no limit, and should only be used to
|
294
|
+
# reset or remove a prior limit. Only a limit of 1 or above will result in
|
295
|
+
# declined transactions due to checks against the card limit.
|
230
296
|
spend_limit: nil,
|
297
|
+
# Spend limit duration values:
|
298
|
+
#
|
299
|
+
# - `ANNUALLY` - Card will authorize transactions up to spend limit for the
|
300
|
+
# trailing year.
|
301
|
+
# - `FOREVER` - Card will authorize only up to spend limit for the entire lifetime
|
302
|
+
# of the card.
|
303
|
+
# - `MONTHLY` - Card will authorize transactions up to spend limit for the
|
304
|
+
# trailing month. To support recurring monthly payments, which can occur on
|
305
|
+
# different day every month, the time window we consider for monthly velocity
|
306
|
+
# starts 6 days after the current calendar date one month prior.
|
307
|
+
# - `TRANSACTION` - Card will authorize multiple transactions if each individual
|
308
|
+
# transaction is under the spend limit.
|
231
309
|
spend_limit_duration: nil,
|
310
|
+
# Card state values:
|
311
|
+
#
|
312
|
+
# - `OPEN` - Card will approve authorizations (if they match card and account
|
313
|
+
# parameters).
|
314
|
+
# - `PAUSED` - Card will decline authorizations, but can be resumed at a later
|
315
|
+
# time.
|
232
316
|
state: nil,
|
233
317
|
request_options: {}
|
234
318
|
); end
|
@@ -22,8 +22,13 @@ module Lithic
|
|
22
22
|
)
|
23
23
|
.returns(T.attached_class)
|
24
24
|
end
|
25
|
-
def self.new(
|
26
|
-
|
25
|
+
def self.new(
|
26
|
+
# A base64 encoded JSON string of an EmbedRequest to specify which card to load.
|
27
|
+
embed_request:,
|
28
|
+
# SHA256 HMAC of the embed_request JSON string with base64 digest.
|
29
|
+
hmac:,
|
30
|
+
request_options: {}
|
31
|
+
); end
|
27
32
|
sig { override.returns({embed_request: String, hmac: String, request_options: Lithic::RequestOptions}) }
|
28
33
|
def to_hash; end
|
29
34
|
end
|
@@ -73,12 +73,23 @@ module Lithic
|
|
73
73
|
.returns(T.attached_class)
|
74
74
|
end
|
75
75
|
def self.new(
|
76
|
+
# Returns cards associated with the specified account.
|
76
77
|
account_token: nil,
|
78
|
+
# Date string in RFC 3339 format. Only entries created after the specified time
|
79
|
+
# will be included. UTC time zone.
|
77
80
|
begin_: nil,
|
81
|
+
# Date string in RFC 3339 format. Only entries created before the specified time
|
82
|
+
# will be included. UTC time zone.
|
78
83
|
end_: nil,
|
84
|
+
# A cursor representing an item's token before which a page of results should end.
|
85
|
+
# Used to retrieve the previous page of results before this item.
|
79
86
|
ending_before: nil,
|
87
|
+
# Page size (for pagination).
|
80
88
|
page_size: nil,
|
89
|
+
# A cursor representing an item's token after which a page of results should
|
90
|
+
# begin. Used to retrieve the next page of results after this item.
|
81
91
|
starting_after: nil,
|
92
|
+
# Returns cards with the specified state.
|
82
93
|
state: nil,
|
83
94
|
request_options: {}
|
84
95
|
); end
|
@@ -51,12 +51,20 @@ module Lithic
|
|
51
51
|
.returns(T.attached_class)
|
52
52
|
end
|
53
53
|
def self.new(
|
54
|
+
# Globally unique identifier.
|
54
55
|
token:,
|
56
|
+
# Timestamp of when the card program was created.
|
55
57
|
created:,
|
58
|
+
# The name of the card program.
|
56
59
|
name:,
|
60
|
+
# The first digits of the card number that this card program ends with.
|
57
61
|
pan_range_end:,
|
62
|
+
# The first digits of the card number that this card program starts with.
|
58
63
|
pan_range_start:,
|
64
|
+
# 3-character alphabetic ISO 4217 code for the currency of the cardholder.
|
59
65
|
cardholder_currency: nil,
|
66
|
+
# List of 3-character alphabetic ISO 4217 codes for the currencies that the card
|
67
|
+
# program supports for settlement.
|
60
68
|
settlement_currencies: nil
|
61
69
|
); end
|
62
70
|
sig do
|
@@ -38,8 +38,17 @@ module Lithic
|
|
38
38
|
)
|
39
39
|
.returns(T.attached_class)
|
40
40
|
end
|
41
|
-
def self.new(
|
42
|
-
|
41
|
+
def self.new(
|
42
|
+
# A cursor representing an item's token before which a page of results should end.
|
43
|
+
# Used to retrieve the previous page of results before this item.
|
44
|
+
ending_before: nil,
|
45
|
+
# Page size (for pagination).
|
46
|
+
page_size: nil,
|
47
|
+
# A cursor representing an item's token after which a page of results should
|
48
|
+
# begin. Used to retrieve the next page of results after this item.
|
49
|
+
starting_after: nil,
|
50
|
+
request_options: {}
|
51
|
+
); end
|
43
52
|
sig do
|
44
53
|
override
|
45
54
|
.returns(
|