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,259 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type payout =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
amount: Yoomoney::MonetaryAmount,
|
|
7
|
+
created_at: Time,
|
|
8
|
+
payout_destination: Yoomoney::Models::Payout::payout_destination,
|
|
9
|
+
status: Yoomoney::Models::payout_status,
|
|
10
|
+
test_: bool,
|
|
11
|
+
cancellation_details: Yoomoney::Payout::CancellationDetails,
|
|
12
|
+
deal: Yoomoney::PayoutDealInfo,
|
|
13
|
+
description: String,
|
|
14
|
+
metadata: ::Hash[Symbol, String],
|
|
15
|
+
receipt: Yoomoney::Payout::Receipt,
|
|
16
|
+
self_employed: Yoomoney::Payout::SelfEmployed,
|
|
17
|
+
succeeded_at: Time
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
class Payout < 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 payout_destination: Yoomoney::Models::Payout::payout_destination
|
|
28
|
+
|
|
29
|
+
attr_accessor status: Yoomoney::Models::payout_status
|
|
30
|
+
|
|
31
|
+
attr_accessor test_: bool
|
|
32
|
+
|
|
33
|
+
attr_reader cancellation_details: Yoomoney::Payout::CancellationDetails?
|
|
34
|
+
|
|
35
|
+
def cancellation_details=: (
|
|
36
|
+
Yoomoney::Payout::CancellationDetails
|
|
37
|
+
) -> Yoomoney::Payout::CancellationDetails
|
|
38
|
+
|
|
39
|
+
attr_reader deal: Yoomoney::PayoutDealInfo?
|
|
40
|
+
|
|
41
|
+
def deal=: (Yoomoney::PayoutDealInfo) -> Yoomoney::PayoutDealInfo
|
|
42
|
+
|
|
43
|
+
attr_reader description: String?
|
|
44
|
+
|
|
45
|
+
def description=: (String) -> String
|
|
46
|
+
|
|
47
|
+
attr_reader metadata: ::Hash[Symbol, String]?
|
|
48
|
+
|
|
49
|
+
def metadata=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
|
|
50
|
+
|
|
51
|
+
attr_reader receipt: Yoomoney::Payout::Receipt?
|
|
52
|
+
|
|
53
|
+
def receipt=: (Yoomoney::Payout::Receipt) -> Yoomoney::Payout::Receipt
|
|
54
|
+
|
|
55
|
+
attr_reader self_employed: Yoomoney::Payout::SelfEmployed?
|
|
56
|
+
|
|
57
|
+
def self_employed=: (
|
|
58
|
+
Yoomoney::Payout::SelfEmployed
|
|
59
|
+
) -> Yoomoney::Payout::SelfEmployed
|
|
60
|
+
|
|
61
|
+
attr_reader succeeded_at: Time?
|
|
62
|
+
|
|
63
|
+
def succeeded_at=: (Time) -> Time
|
|
64
|
+
|
|
65
|
+
def initialize: (
|
|
66
|
+
id: String,
|
|
67
|
+
amount: Yoomoney::MonetaryAmount,
|
|
68
|
+
created_at: Time,
|
|
69
|
+
payout_destination: Yoomoney::Models::Payout::payout_destination,
|
|
70
|
+
status: Yoomoney::Models::payout_status,
|
|
71
|
+
test_: bool,
|
|
72
|
+
?cancellation_details: Yoomoney::Payout::CancellationDetails,
|
|
73
|
+
?deal: Yoomoney::PayoutDealInfo,
|
|
74
|
+
?description: String,
|
|
75
|
+
?metadata: ::Hash[Symbol, String],
|
|
76
|
+
?receipt: Yoomoney::Payout::Receipt,
|
|
77
|
+
?self_employed: Yoomoney::Payout::SelfEmployed,
|
|
78
|
+
?succeeded_at: Time
|
|
79
|
+
) -> void
|
|
80
|
+
|
|
81
|
+
def to_hash: -> {
|
|
82
|
+
id: String,
|
|
83
|
+
amount: Yoomoney::MonetaryAmount,
|
|
84
|
+
created_at: Time,
|
|
85
|
+
payout_destination: Yoomoney::Models::Payout::payout_destination,
|
|
86
|
+
status: Yoomoney::Models::payout_status,
|
|
87
|
+
test_: bool,
|
|
88
|
+
cancellation_details: Yoomoney::Payout::CancellationDetails,
|
|
89
|
+
deal: Yoomoney::PayoutDealInfo,
|
|
90
|
+
description: String,
|
|
91
|
+
metadata: ::Hash[Symbol, String],
|
|
92
|
+
receipt: Yoomoney::Payout::Receipt,
|
|
93
|
+
self_employed: Yoomoney::Payout::SelfEmployed,
|
|
94
|
+
succeeded_at: Time
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
type payout_destination =
|
|
98
|
+
Yoomoney::Payout::PayoutDestination::PayoutToCardDestination
|
|
99
|
+
| Yoomoney::Payout::PayoutDestination::PayoutToYooMoneyDestination
|
|
100
|
+
| Yoomoney::Payout::PayoutDestination::PayoutToSbpDestination
|
|
101
|
+
|
|
102
|
+
module PayoutDestination
|
|
103
|
+
extend Yoomoney::Internal::Type::Union
|
|
104
|
+
|
|
105
|
+
type payout_to_card_destination =
|
|
106
|
+
{
|
|
107
|
+
card: Yoomoney::Payout::PayoutDestination::PayoutToCardDestination::Card
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
class PayoutToCardDestination < Yoomoney::Models::PayoutDestination
|
|
111
|
+
def card: -> Yoomoney::Payout::PayoutDestination::PayoutToCardDestination::Card?
|
|
112
|
+
|
|
113
|
+
def card=: (
|
|
114
|
+
Yoomoney::Payout::PayoutDestination::PayoutToCardDestination::Card _
|
|
115
|
+
) -> Yoomoney::Payout::PayoutDestination::PayoutToCardDestination::Card
|
|
116
|
+
|
|
117
|
+
def initialize: (
|
|
118
|
+
?card: Yoomoney::Payout::PayoutDestination::PayoutToCardDestination::Card
|
|
119
|
+
) -> void
|
|
120
|
+
|
|
121
|
+
def to_hash: -> {
|
|
122
|
+
card: Yoomoney::Payout::PayoutDestination::PayoutToCardDestination::Card
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
type card =
|
|
126
|
+
{
|
|
127
|
+
card_type: Yoomoney::Models::bank_card_type,
|
|
128
|
+
:first6 => String,
|
|
129
|
+
:last4 => String,
|
|
130
|
+
issuer_country: String,
|
|
131
|
+
issuer_name: String
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
class Card < Yoomoney::Internal::Type::BaseModel
|
|
135
|
+
attr_accessor card_type: Yoomoney::Models::bank_card_type
|
|
136
|
+
|
|
137
|
+
attr_accessor first6: String
|
|
138
|
+
|
|
139
|
+
attr_accessor last4: String
|
|
140
|
+
|
|
141
|
+
attr_reader issuer_country: String?
|
|
142
|
+
|
|
143
|
+
def issuer_country=: (String) -> String
|
|
144
|
+
|
|
145
|
+
attr_reader issuer_name: String?
|
|
146
|
+
|
|
147
|
+
def issuer_name=: (String) -> String
|
|
148
|
+
|
|
149
|
+
def initialize: (
|
|
150
|
+
card_type: Yoomoney::Models::bank_card_type,
|
|
151
|
+
first6: String,
|
|
152
|
+
last4: String,
|
|
153
|
+
?issuer_country: String,
|
|
154
|
+
?issuer_name: String
|
|
155
|
+
) -> void
|
|
156
|
+
|
|
157
|
+
def to_hash: -> {
|
|
158
|
+
card_type: Yoomoney::Models::bank_card_type,
|
|
159
|
+
:first6 => String,
|
|
160
|
+
:last4 => String,
|
|
161
|
+
issuer_country: String,
|
|
162
|
+
issuer_name: String
|
|
163
|
+
}
|
|
164
|
+
end
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
type payout_to_yoo_money_destination = { account_number: String }
|
|
168
|
+
|
|
169
|
+
class PayoutToYooMoneyDestination < Yoomoney::Models::PayoutDestination
|
|
170
|
+
def account_number: -> String
|
|
171
|
+
|
|
172
|
+
def account_number=: (String _) -> String
|
|
173
|
+
|
|
174
|
+
def initialize: (account_number: String) -> void
|
|
175
|
+
|
|
176
|
+
def to_hash: -> { account_number: String }
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
type payout_to_sbp_destination = { bank_id: String, phone: String }
|
|
180
|
+
|
|
181
|
+
class PayoutToSbpDestination < Yoomoney::Models::PayoutDestination
|
|
182
|
+
def bank_id: -> String?
|
|
183
|
+
|
|
184
|
+
def bank_id=: (String _) -> String
|
|
185
|
+
|
|
186
|
+
def phone: -> String?
|
|
187
|
+
|
|
188
|
+
def phone=: (String _) -> String
|
|
189
|
+
|
|
190
|
+
def initialize: (?bank_id: String, ?phone: String) -> void
|
|
191
|
+
|
|
192
|
+
def to_hash: -> { bank_id: String, phone: String }
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
def self?.variants: -> ::Array[Yoomoney::Models::Payout::payout_destination]
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
type cancellation_details = { party: String, reason: String }
|
|
199
|
+
|
|
200
|
+
class CancellationDetails < Yoomoney::Internal::Type::BaseModel
|
|
201
|
+
attr_accessor party: String
|
|
202
|
+
|
|
203
|
+
attr_accessor reason: String
|
|
204
|
+
|
|
205
|
+
def initialize: (party: String, reason: String) -> void
|
|
206
|
+
|
|
207
|
+
def to_hash: -> { party: String, reason: String }
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
type receipt =
|
|
211
|
+
{
|
|
212
|
+
service_name: String,
|
|
213
|
+
amount: Yoomoney::MonetaryAmount,
|
|
214
|
+
npd_receipt_id: String,
|
|
215
|
+
url: String
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
class Receipt < Yoomoney::Internal::Type::BaseModel
|
|
219
|
+
attr_accessor service_name: String
|
|
220
|
+
|
|
221
|
+
attr_reader amount: Yoomoney::MonetaryAmount?
|
|
222
|
+
|
|
223
|
+
def amount=: (Yoomoney::MonetaryAmount) -> Yoomoney::MonetaryAmount
|
|
224
|
+
|
|
225
|
+
attr_reader npd_receipt_id: String?
|
|
226
|
+
|
|
227
|
+
def npd_receipt_id=: (String) -> String
|
|
228
|
+
|
|
229
|
+
attr_reader url: String?
|
|
230
|
+
|
|
231
|
+
def url=: (String) -> String
|
|
232
|
+
|
|
233
|
+
def initialize: (
|
|
234
|
+
service_name: String,
|
|
235
|
+
?amount: Yoomoney::MonetaryAmount,
|
|
236
|
+
?npd_receipt_id: String,
|
|
237
|
+
?url: String
|
|
238
|
+
) -> void
|
|
239
|
+
|
|
240
|
+
def to_hash: -> {
|
|
241
|
+
service_name: String,
|
|
242
|
+
amount: Yoomoney::MonetaryAmount,
|
|
243
|
+
npd_receipt_id: String,
|
|
244
|
+
url: String
|
|
245
|
+
}
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
type self_employed = { id: String }
|
|
249
|
+
|
|
250
|
+
class SelfEmployed < Yoomoney::Internal::Type::BaseModel
|
|
251
|
+
attr_accessor id: String
|
|
252
|
+
|
|
253
|
+
def initialize: (id: String) -> void
|
|
254
|
+
|
|
255
|
+
def to_hash: -> { id: String }
|
|
256
|
+
end
|
|
257
|
+
end
|
|
258
|
+
end
|
|
259
|
+
end
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type payout_create_params =
|
|
4
|
+
{
|
|
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
|
+
}
|
|
15
|
+
& Yoomoney::Internal::Type::request_parameters
|
|
16
|
+
|
|
17
|
+
class PayoutCreateParams < 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 idempotence_key: String
|
|
24
|
+
|
|
25
|
+
attr_reader deal: Yoomoney::PayoutDealInfo?
|
|
26
|
+
|
|
27
|
+
def deal=: (Yoomoney::PayoutDealInfo) -> Yoomoney::PayoutDealInfo
|
|
28
|
+
|
|
29
|
+
attr_reader description: String?
|
|
30
|
+
|
|
31
|
+
def description=: (String) -> String
|
|
32
|
+
|
|
33
|
+
attr_reader metadata: ::Hash[Symbol, String]?
|
|
34
|
+
|
|
35
|
+
def metadata=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
|
|
36
|
+
|
|
37
|
+
attr_reader payment_method_id: String?
|
|
38
|
+
|
|
39
|
+
def payment_method_id=: (String) -> String
|
|
40
|
+
|
|
41
|
+
attr_reader payout_destination_data: Yoomoney::Models::PayoutCreateParams::payout_destination_data?
|
|
42
|
+
|
|
43
|
+
def payout_destination_data=: (
|
|
44
|
+
Yoomoney::Models::PayoutCreateParams::payout_destination_data
|
|
45
|
+
) -> Yoomoney::Models::PayoutCreateParams::payout_destination_data
|
|
46
|
+
|
|
47
|
+
attr_reader payout_token: String?
|
|
48
|
+
|
|
49
|
+
def payout_token=: (String) -> String
|
|
50
|
+
|
|
51
|
+
attr_reader personal_data: ::Array[Yoomoney::PayoutCreateParams::PersonalData]?
|
|
52
|
+
|
|
53
|
+
def personal_data=: (
|
|
54
|
+
::Array[Yoomoney::PayoutCreateParams::PersonalData]
|
|
55
|
+
) -> ::Array[Yoomoney::PayoutCreateParams::PersonalData]
|
|
56
|
+
|
|
57
|
+
def initialize: (
|
|
58
|
+
amount: Yoomoney::MonetaryAmount,
|
|
59
|
+
idempotence_key: String,
|
|
60
|
+
?deal: Yoomoney::PayoutDealInfo,
|
|
61
|
+
?description: String,
|
|
62
|
+
?metadata: ::Hash[Symbol, String],
|
|
63
|
+
?payment_method_id: String,
|
|
64
|
+
?payout_destination_data: Yoomoney::Models::PayoutCreateParams::payout_destination_data,
|
|
65
|
+
?payout_token: String,
|
|
66
|
+
?personal_data: ::Array[Yoomoney::PayoutCreateParams::PersonalData],
|
|
67
|
+
?request_options: Yoomoney::request_opts
|
|
68
|
+
) -> void
|
|
69
|
+
|
|
70
|
+
def to_hash: -> {
|
|
71
|
+
amount: Yoomoney::MonetaryAmount,
|
|
72
|
+
idempotence_key: String,
|
|
73
|
+
deal: Yoomoney::PayoutDealInfo,
|
|
74
|
+
description: String,
|
|
75
|
+
metadata: ::Hash[Symbol, String],
|
|
76
|
+
payment_method_id: String,
|
|
77
|
+
payout_destination_data: Yoomoney::Models::PayoutCreateParams::payout_destination_data,
|
|
78
|
+
payout_token: String,
|
|
79
|
+
personal_data: ::Array[Yoomoney::PayoutCreateParams::PersonalData],
|
|
80
|
+
request_options: Yoomoney::RequestOptions
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
type payout_destination_data =
|
|
84
|
+
Yoomoney::PayoutCreateParams::PayoutDestinationData::PayoutToYooMoneyDestinationData
|
|
85
|
+
| Yoomoney::PayoutCreateParams::PayoutDestinationData::PayoutToBankCardDestinationData
|
|
86
|
+
| Yoomoney::PayoutCreateParams::PayoutDestinationData::PayoutToSbpDestinationData
|
|
87
|
+
|
|
88
|
+
module PayoutDestinationData
|
|
89
|
+
extend Yoomoney::Internal::Type::Union
|
|
90
|
+
|
|
91
|
+
type payout_to_yoo_money_destination_data = { account_number: String }
|
|
92
|
+
|
|
93
|
+
class PayoutToYooMoneyDestinationData < Yoomoney::Models::PayoutDestinationData
|
|
94
|
+
def account_number: -> String
|
|
95
|
+
|
|
96
|
+
def account_number=: (String _) -> String
|
|
97
|
+
|
|
98
|
+
def initialize: (account_number: String) -> void
|
|
99
|
+
|
|
100
|
+
def to_hash: -> { account_number: String }
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
type payout_to_bank_card_destination_data =
|
|
104
|
+
{
|
|
105
|
+
card: Yoomoney::PayoutCreateParams::PayoutDestinationData::PayoutToBankCardDestinationData::Card
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
class PayoutToBankCardDestinationData < Yoomoney::Models::PayoutDestinationData
|
|
109
|
+
def card: -> Yoomoney::PayoutCreateParams::PayoutDestinationData::PayoutToBankCardDestinationData::Card
|
|
110
|
+
|
|
111
|
+
def card=: (
|
|
112
|
+
Yoomoney::PayoutCreateParams::PayoutDestinationData::PayoutToBankCardDestinationData::Card _
|
|
113
|
+
) -> Yoomoney::PayoutCreateParams::PayoutDestinationData::PayoutToBankCardDestinationData::Card
|
|
114
|
+
|
|
115
|
+
def initialize: (
|
|
116
|
+
card: Yoomoney::PayoutCreateParams::PayoutDestinationData::PayoutToBankCardDestinationData::Card
|
|
117
|
+
) -> void
|
|
118
|
+
|
|
119
|
+
def to_hash: -> {
|
|
120
|
+
card: Yoomoney::PayoutCreateParams::PayoutDestinationData::PayoutToBankCardDestinationData::Card
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
type card = { number: String }
|
|
124
|
+
|
|
125
|
+
class Card < Yoomoney::Internal::Type::BaseModel
|
|
126
|
+
attr_accessor number: String
|
|
127
|
+
|
|
128
|
+
def initialize: (number: String) -> void
|
|
129
|
+
|
|
130
|
+
def to_hash: -> { number: String }
|
|
131
|
+
end
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
type payout_to_sbp_destination_data = { bank_id: String, phone: String }
|
|
135
|
+
|
|
136
|
+
class PayoutToSbpDestinationData < Yoomoney::Models::PayoutDestinationData
|
|
137
|
+
def bank_id: -> String
|
|
138
|
+
|
|
139
|
+
def bank_id=: (String _) -> String
|
|
140
|
+
|
|
141
|
+
def phone: -> String
|
|
142
|
+
|
|
143
|
+
def phone=: (String _) -> String
|
|
144
|
+
|
|
145
|
+
def initialize: (bank_id: String, phone: String) -> void
|
|
146
|
+
|
|
147
|
+
def to_hash: -> { bank_id: String, phone: String }
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
def self?.variants: -> ::Array[Yoomoney::Models::PayoutCreateParams::payout_destination_data]
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
type personal_data = { id: String }
|
|
154
|
+
|
|
155
|
+
class PersonalData < Yoomoney::Internal::Type::BaseModel
|
|
156
|
+
attr_accessor id: String
|
|
157
|
+
|
|
158
|
+
def initialize: (id: String) -> void
|
|
159
|
+
|
|
160
|
+
def to_hash: -> { id: String }
|
|
161
|
+
end
|
|
162
|
+
end
|
|
163
|
+
end
|
|
164
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type payout_deal_info = { id: String }
|
|
4
|
+
|
|
5
|
+
class PayoutDealInfo < Yoomoney::Internal::Type::BaseModel
|
|
6
|
+
attr_accessor id: String
|
|
7
|
+
|
|
8
|
+
def initialize: (id: String) -> void
|
|
9
|
+
|
|
10
|
+
def to_hash: -> { id: String }
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type payout_destination =
|
|
4
|
+
{ type: Yoomoney::Models::PayoutDestination::type_ }
|
|
5
|
+
|
|
6
|
+
class PayoutDestination < Yoomoney::Internal::Type::BaseModel
|
|
7
|
+
attr_accessor type: Yoomoney::Models::PayoutDestination::type_
|
|
8
|
+
|
|
9
|
+
def initialize: (type: Yoomoney::Models::PayoutDestination::type_) -> void
|
|
10
|
+
|
|
11
|
+
def to_hash: -> { type: Yoomoney::Models::PayoutDestination::type_ }
|
|
12
|
+
|
|
13
|
+
type type_ = :bank_card | :yoo_money | :sbp
|
|
14
|
+
|
|
15
|
+
module Type
|
|
16
|
+
extend Yoomoney::Internal::Type::Enum
|
|
17
|
+
|
|
18
|
+
BANK_CARD: :bank_card
|
|
19
|
+
YOO_MONEY: :yoo_money
|
|
20
|
+
SBP: :sbp
|
|
21
|
+
|
|
22
|
+
def self?.values: -> ::Array[Yoomoney::Models::PayoutDestination::type_]
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type payout_destination_data =
|
|
4
|
+
{ type: Yoomoney::Models::payout_destination_data_type }
|
|
5
|
+
|
|
6
|
+
class PayoutDestinationData < Yoomoney::Internal::Type::BaseModel
|
|
7
|
+
attr_accessor type: Yoomoney::Models::payout_destination_data_type
|
|
8
|
+
|
|
9
|
+
def initialize: (
|
|
10
|
+
type: Yoomoney::Models::payout_destination_data_type
|
|
11
|
+
) -> void
|
|
12
|
+
|
|
13
|
+
def to_hash: -> { type: Yoomoney::Models::payout_destination_data_type }
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type payout_destination_data_type = :yoo_money | :bank_card | :sbp
|
|
4
|
+
|
|
5
|
+
module PayoutDestinationDataType
|
|
6
|
+
extend Yoomoney::Internal::Type::Enum
|
|
7
|
+
|
|
8
|
+
YOO_MONEY: :yoo_money
|
|
9
|
+
BANK_CARD: :bank_card
|
|
10
|
+
SBP: :sbp
|
|
11
|
+
|
|
12
|
+
def self?.values: -> ::Array[Yoomoney::Models::payout_destination_data_type]
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type payout_list_params =
|
|
4
|
+
{
|
|
5
|
+
created_at: Yoomoney::PayoutListParams::CreatedAt,
|
|
6
|
+
cursor: String,
|
|
7
|
+
limit: Integer,
|
|
8
|
+
payout_destination: Yoomoney::PayoutListParams::PayoutDestination,
|
|
9
|
+
status: Yoomoney::Models::payout_status
|
|
10
|
+
}
|
|
11
|
+
& Yoomoney::Internal::Type::request_parameters
|
|
12
|
+
|
|
13
|
+
class PayoutListParams < Yoomoney::Internal::Type::BaseModel
|
|
14
|
+
extend Yoomoney::Internal::Type::RequestParameters::Converter
|
|
15
|
+
include Yoomoney::Internal::Type::RequestParameters
|
|
16
|
+
|
|
17
|
+
attr_reader created_at: Yoomoney::PayoutListParams::CreatedAt?
|
|
18
|
+
|
|
19
|
+
def created_at=: (
|
|
20
|
+
Yoomoney::PayoutListParams::CreatedAt
|
|
21
|
+
) -> Yoomoney::PayoutListParams::CreatedAt
|
|
22
|
+
|
|
23
|
+
attr_reader cursor: String?
|
|
24
|
+
|
|
25
|
+
def cursor=: (String) -> String
|
|
26
|
+
|
|
27
|
+
attr_reader limit: Integer?
|
|
28
|
+
|
|
29
|
+
def limit=: (Integer) -> Integer
|
|
30
|
+
|
|
31
|
+
attr_reader payout_destination: Yoomoney::PayoutListParams::PayoutDestination?
|
|
32
|
+
|
|
33
|
+
def payout_destination=: (
|
|
34
|
+
Yoomoney::PayoutListParams::PayoutDestination
|
|
35
|
+
) -> Yoomoney::PayoutListParams::PayoutDestination
|
|
36
|
+
|
|
37
|
+
attr_reader status: Yoomoney::Models::payout_status?
|
|
38
|
+
|
|
39
|
+
def status=: (
|
|
40
|
+
Yoomoney::Models::payout_status
|
|
41
|
+
) -> Yoomoney::Models::payout_status
|
|
42
|
+
|
|
43
|
+
def initialize: (
|
|
44
|
+
?created_at: Yoomoney::PayoutListParams::CreatedAt,
|
|
45
|
+
?cursor: String,
|
|
46
|
+
?limit: Integer,
|
|
47
|
+
?payout_destination: Yoomoney::PayoutListParams::PayoutDestination,
|
|
48
|
+
?status: Yoomoney::Models::payout_status,
|
|
49
|
+
?request_options: Yoomoney::request_opts
|
|
50
|
+
) -> void
|
|
51
|
+
|
|
52
|
+
def to_hash: -> {
|
|
53
|
+
created_at: Yoomoney::PayoutListParams::CreatedAt,
|
|
54
|
+
cursor: String,
|
|
55
|
+
limit: Integer,
|
|
56
|
+
payout_destination: Yoomoney::PayoutListParams::PayoutDestination,
|
|
57
|
+
status: Yoomoney::Models::payout_status,
|
|
58
|
+
request_options: Yoomoney::RequestOptions
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
type created_at = { gt: Time, gte: Time, lt: Time, lte: Time }
|
|
62
|
+
|
|
63
|
+
class CreatedAt < Yoomoney::Internal::Type::BaseModel
|
|
64
|
+
attr_reader gt: Time?
|
|
65
|
+
|
|
66
|
+
def gt=: (Time) -> Time
|
|
67
|
+
|
|
68
|
+
attr_reader gte: Time?
|
|
69
|
+
|
|
70
|
+
def gte=: (Time) -> Time
|
|
71
|
+
|
|
72
|
+
attr_reader lt: Time?
|
|
73
|
+
|
|
74
|
+
def lt=: (Time) -> Time
|
|
75
|
+
|
|
76
|
+
attr_reader lte: Time?
|
|
77
|
+
|
|
78
|
+
def lte=: (Time) -> Time
|
|
79
|
+
|
|
80
|
+
def initialize: (?gt: Time, ?gte: Time, ?lt: Time, ?lte: Time) -> void
|
|
81
|
+
|
|
82
|
+
def to_hash: -> { gt: Time, gte: Time, lt: Time, lte: Time }
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
type payout_destination =
|
|
86
|
+
{ type: Yoomoney::Models::PayoutListParams::PayoutDestination::type_ }
|
|
87
|
+
|
|
88
|
+
class PayoutDestination < Yoomoney::Internal::Type::BaseModel
|
|
89
|
+
attr_reader type: Yoomoney::Models::PayoutListParams::PayoutDestination::type_?
|
|
90
|
+
|
|
91
|
+
def type=: (
|
|
92
|
+
Yoomoney::Models::PayoutListParams::PayoutDestination::type_
|
|
93
|
+
) -> Yoomoney::Models::PayoutListParams::PayoutDestination::type_
|
|
94
|
+
|
|
95
|
+
def initialize: (
|
|
96
|
+
?type: Yoomoney::Models::PayoutListParams::PayoutDestination::type_
|
|
97
|
+
) -> void
|
|
98
|
+
|
|
99
|
+
def to_hash: -> {
|
|
100
|
+
type: Yoomoney::Models::PayoutListParams::PayoutDestination::type_
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
type type_ = :bank_card | :yoo_money | :sbp
|
|
104
|
+
|
|
105
|
+
module Type
|
|
106
|
+
extend Yoomoney::Internal::Type::Enum
|
|
107
|
+
|
|
108
|
+
BANK_CARD: :bank_card
|
|
109
|
+
YOO_MONEY: :yoo_money
|
|
110
|
+
SBP: :sbp
|
|
111
|
+
|
|
112
|
+
def self?.values: -> ::Array[Yoomoney::Models::PayoutListParams::PayoutDestination::type_]
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
end
|
|
116
|
+
end
|
|
117
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type payout_retrieve_params =
|
|
4
|
+
{ } & Yoomoney::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class PayoutRetrieveParams < 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,68 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type payout_search_params =
|
|
4
|
+
{
|
|
5
|
+
created_at: Yoomoney::PayoutSearchParams::CreatedAt,
|
|
6
|
+
cursor: String,
|
|
7
|
+
limit: Integer
|
|
8
|
+
}
|
|
9
|
+
& Yoomoney::Internal::Type::request_parameters
|
|
10
|
+
|
|
11
|
+
class PayoutSearchParams < Yoomoney::Internal::Type::BaseModel
|
|
12
|
+
extend Yoomoney::Internal::Type::RequestParameters::Converter
|
|
13
|
+
include Yoomoney::Internal::Type::RequestParameters
|
|
14
|
+
|
|
15
|
+
attr_reader created_at: Yoomoney::PayoutSearchParams::CreatedAt?
|
|
16
|
+
|
|
17
|
+
def created_at=: (
|
|
18
|
+
Yoomoney::PayoutSearchParams::CreatedAt
|
|
19
|
+
) -> Yoomoney::PayoutSearchParams::CreatedAt
|
|
20
|
+
|
|
21
|
+
attr_reader cursor: String?
|
|
22
|
+
|
|
23
|
+
def cursor=: (String) -> String
|
|
24
|
+
|
|
25
|
+
attr_reader limit: Integer?
|
|
26
|
+
|
|
27
|
+
def limit=: (Integer) -> Integer
|
|
28
|
+
|
|
29
|
+
def initialize: (
|
|
30
|
+
?created_at: Yoomoney::PayoutSearchParams::CreatedAt,
|
|
31
|
+
?cursor: String,
|
|
32
|
+
?limit: Integer,
|
|
33
|
+
?request_options: Yoomoney::request_opts
|
|
34
|
+
) -> void
|
|
35
|
+
|
|
36
|
+
def to_hash: -> {
|
|
37
|
+
created_at: Yoomoney::PayoutSearchParams::CreatedAt,
|
|
38
|
+
cursor: String,
|
|
39
|
+
limit: Integer,
|
|
40
|
+
request_options: Yoomoney::RequestOptions
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
type created_at = { gt: Time, gte: Time, lt: Time, lte: Time }
|
|
44
|
+
|
|
45
|
+
class CreatedAt < Yoomoney::Internal::Type::BaseModel
|
|
46
|
+
attr_reader gt: Time?
|
|
47
|
+
|
|
48
|
+
def gt=: (Time) -> Time
|
|
49
|
+
|
|
50
|
+
attr_reader gte: Time?
|
|
51
|
+
|
|
52
|
+
def gte=: (Time) -> Time
|
|
53
|
+
|
|
54
|
+
attr_reader lt: Time?
|
|
55
|
+
|
|
56
|
+
def lt=: (Time) -> Time
|
|
57
|
+
|
|
58
|
+
attr_reader lte: Time?
|
|
59
|
+
|
|
60
|
+
def lte=: (Time) -> Time
|
|
61
|
+
|
|
62
|
+
def initialize: (?gt: Time, ?gte: Time, ?lt: Time, ?lte: Time) -> void
|
|
63
|
+
|
|
64
|
+
def to_hash: -> { gt: Time, gte: Time, lt: Time, lte: Time }
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|