Class: Yoomoney::Models::Receipt::Item
Defined Under Namespace
Classes: Supplier
Instance Attribute Summary collapse
Instance Method Summary
collapse
-
#initialize(amount:, description:, quantity:, vat_code:, agent_type: nil, country_of_origin_code: nil, customs_declaration_number: nil, excise: nil, mark_code_info: nil, mark_mode: nil, mark_quantity: nil, measure: nil, payment_mode: nil, payment_subject: nil, payment_subject_industry_details: nil, planned_status: nil, product_code: nil, supplier: nil) ⇒ Object
constructor
-
#to_hash ⇒ {
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(amount:, description:, quantity:, vat_code:, agent_type: nil, country_of_origin_code: nil, customs_declaration_number: nil, excise: nil, mark_code_info: nil, mark_mode: nil, mark_quantity: nil, measure: nil, payment_mode: nil, payment_subject: nil, payment_subject_industry_details: nil, planned_status: nil, product_code: nil, supplier: nil) ⇒ Object
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
|
# File 'lib/yoomoney/models/receipt.rb', line 152
class Item < Yoomoney::Internal::Type::BaseModel
required :amount, -> { Yoomoney::MonetaryAmount }
required :description, String
required :quantity, Float
required :vat_code, Integer
optional :agent_type, enum: -> { Yoomoney::ReceiptItemAgentType }
optional :country_of_origin_code, String
optional :customs_declaration_number, String
optional :excise, String
optional :mark_code_info, -> { Yoomoney::MarkCodeInfo }
optional :mark_mode, String
optional :mark_quantity, -> { Yoomoney::MarkQuantity }
optional :measure, enum: -> { Yoomoney::ReceiptItemMeasure }
optional :payment_mode, enum: -> { Yoomoney::ReceiptItemPaymentMode }
optional :payment_subject, enum: -> { Yoomoney::ReceiptItemPaymentSubject }
optional :payment_subject_industry_details,
-> { Yoomoney::Internal::Type::ArrayOf[Yoomoney::IndustryDetails] }
optional :planned_status, Integer
optional :product_code, String
optional :supplier, -> { Yoomoney::Receipt::Item::Supplier }
class Supplier < Yoomoney::Models::ReceiptItemSupplier
optional :inn, String
end
end
|
Instance Attribute Details
#agent_type ⇒ Symbol, ...
176
|
# File 'lib/yoomoney/models/receipt.rb', line 176
optional :agent_type, enum: -> { Yoomoney::ReceiptItemAgentType }
|
156
|
# File 'lib/yoomoney/models/receipt.rb', line 156
required :amount, -> { Yoomoney::MonetaryAmount }
|
#country_of_origin_code ⇒ String?
181
|
# File 'lib/yoomoney/models/receipt.rb', line 181
optional :country_of_origin_code, String
|
#customs_declaration_number ⇒ String?
186
|
# File 'lib/yoomoney/models/receipt.rb', line 186
optional :customs_declaration_number, String
|
#description ⇒ String
161
|
# File 'lib/yoomoney/models/receipt.rb', line 161
required :description, String
|
#excise ⇒ String?
191
|
# File 'lib/yoomoney/models/receipt.rb', line 191
optional :excise, String
|
196
|
# File 'lib/yoomoney/models/receipt.rb', line 196
optional :mark_code_info, -> { Yoomoney::MarkCodeInfo }
|
#mark_mode ⇒ String?
201
|
# File 'lib/yoomoney/models/receipt.rb', line 201
optional :mark_mode, String
|
206
|
# File 'lib/yoomoney/models/receipt.rb', line 206
optional :mark_quantity, -> { Yoomoney::MarkQuantity }
|
#measure ⇒ Symbol, ...
211
|
# File 'lib/yoomoney/models/receipt.rb', line 211
optional :measure, enum: -> { Yoomoney::ReceiptItemMeasure }
|
#payment_mode ⇒ Symbol, ...
216
|
# File 'lib/yoomoney/models/receipt.rb', line 216
optional :payment_mode, enum: -> { Yoomoney::ReceiptItemPaymentMode }
|
#payment_subject ⇒ Symbol, ...
221
|
# File 'lib/yoomoney/models/receipt.rb', line 221
optional :payment_subject, enum: -> { Yoomoney::ReceiptItemPaymentSubject }
|
226
227
|
# File 'lib/yoomoney/models/receipt.rb', line 226
optional :payment_subject_industry_details,
-> { Yoomoney::Internal::Type::ArrayOf[Yoomoney::IndustryDetails] }
|
#planned_status ⇒ Integer?
232
|
# File 'lib/yoomoney/models/receipt.rb', line 232
optional :planned_status, Integer
|
#product_code ⇒ String?
237
|
# File 'lib/yoomoney/models/receipt.rb', line 237
optional :product_code, String
|
#quantity ⇒ Float
166
|
# File 'lib/yoomoney/models/receipt.rb', line 166
required :quantity, Float
|
242
|
# File 'lib/yoomoney/models/receipt.rb', line 242
optional :supplier, -> { Yoomoney::Receipt::Item::Supplier }
|
#vat_code ⇒ Integer
171
|
# File 'lib/yoomoney/models/receipt.rb', line 171
required :vat_code, Integer
|
Instance Method Details
#to_hash ⇒ {
258
|
# File 'sig/yoomoney/models/receipt.rbs', line 258
def to_hash: -> {
|