Class: Yoomoney::Models::ReceiptData::Item
Instance Attribute Summary collapse
Instance Method Summary
collapse
-
#initialize(amount:, description:, quantity:, vat_code:, 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) ⇒ 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:, 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) ⇒ Object
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
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
|
# File 'lib/yoomoney/models/receipt_data.rb', line 50
class Item < Yoomoney::Internal::Type::BaseModel
required :amount, -> { Yoomoney::MonetaryAmount }
required :description, String
required :quantity, Float
required :vat_code, Integer
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
end
|
Instance Attribute Details
55
|
# File 'lib/yoomoney/models/receipt_data.rb', line 55
required :amount, -> { Yoomoney::MonetaryAmount }
|
#country_of_origin_code ⇒ String?
78
|
# File 'lib/yoomoney/models/receipt_data.rb', line 78
optional :country_of_origin_code, String
|
#customs_declaration_number ⇒ String?
83
|
# File 'lib/yoomoney/models/receipt_data.rb', line 83
optional :customs_declaration_number, String
|
#description ⇒ String
61
|
# File 'lib/yoomoney/models/receipt_data.rb', line 61
required :description, String
|
#excise ⇒ String?
88
|
# File 'lib/yoomoney/models/receipt_data.rb', line 88
optional :excise, String
|
93
|
# File 'lib/yoomoney/models/receipt_data.rb', line 93
optional :mark_code_info, -> { Yoomoney::MarkCodeInfo }
|
#mark_mode ⇒ String?
98
|
# File 'lib/yoomoney/models/receipt_data.rb', line 98
optional :mark_mode, String
|
103
|
# File 'lib/yoomoney/models/receipt_data.rb', line 103
optional :mark_quantity, -> { Yoomoney::MarkQuantity }
|
#measure ⇒ Symbol, ...
108
|
# File 'lib/yoomoney/models/receipt_data.rb', line 108
optional :measure, enum: -> { Yoomoney::ReceiptItemMeasure }
|
#payment_mode ⇒ Symbol, ...
113
|
# File 'lib/yoomoney/models/receipt_data.rb', line 113
optional :payment_mode, enum: -> { Yoomoney::ReceiptItemPaymentMode }
|
#payment_subject ⇒ Symbol, ...
118
|
# File 'lib/yoomoney/models/receipt_data.rb', line 118
optional :payment_subject, enum: -> { Yoomoney::ReceiptItemPaymentSubject }
|
123
124
|
# File 'lib/yoomoney/models/receipt_data.rb', line 123
optional :payment_subject_industry_details,
-> { Yoomoney::Internal::Type::ArrayOf[Yoomoney::IndustryDetails] }
|
#planned_status ⇒ Integer?
129
|
# File 'lib/yoomoney/models/receipt_data.rb', line 129
optional :planned_status, Integer
|
#product_code ⇒ String?
134
|
# File 'lib/yoomoney/models/receipt_data.rb', line 134
optional :product_code, String
|
#quantity ⇒ Float
67
|
# File 'lib/yoomoney/models/receipt_data.rb', line 67
required :quantity, Float
|
#vat_code ⇒ Integer
73
|
# File 'lib/yoomoney/models/receipt_data.rb', line 73
required :vat_code, Integer
|
Instance Method Details
#to_hash ⇒ {
171
|
# File 'sig/yoomoney/models/receipt_data.rbs', line 171
def to_hash: -> {
|