{ "db_name": "PostgreSQL", "query": "\n UPDATE tips\n SET status = 'completed',\n stripe_payment_intent_id = $2,\n completed_at = NOW()\n WHERE stripe_checkout_session_id = $1\n AND status = 'pending'\n RETURNING\n id AS \"id: TipId\", tipper_id AS \"tipper_id: UserId\", recipient_id AS \"recipient_id: UserId\",\n project_id AS \"project_id: ProjectId\", amount_cents AS \"amount_cents: Cents\", message,\n status AS \"status: super::TransactionStatus\", stripe_payment_intent_id, stripe_checkout_session_id,\n stripe_transfer_group,\n created_at AS \"created_at: chrono::DateTime\",\n completed_at AS \"completed_at: chrono::DateTime\"\n ", "describe": { "columns": [ { "ordinal": 0, "name": "id: TipId", "type_info": "Uuid" }, { "ordinal": 1, "name": "tipper_id: UserId", "type_info": "Uuid" }, { "ordinal": 2, "name": "recipient_id: UserId", "type_info": "Uuid" }, { "ordinal": 3, "name": "project_id: ProjectId", "type_info": "Uuid" }, { "ordinal": 4, "name": "amount_cents: Cents", "type_info": "Int4" }, { "ordinal": 5, "name": "message", "type_info": "Varchar" }, { "ordinal": 6, "name": "status: super::TransactionStatus", "type_info": "Varchar" }, { "ordinal": 7, "name": "stripe_payment_intent_id", "type_info": "Varchar" }, { "ordinal": 8, "name": "stripe_checkout_session_id", "type_info": "Varchar" }, { "ordinal": 9, "name": "stripe_transfer_group", "type_info": "Varchar" }, { "ordinal": 10, "name": "created_at: chrono::DateTime", "type_info": "Timestamptz" }, { "ordinal": 11, "name": "completed_at: chrono::DateTime", "type_info": "Timestamptz" } ], "parameters": { "Left": [ "Text", "Varchar" ] }, "nullable": [ false, false, false, true, false, true, false, true, true, true, false, true ] }, "hash": "6b1d0dbffd82a8902fa1e2cad2ae7c26135dca1ab462ee72d09bda12b4b3bb7d" }