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,44 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type card_request_data_with_csc =
|
|
4
|
+
{
|
|
5
|
+
expiry_month: String,
|
|
6
|
+
expiry_year: String,
|
|
7
|
+
number: String,
|
|
8
|
+
cardholder: String,
|
|
9
|
+
csc: String
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
class CardRequestDataWithCsc < Yoomoney::Internal::Type::BaseModel
|
|
13
|
+
attr_accessor expiry_month: String
|
|
14
|
+
|
|
15
|
+
attr_accessor expiry_year: String
|
|
16
|
+
|
|
17
|
+
attr_accessor number: String
|
|
18
|
+
|
|
19
|
+
attr_reader cardholder: String?
|
|
20
|
+
|
|
21
|
+
def cardholder=: (String) -> String
|
|
22
|
+
|
|
23
|
+
attr_reader csc: String?
|
|
24
|
+
|
|
25
|
+
def csc=: (String) -> String
|
|
26
|
+
|
|
27
|
+
def initialize: (
|
|
28
|
+
expiry_month: String,
|
|
29
|
+
expiry_year: String,
|
|
30
|
+
number: String,
|
|
31
|
+
?cardholder: String,
|
|
32
|
+
?csc: String
|
|
33
|
+
) -> void
|
|
34
|
+
|
|
35
|
+
def to_hash: -> {
|
|
36
|
+
expiry_month: String,
|
|
37
|
+
expiry_year: String,
|
|
38
|
+
number: String,
|
|
39
|
+
cardholder: String,
|
|
40
|
+
csc: String
|
|
41
|
+
}
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type confirmation = { type: Yoomoney::Models::Confirmation::type_ }
|
|
4
|
+
|
|
5
|
+
class Confirmation < Yoomoney::Internal::Type::BaseModel
|
|
6
|
+
attr_accessor type: Yoomoney::Models::Confirmation::type_
|
|
7
|
+
|
|
8
|
+
def initialize: (type: Yoomoney::Models::Confirmation::type_) -> void
|
|
9
|
+
|
|
10
|
+
def to_hash: -> { type: Yoomoney::Models::Confirmation::type_ }
|
|
11
|
+
|
|
12
|
+
type type_ = :redirect | :external | :qr | :embedded | :mobile_application
|
|
13
|
+
|
|
14
|
+
module Type
|
|
15
|
+
extend Yoomoney::Internal::Type::Enum
|
|
16
|
+
|
|
17
|
+
REDIRECT: :redirect
|
|
18
|
+
EXTERNAL: :external
|
|
19
|
+
QR: :qr
|
|
20
|
+
EMBEDDED: :embedded
|
|
21
|
+
MOBILE_APPLICATION: :mobile_application
|
|
22
|
+
|
|
23
|
+
def self?.values: -> ::Array[Yoomoney::Models::Confirmation::type_]
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type confirmation_data =
|
|
4
|
+
{
|
|
5
|
+
type: Yoomoney::Models::ConfirmationData::type_,
|
|
6
|
+
locale: Yoomoney::Models::locale
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
class ConfirmationData < Yoomoney::Internal::Type::BaseModel
|
|
10
|
+
attr_accessor type: Yoomoney::Models::ConfirmationData::type_
|
|
11
|
+
|
|
12
|
+
attr_reader locale: Yoomoney::Models::locale?
|
|
13
|
+
|
|
14
|
+
def locale=: (Yoomoney::Models::locale) -> Yoomoney::Models::locale
|
|
15
|
+
|
|
16
|
+
def initialize: (
|
|
17
|
+
type: Yoomoney::Models::ConfirmationData::type_,
|
|
18
|
+
?locale: Yoomoney::Models::locale
|
|
19
|
+
) -> void
|
|
20
|
+
|
|
21
|
+
def to_hash: -> {
|
|
22
|
+
type: Yoomoney::Models::ConfirmationData::type_,
|
|
23
|
+
locale: Yoomoney::Models::locale
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
type type_ = :redirect | :external | :qr | :embedded | :mobile_application
|
|
27
|
+
|
|
28
|
+
module Type
|
|
29
|
+
extend Yoomoney::Internal::Type::Enum
|
|
30
|
+
|
|
31
|
+
REDIRECT: :redirect
|
|
32
|
+
EXTERNAL: :external
|
|
33
|
+
QR: :qr
|
|
34
|
+
EMBEDDED: :embedded
|
|
35
|
+
MOBILE_APPLICATION: :mobile_application
|
|
36
|
+
|
|
37
|
+
def self?.values: -> ::Array[Yoomoney::Models::ConfirmationData::type_]
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type deal_create_params =
|
|
4
|
+
{
|
|
5
|
+
fee_moment: Yoomoney::Models::fee_moment,
|
|
6
|
+
type: Yoomoney::Models::deal_type,
|
|
7
|
+
idempotence_key: String,
|
|
8
|
+
description: String,
|
|
9
|
+
metadata: ::Hash[Symbol, String]
|
|
10
|
+
}
|
|
11
|
+
& Yoomoney::Internal::Type::request_parameters
|
|
12
|
+
|
|
13
|
+
class DealCreateParams < Yoomoney::Internal::Type::BaseModel
|
|
14
|
+
extend Yoomoney::Internal::Type::RequestParameters::Converter
|
|
15
|
+
include Yoomoney::Internal::Type::RequestParameters
|
|
16
|
+
|
|
17
|
+
attr_accessor fee_moment: Yoomoney::Models::fee_moment
|
|
18
|
+
|
|
19
|
+
attr_accessor type: Yoomoney::Models::deal_type
|
|
20
|
+
|
|
21
|
+
attr_accessor idempotence_key: String
|
|
22
|
+
|
|
23
|
+
attr_reader description: String?
|
|
24
|
+
|
|
25
|
+
def description=: (String) -> String
|
|
26
|
+
|
|
27
|
+
attr_reader metadata: ::Hash[Symbol, String]?
|
|
28
|
+
|
|
29
|
+
def metadata=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
|
|
30
|
+
|
|
31
|
+
def initialize: (
|
|
32
|
+
fee_moment: Yoomoney::Models::fee_moment,
|
|
33
|
+
type: Yoomoney::Models::deal_type,
|
|
34
|
+
idempotence_key: String,
|
|
35
|
+
?description: String,
|
|
36
|
+
?metadata: ::Hash[Symbol, String],
|
|
37
|
+
?request_options: Yoomoney::request_opts
|
|
38
|
+
) -> void
|
|
39
|
+
|
|
40
|
+
def to_hash: -> {
|
|
41
|
+
fee_moment: Yoomoney::Models::fee_moment,
|
|
42
|
+
type: Yoomoney::Models::deal_type,
|
|
43
|
+
idempotence_key: String,
|
|
44
|
+
description: String,
|
|
45
|
+
metadata: ::Hash[Symbol, String],
|
|
46
|
+
request_options: Yoomoney::RequestOptions
|
|
47
|
+
}
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type deal_list_params =
|
|
4
|
+
{
|
|
5
|
+
created_at: Yoomoney::DealListParams::CreatedAt,
|
|
6
|
+
cursor: String,
|
|
7
|
+
expires_at: Yoomoney::DealListParams::ExpiresAt,
|
|
8
|
+
full_text_search: String,
|
|
9
|
+
limit: Integer,
|
|
10
|
+
status: Yoomoney::Models::DealListParams::status
|
|
11
|
+
}
|
|
12
|
+
& Yoomoney::Internal::Type::request_parameters
|
|
13
|
+
|
|
14
|
+
class DealListParams < Yoomoney::Internal::Type::BaseModel
|
|
15
|
+
extend Yoomoney::Internal::Type::RequestParameters::Converter
|
|
16
|
+
include Yoomoney::Internal::Type::RequestParameters
|
|
17
|
+
|
|
18
|
+
attr_reader created_at: Yoomoney::DealListParams::CreatedAt?
|
|
19
|
+
|
|
20
|
+
def created_at=: (
|
|
21
|
+
Yoomoney::DealListParams::CreatedAt
|
|
22
|
+
) -> Yoomoney::DealListParams::CreatedAt
|
|
23
|
+
|
|
24
|
+
attr_reader cursor: String?
|
|
25
|
+
|
|
26
|
+
def cursor=: (String) -> String
|
|
27
|
+
|
|
28
|
+
attr_reader expires_at: Yoomoney::DealListParams::ExpiresAt?
|
|
29
|
+
|
|
30
|
+
def expires_at=: (
|
|
31
|
+
Yoomoney::DealListParams::ExpiresAt
|
|
32
|
+
) -> Yoomoney::DealListParams::ExpiresAt
|
|
33
|
+
|
|
34
|
+
attr_reader full_text_search: String?
|
|
35
|
+
|
|
36
|
+
def full_text_search=: (String) -> String
|
|
37
|
+
|
|
38
|
+
attr_reader limit: Integer?
|
|
39
|
+
|
|
40
|
+
def limit=: (Integer) -> Integer
|
|
41
|
+
|
|
42
|
+
attr_reader status: Yoomoney::Models::DealListParams::status?
|
|
43
|
+
|
|
44
|
+
def status=: (
|
|
45
|
+
Yoomoney::Models::DealListParams::status
|
|
46
|
+
) -> Yoomoney::Models::DealListParams::status
|
|
47
|
+
|
|
48
|
+
def initialize: (
|
|
49
|
+
?created_at: Yoomoney::DealListParams::CreatedAt,
|
|
50
|
+
?cursor: String,
|
|
51
|
+
?expires_at: Yoomoney::DealListParams::ExpiresAt,
|
|
52
|
+
?full_text_search: String,
|
|
53
|
+
?limit: Integer,
|
|
54
|
+
?status: Yoomoney::Models::DealListParams::status,
|
|
55
|
+
?request_options: Yoomoney::request_opts
|
|
56
|
+
) -> void
|
|
57
|
+
|
|
58
|
+
def to_hash: -> {
|
|
59
|
+
created_at: Yoomoney::DealListParams::CreatedAt,
|
|
60
|
+
cursor: String,
|
|
61
|
+
expires_at: Yoomoney::DealListParams::ExpiresAt,
|
|
62
|
+
full_text_search: String,
|
|
63
|
+
limit: Integer,
|
|
64
|
+
status: Yoomoney::Models::DealListParams::status,
|
|
65
|
+
request_options: Yoomoney::RequestOptions
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
type created_at = { gt: Time, gte: Time, lt: Time, lte: Time }
|
|
69
|
+
|
|
70
|
+
class CreatedAt < Yoomoney::Internal::Type::BaseModel
|
|
71
|
+
attr_reader gt: Time?
|
|
72
|
+
|
|
73
|
+
def gt=: (Time) -> Time
|
|
74
|
+
|
|
75
|
+
attr_reader gte: Time?
|
|
76
|
+
|
|
77
|
+
def gte=: (Time) -> Time
|
|
78
|
+
|
|
79
|
+
attr_reader lt: Time?
|
|
80
|
+
|
|
81
|
+
def lt=: (Time) -> Time
|
|
82
|
+
|
|
83
|
+
attr_reader lte: Time?
|
|
84
|
+
|
|
85
|
+
def lte=: (Time) -> Time
|
|
86
|
+
|
|
87
|
+
def initialize: (?gt: Time, ?gte: Time, ?lt: Time, ?lte: Time) -> void
|
|
88
|
+
|
|
89
|
+
def to_hash: -> { gt: Time, gte: Time, lt: Time, lte: Time }
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
type expires_at = { gt: Time, gte: Time, lt: Time, lte: Time }
|
|
93
|
+
|
|
94
|
+
class ExpiresAt < Yoomoney::Internal::Type::BaseModel
|
|
95
|
+
attr_reader gt: Time?
|
|
96
|
+
|
|
97
|
+
def gt=: (Time) -> Time
|
|
98
|
+
|
|
99
|
+
attr_reader gte: Time?
|
|
100
|
+
|
|
101
|
+
def gte=: (Time) -> Time
|
|
102
|
+
|
|
103
|
+
attr_reader lt: Time?
|
|
104
|
+
|
|
105
|
+
def lt=: (Time) -> Time
|
|
106
|
+
|
|
107
|
+
attr_reader lte: Time?
|
|
108
|
+
|
|
109
|
+
def lte=: (Time) -> Time
|
|
110
|
+
|
|
111
|
+
def initialize: (?gt: Time, ?gte: Time, ?lt: Time, ?lte: Time) -> void
|
|
112
|
+
|
|
113
|
+
def to_hash: -> { gt: Time, gte: Time, lt: Time, lte: Time }
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
type status = :opened | :closed
|
|
117
|
+
|
|
118
|
+
module Status
|
|
119
|
+
extend Yoomoney::Internal::Type::Enum
|
|
120
|
+
|
|
121
|
+
OPENED: :opened
|
|
122
|
+
CLOSED: :closed
|
|
123
|
+
|
|
124
|
+
def self?.values: -> ::Array[Yoomoney::Models::DealListParams::status]
|
|
125
|
+
end
|
|
126
|
+
end
|
|
127
|
+
end
|
|
128
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type deal_list_response =
|
|
4
|
+
{ items: ::Array[Yoomoney::SafeDeal], type: String, next_cursor: String }
|
|
5
|
+
|
|
6
|
+
class DealListResponse < Yoomoney::Internal::Type::BaseModel
|
|
7
|
+
attr_accessor items: ::Array[Yoomoney::SafeDeal]
|
|
8
|
+
|
|
9
|
+
attr_accessor type: String
|
|
10
|
+
|
|
11
|
+
attr_reader next_cursor: String?
|
|
12
|
+
|
|
13
|
+
def next_cursor=: (String) -> String
|
|
14
|
+
|
|
15
|
+
def initialize: (
|
|
16
|
+
items: ::Array[Yoomoney::SafeDeal],
|
|
17
|
+
type: String,
|
|
18
|
+
?next_cursor: String
|
|
19
|
+
) -> void
|
|
20
|
+
|
|
21
|
+
def to_hash: -> {
|
|
22
|
+
items: ::Array[Yoomoney::SafeDeal],
|
|
23
|
+
type: String,
|
|
24
|
+
next_cursor: String
|
|
25
|
+
}
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type deal_retrieve_params =
|
|
4
|
+
{ } & Yoomoney::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class DealRetrieveParams < Yoomoney::Internal::Type::BaseModel
|
|
7
|
+
extend Yoomoney::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Yoomoney::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
def initialize: (?request_options: Yoomoney::request_opts) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { request_options: Yoomoney::RequestOptions }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type delivery_method = { type: String }
|
|
4
|
+
|
|
5
|
+
class DeliveryMethod < Yoomoney::Internal::Type::BaseModel
|
|
6
|
+
attr_accessor type: String
|
|
7
|
+
|
|
8
|
+
def initialize: (type: String) -> void
|
|
9
|
+
|
|
10
|
+
def to_hash: -> { type: String }
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type delivery_method_data = { type: String }
|
|
4
|
+
|
|
5
|
+
class DeliveryMethodData < Yoomoney::Internal::Type::BaseModel
|
|
6
|
+
attr_accessor type: String
|
|
7
|
+
|
|
8
|
+
def initialize: (type: String) -> void
|
|
9
|
+
|
|
10
|
+
def to_hash: -> { type: String }
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type electronic_certificate_refund_article =
|
|
4
|
+
{
|
|
5
|
+
article_number: Integer,
|
|
6
|
+
payment_article_number: Integer,
|
|
7
|
+
quantity: Integer,
|
|
8
|
+
tru_code: String
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
class ElectronicCertificateRefundArticle < Yoomoney::Internal::Type::BaseModel
|
|
12
|
+
attr_accessor article_number: Integer
|
|
13
|
+
|
|
14
|
+
attr_accessor payment_article_number: Integer
|
|
15
|
+
|
|
16
|
+
attr_accessor quantity: Integer
|
|
17
|
+
|
|
18
|
+
attr_accessor tru_code: String
|
|
19
|
+
|
|
20
|
+
def initialize: (
|
|
21
|
+
article_number: Integer,
|
|
22
|
+
payment_article_number: Integer,
|
|
23
|
+
quantity: Integer,
|
|
24
|
+
tru_code: String
|
|
25
|
+
) -> void
|
|
26
|
+
|
|
27
|
+
def to_hash: -> {
|
|
28
|
+
article_number: Integer,
|
|
29
|
+
payment_article_number: Integer,
|
|
30
|
+
quantity: Integer,
|
|
31
|
+
tru_code: String
|
|
32
|
+
}
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type fee_moment = :payment_succeeded | :deal_closed
|
|
4
|
+
|
|
5
|
+
module FeeMoment
|
|
6
|
+
extend Yoomoney::Internal::Type::Enum
|
|
7
|
+
|
|
8
|
+
PAYMENT_SUCCEEDED: :payment_succeeded
|
|
9
|
+
DEAL_CLOSED: :deal_closed
|
|
10
|
+
|
|
11
|
+
def self?.values: -> ::Array[Yoomoney::Models::fee_moment]
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type industry_details =
|
|
4
|
+
{
|
|
5
|
+
document_date: String,
|
|
6
|
+
document_number: String,
|
|
7
|
+
federal_id: String,
|
|
8
|
+
value: String
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
class IndustryDetails < Yoomoney::Internal::Type::BaseModel
|
|
12
|
+
attr_accessor document_date: String
|
|
13
|
+
|
|
14
|
+
attr_accessor document_number: String
|
|
15
|
+
|
|
16
|
+
attr_accessor federal_id: String
|
|
17
|
+
|
|
18
|
+
attr_accessor value: String
|
|
19
|
+
|
|
20
|
+
def initialize: (
|
|
21
|
+
document_date: String,
|
|
22
|
+
document_number: String,
|
|
23
|
+
federal_id: String,
|
|
24
|
+
value: String
|
|
25
|
+
) -> void
|
|
26
|
+
|
|
27
|
+
def to_hash: -> {
|
|
28
|
+
document_date: String,
|
|
29
|
+
document_number: String,
|
|
30
|
+
federal_id: String,
|
|
31
|
+
value: String
|
|
32
|
+
}
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
module Yoomoney
|
|
2
|
+
module Models
|
|
3
|
+
type invoice =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
cart: ::Array[Yoomoney::LineItem],
|
|
7
|
+
created_at: Time,
|
|
8
|
+
status: Yoomoney::Models::Invoice::status,
|
|
9
|
+
cancellation_details: Yoomoney::Invoice::CancellationDetails,
|
|
10
|
+
delivery_method: Yoomoney::Models::Invoice::delivery_method,
|
|
11
|
+
description: String,
|
|
12
|
+
expires_at: Time,
|
|
13
|
+
metadata: ::Hash[Symbol, String],
|
|
14
|
+
payment_details: Yoomoney::Invoice::PaymentDetails
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
class Invoice < Yoomoney::Internal::Type::BaseModel
|
|
18
|
+
attr_accessor id: String
|
|
19
|
+
|
|
20
|
+
attr_accessor cart: ::Array[Yoomoney::LineItem]
|
|
21
|
+
|
|
22
|
+
attr_accessor created_at: Time
|
|
23
|
+
|
|
24
|
+
attr_accessor status: Yoomoney::Models::Invoice::status
|
|
25
|
+
|
|
26
|
+
attr_reader cancellation_details: Yoomoney::Invoice::CancellationDetails?
|
|
27
|
+
|
|
28
|
+
def cancellation_details=: (
|
|
29
|
+
Yoomoney::Invoice::CancellationDetails
|
|
30
|
+
) -> Yoomoney::Invoice::CancellationDetails
|
|
31
|
+
|
|
32
|
+
attr_reader delivery_method: Yoomoney::Models::Invoice::delivery_method?
|
|
33
|
+
|
|
34
|
+
def delivery_method=: (
|
|
35
|
+
Yoomoney::Models::Invoice::delivery_method
|
|
36
|
+
) -> Yoomoney::Models::Invoice::delivery_method
|
|
37
|
+
|
|
38
|
+
attr_reader description: String?
|
|
39
|
+
|
|
40
|
+
def description=: (String) -> String
|
|
41
|
+
|
|
42
|
+
attr_reader expires_at: Time?
|
|
43
|
+
|
|
44
|
+
def expires_at=: (Time) -> Time
|
|
45
|
+
|
|
46
|
+
attr_reader metadata: ::Hash[Symbol, String]?
|
|
47
|
+
|
|
48
|
+
def metadata=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
|
|
49
|
+
|
|
50
|
+
attr_reader payment_details: Yoomoney::Invoice::PaymentDetails?
|
|
51
|
+
|
|
52
|
+
def payment_details=: (
|
|
53
|
+
Yoomoney::Invoice::PaymentDetails
|
|
54
|
+
) -> Yoomoney::Invoice::PaymentDetails
|
|
55
|
+
|
|
56
|
+
def initialize: (
|
|
57
|
+
id: String,
|
|
58
|
+
cart: ::Array[Yoomoney::LineItem],
|
|
59
|
+
created_at: Time,
|
|
60
|
+
status: Yoomoney::Models::Invoice::status,
|
|
61
|
+
?cancellation_details: Yoomoney::Invoice::CancellationDetails,
|
|
62
|
+
?delivery_method: Yoomoney::Models::Invoice::delivery_method,
|
|
63
|
+
?description: String,
|
|
64
|
+
?expires_at: Time,
|
|
65
|
+
?metadata: ::Hash[Symbol, String],
|
|
66
|
+
?payment_details: Yoomoney::Invoice::PaymentDetails
|
|
67
|
+
) -> void
|
|
68
|
+
|
|
69
|
+
def to_hash: -> {
|
|
70
|
+
id: String,
|
|
71
|
+
cart: ::Array[Yoomoney::LineItem],
|
|
72
|
+
created_at: Time,
|
|
73
|
+
status: Yoomoney::Models::Invoice::status,
|
|
74
|
+
cancellation_details: Yoomoney::Invoice::CancellationDetails,
|
|
75
|
+
delivery_method: Yoomoney::Models::Invoice::delivery_method,
|
|
76
|
+
description: String,
|
|
77
|
+
expires_at: Time,
|
|
78
|
+
metadata: ::Hash[Symbol, String],
|
|
79
|
+
payment_details: Yoomoney::Invoice::PaymentDetails
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
type status = :pending | :succeeded | :canceled
|
|
83
|
+
|
|
84
|
+
module Status
|
|
85
|
+
extend Yoomoney::Internal::Type::Enum
|
|
86
|
+
|
|
87
|
+
PENDING: :pending
|
|
88
|
+
SUCCEEDED: :succeeded
|
|
89
|
+
CANCELED: :canceled
|
|
90
|
+
|
|
91
|
+
def self?.values: -> ::Array[Yoomoney::Models::Invoice::status]
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
type cancellation_details = { party: String, reason: String }
|
|
95
|
+
|
|
96
|
+
class CancellationDetails < Yoomoney::Internal::Type::BaseModel
|
|
97
|
+
attr_accessor party: String
|
|
98
|
+
|
|
99
|
+
attr_accessor reason: String
|
|
100
|
+
|
|
101
|
+
def initialize: (party: String, reason: String) -> void
|
|
102
|
+
|
|
103
|
+
def to_hash: -> { party: String, reason: String }
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
type delivery_method =
|
|
107
|
+
Yoomoney::Invoice::DeliveryMethod::DeliveryMethodSelf
|
|
108
|
+
| Yoomoney::DeliveryMethod
|
|
109
|
+
|
|
110
|
+
module DeliveryMethod
|
|
111
|
+
extend Yoomoney::Internal::Type::Union
|
|
112
|
+
|
|
113
|
+
type delivery_method_self = { url: String }
|
|
114
|
+
|
|
115
|
+
class DeliveryMethodSelf < Yoomoney::Models::DeliveryMethod
|
|
116
|
+
def url: -> String?
|
|
117
|
+
|
|
118
|
+
def url=: (String _) -> String
|
|
119
|
+
|
|
120
|
+
def initialize: (?url: String) -> void
|
|
121
|
+
|
|
122
|
+
def to_hash: -> { url: String }
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
def self?.variants: -> ::Array[Yoomoney::Models::Invoice::delivery_method]
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
type payment_details = { id: String, status: String }
|
|
129
|
+
|
|
130
|
+
class PaymentDetails < Yoomoney::Internal::Type::BaseModel
|
|
131
|
+
attr_accessor id: String
|
|
132
|
+
|
|
133
|
+
attr_accessor status: String
|
|
134
|
+
|
|
135
|
+
def initialize: (id: String, status: String) -> void
|
|
136
|
+
|
|
137
|
+
def to_hash: -> { id: String, status: String }
|
|
138
|
+
end
|
|
139
|
+
end
|
|
140
|
+
end
|
|
141
|
+
end
|