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,23 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type payment_cancel_params =
|
|
4
|
+
{ idempotence_key: String } & Yoomoney::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class PaymentCancelParams < Yoomoney::Internal::Type::BaseModel
|
|
7
|
+
extend Yoomoney::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Yoomoney::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
attr_accessor idempotence_key: String
|
|
11
|
+
|
|
12
|
+
def initialize: (
|
|
13
|
+
idempotence_key: String,
|
|
14
|
+
?request_options: Yoomoney::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
idempotence_key: String,
|
|
19
|
+
request_options: Yoomoney::RequestOptions
|
|
20
|
+
}
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type payment_capture_params =
|
|
4
|
+
{
|
|
5
|
+
idempotence_key: String,
|
|
6
|
+
airline: Yoomoney::Airline,
|
|
7
|
+
amount: Yoomoney::MonetaryAmount,
|
|
8
|
+
deal: Yoomoney::PaymentDealInfo,
|
|
9
|
+
receipt: Yoomoney::ReceiptData,
|
|
10
|
+
transfers: ::Array[Yoomoney::TransferData]
|
|
11
|
+
}
|
|
12
|
+
& Yoomoney::Internal::Type::request_parameters
|
|
13
|
+
|
|
14
|
+
class PaymentCaptureParams < Yoomoney::Internal::Type::BaseModel
|
|
15
|
+
extend Yoomoney::Internal::Type::RequestParameters::Converter
|
|
16
|
+
include Yoomoney::Internal::Type::RequestParameters
|
|
17
|
+
|
|
18
|
+
attr_accessor idempotence_key: String
|
|
19
|
+
|
|
20
|
+
attr_reader airline: Yoomoney::Airline?
|
|
21
|
+
|
|
22
|
+
def airline=: (Yoomoney::Airline) -> Yoomoney::Airline
|
|
23
|
+
|
|
24
|
+
attr_reader amount: Yoomoney::MonetaryAmount?
|
|
25
|
+
|
|
26
|
+
def amount=: (Yoomoney::MonetaryAmount) -> Yoomoney::MonetaryAmount
|
|
27
|
+
|
|
28
|
+
attr_reader deal: Yoomoney::PaymentDealInfo?
|
|
29
|
+
|
|
30
|
+
def deal=: (Yoomoney::PaymentDealInfo) -> Yoomoney::PaymentDealInfo
|
|
31
|
+
|
|
32
|
+
attr_reader receipt: Yoomoney::ReceiptData?
|
|
33
|
+
|
|
34
|
+
def receipt=: (Yoomoney::ReceiptData) -> Yoomoney::ReceiptData
|
|
35
|
+
|
|
36
|
+
attr_reader transfers: ::Array[Yoomoney::TransferData]?
|
|
37
|
+
|
|
38
|
+
def transfers=: (
|
|
39
|
+
::Array[Yoomoney::TransferData]
|
|
40
|
+
) -> ::Array[Yoomoney::TransferData]
|
|
41
|
+
|
|
42
|
+
def initialize: (
|
|
43
|
+
idempotence_key: String,
|
|
44
|
+
?airline: Yoomoney::Airline,
|
|
45
|
+
?amount: Yoomoney::MonetaryAmount,
|
|
46
|
+
?deal: Yoomoney::PaymentDealInfo,
|
|
47
|
+
?receipt: Yoomoney::ReceiptData,
|
|
48
|
+
?transfers: ::Array[Yoomoney::TransferData],
|
|
49
|
+
?request_options: Yoomoney::request_opts
|
|
50
|
+
) -> void
|
|
51
|
+
|
|
52
|
+
def to_hash: -> {
|
|
53
|
+
idempotence_key: String,
|
|
54
|
+
airline: Yoomoney::Airline,
|
|
55
|
+
amount: Yoomoney::MonetaryAmount,
|
|
56
|
+
deal: Yoomoney::PaymentDealInfo,
|
|
57
|
+
receipt: Yoomoney::ReceiptData,
|
|
58
|
+
transfers: ::Array[Yoomoney::TransferData],
|
|
59
|
+
request_options: Yoomoney::RequestOptions
|
|
60
|
+
}
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
@@ -0,0 +1,571 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type payment_create_params =
|
|
4
|
+
{
|
|
5
|
+
amount: Yoomoney::MonetaryAmount,
|
|
6
|
+
idempotence_key: String,
|
|
7
|
+
airline: Yoomoney::Airline,
|
|
8
|
+
capture: bool,
|
|
9
|
+
client_ip: String,
|
|
10
|
+
confirmation: Yoomoney::Models::PaymentCreateParams::confirmation,
|
|
11
|
+
deal: Yoomoney::PaymentDealInfo,
|
|
12
|
+
description: String,
|
|
13
|
+
merchant_customer_id: String,
|
|
14
|
+
metadata: ::Hash[Symbol, String],
|
|
15
|
+
payment_method_data: Yoomoney::Models::PaymentCreateParams::payment_method_data,
|
|
16
|
+
payment_method_id: String,
|
|
17
|
+
payment_order: Yoomoney::PaymentCreateParams::PaymentOrder,
|
|
18
|
+
payment_token: String,
|
|
19
|
+
receipt: Yoomoney::ReceiptData,
|
|
20
|
+
receiver: Yoomoney::Models::PaymentCreateParams::receiver,
|
|
21
|
+
recipient: Yoomoney::Recipient,
|
|
22
|
+
save_payment_method: bool,
|
|
23
|
+
statements: ::Array[Yoomoney::PaymentCreateParams::Statement],
|
|
24
|
+
transfers: ::Array[Yoomoney::PaymentCreateParams::Transfer]
|
|
25
|
+
}
|
|
26
|
+
& Yoomoney::Internal::Type::request_parameters
|
|
27
|
+
|
|
28
|
+
class PaymentCreateParams < Yoomoney::Internal::Type::BaseModel
|
|
29
|
+
extend Yoomoney::Internal::Type::RequestParameters::Converter
|
|
30
|
+
include Yoomoney::Internal::Type::RequestParameters
|
|
31
|
+
|
|
32
|
+
attr_accessor amount: Yoomoney::MonetaryAmount
|
|
33
|
+
|
|
34
|
+
attr_accessor idempotence_key: String
|
|
35
|
+
|
|
36
|
+
attr_reader airline: Yoomoney::Airline?
|
|
37
|
+
|
|
38
|
+
def airline=: (Yoomoney::Airline) -> Yoomoney::Airline
|
|
39
|
+
|
|
40
|
+
attr_reader capture: bool?
|
|
41
|
+
|
|
42
|
+
def capture=: (bool) -> bool
|
|
43
|
+
|
|
44
|
+
attr_reader client_ip: String?
|
|
45
|
+
|
|
46
|
+
def client_ip=: (String) -> String
|
|
47
|
+
|
|
48
|
+
attr_reader confirmation: Yoomoney::Models::PaymentCreateParams::confirmation?
|
|
49
|
+
|
|
50
|
+
def confirmation=: (
|
|
51
|
+
Yoomoney::Models::PaymentCreateParams::confirmation
|
|
52
|
+
) -> Yoomoney::Models::PaymentCreateParams::confirmation
|
|
53
|
+
|
|
54
|
+
attr_reader deal: Yoomoney::PaymentDealInfo?
|
|
55
|
+
|
|
56
|
+
def deal=: (Yoomoney::PaymentDealInfo) -> Yoomoney::PaymentDealInfo
|
|
57
|
+
|
|
58
|
+
attr_reader description: String?
|
|
59
|
+
|
|
60
|
+
def description=: (String) -> String
|
|
61
|
+
|
|
62
|
+
attr_reader merchant_customer_id: String?
|
|
63
|
+
|
|
64
|
+
def merchant_customer_id=: (String) -> String
|
|
65
|
+
|
|
66
|
+
attr_reader metadata: ::Hash[Symbol, String]?
|
|
67
|
+
|
|
68
|
+
def metadata=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
|
|
69
|
+
|
|
70
|
+
attr_reader payment_method_data: Yoomoney::Models::PaymentCreateParams::payment_method_data?
|
|
71
|
+
|
|
72
|
+
def payment_method_data=: (
|
|
73
|
+
Yoomoney::Models::PaymentCreateParams::payment_method_data
|
|
74
|
+
) -> Yoomoney::Models::PaymentCreateParams::payment_method_data
|
|
75
|
+
|
|
76
|
+
attr_reader payment_method_id: String?
|
|
77
|
+
|
|
78
|
+
def payment_method_id=: (String) -> String
|
|
79
|
+
|
|
80
|
+
attr_reader payment_order: Yoomoney::PaymentCreateParams::PaymentOrder?
|
|
81
|
+
|
|
82
|
+
def payment_order=: (
|
|
83
|
+
Yoomoney::PaymentCreateParams::PaymentOrder
|
|
84
|
+
) -> Yoomoney::PaymentCreateParams::PaymentOrder
|
|
85
|
+
|
|
86
|
+
attr_reader payment_token: String?
|
|
87
|
+
|
|
88
|
+
def payment_token=: (String) -> String
|
|
89
|
+
|
|
90
|
+
attr_reader receipt: Yoomoney::ReceiptData?
|
|
91
|
+
|
|
92
|
+
def receipt=: (Yoomoney::ReceiptData) -> Yoomoney::ReceiptData
|
|
93
|
+
|
|
94
|
+
attr_reader receiver: Yoomoney::Models::PaymentCreateParams::receiver?
|
|
95
|
+
|
|
96
|
+
def receiver=: (
|
|
97
|
+
Yoomoney::Models::PaymentCreateParams::receiver
|
|
98
|
+
) -> Yoomoney::Models::PaymentCreateParams::receiver
|
|
99
|
+
|
|
100
|
+
attr_reader recipient: Yoomoney::Recipient?
|
|
101
|
+
|
|
102
|
+
def recipient=: (Yoomoney::Recipient) -> Yoomoney::Recipient
|
|
103
|
+
|
|
104
|
+
attr_reader save_payment_method: bool?
|
|
105
|
+
|
|
106
|
+
def save_payment_method=: (bool) -> bool
|
|
107
|
+
|
|
108
|
+
attr_reader statements: ::Array[Yoomoney::PaymentCreateParams::Statement]?
|
|
109
|
+
|
|
110
|
+
def statements=: (
|
|
111
|
+
::Array[Yoomoney::PaymentCreateParams::Statement]
|
|
112
|
+
) -> ::Array[Yoomoney::PaymentCreateParams::Statement]
|
|
113
|
+
|
|
114
|
+
attr_reader transfers: ::Array[Yoomoney::PaymentCreateParams::Transfer]?
|
|
115
|
+
|
|
116
|
+
def transfers=: (
|
|
117
|
+
::Array[Yoomoney::PaymentCreateParams::Transfer]
|
|
118
|
+
) -> ::Array[Yoomoney::PaymentCreateParams::Transfer]
|
|
119
|
+
|
|
120
|
+
def initialize: (
|
|
121
|
+
amount: Yoomoney::MonetaryAmount,
|
|
122
|
+
idempotence_key: String,
|
|
123
|
+
?airline: Yoomoney::Airline,
|
|
124
|
+
?capture: bool,
|
|
125
|
+
?client_ip: String,
|
|
126
|
+
?confirmation: Yoomoney::Models::PaymentCreateParams::confirmation,
|
|
127
|
+
?deal: Yoomoney::PaymentDealInfo,
|
|
128
|
+
?description: String,
|
|
129
|
+
?merchant_customer_id: String,
|
|
130
|
+
?metadata: ::Hash[Symbol, String],
|
|
131
|
+
?payment_method_data: Yoomoney::Models::PaymentCreateParams::payment_method_data,
|
|
132
|
+
?payment_method_id: String,
|
|
133
|
+
?payment_order: Yoomoney::PaymentCreateParams::PaymentOrder,
|
|
134
|
+
?payment_token: String,
|
|
135
|
+
?receipt: Yoomoney::ReceiptData,
|
|
136
|
+
?receiver: Yoomoney::Models::PaymentCreateParams::receiver,
|
|
137
|
+
?recipient: Yoomoney::Recipient,
|
|
138
|
+
?save_payment_method: bool,
|
|
139
|
+
?statements: ::Array[Yoomoney::PaymentCreateParams::Statement],
|
|
140
|
+
?transfers: ::Array[Yoomoney::PaymentCreateParams::Transfer],
|
|
141
|
+
?request_options: Yoomoney::request_opts
|
|
142
|
+
) -> void
|
|
143
|
+
|
|
144
|
+
def to_hash: -> {
|
|
145
|
+
amount: Yoomoney::MonetaryAmount,
|
|
146
|
+
idempotence_key: String,
|
|
147
|
+
airline: Yoomoney::Airline,
|
|
148
|
+
capture: bool,
|
|
149
|
+
client_ip: String,
|
|
150
|
+
confirmation: Yoomoney::Models::PaymentCreateParams::confirmation,
|
|
151
|
+
deal: Yoomoney::PaymentDealInfo,
|
|
152
|
+
description: String,
|
|
153
|
+
merchant_customer_id: String,
|
|
154
|
+
metadata: ::Hash[Symbol, String],
|
|
155
|
+
payment_method_data: Yoomoney::Models::PaymentCreateParams::payment_method_data,
|
|
156
|
+
payment_method_id: String,
|
|
157
|
+
payment_order: Yoomoney::PaymentCreateParams::PaymentOrder,
|
|
158
|
+
payment_token: String,
|
|
159
|
+
receipt: Yoomoney::ReceiptData,
|
|
160
|
+
receiver: Yoomoney::Models::PaymentCreateParams::receiver,
|
|
161
|
+
recipient: Yoomoney::Recipient,
|
|
162
|
+
save_payment_method: bool,
|
|
163
|
+
statements: ::Array[Yoomoney::PaymentCreateParams::Statement],
|
|
164
|
+
transfers: ::Array[Yoomoney::PaymentCreateParams::Transfer],
|
|
165
|
+
request_options: Yoomoney::RequestOptions
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
type confirmation =
|
|
169
|
+
Yoomoney::PaymentCreateParams::Confirmation::ConfirmationDataRedirect
|
|
170
|
+
| Yoomoney::PaymentCreateParams::Confirmation::ConfirmationDataExternal
|
|
171
|
+
| Yoomoney::ConfirmationData
|
|
172
|
+
| Yoomoney::PaymentCreateParams::Confirmation::ConfirmationDataEmbedded
|
|
173
|
+
| Yoomoney::PaymentCreateParams::Confirmation::ConfirmationDataMobileApplication
|
|
174
|
+
|
|
175
|
+
module Confirmation
|
|
176
|
+
extend Yoomoney::Internal::Type::Union
|
|
177
|
+
|
|
178
|
+
type confirmation_data_redirect = { return_url: String, enforce: bool }
|
|
179
|
+
|
|
180
|
+
class ConfirmationDataRedirect < Yoomoney::Models::ConfirmationData
|
|
181
|
+
def return_url: -> String
|
|
182
|
+
|
|
183
|
+
def return_url=: (String _) -> String
|
|
184
|
+
|
|
185
|
+
def enforce: -> bool?
|
|
186
|
+
|
|
187
|
+
def enforce=: (bool _) -> bool
|
|
188
|
+
|
|
189
|
+
def initialize: (return_url: String, ?enforce: bool) -> void
|
|
190
|
+
|
|
191
|
+
def to_hash: -> { return_url: String, enforce: bool }
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
type confirmation_data_external = { locale: Yoomoney::Models::locale }
|
|
195
|
+
|
|
196
|
+
class ConfirmationDataExternal < Yoomoney::Models::ConfirmationData
|
|
197
|
+
def locale: -> Yoomoney::Models::locale?
|
|
198
|
+
|
|
199
|
+
def locale=: (Yoomoney::Models::locale _) -> Yoomoney::Models::locale
|
|
200
|
+
|
|
201
|
+
def initialize: (?locale: Yoomoney::Models::locale) -> void
|
|
202
|
+
|
|
203
|
+
def to_hash: -> { locale: Yoomoney::Models::locale }
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
type confirmation_data_embedded = { locale: Yoomoney::Models::locale }
|
|
207
|
+
|
|
208
|
+
class ConfirmationDataEmbedded < Yoomoney::Models::ConfirmationData
|
|
209
|
+
def locale: -> Yoomoney::Models::locale?
|
|
210
|
+
|
|
211
|
+
def locale=: (Yoomoney::Models::locale _) -> Yoomoney::Models::locale
|
|
212
|
+
|
|
213
|
+
def initialize: (?locale: Yoomoney::Models::locale) -> void
|
|
214
|
+
|
|
215
|
+
def to_hash: -> { locale: Yoomoney::Models::locale }
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
type confirmation_data_mobile_application = { return_url: String }
|
|
219
|
+
|
|
220
|
+
class ConfirmationDataMobileApplication < Yoomoney::Models::ConfirmationData
|
|
221
|
+
def return_url: -> String
|
|
222
|
+
|
|
223
|
+
def return_url=: (String _) -> String
|
|
224
|
+
|
|
225
|
+
def initialize: (return_url: String) -> void
|
|
226
|
+
|
|
227
|
+
def to_hash: -> { return_url: String }
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
def self?.variants: -> ::Array[Yoomoney::Models::PaymentCreateParams::confirmation]
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
type payment_method_data =
|
|
234
|
+
Yoomoney::PaymentCreateParams::PaymentMethodData::PaymentMethodDataBankCard
|
|
235
|
+
| Yoomoney::PaymentCreateParams::PaymentMethodData::PaymentMethodDataCash
|
|
236
|
+
| Yoomoney::PaymentCreateParams::PaymentMethodData::PaymentMethodDataSberbank
|
|
237
|
+
| Yoomoney::PaymentMethodData
|
|
238
|
+
| Yoomoney::PaymentCreateParams::PaymentMethodData::PaymentMethodDataMobileBalance
|
|
239
|
+
| Yoomoney::PaymentCreateParams::PaymentMethodData::PaymentMethodDataB2bSberbank
|
|
240
|
+
| Yoomoney::PaymentCreateParams::PaymentMethodData::PaymentMethodDataElectronicCertificate
|
|
241
|
+
|
|
242
|
+
module PaymentMethodData
|
|
243
|
+
extend Yoomoney::Internal::Type::Union
|
|
244
|
+
|
|
245
|
+
type payment_method_data_bank_card =
|
|
246
|
+
{ card: Yoomoney::CardRequestDataWithCsc }
|
|
247
|
+
|
|
248
|
+
class PaymentMethodDataBankCard < Yoomoney::Models::PaymentMethodData
|
|
249
|
+
def card: -> Yoomoney::CardRequestDataWithCsc?
|
|
250
|
+
|
|
251
|
+
def card=: (
|
|
252
|
+
Yoomoney::CardRequestDataWithCsc _
|
|
253
|
+
) -> Yoomoney::CardRequestDataWithCsc
|
|
254
|
+
|
|
255
|
+
def initialize: (?card: Yoomoney::CardRequestDataWithCsc) -> void
|
|
256
|
+
|
|
257
|
+
def to_hash: -> { card: Yoomoney::CardRequestDataWithCsc }
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
type payment_method_data_cash = { phone: String }
|
|
261
|
+
|
|
262
|
+
class PaymentMethodDataCash < Yoomoney::Models::PaymentMethodData
|
|
263
|
+
def phone: -> String?
|
|
264
|
+
|
|
265
|
+
def phone=: (String _) -> String
|
|
266
|
+
|
|
267
|
+
def initialize: (?phone: String) -> void
|
|
268
|
+
|
|
269
|
+
def to_hash: -> { phone: String }
|
|
270
|
+
end
|
|
271
|
+
|
|
272
|
+
type payment_method_data_sberbank = { phone: String }
|
|
273
|
+
|
|
274
|
+
class PaymentMethodDataSberbank < Yoomoney::Models::PaymentMethodData
|
|
275
|
+
def phone: -> String?
|
|
276
|
+
|
|
277
|
+
def phone=: (String _) -> String
|
|
278
|
+
|
|
279
|
+
def initialize: (?phone: String) -> void
|
|
280
|
+
|
|
281
|
+
def to_hash: -> { phone: String }
|
|
282
|
+
end
|
|
283
|
+
|
|
284
|
+
type payment_method_data_mobile_balance = { phone: String }
|
|
285
|
+
|
|
286
|
+
class PaymentMethodDataMobileBalance < Yoomoney::Models::PaymentMethodData
|
|
287
|
+
def phone: -> String?
|
|
288
|
+
|
|
289
|
+
def phone=: (String _) -> String
|
|
290
|
+
|
|
291
|
+
def initialize: (?phone: String) -> void
|
|
292
|
+
|
|
293
|
+
def to_hash: -> { phone: String }
|
|
294
|
+
end
|
|
295
|
+
|
|
296
|
+
type payment_method_data_b2b_sberbank =
|
|
297
|
+
{
|
|
298
|
+
payment_purpose: String,
|
|
299
|
+
vat_data: Yoomoney::Models::PaymentCreateParams::PaymentMethodData::PaymentMethodDataB2bSberbank::vat_data
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
class PaymentMethodDataB2bSberbank < Yoomoney::Models::PaymentMethodData
|
|
303
|
+
def payment_purpose: -> String
|
|
304
|
+
|
|
305
|
+
def payment_purpose=: (String _) -> String
|
|
306
|
+
|
|
307
|
+
def vat_data: -> Yoomoney::Models::PaymentCreateParams::PaymentMethodData::PaymentMethodDataB2bSberbank::vat_data
|
|
308
|
+
|
|
309
|
+
def vat_data=: (
|
|
310
|
+
Yoomoney::Models::PaymentCreateParams::PaymentMethodData::PaymentMethodDataB2bSberbank::vat_data _
|
|
311
|
+
) -> Yoomoney::Models::PaymentCreateParams::PaymentMethodData::PaymentMethodDataB2bSberbank::vat_data
|
|
312
|
+
|
|
313
|
+
def initialize: (
|
|
314
|
+
payment_purpose: String,
|
|
315
|
+
vat_data: Yoomoney::Models::PaymentCreateParams::PaymentMethodData::PaymentMethodDataB2bSberbank::vat_data
|
|
316
|
+
) -> void
|
|
317
|
+
|
|
318
|
+
def to_hash: -> {
|
|
319
|
+
payment_purpose: String,
|
|
320
|
+
vat_data: Yoomoney::Models::PaymentCreateParams::PaymentMethodData::PaymentMethodDataB2bSberbank::vat_data
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
type vat_data =
|
|
324
|
+
Yoomoney::B2bSberbankCalculatedVatData
|
|
325
|
+
| Yoomoney::B2bSberbankUntaxedVatData
|
|
326
|
+
| Yoomoney::B2bSberbankMixedVatData
|
|
327
|
+
|
|
328
|
+
module VatData
|
|
329
|
+
extend Yoomoney::Internal::Type::Union
|
|
330
|
+
|
|
331
|
+
def self?.variants: -> ::Array[Yoomoney::Models::PaymentCreateParams::PaymentMethodData::PaymentMethodDataB2bSberbank::vat_data]
|
|
332
|
+
end
|
|
333
|
+
end
|
|
334
|
+
|
|
335
|
+
type payment_method_data_electronic_certificate =
|
|
336
|
+
{
|
|
337
|
+
articles: ::Array[Yoomoney::PaymentCreateParams::PaymentMethodData::PaymentMethodDataElectronicCertificate::Article],
|
|
338
|
+
electronic_certificate: Yoomoney::PaymentCreateParams::PaymentMethodData::PaymentMethodDataElectronicCertificate::ElectronicCertificate
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
class PaymentMethodDataElectronicCertificate < Yoomoney::Models::PaymentMethodData
|
|
342
|
+
def articles: -> ::Array[Yoomoney::PaymentCreateParams::PaymentMethodData::PaymentMethodDataElectronicCertificate::Article]?
|
|
343
|
+
|
|
344
|
+
def articles=: (
|
|
345
|
+
::Array[Yoomoney::PaymentCreateParams::PaymentMethodData::PaymentMethodDataElectronicCertificate::Article] _
|
|
346
|
+
) -> ::Array[Yoomoney::PaymentCreateParams::PaymentMethodData::PaymentMethodDataElectronicCertificate::Article]
|
|
347
|
+
|
|
348
|
+
def electronic_certificate: -> Yoomoney::PaymentCreateParams::PaymentMethodData::PaymentMethodDataElectronicCertificate::ElectronicCertificate?
|
|
349
|
+
|
|
350
|
+
def electronic_certificate=: (
|
|
351
|
+
Yoomoney::PaymentCreateParams::PaymentMethodData::PaymentMethodDataElectronicCertificate::ElectronicCertificate _
|
|
352
|
+
) -> Yoomoney::PaymentCreateParams::PaymentMethodData::PaymentMethodDataElectronicCertificate::ElectronicCertificate
|
|
353
|
+
|
|
354
|
+
def initialize: (
|
|
355
|
+
?articles: ::Array[Yoomoney::PaymentCreateParams::PaymentMethodData::PaymentMethodDataElectronicCertificate::Article],
|
|
356
|
+
?electronic_certificate: Yoomoney::PaymentCreateParams::PaymentMethodData::PaymentMethodDataElectronicCertificate::ElectronicCertificate
|
|
357
|
+
) -> void
|
|
358
|
+
|
|
359
|
+
def to_hash: -> {
|
|
360
|
+
articles: ::Array[Yoomoney::PaymentCreateParams::PaymentMethodData::PaymentMethodDataElectronicCertificate::Article],
|
|
361
|
+
electronic_certificate: Yoomoney::PaymentCreateParams::PaymentMethodData::PaymentMethodDataElectronicCertificate::ElectronicCertificate
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
type article =
|
|
365
|
+
{
|
|
366
|
+
article_name: String,
|
|
367
|
+
article_number: Integer,
|
|
368
|
+
price: Yoomoney::MonetaryAmount,
|
|
369
|
+
quantity: Integer,
|
|
370
|
+
tru_code: String,
|
|
371
|
+
article_code: String,
|
|
372
|
+
metadata: ::Hash[Symbol, String]
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
class Article < Yoomoney::Internal::Type::BaseModel
|
|
376
|
+
attr_accessor article_name: String
|
|
377
|
+
|
|
378
|
+
attr_accessor article_number: Integer
|
|
379
|
+
|
|
380
|
+
attr_accessor price: Yoomoney::MonetaryAmount
|
|
381
|
+
|
|
382
|
+
attr_accessor quantity: Integer
|
|
383
|
+
|
|
384
|
+
attr_accessor tru_code: String
|
|
385
|
+
|
|
386
|
+
attr_reader article_code: String?
|
|
387
|
+
|
|
388
|
+
def article_code=: (String) -> String
|
|
389
|
+
|
|
390
|
+
attr_reader metadata: ::Hash[Symbol, String]?
|
|
391
|
+
|
|
392
|
+
def metadata=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
|
|
393
|
+
|
|
394
|
+
def initialize: (
|
|
395
|
+
article_name: String,
|
|
396
|
+
article_number: Integer,
|
|
397
|
+
price: Yoomoney::MonetaryAmount,
|
|
398
|
+
quantity: Integer,
|
|
399
|
+
tru_code: String,
|
|
400
|
+
?article_code: String,
|
|
401
|
+
?metadata: ::Hash[Symbol, String]
|
|
402
|
+
) -> void
|
|
403
|
+
|
|
404
|
+
def to_hash: -> {
|
|
405
|
+
article_name: String,
|
|
406
|
+
article_number: Integer,
|
|
407
|
+
price: Yoomoney::MonetaryAmount,
|
|
408
|
+
quantity: Integer,
|
|
409
|
+
tru_code: String,
|
|
410
|
+
article_code: String,
|
|
411
|
+
metadata: ::Hash[Symbol, String]
|
|
412
|
+
}
|
|
413
|
+
end
|
|
414
|
+
|
|
415
|
+
type electronic_certificate =
|
|
416
|
+
{ amount: Yoomoney::MonetaryAmount, basket_id: String }
|
|
417
|
+
|
|
418
|
+
class ElectronicCertificate < Yoomoney::Internal::Type::BaseModel
|
|
419
|
+
attr_accessor amount: Yoomoney::MonetaryAmount
|
|
420
|
+
|
|
421
|
+
attr_accessor basket_id: String
|
|
422
|
+
|
|
423
|
+
def initialize: (
|
|
424
|
+
amount: Yoomoney::MonetaryAmount,
|
|
425
|
+
basket_id: String
|
|
426
|
+
) -> void
|
|
427
|
+
|
|
428
|
+
def to_hash: -> {
|
|
429
|
+
amount: Yoomoney::MonetaryAmount,
|
|
430
|
+
basket_id: String
|
|
431
|
+
}
|
|
432
|
+
end
|
|
433
|
+
end
|
|
434
|
+
|
|
435
|
+
def self?.variants: -> ::Array[Yoomoney::Models::PaymentCreateParams::payment_method_data]
|
|
436
|
+
end
|
|
437
|
+
|
|
438
|
+
type payment_order = { type: String }
|
|
439
|
+
|
|
440
|
+
class PaymentOrder < Yoomoney::Internal::Type::BaseModel
|
|
441
|
+
attr_accessor type: String
|
|
442
|
+
|
|
443
|
+
def initialize: (type: String) -> void
|
|
444
|
+
|
|
445
|
+
def to_hash: -> { type: String }
|
|
446
|
+
end
|
|
447
|
+
|
|
448
|
+
type receiver =
|
|
449
|
+
Yoomoney::PaymentCreateParams::Receiver::ReceiverMobileBalance
|
|
450
|
+
| Yoomoney::PaymentCreateParams::Receiver::ReceiverDigitalWallet
|
|
451
|
+
| Yoomoney::PaymentCreateParams::Receiver::ReceiverBankAccount
|
|
452
|
+
|
|
453
|
+
module Receiver
|
|
454
|
+
extend Yoomoney::Internal::Type::Union
|
|
455
|
+
|
|
456
|
+
type receiver_mobile_balance = { phone: String }
|
|
457
|
+
|
|
458
|
+
class ReceiverMobileBalance < Yoomoney::Models::Receiver
|
|
459
|
+
def phone: -> String
|
|
460
|
+
|
|
461
|
+
def phone=: (String _) -> String
|
|
462
|
+
|
|
463
|
+
def initialize: (phone: String) -> void
|
|
464
|
+
|
|
465
|
+
def to_hash: -> { phone: String }
|
|
466
|
+
end
|
|
467
|
+
|
|
468
|
+
type receiver_digital_wallet = { account_number: String }
|
|
469
|
+
|
|
470
|
+
class ReceiverDigitalWallet < Yoomoney::Models::Receiver
|
|
471
|
+
def account_number: -> String
|
|
472
|
+
|
|
473
|
+
def account_number=: (String _) -> String
|
|
474
|
+
|
|
475
|
+
def initialize: (account_number: String) -> void
|
|
476
|
+
|
|
477
|
+
def to_hash: -> { account_number: String }
|
|
478
|
+
end
|
|
479
|
+
|
|
480
|
+
type receiver_bank_account = { account_number: String, bic: String }
|
|
481
|
+
|
|
482
|
+
class ReceiverBankAccount < Yoomoney::Models::Receiver
|
|
483
|
+
def account_number: -> String
|
|
484
|
+
|
|
485
|
+
def account_number=: (String _) -> String
|
|
486
|
+
|
|
487
|
+
def bic: -> String
|
|
488
|
+
|
|
489
|
+
def bic=: (String _) -> String
|
|
490
|
+
|
|
491
|
+
def initialize: (account_number: String, bic: String) -> void
|
|
492
|
+
|
|
493
|
+
def to_hash: -> { account_number: String, bic: String }
|
|
494
|
+
end
|
|
495
|
+
|
|
496
|
+
def self?.variants: -> ::Array[Yoomoney::Models::PaymentCreateParams::receiver]
|
|
497
|
+
end
|
|
498
|
+
|
|
499
|
+
type statement =
|
|
500
|
+
{
|
|
501
|
+
delivery_method: Yoomoney::PaymentCreateParams::Statement::DeliveryMethod,
|
|
502
|
+
type: String
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
class Statement < Yoomoney::Internal::Type::BaseModel
|
|
506
|
+
attr_accessor delivery_method: Yoomoney::PaymentCreateParams::Statement::DeliveryMethod
|
|
507
|
+
|
|
508
|
+
attr_accessor type: String
|
|
509
|
+
|
|
510
|
+
def initialize: (
|
|
511
|
+
delivery_method: Yoomoney::PaymentCreateParams::Statement::DeliveryMethod,
|
|
512
|
+
type: String
|
|
513
|
+
) -> void
|
|
514
|
+
|
|
515
|
+
def to_hash: -> {
|
|
516
|
+
delivery_method: Yoomoney::PaymentCreateParams::Statement::DeliveryMethod,
|
|
517
|
+
type: String
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
type delivery_method =
|
|
521
|
+
{
|
|
522
|
+
type: Yoomoney::Models::PaymentCreateParams::Statement::DeliveryMethod::type_
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
class DeliveryMethod < Yoomoney::Internal::Type::BaseModel
|
|
526
|
+
attr_accessor type: Yoomoney::Models::PaymentCreateParams::Statement::DeliveryMethod::type_
|
|
527
|
+
|
|
528
|
+
def initialize: (
|
|
529
|
+
type: Yoomoney::Models::PaymentCreateParams::Statement::DeliveryMethod::type_
|
|
530
|
+
) -> void
|
|
531
|
+
|
|
532
|
+
def to_hash: -> {
|
|
533
|
+
type: Yoomoney::Models::PaymentCreateParams::Statement::DeliveryMethod::type_
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
type type_ = :email
|
|
537
|
+
|
|
538
|
+
module Type
|
|
539
|
+
extend Yoomoney::Internal::Type::Enum
|
|
540
|
+
|
|
541
|
+
EMAIL: :email
|
|
542
|
+
|
|
543
|
+
def self?.values: -> ::Array[Yoomoney::Models::PaymentCreateParams::Statement::DeliveryMethod::type_]
|
|
544
|
+
end
|
|
545
|
+
end
|
|
546
|
+
end
|
|
547
|
+
|
|
548
|
+
type transfer = { description: String, metadata: ::Hash[Symbol, String] }
|
|
549
|
+
|
|
550
|
+
class Transfer < Yoomoney::Models::TransferData
|
|
551
|
+
def description: -> String?
|
|
552
|
+
|
|
553
|
+
def description=: (String _) -> String
|
|
554
|
+
|
|
555
|
+
def metadata: -> ::Hash[Symbol, String]?
|
|
556
|
+
|
|
557
|
+
def metadata=: (::Hash[Symbol, String] _) -> ::Hash[Symbol, String]
|
|
558
|
+
|
|
559
|
+
def initialize: (
|
|
560
|
+
?description: String,
|
|
561
|
+
?metadata: ::Hash[Symbol, String]
|
|
562
|
+
) -> void
|
|
563
|
+
|
|
564
|
+
def to_hash: -> {
|
|
565
|
+
description: String,
|
|
566
|
+
metadata: ::Hash[Symbol, String]
|
|
567
|
+
}
|
|
568
|
+
end
|
|
569
|
+
end
|
|
570
|
+
end
|
|
571
|
+
end
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type payment_deal_info =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
settlements: ::Array[Yoomoney::PaymentDealInfo::Settlement]
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
class PaymentDealInfo < Yoomoney::Internal::Type::BaseModel
|
|
10
|
+
attr_accessor id: String
|
|
11
|
+
|
|
12
|
+
attr_accessor settlements: ::Array[Yoomoney::PaymentDealInfo::Settlement]
|
|
13
|
+
|
|
14
|
+
def initialize: (
|
|
15
|
+
id: String,
|
|
16
|
+
settlements: ::Array[Yoomoney::PaymentDealInfo::Settlement]
|
|
17
|
+
) -> void
|
|
18
|
+
|
|
19
|
+
def to_hash: -> {
|
|
20
|
+
id: String,
|
|
21
|
+
settlements: ::Array[Yoomoney::PaymentDealInfo::Settlement]
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
type settlement =
|
|
25
|
+
{
|
|
26
|
+
amount: Yoomoney::MonetaryAmount,
|
|
27
|
+
type: Yoomoney::Models::settlement_item_type
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
class Settlement < Yoomoney::Internal::Type::BaseModel
|
|
31
|
+
attr_accessor amount: Yoomoney::MonetaryAmount
|
|
32
|
+
|
|
33
|
+
attr_accessor type: Yoomoney::Models::settlement_item_type
|
|
34
|
+
|
|
35
|
+
def initialize: (
|
|
36
|
+
amount: Yoomoney::MonetaryAmount,
|
|
37
|
+
type: Yoomoney::Models::settlement_item_type
|
|
38
|
+
) -> void
|
|
39
|
+
|
|
40
|
+
def to_hash: -> {
|
|
41
|
+
amount: Yoomoney::MonetaryAmount,
|
|
42
|
+
type: Yoomoney::Models::settlement_item_type
|
|
43
|
+
}
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|