recurrente 0.1.0 → 0.1.1
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/README.md +40 -38
- data/lib/recurrente/version.rb +1 -1
- data/recurrente.gemspec +2 -2
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a72318358e68f9606dfe65e00b1bbb8162b86d0e
|
4
|
+
data.tar.gz: f9603b082e88c35a1a0080cc2bb0d62f71bb7728
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7a03e354059242afd700bbbf37ac5628c2c9d91bb21ec99d931078cb44e2bdf59a23823c20ea1f24b84ea717027be84558340429c91542fe1f9176fcc982d03
|
7
|
+
data.tar.gz: ecc12615a1c6649801db6f162ca369a42e9cd5ba5d52518533c1ec85e1fa7bf3f42a29aa39bf4683f551799339307593dae98a8f11a93cbc1b18a39ebfe5f893
|
data/README.md
CHANGED
@@ -30,55 +30,57 @@ This is divided into 5 sections in the same way that is explained in Payu's webs
|
|
30
30
|
|
31
31
|
Before anything you'll need to change the test data within an initializer in the config folder in order to replace these constants:
|
32
32
|
|
33
|
+
```ruby
|
33
34
|
# TEST DATA
|
34
35
|
API_URL = "http://stg.api.payulatam.com/payments-api/rest/v4.3"
|
35
36
|
API_KEY = "6u39nqhq8ftd0hlvnjfs66eh8c"
|
36
37
|
API_LOGIN = "11959c415b33d0c"
|
37
38
|
MERCHANT_ID = "500238"
|
38
39
|
ACCOUNT = "500538"
|
40
|
+
```
|
39
41
|
|
40
42
|
Notice that the API_URL is pointing to http instead of using a secure protocol. This is just for testing purposes.
|
41
43
|
|
42
44
|
## COVERED ENDPOINTS
|
43
45
|
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
46
|
+
Everything is contained in the same ruby file because I wanted to see every method in one place. Clearly this needs improvement but so far this is what I got.
|
47
|
+
|
48
|
+
### PLANS
|
49
|
+
#### 1.1 GET - Mostrar todos los planes
|
50
|
+
#### 1.2 POST - Crear un nuevo Plan
|
51
|
+
#### 1.3 GET - Consultar un plan existente
|
52
|
+
#### 1.4 PUT - Actualizar un plan existente
|
53
|
+
#### 1.5 DELETE - Borrar un Plan existente
|
54
|
+
|
55
|
+
### SUSCRIPTORS
|
56
|
+
#### 2.1 POST - Crear un Suscriptor
|
57
|
+
#### 2.2 GET - Buscar un Suscriptor
|
58
|
+
#### 2.3 PUT - Actualizar un Suscriptor
|
59
|
+
#### 2.4 DELETE - Borrar un Suscriptor
|
60
|
+
|
61
|
+
### CREDIT CARDS
|
62
|
+
#### 3.1 POST - Crear una Tarjeta de Credito a un Suscriptor
|
63
|
+
#### 3.2 GET - Buscar una tarjeta de crédito
|
64
|
+
#### 3.3 GET - Buscar tarjetas de crédito de un usuario
|
65
|
+
#### 3.4 DELETE - Eliminar una tarjeta de crédito
|
66
|
+
|
67
|
+
### SUSCRIPTIONS
|
68
|
+
#### 4.1 POST - Crear suscripción
|
69
|
+
##### 4.1.1 CON TODOS LOS ELEMENTOS NUEVOS
|
70
|
+
##### 4.1.2 CON TODOS LOS ELEMENTOS EXISTENTES
|
71
|
+
##### 4.1.3 PLAN Y SUSCRIPTOR YA CREADOS Y UNA TARJETA NUEVA
|
72
|
+
##### 4.1.4 CLIENTE Y TARJETA YA CREADOS, CON PLAN NUEVO
|
73
|
+
#### 4.2 PUT - Update Suscription Credit Card
|
74
|
+
#### 4.3 GET - Buscar una Suscripción
|
75
|
+
#### 4.4 GET - Buscar las suscripciones de un Cliente
|
76
|
+
#### 4.5 POST - Cancelar una Suscripción. Status CANCELLED
|
77
|
+
|
78
|
+
### CHARGES
|
79
|
+
#### 5.1 POST - Crear un cargo adicional
|
80
|
+
#### 5.2 PUT - Actualizar un cargo adicional
|
81
|
+
#### 5.3 GET - Buscar un Cargo Extra por ID
|
82
|
+
#### 5.4 GET - Buscar un Cargo Extra por Suscripcion
|
83
|
+
#### 5.5 POST - Borrar un cargo de la suscripción
|
82
84
|
|
83
85
|
## Development
|
84
86
|
|
data/lib/recurrente/version.rb
CHANGED
data/recurrente.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ["gabrielsarmiento@gmail.com"]
|
11
11
|
|
12
12
|
spec.summary = %q{Un wrapper para el API de pagos recurrentes de Payulatam}
|
13
|
-
spec.description = %q{Una
|
13
|
+
spec.description = %q{Una Gema de Ruby para consumir la API de payulatam.com api y manejar los pagos recurrentes}
|
14
14
|
spec.homepage = "https://github.com/gabosarmiento/recurrente.git"
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
@@ -23,6 +23,6 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.add_development_dependency "rake", "~> 10.0"
|
24
24
|
|
25
25
|
# Dependency
|
26
|
-
spec.add_dependency "httparty"
|
26
|
+
spec.add_dependency "httparty", "~> 0.13.7"
|
27
27
|
spec.add_dependency "json"
|
28
28
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: recurrente
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- gabosarmiento
|
@@ -42,16 +42,16 @@ dependencies:
|
|
42
42
|
name: httparty
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 0.13.7
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 0.13.7
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: json
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,8 +66,8 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
-
description: Una
|
70
|
-
pagos recurrentes
|
69
|
+
description: Una Gema de Ruby para consumir la API de payulatam.com api y manejar
|
70
|
+
los pagos recurrentes
|
71
71
|
email:
|
72
72
|
- gabrielsarmiento@gmail.com
|
73
73
|
executables: []
|