easy_pay_u_latam 0.1.26 → 0.1.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8e6daef3c30061128c0dc665d6a4d0f638c26d16ec6b542c1426089426b1ad3a
|
|
4
|
+
data.tar.gz: 5fdab63ab338bccb5188ae23a0377d124bff758b236dd32ce667c9a69c799ae3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c4986995ee429829e73c4a168da540b87fed5929f025e1cf0795d6e6021a9caf9ab588e26a889b7cfc413ec48bc77b7180cdf8c034d261613ce9cb7aaeac5661
|
|
7
|
+
data.tar.gz: 3f3f696e47bd6ca13ea003536f8b4fa74e0a726fa3c0e13b51af77fb15198d945513b67505b37ced4827e8e2e59350cedac73b4d6bacddca8cef5fb8a1be4d3a
|
|
@@ -6,7 +6,7 @@ module EasyPayULatam
|
|
|
6
6
|
def index
|
|
7
7
|
client = RApi::Client.new current_user.pay_u_costumer_id
|
|
8
8
|
subs = RApi::Subscription.new client
|
|
9
|
-
|
|
9
|
+
|
|
10
10
|
unless subs.response["recurringBillList"].blank?
|
|
11
11
|
render status: 200, json: {subscriptions: current_user.all_payments.first(30), subscriptions_api: subs.response["recurringBillList"].last(30)}
|
|
12
12
|
else
|
|
@@ -18,10 +18,10 @@ module EasyPayULatam
|
|
|
18
18
|
self.status == PENDING
|
|
19
19
|
end
|
|
20
20
|
|
|
21
|
-
def add_charge(params)
|
|
21
|
+
def add_charge(params, user)
|
|
22
22
|
@payUConfig = EasyPayULatam.configuration
|
|
23
23
|
|
|
24
|
-
client = RApi::Client.new
|
|
24
|
+
client = RApi::Client.new user.pay_u_costumer_id
|
|
25
25
|
addcharge = RApi::AdditionalCharge.new client, self.reference_recurring_payment
|
|
26
26
|
addcharge.params = {
|
|
27
27
|
"description" => params[:description],
|
|
@@ -62,10 +62,10 @@ module EasyPayULatam
|
|
|
62
62
|
charges
|
|
63
63
|
end
|
|
64
64
|
|
|
65
|
-
def remove_charge(id)
|
|
65
|
+
def remove_charge(id, user)
|
|
66
66
|
@payUConfig = EasyPayULatam.configuration
|
|
67
67
|
|
|
68
|
-
client = RApi::Client.new
|
|
68
|
+
client = RApi::Client.new user.pay_u_costumer_id
|
|
69
69
|
addcharge = RApi::AdditionalCharge.new client, self.reference_recurring_payment
|
|
70
70
|
|
|
71
71
|
addcharge.delete id
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: easy_pay_u_latam
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.27
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- DEVPENGUIN
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-11-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|