synapse_pay_rest 3.4.0 → 3.4.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92076f52668f8985f892f4d4c2e7747032331cce
|
4
|
+
data.tar.gz: 565e475469416d09ddb3ec13c054a31a5e248f73
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d02e29de00d3232f5826704528bddb6e00f8ed7abdca5bccf9fd8ef69a89aa659e5707fe376f656f2ac78e1b6ae766428d6987e3fdb5e4a9d5ba98d1561700b
|
7
|
+
data.tar.gz: f0962e044936a8e633a78bc2cfc307efe6a885ae42b1b75e2d490c8045546436655a5f82e7505f03e3e5ec924371c6db1dbfb7fb3c5443839d565bbaf7966cc8
|
@@ -25,7 +25,8 @@ module SynapsePayRest
|
|
25
25
|
:address_postal_code, :payee_address, :payee_name, :other, :network,
|
26
26
|
:document_id, :interchange_type, :card_hash, :is_international, :allow_foreign_transactions,
|
27
27
|
:atm_withdrawal_limit, :max_pin_attempts, :pos_withdrawal_limit, :security_alerts,
|
28
|
-
:card_type, :access_token, :portfolio_BTC, :portfolio_ETH, :card_style_id
|
28
|
+
:card_type, :access_token, :portfolio_BTC, :portfolio_ETH, :card_style_id,
|
29
|
+
:monthly_withdrawals_remaining
|
29
30
|
|
30
31
|
class << self
|
31
32
|
# Creates a new node in the API associated to the provided user and
|
@@ -80,29 +81,30 @@ module SynapsePayRest
|
|
80
81
|
# @note Not meant to be accessed directly on BaseNode but through children.
|
81
82
|
def from_response(user, response)
|
82
83
|
args = {
|
83
|
-
user:
|
84
|
-
type:
|
85
|
-
id:
|
86
|
-
is_active:
|
87
|
-
permission:
|
88
|
-
nickname:
|
89
|
-
name_on_account:
|
90
|
-
bank_long_name:
|
91
|
-
bank_name:
|
92
|
-
account_type:
|
93
|
-
account_class:
|
94
|
-
account_number:
|
95
|
-
routing_number:
|
96
|
-
address:
|
97
|
-
swift:
|
98
|
-
ifsc:
|
99
|
-
payee_name:
|
100
|
-
document_id:
|
101
|
-
network:
|
102
|
-
interchange_type:
|
103
|
-
card_type:
|
104
|
-
card_hash:
|
105
|
-
is_international:
|
84
|
+
user: user,
|
85
|
+
type: response['type'],
|
86
|
+
id: response['_id'],
|
87
|
+
is_active: response['is_active'],
|
88
|
+
permission: response['allowed'],
|
89
|
+
nickname: response['info']['nickname'],
|
90
|
+
name_on_account: response['info']['name_on_account'],
|
91
|
+
bank_long_name: response['info']['bank_long_name'],
|
92
|
+
bank_name: response['info']['bank_name'],
|
93
|
+
account_type: response['info']['type'],
|
94
|
+
account_class: response['info']['class'],
|
95
|
+
account_number: response['info']['account_num'],
|
96
|
+
routing_number: response['info']['routing_num'],
|
97
|
+
address: response['info']['address'],
|
98
|
+
swift: response['info']['swift'],
|
99
|
+
ifsc: response['info']['ifsc'],
|
100
|
+
payee_name: response['info']['payee_name'],
|
101
|
+
document_id: response['info']['document_id'],
|
102
|
+
network: response['info']['network'],
|
103
|
+
interchange_type: response['info']['type'],
|
104
|
+
card_type: response['info']['card_type'],
|
105
|
+
card_hash: response['info']['card_hash'],
|
106
|
+
is_international: response['info']['is_international'],
|
107
|
+
monthly_withdrawals_remaining: response['info']['monthly_withdrawals_remaining'],
|
106
108
|
user_info: nil,
|
107
109
|
transactions: nil,
|
108
110
|
timeline: nil,
|
@@ -53,7 +53,7 @@ module SynapsePayRest
|
|
53
53
|
#
|
54
54
|
# @raise [SynapsePayRest::Error] if wrong guess or HTTP error
|
55
55
|
#
|
56
|
-
# @return [SynapsePayRest::
|
56
|
+
# @return [SynapsePayRest::cardUsNode]
|
57
57
|
def reorder_card()
|
58
58
|
response = user.client.nodes.reorder_card(user_id: user.id, node_id: id)
|
59
59
|
self.class.from_response(user, response)
|
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.1
|
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-08-
|
12
|
+
date: 2018-08-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rest-client
|