didit-sdk 2.27.0 → 2.28.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: 0c1a314fb5fcba211b2f36af456a5f50e49e7de4ff2284d47986393fccaab730
4
- data.tar.gz: 385067f5e9f0024c2593a6c41375ec682aea36dde381f7938402c94c04bccb55
3
+ metadata.gz: c45fb473dde720322a42e5f1ef3ca1f72804842cb0650fdb3d058a2409891528
4
+ data.tar.gz: 5e52a7edc1acc045b655b227c276f7d06f99d5a125f26a462b22adf38ed18874
5
5
  SHA512:
6
- metadata.gz: 9d295ab730711a598bdd1bebb7a9c5c41704235dd8300219410f7fa512bfbe87bb1c131c3fdde0053c3fb8ae857ffc136650cc4b54709071a726d834981d52bb
7
- data.tar.gz: 8851af3a6ee47fc6d2fe854e1bb214a7488b69f862ef72c98194fdf4168697fc91c13711dee30382f14846a99d22dd46789cbc2f1f53c6c31aad8628064b95a6
6
+ metadata.gz: 46a40f8bf336d0bd9549a201ef67d89ce34e0208784abfe4cc9475f0f49b0a77cabfee06a90d43b7754fb95574658bb39416e3995282c82a603be735a4732d8f
7
+ data.tar.gz: 1ed7059fbeb0b6eeb4a3d3550fa258da79423ee229f6dafecf291b52dcb1ccb8dd40342ec14d9e25777a4659e7337ecbea595a591855cd73c92960e996ab04f3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.28.0](https://github.com/didit-protocol/sdk-ruby/compare/v2.27.0...v2.28.0) (2026-11-21)
4
+
5
+
6
+ ### Features
7
+
8
+ * **spec:** sync API spec 2026-11-21 ([e6208b6](https://github.com/didit-protocol/sdk-ruby/commit/e6208b6bfbceaed761e316df59afcbcc14248ab3))
9
+
3
10
  ## [2.27.0](https://github.com/didit-protocol/sdk-ruby/compare/v2.26.0...v2.27.0) (2026-11-21)
4
11
 
5
12
 
@@ -36,6 +36,41 @@ module Didit
36
36
  request_options: request_options
37
37
  )
38
38
  end
39
+
40
+ # Get the price book (public, unauthenticated)
41
+ #
42
+ # Returns Didit's public list prices: every plan with its monthly and yearly price and its discount, the white
43
+ # label price, Didit's fee on each Messages channel, and every flat usage price. Use it to quote Didit's prices
44
+ # in your own product or to check a price before you build a workflow.
45
+ #
46
+ # Public: send no auth header. The response contains no organization data and is the same for every caller. It
47
+ # carries an `ETag`, so send `If-None-Match` to get a `304 Not Modified` when nothing changed.
48
+ #
49
+ # **Messages fees.** An SMS costs the carrier's price per segment plus Didit's fee per segment
50
+ # (`message_fee_usd_by_channel.sms`, also `messages_fee_usd`). A WhatsApp message sent from Didit's number costs
51
+ # WhatsApp's rate plus Didit's own WhatsApp fee (`message_fee_usd_by_channel.whatsapp`); sent from your own
52
+ # WhatsApp Business account, WhatsApp bills you directly and Didit charges only its fee. The carrier's and
53
+ # WhatsApp's parts are passed on at cost.
54
+ #
55
+ # These are list prices before your plan discount, which applies to Didit's fee only on carrier-priced items and
56
+ # to the whole price everywhere else. A negotiated or contract price replaces the list price for your
57
+ # organization. Per-item prices are on their own feeds, such as [phone verification
58
+ # prices](/getting-started/phone-verification-pricing) and [bank verification
59
+ # prices](/getting-started/bank-verification-pricing).
60
+ #
61
+ # +GET /v3/organization/price-book/+
62
+ #
63
+ # @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
64
+ # @return [Didit::Types::PublicPriceBook]
65
+ def price_book(request_options: nil)
66
+ @client.request(
67
+ :get,
68
+ "/v3/organization/price-book/",
69
+ auth: :none,
70
+ response: Types::PublicPriceBook,
71
+ request_options: request_options
72
+ )
73
+ end
39
74
  end
40
75
  end
41
76
  end
@@ -2820,6 +2820,23 @@ module Didit
2820
2820
  VALUES = [SUCCESS, RETRY, BLOCKED].freeze
2821
2821
  end
2822
2822
 
2823
+ # Known values of an open enum: the API may send others.
2824
+ module PublicPriceBookCurrency
2825
+ USD = "USD"
2826
+
2827
+ VALUES = [USD].freeze
2828
+ end
2829
+
2830
+ # The plan.
2831
+ module PublicPriceBookPlanKey
2832
+ FREE = "free"
2833
+ GROWTH = "growth"
2834
+ SCALE = "scale"
2835
+ ENTERPRISE = "enterprise"
2836
+
2837
+ VALUES = [FREE, GROWTH, SCALE, ENTERPRISE].freeze
2838
+ end
2839
+
2823
2840
  # Known values of an open enum: the API may send others.
2824
2841
  module QuestionnaireDetailStatus
2825
2842
  DRAFT = "draft"
@@ -10435,6 +10452,38 @@ module Didit
10435
10452
  field :metadata, "metadata", :any
10436
10453
  end
10437
10454
 
10455
+ class PublicPriceBook < Didit::Model
10456
+ field :currency, "currency", :string
10457
+ field :plans, "plans", [:array, "PublicPriceBookPlan"]
10458
+ field :white_label_usd, "white_label_usd", :string
10459
+ field :messages_fee_usd, "messages_fee_usd", :string
10460
+ field :message_fee_usd_by_channel, "message_fee_usd_by_channel", "PublicPriceBookMessageFees"
10461
+ field :lines, "lines", [:array, "PublicPriceBookLine"]
10462
+ end
10463
+
10464
+ class PublicPriceBookLine < Didit::Model
10465
+ field :key, "key", :string
10466
+ field :product, "product", :string
10467
+ field :feature, "feature", :string
10468
+ field :unit, "unit", :string
10469
+ field :list_price_usd, "list_price_usd", :string
10470
+ end
10471
+
10472
+ # Didit's fee on each carrier-priced Messages channel, excluding the carrier's or WhatsApp's price, which is
10473
+ # passed on at cost. Null where the fee is not published.
10474
+ class PublicPriceBookMessageFees < Didit::Model
10475
+ field :sms, "sms", :string
10476
+ field :whatsapp, "whatsapp", :string
10477
+ end
10478
+
10479
+ class PublicPriceBookPlan < Didit::Model
10480
+ field :key, "key", :string
10481
+ field :price_usd_month, "price_usd_month", :string
10482
+ field :price_usd_year, "price_usd_year", :string
10483
+ field :discount_percent, "discount_percent", :integer
10484
+ field :transactions_included_per_month, "transactions_included_per_month", :integer
10485
+ end
10486
+
10438
10487
  # Full questionnaire detail returned from GET, POST (create) and PATCH (update) endpoints.
10439
10488
  class QuestionnaireDetail < Didit::Model
10440
10489
  field :questionnaire_id, "questionnaire_id", :string
data/lib/didit/types.rb CHANGED
@@ -994,6 +994,12 @@ module Didit
994
994
  autoload :ProofOfAddressVerifyResponsePoaWarnings, "didit/types/proof_of_address"
995
995
  autoload :ProofOfAddressVerifyResponsePoaWarningsFeature, "didit/types/proof_of_address"
996
996
  autoload :ProofOfAddressVerifyResponsePoaWarningsLogType, "didit/types/proof_of_address"
997
+ autoload :PublicPriceBook, "didit/types/components"
998
+ autoload :PublicPriceBookCurrency, "didit/types/components"
999
+ autoload :PublicPriceBookLine, "didit/types/components"
1000
+ autoload :PublicPriceBookMessageFees, "didit/types/components"
1001
+ autoload :PublicPriceBookPlan, "didit/types/components"
1002
+ autoload :PublicPriceBookPlanKey, "didit/types/components"
997
1003
  autoload :QuestionnaireDetail, "didit/types/components"
998
1004
  autoload :QuestionnaireDetailStatus, "didit/types/components"
999
1005
  autoload :QuestionnaireListItem, "didit/types/components"
data/lib/didit/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Didit
4
- VERSION = "2.27.0" # x-release-please-version
4
+ VERSION = "2.28.0" # x-release-please-version
5
5
  end
@@ -4,6 +4,7 @@ module Didit
4
4
  module Resources
5
5
  class Pricing < Didit::Resource
6
6
  def bank_verification: (?request_options: Didit::request_options?) -> Didit::Types::BankVerificationPricing
7
+ def price_book: (?request_options: Didit::request_options?) -> Didit::Types::PublicPriceBook
7
8
  end
8
9
  end
9
10
  end
@@ -2344,6 +2344,21 @@ module Didit
2344
2344
  VALUES: Array[String]
2345
2345
  end
2346
2346
 
2347
+ module PublicPriceBookCurrency
2348
+ USD: String
2349
+
2350
+ VALUES: Array[String]
2351
+ end
2352
+
2353
+ module PublicPriceBookPlanKey
2354
+ FREE: String
2355
+ GROWTH: String
2356
+ SCALE: String
2357
+ ENTERPRISE: String
2358
+
2359
+ VALUES: Array[String]
2360
+ end
2361
+
2347
2362
  module QuestionnaireDetailStatus
2348
2363
  DRAFT: String
2349
2364
  PUBLISHED: String
@@ -9084,6 +9099,36 @@ module Didit
9084
9099
  def metadata: () -> Hash[String, untyped]?
9085
9100
  end
9086
9101
 
9102
+ class PublicPriceBook < Didit::Model
9103
+ def currency: () -> String
9104
+ def plans: () -> Array[Didit::Types::PublicPriceBookPlan]
9105
+ def white_label_usd: () -> String?
9106
+ def messages_fee_usd: () -> String?
9107
+ def message_fee_usd_by_channel: () -> Didit::Types::PublicPriceBookMessageFees
9108
+ def lines: () -> Array[Didit::Types::PublicPriceBookLine]
9109
+ end
9110
+
9111
+ class PublicPriceBookLine < Didit::Model
9112
+ def key: () -> String
9113
+ def product: () -> String
9114
+ def feature: () -> String
9115
+ def unit: () -> String
9116
+ def list_price_usd: () -> String
9117
+ end
9118
+
9119
+ class PublicPriceBookMessageFees < Didit::Model
9120
+ def sms: () -> String?
9121
+ def whatsapp: () -> String?
9122
+ end
9123
+
9124
+ class PublicPriceBookPlan < Didit::Model
9125
+ def key: () -> String
9126
+ def price_usd_month: () -> String?
9127
+ def price_usd_year: () -> String?
9128
+ def discount_percent: () -> Integer?
9129
+ def transactions_included_per_month: () -> Integer?
9130
+ end
9131
+
9087
9132
  class QuestionnaireDetail < Didit::Model
9088
9133
  def questionnaire_id: () -> String?
9089
9134
  def title: () -> String?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: didit-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.27.0
4
+ version: 2.28.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Didit