diff --git a/openapi.json b/openapi.json index 412977f..0f56672 100755 --- a/openapi.json +++ b/openapi.json @@ -2206,7 +2206,7 @@ } }, { - "name": "users", + "name": "users[]", "in": "query", "description": "Filters the returned results by user email.", "required": false, @@ -2244,7 +2244,7 @@ } }, { - "name": "payment_types", + "name": "payment_types[]", "in": "query", "description": "Filters the returned results by the specified list of payment types used for the transactions.", "required": false, @@ -2268,7 +2268,7 @@ } }, { - "name": "types", + "name": "types[]", "in": "query", "description": "Filters the returned results by the specified list of transaction types.", "required": false, @@ -3436,7 +3436,7 @@ "type": "object", "properties": { "nickname": { - "description": "User's preferred name. Used for display purposes only.", + "description": "User's nickname. Used for display purposes only.", "type": "string", "example": "Test User" }, @@ -5482,7 +5482,7 @@ } }, "PaymentTypesFilter": { - "name": "payment_types", + "name": "payment_types[]", "in": "query", "description": "Filters the returned results by the specified list of payment types used for the transactions.", "required": false, @@ -5540,7 +5540,7 @@ } }, "TypesFilter": { - "name": "types", + "name": "types[]", "in": "query", "description": "Filters the returned results by the specified list of transaction types.", "required": false, @@ -5557,7 +5557,7 @@ } }, "UsersFilter": { - "name": "users", + "name": "users[]", "in": "query", "description": "Filters the returned results by user email.", "required": false, @@ -8016,7 +8016,7 @@ "format": "date-time" }, "nickname": { - "description": "User's preferred name. Used for display purposes only.", + "description": "User's nickname. Used for display purposes only.", "type": "string", "example": "Test User" }, @@ -8044,7 +8044,8 @@ "properties": { "user_id": { "type": "integer", - "format": "int32" + "maximum": 2147483647, + "minimum": 0 } }, "deprecated": true, @@ -8226,57 +8227,6 @@ }, "title": "Merchant" }, - "Company": { - "description": "Information about the company or business. This is legal information that is used for verification.\n", - "type": "object", - "properties": { - "name": { - "description": "The company's legal name.", - "type": "string", - "example": "Gin & Doughnuts Bar GmbH", - "maxLength": 150, - "minLength": 1 - }, - "merchant_category_code": { - "description": "The merchant category code for the account as specified by [ISO18245](https://www.iso.org/standard/33365.html). MCCs are used to classify businesses based on the goods or services they provide.\n", - "type": "string", - "example": "1532", - "pattern": "^[0-9]{4}$" - }, - "legal_type": { - "$ref": "#/components/schemas/LegalType" - }, - "address": { - "$ref": "#/components/schemas/Address" - }, - "trading_address": { - "$ref": "#/components/schemas/Address" - }, - "identifiers": { - "$ref": "#/components/schemas/CompanyIdentifiers" - }, - "phone_number": { - "$ref": "#/components/schemas/PhoneNumber" - }, - "website": { - "description": "HTTP(S) URL of the company's website.\n", - "type": "string", - "format": "uri", - "examples": [ - "https://www.sumup.com" - ], - "maxLength": 255, - "nullable": true - }, - "attributes": { - "$ref": "#/components/schemas/Attributes" - } - }, - "externalDocs": { - "description": "Company documentation", - "url": "https://developer.sumup.com/tools/glossary/merchant#company" - } - }, "Meta": { "description": "A set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.\n\n**Warning**: Updating Meta will overwrite the existing data. Make sure to always include the complete JSON object.", "type": "object", @@ -8308,7 +8258,6 @@ "website": { "description": "The business's publicly available website.", "type": "string", - "format": "uri", "example": "https://example.com", "maxLength": 255 }, @@ -8668,35 +8617,13 @@ "share" ] }, - "PersonalIdentifier": { - "type": "object", - "properties": { - "ref": { - "description": "The unique reference for the personal identifier type as defined in the country SDK.\n", - "type": "string", - "examples": [ - "br.cpf" - ] - }, - "value": { - "description": "The company identifier value.\n", - "type": "string", - "examples": [ - "847.060.136-90" - ], - "maxLength": 30 - } + "PersonalIdentifiers": { + "description": "A list of country-specific personal identifiers.\n", + "type": "array", + "items": { + "$ref": "#/components/schemas/PersonalIdentifier" }, - "examples": [ - { - "ref": "br.cpf", - "value": "847.060.136-90" - } - ], - "required": [ - "ref", - "value" - ] + "maxItems": 5 }, "Version": { "description": "The version of the resource. The version reflects a specific change submitted to the API via one of the `PATCH` endpoints.\n", @@ -8778,12 +8705,7 @@ "$ref": "#/components/schemas/Address" }, "identifiers": { - "description": "A list of country-specific personal identifiers.\n", - "type": "array", - "items": { - "$ref": "#/components/schemas/PersonalIdentifier" - }, - "maxItems": 5 + "$ref": "#/components/schemas/PersonalIdentifiers" }, "citizenship": { "$ref": "#/components/schemas/CountryCode" @@ -8815,6 +8737,85 @@ "id" ] }, + "PersonalIdentifier": { + "type": "object", + "properties": { + "ref": { + "description": "The unique reference for the personal identifier type as defined in the country SDK.\n", + "type": "string", + "examples": [ + "br.cpf" + ] + }, + "value": { + "description": "The value of the personal identifier.\n", + "type": "string", + "examples": [ + "847.060.136-90" + ], + "maxLength": 30 + } + }, + "examples": [ + { + "ref": "br.cpf", + "value": "847.060.136-90" + } + ], + "required": [ + "ref", + "value" + ] + }, + "Company": { + "description": "Information about the company or business. This is legal information that is used for verification.\n", + "type": "object", + "properties": { + "name": { + "description": "The company's legal name.", + "type": "string", + "example": "Gin & Doughnuts Bar GmbH", + "maxLength": 150, + "minLength": 1 + }, + "merchant_category_code": { + "description": "The merchant category code for the account as specified by [ISO18245](https://www.iso.org/standard/33365.html). MCCs are used to classify businesses based on the goods or services they provide.\n", + "type": "string", + "example": "1532", + "pattern": "^[0-9]{4}$" + }, + "legal_type": { + "$ref": "#/components/schemas/LegalType" + }, + "address": { + "$ref": "#/components/schemas/Address" + }, + "trading_address": { + "$ref": "#/components/schemas/Address" + }, + "identifiers": { + "$ref": "#/components/schemas/CompanyIdentifiers" + }, + "phone_number": { + "$ref": "#/components/schemas/PhoneNumber" + }, + "website": { + "description": "HTTP(S) URL of the company's website.\n", + "type": "string", + "examples": [ + "https://www.sumup.com" + ], + "maxLength": 255 + }, + "attributes": { + "$ref": "#/components/schemas/Attributes" + } + }, + "externalDocs": { + "description": "Company documentation", + "url": "https://developer.sumup.com/tools/glossary/merchant#company" + } + }, "ClassicMerchantIdentifiers": { "type": "object", "properties": { diff --git a/src/Members/Members.php b/src/Members/Members.php index 847da0c..06c2267 100644 --- a/src/Members/Members.php +++ b/src/Members/Members.php @@ -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 */ diff --git a/src/Transactions/Transactions.php b/src/Transactions/Transactions.php index ccc3a98..65c3e37 100644 --- a/src/Transactions/Transactions.php +++ b/src/Transactions/Transactions.php @@ -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. @@ -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. @@ -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). @@ -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; diff --git a/src/Types/MembershipUser.php b/src/Types/MembershipUser.php index b942c98..e3b570d 100644 --- a/src/Types/MembershipUser.php +++ b/src/Types/MembershipUser.php @@ -52,7 +52,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 */ diff --git a/src/Types/PersonalIdentifier.php b/src/Types/PersonalIdentifier.php index 3fb6d63..2ce8930 100644 --- a/src/Types/PersonalIdentifier.php +++ b/src/Types/PersonalIdentifier.php @@ -14,7 +14,7 @@ class PersonalIdentifier public string $ref; /** - * The company identifier value. + * The value of the personal identifier. * * @var string */