yoomoney 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ module Yoomoney
2
2
  module Models
3
3
  type receipt_data =
4
4
  {
5
- items: ::Array[Yoomoney::ReceiptData::Item],
5
+ items: ::Array[Yoomoney::ReceiptDataItem],
6
6
  customer: Yoomoney::ReceiptDataCustomer,
7
7
  internet: bool,
8
8
  receipt_industry_details: ::Array[Yoomoney::IndustryDetails],
@@ -12,7 +12,7 @@ module Yoomoney
12
12
  }
13
13
 
14
14
  class ReceiptData < Yoomoney::Internal::Type::BaseModel
15
- attr_accessor items: ::Array[Yoomoney::ReceiptData::Item]
15
+ attr_accessor items: ::Array[Yoomoney::ReceiptDataItem]
16
16
 
17
17
  attr_reader customer: Yoomoney::ReceiptDataCustomer?
18
18
 
@@ -45,7 +45,7 @@ module Yoomoney
45
45
  def timezone=: (String) -> String
46
46
 
47
47
  def initialize: (
48
- items: ::Array[Yoomoney::ReceiptData::Item],
48
+ items: ::Array[Yoomoney::ReceiptDataItem],
49
49
  ?customer: Yoomoney::ReceiptDataCustomer,
50
50
  ?internet: bool,
51
51
  ?receipt_industry_details: ::Array[Yoomoney::IndustryDetails],
@@ -55,7 +55,7 @@ module Yoomoney
55
55
  ) -> void
56
56
 
57
57
  def to_hash: -> {
58
- items: ::Array[Yoomoney::ReceiptData::Item],
58
+ items: ::Array[Yoomoney::ReceiptDataItem],
59
59
  customer: Yoomoney::ReceiptDataCustomer,
60
60
  internet: bool,
61
61
  receipt_industry_details: ::Array[Yoomoney::IndustryDetails],
@@ -63,130 +63,6 @@ module Yoomoney
63
63
  tax_system_code: Integer,
64
64
  timezone: String
65
65
  }
66
-
67
- type item =
68
- {
69
- amount: Yoomoney::MonetaryAmount,
70
- description: String,
71
- quantity: Float,
72
- vat_code: Integer,
73
- country_of_origin_code: String,
74
- customs_declaration_number: String,
75
- excise: String,
76
- mark_code_info: Yoomoney::MarkCodeInfo,
77
- mark_mode: String,
78
- mark_quantity: Yoomoney::MarkQuantity,
79
- measure: Yoomoney::Models::receipt_item_measure,
80
- payment_mode: Yoomoney::Models::receipt_item_payment_mode,
81
- payment_subject: Yoomoney::Models::receipt_item_payment_subject,
82
- payment_subject_industry_details: ::Array[Yoomoney::IndustryDetails],
83
- planned_status: Integer,
84
- product_code: String
85
- }
86
-
87
- class Item < Yoomoney::Internal::Type::BaseModel
88
- attr_accessor amount: Yoomoney::MonetaryAmount
89
-
90
- attr_accessor description: String
91
-
92
- attr_accessor quantity: Float
93
-
94
- attr_accessor vat_code: Integer
95
-
96
- attr_reader country_of_origin_code: String?
97
-
98
- def country_of_origin_code=: (String) -> String
99
-
100
- attr_reader customs_declaration_number: String?
101
-
102
- def customs_declaration_number=: (String) -> String
103
-
104
- attr_reader excise: String?
105
-
106
- def excise=: (String) -> String
107
-
108
- attr_reader mark_code_info: Yoomoney::MarkCodeInfo?
109
-
110
- def mark_code_info=: (Yoomoney::MarkCodeInfo) -> Yoomoney::MarkCodeInfo
111
-
112
- attr_reader mark_mode: String?
113
-
114
- def mark_mode=: (String) -> String
115
-
116
- attr_reader mark_quantity: Yoomoney::MarkQuantity?
117
-
118
- def mark_quantity=: (Yoomoney::MarkQuantity) -> Yoomoney::MarkQuantity
119
-
120
- attr_reader measure: Yoomoney::Models::receipt_item_measure?
121
-
122
- def measure=: (
123
- Yoomoney::Models::receipt_item_measure
124
- ) -> Yoomoney::Models::receipt_item_measure
125
-
126
- attr_reader payment_mode: Yoomoney::Models::receipt_item_payment_mode?
127
-
128
- def payment_mode=: (
129
- Yoomoney::Models::receipt_item_payment_mode
130
- ) -> Yoomoney::Models::receipt_item_payment_mode
131
-
132
- attr_reader payment_subject: Yoomoney::Models::receipt_item_payment_subject?
133
-
134
- def payment_subject=: (
135
- Yoomoney::Models::receipt_item_payment_subject
136
- ) -> Yoomoney::Models::receipt_item_payment_subject
137
-
138
- attr_reader payment_subject_industry_details: ::Array[Yoomoney::IndustryDetails]?
139
-
140
- def payment_subject_industry_details=: (
141
- ::Array[Yoomoney::IndustryDetails]
142
- ) -> ::Array[Yoomoney::IndustryDetails]
143
-
144
- attr_reader planned_status: Integer?
145
-
146
- def planned_status=: (Integer) -> Integer
147
-
148
- attr_reader product_code: String?
149
-
150
- def product_code=: (String) -> String
151
-
152
- def initialize: (
153
- amount: Yoomoney::MonetaryAmount,
154
- description: String,
155
- quantity: Float,
156
- vat_code: Integer,
157
- ?country_of_origin_code: String,
158
- ?customs_declaration_number: String,
159
- ?excise: String,
160
- ?mark_code_info: Yoomoney::MarkCodeInfo,
161
- ?mark_mode: String,
162
- ?mark_quantity: Yoomoney::MarkQuantity,
163
- ?measure: Yoomoney::Models::receipt_item_measure,
164
- ?payment_mode: Yoomoney::Models::receipt_item_payment_mode,
165
- ?payment_subject: Yoomoney::Models::receipt_item_payment_subject,
166
- ?payment_subject_industry_details: ::Array[Yoomoney::IndustryDetails],
167
- ?planned_status: Integer,
168
- ?product_code: String
169
- ) -> void
170
-
171
- def to_hash: -> {
172
- amount: Yoomoney::MonetaryAmount,
173
- description: String,
174
- quantity: Float,
175
- vat_code: Integer,
176
- country_of_origin_code: String,
177
- customs_declaration_number: String,
178
- excise: String,
179
- mark_code_info: Yoomoney::MarkCodeInfo,
180
- mark_mode: String,
181
- mark_quantity: Yoomoney::MarkQuantity,
182
- measure: Yoomoney::Models::receipt_item_measure,
183
- payment_mode: Yoomoney::Models::receipt_item_payment_mode,
184
- payment_subject: Yoomoney::Models::receipt_item_payment_subject,
185
- payment_subject_industry_details: ::Array[Yoomoney::IndustryDetails],
186
- planned_status: Integer,
187
- product_code: String
188
- }
189
- end
190
66
  end
191
67
  end
192
68
  end
@@ -0,0 +1,127 @@
1
+ module Yoomoney
2
+ module Models
3
+ type receipt_data_item =
4
+ {
5
+ amount: Yoomoney::MonetaryAmount,
6
+ description: String,
7
+ quantity: Float,
8
+ vat_code: Integer,
9
+ country_of_origin_code: String,
10
+ customs_declaration_number: String,
11
+ excise: String,
12
+ mark_code_info: Yoomoney::MarkCodeInfo,
13
+ mark_mode: String,
14
+ mark_quantity: Yoomoney::MarkQuantity,
15
+ measure: Yoomoney::Models::receipt_item_measure,
16
+ payment_mode: Yoomoney::Models::receipt_item_payment_mode,
17
+ payment_subject: Yoomoney::Models::receipt_item_payment_subject,
18
+ payment_subject_industry_details: ::Array[Yoomoney::IndustryDetails],
19
+ planned_status: Integer,
20
+ product_code: String
21
+ }
22
+
23
+ class ReceiptDataItem < Yoomoney::Internal::Type::BaseModel
24
+ attr_accessor amount: Yoomoney::MonetaryAmount
25
+
26
+ attr_accessor description: String
27
+
28
+ attr_accessor quantity: Float
29
+
30
+ attr_accessor vat_code: Integer
31
+
32
+ attr_reader country_of_origin_code: String?
33
+
34
+ def country_of_origin_code=: (String) -> String
35
+
36
+ attr_reader customs_declaration_number: String?
37
+
38
+ def customs_declaration_number=: (String) -> String
39
+
40
+ attr_reader excise: String?
41
+
42
+ def excise=: (String) -> String
43
+
44
+ attr_reader mark_code_info: Yoomoney::MarkCodeInfo?
45
+
46
+ def mark_code_info=: (Yoomoney::MarkCodeInfo) -> Yoomoney::MarkCodeInfo
47
+
48
+ attr_reader mark_mode: String?
49
+
50
+ def mark_mode=: (String) -> String
51
+
52
+ attr_reader mark_quantity: Yoomoney::MarkQuantity?
53
+
54
+ def mark_quantity=: (Yoomoney::MarkQuantity) -> Yoomoney::MarkQuantity
55
+
56
+ attr_reader measure: Yoomoney::Models::receipt_item_measure?
57
+
58
+ def measure=: (
59
+ Yoomoney::Models::receipt_item_measure
60
+ ) -> Yoomoney::Models::receipt_item_measure
61
+
62
+ attr_reader payment_mode: Yoomoney::Models::receipt_item_payment_mode?
63
+
64
+ def payment_mode=: (
65
+ Yoomoney::Models::receipt_item_payment_mode
66
+ ) -> Yoomoney::Models::receipt_item_payment_mode
67
+
68
+ attr_reader payment_subject: Yoomoney::Models::receipt_item_payment_subject?
69
+
70
+ def payment_subject=: (
71
+ Yoomoney::Models::receipt_item_payment_subject
72
+ ) -> Yoomoney::Models::receipt_item_payment_subject
73
+
74
+ attr_reader payment_subject_industry_details: ::Array[Yoomoney::IndustryDetails]?
75
+
76
+ def payment_subject_industry_details=: (
77
+ ::Array[Yoomoney::IndustryDetails]
78
+ ) -> ::Array[Yoomoney::IndustryDetails]
79
+
80
+ attr_reader planned_status: Integer?
81
+
82
+ def planned_status=: (Integer) -> Integer
83
+
84
+ attr_reader product_code: String?
85
+
86
+ def product_code=: (String) -> String
87
+
88
+ def initialize: (
89
+ amount: Yoomoney::MonetaryAmount,
90
+ description: String,
91
+ quantity: Float,
92
+ vat_code: Integer,
93
+ ?country_of_origin_code: String,
94
+ ?customs_declaration_number: String,
95
+ ?excise: String,
96
+ ?mark_code_info: Yoomoney::MarkCodeInfo,
97
+ ?mark_mode: String,
98
+ ?mark_quantity: Yoomoney::MarkQuantity,
99
+ ?measure: Yoomoney::Models::receipt_item_measure,
100
+ ?payment_mode: Yoomoney::Models::receipt_item_payment_mode,
101
+ ?payment_subject: Yoomoney::Models::receipt_item_payment_subject,
102
+ ?payment_subject_industry_details: ::Array[Yoomoney::IndustryDetails],
103
+ ?planned_status: Integer,
104
+ ?product_code: String
105
+ ) -> void
106
+
107
+ def to_hash: -> {
108
+ amount: Yoomoney::MonetaryAmount,
109
+ description: String,
110
+ quantity: Float,
111
+ vat_code: Integer,
112
+ country_of_origin_code: String,
113
+ customs_declaration_number: String,
114
+ excise: String,
115
+ mark_code_info: Yoomoney::MarkCodeInfo,
116
+ mark_mode: String,
117
+ mark_quantity: Yoomoney::MarkQuantity,
118
+ measure: Yoomoney::Models::receipt_item_measure,
119
+ payment_mode: Yoomoney::Models::receipt_item_payment_mode,
120
+ payment_subject: Yoomoney::Models::receipt_item_payment_subject,
121
+ payment_subject_industry_details: ::Array[Yoomoney::IndustryDetails],
122
+ planned_status: Integer,
123
+ product_code: String
124
+ }
125
+ end
126
+ end
127
+ end
@@ -1,6 +1,10 @@
1
1
  module Yoomoney
2
2
  class Airline = Yoomoney::Models::Airline
3
3
 
4
+ class AirlineLeg = Yoomoney::Models::AirlineLeg
5
+
6
+ class AirlinePassenger = Yoomoney::Models::AirlinePassenger
7
+
4
8
  class B2bSberbankCalculatedVatData = Yoomoney::Models::B2bSberbankCalculatedVatData
5
9
 
6
10
  class B2bSberbankMixedVatData = Yoomoney::Models::B2bSberbankMixedVatData
@@ -131,6 +135,8 @@ module Yoomoney
131
135
 
132
136
  class ReceiptDataCustomer = Yoomoney::Models::ReceiptDataCustomer
133
137
 
138
+ class ReceiptDataItem = Yoomoney::Models::ReceiptDataItem
139
+
134
140
  module ReceiptItemAgentType = Yoomoney::Models::ReceiptItemAgentType
135
141
 
136
142
  module ReceiptItemMeasure = Yoomoney::Models::ReceiptItemMeasure
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yoomoney
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoomoney
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-02-14 00:00:00.000000000 Z
11
+ date: 2026-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi
@@ -70,6 +70,8 @@ files:
70
70
  - lib/yoomoney/internal/util.rb
71
71
  - lib/yoomoney/models.rb
72
72
  - lib/yoomoney/models/airline.rb
73
+ - lib/yoomoney/models/airline_leg.rb
74
+ - lib/yoomoney/models/airline_passenger.rb
73
75
  - lib/yoomoney/models/b2b_sberbank_calculated_vat_data.rb
74
76
  - lib/yoomoney/models/b2b_sberbank_mixed_vat_data.rb
75
77
  - lib/yoomoney/models/b2b_sberbank_untaxed_vat_data.rb
@@ -138,6 +140,7 @@ files:
138
140
  - lib/yoomoney/models/receipt_create_params.rb
139
141
  - lib/yoomoney/models/receipt_data.rb
140
142
  - lib/yoomoney/models/receipt_data_customer.rb
143
+ - lib/yoomoney/models/receipt_data_item.rb
141
144
  - lib/yoomoney/models/receipt_item_agent_type.rb
142
145
  - lib/yoomoney/models/receipt_item_measure.rb
143
146
  - lib/yoomoney/models/receipt_item_payment_mode.rb
@@ -208,6 +211,8 @@ files:
208
211
  - rbi/yoomoney/internal/util.rbi
209
212
  - rbi/yoomoney/models.rbi
210
213
  - rbi/yoomoney/models/airline.rbi
214
+ - rbi/yoomoney/models/airline_leg.rbi
215
+ - rbi/yoomoney/models/airline_passenger.rbi
211
216
  - rbi/yoomoney/models/b2b_sberbank_calculated_vat_data.rbi
212
217
  - rbi/yoomoney/models/b2b_sberbank_mixed_vat_data.rbi
213
218
  - rbi/yoomoney/models/b2b_sberbank_untaxed_vat_data.rbi
@@ -276,6 +281,7 @@ files:
276
281
  - rbi/yoomoney/models/receipt_create_params.rbi
277
282
  - rbi/yoomoney/models/receipt_data.rbi
278
283
  - rbi/yoomoney/models/receipt_data_customer.rbi
284
+ - rbi/yoomoney/models/receipt_data_item.rbi
279
285
  - rbi/yoomoney/models/receipt_item_agent_type.rbi
280
286
  - rbi/yoomoney/models/receipt_item_measure.rbi
281
287
  - rbi/yoomoney/models/receipt_item_payment_mode.rbi
@@ -345,6 +351,8 @@ files:
345
351
  - sig/yoomoney/internal/util.rbs
346
352
  - sig/yoomoney/models.rbs
347
353
  - sig/yoomoney/models/airline.rbs
354
+ - sig/yoomoney/models/airline_leg.rbs
355
+ - sig/yoomoney/models/airline_passenger.rbs
348
356
  - sig/yoomoney/models/b2b_sberbank_calculated_vat_data.rbs
349
357
  - sig/yoomoney/models/b2b_sberbank_mixed_vat_data.rbs
350
358
  - sig/yoomoney/models/b2b_sberbank_untaxed_vat_data.rbs
@@ -413,6 +421,7 @@ files:
413
421
  - sig/yoomoney/models/receipt_create_params.rbs
414
422
  - sig/yoomoney/models/receipt_data.rbs
415
423
  - sig/yoomoney/models/receipt_data_customer.rbs
424
+ - sig/yoomoney/models/receipt_data_item.rbs
416
425
  - sig/yoomoney/models/receipt_item_agent_type.rbs
417
426
  - sig/yoomoney/models/receipt_item_measure.rbs
418
427
  - sig/yoomoney/models/receipt_item_payment_mode.rbs