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,150 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
class CardShippedWebhookEvent < Lithic::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Lithic::CardShippedWebhookEvent, Lithic::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
# The token of the bulk order associated with this card shipment, if applicable.
|
|
12
|
+
sig { returns(T.nilable(String)) }
|
|
13
|
+
attr_accessor :bulk_order_token
|
|
14
|
+
|
|
15
|
+
# The token of the card that was shipped.
|
|
16
|
+
sig { returns(String) }
|
|
17
|
+
attr_accessor :card_token
|
|
18
|
+
|
|
19
|
+
# The type of event that occurred.
|
|
20
|
+
sig { returns(Symbol) }
|
|
21
|
+
attr_accessor :event_type
|
|
22
|
+
|
|
23
|
+
# The specific shipping method used to ship the card.
|
|
24
|
+
sig do
|
|
25
|
+
returns(Lithic::CardShippedWebhookEvent::ShippingMethod::TaggedSymbol)
|
|
26
|
+
end
|
|
27
|
+
attr_accessor :shipping_method
|
|
28
|
+
|
|
29
|
+
# The tracking number of the shipment.
|
|
30
|
+
sig { returns(T.nilable(String)) }
|
|
31
|
+
attr_accessor :tracking_number
|
|
32
|
+
|
|
33
|
+
sig do
|
|
34
|
+
params(
|
|
35
|
+
bulk_order_token: T.nilable(String),
|
|
36
|
+
card_token: String,
|
|
37
|
+
shipping_method:
|
|
38
|
+
Lithic::CardShippedWebhookEvent::ShippingMethod::OrSymbol,
|
|
39
|
+
tracking_number: T.nilable(String),
|
|
40
|
+
event_type: Symbol
|
|
41
|
+
).returns(T.attached_class)
|
|
42
|
+
end
|
|
43
|
+
def self.new(
|
|
44
|
+
# The token of the bulk order associated with this card shipment, if applicable.
|
|
45
|
+
bulk_order_token:,
|
|
46
|
+
# The token of the card that was shipped.
|
|
47
|
+
card_token:,
|
|
48
|
+
# The specific shipping method used to ship the card.
|
|
49
|
+
shipping_method:,
|
|
50
|
+
# The tracking number of the shipment.
|
|
51
|
+
tracking_number:,
|
|
52
|
+
# The type of event that occurred.
|
|
53
|
+
event_type: :"card.shipped"
|
|
54
|
+
)
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
sig do
|
|
58
|
+
override.returns(
|
|
59
|
+
{
|
|
60
|
+
bulk_order_token: T.nilable(String),
|
|
61
|
+
card_token: String,
|
|
62
|
+
event_type: Symbol,
|
|
63
|
+
shipping_method:
|
|
64
|
+
Lithic::CardShippedWebhookEvent::ShippingMethod::TaggedSymbol,
|
|
65
|
+
tracking_number: T.nilable(String)
|
|
66
|
+
}
|
|
67
|
+
)
|
|
68
|
+
end
|
|
69
|
+
def to_hash
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# The specific shipping method used to ship the card.
|
|
73
|
+
module ShippingMethod
|
|
74
|
+
extend Lithic::Internal::Type::Enum
|
|
75
|
+
|
|
76
|
+
TaggedSymbol =
|
|
77
|
+
T.type_alias do
|
|
78
|
+
T.all(Symbol, Lithic::CardShippedWebhookEvent::ShippingMethod)
|
|
79
|
+
end
|
|
80
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
81
|
+
|
|
82
|
+
EX_US_EXPEDITED_WITH_TRACKING =
|
|
83
|
+
T.let(
|
|
84
|
+
:"Ex-US expedited with tracking",
|
|
85
|
+
Lithic::CardShippedWebhookEvent::ShippingMethod::TaggedSymbol
|
|
86
|
+
)
|
|
87
|
+
EX_US_STANDARD_WITH_TRACKING =
|
|
88
|
+
T.let(
|
|
89
|
+
:"Ex-US standard with tracking",
|
|
90
|
+
Lithic::CardShippedWebhookEvent::ShippingMethod::TaggedSymbol
|
|
91
|
+
)
|
|
92
|
+
EX_US_STANDARD_WITHOUT_TRACKING =
|
|
93
|
+
T.let(
|
|
94
|
+
:"Ex-US standard without tracking",
|
|
95
|
+
Lithic::CardShippedWebhookEvent::ShippingMethod::TaggedSymbol
|
|
96
|
+
)
|
|
97
|
+
FED_EX_2_DAYS =
|
|
98
|
+
T.let(
|
|
99
|
+
:"FedEx 2 days",
|
|
100
|
+
Lithic::CardShippedWebhookEvent::ShippingMethod::TaggedSymbol
|
|
101
|
+
)
|
|
102
|
+
FED_EX_EXPRESS =
|
|
103
|
+
T.let(
|
|
104
|
+
:"FedEx express",
|
|
105
|
+
Lithic::CardShippedWebhookEvent::ShippingMethod::TaggedSymbol
|
|
106
|
+
)
|
|
107
|
+
FED_EX_OVERNIGHT =
|
|
108
|
+
T.let(
|
|
109
|
+
:"FedEx overnight",
|
|
110
|
+
Lithic::CardShippedWebhookEvent::ShippingMethod::TaggedSymbol
|
|
111
|
+
)
|
|
112
|
+
USPS_PRIORITY =
|
|
113
|
+
T.let(
|
|
114
|
+
:"USPS priority",
|
|
115
|
+
Lithic::CardShippedWebhookEvent::ShippingMethod::TaggedSymbol
|
|
116
|
+
)
|
|
117
|
+
USPS_WITH_TRACKING =
|
|
118
|
+
T.let(
|
|
119
|
+
:"USPS with tracking",
|
|
120
|
+
Lithic::CardShippedWebhookEvent::ShippingMethod::TaggedSymbol
|
|
121
|
+
)
|
|
122
|
+
USPS_WITHOUT_TRACKING_ENVELOPE =
|
|
123
|
+
T.let(
|
|
124
|
+
:"USPS without tracking envelope",
|
|
125
|
+
Lithic::CardShippedWebhookEvent::ShippingMethod::TaggedSymbol
|
|
126
|
+
)
|
|
127
|
+
USPS_WITHOUT_TRACKING_ENVELOPE_NON_MACHINE =
|
|
128
|
+
T.let(
|
|
129
|
+
:"USPS without tracking envelope non-machine",
|
|
130
|
+
Lithic::CardShippedWebhookEvent::ShippingMethod::TaggedSymbol
|
|
131
|
+
)
|
|
132
|
+
USPS_WITHOUT_TRACKING_FLAT =
|
|
133
|
+
T.let(
|
|
134
|
+
:"USPS without tracking flat",
|
|
135
|
+
Lithic::CardShippedWebhookEvent::ShippingMethod::TaggedSymbol
|
|
136
|
+
)
|
|
137
|
+
|
|
138
|
+
sig do
|
|
139
|
+
override.returns(
|
|
140
|
+
T::Array[
|
|
141
|
+
Lithic::CardShippedWebhookEvent::ShippingMethod::TaggedSymbol
|
|
142
|
+
]
|
|
143
|
+
)
|
|
144
|
+
end
|
|
145
|
+
def self.values
|
|
146
|
+
end
|
|
147
|
+
end
|
|
148
|
+
end
|
|
149
|
+
end
|
|
150
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
class CardTransactionEnhancedDataCreatedWebhookEvent < Lithic::Models::Transactions::Events::EnhancedData
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
Lithic::CardTransactionEnhancedDataCreatedWebhookEvent,
|
|
10
|
+
Lithic::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# The type of event that occurred.
|
|
15
|
+
sig { returns(Symbol) }
|
|
16
|
+
attr_accessor :event_type
|
|
17
|
+
|
|
18
|
+
sig { params(event_type: Symbol).returns(T.attached_class) }
|
|
19
|
+
def self.new(
|
|
20
|
+
# The type of event that occurred.
|
|
21
|
+
event_type: :"card_transaction.enhanced_data.created"
|
|
22
|
+
)
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
sig { override.returns({ event_type: Symbol }) }
|
|
26
|
+
def to_hash
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
class CardTransactionEnhancedDataUpdatedWebhookEvent < Lithic::Models::Transactions::Events::EnhancedData
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
Lithic::CardTransactionEnhancedDataUpdatedWebhookEvent,
|
|
10
|
+
Lithic::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# The type of event that occurred.
|
|
15
|
+
sig { returns(Symbol) }
|
|
16
|
+
attr_accessor :event_type
|
|
17
|
+
|
|
18
|
+
sig { params(event_type: Symbol).returns(T.attached_class) }
|
|
19
|
+
def self.new(
|
|
20
|
+
# The type of event that occurred.
|
|
21
|
+
event_type: :"card_transaction.enhanced_data.updated"
|
|
22
|
+
)
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
sig { override.returns({ event_type: Symbol }) }
|
|
26
|
+
def to_hash
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
class CardTransactionUpdatedWebhookEvent < Lithic::Models::Transaction
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
Lithic::CardTransactionUpdatedWebhookEvent,
|
|
10
|
+
Lithic::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# The type of event that occurred.
|
|
15
|
+
sig { returns(Symbol) }
|
|
16
|
+
attr_accessor :event_type
|
|
17
|
+
|
|
18
|
+
sig { params(event_type: Symbol).returns(T.attached_class) }
|
|
19
|
+
def self.new(
|
|
20
|
+
# The type of event that occurred.
|
|
21
|
+
event_type: :"card_transaction.updated"
|
|
22
|
+
)
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
sig { override.returns({ event_type: Symbol }) }
|
|
26
|
+
def to_hash
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -11,6 +11,22 @@ module Lithic
|
|
|
11
11
|
T.any(Lithic::CardWebProvisionParams, Lithic::Internal::AnyHash)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
+
# Only applicable if `digital_wallet` is GOOGLE_PAY. Google Pay Web Push
|
|
15
|
+
# Provisioning device identifier required for the tokenization flow
|
|
16
|
+
sig { returns(T.nilable(String)) }
|
|
17
|
+
attr_reader :client_device_id
|
|
18
|
+
|
|
19
|
+
sig { params(client_device_id: String).void }
|
|
20
|
+
attr_writer :client_device_id
|
|
21
|
+
|
|
22
|
+
# Only applicable if `digital_wallet` is GOOGLE_PAY. Google Pay Web Push
|
|
23
|
+
# Provisioning wallet account identifier required for the tokenization flow
|
|
24
|
+
sig { returns(T.nilable(String)) }
|
|
25
|
+
attr_reader :client_wallet_account_id
|
|
26
|
+
|
|
27
|
+
sig { params(client_wallet_account_id: String).void }
|
|
28
|
+
attr_writer :client_wallet_account_id
|
|
29
|
+
|
|
14
30
|
# Name of digital wallet provider.
|
|
15
31
|
sig do
|
|
16
32
|
returns(
|
|
@@ -27,16 +43,36 @@ module Lithic
|
|
|
27
43
|
end
|
|
28
44
|
attr_writer :digital_wallet
|
|
29
45
|
|
|
46
|
+
# Only applicable if `digital_wallet` is GOOGLE_PAY. Google Pay Web Push
|
|
47
|
+
# Provisioning session identifier required for the FPAN flow.
|
|
48
|
+
sig { returns(T.nilable(String)) }
|
|
49
|
+
attr_reader :server_session_id
|
|
50
|
+
|
|
51
|
+
sig { params(server_session_id: String).void }
|
|
52
|
+
attr_writer :server_session_id
|
|
53
|
+
|
|
30
54
|
sig do
|
|
31
55
|
params(
|
|
56
|
+
client_device_id: String,
|
|
57
|
+
client_wallet_account_id: String,
|
|
32
58
|
digital_wallet:
|
|
33
59
|
Lithic::CardWebProvisionParams::DigitalWallet::OrSymbol,
|
|
60
|
+
server_session_id: String,
|
|
34
61
|
request_options: Lithic::RequestOptions::OrHash
|
|
35
62
|
).returns(T.attached_class)
|
|
36
63
|
end
|
|
37
64
|
def self.new(
|
|
65
|
+
# Only applicable if `digital_wallet` is GOOGLE_PAY. Google Pay Web Push
|
|
66
|
+
# Provisioning device identifier required for the tokenization flow
|
|
67
|
+
client_device_id: nil,
|
|
68
|
+
# Only applicable if `digital_wallet` is GOOGLE_PAY. Google Pay Web Push
|
|
69
|
+
# Provisioning wallet account identifier required for the tokenization flow
|
|
70
|
+
client_wallet_account_id: nil,
|
|
38
71
|
# Name of digital wallet provider.
|
|
39
72
|
digital_wallet: nil,
|
|
73
|
+
# Only applicable if `digital_wallet` is GOOGLE_PAY. Google Pay Web Push
|
|
74
|
+
# Provisioning session identifier required for the FPAN flow.
|
|
75
|
+
server_session_id: nil,
|
|
40
76
|
request_options: {}
|
|
41
77
|
)
|
|
42
78
|
end
|
|
@@ -44,8 +80,11 @@ module Lithic
|
|
|
44
80
|
sig do
|
|
45
81
|
override.returns(
|
|
46
82
|
{
|
|
83
|
+
client_device_id: String,
|
|
84
|
+
client_wallet_account_id: String,
|
|
47
85
|
digital_wallet:
|
|
48
86
|
Lithic::CardWebProvisionParams::DigitalWallet::OrSymbol,
|
|
87
|
+
server_session_id: String,
|
|
49
88
|
request_options: Lithic::RequestOptions
|
|
50
89
|
}
|
|
51
90
|
)
|
|
@@ -68,6 +107,11 @@ module Lithic
|
|
|
68
107
|
:APPLE_PAY,
|
|
69
108
|
Lithic::CardWebProvisionParams::DigitalWallet::TaggedSymbol
|
|
70
109
|
)
|
|
110
|
+
GOOGLE_PAY =
|
|
111
|
+
T.let(
|
|
112
|
+
:GOOGLE_PAY,
|
|
113
|
+
Lithic::CardWebProvisionParams::DigitalWallet::TaggedSymbol
|
|
114
|
+
)
|
|
71
115
|
|
|
72
116
|
sig do
|
|
73
117
|
override.returns(
|
|
@@ -2,168 +2,248 @@
|
|
|
2
2
|
|
|
3
3
|
module Lithic
|
|
4
4
|
module Models
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
module CardWebProvisionResponse
|
|
6
|
+
extend Lithic::Internal::Type::Union
|
|
7
|
+
|
|
8
|
+
Variants =
|
|
7
9
|
T.type_alias do
|
|
8
10
|
T.any(
|
|
9
|
-
Lithic::Models::CardWebProvisionResponse,
|
|
10
|
-
Lithic::
|
|
11
|
+
Lithic::Models::CardWebProvisionResponse::AppleWebPushProvisioningResponse,
|
|
12
|
+
Lithic::Models::CardWebProvisionResponse::GoogleWebPushProvisioningResponse
|
|
11
13
|
)
|
|
12
14
|
end
|
|
13
15
|
|
|
14
|
-
|
|
15
|
-
sig { returns(T.nilable(Lithic::Models::CardWebProvisionResponse::Jws)) }
|
|
16
|
-
attr_reader :jws
|
|
17
|
-
|
|
18
|
-
sig do
|
|
19
|
-
params(jws: Lithic::Models::CardWebProvisionResponse::Jws::OrHash).void
|
|
20
|
-
end
|
|
21
|
-
attr_writer :jws
|
|
22
|
-
|
|
23
|
-
# A unique identifier for the JWS object.
|
|
24
|
-
sig { returns(T.nilable(String)) }
|
|
25
|
-
attr_reader :state
|
|
26
|
-
|
|
27
|
-
sig { params(state: String).void }
|
|
28
|
-
attr_writer :state
|
|
29
|
-
|
|
30
|
-
sig do
|
|
31
|
-
params(
|
|
32
|
-
jws: Lithic::Models::CardWebProvisionResponse::Jws::OrHash,
|
|
33
|
-
state: String
|
|
34
|
-
).returns(T.attached_class)
|
|
35
|
-
end
|
|
36
|
-
def self.new(
|
|
37
|
-
# JWS object required for handoff to Apple's script.
|
|
38
|
-
jws: nil,
|
|
39
|
-
# A unique identifier for the JWS object.
|
|
40
|
-
state: nil
|
|
41
|
-
)
|
|
42
|
-
end
|
|
43
|
-
|
|
44
|
-
sig do
|
|
45
|
-
override.returns(
|
|
46
|
-
{ jws: Lithic::Models::CardWebProvisionResponse::Jws, state: String }
|
|
47
|
-
)
|
|
48
|
-
end
|
|
49
|
-
def to_hash
|
|
50
|
-
end
|
|
51
|
-
|
|
52
|
-
class Jws < Lithic::Internal::Type::BaseModel
|
|
16
|
+
class AppleWebPushProvisioningResponse < Lithic::Internal::Type::BaseModel
|
|
53
17
|
OrHash =
|
|
54
18
|
T.type_alias do
|
|
55
19
|
T.any(
|
|
56
|
-
Lithic::Models::CardWebProvisionResponse::
|
|
20
|
+
Lithic::Models::CardWebProvisionResponse::AppleWebPushProvisioningResponse,
|
|
57
21
|
Lithic::Internal::AnyHash
|
|
58
22
|
)
|
|
59
23
|
end
|
|
60
24
|
|
|
61
|
-
# JWS
|
|
62
|
-
# integrity-protected by the JWS signature.
|
|
25
|
+
# JWS object required for handoff to Apple's script.
|
|
63
26
|
sig do
|
|
64
27
|
returns(
|
|
65
|
-
T.nilable(
|
|
28
|
+
T.nilable(
|
|
29
|
+
Lithic::Models::CardWebProvisionResponse::AppleWebPushProvisioningResponse::Jws
|
|
30
|
+
)
|
|
66
31
|
)
|
|
67
32
|
end
|
|
68
|
-
attr_reader :
|
|
33
|
+
attr_reader :jws
|
|
69
34
|
|
|
70
35
|
sig do
|
|
71
36
|
params(
|
|
72
|
-
|
|
73
|
-
Lithic::Models::CardWebProvisionResponse::Jws::
|
|
37
|
+
jws:
|
|
38
|
+
Lithic::Models::CardWebProvisionResponse::AppleWebPushProvisioningResponse::Jws::OrHash
|
|
74
39
|
).void
|
|
75
40
|
end
|
|
76
|
-
attr_writer :
|
|
77
|
-
|
|
78
|
-
# Base64url encoded JSON object containing the provisioning payload.
|
|
79
|
-
sig { returns(T.nilable(String)) }
|
|
80
|
-
attr_reader :payload
|
|
81
|
-
|
|
82
|
-
sig { params(payload: String).void }
|
|
83
|
-
attr_writer :payload
|
|
84
|
-
|
|
85
|
-
# Base64url encoded JWS protected headers containing the header parameters that
|
|
86
|
-
# are integrity-protected by the JWS signature.
|
|
87
|
-
sig { returns(T.nilable(String)) }
|
|
88
|
-
attr_reader :protected
|
|
41
|
+
attr_writer :jws
|
|
89
42
|
|
|
90
|
-
|
|
91
|
-
attr_writer :protected
|
|
92
|
-
|
|
93
|
-
# Base64url encoded signature of the JWS object.
|
|
43
|
+
# A unique identifier for the JWS object.
|
|
94
44
|
sig { returns(T.nilable(String)) }
|
|
95
|
-
attr_reader :
|
|
45
|
+
attr_reader :state
|
|
96
46
|
|
|
97
|
-
sig { params(
|
|
98
|
-
attr_writer :
|
|
47
|
+
sig { params(state: String).void }
|
|
48
|
+
attr_writer :state
|
|
99
49
|
|
|
100
|
-
# JWS object required for handoff to Apple's script.
|
|
101
50
|
sig do
|
|
102
51
|
params(
|
|
103
|
-
|
|
104
|
-
Lithic::Models::CardWebProvisionResponse::Jws::
|
|
105
|
-
|
|
106
|
-
protected: String,
|
|
107
|
-
signature: String
|
|
52
|
+
jws:
|
|
53
|
+
Lithic::Models::CardWebProvisionResponse::AppleWebPushProvisioningResponse::Jws::OrHash,
|
|
54
|
+
state: String
|
|
108
55
|
).returns(T.attached_class)
|
|
109
56
|
end
|
|
110
57
|
def self.new(
|
|
111
|
-
# JWS
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
payload: nil,
|
|
116
|
-
# Base64url encoded JWS protected headers containing the header parameters that
|
|
117
|
-
# are integrity-protected by the JWS signature.
|
|
118
|
-
protected: nil,
|
|
119
|
-
# Base64url encoded signature of the JWS object.
|
|
120
|
-
signature: nil
|
|
58
|
+
# JWS object required for handoff to Apple's script.
|
|
59
|
+
jws: nil,
|
|
60
|
+
# A unique identifier for the JWS object.
|
|
61
|
+
state: nil
|
|
121
62
|
)
|
|
122
63
|
end
|
|
123
64
|
|
|
124
65
|
sig do
|
|
125
66
|
override.returns(
|
|
126
67
|
{
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
signature: String
|
|
68
|
+
jws:
|
|
69
|
+
Lithic::Models::CardWebProvisionResponse::AppleWebPushProvisioningResponse::Jws,
|
|
70
|
+
state: String
|
|
131
71
|
}
|
|
132
72
|
)
|
|
133
73
|
end
|
|
134
74
|
def to_hash
|
|
135
75
|
end
|
|
136
76
|
|
|
137
|
-
class
|
|
77
|
+
class Jws < Lithic::Internal::Type::BaseModel
|
|
138
78
|
OrHash =
|
|
139
79
|
T.type_alias do
|
|
140
80
|
T.any(
|
|
141
|
-
Lithic::Models::CardWebProvisionResponse::Jws
|
|
81
|
+
Lithic::Models::CardWebProvisionResponse::AppleWebPushProvisioningResponse::Jws,
|
|
142
82
|
Lithic::Internal::AnyHash
|
|
143
83
|
)
|
|
144
84
|
end
|
|
145
85
|
|
|
146
|
-
#
|
|
86
|
+
# JWS unprotected headers containing header parameters that aren't
|
|
87
|
+
# integrity-protected by the JWS signature.
|
|
88
|
+
sig do
|
|
89
|
+
returns(
|
|
90
|
+
T.nilable(
|
|
91
|
+
Lithic::Models::CardWebProvisionResponse::AppleWebPushProvisioningResponse::Jws::Header
|
|
92
|
+
)
|
|
93
|
+
)
|
|
94
|
+
end
|
|
95
|
+
attr_reader :header
|
|
96
|
+
|
|
97
|
+
sig do
|
|
98
|
+
params(
|
|
99
|
+
header:
|
|
100
|
+
Lithic::Models::CardWebProvisionResponse::AppleWebPushProvisioningResponse::Jws::Header::OrHash
|
|
101
|
+
).void
|
|
102
|
+
end
|
|
103
|
+
attr_writer :header
|
|
104
|
+
|
|
105
|
+
# Base64url encoded JSON object containing the provisioning payload.
|
|
147
106
|
sig { returns(T.nilable(String)) }
|
|
148
|
-
attr_reader :
|
|
107
|
+
attr_reader :payload
|
|
149
108
|
|
|
150
|
-
sig { params(
|
|
151
|
-
attr_writer :
|
|
109
|
+
sig { params(payload: String).void }
|
|
110
|
+
attr_writer :payload
|
|
152
111
|
|
|
153
|
-
# JWS
|
|
154
|
-
# integrity-protected by the JWS signature.
|
|
155
|
-
sig {
|
|
112
|
+
# Base64url encoded JWS protected headers containing the header parameters that
|
|
113
|
+
# are integrity-protected by the JWS signature.
|
|
114
|
+
sig { returns(T.nilable(String)) }
|
|
115
|
+
attr_reader :protected
|
|
116
|
+
|
|
117
|
+
sig { params(protected: String).void }
|
|
118
|
+
attr_writer :protected
|
|
119
|
+
|
|
120
|
+
# Base64url encoded signature of the JWS object.
|
|
121
|
+
sig { returns(T.nilable(String)) }
|
|
122
|
+
attr_reader :signature
|
|
123
|
+
|
|
124
|
+
sig { params(signature: String).void }
|
|
125
|
+
attr_writer :signature
|
|
126
|
+
|
|
127
|
+
# JWS object required for handoff to Apple's script.
|
|
128
|
+
sig do
|
|
129
|
+
params(
|
|
130
|
+
header:
|
|
131
|
+
Lithic::Models::CardWebProvisionResponse::AppleWebPushProvisioningResponse::Jws::Header::OrHash,
|
|
132
|
+
payload: String,
|
|
133
|
+
protected: String,
|
|
134
|
+
signature: String
|
|
135
|
+
).returns(T.attached_class)
|
|
136
|
+
end
|
|
156
137
|
def self.new(
|
|
157
|
-
#
|
|
158
|
-
|
|
138
|
+
# JWS unprotected headers containing header parameters that aren't
|
|
139
|
+
# integrity-protected by the JWS signature.
|
|
140
|
+
header: nil,
|
|
141
|
+
# Base64url encoded JSON object containing the provisioning payload.
|
|
142
|
+
payload: nil,
|
|
143
|
+
# Base64url encoded JWS protected headers containing the header parameters that
|
|
144
|
+
# are integrity-protected by the JWS signature.
|
|
145
|
+
protected: nil,
|
|
146
|
+
# Base64url encoded signature of the JWS object.
|
|
147
|
+
signature: nil
|
|
159
148
|
)
|
|
160
149
|
end
|
|
161
150
|
|
|
162
|
-
sig
|
|
151
|
+
sig do
|
|
152
|
+
override.returns(
|
|
153
|
+
{
|
|
154
|
+
header:
|
|
155
|
+
Lithic::Models::CardWebProvisionResponse::AppleWebPushProvisioningResponse::Jws::Header,
|
|
156
|
+
payload: String,
|
|
157
|
+
protected: String,
|
|
158
|
+
signature: String
|
|
159
|
+
}
|
|
160
|
+
)
|
|
161
|
+
end
|
|
163
162
|
def to_hash
|
|
164
163
|
end
|
|
164
|
+
|
|
165
|
+
class Header < Lithic::Internal::Type::BaseModel
|
|
166
|
+
OrHash =
|
|
167
|
+
T.type_alias do
|
|
168
|
+
T.any(
|
|
169
|
+
Lithic::Models::CardWebProvisionResponse::AppleWebPushProvisioningResponse::Jws::Header,
|
|
170
|
+
Lithic::Internal::AnyHash
|
|
171
|
+
)
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
# The ID for the JWS Public Key of the key pair used to generate the signature.
|
|
175
|
+
sig { returns(T.nilable(String)) }
|
|
176
|
+
attr_reader :kid
|
|
177
|
+
|
|
178
|
+
sig { params(kid: String).void }
|
|
179
|
+
attr_writer :kid
|
|
180
|
+
|
|
181
|
+
# JWS unprotected headers containing header parameters that aren't
|
|
182
|
+
# integrity-protected by the JWS signature.
|
|
183
|
+
sig { params(kid: String).returns(T.attached_class) }
|
|
184
|
+
def self.new(
|
|
185
|
+
# The ID for the JWS Public Key of the key pair used to generate the signature.
|
|
186
|
+
kid: nil
|
|
187
|
+
)
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
sig { override.returns({ kid: String }) }
|
|
191
|
+
def to_hash
|
|
192
|
+
end
|
|
193
|
+
end
|
|
165
194
|
end
|
|
166
195
|
end
|
|
196
|
+
|
|
197
|
+
class GoogleWebPushProvisioningResponse < Lithic::Internal::Type::BaseModel
|
|
198
|
+
OrHash =
|
|
199
|
+
T.type_alias do
|
|
200
|
+
T.any(
|
|
201
|
+
Lithic::Models::CardWebProvisionResponse::GoogleWebPushProvisioningResponse,
|
|
202
|
+
Lithic::Internal::AnyHash
|
|
203
|
+
)
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
# A base64 encoded and encrypted payload representing card data for the Google Pay
|
|
207
|
+
# UWPP FPAN flow.
|
|
208
|
+
sig { returns(T.nilable(String)) }
|
|
209
|
+
attr_reader :google_opc
|
|
210
|
+
|
|
211
|
+
sig { params(google_opc: String).void }
|
|
212
|
+
attr_writer :google_opc
|
|
213
|
+
|
|
214
|
+
# A base64 encoded and encrypted payload representing card data for the Google Pay
|
|
215
|
+
# UWPP tokenization flow.
|
|
216
|
+
sig { returns(T.nilable(String)) }
|
|
217
|
+
attr_reader :tsp_opc
|
|
218
|
+
|
|
219
|
+
sig { params(tsp_opc: String).void }
|
|
220
|
+
attr_writer :tsp_opc
|
|
221
|
+
|
|
222
|
+
sig do
|
|
223
|
+
params(google_opc: String, tsp_opc: String).returns(T.attached_class)
|
|
224
|
+
end
|
|
225
|
+
def self.new(
|
|
226
|
+
# A base64 encoded and encrypted payload representing card data for the Google Pay
|
|
227
|
+
# UWPP FPAN flow.
|
|
228
|
+
google_opc: nil,
|
|
229
|
+
# A base64 encoded and encrypted payload representing card data for the Google Pay
|
|
230
|
+
# UWPP tokenization flow.
|
|
231
|
+
tsp_opc: nil
|
|
232
|
+
)
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
sig { override.returns({ google_opc: String, tsp_opc: String }) }
|
|
236
|
+
def to_hash
|
|
237
|
+
end
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
sig do
|
|
241
|
+
override.returns(
|
|
242
|
+
T::Array[Lithic::Models::CardWebProvisionResponse::Variants]
|
|
243
|
+
)
|
|
244
|
+
end
|
|
245
|
+
def self.variants
|
|
246
|
+
end
|
|
167
247
|
end
|
|
168
248
|
end
|
|
169
249
|
end
|