Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/brown-hotels-switch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

SDK Generator updated
5 changes: 5 additions & 0 deletions .changeset/chilled-tips-sort.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

fix(be,api-definitions): Loosen Address validation rules Rebilly/rebilly#17436
5 changes: 5 additions & 0 deletions .changeset/cool-bottles-jam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

SDK Generator updated
5 changes: 5 additions & 0 deletions .changeset/cyan-moles-roll.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

docs(website): Add Recheck to the website directory & fix violations Rebilly/rebilly#17585
5 changes: 5 additions & 0 deletions .changeset/dull-lies-hunt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

SDK Generator updated
5 changes: 5 additions & 0 deletions .changeset/eighty-foxes-repeat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

fix(backend): Permanently block above and Temporary block above use the independent pool of attributes (#16938) Rebilly/rebilly#17628
5 changes: 5 additions & 0 deletions .changeset/fair-avocados-look.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

fix(api-definitions): Remove empty Paycly settings object Rebilly/rebilly#17821
5 changes: 5 additions & 0 deletions .changeset/famous-seas-try.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

feat(be,api-definitions): Add GetPayoutRequestV2PaymentInstrument endpoint for new payout-request flow Rebilly/rebilly#17540
5 changes: 5 additions & 0 deletions .changeset/gorgeous-boxes-fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

SDK Generator updated
5 changes: 5 additions & 0 deletions .changeset/gorgeous-timers-perform.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

chore(deps): bump @redocly/cli from 2.14.1 to 2.14.3 in /website/api-definitions Rebilly/rebilly#17777
5 changes: 5 additions & 0 deletions .changeset/grumpy-dodos-applaud.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

SDK Generator updated
5 changes: 5 additions & 0 deletions .changeset/grumpy-scissors-fry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

SDK Generator updated
5 changes: 5 additions & 0 deletions .changeset/hot-carrots-relate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

chore(website): Add descriptive-link-text rule to linter Rebilly/rebilly#17802
5 changes: 5 additions & 0 deletions .changeset/itchy-humans-flow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

feat(be, api-docs): Add filters support for ApiLogSummaryReport Rebilly/rebilly#17677
5 changes: 5 additions & 0 deletions .changeset/lemon-stingrays-sort.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

feat(be,api-def): Add match details to AML Hit Rebilly/rebilly#17481
5 changes: 5 additions & 0 deletions .changeset/lovely-worms-destroy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

revert: fix(backend): Permanently block above and Temporary block above use the independent pool of attributes (#16938) Rebilly/rebilly#17594
5 changes: 5 additions & 0 deletions .changeset/many-onions-admire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

feat(api-defs): Add POST /payment-request-allocations Rebilly/rebilly#17567
5 changes: 5 additions & 0 deletions .changeset/new-otters-drum.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

SDK Generator updated
5 changes: 5 additions & 0 deletions .changeset/odd-starfishes-attack.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

SDK Generator updated
5 changes: 5 additions & 0 deletions .changeset/old-kangaroos-sort.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

chore(deps): bump @redocly/cli from 2.14.0 to 2.14.1 in /website/api-definitions Rebilly/rebilly#17705
5 changes: 5 additions & 0 deletions .changeset/orange-cars-learn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

docs(api-definitions): Add include to boolean-parameter-prefixes lint rule Rebilly/rebilly#17721
5 changes: 5 additions & 0 deletions .changeset/perfect-yaks-try.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

chore(deps): bump @redocly/cli from 2.12.3 to 2.13.0 in /website/api-definitions Rebilly/rebilly#17461
5 changes: 5 additions & 0 deletions .changeset/poor-schools-relate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

chore(deps): bump es-toolkit from 1.42.0 to 1.43.0 in /website/api-definitions Rebilly/rebilly#17460
5 changes: 5 additions & 0 deletions .changeset/popular-stingrays-talk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

feat(api-definitions, be, payment-gateways): Implement Powertranz payment gateway adapter Rebilly/rebilly#17587
5 changes: 5 additions & 0 deletions .changeset/pretty-flowers-pump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

SDK Generator updated
5 changes: 5 additions & 0 deletions .changeset/real-plants-develop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

chore(deps): bump @redocly/cli from 2.13.0 to 2.14.0 in /website/api-definitions Rebilly/rebilly#17658
5 changes: 5 additions & 0 deletions .changeset/red-sloths-hope.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

chore(api): Revert unintentional API changes Rebilly/rebilly#17423
5 changes: 5 additions & 0 deletions .changeset/selfish-adults-fry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

feat(api-definitions): Add payout request reversed and fulfilled to webhooks api definitions Rebilly/rebilly#17632
5 changes: 5 additions & 0 deletions .changeset/six-drinks-rest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

SDK Generator updated
5 changes: 5 additions & 0 deletions .changeset/six-windows-joke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

feat(api-definitions): Payout processing MVP Rebilly/rebilly#17551
5 changes: 5 additions & 0 deletions .changeset/sour-pugs-hope.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

SDK Generator updated
5 changes: 5 additions & 0 deletions .changeset/sour-suits-raise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

feat(api-definitions): Add POST endpoint for payout request auto allocation Rebilly/rebilly#17831
5 changes: 5 additions & 0 deletions .changeset/stupid-pears-brake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

fix(api-definitions): Fix Paycly gateway account config mapping Rebilly/rebilly#17809
5 changes: 5 additions & 0 deletions .changeset/sweet-lions-wait.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

SDK Generator updated
5 changes: 5 additions & 0 deletions .changeset/ten-suits-sleep.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

feat(api-defs): Add PATCH /payout-request-allocation/{id} Rebilly/rebilly#17591
5 changes: 5 additions & 0 deletions .changeset/thick-cheetahs-remember.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

SDK Generator updated
5 changes: 5 additions & 0 deletions .changeset/unlucky-poems-knock.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

SDK Generator updated
5 changes: 5 additions & 0 deletions .changeset/warm-beds-sneeze.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

chore(deps): bump @redocly/cli from 2.14.3 to 2.14.4 in /website/api-definitions Rebilly/rebilly#17896
5 changes: 5 additions & 0 deletions .changeset/wicked-news-dance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

feat(api-definition, be, payment-gateways): Add delay setting to Paybilt Rebilly/rebilly#17522
5 changes: 5 additions & 0 deletions .changeset/witty-starfishes-stare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

feat(api-definitions): Add API definitions for AML checks histogram report Rebilly/rebilly#17668
5 changes: 5 additions & 0 deletions .changeset/yellow-zebras-allow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

SDK Generator updated
27 changes: 27 additions & 0 deletions src/Api/HistogramsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,33 @@ public function __construct(protected ?ClientInterface $client)
{
}

public function getAmlCheckHistogramReport(
?DateTimeImmutable $periodStart = null,
?DateTimeImmutable $periodEnd = null,
?string $aggregationPeriod = null,
?string $metric = null,
?bool $includePropagatedResults = null,
?string $filter = null,
): HistogramData {
$queryParams = [
'periodStart' => $periodStart->format('Y-m-d\TH:i:s\Z'),
'periodEnd' => $periodEnd->format('Y-m-d\TH:i:s\Z'),
'aggregationPeriod' => $aggregationPeriod,
'metric' => $metric,
'includePropagatedResults' => $includePropagatedResults,
'filter' => $filter,
];
$uri = '/experimental/histograms/aml-checks?' . http_build_query($queryParams);

$request = new Request('GET', $uri, headers: [
'Accept' => 'application/json',
]);
$response = $this->client->send($request);
$data = Utils::jsonDecode((string) $response->getBody(), true);

return HistogramData::from($data);
}

public function getTransactionHistogramReport(
?DateTimeImmutable $periodStart = null,
?DateTimeImmutable $periodEnd = null,
Expand Down
72 changes: 72 additions & 0 deletions src/Api/PayoutRequestAllocationsApi.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
<?php

/**
* This source file is proprietary and part of Rebilly.
*
* (c) Rebilly SRL
* Rebilly Ltd.
* Rebilly Inc.
*
* @see https://www.rebilly.com
*/

declare(strict_types=1);

namespace Rebilly\Sdk\Api;

use GuzzleHttp\ClientInterface;
use GuzzleHttp\Psr7\Request;
use GuzzleHttp\Utils;
use Rebilly\Sdk\Model\PatchPayoutRequestAllocationRequest;
use Rebilly\Sdk\Model\PayoutRequestAllocation;
use Rebilly\Sdk\Model\PostPayoutRequestAllocationRequest;
use Rebilly\Sdk\Model\PostPayoutRequestAutoAllocationRequest;

class PayoutRequestAllocationsApi
{
public function __construct(protected ?ClientInterface $client)
{
}

public function autoAllocate(
PostPayoutRequestAutoAllocationRequest $postPayoutRequestAutoAllocationRequest,
): void {
$uri = '/payout-request-allocations/auto';

$request = new Request('POST', $uri, body: Utils::jsonEncode($postPayoutRequestAutoAllocationRequest));
$this->client->send($request);
}

public function create(
PostPayoutRequestAllocationRequest $postPayoutRequestAllocationRequest,
): PayoutRequestAllocation {
$uri = '/payout-request-allocations';

$request = new Request('POST', $uri, headers: [
'Accept' => 'application/json',
], body: Utils::jsonEncode($postPayoutRequestAllocationRequest));
$response = $this->client->send($request);
$data = Utils::jsonDecode((string) $response->getBody(), true);

return PayoutRequestAllocation::from($data);
}

public function update(
string $id,
PatchPayoutRequestAllocationRequest $patchPayoutRequestAllocationRequest,
): PayoutRequestAllocation {
$pathParams = [
'{id}' => $id,
];

$uri = str_replace(array_keys($pathParams), array_values($pathParams), '/payout-request-allocations/{id}');

$request = new Request('PATCH', $uri, headers: [
'Accept' => 'application/json',
], body: Utils::jsonEncode($patchPayoutRequestAllocationRequest));
$response = $this->client->send($request);
$data = Utils::jsonDecode((string) $response->getBody(), true);

return PayoutRequestAllocation::from($data);
}
}
Loading