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: 2eb3e42aca0d8cd21bb3418323fd61700e40006f
4
- data.tar.gz: 8c0829cdf94ce573bb88635fd98944b9f5f078dd
3
+ metadata.gz: f52ece4d22394a3f7c8140d7ef698d3ea8cfb287
4
+ data.tar.gz: 70fb3a8839992cb3ad8a9cbbe3b4a9c163706f47
5
5
  SHA512:
6
- metadata.gz: 684c4c5b8117e28eb25a52fd858869873515f6cc7f4162a17e0579db8ff228b88e24d96c33b3b3add584e27bfc60fae570ad00fb68a954c59da5bf835f6ab33b
7
- data.tar.gz: d084cd2c16239322f421e630919e870c56c2e55d536d02ec176d7b49607c7e1c78e7602b50b51d7e8a175c3151c39c08602fba4c6f354efa7336ea55bcb5abce
6
+ metadata.gz: 6a67124fa4de7b87824965aa279c52ed23e1750acbc48d121bda4eddbb030d59a5d5c0e3fd44f10e395f621da54cf4bbb4b901acf185cb75bd74af9b5c756478
7
+ data.tar.gz: aa8a6826f36f5a8e26d67db7b9592ada6994e9f4c61672bbf2d9611415459d9a74e5541302e4c7d6a1de64178fb83c6db51b2128d511f66e449afe7d00761a06
@@ -28,7 +28,7 @@ module BloomRemit
28
28
  params[:txn].merge!(params.slice(*%i[
29
29
  status
30
30
  status_description
31
- vendor_external_id
31
+ tracking_number
32
32
  ]))
33
33
  end
34
34
 
@@ -1,3 +1,3 @@
1
1
  module BloomRemit
2
- VERSION = "0.10.0"
2
+ VERSION = "0.11.0"
3
3
  end
@@ -14,16 +14,15 @@ module BloomRemit
14
14
  secret: txn.secret,
15
15
  status: "paid",
16
16
  status_description: "My status description",
17
- vendor_external_id: "somerefno",
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
- vendor_external_id: "somerefno",
25
+ tracking_number: "tracking-number",
27
26
  })
28
27
  end
29
28
 
@@ -34455,3 +34455,287 @@ Completed 204 No Content in 23ms (ActiveRecord: 3.5ms)
34455
34455
   (0.3ms) COMMIT
34456
34456
   (0.2ms) BEGIN
34457
34457
   (0.3ms) ROLLBACK
34458
+ ActiveRecord::SchemaMigration Load (2.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
34459
+  (221.4ms) DROP DATABASE IF EXISTS "app_test"
34460
+  (564.2ms) CREATE DATABASE "app_test" ENCODING = 'unicode'
34461
+ SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
34462
+  (83.9ms) CREATE TABLE "billers" ("id" serial primary key, "slug" character varying)
34463
+  (71.3ms) CREATE 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) 
34464
+  (42.2ms) CREATE INDEX "index_bloom_remit_responses_on_txn_id" ON "bloom_remit_responses" USING btree ("txn_id")
34465
+  (65.2ms) 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) 
34466
+  (50.1ms) CREATE INDEX "index_bloom_remit_txns_on_external_id" ON "bloom_remit_txns" USING btree ("external_id")
34467
+  (38.5ms) CREATE INDEX "index_bloom_remit_txns_on_owner_id_and_owner_type" ON "bloom_remit_txns" USING btree ("owner_id", "owner_type")
34468
+  (42.7ms) CREATE INDEX "index_bloom_remit_txns_on_vendor_external_id" ON "bloom_remit_txns" USING btree ("vendor_external_id")
34469
+  (72.6ms) CREATE TABLE "payments" ("id" serial primary key, "type" character varying) 
34470
+  (57.2ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying, "bloom_remit_id" character varying, "type" character varying)
34471
+  (32.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
34472
+  (35.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
34473
+  (0.7ms) SELECT version FROM "schema_migrations"
34474
+  (14.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20160930034811')
34475
+  (13.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20160729085500')
34476
+  (13.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20160805001840')
34477
+  (14.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20160805042105')
34478
+  (17.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20160806011259')
34479
+  (15.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20160806012210')
34480
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
34481
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
34482
+ Migrating to CreateBloomRemitTxns (20160729070509)
34483
+  (0.3ms) BEGIN
34484
+  (2.4ms) CREATE 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) 
34485
+  (0.6ms) ROLLBACK
34486
+ SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
34487
+  (11.6ms) DROP TABLE "billers" CASCADE
34488
+  (62.5ms) CREATE TABLE "billers" ("id" serial primary key, "slug" character varying) 
34489
+  (14.5ms) DROP TABLE "bloom_remit_responses" CASCADE
34490
+  (77.9ms) CREATE 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) 
34491
+  (41.6ms) CREATE INDEX "index_bloom_remit_responses_on_txn_id" ON "bloom_remit_responses" USING btree ("txn_id")
34492
+  (12.4ms) DROP TABLE "bloom_remit_txns" CASCADE
34493
+  (63.4ms) 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
+  (34.7ms) CREATE INDEX "index_bloom_remit_txns_on_external_id" ON "bloom_remit_txns" USING btree ("external_id")
34495
+  (46.5ms) CREATE INDEX "index_bloom_remit_txns_on_owner_id_and_owner_type" ON "bloom_remit_txns" USING btree ("owner_id", "owner_type")
34496
+  (43.8ms) CREATE INDEX "index_bloom_remit_txns_on_vendor_external_id" ON "bloom_remit_txns" USING btree ("vendor_external_id")
34497
+  (13.9ms) DROP TABLE "payments" CASCADE
34498
+  (69.7ms) CREATE TABLE "payments" ("id" serial primary key, "type" character varying) 
34499
+  (14.2ms) DROP TABLE "users" CASCADE
34500
+  (81.5ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying, "bloom_remit_id" character varying, "type" character varying) 
34501
+  (0.6ms) SELECT version FROM "schema_migrations"
34502
+  (13.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20160729070509')
34503
+  (13.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20160805004223')
34504
+  (13.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20160805004350')
34505
+  (13.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20160805040950')
34506
+  (13.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20160805095308')
34507
+  (14.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20160806054012')
34508
+  (14.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20160808081300')
34509
+  (15.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20160809043433')
34510
+  (13.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20160817003323')
34511
+ ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"
34512
+  (0.8ms) 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
+  (1.3ms)  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
+ 
34520
+  (1.5ms) select table_name from information_schema.views where table_schema = 'app_test'
34521
+  (410.5ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
34522
+  (1.1ms) 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
+  (0.4ms) BEGIN
34524
+ SQL (0.8ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
34525
+  (14.8ms) COMMIT
34526
+  (0.3ms) BEGIN
34527
+ SQL (0.7ms) 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", "8f1f1eff-7c5f-4fdd-adab-4f044c03c449"], ["external_id", "0d7d32df2605e1f22f245556"], ["sender_id", "1"], ["sender_type", "User"]]
34528
+  (13.5ms) COMMIT
34529
+ BloomRemit::Txn Load (0.5ms) 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", "8f1f1eff-7c5f-4fdd-adab-4f044c03c449"]]
34530
+  (0.3ms) BEGIN
34531
+ SQL (0.4ms) 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]]
34532
+  (14.7ms) COMMIT
34533
+  (0.4ms) 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
34534
+  (389.2ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
34535
+  (0.4ms) 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
34536
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
34537
+  (0.6ms) 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
+  (1.4ms)  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
+ 
34545
+  (1.0ms) select table_name from information_schema.views where table_schema = 'app_test'
34546
+  (399.6ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
34547
+  (0.3ms) 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
+  (0.3ms) BEGIN
34549
+  (0.4ms) COMMIT
34550
+  (0.2ms) BEGIN
34551
+  (0.2ms) ROLLBACK
34552
+  (0.2ms) BEGIN
34553
+  (0.2ms) COMMIT
34554
+  (0.1ms) BEGIN
34555
+  (0.2ms) ROLLBACK
34556
+  (0.2ms) BEGIN
34557
+ SQL (0.6ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
34558
+  (13.0ms) COMMIT
34559
+  (0.6ms) BEGIN
34560
+ SQL (0.4ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]]
34561
+  (12.5ms) COMMIT
34562
+  (0.3ms) BEGIN
34563
+ SQL (0.5ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
34564
+  (10.8ms) COMMIT
34565
+  (0.2ms) BEGIN
34566
+ SQL (0.4ms) 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", "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
+  (10.4ms) COMMIT
34568
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]]
34569
+ Payment Load (0.3ms) SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
34570
+  (0.2ms) 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
34571
+  (388.0ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
34572
+  (0.4ms) 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
34573
+  (0.3ms) BEGIN
34574
+ SQL (0.8ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
34575
+  (12.0ms) COMMIT
34576
+  (0.3ms) BEGIN
34577
+ SQL (0.7ms) 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
+  (11.3ms) COMMIT
34579
+ BloomRemit::Txn Load (0.3ms) 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
+  (0.2ms) BEGIN
34581
+ SQL (0.3ms) 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
+  (10.4ms) COMMIT
34583
+  (0.2ms) 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
+  (317.1ms) TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
34585
+  (0.3ms) 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
+  (0.3ms) BEGIN
34587
+  (0.4ms) COMMIT
34588
+  (0.3ms) BEGIN
34589
+  (0.2ms) ROLLBACK
34590
+  (0.2ms) BEGIN
34591
+  (0.2ms) COMMIT
34592
+  (0.2ms) BEGIN
34593
+  (0.3ms) ROLLBACK
34594
+  (0.2ms) BEGIN
34595
+  (0.4ms) COMMIT
34596
+  (0.2ms) BEGIN
34597
+  (0.5ms) ROLLBACK
34598
+  (0.4ms) BEGIN
34599
+  (0.2ms) COMMIT
34600
+  (0.2ms) BEGIN
34601
+  (0.3ms) ROLLBACK
34602
+  (0.2ms) BEGIN
34603
+  (0.2ms) COMMIT
34604
+  (0.2ms) BEGIN
34605
+  (0.2ms) ROLLBACK
34606
+  (0.1ms) BEGIN
34607
+  (0.1ms) COMMIT
34608
+  (0.1ms) BEGIN
34609
+  (0.1ms) ROLLBACK
34610
+  (0.2ms) BEGIN
34611
+  (0.3ms) COMMIT
34612
+  (0.3ms) BEGIN
34613
+  (0.2ms) ROLLBACK
34614
+  (0.1ms) BEGIN
34615
+  (0.2ms) COMMIT
34616
+  (0.4ms) BEGIN
34617
+  (0.2ms) SAVEPOINT active_record_1
34618
+ SQL (0.7ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
34619
+  (0.2ms) RELEASE SAVEPOINT active_record_1
34620
+  (0.2ms) SAVEPOINT active_record_1
34621
+ SQL (0.5ms) 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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
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
+ BloomRemit::Txn Load (0.4ms) 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
+ BloomRemit::Txn Load (0.3ms) 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", "40dc6a49-fa8b-4aa3-97c3-c39c560b9d14"]]
34633
+  (0.2ms) SAVEPOINT active_record_1
34634
+ SQL (0.3ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 1]]
34635
+  (0.2ms) RELEASE SAVEPOINT active_record_1
34636
+ Completed 200 OK in 7ms (Views: 0.5ms | ActiveRecord: 0.9ms)
34637
+ BloomRemit::Txn Load (0.2ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 1]]
34638
+  (0.2ms) ROLLBACK
34639
+  (0.3ms) BEGIN
34640
+  (0.5ms) COMMIT
34641
+  (0.5ms) BEGIN
34642
+  (0.2ms) SAVEPOINT active_record_1
34643
+ SQL (0.3ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
34644
+  (0.2ms) RELEASE SAVEPOINT active_record_1
34645
+  (0.1ms) SAVEPOINT active_record_1
34646
+ SQL (0.3ms) 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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
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
+ BloomRemit::Txn Load (0.3ms) 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
+ BloomRemit::Txn Load (0.4ms) 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", "c221324a-5405-4634-a6cd-e99fe575f29e"]]
34658
+  (0.2ms) SAVEPOINT active_record_1
34659
+ SQL (0.3ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 2]]
34660
+  (0.2ms) RELEASE SAVEPOINT active_record_1
34661
+ Completed 204 No Content in 53ms (ActiveRecord: 1.1ms)
34662
+ BloomRemit::Txn Load (0.3ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 2]]
34663
+  (0.3ms) ROLLBACK
34664
+  (0.5ms) BEGIN
34665
+  (0.3ms) COMMIT
34666
+  (0.2ms) BEGIN
34667
+  (0.2ms) SAVEPOINT active_record_1
34668
+ SQL (0.3ms) INSERT INTO "users" ("type") VALUES ($1) RETURNING "id" [["type", "SubUser"]]
34669
+  (0.2ms) RELEASE SAVEPOINT active_record_1
34670
+  (0.1ms) SAVEPOINT active_record_1
34671
+ SQL (0.5ms) INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
34672
+  (0.2ms) RELEASE SAVEPOINT active_record_1
34673
+  (0.3ms) SAVEPOINT active_record_1
34674
+ SQL (0.5ms) INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
34675
+  (0.2ms) RELEASE SAVEPOINT active_record_1
34676
+  (0.2ms) SAVEPOINT active_record_1
34677
+ SQL (0.3ms) 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
+  (0.3ms) RELEASE SAVEPOINT active_record_1
34679
+  (0.2ms) ROLLBACK
34680
+  (0.2ms) BEGIN
34681
+  (0.3ms) COMMIT
34682
+  (0.4ms) BEGIN
34683
+  (0.2ms) ROLLBACK
34684
+  (0.2ms) BEGIN
34685
+  (0.2ms) COMMIT
34686
+  (0.1ms) BEGIN
34687
+  (0.2ms) SAVEPOINT active_record_1
34688
+ SQL (0.3ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id"
34689
+  (0.3ms) RELEASE SAVEPOINT active_record_1
34690
+  (0.2ms) SAVEPOINT active_record_1
34691
+ SQL (0.3ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
34692
+  (0.2ms) RELEASE SAVEPOINT active_record_1
34693
+  (0.3ms) SAVEPOINT active_record_1
34694
+ SQL (0.4ms) INSERT 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" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
34696
+  (0.2ms) SAVEPOINT active_record_1
34697
+ SQL (0.4ms) 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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
34699
+  (0.2ms) SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 4]]
34700
+ BloomRemit::Response Load (0.3ms) SELECT "bloom_remit_responses".* FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 ORDER BY "bloom_remit_responses"."id" ASC LIMIT 1 [["txn_id", 4]]
34701
+  (0.2ms) ROLLBACK
34702
+  (0.1ms) BEGIN
34703
+  (0.3ms) COMMIT
34704
+  (0.2ms) BEGIN
34705
+  (0.2ms) SAVEPOINT active_record_1
34706
+ SQL (0.3ms) INSERT INTO "payments" DEFAULT VALUES RETURNING "id"
34707
+  (0.2ms) RELEASE SAVEPOINT active_record_1
34708
+  (0.2ms) SAVEPOINT active_record_1
34709
+ SQL (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
34710
+  (0.2ms) RELEASE SAVEPOINT active_record_1
34711
+  (0.1ms) SAVEPOINT active_record_1
34712
+ SQL (0.4ms) INSERT 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" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
34714
+  (0.2ms) SAVEPOINT active_record_1
34715
+ SQL (0.3ms) UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 7], ["id", 5]]
34716
+  (0.2ms) RELEASE SAVEPOINT active_record_1
34717
+  (0.2ms) SAVEPOINT active_record_1
34718
+ SQL (0.3ms) INSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["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
+  (0.3ms) RELEASE SAVEPOINT active_record_1
34720
+ BloomRemit::Txn Load (0.3ms) SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 5]]
34721
+  (0.2ms) ROLLBACK
34722
+  (0.1ms) BEGIN
34723
+  (0.2ms) COMMIT
34724
+  (0.2ms) BEGIN
34725
+  (0.2ms) ROLLBACK
34726
+  (0.1ms) BEGIN
34727
+  (0.2ms) COMMIT
34728
+  (0.2ms) BEGIN
34729
+  (0.2ms) ROLLBACK
34730
+  (0.1ms) BEGIN
34731
+  (0.3ms) COMMIT
34732
+  (0.2ms) BEGIN
34733
+  (0.2ms) ROLLBACK
34734
+  (0.2ms) BEGIN
34735
+  (0.2ms) COMMIT
34736
+  (0.1ms) BEGIN
34737
+  (0.2ms) ROLLBACK
34738
+  (0.1ms) BEGIN
34739
+  (0.1ms) COMMIT
34740
+  (0.1ms) BEGIN
34741
+  (0.2ms) ROLLBACK
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bloom_remit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ramon Tayag