synapse_pay_rest 3.4.4 → 3.4.5

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
  SHA256:
3
- metadata.gz: 8d3ce3eea0a120bcb6e3621ff90d6a8244f028608b7b84f242919a349889db97
4
- data.tar.gz: 55725242d86c842b4df14ebf2dd123e47bf41cc9445652cfc4e9ad5166d1c86f
3
+ metadata.gz: 734facf992b9d76db0dbdc0335c158ed4382ceb22c78fa83f12d10fedebcc2c5
4
+ data.tar.gz: d77b3cd79d017309e6eb8dd1e674d43212d08a95177168fd6e7b15b52fe1762e
5
5
  SHA512:
6
- metadata.gz: 5ee70af94009f67035588125232ac138bb23656e517a54964d606174d338c6d12008dda292d6cc3ab05ce48e89e7cd326652111517f27603c8b005340d3d53a7
7
- data.tar.gz: f742f518328c0efcd5eb1f89d4a5963a61dc6821dcdb730be265d300f9bf1cd8f6992e2cfb42fd767ef33fd66210664ec80344824ba04eaea7aab17a17a72df5
6
+ metadata.gz: ba0e21997bf4dcef963061207aa0554f30df4b182d97e492a0768202c8995e0fae564186b1c089175bf34e275f616599b5157c3886f6643edac2cc9dfe106bc4
7
+ data.tar.gz: 0da4119d52693e7e832443facbdeb47865d0d772c69946334e6fff72827d09280437b342d059a6c869e8e01318653573bbc807cd1d677ed22d845675dfdf90f8
@@ -64,6 +64,7 @@ require 'synapse_pay_rest/models/node/interchange_us_node.rb'
64
64
  require 'synapse_pay_rest/models/node/card_us_node.rb'
65
65
  require 'synapse_pay_rest/models/node/subcard_us_node.rb'
66
66
  require 'synapse_pay_rest/models/node/crypto_us_node.rb'
67
+ require 'synapse_pay_rest/models/node/custody_us_node.rb'
67
68
 
68
69
  # iou
69
70
  require 'synapse_pay_rest/models/node/iou_node.rb'
@@ -0,0 +1,16 @@
1
+ module SynapsePayRest
2
+ # A custody node allowing any user to hold funds in custodial accont.
3
+ class CustodyUsNode < BaseNode
4
+ class << self
5
+ private
6
+
7
+ def payload_for_create(nickname:, **options)
8
+ args = {
9
+ type: 'CUSTODY-US',
10
+ nickname: nickname
11
+ }.merge(options)
12
+ super(args)
13
+ end
14
+ end
15
+ end
16
+ end
@@ -26,7 +26,8 @@ module SynapsePayRest
26
26
  'INTERCHANGE-US' => InterchangeUsNode,
27
27
  'CARD-US' => CardUsNode,
28
28
  'SUBCARD-US' => SubcardUsNode,
29
- 'CRYPTO-US' => CryptoUsNode
29
+ 'CRYPTO-US' => CryptoUsNode,
30
+ "CUSTODY-US" => CustodyUsNode
30
31
  }.freeze
31
32
 
32
33
  class << self
@@ -763,7 +763,7 @@ module SynapsePayRest
763
763
  SubcardUsNode.create(user: self, **options)
764
764
  end
765
765
 
766
- # Creates a BTC-US node.
766
+ # Creates a CRYPTO-US node.
767
767
  #
768
768
  # @param nickname [String] nickname for the node
769
769
  # @param supp_id [String] (optional)
@@ -771,11 +771,24 @@ module SynapsePayRest
771
771
  #
772
772
  # @raise [SynapsePayRest::Error]
773
773
  #
774
- # @return [SynapsePayRest::BtcUsNode]
774
+ # @return [SynapsePayRest::CryptoUsNode]
775
775
  def create_crypto_us_node(**options)
776
776
  CryptoUsNode.create(user: self, **options)
777
777
  end
778
778
 
779
+ # Creates a CUSTODY-US node.
780
+ #
781
+ # @param nickname [String] nickname for the node
782
+ # @param supp_id [String] (optional)
783
+ # @param gateway_restricted [Boolean] (optional)
784
+ #
785
+ # @raise [SynapsePayRest::Error]
786
+ #
787
+ # @return [SynapsePayRest::CustodyUsNode]
788
+ def create_custody_us_node(**options)
789
+ CustodyUsNode.create(user: self, **options)
790
+ end
791
+
779
792
 
780
793
  # Gets statement for user
781
794
  #
@@ -1,4 +1,4 @@
1
1
  module SynapsePayRest
2
2
  # Gem version
3
- VERSION = '3.4.4'.freeze
3
+ VERSION = '3.4.5'.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.4.4
4
+ version: 3.4.5
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: 2018-12-11 00:00:00.000000000 Z
12
+ date: 2019-01-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client
@@ -174,6 +174,7 @@ files:
174
174
  - lib/synapse_pay_rest/models/node/check_us_node.rb
175
175
  - lib/synapse_pay_rest/models/node/clearing_us_node.rb
176
176
  - lib/synapse_pay_rest/models/node/crypto_us_node.rb
177
+ - lib/synapse_pay_rest/models/node/custody_us_node.rb
177
178
  - lib/synapse_pay_rest/models/node/deposit_us_node.rb
178
179
  - lib/synapse_pay_rest/models/node/eft_ind_node.rb
179
180
  - lib/synapse_pay_rest/models/node/eft_np_node.rb
@@ -225,8 +226,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
225
226
  - !ruby/object:Gem::Version
226
227
  version: '0'
227
228
  requirements: []
228
- rubyforge_project:
229
- rubygems_version: 2.7.6
229
+ rubygems_version: 3.0.2
230
230
  signing_key:
231
231
  specification_version: 4
232
232
  summary: SynapsePay v3 Rest Native API Library