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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 734facf992b9d76db0dbdc0335c158ed4382ceb22c78fa83f12d10fedebcc2c5
|
4
|
+
data.tar.gz: d77b3cd79d017309e6eb8dd1e674d43212d08a95177168fd6e7b15b52fe1762e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba0e21997bf4dcef963061207aa0554f30df4b182d97e492a0768202c8995e0fae564186b1c089175bf34e275f616599b5157c3886f6643edac2cc9dfe106bc4
|
7
|
+
data.tar.gz: 0da4119d52693e7e832443facbdeb47865d0d772c69946334e6fff72827d09280437b342d059a6c869e8e01318653573bbc807cd1d677ed22d845675dfdf90f8
|
data/lib/synapse_pay_rest.rb
CHANGED
@@ -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
|
@@ -763,7 +763,7 @@ module SynapsePayRest
|
|
763
763
|
SubcardUsNode.create(user: self, **options)
|
764
764
|
end
|
765
765
|
|
766
|
-
# Creates a
|
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::
|
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
|
#
|
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
|
+
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:
|
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
|
-
|
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
|