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
|
@@ -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::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::
|
|
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::
|
|
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::
|
|
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
|
|
@@ -117,45 +117,23 @@ module Yoomoney
|
|
|
117
117
|
type deal =
|
|
118
118
|
{
|
|
119
119
|
id: String,
|
|
120
|
-
refund_settlements: ::Array[Yoomoney::
|
|
120
|
+
refund_settlements: ::Array[Yoomoney::SettlementRefundItem]
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
class Deal < Yoomoney::Internal::Type::BaseModel
|
|
124
124
|
attr_accessor id: String
|
|
125
125
|
|
|
126
|
-
attr_accessor refund_settlements: ::Array[Yoomoney::
|
|
126
|
+
attr_accessor refund_settlements: ::Array[Yoomoney::SettlementRefundItem]
|
|
127
127
|
|
|
128
128
|
def initialize: (
|
|
129
129
|
id: String,
|
|
130
|
-
refund_settlements: ::Array[Yoomoney::
|
|
130
|
+
refund_settlements: ::Array[Yoomoney::SettlementRefundItem]
|
|
131
131
|
) -> void
|
|
132
132
|
|
|
133
133
|
def to_hash: -> {
|
|
134
134
|
id: String,
|
|
135
|
-
refund_settlements: ::Array[Yoomoney::
|
|
135
|
+
refund_settlements: ::Array[Yoomoney::SettlementRefundItem]
|
|
136
136
|
}
|
|
137
|
-
|
|
138
|
-
type refund_settlement =
|
|
139
|
-
{
|
|
140
|
-
amount: Yoomoney::MonetaryAmount,
|
|
141
|
-
type: Yoomoney::Models::settlement_item_type
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
class RefundSettlement < Yoomoney::Internal::Type::BaseModel
|
|
145
|
-
attr_accessor amount: Yoomoney::MonetaryAmount
|
|
146
|
-
|
|
147
|
-
attr_accessor type: Yoomoney::Models::settlement_item_type
|
|
148
|
-
|
|
149
|
-
def initialize: (
|
|
150
|
-
amount: Yoomoney::MonetaryAmount,
|
|
151
|
-
type: Yoomoney::Models::settlement_item_type
|
|
152
|
-
) -> void
|
|
153
|
-
|
|
154
|
-
def to_hash: -> {
|
|
155
|
-
amount: Yoomoney::MonetaryAmount,
|
|
156
|
-
type: Yoomoney::Models::settlement_item_type
|
|
157
|
-
}
|
|
158
|
-
end
|
|
159
137
|
end
|
|
160
138
|
|
|
161
139
|
type refund_authorization_details = { rrn: String }
|
|
@@ -81,42 +81,18 @@ module Yoomoney
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
type deal =
|
|
84
|
-
{
|
|
85
|
-
refund_settlements: ::Array[Yoomoney::RefundCreateParams::Deal::RefundSettlement]
|
|
86
|
-
}
|
|
84
|
+
{ refund_settlements: ::Array[Yoomoney::SettlementRefundItem] }
|
|
87
85
|
|
|
88
86
|
class Deal < Yoomoney::Internal::Type::BaseModel
|
|
89
|
-
attr_accessor refund_settlements: ::Array[Yoomoney::
|
|
87
|
+
attr_accessor refund_settlements: ::Array[Yoomoney::SettlementRefundItem]
|
|
90
88
|
|
|
91
89
|
def initialize: (
|
|
92
|
-
refund_settlements: ::Array[Yoomoney::
|
|
90
|
+
refund_settlements: ::Array[Yoomoney::SettlementRefundItem]
|
|
93
91
|
) -> void
|
|
94
92
|
|
|
95
93
|
def to_hash: -> {
|
|
96
|
-
refund_settlements: ::Array[Yoomoney::
|
|
94
|
+
refund_settlements: ::Array[Yoomoney::SettlementRefundItem]
|
|
97
95
|
}
|
|
98
|
-
|
|
99
|
-
type refund_settlement =
|
|
100
|
-
{
|
|
101
|
-
amount: Yoomoney::MonetaryAmount,
|
|
102
|
-
type: Yoomoney::Models::settlement_item_type
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
class RefundSettlement < Yoomoney::Internal::Type::BaseModel
|
|
106
|
-
attr_accessor amount: Yoomoney::MonetaryAmount
|
|
107
|
-
|
|
108
|
-
attr_accessor type: Yoomoney::Models::settlement_item_type
|
|
109
|
-
|
|
110
|
-
def initialize: (
|
|
111
|
-
amount: Yoomoney::MonetaryAmount,
|
|
112
|
-
type: Yoomoney::Models::settlement_item_type
|
|
113
|
-
) -> void
|
|
114
|
-
|
|
115
|
-
def to_hash: -> {
|
|
116
|
-
amount: Yoomoney::MonetaryAmount,
|
|
117
|
-
type: Yoomoney::Models::settlement_item_type
|
|
118
|
-
}
|
|
119
|
-
end
|
|
120
96
|
end
|
|
121
97
|
|
|
122
98
|
type refund_method_data = { type: Yoomoney::Models::refund_method_type }
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type settlement_payment_item =
|
|
4
|
+
{
|
|
5
|
+
amount: Yoomoney::MonetaryAmount,
|
|
6
|
+
type: Yoomoney::Models::settlement_item_type
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
class SettlementPaymentItem < Yoomoney::Internal::Type::BaseModel
|
|
10
|
+
attr_accessor amount: Yoomoney::MonetaryAmount
|
|
11
|
+
|
|
12
|
+
attr_accessor type: Yoomoney::Models::settlement_item_type
|
|
13
|
+
|
|
14
|
+
def initialize: (
|
|
15
|
+
amount: Yoomoney::MonetaryAmount,
|
|
16
|
+
type: Yoomoney::Models::settlement_item_type
|
|
17
|
+
) -> void
|
|
18
|
+
|
|
19
|
+
def to_hash: -> {
|
|
20
|
+
amount: Yoomoney::MonetaryAmount,
|
|
21
|
+
type: Yoomoney::Models::settlement_item_type
|
|
22
|
+
}
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type settlement_refund_item =
|
|
4
|
+
{
|
|
5
|
+
amount: Yoomoney::MonetaryAmount,
|
|
6
|
+
type: Yoomoney::Models::settlement_item_type
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
class SettlementRefundItem < Yoomoney::Internal::Type::BaseModel
|
|
10
|
+
attr_accessor amount: Yoomoney::MonetaryAmount
|
|
11
|
+
|
|
12
|
+
attr_accessor type: Yoomoney::Models::settlement_item_type
|
|
13
|
+
|
|
14
|
+
def initialize: (
|
|
15
|
+
amount: Yoomoney::MonetaryAmount,
|
|
16
|
+
type: Yoomoney::Models::settlement_item_type
|
|
17
|
+
) -> void
|
|
18
|
+
|
|
19
|
+
def to_hash: -> {
|
|
20
|
+
amount: Yoomoney::MonetaryAmount,
|
|
21
|
+
type: Yoomoney::Models::settlement_item_type
|
|
22
|
+
}
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
data/sig/yoomoney/models.rbs
CHANGED
|
@@ -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
|
|
@@ -179,6 +185,10 @@ module Yoomoney
|
|
|
179
185
|
|
|
180
186
|
module SettlementItemType = Yoomoney::Models::SettlementItemType
|
|
181
187
|
|
|
188
|
+
class SettlementPaymentItem = Yoomoney::Models::SettlementPaymentItem
|
|
189
|
+
|
|
190
|
+
class SettlementRefundItem = Yoomoney::Models::SettlementRefundItem
|
|
191
|
+
|
|
182
192
|
class TransferData = Yoomoney::Models::TransferData
|
|
183
193
|
|
|
184
194
|
class Webhook = Yoomoney::Models::Webhook
|
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.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-
|
|
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
|
|
@@ -165,6 +168,8 @@ files:
|
|
|
165
168
|
- lib/yoomoney/models/sbp_bank_list_response.rb
|
|
166
169
|
- lib/yoomoney/models/settlement.rb
|
|
167
170
|
- lib/yoomoney/models/settlement_item_type.rb
|
|
171
|
+
- lib/yoomoney/models/settlement_payment_item.rb
|
|
172
|
+
- lib/yoomoney/models/settlement_refund_item.rb
|
|
168
173
|
- lib/yoomoney/models/transfer_data.rb
|
|
169
174
|
- lib/yoomoney/models/webhook.rb
|
|
170
175
|
- lib/yoomoney/models/webhook_create_params.rb
|
|
@@ -206,6 +211,8 @@ files:
|
|
|
206
211
|
- rbi/yoomoney/internal/util.rbi
|
|
207
212
|
- rbi/yoomoney/models.rbi
|
|
208
213
|
- rbi/yoomoney/models/airline.rbi
|
|
214
|
+
- rbi/yoomoney/models/airline_leg.rbi
|
|
215
|
+
- rbi/yoomoney/models/airline_passenger.rbi
|
|
209
216
|
- rbi/yoomoney/models/b2b_sberbank_calculated_vat_data.rbi
|
|
210
217
|
- rbi/yoomoney/models/b2b_sberbank_mixed_vat_data.rbi
|
|
211
218
|
- rbi/yoomoney/models/b2b_sberbank_untaxed_vat_data.rbi
|
|
@@ -274,6 +281,7 @@ files:
|
|
|
274
281
|
- rbi/yoomoney/models/receipt_create_params.rbi
|
|
275
282
|
- rbi/yoomoney/models/receipt_data.rbi
|
|
276
283
|
- rbi/yoomoney/models/receipt_data_customer.rbi
|
|
284
|
+
- rbi/yoomoney/models/receipt_data_item.rbi
|
|
277
285
|
- rbi/yoomoney/models/receipt_item_agent_type.rbi
|
|
278
286
|
- rbi/yoomoney/models/receipt_item_measure.rbi
|
|
279
287
|
- rbi/yoomoney/models/receipt_item_payment_mode.rbi
|
|
@@ -301,6 +309,8 @@ files:
|
|
|
301
309
|
- rbi/yoomoney/models/sbp_bank_list_response.rbi
|
|
302
310
|
- rbi/yoomoney/models/settlement.rbi
|
|
303
311
|
- rbi/yoomoney/models/settlement_item_type.rbi
|
|
312
|
+
- rbi/yoomoney/models/settlement_payment_item.rbi
|
|
313
|
+
- rbi/yoomoney/models/settlement_refund_item.rbi
|
|
304
314
|
- rbi/yoomoney/models/transfer_data.rbi
|
|
305
315
|
- rbi/yoomoney/models/webhook.rbi
|
|
306
316
|
- rbi/yoomoney/models/webhook_create_params.rbi
|
|
@@ -341,6 +351,8 @@ files:
|
|
|
341
351
|
- sig/yoomoney/internal/util.rbs
|
|
342
352
|
- sig/yoomoney/models.rbs
|
|
343
353
|
- sig/yoomoney/models/airline.rbs
|
|
354
|
+
- sig/yoomoney/models/airline_leg.rbs
|
|
355
|
+
- sig/yoomoney/models/airline_passenger.rbs
|
|
344
356
|
- sig/yoomoney/models/b2b_sberbank_calculated_vat_data.rbs
|
|
345
357
|
- sig/yoomoney/models/b2b_sberbank_mixed_vat_data.rbs
|
|
346
358
|
- sig/yoomoney/models/b2b_sberbank_untaxed_vat_data.rbs
|
|
@@ -409,6 +421,7 @@ files:
|
|
|
409
421
|
- sig/yoomoney/models/receipt_create_params.rbs
|
|
410
422
|
- sig/yoomoney/models/receipt_data.rbs
|
|
411
423
|
- sig/yoomoney/models/receipt_data_customer.rbs
|
|
424
|
+
- sig/yoomoney/models/receipt_data_item.rbs
|
|
412
425
|
- sig/yoomoney/models/receipt_item_agent_type.rbs
|
|
413
426
|
- sig/yoomoney/models/receipt_item_measure.rbs
|
|
414
427
|
- sig/yoomoney/models/receipt_item_payment_mode.rbs
|
|
@@ -436,6 +449,8 @@ files:
|
|
|
436
449
|
- sig/yoomoney/models/sbp_bank_list_response.rbs
|
|
437
450
|
- sig/yoomoney/models/settlement.rbs
|
|
438
451
|
- sig/yoomoney/models/settlement_item_type.rbs
|
|
452
|
+
- sig/yoomoney/models/settlement_payment_item.rbs
|
|
453
|
+
- sig/yoomoney/models/settlement_refund_item.rbs
|
|
439
454
|
- sig/yoomoney/models/transfer_data.rbs
|
|
440
455
|
- sig/yoomoney/models/webhook.rbs
|
|
441
456
|
- sig/yoomoney/models/webhook_create_params.rbs
|