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.
- checksums.yaml +7 -0
- data/.ignore +2 -0
- data/CHANGELOG.md +17 -0
- data/README.md +246 -0
- data/SECURITY.md +23 -0
- data/lib/yoomoney/client.rb +110 -0
- data/lib/yoomoney/errors.rb +228 -0
- data/lib/yoomoney/file_part.rb +58 -0
- data/lib/yoomoney/internal/transport/base_client.rb +567 -0
- data/lib/yoomoney/internal/transport/pooled_net_requester.rb +210 -0
- data/lib/yoomoney/internal/type/array_of.rb +168 -0
- data/lib/yoomoney/internal/type/base_model.rb +531 -0
- data/lib/yoomoney/internal/type/base_page.rb +55 -0
- data/lib/yoomoney/internal/type/boolean.rb +77 -0
- data/lib/yoomoney/internal/type/converter.rb +327 -0
- data/lib/yoomoney/internal/type/enum.rb +156 -0
- data/lib/yoomoney/internal/type/file_input.rb +111 -0
- data/lib/yoomoney/internal/type/hash_of.rb +188 -0
- data/lib/yoomoney/internal/type/request_parameters.rb +42 -0
- data/lib/yoomoney/internal/type/union.rb +237 -0
- data/lib/yoomoney/internal/type/unknown.rb +81 -0
- data/lib/yoomoney/internal/util.rb +920 -0
- data/lib/yoomoney/internal.rb +20 -0
- data/lib/yoomoney/models/airline.rb +77 -0
- data/lib/yoomoney/models/b2b_sberbank_calculated_vat_data.rb +24 -0
- data/lib/yoomoney/models/b2b_sberbank_mixed_vat_data.rb +16 -0
- data/lib/yoomoney/models/b2b_sberbank_untaxed_vat_data.rb +27 -0
- data/lib/yoomoney/models/b2b_sberbank_vat_data.rb +27 -0
- data/lib/yoomoney/models/bank_card_data.rb +95 -0
- data/lib/yoomoney/models/bank_card_type.rb +28 -0
- data/lib/yoomoney/models/card_request_data_with_csc.rb +48 -0
- data/lib/yoomoney/models/confirmation.rb +32 -0
- data/lib/yoomoney/models/confirmation_data.rb +40 -0
- data/lib/yoomoney/models/deal_create_params.rb +59 -0
- data/lib/yoomoney/models/deal_list_params.rb +116 -0
- data/lib/yoomoney/models/deal_list_response.rb +28 -0
- data/lib/yoomoney/models/deal_retrieve_params.rb +14 -0
- data/lib/yoomoney/models/deal_type.rb +14 -0
- data/lib/yoomoney/models/delivery_method.rb +16 -0
- data/lib/yoomoney/models/delivery_method_data.rb +16 -0
- data/lib/yoomoney/models/electronic_certificate_refund_article.rb +33 -0
- data/lib/yoomoney/models/fee_moment.rb +15 -0
- data/lib/yoomoney/models/industry_details.rb +33 -0
- data/lib/yoomoney/models/invoice.rb +174 -0
- data/lib/yoomoney/models/invoice_create_params.rb +179 -0
- data/lib/yoomoney/models/invoice_retrieve_params.rb +14 -0
- data/lib/yoomoney/models/invoicing_bank_card_data.rb +39 -0
- data/lib/yoomoney/models/line_item.rb +40 -0
- data/lib/yoomoney/models/locale.rb +15 -0
- data/lib/yoomoney/models/mark_code_info.rb +75 -0
- data/lib/yoomoney/models/mark_quantity.rb +21 -0
- data/lib/yoomoney/models/me_retrieve_params.rb +20 -0
- data/lib/yoomoney/models/me_retrieve_response.rb +143 -0
- data/lib/yoomoney/models/monetary_amount.rb +51 -0
- data/lib/yoomoney/models/notification_event_type.rb +17 -0
- data/lib/yoomoney/models/operational_details.rb +27 -0
- data/lib/yoomoney/models/payment.rb +707 -0
- data/lib/yoomoney/models/payment_cancel_params.rb +20 -0
- data/lib/yoomoney/models/payment_capture_params.rb +61 -0
- data/lib/yoomoney/models/payment_create_params.rb +586 -0
- data/lib/yoomoney/models/payment_deal_info.rb +40 -0
- data/lib/yoomoney/models/payment_list_params.rb +106 -0
- data/lib/yoomoney/models/payment_list_response.rb +33 -0
- data/lib/yoomoney/models/payment_method.rb +48 -0
- data/lib/yoomoney/models/payment_method_create_params.rb +188 -0
- data/lib/yoomoney/models/payment_method_data.rb +16 -0
- data/lib/yoomoney/models/payment_method_retrieve_params.rb +14 -0
- data/lib/yoomoney/models/payment_method_status.rb +16 -0
- data/lib/yoomoney/models/payment_method_type.rb +31 -0
- data/lib/yoomoney/models/payment_methods_confirmation_type.rb +14 -0
- data/lib/yoomoney/models/payment_retrieve_params.rb +14 -0
- data/lib/yoomoney/models/payment_status.rb +17 -0
- data/lib/yoomoney/models/payout.rb +268 -0
- data/lib/yoomoney/models/payout_create_params.rb +171 -0
- data/lib/yoomoney/models/payout_deal_info.rb +16 -0
- data/lib/yoomoney/models/payout_destination.rb +30 -0
- data/lib/yoomoney/models/payout_destination_data.rb +16 -0
- data/lib/yoomoney/models/payout_destination_data_type.rb +16 -0
- data/lib/yoomoney/models/payout_list_params.rb +94 -0
- data/lib/yoomoney/models/payout_retrieve_params.rb +14 -0
- data/lib/yoomoney/models/payout_search_params.rb +60 -0
- data/lib/yoomoney/models/payout_status.rb +16 -0
- data/lib/yoomoney/models/payouts_list.rb +33 -0
- data/lib/yoomoney/models/personal_data.rb +90 -0
- data/lib/yoomoney/models/personal_data_create_params.rb +67 -0
- data/lib/yoomoney/models/personal_data_request.rb +30 -0
- data/lib/yoomoney/models/personal_data_retrieve_params.rb +14 -0
- data/lib/yoomoney/models/personal_data_type.rb +15 -0
- data/lib/yoomoney/models/receipt.rb +277 -0
- data/lib/yoomoney/models/receipt_create_params.rb +304 -0
- data/lib/yoomoney/models/receipt_data.rb +171 -0
- data/lib/yoomoney/models/receipt_data_customer.rb +33 -0
- data/lib/yoomoney/models/receipt_item_agent_type.rb +20 -0
- data/lib/yoomoney/models/receipt_item_measure.rb +37 -0
- data/lib/yoomoney/models/receipt_item_payment_mode.rb +20 -0
- data/lib/yoomoney/models/receipt_item_payment_subject.rb +46 -0
- data/lib/yoomoney/models/receipt_item_supplier.rb +21 -0
- data/lib/yoomoney/models/receipt_list_params.rb +78 -0
- data/lib/yoomoney/models/receipt_list_response.rb +28 -0
- data/lib/yoomoney/models/receipt_registration_status.rb +16 -0
- data/lib/yoomoney/models/receipt_retrieve_params.rb +14 -0
- data/lib/yoomoney/models/receipt_type.rb +15 -0
- data/lib/yoomoney/models/receiver.rb +30 -0
- data/lib/yoomoney/models/recipient.rb +20 -0
- data/lib/yoomoney/models/refund.rb +248 -0
- data/lib/yoomoney/models/refund_create_params.rb +133 -0
- data/lib/yoomoney/models/refund_list_params.rb +72 -0
- data/lib/yoomoney/models/refund_list_response.rb +28 -0
- data/lib/yoomoney/models/refund_method.rb +15 -0
- data/lib/yoomoney/models/refund_method_type.rb +15 -0
- data/lib/yoomoney/models/refund_retrieve_params.rb +14 -0
- data/lib/yoomoney/models/refund_sources_data.rb +32 -0
- data/lib/yoomoney/models/refund_status.rb +16 -0
- data/lib/yoomoney/models/safe_deal.rb +116 -0
- data/lib/yoomoney/models/save_payment_method_bank_card.rb +85 -0
- data/lib/yoomoney/models/sbp_bank_list_params.rb +14 -0
- data/lib/yoomoney/models/sbp_bank_list_response.rb +49 -0
- data/lib/yoomoney/models/settlement.rb +24 -0
- data/lib/yoomoney/models/settlement_item_type.rb +14 -0
- data/lib/yoomoney/models/transfer_data.rb +36 -0
- data/lib/yoomoney/models/webhook.rb +33 -0
- data/lib/yoomoney/models/webhook_create_params.rb +37 -0
- data/lib/yoomoney/models/webhook_delete_params.rb +14 -0
- data/lib/yoomoney/models/webhook_delete_response.rb +8 -0
- data/lib/yoomoney/models/webhook_list_params.rb +14 -0
- data/lib/yoomoney/models/webhook_list_response.rb +22 -0
- data/lib/yoomoney/models.rb +231 -0
- data/lib/yoomoney/request_options.rb +77 -0
- data/lib/yoomoney/resources/deals.rb +94 -0
- data/lib/yoomoney/resources/invoices.rb +72 -0
- data/lib/yoomoney/resources/me.rb +35 -0
- data/lib/yoomoney/resources/payment_methods.rb +68 -0
- data/lib/yoomoney/resources/payments.rb +182 -0
- data/lib/yoomoney/resources/payouts.rb +124 -0
- data/lib/yoomoney/resources/personal_data.rb +70 -0
- data/lib/yoomoney/resources/receipts.rb +111 -0
- data/lib/yoomoney/resources/refunds.rb +101 -0
- data/lib/yoomoney/resources/sbp_banks.rb +32 -0
- data/lib/yoomoney/resources/webhooks.rb +79 -0
- data/lib/yoomoney/version.rb +5 -0
- data/lib/yoomoney.rb +169 -0
- data/manifest.yaml +17 -0
- data/rbi/yoomoney/client.rbi +82 -0
- data/rbi/yoomoney/errors.rbi +205 -0
- data/rbi/yoomoney/file_part.rbi +37 -0
- data/rbi/yoomoney/internal/transport/base_client.rbi +292 -0
- data/rbi/yoomoney/internal/transport/pooled_net_requester.rbi +83 -0
- data/rbi/yoomoney/internal/type/array_of.rbi +104 -0
- data/rbi/yoomoney/internal/type/base_model.rbi +306 -0
- data/rbi/yoomoney/internal/type/base_page.rbi +42 -0
- data/rbi/yoomoney/internal/type/boolean.rbi +58 -0
- data/rbi/yoomoney/internal/type/converter.rbi +216 -0
- data/rbi/yoomoney/internal/type/enum.rbi +82 -0
- data/rbi/yoomoney/internal/type/file_input.rbi +59 -0
- data/rbi/yoomoney/internal/type/hash_of.rbi +104 -0
- data/rbi/yoomoney/internal/type/request_parameters.rbi +29 -0
- data/rbi/yoomoney/internal/type/union.rbi +128 -0
- data/rbi/yoomoney/internal/type/unknown.rbi +58 -0
- data/rbi/yoomoney/internal/util.rbi +487 -0
- data/rbi/yoomoney/internal.rbi +16 -0
- data/rbi/yoomoney/models/airline.rbi +141 -0
- data/rbi/yoomoney/models/b2b_sberbank_calculated_vat_data.rbi +45 -0
- data/rbi/yoomoney/models/b2b_sberbank_mixed_vat_data.rbi +34 -0
- data/rbi/yoomoney/models/b2b_sberbank_untaxed_vat_data.rbi +65 -0
- data/rbi/yoomoney/models/b2b_sberbank_vat_data.rbi +51 -0
- data/rbi/yoomoney/models/bank_card_data.rbi +156 -0
- data/rbi/yoomoney/models/bank_card_type.rbi +34 -0
- data/rbi/yoomoney/models/card_request_data_with_csc.rbi +75 -0
- data/rbi/yoomoney/models/confirmation.rbi +55 -0
- data/rbi/yoomoney/models/confirmation_data.rbi +78 -0
- data/rbi/yoomoney/models/deal_create_params.rbi +85 -0
- data/rbi/yoomoney/models/deal_list_params.rbi +204 -0
- data/rbi/yoomoney/models/deal_list_response.rbi +46 -0
- data/rbi/yoomoney/models/deal_retrieve_params.rbi +27 -0
- data/rbi/yoomoney/models/deal_type.rbi +18 -0
- data/rbi/yoomoney/models/delivery_method.rbi +27 -0
- data/rbi/yoomoney/models/delivery_method_data.rbi +27 -0
- data/rbi/yoomoney/models/electronic_certificate_refund_article.rbi +56 -0
- data/rbi/yoomoney/models/fee_moment.rbi +20 -0
- data/rbi/yoomoney/models/industry_details.rbi +48 -0
- data/rbi/yoomoney/models/invoice.rbi +266 -0
- data/rbi/yoomoney/models/invoice_create_params.rbi +309 -0
- data/rbi/yoomoney/models/invoice_retrieve_params.rbi +27 -0
- data/rbi/yoomoney/models/invoicing_bank_card_data.rbi +53 -0
- data/rbi/yoomoney/models/line_item.rbi +65 -0
- data/rbi/yoomoney/models/locale.rbi +19 -0
- data/rbi/yoomoney/models/mark_code_info.rbi +128 -0
- data/rbi/yoomoney/models/mark_quantity.rbi +30 -0
- data/rbi/yoomoney/models/me_retrieve_params.rbi +38 -0
- data/rbi/yoomoney/models/me_retrieve_response.rbi +342 -0
- data/rbi/yoomoney/models/monetary_amount.rbi +77 -0
- data/rbi/yoomoney/models/notification_event_type.rbi +42 -0
- data/rbi/yoomoney/models/operational_details.rbi +37 -0
- data/rbi/yoomoney/models/payment.rbi +1347 -0
- data/rbi/yoomoney/models/payment_cancel_params.rbi +35 -0
- data/rbi/yoomoney/models/payment_capture_params.rbi +96 -0
- data/rbi/yoomoney/models/payment_create_params.rbi +1258 -0
- data/rbi/yoomoney/models/payment_deal_info.rbi +84 -0
- data/rbi/yoomoney/models/payment_list_params.rbi +187 -0
- data/rbi/yoomoney/models/payment_list_response.rbi +59 -0
- data/rbi/yoomoney/models/payment_method.rbi +72 -0
- data/rbi/yoomoney/models/payment_method_create_params.rbi +372 -0
- data/rbi/yoomoney/models/payment_method_data.rbi +31 -0
- data/rbi/yoomoney/models/payment_method_retrieve_params.rbi +30 -0
- data/rbi/yoomoney/models/payment_method_status.rbi +23 -0
- data/rbi/yoomoney/models/payment_method_type.rbi +45 -0
- data/rbi/yoomoney/models/payment_methods_confirmation_type.rbi +24 -0
- data/rbi/yoomoney/models/payment_retrieve_params.rbi +27 -0
- data/rbi/yoomoney/models/payment_status.rbi +22 -0
- data/rbi/yoomoney/models/payout.rbi +452 -0
- data/rbi/yoomoney/models/payout_create_params.rbi +350 -0
- data/rbi/yoomoney/models/payout_deal_info.rbi +27 -0
- data/rbi/yoomoney/models/payout_destination.rbi +58 -0
- data/rbi/yoomoney/models/payout_destination_data.rbi +35 -0
- data/rbi/yoomoney/models/payout_destination_data_type.rbi +27 -0
- data/rbi/yoomoney/models/payout_list_params.rbi +215 -0
- data/rbi/yoomoney/models/payout_retrieve_params.rbi +27 -0
- data/rbi/yoomoney/models/payout_search_params.rbi +110 -0
- data/rbi/yoomoney/models/payout_status.rbi +20 -0
- data/rbi/yoomoney/models/payouts_list.rbi +56 -0
- data/rbi/yoomoney/models/personal_data.rbi +132 -0
- data/rbi/yoomoney/models/personal_data_create_params.rbi +93 -0
- data/rbi/yoomoney/models/personal_data_request.rbi +54 -0
- data/rbi/yoomoney/models/personal_data_retrieve_params.rbi +30 -0
- data/rbi/yoomoney/models/personal_data_type.rbi +26 -0
- data/rbi/yoomoney/models/receipt.rbi +442 -0
- data/rbi/yoomoney/models/receipt_create_params.rbi +471 -0
- data/rbi/yoomoney/models/receipt_data.rbi +279 -0
- data/rbi/yoomoney/models/receipt_data_customer.rbi +55 -0
- data/rbi/yoomoney/models/receipt_item_agent_type.rbi +38 -0
- data/rbi/yoomoney/models/receipt_item_measure.rbi +52 -0
- data/rbi/yoomoney/models/receipt_item_payment_mode.rbi +37 -0
- data/rbi/yoomoney/models/receipt_item_payment_subject.rbi +119 -0
- data/rbi/yoomoney/models/receipt_item_supplier.rbi +32 -0
- data/rbi/yoomoney/models/receipt_list_params.rbi +137 -0
- data/rbi/yoomoney/models/receipt_list_response.rbi +49 -0
- data/rbi/yoomoney/models/receipt_registration_status.rbi +28 -0
- data/rbi/yoomoney/models/receipt_retrieve_params.rbi +27 -0
- data/rbi/yoomoney/models/receipt_type.rbi +19 -0
- data/rbi/yoomoney/models/receiver.rbi +50 -0
- data/rbi/yoomoney/models/recipient.rbi +27 -0
- data/rbi/yoomoney/models/refund.rbi +477 -0
- data/rbi/yoomoney/models/refund_create_params.rbi +249 -0
- data/rbi/yoomoney/models/refund_list_params.rbi +128 -0
- data/rbi/yoomoney/models/refund_list_response.rbi +49 -0
- data/rbi/yoomoney/models/refund_method.rbi +29 -0
- data/rbi/yoomoney/models/refund_method_type.rbi +22 -0
- data/rbi/yoomoney/models/refund_retrieve_params.rbi +27 -0
- data/rbi/yoomoney/models/refund_sources_data.rbi +59 -0
- data/rbi/yoomoney/models/refund_status.rbi +20 -0
- data/rbi/yoomoney/models/safe_deal.rbi +151 -0
- data/rbi/yoomoney/models/save_payment_method_bank_card.rbi +160 -0
- data/rbi/yoomoney/models/sbp_bank_list_params.rbi +27 -0
- data/rbi/yoomoney/models/sbp_bank_list_response.rbi +82 -0
- data/rbi/yoomoney/models/settlement.rbi +42 -0
- data/rbi/yoomoney/models/settlement_item_type.rbi +21 -0
- data/rbi/yoomoney/models/transfer_data.rbi +61 -0
- data/rbi/yoomoney/models/webhook.rbi +51 -0
- data/rbi/yoomoney/models/webhook_create_params.rbi +57 -0
- data/rbi/yoomoney/models/webhook_delete_params.rbi +27 -0
- data/rbi/yoomoney/models/webhook_delete_response.rbi +8 -0
- data/rbi/yoomoney/models/webhook_list_params.rbi +27 -0
- data/rbi/yoomoney/models/webhook_list_response.rbi +36 -0
- data/rbi/yoomoney/models.rbi +195 -0
- data/rbi/yoomoney/request_options.rbi +59 -0
- data/rbi/yoomoney/resources/deals.rbi +75 -0
- data/rbi/yoomoney/resources/invoices.rbi +63 -0
- data/rbi/yoomoney/resources/me.rbi +22 -0
- data/rbi/yoomoney/resources/payment_methods.rbi +51 -0
- data/rbi/yoomoney/resources/payments.rbi +186 -0
- data/rbi/yoomoney/resources/payouts.rbi +104 -0
- data/rbi/yoomoney/resources/personal_data.rbi +55 -0
- data/rbi/yoomoney/resources/receipts.rbi +102 -0
- data/rbi/yoomoney/resources/refunds.rbi +86 -0
- data/rbi/yoomoney/resources/sbp_banks.rbi +21 -0
- data/rbi/yoomoney/resources/webhooks.rbi +51 -0
- data/rbi/yoomoney/version.rbi +5 -0
- data/sig/yoomoney/client.rbs +47 -0
- data/sig/yoomoney/errors.rbs +117 -0
- data/sig/yoomoney/file_part.rbs +21 -0
- data/sig/yoomoney/internal/transport/base_client.rbs +131 -0
- data/sig/yoomoney/internal/transport/pooled_net_requester.rbs +48 -0
- data/sig/yoomoney/internal/type/array_of.rbs +48 -0
- data/sig/yoomoney/internal/type/base_model.rbs +102 -0
- data/sig/yoomoney/internal/type/base_page.rbs +24 -0
- data/sig/yoomoney/internal/type/boolean.rbs +26 -0
- data/sig/yoomoney/internal/type/converter.rbs +79 -0
- data/sig/yoomoney/internal/type/enum.rbs +32 -0
- data/sig/yoomoney/internal/type/file_input.rbs +25 -0
- data/sig/yoomoney/internal/type/hash_of.rbs +48 -0
- data/sig/yoomoney/internal/type/request_parameters.rbs +17 -0
- data/sig/yoomoney/internal/type/union.rbs +52 -0
- data/sig/yoomoney/internal/type/unknown.rbs +26 -0
- data/sig/yoomoney/internal/util.rbs +185 -0
- data/sig/yoomoney/internal.rbs +9 -0
- data/sig/yoomoney/models/airline.rbs +93 -0
- data/sig/yoomoney/models/b2b_sberbank_calculated_vat_data.rbs +20 -0
- data/sig/yoomoney/models/b2b_sberbank_mixed_vat_data.rbs +15 -0
- data/sig/yoomoney/models/b2b_sberbank_untaxed_vat_data.rbs +30 -0
- data/sig/yoomoney/models/b2b_sberbank_vat_data.rbs +28 -0
- data/sig/yoomoney/models/bank_card_data.rbs +100 -0
- data/sig/yoomoney/models/bank_card_type.rbs +42 -0
- data/sig/yoomoney/models/card_request_data_with_csc.rbs +44 -0
- data/sig/yoomoney/models/confirmation.rbs +27 -0
- data/sig/yoomoney/models/confirmation_data.rbs +41 -0
- data/sig/yoomoney/models/deal_create_params.rbs +50 -0
- data/sig/yoomoney/models/deal_list_params.rbs +128 -0
- data/sig/yoomoney/models/deal_list_response.rbs +28 -0
- data/sig/yoomoney/models/deal_retrieve_params.rbs +15 -0
- data/sig/yoomoney/models/deal_type.rbs +13 -0
- data/sig/yoomoney/models/delivery_method.rbs +13 -0
- data/sig/yoomoney/models/delivery_method_data.rbs +13 -0
- data/sig/yoomoney/models/electronic_certificate_refund_article.rbs +35 -0
- data/sig/yoomoney/models/fee_moment.rbs +14 -0
- data/sig/yoomoney/models/industry_details.rbs +35 -0
- data/sig/yoomoney/models/invoice.rbs +141 -0
- data/sig/yoomoney/models/invoice_create_params.rbs +167 -0
- data/sig/yoomoney/models/invoice_retrieve_params.rbs +15 -0
- data/sig/yoomoney/models/invoicing_bank_card_data.rbs +40 -0
- data/sig/yoomoney/models/line_item.rbs +39 -0
- data/sig/yoomoney/models/locale.rbs +14 -0
- data/sig/yoomoney/models/mark_code_info.rbs +92 -0
- data/sig/yoomoney/models/mark_quantity.rbs +15 -0
- data/sig/yoomoney/models/me_retrieve_params.rbs +25 -0
- data/sig/yoomoney/models/me_retrieve_response.rbs +158 -0
- data/sig/yoomoney/models/monetary_amount.rbs +55 -0
- data/sig/yoomoney/models/notification_event_type.rbs +20 -0
- data/sig/yoomoney/models/operational_details.rbs +22 -0
- data/sig/yoomoney/models/payment.rbs +696 -0
- data/sig/yoomoney/models/payment_cancel_params.rbs +23 -0
- data/sig/yoomoney/models/payment_capture_params.rbs +63 -0
- data/sig/yoomoney/models/payment_create_params.rbs +571 -0
- data/sig/yoomoney/models/payment_deal_info.rbs +47 -0
- data/sig/yoomoney/models/payment_list_params.rbs +119 -0
- data/sig/yoomoney/models/payment_list_response.rbs +28 -0
- data/sig/yoomoney/models/payment_method.rbs +42 -0
- data/sig/yoomoney/models/payment_method_create_params.rbs +200 -0
- data/sig/yoomoney/models/payment_method_data.rbs +13 -0
- data/sig/yoomoney/models/payment_method_retrieve_params.rbs +15 -0
- data/sig/yoomoney/models/payment_method_status.rbs +15 -0
- data/sig/yoomoney/models/payment_method_type.rbs +48 -0
- data/sig/yoomoney/models/payment_methods_confirmation_type.rbs +13 -0
- data/sig/yoomoney/models/payment_retrieve_params.rbs +15 -0
- data/sig/yoomoney/models/payment_status.rbs +17 -0
- data/sig/yoomoney/models/payout.rbs +259 -0
- data/sig/yoomoney/models/payout_create_params.rbs +164 -0
- data/sig/yoomoney/models/payout_deal_info.rbs +13 -0
- data/sig/yoomoney/models/payout_destination.rbs +26 -0
- data/sig/yoomoney/models/payout_destination_data.rbs +16 -0
- data/sig/yoomoney/models/payout_destination_data_type.rbs +15 -0
- data/sig/yoomoney/models/payout_list_params.rbs +117 -0
- data/sig/yoomoney/models/payout_retrieve_params.rbs +15 -0
- data/sig/yoomoney/models/payout_search_params.rbs +68 -0
- data/sig/yoomoney/models/payout_status.rbs +15 -0
- data/sig/yoomoney/models/payouts_list.rbs +28 -0
- data/sig/yoomoney/models/personal_data.rbs +70 -0
- data/sig/yoomoney/models/personal_data_create_params.rbs +55 -0
- data/sig/yoomoney/models/personal_data_request.rbs +27 -0
- data/sig/yoomoney/models/personal_data_retrieve_params.rbs +15 -0
- data/sig/yoomoney/models/personal_data_type.rbs +15 -0
- data/sig/yoomoney/models/receipt.rbs +293 -0
- data/sig/yoomoney/models/receipt_create_params.rbs +293 -0
- data/sig/yoomoney/models/receipt_data.rbs +192 -0
- data/sig/yoomoney/models/receipt_data_customer.rbs +38 -0
- data/sig/yoomoney/models/receipt_item_agent_type.rbs +26 -0
- data/sig/yoomoney/models/receipt_item_measure.rbs +60 -0
- data/sig/yoomoney/models/receipt_item_payment_mode.rbs +26 -0
- data/sig/yoomoney/models/receipt_item_payment_subject.rbs +78 -0
- data/sig/yoomoney/models/receipt_item_supplier.rbs +19 -0
- data/sig/yoomoney/models/receipt_list_params.rbs +91 -0
- data/sig/yoomoney/models/receipt_list_response.rbs +28 -0
- data/sig/yoomoney/models/receipt_registration_status.rbs +15 -0
- data/sig/yoomoney/models/receipt_retrieve_params.rbs +15 -0
- data/sig/yoomoney/models/receipt_type.rbs +14 -0
- data/sig/yoomoney/models/receiver.rbs +25 -0
- data/sig/yoomoney/models/recipient.rbs +13 -0
- data/sig/yoomoney/models/refund.rbs +245 -0
- data/sig/yoomoney/models/refund_create_params.rbs +133 -0
- data/sig/yoomoney/models/refund_list_params.rbs +84 -0
- data/sig/yoomoney/models/refund_list_response.rbs +28 -0
- data/sig/yoomoney/models/refund_method.rbs +13 -0
- data/sig/yoomoney/models/refund_method_type.rbs +14 -0
- data/sig/yoomoney/models/refund_retrieve_params.rbs +15 -0
- data/sig/yoomoney/models/refund_sources_data.rbs +34 -0
- data/sig/yoomoney/models/refund_status.rbs +15 -0
- data/sig/yoomoney/models/safe_deal.rbs +85 -0
- data/sig/yoomoney/models/save_payment_method_bank_card.rbs +97 -0
- data/sig/yoomoney/models/sbp_bank_list_params.rbs +15 -0
- data/sig/yoomoney/models/sbp_bank_list_response.rbs +39 -0
- data/sig/yoomoney/models/settlement.rbs +15 -0
- data/sig/yoomoney/models/settlement_item_type.rbs +13 -0
- data/sig/yoomoney/models/transfer_data.rbs +34 -0
- data/sig/yoomoney/models/webhook.rbs +30 -0
- data/sig/yoomoney/models/webhook_create_params.rbs +36 -0
- data/sig/yoomoney/models/webhook_delete_params.rbs +15 -0
- data/sig/yoomoney/models/webhook_delete_response.rbs +5 -0
- data/sig/yoomoney/models/webhook_list_params.rbs +15 -0
- data/sig/yoomoney/models/webhook_list_response.rbs +16 -0
- data/sig/yoomoney/models.rbs +191 -0
- data/sig/yoomoney/request_options.rbs +34 -0
- data/sig/yoomoney/resources/deals.rbs +31 -0
- data/sig/yoomoney/resources/invoices.rbs +23 -0
- data/sig/yoomoney/resources/me.rbs +12 -0
- data/sig/yoomoney/resources/payment_methods.rbs +21 -0
- data/sig/yoomoney/resources/payments.rbs +63 -0
- data/sig/yoomoney/resources/payouts.rbs +41 -0
- data/sig/yoomoney/resources/personal_data.rbs +22 -0
- data/sig/yoomoney/resources/receipts.rbs +41 -0
- data/sig/yoomoney/resources/refunds.rbs +34 -0
- data/sig/yoomoney/resources/sbp_banks.rbs +11 -0
- data/sig/yoomoney/resources/webhooks.rbs +23 -0
- data/sig/yoomoney/version.rbs +3 -0
- metadata +484 -0
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type receipt_item_payment_subject =
|
|
4
|
+
:commodity
|
|
5
|
+
| :excise
|
|
6
|
+
| :job
|
|
7
|
+
| :service
|
|
8
|
+
| :gambling_bet
|
|
9
|
+
| :gambling_prize
|
|
10
|
+
| :lottery
|
|
11
|
+
| :lottery_prize
|
|
12
|
+
| :intellectual_activity
|
|
13
|
+
| :payment
|
|
14
|
+
| :agent_commission
|
|
15
|
+
| :property_right
|
|
16
|
+
| :non_operating_gain
|
|
17
|
+
| :insurance_premium
|
|
18
|
+
| :sales_tax
|
|
19
|
+
| :resort_fee
|
|
20
|
+
| :composite
|
|
21
|
+
| :another
|
|
22
|
+
| :fine
|
|
23
|
+
| :tax
|
|
24
|
+
| :lien
|
|
25
|
+
| :cost
|
|
26
|
+
| :pension_insurance_without_payouts
|
|
27
|
+
| :pension_insurance_with_payouts
|
|
28
|
+
| :health_insurance_without_payouts
|
|
29
|
+
| :health_insurance_with_payouts
|
|
30
|
+
| :health_insurance
|
|
31
|
+
| :casino
|
|
32
|
+
| :agent_withdrawals
|
|
33
|
+
| :non_marked_excise
|
|
34
|
+
| :marked_excise
|
|
35
|
+
| :marked
|
|
36
|
+
| :non_marked
|
|
37
|
+
|
|
38
|
+
module ReceiptItemPaymentSubject
|
|
39
|
+
extend Yoomoney::Internal::Type::Enum
|
|
40
|
+
|
|
41
|
+
COMMODITY: :commodity
|
|
42
|
+
EXCISE: :excise
|
|
43
|
+
JOB: :job
|
|
44
|
+
SERVICE: :service
|
|
45
|
+
GAMBLING_BET: :gambling_bet
|
|
46
|
+
GAMBLING_PRIZE: :gambling_prize
|
|
47
|
+
LOTTERY: :lottery
|
|
48
|
+
LOTTERY_PRIZE: :lottery_prize
|
|
49
|
+
INTELLECTUAL_ACTIVITY: :intellectual_activity
|
|
50
|
+
PAYMENT: :payment
|
|
51
|
+
AGENT_COMMISSION: :agent_commission
|
|
52
|
+
PROPERTY_RIGHT: :property_right
|
|
53
|
+
NON_OPERATING_GAIN: :non_operating_gain
|
|
54
|
+
INSURANCE_PREMIUM: :insurance_premium
|
|
55
|
+
SALES_TAX: :sales_tax
|
|
56
|
+
RESORT_FEE: :resort_fee
|
|
57
|
+
COMPOSITE: :composite
|
|
58
|
+
ANOTHER: :another
|
|
59
|
+
FINE: :fine
|
|
60
|
+
TAX: :tax
|
|
61
|
+
LIEN: :lien
|
|
62
|
+
COST: :cost
|
|
63
|
+
PENSION_INSURANCE_WITHOUT_PAYOUTS: :pension_insurance_without_payouts
|
|
64
|
+
PENSION_INSURANCE_WITH_PAYOUTS: :pension_insurance_with_payouts
|
|
65
|
+
HEALTH_INSURANCE_WITHOUT_PAYOUTS: :health_insurance_without_payouts
|
|
66
|
+
HEALTH_INSURANCE_WITH_PAYOUTS: :health_insurance_with_payouts
|
|
67
|
+
HEALTH_INSURANCE: :health_insurance
|
|
68
|
+
CASINO: :casino
|
|
69
|
+
AGENT_WITHDRAWALS: :agent_withdrawals
|
|
70
|
+
NON_MARKED_EXCISE: :non_marked_excise
|
|
71
|
+
MARKED_EXCISE: :marked_excise
|
|
72
|
+
MARKED: :marked
|
|
73
|
+
NON_MARKED: :non_marked
|
|
74
|
+
|
|
75
|
+
def self?.values: -> ::Array[Yoomoney::Models::receipt_item_payment_subject]
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type receipt_item_supplier = { name: String, phone: String }
|
|
4
|
+
|
|
5
|
+
class ReceiptItemSupplier < Yoomoney::Internal::Type::BaseModel
|
|
6
|
+
attr_reader name: String?
|
|
7
|
+
|
|
8
|
+
def name=: (String) -> String
|
|
9
|
+
|
|
10
|
+
attr_reader phone: String?
|
|
11
|
+
|
|
12
|
+
def phone=: (String) -> String
|
|
13
|
+
|
|
14
|
+
def initialize: (?name: String, ?phone: String) -> void
|
|
15
|
+
|
|
16
|
+
def to_hash: -> { name: String, phone: String }
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type receipt_list_params =
|
|
4
|
+
{
|
|
5
|
+
created_at: Yoomoney::ReceiptListParams::CreatedAt,
|
|
6
|
+
cursor: String,
|
|
7
|
+
limit: Integer,
|
|
8
|
+
payment_id: String,
|
|
9
|
+
refund_id: String,
|
|
10
|
+
status: Yoomoney::Models::receipt_registration_status
|
|
11
|
+
}
|
|
12
|
+
& Yoomoney::Internal::Type::request_parameters
|
|
13
|
+
|
|
14
|
+
class ReceiptListParams < Yoomoney::Internal::Type::BaseModel
|
|
15
|
+
extend Yoomoney::Internal::Type::RequestParameters::Converter
|
|
16
|
+
include Yoomoney::Internal::Type::RequestParameters
|
|
17
|
+
|
|
18
|
+
attr_reader created_at: Yoomoney::ReceiptListParams::CreatedAt?
|
|
19
|
+
|
|
20
|
+
def created_at=: (
|
|
21
|
+
Yoomoney::ReceiptListParams::CreatedAt
|
|
22
|
+
) -> Yoomoney::ReceiptListParams::CreatedAt
|
|
23
|
+
|
|
24
|
+
attr_reader cursor: String?
|
|
25
|
+
|
|
26
|
+
def cursor=: (String) -> String
|
|
27
|
+
|
|
28
|
+
attr_reader limit: Integer?
|
|
29
|
+
|
|
30
|
+
def limit=: (Integer) -> Integer
|
|
31
|
+
|
|
32
|
+
attr_reader payment_id: String?
|
|
33
|
+
|
|
34
|
+
def payment_id=: (String) -> String
|
|
35
|
+
|
|
36
|
+
attr_reader refund_id: String?
|
|
37
|
+
|
|
38
|
+
def refund_id=: (String) -> String
|
|
39
|
+
|
|
40
|
+
attr_reader status: Yoomoney::Models::receipt_registration_status?
|
|
41
|
+
|
|
42
|
+
def status=: (
|
|
43
|
+
Yoomoney::Models::receipt_registration_status
|
|
44
|
+
) -> Yoomoney::Models::receipt_registration_status
|
|
45
|
+
|
|
46
|
+
def initialize: (
|
|
47
|
+
?created_at: Yoomoney::ReceiptListParams::CreatedAt,
|
|
48
|
+
?cursor: String,
|
|
49
|
+
?limit: Integer,
|
|
50
|
+
?payment_id: String,
|
|
51
|
+
?refund_id: String,
|
|
52
|
+
?status: Yoomoney::Models::receipt_registration_status,
|
|
53
|
+
?request_options: Yoomoney::request_opts
|
|
54
|
+
) -> void
|
|
55
|
+
|
|
56
|
+
def to_hash: -> {
|
|
57
|
+
created_at: Yoomoney::ReceiptListParams::CreatedAt,
|
|
58
|
+
cursor: String,
|
|
59
|
+
limit: Integer,
|
|
60
|
+
payment_id: String,
|
|
61
|
+
refund_id: String,
|
|
62
|
+
status: Yoomoney::Models::receipt_registration_status,
|
|
63
|
+
request_options: Yoomoney::RequestOptions
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
type created_at = { gt: Time, gte: Time, lt: Time, lte: Time }
|
|
67
|
+
|
|
68
|
+
class CreatedAt < Yoomoney::Internal::Type::BaseModel
|
|
69
|
+
attr_reader gt: Time?
|
|
70
|
+
|
|
71
|
+
def gt=: (Time) -> Time
|
|
72
|
+
|
|
73
|
+
attr_reader gte: Time?
|
|
74
|
+
|
|
75
|
+
def gte=: (Time) -> Time
|
|
76
|
+
|
|
77
|
+
attr_reader lt: Time?
|
|
78
|
+
|
|
79
|
+
def lt=: (Time) -> Time
|
|
80
|
+
|
|
81
|
+
attr_reader lte: Time?
|
|
82
|
+
|
|
83
|
+
def lte=: (Time) -> Time
|
|
84
|
+
|
|
85
|
+
def initialize: (?gt: Time, ?gte: Time, ?lt: Time, ?lte: Time) -> void
|
|
86
|
+
|
|
87
|
+
def to_hash: -> { gt: Time, gte: Time, lt: Time, lte: Time }
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type receipt_list_response =
|
|
4
|
+
{ items: ::Array[Yoomoney::Receipt], type: String, next_cursor: String }
|
|
5
|
+
|
|
6
|
+
class ReceiptListResponse < Yoomoney::Internal::Type::BaseModel
|
|
7
|
+
attr_accessor items: ::Array[Yoomoney::Receipt]
|
|
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::Receipt],
|
|
17
|
+
type: String,
|
|
18
|
+
?next_cursor: String
|
|
19
|
+
) -> void
|
|
20
|
+
|
|
21
|
+
def to_hash: -> {
|
|
22
|
+
items: ::Array[Yoomoney::Receipt],
|
|
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 receipt_registration_status = :pending | :succeeded | :canceled
|
|
4
|
+
|
|
5
|
+
module ReceiptRegistrationStatus
|
|
6
|
+
extend Yoomoney::Internal::Type::Enum
|
|
7
|
+
|
|
8
|
+
PENDING: :pending
|
|
9
|
+
SUCCEEDED: :succeeded
|
|
10
|
+
CANCELED: :canceled
|
|
11
|
+
|
|
12
|
+
def self?.values: -> ::Array[Yoomoney::Models::receipt_registration_status]
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type receipt_retrieve_params =
|
|
4
|
+
{ } & Yoomoney::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class ReceiptRetrieveParams < 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,14 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type receipt_type = :payment | :refund
|
|
4
|
+
|
|
5
|
+
module ReceiptType
|
|
6
|
+
extend Yoomoney::Internal::Type::Enum
|
|
7
|
+
|
|
8
|
+
PAYMENT: :payment
|
|
9
|
+
REFUND: :refund
|
|
10
|
+
|
|
11
|
+
def self?.values: -> ::Array[Yoomoney::Models::receipt_type]
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type receiver = { type: Yoomoney::Models::Receiver::type_ }
|
|
4
|
+
|
|
5
|
+
class Receiver < Yoomoney::Internal::Type::BaseModel
|
|
6
|
+
attr_accessor type: Yoomoney::Models::Receiver::type_
|
|
7
|
+
|
|
8
|
+
def initialize: (type: Yoomoney::Models::Receiver::type_) -> void
|
|
9
|
+
|
|
10
|
+
def to_hash: -> { type: Yoomoney::Models::Receiver::type_ }
|
|
11
|
+
|
|
12
|
+
type type_ = :mobile_balance | :digital_wallet | :bank_account
|
|
13
|
+
|
|
14
|
+
module Type
|
|
15
|
+
extend Yoomoney::Internal::Type::Enum
|
|
16
|
+
|
|
17
|
+
MOBILE_BALANCE: :mobile_balance
|
|
18
|
+
DIGITAL_WALLET: :digital_wallet
|
|
19
|
+
BANK_ACCOUNT: :bank_account
|
|
20
|
+
|
|
21
|
+
def self?.values: -> ::Array[Yoomoney::Models::Receiver::type_]
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type recipient = { gateway_id: String }
|
|
4
|
+
|
|
5
|
+
class Recipient < Yoomoney::Internal::Type::BaseModel
|
|
6
|
+
attr_accessor gateway_id: String
|
|
7
|
+
|
|
8
|
+
def initialize: (gateway_id: String) -> void
|
|
9
|
+
|
|
10
|
+
def to_hash: -> { gateway_id: String }
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type refund =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
amount: Yoomoney::MonetaryAmount,
|
|
7
|
+
created_at: Time,
|
|
8
|
+
payment_id: String,
|
|
9
|
+
status: Yoomoney::Models::refund_status,
|
|
10
|
+
cancellation_details: Yoomoney::Refund::CancellationDetails,
|
|
11
|
+
deal: Yoomoney::Refund::Deal,
|
|
12
|
+
description: String,
|
|
13
|
+
metadata: ::Hash[Symbol, String],
|
|
14
|
+
receipt_registration: Yoomoney::Models::receipt_registration_status,
|
|
15
|
+
refund_authorization_details: Yoomoney::Refund::RefundAuthorizationDetails,
|
|
16
|
+
refund_method: Yoomoney::Models::Refund::refund_method,
|
|
17
|
+
sources: ::Array[Yoomoney::RefundSourcesData]
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
class Refund < Yoomoney::Internal::Type::BaseModel
|
|
21
|
+
attr_accessor id: String
|
|
22
|
+
|
|
23
|
+
attr_accessor amount: Yoomoney::MonetaryAmount
|
|
24
|
+
|
|
25
|
+
attr_accessor created_at: Time
|
|
26
|
+
|
|
27
|
+
attr_accessor payment_id: String
|
|
28
|
+
|
|
29
|
+
attr_accessor status: Yoomoney::Models::refund_status
|
|
30
|
+
|
|
31
|
+
attr_reader cancellation_details: Yoomoney::Refund::CancellationDetails?
|
|
32
|
+
|
|
33
|
+
def cancellation_details=: (
|
|
34
|
+
Yoomoney::Refund::CancellationDetails
|
|
35
|
+
) -> Yoomoney::Refund::CancellationDetails
|
|
36
|
+
|
|
37
|
+
attr_reader deal: Yoomoney::Refund::Deal?
|
|
38
|
+
|
|
39
|
+
def deal=: (Yoomoney::Refund::Deal) -> Yoomoney::Refund::Deal
|
|
40
|
+
|
|
41
|
+
attr_reader description: String?
|
|
42
|
+
|
|
43
|
+
def description=: (String) -> String
|
|
44
|
+
|
|
45
|
+
attr_reader metadata: ::Hash[Symbol, String]?
|
|
46
|
+
|
|
47
|
+
def metadata=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
|
|
48
|
+
|
|
49
|
+
attr_reader receipt_registration: Yoomoney::Models::receipt_registration_status?
|
|
50
|
+
|
|
51
|
+
def receipt_registration=: (
|
|
52
|
+
Yoomoney::Models::receipt_registration_status
|
|
53
|
+
) -> Yoomoney::Models::receipt_registration_status
|
|
54
|
+
|
|
55
|
+
attr_reader refund_authorization_details: Yoomoney::Refund::RefundAuthorizationDetails?
|
|
56
|
+
|
|
57
|
+
def refund_authorization_details=: (
|
|
58
|
+
Yoomoney::Refund::RefundAuthorizationDetails
|
|
59
|
+
) -> Yoomoney::Refund::RefundAuthorizationDetails
|
|
60
|
+
|
|
61
|
+
attr_reader refund_method: Yoomoney::Models::Refund::refund_method?
|
|
62
|
+
|
|
63
|
+
def refund_method=: (
|
|
64
|
+
Yoomoney::Models::Refund::refund_method
|
|
65
|
+
) -> Yoomoney::Models::Refund::refund_method
|
|
66
|
+
|
|
67
|
+
attr_reader sources: ::Array[Yoomoney::RefundSourcesData]?
|
|
68
|
+
|
|
69
|
+
def sources=: (
|
|
70
|
+
::Array[Yoomoney::RefundSourcesData]
|
|
71
|
+
) -> ::Array[Yoomoney::RefundSourcesData]
|
|
72
|
+
|
|
73
|
+
def initialize: (
|
|
74
|
+
id: String,
|
|
75
|
+
amount: Yoomoney::MonetaryAmount,
|
|
76
|
+
created_at: Time,
|
|
77
|
+
payment_id: String,
|
|
78
|
+
status: Yoomoney::Models::refund_status,
|
|
79
|
+
?cancellation_details: Yoomoney::Refund::CancellationDetails,
|
|
80
|
+
?deal: Yoomoney::Refund::Deal,
|
|
81
|
+
?description: String,
|
|
82
|
+
?metadata: ::Hash[Symbol, String],
|
|
83
|
+
?receipt_registration: Yoomoney::Models::receipt_registration_status,
|
|
84
|
+
?refund_authorization_details: Yoomoney::Refund::RefundAuthorizationDetails,
|
|
85
|
+
?refund_method: Yoomoney::Models::Refund::refund_method,
|
|
86
|
+
?sources: ::Array[Yoomoney::RefundSourcesData]
|
|
87
|
+
) -> void
|
|
88
|
+
|
|
89
|
+
def to_hash: -> {
|
|
90
|
+
id: String,
|
|
91
|
+
amount: Yoomoney::MonetaryAmount,
|
|
92
|
+
created_at: Time,
|
|
93
|
+
payment_id: String,
|
|
94
|
+
status: Yoomoney::Models::refund_status,
|
|
95
|
+
cancellation_details: Yoomoney::Refund::CancellationDetails,
|
|
96
|
+
deal: Yoomoney::Refund::Deal,
|
|
97
|
+
description: String,
|
|
98
|
+
metadata: ::Hash[Symbol, String],
|
|
99
|
+
receipt_registration: Yoomoney::Models::receipt_registration_status,
|
|
100
|
+
refund_authorization_details: Yoomoney::Refund::RefundAuthorizationDetails,
|
|
101
|
+
refund_method: Yoomoney::Models::Refund::refund_method,
|
|
102
|
+
sources: ::Array[Yoomoney::RefundSourcesData]
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
type cancellation_details = { party: String, reason: String }
|
|
106
|
+
|
|
107
|
+
class CancellationDetails < Yoomoney::Internal::Type::BaseModel
|
|
108
|
+
attr_accessor party: String
|
|
109
|
+
|
|
110
|
+
attr_accessor reason: String
|
|
111
|
+
|
|
112
|
+
def initialize: (party: String, reason: String) -> void
|
|
113
|
+
|
|
114
|
+
def to_hash: -> { party: String, reason: String }
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
type deal =
|
|
118
|
+
{
|
|
119
|
+
id: String,
|
|
120
|
+
refund_settlements: ::Array[Yoomoney::Refund::Deal::RefundSettlement]
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
class Deal < Yoomoney::Internal::Type::BaseModel
|
|
124
|
+
attr_accessor id: String
|
|
125
|
+
|
|
126
|
+
attr_accessor refund_settlements: ::Array[Yoomoney::Refund::Deal::RefundSettlement]
|
|
127
|
+
|
|
128
|
+
def initialize: (
|
|
129
|
+
id: String,
|
|
130
|
+
refund_settlements: ::Array[Yoomoney::Refund::Deal::RefundSettlement]
|
|
131
|
+
) -> void
|
|
132
|
+
|
|
133
|
+
def to_hash: -> {
|
|
134
|
+
id: String,
|
|
135
|
+
refund_settlements: ::Array[Yoomoney::Refund::Deal::RefundSettlement]
|
|
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
|
+
end
|
|
160
|
+
|
|
161
|
+
type refund_authorization_details = { rrn: String }
|
|
162
|
+
|
|
163
|
+
class RefundAuthorizationDetails < Yoomoney::Internal::Type::BaseModel
|
|
164
|
+
attr_reader rrn: String?
|
|
165
|
+
|
|
166
|
+
def rrn=: (String) -> String
|
|
167
|
+
|
|
168
|
+
def initialize: (?rrn: String) -> void
|
|
169
|
+
|
|
170
|
+
def to_hash: -> { rrn: String }
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
type refund_method =
|
|
174
|
+
Yoomoney::Refund::RefundMethod::SbpRefundMethod
|
|
175
|
+
| Yoomoney::Refund::RefundMethod::ElectronicCertificateRefundMethod
|
|
176
|
+
|
|
177
|
+
module RefundMethod
|
|
178
|
+
extend Yoomoney::Internal::Type::Union
|
|
179
|
+
|
|
180
|
+
type sbp_refund_method = { sbp_operation_id: String }
|
|
181
|
+
|
|
182
|
+
class SbpRefundMethod < Yoomoney::Models::RefundMethod
|
|
183
|
+
def sbp_operation_id: -> String?
|
|
184
|
+
|
|
185
|
+
def sbp_operation_id=: (String _) -> String
|
|
186
|
+
|
|
187
|
+
def initialize: (?sbp_operation_id: String) -> void
|
|
188
|
+
|
|
189
|
+
def to_hash: -> { sbp_operation_id: String }
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
type electronic_certificate_refund_method =
|
|
193
|
+
{
|
|
194
|
+
articles: ::Array[Yoomoney::ElectronicCertificateRefundArticle],
|
|
195
|
+
electronic_certificate: Yoomoney::Refund::RefundMethod::ElectronicCertificateRefundMethod::ElectronicCertificate
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
class ElectronicCertificateRefundMethod < Yoomoney::Models::RefundMethod
|
|
199
|
+
def articles: -> ::Array[Yoomoney::ElectronicCertificateRefundArticle]?
|
|
200
|
+
|
|
201
|
+
def articles=: (
|
|
202
|
+
::Array[Yoomoney::ElectronicCertificateRefundArticle] _
|
|
203
|
+
) -> ::Array[Yoomoney::ElectronicCertificateRefundArticle]
|
|
204
|
+
|
|
205
|
+
def electronic_certificate: -> Yoomoney::Refund::RefundMethod::ElectronicCertificateRefundMethod::ElectronicCertificate?
|
|
206
|
+
|
|
207
|
+
def electronic_certificate=: (
|
|
208
|
+
Yoomoney::Refund::RefundMethod::ElectronicCertificateRefundMethod::ElectronicCertificate _
|
|
209
|
+
) -> Yoomoney::Refund::RefundMethod::ElectronicCertificateRefundMethod::ElectronicCertificate
|
|
210
|
+
|
|
211
|
+
def initialize: (
|
|
212
|
+
?articles: ::Array[Yoomoney::ElectronicCertificateRefundArticle],
|
|
213
|
+
?electronic_certificate: Yoomoney::Refund::RefundMethod::ElectronicCertificateRefundMethod::ElectronicCertificate
|
|
214
|
+
) -> void
|
|
215
|
+
|
|
216
|
+
def to_hash: -> {
|
|
217
|
+
articles: ::Array[Yoomoney::ElectronicCertificateRefundArticle],
|
|
218
|
+
electronic_certificate: Yoomoney::Refund::RefundMethod::ElectronicCertificateRefundMethod::ElectronicCertificate
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
type electronic_certificate =
|
|
222
|
+
{ amount: Yoomoney::MonetaryAmount, basket_id: String }
|
|
223
|
+
|
|
224
|
+
class ElectronicCertificate < Yoomoney::Internal::Type::BaseModel
|
|
225
|
+
attr_accessor amount: Yoomoney::MonetaryAmount
|
|
226
|
+
|
|
227
|
+
attr_accessor basket_id: String
|
|
228
|
+
|
|
229
|
+
def initialize: (
|
|
230
|
+
amount: Yoomoney::MonetaryAmount,
|
|
231
|
+
basket_id: String
|
|
232
|
+
) -> void
|
|
233
|
+
|
|
234
|
+
def to_hash: -> {
|
|
235
|
+
amount: Yoomoney::MonetaryAmount,
|
|
236
|
+
basket_id: String
|
|
237
|
+
}
|
|
238
|
+
end
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
def self?.variants: -> ::Array[Yoomoney::Models::Refund::refund_method]
|
|
242
|
+
end
|
|
243
|
+
end
|
|
244
|
+
end
|
|
245
|
+
end
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type refund_create_params =
|
|
4
|
+
{
|
|
5
|
+
amount: Yoomoney::MonetaryAmount,
|
|
6
|
+
payment_id: String,
|
|
7
|
+
idempotence_key: String,
|
|
8
|
+
deal: Yoomoney::RefundCreateParams::Deal,
|
|
9
|
+
description: String,
|
|
10
|
+
metadata: ::Hash[Symbol, String],
|
|
11
|
+
receipt: Yoomoney::ReceiptData,
|
|
12
|
+
refund_method_data: Yoomoney::RefundCreateParams::RefundMethodData,
|
|
13
|
+
sources: ::Array[Yoomoney::RefundSourcesData]
|
|
14
|
+
}
|
|
15
|
+
& Yoomoney::Internal::Type::request_parameters
|
|
16
|
+
|
|
17
|
+
class RefundCreateParams < Yoomoney::Internal::Type::BaseModel
|
|
18
|
+
extend Yoomoney::Internal::Type::RequestParameters::Converter
|
|
19
|
+
include Yoomoney::Internal::Type::RequestParameters
|
|
20
|
+
|
|
21
|
+
attr_accessor amount: Yoomoney::MonetaryAmount
|
|
22
|
+
|
|
23
|
+
attr_accessor payment_id: String
|
|
24
|
+
|
|
25
|
+
attr_accessor idempotence_key: String
|
|
26
|
+
|
|
27
|
+
attr_reader deal: Yoomoney::RefundCreateParams::Deal?
|
|
28
|
+
|
|
29
|
+
def deal=: (
|
|
30
|
+
Yoomoney::RefundCreateParams::Deal
|
|
31
|
+
) -> Yoomoney::RefundCreateParams::Deal
|
|
32
|
+
|
|
33
|
+
attr_reader description: String?
|
|
34
|
+
|
|
35
|
+
def description=: (String) -> String
|
|
36
|
+
|
|
37
|
+
attr_reader metadata: ::Hash[Symbol, String]?
|
|
38
|
+
|
|
39
|
+
def metadata=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
|
|
40
|
+
|
|
41
|
+
attr_reader receipt: Yoomoney::ReceiptData?
|
|
42
|
+
|
|
43
|
+
def receipt=: (Yoomoney::ReceiptData) -> Yoomoney::ReceiptData
|
|
44
|
+
|
|
45
|
+
attr_reader refund_method_data: Yoomoney::RefundCreateParams::RefundMethodData?
|
|
46
|
+
|
|
47
|
+
def refund_method_data=: (
|
|
48
|
+
Yoomoney::RefundCreateParams::RefundMethodData
|
|
49
|
+
) -> Yoomoney::RefundCreateParams::RefundMethodData
|
|
50
|
+
|
|
51
|
+
attr_reader sources: ::Array[Yoomoney::RefundSourcesData]?
|
|
52
|
+
|
|
53
|
+
def sources=: (
|
|
54
|
+
::Array[Yoomoney::RefundSourcesData]
|
|
55
|
+
) -> ::Array[Yoomoney::RefundSourcesData]
|
|
56
|
+
|
|
57
|
+
def initialize: (
|
|
58
|
+
amount: Yoomoney::MonetaryAmount,
|
|
59
|
+
payment_id: String,
|
|
60
|
+
idempotence_key: String,
|
|
61
|
+
?deal: Yoomoney::RefundCreateParams::Deal,
|
|
62
|
+
?description: String,
|
|
63
|
+
?metadata: ::Hash[Symbol, String],
|
|
64
|
+
?receipt: Yoomoney::ReceiptData,
|
|
65
|
+
?refund_method_data: Yoomoney::RefundCreateParams::RefundMethodData,
|
|
66
|
+
?sources: ::Array[Yoomoney::RefundSourcesData],
|
|
67
|
+
?request_options: Yoomoney::request_opts
|
|
68
|
+
) -> void
|
|
69
|
+
|
|
70
|
+
def to_hash: -> {
|
|
71
|
+
amount: Yoomoney::MonetaryAmount,
|
|
72
|
+
payment_id: String,
|
|
73
|
+
idempotence_key: String,
|
|
74
|
+
deal: Yoomoney::RefundCreateParams::Deal,
|
|
75
|
+
description: String,
|
|
76
|
+
metadata: ::Hash[Symbol, String],
|
|
77
|
+
receipt: Yoomoney::ReceiptData,
|
|
78
|
+
refund_method_data: Yoomoney::RefundCreateParams::RefundMethodData,
|
|
79
|
+
sources: ::Array[Yoomoney::RefundSourcesData],
|
|
80
|
+
request_options: Yoomoney::RequestOptions
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
type deal =
|
|
84
|
+
{
|
|
85
|
+
refund_settlements: ::Array[Yoomoney::RefundCreateParams::Deal::RefundSettlement]
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
class Deal < Yoomoney::Internal::Type::BaseModel
|
|
89
|
+
attr_accessor refund_settlements: ::Array[Yoomoney::RefundCreateParams::Deal::RefundSettlement]
|
|
90
|
+
|
|
91
|
+
def initialize: (
|
|
92
|
+
refund_settlements: ::Array[Yoomoney::RefundCreateParams::Deal::RefundSettlement]
|
|
93
|
+
) -> void
|
|
94
|
+
|
|
95
|
+
def to_hash: -> {
|
|
96
|
+
refund_settlements: ::Array[Yoomoney::RefundCreateParams::Deal::RefundSettlement]
|
|
97
|
+
}
|
|
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
|
+
end
|
|
121
|
+
|
|
122
|
+
type refund_method_data = { type: Yoomoney::Models::refund_method_type }
|
|
123
|
+
|
|
124
|
+
class RefundMethodData < Yoomoney::Internal::Type::BaseModel
|
|
125
|
+
attr_accessor type: Yoomoney::Models::refund_method_type
|
|
126
|
+
|
|
127
|
+
def initialize: (type: Yoomoney::Models::refund_method_type) -> void
|
|
128
|
+
|
|
129
|
+
def to_hash: -> { type: Yoomoney::Models::refund_method_type }
|
|
130
|
+
end
|
|
131
|
+
end
|
|
132
|
+
end
|
|
133
|
+
end
|