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
@@ -1,33 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Yoomoney
4
- module Models
5
- class AirlineLeg < Yoomoney::Internal::Type::BaseModel
6
- # @!attribute departure_airport
7
- #
8
- # @return [String]
9
- required :departure_airport, String
10
-
11
- # @!attribute departure_date
12
- #
13
- # @return [String]
14
- required :departure_date, String
15
-
16
- # @!attribute destination_airport
17
- #
18
- # @return [String]
19
- required :destination_airport, String
20
-
21
- # @!attribute carrier_code
22
- #
23
- # @return [String, nil]
24
- optional :carrier_code, String
25
-
26
- # @!method initialize(departure_airport:, departure_date:, destination_airport:, carrier_code: nil)
27
- # @param departure_airport [String]
28
- # @param departure_date [String]
29
- # @param destination_airport [String]
30
- # @param carrier_code [String]
31
- end
32
- end
33
- end
@@ -1,21 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Yoomoney
4
- module Models
5
- class AirlinePassenger < Yoomoney::Internal::Type::BaseModel
6
- # @!attribute first_name
7
- #
8
- # @return [String]
9
- required :first_name, String
10
-
11
- # @!attribute last_name
12
- #
13
- # @return [String]
14
- required :last_name, String
15
-
16
- # @!method initialize(first_name:, last_name:)
17
- # @param first_name [String]
18
- # @param last_name [String]
19
- end
20
- end
21
- end
@@ -1,125 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Yoomoney
4
- module Models
5
- class ReceiptDataItem < Yoomoney::Internal::Type::BaseModel
6
- # @!attribute amount
7
- # Сумма.
8
- #
9
- # @return [Yoomoney::Models::MonetaryAmount]
10
- required :amount, -> { Yoomoney::MonetaryAmount }
11
-
12
- # @!attribute description
13
- # Название товара.
14
- #
15
- # @return [String]
16
- required :description, String
17
-
18
- # @!attribute quantity
19
- # Количество.
20
- #
21
- # @return [Float]
22
- required :quantity, Float
23
-
24
- # @!attribute vat_code
25
- # Ставка НДС.
26
- #
27
- # @return [Integer]
28
- required :vat_code, Integer
29
-
30
- # @!attribute country_of_origin_code
31
- #
32
- # @return [String, nil]
33
- optional :country_of_origin_code, String
34
-
35
- # @!attribute customs_declaration_number
36
- #
37
- # @return [String, nil]
38
- optional :customs_declaration_number, String
39
-
40
- # @!attribute excise
41
- #
42
- # @return [String, nil]
43
- optional :excise, String
44
-
45
- # @!attribute mark_code_info
46
- #
47
- # @return [Yoomoney::Models::MarkCodeInfo, nil]
48
- optional :mark_code_info, -> { Yoomoney::MarkCodeInfo }
49
-
50
- # @!attribute mark_mode
51
- #
52
- # @return [String, nil]
53
- optional :mark_mode, String
54
-
55
- # @!attribute mark_quantity
56
- #
57
- # @return [Yoomoney::Models::MarkQuantity, nil]
58
- optional :mark_quantity, -> { Yoomoney::MarkQuantity }
59
-
60
- # @!attribute measure
61
- #
62
- # @return [Symbol, Yoomoney::Models::ReceiptItemMeasure, nil]
63
- optional :measure, enum: -> { Yoomoney::ReceiptItemMeasure }
64
-
65
- # @!attribute payment_mode
66
- #
67
- # @return [Symbol, Yoomoney::Models::ReceiptItemPaymentMode, nil]
68
- optional :payment_mode, enum: -> { Yoomoney::ReceiptItemPaymentMode }
69
-
70
- # @!attribute payment_subject
71
- #
72
- # @return [Symbol, Yoomoney::Models::ReceiptItemPaymentSubject, nil]
73
- optional :payment_subject, enum: -> { Yoomoney::ReceiptItemPaymentSubject }
74
-
75
- # @!attribute payment_subject_industry_details
76
- #
77
- # @return [Array<Yoomoney::Models::IndustryDetails>, nil]
78
- optional :payment_subject_industry_details,
79
- -> { Yoomoney::Internal::Type::ArrayOf[Yoomoney::IndustryDetails] }
80
-
81
- # @!attribute planned_status
82
- #
83
- # @return [Integer, nil]
84
- optional :planned_status, Integer
85
-
86
- # @!attribute product_code
87
- #
88
- # @return [String, nil]
89
- optional :product_code, String
90
-
91
- # @!method initialize(amount:, description:, quantity:, vat_code:, country_of_origin_code: nil, customs_declaration_number: nil, excise: nil, mark_code_info: nil, mark_mode: nil, mark_quantity: nil, measure: nil, payment_mode: nil, payment_subject: nil, payment_subject_industry_details: nil, planned_status: nil, product_code: nil)
92
- # @param amount [Yoomoney::Models::MonetaryAmount] Сумма.
93
- #
94
- # @param description [String] Название товара.
95
- #
96
- # @param quantity [Float] Количество.
97
- #
98
- # @param vat_code [Integer] Ставка НДС.
99
- #
100
- # @param country_of_origin_code [String]
101
- #
102
- # @param customs_declaration_number [String]
103
- #
104
- # @param excise [String]
105
- #
106
- # @param mark_code_info [Yoomoney::Models::MarkCodeInfo]
107
- #
108
- # @param mark_mode [String]
109
- #
110
- # @param mark_quantity [Yoomoney::Models::MarkQuantity]
111
- #
112
- # @param measure [Symbol, Yoomoney::Models::ReceiptItemMeasure]
113
- #
114
- # @param payment_mode [Symbol, Yoomoney::Models::ReceiptItemPaymentMode]
115
- #
116
- # @param payment_subject [Symbol, Yoomoney::Models::ReceiptItemPaymentSubject]
117
- #
118
- # @param payment_subject_industry_details [Array<Yoomoney::Models::IndustryDetails>]
119
- #
120
- # @param planned_status [Integer]
121
- #
122
- # @param product_code [String]
123
- end
124
- end
125
- end
@@ -1,56 +0,0 @@
1
- # typed: strong
2
-
3
- module Yoomoney
4
- module Models
5
- class AirlineLeg < Yoomoney::Internal::Type::BaseModel
6
- OrHash =
7
- T.type_alias do
8
- T.any(Yoomoney::AirlineLeg, Yoomoney::Internal::AnyHash)
9
- end
10
-
11
- sig { returns(String) }
12
- attr_accessor :departure_airport
13
-
14
- sig { returns(String) }
15
- attr_accessor :departure_date
16
-
17
- sig { returns(String) }
18
- attr_accessor :destination_airport
19
-
20
- sig { returns(T.nilable(String)) }
21
- attr_reader :carrier_code
22
-
23
- sig { params(carrier_code: String).void }
24
- attr_writer :carrier_code
25
-
26
- sig do
27
- params(
28
- departure_airport: String,
29
- departure_date: String,
30
- destination_airport: String,
31
- carrier_code: String
32
- ).returns(T.attached_class)
33
- end
34
- def self.new(
35
- departure_airport:,
36
- departure_date:,
37
- destination_airport:,
38
- carrier_code: nil
39
- )
40
- end
41
-
42
- sig do
43
- override.returns(
44
- {
45
- departure_airport: String,
46
- departure_date: String,
47
- destination_airport: String,
48
- carrier_code: String
49
- }
50
- )
51
- end
52
- def to_hash
53
- end
54
- end
55
- end
56
- end
@@ -1,28 +0,0 @@
1
- # typed: strong
2
-
3
- module Yoomoney
4
- module Models
5
- class AirlinePassenger < Yoomoney::Internal::Type::BaseModel
6
- OrHash =
7
- T.type_alias do
8
- T.any(Yoomoney::AirlinePassenger, Yoomoney::Internal::AnyHash)
9
- end
10
-
11
- sig { returns(String) }
12
- attr_accessor :first_name
13
-
14
- sig { returns(String) }
15
- attr_accessor :last_name
16
-
17
- sig do
18
- params(first_name: String, last_name: String).returns(T.attached_class)
19
- end
20
- def self.new(first_name:, last_name:)
21
- end
22
-
23
- sig { override.returns({ first_name: String, last_name: String }) }
24
- def to_hash
25
- end
26
- end
27
- end
28
- end
@@ -1,185 +0,0 @@
1
- # typed: strong
2
-
3
- module Yoomoney
4
- module Models
5
- class ReceiptDataItem < Yoomoney::Internal::Type::BaseModel
6
- OrHash =
7
- T.type_alias do
8
- T.any(Yoomoney::ReceiptDataItem, Yoomoney::Internal::AnyHash)
9
- end
10
-
11
- # Сумма.
12
- sig { returns(Yoomoney::MonetaryAmount) }
13
- attr_reader :amount
14
-
15
- sig { params(amount: Yoomoney::MonetaryAmount::OrHash).void }
16
- attr_writer :amount
17
-
18
- # Название товара.
19
- sig { returns(String) }
20
- attr_accessor :description
21
-
22
- # Количество.
23
- sig { returns(Float) }
24
- attr_accessor :quantity
25
-
26
- # Ставка НДС.
27
- sig { returns(Integer) }
28
- attr_accessor :vat_code
29
-
30
- sig { returns(T.nilable(String)) }
31
- attr_reader :country_of_origin_code
32
-
33
- sig { params(country_of_origin_code: String).void }
34
- attr_writer :country_of_origin_code
35
-
36
- sig { returns(T.nilable(String)) }
37
- attr_reader :customs_declaration_number
38
-
39
- sig { params(customs_declaration_number: String).void }
40
- attr_writer :customs_declaration_number
41
-
42
- sig { returns(T.nilable(String)) }
43
- attr_reader :excise
44
-
45
- sig { params(excise: String).void }
46
- attr_writer :excise
47
-
48
- sig { returns(T.nilable(Yoomoney::MarkCodeInfo)) }
49
- attr_reader :mark_code_info
50
-
51
- sig { params(mark_code_info: Yoomoney::MarkCodeInfo::OrHash).void }
52
- attr_writer :mark_code_info
53
-
54
- sig { returns(T.nilable(String)) }
55
- attr_reader :mark_mode
56
-
57
- sig { params(mark_mode: String).void }
58
- attr_writer :mark_mode
59
-
60
- sig { returns(T.nilable(Yoomoney::MarkQuantity)) }
61
- attr_reader :mark_quantity
62
-
63
- sig { params(mark_quantity: Yoomoney::MarkQuantity::OrHash).void }
64
- attr_writer :mark_quantity
65
-
66
- sig { returns(T.nilable(Yoomoney::ReceiptItemMeasure::OrSymbol)) }
67
- attr_reader :measure
68
-
69
- sig { params(measure: Yoomoney::ReceiptItemMeasure::OrSymbol).void }
70
- attr_writer :measure
71
-
72
- sig { returns(T.nilable(Yoomoney::ReceiptItemPaymentMode::OrSymbol)) }
73
- attr_reader :payment_mode
74
-
75
- sig do
76
- params(payment_mode: Yoomoney::ReceiptItemPaymentMode::OrSymbol).void
77
- end
78
- attr_writer :payment_mode
79
-
80
- sig { returns(T.nilable(Yoomoney::ReceiptItemPaymentSubject::OrSymbol)) }
81
- attr_reader :payment_subject
82
-
83
- sig do
84
- params(
85
- payment_subject: Yoomoney::ReceiptItemPaymentSubject::OrSymbol
86
- ).void
87
- end
88
- attr_writer :payment_subject
89
-
90
- sig { returns(T.nilable(T::Array[Yoomoney::IndustryDetails])) }
91
- attr_reader :payment_subject_industry_details
92
-
93
- sig do
94
- params(
95
- payment_subject_industry_details:
96
- T::Array[Yoomoney::IndustryDetails::OrHash]
97
- ).void
98
- end
99
- attr_writer :payment_subject_industry_details
100
-
101
- sig { returns(T.nilable(Integer)) }
102
- attr_reader :planned_status
103
-
104
- sig { params(planned_status: Integer).void }
105
- attr_writer :planned_status
106
-
107
- sig { returns(T.nilable(String)) }
108
- attr_reader :product_code
109
-
110
- sig { params(product_code: String).void }
111
- attr_writer :product_code
112
-
113
- sig do
114
- params(
115
- amount: Yoomoney::MonetaryAmount::OrHash,
116
- description: String,
117
- quantity: Float,
118
- vat_code: Integer,
119
- country_of_origin_code: String,
120
- customs_declaration_number: String,
121
- excise: String,
122
- mark_code_info: Yoomoney::MarkCodeInfo::OrHash,
123
- mark_mode: String,
124
- mark_quantity: Yoomoney::MarkQuantity::OrHash,
125
- measure: Yoomoney::ReceiptItemMeasure::OrSymbol,
126
- payment_mode: Yoomoney::ReceiptItemPaymentMode::OrSymbol,
127
- payment_subject: Yoomoney::ReceiptItemPaymentSubject::OrSymbol,
128
- payment_subject_industry_details:
129
- T::Array[Yoomoney::IndustryDetails::OrHash],
130
- planned_status: Integer,
131
- product_code: String
132
- ).returns(T.attached_class)
133
- end
134
- def self.new(
135
- # Сумма.
136
- amount:,
137
- # Название товара.
138
- description:,
139
- # Количество.
140
- quantity:,
141
- # Ставка НДС.
142
- vat_code:,
143
- country_of_origin_code: nil,
144
- customs_declaration_number: nil,
145
- excise: nil,
146
- mark_code_info: nil,
147
- mark_mode: nil,
148
- mark_quantity: nil,
149
- measure: nil,
150
- payment_mode: nil,
151
- payment_subject: nil,
152
- payment_subject_industry_details: nil,
153
- planned_status: nil,
154
- product_code: nil
155
- )
156
- end
157
-
158
- sig do
159
- override.returns(
160
- {
161
- amount: Yoomoney::MonetaryAmount,
162
- description: String,
163
- quantity: Float,
164
- vat_code: Integer,
165
- country_of_origin_code: String,
166
- customs_declaration_number: String,
167
- excise: String,
168
- mark_code_info: Yoomoney::MarkCodeInfo,
169
- mark_mode: String,
170
- mark_quantity: Yoomoney::MarkQuantity,
171
- measure: Yoomoney::ReceiptItemMeasure::OrSymbol,
172
- payment_mode: Yoomoney::ReceiptItemPaymentMode::OrSymbol,
173
- payment_subject: Yoomoney::ReceiptItemPaymentSubject::OrSymbol,
174
- payment_subject_industry_details:
175
- T::Array[Yoomoney::IndustryDetails],
176
- planned_status: Integer,
177
- product_code: String
178
- }
179
- )
180
- end
181
- def to_hash
182
- end
183
- end
184
- end
185
- end
@@ -1,37 +0,0 @@
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
@@ -1,15 +0,0 @@
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,127 +0,0 @@
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