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,696 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type payment =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
amount: Yoomoney::MonetaryAmount,
|
|
7
|
+
created_at: Time,
|
|
8
|
+
paid: bool,
|
|
9
|
+
recipient: Yoomoney::Recipient,
|
|
10
|
+
refundable: bool,
|
|
11
|
+
status: Yoomoney::Models::payment_status,
|
|
12
|
+
test_: bool,
|
|
13
|
+
authorization_details: Yoomoney::Payment::AuthorizationDetails,
|
|
14
|
+
cancellation_details: Yoomoney::Payment::CancellationDetails,
|
|
15
|
+
captured_at: Time,
|
|
16
|
+
confirmation: Yoomoney::Models::Payment::confirmation,
|
|
17
|
+
deal: Yoomoney::PaymentDealInfo,
|
|
18
|
+
description: String,
|
|
19
|
+
expires_at: Time,
|
|
20
|
+
income_amount: Yoomoney::MonetaryAmount,
|
|
21
|
+
invoice_details: String,
|
|
22
|
+
merchant_customer_id: String,
|
|
23
|
+
metadata: ::Hash[Symbol, String],
|
|
24
|
+
payment_method: Yoomoney::Models::Payment::payment_method,
|
|
25
|
+
receipt_registration: Yoomoney::Models::receipt_registration_status,
|
|
26
|
+
refunded_amount: Yoomoney::MonetaryAmount,
|
|
27
|
+
transfers: ::Array[Yoomoney::Payment::Transfer]
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
class Payment < Yoomoney::Internal::Type::BaseModel
|
|
31
|
+
attr_accessor id: String
|
|
32
|
+
|
|
33
|
+
attr_accessor amount: Yoomoney::MonetaryAmount
|
|
34
|
+
|
|
35
|
+
attr_accessor created_at: Time
|
|
36
|
+
|
|
37
|
+
attr_accessor paid: bool
|
|
38
|
+
|
|
39
|
+
attr_accessor recipient: Yoomoney::Recipient
|
|
40
|
+
|
|
41
|
+
attr_accessor refundable: bool
|
|
42
|
+
|
|
43
|
+
attr_accessor status: Yoomoney::Models::payment_status
|
|
44
|
+
|
|
45
|
+
attr_accessor test_: bool
|
|
46
|
+
|
|
47
|
+
attr_reader authorization_details: Yoomoney::Payment::AuthorizationDetails?
|
|
48
|
+
|
|
49
|
+
def authorization_details=: (
|
|
50
|
+
Yoomoney::Payment::AuthorizationDetails
|
|
51
|
+
) -> Yoomoney::Payment::AuthorizationDetails
|
|
52
|
+
|
|
53
|
+
attr_reader cancellation_details: Yoomoney::Payment::CancellationDetails?
|
|
54
|
+
|
|
55
|
+
def cancellation_details=: (
|
|
56
|
+
Yoomoney::Payment::CancellationDetails
|
|
57
|
+
) -> Yoomoney::Payment::CancellationDetails
|
|
58
|
+
|
|
59
|
+
attr_reader captured_at: Time?
|
|
60
|
+
|
|
61
|
+
def captured_at=: (Time) -> Time
|
|
62
|
+
|
|
63
|
+
attr_reader confirmation: Yoomoney::Models::Payment::confirmation?
|
|
64
|
+
|
|
65
|
+
def confirmation=: (
|
|
66
|
+
Yoomoney::Models::Payment::confirmation
|
|
67
|
+
) -> Yoomoney::Models::Payment::confirmation
|
|
68
|
+
|
|
69
|
+
attr_reader deal: Yoomoney::PaymentDealInfo?
|
|
70
|
+
|
|
71
|
+
def deal=: (Yoomoney::PaymentDealInfo) -> Yoomoney::PaymentDealInfo
|
|
72
|
+
|
|
73
|
+
attr_reader description: String?
|
|
74
|
+
|
|
75
|
+
def description=: (String) -> String
|
|
76
|
+
|
|
77
|
+
attr_reader expires_at: Time?
|
|
78
|
+
|
|
79
|
+
def expires_at=: (Time) -> Time
|
|
80
|
+
|
|
81
|
+
attr_reader income_amount: Yoomoney::MonetaryAmount?
|
|
82
|
+
|
|
83
|
+
def income_amount=: (Yoomoney::MonetaryAmount) -> Yoomoney::MonetaryAmount
|
|
84
|
+
|
|
85
|
+
attr_reader invoice_details: String?
|
|
86
|
+
|
|
87
|
+
def invoice_details=: (String) -> String
|
|
88
|
+
|
|
89
|
+
attr_reader merchant_customer_id: String?
|
|
90
|
+
|
|
91
|
+
def merchant_customer_id=: (String) -> String
|
|
92
|
+
|
|
93
|
+
attr_reader metadata: ::Hash[Symbol, String]?
|
|
94
|
+
|
|
95
|
+
def metadata=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
|
|
96
|
+
|
|
97
|
+
attr_reader payment_method: Yoomoney::Models::Payment::payment_method?
|
|
98
|
+
|
|
99
|
+
def payment_method=: (
|
|
100
|
+
Yoomoney::Models::Payment::payment_method
|
|
101
|
+
) -> Yoomoney::Models::Payment::payment_method
|
|
102
|
+
|
|
103
|
+
attr_reader receipt_registration: Yoomoney::Models::receipt_registration_status?
|
|
104
|
+
|
|
105
|
+
def receipt_registration=: (
|
|
106
|
+
Yoomoney::Models::receipt_registration_status
|
|
107
|
+
) -> Yoomoney::Models::receipt_registration_status
|
|
108
|
+
|
|
109
|
+
attr_reader refunded_amount: Yoomoney::MonetaryAmount?
|
|
110
|
+
|
|
111
|
+
def refunded_amount=: (
|
|
112
|
+
Yoomoney::MonetaryAmount
|
|
113
|
+
) -> Yoomoney::MonetaryAmount
|
|
114
|
+
|
|
115
|
+
attr_reader transfers: ::Array[Yoomoney::Payment::Transfer]?
|
|
116
|
+
|
|
117
|
+
def transfers=: (
|
|
118
|
+
::Array[Yoomoney::Payment::Transfer]
|
|
119
|
+
) -> ::Array[Yoomoney::Payment::Transfer]
|
|
120
|
+
|
|
121
|
+
def initialize: (
|
|
122
|
+
id: String,
|
|
123
|
+
amount: Yoomoney::MonetaryAmount,
|
|
124
|
+
created_at: Time,
|
|
125
|
+
paid: bool,
|
|
126
|
+
recipient: Yoomoney::Recipient,
|
|
127
|
+
refundable: bool,
|
|
128
|
+
status: Yoomoney::Models::payment_status,
|
|
129
|
+
test_: bool,
|
|
130
|
+
?authorization_details: Yoomoney::Payment::AuthorizationDetails,
|
|
131
|
+
?cancellation_details: Yoomoney::Payment::CancellationDetails,
|
|
132
|
+
?captured_at: Time,
|
|
133
|
+
?confirmation: Yoomoney::Models::Payment::confirmation,
|
|
134
|
+
?deal: Yoomoney::PaymentDealInfo,
|
|
135
|
+
?description: String,
|
|
136
|
+
?expires_at: Time,
|
|
137
|
+
?income_amount: Yoomoney::MonetaryAmount,
|
|
138
|
+
?invoice_details: String,
|
|
139
|
+
?merchant_customer_id: String,
|
|
140
|
+
?metadata: ::Hash[Symbol, String],
|
|
141
|
+
?payment_method: Yoomoney::Models::Payment::payment_method,
|
|
142
|
+
?receipt_registration: Yoomoney::Models::receipt_registration_status,
|
|
143
|
+
?refunded_amount: Yoomoney::MonetaryAmount,
|
|
144
|
+
?transfers: ::Array[Yoomoney::Payment::Transfer]
|
|
145
|
+
) -> void
|
|
146
|
+
|
|
147
|
+
def to_hash: -> {
|
|
148
|
+
id: String,
|
|
149
|
+
amount: Yoomoney::MonetaryAmount,
|
|
150
|
+
created_at: Time,
|
|
151
|
+
paid: bool,
|
|
152
|
+
recipient: Yoomoney::Recipient,
|
|
153
|
+
refundable: bool,
|
|
154
|
+
status: Yoomoney::Models::payment_status,
|
|
155
|
+
test_: bool,
|
|
156
|
+
authorization_details: Yoomoney::Payment::AuthorizationDetails,
|
|
157
|
+
cancellation_details: Yoomoney::Payment::CancellationDetails,
|
|
158
|
+
captured_at: Time,
|
|
159
|
+
confirmation: Yoomoney::Models::Payment::confirmation,
|
|
160
|
+
deal: Yoomoney::PaymentDealInfo,
|
|
161
|
+
description: String,
|
|
162
|
+
expires_at: Time,
|
|
163
|
+
income_amount: Yoomoney::MonetaryAmount,
|
|
164
|
+
invoice_details: String,
|
|
165
|
+
merchant_customer_id: String,
|
|
166
|
+
metadata: ::Hash[Symbol, String],
|
|
167
|
+
payment_method: Yoomoney::Models::Payment::payment_method,
|
|
168
|
+
receipt_registration: Yoomoney::Models::receipt_registration_status,
|
|
169
|
+
refunded_amount: Yoomoney::MonetaryAmount,
|
|
170
|
+
transfers: ::Array[Yoomoney::Payment::Transfer]
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
type authorization_details =
|
|
174
|
+
{
|
|
175
|
+
three_d_secure: Yoomoney::Payment::AuthorizationDetails::ThreeDSecure,
|
|
176
|
+
auth_code: String,
|
|
177
|
+
rrn: String
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
class AuthorizationDetails < Yoomoney::Internal::Type::BaseModel
|
|
181
|
+
attr_accessor three_d_secure: Yoomoney::Payment::AuthorizationDetails::ThreeDSecure
|
|
182
|
+
|
|
183
|
+
attr_reader auth_code: String?
|
|
184
|
+
|
|
185
|
+
def auth_code=: (String) -> String
|
|
186
|
+
|
|
187
|
+
attr_reader rrn: String?
|
|
188
|
+
|
|
189
|
+
def rrn=: (String) -> String
|
|
190
|
+
|
|
191
|
+
def initialize: (
|
|
192
|
+
three_d_secure: Yoomoney::Payment::AuthorizationDetails::ThreeDSecure,
|
|
193
|
+
?auth_code: String,
|
|
194
|
+
?rrn: String
|
|
195
|
+
) -> void
|
|
196
|
+
|
|
197
|
+
def to_hash: -> {
|
|
198
|
+
three_d_secure: Yoomoney::Payment::AuthorizationDetails::ThreeDSecure,
|
|
199
|
+
auth_code: String,
|
|
200
|
+
rrn: String
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
type three_d_secure = { applied: bool }
|
|
204
|
+
|
|
205
|
+
class ThreeDSecure < Yoomoney::Internal::Type::BaseModel
|
|
206
|
+
attr_accessor applied: bool
|
|
207
|
+
|
|
208
|
+
def initialize: (applied: bool) -> void
|
|
209
|
+
|
|
210
|
+
def to_hash: -> { applied: bool }
|
|
211
|
+
end
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
type cancellation_details = { party: String, reason: String }
|
|
215
|
+
|
|
216
|
+
class CancellationDetails < Yoomoney::Internal::Type::BaseModel
|
|
217
|
+
attr_accessor party: String
|
|
218
|
+
|
|
219
|
+
attr_accessor reason: String
|
|
220
|
+
|
|
221
|
+
def initialize: (party: String, reason: String) -> void
|
|
222
|
+
|
|
223
|
+
def to_hash: -> { party: String, reason: String }
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
type confirmation =
|
|
227
|
+
Yoomoney::Payment::Confirmation::ConfirmationRedirect
|
|
228
|
+
| Yoomoney::Confirmation
|
|
229
|
+
| Yoomoney::Payment::Confirmation::ConfirmationQr
|
|
230
|
+
| Yoomoney::Payment::Confirmation::ConfirmationEmbedded
|
|
231
|
+
| Yoomoney::Payment::Confirmation::ConfirmationMobileApplication
|
|
232
|
+
|
|
233
|
+
module Confirmation
|
|
234
|
+
extend Yoomoney::Internal::Type::Union
|
|
235
|
+
|
|
236
|
+
type confirmation_redirect =
|
|
237
|
+
{ confirmation_url: String, enforce: bool, return_url: String }
|
|
238
|
+
|
|
239
|
+
class ConfirmationRedirect < Yoomoney::Models::Confirmation
|
|
240
|
+
def confirmation_url: -> String
|
|
241
|
+
|
|
242
|
+
def confirmation_url=: (String _) -> String
|
|
243
|
+
|
|
244
|
+
def enforce: -> bool?
|
|
245
|
+
|
|
246
|
+
def enforce=: (bool _) -> bool
|
|
247
|
+
|
|
248
|
+
def return_url: -> String?
|
|
249
|
+
|
|
250
|
+
def return_url=: (String _) -> String
|
|
251
|
+
|
|
252
|
+
def initialize: (
|
|
253
|
+
confirmation_url: String,
|
|
254
|
+
?enforce: bool,
|
|
255
|
+
?return_url: String
|
|
256
|
+
) -> void
|
|
257
|
+
|
|
258
|
+
def to_hash: -> {
|
|
259
|
+
confirmation_url: String,
|
|
260
|
+
enforce: bool,
|
|
261
|
+
return_url: String
|
|
262
|
+
}
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
type confirmation_qr = { confirmation_url: String }
|
|
266
|
+
|
|
267
|
+
class ConfirmationQr < Yoomoney::Models::Confirmation
|
|
268
|
+
def confirmation_url: -> String?
|
|
269
|
+
|
|
270
|
+
def confirmation_url=: (String _) -> String
|
|
271
|
+
|
|
272
|
+
def initialize: (?confirmation_url: String) -> void
|
|
273
|
+
|
|
274
|
+
def to_hash: -> { confirmation_url: String }
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
type confirmation_embedded = { confirmation_token: String }
|
|
278
|
+
|
|
279
|
+
class ConfirmationEmbedded < Yoomoney::Models::Confirmation
|
|
280
|
+
def confirmation_token: -> String?
|
|
281
|
+
|
|
282
|
+
def confirmation_token=: (String _) -> String
|
|
283
|
+
|
|
284
|
+
def initialize: (?confirmation_token: String) -> void
|
|
285
|
+
|
|
286
|
+
def to_hash: -> { confirmation_token: String }
|
|
287
|
+
end
|
|
288
|
+
|
|
289
|
+
type confirmation_mobile_application = { confirmation_url: String }
|
|
290
|
+
|
|
291
|
+
class ConfirmationMobileApplication < Yoomoney::Models::Confirmation
|
|
292
|
+
def confirmation_url: -> String?
|
|
293
|
+
|
|
294
|
+
def confirmation_url=: (String _) -> String
|
|
295
|
+
|
|
296
|
+
def initialize: (?confirmation_url: String) -> void
|
|
297
|
+
|
|
298
|
+
def to_hash: -> { confirmation_url: String }
|
|
299
|
+
end
|
|
300
|
+
|
|
301
|
+
def self?.variants: -> ::Array[Yoomoney::Models::Payment::confirmation]
|
|
302
|
+
end
|
|
303
|
+
|
|
304
|
+
type payment_method =
|
|
305
|
+
Yoomoney::Payment::PaymentMethod::PaymentMethodBankCard
|
|
306
|
+
| Yoomoney::PaymentMethod
|
|
307
|
+
| Yoomoney::Payment::PaymentMethod::PaymentMethodAlfabank
|
|
308
|
+
| Yoomoney::Payment::PaymentMethod::PaymentMethodSberbank
|
|
309
|
+
| Yoomoney::Payment::PaymentMethod::PaymentMethodYooMoney
|
|
310
|
+
| Yoomoney::Payment::PaymentMethod::PaymentMethodMobileBalance
|
|
311
|
+
| Yoomoney::Payment::PaymentMethod::PaymentMethodB2bSberbank
|
|
312
|
+
| Yoomoney::Payment::PaymentMethod::PaymentMethodSbp
|
|
313
|
+
| Yoomoney::Payment::PaymentMethod::PaymentMethodElectronicCertificate
|
|
314
|
+
|
|
315
|
+
module PaymentMethod
|
|
316
|
+
extend Yoomoney::Internal::Type::Union
|
|
317
|
+
|
|
318
|
+
type payment_method_bank_card = { card: Yoomoney::BankCardData }
|
|
319
|
+
|
|
320
|
+
class PaymentMethodBankCard < Yoomoney::Models::PaymentMethod
|
|
321
|
+
def card: -> Yoomoney::BankCardData?
|
|
322
|
+
|
|
323
|
+
def card=: (Yoomoney::BankCardData _) -> Yoomoney::BankCardData
|
|
324
|
+
|
|
325
|
+
def initialize: (?card: Yoomoney::BankCardData) -> void
|
|
326
|
+
|
|
327
|
+
def to_hash: -> { card: Yoomoney::BankCardData }
|
|
328
|
+
end
|
|
329
|
+
|
|
330
|
+
type payment_method_alfabank = { login: String }
|
|
331
|
+
|
|
332
|
+
class PaymentMethodAlfabank < Yoomoney::Models::PaymentMethod
|
|
333
|
+
def login: -> String?
|
|
334
|
+
|
|
335
|
+
def login=: (String _) -> String
|
|
336
|
+
|
|
337
|
+
def initialize: (?login: String) -> void
|
|
338
|
+
|
|
339
|
+
def to_hash: -> { login: String }
|
|
340
|
+
end
|
|
341
|
+
|
|
342
|
+
type payment_method_sberbank = { phone: String }
|
|
343
|
+
|
|
344
|
+
class PaymentMethodSberbank < Yoomoney::Models::PaymentMethod
|
|
345
|
+
def phone: -> String?
|
|
346
|
+
|
|
347
|
+
def phone=: (String _) -> String
|
|
348
|
+
|
|
349
|
+
def initialize: (?phone: String) -> void
|
|
350
|
+
|
|
351
|
+
def to_hash: -> { phone: String }
|
|
352
|
+
end
|
|
353
|
+
|
|
354
|
+
type payment_method_yoo_money = { account_number: String }
|
|
355
|
+
|
|
356
|
+
class PaymentMethodYooMoney < Yoomoney::Models::PaymentMethod
|
|
357
|
+
def account_number: -> String?
|
|
358
|
+
|
|
359
|
+
def account_number=: (String _) -> String
|
|
360
|
+
|
|
361
|
+
def initialize: (?account_number: String) -> void
|
|
362
|
+
|
|
363
|
+
def to_hash: -> { account_number: String }
|
|
364
|
+
end
|
|
365
|
+
|
|
366
|
+
type payment_method_mobile_balance = { phone: String }
|
|
367
|
+
|
|
368
|
+
class PaymentMethodMobileBalance < Yoomoney::Models::PaymentMethod
|
|
369
|
+
def phone: -> String?
|
|
370
|
+
|
|
371
|
+
def phone=: (String _) -> String
|
|
372
|
+
|
|
373
|
+
def initialize: (?phone: String) -> void
|
|
374
|
+
|
|
375
|
+
def to_hash: -> { phone: String }
|
|
376
|
+
end
|
|
377
|
+
|
|
378
|
+
type payment_method_b2b_sberbank =
|
|
379
|
+
{
|
|
380
|
+
payer_bank_details: Yoomoney::Payment::PaymentMethod::PaymentMethodB2bSberbank::PayerBankDetails,
|
|
381
|
+
payment_purpose: String,
|
|
382
|
+
vat_data: Yoomoney::B2bSberbankVatData
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
class PaymentMethodB2bSberbank < Yoomoney::Models::PaymentMethod
|
|
386
|
+
def payer_bank_details: -> Yoomoney::Payment::PaymentMethod::PaymentMethodB2bSberbank::PayerBankDetails?
|
|
387
|
+
|
|
388
|
+
def payer_bank_details=: (
|
|
389
|
+
Yoomoney::Payment::PaymentMethod::PaymentMethodB2bSberbank::PayerBankDetails _
|
|
390
|
+
) -> Yoomoney::Payment::PaymentMethod::PaymentMethodB2bSberbank::PayerBankDetails
|
|
391
|
+
|
|
392
|
+
def payment_purpose: -> String?
|
|
393
|
+
|
|
394
|
+
def payment_purpose=: (String _) -> String
|
|
395
|
+
|
|
396
|
+
def vat_data: -> Yoomoney::B2bSberbankVatData?
|
|
397
|
+
|
|
398
|
+
def vat_data=: (
|
|
399
|
+
Yoomoney::B2bSberbankVatData _
|
|
400
|
+
) -> Yoomoney::B2bSberbankVatData
|
|
401
|
+
|
|
402
|
+
def initialize: (
|
|
403
|
+
?payer_bank_details: Yoomoney::Payment::PaymentMethod::PaymentMethodB2bSberbank::PayerBankDetails,
|
|
404
|
+
?payment_purpose: String,
|
|
405
|
+
?vat_data: Yoomoney::B2bSberbankVatData
|
|
406
|
+
) -> void
|
|
407
|
+
|
|
408
|
+
def to_hash: -> {
|
|
409
|
+
payer_bank_details: Yoomoney::Payment::PaymentMethod::PaymentMethodB2bSberbank::PayerBankDetails,
|
|
410
|
+
payment_purpose: String,
|
|
411
|
+
vat_data: Yoomoney::B2bSberbankVatData
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
type payer_bank_details =
|
|
415
|
+
{
|
|
416
|
+
account: String,
|
|
417
|
+
address: String,
|
|
418
|
+
bank_bik: String,
|
|
419
|
+
bank_branch: String,
|
|
420
|
+
bank_name: String,
|
|
421
|
+
full_name: String,
|
|
422
|
+
inn: String,
|
|
423
|
+
short_name: String,
|
|
424
|
+
kpp: String
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
class PayerBankDetails < Yoomoney::Internal::Type::BaseModel
|
|
428
|
+
attr_accessor account: String
|
|
429
|
+
|
|
430
|
+
attr_accessor address: String
|
|
431
|
+
|
|
432
|
+
attr_accessor bank_bik: String
|
|
433
|
+
|
|
434
|
+
attr_accessor bank_branch: String
|
|
435
|
+
|
|
436
|
+
attr_accessor bank_name: String
|
|
437
|
+
|
|
438
|
+
attr_accessor full_name: String
|
|
439
|
+
|
|
440
|
+
attr_accessor inn: String
|
|
441
|
+
|
|
442
|
+
attr_accessor short_name: String
|
|
443
|
+
|
|
444
|
+
attr_reader kpp: String?
|
|
445
|
+
|
|
446
|
+
def kpp=: (String) -> String
|
|
447
|
+
|
|
448
|
+
def initialize: (
|
|
449
|
+
account: String,
|
|
450
|
+
address: String,
|
|
451
|
+
bank_bik: String,
|
|
452
|
+
bank_branch: String,
|
|
453
|
+
bank_name: String,
|
|
454
|
+
full_name: String,
|
|
455
|
+
inn: String,
|
|
456
|
+
short_name: String,
|
|
457
|
+
?kpp: String
|
|
458
|
+
) -> void
|
|
459
|
+
|
|
460
|
+
def to_hash: -> {
|
|
461
|
+
account: String,
|
|
462
|
+
address: String,
|
|
463
|
+
bank_bik: String,
|
|
464
|
+
bank_branch: String,
|
|
465
|
+
bank_name: String,
|
|
466
|
+
full_name: String,
|
|
467
|
+
inn: String,
|
|
468
|
+
short_name: String,
|
|
469
|
+
kpp: String
|
|
470
|
+
}
|
|
471
|
+
end
|
|
472
|
+
end
|
|
473
|
+
|
|
474
|
+
type payment_method_sbp =
|
|
475
|
+
{
|
|
476
|
+
payer_bank_details: Yoomoney::Payment::PaymentMethod::PaymentMethodSbp::PayerBankDetails,
|
|
477
|
+
sbp_operation_id: String
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
class PaymentMethodSbp < Yoomoney::Models::PaymentMethod
|
|
481
|
+
def payer_bank_details: -> Yoomoney::Payment::PaymentMethod::PaymentMethodSbp::PayerBankDetails?
|
|
482
|
+
|
|
483
|
+
def payer_bank_details=: (
|
|
484
|
+
Yoomoney::Payment::PaymentMethod::PaymentMethodSbp::PayerBankDetails _
|
|
485
|
+
) -> Yoomoney::Payment::PaymentMethod::PaymentMethodSbp::PayerBankDetails
|
|
486
|
+
|
|
487
|
+
def sbp_operation_id: -> String?
|
|
488
|
+
|
|
489
|
+
def sbp_operation_id=: (String _) -> String
|
|
490
|
+
|
|
491
|
+
def initialize: (
|
|
492
|
+
?payer_bank_details: Yoomoney::Payment::PaymentMethod::PaymentMethodSbp::PayerBankDetails,
|
|
493
|
+
?sbp_operation_id: String
|
|
494
|
+
) -> void
|
|
495
|
+
|
|
496
|
+
def to_hash: -> {
|
|
497
|
+
payer_bank_details: Yoomoney::Payment::PaymentMethod::PaymentMethodSbp::PayerBankDetails,
|
|
498
|
+
sbp_operation_id: String
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
type payer_bank_details = { bank_id: String, bic: String }
|
|
502
|
+
|
|
503
|
+
class PayerBankDetails < Yoomoney::Internal::Type::BaseModel
|
|
504
|
+
attr_accessor bank_id: String
|
|
505
|
+
|
|
506
|
+
attr_accessor bic: String
|
|
507
|
+
|
|
508
|
+
def initialize: (bank_id: String, bic: String) -> void
|
|
509
|
+
|
|
510
|
+
def to_hash: -> { bank_id: String, bic: String }
|
|
511
|
+
end
|
|
512
|
+
end
|
|
513
|
+
|
|
514
|
+
type payment_method_electronic_certificate =
|
|
515
|
+
{
|
|
516
|
+
articles: ::Array[Yoomoney::Payment::PaymentMethod::PaymentMethodElectronicCertificate::Article],
|
|
517
|
+
electronic_certificate: Yoomoney::Payment::PaymentMethod::PaymentMethodElectronicCertificate::ElectronicCertificate
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
class PaymentMethodElectronicCertificate < Yoomoney::Models::PaymentMethod
|
|
521
|
+
def articles: -> ::Array[Yoomoney::Payment::PaymentMethod::PaymentMethodElectronicCertificate::Article]?
|
|
522
|
+
|
|
523
|
+
def articles=: (
|
|
524
|
+
::Array[Yoomoney::Payment::PaymentMethod::PaymentMethodElectronicCertificate::Article] _
|
|
525
|
+
) -> ::Array[Yoomoney::Payment::PaymentMethod::PaymentMethodElectronicCertificate::Article]
|
|
526
|
+
|
|
527
|
+
def electronic_certificate: -> Yoomoney::Payment::PaymentMethod::PaymentMethodElectronicCertificate::ElectronicCertificate?
|
|
528
|
+
|
|
529
|
+
def electronic_certificate=: (
|
|
530
|
+
Yoomoney::Payment::PaymentMethod::PaymentMethodElectronicCertificate::ElectronicCertificate _
|
|
531
|
+
) -> Yoomoney::Payment::PaymentMethod::PaymentMethodElectronicCertificate::ElectronicCertificate
|
|
532
|
+
|
|
533
|
+
def initialize: (
|
|
534
|
+
?articles: ::Array[Yoomoney::Payment::PaymentMethod::PaymentMethodElectronicCertificate::Article],
|
|
535
|
+
?electronic_certificate: Yoomoney::Payment::PaymentMethod::PaymentMethodElectronicCertificate::ElectronicCertificate
|
|
536
|
+
) -> void
|
|
537
|
+
|
|
538
|
+
def to_hash: -> {
|
|
539
|
+
articles: ::Array[Yoomoney::Payment::PaymentMethod::PaymentMethodElectronicCertificate::Article],
|
|
540
|
+
electronic_certificate: Yoomoney::Payment::PaymentMethod::PaymentMethodElectronicCertificate::ElectronicCertificate
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
type article =
|
|
544
|
+
{
|
|
545
|
+
article_number: Integer,
|
|
546
|
+
certificates: ::Array[Yoomoney::Payment::PaymentMethod::PaymentMethodElectronicCertificate::Article::Certificate],
|
|
547
|
+
tru_code: String,
|
|
548
|
+
article_code: String
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
class Article < Yoomoney::Internal::Type::BaseModel
|
|
552
|
+
attr_accessor article_number: Integer
|
|
553
|
+
|
|
554
|
+
attr_accessor certificates: ::Array[Yoomoney::Payment::PaymentMethod::PaymentMethodElectronicCertificate::Article::Certificate]
|
|
555
|
+
|
|
556
|
+
attr_accessor tru_code: String
|
|
557
|
+
|
|
558
|
+
attr_reader article_code: String?
|
|
559
|
+
|
|
560
|
+
def article_code=: (String) -> String
|
|
561
|
+
|
|
562
|
+
def initialize: (
|
|
563
|
+
article_number: Integer,
|
|
564
|
+
certificates: ::Array[Yoomoney::Payment::PaymentMethod::PaymentMethodElectronicCertificate::Article::Certificate],
|
|
565
|
+
tru_code: String,
|
|
566
|
+
?article_code: String
|
|
567
|
+
) -> void
|
|
568
|
+
|
|
569
|
+
def to_hash: -> {
|
|
570
|
+
article_number: Integer,
|
|
571
|
+
certificates: ::Array[Yoomoney::Payment::PaymentMethod::PaymentMethodElectronicCertificate::Article::Certificate],
|
|
572
|
+
tru_code: String,
|
|
573
|
+
article_code: String
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
type certificate =
|
|
577
|
+
{
|
|
578
|
+
applied_compensation: Yoomoney::MonetaryAmount,
|
|
579
|
+
available_compensation: Yoomoney::MonetaryAmount,
|
|
580
|
+
certificate_id: String,
|
|
581
|
+
tru_quantity: Integer
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
class Certificate < Yoomoney::Internal::Type::BaseModel
|
|
585
|
+
attr_accessor applied_compensation: Yoomoney::MonetaryAmount
|
|
586
|
+
|
|
587
|
+
attr_accessor available_compensation: Yoomoney::MonetaryAmount
|
|
588
|
+
|
|
589
|
+
attr_accessor certificate_id: String
|
|
590
|
+
|
|
591
|
+
attr_accessor tru_quantity: Integer
|
|
592
|
+
|
|
593
|
+
def initialize: (
|
|
594
|
+
applied_compensation: Yoomoney::MonetaryAmount,
|
|
595
|
+
available_compensation: Yoomoney::MonetaryAmount,
|
|
596
|
+
certificate_id: String,
|
|
597
|
+
tru_quantity: Integer
|
|
598
|
+
) -> void
|
|
599
|
+
|
|
600
|
+
def to_hash: -> {
|
|
601
|
+
applied_compensation: Yoomoney::MonetaryAmount,
|
|
602
|
+
available_compensation: Yoomoney::MonetaryAmount,
|
|
603
|
+
certificate_id: String,
|
|
604
|
+
tru_quantity: Integer
|
|
605
|
+
}
|
|
606
|
+
end
|
|
607
|
+
end
|
|
608
|
+
|
|
609
|
+
type electronic_certificate =
|
|
610
|
+
{ amount: Yoomoney::MonetaryAmount, basket_id: String }
|
|
611
|
+
|
|
612
|
+
class ElectronicCertificate < Yoomoney::Internal::Type::BaseModel
|
|
613
|
+
attr_accessor amount: Yoomoney::MonetaryAmount
|
|
614
|
+
|
|
615
|
+
attr_accessor basket_id: String
|
|
616
|
+
|
|
617
|
+
def initialize: (
|
|
618
|
+
amount: Yoomoney::MonetaryAmount,
|
|
619
|
+
basket_id: String
|
|
620
|
+
) -> void
|
|
621
|
+
|
|
622
|
+
def to_hash: -> {
|
|
623
|
+
amount: Yoomoney::MonetaryAmount,
|
|
624
|
+
basket_id: String
|
|
625
|
+
}
|
|
626
|
+
end
|
|
627
|
+
end
|
|
628
|
+
|
|
629
|
+
def self?.variants: -> ::Array[Yoomoney::Models::Payment::payment_method]
|
|
630
|
+
end
|
|
631
|
+
|
|
632
|
+
type transfer =
|
|
633
|
+
{
|
|
634
|
+
account_id: String,
|
|
635
|
+
amount: Yoomoney::MonetaryAmount,
|
|
636
|
+
status: Yoomoney::Models::Payment::Transfer::status,
|
|
637
|
+
description: String,
|
|
638
|
+
metadata: ::Hash[Symbol, String],
|
|
639
|
+
platform_fee_amount: Yoomoney::MonetaryAmount
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
class Transfer < Yoomoney::Internal::Type::BaseModel
|
|
643
|
+
attr_accessor account_id: String
|
|
644
|
+
|
|
645
|
+
attr_accessor amount: Yoomoney::MonetaryAmount
|
|
646
|
+
|
|
647
|
+
attr_accessor status: Yoomoney::Models::Payment::Transfer::status
|
|
648
|
+
|
|
649
|
+
attr_reader description: String?
|
|
650
|
+
|
|
651
|
+
def description=: (String) -> String
|
|
652
|
+
|
|
653
|
+
attr_reader metadata: ::Hash[Symbol, String]?
|
|
654
|
+
|
|
655
|
+
def metadata=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
|
|
656
|
+
|
|
657
|
+
attr_reader platform_fee_amount: Yoomoney::MonetaryAmount?
|
|
658
|
+
|
|
659
|
+
def platform_fee_amount=: (
|
|
660
|
+
Yoomoney::MonetaryAmount
|
|
661
|
+
) -> Yoomoney::MonetaryAmount
|
|
662
|
+
|
|
663
|
+
def initialize: (
|
|
664
|
+
account_id: String,
|
|
665
|
+
amount: Yoomoney::MonetaryAmount,
|
|
666
|
+
status: Yoomoney::Models::Payment::Transfer::status,
|
|
667
|
+
?description: String,
|
|
668
|
+
?metadata: ::Hash[Symbol, String],
|
|
669
|
+
?platform_fee_amount: Yoomoney::MonetaryAmount
|
|
670
|
+
) -> void
|
|
671
|
+
|
|
672
|
+
def to_hash: -> {
|
|
673
|
+
account_id: String,
|
|
674
|
+
amount: Yoomoney::MonetaryAmount,
|
|
675
|
+
status: Yoomoney::Models::Payment::Transfer::status,
|
|
676
|
+
description: String,
|
|
677
|
+
metadata: ::Hash[Symbol, String],
|
|
678
|
+
platform_fee_amount: Yoomoney::MonetaryAmount
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
type status = :pending | :waiting_for_capture | :succeeded | :canceled
|
|
682
|
+
|
|
683
|
+
module Status
|
|
684
|
+
extend Yoomoney::Internal::Type::Enum
|
|
685
|
+
|
|
686
|
+
PENDING: :pending
|
|
687
|
+
WAITING_FOR_CAPTURE: :waiting_for_capture
|
|
688
|
+
SUCCEEDED: :succeeded
|
|
689
|
+
CANCELED: :canceled
|
|
690
|
+
|
|
691
|
+
def self?.values: -> ::Array[Yoomoney::Models::Payment::Transfer::status]
|
|
692
|
+
end
|
|
693
|
+
end
|
|
694
|
+
end
|
|
695
|
+
end
|
|
696
|
+
end
|