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,279 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Yoomoney
|
|
4
|
+
module Models
|
|
5
|
+
class ReceiptData < Yoomoney::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Yoomoney::ReceiptData, Yoomoney::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
sig { returns(T::Array[Yoomoney::ReceiptData::Item]) }
|
|
12
|
+
attr_accessor :items
|
|
13
|
+
|
|
14
|
+
sig { returns(T.nilable(Yoomoney::ReceiptDataCustomer)) }
|
|
15
|
+
attr_reader :customer
|
|
16
|
+
|
|
17
|
+
sig { params(customer: Yoomoney::ReceiptDataCustomer::OrHash).void }
|
|
18
|
+
attr_writer :customer
|
|
19
|
+
|
|
20
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
21
|
+
attr_reader :internet
|
|
22
|
+
|
|
23
|
+
sig { params(internet: T::Boolean).void }
|
|
24
|
+
attr_writer :internet
|
|
25
|
+
|
|
26
|
+
sig { returns(T.nilable(T::Array[Yoomoney::IndustryDetails])) }
|
|
27
|
+
attr_reader :receipt_industry_details
|
|
28
|
+
|
|
29
|
+
sig do
|
|
30
|
+
params(
|
|
31
|
+
receipt_industry_details: T::Array[Yoomoney::IndustryDetails::OrHash]
|
|
32
|
+
).void
|
|
33
|
+
end
|
|
34
|
+
attr_writer :receipt_industry_details
|
|
35
|
+
|
|
36
|
+
sig { returns(T.nilable(Yoomoney::OperationalDetails)) }
|
|
37
|
+
attr_reader :receipt_operational_details
|
|
38
|
+
|
|
39
|
+
sig do
|
|
40
|
+
params(
|
|
41
|
+
receipt_operational_details: Yoomoney::OperationalDetails::OrHash
|
|
42
|
+
).void
|
|
43
|
+
end
|
|
44
|
+
attr_writer :receipt_operational_details
|
|
45
|
+
|
|
46
|
+
sig { returns(T.nilable(Integer)) }
|
|
47
|
+
attr_reader :tax_system_code
|
|
48
|
+
|
|
49
|
+
sig { params(tax_system_code: Integer).void }
|
|
50
|
+
attr_writer :tax_system_code
|
|
51
|
+
|
|
52
|
+
sig { returns(T.nilable(String)) }
|
|
53
|
+
attr_reader :timezone
|
|
54
|
+
|
|
55
|
+
sig { params(timezone: String).void }
|
|
56
|
+
attr_writer :timezone
|
|
57
|
+
|
|
58
|
+
sig do
|
|
59
|
+
params(
|
|
60
|
+
items: T::Array[Yoomoney::ReceiptData::Item::OrHash],
|
|
61
|
+
customer: Yoomoney::ReceiptDataCustomer::OrHash,
|
|
62
|
+
internet: T::Boolean,
|
|
63
|
+
receipt_industry_details: T::Array[Yoomoney::IndustryDetails::OrHash],
|
|
64
|
+
receipt_operational_details: Yoomoney::OperationalDetails::OrHash,
|
|
65
|
+
tax_system_code: Integer,
|
|
66
|
+
timezone: String
|
|
67
|
+
).returns(T.attached_class)
|
|
68
|
+
end
|
|
69
|
+
def self.new(
|
|
70
|
+
items:,
|
|
71
|
+
customer: nil,
|
|
72
|
+
internet: nil,
|
|
73
|
+
receipt_industry_details: nil,
|
|
74
|
+
receipt_operational_details: nil,
|
|
75
|
+
tax_system_code: nil,
|
|
76
|
+
timezone: nil
|
|
77
|
+
)
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
sig do
|
|
81
|
+
override.returns(
|
|
82
|
+
{
|
|
83
|
+
items: T::Array[Yoomoney::ReceiptData::Item],
|
|
84
|
+
customer: Yoomoney::ReceiptDataCustomer,
|
|
85
|
+
internet: T::Boolean,
|
|
86
|
+
receipt_industry_details: T::Array[Yoomoney::IndustryDetails],
|
|
87
|
+
receipt_operational_details: Yoomoney::OperationalDetails,
|
|
88
|
+
tax_system_code: Integer,
|
|
89
|
+
timezone: String
|
|
90
|
+
}
|
|
91
|
+
)
|
|
92
|
+
end
|
|
93
|
+
def to_hash
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
class Item < Yoomoney::Internal::Type::BaseModel
|
|
97
|
+
OrHash =
|
|
98
|
+
T.type_alias do
|
|
99
|
+
T.any(Yoomoney::ReceiptData::Item, Yoomoney::Internal::AnyHash)
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
# Сумма.
|
|
103
|
+
sig { returns(Yoomoney::MonetaryAmount) }
|
|
104
|
+
attr_reader :amount
|
|
105
|
+
|
|
106
|
+
sig { params(amount: Yoomoney::MonetaryAmount::OrHash).void }
|
|
107
|
+
attr_writer :amount
|
|
108
|
+
|
|
109
|
+
# Название товара.
|
|
110
|
+
sig { returns(String) }
|
|
111
|
+
attr_accessor :description
|
|
112
|
+
|
|
113
|
+
# Количество.
|
|
114
|
+
sig { returns(Float) }
|
|
115
|
+
attr_accessor :quantity
|
|
116
|
+
|
|
117
|
+
# Ставка НДС.
|
|
118
|
+
sig { returns(Integer) }
|
|
119
|
+
attr_accessor :vat_code
|
|
120
|
+
|
|
121
|
+
sig { returns(T.nilable(String)) }
|
|
122
|
+
attr_reader :country_of_origin_code
|
|
123
|
+
|
|
124
|
+
sig { params(country_of_origin_code: String).void }
|
|
125
|
+
attr_writer :country_of_origin_code
|
|
126
|
+
|
|
127
|
+
sig { returns(T.nilable(String)) }
|
|
128
|
+
attr_reader :customs_declaration_number
|
|
129
|
+
|
|
130
|
+
sig { params(customs_declaration_number: String).void }
|
|
131
|
+
attr_writer :customs_declaration_number
|
|
132
|
+
|
|
133
|
+
sig { returns(T.nilable(String)) }
|
|
134
|
+
attr_reader :excise
|
|
135
|
+
|
|
136
|
+
sig { params(excise: String).void }
|
|
137
|
+
attr_writer :excise
|
|
138
|
+
|
|
139
|
+
sig { returns(T.nilable(Yoomoney::MarkCodeInfo)) }
|
|
140
|
+
attr_reader :mark_code_info
|
|
141
|
+
|
|
142
|
+
sig { params(mark_code_info: Yoomoney::MarkCodeInfo::OrHash).void }
|
|
143
|
+
attr_writer :mark_code_info
|
|
144
|
+
|
|
145
|
+
sig { returns(T.nilable(String)) }
|
|
146
|
+
attr_reader :mark_mode
|
|
147
|
+
|
|
148
|
+
sig { params(mark_mode: String).void }
|
|
149
|
+
attr_writer :mark_mode
|
|
150
|
+
|
|
151
|
+
sig { returns(T.nilable(Yoomoney::MarkQuantity)) }
|
|
152
|
+
attr_reader :mark_quantity
|
|
153
|
+
|
|
154
|
+
sig { params(mark_quantity: Yoomoney::MarkQuantity::OrHash).void }
|
|
155
|
+
attr_writer :mark_quantity
|
|
156
|
+
|
|
157
|
+
sig { returns(T.nilable(Yoomoney::ReceiptItemMeasure::OrSymbol)) }
|
|
158
|
+
attr_reader :measure
|
|
159
|
+
|
|
160
|
+
sig { params(measure: Yoomoney::ReceiptItemMeasure::OrSymbol).void }
|
|
161
|
+
attr_writer :measure
|
|
162
|
+
|
|
163
|
+
sig { returns(T.nilable(Yoomoney::ReceiptItemPaymentMode::OrSymbol)) }
|
|
164
|
+
attr_reader :payment_mode
|
|
165
|
+
|
|
166
|
+
sig do
|
|
167
|
+
params(payment_mode: Yoomoney::ReceiptItemPaymentMode::OrSymbol).void
|
|
168
|
+
end
|
|
169
|
+
attr_writer :payment_mode
|
|
170
|
+
|
|
171
|
+
sig do
|
|
172
|
+
returns(T.nilable(Yoomoney::ReceiptItemPaymentSubject::OrSymbol))
|
|
173
|
+
end
|
|
174
|
+
attr_reader :payment_subject
|
|
175
|
+
|
|
176
|
+
sig do
|
|
177
|
+
params(
|
|
178
|
+
payment_subject: Yoomoney::ReceiptItemPaymentSubject::OrSymbol
|
|
179
|
+
).void
|
|
180
|
+
end
|
|
181
|
+
attr_writer :payment_subject
|
|
182
|
+
|
|
183
|
+
sig { returns(T.nilable(T::Array[Yoomoney::IndustryDetails])) }
|
|
184
|
+
attr_reader :payment_subject_industry_details
|
|
185
|
+
|
|
186
|
+
sig do
|
|
187
|
+
params(
|
|
188
|
+
payment_subject_industry_details:
|
|
189
|
+
T::Array[Yoomoney::IndustryDetails::OrHash]
|
|
190
|
+
).void
|
|
191
|
+
end
|
|
192
|
+
attr_writer :payment_subject_industry_details
|
|
193
|
+
|
|
194
|
+
sig { returns(T.nilable(Integer)) }
|
|
195
|
+
attr_reader :planned_status
|
|
196
|
+
|
|
197
|
+
sig { params(planned_status: Integer).void }
|
|
198
|
+
attr_writer :planned_status
|
|
199
|
+
|
|
200
|
+
sig { returns(T.nilable(String)) }
|
|
201
|
+
attr_reader :product_code
|
|
202
|
+
|
|
203
|
+
sig { params(product_code: String).void }
|
|
204
|
+
attr_writer :product_code
|
|
205
|
+
|
|
206
|
+
sig do
|
|
207
|
+
params(
|
|
208
|
+
amount: Yoomoney::MonetaryAmount::OrHash,
|
|
209
|
+
description: String,
|
|
210
|
+
quantity: Float,
|
|
211
|
+
vat_code: Integer,
|
|
212
|
+
country_of_origin_code: String,
|
|
213
|
+
customs_declaration_number: String,
|
|
214
|
+
excise: String,
|
|
215
|
+
mark_code_info: Yoomoney::MarkCodeInfo::OrHash,
|
|
216
|
+
mark_mode: String,
|
|
217
|
+
mark_quantity: Yoomoney::MarkQuantity::OrHash,
|
|
218
|
+
measure: Yoomoney::ReceiptItemMeasure::OrSymbol,
|
|
219
|
+
payment_mode: Yoomoney::ReceiptItemPaymentMode::OrSymbol,
|
|
220
|
+
payment_subject: Yoomoney::ReceiptItemPaymentSubject::OrSymbol,
|
|
221
|
+
payment_subject_industry_details:
|
|
222
|
+
T::Array[Yoomoney::IndustryDetails::OrHash],
|
|
223
|
+
planned_status: Integer,
|
|
224
|
+
product_code: String
|
|
225
|
+
).returns(T.attached_class)
|
|
226
|
+
end
|
|
227
|
+
def self.new(
|
|
228
|
+
# Сумма.
|
|
229
|
+
amount:,
|
|
230
|
+
# Название товара.
|
|
231
|
+
description:,
|
|
232
|
+
# Количество.
|
|
233
|
+
quantity:,
|
|
234
|
+
# Ставка НДС.
|
|
235
|
+
vat_code:,
|
|
236
|
+
country_of_origin_code: nil,
|
|
237
|
+
customs_declaration_number: nil,
|
|
238
|
+
excise: nil,
|
|
239
|
+
mark_code_info: nil,
|
|
240
|
+
mark_mode: nil,
|
|
241
|
+
mark_quantity: nil,
|
|
242
|
+
measure: nil,
|
|
243
|
+
payment_mode: nil,
|
|
244
|
+
payment_subject: nil,
|
|
245
|
+
payment_subject_industry_details: nil,
|
|
246
|
+
planned_status: nil,
|
|
247
|
+
product_code: nil
|
|
248
|
+
)
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
sig do
|
|
252
|
+
override.returns(
|
|
253
|
+
{
|
|
254
|
+
amount: Yoomoney::MonetaryAmount,
|
|
255
|
+
description: String,
|
|
256
|
+
quantity: Float,
|
|
257
|
+
vat_code: Integer,
|
|
258
|
+
country_of_origin_code: String,
|
|
259
|
+
customs_declaration_number: String,
|
|
260
|
+
excise: String,
|
|
261
|
+
mark_code_info: Yoomoney::MarkCodeInfo,
|
|
262
|
+
mark_mode: String,
|
|
263
|
+
mark_quantity: Yoomoney::MarkQuantity,
|
|
264
|
+
measure: Yoomoney::ReceiptItemMeasure::OrSymbol,
|
|
265
|
+
payment_mode: Yoomoney::ReceiptItemPaymentMode::OrSymbol,
|
|
266
|
+
payment_subject: Yoomoney::ReceiptItemPaymentSubject::OrSymbol,
|
|
267
|
+
payment_subject_industry_details:
|
|
268
|
+
T::Array[Yoomoney::IndustryDetails],
|
|
269
|
+
planned_status: Integer,
|
|
270
|
+
product_code: String
|
|
271
|
+
}
|
|
272
|
+
)
|
|
273
|
+
end
|
|
274
|
+
def to_hash
|
|
275
|
+
end
|
|
276
|
+
end
|
|
277
|
+
end
|
|
278
|
+
end
|
|
279
|
+
end
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Yoomoney
|
|
4
|
+
module Models
|
|
5
|
+
class ReceiptDataCustomer < Yoomoney::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Yoomoney::ReceiptDataCustomer, Yoomoney::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
sig { returns(T.nilable(String)) }
|
|
12
|
+
attr_reader :email
|
|
13
|
+
|
|
14
|
+
sig { params(email: String).void }
|
|
15
|
+
attr_writer :email
|
|
16
|
+
|
|
17
|
+
sig { returns(T.nilable(String)) }
|
|
18
|
+
attr_reader :full_name
|
|
19
|
+
|
|
20
|
+
sig { params(full_name: String).void }
|
|
21
|
+
attr_writer :full_name
|
|
22
|
+
|
|
23
|
+
sig { returns(T.nilable(String)) }
|
|
24
|
+
attr_reader :inn
|
|
25
|
+
|
|
26
|
+
sig { params(inn: String).void }
|
|
27
|
+
attr_writer :inn
|
|
28
|
+
|
|
29
|
+
sig { returns(T.nilable(String)) }
|
|
30
|
+
attr_reader :phone
|
|
31
|
+
|
|
32
|
+
sig { params(phone: String).void }
|
|
33
|
+
attr_writer :phone
|
|
34
|
+
|
|
35
|
+
sig do
|
|
36
|
+
params(
|
|
37
|
+
email: String,
|
|
38
|
+
full_name: String,
|
|
39
|
+
inn: String,
|
|
40
|
+
phone: String
|
|
41
|
+
).returns(T.attached_class)
|
|
42
|
+
end
|
|
43
|
+
def self.new(email: nil, full_name: nil, inn: nil, phone: nil)
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
sig do
|
|
47
|
+
override.returns(
|
|
48
|
+
{ email: String, full_name: String, inn: String, phone: String }
|
|
49
|
+
)
|
|
50
|
+
end
|
|
51
|
+
def to_hash
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Yoomoney
|
|
4
|
+
module Models
|
|
5
|
+
module ReceiptItemAgentType
|
|
6
|
+
extend Yoomoney::Internal::Type::Enum
|
|
7
|
+
|
|
8
|
+
TaggedSymbol =
|
|
9
|
+
T.type_alias { T.all(Symbol, Yoomoney::ReceiptItemAgentType) }
|
|
10
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
11
|
+
|
|
12
|
+
BANKING_PAYMENT_AGENT =
|
|
13
|
+
T.let(
|
|
14
|
+
:banking_payment_agent,
|
|
15
|
+
Yoomoney::ReceiptItemAgentType::TaggedSymbol
|
|
16
|
+
)
|
|
17
|
+
BANKING_PAYMENT_SUBAGENT =
|
|
18
|
+
T.let(
|
|
19
|
+
:banking_payment_subagent,
|
|
20
|
+
Yoomoney::ReceiptItemAgentType::TaggedSymbol
|
|
21
|
+
)
|
|
22
|
+
PAYMENT_AGENT =
|
|
23
|
+
T.let(:payment_agent, Yoomoney::ReceiptItemAgentType::TaggedSymbol)
|
|
24
|
+
PAYMENT_SUBAGENT =
|
|
25
|
+
T.let(:payment_subagent, Yoomoney::ReceiptItemAgentType::TaggedSymbol)
|
|
26
|
+
ATTORNEY = T.let(:attorney, Yoomoney::ReceiptItemAgentType::TaggedSymbol)
|
|
27
|
+
COMMISSIONER =
|
|
28
|
+
T.let(:commissioner, Yoomoney::ReceiptItemAgentType::TaggedSymbol)
|
|
29
|
+
AGENT = T.let(:agent, Yoomoney::ReceiptItemAgentType::TaggedSymbol)
|
|
30
|
+
|
|
31
|
+
sig do
|
|
32
|
+
override.returns(T::Array[Yoomoney::ReceiptItemAgentType::TaggedSymbol])
|
|
33
|
+
end
|
|
34
|
+
def self.values
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Yoomoney
|
|
4
|
+
module Models
|
|
5
|
+
module ReceiptItemMeasure
|
|
6
|
+
extend Yoomoney::Internal::Type::Enum
|
|
7
|
+
|
|
8
|
+
TaggedSymbol =
|
|
9
|
+
T.type_alias { T.all(Symbol, Yoomoney::ReceiptItemMeasure) }
|
|
10
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
11
|
+
|
|
12
|
+
PIECE = T.let(:piece, Yoomoney::ReceiptItemMeasure::TaggedSymbol)
|
|
13
|
+
GRAM = T.let(:gram, Yoomoney::ReceiptItemMeasure::TaggedSymbol)
|
|
14
|
+
KILOGRAM = T.let(:kilogram, Yoomoney::ReceiptItemMeasure::TaggedSymbol)
|
|
15
|
+
TON = T.let(:ton, Yoomoney::ReceiptItemMeasure::TaggedSymbol)
|
|
16
|
+
CENTIMETER =
|
|
17
|
+
T.let(:centimeter, Yoomoney::ReceiptItemMeasure::TaggedSymbol)
|
|
18
|
+
DECIMETER = T.let(:decimeter, Yoomoney::ReceiptItemMeasure::TaggedSymbol)
|
|
19
|
+
METER = T.let(:meter, Yoomoney::ReceiptItemMeasure::TaggedSymbol)
|
|
20
|
+
SQUARE_CENTIMETER =
|
|
21
|
+
T.let(:square_centimeter, Yoomoney::ReceiptItemMeasure::TaggedSymbol)
|
|
22
|
+
SQUARE_DECIMETER =
|
|
23
|
+
T.let(:square_decimeter, Yoomoney::ReceiptItemMeasure::TaggedSymbol)
|
|
24
|
+
SQUARE_METER =
|
|
25
|
+
T.let(:square_meter, Yoomoney::ReceiptItemMeasure::TaggedSymbol)
|
|
26
|
+
MILLILITER =
|
|
27
|
+
T.let(:milliliter, Yoomoney::ReceiptItemMeasure::TaggedSymbol)
|
|
28
|
+
LITER = T.let(:liter, Yoomoney::ReceiptItemMeasure::TaggedSymbol)
|
|
29
|
+
CUBIC_METER =
|
|
30
|
+
T.let(:cubic_meter, Yoomoney::ReceiptItemMeasure::TaggedSymbol)
|
|
31
|
+
KILOWATT_HOUR =
|
|
32
|
+
T.let(:kilowatt_hour, Yoomoney::ReceiptItemMeasure::TaggedSymbol)
|
|
33
|
+
GIGACALORIE =
|
|
34
|
+
T.let(:gigacalorie, Yoomoney::ReceiptItemMeasure::TaggedSymbol)
|
|
35
|
+
DAY = T.let(:day, Yoomoney::ReceiptItemMeasure::TaggedSymbol)
|
|
36
|
+
HOUR = T.let(:hour, Yoomoney::ReceiptItemMeasure::TaggedSymbol)
|
|
37
|
+
MINUTE = T.let(:minute, Yoomoney::ReceiptItemMeasure::TaggedSymbol)
|
|
38
|
+
SECOND = T.let(:second, Yoomoney::ReceiptItemMeasure::TaggedSymbol)
|
|
39
|
+
KILOBYTE = T.let(:kilobyte, Yoomoney::ReceiptItemMeasure::TaggedSymbol)
|
|
40
|
+
MEGABYTE = T.let(:megabyte, Yoomoney::ReceiptItemMeasure::TaggedSymbol)
|
|
41
|
+
GIGABYTE = T.let(:gigabyte, Yoomoney::ReceiptItemMeasure::TaggedSymbol)
|
|
42
|
+
TERABYTE = T.let(:terabyte, Yoomoney::ReceiptItemMeasure::TaggedSymbol)
|
|
43
|
+
ANOTHER = T.let(:another, Yoomoney::ReceiptItemMeasure::TaggedSymbol)
|
|
44
|
+
|
|
45
|
+
sig do
|
|
46
|
+
override.returns(T::Array[Yoomoney::ReceiptItemMeasure::TaggedSymbol])
|
|
47
|
+
end
|
|
48
|
+
def self.values
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Yoomoney
|
|
4
|
+
module Models
|
|
5
|
+
module ReceiptItemPaymentMode
|
|
6
|
+
extend Yoomoney::Internal::Type::Enum
|
|
7
|
+
|
|
8
|
+
TaggedSymbol =
|
|
9
|
+
T.type_alias { T.all(Symbol, Yoomoney::ReceiptItemPaymentMode) }
|
|
10
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
11
|
+
|
|
12
|
+
FULL_PREPAYMENT =
|
|
13
|
+
T.let(:full_prepayment, Yoomoney::ReceiptItemPaymentMode::TaggedSymbol)
|
|
14
|
+
PARTIAL_PREPAYMENT =
|
|
15
|
+
T.let(
|
|
16
|
+
:partial_prepayment,
|
|
17
|
+
Yoomoney::ReceiptItemPaymentMode::TaggedSymbol
|
|
18
|
+
)
|
|
19
|
+
ADVANCE = T.let(:advance, Yoomoney::ReceiptItemPaymentMode::TaggedSymbol)
|
|
20
|
+
FULL_PAYMENT =
|
|
21
|
+
T.let(:full_payment, Yoomoney::ReceiptItemPaymentMode::TaggedSymbol)
|
|
22
|
+
PARTIAL_PAYMENT =
|
|
23
|
+
T.let(:partial_payment, Yoomoney::ReceiptItemPaymentMode::TaggedSymbol)
|
|
24
|
+
CREDIT = T.let(:credit, Yoomoney::ReceiptItemPaymentMode::TaggedSymbol)
|
|
25
|
+
CREDIT_PAYMENT =
|
|
26
|
+
T.let(:credit_payment, Yoomoney::ReceiptItemPaymentMode::TaggedSymbol)
|
|
27
|
+
|
|
28
|
+
sig do
|
|
29
|
+
override.returns(
|
|
30
|
+
T::Array[Yoomoney::ReceiptItemPaymentMode::TaggedSymbol]
|
|
31
|
+
)
|
|
32
|
+
end
|
|
33
|
+
def self.values
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Yoomoney
|
|
4
|
+
module Models
|
|
5
|
+
module ReceiptItemPaymentSubject
|
|
6
|
+
extend Yoomoney::Internal::Type::Enum
|
|
7
|
+
|
|
8
|
+
TaggedSymbol =
|
|
9
|
+
T.type_alias { T.all(Symbol, Yoomoney::ReceiptItemPaymentSubject) }
|
|
10
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
11
|
+
|
|
12
|
+
COMMODITY =
|
|
13
|
+
T.let(:commodity, Yoomoney::ReceiptItemPaymentSubject::TaggedSymbol)
|
|
14
|
+
EXCISE = T.let(:excise, Yoomoney::ReceiptItemPaymentSubject::TaggedSymbol)
|
|
15
|
+
JOB = T.let(:job, Yoomoney::ReceiptItemPaymentSubject::TaggedSymbol)
|
|
16
|
+
SERVICE =
|
|
17
|
+
T.let(:service, Yoomoney::ReceiptItemPaymentSubject::TaggedSymbol)
|
|
18
|
+
GAMBLING_BET =
|
|
19
|
+
T.let(:gambling_bet, Yoomoney::ReceiptItemPaymentSubject::TaggedSymbol)
|
|
20
|
+
GAMBLING_PRIZE =
|
|
21
|
+
T.let(
|
|
22
|
+
:gambling_prize,
|
|
23
|
+
Yoomoney::ReceiptItemPaymentSubject::TaggedSymbol
|
|
24
|
+
)
|
|
25
|
+
LOTTERY =
|
|
26
|
+
T.let(:lottery, Yoomoney::ReceiptItemPaymentSubject::TaggedSymbol)
|
|
27
|
+
LOTTERY_PRIZE =
|
|
28
|
+
T.let(:lottery_prize, Yoomoney::ReceiptItemPaymentSubject::TaggedSymbol)
|
|
29
|
+
INTELLECTUAL_ACTIVITY =
|
|
30
|
+
T.let(
|
|
31
|
+
:intellectual_activity,
|
|
32
|
+
Yoomoney::ReceiptItemPaymentSubject::TaggedSymbol
|
|
33
|
+
)
|
|
34
|
+
PAYMENT =
|
|
35
|
+
T.let(:payment, Yoomoney::ReceiptItemPaymentSubject::TaggedSymbol)
|
|
36
|
+
AGENT_COMMISSION =
|
|
37
|
+
T.let(
|
|
38
|
+
:agent_commission,
|
|
39
|
+
Yoomoney::ReceiptItemPaymentSubject::TaggedSymbol
|
|
40
|
+
)
|
|
41
|
+
PROPERTY_RIGHT =
|
|
42
|
+
T.let(
|
|
43
|
+
:property_right,
|
|
44
|
+
Yoomoney::ReceiptItemPaymentSubject::TaggedSymbol
|
|
45
|
+
)
|
|
46
|
+
NON_OPERATING_GAIN =
|
|
47
|
+
T.let(
|
|
48
|
+
:non_operating_gain,
|
|
49
|
+
Yoomoney::ReceiptItemPaymentSubject::TaggedSymbol
|
|
50
|
+
)
|
|
51
|
+
INSURANCE_PREMIUM =
|
|
52
|
+
T.let(
|
|
53
|
+
:insurance_premium,
|
|
54
|
+
Yoomoney::ReceiptItemPaymentSubject::TaggedSymbol
|
|
55
|
+
)
|
|
56
|
+
SALES_TAX =
|
|
57
|
+
T.let(:sales_tax, Yoomoney::ReceiptItemPaymentSubject::TaggedSymbol)
|
|
58
|
+
RESORT_FEE =
|
|
59
|
+
T.let(:resort_fee, Yoomoney::ReceiptItemPaymentSubject::TaggedSymbol)
|
|
60
|
+
COMPOSITE =
|
|
61
|
+
T.let(:composite, Yoomoney::ReceiptItemPaymentSubject::TaggedSymbol)
|
|
62
|
+
ANOTHER =
|
|
63
|
+
T.let(:another, Yoomoney::ReceiptItemPaymentSubject::TaggedSymbol)
|
|
64
|
+
FINE = T.let(:fine, Yoomoney::ReceiptItemPaymentSubject::TaggedSymbol)
|
|
65
|
+
TAX = T.let(:tax, Yoomoney::ReceiptItemPaymentSubject::TaggedSymbol)
|
|
66
|
+
LIEN = T.let(:lien, Yoomoney::ReceiptItemPaymentSubject::TaggedSymbol)
|
|
67
|
+
COST = T.let(:cost, Yoomoney::ReceiptItemPaymentSubject::TaggedSymbol)
|
|
68
|
+
PENSION_INSURANCE_WITHOUT_PAYOUTS =
|
|
69
|
+
T.let(
|
|
70
|
+
:pension_insurance_without_payouts,
|
|
71
|
+
Yoomoney::ReceiptItemPaymentSubject::TaggedSymbol
|
|
72
|
+
)
|
|
73
|
+
PENSION_INSURANCE_WITH_PAYOUTS =
|
|
74
|
+
T.let(
|
|
75
|
+
:pension_insurance_with_payouts,
|
|
76
|
+
Yoomoney::ReceiptItemPaymentSubject::TaggedSymbol
|
|
77
|
+
)
|
|
78
|
+
HEALTH_INSURANCE_WITHOUT_PAYOUTS =
|
|
79
|
+
T.let(
|
|
80
|
+
:health_insurance_without_payouts,
|
|
81
|
+
Yoomoney::ReceiptItemPaymentSubject::TaggedSymbol
|
|
82
|
+
)
|
|
83
|
+
HEALTH_INSURANCE_WITH_PAYOUTS =
|
|
84
|
+
T.let(
|
|
85
|
+
:health_insurance_with_payouts,
|
|
86
|
+
Yoomoney::ReceiptItemPaymentSubject::TaggedSymbol
|
|
87
|
+
)
|
|
88
|
+
HEALTH_INSURANCE =
|
|
89
|
+
T.let(
|
|
90
|
+
:health_insurance,
|
|
91
|
+
Yoomoney::ReceiptItemPaymentSubject::TaggedSymbol
|
|
92
|
+
)
|
|
93
|
+
CASINO = T.let(:casino, Yoomoney::ReceiptItemPaymentSubject::TaggedSymbol)
|
|
94
|
+
AGENT_WITHDRAWALS =
|
|
95
|
+
T.let(
|
|
96
|
+
:agent_withdrawals,
|
|
97
|
+
Yoomoney::ReceiptItemPaymentSubject::TaggedSymbol
|
|
98
|
+
)
|
|
99
|
+
NON_MARKED_EXCISE =
|
|
100
|
+
T.let(
|
|
101
|
+
:non_marked_excise,
|
|
102
|
+
Yoomoney::ReceiptItemPaymentSubject::TaggedSymbol
|
|
103
|
+
)
|
|
104
|
+
MARKED_EXCISE =
|
|
105
|
+
T.let(:marked_excise, Yoomoney::ReceiptItemPaymentSubject::TaggedSymbol)
|
|
106
|
+
MARKED = T.let(:marked, Yoomoney::ReceiptItemPaymentSubject::TaggedSymbol)
|
|
107
|
+
NON_MARKED =
|
|
108
|
+
T.let(:non_marked, Yoomoney::ReceiptItemPaymentSubject::TaggedSymbol)
|
|
109
|
+
|
|
110
|
+
sig do
|
|
111
|
+
override.returns(
|
|
112
|
+
T::Array[Yoomoney::ReceiptItemPaymentSubject::TaggedSymbol]
|
|
113
|
+
)
|
|
114
|
+
end
|
|
115
|
+
def self.values
|
|
116
|
+
end
|
|
117
|
+
end
|
|
118
|
+
end
|
|
119
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Yoomoney
|
|
4
|
+
module Models
|
|
5
|
+
class ReceiptItemSupplier < Yoomoney::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Yoomoney::ReceiptItemSupplier, Yoomoney::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
sig { returns(T.nilable(String)) }
|
|
12
|
+
attr_reader :name
|
|
13
|
+
|
|
14
|
+
sig { params(name: String).void }
|
|
15
|
+
attr_writer :name
|
|
16
|
+
|
|
17
|
+
sig { returns(T.nilable(String)) }
|
|
18
|
+
attr_reader :phone
|
|
19
|
+
|
|
20
|
+
sig { params(phone: String).void }
|
|
21
|
+
attr_writer :phone
|
|
22
|
+
|
|
23
|
+
sig { params(name: String, phone: String).returns(T.attached_class) }
|
|
24
|
+
def self.new(name: nil, phone: nil)
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
sig { override.returns({ name: String, phone: String }) }
|
|
28
|
+
def to_hash
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|