Пример #1
0
        public void PullShopifyPayouts(
            int recordsPerPage       = 14,
            int maxPages             = 1,
            bool includeTransactions = true,
            long?shopifyPayoutId     = null)
        {
            _shopifyPayoutPullWorker
            .ImportPayoutHeaders(
                maxPages,
                recordsPerPage,
                shopifyPayoutId);

            if (includeTransactions)
            {
                if (shopifyPayoutId.HasValue)
                {
                    _shopifyPayoutPullWorker
                    .ImportPayoutTransactions(
                        payoutId: shopifyPayoutId.Value);
                }
                else
                {
                    _shopifyPayoutPullWorker
                    .ImportIncompletePayoutTransactions();
                }
            }

            //
            // Entirely optional self-analysis
            //
            //_shopifyPayoutPullWorker
            //    .LogBalancingSummaries(5);
        }