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,191 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
class Airline = Yoomoney::Models::Airline
|
|
3
|
+
|
|
4
|
+
class B2bSberbankCalculatedVatData = Yoomoney::Models::B2bSberbankCalculatedVatData
|
|
5
|
+
|
|
6
|
+
class B2bSberbankMixedVatData = Yoomoney::Models::B2bSberbankMixedVatData
|
|
7
|
+
|
|
8
|
+
class B2bSberbankUntaxedVatData = Yoomoney::Models::B2bSberbankUntaxedVatData
|
|
9
|
+
|
|
10
|
+
class B2bSberbankVatData = Yoomoney::Models::B2bSberbankVatData
|
|
11
|
+
|
|
12
|
+
class BankCardData = Yoomoney::Models::BankCardData
|
|
13
|
+
|
|
14
|
+
module BankCardType = Yoomoney::Models::BankCardType
|
|
15
|
+
|
|
16
|
+
class CardRequestDataWithCsc = Yoomoney::Models::CardRequestDataWithCsc
|
|
17
|
+
|
|
18
|
+
class Confirmation = Yoomoney::Models::Confirmation
|
|
19
|
+
|
|
20
|
+
class ConfirmationData = Yoomoney::Models::ConfirmationData
|
|
21
|
+
|
|
22
|
+
class DealCreateParams = Yoomoney::Models::DealCreateParams
|
|
23
|
+
|
|
24
|
+
class DealListParams = Yoomoney::Models::DealListParams
|
|
25
|
+
|
|
26
|
+
class DealRetrieveParams = Yoomoney::Models::DealRetrieveParams
|
|
27
|
+
|
|
28
|
+
module DealType = Yoomoney::Models::DealType
|
|
29
|
+
|
|
30
|
+
class DeliveryMethod = Yoomoney::Models::DeliveryMethod
|
|
31
|
+
|
|
32
|
+
class DeliveryMethodData = Yoomoney::Models::DeliveryMethodData
|
|
33
|
+
|
|
34
|
+
class ElectronicCertificateRefundArticle = Yoomoney::Models::ElectronicCertificateRefundArticle
|
|
35
|
+
|
|
36
|
+
module FeeMoment = Yoomoney::Models::FeeMoment
|
|
37
|
+
|
|
38
|
+
class IndustryDetails = Yoomoney::Models::IndustryDetails
|
|
39
|
+
|
|
40
|
+
class Invoice = Yoomoney::Models::Invoice
|
|
41
|
+
|
|
42
|
+
class InvoiceCreateParams = Yoomoney::Models::InvoiceCreateParams
|
|
43
|
+
|
|
44
|
+
class InvoiceRetrieveParams = Yoomoney::Models::InvoiceRetrieveParams
|
|
45
|
+
|
|
46
|
+
class InvoicingBankCardData = Yoomoney::Models::InvoicingBankCardData
|
|
47
|
+
|
|
48
|
+
class LineItem = Yoomoney::Models::LineItem
|
|
49
|
+
|
|
50
|
+
module Locale = Yoomoney::Models::Locale
|
|
51
|
+
|
|
52
|
+
class MarkCodeInfo = Yoomoney::Models::MarkCodeInfo
|
|
53
|
+
|
|
54
|
+
class MarkQuantity = Yoomoney::Models::MarkQuantity
|
|
55
|
+
|
|
56
|
+
class MeRetrieveParams = Yoomoney::Models::MeRetrieveParams
|
|
57
|
+
|
|
58
|
+
class MonetaryAmount = Yoomoney::Models::MonetaryAmount
|
|
59
|
+
|
|
60
|
+
module NotificationEventType = Yoomoney::Models::NotificationEventType
|
|
61
|
+
|
|
62
|
+
class OperationalDetails = Yoomoney::Models::OperationalDetails
|
|
63
|
+
|
|
64
|
+
class Payment = Yoomoney::Models::Payment
|
|
65
|
+
|
|
66
|
+
class PaymentCancelParams = Yoomoney::Models::PaymentCancelParams
|
|
67
|
+
|
|
68
|
+
class PaymentCaptureParams = Yoomoney::Models::PaymentCaptureParams
|
|
69
|
+
|
|
70
|
+
class PaymentCreateParams = Yoomoney::Models::PaymentCreateParams
|
|
71
|
+
|
|
72
|
+
class PaymentDealInfo = Yoomoney::Models::PaymentDealInfo
|
|
73
|
+
|
|
74
|
+
class PaymentListParams = Yoomoney::Models::PaymentListParams
|
|
75
|
+
|
|
76
|
+
class PaymentMethod = Yoomoney::Models::PaymentMethod
|
|
77
|
+
|
|
78
|
+
class PaymentMethodCreateParams = Yoomoney::Models::PaymentMethodCreateParams
|
|
79
|
+
|
|
80
|
+
class PaymentMethodData = Yoomoney::Models::PaymentMethodData
|
|
81
|
+
|
|
82
|
+
class PaymentMethodRetrieveParams = Yoomoney::Models::PaymentMethodRetrieveParams
|
|
83
|
+
|
|
84
|
+
module PaymentMethodsConfirmationType = Yoomoney::Models::PaymentMethodsConfirmationType
|
|
85
|
+
|
|
86
|
+
module PaymentMethodStatus = Yoomoney::Models::PaymentMethodStatus
|
|
87
|
+
|
|
88
|
+
module PaymentMethodType = Yoomoney::Models::PaymentMethodType
|
|
89
|
+
|
|
90
|
+
class PaymentRetrieveParams = Yoomoney::Models::PaymentRetrieveParams
|
|
91
|
+
|
|
92
|
+
module PaymentStatus = Yoomoney::Models::PaymentStatus
|
|
93
|
+
|
|
94
|
+
class Payout = Yoomoney::Models::Payout
|
|
95
|
+
|
|
96
|
+
class PayoutCreateParams = Yoomoney::Models::PayoutCreateParams
|
|
97
|
+
|
|
98
|
+
class PayoutDealInfo = Yoomoney::Models::PayoutDealInfo
|
|
99
|
+
|
|
100
|
+
class PayoutDestination = Yoomoney::Models::PayoutDestination
|
|
101
|
+
|
|
102
|
+
class PayoutDestinationData = Yoomoney::Models::PayoutDestinationData
|
|
103
|
+
|
|
104
|
+
module PayoutDestinationDataType = Yoomoney::Models::PayoutDestinationDataType
|
|
105
|
+
|
|
106
|
+
class PayoutListParams = Yoomoney::Models::PayoutListParams
|
|
107
|
+
|
|
108
|
+
class PayoutRetrieveParams = Yoomoney::Models::PayoutRetrieveParams
|
|
109
|
+
|
|
110
|
+
class PayoutSearchParams = Yoomoney::Models::PayoutSearchParams
|
|
111
|
+
|
|
112
|
+
class PayoutsList = Yoomoney::Models::PayoutsList
|
|
113
|
+
|
|
114
|
+
module PayoutStatus = Yoomoney::Models::PayoutStatus
|
|
115
|
+
|
|
116
|
+
class PersonalDataAPI = Yoomoney::Models::PersonalDataAPI
|
|
117
|
+
|
|
118
|
+
class PersonalDataCreateParams = Yoomoney::Models::PersonalDataCreateParams
|
|
119
|
+
|
|
120
|
+
class PersonalDataRequest = Yoomoney::Models::PersonalDataRequest
|
|
121
|
+
|
|
122
|
+
class PersonalDataRetrieveParams = Yoomoney::Models::PersonalDataRetrieveParams
|
|
123
|
+
|
|
124
|
+
module PersonalDataType = Yoomoney::Models::PersonalDataType
|
|
125
|
+
|
|
126
|
+
class Receipt = Yoomoney::Models::Receipt
|
|
127
|
+
|
|
128
|
+
class ReceiptCreateParams = Yoomoney::Models::ReceiptCreateParams
|
|
129
|
+
|
|
130
|
+
class ReceiptData = Yoomoney::Models::ReceiptData
|
|
131
|
+
|
|
132
|
+
class ReceiptDataCustomer = Yoomoney::Models::ReceiptDataCustomer
|
|
133
|
+
|
|
134
|
+
module ReceiptItemAgentType = Yoomoney::Models::ReceiptItemAgentType
|
|
135
|
+
|
|
136
|
+
module ReceiptItemMeasure = Yoomoney::Models::ReceiptItemMeasure
|
|
137
|
+
|
|
138
|
+
module ReceiptItemPaymentMode = Yoomoney::Models::ReceiptItemPaymentMode
|
|
139
|
+
|
|
140
|
+
module ReceiptItemPaymentSubject = Yoomoney::Models::ReceiptItemPaymentSubject
|
|
141
|
+
|
|
142
|
+
class ReceiptItemSupplier = Yoomoney::Models::ReceiptItemSupplier
|
|
143
|
+
|
|
144
|
+
class ReceiptListParams = Yoomoney::Models::ReceiptListParams
|
|
145
|
+
|
|
146
|
+
module ReceiptRegistrationStatus = Yoomoney::Models::ReceiptRegistrationStatus
|
|
147
|
+
|
|
148
|
+
class ReceiptRetrieveParams = Yoomoney::Models::ReceiptRetrieveParams
|
|
149
|
+
|
|
150
|
+
module ReceiptType = Yoomoney::Models::ReceiptType
|
|
151
|
+
|
|
152
|
+
class Receiver = Yoomoney::Models::Receiver
|
|
153
|
+
|
|
154
|
+
class Recipient = Yoomoney::Models::Recipient
|
|
155
|
+
|
|
156
|
+
class Refund = Yoomoney::Models::Refund
|
|
157
|
+
|
|
158
|
+
class RefundCreateParams = Yoomoney::Models::RefundCreateParams
|
|
159
|
+
|
|
160
|
+
class RefundListParams = Yoomoney::Models::RefundListParams
|
|
161
|
+
|
|
162
|
+
class RefundMethod = Yoomoney::Models::RefundMethod
|
|
163
|
+
|
|
164
|
+
module RefundMethodType = Yoomoney::Models::RefundMethodType
|
|
165
|
+
|
|
166
|
+
class RefundRetrieveParams = Yoomoney::Models::RefundRetrieveParams
|
|
167
|
+
|
|
168
|
+
class RefundSourcesData = Yoomoney::Models::RefundSourcesData
|
|
169
|
+
|
|
170
|
+
module RefundStatus = Yoomoney::Models::RefundStatus
|
|
171
|
+
|
|
172
|
+
class SafeDeal = Yoomoney::Models::SafeDeal
|
|
173
|
+
|
|
174
|
+
class SavePaymentMethodBankCard = Yoomoney::Models::SavePaymentMethodBankCard
|
|
175
|
+
|
|
176
|
+
class SbpBankListParams = Yoomoney::Models::SbpBankListParams
|
|
177
|
+
|
|
178
|
+
class Settlement = Yoomoney::Models::Settlement
|
|
179
|
+
|
|
180
|
+
module SettlementItemType = Yoomoney::Models::SettlementItemType
|
|
181
|
+
|
|
182
|
+
class TransferData = Yoomoney::Models::TransferData
|
|
183
|
+
|
|
184
|
+
class Webhook = Yoomoney::Models::Webhook
|
|
185
|
+
|
|
186
|
+
class WebhookCreateParams = Yoomoney::Models::WebhookCreateParams
|
|
187
|
+
|
|
188
|
+
class WebhookDeleteParams = Yoomoney::Models::WebhookDeleteParams
|
|
189
|
+
|
|
190
|
+
class WebhookListParams = Yoomoney::Models::WebhookListParams
|
|
191
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
type request_opts =
|
|
3
|
+
Yoomoney::RequestOptions | Yoomoney::request_options | ::Hash[Symbol, top]
|
|
4
|
+
|
|
5
|
+
type request_options =
|
|
6
|
+
{
|
|
7
|
+
idempotency_key: String?,
|
|
8
|
+
extra_query: ::Hash[String, (::Array[String] | String)?]?,
|
|
9
|
+
extra_headers: ::Hash[String, String?]?,
|
|
10
|
+
extra_body: top?,
|
|
11
|
+
max_retries: Integer?,
|
|
12
|
+
timeout: Float?
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
class RequestOptions < Yoomoney::Internal::Type::BaseModel
|
|
16
|
+
def self.validate!: (Yoomoney::request_opts opts) -> void
|
|
17
|
+
|
|
18
|
+
attr_accessor idempotency_key: String?
|
|
19
|
+
|
|
20
|
+
attr_accessor extra_query: ::Hash[String, (::Array[String] | String)?]?
|
|
21
|
+
|
|
22
|
+
attr_accessor extra_headers: ::Hash[String, String?]?
|
|
23
|
+
|
|
24
|
+
attr_accessor extra_body: top?
|
|
25
|
+
|
|
26
|
+
attr_accessor max_retries: Integer?
|
|
27
|
+
|
|
28
|
+
attr_accessor timeout: Float?
|
|
29
|
+
|
|
30
|
+
def initialize: (
|
|
31
|
+
?Yoomoney::request_options | ::Hash[Symbol, top] values
|
|
32
|
+
) -> void
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Resources
|
|
3
|
+
class Deals
|
|
4
|
+
def create: (
|
|
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
|
+
?request_options: Yoomoney::request_opts
|
|
11
|
+
) -> Yoomoney::SafeDeal
|
|
12
|
+
|
|
13
|
+
def retrieve: (
|
|
14
|
+
String deal_id,
|
|
15
|
+
?request_options: Yoomoney::request_opts
|
|
16
|
+
) -> Yoomoney::SafeDeal
|
|
17
|
+
|
|
18
|
+
def list: (
|
|
19
|
+
?created_at: Yoomoney::DealListParams::CreatedAt,
|
|
20
|
+
?cursor: String,
|
|
21
|
+
?expires_at: Yoomoney::DealListParams::ExpiresAt,
|
|
22
|
+
?full_text_search: String,
|
|
23
|
+
?limit: Integer,
|
|
24
|
+
?status: Yoomoney::Models::DealListParams::status,
|
|
25
|
+
?request_options: Yoomoney::request_opts
|
|
26
|
+
) -> Yoomoney::Models::DealListResponse
|
|
27
|
+
|
|
28
|
+
def initialize: (client: Yoomoney::Client) -> void
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Resources
|
|
3
|
+
class Invoices
|
|
4
|
+
def create: (
|
|
5
|
+
cart: ::Array[Yoomoney::LineItem],
|
|
6
|
+
delivery_method: Yoomoney::Models::InvoiceCreateParams::delivery_method,
|
|
7
|
+
idempotence_key: String,
|
|
8
|
+
?description: String,
|
|
9
|
+
?expires_at: Time,
|
|
10
|
+
?metadata: ::Hash[Symbol, String],
|
|
11
|
+
?payment_data: Yoomoney::InvoiceCreateParams::PaymentData,
|
|
12
|
+
?request_options: Yoomoney::request_opts
|
|
13
|
+
) -> Yoomoney::Invoice
|
|
14
|
+
|
|
15
|
+
def retrieve: (
|
|
16
|
+
String invoice_id,
|
|
17
|
+
?request_options: Yoomoney::request_opts
|
|
18
|
+
) -> Yoomoney::Invoice
|
|
19
|
+
|
|
20
|
+
def initialize: (client: Yoomoney::Client) -> void
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Resources
|
|
3
|
+
class PaymentMethods
|
|
4
|
+
def create: (
|
|
5
|
+
payment_method_data: Yoomoney::PaymentMethodCreateParams::PaymentMethodData,
|
|
6
|
+
type: Yoomoney::Models::PaymentMethodCreateParams::type_,
|
|
7
|
+
idempotence_key: String,
|
|
8
|
+
?payment_data: Yoomoney::PaymentMethodCreateParams::PaymentData,
|
|
9
|
+
?receipt: Yoomoney::ReceiptData,
|
|
10
|
+
?request_options: Yoomoney::request_opts
|
|
11
|
+
) -> Yoomoney::SavePaymentMethodBankCard
|
|
12
|
+
|
|
13
|
+
def retrieve: (
|
|
14
|
+
String payment_method_id,
|
|
15
|
+
?request_options: Yoomoney::request_opts
|
|
16
|
+
) -> Yoomoney::SavePaymentMethodBankCard
|
|
17
|
+
|
|
18
|
+
def initialize: (client: Yoomoney::Client) -> void
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Resources
|
|
3
|
+
class Payments
|
|
4
|
+
def create: (
|
|
5
|
+
amount: Yoomoney::MonetaryAmount,
|
|
6
|
+
idempotence_key: String,
|
|
7
|
+
?airline: Yoomoney::Airline,
|
|
8
|
+
?capture: bool,
|
|
9
|
+
?client_ip: String,
|
|
10
|
+
?confirmation: Yoomoney::Models::PaymentCreateParams::confirmation,
|
|
11
|
+
?deal: Yoomoney::PaymentDealInfo,
|
|
12
|
+
?description: String,
|
|
13
|
+
?merchant_customer_id: String,
|
|
14
|
+
?metadata: ::Hash[Symbol, String],
|
|
15
|
+
?payment_method_data: Yoomoney::Models::PaymentCreateParams::payment_method_data,
|
|
16
|
+
?payment_method_id: String,
|
|
17
|
+
?payment_order: Yoomoney::PaymentCreateParams::PaymentOrder,
|
|
18
|
+
?payment_token: String,
|
|
19
|
+
?receipt: Yoomoney::ReceiptData,
|
|
20
|
+
?receiver: Yoomoney::Models::PaymentCreateParams::receiver,
|
|
21
|
+
?recipient: Yoomoney::Recipient,
|
|
22
|
+
?save_payment_method: bool,
|
|
23
|
+
?statements: ::Array[Yoomoney::PaymentCreateParams::Statement],
|
|
24
|
+
?transfers: ::Array[Yoomoney::PaymentCreateParams::Transfer],
|
|
25
|
+
?request_options: Yoomoney::request_opts
|
|
26
|
+
) -> Yoomoney::Payment
|
|
27
|
+
|
|
28
|
+
def retrieve: (
|
|
29
|
+
String payment_id,
|
|
30
|
+
?request_options: Yoomoney::request_opts
|
|
31
|
+
) -> Yoomoney::Payment
|
|
32
|
+
|
|
33
|
+
def list: (
|
|
34
|
+
?captured_at: Yoomoney::PaymentListParams::CapturedAt,
|
|
35
|
+
?created_at: Yoomoney::PaymentListParams::CreatedAt,
|
|
36
|
+
?cursor: String,
|
|
37
|
+
?limit: Integer,
|
|
38
|
+
?payment_method: Yoomoney::Models::payment_method_type,
|
|
39
|
+
?status: Yoomoney::Models::payment_status,
|
|
40
|
+
?request_options: Yoomoney::request_opts
|
|
41
|
+
) -> Yoomoney::Models::PaymentListResponse
|
|
42
|
+
|
|
43
|
+
def cancel: (
|
|
44
|
+
String payment_id,
|
|
45
|
+
idempotence_key: String,
|
|
46
|
+
?request_options: Yoomoney::request_opts
|
|
47
|
+
) -> Yoomoney::Payment
|
|
48
|
+
|
|
49
|
+
def capture: (
|
|
50
|
+
String payment_id,
|
|
51
|
+
idempotence_key: String,
|
|
52
|
+
?airline: Yoomoney::Airline,
|
|
53
|
+
?amount: Yoomoney::MonetaryAmount,
|
|
54
|
+
?deal: Yoomoney::PaymentDealInfo,
|
|
55
|
+
?receipt: Yoomoney::ReceiptData,
|
|
56
|
+
?transfers: ::Array[Yoomoney::TransferData],
|
|
57
|
+
?request_options: Yoomoney::request_opts
|
|
58
|
+
) -> Yoomoney::Payment
|
|
59
|
+
|
|
60
|
+
def initialize: (client: Yoomoney::Client) -> void
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Resources
|
|
3
|
+
class Payouts
|
|
4
|
+
def create: (
|
|
5
|
+
amount: Yoomoney::MonetaryAmount,
|
|
6
|
+
idempotence_key: String,
|
|
7
|
+
?deal: Yoomoney::PayoutDealInfo,
|
|
8
|
+
?description: String,
|
|
9
|
+
?metadata: ::Hash[Symbol, String],
|
|
10
|
+
?payment_method_id: String,
|
|
11
|
+
?payout_destination_data: Yoomoney::Models::PayoutCreateParams::payout_destination_data,
|
|
12
|
+
?payout_token: String,
|
|
13
|
+
?personal_data: ::Array[Yoomoney::PayoutCreateParams::PersonalData],
|
|
14
|
+
?request_options: Yoomoney::request_opts
|
|
15
|
+
) -> Yoomoney::Payout
|
|
16
|
+
|
|
17
|
+
def retrieve: (
|
|
18
|
+
String payout_id,
|
|
19
|
+
?request_options: Yoomoney::request_opts
|
|
20
|
+
) -> Yoomoney::Payout
|
|
21
|
+
|
|
22
|
+
def list: (
|
|
23
|
+
?created_at: Yoomoney::PayoutListParams::CreatedAt,
|
|
24
|
+
?cursor: String,
|
|
25
|
+
?limit: Integer,
|
|
26
|
+
?payout_destination: Yoomoney::PayoutListParams::PayoutDestination,
|
|
27
|
+
?status: Yoomoney::Models::payout_status,
|
|
28
|
+
?request_options: Yoomoney::request_opts
|
|
29
|
+
) -> Yoomoney::PayoutsList
|
|
30
|
+
|
|
31
|
+
def search: (
|
|
32
|
+
?created_at: Yoomoney::PayoutSearchParams::CreatedAt,
|
|
33
|
+
?cursor: String,
|
|
34
|
+
?limit: Integer,
|
|
35
|
+
?request_options: Yoomoney::request_opts
|
|
36
|
+
) -> Yoomoney::PayoutsList
|
|
37
|
+
|
|
38
|
+
def initialize: (client: Yoomoney::Client) -> void
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Resources
|
|
3
|
+
class PersonalData
|
|
4
|
+
def create: (
|
|
5
|
+
first_name: String,
|
|
6
|
+
last_name: String,
|
|
7
|
+
type: Yoomoney::Models::personal_data_type,
|
|
8
|
+
idempotence_key: String,
|
|
9
|
+
?metadata: ::Hash[Symbol, String],
|
|
10
|
+
?middle_name: String,
|
|
11
|
+
?request_options: Yoomoney::request_opts
|
|
12
|
+
) -> Yoomoney::PersonalDataAPI
|
|
13
|
+
|
|
14
|
+
def retrieve: (
|
|
15
|
+
String personal_data_id,
|
|
16
|
+
?request_options: Yoomoney::request_opts
|
|
17
|
+
) -> Yoomoney::PersonalDataAPI
|
|
18
|
+
|
|
19
|
+
def initialize: (client: Yoomoney::Client) -> void
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Resources
|
|
3
|
+
class Receipts
|
|
4
|
+
def create: (
|
|
5
|
+
customer: Yoomoney::ReceiptDataCustomer,
|
|
6
|
+
items: ::Array[Yoomoney::ReceiptCreateParams::Item],
|
|
7
|
+
send_: bool,
|
|
8
|
+
settlements: ::Array[Yoomoney::Settlement],
|
|
9
|
+
type: Yoomoney::Models::receipt_type,
|
|
10
|
+
idempotence_key: String,
|
|
11
|
+
?additional_user_props: Yoomoney::ReceiptCreateParams::AdditionalUserProps,
|
|
12
|
+
?internet: bool,
|
|
13
|
+
?on_behalf_of: String,
|
|
14
|
+
?payment_id: String,
|
|
15
|
+
?receipt_industry_details: ::Array[Yoomoney::IndustryDetails],
|
|
16
|
+
?receipt_operational_details: Yoomoney::OperationalDetails,
|
|
17
|
+
?refund_id: String,
|
|
18
|
+
?tax_system_code: Integer,
|
|
19
|
+
?timezone: String,
|
|
20
|
+
?request_options: Yoomoney::request_opts
|
|
21
|
+
) -> Yoomoney::Receipt
|
|
22
|
+
|
|
23
|
+
def retrieve: (
|
|
24
|
+
String receipt_id,
|
|
25
|
+
?request_options: Yoomoney::request_opts
|
|
26
|
+
) -> Yoomoney::Receipt
|
|
27
|
+
|
|
28
|
+
def list: (
|
|
29
|
+
?created_at: Yoomoney::ReceiptListParams::CreatedAt,
|
|
30
|
+
?cursor: String,
|
|
31
|
+
?limit: Integer,
|
|
32
|
+
?payment_id: String,
|
|
33
|
+
?refund_id: String,
|
|
34
|
+
?status: Yoomoney::Models::receipt_registration_status,
|
|
35
|
+
?request_options: Yoomoney::request_opts
|
|
36
|
+
) -> Yoomoney::Models::ReceiptListResponse
|
|
37
|
+
|
|
38
|
+
def initialize: (client: Yoomoney::Client) -> void
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Resources
|
|
3
|
+
class Refunds
|
|
4
|
+
def create: (
|
|
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
|
+
?request_options: Yoomoney::request_opts
|
|
15
|
+
) -> Yoomoney::Refund
|
|
16
|
+
|
|
17
|
+
def retrieve: (
|
|
18
|
+
String refund_id,
|
|
19
|
+
?request_options: Yoomoney::request_opts
|
|
20
|
+
) -> Yoomoney::Refund
|
|
21
|
+
|
|
22
|
+
def list: (
|
|
23
|
+
?created_at: Yoomoney::RefundListParams::CreatedAt,
|
|
24
|
+
?cursor: String,
|
|
25
|
+
?limit: Integer,
|
|
26
|
+
?payment_id: String,
|
|
27
|
+
?status: Yoomoney::Models::refund_status,
|
|
28
|
+
?request_options: Yoomoney::request_opts
|
|
29
|
+
) -> Yoomoney::Models::RefundListResponse
|
|
30
|
+
|
|
31
|
+
def initialize: (client: Yoomoney::Client) -> void
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Resources
|
|
3
|
+
class Webhooks
|
|
4
|
+
def create: (
|
|
5
|
+
event: Yoomoney::Models::notification_event_type,
|
|
6
|
+
url: String,
|
|
7
|
+
idempotence_key: String,
|
|
8
|
+
?request_options: Yoomoney::request_opts
|
|
9
|
+
) -> Yoomoney::Webhook
|
|
10
|
+
|
|
11
|
+
def list: (
|
|
12
|
+
?request_options: Yoomoney::request_opts
|
|
13
|
+
) -> Yoomoney::Models::WebhookListResponse
|
|
14
|
+
|
|
15
|
+
def delete: (
|
|
16
|
+
String webhook_id,
|
|
17
|
+
?request_options: Yoomoney::request_opts
|
|
18
|
+
) -> top
|
|
19
|
+
|
|
20
|
+
def initialize: (client: Yoomoney::Client) -> void
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|