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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 52d88f66ed3fc929b1081efa3f3b35348eb81f36
4
- data.tar.gz: bb931667e46fa8300333563726404b15e52354e1
3
+ metadata.gz: 19c8ca6c61fc818f8722a02cb8e9a56574bbd220
4
+ data.tar.gz: 54f12e4b6a9e5b323d53d64275b74179ff9ba5e3
5
5
  SHA512:
6
- metadata.gz: 5c1a641071ef97a98cf3b80c89524d6d1816c1df383839e70978e8b898a8432012586e95d732dc7c0a844194d1188f25d834c87b2a2589bcb1bd79fe5c53d392
7
- data.tar.gz: 8b96fe4410a7182625f3afef21e51f1b62a15e17a636b1ee566347e5757d170160025f9e5285387679f1fb4134c632ab5a0147f3f383a6c09acd18932ff7dc04
6
+ metadata.gz: b9988125d80de485a703efc9526a5089712fc63246b46b09b0dcc327241a562e303a7c6ee75d283e7305996b0e26d85f5ce3ab0f5a432c1125475f29456c3a00
7
+ data.tar.gz: 5bbaf9eabbae2f826a26a89a5102a70b456d6d20a60d6c990f9b344ea163003a6558c78ed9dab848ddf0f7f18c0c10af8171a1017d821e2d5fe58673a823f08d
data/Rakefile CHANGED
@@ -1,11 +1,10 @@
1
- require 'bundler/gem_tasks'
2
- require 'rake/testtask'
1
+ require "bundler/gem_tasks"
2
+ require "rake/testtask"
3
3
 
4
4
  Rake::TestTask.new(:test) do |t|
5
- t.libs << 'test'
6
- t.libs << 'lib'
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
 
@@ -1,4 +1,4 @@
1
1
  module SynapsePayRest
2
2
  # Gem version
3
- VERSION = '3.0.3'.freeze
3
+ VERSION = '3.1.0'.freeze
4
4
  end
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.3
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-03-15 00:00:00.000000000 Z
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.2.5
205
+ rubygems_version: 2.6.11
206
206
  signing_key:
207
207
  specification_version: 4
208
208
  summary: SynapsePay v3 Rest Native API Library