lithic 0.1.0.pre.alpha.5 → 0.1.0.pre.alpha.7
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 +29 -5
- data/lib/lithic/client.rb +3 -3
- data/lib/lithic/internal/cursor_page.rb +5 -1
- data/lib/lithic/internal/single_page.rb +5 -1
- data/lib/lithic/internal/transport/base_client.rb +3 -3
- data/lib/lithic/internal/transport/pooled_net_requester.rb +2 -2
- data/lib/lithic/internal/type/array_of.rb +5 -3
- data/lib/lithic/internal/type/base_model.rb +19 -16
- data/lib/lithic/internal/type/base_page.rb +4 -1
- data/lib/lithic/internal/type/{boolean_model.rb → boolean.rb} +2 -2
- data/lib/lithic/internal/type/converter.rb +26 -23
- data/lib/lithic/internal/type/enum.rb +10 -8
- data/lib/lithic/internal/type/hash_of.rb +3 -1
- data/lib/lithic/internal/util.rb +29 -50
- data/lib/lithic/models/account.rb +37 -37
- data/lib/lithic/models/account_holder.rb +58 -56
- data/lib/lithic/models/account_holder_create_params.rb +140 -144
- 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 +7 -7
- 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 +12 -12
- data/lib/lithic/models/auth_rules/v2_apply_params.rb +1 -1
- data/lib/lithic/models/auth_rules/v2_apply_response.rb +3 -3
- data/lib/lithic/models/auth_rules/v2_create_params.rb +1 -1
- data/lib/lithic/models/auth_rules/v2_create_response.rb +3 -3
- data/lib/lithic/models/auth_rules/v2_draft_response.rb +3 -3
- data/lib/lithic/models/auth_rules/v2_list_params.rb +2 -2
- data/lib/lithic/models/auth_rules/v2_list_response.rb +3 -3
- data/lib/lithic/models/auth_rules/v2_promote_response.rb +3 -3
- data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +3 -3
- data/lib/lithic/models/auth_rules/v2_update_params.rb +7 -7
- data/lib/lithic/models/auth_rules/v2_update_response.rb +3 -3
- 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 +25 -25
- 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 +25 -25
- data/lib/lithic/models/card_renew_params.rb +27 -27
- 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/credit_products/prime_rate_retrieve_response.rb +1 -1
- data/lib/lithic/models/digital_card_art.rb +2 -2
- 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 +7 -7
- data/lib/lithic/models/event_subscription.rb +1 -1
- data/lib/lithic/models/events/event_subscription_resend_params.rb +27 -0
- data/lib/lithic/models/events/subscription_create_params.rb +2 -2
- 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 +2 -2
- data/lib/lithic/models/external_bank_account_create_params.rb +5 -5
- 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.rb +11 -13
- data/lib/lithic/models/financial_account_create_params.rb +2 -2
- data/lib/lithic/models/financial_account_update_status_params.rb +9 -9
- 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_account_credit_config.rb +1 -1
- data/lib/lithic/models/financial_accounts/financial_transaction_list_params.rb +6 -6
- data/lib/lithic/models/financial_accounts/loan_tape.rb +24 -24
- data/lib/lithic/models/financial_accounts/loan_tape_list_params.rb +6 -6
- data/lib/lithic/models/financial_accounts/statement.rb +17 -17
- data/lib/lithic/models/financial_accounts/statement_list_params.rb +7 -7
- 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 +3 -2
- data/lib/lithic/models/financial_accounts/statements.rb +1 -1
- data/lib/lithic/models/financial_transaction.rb +35 -34
- data/lib/lithic/models/kyb.rb +128 -132
- 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/responder_endpoint_create_response.rb +1 -1
- data/lib/lithic/models/responder_endpoint_status.rb +1 -1
- data/lib/lithic/models/settlement_detail.rb +5 -5
- data/lib/lithic/models/settlement_report.rb +16 -16
- 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 +100 -100
- 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 +100 -100
- 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 +39 -39
- 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 +54 -54
- 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 +37 -37
- 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 +64 -61
- data/lib/lithic/resources/disputes.rb +6 -6
- data/lib/lithic/resources/events/event_subscriptions.rb +41 -0
- data/lib/lithic/resources/events/subscriptions.rb +8 -8
- data/lib/lithic/resources/events.rb +6 -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 +6 -6
- data/lib/lithic/resources/management_operations.rb +1 -1
- data/lib/lithic/resources/payments.rb +1 -1
- 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 +3 -1
- 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 +7 -13
- data/rbi/lib/lithic/internal/type/array_of.rbi +10 -18
- data/rbi/lib/lithic/internal/type/base_model.rbi +45 -64
- data/rbi/lib/lithic/internal/type/base_page.rbi +5 -10
- data/rbi/lib/lithic/internal/type/{boolean_model.rbi → boolean.rbi} +5 -9
- data/rbi/lib/lithic/internal/type/converter.rbi +25 -31
- data/rbi/lib/lithic/internal/type/enum.rbi +14 -20
- data/rbi/lib/lithic/internal/type/hash_of.rbi +8 -16
- data/rbi/lib/lithic/internal/type/request_parameters.rbi +1 -2
- data/rbi/lib/lithic/internal/type/union.rbi +10 -20
- data/rbi/lib/lithic/internal/type/unknown.rbi +4 -8
- data/rbi/lib/lithic/internal/util.rbi +40 -72
- 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 -100
- data/rbi/lib/lithic/models/account_holder_create_params.rbi +154 -171
- 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 +27 -29
- 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 +27 -29
- data/rbi/lib/lithic/models/card_renew_params.rbi +30 -34
- 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 +27 -0
- 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 +26 -39
- 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 +18 -37
- 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 +67 -107
- 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 +46 -72
- 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 +139 -153
- 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 +121 -156
- 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 +219 -237
- 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 +24 -0
- data/rbi/lib/lithic/resources/events/subscriptions.rbi +29 -48
- data/rbi/lib/lithic/resources/events.rbi +15 -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 +10 -19
- 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/rbi/lib/lithic/version.rbi +1 -1
- data/sig/lithic/internal/type/array_of.rbs +2 -2
- data/sig/lithic/internal/type/{boolean_model.rbs → boolean.rbs} +1 -1
- data/sig/lithic/internal/util.rbs +5 -5
- data/sig/lithic/models/account_holder_create_params.rbs +47 -43
- data/sig/lithic/models/card_convert_physical_params.rbs +2 -2
- data/sig/lithic/models/card_reissue_params.rbs +2 -2
- data/sig/lithic/models/card_renew_params.rbs +2 -2
- data/sig/lithic/models/events/event_subscription_resend_params.rbs +22 -0
- data/sig/lithic/models/financial_account.rbs +6 -6
- data/sig/lithic/models/financial_account_update_status_params.rbs +6 -6
- data/sig/lithic/models/financial_accounts/loan_tape.rbs +6 -6
- data/sig/lithic/models/financial_accounts/statement.rbs +6 -6
- 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/kyb.rbs +47 -43
- 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
- data/sig/lithic/resources/account_holders.rbs +1 -1
- data/sig/lithic/resources/events/event_subscriptions.rbs +15 -0
- data/sig/lithic/resources/events.rbs +2 -0
- data/sig/lithic/resources/financial_accounts.rbs +1 -1
- data/sig/lithic/version.rbs +1 -1
- metadata +11 -5
@@ -23,8 +23,8 @@ module Lithic
|
|
23
23
|
end
|
24
24
|
|
25
25
|
# Update account configuration such as state or spend limits. Can only be run on
|
26
|
-
#
|
27
|
-
#
|
26
|
+
# accounts that are part of the program managed by this API key. Accounts that are
|
27
|
+
# in the `PAUSED` state will not be able to transact or create new cards.
|
28
28
|
#
|
29
29
|
# @overload update(account_token, daily_spend_limit: nil, lifetime_spend_limit: nil, monthly_spend_limit: nil, state: nil, verification_address: nil, request_options: {})
|
30
30
|
#
|
@@ -69,7 +69,7 @@ module Lithic
|
|
69
69
|
@client.request(
|
70
70
|
method: :get,
|
71
71
|
path: "v1/accounts",
|
72
|
-
query: parsed,
|
72
|
+
query: parsed.transform_keys(begin_: "begin", end_: "end"),
|
73
73
|
page: Lithic::Internal::CursorPage,
|
74
74
|
model: Lithic::Models::Account,
|
75
75
|
options: options
|
@@ -77,10 +77,10 @@ module Lithic
|
|
77
77
|
end
|
78
78
|
|
79
79
|
# Get an Account's available spend limits, which is based on the spend limit
|
80
|
-
#
|
81
|
-
#
|
82
|
-
#
|
83
|
-
#
|
80
|
+
# configured on the Account and the amount already spent over the spend limit's
|
81
|
+
# duration. For example, if the Account has a daily spend limit of $1000
|
82
|
+
# configured, and has spent $600 in the last 24 hours, the available spend limit
|
83
|
+
# returned would be $400.
|
84
84
|
#
|
85
85
|
# @overload retrieve_spend_limits(account_token, request_options: {})
|
86
86
|
#
|
@@ -6,30 +6,30 @@ module Lithic
|
|
6
6
|
class V2
|
7
7
|
class Backtests
|
8
8
|
# Initiates a request to asynchronously generate a backtest for an authorization
|
9
|
-
#
|
10
|
-
#
|
11
|
-
#
|
12
|
-
#
|
13
|
-
#
|
14
|
-
#
|
15
|
-
#
|
16
|
-
#
|
17
|
-
#
|
9
|
+
# rule. During backtesting, both the active version (if one exists) and the draft
|
10
|
+
# version of the Authorization Rule are evaluated by replaying historical
|
11
|
+
# transaction data against the rule's conditions. This process allows customers to
|
12
|
+
# simulate and understand the effects of proposed rule changes before deployment.
|
13
|
+
# The generated backtest report provides detailed results showing whether the
|
14
|
+
# draft version of the Auth Rule would have approved or declined historical
|
15
|
+
# transactions which were processed during the backtest period. These reports help
|
16
|
+
# evaluate how changes to rule configurations might affect overall transaction
|
17
|
+
# approval rates.
|
18
18
|
#
|
19
|
-
#
|
20
|
-
#
|
21
|
-
#
|
22
|
-
#
|
23
|
-
#
|
24
|
-
#
|
19
|
+
# The generated backtest report will be delivered asynchronously through a webhook
|
20
|
+
# with `event_type` = `auth_rules.backtest_report.created`. See the docs on
|
21
|
+
# setting up [webhook subscriptions](https://docs.lithic.com/docs/events-api). It
|
22
|
+
# is also possible to request backtest reports on-demand through the
|
23
|
+
# `/v2/auth_rules/{auth_rule_token}/backtests/{auth_rule_backtest_token}`
|
24
|
+
# endpoint.
|
25
25
|
#
|
26
|
-
#
|
27
|
-
#
|
28
|
-
#
|
29
|
-
#
|
30
|
-
#
|
31
|
-
#
|
32
|
-
#
|
26
|
+
# Lithic currently supports backtesting for `CONDITIONAL_BLOCK` rules. Backtesting
|
27
|
+
# for `VELOCITY_LIMIT` rules is generally not supported. In specific cases (i.e.
|
28
|
+
# where Lithic has pre-calculated the requested velocity metrics for historical
|
29
|
+
# transactions), a backtest may be feasible. However, such cases are uncommon and
|
30
|
+
# customers should not anticipate support for velocity backtests under most
|
31
|
+
# configurations. If a historical transaction does not feature the required inputs
|
32
|
+
# to evaluate the rule, then it will not be included in the final backtest report.
|
33
33
|
#
|
34
34
|
# @overload create(auth_rule_token, end_: nil, start: nil, request_options: {})
|
35
35
|
#
|
@@ -54,22 +54,22 @@ module Lithic
|
|
54
54
|
|
55
55
|
# Returns the backtest results of an authorization rule (if available).
|
56
56
|
#
|
57
|
-
#
|
58
|
-
#
|
59
|
-
#
|
60
|
-
#
|
61
|
-
#
|
62
|
-
#
|
63
|
-
#
|
57
|
+
# Backtesting is an asynchronous process that requires time to complete. If a
|
58
|
+
# customer retrieves the backtest results using this endpoint before the report is
|
59
|
+
# fully generated, the response will return null for `results.current_version` and
|
60
|
+
# `results.draft_version`. Customers are advised to wait for the backtest creation
|
61
|
+
# process to complete (as indicated by the webhook event
|
62
|
+
# auth_rules.backtest_report.created) before retrieving results from this
|
63
|
+
# endpoint.
|
64
64
|
#
|
65
|
-
#
|
66
|
-
#
|
67
|
-
#
|
68
|
-
#
|
69
|
-
#
|
70
|
-
#
|
71
|
-
#
|
72
|
-
#
|
65
|
+
# Backtesting is an asynchronous process, while the backtest is being processed,
|
66
|
+
# results will not be available which will cause `results.current_version` and
|
67
|
+
# `results.draft_version` objects to contain `null`. The entries in `results` will
|
68
|
+
# also always represent the configuration of the rule at the time requests are
|
69
|
+
# made to this endpoint. For example, the results for `current_version` in the
|
70
|
+
# served backtest report will be consistent with which version of the rule is
|
71
|
+
# currently activated in the Auth Stream, regardless of which version of the rule
|
72
|
+
# was active in the Auth Stream at the time a backtest is requested.
|
73
73
|
#
|
74
74
|
# @overload retrieve(auth_rule_backtest_token, auth_rule_token:, request_options: {})
|
75
75
|
#
|
@@ -55,9 +55,9 @@ module Lithic
|
|
55
55
|
|
56
56
|
# Updates a V2 authorization rule's properties
|
57
57
|
#
|
58
|
-
#
|
59
|
-
#
|
60
|
-
#
|
58
|
+
# If `account_tokens`, `card_tokens`, `program_level`, or `excluded_card_tokens`
|
59
|
+
# is provided, this will replace existing associations with the provided list of
|
60
|
+
# entities.
|
61
61
|
#
|
62
62
|
# @overload update(auth_rule_token, account_tokens: nil, name: nil, state: nil, card_tokens: nil, excluded_card_tokens: nil, program_level: nil, request_options: {})
|
63
63
|
#
|
@@ -130,9 +130,9 @@ module Lithic
|
|
130
130
|
end
|
131
131
|
|
132
132
|
# Associates a V2 authorization rule with a card program, the provided account(s)
|
133
|
-
#
|
133
|
+
# or card(s).
|
134
134
|
#
|
135
|
-
#
|
135
|
+
# Prefer using the `PATCH` method for this operation.
|
136
136
|
#
|
137
137
|
# @overload apply(auth_rule_token, account_tokens:, card_tokens:, program_level:, excluded_card_tokens: nil, request_options: {})
|
138
138
|
#
|
@@ -159,8 +159,8 @@ module Lithic
|
|
159
159
|
|
160
160
|
# Creates a new draft version of a rule that will be ran in shadow mode.
|
161
161
|
#
|
162
|
-
#
|
163
|
-
#
|
162
|
+
# This can also be utilized to reset the draft parameters, causing a draft version
|
163
|
+
# to no longer be ran in shadow mode.
|
164
164
|
#
|
165
165
|
# @overload draft(auth_rule_token, parameters: nil, request_options: {})
|
166
166
|
#
|
@@ -183,7 +183,7 @@ module Lithic
|
|
183
183
|
end
|
184
184
|
|
185
185
|
# Promotes the draft version of an authorization rule to the currently active
|
186
|
-
#
|
186
|
+
# version such that it is enforced in the authorization stream.
|
187
187
|
#
|
188
188
|
# @overload promote(auth_rule_token, request_options: {})
|
189
189
|
#
|
@@ -203,56 +203,56 @@ module Lithic
|
|
203
203
|
end
|
204
204
|
|
205
205
|
# Requests a performance report of an authorization rule to be asynchronously
|
206
|
-
#
|
207
|
-
#
|
208
|
-
#
|
209
|
-
#
|
210
|
-
#
|
211
|
-
#
|
212
|
-
#
|
213
|
-
#
|
214
|
-
#
|
215
|
-
#
|
216
|
-
#
|
217
|
-
#
|
218
|
-
#
|
219
|
-
#
|
220
|
-
#
|
221
|
-
#
|
222
|
-
#
|
223
|
-
#
|
224
|
-
#
|
225
|
-
#
|
226
|
-
#
|
227
|
-
#
|
228
|
-
#
|
229
|
-
#
|
230
|
-
#
|
231
|
-
#
|
232
|
-
#
|
233
|
-
#
|
234
|
-
#
|
235
|
-
#
|
236
|
-
#
|
237
|
-
#
|
238
|
-
#
|
239
|
-
#
|
240
|
-
#
|
241
|
-
#
|
242
|
-
#
|
243
|
-
#
|
244
|
-
#
|
245
|
-
#
|
246
|
-
#
|
247
|
-
#
|
248
|
-
#
|
249
|
-
#
|
250
|
-
#
|
251
|
-
#
|
252
|
-
#
|
253
|
-
#
|
254
|
-
#
|
255
|
-
#
|
206
|
+
# generated. Reports can only be run on rules in draft or active mode and will
|
207
|
+
# included approved and declined statistics as well as examples. The generated
|
208
|
+
# report will be delivered asynchronously through a webhook with `event_type` =
|
209
|
+
# `auth_rules.performance_report.created`. See the docs on setting up
|
210
|
+
# [webhook subscriptions](https://docs.lithic.com/docs/events-api).
|
211
|
+
#
|
212
|
+
# Reports are generated based on data collected by Lithic's authorization
|
213
|
+
# processing system in the trailing week. The performance of the auth rule will be
|
214
|
+
# assessed on the configuration of the auth rule at the time the report is
|
215
|
+
# requested. This implies that if a performance report is requested, right after
|
216
|
+
# updating an auth rule, depending on the number of authorizations processed for a
|
217
|
+
# card program, it may be the case that no data is available for the report.
|
218
|
+
# Therefore Lithic recommends to decouple making updates to an Auth Rule, and
|
219
|
+
# requesting performance reports.
|
220
|
+
#
|
221
|
+
# To make this concrete, consider the following example:
|
222
|
+
#
|
223
|
+
# 1. At time `t`, a new Auth Rule is created, and applies to all authorizations on
|
224
|
+
# a card program. The Auth Rule has not yet been promoted, causing the draft
|
225
|
+
# version of the rule to be applied in shadow mode.
|
226
|
+
# 2. At time `t + 1 hour` a performance report is requested for the Auth Rule.
|
227
|
+
# This performance report will _only_ contain data for the Auth Rule being
|
228
|
+
# executed in the window between `t` and `t + 1 hour`. This is because Lithic's
|
229
|
+
# transaction processing system will only start capturing data for the Auth
|
230
|
+
# Rule at the time it is created.
|
231
|
+
# 3. At time `t + 2 hours` the draft version of the Auth Rule is promoted to the
|
232
|
+
# active version of the Auth Rule by calling the
|
233
|
+
# `/v2/auth_rules/{auth_rule_token}/promote` endpoint. If a performance report
|
234
|
+
# is requested at this moment it will still only contain data for this version
|
235
|
+
# of the rule, but the window of available data will now span from `t` to
|
236
|
+
# `t + 2 hours`.
|
237
|
+
# 4. At time `t + 3 hours` a new version of the rule is drafted by calling the
|
238
|
+
# `/v2/auth_rules/{auth_rule_token}/draft` endpoint. If a performance report is
|
239
|
+
# requested right at this moment, it will only contain data for authorizations
|
240
|
+
# to which both the active version and the draft version is applied. Lithic
|
241
|
+
# does this to ensure that performance reports represent a fair comparison
|
242
|
+
# between rules. Because there may be no authorizations in this window, and
|
243
|
+
# because there may be some lag before data is available in a performance
|
244
|
+
# report, the requested performance report could contain no to little data.
|
245
|
+
# 5. At time `t + 4 hours` another performance report is requested: this time the
|
246
|
+
# performance report will contain data from the window between `t + 3 hours`
|
247
|
+
# and `t + 4 hours`, for any authorizations to which both the current version
|
248
|
+
# of the authorization rule (in enforcing mode) and the draft version of the
|
249
|
+
# authorization rule (in shadow mode) applied.
|
250
|
+
#
|
251
|
+
# Note that generating a report may take up to 15 minutes and that delivery is not
|
252
|
+
# guaranteed. Customers are required to have created an event subscription to
|
253
|
+
# receive the webhook. Additionally, there is a delay of approximately 15 minutes
|
254
|
+
# between when Lithic's transaction processing systems have processed the
|
255
|
+
# transaction, and when a transaction will be included in the report.
|
256
256
|
#
|
257
257
|
# @overload report(auth_rule_token, request_options: {})
|
258
258
|
#
|
@@ -4,11 +4,11 @@ module Lithic
|
|
4
4
|
module Resources
|
5
5
|
class AuthStreamEnrollment
|
6
6
|
# Retrieve the ASA HMAC secret key. If one does not exist for your program yet,
|
7
|
-
#
|
8
|
-
#
|
9
|
-
#
|
10
|
-
#
|
11
|
-
#
|
7
|
+
# calling this endpoint will create one for you. The headers (which you can use to
|
8
|
+
# verify webhooks) will begin appearing shortly after calling this endpoint for
|
9
|
+
# the first time. See
|
10
|
+
# [this page](https://docs.lithic.com/docs/auth-stream-access-asa#asa-webhook-verification)
|
11
|
+
# for more detail about verifying ASA webhooks.
|
12
12
|
#
|
13
13
|
# @overload retrieve_secret(request_options: {})
|
14
14
|
#
|
@@ -27,9 +27,9 @@ module Lithic
|
|
27
27
|
end
|
28
28
|
|
29
29
|
# Generate a new ASA HMAC secret key. The old ASA HMAC secret key will be
|
30
|
-
#
|
31
|
-
#
|
32
|
-
#
|
30
|
+
# deactivated 24 hours after a successful request to this endpoint. Make a
|
31
|
+
# [`GET /auth_stream/secret`](https://docs.lithic.com/reference/getauthstreamsecret)
|
32
|
+
# request to retrieve the new secret key.
|
33
33
|
#
|
34
34
|
# @overload rotate_secret(request_options: {})
|
35
35
|
#
|
@@ -4,7 +4,7 @@ module Lithic
|
|
4
4
|
module Resources
|
5
5
|
class BookTransfers
|
6
6
|
# Book transfer funds between two financial accounts or between a financial
|
7
|
-
#
|
7
|
+
# account and card
|
8
8
|
#
|
9
9
|
# @overload create(amount:, category:, from_financial_account_token:, subtype:, to_financial_account_token:, type:, token: nil, memo: nil, request_options: {})
|
10
10
|
#
|
@@ -76,7 +76,7 @@ module Lithic
|
|
76
76
|
@client.request(
|
77
77
|
method: :get,
|
78
78
|
path: "v1/book_transfers",
|
79
|
-
query: parsed,
|
79
|
+
query: parsed.transform_keys(begin_: "begin", end_: "end"),
|
80
80
|
page: Lithic::Internal::CursorPage,
|
81
81
|
model: Lithic::Models::BookTransferResponse,
|
82
82
|
options: options
|
@@ -51,7 +51,7 @@ module Lithic
|
|
51
51
|
@client.request(
|
52
52
|
method: :get,
|
53
53
|
path: ["v1/cards/%1$s/financial_transactions", card_token],
|
54
|
-
query: parsed,
|
54
|
+
query: parsed.transform_keys(begin_: "begin", end_: "end"),
|
55
55
|
page: Lithic::Internal::SinglePage,
|
56
56
|
model: Lithic::Models::FinancialTransaction,
|
57
57
|
options: options
|
@@ -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
|
#
|
18
18
|
# @overload create(type:, account_token: nil, card_program_token: nil, carrier: nil, digital_card_art_token: nil, exp_month: nil, exp_year: nil, memo: nil, pin: nil, product_id: nil, replacement_account_token: nil, replacement_for: nil, shipping_address: nil, shipping_method: nil, spend_limit: nil, spend_limit_duration: nil, state: nil, request_options: {})
|
19
19
|
#
|
@@ -70,10 +70,10 @@ module Lithic
|
|
70
70
|
end
|
71
71
|
|
72
72
|
# Update the specified properties of the card. Unsupplied properties will remain
|
73
|
-
#
|
73
|
+
# unchanged.
|
74
74
|
#
|
75
|
-
#
|
76
|
-
#
|
75
|
+
# _Note: setting a card to a `CLOSED` state is a final action that cannot be
|
76
|
+
# undone._
|
77
77
|
#
|
78
78
|
# @overload update(card_token, digital_card_art_token: nil, memo: nil, pin: nil, pin_status: nil, spend_limit: nil, spend_limit_duration: nil, state: nil, request_options: {})
|
79
79
|
#
|
@@ -122,7 +122,7 @@ module Lithic
|
|
122
122
|
@client.request(
|
123
123
|
method: :get,
|
124
124
|
path: "v1/cards",
|
125
|
-
query: parsed,
|
125
|
+
query: parsed.transform_keys(begin_: "begin", end_: "end"),
|
126
126
|
page: Lithic::Internal::CursorPage,
|
127
127
|
model: Lithic::Models::Card,
|
128
128
|
options: options
|
@@ -130,15 +130,15 @@ module Lithic
|
|
130
130
|
end
|
131
131
|
|
132
132
|
# Convert a virtual card into a physical card and manufacture it. Customer must
|
133
|
-
#
|
134
|
-
#
|
135
|
-
#
|
136
|
-
#
|
137
|
-
#
|
138
|
-
#
|
139
|
-
#
|
140
|
-
#
|
141
|
-
#
|
133
|
+
# supply relevant fields for physical card creation including `product_id`,
|
134
|
+
# `carrier`, `shipping_method`, and `shipping_address`. The card token will be
|
135
|
+
# unchanged. The card's type will be altered to `PHYSICAL`. The card will be set
|
136
|
+
# to state `PENDING_FULFILLMENT` and fulfilled at next fulfillment cycle. Virtual
|
137
|
+
# cards created on card programs which do not support physical cards cannot be
|
138
|
+
# converted. The card program cannot be changed as part of the conversion. Cards
|
139
|
+
# must be in an `OPEN` state to be converted. Only applies to cards of type
|
140
|
+
# `VIRTUAL` (or existing cards with deprecated types of `DIGITAL_WALLET` and
|
141
|
+
# `UNLOCKED`).
|
142
142
|
#
|
143
143
|
# @overload convert_physical(card_token, shipping_address:, carrier: nil, product_id: nil, shipping_method: nil, request_options: {})
|
144
144
|
#
|
@@ -164,32 +164,32 @@ module Lithic
|
|
164
164
|
end
|
165
165
|
|
166
166
|
# Handling full card PANs and CVV codes requires that you comply with the Payment
|
167
|
-
#
|
168
|
-
#
|
169
|
-
#
|
170
|
-
#
|
171
|
-
#
|
172
|
-
#
|
173
|
-
#
|
174
|
-
#
|
175
|
-
#
|
176
|
-
#
|
177
|
-
#
|
178
|
-
#
|
179
|
-
#
|
180
|
-
#
|
181
|
-
#
|
182
|
-
#
|
183
|
-
#
|
184
|
-
#
|
185
|
-
#
|
186
|
-
#
|
187
|
-
#
|
188
|
-
#
|
189
|
-
#
|
190
|
-
#
|
191
|
-
#
|
192
|
-
#
|
167
|
+
# Card Industry Data Security Standards (PCI DSS). Some clients choose to reduce
|
168
|
+
# their compliance obligations by leveraging our embedded card UI solution
|
169
|
+
# documented below.
|
170
|
+
#
|
171
|
+
# In this setup, PANs and CVV codes are presented to the end-user via a card UI
|
172
|
+
# that we provide, optionally styled in the customer's branding using a specified
|
173
|
+
# css stylesheet. A user's browser makes the request directly to api.lithic.com,
|
174
|
+
# so card PANs and CVVs never touch the API customer's servers while full card
|
175
|
+
# data is displayed to their end-users. The response contains an HTML document
|
176
|
+
# (see Embedded Card UI or Changelog for upcoming changes in January). This means
|
177
|
+
# that the url for the request can be inserted straight into the `src` attribute
|
178
|
+
# of an iframe.
|
179
|
+
#
|
180
|
+
# ```html
|
181
|
+
# <iframe
|
182
|
+
# id="card-iframe"
|
183
|
+
# src="https://sandbox.lithic.com/v1/embed/card?embed_request=eyJjc3MiO...;hmac=r8tx1..."
|
184
|
+
# allow="clipboard-write"
|
185
|
+
# class="content"
|
186
|
+
# ></iframe>
|
187
|
+
# ```
|
188
|
+
#
|
189
|
+
# You should compute the request payload on the server side. You can render it (or
|
190
|
+
# the whole iframe) on the server or make an ajax call from your front end code,
|
191
|
+
# but **do not ever embed your API key into front end code, as doing so introduces
|
192
|
+
# a serious security vulnerability**.
|
193
193
|
#
|
194
194
|
# @overload embed(embed_request:, hmac:, request_options: {})
|
195
195
|
#
|
@@ -213,11 +213,11 @@ module Lithic
|
|
213
213
|
end
|
214
214
|
|
215
215
|
# Allow your cardholders to directly add payment cards to the device's digital
|
216
|
-
#
|
216
|
+
# wallet (e.g. Apple Pay) with one touch from your app.
|
217
217
|
#
|
218
|
-
#
|
219
|
-
#
|
220
|
-
#
|
218
|
+
# This requires some additional setup and configuration. Please
|
219
|
+
# [Contact Us](https://lithic.com/contact) or your Customer Success representative
|
220
|
+
# for more information.
|
221
221
|
#
|
222
222
|
# @overload provision(card_token, certificate: nil, client_device_id: nil, client_wallet_account_id: nil, digital_wallet: nil, nonce: nil, nonce_signature: nil, request_options: {})
|
223
223
|
#
|
@@ -245,10 +245,10 @@ module Lithic
|
|
245
245
|
end
|
246
246
|
|
247
247
|
# Initiate print and shipment of a duplicate physical card (e.g. card is
|
248
|
-
#
|
249
|
-
#
|
250
|
-
#
|
251
|
-
#
|
248
|
+
# physically damaged). The PAN, expiry, and CVC2 will remain the same and the
|
249
|
+
# original card can continue to be used until the new card is activated. Only
|
250
|
+
# applies to cards of type `PHYSICAL`. A card can be replaced or renewed a total
|
251
|
+
# of 8 times.
|
252
252
|
#
|
253
253
|
# @overload reissue(card_token, carrier: nil, product_id: nil, shipping_address: nil, shipping_method: nil, request_options: {})
|
254
254
|
#
|
@@ -273,12 +273,15 @@ module Lithic
|
|
273
273
|
)
|
274
274
|
end
|
275
275
|
|
276
|
-
#
|
277
|
-
#
|
278
|
-
#
|
279
|
-
#
|
280
|
-
#
|
281
|
-
#
|
276
|
+
# Applies to card types `PHYSICAL` and `VIRTUAL`. For `PHYSICAL`, creates a new
|
277
|
+
# card with the same card token and PAN, but updated expiry and CVC2 code. The
|
278
|
+
# original card will keep working for card-present transactions until the new card
|
279
|
+
# is activated. For card-not-present transactions, the original card details
|
280
|
+
# (expiry, CVC2) will also keep working until the new card is activated. A
|
281
|
+
# `PHYSICAL` card can be replaced or renewed a total of 8 times. For `VIRTUAL`,
|
282
|
+
# the card will retain the same card token and PAN and receive an updated expiry
|
283
|
+
# and CVC2 code. `product_id`, `shipping_method`, `shipping_address`, `carrier`
|
284
|
+
# are only relevant for renewing `PHYSICAL` cards.
|
282
285
|
#
|
283
286
|
# @overload renew(card_token, shipping_address:, carrier: nil, exp_month: nil, exp_year: nil, product_id: nil, shipping_method: nil, request_options: {})
|
284
287
|
#
|
@@ -306,9 +309,9 @@ module Lithic
|
|
306
309
|
end
|
307
310
|
|
308
311
|
# Get a Card's available spend limit, which is based on the spend limit configured
|
309
|
-
#
|
310
|
-
#
|
311
|
-
#
|
312
|
+
# on the Card and the amount already spent over the spend limit's duration. For
|
313
|
+
# example, if the Card has a monthly spend limit of $1000 configured, and has
|
314
|
+
# spent $600 in the last month, the available spend limit returned would be $400.
|
312
315
|
#
|
313
316
|
# @overload retrieve_spend_limits(card_token, request_options: {})
|
314
317
|
#
|
@@ -328,10 +331,10 @@ module Lithic
|
|
328
331
|
end
|
329
332
|
|
330
333
|
# Get card configuration such as spend limit and state. Customers must be PCI
|
331
|
-
#
|
332
|
-
#
|
333
|
-
#
|
334
|
-
#
|
334
|
+
# compliant to use this endpoint. Please contact
|
335
|
+
# [support@lithic.com](mailto:support@lithic.com) for questions. _Note: this is a
|
336
|
+
# `POST` endpoint because it is more secure to send sensitive data in a request
|
337
|
+
# body than in a URL._
|
335
338
|
#
|
336
339
|
# @overload search_by_pan(pan:, request_options: {})
|
337
340
|
#
|
@@ -93,7 +93,7 @@ module Lithic
|
|
93
93
|
@client.request(
|
94
94
|
method: :get,
|
95
95
|
path: "v1/disputes",
|
96
|
-
query: parsed,
|
96
|
+
query: parsed.transform_keys(begin_: "begin", end_: "end"),
|
97
97
|
page: Lithic::Internal::CursorPage,
|
98
98
|
model: Lithic::Models::Dispute,
|
99
99
|
options: options
|
@@ -120,7 +120,7 @@ module Lithic
|
|
120
120
|
end
|
121
121
|
|
122
122
|
# Soft delete evidence for a dispute. Evidence will not be reviewed or submitted
|
123
|
-
#
|
123
|
+
# by Lithic after it is withdrawn.
|
124
124
|
#
|
125
125
|
# @overload delete_evidence(evidence_token, dispute_token:, request_options: {})
|
126
126
|
#
|
@@ -146,10 +146,10 @@ module Lithic
|
|
146
146
|
end
|
147
147
|
|
148
148
|
# Use this endpoint to upload evidences for the dispute. It will return a URL to
|
149
|
-
#
|
149
|
+
# upload your documents to. The URL will expire in 30 minutes.
|
150
150
|
#
|
151
|
-
#
|
152
|
-
#
|
151
|
+
# Uploaded documents must either be a `jpg`, `png` or `pdf` file, and each must be
|
152
|
+
# less than 5 GiB.
|
153
153
|
#
|
154
154
|
# @overload initiate_evidence_upload(dispute_token, filename: nil, request_options: {})
|
155
155
|
#
|
@@ -191,7 +191,7 @@ module Lithic
|
|
191
191
|
@client.request(
|
192
192
|
method: :get,
|
193
193
|
path: ["v1/disputes/%1$s/evidences", dispute_token],
|
194
|
-
query: parsed,
|
194
|
+
query: parsed.transform_keys(begin_: "begin", end_: "end"),
|
195
195
|
page: Lithic::Internal::CursorPage,
|
196
196
|
model: Lithic::Models::DisputeEvidence,
|
197
197
|
options: options
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Lithic
|
4
|
+
module Resources
|
5
|
+
class Events
|
6
|
+
class EventSubscriptions
|
7
|
+
# Resend an event to an event subscription.
|
8
|
+
#
|
9
|
+
# @overload resend(event_subscription_token, event_token:, request_options: {})
|
10
|
+
#
|
11
|
+
# @param event_subscription_token [String]
|
12
|
+
# @param event_token [String]
|
13
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
14
|
+
#
|
15
|
+
# @return [nil]
|
16
|
+
#
|
17
|
+
# @see Lithic::Models::Events::EventSubscriptionResendParams
|
18
|
+
def resend(event_subscription_token, params)
|
19
|
+
parsed, options = Lithic::Models::Events::EventSubscriptionResendParams.dump_request(params)
|
20
|
+
event_token =
|
21
|
+
parsed.delete(:event_token) do
|
22
|
+
raise ArgumentError.new("missing required path argument #{_1}")
|
23
|
+
end
|
24
|
+
@client.request(
|
25
|
+
method: :post,
|
26
|
+
path: ["v1/events/%1$s/event_subscriptions/%2$s/resend", event_token, event_subscription_token],
|
27
|
+
model: NilClass,
|
28
|
+
options: options
|
29
|
+
)
|
30
|
+
end
|
31
|
+
|
32
|
+
# @api private
|
33
|
+
#
|
34
|
+
# @param client [Lithic::Client]
|
35
|
+
def initialize(client:)
|
36
|
+
@client = client
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|