paysafe 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/paysafe/rest/client.rb +14 -0
- data/lib/paysafe/version.rb +1 -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: 6888e9622584de8cd23c374409c630ed7fc2b711
|
4
|
+
data.tar.gz: 4257d2d945eb795e1bca9e047f98703f7acf17d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c039ec33d7ccf2dbdc926c378f85a0c30ac7b27e0229d00488c966409004df4a00aae2dbef8a8821dfcb81e059e9bcbc64dcfc9823868d65e0f3a10cc4a686a
|
7
|
+
data.tar.gz: 6daafdb98e05ac2e198c19248f548c7b2761c5bf247399ae872f00da43398718840c4ad6df1bfef4b86289db8a8ced8c10917dbf3a7ba01a9ed182d1b9c2cfe3
|
data/lib/paysafe/rest/client.rb
CHANGED
@@ -82,6 +82,20 @@ module Paysafe
|
|
82
82
|
fail_or_return_response_body(response.code, response_body)
|
83
83
|
end
|
84
84
|
|
85
|
+
def update_profile(id:, merchantCustomerId:, locale:, **args)
|
86
|
+
data = {
|
87
|
+
merchantCustomerId: merchantCustomerId,
|
88
|
+
locale: locale,
|
89
|
+
firstName: args[:firstName],
|
90
|
+
lastName: args[:lastName],
|
91
|
+
email: args[:email]
|
92
|
+
}
|
93
|
+
|
94
|
+
response = put(path: "/customervault/v1/profiles/#{id}", data: data)
|
95
|
+
response_body = symbolize_keys!(response.parse)
|
96
|
+
fail_or_return_response_body(response.code, response_body)
|
97
|
+
end
|
98
|
+
|
85
99
|
def create_address(profile_id:, country:, zip:, **args)
|
86
100
|
data = {
|
87
101
|
nickName: args[:nickName],
|
data/lib/paysafe/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paysafe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Javier Julio
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02
|
11
|
+
date: 2016-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|