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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3033b22b339631f852f135fcc40650102feab555bcb153072f64d73d03092eac
4
- data.tar.gz: c9f1c20a485a40539f8034bc8cc8ba160ee26538b7585ffe2ed3e9bd3c0137e6
3
+ metadata.gz: 6784812fdd19810c53a47401d9f05205e894172a663b6bd5bf47c0d99a08e755
4
+ data.tar.gz: 8ca18f71683357e40a91faf5166da6fbc6d793b5568484fcb5e01114b7b9d99d
5
5
  SHA512:
6
- metadata.gz: 4864de1d500e14be418849cfd3e9fb7d4ec3becbf2678972ff667afe587123893e12ad08e3030ad329f215ce70a9b902e31f422b87c883062c9c2f944d8a76d4
7
- data.tar.gz: fd3651c1410f7d67148b79a5219d068a7c9304f6e497fd1455337229f8c5d0867d294932c35f5a63768c633e4ac5abc8d3cb80f74a3be724403a1ac3d574b9ae
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
@@ -16,7 +16,7 @@ gem 'pry'
16
16
  gem 'byebug'
17
17
  gem 'awesome_print'
18
18
  gem 'http_logger'
19
- gem 'rubocop', '~> 1.9'
19
+ gem 'rubocop', '~> 1.28.2'
20
20
  gem 'rubocop-performance'
21
21
  gem 'rubocop-rake'
22
22
  gem 'rubocop-rspec'
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 **2.X.X** and branch [master](https://github.com/didww/didww-v3-ruby) are intended to use with DIDWW API 3 version [2021-04-19](https://doc.didww.com/api3/2021-04-19/index.html).
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
@@ -8,6 +8,7 @@ module DIDWW
8
8
  property :did_reservation_id, type: :string
9
9
  property :sku_id, type: :string
10
10
  property :billing_cycles_count, type: :string
11
+ property :nanpa_prefix_id, type: :string
11
12
 
12
13
  # returned
13
14
  property :setup_price, type: :decimal
@@ -3,6 +3,7 @@ module DIDWW
3
3
  module Resource
4
4
  class AvailableDid < Base
5
5
  has_one :did_group
6
+ has_one :nanpa_prefix
6
7
 
7
8
  property :number, type: :string
8
9
  # Type: String
@@ -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
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module DIDWW
3
- VERSION = '3.0.0'.freeze
3
+ VERSION = '4.0.0'.freeze
4
4
  end
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: 3.0.0
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-02-09 00:00:00.000000000 Z
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
- rubygems_version: 3.1.4
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