From b4c9da15f5563e5e945d4bbc557fa2f5085c9aef Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 11 Dec 2025 04:18:55 +0000 Subject: [PATCH 1/2] feat(api): api update --- .stats.yml | 4 ++-- .../models/brand_identify_from_transaction_params.rb | 10 +++++++++- lib/brand_dev/resources/brand.rb | 4 +++- .../models/brand_identify_from_transaction_params.rbi | 11 +++++++++++ rbi/brand_dev/resources/brand.rbi | 3 +++ .../models/brand_identify_from_transaction_params.rbs | 7 +++++++ sig/brand_dev/resources/brand.rbs | 1 + 7 files changed, 36 insertions(+), 4 deletions(-) diff --git a/.stats.yml b/.stats.yml index c86b8f0..8d4f11d 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 13 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-e685328e362a28f152bcadfd1ca49680a80bfb7a3834fd422f2e459507305405.yml -openapi_spec_hash: 475543f86e39715f76588de6ccf70beb +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-143086f8200f34e6ace805070e2a3ddccf15e30ed7ac3a7193f6a984f2413fa2.yml +openapi_spec_hash: f15bf2b836aee764c02a4fc185f13586 config_hash: 6aaf0fe6f8877c9c5d9af95597123cb4 diff --git a/lib/brand_dev/models/brand_identify_from_transaction_params.rb b/lib/brand_dev/models/brand_identify_from_transaction_params.rb index 5ce3e68..420dde2 100644 --- a/lib/brand_dev/models/brand_identify_from_transaction_params.rb +++ b/lib/brand_dev/models/brand_identify_from_transaction_params.rb @@ -47,6 +47,12 @@ class BrandIdentifyFromTransactionParams < BrandDev::Internal::Type::BaseModel # @return [String, nil] optional :mcc, String + # @!attribute phone + # Optional phone number from the transaction to help verify brand match. + # + # @return [Float, nil] + optional :phone, Float + # @!attribute timeout_ms # Optional timeout in milliseconds for the request. If the request takes longer # than this value, it will be aborted with a 408 status code. Maximum allowed @@ -55,7 +61,7 @@ class BrandIdentifyFromTransactionParams < BrandDev::Internal::Type::BaseModel # @return [Integer, nil] optional :timeout_ms, Integer - # @!method initialize(transaction_info:, city: nil, country_gl: nil, force_language: nil, max_speed: nil, mcc: nil, timeout_ms: nil, request_options: {}) + # @!method initialize(transaction_info:, city: nil, country_gl: nil, force_language: nil, max_speed: nil, mcc: nil, phone: nil, timeout_ms: nil, request_options: {}) # Some parameter documentations has been truncated, see # {BrandDev::Models::BrandIdentifyFromTransactionParams} for more details. # @@ -71,6 +77,8 @@ class BrandIdentifyFromTransactionParams < BrandDev::Internal::Type::BaseModel # # @param mcc [String] Optional Merchant Category Code (MCC) to help identify the business category/ind # + # @param phone [Float] Optional phone number from the transaction to help verify brand match. + # # @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th # # @param request_options [BrandDev::RequestOptions, Hash{Symbol=>Object}] diff --git a/lib/brand_dev/resources/brand.rb b/lib/brand_dev/resources/brand.rb index a0bd03c..6bc5e95 100644 --- a/lib/brand_dev/resources/brand.rb +++ b/lib/brand_dev/resources/brand.rb @@ -102,7 +102,7 @@ def fonts(params) # Endpoint specially designed for platforms that want to identify transaction data # by the transaction title. # - # @overload identify_from_transaction(transaction_info:, city: nil, country_gl: nil, force_language: nil, max_speed: nil, mcc: nil, timeout_ms: nil, request_options: {}) + # @overload identify_from_transaction(transaction_info:, city: nil, country_gl: nil, force_language: nil, max_speed: nil, mcc: nil, phone: nil, timeout_ms: nil, request_options: {}) # # @param transaction_info [String] Transaction information to identify the brand # @@ -116,6 +116,8 @@ def fonts(params) # # @param mcc [String] Optional Merchant Category Code (MCC) to help identify the business category/ind # + # @param phone [Float] Optional phone number from the transaction to help verify brand match. + # # @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th # # @param request_options [BrandDev::RequestOptions, Hash{Symbol=>Object}, nil] diff --git a/rbi/brand_dev/models/brand_identify_from_transaction_params.rbi b/rbi/brand_dev/models/brand_identify_from_transaction_params.rbi index 2250f0b..8bf4fa3 100644 --- a/rbi/brand_dev/models/brand_identify_from_transaction_params.rbi +++ b/rbi/brand_dev/models/brand_identify_from_transaction_params.rbi @@ -79,6 +79,13 @@ module BrandDev sig { params(mcc: String).void } attr_writer :mcc + # Optional phone number from the transaction to help verify brand match. + sig { returns(T.nilable(Float)) } + attr_reader :phone + + sig { params(phone: Float).void } + attr_writer :phone + # Optional timeout in milliseconds for the request. If the request takes longer # than this value, it will be aborted with a 408 status code. Maximum allowed # value is 300000ms (5 minutes). @@ -98,6 +105,7 @@ module BrandDev BrandDev::BrandIdentifyFromTransactionParams::ForceLanguage::OrSymbol, max_speed: T::Boolean, mcc: String, + phone: Float, timeout_ms: Integer, request_options: BrandDev::RequestOptions::OrHash ).returns(T.attached_class) @@ -119,6 +127,8 @@ module BrandDev # Optional Merchant Category Code (MCC) to help identify the business # category/industry. mcc: nil, + # Optional phone number from the transaction to help verify brand match. + phone: nil, # Optional timeout in milliseconds for the request. If the request takes longer # than this value, it will be aborted with a 408 status code. Maximum allowed # value is 300000ms (5 minutes). @@ -138,6 +148,7 @@ module BrandDev BrandDev::BrandIdentifyFromTransactionParams::ForceLanguage::OrSymbol, max_speed: T::Boolean, mcc: String, + phone: Float, timeout_ms: Integer, request_options: BrandDev::RequestOptions } diff --git a/rbi/brand_dev/resources/brand.rbi b/rbi/brand_dev/resources/brand.rbi index 2edcca9..416c381 100644 --- a/rbi/brand_dev/resources/brand.rbi +++ b/rbi/brand_dev/resources/brand.rbi @@ -95,6 +95,7 @@ module BrandDev BrandDev::BrandIdentifyFromTransactionParams::ForceLanguage::OrSymbol, max_speed: T::Boolean, mcc: String, + phone: Float, timeout_ms: Integer, request_options: BrandDev::RequestOptions::OrHash ).returns(BrandDev::Models::BrandIdentifyFromTransactionResponse) @@ -116,6 +117,8 @@ module BrandDev # Optional Merchant Category Code (MCC) to help identify the business # category/industry. mcc: nil, + # Optional phone number from the transaction to help verify brand match. + phone: nil, # Optional timeout in milliseconds for the request. If the request takes longer # than this value, it will be aborted with a 408 status code. Maximum allowed # value is 300000ms (5 minutes). diff --git a/sig/brand_dev/models/brand_identify_from_transaction_params.rbs b/sig/brand_dev/models/brand_identify_from_transaction_params.rbs index 941f55f..188d4cd 100644 --- a/sig/brand_dev/models/brand_identify_from_transaction_params.rbs +++ b/sig/brand_dev/models/brand_identify_from_transaction_params.rbs @@ -8,6 +8,7 @@ module BrandDev force_language: BrandDev::Models::BrandIdentifyFromTransactionParams::force_language, max_speed: bool, mcc: String, + phone: Float, timeout_ms: Integer } & BrandDev::Internal::Type::request_parameters @@ -42,6 +43,10 @@ module BrandDev def mcc=: (String) -> String + attr_reader phone: Float? + + def phone=: (Float) -> Float + attr_reader timeout_ms: Integer? def timeout_ms=: (Integer) -> Integer @@ -53,6 +58,7 @@ module BrandDev ?force_language: BrandDev::Models::BrandIdentifyFromTransactionParams::force_language, ?max_speed: bool, ?mcc: String, + ?phone: Float, ?timeout_ms: Integer, ?request_options: BrandDev::request_opts ) -> void @@ -64,6 +70,7 @@ module BrandDev force_language: BrandDev::Models::BrandIdentifyFromTransactionParams::force_language, max_speed: bool, mcc: String, + phone: Float, timeout_ms: Integer, request_options: BrandDev::RequestOptions } diff --git a/sig/brand_dev/resources/brand.rbs b/sig/brand_dev/resources/brand.rbs index 750305d..0094f91 100644 --- a/sig/brand_dev/resources/brand.rbs +++ b/sig/brand_dev/resources/brand.rbs @@ -30,6 +30,7 @@ module BrandDev ?force_language: BrandDev::Models::BrandIdentifyFromTransactionParams::force_language, ?max_speed: bool, ?mcc: String, + ?phone: Float, ?timeout_ms: Integer, ?request_options: BrandDev::request_opts ) -> BrandDev::Models::BrandIdentifyFromTransactionResponse From 5976cfe2faf1c10b5cc8097a3cd3312a0a461fe7 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 11 Dec 2025 04:19:13 +0000 Subject: [PATCH 2/2] release: 0.17.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ Gemfile.lock | 2 +- README.md | 2 +- lib/brand_dev/version.rb | 2 +- 5 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index b4e9013..6db19b9 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.16.0" + ".": "0.17.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 5a33344..23a52f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.17.0 (2025-12-11) + +Full Changelog: [v0.16.0...v0.17.0](https://github.com/brand-dot-dev/ruby-sdk/compare/v0.16.0...v0.17.0) + +### Features + +* **api:** api update ([b4c9da1](https://github.com/brand-dot-dev/ruby-sdk/commit/b4c9da15f5563e5e945d4bbc557fa2f5085c9aef)) + ## 0.16.0 (2025-12-01) Full Changelog: [v0.15.0...v0.16.0](https://github.com/brand-dot-dev/ruby-sdk/compare/v0.15.0...v0.16.0) diff --git a/Gemfile.lock b/Gemfile.lock index 60bf200..7964052 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - brand.dev (0.16.0) + brand.dev (0.17.0) connection_pool GEM diff --git a/README.md b/README.md index 1a610c8..76a95c1 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application ```ruby -gem "brand.dev", "~> 0.16.0" +gem "brand.dev", "~> 0.17.0" ``` diff --git a/lib/brand_dev/version.rb b/lib/brand_dev/version.rb index 4ddb837..db694d1 100644 --- a/lib/brand_dev/version.rb +++ b/lib/brand_dev/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module BrandDev - VERSION = "0.16.0" + VERSION = "0.17.0" end