yoomoney 0.3.0 → 0.4.1
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +26 -0
- data/README.md +1 -1
- data/lib/yoomoney/internal/util.rb +31 -0
- data/lib/yoomoney/models/airline.rb +50 -6
- data/lib/yoomoney/models/deal_retrieve_params.rb +7 -1
- data/lib/yoomoney/models/invoice_retrieve_params.rb +7 -1
- data/lib/yoomoney/models/payment_cancel_params.rb +7 -1
- data/lib/yoomoney/models/payment_capture_params.rb +8 -1
- data/lib/yoomoney/models/payment_method_retrieve_params.rb +7 -1
- data/lib/yoomoney/models/payment_retrieve_params.rb +7 -1
- data/lib/yoomoney/models/payout_retrieve_params.rb +7 -1
- data/lib/yoomoney/models/personal_data_create_params.rb +70 -46
- data/lib/yoomoney/models/personal_data_retrieve_params.rb +7 -1
- data/lib/yoomoney/models/receipt_create_params.rb +120 -2
- data/lib/yoomoney/models/receipt_data.rb +123 -3
- data/lib/yoomoney/models/receipt_retrieve_params.rb +7 -1
- data/lib/yoomoney/models/refund_retrieve_params.rb +7 -1
- data/lib/yoomoney/models/webhook_delete_params.rb +7 -1
- data/lib/yoomoney/models.rb +0 -6
- data/lib/yoomoney/resources/deals.rb +2 -1
- data/lib/yoomoney/resources/me.rb +2 -1
- data/lib/yoomoney/resources/payments.rb +2 -1
- data/lib/yoomoney/resources/payouts.rb +4 -2
- data/lib/yoomoney/resources/personal_data.rb +4 -16
- data/lib/yoomoney/resources/receipts.rb +2 -1
- data/lib/yoomoney/resources/refunds.rb +2 -1
- data/lib/yoomoney/version.rb +1 -1
- data/lib/yoomoney.rb +1 -4
- data/rbi/yoomoney/internal/util.rbi +20 -0
- data/rbi/yoomoney/models/airline.rbi +84 -8
- data/rbi/yoomoney/models/deal_retrieve_params.rbi +13 -5
- data/rbi/yoomoney/models/invoice_retrieve_params.rbi +13 -5
- data/rbi/yoomoney/models/payment_cancel_params.rbi +10 -2
- data/rbi/yoomoney/models/payment_capture_params.rbi +6 -0
- data/rbi/yoomoney/models/payment_method_retrieve_params.rbi +16 -5
- data/rbi/yoomoney/models/payment_retrieve_params.rbi +13 -5
- data/rbi/yoomoney/models/payout_retrieve_params.rbi +13 -5
- data/rbi/yoomoney/models/personal_data_create_params.rbi +140 -55
- data/rbi/yoomoney/models/personal_data_retrieve_params.rbi +16 -5
- data/rbi/yoomoney/models/receipt_create_params.rbi +159 -1
- data/rbi/yoomoney/models/receipt_data.rbi +185 -3
- data/rbi/yoomoney/models/receipt_retrieve_params.rbi +13 -5
- data/rbi/yoomoney/models/refund_retrieve_params.rbi +13 -5
- data/rbi/yoomoney/models/webhook_delete_params.rbi +13 -5
- data/rbi/yoomoney/models.rbi +0 -6
- data/rbi/yoomoney/resources/personal_data.rbi +7 -19
- data/sig/yoomoney/internal/util.rbs +10 -0
- data/sig/yoomoney/models/airline.rbs +58 -12
- data/sig/yoomoney/models/deal_retrieve_params.rbs +11 -3
- data/sig/yoomoney/models/invoice_retrieve_params.rbs +11 -3
- data/sig/yoomoney/models/payment_cancel_params.rbs +6 -1
- data/sig/yoomoney/models/payment_capture_params.rbs +5 -0
- data/sig/yoomoney/models/payment_method_retrieve_params.rbs +12 -3
- data/sig/yoomoney/models/payment_retrieve_params.rbs +11 -3
- data/sig/yoomoney/models/payout_retrieve_params.rbs +11 -3
- data/sig/yoomoney/models/personal_data_create_params.rbs +73 -29
- data/sig/yoomoney/models/personal_data_retrieve_params.rbs +12 -3
- data/sig/yoomoney/models/receipt_create_params.rbs +119 -7
- data/sig/yoomoney/models/receipt_data.rbs +128 -4
- data/sig/yoomoney/models/receipt_retrieve_params.rbs +11 -3
- data/sig/yoomoney/models/refund_retrieve_params.rbs +11 -3
- data/sig/yoomoney/models/webhook_delete_params.rbs +11 -3
- data/sig/yoomoney/models.rbs +0 -6
- data/sig/yoomoney/resources/personal_data.rbs +1 -5
- metadata +2 -11
- data/lib/yoomoney/models/airline_leg.rb +0 -33
- data/lib/yoomoney/models/airline_passenger.rb +0 -21
- data/lib/yoomoney/models/receipt_data_item.rb +0 -125
- data/rbi/yoomoney/models/airline_leg.rbi +0 -56
- data/rbi/yoomoney/models/airline_passenger.rbi +0 -28
- data/rbi/yoomoney/models/receipt_data_item.rbi +0 -185
- data/sig/yoomoney/models/airline_leg.rbs +0 -37
- data/sig/yoomoney/models/airline_passenger.rbs +0 -15
- data/sig/yoomoney/models/receipt_data_item.rbs +0 -127
|
@@ -2,12 +2,8 @@ module Yoomoney
|
|
|
2
2
|
module Models
|
|
3
3
|
type personal_data_create_params =
|
|
4
4
|
{
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
type: Yoomoney::Models::personal_data_type,
|
|
8
|
-
idempotence_key: String,
|
|
9
|
-
metadata: ::Hash[Symbol, String],
|
|
10
|
-
middle_name: String
|
|
5
|
+
body: Yoomoney::Models::PersonalDataCreateParams::body,
|
|
6
|
+
idempotence_key: String
|
|
11
7
|
}
|
|
12
8
|
& Yoomoney::Internal::Type::request_parameters
|
|
13
9
|
|
|
@@ -15,41 +11,89 @@ module Yoomoney
|
|
|
15
11
|
extend Yoomoney::Internal::Type::RequestParameters::Converter
|
|
16
12
|
include Yoomoney::Internal::Type::RequestParameters
|
|
17
13
|
|
|
18
|
-
attr_accessor
|
|
19
|
-
|
|
20
|
-
attr_accessor last_name: String
|
|
21
|
-
|
|
22
|
-
attr_accessor type: Yoomoney::Models::personal_data_type
|
|
14
|
+
attr_accessor body: Yoomoney::Models::PersonalDataCreateParams::body
|
|
23
15
|
|
|
24
16
|
attr_accessor idempotence_key: String
|
|
25
17
|
|
|
26
|
-
attr_reader metadata: ::Hash[Symbol, String]?
|
|
27
|
-
|
|
28
|
-
def metadata=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
|
|
29
|
-
|
|
30
|
-
attr_reader middle_name: String?
|
|
31
|
-
|
|
32
|
-
def middle_name=: (String) -> String
|
|
33
|
-
|
|
34
18
|
def initialize: (
|
|
35
|
-
|
|
36
|
-
last_name: String,
|
|
37
|
-
type: Yoomoney::Models::personal_data_type,
|
|
19
|
+
body: Yoomoney::Models::PersonalDataCreateParams::body,
|
|
38
20
|
idempotence_key: String,
|
|
39
|
-
?metadata: ::Hash[Symbol, String],
|
|
40
|
-
?middle_name: String,
|
|
41
21
|
?request_options: Yoomoney::request_opts
|
|
42
22
|
) -> void
|
|
43
23
|
|
|
44
24
|
def to_hash: -> {
|
|
45
|
-
|
|
46
|
-
last_name: String,
|
|
47
|
-
type: Yoomoney::Models::personal_data_type,
|
|
25
|
+
body: Yoomoney::Models::PersonalDataCreateParams::body,
|
|
48
26
|
idempotence_key: String,
|
|
49
|
-
metadata: ::Hash[Symbol, String],
|
|
50
|
-
middle_name: String,
|
|
51
27
|
request_options: Yoomoney::RequestOptions
|
|
52
28
|
}
|
|
29
|
+
|
|
30
|
+
type body =
|
|
31
|
+
Yoomoney::PersonalDataCreateParams::Body::SbpPayoutRecipientPersonalDataRequest
|
|
32
|
+
| Yoomoney::PersonalDataCreateParams::Body::PayoutStatementRecipientPersonalDataRequest
|
|
33
|
+
|
|
34
|
+
module Body
|
|
35
|
+
extend Yoomoney::Internal::Type::Union
|
|
36
|
+
|
|
37
|
+
type sbp_payout_recipient_personal_data_request =
|
|
38
|
+
{ first_name: String, last_name: String, middle_name: String }
|
|
39
|
+
|
|
40
|
+
class SbpPayoutRecipientPersonalDataRequest < Yoomoney::Models::PersonalDataRequest
|
|
41
|
+
def first_name: -> String
|
|
42
|
+
|
|
43
|
+
def first_name=: (String _) -> String
|
|
44
|
+
|
|
45
|
+
def last_name: -> String
|
|
46
|
+
|
|
47
|
+
def last_name=: (String _) -> String
|
|
48
|
+
|
|
49
|
+
def middle_name: -> String?
|
|
50
|
+
|
|
51
|
+
def middle_name=: (String _) -> String
|
|
52
|
+
|
|
53
|
+
def initialize: (
|
|
54
|
+
first_name: String,
|
|
55
|
+
last_name: String,
|
|
56
|
+
?middle_name: String
|
|
57
|
+
) -> void
|
|
58
|
+
|
|
59
|
+
def to_hash: -> {
|
|
60
|
+
first_name: String,
|
|
61
|
+
last_name: String,
|
|
62
|
+
middle_name: String
|
|
63
|
+
}
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
type payout_statement_recipient_personal_data_request =
|
|
67
|
+
{ first_name: String, last_name: String, middle_name: String }
|
|
68
|
+
|
|
69
|
+
class PayoutStatementRecipientPersonalDataRequest < Yoomoney::Models::PersonalDataRequest
|
|
70
|
+
def first_name: -> String
|
|
71
|
+
|
|
72
|
+
def first_name=: (String _) -> String
|
|
73
|
+
|
|
74
|
+
def last_name: -> String
|
|
75
|
+
|
|
76
|
+
def last_name=: (String _) -> String
|
|
77
|
+
|
|
78
|
+
def middle_name: -> String?
|
|
79
|
+
|
|
80
|
+
def middle_name=: (String _) -> String
|
|
81
|
+
|
|
82
|
+
def initialize: (
|
|
83
|
+
first_name: String,
|
|
84
|
+
last_name: String,
|
|
85
|
+
?middle_name: String
|
|
86
|
+
) -> void
|
|
87
|
+
|
|
88
|
+
def to_hash: -> {
|
|
89
|
+
first_name: String,
|
|
90
|
+
last_name: String,
|
|
91
|
+
middle_name: String
|
|
92
|
+
}
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
def self?.variants: -> ::Array[Yoomoney::Models::PersonalDataCreateParams::body]
|
|
96
|
+
end
|
|
53
97
|
end
|
|
54
98
|
end
|
|
55
99
|
end
|
|
@@ -1,15 +1,24 @@
|
|
|
1
1
|
module Yoomoney
|
|
2
2
|
module Models
|
|
3
3
|
type personal_data_retrieve_params =
|
|
4
|
-
{
|
|
4
|
+
{ personal_data_id: String }
|
|
5
|
+
& Yoomoney::Internal::Type::request_parameters
|
|
5
6
|
|
|
6
7
|
class PersonalDataRetrieveParams < Yoomoney::Internal::Type::BaseModel
|
|
7
8
|
extend Yoomoney::Internal::Type::RequestParameters::Converter
|
|
8
9
|
include Yoomoney::Internal::Type::RequestParameters
|
|
9
10
|
|
|
10
|
-
|
|
11
|
+
attr_accessor personal_data_id: String
|
|
11
12
|
|
|
12
|
-
def
|
|
13
|
+
def initialize: (
|
|
14
|
+
personal_data_id: String,
|
|
15
|
+
?request_options: Yoomoney::request_opts
|
|
16
|
+
) -> void
|
|
17
|
+
|
|
18
|
+
def to_hash: -> {
|
|
19
|
+
personal_data_id: String,
|
|
20
|
+
request_options: Yoomoney::RequestOptions
|
|
21
|
+
}
|
|
13
22
|
end
|
|
14
23
|
end
|
|
15
24
|
end
|
|
@@ -118,37 +118,149 @@ module Yoomoney
|
|
|
118
118
|
|
|
119
119
|
type item =
|
|
120
120
|
{
|
|
121
|
+
amount: Yoomoney::MonetaryAmount,
|
|
122
|
+
description: String,
|
|
123
|
+
quantity: Float,
|
|
124
|
+
vat_code: Integer,
|
|
121
125
|
additional_payment_subject_props: String,
|
|
122
126
|
agent_type: Yoomoney::Models::receipt_item_agent_type,
|
|
127
|
+
country_of_origin_code: String,
|
|
128
|
+
customs_declaration_number: String,
|
|
129
|
+
excise: String,
|
|
130
|
+
mark_code_info: Yoomoney::MarkCodeInfo,
|
|
131
|
+
mark_mode: String,
|
|
132
|
+
mark_quantity: Yoomoney::MarkQuantity,
|
|
133
|
+
measure: Yoomoney::Models::receipt_item_measure,
|
|
134
|
+
payment_mode: Yoomoney::Models::receipt_item_payment_mode,
|
|
135
|
+
payment_subject: Yoomoney::Models::receipt_item_payment_subject,
|
|
136
|
+
payment_subject_industry_details: ::Array[Yoomoney::IndustryDetails],
|
|
137
|
+
planned_status: Integer,
|
|
138
|
+
product_code: String,
|
|
123
139
|
supplier: Yoomoney::ReceiptCreateParams::Item::Supplier
|
|
124
140
|
}
|
|
125
141
|
|
|
126
|
-
class Item < Yoomoney::
|
|
127
|
-
|
|
142
|
+
class Item < Yoomoney::Internal::Type::BaseModel
|
|
143
|
+
attr_accessor amount: Yoomoney::MonetaryAmount
|
|
128
144
|
|
|
129
|
-
|
|
145
|
+
attr_accessor description: String
|
|
130
146
|
|
|
131
|
-
|
|
147
|
+
attr_accessor quantity: Float
|
|
148
|
+
|
|
149
|
+
attr_accessor vat_code: Integer
|
|
150
|
+
|
|
151
|
+
attr_reader additional_payment_subject_props: String?
|
|
152
|
+
|
|
153
|
+
def additional_payment_subject_props=: (String) -> String
|
|
154
|
+
|
|
155
|
+
attr_reader agent_type: Yoomoney::Models::receipt_item_agent_type?
|
|
132
156
|
|
|
133
157
|
def agent_type=: (
|
|
134
|
-
Yoomoney::Models::receipt_item_agent_type
|
|
158
|
+
Yoomoney::Models::receipt_item_agent_type
|
|
135
159
|
) -> Yoomoney::Models::receipt_item_agent_type
|
|
136
160
|
|
|
137
|
-
|
|
161
|
+
attr_reader country_of_origin_code: String?
|
|
162
|
+
|
|
163
|
+
def country_of_origin_code=: (String) -> String
|
|
164
|
+
|
|
165
|
+
attr_reader customs_declaration_number: String?
|
|
166
|
+
|
|
167
|
+
def customs_declaration_number=: (String) -> String
|
|
168
|
+
|
|
169
|
+
attr_reader excise: String?
|
|
170
|
+
|
|
171
|
+
def excise=: (String) -> String
|
|
172
|
+
|
|
173
|
+
attr_reader mark_code_info: Yoomoney::MarkCodeInfo?
|
|
174
|
+
|
|
175
|
+
def mark_code_info=: (Yoomoney::MarkCodeInfo) -> Yoomoney::MarkCodeInfo
|
|
176
|
+
|
|
177
|
+
attr_reader mark_mode: String?
|
|
178
|
+
|
|
179
|
+
def mark_mode=: (String) -> String
|
|
180
|
+
|
|
181
|
+
attr_reader mark_quantity: Yoomoney::MarkQuantity?
|
|
182
|
+
|
|
183
|
+
def mark_quantity=: (Yoomoney::MarkQuantity) -> Yoomoney::MarkQuantity
|
|
184
|
+
|
|
185
|
+
attr_reader measure: Yoomoney::Models::receipt_item_measure?
|
|
186
|
+
|
|
187
|
+
def measure=: (
|
|
188
|
+
Yoomoney::Models::receipt_item_measure
|
|
189
|
+
) -> Yoomoney::Models::receipt_item_measure
|
|
190
|
+
|
|
191
|
+
attr_reader payment_mode: Yoomoney::Models::receipt_item_payment_mode?
|
|
192
|
+
|
|
193
|
+
def payment_mode=: (
|
|
194
|
+
Yoomoney::Models::receipt_item_payment_mode
|
|
195
|
+
) -> Yoomoney::Models::receipt_item_payment_mode
|
|
196
|
+
|
|
197
|
+
attr_reader payment_subject: Yoomoney::Models::receipt_item_payment_subject?
|
|
198
|
+
|
|
199
|
+
def payment_subject=: (
|
|
200
|
+
Yoomoney::Models::receipt_item_payment_subject
|
|
201
|
+
) -> Yoomoney::Models::receipt_item_payment_subject
|
|
202
|
+
|
|
203
|
+
attr_reader payment_subject_industry_details: ::Array[Yoomoney::IndustryDetails]?
|
|
204
|
+
|
|
205
|
+
def payment_subject_industry_details=: (
|
|
206
|
+
::Array[Yoomoney::IndustryDetails]
|
|
207
|
+
) -> ::Array[Yoomoney::IndustryDetails]
|
|
208
|
+
|
|
209
|
+
attr_reader planned_status: Integer?
|
|
210
|
+
|
|
211
|
+
def planned_status=: (Integer) -> Integer
|
|
212
|
+
|
|
213
|
+
attr_reader product_code: String?
|
|
214
|
+
|
|
215
|
+
def product_code=: (String) -> String
|
|
216
|
+
|
|
217
|
+
attr_reader supplier: Yoomoney::ReceiptCreateParams::Item::Supplier?
|
|
138
218
|
|
|
139
219
|
def supplier=: (
|
|
140
|
-
Yoomoney::ReceiptCreateParams::Item::Supplier
|
|
220
|
+
Yoomoney::ReceiptCreateParams::Item::Supplier
|
|
141
221
|
) -> Yoomoney::ReceiptCreateParams::Item::Supplier
|
|
142
222
|
|
|
143
223
|
def initialize: (
|
|
224
|
+
amount: Yoomoney::MonetaryAmount,
|
|
225
|
+
description: String,
|
|
226
|
+
quantity: Float,
|
|
227
|
+
vat_code: Integer,
|
|
144
228
|
?additional_payment_subject_props: String,
|
|
145
229
|
?agent_type: Yoomoney::Models::receipt_item_agent_type,
|
|
230
|
+
?country_of_origin_code: String,
|
|
231
|
+
?customs_declaration_number: String,
|
|
232
|
+
?excise: String,
|
|
233
|
+
?mark_code_info: Yoomoney::MarkCodeInfo,
|
|
234
|
+
?mark_mode: String,
|
|
235
|
+
?mark_quantity: Yoomoney::MarkQuantity,
|
|
236
|
+
?measure: Yoomoney::Models::receipt_item_measure,
|
|
237
|
+
?payment_mode: Yoomoney::Models::receipt_item_payment_mode,
|
|
238
|
+
?payment_subject: Yoomoney::Models::receipt_item_payment_subject,
|
|
239
|
+
?payment_subject_industry_details: ::Array[Yoomoney::IndustryDetails],
|
|
240
|
+
?planned_status: Integer,
|
|
241
|
+
?product_code: String,
|
|
146
242
|
?supplier: Yoomoney::ReceiptCreateParams::Item::Supplier
|
|
147
243
|
) -> void
|
|
148
244
|
|
|
149
245
|
def to_hash: -> {
|
|
246
|
+
amount: Yoomoney::MonetaryAmount,
|
|
247
|
+
description: String,
|
|
248
|
+
quantity: Float,
|
|
249
|
+
vat_code: Integer,
|
|
150
250
|
additional_payment_subject_props: String,
|
|
151
251
|
agent_type: Yoomoney::Models::receipt_item_agent_type,
|
|
252
|
+
country_of_origin_code: String,
|
|
253
|
+
customs_declaration_number: String,
|
|
254
|
+
excise: String,
|
|
255
|
+
mark_code_info: Yoomoney::MarkCodeInfo,
|
|
256
|
+
mark_mode: String,
|
|
257
|
+
mark_quantity: Yoomoney::MarkQuantity,
|
|
258
|
+
measure: Yoomoney::Models::receipt_item_measure,
|
|
259
|
+
payment_mode: Yoomoney::Models::receipt_item_payment_mode,
|
|
260
|
+
payment_subject: Yoomoney::Models::receipt_item_payment_subject,
|
|
261
|
+
payment_subject_industry_details: ::Array[Yoomoney::IndustryDetails],
|
|
262
|
+
planned_status: Integer,
|
|
263
|
+
product_code: String,
|
|
152
264
|
supplier: Yoomoney::ReceiptCreateParams::Item::Supplier
|
|
153
265
|
}
|
|
154
266
|
|
|
@@ -2,7 +2,7 @@ module Yoomoney
|
|
|
2
2
|
module Models
|
|
3
3
|
type receipt_data =
|
|
4
4
|
{
|
|
5
|
-
items: ::Array[Yoomoney::
|
|
5
|
+
items: ::Array[Yoomoney::ReceiptData::Item],
|
|
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::
|
|
15
|
+
attr_accessor items: ::Array[Yoomoney::ReceiptData::Item]
|
|
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::
|
|
48
|
+
items: ::Array[Yoomoney::ReceiptData::Item],
|
|
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::
|
|
58
|
+
items: ::Array[Yoomoney::ReceiptData::Item],
|
|
59
59
|
customer: Yoomoney::ReceiptDataCustomer,
|
|
60
60
|
internet: bool,
|
|
61
61
|
receipt_industry_details: ::Array[Yoomoney::IndustryDetails],
|
|
@@ -63,6 +63,130 @@ 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
|
|
66
190
|
end
|
|
67
191
|
end
|
|
68
192
|
end
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
module Yoomoney
|
|
2
2
|
module Models
|
|
3
3
|
type receipt_retrieve_params =
|
|
4
|
-
{
|
|
4
|
+
{ receipt_id: String } & Yoomoney::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class ReceiptRetrieveParams < Yoomoney::Internal::Type::BaseModel
|
|
7
7
|
extend Yoomoney::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Yoomoney::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
attr_accessor receipt_id: String
|
|
11
11
|
|
|
12
|
-
def
|
|
12
|
+
def initialize: (
|
|
13
|
+
receipt_id: String,
|
|
14
|
+
?request_options: Yoomoney::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
receipt_id: String,
|
|
19
|
+
request_options: Yoomoney::RequestOptions
|
|
20
|
+
}
|
|
13
21
|
end
|
|
14
22
|
end
|
|
15
23
|
end
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
module Yoomoney
|
|
2
2
|
module Models
|
|
3
3
|
type refund_retrieve_params =
|
|
4
|
-
{
|
|
4
|
+
{ refund_id: String } & Yoomoney::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class RefundRetrieveParams < Yoomoney::Internal::Type::BaseModel
|
|
7
7
|
extend Yoomoney::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Yoomoney::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
attr_accessor refund_id: String
|
|
11
11
|
|
|
12
|
-
def
|
|
12
|
+
def initialize: (
|
|
13
|
+
refund_id: String,
|
|
14
|
+
?request_options: Yoomoney::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
refund_id: String,
|
|
19
|
+
request_options: Yoomoney::RequestOptions
|
|
20
|
+
}
|
|
13
21
|
end
|
|
14
22
|
end
|
|
15
23
|
end
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
module Yoomoney
|
|
2
2
|
module Models
|
|
3
3
|
type webhook_delete_params =
|
|
4
|
-
{
|
|
4
|
+
{ webhook_id: String } & Yoomoney::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class WebhookDeleteParams < Yoomoney::Internal::Type::BaseModel
|
|
7
7
|
extend Yoomoney::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Yoomoney::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
attr_accessor webhook_id: String
|
|
11
11
|
|
|
12
|
-
def
|
|
12
|
+
def initialize: (
|
|
13
|
+
webhook_id: String,
|
|
14
|
+
?request_options: Yoomoney::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
webhook_id: String,
|
|
19
|
+
request_options: Yoomoney::RequestOptions
|
|
20
|
+
}
|
|
13
21
|
end
|
|
14
22
|
end
|
|
15
23
|
end
|
data/sig/yoomoney/models.rbs
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
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
|
-
|
|
8
4
|
class B2bSberbankCalculatedVatData = Yoomoney::Models::B2bSberbankCalculatedVatData
|
|
9
5
|
|
|
10
6
|
class B2bSberbankMixedVatData = Yoomoney::Models::B2bSberbankMixedVatData
|
|
@@ -135,8 +131,6 @@ module Yoomoney
|
|
|
135
131
|
|
|
136
132
|
class ReceiptDataCustomer = Yoomoney::Models::ReceiptDataCustomer
|
|
137
133
|
|
|
138
|
-
class ReceiptDataItem = Yoomoney::Models::ReceiptDataItem
|
|
139
|
-
|
|
140
134
|
module ReceiptItemAgentType = Yoomoney::Models::ReceiptItemAgentType
|
|
141
135
|
|
|
142
136
|
module ReceiptItemMeasure = Yoomoney::Models::ReceiptItemMeasure
|
|
@@ -2,12 +2,8 @@ module Yoomoney
|
|
|
2
2
|
module Resources
|
|
3
3
|
class PersonalData
|
|
4
4
|
def create: (
|
|
5
|
-
|
|
6
|
-
last_name: String,
|
|
7
|
-
type: Yoomoney::Models::personal_data_type,
|
|
5
|
+
body: Yoomoney::Models::PersonalDataCreateParams::body,
|
|
8
6
|
idempotence_key: String,
|
|
9
|
-
?metadata: ::Hash[Symbol, String],
|
|
10
|
-
?middle_name: String,
|
|
11
7
|
?request_options: Yoomoney::request_opts
|
|
12
8
|
) -> Yoomoney::PersonalDataAPI
|
|
13
9
|
|
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.
|
|
4
|
+
version: 0.4.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Yoomoney
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-03-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|
|
@@ -70,8 +70,6 @@ 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
|
|
75
73
|
- lib/yoomoney/models/b2b_sberbank_calculated_vat_data.rb
|
|
76
74
|
- lib/yoomoney/models/b2b_sberbank_mixed_vat_data.rb
|
|
77
75
|
- lib/yoomoney/models/b2b_sberbank_untaxed_vat_data.rb
|
|
@@ -140,7 +138,6 @@ files:
|
|
|
140
138
|
- lib/yoomoney/models/receipt_create_params.rb
|
|
141
139
|
- lib/yoomoney/models/receipt_data.rb
|
|
142
140
|
- lib/yoomoney/models/receipt_data_customer.rb
|
|
143
|
-
- lib/yoomoney/models/receipt_data_item.rb
|
|
144
141
|
- lib/yoomoney/models/receipt_item_agent_type.rb
|
|
145
142
|
- lib/yoomoney/models/receipt_item_measure.rb
|
|
146
143
|
- lib/yoomoney/models/receipt_item_payment_mode.rb
|
|
@@ -211,8 +208,6 @@ files:
|
|
|
211
208
|
- rbi/yoomoney/internal/util.rbi
|
|
212
209
|
- rbi/yoomoney/models.rbi
|
|
213
210
|
- rbi/yoomoney/models/airline.rbi
|
|
214
|
-
- rbi/yoomoney/models/airline_leg.rbi
|
|
215
|
-
- rbi/yoomoney/models/airline_passenger.rbi
|
|
216
211
|
- rbi/yoomoney/models/b2b_sberbank_calculated_vat_data.rbi
|
|
217
212
|
- rbi/yoomoney/models/b2b_sberbank_mixed_vat_data.rbi
|
|
218
213
|
- rbi/yoomoney/models/b2b_sberbank_untaxed_vat_data.rbi
|
|
@@ -281,7 +276,6 @@ files:
|
|
|
281
276
|
- rbi/yoomoney/models/receipt_create_params.rbi
|
|
282
277
|
- rbi/yoomoney/models/receipt_data.rbi
|
|
283
278
|
- rbi/yoomoney/models/receipt_data_customer.rbi
|
|
284
|
-
- rbi/yoomoney/models/receipt_data_item.rbi
|
|
285
279
|
- rbi/yoomoney/models/receipt_item_agent_type.rbi
|
|
286
280
|
- rbi/yoomoney/models/receipt_item_measure.rbi
|
|
287
281
|
- rbi/yoomoney/models/receipt_item_payment_mode.rbi
|
|
@@ -351,8 +345,6 @@ files:
|
|
|
351
345
|
- sig/yoomoney/internal/util.rbs
|
|
352
346
|
- sig/yoomoney/models.rbs
|
|
353
347
|
- sig/yoomoney/models/airline.rbs
|
|
354
|
-
- sig/yoomoney/models/airline_leg.rbs
|
|
355
|
-
- sig/yoomoney/models/airline_passenger.rbs
|
|
356
348
|
- sig/yoomoney/models/b2b_sberbank_calculated_vat_data.rbs
|
|
357
349
|
- sig/yoomoney/models/b2b_sberbank_mixed_vat_data.rbs
|
|
358
350
|
- sig/yoomoney/models/b2b_sberbank_untaxed_vat_data.rbs
|
|
@@ -421,7 +413,6 @@ files:
|
|
|
421
413
|
- sig/yoomoney/models/receipt_create_params.rbs
|
|
422
414
|
- sig/yoomoney/models/receipt_data.rbs
|
|
423
415
|
- sig/yoomoney/models/receipt_data_customer.rbs
|
|
424
|
-
- sig/yoomoney/models/receipt_data_item.rbs
|
|
425
416
|
- sig/yoomoney/models/receipt_item_agent_type.rbs
|
|
426
417
|
- sig/yoomoney/models/receipt_item_measure.rbs
|
|
427
418
|
- sig/yoomoney/models/receipt_item_payment_mode.rbs
|