Skip to content

Instantly share code, notes, and snippets.

@ratM1n
Created May 4, 2023 12:10
Show Gist options
  • Save ratM1n/f928957bce9241b5635536b00e1c8e95 to your computer and use it in GitHub Desktop.
Save ratM1n/f928957bce9241b5635536b00e1c8e95 to your computer and use it in GitHub Desktop.
May 4 13:43:49 api registrant.internet.ee[3874]: [d4402ea3-52e5-40c5-9955-b0e05db884a8] [api] [195.43.87.194] Started PUT "/eis_billing/e_invoice_response" for 195.43.87.194 at 2023-05-04 13:43:49 +0300
May 4 13:43:49 api registrant.internet.ee[3874]: [d4402ea3-52e5-40c5-9955-b0e05db884a8] [api] [195.43.87.194] Processing by EisBilling::EInvoiceResponseController#update as */*
May 4 13:43:49 api registrant.internet.ee[3874]: [d4402ea3-52e5-40c5-9955-b0e05db884a8] [api] [195.43.87.194] Parameters: {"invoice_number"=>137057, "date"=>"2023-05-04 10:43:49 UTC", "e_invoice_response"=>{"invoice_number"=>137057, "date"=>"2023-05-04 10:43:49 UTC"}}
May 4 13:43:49 api registrant.internet.ee[3874]: [d4402ea3-52e5-40c5-9955-b0e05db884a8] [api] [195.43.87.194] Can't verify CSRF token authenticity.
May 4 13:43:49 api registrant.internet.ee[3874]: [d4402ea3-52e5-40c5-9955-b0e05db884a8] [api] [195.43.87.194] Invoice Load (1.1ms) SELECT "invoices".* FROM "invoices" WHERE "invoices"."number" = $1 LIMIT $2 [["number", 137057], ["LIMIT", 1]]
May 4 13:43:49 api registrant.internet.ee[3874]: [d4402ea3-52e5-40c5-9955-b0e05db884a8] [api] [195.43.87.194] TRANSACTION (0.6ms) BEGIN
May 4 13:43:49 api registrant.internet.ee[3874]: [d4402ea3-52e5-40c5-9955-b0e05db884a8] [api] [195.43.87.194] InvoiceItem Load (1.1ms) SELECT "invoice_items".* FROM "invoice_items" WHERE "invoice_items"."invoice_id" = $1 [["invoice_id", 4097]]
May 4 13:43:49 api registrant.internet.ee[3874]: [d4402ea3-52e5-40c5-9955-b0e05db884a8] [api] [195.43.87.194] Invoice Update (1.1ms) UPDATE "invoices" SET "updated_at" = $1, "updator_str" = $2, "e_invoice_sent_at" = $3 WHERE "invoices"."id" = $4 [["updated_at", "2023-05-04 10:43:49.436820"], ["updator_str", nil], ["e_invoice_sent_at", "2023-05-04 10:43:49.429951"], ["id", 4097]]
May 4 13:43:49 api registrant.internet.ee[3874]: [d4402ea3-52e5-40c5-9955-b0e05db884a8] [api] [195.43.87.194] Version::InvoiceVersion Create (1.6ms) INSERT INTO "log_invoices" ("item_type", "item_id", "event", "object", "object_changes", "created_at", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["item_type", "Invoice"], ["item_id", 4097], ["event", "update"], ["object", "{\"e_invoice_sent_at\":null,\"id\":4097,\"created_at\":\"2023-05-04T13:42:48.446+03:00\",\"updated_at\":\"2023-05-04T13:42:48.712+03:00\",\"due_date\":\"2023-06-03\",\"currency\":\"EUR\",\"description\":null,\"reference_no\":\"4780326\",\"vat_rate\":\"20.0\",\"seller_name\":\"Eesti Interneti SA\",\"seller_reg_no\":\"90010019\",\"seller_iban\":\"EE557700771000598731\",\"seller_bank\":\"LHV Pank\",\"seller_swift\":\"LHVBEE22\",\"seller_vat_no\":\"EE101286464\",\"seller_country_code\":\"EE\",\"seller_state\":\"Harjumaa\",\"seller_street\":\"Paldiski mnt 80\",\"seller_city\":\"Tallinn\",\"seller_zip\":\"10617\",\"seller_phone\":\"+372 727 1000\",\"seller_url\":\"www.internet.ee\",\"seller_email\":\"info@internet.ee\",\"seller_contact_name\":\"Silver Sõrmus\",\"buyer_id\":67,\"buyer_name\":\"eHost OÜ \",\"buyer_reg_no\":\"16406158\",\"buyer_country_code\":\"EE\",\"buyer_state\":\"Harjumaa\",\"buyer_street\":\"Väike-Ameerika tn 1-28\",\"buyer_city\":\"Tallinn\",\"buyer_zip\":\"10129\",\"buyer_phone\":\"56687176\",\"buyer_url\":\"https://host.ee\",\"buyer_email\":\"host@host.ee\",\"creator_str\":\"evevahter\",\"updator_str\":\"evevahter\",\"number\":137057,\"cancelled_at\":null,\"total\":\"2160.0\",\"in_directo\":false,\"buyer_vat_no\":\"EE102449459\",\"issue_date\":\"2023-05-04\",\"payment_link\":\"https://pay.every-pay.eu/lp?custom_field_1=\\u0026custom_field_2=registry\\u0026customer_email=host%40host.ee\\u0026customer_name=eHost%20O%C3%9C%20\\u0026invoice_number=137057\\u0026linkpay_token=j9wjuj\\u0026order_reference=137057\\u0026reference_number=4780326\\u0026transaction_amount=2160.0\\u0026hmac=d5fc59e04c1ab2369e13a527a5df06bbeb80f6df300d42a37da5b20aca9fb5a6\",\"monthly_invoice\":false,\"metadata\":null,\"sent_at\":null}"], ["object_changes", "{\"updated_at\":[\"2023-05-04T13:42:48.712+03:00\",\"2023-05-04T13:43:49.436+03:00\"],\"updator_str\":[\"evevahter\",null],\"e_invoice_sent_at\":[null,\"2023-05-04T13:43:49.429+03:00\"]}"], ["created_at", "2023-05-04 10:43:49.436820"], ["uuid", "d4402ea3-52e5-40c5-9955-b0e05db884a8"]]
May 4 13:43:49 api registrant.internet.ee[3874]: [d4402ea3-52e5-40c5-9955-b0e05db884a8] [api] [195.43.87.194] TRANSACTION (1.3ms) COMMIT
May 4 13:43:49 api registrant.internet.ee[3874]: [d4402ea3-52e5-40c5-9955-b0e05db884a8] [api] [195.43.87.194] Completed 200 OK in 45ms (Views: 0.6ms | ActiveRecord: 6.8ms | Allocations: 4290)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment