invoicing_payments_processing 1.1.50 → 1.1.51
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 +4 -4
- data/lib/bufferpaypalnotification.rb +16 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 624069067ef76f9401f22e552151eb438e6d82f9
|
4
|
+
data.tar.gz: 3d628ef7f38ef8d9a0810295393df5673ebcb2d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc95fb5484a6809daa6df41676dcae565378f4f8cdaf1db0de386a954b0cc5484c458f34205583230120fbfa131fb4a28181383987b89e76ea86bf36a610fbed
|
7
|
+
data.tar.gz: f446b933246ea93c568826197ea3c3f00dc7dc176817cc125e4948038b12e967ec52c783eb95a0418d092a245aaf146daa89d2f3615572fbb389bd90d27600e5
|
@@ -41,20 +41,34 @@ module BlackStack
|
|
41
41
|
# 3) haciendo coincidir el campo payer_email de alguna suscripcion existente con el BlackStack::BufferPayPalNotification.payer_email
|
42
42
|
# 3) haciendo coincidir el primer guid en el codigo de invoice, con el id del cliente
|
43
43
|
def get_client()
|
44
|
+
puts
|
45
|
+
puts "BlackStack::BufferPayPalNotification::get_client"
|
46
|
+
puts 'debug info:'
|
47
|
+
puts "self.invoice:#{self.invoice.to_s}:."
|
44
48
|
# obtengo el cliente que machea con este perfil
|
45
49
|
c = nil
|
46
50
|
if c.nil?
|
51
|
+
puts 'a'
|
47
52
|
if self.invoice.guid?
|
53
|
+
puts 'b'
|
48
54
|
i = BlackStack::Invoice.where(:id=>self.invoice).first
|
49
55
|
c = i.client if !i.nil?
|
50
56
|
end
|
51
57
|
end
|
52
58
|
if c.nil?
|
59
|
+
puts 'c'
|
53
60
|
cid = self.invoice.split(".").first.to_s
|
61
|
+
puts "c:#{cid}:."
|
54
62
|
if cid.guid?
|
63
|
+
puts 'd'
|
55
64
|
c = BlackStack::Client.where(:id=>cid).first
|
56
65
|
end
|
57
66
|
end
|
67
|
+
=begin
|
68
|
+
# deprecated: debe obtenerse la factura (invoice), y de ahi el cliente,
|
69
|
+
# => porque un mismo cuente puede usar su cuenta paypal en varias cuantas
|
70
|
+
# => de usuario.
|
71
|
+
#
|
58
72
|
if c.nil?
|
59
73
|
c = BlackStack::Client.where(:paypal_email=>self.payer_email).first
|
60
74
|
if (c == nil)
|
@@ -83,6 +97,7 @@ module BlackStack
|
|
83
97
|
c = BlackStack::Client.where(:id=>row[:cid]).first
|
84
98
|
end
|
85
99
|
end
|
100
|
+
=end
|
86
101
|
c
|
87
102
|
end
|
88
103
|
|
@@ -338,7 +353,7 @@ module BlackStack
|
|
338
353
|
s.save
|
339
354
|
|
340
355
|
# obtengo la factura que se creo con esta suscripcion
|
341
|
-
i = BlackStack::Invoice.where(:id=>b.
|
356
|
+
i = BlackStack::Invoice.where(:id=>b.invoice).first
|
342
357
|
|
343
358
|
# vinculo esta suscripcion a la factura que la genero, y a todas las facturas siguientes
|
344
359
|
i.set_subscription(s)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: invoicing_payments_processing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.51
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Leandro Daniel Sardi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-11-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: websocket
|