epayco-sdk-ruby 1.1.0 → 1.3.0
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/epayco/operations.rb +10 -0
- data/lib/epayco/resources.rb +1 -1
- metadata +3 -4
- data/lib/keylang_apify.json +0 -29
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a39abf09f32cf10d74bf93bfca02dfe96f7609932441647a30ed16da5fa6f8c
|
4
|
+
data.tar.gz: fcf74e3e284b6294f022db6ca415ff64ae73350481dc7a7c0a1db625afc25f48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 575b2b8b999725ce4a24b179575df9ff0dcc6eb9718f13da4981af84d40bf543441cd875d24cd4bd2b323764edd42c977e53b0a89f2070632d8c97af1c3f9db5
|
7
|
+
data.tar.gz: a31dba25c0ec1dce3cce5e6755bce3f87508472281dafdfbb07ceea22af5783e74d0686d2016cf6a0559716907d29146c4702a9fa421d2ee01844931589b1b12
|
data/lib/epayco/operations.rb
CHANGED
@@ -105,6 +105,16 @@ module Epayco
|
|
105
105
|
Epayco.request :post, url, extra, params, self.switch, cashdata, dt, apify = false
|
106
106
|
end
|
107
107
|
|
108
|
+
def getCustomer type, uid, extra=nil
|
109
|
+
if self.url == "customers"
|
110
|
+
url = "/payment/v1/customer/find?" + type + "=" + uid
|
111
|
+
puts url
|
112
|
+
cashdata = false
|
113
|
+
dt = true
|
114
|
+
end
|
115
|
+
Epayco.request :get, url, extra, {}, switch, cashdata, dt, apify = false
|
116
|
+
end
|
117
|
+
|
108
118
|
# Action retrieve all documents from user
|
109
119
|
def list params={}, extra=nil
|
110
120
|
cashdata=false
|
data/lib/epayco/resources.rb
CHANGED
@@ -24,7 +24,7 @@ module Epayco
|
|
24
24
|
end
|
25
25
|
|
26
26
|
class Customers < Resource
|
27
|
-
public_class_method :create, :get, :list, :update, :updatetoken, :delatetetoken, :addtoken
|
27
|
+
public_class_method :create, :get, :list, :update, :updatetoken, :delatetetoken, :addtoken, :getCustomer
|
28
28
|
end
|
29
29
|
|
30
30
|
class Plan < Resource
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: epayco-sdk-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Epayco development team
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2023-06-15 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rest-client
|
@@ -85,7 +85,6 @@ files:
|
|
85
85
|
- lib/epayco/operations.rb
|
86
86
|
- lib/epayco/resources.rb
|
87
87
|
- lib/keylang.json
|
88
|
-
- lib/keylang_apify.json
|
89
88
|
- tests/test_helper.rb
|
90
89
|
- tests/testing.rb
|
91
90
|
homepage: https://epayco.co/
|
@@ -107,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
107
106
|
- !ruby/object:Gem::Version
|
108
107
|
version: '0'
|
109
108
|
requirements: []
|
110
|
-
rubygems_version: 3.
|
109
|
+
rubygems_version: 3.2.3
|
111
110
|
signing_key:
|
112
111
|
specification_version: 4
|
113
112
|
summary: Ruby wrapper for Epayco API
|
data/lib/keylang_apify.json
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"cash": "cash",
|
3
|
-
"end_date": "expirationDate",
|
4
|
-
"ref_payco": "refPayco",
|
5
|
-
"id_session_token": "idSessionToken",
|
6
|
-
"otp": "otp",
|
7
|
-
"invoice": "invoice",
|
8
|
-
"description": "description",
|
9
|
-
"value": "value",
|
10
|
-
"tax": "tax",
|
11
|
-
"ico": "ico",
|
12
|
-
"tax_base": "taxBase",
|
13
|
-
"currency": "currency",
|
14
|
-
"doc_type": "docType",
|
15
|
-
"doc_number": "document",
|
16
|
-
"name": "name",
|
17
|
-
"last_name": "lastName",
|
18
|
-
"email": "email",
|
19
|
-
"ind_country": "indCountry",
|
20
|
-
"country": "country",
|
21
|
-
"city": "city",
|
22
|
-
"phone": "phone",
|
23
|
-
"address": "address",
|
24
|
-
"ip": "ip",
|
25
|
-
"test": "testMode",
|
26
|
-
"url_response": "urlResponse",
|
27
|
-
"url_confirmation": "urlConfirmation",
|
28
|
-
"method_confirmation": "methodConfirmation"
|
29
|
-
}
|