epayco-sdk-ruby 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- 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: 6ade558642293a5ae50ad74c685b681269eed44300ee040b71c0600a8c66df43
|
4
|
+
data.tar.gz: 3515be3ed497ae102ce5bfcad02eb6c0dc6236f0b85e9b7537c19827be6c2528
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a8353030d0c51a5a92700226a67b4a8ad8731b6357794d2362f7942adb822e3fe7bcd514eefa9194824d1b14d8cea2f9462e57a76c140f4e69f47637a234a94
|
7
|
+
data.tar.gz: c66306e01f834c4891d2a4a6c4ac8d6eff352ea7579dffeafae9009f80e5a56a4946ea0131d82c532b16bd34f9a75cb24dbabf8df10e7e2c90fc80d12b79d436
|
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.2.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-03-22 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
|
-
}
|