lithic 0.1.0.pre.alpha.56 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +46 -0
- data/README.md +36 -1
- data/lib/lithic/client.rb +12 -0
- data/lib/lithic/errors.rb +15 -0
- data/lib/lithic/models/account_activity_list_params.rb +2 -0
- data/lib/lithic/models/account_activity_list_response.rb +2 -0
- data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +2 -0
- data/lib/lithic/models/account_holder_created_webhook_event.rb +75 -0
- data/lib/lithic/models/account_holder_document_updated_webhook_event.rb +191 -0
- data/lib/lithic/models/account_holder_updated_webhook_event.rb +702 -0
- data/lib/lithic/models/account_holder_verification_webhook_event.rb +69 -0
- data/lib/lithic/models/asa_request_webhook_event.rb +1010 -0
- data/lib/lithic/models/auth_rules/auth_rule.rb +208 -49
- data/lib/lithic/models/auth_rules/auth_rule_condition.rb +2 -2
- data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +2 -2
- data/lib/lithic/models/auth_rules/conditional_ach_action_parameters.rb +2 -2
- data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +2 -2
- data/lib/lithic/models/auth_rules/conditional_operation.rb +5 -0
- data/lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb +19 -2
- data/lib/lithic/models/auth_rules/conditional_value.rb +4 -1
- data/lib/lithic/models/auth_rules/event_stream.rb +21 -0
- data/lib/lithic/models/auth_rules/v2_create_params.rb +3 -17
- data/lib/lithic/models/auth_rules/v2_list_params.rb +16 -19
- data/lib/lithic/models/auth_rules_backtest_report_created_webhook_event.rb +16 -0
- data/lib/lithic/models/balance_updated_webhook_event.rb +23 -0
- data/lib/lithic/models/book_transfer_transaction_created_webhook_event.rb +18 -0
- data/lib/lithic/models/book_transfer_transaction_updated_webhook_event.rb +18 -0
- data/lib/lithic/models/card_bulk_order.rb +106 -0
- data/lib/lithic/models/card_bulk_order_create_params.rb +52 -0
- data/lib/lithic/models/card_bulk_order_list_params.rb +61 -0
- data/lib/lithic/models/card_bulk_order_retrieve_params.rb +14 -0
- data/lib/lithic/models/card_bulk_order_update_params.rb +32 -0
- data/lib/lithic/models/card_convert_physical_params.rb +3 -0
- data/lib/lithic/models/card_converted_webhook_event.rb +24 -0
- data/lib/lithic/models/card_create_params.rb +14 -1
- data/lib/lithic/models/card_created_webhook_event.rb +32 -0
- data/lib/lithic/models/card_program.rb +10 -10
- data/lib/lithic/models/card_reissue_params.rb +3 -0
- data/lib/lithic/models/card_reissued_webhook_event.rb +24 -0
- data/lib/lithic/models/card_renew_params.rb +3 -0
- data/lib/lithic/models/card_renewed_webhook_event.rb +56 -0
- data/lib/lithic/models/card_shipped_webhook_event.rb +70 -0
- data/lib/lithic/models/card_transaction_enhanced_data_created_webhook_event.rb +16 -0
- data/lib/lithic/models/card_transaction_enhanced_data_updated_webhook_event.rb +16 -0
- data/lib/lithic/models/card_transaction_updated_webhook_event.rb +16 -0
- data/lib/lithic/models/card_web_provision_params.rb +32 -1
- data/lib/lithic/models/card_web_provision_response.rb +98 -60
- data/lib/lithic/models/cardholder_authentication.rb +132 -0
- data/lib/lithic/models/device.rb +37 -0
- data/lib/lithic/models/digital_wallet_token_metadata.rb +141 -0
- data/lib/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rb +253 -0
- data/lib/lithic/models/digital_wallet_tokenization_result_webhook_event.rb +145 -0
- data/lib/lithic/models/digital_wallet_tokenization_two_factor_authentication_code_sent_webhook_event.rb +100 -0
- data/lib/lithic/models/digital_wallet_tokenization_two_factor_authentication_code_webhook_event.rb +108 -0
- data/lib/lithic/models/digital_wallet_tokenization_updated_webhook_event.rb +47 -0
- data/lib/lithic/models/dispute_evidence_upload_failed_webhook_event.rb +18 -0
- data/lib/lithic/models/dispute_transaction_created_webhook_event.rb +18 -0
- data/lib/lithic/models/dispute_transaction_updated_webhook_event.rb +18 -0
- data/lib/lithic/models/dispute_updated_webhook_event.rb +18 -0
- data/lib/lithic/models/{external_bank_account_unpause_response.rb → external_bank_account.rb} +15 -16
- data/lib/lithic/models/external_bank_account_created_webhook_event.rb +16 -0
- data/lib/lithic/models/external_bank_account_updated_webhook_event.rb +16 -0
- data/lib/lithic/models/external_payment.rb +12 -0
- data/lib/lithic/models/external_payment_create_params.rb +2 -0
- data/lib/lithic/models/external_payment_created_webhook_event.rb +16 -0
- data/lib/lithic/models/external_payment_list_params.rb +2 -0
- data/lib/lithic/models/external_payment_updated_webhook_event.rb +16 -0
- data/lib/lithic/models/financial_account_balance.rb +112 -0
- data/lib/lithic/models/financial_account_created_webhook_event.rb +16 -0
- data/lib/lithic/models/financial_account_updated_webhook_event.rb +16 -0
- data/lib/lithic/models/financial_accounts/statement.rb +9 -9
- data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +18 -0
- data/lib/lithic/models/financial_event.rb +16 -0
- data/lib/lithic/models/{funding_event_retrieve_response.rb → funding_event.rb} +9 -10
- data/lib/lithic/models/funding_event_created_webhook_event.rb +16 -0
- data/lib/lithic/models/internal_transaction.rb +166 -0
- data/lib/lithic/models/internal_transaction_created_webhook_event.rb +16 -0
- data/lib/lithic/models/internal_transaction_updated_webhook_event.rb +16 -0
- data/lib/lithic/models/loan_tape_created_webhook_event.rb +16 -0
- data/lib/lithic/models/loan_tape_updated_webhook_event.rb +16 -0
- data/lib/lithic/models/management_operation_create_params.rb +6 -0
- data/lib/lithic/models/management_operation_created_webhook_event.rb +16 -0
- data/lib/lithic/models/management_operation_transaction.rb +6 -0
- data/lib/lithic/models/management_operation_updated_webhook_event.rb +16 -0
- data/lib/lithic/models/network_total.rb +169 -0
- data/lib/lithic/models/network_total_created_webhook_event.rb +16 -0
- data/lib/lithic/models/network_total_updated_webhook_event.rb +16 -0
- data/lib/lithic/models/non_pci_card.rb +10 -1
- data/lib/lithic/models/parsed_webhook_event.rb +818 -0
- data/lib/lithic/models/payment.rb +11 -1
- data/lib/lithic/models/payment_create_params.rb +10 -1
- data/lib/lithic/models/payment_transaction_created_webhook_event.rb +18 -0
- data/lib/lithic/models/payment_transaction_updated_webhook_event.rb +18 -0
- data/lib/lithic/models/settlement_report_updated_webhook_event.rb +16 -0
- data/lib/lithic/models/statements_created_webhook_event.rb +16 -0
- data/lib/lithic/models/three_ds_authentication.rb +1259 -0
- data/lib/lithic/models/three_ds_authentication_challenge_webhook_event.rb +89 -0
- data/lib/lithic/models/three_ds_authentication_created_webhook_event.rb +18 -0
- data/lib/lithic/models/three_ds_authentication_updated_webhook_event.rb +18 -0
- data/lib/lithic/models/token_info.rb +42 -0
- data/lib/lithic/models/tokenization.rb +9 -111
- data/lib/lithic/models/tokenization_approval_request_webhook_event.rb +249 -0
- data/lib/lithic/models/tokenization_decisioning_request_webhook_event.rb +159 -0
- data/lib/lithic/models/tokenization_decline_reason.rb +27 -0
- data/lib/lithic/models/tokenization_result_webhook_event.rb +141 -0
- data/lib/lithic/models/tokenization_rule_result.rb +61 -0
- data/lib/lithic/models/tokenization_tfa_reason.rb +29 -0
- data/lib/lithic/models/tokenization_two_factor_authentication_code_sent_webhook_event.rb +100 -0
- data/lib/lithic/models/tokenization_two_factor_authentication_code_webhook_event.rb +108 -0
- data/lib/lithic/models/tokenization_updated_webhook_event.rb +47 -0
- data/lib/lithic/models/transaction.rb +6 -174
- data/lib/lithic/models/wallet_decisioning_info.rb +44 -0
- data/lib/lithic/models/webhook_parsed_params.rb +14 -0
- data/lib/lithic/models.rb +158 -0
- data/lib/lithic/resources/auth_rules/v2.rb +17 -15
- data/lib/lithic/resources/card_bulk_orders.rb +127 -0
- data/lib/lithic/resources/cards/balances.rb +2 -2
- data/lib/lithic/resources/cards.rb +14 -3
- data/lib/lithic/resources/external_bank_accounts.rb +4 -4
- data/lib/lithic/resources/financial_accounts/balances.rb +2 -2
- data/lib/lithic/resources/funding_events.rb +4 -4
- data/lib/lithic/resources/internal_transaction.rb +14 -0
- data/lib/lithic/resources/reports/settlement/network_totals.rb +4 -4
- data/lib/lithic/resources/three_ds/authentication.rb +2 -2
- data/lib/lithic/resources/tokenizations.rb +4 -4
- data/lib/lithic/resources/webhooks.rb +87 -0
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +92 -29
- data/manifest.yaml +1 -0
- data/rbi/lithic/client.rbi +9 -0
- data/rbi/lithic/models/account_activity_list_params.rbi +10 -0
- data/rbi/lithic/models/account_activity_list_response.rbi +10 -0
- data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +10 -0
- data/rbi/lithic/models/account_holder_created_webhook_event.rbi +149 -0
- data/rbi/lithic/models/account_holder_document_updated_webhook_event.rbi +479 -0
- data/rbi/lithic/models/account_holder_updated_webhook_event.rbi +1274 -0
- data/rbi/lithic/models/account_holder_verification_webhook_event.rbi +143 -0
- data/rbi/lithic/models/asa_request_webhook_event.rbi +2229 -0
- data/rbi/lithic/models/auth_rules/auth_rule.rbi +339 -80
- data/rbi/lithic/models/auth_rules/conditional_operation.rbi +25 -0
- data/rbi/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbi +29 -0
- data/rbi/lithic/models/auth_rules/conditional_value.rbi +2 -1
- data/rbi/lithic/models/auth_rules/event_stream.rbi +44 -0
- data/rbi/lithic/models/auth_rules/v2_create_params.rbi +4 -60
- data/rbi/lithic/models/auth_rules/v2_list_params.rbi +27 -59
- data/rbi/lithic/models/auth_rules_backtest_report_created_webhook_event.rbi +30 -0
- data/rbi/lithic/models/balance_updated_webhook_event.rbi +43 -0
- data/rbi/lithic/models/book_transfer_transaction_created_webhook_event.rbi +31 -0
- data/rbi/lithic/models/book_transfer_transaction_updated_webhook_event.rbi +31 -0
- data/rbi/lithic/models/card_bulk_order.rbi +141 -0
- data/rbi/lithic/models/card_bulk_order_create_params.rbi +92 -0
- data/rbi/lithic/models/card_bulk_order_list_params.rbi +98 -0
- data/rbi/lithic/models/card_bulk_order_retrieve_params.rbi +27 -0
- data/rbi/lithic/models/card_bulk_order_update_params.rbi +68 -0
- data/rbi/lithic/models/card_convert_physical_params.rbi +8 -0
- data/rbi/lithic/models/card_converted_webhook_event.rbi +35 -0
- data/rbi/lithic/models/card_create_params.rbi +23 -0
- data/rbi/lithic/models/card_created_webhook_event.rbi +53 -0
- data/rbi/lithic/models/card_program.rbi +10 -13
- data/rbi/lithic/models/card_reissue_params.rbi +8 -0
- data/rbi/lithic/models/card_reissued_webhook_event.rbi +38 -0
- data/rbi/lithic/models/card_renew_params.rbi +8 -0
- data/rbi/lithic/models/card_renewed_webhook_event.rbi +92 -0
- data/rbi/lithic/models/card_shipped_webhook_event.rbi +150 -0
- data/rbi/lithic/models/card_transaction_enhanced_data_created_webhook_event.rbi +30 -0
- data/rbi/lithic/models/card_transaction_enhanced_data_updated_webhook_event.rbi +30 -0
- data/rbi/lithic/models/card_transaction_updated_webhook_event.rbi +30 -0
- data/rbi/lithic/models/card_web_provision_params.rbi +44 -0
- data/rbi/lithic/models/card_web_provision_response.rbi +182 -102
- data/rbi/lithic/models/cardholder_authentication.rbi +296 -0
- data/rbi/lithic/models/device.rbi +54 -0
- data/rbi/lithic/models/digital_wallet_token_metadata.rbi +290 -0
- data/rbi/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rbi +548 -0
- data/rbi/lithic/models/digital_wallet_tokenization_result_webhook_event.rbi +295 -0
- data/rbi/lithic/models/digital_wallet_tokenization_two_factor_authentication_code_sent_webhook_event.rbi +186 -0
- data/rbi/lithic/models/digital_wallet_tokenization_two_factor_authentication_code_webhook_event.rbi +194 -0
- data/rbi/lithic/models/digital_wallet_tokenization_updated_webhook_event.rbi +73 -0
- data/rbi/lithic/models/dispute_evidence_upload_failed_webhook_event.rbi +31 -0
- data/rbi/lithic/models/dispute_transaction_created_webhook_event.rbi +31 -0
- data/rbi/lithic/models/dispute_transaction_updated_webhook_event.rbi +31 -0
- data/rbi/lithic/models/dispute_updated_webhook_event.rbi +28 -0
- data/rbi/lithic/models/{external_bank_account_unpause_response.rbi → external_bank_account.rbi} +26 -75
- data/rbi/lithic/models/external_bank_account_created_webhook_event.rbi +30 -0
- data/rbi/lithic/models/external_bank_account_updated_webhook_event.rbi +30 -0
- data/rbi/lithic/models/external_payment.rbi +57 -0
- data/rbi/lithic/models/external_payment_create_params.rbi +10 -0
- data/rbi/lithic/models/external_payment_created_webhook_event.rbi +30 -0
- data/rbi/lithic/models/external_payment_list_params.rbi +10 -0
- data/rbi/lithic/models/external_payment_updated_webhook_event.rbi +30 -0
- data/rbi/lithic/models/financial_account_balance.rbi +144 -0
- data/rbi/lithic/models/financial_account_created_webhook_event.rbi +30 -0
- data/rbi/lithic/models/financial_account_updated_webhook_event.rbi +30 -0
- data/rbi/lithic/models/financial_accounts/statement.rbi +9 -9
- data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +90 -0
- data/rbi/lithic/models/financial_event.rbi +60 -0
- data/rbi/lithic/models/{funding_event_list_response.rbi → funding_event.rbi} +13 -35
- data/rbi/lithic/models/funding_event_created_webhook_event.rbi +30 -0
- data/rbi/lithic/models/internal_transaction.rbi +282 -0
- data/rbi/lithic/models/internal_transaction_created_webhook_event.rbi +30 -0
- data/rbi/lithic/models/internal_transaction_updated_webhook_event.rbi +30 -0
- data/rbi/lithic/models/loan_tape_created_webhook_event.rbi +27 -0
- data/rbi/lithic/models/loan_tape_updated_webhook_event.rbi +27 -0
- data/rbi/lithic/models/management_operation_create_params.rbi +30 -0
- data/rbi/lithic/models/management_operation_created_webhook_event.rbi +30 -0
- data/rbi/lithic/models/management_operation_transaction.rbi +30 -0
- data/rbi/lithic/models/management_operation_updated_webhook_event.rbi +30 -0
- data/rbi/lithic/models/network_total.rbi +226 -0
- data/rbi/lithic/models/network_total_created_webhook_event.rbi +30 -0
- data/rbi/lithic/models/network_total_updated_webhook_event.rbi +30 -0
- data/rbi/lithic/models/non_pci_card.rbi +10 -0
- data/rbi/lithic/models/parsed_webhook_event.rbi +1310 -0
- data/rbi/lithic/models/payment.rbi +12 -0
- data/rbi/lithic/models/payment_create_params.rbi +15 -1
- data/rbi/lithic/models/payment_transaction_created_webhook_event.rbi +31 -0
- data/rbi/lithic/models/payment_transaction_updated_webhook_event.rbi +31 -0
- data/rbi/lithic/models/settlement_report_updated_webhook_event.rbi +30 -0
- data/rbi/lithic/models/statements_created_webhook_event.rbi +30 -0
- data/rbi/lithic/models/three_ds_authentication.rbi +2432 -0
- data/rbi/lithic/models/three_ds_authentication_challenge_webhook_event.rbi +175 -0
- data/rbi/lithic/models/three_ds_authentication_created_webhook_event.rbi +31 -0
- data/rbi/lithic/models/three_ds_authentication_updated_webhook_event.rbi +31 -0
- data/rbi/lithic/models/token_info.rbi +70 -0
- data/rbi/lithic/models/tokenization.rbi +12 -335
- data/rbi/lithic/models/tokenization_approval_request_webhook_event.rbi +548 -0
- data/rbi/lithic/models/tokenization_decisioning_request_webhook_event.rbi +333 -0
- data/rbi/lithic/models/tokenization_decline_reason.rbi +73 -0
- data/rbi/lithic/models/tokenization_result_webhook_event.rbi +295 -0
- data/rbi/lithic/models/tokenization_rule_result.rbi +96 -0
- data/rbi/lithic/models/tokenization_tfa_reason.rbi +74 -0
- data/rbi/lithic/models/tokenization_two_factor_authentication_code_sent_webhook_event.rbi +186 -0
- data/rbi/lithic/models/tokenization_two_factor_authentication_code_webhook_event.rbi +194 -0
- data/rbi/lithic/models/tokenization_updated_webhook_event.rbi +73 -0
- data/rbi/lithic/models/transaction.rbi +8 -410
- data/rbi/lithic/models/wallet_decisioning_info.rbi +63 -0
- data/rbi/lithic/models/webhook_parsed_params.rbi +27 -0
- data/rbi/lithic/models.rbi +193 -0
- data/rbi/lithic/resources/auth_rules/v2.rbi +15 -15
- data/rbi/lithic/resources/card_bulk_orders.rbi +101 -0
- data/rbi/lithic/resources/cards/balances.rbi +1 -3
- data/rbi/lithic/resources/cards.rbi +22 -1
- data/rbi/lithic/resources/external_bank_accounts.rbi +2 -2
- data/rbi/lithic/resources/financial_accounts/balances.rbi +1 -3
- data/rbi/lithic/resources/funding_events.rbi +2 -4
- data/rbi/lithic/resources/internal_transaction.rbi +12 -0
- data/rbi/lithic/resources/reports/settlement/network_totals.rbi +2 -8
- data/rbi/lithic/resources/three_ds/authentication.rbi +1 -1
- data/rbi/lithic/resources/tokenizations.rbi +2 -2
- data/rbi/lithic/resources/webhooks.rbi +158 -0
- data/sig/lithic/client.rbs +6 -0
- data/sig/lithic/models/account_activity_list_params.rbs +4 -0
- data/sig/lithic/models/account_activity_list_response.rbs +4 -0
- data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +4 -0
- data/sig/lithic/models/account_holder_created_webhook_event.rbs +77 -0
- data/sig/lithic/models/account_holder_document_updated_webhook_event.rbs +219 -0
- data/sig/lithic/models/account_holder_updated_webhook_event.rbs +587 -0
- data/sig/lithic/models/account_holder_verification_webhook_event.rbs +69 -0
- data/sig/lithic/models/asa_request_webhook_event.rbs +881 -0
- data/sig/lithic/models/auth_rules/auth_rule.rbs +135 -36
- data/sig/lithic/models/auth_rules/conditional_operation.rbs +10 -0
- data/sig/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbs +2 -0
- data/sig/lithic/models/auth_rules/conditional_value.rbs +1 -1
- data/sig/lithic/models/auth_rules/event_stream.rbs +24 -0
- data/sig/lithic/models/auth_rules/v2_create_params.rbs +6 -25
- data/sig/lithic/models/auth_rules/v2_list_params.rbs +15 -25
- data/sig/lithic/models/auth_rules_backtest_report_created_webhook_event.rbs +20 -0
- data/sig/lithic/models/balance_updated_webhook_event.rbs +25 -0
- data/sig/lithic/models/book_transfer_transaction_created_webhook_event.rbs +20 -0
- data/sig/lithic/models/book_transfer_transaction_updated_webhook_event.rbs +20 -0
- data/sig/lithic/models/card_bulk_order.rbs +76 -0
- data/sig/lithic/models/card_bulk_order_create_params.rbs +46 -0
- data/sig/lithic/models/card_bulk_order_list_params.rbs +56 -0
- data/sig/lithic/models/card_bulk_order_retrieve_params.rbs +15 -0
- data/sig/lithic/models/card_bulk_order_update_params.rbs +34 -0
- data/sig/lithic/models/card_convert_physical_params.rbs +2 -0
- data/sig/lithic/models/card_converted_webhook_event.rbs +19 -0
- data/sig/lithic/models/card_create_params.rbs +9 -0
- data/sig/lithic/models/card_created_webhook_event.rbs +30 -0
- data/sig/lithic/models/card_program.rbs +5 -7
- data/sig/lithic/models/card_reissue_params.rbs +2 -0
- data/sig/lithic/models/card_reissued_webhook_event.rbs +21 -0
- data/sig/lithic/models/card_renew_params.rbs +2 -0
- data/sig/lithic/models/card_renewed_webhook_event.rbs +55 -0
- data/sig/lithic/models/card_shipped_webhook_event.rbs +71 -0
- data/sig/lithic/models/card_transaction_enhanced_data_created_webhook_event.rbs +20 -0
- data/sig/lithic/models/card_transaction_enhanced_data_updated_webhook_event.rbs +20 -0
- data/sig/lithic/models/card_transaction_updated_webhook_event.rbs +18 -0
- data/sig/lithic/models/card_web_provision_params.rbs +26 -2
- data/sig/lithic/models/card_web_provision_response.rbs +81 -51
- data/sig/lithic/models/cardholder_authentication.rbs +98 -0
- data/sig/lithic/models/device.rbs +21 -0
- data/sig/lithic/models/digital_wallet_token_metadata.rbs +119 -0
- data/sig/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rbs +223 -0
- data/sig/lithic/models/digital_wallet_tokenization_result_webhook_event.rbs +133 -0
- data/sig/lithic/models/digital_wallet_tokenization_two_factor_authentication_code_sent_webhook_event.rbs +78 -0
- data/sig/lithic/models/digital_wallet_tokenization_two_factor_authentication_code_webhook_event.rbs +83 -0
- data/sig/lithic/models/digital_wallet_tokenization_updated_webhook_event.rbs +40 -0
- data/sig/lithic/models/dispute_evidence_upload_failed_webhook_event.rbs +18 -0
- data/sig/lithic/models/dispute_transaction_created_webhook_event.rbs +18 -0
- data/sig/lithic/models/dispute_transaction_updated_webhook_event.rbs +18 -0
- data/sig/lithic/models/dispute_updated_webhook_event.rbs +15 -0
- data/sig/lithic/models/{external_bank_account_unpause_response.rbs → external_bank_account.rbs} +17 -17
- data/sig/lithic/models/external_bank_account_created_webhook_event.rbs +18 -0
- data/sig/lithic/models/external_bank_account_updated_webhook_event.rbs +18 -0
- data/sig/lithic/models/external_payment.rbs +28 -1
- data/sig/lithic/models/external_payment_create_params.rbs +8 -1
- data/sig/lithic/models/external_payment_created_webhook_event.rbs +18 -0
- data/sig/lithic/models/external_payment_list_params.rbs +8 -1
- data/sig/lithic/models/external_payment_updated_webhook_event.rbs +18 -0
- data/sig/lithic/models/financial_account_balance.rbs +78 -0
- data/sig/lithic/models/financial_account_created_webhook_event.rbs +18 -0
- data/sig/lithic/models/financial_account_updated_webhook_event.rbs +18 -0
- data/sig/lithic/models/financial_accounts/statement.rbs +12 -12
- data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +36 -0
- data/sig/lithic/models/financial_event.rbs +32 -0
- data/sig/lithic/models/{funding_event_list_response.rbs → funding_event.rbs} +11 -11
- data/sig/lithic/models/funding_event_created_webhook_event.rbs +16 -0
- data/sig/lithic/models/internal_transaction.rbs +165 -0
- data/sig/lithic/models/internal_transaction_created_webhook_event.rbs +18 -0
- data/sig/lithic/models/internal_transaction_updated_webhook_event.rbs +18 -0
- data/sig/lithic/models/loan_tape_created_webhook_event.rbs +15 -0
- data/sig/lithic/models/loan_tape_updated_webhook_event.rbs +15 -0
- data/sig/lithic/models/management_operation_create_params.rbs +12 -0
- data/sig/lithic/models/management_operation_created_webhook_event.rbs +18 -0
- data/sig/lithic/models/management_operation_transaction.rbs +12 -0
- data/sig/lithic/models/management_operation_updated_webhook_event.rbs +18 -0
- data/sig/lithic/models/network_total.rbs +125 -0
- data/sig/lithic/models/network_total_created_webhook_event.rbs +16 -0
- data/sig/lithic/models/network_total_updated_webhook_event.rbs +16 -0
- data/sig/lithic/models/non_pci_card.rbs +5 -0
- data/sig/lithic/models/parsed_webhook_event.rbs +641 -0
- data/sig/lithic/models/payment.rbs +9 -0
- data/sig/lithic/models/payment_create_params.rbs +7 -0
- data/sig/lithic/models/payment_transaction_created_webhook_event.rbs +18 -0
- data/sig/lithic/models/payment_transaction_updated_webhook_event.rbs +18 -0
- data/sig/lithic/models/settlement_report_updated_webhook_event.rbs +18 -0
- data/sig/lithic/models/statements_created_webhook_event.rbs +16 -0
- data/sig/lithic/models/three_ds_authentication.rbs +911 -0
- data/sig/lithic/models/three_ds_authentication_challenge_webhook_event.rbs +72 -0
- data/sig/lithic/models/three_ds_authentication_created_webhook_event.rbs +18 -0
- data/sig/lithic/models/three_ds_authentication_updated_webhook_event.rbs +18 -0
- data/sig/lithic/models/token_info.rbs +36 -0
- data/sig/lithic/models/tokenization.rbs +18 -137
- data/sig/lithic/models/tokenization_approval_request_webhook_event.rbs +223 -0
- data/sig/lithic/models/tokenization_decisioning_request_webhook_event.rbs +134 -0
- data/sig/lithic/models/tokenization_decline_reason.rbs +38 -0
- data/sig/lithic/models/tokenization_result_webhook_event.rbs +133 -0
- data/sig/lithic/models/tokenization_rule_result.rbs +48 -0
- data/sig/lithic/models/tokenization_tfa_reason.rbs +42 -0
- data/sig/lithic/models/tokenization_two_factor_authentication_code_sent_webhook_event.rbs +78 -0
- data/sig/lithic/models/tokenization_two_factor_authentication_code_webhook_event.rbs +83 -0
- data/sig/lithic/models/tokenization_updated_webhook_event.rbs +40 -0
- data/sig/lithic/models/transaction.rbs +8 -140
- data/sig/lithic/models/wallet_decisioning_info.rbs +35 -0
- data/sig/lithic/models/webhook_parsed_params.rbs +15 -0
- data/sig/lithic/models.rbs +150 -0
- data/sig/lithic/resources/auth_rules/v2.rbs +9 -8
- data/sig/lithic/resources/card_bulk_orders.rbs +34 -0
- data/sig/lithic/resources/cards/balances.rbs +1 -1
- data/sig/lithic/resources/cards.rbs +5 -1
- data/sig/lithic/resources/external_bank_accounts.rbs +2 -2
- data/sig/lithic/resources/financial_accounts/balances.rbs +1 -1
- data/sig/lithic/resources/funding_events.rbs +2 -2
- data/sig/lithic/resources/internal_transaction.rbs +7 -0
- data/sig/lithic/resources/reports/settlement/network_totals.rbs +2 -2
- data/sig/lithic/resources/three_ds/authentication.rbs +1 -1
- data/sig/lithic/resources/tokenizations.rbs +2 -2
- data/sig/lithic/resources/webhooks.rbs +135 -0
- metadata +241 -55
- data/lib/lithic/models/auth_rules/v2_create_response.rb +0 -280
- data/lib/lithic/models/auth_rules/v2_draft_response.rb +0 -279
- data/lib/lithic/models/auth_rules/v2_list_response.rb +0 -279
- data/lib/lithic/models/auth_rules/v2_promote_response.rb +0 -280
- data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +0 -284
- data/lib/lithic/models/auth_rules/v2_update_response.rb +0 -280
- data/lib/lithic/models/cards/balance_list_response.rb +0 -115
- data/lib/lithic/models/external_bank_account_retry_prenote_response.rb +0 -242
- data/lib/lithic/models/financial_accounts/balance_list_response.rb +0 -115
- data/lib/lithic/models/funding_event_list_response.rb +0 -108
- data/lib/lithic/models/reports/settlement/network_total_list_response.rb +0 -176
- data/lib/lithic/models/reports/settlement/network_total_retrieve_response.rb +0 -176
- data/lib/lithic/models/three_ds/authentication_retrieve_response.rb +0 -1288
- data/lib/lithic/models/tokenization_simulate_response.rb +0 -16
- data/lib/lithic/models/tokenization_update_digital_card_art_response.rb +0 -16
- data/rbi/lithic/models/auth_rules/v2_create_response.rbi +0 -522
- data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +0 -522
- data/rbi/lithic/models/auth_rules/v2_list_response.rbi +0 -518
- data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +0 -525
- data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +0 -528
- data/rbi/lithic/models/auth_rules/v2_update_response.rbi +0 -522
- data/rbi/lithic/models/cards/balance_list_response.rbi +0 -170
- data/rbi/lithic/models/external_bank_account_retry_prenote_response.rbi +0 -375
- data/rbi/lithic/models/financial_accounts/balance_list_response.rbi +0 -174
- data/rbi/lithic/models/funding_event_retrieve_response.rbi +0 -184
- data/rbi/lithic/models/reports/settlement/network_total_list_response.rbi +0 -280
- data/rbi/lithic/models/reports/settlement/network_total_retrieve_response.rbi +0 -280
- data/rbi/lithic/models/three_ds/authentication_retrieve_response.rbi +0 -2580
- data/rbi/lithic/models/tokenization_simulate_response.rbi +0 -33
- data/rbi/lithic/models/tokenization_update_digital_card_art_response.rbi +0 -31
- data/sig/lithic/models/auth_rules/v2_create_response.rbs +0 -205
- data/sig/lithic/models/auth_rules/v2_draft_response.rbs +0 -205
- data/sig/lithic/models/auth_rules/v2_list_response.rbs +0 -205
- data/sig/lithic/models/auth_rules/v2_promote_response.rbs +0 -205
- data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +0 -205
- data/sig/lithic/models/auth_rules/v2_update_response.rbs +0 -205
- data/sig/lithic/models/cards/balance_list_response.rbs +0 -80
- data/sig/lithic/models/external_bank_account_retry_prenote_response.rbs +0 -162
- data/sig/lithic/models/financial_accounts/balance_list_response.rbs +0 -80
- data/sig/lithic/models/funding_event_retrieve_response.rbs +0 -85
- data/sig/lithic/models/reports/settlement/network_total_list_response.rbs +0 -129
- data/sig/lithic/models/reports/settlement/network_total_retrieve_response.rbs +0 -129
- data/sig/lithic/models/three_ds/authentication_retrieve_response.rbs +0 -913
- data/sig/lithic/models/tokenization_simulate_response.rbs +0 -18
- data/sig/lithic/models/tokenization_update_digital_card_art_response.rbs +0 -16
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
module Lithic
|
|
2
|
+
module Models
|
|
3
|
+
type three_ds_authentication_challenge_webhook_event =
|
|
4
|
+
{
|
|
5
|
+
authentication_object: Lithic::ThreeDSAuthentication,
|
|
6
|
+
challenge: Lithic::ThreeDSAuthenticationChallengeWebhookEvent::Challenge,
|
|
7
|
+
event_type: :"three_ds_authentication.challenge"
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
class ThreeDSAuthenticationChallengeWebhookEvent < Lithic::Internal::Type::BaseModel
|
|
11
|
+
attr_accessor authentication_object: Lithic::ThreeDSAuthentication
|
|
12
|
+
|
|
13
|
+
attr_accessor challenge: Lithic::ThreeDSAuthenticationChallengeWebhookEvent::Challenge
|
|
14
|
+
|
|
15
|
+
attr_accessor event_type: :"three_ds_authentication.challenge"
|
|
16
|
+
|
|
17
|
+
def initialize: (
|
|
18
|
+
authentication_object: Lithic::ThreeDSAuthentication,
|
|
19
|
+
challenge: Lithic::ThreeDSAuthenticationChallengeWebhookEvent::Challenge,
|
|
20
|
+
?event_type: :"three_ds_authentication.challenge"
|
|
21
|
+
) -> void
|
|
22
|
+
|
|
23
|
+
def to_hash: -> {
|
|
24
|
+
authentication_object: Lithic::ThreeDSAuthentication,
|
|
25
|
+
challenge: Lithic::ThreeDSAuthenticationChallengeWebhookEvent::Challenge,
|
|
26
|
+
event_type: :"three_ds_authentication.challenge"
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
type challenge =
|
|
30
|
+
{
|
|
31
|
+
challenge_method_type: Lithic::Models::ThreeDSAuthenticationChallengeWebhookEvent::Challenge::challenge_method_type,
|
|
32
|
+
expiry_time: Time,
|
|
33
|
+
start_time: Time,
|
|
34
|
+
app_requestor_url: String?
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
class Challenge < Lithic::Internal::Type::BaseModel
|
|
38
|
+
attr_accessor challenge_method_type: Lithic::Models::ThreeDSAuthenticationChallengeWebhookEvent::Challenge::challenge_method_type
|
|
39
|
+
|
|
40
|
+
attr_accessor expiry_time: Time
|
|
41
|
+
|
|
42
|
+
attr_accessor start_time: Time
|
|
43
|
+
|
|
44
|
+
attr_accessor app_requestor_url: String?
|
|
45
|
+
|
|
46
|
+
def initialize: (
|
|
47
|
+
challenge_method_type: Lithic::Models::ThreeDSAuthenticationChallengeWebhookEvent::Challenge::challenge_method_type,
|
|
48
|
+
expiry_time: Time,
|
|
49
|
+
start_time: Time,
|
|
50
|
+
?app_requestor_url: String?
|
|
51
|
+
) -> void
|
|
52
|
+
|
|
53
|
+
def to_hash: -> {
|
|
54
|
+
challenge_method_type: Lithic::Models::ThreeDSAuthenticationChallengeWebhookEvent::Challenge::challenge_method_type,
|
|
55
|
+
expiry_time: Time,
|
|
56
|
+
start_time: Time,
|
|
57
|
+
app_requestor_url: String?
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
type challenge_method_type = :OUT_OF_BAND
|
|
61
|
+
|
|
62
|
+
module ChallengeMethodType
|
|
63
|
+
extend Lithic::Internal::Type::Enum
|
|
64
|
+
|
|
65
|
+
OUT_OF_BAND: :OUT_OF_BAND
|
|
66
|
+
|
|
67
|
+
def self?.values: -> ::Array[Lithic::Models::ThreeDSAuthenticationChallengeWebhookEvent::Challenge::challenge_method_type]
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
module Lithic
|
|
2
|
+
module Models
|
|
3
|
+
type three_ds_authentication_created_webhook_event =
|
|
4
|
+
{ event_type: :"three_ds_authentication.created" }
|
|
5
|
+
|
|
6
|
+
class ThreeDSAuthenticationCreatedWebhookEvent < Lithic::Models::ThreeDSAuthentication
|
|
7
|
+
def event_type: -> :"three_ds_authentication.created"
|
|
8
|
+
|
|
9
|
+
def event_type=: (
|
|
10
|
+
:"three_ds_authentication.created" _
|
|
11
|
+
) -> :"three_ds_authentication.created"
|
|
12
|
+
|
|
13
|
+
def initialize: (?event_type: :"three_ds_authentication.created") -> void
|
|
14
|
+
|
|
15
|
+
def to_hash: -> { event_type: :"three_ds_authentication.created" }
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
module Lithic
|
|
2
|
+
module Models
|
|
3
|
+
type three_ds_authentication_updated_webhook_event =
|
|
4
|
+
{ event_type: :"three_ds_authentication.updated" }
|
|
5
|
+
|
|
6
|
+
class ThreeDSAuthenticationUpdatedWebhookEvent < Lithic::Models::ThreeDSAuthentication
|
|
7
|
+
def event_type: -> :"three_ds_authentication.updated"
|
|
8
|
+
|
|
9
|
+
def event_type=: (
|
|
10
|
+
:"three_ds_authentication.updated" _
|
|
11
|
+
) -> :"three_ds_authentication.updated"
|
|
12
|
+
|
|
13
|
+
def initialize: (?event_type: :"three_ds_authentication.updated") -> void
|
|
14
|
+
|
|
15
|
+
def to_hash: -> { event_type: :"three_ds_authentication.updated" }
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
module Lithic
|
|
2
|
+
module Models
|
|
3
|
+
type token_info = { wallet_type: Lithic::Models::TokenInfo::wallet_type }
|
|
4
|
+
|
|
5
|
+
class TokenInfo < Lithic::Internal::Type::BaseModel
|
|
6
|
+
attr_accessor wallet_type: Lithic::Models::TokenInfo::wallet_type
|
|
7
|
+
|
|
8
|
+
def initialize: (
|
|
9
|
+
wallet_type: Lithic::Models::TokenInfo::wallet_type
|
|
10
|
+
) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { wallet_type: Lithic::Models::TokenInfo::wallet_type }
|
|
13
|
+
|
|
14
|
+
type wallet_type =
|
|
15
|
+
:APPLE_PAY
|
|
16
|
+
| :GOOGLE_PAY
|
|
17
|
+
| :MASTERPASS
|
|
18
|
+
| :MERCHANT
|
|
19
|
+
| :OTHER
|
|
20
|
+
| :SAMSUNG_PAY
|
|
21
|
+
|
|
22
|
+
module WalletType
|
|
23
|
+
extend Lithic::Internal::Type::Enum
|
|
24
|
+
|
|
25
|
+
APPLE_PAY: :APPLE_PAY
|
|
26
|
+
GOOGLE_PAY: :GOOGLE_PAY
|
|
27
|
+
MASTERPASS: :MASTERPASS
|
|
28
|
+
MERCHANT: :MERCHANT
|
|
29
|
+
OTHER: :OTHER
|
|
30
|
+
SAMSUNG_PAY: :SAMSUNG_PAY
|
|
31
|
+
|
|
32
|
+
def self?.values: -> ::Array[Lithic::Models::TokenInfo::wallet_type]
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -158,9 +158,9 @@ module Lithic
|
|
|
158
158
|
token: String,
|
|
159
159
|
created_at: Time,
|
|
160
160
|
result: Lithic::Models::Tokenization::Event::result,
|
|
161
|
-
rule_results: ::Array[Lithic::
|
|
162
|
-
tokenization_decline_reasons: ::Array[Lithic::Models::
|
|
163
|
-
tokenization_tfa_reasons: ::Array[Lithic::Models::
|
|
161
|
+
rule_results: ::Array[Lithic::TokenizationRuleResult],
|
|
162
|
+
tokenization_decline_reasons: ::Array[Lithic::Models::tokenization_decline_reason],
|
|
163
|
+
tokenization_tfa_reasons: ::Array[Lithic::Models::tokenization_tfa_reason],
|
|
164
164
|
type: Lithic::Models::Tokenization::Event::type_
|
|
165
165
|
}
|
|
166
166
|
|
|
@@ -179,23 +179,23 @@ module Lithic
|
|
|
179
179
|
Lithic::Models::Tokenization::Event::result
|
|
180
180
|
) -> Lithic::Models::Tokenization::Event::result
|
|
181
181
|
|
|
182
|
-
attr_reader rule_results: ::Array[Lithic::
|
|
182
|
+
attr_reader rule_results: ::Array[Lithic::TokenizationRuleResult]?
|
|
183
183
|
|
|
184
184
|
def rule_results=: (
|
|
185
|
-
::Array[Lithic::
|
|
186
|
-
) -> ::Array[Lithic::
|
|
185
|
+
::Array[Lithic::TokenizationRuleResult]
|
|
186
|
+
) -> ::Array[Lithic::TokenizationRuleResult]
|
|
187
187
|
|
|
188
|
-
attr_reader tokenization_decline_reasons: ::Array[Lithic::Models::
|
|
188
|
+
attr_reader tokenization_decline_reasons: ::Array[Lithic::Models::tokenization_decline_reason]?
|
|
189
189
|
|
|
190
190
|
def tokenization_decline_reasons=: (
|
|
191
|
-
::Array[Lithic::Models::
|
|
192
|
-
) -> ::Array[Lithic::Models::
|
|
191
|
+
::Array[Lithic::Models::tokenization_decline_reason]
|
|
192
|
+
) -> ::Array[Lithic::Models::tokenization_decline_reason]
|
|
193
193
|
|
|
194
|
-
attr_reader tokenization_tfa_reasons: ::Array[Lithic::Models::
|
|
194
|
+
attr_reader tokenization_tfa_reasons: ::Array[Lithic::Models::tokenization_tfa_reason]?
|
|
195
195
|
|
|
196
196
|
def tokenization_tfa_reasons=: (
|
|
197
|
-
::Array[Lithic::Models::
|
|
198
|
-
) -> ::Array[Lithic::Models::
|
|
197
|
+
::Array[Lithic::Models::tokenization_tfa_reason]
|
|
198
|
+
) -> ::Array[Lithic::Models::tokenization_tfa_reason]
|
|
199
199
|
|
|
200
200
|
attr_reader type: Lithic::Models::Tokenization::Event::type_?
|
|
201
201
|
|
|
@@ -207,9 +207,9 @@ module Lithic
|
|
|
207
207
|
?token: String,
|
|
208
208
|
?created_at: Time,
|
|
209
209
|
?result: Lithic::Models::Tokenization::Event::result,
|
|
210
|
-
?rule_results: ::Array[Lithic::
|
|
211
|
-
?tokenization_decline_reasons: ::Array[Lithic::Models::
|
|
212
|
-
?tokenization_tfa_reasons: ::Array[Lithic::Models::
|
|
210
|
+
?rule_results: ::Array[Lithic::TokenizationRuleResult],
|
|
211
|
+
?tokenization_decline_reasons: ::Array[Lithic::Models::tokenization_decline_reason],
|
|
212
|
+
?tokenization_tfa_reasons: ::Array[Lithic::Models::tokenization_tfa_reason],
|
|
213
213
|
?type: Lithic::Models::Tokenization::Event::type_
|
|
214
214
|
) -> void
|
|
215
215
|
|
|
@@ -217,9 +217,9 @@ module Lithic
|
|
|
217
217
|
token: String,
|
|
218
218
|
created_at: Time,
|
|
219
219
|
result: Lithic::Models::Tokenization::Event::result,
|
|
220
|
-
rule_results: ::Array[Lithic::
|
|
221
|
-
tokenization_decline_reasons: ::Array[Lithic::Models::
|
|
222
|
-
tokenization_tfa_reasons: ::Array[Lithic::Models::
|
|
220
|
+
rule_results: ::Array[Lithic::TokenizationRuleResult],
|
|
221
|
+
tokenization_decline_reasons: ::Array[Lithic::Models::tokenization_decline_reason],
|
|
222
|
+
tokenization_tfa_reasons: ::Array[Lithic::Models::tokenization_tfa_reason],
|
|
223
223
|
type: Lithic::Models::Tokenization::Event::type_
|
|
224
224
|
}
|
|
225
225
|
|
|
@@ -256,125 +256,6 @@ module Lithic
|
|
|
256
256
|
def self?.values: -> ::Array[Lithic::Models::Tokenization::Event::result]
|
|
257
257
|
end
|
|
258
258
|
|
|
259
|
-
type rule_result =
|
|
260
|
-
{
|
|
261
|
-
auth_rule_token: String?,
|
|
262
|
-
explanation: String?,
|
|
263
|
-
name: String?,
|
|
264
|
-
result: Lithic::Models::Tokenization::Event::RuleResult::result
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
class RuleResult < Lithic::Internal::Type::BaseModel
|
|
268
|
-
attr_accessor auth_rule_token: String?
|
|
269
|
-
|
|
270
|
-
attr_accessor explanation: String?
|
|
271
|
-
|
|
272
|
-
attr_accessor name: String?
|
|
273
|
-
|
|
274
|
-
attr_accessor result: Lithic::Models::Tokenization::Event::RuleResult::result
|
|
275
|
-
|
|
276
|
-
def initialize: (
|
|
277
|
-
auth_rule_token: String?,
|
|
278
|
-
explanation: String?,
|
|
279
|
-
name: String?,
|
|
280
|
-
result: Lithic::Models::Tokenization::Event::RuleResult::result
|
|
281
|
-
) -> void
|
|
282
|
-
|
|
283
|
-
def to_hash: -> {
|
|
284
|
-
auth_rule_token: String?,
|
|
285
|
-
explanation: String?,
|
|
286
|
-
name: String?,
|
|
287
|
-
result: Lithic::Models::Tokenization::Event::RuleResult::result
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
type result = :APPROVED | :DECLINED | :REQUIRE_TFA | :ERROR
|
|
291
|
-
|
|
292
|
-
module Result
|
|
293
|
-
extend Lithic::Internal::Type::Enum
|
|
294
|
-
|
|
295
|
-
APPROVED: :APPROVED
|
|
296
|
-
DECLINED: :DECLINED
|
|
297
|
-
REQUIRE_TFA: :REQUIRE_TFA
|
|
298
|
-
ERROR: :ERROR
|
|
299
|
-
|
|
300
|
-
def self?.values: -> ::Array[Lithic::Models::Tokenization::Event::RuleResult::result]
|
|
301
|
-
end
|
|
302
|
-
end
|
|
303
|
-
|
|
304
|
-
type tokenization_decline_reason =
|
|
305
|
-
:ACCOUNT_SCORE_1
|
|
306
|
-
| :DEVICE_SCORE_1
|
|
307
|
-
| :ALL_WALLET_DECLINE_REASONS_PRESENT
|
|
308
|
-
| :WALLET_RECOMMENDED_DECISION_RED
|
|
309
|
-
| :CVC_MISMATCH
|
|
310
|
-
| :CARD_EXPIRY_MONTH_MISMATCH
|
|
311
|
-
| :CARD_EXPIRY_YEAR_MISMATCH
|
|
312
|
-
| :CARD_INVALID_STATE
|
|
313
|
-
| :CUSTOMER_RED_PATH
|
|
314
|
-
| :INVALID_CUSTOMER_RESPONSE
|
|
315
|
-
| :NETWORK_FAILURE
|
|
316
|
-
| :GENERIC_DECLINE
|
|
317
|
-
| :DIGITAL_CARD_ART_REQUIRED
|
|
318
|
-
|
|
319
|
-
module TokenizationDeclineReason
|
|
320
|
-
extend Lithic::Internal::Type::Enum
|
|
321
|
-
|
|
322
|
-
ACCOUNT_SCORE_1: :ACCOUNT_SCORE_1
|
|
323
|
-
DEVICE_SCORE_1: :DEVICE_SCORE_1
|
|
324
|
-
ALL_WALLET_DECLINE_REASONS_PRESENT: :ALL_WALLET_DECLINE_REASONS_PRESENT
|
|
325
|
-
WALLET_RECOMMENDED_DECISION_RED: :WALLET_RECOMMENDED_DECISION_RED
|
|
326
|
-
CVC_MISMATCH: :CVC_MISMATCH
|
|
327
|
-
CARD_EXPIRY_MONTH_MISMATCH: :CARD_EXPIRY_MONTH_MISMATCH
|
|
328
|
-
CARD_EXPIRY_YEAR_MISMATCH: :CARD_EXPIRY_YEAR_MISMATCH
|
|
329
|
-
CARD_INVALID_STATE: :CARD_INVALID_STATE
|
|
330
|
-
CUSTOMER_RED_PATH: :CUSTOMER_RED_PATH
|
|
331
|
-
INVALID_CUSTOMER_RESPONSE: :INVALID_CUSTOMER_RESPONSE
|
|
332
|
-
NETWORK_FAILURE: :NETWORK_FAILURE
|
|
333
|
-
GENERIC_DECLINE: :GENERIC_DECLINE
|
|
334
|
-
DIGITAL_CARD_ART_REQUIRED: :DIGITAL_CARD_ART_REQUIRED
|
|
335
|
-
|
|
336
|
-
def self?.values: -> ::Array[Lithic::Models::Tokenization::Event::tokenization_decline_reason]
|
|
337
|
-
end
|
|
338
|
-
|
|
339
|
-
type tokenization_tfa_reason =
|
|
340
|
-
:WALLET_RECOMMENDED_TFA
|
|
341
|
-
| :SUSPICIOUS_ACTIVITY
|
|
342
|
-
| :DEVICE_RECENTLY_LOST
|
|
343
|
-
| :TOO_MANY_RECENT_ATTEMPTS
|
|
344
|
-
| :TOO_MANY_RECENT_TOKENS
|
|
345
|
-
| :TOO_MANY_DIFFERENT_CARDHOLDERS
|
|
346
|
-
| :OUTSIDE_HOME_TERRITORY
|
|
347
|
-
| :HAS_SUSPENDED_TOKENS
|
|
348
|
-
| :HIGH_RISK
|
|
349
|
-
| :ACCOUNT_SCORE_LOW
|
|
350
|
-
| :DEVICE_SCORE_LOW
|
|
351
|
-
| :CARD_STATE_TFA
|
|
352
|
-
| :HARDCODED_TFA
|
|
353
|
-
| :CUSTOMER_RULE_TFA
|
|
354
|
-
| :DEVICE_HOST_CARD_EMULATION
|
|
355
|
-
|
|
356
|
-
module TokenizationTfaReason
|
|
357
|
-
extend Lithic::Internal::Type::Enum
|
|
358
|
-
|
|
359
|
-
WALLET_RECOMMENDED_TFA: :WALLET_RECOMMENDED_TFA
|
|
360
|
-
SUSPICIOUS_ACTIVITY: :SUSPICIOUS_ACTIVITY
|
|
361
|
-
DEVICE_RECENTLY_LOST: :DEVICE_RECENTLY_LOST
|
|
362
|
-
TOO_MANY_RECENT_ATTEMPTS: :TOO_MANY_RECENT_ATTEMPTS
|
|
363
|
-
TOO_MANY_RECENT_TOKENS: :TOO_MANY_RECENT_TOKENS
|
|
364
|
-
TOO_MANY_DIFFERENT_CARDHOLDERS: :TOO_MANY_DIFFERENT_CARDHOLDERS
|
|
365
|
-
OUTSIDE_HOME_TERRITORY: :OUTSIDE_HOME_TERRITORY
|
|
366
|
-
HAS_SUSPENDED_TOKENS: :HAS_SUSPENDED_TOKENS
|
|
367
|
-
HIGH_RISK: :HIGH_RISK
|
|
368
|
-
ACCOUNT_SCORE_LOW: :ACCOUNT_SCORE_LOW
|
|
369
|
-
DEVICE_SCORE_LOW: :DEVICE_SCORE_LOW
|
|
370
|
-
CARD_STATE_TFA: :CARD_STATE_TFA
|
|
371
|
-
HARDCODED_TFA: :HARDCODED_TFA
|
|
372
|
-
CUSTOMER_RULE_TFA: :CUSTOMER_RULE_TFA
|
|
373
|
-
DEVICE_HOST_CARD_EMULATION: :DEVICE_HOST_CARD_EMULATION
|
|
374
|
-
|
|
375
|
-
def self?.values: -> ::Array[Lithic::Models::Tokenization::Event::tokenization_tfa_reason]
|
|
376
|
-
end
|
|
377
|
-
|
|
378
259
|
type type_ =
|
|
379
260
|
:TOKENIZATION_2FA
|
|
380
261
|
| :TOKENIZATION_AUTHORIZATION
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
module Lithic
|
|
2
|
+
module Models
|
|
3
|
+
type tokenization_approval_request_webhook_event =
|
|
4
|
+
{
|
|
5
|
+
account_token: String,
|
|
6
|
+
card_token: String,
|
|
7
|
+
created: Time,
|
|
8
|
+
customer_tokenization_decision: Lithic::TokenizationApprovalRequestWebhookEvent::CustomerTokenizationDecision?,
|
|
9
|
+
event_type: Lithic::Models::TokenizationApprovalRequestWebhookEvent::event_type,
|
|
10
|
+
issuer_decision: Lithic::Models::TokenizationApprovalRequestWebhookEvent::issuer_decision,
|
|
11
|
+
tokenization_channel: Lithic::Models::TokenizationApprovalRequestWebhookEvent::tokenization_channel,
|
|
12
|
+
tokenization_token: String,
|
|
13
|
+
wallet_decisioning_info: Lithic::WalletDecisioningInfo,
|
|
14
|
+
device: Lithic::Device,
|
|
15
|
+
digital_wallet_token_metadata: Lithic::DigitalWalletTokenMetadata,
|
|
16
|
+
rule_results: ::Array[Lithic::TokenizationRuleResult],
|
|
17
|
+
tokenization_decline_reasons: ::Array[Lithic::Models::tokenization_decline_reason],
|
|
18
|
+
tokenization_source: Lithic::Models::TokenizationApprovalRequestWebhookEvent::tokenization_source,
|
|
19
|
+
tokenization_tfa_reasons: ::Array[Lithic::Models::tokenization_tfa_reason]
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
class TokenizationApprovalRequestWebhookEvent < Lithic::Internal::Type::BaseModel
|
|
23
|
+
attr_accessor account_token: String
|
|
24
|
+
|
|
25
|
+
attr_accessor card_token: String
|
|
26
|
+
|
|
27
|
+
attr_accessor created: Time
|
|
28
|
+
|
|
29
|
+
attr_accessor customer_tokenization_decision: Lithic::TokenizationApprovalRequestWebhookEvent::CustomerTokenizationDecision?
|
|
30
|
+
|
|
31
|
+
attr_accessor event_type: Lithic::Models::TokenizationApprovalRequestWebhookEvent::event_type
|
|
32
|
+
|
|
33
|
+
attr_accessor issuer_decision: Lithic::Models::TokenizationApprovalRequestWebhookEvent::issuer_decision
|
|
34
|
+
|
|
35
|
+
attr_accessor tokenization_channel: Lithic::Models::TokenizationApprovalRequestWebhookEvent::tokenization_channel
|
|
36
|
+
|
|
37
|
+
attr_accessor tokenization_token: String
|
|
38
|
+
|
|
39
|
+
attr_accessor wallet_decisioning_info: Lithic::WalletDecisioningInfo
|
|
40
|
+
|
|
41
|
+
attr_reader device: Lithic::Device?
|
|
42
|
+
|
|
43
|
+
def device=: (Lithic::Device) -> Lithic::Device
|
|
44
|
+
|
|
45
|
+
attr_reader digital_wallet_token_metadata: Lithic::DigitalWalletTokenMetadata?
|
|
46
|
+
|
|
47
|
+
def digital_wallet_token_metadata=: (
|
|
48
|
+
Lithic::DigitalWalletTokenMetadata
|
|
49
|
+
) -> Lithic::DigitalWalletTokenMetadata
|
|
50
|
+
|
|
51
|
+
attr_reader rule_results: ::Array[Lithic::TokenizationRuleResult]?
|
|
52
|
+
|
|
53
|
+
def rule_results=: (
|
|
54
|
+
::Array[Lithic::TokenizationRuleResult]
|
|
55
|
+
) -> ::Array[Lithic::TokenizationRuleResult]
|
|
56
|
+
|
|
57
|
+
attr_reader tokenization_decline_reasons: ::Array[Lithic::Models::tokenization_decline_reason]?
|
|
58
|
+
|
|
59
|
+
def tokenization_decline_reasons=: (
|
|
60
|
+
::Array[Lithic::Models::tokenization_decline_reason]
|
|
61
|
+
) -> ::Array[Lithic::Models::tokenization_decline_reason]
|
|
62
|
+
|
|
63
|
+
attr_reader tokenization_source: Lithic::Models::TokenizationApprovalRequestWebhookEvent::tokenization_source?
|
|
64
|
+
|
|
65
|
+
def tokenization_source=: (
|
|
66
|
+
Lithic::Models::TokenizationApprovalRequestWebhookEvent::tokenization_source
|
|
67
|
+
) -> Lithic::Models::TokenizationApprovalRequestWebhookEvent::tokenization_source
|
|
68
|
+
|
|
69
|
+
attr_reader tokenization_tfa_reasons: ::Array[Lithic::Models::tokenization_tfa_reason]?
|
|
70
|
+
|
|
71
|
+
def tokenization_tfa_reasons=: (
|
|
72
|
+
::Array[Lithic::Models::tokenization_tfa_reason]
|
|
73
|
+
) -> ::Array[Lithic::Models::tokenization_tfa_reason]
|
|
74
|
+
|
|
75
|
+
def initialize: (
|
|
76
|
+
account_token: String,
|
|
77
|
+
card_token: String,
|
|
78
|
+
created: Time,
|
|
79
|
+
customer_tokenization_decision: Lithic::TokenizationApprovalRequestWebhookEvent::CustomerTokenizationDecision?,
|
|
80
|
+
event_type: Lithic::Models::TokenizationApprovalRequestWebhookEvent::event_type,
|
|
81
|
+
issuer_decision: Lithic::Models::TokenizationApprovalRequestWebhookEvent::issuer_decision,
|
|
82
|
+
tokenization_channel: Lithic::Models::TokenizationApprovalRequestWebhookEvent::tokenization_channel,
|
|
83
|
+
tokenization_token: String,
|
|
84
|
+
wallet_decisioning_info: Lithic::WalletDecisioningInfo,
|
|
85
|
+
?device: Lithic::Device,
|
|
86
|
+
?digital_wallet_token_metadata: Lithic::DigitalWalletTokenMetadata,
|
|
87
|
+
?rule_results: ::Array[Lithic::TokenizationRuleResult],
|
|
88
|
+
?tokenization_decline_reasons: ::Array[Lithic::Models::tokenization_decline_reason],
|
|
89
|
+
?tokenization_source: Lithic::Models::TokenizationApprovalRequestWebhookEvent::tokenization_source,
|
|
90
|
+
?tokenization_tfa_reasons: ::Array[Lithic::Models::tokenization_tfa_reason]
|
|
91
|
+
) -> void
|
|
92
|
+
|
|
93
|
+
def to_hash: -> {
|
|
94
|
+
account_token: String,
|
|
95
|
+
card_token: String,
|
|
96
|
+
created: Time,
|
|
97
|
+
customer_tokenization_decision: Lithic::TokenizationApprovalRequestWebhookEvent::CustomerTokenizationDecision?,
|
|
98
|
+
event_type: Lithic::Models::TokenizationApprovalRequestWebhookEvent::event_type,
|
|
99
|
+
issuer_decision: Lithic::Models::TokenizationApprovalRequestWebhookEvent::issuer_decision,
|
|
100
|
+
tokenization_channel: Lithic::Models::TokenizationApprovalRequestWebhookEvent::tokenization_channel,
|
|
101
|
+
tokenization_token: String,
|
|
102
|
+
wallet_decisioning_info: Lithic::WalletDecisioningInfo,
|
|
103
|
+
device: Lithic::Device,
|
|
104
|
+
digital_wallet_token_metadata: Lithic::DigitalWalletTokenMetadata,
|
|
105
|
+
rule_results: ::Array[Lithic::TokenizationRuleResult],
|
|
106
|
+
tokenization_decline_reasons: ::Array[Lithic::Models::tokenization_decline_reason],
|
|
107
|
+
tokenization_source: Lithic::Models::TokenizationApprovalRequestWebhookEvent::tokenization_source,
|
|
108
|
+
tokenization_tfa_reasons: ::Array[Lithic::Models::tokenization_tfa_reason]
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
type customer_tokenization_decision =
|
|
112
|
+
{
|
|
113
|
+
outcome: Lithic::Models::TokenizationApprovalRequestWebhookEvent::CustomerTokenizationDecision::outcome,
|
|
114
|
+
responder_url: String,
|
|
115
|
+
latency: String,
|
|
116
|
+
response_code: String
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
class CustomerTokenizationDecision < Lithic::Internal::Type::BaseModel
|
|
120
|
+
attr_accessor outcome: Lithic::Models::TokenizationApprovalRequestWebhookEvent::CustomerTokenizationDecision::outcome
|
|
121
|
+
|
|
122
|
+
attr_accessor responder_url: String
|
|
123
|
+
|
|
124
|
+
attr_reader latency: String?
|
|
125
|
+
|
|
126
|
+
def latency=: (String) -> String
|
|
127
|
+
|
|
128
|
+
attr_reader response_code: String?
|
|
129
|
+
|
|
130
|
+
def response_code=: (String) -> String
|
|
131
|
+
|
|
132
|
+
def initialize: (
|
|
133
|
+
outcome: Lithic::Models::TokenizationApprovalRequestWebhookEvent::CustomerTokenizationDecision::outcome,
|
|
134
|
+
responder_url: String,
|
|
135
|
+
?latency: String,
|
|
136
|
+
?response_code: String
|
|
137
|
+
) -> void
|
|
138
|
+
|
|
139
|
+
def to_hash: -> {
|
|
140
|
+
outcome: Lithic::Models::TokenizationApprovalRequestWebhookEvent::CustomerTokenizationDecision::outcome,
|
|
141
|
+
responder_url: String,
|
|
142
|
+
latency: String,
|
|
143
|
+
response_code: String
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
type outcome =
|
|
147
|
+
:APPROVED
|
|
148
|
+
| :DECLINED
|
|
149
|
+
| :ERROR
|
|
150
|
+
| :INVALID_RESPONSE
|
|
151
|
+
| :REQUIRE_ADDITIONAL_AUTHENTICATION
|
|
152
|
+
| :TIMEOUT
|
|
153
|
+
|
|
154
|
+
module Outcome
|
|
155
|
+
extend Lithic::Internal::Type::Enum
|
|
156
|
+
|
|
157
|
+
APPROVED: :APPROVED
|
|
158
|
+
DECLINED: :DECLINED
|
|
159
|
+
ERROR: :ERROR
|
|
160
|
+
INVALID_RESPONSE: :INVALID_RESPONSE
|
|
161
|
+
REQUIRE_ADDITIONAL_AUTHENTICATION: :REQUIRE_ADDITIONAL_AUTHENTICATION
|
|
162
|
+
TIMEOUT: :TIMEOUT
|
|
163
|
+
|
|
164
|
+
def self?.values: -> ::Array[Lithic::Models::TokenizationApprovalRequestWebhookEvent::CustomerTokenizationDecision::outcome]
|
|
165
|
+
end
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
type event_type = :"tokenization.approval_request"
|
|
169
|
+
|
|
170
|
+
module EventType
|
|
171
|
+
extend Lithic::Internal::Type::Enum
|
|
172
|
+
|
|
173
|
+
TOKENIZATION_APPROVAL_REQUEST: :"tokenization.approval_request"
|
|
174
|
+
|
|
175
|
+
def self?.values: -> ::Array[Lithic::Models::TokenizationApprovalRequestWebhookEvent::event_type]
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
type issuer_decision = :APPROVED | :DENIED | :VERIFICATION_REQUIRED
|
|
179
|
+
|
|
180
|
+
module IssuerDecision
|
|
181
|
+
extend Lithic::Internal::Type::Enum
|
|
182
|
+
|
|
183
|
+
APPROVED: :APPROVED
|
|
184
|
+
DENIED: :DENIED
|
|
185
|
+
VERIFICATION_REQUIRED: :VERIFICATION_REQUIRED
|
|
186
|
+
|
|
187
|
+
def self?.values: -> ::Array[Lithic::Models::TokenizationApprovalRequestWebhookEvent::issuer_decision]
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
type tokenization_channel = :DIGITAL_WALLET | :MERCHANT
|
|
191
|
+
|
|
192
|
+
module TokenizationChannel
|
|
193
|
+
extend Lithic::Internal::Type::Enum
|
|
194
|
+
|
|
195
|
+
DIGITAL_WALLET: :DIGITAL_WALLET
|
|
196
|
+
MERCHANT: :MERCHANT
|
|
197
|
+
|
|
198
|
+
def self?.values: -> ::Array[Lithic::Models::TokenizationApprovalRequestWebhookEvent::tokenization_channel]
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
type tokenization_source =
|
|
202
|
+
:ACCOUNT_ON_FILE
|
|
203
|
+
| :CONTACTLESS_TAP
|
|
204
|
+
| :MANUAL_PROVISION
|
|
205
|
+
| :PUSH_PROVISION
|
|
206
|
+
| :TOKEN
|
|
207
|
+
| :UNKNOWN
|
|
208
|
+
|
|
209
|
+
module TokenizationSource
|
|
210
|
+
extend Lithic::Internal::Type::Enum
|
|
211
|
+
|
|
212
|
+
ACCOUNT_ON_FILE: :ACCOUNT_ON_FILE
|
|
213
|
+
CONTACTLESS_TAP: :CONTACTLESS_TAP
|
|
214
|
+
MANUAL_PROVISION: :MANUAL_PROVISION
|
|
215
|
+
PUSH_PROVISION: :PUSH_PROVISION
|
|
216
|
+
TOKEN: :TOKEN
|
|
217
|
+
UNKNOWN: :UNKNOWN
|
|
218
|
+
|
|
219
|
+
def self?.values: -> ::Array[Lithic::Models::TokenizationApprovalRequestWebhookEvent::tokenization_source]
|
|
220
|
+
end
|
|
221
|
+
end
|
|
222
|
+
end
|
|
223
|
+
end
|