ding_sdk 0.10.10 → 0.10.37

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: 294d8840234a368b2b4c9cb32bacbfa92ceff37a15f4664634e0acd0a2edd9e0
4
- data.tar.gz: 4227d4c6ce5822e6c624b4d8eda23ef827160b85fde607884e8afedaccd81bd8
3
+ metadata.gz: 6955fa60c825f2cf7f8c62113ceb224e8017bf00f5aac4e41371d55ad085f93a
4
+ data.tar.gz: 2eebbc06264f0854ab747ea4dfd7b74db9a3be4c37ad0c6faa3a9e85c483b795
5
5
  SHA512:
6
- metadata.gz: 1bf107f9ef68e88c32ad8ae8c649156c8988352c0281073c5e0bc61a191eb9a05b6ccaeb3f6c4ea432dc0405d0a3ca3560ef927eceeea7f7b83ab48eafc9f3b5
7
- data.tar.gz: 219c20b2dd6f33db519cd8ae19a7297ec8d1401c5f69363e15b1d6a713dc576cedaeac99a415816ed6cfd626ba26d38d8eb27434bb27808e0d263e1795117f51
6
+ metadata.gz: cafc622653cf8c1b0902305c6b60963cde4c2ff9e7c287352e22d14d64ec24cf3d29b874b9d7af1c40c7bcef4c997bfc866e3e3456882d46e935fc9f839cc345
7
+ data.tar.gz: b0557934c3d9e23f05d5062087e3747f511bb15cec809ac0821e1d6453fb28782595a7d9a6b4774250785044b67c10fe593a19fc0e4da1dbb4dc234797e1387c
@@ -19,13 +19,14 @@ module DingSDK
19
19
  end
20
20
 
21
21
 
22
- sig { params(customer_uuid: ::String, phone_number: ::String).returns(::DingSDK::Operations::LookupResponse) }
23
- def lookup(customer_uuid, phone_number)
22
+ sig { params(customer_uuid: ::String, phone_number: ::String, type: T.nilable(T::Array[::DingSDK::Operations::Type])).returns(::DingSDK::Operations::LookupResponse) }
23
+ def lookup(customer_uuid, phone_number, type = nil)
24
24
  # lookup - Look up for phone number
25
25
  request = ::DingSDK::Operations::LookupRequest.new(
26
26
 
27
27
  customer_uuid: customer_uuid,
28
- phone_number: phone_number
28
+ phone_number: phone_number,
29
+ type: type
29
30
  )
30
31
  url, params = @sdk_configuration.get_server_details
31
32
  base_url = Utils.template_url(url, params)
@@ -36,11 +37,13 @@ module DingSDK
36
37
  request
37
38
  )
38
39
  headers = Utils.get_headers(request)
40
+ query_params = Utils.get_query_params(::DingSDK::Operations::LookupRequest, request)
39
41
  headers['Accept'] = 'application/json'
40
42
  headers['user-agent'] = @sdk_configuration.user_agent
41
43
 
42
44
  r = @sdk_configuration.client.get(url) do |req|
43
45
  req.headers = headers
46
+ req.params = query_params
44
47
  Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
45
48
  end
46
49
 
@@ -16,11 +16,14 @@ module DingSDK
16
16
 
17
17
  field :phone_number, ::String, { 'path_param': { 'field_name': 'phone_number', 'style': 'simple', 'explode': false } }
18
18
 
19
+ field :type, T.nilable(T::Array[::DingSDK::Operations::Type]), { 'query_param': { 'field_name': 'type', 'style': 'form', 'explode': true } }
19
20
 
20
- sig { params(customer_uuid: ::String, phone_number: ::String).void }
21
- def initialize(customer_uuid: nil, phone_number: nil)
21
+
22
+ sig { params(customer_uuid: ::String, phone_number: ::String, type: T.nilable(T::Array[::DingSDK::Operations::Type])).void }
23
+ def initialize(customer_uuid: nil, phone_number: nil, type: nil)
22
24
  @customer_uuid = customer_uuid
23
25
  @phone_number = phone_number
26
+ @type = type
24
27
  end
25
28
  end
26
29
  end
@@ -0,0 +1,17 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module DingSDK
8
+ module Operations
9
+
10
+
11
+ class Type < T::Enum
12
+ enums do
13
+ CNAM = new('cnam')
14
+ end
15
+ end
16
+ end
17
+ end
@@ -11,6 +11,7 @@ module DingSDK
11
11
  autoload :GetAuthenticationStatusRequest, 'ding_sdk/models/operations/getauthenticationstatus_request.rb'
12
12
  autoload :GetAuthenticationStatusResponse, 'ding_sdk/models/operations/getauthenticationstatus_response.rb'
13
13
  autoload :RetryResponse, 'ding_sdk/models/operations/retry_response.rb'
14
+ autoload :Type, 'ding_sdk/models/operations/type.rb'
14
15
  autoload :LookupRequest, 'ding_sdk/models/operations/lookup_request.rb'
15
16
  autoload :LookupResponse, 'ding_sdk/models/operations/lookup_response.rb'
16
17
  end
@@ -11,6 +11,8 @@ module DingSDK
11
11
  class LookupResponse < ::DingSDK::Utils::FieldAugmented
12
12
  extend T::Sig
13
13
 
14
+ # The CNAM (Caller ID Name) associated with the phone number. Contact us if you need to use this functionality. Once enabled, put `cnam` option to `type` query parameter.
15
+ field :caller_name, T.nilable(::String), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('caller_name') } }
14
16
  # The carrier of the phone number.
15
17
  field :carrier, T.nilable(::String), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('carrier') } }
16
18
  # The ISO 3166-1 alpha-2 country code of the phone number.
@@ -49,8 +51,9 @@ module DingSDK
49
51
  field :temporary_phone_number, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('temporary_phone_number') } }
50
52
 
51
53
 
52
- sig { params(carrier: T.nilable(::String), country_code: T.nilable(::String), line_type: T.nilable(::DingSDK::Shared::LineType), mcc: T.nilable(::String), mnc: T.nilable(::String), number_ported: T.nilable(T::Boolean), phone_number: T.nilable(::String), temporary_phone_number: T.nilable(T::Boolean)).void }
53
- def initialize(carrier: nil, country_code: nil, line_type: nil, mcc: nil, mnc: nil, number_ported: nil, phone_number: nil, temporary_phone_number: nil)
54
+ sig { params(caller_name: T.nilable(::String), carrier: T.nilable(::String), country_code: T.nilable(::String), line_type: T.nilable(::DingSDK::Shared::LineType), mcc: T.nilable(::String), mnc: T.nilable(::String), number_ported: T.nilable(T::Boolean), phone_number: T.nilable(::String), temporary_phone_number: T.nilable(T::Boolean)).void }
55
+ def initialize(caller_name: nil, carrier: nil, country_code: nil, line_type: nil, mcc: nil, mnc: nil, number_ported: nil, phone_number: nil, temporary_phone_number: nil)
56
+ @caller_name = caller_name
54
57
  @carrier = carrier
55
58
  @country_code = country_code
56
59
  @line_type = line_type
@@ -38,9 +38,9 @@ module DingSDK
38
38
  @security = security
39
39
  @language = 'ruby'
40
40
  @openapi_doc_version = '1.0.0'
41
- @sdk_version = '0.10.10'
42
- @gen_version = '2.474.4'
43
- @user_agent = 'speakeasy-sdk/ruby 0.10.10 2.474.4 1.0.0 ding_sdk'
41
+ @sdk_version = '0.10.37'
42
+ @gen_version = '2.484.0'
43
+ @user_agent = 'speakeasy-sdk/ruby 0.10.37 2.484.0 1.0.0 ding_sdk'
44
44
  end
45
45
 
46
46
  sig { returns([String, T::Hash[Symbol, String]]) }
@@ -593,7 +593,7 @@ module DingSDK
593
593
  file_fields = val.fields
594
594
 
595
595
  file_name = ''
596
- field_name = ''
596
+ field_name = field_metadata[:field_name]
597
597
  content = nil
598
598
 
599
599
  file_fields.each do |file_field|
@@ -603,11 +603,10 @@ module DingSDK
603
603
  if file_metadata[:content] == true
604
604
  content = val.send(file_field.name)
605
605
  else
606
- field_name = file_metadata.fetch(:field_name, file_field.name)
607
606
  file_name = val.send(file_field.name)
608
607
  end
609
608
  end
610
- raise StandardError, 'invalid multipart/form-data file' if field_name == '' || file_name == '' || content == nil?
609
+ raise StandardError, 'invalid multipart/form-data file' if file_name == '' || content == nil?
611
610
 
612
611
  form.append([field_name, [file_name, content]])
613
612
  elsif field_metadata[:json] == true
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ding_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.10
4
+ version: 0.10.37
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ding
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-12-07 00:00:00.000000000 Z
11
+ date: 2025-01-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -154,6 +154,7 @@ files:
154
154
  - lib/ding_sdk/models/operations/lookup_request.rb
155
155
  - lib/ding_sdk/models/operations/lookup_response.rb
156
156
  - lib/ding_sdk/models/operations/retry_response.rb
157
+ - lib/ding_sdk/models/operations/type.rb
157
158
  - lib/ding_sdk/models/shared.rb
158
159
  - lib/ding_sdk/models/shared/authenticationstatusresponse.rb
159
160
  - lib/ding_sdk/models/shared/authenticationstatusresponse_device_type.rb