synapse_pay_rest 3.0.3 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +4 -5
- data/lib/synapse_pay_rest/models/user/user.rb +15 -0
- data/lib/synapse_pay_rest/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 19c8ca6c61fc818f8722a02cb8e9a56574bbd220
|
4
|
+
data.tar.gz: 54f12e4b6a9e5b323d53d64275b74179ff9ba5e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9988125d80de485a703efc9526a5089712fc63246b46b09b0dcc327241a562e303a7c6ee75d283e7305996b0e26d85f5ce3ab0f5a432c1125475f29456c3a00
|
7
|
+
data.tar.gz: 5bbaf9eabbae2f826a26a89a5102a70b456d6d20a60d6c990f9b344ea163003a6558c78ed9dab848ddf0f7f18c0c10af8171a1017d821e2d5fe58673a823f08d
|
data/Rakefile
CHANGED
@@ -1,11 +1,10 @@
|
|
1
|
-
require
|
2
|
-
require
|
1
|
+
require "bundler/gem_tasks"
|
2
|
+
require "rake/testtask"
|
3
3
|
|
4
4
|
Rake::TestTask.new(:test) do |t|
|
5
|
-
t.libs <<
|
6
|
-
t.libs <<
|
5
|
+
t.libs << "test"
|
6
|
+
t.libs << "lib"
|
7
7
|
t.test_files = FileList['test/**/*_test.rb']
|
8
|
-
t.ruby_opts += ['-W0']
|
9
8
|
end
|
10
9
|
|
11
10
|
task :default => :test
|
@@ -199,6 +199,7 @@ module SynapsePayRest
|
|
199
199
|
# @param remove_login [Hash]
|
200
200
|
# @param remove_phone_number [String]
|
201
201
|
# @param read_only [Boolean]
|
202
|
+
# @param remove_legal_name [String]
|
202
203
|
#
|
203
204
|
# @example login/remove_login argument (only email is required)
|
204
205
|
# {
|
@@ -314,6 +315,19 @@ module SynapsePayRest
|
|
314
315
|
update(remove_phone_number: phone_number)
|
315
316
|
end
|
316
317
|
|
318
|
+
# Removes a legal_name from the user
|
319
|
+
#
|
320
|
+
# @param legal_name [String]
|
321
|
+
#
|
322
|
+
# @raise [SynapsePayRest::Error]
|
323
|
+
#
|
324
|
+
# @return [SynapsePayRest::User] new instance corresponding to same API record
|
325
|
+
def remove_legal_name(legal_name)
|
326
|
+
raise ArgumentError, 'legal_name must be a String' unless legal_name.is_a? String
|
327
|
+
|
328
|
+
update(remove_legal_name: legal_name)
|
329
|
+
end
|
330
|
+
|
317
331
|
# Step 1 of fingerprint registration. Requests a new fingerprint be
|
318
332
|
# registered to the user.
|
319
333
|
#
|
@@ -602,6 +616,7 @@ module SynapsePayRest
|
|
602
616
|
payload['update']['legal_name'] = options[:legal_name] if options[:legal_name]
|
603
617
|
payload['update']['phone_number'] = options[:phone_number] if options[:phone_number]
|
604
618
|
payload['update']['remove_phone_number'] = options[:remove_phone_number] if options[:remove_phone_number]
|
619
|
+
payload['update']['remove_legal_name'] = options[:remove_legal_name] if options[:remove_legal_name]
|
605
620
|
payload
|
606
621
|
end
|
607
622
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: synapse_pay_rest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Broderick
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-05-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rest-client
|
@@ -202,7 +202,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
202
202
|
version: '0'
|
203
203
|
requirements: []
|
204
204
|
rubyforge_project:
|
205
|
-
rubygems_version: 2.
|
205
|
+
rubygems_version: 2.6.11
|
206
206
|
signing_key:
|
207
207
|
specification_version: 4
|
208
208
|
summary: SynapsePay v3 Rest Native API Library
|