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: 004cf8a8cbe6e2f79f425da1a3362b7bf7b0861d
4
- data.tar.gz: a8671438ad0a3af55f9c2aa0023abc6809e1adea
3
+ metadata.gz: 2eb3e42aca0d8cd21bb3418323fd61700e40006f
4
+ data.tar.gz: 8c0829cdf94ce573bb88635fd98944b9f5f078dd
5
5
  SHA512:
6
- metadata.gz: da741fcd5c70b9feff9eee795e3d5142889b889b8b8a59e01263bc117948968ace80edb5ab79923ce306f5b9a37f8df86b8d5d8aa1798ef993c30c74871e9394
7
- data.tar.gz: 84ec86f256fea4f420528978e61c364404cf49ea53b560d13b08a13a39ee4caf2ecf7abfe247c03435f41f7a37b808b8cfedbbddfb6b838cb5597811362352d1
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.create_payment(
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
- dest_currency: "PHP",
20
- orig_currency: "PHP",
21
- payout_method: txn.target_slug,
22
- paid_in_orig_currency: txn.amount,
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
 
@@ -1,3 +1,3 @@
1
1
  module BloomRemit
2
- VERSION = "0.9.0"
2
+ VERSION = "0.10.0"
3
3
  end
@@ -6,8 +6,8 @@ development: &default
6
6
  pool: 5
7
7
  username: postgres
8
8
  password:
9
- host: localhost # run ruby on host
10
- # host: db # everything via docker services
9
+ # host: localhost # run ruby on host
10
+ host: db # everything via docker services
11
11
 
12
12
  test:
13
13
  <<: *default
@@ -34423,3 +34423,35 @@ Completed 204 No Content in 23ms (ActiveRecord: 3.5ms)
34423
34423
   (0.6ms) COMMIT
34424
34424
   (0.5ms) BEGIN
34425
34425
   (0.7ms) ROLLBACK
34426
+ ActiveRecord::SchemaMigration Load (3.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
34427
+  (2.1ms) 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
+  (2.2ms)  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
+ 
34435
+  (5.2ms) select table_name from information_schema.views where table_schema = 'app_test'
34436
+  (384.8ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;
34437
+  (0.6ms) 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
+  (0.3ms) BEGIN
34439
+  (0.2ms) COMMIT
34440
+  (0.3ms) BEGIN
34441
+  (0.3ms) ROLLBACK
34442
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
34443
+  (0.5ms) 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
+  (1.2ms)  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
+ 
34451
+  (1.0ms) select table_name from information_schema.views where table_schema = 'app_test'
34452
+  (349.9ms) TRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;
34453
+  (0.6ms) 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
+  (0.4ms) BEGIN
34455
+  (0.3ms) COMMIT
34456
+  (0.2ms) BEGIN
34457
+  (0.3ms) 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(:create_payment).with(
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
- dest_currency: "PHP",
34
- orig_currency: "PHP",
35
- payout_method: "PLDT",
36
- paid_in_orig_currency: BigDecimal.new(2000),
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.9.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-09-30 00:00:00.000000000 Z
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.7.1
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.7.1
68
+ version: 0.12.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: sidekiq
71
71
  requirement: !ruby/object:Gem::Requirement