Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Финансовые отчеты #70

Closed
xgavr opened this issue May 2, 2023 · 2 comments
Closed

Финансовые отчеты #70

xgavr opened this issue May 2, 2023 · 2 comments

Comments

@xgavr
Copy link

xgavr commented May 2, 2023

Здравствуйте!
https://api-seller.ozon.ru/v1/finance/realization - такой отчет есть в планах?

@xgavr
Copy link
Author

xgavr commented May 3, 2023

<?php

declare(strict_types=1);

namespace Gam6itko\OzonSeller\Service\V1;

use Gam6itko\OzonSeller\Enum\TransactionType;
use Gam6itko\OzonSeller\Service\AbstractService;
use Gam6itko\OzonSeller\Utils\ArrayHelper;

/**
 * Allows to retrieve reports via API, that are also available in Seller Center.
 *
 * @see https://cb-api.ozonru.me/apiref/en/#t-title_seller_reports
 *
 * @author Alexander Strizhak <gam6itko@gmail.com>
 */
class FinanceService extends AbstractService
{
    /**
     * Returns a list of reports which were previously generated by Seller.
     *
     * @see https://docs.ozon.ru/api/seller/#tag/FinanceAPI
     *
     * @return array|string
     */
    public function realization(array $query)
    {
        
        $query = ArrayHelper::pick($query, ['date']);

        return $this->request('POST', '/v1/finance/realization', $query);
    }
}

gam6itko added a commit that referenced this issue Jul 17, 2023
gam6itko added a commit that referenced this issue Jul 17, 2023
@gam6itko
Copy link
Owner

Спасибо за предоставленный код. В следующий раз вы можете кидать PR.

gam6itko added a commit that referenced this issue Jul 17, 2023
* fix #70
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants