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
@@ -13,7 +13,7 @@ module Lithic
|
|
13
13
|
attr_reader :financial_transactions
|
14
14
|
|
15
15
|
# Create a new virtual or physical card. Parameters `shipping_address` and
|
16
|
-
#
|
16
|
+
# `product_id` only apply to physical cards.
|
17
17
|
sig do
|
18
18
|
params(
|
19
19
|
type: Lithic::Models::CardCreateParams::Type::OrSymbol,
|
@@ -40,109 +40,107 @@ module Lithic
|
|
40
40
|
def create(
|
41
41
|
# Card types:
|
42
42
|
#
|
43
|
-
#
|
44
|
-
#
|
45
|
-
#
|
46
|
-
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
#
|
52
|
-
#
|
53
|
-
#
|
54
|
-
#
|
55
|
-
#
|
56
|
-
#
|
43
|
+
# - `VIRTUAL` - Card will authorize at any merchant and can be added to a digital
|
44
|
+
# wallet like Apple Pay or Google Pay (if the card program is digital
|
45
|
+
# wallet-enabled).
|
46
|
+
# - `PHYSICAL` - Manufactured and sent to the cardholder. We offer white label
|
47
|
+
# branding, credit, ATM, PIN debit, chip/EMV, NFC and magstripe functionality.
|
48
|
+
# Reach out at [lithic.com/contact](https://lithic.com/contact) for more
|
49
|
+
# information.
|
50
|
+
# - `SINGLE_USE` - Card is closed upon first successful authorization.
|
51
|
+
# - `MERCHANT_LOCKED` - _[Deprecated]_ Card is locked to the first merchant that
|
52
|
+
# successfully authorizes the card.
|
53
|
+
# - `UNLOCKED` - _[Deprecated]_ Similar behavior to VIRTUAL cards, please use
|
54
|
+
# VIRTUAL instead.
|
55
|
+
# - `DIGITAL_WALLET` - _[Deprecated]_ Similar behavior to VIRTUAL cards, please
|
56
|
+
# use VIRTUAL instead.
|
57
57
|
type:,
|
58
58
|
# Globally unique identifier for the account that the card will be associated
|
59
|
-
#
|
60
|
-
#
|
61
|
-
#
|
59
|
+
# with. Required for programs enrolling users using the
|
60
|
+
# [/account_holders endpoint](https://docs.lithic.com/docs/account-holders-kyc).
|
61
|
+
# See [Managing Your Program](doc:managing-your-program) for more information.
|
62
62
|
account_token: nil,
|
63
63
|
# For card programs with more than one BIN range. This must be configured with
|
64
|
-
#
|
65
|
-
#
|
66
|
-
#
|
67
|
-
#
|
68
|
-
#
|
64
|
+
# Lithic before use. Identifies the card program/BIN range under which to create
|
65
|
+
# the card. If omitted, will utilize the program's default `card_program_token`.
|
66
|
+
# In Sandbox, use 00000000-0000-0000-1000-000000000000 and
|
67
|
+
# 00000000-0000-0000-2000-000000000000 to test creating cards on specific card
|
68
|
+
# programs.
|
69
69
|
card_program_token: nil,
|
70
70
|
carrier: nil,
|
71
71
|
# Specifies the digital card art to be displayed in the user’s digital wallet
|
72
|
-
#
|
73
|
-
#
|
74
|
-
#
|
72
|
+
# after tokenization. This artwork must be approved by Mastercard and configured
|
73
|
+
# by Lithic to use. See
|
74
|
+
# [Flexible Card Art Guide](https://docs.lithic.com/docs/about-digital-wallets#flexible-card-art).
|
75
75
|
digital_card_art_token: nil,
|
76
76
|
# Two digit (MM) expiry month. If neither `exp_month` nor `exp_year` is provided,
|
77
|
-
#
|
77
|
+
# an expiration date will be generated.
|
78
78
|
exp_month: nil,
|
79
79
|
# Four digit (yyyy) expiry year. If neither `exp_month` nor `exp_year` is
|
80
|
-
#
|
80
|
+
# provided, an expiration date will be generated.
|
81
81
|
exp_year: nil,
|
82
82
|
# Friendly name to identify the card.
|
83
83
|
memo: nil,
|
84
84
|
# Encrypted PIN block (in base64). Applies to cards of type `PHYSICAL` and
|
85
|
-
#
|
86
|
-
#
|
85
|
+
# `VIRTUAL`. See
|
86
|
+
# [Encrypted PIN Block](https://docs.lithic.com/docs/cards#encrypted-pin-block).
|
87
87
|
pin: nil,
|
88
88
|
# Only applicable to cards of type `PHYSICAL`. This must be configured with Lithic
|
89
|
-
#
|
90
|
-
#
|
89
|
+
# before use. Specifies the configuration (i.e., physical card art) that the card
|
90
|
+
# should be manufactured with.
|
91
91
|
product_id: nil,
|
92
92
|
# Restricted field limited to select use cases. Lithic will reach out directly if
|
93
|
-
#
|
94
|
-
#
|
95
|
-
#
|
96
|
-
#
|
93
|
+
# this field should be used. Globally unique identifier for the replacement card's
|
94
|
+
# account. If this field is specified, `replacement_for` must also be specified.
|
95
|
+
# If `replacement_for` is specified and this field is omitted, the replacement
|
96
|
+
# card's account will be inferred from the card being replaced.
|
97
97
|
replacement_account_token: nil,
|
98
98
|
# Globally unique identifier for the card that this card will replace. If the card
|
99
|
-
#
|
100
|
-
#
|
99
|
+
# type is `PHYSICAL` it will be replaced by a `PHYSICAL` card. If the card type is
|
100
|
+
# `VIRTUAL` it will be replaced by a `VIRTUAL` card.
|
101
101
|
replacement_for: nil,
|
102
102
|
shipping_address: nil,
|
103
103
|
# Shipping method for the card. Only applies to cards of type PHYSICAL. Use of
|
104
|
-
#
|
104
|
+
# options besides `STANDARD` require additional permissions.
|
105
105
|
#
|
106
|
-
#
|
107
|
-
#
|
108
|
-
#
|
109
|
-
#
|
110
|
-
#
|
111
|
-
#
|
112
|
-
#
|
113
|
-
#
|
114
|
-
#
|
106
|
+
# - `STANDARD` - USPS regular mail or similar international option, with no
|
107
|
+
# tracking
|
108
|
+
# - `STANDARD_WITH_TRACKING` - USPS regular mail or similar international option,
|
109
|
+
# with tracking
|
110
|
+
# - `PRIORITY` - USPS Priority, 1-3 day shipping, with tracking
|
111
|
+
# - `EXPRESS` - FedEx Express, 3-day shipping, with tracking
|
112
|
+
# - `2_DAY` - FedEx 2-day shipping, with tracking
|
113
|
+
# - `EXPEDITED` - FedEx Standard Overnight or similar international option, with
|
114
|
+
# tracking
|
115
115
|
shipping_method: nil,
|
116
116
|
# Amount (in cents) to limit approved authorizations (e.g. 100000 would be a
|
117
|
-
#
|
118
|
-
#
|
119
|
-
#
|
120
|
-
#
|
117
|
+
# $1,000 limit). Transaction requests above the spend limit will be declined. Note
|
118
|
+
# that a spend limit of 0 is effectively no limit, and should only be used to
|
119
|
+
# reset or remove a prior limit. Only a limit of 1 or above will result in
|
120
|
+
# declined transactions due to checks against the card limit.
|
121
121
|
spend_limit: nil,
|
122
122
|
# Spend limit duration values:
|
123
123
|
#
|
124
|
-
#
|
125
|
-
#
|
126
|
-
#
|
127
|
-
#
|
128
|
-
#
|
129
|
-
#
|
130
|
-
#
|
131
|
-
#
|
132
|
-
#
|
133
|
-
#
|
124
|
+
# - `ANNUALLY` - Card will authorize transactions up to spend limit for the
|
125
|
+
# trailing year.
|
126
|
+
# - `FOREVER` - Card will authorize only up to spend limit for the entire lifetime
|
127
|
+
# of the card.
|
128
|
+
# - `MONTHLY` - Card will authorize transactions up to spend limit for the
|
129
|
+
# trailing month. To support recurring monthly payments, which can occur on
|
130
|
+
# different day every month, the time window we consider for monthly velocity
|
131
|
+
# starts 6 days after the current calendar date one month prior.
|
132
|
+
# - `TRANSACTION` - Card will authorize multiple transactions if each individual
|
133
|
+
# transaction is under the spend limit.
|
134
134
|
spend_limit_duration: nil,
|
135
135
|
# Card state values:
|
136
136
|
#
|
137
|
-
#
|
138
|
-
#
|
139
|
-
#
|
140
|
-
#
|
137
|
+
# - `OPEN` - Card will approve authorizations (if they match card and account
|
138
|
+
# parameters).
|
139
|
+
# - `PAUSED` - Card will decline authorizations, but can be resumed at a later
|
140
|
+
# time.
|
141
141
|
state: nil,
|
142
142
|
request_options: {}
|
143
|
-
)
|
144
|
-
end
|
145
|
-
|
143
|
+
); end
|
146
144
|
# Get card configuration such as spend limit and state.
|
147
145
|
sig do
|
148
146
|
params(
|
@@ -151,14 +149,13 @@ module Lithic
|
|
151
149
|
)
|
152
150
|
.returns(Lithic::Models::Card)
|
153
151
|
end
|
154
|
-
def retrieve(card_token, request_options: {})
|
155
|
-
end
|
152
|
+
def retrieve(card_token, request_options: {}); end
|
156
153
|
|
157
154
|
# Update the specified properties of the card. Unsupplied properties will remain
|
158
|
-
#
|
155
|
+
# unchanged.
|
159
156
|
#
|
160
|
-
#
|
161
|
-
#
|
157
|
+
# _Note: setting a card to a `CLOSED` state is a final action that cannot be
|
158
|
+
# undone._
|
162
159
|
sig do
|
163
160
|
params(
|
164
161
|
card_token: String,
|
@@ -176,51 +173,49 @@ module Lithic
|
|
176
173
|
def update(
|
177
174
|
card_token,
|
178
175
|
# Specifies the digital card art to be displayed in the user’s digital wallet
|
179
|
-
#
|
180
|
-
#
|
181
|
-
#
|
176
|
+
# after tokenization. This artwork must be approved by Mastercard and configured
|
177
|
+
# by Lithic to use. See
|
178
|
+
# [Flexible Card Art Guide](https://docs.lithic.com/docs/about-digital-wallets#flexible-card-art).
|
182
179
|
digital_card_art_token: nil,
|
183
180
|
# Friendly name to identify the card.
|
184
181
|
memo: nil,
|
185
182
|
# Encrypted PIN block (in base64). Only applies to cards of type `PHYSICAL` and
|
186
|
-
#
|
187
|
-
#
|
183
|
+
# `VIRTUAL`. Changing PIN also resets PIN status to `OK`. See
|
184
|
+
# [Encrypted PIN Block](https://docs.lithic.com/docs/cards#encrypted-pin-block).
|
188
185
|
pin: nil,
|
189
186
|
# Indicates if a card is blocked due a PIN status issue (e.g. excessive incorrect
|
190
|
-
#
|
187
|
+
# attempts). Can only be set to `OK` to unblock a card.
|
191
188
|
pin_status: nil,
|
192
189
|
# Amount (in cents) to limit approved authorizations (e.g. 100000 would be a
|
193
|
-
#
|
194
|
-
#
|
195
|
-
#
|
196
|
-
#
|
190
|
+
# $1,000 limit). Transaction requests above the spend limit will be declined. Note
|
191
|
+
# that a spend limit of 0 is effectively no limit, and should only be used to
|
192
|
+
# reset or remove a prior limit. Only a limit of 1 or above will result in
|
193
|
+
# declined transactions due to checks against the card limit.
|
197
194
|
spend_limit: nil,
|
198
195
|
# Spend limit duration values:
|
199
196
|
#
|
200
|
-
#
|
201
|
-
#
|
202
|
-
#
|
203
|
-
#
|
204
|
-
#
|
205
|
-
#
|
206
|
-
#
|
207
|
-
#
|
208
|
-
#
|
209
|
-
#
|
197
|
+
# - `ANNUALLY` - Card will authorize transactions up to spend limit for the
|
198
|
+
# trailing year.
|
199
|
+
# - `FOREVER` - Card will authorize only up to spend limit for the entire lifetime
|
200
|
+
# of the card.
|
201
|
+
# - `MONTHLY` - Card will authorize transactions up to spend limit for the
|
202
|
+
# trailing month. To support recurring monthly payments, which can occur on
|
203
|
+
# different day every month, the time window we consider for monthly velocity
|
204
|
+
# starts 6 days after the current calendar date one month prior.
|
205
|
+
# - `TRANSACTION` - Card will authorize multiple transactions if each individual
|
206
|
+
# transaction is under the spend limit.
|
210
207
|
spend_limit_duration: nil,
|
211
208
|
# Card state values:
|
212
209
|
#
|
213
|
-
#
|
214
|
-
#
|
215
|
-
#
|
216
|
-
#
|
217
|
-
#
|
218
|
-
#
|
210
|
+
# - `CLOSED` - Card will no longer approve authorizations. Closing a card cannot
|
211
|
+
# be undone.
|
212
|
+
# - `OPEN` - Card will approve authorizations (if they match card and account
|
213
|
+
# parameters).
|
214
|
+
# - `PAUSED` - Card will decline authorizations, but can be resumed at a later
|
215
|
+
# time.
|
219
216
|
state: nil,
|
220
217
|
request_options: {}
|
221
|
-
)
|
222
|
-
end
|
223
|
-
|
218
|
+
); end
|
224
219
|
# List cards.
|
225
220
|
sig do
|
226
221
|
params(
|
@@ -239,35 +234,33 @@ module Lithic
|
|
239
234
|
# Returns cards associated with the specified account.
|
240
235
|
account_token: nil,
|
241
236
|
# Date string in RFC 3339 format. Only entries created after the specified time
|
242
|
-
#
|
237
|
+
# will be included. UTC time zone.
|
243
238
|
begin_: nil,
|
244
239
|
# Date string in RFC 3339 format. Only entries created before the specified time
|
245
|
-
#
|
240
|
+
# will be included. UTC time zone.
|
246
241
|
end_: nil,
|
247
242
|
# A cursor representing an item's token before which a page of results should end.
|
248
|
-
#
|
243
|
+
# Used to retrieve the previous page of results before this item.
|
249
244
|
ending_before: nil,
|
250
245
|
# Page size (for pagination).
|
251
246
|
page_size: nil,
|
252
247
|
# A cursor representing an item's token after which a page of results should
|
253
|
-
#
|
248
|
+
# begin. Used to retrieve the next page of results after this item.
|
254
249
|
starting_after: nil,
|
255
250
|
# Returns cards with the specified state.
|
256
251
|
state: nil,
|
257
252
|
request_options: {}
|
258
|
-
)
|
259
|
-
end
|
260
|
-
|
253
|
+
); end
|
261
254
|
# Convert a virtual card into a physical card and manufacture it. Customer must
|
262
|
-
#
|
263
|
-
#
|
264
|
-
#
|
265
|
-
#
|
266
|
-
#
|
267
|
-
#
|
268
|
-
#
|
269
|
-
#
|
270
|
-
#
|
255
|
+
# supply relevant fields for physical card creation including `product_id`,
|
256
|
+
# `carrier`, `shipping_method`, and `shipping_address`. The card token will be
|
257
|
+
# unchanged. The card's type will be altered to `PHYSICAL`. The card will be set
|
258
|
+
# to state `PENDING_FULFILLMENT` and fulfilled at next fulfillment cycle. Virtual
|
259
|
+
# cards created on card programs which do not support physical cards cannot be
|
260
|
+
# converted. The card program cannot be changed as part of the conversion. Cards
|
261
|
+
# must be in an `OPEN` state to be converted. Only applies to cards of type
|
262
|
+
# `VIRTUAL` (or existing cards with deprecated types of `DIGITAL_WALLET` and
|
263
|
+
# `UNLOCKED`).
|
271
264
|
sig do
|
272
265
|
params(
|
273
266
|
card_token: String,
|
@@ -286,53 +279,51 @@ module Lithic
|
|
286
279
|
# If omitted, the previous carrier will be used.
|
287
280
|
carrier: nil,
|
288
281
|
# Specifies the configuration (e.g. physical card art) that the card should be
|
289
|
-
#
|
290
|
-
#
|
282
|
+
# manufactured with, and only applies to cards of type `PHYSICAL`. This must be
|
283
|
+
# configured with Lithic before use.
|
291
284
|
product_id: nil,
|
292
285
|
# Shipping method for the card. Only applies to cards of type PHYSICAL. Use of
|
293
|
-
#
|
286
|
+
# options besides `STANDARD` require additional permissions.
|
294
287
|
#
|
295
|
-
#
|
296
|
-
#
|
297
|
-
#
|
298
|
-
#
|
299
|
-
#
|
300
|
-
#
|
301
|
-
#
|
302
|
-
#
|
303
|
-
#
|
288
|
+
# - `STANDARD` - USPS regular mail or similar international option, with no
|
289
|
+
# tracking
|
290
|
+
# - `STANDARD_WITH_TRACKING` - USPS regular mail or similar international option,
|
291
|
+
# with tracking
|
292
|
+
# - `PRIORITY` - USPS Priority, 1-3 day shipping, with tracking
|
293
|
+
# - `EXPRESS` - FedEx Express, 3-day shipping, with tracking
|
294
|
+
# - `2_DAY` - FedEx 2-day shipping, with tracking
|
295
|
+
# - `EXPEDITED` - FedEx Standard Overnight or similar international option, with
|
296
|
+
# tracking
|
304
297
|
shipping_method: nil,
|
305
298
|
request_options: {}
|
306
|
-
)
|
307
|
-
end
|
308
|
-
|
299
|
+
); end
|
309
300
|
# Handling full card PANs and CVV codes requires that you comply with the Payment
|
310
|
-
#
|
311
|
-
#
|
312
|
-
#
|
301
|
+
# Card Industry Data Security Standards (PCI DSS). Some clients choose to reduce
|
302
|
+
# their compliance obligations by leveraging our embedded card UI solution
|
303
|
+
# documented below.
|
313
304
|
#
|
314
|
-
#
|
315
|
-
#
|
316
|
-
#
|
317
|
-
#
|
318
|
-
#
|
319
|
-
#
|
320
|
-
#
|
321
|
-
#
|
305
|
+
# In this setup, PANs and CVV codes are presented to the end-user via a card UI
|
306
|
+
# that we provide, optionally styled in the customer's branding using a specified
|
307
|
+
# css stylesheet. A user's browser makes the request directly to api.lithic.com,
|
308
|
+
# so card PANs and CVVs never touch the API customer's servers while full card
|
309
|
+
# data is displayed to their end-users. The response contains an HTML document
|
310
|
+
# (see Embedded Card UI or Changelog for upcoming changes in January). This means
|
311
|
+
# that the url for the request can be inserted straight into the `src` attribute
|
312
|
+
# of an iframe.
|
322
313
|
#
|
323
|
-
#
|
324
|
-
#
|
325
|
-
#
|
326
|
-
#
|
327
|
-
#
|
328
|
-
#
|
329
|
-
#
|
330
|
-
#
|
314
|
+
# ```html
|
315
|
+
# <iframe
|
316
|
+
# id="card-iframe"
|
317
|
+
# src="https://sandbox.lithic.com/v1/embed/card?embed_request=eyJjc3MiO...;hmac=r8tx1..."
|
318
|
+
# allow="clipboard-write"
|
319
|
+
# class="content"
|
320
|
+
# ></iframe>
|
321
|
+
# ```
|
331
322
|
#
|
332
|
-
#
|
333
|
-
#
|
334
|
-
#
|
335
|
-
#
|
323
|
+
# You should compute the request payload on the server side. You can render it (or
|
324
|
+
# the whole iframe) on the server or make an ajax call from your front end code,
|
325
|
+
# but **do not ever embed your API key into front end code, as doing so introduces
|
326
|
+
# a serious security vulnerability**.
|
336
327
|
sig do
|
337
328
|
params(
|
338
329
|
embed_request: String,
|
@@ -347,15 +338,13 @@ module Lithic
|
|
347
338
|
# SHA256 HMAC of the embed_request JSON string with base64 digest.
|
348
339
|
hmac:,
|
349
340
|
request_options: {}
|
350
|
-
)
|
351
|
-
end
|
352
|
-
|
341
|
+
); end
|
353
342
|
# Allow your cardholders to directly add payment cards to the device's digital
|
354
|
-
#
|
343
|
+
# wallet (e.g. Apple Pay) with one touch from your app.
|
355
344
|
#
|
356
|
-
#
|
357
|
-
#
|
358
|
-
#
|
345
|
+
# This requires some additional setup and configuration. Please
|
346
|
+
# [Contact Us](https://lithic.com/contact) or your Customer Success representative
|
347
|
+
# for more information.
|
359
348
|
sig do
|
360
349
|
params(
|
361
350
|
card_token: String,
|
@@ -373,37 +362,35 @@ module Lithic
|
|
373
362
|
# The unique token of the card to add to the device's digital wallet.
|
374
363
|
card_token,
|
375
364
|
# Only applicable if `digital_wallet` is `APPLE_PAY`. Omit to receive only
|
376
|
-
#
|
377
|
-
#
|
378
|
-
#
|
365
|
+
# `activationData` in the response. Apple's public leaf certificate. Base64
|
366
|
+
# encoded in PEM format with headers `(-----BEGIN CERTIFICATE-----)` and trailers
|
367
|
+
# omitted. Provided by the device's wallet.
|
379
368
|
certificate: nil,
|
380
369
|
# Only applicable if `digital_wallet` is `GOOGLE_PAY` or `SAMSUNG_PAY` and the
|
381
|
-
#
|
382
|
-
#
|
370
|
+
# card is on the Visa network. Stable device identification set by the wallet
|
371
|
+
# provider.
|
383
372
|
client_device_id: nil,
|
384
373
|
# Only applicable if `digital_wallet` is `GOOGLE_PAY` or `SAMSUNG_PAY` and the
|
385
|
-
#
|
386
|
-
#
|
374
|
+
# card is on the Visa network. Consumer ID that identifies the wallet account
|
375
|
+
# holder entity.
|
387
376
|
client_wallet_account_id: nil,
|
388
377
|
# Name of digital wallet provider.
|
389
378
|
digital_wallet: nil,
|
390
379
|
# Only applicable if `digital_wallet` is `APPLE_PAY`. Omit to receive only
|
391
|
-
#
|
392
|
-
#
|
380
|
+
# `activationData` in the response. Base64 cryptographic nonce provided by the
|
381
|
+
# device's wallet.
|
393
382
|
nonce: nil,
|
394
383
|
# Only applicable if `digital_wallet` is `APPLE_PAY`. Omit to receive only
|
395
|
-
#
|
396
|
-
#
|
384
|
+
# `activationData` in the response. Base64 cryptographic nonce provided by the
|
385
|
+
# device's wallet.
|
397
386
|
nonce_signature: nil,
|
398
387
|
request_options: {}
|
399
|
-
)
|
400
|
-
end
|
401
|
-
|
388
|
+
); end
|
402
389
|
# Initiate print and shipment of a duplicate physical card (e.g. card is
|
403
|
-
#
|
404
|
-
#
|
405
|
-
#
|
406
|
-
#
|
390
|
+
# physically damaged). The PAN, expiry, and CVC2 will remain the same and the
|
391
|
+
# original card can continue to be used until the new card is activated. Only
|
392
|
+
# applies to cards of type `PHYSICAL`. A card can be replaced or renewed a total
|
393
|
+
# of 8 times.
|
407
394
|
sig do
|
408
395
|
params(
|
409
396
|
card_token: String,
|
@@ -420,37 +407,35 @@ module Lithic
|
|
420
407
|
# If omitted, the previous carrier will be used.
|
421
408
|
carrier: nil,
|
422
409
|
# Specifies the configuration (e.g. physical card art) that the card should be
|
423
|
-
#
|
424
|
-
#
|
410
|
+
# manufactured with, and only applies to cards of type `PHYSICAL`. This must be
|
411
|
+
# configured with Lithic before use.
|
425
412
|
product_id: nil,
|
426
413
|
# If omitted, the previous shipping address will be used.
|
427
414
|
shipping_address: nil,
|
428
415
|
# Shipping method for the card. Only applies to cards of type PHYSICAL. Use of
|
429
|
-
#
|
416
|
+
# options besides `STANDARD` require additional permissions.
|
430
417
|
#
|
431
|
-
#
|
432
|
-
#
|
433
|
-
#
|
434
|
-
#
|
435
|
-
#
|
436
|
-
#
|
437
|
-
#
|
438
|
-
#
|
439
|
-
#
|
418
|
+
# - `STANDARD` - USPS regular mail or similar international option, with no
|
419
|
+
# tracking
|
420
|
+
# - `STANDARD_WITH_TRACKING` - USPS regular mail or similar international option,
|
421
|
+
# with tracking
|
422
|
+
# - `PRIORITY` - USPS Priority, 1-3 day shipping, with tracking
|
423
|
+
# - `EXPRESS` - FedEx Express, 3-day shipping, with tracking
|
424
|
+
# - `2_DAY` - FedEx 2-day shipping, with tracking
|
425
|
+
# - `EXPEDITED` - FedEx Standard Overnight or similar international option, with
|
426
|
+
# tracking
|
440
427
|
shipping_method: nil,
|
441
428
|
request_options: {}
|
442
|
-
)
|
443
|
-
end
|
444
|
-
|
429
|
+
); end
|
445
430
|
# Applies to card types `PHYSICAL` and `VIRTUAL`. For `PHYSICAL`, creates a new
|
446
|
-
#
|
447
|
-
#
|
448
|
-
#
|
449
|
-
#
|
450
|
-
#
|
451
|
-
#
|
452
|
-
#
|
453
|
-
#
|
431
|
+
# card with the same card token and PAN, but updated expiry and CVC2 code. The
|
432
|
+
# original card will keep working for card-present transactions until the new card
|
433
|
+
# is activated. For card-not-present transactions, the original card details
|
434
|
+
# (expiry, CVC2) will also keep working until the new card is activated. A
|
435
|
+
# `PHYSICAL` card can be replaced or renewed a total of 8 times. For `VIRTUAL`,
|
436
|
+
# the card will retain the same card token and PAN and receive an updated expiry
|
437
|
+
# and CVC2 code. `product_id`, `shipping_method`, `shipping_address`, `carrier`
|
438
|
+
# are only relevant for renewing `PHYSICAL` cards.
|
454
439
|
sig do
|
455
440
|
params(
|
456
441
|
card_token: String,
|
@@ -471,36 +456,34 @@ module Lithic
|
|
471
456
|
# If omitted, the previous carrier will be used.
|
472
457
|
carrier: nil,
|
473
458
|
# Two digit (MM) expiry month. If neither `exp_month` nor `exp_year` is provided,
|
474
|
-
#
|
459
|
+
# an expiration date six years in the future will be generated.
|
475
460
|
exp_month: nil,
|
476
461
|
# Four digit (yyyy) expiry year. If neither `exp_month` nor `exp_year` is
|
477
|
-
#
|
462
|
+
# provided, an expiration date six years in the future will be generated.
|
478
463
|
exp_year: nil,
|
479
464
|
# Specifies the configuration (e.g. physical card art) that the card should be
|
480
|
-
#
|
481
|
-
#
|
465
|
+
# manufactured with, and only applies to cards of type `PHYSICAL`. This must be
|
466
|
+
# configured with Lithic before use.
|
482
467
|
product_id: nil,
|
483
468
|
# Shipping method for the card. Only applies to cards of type PHYSICAL. Use of
|
484
|
-
#
|
469
|
+
# options besides `STANDARD` require additional permissions.
|
485
470
|
#
|
486
|
-
#
|
487
|
-
#
|
488
|
-
#
|
489
|
-
#
|
490
|
-
#
|
491
|
-
#
|
492
|
-
#
|
493
|
-
#
|
494
|
-
#
|
471
|
+
# - `STANDARD` - USPS regular mail or similar international option, with no
|
472
|
+
# tracking
|
473
|
+
# - `STANDARD_WITH_TRACKING` - USPS regular mail or similar international option,
|
474
|
+
# with tracking
|
475
|
+
# - `PRIORITY` - USPS Priority, 1-3 day shipping, with tracking
|
476
|
+
# - `EXPRESS` - FedEx Express, 3-day shipping, with tracking
|
477
|
+
# - `2_DAY` - FedEx 2-day shipping, with tracking
|
478
|
+
# - `EXPEDITED` - FedEx Standard Overnight or similar international option, with
|
479
|
+
# tracking
|
495
480
|
shipping_method: nil,
|
496
481
|
request_options: {}
|
497
|
-
)
|
498
|
-
end
|
499
|
-
|
482
|
+
); end
|
500
483
|
# Get a Card's available spend limit, which is based on the spend limit configured
|
501
|
-
#
|
502
|
-
#
|
503
|
-
#
|
484
|
+
# on the Card and the amount already spent over the spend limit's duration. For
|
485
|
+
# example, if the Card has a monthly spend limit of $1000 configured, and has
|
486
|
+
# spent $600 in the last month, the available spend limit returned would be $400.
|
504
487
|
sig do
|
505
488
|
params(
|
506
489
|
card_token: String,
|
@@ -508,14 +491,13 @@ module Lithic
|
|
508
491
|
)
|
509
492
|
.returns(Lithic::Models::CardSpendLimits)
|
510
493
|
end
|
511
|
-
def retrieve_spend_limits(card_token, request_options: {})
|
512
|
-
end
|
494
|
+
def retrieve_spend_limits(card_token, request_options: {}); end
|
513
495
|
|
514
496
|
# Get card configuration such as spend limit and state. Customers must be PCI
|
515
|
-
#
|
516
|
-
#
|
517
|
-
#
|
518
|
-
#
|
497
|
+
# compliant to use this endpoint. Please contact
|
498
|
+
# [support@lithic.com](mailto:support@lithic.com) for questions. _Note: this is a
|
499
|
+
# `POST` endpoint because it is more secure to send sensitive data in a request
|
500
|
+
# body than in a URL._
|
519
501
|
sig do
|
520
502
|
params(
|
521
503
|
pan: String,
|
@@ -532,13 +514,10 @@ module Lithic
|
|
532
514
|
# The PAN for the card being retrieved.
|
533
515
|
pan:,
|
534
516
|
request_options: {}
|
535
|
-
)
|
536
|
-
end
|
537
|
-
|
517
|
+
); end
|
538
518
|
# @api private
|
539
519
|
sig { params(client: Lithic::Client).returns(T.attached_class) }
|
540
|
-
def self.new(client:)
|
541
|
-
end
|
520
|
+
def self.new(client:); end
|
542
521
|
end
|
543
522
|
end
|
544
523
|
end
|