yoomoney 0.1.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -0
- data/README.md +5 -2
- data/lib/yoomoney/client.rb +16 -4
- data/lib/yoomoney/internal/transport/base_client.rb +6 -0
- data/lib/yoomoney/models/airline.rb +6 -50
- data/lib/yoomoney/models/airline_leg.rb +33 -0
- data/lib/yoomoney/models/airline_passenger.rb +21 -0
- data/lib/yoomoney/models/payment_deal_info.rb +3 -19
- data/lib/yoomoney/models/receipt_create_params.rb +2 -120
- data/lib/yoomoney/models/receipt_data.rb +3 -123
- data/lib/yoomoney/models/receipt_data_item.rb +125 -0
- data/lib/yoomoney/models/refund.rb +3 -20
- data/lib/yoomoney/models/refund_create_params.rb +3 -20
- data/lib/yoomoney/models/settlement_payment_item.rb +21 -0
- data/lib/yoomoney/models/settlement_refund_item.rb +21 -0
- data/lib/yoomoney/models.rb +10 -0
- data/lib/yoomoney/version.rb +1 -1
- data/lib/yoomoney.rb +5 -0
- data/rbi/yoomoney/client.rbi +11 -4
- data/rbi/yoomoney/internal/transport/base_client.rbi +5 -0
- data/rbi/yoomoney/models/airline.rbi +8 -84
- data/rbi/yoomoney/models/airline_leg.rbi +56 -0
- data/rbi/yoomoney/models/airline_passenger.rbi +28 -0
- data/rbi/yoomoney/models/payment_deal_info.rbi +3 -45
- data/rbi/yoomoney/models/receipt_create_params.rbi +1 -159
- data/rbi/yoomoney/models/receipt_data.rbi +3 -185
- data/rbi/yoomoney/models/receipt_data_item.rbi +185 -0
- data/rbi/yoomoney/models/refund.rbi +3 -44
- data/rbi/yoomoney/models/refund_create_params.rbi +3 -52
- data/rbi/yoomoney/models/settlement_payment_item.rbi +41 -0
- data/rbi/yoomoney/models/settlement_refund_item.rbi +41 -0
- data/rbi/yoomoney/models.rbi +10 -0
- data/sig/yoomoney/client.rbs +2 -0
- data/sig/yoomoney/internal/transport/base_client.rbs +2 -0
- data/sig/yoomoney/models/airline.rbs +12 -58
- data/sig/yoomoney/models/airline_leg.rbs +37 -0
- data/sig/yoomoney/models/airline_passenger.rbs +15 -0
- data/sig/yoomoney/models/payment_deal_info.rbs +4 -29
- data/sig/yoomoney/models/receipt_create_params.rbs +7 -119
- data/sig/yoomoney/models/receipt_data.rbs +4 -128
- data/sig/yoomoney/models/receipt_data_item.rbs +127 -0
- data/sig/yoomoney/models/refund.rbs +4 -26
- data/sig/yoomoney/models/refund_create_params.rbs +4 -28
- data/sig/yoomoney/models/settlement_payment_item.rbs +25 -0
- data/sig/yoomoney/models/settlement_refund_item.rbs +25 -0
- data/sig/yoomoney/models.rbs +10 -0
- metadata +17 -2
|
@@ -146,20 +146,13 @@ module Yoomoney
|
|
|
146
146
|
end
|
|
147
147
|
|
|
148
148
|
# Данные о распределении денег.
|
|
149
|
-
sig
|
|
150
|
-
returns(
|
|
151
|
-
T::Array[Yoomoney::RefundCreateParams::Deal::RefundSettlement]
|
|
152
|
-
)
|
|
153
|
-
end
|
|
149
|
+
sig { returns(T::Array[Yoomoney::SettlementRefundItem]) }
|
|
154
150
|
attr_accessor :refund_settlements
|
|
155
151
|
|
|
156
152
|
# Данные о сделке.
|
|
157
153
|
sig do
|
|
158
154
|
params(
|
|
159
|
-
refund_settlements:
|
|
160
|
-
T::Array[
|
|
161
|
-
Yoomoney::RefundCreateParams::Deal::RefundSettlement::OrHash
|
|
162
|
-
]
|
|
155
|
+
refund_settlements: T::Array[Yoomoney::SettlementRefundItem::OrHash]
|
|
163
156
|
).returns(T.attached_class)
|
|
164
157
|
end
|
|
165
158
|
def self.new(
|
|
@@ -170,53 +163,11 @@ module Yoomoney
|
|
|
170
163
|
|
|
171
164
|
sig do
|
|
172
165
|
override.returns(
|
|
173
|
-
{
|
|
174
|
-
refund_settlements:
|
|
175
|
-
T::Array[Yoomoney::RefundCreateParams::Deal::RefundSettlement]
|
|
176
|
-
}
|
|
166
|
+
{ refund_settlements: T::Array[Yoomoney::SettlementRefundItem] }
|
|
177
167
|
)
|
|
178
168
|
end
|
|
179
169
|
def to_hash
|
|
180
170
|
end
|
|
181
|
-
|
|
182
|
-
class RefundSettlement < Yoomoney::Internal::Type::BaseModel
|
|
183
|
-
OrHash =
|
|
184
|
-
T.type_alias do
|
|
185
|
-
T.any(
|
|
186
|
-
Yoomoney::RefundCreateParams::Deal::RefundSettlement,
|
|
187
|
-
Yoomoney::Internal::AnyHash
|
|
188
|
-
)
|
|
189
|
-
end
|
|
190
|
-
|
|
191
|
-
sig { returns(Yoomoney::MonetaryAmount) }
|
|
192
|
-
attr_reader :amount
|
|
193
|
-
|
|
194
|
-
sig { params(amount: Yoomoney::MonetaryAmount::OrHash).void }
|
|
195
|
-
attr_writer :amount
|
|
196
|
-
|
|
197
|
-
sig { returns(Yoomoney::SettlementItemType::OrSymbol) }
|
|
198
|
-
attr_accessor :type
|
|
199
|
-
|
|
200
|
-
sig do
|
|
201
|
-
params(
|
|
202
|
-
amount: Yoomoney::MonetaryAmount::OrHash,
|
|
203
|
-
type: Yoomoney::SettlementItemType::OrSymbol
|
|
204
|
-
).returns(T.attached_class)
|
|
205
|
-
end
|
|
206
|
-
def self.new(amount:, type:)
|
|
207
|
-
end
|
|
208
|
-
|
|
209
|
-
sig do
|
|
210
|
-
override.returns(
|
|
211
|
-
{
|
|
212
|
-
amount: Yoomoney::MonetaryAmount,
|
|
213
|
-
type: Yoomoney::SettlementItemType::OrSymbol
|
|
214
|
-
}
|
|
215
|
-
)
|
|
216
|
-
end
|
|
217
|
-
def to_hash
|
|
218
|
-
end
|
|
219
|
-
end
|
|
220
171
|
end
|
|
221
172
|
|
|
222
173
|
class RefundMethodData < Yoomoney::Internal::Type::BaseModel
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Yoomoney
|
|
4
|
+
module Models
|
|
5
|
+
class SettlementPaymentItem < Yoomoney::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Yoomoney::SettlementPaymentItem, Yoomoney::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
sig { returns(Yoomoney::MonetaryAmount) }
|
|
12
|
+
attr_reader :amount
|
|
13
|
+
|
|
14
|
+
sig { params(amount: Yoomoney::MonetaryAmount::OrHash).void }
|
|
15
|
+
attr_writer :amount
|
|
16
|
+
|
|
17
|
+
sig { returns(Yoomoney::SettlementItemType::OrSymbol) }
|
|
18
|
+
attr_accessor :type
|
|
19
|
+
|
|
20
|
+
sig do
|
|
21
|
+
params(
|
|
22
|
+
amount: Yoomoney::MonetaryAmount::OrHash,
|
|
23
|
+
type: Yoomoney::SettlementItemType::OrSymbol
|
|
24
|
+
).returns(T.attached_class)
|
|
25
|
+
end
|
|
26
|
+
def self.new(amount:, type:)
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
sig do
|
|
30
|
+
override.returns(
|
|
31
|
+
{
|
|
32
|
+
amount: Yoomoney::MonetaryAmount,
|
|
33
|
+
type: Yoomoney::SettlementItemType::OrSymbol
|
|
34
|
+
}
|
|
35
|
+
)
|
|
36
|
+
end
|
|
37
|
+
def to_hash
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Yoomoney
|
|
4
|
+
module Models
|
|
5
|
+
class SettlementRefundItem < Yoomoney::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Yoomoney::SettlementRefundItem, Yoomoney::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
sig { returns(Yoomoney::MonetaryAmount) }
|
|
12
|
+
attr_reader :amount
|
|
13
|
+
|
|
14
|
+
sig { params(amount: Yoomoney::MonetaryAmount::OrHash).void }
|
|
15
|
+
attr_writer :amount
|
|
16
|
+
|
|
17
|
+
sig { returns(Yoomoney::SettlementItemType::OrSymbol) }
|
|
18
|
+
attr_accessor :type
|
|
19
|
+
|
|
20
|
+
sig do
|
|
21
|
+
params(
|
|
22
|
+
amount: Yoomoney::MonetaryAmount::OrHash,
|
|
23
|
+
type: Yoomoney::SettlementItemType::OrSymbol
|
|
24
|
+
).returns(T.attached_class)
|
|
25
|
+
end
|
|
26
|
+
def self.new(amount:, type:)
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
sig do
|
|
30
|
+
override.returns(
|
|
31
|
+
{
|
|
32
|
+
amount: Yoomoney::MonetaryAmount,
|
|
33
|
+
type: Yoomoney::SettlementItemType::OrSymbol
|
|
34
|
+
}
|
|
35
|
+
)
|
|
36
|
+
end
|
|
37
|
+
def to_hash
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
data/rbi/yoomoney/models.rbi
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
module Yoomoney
|
|
4
4
|
Airline = Yoomoney::Models::Airline
|
|
5
5
|
|
|
6
|
+
AirlineLeg = Yoomoney::Models::AirlineLeg
|
|
7
|
+
|
|
8
|
+
AirlinePassenger = Yoomoney::Models::AirlinePassenger
|
|
9
|
+
|
|
6
10
|
B2bSberbankCalculatedVatData = Yoomoney::Models::B2bSberbankCalculatedVatData
|
|
7
11
|
|
|
8
12
|
B2bSberbankMixedVatData = Yoomoney::Models::B2bSberbankMixedVatData
|
|
@@ -135,6 +139,8 @@ module Yoomoney
|
|
|
135
139
|
|
|
136
140
|
ReceiptDataCustomer = Yoomoney::Models::ReceiptDataCustomer
|
|
137
141
|
|
|
142
|
+
ReceiptDataItem = Yoomoney::Models::ReceiptDataItem
|
|
143
|
+
|
|
138
144
|
ReceiptItemAgentType = Yoomoney::Models::ReceiptItemAgentType
|
|
139
145
|
|
|
140
146
|
ReceiptItemMeasure = Yoomoney::Models::ReceiptItemMeasure
|
|
@@ -183,6 +189,10 @@ module Yoomoney
|
|
|
183
189
|
|
|
184
190
|
SettlementItemType = Yoomoney::Models::SettlementItemType
|
|
185
191
|
|
|
192
|
+
SettlementPaymentItem = Yoomoney::Models::SettlementPaymentItem
|
|
193
|
+
|
|
194
|
+
SettlementRefundItem = Yoomoney::Models::SettlementRefundItem
|
|
195
|
+
|
|
186
196
|
TransferData = Yoomoney::Models::TransferData
|
|
187
197
|
|
|
188
198
|
Webhook = Yoomoney::Models::Webhook
|
data/sig/yoomoney/client.rbs
CHANGED
|
@@ -3,8 +3,8 @@ module Yoomoney
|
|
|
3
3
|
type airline =
|
|
4
4
|
{
|
|
5
5
|
booking_reference: String,
|
|
6
|
-
legs: ::Array[Yoomoney::
|
|
7
|
-
passengers: ::Array[Yoomoney::
|
|
6
|
+
legs: ::Array[Yoomoney::AirlineLeg],
|
|
7
|
+
passengers: ::Array[Yoomoney::AirlinePassenger],
|
|
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::
|
|
16
|
+
attr_reader legs: ::Array[Yoomoney::AirlineLeg]?
|
|
17
17
|
|
|
18
18
|
def legs=: (
|
|
19
|
-
::Array[Yoomoney::
|
|
20
|
-
) -> ::Array[Yoomoney::
|
|
19
|
+
::Array[Yoomoney::AirlineLeg]
|
|
20
|
+
) -> ::Array[Yoomoney::AirlineLeg]
|
|
21
21
|
|
|
22
|
-
attr_reader passengers: ::Array[Yoomoney::
|
|
22
|
+
attr_reader passengers: ::Array[Yoomoney::AirlinePassenger]?
|
|
23
23
|
|
|
24
24
|
def passengers=: (
|
|
25
|
-
::Array[Yoomoney::
|
|
26
|
-
) -> ::Array[Yoomoney::
|
|
25
|
+
::Array[Yoomoney::AirlinePassenger]
|
|
26
|
+
) -> ::Array[Yoomoney::AirlinePassenger]
|
|
27
27
|
|
|
28
28
|
attr_reader ticket_number: String?
|
|
29
29
|
|
|
@@ -31,63 +31,17 @@ module Yoomoney
|
|
|
31
31
|
|
|
32
32
|
def initialize: (
|
|
33
33
|
?booking_reference: String,
|
|
34
|
-
?legs: ::Array[Yoomoney::
|
|
35
|
-
?passengers: ::Array[Yoomoney::
|
|
34
|
+
?legs: ::Array[Yoomoney::AirlineLeg],
|
|
35
|
+
?passengers: ::Array[Yoomoney::AirlinePassenger],
|
|
36
36
|
?ticket_number: String
|
|
37
37
|
) -> void
|
|
38
38
|
|
|
39
39
|
def to_hash: -> {
|
|
40
40
|
booking_reference: String,
|
|
41
|
-
legs: ::Array[Yoomoney::
|
|
42
|
-
passengers: ::Array[Yoomoney::
|
|
41
|
+
legs: ::Array[Yoomoney::AirlineLeg],
|
|
42
|
+
passengers: ::Array[Yoomoney::AirlinePassenger],
|
|
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
|
|
91
45
|
end
|
|
92
46
|
end
|
|
93
47
|
end
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type airline_leg =
|
|
4
|
+
{
|
|
5
|
+
departure_airport: String,
|
|
6
|
+
departure_date: String,
|
|
7
|
+
destination_airport: String,
|
|
8
|
+
carrier_code: String
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
class AirlineLeg < Yoomoney::Internal::Type::BaseModel
|
|
12
|
+
attr_accessor departure_airport: String
|
|
13
|
+
|
|
14
|
+
attr_accessor departure_date: String
|
|
15
|
+
|
|
16
|
+
attr_accessor destination_airport: String
|
|
17
|
+
|
|
18
|
+
attr_reader carrier_code: String?
|
|
19
|
+
|
|
20
|
+
def carrier_code=: (String) -> String
|
|
21
|
+
|
|
22
|
+
def initialize: (
|
|
23
|
+
departure_airport: String,
|
|
24
|
+
departure_date: String,
|
|
25
|
+
destination_airport: String,
|
|
26
|
+
?carrier_code: String
|
|
27
|
+
) -> void
|
|
28
|
+
|
|
29
|
+
def to_hash: -> {
|
|
30
|
+
departure_airport: String,
|
|
31
|
+
departure_date: String,
|
|
32
|
+
destination_airport: String,
|
|
33
|
+
carrier_code: String
|
|
34
|
+
}
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type airline_passenger = { first_name: String, last_name: String }
|
|
4
|
+
|
|
5
|
+
class AirlinePassenger < Yoomoney::Internal::Type::BaseModel
|
|
6
|
+
attr_accessor first_name: String
|
|
7
|
+
|
|
8
|
+
attr_accessor last_name: String
|
|
9
|
+
|
|
10
|
+
def initialize: (first_name: String, last_name: String) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { first_name: String, last_name: String }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -1,47 +1,22 @@
|
|
|
1
1
|
module Yoomoney
|
|
2
2
|
module Models
|
|
3
3
|
type payment_deal_info =
|
|
4
|
-
{
|
|
5
|
-
id: String,
|
|
6
|
-
settlements: ::Array[Yoomoney::PaymentDealInfo::Settlement]
|
|
7
|
-
}
|
|
4
|
+
{ id: String, settlements: ::Array[Yoomoney::SettlementPaymentItem] }
|
|
8
5
|
|
|
9
6
|
class PaymentDealInfo < Yoomoney::Internal::Type::BaseModel
|
|
10
7
|
attr_accessor id: String
|
|
11
8
|
|
|
12
|
-
attr_accessor settlements: ::Array[Yoomoney::
|
|
9
|
+
attr_accessor settlements: ::Array[Yoomoney::SettlementPaymentItem]
|
|
13
10
|
|
|
14
11
|
def initialize: (
|
|
15
12
|
id: String,
|
|
16
|
-
settlements: ::Array[Yoomoney::
|
|
13
|
+
settlements: ::Array[Yoomoney::SettlementPaymentItem]
|
|
17
14
|
) -> void
|
|
18
15
|
|
|
19
16
|
def to_hash: -> {
|
|
20
17
|
id: String,
|
|
21
|
-
settlements: ::Array[Yoomoney::
|
|
18
|
+
settlements: ::Array[Yoomoney::SettlementPaymentItem]
|
|
22
19
|
}
|
|
23
|
-
|
|
24
|
-
type settlement =
|
|
25
|
-
{
|
|
26
|
-
amount: Yoomoney::MonetaryAmount,
|
|
27
|
-
type: Yoomoney::Models::settlement_item_type
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
class Settlement < Yoomoney::Internal::Type::BaseModel
|
|
31
|
-
attr_accessor amount: Yoomoney::MonetaryAmount
|
|
32
|
-
|
|
33
|
-
attr_accessor type: Yoomoney::Models::settlement_item_type
|
|
34
|
-
|
|
35
|
-
def initialize: (
|
|
36
|
-
amount: Yoomoney::MonetaryAmount,
|
|
37
|
-
type: Yoomoney::Models::settlement_item_type
|
|
38
|
-
) -> void
|
|
39
|
-
|
|
40
|
-
def to_hash: -> {
|
|
41
|
-
amount: Yoomoney::MonetaryAmount,
|
|
42
|
-
type: Yoomoney::Models::settlement_item_type
|
|
43
|
-
}
|
|
44
|
-
end
|
|
45
20
|
end
|
|
46
21
|
end
|
|
47
22
|
end
|
|
@@ -118,149 +118,37 @@ module Yoomoney
|
|
|
118
118
|
|
|
119
119
|
type item =
|
|
120
120
|
{
|
|
121
|
-
amount: Yoomoney::MonetaryAmount,
|
|
122
|
-
description: String,
|
|
123
|
-
quantity: Float,
|
|
124
|
-
vat_code: Integer,
|
|
125
121
|
additional_payment_subject_props: String,
|
|
126
122
|
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,
|
|
139
123
|
supplier: Yoomoney::ReceiptCreateParams::Item::Supplier
|
|
140
124
|
}
|
|
141
125
|
|
|
142
|
-
class Item < Yoomoney::
|
|
143
|
-
|
|
126
|
+
class Item < Yoomoney::Models::ReceiptDataItem
|
|
127
|
+
def additional_payment_subject_props: -> String?
|
|
144
128
|
|
|
145
|
-
|
|
129
|
+
def additional_payment_subject_props=: (String _) -> String
|
|
146
130
|
|
|
147
|
-
|
|
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?
|
|
131
|
+
def agent_type: -> Yoomoney::Models::receipt_item_agent_type?
|
|
156
132
|
|
|
157
133
|
def agent_type=: (
|
|
158
|
-
Yoomoney::Models::receipt_item_agent_type
|
|
134
|
+
Yoomoney::Models::receipt_item_agent_type _
|
|
159
135
|
) -> Yoomoney::Models::receipt_item_agent_type
|
|
160
136
|
|
|
161
|
-
|
|
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?
|
|
137
|
+
def supplier: -> Yoomoney::ReceiptCreateParams::Item::Supplier?
|
|
218
138
|
|
|
219
139
|
def supplier=: (
|
|
220
|
-
Yoomoney::ReceiptCreateParams::Item::Supplier
|
|
140
|
+
Yoomoney::ReceiptCreateParams::Item::Supplier _
|
|
221
141
|
) -> Yoomoney::ReceiptCreateParams::Item::Supplier
|
|
222
142
|
|
|
223
143
|
def initialize: (
|
|
224
|
-
amount: Yoomoney::MonetaryAmount,
|
|
225
|
-
description: String,
|
|
226
|
-
quantity: Float,
|
|
227
|
-
vat_code: Integer,
|
|
228
144
|
?additional_payment_subject_props: String,
|
|
229
145
|
?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,
|
|
242
146
|
?supplier: Yoomoney::ReceiptCreateParams::Item::Supplier
|
|
243
147
|
) -> void
|
|
244
148
|
|
|
245
149
|
def to_hash: -> {
|
|
246
|
-
amount: Yoomoney::MonetaryAmount,
|
|
247
|
-
description: String,
|
|
248
|
-
quantity: Float,
|
|
249
|
-
vat_code: Integer,
|
|
250
150
|
additional_payment_subject_props: String,
|
|
251
151
|
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,
|
|
264
152
|
supplier: Yoomoney::ReceiptCreateParams::Item::Supplier
|
|
265
153
|
}
|
|
266
154
|
|