yoomoney 0.1.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.
Files changed (413) hide show
  1. checksums.yaml +7 -0
  2. data/.ignore +2 -0
  3. data/CHANGELOG.md +17 -0
  4. data/README.md +246 -0
  5. data/SECURITY.md +23 -0
  6. data/lib/yoomoney/client.rb +110 -0
  7. data/lib/yoomoney/errors.rb +228 -0
  8. data/lib/yoomoney/file_part.rb +58 -0
  9. data/lib/yoomoney/internal/transport/base_client.rb +567 -0
  10. data/lib/yoomoney/internal/transport/pooled_net_requester.rb +210 -0
  11. data/lib/yoomoney/internal/type/array_of.rb +168 -0
  12. data/lib/yoomoney/internal/type/base_model.rb +531 -0
  13. data/lib/yoomoney/internal/type/base_page.rb +55 -0
  14. data/lib/yoomoney/internal/type/boolean.rb +77 -0
  15. data/lib/yoomoney/internal/type/converter.rb +327 -0
  16. data/lib/yoomoney/internal/type/enum.rb +156 -0
  17. data/lib/yoomoney/internal/type/file_input.rb +111 -0
  18. data/lib/yoomoney/internal/type/hash_of.rb +188 -0
  19. data/lib/yoomoney/internal/type/request_parameters.rb +42 -0
  20. data/lib/yoomoney/internal/type/union.rb +237 -0
  21. data/lib/yoomoney/internal/type/unknown.rb +81 -0
  22. data/lib/yoomoney/internal/util.rb +920 -0
  23. data/lib/yoomoney/internal.rb +20 -0
  24. data/lib/yoomoney/models/airline.rb +77 -0
  25. data/lib/yoomoney/models/b2b_sberbank_calculated_vat_data.rb +24 -0
  26. data/lib/yoomoney/models/b2b_sberbank_mixed_vat_data.rb +16 -0
  27. data/lib/yoomoney/models/b2b_sberbank_untaxed_vat_data.rb +27 -0
  28. data/lib/yoomoney/models/b2b_sberbank_vat_data.rb +27 -0
  29. data/lib/yoomoney/models/bank_card_data.rb +95 -0
  30. data/lib/yoomoney/models/bank_card_type.rb +28 -0
  31. data/lib/yoomoney/models/card_request_data_with_csc.rb +48 -0
  32. data/lib/yoomoney/models/confirmation.rb +32 -0
  33. data/lib/yoomoney/models/confirmation_data.rb +40 -0
  34. data/lib/yoomoney/models/deal_create_params.rb +59 -0
  35. data/lib/yoomoney/models/deal_list_params.rb +116 -0
  36. data/lib/yoomoney/models/deal_list_response.rb +28 -0
  37. data/lib/yoomoney/models/deal_retrieve_params.rb +14 -0
  38. data/lib/yoomoney/models/deal_type.rb +14 -0
  39. data/lib/yoomoney/models/delivery_method.rb +16 -0
  40. data/lib/yoomoney/models/delivery_method_data.rb +16 -0
  41. data/lib/yoomoney/models/electronic_certificate_refund_article.rb +33 -0
  42. data/lib/yoomoney/models/fee_moment.rb +15 -0
  43. data/lib/yoomoney/models/industry_details.rb +33 -0
  44. data/lib/yoomoney/models/invoice.rb +174 -0
  45. data/lib/yoomoney/models/invoice_create_params.rb +179 -0
  46. data/lib/yoomoney/models/invoice_retrieve_params.rb +14 -0
  47. data/lib/yoomoney/models/invoicing_bank_card_data.rb +39 -0
  48. data/lib/yoomoney/models/line_item.rb +40 -0
  49. data/lib/yoomoney/models/locale.rb +15 -0
  50. data/lib/yoomoney/models/mark_code_info.rb +75 -0
  51. data/lib/yoomoney/models/mark_quantity.rb +21 -0
  52. data/lib/yoomoney/models/me_retrieve_params.rb +20 -0
  53. data/lib/yoomoney/models/me_retrieve_response.rb +143 -0
  54. data/lib/yoomoney/models/monetary_amount.rb +51 -0
  55. data/lib/yoomoney/models/notification_event_type.rb +17 -0
  56. data/lib/yoomoney/models/operational_details.rb +27 -0
  57. data/lib/yoomoney/models/payment.rb +707 -0
  58. data/lib/yoomoney/models/payment_cancel_params.rb +20 -0
  59. data/lib/yoomoney/models/payment_capture_params.rb +61 -0
  60. data/lib/yoomoney/models/payment_create_params.rb +586 -0
  61. data/lib/yoomoney/models/payment_deal_info.rb +40 -0
  62. data/lib/yoomoney/models/payment_list_params.rb +106 -0
  63. data/lib/yoomoney/models/payment_list_response.rb +33 -0
  64. data/lib/yoomoney/models/payment_method.rb +48 -0
  65. data/lib/yoomoney/models/payment_method_create_params.rb +188 -0
  66. data/lib/yoomoney/models/payment_method_data.rb +16 -0
  67. data/lib/yoomoney/models/payment_method_retrieve_params.rb +14 -0
  68. data/lib/yoomoney/models/payment_method_status.rb +16 -0
  69. data/lib/yoomoney/models/payment_method_type.rb +31 -0
  70. data/lib/yoomoney/models/payment_methods_confirmation_type.rb +14 -0
  71. data/lib/yoomoney/models/payment_retrieve_params.rb +14 -0
  72. data/lib/yoomoney/models/payment_status.rb +17 -0
  73. data/lib/yoomoney/models/payout.rb +268 -0
  74. data/lib/yoomoney/models/payout_create_params.rb +171 -0
  75. data/lib/yoomoney/models/payout_deal_info.rb +16 -0
  76. data/lib/yoomoney/models/payout_destination.rb +30 -0
  77. data/lib/yoomoney/models/payout_destination_data.rb +16 -0
  78. data/lib/yoomoney/models/payout_destination_data_type.rb +16 -0
  79. data/lib/yoomoney/models/payout_list_params.rb +94 -0
  80. data/lib/yoomoney/models/payout_retrieve_params.rb +14 -0
  81. data/lib/yoomoney/models/payout_search_params.rb +60 -0
  82. data/lib/yoomoney/models/payout_status.rb +16 -0
  83. data/lib/yoomoney/models/payouts_list.rb +33 -0
  84. data/lib/yoomoney/models/personal_data.rb +90 -0
  85. data/lib/yoomoney/models/personal_data_create_params.rb +67 -0
  86. data/lib/yoomoney/models/personal_data_request.rb +30 -0
  87. data/lib/yoomoney/models/personal_data_retrieve_params.rb +14 -0
  88. data/lib/yoomoney/models/personal_data_type.rb +15 -0
  89. data/lib/yoomoney/models/receipt.rb +277 -0
  90. data/lib/yoomoney/models/receipt_create_params.rb +304 -0
  91. data/lib/yoomoney/models/receipt_data.rb +171 -0
  92. data/lib/yoomoney/models/receipt_data_customer.rb +33 -0
  93. data/lib/yoomoney/models/receipt_item_agent_type.rb +20 -0
  94. data/lib/yoomoney/models/receipt_item_measure.rb +37 -0
  95. data/lib/yoomoney/models/receipt_item_payment_mode.rb +20 -0
  96. data/lib/yoomoney/models/receipt_item_payment_subject.rb +46 -0
  97. data/lib/yoomoney/models/receipt_item_supplier.rb +21 -0
  98. data/lib/yoomoney/models/receipt_list_params.rb +78 -0
  99. data/lib/yoomoney/models/receipt_list_response.rb +28 -0
  100. data/lib/yoomoney/models/receipt_registration_status.rb +16 -0
  101. data/lib/yoomoney/models/receipt_retrieve_params.rb +14 -0
  102. data/lib/yoomoney/models/receipt_type.rb +15 -0
  103. data/lib/yoomoney/models/receiver.rb +30 -0
  104. data/lib/yoomoney/models/recipient.rb +20 -0
  105. data/lib/yoomoney/models/refund.rb +248 -0
  106. data/lib/yoomoney/models/refund_create_params.rb +133 -0
  107. data/lib/yoomoney/models/refund_list_params.rb +72 -0
  108. data/lib/yoomoney/models/refund_list_response.rb +28 -0
  109. data/lib/yoomoney/models/refund_method.rb +15 -0
  110. data/lib/yoomoney/models/refund_method_type.rb +15 -0
  111. data/lib/yoomoney/models/refund_retrieve_params.rb +14 -0
  112. data/lib/yoomoney/models/refund_sources_data.rb +32 -0
  113. data/lib/yoomoney/models/refund_status.rb +16 -0
  114. data/lib/yoomoney/models/safe_deal.rb +116 -0
  115. data/lib/yoomoney/models/save_payment_method_bank_card.rb +85 -0
  116. data/lib/yoomoney/models/sbp_bank_list_params.rb +14 -0
  117. data/lib/yoomoney/models/sbp_bank_list_response.rb +49 -0
  118. data/lib/yoomoney/models/settlement.rb +24 -0
  119. data/lib/yoomoney/models/settlement_item_type.rb +14 -0
  120. data/lib/yoomoney/models/transfer_data.rb +36 -0
  121. data/lib/yoomoney/models/webhook.rb +33 -0
  122. data/lib/yoomoney/models/webhook_create_params.rb +37 -0
  123. data/lib/yoomoney/models/webhook_delete_params.rb +14 -0
  124. data/lib/yoomoney/models/webhook_delete_response.rb +8 -0
  125. data/lib/yoomoney/models/webhook_list_params.rb +14 -0
  126. data/lib/yoomoney/models/webhook_list_response.rb +22 -0
  127. data/lib/yoomoney/models.rb +231 -0
  128. data/lib/yoomoney/request_options.rb +77 -0
  129. data/lib/yoomoney/resources/deals.rb +94 -0
  130. data/lib/yoomoney/resources/invoices.rb +72 -0
  131. data/lib/yoomoney/resources/me.rb +35 -0
  132. data/lib/yoomoney/resources/payment_methods.rb +68 -0
  133. data/lib/yoomoney/resources/payments.rb +182 -0
  134. data/lib/yoomoney/resources/payouts.rb +124 -0
  135. data/lib/yoomoney/resources/personal_data.rb +70 -0
  136. data/lib/yoomoney/resources/receipts.rb +111 -0
  137. data/lib/yoomoney/resources/refunds.rb +101 -0
  138. data/lib/yoomoney/resources/sbp_banks.rb +32 -0
  139. data/lib/yoomoney/resources/webhooks.rb +79 -0
  140. data/lib/yoomoney/version.rb +5 -0
  141. data/lib/yoomoney.rb +169 -0
  142. data/manifest.yaml +17 -0
  143. data/rbi/yoomoney/client.rbi +82 -0
  144. data/rbi/yoomoney/errors.rbi +205 -0
  145. data/rbi/yoomoney/file_part.rbi +37 -0
  146. data/rbi/yoomoney/internal/transport/base_client.rbi +292 -0
  147. data/rbi/yoomoney/internal/transport/pooled_net_requester.rbi +83 -0
  148. data/rbi/yoomoney/internal/type/array_of.rbi +104 -0
  149. data/rbi/yoomoney/internal/type/base_model.rbi +306 -0
  150. data/rbi/yoomoney/internal/type/base_page.rbi +42 -0
  151. data/rbi/yoomoney/internal/type/boolean.rbi +58 -0
  152. data/rbi/yoomoney/internal/type/converter.rbi +216 -0
  153. data/rbi/yoomoney/internal/type/enum.rbi +82 -0
  154. data/rbi/yoomoney/internal/type/file_input.rbi +59 -0
  155. data/rbi/yoomoney/internal/type/hash_of.rbi +104 -0
  156. data/rbi/yoomoney/internal/type/request_parameters.rbi +29 -0
  157. data/rbi/yoomoney/internal/type/union.rbi +128 -0
  158. data/rbi/yoomoney/internal/type/unknown.rbi +58 -0
  159. data/rbi/yoomoney/internal/util.rbi +487 -0
  160. data/rbi/yoomoney/internal.rbi +16 -0
  161. data/rbi/yoomoney/models/airline.rbi +141 -0
  162. data/rbi/yoomoney/models/b2b_sberbank_calculated_vat_data.rbi +45 -0
  163. data/rbi/yoomoney/models/b2b_sberbank_mixed_vat_data.rbi +34 -0
  164. data/rbi/yoomoney/models/b2b_sberbank_untaxed_vat_data.rbi +65 -0
  165. data/rbi/yoomoney/models/b2b_sberbank_vat_data.rbi +51 -0
  166. data/rbi/yoomoney/models/bank_card_data.rbi +156 -0
  167. data/rbi/yoomoney/models/bank_card_type.rbi +34 -0
  168. data/rbi/yoomoney/models/card_request_data_with_csc.rbi +75 -0
  169. data/rbi/yoomoney/models/confirmation.rbi +55 -0
  170. data/rbi/yoomoney/models/confirmation_data.rbi +78 -0
  171. data/rbi/yoomoney/models/deal_create_params.rbi +85 -0
  172. data/rbi/yoomoney/models/deal_list_params.rbi +204 -0
  173. data/rbi/yoomoney/models/deal_list_response.rbi +46 -0
  174. data/rbi/yoomoney/models/deal_retrieve_params.rbi +27 -0
  175. data/rbi/yoomoney/models/deal_type.rbi +18 -0
  176. data/rbi/yoomoney/models/delivery_method.rbi +27 -0
  177. data/rbi/yoomoney/models/delivery_method_data.rbi +27 -0
  178. data/rbi/yoomoney/models/electronic_certificate_refund_article.rbi +56 -0
  179. data/rbi/yoomoney/models/fee_moment.rbi +20 -0
  180. data/rbi/yoomoney/models/industry_details.rbi +48 -0
  181. data/rbi/yoomoney/models/invoice.rbi +266 -0
  182. data/rbi/yoomoney/models/invoice_create_params.rbi +309 -0
  183. data/rbi/yoomoney/models/invoice_retrieve_params.rbi +27 -0
  184. data/rbi/yoomoney/models/invoicing_bank_card_data.rbi +53 -0
  185. data/rbi/yoomoney/models/line_item.rbi +65 -0
  186. data/rbi/yoomoney/models/locale.rbi +19 -0
  187. data/rbi/yoomoney/models/mark_code_info.rbi +128 -0
  188. data/rbi/yoomoney/models/mark_quantity.rbi +30 -0
  189. data/rbi/yoomoney/models/me_retrieve_params.rbi +38 -0
  190. data/rbi/yoomoney/models/me_retrieve_response.rbi +342 -0
  191. data/rbi/yoomoney/models/monetary_amount.rbi +77 -0
  192. data/rbi/yoomoney/models/notification_event_type.rbi +42 -0
  193. data/rbi/yoomoney/models/operational_details.rbi +37 -0
  194. data/rbi/yoomoney/models/payment.rbi +1347 -0
  195. data/rbi/yoomoney/models/payment_cancel_params.rbi +35 -0
  196. data/rbi/yoomoney/models/payment_capture_params.rbi +96 -0
  197. data/rbi/yoomoney/models/payment_create_params.rbi +1258 -0
  198. data/rbi/yoomoney/models/payment_deal_info.rbi +84 -0
  199. data/rbi/yoomoney/models/payment_list_params.rbi +187 -0
  200. data/rbi/yoomoney/models/payment_list_response.rbi +59 -0
  201. data/rbi/yoomoney/models/payment_method.rbi +72 -0
  202. data/rbi/yoomoney/models/payment_method_create_params.rbi +372 -0
  203. data/rbi/yoomoney/models/payment_method_data.rbi +31 -0
  204. data/rbi/yoomoney/models/payment_method_retrieve_params.rbi +30 -0
  205. data/rbi/yoomoney/models/payment_method_status.rbi +23 -0
  206. data/rbi/yoomoney/models/payment_method_type.rbi +45 -0
  207. data/rbi/yoomoney/models/payment_methods_confirmation_type.rbi +24 -0
  208. data/rbi/yoomoney/models/payment_retrieve_params.rbi +27 -0
  209. data/rbi/yoomoney/models/payment_status.rbi +22 -0
  210. data/rbi/yoomoney/models/payout.rbi +452 -0
  211. data/rbi/yoomoney/models/payout_create_params.rbi +350 -0
  212. data/rbi/yoomoney/models/payout_deal_info.rbi +27 -0
  213. data/rbi/yoomoney/models/payout_destination.rbi +58 -0
  214. data/rbi/yoomoney/models/payout_destination_data.rbi +35 -0
  215. data/rbi/yoomoney/models/payout_destination_data_type.rbi +27 -0
  216. data/rbi/yoomoney/models/payout_list_params.rbi +215 -0
  217. data/rbi/yoomoney/models/payout_retrieve_params.rbi +27 -0
  218. data/rbi/yoomoney/models/payout_search_params.rbi +110 -0
  219. data/rbi/yoomoney/models/payout_status.rbi +20 -0
  220. data/rbi/yoomoney/models/payouts_list.rbi +56 -0
  221. data/rbi/yoomoney/models/personal_data.rbi +132 -0
  222. data/rbi/yoomoney/models/personal_data_create_params.rbi +93 -0
  223. data/rbi/yoomoney/models/personal_data_request.rbi +54 -0
  224. data/rbi/yoomoney/models/personal_data_retrieve_params.rbi +30 -0
  225. data/rbi/yoomoney/models/personal_data_type.rbi +26 -0
  226. data/rbi/yoomoney/models/receipt.rbi +442 -0
  227. data/rbi/yoomoney/models/receipt_create_params.rbi +471 -0
  228. data/rbi/yoomoney/models/receipt_data.rbi +279 -0
  229. data/rbi/yoomoney/models/receipt_data_customer.rbi +55 -0
  230. data/rbi/yoomoney/models/receipt_item_agent_type.rbi +38 -0
  231. data/rbi/yoomoney/models/receipt_item_measure.rbi +52 -0
  232. data/rbi/yoomoney/models/receipt_item_payment_mode.rbi +37 -0
  233. data/rbi/yoomoney/models/receipt_item_payment_subject.rbi +119 -0
  234. data/rbi/yoomoney/models/receipt_item_supplier.rbi +32 -0
  235. data/rbi/yoomoney/models/receipt_list_params.rbi +137 -0
  236. data/rbi/yoomoney/models/receipt_list_response.rbi +49 -0
  237. data/rbi/yoomoney/models/receipt_registration_status.rbi +28 -0
  238. data/rbi/yoomoney/models/receipt_retrieve_params.rbi +27 -0
  239. data/rbi/yoomoney/models/receipt_type.rbi +19 -0
  240. data/rbi/yoomoney/models/receiver.rbi +50 -0
  241. data/rbi/yoomoney/models/recipient.rbi +27 -0
  242. data/rbi/yoomoney/models/refund.rbi +477 -0
  243. data/rbi/yoomoney/models/refund_create_params.rbi +249 -0
  244. data/rbi/yoomoney/models/refund_list_params.rbi +128 -0
  245. data/rbi/yoomoney/models/refund_list_response.rbi +49 -0
  246. data/rbi/yoomoney/models/refund_method.rbi +29 -0
  247. data/rbi/yoomoney/models/refund_method_type.rbi +22 -0
  248. data/rbi/yoomoney/models/refund_retrieve_params.rbi +27 -0
  249. data/rbi/yoomoney/models/refund_sources_data.rbi +59 -0
  250. data/rbi/yoomoney/models/refund_status.rbi +20 -0
  251. data/rbi/yoomoney/models/safe_deal.rbi +151 -0
  252. data/rbi/yoomoney/models/save_payment_method_bank_card.rbi +160 -0
  253. data/rbi/yoomoney/models/sbp_bank_list_params.rbi +27 -0
  254. data/rbi/yoomoney/models/sbp_bank_list_response.rbi +82 -0
  255. data/rbi/yoomoney/models/settlement.rbi +42 -0
  256. data/rbi/yoomoney/models/settlement_item_type.rbi +21 -0
  257. data/rbi/yoomoney/models/transfer_data.rbi +61 -0
  258. data/rbi/yoomoney/models/webhook.rbi +51 -0
  259. data/rbi/yoomoney/models/webhook_create_params.rbi +57 -0
  260. data/rbi/yoomoney/models/webhook_delete_params.rbi +27 -0
  261. data/rbi/yoomoney/models/webhook_delete_response.rbi +8 -0
  262. data/rbi/yoomoney/models/webhook_list_params.rbi +27 -0
  263. data/rbi/yoomoney/models/webhook_list_response.rbi +36 -0
  264. data/rbi/yoomoney/models.rbi +195 -0
  265. data/rbi/yoomoney/request_options.rbi +59 -0
  266. data/rbi/yoomoney/resources/deals.rbi +75 -0
  267. data/rbi/yoomoney/resources/invoices.rbi +63 -0
  268. data/rbi/yoomoney/resources/me.rbi +22 -0
  269. data/rbi/yoomoney/resources/payment_methods.rbi +51 -0
  270. data/rbi/yoomoney/resources/payments.rbi +186 -0
  271. data/rbi/yoomoney/resources/payouts.rbi +104 -0
  272. data/rbi/yoomoney/resources/personal_data.rbi +55 -0
  273. data/rbi/yoomoney/resources/receipts.rbi +102 -0
  274. data/rbi/yoomoney/resources/refunds.rbi +86 -0
  275. data/rbi/yoomoney/resources/sbp_banks.rbi +21 -0
  276. data/rbi/yoomoney/resources/webhooks.rbi +51 -0
  277. data/rbi/yoomoney/version.rbi +5 -0
  278. data/sig/yoomoney/client.rbs +47 -0
  279. data/sig/yoomoney/errors.rbs +117 -0
  280. data/sig/yoomoney/file_part.rbs +21 -0
  281. data/sig/yoomoney/internal/transport/base_client.rbs +131 -0
  282. data/sig/yoomoney/internal/transport/pooled_net_requester.rbs +48 -0
  283. data/sig/yoomoney/internal/type/array_of.rbs +48 -0
  284. data/sig/yoomoney/internal/type/base_model.rbs +102 -0
  285. data/sig/yoomoney/internal/type/base_page.rbs +24 -0
  286. data/sig/yoomoney/internal/type/boolean.rbs +26 -0
  287. data/sig/yoomoney/internal/type/converter.rbs +79 -0
  288. data/sig/yoomoney/internal/type/enum.rbs +32 -0
  289. data/sig/yoomoney/internal/type/file_input.rbs +25 -0
  290. data/sig/yoomoney/internal/type/hash_of.rbs +48 -0
  291. data/sig/yoomoney/internal/type/request_parameters.rbs +17 -0
  292. data/sig/yoomoney/internal/type/union.rbs +52 -0
  293. data/sig/yoomoney/internal/type/unknown.rbs +26 -0
  294. data/sig/yoomoney/internal/util.rbs +185 -0
  295. data/sig/yoomoney/internal.rbs +9 -0
  296. data/sig/yoomoney/models/airline.rbs +93 -0
  297. data/sig/yoomoney/models/b2b_sberbank_calculated_vat_data.rbs +20 -0
  298. data/sig/yoomoney/models/b2b_sberbank_mixed_vat_data.rbs +15 -0
  299. data/sig/yoomoney/models/b2b_sberbank_untaxed_vat_data.rbs +30 -0
  300. data/sig/yoomoney/models/b2b_sberbank_vat_data.rbs +28 -0
  301. data/sig/yoomoney/models/bank_card_data.rbs +100 -0
  302. data/sig/yoomoney/models/bank_card_type.rbs +42 -0
  303. data/sig/yoomoney/models/card_request_data_with_csc.rbs +44 -0
  304. data/sig/yoomoney/models/confirmation.rbs +27 -0
  305. data/sig/yoomoney/models/confirmation_data.rbs +41 -0
  306. data/sig/yoomoney/models/deal_create_params.rbs +50 -0
  307. data/sig/yoomoney/models/deal_list_params.rbs +128 -0
  308. data/sig/yoomoney/models/deal_list_response.rbs +28 -0
  309. data/sig/yoomoney/models/deal_retrieve_params.rbs +15 -0
  310. data/sig/yoomoney/models/deal_type.rbs +13 -0
  311. data/sig/yoomoney/models/delivery_method.rbs +13 -0
  312. data/sig/yoomoney/models/delivery_method_data.rbs +13 -0
  313. data/sig/yoomoney/models/electronic_certificate_refund_article.rbs +35 -0
  314. data/sig/yoomoney/models/fee_moment.rbs +14 -0
  315. data/sig/yoomoney/models/industry_details.rbs +35 -0
  316. data/sig/yoomoney/models/invoice.rbs +141 -0
  317. data/sig/yoomoney/models/invoice_create_params.rbs +167 -0
  318. data/sig/yoomoney/models/invoice_retrieve_params.rbs +15 -0
  319. data/sig/yoomoney/models/invoicing_bank_card_data.rbs +40 -0
  320. data/sig/yoomoney/models/line_item.rbs +39 -0
  321. data/sig/yoomoney/models/locale.rbs +14 -0
  322. data/sig/yoomoney/models/mark_code_info.rbs +92 -0
  323. data/sig/yoomoney/models/mark_quantity.rbs +15 -0
  324. data/sig/yoomoney/models/me_retrieve_params.rbs +25 -0
  325. data/sig/yoomoney/models/me_retrieve_response.rbs +158 -0
  326. data/sig/yoomoney/models/monetary_amount.rbs +55 -0
  327. data/sig/yoomoney/models/notification_event_type.rbs +20 -0
  328. data/sig/yoomoney/models/operational_details.rbs +22 -0
  329. data/sig/yoomoney/models/payment.rbs +696 -0
  330. data/sig/yoomoney/models/payment_cancel_params.rbs +23 -0
  331. data/sig/yoomoney/models/payment_capture_params.rbs +63 -0
  332. data/sig/yoomoney/models/payment_create_params.rbs +571 -0
  333. data/sig/yoomoney/models/payment_deal_info.rbs +47 -0
  334. data/sig/yoomoney/models/payment_list_params.rbs +119 -0
  335. data/sig/yoomoney/models/payment_list_response.rbs +28 -0
  336. data/sig/yoomoney/models/payment_method.rbs +42 -0
  337. data/sig/yoomoney/models/payment_method_create_params.rbs +200 -0
  338. data/sig/yoomoney/models/payment_method_data.rbs +13 -0
  339. data/sig/yoomoney/models/payment_method_retrieve_params.rbs +15 -0
  340. data/sig/yoomoney/models/payment_method_status.rbs +15 -0
  341. data/sig/yoomoney/models/payment_method_type.rbs +48 -0
  342. data/sig/yoomoney/models/payment_methods_confirmation_type.rbs +13 -0
  343. data/sig/yoomoney/models/payment_retrieve_params.rbs +15 -0
  344. data/sig/yoomoney/models/payment_status.rbs +17 -0
  345. data/sig/yoomoney/models/payout.rbs +259 -0
  346. data/sig/yoomoney/models/payout_create_params.rbs +164 -0
  347. data/sig/yoomoney/models/payout_deal_info.rbs +13 -0
  348. data/sig/yoomoney/models/payout_destination.rbs +26 -0
  349. data/sig/yoomoney/models/payout_destination_data.rbs +16 -0
  350. data/sig/yoomoney/models/payout_destination_data_type.rbs +15 -0
  351. data/sig/yoomoney/models/payout_list_params.rbs +117 -0
  352. data/sig/yoomoney/models/payout_retrieve_params.rbs +15 -0
  353. data/sig/yoomoney/models/payout_search_params.rbs +68 -0
  354. data/sig/yoomoney/models/payout_status.rbs +15 -0
  355. data/sig/yoomoney/models/payouts_list.rbs +28 -0
  356. data/sig/yoomoney/models/personal_data.rbs +70 -0
  357. data/sig/yoomoney/models/personal_data_create_params.rbs +55 -0
  358. data/sig/yoomoney/models/personal_data_request.rbs +27 -0
  359. data/sig/yoomoney/models/personal_data_retrieve_params.rbs +15 -0
  360. data/sig/yoomoney/models/personal_data_type.rbs +15 -0
  361. data/sig/yoomoney/models/receipt.rbs +293 -0
  362. data/sig/yoomoney/models/receipt_create_params.rbs +293 -0
  363. data/sig/yoomoney/models/receipt_data.rbs +192 -0
  364. data/sig/yoomoney/models/receipt_data_customer.rbs +38 -0
  365. data/sig/yoomoney/models/receipt_item_agent_type.rbs +26 -0
  366. data/sig/yoomoney/models/receipt_item_measure.rbs +60 -0
  367. data/sig/yoomoney/models/receipt_item_payment_mode.rbs +26 -0
  368. data/sig/yoomoney/models/receipt_item_payment_subject.rbs +78 -0
  369. data/sig/yoomoney/models/receipt_item_supplier.rbs +19 -0
  370. data/sig/yoomoney/models/receipt_list_params.rbs +91 -0
  371. data/sig/yoomoney/models/receipt_list_response.rbs +28 -0
  372. data/sig/yoomoney/models/receipt_registration_status.rbs +15 -0
  373. data/sig/yoomoney/models/receipt_retrieve_params.rbs +15 -0
  374. data/sig/yoomoney/models/receipt_type.rbs +14 -0
  375. data/sig/yoomoney/models/receiver.rbs +25 -0
  376. data/sig/yoomoney/models/recipient.rbs +13 -0
  377. data/sig/yoomoney/models/refund.rbs +245 -0
  378. data/sig/yoomoney/models/refund_create_params.rbs +133 -0
  379. data/sig/yoomoney/models/refund_list_params.rbs +84 -0
  380. data/sig/yoomoney/models/refund_list_response.rbs +28 -0
  381. data/sig/yoomoney/models/refund_method.rbs +13 -0
  382. data/sig/yoomoney/models/refund_method_type.rbs +14 -0
  383. data/sig/yoomoney/models/refund_retrieve_params.rbs +15 -0
  384. data/sig/yoomoney/models/refund_sources_data.rbs +34 -0
  385. data/sig/yoomoney/models/refund_status.rbs +15 -0
  386. data/sig/yoomoney/models/safe_deal.rbs +85 -0
  387. data/sig/yoomoney/models/save_payment_method_bank_card.rbs +97 -0
  388. data/sig/yoomoney/models/sbp_bank_list_params.rbs +15 -0
  389. data/sig/yoomoney/models/sbp_bank_list_response.rbs +39 -0
  390. data/sig/yoomoney/models/settlement.rbs +15 -0
  391. data/sig/yoomoney/models/settlement_item_type.rbs +13 -0
  392. data/sig/yoomoney/models/transfer_data.rbs +34 -0
  393. data/sig/yoomoney/models/webhook.rbs +30 -0
  394. data/sig/yoomoney/models/webhook_create_params.rbs +36 -0
  395. data/sig/yoomoney/models/webhook_delete_params.rbs +15 -0
  396. data/sig/yoomoney/models/webhook_delete_response.rbs +5 -0
  397. data/sig/yoomoney/models/webhook_list_params.rbs +15 -0
  398. data/sig/yoomoney/models/webhook_list_response.rbs +16 -0
  399. data/sig/yoomoney/models.rbs +191 -0
  400. data/sig/yoomoney/request_options.rbs +34 -0
  401. data/sig/yoomoney/resources/deals.rbs +31 -0
  402. data/sig/yoomoney/resources/invoices.rbs +23 -0
  403. data/sig/yoomoney/resources/me.rbs +12 -0
  404. data/sig/yoomoney/resources/payment_methods.rbs +21 -0
  405. data/sig/yoomoney/resources/payments.rbs +63 -0
  406. data/sig/yoomoney/resources/payouts.rbs +41 -0
  407. data/sig/yoomoney/resources/personal_data.rbs +22 -0
  408. data/sig/yoomoney/resources/receipts.rbs +41 -0
  409. data/sig/yoomoney/resources/refunds.rbs +34 -0
  410. data/sig/yoomoney/resources/sbp_banks.rbs +11 -0
  411. data/sig/yoomoney/resources/webhooks.rbs +23 -0
  412. data/sig/yoomoney/version.rbs +3 -0
  413. metadata +484 -0
@@ -0,0 +1,44 @@
1
+ module Yoomoney
2
+ module Models
3
+ type card_request_data_with_csc =
4
+ {
5
+ expiry_month: String,
6
+ expiry_year: String,
7
+ number: String,
8
+ cardholder: String,
9
+ csc: String
10
+ }
11
+
12
+ class CardRequestDataWithCsc < Yoomoney::Internal::Type::BaseModel
13
+ attr_accessor expiry_month: String
14
+
15
+ attr_accessor expiry_year: String
16
+
17
+ attr_accessor number: String
18
+
19
+ attr_reader cardholder: String?
20
+
21
+ def cardholder=: (String) -> String
22
+
23
+ attr_reader csc: String?
24
+
25
+ def csc=: (String) -> String
26
+
27
+ def initialize: (
28
+ expiry_month: String,
29
+ expiry_year: String,
30
+ number: String,
31
+ ?cardholder: String,
32
+ ?csc: String
33
+ ) -> void
34
+
35
+ def to_hash: -> {
36
+ expiry_month: String,
37
+ expiry_year: String,
38
+ number: String,
39
+ cardholder: String,
40
+ csc: String
41
+ }
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,27 @@
1
+ module Yoomoney
2
+ module Models
3
+ type confirmation = { type: Yoomoney::Models::Confirmation::type_ }
4
+
5
+ class Confirmation < Yoomoney::Internal::Type::BaseModel
6
+ attr_accessor type: Yoomoney::Models::Confirmation::type_
7
+
8
+ def initialize: (type: Yoomoney::Models::Confirmation::type_) -> void
9
+
10
+ def to_hash: -> { type: Yoomoney::Models::Confirmation::type_ }
11
+
12
+ type type_ = :redirect | :external | :qr | :embedded | :mobile_application
13
+
14
+ module Type
15
+ extend Yoomoney::Internal::Type::Enum
16
+
17
+ REDIRECT: :redirect
18
+ EXTERNAL: :external
19
+ QR: :qr
20
+ EMBEDDED: :embedded
21
+ MOBILE_APPLICATION: :mobile_application
22
+
23
+ def self?.values: -> ::Array[Yoomoney::Models::Confirmation::type_]
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,41 @@
1
+ module Yoomoney
2
+ module Models
3
+ type confirmation_data =
4
+ {
5
+ type: Yoomoney::Models::ConfirmationData::type_,
6
+ locale: Yoomoney::Models::locale
7
+ }
8
+
9
+ class ConfirmationData < Yoomoney::Internal::Type::BaseModel
10
+ attr_accessor type: Yoomoney::Models::ConfirmationData::type_
11
+
12
+ attr_reader locale: Yoomoney::Models::locale?
13
+
14
+ def locale=: (Yoomoney::Models::locale) -> Yoomoney::Models::locale
15
+
16
+ def initialize: (
17
+ type: Yoomoney::Models::ConfirmationData::type_,
18
+ ?locale: Yoomoney::Models::locale
19
+ ) -> void
20
+
21
+ def to_hash: -> {
22
+ type: Yoomoney::Models::ConfirmationData::type_,
23
+ locale: Yoomoney::Models::locale
24
+ }
25
+
26
+ type type_ = :redirect | :external | :qr | :embedded | :mobile_application
27
+
28
+ module Type
29
+ extend Yoomoney::Internal::Type::Enum
30
+
31
+ REDIRECT: :redirect
32
+ EXTERNAL: :external
33
+ QR: :qr
34
+ EMBEDDED: :embedded
35
+ MOBILE_APPLICATION: :mobile_application
36
+
37
+ def self?.values: -> ::Array[Yoomoney::Models::ConfirmationData::type_]
38
+ end
39
+ end
40
+ end
41
+ end
@@ -0,0 +1,50 @@
1
+ module Yoomoney
2
+ module Models
3
+ type deal_create_params =
4
+ {
5
+ fee_moment: Yoomoney::Models::fee_moment,
6
+ type: Yoomoney::Models::deal_type,
7
+ idempotence_key: String,
8
+ description: String,
9
+ metadata: ::Hash[Symbol, String]
10
+ }
11
+ & Yoomoney::Internal::Type::request_parameters
12
+
13
+ class DealCreateParams < Yoomoney::Internal::Type::BaseModel
14
+ extend Yoomoney::Internal::Type::RequestParameters::Converter
15
+ include Yoomoney::Internal::Type::RequestParameters
16
+
17
+ attr_accessor fee_moment: Yoomoney::Models::fee_moment
18
+
19
+ attr_accessor type: Yoomoney::Models::deal_type
20
+
21
+ attr_accessor idempotence_key: String
22
+
23
+ attr_reader description: String?
24
+
25
+ def description=: (String) -> String
26
+
27
+ attr_reader metadata: ::Hash[Symbol, String]?
28
+
29
+ def metadata=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
30
+
31
+ def initialize: (
32
+ fee_moment: Yoomoney::Models::fee_moment,
33
+ type: Yoomoney::Models::deal_type,
34
+ idempotence_key: String,
35
+ ?description: String,
36
+ ?metadata: ::Hash[Symbol, String],
37
+ ?request_options: Yoomoney::request_opts
38
+ ) -> void
39
+
40
+ def to_hash: -> {
41
+ fee_moment: Yoomoney::Models::fee_moment,
42
+ type: Yoomoney::Models::deal_type,
43
+ idempotence_key: String,
44
+ description: String,
45
+ metadata: ::Hash[Symbol, String],
46
+ request_options: Yoomoney::RequestOptions
47
+ }
48
+ end
49
+ end
50
+ end
@@ -0,0 +1,128 @@
1
+ module Yoomoney
2
+ module Models
3
+ type deal_list_params =
4
+ {
5
+ created_at: Yoomoney::DealListParams::CreatedAt,
6
+ cursor: String,
7
+ expires_at: Yoomoney::DealListParams::ExpiresAt,
8
+ full_text_search: String,
9
+ limit: Integer,
10
+ status: Yoomoney::Models::DealListParams::status
11
+ }
12
+ & Yoomoney::Internal::Type::request_parameters
13
+
14
+ class DealListParams < Yoomoney::Internal::Type::BaseModel
15
+ extend Yoomoney::Internal::Type::RequestParameters::Converter
16
+ include Yoomoney::Internal::Type::RequestParameters
17
+
18
+ attr_reader created_at: Yoomoney::DealListParams::CreatedAt?
19
+
20
+ def created_at=: (
21
+ Yoomoney::DealListParams::CreatedAt
22
+ ) -> Yoomoney::DealListParams::CreatedAt
23
+
24
+ attr_reader cursor: String?
25
+
26
+ def cursor=: (String) -> String
27
+
28
+ attr_reader expires_at: Yoomoney::DealListParams::ExpiresAt?
29
+
30
+ def expires_at=: (
31
+ Yoomoney::DealListParams::ExpiresAt
32
+ ) -> Yoomoney::DealListParams::ExpiresAt
33
+
34
+ attr_reader full_text_search: String?
35
+
36
+ def full_text_search=: (String) -> String
37
+
38
+ attr_reader limit: Integer?
39
+
40
+ def limit=: (Integer) -> Integer
41
+
42
+ attr_reader status: Yoomoney::Models::DealListParams::status?
43
+
44
+ def status=: (
45
+ Yoomoney::Models::DealListParams::status
46
+ ) -> Yoomoney::Models::DealListParams::status
47
+
48
+ def initialize: (
49
+ ?created_at: Yoomoney::DealListParams::CreatedAt,
50
+ ?cursor: String,
51
+ ?expires_at: Yoomoney::DealListParams::ExpiresAt,
52
+ ?full_text_search: String,
53
+ ?limit: Integer,
54
+ ?status: Yoomoney::Models::DealListParams::status,
55
+ ?request_options: Yoomoney::request_opts
56
+ ) -> void
57
+
58
+ def to_hash: -> {
59
+ created_at: Yoomoney::DealListParams::CreatedAt,
60
+ cursor: String,
61
+ expires_at: Yoomoney::DealListParams::ExpiresAt,
62
+ full_text_search: String,
63
+ limit: Integer,
64
+ status: Yoomoney::Models::DealListParams::status,
65
+ request_options: Yoomoney::RequestOptions
66
+ }
67
+
68
+ type created_at = { gt: Time, gte: Time, lt: Time, lte: Time }
69
+
70
+ class CreatedAt < Yoomoney::Internal::Type::BaseModel
71
+ attr_reader gt: Time?
72
+
73
+ def gt=: (Time) -> Time
74
+
75
+ attr_reader gte: Time?
76
+
77
+ def gte=: (Time) -> Time
78
+
79
+ attr_reader lt: Time?
80
+
81
+ def lt=: (Time) -> Time
82
+
83
+ attr_reader lte: Time?
84
+
85
+ def lte=: (Time) -> Time
86
+
87
+ def initialize: (?gt: Time, ?gte: Time, ?lt: Time, ?lte: Time) -> void
88
+
89
+ def to_hash: -> { gt: Time, gte: Time, lt: Time, lte: Time }
90
+ end
91
+
92
+ type expires_at = { gt: Time, gte: Time, lt: Time, lte: Time }
93
+
94
+ class ExpiresAt < Yoomoney::Internal::Type::BaseModel
95
+ attr_reader gt: Time?
96
+
97
+ def gt=: (Time) -> Time
98
+
99
+ attr_reader gte: Time?
100
+
101
+ def gte=: (Time) -> Time
102
+
103
+ attr_reader lt: Time?
104
+
105
+ def lt=: (Time) -> Time
106
+
107
+ attr_reader lte: Time?
108
+
109
+ def lte=: (Time) -> Time
110
+
111
+ def initialize: (?gt: Time, ?gte: Time, ?lt: Time, ?lte: Time) -> void
112
+
113
+ def to_hash: -> { gt: Time, gte: Time, lt: Time, lte: Time }
114
+ end
115
+
116
+ type status = :opened | :closed
117
+
118
+ module Status
119
+ extend Yoomoney::Internal::Type::Enum
120
+
121
+ OPENED: :opened
122
+ CLOSED: :closed
123
+
124
+ def self?.values: -> ::Array[Yoomoney::Models::DealListParams::status]
125
+ end
126
+ end
127
+ end
128
+ end
@@ -0,0 +1,28 @@
1
+ module Yoomoney
2
+ module Models
3
+ type deal_list_response =
4
+ { items: ::Array[Yoomoney::SafeDeal], type: String, next_cursor: String }
5
+
6
+ class DealListResponse < Yoomoney::Internal::Type::BaseModel
7
+ attr_accessor items: ::Array[Yoomoney::SafeDeal]
8
+
9
+ attr_accessor type: String
10
+
11
+ attr_reader next_cursor: String?
12
+
13
+ def next_cursor=: (String) -> String
14
+
15
+ def initialize: (
16
+ items: ::Array[Yoomoney::SafeDeal],
17
+ type: String,
18
+ ?next_cursor: String
19
+ ) -> void
20
+
21
+ def to_hash: -> {
22
+ items: ::Array[Yoomoney::SafeDeal],
23
+ type: String,
24
+ next_cursor: String
25
+ }
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,15 @@
1
+ module Yoomoney
2
+ module Models
3
+ type deal_retrieve_params =
4
+ { } & Yoomoney::Internal::Type::request_parameters
5
+
6
+ class DealRetrieveParams < Yoomoney::Internal::Type::BaseModel
7
+ extend Yoomoney::Internal::Type::RequestParameters::Converter
8
+ include Yoomoney::Internal::Type::RequestParameters
9
+
10
+ def initialize: (?request_options: Yoomoney::request_opts) -> void
11
+
12
+ def to_hash: -> { request_options: Yoomoney::RequestOptions }
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,13 @@
1
+ module Yoomoney
2
+ module Models
3
+ type deal_type = :safe_deal
4
+
5
+ module DealType
6
+ extend Yoomoney::Internal::Type::Enum
7
+
8
+ SAFE_DEAL: :safe_deal
9
+
10
+ def self?.values: -> ::Array[Yoomoney::Models::deal_type]
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ module Yoomoney
2
+ module Models
3
+ type delivery_method = { type: String }
4
+
5
+ class DeliveryMethod < Yoomoney::Internal::Type::BaseModel
6
+ attr_accessor type: String
7
+
8
+ def initialize: (type: String) -> void
9
+
10
+ def to_hash: -> { type: String }
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ module Yoomoney
2
+ module Models
3
+ type delivery_method_data = { type: String }
4
+
5
+ class DeliveryMethodData < Yoomoney::Internal::Type::BaseModel
6
+ attr_accessor type: String
7
+
8
+ def initialize: (type: String) -> void
9
+
10
+ def to_hash: -> { type: String }
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,35 @@
1
+ module Yoomoney
2
+ module Models
3
+ type electronic_certificate_refund_article =
4
+ {
5
+ article_number: Integer,
6
+ payment_article_number: Integer,
7
+ quantity: Integer,
8
+ tru_code: String
9
+ }
10
+
11
+ class ElectronicCertificateRefundArticle < Yoomoney::Internal::Type::BaseModel
12
+ attr_accessor article_number: Integer
13
+
14
+ attr_accessor payment_article_number: Integer
15
+
16
+ attr_accessor quantity: Integer
17
+
18
+ attr_accessor tru_code: String
19
+
20
+ def initialize: (
21
+ article_number: Integer,
22
+ payment_article_number: Integer,
23
+ quantity: Integer,
24
+ tru_code: String
25
+ ) -> void
26
+
27
+ def to_hash: -> {
28
+ article_number: Integer,
29
+ payment_article_number: Integer,
30
+ quantity: Integer,
31
+ tru_code: String
32
+ }
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,14 @@
1
+ module Yoomoney
2
+ module Models
3
+ type fee_moment = :payment_succeeded | :deal_closed
4
+
5
+ module FeeMoment
6
+ extend Yoomoney::Internal::Type::Enum
7
+
8
+ PAYMENT_SUCCEEDED: :payment_succeeded
9
+ DEAL_CLOSED: :deal_closed
10
+
11
+ def self?.values: -> ::Array[Yoomoney::Models::fee_moment]
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,35 @@
1
+ module Yoomoney
2
+ module Models
3
+ type industry_details =
4
+ {
5
+ document_date: String,
6
+ document_number: String,
7
+ federal_id: String,
8
+ value: String
9
+ }
10
+
11
+ class IndustryDetails < Yoomoney::Internal::Type::BaseModel
12
+ attr_accessor document_date: String
13
+
14
+ attr_accessor document_number: String
15
+
16
+ attr_accessor federal_id: String
17
+
18
+ attr_accessor value: String
19
+
20
+ def initialize: (
21
+ document_date: String,
22
+ document_number: String,
23
+ federal_id: String,
24
+ value: String
25
+ ) -> void
26
+
27
+ def to_hash: -> {
28
+ document_date: String,
29
+ document_number: String,
30
+ federal_id: String,
31
+ value: String
32
+ }
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,141 @@
1
+ module Yoomoney
2
+ module Models
3
+ type invoice =
4
+ {
5
+ id: String,
6
+ cart: ::Array[Yoomoney::LineItem],
7
+ created_at: Time,
8
+ status: Yoomoney::Models::Invoice::status,
9
+ cancellation_details: Yoomoney::Invoice::CancellationDetails,
10
+ delivery_method: Yoomoney::Models::Invoice::delivery_method,
11
+ description: String,
12
+ expires_at: Time,
13
+ metadata: ::Hash[Symbol, String],
14
+ payment_details: Yoomoney::Invoice::PaymentDetails
15
+ }
16
+
17
+ class Invoice < Yoomoney::Internal::Type::BaseModel
18
+ attr_accessor id: String
19
+
20
+ attr_accessor cart: ::Array[Yoomoney::LineItem]
21
+
22
+ attr_accessor created_at: Time
23
+
24
+ attr_accessor status: Yoomoney::Models::Invoice::status
25
+
26
+ attr_reader cancellation_details: Yoomoney::Invoice::CancellationDetails?
27
+
28
+ def cancellation_details=: (
29
+ Yoomoney::Invoice::CancellationDetails
30
+ ) -> Yoomoney::Invoice::CancellationDetails
31
+
32
+ attr_reader delivery_method: Yoomoney::Models::Invoice::delivery_method?
33
+
34
+ def delivery_method=: (
35
+ Yoomoney::Models::Invoice::delivery_method
36
+ ) -> Yoomoney::Models::Invoice::delivery_method
37
+
38
+ attr_reader description: String?
39
+
40
+ def description=: (String) -> String
41
+
42
+ attr_reader expires_at: Time?
43
+
44
+ def expires_at=: (Time) -> Time
45
+
46
+ attr_reader metadata: ::Hash[Symbol, String]?
47
+
48
+ def metadata=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
49
+
50
+ attr_reader payment_details: Yoomoney::Invoice::PaymentDetails?
51
+
52
+ def payment_details=: (
53
+ Yoomoney::Invoice::PaymentDetails
54
+ ) -> Yoomoney::Invoice::PaymentDetails
55
+
56
+ def initialize: (
57
+ id: String,
58
+ cart: ::Array[Yoomoney::LineItem],
59
+ created_at: Time,
60
+ status: Yoomoney::Models::Invoice::status,
61
+ ?cancellation_details: Yoomoney::Invoice::CancellationDetails,
62
+ ?delivery_method: Yoomoney::Models::Invoice::delivery_method,
63
+ ?description: String,
64
+ ?expires_at: Time,
65
+ ?metadata: ::Hash[Symbol, String],
66
+ ?payment_details: Yoomoney::Invoice::PaymentDetails
67
+ ) -> void
68
+
69
+ def to_hash: -> {
70
+ id: String,
71
+ cart: ::Array[Yoomoney::LineItem],
72
+ created_at: Time,
73
+ status: Yoomoney::Models::Invoice::status,
74
+ cancellation_details: Yoomoney::Invoice::CancellationDetails,
75
+ delivery_method: Yoomoney::Models::Invoice::delivery_method,
76
+ description: String,
77
+ expires_at: Time,
78
+ metadata: ::Hash[Symbol, String],
79
+ payment_details: Yoomoney::Invoice::PaymentDetails
80
+ }
81
+
82
+ type status = :pending | :succeeded | :canceled
83
+
84
+ module Status
85
+ extend Yoomoney::Internal::Type::Enum
86
+
87
+ PENDING: :pending
88
+ SUCCEEDED: :succeeded
89
+ CANCELED: :canceled
90
+
91
+ def self?.values: -> ::Array[Yoomoney::Models::Invoice::status]
92
+ end
93
+
94
+ type cancellation_details = { party: String, reason: String }
95
+
96
+ class CancellationDetails < Yoomoney::Internal::Type::BaseModel
97
+ attr_accessor party: String
98
+
99
+ attr_accessor reason: String
100
+
101
+ def initialize: (party: String, reason: String) -> void
102
+
103
+ def to_hash: -> { party: String, reason: String }
104
+ end
105
+
106
+ type delivery_method =
107
+ Yoomoney::Invoice::DeliveryMethod::DeliveryMethodSelf
108
+ | Yoomoney::DeliveryMethod
109
+
110
+ module DeliveryMethod
111
+ extend Yoomoney::Internal::Type::Union
112
+
113
+ type delivery_method_self = { url: String }
114
+
115
+ class DeliveryMethodSelf < Yoomoney::Models::DeliveryMethod
116
+ def url: -> String?
117
+
118
+ def url=: (String _) -> String
119
+
120
+ def initialize: (?url: String) -> void
121
+
122
+ def to_hash: -> { url: String }
123
+ end
124
+
125
+ def self?.variants: -> ::Array[Yoomoney::Models::Invoice::delivery_method]
126
+ end
127
+
128
+ type payment_details = { id: String, status: String }
129
+
130
+ class PaymentDetails < Yoomoney::Internal::Type::BaseModel
131
+ attr_accessor id: String
132
+
133
+ attr_accessor status: String
134
+
135
+ def initialize: (id: String, status: String) -> void
136
+
137
+ def to_hash: -> { id: String, status: String }
138
+ end
139
+ end
140
+ end
141
+ end