bloom_remit 0.9.0 → 0.10.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: 2eb3e42aca0d8cd21bb3418323fd61700e40006f
|
4
|
+
data.tar.gz: 8c0829cdf94ce573bb88635fd98944b9f5f078dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 684c4c5b8117e28eb25a52fd858869873515f6cc7f4162a17e0579db8ff228b88e24d96c33b3b3add584e27bfc60fae570ad00fb68a954c59da5bf835f6ab33b
|
7
|
+
data.tar.gz: d084cd2c16239322f421e630919e870c56c2e55d536d02ec176d7b49607c7e1c78e7602b50b51d7e8a175c3151c39c08602fba4c6f354efa7336ea55bcb5abce
|
@@ -11,17 +11,15 @@ module BloomRemit
|
|
11
11
|
callback_url =
|
12
12
|
Engine.routes.url_helpers.api_v1_txn_url(txn, secret: txn.secret)
|
13
13
|
|
14
|
-
c.remote_response = c.client.
|
14
|
+
c.remote_response = c.client.create_txn(
|
15
15
|
sender_id: txn.sender.send(BloomRemit.sender_id_method),
|
16
16
|
account_name: txn.account_name,
|
17
17
|
account_number: txn.account_id,
|
18
18
|
callback_url: callback_url,
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
receivable_in_dest_currency: txn.amount,
|
24
|
-
external_id: txn.external_id,
|
19
|
+
currency: "PHP",
|
20
|
+
target_slug: txn.target_slug,
|
21
|
+
amount: txn.amount,
|
22
|
+
client_external_id: txn.external_id,
|
25
23
|
)
|
26
24
|
end
|
27
25
|
|
data/lib/bloom_remit/version.rb
CHANGED
data/spec/dummy/log/test.log
CHANGED
@@ -34423,3 +34423,35 @@ Completed 204 No Content in 23ms (ActiveRecord: 3.5ms)
|
|
34423
34423
|
[1m[35m (0.6ms)[0m COMMIT
|
34424
34424
|
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
34425
34425
|
[1m[35m (0.7ms)[0m ROLLBACK
|
34426
|
+
[1m[36mActiveRecord::SchemaMigration Load (3.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
34427
|
+
[1m[35m (2.1ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
|
34428
|
+
[1m[36m (2.2ms)[0m [1m SELECT schemaname || '.' || tablename
|
34429
|
+
FROM pg_tables
|
34430
|
+
WHERE
|
34431
|
+
tablename !~ '_prt_' AND
|
34432
|
+
tablename <> 'schema_migrations' AND
|
34433
|
+
schemaname = ANY (current_schemas(false))
|
34434
|
+
[0m
|
34435
|
+
[1m[35m (5.2ms)[0m select table_name from information_schema.views where table_schema = 'app_test'
|
34436
|
+
[1m[36m (384.8ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;[0m
|
34437
|
+
[1m[35m (0.6ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
|
34438
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
34439
|
+
[1m[35m (0.2ms)[0m COMMIT
|
34440
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
34441
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
34442
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
34443
|
+
[1m[35m (0.5ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
|
34444
|
+
[1m[36m (1.2ms)[0m [1m SELECT schemaname || '.' || tablename
|
34445
|
+
FROM pg_tables
|
34446
|
+
WHERE
|
34447
|
+
tablename !~ '_prt_' AND
|
34448
|
+
tablename <> 'schema_migrations' AND
|
34449
|
+
schemaname = ANY (current_schemas(false))
|
34450
|
+
[0m
|
34451
|
+
[1m[35m (1.0ms)[0m select table_name from information_schema.views where table_schema = 'app_test'
|
34452
|
+
[1m[36m (349.9ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;[0m
|
34453
|
+
[1m[35m (0.6ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
|
34454
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
34455
|
+
[1m[35m (0.3ms)[0m COMMIT
|
34456
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
34457
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
@@ -25,17 +25,15 @@ module BloomRemit
|
|
25
25
|
let(:response) { build(:bloom_remit_client_responses_payments_create) }
|
26
26
|
|
27
27
|
it "posts the txn to Bloom Remit" do
|
28
|
-
expect(client).to receive(:
|
28
|
+
expect(client).to receive(:create_txn).with(
|
29
29
|
sender_id: "sender-id",
|
30
30
|
account_name: "029925252",
|
31
31
|
account_number: "12345678",
|
32
32
|
callback_url: callback_url,
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
receivable_in_dest_currency: BigDecimal.new(2000),
|
38
|
-
external_id: external_id,
|
33
|
+
currency: "PHP",
|
34
|
+
target_slug: "PLDT",
|
35
|
+
amount: BigDecimal.new(2000),
|
36
|
+
client_external_id: external_id,
|
39
37
|
).and_return(response)
|
40
38
|
|
41
39
|
resulting_ctx = described_class.execute(txn: txn, client: client)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bloom_remit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ramon Tayag
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-10-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.
|
61
|
+
version: 0.12.0
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.
|
68
|
+
version: 0.12.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: sidekiq
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|