didww-v3 3.0.0 → 4.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 +4 -4
- data/CHANGELOG.md +9 -0
- data/Gemfile +1 -1
- data/README.md +5 -1
- data/lib/didww/client.rb +5 -0
- data/lib/didww/complex_objects/did_order_item.rb +1 -0
- data/lib/didww/resource/available_did.rb +1 -0
- data/lib/didww/resource/did_group.rb +0 -4
- data/lib/didww/resource/nanpa_prefix.rb +18 -0
- data/lib/didww/version.rb +1 -1
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6784812fdd19810c53a47401d9f05205e894172a663b6bd5bf47c0d99a08e755
|
4
|
+
data.tar.gz: 8ca18f71683357e40a91faf5166da6fbc6d793b5568484fcb5e01114b7b9d99d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e1e8cd571ccd0e2bab57590b3712c24d06bdf22eea640258c8993271f6c92e84956245eaf86ce8b1c9720afef7d1d5f0d963c4c7be9bb36a62e45c23121067d
|
7
|
+
data.tar.gz: 6ab5993b537757b5f9a5a7004436dac9ce257cb37322d6e5759609867702f2694db47ba861efd20d308cf54395521c535ed0d22086b2bff9fd309ff61b248b5d
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,15 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
5
5
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
6
6
|
|
7
|
+
## [Unreleased]
|
8
|
+
### Breaking Changes
|
9
|
+
- /v3/did_groups removed `local_prefix` attribute
|
10
|
+
### Added
|
11
|
+
- /v3/nanpa_prefixes endpoints being added.
|
12
|
+
|
13
|
+
### Changes
|
14
|
+
- /v3/orders endpoints being updated. Added nanpa_prefix_id attribute for DID order item.
|
15
|
+
|
7
16
|
## [3.0.0]
|
8
17
|
### Breaking Changes
|
9
18
|
- /v3/trunks being moved to /v3/voice_in_trunks.
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -12,7 +12,11 @@ The DIDWW API v3 is a fully compliant implementation of the [JSON API specificat
|
|
12
12
|
|
13
13
|
Read more https://doc.didww.com/api
|
14
14
|
|
15
|
-
Gem Versions **
|
15
|
+
Gem Versions **4.X.X** and branch [master](https://github.com/didww/didww-v3-ruby) are intended to use with DIDWW API 3 version [2022-05-10](https://doc.didww.com/api3/2022-05-10/index.html).
|
16
|
+
|
17
|
+
Gem Versions **3.X.X** and branch [release-3](https://github.com/didww/didww-v3-ruby/tree/release-3) are intended to use with DIDWW API 3 version [2021-12-15](https://doc.didww.com/api3/2021-12-15/index.html).
|
18
|
+
|
19
|
+
Gem Versions **2.X.X** and branch [release-2](https://github.com/didww/didww-v3-ruby/tree/release-2) are intended to use with DIDWW API 3 version [2021-04-19](https://doc.didww.com/api3/2021-04-19/index.html).
|
16
20
|
|
17
21
|
Gem Versions **1.X.X** and branch [release-1](https://github.com/didww/didww-v3-ruby/tree/release-1) are intended to use with DIDWW API 3 version [2017-09-18](https://doc.didww.com/api3/2017-09-18/index.html).
|
18
22
|
|
data/lib/didww/client.rb
CHANGED
@@ -154,6 +154,10 @@ module DIDWW
|
|
154
154
|
@@api_mode = arg
|
155
155
|
end
|
156
156
|
|
157
|
+
def nanpa_prefixes
|
158
|
+
Resource::NanpaPrefix
|
159
|
+
end
|
160
|
+
|
157
161
|
private
|
158
162
|
|
159
163
|
def http_verbose?
|
@@ -203,6 +207,7 @@ module DIDWW
|
|
203
207
|
require 'didww/resource/area'
|
204
208
|
require 'didww/resource/voice_out_trunk'
|
205
209
|
require 'didww/resource/voice_out_trunk_regenerate_credential'
|
210
|
+
require 'didww/resource/nanpa_prefix'
|
206
211
|
end
|
207
212
|
|
208
213
|
end
|
@@ -23,10 +23,6 @@ module DIDWW
|
|
23
23
|
# Type: String
|
24
24
|
# Description: DID Group prefix (city or area calling code)
|
25
25
|
|
26
|
-
property :local_prefix, type: :string
|
27
|
-
# Type: String
|
28
|
-
# Description: DID Group local prefix
|
29
|
-
|
30
26
|
property :features, type: :complex_object # TODO implement array of strings?
|
31
27
|
# Type: Array of strings
|
32
28
|
# Description: Features available for the DID Group, including voice, sms and t38. A DID Group may have multiple features.
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module DIDWW
|
4
|
+
module Resource
|
5
|
+
class NanpaPrefix < Base
|
6
|
+
has_one :country, class_name: Country
|
7
|
+
has_one :region, class_name: Region
|
8
|
+
|
9
|
+
property :npa, type: :string
|
10
|
+
# Type: String
|
11
|
+
# Description: NPA codes, or area codes consisting of three digits
|
12
|
+
property :nxx, type: :string
|
13
|
+
# Type: String
|
14
|
+
# Description: Refer to three-digit code
|
15
|
+
# that forms the second part of a 10-digit North American phone number
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
data/lib/didww/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: didww-v3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Korobeinikov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-07-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -146,6 +146,7 @@ files:
|
|
146
146
|
- lib/didww/resource/encrypted_file.rb
|
147
147
|
- lib/didww/resource/export.rb
|
148
148
|
- lib/didww/resource/identity.rb
|
149
|
+
- lib/didww/resource/nanpa_prefix.rb
|
149
150
|
- lib/didww/resource/order.rb
|
150
151
|
- lib/didww/resource/permanent_supporting_document.rb
|
151
152
|
- lib/didww/resource/pop.rb
|
@@ -186,7 +187,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
186
187
|
- !ruby/object:Gem::Version
|
187
188
|
version: '0'
|
188
189
|
requirements: []
|
189
|
-
|
190
|
+
rubyforge_project:
|
191
|
+
rubygems_version: 2.7.6.2
|
190
192
|
signing_key:
|
191
193
|
specification_version: 4
|
192
194
|
summary: Ruby client for DIDWW API v3
|