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
570 changes: 278 additions & 292 deletions openapi.json

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/Members/Members.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ class MembersListResponse
class MembersUpdateRequestUser
{
/**
* User's preferred name. Used for display purposes only.
* User's nickname. Used for display purposes only.
*
* @var string|null
*/
Expand Down Expand Up @@ -382,6 +382,7 @@ public function delete(string $merchantCode, string $memberId, ?RequestOptions $
return ResponseDecoder::decodeOrThrow($response, [
'200' => ['type' => 'void'],
], [
'403' => ['type' => 'class', 'class' => \SumUp\Types\Problem::class],
'404' => ['type' => 'class', 'class' => \SumUp\Types\Problem::class],
], 'DELETE', $path);
}
Expand Down
18 changes: 9 additions & 9 deletions src/Transactions/Transactions.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ class TransactionsListParams
*
* @var string[]|null
*/
public ?array $users = null;
public ?array $usersList = null;

/**
* Filters the returned results by the specified list of final statuses of the transactions.
Expand All @@ -152,7 +152,7 @@ class TransactionsListParams
*
* @var string[]|null
*/
public ?array $paymentTypes = null;
public ?array $paymentTypesList = null;

/**
* Filters the returned results by the specified list of entry modes.
Expand All @@ -166,7 +166,7 @@ class TransactionsListParams
*
* @var string[]|null
*/
public ?array $types = null;
public ?array $typesList = null;

/**
* Filters the results by the latest modification time of resources and returns only transactions that are modified *at or after* the specified timestamp (in [ISO8601](https://en.wikipedia.org/wiki/ISO_8601) format).
Expand Down Expand Up @@ -332,20 +332,20 @@ public function list(string $merchantCode, ?TransactionsListParams $queryParams
if (isset($queryParams->limit)) {
$queryParamsData['limit'] = $queryParams->limit;
}
if (isset($queryParams->users)) {
$queryParamsData['users'] = $queryParams->users;
if (isset($queryParams->usersList)) {
$queryParamsData['users[]'] = $queryParams->usersList;
}
if (isset($queryParams->statusesList)) {
$queryParamsData['statuses[]'] = $queryParams->statusesList;
}
if (isset($queryParams->paymentTypes)) {
$queryParamsData['payment_types'] = $queryParams->paymentTypes;
if (isset($queryParams->paymentTypesList)) {
$queryParamsData['payment_types[]'] = $queryParams->paymentTypesList;
}
if (isset($queryParams->entryModesList)) {
$queryParamsData['entry_modes[]'] = $queryParams->entryModesList;
}
if (isset($queryParams->types)) {
$queryParamsData['types'] = $queryParams->types;
if (isset($queryParams->typesList)) {
$queryParamsData['types[]'] = $queryParams->typesList;
}
if (isset($queryParams->changesSince)) {
$queryParamsData['changes_since'] = $queryParams->changesSince;
Expand Down
4 changes: 3 additions & 1 deletion src/Types/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ class Address
public ?string $postCode = null;

/**
* An [ISO3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. This definition users `oneOf` with a two-character string type to allow for support of future countries in client code.
* An [ISO3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
* country code. This definition users `oneOf` with a two-character string
* type to allow for support of future countries in client code.
*
* @var string
*/
Expand Down
4 changes: 3 additions & 1 deletion src/Types/BasePerson.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ class BasePerson
public ?array $identifiers = null;

/**
* An [ISO3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. This definition users `oneOf` with a two-character string type to allow for support of future countries in client code.
* An [ISO3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
* country code. This definition users `oneOf` with a two-character string
* type to allow for support of future countries in client code.
*
* @var string|null
*/
Expand Down
9 changes: 8 additions & 1 deletion src/Types/MembershipUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ class MembershipUser
*/
public string $id;

/**
* Type of the user account.
*
* @var MembershipUserType
*/
public MembershipUserType $type;

/**
* End-User's preferred e-mail address. Its value MUST conform to the RFC 5322 [RFC5322] addr-spec syntax. The RP MUST NOT rely upon this value being unique, for unique identification use ID instead.
*
Expand Down Expand Up @@ -52,7 +59,7 @@ class MembershipUser
public ?string $disabledAt = null;

/**
* User's preferred name. Used for display purposes only.
* User's nickname. Used for display purposes only.
*
* @var string|null
*/
Expand Down
16 changes: 16 additions & 0 deletions src/Types/MembershipUserType.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

declare(strict_types=1);

namespace SumUp\Types;

/**
* Type of the user account.
*/
enum MembershipUserType: string
{
case USER = 'user';
case MANAGED_USER = 'managed_user';
case SERVICE_ACCOUNT = 'service_account';
case SYSTEM_ACCOUNT = 'system_account';
}
4 changes: 3 additions & 1 deletion src/Types/Merchant.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ class Merchant
public ?Company $company = null;

/**
* An [ISO3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. This definition users `oneOf` with a two-character string type to allow for support of future countries in client code.
* An [ISO3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
* country code. This definition users `oneOf` with a two-character string
* type to allow for support of future countries in client code.
*
* @var string
*/
Expand Down
4 changes: 3 additions & 1 deletion src/Types/Person.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ class Person
public ?array $identifiers = null;

/**
* An [ISO3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. This definition users `oneOf` with a two-character string type to allow for support of future countries in client code.
* An [ISO3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
* country code. This definition users `oneOf` with a two-character string
* type to allow for support of future countries in client code.
*
* @var string|null
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Types/PersonalIdentifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
class PersonalIdentifier
{
/**
* The unique reference for the personal identifier type as defined in the country SDK.
* The unique reference for the personal identifier type.
*
* @var string
*/
Expand Down
Loading