Class: Yoomoney::Models::ReceiptCreateParams::Item
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Yoomoney::Models::ReceiptCreateParams::Item
- Defined in:
- lib/yoomoney/models/receipt_create_params.rb
Defined Under Namespace
Classes: Supplier
Instance Attribute Summary collapse
-
#additional_payment_subject_props ⇒ String?
Дополнительный реквизит предмета расчета.
- #agent_type ⇒ Symbol, ...
-
#amount ⇒ Yoomoney::Models::MonetaryAmount
Сумма.
- #country_of_origin_code ⇒ String?
- #customs_declaration_number ⇒ String?
-
#description ⇒ String
Название товара.
- #excise ⇒ String?
- #mark_code_info ⇒ Yoomoney::Models::MarkCodeInfo?
- #mark_mode ⇒ String?
- #mark_quantity ⇒ Yoomoney::Models::MarkQuantity?
- #measure ⇒ Symbol, ...
- #payment_mode ⇒ Symbol, ...
- #payment_subject ⇒ Symbol, ...
- #payment_subject_industry_details ⇒ Array<Yoomoney::Models::IndustryDetails>?
- #planned_status ⇒ Integer?
- #product_code ⇒ String?
-
#quantity ⇒ Float
Количество.
- #supplier ⇒ Yoomoney::Models::ReceiptCreateParams::Item::Supplier?
-
#vat_code ⇒ Integer
Ставка НДС.
Instance Method Summary collapse
Methods inherited from Internal::Type::BaseModel
==, #==, #[], 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
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(amount:, description:, quantity:, vat_code:, additional_payment_subject_props: nil, 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
132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 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 275 276 277 278 279 280 281 282 283 |
# File 'lib/yoomoney/models/receipt_create_params.rb', line 132 class Item < Yoomoney::Internal::Type::BaseModel # @!attribute amount # Сумма. # # @return [Yoomoney::Models::MonetaryAmount] required :amount, -> { Yoomoney::MonetaryAmount } # @!attribute description # Название товара. # # @return [String] required :description, String # @!attribute quantity # Количество. # # @return [Float] required :quantity, Float # @!attribute vat_code # Ставка НДС. # # @return [Integer] required :vat_code, Integer # @!attribute additional_payment_subject_props # Дополнительный реквизит предмета расчета. # # @return [String, nil] optional :additional_payment_subject_props, String # @!attribute agent_type # # @return [Symbol, Yoomoney::Models::ReceiptItemAgentType, nil] optional :agent_type, enum: -> { Yoomoney::ReceiptItemAgentType } # @!attribute country_of_origin_code # # @return [String, nil] optional :country_of_origin_code, String # @!attribute customs_declaration_number # # @return [String, nil] optional :customs_declaration_number, String # @!attribute excise # # @return [String, nil] optional :excise, String # @!attribute mark_code_info # # @return [Yoomoney::Models::MarkCodeInfo, nil] optional :mark_code_info, -> { Yoomoney::MarkCodeInfo } # @!attribute mark_mode # # @return [String, nil] optional :mark_mode, String # @!attribute mark_quantity # # @return [Yoomoney::Models::MarkQuantity, nil] optional :mark_quantity, -> { Yoomoney::MarkQuantity } # @!attribute measure # # @return [Symbol, Yoomoney::Models::ReceiptItemMeasure, nil] optional :measure, enum: -> { Yoomoney::ReceiptItemMeasure } # @!attribute payment_mode # # @return [Symbol, Yoomoney::Models::ReceiptItemPaymentMode, nil] optional :payment_mode, enum: -> { Yoomoney::ReceiptItemPaymentMode } # @!attribute payment_subject # # @return [Symbol, Yoomoney::Models::ReceiptItemPaymentSubject, nil] optional :payment_subject, enum: -> { Yoomoney::ReceiptItemPaymentSubject } # @!attribute payment_subject_industry_details # # @return [Array<Yoomoney::Models::IndustryDetails>, nil] optional :payment_subject_industry_details, -> { Yoomoney::Internal::Type::ArrayOf[Yoomoney::IndustryDetails] } # @!attribute planned_status # # @return [Integer, nil] optional :planned_status, Integer # @!attribute product_code # # @return [String, nil] optional :product_code, String # @!attribute supplier # # @return [Yoomoney::Models::ReceiptCreateParams::Item::Supplier, nil] optional :supplier, -> { Yoomoney::ReceiptCreateParams::Item::Supplier } # @!method initialize(amount:, description:, quantity:, vat_code:, additional_payment_subject_props: nil, 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) # @param amount [Yoomoney::Models::MonetaryAmount] Сумма. # # @param description [String] Название товара. # # @param quantity [Float] Количество. # # @param vat_code [Integer] Ставка НДС. # # @param additional_payment_subject_props [String] Дополнительный реквизит предмета расчета. # # @param agent_type [Symbol, Yoomoney::Models::ReceiptItemAgentType] # # @param country_of_origin_code [String] # # @param customs_declaration_number [String] # # @param excise [String] # # @param mark_code_info [Yoomoney::Models::MarkCodeInfo] # # @param mark_mode [String] # # @param mark_quantity [Yoomoney::Models::MarkQuantity] # # @param measure [Symbol, Yoomoney::Models::ReceiptItemMeasure] # # @param payment_mode [Symbol, Yoomoney::Models::ReceiptItemPaymentMode] # # @param payment_subject [Symbol, Yoomoney::Models::ReceiptItemPaymentSubject] # # @param payment_subject_industry_details [Array<Yoomoney::Models::IndustryDetails>] # # @param planned_status [Integer] # # @param product_code [String] # # @param supplier [Yoomoney::Models::ReceiptCreateParams::Item::Supplier] # @see Yoomoney::Models::ReceiptCreateParams::Item#supplier class Supplier < Yoomoney::Models::ReceiptItemSupplier # @!attribute inn # # @return [String, nil] optional :inn, String # @!method initialize(inn: nil) # @param inn [String] end end |
Instance Attribute Details
#additional_payment_subject_props ⇒ String?
Дополнительный реквизит предмета расчета.
161 |
# File 'lib/yoomoney/models/receipt_create_params.rb', line 161 optional :additional_payment_subject_props, String |
#agent_type ⇒ Symbol, ...
166 |
# File 'lib/yoomoney/models/receipt_create_params.rb', line 166 optional :agent_type, enum: -> { Yoomoney::ReceiptItemAgentType } |
#amount ⇒ Yoomoney::Models::MonetaryAmount
Сумма.
137 |
# File 'lib/yoomoney/models/receipt_create_params.rb', line 137 required :amount, -> { Yoomoney::MonetaryAmount } |
#country_of_origin_code ⇒ String?
171 |
# File 'lib/yoomoney/models/receipt_create_params.rb', line 171 optional :country_of_origin_code, String |
#customs_declaration_number ⇒ String?
176 |
# File 'lib/yoomoney/models/receipt_create_params.rb', line 176 optional :customs_declaration_number, String |
#description ⇒ String
Название товара.
143 |
# File 'lib/yoomoney/models/receipt_create_params.rb', line 143 required :description, String |
#excise ⇒ String?
181 |
# File 'lib/yoomoney/models/receipt_create_params.rb', line 181 optional :excise, String |
#mark_code_info ⇒ Yoomoney::Models::MarkCodeInfo?
186 |
# File 'lib/yoomoney/models/receipt_create_params.rb', line 186 optional :mark_code_info, -> { Yoomoney::MarkCodeInfo } |
#mark_mode ⇒ String?
191 |
# File 'lib/yoomoney/models/receipt_create_params.rb', line 191 optional :mark_mode, String |
#mark_quantity ⇒ Yoomoney::Models::MarkQuantity?
196 |
# File 'lib/yoomoney/models/receipt_create_params.rb', line 196 optional :mark_quantity, -> { Yoomoney::MarkQuantity } |
#measure ⇒ Symbol, ...
201 |
# File 'lib/yoomoney/models/receipt_create_params.rb', line 201 optional :measure, enum: -> { Yoomoney::ReceiptItemMeasure } |
#payment_mode ⇒ Symbol, ...
206 |
# File 'lib/yoomoney/models/receipt_create_params.rb', line 206 optional :payment_mode, enum: -> { Yoomoney::ReceiptItemPaymentMode } |
#payment_subject ⇒ Symbol, ...
211 |
# File 'lib/yoomoney/models/receipt_create_params.rb', line 211 optional :payment_subject, enum: -> { Yoomoney::ReceiptItemPaymentSubject } |
#payment_subject_industry_details ⇒ Array<Yoomoney::Models::IndustryDetails>?
216 217 |
# File 'lib/yoomoney/models/receipt_create_params.rb', line 216 optional :payment_subject_industry_details, -> { Yoomoney::Internal::Type::ArrayOf[Yoomoney::IndustryDetails] } |
#planned_status ⇒ Integer?
222 |
# File 'lib/yoomoney/models/receipt_create_params.rb', line 222 optional :planned_status, Integer |
#product_code ⇒ String?
227 |
# File 'lib/yoomoney/models/receipt_create_params.rb', line 227 optional :product_code, String |
#quantity ⇒ Float
Количество.
149 |
# File 'lib/yoomoney/models/receipt_create_params.rb', line 149 required :quantity, Float |
#supplier ⇒ Yoomoney::Models::ReceiptCreateParams::Item::Supplier?
232 |
# File 'lib/yoomoney/models/receipt_create_params.rb', line 232 optional :supplier, -> { Yoomoney::ReceiptCreateParams::Item::Supplier } |
#vat_code ⇒ Integer
Ставка НДС.
155 |
# File 'lib/yoomoney/models/receipt_create_params.rb', line 155 required :vat_code, Integer |