Skip to content
Open
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/big-dolls-hug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

fix(be, recomm, api-definitions): Add amount and currency filters for payout requests and allocations Rebilly/rebilly#21413
5 changes: 5 additions & 0 deletions .changeset/chilled-falcons-complain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

build(deps): bump @redocly/cli from 2.30.3 to 2.30.4 in /website/api-definitions Rebilly/rebilly#21318
5 changes: 5 additions & 0 deletions .changeset/dirty-insects-judge.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

build(deps): bump es-toolkit from 1.46.0 to 1.46.1 in /website/api-definitions Rebilly/rebilly#21083
5 changes: 5 additions & 0 deletions .changeset/five-pots-love.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

feat(backend): KYC improve MRZ handling Rebilly/rebilly#19874
5 changes: 5 additions & 0 deletions .changeset/fuzzy-seahorses-wait.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

feat(be, api-definitions): Remove deprecated field from payout request allocation Rebilly/rebilly#20999
5 changes: 5 additions & 0 deletions .changeset/happy-lions-hug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

fix(be, api-definitions): Change quotation credit memo invoice relation and add quote relation Rebilly/rebilly#20287
5 changes: 5 additions & 0 deletions .changeset/honest-donkeys-explode.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

feat(be,docs): Add visa to Wallet88 paymentCardMethod setting Rebilly/rebilly#21063
5 changes: 5 additions & 0 deletions .changeset/moody-moose-smile.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

feat(doc, be, payment-gateways): Add level 2/3 data custom field and send to Adyen Rebilly/rebilly#21188
5 changes: 5 additions & 0 deletions .changeset/nice-peas-fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

refactor(api-definitions): Remove status from PayoutRequestBatch definition Rebilly/rebilly#21375
5 changes: 5 additions & 0 deletions .changeset/odd-melons-lick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

feat(be): Add current period to recurring order Rebilly/rebilly#21461
5 changes: 5 additions & 0 deletions .changeset/purple-dryers-tickle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

feat(recomm, api-definitions, be): Remove deprecated payout request reversal statuses Rebilly/rebilly#20929
5 changes: 5 additions & 0 deletions .changeset/rich-trees-drum.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

fix(regenerator): Make generated PHP SDK compatible with 8.4 Rebilly/rebilly#21311
5 changes: 5 additions & 0 deletions .changeset/silent-bees-repeat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

build(deps): bump @redocly/cli from 2.30.0 to 2.30.3 in /website/api-definitions Rebilly/rebilly#21081
5 changes: 5 additions & 0 deletions .changeset/sixty-pandas-sell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

feat(be,api-definitions): Remove EDD API Rebilly/rebilly#21118
5 changes: 5 additions & 0 deletions .changeset/strong-ducks-juggle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

docs(website, api-defintions): Define acronyms Rebilly/rebilly#21017
5 changes: 5 additions & 0 deletions .changeset/thirty-books-itch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

feat(be,api-definitions,metadata): Migrate to a new EMS SFTP Rebilly/rebilly#21123
5 changes: 5 additions & 0 deletions .changeset/three-eels-attend.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

refactor(be, api-definitions): Add service period start and end times Rebilly/rebilly#21059
5 changes: 5 additions & 0 deletions .changeset/tidy-impalas-wave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

feat(be,docs): Support confirmation flow for Forced DCC Rebilly/rebilly#21007
5 changes: 5 additions & 0 deletions .changeset/tough-bikes-join.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

feat(be, recomm): Add address editing for change/reactivation quotes Rebilly/rebilly#21250
5 changes: 5 additions & 0 deletions .changeset/tough-mirrors-dream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

refactor(be,api-definitions): remove partially-fulfilled payout status; drop legacy linkTransaction Rebilly/rebilly#20174
183 changes: 0 additions & 183 deletions src/Api/CustomersApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@
use Rebilly\Sdk\Model\CustomerCreditBalance;
use Rebilly\Sdk\Model\CustomerInformation;
use Rebilly\Sdk\Model\CustomerTimeline;
use Rebilly\Sdk\Model\Edd;
use Rebilly\Sdk\Model\EddSearchResult;
use Rebilly\Sdk\Model\EddTimeline;
use Rebilly\Sdk\Model\LeadSource;
use Rebilly\Sdk\Paginator;

Expand Down Expand Up @@ -206,61 +203,6 @@ public function getAllPaginator(
);
}

/**
* @return Collection<EddSearchResult>
*/
public function getAllEddSearchResults(
string $id,
?int $limit = null,
?int $offset = null,
): Collection {
$pathParams = [
'{id}' => $id,
];

$queryParams = [
'limit' => $limit,
'offset' => $offset,
];
$uri = str_replace(array_keys($pathParams), array_values($pathParams), '/customers/{id}/edd-search-results?') . 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 new Collection(
array_map(fn (array $item): EddSearchResult => EddSearchResult::from($item, ['headers' => $response->getHeaders()]), $data),
(int) $response->getHeaderLine(Collection::HEADER_LIMIT),
(int) $response->getHeaderLine(Collection::HEADER_OFFSET),
(int) $response->getHeaderLine(Collection::HEADER_TOTAL),
[
'headers' => $response->getHeaders(),
]
);
}

/**
* @return Paginator<EddSearchResult>
*/
public function getAllEddSearchResultsPaginator(
string $id,
?int $limit = null,
?int $offset = null,
): Paginator {
$closure = fn (?int $limit, ?int $offset): Collection => $this->getAllEddSearchResults(
id: $id,
limit: $limit,
offset: $offset,
);

return new Paginator(
$limit !== null || $offset !== null ? $closure(limit: $limit, offset: $offset) : null,
$closure,
);
}

/**
* @return Collection<CustomerTimeline>
*/
Expand Down Expand Up @@ -346,24 +288,6 @@ public function getCustomerCreditBalance(
return CustomerCreditBalance::from($data, ['headers' => $response->getHeaders()]);
}

public function getCustomerEddScore(
string $id,
): Edd {
$pathParams = [
'{id}' => $id,
];

$uri = str_replace(array_keys($pathParams), array_values($pathParams), '/customers/{id}/edd-score');

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

return Edd::from($data, ['headers' => $response->getHeaders()]);
}

public function getCustomerLifetimeSummaryMetrics(
string $customerId,
): CustomerInformation {
Expand All @@ -382,113 +306,6 @@ public function getCustomerLifetimeSummaryMetrics(
return CustomerInformation::from($data, ['headers' => $response->getHeaders()]);
}

public function getEddSearchResult(
string $id,
string $searchResultId,
): EddSearchResult {
$pathParams = [
'{id}' => $id,
'{searchResultId}' => $searchResultId,
];

$uri = str_replace(array_keys($pathParams), array_values($pathParams), '/customers/{id}/edd-search-results/{searchResultId}');

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

return EddSearchResult::from($data, ['headers' => $response->getHeaders()]);
}

/**
* @return Collection<EddTimeline>
*/
public function getEddTimelineCollection(
string $id,
?int $limit = null,
?int $offset = null,
?string $filter = null,
?array $sort = null,
?string $q = null,
): Collection {
$pathParams = [
'{id}' => $id,
];

$queryParams = [
'limit' => $limit,
'offset' => $offset,
'filter' => $filter,
'sort' => $sort ? implode(',', $sort) : null,
'q' => $q,
];
$uri = str_replace(array_keys($pathParams), array_values($pathParams), '/customers/{id}/edd-timeline?') . 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 new Collection(
array_map(fn (array $item): EddTimeline => EddTimeline::from($item, ['headers' => $response->getHeaders()]), $data),
(int) $response->getHeaderLine(Collection::HEADER_LIMIT),
(int) $response->getHeaderLine(Collection::HEADER_OFFSET),
(int) $response->getHeaderLine(Collection::HEADER_TOTAL),
[
'headers' => $response->getHeaders(),
]
);
}

/**
* @return Paginator<EddTimeline>
*/
public function getEddTimelineCollectionPaginator(
string $id,
?int $limit = null,
?int $offset = null,
?string $filter = null,
?array $sort = null,
?string $q = null,
): Paginator {
$closure = fn (?int $limit, ?int $offset): Collection => $this->getEddTimelineCollection(
id: $id,
limit: $limit,
offset: $offset,
filter: $filter,
sort: $sort,
q: $q,
);

return new Paginator(
$limit !== null || $offset !== null ? $closure(limit: $limit, offset: $offset) : null,
$closure,
);
}

public function getEddTimelineMessage(
string $id,
string $messageId,
): EddTimeline {
$pathParams = [
'{id}' => $id,
'{messageId}' => $messageId,
];

$uri = str_replace(array_keys($pathParams), array_values($pathParams), '/customers/{id}/edd-timeline/{messageId}');

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

return EddTimeline::from($data, ['headers' => $response->getHeaders()]);
}

public function getLeadSource(
string $id,
): LeadSource {
Expand Down
18 changes: 18 additions & 0 deletions src/Model/AdyenSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ public function __construct(array $data = [], array $metadata = [])
if (array_key_exists('riskProfile', $data)) {
$this->setRiskProfile($data['riskProfile']);
}
if (array_key_exists('levelTwoThreeDataCustomField', $data)) {
$this->setLevelTwoThreeDataCustomField($data['levelTwoThreeDataCustomField']);
}
$this->setMetadata($metadata);
}

Expand Down Expand Up @@ -138,6 +141,18 @@ public function setRiskProfile(null|string $riskProfile): static
return $this;
}

public function getLevelTwoThreeDataCustomField(): ?string
{
return $this->fields['levelTwoThreeDataCustomField'] ?? null;
}

public function setLevelTwoThreeDataCustomField(null|string $levelTwoThreeDataCustomField): static
{
$this->fields['levelTwoThreeDataCustomField'] = $levelTwoThreeDataCustomField;

return $this;
}

public function jsonSerialize(): array
{
$data = [];
Expand All @@ -164,6 +179,9 @@ public function jsonSerialize(): array
if (array_key_exists('riskProfile', $this->fields)) {
$data['riskProfile'] = $this->fields['riskProfile'];
}
if (array_key_exists('levelTwoThreeDataCustomField', $this->fields)) {
$data['levelTwoThreeDataCustomField'] = $this->fields['levelTwoThreeDataCustomField'];
}

return $data;
}
Expand Down
2 changes: 0 additions & 2 deletions src/Model/Attachment.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ class Attachment implements JsonSerializable

public const RELATED_TYPE_CUSTOMER_TIMELINE_COMMENT = 'customer-timeline-comment';

public const RELATED_TYPE_CUSTOMER_EDD_TIMELINE_COMMENT = 'customer-edd-timeline-comment';

public const RELATED_TYPE_DISPUTE = 'dispute';

public const RELATED_TYPE_GATEWAY_TIMELINE_COMMENT = 'gateway-timeline-comment';
Expand Down
Loading
Loading