Skip to content
1 viewer

rust 1,961,941 · typescript 233,850 · javascript 141,145 · python 22,871 · 6,801 files · digest 6d882eacc8db · built in 12.5 s · crystals off

crates/cre8-app-payment/src/connection.rs

cre8-app-payment · module connection · src · 5,937 lines (5,434 code, 173 comment) · sha 4f3b6cc4de630d0e

Items

const SPECS enum Action type ActionAliases const ACTION_ALIASES struct PaymentInput type PaymentHandler const PAYMENT_HANDLERS enum DispatchReader const SCOPED_QUERY_SCAN_ROWS struct OnboardCredentials enum WalletFirstSessionMode struct WebhookRequest struct CreateSessionRequestParts struct PaymentSmokeTestRequest struct SmokeSettlementProof struct BankLinkCreateFlow struct BankExchangeFlow struct BankSyncSideEffects struct ExternalAcknowledgeRequest struct BankSmokeTestRequest struct BankSmokeFlow struct BankSmokeLinkedFlow struct BankSmokeProof const OPERATOR static LISTED

Functions

By call-graph weight (PageRank; 1.0 is the average function). 216 functions in all.

functionkindlinescyclomaticcallerscalleesweightcrystal
connectsrc/connection.rs:1417fn362570313.8
metadata_stringsrc/connection.rs:407fn101807
parse_actionsrc/connection.rs:325fn165414.8
parse_action_aliassrc/connection.rs:342fn41204.8
handler_for_actionsrc/connection.rs:1098fn61114.4
handle_resultsrc/connection.rs:3954fn151104.2
temp_dbsrc/connection.rs:3992fn312914.1
payment_scope_idsrc/connection.rs:378fn91913.2
connect_dispatchedsrc/connection.rs:1127fn32915112.6
resolve_provider_config_for_scopesrc/connection.rs:1054fn142922.2
asset_idsrc/connection.rs:374fn31902.1
required_stringsrc/connection.rs:347fn61902
input_metadatasrc/connection.rs:910fn156411.9
resolve_provider_configsrc/connection.rs:1043fn102411.9
store_service_secretsrc/connection.rs:952fn191541.9
default_provider_config_for_scopesrc/connection.rs:1027fn152421.7
names_accountsrc/connection.rs:1186fn32611.7
scoped_scan_rowssrc/connection.rs:1192fn32501.6
record_payment_outcome_attentionsrc/connection.rs:1964fn783451.5
optional_trimmedsrc/connection.rs:906fn31401.4
is_cre8_wallet_providersrc/connection.rs:400fn61401.3
bank_provider_idsrc/connection.rs:364fn91301.3
payer_peer_idsrc/connection.rs:431fn81211.2
selected_external_eventssrc/connection.rs:3449fn253241.2
create_session_idempotent_responsesrc/connection.rs:2527fn81101.2
is_incomplete_refund_eventsrc/connection.rs:2807fn42101.2
webhook_provider_familysrc/connection.rs:2755fn72201.1
dispatch_readersrc/connection.rs:1172fn126541.1
wallet_availablesrc/connection.rs:1817fn41211.1
wallet_amountsrc/connection.rs:2131fn63201.1
existing_wallet_transfer_settlementsrc/connection.rs:1834fn4312421.1
handle_wallet_first_sessionsrc/connection.rs:2043fn512151.1
provider_idsrc/connection.rs:354fn91501.1
provider_readinesssrc/connection.rs:554fn8713241
bank_smoke_synced_balancesrc/connection.rs:3854fn31101
bank_connections_replysrc/connection.rs:3261fn252231
bank_sync_replysrc/connection.rs:3299fn203241
bank_snapshots_replysrc/connection.rs:3412fn252231
external_events_replysrc/connection.rs:3477fn241231
external_reconcile_replysrc/connection.rs:3515fn212221
external_inbox_replysrc/connection.rs:3548fn366271
payment_metadata_with_wallet_fieldssrc/connection.rs:1706fn225301
payment_partysrc/connection.rs:1345fn114200.8
recipient_peer_idsrc/connection.rs:456fn241210.8
payment_flow_idsrc/connection.rs:481fn61210.8
upsert_provider_from_inputsrc/connection.rs:972fn5414250.8
create_new_session_responsesrc/connection.rs:2485fn132140.8
idempotent_session_responsesrc/connection.rs:2499fn71110.8
payment_for_webhook_eventsrc/connection.rs:2785fn213210.8
create_wallet_transfer_settlementsrc/connection.rs:1878fn305170.8
public_providersrc/connection.rs:495fn161100.8
smoke_provider_idsrc/connection.rs:2877fn132200.8
payment_scope_from_recordsrc/connection.rs:2459fn31210.8
public_bank_connectionsrc/connection.rs:703fn231100.8
public_bank_snapshotsrc/connection.rs:727fn161100.8
public_external_asset_reconciliationsrc/connection.rs:765fn141100.8
bank_sync_requestsrc/connection.rs:3365fn81110.8
external_acknowledge_statesrc/connection.rs:3624fn31100.8
payment_id_from_external_eventsrc/connection.rs:821fn111100.8
ensure_payment_succeeded_for_eventsrc/connection.rs:879fn162100.8
secret_candidatesrc/connection.rs:896fn91100.8
bank_smoke_link_exchange_syncsrc/connection.rs:3744fn111150.7
bank_smoke_onboardsrc/connection.rs:3756fn151110.7
metadata_boolsrc/connection.rs:418fn121100.7
smoke_transactionsrc/connection.rs:2991fn101120.7
create_session_responsesrc/connection.rs:2474fn102120.7
create_session_request_partssrc/connection.rs:2707fn141160.7
provider_credential_availablesrc/connection.rs:512fn31120.7
provider_runtime_evidencesrc/connection.rs:516fn374100.7
provider_webhook_registrationsrc/connection.rs:642fn485100.7
apply_wallet_payment_transfersrc/connection.rs:1822fn112220.7
public_provider_with_readinesssrc/connection.rs:691fn112120.7
webhook_requestsrc/connection.rs:2606fn91140.7
webhook_responsesrc/connection.rs:2616fn151160.7
settle_with_effectssrc/connection.rs:3976fn151210.7
bank_sync_connectionssrc/connection.rs:3320fn172100.7
sync_bank_connectionsrc/connection.rs:3338fn101140.7
dispatched_getsrc/connection.rs:1199fn192130.7
dispatched_account_readsrc/connection.rs:1228fn227190.7
dispatched_bank_linksrc/connection.rs:1261fn497180.7
dispatched_operator_writesrc/connection.rs:1318fn194140.7
dispatched_querysrc/connection.rs:1365fn292140.7
authorize_dispatched_refundsrc/connection.rs:1395fn216130.7
external_stub_payment_recordsrc/connection.rs:1769fn371140.7
wallet_first_session_modesrc/connection.rs:2100fn234160.7
wallet_transfer_session_responsesrc/connection.rs:2164fn571140.7
external_stub_session_responsesrc/connection.rs:2222fn551130.7
bank_link_requestsrc/connection.rs:3071fn253150.7
positive_session_amountsrc/connection.rs:2722fn72200.7
wallet_first_session_responsesrc/connection.rs:2507fn191110.7
create_provider_session_responsesrc/connection.rs:2536fn211140.7
settle_webhook_paymentsrc/connection.rs:2674fn101110.7
record_webhook_payment_attentionsrc/connection.rs:2685fn112110.7
authenticated_wallet_payersrc/connection.rs:440fn152210.7
payment_stringsrc/connection.rs:2952fn31100.7
smoke_webhook_bodysrc/connection.rs:2956fn101100.7
bank_sync_responsesrc/connection.rs:3354fn101120.6
persist_bank_sync_responsesrc/connection.rs:3374fn91110.6
bank_sync_payloadsrc/connection.rs:3384fn161100.6
url_encodesrc/connection.rs:1807fn92100.6
wallet_payment_recordsrc/connection.rs:1729fn391130.6
provider_session_requestsrc/connection.rs:2558fn301140.6
bank_link_create_flowsrc/connection.rs:3022fn71130.6
bank_link_idempotent_responsesrc/connection.rs:3030fn201100.6
create_bank_link_responsesrc/connection.rs:3051fn191130.6
bank_exchange_flowsrc/connection.rs:3127fn171150.6
create_bank_exchange_responsesrc/connection.rs:3152fn191140.6
linked_bank_exchange_responsesrc/connection.rs:3172fn111100.6
external_acknowledge_requestsrc/connection.rs:3615fn81120.6
ensure_external_inboxsrc/connection.rs:3628fn93130.6
provider_capabilitiessrc/connection.rs:937fn143100.6
bank_exchange_requestsrc/connection.rs:3204fn211110.6
store_bank_access_token_if_presentsrc/connection.rs:3226fn231120.6
external_event_repair_rejectionsrc/connection.rs:853fn142110.6
repair_external_event_paymentsrc/connection.rs:868fn101120.6
store_onboard_provider_secretsrc/connection.rs:1571fn231120.6
onboard_client_id_credential_namesrc/connection.rs:1595fn131100.6
store_onboard_client_idsrc/connection.rs:1609fn211120.6
store_onboard_webhook_secretsrc/connection.rs:1631fn241110.6
bank_smoke_linksrc/connection.rs:3772fn161110.6
bank_smoke_connection_idsrc/connection.rs:3789fn81100.6
bank_smoke_exchangesrc/connection.rs:3798fn291110.6
bank_smoke_exchange_connectionsrc/connection.rs:3828fn31100.6
bank_smoke_syncsrc/connection.rs:3832fn211110.6
operator_accountsrc/connection.rs:4749fn111210.6
external_inbox_payloadsrc/connection.rs:797fn111120.6
include_inbox_itemsrc/connection.rs:809fn115100.6
wallet_payment_partiessrc/connection.rs:2431fn272120.6
default_productssrc/connection.rs:926fn62100.6
default_country_codessrc/connection.rs:933fn31100.6
bank_link_client_user_idsrc/connection.rs:3097fn81120.6
existing_bank_connection_for_exchangesrc/connection.rs:3145fn61100.6
existing_provider_idsrc/connection.rs:3184fn31110.6
existing_asset_idsrc/connection.rs:3188fn31110.6
bank_exchange_idempotency_keysrc/connection.rs:3192fn111110.6
repair_external_asset_eventsrc/connection.rs:833fn192140.6
store_onboard_credentialssrc/connection.rs:1557fn131140.6
bank_smoke_test_requestsrc/connection.rs:3708fn222120.6
run_bank_smoke_flowsrc/connection.rs:3731fn121120.6
bank_smoke_proofsrc/connection.rs:3858fn191110.6
bank_smoke_responsesrc/connection.rs:3878fn301100.6
payment_asset_idsrc/connection.rs:388fn112120.6
session_currencysrc/connection.rs:2730fn72120.6
verified_webhook_eventsrc/connection.rs:2632fn101120.6
webhook_payloadsrc/connection.rs:2643fn191100.6
webhook_payment_outcomesrc/connection.rs:2663fn101130.6
hydrate_webhook_payment_idsrc/connection.rs:2738fn143100.6
ensure_event_provider_owns_paymentsrc/connection.rs:2767fn172110.6
ensure_wallet_transfer_availablesrc/connection.rs:1909fn112100.6
wallet_transfer_settlementsrc/connection.rs:1921fn171100.6
wallet_transfer_transactionsrc/connection.rs:1939fn241100.6
wallet_firstsrc/connection.rs:488fn63120.6
buyer_chose_walletsrc/connection.rs:2124fn51100.6
wallet_refusalsrc/connection.rs:2139fn102110.6
wallet_first_availablesrc/connection.rs:2150fn61110.6
wallet_first_stub_reasonsrc/connection.rs:2157fn62100.6
smoke_test_requestsrc/connection.rs:2855fn212130.6
onboard_smoke_providersrc/connection.rs:2891fn151110.6
create_smoke_sessionsrc/connection.rs:2907fn211110.6
run_smoke_webhooksrc/connection.rs:2929fn221130.6
smoke_settlement_proofsrc/connection.rs:2974fn162120.6
handle_create_sessionsrc/connection.rs:2278fn81120.6
refund_wallet_paymentsrc/connection.rs:2364fn645140.5
validate_refund_scopesrc/connection.rs:2463fn103120.5
public_external_asset_eventsrc/connection.rs:744fn201000.5
public_external_asset_inboxsrc/connection.rs:780fn161000.5
handle_onboardsrc/connection.rs:1454fn331040.5
handle_webhook_registersrc/connection.rs:1488fn613080.5
handle_provider_registersrc/connection.rs:1656fn161020.5
handle_provider_catalogsrc/connection.rs:1673fn322020.5
handle_refundsrc/connection.rs:2287fn726080.5
handle_webhooksrc/connection.rs:2589fn81020.5
handle_smoke_testsrc/connection.rs:2812fn321050.5
handle_bank_link_createsrc/connection.rs:3002fn132030.5
handle_bank_exchangesrc/connection.rs:3106fn112030.5
handle_bank_connectionssrc/connection.rs:3250fn81010.5
handle_bank_syncsrc/connection.rs:3287fn81010.5
handle_bank_snapshotssrc/connection.rs:3401fn81010.5
handle_external_eventssrc/connection.rs:3438fn81010.5
handle_external_reconcilesrc/connection.rs:3502fn81010.5
handle_external_inboxsrc/connection.rs:3537fn81010.5
handle_external_acknowledgesrc/connection.rs:3585fn221030.5
handle_external_repairsrc/connection.rs:3638fn231040.5
handle_bank_smoke_testsrc/connection.rs:3662fn121040.5
handle_querysrc/connection.rs:3909fn221000.5
handle_getsrc/connection.rs:3932fn111010.5
handle_statussrc/connection.rs:3944fn91000.5
persisted_webhook_event_retries_status_and_rejects_changed_replaysrc/connection.rs:3997fn261030.5
fake_create_session_is_idempotentsrc/connection.rs:4025fn181020.5
fake_refund_is_full_scoped_and_idempotentsrc/connection.rs:4045fn731020.5
cre8_wallet_donation_auto_settles_when_peer_has_balancesrc/connection.rs:4120fn451040.5
cre8_wallet_refund_reverses_the_transfer_oncesrc/connection.rs:4167fn421030.5
cre8_wallet_refund_needs_the_recipient_to_hold_the_amountsrc/connection.rs:4211fn231030.5
cre8_wallet_binds_debit_to_verified_callersrc/connection.rs:4236fn281030.5
cre8_wallet_rejects_verified_caller_impersonation_before_debitsrc/connection.rs:4266fn331030.5
cre8_wallet_donation_returns_external_stub_when_wallet_missingsrc/connection.rs:4301fn321020.5
a_buyer_who_chose_the_wallet_is_told_why_it_cannot_paysrc/connection.rs:4335fn282040.5
fake_webhook_cannot_settle_a_payment_opened_with_another_providersrc/connection.rs:4365fn551040.5
dispatched_query_reads_only_the_callers_own_paymentssrc/connection.rs:4422fn885050.5
dispatched_get_reads_a_payment_only_for_its_partiessrc/connection.rs:4512fn624040.5
dispatched_bank_and_external_reads_answer_only_the_callers_own_rowssrc/connection.rs:4576fn1048050.5
dispatched_bank_sync_touches_only_the_callers_own_connectionssrc/connection.rs:4682fn623040.5
dispatched_bank_link_and_exchange_belong_to_the_session_accountsrc/connection.rs:4762fn1193060.5
dispatched_external_reconcile_is_the_owners_and_acknowledge_and_repair_are_an_operatorssrc/connection.rs:4883fn1345080.5
dispatched_refund_needs_the_settlement_account_or_an_operatorsrc/connection.rs:5019fn451040.5
fake_webhook_is_refused_when_the_runtime_requires_authsrc/connection.rs:5066fn371030.5
fake_webhook_updates_payment_oncesrc/connection.rs:5105fn1091060.5
provider_registration_scopes_credentials_to_assetsrc/connection.rs:5216fn311020.5
onboard_registers_provider_and_stores_passport_credentialssrc/connection.rs:5249fn741050.5
webhook_registration_vaults_the_signing_secret_and_persists_public_evidencesrc/connection.rs:5325fn801050.5
shop_scoped_stripe_configs_and_runtime_evidence_are_isolatedsrc/connection.rs:5407fn1391040.5
provider_readiness_requires_live_checkout_and_settlement_evidencesrc/connection.rs:5548fn982040.5
smoke_test_proves_session_webhook_transaction_and_wallet_creditsrc/connection.rs:5648fn261020.5
external_inbox_repairs_missing_payment_settlementsrc/connection.rs:5676fn821070.5
bank_smoke_test_records_external_account_without_wallet_creditsrc/connection.rs:5760fn614060.5
fake_bank_link_and_exchange_are_idempotentsrc/connection.rs:5823fn1141020.5

Source not readable from this process.