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,84 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type refund_list_params =
|
|
4
|
+
{
|
|
5
|
+
created_at: Yoomoney::RefundListParams::CreatedAt,
|
|
6
|
+
cursor: String,
|
|
7
|
+
limit: Integer,
|
|
8
|
+
payment_id: String,
|
|
9
|
+
status: Yoomoney::Models::refund_status
|
|
10
|
+
}
|
|
11
|
+
& Yoomoney::Internal::Type::request_parameters
|
|
12
|
+
|
|
13
|
+
class RefundListParams < Yoomoney::Internal::Type::BaseModel
|
|
14
|
+
extend Yoomoney::Internal::Type::RequestParameters::Converter
|
|
15
|
+
include Yoomoney::Internal::Type::RequestParameters
|
|
16
|
+
|
|
17
|
+
attr_reader created_at: Yoomoney::RefundListParams::CreatedAt?
|
|
18
|
+
|
|
19
|
+
def created_at=: (
|
|
20
|
+
Yoomoney::RefundListParams::CreatedAt
|
|
21
|
+
) -> Yoomoney::RefundListParams::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 payment_id: String?
|
|
32
|
+
|
|
33
|
+
def payment_id=: (String) -> String
|
|
34
|
+
|
|
35
|
+
attr_reader status: Yoomoney::Models::refund_status?
|
|
36
|
+
|
|
37
|
+
def status=: (
|
|
38
|
+
Yoomoney::Models::refund_status
|
|
39
|
+
) -> Yoomoney::Models::refund_status
|
|
40
|
+
|
|
41
|
+
def initialize: (
|
|
42
|
+
?created_at: Yoomoney::RefundListParams::CreatedAt,
|
|
43
|
+
?cursor: String,
|
|
44
|
+
?limit: Integer,
|
|
45
|
+
?payment_id: String,
|
|
46
|
+
?status: Yoomoney::Models::refund_status,
|
|
47
|
+
?request_options: Yoomoney::request_opts
|
|
48
|
+
) -> void
|
|
49
|
+
|
|
50
|
+
def to_hash: -> {
|
|
51
|
+
created_at: Yoomoney::RefundListParams::CreatedAt,
|
|
52
|
+
cursor: String,
|
|
53
|
+
limit: Integer,
|
|
54
|
+
payment_id: String,
|
|
55
|
+
status: Yoomoney::Models::refund_status,
|
|
56
|
+
request_options: Yoomoney::RequestOptions
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
type created_at = { gt: Time, gte: Time, lt: Time, lte: Time }
|
|
60
|
+
|
|
61
|
+
class CreatedAt < Yoomoney::Internal::Type::BaseModel
|
|
62
|
+
attr_reader gt: Time?
|
|
63
|
+
|
|
64
|
+
def gt=: (Time) -> Time
|
|
65
|
+
|
|
66
|
+
attr_reader gte: Time?
|
|
67
|
+
|
|
68
|
+
def gte=: (Time) -> Time
|
|
69
|
+
|
|
70
|
+
attr_reader lt: Time?
|
|
71
|
+
|
|
72
|
+
def lt=: (Time) -> Time
|
|
73
|
+
|
|
74
|
+
attr_reader lte: Time?
|
|
75
|
+
|
|
76
|
+
def lte=: (Time) -> Time
|
|
77
|
+
|
|
78
|
+
def initialize: (?gt: Time, ?gte: Time, ?lt: Time, ?lte: Time) -> void
|
|
79
|
+
|
|
80
|
+
def to_hash: -> { gt: Time, gte: Time, lt: Time, lte: Time }
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type refund_list_response =
|
|
4
|
+
{ items: ::Array[Yoomoney::Refund], type: String, next_cursor: String }
|
|
5
|
+
|
|
6
|
+
class RefundListResponse < Yoomoney::Internal::Type::BaseModel
|
|
7
|
+
attr_accessor items: ::Array[Yoomoney::Refund]
|
|
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::Refund],
|
|
17
|
+
type: String,
|
|
18
|
+
?next_cursor: String
|
|
19
|
+
) -> void
|
|
20
|
+
|
|
21
|
+
def to_hash: -> {
|
|
22
|
+
items: ::Array[Yoomoney::Refund],
|
|
23
|
+
type: String,
|
|
24
|
+
next_cursor: String
|
|
25
|
+
}
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type refund_method = { type: Yoomoney::Models::refund_method_type }
|
|
4
|
+
|
|
5
|
+
class RefundMethod < Yoomoney::Internal::Type::BaseModel
|
|
6
|
+
attr_accessor type: Yoomoney::Models::refund_method_type
|
|
7
|
+
|
|
8
|
+
def initialize: (type: Yoomoney::Models::refund_method_type) -> void
|
|
9
|
+
|
|
10
|
+
def to_hash: -> { type: Yoomoney::Models::refund_method_type }
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type refund_method_type = :sbp | :electronic_certificate
|
|
4
|
+
|
|
5
|
+
module RefundMethodType
|
|
6
|
+
extend Yoomoney::Internal::Type::Enum
|
|
7
|
+
|
|
8
|
+
SBP: :sbp
|
|
9
|
+
ELECTRONIC_CERTIFICATE: :electronic_certificate
|
|
10
|
+
|
|
11
|
+
def self?.values: -> ::Array[Yoomoney::Models::refund_method_type]
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type refund_retrieve_params =
|
|
4
|
+
{ } & Yoomoney::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class RefundRetrieveParams < 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,34 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type refund_sources_data =
|
|
4
|
+
{
|
|
5
|
+
account_id: String,
|
|
6
|
+
amount: Yoomoney::MonetaryAmount,
|
|
7
|
+
platform_fee_amount: Yoomoney::MonetaryAmount
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
class RefundSourcesData < Yoomoney::Internal::Type::BaseModel
|
|
11
|
+
attr_accessor account_id: String
|
|
12
|
+
|
|
13
|
+
attr_accessor amount: Yoomoney::MonetaryAmount
|
|
14
|
+
|
|
15
|
+
attr_reader platform_fee_amount: Yoomoney::MonetaryAmount?
|
|
16
|
+
|
|
17
|
+
def platform_fee_amount=: (
|
|
18
|
+
Yoomoney::MonetaryAmount
|
|
19
|
+
) -> Yoomoney::MonetaryAmount
|
|
20
|
+
|
|
21
|
+
def initialize: (
|
|
22
|
+
account_id: String,
|
|
23
|
+
amount: Yoomoney::MonetaryAmount,
|
|
24
|
+
?platform_fee_amount: Yoomoney::MonetaryAmount
|
|
25
|
+
) -> void
|
|
26
|
+
|
|
27
|
+
def to_hash: -> {
|
|
28
|
+
account_id: String,
|
|
29
|
+
amount: Yoomoney::MonetaryAmount,
|
|
30
|
+
platform_fee_amount: Yoomoney::MonetaryAmount
|
|
31
|
+
}
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type refund_status = :pending | :succeeded | :canceled
|
|
4
|
+
|
|
5
|
+
module RefundStatus
|
|
6
|
+
extend Yoomoney::Internal::Type::Enum
|
|
7
|
+
|
|
8
|
+
PENDING: :pending
|
|
9
|
+
SUCCEEDED: :succeeded
|
|
10
|
+
CANCELED: :canceled
|
|
11
|
+
|
|
12
|
+
def self?.values: -> ::Array[Yoomoney::Models::refund_status]
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type safe_deal =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
balance: Yoomoney::MonetaryAmount,
|
|
7
|
+
created_at: Time,
|
|
8
|
+
expires_at: Time,
|
|
9
|
+
fee_moment: Yoomoney::Models::fee_moment,
|
|
10
|
+
payout_balance: Yoomoney::MonetaryAmount,
|
|
11
|
+
status: Yoomoney::Models::SafeDeal::status,
|
|
12
|
+
test_: bool,
|
|
13
|
+
type: Yoomoney::Models::deal_type,
|
|
14
|
+
description: String,
|
|
15
|
+
metadata: ::Hash[Symbol, String]
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
class SafeDeal < Yoomoney::Internal::Type::BaseModel
|
|
19
|
+
attr_accessor id: String
|
|
20
|
+
|
|
21
|
+
attr_accessor balance: Yoomoney::MonetaryAmount
|
|
22
|
+
|
|
23
|
+
attr_accessor created_at: Time
|
|
24
|
+
|
|
25
|
+
attr_accessor expires_at: Time
|
|
26
|
+
|
|
27
|
+
attr_accessor fee_moment: Yoomoney::Models::fee_moment
|
|
28
|
+
|
|
29
|
+
attr_accessor payout_balance: Yoomoney::MonetaryAmount
|
|
30
|
+
|
|
31
|
+
attr_accessor status: Yoomoney::Models::SafeDeal::status
|
|
32
|
+
|
|
33
|
+
attr_accessor test_: bool
|
|
34
|
+
|
|
35
|
+
attr_accessor type: Yoomoney::Models::deal_type
|
|
36
|
+
|
|
37
|
+
attr_reader description: String?
|
|
38
|
+
|
|
39
|
+
def description=: (String) -> String
|
|
40
|
+
|
|
41
|
+
attr_reader metadata: ::Hash[Symbol, String]?
|
|
42
|
+
|
|
43
|
+
def metadata=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
|
|
44
|
+
|
|
45
|
+
def initialize: (
|
|
46
|
+
id: String,
|
|
47
|
+
balance: Yoomoney::MonetaryAmount,
|
|
48
|
+
created_at: Time,
|
|
49
|
+
expires_at: Time,
|
|
50
|
+
fee_moment: Yoomoney::Models::fee_moment,
|
|
51
|
+
payout_balance: Yoomoney::MonetaryAmount,
|
|
52
|
+
status: Yoomoney::Models::SafeDeal::status,
|
|
53
|
+
test_: bool,
|
|
54
|
+
type: Yoomoney::Models::deal_type,
|
|
55
|
+
?description: String,
|
|
56
|
+
?metadata: ::Hash[Symbol, String]
|
|
57
|
+
) -> void
|
|
58
|
+
|
|
59
|
+
def to_hash: -> {
|
|
60
|
+
id: String,
|
|
61
|
+
balance: Yoomoney::MonetaryAmount,
|
|
62
|
+
created_at: Time,
|
|
63
|
+
expires_at: Time,
|
|
64
|
+
fee_moment: Yoomoney::Models::fee_moment,
|
|
65
|
+
payout_balance: Yoomoney::MonetaryAmount,
|
|
66
|
+
status: Yoomoney::Models::SafeDeal::status,
|
|
67
|
+
test_: bool,
|
|
68
|
+
type: Yoomoney::Models::deal_type,
|
|
69
|
+
description: String,
|
|
70
|
+
metadata: ::Hash[Symbol, String]
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
type status = :opened | :closed
|
|
74
|
+
|
|
75
|
+
module Status
|
|
76
|
+
extend Yoomoney::Internal::Type::Enum
|
|
77
|
+
|
|
78
|
+
OPENED: :opened
|
|
79
|
+
CLOSED: :closed
|
|
80
|
+
|
|
81
|
+
def self?.values: -> ::Array[Yoomoney::Models::SafeDeal::status]
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
end
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type save_payment_method_bank_card =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
holder: String,
|
|
7
|
+
saved: bool,
|
|
8
|
+
status: Yoomoney::Models::payment_method_status,
|
|
9
|
+
type: Yoomoney::Models::SavePaymentMethodBankCard::type_,
|
|
10
|
+
card: Yoomoney::BankCardData,
|
|
11
|
+
confirmation: Yoomoney::SavePaymentMethodBankCard::Confirmation,
|
|
12
|
+
title: String
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
class SavePaymentMethodBankCard < Yoomoney::Internal::Type::BaseModel
|
|
16
|
+
attr_accessor id: String
|
|
17
|
+
|
|
18
|
+
attr_accessor holder: String
|
|
19
|
+
|
|
20
|
+
attr_accessor saved: bool
|
|
21
|
+
|
|
22
|
+
attr_accessor status: Yoomoney::Models::payment_method_status
|
|
23
|
+
|
|
24
|
+
attr_accessor type: Yoomoney::Models::SavePaymentMethodBankCard::type_
|
|
25
|
+
|
|
26
|
+
attr_reader card: Yoomoney::BankCardData?
|
|
27
|
+
|
|
28
|
+
def card=: (Yoomoney::BankCardData) -> Yoomoney::BankCardData
|
|
29
|
+
|
|
30
|
+
attr_reader confirmation: Yoomoney::SavePaymentMethodBankCard::Confirmation?
|
|
31
|
+
|
|
32
|
+
def confirmation=: (
|
|
33
|
+
Yoomoney::SavePaymentMethodBankCard::Confirmation
|
|
34
|
+
) -> Yoomoney::SavePaymentMethodBankCard::Confirmation
|
|
35
|
+
|
|
36
|
+
attr_reader title: String?
|
|
37
|
+
|
|
38
|
+
def title=: (String) -> String
|
|
39
|
+
|
|
40
|
+
def initialize: (
|
|
41
|
+
id: String,
|
|
42
|
+
holder: String,
|
|
43
|
+
saved: bool,
|
|
44
|
+
status: Yoomoney::Models::payment_method_status,
|
|
45
|
+
type: Yoomoney::Models::SavePaymentMethodBankCard::type_,
|
|
46
|
+
?card: Yoomoney::BankCardData,
|
|
47
|
+
?confirmation: Yoomoney::SavePaymentMethodBankCard::Confirmation,
|
|
48
|
+
?title: String
|
|
49
|
+
) -> void
|
|
50
|
+
|
|
51
|
+
def to_hash: -> {
|
|
52
|
+
id: String,
|
|
53
|
+
holder: String,
|
|
54
|
+
saved: bool,
|
|
55
|
+
status: Yoomoney::Models::payment_method_status,
|
|
56
|
+
type: Yoomoney::Models::SavePaymentMethodBankCard::type_,
|
|
57
|
+
card: Yoomoney::BankCardData,
|
|
58
|
+
confirmation: Yoomoney::SavePaymentMethodBankCard::Confirmation,
|
|
59
|
+
title: String
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
type type_ = :bank_card
|
|
63
|
+
|
|
64
|
+
module Type
|
|
65
|
+
extend Yoomoney::Internal::Type::Enum
|
|
66
|
+
|
|
67
|
+
BANK_CARD: :bank_card
|
|
68
|
+
|
|
69
|
+
def self?.values: -> ::Array[Yoomoney::Models::SavePaymentMethodBankCard::type_]
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
type confirmation =
|
|
73
|
+
{
|
|
74
|
+
type: Yoomoney::Models::payment_methods_confirmation_type,
|
|
75
|
+
confirmation_url: String
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
class Confirmation < Yoomoney::Internal::Type::BaseModel
|
|
79
|
+
attr_accessor type: Yoomoney::Models::payment_methods_confirmation_type
|
|
80
|
+
|
|
81
|
+
attr_reader confirmation_url: String?
|
|
82
|
+
|
|
83
|
+
def confirmation_url=: (String) -> String
|
|
84
|
+
|
|
85
|
+
def initialize: (
|
|
86
|
+
type: Yoomoney::Models::payment_methods_confirmation_type,
|
|
87
|
+
?confirmation_url: String
|
|
88
|
+
) -> void
|
|
89
|
+
|
|
90
|
+
def to_hash: -> {
|
|
91
|
+
type: Yoomoney::Models::payment_methods_confirmation_type,
|
|
92
|
+
confirmation_url: String
|
|
93
|
+
}
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type sbp_bank_list_params =
|
|
4
|
+
{ } & Yoomoney::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class SbpBankListParams < 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,39 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type sbp_bank_list_response =
|
|
4
|
+
{
|
|
5
|
+
items: ::Array[Yoomoney::Models::SbpBankListResponse::Item],
|
|
6
|
+
type: String
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
class SbpBankListResponse < Yoomoney::Internal::Type::BaseModel
|
|
10
|
+
attr_accessor items: ::Array[Yoomoney::Models::SbpBankListResponse::Item]
|
|
11
|
+
|
|
12
|
+
attr_accessor type: String
|
|
13
|
+
|
|
14
|
+
def initialize: (
|
|
15
|
+
items: ::Array[Yoomoney::Models::SbpBankListResponse::Item],
|
|
16
|
+
type: String
|
|
17
|
+
) -> void
|
|
18
|
+
|
|
19
|
+
def to_hash: -> {
|
|
20
|
+
items: ::Array[Yoomoney::Models::SbpBankListResponse::Item],
|
|
21
|
+
type: String
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
type item = { bank_id: String, bic: String, name: String }
|
|
25
|
+
|
|
26
|
+
class Item < Yoomoney::Internal::Type::BaseModel
|
|
27
|
+
attr_accessor bank_id: String
|
|
28
|
+
|
|
29
|
+
attr_accessor bic: String
|
|
30
|
+
|
|
31
|
+
attr_accessor name: String
|
|
32
|
+
|
|
33
|
+
def initialize: (bank_id: String, bic: String, name: String) -> void
|
|
34
|
+
|
|
35
|
+
def to_hash: -> { bank_id: String, bic: String, name: String }
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type settlement = { amount: Yoomoney::MonetaryAmount, type: String }
|
|
4
|
+
|
|
5
|
+
class Settlement < Yoomoney::Internal::Type::BaseModel
|
|
6
|
+
attr_accessor amount: Yoomoney::MonetaryAmount
|
|
7
|
+
|
|
8
|
+
attr_accessor type: String
|
|
9
|
+
|
|
10
|
+
def initialize: (amount: Yoomoney::MonetaryAmount, type: String) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { amount: Yoomoney::MonetaryAmount, type: String }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type transfer_data =
|
|
4
|
+
{
|
|
5
|
+
account_id: String,
|
|
6
|
+
amount: Yoomoney::MonetaryAmount,
|
|
7
|
+
platform_fee_amount: Yoomoney::MonetaryAmount
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
class TransferData < Yoomoney::Internal::Type::BaseModel
|
|
11
|
+
attr_accessor account_id: String
|
|
12
|
+
|
|
13
|
+
attr_accessor amount: Yoomoney::MonetaryAmount
|
|
14
|
+
|
|
15
|
+
attr_reader platform_fee_amount: Yoomoney::MonetaryAmount?
|
|
16
|
+
|
|
17
|
+
def platform_fee_amount=: (
|
|
18
|
+
Yoomoney::MonetaryAmount
|
|
19
|
+
) -> Yoomoney::MonetaryAmount
|
|
20
|
+
|
|
21
|
+
def initialize: (
|
|
22
|
+
account_id: String,
|
|
23
|
+
amount: Yoomoney::MonetaryAmount,
|
|
24
|
+
?platform_fee_amount: Yoomoney::MonetaryAmount
|
|
25
|
+
) -> void
|
|
26
|
+
|
|
27
|
+
def to_hash: -> {
|
|
28
|
+
account_id: String,
|
|
29
|
+
amount: Yoomoney::MonetaryAmount,
|
|
30
|
+
platform_fee_amount: Yoomoney::MonetaryAmount
|
|
31
|
+
}
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type webhook =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
event: Yoomoney::Models::notification_event_type,
|
|
7
|
+
url: String
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
class Webhook < Yoomoney::Internal::Type::BaseModel
|
|
11
|
+
attr_accessor id: String
|
|
12
|
+
|
|
13
|
+
attr_accessor event: Yoomoney::Models::notification_event_type
|
|
14
|
+
|
|
15
|
+
attr_accessor url: String
|
|
16
|
+
|
|
17
|
+
def initialize: (
|
|
18
|
+
id: String,
|
|
19
|
+
event: Yoomoney::Models::notification_event_type,
|
|
20
|
+
url: String
|
|
21
|
+
) -> void
|
|
22
|
+
|
|
23
|
+
def to_hash: -> {
|
|
24
|
+
id: String,
|
|
25
|
+
event: Yoomoney::Models::notification_event_type,
|
|
26
|
+
url: String
|
|
27
|
+
}
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type webhook_create_params =
|
|
4
|
+
{
|
|
5
|
+
event: Yoomoney::Models::notification_event_type,
|
|
6
|
+
url: String,
|
|
7
|
+
idempotence_key: String
|
|
8
|
+
}
|
|
9
|
+
& Yoomoney::Internal::Type::request_parameters
|
|
10
|
+
|
|
11
|
+
class WebhookCreateParams < Yoomoney::Internal::Type::BaseModel
|
|
12
|
+
extend Yoomoney::Internal::Type::RequestParameters::Converter
|
|
13
|
+
include Yoomoney::Internal::Type::RequestParameters
|
|
14
|
+
|
|
15
|
+
attr_accessor event: Yoomoney::Models::notification_event_type
|
|
16
|
+
|
|
17
|
+
attr_accessor url: String
|
|
18
|
+
|
|
19
|
+
attr_accessor idempotence_key: String
|
|
20
|
+
|
|
21
|
+
def initialize: (
|
|
22
|
+
event: Yoomoney::Models::notification_event_type,
|
|
23
|
+
url: String,
|
|
24
|
+
idempotence_key: String,
|
|
25
|
+
?request_options: Yoomoney::request_opts
|
|
26
|
+
) -> void
|
|
27
|
+
|
|
28
|
+
def to_hash: -> {
|
|
29
|
+
event: Yoomoney::Models::notification_event_type,
|
|
30
|
+
url: String,
|
|
31
|
+
idempotence_key: String,
|
|
32
|
+
request_options: Yoomoney::RequestOptions
|
|
33
|
+
}
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type webhook_delete_params =
|
|
4
|
+
{ } & Yoomoney::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class WebhookDeleteParams < 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,15 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type webhook_list_params =
|
|
4
|
+
{ } & Yoomoney::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class WebhookListParams < 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,16 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type webhook_list_response =
|
|
4
|
+
{ items: ::Array[Yoomoney::Webhook], type: String }
|
|
5
|
+
|
|
6
|
+
class WebhookListResponse < Yoomoney::Internal::Type::BaseModel
|
|
7
|
+
attr_accessor items: ::Array[Yoomoney::Webhook]
|
|
8
|
+
|
|
9
|
+
attr_accessor type: String
|
|
10
|
+
|
|
11
|
+
def initialize: (items: ::Array[Yoomoney::Webhook], type: String) -> void
|
|
12
|
+
|
|
13
|
+
def to_hash: -> { items: ::Array[Yoomoney::Webhook], type: String }
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|