ding_sdk 0.8.8 → 0.8.10

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
  SHA256:
3
- metadata.gz: 0b90c26b179d2e3fcf40acb3f36844609181d1649cea3ee72e6805a50177d213
4
- data.tar.gz: 6fe8df0393b4dfc230e6e7d1a08c9e44ce0ef91ab3f2f91c9a67d7e4b5901241
3
+ metadata.gz: 0f5a8703f66bacc09444eef8fc5e2a89cffbc65b73b049344d968eb2377353d0
4
+ data.tar.gz: 9468d1bbf4541810dc2eb2ed17818fd37935dc50fa274dc0cb62f1f9593aeae5
5
5
  SHA512:
6
- metadata.gz: 6dd2ca72b64d5388bb8cd5490bd2108d9e7858e4f8751119407e25382ebfabba99d87bcdfacf7b8974fa9178daab7f08aa0d3f8f7eb2405231105e85fe64803a
7
- data.tar.gz: 5e5832f38c398c9766df5d8e304d397990aa7b11d38c94d64f02929a0c382db0197fb5039d6a5f23abd2ee1a49161ebac1d0b6ff0dce133f4ea2066df438011a
6
+ metadata.gz: 206730e6400fbf9c23855660021ad0218f9daaa085de055cd46458909ff182ece8c9956e66a1d63d1dca0d95eea14a90eb8ea2012ff7448e0a3cf8653db0fd75
7
+ data.tar.gz: f60f161f5972652f8a51d248e4e0c0187d7f5ded2b99fbcef587b5ee5cb4bf12cdbdc9c5e0f9ed00a48fef047728dca4cd067f9ff7b26483b55aa9560820028b
@@ -7,26 +7,7 @@
7
7
  module DingSDK
8
8
  module Shared
9
9
 
10
- # Code - A machine-readable code that describes the error. Possible values are:
11
- # * `invalid_phone_number` - This is not a valid E.164 number.
12
- # * `internal_server_error` - An internal server error occurred.
13
- # * `bad_request` - The request was malformed.
14
- # * `account_invalid` - The provided customer UUID is invalid.
15
- # * `negative_balance` - You have a negative balance.
16
- # * `invalid_line` - Ding does not support this type of phone number.
17
- # * `unsupported_region` - Ding does not support this region yet.
18
- # * `invalid_auth_uuid` - The provided authentication UUID is invalid.
19
- # * `blocked_number` - The phone number is in the blocklist.
20
- # * `invalid_app_version` - The provided application version is invalid.
21
- # * `invalid_os_version` - The provided OS version is invalid.
22
- # * `invalid_device_model` - The provided device model is invalid.
23
- # * `invalid_device_id` - The provided device ID is invalid.
24
- # * `no_associated_auth_found` - The associated authentication was not found.
25
- # * `duplicated_feedback_status` - Duplicated feedback status has found.
26
- # * `invalid_feedback_status` - The provided feedback status is invalid.
27
- # * `invalid_template_id` - The provided template ID is invalid.
28
- # * `suspended_account` - Your account has been suspended.
29
- #
10
+ # Code - A machine-readable code that describes the error.
30
11
  class Code < T::Enum
31
12
  enums do
32
13
  INVALID_PHONE_NUMBER = new('invalid_phone_number')
@@ -21,6 +21,8 @@ module DingSDK
21
21
  field :app_version, T.nilable(::String), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('app_version') } }
22
22
  # A webhook URL to which delivery statuses will be sent.
23
23
  field :callback_url, T.nilable(::String), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('callback_url') } }
24
+ # A unique, user-defined identifier that will be included in webhook events
25
+ field :correlation_id, T.nilable(::String), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('correlation_id') } }
24
26
  # Unique identifier for the user's device. For Android, this corresponds to the `ANDROID_ID` and for iOS, this corresponds to the `identifierForVendor`.
25
27
  field :device_id, T.nilable(::String), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('device_id') } }
26
28
  # The model of the user's device.
@@ -37,13 +39,14 @@ module DingSDK
37
39
  field :template_id, T.nilable(::String), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('template_id') } }
38
40
 
39
41
 
40
- sig { params(customer_uuid: ::String, phone_number: ::String, app_realm: T.nilable(::String), app_version: T.nilable(::String), callback_url: T.nilable(::String), device_id: T.nilable(::String), device_model: T.nilable(::String), device_type: T.nilable(::DingSDK::Shared::DeviceType), ip: T.nilable(::String), is_returning_user: T.nilable(T::Boolean), os_version: T.nilable(::String), template_id: T.nilable(::String)).void }
41
- def initialize(customer_uuid: nil, phone_number: nil, app_realm: nil, app_version: nil, callback_url: nil, device_id: nil, device_model: nil, device_type: nil, ip: nil, is_returning_user: nil, os_version: nil, template_id: nil)
42
+ sig { params(customer_uuid: ::String, phone_number: ::String, app_realm: T.nilable(::String), app_version: T.nilable(::String), callback_url: T.nilable(::String), correlation_id: T.nilable(::String), device_id: T.nilable(::String), device_model: T.nilable(::String), device_type: T.nilable(::DingSDK::Shared::DeviceType), ip: T.nilable(::String), is_returning_user: T.nilable(T::Boolean), os_version: T.nilable(::String), template_id: T.nilable(::String)).void }
43
+ def initialize(customer_uuid: nil, phone_number: nil, app_realm: nil, app_version: nil, callback_url: nil, correlation_id: nil, device_id: nil, device_model: nil, device_type: nil, ip: nil, is_returning_user: nil, os_version: nil, template_id: nil)
42
44
  @customer_uuid = customer_uuid
43
45
  @phone_number = phone_number
44
46
  @app_realm = app_realm
45
47
  @app_version = app_version
46
48
  @callback_url = callback_url
49
+ @correlation_id = correlation_id
47
50
  @device_id = device_id
48
51
  @device_model = device_model
49
52
  @device_type = device_type
@@ -11,26 +11,7 @@ module DingSDK
11
11
  class ErrorResponse < ::DingSDK::Utils::FieldAugmented
12
12
  extend T::Sig
13
13
 
14
- # A machine-readable code that describes the error. Possible values are:
15
- # * `invalid_phone_number` - This is not a valid E.164 number.
16
- # * `internal_server_error` - An internal server error occurred.
17
- # * `bad_request` - The request was malformed.
18
- # * `account_invalid` - The provided customer UUID is invalid.
19
- # * `negative_balance` - You have a negative balance.
20
- # * `invalid_line` - Ding does not support this type of phone number.
21
- # * `unsupported_region` - Ding does not support this region yet.
22
- # * `invalid_auth_uuid` - The provided authentication UUID is invalid.
23
- # * `blocked_number` - The phone number is in the blocklist.
24
- # * `invalid_app_version` - The provided application version is invalid.
25
- # * `invalid_os_version` - The provided OS version is invalid.
26
- # * `invalid_device_model` - The provided device model is invalid.
27
- # * `invalid_device_id` - The provided device ID is invalid.
28
- # * `no_associated_auth_found` - The associated authentication was not found.
29
- # * `duplicated_feedback_status` - Duplicated feedback status has found.
30
- # * `invalid_feedback_status` - The provided feedback status is invalid.
31
- # * `invalid_template_id` - The provided template ID is invalid.
32
- # * `suspended_account` - Your account has been suspended.
33
- #
14
+ # A machine-readable code that describes the error.
34
15
  field :code, T.nilable(::DingSDK::Shared::Code), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('code'), 'decoder': Utils.enum_from_string(::DingSDK::Shared::Code, true) } }
35
16
  # A link to the documentation that describes the error.
36
17
  field :doc_url, T.nilable(::String), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('doc_url') } }
@@ -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.8.8'
42
- @gen_version = '2.326.0'
43
- @user_agent = 'speakeasy-sdk/ruby 0.8.8 2.326.0 1.0.0 ding_sdk'
41
+ @sdk_version = '0.8.10'
42
+ @gen_version = '2.338.1'
43
+ @user_agent = 'speakeasy-sdk/ruby 0.8.10 2.338.1 1.0.0 ding_sdk'
44
44
  end
45
45
 
46
46
  sig { returns([String, T::Hash[Symbol, String]]) }
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.8.8
4
+ version: 0.8.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ding
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-07 00:00:00.000000000 Z
11
+ date: 2024-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday