telesignenterprise 2.6.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 57ee5e12a9f19c7c4bf9478354beb04505758c3c9deacd10e8b81ee389d7455b
4
- data.tar.gz: 98a0e2d7fd538d7302ba77324aac5253617a5c5a011a643db7002c116f394762
3
+ metadata.gz: 57a7ee869e419bfea9fd94a001db56d9dd61764857264e18628f3c3f0fea7bfb
4
+ data.tar.gz: a1df7143c43f8f11d0573f5830caa60660ae37c45f9341ad045ffceb16c0a040
5
5
  SHA512:
6
- metadata.gz: d38e399fd1afe6319d649645c3033e542b0c9e8e4936e7cb31d51cac13a7a6e73e7dcc5f426e03a5cb61e4d27c4774334056465f9659a6e4e17354e52c53733e
7
- data.tar.gz: 82f3cb88a0c888d58194ea26dbd9e9856944ec80ea9bb2664f9974bf62ec926f6041a6b389af5421d18475d9a9b0f1993f22e576e5a1c1fd30c92d0fc651c1ac
6
+ metadata.gz: b2ca1901cbb29959549cfae04448810b1d9b2f818e173fe5a7e298c90cedabc9f70038dec95bb26a239ad571b01bf5cd12a6c7af19234592a8ebb5817788c4c2
7
+ data.tar.gz: daa66ef1f5c272a1ceff1a5eb6c7e038c43a5f8b68d29702e17c83210048fe2704a3c8a576c0d60d59938b9a329646da22348977f4efb6c273e9bd277ba606d3
@@ -1,3 +1,3 @@
1
1
  module TelesignEnterprise
2
- SDK_VERSION = '2.6.0'
2
+ SDK_VERSION = '3.0.0'
3
3
  end
@@ -3,9 +3,9 @@ require_relative 'constants'
3
3
 
4
4
  PHONEID_STANDARD_RESOURCE = '/v1/phoneid/standard/%{phone_number}'
5
5
  PHONEID_SCORE_RESOURCE = '/v1/phoneid/score/%{phone_number}'
6
- PHONEID_CONTACT_RESOURCE = '/v1/phoneid/contact/%{phone_number}'
7
6
  PHONEID_LIVE_RESOURCE = '/v1/phoneid/live/%{phone_number}'
8
- PHONEID_NUMBER_DEACTIVATION_RESOURCE = '/v1/phoneid/number_deactivation/%{phone_number}'
7
+ PHONEID_GET_INFO_PATH = '/v1/phoneid/%{phone_number}'
8
+ PHONEID_GET_INFO_PATH_ALT = '/v1/phoneid'
9
9
 
10
10
  module TelesignEnterprise
11
11
 
@@ -49,23 +49,11 @@ module TelesignEnterprise
49
49
  #
50
50
  # See https://developer.telesign.com/docs/rest_api-phoneid-score for detailed API documentation.
51
51
  def score(phone_number, ucid, **params)
52
-
53
52
  self.get(PHONEID_SCORE_RESOURCE % {:phone_number => phone_number},
54
53
  ucid: ucid,
55
54
  **params)
56
55
  end
57
56
 
58
- # The PhoneID Contact API delivers contact information related to the subscriber's phone number to provide another
59
- # set of indicators for established risk engines.
60
- #
61
- # See https://developer.telesign.com/docs/rest_api-phoneid-contact for detailed API documentation.
62
- def contact(phone_number, ucid, **params)
63
-
64
- self.get(PHONEID_CONTACT_RESOURCE % {:phone_number => phone_number},
65
- ucid: ucid,
66
- **params)
67
- end
68
-
69
57
  # The PhoneID Live API delivers insights such as whether a phone is active or disconnected, a device is reachable
70
58
  # or unreachable and its roaming status.
71
59
  #
@@ -77,16 +65,25 @@ module TelesignEnterprise
77
65
  **params)
78
66
  end
79
67
 
80
- # The PhoneID Number Deactivation API determines whether a phone number has been deactivated and when, based on
81
- # carriers' phone number data and TeleSign's proprietary analysis.
68
+ # Enter a phone number with country code to receive detailed information about carrier, location, and other details.
69
+ # Phone number provided in URL path: POST /v1/phoneid/{phone_number}
82
70
  #
83
- # See https://developer.telesign.com/docs/rest_api-phoneid-number-deactivation for detailed API documentation.
84
- def number_deactivation(phone_number, ucid, **params)
85
-
86
- self.get(PHONEID_NUMBER_DEACTIVATION_RESOURCE % {:phone_number => phone_number},
87
- ucid: ucid,
88
- **params)
71
+ # See https://developer.telesign.com/enterprise/reference/submitphonenumberforidentity for detailed API documentation.
72
+ def phone_id_path(phone_number, **params)
73
+ params['consent'] ||= { 'method' => 1 }
74
+
75
+ self.post(PHONEID_GET_INFO_PATH % {:phone_number => phone_number}, **params)
89
76
  end
90
77
 
78
+ # Enter a phone number with country code to receive detailed information about carrier, location, and other details.
79
+ # Phone number provided in body: POST /v1/phoneid
80
+ #
81
+ # See https://developer.telesign.com/enterprise/reference/submitphonenumberforidentityalt for detailed API documentation.
82
+ def phone_id_body(phone_number, **params)
83
+ params['phone_number'] = phone_number
84
+ params['consent'] ||= { 'method' => 1 }
85
+
86
+ self.post(PHONEID_GET_INFO_PATH_ALT, **params)
87
+ end
91
88
  end
92
89
  end
metadata CHANGED
@@ -1,11 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: telesignenterprise
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.0
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - TeleSign
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
  date: 2017-05-02 00:00:00.000000000 Z
@@ -142,7 +142,7 @@ homepage: http://rubygems.org/gems/telesign
142
142
  licenses:
143
143
  - MIT
144
144
  metadata: {}
145
- post_install_message:
145
+ post_install_message:
146
146
  rdoc_options: []
147
147
  require_paths:
148
148
  - lib
@@ -157,8 +157,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
157
157
  - !ruby/object:Gem::Version
158
158
  version: '0'
159
159
  requirements: []
160
- rubygems_version: 3.4.10
161
- signing_key:
160
+ rubygems_version: 3.0.3.1
161
+ signing_key:
162
162
  specification_version: 4
163
163
  summary: TeleSign Enterprise Ruby SDK
164
164
  test_files: []