Skip to content

Commit b4c9da1

Browse files
feat(api): api update
1 parent cf677b7 commit b4c9da1

7 files changed

Lines changed: 36 additions & 4 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 13
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-e685328e362a28f152bcadfd1ca49680a80bfb7a3834fd422f2e459507305405.yml
3-
openapi_spec_hash: 475543f86e39715f76588de6ccf70beb
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-143086f8200f34e6ace805070e2a3ddccf15e30ed7ac3a7193f6a984f2413fa2.yml
3+
openapi_spec_hash: f15bf2b836aee764c02a4fc185f13586
44
config_hash: 6aaf0fe6f8877c9c5d9af95597123cb4

lib/brand_dev/models/brand_identify_from_transaction_params.rb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ class BrandIdentifyFromTransactionParams < BrandDev::Internal::Type::BaseModel
4747
# @return [String, nil]
4848
optional :mcc, String
4949

50+
# @!attribute phone
51+
# Optional phone number from the transaction to help verify brand match.
52+
#
53+
# @return [Float, nil]
54+
optional :phone, Float
55+
5056
# @!attribute timeout_ms
5157
# Optional timeout in milliseconds for the request. If the request takes longer
5258
# than this value, it will be aborted with a 408 status code. Maximum allowed
@@ -55,7 +61,7 @@ class BrandIdentifyFromTransactionParams < BrandDev::Internal::Type::BaseModel
5561
# @return [Integer, nil]
5662
optional :timeout_ms, Integer
5763

58-
# @!method initialize(transaction_info:, city: nil, country_gl: nil, force_language: nil, max_speed: nil, mcc: nil, timeout_ms: nil, request_options: {})
64+
# @!method initialize(transaction_info:, city: nil, country_gl: nil, force_language: nil, max_speed: nil, mcc: nil, phone: nil, timeout_ms: nil, request_options: {})
5965
# Some parameter documentations has been truncated, see
6066
# {BrandDev::Models::BrandIdentifyFromTransactionParams} for more details.
6167
#
@@ -71,6 +77,8 @@ class BrandIdentifyFromTransactionParams < BrandDev::Internal::Type::BaseModel
7177
#
7278
# @param mcc [String] Optional Merchant Category Code (MCC) to help identify the business category/ind
7379
#
80+
# @param phone [Float] Optional phone number from the transaction to help verify brand match.
81+
#
7482
# @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th
7583
#
7684
# @param request_options [BrandDev::RequestOptions, Hash{Symbol=>Object}]

lib/brand_dev/resources/brand.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def fonts(params)
102102
# Endpoint specially designed for platforms that want to identify transaction data
103103
# by the transaction title.
104104
#
105-
# @overload identify_from_transaction(transaction_info:, city: nil, country_gl: nil, force_language: nil, max_speed: nil, mcc: nil, timeout_ms: nil, request_options: {})
105+
# @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: {})
106106
#
107107
# @param transaction_info [String] Transaction information to identify the brand
108108
#
@@ -116,6 +116,8 @@ def fonts(params)
116116
#
117117
# @param mcc [String] Optional Merchant Category Code (MCC) to help identify the business category/ind
118118
#
119+
# @param phone [Float] Optional phone number from the transaction to help verify brand match.
120+
#
119121
# @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th
120122
#
121123
# @param request_options [BrandDev::RequestOptions, Hash{Symbol=>Object}, nil]

rbi/brand_dev/models/brand_identify_from_transaction_params.rbi

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,13 @@ module BrandDev
7979
sig { params(mcc: String).void }
8080
attr_writer :mcc
8181

82+
# Optional phone number from the transaction to help verify brand match.
83+
sig { returns(T.nilable(Float)) }
84+
attr_reader :phone
85+
86+
sig { params(phone: Float).void }
87+
attr_writer :phone
88+
8289
# Optional timeout in milliseconds for the request. If the request takes longer
8390
# than this value, it will be aborted with a 408 status code. Maximum allowed
8491
# value is 300000ms (5 minutes).
@@ -98,6 +105,7 @@ module BrandDev
98105
BrandDev::BrandIdentifyFromTransactionParams::ForceLanguage::OrSymbol,
99106
max_speed: T::Boolean,
100107
mcc: String,
108+
phone: Float,
101109
timeout_ms: Integer,
102110
request_options: BrandDev::RequestOptions::OrHash
103111
).returns(T.attached_class)
@@ -119,6 +127,8 @@ module BrandDev
119127
# Optional Merchant Category Code (MCC) to help identify the business
120128
# category/industry.
121129
mcc: nil,
130+
# Optional phone number from the transaction to help verify brand match.
131+
phone: nil,
122132
# Optional timeout in milliseconds for the request. If the request takes longer
123133
# than this value, it will be aborted with a 408 status code. Maximum allowed
124134
# value is 300000ms (5 minutes).
@@ -138,6 +148,7 @@ module BrandDev
138148
BrandDev::BrandIdentifyFromTransactionParams::ForceLanguage::OrSymbol,
139149
max_speed: T::Boolean,
140150
mcc: String,
151+
phone: Float,
141152
timeout_ms: Integer,
142153
request_options: BrandDev::RequestOptions
143154
}

rbi/brand_dev/resources/brand.rbi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ module BrandDev
9595
BrandDev::BrandIdentifyFromTransactionParams::ForceLanguage::OrSymbol,
9696
max_speed: T::Boolean,
9797
mcc: String,
98+
phone: Float,
9899
timeout_ms: Integer,
99100
request_options: BrandDev::RequestOptions::OrHash
100101
).returns(BrandDev::Models::BrandIdentifyFromTransactionResponse)
@@ -116,6 +117,8 @@ module BrandDev
116117
# Optional Merchant Category Code (MCC) to help identify the business
117118
# category/industry.
118119
mcc: nil,
120+
# Optional phone number from the transaction to help verify brand match.
121+
phone: nil,
119122
# Optional timeout in milliseconds for the request. If the request takes longer
120123
# than this value, it will be aborted with a 408 status code. Maximum allowed
121124
# value is 300000ms (5 minutes).

sig/brand_dev/models/brand_identify_from_transaction_params.rbs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ module BrandDev
88
force_language: BrandDev::Models::BrandIdentifyFromTransactionParams::force_language,
99
max_speed: bool,
1010
mcc: String,
11+
phone: Float,
1112
timeout_ms: Integer
1213
}
1314
& BrandDev::Internal::Type::request_parameters
@@ -42,6 +43,10 @@ module BrandDev
4243

4344
def mcc=: (String) -> String
4445

46+
attr_reader phone: Float?
47+
48+
def phone=: (Float) -> Float
49+
4550
attr_reader timeout_ms: Integer?
4651

4752
def timeout_ms=: (Integer) -> Integer
@@ -53,6 +58,7 @@ module BrandDev
5358
?force_language: BrandDev::Models::BrandIdentifyFromTransactionParams::force_language,
5459
?max_speed: bool,
5560
?mcc: String,
61+
?phone: Float,
5662
?timeout_ms: Integer,
5763
?request_options: BrandDev::request_opts
5864
) -> void
@@ -64,6 +70,7 @@ module BrandDev
6470
force_language: BrandDev::Models::BrandIdentifyFromTransactionParams::force_language,
6571
max_speed: bool,
6672
mcc: String,
73+
phone: Float,
6774
timeout_ms: Integer,
6875
request_options: BrandDev::RequestOptions
6976
}

sig/brand_dev/resources/brand.rbs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ module BrandDev
3030
?force_language: BrandDev::Models::BrandIdentifyFromTransactionParams::force_language,
3131
?max_speed: bool,
3232
?mcc: String,
33+
?phone: Float,
3334
?timeout_ms: Integer,
3435
?request_options: BrandDev::request_opts
3536
) -> BrandDev::Models::BrandIdentifyFromTransactionResponse

0 commit comments

Comments
 (0)