@@ -20,6 +20,9 @@ class ProductDetailsResponse
2020 # 商品 ID
2121 attr_accessor :id
2222
23+ # 本番環境かどうか
24+ attr_accessor :livemode
25+
2326 # Checkout などで顧客に表示される商品名
2427 attr_accessor :name
2528
@@ -34,6 +37,12 @@ class ProductDetailsResponse
3437
3538 attr_accessor :url
3639
40+ # 作成日時 (UTC, ISO 8601 形式)
41+ attr_accessor :created_at
42+
43+ # 更新日時 (UTC, ISO 8601 形式)
44+ attr_accessor :updated_at
45+
3746 class EnumAttributeValidator
3847 attr_reader :datatype
3948 attr_reader :allowable_values
@@ -61,12 +70,15 @@ def self.attribute_map
6170 {
6271 :object => :object ,
6372 :id => :id ,
73+ :livemode => :livemode ,
6474 :name => :name ,
6575 :active => :active ,
6676 :default_price_id => :default_price_id ,
6777 :description => :description ,
6878 :unit_label => :unit_label ,
69- :url => :url
79+ :url => :url ,
80+ :created_at => :created_at ,
81+ :updated_at => :updated_at
7082 }
7183 end
7284
@@ -85,12 +97,15 @@ def self.openapi_types
8597 {
8698 :object => :'String' ,
8799 :id => :'String' ,
100+ :livemode => :'Boolean' ,
88101 :name => :'String' ,
89102 :active => :'Boolean' ,
90103 :default_price_id => :'String' ,
91104 :description => :'String' ,
92105 :unit_label => :'String' ,
93- :url => :'String'
106+ :url => :'String' ,
107+ :created_at => :'Time' ,
108+ :updated_at => :'Time'
94109 }
95110 end
96111
@@ -100,7 +115,7 @@ def self.openapi_nullable
100115 :default_price_id ,
101116 :description ,
102117 :unit_label ,
103- :url
118+ :url ,
104119 ] )
105120 end
106121
@@ -132,6 +147,12 @@ def initialize(attributes = {})
132147 self . id = nil
133148 end
134149
150+ if attributes . key? ( :livemode )
151+ self . livemode = attributes [ :livemode ]
152+ else
153+ self . livemode = nil
154+ end
155+
135156 if attributes . key? ( :name )
136157 self . name = attributes [ :name ]
137158 else
@@ -167,6 +188,18 @@ def initialize(attributes = {})
167188 else
168189 self . url = nil
169190 end
191+
192+ if attributes . key? ( :created_at )
193+ self . created_at = attributes [ :created_at ]
194+ else
195+ self . created_at = nil
196+ end
197+
198+ if attributes . key? ( :updated_at )
199+ self . updated_at = attributes [ :updated_at ]
200+ else
201+ self . updated_at = nil
202+ end
170203 end
171204
172205 # Custom attribute writer method checking allowed values (enum).
@@ -189,6 +222,16 @@ def id=(id)
189222 @id = id
190223 end
191224
225+ # Custom attribute writer method with validation
226+ # @param [Object] livemode Value to be assigned
227+ def livemode = ( livemode )
228+ if livemode . nil?
229+ raise ArgumentError , 'livemode cannot be nil'
230+ end
231+
232+ @livemode = livemode
233+ end
234+
192235 # Custom attribute writer method with validation
193236 # @param [Object] name Value to be assigned
194237 def name = ( name )
@@ -209,19 +252,42 @@ def active=(active)
209252 @active = active
210253 end
211254
255+ # Custom attribute writer method with validation
256+ # @param [Object] created_at Value to be assigned
257+ def created_at = ( created_at )
258+ if created_at . nil?
259+ raise ArgumentError , 'created_at cannot be nil'
260+ end
261+
262+ @created_at = created_at
263+ end
264+
265+ # Custom attribute writer method with validation
266+ # @param [Object] updated_at Value to be assigned
267+ def updated_at = ( updated_at )
268+ if updated_at . nil?
269+ raise ArgumentError , 'updated_at cannot be nil'
270+ end
271+
272+ @updated_at = updated_at
273+ end
274+
212275 # Checks equality by comparing each attribute.
213276 # @param [Object] Object to be compared
214277 def ==( o )
215278 return true if self . equal? ( o )
216279 self . class == o . class &&
217280 object == o . object &&
218281 id == o . id &&
282+ livemode == o . livemode &&
219283 name == o . name &&
220284 active == o . active &&
221285 default_price_id == o . default_price_id &&
222286 description == o . description &&
223287 unit_label == o . unit_label &&
224- url == o . url
288+ url == o . url &&
289+ created_at == o . created_at &&
290+ updated_at == o . updated_at
225291 end
226292
227293 # @see the `==` method
@@ -233,7 +299,7 @@ def eql?(o)
233299 # Calculates hash code according to all attributes.
234300 # @return [Integer] Hash code
235301 def hash
236- [ object , id , name , active , default_price_id , description , unit_label , url ] . hash
302+ [ object , id , livemode , name , active , default_price_id , description , unit_label , url , created_at , updated_at ] . hash
237303 end
238304
239305 # Builds the object from hash
0 commit comments