bloom_remit 0.10.0 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f52ece4d22394a3f7c8140d7ef698d3ea8cfb287
|
4
|
+
data.tar.gz: 70fb3a8839992cb3ad8a9cbbe3b4a9c163706f47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a67124fa4de7b87824965aa279c52ed23e1750acbc48d121bda4eddbb030d59a5d5c0e3fd44f10e395f621da54cf4bbb4b901acf185cb75bd74af9b5c756478
|
7
|
+
data.tar.gz: aa8a6826f36f5a8e26d67db7b9592ada6994e9f4c61672bbf2d9611415459d9a74e5541302e4c7d6a1de64178fb83c6db51b2128d511f66e449afe7d00761a06
|
data/lib/bloom_remit/version.rb
CHANGED
@@ -14,16 +14,15 @@ module BloomRemit
|
|
14
14
|
secret: txn.secret,
|
15
15
|
status: "paid",
|
16
16
|
status_description: "My status description",
|
17
|
-
|
17
|
+
tracking_number: "tracking-number",
|
18
18
|
)
|
19
19
|
txn = op.model
|
20
20
|
expect(txn.status).to eq "paid"
|
21
21
|
expect(txn.status_description).to eq "My status description"
|
22
|
-
expect(txn.vendor_external_id).to eq "somerefno"
|
23
22
|
expect(OnUpdateJob).to have_enqueued_job(txn.id, {
|
24
23
|
status: "paid",
|
25
24
|
status_description: "My status description",
|
26
|
-
|
25
|
+
tracking_number: "tracking-number",
|
27
26
|
})
|
28
27
|
end
|
29
28
|
|
data/spec/dummy/log/test.log
CHANGED
@@ -34455,3 +34455,287 @@ Completed 204 No Content in 23ms (ActiveRecord: 3.5ms)
|
|
34455
34455
|
[1m[35m (0.3ms)[0m COMMIT
|
34456
34456
|
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
34457
34457
|
[1m[35m (0.3ms)[0m ROLLBACK
|
34458
|
+
[1m[36mActiveRecord::SchemaMigration Load (2.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
34459
|
+
[1m[36m (221.4ms)[0m [1mDROP DATABASE IF EXISTS "app_test"[0m
|
34460
|
+
[1m[35m (564.2ms)[0m CREATE DATABASE "app_test" ENCODING = 'unicode'
|
34461
|
+
[1m[36mSQL (0.6ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
34462
|
+
[1m[35m (83.9ms)[0m CREATE TABLE "billers" ("id" serial primary key, "slug" character varying)
|
34463
|
+
[1m[36m (71.3ms)[0m [1mCREATE TABLE "bloom_remit_responses" ("id" serial primary key, "txn_id" integer NOT NULL, "body" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
34464
|
+
[1m[35m (42.2ms)[0m CREATE INDEX "index_bloom_remit_responses_on_txn_id" ON "bloom_remit_responses" USING btree ("txn_id")
|
34465
|
+
[1m[36m (65.2ms)[0m [1mCREATE TABLE "bloom_remit_txns" ("id" serial primary key, "status" integer DEFAULT 0 NOT NULL, "sender_id" character varying NOT NULL, "sender_type" character varying NOT NULL, "amount" decimal NOT NULL, "account_name" character varying, "account_id" character varying, "secret" uuid NOT NULL, "target_slug" character varying NOT NULL, "owner_id" character varying, "owner_type" character varying, "external_id" character varying, "status_description" text, "vendor_external_id" character varying) [0m
|
34466
|
+
[1m[35m (50.1ms)[0m CREATE INDEX "index_bloom_remit_txns_on_external_id" ON "bloom_remit_txns" USING btree ("external_id")
|
34467
|
+
[1m[36m (38.5ms)[0m [1mCREATE INDEX "index_bloom_remit_txns_on_owner_id_and_owner_type" ON "bloom_remit_txns" USING btree ("owner_id", "owner_type")[0m
|
34468
|
+
[1m[35m (42.7ms)[0m CREATE INDEX "index_bloom_remit_txns_on_vendor_external_id" ON "bloom_remit_txns" USING btree ("vendor_external_id")
|
34469
|
+
[1m[36m (72.6ms)[0m [1mCREATE TABLE "payments" ("id" serial primary key, "type" character varying) [0m
|
34470
|
+
[1m[35m (57.2ms)[0m CREATE TABLE "users" ("id" serial primary key, "email" character varying, "bloom_remit_id" character varying, "type" character varying)
|
34471
|
+
[1m[36m (32.4ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
34472
|
+
[1m[35m (35.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
34473
|
+
[1m[36m (0.7ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
34474
|
+
[1m[35m (14.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160930034811')
|
34475
|
+
[1m[36m (13.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160729085500')[0m
|
34476
|
+
[1m[35m (13.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160805001840')
|
34477
|
+
[1m[36m (14.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160805042105')[0m
|
34478
|
+
[1m[35m (17.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160806011259')
|
34479
|
+
[1m[36m (15.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160806012210')[0m
|
34480
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.6ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
34481
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
34482
|
+
Migrating to CreateBloomRemitTxns (20160729070509)
|
34483
|
+
[1m[35m (0.3ms)[0m BEGIN
|
34484
|
+
[1m[36m (2.4ms)[0m [1mCREATE TABLE "bloom_remit_txns" ("id" serial primary key, "status" integer DEFAULT 0 NOT NULL, "recipient_type" character varying NOT NULL, "recipient_id" character varying NOT NULL, "sender_id" integer NOT NULL, "sender_type" character varying NOT NULL, "amount" decimal NOT NULL, "account_name" character varying, "account_id" character varying, "secret" uuid NOT NULL) [0m
|
34485
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
34486
|
+
[1m[36mSQL (0.4ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
34487
|
+
[1m[35m (11.6ms)[0m DROP TABLE "billers" CASCADE
|
34488
|
+
[1m[36m (62.5ms)[0m [1mCREATE TABLE "billers" ("id" serial primary key, "slug" character varying) [0m
|
34489
|
+
[1m[35m (14.5ms)[0m DROP TABLE "bloom_remit_responses" CASCADE
|
34490
|
+
[1m[36m (77.9ms)[0m [1mCREATE TABLE "bloom_remit_responses" ("id" serial primary key, "txn_id" integer NOT NULL, "body" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
34491
|
+
[1m[35m (41.6ms)[0m CREATE INDEX "index_bloom_remit_responses_on_txn_id" ON "bloom_remit_responses" USING btree ("txn_id")
|
34492
|
+
[1m[36m (12.4ms)[0m [1mDROP TABLE "bloom_remit_txns" CASCADE[0m
|
34493
|
+
[1m[35m (63.4ms)[0m CREATE TABLE "bloom_remit_txns" ("id" serial primary key, "status" integer DEFAULT 0 NOT NULL, "sender_id" character varying NOT NULL, "sender_type" character varying NOT NULL, "amount" decimal NOT NULL, "account_name" character varying, "account_id" character varying, "secret" uuid NOT NULL, "target_slug" character varying NOT NULL, "owner_id" character varying, "owner_type" character varying, "external_id" character varying, "status_description" text, "vendor_external_id" character varying)
|
34494
|
+
[1m[36m (34.7ms)[0m [1mCREATE INDEX "index_bloom_remit_txns_on_external_id" ON "bloom_remit_txns" USING btree ("external_id")[0m
|
34495
|
+
[1m[35m (46.5ms)[0m CREATE INDEX "index_bloom_remit_txns_on_owner_id_and_owner_type" ON "bloom_remit_txns" USING btree ("owner_id", "owner_type")
|
34496
|
+
[1m[36m (43.8ms)[0m [1mCREATE INDEX "index_bloom_remit_txns_on_vendor_external_id" ON "bloom_remit_txns" USING btree ("vendor_external_id")[0m
|
34497
|
+
[1m[35m (13.9ms)[0m DROP TABLE "payments" CASCADE
|
34498
|
+
[1m[36m (69.7ms)[0m [1mCREATE TABLE "payments" ("id" serial primary key, "type" character varying) [0m
|
34499
|
+
[1m[35m (14.2ms)[0m DROP TABLE "users" CASCADE
|
34500
|
+
[1m[36m (81.5ms)[0m [1mCREATE TABLE "users" ("id" serial primary key, "email" character varying, "bloom_remit_id" character varying, "type" character varying) [0m
|
34501
|
+
[1m[35m (0.6ms)[0m SELECT version FROM "schema_migrations"
|
34502
|
+
[1m[36m (13.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160729070509')[0m
|
34503
|
+
[1m[35m (13.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160805004223')
|
34504
|
+
[1m[36m (13.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160805004350')[0m
|
34505
|
+
[1m[35m (13.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160805040950')
|
34506
|
+
[1m[36m (13.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160805095308')[0m
|
34507
|
+
[1m[35m (14.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160806054012')
|
34508
|
+
[1m[36m (14.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160808081300')[0m
|
34509
|
+
[1m[35m (15.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160809043433')
|
34510
|
+
[1m[36m (13.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160817003323')[0m
|
34511
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
34512
|
+
[1m[35m (0.8ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
|
34513
|
+
[1m[36m (1.3ms)[0m [1m SELECT schemaname || '.' || tablename
|
34514
|
+
FROM pg_tables
|
34515
|
+
WHERE
|
34516
|
+
tablename !~ '_prt_' AND
|
34517
|
+
tablename <> 'schema_migrations' AND
|
34518
|
+
schemaname = ANY (current_schemas(false))
|
34519
|
+
[0m
|
34520
|
+
[1m[35m (1.5ms)[0m select table_name from information_schema.views where table_schema = 'app_test'
|
34521
|
+
[1m[36m (410.5ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;[0m
|
34522
|
+
[1m[35m (1.1ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
|
34523
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
34524
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
34525
|
+
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
|
34526
|
+
[1m[35m (0.3ms)[0m BEGIN
|
34527
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "8f1f1eff-7c5f-4fdd-adab-4f044c03c449"], ["external_id", "0d7d32df2605e1f22f245556"], ["sender_id", "1"], ["sender_type", "User"]]
|
34528
|
+
[1m[35m (13.5ms)[0m COMMIT
|
34529
|
+
[1m[36mBloomRemit::Txn Load (0.5ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1[0m [["id", 1], ["secret", "8f1f1eff-7c5f-4fdd-adab-4f044c03c449"]]
|
34530
|
+
[1m[35m (0.3ms)[0m BEGIN
|
34531
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1, "status_description" = $2 WHERE "bloom_remit_txns"."id" = $3[0m [["status", 1], ["status_description", "My status description"], ["id", 1]]
|
34532
|
+
[1m[35m (14.7ms)[0m COMMIT
|
34533
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL[0m
|
34534
|
+
[1m[35m (389.2ms)[0m TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
|
34535
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL[0m
|
34536
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
34537
|
+
[1m[35m (0.6ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
|
34538
|
+
[1m[36m (1.4ms)[0m [1m SELECT schemaname || '.' || tablename
|
34539
|
+
FROM pg_tables
|
34540
|
+
WHERE
|
34541
|
+
tablename !~ '_prt_' AND
|
34542
|
+
tablename <> 'schema_migrations' AND
|
34543
|
+
schemaname = ANY (current_schemas(false))
|
34544
|
+
[0m
|
34545
|
+
[1m[35m (1.0ms)[0m select table_name from information_schema.views where table_schema = 'app_test'
|
34546
|
+
[1m[36m (399.6ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;[0m
|
34547
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
|
34548
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
34549
|
+
[1m[35m (0.4ms)[0m COMMIT
|
34550
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
34551
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
34552
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
34553
|
+
[1m[35m (0.2ms)[0m COMMIT
|
34554
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
34555
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
34556
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
34557
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
34558
|
+
[1m[36m (13.0ms)[0m [1mCOMMIT[0m
|
34559
|
+
[1m[35m (0.6ms)[0m BEGIN
|
34560
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
34561
|
+
[1m[35m (12.5ms)[0m COMMIT
|
34562
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
34563
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
|
34564
|
+
[1m[36m (10.8ms)[0m [1mCOMMIT[0m
|
34565
|
+
[1m[35m (0.2ms)[0m BEGIN
|
34566
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["secret", "b19ca4ef-8691-440a-9733-b5333363bbc6"], ["sender_type", "User"], ["sender_id", "1"], ["amount", "800.0"], ["account_name", "028109090"], ["account_id", "Hooli X"], ["target_slug", "PLDT"], ["owner_id", "1"], ["owner_type", "Payment"], ["external_id", "06ea93dc75786c235b4c67de"]]
|
34567
|
+
[1m[35m (10.4ms)[0m COMMIT
|
34568
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1]]
|
34569
|
+
[1m[35mPayment Load (0.3ms)[0m SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
|
34570
|
+
[1m[36m (0.2ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL[0m
|
34571
|
+
[1m[35m (388.0ms)[0m TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
|
34572
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL[0m
|
34573
|
+
[1m[35m (0.3ms)[0m BEGIN
|
34574
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
34575
|
+
[1m[35m (12.0ms)[0m COMMIT
|
34576
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
34577
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "39f9c276-1d60-4f1b-a989-6bfaa4ee0503"], ["external_id", "bf1f8b31be192783587805bc"], ["sender_id", "1"], ["sender_type", "User"]]
|
34578
|
+
[1m[36m (11.3ms)[0m [1mCOMMIT[0m
|
34579
|
+
[1m[35mBloomRemit::Txn Load (0.3ms)[0m SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", "39f9c276-1d60-4f1b-a989-6bfaa4ee0503"]]
|
34580
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
34581
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "bloom_remit_txns" SET "status" = $1, "status_description" = $2 WHERE "bloom_remit_txns"."id" = $3 [["status", 1], ["status_description", "My status description"], ["id", 1]]
|
34582
|
+
[1m[36m (10.4ms)[0m [1mCOMMIT[0m
|
34583
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
|
34584
|
+
[1m[36m (317.1ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;[0m
|
34585
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
|
34586
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
34587
|
+
[1m[35m (0.4ms)[0m COMMIT
|
34588
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
34589
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
34590
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
34591
|
+
[1m[35m (0.2ms)[0m COMMIT
|
34592
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
34593
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
34594
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
34595
|
+
[1m[35m (0.4ms)[0m COMMIT
|
34596
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
34597
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
34598
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
34599
|
+
[1m[35m (0.2ms)[0m COMMIT
|
34600
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
34601
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
34602
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
34603
|
+
[1m[35m (0.2ms)[0m COMMIT
|
34604
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
34605
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
34606
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
34607
|
+
[1m[35m (0.1ms)[0m COMMIT
|
34608
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
34609
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
34610
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
34611
|
+
[1m[35m (0.3ms)[0m COMMIT
|
34612
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
34613
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
34614
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
34615
|
+
[1m[35m (0.2ms)[0m COMMIT
|
34616
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
34617
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
34618
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
34619
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
34620
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
34621
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "40dc6a49-fa8b-4aa3-97c3-c39c560b9d14"], ["external_id", "952f6ddb7f7cb9598bb06e3b"], ["sender_id", "1"], ["sender_type", "User"]]
|
34622
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34623
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-10-04 07:41:01 +0000
|
34624
|
+
Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
|
34625
|
+
Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"1", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
|
34626
|
+
[1m[35mBloomRemit::Txn Load (0.4ms)[0m SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", nil]]
|
34627
|
+
Rendered text template (0.0ms)
|
34628
|
+
Completed 404 Not Found in 83ms (Views: 80.9ms | ActiveRecord: 0.4ms)
|
34629
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-10-04 07:41:01 +0000
|
34630
|
+
Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
|
34631
|
+
Parameters: {"secret"=>"40dc6a49-fa8b-4aa3-97c3-c39c560b9d14", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"40dc6a49-fa8b-4aa3-97c3-c39c560b9d14"}}
|
34632
|
+
[1m[36mBloomRemit::Txn Load (0.3ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1[0m [["id", 1], ["secret", "40dc6a49-fa8b-4aa3-97c3-c39c560b9d14"]]
|
34633
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
34634
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 1]]
|
34635
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
34636
|
+
Completed 200 OK in 7ms (Views: 0.5ms | ActiveRecord: 0.9ms)
|
34637
|
+
[1m[36mBloomRemit::Txn Load (0.2ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 1]]
|
34638
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
34639
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
34640
|
+
[1m[35m (0.5ms)[0m COMMIT
|
34641
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
34642
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
34643
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
34644
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
34645
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
34646
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "c221324a-5405-4634-a6cd-e99fe575f29e"], ["external_id", "0b0f1ff4962029d5aea18855"], ["sender_id", "2"], ["sender_type", "User"]]
|
34647
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34648
|
+
Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-10-04 07:41:01 +0000
|
34649
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
34650
|
+
Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"2", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
|
34651
|
+
[1m[35mBloomRemit::Txn Load (0.3ms)[0m SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 2], ["secret", nil]]
|
34652
|
+
Rendered text template (0.0ms)
|
34653
|
+
Completed 404 Not Found in 3ms (Views: 0.8ms | ActiveRecord: 0.3ms)
|
34654
|
+
Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-10-04 07:41:01 +0000
|
34655
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
34656
|
+
Parameters: {"secret"=>"c221324a-5405-4634-a6cd-e99fe575f29e", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"c221324a-5405-4634-a6cd-e99fe575f29e"}}
|
34657
|
+
[1m[36mBloomRemit::Txn Load (0.4ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1[0m [["id", 2], ["secret", "c221324a-5405-4634-a6cd-e99fe575f29e"]]
|
34658
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
34659
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 2]]
|
34660
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
34661
|
+
Completed 204 No Content in 53ms (ActiveRecord: 1.1ms)
|
34662
|
+
[1m[36mBloomRemit::Txn Load (0.3ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 2]]
|
34663
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
34664
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
34665
|
+
[1m[35m (0.3ms)[0m COMMIT
|
34666
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
34667
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
34668
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
34669
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
34670
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
34671
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
34672
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34673
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
34674
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "payments" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubPayment"]]
|
34675
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
34676
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
34677
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["secret", "562b504a-71f4-4e39-a0d5-32f5893f9ab5"], ["sender_type", "User"], ["sender_id", "3"], ["amount", "800.0"], ["account_name", "028109090"], ["account_id", "Hooli X"], ["target_slug", "PLDT"], ["owner_id", "1"], ["owner_type", "Payment"], ["external_id", "551589186d4a3829429df925"]]
|
34678
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34679
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
34680
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
34681
|
+
[1m[35m (0.3ms)[0m COMMIT
|
34682
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
34683
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
34684
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
34685
|
+
[1m[35m (0.2ms)[0m COMMIT
|
34686
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
34687
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
34688
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
34689
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
34690
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
34691
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
34692
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34693
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
34694
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "owner_id", "owner_type", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "e4e336ea-ea69-4482-9adb-06ee94a24703"], ["external_id", "bf4f9ccedec60a0402d2703b"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "4"], ["sender_type", "User"]]
|
34695
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
34696
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
34697
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["body", "{\"i\":\"am body\"}"], ["txn_id", 4], ["created_at", "2016-10-04 07:41:01.721762"], ["updated_at", "2016-10-04 07:41:01.721762"]]
|
34698
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34699
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 4]]
|
34700
|
+
[1m[36mBloomRemit::Response Load (0.3ms)[0m [1mSELECT "bloom_remit_responses".* FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 ORDER BY "bloom_remit_responses"."id" ASC LIMIT 1[0m [["txn_id", 4]]
|
34701
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
34702
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
34703
|
+
[1m[35m (0.3ms)[0m COMMIT
|
34704
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
34705
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
34706
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
34707
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
34708
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
34709
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
34710
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34711
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
34712
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "owner_id", "owner_type", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "29bd4fa0-72b5-4855-975e-6fa1acd6a383"], ["external_id", "a59c66d2778fe8acf34bf7c9"], ["owner_id", "3"], ["owner_type", "Payment"], ["sender_id", "5"], ["sender_type", "User"]]
|
34713
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
34714
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
34715
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 7], ["id", 5]]
|
34716
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34717
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
34718
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["body", "{\"status\":\"500\",\"error\":\"Internal Server Error\"}"], ["txn_id", 5], ["created_at", "2016-10-04 07:41:01.754951"], ["updated_at", "2016-10-04 07:41:01.754951"]]
|
34719
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
34720
|
+
[1m[36mBloomRemit::Txn Load (0.3ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 5]]
|
34721
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
34722
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
34723
|
+
[1m[35m (0.2ms)[0m COMMIT
|
34724
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
34725
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
34726
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
34727
|
+
[1m[35m (0.2ms)[0m COMMIT
|
34728
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
34729
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
34730
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
34731
|
+
[1m[35m (0.3ms)[0m COMMIT
|
34732
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
34733
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
34734
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
34735
|
+
[1m[35m (0.2ms)[0m COMMIT
|
34736
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
34737
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
34738
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
34739
|
+
[1m[35m (0.1ms)[0m COMMIT
|
34740
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
34741
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|