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.
Files changed (75) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +26 -0
  3. data/README.md +1 -1
  4. data/lib/yoomoney/internal/util.rb +31 -0
  5. data/lib/yoomoney/models/airline.rb +50 -6
  6. data/lib/yoomoney/models/deal_retrieve_params.rb +7 -1
  7. data/lib/yoomoney/models/invoice_retrieve_params.rb +7 -1
  8. data/lib/yoomoney/models/payment_cancel_params.rb +7 -1
  9. data/lib/yoomoney/models/payment_capture_params.rb +8 -1
  10. data/lib/yoomoney/models/payment_method_retrieve_params.rb +7 -1
  11. data/lib/yoomoney/models/payment_retrieve_params.rb +7 -1
  12. data/lib/yoomoney/models/payout_retrieve_params.rb +7 -1
  13. data/lib/yoomoney/models/personal_data_create_params.rb +70 -46
  14. data/lib/yoomoney/models/personal_data_retrieve_params.rb +7 -1
  15. data/lib/yoomoney/models/receipt_create_params.rb +120 -2
  16. data/lib/yoomoney/models/receipt_data.rb +123 -3
  17. data/lib/yoomoney/models/receipt_retrieve_params.rb +7 -1
  18. data/lib/yoomoney/models/refund_retrieve_params.rb +7 -1
  19. data/lib/yoomoney/models/webhook_delete_params.rb +7 -1
  20. data/lib/yoomoney/models.rb +0 -6
  21. data/lib/yoomoney/resources/deals.rb +2 -1
  22. data/lib/yoomoney/resources/me.rb +2 -1
  23. data/lib/yoomoney/resources/payments.rb +2 -1
  24. data/lib/yoomoney/resources/payouts.rb +4 -2
  25. data/lib/yoomoney/resources/personal_data.rb +4 -16
  26. data/lib/yoomoney/resources/receipts.rb +2 -1
  27. data/lib/yoomoney/resources/refunds.rb +2 -1
  28. data/lib/yoomoney/version.rb +1 -1
  29. data/lib/yoomoney.rb +1 -4
  30. data/rbi/yoomoney/internal/util.rbi +20 -0
  31. data/rbi/yoomoney/models/airline.rbi +84 -8
  32. data/rbi/yoomoney/models/deal_retrieve_params.rbi +13 -5
  33. data/rbi/yoomoney/models/invoice_retrieve_params.rbi +13 -5
  34. data/rbi/yoomoney/models/payment_cancel_params.rbi +10 -2
  35. data/rbi/yoomoney/models/payment_capture_params.rbi +6 -0
  36. data/rbi/yoomoney/models/payment_method_retrieve_params.rbi +16 -5
  37. data/rbi/yoomoney/models/payment_retrieve_params.rbi +13 -5
  38. data/rbi/yoomoney/models/payout_retrieve_params.rbi +13 -5
  39. data/rbi/yoomoney/models/personal_data_create_params.rbi +140 -55
  40. data/rbi/yoomoney/models/personal_data_retrieve_params.rbi +16 -5
  41. data/rbi/yoomoney/models/receipt_create_params.rbi +159 -1
  42. data/rbi/yoomoney/models/receipt_data.rbi +185 -3
  43. data/rbi/yoomoney/models/receipt_retrieve_params.rbi +13 -5
  44. data/rbi/yoomoney/models/refund_retrieve_params.rbi +13 -5
  45. data/rbi/yoomoney/models/webhook_delete_params.rbi +13 -5
  46. data/rbi/yoomoney/models.rbi +0 -6
  47. data/rbi/yoomoney/resources/personal_data.rbi +7 -19
  48. data/sig/yoomoney/internal/util.rbs +10 -0
  49. data/sig/yoomoney/models/airline.rbs +58 -12
  50. data/sig/yoomoney/models/deal_retrieve_params.rbs +11 -3
  51. data/sig/yoomoney/models/invoice_retrieve_params.rbs +11 -3
  52. data/sig/yoomoney/models/payment_cancel_params.rbs +6 -1
  53. data/sig/yoomoney/models/payment_capture_params.rbs +5 -0
  54. data/sig/yoomoney/models/payment_method_retrieve_params.rbs +12 -3
  55. data/sig/yoomoney/models/payment_retrieve_params.rbs +11 -3
  56. data/sig/yoomoney/models/payout_retrieve_params.rbs +11 -3
  57. data/sig/yoomoney/models/personal_data_create_params.rbs +73 -29
  58. data/sig/yoomoney/models/personal_data_retrieve_params.rbs +12 -3
  59. data/sig/yoomoney/models/receipt_create_params.rbs +119 -7
  60. data/sig/yoomoney/models/receipt_data.rbs +128 -4
  61. data/sig/yoomoney/models/receipt_retrieve_params.rbs +11 -3
  62. data/sig/yoomoney/models/refund_retrieve_params.rbs +11 -3
  63. data/sig/yoomoney/models/webhook_delete_params.rbs +11 -3
  64. data/sig/yoomoney/models.rbs +0 -6
  65. data/sig/yoomoney/resources/personal_data.rbs +1 -5
  66. metadata +2 -11
  67. data/lib/yoomoney/models/airline_leg.rb +0 -33
  68. data/lib/yoomoney/models/airline_passenger.rb +0 -21
  69. data/lib/yoomoney/models/receipt_data_item.rb +0 -125
  70. data/rbi/yoomoney/models/airline_leg.rbi +0 -56
  71. data/rbi/yoomoney/models/airline_passenger.rbi +0 -28
  72. data/rbi/yoomoney/models/receipt_data_item.rbi +0 -185
  73. data/sig/yoomoney/models/airline_leg.rbs +0 -37
  74. data/sig/yoomoney/models/airline_passenger.rbs +0 -15
  75. data/sig/yoomoney/models/receipt_data_item.rbs +0 -127
@@ -8,7 +8,7 @@ module Yoomoney
8
8
  T.any(Yoomoney::ReceiptData, Yoomoney::Internal::AnyHash)
9
9
  end
10
10
 
11
- sig { returns(T::Array[Yoomoney::ReceiptDataItem]) }
11
+ sig { returns(T::Array[Yoomoney::ReceiptData::Item]) }
12
12
  attr_accessor :items
13
13
 
14
14
  sig { returns(T.nilable(Yoomoney::ReceiptDataCustomer)) }
@@ -57,7 +57,7 @@ module Yoomoney
57
57
 
58
58
  sig do
59
59
  params(
60
- items: T::Array[Yoomoney::ReceiptDataItem::OrHash],
60
+ items: T::Array[Yoomoney::ReceiptData::Item::OrHash],
61
61
  customer: Yoomoney::ReceiptDataCustomer::OrHash,
62
62
  internet: T::Boolean,
63
63
  receipt_industry_details: T::Array[Yoomoney::IndustryDetails::OrHash],
@@ -80,7 +80,7 @@ module Yoomoney
80
80
  sig do
81
81
  override.returns(
82
82
  {
83
- items: T::Array[Yoomoney::ReceiptDataItem],
83
+ items: T::Array[Yoomoney::ReceiptData::Item],
84
84
  customer: Yoomoney::ReceiptDataCustomer,
85
85
  internet: T::Boolean,
86
86
  receipt_industry_details: T::Array[Yoomoney::IndustryDetails],
@@ -92,6 +92,188 @@ module Yoomoney
92
92
  end
93
93
  def to_hash
94
94
  end
95
+
96
+ class Item < Yoomoney::Internal::Type::BaseModel
97
+ OrHash =
98
+ T.type_alias do
99
+ T.any(Yoomoney::ReceiptData::Item, Yoomoney::Internal::AnyHash)
100
+ end
101
+
102
+ # Сумма.
103
+ sig { returns(Yoomoney::MonetaryAmount) }
104
+ attr_reader :amount
105
+
106
+ sig { params(amount: Yoomoney::MonetaryAmount::OrHash).void }
107
+ attr_writer :amount
108
+
109
+ # Название товара.
110
+ sig { returns(String) }
111
+ attr_accessor :description
112
+
113
+ # Количество.
114
+ sig { returns(Float) }
115
+ attr_accessor :quantity
116
+
117
+ # Ставка НДС.
118
+ sig { returns(Integer) }
119
+ attr_accessor :vat_code
120
+
121
+ sig { returns(T.nilable(String)) }
122
+ attr_reader :country_of_origin_code
123
+
124
+ sig { params(country_of_origin_code: String).void }
125
+ attr_writer :country_of_origin_code
126
+
127
+ sig { returns(T.nilable(String)) }
128
+ attr_reader :customs_declaration_number
129
+
130
+ sig { params(customs_declaration_number: String).void }
131
+ attr_writer :customs_declaration_number
132
+
133
+ sig { returns(T.nilable(String)) }
134
+ attr_reader :excise
135
+
136
+ sig { params(excise: String).void }
137
+ attr_writer :excise
138
+
139
+ sig { returns(T.nilable(Yoomoney::MarkCodeInfo)) }
140
+ attr_reader :mark_code_info
141
+
142
+ sig { params(mark_code_info: Yoomoney::MarkCodeInfo::OrHash).void }
143
+ attr_writer :mark_code_info
144
+
145
+ sig { returns(T.nilable(String)) }
146
+ attr_reader :mark_mode
147
+
148
+ sig { params(mark_mode: String).void }
149
+ attr_writer :mark_mode
150
+
151
+ sig { returns(T.nilable(Yoomoney::MarkQuantity)) }
152
+ attr_reader :mark_quantity
153
+
154
+ sig { params(mark_quantity: Yoomoney::MarkQuantity::OrHash).void }
155
+ attr_writer :mark_quantity
156
+
157
+ sig { returns(T.nilable(Yoomoney::ReceiptItemMeasure::OrSymbol)) }
158
+ attr_reader :measure
159
+
160
+ sig { params(measure: Yoomoney::ReceiptItemMeasure::OrSymbol).void }
161
+ attr_writer :measure
162
+
163
+ sig { returns(T.nilable(Yoomoney::ReceiptItemPaymentMode::OrSymbol)) }
164
+ attr_reader :payment_mode
165
+
166
+ sig do
167
+ params(payment_mode: Yoomoney::ReceiptItemPaymentMode::OrSymbol).void
168
+ end
169
+ attr_writer :payment_mode
170
+
171
+ sig do
172
+ returns(T.nilable(Yoomoney::ReceiptItemPaymentSubject::OrSymbol))
173
+ end
174
+ attr_reader :payment_subject
175
+
176
+ sig do
177
+ params(
178
+ payment_subject: Yoomoney::ReceiptItemPaymentSubject::OrSymbol
179
+ ).void
180
+ end
181
+ attr_writer :payment_subject
182
+
183
+ sig { returns(T.nilable(T::Array[Yoomoney::IndustryDetails])) }
184
+ attr_reader :payment_subject_industry_details
185
+
186
+ sig do
187
+ params(
188
+ payment_subject_industry_details:
189
+ T::Array[Yoomoney::IndustryDetails::OrHash]
190
+ ).void
191
+ end
192
+ attr_writer :payment_subject_industry_details
193
+
194
+ sig { returns(T.nilable(Integer)) }
195
+ attr_reader :planned_status
196
+
197
+ sig { params(planned_status: Integer).void }
198
+ attr_writer :planned_status
199
+
200
+ sig { returns(T.nilable(String)) }
201
+ attr_reader :product_code
202
+
203
+ sig { params(product_code: String).void }
204
+ attr_writer :product_code
205
+
206
+ sig do
207
+ params(
208
+ amount: Yoomoney::MonetaryAmount::OrHash,
209
+ description: String,
210
+ quantity: Float,
211
+ vat_code: Integer,
212
+ country_of_origin_code: String,
213
+ customs_declaration_number: String,
214
+ excise: String,
215
+ mark_code_info: Yoomoney::MarkCodeInfo::OrHash,
216
+ mark_mode: String,
217
+ mark_quantity: Yoomoney::MarkQuantity::OrHash,
218
+ measure: Yoomoney::ReceiptItemMeasure::OrSymbol,
219
+ payment_mode: Yoomoney::ReceiptItemPaymentMode::OrSymbol,
220
+ payment_subject: Yoomoney::ReceiptItemPaymentSubject::OrSymbol,
221
+ payment_subject_industry_details:
222
+ T::Array[Yoomoney::IndustryDetails::OrHash],
223
+ planned_status: Integer,
224
+ product_code: String
225
+ ).returns(T.attached_class)
226
+ end
227
+ def self.new(
228
+ # Сумма.
229
+ amount:,
230
+ # Название товара.
231
+ description:,
232
+ # Количество.
233
+ quantity:,
234
+ # Ставка НДС.
235
+ vat_code:,
236
+ country_of_origin_code: nil,
237
+ customs_declaration_number: nil,
238
+ excise: nil,
239
+ mark_code_info: nil,
240
+ mark_mode: nil,
241
+ mark_quantity: nil,
242
+ measure: nil,
243
+ payment_mode: nil,
244
+ payment_subject: nil,
245
+ payment_subject_industry_details: nil,
246
+ planned_status: nil,
247
+ product_code: nil
248
+ )
249
+ end
250
+
251
+ sig do
252
+ override.returns(
253
+ {
254
+ amount: Yoomoney::MonetaryAmount,
255
+ description: String,
256
+ quantity: Float,
257
+ vat_code: Integer,
258
+ country_of_origin_code: String,
259
+ customs_declaration_number: String,
260
+ excise: String,
261
+ mark_code_info: Yoomoney::MarkCodeInfo,
262
+ mark_mode: String,
263
+ mark_quantity: Yoomoney::MarkQuantity,
264
+ measure: Yoomoney::ReceiptItemMeasure::OrSymbol,
265
+ payment_mode: Yoomoney::ReceiptItemPaymentMode::OrSymbol,
266
+ payment_subject: Yoomoney::ReceiptItemPaymentSubject::OrSymbol,
267
+ payment_subject_industry_details:
268
+ T::Array[Yoomoney::IndustryDetails],
269
+ planned_status: Integer,
270
+ product_code: String
271
+ }
272
+ )
273
+ end
274
+ def to_hash
275
+ end
276
+ end
95
277
  end
96
278
  end
97
279
  end
@@ -11,15 +11,23 @@ module Yoomoney
11
11
  T.any(Yoomoney::ReceiptRetrieveParams, Yoomoney::Internal::AnyHash)
12
12
  end
13
13
 
14
+ sig { returns(String) }
15
+ attr_accessor :receipt_id
16
+
14
17
  sig do
15
- params(request_options: Yoomoney::RequestOptions::OrHash).returns(
16
- T.attached_class
17
- )
18
+ params(
19
+ receipt_id: String,
20
+ request_options: Yoomoney::RequestOptions::OrHash
21
+ ).returns(T.attached_class)
18
22
  end
19
- def self.new(request_options: {})
23
+ def self.new(receipt_id:, request_options: {})
20
24
  end
21
25
 
22
- sig { override.returns({ request_options: Yoomoney::RequestOptions }) }
26
+ sig do
27
+ override.returns(
28
+ { receipt_id: String, request_options: Yoomoney::RequestOptions }
29
+ )
30
+ end
23
31
  def to_hash
24
32
  end
25
33
  end
@@ -11,15 +11,23 @@ module Yoomoney
11
11
  T.any(Yoomoney::RefundRetrieveParams, Yoomoney::Internal::AnyHash)
12
12
  end
13
13
 
14
+ sig { returns(String) }
15
+ attr_accessor :refund_id
16
+
14
17
  sig do
15
- params(request_options: Yoomoney::RequestOptions::OrHash).returns(
16
- T.attached_class
17
- )
18
+ params(
19
+ refund_id: String,
20
+ request_options: Yoomoney::RequestOptions::OrHash
21
+ ).returns(T.attached_class)
18
22
  end
19
- def self.new(request_options: {})
23
+ def self.new(refund_id:, request_options: {})
20
24
  end
21
25
 
22
- sig { override.returns({ request_options: Yoomoney::RequestOptions }) }
26
+ sig do
27
+ override.returns(
28
+ { refund_id: String, request_options: Yoomoney::RequestOptions }
29
+ )
30
+ end
23
31
  def to_hash
24
32
  end
25
33
  end
@@ -11,15 +11,23 @@ module Yoomoney
11
11
  T.any(Yoomoney::WebhookDeleteParams, Yoomoney::Internal::AnyHash)
12
12
  end
13
13
 
14
+ sig { returns(String) }
15
+ attr_accessor :webhook_id
16
+
14
17
  sig do
15
- params(request_options: Yoomoney::RequestOptions::OrHash).returns(
16
- T.attached_class
17
- )
18
+ params(
19
+ webhook_id: String,
20
+ request_options: Yoomoney::RequestOptions::OrHash
21
+ ).returns(T.attached_class)
18
22
  end
19
- def self.new(request_options: {})
23
+ def self.new(webhook_id:, request_options: {})
20
24
  end
21
25
 
22
- sig { override.returns({ request_options: Yoomoney::RequestOptions }) }
26
+ sig do
27
+ override.returns(
28
+ { webhook_id: String, request_options: Yoomoney::RequestOptions }
29
+ )
30
+ end
23
31
  def to_hash
24
32
  end
25
33
  end
@@ -3,10 +3,6 @@
3
3
  module Yoomoney
4
4
  Airline = Yoomoney::Models::Airline
5
5
 
6
- AirlineLeg = Yoomoney::Models::AirlineLeg
7
-
8
- AirlinePassenger = Yoomoney::Models::AirlinePassenger
9
-
10
6
  B2bSberbankCalculatedVatData = Yoomoney::Models::B2bSberbankCalculatedVatData
11
7
 
12
8
  B2bSberbankMixedVatData = Yoomoney::Models::B2bSberbankMixedVatData
@@ -139,8 +135,6 @@ module Yoomoney
139
135
 
140
136
  ReceiptDataCustomer = Yoomoney::Models::ReceiptDataCustomer
141
137
 
142
- ReceiptDataItem = Yoomoney::Models::ReceiptDataItem
143
-
144
138
  ReceiptItemAgentType = Yoomoney::Models::ReceiptItemAgentType
145
139
 
146
140
  ReceiptItemMeasure = Yoomoney::Models::ReceiptItemMeasure
@@ -6,32 +6,20 @@ module Yoomoney
6
6
  # Создание персональных данных
7
7
  sig do
8
8
  params(
9
- first_name: String,
10
- last_name: String,
11
- type: Yoomoney::PersonalDataType::OrSymbol,
9
+ body:
10
+ T.any(
11
+ Yoomoney::PersonalDataCreateParams::Body::SbpPayoutRecipientPersonalDataRequest::OrHash,
12
+ Yoomoney::PersonalDataCreateParams::Body::PayoutStatementRecipientPersonalDataRequest::OrHash
13
+ ),
12
14
  idempotence_key: String,
13
- metadata: T::Hash[Symbol, String],
14
- middle_name: String,
15
15
  request_options: Yoomoney::RequestOptions::OrHash
16
16
  ).returns(Yoomoney::PersonalDataAPI)
17
17
  end
18
18
  def create(
19
- # Body param: Имя.
20
- first_name:,
21
- # Body param: Фамилия.
22
- last_name:,
23
- # Body param: Тип персональных данных.
24
- type:,
19
+ # Body param
20
+ body:,
25
21
  # Header param
26
22
  idempotence_key:,
27
- # Body param: Любые дополнительные данные, которые нужны вам для работы (например,
28
- # номер заказа). Передаются в виде набора пар «ключ-значение» и возвращаются в
29
- # ответе от ЮKassa. Ограничения: максимум 16 ключей, имя ключа не больше 32
30
- # символов, значение ключа не больше 512 символов, тип данных — строка в формате
31
- # UTF-8.
32
- metadata: nil,
33
- # Body param: Отчество.
34
- middle_name: nil,
35
23
  request_options: {}
36
24
  )
37
25
  end
@@ -106,6 +106,16 @@ module Yoomoney
106
106
  JSON_CONTENT: Regexp
107
107
  JSONL_CONTENT: Regexp
108
108
 
109
+ def encode_query_params: (
110
+ ::Hash[Symbol, top] query
111
+ ) -> ::Hash[Symbol, top]
112
+
113
+ private def write_query_param_element!: (
114
+ ::Hash[Symbol, top] collection,
115
+ String key,
116
+ top element
117
+ ) -> nil
118
+
109
119
  def self?.write_multipart_content: (
110
120
  Enumerator::Yielder y,
111
121
  val: top,
@@ -3,8 +3,8 @@ module Yoomoney
3
3
  type airline =
4
4
  {
5
5
  booking_reference: String,
6
- legs: ::Array[Yoomoney::AirlineLeg],
7
- passengers: ::Array[Yoomoney::AirlinePassenger],
6
+ legs: ::Array[Yoomoney::Airline::Leg],
7
+ passengers: ::Array[Yoomoney::Airline::Passenger],
8
8
  ticket_number: String
9
9
  }
10
10
 
@@ -13,17 +13,17 @@ module Yoomoney
13
13
 
14
14
  def booking_reference=: (String) -> String
15
15
 
16
- attr_reader legs: ::Array[Yoomoney::AirlineLeg]?
16
+ attr_reader legs: ::Array[Yoomoney::Airline::Leg]?
17
17
 
18
18
  def legs=: (
19
- ::Array[Yoomoney::AirlineLeg]
20
- ) -> ::Array[Yoomoney::AirlineLeg]
19
+ ::Array[Yoomoney::Airline::Leg]
20
+ ) -> ::Array[Yoomoney::Airline::Leg]
21
21
 
22
- attr_reader passengers: ::Array[Yoomoney::AirlinePassenger]?
22
+ attr_reader passengers: ::Array[Yoomoney::Airline::Passenger]?
23
23
 
24
24
  def passengers=: (
25
- ::Array[Yoomoney::AirlinePassenger]
26
- ) -> ::Array[Yoomoney::AirlinePassenger]
25
+ ::Array[Yoomoney::Airline::Passenger]
26
+ ) -> ::Array[Yoomoney::Airline::Passenger]
27
27
 
28
28
  attr_reader ticket_number: String?
29
29
 
@@ -31,17 +31,63 @@ module Yoomoney
31
31
 
32
32
  def initialize: (
33
33
  ?booking_reference: String,
34
- ?legs: ::Array[Yoomoney::AirlineLeg],
35
- ?passengers: ::Array[Yoomoney::AirlinePassenger],
34
+ ?legs: ::Array[Yoomoney::Airline::Leg],
35
+ ?passengers: ::Array[Yoomoney::Airline::Passenger],
36
36
  ?ticket_number: String
37
37
  ) -> void
38
38
 
39
39
  def to_hash: -> {
40
40
  booking_reference: String,
41
- legs: ::Array[Yoomoney::AirlineLeg],
42
- passengers: ::Array[Yoomoney::AirlinePassenger],
41
+ legs: ::Array[Yoomoney::Airline::Leg],
42
+ passengers: ::Array[Yoomoney::Airline::Passenger],
43
43
  ticket_number: String
44
44
  }
45
+
46
+ type leg =
47
+ {
48
+ departure_airport: String,
49
+ departure_date: String,
50
+ destination_airport: String,
51
+ carrier_code: String
52
+ }
53
+
54
+ class Leg < Yoomoney::Internal::Type::BaseModel
55
+ attr_accessor departure_airport: String
56
+
57
+ attr_accessor departure_date: String
58
+
59
+ attr_accessor destination_airport: String
60
+
61
+ attr_reader carrier_code: String?
62
+
63
+ def carrier_code=: (String) -> String
64
+
65
+ def initialize: (
66
+ departure_airport: String,
67
+ departure_date: String,
68
+ destination_airport: String,
69
+ ?carrier_code: String
70
+ ) -> void
71
+
72
+ def to_hash: -> {
73
+ departure_airport: String,
74
+ departure_date: String,
75
+ destination_airport: String,
76
+ carrier_code: String
77
+ }
78
+ end
79
+
80
+ type passenger = { first_name: String, last_name: String }
81
+
82
+ class Passenger < Yoomoney::Internal::Type::BaseModel
83
+ attr_accessor first_name: String
84
+
85
+ attr_accessor last_name: String
86
+
87
+ def initialize: (first_name: String, last_name: String) -> void
88
+
89
+ def to_hash: -> { first_name: String, last_name: String }
90
+ end
45
91
  end
46
92
  end
47
93
  end
@@ -1,15 +1,23 @@
1
1
  module Yoomoney
2
2
  module Models
3
3
  type deal_retrieve_params =
4
- { } & Yoomoney::Internal::Type::request_parameters
4
+ { deal_id: String } & Yoomoney::Internal::Type::request_parameters
5
5
 
6
6
  class DealRetrieveParams < Yoomoney::Internal::Type::BaseModel
7
7
  extend Yoomoney::Internal::Type::RequestParameters::Converter
8
8
  include Yoomoney::Internal::Type::RequestParameters
9
9
 
10
- def initialize: (?request_options: Yoomoney::request_opts) -> void
10
+ attr_accessor deal_id: String
11
11
 
12
- def to_hash: -> { request_options: Yoomoney::RequestOptions }
12
+ def initialize: (
13
+ deal_id: String,
14
+ ?request_options: Yoomoney::request_opts
15
+ ) -> void
16
+
17
+ def to_hash: -> {
18
+ deal_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 invoice_retrieve_params =
4
- { } & Yoomoney::Internal::Type::request_parameters
4
+ { invoice_id: String } & Yoomoney::Internal::Type::request_parameters
5
5
 
6
6
  class InvoiceRetrieveParams < Yoomoney::Internal::Type::BaseModel
7
7
  extend Yoomoney::Internal::Type::RequestParameters::Converter
8
8
  include Yoomoney::Internal::Type::RequestParameters
9
9
 
10
- def initialize: (?request_options: Yoomoney::request_opts) -> void
10
+ attr_accessor invoice_id: String
11
11
 
12
- def to_hash: -> { request_options: Yoomoney::RequestOptions }
12
+ def initialize: (
13
+ invoice_id: String,
14
+ ?request_options: Yoomoney::request_opts
15
+ ) -> void
16
+
17
+ def to_hash: -> {
18
+ invoice_id: String,
19
+ request_options: Yoomoney::RequestOptions
20
+ }
13
21
  end
14
22
  end
15
23
  end
@@ -1,20 +1,25 @@
1
1
  module Yoomoney
2
2
  module Models
3
3
  type payment_cancel_params =
4
- { idempotence_key: String } & Yoomoney::Internal::Type::request_parameters
4
+ { payment_id: String, idempotence_key: String }
5
+ & Yoomoney::Internal::Type::request_parameters
5
6
 
6
7
  class PaymentCancelParams < Yoomoney::Internal::Type::BaseModel
7
8
  extend Yoomoney::Internal::Type::RequestParameters::Converter
8
9
  include Yoomoney::Internal::Type::RequestParameters
9
10
 
11
+ attr_accessor payment_id: String
12
+
10
13
  attr_accessor idempotence_key: String
11
14
 
12
15
  def initialize: (
16
+ payment_id: String,
13
17
  idempotence_key: String,
14
18
  ?request_options: Yoomoney::request_opts
15
19
  ) -> void
16
20
 
17
21
  def to_hash: -> {
22
+ payment_id: String,
18
23
  idempotence_key: String,
19
24
  request_options: Yoomoney::RequestOptions
20
25
  }
@@ -2,6 +2,7 @@ module Yoomoney
2
2
  module Models
3
3
  type payment_capture_params =
4
4
  {
5
+ payment_id: String,
5
6
  idempotence_key: String,
6
7
  airline: Yoomoney::Airline,
7
8
  amount: Yoomoney::MonetaryAmount,
@@ -15,6 +16,8 @@ module Yoomoney
15
16
  extend Yoomoney::Internal::Type::RequestParameters::Converter
16
17
  include Yoomoney::Internal::Type::RequestParameters
17
18
 
19
+ attr_accessor payment_id: String
20
+
18
21
  attr_accessor idempotence_key: String
19
22
 
20
23
  attr_reader airline: Yoomoney::Airline?
@@ -40,6 +43,7 @@ module Yoomoney
40
43
  ) -> ::Array[Yoomoney::TransferData]
41
44
 
42
45
  def initialize: (
46
+ payment_id: String,
43
47
  idempotence_key: String,
44
48
  ?airline: Yoomoney::Airline,
45
49
  ?amount: Yoomoney::MonetaryAmount,
@@ -50,6 +54,7 @@ module Yoomoney
50
54
  ) -> void
51
55
 
52
56
  def to_hash: -> {
57
+ payment_id: String,
53
58
  idempotence_key: String,
54
59
  airline: Yoomoney::Airline,
55
60
  amount: Yoomoney::MonetaryAmount,
@@ -1,15 +1,24 @@
1
1
  module Yoomoney
2
2
  module Models
3
3
  type payment_method_retrieve_params =
4
- { } & Yoomoney::Internal::Type::request_parameters
4
+ { payment_method_id: String }
5
+ & Yoomoney::Internal::Type::request_parameters
5
6
 
6
7
  class PaymentMethodRetrieveParams < Yoomoney::Internal::Type::BaseModel
7
8
  extend Yoomoney::Internal::Type::RequestParameters::Converter
8
9
  include Yoomoney::Internal::Type::RequestParameters
9
10
 
10
- def initialize: (?request_options: Yoomoney::request_opts) -> void
11
+ attr_accessor payment_method_id: String
11
12
 
12
- def to_hash: -> { request_options: Yoomoney::RequestOptions }
13
+ def initialize: (
14
+ payment_method_id: String,
15
+ ?request_options: Yoomoney::request_opts
16
+ ) -> void
17
+
18
+ def to_hash: -> {
19
+ payment_method_id: String,
20
+ request_options: Yoomoney::RequestOptions
21
+ }
13
22
  end
14
23
  end
15
24
  end
@@ -1,15 +1,23 @@
1
1
  module Yoomoney
2
2
  module Models
3
3
  type payment_retrieve_params =
4
- { } & Yoomoney::Internal::Type::request_parameters
4
+ { payment_id: String } & Yoomoney::Internal::Type::request_parameters
5
5
 
6
6
  class PaymentRetrieveParams < Yoomoney::Internal::Type::BaseModel
7
7
  extend Yoomoney::Internal::Type::RequestParameters::Converter
8
8
  include Yoomoney::Internal::Type::RequestParameters
9
9
 
10
- def initialize: (?request_options: Yoomoney::request_opts) -> void
10
+ attr_accessor payment_id: String
11
11
 
12
- def to_hash: -> { request_options: Yoomoney::RequestOptions }
12
+ def initialize: (
13
+ payment_id: String,
14
+ ?request_options: Yoomoney::request_opts
15
+ ) -> void
16
+
17
+ def to_hash: -> {
18
+ payment_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 payout_retrieve_params =
4
- { } & Yoomoney::Internal::Type::request_parameters
4
+ { payout_id: String } & Yoomoney::Internal::Type::request_parameters
5
5
 
6
6
  class PayoutRetrieveParams < Yoomoney::Internal::Type::BaseModel
7
7
  extend Yoomoney::Internal::Type::RequestParameters::Converter
8
8
  include Yoomoney::Internal::Type::RequestParameters
9
9
 
10
- def initialize: (?request_options: Yoomoney::request_opts) -> void
10
+ attr_accessor payout_id: String
11
11
 
12
- def to_hash: -> { request_options: Yoomoney::RequestOptions }
12
+ def initialize: (
13
+ payout_id: String,
14
+ ?request_options: Yoomoney::request_opts
15
+ ) -> void
16
+
17
+ def to_hash: -> {
18
+ payout_id: String,
19
+ request_options: Yoomoney::RequestOptions
20
+ }
13
21
  end
14
22
  end
15
23
  end